Skip to content

Commit

Permalink
Only print UF logic once (fix 465a386)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-larraz committed Sep 30, 2024
1 parent d73f427 commit 1f4390c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/terms/termLib.ml
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,11 @@ let pp_print_features ?(enforce_logic=false) fmt l =
if not (L.mem Q l) then fprintf fmt "QF_"
else if L.cardinal l = 1 then fprintf fmt "UF";
if L.is_empty l then fprintf fmt "UF";
if L.mem A l then (
if (enforce_logic || Flags.Arrays.smt ()) then fprintf fmt "A"
else fprintf fmt "UF"
);
if L.mem UF l then fprintf fmt "UF";
let smt_arrays =
L.mem A l && (enforce_logic || Flags.Arrays.smt ())
in
if smt_arrays then fprintf fmt "A";
if L.mem UF l || (L.mem A l && not smt_arrays) then fprintf fmt "UF";
if L.mem BV l then fprintf fmt "BV";
if L.mem NA l then fprintf fmt "N"
else if L.mem LA l || L.mem IA l || L.mem RA l then fprintf fmt "L";
Expand Down

0 comments on commit 1f4390c

Please sign in to comment.