Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Test] Turn off CSE for the 'patternMatching' test #6251

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 5749488
| mem: 21176})
({cpu: 44508240
| mem: 160876})
105 changes: 56 additions & 49 deletions plutus-tx-plugin/test/AsData/Budget/9.6/patternMatching.uplc.golden
Original file line number Diff line number Diff line change
@@ -1,58 +1,65 @@
program
1.1.0
(\d ->
(\cse ->
(\lessThanInteger ->
(\cse ->
(\cse ->
(\cse ->
(\cse ->
addInteger
(addInteger
(\ds ->
(\ds ->
(\x ->
(\y ->
(\z ->
(\w ->
(\lessThanInteger ->
addInteger
(addInteger
(addInteger (addInteger cse cse) cse)
cse)
(addInteger
(addInteger
(addInteger (force x) (force y))
(force z))
(force w))
(force
(case
(lessThanInteger
(addInteger (force y) (force z))
(addInteger (force x) (force w)))
[ (delay (addInteger (force x) (force z)))
, (delay
(addInteger (force y) (force w))) ])))
(force
(case
(lessThanInteger
(addInteger cse cse)
(addInteger cse cse))
[ (delay (addInteger cse cse))
, (delay (addInteger cse cse)) ])))
(force
(case
(lessThanInteger
(addInteger cse cse)
(addInteger cse cse))
[ (delay (addInteger cse cse))
, (delay (addInteger cse cse)) ])))
(case cse [(\x y z w -> x)]))
(case cse [(\x y z w -> w)]))
(case cse [(\x y z w -> y)]))
(case cse [(\x y z w -> z)]))
(\x y ->
force ifThenElse
(lessThanInteger x y)
(constr 0 [])
(constr 1 [])))
((\tup ->
force
(force ifThenElse
(equalsInteger 0 (force (force fstPair) tup))
(delay
((\l ->
(\l ->
(addInteger (force z) (force y))
(addInteger (force w) (force x)))
[ (delay (addInteger (force z) (force x)))
, (delay
(addInteger (force w) (force y))) ])))
(\x y ->
force ifThenElse
(lessThanInteger x y)
(constr 0 [])
(constr 1 [])))
(delay (case (force ds) [(\x y z w -> w)])))
(delay (case (force ds) [(\x y z w -> z)])))
(delay (case (force ds) [(\x y z w -> y)])))
(delay (case (force ds) [(\x y z w -> x)])))
(force ds))
(delay
((\tup ->
force
(force ifThenElse
(equalsInteger 0 (force (force fstPair) tup))
(delay
((\l ->
(\l ->
(\z w ->
constr 0
[ (unIData (force headList l))
, (unIData (force headList l))
, z
, w ])
(unIData (force headList l))
(unIData (force headList (force tailList l))))
(\l ->
(\z w ->
constr 0
[ (unIData (force headList l))
, (unIData (force headList l))
, z
, w ])
(unIData (force headList l))
(unIData (force headList (force tailList l))))
(force tailList l))
(force tailList l))
(force tailList l))
(force (force sndPair) tup)))
(delay (case error [error]))))
(unConstrData d)))
(force (force sndPair) tup)))
(delay (case error [error]))))
(unConstrData d))))
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 7269599
| mem: 24274})
({cpu: 17110184
| mem: 58758})
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
({cpu: 12721754
| mem: 45526})
({cpu: 28330286
| mem: 104626})
171 changes: 103 additions & 68 deletions plutus-tx-plugin/test/AsData/Budget/9.6/recordFields-manual.uplc.golden
Original file line number Diff line number Diff line change
@@ -1,71 +1,106 @@
program
1.1.0
(\d ->
(\cse ->
(\cse ->
(\cse ->
(\cse ->
(\cse ->
(\cse ->
(\lessThanInteger ->
addInteger
(addInteger
(addInteger
(addInteger (addInteger cse cse) cse)
cse)
(force
(case
(lessThanInteger
(addInteger cse cse)
(addInteger cse cse))
[ (delay (addInteger cse cse))
, (delay (addInteger cse cse)) ])))
(force
(case
(lessThanInteger
(addInteger cse cse)
(addInteger cse cse))
[ (delay (addInteger cse cse))
, (delay (addInteger cse cse)) ])))
(\x y ->
force ifThenElse
(lessThanInteger x y)
(constr 0 [])
(constr 1 [])))
((\d ->
force
(force ifThenElse
(equalsInteger 0 cse)
(delay (unIData d))
(delay error)))
(force headList
(force tailList
(force tailList
(force tailList
(force (force sndPair) cse)))))))
((\d ->
force
(force ifThenElse
(equalsInteger 0 cse)
(delay (unIData d))
(delay error)))
(force headList
(force tailList
(force tailList (force (force sndPair) cse))))))
((\d ->
force
(force ifThenElse
(equalsInteger 0 cse)
(delay (unIData d))
(delay error)))
(force headList
(force tailList (force (force sndPair) cse)))))
((\d ->
force
(force ifThenElse
(equalsInteger 0 cse)
(delay (unIData d))
(delay error)))
(force headList (force (force sndPair) cse))))
(force (force fstPair) cse))
(unConstrData d))
(\int1Manual ->
(\x ->
(\int2Manual ->
(\y ->
(\int3Manual ->
(\z ->
(\int4Manual ->
(\w ->
(\lessThanInteger ->
addInteger
(addInteger
(addInteger
(addInteger (addInteger x y) z)
w)
(force
(case
(lessThanInteger
(addInteger y z)
(addInteger x w))
[ (delay (addInteger x z))
, (delay (addInteger y w)) ])))
(force
(case
(lessThanInteger
(addInteger
(int3Manual d)
(int2Manual d))
(addInteger
(int4Manual d)
(int1Manual d)))
[ (delay
(addInteger
(int3Manual d)
(int1Manual d)))
, (delay
(addInteger
(int4Manual d)
(int2Manual d))) ])))
(\x y ->
force ifThenElse
(lessThanInteger x y)
(constr 0 [])
(constr 1 [])))
(int4Manual d))
(\ds ->
(\tup ->
(\i ->
(\d ->
force
(force ifThenElse
(equalsInteger 0 i)
(delay (unIData d))
(delay error)))
(force headList
(force tailList
(force tailList
(force tailList
(force (force sndPair) tup))))))
(force (force fstPair) tup))
(unConstrData ds)))
(int3Manual d))
(\ds ->
(\tup ->
(\i ->
(\d ->
force
(force ifThenElse
(equalsInteger 0 i)
(delay (unIData d))
(delay error)))
(force headList
(force tailList
(force tailList
(force (force sndPair) tup)))))
(force (force fstPair) tup))
(unConstrData ds)))
(int2Manual d))
(\ds ->
(\tup ->
(\i ->
(\d ->
force
(force ifThenElse
(equalsInteger 0 i)
(delay (unIData d))
(delay error)))
(force headList
(force tailList (force (force sndPair) tup))))
(force (force fstPair) tup))
(unConstrData ds)))
(int1Manual d))
(\ds ->
(\tup ->
(\i ->
(\d ->
force
(force ifThenElse
(equalsInteger 0 i)
(delay (unIData d))
(delay error)))
(force headList (force (force sndPair) tup)))
(force (force fstPair) tup))
(unConstrData ds)))
Loading