Skip to content

Commit 55b910f

Browse files
committed
WIP
1 parent d4eeae8 commit 55b910f

File tree

7 files changed

+1674
-1067
lines changed

7 files changed

+1674
-1067
lines changed

src/lib/reasoners/adt_rel.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ module Domains = struct
181181
with Not_found ->
182182
Domain.unknown (X.type_info r)
183183

184-
let add r t =
184+
let init r t =
185185
match Th.embed r with
186186
| Alien _ when not (MX.mem r t.domains) ->
187187
(* We have to add a default domain if the key `r` is not in map in order
@@ -226,7 +226,7 @@ module Domains = struct
226226
let t = remove r t in
227227
tighten nr nd t
228228

229-
| exception Not_found -> add nr t
229+
| exception Not_found -> init nr t
230230

231231
(* [propagate f a t] iterates on all the changed domains of [t] since the
232232
last call of [propagate]. The list of changed domains is flushed after
@@ -421,7 +421,7 @@ let add r uf domains =
421421
| Ty.Tadt _ ->
422422
Debug.add r;
423423
let rr, _ = Uf.find_r uf r in
424-
Domains.add rr domains
424+
Domains.init rr domains
425425
| _ ->
426426
domains
427427

src/lib/reasoners/bitlist.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ let pp ppf { bits_set; bits_unk; ex } =
7979
Fmt.pf ppf "(0)"
8080
end;
8181
let width = Z.numbits bits_unk in
82-
for i = width - 1 downto 0 do
82+
for i = width downto 0 do
8383
if Z.testbit bits_set i then
8484
Fmt.pf ppf "1"
8585
else if Z.testbit bits_unk i then

0 commit comments

Comments
 (0)