This commit is contained in:
Simon Cruanes 2022-02-15 16:57:25 -05:00
parent f3947f2237
commit 5b0a2ad4a4
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -853,6 +853,7 @@ module Make(A : ARG)
f self.si
~add:(fun t u ->
if not (M.mem model t) then (
Log.debugf 20 (fun k->k "(@[smt.model-complete@ %a@ :with-val %a@])" Term.pp t Term.pp u);
M.replace model t u
));
in
@ -869,7 +870,10 @@ module Make(A : ARG)
(* try each model hook *)
let rec try_hooks_ = function
| [] -> N.term repr
| [] ->
let t = N.term repr in
Log.debugf 20 (fun k->k "(@[smt.model.default-to-repr@ %a@])" Term.pp t);
t
| h :: hooks ->
begin match h ~recurse:(fun _ n -> val_for_class n) self.si repr with
| None -> try_hooks_ hooks