diff --git a/tests/expectations/compiler/address/binary.out b/tests/expectations/compiler/address/binary.out new file mode 100644 index 0000000000..e53752d856 --- /dev/null +++ b/tests/expectations/compiler/address/binary.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: af4bf950a53dee2547324d1d139661bc2f881f1a7e9941fe34a85b3745c6958d + unrolled_ast: af4bf950a53dee2547324d1d139661bc2f881f1a7e9941fe34a85b3745c6958d + ssa_ast: 71af510447b440ecf9517b244604dead0fb36905201d7205e1da396acd0de0fe + flattened_ast: 5b0842e447b4e1f92f4bcd22824ed5e12c51c8db145d1541763d10ad3dc1f37a + inlined_ast: 5b0842e447b4e1f92f4bcd22824ed5e12c51c8db145d1541763d10ad3dc1f37a + dce_ast: 946b0fe81e942060d870c228afb1a31c42501fb8f9c481d35d7908b226af5cbe + bytecode: 31bab7a79a7dfdfbcd4a7a3f26cd813b48d7c1438dec3fd4905a81845161dba1 diff --git a/tests/expectations/compiler/address/branch.out b/tests/expectations/compiler/address/branch.out new file mode 100644 index 0000000000..26ffbc17f4 --- /dev/null +++ b/tests/expectations/compiler/address/branch.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: b45e54f18036a13051f622f2d8230240aaee77231e39a1b7cdb196615fb4829e + unrolled_ast: b45e54f18036a13051f622f2d8230240aaee77231e39a1b7cdb196615fb4829e + ssa_ast: 0d44a08f0cace01d86fec36ea409e6424ff21f9ee8834f53062569af8c35579e + flattened_ast: c1b6954bff1ce18c0bb3be1cd6392a554a15989c90939c99e375221b1003e3b7 + inlined_ast: c1b6954bff1ce18c0bb3be1cd6392a554a15989c90939c99e375221b1003e3b7 + dce_ast: c1b6954bff1ce18c0bb3be1cd6392a554a15989c90939c99e375221b1003e3b7 + bytecode: b192f4b7f52da46a22cec3aec7e8c14b6e3fad7c40b9d0c0990255902fb596ef diff --git a/tests/expectations/compiler/address/equal.out b/tests/expectations/compiler/address/equal.out new file mode 100644 index 0000000000..534c9b88c7 --- /dev/null +++ b/tests/expectations/compiler/address/equal.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 439fd89a480274e3cf43dbc8e9ebc50188b2dc6288fa2ce7da9d8c0211fae8ec + unrolled_ast: 439fd89a480274e3cf43dbc8e9ebc50188b2dc6288fa2ce7da9d8c0211fae8ec + ssa_ast: 96122b72b05f839341f0f808bf47523fc976c219e1284c2fad253ebc159d84ff + flattened_ast: f9458e7824444415aa9f3feec4924461f49dee915429e63dec244806d3812722 + inlined_ast: f9458e7824444415aa9f3feec4924461f49dee915429e63dec244806d3812722 + dce_ast: f9458e7824444415aa9f3feec4924461f49dee915429e63dec244806d3812722 + bytecode: 4903abf35d22e4264aae4bf26b908108d11d981d069c247793cea817dd8851a7 diff --git a/tests/expectations/compiler/address/gt_fail.out b/tests/expectations/compiler/address/gt_fail.out new file mode 100644 index 0000000000..43f1c5982a --- /dev/null +++ b/tests/expectations/compiler/address/gt_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372021]: Comparison `>` is not supported for the address type.\n --> compiler-test:7:16\n |\n 7 | return x > sender;\n | ^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/address/gte_fail.out b/tests/expectations/compiler/address/gte_fail.out new file mode 100644 index 0000000000..ee6d6d83c7 --- /dev/null +++ b/tests/expectations/compiler/address/gte_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372021]: Comparison `>=` is not supported for the address type.\n --> compiler-test:7:16\n |\n 7 | return x >= sender;\n | ^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/address/lt_fail.out b/tests/expectations/compiler/address/lt_fail.out new file mode 100644 index 0000000000..e1dd67e77b --- /dev/null +++ b/tests/expectations/compiler/address/lt_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372021]: Comparison `<` is not supported for the address type.\n --> compiler-test:7:16\n |\n 7 | return x < sender;\n | ^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/address/lte_fail.out b/tests/expectations/compiler/address/lte_fail.out new file mode 100644 index 0000000000..7a78b46e56 --- /dev/null +++ b/tests/expectations/compiler/address/lte_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372021]: Comparison `<=` is not supported for the address type.\n --> compiler-test:7:16\n |\n 7 | return x <= sender;\n | ^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/address/ternary.out b/tests/expectations/compiler/address/ternary.out new file mode 100644 index 0000000000..1158672a87 --- /dev/null +++ b/tests/expectations/compiler/address/ternary.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 08283a817bc0589f8382ac381dea3345b55a4a04c87b1ad743e4ce05d2439ac4 + unrolled_ast: 08283a817bc0589f8382ac381dea3345b55a4a04c87b1ad743e4ce05d2439ac4 + ssa_ast: 6b09114518e99d698d0709d7b78fb8fa521e87cc98eb32af8898b344cd611b6d + flattened_ast: 1041763865cf86407bf30dae2b003ec9094e91e79c3e5b493b54fbd67cdd8f24 + inlined_ast: 1041763865cf86407bf30dae2b003ec9094e91e79c3e5b493b54fbd67cdd8f24 + dce_ast: 1041763865cf86407bf30dae2b003ec9094e91e79c3e5b493b54fbd67cdd8f24 + bytecode: 5cbdf4a6a290f80540d2653153c57495eaf45432bc7ce44d52af2b5d0594951c diff --git a/tests/expectations/compiler/boolean/and.out b/tests/expectations/compiler/boolean/and.out new file mode 100644 index 0000000000..0885b73904 --- /dev/null +++ b/tests/expectations/compiler/boolean/and.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 800f83913bb57aac57e0574c67deda923814503eaa812fb82280a7ffd64f038f + unrolled_ast: 800f83913bb57aac57e0574c67deda923814503eaa812fb82280a7ffd64f038f + ssa_ast: e0015762d1fb228999fd2ef236fae8fcf8bd6e6bbd0ce37fad230a708ca063d2 + flattened_ast: 4e7759584ade51a19ff90284e5ee1ac91af6dad5cd966568b708ead553a8a4bd + inlined_ast: 4e7759584ade51a19ff90284e5ee1ac91af6dad5cd966568b708ead553a8a4bd + dce_ast: 4e7759584ade51a19ff90284e5ee1ac91af6dad5cd966568b708ead553a8a4bd + bytecode: e3deaf24a91bcb77628f7af29d4ad6d0ba67215617d6cfe753168543123ce7d2 diff --git a/tests/expectations/compiler/boolean/conditional.out b/tests/expectations/compiler/boolean/conditional.out new file mode 100644 index 0000000000..9e8451feff --- /dev/null +++ b/tests/expectations/compiler/boolean/conditional.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 080edd413ce668be563c96e2625ba86d935b529a25ff2d009a41c36d63e90867 + unrolled_ast: 080edd413ce668be563c96e2625ba86d935b529a25ff2d009a41c36d63e90867 + ssa_ast: 42925975f1f91dc72941e3c018d6c0595824086f50fa5e6398f21649a57c6661 + flattened_ast: de891bab08a157399fdceeeccc7c3d4fd70cc3f75d1ca694a4fcd0344fdaac20 + inlined_ast: de891bab08a157399fdceeeccc7c3d4fd70cc3f75d1ca694a4fcd0344fdaac20 + dce_ast: de891bab08a157399fdceeeccc7c3d4fd70cc3f75d1ca694a4fcd0344fdaac20 + bytecode: d0d3f79c32e6cb17c98afa2f1d4861d0f71d7f805a87712b3491ef0a9e1b4892 diff --git a/tests/expectations/compiler/boolean/equal.out b/tests/expectations/compiler/boolean/equal.out new file mode 100644 index 0000000000..a2dd01024b --- /dev/null +++ b/tests/expectations/compiler/boolean/equal.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: ad12566d0b8f3bef282b67823b427a74e56acbcc34acaa4f939097fb451ea7d9 + unrolled_ast: ad12566d0b8f3bef282b67823b427a74e56acbcc34acaa4f939097fb451ea7d9 + ssa_ast: 453e77387be9254ded9019b6c362721f766ebf5a5b2d3604e51ae81452fac4e8 + flattened_ast: b39344c70e1a23869b236146ace198addf0801b348deedfb3e4ff1e3c4ace904 + inlined_ast: b39344c70e1a23869b236146ace198addf0801b348deedfb3e4ff1e3c4ace904 + dce_ast: b39344c70e1a23869b236146ace198addf0801b348deedfb3e4ff1e3c4ace904 + bytecode: e742ac3b95a8971f2018963aba6d915ea53205c21443d0b11ad52a42ad443b97 diff --git a/tests/expectations/compiler/boolean/not_equal.out b/tests/expectations/compiler/boolean/not_equal.out new file mode 100644 index 0000000000..4a9ddae664 --- /dev/null +++ b/tests/expectations/compiler/boolean/not_equal.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 5c885cc9e6d5df3602e09f7b53cb49ee4bca3a57d647044d4d321de32c4cdd90 + unrolled_ast: 5c885cc9e6d5df3602e09f7b53cb49ee4bca3a57d647044d4d321de32c4cdd90 + ssa_ast: 211f4122a90e6a117dc4fe2e7ca3c3e21bdc09a4c7992b212b6c34c283e896f6 + flattened_ast: 84fd34b95b75f6d72b28164a9cb2ac80fa4149564c8c187b0ead1e14d2299a63 + inlined_ast: 84fd34b95b75f6d72b28164a9cb2ac80fa4149564c8c187b0ead1e14d2299a63 + dce_ast: 84fd34b95b75f6d72b28164a9cb2ac80fa4149564c8c187b0ead1e14d2299a63 + bytecode: 1db874ad15d9bb70df7372ed3250cc6d0f65992e17788cd90c656ef1e1ceb63e diff --git a/tests/expectations/compiler/boolean/operator_methods.out b/tests/expectations/compiler/boolean/operator_methods.out new file mode 100644 index 0000000000..30b2409f3f --- /dev/null +++ b/tests/expectations/compiler/boolean/operator_methods.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 3fda93baba12b9f280ffad75a662dfd16def0a7a1414de4cd29aa0e5afff85cc + unrolled_ast: 3fda93baba12b9f280ffad75a662dfd16def0a7a1414de4cd29aa0e5afff85cc + ssa_ast: 0ae9482705f95c26507f0040b972c76267a30eaa265f95764c758613d841932b + flattened_ast: 1e61c9d9ccdae7fb4aed4d7332538438839bef08a322f52fabcf46eac7bfc9c8 + inlined_ast: 1e61c9d9ccdae7fb4aed4d7332538438839bef08a322f52fabcf46eac7bfc9c8 + dce_ast: ab80f3a28ba9de58b165074c3ffae7e5be48e721bf17219252cecc0a6fb8b6e4 + bytecode: fedea8c873d237103657ba0902968bf5be3e854c95b2720b28fda529c5b87ff1 diff --git a/tests/expectations/compiler/boolean/or.out b/tests/expectations/compiler/boolean/or.out new file mode 100644 index 0000000000..f69b521b63 --- /dev/null +++ b/tests/expectations/compiler/boolean/or.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 3281347d18634932dba7502590f4ed0a45e15205fecdfb11846a1ac9de0a7c10 + unrolled_ast: 3281347d18634932dba7502590f4ed0a45e15205fecdfb11846a1ac9de0a7c10 + ssa_ast: f1ecffe7065e9782af5bf452b6ea547bfb5026a4c56e0c3105077c85ce196216 + flattened_ast: cf5034c292702654bd282c10c8d1abafed8ed328f8e6cd0a01b286438809afd5 + inlined_ast: cf5034c292702654bd282c10c8d1abafed8ed328f8e6cd0a01b286438809afd5 + dce_ast: cf5034c292702654bd282c10c8d1abafed8ed328f8e6cd0a01b286438809afd5 + bytecode: e859520fd52dbdf69b14a3c3d9bad64bf6165084fb949912224eda3ccab9b638 diff --git a/tests/expectations/compiler/console/assert.out b/tests/expectations/compiler/console/assert.out new file mode 100644 index 0000000000..347000e44c --- /dev/null +++ b/tests/expectations/compiler/console/assert.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 75a36838e40b40528abbeb2a752b51db98a9eb6537aa3ec5d812a0e0ce3c64b9 + unrolled_ast: 75a36838e40b40528abbeb2a752b51db98a9eb6537aa3ec5d812a0e0ce3c64b9 + ssa_ast: 0c66a00da3384b853fd83ecb3747abf1101af0c39849fd75af793a68537f714d + flattened_ast: 7a2b73a748d86babab5ca7a4f9e513cfd028dcbadc7df8baeb7774ffb54c1b43 + inlined_ast: 7a2b73a748d86babab5ca7a4f9e513cfd028dcbadc7df8baeb7774ffb54c1b43 + dce_ast: 7a2b73a748d86babab5ca7a4f9e513cfd028dcbadc7df8baeb7774ffb54c1b43 + bytecode: fdc5659b97d4dbfea710ca848dcffa29bcd4da3a7a54739fb916e5292284a1a4 diff --git a/tests/expectations/compiler/console/assert_fail.out b/tests/expectations/compiler/console/assert_fail.out new file mode 100644 index 0000000000..75f74f166e --- /dev/null +++ b/tests/expectations/compiler/console/assert_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected , -- found ')'\n --> compiler-test:6:27\n |\n 6 | assert_eq(a == 1u8);\n | ^" diff --git a/tests/expectations/compiler/console/conditional_assert.out b/tests/expectations/compiler/console/conditional_assert.out new file mode 100644 index 0000000000..4bec775cfc --- /dev/null +++ b/tests/expectations/compiler/console/conditional_assert.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: c97efd0956a3c8d6a511b38d61f3f3bdd34d95ad2f78242d2816c723d1676997 + unrolled_ast: c97efd0956a3c8d6a511b38d61f3f3bdd34d95ad2f78242d2816c723d1676997 + ssa_ast: 0a690ca166cfd10c1b57d3df756032f10b003cc0d006bf27f41901b6af2ce95e + flattened_ast: 083a9af2e592de0c827b15230cd2307daae4b90e324e35714f474d50cbb59162 + inlined_ast: 083a9af2e592de0c827b15230cd2307daae4b90e324e35714f474d50cbb59162 + dce_ast: 083a9af2e592de0c827b15230cd2307daae4b90e324e35714f474d50cbb59162 + bytecode: 9006475518263541b3a855db6907377b638ef28f2a44caf4e26db7991c3b58ef diff --git a/tests/expectations/compiler/core/algorithms/bhp1024_commit.out b/tests/expectations/compiler/core/algorithms/bhp1024_commit.out new file mode 100644 index 0000000000..ca0d28e407 --- /dev/null +++ b/tests/expectations/compiler/core/algorithms/bhp1024_commit.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 91862d403b538c1100f31dc5979ffee097a3c71173315bda9b00e2b2fbd246cb + unrolled_ast: 91862d403b538c1100f31dc5979ffee097a3c71173315bda9b00e2b2fbd246cb + ssa_ast: 869edce87a429184f914c6ff72592de2e8dc1395f8b413237857c4111a796d39 + flattened_ast: a2b862ac405e65f5dd9258cff25237c23ea457bfa8b5c449da49248d326f28d0 + inlined_ast: a2b862ac405e65f5dd9258cff25237c23ea457bfa8b5c449da49248d326f28d0 + dce_ast: df34074e0922066553939fcbf28b572addaaf4bcd83f6cd42222780f1ec6622b + bytecode: ba841e355e57f9ad4c4a01b358d4e21d960453a5f0590715b16544c7cdde20b4 diff --git a/tests/expectations/compiler/core/algorithms/bhp1024_hash.out b/tests/expectations/compiler/core/algorithms/bhp1024_hash.out new file mode 100644 index 0000000000..3365037b18 --- /dev/null +++ b/tests/expectations/compiler/core/algorithms/bhp1024_hash.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 3264d91e7918b4576be9b02519ad678de98bd28789f866076a2db87f8bf6de13 + unrolled_ast: 3264d91e7918b4576be9b02519ad678de98bd28789f866076a2db87f8bf6de13 + ssa_ast: bc7b8721cbfb437ea6eb609ec335e9e22ddabb3f9240488801f9f193cf14b403 + flattened_ast: b237061bd9ae5a830947d80f051bbee4e7ced839dee6a1fb28f868aa3c7a4537 + inlined_ast: b237061bd9ae5a830947d80f051bbee4e7ced839dee6a1fb28f868aa3c7a4537 + dce_ast: c67c332f52173ca72aa22ee4a365ce953f9b4f18767ecaba69bd2c7184a0fafe + bytecode: 4f6a5b2268ffc7810d1d7fca88c7d7ec7c92b080fc2c752e3faf737f37a58e64 diff --git a/tests/expectations/compiler/core/algorithms/bhp256_commit.out b/tests/expectations/compiler/core/algorithms/bhp256_commit.out new file mode 100644 index 0000000000..57c285ce67 --- /dev/null +++ b/tests/expectations/compiler/core/algorithms/bhp256_commit.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: f7ace4c6722a161a5d16489b3e0fa4734bae59f500fbe619bcade17e3cb559e7 + unrolled_ast: f7ace4c6722a161a5d16489b3e0fa4734bae59f500fbe619bcade17e3cb559e7 + ssa_ast: 649adcba3bd743536eab0aaf9d81ca0b72911c7b9b5d83f23c73a481102c36e0 + flattened_ast: 133fcd28e2d6767664071a0af992bc9601e481ac2ea9f17faf624f144c43bc4b + inlined_ast: 133fcd28e2d6767664071a0af992bc9601e481ac2ea9f17faf624f144c43bc4b + dce_ast: 3df14b9911324d85dd9f114e9db7ebb9f163f5dbac6669c033431c01b44758e0 + bytecode: d323d7074e8595ad95520b70580a5c41a57541aac1eb7aa680e674fb699f90ed diff --git a/tests/expectations/compiler/core/algorithms/bhp256_hash.out b/tests/expectations/compiler/core/algorithms/bhp256_hash.out new file mode 100644 index 0000000000..98079cf464 --- /dev/null +++ b/tests/expectations/compiler/core/algorithms/bhp256_hash.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: fae17dce96224c854538e0acdd1d2ccfd1755aec4e48913d67febd5155025f32 + unrolled_ast: fae17dce96224c854538e0acdd1d2ccfd1755aec4e48913d67febd5155025f32 + ssa_ast: c5ef5cf3a66b8fd09c4fb651bec9feec382af6aa025ca54f2514fcba1b781d30 + flattened_ast: 3dab7bf9e471da6c3f524c510c64c6b5a8850ea4e4b644f3a5513c9d5fcf622a + inlined_ast: 3dab7bf9e471da6c3f524c510c64c6b5a8850ea4e4b644f3a5513c9d5fcf622a + dce_ast: e0a7d58415cc69357806e74261e06204cbadbdd6acbecf3c80c7abd3a77be1f1 + bytecode: a838bb972d5c9fab64c81f1c874d90795edc4a6385b524fcf6f90d8513e2a05b diff --git a/tests/expectations/compiler/core/algorithms/bhp512_commit.out b/tests/expectations/compiler/core/algorithms/bhp512_commit.out new file mode 100644 index 0000000000..434fccb5ad --- /dev/null +++ b/tests/expectations/compiler/core/algorithms/bhp512_commit.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: ddc90f881ec1f45741301812d26aabd1901d0d471d6448e96737b5c9e3851ab3 + unrolled_ast: ddc90f881ec1f45741301812d26aabd1901d0d471d6448e96737b5c9e3851ab3 + ssa_ast: 7dccc1dc94e6b05557cdf294945513116856f6dd7c6e0c8b46b1089d453188bd + flattened_ast: ff3db8d357defae10ab07f35aa1df3b84dddad1453da60463c97cf1f61492147 + inlined_ast: ff3db8d357defae10ab07f35aa1df3b84dddad1453da60463c97cf1f61492147 + dce_ast: f86eaa7fc6bf849868a5f9f0279889c7429c98413ff38d2f8667f74a55d9ebb9 + bytecode: 12b55db95d5f6e760a8ebb0604264fb1b09b771d247d093eaed4dec8c28a579b diff --git a/tests/expectations/compiler/core/algorithms/bhp512_hash.out b/tests/expectations/compiler/core/algorithms/bhp512_hash.out new file mode 100644 index 0000000000..ca4b22a779 --- /dev/null +++ b/tests/expectations/compiler/core/algorithms/bhp512_hash.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 4fe2842db5a366b9cc40a7d61e5f601471ab00369d754eeb06c63063b166eb0b + unrolled_ast: 4fe2842db5a366b9cc40a7d61e5f601471ab00369d754eeb06c63063b166eb0b + ssa_ast: 907da2b9128857218e5c3a6f94e66f6fea60002fb84edfc152737a02cf7dacd1 + flattened_ast: 75c3f273bfeb27f285138e30b1cbc97f1b45d310dd8bd59278bea1c44ae66f6b + inlined_ast: 75c3f273bfeb27f285138e30b1cbc97f1b45d310dd8bd59278bea1c44ae66f6b + dce_ast: 5ffda7837ed85713d10352862a479bfb31165902a21de31c849c25cfb8e6657a + bytecode: fca69f7905d164b970b57988810e4629b009cdbfc1ad5952459ef579a40b616c diff --git a/tests/expectations/compiler/core/algorithms/bhp768_commit.out b/tests/expectations/compiler/core/algorithms/bhp768_commit.out new file mode 100644 index 0000000000..7a92e6650e --- /dev/null +++ b/tests/expectations/compiler/core/algorithms/bhp768_commit.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: d70daf2abc3e9a8ba4424c3c370c2037c973e05c2048ed0dc1d7ff72f14bc60a + unrolled_ast: d70daf2abc3e9a8ba4424c3c370c2037c973e05c2048ed0dc1d7ff72f14bc60a + ssa_ast: 782104fd26bd70f18b2a7baedd9594ffa0c7879e0a8e9fdfd8e66f03b51102c6 + flattened_ast: 8e4b0058f7016f503300ac68760852dff28900eaa79215926464b924665ebcb6 + inlined_ast: 8e4b0058f7016f503300ac68760852dff28900eaa79215926464b924665ebcb6 + dce_ast: efdd14f5229f37fcf190afeecde9c42699a7a936c219cb6f90be3b31cbf5bb87 + bytecode: ed946f317a1fbdd2a8f9a2274d8cb72326308007df1d2f02d82893fe00453844 diff --git a/tests/expectations/compiler/core/algorithms/bhp768_hash.out b/tests/expectations/compiler/core/algorithms/bhp768_hash.out new file mode 100644 index 0000000000..7bcb12a0e3 --- /dev/null +++ b/tests/expectations/compiler/core/algorithms/bhp768_hash.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 8a14b07c6c839a99d03dd0500335bda9fd2b8deec52b42edaf4ddf3aa3735037 + unrolled_ast: 8a14b07c6c839a99d03dd0500335bda9fd2b8deec52b42edaf4ddf3aa3735037 + ssa_ast: ea512a03053a33e37bb817d6c4592043329e98e1f9a115fd101d74ccd239e2c2 + flattened_ast: 68fd19aa7e43e46b9ffa4f23e518e0b3d818b9ad10f8521c3be324241fb36521 + inlined_ast: 68fd19aa7e43e46b9ffa4f23e518e0b3d818b9ad10f8521c3be324241fb36521 + dce_ast: 898d04af13dec567b07cfea58295650ffc76b709d617c7545632ebc6a550aefd + bytecode: 15c8e5674fa814192d9b8f836c92615685079bf9fb97bbfca8e3d5ca836a1cdf diff --git a/tests/expectations/compiler/core/algorithms/pedersen128_commit.out b/tests/expectations/compiler/core/algorithms/pedersen128_commit.out new file mode 100644 index 0000000000..4866191a9c --- /dev/null +++ b/tests/expectations/compiler/core/algorithms/pedersen128_commit.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: c57c36b9b59e05c91849e91969a79474d5fcb49d284be8140ffaac4746ae7191 + unrolled_ast: c57c36b9b59e05c91849e91969a79474d5fcb49d284be8140ffaac4746ae7191 + ssa_ast: 586af29b0b79edf5f19a4bd494d8428f22a87f851119d7f74eab9b535810468d + flattened_ast: f72217bcb7185ae66114addb89c1bcf61da6ff200ece88309aa50dc3f5ebefd9 + inlined_ast: f72217bcb7185ae66114addb89c1bcf61da6ff200ece88309aa50dc3f5ebefd9 + dce_ast: d5dad9bef9df7ffdf27685563189b9900543e153761cf5ded8e16a58b48dd07b + bytecode: 52babd5fc1693c9b41d1f8e26d7c5c91f27c9409c8a49c56374c14f068a69715 diff --git a/tests/expectations/compiler/core/algorithms/pedersen128_hash.out b/tests/expectations/compiler/core/algorithms/pedersen128_hash.out new file mode 100644 index 0000000000..af6f4ec101 --- /dev/null +++ b/tests/expectations/compiler/core/algorithms/pedersen128_hash.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: c00a32cd00345e923e87dcd16427c9f2ec733022431e38cceefbb5ab6143b161 + unrolled_ast: c00a32cd00345e923e87dcd16427c9f2ec733022431e38cceefbb5ab6143b161 + ssa_ast: 29ecb3770403a15ee05a695260ebc6f7b8e313b4614e3a1f06de34b4d03ff147 + flattened_ast: 9711e4d72e2e9e85b24e3b4b3e73cc939a05a5846733c0eb15dab5c5b54a054a + inlined_ast: 9711e4d72e2e9e85b24e3b4b3e73cc939a05a5846733c0eb15dab5c5b54a054a + dce_ast: 3a8d12872135e283b8f21c4207fa37fe7969ea75b810aa227aeeca69c90a1a5a + bytecode: 2dd437da2efd160fbba1cb573e9ac61d046ff0afbbffd8f98fa1aebefdde98c5 diff --git a/tests/expectations/compiler/core/algorithms/pedersen64_commit.out b/tests/expectations/compiler/core/algorithms/pedersen64_commit.out new file mode 100644 index 0000000000..67e81ff279 --- /dev/null +++ b/tests/expectations/compiler/core/algorithms/pedersen64_commit.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 4eaa587c05eb4f4a65f33d94cd12a1ce47a55263726b7619578846c620735b3d + unrolled_ast: 4eaa587c05eb4f4a65f33d94cd12a1ce47a55263726b7619578846c620735b3d + ssa_ast: 3e1a3d03f465a60b2ceb2fc480551d9d498beb758a6b378ae6558117ec2955a7 + flattened_ast: 2448c3c0819a99113f4acb509371009619592a984911b836f9787a386cf1e617 + inlined_ast: 2448c3c0819a99113f4acb509371009619592a984911b836f9787a386cf1e617 + dce_ast: 0fd6329efebd5d284865f633a0459df53b14e8cee46ba18004ac90038c79b856 + bytecode: c4131bb0900a47f3b000722e7218a8b030927e34f2952bed289bc5fe6437a995 diff --git a/tests/expectations/compiler/core/algorithms/pedersen64_hash.out b/tests/expectations/compiler/core/algorithms/pedersen64_hash.out new file mode 100644 index 0000000000..361b5869ef --- /dev/null +++ b/tests/expectations/compiler/core/algorithms/pedersen64_hash.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 8693aac7091d75fe65a52352decb2ce24e225dae9396cb45809575f7c3cbd8d9 + unrolled_ast: 8693aac7091d75fe65a52352decb2ce24e225dae9396cb45809575f7c3cbd8d9 + ssa_ast: 5a33864a3f91c0d4a63171ed36ef709b7e75593a3181b4ed3f11be873ce2b9a2 + flattened_ast: 8a13f93c69d995ea32ab518a4287d77dd9e37e4e1f15fd257361c58a0f853e7b + inlined_ast: 8a13f93c69d995ea32ab518a4287d77dd9e37e4e1f15fd257361c58a0f853e7b + dce_ast: dd061aec3f3a5e3ae3ee930dcdf543adc041f27d5c9d3004f43deff18c3e68ee + bytecode: 39222c7508c1ea4a59a42f8a65904f2ec657bbb2d3e8d750a7a475816a2bc2b6 diff --git a/tests/expectations/compiler/core/algorithms/pedersen_fail.out b/tests/expectations/compiler/core/algorithms/pedersen_fail.out new file mode 100644 index 0000000000..6325790844 --- /dev/null +++ b/tests/expectations/compiler/core/algorithms/pedersen_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372046]: Invalid type `u128`\n --> compiler-test:5:41\n |\n 5 | let a: group = Pedersen64::hash(1u128); // Pedersen64 hash returns a field type\n | ^^^^^\nError [ETYC0372003]: Expected type `group` but type `field` was found\n --> compiler-test:5:24\n |\n 5 | let a: group = Pedersen64::hash(1u128); // Pedersen64 hash returns a field type\n | ^^^^^^^^^^^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/core/algorithms/poseidon2_hash.out b/tests/expectations/compiler/core/algorithms/poseidon2_hash.out new file mode 100644 index 0000000000..ae0542088f --- /dev/null +++ b/tests/expectations/compiler/core/algorithms/poseidon2_hash.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 5b68dd17af0f5bab6f5cc67f2b47a35760041ef9ff4df7ea8f010559bae5781a + unrolled_ast: 5b68dd17af0f5bab6f5cc67f2b47a35760041ef9ff4df7ea8f010559bae5781a + ssa_ast: ef60c984ccfa580d1285dbbfe0d43553f1fd22b2d3a23f677e41a6d9943135ba + flattened_ast: e2383f7bb4b70472e366c8285f017807b15eb2bffb747ff31cfcf4078318f186 + inlined_ast: e2383f7bb4b70472e366c8285f017807b15eb2bffb747ff31cfcf4078318f186 + dce_ast: d48a8f76789c725ba2b15efce543d5a575f24866642ac722b31c759def6040e9 + bytecode: ec61486b3488918a8a8db406b9d6c8a4fd73b865c7add4cd2646b6ed4738c648 diff --git a/tests/expectations/compiler/core/algorithms/poseidon4_hash.out b/tests/expectations/compiler/core/algorithms/poseidon4_hash.out new file mode 100644 index 0000000000..84ce85eefb --- /dev/null +++ b/tests/expectations/compiler/core/algorithms/poseidon4_hash.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 9c2d420ea86a2611aed31072a96be5973fe931cb5208834dbbaaa85832dad479 + unrolled_ast: 9c2d420ea86a2611aed31072a96be5973fe931cb5208834dbbaaa85832dad479 + ssa_ast: c1b75e3e3caf0094fc3a3a955dfbfbd844d86a9da4ffbad5646cf2d079c8fc49 + flattened_ast: 42ab17eace07ba9fa174e1dd7f509045476ae4e3dab1393fe302973880bc4da8 + inlined_ast: 42ab17eace07ba9fa174e1dd7f509045476ae4e3dab1393fe302973880bc4da8 + dce_ast: c29e475b3798613746f0aca803383facd5f988c0fe619ab155ae55baed2fd400 + bytecode: 36b4ead8db1862fcd7831096b07f40256c01e8039c41be29c007a334cd2343f9 diff --git a/tests/expectations/compiler/core/algorithms/poseidon8_hash.out b/tests/expectations/compiler/core/algorithms/poseidon8_hash.out new file mode 100644 index 0000000000..dc37e6d444 --- /dev/null +++ b/tests/expectations/compiler/core/algorithms/poseidon8_hash.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 417887bbb9a8fddcc52848e4517ffd59dcaaf35512e1166df3838f0a15f7ac74 + unrolled_ast: 417887bbb9a8fddcc52848e4517ffd59dcaaf35512e1166df3838f0a15f7ac74 + ssa_ast: 95bf4aa7a18c4e152ae24292bcba2cef5c3fc2c7bea6cdc80d146f3e31ebe984 + flattened_ast: a698ca5479fd0b3b6e7a4d55f9f0c06c1390f920145357a2e3e46e8b453f5ad5 + inlined_ast: a698ca5479fd0b3b6e7a4d55f9f0c06c1390f920145357a2e3e46e8b453f5ad5 + dce_ast: b2cbcf19bf6f16d14311ac2c98820ca4ac8d34c2a14bf69784ab5f15114e297f + bytecode: 7353ae74ad6fd49fadd68e4f452d31569c2c09189cf5840ff49af032a7aab3cd diff --git a/tests/expectations/compiler/definition/out_of_order.out b/tests/expectations/compiler/definition/out_of_order.out new file mode 100644 index 0000000000..c3a6ba64fd --- /dev/null +++ b/tests/expectations/compiler/definition/out_of_order.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 9845d8aaec21f191c73e190b478e592e3e910b0dfd071cf86e692082f7ff9f23 + unrolled_ast: 9845d8aaec21f191c73e190b478e592e3e910b0dfd071cf86e692082f7ff9f23 + ssa_ast: a24e603330c02f87b70ed3e3f6467fc471d6d9d032f17eb023f37df005ceff85 + flattened_ast: bc4a52e6fb7998c2a8a454306e75598177546db8f32a5a79e95ead68abc72880 + inlined_ast: bc4a52e6fb7998c2a8a454306e75598177546db8f32a5a79e95ead68abc72880 + dce_ast: bc4a52e6fb7998c2a8a454306e75598177546db8f32a5a79e95ead68abc72880 + bytecode: 9a1e5bb7b8d932d4afd347a856bfb38db144771f49a0d9589ef14236338e3dcf diff --git a/tests/expectations/compiler/definition/use_decl_variable_as_assign_fail.out b/tests/expectations/compiler/definition/use_decl_variable_as_assign_fail.out new file mode 100644 index 0000000000..71cc835b77 --- /dev/null +++ b/tests/expectations/compiler/definition/use_decl_variable_as_assign_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372005]: Unknown variable `b`\n --> compiler-test:5:18\n |\n 5 | \tlet b: u8 = b;\n | ^\n" diff --git a/tests/expectations/compiler/field/add.out b/tests/expectations/compiler/field/add.out new file mode 100644 index 0000000000..da205d911f --- /dev/null +++ b/tests/expectations/compiler/field/add.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 179113dfb723097a26a7181bbb64ed56e7ca3ebf57cf782077d9743b64595446 + unrolled_ast: 179113dfb723097a26a7181bbb64ed56e7ca3ebf57cf782077d9743b64595446 + ssa_ast: 499f15e97d7e5d5dcc0be12e85176e6f160cc2b65d66b0667f640a3d0e64f369 + flattened_ast: 9c98dfcdcb403983efb0b1078246ca9e3c3e8fe913f6ceabbd9a87b63f3fc3a4 + inlined_ast: 9c98dfcdcb403983efb0b1078246ca9e3c3e8fe913f6ceabbd9a87b63f3fc3a4 + dce_ast: 9c98dfcdcb403983efb0b1078246ca9e3c3e8fe913f6ceabbd9a87b63f3fc3a4 + bytecode: 230d4f2bda3933eb4fafc4dda4ce0087e74e4cbd9c65349746da561cbb3f99da diff --git a/tests/expectations/compiler/field/div.out b/tests/expectations/compiler/field/div.out new file mode 100644 index 0000000000..c15420d7c3 --- /dev/null +++ b/tests/expectations/compiler/field/div.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 873e6714527c41b8cf2b3db3236b443e8ead62c4580b57b4088c46c378524598 + unrolled_ast: 873e6714527c41b8cf2b3db3236b443e8ead62c4580b57b4088c46c378524598 + ssa_ast: d451c529bc4b3207205083e58d6521f0ea5526d63d1f77c42b40854f917316cf + flattened_ast: 0840cf638ec3532c7702d10bbbfcf2fbfc8c8f7c54e532acb4ac46cbb7c8ed61 + inlined_ast: 0840cf638ec3532c7702d10bbbfcf2fbfc8c8f7c54e532acb4ac46cbb7c8ed61 + dce_ast: 0840cf638ec3532c7702d10bbbfcf2fbfc8c8f7c54e532acb4ac46cbb7c8ed61 + bytecode: fa960590c979aea4bdfe07b7d37060bb593f73f745974241e2db578bd7ba2ced diff --git a/tests/expectations/compiler/field/eq.out b/tests/expectations/compiler/field/eq.out new file mode 100644 index 0000000000..b54cf328b1 --- /dev/null +++ b/tests/expectations/compiler/field/eq.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 63d16c8101f9ede853a5be9d493bc61bbe57449e99499e42254a1e2d6448e3d2 + unrolled_ast: 63d16c8101f9ede853a5be9d493bc61bbe57449e99499e42254a1e2d6448e3d2 + ssa_ast: df4cad7af230e0feb2036b920bde4aa81ed297a9ee8269aa95ded280610bde49 + flattened_ast: f1d531bbe1b2e0bf0f30a1f7e86cce88c834fee9eb4d06548508907ad5f2dd24 + inlined_ast: f1d531bbe1b2e0bf0f30a1f7e86cce88c834fee9eb4d06548508907ad5f2dd24 + dce_ast: f1d531bbe1b2e0bf0f30a1f7e86cce88c834fee9eb4d06548508907ad5f2dd24 + bytecode: e8cc0536d26ff27b9fe9ff3ad45b575185b9f60c9d3910481ab66843af0f2171 diff --git a/tests/expectations/compiler/field/field.out b/tests/expectations/compiler/field/field.out new file mode 100644 index 0000000000..1f51ac0f4d --- /dev/null +++ b/tests/expectations/compiler/field/field.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: a0a3f4d71f6a8515eec27eee97abf5cbaeadbddb1a3b45e80e544ccadb1acaf0 + unrolled_ast: a0a3f4d71f6a8515eec27eee97abf5cbaeadbddb1a3b45e80e544ccadb1acaf0 + ssa_ast: bb33a4fa86326a22060f8413b1d1a2c8f5531669e120091aa6cfd52189dcc8d9 + flattened_ast: 81d3e2a9873213fa638e27f44b3b038c69bbe349c35b5356a772a7f68a485216 + inlined_ast: 81d3e2a9873213fa638e27f44b3b038c69bbe349c35b5356a772a7f68a485216 + dce_ast: da90f747cda7a8d74b4abbf06fb2220a0fb3420409befa188d8c812bffacee64 + bytecode: bf4397cd5bc3498d05f1d6582c3b4a868579aaa6b8f6f484f1c2ce9dd03a13a2 diff --git a/tests/expectations/compiler/field/mul.out b/tests/expectations/compiler/field/mul.out new file mode 100644 index 0000000000..65ba2c2987 --- /dev/null +++ b/tests/expectations/compiler/field/mul.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 6b2150ffe972e2a329964dd76f061f3af94a9b15ce821ad4bb1cedd6b0134483 + unrolled_ast: 6b2150ffe972e2a329964dd76f061f3af94a9b15ce821ad4bb1cedd6b0134483 + ssa_ast: 610db9a9ab1fe344961c36a0fe5170902b9ca4cf036094b0a5f6fc9d8cfa7b72 + flattened_ast: 384e746fcbe1428be942f6ee12041562e0c1ae98b398c26da1d62fdb57181343 + inlined_ast: 384e746fcbe1428be942f6ee12041562e0c1ae98b398c26da1d62fdb57181343 + dce_ast: 384e746fcbe1428be942f6ee12041562e0c1ae98b398c26da1d62fdb57181343 + bytecode: 90662aea378f911f2798c1ece956f7a2566fd99d99a87d8285f1476edf468e43 diff --git a/tests/expectations/compiler/field/negate.out b/tests/expectations/compiler/field/negate.out new file mode 100644 index 0000000000..0aef953b4d --- /dev/null +++ b/tests/expectations/compiler/field/negate.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: cde2a91af921e65b79849153ed229de8c9a0af850ee62ac23363d0f8d8b82899 + unrolled_ast: cde2a91af921e65b79849153ed229de8c9a0af850ee62ac23363d0f8d8b82899 + ssa_ast: ebba08995e71307851655254c51deb67364ee12aa4320f9efa32c16668d26cf6 + flattened_ast: 7111dab311b76ad61366abb7a6e40586f44e17da7f8784eb6f8431dd0c41bd42 + inlined_ast: 7111dab311b76ad61366abb7a6e40586f44e17da7f8784eb6f8431dd0c41bd42 + dce_ast: 7111dab311b76ad61366abb7a6e40586f44e17da7f8784eb6f8431dd0c41bd42 + bytecode: 57bdcce5ea2ea7890a6a4786e4795f5c458da4b6b29f6295f86e15f11479f3e6 diff --git a/tests/expectations/compiler/field/no_space_between_literal.out b/tests/expectations/compiler/field/no_space_between_literal.out new file mode 100644 index 0000000000..99f6fb751b --- /dev/null +++ b/tests/expectations/compiler/field/no_space_between_literal.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected : -- found '='\n --> compiler-test:5:13\n |\n 5 | let f = 1 field;\n | ^" diff --git a/tests/expectations/compiler/field/operator_methods.out b/tests/expectations/compiler/field/operator_methods.out new file mode 100644 index 0000000000..6be3330286 --- /dev/null +++ b/tests/expectations/compiler/field/operator_methods.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 6926fc7a56a99fb841bff97631e39b332f998908009c9c0f83e0f0b4d1a0b8f3 + unrolled_ast: 6926fc7a56a99fb841bff97631e39b332f998908009c9c0f83e0f0b4d1a0b8f3 + ssa_ast: 842449a3e29d8cd788deae538a1642bc89e326ed45768ee5121095e4293f553f + flattened_ast: c48dab53c83532533096307cda1460de12397de310e2b6622f644dcace4f4391 + inlined_ast: c48dab53c83532533096307cda1460de12397de310e2b6622f644dcace4f4391 + dce_ast: c5d03ece7d274dc56be11aa850f15744fa5a84399ed4d5fc7dfde1cf6af2268e + bytecode: f6b06c8195fece8a8c55a0c4684f0135bbaadda789d192091b60afd9aa6c8874 diff --git a/tests/expectations/compiler/field/pow.out b/tests/expectations/compiler/field/pow.out new file mode 100644 index 0000000000..60ae50ca56 --- /dev/null +++ b/tests/expectations/compiler/field/pow.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 46a92aaca66affbf50b74324dbce4736483379633f17f61ea0cf37e605c7532c + unrolled_ast: 46a92aaca66affbf50b74324dbce4736483379633f17f61ea0cf37e605c7532c + ssa_ast: 0b8ade69614164174dc9ec432d4b817ff866f645e288e2bdab24c6ce4941d9f9 + flattened_ast: 29589d9c50c3654f9002ba09ee2354a4e073c7e6f7eb788df42ff77ea5f36a07 + inlined_ast: 29589d9c50c3654f9002ba09ee2354a4e073c7e6f7eb788df42ff77ea5f36a07 + dce_ast: 29589d9c50c3654f9002ba09ee2354a4e073c7e6f7eb788df42ff77ea5f36a07 + bytecode: b6438347d546b70daea75dda80a96df95c782793c3e40c92f1931903604c41bf diff --git a/tests/expectations/compiler/field/sub.out b/tests/expectations/compiler/field/sub.out new file mode 100644 index 0000000000..2b304f216d --- /dev/null +++ b/tests/expectations/compiler/field/sub.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 64dda97ee29caaad409d6138d57d8ed852caee9e40486539e03fcc570c7c3d1a + unrolled_ast: 64dda97ee29caaad409d6138d57d8ed852caee9e40486539e03fcc570c7c3d1a + ssa_ast: b893aa52ba3b0404bcfdcd8f9708df62cb91b70ba5e9417e1455fc7710c6ceb6 + flattened_ast: bbf216c1e754d2012edb4ef4896499255d956bf4f39c0b9852ee45f75d914a0b + inlined_ast: bbf216c1e754d2012edb4ef4896499255d956bf4f39c0b9852ee45f75d914a0b + dce_ast: bbf216c1e754d2012edb4ef4896499255d956bf4f39c0b9852ee45f75d914a0b + bytecode: ef0f05392652587de58875f041bb805a5a1172a153d96973638342d143798863 diff --git a/tests/expectations/compiler/field/ternary.out b/tests/expectations/compiler/field/ternary.out new file mode 100644 index 0000000000..d30d37b02a --- /dev/null +++ b/tests/expectations/compiler/field/ternary.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 1ea7ba67b3f77b976b2ec3493afe6958ea64055e10f7a15f33235ff62dd488ee + unrolled_ast: 1ea7ba67b3f77b976b2ec3493afe6958ea64055e10f7a15f33235ff62dd488ee + ssa_ast: dd0df684331375510fdd96af15bd2aadb8932f3eff2fabb9d1b8dba199728b48 + flattened_ast: 60cf4f7e83d3ffc10b362b701749b0d5afcf8307e099bc5c7908c9ccb4df3efc + inlined_ast: 60cf4f7e83d3ffc10b362b701749b0d5afcf8307e099bc5c7908c9ccb4df3efc + dce_ast: 60cf4f7e83d3ffc10b362b701749b0d5afcf8307e099bc5c7908c9ccb4df3efc + bytecode: b65dba415908458745a14bfc52abda70a0899732f807ba22f56776ab3fcbf589 diff --git a/tests/expectations/compiler/finalize/closure_with_finalize_fail.out b/tests/expectations/compiler/finalize/closure_with_finalize_fail.out new file mode 100644 index 0000000000..db9f8e975f --- /dev/null +++ b/tests/expectations/compiler/finalize/closure_with_finalize_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372036]: Cannot use a `finalize` statement without a `finalize` block.\n --> compiler-test:5:9\n |\n 5 | return a + b then finalize(a, b);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372044]: Function must contain a `finalize` statement on all execution paths.\n --> compiler-test:8:5\n |\n 8 | function bar(a: u8, b: u8) -> u8 {\n 9 | return a + b;\n 10 | }\n | ^\nError [ETYC0372031]: Only transition functions can have a `finalize` block.\n --> compiler-test:12:5\n |\n 12 | finalize bar(a: u8, b: u8) -> u8 {\n 13 | return a + b;\n 14 | }\n | ^\n |\n = Remove the `finalize` block or use the keyword `transition` instead of `function`.\nError [ETYC0372031]: Only transition functions can have a `finalize` block.\n --> compiler-test:21:5\n |\n 21 | finalize mint_public(receiver: address, amount: u64) {\n 22 | increment(account, receiver, amount);\n 23 | }\n | ^\n |\n = Remove the `finalize` block or use the keyword `transition` instead of `function`.\nError [ETYC0372005]: Unknown variable `account`\n --> compiler-test:22:19\n |\n 22 | increment(account, receiver, amount);\n | ^^^^^^^\nError [ETYC0372004]: Could not determine the type of `account`\n --> compiler-test:22:19\n |\n 22 | increment(account, receiver, amount);\n | ^^^^^^^\n" diff --git a/tests/expectations/compiler/finalize/decrement.out b/tests/expectations/compiler/finalize/decrement.out new file mode 100644 index 0000000000..e96a912fae --- /dev/null +++ b/tests/expectations/compiler/finalize/decrement.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 6fa465e63f2b8e880d621cb1758b3d1c0edfa9ce09e6d4f0f28bbe6c2ca2b955 + unrolled_ast: 6fa465e63f2b8e880d621cb1758b3d1c0edfa9ce09e6d4f0f28bbe6c2ca2b955 + ssa_ast: 6fa465e63f2b8e880d621cb1758b3d1c0edfa9ce09e6d4f0f28bbe6c2ca2b955 + flattened_ast: 4b8969d1adf68074bc7a8458a9146e128041bf929f2f6a4e76a16ad2769b81b1 + inlined_ast: 4b8969d1adf68074bc7a8458a9146e128041bf929f2f6a4e76a16ad2769b81b1 + dce_ast: 4b8969d1adf68074bc7a8458a9146e128041bf929f2f6a4e76a16ad2769b81b1 + bytecode: 39aa8516297ece27331b633a72466d2ff0122d36beca663a48bc07589e2d3e15 diff --git a/tests/expectations/compiler/finalize/decrement_incorrect_type.out b/tests/expectations/compiler/finalize/decrement_incorrect_type.out new file mode 100644 index 0000000000..5b6559e151 --- /dev/null +++ b/tests/expectations/compiler/finalize/decrement_incorrect_type.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372007]: Expected one type from `Token`, but got `u128`\n --> compiler-test:18:33\n |\n 18 | decrement(tokens, addr, amount);\n | ^^^^^^\nError [ETYC0372007]: Expected one type from `address`, but got `u8`\n --> compiler-test:19:28\n |\n 19 | decrement(amounts, 1u8, amount);\n | ^^^\nError [ETYC0372007]: Expected one type from `u128`, but got `u8`\n --> compiler-test:20:34\n |\n 20 | decrement(amounts, addr, 1u8);\n | ^^^\nError [ETYC0372003]: Expected type `u64` but type `u8` was found\n --> compiler-test:21:61\n |\n 21 | decrement(tokens, addr, Token { owner: addr, gates: 1u8, amount: 1u8 });\n | ^^^\nError [ETYC0372003]: Expected type `u128` but type `u8` was found\n --> compiler-test:21:74\n |\n 21 | decrement(tokens, addr, Token { owner: addr, gates: 1u8, amount: 1u8 });\n | ^^^\nError [ETYC0372007]: Expected one type from `field, group, scalar, i8, i16, i32, i64, i128, u8, u16, u32, u64, u128`, but got `Token`\n --> compiler-test:21:33\n |\n 21 | decrement(tokens, addr, Token { owner: addr, gates: 1u8, amount: 1u8 });\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372005]: Unknown variable `foo`\n --> compiler-test:22:19\n |\n 22 | decrement(foo, addr, amount);\n | ^^^\nError [ETYC0372004]: Could not determine the type of `foo`\n --> compiler-test:22:19\n |\n 22 | decrement(foo, addr, amount);\n | ^^^\n" diff --git a/tests/expectations/compiler/finalize/empty_finalize_fail.out b/tests/expectations/compiler/finalize/empty_finalize_fail.out new file mode 100644 index 0000000000..8affb83e06 --- /dev/null +++ b/tests/expectations/compiler/finalize/empty_finalize_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372039]: A finalize block cannot be empty.\n --> compiler-test:9:5\n |\n 9 | finalize mint_public (public receiver: address, public amount: u64) {}\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/finalize/finalize.out b/tests/expectations/compiler/finalize/finalize.out new file mode 100644 index 0000000000..e4bf4bba1e --- /dev/null +++ b/tests/expectations/compiler/finalize/finalize.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 9ffd4f34e261ee315a2ee29353e707b35c300e928aca532743142a538957c4ce + unrolled_ast: 9ffd4f34e261ee315a2ee29353e707b35c300e928aca532743142a538957c4ce + ssa_ast: 9ea8f3743b9bcf1584319472ca0a80707f117616d687d4c401b34fb10b44703a + flattened_ast: a4eca8b80af9863d59ebfb837fa5dae061fca7d52315d3a9f5778e6dc4b75716 + inlined_ast: a4eca8b80af9863d59ebfb837fa5dae061fca7d52315d3a9f5778e6dc4b75716 + dce_ast: a4eca8b80af9863d59ebfb837fa5dae061fca7d52315d3a9f5778e6dc4b75716 + bytecode: 6db857dc2b80ea257d141b3980404e050024771f95c5f9b74f899145b2001432 diff --git a/tests/expectations/compiler/finalize/finalize_incorrect_modes_fail.out b/tests/expectations/compiler/finalize/finalize_incorrect_modes_fail.out new file mode 100644 index 0000000000..6c0a145d4e --- /dev/null +++ b/tests/expectations/compiler/finalize/finalize_incorrect_modes_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372032]: An input to a finalize block must be public.\n --> compiler-test:10:62\n |\n 10 | finalize mint_public (public receiver: address, constant amount: u64) -> constant u64 {\n | ^^^^^^\n |\n = Use a `public` modifier to the input variable declaration or remove the visibility modifier entirely.\nError [ETYC0372033]: An output from a finalize block must be public.\n --> compiler-test:10:87\n |\n 10 | finalize mint_public (public receiver: address, constant amount: u64) -> constant u64 {\n | ^^^\n |\n = Use a `public` modifier to the output type declaration or remove the visibility modifier entirely.\nError [ETYC0372038]: Function must return a value.\n --> compiler-test:10:5\n |\n 10 | finalize mint_public (public receiver: address, constant amount: u64) -> constant u64 {\n 11 | increment(account, receiver, amount);\n 12 | }\n | ^\n" diff --git a/tests/expectations/compiler/finalize/finalize_incorrect_return_fail.out b/tests/expectations/compiler/finalize/finalize_incorrect_return_fail.out new file mode 100644 index 0000000000..ba1d87897f --- /dev/null +++ b/tests/expectations/compiler/finalize/finalize_incorrect_return_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372003]: Expected type `u64` but type `u8` was found\n --> compiler-test:12:16\n |\n 12 | return 1u8 + 2u8;\n | ^^^\nError [ETYC0372003]: Expected type `u64` but type `u8` was found\n --> compiler-test:12:22\n |\n 12 | return 1u8 + 2u8;\n | ^^^\n" diff --git a/tests/expectations/compiler/finalize/finalize_missing_return_fail.out b/tests/expectations/compiler/finalize/finalize_missing_return_fail.out new file mode 100644 index 0000000000..f68eda5007 --- /dev/null +++ b/tests/expectations/compiler/finalize/finalize_missing_return_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372038]: Function must return a value.\n --> compiler-test:11:5\n |\n 11 | finalize mint_public (public receiver: address, public amount: u64) -> u64 {\n 12 | increment(account, receiver, amount);\n 13 | }\n | ^\n" diff --git a/tests/expectations/compiler/finalize/finalize_name_mismatch_fail.out b/tests/expectations/compiler/finalize/finalize_name_mismatch_fail.out new file mode 100644 index 0000000000..361b1b4a15 --- /dev/null +++ b/tests/expectations/compiler/finalize/finalize_name_mismatch_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372045]: `finalize` name `mint_public` does not match function name `mint_private`\n --> compiler-test:11:5\n |\n 11 | finalize mint_private (public receiver: address, public amount: u64) {\n 12 | increment(account, receiver, amount);\n 13 | }\n | ^\n" diff --git a/tests/expectations/compiler/finalize/finalize_statement_incorrect_args_fail.out b/tests/expectations/compiler/finalize/finalize_statement_incorrect_args_fail.out new file mode 100644 index 0000000000..6d62dcb0e7 --- /dev/null +++ b/tests/expectations/compiler/finalize/finalize_statement_incorrect_args_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372042]: `finalize` expected `2` args, but got `3`\n --> compiler-test:8:9\n |\n 8 | return then finalize(receiver, amount, amount);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/finalize/finalize_with_return.out b/tests/expectations/compiler/finalize/finalize_with_return.out new file mode 100644 index 0000000000..502d6993a0 --- /dev/null +++ b/tests/expectations/compiler/finalize/finalize_with_return.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 809ffb6b3ce9e51d58f18a841bbbe79e87bf3b5c0ac2d82d226b3cb66427f235 + unrolled_ast: 809ffb6b3ce9e51d58f18a841bbbe79e87bf3b5c0ac2d82d226b3cb66427f235 + ssa_ast: efeab621ea3b6113ae3ef1f326cbd75668ce034b81a1bb09a55c9a671f62c127 + flattened_ast: 06fea09c85a281be025d66565aa362f80f2036c88c284fbfb5f9b874a605916b + inlined_ast: 06fea09c85a281be025d66565aa362f80f2036c88c284fbfb5f9b874a605916b + dce_ast: 06fea09c85a281be025d66565aa362f80f2036c88c284fbfb5f9b874a605916b + bytecode: 9f1144202f6b114409c379f7ecc4b480dd81daaf0f6f8b244efd20c520f7b76c diff --git a/tests/expectations/compiler/finalize/finalize_without_finalize_statement_fail.out b/tests/expectations/compiler/finalize/finalize_without_finalize_statement_fail.out new file mode 100644 index 0000000000..fdc5c61b63 --- /dev/null +++ b/tests/expectations/compiler/finalize/finalize_without_finalize_statement_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372044]: Function must contain a `finalize` statement on all execution paths.\n --> compiler-test:6:5\n |\n 6 | transition mint_public(public receiver: address, public amount: u64) {\n 7 | \n 8 | }\n | ^\n" diff --git a/tests/expectations/compiler/finalize/increment.out b/tests/expectations/compiler/finalize/increment.out new file mode 100644 index 0000000000..591426cc08 --- /dev/null +++ b/tests/expectations/compiler/finalize/increment.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 19378936c22e4e747e16e132bbc727115598dfbd17068349cb300525cde35556 + unrolled_ast: 19378936c22e4e747e16e132bbc727115598dfbd17068349cb300525cde35556 + ssa_ast: 19378936c22e4e747e16e132bbc727115598dfbd17068349cb300525cde35556 + flattened_ast: c55a0edeb6a52dd728e5500ff5b1d387186321c8a3d68f2d0638628bbb05696e + inlined_ast: c55a0edeb6a52dd728e5500ff5b1d387186321c8a3d68f2d0638628bbb05696e + dce_ast: c55a0edeb6a52dd728e5500ff5b1d387186321c8a3d68f2d0638628bbb05696e + bytecode: 49afa4d378578bc680308083733b31b8272f9c952fe8dbc133398676e3f0d2ba diff --git a/tests/expectations/compiler/finalize/increment_decrement_in_inline_fail.out b/tests/expectations/compiler/finalize/increment_decrement_in_inline_fail.out new file mode 100644 index 0000000000..4314c79e14 --- /dev/null +++ b/tests/expectations/compiler/finalize/increment_decrement_in_inline_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372035]: `increment` or `decrement` statements must be inside a finalize block.\n --> compiler-test:8:9\n |\n 8 | increment(values, 0u8, 1u8);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372035]: `increment` or `decrement` statements must be inside a finalize block.\n --> compiler-test:9:9\n |\n 9 | increment(account, self.caller, 1u64);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372035]: `increment` or `decrement` statements must be inside a finalize block.\n --> compiler-test:13:9\n |\n 13 | decrement(values, 0u8, 1u8);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372035]: `increment` or `decrement` statements must be inside a finalize block.\n --> compiler-test:14:9\n |\n 14 | decrement(account, self.caller, 1u64);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372044]: Function must contain a `finalize` statement on all execution paths.\n --> compiler-test:12:5\n |\n 12 | inline bar() {\n 13 | decrement(values, 0u8, 1u8);\n 14 | decrement(account, self.caller, 1u64);\n 15 | }\n | ^\nError [ETYC0372031]: Only transition functions can have a `finalize` block.\n --> compiler-test:17:5\n |\n 17 | finalize finalize_no_params() {\n 18 | foo();\n 19 | bar();\n 20 | }\n | ^\n |\n = Remove the `finalize` block or use the keyword `transition` instead of `function`.\nError [ETYC0372045]: `finalize` name `bar` does not match function name `finalize_no_params`\n --> compiler-test:17:5\n |\n 17 | finalize finalize_no_params() {\n 18 | foo();\n 19 | bar();\n 20 | }\n | ^\nError [ETYC0372066]: Cyclic dependency between functions: `bar` --> `bar`\n" diff --git a/tests/expectations/compiler/finalize/increment_incorrect_type.out b/tests/expectations/compiler/finalize/increment_incorrect_type.out new file mode 100644 index 0000000000..6225bdf33a --- /dev/null +++ b/tests/expectations/compiler/finalize/increment_incorrect_type.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372007]: Expected one type from `Token`, but got `u128`\n --> compiler-test:18:33\n |\n 18 | increment(tokens, addr, amount);\n | ^^^^^^\nError [ETYC0372007]: Expected one type from `address`, but got `u8`\n --> compiler-test:19:28\n |\n 19 | increment(amounts, 1u8, amount);\n | ^^^\nError [ETYC0372007]: Expected one type from `u128`, but got `u8`\n --> compiler-test:20:34\n |\n 20 | increment(amounts, addr, 1u8);\n | ^^^\nError [ETYC0372007]: Expected one type from `u128`, but got `Token`\n --> compiler-test:21:34\n |\n 21 | increment(amounts, addr, Token { owner: addr, gates: 1u64, amount: amount });\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372007]: Expected one type from `field, group, scalar, i8, i16, i32, i64, i128, u8, u16, u32, u64, u128`, but got `Token`\n --> compiler-test:21:34\n |\n 21 | increment(amounts, addr, Token { owner: addr, gates: 1u64, amount: amount });\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372005]: Unknown variable `foo`\n --> compiler-test:22:19\n |\n 22 | increment(foo, addr, amount);\n | ^^^\nError [ETYC0372004]: Could not determine the type of `foo`\n --> compiler-test:22:19\n |\n 22 | increment(foo, addr, amount);\n | ^^^\n" diff --git a/tests/expectations/compiler/finalize/inline_in_finalize.out b/tests/expectations/compiler/finalize/inline_in_finalize.out new file mode 100644 index 0000000000..c4c4974027 --- /dev/null +++ b/tests/expectations/compiler/finalize/inline_in_finalize.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 66c08e3fa6b22b7663e949d6ea72455bca2c26a573ba094f084310a086a4cf0b + unrolled_ast: 66c08e3fa6b22b7663e949d6ea72455bca2c26a573ba094f084310a086a4cf0b + ssa_ast: b86f0471ac1a09039a4ce147e87b0c41b9c3378dba0cb560b4a2fe41533781c2 + flattened_ast: 52f744a6cf805739c77995f73c2f626ad2403301c5dc6e007b9c2092869f5224 + inlined_ast: 7624599cd1c4e1dbd47fd1a649f1451e94fe0c38b1796f0a88d0061d160dcf3a + dce_ast: 7624599cd1c4e1dbd47fd1a649f1451e94fe0c38b1796f0a88d0061d160dcf3a + bytecode: cc321ba26e486e2c153e774573e880a340d698f08c7d24602f883aef1c900b73 diff --git a/tests/expectations/compiler/finalize/mapping.out b/tests/expectations/compiler/finalize/mapping.out new file mode 100644 index 0000000000..b6e67b36fc --- /dev/null +++ b/tests/expectations/compiler/finalize/mapping.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 6e57e1c0c5d4df7eaf414939293c79c156c77f9ee78064dd35572f0d54ec2b85 + unrolled_ast: 6e57e1c0c5d4df7eaf414939293c79c156c77f9ee78064dd35572f0d54ec2b85 + ssa_ast: 4c6468604104edfe6a6d2a5f4d80c557b001bc60b1e4098f80eda119afdbb292 + flattened_ast: bb26f3622ed2fa2f301ac07069ae281a5e5bea1d52fec8cdb03b03131ad0b4f6 + inlined_ast: bb26f3622ed2fa2f301ac07069ae281a5e5bea1d52fec8cdb03b03131ad0b4f6 + dce_ast: bb26f3622ed2fa2f301ac07069ae281a5e5bea1d52fec8cdb03b03131ad0b4f6 + bytecode: 1da5a78fcb6f77bd197de7dce1e7e94e7a9d30a6ec26703a645b25ab7c65cc08 diff --git a/tests/expectations/compiler/finalize/mapping_fail.out b/tests/expectations/compiler/finalize/mapping_fail.out new file mode 100644 index 0000000000..d648e9d91a --- /dev/null +++ b/tests/expectations/compiler/finalize/mapping_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372030]: A mapping's key cannot be a tuple\n --> compiler-test:4:5\n |\n 4 | mapping foo: (u32, u32) => u32;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372017]: The type `baz` is not found in the current scope.\n --> compiler-test:6:5\n |\n 6 | mapping floo: baz => u8;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372017]: The type `foo` is not found in the current scope.\n --> compiler-test:8:5\n |\n 8 | mapping bar: foo => baz;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372017]: The type `baz` is not found in the current scope.\n --> compiler-test:8:5\n |\n 8 | mapping bar: foo => baz;\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/finalize/private_input_ouput_fail.out b/tests/expectations/compiler/finalize/private_input_ouput_fail.out new file mode 100644 index 0000000000..1fd03251a5 --- /dev/null +++ b/tests/expectations/compiler/finalize/private_input_ouput_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected ; -- found 'finalize'\n --> compiler-test:5:15\n |\n 5 | async finalize(a);\n | ^^^^^^^^" diff --git a/tests/expectations/compiler/finalize/read_write_mapping_fail.out b/tests/expectations/compiler/finalize/read_write_mapping_fail.out new file mode 100644 index 0000000000..742cf4e06c --- /dev/null +++ b/tests/expectations/compiler/finalize/read_write_mapping_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected ; -- found '['\n --> compiler-test:7:24\n |\n 7 | return balances[addr];\n | ^" diff --git a/tests/expectations/compiler/finalize/shadow_mapping_fail.out b/tests/expectations/compiler/finalize/shadow_mapping_fail.out new file mode 100644 index 0000000000..ae1c7a10b9 --- /dev/null +++ b/tests/expectations/compiler/finalize/shadow_mapping_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EAST0372007]: struct `bar` shadowed by\n --> compiler-test:5:5\n |\n 5 | mapping bar: u8 => u8;\n | ^^^^^^^^^^^^^^^^^^^^^^\nError [EAST0372007]: struct `bar` shadowed by\n --> compiler-test:7:5\n |\n 7 | transition bar(a: u8) -> u8 {\n 8 | return a + 1u8;\n 9 | }\n | ^\n" diff --git a/tests/expectations/compiler/function/9_inputs_fail.out b/tests/expectations/compiler/function/9_inputs_fail.out new file mode 100644 index 0000000000..6f5c16a38d --- /dev/null +++ b/tests/expectations/compiler/function/9_inputs_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected ; -- found '}'\n --> compiler-test:17:5\n |\n 17 | }}\n | ^" diff --git a/tests/expectations/compiler/function/annotated_function_fail.out b/tests/expectations/compiler/function/annotated_function_fail.out new file mode 100644 index 0000000000..1044f1297b --- /dev/null +++ b/tests/expectations/compiler/function/annotated_function_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372027]: Unknown annotation: `@test`.\n --> compiler-test:4:5\n |\n 4 | @test\n | ^^^^^\nError [ETYC0372027]: Unknown annotation: `@program`.\n --> compiler-test:9:5\n |\n 9 | @program\n | ^^^^^^^^\n" diff --git a/tests/expectations/compiler/function/complex_recursion_fail.out b/tests/expectations/compiler/function/complex_recursion_fail.out new file mode 100644 index 0000000000..3e51af1807 --- /dev/null +++ b/tests/expectations/compiler/function/complex_recursion_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372047]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:7:16\n |\n 7 | return two(n);\n | ^^^^^^\nError [ETYC0372047]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:11:16\n |\n 11 | return three(n) + four(n);\n | ^^^^^^^^\nError [ETYC0372047]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:11:27\n |\n 11 | return three(n) + four(n);\n | ^^^^^^^\nError [ETYC0372047]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:15:16\n |\n 15 | return one(n);\n | ^^^^^^\nError [ETYC0372047]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:19:16\n |\n 19 | return one(n);\n | ^^^^^^\nError [ETYC0372048]: Cannot call a local transition function from a transition function.\n --> compiler-test:23:16\n |\n 23 | return six(n);\n | ^^^^^^\nError [ETYC0372048]: Cannot call a local transition function from a transition function.\n --> compiler-test:27:16\n |\n 27 | return seven(n) + eight(n);\n | ^^^^^^^^\nError [ETYC0372048]: Cannot call a local transition function from a transition function.\n --> compiler-test:27:27\n |\n 27 | return seven(n) + eight(n);\n | ^^^^^^^^\nError [ETYC0372048]: Cannot call a local transition function from a transition function.\n --> compiler-test:31:16\n |\n 31 | return five(n);\n | ^^^^^^^\nError [ETYC0372048]: Cannot call a local transition function from a transition function.\n --> compiler-test:35:16\n |\n 35 | return five(n);\n | ^^^^^^^\nError [ETYC0372066]: Cyclic dependency between functions: `one` --> `two` --> `three` --> `one`\n" diff --git a/tests/expectations/compiler/function/conditional_return.out b/tests/expectations/compiler/function/conditional_return.out new file mode 100644 index 0000000000..c4e484e533 --- /dev/null +++ b/tests/expectations/compiler/function/conditional_return.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 01eca8ffd19d37c08eee234033181ccb72873bc1fff02a90e1863e24c9e2d446 + unrolled_ast: 01eca8ffd19d37c08eee234033181ccb72873bc1fff02a90e1863e24c9e2d446 + ssa_ast: 9e151de216e44ca801adec05a7b534cbe347c3a64f31d570a9f33591a90af191 + flattened_ast: 9f1b62847c7b725e934fd72fb9a6ab076a6d1c778957bb93e6d2e4c7c0910c58 + inlined_ast: 9f1b62847c7b725e934fd72fb9a6ab076a6d1c778957bb93e6d2e4c7c0910c58 + dce_ast: 9f1b62847c7b725e934fd72fb9a6ab076a6d1c778957bb93e6d2e4c7c0910c58 + bytecode: 434d585ff5cbe799cf645514abda7bc7ad069563501ded68fc716e583390fefa diff --git a/tests/expectations/compiler/function/dead_code_elimination.out b/tests/expectations/compiler/function/dead_code_elimination.out new file mode 100644 index 0000000000..165d41cb8d --- /dev/null +++ b/tests/expectations/compiler/function/dead_code_elimination.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: d7414ef76b5d83ba8daed6e65487425048596937d5a6f783a313d3264d5db267 + unrolled_ast: d7414ef76b5d83ba8daed6e65487425048596937d5a6f783a313d3264d5db267 + ssa_ast: 6722ef50ccdf19eaaa57f68a249a6eb01ba78ec8ec60da0d8d664613324287aa + flattened_ast: 58ed29011b87aad89fe50f62402f441c9aa53fc2e18c3a188d94d0a88734236d + inlined_ast: 7ce8d6b0f22068cd9cf428040b3b55f08f7f890b09ed77c5f35d4ce10ed9232b + dce_ast: 48e52aa4ba7d5f4c5126ec93a14ec29772f80c73cc2d6ab5c77001f920b4c65b + bytecode: bc387336869a1d12a90c9fb923466f737bad08d04a165a8b611256868f960201 diff --git a/tests/expectations/compiler/function/duplicate_definition_fail.out b/tests/expectations/compiler/function/duplicate_definition_fail.out new file mode 100644 index 0000000000..430b3e6e2e --- /dev/null +++ b/tests/expectations/compiler/function/duplicate_definition_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370032]: `console` statements are not yet supported.\n --> compiler-test:5:9\n |\n 5 | console.log(\"{}\", 1u8);\n | ^^^^^^^\n |\n = Consider using `assert`, `assert_eq`, or `assert_neq` instead." diff --git a/tests/expectations/compiler/function/duplicate_parameter_fail.out b/tests/expectations/compiler/function/duplicate_parameter_fail.out new file mode 100644 index 0000000000..430b3e6e2e --- /dev/null +++ b/tests/expectations/compiler/function/duplicate_parameter_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370032]: `console` statements are not yet supported.\n --> compiler-test:5:9\n |\n 5 | console.log(\"{}\", 1u8);\n | ^^^^^^^\n |\n = Consider using `assert`, `assert_eq`, or `assert_neq` instead." diff --git a/tests/expectations/compiler/function/flatten_inlined_tuples_of_structs.out b/tests/expectations/compiler/function/flatten_inlined_tuples_of_structs.out new file mode 100644 index 0000000000..5d3a025fa2 --- /dev/null +++ b/tests/expectations/compiler/function/flatten_inlined_tuples_of_structs.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 4635467db62681996e855b4233873bf65abd26ae9659332c67a1d28dfdcd3a88 + unrolled_ast: 4635467db62681996e855b4233873bf65abd26ae9659332c67a1d28dfdcd3a88 + ssa_ast: 478e60c54d2fcb05625042228bb467278257e7392d846fd49ccd5c43fcbcbd5e + flattened_ast: 12157cdc9233e60a00d749cc033465d3aeafa625fb769223717e0e87c5cdf9d6 + inlined_ast: 083fd4b542fb73d805267040a0c739e69b7b22e9249678c7fce949cad666c419 + dce_ast: 083fd4b542fb73d805267040a0c739e69b7b22e9249678c7fce949cad666c419 + bytecode: 4365132fcfe7e243d3a3eeee1691feef89afe6cc03e20ce84e625008ddfec367 diff --git a/tests/expectations/compiler/function/flatten_test.out b/tests/expectations/compiler/function/flatten_test.out new file mode 100644 index 0000000000..190eda6a69 --- /dev/null +++ b/tests/expectations/compiler/function/flatten_test.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 1466ddb8b93b0839823f5bbcd2f36d10f6bcdd9bb2b379f2522705e9d12b9269 + unrolled_ast: 1466ddb8b93b0839823f5bbcd2f36d10f6bcdd9bb2b379f2522705e9d12b9269 + ssa_ast: 4b0d37e1a94183ddfd5ed2fc4e299319dfa92833a6fe44e4c3072f138fbdcb89 + flattened_ast: 86ba35dae4811e723d31c96db49d7bd74d7b412d131045fde4c69aa29775a0a8 + inlined_ast: 86ba35dae4811e723d31c96db49d7bd74d7b412d131045fde4c69aa29775a0a8 + dce_ast: 86ba35dae4811e723d31c96db49d7bd74d7b412d131045fde4c69aa29775a0a8 + bytecode: 2a939858f2f71f1bbe25bd039899cdb71254e56acc203eb6d60dbb5c191a4224 diff --git a/tests/expectations/compiler/function/flatten_tuples_of_structs.out b/tests/expectations/compiler/function/flatten_tuples_of_structs.out new file mode 100644 index 0000000000..9bbcf4f157 --- /dev/null +++ b/tests/expectations/compiler/function/flatten_tuples_of_structs.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 1d67938a04428cdc95cf4e513c4ba1789f9a48ede3c780212403923927ee38d7 + unrolled_ast: 1d67938a04428cdc95cf4e513c4ba1789f9a48ede3c780212403923927ee38d7 + ssa_ast: fcb491ed70f47943f57a15be8c8c2b8750b4ca5408dee5d3e0ce57cc4ef5879e + flattened_ast: 812e7afbfb2c8ca1d31815b42a59337fc6e6eeb98acebf794fe7539013ad1fb9 + inlined_ast: 812e7afbfb2c8ca1d31815b42a59337fc6e6eeb98acebf794fe7539013ad1fb9 + dce_ast: 812e7afbfb2c8ca1d31815b42a59337fc6e6eeb98acebf794fe7539013ad1fb9 + bytecode: 27556a268723e0d8ffc4210290babab1ad098d9c8a77ad2dc84195d98059deac diff --git a/tests/expectations/compiler/function/function_call.out b/tests/expectations/compiler/function/function_call.out new file mode 100644 index 0000000000..84e6600c62 --- /dev/null +++ b/tests/expectations/compiler/function/function_call.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: ed7e4dbd69ff4231ff48a6527734c7837b872f12a444668b071298b5cdd15d99 + unrolled_ast: ed7e4dbd69ff4231ff48a6527734c7837b872f12a444668b071298b5cdd15d99 + ssa_ast: e5afe402b1d3eeb7f1465a197952931597c2a8147aa624a15c985cad460479ce + flattened_ast: 8583c9afe3f11178c11fd4ff9e7babd3ed3a74719484084d1af353b7844dddc8 + inlined_ast: 303725110ce5af01a45222f852d1096172a8aba363ef3b192bc026d2144fdf7c + dce_ast: 303725110ce5af01a45222f852d1096172a8aba363ef3b192bc026d2144fdf7c + bytecode: 713ce56eafa3f358be317894fd3ddf287a03422f855a304ee64becfcbd1f8590 diff --git a/tests/expectations/compiler/function/function_call_inline.out b/tests/expectations/compiler/function/function_call_inline.out new file mode 100644 index 0000000000..1970a7cf67 --- /dev/null +++ b/tests/expectations/compiler/function/function_call_inline.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 42426e586a4fe69f06466e4621a8cf4547408ad38c108a85bf0beaf812859a66 + unrolled_ast: 42426e586a4fe69f06466e4621a8cf4547408ad38c108a85bf0beaf812859a66 + ssa_ast: 4b33649beef6673aafce25c35c16c034fb41ec33fdf562751b7e51d712caf309 + flattened_ast: e2ee2ee7c6e1c187de5977f44b0a39e11d946243990eb48df92b3a3e939b3906 + inlined_ast: af95979bf9d2d37a6cad26389cc5e63122148741a14a6780913fcc87861b1587 + dce_ast: af95979bf9d2d37a6cad26389cc5e63122148741a14a6780913fcc87861b1587 + bytecode: 6c18f3614147617dbd01fb1404fc8c75c0a788872cec905ad5566a443f7f2e91 diff --git a/tests/expectations/compiler/function/function_call_out_of_order.out b/tests/expectations/compiler/function/function_call_out_of_order.out new file mode 100644 index 0000000000..7a37a644e3 --- /dev/null +++ b/tests/expectations/compiler/function/function_call_out_of_order.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 4b891db2ba8f6ee0f2299622ecd387e6565c8b97045ff75808e559d7ee34c074 + unrolled_ast: 4b891db2ba8f6ee0f2299622ecd387e6565c8b97045ff75808e559d7ee34c074 + ssa_ast: f67f11e78a102b6eba419bb394cdf10b6bf8b1f2245c2fd022aa03db7750535a + flattened_ast: eddea7cbfc19bcdd6880741cc2446dd88b2d070c334dcf7e3780e71061c803f4 + inlined_ast: 9220160485ed7aa28cd86b329b9805a7da3e1fb03d9526881ea356c9bc4f3f03 + dce_ast: 9220160485ed7aa28cd86b329b9805a7da3e1fb03d9526881ea356c9bc4f3f03 + bytecode: a190851c7a73c1068c1c5819c3e064535d56273dffbc007874376c094399cd9e diff --git a/tests/expectations/compiler/function/function_call_tyc_fail.out b/tests/expectations/compiler/function/function_call_tyc_fail.out new file mode 100644 index 0000000000..4bf8563a2e --- /dev/null +++ b/tests/expectations/compiler/function/function_call_tyc_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372003]: Expected type `i8` but type `u8` was found\n --> compiler-test:16:13\n |\n 16 | x = f1(1u8);\n | ^^^^^^^\nError [ETYC0372003]: Expected type `i8` but type `u8` was found\n --> compiler-test:20:13\n |\n 20 | y = f3(y, z);\n | ^^^^^^^^\nError [ETYC0372003]: Expected type `u8` but type `i8` was found\n --> compiler-test:20:16\n |\n 20 | y = f3(y, z);\n | ^\n" diff --git a/tests/expectations/compiler/function/function_returns_record_fail.out b/tests/expectations/compiler/function/function_returns_record_fail.out new file mode 100644 index 0000000000..fb11bef5d6 --- /dev/null +++ b/tests/expectations/compiler/function/function_returns_record_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372064]: A `function` cannot output a record.\n --> compiler-test:10:45\n |\n 10 | function foo(board: Board, data: u8) -> Board {\n | ^^^^^\n" diff --git a/tests/expectations/compiler/function/helper_function_with_interface.out b/tests/expectations/compiler/function/helper_function_with_interface.out new file mode 100644 index 0000000000..24b3bf03c0 --- /dev/null +++ b/tests/expectations/compiler/function/helper_function_with_interface.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: f2e92898c37a090de2d3761e2275789fb830f34c012632e5f64aa6a3f0ef99d4 + unrolled_ast: f2e92898c37a090de2d3761e2275789fb830f34c012632e5f64aa6a3f0ef99d4 + ssa_ast: 1a3a76269ca94c73013e99da1a17e64a0d8a04b1c7b166c1807f867a4a5af7f2 + flattened_ast: 59b5dbde723c99720b27b663fbe81a7e01804ded9cc1b8a7defe220315360b9a + inlined_ast: 59b5dbde723c99720b27b663fbe81a7e01804ded9cc1b8a7defe220315360b9a + dce_ast: 59b5dbde723c99720b27b663fbe81a7e01804ded9cc1b8a7defe220315360b9a + bytecode: 56875e297f05e4c60762445a3ac97b57e4a0f12d69180bb7207ef62f950b0b25 diff --git a/tests/expectations/compiler/function/inline_expr_statement.out b/tests/expectations/compiler/function/inline_expr_statement.out new file mode 100644 index 0000000000..82786c7e3d --- /dev/null +++ b/tests/expectations/compiler/function/inline_expr_statement.out @@ -0,0 +1,18 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 1a1fd123616593fc3841d10ad59b14232ae5c7e929492e58d845a3f02f13b644 + unrolled_ast: 1a1fd123616593fc3841d10ad59b14232ae5c7e929492e58d845a3f02f13b644 + ssa_ast: 6782be9fa0571f0f28ec56c7f8ca239f1aabfaccc8b6b1fa7f562892f03546d3 + flattened_ast: d7acc63cc04bb1e54071d8ee0121561992b5e6a32ca882717d5cf6fe78fa2171 + inlined_ast: 07991d3f8334a340c6cd28037135f22a3afd75bd54ba6a1a38a1d5b86b2d481b + dce_ast: 072c27aa51995317c624cad273144963cb86bdb10b4119cd833aba20d1159e42 + bytecode: 4f6fc95016f18abf8a89221cd77b9d718ff44557d55a8387f258779921a97a7d + - initial_ast: 63933c2039c3ea3d728087e42768b13f040b28c52453ba7501744568cc34e58b + unrolled_ast: 63933c2039c3ea3d728087e42768b13f040b28c52453ba7501744568cc34e58b + ssa_ast: 4336de6520b5bc83c400e095745dcc5e1c7c42406ec557e4b693c2b2cc943f98 + flattened_ast: eefe2c2c9875a8f74bcff483ea36eaf0aa2ea6fe8ed71e2e25bb6f7f3f78c9f8 + inlined_ast: c7ed46cb4bb169e3398a4f149621cb0a38779072ae7592761426b4b86ce258dd + dce_ast: c7ed46cb4bb169e3398a4f149621cb0a38779072ae7592761426b4b86ce258dd + bytecode: c2841a1525f386f8a444af1aaf65caa7d994778b8fcdf0aa964a9a97bb313cd5 diff --git a/tests/expectations/compiler/function/inline_twice.out b/tests/expectations/compiler/function/inline_twice.out new file mode 100644 index 0000000000..f22d8507d8 --- /dev/null +++ b/tests/expectations/compiler/function/inline_twice.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 663841cf97b446530937f0487ba3bc8aeae2857418ea566be8faf6740e3b1b0f + unrolled_ast: 663841cf97b446530937f0487ba3bc8aeae2857418ea566be8faf6740e3b1b0f + ssa_ast: 048763c7b3734825b8f07e2ad2b20fd5fcc4b9835bd83fd03872c10e17e92a65 + flattened_ast: 32fb09e1a7a1277e20d9bbc57760e2ae9725929eb7f91ebbdab19cd2506eb46a + inlined_ast: 7728d3d1819783b0e50b7ec3ffc9ee249e826279fd0c82964b4c7e6a4e57a1ce + dce_ast: 7728d3d1819783b0e50b7ec3ffc9ee249e826279fd0c82964b4c7e6a4e57a1ce + bytecode: 3fd4db4753c6aa17cbd64612c47547344c2a06eb22218407c1bf490080ce7ae4 diff --git a/tests/expectations/compiler/function/mutual_recursion_fail.out b/tests/expectations/compiler/function/mutual_recursion_fail.out new file mode 100644 index 0000000000..3e481b993e --- /dev/null +++ b/tests/expectations/compiler/function/mutual_recursion_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372047]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:5:16\n |\n 5 | return bar(n);\n | ^^^^^^\nError [ETYC0372047]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:9:16\n |\n 9 | return foo(n);\n | ^^^^^^\nError [ETYC0372048]: Cannot call a local transition function from a transition function.\n --> compiler-test:13:16\n |\n 13 | return bax(n);\n | ^^^^^^\nError [ETYC0372048]: Cannot call a local transition function from a transition function.\n --> compiler-test:17:16\n |\n 17 | return baz(n);\n | ^^^^^^\nError [ETYC0372066]: Cyclic dependency between functions: `foo` --> `bar` --> `foo`\n" diff --git a/tests/expectations/compiler/function/no_return.out b/tests/expectations/compiler/function/no_return.out new file mode 100644 index 0000000000..2a3b54a714 --- /dev/null +++ b/tests/expectations/compiler/function/no_return.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372038]: Function must return a value.\n --> compiler-test:4:5\n |\n 4 | transition main() -> u8 {}\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/function/private_input_output.out b/tests/expectations/compiler/function/private_input_output.out new file mode 100644 index 0000000000..2316ffd4f1 --- /dev/null +++ b/tests/expectations/compiler/function/private_input_output.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 2d1182494129f414a987c520aeb8fcfaaa9019d688f810d8ba5589accbb11747 + unrolled_ast: 2d1182494129f414a987c520aeb8fcfaaa9019d688f810d8ba5589accbb11747 + ssa_ast: 7ae7272d7babd64cc7845463755decb6073b095b04ae52e76197c68bc081cdf6 + flattened_ast: c39c24be2f2e4792f87bf1e8dcd123064e1a9f31fec6923f8daf7800e6b9cd2a + inlined_ast: c39c24be2f2e4792f87bf1e8dcd123064e1a9f31fec6923f8daf7800e6b9cd2a + dce_ast: c39c24be2f2e4792f87bf1e8dcd123064e1a9f31fec6923f8daf7800e6b9cd2a + bytecode: 6d5fea51d9eec1cf3a5037b123147f9d532855197e3891ff870fbe700dd08d3f diff --git a/tests/expectations/compiler/function/program_function_any_number_of_inputs_and_outputs.out b/tests/expectations/compiler/function/program_function_any_number_of_inputs_and_outputs.out new file mode 100644 index 0000000000..77b3304bab --- /dev/null +++ b/tests/expectations/compiler/function/program_function_any_number_of_inputs_and_outputs.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 5a6e8de67b7ddf2a34dd7bf302b73001f4cdf9f64517806622ed3787d35eadcc + unrolled_ast: 5a6e8de67b7ddf2a34dd7bf302b73001f4cdf9f64517806622ed3787d35eadcc + ssa_ast: 4d554be19b3abc0c13bccd5225bc75011e8a77ec764de362788b9d221bae09c4 + flattened_ast: faf9aeb6811760108ec7fd83ddf1d08314719c707e9818bebd9cf9b7e0adbff2 + inlined_ast: faf9aeb6811760108ec7fd83ddf1d08314719c707e9818bebd9cf9b7e0adbff2 + dce_ast: faf9aeb6811760108ec7fd83ddf1d08314719c707e9818bebd9cf9b7e0adbff2 + bytecode: 76a90286cb4903577bb9b0d219abe140fd8e2ef8a74df48a82d986e8efc4235d diff --git a/tests/expectations/compiler/function/program_function_empty_body.out b/tests/expectations/compiler/function/program_function_empty_body.out new file mode 100644 index 0000000000..e2cd3dc815 --- /dev/null +++ b/tests/expectations/compiler/function/program_function_empty_body.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 6a343455b83835e5e2bc4760238b988d508dbf8a73b078f95bbd92c825f931bc + unrolled_ast: 6a343455b83835e5e2bc4760238b988d508dbf8a73b078f95bbd92c825f931bc + ssa_ast: 6a343455b83835e5e2bc4760238b988d508dbf8a73b078f95bbd92c825f931bc + flattened_ast: 6a343455b83835e5e2bc4760238b988d508dbf8a73b078f95bbd92c825f931bc + inlined_ast: 6a343455b83835e5e2bc4760238b988d508dbf8a73b078f95bbd92c825f931bc + dce_ast: 6a343455b83835e5e2bc4760238b988d508dbf8a73b078f95bbd92c825f931bc + bytecode: a26eca302425b77f7d017763631062a040d57f8557dd53a31bfe4d17584ab0e2 diff --git a/tests/expectations/compiler/function/program_function_no_constant_mode_fail.out b/tests/expectations/compiler/function/program_function_no_constant_mode_fail.out new file mode 100644 index 0000000000..9780f01d60 --- /dev/null +++ b/tests/expectations/compiler/function/program_function_no_constant_mode_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372040]: A returned value cannot be a constant.\n --> compiler-test:7:39\n |\n 7 | transition foo(a: u8) -> constant u8 {\n | ^^\n" diff --git a/tests/expectations/compiler/function/program_function_unit_type.out b/tests/expectations/compiler/function/program_function_unit_type.out new file mode 100644 index 0000000000..e9baa2f6e7 --- /dev/null +++ b/tests/expectations/compiler/function/program_function_unit_type.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 46c8f1a9f3ac3b544211d70cbf18eb2c30e659096e36309b268ecebfb8901047 + unrolled_ast: 46c8f1a9f3ac3b544211d70cbf18eb2c30e659096e36309b268ecebfb8901047 + ssa_ast: 46c8f1a9f3ac3b544211d70cbf18eb2c30e659096e36309b268ecebfb8901047 + flattened_ast: 46c8f1a9f3ac3b544211d70cbf18eb2c30e659096e36309b268ecebfb8901047 + inlined_ast: 46c8f1a9f3ac3b544211d70cbf18eb2c30e659096e36309b268ecebfb8901047 + dce_ast: 46c8f1a9f3ac3b544211d70cbf18eb2c30e659096e36309b268ecebfb8901047 + bytecode: 8f6238b1942bb3cf2eb7d0eed9745dffaf088c884c423992f0d23b989f3954ff diff --git a/tests/expectations/compiler/function/program_function_with_mode.out b/tests/expectations/compiler/function/program_function_with_mode.out new file mode 100644 index 0000000000..5aa4cc3017 --- /dev/null +++ b/tests/expectations/compiler/function/program_function_with_mode.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: b240780b5255b2ceb6f095c0a4a2061bc060fb06d9ad0725f1e4aa1de1ab2500 + unrolled_ast: b240780b5255b2ceb6f095c0a4a2061bc060fb06d9ad0725f1e4aa1de1ab2500 + ssa_ast: 52bc08100046182123c83e77a8f89b24a92f6c5dedb09115361d500e08f92443 + flattened_ast: a1af6ce731eb84ce6f493bfffa4c34d682203f41f036a54613bc22b74e135d7a + inlined_ast: a1af6ce731eb84ce6f493bfffa4c34d682203f41f036a54613bc22b74e135d7a + dce_ast: a1af6ce731eb84ce6f493bfffa4c34d682203f41f036a54613bc22b74e135d7a + bytecode: 70d3806e31f660faa4eff783ad05a73cf249a0a1ac7c29046fd8f1b2cec656b1 diff --git a/tests/expectations/compiler/function/record_in_conditional_return.out b/tests/expectations/compiler/function/record_in_conditional_return.out new file mode 100644 index 0000000000..5e2aaa0c02 --- /dev/null +++ b/tests/expectations/compiler/function/record_in_conditional_return.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: b1f55a3fca7009125740595eb1d8a6c5e3266c45f6c9d54d1eb7693a5f95adb3 + unrolled_ast: b1f55a3fca7009125740595eb1d8a6c5e3266c45f6c9d54d1eb7693a5f95adb3 + ssa_ast: 70eeac70fcfbbda44e87ab2ddcf47e3fac9ed9cfab8c1873b1873c4bd4ab502d + flattened_ast: 34f60217fff78d0c47fdc7ac7c64994fd0c0234193cb5ff71a28bdf6ed645ab2 + inlined_ast: 34f60217fff78d0c47fdc7ac7c64994fd0c0234193cb5ff71a28bdf6ed645ab2 + dce_ast: 34f60217fff78d0c47fdc7ac7c64994fd0c0234193cb5ff71a28bdf6ed645ab2 + bytecode: f5572172f6812e0eb6e906c230138c76d1344fd15522b8b2ee98156d6c92ca0a diff --git a/tests/expectations/compiler/function/scope_fail.out b/tests/expectations/compiler/function/scope_fail.out new file mode 100644 index 0000000000..8e090027e3 --- /dev/null +++ b/tests/expectations/compiler/function/scope_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected : -- found '='\n --> compiler-test:10:22\n |\n 10 | let myGlobal = 42field;\n | ^" diff --git a/tests/expectations/compiler/function/self.out b/tests/expectations/compiler/function/self.out new file mode 100644 index 0000000000..20c74cc975 --- /dev/null +++ b/tests/expectations/compiler/function/self.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: a1273726570fc7a7cc2a27f2689258df5f6fb26964aab84c89f5a771d4841ea3 + unrolled_ast: a1273726570fc7a7cc2a27f2689258df5f6fb26964aab84c89f5a771d4841ea3 + ssa_ast: 028b589972bfceff9fb375e832f0595848ec7b7ec7a791995c7d360f0397e68a + flattened_ast: ef3ca55705d6cf89c60d2f7b62a11bb6aef71a03dc92f86ddd7ea61ff8faca72 + inlined_ast: ef3ca55705d6cf89c60d2f7b62a11bb6aef71a03dc92f86ddd7ea61ff8faca72 + dce_ast: ef3ca55705d6cf89c60d2f7b62a11bb6aef71a03dc92f86ddd7ea61ff8faca72 + bytecode: e62ba6ed16c820d4f4a8c2569bf96add46e3b8ce999e5fc77fa99c1769ca2dbd diff --git a/tests/expectations/compiler/function/self_fail.out b/tests/expectations/compiler/function/self_fail.out new file mode 100644 index 0000000000..f8345b812e --- /dev/null +++ b/tests/expectations/compiler/function/self_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372043]: The allowed accesses to `self` are `self.caller`.\n --> compiler-test:5:21\n |\n 5 | return self.foo == addr;\n | ^^^\nError [ETYC0372003]: Expected type `address` but type `no type` was found\n --> compiler-test:5:16\n |\n 5 | return self.foo == addr;\n | ^^^^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/function/self_recursive_cycle_fail.out b/tests/expectations/compiler/function/self_recursive_cycle_fail.out new file mode 100644 index 0000000000..3e62dc6be8 --- /dev/null +++ b/tests/expectations/compiler/function/self_recursive_cycle_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372047]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:8:20\n |\n 8 | return fib(n - 1u8) + fib(n - 2u8);\n | ^^^^^^^^^^^^\nError [ETYC0372047]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:8:35\n |\n 8 | return fib(n - 1u8) + fib(n - 2u8);\n | ^^^^^^^^^^^^\nError [ETYC0372048]: Cannot call a local transition function from a transition function.\n --> compiler-test:16:20\n |\n 16 | return foo(n - 1u8) + foo(n - 2u8);\n | ^^^^^^^^^^^^\nError [ETYC0372048]: Cannot call a local transition function from a transition function.\n --> compiler-test:16:35\n |\n 16 | return foo(n - 1u8) + foo(n - 2u8);\n | ^^^^^^^^^^^^\nError [ETYC0372066]: Cyclic dependency between functions: `fib` --> `fib`\n" diff --git a/tests/expectations/compiler/function/shadow_function_with_input_fail.out b/tests/expectations/compiler/function/shadow_function_with_input_fail.out new file mode 100644 index 0000000000..e89def5647 --- /dev/null +++ b/tests/expectations/compiler/function/shadow_function_with_input_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EAST0372006]: function `hi` shadowed by\n --> compiler-test:8:21\n |\n 8 | function tester(hi: u8) -> u8 {\n | ^^\n" diff --git a/tests/expectations/compiler/function/shadow_parameter_fail.out b/tests/expectations/compiler/function/shadow_parameter_fail.out new file mode 100644 index 0000000000..ff2b04f0a0 --- /dev/null +++ b/tests/expectations/compiler/function/shadow_parameter_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected : -- found '='\n --> compiler-test:5:16\n |\n 5 | let hi = 2u8;\n | ^" diff --git a/tests/expectations/compiler/function/standard_function_calls_standard_function_fail.out b/tests/expectations/compiler/function/standard_function_calls_standard_function_fail.out new file mode 100644 index 0000000000..4d89eab9be --- /dev/null +++ b/tests/expectations/compiler/function/standard_function_calls_standard_function_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372047]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:6:19\n |\n 6 | return adder(a, b);\n | ^^^^^^^^^^^\nError [ETYC0372047]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:8:20\n |\n 8 | return subber(a, b);\n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/function/standard_function_calls_transition_function_fail.out b/tests/expectations/compiler/function/standard_function_calls_transition_function_fail.out new file mode 100644 index 0000000000..4d89eab9be --- /dev/null +++ b/tests/expectations/compiler/function/standard_function_calls_transition_function_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372047]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:6:19\n |\n 6 | return adder(a, b);\n | ^^^^^^^^^^^\nError [ETYC0372047]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:8:20\n |\n 8 | return subber(a, b);\n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/function/too_many_transitions_fail.out b/tests/expectations/compiler/function/too_many_transitions_fail.out new file mode 100644 index 0000000000..7fe4695114 --- /dev/null +++ b/tests/expectations/compiler/function/too_many_transitions_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372052]: The number of transitions exceeds the maximum. snarkVM allows up to 15 transitions within a single program.\n --> compiler-test:3:9\n |\n 3 | program test.aleo {\n | ^^^^^^^^^\n" diff --git a/tests/expectations/compiler/function/transition_function_calls_transition_function_fail.out b/tests/expectations/compiler/function/transition_function_calls_transition_function_fail.out new file mode 100644 index 0000000000..7f296da9c6 --- /dev/null +++ b/tests/expectations/compiler/function/transition_function_calls_transition_function_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372048]: Cannot call a local transition function from a transition function.\n --> compiler-test:6:19\n |\n 6 | return adder(a, b);\n | ^^^^^^^^^^^\nError [ETYC0372048]: Cannot call a local transition function from a transition function.\n --> compiler-test:8:20\n |\n 8 | return subber(a, b);\n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/function/undefined_data_type_fail.out b/tests/expectations/compiler/function/undefined_data_type_fail.out new file mode 100644 index 0000000000..33c4a6bbe9 --- /dev/null +++ b/tests/expectations/compiler/function/undefined_data_type_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372017]: The type `Board` is not found in the current scope.\n --> compiler-test:4:35\n |\n 4 | function aria192check_for_win(b: Board, p: u8) -> u128bool {\n | ^\nError [ETYC0372017]: The type `u128bool` is not found in the current scope.\n --> compiler-test:4:55\n |\n 4 | function aria192check_for_win(b: Board, p: u8) -> u128bool {\n | ^^^^^^^^\nError [ETYC0372005]: Unknown variable `test`\n --> compiler-test:5:16\n |\n 5 | return test;\n | ^^^^\n" diff --git a/tests/expectations/compiler/function/undefined_fail.out b/tests/expectations/compiler/function/undefined_fail.out new file mode 100644 index 0000000000..d514b70cd1 --- /dev/null +++ b/tests/expectations/compiler/function/undefined_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372005]: Unknown function `my_function`\n --> compiler-test:5:9\n |\n 5 | my_function();\n | ^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/function/unknown_parameter_type_fail.out b/tests/expectations/compiler/function/unknown_parameter_type_fail.out new file mode 100644 index 0000000000..6e9597fc92 --- /dev/null +++ b/tests/expectations/compiler/function/unknown_parameter_type_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372017]: The type `Foo` is not found in the current scope.\n --> compiler-test:4:28\n |\n 4 | transition main(a: u8, foo: Foo) -> u8 {\n | ^^^\nError [ETYC0372017]: The type `Foo` is not found in the current scope.\n --> compiler-test:8:38\n |\n 8 | transition returns_foo(a: u8) -> Foo {\n | ^^^\nError [ETYC0372003]: Expected type `Foo` but type `u8` was found\n --> compiler-test:9:16\n |\n 9 | return a;\n | ^\n" diff --git a/tests/expectations/compiler/group/add.out b/tests/expectations/compiler/group/add.out new file mode 100644 index 0000000000..9f431a28cd --- /dev/null +++ b/tests/expectations/compiler/group/add.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 8a63ddc2632d093e0c5acb7a3a51a41d588188ac05f5e0e8b309bf4ff85755e6 + unrolled_ast: 8a63ddc2632d093e0c5acb7a3a51a41d588188ac05f5e0e8b309bf4ff85755e6 + ssa_ast: 93527404a2273693c87ef75e9b4598a512e27de7d682be813baf7abe536755d8 + flattened_ast: fb8eb972c5e55fb0850d3515770b9dc207fd2ede668ef8fa4da72269a7d5a043 + inlined_ast: fb8eb972c5e55fb0850d3515770b9dc207fd2ede668ef8fa4da72269a7d5a043 + dce_ast: fb8eb972c5e55fb0850d3515770b9dc207fd2ede668ef8fa4da72269a7d5a043 + bytecode: 12e9627877abc9f4f519aeb445a200162f2c962b8ec7ecf49564c35abf14caa4 diff --git a/tests/expectations/compiler/group/assert_eq.out b/tests/expectations/compiler/group/assert_eq.out new file mode 100644 index 0000000000..44726733e2 --- /dev/null +++ b/tests/expectations/compiler/group/assert_eq.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: d46f9e78fe7243c6eaf708f6503761fcf1a264c79af6e709587e8c5cb40ef332 + unrolled_ast: d46f9e78fe7243c6eaf708f6503761fcf1a264c79af6e709587e8c5cb40ef332 + ssa_ast: ae9e7dbaa1df8397ba6bf8c0b76d51efcf363f75cb7e22c2fa3bea29cb0e895d + flattened_ast: 6a94a55b67bf6e0a76416d5f200029415ea0968b89d79a4f22bedc92ae54ff12 + inlined_ast: 6a94a55b67bf6e0a76416d5f200029415ea0968b89d79a4f22bedc92ae54ff12 + dce_ast: 6a94a55b67bf6e0a76416d5f200029415ea0968b89d79a4f22bedc92ae54ff12 + bytecode: ec93d62ff5b281dc94a2adea7451851a6101494b2539a653869f8cf5dc8d64b7 diff --git a/tests/expectations/compiler/group/eq.out b/tests/expectations/compiler/group/eq.out new file mode 100644 index 0000000000..44726733e2 --- /dev/null +++ b/tests/expectations/compiler/group/eq.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: d46f9e78fe7243c6eaf708f6503761fcf1a264c79af6e709587e8c5cb40ef332 + unrolled_ast: d46f9e78fe7243c6eaf708f6503761fcf1a264c79af6e709587e8c5cb40ef332 + ssa_ast: ae9e7dbaa1df8397ba6bf8c0b76d51efcf363f75cb7e22c2fa3bea29cb0e895d + flattened_ast: 6a94a55b67bf6e0a76416d5f200029415ea0968b89d79a4f22bedc92ae54ff12 + inlined_ast: 6a94a55b67bf6e0a76416d5f200029415ea0968b89d79a4f22bedc92ae54ff12 + dce_ast: 6a94a55b67bf6e0a76416d5f200029415ea0968b89d79a4f22bedc92ae54ff12 + bytecode: ec93d62ff5b281dc94a2adea7451851a6101494b2539a653869f8cf5dc8d64b7 diff --git a/tests/expectations/compiler/group/group_mul.out b/tests/expectations/compiler/group/group_mul.out new file mode 100644 index 0000000000..07d851da4a --- /dev/null +++ b/tests/expectations/compiler/group/group_mul.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 5ece34df030e2e1b8c4978490da897a4790980be8e3db6ba59a1bca995e34514 + unrolled_ast: 5ece34df030e2e1b8c4978490da897a4790980be8e3db6ba59a1bca995e34514 + ssa_ast: ea25750a75ae1aad0c436fd1c4af381f3b1ff1f389bbc07344f8d8dae74eef91 + flattened_ast: 10a306c6d15ca0748be2fa6240161fefa8e8918911ee4d19534d00eba3e71b9e + inlined_ast: 10a306c6d15ca0748be2fa6240161fefa8e8918911ee4d19534d00eba3e71b9e + dce_ast: e30460693f49873aed22a929ff3649ec4374083e0e3ec53be38cca118e072a72 + bytecode: f4e3e6e24725b59bf53b5513c9a4cb9311fce35216e95ddb0b8192c9bdddbd60 diff --git a/tests/expectations/compiler/group/input.out b/tests/expectations/compiler/group/input.out new file mode 100644 index 0000000000..44726733e2 --- /dev/null +++ b/tests/expectations/compiler/group/input.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: d46f9e78fe7243c6eaf708f6503761fcf1a264c79af6e709587e8c5cb40ef332 + unrolled_ast: d46f9e78fe7243c6eaf708f6503761fcf1a264c79af6e709587e8c5cb40ef332 + ssa_ast: ae9e7dbaa1df8397ba6bf8c0b76d51efcf363f75cb7e22c2fa3bea29cb0e895d + flattened_ast: 6a94a55b67bf6e0a76416d5f200029415ea0968b89d79a4f22bedc92ae54ff12 + inlined_ast: 6a94a55b67bf6e0a76416d5f200029415ea0968b89d79a4f22bedc92ae54ff12 + dce_ast: 6a94a55b67bf6e0a76416d5f200029415ea0968b89d79a4f22bedc92ae54ff12 + bytecode: ec93d62ff5b281dc94a2adea7451851a6101494b2539a653869f8cf5dc8d64b7 diff --git a/tests/expectations/compiler/group/mul.out b/tests/expectations/compiler/group/mul.out new file mode 100644 index 0000000000..ecc7faa4ca --- /dev/null +++ b/tests/expectations/compiler/group/mul.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 30d2a04c0577317210def067a5155151eb522249e78b6416c45ea69c1c65a10b + unrolled_ast: 30d2a04c0577317210def067a5155151eb522249e78b6416c45ea69c1c65a10b + ssa_ast: e86a8817d2bbcbf9bcf1fa4e6b3491d07691532c8371e8c06ea597c916683dce + flattened_ast: fea850a724c312c42466e22afa2b21380f9637174fd275237cbdf593b8b0c9dd + inlined_ast: fea850a724c312c42466e22afa2b21380f9637174fd275237cbdf593b8b0c9dd + dce_ast: fea850a724c312c42466e22afa2b21380f9637174fd275237cbdf593b8b0c9dd + bytecode: 9dd44babd234f3b33af51d04ffd422308692b59caa5f1d6c3b765d0d8e795644 diff --git a/tests/expectations/compiler/group/mult_by_group_fail.out b/tests/expectations/compiler/group/mult_by_group_fail.out new file mode 100644 index 0000000000..967f0d81c8 --- /dev/null +++ b/tests/expectations/compiler/group/mult_by_group_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372007]: Expected one type from `scalar`, but got `group`\n --> compiler-test:5:30\n |\n 5 | return (_, _)group * a;\n | ^\n" diff --git a/tests/expectations/compiler/group/mult_by_scalar.out b/tests/expectations/compiler/group/mult_by_scalar.out new file mode 100644 index 0000000000..6eb95fb8a5 --- /dev/null +++ b/tests/expectations/compiler/group/mult_by_scalar.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: f15fa0ac6f61834601639168787aaeba57abe293e45e559a2e17456aa61a2d69 + unrolled_ast: f15fa0ac6f61834601639168787aaeba57abe293e45e559a2e17456aa61a2d69 + ssa_ast: e131305123f3f30fd02823739a124336f59950def015a2e16f6ae0d7da276214 + flattened_ast: 2369a4344b21218b00ff06f027f54e81240ee05e02297c039822ebdddc9b6282 + inlined_ast: 2369a4344b21218b00ff06f027f54e81240ee05e02297c039822ebdddc9b6282 + dce_ast: 2369a4344b21218b00ff06f027f54e81240ee05e02297c039822ebdddc9b6282 + bytecode: b3cef3c4dcd879fc92c9a2082e4820b102bf0ce47335b5e432b17a5c1b55da81 diff --git a/tests/expectations/compiler/group/negate.out b/tests/expectations/compiler/group/negate.out new file mode 100644 index 0000000000..4e5ef9005e --- /dev/null +++ b/tests/expectations/compiler/group/negate.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: c1b1b7c0ce432d5ba810075cc7162357ecce82e6e5c9903a8d1f7464dc6b1018 + unrolled_ast: c1b1b7c0ce432d5ba810075cc7162357ecce82e6e5c9903a8d1f7464dc6b1018 + ssa_ast: 809813c98bef149a0da8d00cfb186c4579d9318a8c030278bc66f3feeb2a95cf + flattened_ast: e78c54476d0f2744d56e8e84d153b15c5ef7ec3edea3e0c8998474fbec6c78c7 + inlined_ast: e78c54476d0f2744d56e8e84d153b15c5ef7ec3edea3e0c8998474fbec6c78c7 + dce_ast: e78c54476d0f2744d56e8e84d153b15c5ef7ec3edea3e0c8998474fbec6c78c7 + bytecode: cca4e6a4f6a893c6424f798ff45aa916ec68bc87a03ee43e8f12c8f4bec0b86d diff --git a/tests/expectations/compiler/group/no_space_between_literal.out b/tests/expectations/compiler/group/no_space_between_literal.out new file mode 100644 index 0000000000..d249a36d93 --- /dev/null +++ b/tests/expectations/compiler/group/no_space_between_literal.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370004]: Unexpected white space between terms (0,1) and group\n --> compiler-test:5:27\n |\n 5 | let g: group = (0,1) group;\n | ^" diff --git a/tests/expectations/compiler/group/operator_methods.out b/tests/expectations/compiler/group/operator_methods.out new file mode 100644 index 0000000000..e81c3e1156 --- /dev/null +++ b/tests/expectations/compiler/group/operator_methods.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 7840ca57eb2f32d2f6a3fdcb58a8fda5a15600ca31d8fd3a149129de61c30a13 + unrolled_ast: 7840ca57eb2f32d2f6a3fdcb58a8fda5a15600ca31d8fd3a149129de61c30a13 + ssa_ast: 084403de451d50b3941abf9a007cc223e8ec038cc04e2204bb2483d92b861fb6 + flattened_ast: ec3eec8f9dd98b80fe3621ab58494a4a0b3ff0e60edbec554ddc2a4138dd4fc9 + inlined_ast: ec3eec8f9dd98b80fe3621ab58494a4a0b3ff0e60edbec554ddc2a4138dd4fc9 + dce_ast: 8f4373695fb9563b015f6a125615b320fd1cfae3e968ea36788c23b7895f2c95 + bytecode: b84dd86ea59ed7d470a54bb67005b019859cd5c9377923b37a49f1f44e87fa36 diff --git a/tests/expectations/compiler/group/point_input.out b/tests/expectations/compiler/group/point_input.out new file mode 100644 index 0000000000..708d3441b6 --- /dev/null +++ b/tests/expectations/compiler/group/point_input.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 7da2673aada54bb5a17fd1783f3346b49389a8f5a3777c7e43c717453e627868 + unrolled_ast: 7da2673aada54bb5a17fd1783f3346b49389a8f5a3777c7e43c717453e627868 + ssa_ast: bb05e4f93c78ac321b3dc25afdcf2fac45dc1db9a4c01e139a576594deda8b2b + flattened_ast: 5230f944fffccae1af7e94f6e46f49b69b4f9ac21c32e2c0e7026a2d6e6071d2 + inlined_ast: 5230f944fffccae1af7e94f6e46f49b69b4f9ac21c32e2c0e7026a2d6e6071d2 + dce_ast: 5230f944fffccae1af7e94f6e46f49b69b4f9ac21c32e2c0e7026a2d6e6071d2 + bytecode: ab93704b9e34e4588d4b5e1ae347f661a182ce16fac8a45c1d95232b38564d23 diff --git a/tests/expectations/compiler/group/sub.out b/tests/expectations/compiler/group/sub.out new file mode 100644 index 0000000000..bcf0ef48a7 --- /dev/null +++ b/tests/expectations/compiler/group/sub.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 57a4673db7fd8ba95410ee15a34570a15b168a7734c03bfa1a915a799bc41060 + unrolled_ast: 57a4673db7fd8ba95410ee15a34570a15b168a7734c03bfa1a915a799bc41060 + ssa_ast: c7ef2a2666b54099f49f96b949ecb811c4fb87fd008cfce40c1d3cf4698b2b90 + flattened_ast: a682efda5ec163a12aa62f6a300ed5dd1d26a3195b10fb5ed9b955bee472e69a + inlined_ast: a682efda5ec163a12aa62f6a300ed5dd1d26a3195b10fb5ed9b955bee472e69a + dce_ast: a682efda5ec163a12aa62f6a300ed5dd1d26a3195b10fb5ed9b955bee472e69a + bytecode: 8389291206b5fde26edad53fd7cbfa30f4594fe5818a2cbb1a02b193a0382693 diff --git a/tests/expectations/compiler/group/ternary.out b/tests/expectations/compiler/group/ternary.out new file mode 100644 index 0000000000..093740a8e8 --- /dev/null +++ b/tests/expectations/compiler/group/ternary.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: d480245307585a82b32001602c1578995329184c78e513e5707ac7dba987643b + unrolled_ast: d480245307585a82b32001602c1578995329184c78e513e5707ac7dba987643b + ssa_ast: 06f768499bd95e8a28d39bff5a586be2d3518f2440a12e81694c9330aeeda753 + flattened_ast: e7bb6ed0aa06551efb54e4bfd79adca38b28d5d2ea71f670f7467f6ef4e2de98 + inlined_ast: e7bb6ed0aa06551efb54e4bfd79adca38b28d5d2ea71f670f7467f6ef4e2de98 + dce_ast: e7bb6ed0aa06551efb54e4bfd79adca38b28d5d2ea71f670f7467f6ef4e2de98 + bytecode: cdbe7fcbbe006b5e22012279653209cfb5ba4db73631553c0eddd44a59e4a581 diff --git a/tests/expectations/compiler/group/x_and_y.out b/tests/expectations/compiler/group/x_and_y.out new file mode 100644 index 0000000000..5af134cda3 --- /dev/null +++ b/tests/expectations/compiler/group/x_and_y.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 8fe0d1d02e535dadd5bc65feccbd4fce90ac88a34606c9cf93bdc8678d563855 + unrolled_ast: 8fe0d1d02e535dadd5bc65feccbd4fce90ac88a34606c9cf93bdc8678d563855 + ssa_ast: b3624f2d15152428a37fae2e9bb6bb0bc72384b153bd57246379d6261ceeb9cb + flattened_ast: 02643666dc4ebb26b5d599c20472a82e10947e8ed6779e340e503b05db694198 + inlined_ast: 02643666dc4ebb26b5d599c20472a82e10947e8ed6779e340e503b05db694198 + dce_ast: 02643666dc4ebb26b5d599c20472a82e10947e8ed6779e340e503b05db694198 + bytecode: e96081d4904a9d73c7ce8bb9cd6357c90051b37b97961e254aff910cb2d73827 diff --git a/tests/expectations/compiler/group/x_sign_high.out b/tests/expectations/compiler/group/x_sign_high.out new file mode 100644 index 0000000000..03ee7456c9 --- /dev/null +++ b/tests/expectations/compiler/group/x_sign_high.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 3d30382990b5ec3eadf87cbf0a3cee8ae17e4d783e2fada3f1d790b8c599e637 + unrolled_ast: 3d30382990b5ec3eadf87cbf0a3cee8ae17e4d783e2fada3f1d790b8c599e637 + ssa_ast: f78b3c57cfa8409ba3b603ee42373705efaff4a625fcd29597abd90d63db8316 + flattened_ast: 4571065f061a5059794566a2c12ba08b726d97932b7bf756cea7a934f8e0e022 + inlined_ast: 4571065f061a5059794566a2c12ba08b726d97932b7bf756cea7a934f8e0e022 + dce_ast: 4571065f061a5059794566a2c12ba08b726d97932b7bf756cea7a934f8e0e022 + bytecode: e96081d4904a9d73c7ce8bb9cd6357c90051b37b97961e254aff910cb2d73827 diff --git a/tests/expectations/compiler/group/x_sign_inferred.out b/tests/expectations/compiler/group/x_sign_inferred.out new file mode 100644 index 0000000000..36df68af84 --- /dev/null +++ b/tests/expectations/compiler/group/x_sign_inferred.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: df82f756e1442522f5165ec1edcff81bc4d5424c68b531c8749bd458744ac9ff + unrolled_ast: df82f756e1442522f5165ec1edcff81bc4d5424c68b531c8749bd458744ac9ff + ssa_ast: 2b8f96c04fcd1d1be970ec1c688fbc2a9c29f949cab7afac3770399940d4c6e4 + flattened_ast: 89d0593675ffaa7570e879c725925a7d581dc39a2768679872e9f861bfacc882 + inlined_ast: 89d0593675ffaa7570e879c725925a7d581dc39a2768679872e9f861bfacc882 + dce_ast: 89d0593675ffaa7570e879c725925a7d581dc39a2768679872e9f861bfacc882 + bytecode: e96081d4904a9d73c7ce8bb9cd6357c90051b37b97961e254aff910cb2d73827 diff --git a/tests/expectations/compiler/group/x_sign_low.out b/tests/expectations/compiler/group/x_sign_low.out new file mode 100644 index 0000000000..7553502b9a --- /dev/null +++ b/tests/expectations/compiler/group/x_sign_low.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 025a397209d0b0588108a4f99e637103d60d654fbf284776073e58f209656910 + unrolled_ast: 025a397209d0b0588108a4f99e637103d60d654fbf284776073e58f209656910 + ssa_ast: e729b830c6d0231f85e8a78630c296cfcbd98133b4b6d2559719d39af7af6f14 + flattened_ast: f1333af91e0503c15ec6db132e8b8994b28cb07e06961044108563ec435b5288 + inlined_ast: f1333af91e0503c15ec6db132e8b8994b28cb07e06961044108563ec435b5288 + dce_ast: f1333af91e0503c15ec6db132e8b8994b28cb07e06961044108563ec435b5288 + bytecode: e96081d4904a9d73c7ce8bb9cd6357c90051b37b97961e254aff910cb2d73827 diff --git a/tests/expectations/compiler/group/zero.out b/tests/expectations/compiler/group/zero.out new file mode 100644 index 0000000000..4ccec550be --- /dev/null +++ b/tests/expectations/compiler/group/zero.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 049ebcc8aee7c4a87355659266eca71d3f480dda69a4771deb75ffcb71187d30 + unrolled_ast: 049ebcc8aee7c4a87355659266eca71d3f480dda69a4771deb75ffcb71187d30 + ssa_ast: 43ce028a30c30e2d672fb95b2694fa54803eba972b996466dbd392780b3baf74 + flattened_ast: 8e4057902e9231d5a558ee8f9d24a0019389f9d93d786ae99c7ed1aa989f29c5 + inlined_ast: 8e4057902e9231d5a558ee8f9d24a0019389f9d93d786ae99c7ed1aa989f29c5 + dce_ast: 8e4057902e9231d5a558ee8f9d24a0019389f9d93d786ae99c7ed1aa989f29c5 + bytecode: a94d1d8f79e69b746fcaf829916aae3f08c540aff13fd5d5a828addaded23621 diff --git a/tests/expectations/compiler/input/main.out b/tests/expectations/compiler/input/main.out new file mode 100644 index 0000000000..ed382e9e76 --- /dev/null +++ b/tests/expectations/compiler/input/main.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 281257417e814b4b023b3012dafaf43f595b9081073568ee63d4cce70fd728eb + unrolled_ast: 281257417e814b4b023b3012dafaf43f595b9081073568ee63d4cce70fd728eb + ssa_ast: 3187bd21eb4e27414cee29208aabe782444c2bc3228b372c90a852a632bae9d9 + flattened_ast: 9a1fd8fbc9feaabe3fba14d803512de5dffd9f92f96847a9295e2bdcec2b259a + inlined_ast: 9a1fd8fbc9feaabe3fba14d803512de5dffd9f92f96847a9295e2bdcec2b259a + dce_ast: 9a1fd8fbc9feaabe3fba14d803512de5dffd9f92f96847a9295e2bdcec2b259a + bytecode: 9a1e5bb7b8d932d4afd347a856bfb38db144771f49a0d9589ef14236338e3dcf diff --git a/tests/expectations/compiler/input/main_field.out b/tests/expectations/compiler/input/main_field.out new file mode 100644 index 0000000000..b33a046635 --- /dev/null +++ b/tests/expectations/compiler/input/main_field.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 9170fa221e6b6c73e935324f4ea604bc595014b4b8c0bad157b340a5dd66ad25 + unrolled_ast: 9170fa221e6b6c73e935324f4ea604bc595014b4b8c0bad157b340a5dd66ad25 + ssa_ast: 804feefc20b612249c7c44144033728c6e1354b152f196e262f135c652d2ecba + flattened_ast: a2f0d1256d3e08215e96cf625f61eea6f55c786e1f23f028d110252a40ad75c7 + inlined_ast: a2f0d1256d3e08215e96cf625f61eea6f55c786e1f23f028d110252a40ad75c7 + dce_ast: a2f0d1256d3e08215e96cf625f61eea6f55c786e1f23f028d110252a40ad75c7 + bytecode: 33b0428205d23a2e03c265edac88f7b98fcfb7769b86ee0508128e68069b5b46 diff --git a/tests/expectations/compiler/integers/i128/add.out b/tests/expectations/compiler/integers/i128/add.out new file mode 100644 index 0000000000..b8185295ff --- /dev/null +++ b/tests/expectations/compiler/integers/i128/add.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 09800387836633ae681573ed23071c36ba768b04e4d1ace2e68dd81ff58e1f8f + unrolled_ast: 09800387836633ae681573ed23071c36ba768b04e4d1ace2e68dd81ff58e1f8f + ssa_ast: 2f02ad7d8893241fe0701045abf0417e023fc9952e3def17623d4f24df34964b + flattened_ast: 3848bb69bf1487f5d678279b17a82d7d8996b0ab03c0aff50f18619d9b31a3d8 + inlined_ast: 3848bb69bf1487f5d678279b17a82d7d8996b0ab03c0aff50f18619d9b31a3d8 + dce_ast: 3848bb69bf1487f5d678279b17a82d7d8996b0ab03c0aff50f18619d9b31a3d8 + bytecode: 6f3edf18242106629627faa1e59807276fabe9703a44c467ab0869035a916e59 diff --git a/tests/expectations/compiler/integers/i128/and.out b/tests/expectations/compiler/integers/i128/and.out new file mode 100644 index 0000000000..1bf9b5072a --- /dev/null +++ b/tests/expectations/compiler/integers/i128/and.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: b807f509b3094310b447d8eaa0605962905cfb9abbc45e214c8e307c43695515 + unrolled_ast: b807f509b3094310b447d8eaa0605962905cfb9abbc45e214c8e307c43695515 + ssa_ast: 480bc825f7733fbe9440be43fc32101d634c72cf63c22042865eeb8d54700454 + flattened_ast: 6f04dd20f5e62b04236fcf7c47eba78eb6af0555d6278afc2fc347a691790dbd + inlined_ast: 6f04dd20f5e62b04236fcf7c47eba78eb6af0555d6278afc2fc347a691790dbd + dce_ast: 6f04dd20f5e62b04236fcf7c47eba78eb6af0555d6278afc2fc347a691790dbd + bytecode: d3d6361fcc04fcc6102c91ec93ca087f2248b8868883a216282223937942b9ff diff --git a/tests/expectations/compiler/integers/i128/console_assert.out b/tests/expectations/compiler/integers/i128/console_assert.out new file mode 100644 index 0000000000..a9a4a32064 --- /dev/null +++ b/tests/expectations/compiler/integers/i128/console_assert.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: c240883b826b167ea2db9025caf789512a88cb52568c9f67e3c8a3b94efcbe54 + unrolled_ast: c240883b826b167ea2db9025caf789512a88cb52568c9f67e3c8a3b94efcbe54 + ssa_ast: 20e0b2fb427dcf7c1c7ed9a4e3c2f22f3980b4402fe8b8415c618baa4676aa34 + flattened_ast: d7ea40e2c1f9478f7c14c6a29d1c4cb6616aa820a00609531f29444be505c258 + inlined_ast: d7ea40e2c1f9478f7c14c6a29d1c4cb6616aa820a00609531f29444be505c258 + dce_ast: d7ea40e2c1f9478f7c14c6a29d1c4cb6616aa820a00609531f29444be505c258 + bytecode: d865e47d55dd534c79a7f0abc2a97c569a9195a3579412a415379b6131003628 diff --git a/tests/expectations/compiler/integers/i128/div.out b/tests/expectations/compiler/integers/i128/div.out new file mode 100644 index 0000000000..dc501fac69 --- /dev/null +++ b/tests/expectations/compiler/integers/i128/div.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: d3f8cbc4837ba1b9754b3855afc124ad5b80b2993588799f5418eeda0f2633fe + unrolled_ast: d3f8cbc4837ba1b9754b3855afc124ad5b80b2993588799f5418eeda0f2633fe + ssa_ast: 5d2245475f2786417fbd3f2bfb1fb8c04bbdd4f5604c1e199057c7005cd528a3 + flattened_ast: 7c6e8b9ac6e3cbfe263e20973e0bae98348b6713c4d5daf9359448412284152d + inlined_ast: 7c6e8b9ac6e3cbfe263e20973e0bae98348b6713c4d5daf9359448412284152d + dce_ast: 7c6e8b9ac6e3cbfe263e20973e0bae98348b6713c4d5daf9359448412284152d + bytecode: 6a831f79614e36f29287d0c38c39352d1563a85cfd3d1ffcda037ce3dd6f32bd diff --git a/tests/expectations/compiler/integers/i128/eq.out b/tests/expectations/compiler/integers/i128/eq.out new file mode 100644 index 0000000000..2b8b8ffb45 --- /dev/null +++ b/tests/expectations/compiler/integers/i128/eq.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: dda837a8180f20e72977f385e2c8a8e6a04ff68df8dc0fda6763ff7de5ce063d + unrolled_ast: dda837a8180f20e72977f385e2c8a8e6a04ff68df8dc0fda6763ff7de5ce063d + ssa_ast: bba57260a95706f4f05130a3faa698016f3d2bf3c6e9dabb2741c205d0600f5f + flattened_ast: 75ef9e42f15a6816413b79c45cde5032579254e797d83831a11dcf91926ac180 + inlined_ast: 75ef9e42f15a6816413b79c45cde5032579254e797d83831a11dcf91926ac180 + dce_ast: 75ef9e42f15a6816413b79c45cde5032579254e797d83831a11dcf91926ac180 + bytecode: 0497ce2fbdcd7212261295b10194407589572843d8ab24596f194c486ca2ea8a diff --git a/tests/expectations/compiler/integers/i128/ge.out b/tests/expectations/compiler/integers/i128/ge.out new file mode 100644 index 0000000000..c319612259 --- /dev/null +++ b/tests/expectations/compiler/integers/i128/ge.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: f726529ab42bbd445cd3c0aeed70d2cd6d1c75746bbb89ef8721c7229ea21016 + unrolled_ast: f726529ab42bbd445cd3c0aeed70d2cd6d1c75746bbb89ef8721c7229ea21016 + ssa_ast: 53e214ec2ba7534cc6379668320cb4a1034467a36d099085b5ac8f36b2827654 + flattened_ast: a6454ab1c865e41906eaabe02ad435c8ab450be97f5673fb98fb1f7c49344ffa + inlined_ast: a6454ab1c865e41906eaabe02ad435c8ab450be97f5673fb98fb1f7c49344ffa + dce_ast: a6454ab1c865e41906eaabe02ad435c8ab450be97f5673fb98fb1f7c49344ffa + bytecode: 305c7f46ca9ad5640019699025196349bbc986ebc1532a17600e41d048df3d97 diff --git a/tests/expectations/compiler/integers/i128/gt.out b/tests/expectations/compiler/integers/i128/gt.out new file mode 100644 index 0000000000..9be6e28e51 --- /dev/null +++ b/tests/expectations/compiler/integers/i128/gt.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: a999ba6783e75155ac4b78f40302f4644deede47b94296098302398581e96e74 + unrolled_ast: a999ba6783e75155ac4b78f40302f4644deede47b94296098302398581e96e74 + ssa_ast: 2325557531c7246271a84aa971309952cfaceb99a1e64b5b3ef57487faa45637 + flattened_ast: 5ee1d1befc3103cac9a91bfe8b7e165a7cc46c8cd524043768255ea9bd48936d + inlined_ast: 5ee1d1befc3103cac9a91bfe8b7e165a7cc46c8cd524043768255ea9bd48936d + dce_ast: 5ee1d1befc3103cac9a91bfe8b7e165a7cc46c8cd524043768255ea9bd48936d + bytecode: 9abaadb0253d49dfeee51800854119b7464f14158804826e78f6ab145ffe63e9 diff --git a/tests/expectations/compiler/integers/i128/le.out b/tests/expectations/compiler/integers/i128/le.out new file mode 100644 index 0000000000..2a317cc1d6 --- /dev/null +++ b/tests/expectations/compiler/integers/i128/le.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 29dc76537853317079fb5eecf438efeff2a20536e87705180122db5661a85433 + unrolled_ast: 29dc76537853317079fb5eecf438efeff2a20536e87705180122db5661a85433 + ssa_ast: a67527b38b38525dc2a8b252ce60795d8f1f57806981550734b236920ed69925 + flattened_ast: 9fb5a9189a34aa4e2b43d9e03522215ff65af82fa8b5ec4b4760299f482a0ba1 + inlined_ast: 9fb5a9189a34aa4e2b43d9e03522215ff65af82fa8b5ec4b4760299f482a0ba1 + dce_ast: 9fb5a9189a34aa4e2b43d9e03522215ff65af82fa8b5ec4b4760299f482a0ba1 + bytecode: 8f31c696966ee1357b25d09dbad473b72482970eafed6a581aa90d13134dfb09 diff --git a/tests/expectations/compiler/integers/i128/lt.out b/tests/expectations/compiler/integers/i128/lt.out new file mode 100644 index 0000000000..e853064431 --- /dev/null +++ b/tests/expectations/compiler/integers/i128/lt.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: dba5a3bb2de91ecfd6e2943fe661f46b369279e6b60c904d8e38c7859d2a7ab4 + unrolled_ast: dba5a3bb2de91ecfd6e2943fe661f46b369279e6b60c904d8e38c7859d2a7ab4 + ssa_ast: 2d334ebb3fb5aea4f78dfcf9ef83267de38bc1d914fe990743562755767cb322 + flattened_ast: 3f1992f161804d90681b7500f183f6809881b43689b7dff4b0e0350f12a662d2 + inlined_ast: 3f1992f161804d90681b7500f183f6809881b43689b7dff4b0e0350f12a662d2 + dce_ast: 3f1992f161804d90681b7500f183f6809881b43689b7dff4b0e0350f12a662d2 + bytecode: 3b4376c236be3332bde01a7d6beabda973f64e777ee81bc17c2b082c8fb34d80 diff --git a/tests/expectations/compiler/integers/i128/max.out b/tests/expectations/compiler/integers/i128/max.out new file mode 100644 index 0000000000..7d1b6c08b1 --- /dev/null +++ b/tests/expectations/compiler/integers/i128/max.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: fe3697f7d1caadc5b0be81ae4e63d63fc6d0d1a9962c92f146224436f8b0c41d + unrolled_ast: fe3697f7d1caadc5b0be81ae4e63d63fc6d0d1a9962c92f146224436f8b0c41d + ssa_ast: b91dad585db06fc37ad1deabcf694fb17ff054ebc527815c608a6b47cc647d12 + flattened_ast: c3f90dfda9068aed1550ae25cb0e4125e9bce765e4a00616c6e2f542d9921a19 + inlined_ast: c3f90dfda9068aed1550ae25cb0e4125e9bce765e4a00616c6e2f542d9921a19 + dce_ast: c3f90dfda9068aed1550ae25cb0e4125e9bce765e4a00616c6e2f542d9921a19 + bytecode: 4a17c14a9beba81a7b8177ff19eb147431b1d5769cca507dfe8cbce02a29ae1d diff --git a/tests/expectations/compiler/integers/i128/max_fail.out b/tests/expectations/compiler/integers/i128/max_fail.out new file mode 100644 index 0000000000..1446b990cf --- /dev/null +++ b/tests/expectations/compiler/integers/i128/max_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372008]: The value 170141183460469231731687303715884105728 is not a valid `i128`\n --> compiler-test:5:23\n |\n 5 | let a: i128 = 170141183460469231731687303715884105728i128;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/integers/i128/min.out b/tests/expectations/compiler/integers/i128/min.out new file mode 100644 index 0000000000..1b5b25c5a9 --- /dev/null +++ b/tests/expectations/compiler/integers/i128/min.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: a38e415c9dddc3301e239a2bc4e8bc4cda3832595c80c6767b0498a31e9bb2ae + unrolled_ast: a38e415c9dddc3301e239a2bc4e8bc4cda3832595c80c6767b0498a31e9bb2ae + ssa_ast: 35e014ae5d9539afb5d94a52c07dcac30796fd0346f871d8dd7475696939879b + flattened_ast: 6f947b23102ec39346fd657f2329f670a18704f2cd2caa5a35b6feebc691526b + inlined_ast: 6f947b23102ec39346fd657f2329f670a18704f2cd2caa5a35b6feebc691526b + dce_ast: 6f947b23102ec39346fd657f2329f670a18704f2cd2caa5a35b6feebc691526b + bytecode: 5dd12bea92c7275bd2ef924ed8006f84593cd73bd7a517088f3350735d320ed6 diff --git a/tests/expectations/compiler/integers/i128/min_fail.out b/tests/expectations/compiler/integers/i128/min_fail.out new file mode 100644 index 0000000000..9ea151be6f --- /dev/null +++ b/tests/expectations/compiler/integers/i128/min_fail.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 5cb7f18400477e5c233d7c5a40f7b0fc1dd380d0dac1132461eb497048630e19 + unrolled_ast: 5cb7f18400477e5c233d7c5a40f7b0fc1dd380d0dac1132461eb497048630e19 + ssa_ast: 58deb613e423d7a5c680ab4efb0df87d54f4567a87337cac43b5385a341bda08 + flattened_ast: 7f7e8f021084d372d2951853e4d5912dd13be8f66995b0495f60c7559d83ec9b + inlined_ast: 7f7e8f021084d372d2951853e4d5912dd13be8f66995b0495f60c7559d83ec9b + dce_ast: 7f7e8f021084d372d2951853e4d5912dd13be8f66995b0495f60c7559d83ec9b + bytecode: 8514f62e239ece8b0cd2f7bc3c6b259ceeca8b9d921b0a3a167875814febe9d2 diff --git a/tests/expectations/compiler/integers/i128/mul.out b/tests/expectations/compiler/integers/i128/mul.out new file mode 100644 index 0000000000..2bd9ee8b11 --- /dev/null +++ b/tests/expectations/compiler/integers/i128/mul.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 75a27a782802300b3cc172cd9d316882b1e6d9060fb4cc846ef8d2d7db26b0fe + unrolled_ast: 75a27a782802300b3cc172cd9d316882b1e6d9060fb4cc846ef8d2d7db26b0fe + ssa_ast: 724df8594df1fed020d4ad386ea25eb54359eec65040ec005f50acc7549c8d9b + flattened_ast: e15ca26e2a432dd7093e23fbaa617defdc16b63473ac6a1c719e7a9a3ddbac0f + inlined_ast: e15ca26e2a432dd7093e23fbaa617defdc16b63473ac6a1c719e7a9a3ddbac0f + dce_ast: e15ca26e2a432dd7093e23fbaa617defdc16b63473ac6a1c719e7a9a3ddbac0f + bytecode: cf239c5d4821dc939540cb2317a2713906d1f552cf8f31e1ba4e0f37a92b8a35 diff --git a/tests/expectations/compiler/integers/i128/ne.out b/tests/expectations/compiler/integers/i128/ne.out new file mode 100644 index 0000000000..d31c6c2921 --- /dev/null +++ b/tests/expectations/compiler/integers/i128/ne.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: e7854ad0c98fd2939313666c6c315e1671ca402941cf4a2832c02c1158a933cd + unrolled_ast: e7854ad0c98fd2939313666c6c315e1671ca402941cf4a2832c02c1158a933cd + ssa_ast: ee79e0cd84ec73b44d0ca00d306cf72095160c5d08e8e02e970c8e631b89f72c + flattened_ast: e8f1ed69f803fd1b7bb8a7fcefc489b5d6b355ea35838368ba025f972459bc88 + inlined_ast: e8f1ed69f803fd1b7bb8a7fcefc489b5d6b355ea35838368ba025f972459bc88 + dce_ast: e8f1ed69f803fd1b7bb8a7fcefc489b5d6b355ea35838368ba025f972459bc88 + bytecode: 1fdfc70503d61138eccaa03367363c5e3b5c46f439fa5e9666f34f1b795e4998 diff --git a/tests/expectations/compiler/integers/i128/negate.out b/tests/expectations/compiler/integers/i128/negate.out new file mode 100644 index 0000000000..856f2f1802 --- /dev/null +++ b/tests/expectations/compiler/integers/i128/negate.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 6d2d9fdf337248c6f6ba13f0dba6164547855a3352467dff33d6929810f3e864 + unrolled_ast: 6d2d9fdf337248c6f6ba13f0dba6164547855a3352467dff33d6929810f3e864 + ssa_ast: 03858ad60cbdfddf5b82d406c5bf0e58f7a5261ba4b7edc474efb2ef090f969d + flattened_ast: 8478013efd02e41b60fe74a43dc9ff3233dd62da8d5f40bc0654f08f8a11878c + inlined_ast: 8478013efd02e41b60fe74a43dc9ff3233dd62da8d5f40bc0654f08f8a11878c + dce_ast: 8478013efd02e41b60fe74a43dc9ff3233dd62da8d5f40bc0654f08f8a11878c + bytecode: 7cd3cce37a87bb48f44b2f44e37be5e1821abfc3d73d7ab6a5e7e96c72f8f091 diff --git a/tests/expectations/compiler/integers/i128/negate_min_fail.out b/tests/expectations/compiler/integers/i128/negate_min_fail.out new file mode 100644 index 0000000000..ad647bb67f --- /dev/null +++ b/tests/expectations/compiler/integers/i128/negate_min_fail.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 9c94ddcfd6eb76da0b195471d1d1c94e3f1900a33a5379e54c940312bd46c958 + unrolled_ast: 9c94ddcfd6eb76da0b195471d1d1c94e3f1900a33a5379e54c940312bd46c958 + ssa_ast: 7f992f62357bc9183f143a71f6577ef2d83eb39e7a1c84414adee1cfddd65e89 + flattened_ast: 23a42e341e4dea017a3214189f0b64bbb360fe44025f73f54720a028ee8aadec + inlined_ast: 23a42e341e4dea017a3214189f0b64bbb360fe44025f73f54720a028ee8aadec + dce_ast: 23a42e341e4dea017a3214189f0b64bbb360fe44025f73f54720a028ee8aadec + bytecode: 494ae1254dbca57e7dedbc2d9e21e837803b3124a21a87bdba507780a7e14fd7 diff --git a/tests/expectations/compiler/integers/i128/negate_zero.out b/tests/expectations/compiler/integers/i128/negate_zero.out new file mode 100644 index 0000000000..547cccb84a --- /dev/null +++ b/tests/expectations/compiler/integers/i128/negate_zero.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 32b1746d931c753cafb85b142d42ebab32a4c6a52be67a8c47c882b7ad9c2304 + unrolled_ast: 32b1746d931c753cafb85b142d42ebab32a4c6a52be67a8c47c882b7ad9c2304 + ssa_ast: 7f0455d1f0d0cacaa894ab0e3861d22dd57de9b4df4b286ecd0fbc24ff6f4ba3 + flattened_ast: bc8b229a1e7bff1c3f42633678191dd86119b6b0055447ddf00318f2d1e553c5 + inlined_ast: bc8b229a1e7bff1c3f42633678191dd86119b6b0055447ddf00318f2d1e553c5 + dce_ast: bc8b229a1e7bff1c3f42633678191dd86119b6b0055447ddf00318f2d1e553c5 + bytecode: e6204df8c165d3c5fc23fa09299a67fc651c5ab297ce3d7ddab7766d7b360857 diff --git a/tests/expectations/compiler/integers/i128/no_space_between_literal.out b/tests/expectations/compiler/integers/i128/no_space_between_literal.out new file mode 100644 index 0000000000..c2bb8dd318 --- /dev/null +++ b/tests/expectations/compiler/integers/i128/no_space_between_literal.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected : -- found '='\n --> compiler-test:5:15\n |\n 5 | let i = 1 i128;\n | ^" diff --git a/tests/expectations/compiler/integers/i128/operator_methods.out b/tests/expectations/compiler/integers/i128/operator_methods.out new file mode 100644 index 0000000000..b14a745106 --- /dev/null +++ b/tests/expectations/compiler/integers/i128/operator_methods.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 6b89d3bab13e52897bf04b9235e31a3e5bfdab7fe60a2dcc9ab926be141abb4f + unrolled_ast: 6b89d3bab13e52897bf04b9235e31a3e5bfdab7fe60a2dcc9ab926be141abb4f + ssa_ast: 0b44d837ff2020c4a6ede3595577a20231ea57034673a0471fd73e6234ae6232 + flattened_ast: 20be84b5b3ee1bd280628f71c0d075cb74ff40ffa718d8b2efa58352ffd79fba + inlined_ast: 20be84b5b3ee1bd280628f71c0d075cb74ff40ffa718d8b2efa58352ffd79fba + dce_ast: 1771d27db1197238272501b14e8d7da633f18a5c0454038b712cd107599450a5 + bytecode: 3ee7be6b9dbdaa4a046c5ca32ed10de40d57c80c13aba2fa5ee7fd80dd5c1ad3 diff --git a/tests/expectations/compiler/integers/i128/or.out b/tests/expectations/compiler/integers/i128/or.out new file mode 100644 index 0000000000..6669e0eedd --- /dev/null +++ b/tests/expectations/compiler/integers/i128/or.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 1c282a2eae95ea57f270a429860443fd6a81ee9db83a94935cb7c689ed1473d5 + unrolled_ast: 1c282a2eae95ea57f270a429860443fd6a81ee9db83a94935cb7c689ed1473d5 + ssa_ast: 2a8017edf038722b73227c0308af6161a670372d2d99cd496a736d7d86494642 + flattened_ast: c9845d2324396337d84943c519c8329cf5dbbd900458789db557e9f78e6d6a31 + inlined_ast: c9845d2324396337d84943c519c8329cf5dbbd900458789db557e9f78e6d6a31 + dce_ast: c9845d2324396337d84943c519c8329cf5dbbd900458789db557e9f78e6d6a31 + bytecode: d262f60575627f8c4757304c45cd849e4b92b9ea44f0b342b12fa14c49d717ab diff --git a/tests/expectations/compiler/integers/i128/pow.out b/tests/expectations/compiler/integers/i128/pow.out new file mode 100644 index 0000000000..3fa979699c --- /dev/null +++ b/tests/expectations/compiler/integers/i128/pow.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: e3b5454917a0cf6c9476a28ad4e31287c0bc902b0d0b333797e681e88fa64ad5 + unrolled_ast: e3b5454917a0cf6c9476a28ad4e31287c0bc902b0d0b333797e681e88fa64ad5 + ssa_ast: 1a98abd515be7b4f957f31fa905afaa59f4c3b855131f748f5d097b90b7d675e + flattened_ast: e45a94f688f9e5c6774951a95185f0ef6a21add5824cb49e658bf29371de1226 + inlined_ast: e45a94f688f9e5c6774951a95185f0ef6a21add5824cb49e658bf29371de1226 + dce_ast: e45a94f688f9e5c6774951a95185f0ef6a21add5824cb49e658bf29371de1226 + bytecode: dfd9659f15094e672f456a9603906d5babfca253c2b3098bc07e49aac07ca022 diff --git a/tests/expectations/compiler/integers/i128/rem.out b/tests/expectations/compiler/integers/i128/rem.out new file mode 100644 index 0000000000..5fd9017f58 --- /dev/null +++ b/tests/expectations/compiler/integers/i128/rem.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: b3fc5f1c805eb5f041af70eaae5c932f97d3c8ecbfd87cd0068c5147bab965c2 + unrolled_ast: b3fc5f1c805eb5f041af70eaae5c932f97d3c8ecbfd87cd0068c5147bab965c2 + ssa_ast: 748a5b3183f1217b43b8ef06190693a554b2fce723824bf65e8019c65c44d4e1 + flattened_ast: 282c6fc22a149fa5c6efd58f3c9b40eccb417be5ac26095ee0ec18ecc3567e42 + inlined_ast: 282c6fc22a149fa5c6efd58f3c9b40eccb417be5ac26095ee0ec18ecc3567e42 + dce_ast: 282c6fc22a149fa5c6efd58f3c9b40eccb417be5ac26095ee0ec18ecc3567e42 + bytecode: 632f8400deb0e0e0aebadd45f557698474142e78ea2628de28c2cd4f6617d413 diff --git a/tests/expectations/compiler/integers/i128/shl.out b/tests/expectations/compiler/integers/i128/shl.out new file mode 100644 index 0000000000..5cc5e7b1bf --- /dev/null +++ b/tests/expectations/compiler/integers/i128/shl.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 5606e097af75ef020355df5e2f34637790e8bbe96fda0c42b2ebf91062fbfba6 + unrolled_ast: 5606e097af75ef020355df5e2f34637790e8bbe96fda0c42b2ebf91062fbfba6 + ssa_ast: 61f6fef784d65e8455466cbad402d307a756d395281c6bd45480846f16f1c68e + flattened_ast: 839df4abb90146f72f9ff56b2f96c5908a03a30cfd04e6aaa846cfb8170c40d1 + inlined_ast: 839df4abb90146f72f9ff56b2f96c5908a03a30cfd04e6aaa846cfb8170c40d1 + dce_ast: 839df4abb90146f72f9ff56b2f96c5908a03a30cfd04e6aaa846cfb8170c40d1 + bytecode: f29d4cc186e6bc24ca0b6e70e5845295b29a2c1f1e9f46f635c90e66ef0e588d diff --git a/tests/expectations/compiler/integers/i128/shr.out b/tests/expectations/compiler/integers/i128/shr.out new file mode 100644 index 0000000000..db294907eb --- /dev/null +++ b/tests/expectations/compiler/integers/i128/shr.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 078c448f122af181952bd73df7b827f019828d16480e4220caa13372f683fd31 + unrolled_ast: 078c448f122af181952bd73df7b827f019828d16480e4220caa13372f683fd31 + ssa_ast: 648f2cd65c4103b62eeb508112a2945b87282b86b7b88466da7d631598304327 + flattened_ast: 1c47bcea52c7244a19943927beb9c2036b01000ee022755e02a07b678fe089ce + inlined_ast: 1c47bcea52c7244a19943927beb9c2036b01000ee022755e02a07b678fe089ce + dce_ast: 1c47bcea52c7244a19943927beb9c2036b01000ee022755e02a07b678fe089ce + bytecode: 6a4fa49e165ac0c731dd78a8c05ced2418d69ced736d07ddbb3a07c50bcf6b37 diff --git a/tests/expectations/compiler/integers/i128/sub.out b/tests/expectations/compiler/integers/i128/sub.out new file mode 100644 index 0000000000..a73431de09 --- /dev/null +++ b/tests/expectations/compiler/integers/i128/sub.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 53a2d219204076fa6eed972bb3383814d159a6f40f42c0cf4296f816ac8d2916 + unrolled_ast: 53a2d219204076fa6eed972bb3383814d159a6f40f42c0cf4296f816ac8d2916 + ssa_ast: 3ac91e399deb372a4ceecbb6462941572da0d2a384b8fe6d592ea24f27a0a7d4 + flattened_ast: 29e10f37e5eb1c3d7cfafe3e5ca42ec27c5c3887d57601c18e3179233c4f151e + inlined_ast: 29e10f37e5eb1c3d7cfafe3e5ca42ec27c5c3887d57601c18e3179233c4f151e + dce_ast: 29e10f37e5eb1c3d7cfafe3e5ca42ec27c5c3887d57601c18e3179233c4f151e + bytecode: 07685949b1e45db55522bf01298e4cd0ba6b2818a8212365c12f468ed061a731 diff --git a/tests/expectations/compiler/integers/i128/ternary.out b/tests/expectations/compiler/integers/i128/ternary.out new file mode 100644 index 0000000000..9f6b06e03d --- /dev/null +++ b/tests/expectations/compiler/integers/i128/ternary.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: ab0c99a87e7816beaa6618981c8d8d3cf0fbe4cbb1a26d15891248791a1b530d + unrolled_ast: ab0c99a87e7816beaa6618981c8d8d3cf0fbe4cbb1a26d15891248791a1b530d + ssa_ast: 1c907200062ca8354448ecdfc23e2f943d10154850a67f6e7da0eb215851a959 + flattened_ast: 361730e669b78f7a9beab3d9fa6a26bb68ec6003a859681f1146e87a08583086 + inlined_ast: 361730e669b78f7a9beab3d9fa6a26bb68ec6003a859681f1146e87a08583086 + dce_ast: 361730e669b78f7a9beab3d9fa6a26bb68ec6003a859681f1146e87a08583086 + bytecode: 1b5ee12236a81275c1c8597e6956c715050077486831d3900e20d9053433ac2d diff --git a/tests/expectations/compiler/integers/i128/xor.out b/tests/expectations/compiler/integers/i128/xor.out new file mode 100644 index 0000000000..6caa17c7a1 --- /dev/null +++ b/tests/expectations/compiler/integers/i128/xor.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 226d5ca7f311e2eb18a4069f233f0ea2142639faf64c1f37c975c9c6ef960fcf + unrolled_ast: 226d5ca7f311e2eb18a4069f233f0ea2142639faf64c1f37c975c9c6ef960fcf + ssa_ast: 12beb8682c2ba511dafaecf4000a5ff4172e6ce70f00cbd71b68904de34411d2 + flattened_ast: 42ad29e996e2e6159bbb1504538e6109783ade2e7bde85c15f6a39393c5f8eb2 + inlined_ast: 42ad29e996e2e6159bbb1504538e6109783ade2e7bde85c15f6a39393c5f8eb2 + dce_ast: 42ad29e996e2e6159bbb1504538e6109783ade2e7bde85c15f6a39393c5f8eb2 + bytecode: 6431d8554d06ea3522030d1a433ef1f39fe17ac974b4ac60f8d18afc2a5e1f71 diff --git a/tests/expectations/compiler/integers/i16/add.out b/tests/expectations/compiler/integers/i16/add.out new file mode 100644 index 0000000000..7d63b97d36 --- /dev/null +++ b/tests/expectations/compiler/integers/i16/add.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: a2e35f61bd0b4923c588b8cd59fcbdd26bece9be0b9ddd3c99f81b0dd56338d5 + unrolled_ast: a2e35f61bd0b4923c588b8cd59fcbdd26bece9be0b9ddd3c99f81b0dd56338d5 + ssa_ast: 83733fe8a9f0c6774a59023658db4ba6a6b64c139fe12a57854509ae73b8bf6d + flattened_ast: 6cf98da8956399be277b0899491aaf166274765f54d7faf79af993c554c8d8ec + inlined_ast: 6cf98da8956399be277b0899491aaf166274765f54d7faf79af993c554c8d8ec + dce_ast: 6cf98da8956399be277b0899491aaf166274765f54d7faf79af993c554c8d8ec + bytecode: a61fbd6923f8bf087a21d6e2779b62e264d63a92071f34a762adc7eaf9cbbe28 diff --git a/tests/expectations/compiler/integers/i16/and.out b/tests/expectations/compiler/integers/i16/and.out new file mode 100644 index 0000000000..06dab435d8 --- /dev/null +++ b/tests/expectations/compiler/integers/i16/and.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: b355dc40937fc9c274f66259f6712fdb51d01603d3b466c1dbb4f964b17e1a79 + unrolled_ast: b355dc40937fc9c274f66259f6712fdb51d01603d3b466c1dbb4f964b17e1a79 + ssa_ast: 29dce3af75d158d4d722934e72377d4811fad6d0f5544a83e215d0befebe18fa + flattened_ast: 9f31c0e8d7a641d6eb4f80ace284a894eb5b3d524ec9c332a054777226296abc + inlined_ast: 9f31c0e8d7a641d6eb4f80ace284a894eb5b3d524ec9c332a054777226296abc + dce_ast: 9f31c0e8d7a641d6eb4f80ace284a894eb5b3d524ec9c332a054777226296abc + bytecode: 5dad432ec3e9573b92eac45865218e8dc3c93ef477d7293d2a6867528faf0826 diff --git a/tests/expectations/compiler/integers/i16/console_assert.out b/tests/expectations/compiler/integers/i16/console_assert.out new file mode 100644 index 0000000000..55f493cfd8 --- /dev/null +++ b/tests/expectations/compiler/integers/i16/console_assert.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: e68750d37fbd7249a0a36126a496257714d1bed91c92f81eaaac96bc5a315a3d + unrolled_ast: e68750d37fbd7249a0a36126a496257714d1bed91c92f81eaaac96bc5a315a3d + ssa_ast: 7660a58caad701434628d57b8cdaa2263873e648c6a7f62043592e625c077ade + flattened_ast: 738f79592b405b5349ae190f14796978a3c0b5c38e0e0c0d22bb3e8193c5fb73 + inlined_ast: 738f79592b405b5349ae190f14796978a3c0b5c38e0e0c0d22bb3e8193c5fb73 + dce_ast: 738f79592b405b5349ae190f14796978a3c0b5c38e0e0c0d22bb3e8193c5fb73 + bytecode: 9d7d64b8d70d040e6e587e10d48e14c46ff63bffe4379f954f7749deffdf593b diff --git a/tests/expectations/compiler/integers/i16/div.out b/tests/expectations/compiler/integers/i16/div.out new file mode 100644 index 0000000000..6ae94ac3f5 --- /dev/null +++ b/tests/expectations/compiler/integers/i16/div.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: c2f3bd5431b74d90ec46c36f3dabd0b8ef55360dd67e8823183f2d574399f10a + unrolled_ast: c2f3bd5431b74d90ec46c36f3dabd0b8ef55360dd67e8823183f2d574399f10a + ssa_ast: 10c1684314e40ac52692ecbaef808dde4254dcb703126a65f6edc204cb71ff79 + flattened_ast: 35af048146e13b8e29c6e8afacd73bc1bccc033b657232068415a0ed15fa74e7 + inlined_ast: 35af048146e13b8e29c6e8afacd73bc1bccc033b657232068415a0ed15fa74e7 + dce_ast: 35af048146e13b8e29c6e8afacd73bc1bccc033b657232068415a0ed15fa74e7 + bytecode: 2e49ec96b230329d29aafbfb7dd025dfc1d94a410f17972055b103e5a1629646 diff --git a/tests/expectations/compiler/integers/i16/eq.out b/tests/expectations/compiler/integers/i16/eq.out new file mode 100644 index 0000000000..7b4080b499 --- /dev/null +++ b/tests/expectations/compiler/integers/i16/eq.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 4e987bf633b7f75ffe9c26430fdf31f952690856f5f3e81e70a37ce4e6db7a9b + unrolled_ast: 4e987bf633b7f75ffe9c26430fdf31f952690856f5f3e81e70a37ce4e6db7a9b + ssa_ast: 5c70a71177bc58e06867ec661facaa14945d01a5ec9432eb0d1bf589d8d295d8 + flattened_ast: 0bd3d3f23e14c3475259c9dc71d61cd3f2fcd3e3d3cf69da32481f033dcd2044 + inlined_ast: 0bd3d3f23e14c3475259c9dc71d61cd3f2fcd3e3d3cf69da32481f033dcd2044 + dce_ast: 0bd3d3f23e14c3475259c9dc71d61cd3f2fcd3e3d3cf69da32481f033dcd2044 + bytecode: ae49e3dc309ac1fae7c4285e37e5a2dca653f25dfb4fbed5cab087d203c4c94f diff --git a/tests/expectations/compiler/integers/i16/ge.out b/tests/expectations/compiler/integers/i16/ge.out new file mode 100644 index 0000000000..6c2b3c5fc2 --- /dev/null +++ b/tests/expectations/compiler/integers/i16/ge.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 42ef6e17e9ce3447c220f1aba36faec7ae1359a2f82ca73104b7dd3aeebf2fa7 + unrolled_ast: 42ef6e17e9ce3447c220f1aba36faec7ae1359a2f82ca73104b7dd3aeebf2fa7 + ssa_ast: ca342636bc6d95e433b72d65d99440689af0da3ebce4d6fdb2ffcde0c4ecdf91 + flattened_ast: 30b152a6e109f3f335c2b32a3834ae5e50a1128af27ff995362485de38ae0c85 + inlined_ast: 30b152a6e109f3f335c2b32a3834ae5e50a1128af27ff995362485de38ae0c85 + dce_ast: 30b152a6e109f3f335c2b32a3834ae5e50a1128af27ff995362485de38ae0c85 + bytecode: afd97c7c25711fe41717b8f2cc653082f5d81466b099a490dae43e058605e7e4 diff --git a/tests/expectations/compiler/integers/i16/gt.out b/tests/expectations/compiler/integers/i16/gt.out new file mode 100644 index 0000000000..21d3a686fc --- /dev/null +++ b/tests/expectations/compiler/integers/i16/gt.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: f63bd997a8fd51ae6dabfe0a1f9d642c0f28ba4a593aba6e3491016d8e90e705 + unrolled_ast: f63bd997a8fd51ae6dabfe0a1f9d642c0f28ba4a593aba6e3491016d8e90e705 + ssa_ast: d1d7fb6696426a5a4f110828891add9addcf44fa9412129e677986b6f4dfee49 + flattened_ast: 04ba36ab1a209f4011492b0af604fddc3655ece716593c0548515f82a35395cb + inlined_ast: 04ba36ab1a209f4011492b0af604fddc3655ece716593c0548515f82a35395cb + dce_ast: 04ba36ab1a209f4011492b0af604fddc3655ece716593c0548515f82a35395cb + bytecode: f7802d16ffb5304531ce00063506d55ff82a24dd6aa659e96c46c37b597ec3e9 diff --git a/tests/expectations/compiler/integers/i16/le.out b/tests/expectations/compiler/integers/i16/le.out new file mode 100644 index 0000000000..09c35a1c2e --- /dev/null +++ b/tests/expectations/compiler/integers/i16/le.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 781bfce16bae43749ebefb34df714227ec93b477e31478263f32374dc2b469a9 + unrolled_ast: 781bfce16bae43749ebefb34df714227ec93b477e31478263f32374dc2b469a9 + ssa_ast: 95f843a41fdc15c1948545f7dc68e5af2953a64728382d18ca96ec588fe3d5dc + flattened_ast: e2fd5403df811e2bfb3599842bfe3a0d5ee1f926569a66da5b920609fc6bb7d4 + inlined_ast: e2fd5403df811e2bfb3599842bfe3a0d5ee1f926569a66da5b920609fc6bb7d4 + dce_ast: e2fd5403df811e2bfb3599842bfe3a0d5ee1f926569a66da5b920609fc6bb7d4 + bytecode: 4098055f0ddcaeedbeb57f3ba3914a9ef47ad8cd114258f04ff47dedff6d9a00 diff --git a/tests/expectations/compiler/integers/i16/lt.out b/tests/expectations/compiler/integers/i16/lt.out new file mode 100644 index 0000000000..49723c0ee1 --- /dev/null +++ b/tests/expectations/compiler/integers/i16/lt.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 3de1faff250ff5813904e8e2b7b0c8cd7d7d0b9541208fe4aba7252adb67630a + unrolled_ast: 3de1faff250ff5813904e8e2b7b0c8cd7d7d0b9541208fe4aba7252adb67630a + ssa_ast: 90859050e09dcde8362d150eb305f4ff1351d60c63953f6b926595d613be7da8 + flattened_ast: 7872bf6de336f453809a46b974eca88602223da8006bc457e5cbb42b5229f807 + inlined_ast: 7872bf6de336f453809a46b974eca88602223da8006bc457e5cbb42b5229f807 + dce_ast: 7872bf6de336f453809a46b974eca88602223da8006bc457e5cbb42b5229f807 + bytecode: 5246d0c0e3bcae2402ea4d869b25ea506f69b9f2b151c0a437a80c53f6b06820 diff --git a/tests/expectations/compiler/integers/i16/max.out b/tests/expectations/compiler/integers/i16/max.out new file mode 100644 index 0000000000..af302e8c6e --- /dev/null +++ b/tests/expectations/compiler/integers/i16/max.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 2d56d2f748e6ac9b276e18b2168096c0ddc5f43c2202a0656d2f9300cb05e818 + unrolled_ast: 2d56d2f748e6ac9b276e18b2168096c0ddc5f43c2202a0656d2f9300cb05e818 + ssa_ast: 4ea47db3de3c1bbc84cc4620070cce3f6e5f6764e03a9b44fea2463b9a6a61be + flattened_ast: a37fa26f4af62d04e8cd9e32d1f792f4b51262479cb5e1d456b11c0d82a76b6f + inlined_ast: a37fa26f4af62d04e8cd9e32d1f792f4b51262479cb5e1d456b11c0d82a76b6f + dce_ast: a37fa26f4af62d04e8cd9e32d1f792f4b51262479cb5e1d456b11c0d82a76b6f + bytecode: 6958108d2957c63c3584130ff20bfffaac82cc978c77da23b73c4633a75f1b4f diff --git a/tests/expectations/compiler/integers/i16/max_fail.out b/tests/expectations/compiler/integers/i16/max_fail.out new file mode 100644 index 0000000000..0e34de69df --- /dev/null +++ b/tests/expectations/compiler/integers/i16/max_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372008]: The value 32768 is not a valid `i16`\n --> compiler-test:5:22\n |\n 5 | let a: i16 = 32768i16;\n | ^^^^^^^^\n" diff --git a/tests/expectations/compiler/integers/i16/min.out b/tests/expectations/compiler/integers/i16/min.out new file mode 100644 index 0000000000..2e7f2c1d57 --- /dev/null +++ b/tests/expectations/compiler/integers/i16/min.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 2154123c075212d946e7293a04308e053248816e3acf154646da3062ce9404a4 + unrolled_ast: 2154123c075212d946e7293a04308e053248816e3acf154646da3062ce9404a4 + ssa_ast: 0ca8a34a361e6be28153bf314b7762dd6bf8155c8390878f5918541c839d5ace + flattened_ast: 53bfa1c6c4a95e2bcd36ec6be5c9239a2ee52d358e0190683476682543e44e43 + inlined_ast: 53bfa1c6c4a95e2bcd36ec6be5c9239a2ee52d358e0190683476682543e44e43 + dce_ast: 53bfa1c6c4a95e2bcd36ec6be5c9239a2ee52d358e0190683476682543e44e43 + bytecode: f2fe31979d1155f5b72ae5746b03fd87c6f2f45da939acffade988230a8e2ad4 diff --git a/tests/expectations/compiler/integers/i16/min_fail.out b/tests/expectations/compiler/integers/i16/min_fail.out new file mode 100644 index 0000000000..1a1f23a665 --- /dev/null +++ b/tests/expectations/compiler/integers/i16/min_fail.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 1819ff40b94d1e54432d40e3f8f3e2b500fff76f321c8d2798cb1623bb060de3 + unrolled_ast: 1819ff40b94d1e54432d40e3f8f3e2b500fff76f321c8d2798cb1623bb060de3 + ssa_ast: bce25bcb1376beab03517fcbb0231baf7f2b997a79e39a0c54666268aaf8a2f9 + flattened_ast: faf31d65e557e571505d53c1026252c28c46bc1dfbb007de1a86d8c1251f8d7d + inlined_ast: faf31d65e557e571505d53c1026252c28c46bc1dfbb007de1a86d8c1251f8d7d + dce_ast: faf31d65e557e571505d53c1026252c28c46bc1dfbb007de1a86d8c1251f8d7d + bytecode: 610f6da5a1bfe09e95c9fcc99b8905d5889d879fa9e09167fc9dfbe512faab0d diff --git a/tests/expectations/compiler/integers/i16/mul.out b/tests/expectations/compiler/integers/i16/mul.out new file mode 100644 index 0000000000..1fff52b8c1 --- /dev/null +++ b/tests/expectations/compiler/integers/i16/mul.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 0c972f5b48ba5679885f8ba8a0c823267996240bdb51a6c23b96a2309549e395 + unrolled_ast: 0c972f5b48ba5679885f8ba8a0c823267996240bdb51a6c23b96a2309549e395 + ssa_ast: ab9ab3ee550ed4ba677ec9ddf7d04719f9ff3fc3669e4caf532076670a550197 + flattened_ast: 7771f004f9eb830376745296300ee1132f37e0e0611f11e8e02fd290b377622c + inlined_ast: 7771f004f9eb830376745296300ee1132f37e0e0611f11e8e02fd290b377622c + dce_ast: 7771f004f9eb830376745296300ee1132f37e0e0611f11e8e02fd290b377622c + bytecode: d8edabcfee75bc808014904105c76f84c9acef35797c0e25bbf339e768d853b8 diff --git a/tests/expectations/compiler/integers/i16/ne.out b/tests/expectations/compiler/integers/i16/ne.out new file mode 100644 index 0000000000..39d200fcdc --- /dev/null +++ b/tests/expectations/compiler/integers/i16/ne.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: afe493d5ccec11a491c803608ef0236d140ab4bec7b9e65b2799fa44d5390784 + unrolled_ast: afe493d5ccec11a491c803608ef0236d140ab4bec7b9e65b2799fa44d5390784 + ssa_ast: f1e715bf69409f35a85b1738975077c6fdb1f2354ea0f73e57a64f3b7ce73a8c + flattened_ast: 6a1fb0193d47926466894eb84e3cf235cb893a6bca01881c685fb86a048c9a63 + inlined_ast: 6a1fb0193d47926466894eb84e3cf235cb893a6bca01881c685fb86a048c9a63 + dce_ast: 6a1fb0193d47926466894eb84e3cf235cb893a6bca01881c685fb86a048c9a63 + bytecode: 7625de6e12d49943dc9afd004ecbced1ca28e58e37ee87bf8f7896de8230b61b diff --git a/tests/expectations/compiler/integers/i16/negate.out b/tests/expectations/compiler/integers/i16/negate.out new file mode 100644 index 0000000000..155cf0bca6 --- /dev/null +++ b/tests/expectations/compiler/integers/i16/negate.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: b08b7012cad1e466225f9e0cdba7b907a14ed1d0c3b1e9692feba8650a74478c + unrolled_ast: b08b7012cad1e466225f9e0cdba7b907a14ed1d0c3b1e9692feba8650a74478c + ssa_ast: 04594cd2713912aebd82538d8e140d3fe8ad489fb41ecf6b0b31e515cff40c45 + flattened_ast: 0748407f0dd950b2aa9ddae84120f9401311e77ccabc2bbfdb16d64c6a662cfb + inlined_ast: 0748407f0dd950b2aa9ddae84120f9401311e77ccabc2bbfdb16d64c6a662cfb + dce_ast: 0748407f0dd950b2aa9ddae84120f9401311e77ccabc2bbfdb16d64c6a662cfb + bytecode: ff7764c9bd18a9bedde5cf440934d90d38f8e75b7a882e506899e54c81de578a diff --git a/tests/expectations/compiler/integers/i16/negate_min_fail.out b/tests/expectations/compiler/integers/i16/negate_min_fail.out new file mode 100644 index 0000000000..50bf26d3c2 --- /dev/null +++ b/tests/expectations/compiler/integers/i16/negate_min_fail.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: c0d1bfa4459c6a7f94c59adf491054ed67bea3aefc772e943dcaee45b4bcb3d0 + unrolled_ast: c0d1bfa4459c6a7f94c59adf491054ed67bea3aefc772e943dcaee45b4bcb3d0 + ssa_ast: ccd90f4b485926da4d3e98ed7d371614fcfb732c0008f9e2f0e124536aa52c16 + flattened_ast: 3477100ef9525d882b17e9435d8b37497b8efdeb467895b00d52f6c0719ae4ed + inlined_ast: 3477100ef9525d882b17e9435d8b37497b8efdeb467895b00d52f6c0719ae4ed + dce_ast: 3477100ef9525d882b17e9435d8b37497b8efdeb467895b00d52f6c0719ae4ed + bytecode: bb7257ac8246f75ff2fa570e93351842aeac6b6b1711f233bc29427df8e5105a diff --git a/tests/expectations/compiler/integers/i16/negate_zero.out b/tests/expectations/compiler/integers/i16/negate_zero.out new file mode 100644 index 0000000000..0e0196769a --- /dev/null +++ b/tests/expectations/compiler/integers/i16/negate_zero.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 89485f7c64ecc857747203041f87caba668dc281bac43ce33fb2ac56fb68c2eb + unrolled_ast: 89485f7c64ecc857747203041f87caba668dc281bac43ce33fb2ac56fb68c2eb + ssa_ast: 9562ee3ed8f2389c5ae89a7d817b72afe237caaa942b12411bad9fe79384549f + flattened_ast: ec10b4536ae14fb0aae6874b189ab15d80452e1605fecf1d34ccb67848c33d4b + inlined_ast: ec10b4536ae14fb0aae6874b189ab15d80452e1605fecf1d34ccb67848c33d4b + dce_ast: ec10b4536ae14fb0aae6874b189ab15d80452e1605fecf1d34ccb67848c33d4b + bytecode: 82f078cb2577720b3ec0efb950478d85280f6d2cd4282c48f229ecd2286591f9 diff --git a/tests/expectations/compiler/integers/i16/no_space_between_literal.out b/tests/expectations/compiler/integers/i16/no_space_between_literal.out new file mode 100644 index 0000000000..f0cccfe734 --- /dev/null +++ b/tests/expectations/compiler/integers/i16/no_space_between_literal.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected : -- found '='\n --> compiler-test:5:15\n |\n 5 | let i = 1 i16;\n | ^" diff --git a/tests/expectations/compiler/integers/i16/operator_methods.out b/tests/expectations/compiler/integers/i16/operator_methods.out new file mode 100644 index 0000000000..4d6fd08c8c --- /dev/null +++ b/tests/expectations/compiler/integers/i16/operator_methods.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: eecbf39e1d25a542f6eeb36a50f49a96e432d424d6bed35676e9e3fa4d97aaa0 + unrolled_ast: eecbf39e1d25a542f6eeb36a50f49a96e432d424d6bed35676e9e3fa4d97aaa0 + ssa_ast: 17432df3d1c6504ce57a8ba77f2ab699bd250b44338db7cbb2061e7567822c9b + flattened_ast: 6cc1152fb17f0197e269366aa90378cf19b2495785d70da0db0789f455242b8f + inlined_ast: 6cc1152fb17f0197e269366aa90378cf19b2495785d70da0db0789f455242b8f + dce_ast: fabfd09410dc36bf4c81828ff96c9353e78aa8b721cbb8870eda9dde7aa0c1d2 + bytecode: b36da573e89979cf5999abf1135a2443a42c08527c962edca14559769f7c3927 diff --git a/tests/expectations/compiler/integers/i16/or.out b/tests/expectations/compiler/integers/i16/or.out new file mode 100644 index 0000000000..124d7decc6 --- /dev/null +++ b/tests/expectations/compiler/integers/i16/or.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 4140af4f462e117c1b35ae4d44bdfe87096c801e34556d3b527d2a2db707428e + unrolled_ast: 4140af4f462e117c1b35ae4d44bdfe87096c801e34556d3b527d2a2db707428e + ssa_ast: 41663bab6bec2a78b7626f690f776e09f2310b28430f47c6485f99a80e9d9508 + flattened_ast: 8e003509896e96197f8f3d1615eddf2969c064432ce3a71602b1a6f330bdaa32 + inlined_ast: 8e003509896e96197f8f3d1615eddf2969c064432ce3a71602b1a6f330bdaa32 + dce_ast: 8e003509896e96197f8f3d1615eddf2969c064432ce3a71602b1a6f330bdaa32 + bytecode: 24dbe991a15924dab9a19dc86f6173f85a793bcf6d3b6d33c7fe2c29a9401cc1 diff --git a/tests/expectations/compiler/integers/i16/pow.out b/tests/expectations/compiler/integers/i16/pow.out new file mode 100644 index 0000000000..47db30746f --- /dev/null +++ b/tests/expectations/compiler/integers/i16/pow.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 9a59ecc9ac1f1f3b8aae34cafb282cb1822b3c15468fda671b60b72adea38226 + unrolled_ast: 9a59ecc9ac1f1f3b8aae34cafb282cb1822b3c15468fda671b60b72adea38226 + ssa_ast: 3efabf105c175d8b0a9219e2736719b53e9f557e10d564d08ea20d0494d888bb + flattened_ast: 1d1399f68a015307a219bf22cd6113060d8639f6d8dfe0fbe69d5919a9732c11 + inlined_ast: 1d1399f68a015307a219bf22cd6113060d8639f6d8dfe0fbe69d5919a9732c11 + dce_ast: 1d1399f68a015307a219bf22cd6113060d8639f6d8dfe0fbe69d5919a9732c11 + bytecode: 0a5d25027b5d2b5a4fce9b93c6ddd7e245ea50434fe7c19aae907fc1ddb0237d diff --git a/tests/expectations/compiler/integers/i16/rem.out b/tests/expectations/compiler/integers/i16/rem.out new file mode 100644 index 0000000000..438dc2fd78 --- /dev/null +++ b/tests/expectations/compiler/integers/i16/rem.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 2597bde13c2ef7c9fe072ce17bc42b5130b0fc3bfb64c4d858c2a7f650e7c114 + unrolled_ast: 2597bde13c2ef7c9fe072ce17bc42b5130b0fc3bfb64c4d858c2a7f650e7c114 + ssa_ast: 897d784516bca09246e64e04293d8990efd0779da517b4af05f7d872fae12830 + flattened_ast: 827ba2fb2b5534d207f1832d20b4a94e07c38632e6864c817b13a4a41ed5f0ae + inlined_ast: 827ba2fb2b5534d207f1832d20b4a94e07c38632e6864c817b13a4a41ed5f0ae + dce_ast: 827ba2fb2b5534d207f1832d20b4a94e07c38632e6864c817b13a4a41ed5f0ae + bytecode: 4bae84ce4d6380e7d41b5074b28652bcf2beae9c47004f480f45728d3fc076a8 diff --git a/tests/expectations/compiler/integers/i16/shl.out b/tests/expectations/compiler/integers/i16/shl.out new file mode 100644 index 0000000000..bf0bf7a85a --- /dev/null +++ b/tests/expectations/compiler/integers/i16/shl.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 01dce520919d9520ce130b1ce3c52c74584229749adf1bfed0e66159988769c6 + unrolled_ast: 01dce520919d9520ce130b1ce3c52c74584229749adf1bfed0e66159988769c6 + ssa_ast: 15c61b9cac5a6754ede2394501b948292a21bc743dfe721f29264ceef6bbd02c + flattened_ast: 1f10a78b5621be6c2c101bc22d37937739e82e6b85dd645094973246ab8e145e + inlined_ast: 1f10a78b5621be6c2c101bc22d37937739e82e6b85dd645094973246ab8e145e + dce_ast: 1f10a78b5621be6c2c101bc22d37937739e82e6b85dd645094973246ab8e145e + bytecode: 51091a6c5b24e9575bad691bfd3e499a82465bebc851c624984a65d346a637a4 diff --git a/tests/expectations/compiler/integers/i16/shr.out b/tests/expectations/compiler/integers/i16/shr.out new file mode 100644 index 0000000000..b1ce36e955 --- /dev/null +++ b/tests/expectations/compiler/integers/i16/shr.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 812fb111a7bdd9e50cee33179e50004e3d727e1d555ecfd51271624bfafa7572 + unrolled_ast: 812fb111a7bdd9e50cee33179e50004e3d727e1d555ecfd51271624bfafa7572 + ssa_ast: 1106d4d8a8ff8c5e0ad2c4997f2ea9aa68144bffd74340b390746531df6eb6f6 + flattened_ast: ddf2d26132f221a20bb1610cd548717a4d291559f0a3aecbaa50e9082bc1d7d5 + inlined_ast: ddf2d26132f221a20bb1610cd548717a4d291559f0a3aecbaa50e9082bc1d7d5 + dce_ast: ddf2d26132f221a20bb1610cd548717a4d291559f0a3aecbaa50e9082bc1d7d5 + bytecode: 000f236df936960490eede733dc994070d896c73e4652e79ed6a078d2631d1af diff --git a/tests/expectations/compiler/integers/i16/sub.out b/tests/expectations/compiler/integers/i16/sub.out new file mode 100644 index 0000000000..561d6f056a --- /dev/null +++ b/tests/expectations/compiler/integers/i16/sub.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 1e4f8afb46a242008539609965e4719edfdcaf6cb608c792f390ad5b60fc89f3 + unrolled_ast: 1e4f8afb46a242008539609965e4719edfdcaf6cb608c792f390ad5b60fc89f3 + ssa_ast: 3a184a80e21152d861bd221475caa916b19b8b2b1a5203bf3979dcb445699b91 + flattened_ast: 9af89b7a6a95af5d2ed34db911150b22701c1f0e4a479807264a15ef434b3082 + inlined_ast: 9af89b7a6a95af5d2ed34db911150b22701c1f0e4a479807264a15ef434b3082 + dce_ast: 9af89b7a6a95af5d2ed34db911150b22701c1f0e4a479807264a15ef434b3082 + bytecode: d1ad9d0c658a951a98f1bb225937352b40b5e2870fd131c6a68c0ee5e25e7b33 diff --git a/tests/expectations/compiler/integers/i16/ternary.out b/tests/expectations/compiler/integers/i16/ternary.out new file mode 100644 index 0000000000..b24590afff --- /dev/null +++ b/tests/expectations/compiler/integers/i16/ternary.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 39df3243880e09119d10115530293e1818d0003bcad80df891ac736f1ac1f4a9 + unrolled_ast: 39df3243880e09119d10115530293e1818d0003bcad80df891ac736f1ac1f4a9 + ssa_ast: d67bb828f78f8ec2f8facfd985de32958db332f3beae361149a211c0251adb1c + flattened_ast: fd999660c023d3c5c3d1578852098c97ba89c14f1a10808836a64ca730b50142 + inlined_ast: fd999660c023d3c5c3d1578852098c97ba89c14f1a10808836a64ca730b50142 + dce_ast: fd999660c023d3c5c3d1578852098c97ba89c14f1a10808836a64ca730b50142 + bytecode: 14e6a5f8a524c491e4fd3c49b81f89cf5ffaa68bea3b1ef60b9a86b65a77008f diff --git a/tests/expectations/compiler/integers/i16/xor.out b/tests/expectations/compiler/integers/i16/xor.out new file mode 100644 index 0000000000..e358f8f008 --- /dev/null +++ b/tests/expectations/compiler/integers/i16/xor.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 9b17cff9be2c510e22991e80e8d1d918a2830e58bf4361c9bb0f684e47f504e0 + unrolled_ast: 9b17cff9be2c510e22991e80e8d1d918a2830e58bf4361c9bb0f684e47f504e0 + ssa_ast: 53ed82cf21abc64b70249f0161bfe099c78243e14b63ed5d293d4e936709b1a3 + flattened_ast: 811c01719e47893ae4f99ae5c5fbdddd366f00815d62c5b32a0dd9ef71820b92 + inlined_ast: 811c01719e47893ae4f99ae5c5fbdddd366f00815d62c5b32a0dd9ef71820b92 + dce_ast: 811c01719e47893ae4f99ae5c5fbdddd366f00815d62c5b32a0dd9ef71820b92 + bytecode: f35d4454526e753df023baf1761e228b4e7f75cc66b9268d8685cfd99f574004 diff --git a/tests/expectations/compiler/integers/i32/add.out b/tests/expectations/compiler/integers/i32/add.out new file mode 100644 index 0000000000..78c282689d --- /dev/null +++ b/tests/expectations/compiler/integers/i32/add.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: c13f8929466d335ecb6682c572d568af53e963ec46b2ee06ce1f137b407cb89f + unrolled_ast: c13f8929466d335ecb6682c572d568af53e963ec46b2ee06ce1f137b407cb89f + ssa_ast: 75406ff5c633abb4ff17673cb5d3c28a11d9b71035162b5c8c490c396bd0e065 + flattened_ast: d78f419eabb4e31ea0d259b001d90a1b247dda9071a9bc99dcf7a8f0cd02ce19 + inlined_ast: d78f419eabb4e31ea0d259b001d90a1b247dda9071a9bc99dcf7a8f0cd02ce19 + dce_ast: d78f419eabb4e31ea0d259b001d90a1b247dda9071a9bc99dcf7a8f0cd02ce19 + bytecode: 4a98642513ca0ed6ae3eae0b4a7d4e25a43bf2537b52dca4385bf83626aa6348 diff --git a/tests/expectations/compiler/integers/i32/and.out b/tests/expectations/compiler/integers/i32/and.out new file mode 100644 index 0000000000..7ae98bd521 --- /dev/null +++ b/tests/expectations/compiler/integers/i32/and.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 87d4b6b41fa65dd5fe17a7071a88c7268f53584a143ee3e95361e4dc3d40e4e0 + unrolled_ast: 87d4b6b41fa65dd5fe17a7071a88c7268f53584a143ee3e95361e4dc3d40e4e0 + ssa_ast: af92520a505ceaba6931fc38a61b32f887dd678ef721fd9550db9ad826b76342 + flattened_ast: 95e616a78ca269f7dad625e6ad38bbd330da3aee3130eed456e4ac7bd5c128fd + inlined_ast: 95e616a78ca269f7dad625e6ad38bbd330da3aee3130eed456e4ac7bd5c128fd + dce_ast: 95e616a78ca269f7dad625e6ad38bbd330da3aee3130eed456e4ac7bd5c128fd + bytecode: c83bc9d6ff309f026eaeb241d0fda881b4c06b706608171e54822ea576661785 diff --git a/tests/expectations/compiler/integers/i32/console_assert.out b/tests/expectations/compiler/integers/i32/console_assert.out new file mode 100644 index 0000000000..017c13be45 --- /dev/null +++ b/tests/expectations/compiler/integers/i32/console_assert.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 8eb95014dc29775cfee0effe1058bd3547e27a215d593db304869c52fda6fa54 + unrolled_ast: 8eb95014dc29775cfee0effe1058bd3547e27a215d593db304869c52fda6fa54 + ssa_ast: 91ce3f8e0bc1c45cc6e12f57c2d56b0420c01b95175aa72b3fc2d3a0723eb416 + flattened_ast: 36dfdd9afab5263be6b6bf8cbace8e9ef88f7a16fb88d12219480b0ab579ab5f + inlined_ast: 36dfdd9afab5263be6b6bf8cbace8e9ef88f7a16fb88d12219480b0ab579ab5f + dce_ast: 36dfdd9afab5263be6b6bf8cbace8e9ef88f7a16fb88d12219480b0ab579ab5f + bytecode: e93a461327025eb76bd362a69b2768d3edcc1864570406e44734686eaec84237 diff --git a/tests/expectations/compiler/integers/i32/div.out b/tests/expectations/compiler/integers/i32/div.out new file mode 100644 index 0000000000..b0f59cedd2 --- /dev/null +++ b/tests/expectations/compiler/integers/i32/div.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 535ec581e824bc5ce8bc762a1eb59db10ad97fe09fdb1f9b4d3833572d5b22e6 + unrolled_ast: 535ec581e824bc5ce8bc762a1eb59db10ad97fe09fdb1f9b4d3833572d5b22e6 + ssa_ast: 7ed38e0e442687c8b2d6c929e7281ee4fceb7b92fdba7a3a5b242fe96a3ed29c + flattened_ast: ec4fb7edc255322670e44af0678a96ccfd0e6291bd4982ab96423d8edfdb286d + inlined_ast: ec4fb7edc255322670e44af0678a96ccfd0e6291bd4982ab96423d8edfdb286d + dce_ast: ec4fb7edc255322670e44af0678a96ccfd0e6291bd4982ab96423d8edfdb286d + bytecode: 7513cf41cc383d2f32c59f1fc1f0c08d966470080cc680b4e067a299840d447e diff --git a/tests/expectations/compiler/integers/i32/eq.out b/tests/expectations/compiler/integers/i32/eq.out new file mode 100644 index 0000000000..5f23504a86 --- /dev/null +++ b/tests/expectations/compiler/integers/i32/eq.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 0e1c11db4d4a43699ef38921552c35ef7b93c2e30675c2c4799c50a9fab29062 + unrolled_ast: 0e1c11db4d4a43699ef38921552c35ef7b93c2e30675c2c4799c50a9fab29062 + ssa_ast: 49913d96c4e66c71feab72547e56eef107fed47107196ce0d124fdaa67817c44 + flattened_ast: e099251afaef6aaff31102dbccd9b1fbdf9fd7a72a0be5c5021bf2b8402b8f20 + inlined_ast: e099251afaef6aaff31102dbccd9b1fbdf9fd7a72a0be5c5021bf2b8402b8f20 + dce_ast: e099251afaef6aaff31102dbccd9b1fbdf9fd7a72a0be5c5021bf2b8402b8f20 + bytecode: 0d9b72a5e1ee092b054a7f0884c63f028f5fca4db22b6d5c5046b9685481c56f diff --git a/tests/expectations/compiler/integers/i32/ge.out b/tests/expectations/compiler/integers/i32/ge.out new file mode 100644 index 0000000000..343a41dcd4 --- /dev/null +++ b/tests/expectations/compiler/integers/i32/ge.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 43b2f0417daf6a536a31b1744d49b2dcbf40cf5de061f9e3da9dcefd6792b98d + unrolled_ast: 43b2f0417daf6a536a31b1744d49b2dcbf40cf5de061f9e3da9dcefd6792b98d + ssa_ast: 7f0c93a4de416d6a28447c23aefa3b3ae31fef4b239eb2eaf2d37f4ec04776d7 + flattened_ast: 5522b626e26a1b840abcdd2a1b38e59e7eca81290d3292d049c498b9df020f3f + inlined_ast: 5522b626e26a1b840abcdd2a1b38e59e7eca81290d3292d049c498b9df020f3f + dce_ast: 5522b626e26a1b840abcdd2a1b38e59e7eca81290d3292d049c498b9df020f3f + bytecode: e96d849b37da6f6ec972d154166606de44c27e8dffb03e0de68c0bd2193ce816 diff --git a/tests/expectations/compiler/integers/i32/gt.out b/tests/expectations/compiler/integers/i32/gt.out new file mode 100644 index 0000000000..64b052f454 --- /dev/null +++ b/tests/expectations/compiler/integers/i32/gt.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 58b068a891e5a297682dc8dd44a5dbe22c4c2879cec17e385babf2829ef0cfe4 + unrolled_ast: 58b068a891e5a297682dc8dd44a5dbe22c4c2879cec17e385babf2829ef0cfe4 + ssa_ast: 3a7bfd83d227a4e485b8e024eff4523bfa9f4f9e8deb197e991bdcf9ff6906cc + flattened_ast: 7a04a1c69fdfcc4dd1a43111b0592c43f6c7ffdbfc0e439015f7ad5167430a77 + inlined_ast: 7a04a1c69fdfcc4dd1a43111b0592c43f6c7ffdbfc0e439015f7ad5167430a77 + dce_ast: 7a04a1c69fdfcc4dd1a43111b0592c43f6c7ffdbfc0e439015f7ad5167430a77 + bytecode: 3397488866433f0960d9e392f25891d8b57a64a2395deb346b904d999546db9f diff --git a/tests/expectations/compiler/integers/i32/le.out b/tests/expectations/compiler/integers/i32/le.out new file mode 100644 index 0000000000..398d248c59 --- /dev/null +++ b/tests/expectations/compiler/integers/i32/le.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 7994a4e560ca41616e3599a817d47a8233dd1baa04b57d5001d000863f693888 + unrolled_ast: 7994a4e560ca41616e3599a817d47a8233dd1baa04b57d5001d000863f693888 + ssa_ast: d9943f4dbd954d7b80396dc68106114c15d05d3382a293d746538de5591b2bdb + flattened_ast: bfe3178061d1208316948c3c384c540974d6e0f427075b960edfbc019257e113 + inlined_ast: bfe3178061d1208316948c3c384c540974d6e0f427075b960edfbc019257e113 + dce_ast: bfe3178061d1208316948c3c384c540974d6e0f427075b960edfbc019257e113 + bytecode: e2d82a67993557ac34d9e9945369fa907d4c6213c45feea19ad80bcb3cde4d68 diff --git a/tests/expectations/compiler/integers/i32/lt.out b/tests/expectations/compiler/integers/i32/lt.out new file mode 100644 index 0000000000..0c860c4b0e --- /dev/null +++ b/tests/expectations/compiler/integers/i32/lt.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 0f2e756a8c662c6cf5e4a0ebe5b3507522538b902adc26571aea798d431432cd + unrolled_ast: 0f2e756a8c662c6cf5e4a0ebe5b3507522538b902adc26571aea798d431432cd + ssa_ast: 593b75d8bfce8b63b32d18e70a4a6b99deef96e32efed606a6c31118d73d86d9 + flattened_ast: 357fb32b65c461722465b7cde492f9d2f9c36593765f5993d7219293ad78dd20 + inlined_ast: 357fb32b65c461722465b7cde492f9d2f9c36593765f5993d7219293ad78dd20 + dce_ast: 357fb32b65c461722465b7cde492f9d2f9c36593765f5993d7219293ad78dd20 + bytecode: 9227aa899da4b7ff37558be85d668ca336252c64e0687ea5d62f018b72127a04 diff --git a/tests/expectations/compiler/integers/i32/max.out b/tests/expectations/compiler/integers/i32/max.out new file mode 100644 index 0000000000..091d8c3a90 --- /dev/null +++ b/tests/expectations/compiler/integers/i32/max.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: d56c9a1c3bda7c29819f985704ecb6e35c27962ecdda701cdd3cbf5c47339299 + unrolled_ast: d56c9a1c3bda7c29819f985704ecb6e35c27962ecdda701cdd3cbf5c47339299 + ssa_ast: 5fa2f1d0cc48959a8f3c77e5c413fcf08940d8d17bdad74a14b383248df043cd + flattened_ast: 0749ccaa552a100971b6c8b69749022897abc8b4af32f271c4341146c89a4c25 + inlined_ast: 0749ccaa552a100971b6c8b69749022897abc8b4af32f271c4341146c89a4c25 + dce_ast: 0749ccaa552a100971b6c8b69749022897abc8b4af32f271c4341146c89a4c25 + bytecode: 57be3af9aea4c0676f2aa231ab3f3ad37c1f7c3210ef1428cb0acd9edcd86fe2 diff --git a/tests/expectations/compiler/integers/i32/max_fail.out b/tests/expectations/compiler/integers/i32/max_fail.out new file mode 100644 index 0000000000..9f2c4e4e6b --- /dev/null +++ b/tests/expectations/compiler/integers/i32/max_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372008]: The value 2147483648 is not a valid `i32`\n --> compiler-test:5:22\n |\n 5 | let a: i32 = 2147483648i32;\n | ^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/integers/i32/min.out b/tests/expectations/compiler/integers/i32/min.out new file mode 100644 index 0000000000..42e087230a --- /dev/null +++ b/tests/expectations/compiler/integers/i32/min.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 742707b79565934bda1e31b8346336ee3b8c6537141e9388d8e38e231451fcc8 + unrolled_ast: 742707b79565934bda1e31b8346336ee3b8c6537141e9388d8e38e231451fcc8 + ssa_ast: 469e1f04cade5a27c58106f673675bd125a80434633c9dd9850a71972956ef19 + flattened_ast: 276b7994102cc308e942242a8e68474647b0407d774791e8b4848b4625ba033a + inlined_ast: 276b7994102cc308e942242a8e68474647b0407d774791e8b4848b4625ba033a + dce_ast: 276b7994102cc308e942242a8e68474647b0407d774791e8b4848b4625ba033a + bytecode: 14baafe414bb3db0919bce34efa2e0cb9be410e07822419abe1d221c68860ed3 diff --git a/tests/expectations/compiler/integers/i32/min_fail.out b/tests/expectations/compiler/integers/i32/min_fail.out new file mode 100644 index 0000000000..48a7f5632d --- /dev/null +++ b/tests/expectations/compiler/integers/i32/min_fail.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 3c8b0fcec0b009dfcced43755ebab2259bfb2d720823a5a73131944a1cf4cf3e + unrolled_ast: 3c8b0fcec0b009dfcced43755ebab2259bfb2d720823a5a73131944a1cf4cf3e + ssa_ast: 12ee129cc27501a6f34b4a6b38c248bbb0737e743b4b05c41d1d67cd15adbe11 + flattened_ast: 46c3156b85d00b6f5810b5c5140ba1c26915fa3f29f67bf59d4a26670b70278b + inlined_ast: 46c3156b85d00b6f5810b5c5140ba1c26915fa3f29f67bf59d4a26670b70278b + dce_ast: 46c3156b85d00b6f5810b5c5140ba1c26915fa3f29f67bf59d4a26670b70278b + bytecode: b7db7415e9a7e2872bdc1b803f5427a6632cc201dd4a91e3f11a337c30c37cf5 diff --git a/tests/expectations/compiler/integers/i32/mul.out b/tests/expectations/compiler/integers/i32/mul.out new file mode 100644 index 0000000000..c03c193dc2 --- /dev/null +++ b/tests/expectations/compiler/integers/i32/mul.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 003af22ca94442ef4c8e430a05528b307e6aee674f3221309155138786057788 + unrolled_ast: 003af22ca94442ef4c8e430a05528b307e6aee674f3221309155138786057788 + ssa_ast: 760de8ab14303d6fc6252412c24fce2ade74aaa1fc54c45e3854054ee24dbe15 + flattened_ast: f04e046302dfdb413f957677c766249d25743d0dbb188c55b5a89c0fffe59c64 + inlined_ast: f04e046302dfdb413f957677c766249d25743d0dbb188c55b5a89c0fffe59c64 + dce_ast: f04e046302dfdb413f957677c766249d25743d0dbb188c55b5a89c0fffe59c64 + bytecode: 0fae6466a2bf2de1231d59ee8579aaf8576385f781ec07b670799723b45090c1 diff --git a/tests/expectations/compiler/integers/i32/ne.out b/tests/expectations/compiler/integers/i32/ne.out new file mode 100644 index 0000000000..f663f28aa6 --- /dev/null +++ b/tests/expectations/compiler/integers/i32/ne.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 2b8283b54a9752866d8f514e5e359450a68f6e6b2b5fcece58b2a5f2d69ceef2 + unrolled_ast: 2b8283b54a9752866d8f514e5e359450a68f6e6b2b5fcece58b2a5f2d69ceef2 + ssa_ast: bbb27d503b543a2696866f16e04820ce8059726447036216ef6ee8a72735fbfa + flattened_ast: 01995d939ad860b0433f5e925f1697cfcb03fdbe1095fb109bd36737d5b3fd65 + inlined_ast: 01995d939ad860b0433f5e925f1697cfcb03fdbe1095fb109bd36737d5b3fd65 + dce_ast: 01995d939ad860b0433f5e925f1697cfcb03fdbe1095fb109bd36737d5b3fd65 + bytecode: 8b1b03539a77776abeaef8d0d2b0955c2e1ee92abc4418cafd336e2fd7e07d8c diff --git a/tests/expectations/compiler/integers/i32/negate.out b/tests/expectations/compiler/integers/i32/negate.out new file mode 100644 index 0000000000..5decdf6283 --- /dev/null +++ b/tests/expectations/compiler/integers/i32/negate.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 32ebca55eda838e33bfed94a43a234929c744fd0aea33e19a6549ac8e25b0c77 + unrolled_ast: 32ebca55eda838e33bfed94a43a234929c744fd0aea33e19a6549ac8e25b0c77 + ssa_ast: 7f5da7e86442794af8dc46a6c3168e05b0c5045f67cc0b74e404d7eb8253ed10 + flattened_ast: 371ba6ca525d4dcd2945a779b482aca26f353cefa5bad98500450bffc4d89ccd + inlined_ast: 371ba6ca525d4dcd2945a779b482aca26f353cefa5bad98500450bffc4d89ccd + dce_ast: 371ba6ca525d4dcd2945a779b482aca26f353cefa5bad98500450bffc4d89ccd + bytecode: 0926e920330080c9eb6e3b07960f4ac16ba62c2e93e7d2deaf2be56f21f64457 diff --git a/tests/expectations/compiler/integers/i32/negate_min_fail.out b/tests/expectations/compiler/integers/i32/negate_min_fail.out new file mode 100644 index 0000000000..15de9372fc --- /dev/null +++ b/tests/expectations/compiler/integers/i32/negate_min_fail.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 66f91182ba5ee40cfe7533f4dae47d68f7b326a25ab51e5cbc96303c501acb04 + unrolled_ast: 66f91182ba5ee40cfe7533f4dae47d68f7b326a25ab51e5cbc96303c501acb04 + ssa_ast: 967c94dad4c8543cc8533de1e4dc272f57ed62ca9956e372e23eb890bfe679b6 + flattened_ast: 5777b015a1adf3f2a59d9d12e08ed8b9a4a2f115c9dbab627b0fb8e4c3c9275e + inlined_ast: 5777b015a1adf3f2a59d9d12e08ed8b9a4a2f115c9dbab627b0fb8e4c3c9275e + dce_ast: 5777b015a1adf3f2a59d9d12e08ed8b9a4a2f115c9dbab627b0fb8e4c3c9275e + bytecode: 0df63ebe06d4d8d06c00c9b1d9591a683c5d13b9af12d4eb12c57a83ffbba471 diff --git a/tests/expectations/compiler/integers/i32/negate_zero.out b/tests/expectations/compiler/integers/i32/negate_zero.out new file mode 100644 index 0000000000..d24c296061 --- /dev/null +++ b/tests/expectations/compiler/integers/i32/negate_zero.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 470701786751414b766442629342c15258389ab0c3f3589fa4645f14663e743d + unrolled_ast: 470701786751414b766442629342c15258389ab0c3f3589fa4645f14663e743d + ssa_ast: 5beaea9a22140ab10b7f75f899adf4b295ae7980886be645d5c64ca10f480c29 + flattened_ast: 645175bd96f067e856354a5c4574d258195fadd5e4b6597607801f652ea2482f + inlined_ast: 645175bd96f067e856354a5c4574d258195fadd5e4b6597607801f652ea2482f + dce_ast: 645175bd96f067e856354a5c4574d258195fadd5e4b6597607801f652ea2482f + bytecode: b89559b0fd9e2790ecaef181d2af90bb7015a2c5894a07106eda104d8f572bed diff --git a/tests/expectations/compiler/integers/i32/no_space_between_literal.out b/tests/expectations/compiler/integers/i32/no_space_between_literal.out new file mode 100644 index 0000000000..20d4b88386 --- /dev/null +++ b/tests/expectations/compiler/integers/i32/no_space_between_literal.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected : -- found '='\n --> compiler-test:5:15\n |\n 5 | let i = 1 i32;\n | ^" diff --git a/tests/expectations/compiler/integers/i32/operator_methods.out b/tests/expectations/compiler/integers/i32/operator_methods.out new file mode 100644 index 0000000000..dd68936dc6 --- /dev/null +++ b/tests/expectations/compiler/integers/i32/operator_methods.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 0975276579947ad8fb727d22e9861cda43a1c3938a30797eaa220de674cba792 + unrolled_ast: 0975276579947ad8fb727d22e9861cda43a1c3938a30797eaa220de674cba792 + ssa_ast: 7c116f6311daf0321afd5bacfe54252cf25030148239b75e20340f1d3616057d + flattened_ast: bbde81fbdb9bd53b73eaa0ec8a0c21b0c26b18695bb2f826af439d312856bd17 + inlined_ast: bbde81fbdb9bd53b73eaa0ec8a0c21b0c26b18695bb2f826af439d312856bd17 + dce_ast: 751cf9bf0011f1b2cec9c30ba252e5fdb2cfb07b565f7d7d49d3ec46948d8d79 + bytecode: 7ab3f946685bbd31ea648dcaf0dadbacbd6e50e63d1093f23f92f3387cab35f6 diff --git a/tests/expectations/compiler/integers/i32/or.out b/tests/expectations/compiler/integers/i32/or.out new file mode 100644 index 0000000000..0bb3fc9bf9 --- /dev/null +++ b/tests/expectations/compiler/integers/i32/or.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 02531f7d0e73089e4d2aa0f15880dc8cb7a295397dac03d6222755eab24b9235 + unrolled_ast: 02531f7d0e73089e4d2aa0f15880dc8cb7a295397dac03d6222755eab24b9235 + ssa_ast: 3f53cfb647f82b9eb52bcc7c2f77351ccc5c6dfe85c908dc1dfbe9ba6aa6681d + flattened_ast: f1551f7b9d8b9e98a0e317e10d69a19225f24e13c7d50dbb4efe4885f2b8b923 + inlined_ast: f1551f7b9d8b9e98a0e317e10d69a19225f24e13c7d50dbb4efe4885f2b8b923 + dce_ast: f1551f7b9d8b9e98a0e317e10d69a19225f24e13c7d50dbb4efe4885f2b8b923 + bytecode: 41b5a13222dbf0dd53c84da7f751c736e7356ce05e37db45e764d52e4f04331e diff --git a/tests/expectations/compiler/integers/i32/pow.out b/tests/expectations/compiler/integers/i32/pow.out new file mode 100644 index 0000000000..97f0127f7b --- /dev/null +++ b/tests/expectations/compiler/integers/i32/pow.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 0d3f3887944ec6e8c1081a0d69e88d10ff6a229b2196de24748028053602a217 + unrolled_ast: 0d3f3887944ec6e8c1081a0d69e88d10ff6a229b2196de24748028053602a217 + ssa_ast: 9f55ff931c87f10022a41d9b9856f06afae62a776bbf567231c633f6ba9ddf07 + flattened_ast: 94a6e6ed3c2b112939d7d9c42721028abbf84255f3d371455b6ce2191a8c4bc0 + inlined_ast: 94a6e6ed3c2b112939d7d9c42721028abbf84255f3d371455b6ce2191a8c4bc0 + dce_ast: 94a6e6ed3c2b112939d7d9c42721028abbf84255f3d371455b6ce2191a8c4bc0 + bytecode: 8fde7f6968f5d5cc3ce9e9bbd5b9915995375f990bf41f7ac6e8f0a550b7c859 diff --git a/tests/expectations/compiler/integers/i32/rem.out b/tests/expectations/compiler/integers/i32/rem.out new file mode 100644 index 0000000000..2469dec193 --- /dev/null +++ b/tests/expectations/compiler/integers/i32/rem.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 31492d69c8a7687b2c76f00cff2db072228644cd866887806c0bb36270fd4700 + unrolled_ast: 31492d69c8a7687b2c76f00cff2db072228644cd866887806c0bb36270fd4700 + ssa_ast: d7da3d17b641542c3600b1081960f63a862feced1f2af256db70db3b4b480fba + flattened_ast: bd2706f1637d0d0f5c29fab81cb91fd4b8e1287be8eebd017e655a135ac59204 + inlined_ast: bd2706f1637d0d0f5c29fab81cb91fd4b8e1287be8eebd017e655a135ac59204 + dce_ast: bd2706f1637d0d0f5c29fab81cb91fd4b8e1287be8eebd017e655a135ac59204 + bytecode: 5f3b856138f21abdccf6f7663995e7109d9a034bebc1c97573aabb9059a3a4ca diff --git a/tests/expectations/compiler/integers/i32/shl.out b/tests/expectations/compiler/integers/i32/shl.out new file mode 100644 index 0000000000..6791a2ed41 --- /dev/null +++ b/tests/expectations/compiler/integers/i32/shl.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 72cc14de90713951b62afb2c6f00794dd04a12fa6ad4a58fb5b8173cff686b41 + unrolled_ast: 72cc14de90713951b62afb2c6f00794dd04a12fa6ad4a58fb5b8173cff686b41 + ssa_ast: fa54e329fd0842e19f981f63090fac2c1bd42b2e32076005f6a93d12587f9814 + flattened_ast: d9405729b94dd28178fbae2b11a6f8d38d8d2eb942b09789257ae66af7789c79 + inlined_ast: d9405729b94dd28178fbae2b11a6f8d38d8d2eb942b09789257ae66af7789c79 + dce_ast: d9405729b94dd28178fbae2b11a6f8d38d8d2eb942b09789257ae66af7789c79 + bytecode: b069cb686a859904113693c69a78d951b07809cfec5a01f3178c7057287ba26f diff --git a/tests/expectations/compiler/integers/i32/shr.out b/tests/expectations/compiler/integers/i32/shr.out new file mode 100644 index 0000000000..7c7fb130b8 --- /dev/null +++ b/tests/expectations/compiler/integers/i32/shr.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 721835a5ff0138c81a62ab34528b533123fd692c318cd2eff38facc2688046e6 + unrolled_ast: 721835a5ff0138c81a62ab34528b533123fd692c318cd2eff38facc2688046e6 + ssa_ast: 92445b5a175f352acf8fe0b62d85cc70aab87fba9d2e48ec748cfdaccef9c5b2 + flattened_ast: 73b2c90a88b48b0a9870f19c94bbf886b22e59481146d2fc4af2c6935d67ddeb + inlined_ast: 73b2c90a88b48b0a9870f19c94bbf886b22e59481146d2fc4af2c6935d67ddeb + dce_ast: 73b2c90a88b48b0a9870f19c94bbf886b22e59481146d2fc4af2c6935d67ddeb + bytecode: 699eda9f97d2b6c417a0fba495fdf3ff6f05965d5bc9dbd5f65ff738d5df5d4f diff --git a/tests/expectations/compiler/integers/i32/sub.out b/tests/expectations/compiler/integers/i32/sub.out new file mode 100644 index 0000000000..210361afbd --- /dev/null +++ b/tests/expectations/compiler/integers/i32/sub.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 62a567be27d96098ba6bcd9e136aadfcba5d6d6d58274eab4ec03818809cb641 + unrolled_ast: 62a567be27d96098ba6bcd9e136aadfcba5d6d6d58274eab4ec03818809cb641 + ssa_ast: 2a64ad8ea4f81725eead1ad80f31f3e38208d9161304bff1fc7ccf3c90cb7aa3 + flattened_ast: c48774ddd7240e4fed8b0347bfd8cc6b745cbdc52bf33c1fdcda61b65257dbbb + inlined_ast: c48774ddd7240e4fed8b0347bfd8cc6b745cbdc52bf33c1fdcda61b65257dbbb + dce_ast: c48774ddd7240e4fed8b0347bfd8cc6b745cbdc52bf33c1fdcda61b65257dbbb + bytecode: 181e307cfa4facef9fd4cb209e120f102fbd934b6bdaf6208f8578360b8bb707 diff --git a/tests/expectations/compiler/integers/i32/ternary.out b/tests/expectations/compiler/integers/i32/ternary.out new file mode 100644 index 0000000000..c137708cf6 --- /dev/null +++ b/tests/expectations/compiler/integers/i32/ternary.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: efe71b996f45113c33226796b7370784a645da43ae2bebadfe52736b2bb5c889 + unrolled_ast: efe71b996f45113c33226796b7370784a645da43ae2bebadfe52736b2bb5c889 + ssa_ast: cba7acecae2b084aadabac69c6b1f5e6dd3a9edd585ce973a31197beff098d62 + flattened_ast: a0c151d9765c85d125ee8d9c1a0ab359fa8c7d47c7cd35ce01b831edb5b53abf + inlined_ast: a0c151d9765c85d125ee8d9c1a0ab359fa8c7d47c7cd35ce01b831edb5b53abf + dce_ast: a0c151d9765c85d125ee8d9c1a0ab359fa8c7d47c7cd35ce01b831edb5b53abf + bytecode: 5e573c847fa4f1ac29236a5eb9a8a5601cdc8ab9fc41d1fe57225be41ca1f38e diff --git a/tests/expectations/compiler/integers/i32/xor.out b/tests/expectations/compiler/integers/i32/xor.out new file mode 100644 index 0000000000..6dd38de801 --- /dev/null +++ b/tests/expectations/compiler/integers/i32/xor.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 677f67b7b794e25f016127e50c1e715784a43498abb091afb08b1b781550d901 + unrolled_ast: 677f67b7b794e25f016127e50c1e715784a43498abb091afb08b1b781550d901 + ssa_ast: efa15b003f3e6c0a328ad9f5ad744c4f05febde5c5b7a82c702ca2c3957b074b + flattened_ast: 708d6b2ac2998b534f400d29e904127673d4aa611007ea67d03a4b291f52642e + inlined_ast: 708d6b2ac2998b534f400d29e904127673d4aa611007ea67d03a4b291f52642e + dce_ast: 708d6b2ac2998b534f400d29e904127673d4aa611007ea67d03a4b291f52642e + bytecode: e11c7631389943bb7588bb83da0b213b8c135def3ae965cb4898c010e4a61d60 diff --git a/tests/expectations/compiler/integers/i64/add.out b/tests/expectations/compiler/integers/i64/add.out new file mode 100644 index 0000000000..c2f8e8467a --- /dev/null +++ b/tests/expectations/compiler/integers/i64/add.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 1a896ccb98416a459c5edfa245904e3d344ebd999d8eb5da23ce62ec741792ef + unrolled_ast: 1a896ccb98416a459c5edfa245904e3d344ebd999d8eb5da23ce62ec741792ef + ssa_ast: 8fbc1e30d9439e5e47a30ed4898631f933bb289388513e3481fdb4896b10d223 + flattened_ast: 5ce9d97a005bf5e2054b33ac761ef40d3f7dc90b79087638c68fbc9fe7f2bb7a + inlined_ast: 5ce9d97a005bf5e2054b33ac761ef40d3f7dc90b79087638c68fbc9fe7f2bb7a + dce_ast: 5ce9d97a005bf5e2054b33ac761ef40d3f7dc90b79087638c68fbc9fe7f2bb7a + bytecode: 17d483203a936ddc245bdc0796535ea82eb4e2299e9c0ed1cb64273c004dce73 diff --git a/tests/expectations/compiler/integers/i64/and.out b/tests/expectations/compiler/integers/i64/and.out new file mode 100644 index 0000000000..f4ef522b6e --- /dev/null +++ b/tests/expectations/compiler/integers/i64/and.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 45cded49e482043c6f99ecf68bdb3d95a9c172f72cb2b8dd45d04379f864914f + unrolled_ast: 45cded49e482043c6f99ecf68bdb3d95a9c172f72cb2b8dd45d04379f864914f + ssa_ast: 54518951d20d3e4ac3a473ca7871f680c7e017e9638779a888f29ade194962b9 + flattened_ast: fadf1c8f0085da6f47d2f9b8da27972ac89e8fa629c3eaedc8b997ba193f9330 + inlined_ast: fadf1c8f0085da6f47d2f9b8da27972ac89e8fa629c3eaedc8b997ba193f9330 + dce_ast: fadf1c8f0085da6f47d2f9b8da27972ac89e8fa629c3eaedc8b997ba193f9330 + bytecode: 1900494d905399f3c3cb4a321ccaceaf771e194ecffde3f9256f8a4236379d72 diff --git a/tests/expectations/compiler/integers/i64/console_assert.out b/tests/expectations/compiler/integers/i64/console_assert.out new file mode 100644 index 0000000000..ab57a2b79a --- /dev/null +++ b/tests/expectations/compiler/integers/i64/console_assert.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 9ece7486ef6f0e8e674d82ee52c2014814d3f60dac62b1b40e4f88dc6332f8c7 + unrolled_ast: 9ece7486ef6f0e8e674d82ee52c2014814d3f60dac62b1b40e4f88dc6332f8c7 + ssa_ast: 68a33454ce0c3672a579323c73e7ff54393ed2d2d33c392cd6ea0ad1e7210087 + flattened_ast: e600d74aa281e08c42dde9953ab63bc5f53bf5318cbac3df21be079ea8e1c1d4 + inlined_ast: e600d74aa281e08c42dde9953ab63bc5f53bf5318cbac3df21be079ea8e1c1d4 + dce_ast: e600d74aa281e08c42dde9953ab63bc5f53bf5318cbac3df21be079ea8e1c1d4 + bytecode: a933fea3a225baaab4b8d1290eb57e8146b2c9d5b5f26d93c1d9e7b75f4ce004 diff --git a/tests/expectations/compiler/integers/i64/div.out b/tests/expectations/compiler/integers/i64/div.out new file mode 100644 index 0000000000..68d2e3fdcf --- /dev/null +++ b/tests/expectations/compiler/integers/i64/div.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: dfb39354d18a9f1547df93beb4eb440921ab96ca76bb57c3633c076436c69b5a + unrolled_ast: dfb39354d18a9f1547df93beb4eb440921ab96ca76bb57c3633c076436c69b5a + ssa_ast: 7e4a07ee7f13c91f7bc65830119b729ef83d59949cdc83a43134a2d5ec5d4aa0 + flattened_ast: aae9504daf3baca0987ed7fcdc5a50f405673ef6299a53c308fbd7c4145bd3d9 + inlined_ast: aae9504daf3baca0987ed7fcdc5a50f405673ef6299a53c308fbd7c4145bd3d9 + dce_ast: aae9504daf3baca0987ed7fcdc5a50f405673ef6299a53c308fbd7c4145bd3d9 + bytecode: 4ff31765b1127b297af44c6e74441b7c065df074c73f29c50a4284a207c399ad diff --git a/tests/expectations/compiler/integers/i64/eq.out b/tests/expectations/compiler/integers/i64/eq.out new file mode 100644 index 0000000000..1a3b1aa119 --- /dev/null +++ b/tests/expectations/compiler/integers/i64/eq.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 152ffc231e294688968f0697d008d822594e89953eb7a9bc8c50bcfb71639732 + unrolled_ast: 152ffc231e294688968f0697d008d822594e89953eb7a9bc8c50bcfb71639732 + ssa_ast: 7235d8d2e90a5cdcfa67d1496322c854fe549409bf174b8929867b69c203bb38 + flattened_ast: f9b91e5d31e12eb5eeeae64949b7866d36faff60003075b05c8d151b2bbb67b3 + inlined_ast: f9b91e5d31e12eb5eeeae64949b7866d36faff60003075b05c8d151b2bbb67b3 + dce_ast: f9b91e5d31e12eb5eeeae64949b7866d36faff60003075b05c8d151b2bbb67b3 + bytecode: d9eaaabc3cd4c2a71842849ab67c1774ea5b405de5b9e19c2569f55ee2f5ff0d diff --git a/tests/expectations/compiler/integers/i64/ge.out b/tests/expectations/compiler/integers/i64/ge.out new file mode 100644 index 0000000000..0b20e646f7 --- /dev/null +++ b/tests/expectations/compiler/integers/i64/ge.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 30f2caee73df49db72eb48a65af31001564fccdd828198dcbfae59c78d5ff848 + unrolled_ast: 30f2caee73df49db72eb48a65af31001564fccdd828198dcbfae59c78d5ff848 + ssa_ast: cb7be0fc685093bbb72d9a4a5943dc26c271c0e92233928cbc2dddfbbc01bc87 + flattened_ast: d28f84c6a585562bb3a519c26ca9dafaa619871acb8275073e455fe67bad718a + inlined_ast: d28f84c6a585562bb3a519c26ca9dafaa619871acb8275073e455fe67bad718a + dce_ast: d28f84c6a585562bb3a519c26ca9dafaa619871acb8275073e455fe67bad718a + bytecode: a4e24f8e568e5e919da45bb4f5af3c2e9cee35eefb118416bff06c89854386f3 diff --git a/tests/expectations/compiler/integers/i64/gt.out b/tests/expectations/compiler/integers/i64/gt.out new file mode 100644 index 0000000000..7beee1ae8d --- /dev/null +++ b/tests/expectations/compiler/integers/i64/gt.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: b27a8b66b4e15a4b2f01e618cf6ee9c7157d58355fb6e71b5216d8a024862bd9 + unrolled_ast: b27a8b66b4e15a4b2f01e618cf6ee9c7157d58355fb6e71b5216d8a024862bd9 + ssa_ast: fa57bafc9b8fb0881aee16b1b589406127a582428a428e698b79f445a3f038ad + flattened_ast: 05f479f4eb618dcedf26be8248a4231cadd24be6e9a13bc0d99786eefe389551 + inlined_ast: 05f479f4eb618dcedf26be8248a4231cadd24be6e9a13bc0d99786eefe389551 + dce_ast: 05f479f4eb618dcedf26be8248a4231cadd24be6e9a13bc0d99786eefe389551 + bytecode: d4c954232923c21fa21d3bda6a7dcc582ea6bb1b83600053839b5f3186c722cf diff --git a/tests/expectations/compiler/integers/i64/le.out b/tests/expectations/compiler/integers/i64/le.out new file mode 100644 index 0000000000..59a26244be --- /dev/null +++ b/tests/expectations/compiler/integers/i64/le.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 7958c45fbe6812400273968cf53acf0739802db9c8a63f79d90f19f4f5454c24 + unrolled_ast: 7958c45fbe6812400273968cf53acf0739802db9c8a63f79d90f19f4f5454c24 + ssa_ast: da945779aafd95c703bbc42b09f9f8e7e1bd45330cab756f9fdfb01e04c57e8f + flattened_ast: 9b4d44041a020ee7b18ed19a6142f098b3586eb13ab60cd13d691c68e813774a + inlined_ast: 9b4d44041a020ee7b18ed19a6142f098b3586eb13ab60cd13d691c68e813774a + dce_ast: 9b4d44041a020ee7b18ed19a6142f098b3586eb13ab60cd13d691c68e813774a + bytecode: 5e52e11a750dd49054fbc4df94cca7d6d8a6e3500688ab9dff28a2840f2debce diff --git a/tests/expectations/compiler/integers/i64/lt.out b/tests/expectations/compiler/integers/i64/lt.out new file mode 100644 index 0000000000..57814a1fa0 --- /dev/null +++ b/tests/expectations/compiler/integers/i64/lt.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: d4e3a8f41b615757cdf99d4d609a10755ab118378b65eeee6a53ee9550033236 + unrolled_ast: d4e3a8f41b615757cdf99d4d609a10755ab118378b65eeee6a53ee9550033236 + ssa_ast: 564ec318ffcca962776790d045fc1ea06d4d4aa25aa0b954ec4494f3c9656906 + flattened_ast: c5b81cf64a4773e73543bc69f53eabbc60194f7d8fea08d77585a4d5cc5196ce + inlined_ast: c5b81cf64a4773e73543bc69f53eabbc60194f7d8fea08d77585a4d5cc5196ce + dce_ast: c5b81cf64a4773e73543bc69f53eabbc60194f7d8fea08d77585a4d5cc5196ce + bytecode: 4343e01aa9b8faa22e183d62b592ac2fdeadeddce9c27d195579daf09195035d diff --git a/tests/expectations/compiler/integers/i64/max.out b/tests/expectations/compiler/integers/i64/max.out new file mode 100644 index 0000000000..49bce1c60b --- /dev/null +++ b/tests/expectations/compiler/integers/i64/max.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: ae45a3f2626e87be344d510c69b9d726f8c1259e3e0384157e6625a78c76b155 + unrolled_ast: ae45a3f2626e87be344d510c69b9d726f8c1259e3e0384157e6625a78c76b155 + ssa_ast: 4c1d249deb66448ff22d88f0414e1a42af6de03ebdbeab5863a6bd3b436e7d4d + flattened_ast: 66f0435dd502095b13769c76c5cfc5a42141eccf4a0057da9406d31aff5748ea + inlined_ast: 66f0435dd502095b13769c76c5cfc5a42141eccf4a0057da9406d31aff5748ea + dce_ast: 66f0435dd502095b13769c76c5cfc5a42141eccf4a0057da9406d31aff5748ea + bytecode: 929c4b937a8a738bf0965e24eeedbc03e55d101c8e36cfe1291733c1669280a5 diff --git a/tests/expectations/compiler/integers/i64/max_fail.out b/tests/expectations/compiler/integers/i64/max_fail.out new file mode 100644 index 0000000000..dd89a21584 --- /dev/null +++ b/tests/expectations/compiler/integers/i64/max_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372008]: The value 9223372036854775808 is not a valid `i64`\n --> compiler-test:5:22\n |\n 5 | let a: i64 = 9223372036854775808i64;\n | ^^^^^^^^^^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/integers/i64/min.out b/tests/expectations/compiler/integers/i64/min.out new file mode 100644 index 0000000000..4d2e0c7210 --- /dev/null +++ b/tests/expectations/compiler/integers/i64/min.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 89eefed60b3261e0c6af9479c75837ef3ac7de647c99a5876176ce0f8cbe99c0 + unrolled_ast: 89eefed60b3261e0c6af9479c75837ef3ac7de647c99a5876176ce0f8cbe99c0 + ssa_ast: 9a36e16e7906f75a4b58a9e9a7f07a20de1d4eecc3f15d0b2cc5b51c288bf2ab + flattened_ast: 27e4b193adda62809c5ff6b2752e48d939defff47125e36cdd2520baec6511a3 + inlined_ast: 27e4b193adda62809c5ff6b2752e48d939defff47125e36cdd2520baec6511a3 + dce_ast: 27e4b193adda62809c5ff6b2752e48d939defff47125e36cdd2520baec6511a3 + bytecode: c70650dc5c5f4290173474dc878e9507448aed41f0f9f91348871c76e1a0d743 diff --git a/tests/expectations/compiler/integers/i64/min_fail.out b/tests/expectations/compiler/integers/i64/min_fail.out new file mode 100644 index 0000000000..c5f0a94eb2 --- /dev/null +++ b/tests/expectations/compiler/integers/i64/min_fail.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 476bf1f6462e3e5e1088453848e3e857b53bd258b314b5870c4b412b93eec688 + unrolled_ast: 476bf1f6462e3e5e1088453848e3e857b53bd258b314b5870c4b412b93eec688 + ssa_ast: 6c221da2c29f57844de7b134f6d57a6933e17e2a2a8091581790b99da0a00e73 + flattened_ast: 5cf08f6bb13069b1b18b55a7105144b0ef27aaad3b38404a630afa1c3f03a298 + inlined_ast: 5cf08f6bb13069b1b18b55a7105144b0ef27aaad3b38404a630afa1c3f03a298 + dce_ast: 5cf08f6bb13069b1b18b55a7105144b0ef27aaad3b38404a630afa1c3f03a298 + bytecode: 974c9ba823baf31ab404b852fea45c594b862ef0cc1f75b0a8c929dcbaa9beda diff --git a/tests/expectations/compiler/integers/i64/mul.out b/tests/expectations/compiler/integers/i64/mul.out new file mode 100644 index 0000000000..a72c6990e4 --- /dev/null +++ b/tests/expectations/compiler/integers/i64/mul.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: ebb39c461b8481a0a7c7b09eb36ea4fc304c52831a0b6d0310f68da1d8c5d66c + unrolled_ast: ebb39c461b8481a0a7c7b09eb36ea4fc304c52831a0b6d0310f68da1d8c5d66c + ssa_ast: b46aaa0651dc469592695168a757daf19b768a988303450495df7dc69ee27d50 + flattened_ast: 212ee0c5794ce1c1049572a9c9150128c602d0b309a01c79ca7a855d8b8ff7e3 + inlined_ast: 212ee0c5794ce1c1049572a9c9150128c602d0b309a01c79ca7a855d8b8ff7e3 + dce_ast: 212ee0c5794ce1c1049572a9c9150128c602d0b309a01c79ca7a855d8b8ff7e3 + bytecode: 99be027f5187d87654776502492f4f1978e42cc05f8f8f95182affbca89c3821 diff --git a/tests/expectations/compiler/integers/i64/ne.out b/tests/expectations/compiler/integers/i64/ne.out new file mode 100644 index 0000000000..708f9ffe80 --- /dev/null +++ b/tests/expectations/compiler/integers/i64/ne.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: de4148f1e080f5c2a7987e500772567847f13af2ef6f00d48e2771e1e2a9a12f + unrolled_ast: de4148f1e080f5c2a7987e500772567847f13af2ef6f00d48e2771e1e2a9a12f + ssa_ast: e4c2a29baf4c409c4e2ff2b822607911d0ae845cce4795ff2fe3ca076b1a673c + flattened_ast: ad6eab48fea0964db8b32915464de08b246e4dea1fb700b918bd4a3f01ec4a39 + inlined_ast: ad6eab48fea0964db8b32915464de08b246e4dea1fb700b918bd4a3f01ec4a39 + dce_ast: ad6eab48fea0964db8b32915464de08b246e4dea1fb700b918bd4a3f01ec4a39 + bytecode: b10e55267602daa0dad06640cb8fd5284e816f1186333a8fc5fa9d35af8e18a1 diff --git a/tests/expectations/compiler/integers/i64/negate.out b/tests/expectations/compiler/integers/i64/negate.out new file mode 100644 index 0000000000..aeab48667b --- /dev/null +++ b/tests/expectations/compiler/integers/i64/negate.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 9267e59358dc48676d40b707def027e00573e6403c5ef914b24a54e1bf3ec2ee + unrolled_ast: 9267e59358dc48676d40b707def027e00573e6403c5ef914b24a54e1bf3ec2ee + ssa_ast: 78a32a71f9ad153c60d2a402eef856c7620cf4e2372c5c6fa137261c648f01f0 + flattened_ast: da651dd5fe10a0c60dc0efd3bb55fcae21a06d19cef628f96562a423623b6023 + inlined_ast: da651dd5fe10a0c60dc0efd3bb55fcae21a06d19cef628f96562a423623b6023 + dce_ast: da651dd5fe10a0c60dc0efd3bb55fcae21a06d19cef628f96562a423623b6023 + bytecode: 1eb8ed3e4e4f46596178405f771a75b5eb12a6aa0f81de6ad95a5a0a1fa89923 diff --git a/tests/expectations/compiler/integers/i64/negate_min_fail.out b/tests/expectations/compiler/integers/i64/negate_min_fail.out new file mode 100644 index 0000000000..fbace9bac7 --- /dev/null +++ b/tests/expectations/compiler/integers/i64/negate_min_fail.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 898ffb157e0dceb1d024cacec2daeab027619787907001179f4da352e1bb2ae0 + unrolled_ast: 898ffb157e0dceb1d024cacec2daeab027619787907001179f4da352e1bb2ae0 + ssa_ast: 05fabac2842b95c4af0ec640c01eb470aa715ebf93975b9f5bfbd66cc35fb4ed + flattened_ast: a2451062ac9d92a4a3c752e8a2660ad2dd474a6e0d3cfaf4f2dcd78a1b93666f + inlined_ast: a2451062ac9d92a4a3c752e8a2660ad2dd474a6e0d3cfaf4f2dcd78a1b93666f + dce_ast: a2451062ac9d92a4a3c752e8a2660ad2dd474a6e0d3cfaf4f2dcd78a1b93666f + bytecode: a1de0e06df0187d60cb76010969bb2ad1450e01f2b30f6de978c35898872e782 diff --git a/tests/expectations/compiler/integers/i64/negate_zero.out b/tests/expectations/compiler/integers/i64/negate_zero.out new file mode 100644 index 0000000000..f02ed4bca6 --- /dev/null +++ b/tests/expectations/compiler/integers/i64/negate_zero.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 055899b68bde27b066c82bbda48532c483167d84019af12e66b5bf23377c7ee1 + unrolled_ast: 055899b68bde27b066c82bbda48532c483167d84019af12e66b5bf23377c7ee1 + ssa_ast: 06f67c3fef3ba46e27c2c97084eaac022f21b861b3a0facc7c8fc7c243801479 + flattened_ast: 19344ec6e2964c932ceee3361b8c1565688c6de4f382307b2ae06e51a42c2326 + inlined_ast: 19344ec6e2964c932ceee3361b8c1565688c6de4f382307b2ae06e51a42c2326 + dce_ast: 19344ec6e2964c932ceee3361b8c1565688c6de4f382307b2ae06e51a42c2326 + bytecode: 0295112d7456742abc2395eeab5b9cb4ee8c80a439b0e861404330014260086e diff --git a/tests/expectations/compiler/integers/i64/no_space_between_literal.out b/tests/expectations/compiler/integers/i64/no_space_between_literal.out new file mode 100644 index 0000000000..a7f554d4a1 --- /dev/null +++ b/tests/expectations/compiler/integers/i64/no_space_between_literal.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected : -- found '='\n --> compiler-test:5:15\n |\n 5 | let i = 1 i64;\n | ^" diff --git a/tests/expectations/compiler/integers/i64/operator_methods.out b/tests/expectations/compiler/integers/i64/operator_methods.out new file mode 100644 index 0000000000..4ecad719df --- /dev/null +++ b/tests/expectations/compiler/integers/i64/operator_methods.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: aacae98aeedbd8eb16311d12874e2245ce8c205fbb67f7c5efdb8b3f71d4c605 + unrolled_ast: aacae98aeedbd8eb16311d12874e2245ce8c205fbb67f7c5efdb8b3f71d4c605 + ssa_ast: 7a9ea30b5ebc12987e117322db994faae028794aacc81ad91c48fdcab3c95b3b + flattened_ast: 4e635e9839a156e43a5b384f8236b4e5bfa0bd4b8628248b33bfd4fcdde51268 + inlined_ast: 4e635e9839a156e43a5b384f8236b4e5bfa0bd4b8628248b33bfd4fcdde51268 + dce_ast: 4b8d95f79487158d586ee7a424d94666a27a3cec5506a20ea834045f13da9e28 + bytecode: 2bc4334f42205f2800b37e69fac6cacfdf6cac174d71034aaee478be2d1a2ef0 diff --git a/tests/expectations/compiler/integers/i64/or.out b/tests/expectations/compiler/integers/i64/or.out new file mode 100644 index 0000000000..91144f5777 --- /dev/null +++ b/tests/expectations/compiler/integers/i64/or.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 42b263a766182f5c5b89bbf28d293717330db5e9af310b31a867a82ba999cb9d + unrolled_ast: 42b263a766182f5c5b89bbf28d293717330db5e9af310b31a867a82ba999cb9d + ssa_ast: fd11513f1819924530b3c799eda59b6a6cbb4d12480cc51021ebcdf9ec030003 + flattened_ast: 262c943aefe96fe5c26afb9a5b65ff24f7823f3f3f19d0243807f3c0bfb277f8 + inlined_ast: 262c943aefe96fe5c26afb9a5b65ff24f7823f3f3f19d0243807f3c0bfb277f8 + dce_ast: 262c943aefe96fe5c26afb9a5b65ff24f7823f3f3f19d0243807f3c0bfb277f8 + bytecode: 10d8b6e5560993921b85cea5a03c9e5af008271e9f540aa2a5e2232302ec215a diff --git a/tests/expectations/compiler/integers/i64/pow.out b/tests/expectations/compiler/integers/i64/pow.out new file mode 100644 index 0000000000..b357fd6fcb --- /dev/null +++ b/tests/expectations/compiler/integers/i64/pow.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 726693eaa934c838e10f68447e8e16f0a3c0435b33812da3158350f98bceacfb + unrolled_ast: 726693eaa934c838e10f68447e8e16f0a3c0435b33812da3158350f98bceacfb + ssa_ast: fb0e4e20eacae26bd876f7ac928b89bb8a7c6d6437c70962a33918c3f53f7f76 + flattened_ast: fcaa27ce642795aab29e5f6980dc60312d8d6e44f30e3bcd9027de36bbf457ac + inlined_ast: fcaa27ce642795aab29e5f6980dc60312d8d6e44f30e3bcd9027de36bbf457ac + dce_ast: fcaa27ce642795aab29e5f6980dc60312d8d6e44f30e3bcd9027de36bbf457ac + bytecode: ed321c5f4fbf49d901732c6bc9c133d64b569cefca9a04dcc1445d98beb4b2f7 diff --git a/tests/expectations/compiler/integers/i64/rem.out b/tests/expectations/compiler/integers/i64/rem.out new file mode 100644 index 0000000000..484b11a212 --- /dev/null +++ b/tests/expectations/compiler/integers/i64/rem.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: eb8202fe7ed9388cba09c6a6ea1027b371753d99fcafeeadc54b6a19d9badac7 + unrolled_ast: eb8202fe7ed9388cba09c6a6ea1027b371753d99fcafeeadc54b6a19d9badac7 + ssa_ast: f87784d1c1cc0621cbbdadc598f81c3431c0f0b8ad06ce6e2405e367a6887633 + flattened_ast: 5b8da1482b72a6b30cfb8a37b4f6db18653e927cb272334c8cf8ef335b5ba1e4 + inlined_ast: 5b8da1482b72a6b30cfb8a37b4f6db18653e927cb272334c8cf8ef335b5ba1e4 + dce_ast: 5b8da1482b72a6b30cfb8a37b4f6db18653e927cb272334c8cf8ef335b5ba1e4 + bytecode: 554ac6af1c9ec6c453966a171f2b21b09c5c1f402d4fb316680b3bfde5842bac diff --git a/tests/expectations/compiler/integers/i64/shl.out b/tests/expectations/compiler/integers/i64/shl.out new file mode 100644 index 0000000000..11e3556d1e --- /dev/null +++ b/tests/expectations/compiler/integers/i64/shl.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: a8db086bebdde5dd6002c4f6811241f5f0956bd4687021f65f070ad8ec555580 + unrolled_ast: a8db086bebdde5dd6002c4f6811241f5f0956bd4687021f65f070ad8ec555580 + ssa_ast: 7c74560fa7350efa82d400ee472693e640d63960224c59c319862ff68007ff07 + flattened_ast: 9d587bde21665a6192bbe0f312930f4d9cf42ff9bd910a5925883829786cd92d + inlined_ast: 9d587bde21665a6192bbe0f312930f4d9cf42ff9bd910a5925883829786cd92d + dce_ast: 9d587bde21665a6192bbe0f312930f4d9cf42ff9bd910a5925883829786cd92d + bytecode: 98564fe7ce0c9a43bb88749f61cbbc6a62377e9df7a5711110138e10165d6dc3 diff --git a/tests/expectations/compiler/integers/i64/shr.out b/tests/expectations/compiler/integers/i64/shr.out new file mode 100644 index 0000000000..a346936f5d --- /dev/null +++ b/tests/expectations/compiler/integers/i64/shr.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: edb8879b54b4b966ebc55213523408f0ba847c504f5d0ced9a24be35dacebc53 + unrolled_ast: edb8879b54b4b966ebc55213523408f0ba847c504f5d0ced9a24be35dacebc53 + ssa_ast: 9d15b7bbc9533605bc3097cbb840be66c9d4e2a922e63602883d8d83f3a6335f + flattened_ast: de58053cda2d80760c7501f9e3db0af69e7fa40f543ff7cf1b0e40b0711c6730 + inlined_ast: de58053cda2d80760c7501f9e3db0af69e7fa40f543ff7cf1b0e40b0711c6730 + dce_ast: de58053cda2d80760c7501f9e3db0af69e7fa40f543ff7cf1b0e40b0711c6730 + bytecode: 70b6844282763edb6d61664583d2c30b38259b3e2df0c8fc95d1d72ff0514aa7 diff --git a/tests/expectations/compiler/integers/i64/sub.out b/tests/expectations/compiler/integers/i64/sub.out new file mode 100644 index 0000000000..3740c2a7e7 --- /dev/null +++ b/tests/expectations/compiler/integers/i64/sub.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: cdf20cc524198a1be8022f73649282f582a2fd25a12c172f0c7acb42b7243ab9 + unrolled_ast: cdf20cc524198a1be8022f73649282f582a2fd25a12c172f0c7acb42b7243ab9 + ssa_ast: 216e0f94a762cae9c6b27ee944c9ecea0840c3f2ffb27524a6448e378553d735 + flattened_ast: dbe52b1feb534c6fbf1e8287647da8c8f110b73b8afad5e832c531ccbf246b79 + inlined_ast: dbe52b1feb534c6fbf1e8287647da8c8f110b73b8afad5e832c531ccbf246b79 + dce_ast: dbe52b1feb534c6fbf1e8287647da8c8f110b73b8afad5e832c531ccbf246b79 + bytecode: 85db7ab7875d071536eaf1c6f9e37e5ca41ad4039a62e92fd34efc7ccc432ddb diff --git a/tests/expectations/compiler/integers/i64/ternary.out b/tests/expectations/compiler/integers/i64/ternary.out new file mode 100644 index 0000000000..47a0be32df --- /dev/null +++ b/tests/expectations/compiler/integers/i64/ternary.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 3eb27e3c6fac75daca7e66b076b9b228d5eac3fa5fc5f36c29b42d7519d406e8 + unrolled_ast: 3eb27e3c6fac75daca7e66b076b9b228d5eac3fa5fc5f36c29b42d7519d406e8 + ssa_ast: 3014b27dee241fd4f997a1a7e60b5b0e99b83895203d5f3b2e7bdd8fef2135b5 + flattened_ast: 57fb38e9d1c97d359d49225dc4d8c42d3277f8859bc8ed0ff73d8a8aeb44030e + inlined_ast: 57fb38e9d1c97d359d49225dc4d8c42d3277f8859bc8ed0ff73d8a8aeb44030e + dce_ast: 57fb38e9d1c97d359d49225dc4d8c42d3277f8859bc8ed0ff73d8a8aeb44030e + bytecode: efc50d9c273e04e053737ce892bd545a43ffd8bf293e1a9b60ac1b39f215a653 diff --git a/tests/expectations/compiler/integers/i64/xor.out b/tests/expectations/compiler/integers/i64/xor.out new file mode 100644 index 0000000000..c9af924139 --- /dev/null +++ b/tests/expectations/compiler/integers/i64/xor.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: bbc88045d49d59b365a47238fcb1eec6ef4f7061857d5670a188eb4494e16779 + unrolled_ast: bbc88045d49d59b365a47238fcb1eec6ef4f7061857d5670a188eb4494e16779 + ssa_ast: 26710675440c832642a4932ddb88a831e011eaf156da346c765d294d06beba17 + flattened_ast: 08c494674c216dc09227a09920e518389f2f92f08317e8713ecf1bb443c516b5 + inlined_ast: 08c494674c216dc09227a09920e518389f2f92f08317e8713ecf1bb443c516b5 + dce_ast: 08c494674c216dc09227a09920e518389f2f92f08317e8713ecf1bb443c516b5 + bytecode: 79ef5c83b542f0975485816623a41084fca121d7a9cbb2b8701d5f819be7f2cb diff --git a/tests/expectations/compiler/integers/i8/add.out b/tests/expectations/compiler/integers/i8/add.out new file mode 100644 index 0000000000..07ab194670 --- /dev/null +++ b/tests/expectations/compiler/integers/i8/add.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: e6d1d672f10e66d894a4e81d01095845b1a42ed474976d0f6cc07d046852255a + unrolled_ast: e6d1d672f10e66d894a4e81d01095845b1a42ed474976d0f6cc07d046852255a + ssa_ast: 0fb901d5786a0d4ede3e59492c23fa2f8c091d6450d460144bb7678c6496f977 + flattened_ast: 8530a2ad8f971963bb3410a8486e8dc12bb3f785f7d368b6872f37ffd82b94c9 + inlined_ast: 8530a2ad8f971963bb3410a8486e8dc12bb3f785f7d368b6872f37ffd82b94c9 + dce_ast: 8530a2ad8f971963bb3410a8486e8dc12bb3f785f7d368b6872f37ffd82b94c9 + bytecode: 53f7284ec0cee9952b67d8f531abc9fd7efe250af6a77880444ae5a64bcf5282 diff --git a/tests/expectations/compiler/integers/i8/and.out b/tests/expectations/compiler/integers/i8/and.out new file mode 100644 index 0000000000..7c27b07630 --- /dev/null +++ b/tests/expectations/compiler/integers/i8/and.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 0e446a8352497996dd0e00e496da0dde0b4dd3e249632f1d9511dc66d38b6dbc + unrolled_ast: 0e446a8352497996dd0e00e496da0dde0b4dd3e249632f1d9511dc66d38b6dbc + ssa_ast: e306a4621aa5ab55b39817a5a7b0093a3a5e3827e2be287ceafbf2e177cf71fd + flattened_ast: f8bfce3a9a0f0e698cfe4e2d3fb2aaf0d3db7a8714b6c61d23bd7e11347d286b + inlined_ast: f8bfce3a9a0f0e698cfe4e2d3fb2aaf0d3db7a8714b6c61d23bd7e11347d286b + dce_ast: f8bfce3a9a0f0e698cfe4e2d3fb2aaf0d3db7a8714b6c61d23bd7e11347d286b + bytecode: 6817590922be3c3e3daabc7006ee52ccbf790f4c133edfb2b20b6d93946f8534 diff --git a/tests/expectations/compiler/integers/i8/console_assert.out b/tests/expectations/compiler/integers/i8/console_assert.out new file mode 100644 index 0000000000..691b92cc4e --- /dev/null +++ b/tests/expectations/compiler/integers/i8/console_assert.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 00b70e003adb5374530f055a6ca7c671357e977ea45c4635269d15af9f23b082 + unrolled_ast: 00b70e003adb5374530f055a6ca7c671357e977ea45c4635269d15af9f23b082 + ssa_ast: 3ba6081289c76d13e2b68519aafd87d7209b88e0c8f30e061c9e75cc158492b6 + flattened_ast: 84f4f03d70d83253069e010860d94b99b60c0b88565245619fae625cdc7af5f5 + inlined_ast: 84f4f03d70d83253069e010860d94b99b60c0b88565245619fae625cdc7af5f5 + dce_ast: 84f4f03d70d83253069e010860d94b99b60c0b88565245619fae625cdc7af5f5 + bytecode: 9ccdd321e147afa7ed76ec9b6660c2e195eba447dfc9fb3049e3473461610686 diff --git a/tests/expectations/compiler/integers/i8/div.out b/tests/expectations/compiler/integers/i8/div.out new file mode 100644 index 0000000000..67f77d98c3 --- /dev/null +++ b/tests/expectations/compiler/integers/i8/div.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 52fa8d014a0c43daf68813cc8e56eba15fe3030d17975b37150211b277a49e03 + unrolled_ast: 52fa8d014a0c43daf68813cc8e56eba15fe3030d17975b37150211b277a49e03 + ssa_ast: 7f220d64e2aa471c9d7102de474b3d905d87a6b06849f72a1d1fc12795a22ed9 + flattened_ast: 3639233d66f692e4de497a1858b14ce428ddfdbde008580886533bce4fcc8537 + inlined_ast: 3639233d66f692e4de497a1858b14ce428ddfdbde008580886533bce4fcc8537 + dce_ast: 3639233d66f692e4de497a1858b14ce428ddfdbde008580886533bce4fcc8537 + bytecode: 21c6bdc9bd2cdebb8b2b912e0385d324aac170014c87be6722f084ebbc5ed4db diff --git a/tests/expectations/compiler/integers/i8/eq.out b/tests/expectations/compiler/integers/i8/eq.out new file mode 100644 index 0000000000..033e51f3eb --- /dev/null +++ b/tests/expectations/compiler/integers/i8/eq.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: e0d67d3fc32d97e514f540ca35b1c7b0bf731c94654f9972e8821a6757555669 + unrolled_ast: e0d67d3fc32d97e514f540ca35b1c7b0bf731c94654f9972e8821a6757555669 + ssa_ast: af7995ecf79feeaf80b9ce9504d1ddc977870c0df863ad9f9f46d4b9bb7be2b0 + flattened_ast: a8b292eaeed679819c3e5f621e18459f98f5c1634a55265c849943d901f0c2cf + inlined_ast: a8b292eaeed679819c3e5f621e18459f98f5c1634a55265c849943d901f0c2cf + dce_ast: a8b292eaeed679819c3e5f621e18459f98f5c1634a55265c849943d901f0c2cf + bytecode: 3553218fd9386759250fd70bcba85e542a360420e40e2e9552438de21101057f diff --git a/tests/expectations/compiler/integers/i8/ge.out b/tests/expectations/compiler/integers/i8/ge.out new file mode 100644 index 0000000000..2dad13a4d5 --- /dev/null +++ b/tests/expectations/compiler/integers/i8/ge.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: f74685e110f50e6bcea61849cdf19353602ba399d112f91a41eb92045b0e27e2 + unrolled_ast: f74685e110f50e6bcea61849cdf19353602ba399d112f91a41eb92045b0e27e2 + ssa_ast: bdb25a73f7c6f9384cb0f47549feafacb9805bff18fea3df28a785922368affc + flattened_ast: 4144c164a96551f3efb1ea77d88fe218327b72d7c0ff44205f552ff5481a7b51 + inlined_ast: 4144c164a96551f3efb1ea77d88fe218327b72d7c0ff44205f552ff5481a7b51 + dce_ast: 4144c164a96551f3efb1ea77d88fe218327b72d7c0ff44205f552ff5481a7b51 + bytecode: 9e7146c34af0d087b4b34caf78d2f65deb95229eb41978c01b9c9fea88766703 diff --git a/tests/expectations/compiler/integers/i8/gt.out b/tests/expectations/compiler/integers/i8/gt.out new file mode 100644 index 0000000000..d55a65cdde --- /dev/null +++ b/tests/expectations/compiler/integers/i8/gt.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 91ba0338a209a3f73456415eaa4f69da21afe5ea75743c8933fa39648bbc7959 + unrolled_ast: 91ba0338a209a3f73456415eaa4f69da21afe5ea75743c8933fa39648bbc7959 + ssa_ast: 7d4ee2d5f738ca289e95e3c6ad1e4a427fdeaa72390cc666178479a1e21cd0d7 + flattened_ast: 4bedba50d3ef72467b0e67bafd0eff6d092aa5a3bfd89f1c93430445e41105ca + inlined_ast: 4bedba50d3ef72467b0e67bafd0eff6d092aa5a3bfd89f1c93430445e41105ca + dce_ast: 4bedba50d3ef72467b0e67bafd0eff6d092aa5a3bfd89f1c93430445e41105ca + bytecode: 4b9c1679d96af528d4ed9b013682aefc9c492f96be84961ea92c1a6929168bb6 diff --git a/tests/expectations/compiler/integers/i8/le.out b/tests/expectations/compiler/integers/i8/le.out new file mode 100644 index 0000000000..8b547185c0 --- /dev/null +++ b/tests/expectations/compiler/integers/i8/le.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: bf9c1f7e2437a7e804b99729b7594170a12aa70ff7bb15981cff020672bfbcee + unrolled_ast: bf9c1f7e2437a7e804b99729b7594170a12aa70ff7bb15981cff020672bfbcee + ssa_ast: 1b4f6d17179e7067161fabf7e589cb3681277723a5d724013b7910dfdcde97cd + flattened_ast: 2d41d96fe6053f86fce4ad540ce4f80eae4da959894c0a7756c9e089da04ad1f + inlined_ast: 2d41d96fe6053f86fce4ad540ce4f80eae4da959894c0a7756c9e089da04ad1f + dce_ast: 2d41d96fe6053f86fce4ad540ce4f80eae4da959894c0a7756c9e089da04ad1f + bytecode: 81333cc939429f1e8d89bb3f11ff35b75521e765dbc3ca0ee97540dc37952d9a diff --git a/tests/expectations/compiler/integers/i8/lt.out b/tests/expectations/compiler/integers/i8/lt.out new file mode 100644 index 0000000000..d3d7867d83 --- /dev/null +++ b/tests/expectations/compiler/integers/i8/lt.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 9fabc1af69f04e169de479f8dfc743dbec447edabd05c348645d8923bf1c045b + unrolled_ast: 9fabc1af69f04e169de479f8dfc743dbec447edabd05c348645d8923bf1c045b + ssa_ast: 317a456d9810008dbdd71081c1289aeee8502daa9eeadde227d3fbfa7c0aa16c + flattened_ast: 66bdb46f660c9dda02c920ec21309a69fd9878c392c84847cd1dc65657b4f9f0 + inlined_ast: 66bdb46f660c9dda02c920ec21309a69fd9878c392c84847cd1dc65657b4f9f0 + dce_ast: 66bdb46f660c9dda02c920ec21309a69fd9878c392c84847cd1dc65657b4f9f0 + bytecode: f051e00dada12c993b7f40a69f919aea35c55ee397cde828a1bb7fabadb39f2f diff --git a/tests/expectations/compiler/integers/i8/max.out b/tests/expectations/compiler/integers/i8/max.out new file mode 100644 index 0000000000..4c59f3c20a --- /dev/null +++ b/tests/expectations/compiler/integers/i8/max.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 68d39b0b099d534561b4712320da13b72c362028af6aaa9d458178d2c33c22bb + unrolled_ast: 68d39b0b099d534561b4712320da13b72c362028af6aaa9d458178d2c33c22bb + ssa_ast: 55be35ea4e54621696512eee88cc29df09de0829bffd08e0fea286c4dbce02e6 + flattened_ast: a01c517df77f672961c9259104ea38226693b878f43168a6a02f9c6d1623ea24 + inlined_ast: a01c517df77f672961c9259104ea38226693b878f43168a6a02f9c6d1623ea24 + dce_ast: a01c517df77f672961c9259104ea38226693b878f43168a6a02f9c6d1623ea24 + bytecode: dc0e9e85c05c9e036b868585f9bbc765c2ec6a8b456401fa5c21c58b68082942 diff --git a/tests/expectations/compiler/integers/i8/max_fail.out b/tests/expectations/compiler/integers/i8/max_fail.out new file mode 100644 index 0000000000..ad8fe897af --- /dev/null +++ b/tests/expectations/compiler/integers/i8/max_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372008]: The value 128 is not a valid `i8`\n --> compiler-test:5:21\n |\n 5 | let a: i8 = 128i8;\n | ^^^^^\n" diff --git a/tests/expectations/compiler/integers/i8/min.out b/tests/expectations/compiler/integers/i8/min.out new file mode 100644 index 0000000000..4d95abe0c6 --- /dev/null +++ b/tests/expectations/compiler/integers/i8/min.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 5afc21c0bfe762f9041158429dd7fa61f322a3b46d7afa3828070d8ba7c7f1da + unrolled_ast: 5afc21c0bfe762f9041158429dd7fa61f322a3b46d7afa3828070d8ba7c7f1da + ssa_ast: e36a759a21327056409751ed81043379ee5fb9d029127a503a5bbe82c53a5f5f + flattened_ast: 2ac04b1cc91299008820aa8d988fce11f4e1f6fceced38664da0021b1f388cbb + inlined_ast: 2ac04b1cc91299008820aa8d988fce11f4e1f6fceced38664da0021b1f388cbb + dce_ast: 2ac04b1cc91299008820aa8d988fce11f4e1f6fceced38664da0021b1f388cbb + bytecode: 50d4e7ba4e53f4cbb291e2fb213c7d7d6e24261197c0a62dcaa6df341ada5804 diff --git a/tests/expectations/compiler/integers/i8/min_fail.out b/tests/expectations/compiler/integers/i8/min_fail.out new file mode 100644 index 0000000000..f68dca0cab --- /dev/null +++ b/tests/expectations/compiler/integers/i8/min_fail.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: c58f15d132479a0c98c60fbb82821c5ade35a14a14ca1c81a58d07bfa308375a + unrolled_ast: c58f15d132479a0c98c60fbb82821c5ade35a14a14ca1c81a58d07bfa308375a + ssa_ast: 7c495339daae561935481108ccf551280fc9e627469e316ad80a0c315515a4ab + flattened_ast: 94c9ddab261cde133ba5e8df9aeb58629169ad00d6ce724ff14e8eb04f12f8c7 + inlined_ast: 94c9ddab261cde133ba5e8df9aeb58629169ad00d6ce724ff14e8eb04f12f8c7 + dce_ast: 94c9ddab261cde133ba5e8df9aeb58629169ad00d6ce724ff14e8eb04f12f8c7 + bytecode: f2757e9d4dd2a331b078e23183869798b8ce892aa472bf12d26d1e2a970c57d6 diff --git a/tests/expectations/compiler/integers/i8/mul.out b/tests/expectations/compiler/integers/i8/mul.out new file mode 100644 index 0000000000..4fa1c2dbbc --- /dev/null +++ b/tests/expectations/compiler/integers/i8/mul.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: a12e99d7175573ef19f84059c174591c6e882baba9ae5760b604f8bae52dbebf + unrolled_ast: a12e99d7175573ef19f84059c174591c6e882baba9ae5760b604f8bae52dbebf + ssa_ast: 2552dfa3ff781f9a9965f3afb5f0dfd0bf88b083bca60dda09ad6a7224b09c68 + flattened_ast: d4ff9d1e000b4b2f7cfde2d08c954be8b3c4abb6d5f83c4da65626a45abc2eea + inlined_ast: d4ff9d1e000b4b2f7cfde2d08c954be8b3c4abb6d5f83c4da65626a45abc2eea + dce_ast: d4ff9d1e000b4b2f7cfde2d08c954be8b3c4abb6d5f83c4da65626a45abc2eea + bytecode: 6013dacf54aae0c3cdad036a45deb1e4594ab929d29b46420a53a46cfaab4e29 diff --git a/tests/expectations/compiler/integers/i8/ne.out b/tests/expectations/compiler/integers/i8/ne.out new file mode 100644 index 0000000000..5e0b641c8f --- /dev/null +++ b/tests/expectations/compiler/integers/i8/ne.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 026b12498978ddb8262387bf5c073bc6affc3300ece14709f83ebb818a1005e9 + unrolled_ast: 026b12498978ddb8262387bf5c073bc6affc3300ece14709f83ebb818a1005e9 + ssa_ast: 1cb9cb1696bf34f0376cb909b3f0d5681ca97cf4ea027f88389b570290b078b4 + flattened_ast: b6368914885ea0d858f17989dfca1f89167e5d9482b7748dc70eb39823cf2905 + inlined_ast: b6368914885ea0d858f17989dfca1f89167e5d9482b7748dc70eb39823cf2905 + dce_ast: b6368914885ea0d858f17989dfca1f89167e5d9482b7748dc70eb39823cf2905 + bytecode: 7a28f10ed9376765665eacbc7739f0e2241d640a6c4a82abf7036b8bafe73a0f diff --git a/tests/expectations/compiler/integers/i8/negate.out b/tests/expectations/compiler/integers/i8/negate.out new file mode 100644 index 0000000000..450d58d7ca --- /dev/null +++ b/tests/expectations/compiler/integers/i8/negate.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 705b401aec213cbf435097c02683755c1022f365a36701dffa0af7cbc605feca + unrolled_ast: 705b401aec213cbf435097c02683755c1022f365a36701dffa0af7cbc605feca + ssa_ast: f1a3ce4038d3e104bfe80df50bb2dde68d7ecb37393a02eda7e635e1c1f327df + flattened_ast: 0530e5d3e08358efc24b198a1ab74e9874864c918d2cdf739e776879f9737788 + inlined_ast: 0530e5d3e08358efc24b198a1ab74e9874864c918d2cdf739e776879f9737788 + dce_ast: 0530e5d3e08358efc24b198a1ab74e9874864c918d2cdf739e776879f9737788 + bytecode: a721cf409ef6f324202d71cfa39ab808cf28bb7fb581e62b94b699e973dba18f diff --git a/tests/expectations/compiler/integers/i8/negate_min_fail.out b/tests/expectations/compiler/integers/i8/negate_min_fail.out new file mode 100644 index 0000000000..d89ab5ec35 --- /dev/null +++ b/tests/expectations/compiler/integers/i8/negate_min_fail.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: b5e18f9c7607639804dbe02ca8606597cff5e5e9e5f0521622822de4f5980bca + unrolled_ast: b5e18f9c7607639804dbe02ca8606597cff5e5e9e5f0521622822de4f5980bca + ssa_ast: 6d228cfe61adcdce9b215bbb3d10174d501f7d11a834cd03790c5680a3610347 + flattened_ast: 1efdcd5dd9083f12e7b87818640460713677b357aea5ceebde3e61d6d27d213c + inlined_ast: 1efdcd5dd9083f12e7b87818640460713677b357aea5ceebde3e61d6d27d213c + dce_ast: 1efdcd5dd9083f12e7b87818640460713677b357aea5ceebde3e61d6d27d213c + bytecode: d141f4ef3f785d0a868f80fa465e961f271c66301506cc5269701f32f46e20d1 diff --git a/tests/expectations/compiler/integers/i8/negate_zero.out b/tests/expectations/compiler/integers/i8/negate_zero.out new file mode 100644 index 0000000000..5540345f25 --- /dev/null +++ b/tests/expectations/compiler/integers/i8/negate_zero.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 0289fe5a1b3b9f38a5aa3e3b10f84ce5b12e74ee936d0ff3ba1bcc5e077eaf34 + unrolled_ast: 0289fe5a1b3b9f38a5aa3e3b10f84ce5b12e74ee936d0ff3ba1bcc5e077eaf34 + ssa_ast: 7a6cfed3fa7c34234ce344e1c0acd7122dc67ed59602776fd9c5f51219c6e9ef + flattened_ast: fade4ff2c114cdcdfd31ebfa3879fcf2efc43f1cf4cc069647e3684b04cc9e2f + inlined_ast: fade4ff2c114cdcdfd31ebfa3879fcf2efc43f1cf4cc069647e3684b04cc9e2f + dce_ast: fade4ff2c114cdcdfd31ebfa3879fcf2efc43f1cf4cc069647e3684b04cc9e2f + bytecode: 03f172c9475df39921cf7bb70ce0544793ca7d90e3d57397cc5e425ef94c32b3 diff --git a/tests/expectations/compiler/integers/i8/no_space_between_literal.out b/tests/expectations/compiler/integers/i8/no_space_between_literal.out new file mode 100644 index 0000000000..67cfd1457c --- /dev/null +++ b/tests/expectations/compiler/integers/i8/no_space_between_literal.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected : -- found '='\n --> compiler-test:5:15\n |\n 5 | let i = 1 i8;\n | ^" diff --git a/tests/expectations/compiler/integers/i8/operator_methods.out b/tests/expectations/compiler/integers/i8/operator_methods.out new file mode 100644 index 0000000000..1b6ed6a24f --- /dev/null +++ b/tests/expectations/compiler/integers/i8/operator_methods.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 1cba72665d1102f804f3fccb2ebf73f76ed10f974675c216bb1f6bf20fff96c4 + unrolled_ast: 1cba72665d1102f804f3fccb2ebf73f76ed10f974675c216bb1f6bf20fff96c4 + ssa_ast: b7d9af462493e5cc8637349fa61366916adf499048543450c162727bf12273dd + flattened_ast: 29ed8496d287dcc3ef9cc9cb6d35e45dc6b986204704fc73db39b78380fe7d50 + inlined_ast: 29ed8496d287dcc3ef9cc9cb6d35e45dc6b986204704fc73db39b78380fe7d50 + dce_ast: f8c8c8020a2b983010733d2ae27d2cec2cb379d74a92af8727cd5b75c48378b0 + bytecode: 6d23c0ce42f90915f6fe75dc44c729d183aef74ea294f3c5c966a069b1a33fdf diff --git a/tests/expectations/compiler/integers/i8/or.out b/tests/expectations/compiler/integers/i8/or.out new file mode 100644 index 0000000000..dbbe1a501e --- /dev/null +++ b/tests/expectations/compiler/integers/i8/or.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 7aef53f4e481743ab5adc8b4e9093f5edca3527a0e155f1c0e9d83285c6e961a + unrolled_ast: 7aef53f4e481743ab5adc8b4e9093f5edca3527a0e155f1c0e9d83285c6e961a + ssa_ast: 90998a5edc6e182a910cf7dc453b95cadc90152ec91897e7f6ae1d52942831e8 + flattened_ast: 4116ca47a89a051b8ba12558a21aa766ea7b8b1931dc73657571138def2296a5 + inlined_ast: 4116ca47a89a051b8ba12558a21aa766ea7b8b1931dc73657571138def2296a5 + dce_ast: 4116ca47a89a051b8ba12558a21aa766ea7b8b1931dc73657571138def2296a5 + bytecode: 2c82186f9411e3971fe3d8d2107a84618be275c026cfb3e68c9c2b536ee7e899 diff --git a/tests/expectations/compiler/integers/i8/pow.out b/tests/expectations/compiler/integers/i8/pow.out new file mode 100644 index 0000000000..cf9f3714e5 --- /dev/null +++ b/tests/expectations/compiler/integers/i8/pow.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: adada3267028fc128c687cc2b2e560e7454a3b36045270653ad122f5462d5bf5 + unrolled_ast: adada3267028fc128c687cc2b2e560e7454a3b36045270653ad122f5462d5bf5 + ssa_ast: 218e881f156e12dff1f44954a4ce5c60a6608e8f491cf6c70d034bbe00d8b8fc + flattened_ast: 12d2c53c7209c7fae4d076e2610f533fc53956ad97cd47b7374c5500714d9289 + inlined_ast: 12d2c53c7209c7fae4d076e2610f533fc53956ad97cd47b7374c5500714d9289 + dce_ast: 12d2c53c7209c7fae4d076e2610f533fc53956ad97cd47b7374c5500714d9289 + bytecode: 31c2b5a31097f0c58d879ce7394e2e2f6fa929cfab0ee51d51f437fa2999badf diff --git a/tests/expectations/compiler/integers/i8/rem.out b/tests/expectations/compiler/integers/i8/rem.out new file mode 100644 index 0000000000..1ba4f3d2cc --- /dev/null +++ b/tests/expectations/compiler/integers/i8/rem.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: bb698ebc9399086deae4565b142ffbc4a5e8a20df57f9d0d25119ce42202878e + unrolled_ast: bb698ebc9399086deae4565b142ffbc4a5e8a20df57f9d0d25119ce42202878e + ssa_ast: 22dadf186acd2ea600e61d3a9850962d08b3fc79539a9bca4b582d7339963687 + flattened_ast: a88b64d942969dc33fb248b6d12792c5a0259b3c7348c8941a394e445be14bbf + inlined_ast: a88b64d942969dc33fb248b6d12792c5a0259b3c7348c8941a394e445be14bbf + dce_ast: a88b64d942969dc33fb248b6d12792c5a0259b3c7348c8941a394e445be14bbf + bytecode: cf10196216f488130740d21789f69b9b4d107803b54e8bec5fbad6a69375507c diff --git a/tests/expectations/compiler/integers/i8/shl.out b/tests/expectations/compiler/integers/i8/shl.out new file mode 100644 index 0000000000..2bf93ff97a --- /dev/null +++ b/tests/expectations/compiler/integers/i8/shl.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: e09afcc2d7b8c6fc2abf5558907e978d4c62c99001f0737b96358d51f591ca15 + unrolled_ast: e09afcc2d7b8c6fc2abf5558907e978d4c62c99001f0737b96358d51f591ca15 + ssa_ast: 6b7a2b99bd28a3679d4189fe01c25e550b38fa3739df637796cdf06770f8c6fc + flattened_ast: 3ee1499ae33507b75bbba4656f03e8ee6b5a0ba1e0da6028bbd331370c531b3b + inlined_ast: 3ee1499ae33507b75bbba4656f03e8ee6b5a0ba1e0da6028bbd331370c531b3b + dce_ast: 3ee1499ae33507b75bbba4656f03e8ee6b5a0ba1e0da6028bbd331370c531b3b + bytecode: 82393c15429b8c3bc3354f69a541a23f74533e0d2a2f4669ad2f167bd6539a4d diff --git a/tests/expectations/compiler/integers/i8/shr.out b/tests/expectations/compiler/integers/i8/shr.out new file mode 100644 index 0000000000..53a073e5e7 --- /dev/null +++ b/tests/expectations/compiler/integers/i8/shr.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: d1aa72c27f9fbfb313a3c5c9e1a5ca9f0232527c7ec8eb0b0885529983a0a48e + unrolled_ast: d1aa72c27f9fbfb313a3c5c9e1a5ca9f0232527c7ec8eb0b0885529983a0a48e + ssa_ast: 7f68a3617259688f4d454727b65849540ac22915bb851870240d2d364e6558cc + flattened_ast: d162a783e882c4c65d537a983a2a8cec6b77c2775658ac3c480a3f86a74dc6e1 + inlined_ast: d162a783e882c4c65d537a983a2a8cec6b77c2775658ac3c480a3f86a74dc6e1 + dce_ast: d162a783e882c4c65d537a983a2a8cec6b77c2775658ac3c480a3f86a74dc6e1 + bytecode: 34d3c84f73921c5e8ea3c9b71af860c90983a11174010569f7986bc7b4690856 diff --git a/tests/expectations/compiler/integers/i8/sub.out b/tests/expectations/compiler/integers/i8/sub.out new file mode 100644 index 0000000000..54bbd65e59 --- /dev/null +++ b/tests/expectations/compiler/integers/i8/sub.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 300cc30a566efb459fa9924ca9b6c60e004984f366d5414bb427c306adc979da + unrolled_ast: 300cc30a566efb459fa9924ca9b6c60e004984f366d5414bb427c306adc979da + ssa_ast: f66f26db69c2d458bf18de2d7d1bc348d86e2b9de0b4821a8d277fa51dc0939e + flattened_ast: 27d6020de1092d84b87e5549d7505d249cf51fc993b953f2737e0d99dc78370d + inlined_ast: 27d6020de1092d84b87e5549d7505d249cf51fc993b953f2737e0d99dc78370d + dce_ast: 27d6020de1092d84b87e5549d7505d249cf51fc993b953f2737e0d99dc78370d + bytecode: 240e913761c1b243df3d955ab56be82cf360f865a1458d1337c5bba09b1c9a0c diff --git a/tests/expectations/compiler/integers/i8/ternary.out b/tests/expectations/compiler/integers/i8/ternary.out new file mode 100644 index 0000000000..8d0dd66c40 --- /dev/null +++ b/tests/expectations/compiler/integers/i8/ternary.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 3194d0196b2fc111446e2f3c7415ed223eb0eddb7b961ce5df07fd1d27bb122e + unrolled_ast: 3194d0196b2fc111446e2f3c7415ed223eb0eddb7b961ce5df07fd1d27bb122e + ssa_ast: 7da779c6f1aea6c737205041396578d65fef400e0b33dbad95f001529321ecaf + flattened_ast: 55fabf15005eb7b482822787d93db714b9cdc9712084f65ee938466698f9cdff + inlined_ast: 55fabf15005eb7b482822787d93db714b9cdc9712084f65ee938466698f9cdff + dce_ast: 55fabf15005eb7b482822787d93db714b9cdc9712084f65ee938466698f9cdff + bytecode: 241a5a50c9244c5888a54aeb68d751fcf5f81cc3da3ab19cff1c2b258e03fc2c diff --git a/tests/expectations/compiler/integers/i8/xor.out b/tests/expectations/compiler/integers/i8/xor.out new file mode 100644 index 0000000000..282de69303 --- /dev/null +++ b/tests/expectations/compiler/integers/i8/xor.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: fbfea23087af1d74dc2143b60a24204b783f03f3d9be97bda5c2d814d2f443ae + unrolled_ast: fbfea23087af1d74dc2143b60a24204b783f03f3d9be97bda5c2d814d2f443ae + ssa_ast: f5a5e20e0ba2caea5669f492d71d2941147d2c6e67a261f8e09891d77b60d149 + flattened_ast: 5315c98493a9db25c87af42f4e7bc79d36c4fb709c2830995642151f83944621 + inlined_ast: 5315c98493a9db25c87af42f4e7bc79d36c4fb709c2830995642151f83944621 + dce_ast: 5315c98493a9db25c87af42f4e7bc79d36c4fb709c2830995642151f83944621 + bytecode: a44911d526a8e5d7da1619dce04ae1557a436208025369cff33931eb20ad3ab2 diff --git a/tests/expectations/compiler/integers/u128/add.out b/tests/expectations/compiler/integers/u128/add.out new file mode 100644 index 0000000000..57ddc9c584 --- /dev/null +++ b/tests/expectations/compiler/integers/u128/add.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 6122b0d3cb58e878a388cc226cf9d4bc040df3e5ed021102004d6ec570895602 + unrolled_ast: 6122b0d3cb58e878a388cc226cf9d4bc040df3e5ed021102004d6ec570895602 + ssa_ast: c9a3c5e6975156d3ba280e19dbd5778072ece399a8342e87bcdabb67cdc49029 + flattened_ast: 977b9983869b7e29880b37cd984037184b5413716a569bcbef33a95419acb609 + inlined_ast: 977b9983869b7e29880b37cd984037184b5413716a569bcbef33a95419acb609 + dce_ast: 977b9983869b7e29880b37cd984037184b5413716a569bcbef33a95419acb609 + bytecode: 9ff614ee709abb66471b95ed2f6358108616c96a2530d7e4fe7d8df047c5f6e7 diff --git a/tests/expectations/compiler/integers/u128/and.out b/tests/expectations/compiler/integers/u128/and.out new file mode 100644 index 0000000000..6e1cfb4d3d --- /dev/null +++ b/tests/expectations/compiler/integers/u128/and.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 27469b3351184e1494acff8a843225fb251ec9c476d2470735cb6f836a190b91 + unrolled_ast: 27469b3351184e1494acff8a843225fb251ec9c476d2470735cb6f836a190b91 + ssa_ast: 54efe625cac8b167377675109322714c2f12898ab5a9c5395c10dd85c19f8f1d + flattened_ast: e64be501e0e423226e484a90f7bfc99c4492a83fe98a991cc57a1af86573ebb3 + inlined_ast: e64be501e0e423226e484a90f7bfc99c4492a83fe98a991cc57a1af86573ebb3 + dce_ast: e64be501e0e423226e484a90f7bfc99c4492a83fe98a991cc57a1af86573ebb3 + bytecode: f86af89362dd5cc93bb266eac9d4f1c5413a5204f4390af61c3ece1f23f22d70 diff --git a/tests/expectations/compiler/integers/u128/console_assert.out b/tests/expectations/compiler/integers/u128/console_assert.out new file mode 100644 index 0000000000..3b45d02937 --- /dev/null +++ b/tests/expectations/compiler/integers/u128/console_assert.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: ecef776d197016bb917ee83c41a6c000a019dd890c4ad9ec4de4628d55401aba + unrolled_ast: ecef776d197016bb917ee83c41a6c000a019dd890c4ad9ec4de4628d55401aba + ssa_ast: 0431e603923761f3642bea4c7674eff20ccc8a745c38d9332ee661b0968c19cc + flattened_ast: 972f88c94c85c6c2741d5582dcf3fb10178db56e65f71caa85b5297af924f86e + inlined_ast: 972f88c94c85c6c2741d5582dcf3fb10178db56e65f71caa85b5297af924f86e + dce_ast: 972f88c94c85c6c2741d5582dcf3fb10178db56e65f71caa85b5297af924f86e + bytecode: d20b54c7ca0603e085ee81b6cbead9e5f0287ea391d80d47ed25df97a51daa78 diff --git a/tests/expectations/compiler/integers/u128/div.out b/tests/expectations/compiler/integers/u128/div.out new file mode 100644 index 0000000000..410289901b --- /dev/null +++ b/tests/expectations/compiler/integers/u128/div.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: c10b17fcc9ce6b400240da1a0459b59bab5df5ab4814afd9747803da801480f0 + unrolled_ast: c10b17fcc9ce6b400240da1a0459b59bab5df5ab4814afd9747803da801480f0 + ssa_ast: 1029d5387a586719f59593722c1ea8f5419b97d8aeeebe984d22e2e5e692fda6 + flattened_ast: 1df160afe1913e794932db88934823780582e97b28d22648b97547a100239b24 + inlined_ast: 1df160afe1913e794932db88934823780582e97b28d22648b97547a100239b24 + dce_ast: 1df160afe1913e794932db88934823780582e97b28d22648b97547a100239b24 + bytecode: 7710b74d9f772c456d4a1e183756d567b3f7723306b1e6b5f4cc931f8494e357 diff --git a/tests/expectations/compiler/integers/u128/eq.out b/tests/expectations/compiler/integers/u128/eq.out new file mode 100644 index 0000000000..29b0016c5d --- /dev/null +++ b/tests/expectations/compiler/integers/u128/eq.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 3202d4aa18bc6baebc15adf5dc6acb8845a9d27ffc2b8c5f12a9055215f738f8 + unrolled_ast: 3202d4aa18bc6baebc15adf5dc6acb8845a9d27ffc2b8c5f12a9055215f738f8 + ssa_ast: fe5034e47db98c2403eafcf9224bf7f344d25cbf09767ee9fec76499f76589ac + flattened_ast: 2ae01dbe584e02795a941816eaa08496a0c7cc07b182a14a05a72b6d8e420267 + inlined_ast: 2ae01dbe584e02795a941816eaa08496a0c7cc07b182a14a05a72b6d8e420267 + dce_ast: 2ae01dbe584e02795a941816eaa08496a0c7cc07b182a14a05a72b6d8e420267 + bytecode: 521ca5d8ee20c09793be83bbaa47205e8dc6839845b3e3e714b5bf5318ba1f7a diff --git a/tests/expectations/compiler/integers/u128/ge.out b/tests/expectations/compiler/integers/u128/ge.out new file mode 100644 index 0000000000..9001342f65 --- /dev/null +++ b/tests/expectations/compiler/integers/u128/ge.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 6b806255efe8c2e9022350dd7419ce603a1728f7e80c55fc7c893881c11c41e6 + unrolled_ast: 6b806255efe8c2e9022350dd7419ce603a1728f7e80c55fc7c893881c11c41e6 + ssa_ast: 967cf0cccde79f8d8cf8d5c5da8541c7b51e9cd759897b92a2e955f60853282f + flattened_ast: ed902c976e8f1eda1286516f5d92040ad1b4fa9c9dba7bb4c194e30cb32258ed + inlined_ast: ed902c976e8f1eda1286516f5d92040ad1b4fa9c9dba7bb4c194e30cb32258ed + dce_ast: ed902c976e8f1eda1286516f5d92040ad1b4fa9c9dba7bb4c194e30cb32258ed + bytecode: e699a9c69f5724cb8dfec843b6b82e47837249aa7f5293ac3c5045ab1a1cc2ca diff --git a/tests/expectations/compiler/integers/u128/gt.out b/tests/expectations/compiler/integers/u128/gt.out new file mode 100644 index 0000000000..a356b6ebae --- /dev/null +++ b/tests/expectations/compiler/integers/u128/gt.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 28fb8538b8ee3643466e75141f378deddb799223d83a51da1a728dda8ea719f3 + unrolled_ast: 28fb8538b8ee3643466e75141f378deddb799223d83a51da1a728dda8ea719f3 + ssa_ast: 12a3a904f5b43f0f5a54ca64784cb19ca42e92c267754816e755a77e5a12487c + flattened_ast: 1ecb0d6fe25281e2e4f7388315ab5df921b20057f382266f94bb17106a6fe3bf + inlined_ast: 1ecb0d6fe25281e2e4f7388315ab5df921b20057f382266f94bb17106a6fe3bf + dce_ast: 1ecb0d6fe25281e2e4f7388315ab5df921b20057f382266f94bb17106a6fe3bf + bytecode: 817c700c1047a1eef944b8e6eb001bb5b301c98ff80872c134cb5d65e6e739ec diff --git a/tests/expectations/compiler/integers/u128/le.out b/tests/expectations/compiler/integers/u128/le.out new file mode 100644 index 0000000000..5ba426d5e8 --- /dev/null +++ b/tests/expectations/compiler/integers/u128/le.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: c7d70bd6615205ce47296bdb788ec10c2701a9d87383209efad4d8088de6753c + unrolled_ast: c7d70bd6615205ce47296bdb788ec10c2701a9d87383209efad4d8088de6753c + ssa_ast: 077ad0751860ed38500eaa2e8452fcace1d368e2447f35761ecaab012eaab497 + flattened_ast: b80739cca6a1e9e7b1637adaaaa99942f10ddce3adfbfa396440e04d300103b2 + inlined_ast: b80739cca6a1e9e7b1637adaaaa99942f10ddce3adfbfa396440e04d300103b2 + dce_ast: b80739cca6a1e9e7b1637adaaaa99942f10ddce3adfbfa396440e04d300103b2 + bytecode: ea874d6bda8fcbe9a6c2f6ee73161ab55431bc3a3df4bbdb298f18bfa9535461 diff --git a/tests/expectations/compiler/integers/u128/lt.out b/tests/expectations/compiler/integers/u128/lt.out new file mode 100644 index 0000000000..afcc7a391f --- /dev/null +++ b/tests/expectations/compiler/integers/u128/lt.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: e87ace87f953afe39ae1aec4aa85d420277afe2190d54480c675fd70f5f9d02a + unrolled_ast: e87ace87f953afe39ae1aec4aa85d420277afe2190d54480c675fd70f5f9d02a + ssa_ast: e2c657b2433b39611b73e33630f6acac37e5215ca545661d28e9fdc241daad01 + flattened_ast: 9e4cf4284856d10b17ebddd07541a780d14a5d171d46f95ccd4d141c6a1a369e + inlined_ast: 9e4cf4284856d10b17ebddd07541a780d14a5d171d46f95ccd4d141c6a1a369e + dce_ast: 9e4cf4284856d10b17ebddd07541a780d14a5d171d46f95ccd4d141c6a1a369e + bytecode: cc2553063e610afba4410eb902aee6984b0b58e341069d9ad7e452fd199f75c5 diff --git a/tests/expectations/compiler/integers/u128/max.out b/tests/expectations/compiler/integers/u128/max.out new file mode 100644 index 0000000000..4d00109e1d --- /dev/null +++ b/tests/expectations/compiler/integers/u128/max.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 0e4efc15e9dd54c167ad0efae7bb63374ebc595d5ecdfd7b16e2eec96d9c377f + unrolled_ast: 0e4efc15e9dd54c167ad0efae7bb63374ebc595d5ecdfd7b16e2eec96d9c377f + ssa_ast: 8399fc3d9d60d72f10039e38948a5387afd26d21196d8fd7156abc1c9faa74a0 + flattened_ast: 963c128c997a0eda734d989de4ef2d0a75eb7e6f9b97dcd460dc636f91640421 + inlined_ast: 963c128c997a0eda734d989de4ef2d0a75eb7e6f9b97dcd460dc636f91640421 + dce_ast: ac4b5d6f5514ffe1b1da56bc7546f61480d1e049c376f06d5bc57464b3fd7036 + bytecode: 9a1e5bb7b8d932d4afd347a856bfb38db144771f49a0d9589ef14236338e3dcf diff --git a/tests/expectations/compiler/integers/u128/max_fail.out b/tests/expectations/compiler/integers/u128/max_fail.out new file mode 100644 index 0000000000..1d9a32c1f8 --- /dev/null +++ b/tests/expectations/compiler/integers/u128/max_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372008]: The value 340282366920938463463374607431768211456 is not a valid `u128`\n --> compiler-test:5:23\n |\n 5 | let a: u128 = 340282366920938463463374607431768211456u128;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/integers/u128/min.out b/tests/expectations/compiler/integers/u128/min.out new file mode 100644 index 0000000000..42db413686 --- /dev/null +++ b/tests/expectations/compiler/integers/u128/min.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 34bb5ffb6f4400180d4653b7a872ef41c4c0762fbf1704be7f6e597d3e904e59 + unrolled_ast: 34bb5ffb6f4400180d4653b7a872ef41c4c0762fbf1704be7f6e597d3e904e59 + ssa_ast: bc795702efcff2a649a79f209f65d5436d7974feb2597efa72988cd5a760f7a8 + flattened_ast: 5e6cf2ade92e1c5573fe639256a8f8bc312788922b7e55907e72588ceab52a71 + inlined_ast: 5e6cf2ade92e1c5573fe639256a8f8bc312788922b7e55907e72588ceab52a71 + dce_ast: 05f1d5a17fed385d406850244cbb19ba234f22299db350f8318524b7886216cb + bytecode: 9a1e5bb7b8d932d4afd347a856bfb38db144771f49a0d9589ef14236338e3dcf diff --git a/tests/expectations/compiler/integers/u128/min_fail.out b/tests/expectations/compiler/integers/u128/min_fail.out new file mode 100644 index 0000000000..800688f1a1 --- /dev/null +++ b/tests/expectations/compiler/integers/u128/min_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372008]: The value -1 is not a valid `u128`\n --> compiler-test:5:23\n |\n 5 | let a: u128 = -1u128;\n | ^^^^^^\n" diff --git a/tests/expectations/compiler/integers/u128/mul.out b/tests/expectations/compiler/integers/u128/mul.out new file mode 100644 index 0000000000..5ccbd7aad0 --- /dev/null +++ b/tests/expectations/compiler/integers/u128/mul.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: f6bd085d2926371833b188a11e15229d4cfbe822d99528b54a6823f91c680d80 + unrolled_ast: f6bd085d2926371833b188a11e15229d4cfbe822d99528b54a6823f91c680d80 + ssa_ast: 8591edc1735aecf5eda9fdf3c1d711d20d34931096761aa481425ef311da1f10 + flattened_ast: 8faf13a95561257f0052f6fc7fe62cf0e959f4d904d329300c1180734e2f8213 + inlined_ast: 8faf13a95561257f0052f6fc7fe62cf0e959f4d904d329300c1180734e2f8213 + dce_ast: 8faf13a95561257f0052f6fc7fe62cf0e959f4d904d329300c1180734e2f8213 + bytecode: b88aaf04313129225fa502629bc4997e455c06134fec78104d6b0227a2fc98ba diff --git a/tests/expectations/compiler/integers/u128/ne.out b/tests/expectations/compiler/integers/u128/ne.out new file mode 100644 index 0000000000..bffb665757 --- /dev/null +++ b/tests/expectations/compiler/integers/u128/ne.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 64b505f13172cf9d18f180c6d58296bebd644f861dd8ca204312553570a7d2d5 + unrolled_ast: 64b505f13172cf9d18f180c6d58296bebd644f861dd8ca204312553570a7d2d5 + ssa_ast: d049f4f34fa52bf5d691e4f9e31c63baad7128f6c63469b934e744b0ca17d735 + flattened_ast: 420dd5f54ad85e55df3743d63374e3f5195192b3fc3b5a07120605c9f4bb0e30 + inlined_ast: 420dd5f54ad85e55df3743d63374e3f5195192b3fc3b5a07120605c9f4bb0e30 + dce_ast: 420dd5f54ad85e55df3743d63374e3f5195192b3fc3b5a07120605c9f4bb0e30 + bytecode: a8ebe7242de33b5e98e7b486f64b67aa14c0661fd8a3b0e850e57ea014f502a4 diff --git a/tests/expectations/compiler/integers/u128/no_space_between_literal.out b/tests/expectations/compiler/integers/u128/no_space_between_literal.out new file mode 100644 index 0000000000..4f78192b8d --- /dev/null +++ b/tests/expectations/compiler/integers/u128/no_space_between_literal.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected : -- found '='\n --> compiler-test:5:15\n |\n 5 | let i = 1 u128;\n | ^" diff --git a/tests/expectations/compiler/integers/u128/operator_methods.out b/tests/expectations/compiler/integers/u128/operator_methods.out new file mode 100644 index 0000000000..bdd527418f --- /dev/null +++ b/tests/expectations/compiler/integers/u128/operator_methods.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 547210f3b161436d3e94ed5f33a3d515c96cb558d6b7c2d88ebf46b094ea8065 + unrolled_ast: 547210f3b161436d3e94ed5f33a3d515c96cb558d6b7c2d88ebf46b094ea8065 + ssa_ast: 4e66aede3441b08af5970d8cc6c836767e05a2c7c51d4a2e829f306390bcf841 + flattened_ast: 47d4fe543e46da21be791a057d7f9d8ff47b433c8925b92d330a7a26f6765897 + inlined_ast: 47d4fe543e46da21be791a057d7f9d8ff47b433c8925b92d330a7a26f6765897 + dce_ast: 5f23e1a070989119c1a28bce6e18b3edc5fc1811b05fbcc7852a054866f2a1a1 + bytecode: 43507852e6ea9e5cf869a03c94302133470e5d32579620cf12e95614064223ea diff --git a/tests/expectations/compiler/integers/u128/or.out b/tests/expectations/compiler/integers/u128/or.out new file mode 100644 index 0000000000..27af87bee2 --- /dev/null +++ b/tests/expectations/compiler/integers/u128/or.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 8923a186696cc1c76ed9cce9ddf1fe905a4a76c787bfeaae54d0713135c9785e + unrolled_ast: 8923a186696cc1c76ed9cce9ddf1fe905a4a76c787bfeaae54d0713135c9785e + ssa_ast: e41146608c1cfd4fad63374584fa0908b40aad79725a02e7d7cf1782daeae845 + flattened_ast: 6ba829e0dfa82ea1ae9d27413d96a0b142cf96d6f14d29f0126cf7ecbfa8d126 + inlined_ast: 6ba829e0dfa82ea1ae9d27413d96a0b142cf96d6f14d29f0126cf7ecbfa8d126 + dce_ast: 6ba829e0dfa82ea1ae9d27413d96a0b142cf96d6f14d29f0126cf7ecbfa8d126 + bytecode: 497d7538eec379ede5751c5787659362e7567f22f4d9c8f377a62f2ebf95fb83 diff --git a/tests/expectations/compiler/integers/u128/pow.out b/tests/expectations/compiler/integers/u128/pow.out new file mode 100644 index 0000000000..872df4cd4f --- /dev/null +++ b/tests/expectations/compiler/integers/u128/pow.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 6eb72d6107e7273725f4d0747ef42fd3df86c863016a5773513902ff84022e2d + unrolled_ast: 6eb72d6107e7273725f4d0747ef42fd3df86c863016a5773513902ff84022e2d + ssa_ast: 2d504509adaaded54f14dae15542a0eb94157cadc1a2210b7620a8a4c7333551 + flattened_ast: 87487ab5798c41102fda2615dfd2ad124f96906ac727e8456be0a04d18852f85 + inlined_ast: 87487ab5798c41102fda2615dfd2ad124f96906ac727e8456be0a04d18852f85 + dce_ast: 87487ab5798c41102fda2615dfd2ad124f96906ac727e8456be0a04d18852f85 + bytecode: b295d69a85960d23951d7906d80b47c30eaa713612ca063e6f70bed0e36fb779 diff --git a/tests/expectations/compiler/integers/u128/rem.out b/tests/expectations/compiler/integers/u128/rem.out new file mode 100644 index 0000000000..665ce59fbb --- /dev/null +++ b/tests/expectations/compiler/integers/u128/rem.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 3ef72b99957a3f834b9286292e77975438791cce512d74751032a54c5efe4068 + unrolled_ast: 3ef72b99957a3f834b9286292e77975438791cce512d74751032a54c5efe4068 + ssa_ast: 424478618e94f6350edad86336a877adb3f65561e4da4243b43a74fd01cd20d3 + flattened_ast: 3f48698144f9a93f0e1c3eb0b54bb652a5854fee69afec857758d31c1d9200ef + inlined_ast: 3f48698144f9a93f0e1c3eb0b54bb652a5854fee69afec857758d31c1d9200ef + dce_ast: 3f48698144f9a93f0e1c3eb0b54bb652a5854fee69afec857758d31c1d9200ef + bytecode: cffeb79a503e9b27acabb15cfb42d54ea3f43fed9f9a5ded7374e4eb6961d1c8 diff --git a/tests/expectations/compiler/integers/u128/shl.out b/tests/expectations/compiler/integers/u128/shl.out new file mode 100644 index 0000000000..df7c08c0a7 --- /dev/null +++ b/tests/expectations/compiler/integers/u128/shl.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: e77ca25b4959636a5871dca2c2229d9b9626a3445f5ddafc717079aff4360df6 + unrolled_ast: e77ca25b4959636a5871dca2c2229d9b9626a3445f5ddafc717079aff4360df6 + ssa_ast: c06a5ef9d1da4904904830fb71e831da7c23d67e678a165256123ca09fc2e0cb + flattened_ast: 69f9b90759f98d42106226e987c60db25210e6471cda72443f0192d6cea205c3 + inlined_ast: 69f9b90759f98d42106226e987c60db25210e6471cda72443f0192d6cea205c3 + dce_ast: 69f9b90759f98d42106226e987c60db25210e6471cda72443f0192d6cea205c3 + bytecode: 0042cfa5fe883c54d18c04df2847071d491cdf6f1833d0e9a2e169c96ecd2402 diff --git a/tests/expectations/compiler/integers/u128/shr.out b/tests/expectations/compiler/integers/u128/shr.out new file mode 100644 index 0000000000..5590a04473 --- /dev/null +++ b/tests/expectations/compiler/integers/u128/shr.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: bf4cf13b15eb361e70ebfd4e4314012a6c98673613648608fc6c9eacbb5d6d55 + unrolled_ast: bf4cf13b15eb361e70ebfd4e4314012a6c98673613648608fc6c9eacbb5d6d55 + ssa_ast: d0f234da21487724af2dcbca9bc42ca790394e6bb8b2cad73ddd03ad9edf3bd1 + flattened_ast: 89e43dbeca86bdebbcff27b337ebf22619eed4e7e94e1aa8b200a1aad724161f + inlined_ast: 89e43dbeca86bdebbcff27b337ebf22619eed4e7e94e1aa8b200a1aad724161f + dce_ast: 89e43dbeca86bdebbcff27b337ebf22619eed4e7e94e1aa8b200a1aad724161f + bytecode: dedaeab84a7c50d76bc53c8fb37937007409f5fcf347ba122e024119511c5529 diff --git a/tests/expectations/compiler/integers/u128/sub.out b/tests/expectations/compiler/integers/u128/sub.out new file mode 100644 index 0000000000..a8501d129d --- /dev/null +++ b/tests/expectations/compiler/integers/u128/sub.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 4d3571e3ac9be29fdeeaffc090d0077ac3d845c781ae1ec76be2e1baeff0da80 + unrolled_ast: 4d3571e3ac9be29fdeeaffc090d0077ac3d845c781ae1ec76be2e1baeff0da80 + ssa_ast: 8a6cc69352dd1cccb81f0ff1f73b646ee9d19a949da1a68515b340113b16b131 + flattened_ast: 23cfb28b3a4d305483282a9fb549ef4194693a22290b078b6d6bff70c98f0c67 + inlined_ast: 23cfb28b3a4d305483282a9fb549ef4194693a22290b078b6d6bff70c98f0c67 + dce_ast: 23cfb28b3a4d305483282a9fb549ef4194693a22290b078b6d6bff70c98f0c67 + bytecode: 314254f7afdccd71d00e9823190312578171c602ebcef017e5aee843aa9636d7 diff --git a/tests/expectations/compiler/integers/u128/ternary.out b/tests/expectations/compiler/integers/u128/ternary.out new file mode 100644 index 0000000000..cf7545b578 --- /dev/null +++ b/tests/expectations/compiler/integers/u128/ternary.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 4a02f9ecdc70b12ae94d5128bcdc1d2d5924bcbcdc781079b504b7ba6b6d0a9a + unrolled_ast: 4a02f9ecdc70b12ae94d5128bcdc1d2d5924bcbcdc781079b504b7ba6b6d0a9a + ssa_ast: 32a9bdf1d452ef5892a810463ec4d5ef78337ab9f84f791eb917dd521220d9b7 + flattened_ast: a7be17492218eb2392ac4fde1908070e9388c0ca1e55285b09d5511b8859d9a6 + inlined_ast: a7be17492218eb2392ac4fde1908070e9388c0ca1e55285b09d5511b8859d9a6 + dce_ast: a7be17492218eb2392ac4fde1908070e9388c0ca1e55285b09d5511b8859d9a6 + bytecode: f18cc6c6b3c37ca606a0bc61608df529ddc102ca0844d944f906fec91c4f9b52 diff --git a/tests/expectations/compiler/integers/u128/xor.out b/tests/expectations/compiler/integers/u128/xor.out new file mode 100644 index 0000000000..d3ce8598ec --- /dev/null +++ b/tests/expectations/compiler/integers/u128/xor.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 3fddd97c446668e076512dd4653473da5c29c4edb2c6d7fa583e3bd8481556ad + unrolled_ast: 3fddd97c446668e076512dd4653473da5c29c4edb2c6d7fa583e3bd8481556ad + ssa_ast: aa37a23164561609c026989b4b728eb60bf6a5a3e2ebbc7c06ea1e36c65bafc8 + flattened_ast: 1058743d1fc64584bdf5d37749f2e043618e55f1b139c30172cfe8159a575ebe + inlined_ast: 1058743d1fc64584bdf5d37749f2e043618e55f1b139c30172cfe8159a575ebe + dce_ast: 1058743d1fc64584bdf5d37749f2e043618e55f1b139c30172cfe8159a575ebe + bytecode: afd938366b81cd0861406fd62db4c863d1c8b505f04a4db8bacbb9c43f5b29a3 diff --git a/tests/expectations/compiler/integers/u16/add.out b/tests/expectations/compiler/integers/u16/add.out new file mode 100644 index 0000000000..a6742c651c --- /dev/null +++ b/tests/expectations/compiler/integers/u16/add.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: b063ad3f5376903a66607fb60033b220f0c8c58a97984f260ad24b9c6978711e + unrolled_ast: b063ad3f5376903a66607fb60033b220f0c8c58a97984f260ad24b9c6978711e + ssa_ast: ac80a1455fdec82690c6e72c31c6791c10c7c67570c0c83fac2d9cdf6f64a359 + flattened_ast: 354d79f48548ecb179eafadbb532b29b463291b4c0aa6b0588f40fe8adaadbe3 + inlined_ast: 354d79f48548ecb179eafadbb532b29b463291b4c0aa6b0588f40fe8adaadbe3 + dce_ast: 354d79f48548ecb179eafadbb532b29b463291b4c0aa6b0588f40fe8adaadbe3 + bytecode: f547c15f7844d25b54b1ebd86cdd705e3fbdc09564a611fd3cd0f239eff93f53 diff --git a/tests/expectations/compiler/integers/u16/and.out b/tests/expectations/compiler/integers/u16/and.out new file mode 100644 index 0000000000..050550e911 --- /dev/null +++ b/tests/expectations/compiler/integers/u16/and.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: ef1d3454cfb7459465d8fb9ab1e83df214b3a0eee857712b3b3ffeba3e6cf210 + unrolled_ast: ef1d3454cfb7459465d8fb9ab1e83df214b3a0eee857712b3b3ffeba3e6cf210 + ssa_ast: 7b1a00aedaf9e0a5deeedae92b406caac067fc7928008d0459e62b549f2af106 + flattened_ast: 5777ffe416ddd8ffe3fdc64a137eaf4bacd33552f499985a021f318992c692c0 + inlined_ast: 5777ffe416ddd8ffe3fdc64a137eaf4bacd33552f499985a021f318992c692c0 + dce_ast: 5777ffe416ddd8ffe3fdc64a137eaf4bacd33552f499985a021f318992c692c0 + bytecode: b92fd2503ffc225d448965784485e100166c08fe16458b2832978a7ccb123c89 diff --git a/tests/expectations/compiler/integers/u16/console_assert.out b/tests/expectations/compiler/integers/u16/console_assert.out new file mode 100644 index 0000000000..7e93e0f505 --- /dev/null +++ b/tests/expectations/compiler/integers/u16/console_assert.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: c9b320ad9ebc1c3dd9fe3e5855b19eb33658e6543d94d3036353458c559e42dd + unrolled_ast: c9b320ad9ebc1c3dd9fe3e5855b19eb33658e6543d94d3036353458c559e42dd + ssa_ast: 36b7d7bf6d4deed645a68ffc77e70ca12e184750db54dd9a7d690a1df55807c9 + flattened_ast: 0e3c9686e20fe9cefa06f5e06677db44d7cde90a05bf452645fe4d78ff31aa94 + inlined_ast: 0e3c9686e20fe9cefa06f5e06677db44d7cde90a05bf452645fe4d78ff31aa94 + dce_ast: 0e3c9686e20fe9cefa06f5e06677db44d7cde90a05bf452645fe4d78ff31aa94 + bytecode: 5c2e38abbf8dbb49fc4211f11a583c8b75ff3355dc64b234008c6bb61f312fbc diff --git a/tests/expectations/compiler/integers/u16/div.out b/tests/expectations/compiler/integers/u16/div.out new file mode 100644 index 0000000000..8b9d2f243d --- /dev/null +++ b/tests/expectations/compiler/integers/u16/div.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: ab4e10d6e8df3b3cbfc661713778d45067aa66d52895ba42ce803e1eeae073a8 + unrolled_ast: ab4e10d6e8df3b3cbfc661713778d45067aa66d52895ba42ce803e1eeae073a8 + ssa_ast: 3631d345acef169e3cd240030d9db85434cbbd00436b85da8eab14080a6f5b36 + flattened_ast: 057dca8142bae49572af775a098e68a3afc03ca62925b50b8c2c0e3f1b668552 + inlined_ast: 057dca8142bae49572af775a098e68a3afc03ca62925b50b8c2c0e3f1b668552 + dce_ast: 057dca8142bae49572af775a098e68a3afc03ca62925b50b8c2c0e3f1b668552 + bytecode: 87be9771a97c045c6ebd5640f02ca09f79ae9b424c41ac6955c23fd426ae9c23 diff --git a/tests/expectations/compiler/integers/u16/eq.out b/tests/expectations/compiler/integers/u16/eq.out new file mode 100644 index 0000000000..2968726f53 --- /dev/null +++ b/tests/expectations/compiler/integers/u16/eq.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: d7b554451296c46485218160254b40e42ee5674ffaee32cd8dade3bd1b7909eb + unrolled_ast: d7b554451296c46485218160254b40e42ee5674ffaee32cd8dade3bd1b7909eb + ssa_ast: 5cda29ba1106c568d8a0d0913a34a73bfd3b8ee695d6582638bb542272ef0115 + flattened_ast: d1f4ba6d47af24d5cad53d1031b1b14eec2a258c41f2331641687b5e56e2765c + inlined_ast: d1f4ba6d47af24d5cad53d1031b1b14eec2a258c41f2331641687b5e56e2765c + dce_ast: d1f4ba6d47af24d5cad53d1031b1b14eec2a258c41f2331641687b5e56e2765c + bytecode: 4087dea44779fb2c700e31777a0aa999053335f645cecece86bde0b509f3266d diff --git a/tests/expectations/compiler/integers/u16/ge.out b/tests/expectations/compiler/integers/u16/ge.out new file mode 100644 index 0000000000..5ff7210a9c --- /dev/null +++ b/tests/expectations/compiler/integers/u16/ge.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 744a86f0b02080fcbdb51ab8795b498c6293cc75873d558ed0f886f9f75e9fec + unrolled_ast: 744a86f0b02080fcbdb51ab8795b498c6293cc75873d558ed0f886f9f75e9fec + ssa_ast: 583ec6110210d04aa1474cd477533cf8d4d25d36c1c2d11374a8e0a87576395e + flattened_ast: fe4fda7da71f631fbdcdb2167339867a2e6374697e5f4365fd9ad03a9ca572da + inlined_ast: fe4fda7da71f631fbdcdb2167339867a2e6374697e5f4365fd9ad03a9ca572da + dce_ast: fe4fda7da71f631fbdcdb2167339867a2e6374697e5f4365fd9ad03a9ca572da + bytecode: 38b90d61922501f8a660d56599d9939e5b0238c3987c20a08abfbcc28b42a78b diff --git a/tests/expectations/compiler/integers/u16/gt.out b/tests/expectations/compiler/integers/u16/gt.out new file mode 100644 index 0000000000..ac7c149e11 --- /dev/null +++ b/tests/expectations/compiler/integers/u16/gt.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 5f31306e206e987b5bd32a87893b0d23e47c456880e2b9d405abdfb2acd0f6a4 + unrolled_ast: 5f31306e206e987b5bd32a87893b0d23e47c456880e2b9d405abdfb2acd0f6a4 + ssa_ast: 9b23997c821fe06a7bef40899769618577aacb8173a94c1f579c2122364bd6c3 + flattened_ast: 85f0c92fef3f9bb920edbdf7e074e584534a2e9c7f1ff624028ec8e71d1ad16e + inlined_ast: 85f0c92fef3f9bb920edbdf7e074e584534a2e9c7f1ff624028ec8e71d1ad16e + dce_ast: 85f0c92fef3f9bb920edbdf7e074e584534a2e9c7f1ff624028ec8e71d1ad16e + bytecode: dcf677cdf5a9b3aa14bcc744cb4e7638f393334301ad27109301bd7eef063714 diff --git a/tests/expectations/compiler/integers/u16/le.out b/tests/expectations/compiler/integers/u16/le.out new file mode 100644 index 0000000000..7ebc109fee --- /dev/null +++ b/tests/expectations/compiler/integers/u16/le.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: dade6175723cedb9c5bb47497ea544466d3bec07371d62eee5dd4f7b2ca37e96 + unrolled_ast: dade6175723cedb9c5bb47497ea544466d3bec07371d62eee5dd4f7b2ca37e96 + ssa_ast: 6b863d552bc10406948f6e74acf2682c9af9d89c78b2802dfb118e9badca4b44 + flattened_ast: de14c443c06ce37324afe9cfe9c700638bbd86563286c0be02f7561120c71dc3 + inlined_ast: de14c443c06ce37324afe9cfe9c700638bbd86563286c0be02f7561120c71dc3 + dce_ast: de14c443c06ce37324afe9cfe9c700638bbd86563286c0be02f7561120c71dc3 + bytecode: b42efbdfdc8e45e9ec1d3c09bd411d1a35618f03edb7d937d7634a4e763e75f9 diff --git a/tests/expectations/compiler/integers/u16/lt.out b/tests/expectations/compiler/integers/u16/lt.out new file mode 100644 index 0000000000..063db1efa1 --- /dev/null +++ b/tests/expectations/compiler/integers/u16/lt.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 3247bc2a685b5768ba5c767017a30d687e9b0e19b77c33ae029a009f7069b71c + unrolled_ast: 3247bc2a685b5768ba5c767017a30d687e9b0e19b77c33ae029a009f7069b71c + ssa_ast: c9d6b6d3dc360353fc1f2c2f9669b241fa53c5dcce86cf90adb2d32374186ee1 + flattened_ast: 1a20cb3f1ab7cb46f1f4e670e9b9c2f3f3425268f9f57d106d5af75690335854 + inlined_ast: 1a20cb3f1ab7cb46f1f4e670e9b9c2f3f3425268f9f57d106d5af75690335854 + dce_ast: 1a20cb3f1ab7cb46f1f4e670e9b9c2f3f3425268f9f57d106d5af75690335854 + bytecode: b10dd4efbabfac0d4db75433e8711f07213062647e3c9e319647a0889144452a diff --git a/tests/expectations/compiler/integers/u16/max.out b/tests/expectations/compiler/integers/u16/max.out new file mode 100644 index 0000000000..3e10e8be5e --- /dev/null +++ b/tests/expectations/compiler/integers/u16/max.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 02cdc03fb580a70ce06d1e73041469c0aa6602d9963b939392bccbaa2d9c9a0a + unrolled_ast: 02cdc03fb580a70ce06d1e73041469c0aa6602d9963b939392bccbaa2d9c9a0a + ssa_ast: f7e38a9248e6b600e66de81916d58cf06da5fea88a86f3571a87c84fe44e1cd1 + flattened_ast: 0a596e8b516e58179eeb97b83bf1b9c36964b1e7190b003595f890b7027debf7 + inlined_ast: 0a596e8b516e58179eeb97b83bf1b9c36964b1e7190b003595f890b7027debf7 + dce_ast: 0a1a05f9306aa44fc244a9827def70aac2dcd94e9d850a8dbefad5076447395f + bytecode: 9a1e5bb7b8d932d4afd347a856bfb38db144771f49a0d9589ef14236338e3dcf diff --git a/tests/expectations/compiler/integers/u16/max_fail.out b/tests/expectations/compiler/integers/u16/max_fail.out new file mode 100644 index 0000000000..e4ab924d28 --- /dev/null +++ b/tests/expectations/compiler/integers/u16/max_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372008]: The value 65536 is not a valid `u16`\n --> compiler-test:5:22\n |\n 5 | let a: u16 = 65536u16;\n | ^^^^^^^^\n" diff --git a/tests/expectations/compiler/integers/u16/min.out b/tests/expectations/compiler/integers/u16/min.out new file mode 100644 index 0000000000..f76d8371c3 --- /dev/null +++ b/tests/expectations/compiler/integers/u16/min.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: b5fa50ddb319610c951c79e7e85720bafc4d4625da0f8c62dd06bd6288f696d9 + unrolled_ast: b5fa50ddb319610c951c79e7e85720bafc4d4625da0f8c62dd06bd6288f696d9 + ssa_ast: ef74b89c7e6d644db60b731ad9916caf23e83f06ab17ee917e753037a0cf140d + flattened_ast: 48df816dc2ea028abde740d70e5b48479e62420e6a4ad187ef6bfa2e1864c504 + inlined_ast: 48df816dc2ea028abde740d70e5b48479e62420e6a4ad187ef6bfa2e1864c504 + dce_ast: 21154e5f0ae8de65800e415b5aaf804080955cf74e6f58549b847f07ba870093 + bytecode: 9a1e5bb7b8d932d4afd347a856bfb38db144771f49a0d9589ef14236338e3dcf diff --git a/tests/expectations/compiler/integers/u16/min_fail.out b/tests/expectations/compiler/integers/u16/min_fail.out new file mode 100644 index 0000000000..1474653ed9 --- /dev/null +++ b/tests/expectations/compiler/integers/u16/min_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372008]: The value -1 is not a valid `u16`\n --> compiler-test:5:22\n |\n 5 | let a: u16 = -1u16;\n | ^^^^^\n" diff --git a/tests/expectations/compiler/integers/u16/mul.out b/tests/expectations/compiler/integers/u16/mul.out new file mode 100644 index 0000000000..9fb996ec51 --- /dev/null +++ b/tests/expectations/compiler/integers/u16/mul.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: e7706cdb97ca3b829a86575ef74ebb8aaaeb5dff4d1cc9d49179bbed1cfaf959 + unrolled_ast: e7706cdb97ca3b829a86575ef74ebb8aaaeb5dff4d1cc9d49179bbed1cfaf959 + ssa_ast: ee493bfb73e20dde837525b0b758d59d254371f152f5560eded84a71e57aae8f + flattened_ast: 46ff8392f48a36958e140ce5a358a498485b5d31ac394846c44ae8e74c86076f + inlined_ast: 46ff8392f48a36958e140ce5a358a498485b5d31ac394846c44ae8e74c86076f + dce_ast: 46ff8392f48a36958e140ce5a358a498485b5d31ac394846c44ae8e74c86076f + bytecode: 640898c0221b29b96bb54c04f62f0551ab5015287a2d0465afcd03eb0496922a diff --git a/tests/expectations/compiler/integers/u16/ne.out b/tests/expectations/compiler/integers/u16/ne.out new file mode 100644 index 0000000000..3df66d4307 --- /dev/null +++ b/tests/expectations/compiler/integers/u16/ne.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 49be6ca28b09bc8b6e937b3c0d85be80d61bef080ca276cff9ade683eb524375 + unrolled_ast: 49be6ca28b09bc8b6e937b3c0d85be80d61bef080ca276cff9ade683eb524375 + ssa_ast: 0c8df0c9a504ffc89b5a343d0746ffcc4afa5a4819c975f419e4d86a2e6b2855 + flattened_ast: d1870490a563ad5156c1e550583af41428e338167ee588a6f115bb51dcbb7acd + inlined_ast: d1870490a563ad5156c1e550583af41428e338167ee588a6f115bb51dcbb7acd + dce_ast: d1870490a563ad5156c1e550583af41428e338167ee588a6f115bb51dcbb7acd + bytecode: 62201638b499e66c0503d022d2521704c9476c18e906af29dba710c86658348a diff --git a/tests/expectations/compiler/integers/u16/no_space_between_literal.out b/tests/expectations/compiler/integers/u16/no_space_between_literal.out new file mode 100644 index 0000000000..6f489ff176 --- /dev/null +++ b/tests/expectations/compiler/integers/u16/no_space_between_literal.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected : -- found '='\n --> compiler-test:5:15\n |\n 5 | let i = 1 u16;\n | ^" diff --git a/tests/expectations/compiler/integers/u16/operator_methods.out b/tests/expectations/compiler/integers/u16/operator_methods.out new file mode 100644 index 0000000000..ec281cae4f --- /dev/null +++ b/tests/expectations/compiler/integers/u16/operator_methods.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: f5b3b17bd093c0341f5bbe9d0718cd5b6c74912b533adde36f9c5da0ff6a6af6 + unrolled_ast: f5b3b17bd093c0341f5bbe9d0718cd5b6c74912b533adde36f9c5da0ff6a6af6 + ssa_ast: d87bf4a15278c93037efe57db3743f27fc09a08eba958612b24f8226db12a1a9 + flattened_ast: 35825530ad88a4714cf076b345a501380859366316436a02a7afc3c2fa6d6655 + inlined_ast: 35825530ad88a4714cf076b345a501380859366316436a02a7afc3c2fa6d6655 + dce_ast: 549ea2d966ca9b043d549740f7f4bbc67986dc9ce227257a1a629ae33ea3d5c0 + bytecode: 77797810cc7ce1ad77b02dc0da8aad7aa850efdee822ccd282305a30899c9dd3 diff --git a/tests/expectations/compiler/integers/u16/or.out b/tests/expectations/compiler/integers/u16/or.out new file mode 100644 index 0000000000..4b13680ac9 --- /dev/null +++ b/tests/expectations/compiler/integers/u16/or.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: b57fb93fa65fc7987238d460273c8cba16dd1a79a9f5158baa3ef2c1fba64926 + unrolled_ast: b57fb93fa65fc7987238d460273c8cba16dd1a79a9f5158baa3ef2c1fba64926 + ssa_ast: 8571757cdadcb8c59a90deecba6c48727764137eb636b5c5038d512b25407a41 + flattened_ast: 249683377464651592429c5dad882cd0a9d0bd8a1c8554f6a168a92b1431a2b0 + inlined_ast: 249683377464651592429c5dad882cd0a9d0bd8a1c8554f6a168a92b1431a2b0 + dce_ast: 249683377464651592429c5dad882cd0a9d0bd8a1c8554f6a168a92b1431a2b0 + bytecode: f3ae8aae74e39312aba21f142a98675531f60dca221ceefec1a5f5168b675daa diff --git a/tests/expectations/compiler/integers/u16/pow.out b/tests/expectations/compiler/integers/u16/pow.out new file mode 100644 index 0000000000..2464d65719 --- /dev/null +++ b/tests/expectations/compiler/integers/u16/pow.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 871be497192eb6e477d884b6ac795b3261c10e13dec5d83557a2cf2506986a9f + unrolled_ast: 871be497192eb6e477d884b6ac795b3261c10e13dec5d83557a2cf2506986a9f + ssa_ast: 64f6ac62fc058b91f0565eeffe9f8f99c0b73d0a9e6acab8665a20fa82e0763a + flattened_ast: 0352a01ef89390d1cafd1d9c89f53428f2d7a3af41b3deac7360a1b77fecb305 + inlined_ast: 0352a01ef89390d1cafd1d9c89f53428f2d7a3af41b3deac7360a1b77fecb305 + dce_ast: 0352a01ef89390d1cafd1d9c89f53428f2d7a3af41b3deac7360a1b77fecb305 + bytecode: 02f54418a16f130b642d241c152edae7921a53c84ce4e6c76a6f021e88816d81 diff --git a/tests/expectations/compiler/integers/u16/rem.out b/tests/expectations/compiler/integers/u16/rem.out new file mode 100644 index 0000000000..214f19d426 --- /dev/null +++ b/tests/expectations/compiler/integers/u16/rem.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 6f815d85e39807361167556d43e362d591bb140a00bc4777be380059b3218736 + unrolled_ast: 6f815d85e39807361167556d43e362d591bb140a00bc4777be380059b3218736 + ssa_ast: 5e5f19ab679d53c26c801641ae634ea9aa8298960cf0460b5e4fafe33b815fe4 + flattened_ast: 86ac35549edf64a46f924de609f931f3bd162568ed5cb804a748f83ff1108fc0 + inlined_ast: 86ac35549edf64a46f924de609f931f3bd162568ed5cb804a748f83ff1108fc0 + dce_ast: 86ac35549edf64a46f924de609f931f3bd162568ed5cb804a748f83ff1108fc0 + bytecode: 47409f2d1e5aa02662a482ee2c1abfc392d6d46e16b260ed9a96680745e2f237 diff --git a/tests/expectations/compiler/integers/u16/shl.out b/tests/expectations/compiler/integers/u16/shl.out new file mode 100644 index 0000000000..2b3b3b7822 --- /dev/null +++ b/tests/expectations/compiler/integers/u16/shl.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 25005e3cb01d03d9a62316ab1303efc28ec19c636b1b814e472b372687552b63 + unrolled_ast: 25005e3cb01d03d9a62316ab1303efc28ec19c636b1b814e472b372687552b63 + ssa_ast: 9a08c16dcad9964d3071074a12b639733e0a23a7d5ec8881dc932e20902e892e + flattened_ast: ad596add937c514080162dd8bc3a49bdc9046775da1b3c650cf6afb9ccd7b39f + inlined_ast: ad596add937c514080162dd8bc3a49bdc9046775da1b3c650cf6afb9ccd7b39f + dce_ast: ad596add937c514080162dd8bc3a49bdc9046775da1b3c650cf6afb9ccd7b39f + bytecode: 40c7270774b37bcbe32743ffb6c4500b87338670c0f188181135c6a069711375 diff --git a/tests/expectations/compiler/integers/u16/shr.out b/tests/expectations/compiler/integers/u16/shr.out new file mode 100644 index 0000000000..ca5158cde6 --- /dev/null +++ b/tests/expectations/compiler/integers/u16/shr.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: d7811788d12d0b5b0031d060b1e487c8f6b2207161304952328056dcb215995b + unrolled_ast: d7811788d12d0b5b0031d060b1e487c8f6b2207161304952328056dcb215995b + ssa_ast: aea74fbf7a1b3ec5db03d101400d5ab27d63b5502139c212eeddb535d7e98d24 + flattened_ast: b455af78c7e7aa177ed96e50be06aab6d444b43a752f65dbe4caf4d83dd20b9a + inlined_ast: b455af78c7e7aa177ed96e50be06aab6d444b43a752f65dbe4caf4d83dd20b9a + dce_ast: b455af78c7e7aa177ed96e50be06aab6d444b43a752f65dbe4caf4d83dd20b9a + bytecode: 1e5f18a7a17246b9383073ddde5d563ef4d68cba62d0ea61812548c152baa1f8 diff --git a/tests/expectations/compiler/integers/u16/sub.out b/tests/expectations/compiler/integers/u16/sub.out new file mode 100644 index 0000000000..335759bf29 --- /dev/null +++ b/tests/expectations/compiler/integers/u16/sub.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 904ce2692504614925dd2e1c795e942d6a3d95be6386e2d39c80e10853aed58d + unrolled_ast: 904ce2692504614925dd2e1c795e942d6a3d95be6386e2d39c80e10853aed58d + ssa_ast: 1ea35d9b48678da661b4d2c5acc2dc65dde01b05b3e6b599d8597a1cc17e8978 + flattened_ast: 17ec2af58cc3e05d378c752f52cb055ec5c92e5dbf57b0b20dc07e1ef2a8cd84 + inlined_ast: 17ec2af58cc3e05d378c752f52cb055ec5c92e5dbf57b0b20dc07e1ef2a8cd84 + dce_ast: 17ec2af58cc3e05d378c752f52cb055ec5c92e5dbf57b0b20dc07e1ef2a8cd84 + bytecode: 3f7aa687c1b915adc86646e735591713028a9edbb51ce82964b3343a4cb597d0 diff --git a/tests/expectations/compiler/integers/u16/ternary.out b/tests/expectations/compiler/integers/u16/ternary.out new file mode 100644 index 0000000000..a9d6736cd0 --- /dev/null +++ b/tests/expectations/compiler/integers/u16/ternary.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 5b50eb42138b8047d2aa92a4dc6ee3aabd9cae993c700c2ec80b9f1ab2158572 + unrolled_ast: 5b50eb42138b8047d2aa92a4dc6ee3aabd9cae993c700c2ec80b9f1ab2158572 + ssa_ast: 9df0962538ec769507a8abf527305d9bd0c55bb42a06f2c1ab2d84527784a14b + flattened_ast: 4783454d1abf799d7550ac6a8bc9e60313808bd867e371d14f5b9cda6a4aef52 + inlined_ast: 4783454d1abf799d7550ac6a8bc9e60313808bd867e371d14f5b9cda6a4aef52 + dce_ast: 4783454d1abf799d7550ac6a8bc9e60313808bd867e371d14f5b9cda6a4aef52 + bytecode: d0305b1f09132642d928c6bf349f6153a7da91fefd95b8f16e2e33f182836ddf diff --git a/tests/expectations/compiler/integers/u16/xor.out b/tests/expectations/compiler/integers/u16/xor.out new file mode 100644 index 0000000000..1d85f1f2ad --- /dev/null +++ b/tests/expectations/compiler/integers/u16/xor.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 3081b6dcf0d71d95570ad89d560b6944302a26e40efe6c6b6f7c4841c610d8b7 + unrolled_ast: 3081b6dcf0d71d95570ad89d560b6944302a26e40efe6c6b6f7c4841c610d8b7 + ssa_ast: c05f3f4cc6d3421a4b71434e646c1aac0eb9e70c93688e4c74ad631d175f982c + flattened_ast: 5a9df71d9f9675a327af583ce47d2912adc7242b2431461bdb6e0bdb51d22680 + inlined_ast: 5a9df71d9f9675a327af583ce47d2912adc7242b2431461bdb6e0bdb51d22680 + dce_ast: 5a9df71d9f9675a327af583ce47d2912adc7242b2431461bdb6e0bdb51d22680 + bytecode: 42cad1b1ce1e09199ad8861f797a95a2cb43d406825a88becb41a5d318f9341f diff --git a/tests/expectations/compiler/integers/u32/add.out b/tests/expectations/compiler/integers/u32/add.out new file mode 100644 index 0000000000..7f17a13f8f --- /dev/null +++ b/tests/expectations/compiler/integers/u32/add.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 4c814578eaaf5780b23208a299f264526d26390fbb6e0d68b7cebf54c851d58f + unrolled_ast: 4c814578eaaf5780b23208a299f264526d26390fbb6e0d68b7cebf54c851d58f + ssa_ast: beb29f2d2e0a444f972809410d04a4f4431cfc6777b669cec1f21671fb7fc876 + flattened_ast: 75787bfa50c735748ef3ad59fcec3e56d62ff0d3ebabdd19f463a4839b7df0a7 + inlined_ast: 75787bfa50c735748ef3ad59fcec3e56d62ff0d3ebabdd19f463a4839b7df0a7 + dce_ast: 75787bfa50c735748ef3ad59fcec3e56d62ff0d3ebabdd19f463a4839b7df0a7 + bytecode: 3ded1a7996eb0f11477cad2c5c5e8d182e09170240812cbdb636ae16b9b7aa5b diff --git a/tests/expectations/compiler/integers/u32/and.out b/tests/expectations/compiler/integers/u32/and.out new file mode 100644 index 0000000000..2d49b03176 --- /dev/null +++ b/tests/expectations/compiler/integers/u32/and.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: b9d7bcb1d2e63b483d50df63353e036743ead5687e5cd8e196216139c8bb21bc + unrolled_ast: b9d7bcb1d2e63b483d50df63353e036743ead5687e5cd8e196216139c8bb21bc + ssa_ast: 9558905205633f78ed47b7fc0cb43d8d7b964dbb2d8316c4a2bbabbb45a1fb74 + flattened_ast: 46cfabd88848b9cd37ec596eb13f894cf516506961d4a5f1ba2e8a3d8b560740 + inlined_ast: 46cfabd88848b9cd37ec596eb13f894cf516506961d4a5f1ba2e8a3d8b560740 + dce_ast: 46cfabd88848b9cd37ec596eb13f894cf516506961d4a5f1ba2e8a3d8b560740 + bytecode: 3a5f76958a4110b8d0388a7e489e68542029338cf78070798ea397107d10c9a6 diff --git a/tests/expectations/compiler/integers/u32/console_assert.out b/tests/expectations/compiler/integers/u32/console_assert.out new file mode 100644 index 0000000000..43ace1c4e6 --- /dev/null +++ b/tests/expectations/compiler/integers/u32/console_assert.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: afc2125bb26c04f6e5e37ddf486efa1d2ec3fb373b5a98a304441df31552e908 + unrolled_ast: afc2125bb26c04f6e5e37ddf486efa1d2ec3fb373b5a98a304441df31552e908 + ssa_ast: 65590c9a5be6c5ecfa92376f3f45f775a69ad19047a9033e94361198dbee25ee + flattened_ast: 5c04309fa64b931f489402df810c54e7aba1211f084d92726cdddd0cc6243336 + inlined_ast: 5c04309fa64b931f489402df810c54e7aba1211f084d92726cdddd0cc6243336 + dce_ast: 5c04309fa64b931f489402df810c54e7aba1211f084d92726cdddd0cc6243336 + bytecode: f4c9bffb3e7a32c2e6922f2322af66153f047899fdc383d654dceeaee0b75936 diff --git a/tests/expectations/compiler/integers/u32/div.out b/tests/expectations/compiler/integers/u32/div.out new file mode 100644 index 0000000000..d63f7fbc0a --- /dev/null +++ b/tests/expectations/compiler/integers/u32/div.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 5a67486325e1ed6073ff3b51946baecc18d0e69ec09ad7843561d2c762097e84 + unrolled_ast: 5a67486325e1ed6073ff3b51946baecc18d0e69ec09ad7843561d2c762097e84 + ssa_ast: 27076ac9ff23699926621a3bef8d7624cf8128811a873caa3174c4f13da49637 + flattened_ast: 434eb58a7feb217d67026a5e4061604f64a937505ed0612b306eb068a726fad5 + inlined_ast: 434eb58a7feb217d67026a5e4061604f64a937505ed0612b306eb068a726fad5 + dce_ast: 434eb58a7feb217d67026a5e4061604f64a937505ed0612b306eb068a726fad5 + bytecode: f17af0312ab97ed5f1cd2af6b3c745b673cb447581bef6f1c358a81594e02b63 diff --git a/tests/expectations/compiler/integers/u32/eq.out b/tests/expectations/compiler/integers/u32/eq.out new file mode 100644 index 0000000000..9a95d684d6 --- /dev/null +++ b/tests/expectations/compiler/integers/u32/eq.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 0c52f37d6ff3efe6de65305a65eed31a9ecf4da7056af20aa0e4c1933604f253 + unrolled_ast: 0c52f37d6ff3efe6de65305a65eed31a9ecf4da7056af20aa0e4c1933604f253 + ssa_ast: ca5cea87808c7593b0081108fc2af5e512f60244a5941e427746a6eef6dd093d + flattened_ast: c9e2cc1b48f83af3571fbb9c019b14e2160a4c8b188b1cbf622673a0b641b7d9 + inlined_ast: c9e2cc1b48f83af3571fbb9c019b14e2160a4c8b188b1cbf622673a0b641b7d9 + dce_ast: c9e2cc1b48f83af3571fbb9c019b14e2160a4c8b188b1cbf622673a0b641b7d9 + bytecode: e1a8bdccbb21108530629a18d3a73db59da82ece3c0e1f83022f160ed099d90a diff --git a/tests/expectations/compiler/integers/u32/ge.out b/tests/expectations/compiler/integers/u32/ge.out new file mode 100644 index 0000000000..6ddd1c085f --- /dev/null +++ b/tests/expectations/compiler/integers/u32/ge.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: fdfc8cabc81692dbc56e5e28a6f07df18872b2b307a2a7ef68698f4451df9a16 + unrolled_ast: fdfc8cabc81692dbc56e5e28a6f07df18872b2b307a2a7ef68698f4451df9a16 + ssa_ast: fb36cb3733be081ed0852dcaaa69f4b33af636b4fe2d270cc02a28487f00ffe9 + flattened_ast: 5788793459555260aefda2bb1078307a645960bcd37cdc058bf70663c3f796fd + inlined_ast: 5788793459555260aefda2bb1078307a645960bcd37cdc058bf70663c3f796fd + dce_ast: 5788793459555260aefda2bb1078307a645960bcd37cdc058bf70663c3f796fd + bytecode: 83b53d924626a5d279185858585b6a826be3670399330a38b51230716460cac9 diff --git a/tests/expectations/compiler/integers/u32/gt.out b/tests/expectations/compiler/integers/u32/gt.out new file mode 100644 index 0000000000..8dd005ef7c --- /dev/null +++ b/tests/expectations/compiler/integers/u32/gt.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: b1cadc049ad47022d6d0edbf94cc7af9d09783abc8a2c269dfa577f9fcbb88fa + unrolled_ast: b1cadc049ad47022d6d0edbf94cc7af9d09783abc8a2c269dfa577f9fcbb88fa + ssa_ast: 1545f76da55f60b4ba0fb51600604d21c2fed58dfa00448d15cf3350e2d7dacc + flattened_ast: 8fc9715eec00b4beccd1323da8623669682d8cd93ef184750549e1d116e5ded0 + inlined_ast: 8fc9715eec00b4beccd1323da8623669682d8cd93ef184750549e1d116e5ded0 + dce_ast: 8fc9715eec00b4beccd1323da8623669682d8cd93ef184750549e1d116e5ded0 + bytecode: a7d5e36441243461635f13035d4c2b17e257b340d905c6d9368a25aaae6e7c78 diff --git a/tests/expectations/compiler/integers/u32/le.out b/tests/expectations/compiler/integers/u32/le.out new file mode 100644 index 0000000000..7d0f416fb1 --- /dev/null +++ b/tests/expectations/compiler/integers/u32/le.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 5ae7c2d0952490eb2e363cc2d577f2f76a2b41108a61e24a895275aa7fd4976b + unrolled_ast: 5ae7c2d0952490eb2e363cc2d577f2f76a2b41108a61e24a895275aa7fd4976b + ssa_ast: 7be366e748aee8cd0d8ec5f4f05fdad16983da2b7860c443caa6836aa097cf2c + flattened_ast: 9d54c9dfa92b3338ca90473773f6ae761109214137d1b5f91a08bfe6723ba154 + inlined_ast: 9d54c9dfa92b3338ca90473773f6ae761109214137d1b5f91a08bfe6723ba154 + dce_ast: 9d54c9dfa92b3338ca90473773f6ae761109214137d1b5f91a08bfe6723ba154 + bytecode: 84835e4d314e3795b36935bfc3412ca7794bcbafd8dcedaa48855b1b63e030c3 diff --git a/tests/expectations/compiler/integers/u32/lt.out b/tests/expectations/compiler/integers/u32/lt.out new file mode 100644 index 0000000000..05427aa4ae --- /dev/null +++ b/tests/expectations/compiler/integers/u32/lt.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 39b471a72591df256c5859b6df1c4bc06129fb0a5ebd805d420ff52a8b5b3771 + unrolled_ast: 39b471a72591df256c5859b6df1c4bc06129fb0a5ebd805d420ff52a8b5b3771 + ssa_ast: 1071c082adb922599e57ac8cf549497631abf40034c2debe57ceed71c441b4b2 + flattened_ast: 397785ad8ef12f977d798ff747f8cce7bbeb287d0fd658369256f5b4096ffae3 + inlined_ast: 397785ad8ef12f977d798ff747f8cce7bbeb287d0fd658369256f5b4096ffae3 + dce_ast: 397785ad8ef12f977d798ff747f8cce7bbeb287d0fd658369256f5b4096ffae3 + bytecode: 64a3bc8031d302c5bf6b6edb51dbd350c3209b28045d3cfebd6b837c0e246826 diff --git a/tests/expectations/compiler/integers/u32/max.out b/tests/expectations/compiler/integers/u32/max.out new file mode 100644 index 0000000000..e755d6896d --- /dev/null +++ b/tests/expectations/compiler/integers/u32/max.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 593dd6428166cd9d8e5d54d622da11ee36665699c25b1657db78f5267da63b47 + unrolled_ast: 593dd6428166cd9d8e5d54d622da11ee36665699c25b1657db78f5267da63b47 + ssa_ast: 32d4adb9bcd202c20584120bded3e97314b34c757a15077e17a23d90a64b86f4 + flattened_ast: 366a8cdc2f2d4af6ee7e60712d7963ffdb434e2d98c59c3bc4c3af64e729f38e + inlined_ast: 366a8cdc2f2d4af6ee7e60712d7963ffdb434e2d98c59c3bc4c3af64e729f38e + dce_ast: b0f1845320f15b743729402651a2847594d35f33b929d9a0ace0a580bb51f940 + bytecode: 9a1e5bb7b8d932d4afd347a856bfb38db144771f49a0d9589ef14236338e3dcf diff --git a/tests/expectations/compiler/integers/u32/max_fail.out b/tests/expectations/compiler/integers/u32/max_fail.out new file mode 100644 index 0000000000..e9afc4608d --- /dev/null +++ b/tests/expectations/compiler/integers/u32/max_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372008]: The value 4294967296 is not a valid `u32`\n --> compiler-test:5:22\n |\n 5 | let a: u32 = 4294967296u32;\n | ^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/integers/u32/min.out b/tests/expectations/compiler/integers/u32/min.out new file mode 100644 index 0000000000..a0e2e01184 --- /dev/null +++ b/tests/expectations/compiler/integers/u32/min.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 973f6e77c92fad134db1a01120e201f883ad312b3c68f4f8a74a203f9bec1f37 + unrolled_ast: 973f6e77c92fad134db1a01120e201f883ad312b3c68f4f8a74a203f9bec1f37 + ssa_ast: a9253596d753bccb9c922e26ff91a950295bb89712205cf69ecbd9109cd9ab5a + flattened_ast: f57634aaf790a3a1c3e576e4bc1534f80a690cfe93a811c4b304da84cb667f04 + inlined_ast: f57634aaf790a3a1c3e576e4bc1534f80a690cfe93a811c4b304da84cb667f04 + dce_ast: 21154e5f0ae8de65800e415b5aaf804080955cf74e6f58549b847f07ba870093 + bytecode: 9a1e5bb7b8d932d4afd347a856bfb38db144771f49a0d9589ef14236338e3dcf diff --git a/tests/expectations/compiler/integers/u32/min_fail.out b/tests/expectations/compiler/integers/u32/min_fail.out new file mode 100644 index 0000000000..e9dadac947 --- /dev/null +++ b/tests/expectations/compiler/integers/u32/min_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372008]: The value -1 is not a valid `u32`\n --> compiler-test:5:22\n |\n 5 | let a: u32 = -1u32;\n | ^^^^^\n" diff --git a/tests/expectations/compiler/integers/u32/mul.out b/tests/expectations/compiler/integers/u32/mul.out new file mode 100644 index 0000000000..9c5a45809b --- /dev/null +++ b/tests/expectations/compiler/integers/u32/mul.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 15ed1dc3f0c59f586ccb582f40b66050bcef56928e35a0f289f7b3cbe1c79bc0 + unrolled_ast: 15ed1dc3f0c59f586ccb582f40b66050bcef56928e35a0f289f7b3cbe1c79bc0 + ssa_ast: 399c38f1b33cec850031ed59321509d5acac4cd9670964d84b92e9ea1521ecc0 + flattened_ast: 75fc444954a90b8f61a265a413f59d45026ebf09e32dfcde71ab09b1d725e83a + inlined_ast: 75fc444954a90b8f61a265a413f59d45026ebf09e32dfcde71ab09b1d725e83a + dce_ast: 75fc444954a90b8f61a265a413f59d45026ebf09e32dfcde71ab09b1d725e83a + bytecode: 7af3a41a18b6d5e929c72eb42b1dcf26553676d4297e8477c85c2660199e4843 diff --git a/tests/expectations/compiler/integers/u32/ne.out b/tests/expectations/compiler/integers/u32/ne.out new file mode 100644 index 0000000000..19a0c98b12 --- /dev/null +++ b/tests/expectations/compiler/integers/u32/ne.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 0c7eef2a89c686c4b78b0184bfd84e77c845d9fbd6c39da0b6d011e3a66335a2 + unrolled_ast: 0c7eef2a89c686c4b78b0184bfd84e77c845d9fbd6c39da0b6d011e3a66335a2 + ssa_ast: 904d39cde7eedaa780f566561223b4cc5c504249530ea0cfd4135a45a837172d + flattened_ast: 1792ca92cfb95dbd1e1e6324e4f422db9c90ea35a68ef0c867a40c6a216a32a8 + inlined_ast: 1792ca92cfb95dbd1e1e6324e4f422db9c90ea35a68ef0c867a40c6a216a32a8 + dce_ast: 1792ca92cfb95dbd1e1e6324e4f422db9c90ea35a68ef0c867a40c6a216a32a8 + bytecode: 1297340f0d83c34cfcd5e861de7b4358083ecfb96f9bdc75ae2f78ffa20831cc diff --git a/tests/expectations/compiler/integers/u32/no_space_between_literal.out b/tests/expectations/compiler/integers/u32/no_space_between_literal.out new file mode 100644 index 0000000000..190acedb13 --- /dev/null +++ b/tests/expectations/compiler/integers/u32/no_space_between_literal.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected : -- found '='\n --> compiler-test:5:15\n |\n 5 | let i = 1 u32;\n | ^" diff --git a/tests/expectations/compiler/integers/u32/operator_methods.out b/tests/expectations/compiler/integers/u32/operator_methods.out new file mode 100644 index 0000000000..b287851921 --- /dev/null +++ b/tests/expectations/compiler/integers/u32/operator_methods.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 4122e0f35832c94f02c0402ccd3e119d2959fa0622d853236aee221c9ce75321 + unrolled_ast: 4122e0f35832c94f02c0402ccd3e119d2959fa0622d853236aee221c9ce75321 + ssa_ast: f7da86e7baa8412cedcf072b206aa14bc9066783623248d66016bbdab5b2f609 + flattened_ast: ecca31afbdf9d9cc9576617e607fcc9e6abe332e627032ac0203f39e85421bbc + inlined_ast: ecca31afbdf9d9cc9576617e607fcc9e6abe332e627032ac0203f39e85421bbc + dce_ast: 04c9e598ed205c643415ee43c445b30b6c6006e68eebb3dd6466e0e4ffb32a8a + bytecode: 3a6e5f56da93ca64f10519ad72c0dfe039273274b0e88fecaec58c40d1717488 diff --git a/tests/expectations/compiler/integers/u32/or.out b/tests/expectations/compiler/integers/u32/or.out new file mode 100644 index 0000000000..83570b01c8 --- /dev/null +++ b/tests/expectations/compiler/integers/u32/or.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 2900346cde32b37f3ec042632a68bbf406c2393c230cbb66daa7a91599b0b322 + unrolled_ast: 2900346cde32b37f3ec042632a68bbf406c2393c230cbb66daa7a91599b0b322 + ssa_ast: ebac1b96baed77daf97ffbc9a92a30dbcedc3b916dfe712132062f1714da23e5 + flattened_ast: 8a9a73f08d8c89cf849997fd1a0097a01f147da6c77fbe4bd0c27f7fe320af4a + inlined_ast: 8a9a73f08d8c89cf849997fd1a0097a01f147da6c77fbe4bd0c27f7fe320af4a + dce_ast: 8a9a73f08d8c89cf849997fd1a0097a01f147da6c77fbe4bd0c27f7fe320af4a + bytecode: b4a60f9a659d2a10c8bd120e5849e06315701c890b9a042eb42161693f600082 diff --git a/tests/expectations/compiler/integers/u32/pow.out b/tests/expectations/compiler/integers/u32/pow.out new file mode 100644 index 0000000000..3dcccc6e76 --- /dev/null +++ b/tests/expectations/compiler/integers/u32/pow.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 9c30f840d788ab85da87ef4eb9efa6bc038a88a33b214820508bdb7322bded12 + unrolled_ast: 9c30f840d788ab85da87ef4eb9efa6bc038a88a33b214820508bdb7322bded12 + ssa_ast: 998ae7cc01e814ab0ee19eff0dc25ad48a4dac1c5b01fbbec3dfe8679356d2fd + flattened_ast: 4a6a43f2db71c97d71a729a2d1f364ab97552006c237653f47625d49f217e2f0 + inlined_ast: 4a6a43f2db71c97d71a729a2d1f364ab97552006c237653f47625d49f217e2f0 + dce_ast: 4a6a43f2db71c97d71a729a2d1f364ab97552006c237653f47625d49f217e2f0 + bytecode: 5bbd2123413f7834055a8f71617bd2569dcc574e486736eeec7810a5a8642ee0 diff --git a/tests/expectations/compiler/integers/u32/rem.out b/tests/expectations/compiler/integers/u32/rem.out new file mode 100644 index 0000000000..cd8cba514d --- /dev/null +++ b/tests/expectations/compiler/integers/u32/rem.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 327cd4390904928b6cf35efe51c5e4886948194480806bca4b925ae96680bfc1 + unrolled_ast: 327cd4390904928b6cf35efe51c5e4886948194480806bca4b925ae96680bfc1 + ssa_ast: 6ddb1e9da49b0932744a0a4a5fe70c002ca2a66051f558848f0eed5ed6a6e438 + flattened_ast: 9e28544d33cb83ddbeac5722db779423fd0e8220afe4f621fbf3dc5b0c76b1e7 + inlined_ast: 9e28544d33cb83ddbeac5722db779423fd0e8220afe4f621fbf3dc5b0c76b1e7 + dce_ast: 9e28544d33cb83ddbeac5722db779423fd0e8220afe4f621fbf3dc5b0c76b1e7 + bytecode: cfc8529a88bc370481e0596e79d20913a011b529a210ef909d9d66c445b9ec98 diff --git a/tests/expectations/compiler/integers/u32/shl.out b/tests/expectations/compiler/integers/u32/shl.out new file mode 100644 index 0000000000..e0b1b09b8f --- /dev/null +++ b/tests/expectations/compiler/integers/u32/shl.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 442a85256236f5716abada3e8c31c079b56546d5241a86c9575a2ae062540827 + unrolled_ast: 442a85256236f5716abada3e8c31c079b56546d5241a86c9575a2ae062540827 + ssa_ast: dcc25ec939a8a31cf1f7af9a26ffe400d36ea215c2a2c9da0d15ccb737b2681d + flattened_ast: 8eecdaeddfe4b39472ea7df3ed93fa7da28c15bfd7379ec426b00f2ed6431ffc + inlined_ast: 8eecdaeddfe4b39472ea7df3ed93fa7da28c15bfd7379ec426b00f2ed6431ffc + dce_ast: 8eecdaeddfe4b39472ea7df3ed93fa7da28c15bfd7379ec426b00f2ed6431ffc + bytecode: c9269f19329dd9d6e5faaa84693b869ff8040297c2ce894b35a244330f1f6ced diff --git a/tests/expectations/compiler/integers/u32/shr.out b/tests/expectations/compiler/integers/u32/shr.out new file mode 100644 index 0000000000..6c480d27d2 --- /dev/null +++ b/tests/expectations/compiler/integers/u32/shr.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: e1f0496bd75c23d6fb4e07f2e967e5132e7b6fe6778a955464ba6fff12e21fe3 + unrolled_ast: e1f0496bd75c23d6fb4e07f2e967e5132e7b6fe6778a955464ba6fff12e21fe3 + ssa_ast: 71850a7915199e9a2e49667a0c7fb4628dadb93aa69137909d1229d0f10f4c5e + flattened_ast: 54779c1fa9fe4e7563504a8f07241e2d241ebfb02fa1f57b8f48544f8739055d + inlined_ast: 54779c1fa9fe4e7563504a8f07241e2d241ebfb02fa1f57b8f48544f8739055d + dce_ast: 54779c1fa9fe4e7563504a8f07241e2d241ebfb02fa1f57b8f48544f8739055d + bytecode: 0ed67d20829238f0a85c90cdeefb7d0463ffc0bdc7ba9523550c62849a69176b diff --git a/tests/expectations/compiler/integers/u32/sub.out b/tests/expectations/compiler/integers/u32/sub.out new file mode 100644 index 0000000000..8fc8faa62c --- /dev/null +++ b/tests/expectations/compiler/integers/u32/sub.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: a8325d66093d93f8378a5e19b30856077750bec2f0581735b80561a0180af49b + unrolled_ast: a8325d66093d93f8378a5e19b30856077750bec2f0581735b80561a0180af49b + ssa_ast: 514e0a25eb0a59ce6de775b1b8218f51aedbe1c711c338eb563cb4483f412c2e + flattened_ast: ad2452326217e256b8d915c2c9156e191ee5ff0737cc5c721db1e9a6e56a0fd5 + inlined_ast: ad2452326217e256b8d915c2c9156e191ee5ff0737cc5c721db1e9a6e56a0fd5 + dce_ast: ad2452326217e256b8d915c2c9156e191ee5ff0737cc5c721db1e9a6e56a0fd5 + bytecode: a302075ca2b4aac635c7d45ad379a2b599cfcf7092c99fd104a5c1e5de7ce50f diff --git a/tests/expectations/compiler/integers/u32/ternary.out b/tests/expectations/compiler/integers/u32/ternary.out new file mode 100644 index 0000000000..801302ba8f --- /dev/null +++ b/tests/expectations/compiler/integers/u32/ternary.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: a2eed438beb0fb1924c816a910aae00589b11de0da62226aebc9c3d1faffe8a5 + unrolled_ast: a2eed438beb0fb1924c816a910aae00589b11de0da62226aebc9c3d1faffe8a5 + ssa_ast: 100318f3918fc545497f851f6a19bb455d522148de6599bb15a294738ad66e49 + flattened_ast: 698150b9405efb682dd60a1d235b2e6cb9a862060cbcf2a2806da1d1d890431b + inlined_ast: 698150b9405efb682dd60a1d235b2e6cb9a862060cbcf2a2806da1d1d890431b + dce_ast: 698150b9405efb682dd60a1d235b2e6cb9a862060cbcf2a2806da1d1d890431b + bytecode: d095ae12af5337bd905f4f2cbb4b480905afe97216959e968bee1a5c6910af2a diff --git a/tests/expectations/compiler/integers/u32/xor.out b/tests/expectations/compiler/integers/u32/xor.out new file mode 100644 index 0000000000..3a2ae1daaf --- /dev/null +++ b/tests/expectations/compiler/integers/u32/xor.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 30c2fa6afdd640ed915f0b16104397c295c8cfe6aa23ae38fa71ef152dae88c3 + unrolled_ast: 30c2fa6afdd640ed915f0b16104397c295c8cfe6aa23ae38fa71ef152dae88c3 + ssa_ast: 0168badbc647c09912b30b7a7bea508cc3e35d39065278e1c8c8104f5f49acfd + flattened_ast: a986ff3547fba993b81cce679bfdf11a6cbc53c9870d4f9aff1c1c5846fe5779 + inlined_ast: a986ff3547fba993b81cce679bfdf11a6cbc53c9870d4f9aff1c1c5846fe5779 + dce_ast: a986ff3547fba993b81cce679bfdf11a6cbc53c9870d4f9aff1c1c5846fe5779 + bytecode: f0b8958f3f4c4311e2308c5aed950b9a660d3eacdea6299d6e78c33e064c9cd1 diff --git a/tests/expectations/compiler/integers/u64/add.out b/tests/expectations/compiler/integers/u64/add.out new file mode 100644 index 0000000000..be8190b387 --- /dev/null +++ b/tests/expectations/compiler/integers/u64/add.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 77904693232a619edb9dfd847a2e5f372aa37539e300f7baa081017f54688d64 + unrolled_ast: 77904693232a619edb9dfd847a2e5f372aa37539e300f7baa081017f54688d64 + ssa_ast: e96e5f845a68746524fd9ce325d766afecf8bd5c1c6f4a9696360ea6de45c485 + flattened_ast: e35df553d77d5cdf6dd3f2f963416b9e0172c8482177f98a8dc5d9100212060a + inlined_ast: e35df553d77d5cdf6dd3f2f963416b9e0172c8482177f98a8dc5d9100212060a + dce_ast: e35df553d77d5cdf6dd3f2f963416b9e0172c8482177f98a8dc5d9100212060a + bytecode: abb8c69d4bd2b5834d385969f49c8ead068036e07c0afe9a96c6c022ce3d491f diff --git a/tests/expectations/compiler/integers/u64/and.out b/tests/expectations/compiler/integers/u64/and.out new file mode 100644 index 0000000000..bd8c4d7168 --- /dev/null +++ b/tests/expectations/compiler/integers/u64/and.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 0d6e55e99c314cd034fd91f9714bd8d6de3a3d988991cdcf52c57b4f1b37b548 + unrolled_ast: 0d6e55e99c314cd034fd91f9714bd8d6de3a3d988991cdcf52c57b4f1b37b548 + ssa_ast: 7d9986e5155ad64bf59b8b8f85cff39b1278ede15241c15b7602d7bb862e64e0 + flattened_ast: 227779e9b08f9f2c30486b2aae031354b40767978dd73d82d47e4fcb0977660f + inlined_ast: 227779e9b08f9f2c30486b2aae031354b40767978dd73d82d47e4fcb0977660f + dce_ast: 227779e9b08f9f2c30486b2aae031354b40767978dd73d82d47e4fcb0977660f + bytecode: e15f4b54f9f4f2380c49a61ea310f77ebc2837f0058dac3255a3743d3ce31b49 diff --git a/tests/expectations/compiler/integers/u64/console_assert.out b/tests/expectations/compiler/integers/u64/console_assert.out new file mode 100644 index 0000000000..4f550f1048 --- /dev/null +++ b/tests/expectations/compiler/integers/u64/console_assert.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 8957d366fe7f99c4a3629a197c2acba651509e1045d176fff4d767557fdc1bb5 + unrolled_ast: 8957d366fe7f99c4a3629a197c2acba651509e1045d176fff4d767557fdc1bb5 + ssa_ast: c2c58c4275c84281ba279cd27da5fbc87220f0c7e29cb34bfb0979c1a3d6757f + flattened_ast: a931b17e4b6d87ab9dc1f70adfd00462502c6e25290060fcc43225882f7a5db1 + inlined_ast: a931b17e4b6d87ab9dc1f70adfd00462502c6e25290060fcc43225882f7a5db1 + dce_ast: a931b17e4b6d87ab9dc1f70adfd00462502c6e25290060fcc43225882f7a5db1 + bytecode: 528d0e5eae513b94ac63a4b48646f04deae2de5b41de4488bec74d196b1a3177 diff --git a/tests/expectations/compiler/integers/u64/div.out b/tests/expectations/compiler/integers/u64/div.out new file mode 100644 index 0000000000..cd28696b52 --- /dev/null +++ b/tests/expectations/compiler/integers/u64/div.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 063b86d78c56d953e707d0eeb1a8624e5ab09a76e7f3b2c009fd3bd54827aeb3 + unrolled_ast: 063b86d78c56d953e707d0eeb1a8624e5ab09a76e7f3b2c009fd3bd54827aeb3 + ssa_ast: 2fffb1cf3fd6065068d20443f2ef8da133cbcb0619dc5f328ddc71f6fa71cdcb + flattened_ast: 0cbeef911b466f39e73259f94d01876fd0f954a5ac0948a97a2dfbe1d5142998 + inlined_ast: 0cbeef911b466f39e73259f94d01876fd0f954a5ac0948a97a2dfbe1d5142998 + dce_ast: 0cbeef911b466f39e73259f94d01876fd0f954a5ac0948a97a2dfbe1d5142998 + bytecode: 6f756295de250a5a5c917f41e42c3b7fb0ff9387e25e0384b48058bf4093c35e diff --git a/tests/expectations/compiler/integers/u64/eq.out b/tests/expectations/compiler/integers/u64/eq.out new file mode 100644 index 0000000000..aeebed13c9 --- /dev/null +++ b/tests/expectations/compiler/integers/u64/eq.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: a0880907fe29ccdf61c3682e55ddfe6080b4e8aedaab10bdb308cf9177fd0b00 + unrolled_ast: a0880907fe29ccdf61c3682e55ddfe6080b4e8aedaab10bdb308cf9177fd0b00 + ssa_ast: ce3dbcab3daddd57ef474987cb34581271601c0f5db6f4f7e056f29eb07adeb5 + flattened_ast: f661262eb0e62b587959284cbd5e7dd6be5ef09d40ebbb38d6e64789ed063399 + inlined_ast: f661262eb0e62b587959284cbd5e7dd6be5ef09d40ebbb38d6e64789ed063399 + dce_ast: f661262eb0e62b587959284cbd5e7dd6be5ef09d40ebbb38d6e64789ed063399 + bytecode: 3dc2579c9b4376c0ac3c15d6c791992bbc13baed767b4a84313db47aa14296f1 diff --git a/tests/expectations/compiler/integers/u64/ge.out b/tests/expectations/compiler/integers/u64/ge.out new file mode 100644 index 0000000000..cea22fafb1 --- /dev/null +++ b/tests/expectations/compiler/integers/u64/ge.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 2348d1221bcf28772aaa19979444d0c1bb5d28e21c29ab4a8e03698952697da6 + unrolled_ast: 2348d1221bcf28772aaa19979444d0c1bb5d28e21c29ab4a8e03698952697da6 + ssa_ast: 5406211b916c820d0de1a68a927c7c49e8b3624e4a5b5f0daf2b83cd5af1a294 + flattened_ast: 8ecac1101bcaad31e826399a5be8f5e16bcee2be5cd920dec535cf3d95df6e2f + inlined_ast: 8ecac1101bcaad31e826399a5be8f5e16bcee2be5cd920dec535cf3d95df6e2f + dce_ast: 8ecac1101bcaad31e826399a5be8f5e16bcee2be5cd920dec535cf3d95df6e2f + bytecode: a614338051a535a74ee0794a7b2e1f4617263a3bca7be899ba2e68beae7748da diff --git a/tests/expectations/compiler/integers/u64/gt.out b/tests/expectations/compiler/integers/u64/gt.out new file mode 100644 index 0000000000..f0afe82b0c --- /dev/null +++ b/tests/expectations/compiler/integers/u64/gt.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 9c3decab653a0b6e25ccc9d45790d0e9e143f04f2464ddc1ebc4d51cd2397d2c + unrolled_ast: 9c3decab653a0b6e25ccc9d45790d0e9e143f04f2464ddc1ebc4d51cd2397d2c + ssa_ast: f8071ff1e6c7ab61417b51679345247302f714e1817b7c3df8b52fb09f292417 + flattened_ast: ea5f9d82d269a53e25bb6a3cc2645acc803274a3eb25cdee10b4252c47ccd4fa + inlined_ast: ea5f9d82d269a53e25bb6a3cc2645acc803274a3eb25cdee10b4252c47ccd4fa + dce_ast: ea5f9d82d269a53e25bb6a3cc2645acc803274a3eb25cdee10b4252c47ccd4fa + bytecode: 3977504f6f75064e9a2125af4f7773742771babbfc1c290a3d0a794d42423663 diff --git a/tests/expectations/compiler/integers/u64/le.out b/tests/expectations/compiler/integers/u64/le.out new file mode 100644 index 0000000000..bbabe90992 --- /dev/null +++ b/tests/expectations/compiler/integers/u64/le.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 3f0fdec0d74d7c7bf3f4c6822b50db267605f55d37d944dcc370489f25a4458a + unrolled_ast: 3f0fdec0d74d7c7bf3f4c6822b50db267605f55d37d944dcc370489f25a4458a + ssa_ast: 96e672bfdf8320ae5e771ca76beaac4215cea8dc0471ec554fe7c179742adfd8 + flattened_ast: 422a4619d2486041f289d05a77150f074fcd61bbad5c2657242066551696d3ea + inlined_ast: 422a4619d2486041f289d05a77150f074fcd61bbad5c2657242066551696d3ea + dce_ast: 422a4619d2486041f289d05a77150f074fcd61bbad5c2657242066551696d3ea + bytecode: 8dc4649ab97faa73e36c483cda23375d32ab95a137908e5862c449fb4ddafe21 diff --git a/tests/expectations/compiler/integers/u64/lt.out b/tests/expectations/compiler/integers/u64/lt.out new file mode 100644 index 0000000000..71ae865deb --- /dev/null +++ b/tests/expectations/compiler/integers/u64/lt.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 138ae391c3a630ab32470462bf0238fdb4918dc1cdecbe2e7e35f76bffe7a82a + unrolled_ast: 138ae391c3a630ab32470462bf0238fdb4918dc1cdecbe2e7e35f76bffe7a82a + ssa_ast: 2325bb825c3648c98856f719d4d90087b47c034a289d5e71feff8337d966737d + flattened_ast: db346f11570f06954cea1cdbc84efd81a1b8ee9a618930a6b1bf46770a7e0662 + inlined_ast: db346f11570f06954cea1cdbc84efd81a1b8ee9a618930a6b1bf46770a7e0662 + dce_ast: db346f11570f06954cea1cdbc84efd81a1b8ee9a618930a6b1bf46770a7e0662 + bytecode: 63f280b70417f356c8a73c6b8e1f9ad16075516df68abdc4cc5d704f905141f2 diff --git a/tests/expectations/compiler/integers/u64/max.out b/tests/expectations/compiler/integers/u64/max.out new file mode 100644 index 0000000000..d7cf8318b3 --- /dev/null +++ b/tests/expectations/compiler/integers/u64/max.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: b7be67ba28502039470d3704df1a138e6eb414c6dfe646f9a5e0b27dee2800e8 + unrolled_ast: b7be67ba28502039470d3704df1a138e6eb414c6dfe646f9a5e0b27dee2800e8 + ssa_ast: 41a0f01817ee6a6d96de14274063b0c0552e58301387804e514c311175ed7965 + flattened_ast: daafc9de175697a935adef77f569ad5dd3ff0b9e5d5685ed5f0ca03bbe3b51d4 + inlined_ast: daafc9de175697a935adef77f569ad5dd3ff0b9e5d5685ed5f0ca03bbe3b51d4 + dce_ast: 0043225424a11a45a4741abe3c3e0a74e957f34d90b5f0309fdac7a783bf56be + bytecode: 9a1e5bb7b8d932d4afd347a856bfb38db144771f49a0d9589ef14236338e3dcf diff --git a/tests/expectations/compiler/integers/u64/max_fail.out b/tests/expectations/compiler/integers/u64/max_fail.out new file mode 100644 index 0000000000..90f06d037c --- /dev/null +++ b/tests/expectations/compiler/integers/u64/max_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372008]: The value 18446744073709551616 is not a valid `u64`\n --> compiler-test:5:22\n |\n 5 | let a: u64 = 18446744073709551616u64;\n | ^^^^^^^^^^^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/integers/u64/min.out b/tests/expectations/compiler/integers/u64/min.out new file mode 100644 index 0000000000..1d7f2c600b --- /dev/null +++ b/tests/expectations/compiler/integers/u64/min.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 649e0c08d20cf5a5e548aad910543dc816b8ea29c05a0763e64cfccbc86d4dee + unrolled_ast: 649e0c08d20cf5a5e548aad910543dc816b8ea29c05a0763e64cfccbc86d4dee + ssa_ast: b7de892b4fbc55b7c2c94233a9e9e89677abe4faaeaa10e43fc37c19b8851de0 + flattened_ast: e96650bfcc1c76391564d982521c3e77865de7e7a5215950fc1ca69f7096cab4 + inlined_ast: e96650bfcc1c76391564d982521c3e77865de7e7a5215950fc1ca69f7096cab4 + dce_ast: 21154e5f0ae8de65800e415b5aaf804080955cf74e6f58549b847f07ba870093 + bytecode: 9a1e5bb7b8d932d4afd347a856bfb38db144771f49a0d9589ef14236338e3dcf diff --git a/tests/expectations/compiler/integers/u64/min_fail.out b/tests/expectations/compiler/integers/u64/min_fail.out new file mode 100644 index 0000000000..8a092b3057 --- /dev/null +++ b/tests/expectations/compiler/integers/u64/min_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372008]: The value -1 is not a valid `u64`\n --> compiler-test:5:22\n |\n 5 | let a: u64 = -1u64;\n | ^^^^^\n" diff --git a/tests/expectations/compiler/integers/u64/mul.out b/tests/expectations/compiler/integers/u64/mul.out new file mode 100644 index 0000000000..d08b5e8c8e --- /dev/null +++ b/tests/expectations/compiler/integers/u64/mul.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 2af627ac3b1b48f1cf5d9709ca0bc7b0121172daf7d3f3bb56560e7934322d87 + unrolled_ast: 2af627ac3b1b48f1cf5d9709ca0bc7b0121172daf7d3f3bb56560e7934322d87 + ssa_ast: 5dbb4026abb5b39b4c8816c9b3053329a4b90f546ac9208069f53c784e0414e4 + flattened_ast: 360dc932f93796d8893b0011ff3b762f31778bd45e026cb71b51cf301acd2525 + inlined_ast: 360dc932f93796d8893b0011ff3b762f31778bd45e026cb71b51cf301acd2525 + dce_ast: 360dc932f93796d8893b0011ff3b762f31778bd45e026cb71b51cf301acd2525 + bytecode: 486a84afaf57084573210907b90196cb1114fa7410653ca1e6fb6e3c6c79b6b7 diff --git a/tests/expectations/compiler/integers/u64/ne.out b/tests/expectations/compiler/integers/u64/ne.out new file mode 100644 index 0000000000..3cdc28ab49 --- /dev/null +++ b/tests/expectations/compiler/integers/u64/ne.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 57f15e7b6aad64f87d0bca076d4fd738fba7205e408df6ec07d5c2c8ea7945fa + unrolled_ast: 57f15e7b6aad64f87d0bca076d4fd738fba7205e408df6ec07d5c2c8ea7945fa + ssa_ast: f96f4a440fda9f8a7d15c61add6cfe029c5bc78522e4a094afa9fb4dffccf7c7 + flattened_ast: afe06e8f8a2ab8099c1da2e14054958d4f2a63891d713532ff05241c7b872172 + inlined_ast: afe06e8f8a2ab8099c1da2e14054958d4f2a63891d713532ff05241c7b872172 + dce_ast: afe06e8f8a2ab8099c1da2e14054958d4f2a63891d713532ff05241c7b872172 + bytecode: 8e8a975522ad3ffca502e1571834b1c8970eef450662ac7fddd3c49efeb639b6 diff --git a/tests/expectations/compiler/integers/u64/no_space_between_literal.out b/tests/expectations/compiler/integers/u64/no_space_between_literal.out new file mode 100644 index 0000000000..ff6c90aa64 --- /dev/null +++ b/tests/expectations/compiler/integers/u64/no_space_between_literal.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected : -- found '='\n --> compiler-test:5:15\n |\n 5 | let i = 1 u64;\n | ^" diff --git a/tests/expectations/compiler/integers/u64/operator_methods.out b/tests/expectations/compiler/integers/u64/operator_methods.out new file mode 100644 index 0000000000..4fc2ed98cb --- /dev/null +++ b/tests/expectations/compiler/integers/u64/operator_methods.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 65c6030ba915545327bfe7cdcdca627aa4682ee2cf90d94fb02690994523b08f + unrolled_ast: 65c6030ba915545327bfe7cdcdca627aa4682ee2cf90d94fb02690994523b08f + ssa_ast: 61f1e1380cc21c57ef71044e708ad8bc66cd1716dd137f15b589d3a145f54d5c + flattened_ast: 267033e0527434ffdfaeb8e6925490f3167499efc4dd8438c21dcbb4c6d66368 + inlined_ast: 267033e0527434ffdfaeb8e6925490f3167499efc4dd8438c21dcbb4c6d66368 + dce_ast: 1ea4de103bc144219a92332482fb7f957e5cef01ff092624acfbd8c017aff103 + bytecode: 6df1568996922ad2b9ebab5d7d0b01d5fcd2b723c2a79b7ccb6a9a8c6da706ab diff --git a/tests/expectations/compiler/integers/u64/or.out b/tests/expectations/compiler/integers/u64/or.out new file mode 100644 index 0000000000..f516bc212f --- /dev/null +++ b/tests/expectations/compiler/integers/u64/or.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 83176cdc5c11beb15f2912ab2f6b09396e5aba388dc658526d3d63fc004680bb + unrolled_ast: 83176cdc5c11beb15f2912ab2f6b09396e5aba388dc658526d3d63fc004680bb + ssa_ast: 14e893cf9b252a4d6ae2a42b6a2beb45461d4cd760d47ae2f7df4e05df597c2c + flattened_ast: 4424c64eb29b4e6c04bf7f91c52cc978521b47eb28cb41fb69acad39a6ef2da7 + inlined_ast: 4424c64eb29b4e6c04bf7f91c52cc978521b47eb28cb41fb69acad39a6ef2da7 + dce_ast: 4424c64eb29b4e6c04bf7f91c52cc978521b47eb28cb41fb69acad39a6ef2da7 + bytecode: 47598c8cd14b5c8d64211a0047245b3f871e19edd70e1522bc53b499086ddadb diff --git a/tests/expectations/compiler/integers/u64/pow.out b/tests/expectations/compiler/integers/u64/pow.out new file mode 100644 index 0000000000..aaed2f714a --- /dev/null +++ b/tests/expectations/compiler/integers/u64/pow.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: fbafcd3120e0f7204e18568a9627d61a4e3f5bbc7e70d02ff0155e8c03759f71 + unrolled_ast: fbafcd3120e0f7204e18568a9627d61a4e3f5bbc7e70d02ff0155e8c03759f71 + ssa_ast: 81248e235bc86234017d05e11a464c8b13d0064e5d0ea46807f2aa83f8b8b152 + flattened_ast: 425b3c314048ee546660740f365c6f15c9463f54733c1757a37d62d7724c0400 + inlined_ast: 425b3c314048ee546660740f365c6f15c9463f54733c1757a37d62d7724c0400 + dce_ast: 425b3c314048ee546660740f365c6f15c9463f54733c1757a37d62d7724c0400 + bytecode: 83a4a3e6bf44d3c123dddb1e75daf9ce1646eb28f1ab8cb29ef54f655f01d896 diff --git a/tests/expectations/compiler/integers/u64/rem.out b/tests/expectations/compiler/integers/u64/rem.out new file mode 100644 index 0000000000..eb8c6f7ca0 --- /dev/null +++ b/tests/expectations/compiler/integers/u64/rem.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 46a267a3807ce59cb21f54023452e51a37079952f7346dbf63d1b6f28af8c253 + unrolled_ast: 46a267a3807ce59cb21f54023452e51a37079952f7346dbf63d1b6f28af8c253 + ssa_ast: d30cab3974a13d4f52236f8c97649c364947ecfe88cbb3f3d256423f6f8d498f + flattened_ast: e32c8161d43b85bc2b7bfd91add942969f37d1c418c30ffe98b71ae6d7ae1a59 + inlined_ast: e32c8161d43b85bc2b7bfd91add942969f37d1c418c30ffe98b71ae6d7ae1a59 + dce_ast: e32c8161d43b85bc2b7bfd91add942969f37d1c418c30ffe98b71ae6d7ae1a59 + bytecode: 38c33340281b18d18928cf039ba05883bcf41ef355d7471a588657758ee7fafb diff --git a/tests/expectations/compiler/integers/u64/shl.out b/tests/expectations/compiler/integers/u64/shl.out new file mode 100644 index 0000000000..58094d4087 --- /dev/null +++ b/tests/expectations/compiler/integers/u64/shl.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 17c10f575cfbca658b2c795a497b45432885d43950b22ce8fec879beeb87156b + unrolled_ast: 17c10f575cfbca658b2c795a497b45432885d43950b22ce8fec879beeb87156b + ssa_ast: 69f8108645f53f817de010c64f4a432d232f33187a28acfcff8488127209f600 + flattened_ast: 2cf167168467a6012ac71a83820a290334b4f0fd6aeafd6615d9cc91f5d3cffd + inlined_ast: 2cf167168467a6012ac71a83820a290334b4f0fd6aeafd6615d9cc91f5d3cffd + dce_ast: 2cf167168467a6012ac71a83820a290334b4f0fd6aeafd6615d9cc91f5d3cffd + bytecode: 6abd2392fd4bdf825472989ac1375279ed65c8085607e574567a29036577a83b diff --git a/tests/expectations/compiler/integers/u64/shr.out b/tests/expectations/compiler/integers/u64/shr.out new file mode 100644 index 0000000000..ba52f4b67f --- /dev/null +++ b/tests/expectations/compiler/integers/u64/shr.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 55d8e55854852ae2724cd59b9f4be83e64e845803dbc0ffccd51e66e09a97f8b + unrolled_ast: 55d8e55854852ae2724cd59b9f4be83e64e845803dbc0ffccd51e66e09a97f8b + ssa_ast: b4b9eb2d3042a3334aa4c6f6514303bd9a1d74422d0b205f466469a34294a54b + flattened_ast: b9c0e491b0614b816d6162ebe034a301347aaec852501cad2001e73c26b8d7fd + inlined_ast: b9c0e491b0614b816d6162ebe034a301347aaec852501cad2001e73c26b8d7fd + dce_ast: b9c0e491b0614b816d6162ebe034a301347aaec852501cad2001e73c26b8d7fd + bytecode: fe81994a0915f712640ac94938914b1c35ed04f10bc82050aeb7bb88fa92681e diff --git a/tests/expectations/compiler/integers/u64/sub.out b/tests/expectations/compiler/integers/u64/sub.out new file mode 100644 index 0000000000..0c49206a5b --- /dev/null +++ b/tests/expectations/compiler/integers/u64/sub.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: c702954e9404b94ce40669050e2ef956daa9f24dd6b9c8201969f06d6061007b + unrolled_ast: c702954e9404b94ce40669050e2ef956daa9f24dd6b9c8201969f06d6061007b + ssa_ast: 1e748f62c1ae57afd54f2f0d400b9e004927030b71751b7e250fd6b69e0358e6 + flattened_ast: 4c2110e5b9ec3b3a78691e522918ea9f5236cd11602ef780ad8363e1eacee1c8 + inlined_ast: 4c2110e5b9ec3b3a78691e522918ea9f5236cd11602ef780ad8363e1eacee1c8 + dce_ast: 4c2110e5b9ec3b3a78691e522918ea9f5236cd11602ef780ad8363e1eacee1c8 + bytecode: ef94f9ad01c6c378473388209a8d3c21f2071e447c5370032f52abbe3df13b0d diff --git a/tests/expectations/compiler/integers/u64/ternary.out b/tests/expectations/compiler/integers/u64/ternary.out new file mode 100644 index 0000000000..6a7437999d --- /dev/null +++ b/tests/expectations/compiler/integers/u64/ternary.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 6cf9d56ddea61750c730fe1d73bdce39c4a242e824cd87bf25ea78849f94ab65 + unrolled_ast: 6cf9d56ddea61750c730fe1d73bdce39c4a242e824cd87bf25ea78849f94ab65 + ssa_ast: 3046a4802596d57c3a3701b06be2169860135bcdff6c74196ea5b2da6fbb2e59 + flattened_ast: 1e128bc7c199d9657fda2a861dc43157e1e06273b9d2241483ad5294018b350c + inlined_ast: 1e128bc7c199d9657fda2a861dc43157e1e06273b9d2241483ad5294018b350c + dce_ast: 1e128bc7c199d9657fda2a861dc43157e1e06273b9d2241483ad5294018b350c + bytecode: cf2304e9005774e8f4d611278dc0c52a55c4430daa32c89f4a039b7502672341 diff --git a/tests/expectations/compiler/integers/u64/xor.out b/tests/expectations/compiler/integers/u64/xor.out new file mode 100644 index 0000000000..05fa56734a --- /dev/null +++ b/tests/expectations/compiler/integers/u64/xor.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 310fd8d99011a0c06a161592a5eff8f8929d6da3271f9929c090d5595d341be9 + unrolled_ast: 310fd8d99011a0c06a161592a5eff8f8929d6da3271f9929c090d5595d341be9 + ssa_ast: 7219586aec50a82e4bcc44b2ea1dd7041daae5c907064b3a7127c18fe2356d59 + flattened_ast: 8a838aa5ef69f4fcf00c58cceddb1282db41076faf5370c8769e2ddf02591a32 + inlined_ast: 8a838aa5ef69f4fcf00c58cceddb1282db41076faf5370c8769e2ddf02591a32 + dce_ast: 8a838aa5ef69f4fcf00c58cceddb1282db41076faf5370c8769e2ddf02591a32 + bytecode: fb6acd4ab6b90eb96a5fcbcad3bd407750c44e7e8c0d75bce53a5fb7c454f54b diff --git a/tests/expectations/compiler/integers/u8/add.out b/tests/expectations/compiler/integers/u8/add.out new file mode 100644 index 0000000000..37bc54965f --- /dev/null +++ b/tests/expectations/compiler/integers/u8/add.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 5bacf3ac23a24523ebf517f94da81805616856d42a4c29d7f4601d05bfdb5230 + unrolled_ast: 5bacf3ac23a24523ebf517f94da81805616856d42a4c29d7f4601d05bfdb5230 + ssa_ast: 0c360692d37a897e945979abcd4466e1dcbf1a645f91445a2514c7953c42ab5c + flattened_ast: 0264a701954bcfdd88d18cb31b80359495bc7ff3ad59929875ebf39c5ca18d0d + inlined_ast: 0264a701954bcfdd88d18cb31b80359495bc7ff3ad59929875ebf39c5ca18d0d + dce_ast: 0264a701954bcfdd88d18cb31b80359495bc7ff3ad59929875ebf39c5ca18d0d + bytecode: 5d87202e1d7ba9963bb54a1ee27ce00a44317ae7a231302898e8be40fe76610d diff --git a/tests/expectations/compiler/integers/u8/and.out b/tests/expectations/compiler/integers/u8/and.out new file mode 100644 index 0000000000..d08ef3cfd3 --- /dev/null +++ b/tests/expectations/compiler/integers/u8/and.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: f2acb80cf2ab6df6abcf83e5a4753e7dbb6b1fec0b323372b99b6830c52b43f0 + unrolled_ast: f2acb80cf2ab6df6abcf83e5a4753e7dbb6b1fec0b323372b99b6830c52b43f0 + ssa_ast: d00859ee377361b83c25be8592434a86d86bb432744b944e0cd377bc53e61a0c + flattened_ast: 85e26923486c803b0c57e09dd54767c6e36d2852e896744e24d6735f3ab26f71 + inlined_ast: 85e26923486c803b0c57e09dd54767c6e36d2852e896744e24d6735f3ab26f71 + dce_ast: 85e26923486c803b0c57e09dd54767c6e36d2852e896744e24d6735f3ab26f71 + bytecode: a039f2ce7be6da12461e29fb69ece10e8a6ccc0345328d2203e36df9398930af diff --git a/tests/expectations/compiler/integers/u8/console_assert.out b/tests/expectations/compiler/integers/u8/console_assert.out new file mode 100644 index 0000000000..bf53841aed --- /dev/null +++ b/tests/expectations/compiler/integers/u8/console_assert.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: c2673758071f2bb74e1bcaaf14e0a50db1af889a6e8d2cd31b65f367bee43344 + unrolled_ast: c2673758071f2bb74e1bcaaf14e0a50db1af889a6e8d2cd31b65f367bee43344 + ssa_ast: 457be461ca27e85b6e69e12cc8a562d431875801db61997fea57e16896746f07 + flattened_ast: 2dc73f74412c554a439864c8cad58070161d7558ef527e6e29052143f509f8be + inlined_ast: 2dc73f74412c554a439864c8cad58070161d7558ef527e6e29052143f509f8be + dce_ast: 2dc73f74412c554a439864c8cad58070161d7558ef527e6e29052143f509f8be + bytecode: a941d570e21a54677e4f738fa6b5b10eaf3c665a31f700ac998f3fa5991d3f96 diff --git a/tests/expectations/compiler/integers/u8/div.out b/tests/expectations/compiler/integers/u8/div.out new file mode 100644 index 0000000000..65ed29826f --- /dev/null +++ b/tests/expectations/compiler/integers/u8/div.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 5b103b8c1bef53742ee83aaafa057c45220eb80f24a80e7c5d2ea3bf1cc673d4 + unrolled_ast: 5b103b8c1bef53742ee83aaafa057c45220eb80f24a80e7c5d2ea3bf1cc673d4 + ssa_ast: bf3f28c183d6dbec24d03ffe311529adafd5646cbecd95f7f7f1519d46f87262 + flattened_ast: d8d16982d63f3066336e5de4bc97583787efee6c643ab2790a839da587ff6ad4 + inlined_ast: d8d16982d63f3066336e5de4bc97583787efee6c643ab2790a839da587ff6ad4 + dce_ast: d8d16982d63f3066336e5de4bc97583787efee6c643ab2790a839da587ff6ad4 + bytecode: cfb3e8b0339e3774c4dd6d936a8d82b20c9bf0930974cd751daf5c39b8cea38a diff --git a/tests/expectations/compiler/integers/u8/eq.out b/tests/expectations/compiler/integers/u8/eq.out new file mode 100644 index 0000000000..36783953eb --- /dev/null +++ b/tests/expectations/compiler/integers/u8/eq.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 550caa3b10566610ed11087c26e7b65c018f483a76dd8fc8684eed401967e77b + unrolled_ast: 550caa3b10566610ed11087c26e7b65c018f483a76dd8fc8684eed401967e77b + ssa_ast: 59564d920a2e494f95604234ccdd0f4a6bbb82cfa4366c24bbe2d2eddce7e7f7 + flattened_ast: 76c6fcfed2e4ff717d484c88088292632d0ac3260d1bc98ede85920f11d5de91 + inlined_ast: 76c6fcfed2e4ff717d484c88088292632d0ac3260d1bc98ede85920f11d5de91 + dce_ast: 76c6fcfed2e4ff717d484c88088292632d0ac3260d1bc98ede85920f11d5de91 + bytecode: 99f56a83a13830f7dc6fc2f1a80063a3882a8756f8bc33f3134c64d1b596958f diff --git a/tests/expectations/compiler/integers/u8/ge.out b/tests/expectations/compiler/integers/u8/ge.out new file mode 100644 index 0000000000..8275aba7bd --- /dev/null +++ b/tests/expectations/compiler/integers/u8/ge.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: b3f377c03af077c585378d2b83dd247780db01fff46cfc5e9c845e4e4c085af1 + unrolled_ast: b3f377c03af077c585378d2b83dd247780db01fff46cfc5e9c845e4e4c085af1 + ssa_ast: 8fbac44e7f495d4a68ab95a8b38ea9b9209540612738f90edc69f8e0b36e8ba6 + flattened_ast: 5d135e76eaf58d0133dec0d40d2a4cfe727fc9e9ef1ada95300ae533e8ec640c + inlined_ast: 5d135e76eaf58d0133dec0d40d2a4cfe727fc9e9ef1ada95300ae533e8ec640c + dce_ast: 5d135e76eaf58d0133dec0d40d2a4cfe727fc9e9ef1ada95300ae533e8ec640c + bytecode: b6c443f36f4e05d0bf1b0c714281eb0ea5502d3899762df421a382656c3f2a0d diff --git a/tests/expectations/compiler/integers/u8/gt.out b/tests/expectations/compiler/integers/u8/gt.out new file mode 100644 index 0000000000..eb7dbbd9da --- /dev/null +++ b/tests/expectations/compiler/integers/u8/gt.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: cde23b8490d2dfd66f9fbf3f722fb491fccda3c86beaba473bfdabdd9fca180b + unrolled_ast: cde23b8490d2dfd66f9fbf3f722fb491fccda3c86beaba473bfdabdd9fca180b + ssa_ast: d3ac5d41aced051be5e105db478e96fd562a811087d71bcad4ebe2362d187c42 + flattened_ast: f4f8f73a564e03ab7c5cb3348c438549d3ac814df5711701feacc606d7764831 + inlined_ast: f4f8f73a564e03ab7c5cb3348c438549d3ac814df5711701feacc606d7764831 + dce_ast: f4f8f73a564e03ab7c5cb3348c438549d3ac814df5711701feacc606d7764831 + bytecode: da7592d9bb8e0e8af0e5b9d9ddd8921411c7dd0d705c9a87fdd508169d0ad1f7 diff --git a/tests/expectations/compiler/integers/u8/le.out b/tests/expectations/compiler/integers/u8/le.out new file mode 100644 index 0000000000..4084f5b98c --- /dev/null +++ b/tests/expectations/compiler/integers/u8/le.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 05399cf6b2f04b69efeebbd681d7a725db2134adac7c9364d115570012f6630b + unrolled_ast: 05399cf6b2f04b69efeebbd681d7a725db2134adac7c9364d115570012f6630b + ssa_ast: 07cdb8e6bce506bd81f393de371da545dd08824d030cec6351ff07ab8b9e0fa3 + flattened_ast: e45b2685d1bc207aa5fb052b858a1e68fd1cf578cbaa030d3f3ecfc1cf3950dd + inlined_ast: e45b2685d1bc207aa5fb052b858a1e68fd1cf578cbaa030d3f3ecfc1cf3950dd + dce_ast: e45b2685d1bc207aa5fb052b858a1e68fd1cf578cbaa030d3f3ecfc1cf3950dd + bytecode: e869ef253f8fdaefc80e84abd98141ab16355d333ddbfae3d7cca25fb7ebe10b diff --git a/tests/expectations/compiler/integers/u8/lt.out b/tests/expectations/compiler/integers/u8/lt.out new file mode 100644 index 0000000000..eeb13ee07b --- /dev/null +++ b/tests/expectations/compiler/integers/u8/lt.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 498a31ab20522b620afd634a3c6db944c67f2152e2b014abf9e9c564ed8d1481 + unrolled_ast: 498a31ab20522b620afd634a3c6db944c67f2152e2b014abf9e9c564ed8d1481 + ssa_ast: a58a9093250c1c8c8073e6c4babfaa5ff102f1527f605a271e47a7f13a77ac8a + flattened_ast: 8e9f41da39c86b1e6e3d81056dafedb1393ba3492ce4822c76233f7b2f807343 + inlined_ast: 8e9f41da39c86b1e6e3d81056dafedb1393ba3492ce4822c76233f7b2f807343 + dce_ast: 8e9f41da39c86b1e6e3d81056dafedb1393ba3492ce4822c76233f7b2f807343 + bytecode: 8b3b1c73d15c3f5ac4854c5e9c18cbfafae589747c9de009718ec757b099c267 diff --git a/tests/expectations/compiler/integers/u8/max.out b/tests/expectations/compiler/integers/u8/max.out new file mode 100644 index 0000000000..ebe524d9b1 --- /dev/null +++ b/tests/expectations/compiler/integers/u8/max.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 760ae95c2dd75392d6ceda4190a8e812353903b7d64bd4f24e476dbd5ad4532f + unrolled_ast: 760ae95c2dd75392d6ceda4190a8e812353903b7d64bd4f24e476dbd5ad4532f + ssa_ast: 2a7596a509f71aa5f787934f01ab0346f25f5f6fe9c4753b486352a5c51d25ac + flattened_ast: 5cc75ea9730cd067b377e887eb7ce9302c8aa418caf29cb4364f1e27b3bde403 + inlined_ast: 5cc75ea9730cd067b377e887eb7ce9302c8aa418caf29cb4364f1e27b3bde403 + dce_ast: 21154e5f0ae8de65800e415b5aaf804080955cf74e6f58549b847f07ba870093 + bytecode: 9a1e5bb7b8d932d4afd347a856bfb38db144771f49a0d9589ef14236338e3dcf diff --git a/tests/expectations/compiler/integers/u8/max_fail.out b/tests/expectations/compiler/integers/u8/max_fail.out new file mode 100644 index 0000000000..57ab71b466 --- /dev/null +++ b/tests/expectations/compiler/integers/u8/max_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372008]: The value 256 is not a valid `u8`\n --> compiler-test:5:21\n |\n 5 | let a: u8 = 256u8;\n | ^^^^^\n" diff --git a/tests/expectations/compiler/integers/u8/min.out b/tests/expectations/compiler/integers/u8/min.out new file mode 100644 index 0000000000..df41e55fca --- /dev/null +++ b/tests/expectations/compiler/integers/u8/min.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 754781c0fa212f3272647786f4b2e74902cd9d82e6a7a417f26bd743c35411ab + unrolled_ast: 754781c0fa212f3272647786f4b2e74902cd9d82e6a7a417f26bd743c35411ab + ssa_ast: bd845d7669bbc97449b7dd95002367d50cf139d621ba4cb8f3e036bfc065b40f + flattened_ast: b61d7ea2a4b4eb2c96ad18cecf577a544492ee597bd3a3b0802853c50ff17327 + inlined_ast: b61d7ea2a4b4eb2c96ad18cecf577a544492ee597bd3a3b0802853c50ff17327 + dce_ast: cd0bdc7c755762cbc8dcaf89a02a84097bba8f756c1a1d19da173feecb0679ed + bytecode: 9a1e5bb7b8d932d4afd347a856bfb38db144771f49a0d9589ef14236338e3dcf diff --git a/tests/expectations/compiler/integers/u8/min_fail.out b/tests/expectations/compiler/integers/u8/min_fail.out new file mode 100644 index 0000000000..28c5feb0e4 --- /dev/null +++ b/tests/expectations/compiler/integers/u8/min_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372008]: The value -1 is not a valid `u8`\n --> compiler-test:5:21\n |\n 5 | let a: u8 = -1u8;\n | ^^^^\n" diff --git a/tests/expectations/compiler/integers/u8/mul.out b/tests/expectations/compiler/integers/u8/mul.out new file mode 100644 index 0000000000..4581dc5296 --- /dev/null +++ b/tests/expectations/compiler/integers/u8/mul.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: af85afadf48bf782a70a44cf90b92f0fe9f418957921858df92245f5133978d0 + unrolled_ast: af85afadf48bf782a70a44cf90b92f0fe9f418957921858df92245f5133978d0 + ssa_ast: aae5a7fec8f06f526fea2186a91e0e22643a73ff85bc51f15aa9902a49ae09c9 + flattened_ast: 9920a8ab7749898ac69d54411548b0d2638e3ce6fcf7005d29bce0952aafac92 + inlined_ast: 9920a8ab7749898ac69d54411548b0d2638e3ce6fcf7005d29bce0952aafac92 + dce_ast: 9920a8ab7749898ac69d54411548b0d2638e3ce6fcf7005d29bce0952aafac92 + bytecode: f3e8f78be42f2b1c4ffe738c22be8ed69d93030768e1493e91704069624161d1 diff --git a/tests/expectations/compiler/integers/u8/ne.out b/tests/expectations/compiler/integers/u8/ne.out new file mode 100644 index 0000000000..445bd91edb --- /dev/null +++ b/tests/expectations/compiler/integers/u8/ne.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 6b259d8abc38eef47ba61508d4491ffe92099452034c2c84e02c4999a51385e0 + unrolled_ast: 6b259d8abc38eef47ba61508d4491ffe92099452034c2c84e02c4999a51385e0 + ssa_ast: e8a2bd12468908d67f152128fb94bddb0bc7a74350ba36a1338d7ee1267507c1 + flattened_ast: 2f0b57531f69f0870f65c56f45f6079c324babfa141890773962e2b2e6a97224 + inlined_ast: 2f0b57531f69f0870f65c56f45f6079c324babfa141890773962e2b2e6a97224 + dce_ast: 2f0b57531f69f0870f65c56f45f6079c324babfa141890773962e2b2e6a97224 + bytecode: f3d5151dee5a9dc4ec37146ba94693a876f6520de94c3c6a3d8bad7ba513f5d8 diff --git a/tests/expectations/compiler/integers/u8/no_space_between_literal.out b/tests/expectations/compiler/integers/u8/no_space_between_literal.out new file mode 100644 index 0000000000..15b8e63fe2 --- /dev/null +++ b/tests/expectations/compiler/integers/u8/no_space_between_literal.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected : -- found '='\n --> compiler-test:5:15\n |\n 5 | let i = 1 u8;\n | ^" diff --git a/tests/expectations/compiler/integers/u8/operator_methods.out b/tests/expectations/compiler/integers/u8/operator_methods.out new file mode 100644 index 0000000000..903ab5dccd --- /dev/null +++ b/tests/expectations/compiler/integers/u8/operator_methods.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 1f718cbf12cf368295b0cd0181e429f6d95565a13a13f148aa6593622e7f0c94 + unrolled_ast: 1f718cbf12cf368295b0cd0181e429f6d95565a13a13f148aa6593622e7f0c94 + ssa_ast: 5ebc40518c5fa13c810f4a30528552720e2fde023f2685a7c71bbace0c2d06b2 + flattened_ast: fb9676ebfc259e6d7925fe4cf2b55e99e47ab6c208eeb7256c741b25eda962ad + inlined_ast: fb9676ebfc259e6d7925fe4cf2b55e99e47ab6c208eeb7256c741b25eda962ad + dce_ast: b2be496652e117727901115cee8f73b222669dfd65792d02384bbd4dd6eaaa2b + bytecode: bc96cd7d2338fc235857e720f458edaf870603cb91f763e2e82cff2be42df25c diff --git a/tests/expectations/compiler/integers/u8/or.out b/tests/expectations/compiler/integers/u8/or.out new file mode 100644 index 0000000000..fb38fcbfed --- /dev/null +++ b/tests/expectations/compiler/integers/u8/or.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 003d86dd72c5dacc2cda3851a8219721a634aafda6e75859981d394d1d0685fa + unrolled_ast: 003d86dd72c5dacc2cda3851a8219721a634aafda6e75859981d394d1d0685fa + ssa_ast: 2187419697522ae22b0eae11657df9f8a714534bbede8b72b2a2e638638c1919 + flattened_ast: 0a0e5f89ba01bdc296b7dc046f86e4dabf11cc7cec22314e611f291ad6040445 + inlined_ast: 0a0e5f89ba01bdc296b7dc046f86e4dabf11cc7cec22314e611f291ad6040445 + dce_ast: 0a0e5f89ba01bdc296b7dc046f86e4dabf11cc7cec22314e611f291ad6040445 + bytecode: e074a88150455ba45e3055ec3e3ab7046242f12f6b6632e0b008a96e84818654 diff --git a/tests/expectations/compiler/integers/u8/pow.out b/tests/expectations/compiler/integers/u8/pow.out new file mode 100644 index 0000000000..a8545226c9 --- /dev/null +++ b/tests/expectations/compiler/integers/u8/pow.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 9240ac92cf0a2bb2969182ca7fb629f585656f05a94a474538a3019b194e69de + unrolled_ast: 9240ac92cf0a2bb2969182ca7fb629f585656f05a94a474538a3019b194e69de + ssa_ast: 13be297637ee6aca3c6f33144678c76b529c81a3065622bcf19e416724daae57 + flattened_ast: ede7087588a69a34953b68b632c70219d6ee58b5834d7a825a671b7a0197d1c9 + inlined_ast: ede7087588a69a34953b68b632c70219d6ee58b5834d7a825a671b7a0197d1c9 + dce_ast: ede7087588a69a34953b68b632c70219d6ee58b5834d7a825a671b7a0197d1c9 + bytecode: a48814ab5a0a2eb63c017974e4b5d5b80ee85a75baefb0f01c9d4794aa44f427 diff --git a/tests/expectations/compiler/integers/u8/rem.out b/tests/expectations/compiler/integers/u8/rem.out new file mode 100644 index 0000000000..eaa62c274b --- /dev/null +++ b/tests/expectations/compiler/integers/u8/rem.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: b8a417c5c3bc5faae23a0e672dd990f400f54a0bbffb597c49d6b7b23411264a + unrolled_ast: b8a417c5c3bc5faae23a0e672dd990f400f54a0bbffb597c49d6b7b23411264a + ssa_ast: d76bad65d0cf3d4dfc6848292c830846c68c117b2036862cefc499c1af037977 + flattened_ast: 74b529c97baa8f89aed8777843c7304c7d17a28831b10e5aa2fc79c6c762b2a9 + inlined_ast: 74b529c97baa8f89aed8777843c7304c7d17a28831b10e5aa2fc79c6c762b2a9 + dce_ast: 74b529c97baa8f89aed8777843c7304c7d17a28831b10e5aa2fc79c6c762b2a9 + bytecode: 2159912f354d44e770662e90da4184d94de184fa49e44a6228fb4fb9e9ce5bf3 diff --git a/tests/expectations/compiler/integers/u8/shl.out b/tests/expectations/compiler/integers/u8/shl.out new file mode 100644 index 0000000000..db5ae59339 --- /dev/null +++ b/tests/expectations/compiler/integers/u8/shl.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: abe74c6e1afdcd52c84d96fa218703c6a21e746744e5bb3d22d6314ad29c91e7 + unrolled_ast: abe74c6e1afdcd52c84d96fa218703c6a21e746744e5bb3d22d6314ad29c91e7 + ssa_ast: ff8d1fd3c2e5f9aae910d70da1d191de38fe343d9fa8ce5dd90fedf6963e7eb0 + flattened_ast: c396310012e96d891b068ed6cf5be512d1e22bd5ae5b0289840d042f4db94dcb + inlined_ast: c396310012e96d891b068ed6cf5be512d1e22bd5ae5b0289840d042f4db94dcb + dce_ast: c396310012e96d891b068ed6cf5be512d1e22bd5ae5b0289840d042f4db94dcb + bytecode: dabf4b298971b553d5d0009a749e4d4a993d58a0a5aa20453a0241716bceaaad diff --git a/tests/expectations/compiler/integers/u8/shr.out b/tests/expectations/compiler/integers/u8/shr.out new file mode 100644 index 0000000000..fcb82044bc --- /dev/null +++ b/tests/expectations/compiler/integers/u8/shr.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 8c9088a9a4261940cb4f2ec20318c2875d8813b0b57eb12a5b8f2af0e71f5f22 + unrolled_ast: 8c9088a9a4261940cb4f2ec20318c2875d8813b0b57eb12a5b8f2af0e71f5f22 + ssa_ast: 9c2e76526aa89d21856fe51ef086e8d22e6b7de8188f7ff6b99cce63d7553e87 + flattened_ast: 7e90bf94ce350eb5aaac9995d06cd14c5a63965f77abf01e08dbfdd036032a7f + inlined_ast: 7e90bf94ce350eb5aaac9995d06cd14c5a63965f77abf01e08dbfdd036032a7f + dce_ast: 7e90bf94ce350eb5aaac9995d06cd14c5a63965f77abf01e08dbfdd036032a7f + bytecode: 5c4619b95890e250d3c57ecdcd585a9a20b1c5b4ca615b23c6ddf7fe5bd9b6c3 diff --git a/tests/expectations/compiler/integers/u8/sub.out b/tests/expectations/compiler/integers/u8/sub.out new file mode 100644 index 0000000000..b2d39fed3c --- /dev/null +++ b/tests/expectations/compiler/integers/u8/sub.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: df2650ba086d2ef699d5aba01ca40ed16bc8d6179b58fa1df88399a4318a78ea + unrolled_ast: df2650ba086d2ef699d5aba01ca40ed16bc8d6179b58fa1df88399a4318a78ea + ssa_ast: 99d442386b9c5f64e9b46c309ce2739e396017e2c2dab2d06288aae49b9d948f + flattened_ast: eef19c7cd1c41f05f5dee131db1762751c774729c969768cba30249e8f27b071 + inlined_ast: eef19c7cd1c41f05f5dee131db1762751c774729c969768cba30249e8f27b071 + dce_ast: eef19c7cd1c41f05f5dee131db1762751c774729c969768cba30249e8f27b071 + bytecode: d0baeac7c2175f2a975d1d36d8605405062fb8dbb8513604a5ea9d3e9902c6d2 diff --git a/tests/expectations/compiler/integers/u8/ternary.out b/tests/expectations/compiler/integers/u8/ternary.out new file mode 100644 index 0000000000..12671634ec --- /dev/null +++ b/tests/expectations/compiler/integers/u8/ternary.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: a032a228dd494bd45aae57ea84ae8c437b412f0041014b30637106738fa6105b + unrolled_ast: a032a228dd494bd45aae57ea84ae8c437b412f0041014b30637106738fa6105b + ssa_ast: 80e952804bfbeca02020c6c53ad6ffcc100cc008bc1e2a436eb4fdb8c24e3bd5 + flattened_ast: f212d9074cea7541f75163a60c18bdd269b29c69c4675aef5b772e9220551282 + inlined_ast: f212d9074cea7541f75163a60c18bdd269b29c69c4675aef5b772e9220551282 + dce_ast: f212d9074cea7541f75163a60c18bdd269b29c69c4675aef5b772e9220551282 + bytecode: 943036760ae202cb77ff7f514a6a556c890a8f542d7e8fef482b4185d6786b66 diff --git a/tests/expectations/compiler/integers/u8/xor.out b/tests/expectations/compiler/integers/u8/xor.out new file mode 100644 index 0000000000..88e809f74f --- /dev/null +++ b/tests/expectations/compiler/integers/u8/xor.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: e6ccaa14c2eb3997e4ad573ff7be949715028ac647cbe019b5e6e73599434515 + unrolled_ast: e6ccaa14c2eb3997e4ad573ff7be949715028ac647cbe019b5e6e73599434515 + ssa_ast: 42829852d13fd54c6463e3890767d8acd18981dbac4b6e3e187025b8cfdfdfed + flattened_ast: 4e12edb61d9baee40099181b51649a489a943282924fd976a7a2a2c39e470443 + inlined_ast: 4e12edb61d9baee40099181b51649a489a943282924fd976a7a2a2c39e470443 + dce_ast: 4e12edb61d9baee40099181b51649a489a943282924fd976a7a2a2c39e470443 + bytecode: 8b7e98a7f450a6280c0427907077db96a5194953ac878f3096c126a8d8b75f62 diff --git a/tests/expectations/compiler/records/balance_wrong_ty.out b/tests/expectations/compiler/records/balance_wrong_ty.out new file mode 100644 index 0000000000..3a460f5372 --- /dev/null +++ b/tests/expectations/compiler/records/balance_wrong_ty.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372020]: The field `gates` in a `record` must have type `u64`.\n --> compiler-test:5:5\n |\n 5 | record Token {\n 6 | gates: address,\n 7 | owner: address,\n 8 | }\n | ^\n" diff --git a/tests/expectations/compiler/records/declaration.out b/tests/expectations/compiler/records/declaration.out new file mode 100644 index 0000000000..6d5c0ca2f6 --- /dev/null +++ b/tests/expectations/compiler/records/declaration.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 706d6b698209729ccc81f63bfe77a4baf572bfbda4d4165b51ed2fd1bbf34442 + unrolled_ast: 706d6b698209729ccc81f63bfe77a4baf572bfbda4d4165b51ed2fd1bbf34442 + ssa_ast: 06ce227a097baf4d7c73465d58710ab217a1ce7c8d49c8e9ca644627e607703a + flattened_ast: 2f2798034c971938c91ed4422def44932cb6f657c62a56b79de431ca1f542fc2 + inlined_ast: 2f2798034c971938c91ed4422def44932cb6f657c62a56b79de431ca1f542fc2 + dce_ast: 2f2798034c971938c91ed4422def44932cb6f657c62a56b79de431ca1f542fc2 + bytecode: e6c7836da70dcac19600a14bc49655ff3aff5f254ca77a24b39564a3987cdb7f diff --git a/tests/expectations/compiler/records/duplicate_circuit_name_fail.out b/tests/expectations/compiler/records/duplicate_circuit_name_fail.out new file mode 100644 index 0000000000..d08b2052e9 --- /dev/null +++ b/tests/expectations/compiler/records/duplicate_circuit_name_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Failed to parse string. Remaining invalid string is: \"closure main:\n output true as boolean;\n\"" diff --git a/tests/expectations/compiler/records/duplicate_var_fail.out b/tests/expectations/compiler/records/duplicate_var_fail.out new file mode 100644 index 0000000000..ec46e2156b --- /dev/null +++ b/tests/expectations/compiler/records/duplicate_var_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372016]: Record Token defined with more than one variable with the same name.\n --> compiler-test:4:5\n |\n 4 | record Token {\n 5 | // The token owner.\n 6 | owner: address,\n 7 | // The token owner.\n 8 | owner: address, // Cannot define two record variables with the same name.\n 9 | // The Aleo balance (in gates).\n 10 | gates: u64,\n 11 | // The token amount.\n 12 | amount: u64,\n 13 | }\n | ^\n" diff --git a/tests/expectations/compiler/records/init_expression.out b/tests/expectations/compiler/records/init_expression.out new file mode 100644 index 0000000000..8ff96a3576 --- /dev/null +++ b/tests/expectations/compiler/records/init_expression.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: befe0cc5d37e961c86223e95440fc29b8eeda7f9e7b0573dc6d3f956d8a3ece6 + unrolled_ast: befe0cc5d37e961c86223e95440fc29b8eeda7f9e7b0573dc6d3f956d8a3ece6 + ssa_ast: d32dc9d291fad7846b373e76610e5e83f396126a90f40a7cf2f673cff6159a36 + flattened_ast: 93a108cdde1ece68c4c7c4a4f061bd14104dc985fda2fedaa3f4deab5dad6565 + inlined_ast: 93a108cdde1ece68c4c7c4a4f061bd14104dc985fda2fedaa3f4deab5dad6565 + dce_ast: 93a108cdde1ece68c4c7c4a4f061bd14104dc985fda2fedaa3f4deab5dad6565 + bytecode: 1cfa6fc08a9f2902f0fef6da253abd33115459891219263928dbaa69b44be3cf diff --git a/tests/expectations/compiler/records/init_expression_shorthand.out b/tests/expectations/compiler/records/init_expression_shorthand.out new file mode 100644 index 0000000000..51ab546c24 --- /dev/null +++ b/tests/expectations/compiler/records/init_expression_shorthand.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 5095cc2534f53b3d89023c125c9103d76ca3c32135c97cadb949db4474a28309 + unrolled_ast: 5095cc2534f53b3d89023c125c9103d76ca3c32135c97cadb949db4474a28309 + ssa_ast: 9cecc0f8f61a79f6c87a2c813e3af44ddd194a3433720689dcd5679d2a788443 + flattened_ast: d6db91d569b87edba60124cabfa970485d6dd0bc1767bf39109e91d2742eb22a + inlined_ast: d6db91d569b87edba60124cabfa970485d6dd0bc1767bf39109e91d2742eb22a + dce_ast: d6db91d569b87edba60124cabfa970485d6dd0bc1767bf39109e91d2742eb22a + bytecode: 1cfa6fc08a9f2902f0fef6da253abd33115459891219263928dbaa69b44be3cf diff --git a/tests/expectations/compiler/records/init_expression_type_fail.out b/tests/expectations/compiler/records/init_expression_type_fail.out new file mode 100644 index 0000000000..ad910a9a39 --- /dev/null +++ b/tests/expectations/compiler/records/init_expression_type_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372064]: A `function` cannot output a record.\n --> compiler-test:13:44\n |\n 13 | function mint(r0: address, r1: u64) -> Token {\n | ^^^^^\nError [ETYC0372003]: Expected type `address` but type `u64` was found\n --> compiler-test:15:20\n |\n 15 | owner: r1, // This variable should be type address.\n | ^^\nError [ETYC0372003]: Expected type `u64` but type `address` was found\n --> compiler-test:17:21\n |\n 17 | amount: r0, // This variable should be type u64.\n | ^^\nError [ETYC0372047]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:23:24\n |\n 23 | let t: Token = mint(x, c);\n | ^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/records/init_expression_var_fail.out b/tests/expectations/compiler/records/init_expression_var_fail.out new file mode 100644 index 0000000000..df65c10f76 --- /dev/null +++ b/tests/expectations/compiler/records/init_expression_var_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372064]: A `function` cannot output a record.\n --> compiler-test:13:44\n |\n 13 | function mint(r0: address, r1: u64) -> Token {\n | ^^^^^\nError [ETYC0372013]: Struct initialization expression for `Token` is missing member `owner`.\n --> compiler-test:14:16\n |\n 14 | return Token {\n 15 | sender: r0, // This variable should be named `owner`.\n 16 | gates: 0u64,\n 17 | amount: r1,\n 18 | };\n | ^^^^^^\nError [ETYC0372047]: Only `inline` can be called from a `function` or `inline`.\n --> compiler-test:23:24\n |\n 23 | let t: Token = mint(x, c);\n | ^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/records/nested_record.out b/tests/expectations/compiler/records/nested_record.out new file mode 100644 index 0000000000..a53b55e9f0 --- /dev/null +++ b/tests/expectations/compiler/records/nested_record.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: c134c752949c62a183432f6a7f466e8270be5592ade20d634a99796689d6db30 + unrolled_ast: c134c752949c62a183432f6a7f466e8270be5592ade20d634a99796689d6db30 + ssa_ast: 8e601ac48d9fddfdae521a6ffaedfed1cbfaa802bf1b81530f58f26d5cf67ead + flattened_ast: f88ab1e7c351cd90b5f49150df221c7c53e032e166e9d178a4d3524084e66b17 + inlined_ast: f88ab1e7c351cd90b5f49150df221c7c53e032e166e9d178a4d3524084e66b17 + dce_ast: f88ab1e7c351cd90b5f49150df221c7c53e032e166e9d178a4d3524084e66b17 + bytecode: 6c9eb1193b8d4f71dd8b701ae0f297d12212933b670ab59c89f0a20ab982f08a diff --git a/tests/expectations/compiler/records/nested_record_1_fail.out b/tests/expectations/compiler/records/nested_record_1_fail.out new file mode 100644 index 0000000000..6256a4cd6a --- /dev/null +++ b/tests/expectations/compiler/records/nested_record_1_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372029]: A struct or record cannot contain another record.\n --> compiler-test:13:9\n |\n 13 | foo: Foo,\n | ^^^\n |\n = Remove the record `Foo` from `Token`.\n" diff --git a/tests/expectations/compiler/records/nested_record_2_fail.out b/tests/expectations/compiler/records/nested_record_2_fail.out new file mode 100644 index 0000000000..1ff3e45459 --- /dev/null +++ b/tests/expectations/compiler/records/nested_record_2_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372055]: A record cannot contain a tuple.\n --> compiler-test:8:9\n |\n 8 | foo: (Foo, Foo),\n | ^^^\nError [ETYC0372029]: A struct or record cannot contain another record.\n --> compiler-test:8:9\n |\n 8 | foo: (Foo, Foo),\n | ^^^\n |\n = Remove the record `Foo` from `Token2`.\nError [ETYC0372029]: A struct or record cannot contain another record.\n --> compiler-test:8:9\n |\n 8 | foo: (Foo, Foo),\n | ^^^\n |\n = Remove the record `Foo` from `Token2`.\n" diff --git a/tests/expectations/compiler/records/nested_record_3_fail.out b/tests/expectations/compiler/records/nested_record_3_fail.out new file mode 100644 index 0000000000..a63b32f138 --- /dev/null +++ b/tests/expectations/compiler/records/nested_record_3_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372029]: A struct or record cannot contain another record.\n --> compiler-test:12:9\n |\n 12 | bar: Foo,\n | ^^^\n |\n = Remove the record `Foo` from `Bar`.\n" diff --git a/tests/expectations/compiler/records/nested_record_4_fail.out b/tests/expectations/compiler/records/nested_record_4_fail.out new file mode 100644 index 0000000000..61485f0ccc --- /dev/null +++ b/tests/expectations/compiler/records/nested_record_4_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372055]: A record cannot contain a tuple.\n --> compiler-test:7:9\n |\n 7 | bar: (Bar, Bar),\n | ^^^\nError [ETYC0372055]: A struct cannot contain a tuple.\n --> compiler-test:11:9\n |\n 11 | bar: (Token, Token),\n | ^^^\nError [ETYC0372029]: A struct or record cannot contain another record.\n --> compiler-test:11:9\n |\n 11 | bar: (Token, Token),\n | ^^^\n |\n = Remove the record `Token` from `Bar`.\nError [ETYC0372029]: A struct or record cannot contain another record.\n --> compiler-test:11:9\n |\n 11 | bar: (Token, Token),\n | ^^^\n |\n = Remove the record `Token` from `Bar`.\n" diff --git a/tests/expectations/compiler/records/no_owner_fail.out b/tests/expectations/compiler/records/no_owner_fail.out new file mode 100644 index 0000000000..aaa4223708 --- /dev/null +++ b/tests/expectations/compiler/records/no_owner_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372019]: The `record` type requires the variable `owner: address`.\n --> compiler-test:5:5\n |\n 5 | record Token {\n 6 | // The Aleo balance (in gates).\n 7 | gates: u64,\n 8 | // The token amount.\n 9 | amount: u64,\n 10 | }\n | ^\n" diff --git a/tests/expectations/compiler/records/owner_wrong_ty.out b/tests/expectations/compiler/records/owner_wrong_ty.out new file mode 100644 index 0000000000..08715447d6 --- /dev/null +++ b/tests/expectations/compiler/records/owner_wrong_ty.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372020]: The field `owner` in a `record` must have type `address`.\n --> compiler-test:5:5\n |\n 5 | record Token {\n 6 | gates: u64,\n 7 | owner: bool,\n 8 | }\n | ^\n" diff --git a/tests/expectations/compiler/records/record_declaration_out_of_order.out b/tests/expectations/compiler/records/record_declaration_out_of_order.out new file mode 100644 index 0000000000..22304e8c2d --- /dev/null +++ b/tests/expectations/compiler/records/record_declaration_out_of_order.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 2752eaa8193dc950ae07dbd8277c03fb924546879912afdc7c4709eb92155a1d + unrolled_ast: 2752eaa8193dc950ae07dbd8277c03fb924546879912afdc7c4709eb92155a1d + ssa_ast: 03392a93fef2cf4ac477a5850335d8a37939903c92ea49e58974ac0573dd447a + flattened_ast: ea4f399821484f56da2ed384f7530428dcf91f5dfd227c83a785d6a50f33167f + inlined_ast: ea4f399821484f56da2ed384f7530428dcf91f5dfd227c83a785d6a50f33167f + dce_ast: ea4f399821484f56da2ed384f7530428dcf91f5dfd227c83a785d6a50f33167f + bytecode: e6c7836da70dcac19600a14bc49655ff3aff5f254ca77a24b39564a3987cdb7f diff --git a/tests/expectations/compiler/records/record_init_out_of_order.out b/tests/expectations/compiler/records/record_init_out_of_order.out new file mode 100644 index 0000000000..b010c1ec1e --- /dev/null +++ b/tests/expectations/compiler/records/record_init_out_of_order.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 20ad25142425e428387351b1eae95763cd2bafc2aea81270944cca08c058ece4 + unrolled_ast: 20ad25142425e428387351b1eae95763cd2bafc2aea81270944cca08c058ece4 + ssa_ast: a87e55fe349912264137c0ac31434a9b0623c8701997d6930ab6e3e04f67bbe3 + flattened_ast: 265092b725660652360db1d5995f28356d800d264a512511dbc70d31068e4e77 + inlined_ast: 265092b725660652360db1d5995f28356d800d264a512511dbc70d31068e4e77 + dce_ast: 265092b725660652360db1d5995f28356d800d264a512511dbc70d31068e4e77 + bytecode: 29844f1ea8a798be999d7a958052e759df9664aa3efb0d17a92534caa532ce89 diff --git a/tests/expectations/compiler/records/record_with_visibility.out b/tests/expectations/compiler/records/record_with_visibility.out new file mode 100644 index 0000000000..ff330fd7ef --- /dev/null +++ b/tests/expectations/compiler/records/record_with_visibility.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: e48fe7856ecd5c90b2e8d425feb01da0f0876cca5385a8d1757beb5cbbb63564 + unrolled_ast: e48fe7856ecd5c90b2e8d425feb01da0f0876cca5385a8d1757beb5cbbb63564 + ssa_ast: f32921e1ad3a516b4b01cf14c25416dac730e600fdc85c7d35328a4e5e74d62c + flattened_ast: 365d9ac45a96dfdb3fd84bd8d01e0e0ace194c61fb9acf901756cea7c7be402b + inlined_ast: 365d9ac45a96dfdb3fd84bd8d01e0e0ace194c61fb9acf901756cea7c7be402b + dce_ast: 365d9ac45a96dfdb3fd84bd8d01e0e0ace194c61fb9acf901756cea7c7be402b + bytecode: 8df822f8d2b35654339ce482dcd912e372b04fc50f2d2f2b2329dadf694d583b diff --git a/tests/expectations/compiler/records/return_record_instead_of_unit_fail.out b/tests/expectations/compiler/records/return_record_instead_of_unit_fail.out new file mode 100644 index 0000000000..fe213d4d10 --- /dev/null +++ b/tests/expectations/compiler/records/return_record_instead_of_unit_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372003]: Expected type `()` but type `test_credits` was found\n --> compiler-test:11:16\n |\n 11 | return test_credits {\n | ^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/scalar/add.out b/tests/expectations/compiler/scalar/add.out new file mode 100644 index 0000000000..e34afa3c4f --- /dev/null +++ b/tests/expectations/compiler/scalar/add.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 1cfbf4c61141ec0b5130effd58114aaabe8aba3b1bc08710f1401a32d1f7663d + unrolled_ast: 1cfbf4c61141ec0b5130effd58114aaabe8aba3b1bc08710f1401a32d1f7663d + ssa_ast: 5bd8cd0fa84cf78575401a1a49bcd89c561c39fd418b009679ebbd177a22da22 + flattened_ast: 66c385a68f2d8920acae616ef4eea69562589dcd25e2afb46223209ed7c637ac + inlined_ast: 66c385a68f2d8920acae616ef4eea69562589dcd25e2afb46223209ed7c637ac + dce_ast: 66c385a68f2d8920acae616ef4eea69562589dcd25e2afb46223209ed7c637ac + bytecode: 90d57d70bb80ee3a60cbf18b20fe23889d36521d4d7e0fc2d478846deb16f1e2 diff --git a/tests/expectations/compiler/scalar/cmp.out b/tests/expectations/compiler/scalar/cmp.out new file mode 100644 index 0000000000..ef6630b3af --- /dev/null +++ b/tests/expectations/compiler/scalar/cmp.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: fc642c52770495107e5c2dd10dc283b0a38006c192165b543c7d4d9f6f7945b4 + unrolled_ast: fc642c52770495107e5c2dd10dc283b0a38006c192165b543c7d4d9f6f7945b4 + ssa_ast: ea9a3015ee16aa3d249a5c7cc5275cf45e8971bae6cc36d9f925704c70cdacae + flattened_ast: 20fcf84c0609382e9f3b7732385f891dfbdd645ebfa77b8c96df43d9259756e6 + inlined_ast: 20fcf84c0609382e9f3b7732385f891dfbdd645ebfa77b8c96df43d9259756e6 + dce_ast: e9d76a2420e61ddb55eef2c1a232febfa354ec74db9d0992fc7d4adb2ebc3f04 + bytecode: 2721c20330bb432ebe9b1d5e55b303d029c3dad391b12899ad4a76fd4c858a8b diff --git a/tests/expectations/compiler/scalar/div_fail.out b/tests/expectations/compiler/scalar/div_fail.out new file mode 100644 index 0000000000..c23d7a5ee7 --- /dev/null +++ b/tests/expectations/compiler/scalar/div_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372007]: Expected one type from `field, i8, i16, i32, i64, i128, u8, u16, u32, u64, u128`, but got `scalar`\n --> compiler-test:5:16\n |\n 5 | return a / b; // division not supported for scalar types.\n | ^^^^^\n" diff --git a/tests/expectations/compiler/scalar/eq.out b/tests/expectations/compiler/scalar/eq.out new file mode 100644 index 0000000000..88437cf48f --- /dev/null +++ b/tests/expectations/compiler/scalar/eq.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 3b983b36536a299812563e4fec41806281a2d421a3e5cc28b783380eb5bd8876 + unrolled_ast: 3b983b36536a299812563e4fec41806281a2d421a3e5cc28b783380eb5bd8876 + ssa_ast: 453ec10c1cb464ab72b290c22294dbd66c025b52c00329db62df4848eaf7796e + flattened_ast: 29e10bdcfb654d912859e17adb3a177d7338a31f9fbaa805f38189e477573723 + inlined_ast: 29e10bdcfb654d912859e17adb3a177d7338a31f9fbaa805f38189e477573723 + dce_ast: 817bf899c74a18ef0626ed1dc9c7087b652b64ff94d6919ab5490a8b74bd6f7d + bytecode: 05f52c0501337bb4bec868c077714c783e28915a315992bee908d225f070f442 diff --git a/tests/expectations/compiler/scalar/no_space_between_literal.out b/tests/expectations/compiler/scalar/no_space_between_literal.out new file mode 100644 index 0000000000..bb9aea3944 --- /dev/null +++ b/tests/expectations/compiler/scalar/no_space_between_literal.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected : -- found '='\n --> compiler-test:5:13\n |\n 5 | let f = 1 scalar;\n | ^" diff --git a/tests/expectations/compiler/scalar/operator_methods.out b/tests/expectations/compiler/scalar/operator_methods.out new file mode 100644 index 0000000000..1efe0f18b9 --- /dev/null +++ b/tests/expectations/compiler/scalar/operator_methods.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 1db046563517e701f758da93f440f92bfbaa10f365c087bdaca1cd90d3e120fd + unrolled_ast: 1db046563517e701f758da93f440f92bfbaa10f365c087bdaca1cd90d3e120fd + ssa_ast: 19ab9c23e39040b2261fab680c480e06a0ba3c169b4240e19ca859da4c492954 + flattened_ast: 9ee0deed6354215705d9cfbf9988f1ff5f690b3975ff7507e71b087ca721ba45 + inlined_ast: 9ee0deed6354215705d9cfbf9988f1ff5f690b3975ff7507e71b087ca721ba45 + dce_ast: eae5864c201510c91146eb92667e3d8b4c75ee2ecf74857fe07fa6ab4468f0c2 + bytecode: 834bb21bd429219eb98d5c514ff9bf07d562608a4d2db5257fea2a18cef3c4e8 diff --git a/tests/expectations/compiler/scalar/scalar.out b/tests/expectations/compiler/scalar/scalar.out new file mode 100644 index 0000000000..1fad8f6b58 --- /dev/null +++ b/tests/expectations/compiler/scalar/scalar.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: c2694a6c4fc67982f2a07c41033b1971bdd753a06521fe486b046b1d10c7ea83 + unrolled_ast: c2694a6c4fc67982f2a07c41033b1971bdd753a06521fe486b046b1d10c7ea83 + ssa_ast: 94a3426e45f50abb239cd28293eba762799147a1cb27de7a85e44a7baeaec6c4 + flattened_ast: dd1660f42146670d21481f129b67d6a34cd534ff852a83bc850e56ebbc28ce75 + inlined_ast: dd1660f42146670d21481f129b67d6a34cd534ff852a83bc850e56ebbc28ce75 + dce_ast: dd1660f42146670d21481f129b67d6a34cd534ff852a83bc850e56ebbc28ce75 + bytecode: 59d4999dee3d39ffa16d0f41c6be0ef11d294b63ab99f9950b7213badcd4a2f5 diff --git a/tests/expectations/compiler/scalar/square_root_fail.out b/tests/expectations/compiler/scalar/square_root_fail.out new file mode 100644 index 0000000000..2ed5c58f7d --- /dev/null +++ b/tests/expectations/compiler/scalar/square_root_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372007]: Expected one type from `field`, but got `scalar`\n --> compiler-test:5:16\n |\n 5 | return a.square_root(); // square root not supported for scalar types.\n | ^^^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/scalar/ternary.out b/tests/expectations/compiler/scalar/ternary.out new file mode 100644 index 0000000000..da0e850886 --- /dev/null +++ b/tests/expectations/compiler/scalar/ternary.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: ed68b645ecc50fd6f81109b5b3b5d12182520e800bb8c970e41c6e15db87c516 + unrolled_ast: ed68b645ecc50fd6f81109b5b3b5d12182520e800bb8c970e41c6e15db87c516 + ssa_ast: ff877cc70cf128cc14879497f9309d1f6807609f9395bb651a6373e58d69f891 + flattened_ast: 63a4c22fdfb921e2a65cc597d72586ea554a579c4729ba9982546e6273aa0760 + inlined_ast: 63a4c22fdfb921e2a65cc597d72586ea554a579c4729ba9982546e6273aa0760 + dce_ast: 63a4c22fdfb921e2a65cc597d72586ea554a579c4729ba9982546e6273aa0760 + bytecode: b43493bafe4f9d08e8dc30a46f254b482eded7ba195ee4b06a546bd844cfe44c diff --git a/tests/expectations/compiler/statements/all_loops_fail.out b/tests/expectations/compiler/statements/all_loops_fail.out new file mode 100644 index 0000000000..7d9757173f --- /dev/null +++ b/tests/expectations/compiler/statements/all_loops_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370009]: unexpected string: expected 'expression', found '='\n --> compiler-test:16:30\n |\n 16 | for a: u32 in 10u32..=0u32 {\n | ^" diff --git a/tests/expectations/compiler/statements/assign.out b/tests/expectations/compiler/statements/assign.out new file mode 100644 index 0000000000..f7608b82ec --- /dev/null +++ b/tests/expectations/compiler/statements/assign.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 73306dda9c8185ea39ed6d3cd1cb36f687d644fbf7cc72a12f54f8e6612226a4 + unrolled_ast: 73306dda9c8185ea39ed6d3cd1cb36f687d644fbf7cc72a12f54f8e6612226a4 + ssa_ast: 396b5ec2b04ec5a616cd77e77ec87ed85408e9049cab4cbec2f857a9b8d4618d + flattened_ast: b48b0e8010449366b79a8461c2dd18692def73afffc836c6271d3535af0f27d3 + inlined_ast: b48b0e8010449366b79a8461c2dd18692def73afffc836c6271d3535af0f27d3 + dce_ast: b48b0e8010449366b79a8461c2dd18692def73afffc836c6271d3535af0f27d3 + bytecode: 2ea7539936b0c489d167990b0abe8ba6b864ef981a8d77e97be46df11d7f78f5 diff --git a/tests/expectations/compiler/statements/assign_fail.out b/tests/expectations/compiler/statements/assign_fail.out new file mode 100644 index 0000000000..0a4be33ebc --- /dev/null +++ b/tests/expectations/compiler/statements/assign_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370016]: Could not lex the following content: `🦀`.\n" diff --git a/tests/expectations/compiler/statements/assign_ternary.out b/tests/expectations/compiler/statements/assign_ternary.out new file mode 100644 index 0000000000..0b965c1356 --- /dev/null +++ b/tests/expectations/compiler/statements/assign_ternary.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372003]: Expected type `boolean` but type `u32` was found\n --> compiler-test:5:30\n |\n 5 | let x: bool = true ? x: true;\n | ^\nError [EAST0372009]: variable `x` shadowed by\n --> compiler-test:5:13\n |\n 5 | let x: bool = true ? x: true;\n | ^\n" diff --git a/tests/expectations/compiler/statements/block.out b/tests/expectations/compiler/statements/block.out new file mode 100644 index 0000000000..915cba1ace --- /dev/null +++ b/tests/expectations/compiler/statements/block.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: f2049c3c5193550c9578ba06f3e8fb908242d86cef4f538b7d2403d6081e8eaa + unrolled_ast: f2049c3c5193550c9578ba06f3e8fb908242d86cef4f538b7d2403d6081e8eaa + ssa_ast: 487a535f5a8eabaed9219a6463b9f57241aa631d7cdac1f4eb3445b7edf740b1 + flattened_ast: db9d77759f6d3baabb009380e64aee2ccf47428e1a0093f48a23d31473366548 + inlined_ast: db9d77759f6d3baabb009380e64aee2ccf47428e1a0093f48a23d31473366548 + dce_ast: db9d77759f6d3baabb009380e64aee2ccf47428e1a0093f48a23d31473366548 + bytecode: ce399e998b6e09f8bc8733bfa797b1fcd0680de149fa4a3e21d0be4be7987f4b diff --git a/tests/expectations/compiler/statements/chain.out b/tests/expectations/compiler/statements/chain.out new file mode 100644 index 0000000000..13260fcdc3 --- /dev/null +++ b/tests/expectations/compiler/statements/chain.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: fbcd232837a4d65205e0b4c78f693c65f34c1f5e8e997bc237d24f67aa86c637 + unrolled_ast: fbcd232837a4d65205e0b4c78f693c65f34c1f5e8e997bc237d24f67aa86c637 + ssa_ast: b364518cd8e798730dc7212e50ed4e7c3dba6a95bb2f9c02f75b0beecee25129 + flattened_ast: 416e3b4f88d5a2d9356296356d07c44e4a0083f47a3dc429bb81c9ae9d2c27d8 + inlined_ast: 416e3b4f88d5a2d9356296356d07c44e4a0083f47a3dc429bb81c9ae9d2c27d8 + dce_ast: 7892f6814b57a5d12129a0f4542b8dc8b9a32d110b467a3080d8b865e7e34fe9 + bytecode: b26e7efafe9624ccaa5ebe73afb04f718bffd1dd4094724a1a040dffd96ee6e8 diff --git a/tests/expectations/compiler/statements/compare_diff_types_fail.out b/tests/expectations/compiler/statements/compare_diff_types_fail.out new file mode 100644 index 0000000000..922aa4ab45 --- /dev/null +++ b/tests/expectations/compiler/statements/compare_diff_types_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372003]: Expected type `u8` but type `i8` was found\n --> compiler-test:5:23\n |\n 5 | let b: bool = a == 1u8;\n | ^^^^^^^^\nError [ETYC0372003]: Expected type `u8` but type `i8` was found\n --> compiler-test:6:23\n |\n 6 | let c: bool = a != 1u8;\n | ^^^^^^^^\nError [ETYC0372003]: Expected type `u8` but type `i8` was found\n --> compiler-test:7:23\n |\n 7 | let d: bool = a > 1u8;\n | ^^^^^^^\nError [ETYC0372003]: Expected type `u8` but type `i8` was found\n --> compiler-test:8:23\n |\n 8 | let e: bool = a < 1u8;\n | ^^^^^^^\nError [ETYC0372003]: Expected type `u8` but type `i8` was found\n --> compiler-test:9:23\n |\n 9 | let f: bool = a >= 1u8;\n | ^^^^^^^^\nError [ETYC0372003]: Expected type `u8` but type `i8` was found\n --> compiler-test:10:23\n |\n 10 | let g: bool = a <= 1u8;\n | ^^^^^^^^\nError [ETYC0372007]: Expected one type from `i8`, but got `u8`\n --> compiler-test:11:26\n |\n 11 | let h: u32 = a * 1u8;\n | ^^^\nError [ETYC0372007]: Expected one type from `i8`, but got `u32`\n --> compiler-test:11:22\n |\n 11 | let h: u32 = a * 1u8;\n | ^^^^^^^\n" diff --git a/tests/expectations/compiler/statements/compare_invalid_negates_fail.out b/tests/expectations/compiler/statements/compare_invalid_negates_fail.out new file mode 100644 index 0000000000..51d0de2746 --- /dev/null +++ b/tests/expectations/compiler/statements/compare_invalid_negates_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:5:24\n |\n 5 | let b: bool = -a == -1u8;\n | ^\nError [ETYC0372008]: The value -1 is not a valid `u8`\n --> compiler-test:5:29\n |\n 5 | let b: bool = -a == -1u8;\n | ^^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:6:24\n |\n 6 | let c: bool = -a > -1u8;\n | ^\nError [ETYC0372008]: The value -1 is not a valid `u8`\n --> compiler-test:6:28\n |\n 6 | let c: bool = -a > -1u8;\n | ^^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:7:24\n |\n 7 | let d: bool = -a < -1u8;\n | ^\nError [ETYC0372008]: The value -1 is not a valid `u8`\n --> compiler-test:7:28\n |\n 7 | let d: bool = -a < -1u8;\n | ^^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:8:24\n |\n 8 | let e: bool = -a >= -1u8;\n | ^\nError [ETYC0372008]: The value -1 is not a valid `u8`\n --> compiler-test:8:29\n |\n 8 | let e: bool = -a >= -1u8;\n | ^^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:9:24\n |\n 9 | let f: bool = -a <= -1u8;\n | ^\nError [ETYC0372008]: The value -1 is not a valid `u8`\n --> compiler-test:9:29\n |\n 9 | let f: bool = -a <= -1u8;\n | ^^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:10:22\n |\n 10 | let g: u8 = -a * -1u8;\n | ^\nError [ETYC0372008]: The value -1 is not a valid `u8`\n --> compiler-test:10:26\n |\n 10 | let g: u8 = -a * -1u8;\n | ^^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:11:22\n |\n 11 | let h: u8 = -a ** -1u8;\n | ^\nError [ETYC0372008]: The value -1 is not a valid `u8`\n --> compiler-test:11:27\n |\n 11 | let h: u8 = -a ** -1u8;\n | ^^^^\n" diff --git a/tests/expectations/compiler/statements/duplicate_variable.out b/tests/expectations/compiler/statements/duplicate_variable.out new file mode 100644 index 0000000000..de88f74650 --- /dev/null +++ b/tests/expectations/compiler/statements/duplicate_variable.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EAST0372009]: variable `x` shadowed by\n --> compiler-test:6:12\n |\n 6 | \tlet x: bool = true;\n | ^\n" diff --git a/tests/expectations/compiler/statements/expr_statement.out b/tests/expectations/compiler/statements/expr_statement.out new file mode 100644 index 0000000000..fef80cfcad --- /dev/null +++ b/tests/expectations/compiler/statements/expr_statement.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 91ab2532658863188be28710a7d3a772e9e240408352e424fc430149d7a85a3f + unrolled_ast: 91ab2532658863188be28710a7d3a772e9e240408352e424fc430149d7a85a3f + ssa_ast: 6aac0bfb6e7d744e1e52a3614439d51625f87bf57141b55498173f644b5b315e + flattened_ast: 38b34a5c44c130267c42f641f5d37fcf695573f06b128f01dd3070c6552046df + inlined_ast: 38b34a5c44c130267c42f641f5d37fcf695573f06b128f01dd3070c6552046df + dce_ast: 38b34a5c44c130267c42f641f5d37fcf695573f06b128f01dd3070c6552046df + bytecode: b55cf7fc6a466a6a3c045ce7c5a62416ff39e9f195f7afc5cebce98a9149031c diff --git a/tests/expectations/compiler/statements/expr_statement_fail.out b/tests/expectations/compiler/statements/expr_statement_fail.out new file mode 100644 index 0000000000..affd90e42a --- /dev/null +++ b/tests/expectations/compiler/statements/expr_statement_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EAST0372006]: function `foo` shadowed by\n --> compiler-test:9:46\n |\n 9 | transition foo(flag: bool, a: u8, b: u8, foo: Foo, i: i8) -> u8 {\n | ^^^\nError [ETYC0372060]: An expression statement must be a function call.\n --> compiler-test:10:9\n |\n 10 | a + b;\n | ^^^^^^\nError [ETYC0372060]: An expression statement must be a function call.\n --> compiler-test:11:9\n |\n 11 | flag ? a : b;\n | ^^^^^^^^^^^^^\nError [ETYC0372060]: An expression statement must be a function call.\n --> compiler-test:12:9\n |\n 12 | foo.a;\n | ^^^^^^\nError [ETYC0372060]: An expression statement must be a function call.\n --> compiler-test:13:9\n |\n 13 | Foo {\n 14 | a: a,\n 15 | };\n | ^^\nError [ETYC0372060]: An expression statement must be a function call.\n --> compiler-test:16:9\n |\n 16 | a;\n | ^^\nError [ETYC0372060]: An expression statement must be a function call.\n --> compiler-test:17:9\n |\n 17 | 1u8;\n | ^^^^\nError [ETYC0372060]: An expression statement must be a function call.\n --> compiler-test:18:9\n |\n 18 | -i8;\n | ^^^^\nError [ETYC0372060]: An expression statement must be a function call.\n --> compiler-test:19:9\n |\n 19 | ();\n | ^^^\n" diff --git a/tests/expectations/compiler/statements/iteration_basic.out b/tests/expectations/compiler/statements/iteration_basic.out new file mode 100644 index 0000000000..6dca69916d --- /dev/null +++ b/tests/expectations/compiler/statements/iteration_basic.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: e39d5a2d5baf725c211971a7172531a82a5428c6ee68904f2e53ea872eb41e96 + unrolled_ast: dcc96d1a32ce402ffe8136245c89a6cc087c101e650ad2e5c9d5afb13022cca0 + ssa_ast: e25906e5105564137bd9ae892c5bcfaa74283905af0ae26bcd288aad15abfb1e + flattened_ast: d2cadd421c1f9dd196e37638cfb78a2230164a4a32e923e5e3a87cde4b73dcab + inlined_ast: d2cadd421c1f9dd196e37638cfb78a2230164a4a32e923e5e3a87cde4b73dcab + dce_ast: c83a2f8389a527179b74583a1538ce2e22a195a84e2b3a3f1bddd059c2b8947d + bytecode: d81714c646dc5825b148fba33931cabbb7a60c0e48cd8d7154f0906092f7849a diff --git a/tests/expectations/compiler/statements/iteration_bound_too_large_fail.out b/tests/expectations/compiler/statements/iteration_bound_too_large_fail.out new file mode 100644 index 0000000000..966a8f720d --- /dev/null +++ b/tests/expectations/compiler/statements/iteration_bound_too_large_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372008]: The value 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000 is not a valid `u64`\n --> compiler-test:7:28\n |\n 7 | for i:u64 in 0u64..1000000000000000000000000000000000000000000000000000000000000000000000000000000000000u64 {\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/statements/iteration_nested.out b/tests/expectations/compiler/statements/iteration_nested.out new file mode 100644 index 0000000000..01d365e3b5 --- /dev/null +++ b/tests/expectations/compiler/statements/iteration_nested.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 98bd584397eb367fd78528d76ab8d814626adb2108028726b2c2905fa1d9698f + unrolled_ast: 52b3461d444d042062b6a62f2ddd48d5c5ee5c57b4a1036f1881027e471037f8 + ssa_ast: f45378ffec8e1493464c7f8986e29bf8bdd2606a365205373cb38b8d0c64fdae + flattened_ast: a16e17188c10a8fd3ad2f430327afa4b110412a78877d28f837cb85e7f046abd + inlined_ast: a16e17188c10a8fd3ad2f430327afa4b110412a78877d28f837cb85e7f046abd + dce_ast: 8fb41a1f4f3ccc8cfd845c4a8fa7847e990cb6f05d8f30dcb2caa22ca269aa4f + bytecode: a3b17d7db0a6f5298cf87c19baf24046e97725bf1f92177d7251bd85014b18a1 diff --git a/tests/expectations/compiler/statements/loop_non_literal_bound_fail.out b/tests/expectations/compiler/statements/loop_non_literal_bound_fail.out new file mode 100644 index 0000000000..bd6b2e6f8e --- /dev/null +++ b/tests/expectations/compiler/statements/loop_non_literal_bound_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372049]: Loop bound must be a literal.\n --> compiler-test:12:28\n |\n 12 | for i:u64 in 0u64..amount {\n | ^^^^^^\n" diff --git a/tests/expectations/compiler/statements/loop_returns_fail.out b/tests/expectations/compiler/statements/loop_returns_fail.out new file mode 100644 index 0000000000..d976ea12df --- /dev/null +++ b/tests/expectations/compiler/statements/loop_returns_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372026]: Loop body contains a return statement or always returns.\n --> compiler-test:6:9\n |\n 6 | for i: u32 in 0u32..9u32 {\n 7 | return false;\n 8 | }\n | ^\n |\n = Remove the code in the loop body that always returns.\nError [ETYC0372026]: Loop body contains a return statement or always returns.\n --> compiler-test:10:9\n |\n 10 | for i: u32 in 0u32..9u32 {\n 11 | if (x == 0u32) {\n 12 | return false;\n 13 | } else {\n 14 | return true;\n 15 | }\n 16 | }\n | ^\n |\n = Remove the code in the loop body that always returns.\n" diff --git a/tests/expectations/compiler/statements/multiple_returns.out b/tests/expectations/compiler/statements/multiple_returns.out new file mode 100644 index 0000000000..cfd4f2ac17 --- /dev/null +++ b/tests/expectations/compiler/statements/multiple_returns.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 0d35d54b5fdd8de11f8d93f0eb285b765ccff47e37e4d03a840ec4f040829eb7 + unrolled_ast: 0d35d54b5fdd8de11f8d93f0eb285b765ccff47e37e4d03a840ec4f040829eb7 + ssa_ast: 0adeb2b905205041482fe24d7ae318dbe28cee031399aa085edf88b5449788d8 + flattened_ast: 0821cabc6ecf6cb4aa8b4ae63e7e8dafa0bd151dfa4e7a3a3eb9a1c590554dd8 + inlined_ast: 0821cabc6ecf6cb4aa8b4ae63e7e8dafa0bd151dfa4e7a3a3eb9a1c590554dd8 + dce_ast: 0821cabc6ecf6cb4aa8b4ae63e7e8dafa0bd151dfa4e7a3a3eb9a1c590554dd8 + bytecode: c723974f88ddcec03425c959564231cbc891a32389e9ed5ccb04f582fce98ced diff --git a/tests/expectations/compiler/statements/multiple_returns_in_one_block_fail.out b/tests/expectations/compiler/statements/multiple_returns_in_one_block_fail.out new file mode 100644 index 0000000000..87a22b9d6f --- /dev/null +++ b/tests/expectations/compiler/statements/multiple_returns_in_one_block_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372025]: Cannot reach the following statement.\n --> compiler-test:6:9\n |\n 6 | let double: u32 = x + x;\n | ^^^^^^^^^^^^^^^^^^^^^^^\n |\n = Remove the unreachable code.\nError [ETYC0372025]: Cannot reach the following statement.\n --> compiler-test:7:9\n |\n 7 | return double;\n | ^^^^^^^^^^^^^^\n |\n = Remove the unreachable code.\n" diff --git a/tests/expectations/compiler/statements/mutate.out b/tests/expectations/compiler/statements/mutate.out new file mode 100644 index 0000000000..c73fe5bdd6 --- /dev/null +++ b/tests/expectations/compiler/statements/mutate.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 54167d71dcc69af84eafed38c7944c4c53061ebc54947f1782b57d3d128af8b1 + unrolled_ast: 54167d71dcc69af84eafed38c7944c4c53061ebc54947f1782b57d3d128af8b1 + ssa_ast: f72f10adda09e7528112f83455e59b855f4801c1714dab3018eb34ecb59adf18 + flattened_ast: e3637632648521485ca79666a402fb86ca8e652c34cf7cd2cdc2093ba6ef2daf + inlined_ast: e3637632648521485ca79666a402fb86ca8e652c34cf7cd2cdc2093ba6ef2daf + dce_ast: b4868a55b46cafd8fc90deef20739b5790c5d7697899afb6f1d27d45224aeb85 + bytecode: cc5b20b180a055db2277f296cff25f9c0fdfbf4ae278d88425bdd7481ba12592 diff --git a/tests/expectations/compiler/statements/non_existant_var_exp_fail.out b/tests/expectations/compiler/statements/non_existant_var_exp_fail.out new file mode 100644 index 0000000000..2e8621fb0f --- /dev/null +++ b/tests/expectations/compiler/statements/non_existant_var_exp_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372005]: Unknown variable `z`\n --> compiler-test:5:23\n |\n 5 | \tlet b: u8 = 1u8**z;\n | ^\n" diff --git a/tests/expectations/compiler/statements/non_existant_vars_mul_fail.out b/tests/expectations/compiler/statements/non_existant_vars_mul_fail.out new file mode 100644 index 0000000000..38b835987b --- /dev/null +++ b/tests/expectations/compiler/statements/non_existant_vars_mul_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372005]: Unknown variable `x`\n --> compiler-test:5:18\n |\n 5 | \tlet b: u8 = x*z;\n | ^\nError [ETYC0372005]: Unknown variable `z`\n --> compiler-test:5:20\n |\n 5 | \tlet b: u8 = x*z;\n | ^\nError [ETYC0372004]: Could not determine the type of `x`\n --> compiler-test:5:18\n |\n 5 | \tlet b: u8 = x*z;\n | ^\nError [ETYC0372004]: Could not determine the type of `z`\n --> compiler-test:5:20\n |\n 5 | \tlet b: u8 = x*z;\n | ^\n" diff --git a/tests/expectations/compiler/statements/operations/add_assign.out b/tests/expectations/compiler/statements/operations/add_assign.out new file mode 100644 index 0000000000..3bfd619258 --- /dev/null +++ b/tests/expectations/compiler/statements/operations/add_assign.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: ef0196ae468b3e4a5f52581ece18c8f06f9c8d788b38430ed5e72f5f3e871838 + unrolled_ast: ef0196ae468b3e4a5f52581ece18c8f06f9c8d788b38430ed5e72f5f3e871838 + ssa_ast: 406f3fe8c927d05a81920cd582960192c4d928ff1497475076840b5e8064f402 + flattened_ast: 24f08a0cf3f2bbe162529bc4098f03afd7f23d04870657e6df83c89573afc06a + inlined_ast: 24f08a0cf3f2bbe162529bc4098f03afd7f23d04870657e6df83c89573afc06a + dce_ast: 24f08a0cf3f2bbe162529bc4098f03afd7f23d04870657e6df83c89573afc06a + bytecode: 205bb73339d403ed74a8caee04e44c4092e998410ac23fe675e57c2dc28b52ea diff --git a/tests/expectations/compiler/statements/operations/and_assign.out b/tests/expectations/compiler/statements/operations/and_assign.out new file mode 100644 index 0000000000..2cae3d3779 --- /dev/null +++ b/tests/expectations/compiler/statements/operations/and_assign.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 347cb3c52da22d271ea6960b303016f697b6d91362abc827d91255519bf562a6 + unrolled_ast: 347cb3c52da22d271ea6960b303016f697b6d91362abc827d91255519bf562a6 + ssa_ast: 14107612d87ea4fddbf03cd776ff65ed091e272664a3b87e7152a1095c44a599 + flattened_ast: 2385f395ff5bef8b7cfe44d82d4c63cd18d36f5443a9d9304ddf7053a7a57c0d + inlined_ast: 2385f395ff5bef8b7cfe44d82d4c63cd18d36f5443a9d9304ddf7053a7a57c0d + dce_ast: 2385f395ff5bef8b7cfe44d82d4c63cd18d36f5443a9d9304ddf7053a7a57c0d + bytecode: 81396ad998cb48a02cd66339e769582c2dc445fa2f78d64ac28b78dd00be64c4 diff --git a/tests/expectations/compiler/statements/operations/bitand_assign.out b/tests/expectations/compiler/statements/operations/bitand_assign.out new file mode 100644 index 0000000000..b87194e931 --- /dev/null +++ b/tests/expectations/compiler/statements/operations/bitand_assign.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: e90b7f4fe0b8dc3c4ee753ad9772e8b13ea1c01bc9cfdd74f217a33b41dc7440 + unrolled_ast: e90b7f4fe0b8dc3c4ee753ad9772e8b13ea1c01bc9cfdd74f217a33b41dc7440 + ssa_ast: ea4f3838276a1a5bbac90ff2229db823e47c4484bf159a27088f249e95095e7a + flattened_ast: 05708b8d3ba54ec6f0371a756c31628b14775b01fa24ca48b52f38f2328254a7 + inlined_ast: 05708b8d3ba54ec6f0371a756c31628b14775b01fa24ca48b52f38f2328254a7 + dce_ast: 05708b8d3ba54ec6f0371a756c31628b14775b01fa24ca48b52f38f2328254a7 + bytecode: 351e6362887a12504057143cc97596fbbd42153d0a64f338eb57641e84343159 diff --git a/tests/expectations/compiler/statements/operations/bitor_assign.out b/tests/expectations/compiler/statements/operations/bitor_assign.out new file mode 100644 index 0000000000..4e680942ca --- /dev/null +++ b/tests/expectations/compiler/statements/operations/bitor_assign.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: fa779000b25964ee8afb1a3b50724147f0c15b4809fedd8b2b8b4d55938b0fad + unrolled_ast: fa779000b25964ee8afb1a3b50724147f0c15b4809fedd8b2b8b4d55938b0fad + ssa_ast: 285f58025d4e93204038f87122d18618519ac02791b344e087be0beb536679b4 + flattened_ast: 8e8de20ac44abc4c720772a57e9fee418fc4ab09118bc098790c078d9d6238c7 + inlined_ast: 8e8de20ac44abc4c720772a57e9fee418fc4ab09118bc098790c078d9d6238c7 + dce_ast: 8e8de20ac44abc4c720772a57e9fee418fc4ab09118bc098790c078d9d6238c7 + bytecode: 447d6082c0ca8f0c7c26a97e452e262649883e98cf4875b5c593da83c787901e diff --git a/tests/expectations/compiler/statements/operations/bitxor_assign.out b/tests/expectations/compiler/statements/operations/bitxor_assign.out new file mode 100644 index 0000000000..35d3c95b12 --- /dev/null +++ b/tests/expectations/compiler/statements/operations/bitxor_assign.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: fec4d3cdf1ec3f8a6a8583027f7186f02e37ac69aab519925556586d34f922c4 + unrolled_ast: fec4d3cdf1ec3f8a6a8583027f7186f02e37ac69aab519925556586d34f922c4 + ssa_ast: 1a6a9ae27d8bab993ec1ff948244d34e0cfb47464ce253b3ec3d51e5d72c9ca2 + flattened_ast: 95cf30aa11e1d695e89fa52aabe42059059eddfbf4daa89732cd58a824b27045 + inlined_ast: 95cf30aa11e1d695e89fa52aabe42059059eddfbf4daa89732cd58a824b27045 + dce_ast: 95cf30aa11e1d695e89fa52aabe42059059eddfbf4daa89732cd58a824b27045 + bytecode: fedca756e063b895f8cc4bf76f1d9d1c88ff1cf9f4b1208a725edde115f9b42a diff --git a/tests/expectations/compiler/statements/operations/div_assign.out b/tests/expectations/compiler/statements/operations/div_assign.out new file mode 100644 index 0000000000..dadc2c5428 --- /dev/null +++ b/tests/expectations/compiler/statements/operations/div_assign.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 6dae25d257b6a910a6439a56f8f9a0cf5d0f4a4dfa6fd300989ed43e82c77919 + unrolled_ast: 6dae25d257b6a910a6439a56f8f9a0cf5d0f4a4dfa6fd300989ed43e82c77919 + ssa_ast: d35eb23d5585362243c38d7aa6bdcbe9db8649b0a6f0658c7b04a7941bcced19 + flattened_ast: 27c6d6ef683b66eea49757a486eb2fad8e01162800ee65519062fe1f144d8723 + inlined_ast: 27c6d6ef683b66eea49757a486eb2fad8e01162800ee65519062fe1f144d8723 + dce_ast: 27c6d6ef683b66eea49757a486eb2fad8e01162800ee65519062fe1f144d8723 + bytecode: fb1dc12922cf851957984a8e2ee0dd72ee0fcff48ac8b0daf3443fa9fa2a4cd2 diff --git a/tests/expectations/compiler/statements/operations/mul_assign.out b/tests/expectations/compiler/statements/operations/mul_assign.out new file mode 100644 index 0000000000..b7c07f71b5 --- /dev/null +++ b/tests/expectations/compiler/statements/operations/mul_assign.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: e0d9f6856a4f338e60168e2cbb4f71ed81c48da9caf305231d87d080c8fde124 + unrolled_ast: e0d9f6856a4f338e60168e2cbb4f71ed81c48da9caf305231d87d080c8fde124 + ssa_ast: e33a956110373c8f1c0d160cf6c59d7b4cb20b232821d300c58006c25ee2cd92 + flattened_ast: b66f9c52a1da1f215c583239cce069e1ac0bcd69945ef7780cdfd55e585e26ed + inlined_ast: b66f9c52a1da1f215c583239cce069e1ac0bcd69945ef7780cdfd55e585e26ed + dce_ast: b66f9c52a1da1f215c583239cce069e1ac0bcd69945ef7780cdfd55e585e26ed + bytecode: b71e1622ce24f72e85d8bea2b611bbb30b73ba24acbcd0ce7c560d9e86906bfb diff --git a/tests/expectations/compiler/statements/operations/or_assign.out b/tests/expectations/compiler/statements/operations/or_assign.out new file mode 100644 index 0000000000..7786872470 --- /dev/null +++ b/tests/expectations/compiler/statements/operations/or_assign.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 2579d15b67853eaacce88986cfe8c2604a03a1f7384d1c9272019f74893e5de2 + unrolled_ast: 2579d15b67853eaacce88986cfe8c2604a03a1f7384d1c9272019f74893e5de2 + ssa_ast: 0aadaf5837c3b723a60741478b06a57ea70d49c9e8b685b9af333322278e3c4c + flattened_ast: 6a293e6919e8e2b2d5fb48404b9965c0107e3c93a657c7e9a5562de6e8d64984 + inlined_ast: 6a293e6919e8e2b2d5fb48404b9965c0107e3c93a657c7e9a5562de6e8d64984 + dce_ast: 6a293e6919e8e2b2d5fb48404b9965c0107e3c93a657c7e9a5562de6e8d64984 + bytecode: da955e601b890215b4c0e7b8c1a0f86e02f8069c33085a8897b6d976a7759139 diff --git a/tests/expectations/compiler/statements/operations/pow_assign.out b/tests/expectations/compiler/statements/operations/pow_assign.out new file mode 100644 index 0000000000..c7774a26eb --- /dev/null +++ b/tests/expectations/compiler/statements/operations/pow_assign.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 4868053eb3fafdfdb2202252885ff65312794e8ce9b5e2119f7b3f85cb42a4b4 + unrolled_ast: 4868053eb3fafdfdb2202252885ff65312794e8ce9b5e2119f7b3f85cb42a4b4 + ssa_ast: 7b1291f30c41cdb25c52b61c47a27c22142451c739a9704c931aa3d724396498 + flattened_ast: 9ab131136ab1ae59d8952d07ac7990337a3ae6a2f1d88d00f4b7152cc3786fa6 + inlined_ast: 9ab131136ab1ae59d8952d07ac7990337a3ae6a2f1d88d00f4b7152cc3786fa6 + dce_ast: 9ab131136ab1ae59d8952d07ac7990337a3ae6a2f1d88d00f4b7152cc3786fa6 + bytecode: 4108ac88f7fdefec52773508ff4e95349dce1f77b55123870ccf6bb1adedc423 diff --git a/tests/expectations/compiler/statements/operations/rem_assign.out b/tests/expectations/compiler/statements/operations/rem_assign.out new file mode 100644 index 0000000000..6e8a5e89d0 --- /dev/null +++ b/tests/expectations/compiler/statements/operations/rem_assign.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 336265cd7129cba865898735d54b9c20073bff52696ba6c212ae8a6e66452106 + unrolled_ast: 336265cd7129cba865898735d54b9c20073bff52696ba6c212ae8a6e66452106 + ssa_ast: d0c71f2f1de2e8ccded3356e307757cf08f78009742a8f3c0b5d8305a9835560 + flattened_ast: 3dc73fa2723342d30d858ef6d3fc485f94df34567bec51ecdc39391ea4ea29c6 + inlined_ast: 3dc73fa2723342d30d858ef6d3fc485f94df34567bec51ecdc39391ea4ea29c6 + dce_ast: 3dc73fa2723342d30d858ef6d3fc485f94df34567bec51ecdc39391ea4ea29c6 + bytecode: 9b3c12479efabe9d85d3b8c07f1872c8d846425a5451c59a2127d69b7ca3a229 diff --git a/tests/expectations/compiler/statements/operations/shl_assign.out b/tests/expectations/compiler/statements/operations/shl_assign.out new file mode 100644 index 0000000000..5e38571668 --- /dev/null +++ b/tests/expectations/compiler/statements/operations/shl_assign.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: d018ac16daaac9ba7f9020cc0aee2084333fd737bb1e4894b7293a8d4eaa9ae3 + unrolled_ast: d018ac16daaac9ba7f9020cc0aee2084333fd737bb1e4894b7293a8d4eaa9ae3 + ssa_ast: 1d0cccfd79e4dcdea37eab9e26a4c87bed815c1cd5faf28acf74d30054f4bb9e + flattened_ast: a2e7c80905ee9e5201cbcce79342f06f9d3d1a8b4aa08e41f83bdb022b39d628 + inlined_ast: a2e7c80905ee9e5201cbcce79342f06f9d3d1a8b4aa08e41f83bdb022b39d628 + dce_ast: a2e7c80905ee9e5201cbcce79342f06f9d3d1a8b4aa08e41f83bdb022b39d628 + bytecode: e3a22ebc4bc203291d1190f9711b5578da0f4c83b292d9f3adcf281db4922126 diff --git a/tests/expectations/compiler/statements/operations/shr_assign.out b/tests/expectations/compiler/statements/operations/shr_assign.out new file mode 100644 index 0000000000..7345d39dfd --- /dev/null +++ b/tests/expectations/compiler/statements/operations/shr_assign.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 583a4ba4ff7216777c266bff6599d88ed2522c9d687e2bbf2005563bb63153d0 + unrolled_ast: 583a4ba4ff7216777c266bff6599d88ed2522c9d687e2bbf2005563bb63153d0 + ssa_ast: 7c37b49480906456cf49bcf1be82916c2044d3eb07d6cb6cb7e840b0a0498d37 + flattened_ast: 0b9d3680dbb567eadec23a09e6ef3dcdbc270bc7fd5c76a103691e56648d5b92 + inlined_ast: 0b9d3680dbb567eadec23a09e6ef3dcdbc270bc7fd5c76a103691e56648d5b92 + dce_ast: 0b9d3680dbb567eadec23a09e6ef3dcdbc270bc7fd5c76a103691e56648d5b92 + bytecode: 8bde890ff271b82f5c35c517fa95e2fec5654dee843f5d1ca8771153410d9816 diff --git a/tests/expectations/compiler/statements/operations/sub_assign.out b/tests/expectations/compiler/statements/operations/sub_assign.out new file mode 100644 index 0000000000..0a37b7cfbf --- /dev/null +++ b/tests/expectations/compiler/statements/operations/sub_assign.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 7fff01bb9eb5253f00dc49106bbc17ff8c90dd5e8f6dd94c0ab6da5947e2df47 + unrolled_ast: 7fff01bb9eb5253f00dc49106bbc17ff8c90dd5e8f6dd94c0ab6da5947e2df47 + ssa_ast: c85d6514d10aaa44ff66e89977b98fa70cb140229951764103b1563164e93a8e + flattened_ast: d36c7de601eac9e77aa4e9aac0f9edec4a1f80c43e62e7d1c15a05ecc41c67b2 + inlined_ast: d36c7de601eac9e77aa4e9aac0f9edec4a1f80c43e62e7d1c15a05ecc41c67b2 + dce_ast: d36c7de601eac9e77aa4e9aac0f9edec4a1f80c43e62e7d1c15a05ecc41c67b2 + bytecode: d1392a0607452a3256f9289af243a6700d69f63c0b507ac9a52ceb3616f5a742 diff --git a/tests/expectations/compiler/statements/statements_after_complete_conditional_return_fail.out b/tests/expectations/compiler/statements/statements_after_complete_conditional_return_fail.out new file mode 100644 index 0000000000..dd46b82e9f --- /dev/null +++ b/tests/expectations/compiler/statements/statements_after_complete_conditional_return_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372025]: Cannot reach the following statement.\n --> compiler-test:10:9\n |\n 10 | let double: u32 = x + x;\n | ^^^^^^^^^^^^^^^^^^^^^^^\n |\n = Remove the unreachable code.\nError [ETYC0372025]: Cannot reach the following statement.\n --> compiler-test:11:9\n |\n 11 | return double;\n | ^^^^^^^^^^^^^^\n |\n = Remove the unreachable code.\n" diff --git a/tests/expectations/compiler/statements/ternary_explicit_and_implicit.out b/tests/expectations/compiler/statements/ternary_explicit_and_implicit.out new file mode 100644 index 0000000000..c599f99507 --- /dev/null +++ b/tests/expectations/compiler/statements/ternary_explicit_and_implicit.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 57d0b6f6aa70eb7794804338471642bb7d3afbe22839e481e3db043c96429c64 + unrolled_ast: 57d0b6f6aa70eb7794804338471642bb7d3afbe22839e481e3db043c96429c64 + ssa_ast: ac3d8c3a3a404ec9d3bdc6012d9dba7c54c8da3d2e18e09378c867089cee3cae + flattened_ast: 8eac9b122ec47ee96061b25b50feb4188f5b85bee63006a999ec1b75dd1d6be5 + inlined_ast: 8eac9b122ec47ee96061b25b50feb4188f5b85bee63006a999ec1b75dd1d6be5 + dce_ast: 8eac9b122ec47ee96061b25b50feb4188f5b85bee63006a999ec1b75dd1d6be5 + bytecode: 29c7986430a76fc69c77d416ab7581c42dbb7f2fc7821991cb7365b145079200 diff --git a/tests/expectations/compiler/statements/typecheck_statements_fail.out b/tests/expectations/compiler/statements/typecheck_statements_fail.out new file mode 100644 index 0000000000..1aa6339b91 --- /dev/null +++ b/tests/expectations/compiler/statements/typecheck_statements_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372007]: Expected one type from `i16`, but got `i32`\n --> compiler-test:5:33\n |\n 5 | let c1 : u32 = 123i16 * 123i32;\n | ^^^^^^\nError [ETYC0372007]: Expected one type from `i16`, but got `u32`\n --> compiler-test:5:24\n |\n 5 | let c1 : u32 = 123i16 * 123i32;\n | ^^^^^^^^^^^^^^^\nError [ETYC0372050]: Strings are not yet supported.\n --> compiler-test:6:24\n |\n 6 | let c2 : u32 = \"123i32\" * 123i16 * \"sss\";\n | ^^^^^^^^\nError [ETYC0372007]: Expected one type from `i16`, but got `string`\n --> compiler-test:6:24\n |\n 6 | let c2 : u32 = \"123i32\" * 123i16 * \"sss\";\n | ^^^^^^^^\nError [ETYC0372050]: Strings are not yet supported.\n --> compiler-test:6:44\n |\n 6 | let c2 : u32 = \"123i32\" * 123i16 * \"sss\";\n | ^^^^^\nError [ETYC0372007]: Expected one type from `i16`, but got `string`\n --> compiler-test:6:44\n |\n 6 | let c2 : u32 = \"123i32\" * 123i16 * \"sss\";\n | ^^^^^\nError [ETYC0372007]: Expected one type from `i16`, but got `u32`\n --> compiler-test:6:24\n |\n 6 | let c2 : u32 = \"123i32\" * 123i16 * \"sss\";\n | ^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372050]: Strings are not yet supported.\n --> compiler-test:7:24\n |\n 7 | let c3 : u32 = \"123i32\" * \"sss\";\n | ^^^^^^^^\nError [ETYC0372050]: Strings are not yet supported.\n --> compiler-test:7:35\n |\n 7 | let c3 : u32 = \"123i32\" * \"sss\";\n | ^^^^^\nError [ETYC0372003]: Expected type `field, group, integer, or scalar` but type `string` was found\n --> compiler-test:7:24\n |\n 7 | let c3 : u32 = \"123i32\" * \"sss\";\n | ^^^^^^^^\nError [ETYC0372003]: Expected type `field, group, integer, or scalar` but type `string` was found\n --> compiler-test:7:35\n |\n 7 | let c3 : u32 = \"123i32\" * \"sss\";\n | ^^^^^\nError [ETYC0372007]: Expected one type from `i8`, but got `i16`\n --> compiler-test:8:30\n |\n 8 | let c4 : u32 = 1i8 * 2i16 * 3i32 * 4i64 * 5u8 * 6u16 * 7u32 * 9u64;\n | ^^^^\nError [ETYC0372007]: Expected one type from `i8`, but got `i32`\n --> compiler-test:8:37\n |\n 8 | let c4 : u32 = 1i8 * 2i16 * 3i32 * 4i64 * 5u8 * 6u16 * 7u32 * 9u64;\n | ^^^^\nError [ETYC0372007]: Expected one type from `i8`, but got `i64`\n --> compiler-test:8:44\n |\n 8 | let c4 : u32 = 1i8 * 2i16 * 3i32 * 4i64 * 5u8 * 6u16 * 7u32 * 9u64;\n | ^^^^\nError [ETYC0372007]: Expected one type from `i8`, but got `u8`\n --> compiler-test:8:51\n |\n 8 | let c4 : u32 = 1i8 * 2i16 * 3i32 * 4i64 * 5u8 * 6u16 * 7u32 * 9u64;\n | ^^^\nError [ETYC0372007]: Expected one type from `i8`, but got `u16`\n --> compiler-test:8:57\n |\n 8 | let c4 : u32 = 1i8 * 2i16 * 3i32 * 4i64 * 5u8 * 6u16 * 7u32 * 9u64;\n | ^^^^\nError [ETYC0372007]: Expected one type from `i8`, but got `u32`\n --> compiler-test:8:64\n |\n 8 | let c4 : u32 = 1i8 * 2i16 * 3i32 * 4i64 * 5u8 * 6u16 * 7u32 * 9u64;\n | ^^^^\nError [ETYC0372007]: Expected one type from `i8`, but got `u64`\n --> compiler-test:8:71\n |\n 8 | let c4 : u32 = 1i8 * 2i16 * 3i32 * 4i64 * 5u8 * 6u16 * 7u32 * 9u64;\n | ^^^^\nError [ETYC0372007]: Expected one type from `i8`, but got `u32`\n --> compiler-test:8:24\n |\n 8 | let c4 : u32 = 1i8 * 2i16 * 3i32 * 4i64 * 5u8 * 6u16 * 7u32 * 9u64;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372050]: Strings are not yet supported.\n --> compiler-test:9:26\n |\n 9 | let c16: bool = (\"123i32\" & 123i16) == (\"sss\" / 1i8 - 1i8 + 22u32);\n | ^^^^^^^^\nError [ETYC0372003]: Expected type `i16` but type `string` was found\n --> compiler-test:9:26\n |\n 9 | let c16: bool = (\"123i32\" & 123i16) == (\"sss\" / 1i8 - 1i8 + 22u32);\n | ^^^^^^^^^^^^^^^^^\nError [ETYC0372050]: Strings are not yet supported.\n --> compiler-test:9:49\n |\n 9 | let c16: bool = (\"123i32\" & 123i16) == (\"sss\" / 1i8 - 1i8 + 22u32);\n | ^^^^^\nError [ETYC0372003]: Expected type `i8` but type `string` was found\n --> compiler-test:9:49\n |\n 9 | let c16: bool = (\"123i32\" & 123i16) == (\"sss\" / 1i8 - 1i8 + 22u32);\n | ^^^^^^^^^^^\nError [ETYC0372003]: Expected type `i8` but type `string` was found\n --> compiler-test:9:49\n |\n 9 | let c16: bool = (\"123i32\" & 123i16) == (\"sss\" / 1i8 - 1i8 + 22u32);\n | ^^^^^^^^^^^^^^^^^\nError [ETYC0372003]: Expected type `u32` but type `string` was found\n --> compiler-test:9:49\n |\n 9 | let c16: bool = (\"123i32\" & 123i16) == (\"sss\" / 1i8 - 1i8 + 22u32);\n | ^^^^^^^^^^^^^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/statements/unknown_type_in_definition_fail.out b/tests/expectations/compiler/statements/unknown_type_in_definition_fail.out new file mode 100644 index 0000000000..ad0a403a1e --- /dev/null +++ b/tests/expectations/compiler/statements/unknown_type_in_definition_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372017]: The type `Foo` is not found in the current scope.\n --> compiler-test:5:6\n |\n 5 | \tlet b: Foo = 1u8;\n | ^^^^^^^^^^^^^^^^\nError [ETYC0372003]: Expected type `Foo` but type `u8` was found\n --> compiler-test:5:19\n |\n 5 | \tlet b: Foo = 1u8;\n | ^^^\n" diff --git a/tests/expectations/compiler/strings/string.out b/tests/expectations/compiler/strings/string.out new file mode 100644 index 0000000000..74a7b00e48 --- /dev/null +++ b/tests/expectations/compiler/strings/string.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372050]: Strings are not yet supported.\n --> compiler-test:6:9\n |\n 6 | let str:string = \"a a a\";\n | ^^^^^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372050]: Strings are not yet supported.\n --> compiler-test:6:26\n |\n 6 | let str:string = \"a a a\";\n | ^^^^^^^\nError [ETYC0372050]: Strings are not yet supported.\n --> compiler-test:7:19\n |\n 7 | if(str == \"b b b\") {\n | ^^^^^^^^\n" diff --git a/tests/expectations/compiler/structs/cyclic_structs_one_fail.out b/tests/expectations/compiler/structs/cyclic_structs_one_fail.out new file mode 100644 index 0000000000..6310185861 --- /dev/null +++ b/tests/expectations/compiler/structs/cyclic_structs_one_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372065]: Cyclic dependency between structs: `Foo` --> `Foo`\n" diff --git a/tests/expectations/compiler/structs/cyclic_structs_three_fail.out b/tests/expectations/compiler/structs/cyclic_structs_three_fail.out new file mode 100644 index 0000000000..78d961d8d9 --- /dev/null +++ b/tests/expectations/compiler/structs/cyclic_structs_three_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372065]: Cyclic dependency between structs: `One` --> `Two` --> `Three` --> `One`\n" diff --git a/tests/expectations/compiler/structs/cyclic_structs_two_fail.out b/tests/expectations/compiler/structs/cyclic_structs_two_fail.out new file mode 100644 index 0000000000..b4a37f33ba --- /dev/null +++ b/tests/expectations/compiler/structs/cyclic_structs_two_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372065]: Cyclic dependency between structs: `Bar` --> `Baz` --> `Bar`\n" diff --git a/tests/expectations/compiler/structs/duplicate_name_context.out b/tests/expectations/compiler/structs/duplicate_name_context.out new file mode 100644 index 0000000000..4c5341f6f3 --- /dev/null +++ b/tests/expectations/compiler/structs/duplicate_name_context.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EAST0372007]: struct `Bar` shadowed by\n --> compiler-test:9:13\n |\n 9 | let Bar: u32 = 66u32;\n | ^^^\n" diff --git a/tests/expectations/compiler/structs/duplicate_struct_variable.out b/tests/expectations/compiler/structs/duplicate_struct_variable.out new file mode 100644 index 0000000000..70c341b842 --- /dev/null +++ b/tests/expectations/compiler/structs/duplicate_struct_variable.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372015]: Struct Bar defined with more than one member with the same name.\n --> compiler-test:4:5\n |\n 4 | struct Bar {\n 5 | x: u32,\n 6 | x: u32,\n 7 | }\n | ^\n" diff --git a/tests/expectations/compiler/structs/inline.out b/tests/expectations/compiler/structs/inline.out new file mode 100644 index 0000000000..27697ab880 --- /dev/null +++ b/tests/expectations/compiler/structs/inline.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 6c87104b35fbd525d352c879f285ce7d30a033fdfe0435581bc46623d53e73e3 + unrolled_ast: 6c87104b35fbd525d352c879f285ce7d30a033fdfe0435581bc46623d53e73e3 + ssa_ast: 3cc12ecd92429711ea09cf422cfff3fde75f1a7a82ee2030c3f4c3edfe89470b + flattened_ast: b4f2c136d487f91c2dda45751013486f4794cc0cb09f035690fbb90c8280887a + inlined_ast: b4f2c136d487f91c2dda45751013486f4794cc0cb09f035690fbb90c8280887a + dce_ast: b4f2c136d487f91c2dda45751013486f4794cc0cb09f035690fbb90c8280887a + bytecode: 8ee7f077a54a80ac5ce5d1cc894c81c880730a3d60857397dc6028d0d8423125 diff --git a/tests/expectations/compiler/structs/inline_fail.out b/tests/expectations/compiler/structs/inline_fail.out new file mode 100644 index 0000000000..2ad806502b --- /dev/null +++ b/tests/expectations/compiler/structs/inline_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372013]: Struct initialization expression for `Foo` is missing member `x`.\n --> compiler-test:10:22\n |\n 10 | let a: Foo = Foo { y: 0u32 };\n | ^^^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/structs/inline_member_fail.out b/tests/expectations/compiler/structs/inline_member_fail.out new file mode 100644 index 0000000000..33e42e8aff --- /dev/null +++ b/tests/expectations/compiler/structs/inline_member_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370017]: Could not parse the implicit value: 1.\n --> compiler-test:9:21\n |\n 9 | let y: u8 = 1;\n | ^" diff --git a/tests/expectations/compiler/structs/inline_member_pass.out b/tests/expectations/compiler/structs/inline_member_pass.out new file mode 100644 index 0000000000..840694c364 --- /dev/null +++ b/tests/expectations/compiler/structs/inline_member_pass.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found 'let'\n --> compiler-test:8:19\n |\n 8 | function main(let x: u8, y: bool) -> bool {\n | ^^^" diff --git a/tests/expectations/compiler/structs/inline_undefined.out b/tests/expectations/compiler/structs/inline_undefined.out new file mode 100644 index 0000000000..02906debdc --- /dev/null +++ b/tests/expectations/compiler/structs/inline_undefined.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372017]: The type `Foo` is not found in the current scope.\n --> compiler-test:5:9\n |\n 5 | let a: Foo = Foo { };\n | ^^^^^^^^^^^^^^^^^^^^\nError [ETYC0372005]: Unknown struct `Foo`\n --> compiler-test:5:22\n |\n 5 | let a: Foo = Foo { };\n | ^^^\n" diff --git a/tests/expectations/compiler/structs/member_variable.out b/tests/expectations/compiler/structs/member_variable.out new file mode 100644 index 0000000000..cff31f3f25 --- /dev/null +++ b/tests/expectations/compiler/structs/member_variable.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: b88444f65d1dd77fea61bda17686d1f8d42f5828743dfd0d498ae81deda39d7a + unrolled_ast: b88444f65d1dd77fea61bda17686d1f8d42f5828743dfd0d498ae81deda39d7a + ssa_ast: ac0decd1bed68517b5ebea48508da329d69775e635bf8ef0d4bbab62832b491d + flattened_ast: d6456cce7621a6a61f2d91c2022be8090e2532748d28fca0eb12b6e05003e751 + inlined_ast: d6456cce7621a6a61f2d91c2022be8090e2532748d28fca0eb12b6e05003e751 + dce_ast: d6456cce7621a6a61f2d91c2022be8090e2532748d28fca0eb12b6e05003e751 + bytecode: a8874b5e3d3a000703943de2f132677372f9a275003bccf176c4ebfdf1b86466 diff --git a/tests/expectations/compiler/structs/member_variable_fail.out b/tests/expectations/compiler/structs/member_variable_fail.out new file mode 100644 index 0000000000..96486096f7 --- /dev/null +++ b/tests/expectations/compiler/structs/member_variable_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370005]: expected : -- found '='\n --> compiler-test:10:17\n |\n 10 | let err = a.y;\n | ^" diff --git a/tests/expectations/compiler/structs/struct_access_fail.out b/tests/expectations/compiler/structs/struct_access_fail.out new file mode 100644 index 0000000000..91015b412a --- /dev/null +++ b/tests/expectations/compiler/structs/struct_access_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372003]: Expected type `i8` but type `u32` was found\n --> compiler-test:11:21\n |\n 11 | let x: i8 = s.f1;\n | ^^^^\n" diff --git a/tests/expectations/compiler/structs/struct_contains_record_fail.out b/tests/expectations/compiler/structs/struct_contains_record_fail.out new file mode 100644 index 0000000000..224484b2b2 --- /dev/null +++ b/tests/expectations/compiler/structs/struct_contains_record_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372029]: A struct or record cannot contain another record.\n --> compiler-test:6:9\n |\n 6 | token: Token,\n | ^^^^^\n |\n = Remove the record `Token` from `Foo`.\nError [ETYC0372065]: Cyclic dependency between structs: `Foo` --> `Token` --> `Foo`\n" diff --git a/tests/expectations/compiler/structs/struct_declaration_out_of_order.out b/tests/expectations/compiler/structs/struct_declaration_out_of_order.out new file mode 100644 index 0000000000..587d187dc3 --- /dev/null +++ b/tests/expectations/compiler/structs/struct_declaration_out_of_order.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 32c309a2edd67f48fa05b04cbf1ae8df61d119934366b541fe744798e656aa0f + unrolled_ast: 32c309a2edd67f48fa05b04cbf1ae8df61d119934366b541fe744798e656aa0f + ssa_ast: 00d8da3a1986c7a67b690906656abbaf0c7768b821c0ccb4e02906d1bf2607ee + flattened_ast: 57b516a75d42d3e7c50990a8e3c30f049d4143c283502431ac4f175d269d1c9d + inlined_ast: 57b516a75d42d3e7c50990a8e3c30f049d4143c283502431ac4f175d269d1c9d + dce_ast: 57b516a75d42d3e7c50990a8e3c30f049d4143c283502431ac4f175d269d1c9d + bytecode: 6cc7359d48deaf0b2c03bdd35b80693511afe0033aeafeceb7065267697f022a diff --git a/tests/expectations/compiler/structs/struct_function_namespace_conflict_fail.out b/tests/expectations/compiler/structs/struct_function_namespace_conflict_fail.out new file mode 100644 index 0000000000..7905e3ca05 --- /dev/null +++ b/tests/expectations/compiler/structs/struct_function_namespace_conflict_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EAST0372007]: struct `Foo` shadowed by\n --> compiler-test:8:5\n |\n 8 | function Foo() {}\n | ^^^^^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/structs/struct_init_out_of_order.out b/tests/expectations/compiler/structs/struct_init_out_of_order.out new file mode 100644 index 0000000000..d2ef0c5417 --- /dev/null +++ b/tests/expectations/compiler/structs/struct_init_out_of_order.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 25621b5d7c7dc7e495926cb6829c9c0c107c21a1fa2c41aa060aa8167790cd39 + unrolled_ast: 25621b5d7c7dc7e495926cb6829c9c0c107c21a1fa2c41aa060aa8167790cd39 + ssa_ast: 34298c4f8445e82269661f7580b198f38aee1e0afbc12a232c3494b05c98841f + flattened_ast: 694d088023b2aba6c0d6e8a8ccfae89b6c1f0bb1ef17058b95a521d95c5bbef5 + inlined_ast: 694d088023b2aba6c0d6e8a8ccfae89b6c1f0bb1ef17058b95a521d95c5bbef5 + dce_ast: 694d088023b2aba6c0d6e8a8ccfae89b6c1f0bb1ef17058b95a521d95c5bbef5 + bytecode: 035a98875b76db42e72bba26b053403c2c629c47683376fe1a33f3a61b3ad53f diff --git a/tests/expectations/compiler/structs/struct_with_visibility_fail.out b/tests/expectations/compiler/structs/struct_with_visibility_fail.out new file mode 100644 index 0000000000..83704d341b --- /dev/null +++ b/tests/expectations/compiler/structs/struct_with_visibility_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372067]: A struct cannot have a member with mode `constant`, `private`, or `public`.\n --> compiler-test:5:18\n |\n 5 | constant a: u8,\n | ^^^^^\nError [ETYC0372067]: A struct cannot have a member with mode `constant`, `private`, or `public`.\n --> compiler-test:6:17\n |\n 6 | private bar: bool,\n | ^^^^^^^^^\nError [ETYC0372067]: A struct cannot have a member with mode `constant`, `private`, or `public`.\n --> compiler-test:7:16\n |\n 7 | public bax: u16,\n | ^^^^^^^^\n" diff --git a/tests/expectations/compiler/structs/unknown_member_type_fail.out b/tests/expectations/compiler/structs/unknown_member_type_fail.out new file mode 100644 index 0000000000..bc5bcb3d72 --- /dev/null +++ b/tests/expectations/compiler/structs/unknown_member_type_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372017]: The type `Bar` is not found in the current scope.\n --> compiler-test:6:9\n |\n 6 | bar: Bar,\n | ^^^^^^^^\n" diff --git a/tests/expectations/compiler/tuple/access_negative_fail.out b/tests/expectations/compiler/tuple/access_negative_fail.out new file mode 100644 index 0000000000..eb62bf93a4 --- /dev/null +++ b/tests/expectations/compiler/tuple/access_negative_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370009]: unexpected string: expected 'identifier', found '-'\n --> compiler-test:7:24\n |\n 7 | return (t.0, t.-1); // Index `t.-1` is invalid.\n | ^" diff --git a/tests/expectations/compiler/tuple/access_out_of_bounds_fail.out b/tests/expectations/compiler/tuple/access_out_of_bounds_fail.out new file mode 100644 index 0000000000..2eb3a4232f --- /dev/null +++ b/tests/expectations/compiler/tuple/access_out_of_bounds_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372024]: Tuple index `2` out of range for a tuple with length `2`\n --> compiler-test:7:24\n |\n 7 | return (t.0, t.2); // Index `t.2` is out of bounds.\n | ^\nError [ETYC0372014]: t.2 is not a valid core function call.\n --> compiler-test:7:24\n |\n 7 | return (t.0, t.2); // Index `t.2` is out of bounds.\n | ^\n" diff --git a/tests/expectations/compiler/tuple/assign_unit_fail.out b/tests/expectations/compiler/tuple/assign_unit_fail.out new file mode 100644 index 0000000000..f09242f943 --- /dev/null +++ b/tests/expectations/compiler/tuple/assign_unit_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372062]: The left-hand side of a `DefinitionStatement` can only be an identifier or tuple. Note that a tuple must contain at least two elements.\n --> compiler-test:6:9\n |\n 6 | let b: () = ();\n | ^^^^^^^^^^^^^^\nError [ETYC0372063]: Unit expressions can only be used in return statements.\n --> compiler-test:6:21\n |\n 6 | let b: () = ();\n | ^^\nError [ETYC0372062]: The left-hand side of a `DefinitionStatement` can only be an identifier or tuple. Note that a tuple must contain at least two elements.\n --> compiler-test:11:9\n |\n 11 | let b: () = bar();\n | ^^^^^^^^^^^^^^^^^\nError [ETYC0372048]: Cannot call a local transition function from a transition function.\n --> compiler-test:11:21\n |\n 11 | let b: () = bar();\n | ^^^^^\nError [ETYC0372006]: Call expected `1` args, but got `0`\n --> compiler-test:11:21\n |\n 11 | let b: () = bar();\n | ^^^^^\n" diff --git a/tests/expectations/compiler/tuple/declare_fail.out b/tests/expectations/compiler/tuple/declare_fail.out new file mode 100644 index 0000000000..9c81abf0ef --- /dev/null +++ b/tests/expectations/compiler/tuple/declare_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372003]: Expected type `boolean` but type `u64` was found\n --> compiler-test:5:35\n |\n 5 | let t: (bool, bool) = (a, 1u64); // We should be declaring to a boolean, not a u64.\n | ^^^^\n" diff --git a/tests/expectations/compiler/tuple/function_call_returns_tuple.out b/tests/expectations/compiler/tuple/function_call_returns_tuple.out new file mode 100644 index 0000000000..4fe0a0c8a4 --- /dev/null +++ b/tests/expectations/compiler/tuple/function_call_returns_tuple.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 3b55815480779f25bc79dc7b3bbe74de65fd82c6e180c063440c316ed623e8a8 + unrolled_ast: 3b55815480779f25bc79dc7b3bbe74de65fd82c6e180c063440c316ed623e8a8 + ssa_ast: a21d90ca17c1a7731a3434cb78f70f4486adc033a2482335ff634e37f216cd58 + flattened_ast: 789b45607257d91514782f67b6229b8d5bd88e8c2be169e60e81d7dbe11c873c + inlined_ast: 789b45607257d91514782f67b6229b8d5bd88e8c2be169e60e81d7dbe11c873c + dce_ast: 789b45607257d91514782f67b6229b8d5bd88e8c2be169e60e81d7dbe11c873c + bytecode: c154c5c9344d976d14c6455e9f24f6d9d9dbffde47e9bf76b6ed35ffb3a75006 diff --git a/tests/expectations/compiler/tuple/function_early_return.out b/tests/expectations/compiler/tuple/function_early_return.out new file mode 100644 index 0000000000..e832c4891e --- /dev/null +++ b/tests/expectations/compiler/tuple/function_early_return.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 07639c360dc3eefc9b4d4be7f00e897df1d1da0ff18bba6311e6bf11352ce638 + unrolled_ast: 07639c360dc3eefc9b4d4be7f00e897df1d1da0ff18bba6311e6bf11352ce638 + ssa_ast: d657cd3d890ad5e0408a2ba756df214ecaf9f778712fc24b8254cef50ba1f172 + flattened_ast: 0013e29af14bf798ff2713e3fa8623296c38dfd2aab1192fd5da4a33458586eb + inlined_ast: 0013e29af14bf798ff2713e3fa8623296c38dfd2aab1192fd5da4a33458586eb + dce_ast: 0013e29af14bf798ff2713e3fa8623296c38dfd2aab1192fd5da4a33458586eb + bytecode: c5b9380beb403e862b352234944450588999c9314abceaff6166d98c8882a4b6 diff --git a/tests/expectations/compiler/tuple/function_return.out b/tests/expectations/compiler/tuple/function_return.out new file mode 100644 index 0000000000..50173a916b --- /dev/null +++ b/tests/expectations/compiler/tuple/function_return.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 7bf33d550793efc6d619f987e9c8f5f5942c38bd6506641879ac097371799e84 + unrolled_ast: 7bf33d550793efc6d619f987e9c8f5f5942c38bd6506641879ac097371799e84 + ssa_ast: 237563de1ae2b5eb51b7a8bb8c31bc53651bf6d9f708913d3963b4bf28bdcbf5 + flattened_ast: 33262f1952c8586a6bbac3933b945561e3883706902c8e6e8fa6091ac51fbf08 + inlined_ast: 33262f1952c8586a6bbac3933b945561e3883706902c8e6e8fa6091ac51fbf08 + dce_ast: 33262f1952c8586a6bbac3933b945561e3883706902c8e6e8fa6091ac51fbf08 + bytecode: 2c8abaf0758c39eaedd2fe6bb2747525a452084cd96ce540fd75a7c63395c7ca diff --git a/tests/expectations/compiler/tuple/function_return_nothing.out b/tests/expectations/compiler/tuple/function_return_nothing.out new file mode 100644 index 0000000000..e0c0f438c0 --- /dev/null +++ b/tests/expectations/compiler/tuple/function_return_nothing.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 23268f71897aadaecd46cd2ace516815f6f9c60323af8581da66eb4c0b8b4ecb + unrolled_ast: 23268f71897aadaecd46cd2ace516815f6f9c60323af8581da66eb4c0b8b4ecb + ssa_ast: 23268f71897aadaecd46cd2ace516815f6f9c60323af8581da66eb4c0b8b4ecb + flattened_ast: 7ff0d9cf3ab00fa646f5789412329e615534a34a9cb4f942f711af86959c3d19 + inlined_ast: 7ff0d9cf3ab00fa646f5789412329e615534a34a9cb4f942f711af86959c3d19 + dce_ast: 7ff0d9cf3ab00fa646f5789412329e615534a34a9cb4f942f711af86959c3d19 + bytecode: 3dd2872e02c8030587f796df543d94855437d87460d22c177e74eb6647c1c7b1 diff --git a/tests/expectations/compiler/tuple/function_return_single_fail.out b/tests/expectations/compiler/tuple/function_return_single_fail.out new file mode 100644 index 0000000000..a0d26887fc --- /dev/null +++ b/tests/expectations/compiler/tuple/function_return_single_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370029]: A tuple expression must have at least two elements.\n --> compiler-test:9:16\n |\n 9 | return (b,);\n | ^^^^" diff --git a/tests/expectations/compiler/tuple/function_return_unit.out b/tests/expectations/compiler/tuple/function_return_unit.out new file mode 100644 index 0000000000..e0c0f438c0 --- /dev/null +++ b/tests/expectations/compiler/tuple/function_return_unit.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 23268f71897aadaecd46cd2ace516815f6f9c60323af8581da66eb4c0b8b4ecb + unrolled_ast: 23268f71897aadaecd46cd2ace516815f6f9c60323af8581da66eb4c0b8b4ecb + ssa_ast: 23268f71897aadaecd46cd2ace516815f6f9c60323af8581da66eb4c0b8b4ecb + flattened_ast: 7ff0d9cf3ab00fa646f5789412329e615534a34a9cb4f942f711af86959c3d19 + inlined_ast: 7ff0d9cf3ab00fa646f5789412329e615534a34a9cb4f942f711af86959c3d19 + dce_ast: 7ff0d9cf3ab00fa646f5789412329e615534a34a9cb4f942f711af86959c3d19 + bytecode: 3dd2872e02c8030587f796df543d94855437d87460d22c177e74eb6647c1c7b1 diff --git a/tests/expectations/compiler/tuple/function_return_varying_modes.out b/tests/expectations/compiler/tuple/function_return_varying_modes.out new file mode 100644 index 0000000000..fde8b4d559 --- /dev/null +++ b/tests/expectations/compiler/tuple/function_return_varying_modes.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 926c535d42c3e31ff98b0c0abe4004ae3eb6fdbd0f0e90652548e4256b15b6b8 + unrolled_ast: 926c535d42c3e31ff98b0c0abe4004ae3eb6fdbd0f0e90652548e4256b15b6b8 + ssa_ast: 2d72b389548e73e8cdd6d40a56876e3972047174e1d9573b9d99fcfc17ef158c + flattened_ast: 5c8a19f4f9c878b116e922e3ea421fba31fc22837293d4ada30425a2b5b3e541 + inlined_ast: 5c8a19f4f9c878b116e922e3ea421fba31fc22837293d4ada30425a2b5b3e541 + dce_ast: 5c8a19f4f9c878b116e922e3ea421fba31fc22837293d4ada30425a2b5b3e541 + bytecode: 712d619af623624abea3ee1932a204f2c7901f2d815a4f3c612386e6b457a430 diff --git a/tests/expectations/compiler/tuple/function_unit_input_fail.out b/tests/expectations/compiler/tuple/function_unit_input_fail.out new file mode 100644 index 0000000000..b9a9c692b4 --- /dev/null +++ b/tests/expectations/compiler/tuple/function_unit_input_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372063]: Unit expressions can only be used in return statements.\n --> compiler-test:10:13\n |\n 10 | foo(());\n | ^^\n" diff --git a/tests/expectations/compiler/tuple/return_statement_fail.out b/tests/expectations/compiler/tuple/return_statement_fail.out new file mode 100644 index 0000000000..5e3c5ad3c4 --- /dev/null +++ b/tests/expectations/compiler/tuple/return_statement_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372003]: Expected type `u64` but type `boolean` was found\n --> compiler-test:7:24\n |\n 7 | return (t.0, t.1); // The second element should be type u64 as in the function declaration.\n | ^\n" diff --git a/tests/expectations/compiler/tuple/return_with_different_modes.out b/tests/expectations/compiler/tuple/return_with_different_modes.out new file mode 100644 index 0000000000..e996f1b81c --- /dev/null +++ b/tests/expectations/compiler/tuple/return_with_different_modes.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 063e4be66382f9133b59a86612971b32a780014113ed99b038d030825c129730 + unrolled_ast: 063e4be66382f9133b59a86612971b32a780014113ed99b038d030825c129730 + ssa_ast: f1225db8f825c11bdadbf472eb1f3a94a173e44461b85e4f9a0de42a5489b2f3 + flattened_ast: c50916f5dee3140ee7ccfe337cfd1b0d8da17f8f1779e867d04e58285f83439e + inlined_ast: c50916f5dee3140ee7ccfe337cfd1b0d8da17f8f1779e867d04e58285f83439e + dce_ast: c50916f5dee3140ee7ccfe337cfd1b0d8da17f8f1779e867d04e58285f83439e + bytecode: 712d619af623624abea3ee1932a204f2c7901f2d815a4f3c612386e6b457a430 diff --git a/tests/expectations/compiler/tuple/singleton_tuple_fail.out b/tests/expectations/compiler/tuple/singleton_tuple_fail.out new file mode 100644 index 0000000000..20c34692c4 --- /dev/null +++ b/tests/expectations/compiler/tuple/singleton_tuple_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [EPAR0370029]: A tuple type must have at least two elements.\n --> compiler-test:7:16\n |\n 7 | let c: (u8) = (a);\n | ^^^^" diff --git a/tests/expectations/compiler/tuple/tuple_access.out b/tests/expectations/compiler/tuple/tuple_access.out new file mode 100644 index 0000000000..35cdf5b528 --- /dev/null +++ b/tests/expectations/compiler/tuple/tuple_access.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: bd012de01926a8ae26a191dc875e28fdc93a2310040222621c27cf8f89317c3d + unrolled_ast: bd012de01926a8ae26a191dc875e28fdc93a2310040222621c27cf8f89317c3d + ssa_ast: 9deec2d9e0aa1b0f820c50629e125361784be0f70b0a6b1971f1ce20763dbe49 + flattened_ast: 74414bccb00a4939c920daa2fb4cfb479a9a6e06757b16b47822202344a1e402 + inlined_ast: 74414bccb00a4939c920daa2fb4cfb479a9a6e06757b16b47822202344a1e402 + dce_ast: 74414bccb00a4939c920daa2fb4cfb479a9a6e06757b16b47822202344a1e402 + bytecode: 01001f0a4197adc24393c88758ad4747a51b21ee9119ec969b42a7f5ad3703cd diff --git a/tests/expectations/compiler/tuple/tuple_destructure.out b/tests/expectations/compiler/tuple/tuple_destructure.out new file mode 100644 index 0000000000..6452e39570 --- /dev/null +++ b/tests/expectations/compiler/tuple/tuple_destructure.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 7ad7e4f9cbde235823f14095d7fd03a7b4ba7f7d55b4c3b493e7f52caeeccace + unrolled_ast: 7ad7e4f9cbde235823f14095d7fd03a7b4ba7f7d55b4c3b493e7f52caeeccace + ssa_ast: 2aa9253234af25833497dde3be12e0f28b16e3c55517f40d8d6f443fcd7a28c0 + flattened_ast: e53e8075bbd1702ef0dfc55748810af5adaecf6feee3e62a5e2a6c7a1bc246be + inlined_ast: e53e8075bbd1702ef0dfc55748810af5adaecf6feee3e62a5e2a6c7a1bc246be + dce_ast: e53e8075bbd1702ef0dfc55748810af5adaecf6feee3e62a5e2a6c7a1bc246be + bytecode: 4ea7af7cc45ebc1c65534c344f557881f7ad985a7cf7b2d1135f5fc1c1b11bf5 diff --git a/tests/expectations/compiler/tuple/tuple_in_assignment.out b/tests/expectations/compiler/tuple/tuple_in_assignment.out new file mode 100644 index 0000000000..16e3f7844b --- /dev/null +++ b/tests/expectations/compiler/tuple/tuple_in_assignment.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 5ffd06da2f8179ac1575830eec4845c89361b78b57acd3d82c00460e8ff23726 + unrolled_ast: 5ffd06da2f8179ac1575830eec4845c89361b78b57acd3d82c00460e8ff23726 + ssa_ast: feb601f0542392c0ff6f6e65771e1a3f78a3d502afd78dedb9da62701e15eafb + flattened_ast: 7c4aa29c9260a7b27fcb908522c574d1db078c225faa869a73464227053d665d + inlined_ast: 7c4aa29c9260a7b27fcb908522c574d1db078c225faa869a73464227053d665d + dce_ast: 7c4aa29c9260a7b27fcb908522c574d1db078c225faa869a73464227053d665d + bytecode: ca2bd4a18e97ee288c1e21bd35be693a6541d52293a94eacca62e48af67d3588 diff --git a/tests/expectations/compiler/tuple/tuple_in_definition.out b/tests/expectations/compiler/tuple/tuple_in_definition.out new file mode 100644 index 0000000000..2b9d841622 --- /dev/null +++ b/tests/expectations/compiler/tuple/tuple_in_definition.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: ca793163024f08df22c1c442769aaf0d97d6471b7ad855ba9fcc9c5e3bef5ae2 + unrolled_ast: ca793163024f08df22c1c442769aaf0d97d6471b7ad855ba9fcc9c5e3bef5ae2 + ssa_ast: 094dd7841fd9c22b2b5fd5d77a4fda74555e2b0c2bef02f84d14e704c4118602 + flattened_ast: 88ba11daed1c76380a5ffc7fe96164872daa773d050078faedaf2452d78564c2 + inlined_ast: 88ba11daed1c76380a5ffc7fe96164872daa773d050078faedaf2452d78564c2 + dce_ast: 88ba11daed1c76380a5ffc7fe96164872daa773d050078faedaf2452d78564c2 + bytecode: 5a4f25e917512c7596cf0eecb61d2fa9688ada34ded5714d5d1f58356c8b8910 diff --git a/tests/expectations/compiler/tuple/tuple_in_function_param.out b/tests/expectations/compiler/tuple/tuple_in_function_param.out new file mode 100644 index 0000000000..48c20b9668 --- /dev/null +++ b/tests/expectations/compiler/tuple/tuple_in_function_param.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372056]: A function cannot take in a tuple as input.\n --> compiler-test:4:20\n |\n 4 | transition foo(a: (u8, u16)) -> (u8, u16) {\n | ^\n" diff --git a/tests/expectations/compiler/tuple/tuple_in_loop.out b/tests/expectations/compiler/tuple/tuple_in_loop.out new file mode 100644 index 0000000000..b25b0af06c --- /dev/null +++ b/tests/expectations/compiler/tuple/tuple_in_loop.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: fc30e94ed8cdf2e684c59da34b62a93b9aec95b52769e824a26b5b751ba1c922 + unrolled_ast: 29925df425337b040f528a3779ed804368eebc55b92e91ab504d20338391ea78 + ssa_ast: 0f8aef0018ff70f83d760868a1a5b00d4c766b0e0aa015f4609efd60e4f0d9fa + flattened_ast: f75b1b72be86460c9c349ec8dc61996b973307d8e56fca72b2b0d4516853ad8a + inlined_ast: f75b1b72be86460c9c349ec8dc61996b973307d8e56fca72b2b0d4516853ad8a + dce_ast: 37b21d4f6cbaa0cdc4bcf792890675e24faf53e3adf392a33aec83e8318e17e1 + bytecode: f4577938c5c2372899e3894134e21850f7dd2dcc06830a3856b9e8a989ddff2e diff --git a/tests/expectations/compiler/tuple/tuple_in_record_fail.out b/tests/expectations/compiler/tuple/tuple_in_record_fail.out new file mode 100644 index 0000000000..1dae4627f2 --- /dev/null +++ b/tests/expectations/compiler/tuple/tuple_in_record_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372055]: A record cannot contain a tuple.\n --> compiler-test:7:9\n |\n 7 | amounts: (u64, u64),\n | ^^^^^^^\n" diff --git a/tests/expectations/compiler/tuple/tuple_in_return_type.out b/tests/expectations/compiler/tuple/tuple_in_return_type.out new file mode 100644 index 0000000000..3724da1c31 --- /dev/null +++ b/tests/expectations/compiler/tuple/tuple_in_return_type.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372054]: A tuple type cannot contain a tuple.\n --> compiler-test:4:35\n |\n 4 | transition bar(a: u8) -> (u8, (u8, u8)) {\n | ^^^^^^^^\nError [ETYC0372058]: A tuple expression cannot contain another tuple expression.\n --> compiler-test:5:20\n |\n 5 | return (a, (a + a, a * a));\n | ^^^^^^^^^^^^^^\nError [ETYC0372058]: A tuple expression cannot contain another tuple expression.\n --> compiler-test:5:20\n |\n 5 | return (a, (a + a, a * a));\n | ^^^^^^^^^^^^^^\n" diff --git a/tests/expectations/compiler/tuple/tuple_in_struct_fail.out b/tests/expectations/compiler/tuple/tuple_in_struct_fail.out new file mode 100644 index 0000000000..173191b051 --- /dev/null +++ b/tests/expectations/compiler/tuple/tuple_in_struct_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372055]: A struct cannot contain a tuple.\n --> compiler-test:5:9\n |\n 5 | mem: (u8, u16)\n | ^^^\nError [ETYC0372055]: A struct cannot contain a tuple.\n --> compiler-test:9:9\n |\n 9 | mems: (A, A)\n | ^^^^\n" diff --git a/tests/expectations/compiler/tuple/tuple_not_allowed_fail.out b/tests/expectations/compiler/tuple/tuple_not_allowed_fail.out new file mode 100644 index 0000000000..8c3f551d81 --- /dev/null +++ b/tests/expectations/compiler/tuple/tuple_not_allowed_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372055]: A struct cannot contain a tuple.\n --> compiler-test:22:9\n |\n 22 | mem: (u8, u16)\n | ^^^\nError [ETYC0372056]: A function cannot take in a tuple as input.\n --> compiler-test:8:18\n |\n 8 | function foo(a: (u8, u16)) -> (u8, u16) {\n | ^\nError [ETYC0372054]: A tuple type cannot contain a tuple.\n --> compiler-test:12:28\n |\n 12 | function bar() -> (u8, (u16, u32)) {\n | ^^^^^^^^^^\nError [ETYC0372058]: A tuple expression cannot contain another tuple expression.\n --> compiler-test:13:22\n |\n 13 | return (1u8, (2u16, 3u32));\n | ^^^^^^^^^^^^\nError [ETYC0372058]: A tuple expression cannot contain another tuple expression.\n --> compiler-test:13:22\n |\n 13 | return (1u8, (2u16, 3u32));\n | ^^^^^^^^^^^^\nError [ETYC0372007]: Expected one type from `i8, i16, i32, i64, i128, u8, u16, u32, u64, u128`, but got `(u8,u16)`\n --> compiler-test:17:13\n |\n 17 | for i: (u8, u16) in 0u8..2u8 {}\n | ^\nError [ETYC0372003]: Expected type `(u8,u16)` but type `u8` was found\n --> compiler-test:17:29\n |\n 17 | for i: (u8, u16) in 0u8..2u8 {}\n | ^^^\nError [ETYC0372003]: Expected type `(u8,u16)` but type `u8` was found\n --> compiler-test:17:34\n |\n 17 | for i: (u8, u16) in 0u8..2u8 {}\n | ^^^\n" diff --git a/tests/expectations/compiler/tuple/type_fail.out b/tests/expectations/compiler/tuple/type_fail.out new file mode 100644 index 0000000000..8dc2824c18 --- /dev/null +++ b/tests/expectations/compiler/tuple/type_fail.out @@ -0,0 +1,5 @@ +--- +namespace: Compile +expectation: Fail +outputs: + - "Error [ETYC0372003]: Expected type `u64` but type `boolean` was found\n --> compiler-test:5:34\n |\n 5 | let t: (bool, u64) = (a, b); // We should expect a boolean, not a u64.\n | ^\nError [ETYC0372003]: Expected type `boolean` but type `u64` was found\n --> compiler-test:7:24\n |\n 7 | return (t.0, t.1);\n | ^\n" diff --git a/tests/expectations/compiler/tuple/unit.out b/tests/expectations/compiler/tuple/unit.out new file mode 100644 index 0000000000..829cea88f0 --- /dev/null +++ b/tests/expectations/compiler/tuple/unit.out @@ -0,0 +1,11 @@ +--- +namespace: Compile +expectation: Pass +outputs: + - - initial_ast: 98f4d3670d7ae0c3ca7ded9e668b7fae1ad912cf468df712c40f48049d25e6b3 + unrolled_ast: 98f4d3670d7ae0c3ca7ded9e668b7fae1ad912cf468df712c40f48049d25e6b3 + ssa_ast: 98f4d3670d7ae0c3ca7ded9e668b7fae1ad912cf468df712c40f48049d25e6b3 + flattened_ast: a77fdf051383ff91fd5282969762682d47fd0276f8bda134b6ad6d684b6e35f5 + inlined_ast: a77fdf051383ff91fd5282969762682d47fd0276f8bda134b6ad6d684b6e35f5 + dce_ast: a77fdf051383ff91fd5282969762682d47fd0276f8bda134b6ad6d684b6e35f5 + bytecode: 6d63927b268b0e319d418ace15149e807636dff02ce5f14e037145ead86d2258 diff --git a/tests/expectations/parser/functions/const_input.out b/tests/expectations/parser/functions/const_input.out deleted file mode 100644 index deb13b078c..0000000000 --- a/tests/expectations/parser/functions/const_input.out +++ /dev/null @@ -1,78 +0,0 @@ ---- -namespace: Parse -expectation: Pass -outputs: - - imports: {} - program_scopes: - "{\"name\":\"test\",\"network\":\"\\\"{\\\\\\\"name\\\\\\\":\\\\\\\"aleo\\\\\\\",\\\\\\\"span\\\\\\\":\\\\\\\"{\\\\\\\\\\\\\\\"lo\\\\\\\\\\\\\\\":15,\\\\\\\\\\\\\\\"hi\\\\\\\\\\\\\\\":19}\\\\\\\"}\\\"\"}": - program_id: "{\"name\":\"test\",\"network\":\"\\\"{\\\\\\\"name\\\\\\\":\\\\\\\"aleo\\\\\\\",\\\\\\\"span\\\\\\\":\\\\\\\"{\\\\\\\\\\\\\\\"lo\\\\\\\\\\\\\\\":15,\\\\\\\\\\\\\\\"hi\\\\\\\\\\\\\\\":19}\\\\\\\"}\\\"\"}" - structs: {} - mappings: {} - functions: - x: - annotations: [] - variant: Standard - identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":39,\\\"hi\\\":40}\"}" - input: - - Internal: - identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":47,\\\"hi\\\":48}\"}" - mode: Constant - type_: - Integer: U8 - span: - lo: 47 - hi: 48 - output: - - Internal: - mode: None - type_: - Integer: U8 - span: - lo: 57 - hi: 59 - output_type: - Integer: U8 - block: - statements: [] - span: - lo: 60 - hi: 62 - finalize: ~ - span: - lo: 30 - hi: 62 - y: - annotations: [] - variant: Standard - identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":81,\\\"hi\\\":82}\"}" - input: - - Internal: - identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":92,\\\"hi\\\":93}\"}" - mode: Constant - type_: - Integer: U64 - span: - lo: 92 - hi: 93 - output: - - Internal: - mode: None - type_: - Integer: U8 - span: - lo: 103 - hi: 105 - output_type: - Integer: U8 - block: - statements: [] - span: - lo: 106 - hi: 108 - finalize: ~ - span: - lo: 72 - hi: 108 - span: - lo: 2 - hi: 109