Skip to content

Commit f810009

Browse files
authored
Proper purity check for unsaturated builtins (#6974)
* refactor: extract test lib from the Purity spec * UPLC term purity tests and fixes * refactor (formatting): wrap a long line * refactor: replace [Arg] with AppCtx to make builtin purity similar for IR and UPLC * Purity IR: ifThenElse test * refactor: move AppCtx and related functions to `Contexts` module. * feat: use pretty-simple for prettier equality assertions * tests: specify expected eval order * fix: evaluation order in purity evaluation * test: update golden files for budget evaluations and UPLC programs * s/eval/evalThis/ * Rename Analysis.Spec.Lib to Analysis.Lib * test: add golden file for if-then-else evaluation and remove redundant test case * testApplyNoTermParam has 2 cases in it * Changelog entry.
1 parent 1289964 commit f810009

40 files changed

+2384
-2048
lines changed

cardano-constitution/test/Cardano/Constitution/Validator/Data/GoldenTests/sorted.uplc.golden

+764-764
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2164
1+
2159
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ExBudget {exBudgetCPU = ExCPU 864154341, exBudgetMemory = ExMemory 4265388}
1+
ExBudget {exBudgetCPU = ExCPU 864058341, exBudgetMemory = ExMemory 4264788}
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ExBudget {exBudgetCPU = ExCPU 83887267, exBudgetMemory = ExMemory 368403}
1+
ExBudget {exBudgetCPU = ExCPU 83791267, exBudgetMemory = ExMemory 367803}

cardano-constitution/test/Cardano/Constitution/Validator/Data/GoldenTests/unsorted.uplc.golden

+836-839
Large diffs are not rendered by default.

plutus-benchmark/bls12-381-costs/test/9.6/bls12-381-costs.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ VRF example
103103

104104
n Script size CPU usage Memory usage
105105
----------------------------------------------------------------------
106-
- 677 (4.1%) 1218917236 (12.2%) 36349 (0.3%)
106+
- 674 (4.1%) 1218869236 (12.2%) 36049 (0.3%)
107107

108108
G1 Verify
109109

0 commit comments

Comments
 (0)