Skip to content

Commit 1425d9c

Browse files
authored
Merge pull request #630 from ethereum/removing-ioact
Removing IOAct which was not used
2 parents 828edc1 + 26f7cb9 commit 1425d9c

File tree

4 files changed

+1
-15
lines changed

4 files changed

+1
-15
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1919
- We now try to simplify expressions fully before trying to cast them to a concrete value
2020
This should improve issues when "Unexpected Symbolic Arguments to Opcode" was
2121
unnecessarily output
22+
- Removed dead code related to IOAct in the now deprecated and removed debugger
2223

2324
## [0.54.2] - 2024-12-12
2425

src/EVM/Stepper.hs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ module EVM.Stepper
1010
, wait
1111
, ask
1212
, evm
13-
, evmIO
1413
, enter
1514
, interpret
1615
)
@@ -49,9 +48,6 @@ data Action t s a where
4948
-- | Embed a VM state transformation
5049
EVM :: EVM t s a -> Action t s a
5150

52-
-- | Perform an IO action
53-
IOAct :: IO a -> Action t s a
54-
5551
-- | Type alias for an operational monad of @Action@
5652
type Stepper t s a = Program (Action t s) a
5753

@@ -72,9 +68,6 @@ ask = singleton . Ask
7268
evm :: EVM t s a -> Stepper t s a
7369
evm = singleton . EVM
7470

75-
evmIO :: IO a -> Stepper t s a
76-
evmIO = singleton . IOAct
77-
7871
-- | Run the VM until final result, resolving all queries
7972
execFully :: Stepper Concrete s (Either EvmError (Expr Buf))
8073
execFully =
@@ -121,9 +114,6 @@ interpret fetcher vm = eval . view
121114
m <- fetcher q
122115
vm' <- liftIO $ stToIO $ execStateT m vm
123116
interpret fetcher vm' (k ())
124-
IOAct m -> do
125-
r <- liftIO m
126-
interpret fetcher vm (k r)
127117
EVM m -> do
128118
(r, vm') <- liftIO $ stToIO $ runStateT m vm
129119
interpret fetcher vm' (k r)

src/EVM/SymExec.hs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,6 @@ interpret fetcher maxIter askSmtIters heuristic vm =
306306
Stepper.Exec -> do
307307
(r, vm') <- liftIO $ stToIO $ runStateT exec vm
308308
interpret fetcher maxIter askSmtIters heuristic vm' (k r)
309-
Stepper.IOAct q -> do
310-
r <- liftIO q
311-
interpret fetcher maxIter askSmtIters heuristic vm (k r)
312309
Stepper.Ask (PleaseChoosePath cond continue) -> do
313310
frozen <- liftIO $ stToIO $ freezeVM vm
314311
evalLeft <- toIO $ do

test/EVM/Test/Tracing.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,8 +581,6 @@ interpretWithTrace fetcher =
581581
vm' <- liftIO $ stToIO $ State.execStateT m vm
582582
assign _1 vm'
583583
interpretWithTrace fetcher (k ())
584-
Stepper.IOAct q ->
585-
liftIO q >>= interpretWithTrace fetcher . k
586584
Stepper.EVM m -> do
587585
vm <- use _1
588586
(r, vm') <- liftIO $ stToIO $ State.runStateT m vm

0 commit comments

Comments
 (0)