Skip to content

Commit afd1734

Browse files
committed
kevm-pyk/evm: use function, not macro, for stack under/over-flow
1 parent c0c4ddd commit afd1734

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • kevm-pyk/src/kevm_pyk/kproj/evm-semantics

kevm-pyk/src/kevm_pyk/kproj/evm-semantics/evm.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,9 @@ The `#next [_]` operator initiates execution by:
377377
- `#stackDelta` is the delta the stack will have after the opcode executes.
378378

379379
```k
380-
syntax Bool ::= #stackUnderflow ( WordStack , OpCode ) [symbol(#stackUnderflow), macro]
381-
| #stackOverflow ( WordStack , OpCode ) [symbol(#stackOverflow), macro]
382-
// --------------------------------------------------------------------------------------
380+
syntax Bool ::= #stackUnderflow ( WordStack , OpCode ) [symbol(#stackUnderflow), function, total]
381+
| #stackOverflow ( WordStack , OpCode ) [symbol(#stackOverflow), function, total]
382+
// ------------------------------------------------------------------------------------------------
383383
rule #stackUnderflow( _WS , _POP:PushOp ) => false
384384
rule #stackUnderflow( _WS , _IOP:InvalidOp ) => false
385385
rule #stackUnderflow( _WS , _NOP:NullStackOp ) => false

0 commit comments

Comments
 (0)