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.
Partial support of the primitive bvnot (OCamlPro#745)
* Support bnot in the solver of bitv.ml * Support partially the semantic of bvnot on uninterpreted semantic values of Bitv * Update opam files * Rename neg_mode and remove no_variables function * Add tests * Remove ppx_deriving dependency
- Loading branch information
Showing
4 changed files
with
94 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
unsat | ||
|
||
unsat | ||
|
||
unsat | ||
|
||
unsat | ||
|
||
unsat |
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,28 @@ | ||
(set-logic BV) | ||
(push 1) | ||
(assert (distinct #b0110 (bvnot #b1001))) | ||
(check-sat) | ||
(pop 1) | ||
|
||
(push 1) | ||
(assert (distinct #b0110 (bvnot (bvnot #b0110)))) | ||
(check-sat) | ||
(pop 1) | ||
|
||
(push 1) | ||
(assert (distinct #b1101 (bvnot ((_ extract 5 2) #b001011)))) | ||
(check-sat) | ||
(pop 1) | ||
|
||
(push 1) | ||
(declare-const x (_ BitVec 4)) | ||
(assert (distinct x (bvnot (bvnot x)))) | ||
(check-sat) | ||
(pop 1) | ||
|
||
(push 1) | ||
(declare-const x (_ BitVec 4)) | ||
(assert (= x (bvnot (bvadd #b0000 #b0000)))) | ||
(assert (distinct x #b1111)) | ||
(check-sat) | ||
(pop 1) |