forked from OCamlPro/alt-ergo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(BV): Do not lose explanations in bvmul (OCamlPro#1170)
* fix(BV): Do not lose explanations in bvmul The implementation of bvmul from OCamlPro#1144 introduced a soundness bug: when we do not know anything about the result, the explanation is dropped. This is because the implementation was performing mixing bitlist computation and creation of raw bitlist values. This patch fixes the implementation by performing all computations in [Z] and only adding the explanation at the end. * Add a test
- Loading branch information
1 parent
9e63382
commit 5d39cfd
Showing
4 changed files
with
265 additions
and
9 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
unknown |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
(set-logic QF_BV) | ||
(declare-const A (_ BitVec 2)) | ||
(declare-const B (_ BitVec 1)) | ||
(declare-const C (_ BitVec 3)) | ||
(assert (= (bvmul (_ bv3 4) (concat A (concat #b0 B))) (concat C #b1))) | ||
(check-sat) |