@@ -3138,14 +3138,14 @@ relation Memtype_ok: `%|-%:OK`(context, memtype)
31383138 ;; ../../../../specification/wasm-3.0/2.1-validation.types.spectec
31393139 rule _{C : context, addrtype : addrtype, limits : limits}:
31403140 `%|-%:OK`(C, `%%PAGE`_memtype(addrtype, limits))
3141- -- Limits_ok: `%|-%:%`(C, limits, (2 ^ 16 ))
3141+ -- Limits_ok: `%|-%:%`(C, limits, (2 ^ ((($size((addrtype : addrtype <: numtype)) : nat <:> int) - (16 : nat <:> int)) : int <:> nat) ))
31423142
31433143;; ../../../../specification/wasm-3.0/2.1-validation.types.spectec
31443144relation Tabletype_ok: `%|-%:OK`(context, tabletype)
31453145 ;; ../../../../specification/wasm-3.0/2.1-validation.types.spectec
31463146 rule _{C : context, addrtype : addrtype, limits : limits, reftype : reftype}:
31473147 `%|-%:OK`(C, `%%%`_tabletype(addrtype, limits, reftype))
3148- -- Limits_ok: `%|-%:%`(C, limits, ((((2 ^ 32 ) : nat <:> int) - (1 : nat <:> int)) : int <:> nat))
3148+ -- Limits_ok: `%|-%:%`(C, limits, ((((2 ^ $size((addrtype : addrtype <: numtype)) ) : nat <:> int) - (1 : nat <:> int)) : int <:> nat))
31493149 -- Reftype_ok: `%|-%:OK`(C, reftype)
31503150
31513151;; ../../../../specification/wasm-3.0/2.1-validation.types.spectec
@@ -14492,14 +14492,14 @@ relation Memtype_ok: `%|-%:OK`(context, memtype)
1449214492 ;; ../../../../specification/wasm-3.0/2.1-validation.types.spectec
1449314493 rule _{C : context, addrtype : addrtype, limits : limits}:
1449414494 `%|-%:OK`(C, `%%PAGE`_memtype(addrtype, limits))
14495- -- Limits_ok: `%|-%:%`(C, limits, (2 ^ 16 ))
14495+ -- Limits_ok: `%|-%:%`(C, limits, (2 ^ ((($size((addrtype : addrtype <: numtype)) : nat <:> int) - (16 : nat <:> int)) : int <:> nat) ))
1449614496
1449714497;; ../../../../specification/wasm-3.0/2.1-validation.types.spectec
1449814498relation Tabletype_ok: `%|-%:OK`(context, tabletype)
1449914499 ;; ../../../../specification/wasm-3.0/2.1-validation.types.spectec
1450014500 rule _{C : context, addrtype : addrtype, limits : limits, reftype : reftype}:
1450114501 `%|-%:OK`(C, `%%%`_tabletype(addrtype, limits, reftype))
14502- -- Limits_ok: `%|-%:%`(C, limits, ((((2 ^ 32 ) : nat <:> int) - (1 : nat <:> int)) : int <:> nat))
14502+ -- Limits_ok: `%|-%:%`(C, limits, ((((2 ^ $size((addrtype : addrtype <: numtype)) ) : nat <:> int) - (1 : nat <:> int)) : int <:> nat))
1450314503 -- Reftype_ok: `%|-%:OK`(C, reftype)
1450414504
1450514505;; ../../../../specification/wasm-3.0/2.1-validation.types.spectec
@@ -25865,14 +25865,14 @@ relation Memtype_ok: `%|-%:OK`(context, memtype)
2586525865 ;; ../../../../specification/wasm-3.0/2.1-validation.types.spectec
2586625866 rule _{C : context, addrtype : addrtype, limits : limits}:
2586725867 `%|-%:OK`(C, `%%PAGE`_memtype(addrtype, limits))
25868- -- Limits_ok: `%|-%:%`(C, limits, (2 ^ 16 ))
25868+ -- Limits_ok: `%|-%:%`(C, limits, (2 ^ ((($size((addrtype : addrtype <: numtype)) : nat <:> int) - (16 : nat <:> int)) : int <:> nat) ))
2586925869
2587025870;; ../../../../specification/wasm-3.0/2.1-validation.types.spectec
2587125871relation Tabletype_ok: `%|-%:OK`(context, tabletype)
2587225872 ;; ../../../../specification/wasm-3.0/2.1-validation.types.spectec
2587325873 rule _{C : context, addrtype : addrtype, limits : limits, reftype : reftype}:
2587425874 `%|-%:OK`(C, `%%%`_tabletype(addrtype, limits, reftype))
25875- -- Limits_ok: `%|-%:%`(C, limits, ((((2 ^ 32 ) : nat <:> int) - (1 : nat <:> int)) : int <:> nat))
25875+ -- Limits_ok: `%|-%:%`(C, limits, ((((2 ^ $size((addrtype : addrtype <: numtype)) ) : nat <:> int) - (1 : nat <:> int)) : int <:> nat))
2587625876 -- Reftype_ok: `%|-%:OK`(C, reftype)
2587725877
2587825878;; ../../../../specification/wasm-3.0/2.1-validation.types.spectec
0 commit comments