зеркало из https://github.com/microsoft/mcBV.git
Added simplified test cases for #1
This commit is contained in:
Родитель
cc9646dadf
Коммит
d9a099f30a
|
@ -1,12 +1,12 @@
|
|||
(set-logic QF_BV)
|
||||
|
||||
(declare-fun a () (_ BitVec 32))
|
||||
(declare-fun b () (_ BitVec 32))
|
||||
(declare-fun c () (_ BitVec 32))
|
||||
(declare-fun a () (_ BitVec 8))
|
||||
(declare-fun b () (_ BitVec 8))
|
||||
(declare-fun c () (_ BitVec 8))
|
||||
|
||||
(assert (bvugt a #x0000A000))
|
||||
(assert (bvugt b #x0000A000))
|
||||
(assert (bvuge c #xFFFFFFF0))
|
||||
(assert (bvugt a #x0A))
|
||||
(assert (bvugt b #x0A))
|
||||
(assert (bvuge c #xF0))
|
||||
|
||||
(assert (= c (bvmul a b)))
|
||||
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
(set-logic QF_BV)
|
||||
|
||||
(declare-fun a () (_ BitVec 8))
|
||||
(declare-fun b () (_ BitVec 8))
|
||||
;;(declare-fun c () (_ BitVec 8))
|
||||
|
||||
(assert (bvugt a #x0A))
|
||||
(assert (bvugt b #x0A))
|
||||
;;(assert (bvuge c #xF0))
|
||||
;;(assert (= c (bvmul a b)))
|
||||
|
||||
(check-sat)
|
||||
;; (get-model)
|
|
@ -1,14 +1,13 @@
|
|||
(set-logic QF_BV)
|
||||
|
||||
(declare-fun a () (_ BitVec 8))
|
||||
(declare-fun b () (_ BitVec 8))
|
||||
(declare-fun c () (_ BitVec 8))
|
||||
(declare-fun a () (_ BitVec 32))
|
||||
(declare-fun b () (_ BitVec 32))
|
||||
(declare-fun c () (_ BitVec 32))
|
||||
|
||||
(assert (bvugt a #x0A))
|
||||
(assert (bvugt b #x0A))
|
||||
(assert (bvuge c #xF0))
|
||||
(assert (bvugt a #x0000A000))
|
||||
(assert (bvugt b #x0000A000))
|
||||
(assert (bvuge c #xFFFFFFF0))
|
||||
|
||||
(assert (= c (bvmul a b)))
|
||||
|
||||
(check-sat)
|
||||
;; (get-model)
|
||||
|
|
Загрузка…
Ссылка в новой задаче