Skip to main content

check_op

Function check_op 

Source
pub fn check_op(info: &OpInfo, seed: u64) -> Vec<Failure>
Expand description

Checks every sample of info for its declared element types with the interpreter and the native backend, and returns the failures.

For each sample, it checks that:

  1. the primitive accepts the arguments, and the IR is well typed,
  2. the interpreter’s results have the types abstract_eval predicts,
  3. the native backend gives the same results bit for bit,
  4. the results match the sample’s expected values, if any.