File tree 1 file changed +4
-4
lines changed
booster/library/Booster/Pattern
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -461,22 +461,22 @@ evaluatePattern' ::
461
461
LoggerMIO io =>
462
462
Pattern ->
463
463
EquationT io Pattern
464
- evaluatePattern' pat@ Pattern {term, ceilConditions} = withPatternContext pat $ do
464
+ evaluatePattern' pat@ Pattern {term, constraints, ceilConditions} = withPatternContext pat $ do
465
465
solver <- (. smtSolver) <$> getConfig
466
466
-- check the pattern's constraints for consistency, reporting an error if they are Bottom
467
467
withContext CtxConstraint
468
468
. withContext CtxDetail
469
- . withTermContext (coerce $ collapseAndBools pat . constraints)
469
+ . withTermContext (coerce $ collapseAndBools constraints)
470
470
$ pure ()
471
- consistent <- withContext CtxConstraint $ SMT. isSat solver pat . constraints
471
+ consistent <- withContext CtxConstraint $ SMT. isSat solver constraints
472
472
withContext CtxConstraint $ do
473
473
logMessage $
474
474
" Constraints consistency check returns: " <> show consistent
475
475
476
476
case consistent of
477
477
Right False -> do
478
478
-- the constraints are unsatisfiable, which means that the patten is Bottom
479
- throw . SideConditionFalse . collapseAndBools $ pat . constraints
479
+ throw . SideConditionFalse . collapseAndBools $ constraints
480
480
Left SMT. SMTSolverUnknown {} -> do
481
481
-- unlikely case of an Unknown response to a consistency check.
482
482
-- continue to preserver the old behaviour.
You can’t perform that action at this time.
0 commit comments