From 266fd6aa75cd4503f65cb28f8858ee802c270e08 Mon Sep 17 00:00:00 2001 From: Jon Ross-Perkins Date: Fri, 20 Dec 2024 15:55:06 -0800 Subject: [PATCH] Remove explorer's proto fuzzer and proto dependencies (#4731) As part of migrating to the latest bazel configurations in #4729, I'm running into proto toolchain issues. For example: "Error: (rule 'proto_lang_toolchain') doesn't contain declared provider 'ProtoLangToolchainInfo'" Although we may eventually want more use of proto, right now the only use is for the explorer fuzzer. The explorer codebase is essentially frozen, so continuing to run it isn't gaining us much (in fact, we've already disabled autofuzzing for it). So, rather than trying to fix the proto setup, this change: 1. Deletes `explorer/fuzzing` 2. Removes proto portions of `testing/fuzzing`, which were only in-use by the explorer 3. Removes some ancillary proto support, which would otherwise break from the bazel changes and would be difficult to validate as "still working" This change is partly isolated in order to make it easier to revive bits of (3). --- .bazelrc | 10 - .pre-commit-config.yaml | 4 +- MODULE.bazel | 12 - MODULE.bazel.lock | 8 +- .../clang_cc_toolchain_config.bzl | 1 - bazel/check_deps/check_non_test_cc_deps.py | 1 - explorer/fuzzing/BUILD | 129 - explorer/fuzzing/README.md | 115 - explorer/fuzzing/ast_to_proto.cpp | 869 ---- explorer/fuzzing/ast_to_proto.h | 18 - explorer/fuzzing/ast_to_proto_main.cpp | 61 - explorer/fuzzing/ast_to_proto_test.cpp | 208 - explorer/fuzzing/explorer_fuzzer.cpp | 14 - .../0058bf96eefe20ae6eaceee383c12d36907710f2 | 92 - .../015080d35638d6c7a6dce55192171f043955fe3e | 161 - .../03bc316209e9f44df5533e0b4c72641729b3f4f9 | 266 -- .../03ca8fb6a63c2623870c2f28d0f7a64ffbfd5802 | 182 - .../041848ccba146125cb9038e818f54c3b495a6ad8 | 76 - .../0481d56f09c69f10476dc2498c39d6e7d4c24174 | 279 -- .../049f14948dace26b462bbe7e8a8675fe701608cb | 274 -- .../04c215eb24bf843a80babc4e3dd313b95c4e571f | 247 - .../0501aa4f45620235f062645d5ea731cb1927e39a | 468 -- .../0542a56192cecd529b82ed2081aa5459863f359e | 95 - .../05cc07bd9d1ef5b891c4f0df70a1463922009b5e | 3473 --------------- .../05ec89686a7f7283373c8ba37135ccd9586c1881 | 85 - .../05f7f32cfd698141c460623934959dd1a82f7109 | 191 - .../075ffc3e7c80e173985255c88542930d8fed0613 | 75 - .../07fe6d4b29d465ce688b6dd86b0571d1dfea03dd | 155 - .../081adaaf1729926b1089243ca595d1d8d2ab1fd5 | 46 - .../086eb5f16b73ed72781d5579cdf16dcdc4e94744 | 148 - .../0931a1fe829e600d14421a0fa4084d9c7176d01e | 434 -- .../09c98273d182befd2029eeb2d5913445abc23da3 | 294 -- .../09ed6f05cf53cd5658b00434fbffeffff056d270 | 234 - .../0a8b7f9961d982a063eb5287fa1fbc7f51e881ff | 102 - .../0ad8ac2a88b1144df515cc60cb824fdef6c712ef | 88 - .../0b8c017e8d7d8b363cb3d80dbfa45a8f917748e9 | 211 - .../0c0ca21a65e25a0ed34b97458c4651e3e211fd7d | 173 - .../0c1acfbf442273f3d4a3767b76a0ce511fb8e14f | 48 - .../0c86ef65371750e4a8b9cee11c8e47746abbda44 | 95 - .../0cb069aeca3e33c5b431baf6a25016982d6f17c9 | 626 --- .../0d35d72cddc3a6d315e59e166bde555410df6c23 | 305 -- .../0e6b20961131825faf926e7c56b0a285dc200c45 | 876 ---- .../0e92e106654000c9dc5d0887df617586bbdf681f | 262 -- .../0ec693754f4cad2f847af64da34d95de62086651 | 234 - .../0f4a5a4583189e307590798fd6a8535df7b43481 | 142 - .../0f51fb075d9a0ec04bf29588ae89cbead328d51b | 168 - .../0fa5dbb1cf634ded61edd83ac9aa1fb5435f2afb | 199 - .../0ff1237b5ca488e8bcf62b899c96f2279dd8618a | 582 --- .../10b3ac55167965078be7c7e32a3b9ac35742ebab | 104 - .../10bc53bafd07b8ea7cd8e5321d4720b0c46db012 | 199 - .../10bf4210ca99eb159f3e5e11b69ce67e4ec2e410 | 683 --- .../1111b8be1131541ec8c3a7b9c8a2e5e2cc634ab0 | 127 - .../11129722dc448b2011c92f79dc750129eff3858b | 74 - .../117ed6ced083ede3e318697fc56548fabe03039e | 512 --- .../1191f8daa134f3932d68bd24f270b2286a87560b | 76 - .../119a0b3341f7032a48ccdded931a1c2fccdd6f52 | 145 - .../11e091578ab1fee7bb92cf00355ff51be89cf801 | 186 - .../123fb6fa380b035e905b35aab5af9e28b936470f | 105 - .../13165465925de647ee3bd1d663a7e406b084a182 | 335 -- .../13699d187869d480a856deeb58a9b72a42414510 | 203 - .../137763417c6bb89b2f19ce90364ed912e997a51e | 92 - .../138b2d121b29802db4a2e37a2d563bc6ab8c5aef | 513 --- .../1390a7598274c8a07a7db037d164e7ba04fa084e | 127 - .../13dcb5a00f09e0ec0a7fd03fb720bdad03c495f1 | 128 - .../15005ba56570844e2a9ab20299631f8ffedc38c6 | 69 - .../151b851709a6cb57bbee182c3220b59c87027ec4 | 151 - .../15bd86b0412443771aa00da617795aa0e5c64185 | 484 -- .../15ce7e6d7d3131c20c8e85783a76e9405dc43ac5 | 74 - .../17310ae919b40b6ca070de923c138a8d75df0204 | 414 -- .../17a00f823161d813cdcaa73fe8a860bfbfa1266c | 192 - .../181b96bd90fda933ccc0f44032fc3e7ac753c091 | 265 -- .../1820cf28f49d1ee771fc53c74743e545529b509c | 184 - .../189f5602a95e12265aaf65183c1d552f0663b36c | 266 -- .../18e4b0c01d7c2527f3a3d682b114ec5afe7d539b | 310 -- .../1983eb50faba24986c9fefe94e372fb2eaa35445 | 172 - .../199d526c94d7b59769c7bea1306f67bdd4767fac | 361 -- .../1aa8b45819d453372d67a450012c501fd74893ec | 3955 ----------------- .../1bb31799f794a026275be18fd889f8917257b7a6 | 73 - .../1c15b9ff3704bb9603866c7a06a3070eb8aacc69 | 89 - .../1c2582d7495e080fa022962c6ed26fd62760e88e | 404 -- .../1c37ed06bf8776ee0d165e3ed3d8833a4cc9c760 | 190 - .../1c452ac633219d656ab5904d7638e5379e44a582 | 131 - .../1ceaf07b219a9004798ecc0856af9b0d10cce19c | 781 ---- .../1d0d6abe9b8f6cf6eab4083ea51891c7b09b5653 | 187 - .../1d36375d17078164cf9329dbe7f4b539b5323f34 | 62 - .../1e15985570e0b52f0d40a19e90b53ab6c679729d | 650 --- .../1e43eb0a0f7b622f2ee5153aadeba3c2716c3b0a | 98 - .../1e4fb57739ad776cee50880a79f29cdc6b532a58 | 370 -- .../1ea21248974dcd55d90a60ca12e8149169a9b34c | 747 ---- .../1eb37a662ac6fc2c01dc9b5b1317e9bdc7ce64ec | 132 - .../1f137378f423a375a57448370eceee7aaac663ec | 99 - .../1fb3cabbe7b1d1db38a57e533dd8047bf828a338 | 86 - .../1fcb05bd7ceeb20c92c134283274f611d58184be | 292 -- .../1ff7462970b50e872fa525ce63c82deb12e251ad | 56 - .../2123f77e8516358c52163a4fa1627361f3513f30 | 56 - .../21df195c24c357e5a8f18f482090d95d2524e548 | 199 - .../226b4ae2606b0af76ab25c51d0d61f3fa3b04228 | 63 - .../2291d3e5898c9c430cc6ecf3855f87bcae68cfbc | 48 - .../230ea69eab009635a68f253a70e7f55d8af387bd | 264 -- .../2345f2c6add76c7aa04327e5aaa0840275740385 | 124 - .../2420c58342df0a0df9e67e3b0edaa7b45372195d | 116 - .../24676dd9ecc105448196ca0eee7f8d2987ff44ab | 70 - .../249efd63613bc0828f4e14afd7e607c5766554f7 | 174 - .../24d0079e1aa80afab58150f9dbb67c4c0e4c931b | 75 - .../24e5915a89c0544f8b6a98614ce1627362c9c004 | 77 - .../2553611e44783982b46c96dc4751ed5be979a776 | 83 - .../2592ac23dae5631b900a05323bafadff16193ed6 | 53 - .../259a863ed9082cb8de31b5221b95287d39aed44f | 156 - .../26c2d5cf1d3f39a1f0fc16691f770713002312a0 | 79 - .../26c83f24cf6e29aada6ea5112db6d71c7f332b49 | 122 - .../2718684e5395145cf201b11e4738666efd38255b | 325 -- .../271fc28e0362d9f752541cf06e1131b70e729b59 | 478 -- .../274a41d566450247ad862675b54ac99f10b1a275 | 90 - .../277dd8d5c877be6c18233440ee001ace701283c9 | 884 ---- .../27ef47d1362933a6bff7e03fc14e5c5fcd23e2fa | 149 - .../27f47232d1bafdca3762a5c22012c5089f090a22 | 336 -- .../2824af73c9b3ce5d33a222f3b775182893af1027 | 182 - .../28c7ced2db84460637ac24a019ff2fab72d5b1b2 | 94 - .../28ef6e1e280a1f3621c9a5225e69844d0db40081 | 871 ---- .../2917ec9747dbfa35f67d9d61bb71d5d4d0fb4385 | 397 -- .../2921e84bdcbabd8d64c21360345ca280f9e250a4 | 94 - .../297403f9670145ba84245d3db2be10ea2ae9d0bf | 255 -- .../29baa699f49a55a3b6d733f3a0030367e1ab5835 | 301 -- .../29cb786e12d8db536d5f0748863f751ef4db52ce | 329 -- .../2a0ee4282b6c339348fee3a6921b56432b2f35a6 | 89 - .../2aa0ee106f4e4f04b322e83830ba574e8be2506f | 51 - .../2aaecd831ea460c5a721f9421d4965fc408d4c35 | 88 - .../2b1263de304325a3a6847294fa1a2aeb3564d22c | 74 - .../2b24973806eac518653f494a29671fad6aea010b | 666 --- .../2b342d5ea73ce8b83dd29a47bda07bb050f62d56 | 268 -- .../2bbd64b5c75365c1644b9823f9cd572ce53acdd4 | 354 -- .../2cd6e756af6d6c7bbc680961e794400e4ac3d6ae | 108 - .../2d454cacd53c4ed55138382f919c3547d81059fd | 413 -- .../2df8a45807e01a85bd980ac9aafa9f12eebb6fc5 | 199 - .../2e6b6f16fd486918688ae87eb3b4a197296989c3 | 133 - .../2ee264dd2bbf6040e1dbd35cec604eef029a39ba | 84 - .../303a2187a4ff61fde4b156859d305f3656b76986 | 291 -- .../3092700876ae00aa40e0943fc8899ea3f91363fc | 264 -- .../31d273b01e3ffaa1d70c216f7b47f61ef47f961c | 128 - .../31dac04fcde41a12dd5ea5286982cd742cea634a | 694 --- .../339a393ea3396484ed446474dd1297941d73bd02 | 341 -- .../3403e4ac6af4a73b926f2fff3deabeed59700d8b | 44 - .../34382e52368a627e3462ebe367a544dc97205e26 | 266 -- .../34480b195ed723214661d0a25c0d7f7c3ff667a5 | 441 -- .../348cf478cb194626674c53630f655ac2df93d4a4 | 45 - .../34e2656182b71815bf31aaeee8bc7c7bb84cd252 | 67 - .../365c379ec8eddc0153de4df6d8b0147898f78312 | 114 - .../368e52fbe545161fff4fffaaf503cb137aad964c | 262 -- .../374a512a3276eb89afbb9e17cbefa9c5e7a5c661 | 2810 ------------ .../375e126dcbeab71b2f4440a50fdb08b48fd8a2ba | 1432 ------ .../379173df9718b1accd00aacde04ed3abebd0d534 | 219 - .../381987301dac8b9aa96f181aa48c844fae12d16b | 69 - .../381bda5b34a257bd1e4c102676375db80d41b010 | 134 - .../38a97722170eec0621cab773ae396a26aaa16f4e | 93 - .../397ce3c37880fbb3afbd71b22c813e5c683894aa | 87 - .../39a40fceaecdc65b70e7ce7b7d8a24d51dbf56a4 | 151 - .../3a9d268c66c4487a73972c46d4f0c267eb91817c | 714 --- .../3ac0d6c29b482f0e76b42de1534d5bb8f6291d30 | 293 -- .../3bf47992175e99810f5143f78815d8f7ffc22adb | 81 - .../3ca6afe2242667a99658abe00051a19865e74007 | 362 -- .../3cae75fc41ad5e693acc6c2235d28c86630d48a8 | 83 - .../3cf181a4acde0cb7b2cbcf1f4bda95ca1cabd94b | 248 -- .../3dce35e13b36c3f9ea7657ac00237fd3ad8d42c7 | 126 - .../3dd42e4c74a7d422abf4795e78822f74acd02bbc | 166 - .../3e0db6c59759b3afcfef5e8ed5766dc316ff6d5f | 89 - .../3e637ff7352c6663376f6e223ec1b9cfd164e7b8 | 1781 -------- .../3ecfcb05c11917a4b4b669bf139000009610d631 | 136 - .../3f41751cfdcd69f6896ea1ffd616d2f49c7d4471 | 1124 ----- .../3f88413ff6071524f5b527a5cabcbda51d8266b7 | 683 --- .../400f23d9237b6a8fd7977731dd46469197cd6814 | 175 - .../407e3821284278185dec9cc60a0f8222519a091c | 515 --- .../408035d700db7dfd077e3d2dc58c3a20c2a52a5a | 420 -- .../40838f5f1f5c09fadb8c3d2cf2fd228ba1e4cc52 | 149 - .../40e638bcb8108b0d99231cefa3dee0010b5e1e85 | 154 - .../44355e6940769c65372ab6cf2ef9b69bbc4b96db | 95 - .../4494e1b83d1d6915c3cd6152fd2a520e407d7bba | 113 - .../44f5a8dbdee9c97ccc37e2d0749d221109b0fe7a | 134 - .../45416ee9fe788dffe4b9af83d322ae472dd1da1e | 68 - .../45e3a43e80f1bc62c0ff5794fa4d9c6e8f769f24 | 361 -- .../4636dd7b4d3177596bde1c7cc2478a45ba1315a3 | 348 -- .../46e0b7c8cbc5d0e7570bcbe89128f418839b9cd6 | 583 --- .../478394f347dda8510b53f7e921203c5886a7e8e6 | 60 - .../4860d253a5d68ec0c9f8ee444b8d380d31a6216e | 52 - .../48caa4aa710abcf73fe7b82ab8fd9fbd10f52a7d | 1016 ----- .../4972578fc0a523302c5bc9f42c2fdcae619712fc | 61 - .../4a22b3794abf57497ad89d05995434a0aa7d0f47 | 264 -- .../4a2ff94c1916c48655f498955011a06fbcdf133e | 179 - .../4aa3752736e554261748faa2a497272dac8fd2b8 | 241 - .../4ad65277ecd7e0adcd7692e02df993d459ce4eb1 | 162 - .../4c583e243d825ce8abb6144c1642ea8160043283 | 405 -- .../4ca78730c3a34f5efe521f89320a7b050ce7f349 | 22 - .../4db783997772cefd555355a807a90e04e414b988 | 76 - .../4de145ab28e280ab01528564fe130659272c2e52 | 388 -- .../4e0c2238235281a56e0b58c3ec927a3466c8b1e4 | 242 - .../4e3d3da4c4bcb8b1912b9d0e247c3d291299b94d | 88 - .../4ea4b1a51c61f79c9f6b5b0ebd03454662abd1cd | 157 - .../4ee954ee8c71e3023e3855608bd6c60185453505 | 396 -- .../5007f895491a8fd45ef5bd8da0a079938bf4f7f7 | 1126 ----- .../504ed50b0973afc1fdb432d2dd0798ae8705a997 | 141 - .../50afabdf6bcaac0128c38e8b07aaaf0139caa5b6 | 100 - .../50f6f5d13beb185404eccd575bc75cae3abb612a | 187 - .../5258b94636d20581bd507b9cf0e0da61228647b4 | 96 - .../528816469d00b09f7410035a7f4d79d5e32934be | 34 - .../52f893245ce034fe614a546e3e29b07596f96d41 | 40 - .../5318fd00c25f2fd65c5e8d90291bb477ea229fdb | 60 - .../532a630b4756515f297a4c2aaaa9c0f3b87e65e9 | 102 - .../539a7012375a93a28857f6241de424b0e03247c4 | 45 - .../53aa7568a4f7b1c0c6721ef5a3a39737131a6a67 | 111 - .../54c240f4335e37fea9731487a93befcf4f0ccf8c | 112 - .../54eba1cba056d1c06f5b3c12a126c9adfd9d528a | 265 -- .../57eaf2918703b28c122367a87dfcdc90bce157dc | 700 --- .../57eba240b39df476aa0a6a3a23f8f01eb21b6143 | 84 - .../583ec40d68e7531222b5e4044101e9575c4509ff | 148 - .../58c61db205983d75beda870ceebfa61a70fd300e | 222 - .../58e115140e5be839f41599aeb2b6a03368e72656 | 239 - .../59f5bff3c89e6ae504001fd40e25570fa68f4816 | 326 -- .../5a006fff8e99d72fc86aa8545e73e10c13603f6c | 119 - .../5a642703129a307f9a14474706f5e2f56b2d7010 | 116 - .../5af9093a8103ad8ffc72eb63999ae64d30c09354 | 53 - .../5b0199278f094e43e9138a16476f13d3ba564d1f | 93 - .../5b9b375c91986279a8a110f96835a50cbcc0260c | 273 -- .../5d290605979c6ae723f8c79db98fcdee8027691b | 348 -- .../5d2c41a41b6e8763c34b8a5953ffc75203af02bb | 119 - .../5db5461375b313563b11c30a656e5e83957a908d | 132 - .../5dd9c62b5221d7a85e9e1b4a4b331be2c339ab97 | 65 - .../5e1b0ea6622640145c4876931e297c5edb8231d8 | 145 - .../5e3b2219c7b0a5e971058249c4531d2069e951e9 | 37 - .../5fb13293fefc17d09c0cc7c2e25e6eba45bacb71 | 237 - .../604e3189c3c6fdcd4ba5375a88614370264f92e1 | 71 - .../61d367a42b7becd1b4b939d56353897a36e5f096 | 127 - .../61f23f04c75df376c54549d73cc0decdcb786bf2 | 84 - .../61f3084cf911f5dfd5487e87683572a914d1869f | 325 -- .../6219bbd6eb7e0d3fa7e8bc5fa554e2e2aff95733 | 130 - .../625b7bfd93cbc6ff7a3c8224e64a4ed8505589c1 | 127 - .../62b8e32751dc67f7885174de27430929aa7a4ad9 | 74 - .../62bbd62118bce3d51da4dcf8408ca2ac6160b6ab | 350 -- .../62d6f3f23f38c08250ccc296707f3d8b31b458fc | 132 - .../631fdd18ae26fb841982077231672ba638d5466d | 51 - .../634aba8b73bb4c4c12485ac91c2b3dcb631358d0 | 104 - .../63857ff19609e08af0207d8b1dab6e4de65dbbde | 120 - .../649c2be3e1b157349cd44f67894ad550e9d33ee8 | 132 - .../6506dca4030d6950129d63f064289299d3caaf39 | 1087 ----- .../65c43429b61c8397acd866f828fcb47cbb7c16f4 | 726 --- .../65e88126f8b67fa52bc1cdad9b1eb44f52709925 | 82 - .../673f35f759ee84f2f94657b0930f2b74b429b144 | 224 - .../676dcd14b69ef443edb46d3f7d0bb24e07d4acbd | 104 - .../67b09e185ee33d38580bc1ae4be51419b7a7ebc9 | 94 - .../693c700b7aee574a54f5703171f786851195a97b | 120 - .../693eab692d17bea44af514d53bc2373d40ab0927 | 137 - .../69db4f861b4949d098e5705e9392d06585a5c8a9 | 63 - .../6a95e8884b0a9a11c49828db369179c7d52e6f7f | 175 - .../6ab7d6a964a424b00748ce1b65fedc4cce3ee1c8 | 469 -- .../6ac46cfb4a998ede3392679c83839398fffea96f | 45 - .../6ad89dc865016d2d3a0841b78165e85a1f10a15d | 184 - .../6ae5582a206dd285cc4b6a16c4b43ee0eac60513 | 373 -- .../6b36dec52800ad9f326b75b51de5237a009abddf | 425 -- .../6b55b4906ab4a1bc8fb2e2c1dcb9815fccbc857e | 570 --- .../6b8b5a07609562f73a0fea986fe4fbaac6f07302 | 75 - .../6b8d32899c42da294378f3bcdd6b31bb825ceaa7 | 260 -- .../6bd6a2e44dbfe2c7012bc97507b56ec79d14ec36 | 128 - .../6bf3f7a037ac5bcdfff8b904bdd801aa04e6e3f9 | 73 - .../6cef9effeb2257bb69c9b96fe57051bdaf07ebdc | 88 - .../6d446a00a2ec3646a47ca64c9d47900af609c04d | 209 - .../6d8efa516d912ed4fb3a51abe81181ac5a3ce7de | 303 -- .../6e805a62f04827f2dab730e0bda6d7e3b2a396ac | 92 - .../6ea3e5dc732350e61fa2e1b2b4af3dac49fbd7a2 | 165 - .../700edad66fdc0ecca488b76faa561bd812a32de1 | 88 - .../70381203ec4a62c0892c9169af38afda36aff77b | 269 -- .../70c1ffb0e5928af3588ad282ca66e09cecea781f | 84 - .../70e5a8e81363e001a3c04485baff3c0b45f543c7 | 171 - .../71343714ac735fe6c6370bebfe3f30e2555fceed | 202 - .../7196097c3c0a0a0c5e13f3ebd44cb8f70e3a369e | 82 - .../72e14e2a23ba4e07dd8ecac1d2a0f307982e22fd | 230 - .../7301e760d4cd4136a6260e0e5db5f884621f6711 | 70 - .../743374116966cde7bea7be19c3b44f4f4742cc84 | 173 - .../746204b64652d56258e37760629e723c7162cc3a | 274 -- .../747118a48116697aaf5e83f4d15e75409118b8b1 | 172 - .../74f4572d6afa47a85b20d69c03c4b5818229508b | 125 - .../750a107625f4dae089bbb0769a301289e768e3aa | 359 -- .../75bf07b0ccfce55eb53f712ddb01b97724ec0fe8 | 116 - .../768d1a1eca62b0a19d89ded728ccb834470015a1 | 70 - .../77c33306ba5c8c2cdc3024719f87f55a2724c754 | 52 - .../785b758dbefa9d1df1a68e97b99529245a615e0a | 184 - .../79176b267da0dd33a6ca194a94b38a711707c24d | 227 - .../7953600f9a139afbc9c5259103942beeebe2137c | 163 - .../7966121e536a00b3ed0b612ec9c4129af371106e | 62 - .../797132dd445ddf47c9af603d780036bc0ffeac83 | 1122 ----- .../799cb0db63d5d948ca4ce3e6a438e6d03a363b07 | 178 - .../79d7857c66a89562059d86a9e3ee1c3a644d50ac | 117 - .../7a5c922589df17ecc5835d3943d4e2268b75d220 | 231 - .../7abcaef173ca2d52652cb3457d945e27f7ee0aad | 46 - .../7ade8ffa35294159dd8341822eaf0045b55e0eed | 124 - .../7bacad50af2d1a03e8895abd390b606dffe73912 | 196 - .../7c0f663879e94a5b343b9cfbde2c12a5ef03a53c | 124 - .../7d23fc6af8c121d6031662230dbc4c5be9cc1c71 | 155 - .../7e11ddd6225ab4f5b4768bb3e57813b7d00efd49 | 777 ---- .../7e2746a39201e0372d5512b5d07ec968fd1296e8 | 543 --- .../7e2a2d5f2ca21106e70dd832ab2c795d31dd8c17 | 70 - .../7e3b1ea1f2b40cfe7dd4ce72a43cd8b5e00637f0 | 222 - .../7e9eeb66c47e49e06eeff2d93fb401f467c30fdf | 344 -- .../7ef42cdd9381bb7dc751b0530516414d10b58d68 | 52 - .../7f260f482af7146c582240a9b8de772dcdffe0f3 | 251 -- .../7fddec4675773d06799615ff6bfa69d4b906b353 | 233 - .../8037762d5a218fae491d02aa757fb3369bda9426 | 77 - .../8093a8763a55e91e83b621e091f6da25cffc7dae | 93 - .../811069452ad656f7050892b008d38f6affd52cd5 | 689 --- .../81bfc600dcb7e3e016fffe7399b9186b0da24867 | 347 -- .../82062a4058a65188662e584e9290464c5cbec42f | 53 - .../8231f88ed019d7c867f63fd99a72ff83c877ce42 | 69 - .../824b055dca1a7fc530205097c771552062b3c481 | 66 - .../84f33da279e8094d8b60651abed12669677a5c60 | 116 - .../84f60d58147f313add8f2d4c2cca5ce728b51e9c | 89 - .../8506098ed285fa6cf6887ef694c68ff07fbac234 | 824 ---- .../852294518955e4133ebe40d96ddd483ea675f576 | 1052 ----- .../85658e57b27175b7be324b93be25409f5cc2d155 | 337 -- .../856d1a339b7da505ec405b29e2ad71128a2cd042 | 89 - .../85d5189cc7d0ac992ae28f0eafcc5d4528482f32 | 82 - .../86538c458c4469fd4394a2cf09c5d38bf06dde01 | 157 - .../865cb6ed43d05b0cd8865aca8e220a5f2f1c8ee2 | 61 - .../867ca2a85f7d32348f245c8b4562d19256c4bdcd | 350 -- .../869a572f42c6d5ba437c45a7187b350b1bb27c94 | 105 - .../86b24842438ed47cadc8ba57576d5bb33a35df88 | 253 -- .../86d67468feb4d4a3ebded86e6007537cf79aaa7c | 131 - .../872a1696dda48bb21c65aaf1be4c599c0ba7ecf8 | 156 - .../874473ca5ab1dae91e7c4a71db943c174f1c39cd | 72 - .../8837f02cbe18a4fc33680ebb3e38bf767537a0d3 | 318 -- .../89bf648a72b186cde6349d5948d0fa6d5ad455de | 187 - .../8a565b071d627367b678eadfe0000ad02312a51f | 282 -- .../8adf65cc00034e071aa55d64643de66f92e08cb4 | 79 - .../8af1e91a050ed3a94b03ae4eaaa4ae65d8e5975c | 1669 ------- .../8b399fee75055c239d6e3a6324e4c5696b9cf365 | 490 -- .../8b3b56d79337df581f59f424f87fa05b9d3b9b9f | 181 - .../8c82de66ed8c2c2e00ff9d0da8d299a7bc2e0a52 | 852 ---- .../8d39f5c54290acb5e80f4c894eb4c9a9b4034079 | 420 -- .../8d8fc98ec23cae408d8ff32f0e7de3ba3944bbd7 | 96 - .../8e3f4815a1ee1b0f4ba0e22948671d0ab521ffcc | 128 - .../8e575a88fb791bc74ca549a648e40595728c462e | 309 -- .../8e9bcbf7165dd788f41880e494a6b34178c818d9 | 50 - .../8f11bf2d763d565d4003e723c117c3b7fd5a54f0 | 53 - .../8f560dc1a60532489b6c400e1efcb7d6a8941388 | 439 -- .../9064723daf6148e18f7195f319095238fe717cf8 | 91 - .../90e98e569c2c9dccbbbf6036b2ca560996e27456 | 857 ---- .../9120ffbf9f9ce9d0a6c5737fe311aa702a19d72a | 115 - .../91ac9c25f698c4efb6886c33ba330739e7087851 | 893 ---- .../9215313bd5600fa9a790a2a025db8dd25208d1de | 168 - .../92ba578d44ebff520e839924230e16dfbeb26536 | 121 - .../93c10ced6270f76ac1c5b8f10c78eb12c361fd9e | 125 - .../93cba88aa6339c5b99fb1179a53081e985a22b40 | 653 --- .../9418eff433af407d7baa42c96fa8a821b5bd1413 | 33 - .../9475c489913e570bc90c01c9a867ce67b5640087 | 60 - .../947944c011b708642cc80e31b42d0ba3d38426a7 | 179 - .../949c23e4727e022b5ce9d33d4fde5d52d2990630 | 63 - .../94d55b3b044001e9f35feb3eda9c09ad5e4987b2 | 152 - .../956018ad0b7aa4d9f9fa03487c5f00d7e0be25f4 | 234 - .../959ab866676eb9034a8dbf532200bf297e045806 | 442 -- .../95f55554ccb996e94a54818e5d692fe7e46637e6 | 174 - .../96697f48f2d3ea7a465d45e840cdbaea7265c9da | 115 - .../9696b507ce04184fd4fe2cbac445d3d8cc16cf88 | 82 - .../973324f1915325eec6893bd8e505625d2ac1d9f3 | 714 --- .../978b667e4d12c196abd3a4e1ec52f94e57b3ad5e | 137 - .../98607e0a14ad66068f230243fceeffc600cc57a4 | 106 - .../9a3c36288c9320a9c2fe8250584ac23e96fcd357 | 50 - .../9a86715151b6f28bd7bec84534ae0cbe248d6374 | 412 -- .../9ca0587cdea69c87cee4dcecb747f5201f47fce7 | 456 -- .../9d40d743d76f2b406047513146ca9db3d2af7550 | 148 - .../9de303a702b10616ceb04deaa52af70899c4db4d | 179 - .../9edaf75a29bfaf3a1dc00b3356ad93a904ec1bf4 | 90 - .../9f2b40328127947524429569157002cc2c8b4113 | 90 - .../9f7214ed05fbc790b9101054c0cac6f4f60de1c5 | 75 - .../a08d92d7abc23040943022426fb46a276cc2101e | 120 - .../a0cf3d4ea5a416fd9a0734096c0214a9143ed71d | 91 - .../a0d6afaa5de15f753b76e48ce21b77300d4247b0 | 548 --- .../a103add196c50b16925c2d218749cc812d912a7a | 99 - .../a3050fa0d18aecf519f74d21c344a5727f80c10a | 145 - .../a3b3ebf7fc4022ce6c2ef4d257edb183aa15bf1e | 178 - .../a3e7fdd6333766ddcf6e0ea91314908660d30ffb | 201 - .../a4b77ba4911d2e3e0ffbee880c454b47c1a67cc8 | 110 - .../a4ff3bea934cdfdc0f66a25641fe6b19016ef1da | 553 --- .../a5cbe60f4b842b38d4daeb66b4f8b8efebe1deb7 | 242 - .../a60a8a53538192ead1fdde89d92778dba80f9224 | 136 - .../a63969e9231d175a9a38e210ddd976ddd91320a0 | 177 - .../a6bafba04f6e5e43d76633724a0858c611a00248 | 296 -- .../a6c74d103e741edd3f4a0b34d114b451bebd4593 | 63 - .../a7f8b0f9b13cfd705824c887103f516d87d48ca4 | 116 - .../a84a42d64867252e2e7144cfb8c31dc7a2d9526e | 61 - .../a9a32f0f6f90b118987f1813f2ea7e7726f399ed | 73 - .../a9f29fe9b82f4f0291f37c61777dc38f202cfdd9 | 90 - .../aabfa1065ebe0a671c2a78961b101a1d45ab0acd | 355 -- .../abe990a35bad5c0ed6f66289dac8b310bccf732a | 69 - .../abef7d05195421c940d49409627c5b24d4f2b916 | 57 - .../ac06160978bdf5b1ee077ff7b4e0136ab2ed94a2 | 117 - .../ac7cd64ec76981e445dafd5575bb4064bf58679e | 628 --- .../acc5855acb0ff0978d05f4b38c1b4f294cd24e10 | 602 --- .../ae187d3c2a3f587cfc53c496fdaefc7237b5da06 | 68 - .../ae4250e3cccc84665079618f2b1e94890c23a863 | 244 - .../ae6f380f5cff73707edfdf951fed67cef050702d | 134 - .../ae7fb22c5903ae2bd7eb6c125aadc6e1c39a43b1 | 72 - .../ae84a74278fbcaf0a9526002d80d7d688071f830 | 150 - .../aec8e41ec050f7ac7949c98922b69b326ead66dc | 156 - .../aee45564efafd5ba31e2a2ff37ec28e6a7467454 | 49 - .../b0104f7d6a22c98bb612f42cec045f64f0599507 | 70 - .../b0491a3d1a612b9db8c3c0aea3beb47bb1c969bc | 139 - .../b16cf513638e6de15cdbaa109f89af668838b96d | 124 - .../b199b67a1dc9ed62f467033a9d14b0a7404be0af | 2025 --------- .../b1e9560f0665a4c7381526676797f330b5ddaf72 | 150 - .../b24ab1329ade1d249042b49cbefaabe9e289d990 | 117 - .../b273f6d89c4098dddc6a17fc2200950b2a1ca8b2 | 598 --- .../b29000a8e0ea6fec127c857cb6962831455a6864 | 625 --- .../b2acd6d4db835cc2de6d578a31e55c9723d376e8 | 269 -- .../b301d94100ed0b15766a8e48767ea685c582104f | 83 - .../b378b42f85eee698486a62693531402037b1bc49 | 94 - .../b39595171e8c39e233d22ff07474d2930dce8de0 | 637 --- .../b3fe9e4e59812a710955af9540ba6ab44efbaf64 | 53 - .../b4336ccf8951de3a6f1eae4148f3c5623ddcb422 | 104 - .../b474e2aac0787cafe1ab33ed25b46bb23f885722 | 107 - .../b4bb9c9262bb757df5e80767ccbae9a4ac881725 | 507 --- .../b50aa9e7ace48dadf651bfa991001f91782dcaed | 119 - .../b55695cb397c83a01e77b4979eadc71307bf5bb5 | 162 - .../b5b805036d15f3a938fad5b99b9b07899406fbbb | 32 - .../b6faa454160b04a71aebd4eefba1074e82f6b991 | 373 -- .../b7073fc9e1dca3289d930ea8cebaddf7ac01f97b | 103 - .../b726270c1f1b906118bb7bd3f0e31fad70e53bb3 | 76 - .../b74151b3e158893704ac65ea4234df17aa39ba2d | 102 - .../b82b61890040bf6bd38d81508e0919e979df0360 | 341 -- .../b84e935c0a1d62f7eae55e1c41759d8aa23747dd | 48 - .../b8d5ed2d1a8e04bbcb473f9207bb5f630d0666cc | 87 - .../b8fe3d1147b59ce7acbd34b111453df89e1f4060 | 212 - .../b90c4652e387f309191792de386c87b605bb1b5e | 138 - .../b92d5aefda5ebdbd4f97bd058532aabac8bbc4f8 | 51 - .../ba79ad54a3664f4e5749ded96c86af21106c4a72 | 64 - .../ba81a58612be6ea3790e3eb6453cc528eca37ae7 | 61 - .../baa653209768e0bddfcbf20dab23706384a09a0f | 63 - .../bb0e7dc79473b942b06030f09e977ca7d65b9909 | 202 - .../bb1d40f46f5a1b10ad1c4fe3f4dbe58c2490cd6d | 121 - .../bb99a69c513faaa42a4d69c083f11fd5c0bfc2b6 | 350 -- .../bcbbdac8be36d57d05bad59f42097f30f4791482 | 660 --- .../bcc2dd95b1484870236d97145082f091d04420e8 | 209 - .../bd47802ae44cb178d49ce02e9da23114b99ca251 | 201 - .../bd5f1f538a69fe0749266a9dee58769dfcf466f6 | 53 - .../bd773479ed6f502a082574ee2628f87093ef738c | 170 - .../bdacd3ee8bd272bb8e010a36fdcf4a088e4aec58 | 43 - .../bdc54a47f8ca73c471d86a7f88a172bd50b1225d | 350 -- .../bfe98852a578baf4355b38a92b6a7e926c406a98 | 69 - .../c0ed5a9d140f0566bbd198e0664af222757c02f2 | 164 - .../c149c4c29671c2acf61e2e869975aa39006097e1 | 114 - .../c17ad69dffba927b155231a8149a72505bf1bed4 | 49 - .../c1897b534a0b24174082b7de0e6afebe203f5020 | 64 - .../c2147917fd04da894c2b5dfa60a832ec96cfd4cc | 276 -- .../c2f1538ac726bb759417984a05803182969950d2 | 212 - .../c33b33a69a00ad7377d23a792435fa4b777964d4 | 265 -- .../c38b996f7ea337af3f99bc53f015707d0f1658c4 | 609 --- .../c3c3a8aee0abfdd263b57f387db0ef47be0c1fc1 | 99 - .../c449990049ecfeb94ab46604585847db44f97d1b | 210 - .../c488c3e1283e14e163f81c7155f5f3deb99ec993 | 181 - .../c4bd597847d498e86c6430431f022c93b4f1fac3 | 419 -- .../c51668b2002919bcd2e72177c64741e6077ef8cd | 181 - .../c5d1191a26e60b5d7346dfe077dc864d1d0f140b | 216 - .../c5e12b066cbb6a6381f51a01431346fa332edba3 | 588 --- .../c686b589661a7deb008e286c6b5596b22c017615 | 171 - .../c6f657ee803166d7091f0a59cce11feba0319c39 | 487 -- .../c75f1f6324f2ebc6cdf2c0e8b96752c14e6f9fb6 | 45 - .../c8751055cd8a1d14a9d8ef7dea2ad215574c0f95 | 122 - .../c939e8058be1e7249a4b189e9e676abf41b9af36 | 216 - .../ca2009748b6a855a646c2ea92b74c0391780f2ea | 68 - .../ca9dec79282193d860160dd2f4bef7cdfcfd6369 | 218 - .../cab6a41e14e973615829654a236d7b115bbc7a4a | 57 - .../cb50321f6358690282c733b3e81bfb99352763bd | 136 - .../cbe6ee626f17131b0f169142698988362cd416a4 | 88 - .../cc12041efe79d6fdd71233d01abdfc2fa9b1e145 | 139 - .../cc16e3023923b2a08ccc12474484922b3877cb7d | 168 - .../ccde77cc350813aca7fb8f9ddba7c15cf19aa753 | 130 - .../cd62089d4819abbb9bc53c6f05b9346a6e4da9d9 | 121 - .../cd7abde20f670fdcd4f1dc6c46514391a210b633 | 55 - .../cd81b4e344fc340d010b8eb5257e41bd1de259eb | 116 - .../ce21c01f50fa918dde114d98533c177667957b44 | 366 -- .../ce4a5dca5b77ec62e460a5603a9ad3240cabeebc | 67 - .../cfb7c4c944abce79527a792be8edeab8a105bbee | 90 - .../d005a63d70a3265665c19c84e7148a6b8f37586d | 207 - .../d19c4ff26d2c5050306f61471db7b2056316ddfa | 48 - .../d1ca518b60ba67635582c9e1f7dca5cf228a8eda | 997 ----- .../d1e9bf10ba663a79370c09ca3f2f7163f1f73bde | 73 - .../d1f2737124dc5d58887ec7f9058631d3d0b161fd | 83 - .../d22d12eb1a14d96b87311cb90c6413a41d777fc1 | 111 - .../d2591834746c559d4b267154ed3541cf52319bfd | 57 - .../d3212565f73f5993018e380e910682e30215bb13 | 95 - .../d3a897a559f329f737df929fe871aab5da3805ab | 80 - .../d3bdea629fba4740d1ce04e94e66ffa528796f7d | 579 --- .../d3e875bb57012d16109ee38af1b3c63ad1c0119b | 73 - .../d40f0eece13f11308ad1f7a965180857fb1972cd | 101 - .../d415acd8c86e6475fe8d0c8a1d5de351a99ea967 | 37 - .../d461c6f24473e9f2bbc61bedf75fe8e87ee5ac15 | 64 - .../d494ba5ee115dd8fb0ab0df4d885fba5f66205ae | 90 - .../d5307d189b74cf05f358cb224cef368a67854c6b | 660 --- .../d5815e9c43a87a98252b04dfef6cbd8bf422bf11 | 124 - .../d59a7e060c3b84f4c824a1eb73e6e8251e4d85e5 | 87 - .../d5ac7153cc6a2962aec5efa8d6e29766f02a14b0 | 103 - .../d5c05ce4b7120635d9b0ff8f66429daa96a48f3e | 337 -- .../d62514440c749d819c68b215647113bedb26deee | 163 - .../d6d4e4d8991d7ed953b06bbf4f7f79332fc55262 | 34 - .../d727a802b44490abfb3ce1c3794a16f0e6d763b4 | 245 - .../d75851c53afd66d3635ec3d3fe600e5a0cff6289 | 75 - .../d788c11b524a4b9e0ba8eff32a342f38f8fd452d | 50 - .../d796ffaed084b3712e41d12d011d75fa05747b4d | 182 - .../d80a07a449e27a4ad393b26c15db6669670d1454 | 288 -- .../d8b510587401004831ef4bdef4e4c71f87366aff | 73 - .../d921aec562270acfaa51de02327d430d5f83c90b | 350 -- .../d9e9c12831efda83ebde3f030908faee27a4ec66 | 86 - .../da4cda66ebb9c6633a08995da35a4ee374166704 | 277 -- .../db8f1269569934ae031d1118e83408d71bb48456 | 61 - .../dbbeeace76678d1edfee6d889ec2c8b62ee540df | 66 - .../dbdfda02dd7254b8f91ac01ded027ae583b1b6c9 | 139 - .../dc2bac7f337d98ff2fa2d34a46b4a7189b808004 | 68 - .../dce8888e7cd22ca49874c3a06980ae13c0db0a56 | 98 - .../dcf3bcfe2b837b1da0c48ba297e83a091fa31056 | 269 -- .../dd85eb7cbd01eacce9f8904bb7d1894f2aa7d3b5 | 238 - .../de53043af63bcefa34668c2616de2a4bb376c7d8 | 220 - .../debffbef624f8600943aa77137b53dde725a98a3 | 390 -- .../df0ece360136f1fdd9ac662839342edbe8355ff6 | 66 - .../df174278898488f5f9baa6d603e16c74d2ba0402 | 66 - .../df3c512238132d3e0131469f7e1026499b241ee0 | 50 - .../dfa98dcc49016ec99cb77ab6dc61ea74e7a781f4 | 78 - .../dfd63d5f0d06c8b1c4342b746666eca91e029e33 | 172 - .../e16ea66236bb097cd84a5366b1b0035149a138f8 | 719 --- .../e272e11bff55666087eff3499d0284bbe951ec76 | 105 - .../e2d470d716b0c66b140be21c060b3cf401703c31 | 323 -- .../e2ebf55cbc076357576ce9c6d9901ded3df34748 | 157 - .../e3aac38bc36851ee5535a2bfe5bad50c6c8010cc | 111 - .../e44c7ad3b9b7415573705116168872fedd852901 | 120 - .../e53d906d2cbcf9f5093788833c5d5407a6c880de | 253 -- .../e65523d2761eec4d8f5c67e5fcbd9115c6b09f30 | 48 - .../e66bff6e3838e7aa55b6061496c25d641d3da0fa | 63 - .../e6df7945d323407e61102a35e1aa2c1306f1b18a | 381 -- .../e6e7b6a3139f1d90ba1a04738348922221a3cca1 | 133 - .../e7c022b29b97c80fd7a44ffd30e554b1485e1a1b | 100 - .../e82081de43e68d0d9f165e5cfb5393428d8b0418 | 76 - .../e856c5a9c99e1334a24dffc16142e13ed7654c1f | 304 -- .../e9196781615970e8ab047157e4e8a29c1d8a3398 | 173 - .../e941969dc816f1f93915ba635bb925abb88f4780 | 227 - .../e97c6a39ea33c93381c166c96e33b29658320b75 | 233 - .../ea58e94df8f76630fc2f841df7e3ca830751a901 | 339 -- .../ea7caa99b1e4c98d3fdb9b2df61548bffe7127c1 | 269 -- .../eaf1655f413b07c8a2e853ae104947b25ef82f10 | 405 -- .../eb743ff30c319bedea7cf7a9f9918a24f8c17f1d | 182 - .../eb89ccf2783e67c7e981beca75ba8cea4e5d0af5 | 89 - .../ec5312210b747b89c9dee82b8cb4e97ffd464270 | 660 --- .../ec5d47c039afde5b6a6fd3b293959ea2d25d4192 | 405 -- .../ecdf063b10b4bdc553fef70d25dea4017bd7e895 | 181 - .../ed5e0b7088b06b6fe1b48ecdfb94d0538e3bd0cb | 111 - .../ed78839715d8d84e515792b114f227bc6d46029f | 246 - .../ee427228e0af7ff6d3f2934ea7b305d1db78add0 | 73 - .../eefa6e59ce3e48fb9ae9b863dc1bc41a6f387802 | 155 - .../ef16a6363d8fea90465cad2ae210fe5d6e60bc04 | 68 - .../ef8c4aac22a87b29cf3c77d951dcdc7be67d9f40 | 88 - .../efa240ed14717324b4e69b96dd37978d9205e4b5 | 248 -- .../f0301956e0abeecc69b9af9697e4edf94513011f | 135 - .../f0cefd1478c7fcbc69318e8afb126d12afbed53d | 116 - .../f13ff8011c90eaa1acd4acda1f60aab67e8a0cb3 | 405 -- .../f1a704a2a6b6f6e9c6c0443beab1351d38140d29 | 126 - .../f22caf1f5f9e7b1be271192804fcff103b6df437 | 355 -- .../f291191731f808d4a0af70817f2790fd73a856d3 | 139 - .../f2adb5ffa5089a7f0e1aedc0c86ca5e5dc599bd9 | 361 -- .../f3454063d1455382b7560e4919d46ff7d4e8edc1 | 182 - .../f36e26a77634cca16475bd639220ed9f3c10bbbd | 158 - .../f58bb0ee703a6ef927e40ef61ae26be39faf1110 | 86 - .../f69e3144cbc99fb1dc4d1c8f7a1547679ffeb93a | 479 -- .../f70134eee684858470cf431f3a004f847726b93d | 371 -- .../f814186f2592800967681e54f9d8e5da4eda4a98 | 230 - .../f8cec197859ce23e82507f1650cf7baadc414472 | 127 - .../f8ecddd975e9df85304ed892fc3467bf3450d1a0 | 404 -- .../f8f7da248667d0f6322e9fae98af78f87b071598 | 272 -- .../f9ad0401636c2e754eeeaee44af4b89a17dd97c8 | 145 - .../faea007214fb062f0b65f0b222cefaf2e56c6af5 | 709 --- .../fbcb1c13d98039a3f2e72bd269829405a5b5ebd2 | 104 - .../fc24f01a1850c3f6c052da65c37eb3121ce3f9b1 | 135 - .../fd4bb5bb72e1b859a74ec8b7bf80141c6bfa162e | 134 - .../fe2d8dd69f81861333652f711d68b91c57e3cfaa | 136 - .../fe6b80415dd5bcc39d4ae70e86907dfab51f47db | 77 - .../fe809bc6dc76afca1a64ecb2b7ec9c2656b64901 | 194 - .../feeda94dab9210897b2b8179722714388c1affb1 | 509 --- .../ff47496b2b3ab3be74aa5d310783eb4e07d8061f | 89 - .../ff7d45f3301643f90226cfe6fe84d5df2cee7a7a | 71 - .../ff875f9fc0fdd10e6dfc1c221c7c423eba8f0e95 | 159 - explorer/fuzzing/fuzzer_util.cpp | 57 - explorer/fuzzing/fuzzer_util.h | 24 - explorer/fuzzing/fuzzer_util_test.cpp | 58 - explorer/fuzzing/regen_corpus.py | 118 - scripts/create_compdb.py | 2 - scripts/fix_cc_deps.py | 20 - testing/fuzzing/BUILD | 54 +- testing/fuzzing/carbon.proto | 491 -- testing/fuzzing/proto_to_carbon.cpp | 1030 ----- testing/fuzzing/proto_to_carbon.h | 27 - testing/fuzzing/proto_to_carbon_main.cpp | 51 - testing/fuzzing/proto_to_carbon_test.cpp | 73 - 594 files changed, 5 insertions(+), 143320 deletions(-) delete mode 100644 explorer/fuzzing/BUILD delete mode 100644 explorer/fuzzing/README.md delete mode 100644 explorer/fuzzing/ast_to_proto.cpp delete mode 100644 explorer/fuzzing/ast_to_proto.h delete mode 100644 explorer/fuzzing/ast_to_proto_main.cpp delete mode 100644 explorer/fuzzing/ast_to_proto_test.cpp delete mode 100644 explorer/fuzzing/explorer_fuzzer.cpp delete mode 100644 explorer/fuzzing/fuzzer_corpus/0058bf96eefe20ae6eaceee383c12d36907710f2 delete mode 100644 explorer/fuzzing/fuzzer_corpus/015080d35638d6c7a6dce55192171f043955fe3e delete mode 100644 explorer/fuzzing/fuzzer_corpus/03bc316209e9f44df5533e0b4c72641729b3f4f9 delete mode 100644 explorer/fuzzing/fuzzer_corpus/03ca8fb6a63c2623870c2f28d0f7a64ffbfd5802 delete mode 100644 explorer/fuzzing/fuzzer_corpus/041848ccba146125cb9038e818f54c3b495a6ad8 delete mode 100644 explorer/fuzzing/fuzzer_corpus/0481d56f09c69f10476dc2498c39d6e7d4c24174 delete mode 100644 explorer/fuzzing/fuzzer_corpus/049f14948dace26b462bbe7e8a8675fe701608cb delete mode 100644 explorer/fuzzing/fuzzer_corpus/04c215eb24bf843a80babc4e3dd313b95c4e571f delete mode 100644 explorer/fuzzing/fuzzer_corpus/0501aa4f45620235f062645d5ea731cb1927e39a delete mode 100644 explorer/fuzzing/fuzzer_corpus/0542a56192cecd529b82ed2081aa5459863f359e delete mode 100644 explorer/fuzzing/fuzzer_corpus/05cc07bd9d1ef5b891c4f0df70a1463922009b5e delete mode 100644 explorer/fuzzing/fuzzer_corpus/05ec89686a7f7283373c8ba37135ccd9586c1881 delete mode 100644 explorer/fuzzing/fuzzer_corpus/05f7f32cfd698141c460623934959dd1a82f7109 delete mode 100644 explorer/fuzzing/fuzzer_corpus/075ffc3e7c80e173985255c88542930d8fed0613 delete mode 100644 explorer/fuzzing/fuzzer_corpus/07fe6d4b29d465ce688b6dd86b0571d1dfea03dd delete mode 100644 explorer/fuzzing/fuzzer_corpus/081adaaf1729926b1089243ca595d1d8d2ab1fd5 delete mode 100644 explorer/fuzzing/fuzzer_corpus/086eb5f16b73ed72781d5579cdf16dcdc4e94744 delete mode 100644 explorer/fuzzing/fuzzer_corpus/0931a1fe829e600d14421a0fa4084d9c7176d01e delete mode 100644 explorer/fuzzing/fuzzer_corpus/09c98273d182befd2029eeb2d5913445abc23da3 delete mode 100644 explorer/fuzzing/fuzzer_corpus/09ed6f05cf53cd5658b00434fbffeffff056d270 delete mode 100644 explorer/fuzzing/fuzzer_corpus/0a8b7f9961d982a063eb5287fa1fbc7f51e881ff delete mode 100644 explorer/fuzzing/fuzzer_corpus/0ad8ac2a88b1144df515cc60cb824fdef6c712ef delete mode 100644 explorer/fuzzing/fuzzer_corpus/0b8c017e8d7d8b363cb3d80dbfa45a8f917748e9 delete mode 100644 explorer/fuzzing/fuzzer_corpus/0c0ca21a65e25a0ed34b97458c4651e3e211fd7d delete mode 100644 explorer/fuzzing/fuzzer_corpus/0c1acfbf442273f3d4a3767b76a0ce511fb8e14f delete mode 100644 explorer/fuzzing/fuzzer_corpus/0c86ef65371750e4a8b9cee11c8e47746abbda44 delete mode 100644 explorer/fuzzing/fuzzer_corpus/0cb069aeca3e33c5b431baf6a25016982d6f17c9 delete mode 100644 explorer/fuzzing/fuzzer_corpus/0d35d72cddc3a6d315e59e166bde555410df6c23 delete mode 100644 explorer/fuzzing/fuzzer_corpus/0e6b20961131825faf926e7c56b0a285dc200c45 delete mode 100644 explorer/fuzzing/fuzzer_corpus/0e92e106654000c9dc5d0887df617586bbdf681f delete mode 100644 explorer/fuzzing/fuzzer_corpus/0ec693754f4cad2f847af64da34d95de62086651 delete mode 100644 explorer/fuzzing/fuzzer_corpus/0f4a5a4583189e307590798fd6a8535df7b43481 delete mode 100644 explorer/fuzzing/fuzzer_corpus/0f51fb075d9a0ec04bf29588ae89cbead328d51b delete mode 100644 explorer/fuzzing/fuzzer_corpus/0fa5dbb1cf634ded61edd83ac9aa1fb5435f2afb delete mode 100644 explorer/fuzzing/fuzzer_corpus/0ff1237b5ca488e8bcf62b899c96f2279dd8618a delete mode 100644 explorer/fuzzing/fuzzer_corpus/10b3ac55167965078be7c7e32a3b9ac35742ebab delete mode 100644 explorer/fuzzing/fuzzer_corpus/10bc53bafd07b8ea7cd8e5321d4720b0c46db012 delete mode 100644 explorer/fuzzing/fuzzer_corpus/10bf4210ca99eb159f3e5e11b69ce67e4ec2e410 delete mode 100644 explorer/fuzzing/fuzzer_corpus/1111b8be1131541ec8c3a7b9c8a2e5e2cc634ab0 delete mode 100644 explorer/fuzzing/fuzzer_corpus/11129722dc448b2011c92f79dc750129eff3858b delete mode 100644 explorer/fuzzing/fuzzer_corpus/117ed6ced083ede3e318697fc56548fabe03039e delete mode 100644 explorer/fuzzing/fuzzer_corpus/1191f8daa134f3932d68bd24f270b2286a87560b delete mode 100644 explorer/fuzzing/fuzzer_corpus/119a0b3341f7032a48ccdded931a1c2fccdd6f52 delete mode 100644 explorer/fuzzing/fuzzer_corpus/11e091578ab1fee7bb92cf00355ff51be89cf801 delete mode 100644 explorer/fuzzing/fuzzer_corpus/123fb6fa380b035e905b35aab5af9e28b936470f delete mode 100644 explorer/fuzzing/fuzzer_corpus/13165465925de647ee3bd1d663a7e406b084a182 delete mode 100644 explorer/fuzzing/fuzzer_corpus/13699d187869d480a856deeb58a9b72a42414510 delete mode 100644 explorer/fuzzing/fuzzer_corpus/137763417c6bb89b2f19ce90364ed912e997a51e delete mode 100644 explorer/fuzzing/fuzzer_corpus/138b2d121b29802db4a2e37a2d563bc6ab8c5aef delete mode 100644 explorer/fuzzing/fuzzer_corpus/1390a7598274c8a07a7db037d164e7ba04fa084e delete mode 100644 explorer/fuzzing/fuzzer_corpus/13dcb5a00f09e0ec0a7fd03fb720bdad03c495f1 delete mode 100644 explorer/fuzzing/fuzzer_corpus/15005ba56570844e2a9ab20299631f8ffedc38c6 delete mode 100644 explorer/fuzzing/fuzzer_corpus/151b851709a6cb57bbee182c3220b59c87027ec4 delete mode 100644 explorer/fuzzing/fuzzer_corpus/15bd86b0412443771aa00da617795aa0e5c64185 delete mode 100644 explorer/fuzzing/fuzzer_corpus/15ce7e6d7d3131c20c8e85783a76e9405dc43ac5 delete mode 100644 explorer/fuzzing/fuzzer_corpus/17310ae919b40b6ca070de923c138a8d75df0204 delete mode 100644 explorer/fuzzing/fuzzer_corpus/17a00f823161d813cdcaa73fe8a860bfbfa1266c delete mode 100644 explorer/fuzzing/fuzzer_corpus/181b96bd90fda933ccc0f44032fc3e7ac753c091 delete mode 100644 explorer/fuzzing/fuzzer_corpus/1820cf28f49d1ee771fc53c74743e545529b509c delete mode 100644 explorer/fuzzing/fuzzer_corpus/189f5602a95e12265aaf65183c1d552f0663b36c delete mode 100644 explorer/fuzzing/fuzzer_corpus/18e4b0c01d7c2527f3a3d682b114ec5afe7d539b delete mode 100644 explorer/fuzzing/fuzzer_corpus/1983eb50faba24986c9fefe94e372fb2eaa35445 delete mode 100644 explorer/fuzzing/fuzzer_corpus/199d526c94d7b59769c7bea1306f67bdd4767fac delete mode 100644 explorer/fuzzing/fuzzer_corpus/1aa8b45819d453372d67a450012c501fd74893ec delete mode 100644 explorer/fuzzing/fuzzer_corpus/1bb31799f794a026275be18fd889f8917257b7a6 delete mode 100644 explorer/fuzzing/fuzzer_corpus/1c15b9ff3704bb9603866c7a06a3070eb8aacc69 delete mode 100644 explorer/fuzzing/fuzzer_corpus/1c2582d7495e080fa022962c6ed26fd62760e88e delete mode 100644 explorer/fuzzing/fuzzer_corpus/1c37ed06bf8776ee0d165e3ed3d8833a4cc9c760 delete mode 100644 explorer/fuzzing/fuzzer_corpus/1c452ac633219d656ab5904d7638e5379e44a582 delete mode 100644 explorer/fuzzing/fuzzer_corpus/1ceaf07b219a9004798ecc0856af9b0d10cce19c delete mode 100644 explorer/fuzzing/fuzzer_corpus/1d0d6abe9b8f6cf6eab4083ea51891c7b09b5653 delete mode 100644 explorer/fuzzing/fuzzer_corpus/1d36375d17078164cf9329dbe7f4b539b5323f34 delete mode 100644 explorer/fuzzing/fuzzer_corpus/1e15985570e0b52f0d40a19e90b53ab6c679729d delete mode 100644 explorer/fuzzing/fuzzer_corpus/1e43eb0a0f7b622f2ee5153aadeba3c2716c3b0a delete mode 100644 explorer/fuzzing/fuzzer_corpus/1e4fb57739ad776cee50880a79f29cdc6b532a58 delete mode 100644 explorer/fuzzing/fuzzer_corpus/1ea21248974dcd55d90a60ca12e8149169a9b34c delete mode 100644 explorer/fuzzing/fuzzer_corpus/1eb37a662ac6fc2c01dc9b5b1317e9bdc7ce64ec delete mode 100644 explorer/fuzzing/fuzzer_corpus/1f137378f423a375a57448370eceee7aaac663ec delete mode 100644 explorer/fuzzing/fuzzer_corpus/1fb3cabbe7b1d1db38a57e533dd8047bf828a338 delete mode 100644 explorer/fuzzing/fuzzer_corpus/1fcb05bd7ceeb20c92c134283274f611d58184be delete mode 100644 explorer/fuzzing/fuzzer_corpus/1ff7462970b50e872fa525ce63c82deb12e251ad delete mode 100644 explorer/fuzzing/fuzzer_corpus/2123f77e8516358c52163a4fa1627361f3513f30 delete mode 100644 explorer/fuzzing/fuzzer_corpus/21df195c24c357e5a8f18f482090d95d2524e548 delete mode 100644 explorer/fuzzing/fuzzer_corpus/226b4ae2606b0af76ab25c51d0d61f3fa3b04228 delete mode 100644 explorer/fuzzing/fuzzer_corpus/2291d3e5898c9c430cc6ecf3855f87bcae68cfbc delete mode 100644 explorer/fuzzing/fuzzer_corpus/230ea69eab009635a68f253a70e7f55d8af387bd delete mode 100644 explorer/fuzzing/fuzzer_corpus/2345f2c6add76c7aa04327e5aaa0840275740385 delete mode 100644 explorer/fuzzing/fuzzer_corpus/2420c58342df0a0df9e67e3b0edaa7b45372195d delete mode 100644 explorer/fuzzing/fuzzer_corpus/24676dd9ecc105448196ca0eee7f8d2987ff44ab delete mode 100644 explorer/fuzzing/fuzzer_corpus/249efd63613bc0828f4e14afd7e607c5766554f7 delete mode 100644 explorer/fuzzing/fuzzer_corpus/24d0079e1aa80afab58150f9dbb67c4c0e4c931b delete mode 100644 explorer/fuzzing/fuzzer_corpus/24e5915a89c0544f8b6a98614ce1627362c9c004 delete mode 100644 explorer/fuzzing/fuzzer_corpus/2553611e44783982b46c96dc4751ed5be979a776 delete mode 100644 explorer/fuzzing/fuzzer_corpus/2592ac23dae5631b900a05323bafadff16193ed6 delete mode 100644 explorer/fuzzing/fuzzer_corpus/259a863ed9082cb8de31b5221b95287d39aed44f delete mode 100644 explorer/fuzzing/fuzzer_corpus/26c2d5cf1d3f39a1f0fc16691f770713002312a0 delete mode 100644 explorer/fuzzing/fuzzer_corpus/26c83f24cf6e29aada6ea5112db6d71c7f332b49 delete mode 100644 explorer/fuzzing/fuzzer_corpus/2718684e5395145cf201b11e4738666efd38255b delete mode 100644 explorer/fuzzing/fuzzer_corpus/271fc28e0362d9f752541cf06e1131b70e729b59 delete mode 100644 explorer/fuzzing/fuzzer_corpus/274a41d566450247ad862675b54ac99f10b1a275 delete mode 100644 explorer/fuzzing/fuzzer_corpus/277dd8d5c877be6c18233440ee001ace701283c9 delete mode 100644 explorer/fuzzing/fuzzer_corpus/27ef47d1362933a6bff7e03fc14e5c5fcd23e2fa delete mode 100644 explorer/fuzzing/fuzzer_corpus/27f47232d1bafdca3762a5c22012c5089f090a22 delete mode 100644 explorer/fuzzing/fuzzer_corpus/2824af73c9b3ce5d33a222f3b775182893af1027 delete mode 100644 explorer/fuzzing/fuzzer_corpus/28c7ced2db84460637ac24a019ff2fab72d5b1b2 delete mode 100644 explorer/fuzzing/fuzzer_corpus/28ef6e1e280a1f3621c9a5225e69844d0db40081 delete mode 100644 explorer/fuzzing/fuzzer_corpus/2917ec9747dbfa35f67d9d61bb71d5d4d0fb4385 delete mode 100644 explorer/fuzzing/fuzzer_corpus/2921e84bdcbabd8d64c21360345ca280f9e250a4 delete mode 100644 explorer/fuzzing/fuzzer_corpus/297403f9670145ba84245d3db2be10ea2ae9d0bf delete mode 100644 explorer/fuzzing/fuzzer_corpus/29baa699f49a55a3b6d733f3a0030367e1ab5835 delete mode 100644 explorer/fuzzing/fuzzer_corpus/29cb786e12d8db536d5f0748863f751ef4db52ce delete mode 100644 explorer/fuzzing/fuzzer_corpus/2a0ee4282b6c339348fee3a6921b56432b2f35a6 delete mode 100644 explorer/fuzzing/fuzzer_corpus/2aa0ee106f4e4f04b322e83830ba574e8be2506f delete mode 100644 explorer/fuzzing/fuzzer_corpus/2aaecd831ea460c5a721f9421d4965fc408d4c35 delete mode 100644 explorer/fuzzing/fuzzer_corpus/2b1263de304325a3a6847294fa1a2aeb3564d22c delete mode 100644 explorer/fuzzing/fuzzer_corpus/2b24973806eac518653f494a29671fad6aea010b delete mode 100644 explorer/fuzzing/fuzzer_corpus/2b342d5ea73ce8b83dd29a47bda07bb050f62d56 delete mode 100644 explorer/fuzzing/fuzzer_corpus/2bbd64b5c75365c1644b9823f9cd572ce53acdd4 delete mode 100644 explorer/fuzzing/fuzzer_corpus/2cd6e756af6d6c7bbc680961e794400e4ac3d6ae delete mode 100644 explorer/fuzzing/fuzzer_corpus/2d454cacd53c4ed55138382f919c3547d81059fd delete mode 100644 explorer/fuzzing/fuzzer_corpus/2df8a45807e01a85bd980ac9aafa9f12eebb6fc5 delete mode 100644 explorer/fuzzing/fuzzer_corpus/2e6b6f16fd486918688ae87eb3b4a197296989c3 delete mode 100644 explorer/fuzzing/fuzzer_corpus/2ee264dd2bbf6040e1dbd35cec604eef029a39ba delete mode 100644 explorer/fuzzing/fuzzer_corpus/303a2187a4ff61fde4b156859d305f3656b76986 delete mode 100644 explorer/fuzzing/fuzzer_corpus/3092700876ae00aa40e0943fc8899ea3f91363fc delete mode 100644 explorer/fuzzing/fuzzer_corpus/31d273b01e3ffaa1d70c216f7b47f61ef47f961c delete mode 100644 explorer/fuzzing/fuzzer_corpus/31dac04fcde41a12dd5ea5286982cd742cea634a delete mode 100644 explorer/fuzzing/fuzzer_corpus/339a393ea3396484ed446474dd1297941d73bd02 delete mode 100644 explorer/fuzzing/fuzzer_corpus/3403e4ac6af4a73b926f2fff3deabeed59700d8b delete mode 100644 explorer/fuzzing/fuzzer_corpus/34382e52368a627e3462ebe367a544dc97205e26 delete mode 100644 explorer/fuzzing/fuzzer_corpus/34480b195ed723214661d0a25c0d7f7c3ff667a5 delete mode 100644 explorer/fuzzing/fuzzer_corpus/348cf478cb194626674c53630f655ac2df93d4a4 delete mode 100644 explorer/fuzzing/fuzzer_corpus/34e2656182b71815bf31aaeee8bc7c7bb84cd252 delete mode 100644 explorer/fuzzing/fuzzer_corpus/365c379ec8eddc0153de4df6d8b0147898f78312 delete mode 100644 explorer/fuzzing/fuzzer_corpus/368e52fbe545161fff4fffaaf503cb137aad964c delete mode 100644 explorer/fuzzing/fuzzer_corpus/374a512a3276eb89afbb9e17cbefa9c5e7a5c661 delete mode 100644 explorer/fuzzing/fuzzer_corpus/375e126dcbeab71b2f4440a50fdb08b48fd8a2ba delete mode 100644 explorer/fuzzing/fuzzer_corpus/379173df9718b1accd00aacde04ed3abebd0d534 delete mode 100644 explorer/fuzzing/fuzzer_corpus/381987301dac8b9aa96f181aa48c844fae12d16b delete mode 100644 explorer/fuzzing/fuzzer_corpus/381bda5b34a257bd1e4c102676375db80d41b010 delete mode 100644 explorer/fuzzing/fuzzer_corpus/38a97722170eec0621cab773ae396a26aaa16f4e delete mode 100644 explorer/fuzzing/fuzzer_corpus/397ce3c37880fbb3afbd71b22c813e5c683894aa delete mode 100644 explorer/fuzzing/fuzzer_corpus/39a40fceaecdc65b70e7ce7b7d8a24d51dbf56a4 delete mode 100644 explorer/fuzzing/fuzzer_corpus/3a9d268c66c4487a73972c46d4f0c267eb91817c delete mode 100644 explorer/fuzzing/fuzzer_corpus/3ac0d6c29b482f0e76b42de1534d5bb8f6291d30 delete mode 100644 explorer/fuzzing/fuzzer_corpus/3bf47992175e99810f5143f78815d8f7ffc22adb delete mode 100644 explorer/fuzzing/fuzzer_corpus/3ca6afe2242667a99658abe00051a19865e74007 delete mode 100644 explorer/fuzzing/fuzzer_corpus/3cae75fc41ad5e693acc6c2235d28c86630d48a8 delete mode 100644 explorer/fuzzing/fuzzer_corpus/3cf181a4acde0cb7b2cbcf1f4bda95ca1cabd94b delete mode 100644 explorer/fuzzing/fuzzer_corpus/3dce35e13b36c3f9ea7657ac00237fd3ad8d42c7 delete mode 100644 explorer/fuzzing/fuzzer_corpus/3dd42e4c74a7d422abf4795e78822f74acd02bbc delete mode 100644 explorer/fuzzing/fuzzer_corpus/3e0db6c59759b3afcfef5e8ed5766dc316ff6d5f delete mode 100644 explorer/fuzzing/fuzzer_corpus/3e637ff7352c6663376f6e223ec1b9cfd164e7b8 delete mode 100644 explorer/fuzzing/fuzzer_corpus/3ecfcb05c11917a4b4b669bf139000009610d631 delete mode 100644 explorer/fuzzing/fuzzer_corpus/3f41751cfdcd69f6896ea1ffd616d2f49c7d4471 delete mode 100644 explorer/fuzzing/fuzzer_corpus/3f88413ff6071524f5b527a5cabcbda51d8266b7 delete mode 100644 explorer/fuzzing/fuzzer_corpus/400f23d9237b6a8fd7977731dd46469197cd6814 delete mode 100644 explorer/fuzzing/fuzzer_corpus/407e3821284278185dec9cc60a0f8222519a091c delete mode 100644 explorer/fuzzing/fuzzer_corpus/408035d700db7dfd077e3d2dc58c3a20c2a52a5a delete mode 100644 explorer/fuzzing/fuzzer_corpus/40838f5f1f5c09fadb8c3d2cf2fd228ba1e4cc52 delete mode 100644 explorer/fuzzing/fuzzer_corpus/40e638bcb8108b0d99231cefa3dee0010b5e1e85 delete mode 100644 explorer/fuzzing/fuzzer_corpus/44355e6940769c65372ab6cf2ef9b69bbc4b96db delete mode 100644 explorer/fuzzing/fuzzer_corpus/4494e1b83d1d6915c3cd6152fd2a520e407d7bba delete mode 100644 explorer/fuzzing/fuzzer_corpus/44f5a8dbdee9c97ccc37e2d0749d221109b0fe7a delete mode 100644 explorer/fuzzing/fuzzer_corpus/45416ee9fe788dffe4b9af83d322ae472dd1da1e delete mode 100644 explorer/fuzzing/fuzzer_corpus/45e3a43e80f1bc62c0ff5794fa4d9c6e8f769f24 delete mode 100644 explorer/fuzzing/fuzzer_corpus/4636dd7b4d3177596bde1c7cc2478a45ba1315a3 delete mode 100644 explorer/fuzzing/fuzzer_corpus/46e0b7c8cbc5d0e7570bcbe89128f418839b9cd6 delete mode 100644 explorer/fuzzing/fuzzer_corpus/478394f347dda8510b53f7e921203c5886a7e8e6 delete mode 100644 explorer/fuzzing/fuzzer_corpus/4860d253a5d68ec0c9f8ee444b8d380d31a6216e delete mode 100644 explorer/fuzzing/fuzzer_corpus/48caa4aa710abcf73fe7b82ab8fd9fbd10f52a7d delete mode 100644 explorer/fuzzing/fuzzer_corpus/4972578fc0a523302c5bc9f42c2fdcae619712fc delete mode 100644 explorer/fuzzing/fuzzer_corpus/4a22b3794abf57497ad89d05995434a0aa7d0f47 delete mode 100644 explorer/fuzzing/fuzzer_corpus/4a2ff94c1916c48655f498955011a06fbcdf133e delete mode 100644 explorer/fuzzing/fuzzer_corpus/4aa3752736e554261748faa2a497272dac8fd2b8 delete mode 100644 explorer/fuzzing/fuzzer_corpus/4ad65277ecd7e0adcd7692e02df993d459ce4eb1 delete mode 100644 explorer/fuzzing/fuzzer_corpus/4c583e243d825ce8abb6144c1642ea8160043283 delete mode 100644 explorer/fuzzing/fuzzer_corpus/4ca78730c3a34f5efe521f89320a7b050ce7f349 delete mode 100644 explorer/fuzzing/fuzzer_corpus/4db783997772cefd555355a807a90e04e414b988 delete mode 100644 explorer/fuzzing/fuzzer_corpus/4de145ab28e280ab01528564fe130659272c2e52 delete mode 100644 explorer/fuzzing/fuzzer_corpus/4e0c2238235281a56e0b58c3ec927a3466c8b1e4 delete mode 100644 explorer/fuzzing/fuzzer_corpus/4e3d3da4c4bcb8b1912b9d0e247c3d291299b94d delete mode 100644 explorer/fuzzing/fuzzer_corpus/4ea4b1a51c61f79c9f6b5b0ebd03454662abd1cd delete mode 100644 explorer/fuzzing/fuzzer_corpus/4ee954ee8c71e3023e3855608bd6c60185453505 delete mode 100644 explorer/fuzzing/fuzzer_corpus/5007f895491a8fd45ef5bd8da0a079938bf4f7f7 delete mode 100644 explorer/fuzzing/fuzzer_corpus/504ed50b0973afc1fdb432d2dd0798ae8705a997 delete mode 100644 explorer/fuzzing/fuzzer_corpus/50afabdf6bcaac0128c38e8b07aaaf0139caa5b6 delete mode 100644 explorer/fuzzing/fuzzer_corpus/50f6f5d13beb185404eccd575bc75cae3abb612a delete mode 100644 explorer/fuzzing/fuzzer_corpus/5258b94636d20581bd507b9cf0e0da61228647b4 delete mode 100644 explorer/fuzzing/fuzzer_corpus/528816469d00b09f7410035a7f4d79d5e32934be delete mode 100644 explorer/fuzzing/fuzzer_corpus/52f893245ce034fe614a546e3e29b07596f96d41 delete mode 100644 explorer/fuzzing/fuzzer_corpus/5318fd00c25f2fd65c5e8d90291bb477ea229fdb delete mode 100644 explorer/fuzzing/fuzzer_corpus/532a630b4756515f297a4c2aaaa9c0f3b87e65e9 delete mode 100644 explorer/fuzzing/fuzzer_corpus/539a7012375a93a28857f6241de424b0e03247c4 delete mode 100644 explorer/fuzzing/fuzzer_corpus/53aa7568a4f7b1c0c6721ef5a3a39737131a6a67 delete mode 100644 explorer/fuzzing/fuzzer_corpus/54c240f4335e37fea9731487a93befcf4f0ccf8c delete mode 100644 explorer/fuzzing/fuzzer_corpus/54eba1cba056d1c06f5b3c12a126c9adfd9d528a delete mode 100644 explorer/fuzzing/fuzzer_corpus/57eaf2918703b28c122367a87dfcdc90bce157dc delete mode 100644 explorer/fuzzing/fuzzer_corpus/57eba240b39df476aa0a6a3a23f8f01eb21b6143 delete mode 100644 explorer/fuzzing/fuzzer_corpus/583ec40d68e7531222b5e4044101e9575c4509ff delete mode 100644 explorer/fuzzing/fuzzer_corpus/58c61db205983d75beda870ceebfa61a70fd300e delete mode 100644 explorer/fuzzing/fuzzer_corpus/58e115140e5be839f41599aeb2b6a03368e72656 delete mode 100644 explorer/fuzzing/fuzzer_corpus/59f5bff3c89e6ae504001fd40e25570fa68f4816 delete mode 100644 explorer/fuzzing/fuzzer_corpus/5a006fff8e99d72fc86aa8545e73e10c13603f6c delete mode 100644 explorer/fuzzing/fuzzer_corpus/5a642703129a307f9a14474706f5e2f56b2d7010 delete mode 100644 explorer/fuzzing/fuzzer_corpus/5af9093a8103ad8ffc72eb63999ae64d30c09354 delete mode 100644 explorer/fuzzing/fuzzer_corpus/5b0199278f094e43e9138a16476f13d3ba564d1f delete mode 100644 explorer/fuzzing/fuzzer_corpus/5b9b375c91986279a8a110f96835a50cbcc0260c delete mode 100644 explorer/fuzzing/fuzzer_corpus/5d290605979c6ae723f8c79db98fcdee8027691b delete mode 100644 explorer/fuzzing/fuzzer_corpus/5d2c41a41b6e8763c34b8a5953ffc75203af02bb delete mode 100644 explorer/fuzzing/fuzzer_corpus/5db5461375b313563b11c30a656e5e83957a908d delete mode 100644 explorer/fuzzing/fuzzer_corpus/5dd9c62b5221d7a85e9e1b4a4b331be2c339ab97 delete mode 100644 explorer/fuzzing/fuzzer_corpus/5e1b0ea6622640145c4876931e297c5edb8231d8 delete mode 100644 explorer/fuzzing/fuzzer_corpus/5e3b2219c7b0a5e971058249c4531d2069e951e9 delete mode 100644 explorer/fuzzing/fuzzer_corpus/5fb13293fefc17d09c0cc7c2e25e6eba45bacb71 delete mode 100644 explorer/fuzzing/fuzzer_corpus/604e3189c3c6fdcd4ba5375a88614370264f92e1 delete mode 100644 explorer/fuzzing/fuzzer_corpus/61d367a42b7becd1b4b939d56353897a36e5f096 delete mode 100644 explorer/fuzzing/fuzzer_corpus/61f23f04c75df376c54549d73cc0decdcb786bf2 delete mode 100644 explorer/fuzzing/fuzzer_corpus/61f3084cf911f5dfd5487e87683572a914d1869f delete mode 100644 explorer/fuzzing/fuzzer_corpus/6219bbd6eb7e0d3fa7e8bc5fa554e2e2aff95733 delete mode 100644 explorer/fuzzing/fuzzer_corpus/625b7bfd93cbc6ff7a3c8224e64a4ed8505589c1 delete mode 100644 explorer/fuzzing/fuzzer_corpus/62b8e32751dc67f7885174de27430929aa7a4ad9 delete mode 100644 explorer/fuzzing/fuzzer_corpus/62bbd62118bce3d51da4dcf8408ca2ac6160b6ab delete mode 100644 explorer/fuzzing/fuzzer_corpus/62d6f3f23f38c08250ccc296707f3d8b31b458fc delete mode 100644 explorer/fuzzing/fuzzer_corpus/631fdd18ae26fb841982077231672ba638d5466d delete mode 100644 explorer/fuzzing/fuzzer_corpus/634aba8b73bb4c4c12485ac91c2b3dcb631358d0 delete mode 100644 explorer/fuzzing/fuzzer_corpus/63857ff19609e08af0207d8b1dab6e4de65dbbde delete mode 100644 explorer/fuzzing/fuzzer_corpus/649c2be3e1b157349cd44f67894ad550e9d33ee8 delete mode 100644 explorer/fuzzing/fuzzer_corpus/6506dca4030d6950129d63f064289299d3caaf39 delete mode 100644 explorer/fuzzing/fuzzer_corpus/65c43429b61c8397acd866f828fcb47cbb7c16f4 delete mode 100644 explorer/fuzzing/fuzzer_corpus/65e88126f8b67fa52bc1cdad9b1eb44f52709925 delete mode 100644 explorer/fuzzing/fuzzer_corpus/673f35f759ee84f2f94657b0930f2b74b429b144 delete mode 100644 explorer/fuzzing/fuzzer_corpus/676dcd14b69ef443edb46d3f7d0bb24e07d4acbd delete mode 100644 explorer/fuzzing/fuzzer_corpus/67b09e185ee33d38580bc1ae4be51419b7a7ebc9 delete mode 100644 explorer/fuzzing/fuzzer_corpus/693c700b7aee574a54f5703171f786851195a97b delete mode 100644 explorer/fuzzing/fuzzer_corpus/693eab692d17bea44af514d53bc2373d40ab0927 delete mode 100644 explorer/fuzzing/fuzzer_corpus/69db4f861b4949d098e5705e9392d06585a5c8a9 delete mode 100644 explorer/fuzzing/fuzzer_corpus/6a95e8884b0a9a11c49828db369179c7d52e6f7f delete mode 100644 explorer/fuzzing/fuzzer_corpus/6ab7d6a964a424b00748ce1b65fedc4cce3ee1c8 delete mode 100644 explorer/fuzzing/fuzzer_corpus/6ac46cfb4a998ede3392679c83839398fffea96f delete mode 100644 explorer/fuzzing/fuzzer_corpus/6ad89dc865016d2d3a0841b78165e85a1f10a15d delete mode 100644 explorer/fuzzing/fuzzer_corpus/6ae5582a206dd285cc4b6a16c4b43ee0eac60513 delete mode 100644 explorer/fuzzing/fuzzer_corpus/6b36dec52800ad9f326b75b51de5237a009abddf delete mode 100644 explorer/fuzzing/fuzzer_corpus/6b55b4906ab4a1bc8fb2e2c1dcb9815fccbc857e delete mode 100644 explorer/fuzzing/fuzzer_corpus/6b8b5a07609562f73a0fea986fe4fbaac6f07302 delete mode 100644 explorer/fuzzing/fuzzer_corpus/6b8d32899c42da294378f3bcdd6b31bb825ceaa7 delete mode 100644 explorer/fuzzing/fuzzer_corpus/6bd6a2e44dbfe2c7012bc97507b56ec79d14ec36 delete mode 100644 explorer/fuzzing/fuzzer_corpus/6bf3f7a037ac5bcdfff8b904bdd801aa04e6e3f9 delete mode 100644 explorer/fuzzing/fuzzer_corpus/6cef9effeb2257bb69c9b96fe57051bdaf07ebdc delete mode 100644 explorer/fuzzing/fuzzer_corpus/6d446a00a2ec3646a47ca64c9d47900af609c04d delete mode 100644 explorer/fuzzing/fuzzer_corpus/6d8efa516d912ed4fb3a51abe81181ac5a3ce7de delete mode 100644 explorer/fuzzing/fuzzer_corpus/6e805a62f04827f2dab730e0bda6d7e3b2a396ac delete mode 100644 explorer/fuzzing/fuzzer_corpus/6ea3e5dc732350e61fa2e1b2b4af3dac49fbd7a2 delete mode 100644 explorer/fuzzing/fuzzer_corpus/700edad66fdc0ecca488b76faa561bd812a32de1 delete mode 100644 explorer/fuzzing/fuzzer_corpus/70381203ec4a62c0892c9169af38afda36aff77b delete mode 100644 explorer/fuzzing/fuzzer_corpus/70c1ffb0e5928af3588ad282ca66e09cecea781f delete mode 100644 explorer/fuzzing/fuzzer_corpus/70e5a8e81363e001a3c04485baff3c0b45f543c7 delete mode 100644 explorer/fuzzing/fuzzer_corpus/71343714ac735fe6c6370bebfe3f30e2555fceed delete mode 100644 explorer/fuzzing/fuzzer_corpus/7196097c3c0a0a0c5e13f3ebd44cb8f70e3a369e delete mode 100644 explorer/fuzzing/fuzzer_corpus/72e14e2a23ba4e07dd8ecac1d2a0f307982e22fd delete mode 100644 explorer/fuzzing/fuzzer_corpus/7301e760d4cd4136a6260e0e5db5f884621f6711 delete mode 100644 explorer/fuzzing/fuzzer_corpus/743374116966cde7bea7be19c3b44f4f4742cc84 delete mode 100644 explorer/fuzzing/fuzzer_corpus/746204b64652d56258e37760629e723c7162cc3a delete mode 100644 explorer/fuzzing/fuzzer_corpus/747118a48116697aaf5e83f4d15e75409118b8b1 delete mode 100644 explorer/fuzzing/fuzzer_corpus/74f4572d6afa47a85b20d69c03c4b5818229508b delete mode 100644 explorer/fuzzing/fuzzer_corpus/750a107625f4dae089bbb0769a301289e768e3aa delete mode 100644 explorer/fuzzing/fuzzer_corpus/75bf07b0ccfce55eb53f712ddb01b97724ec0fe8 delete mode 100644 explorer/fuzzing/fuzzer_corpus/768d1a1eca62b0a19d89ded728ccb834470015a1 delete mode 100644 explorer/fuzzing/fuzzer_corpus/77c33306ba5c8c2cdc3024719f87f55a2724c754 delete mode 100644 explorer/fuzzing/fuzzer_corpus/785b758dbefa9d1df1a68e97b99529245a615e0a delete mode 100644 explorer/fuzzing/fuzzer_corpus/79176b267da0dd33a6ca194a94b38a711707c24d delete mode 100644 explorer/fuzzing/fuzzer_corpus/7953600f9a139afbc9c5259103942beeebe2137c delete mode 100644 explorer/fuzzing/fuzzer_corpus/7966121e536a00b3ed0b612ec9c4129af371106e delete mode 100644 explorer/fuzzing/fuzzer_corpus/797132dd445ddf47c9af603d780036bc0ffeac83 delete mode 100644 explorer/fuzzing/fuzzer_corpus/799cb0db63d5d948ca4ce3e6a438e6d03a363b07 delete mode 100644 explorer/fuzzing/fuzzer_corpus/79d7857c66a89562059d86a9e3ee1c3a644d50ac delete mode 100644 explorer/fuzzing/fuzzer_corpus/7a5c922589df17ecc5835d3943d4e2268b75d220 delete mode 100644 explorer/fuzzing/fuzzer_corpus/7abcaef173ca2d52652cb3457d945e27f7ee0aad delete mode 100644 explorer/fuzzing/fuzzer_corpus/7ade8ffa35294159dd8341822eaf0045b55e0eed delete mode 100644 explorer/fuzzing/fuzzer_corpus/7bacad50af2d1a03e8895abd390b606dffe73912 delete mode 100644 explorer/fuzzing/fuzzer_corpus/7c0f663879e94a5b343b9cfbde2c12a5ef03a53c delete mode 100644 explorer/fuzzing/fuzzer_corpus/7d23fc6af8c121d6031662230dbc4c5be9cc1c71 delete mode 100644 explorer/fuzzing/fuzzer_corpus/7e11ddd6225ab4f5b4768bb3e57813b7d00efd49 delete mode 100644 explorer/fuzzing/fuzzer_corpus/7e2746a39201e0372d5512b5d07ec968fd1296e8 delete mode 100644 explorer/fuzzing/fuzzer_corpus/7e2a2d5f2ca21106e70dd832ab2c795d31dd8c17 delete mode 100644 explorer/fuzzing/fuzzer_corpus/7e3b1ea1f2b40cfe7dd4ce72a43cd8b5e00637f0 delete mode 100644 explorer/fuzzing/fuzzer_corpus/7e9eeb66c47e49e06eeff2d93fb401f467c30fdf delete mode 100644 explorer/fuzzing/fuzzer_corpus/7ef42cdd9381bb7dc751b0530516414d10b58d68 delete mode 100644 explorer/fuzzing/fuzzer_corpus/7f260f482af7146c582240a9b8de772dcdffe0f3 delete mode 100644 explorer/fuzzing/fuzzer_corpus/7fddec4675773d06799615ff6bfa69d4b906b353 delete mode 100644 explorer/fuzzing/fuzzer_corpus/8037762d5a218fae491d02aa757fb3369bda9426 delete mode 100644 explorer/fuzzing/fuzzer_corpus/8093a8763a55e91e83b621e091f6da25cffc7dae delete mode 100644 explorer/fuzzing/fuzzer_corpus/811069452ad656f7050892b008d38f6affd52cd5 delete mode 100644 explorer/fuzzing/fuzzer_corpus/81bfc600dcb7e3e016fffe7399b9186b0da24867 delete mode 100644 explorer/fuzzing/fuzzer_corpus/82062a4058a65188662e584e9290464c5cbec42f delete mode 100644 explorer/fuzzing/fuzzer_corpus/8231f88ed019d7c867f63fd99a72ff83c877ce42 delete mode 100644 explorer/fuzzing/fuzzer_corpus/824b055dca1a7fc530205097c771552062b3c481 delete mode 100644 explorer/fuzzing/fuzzer_corpus/84f33da279e8094d8b60651abed12669677a5c60 delete mode 100644 explorer/fuzzing/fuzzer_corpus/84f60d58147f313add8f2d4c2cca5ce728b51e9c delete mode 100644 explorer/fuzzing/fuzzer_corpus/8506098ed285fa6cf6887ef694c68ff07fbac234 delete mode 100644 explorer/fuzzing/fuzzer_corpus/852294518955e4133ebe40d96ddd483ea675f576 delete mode 100644 explorer/fuzzing/fuzzer_corpus/85658e57b27175b7be324b93be25409f5cc2d155 delete mode 100644 explorer/fuzzing/fuzzer_corpus/856d1a339b7da505ec405b29e2ad71128a2cd042 delete mode 100644 explorer/fuzzing/fuzzer_corpus/85d5189cc7d0ac992ae28f0eafcc5d4528482f32 delete mode 100644 explorer/fuzzing/fuzzer_corpus/86538c458c4469fd4394a2cf09c5d38bf06dde01 delete mode 100644 explorer/fuzzing/fuzzer_corpus/865cb6ed43d05b0cd8865aca8e220a5f2f1c8ee2 delete mode 100644 explorer/fuzzing/fuzzer_corpus/867ca2a85f7d32348f245c8b4562d19256c4bdcd delete mode 100644 explorer/fuzzing/fuzzer_corpus/869a572f42c6d5ba437c45a7187b350b1bb27c94 delete mode 100644 explorer/fuzzing/fuzzer_corpus/86b24842438ed47cadc8ba57576d5bb33a35df88 delete mode 100644 explorer/fuzzing/fuzzer_corpus/86d67468feb4d4a3ebded86e6007537cf79aaa7c delete mode 100644 explorer/fuzzing/fuzzer_corpus/872a1696dda48bb21c65aaf1be4c599c0ba7ecf8 delete mode 100644 explorer/fuzzing/fuzzer_corpus/874473ca5ab1dae91e7c4a71db943c174f1c39cd delete mode 100644 explorer/fuzzing/fuzzer_corpus/8837f02cbe18a4fc33680ebb3e38bf767537a0d3 delete mode 100644 explorer/fuzzing/fuzzer_corpus/89bf648a72b186cde6349d5948d0fa6d5ad455de delete mode 100644 explorer/fuzzing/fuzzer_corpus/8a565b071d627367b678eadfe0000ad02312a51f delete mode 100644 explorer/fuzzing/fuzzer_corpus/8adf65cc00034e071aa55d64643de66f92e08cb4 delete mode 100644 explorer/fuzzing/fuzzer_corpus/8af1e91a050ed3a94b03ae4eaaa4ae65d8e5975c delete mode 100644 explorer/fuzzing/fuzzer_corpus/8b399fee75055c239d6e3a6324e4c5696b9cf365 delete mode 100644 explorer/fuzzing/fuzzer_corpus/8b3b56d79337df581f59f424f87fa05b9d3b9b9f delete mode 100644 explorer/fuzzing/fuzzer_corpus/8c82de66ed8c2c2e00ff9d0da8d299a7bc2e0a52 delete mode 100644 explorer/fuzzing/fuzzer_corpus/8d39f5c54290acb5e80f4c894eb4c9a9b4034079 delete mode 100644 explorer/fuzzing/fuzzer_corpus/8d8fc98ec23cae408d8ff32f0e7de3ba3944bbd7 delete mode 100644 explorer/fuzzing/fuzzer_corpus/8e3f4815a1ee1b0f4ba0e22948671d0ab521ffcc delete mode 100644 explorer/fuzzing/fuzzer_corpus/8e575a88fb791bc74ca549a648e40595728c462e delete mode 100644 explorer/fuzzing/fuzzer_corpus/8e9bcbf7165dd788f41880e494a6b34178c818d9 delete mode 100644 explorer/fuzzing/fuzzer_corpus/8f11bf2d763d565d4003e723c117c3b7fd5a54f0 delete mode 100644 explorer/fuzzing/fuzzer_corpus/8f560dc1a60532489b6c400e1efcb7d6a8941388 delete mode 100644 explorer/fuzzing/fuzzer_corpus/9064723daf6148e18f7195f319095238fe717cf8 delete mode 100644 explorer/fuzzing/fuzzer_corpus/90e98e569c2c9dccbbbf6036b2ca560996e27456 delete mode 100644 explorer/fuzzing/fuzzer_corpus/9120ffbf9f9ce9d0a6c5737fe311aa702a19d72a delete mode 100644 explorer/fuzzing/fuzzer_corpus/91ac9c25f698c4efb6886c33ba330739e7087851 delete mode 100644 explorer/fuzzing/fuzzer_corpus/9215313bd5600fa9a790a2a025db8dd25208d1de delete mode 100644 explorer/fuzzing/fuzzer_corpus/92ba578d44ebff520e839924230e16dfbeb26536 delete mode 100644 explorer/fuzzing/fuzzer_corpus/93c10ced6270f76ac1c5b8f10c78eb12c361fd9e delete mode 100644 explorer/fuzzing/fuzzer_corpus/93cba88aa6339c5b99fb1179a53081e985a22b40 delete mode 100644 explorer/fuzzing/fuzzer_corpus/9418eff433af407d7baa42c96fa8a821b5bd1413 delete mode 100644 explorer/fuzzing/fuzzer_corpus/9475c489913e570bc90c01c9a867ce67b5640087 delete mode 100644 explorer/fuzzing/fuzzer_corpus/947944c011b708642cc80e31b42d0ba3d38426a7 delete mode 100644 explorer/fuzzing/fuzzer_corpus/949c23e4727e022b5ce9d33d4fde5d52d2990630 delete mode 100644 explorer/fuzzing/fuzzer_corpus/94d55b3b044001e9f35feb3eda9c09ad5e4987b2 delete mode 100644 explorer/fuzzing/fuzzer_corpus/956018ad0b7aa4d9f9fa03487c5f00d7e0be25f4 delete mode 100644 explorer/fuzzing/fuzzer_corpus/959ab866676eb9034a8dbf532200bf297e045806 delete mode 100644 explorer/fuzzing/fuzzer_corpus/95f55554ccb996e94a54818e5d692fe7e46637e6 delete mode 100644 explorer/fuzzing/fuzzer_corpus/96697f48f2d3ea7a465d45e840cdbaea7265c9da delete mode 100644 explorer/fuzzing/fuzzer_corpus/9696b507ce04184fd4fe2cbac445d3d8cc16cf88 delete mode 100644 explorer/fuzzing/fuzzer_corpus/973324f1915325eec6893bd8e505625d2ac1d9f3 delete mode 100644 explorer/fuzzing/fuzzer_corpus/978b667e4d12c196abd3a4e1ec52f94e57b3ad5e delete mode 100644 explorer/fuzzing/fuzzer_corpus/98607e0a14ad66068f230243fceeffc600cc57a4 delete mode 100644 explorer/fuzzing/fuzzer_corpus/9a3c36288c9320a9c2fe8250584ac23e96fcd357 delete mode 100644 explorer/fuzzing/fuzzer_corpus/9a86715151b6f28bd7bec84534ae0cbe248d6374 delete mode 100644 explorer/fuzzing/fuzzer_corpus/9ca0587cdea69c87cee4dcecb747f5201f47fce7 delete mode 100644 explorer/fuzzing/fuzzer_corpus/9d40d743d76f2b406047513146ca9db3d2af7550 delete mode 100644 explorer/fuzzing/fuzzer_corpus/9de303a702b10616ceb04deaa52af70899c4db4d delete mode 100644 explorer/fuzzing/fuzzer_corpus/9edaf75a29bfaf3a1dc00b3356ad93a904ec1bf4 delete mode 100644 explorer/fuzzing/fuzzer_corpus/9f2b40328127947524429569157002cc2c8b4113 delete mode 100644 explorer/fuzzing/fuzzer_corpus/9f7214ed05fbc790b9101054c0cac6f4f60de1c5 delete mode 100644 explorer/fuzzing/fuzzer_corpus/a08d92d7abc23040943022426fb46a276cc2101e delete mode 100644 explorer/fuzzing/fuzzer_corpus/a0cf3d4ea5a416fd9a0734096c0214a9143ed71d delete mode 100644 explorer/fuzzing/fuzzer_corpus/a0d6afaa5de15f753b76e48ce21b77300d4247b0 delete mode 100644 explorer/fuzzing/fuzzer_corpus/a103add196c50b16925c2d218749cc812d912a7a delete mode 100644 explorer/fuzzing/fuzzer_corpus/a3050fa0d18aecf519f74d21c344a5727f80c10a delete mode 100644 explorer/fuzzing/fuzzer_corpus/a3b3ebf7fc4022ce6c2ef4d257edb183aa15bf1e delete mode 100644 explorer/fuzzing/fuzzer_corpus/a3e7fdd6333766ddcf6e0ea91314908660d30ffb delete mode 100644 explorer/fuzzing/fuzzer_corpus/a4b77ba4911d2e3e0ffbee880c454b47c1a67cc8 delete mode 100644 explorer/fuzzing/fuzzer_corpus/a4ff3bea934cdfdc0f66a25641fe6b19016ef1da delete mode 100644 explorer/fuzzing/fuzzer_corpus/a5cbe60f4b842b38d4daeb66b4f8b8efebe1deb7 delete mode 100644 explorer/fuzzing/fuzzer_corpus/a60a8a53538192ead1fdde89d92778dba80f9224 delete mode 100644 explorer/fuzzing/fuzzer_corpus/a63969e9231d175a9a38e210ddd976ddd91320a0 delete mode 100644 explorer/fuzzing/fuzzer_corpus/a6bafba04f6e5e43d76633724a0858c611a00248 delete mode 100644 explorer/fuzzing/fuzzer_corpus/a6c74d103e741edd3f4a0b34d114b451bebd4593 delete mode 100644 explorer/fuzzing/fuzzer_corpus/a7f8b0f9b13cfd705824c887103f516d87d48ca4 delete mode 100644 explorer/fuzzing/fuzzer_corpus/a84a42d64867252e2e7144cfb8c31dc7a2d9526e delete mode 100644 explorer/fuzzing/fuzzer_corpus/a9a32f0f6f90b118987f1813f2ea7e7726f399ed delete mode 100644 explorer/fuzzing/fuzzer_corpus/a9f29fe9b82f4f0291f37c61777dc38f202cfdd9 delete mode 100644 explorer/fuzzing/fuzzer_corpus/aabfa1065ebe0a671c2a78961b101a1d45ab0acd delete mode 100644 explorer/fuzzing/fuzzer_corpus/abe990a35bad5c0ed6f66289dac8b310bccf732a delete mode 100644 explorer/fuzzing/fuzzer_corpus/abef7d05195421c940d49409627c5b24d4f2b916 delete mode 100644 explorer/fuzzing/fuzzer_corpus/ac06160978bdf5b1ee077ff7b4e0136ab2ed94a2 delete mode 100644 explorer/fuzzing/fuzzer_corpus/ac7cd64ec76981e445dafd5575bb4064bf58679e delete mode 100644 explorer/fuzzing/fuzzer_corpus/acc5855acb0ff0978d05f4b38c1b4f294cd24e10 delete mode 100644 explorer/fuzzing/fuzzer_corpus/ae187d3c2a3f587cfc53c496fdaefc7237b5da06 delete mode 100644 explorer/fuzzing/fuzzer_corpus/ae4250e3cccc84665079618f2b1e94890c23a863 delete mode 100644 explorer/fuzzing/fuzzer_corpus/ae6f380f5cff73707edfdf951fed67cef050702d delete mode 100644 explorer/fuzzing/fuzzer_corpus/ae7fb22c5903ae2bd7eb6c125aadc6e1c39a43b1 delete mode 100644 explorer/fuzzing/fuzzer_corpus/ae84a74278fbcaf0a9526002d80d7d688071f830 delete mode 100644 explorer/fuzzing/fuzzer_corpus/aec8e41ec050f7ac7949c98922b69b326ead66dc delete mode 100644 explorer/fuzzing/fuzzer_corpus/aee45564efafd5ba31e2a2ff37ec28e6a7467454 delete mode 100644 explorer/fuzzing/fuzzer_corpus/b0104f7d6a22c98bb612f42cec045f64f0599507 delete mode 100644 explorer/fuzzing/fuzzer_corpus/b0491a3d1a612b9db8c3c0aea3beb47bb1c969bc delete mode 100644 explorer/fuzzing/fuzzer_corpus/b16cf513638e6de15cdbaa109f89af668838b96d delete mode 100644 explorer/fuzzing/fuzzer_corpus/b199b67a1dc9ed62f467033a9d14b0a7404be0af delete mode 100644 explorer/fuzzing/fuzzer_corpus/b1e9560f0665a4c7381526676797f330b5ddaf72 delete mode 100644 explorer/fuzzing/fuzzer_corpus/b24ab1329ade1d249042b49cbefaabe9e289d990 delete mode 100644 explorer/fuzzing/fuzzer_corpus/b273f6d89c4098dddc6a17fc2200950b2a1ca8b2 delete mode 100644 explorer/fuzzing/fuzzer_corpus/b29000a8e0ea6fec127c857cb6962831455a6864 delete mode 100644 explorer/fuzzing/fuzzer_corpus/b2acd6d4db835cc2de6d578a31e55c9723d376e8 delete mode 100644 explorer/fuzzing/fuzzer_corpus/b301d94100ed0b15766a8e48767ea685c582104f delete mode 100644 explorer/fuzzing/fuzzer_corpus/b378b42f85eee698486a62693531402037b1bc49 delete mode 100644 explorer/fuzzing/fuzzer_corpus/b39595171e8c39e233d22ff07474d2930dce8de0 delete mode 100644 explorer/fuzzing/fuzzer_corpus/b3fe9e4e59812a710955af9540ba6ab44efbaf64 delete mode 100644 explorer/fuzzing/fuzzer_corpus/b4336ccf8951de3a6f1eae4148f3c5623ddcb422 delete mode 100644 explorer/fuzzing/fuzzer_corpus/b474e2aac0787cafe1ab33ed25b46bb23f885722 delete mode 100644 explorer/fuzzing/fuzzer_corpus/b4bb9c9262bb757df5e80767ccbae9a4ac881725 delete mode 100644 explorer/fuzzing/fuzzer_corpus/b50aa9e7ace48dadf651bfa991001f91782dcaed delete mode 100644 explorer/fuzzing/fuzzer_corpus/b55695cb397c83a01e77b4979eadc71307bf5bb5 delete mode 100644 explorer/fuzzing/fuzzer_corpus/b5b805036d15f3a938fad5b99b9b07899406fbbb delete mode 100644 explorer/fuzzing/fuzzer_corpus/b6faa454160b04a71aebd4eefba1074e82f6b991 delete mode 100644 explorer/fuzzing/fuzzer_corpus/b7073fc9e1dca3289d930ea8cebaddf7ac01f97b delete mode 100644 explorer/fuzzing/fuzzer_corpus/b726270c1f1b906118bb7bd3f0e31fad70e53bb3 delete mode 100644 explorer/fuzzing/fuzzer_corpus/b74151b3e158893704ac65ea4234df17aa39ba2d delete mode 100644 explorer/fuzzing/fuzzer_corpus/b82b61890040bf6bd38d81508e0919e979df0360 delete mode 100644 explorer/fuzzing/fuzzer_corpus/b84e935c0a1d62f7eae55e1c41759d8aa23747dd delete mode 100644 explorer/fuzzing/fuzzer_corpus/b8d5ed2d1a8e04bbcb473f9207bb5f630d0666cc delete mode 100644 explorer/fuzzing/fuzzer_corpus/b8fe3d1147b59ce7acbd34b111453df89e1f4060 delete mode 100644 explorer/fuzzing/fuzzer_corpus/b90c4652e387f309191792de386c87b605bb1b5e delete mode 100644 explorer/fuzzing/fuzzer_corpus/b92d5aefda5ebdbd4f97bd058532aabac8bbc4f8 delete mode 100644 explorer/fuzzing/fuzzer_corpus/ba79ad54a3664f4e5749ded96c86af21106c4a72 delete mode 100644 explorer/fuzzing/fuzzer_corpus/ba81a58612be6ea3790e3eb6453cc528eca37ae7 delete mode 100644 explorer/fuzzing/fuzzer_corpus/baa653209768e0bddfcbf20dab23706384a09a0f delete mode 100644 explorer/fuzzing/fuzzer_corpus/bb0e7dc79473b942b06030f09e977ca7d65b9909 delete mode 100644 explorer/fuzzing/fuzzer_corpus/bb1d40f46f5a1b10ad1c4fe3f4dbe58c2490cd6d delete mode 100644 explorer/fuzzing/fuzzer_corpus/bb99a69c513faaa42a4d69c083f11fd5c0bfc2b6 delete mode 100644 explorer/fuzzing/fuzzer_corpus/bcbbdac8be36d57d05bad59f42097f30f4791482 delete mode 100644 explorer/fuzzing/fuzzer_corpus/bcc2dd95b1484870236d97145082f091d04420e8 delete mode 100644 explorer/fuzzing/fuzzer_corpus/bd47802ae44cb178d49ce02e9da23114b99ca251 delete mode 100644 explorer/fuzzing/fuzzer_corpus/bd5f1f538a69fe0749266a9dee58769dfcf466f6 delete mode 100644 explorer/fuzzing/fuzzer_corpus/bd773479ed6f502a082574ee2628f87093ef738c delete mode 100644 explorer/fuzzing/fuzzer_corpus/bdacd3ee8bd272bb8e010a36fdcf4a088e4aec58 delete mode 100644 explorer/fuzzing/fuzzer_corpus/bdc54a47f8ca73c471d86a7f88a172bd50b1225d delete mode 100644 explorer/fuzzing/fuzzer_corpus/bfe98852a578baf4355b38a92b6a7e926c406a98 delete mode 100644 explorer/fuzzing/fuzzer_corpus/c0ed5a9d140f0566bbd198e0664af222757c02f2 delete mode 100644 explorer/fuzzing/fuzzer_corpus/c149c4c29671c2acf61e2e869975aa39006097e1 delete mode 100644 explorer/fuzzing/fuzzer_corpus/c17ad69dffba927b155231a8149a72505bf1bed4 delete mode 100644 explorer/fuzzing/fuzzer_corpus/c1897b534a0b24174082b7de0e6afebe203f5020 delete mode 100644 explorer/fuzzing/fuzzer_corpus/c2147917fd04da894c2b5dfa60a832ec96cfd4cc delete mode 100644 explorer/fuzzing/fuzzer_corpus/c2f1538ac726bb759417984a05803182969950d2 delete mode 100644 explorer/fuzzing/fuzzer_corpus/c33b33a69a00ad7377d23a792435fa4b777964d4 delete mode 100644 explorer/fuzzing/fuzzer_corpus/c38b996f7ea337af3f99bc53f015707d0f1658c4 delete mode 100644 explorer/fuzzing/fuzzer_corpus/c3c3a8aee0abfdd263b57f387db0ef47be0c1fc1 delete mode 100644 explorer/fuzzing/fuzzer_corpus/c449990049ecfeb94ab46604585847db44f97d1b delete mode 100644 explorer/fuzzing/fuzzer_corpus/c488c3e1283e14e163f81c7155f5f3deb99ec993 delete mode 100644 explorer/fuzzing/fuzzer_corpus/c4bd597847d498e86c6430431f022c93b4f1fac3 delete mode 100644 explorer/fuzzing/fuzzer_corpus/c51668b2002919bcd2e72177c64741e6077ef8cd delete mode 100644 explorer/fuzzing/fuzzer_corpus/c5d1191a26e60b5d7346dfe077dc864d1d0f140b delete mode 100644 explorer/fuzzing/fuzzer_corpus/c5e12b066cbb6a6381f51a01431346fa332edba3 delete mode 100644 explorer/fuzzing/fuzzer_corpus/c686b589661a7deb008e286c6b5596b22c017615 delete mode 100644 explorer/fuzzing/fuzzer_corpus/c6f657ee803166d7091f0a59cce11feba0319c39 delete mode 100644 explorer/fuzzing/fuzzer_corpus/c75f1f6324f2ebc6cdf2c0e8b96752c14e6f9fb6 delete mode 100644 explorer/fuzzing/fuzzer_corpus/c8751055cd8a1d14a9d8ef7dea2ad215574c0f95 delete mode 100644 explorer/fuzzing/fuzzer_corpus/c939e8058be1e7249a4b189e9e676abf41b9af36 delete mode 100644 explorer/fuzzing/fuzzer_corpus/ca2009748b6a855a646c2ea92b74c0391780f2ea delete mode 100644 explorer/fuzzing/fuzzer_corpus/ca9dec79282193d860160dd2f4bef7cdfcfd6369 delete mode 100644 explorer/fuzzing/fuzzer_corpus/cab6a41e14e973615829654a236d7b115bbc7a4a delete mode 100644 explorer/fuzzing/fuzzer_corpus/cb50321f6358690282c733b3e81bfb99352763bd delete mode 100644 explorer/fuzzing/fuzzer_corpus/cbe6ee626f17131b0f169142698988362cd416a4 delete mode 100644 explorer/fuzzing/fuzzer_corpus/cc12041efe79d6fdd71233d01abdfc2fa9b1e145 delete mode 100644 explorer/fuzzing/fuzzer_corpus/cc16e3023923b2a08ccc12474484922b3877cb7d delete mode 100644 explorer/fuzzing/fuzzer_corpus/ccde77cc350813aca7fb8f9ddba7c15cf19aa753 delete mode 100644 explorer/fuzzing/fuzzer_corpus/cd62089d4819abbb9bc53c6f05b9346a6e4da9d9 delete mode 100644 explorer/fuzzing/fuzzer_corpus/cd7abde20f670fdcd4f1dc6c46514391a210b633 delete mode 100644 explorer/fuzzing/fuzzer_corpus/cd81b4e344fc340d010b8eb5257e41bd1de259eb delete mode 100644 explorer/fuzzing/fuzzer_corpus/ce21c01f50fa918dde114d98533c177667957b44 delete mode 100644 explorer/fuzzing/fuzzer_corpus/ce4a5dca5b77ec62e460a5603a9ad3240cabeebc delete mode 100644 explorer/fuzzing/fuzzer_corpus/cfb7c4c944abce79527a792be8edeab8a105bbee delete mode 100644 explorer/fuzzing/fuzzer_corpus/d005a63d70a3265665c19c84e7148a6b8f37586d delete mode 100644 explorer/fuzzing/fuzzer_corpus/d19c4ff26d2c5050306f61471db7b2056316ddfa delete mode 100644 explorer/fuzzing/fuzzer_corpus/d1ca518b60ba67635582c9e1f7dca5cf228a8eda delete mode 100644 explorer/fuzzing/fuzzer_corpus/d1e9bf10ba663a79370c09ca3f2f7163f1f73bde delete mode 100644 explorer/fuzzing/fuzzer_corpus/d1f2737124dc5d58887ec7f9058631d3d0b161fd delete mode 100644 explorer/fuzzing/fuzzer_corpus/d22d12eb1a14d96b87311cb90c6413a41d777fc1 delete mode 100644 explorer/fuzzing/fuzzer_corpus/d2591834746c559d4b267154ed3541cf52319bfd delete mode 100644 explorer/fuzzing/fuzzer_corpus/d3212565f73f5993018e380e910682e30215bb13 delete mode 100644 explorer/fuzzing/fuzzer_corpus/d3a897a559f329f737df929fe871aab5da3805ab delete mode 100644 explorer/fuzzing/fuzzer_corpus/d3bdea629fba4740d1ce04e94e66ffa528796f7d delete mode 100644 explorer/fuzzing/fuzzer_corpus/d3e875bb57012d16109ee38af1b3c63ad1c0119b delete mode 100644 explorer/fuzzing/fuzzer_corpus/d40f0eece13f11308ad1f7a965180857fb1972cd delete mode 100644 explorer/fuzzing/fuzzer_corpus/d415acd8c86e6475fe8d0c8a1d5de351a99ea967 delete mode 100644 explorer/fuzzing/fuzzer_corpus/d461c6f24473e9f2bbc61bedf75fe8e87ee5ac15 delete mode 100644 explorer/fuzzing/fuzzer_corpus/d494ba5ee115dd8fb0ab0df4d885fba5f66205ae delete mode 100644 explorer/fuzzing/fuzzer_corpus/d5307d189b74cf05f358cb224cef368a67854c6b delete mode 100644 explorer/fuzzing/fuzzer_corpus/d5815e9c43a87a98252b04dfef6cbd8bf422bf11 delete mode 100644 explorer/fuzzing/fuzzer_corpus/d59a7e060c3b84f4c824a1eb73e6e8251e4d85e5 delete mode 100644 explorer/fuzzing/fuzzer_corpus/d5ac7153cc6a2962aec5efa8d6e29766f02a14b0 delete mode 100644 explorer/fuzzing/fuzzer_corpus/d5c05ce4b7120635d9b0ff8f66429daa96a48f3e delete mode 100644 explorer/fuzzing/fuzzer_corpus/d62514440c749d819c68b215647113bedb26deee delete mode 100644 explorer/fuzzing/fuzzer_corpus/d6d4e4d8991d7ed953b06bbf4f7f79332fc55262 delete mode 100644 explorer/fuzzing/fuzzer_corpus/d727a802b44490abfb3ce1c3794a16f0e6d763b4 delete mode 100644 explorer/fuzzing/fuzzer_corpus/d75851c53afd66d3635ec3d3fe600e5a0cff6289 delete mode 100644 explorer/fuzzing/fuzzer_corpus/d788c11b524a4b9e0ba8eff32a342f38f8fd452d delete mode 100644 explorer/fuzzing/fuzzer_corpus/d796ffaed084b3712e41d12d011d75fa05747b4d delete mode 100644 explorer/fuzzing/fuzzer_corpus/d80a07a449e27a4ad393b26c15db6669670d1454 delete mode 100644 explorer/fuzzing/fuzzer_corpus/d8b510587401004831ef4bdef4e4c71f87366aff delete mode 100644 explorer/fuzzing/fuzzer_corpus/d921aec562270acfaa51de02327d430d5f83c90b delete mode 100644 explorer/fuzzing/fuzzer_corpus/d9e9c12831efda83ebde3f030908faee27a4ec66 delete mode 100644 explorer/fuzzing/fuzzer_corpus/da4cda66ebb9c6633a08995da35a4ee374166704 delete mode 100644 explorer/fuzzing/fuzzer_corpus/db8f1269569934ae031d1118e83408d71bb48456 delete mode 100644 explorer/fuzzing/fuzzer_corpus/dbbeeace76678d1edfee6d889ec2c8b62ee540df delete mode 100644 explorer/fuzzing/fuzzer_corpus/dbdfda02dd7254b8f91ac01ded027ae583b1b6c9 delete mode 100644 explorer/fuzzing/fuzzer_corpus/dc2bac7f337d98ff2fa2d34a46b4a7189b808004 delete mode 100644 explorer/fuzzing/fuzzer_corpus/dce8888e7cd22ca49874c3a06980ae13c0db0a56 delete mode 100644 explorer/fuzzing/fuzzer_corpus/dcf3bcfe2b837b1da0c48ba297e83a091fa31056 delete mode 100644 explorer/fuzzing/fuzzer_corpus/dd85eb7cbd01eacce9f8904bb7d1894f2aa7d3b5 delete mode 100644 explorer/fuzzing/fuzzer_corpus/de53043af63bcefa34668c2616de2a4bb376c7d8 delete mode 100644 explorer/fuzzing/fuzzer_corpus/debffbef624f8600943aa77137b53dde725a98a3 delete mode 100644 explorer/fuzzing/fuzzer_corpus/df0ece360136f1fdd9ac662839342edbe8355ff6 delete mode 100644 explorer/fuzzing/fuzzer_corpus/df174278898488f5f9baa6d603e16c74d2ba0402 delete mode 100644 explorer/fuzzing/fuzzer_corpus/df3c512238132d3e0131469f7e1026499b241ee0 delete mode 100644 explorer/fuzzing/fuzzer_corpus/dfa98dcc49016ec99cb77ab6dc61ea74e7a781f4 delete mode 100644 explorer/fuzzing/fuzzer_corpus/dfd63d5f0d06c8b1c4342b746666eca91e029e33 delete mode 100644 explorer/fuzzing/fuzzer_corpus/e16ea66236bb097cd84a5366b1b0035149a138f8 delete mode 100644 explorer/fuzzing/fuzzer_corpus/e272e11bff55666087eff3499d0284bbe951ec76 delete mode 100644 explorer/fuzzing/fuzzer_corpus/e2d470d716b0c66b140be21c060b3cf401703c31 delete mode 100644 explorer/fuzzing/fuzzer_corpus/e2ebf55cbc076357576ce9c6d9901ded3df34748 delete mode 100644 explorer/fuzzing/fuzzer_corpus/e3aac38bc36851ee5535a2bfe5bad50c6c8010cc delete mode 100644 explorer/fuzzing/fuzzer_corpus/e44c7ad3b9b7415573705116168872fedd852901 delete mode 100644 explorer/fuzzing/fuzzer_corpus/e53d906d2cbcf9f5093788833c5d5407a6c880de delete mode 100644 explorer/fuzzing/fuzzer_corpus/e65523d2761eec4d8f5c67e5fcbd9115c6b09f30 delete mode 100644 explorer/fuzzing/fuzzer_corpus/e66bff6e3838e7aa55b6061496c25d641d3da0fa delete mode 100644 explorer/fuzzing/fuzzer_corpus/e6df7945d323407e61102a35e1aa2c1306f1b18a delete mode 100644 explorer/fuzzing/fuzzer_corpus/e6e7b6a3139f1d90ba1a04738348922221a3cca1 delete mode 100644 explorer/fuzzing/fuzzer_corpus/e7c022b29b97c80fd7a44ffd30e554b1485e1a1b delete mode 100644 explorer/fuzzing/fuzzer_corpus/e82081de43e68d0d9f165e5cfb5393428d8b0418 delete mode 100644 explorer/fuzzing/fuzzer_corpus/e856c5a9c99e1334a24dffc16142e13ed7654c1f delete mode 100644 explorer/fuzzing/fuzzer_corpus/e9196781615970e8ab047157e4e8a29c1d8a3398 delete mode 100644 explorer/fuzzing/fuzzer_corpus/e941969dc816f1f93915ba635bb925abb88f4780 delete mode 100644 explorer/fuzzing/fuzzer_corpus/e97c6a39ea33c93381c166c96e33b29658320b75 delete mode 100644 explorer/fuzzing/fuzzer_corpus/ea58e94df8f76630fc2f841df7e3ca830751a901 delete mode 100644 explorer/fuzzing/fuzzer_corpus/ea7caa99b1e4c98d3fdb9b2df61548bffe7127c1 delete mode 100644 explorer/fuzzing/fuzzer_corpus/eaf1655f413b07c8a2e853ae104947b25ef82f10 delete mode 100644 explorer/fuzzing/fuzzer_corpus/eb743ff30c319bedea7cf7a9f9918a24f8c17f1d delete mode 100644 explorer/fuzzing/fuzzer_corpus/eb89ccf2783e67c7e981beca75ba8cea4e5d0af5 delete mode 100644 explorer/fuzzing/fuzzer_corpus/ec5312210b747b89c9dee82b8cb4e97ffd464270 delete mode 100644 explorer/fuzzing/fuzzer_corpus/ec5d47c039afde5b6a6fd3b293959ea2d25d4192 delete mode 100644 explorer/fuzzing/fuzzer_corpus/ecdf063b10b4bdc553fef70d25dea4017bd7e895 delete mode 100644 explorer/fuzzing/fuzzer_corpus/ed5e0b7088b06b6fe1b48ecdfb94d0538e3bd0cb delete mode 100644 explorer/fuzzing/fuzzer_corpus/ed78839715d8d84e515792b114f227bc6d46029f delete mode 100644 explorer/fuzzing/fuzzer_corpus/ee427228e0af7ff6d3f2934ea7b305d1db78add0 delete mode 100644 explorer/fuzzing/fuzzer_corpus/eefa6e59ce3e48fb9ae9b863dc1bc41a6f387802 delete mode 100644 explorer/fuzzing/fuzzer_corpus/ef16a6363d8fea90465cad2ae210fe5d6e60bc04 delete mode 100644 explorer/fuzzing/fuzzer_corpus/ef8c4aac22a87b29cf3c77d951dcdc7be67d9f40 delete mode 100644 explorer/fuzzing/fuzzer_corpus/efa240ed14717324b4e69b96dd37978d9205e4b5 delete mode 100644 explorer/fuzzing/fuzzer_corpus/f0301956e0abeecc69b9af9697e4edf94513011f delete mode 100644 explorer/fuzzing/fuzzer_corpus/f0cefd1478c7fcbc69318e8afb126d12afbed53d delete mode 100644 explorer/fuzzing/fuzzer_corpus/f13ff8011c90eaa1acd4acda1f60aab67e8a0cb3 delete mode 100644 explorer/fuzzing/fuzzer_corpus/f1a704a2a6b6f6e9c6c0443beab1351d38140d29 delete mode 100644 explorer/fuzzing/fuzzer_corpus/f22caf1f5f9e7b1be271192804fcff103b6df437 delete mode 100644 explorer/fuzzing/fuzzer_corpus/f291191731f808d4a0af70817f2790fd73a856d3 delete mode 100644 explorer/fuzzing/fuzzer_corpus/f2adb5ffa5089a7f0e1aedc0c86ca5e5dc599bd9 delete mode 100644 explorer/fuzzing/fuzzer_corpus/f3454063d1455382b7560e4919d46ff7d4e8edc1 delete mode 100644 explorer/fuzzing/fuzzer_corpus/f36e26a77634cca16475bd639220ed9f3c10bbbd delete mode 100644 explorer/fuzzing/fuzzer_corpus/f58bb0ee703a6ef927e40ef61ae26be39faf1110 delete mode 100644 explorer/fuzzing/fuzzer_corpus/f69e3144cbc99fb1dc4d1c8f7a1547679ffeb93a delete mode 100644 explorer/fuzzing/fuzzer_corpus/f70134eee684858470cf431f3a004f847726b93d delete mode 100644 explorer/fuzzing/fuzzer_corpus/f814186f2592800967681e54f9d8e5da4eda4a98 delete mode 100644 explorer/fuzzing/fuzzer_corpus/f8cec197859ce23e82507f1650cf7baadc414472 delete mode 100644 explorer/fuzzing/fuzzer_corpus/f8ecddd975e9df85304ed892fc3467bf3450d1a0 delete mode 100644 explorer/fuzzing/fuzzer_corpus/f8f7da248667d0f6322e9fae98af78f87b071598 delete mode 100644 explorer/fuzzing/fuzzer_corpus/f9ad0401636c2e754eeeaee44af4b89a17dd97c8 delete mode 100644 explorer/fuzzing/fuzzer_corpus/faea007214fb062f0b65f0b222cefaf2e56c6af5 delete mode 100644 explorer/fuzzing/fuzzer_corpus/fbcb1c13d98039a3f2e72bd269829405a5b5ebd2 delete mode 100644 explorer/fuzzing/fuzzer_corpus/fc24f01a1850c3f6c052da65c37eb3121ce3f9b1 delete mode 100644 explorer/fuzzing/fuzzer_corpus/fd4bb5bb72e1b859a74ec8b7bf80141c6bfa162e delete mode 100644 explorer/fuzzing/fuzzer_corpus/fe2d8dd69f81861333652f711d68b91c57e3cfaa delete mode 100644 explorer/fuzzing/fuzzer_corpus/fe6b80415dd5bcc39d4ae70e86907dfab51f47db delete mode 100644 explorer/fuzzing/fuzzer_corpus/fe809bc6dc76afca1a64ecb2b7ec9c2656b64901 delete mode 100644 explorer/fuzzing/fuzzer_corpus/feeda94dab9210897b2b8179722714388c1affb1 delete mode 100644 explorer/fuzzing/fuzzer_corpus/ff47496b2b3ab3be74aa5d310783eb4e07d8061f delete mode 100644 explorer/fuzzing/fuzzer_corpus/ff7d45f3301643f90226cfe6fe84d5df2cee7a7a delete mode 100644 explorer/fuzzing/fuzzer_corpus/ff875f9fc0fdd10e6dfc1c221c7c423eba8f0e95 delete mode 100644 explorer/fuzzing/fuzzer_util.cpp delete mode 100644 explorer/fuzzing/fuzzer_util.h delete mode 100644 explorer/fuzzing/fuzzer_util_test.cpp delete mode 100755 explorer/fuzzing/regen_corpus.py delete mode 100644 testing/fuzzing/carbon.proto delete mode 100644 testing/fuzzing/proto_to_carbon.cpp delete mode 100644 testing/fuzzing/proto_to_carbon.h delete mode 100644 testing/fuzzing/proto_to_carbon_main.cpp delete mode 100644 testing/fuzzing/proto_to_carbon_test.cpp diff --git a/.bazelrc b/.bazelrc index 7d9c852e34736..87e2729f3f07a 100644 --- a/.bazelrc +++ b/.bazelrc @@ -62,16 +62,6 @@ build --host_per_file_copt=external/.*\.(c|cc|cpp|cxx)$@-w build --per_file_copt=utils/treesitter/_treesitter.tree_sitter/.*\.c$@-w build --host_per_file_copt=utils/treesitter/_treesitter.tree_sitter/.*\.c$@-w -# The `cc_proto_library` rule doesn't allow providing `copts`: -# https://github.com/bazelbuild/bazel/issues/22610 -# -# We unfortunately need to work around issues with `-Wmissing-prototypes` in -# generated protobuf code, so pass the `copt` manually here. The warning issue -# is likely part of: -# https://github.com/llvm/llvm-project/issues/94138 -build --per_file_copt=.*\.pb\.cc$@-Wno-missing-prototypes -build --host_per_file_copt=.*\.pb\.cc$@-Wno-missing-prototypes - # Default dynamic linking to off. While this can help build performance in some # edge cases with very large linked executables and a slow linker, between using # fast linkers on all platforms (LLD and the Apple linker), as well as having diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9f87ffe72aff4..1864e1413de64 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -85,7 +85,7 @@ repos: - id: clang-format name: clang-format entry: clang-format - types_or: [c++, proto, def] + types_or: [c++, def] language: python args: ['-i'] additional_dependencies: ['clang-format==17.0.1'] @@ -184,7 +184,7 @@ repos: Exceptions. See /LICENSE for license information. SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - --custom_format - - '\.(carbon|c|json|proto|scss|ypp)(\.tmpl)?$' + - '\.(carbon|c|json|scss|ypp)(\.tmpl)?$' - '' - '// ' - '' diff --git a/MODULE.bazel b/MODULE.bazel index c2f395a0eac79..82ab5c94ca261 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -69,18 +69,6 @@ bazel_dep(name = "rules_bison", version = "0.2.2") bazel_dep(name = "rules_flex", version = "0.2.1") bazel_dep(name = "rules_m4", version = "0.2.3") bazel_dep(name = "rules_cc", version = "0.0.9") -bazel_dep(name = "rules_proto", version = "6.0.2") -bazel_dep(name = "protobuf", version = "27.1") - -libprotobuf_mutator_version = "1.3" - -http_archive( - name = "com_google_libprotobuf_mutator", - build_file = "@//:third_party/libprotobuf_mutator/BUILD.txt", - sha256 = "1ee3473a6b0274494fce599539605bb19305c0efadc62b58d645812132c31baa", - strip_prefix = "libprotobuf-mutator-{0}".format(libprotobuf_mutator_version), - urls = ["https://github.com/google/libprotobuf-mutator/archive/v{0}.tar.gz".format(libprotobuf_mutator_version)], -) bazel_dep(name = "bazel_clang_tidy", dev_dependency = True) git_override( diff --git a/MODULE.bazel.lock b/MODULE.bazel.lock index aa644d8bf9053..12d8666342878 100644 --- a/MODULE.bazel.lock +++ b/MODULE.bazel.lock @@ -18,7 +18,6 @@ "https://bcr.bazel.build/modules/bazel_features/1.1.1/MODULE.bazel": "27b8c79ef57efe08efccbd9dd6ef70d61b4798320b8d3c134fd571f78963dbcd", "https://bcr.bazel.build/modules/bazel_features/1.11.0/MODULE.bazel": "f9382337dd5a474c3b7d334c2f83e50b6eaedc284253334cf823044a26de03e8", "https://bcr.bazel.build/modules/bazel_features/1.11.0/source.json": "c9320aa53cd1c441d24bd6b716da087ad7e4ff0d9742a9884587596edfe53015", - "https://bcr.bazel.build/modules/bazel_features/1.4.1/MODULE.bazel": "e45b6bb2350aff3e442ae1111c555e27eac1d915e77775f6fdc4b351b758b5d7", "https://bcr.bazel.build/modules/bazel_features/1.9.1/MODULE.bazel": "8f679097876a9b609ad1f60249c49d68bfab783dd9be012faf9d82547b14815a", "https://bcr.bazel.build/modules/bazel_skylib/1.0.3/MODULE.bazel": "bcb0fd896384802d1ad283b4e4eb4d718eebd8cb820b0a2c3a347fb971afd9d8", "https://bcr.bazel.build/modules/bazel_skylib/1.1.1/MODULE.bazel": "1add3e7d93ff2e6998f9e118022c84d163917d912f5afafb3058e3d2f1545b5e", @@ -53,8 +52,7 @@ "https://bcr.bazel.build/modules/platforms/0.0.9/MODULE.bazel": "4a87a60c927b56ddd67db50c89acaa62f4ce2a1d2149ccb63ffd871d5ce29ebc", "https://bcr.bazel.build/modules/protobuf/21.7/MODULE.bazel": "a5a29bb89544f9b97edce05642fac225a808b5b7be74038ea3640fae2f8e66a7", "https://bcr.bazel.build/modules/protobuf/26.0/MODULE.bazel": "8402da964092af40097f4a205eec2a33fd4a7748dc43632b7d1629bfd9a2b856", - "https://bcr.bazel.build/modules/protobuf/27.1/MODULE.bazel": "703a7b614728bb06647f965264967a8ef1c39e09e8f167b3ca0bb1fd80449c0d", - "https://bcr.bazel.build/modules/protobuf/27.1/source.json": "11a2567425ffebb89ff59e94fc8a55bc78a418d52a4cc415069ce7c793571352", + "https://bcr.bazel.build/modules/protobuf/26.0/source.json": "1d712839d9a0ad0948046b84bdf1619a0abd4d3a0a9d8ce6192b919a7c18df40", "https://bcr.bazel.build/modules/protobuf/3.19.0/MODULE.bazel": "6b5fbb433f760a99a22b18b6850ed5784ef0e9928a72668b66e4d7ccd47db9b0", "https://bcr.bazel.build/modules/protobuf/3.19.6/MODULE.bazel": "9233edc5e1f2ee276a60de3eaa47ac4132302ef9643238f23128fea53ea12858", "https://bcr.bazel.build/modules/pybind11_bazel/2.11.1.bzl.1/MODULE.bazel": "1ef2994c097ee88f8f7ae8fbf991aaefb0603b2540fe575eca14943bc9f220a6", @@ -81,7 +79,6 @@ "https://bcr.bazel.build/modules/rules_fuzzing/0.5.1/MODULE.bazel": "e6555740cac87ff14367e998bb4a417cf17d7953f81b161afcb679ddc5034b94", "https://bcr.bazel.build/modules/rules_fuzzing/0.5.1/source.json": "dca9ea70f034bac9650d9b679b8bb2d192958898027636361a95822fff8bc5a0", "https://bcr.bazel.build/modules/rules_java/4.0.0/MODULE.bazel": "5a78a7ae82cd1a33cef56dc578c7d2a46ed0dca12643ee45edbb8417899e6f74", - "https://bcr.bazel.build/modules/rules_java/5.3.5/MODULE.bazel": "a4ec4f2db570171e3e5eb753276ee4b389bae16b96207e9d3230895c99644b86", "https://bcr.bazel.build/modules/rules_java/6.5.2/MODULE.bazel": "1d440d262d0e08453fa0c4d8f699ba81609ed0e9a9a0f02cd10b3e7942e61e31", "https://bcr.bazel.build/modules/rules_java/7.6.5/MODULE.bazel": "481164be5e02e4cab6e77a36927683263be56b7e36fef918b458d7a8a1ebadb1", "https://bcr.bazel.build/modules/rules_java/7.6.5/source.json": "a805b889531d1690e3c72a7a7e47a870d00323186a9904b36af83aa3d053ee8d", @@ -100,8 +97,7 @@ "https://bcr.bazel.build/modules/rules_proto/4.0.0/MODULE.bazel": "a7a7b6ce9bee418c1a760b3d84f83a299ad6952f9903c67f19e4edd964894e06", "https://bcr.bazel.build/modules/rules_proto/5.3.0-21.7/MODULE.bazel": "e8dff86b0971688790ae75528fe1813f71809b5afd57facb44dad9e8eca631b7", "https://bcr.bazel.build/modules/rules_proto/6.0.0-rc1/MODULE.bazel": "1e5b502e2e1a9e825eef74476a5a1ee524a92297085015a052510b09a1a09483", - "https://bcr.bazel.build/modules/rules_proto/6.0.2/MODULE.bazel": "ce916b775a62b90b61888052a416ccdda405212b6aaeb39522f7dc53431a5e73", - "https://bcr.bazel.build/modules/rules_proto/6.0.2/source.json": "17a2e195f56cb28d6bbf763e49973d13890487c6945311ed141e196fb660426d", + "https://bcr.bazel.build/modules/rules_proto/6.0.0-rc1/source.json": "8d8448e71706df7450ced227ca6b3812407ff5e2ccad74a43a9fbe79c84e34e0", "https://bcr.bazel.build/modules/rules_python/0.10.2/MODULE.bazel": "cc82bc96f2997baa545ab3ce73f196d040ffb8756fd2d66125a530031cd90e5f", "https://bcr.bazel.build/modules/rules_python/0.20.0/MODULE.bazel": "bfe14d17f20e3fe900b9588f526f52c967a6f281e47a1d6b988679bd15082286", "https://bcr.bazel.build/modules/rules_python/0.22.1/MODULE.bazel": "26114f0c0b5e93018c0c066d6673f1a2c3737c7e90af95eff30cfee38d0bbac7", diff --git a/bazel/cc_toolchains/clang_cc_toolchain_config.bzl b/bazel/cc_toolchains/clang_cc_toolchain_config.bzl index a094b93a3ea47..9c2067e0945ce 100644 --- a/bazel/cc_toolchains/clang_cc_toolchain_config.bzl +++ b/bazel/cc_toolchains/clang_cc_toolchain_config.bzl @@ -156,7 +156,6 @@ def _impl(ctx): "--system-header-prefix=clang-tools-extra/", "--system-header-prefix=clang/", "--system-header-prefix=gmock/", - "--system-header-prefix=google/protobuf/", "--system-header-prefix=gtest/", "--system-header-prefix=libfuzzer/", "--system-header-prefix=llvm/", diff --git a/bazel/check_deps/check_non_test_cc_deps.py b/bazel/check_deps/check_non_test_cc_deps.py index c20ce243904a5..818c160c9a1d4 100644 --- a/bazel/check_deps/check_non_test_cc_deps.py +++ b/bazel/check_deps/check_non_test_cc_deps.py @@ -92,7 +92,6 @@ # message. if repo_base in ( "@google_benchmark", - "@protobuf", "@abseil-cpp", "@googletest", ): diff --git a/explorer/fuzzing/BUILD b/explorer/fuzzing/BUILD deleted file mode 100644 index 0989f370ca403..0000000000000 --- a/explorer/fuzzing/BUILD +++ /dev/null @@ -1,129 +0,0 @@ -# Part of the Carbon Language project, under the Apache License v2.0 with LLVM -# Exceptions. See /LICENSE for license information. -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library", "cc_test") -load("//testing/fuzzing:rules.bzl", "cc_fuzz_test") - -cc_library( - name = "ast_to_proto_lib", - testonly = 1, - srcs = ["ast_to_proto.cpp"], - hdrs = ["ast_to_proto.h"], - # Running clang-tidy is slow, and explorer is currently feature frozen, so - # don't spend time linting it. - tags = ["no-clang-tidy"], - deps = [ - "//explorer/ast", - "//testing/fuzzing:carbon_cc_proto", - "@llvm-project//llvm:Support", - ], -) - -cc_binary( - name = "ast_to_proto", - testonly = 1, - srcs = ["ast_to_proto_main.cpp"], - # Running clang-tidy is slow, and explorer is currently feature frozen, so - # don't spend time linting it. - tags = ["no-clang-tidy"], - deps = [ - ":ast_to_proto_lib", - "//common:bazel_working_dir", - "//common:error", - "//explorer/ast", - "//explorer/base:arena", - "//explorer/syntax", - "//testing/fuzzing:carbon_cc_proto", - "@protobuf//:protobuf_headers", - ], -) - -cc_test( - name = "ast_to_proto_test", - size = "small", - srcs = ["ast_to_proto_test.cpp"], - args = [ - "$(locations //explorer:standard_libraries)", - "$(locations //explorer:carbon_files)", - ], - data = [ - "//explorer:carbon_files", - "//explorer:standard_libraries", - ], - # Running clang-tidy is slow, and explorer is currently feature frozen, so - # don't spend time linting it. - tags = ["no-clang-tidy"], - deps = [ - ":ast_to_proto_lib", - "//explorer/syntax", - "//testing/base:test_raw_ostream", - "//testing/fuzzing:carbon_cc_proto", - "//testing/fuzzing:proto_to_carbon_lib", - "@googletest//:gtest", - "@protobuf//:differencer", - "@protobuf//:protobuf_headers", - ], -) - -cc_library( - name = "fuzzer_util", - testonly = 1, - srcs = ["fuzzer_util.cpp"], - hdrs = ["fuzzer_util.h"], - # Running clang-tidy is slow, and explorer is currently feature frozen, so - # don't spend time linting it. - tags = ["no-clang-tidy"], - deps = [ - "//common:check", - "//common:error", - "//explorer/ast", - "//explorer/parse_and_execute", - "//testing/fuzzing:carbon_cc_proto", - "//testing/fuzzing:proto_to_carbon_lib", - "@bazel_tools//tools/cpp/runfiles", - "@llvm-project//llvm:Support", - "@protobuf//:protobuf_headers", - ], -) - -cc_test( - name = "fuzzer_util_test", - size = "small", - srcs = ["fuzzer_util_test.cpp"], - data = [ - "//explorer:standard_libraries", - ], - # Running clang-tidy is slow, and explorer is currently feature frozen, so - # don't spend time linting it. - tags = ["no-clang-tidy"], - deps = [ - ":fuzzer_util", - "//testing/base:gtest_main", - "//testing/fuzzing:proto_to_carbon_lib", - "@googletest//:gtest", - "@llvm-project//llvm:Support", - "@protobuf//:protobuf_headers", - ], -) - -cc_fuzz_test( - name = "explorer_fuzzer", - size = "small", - srcs = ["explorer_fuzzer.cpp"], - # Uses a macro-based fuzzing library that triggers this warning. And - # explorer is currently feature frozen, so just disable the warning. - copts = ["-Wno-missing-prototypes"], - corpus = glob(["fuzzer_corpus/*"]), - shard_count = 8, - tags = [ - "no-clang-tidy", - "proto-fuzzer", - ], - deps = [ - ":fuzzer_util", - "//common:error", - "@com_google_libprotobuf_mutator//:libprotobuf_mutator", - "@llvm-project//llvm:Support", - ], -) diff --git a/explorer/fuzzing/README.md b/explorer/fuzzing/README.md deleted file mode 100644 index 06681ef62c1fa..0000000000000 --- a/explorer/fuzzing/README.md +++ /dev/null @@ -1,115 +0,0 @@ -# Explorer structured fuzzer - - - -## Overview - -Fuzz testing is based on generating a large amount of random inputs for a -software component in order to trigger bugs and unexpected behavior. Basic -fuzzing uses randomly generated arrays of bytes as inputs, which works great for -some applications but is problematic for testing the logic that operates on -highly structured data, as most random inputs are immediately rejected as -invalid before any interesting parts of the code get a chance to run. - -Structured fuzzing addresses this issue by ensuring the randomly generated data -is itself structured, and as such has a high chance of presenting a valid input. - -`explorer_fuzzer` is a structured fuzzer based on -[libprotobuf-mutator](https://github.com/google/libprotobuf-mutator), which is a -library to randomly mutate -[protobuffers](https://github.com/protocolbuffers/protobuf). - -The input to the fuzzer is an instance of `Carbon::Fuzzing::Carbon` proto -randomly generated by the `libprotobuf-mutator` framework. `explorer_fuzzer` -converts the proto to a Carbon source code string, and tries to parse and -execute the code using `explorer` implementation. - -## Fuzzer data format - -`libprotobuf-mutator` supports fuzzer inputs in either text or binary protocol -buffer format. `explorer_fuzzer` uses text proto format with `Carbon` proto -message definition in `testing/fuzzing/carbon.proto`. - -## Incorporating AST changes into the fuzzer - -Fuzzer AST representation in [carbon.proto](/testing/fuzzing/carbon.proto) needs -to be updated when changes are made to the AST, like adding a new AST node -classes or changing relevant data members of existing nodes. - -[ast_to_proto_test](ast_to_proto_test.cpp) normally should not require direct -changes, as tests work off of Carbon test files in -[testdata](/explorer/testdata). - -To incorporate AST changes into fuzzing logic: - -1. Add appropriate AST information to - [carbon.proto](/testing/fuzzing/carbon.proto). Use existing similar cases as - examples. - -2. Modify [proto_to_carbon.cpp](/testing/fuzzing/proto_to_carbon.cpp) which - handles printing of a Carbon proto instance as a Carbon source string. For - example, add code to print newly introduced proto fields. - -3. Add logic to populate the proto to - [ast_to_proto.cpp](/explorer/fuzzing/ast_to_proto.cpp). - -4. Make sure `bazel test //explorer/fuzzing:ast_to_proto_test` passes with the - new changes. - -## Running the fuzzer - -The fuzzer can be run in 'unit test' mode, where the fuzzer executes on each -input file from the `fuzzer_corpus/` folder, or in 'fuzzing' mode, where the -fuzzer will keep generating random inputs and executing the logic on them until -a crash is triggered, or forever in a bug-free program ;). - -To run in 'unit test' mode: - -```bash -bazel test //explorer/fuzzing:explorer_fuzzer -``` - -To run in 'fuzzing' mode: - -```bash -bazel build --config=fuzzer //explorer/fuzzing:explorer_fuzzer.full_corpus - -bazel-bin/explorer/fuzzing/explorer_fuzzer.full_corpus -``` - -## Investigating a crash - -Typically it's going to be easiest to run explorer on the problematic carbon -program directly. You can do this with: - -```bash -# Convert a specific fuzzer test to a source file -bazel run //testing/fuzzing:proto_to_carbon -- explorer/fuzzing/fuzzer_corpus/abcd1234 > crash.carbon -# Or convert the crash to a source file. -bazel run //testing/fuzzing:proto_to_carbon -- /tmp/crash.textproto > crash.carbon - -# Run explorer on the crash. -bazel run //explorer -- crash.carbon -``` - -It's also possible to run the fuzzer on a single input: - -```bash -bazel-bin/explorer/fuzzing/explorer_fuzzer.full_corpus /tmp/crash.textproto -``` - -## Generating new fuzzer corpus entries - -The ability of the fuzzing framework to generate 'interesting' inputs can be -improved by providing 'seed' inputs known as the fuzzer corpus. The inputs need -to be a `Fuzzing::Carbon` text proto. - -To generate a text proto from Carbon source: - -```bash -bazel run //explorer/fuzzing:ast_to_proto -- /tmp/crash.carbon > crash.textproto -``` diff --git a/explorer/fuzzing/ast_to_proto.cpp b/explorer/fuzzing/ast_to_proto.cpp deleted file mode 100644 index d028359369515..0000000000000 --- a/explorer/fuzzing/ast_to_proto.cpp +++ /dev/null @@ -1,869 +0,0 @@ -// Part of the Carbon Language project, under the Apache License v2.0 with LLVM -// Exceptions. See /LICENSE for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -#include "explorer/fuzzing/ast_to_proto.h" - -#include - -#include "explorer/ast/declaration.h" -#include "explorer/ast/expression.h" -#include "llvm/Support/Casting.h" - -namespace Carbon::Testing { - -using ::llvm::cast; -using ::llvm::dyn_cast; -using ::llvm::isa; - -static auto ExpressionToProto(const Expression& expression) - -> Fuzzing::Expression; -static auto PatternToProto(const Pattern& pattern) -> Fuzzing::Pattern; -static auto StatementToProto(const Statement& statement) -> Fuzzing::Statement; -static auto DeclarationToProto(const Declaration& declaration) - -> Fuzzing::Declaration; - -static auto LibraryNameToProto(const LibraryName& library_name) - -> Fuzzing::LibraryName { - Fuzzing::LibraryName library_name_proto; - library_name_proto.set_package_name(library_name.package); - if (!library_name.path.empty()) { - library_name_proto.set_path(library_name.path); - } - return library_name_proto; -} - -static auto OperatorToProtoEnum(const Operator op) - -> Fuzzing::OperatorExpression::Operator { - switch (op) { - case Operator::AddressOf: - return Fuzzing::OperatorExpression::AddressOf; - case Operator::As: - return Fuzzing::OperatorExpression::As; - case Operator::Deref: - return Fuzzing::OperatorExpression::Deref; - case Operator::Neg: - return Fuzzing::OperatorExpression::Neg; - case Operator::Not: - return Fuzzing::OperatorExpression::Not; - case Operator::Ptr: - return Fuzzing::OperatorExpression::Ptr; - case Operator::Add: - return Fuzzing::OperatorExpression::Add; - case Operator::And: - return Fuzzing::OperatorExpression::And; - case Operator::Eq: - return Fuzzing::OperatorExpression::Eq; - case Operator::NotEq: - return Fuzzing::OperatorExpression::NotEq; - case Operator::Less: - return Fuzzing::OperatorExpression::Less; - case Operator::LessEq: - return Fuzzing::OperatorExpression::LessEq; - case Operator::Greater: - return Fuzzing::OperatorExpression::Greater; - case Operator::GreaterEq: - return Fuzzing::OperatorExpression::GreaterEq; - case Operator::Mul: - return Fuzzing::OperatorExpression::Mul; - case Operator::Div: - return Fuzzing::OperatorExpression::Div; - case Operator::Mod: - return Fuzzing::OperatorExpression::Mod; - case Operator::Or: - return Fuzzing::OperatorExpression::Or; - case Operator::Sub: - return Fuzzing::OperatorExpression::Sub; - case Operator::BitwiseAnd: - return Fuzzing::OperatorExpression::BitwiseAnd; - case Operator::BitwiseOr: - return Fuzzing::OperatorExpression::BitwiseOr; - case Operator::BitwiseXor: - return Fuzzing::OperatorExpression::BitwiseXor; - case Operator::BitShiftLeft: - return Fuzzing::OperatorExpression::BitShiftLeft; - case Operator::BitShiftRight: - return Fuzzing::OperatorExpression::BitShiftRight; - case Operator::Complement: - return Fuzzing::OperatorExpression::Complement; - } -} - -static auto AssignOperatorToProtoEnum(const AssignOperator op) - -> Fuzzing::AssignStatement::Operator { - switch (op) { - case AssignOperator::Plain: - return Fuzzing::AssignStatement::Plain; - case AssignOperator::Add: - return Fuzzing::AssignStatement::Add; - case AssignOperator::And: - return Fuzzing::AssignStatement::And; - case AssignOperator::Mul: - return Fuzzing::AssignStatement::Mul; - case AssignOperator::Div: - return Fuzzing::AssignStatement::Div; - case AssignOperator::Mod: - return Fuzzing::AssignStatement::Mod; - case AssignOperator::Or: - return Fuzzing::AssignStatement::Or; - case AssignOperator::ShiftLeft: - return Fuzzing::AssignStatement::ShiftLeft; - case AssignOperator::ShiftRight: - return Fuzzing::AssignStatement::ShiftRight; - case AssignOperator::Sub: - return Fuzzing::AssignStatement::Sub; - case AssignOperator::Xor: - return Fuzzing::AssignStatement::Xor; - } -} - -static auto FieldInitializerToProto(const FieldInitializer& field) - -> Fuzzing::FieldInitializer { - Fuzzing::FieldInitializer field_proto; - field_proto.set_name(field.name()); - *field_proto.mutable_expression() = ExpressionToProto(field.expression()); - return field_proto; -} - -static auto TupleLiteralExpressionToProto(const TupleLiteral& tuple_literal) - -> Fuzzing::TupleLiteralExpression { - Fuzzing::TupleLiteralExpression tuple_literal_proto; - for (Nonnull field : tuple_literal.fields()) { - *tuple_literal_proto.add_fields() = ExpressionToProto(*field); - } - return tuple_literal_proto; -} - -static auto ExpressionToProto(const Expression& expression) - -> Fuzzing::Expression { - Fuzzing::Expression expression_proto; - switch (expression.kind()) { - case ExpressionKind::BaseAccessExpression: - case ExpressionKind::ValueLiteral: { - // This does not correspond to source syntax. - break; - } - - case ExpressionKind::BuiltinConvertExpression: { - expression_proto = ExpressionToProto( - *cast(expression).source_expression()); - break; - } - - case ExpressionKind::CallExpression: { - const auto& call = cast(expression); - auto* call_proto = expression_proto.mutable_call(); - *call_proto->mutable_function() = ExpressionToProto(call.function()); - *call_proto->mutable_argument() = ExpressionToProto(call.argument()); - break; - } - - case ExpressionKind::FunctionTypeLiteral: { - const auto& fun_type = cast(expression); - auto* fun_type_proto = expression_proto.mutable_function_type(); - *fun_type_proto->mutable_parameter() = - TupleLiteralExpressionToProto(fun_type.parameter()); - *fun_type_proto->mutable_return_type() = - ExpressionToProto(fun_type.return_type()); - break; - } - - case ExpressionKind::SimpleMemberAccessExpression: { - const auto& simple_member_access = - cast(expression); - if (isa(simple_member_access.object())) { - // The parser rewrites `.Foo` into `.Self.Foo`. Undo this - // transformation. - auto* designator_proto = expression_proto.mutable_designator(); - designator_proto->set_name(simple_member_access.member_name()); - break; - } - auto* simple_member_access_proto = - expression_proto.mutable_simple_member_access(); - simple_member_access_proto->set_field(simple_member_access.member_name()); - *simple_member_access_proto->mutable_object() = - ExpressionToProto(simple_member_access.object()); - break; - } - - case ExpressionKind::CompoundMemberAccessExpression: { - const auto& simple_member_access = - cast(expression); - auto* simple_member_access_proto = - expression_proto.mutable_compound_member_access(); - *simple_member_access_proto->mutable_object() = - ExpressionToProto(simple_member_access.object()); - *simple_member_access_proto->mutable_path() = - ExpressionToProto(simple_member_access.path()); - break; - } - - case ExpressionKind::IndexExpression: { - const auto& index = cast(expression); - auto* index_proto = expression_proto.mutable_index(); - *index_proto->mutable_object() = ExpressionToProto(index.object()); - *index_proto->mutable_offset() = ExpressionToProto(index.offset()); - break; - } - - case ExpressionKind::OperatorExpression: { - const auto& operator_expr = cast(expression); - auto* operator_proto = expression_proto.mutable_operator_(); - operator_proto->set_op(OperatorToProtoEnum(operator_expr.op())); - for (Nonnull arg : operator_expr.arguments()) { - *operator_proto->add_arguments() = ExpressionToProto(*arg); - } - break; - } - - case ExpressionKind::TupleLiteral: - *expression_proto.mutable_tuple_literal() = - TupleLiteralExpressionToProto(cast(expression)); - break; - - case ExpressionKind::StructLiteral: { - const auto& struct_literal = cast(expression); - auto* struct_literal_proto = expression_proto.mutable_struct_literal(); - for (const FieldInitializer& field : struct_literal.fields()) { - *struct_literal_proto->add_fields() = FieldInitializerToProto(field); - } - break; - } - - case ExpressionKind::StructTypeLiteral: { - const auto& struct_type_literal = cast(expression); - auto* struct_type_literal_proto = - expression_proto.mutable_struct_type_literal(); - for (const FieldInitializer& field : struct_type_literal.fields()) { - *struct_type_literal_proto->add_fields() = - FieldInitializerToProto(field); - } - break; - } - - case ExpressionKind::IdentifierExpression: { - const auto& identifier = cast(expression); - auto* identifier_proto = expression_proto.mutable_identifier(); - identifier_proto->set_name(identifier.name()); - break; - } - - case ExpressionKind::WhereExpression: { - const auto& where = cast(expression); - auto* where_proto = expression_proto.mutable_where(); - *where_proto->mutable_base() = - ExpressionToProto(where.self_binding().type()); - for (const WhereClause* where : where.clauses()) { - Fuzzing::WhereClause clause_proto; - switch (where->kind()) { - case WhereClauseKind::ImplsWhereClause: { - auto* impls_proto = clause_proto.mutable_impls(); - *impls_proto->mutable_type() = - ExpressionToProto(cast(where)->type()); - *impls_proto->mutable_constraint() = - ExpressionToProto(cast(where)->constraint()); - break; - } - case WhereClauseKind::EqualsWhereClause: { - auto* equals_proto = clause_proto.mutable_equals(); - *equals_proto->mutable_lhs() = - ExpressionToProto(cast(where)->lhs()); - *equals_proto->mutable_rhs() = - ExpressionToProto(cast(where)->rhs()); - break; - } - case WhereClauseKind::RewriteWhereClause: { - auto* rewrite = clause_proto.mutable_rewrite(); - rewrite->set_member_name( - std::string(cast(where)->member_name())); - *rewrite->mutable_replacement() = ExpressionToProto( - cast(where)->replacement()); - break; - } - } - *where_proto->add_clauses() = clause_proto; - } - break; - } - - case ExpressionKind::DotSelfExpression: { - auto* designator_proto = expression_proto.mutable_designator(); - designator_proto->set_name("Self"); - break; - } - - case ExpressionKind::IntrinsicExpression: { - const auto& intrinsic = cast(expression); - auto* call_proto = expression_proto.mutable_call(); - call_proto->mutable_function()->mutable_identifier()->set_name( - std::string(intrinsic.name())); - *call_proto->mutable_argument() = ExpressionToProto(intrinsic.args()); - break; - } - - case ExpressionKind::IfExpression: { - const auto& if_expression = cast(expression); - auto* if_proto = expression_proto.mutable_if_expression(); - *if_proto->mutable_condition() = - ExpressionToProto(if_expression.condition()); - *if_proto->mutable_then_expression() = - ExpressionToProto(if_expression.then_expression()); - *if_proto->mutable_else_expression() = - ExpressionToProto(if_expression.else_expression()); - break; - } - - case ExpressionKind::BoolTypeLiteral: - expression_proto.mutable_bool_type_literal(); - break; - - case ExpressionKind::BoolLiteral: - expression_proto.mutable_bool_literal()->set_value( - cast(expression).value()); - break; - - case ExpressionKind::IntTypeLiteral: - expression_proto.mutable_int_type_literal(); - break; - - case ExpressionKind::IntLiteral: - expression_proto.mutable_int_literal()->set_value( - cast(expression).value()); - break; - - case ExpressionKind::StringLiteral: - expression_proto.mutable_string_literal()->set_value( - cast(expression).value()); - break; - - case ExpressionKind::StringTypeLiteral: - expression_proto.mutable_string_type_literal(); - break; - - case ExpressionKind::TypeTypeLiteral: - expression_proto.mutable_type_type_literal(); - break; - - case ExpressionKind::UnimplementedExpression: - expression_proto.mutable_unimplemented_expression(); - break; - - case ExpressionKind::ArrayTypeLiteral: { - const auto& array_literal = cast(expression); - Fuzzing::ArrayTypeLiteral* array_literal_proto = - expression_proto.mutable_array_type_literal(); - *array_literal_proto->mutable_element_type() = - ExpressionToProto(array_literal.element_type_expression()); - if (array_literal.has_size_expression()) { - *array_literal_proto->mutable_size() = - ExpressionToProto(array_literal.size_expression()); - } - break; - } - } - return expression_proto; -} - -static auto BindingPatternToProto(const BindingPattern& pattern) - -> Fuzzing::BindingPattern { - Fuzzing::BindingPattern pattern_proto; - pattern_proto.set_name(pattern.name()); - *pattern_proto.mutable_type() = PatternToProto(pattern.type()); - return pattern_proto; -} - -static auto GenericBindingToProto(const GenericBinding& binding) - -> Fuzzing::GenericBinding { - Fuzzing::GenericBinding binding_proto; - binding_proto.set_name(binding.name()); - *binding_proto.mutable_type() = ExpressionToProto(binding.type()); - switch (binding.binding_kind()) { - case GenericBinding::BindingKind::Checked: - binding_proto.set_kind(Fuzzing::GenericBinding::Checked); - break; - case GenericBinding::BindingKind::Template: - binding_proto.set_kind(Fuzzing::GenericBinding::Template); - break; - } - return binding_proto; -} - -static auto TuplePatternToProto(const TuplePattern& tuple_pattern) - -> Fuzzing::TuplePattern { - Fuzzing::TuplePattern tuple_pattern_proto; - for (Nonnull field : tuple_pattern.fields()) { - *tuple_pattern_proto.add_fields() = PatternToProto(*field); - } - return tuple_pattern_proto; -} - -static auto PatternToProto(const Pattern& pattern) -> Fuzzing::Pattern { - Fuzzing::Pattern pattern_proto; - switch (pattern.kind()) { - case PatternKind::GenericBinding: { - const auto& binding = cast(pattern); - *pattern_proto.mutable_generic_binding() = GenericBindingToProto(binding); - break; - } - case PatternKind::BindingPattern: { - const auto& binding = cast(pattern); - *pattern_proto.mutable_binding_pattern() = BindingPatternToProto(binding); - break; - } - case PatternKind::TuplePattern: - *pattern_proto.mutable_tuple_pattern() = - TuplePatternToProto(cast(pattern)); - break; - - case PatternKind::AlternativePattern: { - const auto& alternative = cast(pattern); - auto* alternative_proto = pattern_proto.mutable_alternative_pattern(); - alternative_proto->set_alternative_name(alternative.alternative_name()); - *alternative_proto->mutable_choice_type() = - ExpressionToProto(alternative.choice_type()); - *alternative_proto->mutable_arguments() = - TuplePatternToProto(alternative.arguments()); - break; - } - - case PatternKind::ExpressionPattern: - *pattern_proto.mutable_expression_pattern()->mutable_expression() = - ExpressionToProto(cast(pattern).expression()); - break; - - case PatternKind::AutoPattern: - pattern_proto.mutable_auto_pattern(); - break; - - case PatternKind::VarPattern: - *pattern_proto.mutable_var_pattern()->mutable_pattern() = - PatternToProto(cast(pattern).pattern()); - break; - case PatternKind::AddrPattern: - *pattern_proto.mutable_addr_pattern()->mutable_binding_pattern() = - BindingPatternToProto(cast(pattern).binding()); - break; - } - return pattern_proto; -} - -static auto BlockStatementToProto(const Block& block) - -> Fuzzing::BlockStatement { - Fuzzing::BlockStatement block_proto; - for (Nonnull statement : block.statements()) { - *block_proto.add_statements() = StatementToProto(*statement); - } - return block_proto; -} - -static auto StatementToProto(const Statement& statement) -> Fuzzing::Statement { - Fuzzing::Statement statement_proto; - switch (statement.kind()) { - case StatementKind::ExpressionStatement: - *statement_proto.mutable_expression_statement()->mutable_expression() = - ExpressionToProto(cast(statement).expression()); - break; - - case StatementKind::Assign: { - const auto& assign = cast(statement); - auto* assign_proto = statement_proto.mutable_assign(); - *assign_proto->mutable_lhs() = ExpressionToProto(assign.lhs()); - *assign_proto->mutable_rhs() = ExpressionToProto(assign.rhs()); - assign_proto->set_op(AssignOperatorToProtoEnum(assign.op())); - break; - } - - case StatementKind::IncrementDecrement: { - const auto& inc_dec = cast(statement); - auto* inc_dec_proto = statement_proto.mutable_inc_dec(); - *inc_dec_proto->mutable_operand() = ExpressionToProto(inc_dec.argument()); - inc_dec_proto->set_is_increment(inc_dec.is_increment()); - break; - } - - case StatementKind::VariableDefinition: { - const auto& def = cast(statement); - auto* def_proto = statement_proto.mutable_variable_definition(); - *def_proto->mutable_pattern() = PatternToProto(def.pattern()); - if (def.has_init()) { - *def_proto->mutable_init() = ExpressionToProto(def.init()); - } - def_proto->set_is_returned(def.is_returned()); - break; - } - - case StatementKind::If: { - const auto& if_stmt = cast(statement); - auto* if_proto = statement_proto.mutable_if_statement(); - *if_proto->mutable_condition() = ExpressionToProto(if_stmt.condition()); - *if_proto->mutable_then_block() = - BlockStatementToProto(if_stmt.then_block()); - if (if_stmt.else_block().has_value()) { - *if_proto->mutable_else_block() = - BlockStatementToProto(**if_stmt.else_block()); - } - break; - } - - case StatementKind::ReturnVar: { - statement_proto.mutable_return_var_statement(); - break; - } - - case StatementKind::ReturnExpression: { - const auto& ret = cast(statement); - auto* ret_proto = statement_proto.mutable_return_expression_statement(); - if (!ret.is_omitted_expression()) { - *ret_proto->mutable_expression() = ExpressionToProto(ret.expression()); - } else { - ret_proto->set_is_omitted_expression(true); - } - break; - } - - case StatementKind::Block: - *statement_proto.mutable_block() = - BlockStatementToProto(cast(statement)); - break; - - case StatementKind::While: { - const auto& while_stmt = cast(statement); - auto* while_proto = statement_proto.mutable_while_statement(); - *while_proto->mutable_condition() = - ExpressionToProto(while_stmt.condition()); - *while_proto->mutable_body() = BlockStatementToProto(while_stmt.body()); - break; - } - - case StatementKind::Match: { - const auto& match = cast(statement); - auto* match_proto = statement_proto.mutable_match(); - *match_proto->mutable_expression() = - ExpressionToProto(match.expression()); - for (const Match::Clause& clause : match.clauses()) { - auto* clause_proto = match_proto->add_clauses(); - // TODO: Working out whether we have a default clause after the fact - // like this is fragile. - bool is_default_clause = false; - if (const auto* binding = dyn_cast(&clause.pattern())) { - if (binding->name() == AnonymousName && - isa(binding->type()) && - binding->source_loc() == binding->type().source_loc()) { - is_default_clause = true; - } - } - if (is_default_clause) { - clause_proto->set_is_default(true); - } else { - *clause_proto->mutable_pattern() = PatternToProto(clause.pattern()); - } - *clause_proto->mutable_statement() = - StatementToProto(clause.statement()); - } - break; - } - - case StatementKind::Break: - // Initializes with the default value; there's nothing to set. - statement_proto.mutable_break_statement(); - break; - - case StatementKind::Continue: - // Initializes with the default value; there's nothing to set. - statement_proto.mutable_continue_statement(); - break; - - case StatementKind::For: { - const auto& for_stmt = cast(statement); - auto* for_proto = statement_proto.mutable_for_statement(); - *for_proto->mutable_var_decl() = - BindingPatternToProto(for_stmt.variable_declaration()); - *for_proto->mutable_target() = ExpressionToProto(for_stmt.loop_target()); - *for_proto->mutable_body() = BlockStatementToProto(for_stmt.body()); - break; - } - } - return statement_proto; -} - -static auto ReturnTermToProto(const ReturnTerm& return_term) - -> Fuzzing::ReturnTerm { - Fuzzing::ReturnTerm return_term_proto; - if (return_term.is_omitted()) { - return_term_proto.set_kind(Fuzzing::ReturnTerm::Omitted); - } else if (return_term.is_auto()) { - return_term_proto.set_kind(Fuzzing::ReturnTerm::Auto); - } else { - return_term_proto.set_kind(Fuzzing::ReturnTerm::Expression); - *return_term_proto.mutable_type() = - ExpressionToProto(**return_term.type_expression()); - } - return return_term_proto; -} - -static auto DeclaredNameToProto(const DeclaredName& name) - -> Fuzzing::DeclaredName { - Fuzzing::DeclaredName name_proto; - name_proto.set_name(std::string(name.inner_name())); - for (const auto& [loc, qual] : name.qualifiers()) { - name_proto.add_qualifiers(qual); - } - return name_proto; -} - -static auto DeclarationToProto(const Declaration& declaration) - -> Fuzzing::Declaration { - Fuzzing::Declaration declaration_proto; - switch (declaration.kind()) { - case DeclarationKind::NamespaceDeclaration: { - const auto& namespace_decl = cast(declaration); - auto* namespace_proto = declaration_proto.mutable_namespace_(); - *namespace_proto->mutable_name() = - DeclaredNameToProto(namespace_decl.name()); - break; - } - case DeclarationKind::DestructorDeclaration: { - const auto& function = cast(declaration); - auto* function_proto = declaration_proto.mutable_destructor(); - if (function.is_method()) { - switch (function.self_pattern().kind()) { - case PatternKind::AddrPattern: - *function_proto->mutable_self_pattern() = - PatternToProto(cast(function.self_pattern())); - break; - case PatternKind::BindingPattern: - *function_proto->mutable_self_pattern() = - PatternToProto(cast(function.self_pattern())); - break; - default: - // Parser shouldn't allow self_pattern to be anything other than - // AddrPattern or BindingPattern - CARBON_FATAL( - "self_pattern in method declaration can be either AddrPattern " - "or BindingPattern. Actual pattern: {0}", - function.self_pattern()); - break; - } - } - if (function.body().has_value()) { - *function_proto->mutable_body() = - BlockStatementToProto(**function.body()); - } - break; - } - - case DeclarationKind::FunctionDeclaration: { - const auto& function = cast(declaration); - auto* function_proto = declaration_proto.mutable_function(); - *function_proto->mutable_name() = DeclaredNameToProto(function.name()); - for (Nonnull binding : - function.deduced_parameters()) { - *function_proto->add_deduced_parameters() = - GenericBindingToProto(*binding); - } - if (function.is_method()) { - switch (function.self_pattern().kind()) { - case PatternKind::AddrPattern: - *function_proto->mutable_self_pattern() = - PatternToProto(cast(function.self_pattern())); - break; - case PatternKind::BindingPattern: - *function_proto->mutable_self_pattern() = - PatternToProto(cast(function.self_pattern())); - break; - default: - // Parser shouldn't allow self_pattern to be anything other than - // AddrPattern or BindingPattern - CARBON_FATAL( - "self_pattern in method declaration can be either AddrPattern " - "or BindingPattern. Actual pattern: {0}", - function.self_pattern()); - break; - } - } - *function_proto->mutable_param_pattern() = - TuplePatternToProto(function.param_pattern()); - *function_proto->mutable_return_term() = - ReturnTermToProto(function.return_term()); - if (function.body().has_value()) { - *function_proto->mutable_body() = - BlockStatementToProto(**function.body()); - } - break; - } - - case DeclarationKind::ClassDeclaration: { - const auto& class_decl = cast(declaration); - auto* class_proto = declaration_proto.mutable_class_declaration(); - *class_proto->mutable_name() = DeclaredNameToProto(class_decl.name()); - if (class_decl.type_params().has_value()) { - *class_proto->mutable_type_params() = - TuplePatternToProto(**class_decl.type_params()); - } - for (Nonnull member : class_decl.members()) { - *class_proto->add_members() = DeclarationToProto(*member); - } - break; - } - - case DeclarationKind::MixinDeclaration: { - const auto& mixin = cast(declaration); - auto* mixin_proto = declaration_proto.mutable_mixin(); - *mixin_proto->mutable_name() = DeclaredNameToProto(mixin.name()); - for (const auto& member : mixin.members()) { - *mixin_proto->add_members() = DeclarationToProto(*member); - } - // Type params not implemented yet - // if (mixin.params().has_value()) { - // *mixin_proto->mutable_params() = - // TuplePatternToProto(**mixin.params()); - //} - *mixin_proto->mutable_self() = GenericBindingToProto(*mixin.self()); - break; - } - - case DeclarationKind::MixDeclaration: { - const auto& mix = cast(declaration); - auto* mix_proto = declaration_proto.mutable_mix(); - *mix_proto->mutable_mixin() = ExpressionToProto(mix.mixin()); - break; - } - - case DeclarationKind::ChoiceDeclaration: { - const auto& choice = cast(declaration); - auto* choice_proto = declaration_proto.mutable_choice(); - *choice_proto->mutable_name() = DeclaredNameToProto(choice.name()); - for (Nonnull alternative : - choice.alternatives()) { - auto* alternative_proto = choice_proto->add_alternatives(); - alternative_proto->set_name(alternative->name()); - if (auto params = alternative->parameters()) { - *alternative_proto->mutable_signature() = - TupleLiteralExpressionToProto(**params); - } - } - break; - } - - case DeclarationKind::VariableDeclaration: { - const auto& var = cast(declaration); - auto* var_proto = declaration_proto.mutable_variable(); - *var_proto->mutable_binding() = BindingPatternToProto(var.binding()); - if (var.has_initializer()) { - *var_proto->mutable_initializer() = - ExpressionToProto(var.initializer()); - } - break; - } - - case DeclarationKind::InterfaceExtendDeclaration: { - const auto& extend = cast(declaration); - auto* extend_proto = declaration_proto.mutable_interface_extend(); - *extend_proto->mutable_base() = ExpressionToProto(*extend.base()); - break; - } - - case DeclarationKind::InterfaceRequireDeclaration: { - const auto& require = cast(declaration); - auto* require_proto = declaration_proto.mutable_interface_require(); - *require_proto->mutable_impl_type() = - ExpressionToProto(*require.impl_type()); - *require_proto->mutable_constraint() = - ExpressionToProto(*require.constraint()); - break; - } - - case DeclarationKind::AssociatedConstantDeclaration: { - const auto& assoc = cast(declaration); - auto* let_proto = declaration_proto.mutable_let(); - *let_proto->mutable_pattern() = PatternToProto(assoc.binding()); - break; - } - - case DeclarationKind::InterfaceDeclaration: { - const auto& interface = cast(declaration); - auto* interface_proto = declaration_proto.mutable_interface(); - *interface_proto->mutable_name() = DeclaredNameToProto(interface.name()); - for (const auto& member : interface.members()) { - *interface_proto->add_members() = DeclarationToProto(*member); - } - break; - } - - case DeclarationKind::ConstraintDeclaration: { - const auto& constraint = cast(declaration); - auto* constraint_proto = declaration_proto.mutable_constraint(); - *constraint_proto->mutable_name() = - DeclaredNameToProto(constraint.name()); - for (const auto& member : constraint.members()) { - *constraint_proto->add_members() = DeclarationToProto(*member); - } - break; - } - - case DeclarationKind::ImplDeclaration: { - const auto& impl = cast(declaration); - auto* impl_proto = declaration_proto.mutable_impl(); - switch (impl.kind()) { - case ImplKind::InternalImpl: - impl_proto->set_kind(Fuzzing::ImplDeclaration::InternalImpl); - break; - case ImplKind::ExternalImpl: - impl_proto->set_kind(Fuzzing::ImplDeclaration::ExternalImpl); - break; - } - for (Nonnull binding : impl.deduced_parameters()) { - *impl_proto->add_deduced_parameters() = GenericBindingToProto(*binding); - } - *impl_proto->mutable_impl_type() = ExpressionToProto(*impl.impl_type()); - *impl_proto->mutable_interface() = ExpressionToProto(impl.interface()); - for (const auto& member : impl.members()) { - *impl_proto->add_members() = DeclarationToProto(*member); - } - break; - } - - case DeclarationKind::MatchFirstDeclaration: { - const auto& match_first = cast(declaration); - auto* match_first_proto = declaration_proto.mutable_match_first(); - for (const auto* impl : match_first.impl_declarations()) { - *match_first_proto->add_impl_declarations() = DeclarationToProto(*impl); - } - break; - } - - case DeclarationKind::SelfDeclaration: { - CARBON_FATAL("Unreachable SelfDeclaration in DeclarationToProto()."); - } - - case DeclarationKind::AliasDeclaration: { - const auto& alias = cast(declaration); - auto* alias_proto = declaration_proto.mutable_alias(); - *alias_proto->mutable_name() = DeclaredNameToProto(alias.name()); - *alias_proto->mutable_target() = ExpressionToProto(alias.target()); - break; - } - - case DeclarationKind::ExtendBaseDeclaration: { - const auto& extend_base = cast(declaration); - auto* extend_base_proto = declaration_proto.mutable_extend_base(); - *extend_base_proto->mutable_base_class() = - ExpressionToProto(*extend_base.base_class()); - break; - } - } - return declaration_proto; -} - -auto AstToProto(const AST& ast) -> Fuzzing::Carbon { - Fuzzing::Carbon carbon; - auto* unit = carbon.mutable_compilation_unit(); - *unit->mutable_package_statement() = LibraryNameToProto(ast.package); - unit->set_is_api(ast.is_api); - for (const Declaration* declaration : ast.declarations) { - *unit->add_declarations() = DeclarationToProto(*declaration); - } - return carbon; -} - -} // namespace Carbon::Testing diff --git a/explorer/fuzzing/ast_to_proto.h b/explorer/fuzzing/ast_to_proto.h deleted file mode 100644 index c2fcb856b0c42..0000000000000 --- a/explorer/fuzzing/ast_to_proto.h +++ /dev/null @@ -1,18 +0,0 @@ -// Part of the Carbon Language project, under the Apache License v2.0 with LLVM -// Exceptions. See /LICENSE for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -#ifndef CARBON_EXPLORER_FUZZING_AST_TO_PROTO_H_ -#define CARBON_EXPLORER_FUZZING_AST_TO_PROTO_H_ - -#include "explorer/ast/ast.h" -#include "testing/fuzzing/carbon.pb.h" - -namespace Carbon::Testing { - -// Builds a protobuf representation of `ast`. -auto AstToProto(const AST& ast) -> Fuzzing::Carbon; - -} // namespace Carbon::Testing - -#endif // CARBON_EXPLORER_FUZZING_AST_TO_PROTO_H_ diff --git a/explorer/fuzzing/ast_to_proto_main.cpp b/explorer/fuzzing/ast_to_proto_main.cpp deleted file mode 100644 index 1c3e090fc172e..0000000000000 --- a/explorer/fuzzing/ast_to_proto_main.cpp +++ /dev/null @@ -1,61 +0,0 @@ -// Part of the Carbon Language project, under the Apache License v2.0 with LLVM -// Exceptions. See /LICENSE for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -// To convert a Carbon file to a text proto: -// `ast_to_proto ` - -#include - -#include -#include -#include - -#include "common/bazel_working_dir.h" -#include "common/error.h" -#include "explorer/ast/ast.h" -#include "explorer/base/arena.h" -#include "explorer/fuzzing/ast_to_proto.h" -#include "explorer/syntax/parse.h" -#include "testing/fuzzing/carbon.pb.h" - -namespace Carbon::Testing { - -static auto Main(int argc, char** argv) -> ErrorOr { - SetWorkingDirForBazel(); - - if (argc != 2) { - return Error("Syntax: ast_to_proto "); - } - if (!std::filesystem::is_regular_file(argv[1])) { - return Error("Argument must be a file."); - } - - Arena arena; - const ErrorOr ast = - Parse(*llvm::vfs::getRealFileSystem(), &arena, argv[1], FileKind::Main, - /*parser_debug=*/false); - if (!ast.ok()) { - return ErrorBuilder() << "Parsing failed: " << ast.error().message(); - } - Fuzzing::Carbon carbon_proto = AstToProto(*ast); - - std::string proto_string; - google::protobuf::TextFormat::Printer p; - if (!p.PrintToString(carbon_proto, &proto_string)) { - return Error("Failed to convert to text proto"); - } - std::cout << proto_string; - return Success(); -} - -} // namespace Carbon::Testing - -auto main(int argc, char** argv) -> int { - auto err = Carbon::Testing::Main(argc, argv); - if (!err.ok()) { - std::cerr << err.error().message() << "\n"; - return EXIT_FAILURE; - } - return EXIT_SUCCESS; -} diff --git a/explorer/fuzzing/ast_to_proto_test.cpp b/explorer/fuzzing/ast_to_proto_test.cpp deleted file mode 100644 index c3d72e36683ac..0000000000000 --- a/explorer/fuzzing/ast_to_proto_test.cpp +++ /dev/null @@ -1,208 +0,0 @@ -// Part of the Carbon Language project, under the Apache License v2.0 with LLVM -// Exceptions. See /LICENSE for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -#include "explorer/fuzzing/ast_to_proto.h" - -#include -#include -#include -#include - -#include -#include -#include -#include - -#include "explorer/syntax/parse.h" -#include "testing/base/test_raw_ostream.h" -#include "testing/fuzzing/proto_to_carbon.h" - -namespace Carbon::Testing { -namespace { - -using ::google::protobuf::Descriptor; -using ::google::protobuf::FieldDescriptor; -using ::google::protobuf::Message; -using ::google::protobuf::Reflection; - -static std::vector* carbon_files = nullptr; - -// Returns a string representation of `ast`. -auto AstToString(const AST& ast) -> std::string { - TestRawOstream out; - out << "package " << ast.package.package << (ast.is_api ? "api" : "impl") - << ";\n"; - for (auto* declaration : ast.declarations) { - out << *declaration << "\n"; - } - return out.TakeStr(); -} - -// Concatenates message and field names. -auto FieldName(const Descriptor& descriptor, const FieldDescriptor& field) - -> std::string { - return descriptor.full_name() + "." + field.name(); -} - -// Traverses the proto to find all unique messages and fields. -auto CollectAllFields(const Descriptor& descriptor, - std::set& all_messages, - std::set& all_fields) -> void { - all_messages.insert(descriptor.full_name()); - for (int i = 0; i < descriptor.field_count(); ++i) { - const FieldDescriptor* field = descriptor.field(i); - all_fields.insert(FieldName(descriptor, *field)); - if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE && - all_messages.find(field->message_type()->full_name()) == - all_messages.end()) { - CollectAllFields(*field->message_type(), all_messages, all_fields); - } - } -} - -// Traverses an instance of the proto to find all used fields. -auto CollectUsedFields(const Message& message, - std::set& used_fields) -> void { - const Descriptor* descriptor = message.GetDescriptor(); - const Reflection* reflection = message.GetReflection(); - for (int i = 0; i < descriptor->field_count(); ++i) { - const FieldDescriptor* field = descriptor->field(i); - if (!field->is_repeated()) { - if (reflection->HasField(message, field)) { - used_fields.insert(FieldName(*descriptor, *field)); - } - } else { - if (reflection->FieldSize(message, field) > 0) { - used_fields.insert(FieldName(*descriptor, *field)); - } - } - if (field->cpp_type() == FieldDescriptor::CPPTYPE_MESSAGE) { - if (!field->is_repeated()) { - if (reflection->HasField(message, field)) { - CollectUsedFields(reflection->GetMessage(message, field), - used_fields); - } - } else { - for (int i = 0; i < reflection->FieldSize(message, field); ++i) { - CollectUsedFields(reflection->GetRepeatedMessage(message, field, i), - used_fields); - } - } - } - } -} - -// A 'smoke' test to check that each field present in `carbon.proto` is set at -// least once after converting all Carbon test sources to proto representation. -TEST(AstToProtoTest, SetsAllProtoFields) { - Fuzzing::Carbon merged_proto; - for (const llvm::StringRef f : *carbon_files) { - Arena arena; - const ErrorOr ast = Parse(*llvm::vfs::getRealFileSystem(), &arena, f, - FileKind::Main, /*parser_debug=*/false); - if (ast.ok()) { - merged_proto.MergeFrom(AstToProto(*ast)); - } - } - - std::set all_messages; - std::set all_fields; - CollectAllFields(*Fuzzing::Carbon::GetDescriptor(), all_messages, all_fields); - - std::set used_fields; - CollectUsedFields(merged_proto, used_fields); - - std::set unused_fields; - std::set_difference(all_fields.begin(), all_fields.end(), used_fields.begin(), - used_fields.end(), - std::inserter(unused_fields, unused_fields.begin())); - EXPECT_EQ(unused_fields.size(), 0) - << "Unused fields" - << std::accumulate(unused_fields.begin(), unused_fields.end(), - std::string(), - [](const std::string& a, const std::string& b) { - return a + '\n' + b; - }); -} - -// Ensures that `carbon.proto` is able to represent ASTs correctly without -// information loss by doing round-trip testing of files: -// -// 1) Converts each parseable Carbon file to a proto representation. -// 2) Converts back to Carbon source. -// 3) Parses the source into a second instance of an AST. -// 4) Compares the second AST with the original. -TEST(AstToProtoTest, Roundtrip) { - int parsed_ok_count = 0; - for (const llvm::StringRef f : *carbon_files) { - Arena arena; - const ErrorOr ast = Parse(*llvm::vfs::getRealFileSystem(), &arena, f, - FileKind::Main, /*parser_debug=*/false); - if (ast.ok()) { - ++parsed_ok_count; - const std::string source_from_proto = - ProtoToCarbon(AstToProto(*ast), /*maybe_add_main=*/false); - SCOPED_TRACE(testing::Message() - << "Carbon file: " << f << ", source from proto:\n" - << source_from_proto); - const ErrorOr ast_from_proto = ParseFromString( - &arena, f, FileKind::Main, source_from_proto, /*parser_debug=*/false); - - if (ast_from_proto.ok()) { - EXPECT_EQ(AstToString(*ast), AstToString(*ast_from_proto)); - } else { - ADD_FAILURE() << "Parse error " << ast_from_proto.error().message(); - } - } - } - // Makes sure files were actually processed. - EXPECT_GT(parsed_ok_count, 0); -} - -auto CloneAST(Arena& arena, const AST& ast) -> AST { - CloneContext context(&arena); - return { - .package = ast.package, - .is_api = ast.is_api, - .imports = ast.imports, - .declarations = context.Clone(ast.declarations), - .main_call = context.Clone(ast.main_call), - .num_prelude_declarations = ast.num_prelude_declarations, - }; -} - -// Verifies that an AST and its clone produce identical protos. -TEST(AstToProtoTest, SameProtoAfterClone) { - int parsed_ok_count = 0; - for (const llvm::StringRef f : *carbon_files) { - Arena arena; - const ErrorOr ast = Parse(*llvm::vfs::getRealFileSystem(), &arena, f, - FileKind::Main, /*parser_debug=*/false); - if (ast.ok()) { - ++parsed_ok_count; - const AST clone = CloneAST(arena, *ast); - const Fuzzing::Carbon orig_proto = AstToProto(*ast); - const Fuzzing::Carbon clone_proto = AstToProto(clone); - // TODO: Use EqualsProto once it's available. - EXPECT_TRUE(google::protobuf::util::MessageDifferencer::Equals( - orig_proto, clone_proto)) - << "clone produced a different AST. original:\n" - << AstToString(*ast) << "clone:\n" - << AstToString(clone); - } - } - // Makes sure files were actually processed. - EXPECT_GT(parsed_ok_count, 0); -} - -} // namespace -} // namespace Carbon::Testing - -auto main(int argc, char** argv) -> int { - ::testing::InitGoogleTest(&argc, argv); - // gtest should remove flags, leaving just input files. - std::vector carbon_files(&argv[1], &argv[argc]); - Carbon::Testing::carbon_files = &carbon_files; - return RUN_ALL_TESTS(); -} diff --git a/explorer/fuzzing/explorer_fuzzer.cpp b/explorer/fuzzing/explorer_fuzzer.cpp deleted file mode 100644 index ce0ccc4cd89b0..0000000000000 --- a/explorer/fuzzing/explorer_fuzzer.cpp +++ /dev/null @@ -1,14 +0,0 @@ -// Part of the Carbon Language project, under the Apache License v2.0 with LLVM -// Exceptions. See /LICENSE for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -#include - -#include "common/error.h" -#include "explorer/fuzzing/fuzzer_util.h" -#include "llvm/Support/raw_ostream.h" - -DEFINE_TEXT_PROTO_FUZZER(const Carbon::Fuzzing::Carbon& input) { - // Only verifying it doesn't crash. - (void)Carbon::Testing::ParseAndExecuteProto(input); -} diff --git a/explorer/fuzzing/fuzzer_corpus/0058bf96eefe20ae6eaceee383c12d36907710f2 b/explorer/fuzzing/fuzzer_corpus/0058bf96eefe20ae6eaceee383c12d36907710f2 deleted file mode 100644 index f2c2e2367aa76..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/0058bf96eefe20ae6eaceee383c12d36907710f2 +++ /dev/null @@ -1,92 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "t" - type { - auto_pattern { - } - } - } - } - init { - int_literal { - value: 5 - } - } - is_returned: false - } - } - statements { - match { - expression { - identifier { - name: "t" - } - } - clauses { - pattern { - generic_binding { - name: "T" - type { - int_type_literal { - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - clauses { - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - is_default: true - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/015080d35638d6c7a6dce55192171f043955fe3e b/explorer/fuzzing/fuzzer_corpus/015080d35638d6c7a6dce55192171f043955fe3e deleted file mode 100644 index c5749bf62e16d..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/015080d35638d6c7a6dce55192171f043955fe3e +++ /dev/null @@ -1,161 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Point" - } - members { - function { - name { - name: "Origin" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 0 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "f" - type { - expression_pattern { - expression { - function_type { - return_type { - identifier { - name: "Point" - } - } - parameter { - } - } - } - } - } - } - } - init { - simple_member_access { - field: "Origin" - object { - identifier { - name: "Point" - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - simple_member_access { - field: "x" - object { - call { - function { - identifier { - name: "f" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/03bc316209e9f44df5533e0b4c72641729b3f4f9 b/explorer/fuzzing/fuzzer_corpus/03bc316209e9f44df5533e0b4c72641729b3f4f9 deleted file mode 100644 index 0e3a2a9e52006..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/03bc316209e9f44df5533e0b4c72641729b3f4f9 +++ /dev/null @@ -1,266 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "A" - } - } - interface { - call { - function { - identifier { - name: "ImplicitAs" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "Convert" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - match { - expression { - tuple_literal { - fields { - identifier { - name: "a" - } - } - fields { - identifier { - name: "a" - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - expression_pattern { - expression { - int_literal { - value: 0 - } - } - } - } - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - clauses { - pattern { - expression_pattern { - expression { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 1 - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/03ca8fb6a63c2623870c2f28d0f7a64ffbfd5802 b/explorer/fuzzing/fuzzer_corpus/03ca8fb6a63c2623870c2f28d0f7a64ffbfd5802 deleted file mode 100644 index 0f40b5855ed40..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/03ca8fb6a63c2623870c2f28d0f7a64ffbfd5802 +++ /dev/null @@ -1,182 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "lhs" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 8 - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "rhs" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 3 - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Interface: {0}" - } - } - fields { - call { - function { - compound_member_access { - object { - identifier { - name: "lhs" - } - } - path { - simple_member_access { - field: "Op" - object { - call { - function { - identifier { - name: "ModWith" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "rhs" - } - } - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Op: {0}" - } - } - fields { - operator { - op: Mod - arguments { - identifier { - name: "lhs" - } - } - arguments { - identifier { - name: "rhs" - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/041848ccba146125cb9038e818f54c3b495a6ad8 b/explorer/fuzzing/fuzzer_corpus/041848ccba146125cb9038e818f54c3b495a6ad8 deleted file mode 100644 index 1a111812cd99d..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/041848ccba146125cb9038e818f54c3b495a6ad8 +++ /dev/null @@ -1,76 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - tuple_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - tuple_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/0481d56f09c69f10476dc2498c39d6e7d4c24174 b/explorer/fuzzing/fuzzer_corpus/0481d56f09c69f10476dc2498c39d6e7d4c24174 deleted file mode 100644 index a4d298641b1dd..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/0481d56f09c69f10476dc2498c39d6e7d4c24174 +++ /dev/null @@ -1,279 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Point" - } - members { - function { - name { - name: "Origin" - } - param_pattern { - fields { - binding_pattern { - name: "zero" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - identifier { - name: "zero" - } - } - } - fields { - name: "y" - expression { - identifier { - name: "zero" - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "GetX" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - type_params { - fields { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Origin" - object { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "GetX" - object { - identifier { - name: "p" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/049f14948dace26b462bbe7e8a8675fe701608cb b/explorer/fuzzing/fuzzer_corpus/049f14948dace26b462bbe7e8a8675fe701608cb deleted file mode 100644 index 44ad6b3011ed0..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/049f14948dace26b462bbe7e8a8675fe701608cb +++ /dev/null @@ -1,274 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - alias { - name { - name: "AB" - } - target { - struct_type_literal { - fields { - name: "a" - expression { - int_type_literal { - } - } - } - fields { - name: "b" - expression { - int_type_literal { - } - } - } - } - } - } - } - declarations { - alias { - name { - name: "BA" - } - target { - struct_type_literal { - fields { - name: "b" - expression { - int_type_literal { - } - } - } - fields { - name: "a" - expression { - int_type_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "ab" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "b" - expression { - int_literal { - value: 1 - } - } - } - fields { - name: "a" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "ba" - type { - expression_pattern { - expression { - identifier { - name: "BA" - } - } - } - } - } - } - init { - identifier { - name: "ab" - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "ab.a: {0}" - } - } - fields { - simple_member_access { - field: "a" - object { - identifier { - name: "ab" - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "ab.b: {0}" - } - } - fields { - simple_member_access { - field: "b" - object { - identifier { - name: "ab" - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "ba.a: {0}" - } - } - fields { - simple_member_access { - field: "a" - object { - identifier { - name: "ba" - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "ba.b: {0}" - } - } - fields { - simple_member_access { - field: "b" - object { - identifier { - name: "ba" - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/04c215eb24bf843a80babc4e3dd313b95c4e571f b/explorer/fuzzing/fuzzer_corpus/04c215eb24bf843a80babc4e3dd313b95c4e571f deleted file mode 100644 index a9e16396f4b11..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/04c215eb24bf843a80babc4e3dd313b95c4e571f +++ /dev/null @@ -1,247 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Point" - } - members { - function { - name { - name: "Create" - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "y" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - identifier { - name: "x" - } - } - } - fields { - name: "y" - expression { - identifier { - name: "y" - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - type_params { - fields { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Create" - object { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - fields { - int_type_literal { - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - fields { - int_literal { - value: 1 - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - simple_member_access { - field: "x" - object { - identifier { - name: "p" - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/0501aa4f45620235f062645d5ea731cb1927e39a b/explorer/fuzzing/fuzzer_corpus/0501aa4f45620235f062645d5ea731cb1927e39a deleted file mode 100644 index 046726d38e2fc..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/0501aa4f45620235f062645d5ea731cb1927e39a +++ /dev/null @@ -1,468 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "A" - } - members { - let { - pattern { - generic_binding { - name: "TA" - type { - type_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "FA" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "TA" - } - } - } - } - } - } - } - declarations { - interface { - name { - name: "B" - } - members { - let { - pattern { - generic_binding { - name: "TB" - type { - type_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "FB" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "TB" - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "C" - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - where { - base { - operator { - op: BitwiseAnd - arguments { - identifier { - name: "A" - } - } - arguments { - identifier { - name: "B" - } - } - } - } - clauses { - rewrite { - member_name: "TA" - replacement { - int_type_literal { - } - } - } - } - clauses { - rewrite { - member_name: "TB" - replacement { - int_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "FA" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - compound_member_access { - object { - identifier { - name: "Self" - } - } - path { - simple_member_access { - field: "TA" - object { - identifier { - name: "A" - } - } - } - } - } - } - } - } - } - } - init { - int_literal { - value: 1 - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "w" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - identifier { - name: "v" - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "w" - } - } - } - } - } - } - } - members { - function { - name { - name: "FB" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - compound_member_access { - object { - identifier { - name: "Self" - } - } - path { - simple_member_access { - field: "TB" - object { - identifier { - name: "B" - } - } - } - } - } - } - } - } - } - } - init { - int_literal { - value: 2 - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "w" - type { - expression_pattern { - expression { - compound_member_access { - object { - identifier { - name: "Self" - } - } - path { - simple_member_access { - field: "TA" - object { - identifier { - name: "A" - } - } - } - } - } - } - } - } - } - } - init { - int_literal { - value: 3 - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - identifier { - name: "v" - } - } - arguments { - identifier { - name: "w" - } - } - } - } - } - } - } - } - } - } - } - type_params { - fields { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - call { - function { - identifier { - name: "C" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - interface { - where { - base { - identifier { - name: "B" - } - } - clauses { - equals { - lhs { - designator { - name: "TB" - } - } - rhs { - tuple_literal { - } - } - } - } - } - } - members { - function { - name { - name: "FB" - } - param_pattern { - } - return_term { - kind: Expression - type { - tuple_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - tuple_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "FB" - object { - call { - function { - identifier { - name: "C" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/0542a56192cecd529b82ed2081aa5459863f359e b/explorer/fuzzing/fuzzer_corpus/0542a56192cecd529b82ed2081aa5459863f359e deleted file mode 100644 index 0c1e891d1e5c2..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/0542a56192cecd529b82ed2081aa5459863f359e +++ /dev/null @@ -1,95 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 5 - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: As - arguments { - identifier { - name: "a" - } - } - arguments { - int_type_literal { - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/05cc07bd9d1ef5b891c4f0df70a1463922009b5e b/explorer/fuzzing/fuzzer_corpus/05cc07bd9d1ef5b891c4f0df70a1463922009b5e deleted file mode 100644 index 22ff775623422..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/05cc07bd9d1ef5b891c4f0df70a1463922009b5e +++ /dev/null @@ -1,3473 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - choice { - name { - name: "AB" - } - alternatives { - name: "A" - signature { - } - } - alternatives { - name: "B" - signature { - } - } - } - } - declarations { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "AB" - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - match { - expression { - tuple_literal { - fields { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - clauses { - pattern { - expression_pattern { - expression { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - clauses { - pattern { - expression_pattern { - expression { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 3 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 4 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 5 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 6 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 7 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 8 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 9 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 10 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 11 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 12 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 13 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 14 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 15 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 16 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 17 - } - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/05ec89686a7f7283373c8ba37135ccd9586c1881 b/explorer/fuzzing/fuzzer_corpus/05ec89686a7f7283373c8ba37135ccd9586c1881 deleted file mode 100644 index 4fdca968e3119..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/05ec89686a7f7283373c8ba37135ccd9586c1881 +++ /dev/null @@ -1,85 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "t" - type { - expression_pattern { - expression { - struct_type_literal { - fields { - name: "x" - expression { - int_type_literal { - } - } - } - fields { - name: "y" - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "y" - expression { - int_literal { - value: 2 - } - } - } - fields { - name: "x" - expression { - int_literal { - value: 3 - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/05f7f32cfd698141c460623934959dd1a82f7109 b/explorer/fuzzing/fuzzer_corpus/05f7f32cfd698141c460623934959dd1a82f7109 deleted file mode 100644 index 2b984fa9b04a9..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/05f7f32cfd698141c460623934959dd1a82f7109 +++ /dev/null @@ -1,191 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - destructor { - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "DESTRUCTOR A {0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - arguments { - int_literal { - value: 3 - } - } - } - } - then_block { - statements { - return_expression_statement { - is_omitted_expression: true - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "DESTRUCTOR A: This message should not printed" - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 3 - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/075ffc3e7c80e173985255c88542930d8fed0613 b/explorer/fuzzing/fuzzer_corpus/075ffc3e7c80e173985255c88542930d8fed0613 deleted file mode 100644 index 5816ac0a7cded..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/075ffc3e7c80e173985255c88542930d8fed0613 +++ /dev/null @@ -1,75 +0,0 @@ -compilation_unit { - package_statement { - package_name: "Foo" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - compound_member_access { - object { - struct_literal { - fields { - name: "m" - expression { - int_literal { - value: 1 - } - } - } - fields { - name: "n" - expression { - int_literal { - value: 2 - } - } - } - } - } - path { - simple_member_access { - field: "n" - object { - struct_type_literal { - fields { - name: "n" - expression { - int_type_literal { - } - } - } - fields { - name: "m" - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/07fe6d4b29d465ce688b6dd86b0571d1dfea03dd b/explorer/fuzzing/fuzzer_corpus/07fe6d4b29d465ce688b6dd86b0571d1dfea03dd deleted file mode 100644 index d9c2807abdaf2..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/07fe6d4b29d465ce688b6dd86b0571d1dfea03dd +++ /dev/null @@ -1,155 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Point" - } - members { - function { - name { - name: "Origin" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 0 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Origin" - object { - identifier { - name: "Point" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - simple_member_access { - field: "x" - object { - identifier { - name: "p" - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/081adaaf1729926b1089243ca595d1d8d2ab1fd5 b/explorer/fuzzing/fuzzer_corpus/081adaaf1729926b1089243ca595d1d8d2ab1fd5 deleted file mode 100644 index 876c0db758baa..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/081adaaf1729926b1089243ca595d1d8d2ab1fd5 +++ /dev/null @@ -1,46 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - is_returned: true - } - } - statements { - return_var_statement { - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/086eb5f16b73ed72781d5579cdf16dcdc4e94744 b/explorer/fuzzing/fuzzer_corpus/086eb5f16b73ed72781d5579cdf16dcdc4e94744 deleted file mode 100644 index 58cbe4fbd3836..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/086eb5f16b73ed72781d5579cdf16dcdc4e94744 +++ /dev/null @@ -1,148 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "TypeLike" - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - call { - function { - identifier { - name: "ImplicitAs" - } - } - argument { - tuple_literal { - fields { - type_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "Convert" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - type_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Make" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - call { - function { - simple_member_access { - field: "Make" - object { - identifier { - name: "TypeLike" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/0931a1fe829e600d14421a0fa4084d9c7176d01e b/explorer/fuzzing/fuzzer_corpus/0931a1fe829e600d14421a0fa4084d9c7176d01e deleted file mode 100644 index 7cd9410b5a4df..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/0931a1fe829e600d14421a0fa4084d9c7176d01e +++ /dev/null @@ -1,434 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - destructor { - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "DESTRUCTOR A {0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "ident" - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - bool_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - bool_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "ident_i32" - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "i" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "d" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 4 - } - } - } - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - call { - function { - identifier { - name: "ident" - } - } - argument { - tuple_literal { - fields { - bool_literal { - value: true - } - } - } - } - } - } - then_block { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 3 - } - } - } - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - bool_literal { - value: true - } - } - then_block { - statements { - variable_definition { - pattern { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "ident_i32" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - call { - function { - identifier { - name: "ident_i32" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - } - } - } - } - arguments { - int_literal { - value: 0 - } - } - } - } - then_block { - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/09c98273d182befd2029eeb2d5913445abc23da3 b/explorer/fuzzing/fuzzer_corpus/09c98273d182befd2029eeb2d5913445abc23da3 deleted file mode 100644 index f791776883657..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/09c98273d182befd2029eeb2d5913445abc23da3 +++ /dev/null @@ -1,294 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Point" - } - members { - function { - name { - name: "Origin" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 0 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "GetX" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "GetXY" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - tuple_literal { - fields { - int_type_literal { - } - } - fields { - int_type_literal { - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "GetX" - object { - identifier { - name: "self" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Origin" - object { - identifier { - name: "Point" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - index { - object { - call { - function { - simple_member_access { - field: "GetXY" - object { - identifier { - name: "p" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - offset { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/09ed6f05cf53cd5658b00434fbffeffff056d270 b/explorer/fuzzing/fuzzer_corpus/09ed6f05cf53cd5658b00434fbffeffff056d270 deleted file mode 100644 index f264655641075..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/09ed6f05cf53cd5658b00434fbffeffff056d270 +++ /dev/null @@ -1,234 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "A" - } - } - interface { - where { - base { - call { - function { - identifier { - name: "AddWith" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - clauses { - rewrite { - member_name: "Result" - replacement { - identifier { - name: "A" - } - } - } - } - } - } - members { - function { - name { - name: "Op" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "rhs" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "A" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "n" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "rhs" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 5 - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "a" - } - } - rhs { - operator { - op: Add - arguments { - identifier { - name: "a" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - simple_member_access { - field: "n" - object { - identifier { - name: "a" - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/0a8b7f9961d982a063eb5287fa1fbc7f51e881ff b/explorer/fuzzing/fuzzer_corpus/0a8b7f9961d982a063eb5287fa1fbc7f51e881ff deleted file mode 100644 index ebc85177ad28b..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/0a8b7f9961d982a063eb5287fa1fbc7f51e881ff +++ /dev/null @@ -1,102 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - match { - expression { - int_literal { - value: 0 - } - } - clauses { - pattern { - expression_pattern { - expression { - int_literal { - value: 1 - } - } - } - } - statement { - block { - statements { - assign { - lhs { - identifier { - name: "x" - } - } - rhs { - int_literal { - value: 1 - } - } - op: Plain - } - } - } - } - } - clauses { - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - is_default: true - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/0ad8ac2a88b1144df515cc60cb824fdef6c712ef b/explorer/fuzzing/fuzzer_corpus/0ad8ac2a88b1144df515cc60cb824fdef6c712ef deleted file mode 100644 index 98eb3f529afc1..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/0ad8ac2a88b1144df515cc60cb824fdef6c712ef +++ /dev/null @@ -1,88 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "f" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - declarations { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - initializer { - call { - function { - identifier { - name: "f" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "y" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/0b8c017e8d7d8b363cb3d80dbfa45a8f917748e9 b/explorer/fuzzing/fuzzer_corpus/0b8c017e8d7d8b363cb3d80dbfa45a8f917748e9 deleted file mode 100644 index 8bcb961fb77d8..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/0b8c017e8d7d8b363cb3d80dbfa45a8f917748e9 +++ /dev/null @@ -1,211 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Iface" - } - members { - let { - pattern { - generic_binding { - name: "N" - type { - int_type_literal { - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "F" - } - param_pattern { - fields { - generic_binding { - name: "T" - type { - where { - base { - identifier { - name: "Iface" - } - } - clauses { - equals { - lhs { - designator { - name: "N" - } - } - rhs { - int_literal { - value: 5 - } - } - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - class_declaration { - name { - name: "Good" - } - } - } - declarations { - class_declaration { - name { - name: "Bad" - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "Good" - } - } - interface { - where { - base { - identifier { - name: "Iface" - } - } - clauses { - rewrite { - member_name: "N" - replacement { - int_literal { - value: 5 - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "Bad" - } - } - interface { - where { - base { - identifier { - name: "Iface" - } - } - clauses { - rewrite { - member_name: "N" - replacement { - int_literal { - value: 4 - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "Good" - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "Bad" - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/0c0ca21a65e25a0ed34b97458c4651e3e211fd7d b/explorer/fuzzing/fuzzer_corpus/0c0ca21a65e25a0ed34b97458c4651e3e211fd7d deleted file mode 100644 index 761d98af20df8..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/0c0ca21a65e25a0ed34b97458c4651e3e211fd7d +++ /dev/null @@ -1,173 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - variable { - binding { - name: "call_count" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - initializer { - int_literal { - value: 0 - } - } - } - } - declarations { - function { - name { - name: "ReturnTrue" - } - param_pattern { - } - return_term { - kind: Expression - type { - bool_type_literal { - } - } - } - body { - statements { - assign { - lhs { - identifier { - name: "call_count" - } - } - rhs { - operator { - op: Add - arguments { - identifier { - name: "call_count" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - bool_literal { - value: true - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "result" - type { - expression_pattern { - expression { - bool_type_literal { - } - } - } - } - } - } - init { - operator { - op: And - arguments { - call { - function { - identifier { - name: "ReturnTrue" - } - } - argument { - tuple_literal { - } - } - } - } - arguments { - call { - function { - identifier { - name: "ReturnTrue" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - if_expression { - condition { - identifier { - name: "result" - } - } - then_expression { - identifier { - name: "call_count" - } - } - else_expression { - operator { - op: Neg - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/0c1acfbf442273f3d4a3767b76a0ce511fb8e14f b/explorer/fuzzing/fuzzer_corpus/0c1acfbf442273f3d4a3767b76a0ce511fb8e14f deleted file mode 100644 index 356d1ee7976df..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/0c1acfbf442273f3d4a3767b76a0ce511fb8e14f +++ /dev/null @@ -1,48 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - qualifiers: "N" - name: "F" - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/0c86ef65371750e4a8b9cee11c8e47746abbda44 b/explorer/fuzzing/fuzzer_corpus/0c86ef65371750e4a8b9cee11c8e47746abbda44 deleted file mode 100644 index 86a5fa63723bb..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/0c86ef65371750e4a8b9cee11c8e47746abbda44 +++ /dev/null @@ -1,95 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - int_literal { - value: 0 - } - } - arguments { - int_literal { - value: 0 - } - } - } - } - then_block { - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - int_literal { - value: 0 - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - else_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/0cb069aeca3e33c5b431baf6a25016982d6f17c9 b/explorer/fuzzing/fuzzer_corpus/0cb069aeca3e33c5b431baf6a25016982d6f17c9 deleted file mode 100644 index da136166f884a..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/0cb069aeca3e33c5b431baf6a25016982d6f17c9 +++ /dev/null @@ -1,626 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Addable" - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "k" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - identifier { - name: "Addable" - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "k" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - identifier { - name: "self" - } - } - arguments { - identifier { - name: "k" - } - } - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Class" - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "GenericClass" - } - members { - variable { - binding { - name: "m" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - members { - function { - name { - name: "Get" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Add" - object { - simple_member_access { - field: "m" - object { - identifier { - name: "self" - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "n" - } - } - } - } - } - } - } - } - } - } - } - type_params { - fields { - generic_binding { - name: "T" - type { - identifier { - name: "Addable" - } - } - } - } - } - } - } - declarations { - alias { - name { - name: "ClassAlias" - } - target { - identifier { - name: "Class" - } - } - } - } - declarations { - alias { - name { - name: "GenericClassAlias" - } - target { - identifier { - name: "GenericClass" - } - } - } - } - declarations { - alias { - name { - name: "ClassSpecializationAlias" - } - target { - call { - function { - identifier { - name: "GenericClassAlias" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "Class" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "ClassAlias" - } - } - } - } - } - } - init { - identifier { - name: "a" - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "GenericClass" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "m" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "d" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "GenericClassAlias" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - identifier { - name: "c" - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "e" - type { - expression_pattern { - expression { - identifier { - name: "ClassSpecializationAlias" - } - } - } - } - } - } - init { - identifier { - name: "c" - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "b.n: {0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "d.Get(0): {0}" - } - } - fields { - call { - function { - simple_member_access { - field: "Get" - object { - identifier { - name: "d" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "e.Get(1): {0}" - } - } - fields { - call { - function { - simple_member_access { - field: "Get" - object { - identifier { - name: "e" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/0d35d72cddc3a6d315e59e166bde555410df6c23 b/explorer/fuzzing/fuzzer_corpus/0d35d72cddc3a6d315e59e166bde555410df6c23 deleted file mode 100644 index c2d32b5b45312..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/0d35d72cddc3a6d315e59e166bde555410df6c23 +++ /dev/null @@ -1,305 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "LazyNe" - } - members { - variable { - binding { - name: "v1" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "v2" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - call { - function { - identifier { - name: "ImplicitAs" - } - } - argument { - tuple_literal { - fields { - bool_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "Convert" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - bool_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: NotEq - arguments { - simple_member_access { - field: "v1" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "v2" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Make" - } - param_pattern { - fields { - binding_pattern { - name: "v1" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "v2" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "v1" - expression { - identifier { - name: "v1" - } - } - } - fields { - name: "v2" - expression { - identifier { - name: "v2" - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - auto_pattern { - } - } - } - } - init { - int_literal { - value: 2 - } - } - is_returned: false - } - } - statements { - while_statement { - condition { - call { - function { - simple_member_access { - field: "Make" - object { - identifier { - name: "LazyNe" - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "x" - } - } - fields { - int_literal { - value: 0 - } - } - } - } - } - } - body { - statements { - assign { - lhs { - identifier { - name: "x" - } - } - rhs { - operator { - op: Sub - arguments { - identifier { - name: "x" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - op: Plain - } - } - } - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/0e6b20961131825faf926e7c56b0a285dc200c45 b/explorer/fuzzing/fuzzer_corpus/0e6b20961131825faf926e7c56b0a285dc200c45 deleted file mode 100644 index 7d0b045c6621d..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/0e6b20961131825faf926e7c56b0a285dc200c45 +++ /dev/null @@ -1,876 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Number" - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "other" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - type_params { - fields { - generic_binding { - name: "T" - type { - identifier { - name: "Number" - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - int_type_literal { - } - } - interface { - identifier { - name: "Number" - } - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "other" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - identifier { - name: "self" - } - } - arguments { - identifier { - name: "other" - } - } - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "U" - } - } - } - } - } - } - interface { - identifier { - name: "Number" - } - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "U" - } - } - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - call { - function { - simple_member_access { - field: "Zero" - object { - identifier { - name: "U" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - fields { - name: "y" - expression { - call { - function { - simple_member_access { - field: "Zero" - object { - identifier { - name: "U" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "U" - } - } - } - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "other" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "U" - } - } - } - } - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "U" - } - } - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - call { - function { - simple_member_access { - field: "Add" - object { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - } - } - argument { - tuple_literal { - fields { - simple_member_access { - field: "x" - object { - identifier { - name: "other" - } - } - } - } - } - } - } - } - } - fields { - name: "y" - expression { - call { - function { - simple_member_access { - field: "Add" - object { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - } - } - argument { - tuple_literal { - fields { - simple_member_access { - field: "y" - object { - identifier { - name: "other" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Sum" - } - deduced_parameters { - name: "E" - type { - identifier { - name: "Number" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "E" - } - } - } - } - } - } - fields { - binding_pattern { - name: "y" - type { - expression_pattern { - expression { - identifier { - name: "E" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "E" - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "total" - type { - expression_pattern { - expression { - identifier { - name: "E" - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Zero" - object { - identifier { - name: "E" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "total" - } - } - rhs { - call { - function { - simple_member_access { - field: "Add" - object { - identifier { - name: "total" - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "x" - } - } - } - } - } - } - op: Plain - } - } - statements { - assign { - lhs { - identifier { - name: "total" - } - } - rhs { - call { - function { - simple_member_access { - field: "Add" - object { - identifier { - name: "total" - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "y" - } - } - } - } - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "total" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 1 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "q" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 4 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 3 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "r" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - call { - function { - identifier { - name: "Sum" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "p" - } - } - fields { - identifier { - name: "q" - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "r" - } - } - } - } - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "r" - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/0e92e106654000c9dc5d0887df617586bbdf681f b/explorer/fuzzing/fuzzer_corpus/0e92e106654000c9dc5d0887df617586bbdf681f deleted file mode 100644 index a01678a3a0ba7..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/0e92e106654000c9dc5d0887df617586bbdf681f +++ /dev/null @@ -1,262 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Frob" - } - members { - let { - pattern { - generic_binding { - name: "Result" - type { - type_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "F" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Result" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Use" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "Frob" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - simple_member_access { - field: "Result" - object { - identifier { - name: "T" - } - } - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - simple_member_access { - field: "Result" - object { - identifier { - name: "T" - } - } - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "F" - object { - identifier { - name: "x" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "v" - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - where { - base { - identifier { - name: "Frob" - } - } - clauses { - rewrite { - member_name: "Result" - replacement { - int_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "F" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "Use" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/0ec693754f4cad2f847af64da34d95de62086651 b/explorer/fuzzing/fuzzer_corpus/0ec693754f4cad2f847af64da34d95de62086651 deleted file mode 100644 index d8940e71f270b..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/0ec693754f4cad2f847af64da34d95de62086651 +++ /dev/null @@ -1,234 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "A" - } - } - interface { - where { - base { - call { - function { - identifier { - name: "RightShiftWith" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - clauses { - rewrite { - member_name: "Result" - replacement { - identifier { - name: "A" - } - } - } - } - } - } - members { - function { - name { - name: "Op" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "rhs" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "A" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "n" - expression { - operator { - op: BitShiftRight - arguments { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "rhs" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 5 - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "a" - } - } - rhs { - operator { - op: BitShiftRight - arguments { - identifier { - name: "a" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - simple_member_access { - field: "n" - object { - identifier { - name: "a" - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/0f4a5a4583189e307590798fd6a8535df7b43481 b/explorer/fuzzing/fuzzer_corpus/0f4a5a4583189e307590798fd6a8535df7b43481 deleted file mode 100644 index 5c624daad8cd9..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/0f4a5a4583189e307590798fd6a8535df7b43481 +++ /dev/null @@ -1,142 +0,0 @@ -compilation_unit { - package_statement { - package_name: "EmptyIdentifier" - } - is_api: false - declarations { - function { - name { - name: "apply" - } - deduced_parameters { - name: "T" - type { - type_type_literal { - } - } - } - deduced_parameters { - name: "U" - type { - type_type_literal { - } - } - } - param_pattern { - fields { - binding_pattern { - name: "f" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "EmptyIdentifier" - type { - expression_pattern { - expression { - identifier { - name: "U" - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - statements { - match { - expression { - index { - object { - bool_literal { - value: true - } - } - offset { - bool_literal { - value: true - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "EmptyIdentifier" - } - param_pattern { - } - return_term { - kind: Expression - type { - call { - function { - identifier { - name: "apply" - } - } - argument { - tuple_literal { - fields { - bool_literal { - value: true - } - } - fields { - bool_literal { - value: true - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/0f51fb075d9a0ec04bf29588ae89cbead328d51b b/explorer/fuzzing/fuzzer_corpus/0f51fb075d9a0ec04bf29588ae89cbead328d51b deleted file mode 100644 index 0b894343d559f..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/0f51fb075d9a0ec04bf29588ae89cbead328d51b +++ /dev/null @@ -1,168 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "A" - } - } - interface { - call { - function { - identifier { - name: "ImplicitAs" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "Convert" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 5 - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: As - arguments { - identifier { - name: "a" - } - } - arguments { - int_type_literal { - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/0fa5dbb1cf634ded61edd83ac9aa1fb5435f2afb b/explorer/fuzzing/fuzzer_corpus/0fa5dbb1cf634ded61edd83ac9aa1fb5435f2afb deleted file mode 100644 index 0677feb27b9c6..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/0fa5dbb1cf634ded61edd83ac9aa1fb5435f2afb +++ /dev/null @@ -1,199 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "A" - } - } - interface { - where { - base { - identifier { - name: "BitComplement" - } - } - clauses { - rewrite { - member_name: "Result" - replacement { - identifier { - name: "A" - } - } - } - } - } - } - members { - function { - name { - name: "Op" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "A" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "n" - expression { - operator { - op: Complement - arguments { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 5 - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "a" - } - } - rhs { - operator { - op: Complement - arguments { - identifier { - name: "a" - } - } - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - simple_member_access { - field: "n" - object { - identifier { - name: "a" - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/0ff1237b5ca488e8bcf62b899c96f2279dd8618a b/explorer/fuzzing/fuzzer_corpus/0ff1237b5ca488e8bcf62b899c96f2279dd8618a deleted file mode 100644 index 8b46487b6c01b..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/0ff1237b5ca488e8bcf62b899c96f2279dd8618a +++ /dev/null @@ -1,582 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "identFn" - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - operator { - op: Mod - arguments { - int_literal { - value: 7 - } - } - arguments { - int_literal { - value: 2 - } - } - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - identifier { - name: "x" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - statements { - assign { - lhs { - identifier { - name: "x" - } - } - rhs { - operator { - op: Mod - arguments { - operator { - op: Mul - arguments { - int_literal { - value: 3 - } - } - arguments { - int_literal { - value: 3 - } - } - } - } - arguments { - int_literal { - value: 3 - } - } - } - } - op: Plain - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - identifier { - name: "x" - } - } - arguments { - int_literal { - value: 0 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - statements { - assign { - lhs { - identifier { - name: "x" - } - } - rhs { - operator { - op: Mod - arguments { - operator { - op: Add - arguments { - operator { - op: Add - arguments { - operator { - op: Add - arguments { - int_literal { - value: 4 - } - } - arguments { - int_literal { - value: 4 - } - } - } - } - arguments { - int_literal { - value: 4 - } - } - } - } - arguments { - int_literal { - value: 4 - } - } - } - } - arguments { - operator { - op: Add - arguments { - int_literal { - value: 2 - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - op: Plain - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - identifier { - name: "x" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 3 - } - } - } - } - } - } - } - statements { - assign { - lhs { - identifier { - name: "x" - } - } - rhs { - operator { - op: Mod - arguments { - int_literal { - value: 15 - } - } - arguments { - operator { - op: Add - arguments { - call { - function { - identifier { - name: "identFn" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 2 - } - } - } - } - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - op: Plain - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - identifier { - name: "x" - } - } - arguments { - int_literal { - value: 0 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 4 - } - } - } - } - } - } - } - statements { - assign { - lhs { - identifier { - name: "x" - } - } - rhs { - operator { - op: Mod - arguments { - operator { - op: Neg - arguments { - int_literal { - value: 15 - } - } - } - } - arguments { - int_literal { - value: 7 - } - } - } - } - op: Plain - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - identifier { - name: "x" - } - } - arguments { - operator { - op: Neg - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 5 - } - } - } - } - } - } - } - statements { - assign { - lhs { - identifier { - name: "x" - } - } - rhs { - operator { - op: Mod - arguments { - int_literal { - value: 15 - } - } - arguments { - operator { - op: Neg - arguments { - int_literal { - value: 7 - } - } - } - } - } - } - op: Plain - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - identifier { - name: "x" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 6 - } - } - } - } - } - } - } - statements { - assign { - lhs { - identifier { - name: "x" - } - } - rhs { - operator { - op: Mod - arguments { - operator { - op: Neg - arguments { - int_literal { - value: 15 - } - } - } - } - arguments { - operator { - op: Neg - arguments { - call { - function { - identifier { - name: "identFn" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 7 - } - } - } - } - } - } - } - } - } - } - op: Plain - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - identifier { - name: "x" - } - } - arguments { - operator { - op: Neg - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 7 - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/10b3ac55167965078be7c7e32a3b9ac35742ebab b/explorer/fuzzing/fuzzer_corpus/10b3ac55167965078be7c7e32a3b9ac35742ebab deleted file mode 100644 index 40692106516a4..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/10b3ac55167965078be7c7e32a3b9ac35742ebab +++ /dev/null @@ -1,104 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 1 - } - } - is_returned: true - } - } - statements { - if_statement { - condition { - bool_literal { - value: true - } - } - then_block { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 2 - } - } - is_returned: false - } - } - statements { - return_var_statement { - } - } - } - } - } - statements { - assign { - lhs { - identifier { - name: "x" - } - } - rhs { - int_literal { - value: 3 - } - } - op: Plain - } - } - statements { - return_var_statement { - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/10bc53bafd07b8ea7cd8e5321d4720b0c46db012 b/explorer/fuzzing/fuzzer_corpus/10bc53bafd07b8ea7cd8e5321d4720b0c46db012 deleted file mode 100644 index e82bc15c0a3e5..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/10bc53bafd07b8ea7cd8e5321d4720b0c46db012 +++ /dev/null @@ -1,199 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - alias { - name { - name: "TypeAlias" - } - target { - int_type_literal { - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "TypeAlias" - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - identifier { - name: "TypeAlias" - } - } - } - } - } - } - init { - int_literal { - value: 1 - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "m" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - identifier { - name: "n" - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - int_type_literal { - } - } - } - } - } - } - } - } - init { - operator { - op: AddressOf - arguments { - identifier { - name: "n" - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "q" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "TypeAlias" - } - } - } - } - } - } - } - } - init { - operator { - op: AddressOf - arguments { - identifier { - name: "m" - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - operator { - op: Add - arguments { - operator { - op: Add - arguments { - operator { - op: Deref - arguments { - identifier { - name: "p" - } - } - } - } - arguments { - operator { - op: Deref - arguments { - identifier { - name: "q" - } - } - } - } - } - } - arguments { - identifier { - name: "m" - } - } - } - } - arguments { - identifier { - name: "n" - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/10bf4210ca99eb159f3e5e11b69ce67e4ec2e410 b/explorer/fuzzing/fuzzer_corpus/10bf4210ca99eb159f3e5e11b69ce67e4ec2e410 deleted file mode 100644 index d8cf43795b946..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/10bf4210ca99eb159f3e5e11b69ce67e4ec2e410 +++ /dev/null @@ -1,683 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Vector" - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "Point" - } - } - interface { - identifier { - name: "Vector" - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Mul - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "v" - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Mul - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "v" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "AddAndScaleGeneric" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "Vector" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "s" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "m" - type { - auto_pattern { - } - } - } - } - init { - simple_member_access { - field: "Add" - object { - identifier { - name: "a" - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "n" - type { - auto_pattern { - } - } - } - } - init { - simple_member_access { - field: "Scale" - object { - call { - function { - identifier { - name: "m" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "b" - } - } - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "n" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "s" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 1 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 4 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 2 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 3 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - call { - function { - identifier { - name: "AddAndScaleGeneric" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "a" - } - } - fields { - identifier { - name: "b" - } - } - fields { - int_literal { - value: 5 - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "p" - } - } - } - } - arguments { - int_literal { - value: 15 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/1111b8be1131541ec8c3a7b9c8a2e5e2cc634ab0 b/explorer/fuzzing/fuzzer_corpus/1111b8be1131541ec8c3a7b9c8a2e5e2cc634ab0 deleted file mode 100644 index 2468410cb5f5c..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/1111b8be1131541ec8c3a7b9c8a2e5e2cc634ab0 +++ /dev/null @@ -1,127 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "C" - } - members { - function { - name { - name: "Create" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "a" - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "a" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - identifier { - name: "C" - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Create" - object { - identifier { - name: "C" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/11129722dc448b2011c92f79dc750129eff3858b b/explorer/fuzzing/fuzzer_corpus/11129722dc448b2011c92f79dc750129eff3858b deleted file mode 100644 index 09933500cde48..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/11129722dc448b2011c92f79dc750129eff3858b +++ /dev/null @@ -1,74 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - identifier { - name: "x" - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/117ed6ced083ede3e318697fc56548fabe03039e b/explorer/fuzzing/fuzzer_corpus/117ed6ced083ede3e318697fc56548fabe03039e deleted file mode 100644 index cc94271f33df4..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/117ed6ced083ede3e318697fc56548fabe03039e +++ /dev/null @@ -1,512 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "ManyTypes" - } - members { - let { - pattern { - generic_binding { - name: "T0" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "T1" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "T2" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "T3" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "T4" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "T5" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "T6" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "T7" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "T8" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "T9" - type { - type_type_literal { - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "M" - type { - where { - base { - identifier { - name: "ManyTypes" - } - } - clauses { - rewrite { - member_name: "T0" - replacement { - designator { - name: "T1" - } - } - } - } - clauses { - rewrite { - member_name: "T1" - replacement { - designator { - name: "T2" - } - } - } - } - clauses { - rewrite { - member_name: "T2" - replacement { - designator { - name: "T3" - } - } - } - } - clauses { - rewrite { - member_name: "T3" - replacement { - designator { - name: "T4" - } - } - } - } - clauses { - rewrite { - member_name: "T4" - replacement { - designator { - name: "T5" - } - } - } - } - clauses { - rewrite { - member_name: "T5" - replacement { - designator { - name: "T6" - } - } - } - } - clauses { - rewrite { - member_name: "T6" - replacement { - designator { - name: "T7" - } - } - } - } - clauses { - rewrite { - member_name: "T7" - replacement { - designator { - name: "T8" - } - } - } - } - clauses { - rewrite { - member_name: "T8" - replacement { - designator { - name: "T9" - } - } - } - } - clauses { - rewrite { - member_name: "T9" - replacement { - int_type_literal { - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "m" - type { - expression_pattern { - expression { - identifier { - name: "M" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - simple_member_access { - field: "T0" - object { - identifier { - name: "M" - } - } - } - } - } - } - } - } - init { - int_literal { - value: 1 - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "v" - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "C" - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - where { - base { - identifier { - name: "ManyTypes" - } - } - clauses { - rewrite { - member_name: "T0" - replacement { - int_type_literal { - } - } - } - } - clauses { - rewrite { - member_name: "T1" - replacement { - designator { - name: "T0" - } - } - } - } - clauses { - rewrite { - member_name: "T2" - replacement { - designator { - name: "T1" - } - } - } - } - clauses { - rewrite { - member_name: "T3" - replacement { - designator { - name: "T2" - } - } - } - } - clauses { - rewrite { - member_name: "T4" - replacement { - designator { - name: "T3" - } - } - } - } - clauses { - rewrite { - member_name: "T5" - replacement { - designator { - name: "T4" - } - } - } - } - clauses { - rewrite { - member_name: "T6" - replacement { - designator { - name: "T5" - } - } - } - } - clauses { - rewrite { - member_name: "T7" - replacement { - designator { - name: "T6" - } - } - } - } - clauses { - rewrite { - member_name: "T8" - replacement { - designator { - name: "T7" - } - } - } - } - clauses { - rewrite { - member_name: "T9" - replacement { - designator { - name: "T8" - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - identifier { - name: "C" - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "c" - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/1191f8daa134f3932d68bd24f270b2286a87560b b/explorer/fuzzing/fuzzer_corpus/1191f8daa134f3932d68bd24f270b2286a87560b deleted file mode 100644 index 288304c41b2a1..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/1191f8daa134f3932d68bd24f270b2286a87560b +++ /dev/null @@ -1,76 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - namespace { - name { - name: "N" - } - } - } - declarations { - function { - name { - qualifiers: "N" - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/119a0b3341f7032a48ccdded931a1c2fccdd6f52 b/explorer/fuzzing/fuzzer_corpus/119a0b3341f7032a48ccdded931a1c2fccdd6f52 deleted file mode 100644 index 6f7e0502b41e9..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/119a0b3341f7032a48ccdded931a1c2fccdd6f52 +++ /dev/null @@ -1,145 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "t1" - type { - expression_pattern { - expression { - tuple_literal { - fields { - int_type_literal { - } - } - fields { - int_type_literal { - } - } - } - } - } - } - } - } - init { - tuple_literal { - fields { - int_literal { - value: 5 - } - } - fields { - int_literal { - value: 2 - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "t2" - type { - expression_pattern { - expression { - tuple_literal { - fields { - int_type_literal { - } - } - fields { - int_type_literal { - } - } - } - } - } - } - } - } - init { - tuple_literal { - fields { - int_literal { - value: 5 - } - } - fields { - int_literal { - value: 2 - } - } - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - identifier { - name: "t1" - } - } - arguments { - identifier { - name: "t2" - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - else_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/11e091578ab1fee7bb92cf00355ff51be89cf801 b/explorer/fuzzing/fuzzer_corpus/11e091578ab1fee7bb92cf00355ff51be89cf801 deleted file mode 100644 index ddb06055eedd6..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/11e091578ab1fee7bb92cf00355ff51be89cf801 +++ /dev/null @@ -1,186 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "AddInt" - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "ret" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - operator { - op: Add - arguments { - identifier { - name: "a" - } - } - arguments { - identifier { - name: "b" - } - } - } - } - is_returned: true - } - } - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - identifier { - name: "a" - } - } - arguments { - identifier { - name: "b" - } - } - } - } - then_block { - statements { - variable_definition { - pattern { - binding_pattern { - name: "ret2" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - operator { - op: Add - arguments { - identifier { - name: "a" - } - } - arguments { - identifier { - name: "b" - } - } - } - } - is_returned: true - } - } - } - } - } - statements { - return_var_statement { - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "AddInt" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/123fb6fa380b035e905b35aab5af9e28b936470f b/explorer/fuzzing/fuzzer_corpus/123fb6fa380b035e905b35aab5af9e28b936470f deleted file mode 100644 index dbdf14248ded9..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/123fb6fa380b035e905b35aab5af9e28b936470f +++ /dev/null @@ -1,105 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "id" - } - deduced_parameters { - name: "T" - type { - type_type_literal { - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - identifier { - name: "x" - } - } - arguments { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "id" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/13165465925de647ee3bd1d663a7e406b084a182 b/explorer/fuzzing/fuzzer_corpus/13165465925de647ee3bd1d663a7e406b084a182 deleted file mode 100644 index 910b104482741..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/13165465925de647ee3bd1d663a7e406b084a182 +++ /dev/null @@ -1,335 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "C" - } - members { - function { - name { - name: "Method1" - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Class C" - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "GetValue" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "value" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "value" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "D" - } - members { - function { - name { - name: "Method1" - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Class D" - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "value" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "d" - type { - expression_pattern { - expression { - identifier { - name: "D" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "value" - expression { - int_literal { - value: 2 - } - } - } - fields { - name: "base" - expression { - struct_literal { - fields { - name: "value" - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "Method1" - object { - identifier { - name: "d" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "d.value = {0}" - } - } - fields { - simple_member_access { - field: "value" - object { - identifier { - name: "d" - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "d.GetValue() = {0}" - } - } - fields { - call { - function { - simple_member_access { - field: "GetValue" - object { - identifier { - name: "d" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/13699d187869d480a856deeb58a9b72a42414510 b/explorer/fuzzing/fuzzer_corpus/13699d187869d480a856deeb58a9b72a42414510 deleted file mode 100644 index 68a0dd9e69995..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/13699d187869d480a856deeb58a9b72a42414510 +++ /dev/null @@ -1,203 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Foo" - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Auto - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "ret" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - operator { - op: Add - arguments { - identifier { - name: "a" - } - } - arguments { - identifier { - name: "b" - } - } - } - } - is_returned: true - } - } - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - identifier { - name: "b" - } - } - arguments { - identifier { - name: "a" - } - } - } - } - then_block { - statements { - assign { - lhs { - identifier { - name: "ret" - } - } - rhs { - operator { - op: Sub - arguments { - identifier { - name: "b" - } - } - arguments { - identifier { - name: "a" - } - } - } - } - op: Plain - } - } - statements { - return_var_statement { - } - } - } - } - } - statements { - assign { - lhs { - identifier { - name: "ret" - } - } - rhs { - operator { - op: Sub - arguments { - identifier { - name: "a" - } - } - arguments { - identifier { - name: "b" - } - } - } - } - op: Plain - } - } - statements { - return_var_statement { - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "Foo" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/137763417c6bb89b2f19ce90364ed912e997a51e b/explorer/fuzzing/fuzzer_corpus/137763417c6bb89b2f19ce90364ed912e997a51e deleted file mode 100644 index 0ad112c004683..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/137763417c6bb89b2f19ce90364ed912e997a51e +++ /dev/null @@ -1,92 +0,0 @@ -compilation_unit { - package_statement { - package_name: "EmptyIdentifier" - } - is_api: false - declarations { - function { - name { - name: "test" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "test" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - init { - int_literal { - value: 1 - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/138b2d121b29802db4a2e37a2d563bc6ab8c5aef b/explorer/fuzzing/fuzzer_corpus/138b2d121b29802db4a2e37a2d563bc6ab8c5aef deleted file mode 100644 index 4acfa4ea61724..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/138b2d121b29802db4a2e37a2d563bc6ab8c5aef +++ /dev/null @@ -1,513 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "MyAddWith" - } - members { - function { - name { - name: "Op" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Point" - } - } - interface { - call { - function { - identifier { - name: "MyAddWith" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "Self" - } - } - } - } - } - } - members { - function { - name { - name: "Op" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "DoAddGeneric" - } - deduced_parameters { - name: "T" - type { - type_type_literal { - } - } - } - deduced_parameters { - name: "U" - type { - call { - function { - identifier { - name: "MyAddWith" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "U" - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "U" - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Op" - object { - identifier { - name: "a" - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "b" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 2 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 4 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - call { - function { - identifier { - name: "DoAddGeneric" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "a" - } - } - fields { - identifier { - name: "b" - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - operator { - op: Sub - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "p" - } - } - } - } - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "p" - } - } - } - } - } - } - arguments { - int_literal { - value: 3 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/1390a7598274c8a07a7db037d164e7ba04fa084e b/explorer/fuzzing/fuzzer_corpus/1390a7598274c8a07a7db037d164e7ba04fa084e deleted file mode 100644 index 7f37b27d3a7b9..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/1390a7598274c8a07a7db037d164e7ba04fa084e +++ /dev/null @@ -1,127 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Bad" - } - deduced_parameters { - name: "T" - type { - type_type_literal { - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - struct_type_literal { - fields { - name: "a" - expression { - int_type_literal { - } - } - } - fields { - name: "b" - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Bad" - } - } - argument { - tuple_literal { - fields { - struct_literal { - fields { - name: "b" - expression { - int_literal { - value: 5 - } - } - } - fields { - name: "a" - expression { - int_literal { - value: 7 - } - } - } - fields { - name: "c" - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/13dcb5a00f09e0ec0a7fd03fb720bdad03c495f1 b/explorer/fuzzing/fuzzer_corpus/13dcb5a00f09e0ec0a7fd03fb720bdad03c495f1 deleted file mode 100644 index ea16560c3e439..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/13dcb5a00f09e0ec0a7fd03fb720bdad03c495f1 +++ /dev/null @@ -1,128 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Foo" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - is_returned: false - } - } - statements { - while_statement { - condition { - operator { - op: Eq - arguments { - call { - function { - identifier { - name: "Foo" - } - } - argument { - tuple_literal { - } - } - } - } - arguments { - int_literal { - value: 0 - } - } - } - } - body { - statements { - assign { - lhs { - identifier { - name: "y" - } - } - rhs { - identifier { - name: "x" - } - } - op: Plain - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/15005ba56570844e2a9ab20299631f8ffedc38c6 b/explorer/fuzzing/fuzzer_corpus/15005ba56570844e2a9ab20299631f8ffedc38c6 deleted file mode 100644 index b7aa03346dc37..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/15005ba56570844e2a9ab20299631f8ffedc38c6 +++ /dev/null @@ -1,69 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "C" - } - } - } - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "T" - type { - operator { - op: BitwiseAnd - arguments { - type_type_literal { - } - } - arguments { - identifier { - name: "C" - } - } - } - } - } - param_pattern { - } - return_term { - kind: Omitted - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/151b851709a6cb57bbee182c3220b59c87027ec4 b/explorer/fuzzing/fuzzer_corpus/151b851709a6cb57bbee182c3220b59c87027ec4 deleted file mode 100644 index cf1d80bb39844..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/151b851709a6cb57bbee182c3220b59c87027ec4 +++ /dev/null @@ -1,151 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "t1" - type { - expression_pattern { - expression { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - init { - tuple_literal { - fields { - int_literal { - value: 5 - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "t2" - type { - expression_pattern { - expression { - tuple_literal { - fields { - int_type_literal { - } - } - fields { - int_type_literal { - } - } - } - } - } - } - } - } - init { - tuple_literal { - fields { - int_literal { - value: 2 - } - } - fields { - int_literal { - value: 3 - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - operator { - op: Sub - arguments { - index { - object { - identifier { - name: "t1" - } - } - offset { - int_literal { - value: 0 - } - } - } - } - arguments { - index { - object { - identifier { - name: "t2" - } - } - offset { - int_literal { - value: 0 - } - } - } - } - } - } - arguments { - index { - object { - identifier { - name: "t2" - } - } - offset { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/15bd86b0412443771aa00da617795aa0e5c64185 b/explorer/fuzzing/fuzzer_corpus/15bd86b0412443771aa00da617795aa0e5c64185 deleted file mode 100644 index 714bb3cab14a2..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/15bd86b0412443771aa00da617795aa0e5c64185 +++ /dev/null @@ -1,484 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "One" - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "One" - } - } - interface { - call { - function { - identifier { - name: "ImplicitAs" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "Convert" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Two" - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Two" - } - } - interface { - call { - function { - identifier { - name: "ImplicitAs" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "Convert" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "N" - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "N" - } - } - interface { - call { - function { - identifier { - name: "ImplicitAs" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "Convert" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Get" - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - operator { - op: Add - arguments { - operator { - op: Mul - arguments { - int_literal { - value: 100 - } - } - arguments { - identifier { - name: "a" - } - } - } - } - arguments { - operator { - op: Mul - arguments { - int_literal { - value: 10 - } - } - arguments { - identifier { - name: "b" - } - } - } - } - } - } - arguments { - identifier { - name: "c" - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "i" - type { - expression_pattern { - expression { - identifier { - name: "One" - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "ii" - type { - expression_pattern { - expression { - identifier { - name: "Two" - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "iii" - type { - expression_pattern { - expression { - identifier { - name: "N" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 3 - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "Get" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "i" - } - } - fields { - identifier { - name: "ii" - } - } - fields { - identifier { - name: "iii" - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/15ce7e6d7d3131c20c8e85783a76e9405dc43ac5 b/explorer/fuzzing/fuzzer_corpus/15ce7e6d7d3131c20c8e85783a76e9405dc43ac5 deleted file mode 100644 index 098d45cd0bd56..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/15ce7e6d7d3131c20c8e85783a76e9405dc43ac5 +++ /dev/null @@ -1,74 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - int_literal { - value: 0 - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - else_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/17310ae919b40b6ca070de923c138a8d75df0204 b/explorer/fuzzing/fuzzer_corpus/17310ae919b40b6ca070de923c138a8d75df0204 deleted file mode 100644 index c8dbb130edb8c..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/17310ae919b40b6ca070de923c138a8d75df0204 +++ /dev/null @@ -1,414 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - function { - name { - name: "FunctionA" - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - members { - variable { - binding { - name: "a" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "aa" - type { - expression_pattern { - expression { - string_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "B" - } - members { - function { - name { - name: "FunctionB" - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - members { - variable { - binding { - name: "b" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "C" - } - members { - function { - name { - name: "FunctionC" - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - members { - variable { - binding { - name: "c" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - identifier { - name: "C" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "base" - expression { - struct_literal { - fields { - name: "base" - expression { - struct_literal { - fields { - name: "aa" - expression { - string_literal { - value: "A" - } - } - } - fields { - name: "a" - expression { - int_literal { - value: 1 - } - } - } - } - } - } - fields { - name: "b" - expression { - int_literal { - value: 2 - } - } - } - } - } - } - fields { - name: "c" - expression { - int_literal { - value: 3 - } - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "FunctionA" - object { - identifier { - name: "c" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "FunctionB" - object { - identifier { - name: "c" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "FunctionC" - object { - identifier { - name: "c" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - simple_member_access { - field: "aa" - object { - identifier { - name: "c" - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "c.a: {0}" - } - } - fields { - simple_member_access { - field: "a" - object { - identifier { - name: "c" - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "c.b: {0}" - } - } - fields { - simple_member_access { - field: "b" - object { - identifier { - name: "c" - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "c.c: {0}" - } - } - fields { - simple_member_access { - field: "c" - object { - identifier { - name: "c" - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/17a00f823161d813cdcaa73fe8a860bfbfa1266c b/explorer/fuzzing/fuzzer_corpus/17a00f823161d813cdcaa73fe8a860bfbfa1266c deleted file mode 100644 index 8cb5753cf608a..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/17a00f823161d813cdcaa73fe8a860bfbfa1266c +++ /dev/null @@ -1,192 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "IntDiff" - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - identifier { - name: "a" - } - } - arguments { - identifier { - name: "b" - } - } - } - } - then_block { - statements { - variable_definition { - pattern { - binding_pattern { - name: "ret" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - operator { - op: Sub - arguments { - identifier { - name: "a" - } - } - arguments { - identifier { - name: "b" - } - } - } - } - is_returned: true - } - } - statements { - return_var_statement { - } - } - } - else_block { - statements { - variable_definition { - pattern { - binding_pattern { - name: "ret2" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - operator { - op: Sub - arguments { - identifier { - name: "b" - } - } - arguments { - identifier { - name: "a" - } - } - } - } - is_returned: true - } - } - statements { - return_var_statement { - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "IntDiff" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/181b96bd90fda933ccc0f44032fc3e7ac753c091 b/explorer/fuzzing/fuzzer_corpus/181b96bd90fda933ccc0f44032fc3e7ac753c091 deleted file mode 100644 index 4ef750e24b23b..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/181b96bd90fda933ccc0f44032fc3e7ac753c091 +++ /dev/null @@ -1,265 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "HasAssoc" - } - members { - let { - pattern { - generic_binding { - name: "Assoc" - type { - type_type_literal { - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "X" - } - members { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - where { - base { - identifier { - name: "HasAssoc" - } - } - clauses { - rewrite { - member_name: "Assoc" - replacement { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - declarations { - alias { - name { - name: "WithoutRewrite" - } - target { - where { - base { - identifier { - name: "HasAssoc" - } - } - clauses { - equals { - lhs { - designator { - name: "Assoc" - } - } - rhs { - int_type_literal { - } - } - } - } - } - } - } - } - declarations { - alias { - name { - name: "WithRewrite" - } - target { - where { - base { - identifier { - name: "HasAssoc" - } - } - clauses { - rewrite { - member_name: "Assoc" - replacement { - int_type_literal { - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "WithRewrite" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - compound_member_access { - object { - identifier { - name: "T" - } - } - path { - simple_member_access { - field: "Assoc" - object { - identifier { - name: "WithoutRewrite" - } - } - } - } - } - } - } - } - } - } - init { - int_literal { - value: 1 - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "a" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "X" - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "x" - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/1820cf28f49d1ee771fc53c74743e545529b509c b/explorer/fuzzing/fuzzer_corpus/1820cf28f49d1ee771fc53c74743e545529b509c deleted file mode 100644 index 1abe2126a0528..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/1820cf28f49d1ee771fc53c74743e545529b509c +++ /dev/null @@ -1,184 +0,0 @@ -compilation_unit { - package_statement { - package_name: "Foo" - } - is_api: true - declarations { - class_declaration { - name { - name: "X" - } - members { - function { - name { - name: "F" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "o" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "n" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "n" - object { - identifier { - name: "o" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "n" - object { - call { - function { - compound_member_access { - object { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 1 - } - } - } - } - } - path { - simple_member_access { - field: "F" - object { - identifier { - name: "X" - } - } - } - } - } - } - argument { - tuple_literal { - fields { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/189f5602a95e12265aaf65183c1d552f0663b36c b/explorer/fuzzing/fuzzer_corpus/189f5602a95e12265aaf65183c1d552f0663b36c deleted file mode 100644 index a409d885e1e40..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/189f5602a95e12265aaf65183c1d552f0663b36c +++ /dev/null @@ -1,266 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Point" - } - members { - function { - name { - name: "Origin" - } - param_pattern { - fields { - binding_pattern { - name: "zero" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - identifier { - name: "zero" - } - } - } - fields { - name: "y" - expression { - identifier { - name: "zero" - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "GetX" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - type_params { - fields { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Origin" - object { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "GetX" - object { - identifier { - name: "p" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/18e4b0c01d7c2527f3a3d682b114ec5afe7d539b b/explorer/fuzzing/fuzzer_corpus/18e4b0c01d7c2527f3a3d682b114ec5afe7d539b deleted file mode 100644 index 4ee4a09a502dc..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/18e4b0c01d7c2527f3a3d682b114ec5afe7d539b +++ /dev/null @@ -1,310 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - type_params { - fields { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "FirstOfTwoPoints" - } - deduced_parameters { - name: "T" - type { - type_type_literal { - } - } - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "a" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 0 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "q" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - bool_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - bool_literal { - value: true - } - } - } - fields { - name: "y" - expression { - bool_literal { - value: false - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - simple_member_access { - field: "x" - object { - call { - function { - identifier { - name: "FirstOfTwoPoints" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "p" - } - } - fields { - identifier { - name: "q" - } - } - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/1983eb50faba24986c9fefe94e372fb2eaa35445 b/explorer/fuzzing/fuzzer_corpus/1983eb50faba24986c9fefe94e372fb2eaa35445 deleted file mode 100644 index 9b79155e429b8..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/1983eb50faba24986c9fefe94e372fb2eaa35445 +++ /dev/null @@ -1,172 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - string_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Create" - object { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - string_type_literal { - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Hallo Welt" - } - } - } - } - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - call { - function { - simple_member_access { - field: "HasValue" - object { - identifier { - name: "x" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - then_block { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "Get" - object { - identifier { - name: "x" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - operator { - op: Neg - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/199d526c94d7b59769c7bea1306f67bdd4767fac b/explorer/fuzzing/fuzzer_corpus/199d526c94d7b59769c7bea1306f67bdd4767fac deleted file mode 100644 index d35ed12ee06e6..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/199d526c94d7b59769c7bea1306f67bdd4767fac +++ /dev/null @@ -1,361 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - class_declaration { - name { - name: "B" - } - members { - destructor { - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "DESTRUCTOR B {0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Create" - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "B" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "n" - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - members { - destructor { - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "DESTRUCTOR A {0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Create" - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "A" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "n" - expression { - identifier { - name: "x" - } - } - } - fields { - name: "b" - expression { - call { - function { - simple_member_access { - field: "Create" - object { - identifier { - name: "B" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "B" - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Create" - object { - identifier { - name: "A" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/1aa8b45819d453372d67a450012c501fd74893ec b/explorer/fuzzing/fuzzer_corpus/1aa8b45819d453372d67a450012c501fd74893ec deleted file mode 100644 index 8d9e5591691bb..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/1aa8b45819d453372d67a450012c501fd74893ec +++ /dev/null @@ -1,3955 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Node" - } - members { - function { - name { - name: "Create" - } - param_pattern { - fields { - binding_pattern { - name: "value" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - call { - function { - identifier { - name: "Node" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "value" - expression { - call { - function { - simple_member_access { - field: "Create" - object { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "value" - } - } - } - } - } - } - } - fields { - name: "next" - expression { - call { - function { - simple_member_access { - field: "CreateEmpty" - object { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - operator { - op: Ptr - arguments { - call { - function { - identifier { - name: "Node" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - fields { - name: "prev" - expression { - call { - function { - simple_member_access { - field: "CreateEmpty" - object { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - operator { - op: Ptr - arguments { - call { - function { - identifier { - name: "Node" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "set_next" - } - self_pattern { - addr_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "Self" - } - } - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - operator { - op: Ptr - arguments { - call { - function { - identifier { - name: "Node" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - statements { - assign { - lhs { - simple_member_access { - field: "next" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - rhs { - identifier { - name: "n" - } - } - op: Plain - } - } - } - } - } - members { - function { - name { - name: "set_prev" - } - self_pattern { - addr_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "Self" - } - } - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - operator { - op: Ptr - arguments { - call { - function { - identifier { - name: "Node" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - statements { - assign { - lhs { - simple_member_access { - field: "prev" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - rhs { - identifier { - name: "n" - } - } - op: Plain - } - } - } - } - } - members { - variable { - binding { - name: "value" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "next" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - operator { - op: Ptr - arguments { - call { - function { - identifier { - name: "Node" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "prev" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - operator { - op: Ptr - arguments { - call { - function { - identifier { - name: "Node" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - type_params { - fields { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "LinkedList" - } - members { - function { - name { - name: "Create" - } - param_pattern { - } - return_term { - kind: Expression - type { - call { - function { - identifier { - name: "LinkedList" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "head" - expression { - call { - function { - simple_member_access { - field: "CreateEmpty" - object { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - operator { - op: Ptr - arguments { - call { - function { - identifier { - name: "Node" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - fields { - name: "tail" - expression { - call { - function { - simple_member_access { - field: "CreateEmpty" - object { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - operator { - op: Ptr - arguments { - call { - function { - identifier { - name: "Node" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - fields { - name: "len" - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "PushBack" - } - self_pattern { - addr_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "Self" - } - } - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "value" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - statements { - assign { - lhs { - simple_member_access { - field: "len" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - rhs { - operator { - op: Add - arguments { - simple_member_access { - field: "len" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - op: Plain - } - } - statements { - if_statement { - condition { - operator { - op: Not - arguments { - call { - function { - simple_member_access { - field: "HasValue" - object { - simple_member_access { - field: "head" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - then_block { - statements { - assign { - lhs { - simple_member_access { - field: "head" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - rhs { - call { - function { - simple_member_access { - field: "Create" - object { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - operator { - op: Ptr - arguments { - call { - function { - identifier { - name: "Node" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "New" - object { - identifier { - name: "heap" - } - } - } - } - argument { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "Create" - object { - call { - function { - identifier { - name: "Node" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "value" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - op: Plain - } - } - statements { - assign { - lhs { - simple_member_access { - field: "tail" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - rhs { - simple_member_access { - field: "head" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - op: Plain - } - } - statements { - return_expression_statement { - is_omitted_expression: true - } - } - } - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "last" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - operator { - op: Ptr - arguments { - call { - function { - identifier { - name: "Node" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - init { - simple_member_access { - field: "tail" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "last_value" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - call { - function { - identifier { - name: "Node" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Get" - object { - identifier { - name: "last" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "v_wrapped" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - operator { - op: Ptr - arguments { - call { - function { - identifier { - name: "Node" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Create" - object { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - operator { - op: Ptr - arguments { - call { - function { - identifier { - name: "Node" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "New" - object { - identifier { - name: "heap" - } - } - } - } - argument { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "Create" - object { - call { - function { - identifier { - name: "Node" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "value" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "set_next" - object { - operator { - op: Deref - arguments { - identifier { - name: "last_value" - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "v_wrapped" - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "set_prev" - object { - operator { - op: Deref - arguments { - call { - function { - simple_member_access { - field: "Get" - object { - identifier { - name: "v_wrapped" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "last" - } - } - } - } - } - } - } - } - statements { - assign { - lhs { - simple_member_access { - field: "tail" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - rhs { - identifier { - name: "v_wrapped" - } - } - op: Plain - } - } - } - } - } - members { - function { - name { - name: "PushFront" - } - self_pattern { - addr_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "Self" - } - } - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "value" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - statements { - assign { - lhs { - simple_member_access { - field: "len" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - rhs { - operator { - op: Add - arguments { - simple_member_access { - field: "len" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - op: Plain - } - } - statements { - if_statement { - condition { - operator { - op: Not - arguments { - call { - function { - simple_member_access { - field: "HasValue" - object { - simple_member_access { - field: "head" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - then_block { - statements { - assign { - lhs { - simple_member_access { - field: "head" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - rhs { - call { - function { - simple_member_access { - field: "Create" - object { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - operator { - op: Ptr - arguments { - call { - function { - identifier { - name: "Node" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "New" - object { - identifier { - name: "heap" - } - } - } - } - argument { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "Create" - object { - call { - function { - identifier { - name: "Node" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "value" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - op: Plain - } - } - statements { - assign { - lhs { - simple_member_access { - field: "tail" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - rhs { - simple_member_access { - field: "head" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - op: Plain - } - } - statements { - return_expression_statement { - is_omitted_expression: true - } - } - } - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "v_wrapped" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - operator { - op: Ptr - arguments { - call { - function { - identifier { - name: "Node" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Create" - object { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - operator { - op: Ptr - arguments { - call { - function { - identifier { - name: "Node" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "New" - object { - identifier { - name: "heap" - } - } - } - } - argument { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "Create" - object { - call { - function { - identifier { - name: "Node" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "value" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "current_head" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - operator { - op: Ptr - arguments { - call { - function { - identifier { - name: "Node" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - init { - simple_member_access { - field: "head" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "current_head_value" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - call { - function { - identifier { - name: "Node" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Get" - object { - identifier { - name: "current_head" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "set_next" - object { - operator { - op: Deref - arguments { - call { - function { - simple_member_access { - field: "Get" - object { - identifier { - name: "v_wrapped" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "current_head" - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "set_prev" - object { - operator { - op: Deref - arguments { - identifier { - name: "current_head_value" - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "v_wrapped" - } - } - } - } - } - } - } - } - statements { - assign { - lhs { - simple_member_access { - field: "head" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - rhs { - identifier { - name: "v_wrapped" - } - } - op: Plain - } - } - } - } - } - members { - function { - name { - name: "Clear" - } - self_pattern { - addr_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "Self" - } - } - } - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - simple_member_access { - field: "len" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - arguments { - int_literal { - value: 0 - } - } - } - } - then_block { - statements { - return_expression_statement { - is_omitted_expression: true - } - } - } - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "iter" - type { - auto_pattern { - } - } - } - } - init { - simple_member_access { - field: "head" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - is_returned: false - } - } - statements { - while_statement { - condition { - call { - function { - simple_member_access { - field: "HasValue" - object { - identifier { - name: "iter" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "current" - type { - auto_pattern { - } - } - } - } - init { - identifier { - name: "iter" - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "iter" - } - } - rhs { - simple_member_access { - field: "next" - object { - operator { - op: Deref - arguments { - call { - function { - simple_member_access { - field: "Get" - object { - identifier { - name: "iter" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - op: Plain - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "Delete" - object { - identifier { - name: "heap" - } - } - } - } - argument { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "Get" - object { - identifier { - name: "current" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - } - } - } - statements { - assign { - lhs { - simple_member_access { - field: "head" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - rhs { - call { - function { - simple_member_access { - field: "CreateEmpty" - object { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - operator { - op: Ptr - arguments { - call { - function { - identifier { - name: "Node" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - op: Plain - } - } - statements { - assign { - lhs { - simple_member_access { - field: "tail" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - rhs { - call { - function { - simple_member_access { - field: "CreateEmpty" - object { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - operator { - op: Ptr - arguments { - call { - function { - identifier { - name: "Node" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - op: Plain - } - } - statements { - assign { - lhs { - simple_member_access { - field: "len" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - rhs { - int_literal { - value: 0 - } - } - op: Plain - } - } - } - } - } - members { - function { - name { - name: "Length" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "len" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "head" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - operator { - op: Ptr - arguments { - call { - function { - identifier { - name: "Node" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "tail" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - operator { - op: Ptr - arguments { - call { - function { - identifier { - name: "Node" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "len" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - type_params { - fields { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "GetListEntryByIndex" - } - deduced_parameters { - name: "T" - type { - type_type_literal { - } - } - } - param_pattern { - fields { - binding_pattern { - name: "list" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - call { - function { - identifier { - name: "LinkedList" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - } - fields { - binding_pattern { - name: "target_index" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "list_length" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Length" - object { - operator { - op: Deref - arguments { - identifier { - name: "list" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - operator { - op: Or - arguments { - operator { - op: Greater - arguments { - identifier { - name: "target_index" - } - } - arguments { - operator { - op: Sub - arguments { - identifier { - name: "list_length" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - arguments { - operator { - op: Less - arguments { - identifier { - name: "target_index" - } - } - arguments { - int_literal { - value: 0 - } - } - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "CreateEmpty" - object { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "search_backwards" - type { - expression_pattern { - expression { - bool_type_literal { - } - } - } - } - } - } - init { - operator { - op: Greater - arguments { - identifier { - name: "target_index" - } - } - arguments { - operator { - op: Div - arguments { - identifier { - name: "list_length" - } - } - arguments { - int_literal { - value: 2 - } - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "iter" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - operator { - op: Ptr - arguments { - call { - function { - identifier { - name: "Node" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - init { - if_expression { - condition { - identifier { - name: "search_backwards" - } - } - then_expression { - simple_member_access { - field: "tail" - object { - operator { - op: Deref - arguments { - identifier { - name: "list" - } - } - } - } - } - } - else_expression { - simple_member_access { - field: "head" - object { - operator { - op: Deref - arguments { - identifier { - name: "list" - } - } - } - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - if_expression { - condition { - identifier { - name: "search_backwards" - } - } - then_expression { - operator { - op: Sub - arguments { - identifier { - name: "list_length" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - else_expression { - int_literal { - value: 0 - } - } - } - } - is_returned: false - } - } - statements { - while_statement { - condition { - operator { - op: NotEq - arguments { - identifier { - name: "c" - } - } - arguments { - identifier { - name: "target_index" - } - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "node" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Node" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - init { - operator { - op: Deref - arguments { - call { - function { - simple_member_access { - field: "Get" - object { - identifier { - name: "iter" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - identifier { - name: "search_backwards" - } - } - then_block { - statements { - assign { - lhs { - identifier { - name: "c" - } - } - rhs { - operator { - op: Sub - arguments { - identifier { - name: "c" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - op: Plain - } - } - statements { - assign { - lhs { - identifier { - name: "iter" - } - } - rhs { - simple_member_access { - field: "prev" - object { - identifier { - name: "node" - } - } - } - } - op: Plain - } - } - } - else_block { - statements { - assign { - lhs { - identifier { - name: "iter" - } - } - rhs { - simple_member_access { - field: "next" - object { - identifier { - name: "node" - } - } - } - } - op: Plain - } - } - statements { - assign { - lhs { - identifier { - name: "c" - } - } - rhs { - operator { - op: Add - arguments { - identifier { - name: "c" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - op: Plain - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - simple_member_access { - field: "value" - object { - operator { - op: Deref - arguments { - call { - function { - simple_member_access { - field: "Get" - object { - identifier { - name: "iter" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "test_list" - type { - auto_pattern { - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Create" - object { - call { - function { - identifier { - name: "LinkedList" - } - } - argument { - tuple_literal { - fields { - string_type_literal { - } - } - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "PushBack" - object { - identifier { - name: "test_list" - } - } - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "This is a String Entry 0" - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "PushBack" - object { - identifier { - name: "test_list" - } - } - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "This is a String Entry 1" - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "PushBack" - object { - identifier { - name: "test_list" - } - } - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "This is a String Entry 2" - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "PushBack" - object { - identifier { - name: "test_list" - } - } - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "This is a String Entry 3" - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "PushBack" - object { - identifier { - name: "test_list" - } - } - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "This is a String Entry 4" - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "PushBack" - object { - identifier { - name: "test_list" - } - } - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "This is a String Entry 5" - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "PushFront" - object { - identifier { - name: "test_list" - } - } - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "This is a prepended String -1" - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "String list length is: {0}" - } - } - fields { - call { - function { - simple_member_access { - field: "Length" - object { - identifier { - name: "test_list" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "search_index" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 5 - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "retrieved_entry" - type { - auto_pattern { - } - } - } - } - init { - call { - function { - identifier { - name: "GetListEntryByIndex" - } - } - argument { - tuple_literal { - fields { - operator { - op: AddressOf - arguments { - identifier { - name: "test_list" - } - } - } - } - fields { - identifier { - name: "search_index" - } - } - } - } - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - call { - function { - simple_member_access { - field: "HasValue" - object { - identifier { - name: "retrieved_entry" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - then_block { - statements { - variable_definition { - pattern { - binding_pattern { - name: "retrieved_value" - type { - expression_pattern { - expression { - string_type_literal { - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Get" - object { - identifier { - name: "retrieved_entry" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "retrieved_value" - } - } - } - } - } - } - } - } - } - else_block { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "No entry found in String list for index {0}!" - } - } - fields { - identifier { - name: "search_index" - } - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "Clear" - object { - identifier { - name: "test_list" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "second_list" - type { - auto_pattern { - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Create" - object { - call { - function { - identifier { - name: "LinkedList" - } - } - argument { - tuple_literal { - fields { - operator { - op: Ptr - arguments { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "number" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 1337 - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "number_ptr" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - int_type_literal { - } - } - } - } - } - } - } - } - init { - operator { - op: AddressOf - arguments { - identifier { - name: "number" - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "PushBack" - object { - identifier { - name: "second_list" - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "number_ptr" - } - } - } - } - } - } - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "retrieved_ptr" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - int_type_literal { - } - } - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Get" - object { - call { - function { - identifier { - name: "GetListEntryByIndex" - } - } - argument { - tuple_literal { - fields { - operator { - op: AddressOf - arguments { - identifier { - name: "second_list" - } - } - } - } - fields { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "value" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - operator { - op: Deref - arguments { - identifier { - name: "retrieved_ptr" - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Value {0}" - } - } - fields { - identifier { - name: "value" - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/1bb31799f794a026275be18fd889f8917257b7a6 b/explorer/fuzzing/fuzzer_corpus/1bb31799f794a026275be18fd889f8917257b7a6 deleted file mode 100644 index 555827bb6c42c..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/1bb31799f794a026275be18fd889f8917257b7a6 +++ /dev/null @@ -1,73 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - initializer { - int_literal { - value: 0 - } - } - } - } - declarations { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - initializer { - int_literal { - value: 0 - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/1c15b9ff3704bb9603866c7a06a3070eb8aacc69 b/explorer/fuzzing/fuzzer_corpus/1c15b9ff3704bb9603866c7a06a3070eb8aacc69 deleted file mode 100644 index 69f712dfd31c5..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/1c15b9ff3704bb9603866c7a06a3070eb8aacc69 +++ /dev/null @@ -1,89 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - match { - expression { - identifier { - name: "n" - } - } - clauses { - pattern { - expression_pattern { - expression { - int_literal { - value: 1 - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/1c2582d7495e080fa022962c6ed26fd62760e88e b/explorer/fuzzing/fuzzer_corpus/1c2582d7495e080fa022962c6ed26fd62760e88e deleted file mode 100644 index 5d07ff0a675d0..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/1c2582d7495e080fa022962c6ed26fd62760e88e +++ /dev/null @@ -1,404 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "MyHashable" - } - members { - let { - pattern { - generic_binding { - name: "Result" - type { - type_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "Hash" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Result" - } - } - } - } - } - } - } - declarations { - constraint { - name { - name: "HashToIntConvertible" - } - members { - interface_impl { - impl_type { - identifier { - name: "Self" - } - } - constraint { - identifier { - name: "MyHashable" - } - } - } - } - members { - interface_impl { - impl_type { - compound_member_access { - object { - identifier { - name: "Self" - } - } - path { - simple_member_access { - field: "Result" - object { - identifier { - name: "MyHashable" - } - } - } - } - } - } - constraint { - call { - function { - identifier { - name: "ImplicitAs" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "MyHashValue" - } - members { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - call { - function { - identifier { - name: "ImplicitAs" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "Convert" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 4 - } - } - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Widget" - } - members { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - where { - base { - identifier { - name: "MyHashable" - } - } - clauses { - rewrite { - member_name: "Result" - replacement { - identifier { - name: "MyHashValue" - } - } - } - } - } - } - members { - function { - name { - name: "Hash" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "MyHashValue" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "MakeSmallHash" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "HashToIntConvertible" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - compound_member_access { - object { - identifier { - name: "x" - } - } - path { - simple_member_access { - field: "Hash" - object { - identifier { - name: "MyHashable" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "w" - type { - expression_pattern { - expression { - identifier { - name: "Widget" - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "MakeSmallHash" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "w" - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/1c37ed06bf8776ee0d165e3ed3d8833a4cc9c760 b/explorer/fuzzing/fuzzer_corpus/1c37ed06bf8776ee0d165e3ed3d8833a4cc9c760 deleted file mode 100644 index 25cfe33ad191f..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/1c37ed06bf8776ee0d165e3ed3d8833a4cc9c760 +++ /dev/null @@ -1,190 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - destructor { - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "DESTRUCTOR A1 {0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - destructor { - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "DESTRUCTOR A2 {0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 3 - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/1c452ac633219d656ab5904d7638e5379e44a582 b/explorer/fuzzing/fuzzer_corpus/1c452ac633219d656ab5904d7638e5379e44a582 deleted file mode 100644 index 6df9054fa08a9..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/1c452ac633219d656ab5904d7638e5379e44a582 +++ /dev/null @@ -1,131 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - call { - function { - identifier { - name: "ImplicitAs" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "Convert" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 42 - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "a" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/1ceaf07b219a9004798ecc0856af9b0d10cce19c b/explorer/fuzzing/fuzzer_corpus/1ceaf07b219a9004798ecc0856af9b0d10cce19c deleted file mode 100644 index 27c426f675fbe..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/1ceaf07b219a9004798ecc0856af9b0d10cce19c +++ /dev/null @@ -1,781 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Vector" - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - type_params { - fields { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - interface { - identifier { - name: "Vector" - } - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 0 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Mul - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "v" - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Mul - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "v" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "AddAndScaleGeneric" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "Vector" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "s" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Scale" - object { - call { - function { - simple_member_access { - field: "Add" - object { - identifier { - name: "a" - } - } - } - } - argument { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "Zero" - object { - identifier { - name: "T" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "s" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 2 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - call { - function { - identifier { - name: "AddAndScaleGeneric" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "a" - } - } - fields { - int_literal { - value: 5 - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "p" - } - } - } - } - arguments { - int_literal { - value: 10 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/1d0d6abe9b8f6cf6eab4083ea51891c7b09b5653 b/explorer/fuzzing/fuzzer_corpus/1d0d6abe9b8f6cf6eab4083ea51891c7b09b5653 deleted file mode 100644 index aeb4fbe3ed41b..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/1d0d6abe9b8f6cf6eab4083ea51891c7b09b5653 +++ /dev/null @@ -1,187 +0,0 @@ -compilation_unit { - package_statement { - package_name: "Foo" - } - is_api: true - declarations { - interface { - name { - name: "A" - } - members { - function { - name { - name: "F" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "X" - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - identifier { - name: "A" - } - } - members { - function { - name { - name: "F" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "X" - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - compound_member_access { - object { - identifier { - name: "a" - } - } - path { - compound_member_access { - object { - identifier { - name: "X" - } - } - path { - simple_member_access { - field: "F" - object { - identifier { - name: "A" - } - } - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/1d36375d17078164cf9329dbe7f4b539b5323f34 b/explorer/fuzzing/fuzzer_corpus/1d36375d17078164cf9329dbe7f4b539b5323f34 deleted file mode 100644 index b95f09c7bec63..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/1d36375d17078164cf9329dbe7f4b539b5323f34 +++ /dev/null @@ -1,62 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - function { - name { - qualifiers: "F" - name: "G" - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/1e15985570e0b52f0d40a19e90b53ab6c679729d b/explorer/fuzzing/fuzzer_corpus/1e15985570e0b52f0d40a19e90b53ab6c679729d deleted file mode 100644 index a3b2cc126bee5..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/1e15985570e0b52f0d40a19e90b53ab6c679729d +++ /dev/null @@ -1,650 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - choice { - name { - name: "Opt" - } - alternatives { - name: "None" - signature { - } - } - alternatives { - name: "Some" - signature { - fields { - int_type_literal { - } - } - } - } - } - } - declarations { - function { - name { - name: "A" - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "Opt" - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Opt" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - match { - expression { - tuple_literal { - fields { - identifier { - name: "a" - } - } - fields { - identifier { - name: "b" - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - alternative_pattern { - choice_type { - identifier { - name: "Opt" - } - } - alternative_name: "Some" - arguments { - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - auto_pattern { - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - identifier { - name: "n" - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - auto_pattern { - } - } - } - } - fields { - alternative_pattern { - choice_type { - identifier { - name: "Opt" - } - } - alternative_name: "Some" - arguments { - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - identifier { - name: "n" - } - } - } - } - } - } - } - clauses { - pattern { - expression_pattern { - expression { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "None" - object { - identifier { - name: "Opt" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "None" - object { - identifier { - name: "Opt" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "B" - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "Opt" - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Opt" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - match { - expression { - tuple_literal { - fields { - identifier { - name: "a" - } - } - fields { - identifier { - name: "b" - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "None" - object { - identifier { - name: "Opt" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - auto_pattern { - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - alternative_pattern { - choice_type { - identifier { - name: "Opt" - } - } - alternative_name: "Some" - arguments { - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "None" - object { - identifier { - name: "Opt" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - identifier { - name: "n" - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - alternative_pattern { - choice_type { - identifier { - name: "Opt" - } - } - alternative_name: "Some" - arguments { - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - fields { - alternative_pattern { - choice_type { - identifier { - name: "Opt" - } - } - alternative_name: "Some" - arguments { - fields { - binding_pattern { - name: "m" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - identifier { - name: "n" - } - } - arguments { - identifier { - name: "m" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - call { - function { - identifier { - name: "A" - } - } - argument { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "None" - object { - identifier { - name: "Opt" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "Some" - object { - identifier { - name: "Opt" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - arguments { - call { - function { - identifier { - name: "B" - } - } - argument { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "Some" - object { - identifier { - name: "Opt" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 2 - } - } - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "None" - object { - identifier { - name: "Opt" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/1e43eb0a0f7b622f2ee5153aadeba3c2716c3b0a b/explorer/fuzzing/fuzzer_corpus/1e43eb0a0f7b622f2ee5153aadeba3c2716c3b0a deleted file mode 100644 index f7b9aacd0142b..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/1e43eb0a0f7b622f2ee5153aadeba3c2716c3b0a +++ /dev/null @@ -1,98 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Vector" - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - string_literal { - value: "hello" - } - } - interface { - identifier { - name: "Vector" - } - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/1e4fb57739ad776cee50880a79f29cdc6b532a58 b/explorer/fuzzing/fuzzer_corpus/1e4fb57739ad776cee50880a79f29cdc6b532a58 deleted file mode 100644 index 8f882abc0f4d3..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/1e4fb57739ad776cee50880a79f29cdc6b532a58 +++ /dev/null @@ -1,370 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - type_params { - fields { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - } - } - } - declarations { - interface { - name { - name: "B" - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - call { - function { - identifier { - name: "A" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - interface { - call { - function { - identifier { - name: "B" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - call { - function { - identifier { - name: "A" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - interface { - call { - function { - identifier { - name: "B" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "T" - type { - call { - function { - identifier { - name: "B" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - function { - name { - name: "G" - } - deduced_parameters { - name: "T" - type { - call { - function { - identifier { - name: "B" - } - } - argument { - tuple_literal { - fields { - bool_type_literal { - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "A" - } - } - argument { - tuple_literal { - fields { - bool_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "A" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "a" - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "G" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "b" - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "b" - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/1ea21248974dcd55d90a60ca12e8149169a9b34c b/explorer/fuzzing/fuzzer_corpus/1ea21248974dcd55d90a60ca12e8149169a9b34c deleted file mode 100644 index 781bd30fb7037..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/1ea21248974dcd55d90a60ca12e8149169a9b34c +++ /dev/null @@ -1,747 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Cell" - } - members { - function { - name { - name: "Create" - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - call { - function { - identifier { - name: "Cell" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "data" - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Get" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "data" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Put" - } - self_pattern { - addr_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "Self" - } - } - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - statements { - assign { - lhs { - simple_member_access { - field: "data" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - rhs { - identifier { - name: "x" - } - } - op: Plain - } - } - } - } - } - members { - function { - name { - name: "Update" - } - deduced_parameters { - name: "U" - type { - call { - function { - identifier { - name: "ImplicitAs" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - self_pattern { - addr_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "Self" - } - } - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "U" - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - statements { - assign { - lhs { - simple_member_access { - field: "data" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - rhs { - identifier { - name: "x" - } - } - op: Plain - } - } - } - } - } - members { - function { - name { - name: "CreateOther" - } - deduced_parameters { - name: "U" - type { - type_type_literal { - } - } - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "U" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - call { - function { - identifier { - name: "Cell" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "U" - } - } - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "data" - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "data" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - type_params { - fields { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Integer" - } - members { - variable { - binding { - name: "int" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "i" - type { - expression_pattern { - expression { - identifier { - name: "Integer" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "int" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Cell" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "Integer" - } - } - } - } - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Create" - object { - call { - function { - identifier { - name: "Cell" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "Integer" - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "i" - } - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "i" - } - } - rhs { - struct_literal { - fields { - name: "int" - expression { - int_literal { - value: 2 - } - } - } - } - } - op: Plain - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "j" - type { - expression_pattern { - expression { - identifier { - name: "Integer" - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Get" - object { - identifier { - name: "c" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "Put" - object { - identifier { - name: "c" - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "i" - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "Update" - object { - identifier { - name: "c" - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "j" - } - } - } - } - } - } - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "d" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Cell" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "Integer" - } - } - } - } - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "CreateOther" - object { - identifier { - name: "c" - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "i" - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "int" - object { - simple_member_access { - field: "data" - object { - identifier { - name: "c" - } - } - } - } - } - } - arguments { - simple_member_access { - field: "int" - object { - simple_member_access { - field: "data" - object { - identifier { - name: "d" - } - } - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/1eb37a662ac6fc2c01dc9b5b1317e9bdc7ce64ec b/explorer/fuzzing/fuzzer_corpus/1eb37a662ac6fc2c01dc9b5b1317e9bdc7ce64ec deleted file mode 100644 index 9db314c797e9f..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/1eb37a662ac6fc2c01dc9b5b1317e9bdc7ce64ec +++ /dev/null @@ -1,132 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "AddInt" - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "ret" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - operator { - op: Add - arguments { - identifier { - name: "a" - } - } - arguments { - identifier { - name: "b" - } - } - } - } - is_returned: true - } - } - statements { - return_var_statement { - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "AddInt" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/1f137378f423a375a57448370eceee7aaac663ec b/explorer/fuzzing/fuzzer_corpus/1f137378f423a375a57448370eceee7aaac663ec deleted file mode 100644 index 99e035145573a..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/1f137378f423a375a57448370eceee7aaac663ec +++ /dev/null @@ -1,99 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "ComputeSum" - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Auto - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - call { - function { - identifier { - name: "ComputeSum" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 2 - } - } - } - } - } - } - arguments { - int_literal { - value: 3 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/1fb3cabbe7b1d1db38a57e533dd8047bf828a338 b/explorer/fuzzing/fuzzer_corpus/1fb3cabbe7b1d1db38a57e533dd8047bf828a338 deleted file mode 100644 index 0f3000c9c747d..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/1fb3cabbe7b1d1db38a57e533dd8047bf828a338 +++ /dev/null @@ -1,86 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "F" - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - type_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_type_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/1fcb05bd7ceeb20c92c134283274f611d58184be b/explorer/fuzzing/fuzzer_corpus/1fcb05bd7ceeb20c92c134283274f611d58184be deleted file mode 100644 index 6852b35c190c8..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/1fcb05bd7ceeb20c92c134283274f611d58184be +++ /dev/null @@ -1,292 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Point" - } - members { - function { - name { - name: "Origin" - } - param_pattern { - fields { - binding_pattern { - name: "zero" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - call { - function { - identifier { - name: "Self" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - identifier { - name: "zero" - } - } - } - fields { - name: "y" - expression { - identifier { - name: "zero" - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "GetX" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Self" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - type_params { - fields { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Origin" - object { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "GetX" - object { - identifier { - name: "p" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/1ff7462970b50e872fa525ce63c82deb12e251ad b/explorer/fuzzing/fuzzer_corpus/1ff7462970b50e872fa525ce63c82deb12e251ad deleted file mode 100644 index 262a0ca35ed7c..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/1ff7462970b50e872fa525ce63c82deb12e251ad +++ /dev/null @@ -1,56 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/2123f77e8516358c52163a4fa1627361f3513f30 b/explorer/fuzzing/fuzzer_corpus/2123f77e8516358c52163a4fa1627361f3513f30 deleted file mode 100644 index 301276e02d0df..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/2123f77e8516358c52163a4fa1627361f3513f30 +++ /dev/null @@ -1,56 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "C" - } - members { - variable { - binding { - name: "m" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/21df195c24c357e5a8f18f482090d95d2524e548 b/explorer/fuzzing/fuzzer_corpus/21df195c24c357e5a8f18f482090d95d2524e548 deleted file mode 100644 index db1ed0f1d6758..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/21df195c24c357e5a8f18f482090d95d2524e548 +++ /dev/null @@ -1,199 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - } - } - declarations { - class_declaration { - name { - name: "B" - } - members { - function { - name { - name: "Foo" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "B" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "base" - expression { - struct_literal { - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "bp" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "B" - } - } - } - } - } - } - } - } - init { - operator { - op: AddressOf - arguments { - identifier { - name: "b" - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "ap" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "A" - } - } - } - } - } - } - } - } - init { - identifier { - name: "bp" - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Foo" - object { - operator { - op: Deref - arguments { - identifier { - name: "ap" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/226b4ae2606b0af76ab25c51d0d61f3fa3b04228 b/explorer/fuzzing/fuzzer_corpus/226b4ae2606b0af76ab25c51d0d61f3fa3b04228 deleted file mode 100644 index 4b71854c02633..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/226b4ae2606b0af76ab25c51d0d61f3fa3b04228 +++ /dev/null @@ -1,63 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - int_literal { - value: 1 - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/2291d3e5898c9c430cc6ecf3855f87bcae68cfbc b/explorer/fuzzing/fuzzer_corpus/2291d3e5898c9c430cc6ecf3855f87bcae68cfbc deleted file mode 100644 index b53426f6bde6f..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/2291d3e5898c9c430cc6ecf3855f87bcae68cfbc +++ /dev/null @@ -1,48 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Vector" - } - members { - interface_extend { - base { - int_type_literal { - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/230ea69eab009635a68f253a70e7f55d8af387bd b/explorer/fuzzing/fuzzer_corpus/230ea69eab009635a68f253a70e7f55d8af387bd deleted file mode 100644 index 6982d99bd7488..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/230ea69eab009635a68f253a70e7f55d8af387bd +++ /dev/null @@ -1,264 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "A" - } - } - interface { - call { - function { - identifier { - name: "ImplicitAs" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "Convert" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - match { - expression { - tuple_literal { - fields { - identifier { - name: "a" - } - } - fields { - identifier { - name: "a" - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - expression_pattern { - expression { - int_literal { - value: 0 - } - } - } - } - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - clauses { - pattern { - expression_pattern { - expression { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 1 - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/2345f2c6add76c7aa04327e5aaa0840275740385 b/explorer/fuzzing/fuzzer_corpus/2345f2c6add76c7aa04327e5aaa0840275740385 deleted file mode 100644 index 0ed52d7d880ee..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/2345f2c6add76c7aa04327e5aaa0840275740385 +++ /dev/null @@ -1,124 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "f" - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - identifier { - name: "x" - } - } - arguments { - identifier { - name: "y" - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - call { - function { - identifier { - name: "f" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 2 - } - } - fields { - int_literal { - value: 3 - } - } - } - } - } - } - arguments { - int_literal { - value: 5 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/2420c58342df0a0df9e67e3b0edaa7b45372195d b/explorer/fuzzing/fuzzer_corpus/2420c58342df0a0df9e67e3b0edaa7b45372195d deleted file mode 100644 index 07eee8effecd8..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/2420c58342df0a0df9e67e3b0edaa7b45372195d +++ /dev/null @@ -1,116 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "HasThreeTypes" - } - members { - let { - pattern { - generic_binding { - name: "A" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "B" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "C" - type { - type_type_literal { - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - int_type_literal { - } - } - interface { - where { - base { - identifier { - name: "HasThreeTypes" - } - } - clauses { - rewrite { - member_name: "A" - replacement { - int_type_literal { - } - } - } - } - clauses { - rewrite { - member_name: "B" - replacement { - designator { - name: "C" - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/24676dd9ecc105448196ca0eee7f8d2987ff44ab b/explorer/fuzzing/fuzzer_corpus/24676dd9ecc105448196ca0eee7f8d2987ff44ab deleted file mode 100644 index 1a2b832a419ac..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/24676dd9ecc105448196ca0eee7f8d2987ff44ab +++ /dev/null @@ -1,70 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "C" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/249efd63613bc0828f4e14afd7e607c5766554f7 b/explorer/fuzzing/fuzzer_corpus/249efd63613bc0828f4e14afd7e607c5766554f7 deleted file mode 100644 index 3155766a0eb3d..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/249efd63613bc0828f4e14afd7e607c5766554f7 +++ /dev/null @@ -1,174 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "AllocateInteger" - } - param_pattern { - } - return_term { - kind: Expression - type { - operator { - op: Ptr - arguments { - int_type_literal { - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "New" - object { - identifier { - name: "heap" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - int_type_literal { - } - } - } - } - } - } - } - } - init { - call { - function { - identifier { - name: "AllocateInteger" - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - operator { - op: Deref - arguments { - identifier { - name: "p" - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "Delete" - object { - identifier { - name: "heap" - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "p" - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "y" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/24d0079e1aa80afab58150f9dbb67c4c0e4c931b b/explorer/fuzzing/fuzzer_corpus/24d0079e1aa80afab58150f9dbb67c4c0e4c931b deleted file mode 100644 index 4f22c227c9148..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/24d0079e1aa80afab58150f9dbb67c4c0e4c931b +++ /dev/null @@ -1,75 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Vector" - } - members { - function { - name { - name: "ScalarZero" - } - param_pattern { - } - return_term { - kind: Expression - type { - simple_member_access { - field: "ScalarType" - object { - identifier { - name: "Vector" - } - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "ScalarType" - type { - type_type_literal { - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/24e5915a89c0544f8b6a98614ce1627362c9c004 b/explorer/fuzzing/fuzzer_corpus/24e5915a89c0544f8b6a98614ce1627362c9c004 deleted file mode 100644 index 10a396a47d20d..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/24e5915a89c0544f8b6a98614ce1627362c9c004 +++ /dev/null @@ -1,77 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "f" - } - param_pattern { - fields { - binding_pattern { - name: "g" - type { - expression_pattern { - expression { - function_type { - return_type { - bool_literal { - value: true - } - } - parameter { - fields { - operator { - op: Neg - arguments { - bool_literal { - value: true - } - } - } - } - } - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/2553611e44783982b46c96dc4751ed5be979a776 b/explorer/fuzzing/fuzzer_corpus/2553611e44783982b46c96dc4751ed5be979a776 deleted file mode 100644 index a11d84b055a50..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/2553611e44783982b46c96dc4751ed5be979a776 +++ /dev/null @@ -1,83 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "x" - } - } - rhs { - int_literal { - value: 1 - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/2592ac23dae5631b900a05323bafadff16193ed6 b/explorer/fuzzing/fuzzer_corpus/2592ac23dae5631b900a05323bafadff16193ed6 deleted file mode 100644 index c7438d3747c1b..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/2592ac23dae5631b900a05323bafadff16193ed6 +++ /dev/null @@ -1,53 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Vector" - } - members { - interface_impl { - impl_type { - identifier { - name: "Self" - } - } - constraint { - int_type_literal { - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/259a863ed9082cb8de31b5221b95287d39aed44f b/explorer/fuzzing/fuzzer_corpus/259a863ed9082cb8de31b5221b95287d39aed44f deleted file mode 100644 index 697767164ff0b..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/259a863ed9082cb8de31b5221b95287d39aed44f +++ /dev/null @@ -1,156 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "DoMul" - } - deduced_parameters { - name: "T" - type { - where { - base { - call { - function { - identifier { - name: "MulWith" - } - } - argument { - tuple_literal { - fields { - designator { - name: "Self" - } - } - } - } - } - } - clauses { - equals { - lhs { - designator { - name: "Result" - } - } - rhs { - designator { - name: "Self" - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "y" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Mul - arguments { - identifier { - name: "x" - } - } - arguments { - identifier { - name: "y" - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "DoMul" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 2 - } - } - fields { - int_literal { - value: 3 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/26c2d5cf1d3f39a1f0fc16691f770713002312a0 b/explorer/fuzzing/fuzzer_corpus/26c2d5cf1d3f39a1f0fc16691f770713002312a0 deleted file mode 100644 index 7033a4912f002..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/26c2d5cf1d3f39a1f0fc16691f770713002312a0 +++ /dev/null @@ -1,79 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "A" - } - } - } - declarations { - interface { - name { - name: "B" - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - int_type_literal { - } - } - interface { - where { - base { - identifier { - name: "A" - } - } - clauses { - impls { - type { - int_type_literal { - } - } - constraint { - identifier { - name: "B" - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} - diff --git a/explorer/fuzzing/fuzzer_corpus/26c83f24cf6e29aada6ea5112db6d71c7f332b49 b/explorer/fuzzing/fuzzer_corpus/26c83f24cf6e29aada6ea5112db6d71c7f332b49 deleted file mode 100644 index 624fb49248b72..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/26c83f24cf6e29aada6ea5112db6d71c7f332b49 +++ /dev/null @@ -1,122 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - auto_pattern { - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 0 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "x" - } - } - rhs { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 5 - } - } - } - fields { - name: "y" - expression { - operator { - op: Neg - arguments { - int_literal { - value: 5 - } - } - } - } - } - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "x" - } - } - } - } - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "x" - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/2718684e5395145cf201b11e4738666efd38255b b/explorer/fuzzing/fuzzer_corpus/2718684e5395145cf201b11e4738666efd38255b deleted file mode 100644 index 74fcfb8a0c5b6..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/2718684e5395145cf201b11e4738666efd38255b +++ /dev/null @@ -1,325 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - type_params { - fields { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "GetX" - } - deduced_parameters { - name: "T" - type { - type_type_literal { - } - } - } - param_pattern { - fields { - binding_pattern { - name: "pt" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "x" - object { - identifier { - name: "pt" - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "GetY" - } - param_pattern { - fields { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - fields { - binding_pattern { - name: "pt" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "y" - object { - identifier { - name: "pt" - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 1 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - call { - function { - identifier { - name: "GetX" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "p" - } - } - } - } - } - } - arguments { - call { - function { - identifier { - name: "GetY" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - fields { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 3 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 4 - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/271fc28e0362d9f752541cf06e1131b70e729b59 b/explorer/fuzzing/fuzzer_corpus/271fc28e0362d9f752541cf06e1131b70e729b59 deleted file mode 100644 index 97afcf32b98cd..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/271fc28e0362d9f752541cf06e1131b70e729b59 +++ /dev/null @@ -1,478 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "C" - } - members { - variable { - binding { - name: "val" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "D" - } - members { - variable { - binding { - name: "val" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "E" - } - members { - variable { - binding { - name: "val" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Foo" - } - param_pattern { - fields { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "C" - } - } - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "val" - object { - operator { - op: Deref - arguments { - identifier { - name: "c" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "e" - type { - expression_pattern { - expression { - identifier { - name: "E" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "val" - expression { - int_literal { - value: 3 - } - } - } - fields { - name: "base" - expression { - struct_literal { - fields { - name: "val" - expression { - int_literal { - value: 2 - } - } - } - fields { - name: "base" - expression { - struct_literal { - fields { - name: "val" - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "d" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "D" - } - } - } - } - } - } - } - } - init { - operator { - op: AddressOf - arguments { - identifier { - name: "e" - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "c1" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "C" - } - } - } - } - } - } - } - } - init { - operator { - op: AddressOf - arguments { - identifier { - name: "e" - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "c2" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "C" - } - } - } - } - } - } - } - } - init { - identifier { - name: "d" - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Foo(c1): {0}" - } - } - fields { - call { - function { - identifier { - name: "Foo" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "c1" - } - } - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Foo(c2): {0}" - } - } - fields { - call { - function { - identifier { - name: "Foo" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "c2" - } - } - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Foo(d): {0}" - } - } - fields { - call { - function { - identifier { - name: "Foo" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "d" - } - } - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Foo(&e): {0}" - } - } - fields { - call { - function { - identifier { - name: "Foo" - } - } - argument { - tuple_literal { - fields { - operator { - op: AddressOf - arguments { - identifier { - name: "e" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/274a41d566450247ad862675b54ac99f10b1a275 b/explorer/fuzzing/fuzzer_corpus/274a41d566450247ad862675b54ac99f10b1a275 deleted file mode 100644 index 52357a4071b62..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/274a41d566450247ad862675b54ac99f10b1a275 +++ /dev/null @@ -1,90 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Foo" - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - tuple_literal { - } - } - } - } - } - } - init { - tuple_literal { - } - } - is_returned: true - } - } - statements { - return_var_statement { - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Foo" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/277dd8d5c877be6c18233440ee001ace701283c9 b/explorer/fuzzing/fuzzer_corpus/277dd8d5c877be6c18233440ee001ace701283c9 deleted file mode 100644 index 43b9a8ec984e3..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/277dd8d5c877be6c18233440ee001ace701283c9 +++ /dev/null @@ -1,884 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Vector" - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - type_params { - fields { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - interface { - call { - function { - identifier { - name: "Vector" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Mul - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "v" - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Mul - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "v" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - interface { - call { - function { - identifier { - name: "Vector" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "self" - } - } - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "AddAndScaleGeneric" - } - deduced_parameters { - name: "T" - type { - call { - function { - identifier { - name: "Vector" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "s" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Scale" - object { - call { - function { - simple_member_access { - field: "Add" - object { - identifier { - name: "a" - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "b" - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "s" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 1 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 2 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 3 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - call { - function { - identifier { - name: "AddAndScaleGeneric" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "a" - } - } - fields { - identifier { - name: "b" - } - } - fields { - int_literal { - value: 5 - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "p" - } - } - } - } - arguments { - int_literal { - value: 15 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/27ef47d1362933a6bff7e03fc14e5c5fcd23e2fa b/explorer/fuzzing/fuzzer_corpus/27ef47d1362933a6bff7e03fc14e5c5fcd23e2fa deleted file mode 100644 index b034fe4b0e6e6..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/27ef47d1362933a6bff7e03fc14e5c5fcd23e2fa +++ /dev/null @@ -1,149 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "f" - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - identifier { - name: "x" - } - } - arguments { - identifier { - name: "y" - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "xy" - type { - expression_pattern { - expression { - tuple_literal { - fields { - int_type_literal { - } - } - fields { - int_type_literal { - } - } - } - } - } - } - } - } - init { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 2 - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "f" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "xy" - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/27f47232d1bafdca3762a5c22012c5089f090a22 b/explorer/fuzzing/fuzzer_corpus/27f47232d1bafdca3762a5c22012c5089f090a22 deleted file mode 100644 index aea2f1280b60d..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/27f47232d1bafdca3762a5c22012c5089f090a22 +++ /dev/null @@ -1,336 +0,0 @@ -compilation_unit { - package_statement { - package_name: "Foo" - } - is_api: true - declarations { - class_declaration { - name { - name: "X" - } - members { - function { - name { - name: "F" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "o" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "n" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "n" - object { - identifier { - name: "o" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Y" - } - members { - variable { - binding { - name: "m" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - call { - function { - identifier { - name: "ImplicitAs" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "X" - } - } - } - } - } - } - members { - function { - name { - name: "Convert" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "X" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "n" - expression { - simple_member_access { - field: "m" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "y1" - type { - expression_pattern { - expression { - identifier { - name: "Y" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "m" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "y2" - type { - expression_pattern { - expression { - identifier { - name: "Y" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "m" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - simple_member_access { - field: "n" - object { - call { - function { - compound_member_access { - object { - identifier { - name: "y1" - } - } - path { - simple_member_access { - field: "F" - object { - identifier { - name: "X" - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "y2" - } - } - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/2824af73c9b3ce5d33a222f3b775182893af1027 b/explorer/fuzzing/fuzzer_corpus/2824af73c9b3ce5d33a222f3b775182893af1027 deleted file mode 100644 index c13669ca759ff..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/2824af73c9b3ce5d33a222f3b775182893af1027 +++ /dev/null @@ -1,182 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "lhs" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 8 - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "rhs" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 3 - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Interface: {0}" - } - } - fields { - call { - function { - compound_member_access { - object { - identifier { - name: "lhs" - } - } - path { - simple_member_access { - field: "Op" - object { - call { - function { - identifier { - name: "SubWith" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "rhs" - } - } - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Op: {0}" - } - } - fields { - operator { - op: Sub - arguments { - identifier { - name: "lhs" - } - } - arguments { - identifier { - name: "rhs" - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/28c7ced2db84460637ac24a019ff2fab72d5b1b2 b/explorer/fuzzing/fuzzer_corpus/28c7ced2db84460637ac24a019ff2fab72d5b1b2 deleted file mode 100644 index e8c89455a853f..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/28c7ced2db84460637ac24a019ff2fab72d5b1b2 +++ /dev/null @@ -1,94 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "HasType" - } - members { - let { - pattern { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "H" - type { - where { - base { - identifier { - name: "HasType" - } - } - clauses { - rewrite { - member_name: "T" - replacement { - operator { - op: Ptr - arguments { - designator { - name: "T" - } - } - } - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/28ef6e1e280a1f3621c9a5225e69844d0db40081 b/explorer/fuzzing/fuzzer_corpus/28ef6e1e280a1f3621c9a5225e69844d0db40081 deleted file mode 100644 index 30448a7218552..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/28ef6e1e280a1f3621c9a5225e69844d0db40081 +++ /dev/null @@ -1,871 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Vector" - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "Point" - } - } - interface { - identifier { - name: "Vector" - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Mul - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "v" - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Mul - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "v" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "Point" - } - } - interface { - identifier { - name: "Vector" - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Mul - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "v" - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Mul - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "v" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "AddAndScaleGeneric" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "Vector" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "s" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Scale" - object { - call { - function { - simple_member_access { - field: "Add" - object { - identifier { - name: "a" - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "b" - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "s" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 1 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 2 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 3 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - call { - function { - identifier { - name: "AddAndScaleGeneric" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "a" - } - } - fields { - identifier { - name: "b" - } - } - fields { - int_literal { - value: 5 - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "p" - } - } - } - } - arguments { - int_literal { - value: 15 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/2917ec9747dbfa35f67d9d61bb71d5d4d0fb4385 b/explorer/fuzzing/fuzzer_corpus/2917ec9747dbfa35f67d9d61bb71d5d4d0fb4385 deleted file mode 100644 index 6008d73833495..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/2917ec9747dbfa35f67d9d61bb71d5d4d0fb4385 +++ /dev/null @@ -1,397 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "MyType" - } - members { - variable { - binding { - name: "value" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - call { - function { - identifier { - name: "EqWith" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "Self" - } - } - } - } - } - } - members { - function { - name { - name: "Equal" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "other" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - bool_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Eq - arguments { - simple_member_access { - field: "value" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "value" - object { - identifier { - name: "other" - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "NotEqual" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "other" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - bool_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: NotEq - arguments { - simple_member_access { - field: "value" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "value" - object { - identifier { - name: "other" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "MyType" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "value" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "y" - type { - expression_pattern { - expression { - identifier { - name: "MyType" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "value" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "structs equal: {0}" - } - } - fields { - if_expression { - condition { - operator { - op: Eq - arguments { - identifier { - name: "x" - } - } - arguments { - identifier { - name: "y" - } - } - } - } - then_expression { - int_literal { - value: 1 - } - } - else_expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "structs not equal: {0}" - } - } - fields { - if_expression { - condition { - operator { - op: NotEq - arguments { - identifier { - name: "x" - } - } - arguments { - identifier { - name: "y" - } - } - } - } - then_expression { - int_literal { - value: 1 - } - } - else_expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/2921e84bdcbabd8d64c21360345ca280f9e250a4 b/explorer/fuzzing/fuzzer_corpus/2921e84bdcbabd8d64c21360345ca280f9e250a4 deleted file mode 100644 index 260bd25be2502..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/2921e84bdcbabd8d64c21360345ca280f9e250a4 +++ /dev/null @@ -1,94 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Foo" - } - param_pattern { - } - return_term { - kind: Expression - type { - tuple_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - tuple_literal { - } - } - } - } - } - } - init { - tuple_literal { - } - } - is_returned: true - } - } - statements { - return_var_statement { - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Foo" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/297403f9670145ba84245d3db2be10ea2ae9d0bf b/explorer/fuzzing/fuzzer_corpus/297403f9670145ba84245d3db2be10ea2ae9d0bf deleted file mode 100644 index 05862403db535..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/297403f9670145ba84245d3db2be10ea2ae9d0bf +++ /dev/null @@ -1,255 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "ar" - type { - expression_pattern { - expression { - array_type_literal { - element_type { - int_type_literal { - } - } - size { - int_literal { - value: 4 - } - } - } - } - } - } - } - } - init { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 2 - } - } - fields { - int_literal { - value: 3 - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "count" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - for_statement { - var_decl { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - target { - identifier { - name: "ar" - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "HALLO WELT {0}" - } - } - fields { - identifier { - name: "x" - } - } - } - } - } - } - } - } - statements { - assign { - lhs { - identifier { - name: "count" - } - } - rhs { - operator { - op: Add - arguments { - identifier { - name: "count" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - op: Plain - } - } - } - } - } - statements { - for_statement { - var_decl { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - target { - identifier { - name: "ar" - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "HALLO WELT {0}" - } - } - fields { - identifier { - name: "x" - } - } - } - } - } - } - } - } - statements { - assign { - lhs { - identifier { - name: "count" - } - } - rhs { - operator { - op: Add - arguments { - identifier { - name: "count" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - op: Plain - } - } - } - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "count" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/29baa699f49a55a3b6d733f3a0030367e1ab5835 b/explorer/fuzzing/fuzzer_corpus/29baa699f49a55a3b6d733f3a0030367e1ab5835 deleted file mode 100644 index 44d4066df8f54..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/29baa699f49a55a3b6d733f3a0030367e1ab5835 +++ /dev/null @@ -1,301 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "C" - } - members { - function { - name { - name: "FunctionC" - } - param_pattern { - fields { - var_pattern { - pattern { - binding_pattern { - name: "i" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Class C, call {0}" - } - } - fields { - identifier { - name: "i" - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "D" - } - members { - function { - name { - name: "FunctionD" - } - param_pattern { - fields { - var_pattern { - pattern { - binding_pattern { - name: "i" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "FunctionC" - object { - identifier { - name: "C" - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "i" - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Class D, call {0}" - } - } - fields { - identifier { - name: "i" - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "FunctionD" - object { - identifier { - name: "D" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "d" - type { - expression_pattern { - expression { - identifier { - name: "D" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "base" - expression { - struct_literal { - } - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "FunctionC" - object { - identifier { - name: "d" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "FunctionD" - object { - identifier { - name: "d" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/29cb786e12d8db536d5f0748863f751ef4db52ce b/explorer/fuzzing/fuzzer_corpus/29cb786e12d8db536d5f0748863f751ef4db52ce deleted file mode 100644 index 3692a474cfc4d..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/29cb786e12d8db536d5f0748863f751ef4db52ce +++ /dev/null @@ -1,329 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - namespace { - name { - name: "N" - } - } - } - declarations { - mixin { - name { - qualifiers: "N" - name: "Mixin" - } - self { - name: "Self" - type { - type_type_literal { - } - } - } - } - } - declarations { - class_declaration { - name { - qualifiers: "N" - name: "BaseClass" - } - members { - mix { - mixin { - identifier { - name: "Mixin" - } - } - } - } - } - } - declarations { - class_declaration { - name { - qualifiers: "N" - name: "DerivedClass" - } - } - } - declarations { - namespace { - name { - qualifiers: "N" - name: "Inner" - } - } - } - declarations { - alias { - name { - qualifiers: "N" - qualifiers: "Inner" - name: "InnerClass" - } - target { - identifier { - name: "DerivedClass" - } - } - } - } - declarations { - choice { - name { - qualifiers: "N" - name: "Choice" - } - alternatives { - name: "A" - signature { - } - } - alternatives { - name: "B" - signature { - } - } - alternatives { - name: "C" - signature { - fields { - identifier { - name: "DerivedClass" - } - } - } - } - } - } - declarations { - interface { - name { - qualifiers: "N" - name: "Iface" - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - operator { - op: Ptr - arguments { - identifier { - name: "DerivedClass" - } - } - } - } - } - } - } - } - } - declarations { - constraint { - name { - qualifiers: "N" - name: "Constraint" - } - members { - interface_extend { - base { - identifier { - name: "Iface" - } - } - } - } - } - } - declarations { - variable { - binding { - name: "v" - type { - expression_pattern { - expression { - simple_member_access { - field: "DerivedClass" - object { - identifier { - name: "N" - } - } - } - } - } - } - } - initializer { - struct_literal { - fields { - name: "base" - expression { - struct_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - qualifiers: "N" - name: "F" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "Constraint" - } - } - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - simple_member_access { - field: "InnerClass" - object { - identifier { - name: "Inner" - } - } - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "base" - expression { - struct_literal { - } - } - } - } - } - is_returned: false - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - simple_member_access { - field: "Constraint" - object { - identifier { - name: "N" - } - } - } - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - operator { - op: Ptr - arguments { - simple_member_access { - field: "DerivedClass" - object { - identifier { - name: "N" - } - } - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: AddressOf - arguments { - identifier { - name: "v" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/2a0ee4282b6c339348fee3a6921b56432b2f35a6 b/explorer/fuzzing/fuzzer_corpus/2a0ee4282b6c339348fee3a6921b56432b2f35a6 deleted file mode 100644 index 5a5861e77cfce..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/2a0ee4282b6c339348fee3a6921b56432b2f35a6 +++ /dev/null @@ -1,89 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - namespace { - name { - name: "N" - } - } - } - declarations { - function { - name { - qualifiers: "N" - name: "F" - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - alias { - name { - name: "M" - } - target { - identifier { - name: "N" - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "F" - object { - identifier { - name: "M" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/2aa0ee106f4e4f04b322e83830ba574e8be2506f b/explorer/fuzzing/fuzzer_corpus/2aa0ee106f4e4f04b322e83830ba574e8be2506f deleted file mode 100644 index 273d7dfe283f3..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/2aa0ee106f4e4f04b322e83830ba574e8be2506f +++ /dev/null @@ -1,51 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "NoReturn" - } - param_pattern { - } - return_term { - kind: Auto - } - body { - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "NoReturn" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/2aaecd831ea460c5a721f9421d4965fc408d4c35 b/explorer/fuzzing/fuzzer_corpus/2aaecd831ea460c5a721f9421d4965fc408d4c35 deleted file mode 100644 index 040d4af02dec7..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/2aaecd831ea460c5a721f9421d4965fc408d4c35 +++ /dev/null @@ -1,88 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - array_type_literal { - element_type { - int_type_literal { - } - } - size { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - init { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 2 - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - index { - object { - identifier { - name: "x" - } - } - offset { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/2b1263de304325a3a6847294fa1a2aeb3564d22c b/explorer/fuzzing/fuzzer_corpus/2b1263de304325a3a6847294fa1a2aeb3564d22c deleted file mode 100644 index 828635680c0df..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/2b1263de304325a3a6847294fa1a2aeb3564d22c +++ /dev/null @@ -1,74 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "C" - } - members { - variable { - binding { - name: "a" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - identifier { - name: "C" - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/2b24973806eac518653f494a29671fad6aea010b b/explorer/fuzzing/fuzzer_corpus/2b24973806eac518653f494a29671fad6aea010b deleted file mode 100644 index 3d600de2badaa..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/2b24973806eac518653f494a29671fad6aea010b +++ /dev/null @@ -1,666 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "A" - } - } - interface { - identifier { - name: "Inc" - } - } - members { - function { - name { - name: "Op" - } - self_pattern { - addr_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "Self" - } - } - } - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - statements { - inc_dec { - operand { - simple_member_access { - field: "n" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - is_increment: true - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "A" - } - } - interface { - identifier { - name: "Dec" - } - } - members { - function { - name { - name: "Op" - } - self_pattern { - addr_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "Self" - } - } - } - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - statements { - inc_dec { - operand { - simple_member_access { - field: "n" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - is_increment: false - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 5 - } - } - } - } - } - is_returned: false - } - } - statements { - inc_dec { - operand { - simple_member_access { - field: "n" - object { - identifier { - name: "a" - } - } - } - } - is_increment: true - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "a" - } - } - } - } - } - } - } - } - } - } - statements { - inc_dec { - operand { - simple_member_access { - field: "n" - object { - identifier { - name: "a" - } - } - } - } - is_increment: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "a" - } - } - } - } - } - } - } - } - } - } - statements { - inc_dec { - operand { - identifier { - name: "a" - } - } - is_increment: true - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "a" - } - } - } - } - } - } - } - } - } - } - statements { - inc_dec { - operand { - identifier { - name: "a" - } - } - is_increment: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "a" - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - compound_member_access { - object { - simple_member_access { - field: "n" - object { - identifier { - name: "a" - } - } - } - } - path { - simple_member_access { - field: "Op" - object { - identifier { - name: "Inc" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "a" - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - compound_member_access { - object { - simple_member_access { - field: "n" - object { - identifier { - name: "a" - } - } - } - } - path { - simple_member_access { - field: "Op" - object { - identifier { - name: "Dec" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "a" - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - compound_member_access { - object { - identifier { - name: "a" - } - } - path { - simple_member_access { - field: "Op" - object { - identifier { - name: "Inc" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "a" - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - compound_member_access { - object { - identifier { - name: "a" - } - } - path { - simple_member_access { - field: "Op" - object { - identifier { - name: "Dec" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "a" - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/2b342d5ea73ce8b83dd29a47bda07bb050f62d56 b/explorer/fuzzing/fuzzer_corpus/2b342d5ea73ce8b83dd29a47bda07bb050f62d56 deleted file mode 100644 index 1497f0aa56fe9..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/2b342d5ea73ce8b83dd29a47bda07bb050f62d56 +++ /dev/null @@ -1,268 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "MyAddWith" - } - members { - let { - pattern { - generic_binding { - name: "Result" - type { - type_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "Op" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "other" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Result" - } - } - } - } - } - } - } - declarations { - constraint { - name { - name: "MyAdd" - } - members { - interface_extend { - base { - where { - base { - call { - function { - identifier { - name: "MyAddWith" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "Self" - } - } - } - } - } - } - clauses { - rewrite { - member_name: "Result" - replacement { - identifier { - name: "Self" - } - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - int_type_literal { - } - } - interface { - identifier { - name: "MyAdd" - } - } - members { - function { - name { - name: "Op" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "other" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - identifier { - name: "self" - } - } - arguments { - identifier { - name: "other" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 1 - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - compound_member_access { - object { - identifier { - name: "n" - } - } - path { - simple_member_access { - field: "Op" - object { - identifier { - name: "MyAdd" - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "n" - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/2bbd64b5c75365c1644b9823f9cd572ce53acdd4 b/explorer/fuzzing/fuzzer_corpus/2bbd64b5c75365c1644b9823f9cd572ce53acdd4 deleted file mode 100644 index 8038fd6badac2..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/2bbd64b5c75365c1644b9823f9cd572ce53acdd4 +++ /dev/null @@ -1,354 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Apple" - } - members { - function { - name { - name: "F" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - } - } - } - } - declarations { - interface { - name { - name: "Banana" - } - members { - interface_extend { - base { - call { - function { - identifier { - name: "Apple" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - members { - function { - name { - name: "G" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Omitted - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Carrot" - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "Carrot" - } - } - interface { - identifier { - name: "Banana" - } - } - members { - function { - name { - name: "F" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "G" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Carrot.G" - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - identifier { - name: "Carrot" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 5 - } - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - compound_member_access { - object { - identifier { - name: "c" - } - } - path { - simple_member_access { - field: "G" - object { - identifier { - name: "Banana" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - call { - function { - compound_member_access { - object { - identifier { - name: "c" - } - } - path { - simple_member_access { - field: "F" - object { - call { - function { - identifier { - name: "Apple" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/2cd6e756af6d6c7bbc680961e794400e4ac3d6ae b/explorer/fuzzing/fuzzer_corpus/2cd6e756af6d6c7bbc680961e794400e4ac3d6ae deleted file mode 100644 index 7d1eed1f1c055..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/2cd6e756af6d6c7bbc680961e794400e4ac3d6ae +++ /dev/null @@ -1,108 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - match { - expression { - int_literal { - value: 0 - } - } - clauses { - pattern { - expression_pattern { - expression { - int_literal { - value: 1 - } - } - } - } - statement { - block { - statements { - assign { - lhs { - identifier { - name: "x" - } - } - rhs { - int_literal { - value: 1 - } - } - op: Plain - } - } - } - } - } - clauses { - statement { - block { - statements { - assign { - lhs { - identifier { - name: "x" - } - } - rhs { - int_literal { - value: 2 - } - } - op: Plain - } - } - } - } - is_default: true - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/2d454cacd53c4ed55138382f919c3547d81059fd b/explorer/fuzzing/fuzzer_corpus/2d454cacd53c4ed55138382f919c3547d81059fd deleted file mode 100644 index 7bd719a4eec15..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/2d454cacd53c4ed55138382f919c3547d81059fd +++ /dev/null @@ -1,413 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - type_params { - fields { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - } - } - } - declarations { - interface { - name { - name: "B" - } - } - } - declarations { - match_first { - impl_declarations { - impl { - kind: ExternalImpl - impl_type { - call { - function { - identifier { - name: "A" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - interface { - call { - function { - identifier { - name: "B" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - impl_declarations { - impl { - kind: ExternalImpl - impl_type { - call { - function { - identifier { - name: "A" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - interface { - call { - function { - identifier { - name: "B" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - call { - function { - identifier { - name: "A" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - interface { - call { - function { - identifier { - name: "B" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "T" - type { - call { - function { - identifier { - name: "B" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - function { - name { - name: "G" - } - deduced_parameters { - name: "T" - type { - call { - function { - identifier { - name: "B" - } - } - argument { - tuple_literal { - fields { - bool_type_literal { - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "A" - } - } - argument { - tuple_literal { - fields { - bool_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "A" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "a" - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "G" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "b" - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "b" - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/2df8a45807e01a85bd980ac9aafa9f12eebb6fc5 b/explorer/fuzzing/fuzzer_corpus/2df8a45807e01a85bd980ac9aafa9f12eebb6fc5 deleted file mode 100644 index d680e60c79f4a..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/2df8a45807e01a85bd980ac9aafa9f12eebb6fc5 +++ /dev/null @@ -1,199 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "A" - } - } - interface { - where { - base { - identifier { - name: "Negate" - } - } - clauses { - rewrite { - member_name: "Result" - replacement { - identifier { - name: "A" - } - } - } - } - } - } - members { - function { - name { - name: "Op" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "A" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "n" - expression { - operator { - op: Neg - arguments { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 5 - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "a" - } - } - rhs { - operator { - op: Neg - arguments { - identifier { - name: "a" - } - } - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - simple_member_access { - field: "n" - object { - identifier { - name: "a" - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/2e6b6f16fd486918688ae87eb3b4a197296989c3 b/explorer/fuzzing/fuzzer_corpus/2e6b6f16fd486918688ae87eb3b4a197296989c3 deleted file mode 100644 index f4140706591f9..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/2e6b6f16fd486918688ae87eb3b4a197296989c3 +++ /dev/null @@ -1,133 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Vector" - } - members { - let { - pattern { - generic_binding { - name: "Dim" - type { - int_type_literal { - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - where { - base { - identifier { - name: "Vector" - } - } - clauses { - rewrite { - member_name: "Dim" - replacement { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - compound_member_access { - object { - identifier { - name: "Point" - } - } - path { - simple_member_access { - field: "Dim" - object { - identifier { - name: "Vector" - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/2ee264dd2bbf6040e1dbd35cec604eef029a39ba b/explorer/fuzzing/fuzzer_corpus/2ee264dd2bbf6040e1dbd35cec604eef029a39ba deleted file mode 100644 index 1ed7fc8975716..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/2ee264dd2bbf6040e1dbd35cec604eef029a39ba +++ /dev/null @@ -1,84 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "t" - type { - auto_pattern { - } - } - } - } - init { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 2 - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - array_type_literal { - element_type { - int_type_literal { - } - } - size { - int_literal { - value: 3 - } - } - } - } - } - } - } - } - init { - identifier { - name: "t" - } - } - is_returned: false - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/303a2187a4ff61fde4b156859d305f3656b76986 b/explorer/fuzzing/fuzzer_corpus/303a2187a4ff61fde4b156859d305f3656b76986 deleted file mode 100644 index 55a48a8839505..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/303a2187a4ff61fde4b156859d305f3656b76986 +++ /dev/null @@ -1,291 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "C" - } - members { - variable { - binding { - name: "var_c" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "D" - } - members { - variable { - binding { - name: "var_d" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "d" - type { - expression_pattern { - expression { - identifier { - name: "D" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "base" - expression { - struct_literal { - fields { - name: "var_c" - expression { - int_literal { - value: 1 - } - } - } - } - } - } - fields { - name: "var_d" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Read var_c={0}" - } - } - fields { - simple_member_access { - field: "var_c" - object { - identifier { - name: "d" - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Read var_d={0}" - } - } - fields { - simple_member_access { - field: "var_d" - object { - identifier { - name: "d" - } - } - } - } - } - } - } - } - } - } - statements { - assign { - lhs { - simple_member_access { - field: "var_c" - object { - identifier { - name: "d" - } - } - } - } - rhs { - int_literal { - value: 3 - } - } - op: Plain - } - } - statements { - assign { - lhs { - simple_member_access { - field: "var_d" - object { - identifier { - name: "d" - } - } - } - } - rhs { - int_literal { - value: 4 - } - } - op: Plain - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Assign var_c={0}" - } - } - fields { - simple_member_access { - field: "var_c" - object { - identifier { - name: "d" - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Assign var_d={0}" - } - } - fields { - simple_member_access { - field: "var_d" - object { - identifier { - name: "d" - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/3092700876ae00aa40e0943fc8899ea3f91363fc b/explorer/fuzzing/fuzzer_corpus/3092700876ae00aa40e0943fc8899ea3f91363fc deleted file mode 100644 index 324d9ea71fd0d..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/3092700876ae00aa40e0943fc8899ea3f91363fc +++ /dev/null @@ -1,264 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "map" - } - deduced_parameters { - name: "T" - type { - type_type_literal { - } - } - } - param_pattern { - fields { - binding_pattern { - name: "f" - type { - expression_pattern { - expression { - function_type { - return_type { - identifier { - name: "T" - } - } - parameter { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - fields { - binding_pattern { - name: "tuple" - type { - expression_pattern { - expression { - tuple_literal { - fields { - identifier { - name: "T" - } - } - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - tuple_literal { - fields { - identifier { - name: "T" - } - } - fields { - identifier { - name: "T" - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - tuple_literal { - fields { - call { - function { - identifier { - name: "f" - } - } - argument { - tuple_literal { - fields { - index { - object { - identifier { - name: "tuple" - } - } - offset { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - fields { - call { - function { - identifier { - name: "f" - } - } - argument { - tuple_literal { - fields { - index { - object { - identifier { - name: "tuple" - } - } - offset { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "inc" - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - identifier { - name: "x" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - index { - object { - call { - function { - identifier { - name: "map" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "inc" - } - } - fields { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - fields { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - offset { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/31d273b01e3ffaa1d70c216f7b47f61ef47f961c b/explorer/fuzzing/fuzzer_corpus/31d273b01e3ffaa1d70c216f7b47f61ef47f961c deleted file mode 100644 index 487be533c0bce..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/31d273b01e3ffaa1d70c216f7b47f61ef47f961c +++ /dev/null @@ -1,128 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "AddInt" - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Auto - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "ret" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - operator { - op: Add - arguments { - identifier { - name: "a" - } - } - arguments { - identifier { - name: "b" - } - } - } - } - is_returned: true - } - } - statements { - return_var_statement { - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "AddInt" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/31dac04fcde41a12dd5ea5286982cd742cea634a b/explorer/fuzzing/fuzzer_corpus/31dac04fcde41a12dd5ea5286982cd742cea634a deleted file mode 100644 index 0c4da41733396..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/31dac04fcde41a12dd5ea5286982cd742cea634a +++ /dev/null @@ -1,694 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Vector" - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - identifier { - name: "Scalar" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Point" - } - } - interface { - call { - function { - identifier { - name: "Vector" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 0 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Mul - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "v" - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Mul - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "v" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "AddAndScaleGeneric" - } - deduced_parameters { - name: "T" - type { - type_type_literal { - } - } - } - deduced_parameters { - name: "U" - type { - call { - function { - identifier { - name: "Vector" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "U" - } - } - } - } - } - } - fields { - binding_pattern { - name: "s" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "U" - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Scale" - object { - call { - function { - simple_member_access { - field: "Add" - object { - identifier { - name: "a" - } - } - } - } - argument { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "Zero" - object { - identifier { - name: "U" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "s" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 2 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - call { - function { - identifier { - name: "AddAndScaleGeneric" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "a" - } - } - fields { - int_literal { - value: 5 - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "p" - } - } - } - } - arguments { - int_literal { - value: 10 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/339a393ea3396484ed446474dd1297941d73bd02 b/explorer/fuzzing/fuzzer_corpus/339a393ea3396484ed446474dd1297941d73bd02 deleted file mode 100644 index 169c2d4e77339..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/339a393ea3396484ed446474dd1297941d73bd02 +++ /dev/null @@ -1,341 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "A" - } - members { - let { - pattern { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "F1" - } - deduced_parameters { - name: "T" - type { - where { - base { - identifier { - name: "A" - } - } - clauses { - equals { - lhs { - designator { - name: "T" - } - } - rhs { - int_type_literal { - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - simple_member_access { - field: "T" - object { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "F2" - } - deduced_parameters { - name: "U" - type { - where { - base { - identifier { - name: "A" - } - } - clauses { - equals { - lhs { - designator { - name: "T" - } - } - rhs { - int_type_literal { - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - simple_member_access { - field: "T" - object { - identifier { - name: "U" - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "F3" - } - deduced_parameters { - name: "T" - type { - where { - base { - identifier { - name: "A" - } - } - clauses { - equals { - lhs { - designator { - name: "T" - } - } - rhs { - int_type_literal { - } - } - } - } - } - } - } - deduced_parameters { - name: "U" - type { - where { - base { - identifier { - name: "A" - } - } - clauses { - equals { - lhs { - designator { - name: "T" - } - } - rhs { - int_type_literal { - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - simple_member_access { - field: "T" - object { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - simple_member_access { - field: "T" - object { - identifier { - name: "U" - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - int_type_literal { - } - } - interface { - where { - base { - identifier { - name: "A" - } - } - clauses { - equals { - lhs { - designator { - name: "T" - } - } - rhs { - int_type_literal { - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "F3" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/3403e4ac6af4a73b926f2fff3deabeed59700d8b b/explorer/fuzzing/fuzzer_corpus/3403e4ac6af4a73b926f2fff3deabeed59700d8b deleted file mode 100644 index 30094af896865..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/3403e4ac6af4a73b926f2fff3deabeed59700d8b +++ /dev/null @@ -1,44 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - variable { - binding { - name: "a" - type { - auto_pattern { - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/34382e52368a627e3462ebe367a544dc97205e26 b/explorer/fuzzing/fuzzer_corpus/34382e52368a627e3462ebe367a544dc97205e26 deleted file mode 100644 index 6383d99ab62a2..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/34382e52368a627e3462ebe367a544dc97205e26 +++ /dev/null @@ -1,266 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "C" - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - identifier { - name: "C" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Before: {0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "c" - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - compound_member_access { - object { - identifier { - name: "c" - } - } - path { - simple_member_access { - field: "Op" - object { - call { - function { - identifier { - name: "AssignWith" - } - } - argument { - tuple_literal { - fields { - struct_type_literal { - fields { - name: "n" - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Interface: {0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "c" - } - } - } - } - } - } - } - } - } - } - statements { - assign { - lhs { - identifier { - name: "c" - } - } - rhs { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 3 - } - } - } - } - } - op: Plain - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Op: {0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "c" - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/34480b195ed723214661d0a25c0d7f7c3ff667a5 b/explorer/fuzzing/fuzzer_corpus/34480b195ed723214661d0a25c0d7f7c3ff667a5 deleted file mode 100644 index aa5a2ef87bc57..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/34480b195ed723214661d0a25c0d7f7c3ff667a5 +++ /dev/null @@ -1,441 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "strings less: {0}" - } - } - fields { - if_expression { - condition { - operator { - op: Less - arguments { - string_literal { - value: "hello" - } - } - arguments { - string_literal { - value: "world" - } - } - } - } - then_expression { - int_literal { - value: 1 - } - } - else_expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "ints less: {0}" - } - } - fields { - if_expression { - condition { - operator { - op: Less - arguments { - int_literal { - value: 1 - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - then_expression { - int_literal { - value: 1 - } - } - else_expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "strings less eq: {0}" - } - } - fields { - if_expression { - condition { - operator { - op: LessEq - arguments { - string_literal { - value: "hello" - } - } - arguments { - string_literal { - value: "world" - } - } - } - } - then_expression { - int_literal { - value: 1 - } - } - else_expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "ints less eq: {0}" - } - } - fields { - if_expression { - condition { - operator { - op: LessEq - arguments { - int_literal { - value: 1 - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - then_expression { - int_literal { - value: 1 - } - } - else_expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "strings greater: {0}" - } - } - fields { - if_expression { - condition { - operator { - op: Greater - arguments { - string_literal { - value: "hello" - } - } - arguments { - string_literal { - value: "world" - } - } - } - } - then_expression { - int_literal { - value: 1 - } - } - else_expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "ints greater: {0}" - } - } - fields { - if_expression { - condition { - operator { - op: Greater - arguments { - int_literal { - value: 1 - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - then_expression { - int_literal { - value: 1 - } - } - else_expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "strings greater eq: {0}" - } - } - fields { - if_expression { - condition { - operator { - op: GreaterEq - arguments { - string_literal { - value: "hello" - } - } - arguments { - string_literal { - value: "world" - } - } - } - } - then_expression { - int_literal { - value: 1 - } - } - else_expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "ints greater eq: {0}" - } - } - fields { - if_expression { - condition { - operator { - op: GreaterEq - arguments { - int_literal { - value: 1 - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - then_expression { - int_literal { - value: 1 - } - } - else_expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/348cf478cb194626674c53630f655ac2df93d4a4 b/explorer/fuzzing/fuzzer_corpus/348cf478cb194626674c53630f655ac2df93d4a4 deleted file mode 100644 index 2f1f97d96921c..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/348cf478cb194626674c53630f655ac2df93d4a4 +++ /dev/null @@ -1,45 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - alias { - name { - name: "a" - } - target { - identifier { - name: "a" - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/34e2656182b71815bf31aaeee8bc7c7bb84cd252 b/explorer/fuzzing/fuzzer_corpus/34e2656182b71815bf31aaeee8bc7c7bb84cd252 deleted file mode 100644 index 06726086fa14b..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/34e2656182b71815bf31aaeee8bc7c7bb84cd252 +++ /dev/null @@ -1,67 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - auto_pattern { - } - } - } - } - init { - int_literal { - value: 10 - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "x" - } - } - rhs { - int_literal { - value: 0 - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/365c379ec8eddc0153de4df6d8b0147898f78312 b/explorer/fuzzing/fuzzer_corpus/365c379ec8eddc0153de4df6d8b0147898f78312 deleted file mode 100644 index 7fbe7a90cd466..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/365c379ec8eddc0153de4df6d8b0147898f78312 +++ /dev/null @@ -1,114 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "fst" - } - deduced_parameters { - name: "T" - type { - type_type_literal { - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "y" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "fst" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - fields { - bool_literal { - value: true - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/368e52fbe545161fff4fffaaf503cb137aad964c b/explorer/fuzzing/fuzzer_corpus/368e52fbe545161fff4fffaaf503cb137aad964c deleted file mode 100644 index efb71eb41a371..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/368e52fbe545161fff4fffaaf503cb137aad964c +++ /dev/null @@ -1,262 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - function { - name { - name: "Create" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "A" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - } - } - } - } - } - } - } - members { - destructor { - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "DESTRUCTOR A" - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Allocate A" - } - } - } - } - } - } - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "pa" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "A" - } - } - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "New" - object { - identifier { - name: "heap" - } - } - } - } - argument { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "Create" - object { - identifier { - name: "A" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Delete A" - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "Delete" - object { - identifier { - name: "heap" - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "pa" - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Return" - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/374a512a3276eb89afbb9e17cbefa9c5e7a5c661 b/explorer/fuzzing/fuzzer_corpus/374a512a3276eb89afbb9e17cbefa9c5e7a5c661 deleted file mode 100644 index b4b8267110fc9..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/374a512a3276eb89afbb9e17cbefa9c5e7a5c661 +++ /dev/null @@ -1,2810 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - choice { - name { - name: "AB" - } - alternatives { - name: "A" - signature { - } - } - alternatives { - name: "B" - signature { - } - } - } - } - declarations { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "AB" - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - match { - expression { - tuple_literal { - fields { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - clauses { - pattern { - expression_pattern { - expression { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - clauses { - pattern { - expression_pattern { - expression { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 3 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 4 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 5 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 6 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 7 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 8 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 9 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 10 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 11 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 12 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 13 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 14 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 15 - } - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/375e126dcbeab71b2f4440a50fdb08b48fd8a2ba b/explorer/fuzzing/fuzzer_corpus/375e126dcbeab71b2f4440a50fdb08b48fd8a2ba deleted file mode 100644 index ba202acfc445f..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/375e126dcbeab71b2f4440a50fdb08b48fd8a2ba +++ /dev/null @@ -1,1432 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "ManyTypes" - } - members { - let { - pattern { - generic_binding { - name: "T0" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "T1" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "T2" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "T3" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "T4" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "T5" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "T6" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "T7" - type { - type_type_literal { - } - } - } - } - } - } - } - } - declarations { - interface { - name { - name: "Splat" - } - members { - function { - name { - name: "Op" - } - param_pattern { - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - identifier { - name: "Splat" - } - } - members { - function { - name { - name: "Op" - } - param_pattern { - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "n" - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - tuple_literal { - fields { - identifier { - name: "T" - } - } - fields { - identifier { - name: "T" - } - } - fields { - identifier { - name: "T" - } - } - } - } - interface { - identifier { - name: "Splat" - } - } - members { - function { - name { - name: "Op" - } - param_pattern { - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Op" - object { - identifier { - name: "T" - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "n" - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - tuple_literal { - fields { - identifier { - name: "v" - } - } - fields { - identifier { - name: "v" - } - } - fields { - identifier { - name: "v" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "CallSplat" - } - param_pattern { - fields { - generic_binding { - name: "T" - type { - identifier { - name: "Splat" - } - } - } - } - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Op" - object { - identifier { - name: "T" - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "n" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "DoSplat" - } - param_pattern { - fields { - generic_binding { - name: "M" - type { - where { - base { - identifier { - name: "ManyTypes" - } - } - clauses { - rewrite { - member_name: "T0" - replacement { - tuple_literal { - fields { - designator { - name: "T1" - } - } - fields { - designator { - name: "T1" - } - } - fields { - designator { - name: "T1" - } - } - } - } - } - } - clauses { - rewrite { - member_name: "T1" - replacement { - tuple_literal { - fields { - designator { - name: "T2" - } - } - fields { - designator { - name: "T2" - } - } - fields { - designator { - name: "T2" - } - } - } - } - } - } - clauses { - rewrite { - member_name: "T2" - replacement { - tuple_literal { - fields { - designator { - name: "T3" - } - } - fields { - designator { - name: "T3" - } - } - fields { - designator { - name: "T3" - } - } - } - } - } - } - clauses { - rewrite { - member_name: "T3" - replacement { - tuple_literal { - fields { - designator { - name: "T4" - } - } - fields { - designator { - name: "T4" - } - } - fields { - designator { - name: "T4" - } - } - } - } - } - } - clauses { - rewrite { - member_name: "T4" - replacement { - tuple_literal { - fields { - designator { - name: "T5" - } - } - fields { - designator { - name: "T5" - } - } - fields { - designator { - name: "T5" - } - } - } - } - } - } - clauses { - rewrite { - member_name: "T5" - replacement { - tuple_literal { - fields { - designator { - name: "T6" - } - } - fields { - designator { - name: "T6" - } - } - fields { - designator { - name: "T6" - } - } - } - } - } - } - clauses { - rewrite { - member_name: "T6" - replacement { - tuple_literal { - fields { - designator { - name: "T7" - } - } - fields { - designator { - name: "T7" - } - } - fields { - designator { - name: "T7" - } - } - } - } - } - } - clauses { - rewrite { - member_name: "T7" - replacement { - int_type_literal { - } - } - } - } - } - } - } - } - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - simple_member_access { - field: "T7" - object { - identifier { - name: "M" - } - } - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - simple_member_access { - field: "T0" - object { - identifier { - name: "M" - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "CallSplat" - } - } - argument { - tuple_literal { - fields { - simple_member_access { - field: "T0" - object { - identifier { - name: "M" - } - } - } - } - fields { - identifier { - name: "n" - } - } - } - } - } - } - } - } - } - } - } - declarations { - interface { - name { - name: "First" - } - members { - function { - name { - name: "Op" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - identifier { - name: "First" - } - } - members { - function { - name { - name: "Op" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - tuple_literal { - fields { - identifier { - name: "T" - } - } - fields { - identifier { - name: "T" - } - } - fields { - identifier { - name: "T" - } - } - } - } - interface { - identifier { - name: "First" - } - } - members { - function { - name { - name: "Op" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - } - init { - identifier { - name: "self" - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Op" - object { - identifier { - name: "a" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "DoFirst" - } - param_pattern { - fields { - generic_binding { - name: "M" - type { - where { - base { - identifier { - name: "ManyTypes" - } - } - clauses { - rewrite { - member_name: "T7" - replacement { - int_type_literal { - } - } - } - } - clauses { - rewrite { - member_name: "T6" - replacement { - tuple_literal { - fields { - designator { - name: "T7" - } - } - fields { - designator { - name: "T7" - } - } - fields { - designator { - name: "T7" - } - } - } - } - } - } - clauses { - rewrite { - member_name: "T5" - replacement { - tuple_literal { - fields { - designator { - name: "T6" - } - } - fields { - designator { - name: "T6" - } - } - fields { - designator { - name: "T6" - } - } - } - } - } - } - clauses { - rewrite { - member_name: "T4" - replacement { - tuple_literal { - fields { - designator { - name: "T5" - } - } - fields { - designator { - name: "T5" - } - } - fields { - designator { - name: "T5" - } - } - } - } - } - } - clauses { - rewrite { - member_name: "T3" - replacement { - tuple_literal { - fields { - designator { - name: "T4" - } - } - fields { - designator { - name: "T4" - } - } - fields { - designator { - name: "T4" - } - } - } - } - } - } - clauses { - rewrite { - member_name: "T2" - replacement { - tuple_literal { - fields { - designator { - name: "T3" - } - } - fields { - designator { - name: "T3" - } - } - fields { - designator { - name: "T3" - } - } - } - } - } - } - clauses { - rewrite { - member_name: "T1" - replacement { - tuple_literal { - fields { - designator { - name: "T2" - } - } - fields { - designator { - name: "T2" - } - } - fields { - designator { - name: "T2" - } - } - } - } - } - } - clauses { - rewrite { - member_name: "T0" - replacement { - tuple_literal { - fields { - designator { - name: "T1" - } - } - fields { - designator { - name: "T1" - } - } - fields { - designator { - name: "T1" - } - } - } - } - } - } - } - } - } - } - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - simple_member_access { - field: "T0" - object { - identifier { - name: "M" - } - } - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - simple_member_access { - field: "T7" - object { - identifier { - name: "M" - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - compound_member_access { - object { - identifier { - name: "v" - } - } - path { - simple_member_access { - field: "Op" - object { - identifier { - name: "First" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "C" - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - where { - base { - identifier { - name: "ManyTypes" - } - } - clauses { - rewrite { - member_name: "T3" - replacement { - tuple_literal { - fields { - designator { - name: "T4" - } - } - fields { - designator { - name: "T4" - } - } - fields { - designator { - name: "T4" - } - } - } - } - } - } - clauses { - rewrite { - member_name: "T1" - replacement { - tuple_literal { - fields { - designator { - name: "T2" - } - } - fields { - designator { - name: "T2" - } - } - fields { - designator { - name: "T2" - } - } - } - } - } - } - clauses { - rewrite { - member_name: "T4" - replacement { - tuple_literal { - fields { - designator { - name: "T5" - } - } - fields { - designator { - name: "T5" - } - } - fields { - designator { - name: "T5" - } - } - } - } - } - } - clauses { - rewrite { - member_name: "T6" - replacement { - tuple_literal { - fields { - designator { - name: "T7" - } - } - fields { - designator { - name: "T7" - } - } - fields { - designator { - name: "T7" - } - } - } - } - } - } - clauses { - rewrite { - member_name: "T2" - replacement { - tuple_literal { - fields { - designator { - name: "T3" - } - } - fields { - designator { - name: "T3" - } - } - fields { - designator { - name: "T3" - } - } - } - } - } - } - clauses { - rewrite { - member_name: "T7" - replacement { - int_type_literal { - } - } - } - } - clauses { - rewrite { - member_name: "T5" - replacement { - tuple_literal { - fields { - designator { - name: "T6" - } - } - fields { - designator { - name: "T6" - } - } - fields { - designator { - name: "T6" - } - } - } - } - } - } - clauses { - rewrite { - member_name: "T0" - replacement { - tuple_literal { - fields { - designator { - name: "T1" - } - } - fields { - designator { - name: "T1" - } - } - fields { - designator { - name: "T1" - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "DoFirst" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "C" - } - } - fields { - call { - function { - identifier { - name: "DoSplat" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "C" - } - } - fields { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/379173df9718b1accd00aacde04ed3abebd0d534 b/explorer/fuzzing/fuzzer_corpus/379173df9718b1accd00aacde04ed3abebd0d534 deleted file mode 100644 index 2775f22809225..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/379173df9718b1accd00aacde04ed3abebd0d534 +++ /dev/null @@ -1,219 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Holder" - } - members { - function { - name { - name: "Get" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "N" - } - } - } - } - } - } - } - type_params { - fields { - generic_binding { - name: "N" - type { - int_type_literal { - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "IntLike" - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - call { - function { - identifier { - name: "ImplicitAs" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "Convert" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 4 - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Make" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "IntLike" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Get" - object { - call { - function { - identifier { - name: "Holder" - } - } - argument { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "Make" - object { - identifier { - name: "IntLike" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/381987301dac8b9aa96f181aa48c844fae12d16b b/explorer/fuzzing/fuzzer_corpus/381987301dac8b9aa96f181aa48c844fae12d16b deleted file mode 100644 index 76c44a53352c4..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/381987301dac8b9aa96f181aa48c844fae12d16b +++ /dev/null @@ -1,69 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - statements { - return_expression_statement { - is_omitted_expression: true - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/381bda5b34a257bd1e4c102676375db80d41b010 b/explorer/fuzzing/fuzzer_corpus/381bda5b34a257bd1e4c102676375db80d41b010 deleted file mode 100644 index 95f4e378888c6..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/381bda5b34a257bd1e4c102676375db80d41b010 +++ /dev/null @@ -1,134 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "add1" - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - identifier { - name: "x" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "f" - type { - expression_pattern { - expression { - function_type { - return_type { - int_type_literal { - } - } - parameter { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - init { - identifier { - name: "add1" - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "f" - } - } - argument { - tuple_literal { - fields { - operator { - op: Neg - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/38a97722170eec0621cab773ae396a26aaa16f4e b/explorer/fuzzing/fuzzer_corpus/38a97722170eec0621cab773ae396a26aaa16f4e deleted file mode 100644 index 51b6ddadd76d2..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/38a97722170eec0621cab773ae396a26aaa16f4e +++ /dev/null @@ -1,93 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - auto_pattern { - } - } - } - } - init { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - fields { - int_literal { - value: 1 - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "index" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - index { - object { - identifier { - name: "x" - } - } - offset { - identifier { - name: "index" - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/397ce3c37880fbb3afbd71b22c813e5c683894aa b/explorer/fuzzing/fuzzer_corpus/397ce3c37880fbb3afbd71b22c813e5c683894aa deleted file mode 100644 index 3de2fa40c7c40..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/397ce3c37880fbb3afbd71b22c813e5c683894aa +++ /dev/null @@ -1,87 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - int_literal { - value: 0 - } - } - arguments { - int_literal { - value: 0 - } - } - } - } - then_block { - statements { - assign { - lhs { - identifier { - name: "x" - } - } - rhs { - int_literal { - value: 0 - } - } - op: Plain - } - } - } - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/39a40fceaecdc65b70e7ce7b7d8a24d51dbf56a4 b/explorer/fuzzing/fuzzer_corpus/39a40fceaecdc65b70e7ce7b7d8a24d51dbf56a4 deleted file mode 100644 index b5a14e239eb7e..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/39a40fceaecdc65b70e7ce7b7d8a24d51dbf56a4 +++ /dev/null @@ -1,151 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point3D" - } - members { - variable { - binding { - name: "z" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - identifier { - name: "Point3D" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "base" - expression { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 1 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 2 - } - } - } - } - } - } - fields { - name: "z" - expression { - int_literal { - value: 3 - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - simple_member_access { - field: "a" - object { - identifier { - name: "p" - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/3a9d268c66c4487a73972c46d4f0c267eb91817c b/explorer/fuzzing/fuzzer_corpus/3a9d268c66c4487a73972c46d4f0c267eb91817c deleted file mode 100644 index 1c231a9c7413e..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/3a9d268c66c4487a73972c46d4f0c267eb91817c +++ /dev/null @@ -1,714 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Data" - } - members { - function { - name { - name: "Make" - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Data" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "data" - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - } - } - } - members { - destructor { - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Destroying {0}" - } - } - fields { - simple_member_access { - field: "data" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "data" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "A" - } - members { - function { - name { - name: "Make" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "A" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "a1" - expression { - call { - function { - simple_member_access { - field: "Make" - object { - identifier { - name: "Data" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 8 - } - } - } - } - } - } - } - fields { - name: "a2" - expression { - call { - function { - simple_member_access { - field: "Make" - object { - identifier { - name: "Data" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 7 - } - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - destructor { - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Destroying 6 (A)" - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "a1" - type { - expression_pattern { - expression { - identifier { - name: "Data" - } - } - } - } - } - } - } - members { - variable { - binding { - name: "a2" - type { - expression_pattern { - expression { - identifier { - name: "Data" - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "B" - } - members { - function { - name { - name: "Make" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "B" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "base" - expression { - call { - function { - simple_member_access { - field: "Make" - object { - identifier { - name: "A" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - fields { - name: "b1" - expression { - call { - function { - simple_member_access { - field: "Make" - object { - identifier { - name: "Data" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 5 - } - } - } - } - } - } - } - fields { - name: "b2" - expression { - call { - function { - simple_member_access { - field: "Make" - object { - identifier { - name: "Data" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 4 - } - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - destructor { - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Destroying 3 (B)" - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "b1" - type { - expression_pattern { - expression { - identifier { - name: "Data" - } - } - } - } - } - } - } - members { - variable { - binding { - name: "b2" - type { - expression_pattern { - expression { - identifier { - name: "Data" - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "C" - } - members { - function { - name { - name: "Make" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "C" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "base" - expression { - call { - function { - simple_member_access { - field: "Make" - object { - identifier { - name: "B" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - fields { - name: "c1" - expression { - call { - function { - simple_member_access { - field: "Make" - object { - identifier { - name: "Data" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 2 - } - } - } - } - } - } - } - fields { - name: "c2" - expression { - call { - function { - simple_member_access { - field: "Make" - object { - identifier { - name: "Data" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - destructor { - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Destroying 0 (C)" - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "c1" - type { - expression_pattern { - expression { - identifier { - name: "Data" - } - } - } - } - } - } - } - members { - variable { - binding { - name: "c2" - type { - expression_pattern { - expression { - identifier { - name: "Data" - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - identifier { - name: "C" - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Make" - object { - identifier { - name: "C" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/3ac0d6c29b482f0e76b42de1534d5bb8f6291d30 b/explorer/fuzzing/fuzzer_corpus/3ac0d6c29b482f0e76b42de1534d5bb8f6291d30 deleted file mode 100644 index 1f8102a8f1283..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/3ac0d6c29b482f0e76b42de1534d5bb8f6291d30 +++ /dev/null @@ -1,293 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - mixin { - name { - name: "M1" - } - members { - function { - name { - name: "Scale10" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Mul - arguments { - identifier { - name: "x" - } - } - arguments { - int_literal { - value: 10 - } - } - } - } - } - } - } - } - } - self { - name: "Self" - type { - type_type_literal { - } - } - } - } - } - declarations { - mixin { - name { - name: "M2" - } - members { - mix { - mixin { - identifier { - name: "M1" - } - } - } - } - members { - function { - name { - name: "Square" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Mul - arguments { - identifier { - name: "x" - } - } - arguments { - identifier { - name: "x" - } - } - } - } - } - } - } - } - } - self { - name: "Self" - type { - type_type_literal { - } - } - } - } - } - declarations { - class_declaration { - name { - name: "C" - } - members { - mix { - mixin { - identifier { - name: "M2" - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - identifier { - name: "C" - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - operator { - op: Sub - arguments { - call { - function { - simple_member_access { - field: "Square" - object { - identifier { - name: "c" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 11 - } - } - } - } - } - } - arguments { - call { - function { - simple_member_access { - field: "Scale10" - object { - identifier { - name: "c" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 10 - } - } - } - } - } - } - } - } - arguments { - int_literal { - value: 21 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/3bf47992175e99810f5143f78815d8f7ffc22adb b/explorer/fuzzing/fuzzer_corpus/3bf47992175e99810f5143f78815d8f7ffc22adb deleted file mode 100644 index f945729e27274..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/3bf47992175e99810f5143f78815d8f7ffc22adb +++ /dev/null @@ -1,81 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - identifier { - name: "x" - } - } - arguments { - int_literal { - value: 0 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/3ca6afe2242667a99658abe00051a19865e74007 b/explorer/fuzzing/fuzzer_corpus/3ca6afe2242667a99658abe00051a19865e74007 deleted file mode 100644 index 295a8580122e5..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/3ca6afe2242667a99658abe00051a19865e74007 +++ /dev/null @@ -1,362 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - choice { - name { - name: "Opt" - } - alternatives { - name: "None" - signature { - } - } - alternatives { - name: "Some" - signature { - fields { - int_type_literal { - } - } - } - } - } - } - declarations { - function { - name { - name: "A" - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "Opt" - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Opt" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - match { - expression { - tuple_literal { - fields { - identifier { - name: "a" - } - } - fields { - identifier { - name: "b" - } - } - } - } - clauses { - pattern { - expression_pattern { - expression { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "None" - object { - identifier { - name: "Opt" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "None" - object { - identifier { - name: "Opt" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - alternative_pattern { - choice_type { - identifier { - name: "Opt" - } - } - alternative_name: "Some" - arguments { - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - auto_pattern { - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - identifier { - name: "n" - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - auto_pattern { - } - } - } - } - fields { - alternative_pattern { - choice_type { - identifier { - name: "Opt" - } - } - alternative_name: "Some" - arguments { - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - identifier { - name: "n" - } - } - } - } - } - } - } - clauses { - statement { - block { - statements { - return_expression_statement { - expression { - operator { - op: Neg - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - is_default: true - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "A" - } - } - argument { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "None" - object { - identifier { - name: "Opt" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "Some" - object { - identifier { - name: "Opt" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/3cae75fc41ad5e693acc6c2235d28c86630d48a8 b/explorer/fuzzing/fuzzer_corpus/3cae75fc41ad5e693acc6c2235d28c86630d48a8 deleted file mode 100644 index 52039adb52923..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/3cae75fc41ad5e693acc6c2235d28c86630d48a8 +++ /dev/null @@ -1,83 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "FrobWith" - } - } - } - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "T" - type { - call { - function { - identifier { - name: "FrobWith" - } - } - argument { - tuple_literal { - fields { - designator { - name: "Self" - } - } - } - } - } - } - } - deduced_parameters { - name: "U" - type { - designator { - name: "Self" - } - } - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/3cf181a4acde0cb7b2cbcf1f4bda95ca1cabd94b b/explorer/fuzzing/fuzzer_corpus/3cf181a4acde0cb7b2cbcf1f4bda95ca1cabd94b deleted file mode 100644 index a3cc598433130..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/3cf181a4acde0cb7b2cbcf1f4bda95ca1cabd94b +++ /dev/null @@ -1,248 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "TypeLike" - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - call { - function { - identifier { - name: "ImplicitAs" - } - } - argument { - tuple_literal { - fields { - type_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "Convert" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - type_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Make" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - call { - function { - simple_member_access { - field: "Make" - object { - identifier { - name: "TypeLike" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - struct_type_literal { - fields { - name: "a" - expression { - call { - function { - simple_member_access { - field: "Make" - object { - identifier { - name: "TypeLike" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - fields { - name: "b" - expression { - call { - function { - simple_member_access { - field: "Make" - object { - identifier { - name: "TypeLike" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "a" - expression { - int_literal { - value: 1 - } - } - } - fields { - name: "b" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "a" - object { - identifier { - name: "x" - } - } - } - } - arguments { - simple_member_access { - field: "b" - object { - identifier { - name: "x" - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/3dce35e13b36c3f9ea7657ac00237fd3ad8d42c7 b/explorer/fuzzing/fuzzer_corpus/3dce35e13b36c3f9ea7657ac00237fd3ad8d42c7 deleted file mode 100644 index 2557d9a0a733f..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/3dce35e13b36c3f9ea7657ac00237fd3ad8d42c7 +++ /dev/null @@ -1,126 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "C" - } - members { - function { - name { - name: "Foo" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - } - } - declarations { - class_declaration { - name { - name: "D" - } - members { - function { - name { - name: "Foo" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - identifier { - name: "C" - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/3dd42e4c74a7d422abf4795e78822f74acd02bbc b/explorer/fuzzing/fuzzer_corpus/3dd42e4c74a7d422abf4795e78822f74acd02bbc deleted file mode 100644 index f0bc7c075dbd8..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/3dd42e4c74a7d422abf4795e78822f74acd02bbc +++ /dev/null @@ -1,166 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point3D" - } - members { - variable { - binding { - name: "z" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - identifier { - name: "Point3D" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "base" - expression { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 1 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 2 - } - } - } - } - } - } - fields { - name: "z" - expression { - int_literal { - value: 3 - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - simple_member_access { - field: "a" - object { - identifier { - name: "p" - } - } - } - } - rhs { - int_literal { - value: 0 - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/3e0db6c59759b3afcfef5e8ed5766dc316ff6d5f b/explorer/fuzzing/fuzzer_corpus/3e0db6c59759b3afcfef5e8ed5766dc316ff6d5f deleted file mode 100644 index b69e0465baa62..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/3e0db6c59759b3afcfef5e8ed5766dc316ff6d5f +++ /dev/null @@ -1,89 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "FrobWith" - } - } - } - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "T" - type { - call { - function { - identifier { - name: "FrobWith" - } - } - argument { - tuple_literal { - fields { - designator { - name: "Self" - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "U" - type { - expression_pattern { - expression { - designator { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/3e637ff7352c6663376f6e223ec1b9cfd164e7b8 b/explorer/fuzzing/fuzzer_corpus/3e637ff7352c6663376f6e223ec1b9cfd164e7b8 deleted file mode 100644 index 52770de785063..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/3e637ff7352c6663376f6e223ec1b9cfd164e7b8 +++ /dev/null @@ -1,1781 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "ListElement" - } - members { - function { - name { - name: "Create" - } - param_pattern { - fields { - binding_pattern { - name: "value" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "ListElement" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "element" - expression { - call { - function { - simple_member_access { - field: "Create" - object { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "value" - } - } - } - } - } - } - } - fields { - name: "next" - expression { - call { - function { - simple_member_access { - field: "CreateEmpty" - object { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - operator { - op: Ptr - arguments { - identifier { - name: "ListElement" - } - } - } - } - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "set" - } - self_pattern { - addr_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "Self" - } - } - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "value" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - operator { - op: Ptr - arguments { - identifier { - name: "ListElement" - } - } - } - } - } - } - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - statements { - assign { - lhs { - simple_member_access { - field: "next" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - rhs { - identifier { - name: "value" - } - } - op: Plain - } - } - } - } - } - members { - variable { - binding { - name: "element" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "next" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - operator { - op: Ptr - arguments { - identifier { - name: "ListElement" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "List" - } - members { - function { - name { - name: "Create" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "List" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "next" - expression { - call { - function { - simple_member_access { - field: "CreateEmpty" - object { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - operator { - op: Ptr - arguments { - identifier { - name: "ListElement" - } - } - } - } - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "insert" - } - self_pattern { - addr_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "Self" - } - } - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "value" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - statements { - if_statement { - condition { - operator { - op: Not - arguments { - call { - function { - simple_member_access { - field: "HasValue" - object { - simple_member_access { - field: "next" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - then_block { - statements { - assign { - lhs { - simple_member_access { - field: "next" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - rhs { - call { - function { - simple_member_access { - field: "Create" - object { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - operator { - op: Ptr - arguments { - identifier { - name: "ListElement" - } - } - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "New" - object { - identifier { - name: "heap" - } - } - } - } - argument { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "Create" - object { - identifier { - name: "ListElement" - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "value" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - op: Plain - } - } - statements { - return_expression_statement { - is_omitted_expression: true - } - } - } - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "iter" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - operator { - op: Ptr - arguments { - identifier { - name: "ListElement" - } - } - } - } - } - } - } - } - } - } - } - } - init { - simple_member_access { - field: "next" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "node" - type { - auto_pattern { - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Get" - object { - identifier { - name: "iter" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - while_statement { - condition { - call { - function { - simple_member_access { - field: "HasValue" - object { - simple_member_access { - field: "next" - object { - operator { - op: Deref - arguments { - identifier { - name: "node" - } - } - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - body { - statements { - assign { - lhs { - identifier { - name: "iter" - } - } - rhs { - simple_member_access { - field: "next" - object { - operator { - op: Deref - arguments { - identifier { - name: "node" - } - } - } - } - } - } - op: Plain - } - } - statements { - assign { - lhs { - identifier { - name: "node" - } - } - rhs { - call { - function { - simple_member_access { - field: "Get" - object { - identifier { - name: "iter" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - op: Plain - } - } - } - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "ListElement" - } - } - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Get" - object { - identifier { - name: "iter" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - operator { - op: Ptr - arguments { - identifier { - name: "ListElement" - } - } - } - } - } - } - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Create" - object { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - operator { - op: Ptr - arguments { - identifier { - name: "ListElement" - } - } - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "New" - object { - identifier { - name: "heap" - } - } - } - } - argument { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "Create" - object { - identifier { - name: "ListElement" - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "value" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "set" - object { - operator { - op: Deref - arguments { - identifier { - name: "v" - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "x" - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "print" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "iter" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - operator { - op: Ptr - arguments { - identifier { - name: "ListElement" - } - } - } - } - } - } - } - } - } - } - } - } - init { - simple_member_access { - field: "next" - object { - identifier { - name: "self" - } - } - } - } - is_returned: false - } - } - statements { - while_statement { - condition { - call { - function { - simple_member_access { - field: "HasValue" - object { - identifier { - name: "iter" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "node" - type { - auto_pattern { - } - } - } - } - init { - operator { - op: Deref - arguments { - call { - function { - simple_member_access { - field: "Get" - object { - identifier { - name: "iter" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - call { - function { - simple_member_access { - field: "Get" - object { - simple_member_access { - field: "element" - object { - identifier { - name: "node" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "node_ptr" - type { - auto_pattern { - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Get" - object { - identifier { - name: "iter" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "iter" - } - } - rhs { - simple_member_access { - field: "next" - object { - identifier { - name: "node" - } - } - } - } - op: Plain - } - } - } - } - } - } - } - } - members { - function { - name { - name: "clean" - } - self_pattern { - addr_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "Self" - } - } - } - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "head" - type { - auto_pattern { - } - } - } - } - init { - simple_member_access { - field: "next" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - is_returned: false - } - } - statements { - while_statement { - condition { - call { - function { - simple_member_access { - field: "HasValue" - object { - identifier { - name: "head" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "tmp" - type { - auto_pattern { - } - } - } - } - init { - identifier { - name: "head" - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "head" - } - } - rhs { - simple_member_access { - field: "next" - object { - operator { - op: Deref - arguments { - call { - function { - simple_member_access { - field: "Get" - object { - identifier { - name: "head" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - op: Plain - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "Delete" - object { - identifier { - name: "heap" - } - } - } - } - argument { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "Get" - object { - identifier { - name: "tmp" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - } - } - } - statements { - assign { - lhs { - simple_member_access { - field: "next" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - rhs { - call { - function { - simple_member_access { - field: "CreateEmpty" - object { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - operator { - op: Ptr - arguments { - identifier { - name: "ListElement" - } - } - } - } - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - op: Plain - } - } - } - } - } - members { - variable { - binding { - name: "next" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - operator { - op: Ptr - arguments { - identifier { - name: "ListElement" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "list" - type { - expression_pattern { - expression { - identifier { - name: "List" - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Create" - object { - identifier { - name: "List" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "insert" - object { - identifier { - name: "list" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "insert" - object { - identifier { - name: "list" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "insert" - object { - identifier { - name: "list" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 3 - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "insert" - object { - identifier { - name: "list" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 4 - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "print" - object { - identifier { - name: "list" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "clean" - object { - identifier { - name: "list" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "print" - object { - identifier { - name: "list" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "insert" - object { - identifier { - name: "list" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "insert" - object { - identifier { - name: "list" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "insert" - object { - identifier { - name: "list" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 3 - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "insert" - object { - identifier { - name: "list" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 4 - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "print" - object { - identifier { - name: "list" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/3ecfcb05c11917a4b4b669bf139000009610d631 b/explorer/fuzzing/fuzzer_corpus/3ecfcb05c11917a4b4b669bf139000009610d631 deleted file mode 100644 index c95f1114f28ea..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/3ecfcb05c11917a4b4b669bf139000009610d631 +++ /dev/null @@ -1,136 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - variable { - binding { - name: "p" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - initializer { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 1 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - operator { - op: Sub - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "p" - } - } - } - } - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "p" - } - } - } - } - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/3f41751cfdcd69f6896ea1ffd616d2f49c7d4471 b/explorer/fuzzing/fuzzer_corpus/3f41751cfdcd69f6896ea1ffd616d2f49c7d4471 deleted file mode 100644 index 74b571c83d093..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/3f41751cfdcd69f6896ea1ffd616d2f49c7d4471 +++ /dev/null @@ -1,1124 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Vector" - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point1" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Point1" - } - } - interface { - identifier { - name: "Vector" - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Point1" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Point1" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Point1" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Point1" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Point1" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Mul - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "v" - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Mul - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "v" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point2" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Point2" - } - } - interface { - identifier { - name: "Vector" - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Point2" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Point2" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Point2" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Add - arguments { - operator { - op: Add - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "b" - } - } - } - } - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Add - arguments { - operator { - op: Add - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "b" - } - } - } - } - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Point2" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Point2" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Mul - arguments { - operator { - op: Mul - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "v" - } - } - } - } - arguments { - int_literal { - value: 2 - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Mul - arguments { - operator { - op: Mul - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "v" - } - } - } - } - arguments { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "ScaleGeneric" - } - deduced_parameters { - name: "U" - type { - identifier { - name: "Vector" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - identifier { - name: "U" - } - } - } - } - } - } - fields { - binding_pattern { - name: "s" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "U" - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Scale" - object { - identifier { - name: "c" - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "s" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "AddAndScaleGeneric" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "Vector" - } - } - } - deduced_parameters { - name: "V" - type { - identifier { - name: "Vector" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "V" - } - } - } - } - } - } - fields { - binding_pattern { - name: "s" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - tuple_literal { - fields { - identifier { - name: "T" - } - } - fields { - identifier { - name: "V" - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - tuple_literal { - fields { - call { - function { - identifier { - name: "ScaleGeneric" - } - } - argument { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "Add" - object { - identifier { - name: "a" - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "a" - } - } - } - } - } - } - fields { - identifier { - name: "s" - } - } - } - } - } - } - fields { - call { - function { - identifier { - name: "ScaleGeneric" - } - } - argument { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "Add" - object { - identifier { - name: "b" - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "b" - } - } - } - } - } - } - fields { - identifier { - name: "s" - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "Point1" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 1 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Point2" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 2 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 3 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - identifier { - name: "Point1" - } - } - } - } - } - } - fields { - binding_pattern { - name: "q" - type { - expression_pattern { - expression { - identifier { - name: "Point2" - } - } - } - } - } - } - } - } - init { - call { - function { - identifier { - name: "AddAndScaleGeneric" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "a" - } - } - fields { - identifier { - name: "b" - } - } - fields { - int_literal { - value: 5 - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - operator { - op: Sub - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "q" - } - } - } - } - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "p" - } - } - } - } - } - } - arguments { - int_literal { - value: 40 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/3f88413ff6071524f5b527a5cabcbda51d8266b7 b/explorer/fuzzing/fuzzer_corpus/3f88413ff6071524f5b527a5cabcbda51d8266b7 deleted file mode 100644 index e718c2d394107..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/3f88413ff6071524f5b527a5cabcbda51d8266b7 +++ /dev/null @@ -1,683 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Vector" - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "Point" - } - } - interface { - identifier { - name: "Vector" - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Mul - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "v" - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Mul - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "v" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "AddAndScaleGeneric" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "Vector" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "s" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "m" - type { - auto_pattern { - } - } - } - } - init { - simple_member_access { - field: "Add" - object { - identifier { - name: "a" - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "n" - type { - auto_pattern { - } - } - } - } - init { - simple_member_access { - field: "Scale" - object { - call { - function { - identifier { - name: "m" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "b" - } - } - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "n" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "s" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 1 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 4 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 2 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 3 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - call { - function { - identifier { - name: "AddAndScaleGeneric" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "a" - } - } - fields { - identifier { - name: "b" - } - } - fields { - int_literal { - value: 5 - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "p" - } - } - } - } - arguments { - int_literal { - value: 15 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/400f23d9237b6a8fd7977731dd46469197cd6814 b/explorer/fuzzing/fuzzer_corpus/400f23d9237b6a8fd7977731dd46469197cd6814 deleted file mode 100644 index af12144b010a5..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/400f23d9237b6a8fd7977731dd46469197cd6814 +++ /dev/null @@ -1,175 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - mixin { - name { - name: "M" - } - members { - function { - name { - name: "F" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - self { - name: "Self" - type { - type_type_literal { - } - } - } - } - } - declarations { - class_declaration { - name { - name: "C" - } - members { - function { - name { - name: "F" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - members { - mix { - mixin { - identifier { - name: "M" - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/407e3821284278185dec9cc60a0f8222519a091c b/explorer/fuzzing/fuzzer_corpus/407e3821284278185dec9cc60a0f8222519a091c deleted file mode 100644 index 94e87c5e9e4cd..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/407e3821284278185dec9cc60a0f8222519a091c +++ /dev/null @@ -1,515 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - destructor { - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "DESTRUCTOR A {0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "i" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - while_statement { - condition { - bool_literal { - value: true - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 4 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 3 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - bool_literal { - value: true - } - } - then_block { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - break_statement { - } - } - } - } - } - } - } - } - statements { - assign { - lhs { - identifier { - name: "i" - } - } - rhs { - int_literal { - value: 0 - } - } - op: Plain - } - } - statements { - while_statement { - condition { - operator { - op: Less - arguments { - identifier { - name: "i" - } - } - arguments { - int_literal { - value: 2 - } - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 8 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 7 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 6 - } - } - } - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - identifier { - name: "i" - } - } - arguments { - int_literal { - value: 0 - } - } - } - } - then_block { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 5 - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "i" - } - } - rhs { - operator { - op: Add - arguments { - identifier { - name: "i" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - op: Plain - } - } - statements { - continue_statement { - } - } - } - } - } - statements { - assign { - lhs { - identifier { - name: "i" - } - } - rhs { - operator { - op: Add - arguments { - identifier { - name: "i" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - op: Plain - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/408035d700db7dfd077e3d2dc58c3a20c2a52a5a b/explorer/fuzzing/fuzzer_corpus/408035d700db7dfd077e3d2dc58c3a20c2a52a5a deleted file mode 100644 index 34c66508cfa69..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/408035d700db7dfd077e3d2dc58c3a20c2a52a5a +++ /dev/null @@ -1,420 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "C" - } - members { - variable { - binding { - name: "a" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - function { - name { - name: "Foo" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - members { - function { - name { - name: "Bar" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "D" - } - members { - variable { - binding { - name: "b" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - function { - name { - name: "Foo" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - members { - function { - name { - name: "Bar" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "d" - type { - expression_pattern { - expression { - identifier { - name: "D" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "base" - expression { - struct_literal { - fields { - name: "a" - expression { - int_literal { - value: 1 - } - } - } - } - } - } - fields { - name: "b" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "C" - } - } - } - } - } - } - } - } - init { - operator { - op: AddressOf - arguments { - identifier { - name: "d" - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "(*c).a: {0}" - } - } - fields { - simple_member_access { - field: "a" - object { - operator { - op: Deref - arguments { - identifier { - name: "c" - } - } - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "(*c).Foo(): {0}" - } - } - fields { - call { - function { - simple_member_access { - field: "Foo" - object { - operator { - op: Deref - arguments { - identifier { - name: "c" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "(*c).Bar(): {0}" - } - } - fields { - call { - function { - simple_member_access { - field: "Bar" - object { - operator { - op: Deref - arguments { - identifier { - name: "c" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/40838f5f1f5c09fadb8c3d2cf2fd228ba1e4cc52 b/explorer/fuzzing/fuzzer_corpus/40838f5f1f5c09fadb8c3d2cf2fd228ba1e4cc52 deleted file mode 100644 index 05933a2ada16d..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/40838f5f1f5c09fadb8c3d2cf2fd228ba1e4cc52 +++ /dev/null @@ -1,149 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - array_type_literal { - element_type { - int_type_literal { - } - } - size { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - init { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - fields { - int_literal { - value: 1 - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "index" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 1 - } - } - is_returned: false - } - } - statements { - assign { - lhs { - index { - object { - identifier { - name: "x" - } - } - offset { - identifier { - name: "index" - } - } - } - } - rhs { - int_literal { - value: 0 - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - index { - object { - identifier { - name: "x" - } - } - offset { - int_literal { - value: 0 - } - } - } - } - arguments { - index { - object { - identifier { - name: "x" - } - } - offset { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/40e638bcb8108b0d99231cefa3dee0010b5e1e85 b/explorer/fuzzing/fuzzer_corpus/40e638bcb8108b0d99231cefa3dee0010b5e1e85 deleted file mode 100644 index b3d9d17b77d67..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/40e638bcb8108b0d99231cefa3dee0010b5e1e85 +++ /dev/null @@ -1,154 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "GetX" - } - param_pattern { - fields { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "x" - object { - identifier { - name: "p" - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - call { - function { - identifier { - name: "GetX" - } - } - argument { - tuple_literal { - fields { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 1 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/44355e6940769c65372ab6cf2ef9b69bbc4b96db b/explorer/fuzzing/fuzzer_corpus/44355e6940769c65372ab6cf2ef9b69bbc4b96db deleted file mode 100644 index e6b698cc60f69..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/44355e6940769c65372ab6cf2ef9b69bbc4b96db +++ /dev/null @@ -1,95 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - int_literal { - value: 0 - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - else_block { - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - int_literal { - value: 0 - } - } - arguments { - int_literal { - value: 0 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/4494e1b83d1d6915c3cd6152fd2a520e407d7bba b/explorer/fuzzing/fuzzer_corpus/4494e1b83d1d6915c3cd6152fd2a520e407d7bba deleted file mode 100644 index a7d5f5243da55..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/4494e1b83d1d6915c3cd6152fd2a520e407d7bba +++ /dev/null @@ -1,113 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "snd" - } - deduced_parameters { - name: "T" - type { - type_type_literal { - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "y" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "y" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "snd" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - fields { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/44f5a8dbdee9c97ccc37e2d0749d221109b0fe7a b/explorer/fuzzing/fuzzer_corpus/44f5a8dbdee9c97ccc37e2d0749d221109b0fe7a deleted file mode 100644 index 425c151915e5c..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/44f5a8dbdee9c97ccc37e2d0749d221109b0fe7a +++ /dev/null @@ -1,134 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "A" - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - bool_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - match { - expression { - identifier { - name: "b" - } - } - clauses { - pattern { - expression_pattern { - expression { - bool_literal { - value: false - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - clauses { - pattern { - expression_pattern { - expression { - bool_literal { - value: true - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "A" - } - } - argument { - tuple_literal { - fields { - bool_literal { - value: true - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/45416ee9fe788dffe4b9af83d322ae472dd1da1e b/explorer/fuzzing/fuzzer_corpus/45416ee9fe788dffe4b9af83d322ae472dd1da1e deleted file mode 100644 index 3517a1112fa59..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/45416ee9fe788dffe4b9af83d322ae472dd1da1e +++ /dev/null @@ -1,68 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - variable { - binding { - name: "zero" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - initializer { - int_literal { - value: 1 - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - assign { - lhs { - identifier { - name: "zero" - } - } - rhs { - int_literal { - value: 0 - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "zero" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/45e3a43e80f1bc62c0ff5794fa4d9c6e8f769f24 b/explorer/fuzzing/fuzzer_corpus/45e3a43e80f1bc62c0ff5794fa4d9c6e8f769f24 deleted file mode 100644 index 9ff30d275f2ea..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/45e3a43e80f1bc62c0ff5794fa4d9c6e8f769f24 +++ /dev/null @@ -1,361 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - choice { - name { - name: "Opt" - } - alternatives { - name: "None" - signature { - } - } - alternatives { - name: "Some" - signature { - fields { - int_type_literal { - } - } - } - } - } - } - declarations { - function { - name { - name: "A" - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "Opt" - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Opt" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - match { - expression { - tuple_literal { - fields { - identifier { - name: "a" - } - } - fields { - identifier { - name: "b" - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - alternative_pattern { - choice_type { - identifier { - name: "Opt" - } - } - alternative_name: "Some" - arguments { - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - auto_pattern { - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - identifier { - name: "n" - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - auto_pattern { - } - } - } - } - fields { - alternative_pattern { - choice_type { - identifier { - name: "Opt" - } - } - alternative_name: "Some" - arguments { - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - identifier { - name: "n" - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - alternative_pattern { - choice_type { - identifier { - name: "Opt" - } - } - alternative_name: "Some" - arguments { - fields { - binding_pattern { - name: "m" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - fields { - alternative_pattern { - choice_type { - identifier { - name: "Opt" - } - } - alternative_name: "Some" - arguments { - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - identifier { - name: "m" - } - } - arguments { - identifier { - name: "n" - } - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "A" - } - } - argument { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "None" - object { - identifier { - name: "Opt" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "Some" - object { - identifier { - name: "Opt" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/4636dd7b4d3177596bde1c7cc2478a45ba1315a3 b/explorer/fuzzing/fuzzer_corpus/4636dd7b4d3177596bde1c7cc2478a45ba1315a3 deleted file mode 100644 index e90b6ed3c603e..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/4636dd7b4d3177596bde1c7cc2478a45ba1315a3 +++ /dev/null @@ -1,348 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - destructor { - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "DESTRUCTOR A {0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "B" - } - members { - destructor { - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "DESTRUCTOR B {0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "C" - } - members { - destructor { - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "DESTRUCTOR C {0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 3 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "B" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - identifier { - name: "C" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/46e0b7c8cbc5d0e7570bcbe89128f418839b9cd6 b/explorer/fuzzing/fuzzer_corpus/46e0b7c8cbc5d0e7570bcbe89128f418839b9cd6 deleted file mode 100644 index ea6f7616311ec..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/46e0b7c8cbc5d0e7570bcbe89128f418839b9cd6 +++ /dev/null @@ -1,583 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Vector" - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Point" - } - } - interface { - identifier { - name: "Vector" - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "AddAndScaleGeneric" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "Vector" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "s" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "m" - type { - auto_pattern { - } - } - } - } - init { - simple_member_access { - field: "Add" - object { - identifier { - name: "a" - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "n" - type { - auto_pattern { - } - } - } - } - init { - simple_member_access { - field: "Scale" - object { - call { - function { - identifier { - name: "m" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "b" - } - } - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "n" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "s" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 0 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 0 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 2 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 3 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - call { - function { - identifier { - name: "AddAndScaleGeneric" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "a" - } - } - fields { - identifier { - name: "b" - } - } - fields { - int_literal { - value: 3 - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "p" - } - } - } - } - arguments { - int_literal { - value: 6 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/478394f347dda8510b53f7e921203c5886a7e8e6 b/explorer/fuzzing/fuzzer_corpus/478394f347dda8510b53f7e921203c5886a7e8e6 deleted file mode 100644 index 7fb30f7adde9a..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/478394f347dda8510b53f7e921203c5886a7e8e6 +++ /dev/null @@ -1,60 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Printing {0}" - } - } - fields { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/4860d253a5d68ec0c9f8ee444b8d380d31a6216e b/explorer/fuzzing/fuzzer_corpus/4860d253a5d68ec0c9f8ee444b8d380d31a6216e deleted file mode 100644 index 36f2a9c7e620f..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/4860d253a5d68ec0c9f8ee444b8d380d31a6216e +++ /dev/null @@ -1,52 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "_" - type { - auto_pattern { - } - } - } - } - init { - int_literal { - value: 1 - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/48caa4aa710abcf73fe7b82ab8fd9fbd10f52a7d b/explorer/fuzzing/fuzzer_corpus/48caa4aa710abcf73fe7b82ab8fd9fbd10f52a7d deleted file mode 100644 index 46aefeee972b8..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/48caa4aa710abcf73fe7b82ab8fd9fbd10f52a7d +++ /dev/null @@ -1,1016 +0,0 @@ -compilation_unit { - package_statement { - package_name: "Foo" - } - is_api: true - declarations { - choice { - name { - name: "Choice" - } - alternatives { - name: "Alternative" - signature { - } - } - } - } - declarations { - class_declaration { - name { - name: "Class" - } - members { - function { - name { - name: "F" - } - param_pattern { - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - identifier { - name: "n" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } - declarations { - interface { - name { - name: "Interface" - } - members { - function { - name { - name: "G" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - interface { - name { - name: "AnotherInterface" - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - identifier { - name: "Interface" - } - } - members { - function { - name { - name: "G" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - identifier { - name: "self" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - identifier { - name: "AnotherInterface" - } - } - } - } - declarations { - function { - name { - name: "GetStruct" - } - param_pattern { - } - return_term { - kind: Expression - type { - type_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_type_literal { - fields { - name: "n" - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "GetChoice" - } - param_pattern { - } - return_term { - kind: Expression - type { - type_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "Choice" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "GetClass" - } - param_pattern { - } - return_term { - kind: Expression - type { - type_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "Class" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "GetInterface" - } - param_pattern { - } - return_term { - kind: Expression - type { - type_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "Interface" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "GetConstraint" - } - param_pattern { - } - return_term { - kind: Expression - type { - type_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: BitwiseAnd - arguments { - identifier { - name: "Interface" - } - } - arguments { - identifier { - name: "AnotherInterface" - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "TestStruct" - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "s" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "GetStruct" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - compound_member_access { - object { - identifier { - name: "s" - } - } - path { - simple_member_access { - field: "n" - object { - call { - function { - identifier { - name: "GetStruct" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - then_block { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Struct OK" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "TestChoice" - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "GetChoice" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Alternative" - object { - call { - function { - identifier { - name: "GetChoice" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - match { - expression { - identifier { - name: "c" - } - } - clauses { - pattern { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "Alternative" - object { - call { - function { - identifier { - name: "GetChoice" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statement { - block { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Choice OK" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "TestClass" - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - call { - function { - simple_member_access { - field: "F" - object { - call { - function { - identifier { - name: "GetClass" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - } - } - } - } - arguments { - int_literal { - value: 2 - } - } - } - } - then_block { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Class OK" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "TestInterface" - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 1 - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - call { - function { - compound_member_access { - object { - identifier { - name: "n" - } - } - path { - simple_member_access { - field: "G" - object { - call { - function { - identifier { - name: "GetInterface" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - arguments { - int_literal { - value: 2 - } - } - } - } - then_block { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Interface OK" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "TestConstraint" - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 1 - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - call { - function { - compound_member_access { - object { - identifier { - name: "n" - } - } - path { - simple_member_access { - field: "G" - object { - call { - function { - identifier { - name: "GetConstraint" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - arguments { - int_literal { - value: 2 - } - } - } - } - then_block { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Constraint OK" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "TestStruct" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "TestChoice" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "TestClass" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "TestInterface" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "TestConstraint" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/4972578fc0a523302c5bc9f42c2fdcae619712fc b/explorer/fuzzing/fuzzer_corpus/4972578fc0a523302c5bc9f42c2fdcae619712fc deleted file mode 100644 index 0b0566cc71afe..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/4972578fc0a523302c5bc9f42c2fdcae619712fc +++ /dev/null @@ -1,61 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - is_returned: false - } - } - statements { - inc_dec { - operand { - identifier { - name: "x" - } - } - is_increment: true - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/4a22b3794abf57497ad89d05995434a0aa7d0f47 b/explorer/fuzzing/fuzzer_corpus/4a22b3794abf57497ad89d05995434a0aa7d0f47 deleted file mode 100644 index 81082e03a6033..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/4a22b3794abf57497ad89d05995434a0aa7d0f47 +++ /dev/null @@ -1,264 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - destructor { - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "DESTRUCTOR A {0}" - } - } - fields { - simple_member_access { - field: "a" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "a" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "B" - } - members { - variable { - binding { - name: "b" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "C" - } - members { - destructor { - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "DESTRUCTOR C {0}" - } - } - fields { - simple_member_access { - field: "c" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "c" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - identifier { - name: "C" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "base" - expression { - struct_literal { - fields { - name: "base" - expression { - struct_literal { - fields { - name: "a" - expression { - int_literal { - value: 1 - } - } - } - } - } - } - fields { - name: "b" - expression { - int_literal { - value: 2 - } - } - } - } - } - } - fields { - name: "c" - expression { - int_literal { - value: 3 - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/4a2ff94c1916c48655f498955011a06fbcdf133e b/explorer/fuzzing/fuzzer_corpus/4a2ff94c1916c48655f498955011a06fbcdf133e deleted file mode 100644 index 82882c7880f1d..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/4a2ff94c1916c48655f498955011a06fbcdf133e +++ /dev/null @@ -1,179 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "ar" - type { - expression_pattern { - expression { - array_type_literal { - element_type { - int_type_literal { - } - } - size { - int_literal { - value: 4 - } - } - } - } - } - } - } - } - init { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 2 - } - } - fields { - int_literal { - value: 3 - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "count" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - for_statement { - var_decl { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - target { - identifier { - name: "ar" - } - } - body { - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - identifier { - name: "x" - } - } - arguments { - int_literal { - value: 2 - } - } - } - } - then_block { - statements { - continue_statement { - } - } - } - } - } - statements { - assign { - lhs { - identifier { - name: "count" - } - } - rhs { - operator { - op: Add - arguments { - identifier { - name: "count" - } - } - arguments { - identifier { - name: "x" - } - } - } - } - op: Plain - } - } - } - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "count" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/4aa3752736e554261748faa2a497272dac8fd2b8 b/explorer/fuzzing/fuzzer_corpus/4aa3752736e554261748faa2a497272dac8fd2b8 deleted file mode 100644 index 1a5a2f3788c8d..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/4aa3752736e554261748faa2a497272dac8fd2b8 +++ /dev/null @@ -1,241 +0,0 @@ -compilation_unit { - package_statement { - package_name: "Foo" - } - is_api: true - declarations { - class_declaration { - name { - name: "X" - } - members { - function { - name { - name: "F" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "o" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "n" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "n" - object { - identifier { - name: "o" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - identifier { - name: "X" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "w" - type { - expression_pattern { - expression { - identifier { - name: "X" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - compound_member_access { - object { - call { - function { - compound_member_access { - object { - identifier { - name: "v" - } - } - path { - simple_member_access { - field: "F" - object { - identifier { - name: "X" - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "w" - } - } - } - } - } - } - path { - simple_member_access { - field: "n" - object { - identifier { - name: "X" - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/4ad65277ecd7e0adcd7692e02df993d459ce4eb1 b/explorer/fuzzing/fuzzer_corpus/4ad65277ecd7e0adcd7692e02df993d459ce4eb1 deleted file mode 100644 index 0ba34c28c72c3..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/4ad65277ecd7e0adcd7692e02df993d459ce4eb1 +++ /dev/null @@ -1,162 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "A" - } - param_pattern { - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - match { - expression { - identifier { - name: "n" - } - } - clauses { - pattern { - expression_pattern { - expression { - int_literal { - value: 1 - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - clauses { - pattern { - expression_pattern { - expression { - int_literal { - value: 1 - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - clauses { - pattern { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 3 - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "A" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/4c583e243d825ce8abb6144c1642ea8160043283 b/explorer/fuzzing/fuzzer_corpus/4c583e243d825ce8abb6144c1642ea8160043283 deleted file mode 100644 index 86a7c52ad0cac..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/4c583e243d825ce8abb6144c1642ea8160043283 +++ /dev/null @@ -1,405 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "IntLike" - } - members { - function { - name { - name: "Convert" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - identifier { - name: "IntLike" - } - } - members { - function { - name { - name: "Convert" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "add" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "IntLike" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - struct_type_literal { - fields { - name: "a" - expression { - identifier { - name: "T" - } - } - } - fields { - name: "b" - expression { - tuple_literal { - fields { - struct_type_literal { - fields { - name: "m" - expression { - int_type_literal { - } - } - } - fields { - name: "n" - expression { - identifier { - name: "T" - } - } - } - } - } - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - operator { - op: Add - arguments { - operator { - op: Add - arguments { - operator { - op: Mul - arguments { - int_literal { - value: 1000 - } - } - arguments { - call { - function { - simple_member_access { - field: "Convert" - object { - simple_member_access { - field: "a" - object { - identifier { - name: "x" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - arguments { - operator { - op: Mul - arguments { - int_literal { - value: 100 - } - } - arguments { - simple_member_access { - field: "m" - object { - index { - object { - simple_member_access { - field: "b" - object { - identifier { - name: "x" - } - } - } - } - offset { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - arguments { - operator { - op: Mul - arguments { - int_literal { - value: 10 - } - } - arguments { - call { - function { - simple_member_access { - field: "Convert" - object { - simple_member_access { - field: "n" - object { - index { - object { - simple_member_access { - field: "b" - object { - identifier { - name: "x" - } - } - } - } - offset { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - arguments { - index { - object { - simple_member_access { - field: "b" - object { - identifier { - name: "x" - } - } - } - } - offset { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "add" - } - } - argument { - tuple_literal { - fields { - struct_literal { - fields { - name: "b" - expression { - tuple_literal { - fields { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 1 - } - } - } - fields { - name: "m" - expression { - int_literal { - value: 2 - } - } - } - } - } - fields { - int_literal { - value: 3 - } - } - } - } - } - fields { - name: "a" - expression { - int_literal { - value: 4 - } - } - } - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/4ca78730c3a34f5efe521f89320a7b050ce7f349 b/explorer/fuzzing/fuzzer_corpus/4ca78730c3a34f5efe521f89320a7b050ce7f349 deleted file mode 100644 index 76e5d30631ce7..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/4ca78730c3a34f5efe521f89320a7b050ce7f349 +++ /dev/null @@ -1,22 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/4db783997772cefd555355a807a90e04e414b988 b/explorer/fuzzing/fuzzer_corpus/4db783997772cefd555355a807a90e04e414b988 deleted file mode 100644 index 4c173ad00f441..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/4db783997772cefd555355a807a90e04e414b988 +++ /dev/null @@ -1,76 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - initializer { - int_literal { - value: 0 - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/4de145ab28e280ab01528564fe130659272c2e52 b/explorer/fuzzing/fuzzer_corpus/4de145ab28e280ab01528564fe130659272c2e52 deleted file mode 100644 index 88351056b0038..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/4de145ab28e280ab01528564fe130659272c2e52 +++ /dev/null @@ -1,388 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Container" - } - members { - let { - pattern { - generic_binding { - name: "Element" - type { - type_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "Front" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Element" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "A" - } - deduced_parameters { - name: "T" - type { - where { - base { - identifier { - name: "Container" - } - } - clauses { - rewrite { - member_name: "Element" - replacement { - int_type_literal { - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - simple_member_access { - field: "Element" - object { - identifier { - name: "T" - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Front" - object { - identifier { - name: "x" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "B" - } - deduced_parameters { - name: "T" - type { - where { - base { - identifier { - name: "Container" - } - } - clauses { - equals { - lhs { - designator { - name: "Element" - } - } - rhs { - int_type_literal { - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - simple_member_access { - field: "Element" - object { - identifier { - name: "T" - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "A" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "x" - } - } - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - tuple_literal { - fields { - int_type_literal { - } - } - fields { - int_type_literal { - } - } - } - } - interface { - where { - base { - identifier { - name: "Container" - } - } - clauses { - rewrite { - member_name: "Element" - replacement { - int_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "Front" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - init { - identifier { - name: "self" - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "a" - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "B" - } - } - argument { - tuple_literal { - fields { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/4e0c2238235281a56e0b58c3ec927a3466c8b1e4 b/explorer/fuzzing/fuzzer_corpus/4e0c2238235281a56e0b58c3ec927a3466c8b1e4 deleted file mode 100644 index e41d1e09b3ac1..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/4e0c2238235281a56e0b58c3ec927a3466c8b1e4 +++ /dev/null @@ -1,242 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "A" - } - members { - function { - name { - name: "Get" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - identifier { - name: "A" - } - } - members { - function { - name { - name: "Get" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - declarations { - alias { - name { - name: "AlsoA" - } - target { - where { - base { - identifier { - name: "A" - } - } - clauses { - impls { - type { - int_type_literal { - } - } - constraint { - identifier { - name: "A" - } - } - } - } - clauses { - equals { - lhs { - int_literal { - value: 4 - } - } - rhs { - int_literal { - value: 4 - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "AlsoA" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Get" - object { - identifier { - name: "T" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "z" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "z" - } - } - } - } - } - } - } - } - } - } - } -} - diff --git a/explorer/fuzzing/fuzzer_corpus/4e3d3da4c4bcb8b1912b9d0e247c3d291299b94d b/explorer/fuzzing/fuzzer_corpus/4e3d3da4c4bcb8b1912b9d0e247c3d291299b94d deleted file mode 100644 index d466878fe637b..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/4e3d3da4c4bcb8b1912b9d0e247c3d291299b94d +++ /dev/null @@ -1,88 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "s" - type { - expression_pattern { - expression { - string_type_literal { - } - } - } - } - } - } - init { - string_literal { - value: "A block string literal\n\\\n" - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - identifier { - name: "s" - } - } - arguments { - string_literal { - value: "A block string literal\n\\\n" - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - else_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/4ea4b1a51c61f79c9f6b5b0ebd03454662abd1cd b/explorer/fuzzing/fuzzer_corpus/4ea4b1a51c61f79c9f6b5b0ebd03454662abd1cd deleted file mode 100644 index ecf23150de16a..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/4ea4b1a51c61f79c9f6b5b0ebd03454662abd1cd +++ /dev/null @@ -1,157 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "t1" - type { - expression_pattern { - expression { - struct_type_literal { - fields { - name: "x" - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 5 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "t2" - type { - expression_pattern { - expression { - struct_type_literal { - fields { - name: "x" - expression { - int_type_literal { - } - } - } - fields { - name: "y" - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 2 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 3 - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - operator { - op: Sub - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "t1" - } - } - } - } - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "t2" - } - } - } - } - } - } - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "t2" - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/4ee954ee8c71e3023e3855608bd6c60185453505 b/explorer/fuzzing/fuzzer_corpus/4ee954ee8c71e3023e3855608bd6c60185453505 deleted file mode 100644 index c37b301b0a423..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/4ee954ee8c71e3023e3855608bd6c60185453505 +++ /dev/null @@ -1,396 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "SwizzleWith" - } - members { - function { - name { - name: "Op" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - } - } - declarations { - alias { - name { - name: "Swizzle" - } - target { - where { - base { - type_type_literal { - } - } - clauses { - impls { - type { - designator { - name: "Self" - } - } - constraint { - call { - function { - identifier { - name: "SwizzleWith" - } - } - argument { - tuple_literal { - fields { - designator { - name: "Self" - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - call { - function { - identifier { - name: "SwizzleWith" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "Op" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - operator { - op: Mul - arguments { - identifier { - name: "self" - } - } - arguments { - int_literal { - value: 10 - } - } - } - } - arguments { - identifier { - name: "x" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "Swizzle" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "w" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - compound_member_access { - object { - identifier { - name: "v" - } - } - path { - simple_member_access { - field: "Op" - object { - call { - function { - identifier { - name: "SwizzleWith" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "w" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "one" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 1 - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "two" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 2 - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "one" - } - } - fields { - identifier { - name: "two" - } - } - } - } - } - } - } - } - } - } - } -} - diff --git a/explorer/fuzzing/fuzzer_corpus/5007f895491a8fd45ef5bd8da0a079938bf4f7f7 b/explorer/fuzzing/fuzzer_corpus/5007f895491a8fd45ef5bd8da0a079938bf4f7f7 deleted file mode 100644 index d06355ce71f53..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/5007f895491a8fd45ef5bd8da0a079938bf4f7f7 +++ /dev/null @@ -1,1126 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Class" - } - members { - variable { - binding { - name: "a" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "GenericClass" - } - members { - variable { - binding { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - type_params { - fields { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - } - } - } - declarations { - interface { - name { - name: "Interface" - } - members { - function { - name { - name: "Make" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - interface { - name { - name: "GenericInterface" - } - members { - function { - name { - name: "Make" - } - param_pattern { - } - return_term { - kind: Expression - type { - tuple_literal { - fields { - identifier { - name: "Self" - } - } - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - declarations { - alias { - name { - name: "ClassAlias" - } - target { - identifier { - name: "Class" - } - } - } - } - declarations { - alias { - name { - name: "GenericClassAlias" - } - target { - identifier { - name: "GenericClass" - } - } - } - } - declarations { - alias { - name { - name: "ClassSpecializationAlias" - } - target { - call { - function { - identifier { - name: "GenericClassAlias" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - declarations { - alias { - name { - name: "InterfaceAlias" - } - target { - identifier { - name: "Interface" - } - } - } - } - declarations { - alias { - name { - name: "GenericInterfaceAlias" - } - target { - identifier { - name: "GenericInterface" - } - } - } - } - declarations { - alias { - name { - name: "InterfaceSpecializationAlias" - } - target { - call { - function { - identifier { - name: "GenericInterfaceAlias" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "ClassAlias" - } - } - interface { - identifier { - name: "InterfaceAlias" - } - } - members { - function { - name { - name: "Make" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "a" - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "ClassSpecializationAlias" - } - } - interface { - identifier { - name: "InterfaceSpecializationAlias" - } - } - members { - function { - name { - name: "Make" - } - param_pattern { - } - return_term { - kind: Expression - type { - tuple_literal { - fields { - identifier { - name: "Self" - } - } - fields { - int_type_literal { - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - tuple_literal { - fields { - struct_literal { - fields { - name: "a" - expression { - int_literal { - value: 2 - } - } - } - } - } - fields { - int_literal { - value: 3 - } - } - } - } - } - } - } - } - } - } - } - declarations { - alias { - name { - name: "S" - } - target { - struct_type_literal { - fields { - name: "a" - expression { - int_type_literal { - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - call { - function { - identifier { - name: "GenericClassAlias" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "S" - } - } - } - } - } - } - interface { - call { - function { - identifier { - name: "GenericInterfaceAlias" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "S" - } - } - } - } - } - } - members { - function { - name { - name: "Make" - } - param_pattern { - } - return_term { - kind: Expression - type { - tuple_literal { - fields { - identifier { - name: "Self" - } - } - fields { - struct_type_literal { - fields { - name: "a" - expression { - int_type_literal { - } - } - } - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - tuple_literal { - fields { - struct_literal { - fields { - name: "a" - expression { - struct_literal { - fields { - name: "a" - expression { - int_literal { - value: 4 - } - } - } - } - } - } - } - } - fields { - struct_literal { - fields { - name: "a" - expression { - int_literal { - value: 5 - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "CheckImplementsInterface" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "Interface" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Make" - object { - identifier { - name: "T" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "CheckImplementsGenericInterface_i32" - } - deduced_parameters { - name: "T" - type { - call { - function { - identifier { - name: "GenericInterface" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - tuple_literal { - fields { - identifier { - name: "T" - } - } - fields { - int_type_literal { - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Make" - object { - identifier { - name: "T" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "CheckImplementsGenericInterface_struct" - } - deduced_parameters { - name: "T" - type { - call { - function { - identifier { - name: "GenericInterface" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "S" - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - tuple_literal { - fields { - identifier { - name: "T" - } - } - fields { - identifier { - name: "S" - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Make" - object { - identifier { - name: "T" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "Class" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "a" - expression { - int_literal { - value: 0 - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "a" - } - } - rhs { - call { - function { - identifier { - name: "CheckImplementsInterface" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "a" - } - } - } - } - } - } - op: Plain - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "GenericClass" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "a" - expression { - int_literal { - value: 0 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "b2" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "GenericClass" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - init { - call { - function { - identifier { - name: "CheckImplementsGenericInterface_i32" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "b" - } - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "GenericClass" - } - } - argument { - tuple_literal { - fields { - struct_type_literal { - fields { - name: "a" - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "a" - expression { - struct_literal { - fields { - name: "a" - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "c2" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "GenericClass" - } - } - argument { - tuple_literal { - fields { - struct_type_literal { - fields { - name: "a" - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - } - } - } - fields { - binding_pattern { - name: "s" - type { - expression_pattern { - expression { - identifier { - name: "S" - } - } - } - } - } - } - } - } - init { - call { - function { - identifier { - name: "CheckImplementsGenericInterface_struct" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "c" - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - operator { - op: Add - arguments { - operator { - op: Add - arguments { - operator { - op: Add - arguments { - operator { - op: Mul - arguments { - int_literal { - value: 10000 - } - } - arguments { - simple_member_access { - field: "a" - object { - identifier { - name: "a" - } - } - } - } - } - } - arguments { - operator { - op: Mul - arguments { - int_literal { - value: 1000 - } - } - arguments { - simple_member_access { - field: "a" - object { - identifier { - name: "b2" - } - } - } - } - } - } - } - } - arguments { - operator { - op: Mul - arguments { - int_literal { - value: 100 - } - } - arguments { - identifier { - name: "n" - } - } - } - } - } - } - arguments { - operator { - op: Mul - arguments { - int_literal { - value: 10 - } - } - arguments { - simple_member_access { - field: "a" - object { - simple_member_access { - field: "a" - object { - identifier { - name: "c2" - } - } - } - } - } - } - } - } - } - } - arguments { - simple_member_access { - field: "a" - object { - identifier { - name: "s" - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/504ed50b0973afc1fdb432d2dd0798ae8705a997 b/explorer/fuzzing/fuzzer_corpus/504ed50b0973afc1fdb432d2dd0798ae8705a997 deleted file mode 100644 index 7ae123af09a78..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/504ed50b0973afc1fdb432d2dd0798ae8705a997 +++ /dev/null @@ -1,141 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "f" - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - identifier { - name: "x" - } - } - arguments { - int_literal { - value: 0 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - else_block { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "f" - } - } - argument { - tuple_literal { - fields { - operator { - op: Sub - arguments { - identifier { - name: "x" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "f" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/50afabdf6bcaac0128c38e8b07aaaf0139caa5b6 b/explorer/fuzzing/fuzzer_corpus/50afabdf6bcaac0128c38e8b07aaaf0139caa5b6 deleted file mode 100644 index fd43fca03da06..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/50afabdf6bcaac0128c38e8b07aaaf0139caa5b6 +++ /dev/null @@ -1,100 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "X" - } - type_params { - fields { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "T" - type { - call { - function { - identifier { - name: "X" - } - } - argument { - tuple_literal { - fields { - designator { - name: "Self" - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/50f6f5d13beb185404eccd575bc75cae3abb612a b/explorer/fuzzing/fuzzer_corpus/50f6f5d13beb185404eccd575bc75cae3abb612a deleted file mode 100644 index 31d3b6b131541..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/50f6f5d13beb185404eccd575bc75cae3abb612a +++ /dev/null @@ -1,187 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "C" - } - members { - variable { - binding { - name: "a" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "D" - } - members { - variable { - binding { - name: "b" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "d" - type { - expression_pattern { - expression { - identifier { - name: "D" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "base" - expression { - struct_literal { - fields { - name: "a" - expression { - int_literal { - value: 1 - } - } - } - } - } - } - fields { - name: "b" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "d.a={0}" - } - } - fields { - simple_member_access { - field: "a" - object { - identifier { - name: "d" - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "d.b={0}" - } - } - fields { - simple_member_access { - field: "b" - object { - identifier { - name: "d" - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/5258b94636d20581bd507b9cf0e0da61228647b4 b/explorer/fuzzing/fuzzer_corpus/5258b94636d20581bd507b9cf0e0da61228647b4 deleted file mode 100644 index c1ebe999c5743..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/5258b94636d20581bd507b9cf0e0da61228647b4 +++ /dev/null @@ -1,96 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "f" - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - identifier { - name: "x" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "f" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/528816469d00b09f7410035a7f4d79d5e32934be b/explorer/fuzzing/fuzzer_corpus/528816469d00b09f7410035a7f4d79d5e32934be deleted file mode 100644 index 527f2c97adfea..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/528816469d00b09f7410035a7f4d79d5e32934be +++ /dev/null @@ -1,34 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - designator { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/52f893245ce034fe614a546e3e29b07596f96d41 b/explorer/fuzzing/fuzzer_corpus/52f893245ce034fe614a546e3e29b07596f96d41 deleted file mode 100644 index 49956fd996e77..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/52f893245ce034fe614a546e3e29b07596f96d41 +++ /dev/null @@ -1,40 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - namespace { - name { - name: "N" - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/5318fd00c25f2fd65c5e8d90291bb477ea229fdb b/explorer/fuzzing/fuzzer_corpus/5318fd00c25f2fd65c5e8d90291bb477ea229fdb deleted file mode 100644 index 0f3c0bf09fc4e..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/5318fd00c25f2fd65c5e8d90291bb477ea229fdb +++ /dev/null @@ -1,60 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "T" - type { - operator { - op: Ptr - arguments { - designator { - name: "Self" - } - } - } - } - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/532a630b4756515f297a4c2aaaa9c0f3b87e65e9 b/explorer/fuzzing/fuzzer_corpus/532a630b4756515f297a4c2aaaa9c0f3b87e65e9 deleted file mode 100644 index 68b6cf8d540ca..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/532a630b4756515f297a4c2aaaa9c0f3b87e65e9 +++ /dev/null @@ -1,102 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - namespace { - name { - name: "N" - } - } - } - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "T" - type { - type_type_literal { - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "N" - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/539a7012375a93a28857f6241de424b0e03247c4 b/explorer/fuzzing/fuzzer_corpus/539a7012375a93a28857f6241de424b0e03247c4 deleted file mode 100644 index ed1879c3e9999..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/539a7012375a93a28857f6241de424b0e03247c4 +++ /dev/null @@ -1,45 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - alias { - name { - name: "A" - } - target { - int_literal { - value: 5 - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/53aa7568a4f7b1c0c6721ef5a3a39737131a6a67 b/explorer/fuzzing/fuzzer_corpus/53aa7568a4f7b1c0c6721ef5a3a39737131a6a67 deleted file mode 100644 index 30af1dff29574..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/53aa7568a4f7b1c0c6721ef5a3a39737131a6a67 +++ /dev/null @@ -1,111 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Bad" - } - deduced_parameters { - name: "T" - type { - type_type_literal { - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - struct_type_literal { - fields { - name: "a" - expression { - int_type_literal { - } - } - } - fields { - name: "b" - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Bad" - } - } - argument { - tuple_literal { - fields { - struct_literal { - fields { - name: "a" - expression { - int_literal { - value: 5 - } - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/54c240f4335e37fea9731487a93befcf4f0ccf8c b/explorer/fuzzing/fuzzer_corpus/54c240f4335e37fea9731487a93befcf4f0ccf8c deleted file mode 100644 index 9064b8d809ab2..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/54c240f4335e37fea9731487a93befcf4f0ccf8c +++ /dev/null @@ -1,112 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - mixin { - name { - name: "Operations" - } - members { - function { - name { - qualifiers: "Operations" - name: "Square" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Mul - arguments { - identifier { - name: "x" - } - } - arguments { - identifier { - name: "x" - } - } - } - } - } - } - } - } - } - self { - name: "Self" - type { - type_type_literal { - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/54eba1cba056d1c06f5b3c12a126c9adfd9d528a b/explorer/fuzzing/fuzzer_corpus/54eba1cba056d1c06f5b3c12a126c9adfd9d528a deleted file mode 100644 index 04f18dd111eb3..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/54eba1cba056d1c06f5b3c12a126c9adfd9d528a +++ /dev/null @@ -1,265 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "F" - } - param_pattern { - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - int_type_literal { - } - } - } - } - } - } - } - } - fields { - binding_pattern { - name: "q" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - operator { - op: Ptr - arguments { - operator { - op: Ptr - arguments { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - operator { - op: Ptr - arguments { - int_type_literal { - } - } - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - operator { - op: Mul - arguments { - identifier { - name: "n" - } - } - arguments { - operator { - op: Deref - arguments { - identifier { - name: "p" - } - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - operator { - op: Mul - arguments { - identifier { - name: "a" - } - } - arguments { - identifier { - name: "n" - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - operator { - op: Deref - arguments { - identifier { - name: "p" - } - } - } - } - rhs { - operator { - op: Mul - arguments { - identifier { - name: "b" - } - } - arguments { - operator { - op: Deref - arguments { - identifier { - name: "p" - } - } - } - } - } - } - op: Plain - } - } - statements { - assign { - lhs { - operator { - op: Deref - arguments { - operator { - op: Deref - arguments { - identifier { - name: "q" - } - } - } - } - } - } - rhs { - identifier { - name: "p" - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - operator { - op: Deref - arguments { - operator { - op: Deref - arguments { - identifier { - name: "q" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/57eaf2918703b28c122367a87dfcdc90bce157dc b/explorer/fuzzing/fuzzer_corpus/57eaf2918703b28c122367a87dfcdc90bce157dc deleted file mode 100644 index 32f32e0c2994f..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/57eaf2918703b28c122367a87dfcdc90bce157dc +++ /dev/null @@ -1,700 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Vector" - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Point" - } - } - interface { - identifier { - name: "Vector" - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Mul - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "v" - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Mul - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "v" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "AddAndScaleGeneric" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "Vector" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "t" - type { - expression_pattern { - expression { - tuple_literal { - fields { - identifier { - name: "T" - } - } - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - fields { - binding_pattern { - name: "s" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "m" - type { - auto_pattern { - } - } - } - } - init { - simple_member_access { - field: "Add" - object { - index { - object { - identifier { - name: "t" - } - } - offset { - int_literal { - value: 0 - } - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "n" - type { - auto_pattern { - } - } - } - } - init { - simple_member_access { - field: "Scale" - object { - call { - function { - identifier { - name: "m" - } - } - argument { - tuple_literal { - fields { - index { - object { - identifier { - name: "t" - } - } - offset { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "n" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "s" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 1 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 2 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 3 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - call { - function { - identifier { - name: "AddAndScaleGeneric" - } - } - argument { - tuple_literal { - fields { - tuple_literal { - fields { - identifier { - name: "a" - } - } - fields { - identifier { - name: "b" - } - } - } - } - fields { - int_literal { - value: 5 - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "p" - } - } - } - } - arguments { - int_literal { - value: 15 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/57eba240b39df476aa0a6a3a23f8f01eb21b6143 b/explorer/fuzzing/fuzzer_corpus/57eba240b39df476aa0a6a3a23f8f01eb21b6143 deleted file mode 100644 index fd4493ad15f8a..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/57eba240b39df476aa0a6a3a23f8f01eb21b6143 +++ /dev/null @@ -1,84 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "A" - } - } - } - declarations { - interface { - name { - name: "B" - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - int_type_literal { - } - } - interface { - operator { - op: BitwiseAnd - arguments { - call { - function { - identifier { - name: "A" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - arguments { - identifier { - name: "B" - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/583ec40d68e7531222b5e4044101e9575c4509ff b/explorer/fuzzing/fuzzer_corpus/583ec40d68e7531222b5e4044101e9575c4509ff deleted file mode 100644 index 21a16a1110ce0..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/583ec40d68e7531222b5e4044101e9575c4509ff +++ /dev/null @@ -1,148 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Recurse" - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "do_recurse" - type { - expression_pattern { - expression { - bool_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Auto - } - body { - statements { - if_statement { - condition { - identifier { - name: "do_recurse" - } - } - then_block { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Recurse" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "x" - } - } - fields { - bool_literal { - value: false - } - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - call { - function { - identifier { - name: "Recurse" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - fields { - bool_literal { - value: true - } - } - } - } - } - } - arguments { - int_literal { - value: 3 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/58c61db205983d75beda870ceebfa61a70fd300e b/explorer/fuzzing/fuzzer_corpus/58c61db205983d75beda870ceebfa61a70fd300e deleted file mode 100644 index dacf3c122a555..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/58c61db205983d75beda870ceebfa61a70fd300e +++ /dev/null @@ -1,222 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - alias { - name { - name: "TypeAlias" - } - target { - int_type_literal { - } - } - } - } - declarations { - function { - name { - name: "Function" - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "TypeAlias" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - identifier { - name: "a" - } - } - arguments { - identifier { - name: "b" - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "GenericFunction" - } - deduced_parameters { - name: "T" - type { - type_type_literal { - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - declarations { - alias { - name { - name: "FunctionAlias" - } - target { - identifier { - name: "Function" - } - } - } - } - declarations { - alias { - name { - name: "GenericFunctionAlias" - } - target { - identifier { - name: "GenericFunction" - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - call { - function { - identifier { - name: "FunctionAlias" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 2 - } - } - } - } - } - } - arguments { - call { - function { - identifier { - name: "GenericFunctionAlias" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 4 - } - } - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/58e115140e5be839f41599aeb2b6a03368e72656 b/explorer/fuzzing/fuzzer_corpus/58e115140e5be839f41599aeb2b6a03368e72656 deleted file mode 100644 index f3a8e4a1334f9..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/58e115140e5be839f41599aeb2b6a03368e72656 +++ /dev/null @@ -1,239 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - variable { - binding { - name: "a" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "B" - } - members { - variable { - binding { - name: "b" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "A" - } - } - interface { - call { - function { - identifier { - name: "As" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "B" - } - } - } - } - } - } - members { - function { - name { - name: "Convert" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "B" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "b" - expression { - simple_member_access { - field: "a" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - tuple_literal { - fields { - int_type_literal { - } - } - fields { - identifier { - name: "A" - } - } - } - } - } - } - } - } - init { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - fields { - struct_literal { - fields { - name: "a" - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - tuple_literal { - fields { - int_type_literal { - } - } - fields { - identifier { - name: "B" - } - } - } - } - } - } - } - } - init { - identifier { - name: "a" - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/59f5bff3c89e6ae504001fd40e25570fa68f4816 b/explorer/fuzzing/fuzzer_corpus/59f5bff3c89e6ae504001fd40e25570fa68f4816 deleted file mode 100644 index c95694c6c7a83..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/59f5bff3c89e6ae504001fd40e25570fa68f4816 +++ /dev/null @@ -1,326 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "A" - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - } - } - declarations { - interface { - name { - name: "B" - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - identifier { - name: "A" - } - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - identifier { - name: "B" - } - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "GetAB" - } - param_pattern { - fields { - generic_binding { - name: "T" - type { - where { - base { - identifier { - name: "B" - } - } - clauses { - impls { - type { - designator { - name: "Self" - } - } - constraint { - identifier { - name: "A" - } - } - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - operator { - op: Add - arguments { - operator { - op: Mul - arguments { - int_literal { - value: 100 - } - } - arguments { - call { - function { - compound_member_access { - object { - identifier { - name: "T" - } - } - path { - simple_member_access { - field: "F" - object { - identifier { - name: "A" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - arguments { - operator { - op: Mul - arguments { - int_literal { - value: 10 - } - } - arguments { - call { - function { - compound_member_access { - object { - identifier { - name: "T" - } - } - path { - simple_member_access { - field: "F" - object { - identifier { - name: "B" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - arguments { - call { - function { - simple_member_access { - field: "F" - object { - identifier { - name: "T" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "GetAB" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - } -} - diff --git a/explorer/fuzzing/fuzzer_corpus/5a006fff8e99d72fc86aa8545e73e10c13603f6c b/explorer/fuzzing/fuzzer_corpus/5a006fff8e99d72fc86aa8545e73e10c13603f6c deleted file mode 100644 index de05447b617bc..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/5a006fff8e99d72fc86aa8545e73e10c13603f6c +++ /dev/null @@ -1,119 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "x" - } - } - rhs { - int_literal { - value: 1 - } - } - op: Plain - } - } - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - int_literal { - value: 0 - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - then_block { - statements { - assign { - lhs { - identifier { - name: "y" - } - } - rhs { - int_literal { - value: 0 - } - } - op: Plain - } - } - } - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "y" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/5a642703129a307f9a14474706f5e2f56b2d7010 b/explorer/fuzzing/fuzzer_corpus/5a642703129a307f9a14474706f5e2f56b2d7010 deleted file mode 100644 index 17030acff358a..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/5a642703129a307f9a14474706f5e2f56b2d7010 +++ /dev/null @@ -1,116 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - variable { - binding { - name: "a" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "B" - } - members { - variable { - binding { - name: "b" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "B" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "a" - expression { - int_literal { - value: 0 - } - } - } - fields { - name: "b" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/5af9093a8103ad8ffc72eb63999ae64d30c09354 b/explorer/fuzzing/fuzzer_corpus/5af9093a8103ad8ffc72eb63999ae64d30c09354 deleted file mode 100644 index 6046a7b9fa3f0..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/5af9093a8103ad8ffc72eb63999ae64d30c09354 +++ /dev/null @@ -1,53 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - constraint { - name { - name: "X" - } - members { - let { - pattern { - generic_binding { - name: "N" - type { - type_type_literal { - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/5b0199278f094e43e9138a16476f13d3ba564d1f b/explorer/fuzzing/fuzzer_corpus/5b0199278f094e43e9138a16476f13d3ba564d1f deleted file mode 100644 index f57991cddeb74..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/5b0199278f094e43e9138a16476f13d3ba564d1f +++ /dev/null @@ -1,93 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "id" - } - deduced_parameters { - name: "T" - type { - type_type_literal { - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "id" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/5b9b375c91986279a8a110f96835a50cbcc0260c b/explorer/fuzzing/fuzzer_corpus/5b9b375c91986279a8a110f96835a50cbcc0260c deleted file mode 100644 index b561a4d51382b..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/5b9b375c91986279a8a110f96835a50cbcc0260c +++ /dev/null @@ -1,273 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - choice { - name { - name: "Opt" - } - alternatives { - name: "None" - signature { - } - } - alternatives { - name: "Some" - signature { - fields { - int_type_literal { - } - } - } - } - } - } - declarations { - function { - name { - name: "A" - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "Opt" - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Opt" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - match { - expression { - tuple_literal { - fields { - identifier { - name: "a" - } - } - fields { - identifier { - name: "b" - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - alternative_pattern { - choice_type { - identifier { - name: "Opt" - } - } - alternative_name: "Some" - arguments { - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - auto_pattern { - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - identifier { - name: "n" - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - auto_pattern { - } - } - } - } - fields { - alternative_pattern { - choice_type { - identifier { - name: "Opt" - } - } - alternative_name: "Some" - arguments { - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - identifier { - name: "n" - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "A" - } - } - argument { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "None" - object { - identifier { - name: "Opt" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "Some" - object { - identifier { - name: "Opt" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/5d290605979c6ae723f8c79db98fcdee8027691b b/explorer/fuzzing/fuzzer_corpus/5d290605979c6ae723f8c79db98fcdee8027691b deleted file mode 100644 index b5707279e84ae..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/5d290605979c6ae723f8c79db98fcdee8027691b +++ /dev/null @@ -1,348 +0,0 @@ -compilation_unit { - package_statement { - package_name: "Foo" - } - is_api: true - declarations { - class_declaration { - name { - name: "X" - } - members { - function { - name { - name: "F" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - identifier { - name: "X" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "X" - } - } - } - } - } - } - } - } - init { - operator { - op: AddressOf - arguments { - identifier { - name: "v" - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "n" - object { - operator { - op: Deref - arguments { - identifier { - name: "p" - } - } - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - compound_member_access { - object { - operator { - op: Deref - arguments { - identifier { - name: "p" - } - } - } - } - path { - simple_member_access { - field: "n" - object { - identifier { - name: "X" - } - } - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - call { - function { - simple_member_access { - field: "F" - object { - operator { - op: Deref - arguments { - identifier { - name: "p" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - call { - function { - compound_member_access { - object { - operator { - op: Deref - arguments { - identifier { - name: "p" - } - } - } - } - path { - simple_member_access { - field: "F" - object { - identifier { - name: "X" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/5d2c41a41b6e8763c34b8a5953ffc75203af02bb b/explorer/fuzzing/fuzzer_corpus/5d2c41a41b6e8763c34b8a5953ffc75203af02bb deleted file mode 100644 index 1b8f3826e83eb..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/5d2c41a41b6e8763c34b8a5953ffc75203af02bb +++ /dev/null @@ -1,119 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 2 - } - } - is_returned: false - } - } - statements { - while_statement { - condition { - bool_literal { - value: true - } - } - body { - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - identifier { - name: "x" - } - } - arguments { - int_literal { - value: 0 - } - } - } - } - then_block { - statements { - break_statement { - } - } - } - else_block { - statements { - assign { - lhs { - identifier { - name: "x" - } - } - rhs { - operator { - op: Sub - arguments { - identifier { - name: "x" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - op: Plain - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/5db5461375b313563b11c30a656e5e83957a908d b/explorer/fuzzing/fuzzer_corpus/5db5461375b313563b11c30a656e5e83957a908d deleted file mode 100644 index d344f49342da9..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/5db5461375b313563b11c30a656e5e83957a908d +++ /dev/null @@ -1,132 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - int_type_literal { - } - } - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "New" - object { - identifier { - name: "heap" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 5 - } - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "q" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - int_type_literal { - } - } - } - } - } - } - } - } - init { - identifier { - name: "p" - } - } - is_returned: false - } - } - statements { - assign { - lhs { - operator { - op: Deref - arguments { - identifier { - name: "q" - } - } - } - } - rhs { - int_literal { - value: 0 - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - operator { - op: Deref - arguments { - identifier { - name: "p" - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/5dd9c62b5221d7a85e9e1b4a4b331be2c339ab97 b/explorer/fuzzing/fuzzer_corpus/5dd9c62b5221d7a85e9e1b4a4b331be2c339ab97 deleted file mode 100644 index a284c460bc701..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/5dd9c62b5221d7a85e9e1b4a4b331be2c339ab97 +++ /dev/null @@ -1,65 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 5 - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: As - arguments { - identifier { - name: "n" - } - } - arguments { - int_type_literal { - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/5e1b0ea6622640145c4876931e297c5edb8231d8 b/explorer/fuzzing/fuzzer_corpus/5e1b0ea6622640145c4876931e297c5edb8231d8 deleted file mode 100644 index f30b8aeef796b..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/5e1b0ea6622640145c4876931e297c5edb8231d8 +++ /dev/null @@ -1,145 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "AssignIntTo" - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "destination" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - int_type_literal { - } - } - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - statements { - assign { - lhs { - operator { - op: Deref - arguments { - identifier { - name: "destination" - } - } - } - } - rhs { - identifier { - name: "x" - } - } - op: Plain - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "AssignIntTo" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 42 - } - } - fields { - operator { - op: AddressOf - arguments { - identifier { - name: "y" - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "y" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/5e3b2219c7b0a5e971058249c4531d2069e951e9 b/explorer/fuzzing/fuzzer_corpus/5e3b2219c7b0a5e971058249c4531d2069e951e9 deleted file mode 100644 index 234422af84242..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/5e3b2219c7b0a5e971058249c4531d2069e951e9 +++ /dev/null @@ -1,37 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - impl { - kind: ExternalImpl - impl_type { - int_type_literal { - } - } - interface { - int_type_literal { - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/5fb13293fefc17d09c0cc7c2e25e6eba45bacb71 b/explorer/fuzzing/fuzzer_corpus/5fb13293fefc17d09c0cc7c2e25e6eba45bacb71 deleted file mode 100644 index 1b6066e3e3820..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/5fb13293fefc17d09c0cc7c2e25e6eba45bacb71 +++ /dev/null @@ -1,237 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Container" - } - members { - let { - pattern { - generic_binding { - name: "Element" - type { - type_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "Front" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Element" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "A" - } - deduced_parameters { - name: "T" - type { - where { - base { - identifier { - name: "Container" - } - } - clauses { - equals { - lhs { - designator { - name: "Element" - } - } - rhs { - int_type_literal { - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - simple_member_access { - field: "Element" - object { - identifier { - name: "T" - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Front" - object { - identifier { - name: "x" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "B" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "Container" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - simple_member_access { - field: "Element" - object { - identifier { - name: "T" - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "A" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "x" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/604e3189c3c6fdcd4ba5375a88614370264f92e1 b/explorer/fuzzing/fuzzer_corpus/604e3189c3c6fdcd4ba5375a88614370264f92e1 deleted file mode 100644 index 19626d687a52a..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/604e3189c3c6fdcd4ba5375a88614370264f92e1 +++ /dev/null @@ -1,71 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "A" - } - } - } - declarations { - alias { - name { - name: "B" - } - target { - where { - base { - identifier { - name: "A" - } - } - clauses { - impls { - type { - int_literal { - value: 4 - } - } - constraint { - identifier { - name: "A" - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} - diff --git a/explorer/fuzzing/fuzzer_corpus/61d367a42b7becd1b4b939d56353897a36e5f096 b/explorer/fuzzing/fuzzer_corpus/61d367a42b7becd1b4b939d56353897a36e5f096 deleted file mode 100644 index a38b079bc966c..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/61d367a42b7becd1b4b939d56353897a36e5f096 +++ /dev/null @@ -1,127 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "T" - type { - tuple_literal { - fields { - tuple_literal { - } - } - fields { - tuple_literal { - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - tuple_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - index { - object { - identifier { - name: "x" - } - } - offset { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - tuple_literal { - fields { - tuple_literal { - } - } - fields { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/61f23f04c75df376c54549d73cc0decdcb786bf2 b/explorer/fuzzing/fuzzer_corpus/61f23f04c75df376c54549d73cc0decdcb786bf2 deleted file mode 100644 index cab1dc4064bf0..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/61f23f04c75df376c54549d73cc0decdcb786bf2 +++ /dev/null @@ -1,84 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "y" - } - } - rhs { - identifier { - name: "x" - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "y" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/61f3084cf911f5dfd5487e87683572a914d1869f b/explorer/fuzzing/fuzzer_corpus/61f3084cf911f5dfd5487e87683572a914d1869f deleted file mode 100644 index c288e1d7c34a8..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/61f3084cf911f5dfd5487e87683572a914d1869f +++ /dev/null @@ -1,325 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - mixin { - name { - name: "Operations" - } - members { - function { - name { - name: "F" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - self { - name: "Self" - type { - type_type_literal { - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point" - } - members { - function { - name { - name: "Origin" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 0 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - mix { - mixin { - identifier { - name: "Operations" - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p1" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Origin" - object { - identifier { - name: "Point" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "p2" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 42 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "p3" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "F" - object { - identifier { - name: "p1" - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "p2" - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "p3" - } - } - } - } - arguments { - int_literal { - value: 42 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/6219bbd6eb7e0d3fa7e8bc5fa554e2e2aff95733 b/explorer/fuzzing/fuzzer_corpus/6219bbd6eb7e0d3fa7e8bc5fa554e2e2aff95733 deleted file mode 100644 index 507c18b74f365..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/6219bbd6eb7e0d3fa7e8bc5fa554e2e2aff95733 +++ /dev/null @@ -1,130 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - auto_pattern { - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 10 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - int_type_literal { - } - } - } - } - } - } - } - } - init { - operator { - op: AddressOf - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "x" - } - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - operator { - op: Deref - arguments { - identifier { - name: "p" - } - } - } - } - rhs { - int_literal { - value: 0 - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - simple_member_access { - field: "x" - object { - identifier { - name: "x" - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/625b7bfd93cbc6ff7a3c8224e64a4ed8505589c1 b/explorer/fuzzing/fuzzer_corpus/625b7bfd93cbc6ff7a3c8224e64a4ed8505589c1 deleted file mode 100644 index 28abd9ef25cdd..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/625b7bfd93cbc6ff7a3c8224e64a4ed8505589c1 +++ /dev/null @@ -1,127 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - auto_pattern { - } - } - } - } - init { - int_literal { - value: 2 - } - } - is_returned: false - } - } - statements { - while_statement { - condition { - operator { - op: NotEq - arguments { - identifier { - name: "x" - } - } - arguments { - int_literal { - value: 0 - } - } - } - } - body { - statements { - assign { - lhs { - identifier { - name: "x" - } - } - rhs { - operator { - op: Sub - arguments { - identifier { - name: "x" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - op: Plain - } - } - statements { - continue_statement { - } - } - statements { - assign { - lhs { - identifier { - name: "x" - } - } - rhs { - operator { - op: Add - arguments { - identifier { - name: "x" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - op: Plain - } - } - } - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/62b8e32751dc67f7885174de27430929aa7a4ad9 b/explorer/fuzzing/fuzzer_corpus/62b8e32751dc67f7885174de27430929aa7a4ad9 deleted file mode 100644 index bcfc595827ff6..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/62b8e32751dc67f7885174de27430929aa7a4ad9 +++ /dev/null @@ -1,74 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "s" - type { - auto_pattern { - } - } - } - } - init { - string_literal { - value: "Hello world!" - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "s" - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/62bbd62118bce3d51da4dcf8408ca2ac6160b6ab b/explorer/fuzzing/fuzzer_corpus/62bbd62118bce3d51da4dcf8408ca2ac6160b6ab deleted file mode 100644 index 5a768b077a092..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/62bbd62118bce3d51da4dcf8408ca2ac6160b6ab +++ /dev/null @@ -1,350 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "A" - } - } - interface { - where { - base { - call { - function { - identifier { - name: "SubWith" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - clauses { - rewrite { - member_name: "Result" - replacement { - identifier { - name: "A" - } - } - } - } - } - } - members { - function { - name { - name: "Op" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "rhs" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "A" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "n" - expression { - operator { - op: Sub - arguments { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "rhs" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 5 - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "a" - } - } - rhs { - operator { - op: Sub - arguments { - identifier { - name: "a" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - op: Plain - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "a" - } - } - } - } - } - } - } - } - } - } - statements { - assign { - lhs { - identifier { - name: "a" - } - } - rhs { - int_literal { - value: 1 - } - } - op: Sub - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "a" - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "n" - object { - operator { - op: Sub - arguments { - identifier { - name: "a" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/62d6f3f23f38c08250ccc296707f3d8b31b458fc b/explorer/fuzzing/fuzzer_corpus/62d6f3f23f38c08250ccc296707f3d8b31b458fc deleted file mode 100644 index e6fe83b542b39..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/62d6f3f23f38c08250ccc296707f3d8b31b458fc +++ /dev/null @@ -1,132 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "AddInt" - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "ret" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - operator { - op: Add - arguments { - identifier { - name: "a" - } - } - arguments { - identifier { - name: "b" - } - } - } - } - is_returned: false - } - } - statements { - return_var_statement { - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "AddInt" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/631fdd18ae26fb841982077231672ba638d5466d b/explorer/fuzzing/fuzzer_corpus/631fdd18ae26fb841982077231672ba638d5466d deleted file mode 100644 index 121604d4faf79..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/631fdd18ae26fb841982077231672ba638d5466d +++ /dev/null @@ -1,51 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/634aba8b73bb4c4c12485ac91c2b3dcb631358d0 b/explorer/fuzzing/fuzzer_corpus/634aba8b73bb4c4c12485ac91c2b3dcb631358d0 deleted file mode 100644 index 39f164da519e1..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/634aba8b73bb4c4c12485ac91c2b3dcb631358d0 +++ /dev/null @@ -1,104 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "X" - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - type_type_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "G" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "X" - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - call { - function { - simple_member_access { - field: "F" - object { - identifier { - name: "T" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/63857ff19609e08af0207d8b1dab6e4de65dbbde b/explorer/fuzzing/fuzzer_corpus/63857ff19609e08af0207d8b1dab6e4de65dbbde deleted file mode 100644 index 0c4569f9392a5..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/63857ff19609e08af0207d8b1dab6e4de65dbbde +++ /dev/null @@ -1,120 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - int_literal { - value: 0 - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - then_block { - statements { - assign { - lhs { - identifier { - name: "x" - } - } - rhs { - int_literal { - value: 0 - } - } - op: Plain - } - } - } - } - } - statements { - assign { - lhs { - identifier { - name: "y" - } - } - rhs { - identifier { - name: "x" - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "y" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/649c2be3e1b157349cd44f67894ad550e9d33ee8 b/explorer/fuzzing/fuzzer_corpus/649c2be3e1b157349cd44f67894ad550e9d33ee8 deleted file mode 100644 index 872e6c15ee44d..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/649c2be3e1b157349cd44f67894ad550e9d33ee8 +++ /dev/null @@ -1,132 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - string_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "CreateEmpty" - object { - call { - function { - identifier { - name: "Optional" - } - } - argument { - tuple_literal { - fields { - string_type_literal { - } - } - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - call { - function { - simple_member_access { - field: "HasValue" - object { - identifier { - name: "x" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - operator { - op: Neg - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/6506dca4030d6950129d63f064289299d3caaf39 b/explorer/fuzzing/fuzzer_corpus/6506dca4030d6950129d63f064289299d3caaf39 deleted file mode 100644 index 647f00ffbf942..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/6506dca4030d6950129d63f064289299d3caaf39 +++ /dev/null @@ -1,1087 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "I" - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - members { - function { - name { - name: "M" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "A" - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - identifier { - name: "I" - } - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - members { - function { - name { - name: "M" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "G" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 3 - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - identifier { - name: "I" - } - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 4 - } - } - } - } - } - } - } - members { - function { - name { - name: "M" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 5 - } - } - } - } - } - } - } - } - } - declarations { - alias { - name { - name: "IF" - } - target { - simple_member_access { - field: "F" - object { - identifier { - name: "I" - } - } - } - } - } - } - declarations { - alias { - name { - name: "IM" - } - target { - simple_member_access { - field: "M" - object { - identifier { - name: "I" - } - } - } - } - } - } - declarations { - alias { - name { - name: "AIF" - } - target { - compound_member_access { - object { - identifier { - name: "A" - } - } - path { - identifier { - name: "IF" - } - } - } - } - } - } - declarations { - alias { - name { - name: "AIM" - } - target { - compound_member_access { - object { - identifier { - name: "A" - } - } - path { - identifier { - name: "IM" - } - } - } - } - } - } - declarations { - alias { - name { - name: "AG" - } - target { - simple_member_access { - field: "G" - object { - identifier { - name: "A" - } - } - } - } - } - } - declarations { - alias { - name { - name: "i32IF" - } - target { - compound_member_access { - object { - int_type_literal { - } - } - path { - identifier { - name: "IF" - } - } - } - } - } - } - declarations { - alias { - name { - name: "i32IM" - } - target { - compound_member_access { - object { - int_type_literal { - } - } - path { - identifier { - name: "IM" - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 0 - } - } - } - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - call { - function { - compound_member_access { - object { - identifier { - name: "A" - } - } - path { - identifier { - name: "IF" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - call { - function { - compound_member_access { - object { - identifier { - name: "a" - } - } - path { - identifier { - name: "IF" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - call { - function { - compound_member_access { - object { - identifier { - name: "a" - } - } - path { - identifier { - name: "IM" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - arguments { - int_literal { - value: 2 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 3 - } - } - } - } - } - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - call { - function { - compound_member_access { - object { - identifier { - name: "a" - } - } - path { - compound_member_access { - object { - identifier { - name: "A" - } - } - path { - identifier { - name: "IM" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - arguments { - int_literal { - value: 2 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 4 - } - } - } - } - } - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - call { - function { - identifier { - name: "AIF" - } - } - argument { - tuple_literal { - } - } - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 5 - } - } - } - } - } - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - call { - function { - compound_member_access { - object { - identifier { - name: "a" - } - } - path { - identifier { - name: "AIM" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - arguments { - int_literal { - value: 2 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 6 - } - } - } - } - } - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - call { - function { - compound_member_access { - object { - identifier { - name: "a" - } - } - path { - identifier { - name: "AG" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - arguments { - int_literal { - value: 3 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 7 - } - } - } - } - } - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - call { - function { - compound_member_access { - object { - int_type_literal { - } - } - path { - identifier { - name: "IF" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - arguments { - int_literal { - value: 4 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 8 - } - } - } - } - } - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - call { - function { - compound_member_access { - object { - int_literal { - value: 0 - } - } - path { - identifier { - name: "IF" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - arguments { - int_literal { - value: 4 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 9 - } - } - } - } - } - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - call { - function { - compound_member_access { - object { - int_literal { - value: 0 - } - } - path { - identifier { - name: "IM" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - arguments { - int_literal { - value: 5 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 10 - } - } - } - } - } - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - call { - function { - compound_member_access { - object { - int_literal { - value: 0 - } - } - path { - compound_member_access { - object { - int_type_literal { - } - } - path { - identifier { - name: "IM" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - arguments { - int_literal { - value: 5 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 11 - } - } - } - } - } - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - call { - function { - identifier { - name: "i32IF" - } - } - argument { - tuple_literal { - } - } - } - } - arguments { - int_literal { - value: 4 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 12 - } - } - } - } - } - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - call { - function { - compound_member_access { - object { - int_literal { - value: 0 - } - } - path { - identifier { - name: "i32IM" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - arguments { - int_literal { - value: 5 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 13 - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/65c43429b61c8397acd866f828fcb47cbb7c16f4 b/explorer/fuzzing/fuzzer_corpus/65c43429b61c8397acd866f828fcb47cbb7c16f4 deleted file mode 100644 index 656d967b2eaa0..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/65c43429b61c8397acd866f828fcb47cbb7c16f4 +++ /dev/null @@ -1,726 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Vector" - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Point" - } - } - interface { - identifier { - name: "Vector" - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Mul - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "v" - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Mul - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "v" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "ScaleGeneric" - } - deduced_parameters { - name: "U" - type { - identifier { - name: "Vector" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - identifier { - name: "U" - } - } - } - } - } - } - fields { - binding_pattern { - name: "s" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "U" - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Scale" - object { - identifier { - name: "c" - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "s" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "AddAndScaleGeneric" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "Vector" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "s" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "ScaleGeneric" - } - } - argument { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "Add" - object { - identifier { - name: "a" - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "b" - } - } - } - } - } - } - fields { - identifier { - name: "s" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 1 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 2 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 3 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - call { - function { - identifier { - name: "AddAndScaleGeneric" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "a" - } - } - fields { - identifier { - name: "b" - } - } - fields { - int_literal { - value: 5 - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "p" - } - } - } - } - arguments { - int_literal { - value: 15 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/65e88126f8b67fa52bc1cdad9b1eb44f52709925 b/explorer/fuzzing/fuzzer_corpus/65e88126f8b67fa52bc1cdad9b1eb44f52709925 deleted file mode 100644 index fd5df5a3c36cc..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/65e88126f8b67fa52bc1cdad9b1eb44f52709925 +++ /dev/null @@ -1,82 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - is_returned: true - } - } - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - int_literal { - value: 0 - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - then_block { - statements { - assign { - lhs { - identifier { - name: "x" - } - } - rhs { - int_literal { - value: 0 - } - } - op: Plain - } - } - } - } - } - statements { - return_var_statement { - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/673f35f759ee84f2f94657b0930f2b74b429b144 b/explorer/fuzzing/fuzzer_corpus/673f35f759ee84f2f94657b0930f2b74b429b144 deleted file mode 100644 index 0af04260575cb..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/673f35f759ee84f2f94657b0930f2b74b429b144 +++ /dev/null @@ -1,224 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Iface" - } - members { - let { - pattern { - generic_binding { - name: "N" - type { - int_type_literal { - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "PickType" - } - param_pattern { - fields { - binding_pattern { - name: "N" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - type_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_type_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "Iface" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "PickType" - } - } - argument { - tuple_literal { - fields { - simple_member_access { - field: "N" - object { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - where { - base { - identifier { - name: "Iface" - } - } - clauses { - rewrite { - member_name: "N" - replacement { - int_literal { - value: 5 - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/676dcd14b69ef443edb46d3f7d0bb24e07d4acbd b/explorer/fuzzing/fuzzer_corpus/676dcd14b69ef443edb46d3f7d0bb24e07d4acbd deleted file mode 100644 index 219b02ef70b16..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/676dcd14b69ef443edb46d3f7d0bb24e07d4acbd +++ /dev/null @@ -1,104 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - is_returned: false - } - } - statements { - while_statement { - condition { - operator { - op: Eq - arguments { - identifier { - name: "x" - } - } - arguments { - int_literal { - value: 0 - } - } - } - } - body { - statements { - assign { - lhs { - identifier { - name: "y" - } - } - rhs { - int_literal { - value: 1 - } - } - op: Plain - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/67b09e185ee33d38580bc1ae4be51419b7a7ebc9 b/explorer/fuzzing/fuzzer_corpus/67b09e185ee33d38580bc1ae4be51419b7a7ebc9 deleted file mode 100644 index 5f7fa53b58312..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/67b09e185ee33d38580bc1ae4be51419b7a7ebc9 +++ /dev/null @@ -1,94 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "x" - type { - auto_pattern { - } - } - } - } - fields { - binding_pattern { - name: "y" - type { - auto_pattern { - } - } - } - } - } - } - init { - tuple_literal { - fields { - int_literal { - value: 2 - } - } - fields { - int_literal { - value: 3 - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - operator { - op: Sub - arguments { - identifier { - name: "y" - } - } - arguments { - identifier { - name: "x" - } - } - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/693c700b7aee574a54f5703171f786851195a97b b/explorer/fuzzing/fuzzer_corpus/693c700b7aee574a54f5703171f786851195a97b deleted file mode 100644 index 23555d3a58f69..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/693c700b7aee574a54f5703171f786851195a97b +++ /dev/null @@ -1,120 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "A" - } - } - } - } - } - } - } - } - init { - operator { - op: AddressOf - arguments { - identifier { - name: "a" - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - identifier { - name: "b" - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/693eab692d17bea44af514d53bc2373d40ab0927 b/explorer/fuzzing/fuzzer_corpus/693eab692d17bea44af514d53bc2373d40ab0927 deleted file mode 100644 index 90d1bb579110a..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/693eab692d17bea44af514d53bc2373d40ab0927 +++ /dev/null @@ -1,137 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "val" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 3 - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Interface: {0}" - } - } - fields { - call { - function { - compound_member_access { - object { - identifier { - name: "val" - } - } - path { - simple_member_access { - field: "Op" - object { - identifier { - name: "Negate" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Op: {0}" - } - } - fields { - operator { - op: Neg - arguments { - identifier { - name: "val" - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/69db4f861b4949d098e5705e9392d06585a5c8a9 b/explorer/fuzzing/fuzzer_corpus/69db4f861b4949d098e5705e9392d06585a5c8a9 deleted file mode 100644 index a9c79f8e774e9..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/69db4f861b4949d098e5705e9392d06585a5c8a9 +++ /dev/null @@ -1,63 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "T" - type { - tuple_literal { - fields { - int_type_literal { - } - } - fields { - int_type_literal { - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/6a95e8884b0a9a11c49828db369179c7d52e6f7f b/explorer/fuzzing/fuzzer_corpus/6a95e8884b0a9a11c49828db369179c7d52e6f7f deleted file mode 100644 index 2611e3ee3d625..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/6a95e8884b0a9a11c49828db369179c7d52e6f7f +++ /dev/null @@ -1,175 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "f" - } - param_pattern { - fields { - tuple_pattern { - fields { - var_pattern { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - fields { - binding_pattern { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - assign { - lhs { - identifier { - name: "x" - } - } - rhs { - int_literal { - value: 0 - } - } - op: Plain - } - } - statements { - assign { - lhs { - identifier { - name: "y" - } - } - rhs { - int_literal { - value: 0 - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - identifier { - name: "x" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "t" - type { - auto_pattern { - } - } - } - } - init { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 2 - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "f" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "t" - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/6ab7d6a964a424b00748ce1b65fedc4cce3ee1c8 b/explorer/fuzzing/fuzzer_corpus/6ab7d6a964a424b00748ce1b65fedc4cce3ee1c8 deleted file mode 100644 index 49af0d492e2ca..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/6ab7d6a964a424b00748ce1b65fedc4cce3ee1c8 +++ /dev/null @@ -1,469 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - mixin { - name { - name: "Operations" - } - members { - function { - name { - name: "Square" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Mul - arguments { - identifier { - name: "x" - } - } - arguments { - identifier { - name: "x" - } - } - } - } - } - } - } - } - } - self { - name: "Self" - type { - type_type_literal { - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point" - } - members { - function { - name { - name: "Origin" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 0 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - mix { - mixin { - identifier { - name: "Operations" - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Complex" - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Complex" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "r" - expression { - int_literal { - value: 0 - } - } - } - fields { - name: "i" - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "r" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "i" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - mix { - mixin { - identifier { - name: "Operations" - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Origin" - object { - identifier { - name: "Point" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - identifier { - name: "Complex" - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Zero" - object { - identifier { - name: "Complex" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - simple_member_access { - field: "x" - object { - identifier { - name: "p" - } - } - } - } - rhs { - int_literal { - value: 3 - } - } - op: Plain - } - } - statements { - assign { - lhs { - simple_member_access { - field: "r" - object { - identifier { - name: "c" - } - } - } - } - rhs { - int_literal { - value: 4 - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - operator { - op: Sub - arguments { - call { - function { - simple_member_access { - field: "Square" - object { - identifier { - name: "p" - } - } - } - } - argument { - tuple_literal { - fields { - simple_member_access { - field: "x" - object { - identifier { - name: "p" - } - } - } - } - } - } - } - } - arguments { - call { - function { - simple_member_access { - field: "Square" - object { - identifier { - name: "c" - } - } - } - } - argument { - tuple_literal { - fields { - simple_member_access { - field: "r" - object { - identifier { - name: "c" - } - } - } - } - } - } - } - } - } - } - arguments { - int_literal { - value: 7 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/6ac46cfb4a998ede3392679c83839398fffea96f b/explorer/fuzzing/fuzzer_corpus/6ac46cfb4a998ede3392679c83839398fffea96f deleted file mode 100644 index 4c85777b0daca..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/6ac46cfb4a998ede3392679c83839398fffea96f +++ /dev/null @@ -1,45 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Vector" - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - int_type_literal { - } - } - interface { - identifier { - name: "Vector" - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/6ad89dc865016d2d3a0841b78165e85a1f10a15d b/explorer/fuzzing/fuzzer_corpus/6ad89dc865016d2d3a0841b78165e85a1f10a15d deleted file mode 100644 index d0f1e25f56759..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/6ad89dc865016d2d3a0841b78165e85a1f10a15d +++ /dev/null @@ -1,184 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "ComputeSum" - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Auto - } - body { - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - identifier { - name: "x" - } - } - arguments { - int_literal { - value: 0 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - else_block { - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - identifier { - name: "y" - } - } - arguments { - int_literal { - value: 0 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - identifier { - name: "y" - } - } - } - } - } - else_block { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - identifier { - name: "x" - } - } - arguments { - identifier { - name: "y" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - call { - function { - identifier { - name: "ComputeSum" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 2 - } - } - } - } - } - } - arguments { - int_literal { - value: 3 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/6ae5582a206dd285cc4b6a16c4b43ee0eac60513 b/explorer/fuzzing/fuzzer_corpus/6ae5582a206dd285cc4b6a16c4b43ee0eac60513 deleted file mode 100644 index 90c624dd658ec..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/6ae5582a206dd285cc4b6a16c4b43ee0eac60513 +++ /dev/null @@ -1,373 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Number" - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "other" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - int_type_literal { - } - } - interface { - identifier { - name: "Number" - } - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "other" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - identifier { - name: "self" - } - } - arguments { - identifier { - name: "other" - } - } - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "A" - } - members { - variable { - binding { - name: "value_a" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - type_params { - fields { - generic_binding { - name: "T" - type { - identifier { - name: "Number" - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "B" - } - members { - variable { - binding { - name: "value_b" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "B" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "base" - expression { - struct_literal { - fields { - name: "value_a" - expression { - int_literal { - value: 1 - } - } - } - } - } - } - fields { - name: "value_b" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "value_b" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "value_a" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/6b36dec52800ad9f326b75b51de5237a009abddf b/explorer/fuzzing/fuzzer_corpus/6b36dec52800ad9f326b75b51de5237a009abddf deleted file mode 100644 index cb64a4e99cbbd..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/6b36dec52800ad9f326b75b51de5237a009abddf +++ /dev/null @@ -1,425 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Vector" - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "ScaleGeneric" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "Vector" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "s" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Scale" - object { - identifier { - name: "a" - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "s" - } - } - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Point" - } - } - interface { - identifier { - name: "Vector" - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 3 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - call { - function { - identifier { - name: "ScaleGeneric" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "a" - } - } - fields { - int_literal { - value: 2 - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "b" - } - } - } - } - arguments { - int_literal { - value: 6 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/6b55b4906ab4a1bc8fb2e2c1dcb9815fccbc857e b/explorer/fuzzing/fuzzer_corpus/6b55b4906ab4a1bc8fb2e2c1dcb9815fccbc857e deleted file mode 100644 index 1610d325e9dab..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/6b55b4906ab4a1bc8fb2e2c1dcb9815fccbc857e +++ /dev/null @@ -1,570 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - operator { - op: BitShiftLeft - arguments { - int_literal { - value: 1 - } - } - arguments { - int_literal { - value: 0 - } - } - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - operator { - op: BitShiftLeft - arguments { - int_literal { - value: 1 - } - } - arguments { - int_literal { - value: 3 - } - } - } - } - arguments { - int_literal { - value: 8 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - operator { - op: BitShiftLeft - arguments { - int_literal { - value: 0 - } - } - arguments { - int_literal { - value: 3 - } - } - } - } - arguments { - int_literal { - value: 0 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 3 - } - } - } - } - } - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - operator { - op: BitShiftLeft - arguments { - int_literal { - value: 3 - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - arguments { - int_literal { - value: 6 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 4 - } - } - } - } - } - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - operator { - op: BitShiftLeft - arguments { - operator { - op: Neg - arguments { - int_literal { - value: 1 - } - } - } - } - arguments { - int_literal { - value: 2 - } - } - } - } - arguments { - operator { - op: Neg - arguments { - int_literal { - value: 4 - } - } - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 5 - } - } - } - } - } - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - operator { - op: BitShiftRight - arguments { - int_literal { - value: 1 - } - } - arguments { - int_literal { - value: 0 - } - } - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 6 - } - } - } - } - } - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - operator { - op: BitShiftRight - arguments { - int_literal { - value: 1 - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - arguments { - int_literal { - value: 0 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 7 - } - } - } - } - } - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - operator { - op: BitShiftRight - arguments { - int_literal { - value: 3 - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 8 - } - } - } - } - } - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - operator { - op: BitShiftRight - arguments { - operator { - op: Neg - arguments { - int_literal { - value: 1 - } - } - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - arguments { - operator { - op: Neg - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 9 - } - } - } - } - } - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - operator { - op: BitShiftRight - arguments { - operator { - op: Neg - arguments { - int_literal { - value: 2 - } - } - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - arguments { - operator { - op: Neg - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 10 - } - } - } - } - } - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 1 - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "n" - } - } - rhs { - int_literal { - value: 3 - } - } - op: ShiftLeft - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - identifier { - name: "n" - } - } - } - } - } - } - } - } - statements { - assign { - lhs { - identifier { - name: "n" - } - } - rhs { - int_literal { - value: 1 - } - } - op: ShiftRight - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - identifier { - name: "n" - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/6b8b5a07609562f73a0fea986fe4fbaac6f07302 b/explorer/fuzzing/fuzzer_corpus/6b8b5a07609562f73a0fea986fe4fbaac6f07302 deleted file mode 100644 index 5a96f25364639..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/6b8b5a07609562f73a0fea986fe4fbaac6f07302 +++ /dev/null @@ -1,75 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Vector" - } - members { - function { - name { - name: "ScalarZero" - } - param_pattern { - } - return_term { - kind: Expression - type { - simple_member_access { - field: "ScalarType" - object { - identifier { - name: "Self" - } - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "ScalarType" - type { - type_type_literal { - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/6b8d32899c42da294378f3bcdd6b31bb825ceaa7 b/explorer/fuzzing/fuzzer_corpus/6b8d32899c42da294378f3bcdd6b31bb825ceaa7 deleted file mode 100644 index 1db5a557e7533..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/6b8d32899c42da294378f3bcdd6b31bb825ceaa7 +++ /dev/null @@ -1,260 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - destructor { - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "DESTRUCTOR A {0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - array_type_literal { - element_type { - identifier { - name: "A" - } - } - size { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - init { - tuple_literal { - fields { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 6 - } - } - } - } - } - fields { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 5 - } - } - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - array_type_literal { - element_type { - array_type_literal { - element_type { - identifier { - name: "A" - } - } - size { - int_literal { - value: 2 - } - } - } - } - size { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - init { - tuple_literal { - fields { - tuple_literal { - fields { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 4 - } - } - } - } - } - fields { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 3 - } - } - } - } - } - } - } - fields { - tuple_literal { - fields { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 2 - } - } - } - } - } - fields { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/6bd6a2e44dbfe2c7012bc97507b56ec79d14ec36 b/explorer/fuzzing/fuzzer_corpus/6bd6a2e44dbfe2c7012bc97507b56ec79d14ec36 deleted file mode 100644 index 29db6b7526a06..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/6bd6a2e44dbfe2c7012bc97507b56ec79d14ec36 +++ /dev/null @@ -1,128 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - mixin { - name { - name: "M1" - } - members { - function { - name { - name: "F1" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - members { - mix { - mixin { - identifier { - name: "M1" - } - } - } - } - self { - name: "Self" - type { - type_type_literal { - } - } - } - } - } - declarations { - class_declaration { - name { - name: "C" - } - members { - mix { - mixin { - identifier { - name: "M1" - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/6bf3f7a037ac5bcdfff8b904bdd801aa04e6e3f9 b/explorer/fuzzing/fuzzer_corpus/6bf3f7a037ac5bcdfff8b904bdd801aa04e6e3f9 deleted file mode 100644 index b17b3a5b53344..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/6bf3f7a037ac5bcdfff8b904bdd801aa04e6e3f9 +++ /dev/null @@ -1,73 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "C" - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - auto_pattern { - } - } - } - } - init { - identifier { - name: "C" - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "a" - } - } - rhs { - int_type_literal { - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/6cef9effeb2257bb69c9b96fe57051bdaf07ebdc b/explorer/fuzzing/fuzzer_corpus/6cef9effeb2257bb69c9b96fe57051bdaf07ebdc deleted file mode 100644 index 2dfa749b79bba..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/6cef9effeb2257bb69c9b96fe57051bdaf07ebdc +++ /dev/null @@ -1,88 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "s" - type { - expression_pattern { - expression { - string_type_literal { - } - } - } - } - } - } - init { - string_literal { - value: "A \"block\" \"\"string\"\" literal\n with indent.\n" - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - identifier { - name: "s" - } - } - arguments { - string_literal { - value: "A \"block\" \"\"string\"\" literal\n with indent.\n" - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - else_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/6d446a00a2ec3646a47ca64c9d47900af609c04d b/explorer/fuzzing/fuzzer_corpus/6d446a00a2ec3646a47ca64c9d47900af609c04d deleted file mode 100644 index 9b1be9bca283b..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/6d446a00a2ec3646a47ca64c9d47900af609c04d +++ /dev/null @@ -1,209 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Point" - } - members { - function { - name { - name: "Origin" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 0 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "GetX" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Origin" - object { - identifier { - name: "Point" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "GetX" - object { - identifier { - name: "p" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/6d8efa516d912ed4fb3a51abe81181ac5a3ce7de b/explorer/fuzzing/fuzzer_corpus/6d8efa516d912ed4fb3a51abe81181ac5a3ce7de deleted file mode 100644 index 08d772a8e9300..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/6d8efa516d912ed4fb3a51abe81181ac5a3ce7de +++ /dev/null @@ -1,303 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "X" - } - } - } - declarations { - interface { - name { - name: "Y" - } - members { - let { - pattern { - generic_binding { - name: "M" - type { - call { - function { - identifier { - name: "X" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - interface { - name { - name: "Z" - } - members { - let { - pattern { - generic_binding { - name: "N" - type { - where { - base { - call { - function { - identifier { - name: "Y" - } - } - argument { - tuple_literal { - fields { - designator { - name: "Self" - } - } - } - } - } - } - clauses { - impls { - type { - int_type_literal { - } - } - constraint { - call { - function { - identifier { - name: "X" - } - } - argument { - tuple_literal { - fields { - designator { - name: "Self" - } - } - } - } - } - } - } - } - clauses { - rewrite { - member_name: "M" - replacement { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - call { - function { - identifier { - name: "X" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - where { - base { - call { - function { - identifier { - name: "Y" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - clauses { - rewrite { - member_name: "M" - replacement { - int_type_literal { - } - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - where { - base { - identifier { - name: "Z" - } - } - clauses { - rewrite { - member_name: "N" - replacement { - int_type_literal { - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "A" - type { - identifier { - name: "Z" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "A" - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "a" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - } -} - diff --git a/explorer/fuzzing/fuzzer_corpus/6e805a62f04827f2dab730e0bda6d7e3b2a396ac b/explorer/fuzzing/fuzzer_corpus/6e805a62f04827f2dab730e0bda6d7e3b2a396ac deleted file mode 100644 index 0849963d17bc7..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/6e805a62f04827f2dab730e0bda6d7e3b2a396ac +++ /dev/null @@ -1,92 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "t" - type { - auto_pattern { - } - } - } - } - init { - int_literal { - value: 5 - } - } - is_returned: false - } - } - statements { - match { - expression { - identifier { - name: "t" - } - } - clauses { - pattern { - expression_pattern { - expression { - int_literal { - value: 5 - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - clauses { - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - is_default: true - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/6ea3e5dc732350e61fa2e1b2b4af3dac49fbd7a2 b/explorer/fuzzing/fuzzer_corpus/6ea3e5dc732350e61fa2e1b2b4af3dac49fbd7a2 deleted file mode 100644 index 302e0480a2cfe..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/6ea3e5dc732350e61fa2e1b2b4af3dac49fbd7a2 +++ /dev/null @@ -1,165 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "swap" - } - deduced_parameters { - name: "T" - type { - type_type_literal { - } - } - } - deduced_parameters { - name: "U" - type { - type_type_literal { - } - } - } - param_pattern { - fields { - binding_pattern { - name: "tuple" - type { - expression_pattern { - expression { - tuple_literal { - fields { - identifier { - name: "T" - } - } - fields { - identifier { - name: "U" - } - } - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - tuple_literal { - fields { - identifier { - name: "U" - } - } - fields { - identifier { - name: "T" - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - tuple_literal { - fields { - index { - object { - identifier { - name: "tuple" - } - } - offset { - int_literal { - value: 1 - } - } - } - } - fields { - index { - object { - identifier { - name: "tuple" - } - } - offset { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - index { - object { - call { - function { - identifier { - name: "swap" - } - } - argument { - tuple_literal { - fields { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - fields { - bool_literal { - value: true - } - } - } - } - } - } - } - } - offset { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/700edad66fdc0ecca488b76faa561bd812a32de1 b/explorer/fuzzing/fuzzer_corpus/700edad66fdc0ecca488b76faa561bd812a32de1 deleted file mode 100644 index a38b540e812a4..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/700edad66fdc0ecca488b76faa561bd812a32de1 +++ /dev/null @@ -1,88 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "s" - type { - expression_pattern { - expression { - string_type_literal { - } - } - } - } - } - } - init { - string_literal { - value: "A block string literal\n\'\'\'#\n" - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - identifier { - name: "s" - } - } - arguments { - string_literal { - value: "A block string literal\n\'\'\'#\n" - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - else_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/70381203ec4a62c0892c9169af38afda36aff77b b/explorer/fuzzing/fuzzer_corpus/70381203ec4a62c0892c9169af38afda36aff77b deleted file mode 100644 index 2a76c871ecbc7..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/70381203ec4a62c0892c9169af38afda36aff77b +++ /dev/null @@ -1,269 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - function { - name { - name: "Create" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "value_a" - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "value_a" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "B" - } - members { - function { - name { - name: "Create" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "base" - expression { - call { - function { - simple_member_access { - field: "Create" - object { - identifier { - name: "A" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - fields { - name: "value_b" - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "value_b" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "B" - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Create" - object { - identifier { - name: "B" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "value_a" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "value_b" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/70c1ffb0e5928af3588ad282ca66e09cecea781f b/explorer/fuzzing/fuzzer_corpus/70c1ffb0e5928af3588ad282ca66e09cecea781f deleted file mode 100644 index 33d5d73ffd5cf..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/70c1ffb0e5928af3588ad282ca66e09cecea781f +++ /dev/null @@ -1,84 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "different types equal: {0}" - } - } - fields { - if_expression { - condition { - operator { - op: Eq - arguments { - int_literal { - value: 1 - } - } - arguments { - string_literal { - value: "1" - } - } - } - } - then_expression { - int_literal { - value: 1 - } - } - else_expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/70e5a8e81363e001a3c04485baff3c0b45f543c7 b/explorer/fuzzing/fuzzer_corpus/70e5a8e81363e001a3c04485baff3c0b45f543c7 deleted file mode 100644 index 42fd798eecdd7..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/70e5a8e81363e001a3c04485baff3c0b45f543c7 +++ /dev/null @@ -1,171 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "C" - } - type_params { - fields { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "F" - } - param_pattern { - fields { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - } - return_term { - kind: Expression - type { - type_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "C" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "w" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "C" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - identifier { - name: "v" - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/71343714ac735fe6c6370bebfe3f30e2555fceed b/explorer/fuzzing/fuzzer_corpus/71343714ac735fe6c6370bebfe3f30e2555fceed deleted file mode 100644 index 612068e6f38e4..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/71343714ac735fe6c6370bebfe3f30e2555fceed +++ /dev/null @@ -1,202 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - mixin { - name { - name: "M1" - } - members { - function { - name { - name: "F1" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - self { - name: "Self" - type { - type_type_literal { - } - } - } - } - } - declarations { - mixin { - name { - name: "M2" - } - members { - function { - name { - name: "F2" - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - members { - mix { - mixin { - identifier { - name: "M1" - } - } - } - } - self { - name: "Self" - type { - type_type_literal { - } - } - } - } - } - declarations { - mixin { - name { - name: "M3" - } - members { - mix { - mixin { - identifier { - name: "M1" - } - } - } - } - members { - function { - name { - name: "F3" - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - self { - name: "Self" - type { - type_type_literal { - } - } - } - } - } - declarations { - class_declaration { - name { - name: "C" - } - members { - mix { - mixin { - identifier { - name: "M2" - } - } - } - } - members { - mix { - mixin { - identifier { - name: "M3" - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/7196097c3c0a0a0c5e13f3ebd44cb8f70e3a369e b/explorer/fuzzing/fuzzer_corpus/7196097c3c0a0a0c5e13f3ebd44cb8f70e3a369e deleted file mode 100644 index 417f2c621c2ab..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/7196097c3c0a0a0c5e13f3ebd44cb8f70e3a369e +++ /dev/null @@ -1,82 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Id" - } - param_pattern { - fields { - binding_pattern { - name: "t" - type { - expression_pattern { - expression { - type_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Auto - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "t" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - call { - function { - identifier { - name: "Id" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/72e14e2a23ba4e07dd8ecac1d2a0f307982e22fd b/explorer/fuzzing/fuzzer_corpus/72e14e2a23ba4e07dd8ecac1d2a0f307982e22fd deleted file mode 100644 index 8963f9b200df5..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/72e14e2a23ba4e07dd8ecac1d2a0f307982e22fd +++ /dev/null @@ -1,230 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Has" - } - members { - function { - name { - name: "Get" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - call { - function { - identifier { - name: "Has" - } - } - argument { - tuple_literal { - fields { - type_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "Get" - } - param_pattern { - } - return_term { - kind: Expression - type { - type_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "WithType" - } - members { - function { - name { - name: "Get" - } - param_pattern { - } - return_term { - kind: Expression - type { - type_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Get" - object { - identifier { - name: "T" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - type_params { - fields { - generic_binding { - name: "T" - type { - call { - function { - identifier { - name: "Has" - } - } - argument { - tuple_literal { - fields { - type_type_literal { - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "Get" - object { - call { - function { - identifier { - name: "WithType" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "v" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/7301e760d4cd4136a6260e0e5db5f884621f6711 b/explorer/fuzzing/fuzzer_corpus/7301e760d4cd4136a6260e0e5db5f884621f6711 deleted file mode 100644 index c248ed49c9131..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/7301e760d4cd4136a6260e0e5db5f884621f6711 +++ /dev/null @@ -1,70 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Foo" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/743374116966cde7bea7be19c3b44f4f4742cc84 b/explorer/fuzzing/fuzzer_corpus/743374116966cde7bea7be19c3b44f4f4742cc84 deleted file mode 100644 index 81933fb0fa20d..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/743374116966cde7bea7be19c3b44f4f4742cc84 +++ /dev/null @@ -1,173 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p1" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 1 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "p2" - type { - auto_pattern { - } - } - } - } - init { - identifier { - name: "p1" - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "p2" - } - } - rhs { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 3 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 2 - } - } - } - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "p1" - } - } - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/746204b64652d56258e37760629e723c7162cc3a b/explorer/fuzzing/fuzzer_corpus/746204b64652d56258e37760629e723c7162cc3a deleted file mode 100644 index 1cb428d81e5ae..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/746204b64652d56258e37760629e723c7162cc3a +++ /dev/null @@ -1,274 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "LazyEq" - } - members { - variable { - binding { - name: "v1" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "v2" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - call { - function { - identifier { - name: "ImplicitAs" - } - } - argument { - tuple_literal { - fields { - bool_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "Convert" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - bool_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Eq - arguments { - simple_member_access { - field: "v1" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "v2" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Make" - } - param_pattern { - fields { - binding_pattern { - name: "v1" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "v2" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "v1" - expression { - identifier { - name: "v1" - } - } - } - fields { - name: "v2" - expression { - identifier { - name: "v2" - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - if_expression { - condition { - call { - function { - simple_member_access { - field: "Make" - object { - identifier { - name: "LazyEq" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 2 - } - } - fields { - operator { - op: Add - arguments { - int_literal { - value: 1 - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - then_expression { - int_literal { - value: 1 - } - } - else_expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/747118a48116697aaf5e83f4d15e75409118b8b1 b/explorer/fuzzing/fuzzer_corpus/747118a48116697aaf5e83f4d15e75409118b8b1 deleted file mode 100644 index 18c152acd9b40..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/747118a48116697aaf5e83f4d15e75409118b8b1 +++ /dev/null @@ -1,172 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Vector" - } - members { - let { - pattern { - generic_binding { - name: "Dim" - type { - int_type_literal { - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - where { - base { - identifier { - name: "Vector" - } - } - clauses { - rewrite { - member_name: "Dim" - replacement { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 2 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - compound_member_access { - object { - identifier { - name: "a" - } - } - path { - simple_member_access { - field: "Dim" - object { - identifier { - name: "Vector" - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/74f4572d6afa47a85b20d69c03c4b5818229508b b/explorer/fuzzing/fuzzer_corpus/74f4572d6afa47a85b20d69c03c4b5818229508b deleted file mode 100644 index 4245a2e59b48d..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/74f4572d6afa47a85b20d69c03c4b5818229508b +++ /dev/null @@ -1,125 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - choice { - name { - name: "Ints" - } - alternatives { - name: "None" - signature { - } - } - alternatives { - name: "One" - signature { - fields { - int_type_literal { - } - } - } - } - alternatives { - name: "Two" - signature { - fields { - int_type_literal { - } - } - fields { - int_type_literal { - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - match { - expression { - call { - function { - simple_member_access { - field: "None" - object { - identifier { - name: "Ints" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - clauses { - pattern { - expression_pattern { - expression { - simple_member_access { - field: "None" - object { - identifier { - name: "Ints" - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - clauses { - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - is_default: true - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/750a107625f4dae089bbb0769a301289e768e3aa b/explorer/fuzzing/fuzzer_corpus/750a107625f4dae089bbb0769a301289e768e3aa deleted file mode 100644 index e40a3cf778556..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/750a107625f4dae089bbb0769a301289e768e3aa +++ /dev/null @@ -1,359 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Shape" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point" - } - members { - function { - name { - name: "Origin" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 0 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "GetSetX" - } - self_pattern { - addr_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "Shape" - } - } - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "old" - type { - auto_pattern { - } - } - } - } - init { - simple_member_access { - field: "x" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - simple_member_access { - field: "x" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - rhs { - identifier { - name: "x" - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "old" - } - } - } - } - } - } - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Origin" - object { - identifier { - name: "Point" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - auto_pattern { - } - } - } - } - init { - call { - function { - simple_member_access { - field: "GetSetX" - object { - identifier { - name: "p" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 42 - } - } - } - } - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "p" - } - } - } - } - arguments { - int_literal { - value: 42 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/75bf07b0ccfce55eb53f712ddb01b97724ec0fe8 b/explorer/fuzzing/fuzzer_corpus/75bf07b0ccfce55eb53f712ddb01b97724ec0fe8 deleted file mode 100644 index 132f8c7f84fbc..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/75bf07b0ccfce55eb53f712ddb01b97724ec0fe8 +++ /dev/null @@ -1,116 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "CompareStr" - } - param_pattern { - fields { - binding_pattern { - name: "s" - type { - expression_pattern { - expression { - string_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - identifier { - name: "s" - } - } - arguments { - string_literal { - value: "str;\007" - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "CompareStr" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "str;\007" - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/768d1a1eca62b0a19d89ded728ccb834470015a1 b/explorer/fuzzing/fuzzer_corpus/768d1a1eca62b0a19d89ded728ccb834470015a1 deleted file mode 100644 index 7f0a66143fe39..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/768d1a1eca62b0a19d89ded728ccb834470015a1 +++ /dev/null @@ -1,70 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - auto_pattern { - } - } - } - } - init { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - fields { - int_literal { - value: 1 - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - index { - object { - identifier { - name: "x" - } - } - offset { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/77c33306ba5c8c2cdc3024719f87f55a2724c754 b/explorer/fuzzing/fuzzer_corpus/77c33306ba5c8c2cdc3024719f87f55a2724c754 deleted file mode 100644 index 4b92ea73ac87e..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/77c33306ba5c8c2cdc3024719f87f55a2724c754 +++ /dev/null @@ -1,52 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - constraint { - name { - name: "X" - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Omitted - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/785b758dbefa9d1df1a68e97b99529245a615e0a b/explorer/fuzzing/fuzzer_corpus/785b758dbefa9d1df1a68e97b99529245a615e0a deleted file mode 100644 index fc1da3a98da19..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/785b758dbefa9d1df1a68e97b99529245a615e0a +++ /dev/null @@ -1,184 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - variable { - binding { - name: "v" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - type_params { - fields { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "F" - } - param_pattern { - fields { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "A" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "v" - expression { - identifier { - name: "x" - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - simple_member_access { - field: "v" - object { - identifier { - name: "v" - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - fields { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/79176b267da0dd33a6ca194a94b38a711707c24d b/explorer/fuzzing/fuzzer_corpus/79176b267da0dd33a6ca194a94b38a711707c24d deleted file mode 100644 index e1eefeb25e905..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/79176b267da0dd33a6ca194a94b38a711707c24d +++ /dev/null @@ -1,227 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Container" - } - members { - let { - pattern { - generic_binding { - name: "Element" - type { - type_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "Front" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Element" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "A" - } - deduced_parameters { - name: "T" - type { - where { - base { - identifier { - name: "Container" - } - } - clauses { - rewrite { - member_name: "Element" - replacement { - int_type_literal { - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - simple_member_access { - field: "Element" - object { - identifier { - name: "T" - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Front" - object { - identifier { - name: "x" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "B" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "Container" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "A" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "x" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/7953600f9a139afbc9c5259103942beeebe2137c b/explorer/fuzzing/fuzzer_corpus/7953600f9a139afbc9c5259103942beeebe2137c deleted file mode 100644 index f112acad966e6..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/7953600f9a139afbc9c5259103942beeebe2137c +++ /dev/null @@ -1,163 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "t" - type { - auto_pattern { - } - } - } - } - init { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 2 - } - } - fields { - int_literal { - value: 3 - } - } - fields { - int_literal { - value: 4 - } - } - } - } - is_returned: false - } - } - statements { - match { - expression { - identifier { - name: "t" - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - auto_pattern { - } - } - } - } - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "y" - type { - auto_pattern { - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - operator { - op: Sub - arguments { - identifier { - name: "y" - } - } - arguments { - identifier { - name: "x" - } - } - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/7966121e536a00b3ed0b612ec9c4129af371106e b/explorer/fuzzing/fuzzer_corpus/7966121e536a00b3ed0b612ec9c4129af371106e deleted file mode 100644 index f968b7b3e925d..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/7966121e536a00b3ed0b612ec9c4129af371106e +++ /dev/null @@ -1,62 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/797132dd445ddf47c9af603d780036bc0ffeac83 b/explorer/fuzzing/fuzzer_corpus/797132dd445ddf47c9af603d780036bc0ffeac83 deleted file mode 100644 index 6e52c1eba18b4..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/797132dd445ddf47c9af603d780036bc0ffeac83 +++ /dev/null @@ -1,1122 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "AddMul" - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "o" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - members { - function { - name { - name: "Mul" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "o" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - int_type_literal { - } - } - interface { - identifier { - name: "AddMul" - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "o" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - identifier { - name: "self" - } - } - arguments { - identifier { - name: "o" - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Mul" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "o" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Mul - arguments { - identifier { - name: "self" - } - } - arguments { - identifier { - name: "o" - } - } - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Holder" - } - members { - variable { - binding { - name: "v" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - type_params { - fields { - generic_binding { - name: "T" - type { - identifier { - name: "AddMul" - } - } - } - } - } - } - } - declarations { - interface { - name { - name: "Vector" - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - identifier { - name: "Scalar" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - members { - function { - name { - name: "Hold" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - identifier { - name: "Scalar" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - call { - function { - identifier { - name: "Holder" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "Scalar" - } - } - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Point" - } - } - interface { - call { - function { - identifier { - name: "Vector" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 0 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Mul - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "v" - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Mul - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "v" - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Hold" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - call { - function { - identifier { - name: "Holder" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "v" - expression { - identifier { - name: "v" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "AddAndScaleGeneric" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "AddMul" - } - } - } - deduced_parameters { - name: "U" - type { - call { - function { - identifier { - name: "Vector" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "U" - } - } - } - } - } - } - fields { - binding_pattern { - name: "s" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "U" - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Scale" - object { - call { - function { - simple_member_access { - field: "Add" - object { - identifier { - name: "a" - } - } - } - } - argument { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "Zero" - object { - identifier { - name: "U" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - simple_member_access { - field: "v" - object { - call { - function { - simple_member_access { - field: "Hold" - object { - identifier { - name: "a" - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "s" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 2 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - call { - function { - identifier { - name: "AddAndScaleGeneric" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "a" - } - } - fields { - int_literal { - value: 5 - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "p" - } - } - } - } - arguments { - int_literal { - value: 10 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/799cb0db63d5d948ca4ce3e6a438e6d03a363b07 b/explorer/fuzzing/fuzzer_corpus/799cb0db63d5d948ca4ce3e6a438e6d03a363b07 deleted file mode 100644 index b01def49f87ab..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/799cb0db63d5d948ca4ce3e6a438e6d03a363b07 +++ /dev/null @@ -1,178 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - variable { - binding { - name: "call_count" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - initializer { - int_literal { - value: 0 - } - } - } - } - declarations { - function { - name { - name: "ReturnFalse" - } - param_pattern { - } - return_term { - kind: Expression - type { - bool_type_literal { - } - } - } - body { - statements { - assign { - lhs { - identifier { - name: "call_count" - } - } - rhs { - operator { - op: Add - arguments { - identifier { - name: "call_count" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - bool_literal { - value: false - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "result" - type { - expression_pattern { - expression { - bool_type_literal { - } - } - } - } - } - } - init { - operator { - op: And - arguments { - call { - function { - identifier { - name: "ReturnFalse" - } - } - argument { - tuple_literal { - } - } - } - } - arguments { - call { - function { - identifier { - name: "ReturnFalse" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - if_expression { - condition { - operator { - op: Not - arguments { - identifier { - name: "result" - } - } - } - } - then_expression { - identifier { - name: "call_count" - } - } - else_expression { - operator { - op: Neg - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/79d7857c66a89562059d86a9e3ee1c3a644d50ac b/explorer/fuzzing/fuzzer_corpus/79d7857c66a89562059d86a9e3ee1c3a644d50ac deleted file mode 100644 index 8cfd73595afc3..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/79d7857c66a89562059d86a9e3ee1c3a644d50ac +++ /dev/null @@ -1,117 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "TwoTypes" - } - members { - let { - pattern { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "U" - type { - type_type_literal { - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "X" - type { - where { - base { - identifier { - name: "TwoTypes" - } - } - clauses { - rewrite { - member_name: "U" - replacement { - operator { - op: Ptr - arguments { - designator { - name: "U" - } - } - } - } - } - } - clauses { - rewrite { - member_name: "T" - replacement { - designator { - name: "U" - } - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/7a5c922589df17ecc5835d3943d4e2268b75d220 b/explorer/fuzzing/fuzzer_corpus/7a5c922589df17ecc5835d3943d4e2268b75d220 deleted file mode 100644 index 196a02b160046..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/7a5c922589df17ecc5835d3943d4e2268b75d220 +++ /dev/null @@ -1,231 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "TypeLike" - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - call { - function { - identifier { - name: "ImplicitAs" - } - } - argument { - tuple_literal { - fields { - type_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "Convert" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - type_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Make" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - call { - function { - simple_member_access { - field: "Make" - object { - identifier { - name: "TypeLike" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - array_type_literal { - element_type { - call { - function { - simple_member_access { - field: "Make" - object { - identifier { - name: "TypeLike" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - size { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - init { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 2 - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - index { - object { - identifier { - name: "v" - } - } - offset { - int_literal { - value: 0 - } - } - } - } - arguments { - index { - object { - identifier { - name: "v" - } - } - offset { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/7abcaef173ca2d52652cb3457d945e27f7ee0aad b/explorer/fuzzing/fuzzer_corpus/7abcaef173ca2d52652cb3457d945e27f7ee0aad deleted file mode 100644 index 4880b99f449a6..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/7abcaef173ca2d52652cb3457d945e27f7ee0aad +++ /dev/null @@ -1,46 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - fields { - binding_pattern { - name: "i" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/7ade8ffa35294159dd8341822eaf0045b55e0eed b/explorer/fuzzing/fuzzer_corpus/7ade8ffa35294159dd8341822eaf0045b55e0eed deleted file mode 100644 index 3461a90708fca..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/7ade8ffa35294159dd8341822eaf0045b55e0eed +++ /dev/null @@ -1,124 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "ar" - type { - expression_pattern { - expression { - array_type_literal { - element_type { - int_type_literal { - } - } - size { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - init { - tuple_literal { - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "count" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - for_statement { - var_decl { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - target { - identifier { - name: "ar" - } - } - body { - statements { - assign { - lhs { - identifier { - name: "count" - } - } - rhs { - int_literal { - value: 2 - } - } - op: Plain - } - } - } - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "count" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/7bacad50af2d1a03e8895abd390b606dffe73912 b/explorer/fuzzing/fuzzer_corpus/7bacad50af2d1a03e8895abd390b606dffe73912 deleted file mode 100644 index af2b30663f0c8..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/7bacad50af2d1a03e8895abd390b606dffe73912 +++ /dev/null @@ -1,196 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "t" - type { - auto_pattern { - } - } - } - } - init { - tuple_literal { - fields { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 2 - } - } - } - } - fields { - tuple_literal { - fields { - int_literal { - value: 3 - } - } - fields { - int_literal { - value: 4 - } - } - } - } - } - } - is_returned: false - } - } - statements { - match { - expression { - identifier { - name: "t" - } - } - clauses { - pattern { - tuple_pattern { - fields { - tuple_pattern { - fields { - binding_pattern { - name: "a" - type { - auto_pattern { - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - auto_pattern { - } - } - } - } - } - } - fields { - binding_pattern { - name: "c" - type { - auto_pattern { - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - operator { - op: Sub - arguments { - operator { - op: Add - arguments { - operator { - op: Sub - arguments { - identifier { - name: "a" - } - } - arguments { - identifier { - name: "b" - } - } - } - } - arguments { - index { - object { - identifier { - name: "c" - } - } - offset { - int_literal { - value: 0 - } - } - } - } - } - } - arguments { - index { - object { - identifier { - name: "c" - } - } - offset { - int_literal { - value: 1 - } - } - } - } - } - } - arguments { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/7c0f663879e94a5b343b9cfbde2c12a5ef03a53c b/explorer/fuzzing/fuzzer_corpus/7c0f663879e94a5b343b9cfbde2c12a5ef03a53c deleted file mode 100644 index db5e25dd01399..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/7c0f663879e94a5b343b9cfbde2c12a5ef03a53c +++ /dev/null @@ -1,124 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 1 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - simple_member_access { - field: "z" - object { - identifier { - name: "p" - } - } - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/7d23fc6af8c121d6031662230dbc4c5be9cc1c71 b/explorer/fuzzing/fuzzer_corpus/7d23fc6af8c121d6031662230dbc4c5be9cc1c71 deleted file mode 100644 index aba036ad7eb2c..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/7d23fc6af8c121d6031662230dbc4c5be9cc1c71 +++ /dev/null @@ -1,155 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Point" - } - members { - function { - name { - name: "Origin" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 0 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Origin" - object { - identifier { - name: "Point" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - simple_member_access { - field: "x" - object { - identifier { - name: "p" - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/7e11ddd6225ab4f5b4768bb3e57813b7d00efd49 b/explorer/fuzzing/fuzzer_corpus/7e11ddd6225ab4f5b4768bb3e57813b7d00efd49 deleted file mode 100644 index 9a9f909711e59..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/7e11ddd6225ab4f5b4768bb3e57813b7d00efd49 +++ /dev/null @@ -1,777 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "I" - } - members { - function { - name { - name: "F" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "t" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "o" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "X" - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - call { - function { - identifier { - name: "I" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "U" - } - } - } - } - } - } - members { - function { - name { - name: "F" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "u" - type { - expression_pattern { - expression { - identifier { - name: "U" - } - } - } - } - } - } - fields { - binding_pattern { - name: "o" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "m" - expression { - identifier { - name: "u" - } - } - } - fields { - name: "n" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "n" - object { - identifier { - name: "o" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "m" - type { - expression_pattern { - expression { - identifier { - name: "U" - } - } - } - } - } - } - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - type_params { - fields { - generic_binding { - name: "U" - type { - type_type_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Run" - } - deduced_parameters { - name: "V" - type { - type_type_literal { - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "V" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - tuple_literal { - fields { - identifier { - name: "V" - } - } - fields { - identifier { - name: "V" - } - } - fields { - int_type_literal { - } - } - fields { - int_type_literal { - } - } - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "X" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "V" - } - } - } - } - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "m" - expression { - identifier { - name: "x" - } - } - } - fields { - name: "n" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "w" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "X" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "V" - } - } - } - } - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "m" - expression { - identifier { - name: "x" - } - } - } - fields { - name: "n" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "call" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "X" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "V" - } - } - } - } - } - } - } - } - } - } - init { - call { - function { - compound_member_access { - object { - identifier { - name: "v" - } - } - path { - compound_member_access { - object { - call { - function { - identifier { - name: "X" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "V" - } - } - } - } - } - } - path { - simple_member_access { - field: "F" - object { - call { - function { - identifier { - name: "I" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "V" - } - } - } - } - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "x" - } - } - fields { - identifier { - name: "w" - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - tuple_literal { - fields { - compound_member_access { - object { - identifier { - name: "call" - } - } - path { - simple_member_access { - field: "m" - object { - call { - function { - identifier { - name: "X" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "V" - } - } - } - } - } - } - } - } - } - } - fields { - simple_member_access { - field: "m" - object { - identifier { - name: "call" - } - } - } - } - fields { - compound_member_access { - object { - identifier { - name: "call" - } - } - path { - simple_member_access { - field: "n" - object { - call { - function { - identifier { - name: "X" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "V" - } - } - } - } - } - } - } - } - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "call" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "d" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - init { - call { - function { - identifier { - name: "Run" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - operator { - op: Add - arguments { - operator { - op: Add - arguments { - operator { - op: Mul - arguments { - identifier { - name: "a" - } - } - arguments { - int_literal { - value: 1000 - } - } - } - } - arguments { - operator { - op: Mul - arguments { - identifier { - name: "b" - } - } - arguments { - int_literal { - value: 100 - } - } - } - } - } - } - arguments { - operator { - op: Mul - arguments { - identifier { - name: "c" - } - } - arguments { - int_literal { - value: 10 - } - } - } - } - } - } - arguments { - identifier { - name: "d" - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/7e2746a39201e0372d5512b5d07ec968fd1296e8 b/explorer/fuzzing/fuzzer_corpus/7e2746a39201e0372d5512b5d07ec968fd1296e8 deleted file mode 100644 index 88e807ca35e0c..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/7e2746a39201e0372d5512b5d07ec968fd1296e8 +++ /dev/null @@ -1,543 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - choice { - name { - name: "Ints" - } - alternatives { - name: "None" - signature { - } - } - alternatives { - name: "One" - signature { - fields { - int_type_literal { - } - } - } - } - alternatives { - name: "Two" - signature { - fields { - int_type_literal { - } - } - fields { - int_type_literal { - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "Ints" - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "None" - object { - identifier { - name: "Ints" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "y" - type { - expression_pattern { - expression { - identifier { - name: "Ints" - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "One" - object { - identifier { - name: "Ints" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 42 - } - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - match { - expression { - identifier { - name: "y" - } - } - clauses { - pattern { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "None" - object { - identifier { - name: "Ints" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statement { - block { - statements { - assign { - lhs { - identifier { - name: "n" - } - } - rhs { - operator { - op: Add - arguments { - identifier { - name: "n" - } - } - arguments { - int_literal { - value: 2 - } - } - } - } - op: Plain - } - } - } - } - } - clauses { - pattern { - alternative_pattern { - choice_type { - identifier { - name: "Ints" - } - } - alternative_name: "One" - arguments { - fields { - binding_pattern { - name: "x" - type { - auto_pattern { - } - } - } - } - } - } - } - statement { - block { - statements { - assign { - lhs { - identifier { - name: "n" - } - } - rhs { - operator { - op: Sub - arguments { - operator { - op: Add - arguments { - identifier { - name: "x" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - arguments { - int_literal { - value: 42 - } - } - } - } - op: Plain - } - } - } - } - } - clauses { - pattern { - alternative_pattern { - choice_type { - identifier { - name: "Ints" - } - } - alternative_name: "Two" - arguments { - fields { - binding_pattern { - name: "a" - type { - auto_pattern { - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - auto_pattern { - } - } - } - } - } - } - } - statement { - block { - statements { - assign { - lhs { - identifier { - name: "n" - } - } - rhs { - int_literal { - value: 2 - } - } - op: Plain - } - } - } - } - } - } - } - statements { - match { - expression { - identifier { - name: "x" - } - } - clauses { - pattern { - alternative_pattern { - choice_type { - identifier { - name: "Ints" - } - } - alternative_name: "One" - arguments { - fields { - binding_pattern { - name: "x" - type { - auto_pattern { - } - } - } - } - } - } - } - statement { - block { - statements { - assign { - lhs { - identifier { - name: "n" - } - } - rhs { - operator { - op: Add - arguments { - identifier { - name: "x" - } - } - arguments { - int_literal { - value: 2 - } - } - } - } - op: Plain - } - } - } - } - } - clauses { - pattern { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "None" - object { - identifier { - name: "Ints" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statement { - block { - statements { - assign { - lhs { - identifier { - name: "n" - } - } - rhs { - operator { - op: Sub - arguments { - identifier { - name: "n" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - op: Plain - } - } - } - } - } - clauses { - pattern { - alternative_pattern { - choice_type { - identifier { - name: "Ints" - } - } - alternative_name: "Two" - arguments { - fields { - binding_pattern { - name: "x" - type { - auto_pattern { - } - } - } - } - fields { - binding_pattern { - name: "y" - type { - auto_pattern { - } - } - } - } - } - } - } - statement { - block { - statements { - assign { - lhs { - identifier { - name: "n" - } - } - rhs { - int_literal { - value: 5 - } - } - op: Plain - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "n" - } - } - } - } - } - } - } - declarations { - choice { - name { - name: "MoreInts" - } - alternatives { - name: "None" - signature { - } - } - alternatives { - name: "One" - signature { - fields { - int_type_literal { - } - } - } - } - alternatives { - name: "Two" - signature { - fields { - int_type_literal { - } - } - fields { - int_type_literal { - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/7e2a2d5f2ca21106e70dd832ab2c795d31dd8c17 b/explorer/fuzzing/fuzzer_corpus/7e2a2d5f2ca21106e70dd832ab2c795d31dd8c17 deleted file mode 100644 index 2e4787f3fd986..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/7e2a2d5f2ca21106e70dd832ab2c795d31dd8c17 +++ /dev/null @@ -1,70 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - auto_pattern { - } - } - } - } - init { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - fields { - int_literal { - value: 1 - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - index { - object { - identifier { - name: "x" - } - } - offset { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/7e3b1ea1f2b40cfe7dd4ce72a43cd8b5e00637f0 b/explorer/fuzzing/fuzzer_corpus/7e3b1ea1f2b40cfe7dd4ce72a43cd8b5e00637f0 deleted file mode 100644 index 292405932d2d8..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/7e3b1ea1f2b40cfe7dd4ce72a43cd8b5e00637f0 +++ /dev/null @@ -1,222 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "test" - } - param_pattern { - fields { - binding_pattern { - name: "para" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - bool_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - bool_literal { - value: true - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "i" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - call { - function { - identifier { - name: "Rand" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - fields { - int_literal { - value: 100 - } - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "j" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - call { - function { - identifier { - name: "Rand" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - fields { - int_literal { - value: 100 - } - } - } - } - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - identifier { - name: "i" - } - } - arguments { - identifier { - name: "j" - } - } - } - } - then_block { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "HALLO WELT" - } - } - } - } - } - } - } - } - } - else_block { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Nice!" - } - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/7e9eeb66c47e49e06eeff2d93fb401f467c30fdf b/explorer/fuzzing/fuzzer_corpus/7e9eeb66c47e49e06eeff2d93fb401f467c30fdf deleted file mode 100644 index d93827bbdd495..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/7e9eeb66c47e49e06eeff2d93fb401f467c30fdf +++ /dev/null @@ -1,344 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "SwizzleWith" - } - members { - function { - name { - name: "Op" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - call { - function { - identifier { - name: "SwizzleWith" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "Op" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - operator { - op: Mul - arguments { - identifier { - name: "self" - } - } - arguments { - int_literal { - value: 10 - } - } - } - } - arguments { - identifier { - name: "x" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "T" - type { - call { - function { - identifier { - name: "SwizzleWith" - } - } - argument { - tuple_literal { - fields { - designator { - name: "Self" - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "w" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Op" - object { - identifier { - name: "v" - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "w" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "one" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 1 - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "two" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 2 - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "one" - } - } - fields { - identifier { - name: "two" - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/7ef42cdd9381bb7dc751b0530516414d10b58d68 b/explorer/fuzzing/fuzzer_corpus/7ef42cdd9381bb7dc751b0530516414d10b58d68 deleted file mode 100644 index 21b083c51a0bb..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/7ef42cdd9381bb7dc751b0530516414d10b58d68 +++ /dev/null @@ -1,52 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - auto_pattern { - } - } - } - } - init { - identifier { - name: "a" - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/7f260f482af7146c582240a9b8de772dcdffe0f3 b/explorer/fuzzing/fuzzer_corpus/7f260f482af7146c582240a9b8de772dcdffe0f3 deleted file mode 100644 index 4f2c6576b1b33..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/7f260f482af7146c582240a9b8de772dcdffe0f3 +++ /dev/null @@ -1,251 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "I" - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - identifier { - name: "I" - } - } - } - } - declarations { - function { - name { - name: "F" - } - param_pattern { - fields { - generic_binding { - name: "A" - type { - int_type_literal { - } - } - } - } - fields { - generic_binding { - name: "B" - type { - int_type_literal { - } - } - } - } - fields { - generic_binding { - name: "C" - type { - int_type_literal { - } - } - } - } - fields { - generic_binding { - name: "D" - type { - int_type_literal { - } - } - } - } - fields { - generic_binding { - name: "E" - type { - int_type_literal { - } - } - } - } - fields { - generic_binding { - name: "T" - type { - where { - base { - identifier { - name: "I" - } - } - clauses { - equals { - lhs { - identifier { - name: "A" - } - } - rhs { - identifier { - name: "B" - } - } - } - } - clauses { - equals { - lhs { - identifier { - name: "C" - } - } - rhs { - identifier { - name: "D" - } - } - } - } - clauses { - equals { - lhs { - identifier { - name: "C" - } - } - rhs { - identifier { - name: "E" - } - } - } - } - clauses { - equals { - lhs { - identifier { - name: "B" - } - } - rhs { - identifier { - name: "D" - } - } - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "F" - object { - identifier { - name: "T" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 1 - } - } - fields { - int_type_literal { - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/7fddec4675773d06799615ff6bfa69d4b906b353 b/explorer/fuzzing/fuzzer_corpus/7fddec4675773d06799615ff6bfa69d4b906b353 deleted file mode 100644 index 002139cab0473..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/7fddec4675773d06799615ff6bfa69d4b906b353 +++ /dev/null @@ -1,233 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Point" - } - members { - function { - name { - name: "Origin" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 0 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "SetX" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - statements { - assign { - lhs { - identifier { - name: "x" - } - } - rhs { - int_literal { - value: 10 - } - } - op: Plain - } - } - } - } - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Origin" - object { - identifier { - name: "Point" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "SetX" - object { - identifier { - name: "p" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 42 - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/8037762d5a218fae491d02aa757fb3369bda9426 b/explorer/fuzzing/fuzzer_corpus/8037762d5a218fae491d02aa757fb3369bda9426 deleted file mode 100644 index 406b783e419fa..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/8037762d5a218fae491d02aa757fb3369bda9426 +++ /dev/null @@ -1,77 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - operator { - op: Neg - arguments { - identifier { - name: "a" - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/8093a8763a55e91e83b621e091f6da25cffc7dae b/explorer/fuzzing/fuzzer_corpus/8093a8763a55e91e83b621e091f6da25cffc7dae deleted file mode 100644 index 63ad650ee43eb..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/8093a8763a55e91e83b621e091f6da25cffc7dae +++ /dev/null @@ -1,93 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - match { - expression { - int_literal { - value: 0 - } - } - clauses { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - statement { - block { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 1 - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/811069452ad656f7050892b008d38f6affd52cd5 b/explorer/fuzzing/fuzzer_corpus/811069452ad656f7050892b008d38f6affd52cd5 deleted file mode 100644 index bd681dd2607f9..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/811069452ad656f7050892b008d38f6affd52cd5 +++ /dev/null @@ -1,689 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "CompareEqualValues" - } - deduced_parameters { - name: "T" - type { - call { - function { - identifier { - name: "EqWith" - } - } - argument { - tuple_literal { - fields { - designator { - name: "Self" - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "format" - type { - expression_pattern { - expression { - string_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "format" - } - } - fields { - if_expression { - condition { - operator { - op: Eq - arguments { - identifier { - name: "a" - } - } - arguments { - identifier { - name: "b" - } - } - } - } - then_expression { - int_literal { - value: 1 - } - } - else_expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "format" - } - } - fields { - if_expression { - condition { - operator { - op: NotEq - arguments { - identifier { - name: "a" - } - } - arguments { - identifier { - name: "b" - } - } - } - } - then_expression { - int_literal { - value: 0 - } - } - else_expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "CompareDifferentValues" - } - deduced_parameters { - name: "U" - type { - call { - function { - identifier { - name: "EqWith" - } - } - argument { - tuple_literal { - fields { - designator { - name: "Self" - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "format" - type { - expression_pattern { - expression { - string_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "U" - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "U" - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "format" - } - } - fields { - if_expression { - condition { - operator { - op: Eq - arguments { - identifier { - name: "a" - } - } - arguments { - identifier { - name: "b" - } - } - } - } - then_expression { - int_literal { - value: 0 - } - } - else_expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "format" - } - } - fields { - if_expression { - condition { - operator { - op: NotEq - arguments { - identifier { - name: "a" - } - } - arguments { - identifier { - name: "b" - } - } - } - } - then_expression { - int_literal { - value: 1 - } - } - else_expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "CompareAll" - } - deduced_parameters { - name: "V" - type { - call { - function { - identifier { - name: "EqWith" - } - } - argument { - tuple_literal { - fields { - designator { - name: "Self" - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "format" - type { - expression_pattern { - expression { - string_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "V" - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "V" - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "CompareEqualValues" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "format" - } - } - fields { - identifier { - name: "a" - } - } - fields { - identifier { - name: "a" - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "CompareEqualValues" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "format" - } - } - fields { - identifier { - name: "b" - } - } - fields { - identifier { - name: "b" - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "CompareDifferentValues" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "format" - } - } - fields { - identifier { - name: "a" - } - } - fields { - identifier { - name: "b" - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "CompareDifferentValues" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "format" - } - } - fields { - identifier { - name: "b" - } - } - fields { - identifier { - name: "a" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "CompareAll" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "bool: {0}" - } - } - fields { - bool_literal { - value: false - } - } - fields { - bool_literal { - value: true - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "CompareAll" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "string: {0}" - } - } - fields { - string_literal { - value: "hello" - } - } - fields { - string_literal { - value: "world" - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "CompareAll" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "int: {0}" - } - } - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/81bfc600dcb7e3e016fffe7399b9186b0da24867 b/explorer/fuzzing/fuzzer_corpus/81bfc600dcb7e3e016fffe7399b9186b0da24867 deleted file mode 100644 index 6da43a552082b..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/81bfc600dcb7e3e016fffe7399b9186b0da24867 +++ /dev/null @@ -1,347 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "A" - } - members { - let { - pattern { - generic_binding { - name: "AResult" - type { - type_type_literal { - } - } - } - } - } - } - } - } - declarations { - interface { - name { - name: "B" - } - members { - let { - pattern { - generic_binding { - name: "BResult" - type { - call { - function { - identifier { - name: "A" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - interface { - name { - name: "I" - } - members { - let { - pattern { - generic_binding { - name: "X" - type { - call { - function { - identifier { - name: "B" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "Y" - type { - simple_member_access { - field: "AResult" - object { - simple_member_access { - field: "BResult" - object { - identifier { - name: "X" - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "CA" - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - where { - base { - call { - function { - identifier { - name: "A" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - clauses { - rewrite { - member_name: "AResult" - replacement { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "CB" - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - where { - base { - call { - function { - identifier { - name: "B" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - clauses { - rewrite { - member_name: "BResult" - replacement { - identifier { - name: "CA" - } - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "CI" - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - where { - base { - call { - function { - identifier { - name: "I" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - clauses { - rewrite { - member_name: "X" - replacement { - identifier { - name: "CB" - } - } - } - } - clauses { - rewrite { - member_name: "Y" - replacement { - int_literal { - value: 5 - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - identifier { - name: "CI" - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - compound_member_access { - object { - identifier { - name: "v" - } - } - path { - simple_member_access { - field: "Y" - object { - call { - function { - identifier { - name: "I" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/82062a4058a65188662e584e9290464c5cbec42f b/explorer/fuzzing/fuzzer_corpus/82062a4058a65188662e584e9290464c5cbec42f deleted file mode 100644 index 307a45b37e123..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/82062a4058a65188662e584e9290464c5cbec42f +++ /dev/null @@ -1,53 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - variable { - binding { - name: "flag" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - initializer { - bool_literal { - value: true - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/8231f88ed019d7c867f63fd99a72ff83c877ce42 b/explorer/fuzzing/fuzzer_corpus/8231f88ed019d7c867f63fd99a72ff83c877ce42 deleted file mode 100644 index ec3e00112f5e9..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/8231f88ed019d7c867f63fd99a72ff83c877ce42 +++ /dev/null @@ -1,69 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Point" - } - members { - function { - name { - qualifiers: "Point" - name: "F" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/824b055dca1a7fc530205097c771552062b3c481 b/explorer/fuzzing/fuzzer_corpus/824b055dca1a7fc530205097c771552062b3c481 deleted file mode 100644 index 26751a99ecb81..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/824b055dca1a7fc530205097c771552062b3c481 +++ /dev/null @@ -1,66 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "x" - } - } - rhs { - int_literal { - value: 1 - } - } - op: Add - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/84f33da279e8094d8b60651abed12669677a5c60 b/explorer/fuzzing/fuzzer_corpus/84f33da279e8094d8b60651abed12669677a5c60 deleted file mode 100644 index bdc02395a4a9c..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/84f33da279e8094d8b60651abed12669677a5c60 +++ /dev/null @@ -1,116 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "CompareStr" - } - param_pattern { - fields { - binding_pattern { - name: "s" - type { - expression_pattern { - expression { - string_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - identifier { - name: "s" - } - } - arguments { - string_literal { - value: "#\"str\"#" - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "CompareStr" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "#\"str\"#" - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/84f60d58147f313add8f2d4c2cca5ce728b51e9c b/explorer/fuzzing/fuzzer_corpus/84f60d58147f313add8f2d4c2cca5ce728b51e9c deleted file mode 100644 index 3b5fc9097b8b6..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/84f60d58147f313add8f2d4c2cca5ce728b51e9c +++ /dev/null @@ -1,89 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - auto_pattern { - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 0 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 0 - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "p" - } - } - rhs { - struct_literal { - fields { - name: "y" - expression { - int_literal { - value: 0 - } - } - } - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/8506098ed285fa6cf6887ef694c68ff07fbac234 b/explorer/fuzzing/fuzzer_corpus/8506098ed285fa6cf6887ef694c68ff07fbac234 deleted file mode 100644 index 006303ebecae9..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/8506098ed285fa6cf6887ef694c68ff07fbac234 +++ /dev/null @@ -1,824 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Number" - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "other" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - type_params { - fields { - generic_binding { - name: "T" - type { - identifier { - name: "Number" - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - int_type_literal { - } - } - interface { - identifier { - name: "Number" - } - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "other" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - identifier { - name: "self" - } - } - arguments { - identifier { - name: "other" - } - } - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "U" - } - } - } - } - } - } - interface { - identifier { - name: "Number" - } - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - call { - function { - simple_member_access { - field: "Zero" - object { - identifier { - name: "U" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - fields { - name: "y" - expression { - call { - function { - simple_member_access { - field: "Zero" - object { - identifier { - name: "U" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "other" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - call { - function { - simple_member_access { - field: "Add" - object { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - } - } - argument { - tuple_literal { - fields { - simple_member_access { - field: "x" - object { - identifier { - name: "other" - } - } - } - } - } - } - } - } - } - fields { - name: "y" - expression { - call { - function { - simple_member_access { - field: "Add" - object { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - } - } - argument { - tuple_literal { - fields { - simple_member_access { - field: "y" - object { - identifier { - name: "other" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Sum" - } - deduced_parameters { - name: "E" - type { - identifier { - name: "Number" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "E" - } - } - } - } - } - } - fields { - binding_pattern { - name: "y" - type { - expression_pattern { - expression { - identifier { - name: "E" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "E" - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "total" - type { - expression_pattern { - expression { - identifier { - name: "E" - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Zero" - object { - identifier { - name: "E" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "total" - } - } - rhs { - call { - function { - simple_member_access { - field: "Add" - object { - identifier { - name: "total" - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "x" - } - } - } - } - } - } - op: Plain - } - } - statements { - assign { - lhs { - identifier { - name: "total" - } - } - rhs { - call { - function { - simple_member_access { - field: "Add" - object { - identifier { - name: "total" - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "y" - } - } - } - } - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "total" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 1 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "q" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 4 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 3 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "r" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - call { - function { - identifier { - name: "Sum" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "p" - } - } - fields { - identifier { - name: "q" - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "r" - } - } - } - } - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "r" - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/852294518955e4133ebe40d96ddd483ea675f576 b/explorer/fuzzing/fuzzer_corpus/852294518955e4133ebe40d96ddd483ea675f576 deleted file mode 100644 index 72e433c3f7aff..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/852294518955e4133ebe40d96ddd483ea675f576 +++ /dev/null @@ -1,1052 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Hashable" - } - members { - function { - name { - name: "Hash" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Potato" - } - members { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - identifier { - name: "Hashable" - } - } - members { - function { - name { - name: "Hash" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Potato.(Hashable.Hash)" - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Hash" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Potato.Hash" - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - declarations { - interface { - name { - name: "Maker" - } - members { - let { - pattern { - generic_binding { - name: "Result" - type { - identifier { - name: "Hashable" - } - } - } - } - } - } - members { - function { - name { - name: "Make" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Result" - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - int_type_literal { - } - } - interface { - identifier { - name: "Hashable" - } - } - members { - function { - name { - name: "Hash" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "i32.Hash" - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "T" - type { - where { - base { - identifier { - name: "Maker" - } - } - clauses { - rewrite { - member_name: "Result" - replacement { - int_type_literal { - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - call { - function { - simple_member_access { - field: "Make" - object { - identifier { - name: "T" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "G" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "Maker" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Hash" - object { - call { - function { - simple_member_access { - field: "Make" - object { - identifier { - name: "T" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "H" - } - deduced_parameters { - name: "T" - type { - where { - base { - identifier { - name: "Maker" - } - } - clauses { - rewrite { - member_name: "Result" - replacement { - identifier { - name: "Potato" - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Hash" - object { - call { - function { - simple_member_access { - field: "Make" - object { - identifier { - name: "T" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "I" - } - deduced_parameters { - name: "T" - type { - where { - base { - identifier { - name: "Maker" - } - } - clauses { - rewrite { - member_name: "Result" - replacement { - identifier { - name: "Potato" - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - identifier { - name: "Potato" - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Hash" - object { - identifier { - name: "p" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "IntFactory" - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - where { - base { - identifier { - name: "Maker" - } - } - clauses { - rewrite { - member_name: "Result" - replacement { - int_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "Make" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "PotatoFactory" - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - where { - base { - identifier { - name: "Maker" - } - } - clauses { - rewrite { - member_name: "Result" - replacement { - identifier { - name: "Potato" - } - } - } - } - } - } - members { - function { - name { - name: "Make" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Potato" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "f" - type { - expression_pattern { - expression { - identifier { - name: "IntFactory" - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "g" - type { - expression_pattern { - expression { - identifier { - name: "PotatoFactory" - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "f" - } - } - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - call { - function { - identifier { - name: "G" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "f" - } - } - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - call { - function { - identifier { - name: "G" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "g" - } - } - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - call { - function { - identifier { - name: "H" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "g" - } - } - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - call { - function { - identifier { - name: "I" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "g" - } - } - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/85658e57b27175b7be324b93be25409f5cc2d155 b/explorer/fuzzing/fuzzer_corpus/85658e57b27175b7be324b93be25409f5cc2d155 deleted file mode 100644 index 1140df3dc8852..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/85658e57b27175b7be324b93be25409f5cc2d155 +++ /dev/null @@ -1,337 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "B" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - function { - name { - name: "GetSetX" - } - self_pattern { - addr_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "Self" - } - } - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "oldX" - type { - auto_pattern { - } - } - } - } - init { - simple_member_access { - field: "x" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - simple_member_access { - field: "x" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - rhs { - identifier { - name: "x" - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "oldX" - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "A" - } - members { - variable { - binding { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "B" - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "B" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 0 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "b" - expression { - identifier { - name: "b" - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - auto_pattern { - } - } - } - } - init { - call { - function { - simple_member_access { - field: "GetSetX" - object { - simple_member_access { - field: "b" - object { - identifier { - name: "a" - } - } - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 42 - } - } - } - } - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - simple_member_access { - field: "x" - object { - simple_member_access { - field: "b" - object { - identifier { - name: "a" - } - } - } - } - } - } - arguments { - int_literal { - value: 42 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/856d1a339b7da505ec405b29e2ad71128a2cd042 b/explorer/fuzzing/fuzzer_corpus/856d1a339b7da505ec405b29e2ad71128a2cd042 deleted file mode 100644 index 9a53204b21893..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/856d1a339b7da505ec405b29e2ad71128a2cd042 +++ /dev/null @@ -1,89 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 5 - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - int_type_literal { - } - } - } - } - } - } - } - } - init { - operator { - op: AddressOf - arguments { - int_literal { - value: 5 - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/85d5189cc7d0ac992ae28f0eafcc5d4528482f32 b/explorer/fuzzing/fuzzer_corpus/85d5189cc7d0ac992ae28f0eafcc5d4528482f32 deleted file mode 100644 index 1084be3d8a1b1..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/85d5189cc7d0ac992ae28f0eafcc5d4528482f32 +++ /dev/null @@ -1,82 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - operator { - op: Mul - arguments { - identifier { - name: "a" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/86538c458c4469fd4394a2cf09c5d38bf06dde01 b/explorer/fuzzing/fuzzer_corpus/86538c458c4469fd4394a2cf09c5d38bf06dde01 deleted file mode 100644 index 420037ef10de4..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/86538c458c4469fd4394a2cf09c5d38bf06dde01 +++ /dev/null @@ -1,157 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - call { - function { - identifier { - name: "ImplicitAs" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "A" - } - } - } - } - } - } - members { - function { - name { - name: "Convert" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "A" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "n" - expression { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - variable { - binding { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - initializer { - int_literal { - value: 5 - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "n" - object { - identifier { - name: "a" - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/865cb6ed43d05b0cd8865aca8e220a5f2f1c8ee2 b/explorer/fuzzing/fuzzer_corpus/865cb6ed43d05b0cd8865aca8e220a5f2f1c8ee2 deleted file mode 100644 index e40e76ed3db1f..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/865cb6ed43d05b0cd8865aca8e220a5f2f1c8ee2 +++ /dev/null @@ -1,61 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "T" - type { - operator { - op: BitwiseAnd - arguments { - int_type_literal { - } - } - arguments { - type_type_literal { - } - } - } - } - } - param_pattern { - } - return_term { - kind: Omitted - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/867ca2a85f7d32348f245c8b4562d19256c4bdcd b/explorer/fuzzing/fuzzer_corpus/867ca2a85f7d32348f245c8b4562d19256c4bdcd deleted file mode 100644 index 519b765b10ca9..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/867ca2a85f7d32348f245c8b4562d19256c4bdcd +++ /dev/null @@ -1,350 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "A" - } - } - interface { - where { - base { - call { - function { - identifier { - name: "BitOrWith" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - clauses { - rewrite { - member_name: "Result" - replacement { - identifier { - name: "A" - } - } - } - } - } - } - members { - function { - name { - name: "Op" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "rhs" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "A" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "n" - expression { - operator { - op: BitwiseOr - arguments { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "rhs" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "a" - } - } - rhs { - operator { - op: BitwiseOr - arguments { - identifier { - name: "a" - } - } - arguments { - int_literal { - value: 2 - } - } - } - } - op: Plain - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "a" - } - } - } - } - } - } - } - } - } - } - statements { - assign { - lhs { - identifier { - name: "a" - } - } - rhs { - int_literal { - value: 5 - } - } - op: Or - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "a" - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "n" - object { - operator { - op: BitwiseOr - arguments { - identifier { - name: "a" - } - } - arguments { - int_literal { - value: 12 - } - } - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/869a572f42c6d5ba437c45a7187b350b1bb27c94 b/explorer/fuzzing/fuzzer_corpus/869a572f42c6d5ba437c45a7187b350b1bb27c94 deleted file mode 100644 index 9324338dcbb8e..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/869a572f42c6d5ba437c45a7187b350b1bb27c94 +++ /dev/null @@ -1,105 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Id" - } - param_pattern { - fields { - binding_pattern { - name: "t" - type { - expression_pattern { - expression { - type_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Auto - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "t" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Id" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/86b24842438ed47cadc8ba57576d5bb33a35df88 b/explorer/fuzzing/fuzzer_corpus/86b24842438ed47cadc8ba57576d5bb33a35df88 deleted file mode 100644 index 3a0649b8b3e2c..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/86b24842438ed47cadc8ba57576d5bb33a35df88 +++ /dev/null @@ -1,253 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "ConvertsFromInt" - } - members { - interface_impl { - impl_type { - int_type_literal { - } - } - constraint { - call { - function { - identifier { - name: "ImplicitAs" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "Self" - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "ConvertIntTo" - } - param_pattern { - fields { - generic_binding { - name: "T" - type { - identifier { - name: "ConvertsFromInt" - } - } - } - } - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "n" - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "IntHolder" - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - int_type_literal { - } - } - interface { - call { - function { - identifier { - name: "ImplicitAs" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "IntHolder" - } - } - } - } - } - } - members { - function { - name { - name: "Convert" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "IntHolder" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "n" - expression { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "IntHolder" - } - } - interface { - identifier { - name: "ConvertsFromInt" - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "n" - object { - call { - function { - identifier { - name: "ConvertIntTo" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "IntHolder" - } - } - fields { - int_literal { - value: 5 - } - } - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/86d67468feb4d4a3ebded86e6007537cf79aaa7c b/explorer/fuzzing/fuzzer_corpus/86d67468feb4d4a3ebded86e6007537cf79aaa7c deleted file mode 100644 index 9032b511ace39..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/86d67468feb4d4a3ebded86e6007537cf79aaa7c +++ /dev/null @@ -1,131 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - function { - name { - name: "Get" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Get" - object { - operator { - op: As - arguments { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 5 - } - } - } - } - } - arguments { - identifier { - name: "A" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/872a1696dda48bb21c65aaf1be4c599c0ba7ecf8 b/explorer/fuzzing/fuzzer_corpus/872a1696dda48bb21c65aaf1be4c599c0ba7ecf8 deleted file mode 100644 index 72f925ca5e9a2..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/872a1696dda48bb21c65aaf1be4c599c0ba7ecf8 +++ /dev/null @@ -1,156 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "f" - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 1 - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "f" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "a" - } - } - } - } - } - } - } - } - statements { - assign { - lhs { - identifier { - name: "b" - } - } - rhs { - identifier { - name: "a" - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "b" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/874473ca5ab1dae91e7c4a71db943c174f1c39cd b/explorer/fuzzing/fuzzer_corpus/874473ca5ab1dae91e7c4a71db943c174f1c39cd deleted file mode 100644 index 2c9ba370c22c4..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/874473ca5ab1dae91e7c4a71db943c174f1c39cd +++ /dev/null @@ -1,72 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - choice { - name { - name: "C" - } - alternatives { - name: "X" - signature { - } - } - alternatives { - name: "Y" - signature { - fields { - if_expression { - condition { - simple_member_access { - field: "X" - object { - identifier { - name: "C" - } - } - } - } - then_expression { - int_type_literal { - } - } - else_expression { - int_type_literal { - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/8837f02cbe18a4fc33680ebb3e38bf767537a0d3 b/explorer/fuzzing/fuzzer_corpus/8837f02cbe18a4fc33680ebb3e38bf767537a0d3 deleted file mode 100644 index 562524fe1ac61..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/8837f02cbe18a4fc33680ebb3e38bf767537a0d3 +++ /dev/null @@ -1,318 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Point" - } - members { - function { - name { - name: "Origin" - } - param_pattern { - fields { - binding_pattern { - name: "zero" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - call { - function { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - identifier { - name: "zero" - } - } - } - fields { - name: "y" - expression { - identifier { - name: "zero" - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "GetX" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - call { - function { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - type_params { - fields { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Origin" - object { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "GetX" - object { - identifier { - name: "p" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/89bf648a72b186cde6349d5948d0fa6d5ad455de b/explorer/fuzzing/fuzzer_corpus/89bf648a72b186cde6349d5948d0fa6d5ad455de deleted file mode 100644 index e0e63ff590c58..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/89bf648a72b186cde6349d5948d0fa6d5ad455de +++ /dev/null @@ -1,187 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "X" - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Omitted - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - identifier { - name: "X" - } - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - } - } - declarations { - function { - name { - name: "G" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "X" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - type_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "F" - object { - identifier { - name: "v" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_type_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "G" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "v" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/8a565b071d627367b678eadfe0000ad02312a51f b/explorer/fuzzing/fuzzer_corpus/8a565b071d627367b678eadfe0000ad02312a51f deleted file mode 100644 index 35d3e522f4ac6..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/8a565b071d627367b678eadfe0000ad02312a51f +++ /dev/null @@ -1,282 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "LazyEq" - } - members { - variable { - binding { - name: "v1" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "v2" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - call { - function { - identifier { - name: "ImplicitAs" - } - } - argument { - tuple_literal { - fields { - bool_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "Convert" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - bool_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Eq - arguments { - simple_member_access { - field: "v1" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "v2" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Make" - } - param_pattern { - fields { - binding_pattern { - name: "v1" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "v2" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "v1" - expression { - identifier { - name: "v1" - } - } - } - fields { - name: "v2" - expression { - identifier { - name: "v2" - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - if_statement { - condition { - call { - function { - simple_member_access { - field: "Make" - object { - identifier { - name: "LazyEq" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 2 - } - } - fields { - operator { - op: Add - arguments { - int_literal { - value: 1 - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - else_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/8adf65cc00034e071aa55d64643de66f92e08cb4 b/explorer/fuzzing/fuzzer_corpus/8adf65cc00034e071aa55d64643de66f92e08cb4 deleted file mode 100644 index b3185c53248ad..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/8adf65cc00034e071aa55d64643de66f92e08cb4 +++ /dev/null @@ -1,79 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/8af1e91a050ed3a94b03ae4eaaa4ae65d8e5975c b/explorer/fuzzing/fuzzer_corpus/8af1e91a050ed3a94b03ae4eaaa4ae65d8e5975c deleted file mode 100644 index 274670a5491f0..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/8af1e91a050ed3a94b03ae4eaaa4ae65d8e5975c +++ /dev/null @@ -1,1669 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - choice { - name { - name: "AB" - } - alternatives { - name: "A" - signature { - } - } - alternatives { - name: "B" - signature { - } - } - } - } - declarations { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "AB" - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - match { - expression { - tuple_literal { - fields { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - clauses { - pattern { - expression_pattern { - expression { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - clauses { - pattern { - expression_pattern { - expression { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 3 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 4 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 5 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 6 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 7 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 8 - } - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/8b399fee75055c239d6e3a6324e4c5696b9cf365 b/explorer/fuzzing/fuzzer_corpus/8b399fee75055c239d6e3a6324e4c5696b9cf365 deleted file mode 100644 index ff0131990ba4b..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/8b399fee75055c239d6e3a6324e4c5696b9cf365 +++ /dev/null @@ -1,490 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - impl { - kind: ExternalImpl - impl_type { - struct_type_literal { - fields { - name: "x" - expression { - int_type_literal { - } - } - } - fields { - name: "y" - expression { - int_type_literal { - } - } - } - } - } - interface { - call { - function { - identifier { - name: "EqWith" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "Self" - } - } - } - } - } - } - members { - function { - name { - name: "Equal" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "other" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - bool_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: And - arguments { - operator { - op: Eq - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "other" - } - } - } - } - } - } - arguments { - operator { - op: Eq - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "other" - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "NotEqual" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "other" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - bool_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Or - arguments { - operator { - op: NotEq - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "other" - } - } - } - } - } - } - arguments { - operator { - op: NotEq - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "other" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "t1" - type { - expression_pattern { - expression { - struct_type_literal { - fields { - name: "x" - expression { - int_type_literal { - } - } - } - fields { - name: "y" - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 5 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "t2" - type { - expression_pattern { - expression { - struct_type_literal { - fields { - name: "x" - expression { - int_type_literal { - } - } - } - fields { - name: "y" - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 5 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "t1 == t2: {0}" - } - } - fields { - if_expression { - condition { - operator { - op: Eq - arguments { - identifier { - name: "t1" - } - } - arguments { - identifier { - name: "t2" - } - } - } - } - then_expression { - int_literal { - value: 1 - } - } - else_expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "t1 != t2: {0}" - } - } - fields { - if_expression { - condition { - operator { - op: NotEq - arguments { - identifier { - name: "t1" - } - } - arguments { - identifier { - name: "t2" - } - } - } - } - then_expression { - int_literal { - value: 1 - } - } - else_expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/8b3b56d79337df581f59f424f87fa05b9d3b9b9f b/explorer/fuzzing/fuzzer_corpus/8b3b56d79337df581f59f424f87fa05b9d3b9b9f deleted file mode 100644 index b5c08e54721a2..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/8b3b56d79337df581f59f424f87fa05b9d3b9b9f +++ /dev/null @@ -1,181 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - choice { - name { - name: "A" - } - alternatives { - name: "Value" - signature { - fields { - int_type_literal { - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - call { - function { - identifier { - name: "ImplicitAs" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "A" - } - } - } - } - } - } - members { - function { - name { - name: "Convert" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "A" - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Value" - object { - identifier { - name: "A" - } - } - } - } - argument { - tuple_literal { - fields { - operator { - op: Add - arguments { - identifier { - name: "self" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - alternative_pattern { - choice_type { - identifier { - name: "A" - } - } - alternative_name: "Value" - arguments { - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - init { - int_literal { - value: 2 - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "n" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/8c82de66ed8c2c2e00ff9d0da8d299a7bc2e0a52 b/explorer/fuzzing/fuzzer_corpus/8c82de66ed8c2c2e00ff9d0da8d299a7bc2e0a52 deleted file mode 100644 index 114c3e6c9a5ad..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/8c82de66ed8c2c2e00ff9d0da8d299a7bc2e0a52 +++ /dev/null @@ -1,852 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "A" - } - members { - function { - name { - name: "Which" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - } - } - declarations { - interface { - name { - name: "X" - } - } - } - declarations { - interface { - name { - name: "Y" - } - } - } - declarations { - interface { - name { - name: "Z" - } - } - } - declarations { - match_first { - impl_declarations { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "T" - } - } - interface { - identifier { - name: "A" - } - } - members { - function { - name { - name: "Which" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - impl_declarations { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "T" - } - } - interface { - identifier { - name: "A" - } - } - members { - function { - name { - name: "Which" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - impl_declarations { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "T" - } - } - interface { - identifier { - name: "A" - } - } - members { - function { - name { - name: "Which" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 3 - } - } - } - } - } - } - } - } - } - impl_declarations { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "T" - } - } - interface { - identifier { - name: "A" - } - } - members { - function { - name { - name: "Which" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 4 - } - } - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "XYZ" - } - } - } - declarations { - class_declaration { - name { - name: "XY" - } - } - } - declarations { - class_declaration { - name { - name: "XZ" - } - } - } - declarations { - class_declaration { - name { - name: "YZ" - } - } - } - declarations { - class_declaration { - name { - name: "JustX" - } - } - } - declarations { - class_declaration { - name { - name: "JustY" - } - } - } - declarations { - class_declaration { - name { - name: "JustZ" - } - } - } - declarations { - class_declaration { - name { - name: "None" - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "XYZ" - } - } - interface { - operator { - op: BitwiseAnd - arguments { - operator { - op: BitwiseAnd - arguments { - identifier { - name: "X" - } - } - arguments { - identifier { - name: "Y" - } - } - } - } - arguments { - identifier { - name: "Z" - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "XY" - } - } - interface { - operator { - op: BitwiseAnd - arguments { - identifier { - name: "X" - } - } - arguments { - identifier { - name: "Y" - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "XZ" - } - } - interface { - operator { - op: BitwiseAnd - arguments { - identifier { - name: "X" - } - } - arguments { - identifier { - name: "Z" - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "YZ" - } - } - interface { - operator { - op: BitwiseAnd - arguments { - identifier { - name: "Y" - } - } - arguments { - identifier { - name: "Z" - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "JustX" - } - } - interface { - identifier { - name: "X" - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "JustY" - } - } - interface { - identifier { - name: "Y" - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "JustZ" - } - } - interface { - identifier { - name: "Z" - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "XYZ: {0}" - } - } - fields { - call { - function { - compound_member_access { - object { - identifier { - name: "XYZ" - } - } - path { - simple_member_access { - field: "Which" - object { - identifier { - name: "A" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "XY: {0}" - } - } - fields { - call { - function { - compound_member_access { - object { - identifier { - name: "XY" - } - } - path { - simple_member_access { - field: "Which" - object { - identifier { - name: "A" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "XZ: {0}" - } - } - fields { - call { - function { - compound_member_access { - object { - identifier { - name: "XZ" - } - } - path { - simple_member_access { - field: "Which" - object { - identifier { - name: "A" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "YZ: {0}" - } - } - fields { - call { - function { - compound_member_access { - object { - identifier { - name: "YZ" - } - } - path { - simple_member_access { - field: "Which" - object { - identifier { - name: "A" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "JustX: {0}" - } - } - fields { - call { - function { - compound_member_access { - object { - identifier { - name: "JustX" - } - } - path { - simple_member_access { - field: "Which" - object { - identifier { - name: "A" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "JustY: {0}" - } - } - fields { - call { - function { - compound_member_access { - object { - identifier { - name: "JustY" - } - } - path { - simple_member_access { - field: "Which" - object { - identifier { - name: "A" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "JustZ: {0}" - } - } - fields { - call { - function { - compound_member_access { - object { - identifier { - name: "JustZ" - } - } - path { - simple_member_access { - field: "Which" - object { - identifier { - name: "A" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "None: {0}" - } - } - fields { - call { - function { - compound_member_access { - object { - identifier { - name: "None" - } - } - path { - simple_member_access { - field: "Which" - object { - identifier { - name: "A" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/8d39f5c54290acb5e80f4c894eb4c9a9b4034079 b/explorer/fuzzing/fuzzer_corpus/8d39f5c54290acb5e80f4c894eb4c9a9b4034079 deleted file mode 100644 index e0165e4be48d3..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/8d39f5c54290acb5e80f4c894eb4c9a9b4034079 +++ /dev/null @@ -1,420 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - impl { - kind: ExternalImpl - impl_type { - struct_type_literal { - fields { - name: "x" - expression { - int_type_literal { - } - } - } - fields { - name: "y" - expression { - int_type_literal { - } - } - } - } - } - interface { - call { - function { - identifier { - name: "EqWith" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "Self" - } - } - } - } - } - } - members { - function { - name { - name: "Equal" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "other" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - bool_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: And - arguments { - operator { - op: Eq - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "other" - } - } - } - } - } - } - arguments { - operator { - op: Eq - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "other" - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "NotEqual" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "other" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - bool_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Or - arguments { - operator { - op: NotEq - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "other" - } - } - } - } - } - } - arguments { - operator { - op: NotEq - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "other" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "t1" - type { - expression_pattern { - expression { - struct_type_literal { - fields { - name: "x" - expression { - int_type_literal { - } - } - } - fields { - name: "y" - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 5 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "t2" - type { - expression_pattern { - expression { - struct_type_literal { - fields { - name: "x" - expression { - int_type_literal { - } - } - } - fields { - name: "y" - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 5 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 4 - } - } - } - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - identifier { - name: "t1" - } - } - arguments { - identifier { - name: "t2" - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - else_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/8d8fc98ec23cae408d8ff32f0e7de3ba3944bbd7 b/explorer/fuzzing/fuzzer_corpus/8d8fc98ec23cae408d8ff32f0e7de3ba3944bbd7 deleted file mode 100644 index 883a8ef1d9b56..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/8d8fc98ec23cae408d8ff32f0e7de3ba3944bbd7 +++ /dev/null @@ -1,96 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "HasType" - } - members { - let { - pattern { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - int_type_literal { - } - } - interface { - where { - base { - identifier { - name: "HasType" - } - } - clauses { - rewrite { - member_name: "T" - replacement { - int_type_literal { - } - } - } - } - clauses { - rewrite { - member_name: "T" - replacement { - struct_type_literal { - fields { - name: "a" - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/8e3f4815a1ee1b0f4ba0e22948671d0ab521ffcc b/explorer/fuzzing/fuzzer_corpus/8e3f4815a1ee1b0f4ba0e22948671d0ab521ffcc deleted file mode 100644 index 9c7bc5ba3f015..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/8e3f4815a1ee1b0f4ba0e22948671d0ab521ffcc +++ /dev/null @@ -1,128 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "AddInt" - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Auto - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - identifier { - name: "a" - } - } - arguments { - identifier { - name: "b" - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "AddInt" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "x" - } - } - fields { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/8e575a88fb791bc74ca549a648e40595728c462e b/explorer/fuzzing/fuzzer_corpus/8e575a88fb791bc74ca549a648e40595728c462e deleted file mode 100644 index df07194bed462..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/8e575a88fb791bc74ca549a648e40595728c462e +++ /dev/null @@ -1,309 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - choice { - name { - name: "Ints" - } - alternatives { - name: "None" - signature { - } - } - alternatives { - name: "One" - signature { - fields { - int_type_literal { - } - } - } - } - alternatives { - name: "Two" - signature { - fields { - int_type_literal { - } - } - fields { - int_type_literal { - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - tuple_pattern { - fields { - var_pattern { - pattern { - alternative_pattern { - choice_type { - identifier { - name: "Ints" - } - } - alternative_name: "Two" - arguments { - fields { - binding_pattern { - name: "a1" - type { - auto_pattern { - } - } - } - } - fields { - var_pattern { - pattern { - binding_pattern { - name: "a2" - type { - auto_pattern { - } - } - } - } - } - } - } - } - } - } - } - fields { - tuple_pattern { - fields { - tuple_pattern { - fields { - binding_pattern { - name: "b" - type { - auto_pattern { - } - } - } - } - fields { - var_pattern { - pattern { - binding_pattern { - name: "c" - type { - auto_pattern { - } - } - } - } - } - } - } - } - fields { - var_pattern { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "d" - type { - auto_pattern { - } - } - } - } - fields { - binding_pattern { - name: "e" - type { - auto_pattern { - } - } - } - } - } - } - } - } - } - } - } - } - init { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "Two" - object { - identifier { - name: "Ints" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 10 - } - } - } - } - } - } - fields { - tuple_literal { - fields { - tuple_literal { - fields { - int_literal { - value: 2 - } - } - fields { - int_literal { - value: 3 - } - } - } - } - fields { - tuple_literal { - fields { - int_literal { - value: 4 - } - } - fields { - int_literal { - value: 5 - } - } - } - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "a1" - } - } - rhs { - int_literal { - value: 0 - } - } - op: Plain - } - } - statements { - assign { - lhs { - identifier { - name: "a2" - } - } - rhs { - int_literal { - value: 0 - } - } - op: Plain - } - } - statements { - assign { - lhs { - identifier { - name: "c" - } - } - rhs { - int_literal { - value: 0 - } - } - op: Plain - } - } - statements { - assign { - lhs { - identifier { - name: "d" - } - } - rhs { - int_literal { - value: 0 - } - } - op: Plain - } - } - statements { - assign { - lhs { - identifier { - name: "e" - } - } - rhs { - int_literal { - value: 0 - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/8e9bcbf7165dd788f41880e494a6b34178c818d9 b/explorer/fuzzing/fuzzer_corpus/8e9bcbf7165dd788f41880e494a6b34178c818d9 deleted file mode 100644 index 38b6152e10c08..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/8e9bcbf7165dd788f41880e494a6b34178c818d9 +++ /dev/null @@ -1,50 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - choice { - name { - name: "Ch" - } - alternatives { - name: "Opt" - signature { - fields { - identifier { - name: "Ch" - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/8f11bf2d763d565d4003e723c117c3b7fd5a54f0 b/explorer/fuzzing/fuzzer_corpus/8f11bf2d763d565d4003e723c117c3b7fd5a54f0 deleted file mode 100644 index 171896a7658ba..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/8f11bf2d763d565d4003e723c117c3b7fd5a54f0 +++ /dev/null @@ -1,53 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "a" - type { - int_literal { - value: 42 - } - } - } - param_pattern { - } - return_term { - kind: Omitted - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/8f560dc1a60532489b6c400e1efcb7d6a8941388 b/explorer/fuzzing/fuzzer_corpus/8f560dc1a60532489b6c400e1efcb7d6a8941388 deleted file mode 100644 index 14ad1f1a1510e..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/8f560dc1a60532489b6c400e1efcb7d6a8941388 +++ /dev/null @@ -1,439 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Apple" - } - members { - function { - name { - name: "F" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - } - } - } - } - declarations { - interface { - name { - name: "Banana" - } - members { - interface_impl { - impl_type { - identifier { - name: "Self" - } - } - constraint { - call { - function { - identifier { - name: "Apple" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - members { - function { - name { - name: "G" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Omitted - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Carrot" - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "Carrot" - } - } - interface { - call { - function { - identifier { - name: "Apple" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "F" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "Carrot" - } - } - interface { - identifier { - name: "Banana" - } - } - members { - function { - name { - name: "G" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Carrot.G" - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "H" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "Banana" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "G" - object { - identifier { - name: "x" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - call { - function { - compound_member_access { - object { - identifier { - name: "x" - } - } - path { - simple_member_access { - field: "F" - object { - call { - function { - identifier { - name: "Apple" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - identifier { - name: "Carrot" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 5 - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "H" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "c" - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/9064723daf6148e18f7195f319095238fe717cf8 b/explorer/fuzzing/fuzzer_corpus/9064723daf6148e18f7195f319095238fe717cf8 deleted file mode 100644 index cf03157e8a3ed..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/9064723daf6148e18f7195f319095238fe717cf8 +++ /dev/null @@ -1,91 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "T" - } - param_pattern { - } - return_term { - kind: Expression - type { - type_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "T" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_type_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/90e98e569c2c9dccbbbf6036b2ca560996e27456 b/explorer/fuzzing/fuzzer_corpus/90e98e569c2c9dccbbbf6036b2ca560996e27456 deleted file mode 100644 index 351a29a4aec41..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/90e98e569c2c9dccbbbf6036b2ca560996e27456 +++ /dev/null @@ -1,857 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Vector" - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - addr_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "Self" - } - } - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - addr_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "Self" - } - } - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - identifier { - name: "Vector" - } - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 1 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - addr_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "Self" - } - } - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - statements { - assign { - lhs { - simple_member_access { - field: "x" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - rhs { - operator { - op: Add - arguments { - simple_member_access { - field: "x" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "b" - } - } - } - } - } - } - op: Plain - } - } - statements { - assign { - lhs { - simple_member_access { - field: "y" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - rhs { - operator { - op: Add - arguments { - simple_member_access { - field: "y" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "b" - } - } - } - } - } - } - op: Plain - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - addr_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "Self" - } - } - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - statements { - assign { - lhs { - simple_member_access { - field: "x" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - rhs { - operator { - op: Mul - arguments { - simple_member_access { - field: "x" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - arguments { - identifier { - name: "v" - } - } - } - } - op: Plain - } - } - statements { - assign { - lhs { - simple_member_access { - field: "y" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - rhs { - operator { - op: Mul - arguments { - simple_member_access { - field: "y" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - arguments { - identifier { - name: "v" - } - } - } - } - op: Plain - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "AddAndScaleGeneric" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "Vector" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "T" - } - } - } - } - } - } - } - } - fields { - binding_pattern { - name: "s" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "Add" - object { - operator { - op: Deref - arguments { - identifier { - name: "p" - } - } - } - } - } - } - argument { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "Zero" - object { - identifier { - name: "T" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - compound_member_access { - object { - operator { - op: Deref - arguments { - identifier { - name: "p" - } - } - } - } - path { - simple_member_access { - field: "Scale" - object { - identifier { - name: "Vector" - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "s" - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - compound_member_access { - object { - operator { - op: Deref - arguments { - identifier { - name: "p" - } - } - } - } - path { - compound_member_access { - object { - identifier { - name: "T" - } - } - path { - simple_member_access { - field: "Scale" - object { - identifier { - name: "Vector" - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "s" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 2 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 3 - } - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "AddAndScaleGeneric" - } - } - argument { - tuple_literal { - fields { - operator { - op: AddressOf - arguments { - identifier { - name: "a" - } - } - } - } - fields { - int_literal { - value: 5 - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "x" - object { - identifier { - name: "a" - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "y" - object { - identifier { - name: "a" - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/9120ffbf9f9ce9d0a6c5737fe311aa702a19d72a b/explorer/fuzzing/fuzzer_corpus/9120ffbf9f9ce9d0a6c5737fe311aa702a19d72a deleted file mode 100644 index d93edc85e82ec..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/9120ffbf9f9ce9d0a6c5737fe311aa702a19d72a +++ /dev/null @@ -1,115 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - struct_type_literal { - fields { - name: "x" - expression { - int_type_literal { - } - } - } - fields { - name: "y" - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 1 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - operator { - op: Sub - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "p" - } - } - } - } - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "p" - } - } - } - } - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/91ac9c25f698c4efb6886c33ba330739e7087851 b/explorer/fuzzing/fuzzer_corpus/91ac9c25f698c4efb6886c33ba330739e7087851 deleted file mode 100644 index 4dde53c968d57..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/91ac9c25f698c4efb6886c33ba330739e7087851 +++ /dev/null @@ -1,893 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "HasTypes" - } - members { - let { - pattern { - generic_binding { - name: "A" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "B" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "C" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "D" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "E" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "F" - type { - type_type_literal { - } - } - } - } - } - } - } - } - declarations { - interface { - name { - name: "HasParams" - } - members { - let { - pattern { - generic_binding { - name: "V" - type { - identifier { - name: "HasTypes" - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "X" - type { - where { - base { - operator { - op: BitwiseAnd - arguments { - identifier { - name: "HasTypes" - } - } - arguments { - call { - function { - identifier { - name: "HasParams" - } - } - argument { - tuple_literal { - fields { - designator { - name: "Self" - } - } - fields { - designator { - name: "Self" - } - } - fields { - designator { - name: "Self" - } - } - fields { - designator { - name: "Self" - } - } - } - } - } - } - } - } - clauses { - impls { - type { - designator { - name: "Self" - } - } - constraint { - call { - function { - identifier { - name: "HasParams" - } - } - argument { - tuple_literal { - fields { - designator { - name: "A" - } - } - fields { - designator { - name: "A" - } - } - fields { - designator { - name: "A" - } - } - fields { - designator { - name: "A" - } - } - } - } - } - } - } - } - clauses { - impls { - type { - designator { - name: "Self" - } - } - constraint { - call { - function { - identifier { - name: "HasParams" - } - } - argument { - tuple_literal { - fields { - designator { - name: "B" - } - } - fields { - designator { - name: "B" - } - } - fields { - designator { - name: "B" - } - } - fields { - designator { - name: "B" - } - } - } - } - } - } - } - } - clauses { - impls { - type { - designator { - name: "Self" - } - } - constraint { - call { - function { - identifier { - name: "HasParams" - } - } - argument { - tuple_literal { - fields { - designator { - name: "C" - } - } - fields { - designator { - name: "C" - } - } - fields { - designator { - name: "C" - } - } - fields { - designator { - name: "C" - } - } - } - } - } - } - } - } - clauses { - impls { - type { - designator { - name: "Self" - } - } - constraint { - call { - function { - identifier { - name: "HasParams" - } - } - argument { - tuple_literal { - fields { - designator { - name: "D" - } - } - fields { - designator { - name: "D" - } - } - fields { - designator { - name: "D" - } - } - fields { - designator { - name: "D" - } - } - } - } - } - } - } - } - clauses { - impls { - type { - designator { - name: "Self" - } - } - constraint { - call { - function { - identifier { - name: "HasParams" - } - } - argument { - tuple_literal { - fields { - designator { - name: "E" - } - } - fields { - designator { - name: "E" - } - } - fields { - designator { - name: "E" - } - } - fields { - designator { - name: "E" - } - } - } - } - } - } - } - } - clauses { - rewrite { - member_name: "F" - replacement { - simple_member_access { - field: "A" - object { - compound_member_access { - object { - designator { - name: "Self" - } - } - path { - simple_member_access { - field: "V" - object { - call { - function { - identifier { - name: "HasParams" - } - } - argument { - tuple_literal { - fields { - designator { - name: "E" - } - } - fields { - designator { - name: "E" - } - } - fields { - designator { - name: "E" - } - } - fields { - designator { - name: "E" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - clauses { - rewrite { - member_name: "E" - replacement { - simple_member_access { - field: "A" - object { - compound_member_access { - object { - designator { - name: "Self" - } - } - path { - simple_member_access { - field: "V" - object { - call { - function { - identifier { - name: "HasParams" - } - } - argument { - tuple_literal { - fields { - designator { - name: "D" - } - } - fields { - designator { - name: "D" - } - } - fields { - designator { - name: "D" - } - } - fields { - designator { - name: "D" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - clauses { - rewrite { - member_name: "D" - replacement { - simple_member_access { - field: "A" - object { - compound_member_access { - object { - designator { - name: "Self" - } - } - path { - simple_member_access { - field: "V" - object { - call { - function { - identifier { - name: "HasParams" - } - } - argument { - tuple_literal { - fields { - designator { - name: "C" - } - } - fields { - designator { - name: "C" - } - } - fields { - designator { - name: "C" - } - } - fields { - designator { - name: "C" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - clauses { - rewrite { - member_name: "C" - replacement { - simple_member_access { - field: "A" - object { - compound_member_access { - object { - designator { - name: "Self" - } - } - path { - simple_member_access { - field: "V" - object { - call { - function { - identifier { - name: "HasParams" - } - } - argument { - tuple_literal { - fields { - designator { - name: "B" - } - } - fields { - designator { - name: "B" - } - } - fields { - designator { - name: "B" - } - } - fields { - designator { - name: "B" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - clauses { - rewrite { - member_name: "B" - replacement { - simple_member_access { - field: "A" - object { - compound_member_access { - object { - designator { - name: "Self" - } - } - path { - simple_member_access { - field: "V" - object { - call { - function { - identifier { - name: "HasParams" - } - } - argument { - tuple_literal { - fields { - designator { - name: "A" - } - } - fields { - designator { - name: "A" - } - } - fields { - designator { - name: "A" - } - } - fields { - designator { - name: "A" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - clauses { - rewrite { - member_name: "A" - replacement { - designator { - name: "Self" - } - } - } - } - clauses { - rewrite { - member_name: "V" - replacement { - designator { - name: "Self" - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "X" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - simple_member_access { - field: "F" - object { - identifier { - name: "X" - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - where { - base { - identifier { - name: "HasTypes" - } - } - clauses { - rewrite { - member_name: "A" - replacement { - designator { - name: "B" - } - } - } - } - clauses { - rewrite { - member_name: "B" - replacement { - designator { - name: "C" - } - } - } - } - clauses { - rewrite { - member_name: "C" - replacement { - designator { - name: "D" - } - } - } - } - clauses { - rewrite { - member_name: "D" - replacement { - designator { - name: "E" - } - } - } - } - clauses { - rewrite { - member_name: "E" - replacement { - designator { - name: "F" - } - } - } - } - clauses { - rewrite { - member_name: "F" - replacement { - int_type_literal { - } - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - where { - base { - call { - function { - identifier { - name: "HasParams" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - fields { - int_type_literal { - } - } - fields { - int_type_literal { - } - } - fields { - int_type_literal { - } - } - } - } - } - } - clauses { - rewrite { - member_name: "V" - replacement { - int_type_literal { - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - } -} - diff --git a/explorer/fuzzing/fuzzer_corpus/9215313bd5600fa9a790a2a025db8dd25208d1de b/explorer/fuzzing/fuzzer_corpus/9215313bd5600fa9a790a2a025db8dd25208d1de deleted file mode 100644 index a0eefdd49dd08..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/9215313bd5600fa9a790a2a025db8dd25208d1de +++ /dev/null @@ -1,168 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Point" - } - members { - function { - name { - name: "Origin" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 0 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Origin" - object { - identifier { - name: "Point" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - simple_member_access { - field: "x" - object { - call { - function { - simple_member_access { - field: "Origin" - object { - identifier { - name: "p" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/92ba578d44ebff520e839924230e16dfbeb26536 b/explorer/fuzzing/fuzzer_corpus/92ba578d44ebff520e839924230e16dfbeb26536 deleted file mode 100644 index 28b90d1f780e8..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/92ba578d44ebff520e839924230e16dfbeb26536 +++ /dev/null @@ -1,121 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "t" - type { - auto_pattern { - } - } - } - } - init { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 2 - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - array_type_literal { - element_type { - int_type_literal { - } - } - size { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - init { - identifier { - name: "t" - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - index { - object { - identifier { - name: "a" - } - } - offset { - int_literal { - value: 0 - } - } - } - } - arguments { - index { - object { - identifier { - name: "a" - } - } - offset { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/93c10ced6270f76ac1c5b8f10c78eb12c361fd9e b/explorer/fuzzing/fuzzer_corpus/93c10ced6270f76ac1c5b8f10c78eb12c361fd9e deleted file mode 100644 index 4348eaf9fae5f..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/93c10ced6270f76ac1c5b8f10c78eb12c361fd9e +++ /dev/null @@ -1,125 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - int_type_literal { - } - } - } - } - } - } - } - } - init { - operator { - op: AddressOf - arguments { - identifier { - name: "a" - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "A" - } - } - } - } - } - } - } - } - init { - identifier { - name: "b" - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/93cba88aa6339c5b99fb1179a53081e985a22b40 b/explorer/fuzzing/fuzzer_corpus/93cba88aa6339c5b99fb1179a53081e985a22b40 deleted file mode 100644 index 92f3b7f5a7727..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/93cba88aa6339c5b99fb1179a53081e985a22b40 +++ /dev/null @@ -1,653 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "C" - } - members { - variable { - binding { - name: "value_c" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - function { - name { - name: "Foo" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "value_c" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "D" - } - members { - variable { - binding { - name: "value_d" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - function { - name { - name: "Foo" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "value_d" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "E" - } - members { - variable { - binding { - name: "value_e" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - function { - name { - name: "Foo" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "value_e" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - identifier { - name: "C" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "value_c" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "c.Foo(): {0}" - } - } - fields { - call { - function { - simple_member_access { - field: "Foo" - object { - identifier { - name: "c" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "d" - type { - expression_pattern { - expression { - identifier { - name: "D" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "value_d" - expression { - int_literal { - value: 2 - } - } - } - fields { - name: "base" - expression { - struct_literal { - fields { - name: "value_c" - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "d.Foo(): {0}" - } - } - fields { - call { - function { - simple_member_access { - field: "Foo" - object { - identifier { - name: "d" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "e" - type { - expression_pattern { - expression { - identifier { - name: "E" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "value_e" - expression { - int_literal { - value: 3 - } - } - } - fields { - name: "base" - expression { - struct_literal { - fields { - name: "value_d" - expression { - int_literal { - value: 2 - } - } - } - fields { - name: "base" - expression { - struct_literal { - fields { - name: "value_c" - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "e.Foo(): {0}" - } - } - fields { - call { - function { - simple_member_access { - field: "Foo" - object { - identifier { - name: "e" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "dp" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "D" - } - } - } - } - } - } - } - } - init { - operator { - op: AddressOf - arguments { - identifier { - name: "e" - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "(*dp).Foo(): {0}" - } - } - fields { - call { - function { - simple_member_access { - field: "Foo" - object { - operator { - op: Deref - arguments { - identifier { - name: "dp" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "dc" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "C" - } - } - } - } - } - } - } - } - init { - operator { - op: AddressOf - arguments { - identifier { - name: "e" - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "(*dc).Foo(): {0}" - } - } - fields { - call { - function { - simple_member_access { - field: "Foo" - object { - operator { - op: Deref - arguments { - identifier { - name: "dc" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/9418eff433af407d7baa42c96fa8a821b5bd1413 b/explorer/fuzzing/fuzzer_corpus/9418eff433af407d7baa42c96fa8a821b5bd1413 deleted file mode 100644 index 211255564cff7..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/9418eff433af407d7baa42c96fa8a821b5bd1413 +++ /dev/null @@ -1,33 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/9475c489913e570bc90c01c9a867ce67b5640087 b/explorer/fuzzing/fuzzer_corpus/9475c489913e570bc90c01c9a867ce67b5640087 deleted file mode 100644 index e48ccb3203c99..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/9475c489913e570bc90c01c9a867ce67b5640087 +++ /dev/null @@ -1,60 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - variable { - binding { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - declarations { - alias { - name { - name: "A" - } - target { - identifier { - name: "v" - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/947944c011b708642cc80e31b42d0ba3d38426a7 b/explorer/fuzzing/fuzzer_corpus/947944c011b708642cc80e31b42d0ba3d38426a7 deleted file mode 100644 index b3680dc45672c..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/947944c011b708642cc80e31b42d0ba3d38426a7 +++ /dev/null @@ -1,179 +0,0 @@ -compilation_unit { - package_statement { - package_name: "Testcase" - } - is_api: true - declarations { - interface { - name { - name: "HasName" - } - members { - let { - pattern { - generic_binding { - name: "Name" - type { - string_type_literal { - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - int_type_literal { - } - } - interface { - where { - base { - identifier { - name: "HasName" - } - } - clauses { - rewrite { - member_name: "Name" - replacement { - string_literal { - value: "i32" - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - string_type_literal { - } - } - interface { - where { - base { - identifier { - name: "HasName" - } - } - clauses { - rewrite { - member_name: "Name" - replacement { - string_literal { - value: "String" - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - compound_member_access { - object { - int_type_literal { - } - } - path { - simple_member_access { - field: "Name" - object { - identifier { - name: "HasName" - } - } - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - compound_member_access { - object { - string_type_literal { - } - } - path { - simple_member_access { - field: "Name" - object { - identifier { - name: "HasName" - } - } - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/949c23e4727e022b5ce9d33d4fde5d52d2990630 b/explorer/fuzzing/fuzzer_corpus/949c23e4727e022b5ce9d33d4fde5d52d2990630 deleted file mode 100644 index 0919f8cd99dcf..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/949c23e4727e022b5ce9d33d4fde5d52d2990630 +++ /dev/null @@ -1,63 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - simple_member_access { - field: "z" - object { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 1 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/94d55b3b044001e9f35feb3eda9c09ad5e4987b2 b/explorer/fuzzing/fuzzer_corpus/94d55b3b044001e9f35feb3eda9c09ad5e4987b2 deleted file mode 100644 index b75fcea8e12a9..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/94d55b3b044001e9f35feb3eda9c09ad5e4987b2 +++ /dev/null @@ -1,152 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "C" - } - members { - function { - name { - name: "Foo" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "D" - } - members { - function { - name { - name: "Foo" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - identifier { - name: "C" - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/956018ad0b7aa4d9f9fa03487c5f00d7e0be25f4 b/explorer/fuzzing/fuzzer_corpus/956018ad0b7aa4d9f9fa03487c5f00d7e0be25f4 deleted file mode 100644 index 574230cc67996..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/956018ad0b7aa4d9f9fa03487c5f00d7e0be25f4 +++ /dev/null @@ -1,234 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "A" - } - } - interface { - where { - base { - call { - function { - identifier { - name: "LeftShiftWith" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - clauses { - rewrite { - member_name: "Result" - replacement { - identifier { - name: "A" - } - } - } - } - } - } - members { - function { - name { - name: "Op" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "rhs" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "A" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "n" - expression { - operator { - op: BitShiftLeft - arguments { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "rhs" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 5 - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "a" - } - } - rhs { - operator { - op: BitShiftLeft - arguments { - identifier { - name: "a" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - simple_member_access { - field: "n" - object { - identifier { - name: "a" - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/959ab866676eb9034a8dbf532200bf297e045806 b/explorer/fuzzing/fuzzer_corpus/959ab866676eb9034a8dbf532200bf297e045806 deleted file mode 100644 index aeb6ad45eae72..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/959ab866676eb9034a8dbf532200bf297e045806 +++ /dev/null @@ -1,442 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Iface" - } - members { - let { - pattern { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "T" - type { - where { - base { - identifier { - name: "Iface" - } - } - clauses { - equals { - lhs { - designator { - name: "T" - } - } - rhs { - int_type_literal { - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - class_declaration { - name { - name: "Class" - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - where { - base { - identifier { - name: "Iface" - } - } - clauses { - rewrite { - member_name: "T" - replacement { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "G" - } - deduced_parameters { - name: "U" - type { - where { - base { - type_type_literal { - } - } - clauses { - equals { - lhs { - designator { - name: "Self" - } - } - rhs { - int_type_literal { - } - } - } - } - } - } - } - deduced_parameters { - name: "T" - type { - where { - base { - identifier { - name: "Iface" - } - } - clauses { - rewrite { - member_name: "T" - replacement { - identifier { - name: "U" - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "y" - type { - expression_pattern { - expression { - identifier { - name: "U" - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "x" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "H" - } - deduced_parameters { - name: "V" - type { - where { - base { - type_type_literal { - } - } - clauses { - equals { - lhs { - designator { - name: "Self" - } - } - rhs { - int_type_literal { - } - } - } - } - } - } - } - deduced_parameters { - name: "W" - type { - where { - base { - identifier { - name: "Iface" - } - } - clauses { - equals { - lhs { - designator { - name: "T" - } - } - rhs { - identifier { - name: "V" - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "W" - } - } - } - } - } - } - fields { - binding_pattern { - name: "y" - type { - expression_pattern { - expression { - identifier { - name: "V" - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "x" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "Class" - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "G" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "x" - } - } - fields { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "H" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "x" - } - } - fields { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/95f55554ccb996e94a54818e5d692fe7e46637e6 b/explorer/fuzzing/fuzzer_corpus/95f55554ccb996e94a54818e5d692fe7e46637e6 deleted file mode 100644 index 948606a96450e..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/95f55554ccb996e94a54818e5d692fe7e46637e6 +++ /dev/null @@ -1,174 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "AddInt" - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - identifier { - name: "a" - } - } - arguments { - identifier { - name: "b" - } - } - } - } - then_block { - statements { - variable_definition { - pattern { - binding_pattern { - name: "ret" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - operator { - op: Add - arguments { - identifier { - name: "a" - } - } - arguments { - identifier { - name: "b" - } - } - } - } - is_returned: true - } - } - statements { - return_var_statement { - } - } - } - else_block { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - identifier { - name: "a" - } - } - arguments { - identifier { - name: "b" - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "AddInt" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/96697f48f2d3ea7a465d45e840cdbaea7265c9da b/explorer/fuzzing/fuzzer_corpus/96697f48f2d3ea7a465d45e840cdbaea7265c9da deleted file mode 100644 index a5dce25ffdac0..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/96697f48f2d3ea7a465d45e840cdbaea7265c9da +++ /dev/null @@ -1,115 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "HasThreeTypes" - } - members { - let { - pattern { - generic_binding { - name: "A" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "B" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "C" - type { - type_type_literal { - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - int_type_literal { - } - } - interface { - where { - base { - identifier { - name: "HasThreeTypes" - } - } - clauses { - rewrite { - member_name: "A" - replacement { - int_type_literal { - } - } - } - } - clauses { - rewrite { - member_name: "C" - replacement { - int_type_literal { - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/9696b507ce04184fd4fe2cbac445d3d8cc16cf88 b/explorer/fuzzing/fuzzer_corpus/9696b507ce04184fd4fe2cbac445d3d8cc16cf88 deleted file mode 100644 index 932efc431f4f8..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/9696b507ce04184fd4fe2cbac445d3d8cc16cf88 +++ /dev/null @@ -1,82 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - operator { - op: Add - arguments { - identifier { - name: "a" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/973324f1915325eec6893bd8e505625d2ac1d9f3 b/explorer/fuzzing/fuzzer_corpus/973324f1915325eec6893bd8e505625d2ac1d9f3 deleted file mode 100644 index acb6f993b4fbf..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/973324f1915325eec6893bd8e505625d2ac1d9f3 +++ /dev/null @@ -1,714 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Vector" - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Point" - } - } - interface { - identifier { - name: "Vector" - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Mul - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "v" - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Mul - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "v" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "AddAndScaleGeneric" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "Vector" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "s" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "m" - type { - expression_pattern { - expression { - function_type { - return_type { - identifier { - name: "T" - } - } - parameter { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - init { - simple_member_access { - field: "Add" - object { - identifier { - name: "a" - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - function_type { - return_type { - identifier { - name: "T" - } - } - parameter { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - init { - simple_member_access { - field: "Scale" - object { - call { - function { - identifier { - name: "m" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "b" - } - } - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "n" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "s" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 1 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 2 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 3 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - call { - function { - identifier { - name: "AddAndScaleGeneric" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "a" - } - } - fields { - identifier { - name: "b" - } - } - fields { - int_literal { - value: 5 - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "p" - } - } - } - } - arguments { - int_literal { - value: 15 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/978b667e4d12c196abd3a4e1ec52f94e57b3ad5e b/explorer/fuzzing/fuzzer_corpus/978b667e4d12c196abd3a4e1ec52f94e57b3ad5e deleted file mode 100644 index a1f9523861a97..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/978b667e4d12c196abd3a4e1ec52f94e57b3ad5e +++ /dev/null @@ -1,137 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "AddInt" - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "ret" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - operator { - op: Add - arguments { - identifier { - name: "a" - } - } - arguments { - identifier { - name: "b" - } - } - } - } - is_returned: true - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "ret" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "AddInt" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/98607e0a14ad66068f230243fceeffc600cc57a4 b/explorer/fuzzing/fuzzer_corpus/98607e0a14ad66068f230243fceeffc600cc57a4 deleted file mode 100644 index f32945d236a4c..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/98607e0a14ad66068f230243fceeffc600cc57a4 +++ /dev/null @@ -1,106 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - int_literal { - value: 0 - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - else_block { - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - int_literal { - value: 0 - } - } - arguments { - int_literal { - value: 2 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 2 - } - } - } - } - } - else_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/9a3c36288c9320a9c2fe8250584ac23e96fcd357 b/explorer/fuzzing/fuzzer_corpus/9a3c36288c9320a9c2fe8250584ac23e96fcd357 deleted file mode 100644 index 07af1f6d97a21..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/9a3c36288c9320a9c2fe8250584ac23e96fcd357 +++ /dev/null @@ -1,50 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/9a86715151b6f28bd7bec84534ae0cbe248d6374 b/explorer/fuzzing/fuzzer_corpus/9a86715151b6f28bd7bec84534ae0cbe248d6374 deleted file mode 100644 index a2332098de04c..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/9a86715151b6f28bd7bec84534ae0cbe248d6374 +++ /dev/null @@ -1,412 +0,0 @@ -compilation_unit { - package_statement { - package_name: "Foo" - } - is_api: true - declarations { - interface { - name { - name: "HasF" - } - members { - function { - name { - name: "F" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "o" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "X" - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - identifier { - name: "HasF" - } - } - members { - function { - name { - name: "F" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "o" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "n" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "n" - object { - identifier { - name: "o" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Y" - } - members { - variable { - binding { - name: "m" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - call { - function { - identifier { - name: "ImplicitAs" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "X" - } - } - } - } - } - } - members { - function { - name { - name: "Convert" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "X" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "n" - expression { - simple_member_access { - field: "m" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "X" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "y" - type { - expression_pattern { - expression { - identifier { - name: "Y" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "m" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - simple_member_access { - field: "n" - object { - call { - function { - compound_member_access { - object { - identifier { - name: "y" - } - } - path { - compound_member_access { - object { - identifier { - name: "X" - } - } - path { - simple_member_access { - field: "F" - object { - identifier { - name: "HasF" - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "x" - } - } - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/9ca0587cdea69c87cee4dcecb747f5201f47fce7 b/explorer/fuzzing/fuzzer_corpus/9ca0587cdea69c87cee4dcecb747f5201f47fce7 deleted file mode 100644 index 893703c3f0064..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/9ca0587cdea69c87cee4dcecb747f5201f47fce7 +++ /dev/null @@ -1,456 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "C" - } - members { - variable { - binding { - name: "val" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "D" - } - members { - variable { - binding { - name: "val" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "E" - } - members { - variable { - binding { - name: "val" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Foo" - } - param_pattern { - fields { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "C" - } - } - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "val" - object { - operator { - op: Deref - arguments { - identifier { - name: "c" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "e" - type { - expression_pattern { - expression { - identifier { - name: "E" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "val" - expression { - int_literal { - value: 3 - } - } - } - fields { - name: "base" - expression { - struct_literal { - fields { - name: "val" - expression { - int_literal { - value: 2 - } - } - } - fields { - name: "base" - expression { - struct_literal { - fields { - name: "val" - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "d" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "D" - } - } - } - } - } - } - } - } - init { - operator { - op: AddressOf - arguments { - identifier { - name: "e" - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "c1" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "C" - } - } - } - } - } - } - } - } - init { - operator { - op: AddressOf - arguments { - identifier { - name: "e" - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "c2" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "C" - } - } - } - } - } - } - } - } - init { - identifier { - name: "d" - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "(*c1).val: {0}" - } - } - fields { - simple_member_access { - field: "val" - object { - operator { - op: Deref - arguments { - identifier { - name: "c1" - } - } - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "(*c2).val: {0}" - } - } - fields { - simple_member_access { - field: "val" - object { - operator { - op: Deref - arguments { - identifier { - name: "c2" - } - } - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "(*d).val: {0}" - } - } - fields { - simple_member_access { - field: "val" - object { - operator { - op: Deref - arguments { - identifier { - name: "d" - } - } - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "e.val: {0}" - } - } - fields { - simple_member_access { - field: "val" - object { - identifier { - name: "e" - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/9d40d743d76f2b406047513146ca9db3d2af7550 b/explorer/fuzzing/fuzzer_corpus/9d40d743d76f2b406047513146ca9db3d2af7550 deleted file mode 100644 index 34878f97f0808..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/9d40d743d76f2b406047513146ca9db3d2af7550 +++ /dev/null @@ -1,148 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "AssignIntTo" - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "destination" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - int_type_literal { - } - } - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - statements { - assign { - lhs { - operator { - op: Deref - arguments { - identifier { - name: "destination" - } - } - } - } - rhs { - identifier { - name: "x" - } - } - op: Plain - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "AssignIntTo" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 42 - } - } - fields { - operator { - op: AddressOf - arguments { - identifier { - name: "y" - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "y" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/9de303a702b10616ceb04deaa52af70899c4db4d b/explorer/fuzzing/fuzzer_corpus/9de303a702b10616ceb04deaa52af70899c4db4d deleted file mode 100644 index baac7fe046cda..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/9de303a702b10616ceb04deaa52af70899c4db4d +++ /dev/null @@ -1,179 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "ar" - type { - expression_pattern { - expression { - array_type_literal { - element_type { - int_type_literal { - } - } - size { - int_literal { - value: 4 - } - } - } - } - } - } - } - } - init { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 2 - } - } - fields { - int_literal { - value: 3 - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "count" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - for_statement { - var_decl { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - target { - identifier { - name: "ar" - } - } - body { - statements { - assign { - lhs { - identifier { - name: "count" - } - } - rhs { - operator { - op: Add - arguments { - identifier { - name: "count" - } - } - arguments { - identifier { - name: "x" - } - } - } - } - op: Plain - } - } - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - identifier { - name: "x" - } - } - arguments { - int_literal { - value: 2 - } - } - } - } - then_block { - statements { - break_statement { - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "count" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/9edaf75a29bfaf3a1dc00b3356ad93a904ec1bf4 b/explorer/fuzzing/fuzzer_corpus/9edaf75a29bfaf3a1dc00b3356ad93a904ec1bf4 deleted file mode 100644 index 4773da347a8df..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/9edaf75a29bfaf3a1dc00b3356ad93a904ec1bf4 +++ /dev/null @@ -1,90 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - struct_type_literal { - fields { - name: "x" - expression { - int_type_literal { - } - } - } - fields { - name: "y" - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - simple_member_access { - field: "x" - object { - identifier { - name: "p" - } - } - } - } - rhs { - simple_member_access { - field: "y" - object { - identifier { - name: "p" - } - } - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/9f2b40328127947524429569157002cc2c8b4113 b/explorer/fuzzing/fuzzer_corpus/9f2b40328127947524429569157002cc2c8b4113 deleted file mode 100644 index 4f83bd40bfe8d..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/9f2b40328127947524429569157002cc2c8b4113 +++ /dev/null @@ -1,90 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "C" - } - members { - function { - name { - name: "Foo" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - identifier { - name: "C" - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/9f7214ed05fbc790b9101054c0cac6f4f60de1c5 b/explorer/fuzzing/fuzzer_corpus/9f7214ed05fbc790b9101054c0cac6f4f60de1c5 deleted file mode 100644 index 240949c13853f..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/9f7214ed05fbc790b9101054c0cac6f4f60de1c5 +++ /dev/null @@ -1,75 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "too" - } - } - fields { - string_literal { - value: "many" - } - } - fields { - string_literal { - value: "args" - } - } - fields { - string_literal { - value: "to" - } - } - fields { - string_literal { - value: "print" - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/a08d92d7abc23040943022426fb46a276cc2101e b/explorer/fuzzing/fuzzer_corpus/a08d92d7abc23040943022426fb46a276cc2101e deleted file mode 100644 index 0fba2bc14fea1..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/a08d92d7abc23040943022426fb46a276cc2101e +++ /dev/null @@ -1,120 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "add" - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Auto - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - identifier { - name: "x" - } - } - arguments { - identifier { - name: "y" - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - call { - function { - identifier { - name: "add" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 2 - } - } - } - } - } - } - arguments { - int_literal { - value: 3 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/a0cf3d4ea5a416fd9a0734096c0214a9143ed71d b/explorer/fuzzing/fuzzer_corpus/a0cf3d4ea5a416fd9a0734096c0214a9143ed71d deleted file mode 100644 index ed99c402bac7f..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/a0cf3d4ea5a416fd9a0734096c0214a9143ed71d +++ /dev/null @@ -1,91 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - is_returned: false - } - } - statements { - match { - expression { - identifier { - name: "x" - } - } - clauses { - pattern { - expression_pattern { - expression { - int_literal { - value: 0 - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - clauses { - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - is_default: true - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/a0d6afaa5de15f753b76e48ce21b77300d4247b0 b/explorer/fuzzing/fuzzer_corpus/a0d6afaa5de15f753b76e48ce21b77300d4247b0 deleted file mode 100644 index 61754e1fc902d..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/a0d6afaa5de15f753b76e48ce21b77300d4247b0 +++ /dev/null @@ -1,548 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "C" - } - members { - function { - name { - name: "Foo" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - members { - function { - name { - name: "Bar" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "D" - } - members { - function { - name { - name: "Foo" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 3 - } - } - } - } - } - } - } - members { - function { - name { - name: "Bar" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 4 - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - identifier { - name: "C" - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "c.Foo() -> {0}" - } - } - fields { - call { - function { - simple_member_access { - field: "Foo" - object { - identifier { - name: "c" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "c.Bar() -> {0}" - } - } - fields { - call { - function { - simple_member_access { - field: "Bar" - object { - identifier { - name: "c" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "d" - type { - expression_pattern { - expression { - identifier { - name: "D" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "base" - expression { - struct_literal { - } - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "d.Foo() -> {0}" - } - } - fields { - call { - function { - simple_member_access { - field: "Foo" - object { - identifier { - name: "d" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "d.Bar() -> {0}" - } - } - fields { - call { - function { - simple_member_access { - field: "Bar" - object { - identifier { - name: "d" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "cc" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "C" - } - } - } - } - } - } - } - } - init { - operator { - op: AddressOf - arguments { - identifier { - name: "d" - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "cc.Foo() -> {0}" - } - } - fields { - call { - function { - simple_member_access { - field: "Foo" - object { - operator { - op: Deref - arguments { - identifier { - name: "cc" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "cc.Bar() -> {0}" - } - } - fields { - call { - function { - simple_member_access { - field: "Bar" - object { - operator { - op: Deref - arguments { - identifier { - name: "cc" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/a103add196c50b16925c2d218749cc812d912a7a b/explorer/fuzzing/fuzzer_corpus/a103add196c50b16925c2d218749cc812d912a7a deleted file mode 100644 index 1b7984d80241e..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/a103add196c50b16925c2d218749cc812d912a7a +++ /dev/null @@ -1,99 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "T" - type { - operator { - op: BitwiseAnd - arguments { - type_type_literal { - } - } - arguments { - type_type_literal { - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/a3050fa0d18aecf519f74d21c344a5727f80c10a b/explorer/fuzzing/fuzzer_corpus/a3050fa0d18aecf519f74d21c344a5727f80c10a deleted file mode 100644 index 1f50a8887ebb0..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/a3050fa0d18aecf519f74d21c344a5727f80c10a +++ /dev/null @@ -1,145 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - namespace { - name { - name: "Namespace" - } - } - } - declarations { - interface { - name { - qualifiers: "Namespace" - name: "AddWith" - } - } - } - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "T" - type { - where { - base { - call { - function { - identifier { - name: "AddWith" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - clauses { - rewrite { - member_name: "Result" - replacement { - int_type_literal { - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - identifier { - name: "n" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/a3b3ebf7fc4022ce6c2ef4d257edb183aa15bf1e b/explorer/fuzzing/fuzzer_corpus/a3b3ebf7fc4022ce6c2ef4d257edb183aa15bf1e deleted file mode 100644 index 7508350b94a4a..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/a3b3ebf7fc4022ce6c2ef4d257edb183aa15bf1e +++ /dev/null @@ -1,178 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - variable { - binding { - name: "call_count" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - initializer { - int_literal { - value: 0 - } - } - } - } - declarations { - function { - name { - name: "ReturnFalse" - } - param_pattern { - } - return_term { - kind: Expression - type { - bool_type_literal { - } - } - } - body { - statements { - assign { - lhs { - identifier { - name: "call_count" - } - } - rhs { - operator { - op: Add - arguments { - identifier { - name: "call_count" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - bool_literal { - value: false - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "result" - type { - expression_pattern { - expression { - bool_type_literal { - } - } - } - } - } - } - init { - operator { - op: Or - arguments { - call { - function { - identifier { - name: "ReturnFalse" - } - } - argument { - tuple_literal { - } - } - } - } - arguments { - call { - function { - identifier { - name: "ReturnFalse" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - if_expression { - condition { - operator { - op: Not - arguments { - identifier { - name: "result" - } - } - } - } - then_expression { - identifier { - name: "call_count" - } - } - else_expression { - operator { - op: Neg - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/a3e7fdd6333766ddcf6e0ea91314908660d30ffb b/explorer/fuzzing/fuzzer_corpus/a3e7fdd6333766ddcf6e0ea91314908660d30ffb deleted file mode 100644 index 30b5c417ce828..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/a3e7fdd6333766ddcf6e0ea91314908660d30ffb +++ /dev/null @@ -1,201 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - choice { - name { - name: "MyOptionalElement" - } - alternatives { - name: "None" - signature { - fields { - identifier { - name: "ZZ" - } - } - } - } - alternatives { - name: "Element" - signature { - fields { - identifier { - name: "ZZ" - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "f" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "MyOptionalElement" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "f" - } - } - rhs { - call { - function { - simple_member_access { - field: "None" - object { - call { - function { - identifier { - name: "MyOptionalElement" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 22 - } - } - } - } - } - } - op: Plain - } - } - statements { - match { - expression { - identifier { - name: "f" - } - } - clauses { - pattern { - alternative_pattern { - choice_type { - call { - function { - identifier { - name: "MyOptionalElement" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - alternative_name: "None" - arguments { - fields { - var_pattern { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/a4b77ba4911d2e3e0ffbee880c454b47c1a67cc8 b/explorer/fuzzing/fuzzer_corpus/a4b77ba4911d2e3e0ffbee880c454b47c1a67cc8 deleted file mode 100644 index b46e4c822dda3..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/a4b77ba4911d2e3e0ffbee880c454b47c1a67cc8 +++ /dev/null @@ -1,110 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - operator { - op: Neg - arguments { - int_literal { - value: 1 - } - } - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - bool_literal { - value: true - } - } - then_block { - statements { - variable_definition { - pattern { - binding_pattern { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "x" - } - } - rhs { - identifier { - name: "y" - } - } - op: Plain - } - } - } - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/a4ff3bea934cdfdc0f66a25641fe6b19016ef1da b/explorer/fuzzing/fuzzer_corpus/a4ff3bea934cdfdc0f66a25641fe6b19016ef1da deleted file mode 100644 index 117210edae5d7..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/a4ff3bea934cdfdc0f66a25641fe6b19016ef1da +++ /dev/null @@ -1,553 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - operator { - op: Complement - arguments { - int_literal { - value: 0 - } - } - } - } - arguments { - operator { - op: Neg - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 11 - } - } - } - } - } - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - operator { - op: Complement - arguments { - int_literal { - value: 1 - } - } - } - } - arguments { - operator { - op: Neg - arguments { - int_literal { - value: 2 - } - } - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 12 - } - } - } - } - } - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - operator { - op: Complement - arguments { - operator { - op: Neg - arguments { - int_literal { - value: 3 - } - } - } - } - } - } - arguments { - int_literal { - value: 2 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 13 - } - } - } - } - } - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - operator { - op: BitwiseAnd - arguments { - int_literal { - value: 3 - } - } - arguments { - int_literal { - value: 6 - } - } - } - } - arguments { - int_literal { - value: 2 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 21 - } - } - } - } - } - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - operator { - op: BitwiseAnd - arguments { - operator { - op: Neg - arguments { - int_literal { - value: 1 - } - } - } - } - arguments { - int_literal { - value: 4 - } - } - } - } - arguments { - int_literal { - value: 4 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 22 - } - } - } - } - } - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - operator { - op: BitwiseAnd - arguments { - operator { - op: Neg - arguments { - int_literal { - value: 1 - } - } - } - } - arguments { - operator { - op: Neg - arguments { - int_literal { - value: 2 - } - } - } - } - } - } - arguments { - operator { - op: Neg - arguments { - int_literal { - value: 2 - } - } - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 23 - } - } - } - } - } - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - operator { - op: BitwiseOr - arguments { - int_literal { - value: 1 - } - } - arguments { - int_literal { - value: 4 - } - } - } - } - arguments { - int_literal { - value: 5 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 31 - } - } - } - } - } - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - operator { - op: BitwiseOr - arguments { - int_literal { - value: 5 - } - } - arguments { - int_literal { - value: 3 - } - } - } - } - arguments { - int_literal { - value: 7 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 32 - } - } - } - } - } - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - operator { - op: BitwiseOr - arguments { - operator { - op: Neg - arguments { - int_literal { - value: 2 - } - } - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - arguments { - operator { - op: Neg - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 33 - } - } - } - } - } - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - operator { - op: BitwiseXor - arguments { - int_literal { - value: 1 - } - } - arguments { - int_literal { - value: 4 - } - } - } - } - arguments { - int_literal { - value: 5 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 41 - } - } - } - } - } - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - operator { - op: BitwiseXor - arguments { - int_literal { - value: 5 - } - } - arguments { - int_literal { - value: 3 - } - } - } - } - arguments { - int_literal { - value: 6 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 42 - } - } - } - } - } - } - } - statements { - if_statement { - condition { - operator { - op: NotEq - arguments { - operator { - op: BitwiseXor - arguments { - operator { - op: Neg - arguments { - int_literal { - value: 2 - } - } - } - } - arguments { - operator { - op: Neg - arguments { - int_literal { - value: 3 - } - } - } - } - } - } - arguments { - int_literal { - value: 3 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 43 - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/a5cbe60f4b842b38d4daeb66b4f8b8efebe1deb7 b/explorer/fuzzing/fuzzer_corpus/a5cbe60f4b842b38d4daeb66b4f8b8efebe1deb7 deleted file mode 100644 index 82912180917b5..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/a5cbe60f4b842b38d4daeb66b4f8b8efebe1deb7 +++ /dev/null @@ -1,242 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Similar" - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "T" - } - } - interface { - call { - function { - identifier { - name: "Similar" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - call { - function { - identifier { - name: "Similar" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "CheckSimilar" - } - deduced_parameters { - name: "T" - type { - type_type_literal { - } - } - } - deduced_parameters { - name: "U" - type { - call { - function { - identifier { - name: "Similar" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "U" - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "CheckSimilar" - } - } - argument { - tuple_literal { - fields { - bool_literal { - value: true - } - } - fields { - bool_literal { - value: false - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "CheckSimilar" - } - } - argument { - tuple_literal { - fields { - bool_literal { - value: true - } - } - fields { - identifier { - name: "n" - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/a60a8a53538192ead1fdde89d92778dba80f9224 b/explorer/fuzzing/fuzzer_corpus/a60a8a53538192ead1fdde89d92778dba80f9224 deleted file mode 100644 index cf27cffa6d3d5..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/a60a8a53538192ead1fdde89d92778dba80f9224 +++ /dev/null @@ -1,136 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - tuple_pattern { - fields { - var_pattern { - pattern { - binding_pattern { - name: "a" - type { - auto_pattern { - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - auto_pattern { - } - } - } - } - fields { - binding_pattern { - name: "c" - type { - auto_pattern { - } - } - } - } - fields { - binding_pattern { - name: "d" - type { - auto_pattern { - } - } - } - } - } - } - init { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 2 - } - } - fields { - int_literal { - value: 3 - } - } - fields { - int_literal { - value: 4 - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "a" - } - } - rhs { - int_literal { - value: 0 - } - } - op: Plain - } - } - statements { - assign { - lhs { - identifier { - name: "c" - } - } - rhs { - int_literal { - value: 0 - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/a63969e9231d175a9a38e210ddd976ddd91320a0 b/explorer/fuzzing/fuzzer_corpus/a63969e9231d175a9a38e210ddd976ddd91320a0 deleted file mode 100644 index 77d11e73604cc..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/a63969e9231d175a9a38e210ddd976ddd91320a0 +++ /dev/null @@ -1,177 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "ar" - type { - expression_pattern { - expression { - array_type_literal { - element_type { - int_type_literal { - } - } - size { - int_literal { - value: 4 - } - } - } - } - } - } - } - } - init { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 2 - } - } - fields { - int_literal { - value: 3 - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "count" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - for_statement { - var_decl { - name: "x" - type { - auto_pattern { - } - } - } - target { - identifier { - name: "ar" - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "HALLO WELT {0}" - } - } - fields { - identifier { - name: "x" - } - } - } - } - } - } - } - } - statements { - assign { - lhs { - identifier { - name: "count" - } - } - rhs { - operator { - op: Add - arguments { - identifier { - name: "count" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - op: Plain - } - } - } - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "count" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/a6bafba04f6e5e43d76633724a0858c611a00248 b/explorer/fuzzing/fuzzer_corpus/a6bafba04f6e5e43d76633724a0858c611a00248 deleted file mode 100644 index 3817a854fb4b1..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/a6bafba04f6e5e43d76633724a0858c611a00248 +++ /dev/null @@ -1,296 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "ManyTypes" - } - members { - let { - pattern { - generic_binding { - name: "T0" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "T1" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "T2" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "T3" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "T4" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "T5" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "T6" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "T7" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "T8" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "T9" - type { - type_type_literal { - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "M" - type { - where { - base { - identifier { - name: "ManyTypes" - } - } - clauses { - rewrite { - member_name: "T0" - replacement { - designator { - name: "T1" - } - } - } - } - clauses { - rewrite { - member_name: "T1" - replacement { - designator { - name: "T2" - } - } - } - } - clauses { - rewrite { - member_name: "T2" - replacement { - designator { - name: "T3" - } - } - } - } - clauses { - rewrite { - member_name: "T3" - replacement { - designator { - name: "T4" - } - } - } - } - clauses { - rewrite { - member_name: "T4" - replacement { - designator { - name: "T5" - } - } - } - } - clauses { - rewrite { - member_name: "T5" - replacement { - designator { - name: "T6" - } - } - } - } - clauses { - rewrite { - member_name: "T6" - replacement { - designator { - name: "T7" - } - } - } - } - clauses { - rewrite { - member_name: "T7" - replacement { - designator { - name: "T8" - } - } - } - } - clauses { - rewrite { - member_name: "T8" - replacement { - designator { - name: "T9" - } - } - } - } - clauses { - rewrite { - member_name: "T9" - replacement { - designator { - name: "T0" - } - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/a6c74d103e741edd3f4a0b34d114b451bebd4593 b/explorer/fuzzing/fuzzer_corpus/a6c74d103e741edd3f4a0b34d114b451bebd4593 deleted file mode 100644 index 8254f072110c6..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/a6c74d103e741edd3f4a0b34d114b451bebd4593 +++ /dev/null @@ -1,63 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - simple_member_access { - field: "x" - object { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 1 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/a7f8b0f9b13cfd705824c887103f516d87d48ca4 b/explorer/fuzzing/fuzzer_corpus/a7f8b0f9b13cfd705824c887103f516d87d48ca4 deleted file mode 100644 index 34f4d005137b2..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/a7f8b0f9b13cfd705824c887103f516d87d48ca4 +++ /dev/null @@ -1,116 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "CompareStr" - } - param_pattern { - fields { - binding_pattern { - name: "s" - type { - expression_pattern { - expression { - string_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - identifier { - name: "s" - } - } - arguments { - string_literal { - value: "str\n" - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "CompareStr" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "str\n" - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/a84a42d64867252e2e7144cfb8c31dc7a2d9526e b/explorer/fuzzing/fuzzer_corpus/a84a42d64867252e2e7144cfb8c31dc7a2d9526e deleted file mode 100644 index 99d9f99ee8412..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/a84a42d64867252e2e7144cfb8c31dc7a2d9526e +++ /dev/null @@ -1,61 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - binding_pattern { - name: "T" - type { - expression_pattern { - expression { - type_type_literal { - } - } - } - } - } - } - } - } - init { - int_literal { - value: 1 - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/a9a32f0f6f90b118987f1813f2ea7e7726f399ed b/explorer/fuzzing/fuzzer_corpus/a9a32f0f6f90b118987f1813f2ea7e7726f399ed deleted file mode 100644 index 737f1eed37e57..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/a9a32f0f6f90b118987f1813f2ea7e7726f399ed +++ /dev/null @@ -1,73 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - initializer { - int_literal { - value: 0 - } - } - } - } - declarations { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - initializer { - identifier { - name: "x" - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "y" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/a9f29fe9b82f4f0291f37c61777dc38f202cfdd9 b/explorer/fuzzing/fuzzer_corpus/a9f29fe9b82f4f0291f37c61777dc38f202cfdd9 deleted file mode 100644 index 85d2e4b77a2ae..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/a9f29fe9b82f4f0291f37c61777dc38f202cfdd9 +++ /dev/null @@ -1,90 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "t" - type { - auto_pattern { - } - } - } - } - init { - int_literal { - value: 5 - } - } - is_returned: false - } - } - statements { - match { - expression { - identifier { - name: "t" - } - } - clauses { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - identifier { - name: "x" - } - } - arguments { - int_literal { - value: 5 - } - } - } - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/aabfa1065ebe0a671c2a78961b101a1d45ab0acd b/explorer/fuzzing/fuzzer_corpus/aabfa1065ebe0a671c2a78961b101a1d45ab0acd deleted file mode 100644 index 4fbc2787ea92f..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/aabfa1065ebe0a671c2a78961b101a1d45ab0acd +++ /dev/null @@ -1,355 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "A" - } - } - interface { - where { - base { - call { - function { - identifier { - name: "BitAndWith" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - clauses { - rewrite { - member_name: "Result" - replacement { - identifier { - name: "A" - } - } - } - } - } - } - members { - function { - name { - name: "Op" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "rhs" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "A" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "n" - expression { - operator { - op: BitwiseAnd - arguments { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "rhs" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 13 - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "a" - } - } - rhs { - operator { - op: BitwiseAnd - arguments { - identifier { - name: "a" - } - } - arguments { - int_literal { - value: 7 - } - } - } - } - op: Plain - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "a" - } - } - } - } - } - } - } - } - } - } - statements { - assign { - lhs { - identifier { - name: "a" - } - } - rhs { - operator { - op: Neg - arguments { - int_literal { - value: 2 - } - } - } - } - op: And - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "a" - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "n" - object { - operator { - op: BitwiseAnd - arguments { - identifier { - name: "a" - } - } - arguments { - int_literal { - value: 3 - } - } - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/abe990a35bad5c0ed6f66289dac8b310bccf732a b/explorer/fuzzing/fuzzer_corpus/abe990a35bad5c0ed6f66289dac8b310bccf732a deleted file mode 100644 index 1d3a0ffabe3ce..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/abe990a35bad5c0ed6f66289dac8b310bccf732a +++ /dev/null @@ -1,69 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "A" - } - } - } - declarations { - alias { - name { - name: "B" - } - target { - where { - base { - identifier { - name: "A" - } - } - clauses { - impls { - type { - int_type_literal { - } - } - constraint { - int_type_literal { - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} - diff --git a/explorer/fuzzing/fuzzer_corpus/abef7d05195421c940d49409627c5b24d4f2b916 b/explorer/fuzzing/fuzzer_corpus/abef7d05195421c940d49409627c5b24d4f2b916 deleted file mode 100644 index 99f89e3db3ccc..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/abef7d05195421c940d49409627c5b24d4f2b916 +++ /dev/null @@ -1,57 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/ac06160978bdf5b1ee077ff7b4e0136ab2ed94a2 b/explorer/fuzzing/fuzzer_corpus/ac06160978bdf5b1ee077ff7b4e0136ab2ed94a2 deleted file mode 100644 index 83ae5b35b9d5b..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/ac06160978bdf5b1ee077ff7b4e0136ab2ed94a2 +++ /dev/null @@ -1,117 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - function { - name { - name: "F" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "F" - object { - identifier { - name: "a" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/ac7cd64ec76981e445dafd5575bb4064bf58679e b/explorer/fuzzing/fuzzer_corpus/ac7cd64ec76981e445dafd5575bb4064bf58679e deleted file mode 100644 index a2e2205310acc..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/ac7cd64ec76981e445dafd5575bb4064bf58679e +++ /dev/null @@ -1,628 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Number" - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "other" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - type_params { - fields { - generic_binding { - name: "T" - type { - identifier { - name: "Number" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Origin" - } - deduced_parameters { - name: "U" - type { - identifier { - name: "Number" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "other" - type { - expression_pattern { - expression { - identifier { - name: "U" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "U" - } - } - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - call { - function { - simple_member_access { - field: "Zero" - object { - identifier { - name: "U" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - fields { - name: "y" - expression { - call { - function { - simple_member_access { - field: "Zero" - object { - identifier { - name: "U" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Clone" - } - deduced_parameters { - name: "U" - type { - identifier { - name: "Number" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "other" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "U" - } - } - } - } - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "U" - } - } - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - simple_member_access { - field: "x" - object { - identifier { - name: "other" - } - } - } - } - } - fields { - name: "y" - expression { - simple_member_access { - field: "y" - object { - identifier { - name: "other" - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "SumXY" - } - deduced_parameters { - name: "U" - type { - identifier { - name: "Number" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "other" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "U" - } - } - } - } - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "U" - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Add" - object { - simple_member_access { - field: "x" - object { - identifier { - name: "other" - } - } - } - } - } - } - argument { - tuple_literal { - fields { - simple_member_access { - field: "y" - object { - identifier { - name: "other" - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - int_type_literal { - } - } - interface { - identifier { - name: "Number" - } - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "other" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - identifier { - name: "self" - } - } - arguments { - identifier { - name: "other" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - call { - function { - identifier { - name: "Origin" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "SumXY" - } - } - argument { - tuple_literal { - fields { - call { - function { - identifier { - name: "Clone" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "p" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/acc5855acb0ff0978d05f4b38c1b4f294cd24e10 b/explorer/fuzzing/fuzzer_corpus/acc5855acb0ff0978d05f4b38c1b4f294cd24e10 deleted file mode 100644 index 1593a01c9d714..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/acc5855acb0ff0978d05f4b38c1b4f294cd24e10 +++ /dev/null @@ -1,602 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Number" - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "other" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point" - } - members { - function { - name { - name: "Origin" - } - param_pattern { - } - return_term { - kind: Expression - type { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - call { - function { - simple_member_access { - field: "Zero" - object { - identifier { - name: "T" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - fields { - name: "y" - expression { - call { - function { - simple_member_access { - field: "Zero" - object { - identifier { - name: "T" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Clone" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - } - fields { - name: "y" - expression { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "SumXY" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Add" - object { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - } - } - argument { - tuple_literal { - fields { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - type_params { - fields { - generic_binding { - name: "T" - type { - identifier { - name: "Number" - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - int_type_literal { - } - } - interface { - identifier { - name: "Number" - } - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "other" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - identifier { - name: "self" - } - } - arguments { - identifier { - name: "other" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Origin" - object { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "SumXY" - object { - call { - function { - simple_member_access { - field: "Clone" - object { - identifier { - name: "p" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/ae187d3c2a3f587cfc53c496fdaefc7237b5da06 b/explorer/fuzzing/fuzzer_corpus/ae187d3c2a3f587cfc53c496fdaefc7237b5da06 deleted file mode 100644 index 018ca60e1c404..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/ae187d3c2a3f587cfc53c496fdaefc7237b5da06 +++ /dev/null @@ -1,68 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - type_type_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/ae4250e3cccc84665079618f2b1e94890c23a863 b/explorer/fuzzing/fuzzer_corpus/ae4250e3cccc84665079618f2b1e94890c23a863 deleted file mode 100644 index c5bb8256f7449..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/ae4250e3cccc84665079618f2b1e94890c23a863 +++ /dev/null @@ -1,244 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "HasAssoc" - } - members { - let { - pattern { - generic_binding { - name: "Assoc" - type { - int_type_literal { - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "X" - } - members { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - where { - base { - identifier { - name: "HasAssoc" - } - } - clauses { - rewrite { - member_name: "Assoc" - replacement { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - declarations { - alias { - name { - name: "WithoutRewrite" - } - target { - where { - base { - identifier { - name: "HasAssoc" - } - } - clauses { - equals { - lhs { - designator { - name: "Assoc" - } - } - rhs { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - declarations { - alias { - name { - name: "WithRewrite" - } - target { - where { - base { - identifier { - name: "HasAssoc" - } - } - clauses { - rewrite { - member_name: "Assoc" - replacement { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "WithRewrite" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - compound_member_access { - object { - identifier { - name: "x" - } - } - path { - simple_member_access { - field: "Assoc" - object { - identifier { - name: "WithoutRewrite" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "X" - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "x" - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/ae6f380f5cff73707edfdf951fed67cef050702d b/explorer/fuzzing/fuzzer_corpus/ae6f380f5cff73707edfdf951fed67cef050702d deleted file mode 100644 index 418b1d9a16383..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/ae6f380f5cff73707edfdf951fed67cef050702d +++ /dev/null @@ -1,134 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "A" - } - param_pattern { - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - match { - expression { - identifier { - name: "n" - } - } - clauses { - pattern { - expression_pattern { - expression { - int_literal { - value: 1 - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - clauses { - pattern { - expression_pattern { - expression { - int_literal { - value: 2 - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "A" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/ae7fb22c5903ae2bd7eb6c125aadc6e1c39a43b1 b/explorer/fuzzing/fuzzer_corpus/ae7fb22c5903ae2bd7eb6c125aadc6e1c39a43b1 deleted file mode 100644 index 6a9150ccbfc1e..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/ae7fb22c5903ae2bd7eb6c125aadc6e1c39a43b1 +++ /dev/null @@ -1,72 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - statements { - return_expression_statement { - expression { - tuple_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/ae84a74278fbcaf0a9526002d80d7d688071f830 b/explorer/fuzzing/fuzzer_corpus/ae84a74278fbcaf0a9526002d80d7d688071f830 deleted file mode 100644 index f71d0a4df3a98..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/ae84a74278fbcaf0a9526002d80d7d688071f830 +++ /dev/null @@ -1,150 +0,0 @@ -compilation_unit { - package_statement { - package_name: "Foo" - } - is_api: true - declarations { - interface { - name { - name: "A" - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "X" - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - identifier { - name: "A" - } - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "X" - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - compound_member_access { - object { - identifier { - name: "a" - } - } - path { - simple_member_access { - field: "F" - object { - identifier { - name: "A" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/aec8e41ec050f7ac7949c98922b69b326ead66dc b/explorer/fuzzing/fuzzer_corpus/aec8e41ec050f7ac7949c98922b69b326ead66dc deleted file mode 100644 index 47a5f8db2a728..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/aec8e41ec050f7ac7949c98922b69b326ead66dc +++ /dev/null @@ -1,156 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - mixin { - name { - name: "M1" - } - members { - function { - name { - name: "F1" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - self { - name: "Self" - type { - type_type_literal { - } - } - } - } - } - declarations { - mixin { - name { - name: "M2" - } - members { - function { - name { - name: "F1" - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - self { - name: "Self" - type { - type_type_literal { - } - } - } - } - } - declarations { - class_declaration { - name { - name: "C" - } - members { - mix { - mixin { - identifier { - name: "M1" - } - } - } - } - members { - mix { - mixin { - identifier { - name: "M2" - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/aee45564efafd5ba31e2a2ff37ec28e6a7467454 b/explorer/fuzzing/fuzzer_corpus/aee45564efafd5ba31e2a2ff37ec28e6a7467454 deleted file mode 100644 index 47dbdb87e4c63..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/aee45564efafd5ba31e2a2ff37ec28e6a7467454 +++ /dev/null @@ -1,49 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - namespace { - name { - name: "N" - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - identifier { - name: "N" - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/b0104f7d6a22c98bb612f42cec045f64f0599507 b/explorer/fuzzing/fuzzer_corpus/b0104f7d6a22c98bb612f42cec045f64f0599507 deleted file mode 100644 index 016ed345ed9e6..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/b0104f7d6a22c98bb612f42cec045f64f0599507 +++ /dev/null @@ -1,70 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "A" - } - } - } - declarations { - alias { - name { - name: "B" - } - target { - where { - base { - identifier { - name: "A" - } - } - clauses { - impls { - type { - int_type_literal { - } - } - constraint { - int_literal { - value: 5 - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} - diff --git a/explorer/fuzzing/fuzzer_corpus/b0491a3d1a612b9db8c3c0aea3beb47bb1c969bc b/explorer/fuzzing/fuzzer_corpus/b0491a3d1a612b9db8c3c0aea3beb47bb1c969bc deleted file mode 100644 index b6aad628203ac..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/b0491a3d1a612b9db8c3c0aea3beb47bb1c969bc +++ /dev/null @@ -1,139 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Foo" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - is_returned: false - } - } - statements { - match { - expression { - call { - function { - identifier { - name: "Foo" - } - } - argument { - tuple_literal { - } - } - } - } - clauses { - pattern { - expression_pattern { - expression { - int_literal { - value: 0 - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - clauses { - pattern { - expression_pattern { - expression { - int_literal { - value: 1 - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - clauses { - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - is_default: true - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/b16cf513638e6de15cdbaa109f89af668838b96d b/explorer/fuzzing/fuzzer_corpus/b16cf513638e6de15cdbaa109f89af668838b96d deleted file mode 100644 index 2f7e4660771aa..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/b16cf513638e6de15cdbaa109f89af668838b96d +++ /dev/null @@ -1,124 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 1 - } - } - } - fields { - name: "z" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "p" - } - } - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/b199b67a1dc9ed62f467033a9d14b0a7404be0af b/explorer/fuzzing/fuzzer_corpus/b199b67a1dc9ed62f467033a9d14b0a7404be0af deleted file mode 100644 index 0199896b37e3a..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/b199b67a1dc9ed62f467033a9d14b0a7404be0af +++ /dev/null @@ -1,2025 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - choice { - name { - name: "AB" - } - alternatives { - name: "A" - signature { - } - } - alternatives { - name: "B" - signature { - } - } - } - } - declarations { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "AB" - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - match { - expression { - tuple_literal { - fields { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - clauses { - pattern { - expression_pattern { - expression { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - clauses { - pattern { - expression_pattern { - expression { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - fields { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 3 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 4 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 5 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 6 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 7 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "A" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 8 - } - } - } - } - } - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - identifier { - name: "AB" - } - } - } - } - } - } - fields { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "B" - object { - identifier { - name: "AB" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 9 - } - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/b1e9560f0665a4c7381526676797f330b5ddaf72 b/explorer/fuzzing/fuzzer_corpus/b1e9560f0665a4c7381526676797f330b5ddaf72 deleted file mode 100644 index 15d296de4b660..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/b1e9560f0665a4c7381526676797f330b5ddaf72 +++ /dev/null @@ -1,150 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "HasI32Param" - } - type_params { - fields { - generic_binding { - name: "V" - type { - int_type_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "F" - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "HasI32Param" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "HasI32Param" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "n" - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/b24ab1329ade1d249042b49cbefaabe9e289d990 b/explorer/fuzzing/fuzzer_corpus/b24ab1329ade1d249042b49cbefaabe9e289d990 deleted file mode 100644 index 5eb4588d4ef32..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/b24ab1329ade1d249042b49cbefaabe9e289d990 +++ /dev/null @@ -1,117 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "TwoTypes" - } - members { - let { - pattern { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "U" - type { - type_type_literal { - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "X" - type { - where { - base { - identifier { - name: "TwoTypes" - } - } - clauses { - rewrite { - member_name: "T" - replacement { - designator { - name: "U" - } - } - } - } - clauses { - rewrite { - member_name: "U" - replacement { - operator { - op: Ptr - arguments { - designator { - name: "U" - } - } - } - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/b273f6d89c4098dddc6a17fc2200950b2a1ca8b2 b/explorer/fuzzing/fuzzer_corpus/b273f6d89c4098dddc6a17fc2200950b2a1ca8b2 deleted file mode 100644 index cf7c923d7cc05..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/b273f6d89c4098dddc6a17fc2200950b2a1ca8b2 +++ /dev/null @@ -1,598 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "A" - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - members { - function { - name { - name: "G" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - } - } - declarations { - interface { - name { - name: "B" - } - members { - function { - name { - name: "H" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Get1" - } - deduced_parameters { - name: "T" - type { - operator { - op: BitwiseAnd - arguments { - identifier { - name: "A" - } - } - arguments { - identifier { - name: "B" - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - call { - function { - simple_member_access { - field: "F" - object { - identifier { - name: "n" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - arguments { - call { - function { - simple_member_access { - field: "H" - object { - identifier { - name: "n" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Get2" - } - deduced_parameters { - name: "T" - type { - operator { - op: BitwiseAnd - arguments { - identifier { - name: "B" - } - } - arguments { - identifier { - name: "A" - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "G" - object { - identifier { - name: "n" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Get3" - } - deduced_parameters { - name: "T" - type { - operator { - op: BitwiseAnd - arguments { - operator { - op: BitwiseAnd - arguments { - operator { - op: BitwiseAnd - arguments { - operator { - op: BitwiseAnd - arguments { - identifier { - name: "B" - } - } - arguments { - identifier { - name: "A" - } - } - } - } - arguments { - identifier { - name: "A" - } - } - } - } - arguments { - identifier { - name: "B" - } - } - } - } - arguments { - identifier { - name: "A" - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - call { - function { - simple_member_access { - field: "G" - object { - identifier { - name: "n" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - arguments { - call { - function { - simple_member_access { - field: "H" - object { - identifier { - name: "n" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - identifier { - name: "A" - } - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - members { - function { - name { - name: "G" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - identifier { - name: "B" - } - } - members { - function { - name { - name: "H" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 4 - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "z" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - operator { - op: Add - arguments { - operator { - op: Mul - arguments { - call { - function { - identifier { - name: "Get1" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "z" - } - } - } - } - } - } - arguments { - int_literal { - value: 100 - } - } - } - } - arguments { - operator { - op: Mul - arguments { - call { - function { - identifier { - name: "Get2" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "z" - } - } - } - } - } - } - arguments { - int_literal { - value: 10 - } - } - } - } - } - } - arguments { - call { - function { - identifier { - name: "Get3" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "z" - } - } - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/b29000a8e0ea6fec127c857cb6962831455a6864 b/explorer/fuzzing/fuzzer_corpus/b29000a8e0ea6fec127c857cb6962831455a6864 deleted file mode 100644 index 1ba63da075537..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/b29000a8e0ea6fec127c857cb6962831455a6864 +++ /dev/null @@ -1,625 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Cell" - } - members { - function { - name { - name: "Create" - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - call { - function { - identifier { - name: "Cell" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "data" - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Get" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "data" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Put" - } - self_pattern { - addr_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "Self" - } - } - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - statements { - assign { - lhs { - simple_member_access { - field: "data" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - rhs { - identifier { - name: "x" - } - } - op: Plain - } - } - } - } - } - members { - function { - name { - name: "CreateOther" - } - deduced_parameters { - name: "U" - type { - type_type_literal { - } - } - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "U" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - call { - function { - identifier { - name: "Cell" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "U" - } - } - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "data" - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "data" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - type_params { - fields { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Integer" - } - members { - variable { - binding { - name: "int" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "i" - type { - expression_pattern { - expression { - identifier { - name: "Integer" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "int" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Cell" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "Integer" - } - } - } - } - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Create" - object { - call { - function { - identifier { - name: "Cell" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "Integer" - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "i" - } - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "i" - } - } - rhs { - struct_literal { - fields { - name: "int" - expression { - int_literal { - value: 0 - } - } - } - } - } - op: Plain - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "Put" - object { - identifier { - name: "c" - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "i" - } - } - } - } - } - } - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "j" - type { - expression_pattern { - expression { - identifier { - name: "Integer" - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Get" - object { - identifier { - name: "c" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "d" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Cell" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "Integer" - } - } - } - } - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "CreateOther" - object { - identifier { - name: "c" - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "j" - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "int" - object { - simple_member_access { - field: "data" - object { - identifier { - name: "c" - } - } - } - } - } - } - arguments { - simple_member_access { - field: "int" - object { - simple_member_access { - field: "data" - object { - identifier { - name: "d" - } - } - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/b2acd6d4db835cc2de6d578a31e55c9723d376e8 b/explorer/fuzzing/fuzzer_corpus/b2acd6d4db835cc2de6d578a31e55c9723d376e8 deleted file mode 100644 index adb4e17cd3cfd..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/b2acd6d4db835cc2de6d578a31e55c9723d376e8 +++ /dev/null @@ -1,269 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "A" - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - } - } - declarations { - interface { - name { - name: "B" - } - members { - function { - name { - name: "G" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Get" - } - deduced_parameters { - name: "T" - type { - operator { - op: BitwiseAnd - arguments { - identifier { - name: "A" - } - } - arguments { - identifier { - name: "B" - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "H" - object { - identifier { - name: "n" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - identifier { - name: "A" - } - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - identifier { - name: "B" - } - } - members { - function { - name { - name: "G" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "z" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "Get" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "z" - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/b301d94100ed0b15766a8e48767ea685c582104f b/explorer/fuzzing/fuzzer_corpus/b301d94100ed0b15766a8e48767ea685c582104f deleted file mode 100644 index 9d38c0579fbe0..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/b301d94100ed0b15766a8e48767ea685c582104f +++ /dev/null @@ -1,83 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "x" - } - } - rhs { - int_literal { - value: 1 - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "y" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/b378b42f85eee698486a62693531402037b1bc49 b/explorer/fuzzing/fuzzer_corpus/b378b42f85eee698486a62693531402037b1bc49 deleted file mode 100644 index a0fa4e22095f1..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/b378b42f85eee698486a62693531402037b1bc49 +++ /dev/null @@ -1,94 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - identifier { - name: "x" - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "x" - } - } - rhs { - int_literal { - value: 1 - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "y" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/b39595171e8c39e233d22ff07474d2930dce8de0 b/explorer/fuzzing/fuzzer_corpus/b39595171e8c39e233d22ff07474d2930dce8de0 deleted file mode 100644 index 58ce0d486d747..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/b39595171e8c39e233d22ff07474d2930dce8de0 +++ /dev/null @@ -1,637 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Vector" - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Point" - } - } - interface { - identifier { - name: "Vector" - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "AddAndScaleGeneric" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "Vector" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "s" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "m" - type { - auto_pattern { - } - } - } - } - init { - simple_member_access { - field: "Add" - object { - identifier { - name: "a" - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "n" - type { - auto_pattern { - } - } - } - } - init { - simple_member_access { - field: "Scale" - object { - call { - function { - identifier { - name: "m" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "b" - } - } - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "n" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "s" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 0 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 0 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 2 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 3 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - call { - function { - identifier { - name: "AddAndScaleGeneric" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "a" - } - } - fields { - identifier { - name: "b" - } - } - fields { - int_literal { - value: 3 - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "p" - } - } - } - } - arguments { - int_literal { - value: 6 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/b3fe9e4e59812a710955af9540ba6ab44efbaf64 b/explorer/fuzzing/fuzzer_corpus/b3fe9e4e59812a710955af9540ba6ab44efbaf64 deleted file mode 100644 index d76fd5982c80c..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/b3fe9e4e59812a710955af9540ba6ab44efbaf64 +++ /dev/null @@ -1,53 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - variable { - binding { - name: "zero" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - initializer { - int_literal { - value: 0 - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "zero" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/b4336ccf8951de3a6f1eae4148f3c5623ddcb422 b/explorer/fuzzing/fuzzer_corpus/b4336ccf8951de3a6f1eae4148f3c5623ddcb422 deleted file mode 100644 index cce2a01ab17b5..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/b4336ccf8951de3a6f1eae4148f3c5623ddcb422 +++ /dev/null @@ -1,104 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "C" - } - } - } - declarations { - class_declaration { - name { - name: "D" - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "d" - type { - expression_pattern { - expression { - identifier { - name: "D" - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "C" - } - } - } - } - } - } - } - } - init { - operator { - op: AddressOf - arguments { - identifier { - name: "d" - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/b474e2aac0787cafe1ab33ed25b46bb23f885722 b/explorer/fuzzing/fuzzer_corpus/b474e2aac0787cafe1ab33ed25b46bb23f885722 deleted file mode 100644 index 2cd5a80b6376c..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/b474e2aac0787cafe1ab33ed25b46bb23f885722 +++ /dev/null @@ -1,107 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Foo" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - call { - function { - identifier { - name: "Foo" - } - } - argument { - tuple_literal { - } - } - } - } - arguments { - int_literal { - value: 0 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - else_block { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/b4bb9c9262bb757df5e80767ccbae9a4ac881725 b/explorer/fuzzing/fuzzer_corpus/b4bb9c9262bb757df5e80767ccbae9a4ac881725 deleted file mode 100644 index 667c118580d03..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/b4bb9c9262bb757df5e80767ccbae9a4ac881725 +++ /dev/null @@ -1,507 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Number" - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "other" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point" - } - members { - function { - name { - name: "Origin" - } - param_pattern { - } - return_term { - kind: Expression - type { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - call { - function { - simple_member_access { - field: "Zero" - object { - identifier { - name: "T" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - fields { - name: "y" - expression { - call { - function { - simple_member_access { - field: "Zero" - object { - identifier { - name: "T" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - type_params { - fields { - generic_binding { - name: "T" - type { - identifier { - name: "Number" - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - int_type_literal { - } - } - interface { - identifier { - name: "Number" - } - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "other" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - identifier { - name: "self" - } - } - arguments { - identifier { - name: "other" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "SumXY" - } - deduced_parameters { - name: "U" - type { - identifier { - name: "Number" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "U" - } - } - } - } - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "U" - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Add" - object { - simple_member_access { - field: "x" - object { - call { - function { - simple_member_access { - field: "Origin" - object { - identifier { - name: "p" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - simple_member_access { - field: "y" - object { - identifier { - name: "p" - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 0 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 0 - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "SumXY" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "p" - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/b50aa9e7ace48dadf651bfa991001f91782dcaed b/explorer/fuzzing/fuzzer_corpus/b50aa9e7ace48dadf651bfa991001f91782dcaed deleted file mode 100644 index 0b34f96ab6031..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/b50aa9e7ace48dadf651bfa991001f91782dcaed +++ /dev/null @@ -1,119 +0,0 @@ -compilation_unit { - package_statement { - package_name: "Foo" - } - is_api: true - declarations { - interface { - name { - name: "HasDefault" - } - members { - function { - name { - name: "Default" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - identifier { - name: "HasDefault" - } - } - members { - function { - name { - name: "Default" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 42 - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - compound_member_access { - object { - int_type_literal { - } - } - path { - simple_member_access { - field: "Default" - object { - identifier { - name: "HasDefault" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/b55695cb397c83a01e77b4979eadc71307bf5bb5 b/explorer/fuzzing/fuzzer_corpus/b55695cb397c83a01e77b4979eadc71307bf5bb5 deleted file mode 100644 index e9de1f0d57b43..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/b55695cb397c83a01e77b4979eadc71307bf5bb5 +++ /dev/null @@ -1,162 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "HasFoo" - } - members { - function { - name { - name: "Foo" - } - param_pattern { - } - return_term { - kind: Omitted - } - } - } - } - } - declarations { - constraint { - name { - name: "ImplAsHasFoo" - } - members { - interface_impl { - impl_type { - identifier { - name: "Self" - } - } - constraint { - identifier { - name: "HasFoo" - } - } - } - } - } - } - declarations { - function { - name { - name: "CallFoo" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "ImplAsHasFoo" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - statements { - expression_statement { - expression { - call { - function { - compound_member_access { - object { - identifier { - name: "x" - } - } - path { - simple_member_access { - field: "Foo" - object { - identifier { - name: "HasFoo" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "Foo" - object { - identifier { - name: "x" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/b5b805036d15f3a938fad5b99b9b07899406fbbb b/explorer/fuzzing/fuzzer_corpus/b5b805036d15f3a938fad5b99b9b07899406fbbb deleted file mode 100644 index 1f81be6c24a15..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/b5b805036d15f3a938fad5b99b9b07899406fbbb +++ /dev/null @@ -1,32 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - unimplemented_expression { - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/b6faa454160b04a71aebd4eefba1074e82f6b991 b/explorer/fuzzing/fuzzer_corpus/b6faa454160b04a71aebd4eefba1074e82f6b991 deleted file mode 100644 index 9b11dd791b725..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/b6faa454160b04a71aebd4eefba1074e82f6b991 +++ /dev/null @@ -1,373 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "A" - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - } - } - declarations { - interface { - name { - name: "B" - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - identifier { - name: "A" - } - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - identifier { - name: "B" - } - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "GetA" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "A" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "F" - object { - identifier { - name: "x" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "GetAB" - } - deduced_parameters { - name: "T" - type { - where { - base { - identifier { - name: "B" - } - } - clauses { - impls { - type { - designator { - name: "Self" - } - } - constraint { - identifier { - name: "A" - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - operator { - op: Mul - arguments { - int_literal { - value: 10 - } - } - arguments { - call { - function { - identifier { - name: "GetA" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "x" - } - } - } - } - } - } - } - } - arguments { - call { - function { - simple_member_access { - field: "F" - object { - identifier { - name: "x" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "GetAB" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "v" - } - } - } - } - } - } - } - } - } - } - } -} - diff --git a/explorer/fuzzing/fuzzer_corpus/b7073fc9e1dca3289d930ea8cebaddf7ac01f97b b/explorer/fuzzing/fuzzer_corpus/b7073fc9e1dca3289d930ea8cebaddf7ac01f97b deleted file mode 100644 index 30fb045debc84..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/b7073fc9e1dca3289d930ea8cebaddf7ac01f97b +++ /dev/null @@ -1,103 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - function { - name { - name: "Foo" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - } - } - declarations { - class_declaration { - name { - name: "B" - } - members { - function { - name { - name: "Foo" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/b726270c1f1b906118bb7bd3f0e31fad70e53bb3 b/explorer/fuzzing/fuzzer_corpus/b726270c1f1b906118bb7bd3f0e31fad70e53bb3 deleted file mode 100644 index 9d844efd00216..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/b726270c1f1b906118bb7bd3f0e31fad70e53bb3 +++ /dev/null @@ -1,76 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - function { - name { - name: "G" - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - assign { - lhs { - identifier { - name: "F" - } - } - rhs { - identifier { - name: "G" - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/b74151b3e158893704ac65ea4234df17aa39ba2d b/explorer/fuzzing/fuzzer_corpus/b74151b3e158893704ac65ea4234df17aa39ba2d deleted file mode 100644 index 432b83fd085ee..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/b74151b3e158893704ac65ea4234df17aa39ba2d +++ /dev/null @@ -1,102 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "C" - } - members { - function { - name { - name: "PickType" - } - param_pattern { - } - return_term { - kind: Expression - type { - type_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - function { - name { - name: "GetZero" - } - param_pattern { - } - return_term { - kind: Expression - type { - call { - function { - identifier { - name: "PickType" - } - } - argument { - tuple_literal { - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/b82b61890040bf6bd38d81508e0919e979df0360 b/explorer/fuzzing/fuzzer_corpus/b82b61890040bf6bd38d81508e0919e979df0360 deleted file mode 100644 index b1d2c5467f7b9..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/b82b61890040bf6bd38d81508e0919e979df0360 +++ /dev/null @@ -1,341 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Iface" - } - members { - let { - pattern { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "T" - type { - where { - base { - identifier { - name: "Iface" - } - } - clauses { - equals { - lhs { - designator { - name: "T" - } - } - rhs { - int_type_literal { - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - function { - name { - name: "G" - } - deduced_parameters { - name: "U" - type { - where { - base { - identifier { - name: "Iface" - } - } - clauses { - equals { - lhs { - designator { - name: "T" - } - } - rhs { - int_type_literal { - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "U" - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "x" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "H" - } - deduced_parameters { - name: "V" - type { - identifier { - name: "Iface" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "V" - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "x" - } - } - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Class" - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - where { - base { - identifier { - name: "Iface" - } - } - clauses { - rewrite { - member_name: "T" - replacement { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "Class" - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "G" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "x" - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "H" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "x" - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/b84e935c0a1d62f7eae55e1c41759d8aa23747dd b/explorer/fuzzing/fuzzer_corpus/b84e935c0a1d62f7eae55e1c41759d8aa23747dd deleted file mode 100644 index da6f6f6342a94..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/b84e935c0a1d62f7eae55e1c41759d8aa23747dd +++ /dev/null @@ -1,48 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - assign { - lhs { - int_literal { - value: 1 - } - } - rhs { - int_literal { - value: 0 - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/b8d5ed2d1a8e04bbcb473f9207bb5f630d0666cc b/explorer/fuzzing/fuzzer_corpus/b8d5ed2d1a8e04bbcb473f9207bb5f630d0666cc deleted file mode 100644 index 72ff31919b601..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/b8d5ed2d1a8e04bbcb473f9207bb5f630d0666cc +++ /dev/null @@ -1,87 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Assert" - } - } - argument { - tuple_literal { - fields { - bool_literal { - value: true - } - } - fields { - string_literal { - value: "HALLO WELT" - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Assert" - } - } - argument { - tuple_literal { - fields { - bool_literal { - value: false - } - } - fields { - string_literal { - value: "HALLO WELT" - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/b8fe3d1147b59ce7acbd34b111453df89e1f4060 b/explorer/fuzzing/fuzzer_corpus/b8fe3d1147b59ce7acbd34b111453df89e1f4060 deleted file mode 100644 index dd57eccad9610..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/b8fe3d1147b59ce7acbd34b111453df89e1f4060 +++ /dev/null @@ -1,212 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "apply" - } - deduced_parameters { - name: "T" - type { - type_type_literal { - } - } - } - deduced_parameters { - name: "U" - type { - type_type_literal { - } - } - } - param_pattern { - fields { - binding_pattern { - name: "f" - type { - expression_pattern { - expression { - function_type { - return_type { - identifier { - name: "U" - } - } - parameter { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "U" - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "f" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "x" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "positive" - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - bool_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - if_statement { - condition { - identifier { - name: "x" - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 2 - } - } - } - } - } - else_block { - statements { - return_expression_statement { - expression { - operator { - op: Neg - arguments { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "apply" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "positive" - } - } - fields { - bool_literal { - value: false - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/b90c4652e387f309191792de386c87b605bb1b5e b/explorer/fuzzing/fuzzer_corpus/b90c4652e387f309191792de386c87b605bb1b5e deleted file mode 100644 index 03a86df845046..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/b90c4652e387f309191792de386c87b605bb1b5e +++ /dev/null @@ -1,138 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "C" - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - members { - function { - name { - name: "G" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - } - } - declarations { - function { - name { - name: "ReturnF" - } - param_pattern { - } - return_term { - kind: Auto - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "F" - object { - identifier { - name: "C" - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "ReturnG" - } - param_pattern { - } - return_term { - kind: Auto - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "G" - object { - identifier { - name: "C" - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/b92d5aefda5ebdbd4f97bd058532aabac8bbc4f8 b/explorer/fuzzing/fuzzer_corpus/b92d5aefda5ebdbd4f97bd058532aabac8bbc4f8 deleted file mode 100644 index dbf4fac6f565b..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/b92d5aefda5ebdbd4f97bd058532aabac8bbc4f8 +++ /dev/null @@ -1,51 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/ba79ad54a3664f4e5749ded96c86af21106c4a72 b/explorer/fuzzing/fuzzer_corpus/ba79ad54a3664f4e5749ded96c86af21106c4a72 deleted file mode 100644 index c2238dba25239..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/ba79ad54a3664f4e5749ded96c86af21106c4a72 +++ /dev/null @@ -1,64 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "f" - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "f" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/ba81a58612be6ea3790e3eb6453cc528eca37ae7 b/explorer/fuzzing/fuzzer_corpus/ba81a58612be6ea3790e3eb6453cc528eca37ae7 deleted file mode 100644 index 557d580537977..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/ba81a58612be6ea3790e3eb6453cc528eca37ae7 +++ /dev/null @@ -1,61 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "A" - } - } - } - declarations { - interface { - name { - name: "B" - } - members { - interface_impl { - impl_type { - int_literal { - value: 5 - } - } - constraint { - identifier { - name: "A" - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/baa653209768e0bddfcbf20dab23706384a09a0f b/explorer/fuzzing/fuzzer_corpus/baa653209768e0bddfcbf20dab23706384a09a0f deleted file mode 100644 index 49e2123b2b40c..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/baa653209768e0bddfcbf20dab23706384a09a0f +++ /dev/null @@ -1,63 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - assign { - lhs { - identifier { - name: "x" - } - } - rhs { - int_literal { - value: 1 - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/bb0e7dc79473b942b06030f09e977ca7d65b9909 b/explorer/fuzzing/fuzzer_corpus/bb0e7dc79473b942b06030f09e977ca7d65b9909 deleted file mode 100644 index 3f8d271efb3cb..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/bb0e7dc79473b942b06030f09e977ca7d65b9909 +++ /dev/null @@ -1,202 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - mixin { - name { - name: "M1" - } - members { - function { - name { - name: "F1" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - members { - mix { - mixin { - identifier { - name: "M3" - } - } - } - } - self { - name: "Self" - type { - type_type_literal { - } - } - } - } - } - declarations { - mixin { - name { - name: "M2" - } - members { - function { - name { - name: "F2" - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - members { - mix { - mixin { - identifier { - name: "M1" - } - } - } - } - self { - name: "Self" - type { - type_type_literal { - } - } - } - } - } - declarations { - mixin { - name { - name: "M3" - } - members { - mix { - mixin { - identifier { - name: "M2" - } - } - } - } - members { - function { - name { - name: "F3" - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - self { - name: "Self" - type { - type_type_literal { - } - } - } - } - } - declarations { - class_declaration { - name { - name: "C" - } - members { - mix { - mixin { - identifier { - name: "M2" - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/bb1d40f46f5a1b10ad1c4fe3f4dbe58c2490cd6d b/explorer/fuzzing/fuzzer_corpus/bb1d40f46f5a1b10ad1c4fe3f4dbe58c2490cd6d deleted file mode 100644 index 6f667a4e938b5..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/bb1d40f46f5a1b10ad1c4fe3f4dbe58c2490cd6d +++ /dev/null @@ -1,121 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "X" - } - } - } - declarations { - interface { - name { - name: "Y" - } - members { - let { - pattern { - generic_binding { - name: "M" - type { - call { - function { - identifier { - name: "X" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - interface { - name { - name: "Z" - } - members { - let { - pattern { - generic_binding { - name: "N" - type { - where { - base { - call { - function { - identifier { - name: "Y" - } - } - argument { - tuple_literal { - fields { - designator { - name: "Self" - } - } - } - } - } - } - clauses { - rewrite { - member_name: "M" - replacement { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/bb99a69c513faaa42a4d69c083f11fd5c0bfc2b6 b/explorer/fuzzing/fuzzer_corpus/bb99a69c513faaa42a4d69c083f11fd5c0bfc2b6 deleted file mode 100644 index d43b0977c4d17..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/bb99a69c513faaa42a4d69c083f11fd5c0bfc2b6 +++ /dev/null @@ -1,350 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "A" - } - } - interface { - where { - base { - call { - function { - identifier { - name: "DivWith" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - clauses { - rewrite { - member_name: "Result" - replacement { - identifier { - name: "A" - } - } - } - } - } - } - members { - function { - name { - name: "Op" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "rhs" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "A" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "n" - expression { - operator { - op: Div - arguments { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "rhs" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 19 - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "a" - } - } - rhs { - operator { - op: Div - arguments { - identifier { - name: "a" - } - } - arguments { - int_literal { - value: 3 - } - } - } - } - op: Plain - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "a" - } - } - } - } - } - } - } - } - } - } - statements { - assign { - lhs { - identifier { - name: "a" - } - } - rhs { - int_literal { - value: 2 - } - } - op: Div - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "a" - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "n" - object { - operator { - op: Div - arguments { - identifier { - name: "a" - } - } - arguments { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/bcbbdac8be36d57d05bad59f42097f30f4791482 b/explorer/fuzzing/fuzzer_corpus/bcbbdac8be36d57d05bad59f42097f30f4791482 deleted file mode 100644 index 70cbde063b295..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/bcbbdac8be36d57d05bad59f42097f30f4791482 +++ /dev/null @@ -1,660 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Vector" - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Point" - } - } - interface { - identifier { - name: "Vector" - } - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 0 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Mul - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "v" - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Mul - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "v" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "AddAndScaleGeneric" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "Vector" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "s" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Scale" - object { - call { - function { - simple_member_access { - field: "Add" - object { - identifier { - name: "a" - } - } - } - } - argument { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "Zero" - object { - identifier { - name: "T" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "s" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 2 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - call { - function { - identifier { - name: "AddAndScaleGeneric" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "a" - } - } - fields { - int_literal { - value: 5 - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "p" - } - } - } - } - arguments { - int_literal { - value: 10 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/bcc2dd95b1484870236d97145082f091d04420e8 b/explorer/fuzzing/fuzzer_corpus/bcc2dd95b1484870236d97145082f091d04420e8 deleted file mode 100644 index 6d0b6fb90deec..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/bcc2dd95b1484870236d97145082f091d04420e8 +++ /dev/null @@ -1,209 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Iface" - } - members { - let { - pattern { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "F" - } - param_pattern { - fields { - generic_binding { - name: "T" - type { - where { - base { - identifier { - name: "Iface" - } - } - clauses { - equals { - lhs { - designator { - name: "T" - } - } - rhs { - int_type_literal { - } - } - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - class_declaration { - name { - name: "Good" - } - } - } - declarations { - class_declaration { - name { - name: "Bad" - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "Good" - } - } - interface { - where { - base { - identifier { - name: "Iface" - } - } - clauses { - rewrite { - member_name: "T" - replacement { - int_type_literal { - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "Bad" - } - } - interface { - where { - base { - identifier { - name: "Iface" - } - } - clauses { - rewrite { - member_name: "T" - replacement { - identifier { - name: "Bad" - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "Good" - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "Bad" - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/bd47802ae44cb178d49ce02e9da23114b99ca251 b/explorer/fuzzing/fuzzer_corpus/bd47802ae44cb178d49ce02e9da23114b99ca251 deleted file mode 100644 index 52b2cd24bf14f..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/bd47802ae44cb178d49ce02e9da23114b99ca251 +++ /dev/null @@ -1,201 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "ar" - type { - expression_pattern { - expression { - array_type_literal { - element_type { - int_type_literal { - } - } - size { - int_literal { - value: 4 - } - } - } - } - } - } - } - } - init { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 2 - } - } - fields { - int_literal { - value: 3 - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "count" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - for_statement { - var_decl { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - target { - identifier { - name: "ar" - } - } - body { - statements { - assign { - lhs { - identifier { - name: "count" - } - } - rhs { - operator { - op: Add - arguments { - identifier { - name: "count" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - op: Plain - } - } - statements { - for_statement { - var_decl { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - target { - identifier { - name: "ar" - } - } - body { - statements { - assign { - lhs { - identifier { - name: "count" - } - } - rhs { - operator { - op: Add - arguments { - identifier { - name: "count" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - op: Plain - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "count" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/bd5f1f538a69fe0749266a9dee58769dfcf466f6 b/explorer/fuzzing/fuzzer_corpus/bd5f1f538a69fe0749266a9dee58769dfcf466f6 deleted file mode 100644 index a6b16145b4241..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/bd5f1f538a69fe0749266a9dee58769dfcf466f6 +++ /dev/null @@ -1,53 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - operator { - op: Add - arguments { - int_literal { - value: 1 - } - } - arguments { - int_literal { - value: 2 - } - } - } - } - arguments { - int_literal { - value: 4 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/bd773479ed6f502a082574ee2628f87093ef738c b/explorer/fuzzing/fuzzer_corpus/bd773479ed6f502a082574ee2628f87093ef738c deleted file mode 100644 index 37f878c76062a..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/bd773479ed6f502a082574ee2628f87093ef738c +++ /dev/null @@ -1,170 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - type_params { - fields { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 0 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 0 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "q" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - bool_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - identifier { - name: "p" - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/bdacd3ee8bd272bb8e010a36fdcf4a088e4aec58 b/explorer/fuzzing/fuzzer_corpus/bdacd3ee8bd272bb8e010a36fdcf4a088e4aec58 deleted file mode 100644 index 64f73d60c76e5..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/bdacd3ee8bd272bb8e010a36fdcf4a088e4aec58 +++ /dev/null @@ -1,43 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: As - arguments { - int_literal { - value: 4 - } - } - arguments { - int_literal { - value: 7 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/bdc54a47f8ca73c471d86a7f88a172bd50b1225d b/explorer/fuzzing/fuzzer_corpus/bdc54a47f8ca73c471d86a7f88a172bd50b1225d deleted file mode 100644 index 4bc6175326bc2..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/bdc54a47f8ca73c471d86a7f88a172bd50b1225d +++ /dev/null @@ -1,350 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "A" - } - } - interface { - where { - base { - call { - function { - identifier { - name: "ModWith" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - clauses { - rewrite { - member_name: "Result" - replacement { - identifier { - name: "A" - } - } - } - } - } - } - members { - function { - name { - name: "Op" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "rhs" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "A" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "n" - expression { - operator { - op: Mod - arguments { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "rhs" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 15 - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "a" - } - } - rhs { - operator { - op: Mod - arguments { - identifier { - name: "a" - } - } - arguments { - int_literal { - value: 8 - } - } - } - } - op: Plain - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "a" - } - } - } - } - } - } - } - } - } - } - statements { - assign { - lhs { - identifier { - name: "a" - } - } - rhs { - int_literal { - value: 4 - } - } - op: Mod - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "a" - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "n" - object { - operator { - op: Mod - arguments { - identifier { - name: "a" - } - } - arguments { - int_literal { - value: 3 - } - } - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/bfe98852a578baf4355b38a92b6a7e926c406a98 b/explorer/fuzzing/fuzzer_corpus/bfe98852a578baf4355b38a92b6a7e926c406a98 deleted file mode 100644 index 76f9c84decd4d..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/bfe98852a578baf4355b38a92b6a7e926c406a98 +++ /dev/null @@ -1,69 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "A" - } - } - } - declarations { - alias { - name { - name: "B" - } - target { - where { - base { - identifier { - name: "A" - } - } - clauses { - equals { - lhs { - int_literal { - value: 4 - } - } - rhs { - int_type_literal { - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/c0ed5a9d140f0566bbd198e0664af222757c02f2 b/explorer/fuzzing/fuzzer_corpus/c0ed5a9d140f0566bbd198e0664af222757c02f2 deleted file mode 100644 index c870ce0044474..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/c0ed5a9d140f0566bbd198e0664af222757c02f2 +++ /dev/null @@ -1,164 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - type_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - function { - name { - name: "G" - } - param_pattern { - } - return_term { - kind: Expression - type { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - members { - function { - name { - name: "H" - } - param_pattern { - } - return_term { - kind: Expression - type { - call { - function { - identifier { - name: "I" - } - } - argument { - tuple_literal { - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - members { - function { - name { - name: "I" - } - param_pattern { - } - return_term { - kind: Expression - type { - type_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/c149c4c29671c2acf61e2e869975aa39006097e1 b/explorer/fuzzing/fuzzer_corpus/c149c4c29671c2acf61e2e869975aa39006097e1 deleted file mode 100644 index fe246b7531e65..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/c149c4c29671c2acf61e2e869975aa39006097e1 +++ /dev/null @@ -1,114 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "fst" - } - deduced_parameters { - name: "T" - type { - type_type_literal { - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "y" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "fst" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - fields { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/c17ad69dffba927b155231a8149a72505bf1bed4 b/explorer/fuzzing/fuzzer_corpus/c17ad69dffba927b155231a8149a72505bf1bed4 deleted file mode 100644 index 46b6c415aa563..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/c17ad69dffba927b155231a8149a72505bf1bed4 +++ /dev/null @@ -1,49 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - match { - expression { - int_literal { - value: 0 - } - } - clauses { - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - is_default: true - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/c1897b534a0b24174082b7de0e6afebe203f5020 b/explorer/fuzzing/fuzzer_corpus/c1897b534a0b24174082b7de0e6afebe203f5020 deleted file mode 100644 index c212c60c3e48e..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/c1897b534a0b24174082b7de0e6afebe203f5020 +++ /dev/null @@ -1,64 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/c2147917fd04da894c2b5dfa60a832ec96cfd4cc b/explorer/fuzzing/fuzzer_corpus/c2147917fd04da894c2b5dfa60a832ec96cfd4cc deleted file mode 100644 index 258300ac6f633..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/c2147917fd04da894c2b5dfa60a832ec96cfd4cc +++ /dev/null @@ -1,276 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Frob" - } - members { - let { - pattern { - generic_binding { - name: "Result" - type { - type_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "F" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Result" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Use" - } - deduced_parameters { - name: "T" - type { - where { - base { - identifier { - name: "Frob" - } - } - clauses { - rewrite { - member_name: "Result" - replacement { - designator { - name: "Self" - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "F" - object { - identifier { - name: "x" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "v" - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - where { - base { - identifier { - name: "Frob" - } - } - clauses { - rewrite { - member_name: "Result" - replacement { - int_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "F" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - identifier { - name: "self" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "Use" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/c2f1538ac726bb759417984a05803182969950d2 b/explorer/fuzzing/fuzzer_corpus/c2f1538ac726bb759417984a05803182969950d2 deleted file mode 100644 index 4ebfd79202469..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/c2f1538ac726bb759417984a05803182969950d2 +++ /dev/null @@ -1,212 +0,0 @@ -compilation_unit { - package_statement { - package_name: "Foo" - } - is_api: true - declarations { - interface { - name { - name: "A" - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "X" - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - identifier { - name: "A" - } - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "A" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - compound_member_access { - object { - identifier { - name: "a" - } - } - path { - simple_member_access { - field: "F" - object { - identifier { - name: "T" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "X" - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "a" - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/c33b33a69a00ad7377d23a792435fa4b777964d4 b/explorer/fuzzing/fuzzer_corpus/c33b33a69a00ad7377d23a792435fa4b777964d4 deleted file mode 100644 index 0e220810c5205..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/c33b33a69a00ad7377d23a792435fa4b777964d4 +++ /dev/null @@ -1,265 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "HasAssoc" - } - members { - let { - pattern { - generic_binding { - name: "Assoc" - type { - type_type_literal { - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "X" - } - members { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - where { - base { - identifier { - name: "HasAssoc" - } - } - clauses { - rewrite { - member_name: "Assoc" - replacement { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - declarations { - alias { - name { - name: "WithoutRewrite" - } - target { - where { - base { - identifier { - name: "HasAssoc" - } - } - clauses { - equals { - lhs { - designator { - name: "Assoc" - } - } - rhs { - int_type_literal { - } - } - } - } - } - } - } - } - declarations { - alias { - name { - name: "WithRewrite" - } - target { - where { - base { - identifier { - name: "HasAssoc" - } - } - clauses { - rewrite { - member_name: "Assoc" - replacement { - int_type_literal { - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "G" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "WithoutRewrite" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - compound_member_access { - object { - identifier { - name: "T" - } - } - path { - simple_member_access { - field: "Assoc" - object { - identifier { - name: "WithRewrite" - } - } - } - } - } - } - } - } - } - } - init { - int_literal { - value: 2 - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "a" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "X" - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "G" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "x" - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/c38b996f7ea337af3f99bc53f015707d0f1658c4 b/explorer/fuzzing/fuzzer_corpus/c38b996f7ea337af3f99bc53f015707d0f1658c4 deleted file mode 100644 index 3d377b5bbcb1b..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/c38b996f7ea337af3f99bc53f015707d0f1658c4 +++ /dev/null @@ -1,609 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - mixin { - name { - name: "Operations" - } - members { - function { - name { - name: "Square" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Mul - arguments { - identifier { - name: "x" - } - } - arguments { - identifier { - name: "x" - } - } - } - } - } - } - } - } - } - self { - name: "Self" - type { - type_type_literal { - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - function { - name { - name: "DistanceSquare" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "other" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - call { - function { - simple_member_access { - field: "Square" - object { - identifier { - name: "self" - } - } - } - } - argument { - tuple_literal { - fields { - operator { - op: Sub - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "other" - } - } - } - } - } - } - } - } - } - } - arguments { - call { - function { - simple_member_access { - field: "Square" - object { - identifier { - name: "self" - } - } - } - } - argument { - tuple_literal { - fields { - operator { - op: Sub - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "other" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - mix { - mixin { - identifier { - name: "Operations" - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Complex" - } - members { - variable { - binding { - name: "r" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "i" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - mix { - mixin { - identifier { - name: "Operations" - } - } - } - } - members { - function { - name { - name: "AbsSquare" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - call { - function { - simple_member_access { - field: "Square" - object { - identifier { - name: "self" - } - } - } - } - argument { - tuple_literal { - fields { - simple_member_access { - field: "r" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - arguments { - call { - function { - simple_member_access { - field: "Square" - object { - identifier { - name: "self" - } - } - } - } - argument { - tuple_literal { - fields { - simple_member_access { - field: "i" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p1" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 1 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "p2" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 4 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 3 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - identifier { - name: "Complex" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "r" - expression { - int_literal { - value: 5 - } - } - } - fields { - name: "i" - expression { - int_literal { - value: 6 - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - operator { - op: Sub - arguments { - call { - function { - simple_member_access { - field: "AbsSquare" - object { - identifier { - name: "c" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - arguments { - call { - function { - simple_member_access { - field: "DistanceSquare" - object { - identifier { - name: "p1" - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "p2" - } - } - } - } - } - } - } - } - arguments { - int_literal { - value: 51 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/c3c3a8aee0abfdd263b57f387db0ef47be0c1fc1 b/explorer/fuzzing/fuzzer_corpus/c3c3a8aee0abfdd263b57f387db0ef47be0c1fc1 deleted file mode 100644 index 803f9c907878a..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/c3c3a8aee0abfdd263b57f387db0ef47be0c1fc1 +++ /dev/null @@ -1,99 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - variable { - binding { - name: "flag" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - initializer { - int_literal { - value: 1 - } - } - } - } - declarations { - function { - name { - name: "flipFlag" - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - statements { - assign { - lhs { - identifier { - name: "flag" - } - } - rhs { - int_literal { - value: 0 - } - } - op: Plain - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "flipFlag" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "flag" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/c449990049ecfeb94ab46604585847db44f97d1b b/explorer/fuzzing/fuzzer_corpus/c449990049ecfeb94ab46604585847db44f97d1b deleted file mode 100644 index b3179394e2f33..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/c449990049ecfeb94ab46604585847db44f97d1b +++ /dev/null @@ -1,210 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 5 - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "x" - } - } - rhs { - int_literal { - value: 10 - } - } - op: Plain - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - int_type_literal { - } - } - } - } - } - } - } - } - init { - operator { - op: AddressOf - arguments { - identifier { - name: "x" - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - operator { - op: Deref - arguments { - identifier { - name: "p" - } - } - } - } - rhs { - int_literal { - value: 7 - } - } - op: Plain - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "q" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - int_type_literal { - } - } - } - } - } - } - } - } - init { - operator { - op: AddressOf - arguments { - operator { - op: Deref - arguments { - identifier { - name: "p" - } - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - operator { - op: Deref - arguments { - identifier { - name: "q" - } - } - } - } - rhs { - int_literal { - value: 0 - } - } - op: Plain - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - operator { - op: Deref - arguments { - identifier { - name: "p" - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "y" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/c488c3e1283e14e163f81c7155f5f3deb99ec993 b/explorer/fuzzing/fuzzer_corpus/c488c3e1283e14e163f81c7155f5f3deb99ec993 deleted file mode 100644 index 0a3d441bf6081..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/c488c3e1283e14e163f81c7155f5f3deb99ec993 +++ /dev/null @@ -1,181 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "HasValueParam" - } - members { - function { - name { - name: "Go" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - tuple_literal { - } - } - interface { - call { - function { - identifier { - name: "HasValueParam" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - fields { - int_literal { - value: 5 - } - } - } - } - } - } - members { - function { - name { - name: "Go" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 42 - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - compound_member_access { - object { - tuple_literal { - } - } - path { - simple_member_access { - field: "Go" - object { - call { - function { - identifier { - name: "HasValueParam" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - fields { - int_literal { - value: 5 - } - } - } - } - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/c4bd597847d498e86c6430431f022c93b4f1fac3 b/explorer/fuzzing/fuzzer_corpus/c4bd597847d498e86c6430431f022c93b4f1fac3 deleted file mode 100644 index b81c2de64ace9..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/c4bd597847d498e86c6430431f022c93b4f1fac3 +++ /dev/null @@ -1,419 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Vector" - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "AddAndScaleGeneric" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "Vector" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "s" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Scale" - object { - call { - function { - simple_member_access { - field: "Add" - object { - identifier { - name: "a" - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "b" - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "s" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 0 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 0 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 2 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 3 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - call { - function { - identifier { - name: "AddAndScaleGeneric" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "a" - } - } - fields { - identifier { - name: "b" - } - } - fields { - int_literal { - value: 3 - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "p" - } - } - } - } - arguments { - int_literal { - value: 6 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/c51668b2002919bcd2e72177c64741e6077ef8cd b/explorer/fuzzing/fuzzer_corpus/c51668b2002919bcd2e72177c64741e6077ef8cd deleted file mode 100644 index e725c9f16b210..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/c51668b2002919bcd2e72177c64741e6077ef8cd +++ /dev/null @@ -1,181 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "HasTypeAndValue" - } - members { - let { - pattern { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "V" - type { - identifier { - name: "T" - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "F" - } - param_pattern { - fields { - generic_binding { - name: "X" - type { - where { - base { - identifier { - name: "HasTypeAndValue" - } - } - clauses { - rewrite { - member_name: "V" - replacement { - int_literal { - value: 5 - } - } - } - } - clauses { - rewrite { - member_name: "T" - replacement { - int_type_literal { - } - } - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "V" - object { - identifier { - name: "X" - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - where { - base { - identifier { - name: "HasTypeAndValue" - } - } - clauses { - rewrite { - member_name: "T" - replacement { - int_type_literal { - } - } - } - } - clauses { - rewrite { - member_name: "V" - replacement { - int_literal { - value: 5 - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/c5d1191a26e60b5d7346dfe077dc864d1d0f140b b/explorer/fuzzing/fuzzer_corpus/c5d1191a26e60b5d7346dfe077dc864d1d0f140b deleted file mode 100644 index 51d43a10b8c81..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/c5d1191a26e60b5d7346dfe077dc864d1d0f140b +++ /dev/null @@ -1,216 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "A" - } - } - } - declarations { - interface { - name { - name: "B" - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "C" - } - type_params { - fields { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - call { - function { - identifier { - name: "C" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - interface { - operator { - op: BitwiseAnd - arguments { - call { - function { - identifier { - name: "A" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - arguments { - identifier { - name: "B" - } - } - } - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "C" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - compound_member_access { - object { - identifier { - name: "v" - } - } - path { - simple_member_access { - field: "F" - object { - identifier { - name: "B" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/c5e12b066cbb6a6381f51a01431346fa332edba3 b/explorer/fuzzing/fuzzer_corpus/c5e12b066cbb6a6381f51a01431346fa332edba3 deleted file mode 100644 index 503b45a0de770..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/c5e12b066cbb6a6381f51a01431346fa332edba3 +++ /dev/null @@ -1,588 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - variable { - binding { - name: "a" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "B" - } - members { - variable { - binding { - name: "b" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "C" - } - members { - variable { - binding { - name: "c" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "A" - } - } - interface { - call { - function { - identifier { - name: "ImplicitAs" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "B" - } - } - } - } - } - } - members { - function { - name { - name: "Convert" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "B" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "b" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "a" - object { - identifier { - name: "self" - } - } - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "B" - } - } - interface { - call { - function { - identifier { - name: "As" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "C" - } - } - } - } - } - } - members { - function { - name { - name: "Convert" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "C" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "c" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "b" - object { - identifier { - name: "self" - } - } - } - } - arguments { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - tuple_literal { - fields { - identifier { - name: "A" - } - } - fields { - identifier { - name: "A" - } - } - } - } - } - } - } - } - init { - tuple_literal { - fields { - struct_literal { - fields { - name: "a" - expression { - int_literal { - value: 1 - } - } - } - } - } - fields { - struct_literal { - fields { - name: "a" - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - tuple_literal { - fields { - identifier { - name: "B" - } - } - fields { - identifier { - name: "B" - } - } - } - } - } - } - } - } - init { - identifier { - name: "a" - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "b" - object { - index { - object { - identifier { - name: "b" - } - } - offset { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "b" - object { - index { - object { - identifier { - name: "b" - } - } - offset { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - tuple_literal { - fields { - identifier { - name: "C" - } - } - fields { - identifier { - name: "C" - } - } - } - } - } - } - } - } - init { - operator { - op: As - arguments { - identifier { - name: "b" - } - } - arguments { - tuple_literal { - fields { - identifier { - name: "C" - } - } - fields { - identifier { - name: "C" - } - } - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "c" - object { - index { - object { - identifier { - name: "c" - } - } - offset { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "c" - object { - index { - object { - identifier { - name: "c" - } - } - offset { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/c686b589661a7deb008e286c6b5596b22c017615 b/explorer/fuzzing/fuzzer_corpus/c686b589661a7deb008e286c6b5596b22c017615 deleted file mode 100644 index 93431e09c2254..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/c686b589661a7deb008e286c6b5596b22c017615 +++ /dev/null @@ -1,171 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "C" - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - members { - function { - name { - name: "G" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - } - } - declarations { - function { - name { - name: "H" - } - deduced_parameters { - name: "T" - type { - type_type_literal { - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "H" - } - } - argument { - tuple_literal { - fields { - simple_member_access { - field: "F" - object { - identifier { - name: "C" - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "H" - } - } - argument { - tuple_literal { - fields { - simple_member_access { - field: "G" - object { - identifier { - name: "C" - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/c6f657ee803166d7091f0a59cce11feba0319c39 b/explorer/fuzzing/fuzzer_corpus/c6f657ee803166d7091f0a59cce11feba0319c39 deleted file mode 100644 index def3b54803e33..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/c6f657ee803166d7091f0a59cce11feba0319c39 +++ /dev/null @@ -1,487 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - destructor { - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "DESTRUCTOR A {0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Create" - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "A" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "n" - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "B" - } - members { - destructor { - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "DESTRUCTOR B {0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Create" - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "B" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "n" - expression { - identifier { - name: "x" - } - } - } - fields { - name: "a1" - expression { - call { - function { - simple_member_access { - field: "Create" - object { - identifier { - name: "A" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 4 - } - } - } - } - } - } - } - fields { - name: "a2" - expression { - call { - function { - simple_member_access { - field: "Create" - object { - identifier { - name: "A" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 3 - } - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "a1" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "a2" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Create" - object { - identifier { - name: "A" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 5 - } - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "B" - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Create" - object { - identifier { - name: "B" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 2 - } - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Create" - object { - identifier { - name: "A" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/c75f1f6324f2ebc6cdf2c0e8b96752c14e6f9fb6 b/explorer/fuzzing/fuzzer_corpus/c75f1f6324f2ebc6cdf2c0e8b96752c14e6f9fb6 deleted file mode 100644 index be7c5da433baa..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/c75f1f6324f2ebc6cdf2c0e8b96752c14e6f9fb6 +++ /dev/null @@ -1,45 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - namespace { - name { - name: "N" - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "value" - object { - identifier { - name: "N" - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/c8751055cd8a1d14a9d8ef7dea2ad215574c0f95 b/explorer/fuzzing/fuzzer_corpus/c8751055cd8a1d14a9d8ef7dea2ad215574c0f95 deleted file mode 100644 index 1ff75e4fb48b3..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/c8751055cd8a1d14a9d8ef7dea2ad215574c0f95 +++ /dev/null @@ -1,122 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "AddInt" - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "ret" - type { - expression_pattern { - expression { - bool_type_literal { - } - } - } - } - } - } - init { - bool_literal { - value: true - } - } - is_returned: true - } - } - statements { - return_var_statement { - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "AddInt" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/c939e8058be1e7249a4b189e9e676abf41b9af36 b/explorer/fuzzing/fuzzer_corpus/c939e8058be1e7249a4b189e9e676abf41b9af36 deleted file mode 100644 index a9a4c7d8eb02b..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/c939e8058be1e7249a4b189e9e676abf41b9af36 +++ /dev/null @@ -1,216 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - function { - name { - name: "F" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - call { - function { - identifier { - name: "G" - } - } - argument { - tuple_literal { - } - } - } - } - arguments { - call { - function { - simple_member_access { - field: "H" - object { - identifier { - name: "self" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "G" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - members { - function { - name { - name: "H" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "F" - object { - identifier { - name: "a" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/ca2009748b6a855a646c2ea92b74c0391780f2ea b/explorer/fuzzing/fuzzer_corpus/ca2009748b6a855a646c2ea92b74c0391780f2ea deleted file mode 100644 index 53345f3357933..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/ca2009748b6a855a646c2ea92b74c0391780f2ea +++ /dev/null @@ -1,68 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - tuple_literal { - } - } - } - body { - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/ca9dec79282193d860160dd2f4bef7cdfcfd6369 b/explorer/fuzzing/fuzzer_corpus/ca9dec79282193d860160dd2f4bef7cdfcfd6369 deleted file mode 100644 index abdf42fdc43c7..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/ca9dec79282193d860160dd2f4bef7cdfcfd6369 +++ /dev/null @@ -1,218 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - impl { - kind: ExternalImpl - impl_type { - struct_literal { - } - } - interface { - call { - function { - identifier { - name: "EqWith" - } - } - argument { - tuple_literal { - fields { - struct_literal { - } - } - } - } - } - } - members { - function { - name { - name: "Equal" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "other" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - bool_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - bool_literal { - value: true - } - } - } - } - } - } - } - members { - function { - name { - name: "NotEqual" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "other" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - bool_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - bool_literal { - value: false - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "empty" - type { - auto_pattern { - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - identifier { - name: "empty" - } - } - arguments { - struct_literal { - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - else_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/cab6a41e14e973615829654a236d7b115bbc7a4a b/explorer/fuzzing/fuzzer_corpus/cab6a41e14e973615829654a236d7b115bbc7a4a deleted file mode 100644 index 8e1793fa9ac4d..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/cab6a41e14e973615829654a236d7b115bbc7a4a +++ /dev/null @@ -1,57 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Vector" - } - members { - function { - name { - qualifiers: "Vector" - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/cb50321f6358690282c733b3e81bfb99352763bd b/explorer/fuzzing/fuzzer_corpus/cb50321f6358690282c733b3e81bfb99352763bd deleted file mode 100644 index cd258ac210161..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/cb50321f6358690282c733b3e81bfb99352763bd +++ /dev/null @@ -1,136 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "MakePoint" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 1 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - simple_member_access { - field: "x" - object { - call { - function { - identifier { - name: "MakePoint" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/cbe6ee626f17131b0f169142698988362cd416a4 b/explorer/fuzzing/fuzzer_corpus/cbe6ee626f17131b0f169142698988362cd416a4 deleted file mode 100644 index e35d599432b26..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/cbe6ee626f17131b0f169142698988362cd416a4 +++ /dev/null @@ -1,88 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "s" - type { - expression_pattern { - expression { - string_type_literal { - } - } - } - } - } - } - init { - string_literal { - value: "A block string literal\n\'\'\'\n" - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - identifier { - name: "s" - } - } - arguments { - string_literal { - value: "A block string literal\n\'\'\'\n" - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - else_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/cc12041efe79d6fdd71233d01abdfc2fa9b1e145 b/explorer/fuzzing/fuzzer_corpus/cc12041efe79d6fdd71233d01abdfc2fa9b1e145 deleted file mode 100644 index 8809824991ab7..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/cc12041efe79d6fdd71233d01abdfc2fa9b1e145 +++ /dev/null @@ -1,139 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 1 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - operator { - op: Sub - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "p" - } - } - } - } - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "p" - } - } - } - } - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/cc16e3023923b2a08ccc12474484922b3877cb7d b/explorer/fuzzing/fuzzer_corpus/cc16e3023923b2a08ccc12474484922b3877cb7d deleted file mode 100644 index 527cdb125c7ec..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/cc16e3023923b2a08ccc12474484922b3877cb7d +++ /dev/null @@ -1,168 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "A" - } - } - interface { - call { - function { - identifier { - name: "As" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "Convert" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 5 - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: As - arguments { - identifier { - name: "a" - } - } - arguments { - int_type_literal { - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/ccde77cc350813aca7fb8f9ddba7c15cf19aa753 b/explorer/fuzzing/fuzzer_corpus/ccde77cc350813aca7fb8f9ddba7c15cf19aa753 deleted file mode 100644 index 3185a60ed2938..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/ccde77cc350813aca7fb8f9ddba7c15cf19aa753 +++ /dev/null @@ -1,130 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "C" - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - members { - function { - name { - name: "G" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "f" - type { - auto_pattern { - } - } - } - } - init { - simple_member_access { - field: "F" - object { - identifier { - name: "C" - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "g" - type { - auto_pattern { - } - } - } - } - init { - simple_member_access { - field: "G" - object { - identifier { - name: "C" - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/cd62089d4819abbb9bc53c6f05b9346a6e4da9d9 b/explorer/fuzzing/fuzzer_corpus/cd62089d4819abbb9bc53c6f05b9346a6e4da9d9 deleted file mode 100644 index 67ba1b32b329d..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/cd62089d4819abbb9bc53c6f05b9346a6e4da9d9 +++ /dev/null @@ -1,121 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p1" - type { - auto_pattern { - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 1 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "p2" - type { - auto_pattern { - } - } - } - } - init { - identifier { - name: "p1" - } - } - is_returned: false - } - } - statements { - assign { - lhs { - simple_member_access { - field: "x" - object { - identifier { - name: "p2" - } - } - } - } - rhs { - int_literal { - value: 3 - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "p1" - } - } - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/cd7abde20f670fdcd4f1dc6c46514391a210b633 b/explorer/fuzzing/fuzzer_corpus/cd7abde20f670fdcd4f1dc6c46514391a210b633 deleted file mode 100644 index 031681b107595..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/cd7abde20f670fdcd4f1dc6c46514391a210b633 +++ /dev/null @@ -1,55 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "T" - type { - designator { - name: "Self" - } - } - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/cd81b4e344fc340d010b8eb5257e41bd1de259eb b/explorer/fuzzing/fuzzer_corpus/cd81b4e344fc340d010b8eb5257e41bd1de259eb deleted file mode 100644 index 0e2bb3cbd3756..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/cd81b4e344fc340d010b8eb5257e41bd1de259eb +++ /dev/null @@ -1,116 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "p" - } - } - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/ce21c01f50fa918dde114d98533c177667957b44 b/explorer/fuzzing/fuzzer_corpus/ce21c01f50fa918dde114d98533c177667957b44 deleted file mode 100644 index 1da3841262f37..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/ce21c01f50fa918dde114d98533c177667957b44 +++ /dev/null @@ -1,366 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Frob" - } - members { - let { - pattern { - generic_binding { - name: "Result" - type { - type_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "F" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Result" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Use" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "Frob" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - simple_member_access { - field: "Result" - object { - identifier { - name: "T" - } - } - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - simple_member_access { - field: "Result" - object { - identifier { - name: "T" - } - } - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "F" - object { - identifier { - name: "x" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "v" - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "AlmostI32" - } - members { - variable { - binding { - name: "val" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - call { - function { - identifier { - name: "ImplicitAs" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "Convert" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "val" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - where { - base { - identifier { - name: "Frob" - } - } - clauses { - rewrite { - member_name: "Result" - replacement { - identifier { - name: "AlmostI32" - } - } - } - } - } - } - members { - function { - name { - name: "F" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "AlmostI32" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "val" - expression { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "Use" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/ce4a5dca5b77ec62e460a5603a9ad3240cabeebc b/explorer/fuzzing/fuzzer_corpus/ce4a5dca5b77ec62e460a5603a9ad3240cabeebc deleted file mode 100644 index 4e60cfbf5ad79..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/ce4a5dca5b77ec62e460a5603a9ad3240cabeebc +++ /dev/null @@ -1,67 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/cfb7c4c944abce79527a792be8edeab8a105bbee b/explorer/fuzzing/fuzzer_corpus/cfb7c4c944abce79527a792be8edeab8a105bbee deleted file mode 100644 index c3d4d66de3955..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/cfb7c4c944abce79527a792be8edeab8a105bbee +++ /dev/null @@ -1,90 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - bool_literal { - value: true - } - } - then_block { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 1 - } - } - is_returned: false - } - } - } - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/d005a63d70a3265665c19c84e7148a6b8f37586d b/explorer/fuzzing/fuzzer_corpus/d005a63d70a3265665c19c84e7148a6b8f37586d deleted file mode 100644 index 4f80cc8e2fd51..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/d005a63d70a3265665c19c84e7148a6b8f37586d +++ /dev/null @@ -1,207 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - variable { - binding { - name: "i" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - destructor { - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Destructor A {0}" - } - } - fields { - simple_member_access { - field: "i" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a0" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "a1" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "i" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "a2" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "a3" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "i" - expression { - int_literal { - value: 3 - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/d19c4ff26d2c5050306f61471db7b2056316ddfa b/explorer/fuzzing/fuzzer_corpus/d19c4ff26d2c5050306f61471db7b2056316ddfa deleted file mode 100644 index beded8a0ed01b..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/d19c4ff26d2c5050306f61471db7b2056316ddfa +++ /dev/null @@ -1,48 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/d1ca518b60ba67635582c9e1f7dca5cf228a8eda b/explorer/fuzzing/fuzzer_corpus/d1ca518b60ba67635582c9e1f7dca5cf228a8eda deleted file mode 100644 index d42d875dba49b..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/d1ca518b60ba67635582c9e1f7dca5cf228a8eda +++ /dev/null @@ -1,997 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Number" - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "other" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - type_params { - fields { - generic_binding { - name: "T" - type { - identifier { - name: "Number" - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - int_type_literal { - } - } - interface { - identifier { - name: "Number" - } - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "other" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - identifier { - name: "self" - } - } - arguments { - identifier { - name: "other" - } - } - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "U" - } - } - } - } - } - } - interface { - identifier { - name: "Number" - } - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "U" - } - } - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - call { - function { - simple_member_access { - field: "Zero" - object { - identifier { - name: "U" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - fields { - name: "y" - expression { - call { - function { - simple_member_access { - field: "Zero" - object { - identifier { - name: "U" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "U" - } - } - } - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "other" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "U" - } - } - } - } - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "U" - } - } - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - call { - function { - simple_member_access { - field: "Add" - object { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - } - } - argument { - tuple_literal { - fields { - simple_member_access { - field: "x" - object { - identifier { - name: "other" - } - } - } - } - } - } - } - } - } - fields { - name: "y" - expression { - call { - function { - simple_member_access { - field: "Add" - object { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - } - } - argument { - tuple_literal { - fields { - simple_member_access { - field: "y" - object { - identifier { - name: "other" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Sum" - } - deduced_parameters { - name: "E" - type { - identifier { - name: "Number" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "E" - } - } - } - } - } - } - fields { - binding_pattern { - name: "y" - type { - expression_pattern { - expression { - identifier { - name: "E" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "E" - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "total" - type { - expression_pattern { - expression { - identifier { - name: "E" - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Zero" - object { - identifier { - name: "E" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "total" - } - } - rhs { - call { - function { - simple_member_access { - field: "Add" - object { - identifier { - name: "total" - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "x" - } - } - } - } - } - } - op: Plain - } - } - statements { - assign { - lhs { - identifier { - name: "total" - } - } - rhs { - call { - function { - simple_member_access { - field: "Add" - object { - identifier { - name: "total" - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "y" - } - } - } - } - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "total" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "SumPoints" - } - deduced_parameters { - name: "E" - type { - identifier { - name: "Number" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "E" - } - } - } - } - } - } - } - } - } - } - fields { - binding_pattern { - name: "q" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "E" - } - } - } - } - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "E" - } - } - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "Sum" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "p" - } - } - fields { - identifier { - name: "q" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 1 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "q" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 4 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 3 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "r" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - call { - function { - identifier { - name: "SumPoints" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "p" - } - } - fields { - identifier { - name: "q" - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "r" - } - } - } - } - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "r" - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/d1e9bf10ba663a79370c09ca3f2f7163f1f73bde b/explorer/fuzzing/fuzzer_corpus/d1e9bf10ba663a79370c09ca3f2f7163f1f73bde deleted file mode 100644 index bc4262086ec40..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/d1e9bf10ba663a79370c09ca3f2f7163f1f73bde +++ /dev/null @@ -1,73 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - tuple_literal { - } - } - } - body { - statements { - return_expression_statement { - is_omitted_expression: true - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/d1f2737124dc5d58887ec7f9058631d3d0b161fd b/explorer/fuzzing/fuzzer_corpus/d1f2737124dc5d58887ec7f9058631d3d0b161fd deleted file mode 100644 index 8a076bcdb4fc3..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/d1f2737124dc5d58887ec7f9058631d3d0b161fd +++ /dev/null @@ -1,83 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - array_type_literal { - element_type { - int_type_literal { - } - } - size { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - init { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - fields { - int_literal { - value: 1 - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - index { - object { - identifier { - name: "x" - } - } - offset { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/d22d12eb1a14d96b87311cb90c6413a41d777fc1 b/explorer/fuzzing/fuzzer_corpus/d22d12eb1a14d96b87311cb90c6413a41d777fc1 deleted file mode 100644 index ef80e6348ddde..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/d22d12eb1a14d96b87311cb90c6413a41d777fc1 +++ /dev/null @@ -1,111 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "C" - } - } - } - declarations { - class_declaration { - name { - name: "D" - } - members { - function { - name { - name: "Foo" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "d" - type { - expression_pattern { - expression { - identifier { - name: "D" - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/d2591834746c559d4b267154ed3541cf52319bfd b/explorer/fuzzing/fuzzer_corpus/d2591834746c559d4b267154ed3541cf52319bfd deleted file mode 100644 index d297ebec3a0a5..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/d2591834746c559d4b267154ed3541cf52319bfd +++ /dev/null @@ -1,57 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_literal { - value: 42 - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/d3212565f73f5993018e380e910682e30215bb13 b/explorer/fuzzing/fuzzer_corpus/d3212565f73f5993018e380e910682e30215bb13 deleted file mode 100644 index e264abd8bc088..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/d3212565f73f5993018e380e910682e30215bb13 +++ /dev/null @@ -1,95 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "id" - } - deduced_parameters { - name: "T" - type { - type_type_literal { - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "id" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/d3a897a559f329f737df929fe871aab5da3805ab b/explorer/fuzzing/fuzzer_corpus/d3a897a559f329f737df929fe871aab5da3805ab deleted file mode 100644 index 701b1ac62c8e5..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/d3a897a559f329f737df929fe871aab5da3805ab +++ /dev/null @@ -1,80 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - match { - expression { - identifier { - name: "n" - } - } - clauses { - pattern { - expression_pattern { - expression { - int_literal { - value: 1 - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/d3bdea629fba4740d1ce04e94e66ffa528796f7d b/explorer/fuzzing/fuzzer_corpus/d3bdea629fba4740d1ce04e94e66ffa528796f7d deleted file mode 100644 index 9536fa1d03b2b..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/d3bdea629fba4740d1ce04e94e66ffa528796f7d +++ /dev/null @@ -1,579 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Number" - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "other" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point" - } - members { - function { - name { - name: "Origin" - } - param_pattern { - } - return_term { - kind: Expression - type { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - call { - function { - simple_member_access { - field: "Zero" - object { - identifier { - name: "T" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - fields { - name: "y" - expression { - call { - function { - simple_member_access { - field: "Zero" - object { - identifier { - name: "T" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "SumXY" - } - param_pattern { - fields { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Add" - object { - simple_member_access { - field: "x" - object { - identifier { - name: "p" - } - } - } - } - } - } - argument { - tuple_literal { - fields { - simple_member_access { - field: "y" - object { - identifier { - name: "p" - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "SumFn" - } - param_pattern { - } - return_term { - kind: Expression - type { - function_type { - return_type { - identifier { - name: "T" - } - } - parameter { - fields { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "SumXY" - object { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - type_params { - fields { - generic_binding { - name: "T" - type { - identifier { - name: "Number" - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - int_type_literal { - } - } - interface { - identifier { - name: "Number" - } - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "other" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - identifier { - name: "self" - } - } - arguments { - identifier { - name: "other" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Origin" - object { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - call { - function { - simple_member_access { - field: "SumFn" - object { - identifier { - name: "p" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "p" - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/d3e875bb57012d16109ee38af1b3c63ad1c0119b b/explorer/fuzzing/fuzzer_corpus/d3e875bb57012d16109ee38af1b3c63ad1c0119b deleted file mode 100644 index 4fc7ace02c8b0..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/d3e875bb57012d16109ee38af1b3c63ad1c0119b +++ /dev/null @@ -1,73 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - choice { - name { - name: "C" - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - auto_pattern { - } - } - } - } - init { - identifier { - name: "C" - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "a" - } - } - rhs { - int_type_literal { - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/d40f0eece13f11308ad1f7a965180857fb1972cd b/explorer/fuzzing/fuzzer_corpus/d40f0eece13f11308ad1f7a965180857fb1972cd deleted file mode 100644 index bc2e8b4640f87..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/d40f0eece13f11308ad1f7a965180857fb1972cd +++ /dev/null @@ -1,101 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "empty" - type { - expression_pattern { - expression { - struct_literal { - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "empty" - } - } - rhs { - struct_literal { - } - } - op: Plain - } - } - statements { - match { - expression { - identifier { - name: "empty" - } - } - clauses { - pattern { - expression_pattern { - expression { - struct_literal { - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/d415acd8c86e6475fe8d0c8a1d5de351a99ea967 b/explorer/fuzzing/fuzzer_corpus/d415acd8c86e6475fe8d0c8a1d5de351a99ea967 deleted file mode 100644 index 69abd9fedd1ec..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/d415acd8c86e6475fe8d0c8a1d5de351a99ea967 +++ /dev/null @@ -1,37 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - impl { - kind: ExternalImpl - impl_type { - int_type_literal { - } - } - interface { - string_type_literal { - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/d461c6f24473e9f2bbc61bedf75fe8e87ee5ac15 b/explorer/fuzzing/fuzzer_corpus/d461c6f24473e9f2bbc61bedf75fe8e87ee5ac15 deleted file mode 100644 index 8827670d9745f..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/d461c6f24473e9f2bbc61bedf75fe8e87ee5ac15 +++ /dev/null @@ -1,64 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - type_params { - fields { - generic_binding { - name: "X" - type { - call { - function { - identifier { - name: "A" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/d494ba5ee115dd8fb0ab0df4d885fba5f66205ae b/explorer/fuzzing/fuzzer_corpus/d494ba5ee115dd8fb0ab0df4d885fba5f66205ae deleted file mode 100644 index 8152ae078463f..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/d494ba5ee115dd8fb0ab0df4d885fba5f66205ae +++ /dev/null @@ -1,90 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "I" - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - auto_pattern { - } - } - } - } - init { - where { - base { - identifier { - name: "I" - } - } - clauses { - equals { - lhs { - designator { - name: "Self" - } - } - rhs { - int_type_literal { - } - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "a" - } - } - rhs { - int_type_literal { - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/d5307d189b74cf05f358cb224cef368a67854c6b b/explorer/fuzzing/fuzzer_corpus/d5307d189b74cf05f358cb224cef368a67854c6b deleted file mode 100644 index 5b0bb54fac05a..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/d5307d189b74cf05f358cb224cef368a67854c6b +++ /dev/null @@ -1,660 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Vector" - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - identifier { - name: "Vector" - } - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 0 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Mul - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "v" - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Mul - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "v" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "AddAndScaleGeneric" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "Vector" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "s" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Scale" - object { - call { - function { - simple_member_access { - field: "Add" - object { - identifier { - name: "a" - } - } - } - } - argument { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "Zero" - object { - identifier { - name: "T" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "s" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 2 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - call { - function { - identifier { - name: "AddAndScaleGeneric" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "a" - } - } - fields { - int_literal { - value: 5 - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "p" - } - } - } - } - arguments { - int_literal { - value: 10 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/d5815e9c43a87a98252b04dfef6cbd8bf422bf11 b/explorer/fuzzing/fuzzer_corpus/d5815e9c43a87a98252b04dfef6cbd8bf422bf11 deleted file mode 100644 index f82fb983f48cb..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/d5815e9c43a87a98252b04dfef6cbd8bf422bf11 +++ /dev/null @@ -1,124 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - int_type_literal { - } - } - } - } - } - } - } - } - init { - call { - function { - identifier { - name: "__intrinsic_new" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - operator { - op: Deref - arguments { - identifier { - name: "p" - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "__intrinsic_delete" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "p" - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "y" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/d59a7e060c3b84f4c824a1eb73e6e8251e4d85e5 b/explorer/fuzzing/fuzzer_corpus/d59a7e060c3b84f4c824a1eb73e6e8251e4d85e5 deleted file mode 100644 index ebcda05cf425b..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/d59a7e060c3b84f4c824a1eb73e6e8251e4d85e5 +++ /dev/null @@ -1,87 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - int_literal { - value: 0 - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - then_block { - statements { - assign { - lhs { - identifier { - name: "x" - } - } - rhs { - int_literal { - value: 0 - } - } - op: Plain - } - } - } - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/d5ac7153cc6a2962aec5efa8d6e29766f02a14b0 b/explorer/fuzzing/fuzzer_corpus/d5ac7153cc6a2962aec5efa8d6e29766f02a14b0 deleted file mode 100644 index d98e7a34a8c99..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/d5ac7153cc6a2962aec5efa8d6e29766f02a14b0 +++ /dev/null @@ -1,103 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - initializer { - int_literal { - value: 0 - } - } - } - } - declarations { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - type_type_literal { - } - } - } - body { - statements { - assign { - lhs { - identifier { - name: "n" - } - } - rhs { - int_literal { - value: 1 - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - int_type_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "n" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/d5c05ce4b7120635d9b0ff8f66429daa96a48f3e b/explorer/fuzzing/fuzzer_corpus/d5c05ce4b7120635d9b0ff8f66429daa96a48f3e deleted file mode 100644 index 6d1a44cf0f532..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/d5c05ce4b7120635d9b0ff8f66429daa96a48f3e +++ /dev/null @@ -1,337 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Point" - } - members { - function { - name { - name: "Origin" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 0 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "GetSetX" - } - self_pattern { - addr_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "Point" - } - } - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "old" - type { - auto_pattern { - } - } - } - } - init { - simple_member_access { - field: "x" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - simple_member_access { - field: "x" - object { - operator { - op: Deref - arguments { - identifier { - name: "self" - } - } - } - } - } - } - rhs { - identifier { - name: "x" - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "old" - } - } - } - } - } - } - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Origin" - object { - identifier { - name: "Point" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - auto_pattern { - } - } - } - } - init { - call { - function { - simple_member_access { - field: "GetSetX" - object { - identifier { - name: "p" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 42 - } - } - } - } - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "p" - } - } - } - } - arguments { - int_literal { - value: 42 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/d62514440c749d819c68b215647113bedb26deee b/explorer/fuzzing/fuzzer_corpus/d62514440c749d819c68b215647113bedb26deee deleted file mode 100644 index 8133f8732f3ee..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/d62514440c749d819c68b215647113bedb26deee +++ /dev/null @@ -1,163 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p1" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 1 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "p2" - type { - auto_pattern { - } - } - } - } - init { - identifier { - name: "p1" - } - } - is_returned: false - } - } - statements { - assign { - lhs { - simple_member_access { - field: "x" - object { - identifier { - name: "p2" - } - } - } - } - rhs { - int_literal { - value: 3 - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "p1" - } - } - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/d6d4e4d8991d7ed953b06bbf4f7f79332fc55262 b/explorer/fuzzing/fuzzer_corpus/d6d4e4d8991d7ed953b06bbf4f7f79332fc55262 deleted file mode 100644 index 29dec6e622589..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/d6d4e4d8991d7ed953b06bbf4f7f79332fc55262 +++ /dev/null @@ -1,34 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - path: "Foo" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/d727a802b44490abfb3ce1c3794a16f0e6d763b4 b/explorer/fuzzing/fuzzer_corpus/d727a802b44490abfb3ce1c3794a16f0e6d763b4 deleted file mode 100644 index ec4abdc916c6f..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/d727a802b44490abfb3ce1c3794a16f0e6d763b4 +++ /dev/null @@ -1,245 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "cond" - type { - expression_pattern { - expression { - if_expression { - condition { - bool_literal { - value: true - } - } - then_expression { - bool_type_literal { - } - } - else_expression { - int_type_literal { - } - } - } - } - } - } - } - } - init { - bool_literal { - value: true - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - if_expression { - condition { - identifier { - name: "cond" - } - } - then_expression { - bool_literal { - value: true - } - } - else_expression { - bool_literal { - value: false - } - } - } - } - then_block { - } - } - } - statements { - while_statement { - condition { - if_expression { - condition { - identifier { - name: "cond" - } - } - then_expression { - bool_literal { - value: false - } - } - else_expression { - bool_literal { - value: true - } - } - } - } - body { - } - } - } - statements { - return_expression_statement { - expression { - if_expression { - condition { - if_expression { - condition { - identifier { - name: "cond" - } - } - then_expression { - operator { - op: Or - arguments { - bool_literal { - value: true - } - } - arguments { - bool_literal { - value: false - } - } - } - } - else_expression { - operator { - op: And - arguments { - bool_literal { - value: false - } - } - arguments { - bool_literal { - value: true - } - } - } - } - } - } - then_expression { - if_expression { - condition { - operator { - op: Not - arguments { - identifier { - name: "cond" - } - } - } - } - then_expression { - operator { - op: Add - arguments { - int_literal { - value: 1 - } - } - arguments { - int_literal { - value: 2 - } - } - } - } - else_expression { - operator { - op: Mul - arguments { - int_literal { - value: 3 - } - } - arguments { - int_literal { - value: 4 - } - } - } - } - } - } - else_expression { - if_expression { - condition { - operator { - op: Not - arguments { - identifier { - name: "cond" - } - } - } - } - then_expression { - operator { - op: Add - arguments { - int_literal { - value: 5 - } - } - arguments { - int_literal { - value: 6 - } - } - } - } - else_expression { - operator { - op: Mul - arguments { - int_literal { - value: 7 - } - } - arguments { - int_literal { - value: 8 - } - } - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/d75851c53afd66d3635ec3d3fe600e5a0cff6289 b/explorer/fuzzing/fuzzer_corpus/d75851c53afd66d3635ec3d3fe600e5a0cff6289 deleted file mode 100644 index a392813cd6d35..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/d75851c53afd66d3635ec3d3fe600e5a0cff6289 +++ /dev/null @@ -1,75 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "C" - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - } - } - declarations { - class_declaration { - name { - name: "D" - } - members { - function { - name { - name: "G" - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/d788c11b524a4b9e0ba8eff32a342f38f8fd452d b/explorer/fuzzing/fuzzer_corpus/d788c11b524a4b9e0ba8eff32a342f38f8fd452d deleted file mode 100644 index 4732d9ad00e32..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/d788c11b524a4b9e0ba8eff32a342f38f8fd452d +++ /dev/null @@ -1,50 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - choice { - name { - name: "C" - } - alternatives { - name: "X" - signature { - fields { - int_literal { - value: 42 - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/d796ffaed084b3712e41d12d011d75fa05747b4d b/explorer/fuzzing/fuzzer_corpus/d796ffaed084b3712e41d12d011d75fa05747b4d deleted file mode 100644 index 19d6606215452..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/d796ffaed084b3712e41d12d011d75fa05747b4d +++ /dev/null @@ -1,182 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "lhs" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 8 - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "rhs" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 3 - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Interface: {0}" - } - } - fields { - call { - function { - compound_member_access { - object { - identifier { - name: "lhs" - } - } - path { - simple_member_access { - field: "Op" - object { - call { - function { - identifier { - name: "DivWith" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "rhs" - } - } - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Op: {0}" - } - } - fields { - operator { - op: Div - arguments { - identifier { - name: "lhs" - } - } - arguments { - identifier { - name: "rhs" - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/d80a07a449e27a4ad393b26c15db6669670d1454 b/explorer/fuzzing/fuzzer_corpus/d80a07a449e27a4ad393b26c15db6669670d1454 deleted file mode 100644 index 37272b0dff141..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/d80a07a449e27a4ad393b26c15db6669670d1454 +++ /dev/null @@ -1,288 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "HasThreeTypes" - } - members { - let { - pattern { - generic_binding { - name: "A" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "B" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "C" - type { - type_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "Make" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - tuple_literal { - fields { - identifier { - name: "A" - } - } - fields { - identifier { - name: "B" - } - } - fields { - identifier { - name: "C" - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "T" - type { - type_type_literal { - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - tuple_literal { - fields { - identifier { - name: "T" - } - } - fields { - identifier { - name: "T" - } - } - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - } - } - declarations { - function { - name { - name: "G" - } - deduced_parameters { - name: "X" - type { - where { - base { - identifier { - name: "HasThreeTypes" - } - } - clauses { - equals { - lhs { - designator { - name: "A" - } - } - rhs { - designator { - name: "B" - } - } - } - } - clauses { - equals { - lhs { - designator { - name: "B" - } - } - rhs { - designator { - name: "C" - } - } - } - } - clauses { - equals { - lhs { - designator { - name: "C" - } - } - rhs { - designator { - name: "A" - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "X" - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "Make" - object { - identifier { - name: "x" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/d8b510587401004831ef4bdef4e4c71f87366aff b/explorer/fuzzing/fuzzer_corpus/d8b510587401004831ef4bdef4e4c71f87366aff deleted file mode 100644 index 659921a961ed7..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/d8b510587401004831ef4bdef4e4c71f87366aff +++ /dev/null @@ -1,73 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "I" - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - auto_pattern { - } - } - } - } - init { - identifier { - name: "I" - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "a" - } - } - rhs { - int_type_literal { - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/d921aec562270acfaa51de02327d430d5f83c90b b/explorer/fuzzing/fuzzer_corpus/d921aec562270acfaa51de02327d430d5f83c90b deleted file mode 100644 index adf5d2edc2d24..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/d921aec562270acfaa51de02327d430d5f83c90b +++ /dev/null @@ -1,350 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "A" - } - } - interface { - where { - base { - call { - function { - identifier { - name: "MulWith" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - clauses { - rewrite { - member_name: "Result" - replacement { - identifier { - name: "A" - } - } - } - } - } - } - members { - function { - name { - name: "Op" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "rhs" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "A" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "n" - expression { - operator { - op: Mul - arguments { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "rhs" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 5 - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "a" - } - } - rhs { - operator { - op: Mul - arguments { - identifier { - name: "a" - } - } - arguments { - int_literal { - value: 2 - } - } - } - } - op: Plain - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "a" - } - } - } - } - } - } - } - } - } - } - statements { - assign { - lhs { - identifier { - name: "a" - } - } - rhs { - int_literal { - value: 3 - } - } - op: Mul - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "a" - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "n" - object { - operator { - op: Mul - arguments { - identifier { - name: "a" - } - } - arguments { - int_literal { - value: 7 - } - } - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/d9e9c12831efda83ebde3f030908faee27a4ec66 b/explorer/fuzzing/fuzzer_corpus/d9e9c12831efda83ebde3f030908faee27a4ec66 deleted file mode 100644 index ca1acd07999c7..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/d9e9c12831efda83ebde3f030908faee27a4ec66 +++ /dev/null @@ -1,86 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "C" - } - members { - variable { - binding { - name: "a" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - identifier { - name: "C" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "a" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/da4cda66ebb9c6633a08995da35a4ee374166704 b/explorer/fuzzing/fuzzer_corpus/da4cda66ebb9c6633a08995da35a4ee374166704 deleted file mode 100644 index 7740a952ca1fe..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/da4cda66ebb9c6633a08995da35a4ee374166704 +++ /dev/null @@ -1,277 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - choice { - name { - name: "Ints" - } - alternatives { - name: "None" - signature { - } - } - alternatives { - name: "One" - signature { - fields { - int_type_literal { - } - } - } - } - alternatives { - name: "Two" - signature { - fields { - int_type_literal { - } - } - fields { - int_type_literal { - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - auto_pattern { - } - } - } - } - init { - call { - function { - simple_member_access { - field: "None" - object { - identifier { - name: "Ints" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "n" - type { - auto_pattern { - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - match { - expression { - identifier { - name: "x" - } - } - clauses { - pattern { - alternative_pattern { - choice_type { - identifier { - name: "Ints" - } - } - alternative_name: "One" - arguments { - fields { - var_pattern { - pattern { - binding_pattern { - name: "x" - type { - auto_pattern { - } - } - } - } - } - } - } - } - } - statement { - block { - statements { - assign { - lhs { - identifier { - name: "x" - } - } - rhs { - int_literal { - value: 2 - } - } - op: Plain - } - } - } - } - } - clauses { - pattern { - expression_pattern { - expression { - call { - function { - simple_member_access { - field: "None" - object { - identifier { - name: "Ints" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statement { - block { - statements { - assign { - lhs { - identifier { - name: "n" - } - } - rhs { - operator { - op: Sub - arguments { - identifier { - name: "n" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - op: Plain - } - } - } - } - } - clauses { - pattern { - alternative_pattern { - choice_type { - identifier { - name: "Ints" - } - } - alternative_name: "Two" - arguments { - fields { - binding_pattern { - name: "x" - type { - auto_pattern { - } - } - } - } - fields { - binding_pattern { - name: "y" - type { - auto_pattern { - } - } - } - } - } - } - } - statement { - block { - statements { - assign { - lhs { - identifier { - name: "x" - } - } - rhs { - int_literal { - value: 0 - } - } - op: Plain - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/db8f1269569934ae031d1118e83408d71bb48456 b/explorer/fuzzing/fuzzer_corpus/db8f1269569934ae031d1118e83408d71bb48456 deleted file mode 100644 index e983f1a838022..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/db8f1269569934ae031d1118e83408d71bb48456 +++ /dev/null @@ -1,61 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - is_returned: true - } - } - statements { - assign { - lhs { - identifier { - name: "x" - } - } - rhs { - int_literal { - value: 1 - } - } - op: Plain - } - } - statements { - return_var_statement { - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/dbbeeace76678d1edfee6d889ec2c8b62ee540df b/explorer/fuzzing/fuzzer_corpus/dbbeeace76678d1edfee6d889ec2c8b62ee540df deleted file mode 100644 index ca7442d7b4d11..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/dbbeeace76678d1edfee6d889ec2c8b62ee540df +++ /dev/null @@ -1,66 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Iface" - } - members { - let { - pattern { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/dbdfda02dd7254b8f91ac01ded027ae583b1b6c9 b/explorer/fuzzing/fuzzer_corpus/dbdfda02dd7254b8f91ac01ded027ae583b1b6c9 deleted file mode 100644 index 745582f8421de..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/dbdfda02dd7254b8f91ac01ded027ae583b1b6c9 +++ /dev/null @@ -1,139 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - array_type_literal { - element_type { - array_type_literal { - element_type { - int_type_literal { - } - } - size { - int_literal { - value: 3 - } - } - } - } - size { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - init { - tuple_literal { - fields { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 2 - } - } - } - } - fields { - tuple_literal { - fields { - int_literal { - value: 3 - } - } - fields { - int_literal { - value: 4 - } - } - fields { - int_literal { - value: 5 - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - index { - object { - index { - object { - identifier { - name: "x" - } - } - offset { - int_literal { - value: 1 - } - } - } - } - offset { - int_literal { - value: 2 - } - } - } - } - arguments { - int_literal { - value: 5 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/dc2bac7f337d98ff2fa2d34a46b4a7189b808004 b/explorer/fuzzing/fuzzer_corpus/dc2bac7f337d98ff2fa2d34a46b4a7189b808004 deleted file mode 100644 index 75b64acf47f98..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/dc2bac7f337d98ff2fa2d34a46b4a7189b808004 +++ /dev/null @@ -1,68 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - initializer { - int_literal { - value: 10 - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - assign { - lhs { - identifier { - name: "x" - } - } - rhs { - int_literal { - value: 0 - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/dce8888e7cd22ca49874c3a06980ae13c0db0a56 b/explorer/fuzzing/fuzzer_corpus/dce8888e7cd22ca49874c3a06980ae13c0db0a56 deleted file mode 100644 index dcba85857182b..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/dce8888e7cd22ca49874c3a06980ae13c0db0a56 +++ /dev/null @@ -1,98 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - auto_pattern { - } - } - } - } - init { - int_literal { - value: 2 - } - } - is_returned: false - } - } - statements { - while_statement { - condition { - operator { - op: NotEq - arguments { - identifier { - name: "x" - } - } - arguments { - int_literal { - value: 0 - } - } - } - } - body { - statements { - assign { - lhs { - identifier { - name: "x" - } - } - rhs { - operator { - op: Sub - arguments { - identifier { - name: "x" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - op: Plain - } - } - } - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/dcf3bcfe2b837b1da0c48ba297e83a091fa31056 b/explorer/fuzzing/fuzzer_corpus/dcf3bcfe2b837b1da0c48ba297e83a091fa31056 deleted file mode 100644 index b37916f3447a3..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/dcf3bcfe2b837b1da0c48ba297e83a091fa31056 +++ /dev/null @@ -1,269 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "A" - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - } - } - declarations { - interface { - name { - name: "B" - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Get" - } - deduced_parameters { - name: "T" - type { - operator { - op: BitwiseAnd - arguments { - identifier { - name: "A" - } - } - arguments { - identifier { - name: "B" - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "F" - object { - identifier { - name: "n" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - identifier { - name: "A" - } - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - identifier { - name: "B" - } - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "z" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "Get" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "z" - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/dd85eb7cbd01eacce9f8904bb7d1894f2aa7d3b5 b/explorer/fuzzing/fuzzer_corpus/dd85eb7cbd01eacce9f8904bb7d1894f2aa7d3b5 deleted file mode 100644 index 5f4eb1e72ea1c..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/dd85eb7cbd01eacce9f8904bb7d1894f2aa7d3b5 +++ /dev/null @@ -1,238 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Point" - } - members { - function { - name { - name: "Origin" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 0 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "GetX" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Origin" - object { - identifier { - name: "Point" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "f" - type { - expression_pattern { - expression { - function_type { - return_type { - int_type_literal { - } - } - parameter { - } - } - } - } - } - } - } - init { - simple_member_access { - field: "GetX" - object { - identifier { - name: "p" - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "f" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/de53043af63bcefa34668c2616de2a4bb376c7d8 b/explorer/fuzzing/fuzzer_corpus/de53043af63bcefa34668c2616de2a4bb376c7d8 deleted file mode 100644 index c0f8533d1bc5d..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/de53043af63bcefa34668c2616de2a4bb376c7d8 +++ /dev/null @@ -1,220 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "T" - type { - call { - function { - identifier { - name: "ImplicitAs" - } - } - argument { - tuple_literal { - fields { - type_type_literal { - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - type_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - operator { - op: As - arguments { - tuple_literal { - fields { - int_type_literal { - } - } - fields { - int_type_literal { - } - } - } - } - arguments { - type_type_literal { - } - } - } - } - } - } - } - } - init { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 2 - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "w" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - tuple_literal { - fields { - int_type_literal { - } - } - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - } - } - init { - tuple_literal { - fields { - int_literal { - value: 3 - } - } - fields { - int_literal { - value: 4 - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "v" - } - } - rhs { - identifier { - name: "w" - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - index { - object { - identifier { - name: "v" - } - } - offset { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/debffbef624f8600943aa77137b53dde725a98a3 b/explorer/fuzzing/fuzzer_corpus/debffbef624f8600943aa77137b53dde725a98a3 deleted file mode 100644 index 9017a91b689aa..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/debffbef624f8600943aa77137b53dde725a98a3 +++ /dev/null @@ -1,390 +0,0 @@ -compilation_unit { - package_statement { - package_name: "Foo" - } - is_api: true - declarations { - interface { - name { - name: "A" - } - members { - function { - name { - name: "F" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "o" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "X" - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - identifier { - name: "A" - } - } - members { - function { - name { - name: "F" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "o" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "n" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "n" - object { - identifier { - name: "o" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "A" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "w" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - compound_member_access { - object { - identifier { - name: "v" - } - } - path { - compound_member_access { - object { - identifier { - name: "T" - } - } - path { - simple_member_access { - field: "F" - object { - identifier { - name: "A" - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "w" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - identifier { - name: "X" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "w" - type { - expression_pattern { - expression { - identifier { - name: "X" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - simple_member_access { - field: "n" - object { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "v" - } - } - fields { - identifier { - name: "w" - } - } - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/df0ece360136f1fdd9ac662839342edbe8355ff6 b/explorer/fuzzing/fuzzer_corpus/df0ece360136f1fdd9ac662839342edbe8355ff6 deleted file mode 100644 index 93451117975a9..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/df0ece360136f1fdd9ac662839342edbe8355ff6 +++ /dev/null @@ -1,66 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "x" - } - } - rhs { - int_literal { - value: 1 - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/df174278898488f5f9baa6d603e16c74d2ba0402 b/explorer/fuzzing/fuzzer_corpus/df174278898488f5f9baa6d603e16c74d2ba0402 deleted file mode 100644 index fd4be5edc9aef..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/df174278898488f5f9baa6d603e16c74d2ba0402 +++ /dev/null @@ -1,66 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - mixin { - name { - name: "Operations" - } - self { - name: "Self" - type { - type_type_literal { - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "Operations" - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/df3c512238132d3e0131469f7e1026499b241ee0 b/explorer/fuzzing/fuzzer_corpus/df3c512238132d3e0131469f7e1026499b241ee0 deleted file mode 100644 index d50dabd0d6643..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/df3c512238132d3e0131469f7e1026499b241ee0 +++ /dev/null @@ -1,50 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - choice { - name { - name: "Ints" - } - alternatives { - name: "None" - signature { - } - } - alternatives { - name: "None" - signature { - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/dfa98dcc49016ec99cb77ab6dc61ea74e7a781f4 b/explorer/fuzzing/fuzzer_corpus/dfa98dcc49016ec99cb77ab6dc61ea74e7a781f4 deleted file mode 100644 index c5c07a37fd1b2..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/dfa98dcc49016ec99cb77ab6dc61ea74e7a781f4 +++ /dev/null @@ -1,78 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - array_type_literal { - element_type { - int_type_literal { - } - } - size { - operator { - op: Neg - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - init { - tuple_literal { - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - index { - object { - identifier { - name: "x" - } - } - offset { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/dfd63d5f0d06c8b1c4342b746666eca91e029e33 b/explorer/fuzzing/fuzzer_corpus/dfd63d5f0d06c8b1c4342b746666eca91e029e33 deleted file mode 100644 index 29233460e0945..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/dfd63d5f0d06c8b1c4342b746666eca91e029e33 +++ /dev/null @@ -1,172 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Point" - } - members { - function { - name { - name: "Origin" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 0 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "GetX" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "GetX" - object { - identifier { - name: "Point" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/e16ea66236bb097cd84a5366b1b0035149a138f8 b/explorer/fuzzing/fuzzer_corpus/e16ea66236bb097cd84a5366b1b0035149a138f8 deleted file mode 100644 index 516f6c55aa180..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/e16ea66236bb097cd84a5366b1b0035149a138f8 +++ /dev/null @@ -1,719 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Maker" - } - members { - function { - name { - name: "Make" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - } - } - } - } - declarations { - constraint { - name { - name: "IndirectMaker" - } - members { - interface_extend { - base { - call { - function { - identifier { - name: "Maker" - } - } - argument { - tuple_literal { - fields { - operator { - op: Ptr - arguments { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - constraint { - name { - name: "MoreIndirectMaker" - } - members { - interface_extend { - base { - call { - function { - identifier { - name: "IndirectMaker" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "PointerFactory" - } - members { - variable { - binding { - name: "p" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - int_type_literal { - } - } - } - } - } - } - } - } - } - members { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - call { - function { - identifier { - name: "Maker" - } - } - argument { - tuple_literal { - fields { - operator { - op: Ptr - arguments { - int_type_literal { - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Make" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - operator { - op: Ptr - arguments { - int_type_literal { - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "p" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "CallIndirect" - } - deduced_parameters { - name: "T" - type { - call { - function { - identifier { - name: "IndirectMaker" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Deref - arguments { - call { - function { - simple_member_access { - field: "Make" - object { - identifier { - name: "x" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "CallMoreIndirect" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "MoreIndirectMaker" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Deref - arguments { - call { - function { - simple_member_access { - field: "Make" - object { - identifier { - name: "x" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 5 - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "f" - type { - expression_pattern { - expression { - identifier { - name: "PointerFactory" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "p" - expression { - operator { - op: AddressOf - arguments { - identifier { - name: "n" - } - } - } - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - operator { - op: Deref - arguments { - call { - function { - compound_member_access { - object { - identifier { - name: "f" - } - } - path { - simple_member_access { - field: "Make" - object { - call { - function { - identifier { - name: "Maker" - } - } - argument { - tuple_literal { - fields { - operator { - op: Ptr - arguments { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - operator { - op: Deref - arguments { - call { - function { - compound_member_access { - object { - identifier { - name: "f" - } - } - path { - simple_member_access { - field: "Make" - object { - call { - function { - identifier { - name: "IndirectMaker" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - operator { - op: Deref - arguments { - call { - function { - compound_member_access { - object { - identifier { - name: "f" - } - } - path { - simple_member_access { - field: "Make" - object { - identifier { - name: "MoreIndirectMaker" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - call { - function { - identifier { - name: "CallIndirect" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "f" - } - } - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - call { - function { - identifier { - name: "CallMoreIndirect" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "f" - } - } - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/e272e11bff55666087eff3499d0284bbe951ec76 b/explorer/fuzzing/fuzzer_corpus/e272e11bff55666087eff3499d0284bbe951ec76 deleted file mode 100644 index 880ff689114da..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/e272e11bff55666087eff3499d0284bbe951ec76 +++ /dev/null @@ -1,105 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Foo" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - call { - function { - identifier { - name: "Foo" - } - } - argument { - tuple_literal { - } - } - } - } - arguments { - int_literal { - value: 0 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/e2d470d716b0c66b140be21c060b3cf401703c31 b/explorer/fuzzing/fuzzer_corpus/e2d470d716b0c66b140be21c060b3cf401703c31 deleted file mode 100644 index 8483273865647..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/e2d470d716b0c66b140be21c060b3cf401703c31 +++ /dev/null @@ -1,323 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Runnable" - } - members { - function { - name { - name: "Run" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - } - } - declarations { - interface { - name { - name: "Walkable" - } - members { - function { - name { - name: "Walk" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - } - } - declarations { - constraint { - name { - name: "Traversible" - } - members { - interface_extend { - base { - identifier { - name: "Runnable" - } - } - } - } - members { - interface_extend { - base { - identifier { - name: "Walkable" - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - int_type_literal { - } - } - interface { - identifier { - name: "Traversible" - } - } - members { - function { - name { - name: "Run" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Mul - arguments { - int_literal { - value: 10 - } - } - arguments { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Walk" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - identifier { - name: "self" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 1 - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - call { - function { - compound_member_access { - object { - identifier { - name: "n" - } - } - path { - simple_member_access { - field: "Run" - object { - identifier { - name: "Runnable" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - arguments { - call { - function { - compound_member_access { - object { - identifier { - name: "n" - } - } - path { - simple_member_access { - field: "Walk" - object { - identifier { - name: "Walkable" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/e2ebf55cbc076357576ce9c6d9901ded3df34748 b/explorer/fuzzing/fuzzer_corpus/e2ebf55cbc076357576ce9c6d9901ded3df34748 deleted file mode 100644 index be29a6d172516..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/e2ebf55cbc076357576ce9c6d9901ded3df34748 +++ /dev/null @@ -1,157 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - namespace { - name { - name: "N" - } - } - } - declarations { - interface { - name { - qualifiers: "N" - name: "Interface" - } - } - } - declarations { - class_declaration { - name { - qualifiers: "N" - name: "A" - } - type_params { - fields { - generic_binding { - name: "T" - type { - identifier { - name: "Interface" - } - } - } - } - } - } - } - declarations { - interface { - name { - qualifiers: "N" - name: "B" - } - } - } - declarations { - constraint { - name { - qualifiers: "N" - name: "C" - } - } - } - declarations { - mixin { - name { - qualifiers: "N" - name: "D" - } - self { - name: "Self" - type { - type_type_literal { - } - } - } - } - } - declarations { - choice { - name { - qualifiers: "N" - name: "E" - } - } - } - declarations { - function { - name { - qualifiers: "N" - name: "F" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "Interface" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "A" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/e3aac38bc36851ee5535a2bfe5bad50c6c8010cc b/explorer/fuzzing/fuzzer_corpus/e3aac38bc36851ee5535a2bfe5bad50c6c8010cc deleted file mode 100644 index a9859e1827433..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/e3aac38bc36851ee5535a2bfe5bad50c6c8010cc +++ /dev/null @@ -1,111 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "F" - } - param_pattern { - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - statements { - match { - expression { - identifier { - name: "n" - } - } - clauses { - pattern { - expression_pattern { - expression { - int_literal { - value: 1 - } - } - } - } - statement { - block { - statements { - return_expression_statement { - is_omitted_expression: true - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/e44c7ad3b9b7415573705116168872fedd852901 b/explorer/fuzzing/fuzzer_corpus/e44c7ad3b9b7415573705116168872fedd852901 deleted file mode 100644 index bf77509a023a9..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/e44c7ad3b9b7415573705116168872fedd852901 +++ /dev/null @@ -1,120 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "C" - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - if_expression { - condition { - operator { - op: Not - arguments { - call { - function { - simple_member_access { - field: "WrapInStruct" - object { - identifier { - name: "C" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - then_expression { - int_type_literal { - } - } - else_expression { - struct_type_literal { - fields { - name: "n" - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "WrapInStruct" - } - param_pattern { - } - return_term { - kind: Expression - type { - bool_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - bool_literal { - value: true - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/e53d906d2cbcf9f5093788833c5d5407a6c880de b/explorer/fuzzing/fuzzer_corpus/e53d906d2cbcf9f5093788833c5d5407a6c880de deleted file mode 100644 index 5599ae5f076b4..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/e53d906d2cbcf9f5093788833c5d5407a6c880de +++ /dev/null @@ -1,253 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - call { - function { - identifier { - name: "ImplicitAs" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - members { - function { - name { - name: "Convert" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - var_pattern { - pattern { - binding_pattern { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - tuple_literal { - fields { - identifier { - name: "a" - } - } - fields { - identifier { - name: "b" - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - identifier { - name: "x" - } - } - arguments { - identifier { - name: "y" - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/e65523d2761eec4d8f5c67e5fcbd9115c6b09f30 b/explorer/fuzzing/fuzzer_corpus/e65523d2761eec4d8f5c67e5fcbd9115c6b09f30 deleted file mode 100644 index de67e6c8a0855..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/e65523d2761eec4d8f5c67e5fcbd9115c6b09f30 +++ /dev/null @@ -1,48 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/e66bff6e3838e7aa55b6061496c25d641d3da0fa b/explorer/fuzzing/fuzzer_corpus/e66bff6e3838e7aa55b6061496c25d641d3da0fa deleted file mode 100644 index 77def6207fed0..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/e66bff6e3838e7aa55b6061496c25d641d3da0fa +++ /dev/null @@ -1,63 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - int_literal { - value: 0 - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/e6df7945d323407e61102a35e1aa2c1306f1b18a b/explorer/fuzzing/fuzzer_corpus/e6df7945d323407e61102a35e1aa2c1306f1b18a deleted file mode 100644 index 38eed25f8f4d6..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/e6df7945d323407e61102a35e1aa2c1306f1b18a +++ /dev/null @@ -1,381 +0,0 @@ -compilation_unit { - package_statement { - package_name: "Foo" - } - is_api: true - declarations { - interface { - name { - name: "A" - } - members { - function { - name { - name: "F" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "o" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "X" - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - identifier { - name: "A" - } - } - members { - function { - name { - name: "F" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "o" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "n" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "n" - object { - identifier { - name: "o" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "A" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "w" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - compound_member_access { - object { - identifier { - name: "v" - } - } - path { - simple_member_access { - field: "F" - object { - identifier { - name: "T" - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "w" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - identifier { - name: "X" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "w" - type { - expression_pattern { - expression { - identifier { - name: "X" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - simple_member_access { - field: "n" - object { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "v" - } - } - fields { - identifier { - name: "w" - } - } - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/e6e7b6a3139f1d90ba1a04738348922221a3cca1 b/explorer/fuzzing/fuzzer_corpus/e6e7b6a3139f1d90ba1a04738348922221a3cca1 deleted file mode 100644 index 45ca787f9d1a8..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/e6e7b6a3139f1d90ba1a04738348922221a3cca1 +++ /dev/null @@ -1,133 +0,0 @@ -compilation_unit { - package_statement { - package_name: "Foo" - } - is_api: true - declarations { - class_declaration { - name { - name: "X" - } - } - } - declarations { - function { - name { - name: "Get" - } - deduced_parameters { - name: "T" - type { - tuple_literal { - } - } - } - param_pattern { - fields { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "X" - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Get" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "x" - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/e7c022b29b97c80fd7a44ffd30e554b1485e1a1b b/explorer/fuzzing/fuzzer_corpus/e7c022b29b97c80fd7a44ffd30e554b1485e1a1b deleted file mode 100644 index ebc1bb5ee16d7..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/e7c022b29b97c80fd7a44ffd30e554b1485e1a1b +++ /dev/null @@ -1,100 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "BadSimpleMemberAccess" - } - deduced_parameters { - name: "T" - type { - type_type_literal { - } - } - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "x" - object { - identifier { - name: "a" - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "BadSimpleMemberAccess" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/e82081de43e68d0d9f165e5cfb5393428d8b0418 b/explorer/fuzzing/fuzzer_corpus/e82081de43e68d0d9f165e5cfb5393428d8b0418 deleted file mode 100644 index 841ebab651307..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/e82081de43e68d0d9f165e5cfb5393428d8b0418 +++ /dev/null @@ -1,76 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - namespace { - name { - name: "A" - } - } - } - declarations { - namespace { - name { - qualifiers: "A" - name: "B" - } - } - } - declarations { - namespace { - name { - qualifiers: "A" - qualifiers: "B" - name: "C" - } - } - } - declarations { - function { - name { - qualifiers: "A" - qualifiers: "B" - qualifiers: "C" - qualifiers: "D" - qualifiers: "E" - name: "F" - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/e856c5a9c99e1334a24dffc16142e13ed7654c1f b/explorer/fuzzing/fuzzer_corpus/e856c5a9c99e1334a24dffc16142e13ed7654c1f deleted file mode 100644 index 8d909538b2812..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/e856c5a9c99e1334a24dffc16142e13ed7654c1f +++ /dev/null @@ -1,304 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "HasAssoc" - } - members { - let { - pattern { - generic_binding { - name: "Assoc" - type { - type_type_literal { - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "X" - } - members { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - where { - base { - identifier { - name: "HasAssoc" - } - } - clauses { - rewrite { - member_name: "Assoc" - replacement { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "H" - } - deduced_parameters { - name: "T" - type { - where { - base { - identifier { - name: "HasAssoc" - } - } - clauses { - rewrite { - member_name: "Assoc" - replacement { - int_type_literal { - } - } - } - } - } - } - } - deduced_parameters { - name: "U" - type { - where { - base { - type_type_literal { - } - } - clauses { - equals { - lhs { - designator { - name: "Self" - } - } - rhs { - int_type_literal { - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "U" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - compound_member_access { - object { - identifier { - name: "T" - } - } - path { - simple_member_access { - field: "Assoc" - object { - where { - base { - identifier { - name: "HasAssoc" - } - } - clauses { - rewrite { - member_name: "Assoc" - replacement { - identifier { - name: "U" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - init { - int_literal { - value: 3 - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "a" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "X" - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "H" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "x" - } - } - fields { - identifier { - name: "y" - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/e9196781615970e8ab047157e4e8a29c1d8a3398 b/explorer/fuzzing/fuzzer_corpus/e9196781615970e8ab047157e4e8a29c1d8a3398 deleted file mode 100644 index 053a1feafc02d..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/e9196781615970e8ab047157e4e8a29c1d8a3398 +++ /dev/null @@ -1,173 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - variable { - binding { - name: "call_count" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - initializer { - int_literal { - value: 0 - } - } - } - } - declarations { - function { - name { - name: "ReturnTrue" - } - param_pattern { - } - return_term { - kind: Expression - type { - bool_type_literal { - } - } - } - body { - statements { - assign { - lhs { - identifier { - name: "call_count" - } - } - rhs { - operator { - op: Add - arguments { - identifier { - name: "call_count" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - bool_literal { - value: true - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "result" - type { - expression_pattern { - expression { - bool_type_literal { - } - } - } - } - } - } - init { - operator { - op: Or - arguments { - call { - function { - identifier { - name: "ReturnTrue" - } - } - argument { - tuple_literal { - } - } - } - } - arguments { - call { - function { - identifier { - name: "ReturnTrue" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - if_expression { - condition { - identifier { - name: "result" - } - } - then_expression { - identifier { - name: "call_count" - } - } - else_expression { - operator { - op: Neg - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/e941969dc816f1f93915ba635bb925abb88f4780 b/explorer/fuzzing/fuzzer_corpus/e941969dc816f1f93915ba635bb925abb88f4780 deleted file mode 100644 index 1ba00d0bfe3a5..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/e941969dc816f1f93915ba635bb925abb88f4780 +++ /dev/null @@ -1,227 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Point" - } - members { - function { - name { - name: "Get" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "V" - } - } - } - } - } - } - } - type_params { - fields { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - fields { - generic_binding { - name: "V" - type { - identifier { - name: "T" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "F" - } - param_pattern { - fields { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - fields { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Get" - object { - identifier { - name: "p" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - fields { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "v" - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/e97c6a39ea33c93381c166c96e33b29658320b75 b/explorer/fuzzing/fuzzer_corpus/e97c6a39ea33c93381c166c96e33b29658320b75 deleted file mode 100644 index 164dff60cda34..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/e97c6a39ea33c93381c166c96e33b29658320b75 +++ /dev/null @@ -1,233 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - namespace { - name { - name: "N" - } - } - } - declarations { - function { - name { - name: "OuterI32" - } - param_pattern { - } - return_term { - kind: Expression - type { - type_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_type_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "One" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - declarations { - function { - name { - qualifiers: "N" - name: "I32" - } - param_pattern { - } - return_term { - kind: Expression - type { - type_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_type_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - qualifiers: "N" - name: "Five" - } - param_pattern { - } - return_term { - kind: Expression - type { - call { - function { - identifier { - name: "I32" - } - } - argument { - tuple_literal { - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 5 - } - } - } - } - } - } - } - declarations { - function { - name { - qualifiers: "N" - name: "Six" - } - param_pattern { - } - return_term { - kind: Expression - type { - call { - function { - identifier { - name: "OuterI32" - } - } - argument { - tuple_literal { - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - call { - function { - identifier { - name: "Five" - } - } - argument { - tuple_literal { - } - } - } - } - arguments { - call { - function { - identifier { - name: "One" - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Six" - object { - identifier { - name: "N" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/ea58e94df8f76630fc2f841df7e3ca830751a901 b/explorer/fuzzing/fuzzer_corpus/ea58e94df8f76630fc2f841df7e3ca830751a901 deleted file mode 100644 index c54aff38f89c5..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/ea58e94df8f76630fc2f841df7e3ca830751a901 +++ /dev/null @@ -1,339 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "HasAssoc" - } - members { - let { - pattern { - generic_binding { - name: "Assoc" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "AssocVal" - type { - int_type_literal { - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "X" - } - members { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - where { - base { - identifier { - name: "HasAssoc" - } - } - clauses { - rewrite { - member_name: "Assoc" - replacement { - int_type_literal { - } - } - } - } - clauses { - rewrite { - member_name: "AssocVal" - replacement { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "T" - type { - where { - base { - identifier { - name: "HasAssoc" - } - } - clauses { - rewrite { - member_name: "Assoc" - replacement { - int_type_literal { - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - simple_member_access { - field: "Assoc" - object { - identifier { - name: "T" - } - } - } - } - } - } - } - } - init { - int_literal { - value: 1 - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "a" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "G" - } - deduced_parameters { - name: "T" - type { - where { - base { - identifier { - name: "HasAssoc" - } - } - clauses { - rewrite { - member_name: "AssocVal" - replacement { - int_literal { - value: 2 - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "AssocVal" - object { - identifier { - name: "x" - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "X" - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - operator { - op: Mul - arguments { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "x" - } - } - } - } - } - } - arguments { - int_literal { - value: 10 - } - } - } - } - arguments { - call { - function { - identifier { - name: "G" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "x" - } - } - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/ea7caa99b1e4c98d3fdb9b2df61548bffe7127c1 b/explorer/fuzzing/fuzzer_corpus/ea7caa99b1e4c98d3fdb9b2df61548bffe7127c1 deleted file mode 100644 index f12e3d2def48f..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/ea7caa99b1e4c98d3fdb9b2df61548bffe7127c1 +++ /dev/null @@ -1,269 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - destructor { - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "DESTRUCTOR A {0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "i" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - while_statement { - condition { - operator { - op: Less - arguments { - identifier { - name: "i" - } - } - arguments { - int_literal { - value: 2 - } - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 3 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "i" - } - } - rhs { - operator { - op: Add - arguments { - identifier { - name: "i" - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - op: Plain - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/eaf1655f413b07c8a2e853ae104947b25ef82f10 b/explorer/fuzzing/fuzzer_corpus/eaf1655f413b07c8a2e853ae104947b25ef82f10 deleted file mode 100644 index db2ccb7ef50b1..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/eaf1655f413b07c8a2e853ae104947b25ef82f10 +++ /dev/null @@ -1,405 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "C" - } - members { - variable { - binding { - name: "value" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - function { - name { - name: "Foo" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "value" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "D" - } - members { - variable { - binding { - name: "value" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - function { - name { - name: "Foo" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "value" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - identifier { - name: "C" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "value" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "c.Foo(): {0}" - } - } - fields { - call { - function { - simple_member_access { - field: "Foo" - object { - identifier { - name: "c" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "d" - type { - expression_pattern { - expression { - identifier { - name: "D" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "value" - expression { - int_literal { - value: 2 - } - } - } - fields { - name: "base" - expression { - struct_literal { - fields { - name: "value" - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "d.Foo(): {0}" - } - } - fields { - call { - function { - simple_member_access { - field: "Foo" - object { - identifier { - name: "d" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "cp" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "C" - } - } - } - } - } - } - } - } - init { - operator { - op: AddressOf - arguments { - identifier { - name: "d" - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "(*cp).Foo(): {0}" - } - } - fields { - call { - function { - simple_member_access { - field: "Foo" - object { - operator { - op: Deref - arguments { - identifier { - name: "cp" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/eb743ff30c319bedea7cf7a9f9918a24f8c17f1d b/explorer/fuzzing/fuzzer_corpus/eb743ff30c319bedea7cf7a9f9918a24f8c17f1d deleted file mode 100644 index eda5a52ba141d..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/eb743ff30c319bedea7cf7a9f9918a24f8c17f1d +++ /dev/null @@ -1,182 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - call { - function { - identifier { - name: "ImplicitAs" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "A" - } - } - } - } - } - } - members { - function { - name { - name: "Convert" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "A" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "n" - expression { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 0 - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "a" - } - } - rhs { - int_literal { - value: 1 - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - simple_member_access { - field: "n" - object { - identifier { - name: "a" - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/eb89ccf2783e67c7e981beca75ba8cea4e5d0af5 b/explorer/fuzzing/fuzzer_corpus/eb89ccf2783e67c7e981beca75ba8cea4e5d0af5 deleted file mode 100644 index 752973f85645a..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/eb89ccf2783e67c7e981beca75ba8cea4e5d0af5 +++ /dev/null @@ -1,89 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - match { - expression { - identifier { - name: "x" - } - } - clauses { - pattern { - expression_pattern { - expression { - int_literal { - value: 1 - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/ec5312210b747b89c9dee82b8cb4e97ffd464270 b/explorer/fuzzing/fuzzer_corpus/ec5312210b747b89c9dee82b8cb4e97ffd464270 deleted file mode 100644 index d817dd85054d4..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/ec5312210b747b89c9dee82b8cb4e97ffd464270 +++ /dev/null @@ -1,660 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Vector" - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - identifier { - name: "Vector" - } - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 0 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Mul - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "v" - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Mul - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "v" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "AddAndScaleGeneric" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "Vector" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "s" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Scale" - object { - call { - function { - simple_member_access { - field: "Add" - object { - identifier { - name: "a" - } - } - } - } - argument { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "Zero" - object { - identifier { - name: "T" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "s" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 2 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - call { - function { - identifier { - name: "AddAndScaleGeneric" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "a" - } - } - fields { - int_literal { - value: 5 - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "p" - } - } - } - } - arguments { - int_literal { - value: 10 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/ec5d47c039afde5b6a6fd3b293959ea2d25d4192 b/explorer/fuzzing/fuzzer_corpus/ec5d47c039afde5b6a6fd3b293959ea2d25d4192 deleted file mode 100644 index 3a25ae5f06256..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/ec5d47c039afde5b6a6fd3b293959ea2d25d4192 +++ /dev/null @@ -1,405 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - impl { - kind: ExternalImpl - impl_type { - struct_type_literal { - fields { - name: "x" - expression { - int_type_literal { - } - } - } - fields { - name: "y" - expression { - int_type_literal { - } - } - } - } - } - interface { - call { - function { - identifier { - name: "EqWith" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "Self" - } - } - } - } - } - } - members { - function { - name { - name: "Equal" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "other" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - bool_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: And - arguments { - operator { - op: Eq - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "other" - } - } - } - } - } - } - arguments { - operator { - op: Eq - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "other" - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "NotEqual" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "other" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - bool_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Or - arguments { - operator { - op: NotEq - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "other" - } - } - } - } - } - } - arguments { - operator { - op: NotEq - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "other" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "t1" - type { - expression_pattern { - expression { - struct_type_literal { - fields { - name: "x" - expression { - int_type_literal { - } - } - } - fields { - name: "y" - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 5 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "t2" - type { - expression_pattern { - expression { - struct_type_literal { - fields { - name: "x" - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 5 - } - } - } - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - identifier { - name: "t1" - } - } - arguments { - identifier { - name: "t2" - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - else_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/ecdf063b10b4bdc553fef70d25dea4017bd7e895 b/explorer/fuzzing/fuzzer_corpus/ecdf063b10b4bdc553fef70d25dea4017bd7e895 deleted file mode 100644 index da4e7b357779e..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/ecdf063b10b4bdc553fef70d25dea4017bd7e895 +++ /dev/null @@ -1,181 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "HasTypeAndValue" - } - members { - let { - pattern { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - } - } - members { - let { - pattern { - generic_binding { - name: "V" - type { - identifier { - name: "T" - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "F" - } - param_pattern { - fields { - generic_binding { - name: "X" - type { - where { - base { - identifier { - name: "HasTypeAndValue" - } - } - clauses { - rewrite { - member_name: "T" - replacement { - int_type_literal { - } - } - } - } - clauses { - rewrite { - member_name: "V" - replacement { - int_literal { - value: 5 - } - } - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "V" - object { - identifier { - name: "X" - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - where { - base { - identifier { - name: "HasTypeAndValue" - } - } - clauses { - rewrite { - member_name: "T" - replacement { - int_type_literal { - } - } - } - } - clauses { - rewrite { - member_name: "V" - replacement { - int_literal { - value: 5 - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/ed5e0b7088b06b6fe1b48ecdfb94d0538e3bd0cb b/explorer/fuzzing/fuzzer_corpus/ed5e0b7088b06b6fe1b48ecdfb94d0538e3bd0cb deleted file mode 100644 index c389a0c04fa6c..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/ed5e0b7088b06b6fe1b48ecdfb94d0538e3bd0cb +++ /dev/null @@ -1,111 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - int_type_literal { - } - } - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "New" - object { - identifier { - name: "heap" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 5 - } - } - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "Delete" - object { - identifier { - name: "heap" - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "p" - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - operator { - op: Deref - arguments { - identifier { - name: "p" - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/ed78839715d8d84e515792b114f227bc6d46029f b/explorer/fuzzing/fuzzer_corpus/ed78839715d8d84e515792b114f227bc6d46029f deleted file mode 100644 index e3b200a14858f..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/ed78839715d8d84e515792b114f227bc6d46029f +++ /dev/null @@ -1,246 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Iface" - } - members { - let { - pattern { - generic_binding { - name: "N" - type { - int_type_literal { - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "PickType" - } - param_pattern { - fields { - binding_pattern { - name: "N" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - type_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_type_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "T" - type { - where { - base { - identifier { - name: "Iface" - } - } - clauses { - equals { - lhs { - designator { - name: "N" - } - } - rhs { - int_literal { - value: 5 - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "PickType" - } - } - argument { - tuple_literal { - fields { - simple_member_access { - field: "N" - object { - identifier { - name: "T" - } - } - } - } - } - } - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - where { - base { - identifier { - name: "Iface" - } - } - clauses { - equals { - lhs { - designator { - name: "N" - } - } - rhs { - int_literal { - value: 5 - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/ee427228e0af7ff6d3f2934ea7b305d1db78add0 b/explorer/fuzzing/fuzzer_corpus/ee427228e0af7ff6d3f2934ea7b305d1db78add0 deleted file mode 100644 index 9053d3b721755..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/ee427228e0af7ff6d3f2934ea7b305d1db78add0 +++ /dev/null @@ -1,73 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - initializer { - identifier { - name: "y" - } - } - } - } - declarations { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - initializer { - int_literal { - value: 0 - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/eefa6e59ce3e48fb9ae9b863dc1bc41a6f387802 b/explorer/fuzzing/fuzzer_corpus/eefa6e59ce3e48fb9ae9b863dc1bc41a6f387802 deleted file mode 100644 index e1ac3023b6e40..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/eefa6e59ce3e48fb9ae9b863dc1bc41a6f387802 +++ /dev/null @@ -1,155 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "t" - type { - tuple_pattern { - fields { - auto_pattern { - } - } - fields { - expression_pattern { - expression { - tuple_literal { - fields { - int_type_literal { - } - } - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - tuple_literal { - fields { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 2 - } - } - } - } - fields { - tuple_literal { - fields { - int_literal { - value: 3 - } - } - fields { - int_literal { - value: 4 - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - operator { - op: Add - arguments { - index { - object { - index { - object { - identifier { - name: "t" - } - } - offset { - int_literal { - value: 0 - } - } - } - } - offset { - int_literal { - value: 0 - } - } - } - } - arguments { - index { - object { - index { - object { - identifier { - name: "t" - } - } - offset { - int_literal { - value: 1 - } - } - } - } - offset { - int_literal { - value: 1 - } - } - } - } - } - } - arguments { - int_literal { - value: 5 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/ef16a6363d8fea90465cad2ae210fe5d6e60bc04 b/explorer/fuzzing/fuzzer_corpus/ef16a6363d8fea90465cad2ae210fe5d6e60bc04 deleted file mode 100644 index 45250d7c814e4..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/ef16a6363d8fea90465cad2ae210fe5d6e60bc04 +++ /dev/null @@ -1,68 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "T" - } - param_pattern { - } - return_term { - kind: Expression - type { - call { - function { - identifier { - name: "T" - } - } - argument { - tuple_literal { - } - } - } - } - } - body { - statements { - return_expression_statement { - expression { - int_type_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/ef8c4aac22a87b29cf3c77d951dcdc7be67d9f40 b/explorer/fuzzing/fuzzer_corpus/ef8c4aac22a87b29cf3c77d951dcdc7be67d9f40 deleted file mode 100644 index 785ddecfb8597..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/ef8c4aac22a87b29cf3c77d951dcdc7be67d9f40 +++ /dev/null @@ -1,88 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "s" - type { - expression_pattern { - expression { - string_type_literal { - } - } - } - } - } - } - init { - string_literal { - value: "A \"block\" \"\"string\"\" literal\n with file type indicator.\n" - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - identifier { - name: "s" - } - } - arguments { - string_literal { - value: "A \"block\" \"\"string\"\" literal\n with file type indicator.\n" - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - else_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/efa240ed14717324b4e69b96dd37978d9205e4b5 b/explorer/fuzzing/fuzzer_corpus/efa240ed14717324b4e69b96dd37978d9205e4b5 deleted file mode 100644 index 239b456458306..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/efa240ed14717324b4e69b96dd37978d9205e4b5 +++ /dev/null @@ -1,248 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Base" - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Omitted - } - } - } - } - } - declarations { - interface { - name { - name: "Extension" - } - members { - interface_extend { - base { - identifier { - name: "Base" - } - } - } - } - } - } - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "T" - type { - where { - base { - type_type_literal { - } - } - clauses { - impls { - type { - designator { - name: "Self" - } - } - constraint { - identifier { - name: "Extension" - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - statements { - expression_statement { - expression { - call { - function { - compound_member_access { - object { - identifier { - name: "x" - } - } - path { - simple_member_access { - field: "F" - object { - identifier { - name: "Extension" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: InternalImpl - impl_type { - int_type_literal { - } - } - interface { - identifier { - name: "Extension" - } - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "i32.F" - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "n" - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} - diff --git a/explorer/fuzzing/fuzzer_corpus/f0301956e0abeecc69b9af9697e4edf94513011f b/explorer/fuzzing/fuzzer_corpus/f0301956e0abeecc69b9af9697e4edf94513011f deleted file mode 100644 index f6fc8bc41b81b..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/f0301956e0abeecc69b9af9697e4edf94513011f +++ /dev/null @@ -1,135 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Id" - } - param_pattern { - fields { - binding_pattern { - name: "t" - type { - expression_pattern { - expression { - type_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Auto - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "t" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "f" - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Id" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "f" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/f0cefd1478c7fcbc69318e8afb126d12afbed53d b/explorer/fuzzing/fuzzer_corpus/f0cefd1478c7fcbc69318e8afb126d12afbed53d deleted file mode 100644 index 33e089677b3aa..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/f0cefd1478c7fcbc69318e8afb126d12afbed53d +++ /dev/null @@ -1,116 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "CompareStr" - } - param_pattern { - fields { - binding_pattern { - name: "s" - type { - expression_pattern { - expression { - string_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - identifier { - name: "s" - } - } - arguments { - string_literal { - value: "str" - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "CompareStr" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "str" - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/f13ff8011c90eaa1acd4acda1f60aab67e8a0cb3 b/explorer/fuzzing/fuzzer_corpus/f13ff8011c90eaa1acd4acda1f60aab67e8a0cb3 deleted file mode 100644 index 6c29ed8de432a..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/f13ff8011c90eaa1acd4acda1f60aab67e8a0cb3 +++ /dev/null @@ -1,405 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - mixin { - name { - name: "Operations" - } - members { - function { - name { - name: "F" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - self { - name: "Self" - type { - type_type_literal { - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point" - } - members { - function { - name { - name: "Origin" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 0 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - mix { - mixin { - identifier { - name: "Operations" - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Complex" - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Complex" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "r" - expression { - int_literal { - value: 0 - } - } - } - fields { - name: "i" - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "r" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - members { - variable { - binding { - name: "i" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Origin" - object { - identifier { - name: "Point" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - identifier { - name: "Complex" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "r" - expression { - int_literal { - value: 42 - } - } - } - fields { - name: "i" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "p1" - type { - expression_pattern { - expression { - identifier { - name: "Point" - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "F" - object { - identifier { - name: "p" - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "c" - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "p1" - } - } - } - } - arguments { - int_literal { - value: 42 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/f1a704a2a6b6f6e9c6c0443beab1351d38140d29 b/explorer/fuzzing/fuzzer_corpus/f1a704a2a6b6f6e9c6c0443beab1351d38140d29 deleted file mode 100644 index 71e9f661ce553..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/f1a704a2a6b6f6e9c6c0443beab1351d38140d29 +++ /dev/null @@ -1,126 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "t" - type { - auto_pattern { - } - } - } - } - init { - int_literal { - value: 5 - } - } - is_returned: false - } - } - statements { - match { - expression { - identifier { - name: "t" - } - } - clauses { - pattern { - expression_pattern { - expression { - int_literal { - value: 3 - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - operator { - op: Neg - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - clauses { - pattern { - expression_pattern { - expression { - int_literal { - value: 4 - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - operator { - op: Neg - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - clauses { - statement { - block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - is_default: true - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/f22caf1f5f9e7b1be271192804fcff103b6df437 b/explorer/fuzzing/fuzzer_corpus/f22caf1f5f9e7b1be271192804fcff103b6df437 deleted file mode 100644 index 8fd1ee46b8583..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/f22caf1f5f9e7b1be271192804fcff103b6df437 +++ /dev/null @@ -1,355 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "A" - } - } - interface { - where { - base { - call { - function { - identifier { - name: "BitXorWith" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - clauses { - rewrite { - member_name: "Result" - replacement { - identifier { - name: "A" - } - } - } - } - } - } - members { - function { - name { - name: "Op" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "rhs" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "A" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "n" - expression { - operator { - op: BitwiseXor - arguments { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "rhs" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 5 - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "a" - } - } - rhs { - operator { - op: BitwiseXor - arguments { - identifier { - name: "a" - } - } - arguments { - int_literal { - value: 3 - } - } - } - } - op: Plain - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "a" - } - } - } - } - } - } - } - } - } - } - statements { - assign { - lhs { - identifier { - name: "a" - } - } - rhs { - int_literal { - value: 6 - } - } - op: Xor - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "a" - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "n" - object { - operator { - op: BitwiseXor - arguments { - identifier { - name: "a" - } - } - arguments { - operator { - op: Neg - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/f291191731f808d4a0af70817f2790fd73a856d3 b/explorer/fuzzing/fuzzer_corpus/f291191731f808d4a0af70817f2790fd73a856d3 deleted file mode 100644 index 7860ab9fc7018..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/f291191731f808d4a0af70817f2790fd73a856d3 +++ /dev/null @@ -1,139 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - mixin { - name { - name: "M" - } - members { - function { - name { - name: "F" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - self { - name: "Self" - type { - type_type_literal { - } - } - } - } - } - declarations { - class_declaration { - name { - name: "C" - } - members { - variable { - binding { - name: "F" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - initializer { - int_literal { - value: 0 - } - } - } - } - members { - mix { - mixin { - identifier { - name: "M" - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/f2adb5ffa5089a7f0e1aedc0c86ca5e5dc599bd9 b/explorer/fuzzing/fuzzer_corpus/f2adb5ffa5089a7f0e1aedc0c86ca5e5dc599bd9 deleted file mode 100644 index b45c3a198794c..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/f2adb5ffa5089a7f0e1aedc0c86ca5e5dc599bd9 +++ /dev/null @@ -1,361 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - identifier { - name: "A" - } - } - interface { - identifier { - name: "Add" - } - } - members { - function { - name { - name: "Op" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "rhs" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "A" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "n" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "n" - object { - identifier { - name: "rhs" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 5 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 7 - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - identifier { - name: "a" - } - } - rhs { - operator { - op: Add - arguments { - identifier { - name: "a" - } - } - arguments { - identifier { - name: "b" - } - } - } - } - op: Plain - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "a" - } - } - } - } - } - } - } - } - } - } - statements { - assign { - lhs { - identifier { - name: "a" - } - } - rhs { - identifier { - name: "b" - } - } - op: Add - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "a" - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "n" - object { - operator { - op: Add - arguments { - identifier { - name: "a" - } - } - arguments { - identifier { - name: "b" - } - } - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/f3454063d1455382b7560e4919d46ff7d4e8edc1 b/explorer/fuzzing/fuzzer_corpus/f3454063d1455382b7560e4919d46ff7d4e8edc1 deleted file mode 100644 index 639411effecdb..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/f3454063d1455382b7560e4919d46ff7d4e8edc1 +++ /dev/null @@ -1,182 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "lhs" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 3 - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "rhs" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 2 - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Interface: {0}" - } - } - fields { - call { - function { - compound_member_access { - object { - identifier { - name: "lhs" - } - } - path { - simple_member_access { - field: "Op" - object { - call { - function { - identifier { - name: "MulWith" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "rhs" - } - } - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Op: {0}" - } - } - fields { - operator { - op: Mul - arguments { - identifier { - name: "lhs" - } - } - arguments { - identifier { - name: "rhs" - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/f36e26a77634cca16475bd639220ed9f3c10bbbd b/explorer/fuzzing/fuzzer_corpus/f36e26a77634cca16475bd639220ed9f3c10bbbd deleted file mode 100644 index 1b9096469e43a..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/f36e26a77634cca16475bd639220ed9f3c10bbbd +++ /dev/null @@ -1,158 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 1 - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "t2" - type { - expression_pattern { - expression { - tuple_literal { - fields { - int_type_literal { - } - } - fields { - int_type_literal { - } - } - } - } - } - } - } - } - init { - tuple_literal { - fields { - int_literal { - value: 5 - } - } - fields { - int_literal { - value: 2 - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - index { - object { - identifier { - name: "t2" - } - } - offset { - int_literal { - value: 0 - } - } - } - } - rhs { - int_literal { - value: 3 - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - operator { - op: Sub - arguments { - index { - object { - identifier { - name: "t2" - } - } - offset { - int_literal { - value: 0 - } - } - } - } - arguments { - index { - object { - identifier { - name: "t2" - } - } - offset { - int_literal { - value: 1 - } - } - } - } - } - } - arguments { - identifier { - name: "x" - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/f58bb0ee703a6ef927e40ef61ae26be39faf1110 b/explorer/fuzzing/fuzzer_corpus/f58bb0ee703a6ef927e40ef61ae26be39faf1110 deleted file mode 100644 index 3d2e24a8bb2bc..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/f58bb0ee703a6ef927e40ef61ae26be39faf1110 +++ /dev/null @@ -1,86 +0,0 @@ -compilation_unit { - package_statement { - package_name: "Foo" - } - is_api: true - declarations { - function { - name { - name: "F" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - compound_member_access { - object { - int_literal { - value: 42 - } - } - path { - identifier { - name: "F" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/f69e3144cbc99fb1dc4d1c8f7a1547679ffeb93a b/explorer/fuzzing/fuzzer_corpus/f69e3144cbc99fb1dc4d1c8f7a1547679ffeb93a deleted file mode 100644 index 358f64583ed63..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/f69e3144cbc99fb1dc4d1c8f7a1547679ffeb93a +++ /dev/null @@ -1,479 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "A" - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - } - } - declarations { - interface { - name { - name: "B" - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - members { - function { - name { - name: "G" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - } - } - declarations { - interface { - name { - name: "C" - } - members { - function { - name { - name: "H" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - int_type_literal { - } - } - interface { - identifier { - name: "A" - } - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - int_type_literal { - } - } - interface { - where { - base { - operator { - op: BitwiseAnd - arguments { - identifier { - name: "B" - } - } - arguments { - call { - function { - identifier { - name: "C" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - clauses { - impls { - type { - designator { - name: "Self" - } - } - constraint { - identifier { - name: "A" - } - } - } - } - } - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 2 - } - } - } - } - } - } - } - members { - function { - name { - name: "G" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 3 - } - } - } - } - } - } - } - members { - function { - name { - name: "H" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 4 - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - operator { - op: Add - arguments { - operator { - op: Add - arguments { - operator { - op: Mul - arguments { - call { - function { - compound_member_access { - object { - identifier { - name: "n" - } - } - path { - simple_member_access { - field: "F" - object { - identifier { - name: "A" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - arguments { - int_literal { - value: 1000 - } - } - } - } - arguments { - operator { - op: Mul - arguments { - call { - function { - compound_member_access { - object { - identifier { - name: "n" - } - } - path { - simple_member_access { - field: "F" - object { - identifier { - name: "B" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - arguments { - int_literal { - value: 100 - } - } - } - } - } - } - arguments { - operator { - op: Mul - arguments { - call { - function { - compound_member_access { - object { - identifier { - name: "n" - } - } - path { - simple_member_access { - field: "G" - object { - identifier { - name: "B" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - arguments { - int_literal { - value: 10 - } - } - } - } - } - } - arguments { - call { - function { - compound_member_access { - object { - identifier { - name: "n" - } - } - path { - simple_member_access { - field: "H" - object { - call { - function { - identifier { - name: "C" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - } -} - diff --git a/explorer/fuzzing/fuzzer_corpus/f70134eee684858470cf431f3a004f847726b93d b/explorer/fuzzing/fuzzer_corpus/f70134eee684858470cf431f3a004f847726b93d deleted file mode 100644 index 89697f008b575..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/f70134eee684858470cf431f3a004f847726b93d +++ /dev/null @@ -1,371 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - variable { - binding { - name: "a" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "B" - } - members { - variable { - binding { - name: "b" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "C" - } - members { - variable { - binding { - name: "c" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - identifier { - name: "C" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "base" - expression { - struct_literal { - fields { - name: "base" - expression { - struct_literal { - fields { - name: "a" - expression { - int_literal { - value: 1 - } - } - } - } - } - } - fields { - name: "b" - expression { - int_literal { - value: 2 - } - } - } - } - } - } - fields { - name: "c" - expression { - int_literal { - value: 3 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "pa" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "A" - } - } - } - } - } - } - } - } - fields { - binding_pattern { - name: "pb" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "B" - } - } - } - } - } - } - } - } - fields { - binding_pattern { - name: "pc" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "C" - } - } - } - } - } - } - } - } - } - } - init { - tuple_literal { - fields { - operator { - op: AddressOf - arguments { - identifier { - name: "c" - } - } - } - } - fields { - operator { - op: AddressOf - arguments { - identifier { - name: "c" - } - } - } - } - fields { - operator { - op: AddressOf - arguments { - identifier { - name: "c" - } - } - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "a" - object { - operator { - op: Deref - arguments { - identifier { - name: "pa" - } - } - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "b" - object { - operator { - op: Deref - arguments { - identifier { - name: "pb" - } - } - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "{0}" - } - } - fields { - simple_member_access { - field: "c" - object { - operator { - op: Deref - arguments { - identifier { - name: "pc" - } - } - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/f814186f2592800967681e54f9d8e5da4eda4a98 b/explorer/fuzzing/fuzzer_corpus/f814186f2592800967681e54f9d8e5da4eda4a98 deleted file mode 100644 index d849372391bcf..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/f814186f2592800967681e54f9d8e5da4eda4a98 +++ /dev/null @@ -1,230 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "Point" - } - members { - function { - name { - name: "Create" - } - param_pattern { - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "y" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Point" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - identifier { - name: "x" - } - } - } - fields { - name: "y" - expression { - identifier { - name: "y" - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - type_params { - fields { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "Create" - object { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - fields { - int_literal { - value: 1 - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - simple_member_access { - field: "x" - object { - identifier { - name: "p" - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/f8cec197859ce23e82507f1650cf7baadc414472 b/explorer/fuzzing/fuzzer_corpus/f8cec197859ce23e82507f1650cf7baadc414472 deleted file mode 100644 index 6967c9efcf637..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/f8cec197859ce23e82507f1650cf7baadc414472 +++ /dev/null @@ -1,127 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "t" - type { - auto_pattern { - } - } - } - } - init { - tuple_literal { - fields { - int_literal { - value: 5 - } - } - fields { - int_literal { - value: 2 - } - } - } - } - is_returned: false - } - } - statements { - match { - expression { - identifier { - name: "t" - } - } - clauses { - pattern { - tuple_pattern { - fields { - binding_pattern { - name: "a" - type { - auto_pattern { - } - } - } - } - fields { - binding_pattern { - name: "b" - type { - auto_pattern { - } - } - } - } - } - } - statement { - block { - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - operator { - op: Add - arguments { - identifier { - name: "a" - } - } - arguments { - identifier { - name: "b" - } - } - } - } - arguments { - int_literal { - value: 7 - } - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/f8ecddd975e9df85304ed892fc3467bf3450d1a0 b/explorer/fuzzing/fuzzer_corpus/f8ecddd975e9df85304ed892fc3467bf3450d1a0 deleted file mode 100644 index cc715bbc2d1a0..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/f8ecddd975e9df85304ed892fc3467bf3450d1a0 +++ /dev/null @@ -1,404 +0,0 @@ -compilation_unit { - package_statement { - package_name: "Foo" - } - is_api: true - declarations { - interface { - name { - name: "A" - } - members { - function { - name { - name: "F" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - } - } - declarations { - interface { - name { - name: "B" - } - members { - function { - name { - name: "G" - } - param_pattern { - fields { - binding_pattern { - name: "o" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - } - } - declarations { - alias { - name { - name: "C" - } - target { - operator { - op: BitwiseAnd - arguments { - identifier { - name: "A" - } - } - arguments { - identifier { - name: "B" - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "X" - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - identifier { - name: "A" - } - } - members { - function { - name { - name: "F" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - operator { - op: Mul - arguments { - int_literal { - value: 10 - } - } - arguments { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - identifier { - name: "B" - } - } - members { - function { - name { - name: "G" - } - param_pattern { - fields { - binding_pattern { - name: "o" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "n" - object { - identifier { - name: "o" - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - identifier { - name: "X" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "w" - type { - expression_pattern { - expression { - identifier { - name: "X" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Add - arguments { - call { - function { - compound_member_access { - object { - identifier { - name: "v" - } - } - path { - simple_member_access { - field: "F" - object { - identifier { - name: "C" - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - arguments { - call { - function { - compound_member_access { - object { - identifier { - name: "X" - } - } - path { - simple_member_access { - field: "G" - object { - identifier { - name: "C" - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "w" - } - } - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/f8f7da248667d0f6322e9fae98af78f87b071598 b/explorer/fuzzing/fuzzer_corpus/f8f7da248667d0f6322e9fae98af78f87b071598 deleted file mode 100644 index 1359b45efea07..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/f8f7da248667d0f6322e9fae98af78f87b071598 +++ /dev/null @@ -1,272 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "C" - } - members { - variable { - binding { - name: "a" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "D" - } - } - } - declarations { - function { - name { - name: "Foo" - } - param_pattern { - fields { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "C" - } - } - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - simple_member_access { - field: "a" - object { - operator { - op: Deref - arguments { - identifier { - name: "c" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "d" - type { - expression_pattern { - expression { - identifier { - name: "D" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "base" - expression { - struct_literal { - fields { - name: "a" - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "c" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - identifier { - name: "C" - } - } - } - } - } - } - } - } - init { - operator { - op: AddressOf - arguments { - identifier { - name: "d" - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "(*c).a: {0}" - } - } - fields { - simple_member_access { - field: "a" - object { - operator { - op: Deref - arguments { - identifier { - name: "c" - } - } - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "Foo(&d): {0}" - } - } - fields { - call { - function { - identifier { - name: "Foo" - } - } - argument { - tuple_literal { - fields { - operator { - op: AddressOf - arguments { - identifier { - name: "d" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/f9ad0401636c2e754eeeaee44af4b89a17dd97c8 b/explorer/fuzzing/fuzzer_corpus/f9ad0401636c2e754eeeaee44af4b89a17dd97c8 deleted file mode 100644 index ee13883a395af..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/f9ad0401636c2e754eeeaee44af4b89a17dd97c8 +++ /dev/null @@ -1,145 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "t1" - type { - expression_pattern { - expression { - tuple_literal { - fields { - int_type_literal { - } - } - fields { - int_type_literal { - } - } - } - } - } - } - } - } - init { - tuple_literal { - fields { - int_literal { - value: 5 - } - } - fields { - int_literal { - value: 2 - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "t2" - type { - expression_pattern { - expression { - tuple_literal { - fields { - int_type_literal { - } - } - fields { - int_type_literal { - } - } - } - } - } - } - } - } - init { - tuple_literal { - fields { - int_literal { - value: 5 - } - } - fields { - int_literal { - value: 4 - } - } - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - identifier { - name: "t1" - } - } - arguments { - identifier { - name: "t2" - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - else_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/faea007214fb062f0b65f0b222cefaf2e56c6af5 b/explorer/fuzzing/fuzzer_corpus/faea007214fb062f0b65f0b222cefaf2e56c6af5 deleted file mode 100644 index 97caa57f34a06..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/faea007214fb062f0b65f0b222cefaf2e56c6af5 +++ /dev/null @@ -1,709 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Vector" - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point" - } - members { - variable { - binding { - name: "x" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - members { - variable { - binding { - name: "y" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - } - type_params { - fields { - generic_binding { - name: "T" - type { - type_type_literal { - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - interface { - identifier { - name: "Vector" - } - } - members { - function { - name { - name: "Zero" - } - param_pattern { - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 0 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Add" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "b" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Add - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "b" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - function { - name { - name: "Scale" - } - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "Self" - } - } - } - body { - statements { - return_expression_statement { - expression { - struct_literal { - fields { - name: "x" - expression { - operator { - op: Mul - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "v" - } - } - } - } - } - fields { - name: "y" - expression { - operator { - op: Mul - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "self" - } - } - } - } - arguments { - identifier { - name: "v" - } - } - } - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "AddAndScaleGeneric" - } - deduced_parameters { - name: "T" - type { - identifier { - name: "Vector" - } - } - } - param_pattern { - fields { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "T" - } - } - } - } - } - } - fields { - binding_pattern { - name: "s" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - identifier { - name: "T" - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - simple_member_access { - field: "Scale" - object { - call { - function { - simple_member_access { - field: "Add" - object { - identifier { - name: "a" - } - } - } - } - argument { - tuple_literal { - fields { - call { - function { - simple_member_access { - field: "Zero" - object { - identifier { - name: "T" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "s" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 2 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 1 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - } - } - init { - call { - function { - identifier { - name: "AddAndScaleGeneric" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "a" - } - } - fields { - int_literal { - value: 5 - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "p" - } - } - } - } - arguments { - int_literal { - value: 10 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/fbcb1c13d98039a3f2e72bd269829405a5b5ebd2 b/explorer/fuzzing/fuzzer_corpus/fbcb1c13d98039a3f2e72bd269829405a5b5ebd2 deleted file mode 100644 index 5cac352aff3a7..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/fbcb1c13d98039a3f2e72bd269829405a5b5ebd2 +++ /dev/null @@ -1,104 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "ReturnSecond" - } - param_pattern { - fields { - binding_pattern { - name: "_" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - fields { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - identifier { - name: "x" - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - call { - function { - identifier { - name: "ReturnSecond" - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 1 - } - } - fields { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/fc24f01a1850c3f6c052da65c37eb3121ce3f9b1 b/explorer/fuzzing/fuzzer_corpus/fc24f01a1850c3f6c052da65c37eb3121ce3f9b1 deleted file mode 100644 index ac75082ae4c40..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/fc24f01a1850c3f6c052da65c37eb3121ce3f9b1 +++ /dev/null @@ -1,135 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "t2" - type { - expression_pattern { - expression { - struct_type_literal { - fields { - name: "x" - expression { - int_type_literal { - } - } - } - fields { - name: "y" - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - int_literal { - value: 2 - } - } - } - fields { - name: "y" - expression { - int_literal { - value: 5 - } - } - } - } - } - is_returned: false - } - } - statements { - assign { - lhs { - simple_member_access { - field: "y" - object { - identifier { - name: "t2" - } - } - } - } - rhs { - int_literal { - value: 3 - } - } - op: Plain - } - } - statements { - return_expression_statement { - expression { - operator { - op: Sub - arguments { - operator { - op: Sub - arguments { - simple_member_access { - field: "y" - object { - identifier { - name: "t2" - } - } - } - } - arguments { - simple_member_access { - field: "x" - object { - identifier { - name: "t2" - } - } - } - } - } - } - arguments { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/fd4bb5bb72e1b859a74ec8b7bf80141c6bfa162e b/explorer/fuzzing/fuzzer_corpus/fd4bb5bb72e1b859a74ec8b7bf80141c6bfa162e deleted file mode 100644 index e3a91f1115260..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/fd4bb5bb72e1b859a74ec8b7bf80141c6bfa162e +++ /dev/null @@ -1,134 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - operator { - op: Ptr - arguments { - int_type_literal { - } - } - } - } - } - } - } - } - init { - call { - function { - simple_member_access { - field: "New" - object { - identifier { - name: "heap" - } - } - } - } - argument { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "y" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - operator { - op: Deref - arguments { - identifier { - name: "p" - } - } - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "Delete" - object { - identifier { - name: "heap" - } - } - } - } - argument { - tuple_literal { - fields { - identifier { - name: "p" - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - identifier { - name: "y" - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/fe2d8dd69f81861333652f711d68b91c57e3cfaa b/explorer/fuzzing/fuzzer_corpus/fe2d8dd69f81861333652f711d68b91c57e3cfaa deleted file mode 100644 index 60b215fb4bb1e..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/fe2d8dd69f81861333652f711d68b91c57e3cfaa +++ /dev/null @@ -1,136 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "t1" - type { - expression_pattern { - expression { - tuple_literal { - fields { - int_type_literal { - } - } - fields { - int_type_literal { - } - } - } - } - } - } - } - } - init { - tuple_literal { - fields { - int_literal { - value: 5 - } - } - fields { - int_literal { - value: 2 - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "t2" - type { - expression_pattern { - expression { - tuple_literal { - fields { - int_type_literal { - } - } - } - } - } - } - } - } - init { - tuple_literal { - fields { - int_literal { - value: 5 - } - } - } - } - is_returned: false - } - } - statements { - if_statement { - condition { - operator { - op: Eq - arguments { - identifier { - name: "t1" - } - } - arguments { - identifier { - name: "t2" - } - } - } - } - then_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - else_block { - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/fe6b80415dd5bcc39d4ae70e86907dfab51f47db b/explorer/fuzzing/fuzzer_corpus/fe6b80415dd5bcc39d4ae70e86907dfab51f47db deleted file mode 100644 index b340ca3a066f0..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/fe6b80415dd5bcc39d4ae70e86907dfab51f47db +++ /dev/null @@ -1,77 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - auto_pattern { - } - } - } - } - init { - struct_literal { - fields { - name: "x" - expression { - identifier { - name: "x" - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/fe809bc6dc76afca1a64ecb2b7ec9c2656b64901 b/explorer/fuzzing/fuzzer_corpus/fe809bc6dc76afca1a64ecb2b7ec9c2656b64901 deleted file mode 100644 index b9eedeec43bdf..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/fe809bc6dc76afca1a64ecb2b7ec9c2656b64901 +++ /dev/null @@ -1,194 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - class_declaration { - name { - name: "A" - } - members { - destructor { - self_pattern { - binding_pattern { - name: "self" - type { - expression_pattern { - expression { - identifier { - name: "Self" - } - } - } - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "Print" - } - } - argument { - tuple_literal { - fields { - string_literal { - value: "DESTRUCTOR A {0}" - } - } - fields { - simple_member_access { - field: "n" - object { - identifier { - name: "self" - } - } - } - } - } - } - } - } - } - } - } - } - } - members { - variable { - binding { - name: "n" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a1" - type { - expression_pattern { - expression { - identifier { - name: "A" - } - } - } - } - } - } - init { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 2 - } - } - } - } - } - is_returned: false - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - array_type_literal { - element_type { - identifier { - name: "A" - } - } - size { - int_literal { - value: 2 - } - } - } - } - } - } - } - } - init { - tuple_literal { - fields { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 1 - } - } - } - } - } - fields { - struct_literal { - fields { - name: "n" - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/feeda94dab9210897b2b8179722714388c1affb1 b/explorer/fuzzing/fuzzer_corpus/feeda94dab9210897b2b8179722714388c1affb1 deleted file mode 100644 index 8f248ea6add9f..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/feeda94dab9210897b2b8179722714388c1affb1 +++ /dev/null @@ -1,509 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - interface { - name { - name: "Vector" - } - members { - let { - pattern { - generic_binding { - name: "Dim" - type { - int_type_literal { - } - } - } - } - } - } - } - } - declarations { - impl { - kind: ExternalImpl - impl_type { - tuple_literal { - fields { - int_type_literal { - } - } - fields { - int_type_literal { - } - } - fields { - int_type_literal { - } - } - } - } - interface { - where { - base { - identifier { - name: "Vector" - } - } - clauses { - rewrite { - member_name: "Dim" - replacement { - int_literal { - value: 3 - } - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "Point" - } - type_params { - fields { - generic_binding { - name: "Scalar" - type { - type_type_literal { - } - } - } - } - fields { - generic_binding { - name: "Dim" - type { - int_type_literal { - } - } - } - } - } - } - } - declarations { - function { - name { - name: "F" - } - deduced_parameters { - name: "Scalar" - type { - type_type_literal { - } - } - } - deduced_parameters { - name: "V" - type { - where { - base { - identifier { - name: "Vector" - } - } - clauses { - equals { - lhs { - designator { - name: "Dim" - } - } - rhs { - int_literal { - value: 3 - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "Scalar" - } - } - fields { - simple_member_access { - field: "Dim" - object { - identifier { - name: "V" - } - } - } - } - } - } - } - } - } - } - } - } - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - identifier { - name: "V" - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - function { - name { - name: "G" - } - deduced_parameters { - name: "Scalar" - type { - type_type_literal { - } - } - } - param_pattern { - fields { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "Scalar" - } - } - fields { - int_literal { - value: 3 - } - } - } - } - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - function { - name { - name: "H" - } - deduced_parameters { - name: "V" - type { - where { - base { - identifier { - name: "Vector" - } - } - clauses { - equals { - lhs { - designator { - name: "Dim" - } - } - rhs { - int_literal { - value: 3 - } - } - } - } - } - } - } - param_pattern { - fields { - binding_pattern { - name: "v" - type { - expression_pattern { - expression { - identifier { - name: "V" - } - } - } - } - } - } - } - return_term { - kind: Omitted - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - fields { - simple_member_access { - field: "Dim" - object { - identifier { - name: "V" - } - } - } - } - } - } - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "G" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "p" - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "p" - type { - expression_pattern { - expression { - call { - function { - identifier { - name: "Point" - } - } - argument { - tuple_literal { - fields { - int_type_literal { - } - } - fields { - int_literal { - value: 3 - } - } - } - } - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "F" - } - } - argument { - tuple_literal { - fields { - identifier { - name: "p" - } - } - fields { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - fields { - int_literal { - value: 0 - } - } - fields { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - statements { - expression_statement { - expression { - call { - function { - identifier { - name: "H" - } - } - argument { - tuple_literal { - fields { - tuple_literal { - fields { - int_literal { - value: 0 - } - } - fields { - int_literal { - value: 0 - } - } - fields { - int_literal { - value: 0 - } - } - } - } - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/ff47496b2b3ab3be74aa5d310783eb4e07d8061f b/explorer/fuzzing/fuzzer_corpus/ff47496b2b3ab3be74aa5d310783eb4e07d8061f deleted file mode 100644 index c145a513f51de..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/ff47496b2b3ab3be74aa5d310783eb4e07d8061f +++ /dev/null @@ -1,89 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - namespace { - name { - name: "N" - } - } - } - declarations { - alias { - name { - name: "M" - } - target { - identifier { - name: "N" - } - } - } - } - declarations { - function { - name { - qualifiers: "M" - name: "F" - } - param_pattern { - } - return_term { - kind: Omitted - } - body { - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - expression_statement { - expression { - call { - function { - simple_member_access { - field: "F" - object { - identifier { - name: "N" - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/ff7d45f3301643f90226cfe6fe84d5df2cee7a7a b/explorer/fuzzing/fuzzer_corpus/ff7d45f3301643f90226cfe6fe84d5df2cee7a7a deleted file mode 100644 index fb7d9fbac9ff2..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/ff7d45f3301643f90226cfe6fe84d5df2cee7a7a +++ /dev/null @@ -1,71 +0,0 @@ -compilation_unit { - package_statement { - package_name: "ExplorerTest" - } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - assign { - lhs { - identifier { - name: "x" - } - } - rhs { - int_literal { - value: 0 - } - } - op: Plain - } - } - statements { - variable_definition { - pattern { - binding_pattern { - name: "x" - type { - expression_pattern { - expression { - int_type_literal { - } - } - } - } - } - } - init { - int_literal { - value: 0 - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - int_literal { - value: 0 - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_corpus/ff875f9fc0fdd10e6dfc1c221c7c423eba8f0e95 b/explorer/fuzzing/fuzzer_corpus/ff875f9fc0fdd10e6dfc1c221c7c423eba8f0e95 deleted file mode 100644 index 92b4950b72358..0000000000000 --- a/explorer/fuzzing/fuzzer_corpus/ff875f9fc0fdd10e6dfc1c221c7c423eba8f0e95 +++ /dev/null @@ -1,159 +0,0 @@ -compilation_unit { - package_statement { - package_name: "Foo" - } - is_api: true - declarations { - interface { - name { - name: "A" - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - } - } - } - } - declarations { - class_declaration { - name { - name: "X" - } - members { - impl { - kind: InternalImpl - impl_type { - identifier { - name: "Self" - } - } - interface { - identifier { - name: "A" - } - } - members { - function { - name { - name: "F" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - return_expression_statement { - expression { - int_literal { - value: 1 - } - } - } - } - } - } - } - } - } - } - } - declarations { - function { - name { - name: "Main" - } - param_pattern { - } - return_term { - kind: Expression - type { - int_type_literal { - } - } - } - body { - statements { - variable_definition { - pattern { - binding_pattern { - name: "a" - type { - expression_pattern { - expression { - identifier { - name: "X" - } - } - } - } - } - } - init { - struct_literal { - } - } - is_returned: false - } - } - statements { - return_expression_statement { - expression { - call { - function { - compound_member_access { - object { - identifier { - name: "a" - } - } - path { - compound_member_access { - object { - identifier { - name: "X" - } - } - path { - simple_member_access { - field: "F" - object { - identifier { - name: "A" - } - } - } - } - } - } - } - } - argument { - tuple_literal { - } - } - } - } - } - } - } - } - } -} diff --git a/explorer/fuzzing/fuzzer_util.cpp b/explorer/fuzzing/fuzzer_util.cpp deleted file mode 100644 index 13069e7acbc7a..0000000000000 --- a/explorer/fuzzing/fuzzer_util.cpp +++ /dev/null @@ -1,57 +0,0 @@ -// Part of the Carbon Language project, under the Apache License v2.0 with LLVM -// Exceptions. See /LICENSE for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -#include "explorer/fuzzing/fuzzer_util.h" - -#include - -#include "common/check.h" -#include "common/error.h" -#include "explorer/parse_and_execute/parse_and_execute.h" -#include "llvm/Support/FileSystem.h" -#include "llvm/Support/Path.h" -#include "testing/fuzzing/proto_to_carbon.h" -#include "tools/cpp/runfiles/runfiles.h" - -namespace Carbon::Testing { - -auto GetRunfilesFile(const std::string& file) -> ErrorOr { - using bazel::tools::cpp::runfiles::Runfiles; - std::string error; - // `Runfiles::Create()` fails if passed an empty `argv0`. - std::unique_ptr runfiles(Runfiles::Create( - /*argv0=*/llvm::sys::fs::getMainExecutable(nullptr, nullptr), &error)); - if (runfiles == nullptr) { - return Error(error); - } - std::string full_path = runfiles->Rlocation(file); - if (!llvm::sys::fs::exists(full_path)) { - return ErrorBuilder() << full_path << " doesn't exist"; - } - return full_path; -} - -auto ParseAndExecuteProto(const Fuzzing::Carbon& carbon) -> ErrorOr { - llvm::vfs::InMemoryFileSystem fs; - - const ErrorOr prelude_path = - GetRunfilesFile("carbon/explorer/data/prelude.carbon"); - // Can't do anything without a prelude, so it's a fatal error. - CARBON_CHECK(prelude_path.ok(), "{0}", prelude_path.error()); - llvm::ErrorOr> prelude = - llvm::MemoryBuffer::getFile(*prelude_path); - CARBON_CHECK(!prelude.getError(), "{0}", prelude.getError().message()); - CARBON_CHECK(fs.addFile("prelude.carbon", /*ModificationTime=*/0, - std::move(*prelude))); - - const std::string source = ProtoToCarbon(carbon, /*maybe_add_main=*/true); - CARBON_CHECK(fs.addFile("fuzzer.carbon", /*ModificationTime=*/0, - llvm::MemoryBuffer::getMemBuffer(source))); - - TraceStream trace_stream; - return ParseAndExecute(fs, "prelude.carbon", "fuzzer.carbon", - /*parser_debug=*/false, &trace_stream, &llvm::nulls()); -} - -} // namespace Carbon::Testing diff --git a/explorer/fuzzing/fuzzer_util.h b/explorer/fuzzing/fuzzer_util.h deleted file mode 100644 index fc8aa16943846..0000000000000 --- a/explorer/fuzzing/fuzzer_util.h +++ /dev/null @@ -1,24 +0,0 @@ -// Part of the Carbon Language project, under the Apache License v2.0 with LLVM -// Exceptions. See /LICENSE for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -#ifndef CARBON_EXPLORER_FUZZING_FUZZER_UTIL_H_ -#define CARBON_EXPLORER_FUZZING_FUZZER_UTIL_H_ - -#include "common/error.h" -#include "explorer/ast/ast.h" -#include "testing/fuzzing/carbon.pb.h" - -namespace Carbon::Testing { - -// Parses and executes a fuzzer-generated program. -// Returns program result if execution was successful. -auto ParseAndExecuteProto(const Fuzzing::Carbon& carbon) -> ErrorOr; - -// Returns a full path for a file under bazel runfiles. -// Exposed for testing. -auto GetRunfilesFile(const std::string& file) -> ErrorOr; - -} // namespace Carbon::Testing - -#endif // CARBON_EXPLORER_FUZZING_FUZZER_UTIL_H_ diff --git a/explorer/fuzzing/fuzzer_util_test.cpp b/explorer/fuzzing/fuzzer_util_test.cpp deleted file mode 100644 index 3ac76ccbdd7f3..0000000000000 --- a/explorer/fuzzing/fuzzer_util_test.cpp +++ /dev/null @@ -1,58 +0,0 @@ -// Part of the Carbon Language project, under the Apache License v2.0 with LLVM -// Exceptions. See /LICENSE for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -#include "explorer/fuzzing/fuzzer_util.h" - -#include -#include - -#include - -#include "llvm/ADT/StringRef.h" -#include "llvm/Support/raw_ostream.h" -#include "testing/fuzzing/proto_to_carbon.h" - -namespace Carbon::Testing { -namespace { - -TEST(FuzzerUtilTest, ParseAndExecuteProto) { - const ErrorOr carbon_proto = ParseCarbonTextProto(R"( - compilation_unit { - package_statement { package_name: "P" } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern {} - return_term { - kind: Expression - type { int_type_literal {} } - } - body { - statements { - return_expression_statement { - expression { int_literal { value: 0 } } - } - } - } - } - } - })"); - ASSERT_TRUE(carbon_proto.ok()); - const ErrorOr result = ParseAndExecuteProto(*carbon_proto); - ASSERT_TRUE(result.ok()) << "Execution failed: " << result.error(); - EXPECT_EQ(*result, 0); -} - -TEST(FuzzerUtilTest, GetRunfilesFile) { - EXPECT_THAT(*GetRunfilesFile("carbon/explorer/data/prelude.carbon"), - testing::EndsWith("/prelude.carbon")); - EXPECT_THAT(GetRunfilesFile("nonexistent-file").error().message(), - testing::EndsWith("doesn't exist")); -} - -} // namespace -} // namespace Carbon::Testing diff --git a/explorer/fuzzing/regen_corpus.py b/explorer/fuzzing/regen_corpus.py deleted file mode 100755 index 40a627a43ac0e..0000000000000 --- a/explorer/fuzzing/regen_corpus.py +++ /dev/null @@ -1,118 +0,0 @@ -#!/usr/bin/env python3 - -"""Regenerates explorer fuzzer corpus files.""" - -__copyright__ = """ -Part of the Carbon Language project, under the Apache License v2.0 with LLVM -Exceptions. See /LICENSE for license information. -SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -""" - -import hashlib -from pathlib import Path -from concurrent import futures -import os -import subprocess -import tempfile -from typing import List, Set -from collections.abc import Iterable - -_TESTDATA = "explorer/testdata" -_FUZZER_CORPUS = "explorer/fuzzing/fuzzer_corpus" - - -def _get_files(folder: str, extension: str) -> Set[str]: - """Gets the list of files with the specified extension.""" - matching_files = set() - for root, _, files in os.walk(folder): - for f in files: - if os.path.splitext(f)[1] == extension: - matching_files.add(os.path.join(root, f)) - return matching_files - - -def _carbon_to_proto(carbon_file: str) -> str: - """Converts carbon file to text proto string.""" - try: - p = subprocess.run( - f"bazel-bin/explorer/fuzzing/ast_to_proto {carbon_file}", - shell=True, - check=True, - stdout=subprocess.PIPE, - stderr=subprocess.STDOUT, - ) - text_proto = p.stdout.decode("utf-8") - print(".", end="", flush=True) - return text_proto - except subprocess.SubprocessError: - print("x", end="", flush=True) - return "" - - -def _write_corpus_files(text_protos: Iterable[str], corpus_dir: str) -> None: - """Writes text proto contents to files in corpus directory.""" - for text_proto in text_protos: - file_name = ( - Path(corpus_dir) - .joinpath(hashlib.sha1(text_proto.encode("utf-8")).hexdigest()) - .with_suffix(".textproto") - ) - with open(file_name, "w") as f: - f.write(text_proto) - - -def main() -> None: - os.chdir(os.path.join(os.path.dirname(__file__), "../..")) - - print("Building ast_to_proto...", flush=True) - subprocess.check_call( - [ - "bazel", - "build", - "//explorer/fuzzing:ast_to_proto", - ] - ) - carbon_sources = _get_files(_TESTDATA, ".carbon") - print( - f"Converting {len(carbon_sources)} carbon files to proto...", - flush=True, - ) - text_protos: List[str] = [] - with futures.ThreadPoolExecutor() as exec: - all_protos = exec.map(_carbon_to_proto, carbon_sources) - text_protos.extend(p for p in all_protos if p) - - with tempfile.TemporaryDirectory() as new_corpus_dir: - print( - f"\nWriting {len(text_protos)} corpus files to {new_corpus_dir}...", - flush=True, - ) - _write_corpus_files(text_protos, new_corpus_dir) - - print("Building explorer_fuzzer...", flush=True) - subprocess.check_call( - [ - "bazel", - "build", - "--config=fuzzer", - "//explorer/fuzzing:explorer_fuzzer.full_corpus", - ] - ) - - print( - f"Merging interesting inputs into {_FUZZER_CORPUS}...", - flush=True, - ) - subprocess.check_call( - [ - "bazel-bin/explorer/fuzzing/explorer_fuzzer.full_corpus", - "-merge=1", - _FUZZER_CORPUS, - new_corpus_dir, - ] - ) - print("All done!", flush=True) - - -if __name__ == "__main__": - main() diff --git a/scripts/create_compdb.py b/scripts/create_compdb.py index 85ba7e1b3f312..54dec4626d2e2 100755 --- a/scripts/create_compdb.py +++ b/scripts/create_compdb.py @@ -38,8 +38,6 @@ def _build_generated_files(bazel: str) -> None: ' ".*\\.(h|cpp|cc|c|cxx|def|inc)$",' ' kind("generated file", deps(//...))' ")" - " union " - 'kind("cc_proto_library", deps(//...))' ) generated_file_labels = subprocess.check_output( [bazel, "query", "--keep_going", "--output=label", kinds_query], diff --git a/scripts/fix_cc_deps.py b/scripts/fix_cc_deps.py index 61240ad4ffd57..81b7c38757d12 100755 --- a/scripts/fix_cc_deps.py +++ b/scripts/fix_cc_deps.py @@ -47,18 +47,6 @@ class RuleChoice(NamedTuple): lambda x: re.sub(":", "/", re.sub("^(.*:(lib|include))/", "", x)), "...", ), - # :src/google/protobuf/descriptor.h -> google/protobuf/descriptor.h - # - protobuf_headers is specified because there are multiple overlapping - # targets. - "@protobuf": ExternalRepo( - lambda x: re.sub("^(.*:src)/", "", x), - ":protobuf_headers", - use_system_include=True, - ), - # :src/libfuzzer/libfuzzer_macro.h -> libfuzzer/libfuzzer_macro.h - "@com_google_libprotobuf_mutator": ExternalRepo( - lambda x: re.sub("^(.*:src)/", "", x), "...", use_system_include=True - ), # tools/cpp/runfiles:runfiles.h -> tools/cpp/runfiles/runfiles.h "@bazel_tools": ExternalRepo(lambda x: re.sub(":", "/", x), "..."), # absl/flags:flag.h -> absl/flags/flag.h @@ -79,11 +67,6 @@ class RuleChoice(NamedTuple): ), } -# TODO: proto rules and template expansions are aspect-based and their generated -# files don't show up in `bazel query` output. -# Try using `bazel cquery --output=starlark` to print `target.files`. -# For protobuf, need to add support for `alias` rule kind. -IGNORE_HEADER_REGEX = re.compile("^(.*\\.pb\\.h)$") IGNORE_SOURCE_FILE_REGEX = re.compile( "^(third_party/clangd.*|common/version.*\\.cpp)$" ) @@ -248,9 +231,6 @@ def get_missing_deps( if is_system_include: # Don't error for unexpected system includes. continue - if IGNORE_HEADER_REGEX.match(header): - # Don't print anything for explicitly ignored files. - continue exit( f"Missing rule for " f"'{full_include}' in '{source_file}'" ) diff --git a/testing/fuzzing/BUILD b/testing/fuzzing/BUILD index b8f44e832aef8..329208204f821 100644 --- a/testing/fuzzing/BUILD +++ b/testing/fuzzing/BUILD @@ -2,22 +2,10 @@ # Exceptions. See /LICENSE for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library", "cc_proto_library", "cc_test") -load("@rules_proto//proto:defs.bzl", "proto_library") +load("@rules_cc//cc:defs.bzl", "cc_library") package(default_visibility = ["//visibility:public"]) -proto_library( - name = "carbon_proto", - srcs = ["carbon.proto"], -) - -cc_proto_library( - name = "carbon_cc_proto", - testonly = 1, - deps = [":carbon_proto"], -) - # Header for LibFuzzer, does not provide the implementation which should come # from some other source such as a fuzz test target. cc_library( @@ -25,43 +13,3 @@ cc_library( testonly = 1, hdrs = ["libfuzzer.h"], ) - -cc_library( - name = "proto_to_carbon_lib", - testonly = 1, - srcs = ["proto_to_carbon.cpp"], - hdrs = ["proto_to_carbon.h"], - deps = [ - ":carbon_cc_proto", - "//common:error", - "@llvm-project//llvm:Support", - "@protobuf//:protobuf_headers", - ], -) - -cc_binary( - name = "proto_to_carbon", - testonly = 1, - srcs = ["proto_to_carbon_main.cpp"], - deps = [ - ":carbon_cc_proto", - ":proto_to_carbon_lib", - "//common:bazel_working_dir", - "//common:error", - "@llvm-project//llvm:Support", - "@protobuf//:protobuf_headers", - ], -) - -cc_test( - name = "proto_to_carbon_test", - size = "small", - srcs = ["proto_to_carbon_test.cpp"], - deps = [ - ":carbon_cc_proto", - ":proto_to_carbon_lib", - "//common:error", - "//testing/base:gtest_main", - "@googletest//:gtest", - ], -) diff --git a/testing/fuzzing/carbon.proto b/testing/fuzzing/carbon.proto deleted file mode 100644 index 905414eb816ce..0000000000000 --- a/testing/fuzzing/carbon.proto +++ /dev/null @@ -1,491 +0,0 @@ -// Part of the Carbon Language project, under the Apache License v2.0 with LLVM -// Exceptions. See /LICENSE for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -syntax = "proto2"; - -package Carbon.Fuzzing; - -message LibraryName { - optional string package_name = 1; - optional string path = 2; -} - -message DeclaredName { - repeated string qualifiers = 1; - optional string name = 2; -} - -// Expressions. - -message CallExpression { - optional Expression function = 1; - optional Expression argument = 2; -} - -message FunctionTypeLiteral { - optional TupleLiteralExpression parameter = 3; - optional Expression return_type = 2; -} - -message SimpleMemberAccessExpression { - optional string field = 1; - optional Expression object = 2; -} - -message CompoundMemberAccessExpression { - optional Expression object = 1; - optional Expression path = 2; -} - -message IndexExpression { - optional Expression object = 1; - optional Expression offset = 2; -} - -message OperatorExpression { - enum Operator { - UnknownOperator = 0; - Add = 1; - AddressOf = 2; - And = 3; - Deref = 4; - Eq = 5; - Mul = 6; - Neg = 7; - Not = 8; - Or = 9; - Sub = 10; - Ptr = 11; - BitwiseAnd = 12; - As = 13; - Mod = 14; - Complement = 15; - BitwiseOr = 16; - BitwiseXor = 17; - BitShiftLeft = 18; - BitShiftRight = 19; - Less = 20; - LessEq = 21; - Greater = 22; - GreaterEq = 23; - NotEq = 24; - Div = 25; - } - optional Operator op = 1; - repeated Expression arguments = 2; -} - -message TupleLiteralExpression { - repeated Expression fields = 1; -} - -message FieldInitializer { - optional string name = 1; - optional Expression expression = 2; -} - -message StructLiteralExpression { - repeated FieldInitializer fields = 1; -} - -message StructTypeLiteralExpression { - repeated FieldInitializer fields = 1; -} - -message IdentifierExpression { - optional string name = 1; -} - -message DesignatorExpression { - optional string name = 1; -} - -message IfExpression { - optional Expression condition = 1; - optional Expression then_expression = 2; - optional Expression else_expression = 3; -} - -message BoolTypeLiteral {} - -message BoolLiteral { - optional bool value = 1; -} - -message IntTypeLiteral {} - -message IntLiteral { - optional int64 value = 1; -} - -message StringLiteral { - optional string value = 1; -} - -message StringTypeLiteral {} -message TypeTypeLiteral {} - -message UnimplementedExpression {} - -message ArrayTypeLiteral { - optional Expression element_type = 1; - optional Expression size = 2; -} - -message ImplsWhereClause { - optional Expression type = 1; - optional Expression constraint = 2; -} - -message EqualsWhereClause { - optional Expression lhs = 1; - optional Expression rhs = 2; -} - -message RewriteWhereClause { - optional string member_name = 1; - optional Expression replacement = 2; -} - -message WhereClause { - oneof kind { - ImplsWhereClause impls = 1; - EqualsWhereClause equals = 2; - RewriteWhereClause rewrite = 3; - } -} - -message WhereExpression { - optional Expression base = 1; - repeated WhereClause clauses = 2; -} - -message Expression { - oneof kind { - CallExpression call = 1; - FunctionTypeLiteral function_type = 2; - SimpleMemberAccessExpression simple_member_access = 3; - IndexExpression index = 4; - OperatorExpression operator = 5; - TupleLiteralExpression tuple_literal = 6; - StructLiteralExpression struct_literal = 7; - StructTypeLiteralExpression struct_type_literal = 8; - IdentifierExpression identifier = 9; - IfExpression if_expression = 11; - BoolTypeLiteral bool_type_literal = 12; - BoolLiteral bool_literal = 13; - IntTypeLiteral int_type_literal = 14; - IntLiteral int_literal = 15; - StringLiteral string_literal = 16; - StringTypeLiteral string_type_literal = 17; - TypeTypeLiteral type_type_literal = 18; - UnimplementedExpression unimplemented_expression = 19; - ArrayTypeLiteral array_type_literal = 20; - CompoundMemberAccessExpression compound_member_access = 21; - WhereExpression where = 22; - DesignatorExpression designator = 23; - } -} - -// Patterns. - -message BindingPattern { - optional string name = 1; - optional Pattern type = 2; -} - -message GenericBinding { - enum Kind { - Checked = 0; - Template = 1; - } - optional string name = 1; - optional Expression type = 2; - optional Kind kind = 3; -} - -message TuplePattern { - repeated Pattern fields = 1; -} - -message AlternativePattern { - optional Expression choice_type = 1; - optional string alternative_name = 2; - optional TuplePattern arguments = 3; -} - -message ExpressionPattern { - optional Expression expression = 1; -} - -message AutoPattern {} - -message VarPattern { - optional Pattern pattern = 1; -} - -message AddrPattern { - optional BindingPattern binding_pattern = 1; -} - -message Pattern { - oneof kind { - BindingPattern binding_pattern = 1; - TuplePattern tuple_pattern = 2; - AlternativePattern alternative_pattern = 3; - ExpressionPattern expression_pattern = 4; - AutoPattern auto_pattern = 5; - VarPattern var_pattern = 6; - GenericBinding generic_binding = 7; - AddrPattern addr_pattern = 8; - } -} - -// Statements. - -message ExpressionStatement { - optional Expression expression = 1; -} - -message AssignStatement { - enum Operator { - Plain = 0; - Add = 1; - And = 2; - Div = 3; - Mul = 4; - Or = 5; - Sub = 6; - Mod = 7; - Xor = 8; - ShiftLeft = 9; - ShiftRight = 10; - } - optional Expression lhs = 1; - optional Expression rhs = 2; - optional Operator op = 3; -} - -message IncrementDecrementStatement { - optional Expression operand = 1; - optional bool is_increment = 2; -} - -message VariableDefinitionStatement { - optional Pattern pattern = 1; - optional Expression init = 2; - optional bool is_returned = 3; -} - -message IfStatement { - optional Expression condition = 1; - optional BlockStatement then_block = 2; - optional BlockStatement else_block = 3; -} - -message ReturnVarStatement {} - -message ReturnExpressionStatement { - optional Expression expression = 1; // Can be omitted. - optional bool is_omitted_expression = 2; -} - -message BlockStatement { - repeated Statement statements = 1; -} - -message WhileStatement { - optional Expression condition = 1; - optional BlockStatement body = 2; -} - -message ForStatement { - optional BindingPattern var_decl = 1; - optional Expression target = 2; - optional BlockStatement body = 3; -} - -message MatchClause { - optional Pattern pattern = 1; - optional Statement statement = 2; - optional bool is_default = 3; -} - -message MatchStatement { - optional Expression expression = 1; - repeated MatchClause clauses = 2; -} - -message BreakStatement {} -message ContinueStatement {} - -message Statement { - oneof kind { - ExpressionStatement expression_statement = 1; - AssignStatement assign = 2; - VariableDefinitionStatement variable_definition = 3; - IfStatement if_statement = 4; - ReturnVarStatement return_var_statement = 5; - ReturnExpressionStatement return_expression_statement = 6; - BlockStatement block = 7; - WhileStatement while_statement = 8; - MatchStatement match = 9; - BreakStatement break_statement = 10; - ContinueStatement continue_statement = 11; - ForStatement for_statement = 12; - IncrementDecrementStatement inc_dec = 13; - } -} - -// Declarations. - -message ReturnTerm { - enum ReturnKind { - UnknownReturnKind = 0; - Omitted = 1; - Auto = 2; - Expression = 3; - } - optional ReturnKind kind = 1; - optional Expression type = 2; -} - -message FunctionDeclaration { - optional DeclaredName name = 1; - repeated GenericBinding deduced_parameters = 2; - optional Pattern self_pattern = 3; - optional TuplePattern param_pattern = 4; - optional ReturnTerm return_term = 5; - optional BlockStatement body = 6; -} - -message DestructorDeclaration { - optional Pattern self_pattern = 1; - optional BlockStatement body = 2; -} - -message ClassDeclaration { - optional DeclaredName name = 1; - repeated Declaration members = 2; - optional TuplePattern type_params = 3; -} - -message ExtendBaseDeclaration { - optional Expression base_class = 1; -} - -message AlternativeSignature { - optional string name = 1; - optional TupleLiteralExpression signature = 3; -} - -message ChoiceDeclaration { - optional DeclaredName name = 1; - repeated AlternativeSignature alternatives = 2; -} - -message VariableDeclaration { - optional BindingPattern binding = 1; - optional Expression initializer = 2; -} - -message LetDeclaration { - optional Pattern pattern = 1; - // TODO: Add `optional Expression initializer = 2;` once explorer supports - // `let` declarations in general. -} - -message InterfaceExtendDeclaration { - optional Expression base = 1; -} - -message InterfaceRequireDeclaration { - optional Expression impl_type = 1; - optional Expression constraint = 2; -} - -message InterfaceDeclaration { - optional DeclaredName name = 1; - repeated Declaration members = 2; -} - -message ConstraintDeclaration { - optional DeclaredName name = 1; - repeated Declaration members = 2; -} - -message ImplDeclaration { - enum ImplKind { - UnknownImplKind = 0; - InternalImpl = 1; - ExternalImpl = 2; - } - - optional ImplKind kind = 1; - repeated GenericBinding deduced_parameters = 2; - optional Expression impl_type = 3; - optional Expression interface = 4; - repeated Declaration members = 5; -} - -message MatchFirstDeclaration { - repeated Declaration impl_declarations = 1; -} - -message AliasDeclaration { - optional DeclaredName name = 1; - optional Expression target = 2; -} - -// EXPERIMENTAL MIXIN FEATURE -message MixinDeclaration { - optional DeclaredName name = 1; - repeated Declaration members = 2; - // Type params not implemented yet - // optional TuplePattern params = 3; - optional GenericBinding self = 4; -} - -// EXPERIMENTAL MIXIN FEATURE -message MixDeclaration { - optional Expression mixin = 1; -} - -message NamespaceDeclaration { - optional DeclaredName name = 1; -} - -message Declaration { - oneof kind { - FunctionDeclaration function = 1; - ClassDeclaration class_declaration = 2; - ChoiceDeclaration choice = 3; - VariableDeclaration variable = 4; - InterfaceDeclaration interface = 5; - ImplDeclaration impl = 6; - AliasDeclaration alias = 7; - LetDeclaration let = 8; - MixinDeclaration mixin = 9; - MixDeclaration mix = 10; - DestructorDeclaration destructor = 11; - InterfaceExtendDeclaration interface_extend = 12; - InterfaceRequireDeclaration interface_require = 13; - ConstraintDeclaration constraint = 14; - MatchFirstDeclaration match_first = 15; - NamespaceDeclaration namespace = 16; - ExtendBaseDeclaration extend_base = 17; - } -} - -message CompilationUnit { - optional LibraryName package_statement = 1; - optional bool is_api = 2; - repeated Declaration declarations = 3; - // TODO: Add support for imports if they are useful in fuzzing. -} - -// Top-level fuzzer input. -message Carbon { - optional CompilationUnit compilation_unit = 1; -} diff --git a/testing/fuzzing/proto_to_carbon.cpp b/testing/fuzzing/proto_to_carbon.cpp deleted file mode 100644 index 6fef9ad804aa7..0000000000000 --- a/testing/fuzzing/proto_to_carbon.cpp +++ /dev/null @@ -1,1030 +0,0 @@ -// Part of the Carbon Language project, under the Apache License v2.0 with LLVM -// Exceptions. See /LICENSE for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -#include "testing/fuzzing/proto_to_carbon.h" - -#include - -#include - -#include "llvm/ADT/StringExtras.h" -#include "llvm/Support/raw_ostream.h" -#include "testing/fuzzing/carbon.pb.h" - -// This is a test file, so the recursion is okay. -// NOLINTBEGIN(misc-no-recursion) - -namespace Carbon { - -static auto ExpressionToCarbon(const Fuzzing::Expression& expression, - llvm::raw_ostream& out) -> void; -static auto PatternToCarbon(const Fuzzing::Pattern& pattern, - llvm::raw_ostream& out) -> void; -static auto StatementToCarbon(const Fuzzing::Statement& statement, - llvm::raw_ostream& out) -> void; -static auto DeclarationToCarbon(const Fuzzing::Declaration& declaration, - llvm::raw_ostream& out) -> void; - -// Produces a valid Carbon identifier, which must match the regex -// `[A-Za-z_][A-Za-z0-9_]*`. In the case when `s` is generated by the -// fuzzing framework, it might contain invalid/non-printable characters. -static auto IdentifierToCarbon(std::string_view s, llvm::raw_ostream& out) - -> void { - if (s.empty()) { - out << "EmptyIdentifier"; - } else { - if (!llvm::isAlpha(s[0]) && s[0] != '_') { - // Ensures that identifier starts with a valid character. - out << 'x'; - } - for (const char c : s) { - if (llvm::isAlnum(c) || c == '_') { - out << c; - } else { - out << llvm::toHex(c); - } - } - } -} - -static auto StringLiteralToCarbon(std::string_view s, llvm::raw_ostream& out) { - out << '"'; - out.write_escaped(s, /*UseHexEscapes=*/true); - out << '"'; -} - -static auto LibraryNameToCarbon(const Fuzzing::LibraryName& library, - llvm::raw_ostream& out) -> void { - IdentifierToCarbon(library.package_name(), out); - - // Path is optional. - if (library.has_path()) { - out << " library "; - // library.path() is a string literal. - StringLiteralToCarbon(library.path(), out); - } -} - -static auto PrefixUnaryOperatorToCarbon(std::string_view op, - const Fuzzing::Expression& arg, - llvm::raw_ostream& out) -> void { - out << op; - ExpressionToCarbon(arg, out); -} - -static auto PostfixUnaryOperatorToCarbon(const Fuzzing::Expression& arg, - std::string_view op, - llvm::raw_ostream& out) -> void { - ExpressionToCarbon(arg, out); - out << op; -} - -static auto BinaryOperatorToCarbon(const Fuzzing::Expression& lhs, - std::string_view op, - const Fuzzing::Expression& rhs, - llvm::raw_ostream& out) -> void { - ExpressionToCarbon(lhs, out); - out << op; - ExpressionToCarbon(rhs, out); -} - -static auto OperatorToCarbon(const Fuzzing::OperatorExpression& operator_expr, - llvm::raw_ostream& out) -> void { - const Fuzzing::Expression& arg0 = - !operator_expr.arguments().empty() - ? operator_expr.arguments(0) - : Fuzzing::Expression::default_instance(); - const Fuzzing::Expression& arg1 = - operator_expr.arguments().size() > 1 - ? operator_expr.arguments(1) - : Fuzzing::Expression::default_instance(); - out << "("; - switch (operator_expr.op()) { - case Fuzzing::OperatorExpression::UnknownOperator: - // `-` is an arbitrary default to avoid getting invalid syntax. - PrefixUnaryOperatorToCarbon("-", arg0, out); - break; - - case Fuzzing::OperatorExpression::AddressOf: - PrefixUnaryOperatorToCarbon("&", arg0, out); - break; - - case Fuzzing::OperatorExpression::As: - BinaryOperatorToCarbon(arg0, " as ", arg1, out); - break; - - case Fuzzing::OperatorExpression::Deref: - PrefixUnaryOperatorToCarbon("*", arg0, out); - break; - - case Fuzzing::OperatorExpression::Mul: - BinaryOperatorToCarbon(arg0, " * ", arg1, out); - break; - - case Fuzzing::OperatorExpression::Div: - BinaryOperatorToCarbon(arg0, " / ", arg1, out); - break; - - case Fuzzing::OperatorExpression::Mod: - BinaryOperatorToCarbon(arg0, " % ", arg1, out); - break; - - case Fuzzing::OperatorExpression::Ptr: - PostfixUnaryOperatorToCarbon(arg0, "*", out); - break; - - case Fuzzing::OperatorExpression::Neg: - PrefixUnaryOperatorToCarbon("-", arg0, out); - break; - - case Fuzzing::OperatorExpression::Sub: - BinaryOperatorToCarbon(arg0, " - ", arg1, out); - break; - - case Fuzzing::OperatorExpression::Not: - // Needs a space to 'unglue' from the operand. - PrefixUnaryOperatorToCarbon("not ", arg0, out); - break; - - case Fuzzing::OperatorExpression::Add: - BinaryOperatorToCarbon(arg0, " + ", arg1, out); - break; - - case Fuzzing::OperatorExpression::And: - BinaryOperatorToCarbon(arg0, " and ", arg1, out); - break; - - case Fuzzing::OperatorExpression::Eq: - BinaryOperatorToCarbon(arg0, " == ", arg1, out); - break; - case Fuzzing::OperatorExpression::Less: - BinaryOperatorToCarbon(arg0, " < ", arg1, out); - break; - case Fuzzing::OperatorExpression::LessEq: - BinaryOperatorToCarbon(arg0, " <= ", arg1, out); - break; - case Fuzzing::OperatorExpression::GreaterEq: - BinaryOperatorToCarbon(arg0, " >= ", arg1, out); - break; - case Fuzzing::OperatorExpression::Greater: - BinaryOperatorToCarbon(arg0, " > ", arg1, out); - break; - - case Fuzzing::OperatorExpression::Or: - BinaryOperatorToCarbon(arg0, " or ", arg1, out); - break; - - case Fuzzing::OperatorExpression::Complement: - PrefixUnaryOperatorToCarbon("^", arg0, out); - break; - - case Fuzzing::OperatorExpression::BitwiseAnd: - BinaryOperatorToCarbon(arg0, " & ", arg1, out); - break; - - case Fuzzing::OperatorExpression::BitwiseOr: - BinaryOperatorToCarbon(arg0, " | ", arg1, out); - break; - - case Fuzzing::OperatorExpression::BitwiseXor: - BinaryOperatorToCarbon(arg0, " ^ ", arg1, out); - break; - - case Fuzzing::OperatorExpression::BitShiftLeft: - BinaryOperatorToCarbon(arg0, " << ", arg1, out); - break; - - case Fuzzing::OperatorExpression::BitShiftRight: - BinaryOperatorToCarbon(arg0, " >> ", arg1, out); - break; - case Fuzzing::OperatorExpression::NotEq: - BinaryOperatorToCarbon(arg0, " != ", arg1, out); - break; - } - out << ")"; -} - -static auto FieldInitializerToCarbon(const Fuzzing::FieldInitializer& field, - std::string_view separator, - llvm::raw_ostream& out) -> void { - out << "."; - IdentifierToCarbon(field.name(), out); - out << " " << separator << " "; - ExpressionToCarbon(field.expression(), out); -} - -static auto TupleLiteralExpressionToCarbon( - const Fuzzing::TupleLiteralExpression& tuple_literal, - llvm::raw_ostream& out) -> void { - out << "("; - llvm::ListSeparator sep; - for (const auto& field : tuple_literal.fields()) { - out << sep; - ExpressionToCarbon(field, out); - } - if (tuple_literal.fields_size() == 1) { - // Adding a trailing comma so that generated source will be parsed as a - // tuple expression. See docs/design/tuples.md. - out << ", "; - } - out << ")"; -} - -static auto ExpressionToCarbon(const Fuzzing::Expression& expression, - llvm::raw_ostream& out) -> void { - switch (expression.kind_case()) { - case Fuzzing::Expression::KIND_NOT_SET: - // Arbitrary default for missing expressions to avoid invalid syntax. - out << "true"; - break; - - case Fuzzing::Expression::kCall: { - const auto& call = expression.call(); - ExpressionToCarbon(call.function(), out); - if (call.argument().kind_case() == Fuzzing::Expression::kTupleLiteral) { - TupleLiteralExpressionToCarbon(call.argument().tuple_literal(), out); - } else { - out << "("; - ExpressionToCarbon(call.argument(), out); - out << ")"; - } - break; - } - - case Fuzzing::Expression::kFunctionType: { - const auto& fun_type = expression.function_type(); - out << "__Fn"; - TupleLiteralExpressionToCarbon(fun_type.parameter(), out); - out << " -> "; - ExpressionToCarbon(fun_type.return_type(), out); - break; - } - - case Fuzzing::Expression::kSimpleMemberAccess: { - const auto& simple_member_access = expression.simple_member_access(); - ExpressionToCarbon(simple_member_access.object(), out); - out << "."; - IdentifierToCarbon(simple_member_access.field(), out); - break; - } - - case Fuzzing::Expression::kCompoundMemberAccess: { - const auto& simple_member_access = expression.compound_member_access(); - ExpressionToCarbon(simple_member_access.object(), out); - out << ".("; - ExpressionToCarbon(simple_member_access.path(), out); - out << ")"; - break; - } - - case Fuzzing::Expression::kIndex: { - const auto& index = expression.index(); - ExpressionToCarbon(index.object(), out); - out << "["; - ExpressionToCarbon(index.offset(), out); - out << "]"; - break; - } - - case Fuzzing::Expression::kOperator: - OperatorToCarbon(expression.operator_(), out); - break; - - case Fuzzing::Expression::kTupleLiteral: { - TupleLiteralExpressionToCarbon(expression.tuple_literal(), out); - break; - } - - case Fuzzing::Expression::kStructLiteral: { - const auto& struct_literal = expression.struct_literal(); - out << "{"; - llvm::ListSeparator sep; - for (const auto& field : struct_literal.fields()) { - out << sep; - FieldInitializerToCarbon(field, "=", out); - } - out << "}"; - break; - } - - case Fuzzing::Expression::kStructTypeLiteral: { - const auto& struct_type_literal = expression.struct_type_literal(); - out << "{"; - llvm::ListSeparator sep; - for (const auto& field : struct_type_literal.fields()) { - out << sep; - FieldInitializerToCarbon(field, ":", out); - } - out << "}"; - break; - } - - case Fuzzing::Expression::kIdentifier: { - const auto& identifier = expression.identifier(); - IdentifierToCarbon(identifier.name(), out); - break; - } - - case Fuzzing::Expression::kDesignator: { - const auto& designator = expression.designator(); - out << "."; - IdentifierToCarbon(designator.name(), out); - break; - } - - case Fuzzing::Expression::kIfExpression: { - const auto& if_expression = expression.if_expression(); - out << "if "; - ExpressionToCarbon(if_expression.condition(), out); - out << " then "; - ExpressionToCarbon(if_expression.then_expression(), out); - out << " else "; - ExpressionToCarbon(if_expression.else_expression(), out); - break; - } - - case Fuzzing::Expression::kBoolTypeLiteral: - out << "bool"; - break; - - case Fuzzing::Expression::kBoolLiteral: { - const auto& bool_literal = expression.bool_literal(); - out << (bool_literal.value() ? "true" : "false"); - break; - } - - case Fuzzing::Expression::kIntTypeLiteral: - out << "i32"; - break; - - case Fuzzing::Expression::kIntLiteral: { - out << expression.int_literal().value(); - break; - } - - case Fuzzing::Expression::kStringLiteral: - StringLiteralToCarbon(expression.string_literal().value(), out); - break; - - case Fuzzing::Expression::kStringTypeLiteral: - out << "String"; - break; - - case Fuzzing::Expression::kTypeTypeLiteral: - out << "type"; - break; - - case Fuzzing::Expression::kUnimplementedExpression: - // Not really supported. - // This is an arbitrary default to avoid getting invalid syntax. - out << "1 __unimplemented_example_infix 2"; - break; - - case Fuzzing::Expression::kArrayTypeLiteral: { - const Fuzzing::ArrayTypeLiteral& array_literal = - expression.array_type_literal(); - out << "["; - ExpressionToCarbon(array_literal.element_type(), out); - out << ";"; - if (array_literal.has_size()) { - out << " "; - ExpressionToCarbon(array_literal.size(), out); - } - out << "]"; - break; - } - - case Fuzzing::Expression::kWhere: { - const Fuzzing::WhereExpression& where = expression.where(); - ExpressionToCarbon(where.base(), out); - out << " where "; - llvm::ListSeparator sep(" and "); - for (const auto& clause : where.clauses()) { - out << sep; - switch (clause.kind_case()) { - case Fuzzing::WhereClause::kImpls: - ExpressionToCarbon(clause.impls().type(), out); - out << " impls "; - ExpressionToCarbon(clause.impls().constraint(), out); - break; - case Fuzzing::WhereClause::kEquals: - ExpressionToCarbon(clause.equals().lhs(), out); - out << " == "; - ExpressionToCarbon(clause.equals().rhs(), out); - break; - case Fuzzing::WhereClause::kRewrite: - out << "." << clause.rewrite().member_name() << " = "; - ExpressionToCarbon(clause.rewrite().replacement(), out); - break; - case Fuzzing::WhereClause::KIND_NOT_SET: - // Arbitrary default to avoid invalid syntax. - out << ".Self == .Self"; - break; - } - } - break; - } - } -} - -static auto BindingPatternToCarbon(const Fuzzing::BindingPattern& pattern, - llvm::raw_ostream& out) -> void { - IdentifierToCarbon(pattern.name(), out); - out << ": "; - PatternToCarbon(pattern.type(), out); -} - -static auto GenericBindingToCarbon( - const Fuzzing::GenericBinding& generic_binding, llvm::raw_ostream& out) { - switch (generic_binding.kind()) { - case Fuzzing::GenericBinding::Checked: - break; - case Fuzzing::GenericBinding::Template: - out << "template "; - break; - } - IdentifierToCarbon(generic_binding.name(), out); - out << ":! "; - ExpressionToCarbon(generic_binding.type(), out); -} - -static auto TuplePatternToCarbon(const Fuzzing::TuplePattern& tuple_pattern, - llvm::raw_ostream& out) -> void { - out << "("; - llvm::ListSeparator sep; - for (const auto& field : tuple_pattern.fields()) { - out << sep; - PatternToCarbon(field, out); - } - if (tuple_pattern.fields_size() == 1) { - // Adding a trailing comma so that generated source will be parsed as a - // tuple pattern expression. See docs/design/tuples.md. - out << ", "; - } - out << ")"; -} - -static auto PatternToCarbon(const Fuzzing::Pattern& pattern, - llvm::raw_ostream& out) -> void { - switch (pattern.kind_case()) { - case Fuzzing::Pattern::KIND_NOT_SET: - // Arbitrary default to avoid getting invalid syntax. - out << "auto"; - break; - - case Fuzzing::Pattern::kBindingPattern: - BindingPatternToCarbon(pattern.binding_pattern(), out); - break; - - case Fuzzing::Pattern::kTuplePattern: - TuplePatternToCarbon(pattern.tuple_pattern(), out); - break; - - case Fuzzing::Pattern::kAlternativePattern: { - const auto& alternative_pattern = pattern.alternative_pattern(); - ExpressionToCarbon(alternative_pattern.choice_type(), out); - out << "."; - IdentifierToCarbon(alternative_pattern.alternative_name(), out); - TuplePatternToCarbon(alternative_pattern.arguments(), out); - break; - } - - // Arbitrary expression. - case Fuzzing::Pattern::kExpressionPattern: { - const auto& expression_pattern = pattern.expression_pattern(); - ExpressionToCarbon(expression_pattern.expression(), out); - break; - } - - case Fuzzing::Pattern::kAutoPattern: - out << "auto"; - break; - - case Fuzzing::Pattern::kVarPattern: - out << "var "; - PatternToCarbon(pattern.var_pattern().pattern(), out); - break; - - case Fuzzing::Pattern::kGenericBinding: - GenericBindingToCarbon(pattern.generic_binding(), out); - break; - - case Fuzzing::Pattern::kAddrPattern: - out << "addr "; - BindingPatternToCarbon(pattern.addr_pattern().binding_pattern(), out); - break; - } -} - -static auto BlockStatementToCarbon(const Fuzzing::BlockStatement& block, - llvm::raw_ostream& out) -> void { - out << "{\n"; - for (const auto& statement : block.statements()) { - StatementToCarbon(statement, out); - out << "\n"; - } - out << "}\n"; -} - -static auto StatementToCarbon(const Fuzzing::Statement& statement, - llvm::raw_ostream& out) -> void { - switch (statement.kind_case()) { - case Fuzzing::Statement::KIND_NOT_SET: - // Arbitrary default to avoid getting invalid syntax. - out << "true;\n"; - break; - - case Fuzzing::Statement::kExpressionStatement: { - const auto& expression_statement = statement.expression_statement(); - ExpressionToCarbon(expression_statement.expression(), out); - out << ";"; - break; - } - - case Fuzzing::Statement::kAssign: { - const auto& assign_statement = statement.assign(); - ExpressionToCarbon(assign_statement.lhs(), out); - switch (assign_statement.op()) { - case Fuzzing::AssignStatement::Plain: - out << " = "; - break; - case Fuzzing::AssignStatement::Add: - out << " += "; - break; - case Fuzzing::AssignStatement::And: - out << " &= "; - break; - case Fuzzing::AssignStatement::Div: - out << " /= "; - break; - case Fuzzing::AssignStatement::Mod: - out << " %= "; - break; - case Fuzzing::AssignStatement::Mul: - out << " *= "; - break; - case Fuzzing::AssignStatement::Or: - out << " |= "; - break; - case Fuzzing::AssignStatement::ShiftLeft: - out << " <<= "; - break; - case Fuzzing::AssignStatement::ShiftRight: - out << " >>= "; - break; - case Fuzzing::AssignStatement::Sub: - out << " -= "; - break; - case Fuzzing::AssignStatement::Xor: - out << " ^= "; - break; - } - ExpressionToCarbon(assign_statement.rhs(), out); - out << ";"; - break; - } - - case Fuzzing::Statement::kIncDec: { - const auto& inc_dec_statement = statement.inc_dec(); - out << (inc_dec_statement.is_increment() ? "++" : "--"); - ExpressionToCarbon(inc_dec_statement.operand(), out); - out << ";"; - break; - } - - case Fuzzing::Statement::kVariableDefinition: { - const auto& def = statement.variable_definition(); - if (def.is_returned()) { - out << "returned "; - } - out << "var "; - PatternToCarbon(def.pattern(), out); - if (def.has_init()) { - out << " = "; - ExpressionToCarbon(def.init(), out); - } - out << ";"; - break; - } - - case Fuzzing::Statement::kIfStatement: { - const auto& if_statement = statement.if_statement(); - out << "if ("; - ExpressionToCarbon(if_statement.condition(), out); - out << ") "; - BlockStatementToCarbon(if_statement.then_block(), out); - // `else` is optional. - if (if_statement.has_else_block()) { - out << " else "; - BlockStatementToCarbon(if_statement.else_block(), out); - } - break; - } - - case Fuzzing::Statement::kReturnVarStatement: { - out << "return var;"; - break; - } - - case Fuzzing::Statement::kReturnExpressionStatement: { - const auto& ret = statement.return_expression_statement(); - out << "return"; - if (!ret.is_omitted_expression()) { - out << " "; - ExpressionToCarbon(ret.expression(), out); - } - out << ";"; - break; - } - - case Fuzzing::Statement::kBlock: - BlockStatementToCarbon(statement.block(), out); - break; - - case Fuzzing::Statement::kWhileStatement: { - const auto& while_statement = statement.while_statement(); - out << "while ("; - ExpressionToCarbon(while_statement.condition(), out); - out << ") "; - BlockStatementToCarbon(while_statement.body(), out); - break; - } - case Fuzzing::Statement::kForStatement: { - const auto& for_statement = statement.for_statement(); - out << "for ("; - BindingPatternToCarbon(for_statement.var_decl(), out); - out << " in "; - ExpressionToCarbon(for_statement.target(), out); - out << ") "; - BlockStatementToCarbon(for_statement.body(), out); - break; - } - - case Fuzzing::Statement::kMatch: { - const auto& match = statement.match(); - out << "match ("; - ExpressionToCarbon(match.expression(), out); - out << ") {"; - for (const auto& clause : match.clauses()) { - if (clause.is_default()) { - out << "default"; - } else { - out << "case "; - PatternToCarbon(clause.pattern(), out); - } - out << " => "; - StatementToCarbon(clause.statement(), out); - } - out << "}"; - break; - } - - case Fuzzing::Statement::kBreakStatement: - out << "break;"; - break; - - case Fuzzing::Statement::kContinueStatement: - out << "continue;"; - break; - } -} - -static auto ReturnTermToCarbon(const Fuzzing::ReturnTerm& return_term, - llvm::raw_ostream& out) -> void { - switch (return_term.kind()) { - case Fuzzing::ReturnTerm::UnknownReturnKind: - case Fuzzing::ReturnTerm::Omitted: - break; - case Fuzzing::ReturnTerm::Auto: - out << " -> auto"; - break; - case Fuzzing::ReturnTerm::Expression: - out << " -> "; - ExpressionToCarbon(return_term.type(), out); - break; - } -} - -static auto DeclaredNameToCarbon(const Fuzzing::DeclaredName& name, - llvm::raw_ostream& out) -> void { - for (const std::string& qual : name.qualifiers()) { - IdentifierToCarbon(qual, out); - out << "."; - } - IdentifierToCarbon(name.name(), out); -} - -static auto DeclarationToCarbon(const Fuzzing::Declaration& declaration, - llvm::raw_ostream& out) -> void { - switch (declaration.kind_case()) { - case Fuzzing::Declaration::KIND_NOT_SET: { - // Arbitrary default to avoid getting invalid syntax. - out << "var x: i32;"; - break; - } - - case Fuzzing::Declaration::kNamespace: { - out << "namespace "; - DeclaredNameToCarbon(declaration.namespace_().name(), out); - out << ";"; - break; - } - - case Fuzzing::Declaration::kDestructor: { - const auto& function = declaration.destructor(); - out << "destructor"; - llvm::ListSeparator sep; - out << "["; - if (function.has_self_pattern()) { - // This is a class method. - out << sep; - PatternToCarbon(function.self_pattern(), out); - } - out << "]"; - - // Body is optional. - if (function.has_body()) { - out << "\n"; - BlockStatementToCarbon(function.body(), out); - } else { - out << ";"; - } - break; - } - case Fuzzing::Declaration::kFunction: { - const auto& function = declaration.function(); - out << "fn "; - DeclaredNameToCarbon(function.name(), out); - - if (!function.deduced_parameters().empty() || - function.has_self_pattern()) { - out << "["; - llvm::ListSeparator sep; - for (const Fuzzing::GenericBinding& p : function.deduced_parameters()) { - out << sep; - GenericBindingToCarbon(p, out); - } - if (function.has_self_pattern()) { - // This is a class method. - out << sep; - PatternToCarbon(function.self_pattern(), out); - } - out << "]"; - } - TuplePatternToCarbon(function.param_pattern(), out); - ReturnTermToCarbon(function.return_term(), out); - - // Body is optional. - if (function.has_body()) { - out << "\n"; - BlockStatementToCarbon(function.body(), out); - } else { - out << ";"; - } - break; - } - - case Fuzzing::Declaration::kClassDeclaration: { - const auto& class_declaration = declaration.class_declaration(); - out << "class "; - DeclaredNameToCarbon(class_declaration.name(), out); - - // type_params is optional. - if (class_declaration.has_type_params()) { - TuplePatternToCarbon(class_declaration.type_params(), out); - } - - out << "{\n"; - for (const auto& member : class_declaration.members()) { - DeclarationToCarbon(member, out); - out << "\n"; - } - out << "}"; - break; - } - - case Fuzzing::Declaration::kExtendBase: { - const auto& extend_base_declaration = declaration.extend_base(); - out << " extend base: "; - ExpressionToCarbon(extend_base_declaration.base_class(), out); - out << ";\n"; - break; - } - - // EXPERIMENTAL MIXIN FEATURE - case Fuzzing::Declaration::kMixin: { - const auto& mixin_declaration = declaration.mixin(); - out << "__mixin "; - DeclaredNameToCarbon(mixin_declaration.name(), out); - - // type params are not implemented yet - // if (mixin_declaration.has_params()) { - // TuplePatternToCarbon(mixin_declaration.params(), out); - //} - - out << "{\n"; - for (const auto& member : mixin_declaration.members()) { - DeclarationToCarbon(member, out); - out << "\n"; - } - out << "}"; - // TODO: need to handle interface.self()? - break; - } - - // EXPERIMENTAL MIXIN FEATURE - case Fuzzing::Declaration::kMix: { - const auto& mix_declaration = declaration.mix(); - out << "__mix "; - ExpressionToCarbon(mix_declaration.mixin(), out); - out << ";"; - break; - } - - case Fuzzing::Declaration::kChoice: { - const auto& choice = declaration.choice(); - out << "choice "; - DeclaredNameToCarbon(choice.name(), out); - - out << "{"; - llvm::ListSeparator sep; - for (const auto& alternative : choice.alternatives()) { - out << sep; - IdentifierToCarbon(alternative.name(), out); - if (alternative.has_signature()) { - TupleLiteralExpressionToCarbon(alternative.signature(), out); - } - } - out << "}"; - break; - } - - case Fuzzing::Declaration::kVariable: { - const auto& var = declaration.variable(); - out << "var "; - BindingPatternToCarbon(var.binding(), out); - - // Initializer is optional. - if (var.has_initializer()) { - out << " = "; - ExpressionToCarbon(var.initializer(), out); - } - out << ";"; - break; - } - - case Fuzzing::Declaration::kLet: { - const auto& let = declaration.let(); - out << "let "; - PatternToCarbon(let.pattern(), out); - - // TODO: Print out the initializer once it's supported. - // if (let.has_initializer()) { - // out << " = "; - // ExpressionToCarbon(let.initializer(), out); - // } - out << ";"; - break; - } - - case Fuzzing::Declaration::kInterfaceExtend: { - const auto& extend = declaration.interface_extend(); - out << "extend "; - ExpressionToCarbon(extend.base(), out); - out << ";"; - break; - } - - case Fuzzing::Declaration::kInterfaceRequire: { - const auto& impl = declaration.interface_require(); - out << "require "; - ExpressionToCarbon(impl.impl_type(), out); - out << " impls "; - ExpressionToCarbon(impl.constraint(), out); - out << ";"; - break; - } - - case Fuzzing::Declaration::kInterface: { - const auto& interface = declaration.interface(); - out << "interface "; - DeclaredNameToCarbon(interface.name(), out); - out << " {\n"; - for (const auto& member : interface.members()) { - DeclarationToCarbon(member, out); - out << "\n"; - } - out << "}"; - break; - } - - case Fuzzing::Declaration::kConstraint: { - const auto& constraint = declaration.constraint(); - out << "constraint "; - DeclaredNameToCarbon(constraint.name(), out); - out << " {\n"; - for (const auto& member : constraint.members()) { - DeclarationToCarbon(member, out); - out << "\n"; - } - out << "}"; - break; - } - - case Fuzzing::Declaration::kImpl: { - const auto& impl = declaration.impl(); - if (impl.kind() == Fuzzing::ImplDeclaration::InternalImpl) { - out << "extend "; - } - out << "impl "; - if (!impl.deduced_parameters().empty()) { - out << "forall ["; - llvm::ListSeparator sep; - for (const Fuzzing::GenericBinding& p : impl.deduced_parameters()) { - out << sep; - GenericBindingToCarbon(p, out); - } - out << "] "; - } - if (impl.kind() != Fuzzing::ImplDeclaration::InternalImpl) { - ExpressionToCarbon(impl.impl_type(), out); - out << " "; - } - out << "as "; - ExpressionToCarbon(impl.interface(), out); - out << " {\n"; - for (const auto& member : impl.members()) { - DeclarationToCarbon(member, out); - out << "\n"; - } - out << "}"; - break; - } - - case Fuzzing::Declaration::kMatchFirst: { - const auto& match_first = declaration.match_first(); - out << "__match_first {\n"; - for (const auto& impl : match_first.impl_declarations()) { - DeclarationToCarbon(impl, out); - out << "\n"; - } - out << "}"; - break; - } - - case Fuzzing::Declaration::kAlias: { - const auto& alias = declaration.alias(); - out << "alias "; - DeclaredNameToCarbon(alias.name(), out); - out << " = "; - ExpressionToCarbon(alias.target(), out); - out << ";"; - break; - } - } -} - -auto ProtoToCarbon(const Fuzzing::Carbon& proto, bool maybe_add_main) - -> std::string { - std::string source; - llvm::raw_string_ostream out(source); - - out << "// Generated by proto_to_carbon.\n" - "package "; - const auto& unit = proto.compilation_unit(); - LibraryNameToCarbon(unit.package_statement(), out); - out << (unit.is_api() ? " api" : " impl") << ";\n\n"; - - bool has_main = false; - if (!unit.declarations().empty()) { - for (const auto& declaration : unit.declarations()) { - DeclarationToCarbon(declaration, out); - if (declaration.kind_case() == Fuzzing::Declaration::kFunction && - declaration.function().name().name() == "Main") { - has_main = true; - } - out << "\n"; - } - } - - if (maybe_add_main && !has_main) { - out << "fn Main() -> i32 { return 0; }\n"; - } - - return source; -} - -auto ParseCarbonTextProto(const std::string& contents) - -> ErrorOr { - google::protobuf::TextFormat::Parser parser; - Fuzzing::Carbon carbon_proto; - if (!parser.ParseFromString(contents, &carbon_proto)) { - return ErrorBuilder() << "Couldn't parse Carbon text proto"; - } - return carbon_proto; -} - -} // namespace Carbon - -// NOLINTEND(misc-no-recursion) diff --git a/testing/fuzzing/proto_to_carbon.h b/testing/fuzzing/proto_to_carbon.h deleted file mode 100644 index 4455c77ec4474..0000000000000 --- a/testing/fuzzing/proto_to_carbon.h +++ /dev/null @@ -1,27 +0,0 @@ -// Part of the Carbon Language project, under the Apache License v2.0 with LLVM -// Exceptions. See /LICENSE for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -#ifndef CARBON_TESTING_FUZZING_PROTO_TO_CARBON_H_ -#define CARBON_TESTING_FUZZING_PROTO_TO_CARBON_H_ - -#include "common/error.h" -#include "testing/fuzzing/carbon.pb.h" - -namespace Carbon { - -// Builds a Carbon source from `compilation_unit`. The logic tries to produce a -// syntactially valid Carbon source for all cases, even if the input protocol -// buffer is invalid (like a variable declaration with an empty `name` field). -// This is done to reduce the number of inputs the fuzzer framework generates -// when trying to produce lexically valid source. -auto ProtoToCarbon(const Fuzzing::Carbon& proto, bool maybe_add_main) - -> std::string; - -// Parses the textproto into a proto object. -auto ParseCarbonTextProto(const std::string& contents) - -> ErrorOr; - -} // namespace Carbon - -#endif // CARBON_TESTING_FUZZING_PROTO_TO_CARBON_H_ diff --git a/testing/fuzzing/proto_to_carbon_main.cpp b/testing/fuzzing/proto_to_carbon_main.cpp deleted file mode 100644 index a8af59c928cd4..0000000000000 --- a/testing/fuzzing/proto_to_carbon_main.cpp +++ /dev/null @@ -1,51 +0,0 @@ -// Part of the Carbon Language project, under the Apache License v2.0 with LLVM -// Exceptions. See /LICENSE for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -// To convert a crashing input in text proto to Carbon source: -// `proto_to_carbon ` - -#include - -#include -#include -#include - -#include "common/bazel_working_dir.h" -#include "common/error.h" -#include "testing/fuzzing/proto_to_carbon.h" - -namespace Carbon { - -static auto Main(int argc, char** argv) -> ErrorOr { - Carbon::SetWorkingDirForBazel(); - - if (argc != 2) { - return Error("Syntax: proto_to_carbon "); - } - if (!std::filesystem::is_regular_file(argv[1])) { - return Error("Argument must be a file."); - } - - // Read the input file. - std::ifstream proto_file(argv[1]); - std::stringstream buffer; - buffer << proto_file.rdbuf(); - proto_file.close(); - - CARBON_ASSIGN_OR_RETURN(Fuzzing::Carbon proto, - Carbon::ParseCarbonTextProto(buffer.str())); - std::cout << Carbon::ProtoToCarbon(proto, /*maybe_add_main=*/true); - return Success(); -} - -} // namespace Carbon - -auto main(int argc, char** argv) -> int { - auto err = Carbon::Main(argc, argv); - if (!err.ok()) { - std::cerr << err.error().message() << "\n"; - return EXIT_FAILURE; - } - return EXIT_SUCCESS; -} diff --git a/testing/fuzzing/proto_to_carbon_test.cpp b/testing/fuzzing/proto_to_carbon_test.cpp deleted file mode 100644 index 063fe9ab2f328..0000000000000 --- a/testing/fuzzing/proto_to_carbon_test.cpp +++ /dev/null @@ -1,73 +0,0 @@ -// Part of the Carbon Language project, under the Apache License v2.0 with LLVM -// Exceptions. See /LICENSE for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception - -#include "testing/fuzzing/proto_to_carbon.h" - -#include -#include - -#include "common/error.h" -#include "testing/fuzzing/carbon.pb.h" - -namespace Carbon::Testing { -namespace { - -TEST(FuzzerUtilTest, ProtoToCarbon) { - const ErrorOr carbon_proto = ParseCarbonTextProto(R"( - compilation_unit { - package_statement { package_name: "P" } - is_api: true - declarations { - function { - name { - name: "Main" - } - param_pattern {} - return_term { - kind: Expression - type { int_type_literal {} } - } - body { - statements { - return_expression_statement { - expression { int_literal { value: 0 } } - } - } - } - } - } - })"); - ASSERT_TRUE(carbon_proto.ok()); - static constexpr char SourceCode[] = R"(// Generated by proto_to_carbon. -package P api; - -fn Main() -> i32 -{ -return 0; -} - -)"; - EXPECT_THAT(ProtoToCarbon(*carbon_proto, /*maybe_add_main=*/false), - testing::Eq(SourceCode)); - EXPECT_THAT(ProtoToCarbon(*carbon_proto, /*maybe_add_main=*/true), - testing::Eq(SourceCode)); -} - -TEST(FuzzerUtilTest, ParseCarbonTextProtoWithUnknownField) { - const ErrorOr carbon_proto = ParseCarbonTextProto(R"( - compilation_unit { - garbage: "value" - declarations { - choice { - name { - name: "Ch" - } - } - } - })"); - ASSERT_FALSE(carbon_proto.ok()); -} - -} // namespace -} // namespace Carbon::Testing