Module solution

Source
Expand description

Items related to validating Solutions and SolutionSets.

Structs§

CheckPredicateConfig
Configuration options passed to check_predicate.
ConstraintsUnsatisfied
The index of each constraint that was not satisfied.
Ctx
Context for checking a predicate
DataFromSolution
The data outputs from solving a particular predicate.
Outputs
The outputs of checking a solution set.
PredicateErrors
Predicate checking failed for the solution at the given indices.
ProgramErrors
Program execution failed for the programs at the given node indices.

Enums§

DataOutput
Types of data output from a program.
InvalidSetStateMutations
check_set_state_mutations error.
InvalidSolution
check_solutions error.
InvalidSolutionSet
check_set error.
KvError
Error with a slot key or value.
MutationsError
Error with computing mutations.
PredicateError
check_predicate error.
PredicatesError
check_set_predicates error.
ProgramError
An error occurring during a program task.
RunMode
The mode the check is running in.

Constants§

MAX_KEY_SIZE
Maximum number of words in a slot key.
MAX_PREDICATE_DATA
Maximum number of predicate data of a solution.
MAX_SOLUTIONS
Maximum number of solutions within a solution set.
MAX_STATE_MUTATIONS
Maximum number of state mutations of a solution.
MAX_VALUE_SIZE
Maximum number of words in a slot value.

Traits§

GetPredicate
Required impl for retrieving access to any Solution’s Predicates during check.
GetProgram
Required impl for retrieving access to any Predicate’s Programs during check.

Functions§

check_and_compute_solution_set
Check the given solution set against the given predicates and and compute the post state mutations for this set.
check_and_compute_solution_set_two_pass
Check the given solution set against the given predicates and and compute the post state mutations for this set.
check_predicate
Checks the predicate of the solution within the given set at the given solution_index.
check_set
Validate a solution set, to the extent it can be validated without reference to its associated predicates.
check_set_predicates
Checks all of a SolutionSet’s Solutions against their associated Predicates.
check_set_state_mutations
Validate the solution set’s state mutations.
check_solutions
Validate the solution set’s slice of Solutions.

Type Aliases§

Cache
Cache of parent outputs, indexed by node index for a predicate.