BOOLEAN Logic and Conversion Instructions #12

Open
opened 2024-12-24 14:36:57 +00:00 by giteadmin · 0 comments
Owner

Scope

  • Implement BOOLEAN.NOT: Push the logical NOT of the top BOOLEAN.
  • Implement BOOLEAN.AND: Push the logical AND of the top two BOOLEANs.
  • Implement BOOLEAN.OR: Push the logical OR of the top two BOOLEANs.
  • Implement BOOLEAN.=: Push TRUE if the top two BOOLEANs are equal, otherwise FALSE.
  • Implement BOOLEAN.FROMFLOAT: Push FALSE if the top FLOAT is 0.0, otherwise TRUE.
  • Implement BOOLEAN.FROMINTEGER: Push FALSE if the top INTEGER is 0, otherwise TRUE.

reference: https://faculty.hampshire.edu/lspector/push3-description.html

Deliverables

  • Updated stack machine code supporting BOOLEAN logic and conversion instructions.
  • Unit tests for each instruction covering both valid and edge cases.
  • Documentation for logic and conversion instructions.

Bounty Owner/Gardener

@giteadmin

Roles

bounty gardener: @giteadmin / 120 DAI
bounty worker: name / 80%
bounty reviewer: name / 20%

Gardener checklist

  • I have attached one of the size- labels to this bounty
## Scope - Implement BOOLEAN.NOT: Push the logical NOT of the top BOOLEAN. - Implement BOOLEAN.AND: Push the logical AND of the top two BOOLEANs. - Implement BOOLEAN.OR: Push the logical OR of the top two BOOLEANs. - Implement BOOLEAN.=: Push TRUE if the top two BOOLEANs are equal, otherwise FALSE. - Implement BOOLEAN.FROMFLOAT: Push FALSE if the top FLOAT is 0.0, otherwise TRUE. - Implement BOOLEAN.FROMINTEGER: Push FALSE if the top INTEGER is 0, otherwise TRUE. reference: https://faculty.hampshire.edu/lspector/push3-description.html ## Deliverables - Updated stack machine code supporting BOOLEAN logic and conversion instructions. - Unit tests for each instruction covering both valid and edge cases. - Documentation for logic and conversion instructions. ## Bounty Owner/Gardener @giteadmin ## Roles bounty gardener: @giteadmin / 120 DAI bounty worker: name / 80% bounty reviewer: name / 20% ## Gardener checklist - [x] I have attached one of the `size-` labels to this bounty
giteadmin added the bounty-M label 2024-12-24 14:36:57 +00:00
giteadmin changed title from Issue 2: Implement BOOLEAN Logic and Conversion Instructions to Implement BOOLEAN Logic and Conversion Instructions 2024-12-24 14:42:20 +00:00
giteadmin changed title from Implement BOOLEAN Logic and Conversion Instructions to BOOLEAN Logic and Conversion Instructions 2024-12-24 14:42:39 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: giteadmin/SoLUSH-3#12