Skip to content

Commit

Permalink
Consider substitution as constraints in evaluatePattern
Browse files Browse the repository at this point in the history
  • Loading branch information
geo2a committed Oct 16, 2024
1 parent 77c8c57 commit abf0354
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion booster/library/Booster/Pattern/ApplyEquations.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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' ::
Expand Down

0 comments on commit abf0354

Please sign in to comment.