Skip to content

Commit

Permalink
New module execute, in order to import expression.
Browse files Browse the repository at this point in the history
  • Loading branch information
mariaKt committed Nov 5, 2024
1 parent edb5c40 commit 97c33eb
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/solidity.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ requires "plugin/krypto.md"
module SOLIDITY-CONFIGURATION
imports SOLIDITY-DATA
imports SOLIDITY-SYNTAX
imports SOLIDITY-ULM-EXECUTE-SYNTAX
imports BYTES
imports K-EQUAL
imports ULM
Expand Down Expand Up @@ -81,8 +82,28 @@ module SOLIDITY-CONFIGURATION
<gas> $GAS:Int </gas>
</exec>
endmodule
```

```k
module SOLIDITY-ULM-EXECUTE-SYNTAX
imports BOOL
imports BYTES
syntax KItem ::= execute(Bool, Bytes)
endmodule
```

```k
module SOLIDITY-ULM-EXECUTE
imports SOLIDITY-CONFIGURATION
imports SOLIDITY-DATA
imports SOLIDITY-SYNTAX
imports SOLIDITY-EXPRESSION
imports BYTES
imports K-EQUAL
// The active contract should be the last one in the list of contracts as
// decoded by the provided $PGM.
rule <k> execute(true, B) => List2Statements(INIT) ~> B </k>
Expand Down Expand Up @@ -289,6 +310,7 @@ module SOLIDITY
imports SOLIDITY-STATEMENT
imports SOLIDITY-FUNCTION-SELECTORS
imports SOLIDITY-ULM-SIGNATURE-IMPLEMENTATION
imports SOLIDITY-ULM-EXECUTE
rule <k> _:PragmaDefinition Ss:SourceUnits => Ss ...</k>
rule S:SourceUnit Ss:SourceUnits => S ~> Ss
Expand Down

0 comments on commit 97c33eb

Please sign in to comment.