Skip to content

Commit

Permalink
No trimming of split constraints when printed (#4644)
Browse files Browse the repository at this point in the history
This PR disables the trimming of split constraints when showing a KCFG. 

The reason for this is as follows:
- the constraints guide the debugging of Kontrol proofs in many cases,
and it is likely that they will serve a similar purpose for other
semantics;
- if `--no-minimize` is turned on, which disables the trimming, the KCFG
will also contain all of the substitutions printed explicitly, which are
very large and hinder navigation through the KCFG considerably.
  • Loading branch information
PetarMax authored Sep 18, 2024
1 parent 937c70c commit 5df9ce4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyk/src/pyk/kcfg/show.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def _print_csubst(
_constraint_strs = [
self.kprint.pretty_print(ml_pred_to_bool(constraint, unsafe=True)) for constraint in csubst.constraints
]
constraint_strs = _multi_line_print('constraint', _constraint_strs, 'true', max_width=max_width)
constraint_strs = _multi_line_print('constraint', _constraint_strs, 'true')
if len(csubst.subst.minimize()) > 0 and minimize:
subst_strs = ['subst: ...']
else:
Expand Down

0 comments on commit 5df9ce4

Please sign in to comment.