Skip to content

Commit

Permalink
Update BDD library and add bvashr test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Jonáš committed May 21, 2018
1 parent ffe47a1 commit 791a651
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
2 changes: 1 addition & 1 deletion BDD
Submodule BDD updated from 1a35b6 to b7383d
39 changes: 39 additions & 0 deletions tests/data/check_bvsge_bvashr0_16bit.smt2
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
(set-info :smt-lib-version 2.6)
(set-logic BV)
(set-info :source |
Generated by: Mathias Preiner
Generated on: 2018-04-06
Application: Verification of invertibility conditions generated in [1].
Target solver: Boolector, CVC4, Z3
Publication:
[1] Solving Quantified Bit-Vectors using Invertibility Conditions
Aina Niemetz, Mathias Preiner, Andrew Reynolds, Clark Barrett and Cesare Tinelli
To appear in CAV 2018
|)
(set-info :license "https://creativecommons.org/licenses/by/4.0/")
(set-info :category "crafted")
(set-info :status unsat)
(declare-fun s () (_ BitVec 16))
(declare-fun t () (_ BitVec 16))

(define-fun min () (_ BitVec 16)
(bvnot (bvlshr (bvnot (_ bv0 16)) (_ bv1 16)))
)
(define-fun max () (_ BitVec 16)
(bvnot min)
)

(define-fun SC ((s (_ BitVec 16)) (t (_ BitVec 16))) Bool
(bvsge (bvlshr max s) t)
)

(assert
(not
(and
(=> (SC s t) (exists ((x (_ BitVec 16))) (bvsge (bvashr x s) t)))
(=> (exists ((x (_ BitVec 16))) (bvsge (bvashr x s) t)) (SC s t))
)
)
)
(check-sat)
(exit)
1 change: 1 addition & 0 deletions tests/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ TEST_CASE( "Without approximations", "[noapprox]" )
REQUIRE( SolveWithoutApprox("../tests/data/nlzbe008.smt2") == UNSAT );
REQUIRE( SolveWithoutApprox("../tests/data/falseAndFalse.smt2") == UNSAT );
REQUIRE( SolveWithoutApprox("../tests/data/bvshl0.smt2") == SAT );
REQUIRE( SolveWithoutApprox("../tests/data/check_bvsge_bvashr0_16bit.smt2") == UNSAT );
}

TEST_CASE( "With variable approximations", "[variableapprox]" )
Expand Down

0 comments on commit 791a651

Please sign in to comment.