blob: 3e5689903343b5b42f2ab9c3ee2511ec3819ca5c [file] [log] [blame]
// linking.wast:3
let $1 = instance("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x85\x80\x80\x80\x00\x01\x60\x00\x01\x7f\x03\x83\x80\x80\x80\x00\x02\x00\x00\x07\x88\x80\x80\x80\x00\x01\x04\x63\x61\x6c\x6c\x00\x00\x0a\x93\x80\x80\x80\x00\x02\x84\x80\x80\x80\x00\x00\x10\x01\x0b\x84\x80\x80\x80\x00\x00\x41\x02\x0b");
let $Mf = $1;
// linking.wast:7
register("Mf", $Mf)
// linking.wast:9
let $2 = instance("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x85\x80\x80\x80\x00\x01\x60\x00\x01\x7f\x02\x8b\x80\x80\x80\x00\x01\x02\x4d\x66\x04\x63\x61\x6c\x6c\x00\x00\x03\x84\x80\x80\x80\x00\x03\x00\x00\x00\x07\xa1\x80\x80\x80\x00\x03\x07\x4d\x66\x2e\x63\x61\x6c\x6c\x00\x00\x0c\x63\x61\x6c\x6c\x20\x4d\x66\x2e\x63\x61\x6c\x6c\x00\x01\x04\x63\x61\x6c\x6c\x00\x02\x0a\x9c\x80\x80\x80\x00\x03\x84\x80\x80\x80\x00\x00\x10\x00\x0b\x84\x80\x80\x80\x00\x00\x10\x03\x0b\x84\x80\x80\x80\x00\x00\x41\x03\x0b");
let $Nf = $2;
// linking.wast:17
assert_return(() => call($Mf, "call", []), 2);
// linking.wast:18
assert_return(() => call($Nf, "Mf.call", []), 2);
// linking.wast:19
assert_return(() => call($Nf, "call", []), 3);
// linking.wast:20
assert_return(() => call($Nf, "call Mf.call", []), 2);
// linking.wast:22
let $3 = instance("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x85\x80\x80\x80\x00\x01\x60\x01\x7f\x00\x02\x96\x80\x80\x80\x00\x01\x08\x73\x70\x65\x63\x74\x65\x73\x74\x09\x70\x72\x69\x6e\x74\x5f\x69\x33\x32\x00\x00\x07\x89\x80\x80\x80\x00\x01\x05\x70\x72\x69\x6e\x74\x00\x00");
// linking.wast:26
register("reexport_f", $3)
// linking.wast:27
assert_unlinkable("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x85\x80\x80\x80\x00\x01\x60\x01\x7e\x00\x02\x94\x80\x80\x80\x00\x01\x0a\x72\x65\x65\x78\x70\x6f\x72\x74\x5f\x66\x05\x70\x72\x69\x6e\x74\x00\x00");
// linking.wast:31
assert_unlinkable("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x86\x80\x80\x80\x00\x01\x60\x01\x7f\x01\x7f\x02\x94\x80\x80\x80\x00\x01\x0a\x72\x65\x65\x78\x70\x6f\x72\x74\x5f\x66\x05\x70\x72\x69\x6e\x74\x00\x00");
// linking.wast:39
let $4 = instance("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x89\x80\x80\x80\x00\x02\x60\x00\x01\x7f\x60\x01\x7f\x00\x03\x84\x80\x80\x80\x00\x03\x00\x00\x01\x06\x8c\x80\x80\x80\x00\x02\x7f\x00\x41\x2a\x0b\x7f\x01\x41\x8e\x01\x0b\x07\xad\x80\x80\x80\x00\x05\x04\x67\x6c\x6f\x62\x03\x00\x03\x67\x65\x74\x00\x00\x08\x6d\x75\x74\x5f\x67\x6c\x6f\x62\x03\x01\x07\x67\x65\x74\x5f\x6d\x75\x74\x00\x01\x07\x73\x65\x74\x5f\x6d\x75\x74\x00\x02\x0a\x9e\x80\x80\x80\x00\x03\x84\x80\x80\x80\x00\x00\x23\x00\x0b\x84\x80\x80\x80\x00\x00\x23\x01\x0b\x86\x80\x80\x80\x00\x00\x20\x00\x24\x01\x0b");
let $Mg = $4;
// linking.wast:48
register("Mg", $Mg)
// linking.wast:50
let $5 = instance("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x89\x80\x80\x80\x00\x02\x60\x00\x01\x7f\x60\x01\x7f\x00\x02\xbe\x80\x80\x80\x00\x05\x02\x4d\x67\x04\x67\x6c\x6f\x62\x03\x7f\x00\x02\x4d\x67\x08\x6d\x75\x74\x5f\x67\x6c\x6f\x62\x03\x7f\x01\x02\x4d\x67\x03\x67\x65\x74\x00\x00\x02\x4d\x67\x07\x67\x65\x74\x5f\x6d\x75\x74\x00\x00\x02\x4d\x67\x07\x73\x65\x74\x5f\x6d\x75\x74\x00\x01\x03\x82\x80\x80\x80\x00\x01\x00\x06\x86\x80\x80\x80\x00\x01\x7f\x00\x41\x2b\x0b\x07\xc9\x80\x80\x80\x00\x07\x07\x4d\x67\x2e\x67\x6c\x6f\x62\x03\x00\x06\x4d\x67\x2e\x67\x65\x74\x00\x00\x04\x67\x6c\x6f\x62\x03\x02\x03\x67\x65\x74\x00\x03\x0b\x4d\x67\x2e\x6d\x75\x74\x5f\x67\x6c\x6f\x62\x03\x01\x0a\x4d\x67\x2e\x67\x65\x74\x5f\x6d\x75\x74\x00\x01\x0a\x4d\x67\x2e\x73\x65\x74\x5f\x6d\x75\x74\x00\x02\x0a\x8a\x80\x80\x80\x00\x01\x84\x80\x80\x80\x00\x00\x23\x02\x0b");
let $Ng = $5;
// linking.wast:67
assert_return(() => get($Mg, "glob"), 42);
// linking.wast:68
assert_return(() => get($Ng, "Mg.glob"), 42);
// linking.wast:69
assert_return(() => get($Ng, "glob"), 43);
// linking.wast:70
assert_return(() => call($Mg, "get", []), 42);
// linking.wast:71
assert_return(() => call($Ng, "Mg.get", []), 42);
// linking.wast:72
assert_return(() => call($Ng, "get", []), 43);
// linking.wast:74
run(() => call(instance("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x9f\x80\x80\x80\x00\x06\x60\x00\x00\x60\x01\x7f\x01\x6f\x60\x01\x6f\x01\x7f\x60\x01\x70\x01\x7f\x60\x02\x6f\x6f\x01\x7f\x60\x02\x70\x70\x01\x7f\x02\x85\x81\x80\x80\x00\x06\x06\x6d\x6f\x64\x75\x6c\x65\x08\x6d\x75\x74\x5f\x67\x6c\x6f\x62\x03\x7f\x01\x08\x73\x70\x65\x63\x74\x65\x73\x74\x09\x65\x78\x74\x65\x72\x6e\x72\x65\x66\x00\x01\x08\x73\x70\x65\x63\x74\x65\x73\x74\x0c\x69\x73\x5f\x65\x78\x74\x65\x72\x6e\x72\x65\x66\x00\x02\x08\x73\x70\x65\x63\x74\x65\x73\x74\x0a\x69\x73\x5f\x66\x75\x6e\x63\x72\x65\x66\x00\x03\x08\x73\x70\x65\x63\x74\x65\x73\x74\x0c\x65\x71\x5f\x65\x78\x74\x65\x72\x6e\x72\x65\x66\x00\x04\x08\x73\x70\x65\x63\x74\x65\x73\x74\x0a\x65\x71\x5f\x66\x75\x6e\x63\x72\x65\x66\x00\x05\x03\x82\x80\x80\x80\x00\x01\x00\x07\x87\x80\x80\x80\x00\x01\x03\x72\x75\x6e\x00\x05\x0a\x98\x80\x80\x80\x00\x01\x92\x80\x80\x80\x00\x00\x02\x40\x23\x00\x01\x41\x8e\x01\x01\x46\x45\x0d\x00\x0f\x0b\x00\x0b", exports($Mg)), "run", [])); // assert_return(() => get($Mg, "mut_glob"), 142)
// linking.wast:75
run(() => call(instance("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x9f\x80\x80\x80\x00\x06\x60\x00\x00\x60\x01\x7f\x01\x6f\x60\x01\x6f\x01\x7f\x60\x01\x70\x01\x7f\x60\x02\x6f\x6f\x01\x7f\x60\x02\x70\x70\x01\x7f\x02\x88\x81\x80\x80\x00\x06\x06\x6d\x6f\x64\x75\x6c\x65\x0b\x4d\x67\x2e\x6d\x75\x74\x5f\x67\x6c\x6f\x62\x03\x7f\x01\x08\x73\x70\x65\x63\x74\x65\x73\x74\x09\x65\x78\x74\x65\x72\x6e\x72\x65\x66\x00\x01\x08\x73\x70\x65\x63\x74\x65\x73\x74\x0c\x69\x73\x5f\x65\x78\x74\x65\x72\x6e\x72\x65\x66\x00\x02\x08\x73\x70\x65\x63\x74\x65\x73\x74\x0a\x69\x73\x5f\x66\x75\x6e\x63\x72\x65\x66\x00\x03\x08\x73\x70\x65\x63\x74\x65\x73\x74\x0c\x65\x71\x5f\x65\x78\x74\x65\x72\x6e\x72\x65\x66\x00\x04\x08\x73\x70\x65\x63\x74\x65\x73\x74\x0a\x65\x71\x5f\x66\x75\x6e\x63\x72\x65\x66\x00\x05\x03\x82\x80\x80\x80\x00\x01\x00\x07\x87\x80\x80\x80\x00\x01\x03\x72\x75\x6e\x00\x05\x0a\x98\x80\x80\x80\x00\x01\x92\x80\x80\x80\x00\x00\x02\x40\x23\x00\x01\x41\x8e\x01\x01\x46\x45\x0d\x00\x0f\x0b\x00\x0b", exports($Ng)), "run", [])); // assert_return(() => get($Ng, "Mg.mut_glob"), 142)
// linking.wast:76
assert_return(() => call($Mg, "get_mut", []), 142);
// linking.wast:77
assert_return(() => call($Ng, "Mg.get_mut", []), 142);
// linking.wast:79
assert_return(() => call($Mg, "set_mut", [241]));
// linking.wast:80
run(() => call(instance("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x9f\x80\x80\x80\x00\x06\x60\x00\x00\x60\x01\x7f\x01\x6f\x60\x01\x6f\x01\x7f\x60\x01\x70\x01\x7f\x60\x02\x6f\x6f\x01\x7f\x60\x02\x70\x70\x01\x7f\x02\x85\x81\x80\x80\x00\x06\x06\x6d\x6f\x64\x75\x6c\x65\x08\x6d\x75\x74\x5f\x67\x6c\x6f\x62\x03\x7f\x01\x08\x73\x70\x65\x63\x74\x65\x73\x74\x09\x65\x78\x74\x65\x72\x6e\x72\x65\x66\x00\x01\x08\x73\x70\x65\x63\x74\x65\x73\x74\x0c\x69\x73\x5f\x65\x78\x74\x65\x72\x6e\x72\x65\x66\x00\x02\x08\x73\x70\x65\x63\x74\x65\x73\x74\x0a\x69\x73\x5f\x66\x75\x6e\x63\x72\x65\x66\x00\x03\x08\x73\x70\x65\x63\x74\x65\x73\x74\x0c\x65\x71\x5f\x65\x78\x74\x65\x72\x6e\x72\x65\x66\x00\x04\x08\x73\x70\x65\x63\x74\x65\x73\x74\x0a\x65\x71\x5f\x66\x75\x6e\x63\x72\x65\x66\x00\x05\x03\x82\x80\x80\x80\x00\x01\x00\x07\x87\x80\x80\x80\x00\x01\x03\x72\x75\x6e\x00\x05\x0a\x98\x80\x80\x80\x00\x01\x92\x80\x80\x80\x00\x00\x02\x40\x23\x00\x01\x41\xf1\x01\x01\x46\x45\x0d\x00\x0f\x0b\x00\x0b", exports($Mg)), "run", [])); // assert_return(() => get($Mg, "mut_glob"), 241)
// linking.wast:81
run(() => call(instance("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x9f\x80\x80\x80\x00\x06\x60\x00\x00\x60\x01\x7f\x01\x6f\x60\x01\x6f\x01\x7f\x60\x01\x70\x01\x7f\x60\x02\x6f\x6f\x01\x7f\x60\x02\x70\x70\x01\x7f\x02\x88\x81\x80\x80\x00\x06\x06\x6d\x6f\x64\x75\x6c\x65\x0b\x4d\x67\x2e\x6d\x75\x74\x5f\x67\x6c\x6f\x62\x03\x7f\x01\x08\x73\x70\x65\x63\x74\x65\x73\x74\x09\x65\x78\x74\x65\x72\x6e\x72\x65\x66\x00\x01\x08\x73\x70\x65\x63\x74\x65\x73\x74\x0c\x69\x73\x5f\x65\x78\x74\x65\x72\x6e\x72\x65\x66\x00\x02\x08\x73\x70\x65\x63\x74\x65\x73\x74\x0a\x69\x73\x5f\x66\x75\x6e\x63\x72\x65\x66\x00\x03\x08\x73\x70\x65\x63\x74\x65\x73\x74\x0c\x65\x71\x5f\x65\x78\x74\x65\x72\x6e\x72\x65\x66\x00\x04\x08\x73\x70\x65\x63\x74\x65\x73\x74\x0a\x65\x71\x5f\x66\x75\x6e\x63\x72\x65\x66\x00\x05\x03\x82\x80\x80\x80\x00\x01\x00\x07\x87\x80\x80\x80\x00\x01\x03\x72\x75\x6e\x00\x05\x0a\x98\x80\x80\x80\x00\x01\x92\x80\x80\x80\x00\x00\x02\x40\x23\x00\x01\x41\xf1\x01\x01\x46\x45\x0d\x00\x0f\x0b\x00\x0b", exports($Ng)), "run", [])); // assert_return(() => get($Ng, "Mg.mut_glob"), 241)
// linking.wast:82
assert_return(() => call($Mg, "get_mut", []), 241);
// linking.wast:83
assert_return(() => call($Ng, "Mg.get_mut", []), 241);
// linking.wast:86
assert_unlinkable("\x00\x61\x73\x6d\x01\x00\x00\x00\x02\x90\x80\x80\x80\x00\x01\x02\x4d\x67\x08\x6d\x75\x74\x5f\x67\x6c\x6f\x62\x03\x7f\x00");
// linking.wast:90
assert_unlinkable("\x00\x61\x73\x6d\x01\x00\x00\x00\x02\x8c\x80\x80\x80\x00\x01\x02\x4d\x67\x04\x67\x6c\x6f\x62\x03\x7f\x01");
// linking.wast:96
let $6 = instance("\x00\x61\x73\x6d\x01\x00\x00\x00\x06\x95\x80\x80\x80\x00\x04\x70\x00\xd0\x70\x0b\x70\x01\xd0\x70\x0b\x6f\x00\xd0\x6f\x0b\x6f\x01\xd0\x6f\x0b\x07\xbd\x80\x80\x80\x00\x04\x0c\x67\x2d\x63\x6f\x6e\x73\x74\x2d\x66\x75\x6e\x63\x03\x00\x0a\x67\x2d\x76\x61\x72\x2d\x66\x75\x6e\x63\x03\x01\x0e\x67\x2d\x63\x6f\x6e\x73\x74\x2d\x65\x78\x74\x65\x72\x6e\x03\x02\x0c\x67\x2d\x76\x61\x72\x2d\x65\x78\x74\x65\x72\x6e\x03\x03");
let $Mref_ex = $6;
// linking.wast:102
register("Mref_ex", $Mref_ex)
// linking.wast:104
let $7 = instance("\x00\x61\x73\x6d\x01\x00\x00\x00\x02\xe1\x80\x80\x80\x00\x04\x07\x4d\x72\x65\x66\x5f\x65\x78\x0c\x67\x2d\x63\x6f\x6e\x73\x74\x2d\x66\x75\x6e\x63\x03\x70\x00\x07\x4d\x72\x65\x66\x5f\x65\x78\x0e\x67\x2d\x63\x6f\x6e\x73\x74\x2d\x65\x78\x74\x65\x72\x6e\x03\x6f\x00\x07\x4d\x72\x65\x66\x5f\x65\x78\x0a\x67\x2d\x76\x61\x72\x2d\x66\x75\x6e\x63\x03\x70\x01\x07\x4d\x72\x65\x66\x5f\x65\x78\x0c\x67\x2d\x76\x61\x72\x2d\x65\x78\x74\x65\x72\x6e\x03\x6f\x01");
let $Mref_im = $7;
// linking.wast:112
assert_unlinkable("\x00\x61\x73\x6d\x01\x00\x00\x00\x02\x9b\x80\x80\x80\x00\x01\x07\x4d\x72\x65\x66\x5f\x65\x78\x0e\x67\x2d\x63\x6f\x6e\x73\x74\x2d\x65\x78\x74\x65\x72\x6e\x03\x70\x00");
// linking.wast:116
assert_unlinkable("\x00\x61\x73\x6d\x01\x00\x00\x00\x02\x99\x80\x80\x80\x00\x01\x07\x4d\x72\x65\x66\x5f\x65\x78\x0c\x67\x2d\x63\x6f\x6e\x73\x74\x2d\x66\x75\x6e\x63\x03\x6f\x00");
// linking.wast:122
assert_unlinkable("\x00\x61\x73\x6d\x01\x00\x00\x00\x02\x97\x80\x80\x80\x00\x01\x07\x4d\x72\x65\x66\x5f\x65\x78\x0a\x67\x2d\x76\x61\x72\x2d\x66\x75\x6e\x63\x03\x6f\x01");
// linking.wast:126
assert_unlinkable("\x00\x61\x73\x6d\x01\x00\x00\x00\x02\x99\x80\x80\x80\x00\x01\x07\x4d\x72\x65\x66\x5f\x65\x78\x0c\x67\x2d\x76\x61\x72\x2d\x65\x78\x74\x65\x72\x6e\x03\x70\x01");
// linking.wast:134
let $8 = instance("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x8d\x80\x80\x80\x00\x03\x60\x00\x01\x7f\x60\x00\x00\x60\x01\x7f\x01\x7f\x03\x84\x80\x80\x80\x00\x03\x00\x00\x02\x04\x84\x80\x80\x80\x00\x01\x70\x00\x0a\x07\x92\x80\x80\x80\x00\x03\x03\x74\x61\x62\x01\x00\x01\x68\x00\x01\x04\x63\x61\x6c\x6c\x00\x02\x09\x8a\x80\x80\x80\x00\x01\x00\x41\x02\x0b\x04\x00\x00\x00\x00\x0a\x9f\x80\x80\x80\x00\x03\x84\x80\x80\x80\x00\x00\x41\x04\x0b\x84\x80\x80\x80\x00\x00\x41\x7c\x0b\x87\x80\x80\x80\x00\x00\x20\x00\x11\x00\x00\x0b");
let $Mt = $8;
// linking.wast:147
register("Mt", $Mt)
// linking.wast:149
let $9 = instance("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x8d\x80\x80\x80\x00\x03\x60\x00\x00\x60\x00\x01\x7f\x60\x01\x7f\x01\x7f\x02\x92\x80\x80\x80\x00\x02\x02\x4d\x74\x04\x63\x61\x6c\x6c\x00\x02\x02\x4d\x74\x01\x68\x00\x01\x03\x84\x80\x80\x80\x00\x03\x01\x02\x02\x04\x85\x80\x80\x80\x00\x01\x70\x01\x05\x05\x07\xa1\x80\x80\x80\x00\x03\x07\x4d\x74\x2e\x63\x61\x6c\x6c\x00\x00\x0c\x63\x61\x6c\x6c\x20\x4d\x74\x2e\x63\x61\x6c\x6c\x00\x03\x04\x63\x61\x6c\x6c\x00\x04\x09\x8b\x80\x80\x80\x00\x01\x00\x41\x00\x0b\x05\x02\x02\x02\x01\x00\x0a\xa1\x80\x80\x80\x00\x03\x84\x80\x80\x80\x00\x00\x41\x05\x0b\x86\x80\x80\x80\x00\x00\x20\x00\x10\x00\x0b\x87\x80\x80\x80\x00\x00\x20\x00\x11\x01\x00\x0b");
let $Nt = $9;
// linking.wast:168
assert_return(() => call($Mt, "call", [2]), 4);
// linking.wast:169
assert_return(() => call($Nt, "Mt.call", [2]), 4);
// linking.wast:170
assert_return(() => call($Nt, "call", [2]), 5);
// linking.wast:171
assert_return(() => call($Nt, "call Mt.call", [2]), 4);
// linking.wast:173
assert_trap(() => call($Mt, "call", [1]));
// linking.wast:174
assert_trap(() => call($Nt, "Mt.call", [1]));
// linking.wast:175
assert_return(() => call($Nt, "call", [1]), 5);
// linking.wast:176
assert_trap(() => call($Nt, "call Mt.call", [1]));
// linking.wast:178
assert_trap(() => call($Mt, "call", [0]));
// linking.wast:179
assert_trap(() => call($Nt, "Mt.call", [0]));
// linking.wast:180
assert_return(() => call($Nt, "call", [0]), 5);
// linking.wast:181
assert_trap(() => call($Nt, "call Mt.call", [0]));
// linking.wast:183
assert_trap(() => call($Mt, "call", [20]));
// linking.wast:184
assert_trap(() => call($Nt, "Mt.call", [20]));
// linking.wast:185
assert_trap(() => call($Nt, "call", [7]));
// linking.wast:186
assert_trap(() => call($Nt, "call Mt.call", [20]));
// linking.wast:188
assert_return(() => call($Nt, "call", [3]), -4);
// linking.wast:189
assert_trap(() => call($Nt, "call", [4]));
// linking.wast:191
let $10 = instance("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x8a\x80\x80\x80\x00\x02\x60\x00\x01\x7f\x60\x01\x7f\x01\x7f\x02\x93\x80\x80\x80\x00\x02\x02\x4d\x74\x01\x68\x00\x00\x02\x4d\x74\x03\x74\x61\x62\x01\x70\x00\x05\x03\x83\x80\x80\x80\x00\x02\x00\x01\x07\x88\x80\x80\x80\x00\x01\x04\x63\x61\x6c\x6c\x00\x02\x09\x88\x80\x80\x80\x00\x01\x00\x41\x01\x0b\x02\x01\x00\x0a\x96\x80\x80\x80\x00\x02\x84\x80\x80\x80\x00\x00\x41\x06\x0b\x87\x80\x80\x80\x00\x00\x20\x00\x11\x00\x00\x0b");
let $Ot = $10;
// linking.wast:204
assert_return(() => call($Mt, "call", [3]), 4);
// linking.wast:205
assert_return(() => call($Nt, "Mt.call", [3]), 4);
// linking.wast:206
assert_return(() => call($Nt, "call Mt.call", [3]), 4);
// linking.wast:207
assert_return(() => call($Ot, "call", [3]), 4);
// linking.wast:209
assert_return(() => call($Mt, "call", [2]), -4);
// linking.wast:210
assert_return(() => call($Nt, "Mt.call", [2]), -4);
// linking.wast:211
assert_return(() => call($Nt, "call", [2]), 5);
// linking.wast:212
assert_return(() => call($Nt, "call Mt.call", [2]), -4);
// linking.wast:213
assert_return(() => call($Ot, "call", [2]), -4);
// linking.wast:215
assert_return(() => call($Mt, "call", [1]), 6);
// linking.wast:216
assert_return(() => call($Nt, "Mt.call", [1]), 6);
// linking.wast:217
assert_return(() => call($Nt, "call", [1]), 5);
// linking.wast:218
assert_return(() => call($Nt, "call Mt.call", [1]), 6);
// linking.wast:219
assert_return(() => call($Ot, "call", [1]), 6);
// linking.wast:221
assert_trap(() => call($Mt, "call", [0]));
// linking.wast:222
assert_trap(() => call($Nt, "Mt.call", [0]));
// linking.wast:223
assert_return(() => call($Nt, "call", [0]), 5);
// linking.wast:224
assert_trap(() => call($Nt, "call Mt.call", [0]));
// linking.wast:225
assert_trap(() => call($Ot, "call", [0]));
// linking.wast:227
assert_trap(() => call($Ot, "call", [20]));
// linking.wast:229
let $11 = instance("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x84\x80\x80\x80\x00\x01\x60\x00\x00\x02\x8c\x80\x80\x80\x00\x01\x02\x4d\x74\x03\x74\x61\x62\x01\x70\x00\x00\x03\x82\x80\x80\x80\x00\x01\x00\x09\x87\x80\x80\x80\x00\x01\x00\x41\x09\x0b\x01\x00\x0a\x88\x80\x80\x80\x00\x01\x82\x80\x80\x80\x00\x00\x0b");
// linking.wast:235
let $12 = instance("\x00\x61\x73\x6d\x01\x00\x00\x00\x06\x86\x80\x80\x80\x00\x01\x7f\x00\x41\x05\x0b\x07\x85\x80\x80\x80\x00\x01\x01\x67\x03\x00");
let $G1 = $12;
// linking.wast:236
register("G1", $G1)
// linking.wast:237
let $13 = instance("\x00\x61\x73\x6d\x01\x00\x00\x00\x02\x89\x80\x80\x80\x00\x01\x02\x47\x31\x01\x67\x03\x7f\x00\x06\x86\x80\x80\x80\x00\x01\x7f\x00\x23\x00\x0b\x07\x85\x80\x80\x80\x00\x01\x01\x67\x03\x01");
let $G2 = $13;
// linking.wast:241
assert_return(() => get($G2, "g"), 5);
// linking.wast:243
// FIXME: replace this with assert_uninstantiable once reference-types will be enabled by defaul. https://bugs.webkit.org/show_bug.cgi?id=220456.
assert_unlinkable("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x84\x80\x80\x80\x00\x01\x60\x00\x00\x02\x8c\x80\x80\x80\x00\x01\x02\x4d\x74\x03\x74\x61\x62\x01\x70\x00\x00\x03\x82\x80\x80\x80\x00\x01\x00\x09\x87\x80\x80\x80\x00\x01\x00\x41\x0a\x0b\x01\x00\x0a\x88\x80\x80\x80\x00\x01\x82\x80\x80\x80\x00\x00\x0b");
// linking.wast:252
assert_unlinkable("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x85\x80\x80\x80\x00\x01\x60\x00\x01\x7f\x02\x96\x80\x80\x80\x00\x02\x02\x4d\x74\x03\x74\x61\x62\x01\x70\x00\x0a\x02\x4d\x74\x03\x6d\x65\x6d\x02\x00\x01\x03\x82\x80\x80\x80\x00\x01\x00\x09\x8d\x80\x80\x80\x00\x02\x00\x41\x07\x0b\x01\x00\x00\x41\x09\x0b\x01\x00\x0a\x8a\x80\x80\x80\x00\x01\x84\x80\x80\x80\x00\x00\x41\x00\x0b");
// linking.wast:262
assert_trap(() => call($Mt, "call", [7]));
// linking.wast:266
// FIXME: replace this with assert_uninstantiable once reference-types will be enabled by defaul. https://bugs.webkit.org/show_bug.cgi?id=220456.
assert_unlinkable("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x85\x80\x80\x80\x00\x01\x60\x00\x01\x7f\x02\x8c\x80\x80\x80\x00\x01\x02\x4d\x74\x03\x74\x61\x62\x01\x70\x00\x0a\x03\x82\x80\x80\x80\x00\x01\x00\x09\x91\x80\x80\x80\x00\x02\x00\x41\x07\x0b\x01\x00\x00\x41\x08\x0b\x05\x00\x00\x00\x00\x00\x0a\x8a\x80\x80\x80\x00\x01\x84\x80\x80\x80\x00\x00\x41\x00\x0b");
// linking.wast:275
// FIXME: Don't work because of different exception policy. See for more info - https://bugs.webkit.org/show_bug.cgi?id=220313.
// assert_return(() => call($Mt, "call", [7]), 0);
// linking.wast:276
assert_trap(() => call($Mt, "call", [8]));
// linking.wast:278
// FIXME: replace this with assert_uninstantiable once reference-types will be enabled by defaul. https://bugs.webkit.org/show_bug.cgi?id=220456.
assert_unlinkable("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x85\x80\x80\x80\x00\x01\x60\x00\x01\x7f\x02\x8c\x80\x80\x80\x00\x01\x02\x4d\x74\x03\x74\x61\x62\x01\x70\x00\x0a\x03\x82\x80\x80\x80\x00\x01\x00\x05\x83\x80\x80\x80\x00\x01\x00\x01\x09\x87\x80\x80\x80\x00\x01\x00\x41\x07\x0b\x01\x00\x0a\x8a\x80\x80\x80\x00\x01\x84\x80\x80\x80\x00\x00\x41\x00\x0b\x0b\x89\x80\x80\x80\x00\x01\x00\x41\x80\x80\x04\x0b\x01\x64");
// linking.wast:288
// FIXME: Don't work because of different exception policy. See for more info - https://bugs.webkit.org/show_bug.cgi?id=220313.
// assert_return(() => call($Mt, "call", [7]), 0);
// linking.wast:291
let $14 = instance("\x00\x61\x73\x6d\x01\x00\x00\x00\x04\x87\x80\x80\x80\x00\x02\x70\x00\x01\x6f\x00\x01\x07\x95\x80\x80\x80\x00\x02\x06\x74\x2d\x66\x75\x6e\x63\x01\x00\x08\x74\x2d\x65\x78\x74\x65\x72\x6e\x01\x01");
let $Mtable_ex = $14;
// linking.wast:295
register("Mtable_ex", $Mtable_ex)
// linking.wast:297
let $15 = instance("\x00\x61\x73\x6d\x01\x00\x00\x00\x02\xad\x80\x80\x80\x00\x02\x09\x4d\x74\x61\x62\x6c\x65\x5f\x65\x78\x06\x74\x2d\x66\x75\x6e\x63\x01\x70\x00\x01\x09\x4d\x74\x61\x62\x6c\x65\x5f\x65\x78\x08\x74\x2d\x65\x78\x74\x65\x72\x6e\x01\x6f\x00\x01");
// linking.wast:302
assert_unlinkable("\x00\x61\x73\x6d\x01\x00\x00\x00\x02\x96\x80\x80\x80\x00\x01\x09\x4d\x74\x61\x62\x6c\x65\x5f\x65\x78\x06\x74\x2d\x66\x75\x6e\x63\x01\x6f\x00\x01");
// linking.wast:306
assert_unlinkable("\x00\x61\x73\x6d\x01\x00\x00\x00\x02\x98\x80\x80\x80\x00\x01\x09\x4d\x74\x61\x62\x6c\x65\x5f\x65\x78\x08\x74\x2d\x65\x78\x74\x65\x72\x6e\x01\x70\x00\x01");
// linking.wast:314
let $16 = instance("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x86\x80\x80\x80\x00\x01\x60\x01\x7f\x01\x7f\x03\x82\x80\x80\x80\x00\x01\x00\x05\x84\x80\x80\x80\x00\x01\x01\x01\x05\x07\x8e\x80\x80\x80\x00\x02\x03\x6d\x65\x6d\x02\x00\x04\x6c\x6f\x61\x64\x00\x00\x0a\x8d\x80\x80\x80\x00\x01\x87\x80\x80\x80\x00\x00\x20\x00\x2d\x00\x00\x0b\x0b\x90\x80\x80\x80\x00\x01\x00\x41\x0a\x0b\x0a\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09");
let $Mm = $16;
// linking.wast:322
register("Mm", $Mm)
// linking.wast:324
let $17 = instance("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x86\x80\x80\x80\x00\x01\x60\x01\x7f\x01\x7f\x02\x8b\x80\x80\x80\x00\x01\x02\x4d\x6d\x04\x6c\x6f\x61\x64\x00\x00\x03\x82\x80\x80\x80\x00\x01\x00\x05\x83\x80\x80\x80\x00\x01\x00\x01\x07\x92\x80\x80\x80\x00\x02\x07\x4d\x6d\x2e\x6c\x6f\x61\x64\x00\x00\x04\x6c\x6f\x61\x64\x00\x01\x0a\x8d\x80\x80\x80\x00\x01\x87\x80\x80\x80\x00\x00\x20\x00\x2d\x00\x00\x0b\x0b\x8c\x80\x80\x80\x00\x01\x00\x41\x0a\x0b\x06\xf0\xf1\xf2\xf3\xf4\xf5");
let $Nm = $17;
// linking.wast:336
assert_return(() => call($Mm, "load", [12]), 2);
// linking.wast:337
assert_return(() => call($Nm, "Mm.load", [12]), 2);
// linking.wast:338
assert_return(() => call($Nm, "load", [12]), 242);
// linking.wast:340
let $18 = instance("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x86\x80\x80\x80\x00\x01\x60\x01\x7f\x01\x7f\x02\x8b\x80\x80\x80\x00\x01\x02\x4d\x6d\x03\x6d\x65\x6d\x02\x00\x01\x03\x82\x80\x80\x80\x00\x01\x00\x07\x88\x80\x80\x80\x00\x01\x04\x6c\x6f\x61\x64\x00\x00\x0a\x8d\x80\x80\x80\x00\x01\x87\x80\x80\x80\x00\x00\x20\x00\x2d\x00\x00\x0b\x0b\x8e\x80\x80\x80\x00\x01\x00\x41\x05\x0b\x08\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7");
let $Om = $18;
// linking.wast:349
assert_return(() => call($Mm, "load", [12]), 167);
// linking.wast:350
assert_return(() => call($Nm, "Mm.load", [12]), 167);
// linking.wast:351
assert_return(() => call($Nm, "load", [12]), 242);
// linking.wast:352
assert_return(() => call($Om, "load", [12]), 167);
// linking.wast:354
let $19 = instance("\x00\x61\x73\x6d\x01\x00\x00\x00\x02\x8b\x80\x80\x80\x00\x01\x02\x4d\x6d\x03\x6d\x65\x6d\x02\x00\x00\x0b\x89\x80\x80\x80\x00\x01\x00\x41\xff\xff\x03\x0b\x01\x61");
// linking.wast:359
// FIXME: replace this with assert_uninstantiable once reference-types will be enabled by defaul. https://bugs.webkit.org/show_bug.cgi?id=220456.
assert_unlinkable("\x00\x61\x73\x6d\x01\x00\x00\x00\x02\x8b\x80\x80\x80\x00\x01\x02\x4d\x6d\x03\x6d\x65\x6d\x02\x00\x00\x0b\x89\x80\x80\x80\x00\x01\x00\x41\x80\x80\x04\x0b\x01\x61");
// linking.wast:367
let $20 = instance("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x86\x80\x80\x80\x00\x01\x60\x01\x7f\x01\x7f\x02\x8c\x80\x80\x80\x00\x01\x02\x4d\x6d\x03\x6d\x65\x6d\x02\x01\x01\x08\x03\x82\x80\x80\x80\x00\x01\x00\x07\x88\x80\x80\x80\x00\x01\x04\x67\x72\x6f\x77\x00\x00\x0a\x8c\x80\x80\x80\x00\x01\x86\x80\x80\x80\x00\x00\x20\x00\x40\x00\x0b");
let $Pm = $20;
// linking.wast:375
assert_return(() => call($Pm, "grow", [0]), 1);
// linking.wast:376
assert_return(() => call($Pm, "grow", [2]), 1);
// linking.wast:377
assert_return(() => call($Pm, "grow", [0]), 3);
// linking.wast:378
assert_return(() => call($Pm, "grow", [1]), 3);
// linking.wast:379
assert_return(() => call($Pm, "grow", [1]), 4);
// linking.wast:380
assert_return(() => call($Pm, "grow", [0]), 5);
// linking.wast:381
assert_return(() => call($Pm, "grow", [1]), -1);
// linking.wast:382
assert_return(() => call($Pm, "grow", [0]), 5);
// linking.wast:384
assert_unlinkable("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x84\x80\x80\x80\x00\x01\x60\x00\x00\x02\xa7\x80\x80\x80\x00\x03\x08\x73\x70\x65\x63\x74\x65\x73\x74\x05\x70\x72\x69\x6e\x74\x00\x00\x02\x4d\x6d\x03\x6d\x65\x6d\x02\x00\x01\x02\x4d\x6d\x03\x74\x61\x62\x01\x70\x00\x00\x0b\x89\x80\x80\x80\x00\x01\x00\x41\x00\x0b\x03\x61\x62\x63");
// linking.wast:393
assert_return(() => call($Mm, "load", [0]), 0);
// linking.wast:397
// FIXME: replace this with assert_uninstantiable once reference-types will be enabled by defaul. https://bugs.webkit.org/show_bug.cgi?id=220456.
assert_unlinkable("\x00\x61\x73\x6d\x01\x00\x00\x00\x02\x8b\x80\x80\x80\x00\x01\x02\x4d\x6d\x03\x6d\x65\x6d\x02\x00\x01\x0b\xa2\x80\x80\x80\x00\x02\x00\x41\x00\x0b\x03\x61\x62\x63\x00\x41\xf6\xff\x13\x0b\x12\x7a\x7a\x7a\x7a\x7a\x7a\x7a\x7a\x7a\x7a\x7a\x7a\x7a\x7a\x7a\x7a\x7a\x7a");
// linking.wast:406
// FIXME: Don't work because of different exception policy. See for more info - https://bugs.webkit.org/show_bug.cgi?id=220313.
// assert_return(() => call($Mm, "load", [0]), 97);
// linking.wast:407
assert_return(() => call($Mm, "load", [327_670]), 0);
// linking.wast:409
// FIXME: replace this with assert_uninstantiable once reference-types will be enabled by defaul. https://bugs.webkit.org/show_bug.cgi?id=220456.
assert_unlinkable("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x84\x80\x80\x80\x00\x01\x60\x00\x00\x02\x8b\x80\x80\x80\x00\x01\x02\x4d\x6d\x03\x6d\x65\x6d\x02\x00\x01\x03\x82\x80\x80\x80\x00\x01\x00\x04\x84\x80\x80\x80\x00\x01\x70\x00\x00\x09\x87\x80\x80\x80\x00\x01\x00\x41\x00\x0b\x01\x00\x0a\x88\x80\x80\x80\x00\x01\x82\x80\x80\x80\x00\x00\x0b\x0b\x89\x80\x80\x80\x00\x01\x00\x41\x00\x0b\x03\x61\x62\x63");
// linking.wast:419
// FIXME: Don't work because of different exception policy. See for more info - https://bugs.webkit.org/show_bug.cgi?id=220313.
// assert_return(() => call($Mm, "load", [0]), 97);
// linking.wast:422
let $21 = instance("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x85\x80\x80\x80\x00\x01\x60\x00\x01\x7f\x03\x83\x80\x80\x80\x00\x02\x00\x00\x04\x84\x80\x80\x80\x00\x01\x70\x00\x01\x05\x83\x80\x80\x80\x00\x01\x00\x01\x07\xb1\x80\x80\x80\x00\x04\x06\x6d\x65\x6d\x6f\x72\x79\x02\x00\x05\x74\x61\x62\x6c\x65\x01\x00\x0d\x67\x65\x74\x20\x6d\x65\x6d\x6f\x72\x79\x5b\x30\x5d\x00\x00\x0c\x67\x65\x74\x20\x74\x61\x62\x6c\x65\x5b\x30\x5d\x00\x01\x0a\x99\x80\x80\x80\x00\x02\x87\x80\x80\x80\x00\x00\x41\x00\x2d\x00\x00\x0b\x87\x80\x80\x80\x00\x00\x41\x00\x11\x00\x00\x0b");
let $Ms = $21;
// linking.wast:433
register("Ms", $Ms)
// linking.wast:435
assert_uninstantiable("\x00\x61\x73\x6d\x01\x00\x00\x00\x01\x88\x80\x80\x80\x00\x02\x60\x00\x01\x7f\x60\x00\x00\x02\x9b\x80\x80\x80\x00\x02\x02\x4d\x73\x06\x6d\x65\x6d\x6f\x72\x79\x02\x00\x01\x02\x4d\x73\x05\x74\x61\x62\x6c\x65\x01\x70\x00\x01\x03\x83\x80\x80\x80\x00\x02\x00\x01\x08\x81\x80\x80\x80\x00\x01\x09\x87\x80\x80\x80\x00\x01\x00\x41\x00\x0b\x01\x00\x0a\x94\x80\x80\x80\x00\x02\x86\x80\x80\x80\x00\x00\x41\xad\xbd\x03\x0b\x83\x80\x80\x80\x00\x00\x00\x0b\x0b\x8b\x80\x80\x80\x00\x01\x00\x41\x00\x0b\x05\x68\x65\x6c\x6c\x6f");
// linking.wast:452
assert_return(() => call($Ms, "get memory[0]", []), 104);
// linking.wast:453
assert_return(() => call($Ms, "get table[0]", []), 57_005);