Skip to content

Commit

Permalink
Use is_cte_abstract for constant checks
Browse files Browse the repository at this point in the history
  • Loading branch information
bclement-ocp committed Sep 29, 2023
1 parent 6409856 commit f1381aa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/lib/reasoners/bitv.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1371,9 +1371,10 @@ module Shostak(X : ALIEN) = struct
constant in its equivalence class, bail out *)
let biv = embed r in
if is_cte_abstract biv || List.exists
(fun (t, x) ->
let { E.f; ty; _ } = E.term_view t in
is_mine_symb f ty && X.leaves x == [] ) eq
(fun (_, x) ->
match X.extract x with
| Some b -> is_cte_abstract b
| None -> false) eq
then None else
let sz = List.fold_left (fun tot { sz; _ } -> tot + sz) 0 biv in
(* Only try to be distinct from constants. *)
Expand Down

0 comments on commit f1381aa

Please sign in to comment.