Commit 45c0b09
PyK: Misc enhancements to KCFG and anti-unification (#4775)
* KCFG: Shorten log message for easier readability
This brings the more important parts of the messages into focus.
* CTerm.anti_unify: Don't call ml_pred_to_bool unless necessary
Since these values are only used if keep_values is set, we do not need
to always
compute them. In addition, it avoids exceptions when the predicate
cannot be
converted to a bool expression: e.g. when using #Ceil as a side
condition
This is only a work-around (it would
still break for a #Ceil side condition, if keep_values=True), but lets
us move forward without risking
breaking other projects that rely on the original behaviour.
* pyk:KCFGShow.to_module: Thread imports and defunc_with parameters
through to KCFG.to_module
This lets us use those options for printing the modules.
---------
Co-authored-by: Everett Hildenbrandt <[email protected]>1 parent 2501a51 commit 45c0b09
3 files changed
+24
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
208 | | - | |
209 | 207 | | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | 208 | | |
217 | 209 | | |
218 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
571 | | - | |
| 571 | + | |
572 | 572 | | |
573 | 573 | | |
574 | 574 | | |
| |||
711 | 711 | | |
712 | 712 | | |
713 | 713 | | |
714 | | - | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
715 | 720 | | |
716 | | - | |
| 721 | + | |
717 | 722 | | |
718 | 723 | | |
719 | 724 | | |
| |||
723 | 728 | | |
724 | 729 | | |
725 | 730 | | |
| 731 | + | |
726 | 732 | | |
727 | 733 | | |
728 | | - | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
729 | 737 | | |
730 | 738 | | |
731 | 739 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
| 314 | + | |
| 315 | + | |
314 | 316 | | |
315 | 317 | | |
316 | 318 | | |
| |||
320 | 322 | | |
321 | 323 | | |
322 | 324 | | |
323 | | - | |
| 325 | + | |
324 | 326 | | |
325 | 327 | | |
326 | 328 | | |
| |||
0 commit comments