File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,8 @@ module Make(CT : Theory.Core) = struct
166
166
data@@ [dst := CT. ite ~? cnd exp (var dst)]
167
167
168
168
169
- let branch cnd t f =
170
- data@@ [CT. branch (holds cnd) (seq t) (seq f)]
169
+ let branch cnd t f = match cnd with
170
+ | `AL -> data [seq t]
171
+ | _ -> data@@ [CT. branch (holds cnd) (seq t) (seq f)]
171
172
172
173
end
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ module Make(CT : Theory.Core) = struct
18
18
let borrow_from_sub ~rn ~rm = bit (rn < rm)
19
19
20
20
let movi8 rd x = it_set rd (const x) @@ fun v -> [
21
- v := const x;
22
21
nf := if Int. (x lsr 7 = 1 ) then bit1 else bit0;
23
22
zf := if Int. (x = 0 ) then bit1 else bit0;
24
23
]
@@ -58,11 +57,9 @@ module Make(CT : Theory.Core) = struct
58
57
vf := overflow_from_add (var r) (var rn) (var rm);
59
58
]
60
59
61
- let addspi off =
62
- it_set sp (var sp + const off) @@ fun _ -> []
60
+ let addspi off = sp < -? var sp + const off
63
61
64
- let addrspi rd off =
65
- it_set rd (var sp + const off) @@ fun _ -> []
62
+ let addrspi rd off = rd < -? var sp + const off
66
63
67
64
let cmp x y r = [
68
65
nf := msb (var r);
You can’t perform that action at this time.
0 commit comments