Skip to content

Commit d412468

Browse files
committed
Update changelog, too
Better variable naming
1 parent 7b87a4e commit d412468

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4040
- More symbolic overapproximation for Balance and ExtCodeHash opcodes, fixing
4141
CodeHash SMT representation
4242
- We no longer dispatch Props to SMT that can be solved by a simplification
43-
- Allow user to change the verbosity level. For the moment, this is only to
44-
print some warnings related to zero-address dereference
43+
- Allow user to change the verbosity level via `--verb`. For the moment, this is only to
44+
print some warnings related to zero-address dereference and to print `hemv test`'s
45+
output in case of failure
4546

4647
## Fixed
4748
- We now try to simplify expressions fully before trying to cast them to a concrete value
@@ -63,6 +64,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6364
- Warnings now lead printing FAIL. This way, users don't accidentally think that
6465
their contract is correct when there were cases/branches that hevm could not
6566
fully explore. Printing of issues is also now much more organized
67+
- `hevm test`'s flag ` --verbose` is now `--verb`, which also increases verbosity
68+
for other elements of the system
6669

6770
## [0.54.2] - 2024-12-12
6871

src/EVM/UnitTest.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ symRun opts@UnitTestOptions{..} vm (Sig testName types) = do
240240
let allReverts = not . (any Expr.isSuccess) $ ends
241241
let unexpectedAllRevert = allReverts && not shouldFail
242242
when conf.debug $ liftIO $ putStrLn $ "symRun -- (cex,warnings,unexpectedAllRevert): " <> show (any isCex results, warnings, unexpectedAllRevert)
243-
toPrint <- case (any isCex results, warnings, unexpectedAllRevert) of
243+
txtResult <- case (any isCex results, warnings, unexpectedAllRevert) of
244244
(False, False, False) -> do
245245
-- happy case
246246
pure $ " \x1b[32m[PASS]\x1b[0m " <> Text.unpack testName <> "\n"
@@ -256,7 +256,7 @@ symRun opts@UnitTestOptions{..} vm (Sig testName types) = do
256256
-- No cexes/errors/unknowns/partials, but all branches reverted
257257
pure $ " \x1b[31m[FAIL]\x1b[0m " <> Text.unpack testName <> "\n"
258258
<> " No reachable assertion violations, but all branches reverted\n"
259-
liftIO $ putStr toPrint
259+
liftIO $ putStr txtResult
260260
liftIO $ printWarnings ends results t
261261
pure (not (any isCex results), not (warnings || unexpectedAllRevert))
262262

0 commit comments

Comments
 (0)