Skip to content

Commit

Permalink
Remove MapIntToInt (#649)
Browse files Browse the repository at this point in the history
* Remove MapIntToInt

* Remove the map-int-to-int-file

* Set Version: 0.1.64

* Set Version: 0.1.71

---------

Co-authored-by: devops <[email protected]>
Co-authored-by: Jost Berthold <[email protected]>
  • Loading branch information
3 people authored Jun 27, 2024
1 parent 91f83ca commit b353017
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 496 deletions.
2 changes: 1 addition & 1 deletion media/201903-report-chalmers.md
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ This is the full definition of the `(memory.grow)` operation:
#then SIZE
#else -1
#fi ... </k>
<memAddrs> wrap(0) Int2Int|-> wrap(ADDR) </memAddrs>
<memAddrs> 0 |-> ADDR </memAddrs>
<memInst>
<memAddr> ADDR </memAddr>
<mmax> MAX </mmax>
Expand Down
6 changes: 3 additions & 3 deletions media/memory-demo/memory-spec.k
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ module MEMORY-SPEC
imports WASM

rule <k> ( memory.size ) => (i32.const SZ) ... </k>
<memAddrs> wrap(0) Int2Int|-> wrap(A) </memAddrs>
<memAddrs> 0 |-> A </memAddrs>
<memInst>
<memAddr> A </memAddr>
<memSize> SZ </memSize>
</memInst>

rule <k> (memory.grow (i32.const X)) => (i32.const SZ) ...</k>
<memAddrs> wrap(0) Int2Int|-> wrap(A) </memAddrs>
<memAddrs> 0 |-> A </memAddrs>
<memInst>
<memAddr> A </memAddr>
<memSize> SZ => (SZ +Int X) </memSize>
Expand All @@ -21,7 +21,7 @@ module MEMORY-SPEC
andBool SZ >=Int 0

rule <k> (memory.grow (i32.const X)) => (i32.const -1) ...</k>
<memAddrs> wrap(0) Int2Int|-> wrap(A) </memAddrs>
<memAddrs> 0 |-> A </memAddrs>
<memInst>
<memAddr> A </memAddr>
<memSize> SZ </memSize>
Expand Down
6 changes: 3 additions & 3 deletions media/memory-demo/wasm.k
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ endmodule
<spuriousMemoryFail> false </spuriousMemoryFail>

rule <k> (( memory ) ~> ELSE) => ELSE </k>
<memAddrs> .MapIntToInt => wrap(0) Int2Int|-> wrap(NEXT) </memAddrs>
<memAddrs> .Map => 0 |-> NEXT </memAddrs>
<nextMemAddr> NEXT => NEXT +Int 1 </nextMemAddr>
<mems>
(.Bag =>
Expand All @@ -118,7 +118,7 @@ endmodule
syntax Instr ::= "(" "memory.size" ")"
// --------------------------------------
rule <k> ( memory.size ) => ( i32.const SZ ) ... </k>
<memAddrs> wrap(0) Int2Int|-> wrap(A) </memAddrs>
<memAddrs> 0 |-> A </memAddrs>
<memInst>
<memAddr> A </memAddr>
<memSize> SZ </memSize>
Expand All @@ -131,7 +131,7 @@ endmodule
rule <k> (memory.grow I:Instr) => I ~> (memory.grow) ... </k>
rule <k> (memory.grow) => (i32.const SZ) ... </k>
<stack> < i32 > V : S => S </stack>
<memAddrs> wrap(0) Int2Int|-> wrap(A) </memAddrs>
<memAddrs> 0 |-> A </memAddrs>
<memInst>
<memAddr> A </memAddr>
<memSize> SZ => SZ +Int V </memSize>
Expand Down
2 changes: 1 addition & 1 deletion package/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.70
0.1.71
2 changes: 1 addition & 1 deletion pykwasm/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "pykwasm"
version = "0.1.70"
version = "0.1.71"
description = ""
authors = [
"Runtime Verification, Inc. <[email protected]>",
Expand Down
Loading

0 comments on commit b353017

Please sign in to comment.