-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes and missing operator implementations for btorsim (#25)
* btorsim: mark iff as implemented Btorsim already has an implementation for iff, but it wasn't marked as implemented. * btorsim: fix sra not working The previous sra implementation wasn't working for negative inputs. The implementation was extracting the wrong sign bit (from b instead of a) and also accidently forgot to use it in the conditional, and used not_a instead. * btorsim: implement rol and ror This is a simple implementation delegating to sll and srl and or-ing the results together * btorsim: implement smod Smod implementation taken from boolector (src/btorexp.c:1528) --------- Signed-off-by: Ferdinand Bachmann <[email protected]>
- Loading branch information
Showing
3 changed files
with
130 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters