Skip to content

Commit

Permalink
Merge pull request #98 from Wasm-DSL/blocktype-opt
Browse files Browse the repository at this point in the history
Simplify $blocktype function
  • Loading branch information
rossberg authored Jun 3, 2024
2 parents 35cb68f + 7660c2a commit bb0435c
Show file tree
Hide file tree
Showing 8 changed files with 209 additions and 220 deletions.
3 changes: 1 addition & 2 deletions spectec/spec/wasm-3.0/8-reduction.watsup
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ rule Step_pure/select-false:

def $blocktype_(state, blocktype) : functype hint(macro "fblocktype")
def $blocktype_(z, _IDX x) = ft -- Expand: $type(z, x) ~~ FUNC ft
def $blocktype_(z, _RESULT t) = eps -> t
def $blocktype_(z, _RESULT eps) = eps -> eps ;; TODO: merge into t? case
def $blocktype_(z, _RESULT t?) = eps -> t?

rule Step_read/block:
z; val^m (BLOCK bt instr*) ~> (LABEL_ n `{eps} val^m instr*)
Expand Down
41 changes: 24 additions & 17 deletions spectec/src/backend-interpreter/interpreter.ml
Original file line number Diff line number Diff line change
Expand Up @@ -369,34 +369,41 @@ and merge env acc =

and assign lhs rhs env =
match lhs.it, rhs with
| VarE name, v -> Env.add name v env
| IterE ({ it = VarE n; _ }, _, List), ListV _ -> (* Optimized assign for simple IterE(VarE, ...) *)
Env.add n rhs env
| IterE ({ it = VarE name; _ }, _, (List|List1)), ListV _
| VarE name, _ -> Env.add name rhs env
| IterE (e, ids, iter), _ ->
let new_env, default_rhs, rhs_list =
match iter, rhs with
| (List | List1), ListV arr -> env, listV [||], Array.to_list !arr
| ListN (expr, None), ListV arr ->
let length = Array.length !arr |> Z.of_int |> numV in
assign expr length env, listV [||], Array.to_list !arr
| Opt, OptV opt -> env, optV None, Option.to_list opt
| ListN (_, Some _), ListV _ ->
fail_expr lhs "invalid assignment: iter with index cannot be an assignment target"
| _, _ ->
(* Convert rhs to iterable list *)
let rhs_default, rhs_iter =
match rhs with
| OptV opt -> optV None, Option.to_list opt
| ListV arr -> empty_list, Array.to_list !arr
| _ ->
fail_expr lhs
(sprintf
"invalid assignment: %s is not an iterable value" (string_of_value rhs)
)
in

let envs = List.map (fun v -> assign e v Env.empty) rhs_list in
(* Assign length variable *)
let env_with_length =
match iter with
| ListN (expr, opt) ->
if Option.is_some opt then
fail_expr lhs "invalid assignment: iter with index cannot be an assignment target"
else
let length = numV_of_int (List.length rhs_iter) in
assign expr length env
| _ -> env
in

(* Assign iter variable *)
ids
|> List.map (fun n -> n, default_rhs)
|> List.map (fun n -> n, rhs_default)
|> List.to_seq
|> Env.of_seq
|> List.fold_right merge envs
|> Env.union (fun _ _ v -> Some v) new_env
|> List.fold_right merge
(List.map (fun v -> assign e v Env.empty) rhs_iter)
|> Env.union (fun _ _ v -> Some v) env_with_length
| InfixE (lhs1, _, lhs2), TupV [rhs1; rhs2] ->
env |> assign lhs1 rhs1 |> assign lhs2 rhs2
| TupE lhs_s, TupV rhs_s
Expand Down
58 changes: 28 additions & 30 deletions spectec/test-frontend/TEST.md
Original file line number Diff line number Diff line change
Expand Up @@ -4746,9 +4746,7 @@ def $blocktype_(state : state, blocktype : blocktype) : functype
def $blocktype_{z : state, x : idx, ft : functype}(z, _IDX_blocktype(x)) = ft
-- Expand: `%~~%`($type(z, x), FUNC_comptype(ft))
;; 8-reduction.watsup
def $blocktype_{z : state, t : valtype}(z, _RESULT_blocktype(?(t))) = `%->%`_functype(`%`_resulttype([]), `%`_resulttype([t]))
;; 8-reduction.watsup
def $blocktype_{z : state}(z, _RESULT_blocktype(?())) = `%->%`_functype(`%`_resulttype([]), `%`_resulttype([]))
def $blocktype_{z : state, t? : valtype?}(z, _RESULT_blocktype(t?{t : valtype})) = `%->%`_functype(`%`_resulttype([]), `%`_resulttype(t?{t : valtype}))

;; 8-reduction.watsup
relation Step_read: `%~>%`(config, instr*)
Expand Down Expand Up @@ -5258,135 +5256,135 @@ relation Step: `%~>%`(config, config)
`%~>%`(`%;%`_config(z, instr*{instr : instr}), `%;%`_config(z, instr'*{instr' : instr}))
-- Step_read: `%~>%`(`%;%`_config(z, instr*{instr : instr}), instr'*{instr' : instr})

;; 8-reduction.watsup:224.1-226.36
;; 8-reduction.watsup:223.1-225.36
rule ctxt-label{z : state, n : n, instr_0* : instr*, instr* : instr*, z' : state, instr'* : instr*}:
`%~>%`(`%;%`_config(z, [`LABEL_%{%}%`_instr(n, instr_0*{instr_0 : instr}, instr*{instr : instr})]), `%;%`_config(z', [`LABEL_%{%}%`_instr(n, instr_0*{instr_0 : instr}, instr'*{instr' : instr})]))
-- Step: `%~>%`(`%;%`_config(z, instr*{instr : instr}), `%;%`_config(z', instr'*{instr' : instr}))

;; 8-reduction.watsup:228.1-230.44
;; 8-reduction.watsup:227.1-229.44
rule ctxt-frame{s : store, f : frame, n : n, f' : frame, instr* : instr*, s' : store, instr'* : instr*}:
`%~>%`(`%;%`_config(`%;%`_state(s, f), [`FRAME_%{%}%`_instr(n, f', instr*{instr : instr})]), `%;%`_config(`%;%`_state(s', f), [`FRAME_%{%}%`_instr(n, f', instr'*{instr' : instr})]))
-- Step: `%~>%`(`%;%`_config(`%;%`_state(s, f'), instr*{instr : instr}), `%;%`_config(`%;%`_state(s', f'), instr'*{instr' : instr}))

;; 8-reduction.watsup:348.1-352.64
;; 8-reduction.watsup:347.1-351.64
rule struct.new{z : state, val^n : val^n, n : n, x : idx, si : structinst, a : addr, mut^n : mut^n, zt^n : storagetype^n}:
`%~>%`(`%;%`_config(z, (val : val <: instr)^n{val : val} :: [STRUCT.NEW_instr(x)]), `%;%`_config($ext_structinst(z, [si]), [REF.STRUCT_ADDR_instr(a)]))
-- Expand: `%~~%`($type(z, x), STRUCT_comptype(`%`_structtype(`%%`_fieldtype(mut, zt)^n{mut : mut, zt : storagetype})))
-- if (a = |$structinst(z)|)
-- if (si = {TYPE $type(z, x), FIELDS $packfield(zt, val)^n{val : val, zt : storagetype}})

;; 8-reduction.watsup:368.1-369.53
;; 8-reduction.watsup:367.1-368.53
rule struct.set-null{z : state, ht : heaptype, val : val, x : idx, i : nat}:
`%~>%`(`%;%`_config(z, [REF.NULL_instr(ht) (val : val <: instr) STRUCT.SET_instr(x, `%`_u32(i))]), `%;%`_config(z, [TRAP_instr]))

;; 8-reduction.watsup:371.1-373.45
;; 8-reduction.watsup:370.1-372.45
rule struct.set-struct{z : state, a : addr, val : val, x : idx, i : nat, zt* : storagetype*, mut* : mut*}:
`%~>%`(`%;%`_config(z, [REF.STRUCT_ADDR_instr(a) (val : val <: instr) STRUCT.SET_instr(x, `%`_u32(i))]), `%;%`_config($with_struct(z, a, i, $packfield(zt*{zt : storagetype}[i], val)), []))
-- Expand: `%~~%`($type(z, x), STRUCT_comptype(`%`_structtype(`%%`_fieldtype(mut, zt)*{mut : mut, zt : storagetype})))

;; 8-reduction.watsup:386.1-391.64
;; 8-reduction.watsup:385.1-390.64
rule array.new_fixed{z : state, val^n : val^n, n : n, x : idx, ai : arrayinst, a : addr, mut : mut, zt : storagetype}:
`%~>%`(`%;%`_config(z, (val : val <: instr)^n{val : val} :: [ARRAY.NEW_FIXED_instr(x, `%`_u32(n))]), `%;%`_config($ext_arrayinst(z, [ai]), [REF.ARRAY_ADDR_instr(a)]))
-- Expand: `%~~%`($type(z, x), ARRAY_comptype(`%%`_arraytype(mut, zt)))
-- if ((a = |$arrayinst(z)|) /\ (ai = {TYPE $type(z, x), FIELDS $packfield(zt, val)^n{val : val}}))

;; 8-reduction.watsup:431.1-432.64
;; 8-reduction.watsup:430.1-431.64
rule array.set-null{z : state, ht : heaptype, i : nat, val : val, x : idx}:
`%~>%`(`%;%`_config(z, [REF.NULL_instr(ht) CONST_instr(I32_numtype, `%`_num_(i)) (val : val <: instr) ARRAY.SET_instr(x)]), `%;%`_config(z, [TRAP_instr]))

;; 8-reduction.watsup:434.1-436.39
;; 8-reduction.watsup:433.1-435.39
rule array.set-oob{z : state, a : addr, i : nat, val : val, x : idx}:
`%~>%`(`%;%`_config(z, [REF.ARRAY_ADDR_instr(a) CONST_instr(I32_numtype, `%`_num_(i)) (val : val <: instr) ARRAY.SET_instr(x)]), `%;%`_config(z, [TRAP_instr]))
-- if (i >= |$arrayinst(z)[a].FIELDS_arrayinst|)

;; 8-reduction.watsup:438.1-441.43
;; 8-reduction.watsup:437.1-440.43
rule array.set-array{z : state, a : addr, i : nat, val : val, x : idx, zt : storagetype, mut : mut}:
`%~>%`(`%;%`_config(z, [REF.ARRAY_ADDR_instr(a) CONST_instr(I32_numtype, `%`_num_(i)) (val : val <: instr) ARRAY.SET_instr(x)]), `%;%`_config($with_array(z, a, i, $packfield(zt, val)), []))
-- Expand: `%~~%`($type(z, x), ARRAY_comptype(`%%`_arraytype(mut, zt)))

;; 8-reduction.watsup:736.1-737.56
;; 8-reduction.watsup:735.1-736.56
rule local.set{z : state, val : val, x : idx}:
`%~>%`(`%;%`_config(z, [(val : val <: instr) LOCAL.SET_instr(x)]), `%;%`_config($with_local(z, x, val), []))

;; 8-reduction.watsup:749.1-750.58
;; 8-reduction.watsup:748.1-749.58
rule global.set{z : state, val : val, x : idx}:
`%~>%`(`%;%`_config(z, [(val : val <: instr) GLOBAL.SET_instr(x)]), `%;%`_config($with_global(z, x, val), []))

;; 8-reduction.watsup:763.1-765.33
;; 8-reduction.watsup:762.1-764.33
rule table.set-oob{z : state, i : nat, ref : ref, x : idx}:
`%~>%`(`%;%`_config(z, [CONST_instr(I32_numtype, `%`_num_(i)) (ref : ref <: instr) TABLE.SET_instr(x)]), `%;%`_config(z, [TRAP_instr]))
-- if (i >= |$table(z, x).REFS_tableinst|)

;; 8-reduction.watsup:767.1-769.32
;; 8-reduction.watsup:766.1-768.32
rule table.set-val{z : state, i : nat, ref : ref, x : idx}:
`%~>%`(`%;%`_config(z, [CONST_instr(I32_numtype, `%`_num_(i)) (ref : ref <: instr) TABLE.SET_instr(x)]), `%;%`_config($with_table(z, x, i, ref), []))
-- if (i < |$table(z, x).REFS_tableinst|)

;; 8-reduction.watsup:777.1-780.46
;; 8-reduction.watsup:776.1-779.46
rule table.grow-succeed{z : state, ref : ref, n : n, x : idx, ti : tableinst}:
`%~>%`(`%;%`_config(z, [(ref : ref <: instr) CONST_instr(I32_numtype, `%`_num_(n)) TABLE.GROW_instr(x)]), `%;%`_config($with_tableinst(z, x, ti), [CONST_instr(I32_numtype, `%`_num_(|$table(z, x).REFS_tableinst|))]))
-- if (ti = $growtable($table(z, x), n, ref))

;; 8-reduction.watsup:782.1-783.80
;; 8-reduction.watsup:781.1-782.80
rule table.grow-fail{z : state, ref : ref, n : n, x : idx}:
`%~>%`(`%;%`_config(z, [(ref : ref <: instr) CONST_instr(I32_numtype, `%`_num_(n)) TABLE.GROW_instr(x)]), `%;%`_config(z, [CONST_instr(I32_numtype, `%`_num_($invsigned(32, - (1 : nat <: int))))]))

;; 8-reduction.watsup:843.1-844.51
;; 8-reduction.watsup:842.1-843.51
rule elem.drop{z : state, x : idx}:
`%~>%`(`%;%`_config(z, [ELEM.DROP_instr(x)]), `%;%`_config($with_elem(z, x, []), []))

;; 8-reduction.watsup:923.1-926.60
;; 8-reduction.watsup:922.1-925.60
rule store-num-oob{z : state, i : nat, nt : numtype, c : num_(nt), x : idx, ao : memarg}:
`%~>%`(`%;%`_config(z, [CONST_instr(I32_numtype, `%`_num_(i)) CONST_instr(nt, c) STORE_instr(nt, ?(), x, ao)]), `%;%`_config(z, [TRAP_instr]))
-- if (((i + ao.OFFSET_memarg!`%`_u32.0) + ($size(nt) / 8)) > |$mem(z, x).BYTES_meminst|)

;; 8-reduction.watsup:928.1-932.28
;; 8-reduction.watsup:927.1-931.28
rule store-num-val{z : state, i : nat, nt : numtype, c : num_(nt), x : idx, ao : memarg, b* : byte*}:
`%~>%`(`%;%`_config(z, [CONST_instr(I32_numtype, `%`_num_(i)) CONST_instr(nt, c) STORE_instr(nt, ?(), x, ao)]), `%;%`_config($with_mem(z, x, (i + ao.OFFSET_memarg!`%`_u32.0), ($size(nt) / 8), b*{b : byte}), []))
-- if (b*{b : byte} = $nbytes(nt, c))

;; 8-reduction.watsup:934.1-937.52
;; 8-reduction.watsup:933.1-936.52
rule store-pack-oob{z : state, i : nat, Inn : Inn, c : num_((Inn : Inn <: numtype)), nt : numtype, n : n, x : idx, ao : memarg}:
`%~>%`(`%;%`_config(z, [CONST_instr(I32_numtype, `%`_num_(i)) CONST_instr((Inn : Inn <: numtype), c) STORE_instr(nt, ?(`%`_sz(n)), x, ao)]), `%;%`_config(z, [TRAP_instr]))
-- if (((i + ao.OFFSET_memarg!`%`_u32.0) + (n / 8)) > |$mem(z, x).BYTES_meminst|)

;; 8-reduction.watsup:939.1-943.49
;; 8-reduction.watsup:938.1-942.49
rule store-pack-val{z : state, i : nat, Inn : Inn, c : num_((Inn : Inn <: numtype)), nt : numtype, n : n, x : idx, ao : memarg, b* : byte*}:
`%~>%`(`%;%`_config(z, [CONST_instr(I32_numtype, `%`_num_(i)) CONST_instr((Inn : Inn <: numtype), c) STORE_instr(nt, ?(`%`_sz(n)), x, ao)]), `%;%`_config($with_mem(z, x, (i + ao.OFFSET_memarg!`%`_u32.0), (n / 8), b*{b : byte}), []))
-- if (b*{b : byte} = $ibytes(n, $wrap($size((Inn : Inn <: numtype)), n, c)))

;; 8-reduction.watsup:945.1-947.63
;; 8-reduction.watsup:944.1-946.63
rule vstore-oob{z : state, i : nat, c : vec_(V128_Vnn), x : idx, ao : memarg}:
`%~>%`(`%;%`_config(z, [CONST_instr(I32_numtype, `%`_num_(i)) VCONST_instr(V128_vectype, c) VSTORE_instr(V128_vectype, x, ao)]), `%;%`_config(z, [TRAP_instr]))
-- if (((i + ao.OFFSET_memarg!`%`_u32.0) + ($vsize(V128_vectype) / 8)) > |$mem(z, x).BYTES_meminst|)

;; 8-reduction.watsup:949.1-951.30
;; 8-reduction.watsup:948.1-950.30
rule vstore-val{z : state, i : nat, c : vec_(V128_Vnn), x : idx, ao : memarg, b* : byte*}:
`%~>%`(`%;%`_config(z, [CONST_instr(I32_numtype, `%`_num_(i)) VCONST_instr(V128_vectype, c) VSTORE_instr(V128_vectype, x, ao)]), `%;%`_config($with_mem(z, x, (i + ao.OFFSET_memarg!`%`_u32.0), ($vsize(V128_vectype) / 8), b*{b : byte}), []))
-- if (b*{b : byte} = $vbytes(V128_vectype, c))

;; 8-reduction.watsup:954.1-956.50
;; 8-reduction.watsup:953.1-955.50
rule vstore_lane-oob{z : state, i : nat, c : vec_(V128_Vnn), N : N, x : idx, ao : memarg, j : nat}:
`%~>%`(`%;%`_config(z, [CONST_instr(I32_numtype, `%`_num_(i)) VCONST_instr(V128_vectype, c) VSTORE_LANE_instr(V128_vectype, `%`_sz(N), x, ao, `%`_laneidx(j))]), `%;%`_config(z, [TRAP_instr]))
-- if (((i + ao.OFFSET_memarg!`%`_u32.0) + N) > |$mem(z, x).BYTES_meminst|)

;; 8-reduction.watsup:958.1-962.48
;; 8-reduction.watsup:957.1-961.48
rule vstore_lane-val{z : state, i : nat, c : vec_(V128_Vnn), N : N, x : idx, ao : memarg, j : nat, b* : byte*, Jnn : Jnn, M : M}:
`%~>%`(`%;%`_config(z, [CONST_instr(I32_numtype, `%`_num_(i)) VCONST_instr(V128_vectype, c) VSTORE_LANE_instr(V128_vectype, `%`_sz(N), x, ao, `%`_laneidx(j))]), `%;%`_config($with_mem(z, x, (i + ao.OFFSET_memarg!`%`_u32.0), (N / 8), b*{b : byte}), []))
-- if (N = $lsize((Jnn : Jnn <: lanetype)))
-- if (M = (128 / N))
-- if (b*{b : byte} = $ibytes(N, `%`_iN($lanes_(`%X%`_shape((Jnn : Jnn <: lanetype), `%`_dim(M)), c)[j]!`%`_lane_.0)))

;; 8-reduction.watsup:970.1-973.37
;; 8-reduction.watsup:969.1-972.37
rule memory.grow-succeed{z : state, n : n, x : idx, mi : meminst}:
`%~>%`(`%;%`_config(z, [CONST_instr(I32_numtype, `%`_num_(n)) MEMORY.GROW_instr(x)]), `%;%`_config($with_meminst(z, x, mi), [CONST_instr(I32_numtype, `%`_num_((|$mem(z, x).BYTES_meminst| / (64 * $Ki))))]))
-- if (mi = $growmem($mem(z, x), n))

;; 8-reduction.watsup:975.1-976.77
;; 8-reduction.watsup:974.1-975.77
rule memory.grow-fail{z : state, n : n, x : idx}:
`%~>%`(`%;%`_config(z, [CONST_instr(I32_numtype, `%`_num_(n)) MEMORY.GROW_instr(x)]), `%;%`_config(z, [CONST_instr(I32_numtype, `%`_num_($invsigned(32, - (1 : nat <: int))))]))

;; 8-reduction.watsup:1036.1-1037.51
;; 8-reduction.watsup:1035.1-1036.51
rule data.drop{z : state, x : idx}:
`%~>%`(`%;%`_config(z, [DATA.DROP_instr(x)]), `%;%`_config($with_data(z, x, []), []))
}
Expand Down
16 changes: 8 additions & 8 deletions spectec/test-interpreter/TEST.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ watsup 0.4 generator
== Running pass animate...
== IL Validation after pass animate...
== Translating to AL...
8-reduction.watsup:226.12-226.36: translate_rulepr: Yet `(`%;%`_config(z, instr*{instr : instr}), `%;%`_config(z', instr'*{instr' : instr}))`
8-reduction.watsup:230.12-230.44: translate_rulepr: Yet `(`%;%`_config(`%;%`_state(s, f'), instr*{instr : instr}), `%;%`_config(`%;%`_state(s', f'), instr'*{instr' : instr}))`
8-reduction.watsup:225.12-225.36: translate_rulepr: Yet `(`%;%`_config(z, instr*{instr : instr}), `%;%`_config(z', instr'*{instr' : instr}))`
8-reduction.watsup:229.12-229.44: translate_rulepr: Yet `(`%;%`_config(`%;%`_state(s, f'), instr*{instr : instr}), `%;%`_config(`%;%`_state(s', f'), instr'*{instr' : instr}))`
== Initializing interpreter...
== Interpreting...
===== ../../test-interpreter/sample.wat =====
Expand All @@ -30,8 +30,8 @@ watsup 0.4 generator
== Running pass animate...
== IL Validation after pass animate...
== Translating to AL...
8-reduction.watsup:226.12-226.36: translate_rulepr: Yet `(`%;%`_config(z, instr*{instr : instr}), `%;%`_config(z', instr'*{instr' : instr}))`
8-reduction.watsup:230.12-230.44: translate_rulepr: Yet `(`%;%`_config(`%;%`_state(s, f'), instr*{instr : instr}), `%;%`_config(`%;%`_state(s', f'), instr'*{instr' : instr}))`
8-reduction.watsup:225.12-225.36: translate_rulepr: Yet `(`%;%`_config(z, instr*{instr : instr}), `%;%`_config(z', instr'*{instr' : instr}))`
8-reduction.watsup:229.12-229.44: translate_rulepr: Yet `(`%;%`_config(`%;%`_state(s, f'), instr*{instr : instr}), `%;%`_config(`%;%`_state(s', f'), instr'*{instr' : instr}))`
== Initializing interpreter...
== Interpreting...
===== ../../test-interpreter/sample.wasm =====
Expand All @@ -48,8 +48,8 @@ watsup 0.4 generator
== Running pass animate...
== IL Validation after pass animate...
== Translating to AL...
8-reduction.watsup:226.12-226.36: translate_rulepr: Yet `(`%;%`_config(z, instr*{instr : instr}), `%;%`_config(z', instr'*{instr' : instr}))`
8-reduction.watsup:230.12-230.44: translate_rulepr: Yet `(`%;%`_config(`%;%`_state(s, f'), instr*{instr : instr}), `%;%`_config(`%;%`_state(s', f'), instr'*{instr' : instr}))`
8-reduction.watsup:225.12-225.36: translate_rulepr: Yet `(`%;%`_config(z, instr*{instr : instr}), `%;%`_config(z', instr'*{instr' : instr}))`
8-reduction.watsup:229.12-229.44: translate_rulepr: Yet `(`%;%`_config(`%;%`_state(s, f'), instr*{instr : instr}), `%;%`_config(`%;%`_state(s', f'), instr'*{instr' : instr}))`
== Initializing interpreter...
== Interpreting...
===== ../../test-interpreter/sample.wast =====
Expand Down Expand Up @@ -792,8 +792,8 @@ watsup 0.4 generator
== Running pass animate...
== IL Validation after pass animate...
== Translating to AL...
8-reduction.watsup:226.12-226.36: translate_rulepr: Yet `(`%;%`_config(z, instr*{instr : instr}), `%;%`_config(z', instr'*{instr' : instr}))`
8-reduction.watsup:230.12-230.44: translate_rulepr: Yet `(`%;%`_config(`%;%`_state(s, f'), instr*{instr : instr}), `%;%`_config(`%;%`_state(s', f'), instr'*{instr' : instr}))`
8-reduction.watsup:225.12-225.36: translate_rulepr: Yet `(`%;%`_config(z, instr*{instr : instr}), `%;%`_config(z', instr'*{instr' : instr}))`
8-reduction.watsup:229.12-229.44: translate_rulepr: Yet `(`%;%`_config(`%;%`_state(s, f'), instr*{instr : instr}), `%;%`_config(`%;%`_state(s', f'), instr'*{instr' : instr}))`
== Initializing interpreter...
== Interpreting...
===== ../../test-interpreter/spec-test-3/address.wast =====
Expand Down
3 changes: 1 addition & 2 deletions spectec/test-latex/TEST.md
Original file line number Diff line number Diff line change
Expand Up @@ -6694,8 +6694,7 @@ $$
\begin{array}{@{}lcl@{}l@{}}
{{\mathrm{blocktype}}}_{z}(x) &=& {\mathit{ft}}
&\qquad \mbox{if}~z{.}\mathsf{types}{}[x] \approx \mathsf{func}~{\mathit{ft}} \\
{{\mathrm{blocktype}}}_{z}(t) &=& \epsilon \rightarrow t \\
{{\mathrm{blocktype}}}_{z}(\epsilon) &=& \epsilon \rightarrow \epsilon \\
{{\mathrm{blocktype}}}_{z}({t^?}) &=& \epsilon \rightarrow {t^?} \\
\end{array}
$$

Expand Down
Loading

0 comments on commit bb0435c

Please sign in to comment.