// 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/float_literals.wast #![allow( warnings, dead_code )] use wabt::wat2wasm; use std::{f32, f64}; use wasmer_runtime::types::Value; use wasmer_runtime::{Instance, module::Module}; use wasmer_clif_backend::CraneliftCompiler; use crate::spectests::_common::{ spectest_importobject, NaNCheck, }; // Line 3 fn create_module_1() -> Box { let module_str = "(module (type (;0;) (func (result i32))) (type (;1;) (func (result i64))) (type (;2;) (func (result f32))) (type (;3;) (func (result f64))) (func (;0;) (type 0) (result i32) f32.const nan (;=nan;) i32.reinterpret/f32) (func (;1;) (type 0) (result i32) f32.const nan (;=nan;) i32.reinterpret/f32) (func (;2;) (type 0) (result i32) f32.const -nan (;=nan;) i32.reinterpret/f32) (func (;3;) (type 0) (result i32) f32.const nan (;=nan;) i32.reinterpret/f32) (func (;4;) (type 0) (result i32) f32.const nan:0x200000 (;=nan;) i32.reinterpret/f32) (func (;5;) (type 0) (result i32) f32.const -nan:0x7fffff (;=nan;) i32.reinterpret/f32) (func (;6;) (type 0) (result i32) f32.const nan:0x12345 (;=nan;) i32.reinterpret/f32) (func (;7;) (type 0) (result i32) f32.const nan:0x304050 (;=nan;) i32.reinterpret/f32) (func (;8;) (type 0) (result i32) f32.const -nan:0x2abcde (;=nan;) i32.reinterpret/f32) (func (;9;) (type 0) (result i32) f32.const inf (;=inf;) i32.reinterpret/f32) (func (;10;) (type 0) (result i32) f32.const inf (;=inf;) i32.reinterpret/f32) (func (;11;) (type 0) (result i32) f32.const -inf (;=-inf;) i32.reinterpret/f32) (func (;12;) (type 0) (result i32) f32.const 0x0p+0 (;=0;) i32.reinterpret/f32) (func (;13;) (type 0) (result i32) f32.const 0x0p+0 (;=0;) i32.reinterpret/f32) (func (;14;) (type 0) (result i32) f32.const -0x0p+0 (;=-0;) i32.reinterpret/f32) (func (;15;) (type 0) (result i32) f32.const 0x1.921fb6p+2 (;=6.28319;) i32.reinterpret/f32) (func (;16;) (type 0) (result i32) f32.const 0x1.p-149 (;=1.4013e-45;) i32.reinterpret/f32) (func (;17;) (type 0) (result i32) f32.const 0x1p-126 (;=1.17549e-38;) i32.reinterpret/f32) (func (;18;) (type 0) (result i32) f32.const 0x1.fffffep+127 (;=3.40282e+38;) i32.reinterpret/f32) (func (;19;) (type 0) (result i32) f32.const 0x1.fffffcp-127 (;=1.17549e-38;) i32.reinterpret/f32) (func (;20;) (type 0) (result i32) f32.const 0x1p+10 (;=1024;) i32.reinterpret/f32) (func (;21;) (type 0) (result i32) f32.const 0x0p+0 (;=0;) i32.reinterpret/f32) (func (;22;) (type 0) (result i32) f32.const 0x0p+0 (;=0;) i32.reinterpret/f32) (func (;23;) (type 0) (result i32) f32.const -0x0p+0 (;=-0;) i32.reinterpret/f32) (func (;24;) (type 0) (result i32) f32.const 0x1.921fb6p+2 (;=6.28319;) i32.reinterpret/f32) (func (;25;) (type 0) (result i32) f32.const 0x1.p-149 (;=1.4013e-45;) i32.reinterpret/f32) (func (;26;) (type 0) (result i32) f32.const 0x1p-126 (;=1.17549e-38;) i32.reinterpret/f32) (func (;27;) (type 0) (result i32) f32.const 0x1.fffffcp-127 (;=1.17549e-38;) i32.reinterpret/f32) (func (;28;) (type 0) (result i32) f32.const 0x1.fffffep+127 (;=3.40282e+38;) i32.reinterpret/f32) (func (;29;) (type 0) (result i32) f32.const 0x1.2a05f2p+33 (;=1e+10;) i32.reinterpret/f32) (func (;30;) (type 0) (result i32) f32.const 0x1.000002p+0 (;=1;) i32.reinterpret/f32) (func (;31;) (type 1) (result i64) f64.const nan (;=nan;) i64.reinterpret/f64) (func (;32;) (type 1) (result i64) f64.const nan (;=nan;) i64.reinterpret/f64) (func (;33;) (type 1) (result i64) f64.const -nan (;=nan;) i64.reinterpret/f64) (func (;34;) (type 1) (result i64) f64.const nan (;=nan;) i64.reinterpret/f64) (func (;35;) (type 1) (result i64) f64.const nan:0x4000000000000 (;=nan;) i64.reinterpret/f64) (func (;36;) (type 1) (result i64) f64.const -nan:0xfffffffffffff (;=nan;) i64.reinterpret/f64) (func (;37;) (type 1) (result i64) f64.const nan:0x123456789abc (;=nan;) i64.reinterpret/f64) (func (;38;) (type 1) (result i64) f64.const nan:0x3040506070809 (;=nan;) i64.reinterpret/f64) (func (;39;) (type 1) (result i64) f64.const -nan:0x2abcdef012345 (;=nan;) i64.reinterpret/f64) (func (;40;) (type 1) (result i64) f64.const inf (;=inf;) i64.reinterpret/f64) (func (;41;) (type 1) (result i64) f64.const inf (;=inf;) i64.reinterpret/f64) (func (;42;) (type 1) (result i64) f64.const -inf (;=-inf;) i64.reinterpret/f64) (func (;43;) (type 1) (result i64) f64.const 0x0p+0 (;=0;) i64.reinterpret/f64) (func (;44;) (type 1) (result i64) f64.const 0x0p+0 (;=0;) i64.reinterpret/f64) (func (;45;) (type 1) (result i64) f64.const -0x0p+0 (;=-0;) i64.reinterpret/f64) (func (;46;) (type 1) (result i64) f64.const 0x1.921fb54442d18p+2 (;=6.28319;) i64.reinterpret/f64) (func (;47;) (type 1) (result i64) f64.const 0x1.p-1074 (;=4.94066e-324;) i64.reinterpret/f64) (func (;48;) (type 1) (result i64) f64.const 0x1p-1022 (;=2.22507e-308;) i64.reinterpret/f64) (func (;49;) (type 1) (result i64) f64.const 0x1.ffffffffffffep-1023 (;=2.22507e-308;) i64.reinterpret/f64) (func (;50;) (type 1) (result i64) f64.const 0x1.fffffffffffffp+1023 (;=1.79769e+308;) i64.reinterpret/f64) (func (;51;) (type 1) (result i64) f64.const 0x1p+100 (;=1.26765e+30;) i64.reinterpret/f64) (func (;52;) (type 1) (result i64) f64.const 0x0p+0 (;=0;) i64.reinterpret/f64) (func (;53;) (type 1) (result i64) f64.const 0x0p+0 (;=0;) i64.reinterpret/f64) (func (;54;) (type 1) (result i64) f64.const -0x0p+0 (;=-0;) i64.reinterpret/f64) (func (;55;) (type 1) (result i64) f64.const 0x1.921fb54442d18p+2 (;=6.28319;) i64.reinterpret/f64) (func (;56;) (type 1) (result i64) f64.const 0x1.p-1074 (;=4.94066e-324;) i64.reinterpret/f64) (func (;57;) (type 1) (result i64) f64.const 0x1p-1022 (;=2.22507e-308;) i64.reinterpret/f64) (func (;58;) (type 1) (result i64) f64.const 0x1.ffffffffffffep-1023 (;=2.22507e-308;) i64.reinterpret/f64) (func (;59;) (type 1) (result i64) f64.const 0x1.fffffffffffffp+1023 (;=1.79769e+308;) i64.reinterpret/f64) (func (;60;) (type 1) (result i64) f64.const 0x1.249ad2594c37dp+332 (;=1e+100;) i64.reinterpret/f64) (func (;61;) (type 1) (result i64) f64.const 0x1.000001ff19e24p+0 (;=1;) i64.reinterpret/f64) (func (;62;) (type 2) (result f32) f32.const 0x1.e848p+19 (;=1e+06;)) (func (;63;) (type 2) (result f32) f32.const 0x1.f4p+9 (;=1000;)) (func (;64;) (type 2) (result f32) f32.const 0x1.f5922p+9 (;=1003.14;)) (func (;65;) (type 2) (result f32) f32.const 0x1.c2332cp+49 (;=9.9e+14;)) (func (;66;) (type 2) (result f32) f32.const 0x1.3b5ce8p+93 (;=1.22e+28;)) (func (;67;) (type 2) (result f32) f32.const 0x1.41e014p+27 (;=1.68755e+08;)) (func (;68;) (type 2) (result f32) f32.const 0x1.aa0fp+16 (;=109071;)) (func (;69;) (type 2) (result f32) f32.const 0x1.41ffe2p+15 (;=41215.9;)) (func (;70;) (type 2) (result f32) f32.const 0x1.ep+20 (;=1.96608e+06;)) (func (;71;) (type 2) (result f32) f32.const 0x1.57805p+44 (;=2.36052e+13;)) (func (;72;) (type 3) (result f64) f64.const 0x1.e848p+19 (;=1e+06;)) (func (;73;) (type 3) (result f64) f64.const 0x1.f4p+9 (;=1000;)) (func (;74;) (type 3) (result f64) f64.const 0x1.f5921fafc8bp+9 (;=1003.14;)) (func (;75;) (type 3) (result f64) f64.const 0x1.05c735bb7cc45p-402 (;=9.9e-122;)) (func (;76;) (type 3) (result f64) f64.const 0x1.3b5ce725bde9cp+93 (;=1.22e+28;)) (func (;77;) (type 3) (result f64) f64.const 0x1.5e01e00013332p+51 (;=3.0787e+15;)) (func (;78;) (type 3) (result f64) f64.const 0x1.aa0fp+16 (;=109071;)) (func (;79;) (type 3) (result f64) f64.const 0x1.41ffe2834b34p+15 (;=41215.9;)) (func (;80;) (type 3) (result f64) f64.const 0x1.ep+20 (;=1.96608e+06;)) (func (;81;) (type 3) (result f64) f64.const 0x1.578050f9f7p+44 (;=2.36052e+13;)) (export \"f32.nan\" (func 0)) (export \"f32.positive_nan\" (func 1)) (export \"f32.negative_nan\" (func 2)) (export \"f32.plain_nan\" (func 3)) (export \"f32.informally_known_as_plain_snan\" (func 4)) (export \"f32.all_ones_nan\" (func 5)) (export \"f32.misc_nan\" (func 6)) (export \"f32.misc_positive_nan\" (func 7)) (export \"f32.misc_negative_nan\" (func 8)) (export \"f32.infinity\" (func 9)) (export \"f32.positive_infinity\" (func 10)) (export \"f32.negative_infinity\" (func 11)) (export \"f32.zero\" (func 12)) (export \"f32.positive_zero\" (func 13)) (export \"f32.negative_zero\" (func 14)) (export \"f32.misc\" (func 15)) (export \"f32.min_positive\" (func 16)) (export \"f32.min_normal\" (func 17)) (export \"f32.max_finite\" (func 18)) (export \"f32.max_subnormal\" (func 19)) (export \"f32.trailing_dot\" (func 20)) (export \"f32_dec.zero\" (func 21)) (export \"f32_dec.positive_zero\" (func 22)) (export \"f32_dec.negative_zero\" (func 23)) (export \"f32_dec.misc\" (func 24)) (export \"f32_dec.min_positive\" (func 25)) (export \"f32_dec.min_normal\" (func 26)) (export \"f32_dec.max_subnormal\" (func 27)) (export \"f32_dec.max_finite\" (func 28)) (export \"f32_dec.trailing_dot\" (func 29)) (export \"f32_dec.root_beer_float\" (func 30)) (export \"f64.nan\" (func 31)) (export \"f64.positive_nan\" (func 32)) (export \"f64.negative_nan\" (func 33)) (export \"f64.plain_nan\" (func 34)) (export \"f64.informally_known_as_plain_snan\" (func 35)) (export \"f64.all_ones_nan\" (func 36)) (export \"f64.misc_nan\" (func 37)) (export \"f64.misc_positive_nan\" (func 38)) (export \"f64.misc_negative_nan\" (func 39)) (export \"f64.infinity\" (func 40)) (export \"f64.positive_infinity\" (func 41)) (export \"f64.negative_infinity\" (func 42)) (export \"f64.zero\" (func 43)) (export \"f64.positive_zero\" (func 44)) (export \"f64.negative_zero\" (func 45)) (export \"f64.misc\" (func 46)) (export \"f64.min_positive\" (func 47)) (export \"f64.min_normal\" (func 48)) (export \"f64.max_subnormal\" (func 49)) (export \"f64.max_finite\" (func 50)) (export \"f64.trailing_dot\" (func 51)) (export \"f64_dec.zero\" (func 52)) (export \"f64_dec.positive_zero\" (func 53)) (export \"f64_dec.negative_zero\" (func 54)) (export \"f64_dec.misc\" (func 55)) (export \"f64_dec.min_positive\" (func 56)) (export \"f64_dec.min_normal\" (func 57)) (export \"f64_dec.max_subnormal\" (func 58)) (export \"f64_dec.max_finite\" (func 59)) (export \"f64_dec.trailing_dot\" (func 60)) (export \"f64_dec.root_beer_float\" (func 61)) (export \"f32-dec-sep1\" (func 62)) (export \"f32-dec-sep2\" (func 63)) (export \"f32-dec-sep3\" (func 64)) (export \"f32-dec-sep4\" (func 65)) (export \"f32-dec-sep5\" (func 66)) (export \"f32-hex-sep1\" (func 67)) (export \"f32-hex-sep2\" (func 68)) (export \"f32-hex-sep3\" (func 69)) (export \"f32-hex-sep4\" (func 70)) (export \"f32-hex-sep5\" (func 71)) (export \"f64-dec-sep1\" (func 72)) (export \"f64-dec-sep2\" (func 73)) (export \"f64-dec-sep3\" (func 74)) (export \"f64-dec-sep4\" (func 75)) (export \"f64-dec-sep5\" (func 76)) (export \"f64-hex-sep1\" (func 77)) (export \"f64-hex-sep2\" (func 78)) (export \"f64-hex-sep3\" (func 79)) (export \"f64-hex-sep4\" (func 80)) (export \"f64-hex-sep5\" (func 81))) "; 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 105 fn c1_l105_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c1_l105_action_invoke"); let result = instance.call("f32.nan", &[]); assert_eq!(result, Ok(Some(Value::I32(2143289344 as i32)))); result.map(|_| ()) } // Line 106 fn c2_l106_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c2_l106_action_invoke"); let result = instance.call("f32.positive_nan", &[]); assert_eq!(result, Ok(Some(Value::I32(2143289344 as i32)))); result.map(|_| ()) } // Line 107 fn c3_l107_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c3_l107_action_invoke"); let result = instance.call("f32.negative_nan", &[]); assert_eq!(result, Ok(Some(Value::I32(-4194304 as i32)))); result.map(|_| ()) } // Line 108 fn c4_l108_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c4_l108_action_invoke"); let result = instance.call("f32.plain_nan", &[]); assert_eq!(result, Ok(Some(Value::I32(2143289344 as i32)))); result.map(|_| ()) } // Line 109 fn c5_l109_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c5_l109_action_invoke"); let result = instance.call("f32.informally_known_as_plain_snan", &[]); assert_eq!(result, Ok(Some(Value::I32(2141192192 as i32)))); result.map(|_| ()) } // Line 110 fn c6_l110_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c6_l110_action_invoke"); let result = instance.call("f32.all_ones_nan", &[]); assert_eq!(result, Ok(Some(Value::I32(-1 as i32)))); result.map(|_| ()) } // Line 111 fn c7_l111_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c7_l111_action_invoke"); let result = instance.call("f32.misc_nan", &[]); assert_eq!(result, Ok(Some(Value::I32(2139169605 as i32)))); result.map(|_| ()) } // Line 112 fn c8_l112_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c8_l112_action_invoke"); let result = instance.call("f32.misc_positive_nan", &[]); assert_eq!(result, Ok(Some(Value::I32(2142257232 as i32)))); result.map(|_| ()) } // Line 113 fn c9_l113_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c9_l113_action_invoke"); let result = instance.call("f32.misc_negative_nan", &[]); assert_eq!(result, Ok(Some(Value::I32(-5587746 as i32)))); result.map(|_| ()) } // Line 114 fn c10_l114_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c10_l114_action_invoke"); let result = instance.call("f32.infinity", &[]); assert_eq!(result, Ok(Some(Value::I32(2139095040 as i32)))); result.map(|_| ()) } // Line 115 fn c11_l115_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c11_l115_action_invoke"); let result = instance.call("f32.positive_infinity", &[]); assert_eq!(result, Ok(Some(Value::I32(2139095040 as i32)))); result.map(|_| ()) } // Line 116 fn c12_l116_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c12_l116_action_invoke"); let result = instance.call("f32.negative_infinity", &[]); assert_eq!(result, Ok(Some(Value::I32(-8388608 as i32)))); result.map(|_| ()) } // Line 117 fn c13_l117_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c13_l117_action_invoke"); let result = instance.call("f32.zero", &[]); assert_eq!(result, Ok(Some(Value::I32(0 as i32)))); result.map(|_| ()) } // Line 118 fn c14_l118_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c14_l118_action_invoke"); let result = instance.call("f32.positive_zero", &[]); assert_eq!(result, Ok(Some(Value::I32(0 as i32)))); result.map(|_| ()) } // Line 119 fn c15_l119_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c15_l119_action_invoke"); let result = instance.call("f32.negative_zero", &[]); assert_eq!(result, Ok(Some(Value::I32(-2147483648 as i32)))); result.map(|_| ()) } // Line 120 fn c16_l120_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c16_l120_action_invoke"); let result = instance.call("f32.misc", &[]); assert_eq!(result, Ok(Some(Value::I32(1086918619 as i32)))); result.map(|_| ()) } // Line 121 fn c17_l121_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c17_l121_action_invoke"); let result = instance.call("f32.min_positive", &[]); assert_eq!(result, Ok(Some(Value::I32(1 as i32)))); result.map(|_| ()) } // Line 122 fn c18_l122_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c18_l122_action_invoke"); let result = instance.call("f32.min_normal", &[]); assert_eq!(result, Ok(Some(Value::I32(8388608 as i32)))); result.map(|_| ()) } // Line 123 fn c19_l123_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c19_l123_action_invoke"); let result = instance.call("f32.max_subnormal", &[]); assert_eq!(result, Ok(Some(Value::I32(8388607 as i32)))); result.map(|_| ()) } // Line 124 fn c20_l124_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c20_l124_action_invoke"); let result = instance.call("f32.max_finite", &[]); assert_eq!(result, Ok(Some(Value::I32(2139095039 as i32)))); result.map(|_| ()) } // Line 125 fn c21_l125_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c21_l125_action_invoke"); let result = instance.call("f32.trailing_dot", &[]); assert_eq!(result, Ok(Some(Value::I32(1149239296 as i32)))); result.map(|_| ()) } // Line 126 fn c22_l126_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c22_l126_action_invoke"); let result = instance.call("f32_dec.zero", &[]); assert_eq!(result, Ok(Some(Value::I32(0 as i32)))); result.map(|_| ()) } // Line 127 fn c23_l127_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c23_l127_action_invoke"); let result = instance.call("f32_dec.positive_zero", &[]); assert_eq!(result, Ok(Some(Value::I32(0 as i32)))); result.map(|_| ()) } // Line 128 fn c24_l128_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c24_l128_action_invoke"); let result = instance.call("f32_dec.negative_zero", &[]); assert_eq!(result, Ok(Some(Value::I32(-2147483648 as i32)))); result.map(|_| ()) } // Line 129 fn c25_l129_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c25_l129_action_invoke"); let result = instance.call("f32_dec.misc", &[]); assert_eq!(result, Ok(Some(Value::I32(1086918619 as i32)))); result.map(|_| ()) } // Line 130 fn c26_l130_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c26_l130_action_invoke"); let result = instance.call("f32_dec.min_positive", &[]); assert_eq!(result, Ok(Some(Value::I32(1 as i32)))); result.map(|_| ()) } // Line 131 fn c27_l131_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c27_l131_action_invoke"); let result = instance.call("f32_dec.min_normal", &[]); assert_eq!(result, Ok(Some(Value::I32(8388608 as i32)))); result.map(|_| ()) } // Line 132 fn c28_l132_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c28_l132_action_invoke"); let result = instance.call("f32_dec.max_subnormal", &[]); assert_eq!(result, Ok(Some(Value::I32(8388607 as i32)))); result.map(|_| ()) } // Line 133 fn c29_l133_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c29_l133_action_invoke"); let result = instance.call("f32_dec.max_finite", &[]); assert_eq!(result, Ok(Some(Value::I32(2139095039 as i32)))); result.map(|_| ()) } // Line 134 fn c30_l134_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c30_l134_action_invoke"); let result = instance.call("f32_dec.trailing_dot", &[]); assert_eq!(result, Ok(Some(Value::I32(1343554297 as i32)))); result.map(|_| ()) } // Line 135 fn c31_l135_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c31_l135_action_invoke"); let result = instance.call("f32_dec.root_beer_float", &[]); assert_eq!(result, Ok(Some(Value::I32(1065353217 as i32)))); result.map(|_| ()) } // Line 137 fn c32_l137_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c32_l137_action_invoke"); let result = instance.call("f64.nan", &[]); assert_eq!(result, Ok(Some(Value::I64(9221120237041090560 as i64)))); result.map(|_| ()) } // Line 138 fn c33_l138_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c33_l138_action_invoke"); let result = instance.call("f64.positive_nan", &[]); assert_eq!(result, Ok(Some(Value::I64(9221120237041090560 as i64)))); result.map(|_| ()) } // Line 139 fn c34_l139_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c34_l139_action_invoke"); let result = instance.call("f64.negative_nan", &[]); assert_eq!(result, Ok(Some(Value::I64(-2251799813685248 as i64)))); result.map(|_| ()) } // Line 140 fn c35_l140_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c35_l140_action_invoke"); let result = instance.call("f64.plain_nan", &[]); assert_eq!(result, Ok(Some(Value::I64(9221120237041090560 as i64)))); result.map(|_| ()) } // Line 141 fn c36_l141_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c36_l141_action_invoke"); let result = instance.call("f64.informally_known_as_plain_snan", &[]); assert_eq!(result, Ok(Some(Value::I64(9219994337134247936 as i64)))); result.map(|_| ()) } // Line 142 fn c37_l142_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c37_l142_action_invoke"); let result = instance.call("f64.all_ones_nan", &[]); assert_eq!(result, Ok(Some(Value::I64(-1 as i64)))); result.map(|_| ()) } // Line 143 fn c38_l143_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c38_l143_action_invoke"); let result = instance.call("f64.misc_nan", &[]); assert_eq!(result, Ok(Some(Value::I64(9218888453225749180 as i64)))); result.map(|_| ()) } // Line 144 fn c39_l144_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c39_l144_action_invoke"); let result = instance.call("f64.misc_positive_nan", &[]); assert_eq!(result, Ok(Some(Value::I64(9219717281780008969 as i64)))); result.map(|_| ()) } // Line 145 fn c40_l145_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c40_l145_action_invoke"); let result = instance.call("f64.misc_negative_nan", &[]); assert_eq!(result, Ok(Some(Value::I64(-3751748707474619 as i64)))); result.map(|_| ()) } // Line 146 fn c41_l146_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c41_l146_action_invoke"); let result = instance.call("f64.infinity", &[]); assert_eq!(result, Ok(Some(Value::I64(9218868437227405312 as i64)))); result.map(|_| ()) } // Line 147 fn c42_l147_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c42_l147_action_invoke"); let result = instance.call("f64.positive_infinity", &[]); assert_eq!(result, Ok(Some(Value::I64(9218868437227405312 as i64)))); result.map(|_| ()) } // Line 148 fn c43_l148_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c43_l148_action_invoke"); let result = instance.call("f64.negative_infinity", &[]); assert_eq!(result, Ok(Some(Value::I64(-4503599627370496 as i64)))); result.map(|_| ()) } // Line 149 fn c44_l149_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c44_l149_action_invoke"); let result = instance.call("f64.zero", &[]); assert_eq!(result, Ok(Some(Value::I64(0 as i64)))); result.map(|_| ()) } // Line 150 fn c45_l150_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c45_l150_action_invoke"); let result = instance.call("f64.positive_zero", &[]); assert_eq!(result, Ok(Some(Value::I64(0 as i64)))); result.map(|_| ()) } // Line 151 fn c46_l151_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c46_l151_action_invoke"); let result = instance.call("f64.negative_zero", &[]); assert_eq!(result, Ok(Some(Value::I64(-9223372036854775808 as i64)))); result.map(|_| ()) } // Line 152 fn c47_l152_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c47_l152_action_invoke"); let result = instance.call("f64.misc", &[]); assert_eq!(result, Ok(Some(Value::I64(4618760256179416344 as i64)))); result.map(|_| ()) } // Line 153 fn c48_l153_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c48_l153_action_invoke"); let result = instance.call("f64.min_positive", &[]); assert_eq!(result, Ok(Some(Value::I64(1 as i64)))); result.map(|_| ()) } // Line 154 fn c49_l154_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c49_l154_action_invoke"); let result = instance.call("f64.min_normal", &[]); assert_eq!(result, Ok(Some(Value::I64(4503599627370496 as i64)))); result.map(|_| ()) } // Line 155 fn c50_l155_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c50_l155_action_invoke"); let result = instance.call("f64.max_subnormal", &[]); assert_eq!(result, Ok(Some(Value::I64(4503599627370495 as i64)))); result.map(|_| ()) } // Line 156 fn c51_l156_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c51_l156_action_invoke"); let result = instance.call("f64.max_finite", &[]); assert_eq!(result, Ok(Some(Value::I64(9218868437227405311 as i64)))); result.map(|_| ()) } // Line 157 fn c52_l157_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c52_l157_action_invoke"); let result = instance.call("f64.trailing_dot", &[]); assert_eq!(result, Ok(Some(Value::I64(5057542381537067008 as i64)))); result.map(|_| ()) } // Line 158 fn c53_l158_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c53_l158_action_invoke"); let result = instance.call("f64_dec.zero", &[]); assert_eq!(result, Ok(Some(Value::I64(0 as i64)))); result.map(|_| ()) } // Line 159 fn c54_l159_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c54_l159_action_invoke"); let result = instance.call("f64_dec.positive_zero", &[]); assert_eq!(result, Ok(Some(Value::I64(0 as i64)))); result.map(|_| ()) } // Line 160 fn c55_l160_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c55_l160_action_invoke"); let result = instance.call("f64_dec.negative_zero", &[]); assert_eq!(result, Ok(Some(Value::I64(-9223372036854775808 as i64)))); result.map(|_| ()) } // Line 161 fn c56_l161_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c56_l161_action_invoke"); let result = instance.call("f64_dec.misc", &[]); assert_eq!(result, Ok(Some(Value::I64(4618760256179416344 as i64)))); result.map(|_| ()) } // Line 162 fn c57_l162_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c57_l162_action_invoke"); let result = instance.call("f64_dec.min_positive", &[]); assert_eq!(result, Ok(Some(Value::I64(1 as i64)))); result.map(|_| ()) } // Line 163 fn c58_l163_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c58_l163_action_invoke"); let result = instance.call("f64_dec.min_normal", &[]); assert_eq!(result, Ok(Some(Value::I64(4503599627370496 as i64)))); result.map(|_| ()) } // Line 164 fn c59_l164_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c59_l164_action_invoke"); let result = instance.call("f64_dec.max_subnormal", &[]); assert_eq!(result, Ok(Some(Value::I64(4503599627370495 as i64)))); result.map(|_| ()) } // Line 165 fn c60_l165_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c60_l165_action_invoke"); let result = instance.call("f64_dec.max_finite", &[]); assert_eq!(result, Ok(Some(Value::I64(9218868437227405311 as i64)))); result.map(|_| ()) } // Line 166 fn c61_l166_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c61_l166_action_invoke"); let result = instance.call("f64_dec.trailing_dot", &[]); assert_eq!(result, Ok(Some(Value::I64(6103021453049119613 as i64)))); result.map(|_| ()) } // Line 167 fn c62_l167_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c62_l167_action_invoke"); let result = instance.call("f64_dec.root_beer_float", &[]); assert_eq!(result, Ok(Some(Value::I64(4607182419335945764 as i64)))); result.map(|_| ()) } // Line 169 fn c63_l169_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c63_l169_action_invoke"); let result = instance.call("f32-dec-sep1", &[]); assert_eq!(result, Ok(Some(Value::F32((1000000.0f32))))); result.map(|_| ()) } // Line 170 fn c64_l170_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c64_l170_action_invoke"); let result = instance.call("f32-dec-sep2", &[]); assert_eq!(result, Ok(Some(Value::F32((1000.0f32))))); result.map(|_| ()) } // Line 171 fn c65_l171_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c65_l171_action_invoke"); let result = instance.call("f32-dec-sep3", &[]); assert_eq!(result, Ok(Some(Value::F32((1003.1416f32))))); result.map(|_| ()) } // Line 172 fn c66_l172_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c66_l172_action_invoke"); let result = instance.call("f32-dec-sep4", &[]); assert_eq!(result, Ok(Some(Value::F32((990000000000000.0f32))))); result.map(|_| ()) } // Line 173 fn c67_l173_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c67_l173_action_invoke"); let result = instance.call("f32-dec-sep5", &[]); assert_eq!(result, Ok(Some(Value::F32((12200012000000000000000000000.0f32))))); result.map(|_| ()) } // Line 174 fn c68_l174_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c68_l174_action_invoke"); let result = instance.call("f32-hex-sep1", &[]); assert_eq!(result, Ok(Some(Value::F32((168755360.0f32))))); result.map(|_| ()) } // Line 175 fn c69_l175_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c69_l175_action_invoke"); let result = instance.call("f32-hex-sep2", &[]); assert_eq!(result, Ok(Some(Value::F32((109071.0f32))))); result.map(|_| ()) } // Line 176 fn c70_l176_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c70_l176_action_invoke"); let result = instance.call("f32-hex-sep3", &[]); assert_eq!(result, Ok(Some(Value::F32((41215.94f32))))); result.map(|_| ()) } // Line 177 fn c71_l177_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c71_l177_action_invoke"); let result = instance.call("f32-hex-sep4", &[]); assert_eq!(result, Ok(Some(Value::F32((1966080.0f32))))); result.map(|_| ()) } // Line 178 fn c72_l178_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c72_l178_action_invoke"); let result = instance.call("f32-hex-sep5", &[]); assert_eq!(result, Ok(Some(Value::F32((23605224000000.0f32))))); result.map(|_| ()) } // Line 180 fn c73_l180_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c73_l180_action_invoke"); let result = instance.call("f64-dec-sep1", &[]); assert_eq!(result, Ok(Some(Value::F64((1000000.0f64))))); result.map(|_| ()) } // Line 181 fn c74_l181_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c74_l181_action_invoke"); let result = instance.call("f64-dec-sep2", &[]); assert_eq!(result, Ok(Some(Value::F64((1000.0f64))))); result.map(|_| ()) } // Line 182 fn c75_l182_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c75_l182_action_invoke"); let result = instance.call("f64-dec-sep3", &[]); assert_eq!(result, Ok(Some(Value::F64((1003.141592f64))))); result.map(|_| ()) } // Line 183 fn c76_l183_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c76_l183_action_invoke"); let result = instance.call("f64-dec-sep4", &[]); assert_eq!(result, Ok(Some(Value::F64((0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000099f64))))); result.map(|_| ()) } // Line 184 fn c77_l184_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c77_l184_action_invoke"); let result = instance.call("f64-dec-sep5", &[]); assert_eq!(result, Ok(Some(Value::F64((12200011354000000000000000000.0f64))))); result.map(|_| ()) } // Line 185 fn c78_l185_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c78_l185_action_invoke"); let result = instance.call("f64-hex-sep1", &[]); assert_eq!(result, Ok(Some(Value::F64((3078696982321561.0f64))))); result.map(|_| ()) } // Line 186 fn c79_l186_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c79_l186_action_invoke"); let result = instance.call("f64-hex-sep2", &[]); assert_eq!(result, Ok(Some(Value::F64((109071.0f64))))); result.map(|_| ()) } // Line 187 fn c80_l187_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c80_l187_action_invoke"); let result = instance.call("f64-hex-sep3", &[]); assert_eq!(result, Ok(Some(Value::F64((41215.94240794191f64))))); result.map(|_| ()) } // Line 188 fn c81_l188_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c81_l188_action_invoke"); let result = instance.call("f64-hex-sep4", &[]); assert_eq!(result, Ok(Some(Value::F64((1966080.0f64))))); result.map(|_| ()) } // Line 189 fn c82_l189_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c82_l189_action_invoke"); let result = instance.call("f64-hex-sep5", &[]); assert_eq!(result, Ok(Some(Value::F64((23605225168752.0f64))))); result.map(|_| ()) } // Line 192 #[test] fn test_module_1() { let mut instance = create_module_1(); // We group the calls together start_module_1(&mut instance); c1_l105_action_invoke(&mut instance); c2_l106_action_invoke(&mut instance); c3_l107_action_invoke(&mut instance); c4_l108_action_invoke(&mut instance); c5_l109_action_invoke(&mut instance); c6_l110_action_invoke(&mut instance); c7_l111_action_invoke(&mut instance); c8_l112_action_invoke(&mut instance); c9_l113_action_invoke(&mut instance); c10_l114_action_invoke(&mut instance); c11_l115_action_invoke(&mut instance); c12_l116_action_invoke(&mut instance); c13_l117_action_invoke(&mut instance); c14_l118_action_invoke(&mut instance); c15_l119_action_invoke(&mut instance); c16_l120_action_invoke(&mut instance); c17_l121_action_invoke(&mut instance); c18_l122_action_invoke(&mut instance); c19_l123_action_invoke(&mut instance); c20_l124_action_invoke(&mut instance); c21_l125_action_invoke(&mut instance); c22_l126_action_invoke(&mut instance); c23_l127_action_invoke(&mut instance); c24_l128_action_invoke(&mut instance); c25_l129_action_invoke(&mut instance); c26_l130_action_invoke(&mut instance); c27_l131_action_invoke(&mut instance); c28_l132_action_invoke(&mut instance); c29_l133_action_invoke(&mut instance); c30_l134_action_invoke(&mut instance); c31_l135_action_invoke(&mut instance); c32_l137_action_invoke(&mut instance); c33_l138_action_invoke(&mut instance); c34_l139_action_invoke(&mut instance); c35_l140_action_invoke(&mut instance); c36_l141_action_invoke(&mut instance); c37_l142_action_invoke(&mut instance); c38_l143_action_invoke(&mut instance); c39_l144_action_invoke(&mut instance); c40_l145_action_invoke(&mut instance); c41_l146_action_invoke(&mut instance); c42_l147_action_invoke(&mut instance); c43_l148_action_invoke(&mut instance); c44_l149_action_invoke(&mut instance); c45_l150_action_invoke(&mut instance); c46_l151_action_invoke(&mut instance); c47_l152_action_invoke(&mut instance); c48_l153_action_invoke(&mut instance); c49_l154_action_invoke(&mut instance); c50_l155_action_invoke(&mut instance); c51_l156_action_invoke(&mut instance); c52_l157_action_invoke(&mut instance); c53_l158_action_invoke(&mut instance); c54_l159_action_invoke(&mut instance); c55_l160_action_invoke(&mut instance); c56_l161_action_invoke(&mut instance); c57_l162_action_invoke(&mut instance); c58_l163_action_invoke(&mut instance); c59_l164_action_invoke(&mut instance); c60_l165_action_invoke(&mut instance); c61_l166_action_invoke(&mut instance); c62_l167_action_invoke(&mut instance); c63_l169_action_invoke(&mut instance); c64_l170_action_invoke(&mut instance); c65_l171_action_invoke(&mut instance); c66_l172_action_invoke(&mut instance); c67_l173_action_invoke(&mut instance); c68_l174_action_invoke(&mut instance); c69_l175_action_invoke(&mut instance); c70_l176_action_invoke(&mut instance); c71_l177_action_invoke(&mut instance); c72_l178_action_invoke(&mut instance); c73_l180_action_invoke(&mut instance); c74_l181_action_invoke(&mut instance); c75_l182_action_invoke(&mut instance); c76_l183_action_invoke(&mut instance); c77_l184_action_invoke(&mut instance); c78_l185_action_invoke(&mut instance); c79_l186_action_invoke(&mut instance); c80_l187_action_invoke(&mut instance); c81_l188_action_invoke(&mut instance); c82_l189_action_invoke(&mut instance); } fn create_module_2() -> Box { let module_str = "(module (type (;0;) (func (result f64))) (func (;0;) (type 0) (result f64) f64.const 0x1.ffffffa2p+31 (;=4.29497e+09;)) (export \"4294967249\" (func 0))) "; 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_2(instance: &mut Instance) { // TODO Review is explicit start needed? Start now called in runtime::Instance::new() //instance.start(); } // Line 201 fn c84_l201_action_invoke(instance: &mut Instance) -> Result<(), String> { println!("Executing function {}", "c84_l201_action_invoke"); let result = instance.call("4294967249", &[]); assert_eq!(result, Ok(Some(Value::F64((4294967249.0f64))))); result.map(|_| ()) } // Line 204 #[test] fn c85_l204_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 95, 49, 48, 48, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 208 #[test] fn c86_l208_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 43, 95, 49, 48, 48, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 212 #[test] fn c87_l212_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 45, 95, 49, 48, 48, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 216 #[test] fn c88_l216_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 57, 57, 95, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 220 #[test] fn c89_l220_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 49, 95, 95, 48, 48, 48, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 224 #[test] fn c90_l224_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 95, 49, 46, 48, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 228 #[test] fn c91_l228_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 49, 46, 48, 95, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 232 #[test] fn c92_l232_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 49, 95, 46, 48, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 236 #[test] fn c93_l236_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 49, 46, 95, 48, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 240 #[test] fn c94_l240_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 95, 49, 101, 49, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 244 #[test] fn c95_l244_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 49, 101, 49, 95, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 248 #[test] fn c96_l248_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 49, 95, 101, 49, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 252 #[test] fn c97_l252_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 49, 101, 95, 49, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 256 #[test] fn c98_l256_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 95, 49, 46, 48, 101, 49, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 260 #[test] fn c99_l260_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 49, 46, 48, 101, 49, 95, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 264 #[test] fn c100_l264_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 49, 46, 48, 95, 101, 49, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 268 #[test] fn c101_l268_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 49, 46, 48, 101, 95, 49, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 272 #[test] fn c102_l272_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 49, 46, 48, 101, 43, 95, 49, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 276 #[test] fn c103_l276_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 49, 46, 48, 101, 95, 43, 49, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 280 #[test] fn c104_l280_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 95, 48, 120, 49, 48, 48, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 284 #[test] fn c105_l284_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 48, 95, 120, 49, 48, 48, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 288 #[test] fn c106_l288_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 48, 120, 95, 49, 48, 48, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 292 #[test] fn c107_l292_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 48, 120, 48, 48, 95, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 296 #[test] fn c108_l296_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 48, 120, 102, 102, 95, 95, 102, 102, 102, 102, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 300 #[test] fn c109_l300_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 48, 120, 95, 49, 46, 48, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 304 #[test] fn c110_l304_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 48, 120, 49, 46, 48, 95, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 308 #[test] fn c111_l308_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 48, 120, 49, 95, 46, 48, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 312 #[test] fn c112_l312_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 48, 120, 49, 46, 95, 48, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 316 #[test] fn c113_l316_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 48, 120, 95, 49, 112, 49, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 320 #[test] fn c114_l320_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 48, 120, 49, 112, 49, 95, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 324 #[test] fn c115_l324_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 48, 120, 49, 95, 112, 49, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 328 #[test] fn c116_l328_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 48, 120, 49, 112, 95, 49, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 332 #[test] fn c117_l332_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 48, 120, 95, 49, 46, 48, 112, 49, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 336 #[test] fn c118_l336_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 48, 120, 49, 46, 48, 112, 49, 95, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 340 #[test] fn c119_l340_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 48, 120, 49, 46, 48, 95, 112, 49, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 344 #[test] fn c120_l344_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 48, 120, 49, 46, 48, 112, 95, 49, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 348 #[test] fn c121_l348_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 48, 120, 49, 46, 48, 112, 43, 95, 49, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 352 #[test] fn c122_l352_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 51, 50, 32, 40, 102, 51, 50, 46, 99, 111, 110, 115, 116, 32, 48, 120, 49, 46, 48, 112, 95, 43, 49, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 357 #[test] fn c123_l357_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 95, 49, 48, 48, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 361 #[test] fn c124_l361_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 43, 95, 49, 48, 48, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 365 #[test] fn c125_l365_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 45, 95, 49, 48, 48, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 369 #[test] fn c126_l369_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 57, 57, 95, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 373 #[test] fn c127_l373_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 49, 95, 95, 48, 48, 48, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 377 #[test] fn c128_l377_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 95, 49, 46, 48, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 381 #[test] fn c129_l381_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 49, 46, 48, 95, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 385 #[test] fn c130_l385_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 49, 95, 46, 48, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 389 #[test] fn c131_l389_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 49, 46, 95, 48, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 393 #[test] fn c132_l393_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 95, 49, 101, 49, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 397 #[test] fn c133_l397_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 49, 101, 49, 95, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 401 #[test] fn c134_l401_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 49, 95, 101, 49, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 405 #[test] fn c135_l405_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 49, 101, 95, 49, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 409 #[test] fn c136_l409_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 95, 49, 46, 48, 101, 49, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 413 #[test] fn c137_l413_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 49, 46, 48, 101, 49, 95, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 417 #[test] fn c138_l417_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 49, 46, 48, 95, 101, 49, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 421 #[test] fn c139_l421_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 49, 46, 48, 101, 95, 49, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 425 #[test] fn c140_l425_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 49, 46, 48, 101, 43, 95, 49, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 429 #[test] fn c141_l429_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 49, 46, 48, 101, 95, 43, 49, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 433 #[test] fn c142_l433_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 95, 48, 120, 49, 48, 48, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 437 #[test] fn c143_l437_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 48, 95, 120, 49, 48, 48, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 441 #[test] fn c144_l441_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 48, 120, 95, 49, 48, 48, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 445 #[test] fn c145_l445_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 48, 120, 48, 48, 95, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 449 #[test] fn c146_l449_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 48, 120, 102, 102, 95, 95, 102, 102, 102, 102, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 453 #[test] fn c147_l453_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 48, 120, 95, 49, 46, 48, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 457 #[test] fn c148_l457_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 48, 120, 49, 46, 48, 95, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 461 #[test] fn c149_l461_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 48, 120, 49, 95, 46, 48, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 465 #[test] fn c150_l465_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 48, 120, 49, 46, 95, 48, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 469 #[test] fn c151_l469_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 48, 120, 95, 49, 112, 49, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 473 #[test] fn c152_l473_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 48, 120, 49, 112, 49, 95, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 477 #[test] fn c153_l477_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 48, 120, 49, 95, 112, 49, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 481 #[test] fn c154_l481_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 48, 120, 49, 112, 95, 49, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 485 #[test] fn c155_l485_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 48, 120, 95, 49, 46, 48, 112, 49, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 489 #[test] fn c156_l489_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 48, 120, 49, 46, 48, 112, 49, 95, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 493 #[test] fn c157_l493_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 48, 120, 49, 46, 48, 95, 112, 49, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 497 #[test] fn c158_l497_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 48, 120, 49, 46, 48, 112, 95, 49, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 501 #[test] fn c159_l501_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 48, 120, 49, 46, 48, 112, 43, 95, 49, 41, 41]; let compilation = wasmer_runtime::compile(&wasm_binary, &CraneliftCompiler::new()); assert!(compilation.is_err(), "WASM should not compile as is malformed"); } // Line 505 #[test] fn c160_l505_assert_malformed() { let wasm_binary = [40, 103, 108, 111, 98, 97, 108, 32, 102, 54, 52, 32, 40, 102, 54, 52, 46, 99, 111, 110, 115, 116, 32, 48, 120, 49, 46, 48, 112, 95, 43, 49, 41, 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_2() { let mut instance = create_module_2(); // We group the calls together start_module_2(&mut instance); c84_l201_action_invoke(&mut instance); }