Skip to content

Commit

Permalink
pykwasm/src/pykwasm/kdist/wasm-semantics/wasm.md: whitespace changes
Browse files Browse the repository at this point in the history
  • Loading branch information
traiansf committed Dec 16, 2024
1 parent 7761ac8 commit 593e621
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions pykwasm/src/pykwasm/kdist/wasm-semantics/wasm.md
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ The importing and exporting parts of specifications are dealt with in the respec
...
</globals>
requires #typeMatches(TYP, VAL)
```

The `get` and `set` instructions read and write globals.
Expand Down Expand Up @@ -705,7 +705,7 @@ The `get` and `set` instructions read and write globals.
</tabInst>
requires 0 <=Int I
andBool I <Int size(TDATA)
rule [tableGet-trap]:
<instrs> #tableGet( TADDR, I) => trap ... </instrs>
<tabInst>
Expand Down Expand Up @@ -733,7 +733,7 @@ The `get` and `set` instructions read and write globals.
<tabAddrs> ... TID |-> TADDR ... </tabAddrs>
...
</moduleInst>
rule [tableSet-oob]:
<instrs> #tableSet(TADDR, _VAL, I) => trap ... </instrs>
<tabInst>
Expand Down Expand Up @@ -841,7 +841,7 @@ The `get` and `set` instructions read and write globals.
// ------------------------------------------------------
rule [tableFill-zero]:
<instrs> #tableFill(_, 0, _, _) => .K ... </instrs>
rule [tableFill-loop]:
<instrs> #tableFill(TID, N, RVAL, I)
=> <i32> I
Expand Down Expand Up @@ -1618,7 +1618,7 @@ Element Segments
syntax Alloc ::= allocelem(RefValType, ListRef, OptionalId)
// -----------------------------------------------------
rule [elem-active]:
<instrs> #elem(TYPE:RefValType, INIT:ListRef, MODE:ElemMode, OID:OptionalId)
<instrs> #elem(TYPE:RefValType, INIT:ListRef, MODE:ElemMode, OID:OptionalId)
=> allocelem(TYPE, INIT, OID)
~> #elemAux(size(INIT), MODE)
...
Expand Down Expand Up @@ -1669,11 +1669,11 @@ Element Segments
syntax ListRef ::= resolveAddrs(ListInt, ListRef) [function]
// -----------------------------------------------------------
rule resolveAddrs(_, .ListRef) => .ListRef
rule resolveAddrs(FADDRS, ListItem(<TYP> I) IS)
=> ListItem(<TYP> FADDRS {{ I }} orDefault -1) resolveAddrs(FADDRS, IS)
rule resolveAddrs(FADDRS, ListItem(<TYP> null) IS)
=> ListItem(<TYP> null) resolveAddrs(FADDRS, IS)
rule resolveAddrs(FADDRS, ListItem(<TYP> I) IS)
=> ListItem(<TYP> FADDRS {{ I }} orDefault -1) resolveAddrs(FADDRS, IS)
rule resolveAddrs(FADDRS, ListItem(<TYP> null) IS)
=> ListItem(<TYP> null) resolveAddrs(FADDRS, IS)
```

Data Segments
Expand Down

0 comments on commit 593e621

Please sign in to comment.