-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(BV): Add support for bv2nat/int2bv normal forms
Currently, Alt-Ergo knows the value of [bv2nat] and [int2bv] on constants. We also perform some simplifications during semantic value creation; however, these simplifications are not integrated into the rest of the solver. For instance, we know that [bv2nat(x @ y)] is equal to [bv2nat(x) * 2^n + bv2nat(y)] (where [n] is the bit-width of [y]), but we don't know that [z] is equal to the same under the hypothesis that [z = x @ y]. This patch moves these simplifications to the [Bitv_rel] module, making them an integral part of the solving process. Since we can't compute [bv2nat] (or [int2bv]) of an arbitrary semantic value, we generate fresh variables to represent them when needed.
- Loading branch information
1 parent
9ba6653
commit 5334a45
Showing
20 changed files
with
2,632 additions
and
246 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
Oops, something went wrong.