diff --git a/booster/library/Booster/Pattern/ApplyEquations.hs b/booster/library/Booster/Pattern/ApplyEquations.hs index 590fc1234e..7a249ea2da 100644 --- a/booster/library/Booster/Pattern/ApplyEquations.hs +++ b/booster/library/Booster/Pattern/ApplyEquations.hs @@ -455,7 +455,14 @@ evaluatePattern :: Pattern -> io (Either EquationFailure Pattern, SimplifierCache) evaluatePattern def mLlvmLibrary smtSolver cache pat = - runEquationT def mLlvmLibrary smtSolver cache pat.constraints . evaluatePattern' $ pat + runEquationT + def + mLlvmLibrary + smtSolver + cache + (pat.constraints <> (Set.fromList . asEquations $ pat.substitution)) + . evaluatePattern' + $ pat -- version for internal nested evaluation evaluatePattern' ::