Skip to content

Commit

Permalink
better wording
Browse files Browse the repository at this point in the history
  • Loading branch information
LeventErkok committed Nov 5, 2024
1 parent a5806c0 commit 3d9b021
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Data/SBV/Tools/BMC.hs
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ bmcWith kind cfg mbLimit chatty setup initial trans goal
query $ do state <- create
constrain $ initial state
go 0 state []
where (what, badResult) = case kind of
Cover -> ("BMC Cover", "Cover can't be established.")
Refute -> ("BMC Refute", "Cannot refute the claim.")
where (what, badResult, goodResult) = case kind of
Cover -> ("BMC Cover", "Cover can't be established.", "Satisfying")
Refute -> ("BMC Refute", "Cannot refute the claim.", "Failing")

go i _ _
| Just l <- mbLimit, i >= l
Expand All @@ -116,7 +116,7 @@ bmcWith kind cfg mbLimit chatty setup initial trans goal

case cs of
DSat{} -> error $ what ++ ": Solver returned an unexpected delta-sat result."
Sat -> do when chatty $ io $ putStrLn $ what ++ ": Solution found at iteration " ++ show i
Sat -> do when chatty $ io $ putStrLn $ what ++ ": " ++ goodResult ++ " state found at iteration " ++ show i
ms <- mapM project (curState : sofar)
return $ Right (i, reverse ms)
Unk -> do when chatty $ io $ putStrLn $ what ++ ": Backend solver said unknown at iteration " ++ show i
Expand Down
2 changes: 1 addition & 1 deletion Documentation/SBV/Examples/ProofTools/BMC.hs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ problem lim initial = bmcCover (Just lim) True setup initial trans goal
-- BMC Cover: Iteration: 1
-- BMC Cover: Iteration: 2
-- BMC Cover: Iteration: 3
-- BMC Cover: Solution found at iteration 3
-- BMC Cover: Satisfying state found at iteration 3
-- Right (3,[(0,10),(0,6),(0,2),(2,2)])
--
-- As expected, there's a solution in this case. Furthermore, since the BMC engine
Expand Down
2 changes: 1 addition & 1 deletion Documentation/SBV/Examples/Puzzles/DieHard.hs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ instance Queriable IO SState where
-- BMC Cover: Iteration: 4
-- BMC Cover: Iteration: 5
-- BMC Cover: Iteration: 6
-- BMC Cover: Solution found at iteration 6
-- BMC Cover: Satisfying state found at iteration 6
-- Big: 0, Small: 0 (Initial)
-- Big: 5, Small: 0 (FillBig)
-- Big: 2, Small: 3 (BigToSmall)
Expand Down

0 comments on commit 3d9b021

Please sign in to comment.