Skip to content

Commit

Permalink
Let's not bother with debug printing
Browse files Browse the repository at this point in the history
  • Loading branch information
msooseth committed Aug 1, 2024
1 parent cbf8156 commit 090db87
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions cli/cli.hs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@ main = withUtf8 $ do
Right out -> do
-- TODO: which functions here actually require a BuildOutput, and which can take it as a Maybe?
testOpts <- liftIO $ unitTestOptions cmd solvers (Just out)
liftIO $ when env.config.debug $ putStrLn $ "Running test with environment setup: " <> show env
res <- unitTest testOpts out.contracts
liftIO $ unless res exitFailure

Expand All @@ -249,9 +248,6 @@ equivalence cmd = do
}
calldata <- liftIO $ buildCalldata cmd
solver <- liftIO $ getSolver cmd
config <-readConfig
liftIO $ when config.debug $ putStrLn $ "Running equivalence check with veriOpts: " <>
show veriOpts <> " calldata: " <> show calldata <> " solver: " <> show solver
withSolvers solver 3 Nothing $ \s -> do
res <- equivalenceCheck s bytecodeA bytecodeB veriOpts calldata
case any isCex res of
Expand Down Expand Up @@ -339,9 +335,6 @@ assert cmd = do
, loopHeuristic = cmd.loopDetectionHeuristic
, rpcInfo = rpcinfo
}
config <-readConfig
liftIO $ when config.debug $ putStrLn $ "Running verify check with veriOpts: " <>
show veriOpts <> " calldata: " <> show calldata <> " solver: " <> show solver
(expr, res) <- verify solvers veriOpts preState (Just $ checkAssertions errCodes)
case res of
[Qed _] -> do
Expand Down
2 changes: 1 addition & 1 deletion src/EVM/Effects.hs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class Monad m => TTY m where

newtype Env = Env
{ config :: Config
} deriving Show
}

defaultEnv :: Env
defaultEnv = Env { config = defaultConfig }
Expand Down

0 comments on commit 090db87

Please sign in to comment.