Skip to content

Commit

Permalink
Show Universes print weak above_prop constraints (used by minimization)
Browse files Browse the repository at this point in the history
  • Loading branch information
SkySkimmer committed Jul 22, 2024
1 parent aaa0c13 commit 7aa8c15
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions engine/uState.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1247,9 +1247,12 @@ let check_uctx_impl ~fail uctx uctx' =


(* XXX print above_prop too *)
let pr_weak prl {minim_extra={UnivMinim.weak_constraints=weak}} =
let pr_weak prl {minim_extra={UnivMinim.weak_constraints=weak; above_prop}} =
let open Pp in
prlist_with_sep fnl (fun (u,v) -> prl u ++ str " ~ " ++ prl v) (UPairSet.elements weak)
v 0 (
prlist_with_sep cut (fun (u,v) -> h (prl u ++ str " ~ " ++ prl v)) (UPairSet.elements weak)
++ if UPairSet.is_empty weak || Level.Set.is_empty above_prop then mt() else cut () ++
prlist_with_sep cut (fun u -> h (str "Prop <= " ++ prl u)) (Level.Set.elements above_prop))

let pr_sort_opt_subst uctx = QState.pr (pr_uctx_qvar uctx) uctx.sort_variables

Expand Down

0 comments on commit 7aa8c15

Please sign in to comment.