Add PlutusV3 conformance tests and also control budgets

There were some odd discrepancy for `integerToByteString` on the mem
  side. Either 1 or about 1000 mem units off; which I couldn't quite
  figure out. Yet, it proves useful to validate builtin at large and
  ensure we have a valid cost model for v3.
This commit is contained in:
KtorZ
2024-08-14 02:42:04 +02:00
parent f879f6d183
commit 2cb87f4f8f
2893 changed files with 6385 additions and 13 deletions

View File

@@ -0,0 +1,91 @@
(program
1.0.0
[
[
[
(force
(delay
(lam
b
(lam
x
(lam
y
[
[ [ [ (force (builtin ifThenElse)) b ] x ] y ] (con unit ())
]
)
)
)
)
)
[
(lam
x0
[
[
(builtin equalsByteString)
[
(builtin sha2_256) [ (builtin sha3_256) (con bytestring #64) ]
]
]
x0
]
)
[
[
(builtin appendByteString)
[
(lam x1 [ (builtin sha3_256) (con bytestring #78) ])
[ (builtin sha3_256) (con bytestring #726e) ]
]
]
(con bytestring #6973)
]
]
]
[
(force (force (delay (delay (lam x (lam y x))))))
[
(lam
x0
[
(lam x2 x0)
[ (builtin sha2_256) [ (builtin sha3_256) (con bytestring #) ] ]
]
)
[
[
(builtin subtractInteger)
[
[
(builtin addInteger)
[
[ (builtin subtractInteger) (con integer 2) ]
(con integer 2)
]
]
[
[ (builtin subtractInteger) (con integer 1) ] (con integer 3)
]
]
]
[
(lam
x1
[
[ (builtin subtractInteger) (con integer 3) ] (con integer 3)
]
)
[
[ (builtin equalsByteString) (con bytestring #6c7a) ]
(con bytestring #6673)
]
]
]
]
]
]
[ (force (force (delay (delay (lam x (lam y x)))))) (con integer 0) ]
]
)

View File

@@ -0,0 +1,2 @@
({cpu: 13663363
| mem: 9642})

View File

@@ -0,0 +1 @@
(program 1.0.0 (con integer 0))