mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-15 07:05:41 +00:00
1809 lines
62 KiB
Rust
1809 lines
62 KiB
Rust
|
// 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/if_.wast
|
||
|
#![allow(
|
||
|
warnings,
|
||
|
dead_code
|
||
|
)]
|
||
|
use wabt::wat2wasm;
|
||
|
use std::{f32, f64};
|
||
|
|
||
|
use wasmer_runtime::types::Value;
|
||
|
use wasmer_runtime::{Instance, Module};
|
||
|
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) (result i32)))
|
||
|
(type (;1;) (func))
|
||
|
(type (;2;) (func (param i32)))
|
||
|
(type (;3;) (func (param i32) (result i32)))
|
||
|
(type (;4;) (func (result i32)))
|
||
|
(func (;0;) (type 1))
|
||
|
(func (;1;) (type 2) (param i32)
|
||
|
get_local 0
|
||
|
if ;; label = @1
|
||
|
end
|
||
|
get_local 0
|
||
|
if ;; label = @1
|
||
|
end
|
||
|
get_local 0
|
||
|
if ;; label = @1
|
||
|
end
|
||
|
get_local 0
|
||
|
if ;; label = @1
|
||
|
end)
|
||
|
(func (;2;) (type 3) (param i32) (result i32)
|
||
|
get_local 0
|
||
|
if ;; label = @1
|
||
|
nop
|
||
|
end
|
||
|
get_local 0
|
||
|
if ;; label = @1
|
||
|
nop
|
||
|
else
|
||
|
nop
|
||
|
end
|
||
|
get_local 0
|
||
|
if (result i32) ;; label = @1
|
||
|
i32.const 7
|
||
|
else
|
||
|
i32.const 8
|
||
|
end)
|
||
|
(func (;3;) (type 3) (param i32) (result i32)
|
||
|
get_local 0
|
||
|
if ;; label = @1
|
||
|
call 0
|
||
|
call 0
|
||
|
call 0
|
||
|
end
|
||
|
get_local 0
|
||
|
if ;; label = @1
|
||
|
else
|
||
|
call 0
|
||
|
call 0
|
||
|
call 0
|
||
|
end
|
||
|
get_local 0
|
||
|
if (result i32) ;; label = @1
|
||
|
call 0
|
||
|
call 0
|
||
|
i32.const 8
|
||
|
else
|
||
|
call 0
|
||
|
call 0
|
||
|
i32.const 9
|
||
|
end)
|
||
|
(func (;4;) (type 0) (param i32 i32) (result i32)
|
||
|
get_local 0
|
||
|
if (result i32) ;; label = @1
|
||
|
get_local 1
|
||
|
if ;; label = @2
|
||
|
call 0
|
||
|
block ;; label = @3
|
||
|
end
|
||
|
nop
|
||
|
end
|
||
|
get_local 1
|
||
|
if ;; label = @2
|
||
|
else
|
||
|
call 0
|
||
|
block ;; label = @3
|
||
|
end
|
||
|
nop
|
||
|
end
|
||
|
get_local 1
|
||
|
if (result i32) ;; label = @2
|
||
|
call 0
|
||
|
i32.const 9
|
||
|
else
|
||
|
call 0
|
||
|
i32.const 10
|
||
|
end
|
||
|
else
|
||
|
get_local 1
|
||
|
if ;; label = @2
|
||
|
call 0
|
||
|
block ;; label = @3
|
||
|
end
|
||
|
nop
|
||
|
end
|
||
|
get_local 1
|
||
|
if ;; label = @2
|
||
|
else
|
||
|
call 0
|
||
|
block ;; label = @3
|
||
|
end
|
||
|
nop
|
||
|
end
|
||
|
get_local 1
|
||
|
if (result i32) ;; label = @2
|
||
|
call 0
|
||
|
i32.const 10
|
||
|
else
|
||
|
call 0
|
||
|
i32.const 11
|
||
|
end
|
||
|
end)
|
||
|
(func (;5;) (type 3) (param i32) (result i32)
|
||
|
get_local 0
|
||
|
if (result i32) ;; label = @1
|
||
|
call 0
|
||
|
i32.const 1
|
||
|
else
|
||
|
call 0
|
||
|
i32.const 0
|
||
|
end
|
||
|
i32.const 2
|
||
|
i32.const 3
|
||
|
select)
|
||
|
(func (;6;) (type 3) (param i32) (result i32)
|
||
|
i32.const 2
|
||
|
get_local 0
|
||
|
if (result i32) ;; label = @1
|
||
|
call 0
|
||
|
i32.const 1
|
||
|
else
|
||
|
call 0
|
||
|
i32.const 0
|
||
|
end
|
||
|
i32.const 3
|
||
|
select)
|
||
|
(func (;7;) (type 3) (param i32) (result i32)
|
||
|
i32.const 2
|
||
|
i32.const 3
|
||
|
get_local 0
|
||
|
if (result i32) ;; label = @1
|
||
|
call 0
|
||
|
i32.const 1
|
||
|
else
|
||
|
call 0
|
||
|
i32.const 0
|
||
|
end
|
||
|
select)
|
||
|
(func (;8;) (type 3) (param i32) (result i32)
|
||
|
loop (result i32) ;; label = @1
|
||
|
get_local 0
|
||
|
if (result i32) ;; label = @2
|
||
|
call 0
|
||
|
i32.const 1
|
||
|
else
|
||
|
call 0
|
||
|
i32.const 0
|
||
|
end
|
||
|
call 0
|
||
|
call 0
|
||
|
end)
|
||
|
(func (;9;) (type 3) (param i32) (result i32)
|
||
|
loop (result i32) ;; label = @1
|
||
|
call 0
|
||
|
get_local 0
|
||
|
if (result i32) ;; label = @2
|
||
|
call 0
|
||
|
i32.const 1
|
||
|
else
|
||
|
call 0
|
||
|
i32.const 0
|
||
|
end
|
||
|
call 0
|
||
|
end)
|
||
|
(func (;10;) (type 3) (param i32) (result i32)
|
||
|
loop (result i32) ;; label = @1
|
||
|
call 0
|
||
|
call 0
|
||
|
get_local 0
|
||
|
if (result i32) ;; label = @2
|
||
|
call 0
|
||
|
i32.const 1
|
||
|
else
|
||
|
call 0
|
||
|
i32.const 0
|
||
|
end
|
||
|
end)
|
||
|
(func (;11;) (type 3) (param i32) (result i32)
|
||
|
get_local 0
|
||
|
if (result i32) ;; label = @1
|
||
|
i32.const 1
|
||
|
else
|
||
|
i32.const 0
|
||
|
end
|
||
|
if (result i32) ;; label = @1
|
||
|
call 0
|
||
|
i32.const 2
|
||
|
else
|
||
|
call 0
|
||
|
i32.const 3
|
||
|
end)
|
||
|
(func (;12;) (type 3) (param i32) (result i32)
|
||
|
block (result i32) ;; label = @1
|
||
|
get_local 0
|
||
|
if (result i32) ;; label = @2
|
||
|
call 0
|
||
|
i32.const 1
|
||
|
else
|
||
|
call 0
|
||
|
i32.const 0
|
||
|
end
|
||
|
i32.const 2
|
||
|
br_if 0 (;@1;)
|
||
|
i32.const 3
|
||
|
return
|
||
|
end)
|
||
|
(func (;13;) (type 3) (param i32) (result i32)
|
||
|
block (result i32) ;; label = @1
|
||
|
i32.const 2
|
||
|
get_local 0
|
||
|
if (result i32) ;; label = @2
|
||
|
call 0
|
||
|
i32.const 1
|
||
|
else
|
||
|
call 0
|
||
|
i32.const 0
|
||
|
end
|
||
|
br_if 0 (;@1;)
|
||
|
i32.const 3
|
||
|
return
|
||
|
end)
|
||
|
(func (;14;) (type 3) (param i32) (result i32)
|
||
|
block (result i32) ;; label = @1
|
||
|
get_local 0
|
||
|
if (result i32) ;; label = @2
|
||
|
call 0
|
||
|
i32.const 1
|
||
|
else
|
||
|
call 0
|
||
|
i32.const 0
|
||
|
end
|
||
|
i32.const 2
|
||
|
br_table 0 (;@1;) 0 (;@1;)
|
||
|
end)
|
||
|
(func (;15;) (type 3) (param i32) (result i32)
|
||
|
block (result i32) ;; label = @1
|
||
|
i32.const 2
|
||
|
get_local 0
|
||
|
if (result i32) ;; label = @2
|
||
|
call 0
|
||
|
i32.const 1
|
||
|
else
|
||
|
call 0
|
||
|
i32.const 0
|
||
|
end
|
||
|
br_table 0 (;@1;) 0 (;@1;)
|
||
|
end)
|
||
|
(func (;16;) (type 0) (param i32 i32) (result i32)
|
||
|
get_local 0)
|
||
|
(func (;17;) (type 3) (param i32) (result i32)
|
||
|
block (result i32) ;; label = @1
|
||
|
get_local 0
|
||
|
if (result i32) ;; label = @2
|
||
|
call 0
|
||
|
i32.const 1
|
||
|
else
|
||
|
call 0
|
||
|
i32.const 0
|
||
|
end
|
||
|
i32.const 2
|
||
|
i32.const 0
|
||
|
call_indirect (type 0)
|
||
|
end)
|
||
|
(func (;18;) (type 3) (param i32) (result i32)
|
||
|
block (result i32) ;; label = @1
|
||
|
i32.const 2
|
||
|
get_local 0
|
||
|
if (result i32) ;; label = @2
|
||
|
call 0
|
||
|
i32.const 1
|
||
|
else
|
||
|
call 0
|
||
|
i32.const 0
|
||
|
end
|
||
|
i32.const 0
|
||
|
call_indirect (type 0)
|
||
|
end)
|
||
|
(func (;19;) (type 3) (param i32) (result i32)
|
||
|
block (result i32) ;; label = @1
|
||
|
i32.const 2
|
||
|
i32.const 0
|
||
|
get_local 0
|
||
|
if (result i32) ;; label = @2
|
||
|
call 0
|
||
|
i32.const 1
|
||
|
else
|
||
|
call 0
|
||
|
i32.const 0
|
||
|
end
|
||
|
call_indirect (type 0)
|
||
|
end)
|
||
|
(func (;20;) (type 2) (param i32)
|
||
|
get_local 0
|
||
|
if (result i32) ;; label = @1
|
||
|
call 0
|
||
|
i32.const 1
|
||
|
else
|
||
|
call 0
|
||
|
i32.const 0
|
||
|
end
|
||
|
i32.const 2
|
||
|
i32.store)
|
||
|
(func (;21;) (type 2) (param i32)
|
||
|
i32.const 2
|
||
|
get_local 0
|
||
|
if (result i32) ;; label = @1
|
||
|
call 0
|
||
|
i32.const 1
|
||
|
else
|
||
|
call 0
|
||
|
i32.const 0
|
||
|
end
|
||
|
i32.store)
|
||
|
(func (;22;) (type 3) (param i32) (result i32)
|
||
|
get_local 0
|
||
|
if (result i32) ;; label = @1
|
||
|
i32.const 1
|
||
|
else
|
||
|
i32.const 0
|
||
|
end
|
||
|
memory.grow)
|
||
|
(func (;23;) (type 3) (param i32) (result i32)
|
||
|
get_local 0)
|
||
|
(func (;24;) (type 3) (param i32) (result i32)
|
||
|
get_local 0
|
||
|
if (result i32) ;; label = @1
|
||
|
i32.const 1
|
||
|
else
|
||
|
i32.const 0
|
||
|
end
|
||
|
call 23)
|
||
|
(func (;25;) (type 3) (param i32) (result i32)
|
||
|
get_local 0
|
||
|
if (result i32) ;; label = @1
|
||
|
i32.const 1
|
||
|
else
|
||
|
i32.const 0
|
||
|
end
|
||
|
return)
|
||
|
(func (;26;) (type 2) (param i32)
|
||
|
get_local 0
|
||
|
if (result i32) ;; label = @1
|
||
|
i32.const 1
|
||
|
else
|
||
|
i32.const 0
|
||
|
end
|
||
|
drop)
|
||
|
(func (;27;) (type 3) (param i32) (result i32)
|
||
|
block (result i32) ;; label = @1
|
||
|
get_local 0
|
||
|
if (result i32) ;; label = @2
|
||
|
i32.const 1
|
||
|
else
|
||
|
i32.const 0
|
||
|
end
|
||
|
br 0 (;@1;)
|
||
|
end)
|
||
|
(func (;28;) (type 3) (param i32) (result i32)
|
||
|
(local i32)
|
||
|
get_local 0
|
||
|
if (result i32) ;; label = @1
|
||
|
i32.const 1
|
||
|
else
|
||
|
i32.const 0
|
||
|
end
|
||
|
set_local 0
|
||
|
get_local 0)
|
||
|
(func (;29;) (type 3) (param i32) (result i32)
|
||
|
get_local 0
|
||
|
if (result i32) ;; label = @1
|
||
|
i32.const 1
|
||
|
else
|
||
|
i32.const 0
|
||
|
end
|
||
|
tee_local 0)
|
||
|
(func (;30;) (type 3) (param i32) (result i32)
|
||
|
get_local 0
|
||
|
if (result i32) ;; label = @1
|
||
|
i32.const 1
|
||
|
else
|
||
|
i32.const 0
|
||
|
end
|
||
|
set_global 0
|
||
|
get_global 0)
|
||
|
(func (;31;) (type 3) (param i32) (result i32)
|
||
|
get_local 0
|
||
|
if (result i32) ;; label = @1
|
||
|
i32.const 11
|
||
|
else
|
||
|
i32.const 10
|
||
|
end
|
||
|
i32.load)
|
||
|
(func (;32;) (type 3) (param i32) (result i32)
|
||
|
get_local 0
|
||
|
if (result i32) ;; label = @1
|
||
|
call 0
|
||
|
i32.const 13
|
||
|
else
|
||
|
call 0
|
||
|
i32.const -13
|
||
|
end
|
||
|
i32.ctz)
|
||
|
(func (;33;) (type 0) (param i32 i32) (result i32)
|
||
|
get_local 0
|
||
|
if (result i32) ;; label = @1
|
||
|
call 0
|
||
|
i32.const 3
|
||
|
else
|
||
|
call 0
|
||
|
i32.const -3
|
||
|
end
|
||
|
get_local 1
|
||
|
if (result i32) ;; label = @1
|
||
|
call 0
|
||
|
i32.const 4
|
||
|
else
|
||
|
call 0
|
||
|
i32.const -5
|
||
|
end
|
||
|
i32.mul)
|
||
|
(func (;34;) (type 3) (param i32) (result i32)
|
||
|
get_local 0
|
||
|
if (result i32) ;; label = @1
|
||
|
call 0
|
||
|
i32.const 13
|
||
|
else
|
||
|
call 0
|
||
|
i32.const 0
|
||
|
end
|
||
|
i32.eqz)
|
||
|
(func (;35;) (type 0) (param i32 i32) (result i32)
|
||
|
get_local 0
|
||
|
if (result f32) ;; label = @1
|
||
|
call 0
|
||
|
f32.const 0x1.8p+1 (;=3;)
|
||
|
else
|
||
|
call 0
|
||
|
f32.const -0x1.8p+1 (;=-3;)
|
||
|
end
|
||
|
get_local 1
|
||
|
if (result f32) ;; label = @1
|
||
|
call 0
|
||
|
f32.const 0x1p+2 (;=4;)
|
||
|
else
|
||
|
call 0
|
||
|
f32.const -0x1p+2 (;=-4;)
|
||
|
end
|
||
|
f32.gt)
|
||
|
(func (;36;) (type 4) (result i32)
|
||
|
i32.const 1
|
||
|
if ;; label = @1
|
||
|
br 0 (;@1;)
|
||
|
unreachable
|
||
|
end
|
||
|
i32.const 1
|
||
|
if ;; label = @1
|
||
|
br 0 (;@1;)
|
||
|
unreachable
|
||
|
else
|
||
|
unreachable
|
||
|
end
|
||
|
i32.const 0
|
||
|
if ;; label = @1
|
||
|
unreachable
|
||
|
else
|
||
|
br 0 (;@1;)
|
||
|
unreachable
|
||
|
end
|
||
|
i32.const 1
|
||
|
if ;; label = @1
|
||
|
i32.const 1
|
||
|
br_if 0 (;@1;)
|
||
|
unreachable
|
||
|
end
|
||
|
i32.const 1
|
||
|
if ;; label = @1
|
||
|
i32.const 1
|
||
|
br_if 0 (;@1;)
|
||
|
unreachable
|
||
|
else
|
||
|
unreachable
|
||
|
end
|
||
|
i32.const 0
|
||
|
if ;; label = @1
|
||
|
unreachable
|
||
|
else
|
||
|
i32.const 1
|
||
|
br_if 0 (;@1;)
|
||
|
unreachable
|
||
|
end
|
||
|
i32.const 1
|
||
|
if ;; label = @1
|
||
|
i32.const 0
|
||
|
br_table 0 (;@1;)
|
||
|
unreachable
|
||
|
end
|
||
|
i32.const 1
|
||
|
if ;; label = @1
|
||
|
i32.const 0
|
||
|
br_table 0 (;@1;)
|
||
|
unreachable
|
||
|
else
|
||
|
unreachable
|
||
|
end
|
||
|
i32.const 0
|
||
|
if ;; label = @1
|
||
|
unreachable
|
||
|
else
|
||
|
i32.const 0
|
||
|
br_table 0 (;@1;)
|
||
|
unreachable
|
||
|
end
|
||
|
i32.const 19)
|
||
|
(func (;37;) (type 3) (param i32) (result i32)
|
||
|
get_local 0
|
||
|
if (result i32) ;; label = @1
|
||
|
i32.const 18
|
||
|
br 0 (;@1;)
|
||
|
i32.const 19
|
||
|
else
|
||
|
i32.const 21
|
||
|
br 0 (;@1;)
|
||
|
i32.const 20
|
||
|
end)
|
||
|
(func (;38;) (type 3) (param i32) (result i32)
|
||
|
(local i32)
|
||
|
block (result i32) ;; label = @1
|
||
|
i32.const 1
|
||
|
set_local 1
|
||
|
get_local 0
|
||
|
end
|
||
|
if ;; label = @1
|
||
|
get_local 1
|
||
|
i32.const 3
|
||
|
i32.mul
|
||
|
set_local 1
|
||
|
get_local 1
|
||
|
i32.const 5
|
||
|
i32.sub
|
||
|
set_local 1
|
||
|
get_local 1
|
||
|
i32.const 7
|
||
|
i32.mul
|
||
|
set_local 1
|
||
|
br 0 (;@1;)
|
||
|
get_local 1
|
||
|
i32.const 100
|
||
|
i32.mul
|
||
|
set_local 1
|
||
|
else
|
||
|
get_local 1
|
||
|
i32.const 5
|
||
|
i32.mul
|
||
|
set_local 1
|
||
|
get_local 1
|
||
|
i32.const 7
|
||
|
i32.sub
|
||
|
set_local 1
|
||
|
get_local 1
|
||
|
i32.const 3
|
||
|
i32.mul
|
||
|
set_local 1
|
||
|
br 0 (;@1;)
|
||
|
get_local 1
|
||
|
i32.const 1000
|
||
|
i32.mul
|
||
|
set_local 1
|
||
|
end
|
||
|
get_local 1)
|
||
|
(table (;0;) 1 1 anyfunc)
|
||
|
(memory (;0;) 1)
|
||
|
(global (;0;) (mut i32) (i32.const 10))
|
||
|
(export \"empty\" (func 1))
|
||
|
(export \"singular\" (func 2))
|
||
|
(export \"multi\" (func 3))
|
||
|
(export \"nested\" (func 4))
|
||
|
(export \"as-select-first\" (func 5))
|
||
|
(export \"as-select-mid\" (func 6))
|
||
|
(export \"as-select-last\" (func 7))
|
||
|
(export \"as-loop-first\" (func 8))
|
||
|
(export \"as-loop-mid\" (func 9))
|
||
|
(export \"as-loop-last\" (func 10))
|
||
|
(export \"as-if-condition\" (func 11))
|
||
|
(export \"as-br_if-first\" (func 12))
|
||
|
(export \"as-br_if-last\" (func 13))
|
||
|
(export \"as-br_table-first\" (func 14))
|
||
|
(export \"as-br_table-last\" (func 15))
|
||
|
(export \"as-call_indirect-first\" (func 17))
|
||
|
(export \"as-call_indirect-mid\" (func 18))
|
||
|
(export \"as-call_indirect-last\" (func 19))
|
||
|
(export \"as-store-first\" (func 20))
|
||
|
(export \"as-store-last\" (func 21))
|
||
|
(export \"as-memory.grow-value\" (func 22))
|
||
|
(export \"as-call-value\" (func 24))
|
||
|
(export \"as-return-value\" (func 25))
|
||
|
(export \"as-drop-operand\" (func 26))
|
||
|
(export \"as-br-value\" (func 27))
|
||
|
(export \"as-set_local-value\" (func 28))
|
||
|
(export \"as-tee_local-value\" (func 29))
|
||
|
(export \"as-set_global-value\" (func 30))
|
||
|
(export \"as-load-operand\" (func 31))
|
||
|
(export \"as-unary-operand\" (func 32))
|
||
|
(export \"as-binary-operand\" (func 33))
|
||
|
(export \"as-test-operand\" (func 34))
|
||
|
(export \"as-compare-operand\" (func 35))
|
||
|
(export \"break-bare\" (func 36))
|
||
|
(export \"break-value\" (func 37))
|
||
|
(export \"effects\" (func 38))
|
||
|
(elem (;0;) (i32.const 0) 16))
|
||
|
";
|
||
|
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 384
|
||
|
fn c1_l384_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c1_l384_action_invoke");
|
||
|
let result = instance.call("empty", &[Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(None));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 385
|
||
|
fn c2_l385_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c2_l385_action_invoke");
|
||
|
let result = instance.call("empty", &[Value::I32(1 as i32)]);
|
||
|
assert_eq!(result, Ok(None));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 386
|
||
|
fn c3_l386_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c3_l386_action_invoke");
|
||
|
let result = instance.call("empty", &[Value::I32(100 as i32)]);
|
||
|
assert_eq!(result, Ok(None));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 387
|
||
|
fn c4_l387_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c4_l387_action_invoke");
|
||
|
let result = instance.call("empty", &[Value::I32(-2 as i32)]);
|
||
|
assert_eq!(result, Ok(None));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 389
|
||
|
fn c5_l389_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c5_l389_action_invoke");
|
||
|
let result = instance.call("singular", &[Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(8 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 390
|
||
|
fn c6_l390_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c6_l390_action_invoke");
|
||
|
let result = instance.call("singular", &[Value::I32(1 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(7 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 391
|
||
|
fn c7_l391_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c7_l391_action_invoke");
|
||
|
let result = instance.call("singular", &[Value::I32(10 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(7 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 392
|
||
|
fn c8_l392_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c8_l392_action_invoke");
|
||
|
let result = instance.call("singular", &[Value::I32(-10 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(7 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 394
|
||
|
fn c9_l394_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c9_l394_action_invoke");
|
||
|
let result = instance.call("multi", &[Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(9 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 395
|
||
|
fn c10_l395_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c10_l395_action_invoke");
|
||
|
let result = instance.call("multi", &[Value::I32(1 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(8 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 396
|
||
|
fn c11_l396_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c11_l396_action_invoke");
|
||
|
let result = instance.call("multi", &[Value::I32(13 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(8 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 397
|
||
|
fn c12_l397_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c12_l397_action_invoke");
|
||
|
let result = instance.call("multi", &[Value::I32(-5 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(8 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 399
|
||
|
fn c13_l399_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c13_l399_action_invoke");
|
||
|
let result = instance.call("nested", &[Value::I32(0 as i32), Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(11 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 400
|
||
|
fn c14_l400_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c14_l400_action_invoke");
|
||
|
let result = instance.call("nested", &[Value::I32(1 as i32), Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(10 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 401
|
||
|
fn c15_l401_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c15_l401_action_invoke");
|
||
|
let result = instance.call("nested", &[Value::I32(0 as i32), Value::I32(1 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(10 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 402
|
||
|
fn c16_l402_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c16_l402_action_invoke");
|
||
|
let result = instance.call("nested", &[Value::I32(3 as i32), Value::I32(2 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(9 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 403
|
||
|
fn c17_l403_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c17_l403_action_invoke");
|
||
|
let result = instance.call("nested", &[Value::I32(0 as i32), Value::I32(-100 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(10 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 404
|
||
|
fn c18_l404_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c18_l404_action_invoke");
|
||
|
let result = instance.call("nested", &[Value::I32(10 as i32), Value::I32(10 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(9 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 405
|
||
|
fn c19_l405_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c19_l405_action_invoke");
|
||
|
let result = instance.call("nested", &[Value::I32(0 as i32), Value::I32(-1 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(10 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 406
|
||
|
fn c20_l406_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c20_l406_action_invoke");
|
||
|
let result = instance.call("nested", &[Value::I32(-111 as i32), Value::I32(-2 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(9 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 408
|
||
|
fn c21_l408_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c21_l408_action_invoke");
|
||
|
let result = instance.call("as-select-first", &[Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(0 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 409
|
||
|
fn c22_l409_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c22_l409_action_invoke");
|
||
|
let result = instance.call("as-select-first", &[Value::I32(1 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(1 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 410
|
||
|
fn c23_l410_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c23_l410_action_invoke");
|
||
|
let result = instance.call("as-select-mid", &[Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(2 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 411
|
||
|
fn c24_l411_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c24_l411_action_invoke");
|
||
|
let result = instance.call("as-select-mid", &[Value::I32(1 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(2 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 412
|
||
|
fn c25_l412_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c25_l412_action_invoke");
|
||
|
let result = instance.call("as-select-last", &[Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(3 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 413
|
||
|
fn c26_l413_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c26_l413_action_invoke");
|
||
|
let result = instance.call("as-select-last", &[Value::I32(1 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(2 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 415
|
||
|
fn c27_l415_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c27_l415_action_invoke");
|
||
|
let result = instance.call("as-loop-first", &[Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(0 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 416
|
||
|
fn c28_l416_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c28_l416_action_invoke");
|
||
|
let result = instance.call("as-loop-first", &[Value::I32(1 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(1 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 417
|
||
|
fn c29_l417_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c29_l417_action_invoke");
|
||
|
let result = instance.call("as-loop-mid", &[Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(0 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 418
|
||
|
fn c30_l418_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c30_l418_action_invoke");
|
||
|
let result = instance.call("as-loop-mid", &[Value::I32(1 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(1 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 419
|
||
|
fn c31_l419_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c31_l419_action_invoke");
|
||
|
let result = instance.call("as-loop-last", &[Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(0 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 420
|
||
|
fn c32_l420_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c32_l420_action_invoke");
|
||
|
let result = instance.call("as-loop-last", &[Value::I32(1 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(1 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 422
|
||
|
fn c33_l422_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c33_l422_action_invoke");
|
||
|
let result = instance.call("as-if-condition", &[Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(3 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 423
|
||
|
fn c34_l423_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c34_l423_action_invoke");
|
||
|
let result = instance.call("as-if-condition", &[Value::I32(1 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(2 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 425
|
||
|
fn c35_l425_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c35_l425_action_invoke");
|
||
|
let result = instance.call("as-br_if-first", &[Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(0 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 426
|
||
|
fn c36_l426_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c36_l426_action_invoke");
|
||
|
let result = instance.call("as-br_if-first", &[Value::I32(1 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(1 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 427
|
||
|
fn c37_l427_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c37_l427_action_invoke");
|
||
|
let result = instance.call("as-br_if-last", &[Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(3 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 428
|
||
|
fn c38_l428_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c38_l428_action_invoke");
|
||
|
let result = instance.call("as-br_if-last", &[Value::I32(1 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(2 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 430
|
||
|
fn c39_l430_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c39_l430_action_invoke");
|
||
|
let result = instance.call("as-br_table-first", &[Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(0 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 431
|
||
|
fn c40_l431_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c40_l431_action_invoke");
|
||
|
let result = instance.call("as-br_table-first", &[Value::I32(1 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(1 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 432
|
||
|
fn c41_l432_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c41_l432_action_invoke");
|
||
|
let result = instance.call("as-br_table-last", &[Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(2 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 433
|
||
|
fn c42_l433_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c42_l433_action_invoke");
|
||
|
let result = instance.call("as-br_table-last", &[Value::I32(1 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(2 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 435
|
||
|
fn c43_l435_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c43_l435_action_invoke");
|
||
|
let result = instance.call("as-call_indirect-first", &[Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(0 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 436
|
||
|
fn c44_l436_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c44_l436_action_invoke");
|
||
|
let result = instance.call("as-call_indirect-first", &[Value::I32(1 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(1 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 437
|
||
|
fn c45_l437_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c45_l437_action_invoke");
|
||
|
let result = instance.call("as-call_indirect-mid", &[Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(2 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 438
|
||
|
fn c46_l438_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c46_l438_action_invoke");
|
||
|
let result = instance.call("as-call_indirect-mid", &[Value::I32(1 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(2 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 439
|
||
|
fn c47_l439_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c47_l439_action_invoke");
|
||
|
let result = instance.call("as-call_indirect-last", &[Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(2 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 440
|
||
|
fn c48_l440_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c48_l440_action_invoke");
|
||
|
let result = instance.call("as-call_indirect-last", &[Value::I32(1 as i32)]);
|
||
|
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
#[test]
|
||
|
fn c48_l440_assert_trap() {
|
||
|
let mut instance = create_module_1();
|
||
|
let result = c48_l440_action_invoke(&mut*instance);
|
||
|
assert!(result.is_err());
|
||
|
}
|
||
|
|
||
|
// Line 442
|
||
|
fn c49_l442_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c49_l442_action_invoke");
|
||
|
let result = instance.call("as-store-first", &[Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(None));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 443
|
||
|
fn c50_l443_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c50_l443_action_invoke");
|
||
|
let result = instance.call("as-store-first", &[Value::I32(1 as i32)]);
|
||
|
assert_eq!(result, Ok(None));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 444
|
||
|
fn c51_l444_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c51_l444_action_invoke");
|
||
|
let result = instance.call("as-store-last", &[Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(None));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 445
|
||
|
fn c52_l445_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c52_l445_action_invoke");
|
||
|
let result = instance.call("as-store-last", &[Value::I32(1 as i32)]);
|
||
|
assert_eq!(result, Ok(None));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 447
|
||
|
fn c53_l447_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c53_l447_action_invoke");
|
||
|
let result = instance.call("as-memory.grow-value", &[Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(1 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 448
|
||
|
fn c54_l448_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c54_l448_action_invoke");
|
||
|
let result = instance.call("as-memory.grow-value", &[Value::I32(1 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(1 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 450
|
||
|
fn c55_l450_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c55_l450_action_invoke");
|
||
|
let result = instance.call("as-call-value", &[Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(0 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 451
|
||
|
fn c56_l451_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c56_l451_action_invoke");
|
||
|
let result = instance.call("as-call-value", &[Value::I32(1 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(1 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 453
|
||
|
fn c57_l453_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c57_l453_action_invoke");
|
||
|
let result = instance.call("as-return-value", &[Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(0 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 454
|
||
|
fn c58_l454_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c58_l454_action_invoke");
|
||
|
let result = instance.call("as-return-value", &[Value::I32(1 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(1 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 456
|
||
|
fn c59_l456_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c59_l456_action_invoke");
|
||
|
let result = instance.call("as-drop-operand", &[Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(None));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 457
|
||
|
fn c60_l457_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c60_l457_action_invoke");
|
||
|
let result = instance.call("as-drop-operand", &[Value::I32(1 as i32)]);
|
||
|
assert_eq!(result, Ok(None));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 459
|
||
|
fn c61_l459_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c61_l459_action_invoke");
|
||
|
let result = instance.call("as-br-value", &[Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(0 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 460
|
||
|
fn c62_l460_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c62_l460_action_invoke");
|
||
|
let result = instance.call("as-br-value", &[Value::I32(1 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(1 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 462
|
||
|
fn c63_l462_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c63_l462_action_invoke");
|
||
|
let result = instance.call("as-set_local-value", &[Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(0 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 463
|
||
|
fn c64_l463_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c64_l463_action_invoke");
|
||
|
let result = instance.call("as-set_local-value", &[Value::I32(1 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(1 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 465
|
||
|
fn c65_l465_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c65_l465_action_invoke");
|
||
|
let result = instance.call("as-tee_local-value", &[Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(0 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 466
|
||
|
fn c66_l466_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c66_l466_action_invoke");
|
||
|
let result = instance.call("as-tee_local-value", &[Value::I32(1 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(1 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 468
|
||
|
fn c67_l468_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c67_l468_action_invoke");
|
||
|
let result = instance.call("as-set_global-value", &[Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(0 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 469
|
||
|
fn c68_l469_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c68_l469_action_invoke");
|
||
|
let result = instance.call("as-set_global-value", &[Value::I32(1 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(1 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 471
|
||
|
fn c69_l471_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c69_l471_action_invoke");
|
||
|
let result = instance.call("as-load-operand", &[Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(0 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 472
|
||
|
fn c70_l472_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c70_l472_action_invoke");
|
||
|
let result = instance.call("as-load-operand", &[Value::I32(1 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(0 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 474
|
||
|
fn c71_l474_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c71_l474_action_invoke");
|
||
|
let result = instance.call("as-unary-operand", &[Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(0 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 475
|
||
|
fn c72_l475_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c72_l475_action_invoke");
|
||
|
let result = instance.call("as-unary-operand", &[Value::I32(1 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(0 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 476
|
||
|
fn c73_l476_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c73_l476_action_invoke");
|
||
|
let result = instance.call("as-unary-operand", &[Value::I32(-1 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(0 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 478
|
||
|
fn c74_l478_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c74_l478_action_invoke");
|
||
|
let result = instance.call("as-binary-operand", &[Value::I32(0 as i32), Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(15 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 479
|
||
|
fn c75_l479_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c75_l479_action_invoke");
|
||
|
let result = instance.call("as-binary-operand", &[Value::I32(0 as i32), Value::I32(1 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(-12 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 480
|
||
|
fn c76_l480_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c76_l480_action_invoke");
|
||
|
let result = instance.call("as-binary-operand", &[Value::I32(1 as i32), Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(-15 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 481
|
||
|
fn c77_l481_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c77_l481_action_invoke");
|
||
|
let result = instance.call("as-binary-operand", &[Value::I32(1 as i32), Value::I32(1 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(12 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 483
|
||
|
fn c78_l483_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c78_l483_action_invoke");
|
||
|
let result = instance.call("as-test-operand", &[Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(1 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 484
|
||
|
fn c79_l484_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c79_l484_action_invoke");
|
||
|
let result = instance.call("as-test-operand", &[Value::I32(1 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(0 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 486
|
||
|
fn c80_l486_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c80_l486_action_invoke");
|
||
|
let result = instance.call("as-compare-operand", &[Value::I32(0 as i32), Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(1 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 487
|
||
|
fn c81_l487_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c81_l487_action_invoke");
|
||
|
let result = instance.call("as-compare-operand", &[Value::I32(0 as i32), Value::I32(1 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(0 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 488
|
||
|
fn c82_l488_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c82_l488_action_invoke");
|
||
|
let result = instance.call("as-compare-operand", &[Value::I32(1 as i32), Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(1 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 489
|
||
|
fn c83_l489_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c83_l489_action_invoke");
|
||
|
let result = instance.call("as-compare-operand", &[Value::I32(1 as i32), Value::I32(1 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(0 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 491
|
||
|
fn c84_l491_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c84_l491_action_invoke");
|
||
|
let result = instance.call("break-bare", &[]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(19 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 492
|
||
|
fn c85_l492_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c85_l492_action_invoke");
|
||
|
let result = instance.call("break-value", &[Value::I32(1 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(18 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 493
|
||
|
fn c86_l493_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c86_l493_action_invoke");
|
||
|
let result = instance.call("break-value", &[Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(21 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 495
|
||
|
fn c87_l495_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c87_l495_action_invoke");
|
||
|
let result = instance.call("effects", &[Value::I32(1 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(-14 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 496
|
||
|
fn c88_l496_action_invoke(instance: &mut Instance) -> Result<(), String> {
|
||
|
println!("Executing function {}", "c88_l496_action_invoke");
|
||
|
let result = instance.call("effects", &[Value::I32(0 as i32)]);
|
||
|
assert_eq!(result, Ok(Some(Value::I32(-6 as i32))));
|
||
|
result.map(|_| ())
|
||
|
}
|
||
|
|
||
|
// Line 499
|
||
|
#[test]
|
||
|
fn c89_l499_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, 9, 1, 7, 0, 65, 0, 4, 64, 11, 11];
|
||
|
let module = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
|
||
|
assert!(module.is_err(), "WASM should not compile as is invalid");
|
||
|
}
|
||
|
|
||
|
// Line 503
|
||
|
#[test]
|
||
|
fn c90_l503_assert_invalid() {
|
||
|
let wasm_binary = [0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 96, 0, 1, 126, 3, 2, 1, 0, 10, 9, 1, 7, 0, 65, 0, 4, 64, 11, 11];
|
||
|
let module = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
|
||
|
assert!(module.is_err(), "WASM should not compile as is invalid");
|
||
|
}
|
||
|
|
||
|
// Line 507
|
||
|
#[test]
|
||
|
fn c91_l507_assert_invalid() {
|
||
|
let wasm_binary = [0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 96, 0, 1, 125, 3, 2, 1, 0, 10, 9, 1, 7, 0, 65, 0, 4, 64, 11, 11];
|
||
|
let module = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
|
||
|
assert!(module.is_err(), "WASM should not compile as is invalid");
|
||
|
}
|
||
|
|
||
|
// Line 511
|
||
|
#[test]
|
||
|
fn c92_l511_assert_invalid() {
|
||
|
let wasm_binary = [0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 96, 0, 1, 124, 3, 2, 1, 0, 10, 9, 1, 7, 0, 65, 0, 4, 64, 11, 11];
|
||
|
let module = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
|
||
|
assert!(module.is_err(), "WASM should not compile as is invalid");
|
||
|
}
|
||
|
|
||
|
// Line 516
|
||
|
#[test]
|
||
|
fn c93_l516_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, 9, 1, 7, 0, 65, 0, 4, 64, 11, 11];
|
||
|
let module = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
|
||
|
assert!(module.is_err(), "WASM should not compile as is invalid");
|
||
|
}
|
||
|
|
||
|
// Line 520
|
||
|
#[test]
|
||
|
fn c94_l520_assert_invalid() {
|
||
|
let wasm_binary = [0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 96, 0, 1, 126, 3, 2, 1, 0, 10, 9, 1, 7, 0, 65, 0, 4, 64, 11, 11];
|
||
|
let module = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
|
||
|
assert!(module.is_err(), "WASM should not compile as is invalid");
|
||
|
}
|
||
|
|
||
|
// Line 524
|
||
|
#[test]
|
||
|
fn c95_l524_assert_invalid() {
|
||
|
let wasm_binary = [0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 96, 0, 1, 125, 3, 2, 1, 0, 10, 9, 1, 7, 0, 65, 0, 4, 64, 11, 11];
|
||
|
let module = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
|
||
|
assert!(module.is_err(), "WASM should not compile as is invalid");
|
||
|
}
|
||
|
|
||
|
// Line 528
|
||
|
#[test]
|
||
|
fn c96_l528_assert_invalid() {
|
||
|
let wasm_binary = [0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 96, 0, 1, 124, 3, 2, 1, 0, 10, 9, 1, 7, 0, 65, 0, 4, 64, 11, 11];
|
||
|
let module = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
|
||
|
assert!(module.is_err(), "WASM should not compile as is invalid");
|
||
|
}
|
||
|
|
||
|
// Line 533
|
||
|
#[test]
|
||
|
fn c97_l533_assert_invalid() {
|
||
|
let wasm_binary = [0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 10, 11, 1, 9, 0, 65, 1, 4, 64, 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 539
|
||
|
#[test]
|
||
|
fn c98_l539_assert_invalid() {
|
||
|
let wasm_binary = [0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 10, 11, 1, 9, 0, 65, 1, 4, 64, 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 545
|
||
|
#[test]
|
||
|
fn c99_l545_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, 65, 1, 4, 64, 5, 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 551
|
||
|
#[test]
|
||
|
fn c100_l551_assert_invalid() {
|
||
|
let wasm_binary = [0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 10, 14, 1, 12, 0, 65, 1, 4, 64, 65, 1, 5, 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 558
|
||
|
#[test]
|
||
|
fn c101_l558_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, 12, 1, 10, 0, 65, 1, 4, 127, 5, 65, 0, 11, 11];
|
||
|
let module = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
|
||
|
assert!(module.is_err(), "WASM should not compile as is invalid");
|
||
|
}
|
||
|
|
||
|
// Line 564
|
||
|
#[test]
|
||
|
fn c102_l564_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, 11, 1, 9, 0, 65, 1, 4, 127, 65, 0, 11, 11];
|
||
|
let module = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
|
||
|
assert!(module.is_err(), "WASM should not compile as is invalid");
|
||
|
}
|
||
|
|
||
|
// Line 570
|
||
|
#[test]
|
||
|
fn c103_l570_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, 9, 1, 7, 0, 65, 1, 4, 127, 11, 11];
|
||
|
let module = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
|
||
|
assert!(module.is_err(), "WASM should not compile as is invalid");
|
||
|
}
|
||
|
|
||
|
// Line 576
|
||
|
#[test]
|
||
|
fn c104_l576_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, 11, 1, 9, 0, 65, 1, 4, 127, 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 583
|
||
|
#[test]
|
||
|
fn c105_l583_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, 13, 1, 11, 0, 65, 1, 4, 127, 1, 5, 65, 0, 11, 11];
|
||
|
let module = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
|
||
|
assert!(module.is_err(), "WASM should not compile as is invalid");
|
||
|
}
|
||
|
|
||
|
// Line 589
|
||
|
#[test]
|
||
|
fn c106_l589_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, 13, 1, 11, 0, 65, 1, 4, 127, 65, 0, 5, 1, 11, 11];
|
||
|
let module = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
|
||
|
assert!(module.is_err(), "WASM should not compile as is invalid");
|
||
|
}
|
||
|
|
||
|
// Line 595
|
||
|
#[test]
|
||
|
fn c107_l595_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, 12, 1, 10, 0, 65, 1, 4, 127, 1, 5, 1, 11, 11];
|
||
|
let module = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
|
||
|
assert!(module.is_err(), "WASM should not compile as is invalid");
|
||
|
}
|
||
|
|
||
|
// Line 602
|
||
|
#[test]
|
||
|
fn c108_l602_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, 65, 1, 4, 127, 66, 1, 5, 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 608
|
||
|
#[test]
|
||
|
fn c109_l608_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, 65, 1, 4, 127, 65, 1, 5, 66, 1, 11, 11];
|
||
|
let module = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
|
||
|
assert!(module.is_err(), "WASM should not compile as is invalid");
|
||
|
}
|
||
|
|
||
|
// Line 614
|
||
|
#[test]
|
||
|
fn c110_l614_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, 65, 1, 4, 127, 66, 1, 5, 66, 1, 11, 11];
|
||
|
let module = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
|
||
|
assert!(module.is_err(), "WASM should not compile as is invalid");
|
||
|
}
|
||
|
|
||
|
// Line 620
|
||
|
#[test]
|
||
|
fn c111_l620_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, 21, 1, 19, 0, 65, 1, 4, 127, 66, 1, 5, 68, 0, 0, 0, 0, 0, 0, 240, 63, 11, 11];
|
||
|
let module = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
|
||
|
assert!(module.is_err(), "WASM should not compile as is invalid");
|
||
|
}
|
||
|
|
||
|
// Line 627
|
||
|
#[test]
|
||
|
fn c112_l627_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, 65, 0, 4, 126, 0, 0, 0, 27, 5, 66, 0, 11, 11];
|
||
|
let module = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
|
||
|
assert!(module.is_err(), "WASM should not compile as is invalid");
|
||
|
}
|
||
|
|
||
|
// Line 637
|
||
|
#[test]
|
||
|
fn c113_l637_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, 65, 1, 4, 126, 66, 0, 5, 0, 0, 0, 27, 11, 11];
|
||
|
let module = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
|
||
|
assert!(module.is_err(), "WASM should not compile as is invalid");
|
||
|
}
|
||
|
|
||
|
// Line 647
|
||
|
#[test]
|
||
|
fn c114_l647_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, 65, 1, 4, 126, 0, 0, 0, 27, 5, 0, 0, 0, 27, 11, 11];
|
||
|
let module = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
|
||
|
assert!(module.is_err(), "WASM should not compile as is invalid");
|
||
|
}
|
||
|
|
||
|
// Line 658
|
||
|
#[test]
|
||
|
fn c115_l658_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, 65, 1, 4, 127, 12, 0, 5, 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 664
|
||
|
#[test]
|
||
|
fn c116_l664_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, 65, 1, 4, 127, 65, 1, 5, 12, 0, 11, 11];
|
||
|
let module = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
|
||
|
assert!(module.is_err(), "WASM should not compile as is invalid");
|
||
|
}
|
||
|
|
||
|
// Line 670
|
||
|
#[test]
|
||
|
fn c117_l670_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, 65, 1, 4, 127, 12, 0, 65, 1, 5, 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 679
|
||
|
#[test]
|
||
|
fn c118_l679_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, 65, 1, 4, 127, 65, 1, 5, 12, 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 688
|
||
|
#[test]
|
||
|
fn c119_l688_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, 65, 1, 4, 127, 1, 12, 0, 65, 1, 5, 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 697
|
||
|
#[test]
|
||
|
fn c120_l697_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, 65, 1, 4, 127, 65, 1, 5, 1, 12, 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 707
|
||
|
#[test]
|
||
|
fn c121_l707_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, 65, 1, 4, 127, 66, 1, 12, 0, 65, 1, 5, 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 716
|
||
|
#[test]
|
||
|
fn c122_l716_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, 65, 1, 4, 127, 65, 1, 5, 66, 1, 12, 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 727
|
||
|
#[test]
|
||
|
fn c123_l727_assert_malformed() {
|
||
|
let wasm_binary = [40, 102, 117, 110, 99, 32, 105, 102, 32, 101, 110, 100, 32, 36, 108, 41];
|
||
|
let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
|
||
|
assert!(compilation.is_err(), "WASM should not compile as is malformed");
|
||
|
}
|
||
|
|
||
|
// Line 731
|
||
|
#[test]
|
||
|
fn c124_l731_assert_malformed() {
|
||
|
let wasm_binary = [40, 102, 117, 110, 99, 32, 105, 102, 32, 36, 97, 32, 101, 110, 100, 32, 36, 108, 41];
|
||
|
let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
|
||
|
assert!(compilation.is_err(), "WASM should not compile as is malformed");
|
||
|
}
|
||
|
|
||
|
// Line 735
|
||
|
#[test]
|
||
|
fn c125_l735_assert_malformed() {
|
||
|
let wasm_binary = [40, 102, 117, 110, 99, 32, 105, 102, 32, 101, 108, 115, 101, 32, 36, 108, 32, 101, 110, 100, 41];
|
||
|
let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
|
||
|
assert!(compilation.is_err(), "WASM should not compile as is malformed");
|
||
|
}
|
||
|
|
||
|
// Line 739
|
||
|
#[test]
|
||
|
fn c126_l739_assert_malformed() {
|
||
|
let wasm_binary = [40, 102, 117, 110, 99, 32, 105, 102, 32, 36, 97, 32, 101, 108, 115, 101, 32, 36, 108, 32, 101, 110, 100, 41];
|
||
|
let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
|
||
|
assert!(compilation.is_err(), "WASM should not compile as is malformed");
|
||
|
}
|
||
|
|
||
|
// Line 743
|
||
|
#[test]
|
||
|
fn c127_l743_assert_malformed() {
|
||
|
let wasm_binary = [40, 102, 117, 110, 99, 32, 105, 102, 32, 101, 108, 115, 101, 32, 101, 110, 100, 32, 36, 108, 41];
|
||
|
let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
|
||
|
assert!(compilation.is_err(), "WASM should not compile as is malformed");
|
||
|
}
|
||
|
|
||
|
// Line 747
|
||
|
#[test]
|
||
|
fn c128_l747_assert_malformed() {
|
||
|
let wasm_binary = [40, 102, 117, 110, 99, 32, 105, 102, 32, 101, 108, 115, 101, 32, 36, 108, 32, 101, 110, 100, 32, 36, 108, 41];
|
||
|
let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
|
||
|
assert!(compilation.is_err(), "WASM should not compile as is malformed");
|
||
|
}
|
||
|
|
||
|
// Line 751
|
||
|
#[test]
|
||
|
fn c129_l751_assert_malformed() {
|
||
|
let wasm_binary = [40, 102, 117, 110, 99, 32, 105, 102, 32, 101, 108, 115, 101, 32, 36, 108, 49, 32, 101, 110, 100, 32, 36, 108, 50, 41];
|
||
|
let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
|
||
|
assert!(compilation.is_err(), "WASM should not compile as is malformed");
|
||
|
}
|
||
|
|
||
|
// Line 755
|
||
|
#[test]
|
||
|
fn c130_l755_assert_malformed() {
|
||
|
let wasm_binary = [40, 102, 117, 110, 99, 32, 105, 102, 32, 36, 97, 32, 101, 108, 115, 101, 32, 101, 110, 100, 32, 36, 108, 41];
|
||
|
let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
|
||
|
assert!(compilation.is_err(), "WASM should not compile as is malformed");
|
||
|
}
|
||
|
|
||
|
// Line 759
|
||
|
#[test]
|
||
|
fn c131_l759_assert_malformed() {
|
||
|
let wasm_binary = [40, 102, 117, 110, 99, 32, 105, 102, 32, 36, 97, 32, 101, 108, 115, 101, 32, 36, 97, 32, 101, 110, 100, 32, 36, 108, 41];
|
||
|
let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
|
||
|
assert!(compilation.is_err(), "WASM should not compile as is malformed");
|
||
|
}
|
||
|
|
||
|
// Line 763
|
||
|
#[test]
|
||
|
fn c132_l763_assert_malformed() {
|
||
|
let wasm_binary = [40, 102, 117, 110, 99, 32, 105, 102, 32, 36, 97, 32, 101, 108, 115, 101, 32, 36, 108, 32, 101, 110, 100, 32, 36, 108, 41];
|
||
|
let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new());
|
||
|
assert!(compilation.is_err(), "WASM should not compile as is malformed");
|
||
|
}
|
||
|
|
||
|
#[test]
|
||
|
fn test_module_1() {
|
||
|
let mut instance = create_module_1();
|
||
|
// We group the calls together
|
||
|
start_module_1(&mut instance);
|
||
|
c1_l384_action_invoke(&mut instance);
|
||
|
c2_l385_action_invoke(&mut instance);
|
||
|
c3_l386_action_invoke(&mut instance);
|
||
|
c4_l387_action_invoke(&mut instance);
|
||
|
c5_l389_action_invoke(&mut instance);
|
||
|
c6_l390_action_invoke(&mut instance);
|
||
|
c7_l391_action_invoke(&mut instance);
|
||
|
c8_l392_action_invoke(&mut instance);
|
||
|
c9_l394_action_invoke(&mut instance);
|
||
|
c10_l395_action_invoke(&mut instance);
|
||
|
c11_l396_action_invoke(&mut instance);
|
||
|
c12_l397_action_invoke(&mut instance);
|
||
|
c13_l399_action_invoke(&mut instance);
|
||
|
c14_l400_action_invoke(&mut instance);
|
||
|
c15_l401_action_invoke(&mut instance);
|
||
|
c16_l402_action_invoke(&mut instance);
|
||
|
c17_l403_action_invoke(&mut instance);
|
||
|
c18_l404_action_invoke(&mut instance);
|
||
|
c19_l405_action_invoke(&mut instance);
|
||
|
c20_l406_action_invoke(&mut instance);
|
||
|
c21_l408_action_invoke(&mut instance);
|
||
|
c22_l409_action_invoke(&mut instance);
|
||
|
c23_l410_action_invoke(&mut instance);
|
||
|
c24_l411_action_invoke(&mut instance);
|
||
|
c25_l412_action_invoke(&mut instance);
|
||
|
c26_l413_action_invoke(&mut instance);
|
||
|
c27_l415_action_invoke(&mut instance);
|
||
|
c28_l416_action_invoke(&mut instance);
|
||
|
c29_l417_action_invoke(&mut instance);
|
||
|
c30_l418_action_invoke(&mut instance);
|
||
|
c31_l419_action_invoke(&mut instance);
|
||
|
c32_l420_action_invoke(&mut instance);
|
||
|
c33_l422_action_invoke(&mut instance);
|
||
|
c34_l423_action_invoke(&mut instance);
|
||
|
c35_l425_action_invoke(&mut instance);
|
||
|
c36_l426_action_invoke(&mut instance);
|
||
|
c37_l427_action_invoke(&mut instance);
|
||
|
c38_l428_action_invoke(&mut instance);
|
||
|
c39_l430_action_invoke(&mut instance);
|
||
|
c40_l431_action_invoke(&mut instance);
|
||
|
c41_l432_action_invoke(&mut instance);
|
||
|
c42_l433_action_invoke(&mut instance);
|
||
|
c43_l435_action_invoke(&mut instance);
|
||
|
c44_l436_action_invoke(&mut instance);
|
||
|
c45_l437_action_invoke(&mut instance);
|
||
|
c46_l438_action_invoke(&mut instance);
|
||
|
c47_l439_action_invoke(&mut instance);
|
||
|
c49_l442_action_invoke(&mut instance);
|
||
|
c50_l443_action_invoke(&mut instance);
|
||
|
c51_l444_action_invoke(&mut instance);
|
||
|
c52_l445_action_invoke(&mut instance);
|
||
|
c53_l447_action_invoke(&mut instance);
|
||
|
c54_l448_action_invoke(&mut instance);
|
||
|
c55_l450_action_invoke(&mut instance);
|
||
|
c56_l451_action_invoke(&mut instance);
|
||
|
c57_l453_action_invoke(&mut instance);
|
||
|
c58_l454_action_invoke(&mut instance);
|
||
|
c59_l456_action_invoke(&mut instance);
|
||
|
c60_l457_action_invoke(&mut instance);
|
||
|
c61_l459_action_invoke(&mut instance);
|
||
|
c62_l460_action_invoke(&mut instance);
|
||
|
c63_l462_action_invoke(&mut instance);
|
||
|
c64_l463_action_invoke(&mut instance);
|
||
|
c65_l465_action_invoke(&mut instance);
|
||
|
c66_l466_action_invoke(&mut instance);
|
||
|
c67_l468_action_invoke(&mut instance);
|
||
|
c68_l469_action_invoke(&mut instance);
|
||
|
c69_l471_action_invoke(&mut instance);
|
||
|
c70_l472_action_invoke(&mut instance);
|
||
|
c71_l474_action_invoke(&mut instance);
|
||
|
c72_l475_action_invoke(&mut instance);
|
||
|
c73_l476_action_invoke(&mut instance);
|
||
|
c74_l478_action_invoke(&mut instance);
|
||
|
c75_l479_action_invoke(&mut instance);
|
||
|
c76_l480_action_invoke(&mut instance);
|
||
|
c77_l481_action_invoke(&mut instance);
|
||
|
c78_l483_action_invoke(&mut instance);
|
||
|
c79_l484_action_invoke(&mut instance);
|
||
|
c80_l486_action_invoke(&mut instance);
|
||
|
c81_l487_action_invoke(&mut instance);
|
||
|
c82_l488_action_invoke(&mut instance);
|
||
|
c83_l489_action_invoke(&mut instance);
|
||
|
c84_l491_action_invoke(&mut instance);
|
||
|
c85_l492_action_invoke(&mut instance);
|
||
|
c86_l493_action_invoke(&mut instance);
|
||
|
c87_l495_action_invoke(&mut instance);
|
||
|
c88_l496_action_invoke(&mut instance);
|
||
|
}
|