Skip to content

Commit 3f29753

Browse files
committed
Correct typos and test description
1 parent 67bf458 commit 3f29753

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

booster/library/Booster/Pattern/ApplyEquations.hs

+3-5
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,6 @@ evaluatePattern ::
457457
evaluatePattern def mLlvmLibrary smtSolver cache pat =
458458
runEquationT def mLlvmLibrary smtSolver cache pat.constraints . evaluatePattern' $ pat
459459

460-
-- version for internal nested evaluation
461460
-- version for internal nested evaluation
462461
evaluatePattern' ::
463462
LoggerMIO io =>
@@ -470,17 +469,16 @@ evaluatePattern' pat@Pattern{term, constraints, ceilConditions} = withPatternCon
470469
withContext CtxConstraint $ do
471470
withContext CtxDetail . withTermContext (coerce $ collapseAndBools constraints) $ pure ()
472471
consistent <- SMT.isSat solver (Set.toList constraints)
473-
withContext CtxConstraint $
474-
logMessage $
475-
"Constraints consistency check returns: " <> show consistent
472+
logMessage $
473+
"Constraints consistency check returns: " <> show consistent
476474
pure consistent
477475
case consistent of
478476
SMT.IsUnsat -> do
479477
-- the constraints are unsatisfiable, which means that the patten is Bottom
480478
throw . SideConditionFalse . collapseAndBools $ constraints
481479
SMT.IsUnknown{} -> do
482480
-- unlikely case of an Unknown response to a consistency check.
483-
-- continue to preserver the old behaviour.
481+
-- continue to preserve the old behaviour.
484482
withContext CtxConstraint . logWarn . Text.pack $
485483
"Constraints consistency UNKNOWN: " <> show consistent
486484
pure ()

booster/test/rpc-integration/test-vacuous/README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ Rules `init` and `AC` introduce constraints on this variable:
4545
==Int 1 \and N =/=Int 1` (A contradiction in the initial constraints).
4646

4747
_Expected:_
48-
- Rewrite with `BD` (despite the contradiction)
49-
- The rewrite is stuck with `<k>d</k><int>N</int> \and...(contradiction)`
50-
- The result is simplified and discovered to be `vacuous` (with state `d`).
48+
- The state is simplified and discovered to be `vacuous` (with state `b`).
5149

5250
With `kore-rpc-dev`, some contradictions will be discovered before or while
5351
attempting to rewrite (at the time of writing, it returns `stuck`, though).

0 commit comments

Comments
 (0)