wasmer/lib/runtime/tests/spectests/br_table.rs

2239 lines
294 KiB
Rust
Raw Normal View History

2019-01-09 06:06:24 +00:00
// Rust test file autogenerated with cargo build (build/spectests.rs).
// Please do NOT modify it by hand, as it will be reset on next build.
// Test based on spectests/br_table.wast
#![allow(
warnings,
dead_code
)]
use wabt::wat2wasm;
use std::{f32, f64};
use wasmer_runtime::types::Value;
use wasmer_runtime::{Instance, module::Module};
2019-01-09 06:06:24 +00:00
use wasmer_clif_backend::CraneliftCompiler;
use crate::spectests::_common::{
spectest_importobject,
NaNCheck,
};
// Line 3
fn create_module_1() -> Box<Instance> {
let module_str = "(module
(type (;0;) (func (param i32 i32 i32) (result i32)))
(type (;1;) (func))
(type (;2;) (func (result i32)))
(type (;3;) (func (result i64)))
(type (;4;) (func (result f32)))
(type (;5;) (func (result f64)))
(type (;6;) (func (param i32) (result i32)))
(type (;7;) (func (param i32 i32) (result i32)))
(func (;0;) (type 1))
(func (;1;) (type 1)
block ;; label = @1
i32.const 0
br_table 0 (;@1;) 0 (;@1;)
i32.ctz
drop
end)
(func (;2;) (type 1)
block ;; label = @1
i32.const 0
br_table 0 (;@1;) 0 (;@1;)
i64.ctz
drop
end)
(func (;3;) (type 1)
block ;; label = @1
i32.const 0
br_table 0 (;@1;) 0 (;@1;)
f32.neg
drop
end)
(func (;4;) (type 1)
block ;; label = @1
i32.const 0
br_table 0 (;@1;) 0 (;@1;)
f64.neg
drop
end)
(func (;5;) (type 2) (result i32)
block (result i32) ;; label = @1
i32.const 1
i32.const 0
br_table 0 (;@1;) 0 (;@1;)
i32.ctz
end)
(func (;6;) (type 3) (result i64)
block (result i64) ;; label = @1
i64.const 2
i32.const 0
br_table 0 (;@1;) 0 (;@1;)
i64.ctz
end)
(func (;7;) (type 4) (result f32)
block (result f32) ;; label = @1
f32.const 0x1.8p+1 (;=3;)
i32.const 0
br_table 0 (;@1;) 0 (;@1;)
f32.neg
end)
(func (;8;) (type 5) (result f64)
block (result f64) ;; label = @1
f64.const 0x1p+2 (;=4;)
i32.const 0
br_table 0 (;@1;) 0 (;@1;)
f64.neg
end)
(func (;9;) (type 6) (param i32) (result i32)
block ;; label = @1
get_local 0
br_table 0 (;@1;)
i32.const 21
return
end
i32.const 22)
(func (;10;) (type 6) (param i32) (result i32)
block (result i32) ;; label = @1
i32.const 33
get_local 0
br_table 0 (;@1;)
i32.const 31
end)
(func (;11;) (type 6) (param i32) (result i32)
block ;; label = @1
block ;; label = @2
get_local 0
br_table 1 (;@1;) 0 (;@2;)
i32.const 21
return
end
i32.const 20
return
end
i32.const 22)
(func (;12;) (type 6) (param i32) (result i32)
block (result i32) ;; label = @1
block (result i32) ;; label = @2
i32.const 33
get_local 0
br_table 0 (;@2;) 1 (;@1;)
i32.const 31
return
end
drop
i32.const 32
end)
(func (;13;) (type 6) (param i32) (result i32)
block ;; label = @1
block ;; label = @2
block ;; label = @3
block ;; label = @4
block ;; label = @5
get_local 0
br_table 3 (;@2;) 2 (;@3;) 1 (;@4;) 0 (;@5;) 4 (;@1;)
i32.const 99
return
end
i32.const 100
return
end
i32.const 101
return
end
i32.const 102
return
end
i32.const 103
return
end
i32.const 104)
(func (;14;) (type 6) (param i32) (result i32)
(local i32)
block (result i32) ;; label = @1
block (result i32) ;; label = @2
block (result i32) ;; label = @3
block (result i32) ;; label = @4
block (result i32) ;; label = @5
i32.const 200
get_local 0
br_table 3 (;@2;) 2 (;@3;) 1 (;@4;) 0 (;@5;) 4 (;@1;)
get_local 1
i32.const 99
i32.add
return
end
set_local 1
get_local 1
i32.const 10
i32.add
return
end
set_local 1
get_local 1
i32.const 11
i32.add
return
end
set_local 1
get_local 1
i32.const 12
i32.add
return
end
set_local 1
get_local 1
i32.const 13
i32.add
return
end
set_local 1
get_local 1
i32.const 14
i32.add)
(func (;15;) (type 6) (param i32) (result i32)
block ;; label = @1
block ;; label = @2
get_local 0
br_table 0 (;@2;) 1 (;@1;) 0 (;@2;) 1 (;@1;) 0 (;@2;) 1 (;@1;) 0 (;@2;) 1 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;@1;)
call 0
end)
(func (;17;) (type 1)
block ;; label = @1
call 0
i32.const 0
br_table 0 (;@1;) 0 (;@1;) 0 (;@1;)
call 0
end)
(func (;18;) (type 1)
block ;; label = @1
nop
call 0
i32.const 0
br_table 0 (;@1;) 0 (;@1;) 0 (;@1;)
end)
(func (;19;) (type 2) (result i32)
block (result i32) ;; label = @1
nop
call 0
i32.const 2
i32.const 0
br_table 0 (;@1;) 0 (;@1;) 0 (;@1;)
end)
(func (;20;) (type 2) (result i32)
loop (result i32) ;; label = @1
i32.const 3
i32.const 0
br_table 1 (;@0;) 1 (;@0;)
i32.const 1
end)
(func (;21;) (type 2) (result i32)
loop (result i32) ;; label = @1
call 0
i32.const 4
i32.const -1
br_table 1 (;@0;) 1 (;@0;) 1 (;@0;)
i32.const 2
end)
(func (;22;) (type 2) (result i32)
loop (result i32) ;; label = @1
nop
call 0
i32.const 5
i32.const 1
br_table 1 (;@0;) 1 (;@0;) 1 (;@0;)
end)
(func (;23;) (type 2) (result i32)
block (result i32) ;; label = @1
i32.const 9
i32.const 0
br_table 0 (;@1;)
br 0 (;@1;)
end)
(func (;24;) (type 1)
block ;; label = @1
i32.const 1
br_table 0 (;@1;) 0 (;@1;) 0 (;@1;)
br_if 0 (;@1;)
end)
(func (;25;) (type 2) (result i32)
block (result i32) ;; label = @1
i32.const 8
i32.const 0
br_table 0 (;@1;)
i32.const 1
br_if 0 (;@1;)
drop
i32.const 7
end)
(func (;26;) (type 2) (result i32)
block (result i32) ;; label = @1
i32.const 6
i32.const 9
i32.const 0
br_table 0 (;@1;) 0 (;@1;)
br_if 0 (;@1;)
drop
i32.const 7
end)
(func (;27;) (type 1)
block ;; label = @1
i32.const 1
br_table 0 (;@1;)
br_table 0 (;@1;) 0 (;@1;) 0 (;@1;)
end)
(func (;28;) (type 2) (result i32)
block (result i32) ;; label = @1
i32.const 10
i32.const 0
br_table 0 (;@1;)
i32.const 1
br_table 0 (;@1;) 0 (;@1;) 0 (;@1;)
i32.const 7
end)
(func (;29;) (type 2) (result i32)
block (result i32) ;; label = @1
i32.const 6
i32.const 11
i32.const 1
br_table 0 (;@1;)
br_table 0 (;@1;) 0 (;@1;)
i32.const 7
end)
(func (;30;) (type 3) (result i64)
block (result i64) ;; label = @1
i64.const 7
i32.const 0
br_table 0 (;@1;)
return
end)
(func (;31;) (type 2) (result i32)
block (result i32) ;; label = @1
i32.const 2
i32.const 0
br_table 0 (;@1;)
if (result i32) ;; label = @2
i32.const 0
else
i32.const 1
end
end)
(func (;32;) (type 7) (param i32 i32) (result i32)
block (result i32) ;; label = @1
get_local 0
if (result i32) ;; label = @2
i32.const 3
i32.const 0
br_table 1 (;@1;)
else
get_local 1
end
end)
(func (;33;) (type 7) (param i32 i32) (result i32)
block (result i32) ;; label = @1
get_local 0
if (result i32) ;; label = @2
get_local 1
else
i32.const 4
i32.const 0
br_table 1 (;@1;) 0 (;@2;)
end
end)
(func (;34;) (type 7) (param i32 i32) (result i32)
block (result i32) ;; label = @1
i32.const 5
i32.const 0
br_table 0 (;@1;)
get_local 0
get_local 1
select
end)
(func (;35;) (type 7) (param i32 i32) (result i32)
block (result i32) ;; label = @1
get_local 0
i32.const 6
i32.const 1
br_table 0 (;@1;)
get_local 1
select
end)
(func (;36;) (type 2) (result i32)
block (result i32) ;; label = @1
i32.const 0
i32.const 1
i32.const 7
i32.const 1
br_table 0 (;@1;)
select
end)
(func (;37;) (type 0) (param i32 i32 i32) (result i32)
i32.const -1)
(func (;38;) (type 2) (result i32)
block (result i32) ;; label = @1
i32.const 12
i32.const 1
br_table 0 (;@1;)
i32.const 2
i32.const 3
call 37
end)
(func (;39;) (type 2) (result i32)
block (result i32) ;; label = @1
i32.const 1
i32.const 13
i32.const 1
br_table 0 (;@1;)
i32.const 3
call 37
end)
(func (;40;) (type 2) (result i32)
block (result i32) ;; label = @1
i32.const 1
i32.const 2
i32.const 14
i32.const 1
br_table 0 (;@1;)
call 37
end)
(func (;41;) (type 2) (result i32)
block (result i32) ;; label = @1
i32.const 20
i32.const 1
br_table 0 (;@1;)
i32.const 1
i32.const 2
i32.const 3
call_indirect (type 0)
end)
(func (;42;) (type 2) (result i32)
block (result i32) ;; label = @1
i32.const 0
i32.const 21
i32.const 1
br_table 0 (;@1;)
i32.const 2
i32.const 3
call_indirect (type 0)
end)
(func (;43;) (type 2) (result i32)
block (result i32) ;; label = @1
i32.const 0
i32.const 1
i32.const 22
i32.const 1
br_table 0 (;@1;)
i32.const 3
call_indirect (type 0)
end)
(func (;44;) (type 2) (result i32)
block (result i32) ;; label = @1
i32.const 0
i32.const 1
i32.const 2
i32.const 23
i32.const 1
br_table 0 (;@1;)
call_indirect (type 0)
end)
(func (;45;) (type 2) (result i32)
(local f32)
block (result i32) ;; label = @1
i32.const 17
i32.const 1
br_table 0 (;@1;)
set_local 0
i32.const -1
end)
(func (;46;) (type 2) (result i32)
(local i32)
block (result i32) ;; label = @1
i32.const 1
i32.const 1
br_table 0 (;@1;)
set_local 0
i32.const -1
end)
(func (;47;) (type 2) (result i32)
block (result i32) ;; label = @1
i32.const 1
i32.const 1
br_table 0 (;@1;)
set_global 0
i32.const -1
end)
(func (;48;) (type 4) (result f32)
block (result f32) ;; label = @1
f32.const 0x1.b33334p+0 (;=1.7;)
i32.const 1
br_table 0 (;@1;)
f32.load
end)
(func (;49;) (type 3) (result i64)
block (result i64) ;; label = @1
i64.const 30
i32.const 1
br_table 0 (;@1;)
i64.load8_s
end)
(func (;50;) (type 2) (result i32)
block (result i32) ;; label = @1
i32.const 30
i32.const 1
br_table 0 (;@1;)
f64.const 0x1.cp+2 (;=7;)
f64.store
i32.const -1
end)
(func (;51;) (type 2) (result i32)
block (result i32) ;; label = @1
i32.const 2
i32.const 31
i32.const 1
br_table 0 (;@1;)
i64.store
i32.const -1
end)
(func (;52;) (type 2) (result i32)
block (result i32) ;; label = @1
i32.const 32
i32.const 0
br_table 0 (;@1;)
i32.const 7
i32.store8
i32.const -1
end)
(func (;53;) (type 2) (result i32)
block (result i32) ;; label = @1
i32.const 2
i32.const 33
i32.const 0
br_table 0 (;@1;)
i64.store16
i32.const -1
end)
(func (;54;) (type 4) (result f32)
block (result f32) ;; label = @1
f32.const 0x1.b33334p+1 (;=3.4;)
i32.const 0
br_table 0 (;@1;)
f32.neg
end)
(func (;55;) (type 2) (result i32)
block (result i32) ;; label = @1
i32.const 3
i32.const 0
br_table 0 (;@1;) 0 (;@1;)
i32.const 10
i32.add
end)
(func (;56;) (type 3) (result i64)
block (result i64) ;; label = @1
i64.const 10
i64.const 45
i32.const 0
br_table 0 (;@1;)
i64.sub
end)
(func (;57;) (type 2) (result i32)
block (result i32) ;; label = @1
i32.const 44
i32.const 0
br_table 0 (;@1;)
i32.eqz
end)
(func (;58;) (type 2) (result i32)
block (result i32) ;; label = @1
i32.const 43
i32.const 0
br_table 0 (;@1;) 0 (;@1;)
f64.const 0x1.4p+3 (;=10;)
f64.le
end)
(func (;59;) (type 2) (result i32)
block (result i32) ;; label = @1
f32.const 0x1.4p+3 (;=10;)
i32.const 42
i32.const 0
br_table 0 (;@1;)
f32.ne
end)
(func (;60;) (type 2) (result i32)
block (result i32) ;; label = @1
i32.const 41
i32.const 0
br_table 0 (;@1;)
i32.wrap/i64
end)
(func (;61;) (type 2) (result i32)
block (result i32) ;; label = @1
i32.const 40
i32.const 0
br_table 0 (;@1;)
memory.grow
end)
(func (;62;) (type 6) (param i32) (result i32)
block (result i32) ;; label = @1
i32.const -1
drop
i32.const 1
block (result i32) ;; label = @2
i32.const 2
block (result i32) ;; label = @3
i32.const 4
drop
i32.const 8
i32.const 16
get_local 0
br_table 0 (;@3;) 1 (;@2;) 2 (;@1;)
i32.add
end
i32.add
end
i32.add
end)
(func (;63;) (type 6) (param i32) (result i32)
block (result i32) ;; label = @1
i32.const 1
block (result i32) ;; label = @2
i32.const 2
drop
block (result i32) ;; label = @3
i32.const 4
drop
i32.const 8
get_local 0
br_table 2 (;@1;) 1 (;@2;) 0 (;@3;)
br 0 (;@3;)
end
drop
i32.const 16
end
i32.add
end)
(func (;64;) (type 6) (param i32) (result i32)
block (result i32) ;; label = @1
i32.const 1
block (result i32) ;; label = @2
i32.const 2
drop
block (result i32) ;; label = @3
i32.const 4
drop
i32.const 8
get_local 0
br_table 0 (;@3;) 1 (;@2;) 2 (;@1;)
i32.const 1
br_if 0 (;@3;)
drop
i32.const 32
end
drop
i32.const 16
end
i32.add
end)
(func (;65;) (type 6) (param i32) (result i32)
block (result i32) ;; label = @1
i32.const 1
block (result i32) ;; label = @2
i32.const 2
drop
i32.const 4
i32.const 8
get_local 0
br_table 0 (;@2;) 1 (;@1;) 0 (;@2;)
br_if 0 (;@2;)
drop
i32.const 16
end
i32.add
end)
(func (;66;) (type 6) (param i32) (result i32)
block (result i32) ;; label = @1
i32.const 1
block (result i32) ;; label = @2
i32.const 2
drop
block (result i32) ;; label = @3
i32.const 4
drop
i32.const 8
get_local 0
br_table 0 (;@3;) 1 (;@2;) 2 (;@1;)
i32.const 1
br_table 0 (;@3;)
i32.const 32
end
drop
i32.const 16
end
i32.add
end)
(func (;67;) (type 6) (param i32) (result i32)
block (result i32) ;; label = @1
i32.const 1
block (result i32) ;; label = @2
i32.const 2
drop
i32.const 4
i32.const 8
get_local 0
br_table 0 (;@2;) 1 (;@1;) 0 (;@2;)
br_table 0 (;@2;)
i32.const 16
end
i32.add
end)
(func (;68;) (type 6) (param i32) (result i32)
loop (result i32) ;; label = @1
block ;; label = @2
get_local 0
br_table 1 (;@1;) 0 (;@2;) 0 (;@2;)
end
i32.const 0
end
set_local 0
loop (result i32) ;; label = @1
block ;; label = @2
get_local 0
br_table 0 (;@2;) 1 (;@1;) 1 (;@1;)
end
i32.const 3
end)
(table (;0;) 1 1 anyfunc)
(memory (;0;) 1)
(global (;0;) (mut i32) (i32.const 10))
(export \"type-i32\" (func 1))
(export \"type-i64\" (func 2))
(export \"type-f32\" (func 3))
(export \"type-f64\" (func 4))
(export \"type-i32-value\" (func 5))
(export \"type-i64-value\" (func 6))
(export \"type-f32-value\" (func 7))
(export \"type-f64-value\" (func 8))
(export \"empty\" (func 9))
(export \"empty-value\" (func 10))
(export \"singleton\" (func 11))
(export \"singleton-value\" (func 12))
(export \"multiple\" (func 13))
(export \"multiple-value\" (func 14))
(export \"large\" (func 15))
(export \"as-block-first\" (func 16))
(export \"as-block-mid\" (func 17))
(export \"as-block-last\" (func 18))
(export \"as-block-value\" (func 19))
(export \"as-loop-first\" (func 20))
(export \"as-loop-mid\" (func 21))
(export \"as-loop-last\" (func 22))
(export \"as-br-value\" (func 23))
(export \"as-br_if-cond\" (func 24))
(export \"as-br_if-value\" (func 25))
(export \"as-br_if-value-cond\" (func 26))
(export \"as-br_table-index\" (func 27))
(export \"as-br_table-value\" (func 28))
(export \"as-br_table-value-index\" (func 29))
(export \"as-return-value\" (func 30))
(export \"as-if-cond\" (func 31))
(export \"as-if-then\" (func 32))
(export \"as-if-else\" (func 33))
(export \"as-select-first\" (func 34))
(export \"as-select-second\" (func 35))
(export \"as-select-cond\" (func 36))
(export \"as-call-first\" (func 38))
(export \"as-call-mid\" (func 39))
(export \"as-call-last\" (func 40))
(export \"as-call_indirect-first\" (func 41))
(export \"as-call_indirect-mid\" (func 42))
(export \"as-call_indirect-last\" (func 43))
(export \"as-call_indirect-func\" (func 44))
(export \"as-set_local-value\" (func 45))
(export \"as-tee_local-value\" (func 46))
(export \"as-set_global-value\" (func 47))
(export \"as-load-address\" (func 48))
(export \"as-loadN-address\" (func 49))
(export \"as-store-address\" (func 50))
(export \"as-store-value\" (func 51))
(export \"as-storeN-address\" (func 52))
(export \"as-storeN-value\" (func 53))
(export \"as-unary-operand\" (func 54))
(export \"as-binary-left\" (func 55))
(export \"as-binary-right\" (func 56))
(export \"as-test-operand\" (func 57))
(export \"as-compare-left\" (func 58))
(export \"as-compare-right\" (func 59))
(export \"as-convert-operand\" (func 60))
(export \"as-memory.grow-size\" (func 61))
(export \"nested-block-value\" (func 62))
(export \"nested-br-value\" (func 63))
(export \"nested-br_if-value\" (func 64))
(export \"nested-br_if-value-cond\" (func 65))
(export \"nested-br_table-value\" (func 66))
(export \"nested-br_table-value-index\" (func 67))
(export \"nested-br_table-loop-block\" (func 68))
(elem (;0;) (i32.const 0) 37))
";
let wasm_binary = wat2wasm(module_str.as_bytes()).expect("WAST not valid or malformed");
let module = wasmer_runtime::compile(&wasm_binary[..], &CraneliftCompiler::new()).expect("WASM can't be compiled");
module.instantiate(&spectest_importobject()).expect("WASM can't be instantiated")
}
fn start_module_1(instance: &mut Instance) {
// TODO Review is explicit start needed? Start now called in runtime::Instance::new()
//instance.start();
}
// Line 1247
fn c1_l1247_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c1_l1247_action_invoke");
let result = instance.call("type-i32", &[]);
assert_eq!(result, Ok(None));
result.map(|_| ())
}
// Line 1248
fn c2_l1248_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c2_l1248_action_invoke");
let result = instance.call("type-i64", &[]);
assert_eq!(result, Ok(None));
result.map(|_| ())
}
// Line 1249
fn c3_l1249_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c3_l1249_action_invoke");
let result = instance.call("type-f32", &[]);
assert_eq!(result, Ok(None));
result.map(|_| ())
}
// Line 1250
fn c4_l1250_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c4_l1250_action_invoke");
let result = instance.call("type-f64", &[]);
assert_eq!(result, Ok(None));
result.map(|_| ())
}
// Line 1252
fn c5_l1252_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c5_l1252_action_invoke");
let result = instance.call("type-i32-value", &[]);
assert_eq!(result, Ok(Some(Value::I32(1 as i32))));
result.map(|_| ())
}
// Line 1253
fn c6_l1253_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c6_l1253_action_invoke");
let result = instance.call("type-i64-value", &[]);
assert_eq!(result, Ok(Some(Value::I64(2 as i64))));
result.map(|_| ())
}
// Line 1254
fn c7_l1254_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c7_l1254_action_invoke");
let result = instance.call("type-f32-value", &[]);
assert_eq!(result, Ok(Some(Value::F32((3.0f32).to_bits()))));
result.map(|_| ())
}
// Line 1255
fn c8_l1255_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c8_l1255_action_invoke");
let result = instance.call("type-f64-value", &[]);
assert_eq!(result, Ok(Some(Value::F64((4.0f64).to_bits()))));
result.map(|_| ())
}
// Line 1257
fn c9_l1257_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c9_l1257_action_invoke");
let result = instance.call("empty", &[Value::I32(0 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(22 as i32))));
result.map(|_| ())
}
// Line 1258
fn c10_l1258_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c10_l1258_action_invoke");
let result = instance.call("empty", &[Value::I32(1 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(22 as i32))));
result.map(|_| ())
}
// Line 1259
fn c11_l1259_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c11_l1259_action_invoke");
let result = instance.call("empty", &[Value::I32(11 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(22 as i32))));
result.map(|_| ())
}
// Line 1260
fn c12_l1260_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c12_l1260_action_invoke");
let result = instance.call("empty", &[Value::I32(-1 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(22 as i32))));
result.map(|_| ())
}
// Line 1261
fn c13_l1261_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c13_l1261_action_invoke");
let result = instance.call("empty", &[Value::I32(-100 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(22 as i32))));
result.map(|_| ())
}
// Line 1262
fn c14_l1262_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c14_l1262_action_invoke");
let result = instance.call("empty", &[Value::I32(-1 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(22 as i32))));
result.map(|_| ())
}
// Line 1264
fn c15_l1264_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c15_l1264_action_invoke");
let result = instance.call("empty-value", &[Value::I32(0 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(33 as i32))));
result.map(|_| ())
}
// Line 1265
fn c16_l1265_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c16_l1265_action_invoke");
let result = instance.call("empty-value", &[Value::I32(1 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(33 as i32))));
result.map(|_| ())
}
// Line 1266
fn c17_l1266_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c17_l1266_action_invoke");
let result = instance.call("empty-value", &[Value::I32(11 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(33 as i32))));
result.map(|_| ())
}
// Line 1267
fn c18_l1267_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c18_l1267_action_invoke");
let result = instance.call("empty-value", &[Value::I32(-1 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(33 as i32))));
result.map(|_| ())
}
// Line 1268
fn c19_l1268_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c19_l1268_action_invoke");
let result = instance.call("empty-value", &[Value::I32(-100 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(33 as i32))));
result.map(|_| ())
}
// Line 1269
fn c20_l1269_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c20_l1269_action_invoke");
let result = instance.call("empty-value", &[Value::I32(-1 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(33 as i32))));
result.map(|_| ())
}
// Line 1271
fn c21_l1271_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c21_l1271_action_invoke");
let result = instance.call("singleton", &[Value::I32(0 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(22 as i32))));
result.map(|_| ())
}
// Line 1272
fn c22_l1272_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c22_l1272_action_invoke");
let result = instance.call("singleton", &[Value::I32(1 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(20 as i32))));
result.map(|_| ())
}
// Line 1273
fn c23_l1273_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c23_l1273_action_invoke");
let result = instance.call("singleton", &[Value::I32(11 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(20 as i32))));
result.map(|_| ())
}
// Line 1274
fn c24_l1274_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c24_l1274_action_invoke");
let result = instance.call("singleton", &[Value::I32(-1 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(20 as i32))));
result.map(|_| ())
}
// Line 1275
fn c25_l1275_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c25_l1275_action_invoke");
let result = instance.call("singleton", &[Value::I32(-100 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(20 as i32))));
result.map(|_| ())
}
// Line 1276
fn c26_l1276_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c26_l1276_action_invoke");
let result = instance.call("singleton", &[Value::I32(-1 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(20 as i32))));
result.map(|_| ())
}
// Line 1278
fn c27_l1278_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c27_l1278_action_invoke");
let result = instance.call("singleton-value", &[Value::I32(0 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(32 as i32))));
result.map(|_| ())
}
// Line 1279
fn c28_l1279_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c28_l1279_action_invoke");
let result = instance.call("singleton-value", &[Value::I32(1 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(33 as i32))));
result.map(|_| ())
}
// Line 1280
fn c29_l1280_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c29_l1280_action_invoke");
let result = instance.call("singleton-value", &[Value::I32(11 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(33 as i32))));
result.map(|_| ())
}
// Line 1281
fn c30_l1281_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c30_l1281_action_invoke");
let result = instance.call("singleton-value", &[Value::I32(-1 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(33 as i32))));
result.map(|_| ())
}
// Line 1282
fn c31_l1282_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c31_l1282_action_invoke");
let result = instance.call("singleton-value", &[Value::I32(-100 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(33 as i32))));
result.map(|_| ())
}
// Line 1283
fn c32_l1283_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c32_l1283_action_invoke");
let result = instance.call("singleton-value", &[Value::I32(-1 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(33 as i32))));
result.map(|_| ())
}
// Line 1285
fn c33_l1285_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c33_l1285_action_invoke");
let result = instance.call("multiple", &[Value::I32(0 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(103 as i32))));
result.map(|_| ())
}
// Line 1286
fn c34_l1286_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c34_l1286_action_invoke");
let result = instance.call("multiple", &[Value::I32(1 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(102 as i32))));
result.map(|_| ())
}
// Line 1287
fn c35_l1287_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c35_l1287_action_invoke");
let result = instance.call("multiple", &[Value::I32(2 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(101 as i32))));
result.map(|_| ())
}
// Line 1288
fn c36_l1288_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c36_l1288_action_invoke");
let result = instance.call("multiple", &[Value::I32(3 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(100 as i32))));
result.map(|_| ())
}
// Line 1289
fn c37_l1289_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c37_l1289_action_invoke");
let result = instance.call("multiple", &[Value::I32(4 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(104 as i32))));
result.map(|_| ())
}
// Line 1290
fn c38_l1290_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c38_l1290_action_invoke");
let result = instance.call("multiple", &[Value::I32(5 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(104 as i32))));
result.map(|_| ())
}
// Line 1291
fn c39_l1291_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c39_l1291_action_invoke");
let result = instance.call("multiple", &[Value::I32(6 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(104 as i32))));
result.map(|_| ())
}
// Line 1292
fn c40_l1292_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c40_l1292_action_invoke");
let result = instance.call("multiple", &[Value::I32(10 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(104 as i32))));
result.map(|_| ())
}
// Line 1293
fn c41_l1293_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c41_l1293_action_invoke");
let result = instance.call("multiple", &[Value::I32(-1 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(104 as i32))));
result.map(|_| ())
}
// Line 1294
fn c42_l1294_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c42_l1294_action_invoke");
let result = instance.call("multiple", &[Value::I32(-1 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(104 as i32))));
result.map(|_| ())
}
// Line 1296
fn c43_l1296_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c43_l1296_action_invoke");
let result = instance.call("multiple-value", &[Value::I32(0 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(213 as i32))));
result.map(|_| ())
}
// Line 1297
fn c44_l1297_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c44_l1297_action_invoke");
let result = instance.call("multiple-value", &[Value::I32(1 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(212 as i32))));
result.map(|_| ())
}
// Line 1298
fn c45_l1298_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c45_l1298_action_invoke");
let result = instance.call("multiple-value", &[Value::I32(2 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(211 as i32))));
result.map(|_| ())
}
// Line 1299
fn c46_l1299_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c46_l1299_action_invoke");
let result = instance.call("multiple-value", &[Value::I32(3 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(210 as i32))));
result.map(|_| ())
}
// Line 1300
fn c47_l1300_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c47_l1300_action_invoke");
let result = instance.call("multiple-value", &[Value::I32(4 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(214 as i32))));
result.map(|_| ())
}
// Line 1301
fn c48_l1301_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c48_l1301_action_invoke");
let result = instance.call("multiple-value", &[Value::I32(5 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(214 as i32))));
result.map(|_| ())
}
// Line 1302
fn c49_l1302_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c49_l1302_action_invoke");
let result = instance.call("multiple-value", &[Value::I32(6 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(214 as i32))));
result.map(|_| ())
}
// Line 1303
fn c50_l1303_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c50_l1303_action_invoke");
let result = instance.call("multiple-value", &[Value::I32(10 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(214 as i32))));
result.map(|_| ())
}
// Line 1304
fn c51_l1304_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c51_l1304_action_invoke");
let result = instance.call("multiple-value", &[Value::I32(-1 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(214 as i32))));
result.map(|_| ())
}
// Line 1305
fn c52_l1305_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c52_l1305_action_invoke");
let result = instance.call("multiple-value", &[Value::I32(-1 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(214 as i32))));
result.map(|_| ())
}
// Line 1307
fn c53_l1307_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c53_l1307_action_invoke");
let result = instance.call("large", &[Value::I32(0 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(0 as i32))));
result.map(|_| ())
}
// Line 1308
fn c54_l1308_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c54_l1308_action_invoke");
let result = instance.call("large", &[Value::I32(1 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(1 as i32))));
result.map(|_| ())
}
// Line 1309
fn c55_l1309_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c55_l1309_action_invoke");
let result = instance.call("large", &[Value::I32(100 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(0 as i32))));
result.map(|_| ())
}
// Line 1310
fn c56_l1310_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c56_l1310_action_invoke");
let result = instance.call("large", &[Value::I32(101 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(1 as i32))));
result.map(|_| ())
}
// Line 1311
fn c57_l1311_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c57_l1311_action_invoke");
let result = instance.call("large", &[Value::I32(10000 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(0 as i32))));
result.map(|_| ())
}
// Line 1312
fn c58_l1312_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c58_l1312_action_invoke");
let result = instance.call("large", &[Value::I32(10001 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(1 as i32))));
result.map(|_| ())
}
// Line 1313
fn c59_l1313_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c59_l1313_action_invoke");
let result = instance.call("large", &[Value::I32(1000000 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(1 as i32))));
result.map(|_| ())
}
// Line 1314
fn c60_l1314_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c60_l1314_action_invoke");
let result = instance.call("large", &[Value::I32(1000001 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(1 as i32))));
result.map(|_| ())
}
// Line 1316
fn c61_l1316_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c61_l1316_action_invoke");
let result = instance.call("as-block-first", &[]);
assert_eq!(result, Ok(None));
result.map(|_| ())
}
// Line 1317
fn c62_l1317_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c62_l1317_action_invoke");
let result = instance.call("as-block-mid", &[]);
assert_eq!(result, Ok(None));
result.map(|_| ())
}
// Line 1318
fn c63_l1318_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c63_l1318_action_invoke");
let result = instance.call("as-block-last", &[]);
assert_eq!(result, Ok(None));
result.map(|_| ())
}
// Line 1319
fn c64_l1319_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c64_l1319_action_invoke");
let result = instance.call("as-block-value", &[]);
assert_eq!(result, Ok(Some(Value::I32(2 as i32))));
result.map(|_| ())
}
// Line 1321
fn c65_l1321_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c65_l1321_action_invoke");
let result = instance.call("as-loop-first", &[]);
assert_eq!(result, Ok(Some(Value::I32(3 as i32))));
result.map(|_| ())
}
// Line 1322
fn c66_l1322_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c66_l1322_action_invoke");
let result = instance.call("as-loop-mid", &[]);
assert_eq!(result, Ok(Some(Value::I32(4 as i32))));
result.map(|_| ())
}
// Line 1323
fn c67_l1323_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c67_l1323_action_invoke");
let result = instance.call("as-loop-last", &[]);
assert_eq!(result, Ok(Some(Value::I32(5 as i32))));
result.map(|_| ())
}
// Line 1325
fn c68_l1325_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c68_l1325_action_invoke");
let result = instance.call("as-br-value", &[]);
assert_eq!(result, Ok(Some(Value::I32(9 as i32))));
result.map(|_| ())
}
// Line 1327
fn c69_l1327_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c69_l1327_action_invoke");
let result = instance.call("as-br_if-cond", &[]);
assert_eq!(result, Ok(None));
result.map(|_| ())
}
// Line 1328
fn c70_l1328_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c70_l1328_action_invoke");
let result = instance.call("as-br_if-value", &[]);
assert_eq!(result, Ok(Some(Value::I32(8 as i32))));
result.map(|_| ())
}
// Line 1329
fn c71_l1329_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c71_l1329_action_invoke");
let result = instance.call("as-br_if-value-cond", &[]);
assert_eq!(result, Ok(Some(Value::I32(9 as i32))));
result.map(|_| ())
}
// Line 1331
fn c72_l1331_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c72_l1331_action_invoke");
let result = instance.call("as-br_table-index", &[]);
assert_eq!(result, Ok(None));
result.map(|_| ())
}
// Line 1332
fn c73_l1332_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c73_l1332_action_invoke");
let result = instance.call("as-br_table-value", &[]);
assert_eq!(result, Ok(Some(Value::I32(10 as i32))));
result.map(|_| ())
}
// Line 1333
fn c74_l1333_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c74_l1333_action_invoke");
let result = instance.call("as-br_table-value-index", &[]);
assert_eq!(result, Ok(Some(Value::I32(11 as i32))));
result.map(|_| ())
}
// Line 1335
fn c75_l1335_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c75_l1335_action_invoke");
let result = instance.call("as-return-value", &[]);
assert_eq!(result, Ok(Some(Value::I64(7 as i64))));
result.map(|_| ())
}
// Line 1337
fn c76_l1337_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c76_l1337_action_invoke");
let result = instance.call("as-if-cond", &[]);
assert_eq!(result, Ok(Some(Value::I32(2 as i32))));
result.map(|_| ())
}
// Line 1338
fn c77_l1338_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c77_l1338_action_invoke");
let result = instance.call("as-if-then", &[Value::I32(1 as i32), Value::I32(6 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(3 as i32))));
result.map(|_| ())
}
// Line 1339
fn c78_l1339_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c78_l1339_action_invoke");
let result = instance.call("as-if-then", &[Value::I32(0 as i32), Value::I32(6 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(6 as i32))));
result.map(|_| ())
}
// Line 1340
fn c79_l1340_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c79_l1340_action_invoke");
let result = instance.call("as-if-else", &[Value::I32(0 as i32), Value::I32(6 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(4 as i32))));
result.map(|_| ())
}
// Line 1341
fn c80_l1341_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c80_l1341_action_invoke");
let result = instance.call("as-if-else", &[Value::I32(1 as i32), Value::I32(6 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(6 as i32))));
result.map(|_| ())
}
// Line 1343
fn c81_l1343_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c81_l1343_action_invoke");
let result = instance.call("as-select-first", &[Value::I32(0 as i32), Value::I32(6 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(5 as i32))));
result.map(|_| ())
}
// Line 1344
fn c82_l1344_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c82_l1344_action_invoke");
let result = instance.call("as-select-first", &[Value::I32(1 as i32), Value::I32(6 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(5 as i32))));
result.map(|_| ())
}
// Line 1345
fn c83_l1345_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c83_l1345_action_invoke");
let result = instance.call("as-select-second", &[Value::I32(0 as i32), Value::I32(6 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(6 as i32))));
result.map(|_| ())
}
// Line 1346
fn c84_l1346_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c84_l1346_action_invoke");
let result = instance.call("as-select-second", &[Value::I32(1 as i32), Value::I32(6 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(6 as i32))));
result.map(|_| ())
}
// Line 1347
fn c85_l1347_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c85_l1347_action_invoke");
let result = instance.call("as-select-cond", &[]);
assert_eq!(result, Ok(Some(Value::I32(7 as i32))));
result.map(|_| ())
}
// Line 1349
fn c86_l1349_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c86_l1349_action_invoke");
let result = instance.call("as-call-first", &[]);
assert_eq!(result, Ok(Some(Value::I32(12 as i32))));
result.map(|_| ())
}
// Line 1350
fn c87_l1350_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c87_l1350_action_invoke");
let result = instance.call("as-call-mid", &[]);
assert_eq!(result, Ok(Some(Value::I32(13 as i32))));
result.map(|_| ())
}
// Line 1351
fn c88_l1351_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c88_l1351_action_invoke");
let result = instance.call("as-call-last", &[]);
assert_eq!(result, Ok(Some(Value::I32(14 as i32))));
result.map(|_| ())
}
// Line 1353
fn c89_l1353_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c89_l1353_action_invoke");
let result = instance.call("as-call_indirect-first", &[]);
assert_eq!(result, Ok(Some(Value::I32(20 as i32))));
result.map(|_| ())
}
// Line 1354
fn c90_l1354_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c90_l1354_action_invoke");
let result = instance.call("as-call_indirect-mid", &[]);
assert_eq!(result, Ok(Some(Value::I32(21 as i32))));
result.map(|_| ())
}
// Line 1355
fn c91_l1355_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c91_l1355_action_invoke");
let result = instance.call("as-call_indirect-last", &[]);
assert_eq!(result, Ok(Some(Value::I32(22 as i32))));
result.map(|_| ())
}
// Line 1356
fn c92_l1356_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c92_l1356_action_invoke");
let result = instance.call("as-call_indirect-func", &[]);
assert_eq!(result, Ok(Some(Value::I32(23 as i32))));
result.map(|_| ())
}
// Line 1358
fn c93_l1358_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c93_l1358_action_invoke");
let result = instance.call("as-set_local-value", &[]);
assert_eq!(result, Ok(Some(Value::I32(17 as i32))));
result.map(|_| ())
}
// Line 1359
fn c94_l1359_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c94_l1359_action_invoke");
let result = instance.call("as-tee_local-value", &[]);
assert_eq!(result, Ok(Some(Value::I32(1 as i32))));
result.map(|_| ())
}
// Line 1360
fn c95_l1360_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c95_l1360_action_invoke");
let result = instance.call("as-set_global-value", &[]);
assert_eq!(result, Ok(Some(Value::I32(1 as i32))));
result.map(|_| ())
}
// Line 1362
fn c96_l1362_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c96_l1362_action_invoke");
let result = instance.call("as-load-address", &[]);
assert_eq!(result, Ok(Some(Value::F32((1.7f32).to_bits()))));
result.map(|_| ())
}
// Line 1363
fn c97_l1363_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c97_l1363_action_invoke");
let result = instance.call("as-loadN-address", &[]);
assert_eq!(result, Ok(Some(Value::I64(30 as i64))));
result.map(|_| ())
}
// Line 1365
fn c98_l1365_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c98_l1365_action_invoke");
let result = instance.call("as-store-address", &[]);
assert_eq!(result, Ok(Some(Value::I32(30 as i32))));
result.map(|_| ())
}
// Line 1366
fn c99_l1366_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c99_l1366_action_invoke");
let result = instance.call("as-store-value", &[]);
assert_eq!(result, Ok(Some(Value::I32(31 as i32))));
result.map(|_| ())
}
// Line 1367
fn c100_l1367_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c100_l1367_action_invoke");
let result = instance.call("as-storeN-address", &[]);
assert_eq!(result, Ok(Some(Value::I32(32 as i32))));
result.map(|_| ())
}
// Line 1368
fn c101_l1368_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c101_l1368_action_invoke");
let result = instance.call("as-storeN-value", &[]);
assert_eq!(result, Ok(Some(Value::I32(33 as i32))));
result.map(|_| ())
}
// Line 1370
fn c102_l1370_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c102_l1370_action_invoke");
let result = instance.call("as-unary-operand", &[]);
assert_eq!(result, Ok(Some(Value::F32((3.4f32).to_bits()))));
result.map(|_| ())
}
// Line 1372
fn c103_l1372_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c103_l1372_action_invoke");
let result = instance.call("as-binary-left", &[]);
assert_eq!(result, Ok(Some(Value::I32(3 as i32))));
result.map(|_| ())
}
// Line 1373
fn c104_l1373_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c104_l1373_action_invoke");
let result = instance.call("as-binary-right", &[]);
assert_eq!(result, Ok(Some(Value::I64(45 as i64))));
result.map(|_| ())
}
// Line 1375
fn c105_l1375_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c105_l1375_action_invoke");
let result = instance.call("as-test-operand", &[]);
assert_eq!(result, Ok(Some(Value::I32(44 as i32))));
result.map(|_| ())
}
// Line 1377
fn c106_l1377_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c106_l1377_action_invoke");
let result = instance.call("as-compare-left", &[]);
assert_eq!(result, Ok(Some(Value::I32(43 as i32))));
result.map(|_| ())
}
// Line 1378
fn c107_l1378_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c107_l1378_action_invoke");
let result = instance.call("as-compare-right", &[]);
assert_eq!(result, Ok(Some(Value::I32(42 as i32))));
result.map(|_| ())
}
// Line 1380
fn c108_l1380_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c108_l1380_action_invoke");
let result = instance.call("as-convert-operand", &[]);
assert_eq!(result, Ok(Some(Value::I32(41 as i32))));
result.map(|_| ())
}
// Line 1382
fn c109_l1382_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c109_l1382_action_invoke");
let result = instance.call("as-memory.grow-size", &[]);
assert_eq!(result, Ok(Some(Value::I32(40 as i32))));
result.map(|_| ())
}
// Line 1384
fn c110_l1384_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c110_l1384_action_invoke");
let result = instance.call("nested-block-value", &[Value::I32(0 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(19 as i32))));
result.map(|_| ())
}
// Line 1385
fn c111_l1385_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c111_l1385_action_invoke");
let result = instance.call("nested-block-value", &[Value::I32(1 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(17 as i32))));
result.map(|_| ())
}
// Line 1386
fn c112_l1386_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c112_l1386_action_invoke");
let result = instance.call("nested-block-value", &[Value::I32(2 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(16 as i32))));
result.map(|_| ())
}
// Line 1387
fn c113_l1387_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c113_l1387_action_invoke");
let result = instance.call("nested-block-value", &[Value::I32(10 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(16 as i32))));
result.map(|_| ())
}
// Line 1388
fn c114_l1388_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c114_l1388_action_invoke");
let result = instance.call("nested-block-value", &[Value::I32(-1 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(16 as i32))));
result.map(|_| ())
}
// Line 1389
fn c115_l1389_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c115_l1389_action_invoke");
let result = instance.call("nested-block-value", &[Value::I32(100000 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(16 as i32))));
result.map(|_| ())
}
// Line 1391
fn c116_l1391_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c116_l1391_action_invoke");
let result = instance.call("nested-br-value", &[Value::I32(0 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(8 as i32))));
result.map(|_| ())
}
// Line 1392
fn c117_l1392_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c117_l1392_action_invoke");
let result = instance.call("nested-br-value", &[Value::I32(1 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(9 as i32))));
result.map(|_| ())
}
// Line 1393
fn c118_l1393_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c118_l1393_action_invoke");
let result = instance.call("nested-br-value", &[Value::I32(2 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(17 as i32))));
result.map(|_| ())
}
// Line 1394
fn c119_l1394_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c119_l1394_action_invoke");
let result = instance.call("nested-br-value", &[Value::I32(11 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(17 as i32))));
result.map(|_| ())
}
// Line 1395
fn c120_l1395_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c120_l1395_action_invoke");
let result = instance.call("nested-br-value", &[Value::I32(-4 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(17 as i32))));
result.map(|_| ())
}
// Line 1396
fn c121_l1396_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c121_l1396_action_invoke");
let result = instance.call("nested-br-value", &[Value::I32(10213210 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(17 as i32))));
result.map(|_| ())
}
// Line 1398
fn c122_l1398_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c122_l1398_action_invoke");
let result = instance.call("nested-br_if-value", &[Value::I32(0 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(17 as i32))));
result.map(|_| ())
}
// Line 1399
fn c123_l1399_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c123_l1399_action_invoke");
let result = instance.call("nested-br_if-value", &[Value::I32(1 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(9 as i32))));
result.map(|_| ())
}
// Line 1400
fn c124_l1400_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c124_l1400_action_invoke");
let result = instance.call("nested-br_if-value", &[Value::I32(2 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(8 as i32))));
result.map(|_| ())
}
// Line 1401
fn c125_l1401_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c125_l1401_action_invoke");
let result = instance.call("nested-br_if-value", &[Value::I32(9 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(8 as i32))));
result.map(|_| ())
}
// Line 1402
fn c126_l1402_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c126_l1402_action_invoke");
let result = instance.call("nested-br_if-value", &[Value::I32(-9 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(8 as i32))));
result.map(|_| ())
}
// Line 1403
fn c127_l1403_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c127_l1403_action_invoke");
let result = instance.call("nested-br_if-value", &[Value::I32(999999 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(8 as i32))));
result.map(|_| ())
}
// Line 1405
fn c128_l1405_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c128_l1405_action_invoke");
let result = instance.call("nested-br_if-value-cond", &[Value::I32(0 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(9 as i32))));
result.map(|_| ())
}
// Line 1406
fn c129_l1406_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c129_l1406_action_invoke");
let result = instance.call("nested-br_if-value-cond", &[Value::I32(1 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(8 as i32))));
result.map(|_| ())
}
// Line 1407
fn c130_l1407_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c130_l1407_action_invoke");
let result = instance.call("nested-br_if-value-cond", &[Value::I32(2 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(9 as i32))));
result.map(|_| ())
}
// Line 1408
fn c131_l1408_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c131_l1408_action_invoke");
let result = instance.call("nested-br_if-value-cond", &[Value::I32(3 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(9 as i32))));
result.map(|_| ())
}
// Line 1409
fn c132_l1409_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c132_l1409_action_invoke");
let result = instance.call("nested-br_if-value-cond", &[Value::I32(-1000000 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(9 as i32))));
result.map(|_| ())
}
// Line 1410
fn c133_l1410_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c133_l1410_action_invoke");
let result = instance.call("nested-br_if-value-cond", &[Value::I32(9423975 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(9 as i32))));
result.map(|_| ())
}
// Line 1412
fn c134_l1412_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c134_l1412_action_invoke");
let result = instance.call("nested-br_table-value", &[Value::I32(0 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(17 as i32))));
result.map(|_| ())
}
// Line 1413
fn c135_l1413_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c135_l1413_action_invoke");
let result = instance.call("nested-br_table-value", &[Value::I32(1 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(9 as i32))));
result.map(|_| ())
}
// Line 1414
fn c136_l1414_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c136_l1414_action_invoke");
let result = instance.call("nested-br_table-value", &[Value::I32(2 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(8 as i32))));
result.map(|_| ())
}
// Line 1415
fn c137_l1415_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c137_l1415_action_invoke");
let result = instance.call("nested-br_table-value", &[Value::I32(9 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(8 as i32))));
result.map(|_| ())
}
// Line 1416
fn c138_l1416_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c138_l1416_action_invoke");
let result = instance.call("nested-br_table-value", &[Value::I32(-9 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(8 as i32))));
result.map(|_| ())
}
// Line 1417
fn c139_l1417_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c139_l1417_action_invoke");
let result = instance.call("nested-br_table-value", &[Value::I32(999999 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(8 as i32))));
result.map(|_| ())
}
// Line 1419
fn c140_l1419_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c140_l1419_action_invoke");
let result = instance.call("nested-br_table-value-index", &[Value::I32(0 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(9 as i32))));
result.map(|_| ())
}
// Line 1420
fn c141_l1420_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c141_l1420_action_invoke");
let result = instance.call("nested-br_table-value-index", &[Value::I32(1 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(8 as i32))));
result.map(|_| ())
}
// Line 1421
fn c142_l1421_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c142_l1421_action_invoke");
let result = instance.call("nested-br_table-value-index", &[Value::I32(2 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(9 as i32))));
result.map(|_| ())
}
// Line 1422
fn c143_l1422_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c143_l1422_action_invoke");
let result = instance.call("nested-br_table-value-index", &[Value::I32(3 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(9 as i32))));
result.map(|_| ())
}
// Line 1423
fn c144_l1423_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c144_l1423_action_invoke");
let result = instance.call("nested-br_table-value-index", &[Value::I32(-1000000 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(9 as i32))));
result.map(|_| ())
}
// Line 1424
fn c145_l1424_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c145_l1424_action_invoke");
let result = instance.call("nested-br_table-value-index", &[Value::I32(9423975 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(9 as i32))));
result.map(|_| ())
}
// Line 1426
fn c146_l1426_action_invoke(instance: &mut Instance) -> Result<(), String> {
println!("Executing function {}", "c146_l1426_action_invoke");
let result = instance.call("nested-br_table-loop-block", &[Value::I32(1 as i32)]);
assert_eq!(result, Ok(Some(Value::I32(3 as i32))));
result.map(|_| ())
}
// Line 1429
#[test]
fn c147_l1429_assert_invalid() {
let wasm_binary = [0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 96, 0, 1, 127, 3, 2, 1, 0, 10, 14, 1, 12, 0, 2, 64, 65, 1, 14, 0, 0, 65, 1, 11, 11];
let module = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
assert!(module.is_err(), "WASM should not compile as is invalid");
}
// Line 1436
#[test]
fn c148_l1436_assert_invalid() {
let wasm_binary = [0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 96, 0, 1, 127, 3, 2, 1, 0, 10, 15, 1, 13, 0, 2, 127, 1, 65, 1, 14, 0, 0, 65, 1, 11, 11];
let module = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
assert!(module.is_err(), "WASM should not compile as is invalid");
}
// Line 1442
#[test]
fn c149_l1442_assert_invalid() {
let wasm_binary = [0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 96, 0, 1, 127, 3, 2, 1, 0, 10, 18, 1, 16, 0, 2, 127, 66, 1, 65, 1, 14, 2, 0, 0, 0, 65, 1, 11, 11];
let module = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
assert!(module.is_err(), "WASM should not compile as is invalid");
}
// Line 1450
#[test]
fn c150_l1450_assert_invalid() {
let wasm_binary = [0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 10, 22, 1, 20, 0, 2, 64, 2, 125, 67, 0, 0, 0, 0, 65, 0, 14, 1, 0, 1, 11, 26, 11, 11];
let module = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
assert!(module.is_err(), "WASM should not compile as is invalid");
}
// Line 1462
#[test]
fn c151_l1462_assert_invalid() {
let wasm_binary = [0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 10, 13, 1, 11, 0, 2, 64, 1, 14, 2, 0, 0, 0, 11, 11];
let module = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
assert!(module.is_err(), "WASM should not compile as is invalid");
}
// Line 1468
#[test]
fn c152_l1468_assert_invalid() {
let wasm_binary = [0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 10, 12, 1, 10, 0, 2, 64, 66, 0, 14, 0, 0, 11, 11];
let module = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
assert!(module.is_err(), "WASM should not compile as is invalid");
}
// Line 1474
#[test]
fn c153_l1474_assert_invalid() {
let wasm_binary = [0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 96, 0, 1, 127, 3, 2, 1, 0, 10, 16, 1, 14, 0, 2, 127, 65, 0, 1, 14, 1, 0, 0, 65, 1, 11, 11];
let module = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
assert!(module.is_err(), "WASM should not compile as is invalid");
}
// Line 1480
#[test]
fn c154_l1480_assert_invalid() {
let wasm_binary = [0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 96, 0, 1, 127, 3, 2, 1, 0, 10, 17, 1, 15, 0, 2, 127, 65, 0, 2, 64, 65, 0, 14, 0, 1, 11, 11, 11];
let module = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
assert!(module.is_err(), "WASM should not compile as is invalid");
}
// Line 1486
#[test]
fn c155_l1486_assert_invalid() {
let wasm_binary = [0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 96, 0, 1, 127, 3, 2, 1, 0, 10, 17, 1, 15, 0, 2, 127, 65, 0, 66, 0, 14, 1, 0, 0, 65, 1, 11, 11];
let module = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
assert!(module.is_err(), "WASM should not compile as is invalid");
}
// Line 1495
#[test]
fn c156_l1495_assert_invalid() {
let wasm_binary = [0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 10, 13, 1, 11, 0, 2, 64, 65, 1, 14, 1, 2, 1, 11, 11];
let module = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
assert!(module.is_err(), "WASM should not compile as is invalid");
}
// Line 1501
#[test]
fn c157_l1501_assert_invalid() {
let wasm_binary = [0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 10, 16, 1, 14, 0, 2, 64, 2, 64, 65, 1, 14, 1, 0, 5, 11, 11, 11];
let module = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
assert!(module.is_err(), "WASM should not compile as is invalid");
}
// Line 1507
#[test]
fn c158_l1507_assert_invalid() {
let wasm_binary = [0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 10, 18, 1, 16, 0, 2, 64, 65, 1, 14, 2, 0, 129, 128, 128, 128, 1, 0, 11, 11];
let module = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
assert!(module.is_err(), "WASM should not compile as is invalid");
}
// Line 1514
#[test]
fn c159_l1514_assert_invalid() {
let wasm_binary = [0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 10, 13, 1, 11, 0, 2, 64, 65, 1, 14, 1, 1, 2, 11, 11];
let module = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
assert!(module.is_err(), "WASM should not compile as is invalid");
}
// Line 1520
#[test]
fn c160_l1520_assert_invalid() {
let wasm_binary = [0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 10, 16, 1, 14, 0, 2, 64, 2, 64, 65, 1, 14, 1, 0, 5, 11, 11, 11];
let module = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
assert!(module.is_err(), "WASM should not compile as is invalid");
}
// Line 1526
#[test]
fn c161_l1526_assert_invalid() {
let wasm_binary = [0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 10, 18, 1, 16, 0, 2, 64, 65, 1, 14, 2, 0, 0, 129, 128, 128, 128, 1, 11, 11];
let module = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
assert!(module.is_err(), "WASM should not compile as is invalid");
}
#[test]
fn test_module_1() {
let mut instance = create_module_1();
// We group the calls together
start_module_1(&mut instance);
c1_l1247_action_invoke(&mut instance);
c2_l1248_action_invoke(&mut instance);
c3_l1249_action_invoke(&mut instance);
c4_l1250_action_invoke(&mut instance);
c5_l1252_action_invoke(&mut instance);
c6_l1253_action_invoke(&mut instance);
c7_l1254_action_invoke(&mut instance);
c8_l1255_action_invoke(&mut instance);
c9_l1257_action_invoke(&mut instance);
c10_l1258_action_invoke(&mut instance);
c11_l1259_action_invoke(&mut instance);
c12_l1260_action_invoke(&mut instance);
c13_l1261_action_invoke(&mut instance);
c14_l1262_action_invoke(&mut instance);
c15_l1264_action_invoke(&mut instance);
c16_l1265_action_invoke(&mut instance);
c17_l1266_action_invoke(&mut instance);
c18_l1267_action_invoke(&mut instance);
c19_l1268_action_invoke(&mut instance);
c20_l1269_action_invoke(&mut instance);
c21_l1271_action_invoke(&mut instance);
c22_l1272_action_invoke(&mut instance);
c23_l1273_action_invoke(&mut instance);
c24_l1274_action_invoke(&mut instance);
c25_l1275_action_invoke(&mut instance);
c26_l1276_action_invoke(&mut instance);
c27_l1278_action_invoke(&mut instance);
c28_l1279_action_invoke(&mut instance);
c29_l1280_action_invoke(&mut instance);
c30_l1281_action_invoke(&mut instance);
c31_l1282_action_invoke(&mut instance);
c32_l1283_action_invoke(&mut instance);
c33_l1285_action_invoke(&mut instance);
c34_l1286_action_invoke(&mut instance);
c35_l1287_action_invoke(&mut instance);
c36_l1288_action_invoke(&mut instance);
c37_l1289_action_invoke(&mut instance);
c38_l1290_action_invoke(&mut instance);
c39_l1291_action_invoke(&mut instance);
c40_l1292_action_invoke(&mut instance);
c41_l1293_action_invoke(&mut instance);
c42_l1294_action_invoke(&mut instance);
c43_l1296_action_invoke(&mut instance);
c44_l1297_action_invoke(&mut instance);
c45_l1298_action_invoke(&mut instance);
c46_l1299_action_invoke(&mut instance);
c47_l1300_action_invoke(&mut instance);
c48_l1301_action_invoke(&mut instance);
c49_l1302_action_invoke(&mut instance);
c50_l1303_action_invoke(&mut instance);
c51_l1304_action_invoke(&mut instance);
c52_l1305_action_invoke(&mut instance);
c53_l1307_action_invoke(&mut instance);
c54_l1308_action_invoke(&mut instance);
c55_l1309_action_invoke(&mut instance);
c56_l1310_action_invoke(&mut instance);
c57_l1311_action_invoke(&mut instance);
c58_l1312_action_invoke(&mut instance);
c59_l1313_action_invoke(&mut instance);
c60_l1314_action_invoke(&mut instance);
c61_l1316_action_invoke(&mut instance);
c62_l1317_action_invoke(&mut instance);
c63_l1318_action_invoke(&mut instance);
c64_l1319_action_invoke(&mut instance);
c65_l1321_action_invoke(&mut instance);
c66_l1322_action_invoke(&mut instance);
c67_l1323_action_invoke(&mut instance);
c68_l1325_action_invoke(&mut instance);
c69_l1327_action_invoke(&mut instance);
c70_l1328_action_invoke(&mut instance);
c71_l1329_action_invoke(&mut instance);
c72_l1331_action_invoke(&mut instance);
c73_l1332_action_invoke(&mut instance);
c74_l1333_action_invoke(&mut instance);
c75_l1335_action_invoke(&mut instance);
c76_l1337_action_invoke(&mut instance);
c77_l1338_action_invoke(&mut instance);
c78_l1339_action_invoke(&mut instance);
c79_l1340_action_invoke(&mut instance);
c80_l1341_action_invoke(&mut instance);
c81_l1343_action_invoke(&mut instance);
c82_l1344_action_invoke(&mut instance);
c83_l1345_action_invoke(&mut instance);
c84_l1346_action_invoke(&mut instance);
c85_l1347_action_invoke(&mut instance);
c86_l1349_action_invoke(&mut instance);
c87_l1350_action_invoke(&mut instance);
c88_l1351_action_invoke(&mut instance);
c89_l1353_action_invoke(&mut instance);
c90_l1354_action_invoke(&mut instance);
c91_l1355_action_invoke(&mut instance);
c92_l1356_action_invoke(&mut instance);
c93_l1358_action_invoke(&mut instance);
c94_l1359_action_invoke(&mut instance);
c95_l1360_action_invoke(&mut instance);
c96_l1362_action_invoke(&mut instance);
c97_l1363_action_invoke(&mut instance);
c98_l1365_action_invoke(&mut instance);
c99_l1366_action_invoke(&mut instance);
c100_l1367_action_invoke(&mut instance);
c101_l1368_action_invoke(&mut instance);
c102_l1370_action_invoke(&mut instance);
c103_l1372_action_invoke(&mut instance);
c104_l1373_action_invoke(&mut instance);
c105_l1375_action_invoke(&mut instance);
c106_l1377_action_invoke(&mut instance);
c107_l1378_action_invoke(&mut instance);
c108_l1380_action_invoke(&mut instance);
c109_l1382_action_invoke(&mut instance);
c110_l1384_action_invoke(&mut instance);
c111_l1385_action_invoke(&mut instance);
c112_l1386_action_invoke(&mut instance);
c113_l1387_action_invoke(&mut instance);
c114_l1388_action_invoke(&mut instance);
c115_l1389_action_invoke(&mut instance);
c116_l1391_action_invoke(&mut instance);
c117_l1392_action_invoke(&mut instance);
c118_l1393_action_invoke(&mut instance);
c119_l1394_action_invoke(&mut instance);
c120_l1395_action_invoke(&mut instance);
c121_l1396_action_invoke(&mut instance);
c122_l1398_action_invoke(&mut instance);
c123_l1399_action_invoke(&mut instance);
c124_l1400_action_invoke(&mut instance);
c125_l1401_action_invoke(&mut instance);
c126_l1402_action_invoke(&mut instance);
c127_l1403_action_invoke(&mut instance);
c128_l1405_action_invoke(&mut instance);
c129_l1406_action_invoke(&mut instance);
c130_l1407_action_invoke(&mut instance);
c131_l1408_action_invoke(&mut instance);
c132_l1409_action_invoke(&mut instance);
c133_l1410_action_invoke(&mut instance);
c134_l1412_action_invoke(&mut instance);
c135_l1413_action_invoke(&mut instance);
c136_l1414_action_invoke(&mut instance);
c137_l1415_action_invoke(&mut instance);
c138_l1416_action_invoke(&mut instance);
c139_l1417_action_invoke(&mut instance);
c140_l1419_action_invoke(&mut instance);
c141_l1420_action_invoke(&mut instance);
c142_l1421_action_invoke(&mut instance);
c143_l1422_action_invoke(&mut instance);
c144_l1423_action_invoke(&mut instance);
c145_l1424_action_invoke(&mut instance);
c146_l1426_action_invoke(&mut instance);
}