Skip to content

Commit

Permalink
fix bv abstract_selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
bclement-ocp committed Sep 4, 2024
1 parent 78ba9cc commit c90857a
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/lib/reasoners/bitv.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1320,7 +1320,21 @@ module Shostak(X : ALIEN) = struct

let term_extract _ = None, false

let abstract_selectors v acc = is_mine v, acc
let abstract_selectors v acc =
let acc, v =
List.fold_left_map (fun acc bv ->
match bv with
| { bv = Cte _ ; _ } -> acc, bv
| { bv = Other r ; sz } ->
let r', acc = X.abstract_selectors r acc in
acc, { bv = Other r' ; sz }
| { bv = Ext (r, i, j, r_sz) ; sz } ->
let r', acc = X.abstract_selectors r acc in
acc, { bv = Ext (r', i, j, r_sz) ; sz }
) acc v
in
is_mine v, acc


let solve r1 r2 pb =
Sig.{pb with sbt = List.rev_append (solve_bis r1 r2) pb.sbt}
Expand Down

0 comments on commit c90857a

Please sign in to comment.