runModuleCommand( filename: 'nop.0.wasm', name: null, line: 3, ); } public function testAssertReturn1(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-func-first', 'args' => []], expected: [['type' => 'i32', 'value' => '1']], line: 306, ); } public function testAssertReturn2(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-func-mid', 'args' => []], expected: [['type' => 'i32', 'value' => '2']], line: 307, ); } public function testAssertReturn3(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-func-last', 'args' => []], expected: [['type' => 'i32', 'value' => '3']], line: 308, ); } public function testAssertReturn4(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-func-everywhere', 'args' => []], expected: [['type' => 'i32', 'value' => '4']], line: 309, ); } public function testAssertReturn5(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-drop-first', 'args' => [['type' => 'i32', 'value' => '0']]], expected: [], line: 311, ); } public function testAssertReturn6(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-drop-last', 'args' => [['type' => 'i32', 'value' => '0']]], expected: [], line: 312, ); } public function testAssertReturn7(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-drop-everywhere', 'args' => [['type' => 'i32', 'value' => '0']]], expected: [], line: 313, ); } public function testAssertReturn8(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-select-first', 'args' => [['type' => 'i32', 'value' => '3']]], expected: [['type' => 'i32', 'value' => '3']], line: 315, ); } public function testAssertReturn9(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-select-mid1', 'args' => [['type' => 'i32', 'value' => '3']]], expected: [['type' => 'i32', 'value' => '3']], line: 316, ); } public function testAssertReturn10(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-select-mid2', 'args' => [['type' => 'i32', 'value' => '3']]], expected: [['type' => 'i32', 'value' => '3']], line: 317, ); } public function testAssertReturn11(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-select-last', 'args' => [['type' => 'i32', 'value' => '3']]], expected: [['type' => 'i32', 'value' => '3']], line: 318, ); } public function testAssertReturn12(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-select-everywhere', 'args' => [['type' => 'i32', 'value' => '3']]], expected: [['type' => 'i32', 'value' => '3']], line: 319, ); } public function testAssertReturn13(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-block-first', 'args' => []], expected: [['type' => 'i32', 'value' => '2']], line: 321, ); } public function testAssertReturn14(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-block-mid', 'args' => []], expected: [['type' => 'i32', 'value' => '2']], line: 322, ); } public function testAssertReturn15(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-block-last', 'args' => []], expected: [['type' => 'i32', 'value' => '3']], line: 323, ); } public function testAssertReturn16(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-block-everywhere', 'args' => []], expected: [['type' => 'i32', 'value' => '4']], line: 324, ); } public function testAssertReturn17(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-loop-first', 'args' => []], expected: [['type' => 'i32', 'value' => '2']], line: 326, ); } public function testAssertReturn18(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-loop-mid', 'args' => []], expected: [['type' => 'i32', 'value' => '2']], line: 327, ); } public function testAssertReturn19(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-loop-last', 'args' => []], expected: [['type' => 'i32', 'value' => '3']], line: 328, ); } public function testAssertReturn20(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-loop-everywhere', 'args' => []], expected: [['type' => 'i32', 'value' => '4']], line: 329, ); } public function testAssertReturn21(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-if-condition', 'args' => [['type' => 'i32', 'value' => '0']]], expected: [], line: 331, ); } public function testAssertReturn22(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-if-condition', 'args' => [['type' => 'i32', 'value' => '4294967295']]], expected: [], line: 332, ); } public function testAssertReturn23(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-if-then', 'args' => [['type' => 'i32', 'value' => '0']]], expected: [], line: 333, ); } public function testAssertReturn24(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-if-then', 'args' => [['type' => 'i32', 'value' => '4']]], expected: [], line: 334, ); } public function testAssertReturn25(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-if-else', 'args' => [['type' => 'i32', 'value' => '0']]], expected: [], line: 335, ); } public function testAssertReturn26(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-if-else', 'args' => [['type' => 'i32', 'value' => '3']]], expected: [], line: 336, ); } public function testAssertReturn27(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-br-first', 'args' => [['type' => 'i32', 'value' => '5']]], expected: [['type' => 'i32', 'value' => '5']], line: 338, ); } public function testAssertReturn28(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-br-last', 'args' => [['type' => 'i32', 'value' => '6']]], expected: [['type' => 'i32', 'value' => '6']], line: 339, ); } public function testAssertReturn29(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-br-everywhere', 'args' => [['type' => 'i32', 'value' => '7']]], expected: [['type' => 'i32', 'value' => '7']], line: 340, ); } public function testAssertReturn30(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-br_if-first', 'args' => [['type' => 'i32', 'value' => '4']]], expected: [['type' => 'i32', 'value' => '4']], line: 342, ); } public function testAssertReturn31(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-br_if-mid', 'args' => [['type' => 'i32', 'value' => '5']]], expected: [['type' => 'i32', 'value' => '5']], line: 343, ); } public function testAssertReturn32(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-br_if-last', 'args' => [['type' => 'i32', 'value' => '6']]], expected: [['type' => 'i32', 'value' => '6']], line: 344, ); } public function testAssertReturn33(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-br_if-everywhere', 'args' => [['type' => 'i32', 'value' => '7']]], expected: [['type' => 'i32', 'value' => '7']], line: 345, ); } public function testAssertReturn34(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-br_table-first', 'args' => [['type' => 'i32', 'value' => '4']]], expected: [['type' => 'i32', 'value' => '4']], line: 347, ); } public function testAssertReturn35(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-br_table-mid', 'args' => [['type' => 'i32', 'value' => '5']]], expected: [['type' => 'i32', 'value' => '5']], line: 348, ); } public function testAssertReturn36(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-br_table-last', 'args' => [['type' => 'i32', 'value' => '6']]], expected: [['type' => 'i32', 'value' => '6']], line: 349, ); } public function testAssertReturn37(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-br_table-everywhere', 'args' => [['type' => 'i32', 'value' => '7']]], expected: [['type' => 'i32', 'value' => '7']], line: 350, ); } public function testAssertReturn38(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-return-first', 'args' => [['type' => 'i32', 'value' => '5']]], expected: [['type' => 'i32', 'value' => '5']], line: 352, ); } public function testAssertReturn39(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-return-last', 'args' => [['type' => 'i32', 'value' => '6']]], expected: [['type' => 'i32', 'value' => '6']], line: 353, ); } public function testAssertReturn40(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-return-everywhere', 'args' => [['type' => 'i32', 'value' => '7']]], expected: [['type' => 'i32', 'value' => '7']], line: 354, ); } public function testAssertReturn41(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-call-first', 'args' => [['type' => 'i32', 'value' => '3'], ['type' => 'i32', 'value' => '1'], ['type' => 'i32', 'value' => '2']]], expected: [['type' => 'i32', 'value' => '2']], line: 356, ); } public function testAssertReturn42(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-call-mid1', 'args' => [['type' => 'i32', 'value' => '3'], ['type' => 'i32', 'value' => '1'], ['type' => 'i32', 'value' => '2']]], expected: [['type' => 'i32', 'value' => '2']], line: 357, ); } public function testAssertReturn43(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-call-mid2', 'args' => [['type' => 'i32', 'value' => '0'], ['type' => 'i32', 'value' => '3'], ['type' => 'i32', 'value' => '1']]], expected: [['type' => 'i32', 'value' => '2']], line: 358, ); } public function testAssertReturn44(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-call-last', 'args' => [['type' => 'i32', 'value' => '10'], ['type' => 'i32', 'value' => '9'], ['type' => 'i32', 'value' => '4294967295']]], expected: [['type' => 'i32', 'value' => '20']], line: 359, ); } public function testAssertReturn45(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-call-everywhere', 'args' => [['type' => 'i32', 'value' => '2'], ['type' => 'i32', 'value' => '1'], ['type' => 'i32', 'value' => '5']]], expected: [['type' => 'i32', 'value' => '4294967294']], line: 360, ); } public function testAssertReturn46(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-unary-first', 'args' => [['type' => 'i32', 'value' => '30']]], expected: [['type' => 'i32', 'value' => '1']], line: 362, ); } public function testAssertReturn47(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-unary-last', 'args' => [['type' => 'i32', 'value' => '30']]], expected: [['type' => 'i32', 'value' => '1']], line: 363, ); } public function testAssertReturn48(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-unary-everywhere', 'args' => [['type' => 'i32', 'value' => '12']]], expected: [['type' => 'i32', 'value' => '2']], line: 364, ); } public function testAssertReturn49(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-binary-first', 'args' => [['type' => 'i32', 'value' => '3']]], expected: [['type' => 'i32', 'value' => '6']], line: 366, ); } public function testAssertReturn50(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-binary-mid', 'args' => [['type' => 'i32', 'value' => '3']]], expected: [['type' => 'i32', 'value' => '6']], line: 367, ); } public function testAssertReturn51(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-binary-last', 'args' => [['type' => 'i32', 'value' => '3']]], expected: [['type' => 'i32', 'value' => '6']], line: 368, ); } public function testAssertReturn52(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-binary-everywhere', 'args' => [['type' => 'i32', 'value' => '3']]], expected: [['type' => 'i32', 'value' => '6']], line: 369, ); } public function testAssertReturn53(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-test-first', 'args' => [['type' => 'i32', 'value' => '0']]], expected: [['type' => 'i32', 'value' => '1']], line: 371, ); } public function testAssertReturn54(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-test-last', 'args' => [['type' => 'i32', 'value' => '0']]], expected: [['type' => 'i32', 'value' => '1']], line: 372, ); } public function testAssertReturn55(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-test-everywhere', 'args' => [['type' => 'i32', 'value' => '0']]], expected: [['type' => 'i32', 'value' => '1']], line: 373, ); } public function testAssertReturn56(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-compare-first', 'args' => [['type' => 'i32', 'value' => '3']]], expected: [['type' => 'i32', 'value' => '0']], line: 375, ); } public function testAssertReturn57(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-compare-mid', 'args' => [['type' => 'i32', 'value' => '3']]], expected: [['type' => 'i32', 'value' => '0']], line: 376, ); } public function testAssertReturn58(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-compare-last', 'args' => [['type' => 'i32', 'value' => '3']]], expected: [['type' => 'i32', 'value' => '0']], line: 377, ); } public function testAssertReturn59(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-compare-everywhere', 'args' => [['type' => 'i32', 'value' => '3']]], expected: [['type' => 'i32', 'value' => '1']], line: 378, ); } public function testAssertReturn60(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-memory.grow-first', 'args' => [['type' => 'i32', 'value' => '0']]], expected: [['type' => 'i32', 'value' => '1']], line: 380, ); } public function testAssertReturn61(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-memory.grow-last', 'args' => [['type' => 'i32', 'value' => '2']]], expected: [['type' => 'i32', 'value' => '1']], line: 381, ); } public function testAssertReturn62(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-memory.grow-everywhere', 'args' => [['type' => 'i32', 'value' => '12']]], expected: [['type' => 'i32', 'value' => '3']], line: 382, ); } public function testAssertReturn63(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-call_indirect-first', 'args' => []], expected: [['type' => 'i32', 'value' => '1']], line: 384, ); } public function testAssertReturn64(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-call_indirect-mid1', 'args' => []], expected: [['type' => 'i32', 'value' => '1']], line: 385, ); } public function testAssertReturn65(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-call_indirect-mid2', 'args' => []], expected: [['type' => 'i32', 'value' => '1']], line: 386, ); } public function testAssertReturn66(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-call_indirect-last', 'args' => []], expected: [['type' => 'i32', 'value' => '1']], line: 387, ); } public function testAssertReturn67(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-call_indirect-everywhere', 'args' => []], expected: [['type' => 'i32', 'value' => '1']], line: 388, ); } public function testAssertReturn68(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-local.set-first', 'args' => [['type' => 'i32', 'value' => '1']]], expected: [['type' => 'i32', 'value' => '2']], line: 390, ); } public function testAssertReturn69(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-local.set-last', 'args' => [['type' => 'i32', 'value' => '1']]], expected: [['type' => 'i32', 'value' => '2']], line: 391, ); } public function testAssertReturn70(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-local.set-everywhere', 'args' => [['type' => 'i32', 'value' => '1']]], expected: [['type' => 'i32', 'value' => '2']], line: 392, ); } public function testAssertReturn71(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-local.tee-first', 'args' => [['type' => 'i32', 'value' => '1']]], expected: [['type' => 'i32', 'value' => '2']], line: 394, ); } public function testAssertReturn72(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-local.tee-last', 'args' => [['type' => 'i32', 'value' => '1']]], expected: [['type' => 'i32', 'value' => '2']], line: 395, ); } public function testAssertReturn73(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-local.tee-everywhere', 'args' => [['type' => 'i32', 'value' => '1']]], expected: [['type' => 'i32', 'value' => '2']], line: 396, ); } public function testAssertReturn74(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-global.set-first', 'args' => []], expected: [['type' => 'i32', 'value' => '2']], line: 398, ); } public function testAssertReturn75(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-global.set-last', 'args' => []], expected: [['type' => 'i32', 'value' => '2']], line: 399, ); } public function testAssertReturn76(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-global.set-everywhere', 'args' => []], expected: [['type' => 'i32', 'value' => '2']], line: 400, ); } public function testAssertReturn77(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-load-first', 'args' => [['type' => 'i32', 'value' => '100']]], expected: [['type' => 'i32', 'value' => '0']], line: 402, ); } public function testAssertReturn78(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-load-last', 'args' => [['type' => 'i32', 'value' => '100']]], expected: [['type' => 'i32', 'value' => '0']], line: 403, ); } public function testAssertReturn79(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-load-everywhere', 'args' => [['type' => 'i32', 'value' => '100']]], expected: [['type' => 'i32', 'value' => '0']], line: 404, ); } public function testAssertReturn80(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-store-first', 'args' => [['type' => 'i32', 'value' => '0'], ['type' => 'i32', 'value' => '1']]], expected: [], line: 406, ); } public function testAssertReturn81(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-store-mid', 'args' => [['type' => 'i32', 'value' => '0'], ['type' => 'i32', 'value' => '2']]], expected: [], line: 407, ); } public function testAssertReturn82(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-store-last', 'args' => [['type' => 'i32', 'value' => '0'], ['type' => 'i32', 'value' => '3']]], expected: [], line: 408, ); } public function testAssertReturn83(): void { $this->runAssertReturnCommand( action: ['type' => 'invoke', 'field' => 'as-store-everywhere', 'args' => [['type' => 'i32', 'value' => '0'], ['type' => 'i32', 'value' => '4']]], expected: [], line: 409, ); } public function testAssertInvalid84(): void { $this->runAssertInvalidCommand( filename: 'nop.1.wasm', text: 'type mismatch', line: 412, ); } public function testAssertInvalid85(): void { $this->runAssertInvalidCommand( filename: 'nop.2.wasm', text: 'type mismatch', line: 416, ); } public function testAssertInvalid86(): void { $this->runAssertInvalidCommand( filename: 'nop.3.wasm', text: 'type mismatch', line: 420, ); } public function testAssertInvalid87(): void { $this->runAssertInvalidCommand( filename: 'nop.4.wasm', text: 'type mismatch', line: 424, ); } }