File tree 2 files changed +9
-5
lines changed
regression/smt2_solver/basic-bv1 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 14
14
(define-fun b09 () Bool (= (bvlshr #xf0 #x03 ) #x1e )) ; unsigned (logical) shift right
15
15
(define-fun b10 () Bool (= (bvashr #xf0 #x03 ) #xfe )) ; signed (arithmetical) shift right#x0a
16
16
17
+ ; Multi-ary variants, where applicable
18
+ (define-fun b11 () Bool (= (bvadd #x07 #x03 #x01 ) #x0b )) ; addition
19
+ (define-fun b12 () Bool (= (bvmul #x07 #x03 #x01 ) #x15 )) ; multiplication
20
+
17
21
; rotation
18
- (define-fun b11 () Bool (= ((_ rotate_left 2 ) #xf7 ) #xdf )) ; rotation left
19
- (define-fun b12 () Bool (= ((_ rotate_right 2 ) #x07 ) #xc1 )) ; rotation right
22
+ (define-fun b13 () Bool (= ((_ rotate_left 2 ) #xf7 ) #xdf )) ; rotation left
23
+ (define-fun b14 () Bool (= ((_ rotate_right 2 ) #x07 ) #xc1 )) ; rotation right
20
24
21
25
; Bitwise Operations
22
26
63
67
; all must be true
64
68
65
69
(assert (not (and
66
- b01 b02 b03 b04 b05 b06 b07 b08 b09 b10 b11 b12
70
+ b01 b02 b03 b04 b05 b06 b07 b08 b09 b10 b11 b12 b13 b14
67
71
d01
68
72
power-test
69
73
p1 p2 p3 p4 p5 p6 p7 p8)))
Original file line number Diff line number Diff line change @@ -1034,8 +1034,8 @@ void smt2_parsert::setup_expressions()
1034
1034
expressions[" bvadd" ] = [this ] { return multi_ary (ID_plus, operands ()); };
1035
1035
expressions[" +" ] = [this ] { return multi_ary (ID_plus, operands ()); };
1036
1036
expressions[" bvsub" ] = [this ] { return binary (ID_minus, operands ()); };
1037
- expressions[" bvmul" ] = [this ] { return binary (ID_mult, operands ()); };
1038
- expressions[" *" ] = [this ] { return binary (ID_mult, operands ()); };
1037
+ expressions[" bvmul" ] = [this ] { return multi_ary (ID_mult, operands ()); };
1038
+ expressions[" *" ] = [this ] { return multi_ary (ID_mult, operands ()); };
1039
1039
1040
1040
expressions[" -" ] = [this ] {
1041
1041
auto op = operands ();
You can’t perform that action at this time.
0 commit comments