Enum simplicity_sys::tests::TestUpTo
source · pub enum TestUpTo {
DecodeProgram,
DecodeWitness,
TypeInference,
FillWitnessData,
ComputeAmr,
ComputeImr,
ComputeCostUnbounded,
ComputeCostBounded,
CheckCellCount,
CheckBudget,
CheckOneOne,
Everything,
}
Expand description
How far to run the test
If you stop the test early, the returned output will be incomplete.
Variants§
DecodeProgram
Just decode the program, not the witnesses. Will compute and retrieve the root CMR.
DecodeWitness
Also decode witnesses into a bitstring
TypeInference
Also do type inference
FillWitnessData
Fill in the witness data, now that their types are known
ComputeAmr
Compute and retrieve the root AMR.
ComputeImr
Compute and retrieve the root IMR; check that all IMRs are unique
ComputeCostUnbounded
Compute and retrieve the expected cost without any bounds
ComputeCostBounded
Compute and retrieve the expected cost with strict bounds
CheckCellCount
Fail the analysis if insufficient cells are provided
CheckBudget
Fail the analysis if insufficient budget is provided
CheckOneOne
Check that the program is 1-1. This will exclude arbitrary expressions, so
you may want to stop at ComputeImr
to get the maximum merkle root coverage.
Everything
Evaluate the program and retrieve whether it succeded.
Trait Implementations§
source§impl Ord for TestUpTo
impl Ord for TestUpTo
source§impl PartialEq for TestUpTo
impl PartialEq for TestUpTo
source§impl PartialOrd for TestUpTo
impl PartialOrd for TestUpTo
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more