Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(BV): Properly set fully interpreted operators #1073

Merged
merged 1 commit into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/lib/reasoners/bitv.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1464,7 +1464,10 @@ module Shostak(X : ALIEN) = struct
let compare = compare_mine
end)
*)
let fully_interpreted _ = true
let fully_interpreted sb =
match sb with
| Sy.Op (Concat | Extract _ | BVnot) -> true
| _ -> false

let term_extract _ = None, false

Expand Down
3 changes: 3 additions & 0 deletions src/lib/reasoners/sig.mli
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ module type SHOSTAK = sig

val print : Format.formatter -> t -> unit

(** return true if the symbol is fully interpreted by the theory, i.e. it
is fully embedded into semantic values and does not need term-level
congruence *)
val fully_interpreted : Symbols.t -> bool

val abstract_selectors : t -> (r * r) list -> r * (r * r) list
Expand Down
Loading