Skip to content

Clean up FpySequencer directives#4395

Merged
LeStarch merged 5 commits intonasa:develfrom
zimri-leisher:4394-fpy-remove-dirs
Nov 12, 2025
Merged

Clean up FpySequencer directives#4395
LeStarch merged 5 commits intonasa:develfrom
zimri-leisher:4394-fpy-remove-dirs

Conversation

@zimri-leisher
Copy link
Collaborator

@zimri-leisher zimri-leisher commented Nov 5, 2025

Related Issue(s) #4394
Has Unit Tests (y/n) y
Documentation Included (y/n) y
Generative AI was used in this contribution (y/n) y

Change Description

  • Remove the ASSERT and FLOAT_FLOOR_DIV directives, which can be replaced with combinations of other dirs.
  • Rename IADD to ADD, ISUB to SUB and IMUL to MUL

Rationale

This keeps the bytecode simple and consistent with other bytecodes.

AI Usage (see policy)

Updated docs, renamed bytecode ops

@zimri-leisher zimri-leisher self-assigned this Nov 5, 2025
@zimri-leisher zimri-leisher added the Fpy Issues pertaining to the FpySequencer label Nov 5, 2025
@zimri-leisher zimri-leisher changed the title Remove assert and float floor div from FpySequencer Clean up FpySequencer directives Nov 5, 2025
case Fpy::DirectiveId::IADD:
error = this->op_iadd();
case Fpy::DirectiveId::ADD:
error = this->op_add();

Check warning

Code scanning / CodeQL

Unchecked function argument Warning

This use of parameter error has not been checked.
case Fpy::DirectiveId::IADD:
error = this->op_iadd();
case Fpy::DirectiveId::ADD:
error = this->op_add();

Check warning

Code scanning / CodeQL

Unchecked return value Warning

The return value of non-void function
operator=
is not checked.
case Fpy::DirectiveId::ISUB:
error = this->op_isub();
case Fpy::DirectiveId::SUB:
error = this->op_sub();

Check warning

Code scanning / CodeQL

Unchecked function argument Warning

This use of parameter error has not been checked.
case Fpy::DirectiveId::ISUB:
error = this->op_isub();
case Fpy::DirectiveId::SUB:
error = this->op_sub();

Check warning

Code scanning / CodeQL

Unchecked return value Warning

The return value of non-void function
operator=
is not checked.
case Fpy::DirectiveId::IMUL:
error = this->op_imul();
case Fpy::DirectiveId::MUL:
error = this->op_mul();

Check warning

Code scanning / CodeQL

Unchecked function argument Warning

This use of parameter error has not been checked.
case Fpy::DirectiveId::IMUL:
error = this->op_imul();
case Fpy::DirectiveId::MUL:
error = this->op_mul();

Check warning

Code scanning / CodeQL

Unchecked return value Warning

The return value of non-void function
operator=
is not checked.
return DirectiveError::NO_ERROR;
}
DirectiveError FpySequencer::op_iadd() {
DirectiveError FpySequencer::op_add() {

Check notice

Code scanning / CodeQL

Long function without assertion Note

All functions of more than 10 lines should have at least one assertion.
return DirectiveError::NO_ERROR;
}
DirectiveError FpySequencer::op_isub() {
DirectiveError FpySequencer::op_sub() {

Check notice

Code scanning / CodeQL

Long function without assertion Note

All functions of more than 10 lines should have at least one assertion.
return DirectiveError::NO_ERROR;
}
DirectiveError FpySequencer::op_imul() {
DirectiveError FpySequencer::op_mul() {

Check notice

Code scanning / CodeQL

Long function without assertion Note

All functions of more than 10 lines should have at least one assertion.
LeStarch
LeStarch previously approved these changes Nov 7, 2025
@zimri-leisher
Copy link
Collaborator Author

@LeStarch what's going on with the builds here?

@LeStarch LeStarch merged commit 1c87278 into nasa:devel Nov 12, 2025
73 of 82 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Fpy Issues pertaining to the FpySequencer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants