Add a lightweight check for requires
of equations when matching is indeterminate
#4053
Labels
requires
of equations when matching is indeterminate
#4053
When matching of a function equation is indeterminate, Booster will abort the application of this function. However, sometimes the requires clause of the same equation can fully instantiated with the determinate part of the matching substitution. If the instantiated requires clause is
false
, we are safe to conclude that the equation does not apply, and we can proceed to attempting other equations of this function.@PetarMax suggests to tweak the algorithm of applying equations:
requires
clause and simplify with LLVMfalse
--- we are safe to conclude the equation does not applyNotes:
The text was updated successfully, but these errors were encountered: