omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / tests / universal / translation / fixtures-f2-cpp.json
| 1 | { |
| 2 | "schema": "omega.universal.fixtures.v1", |
| 3 | "set": "F2-cpp", |
| 4 | "contract": "spec/universal/translation-compose-v2.md", |
| 5 | "profile": "spec/universal/cpp-u64-v1.md", |
| 6 | "from": "tests/universal/translation/fixtures-f1.json", |
| 7 | "note": "Every F1 positive is expressible in cpp17-uint64-pure-v1 (constants rewritten as std::uint64_t{<decimal>ULL}, (void) as ()); not_in_profile is empty. Refusals are new C++-profile fixtures, not F1 refusals.", |
| 8 | "positives": [ |
| 9 | { |
| 10 | "id": "F2-cpp-F1-P00", |
| 11 | "f1_id": "F1-P00", |
| 12 | "f1_sha256": "250e3228f00b4c0cd60df70092f50106dce54f081cc77d4f3a24f7d2b5af8c4c", |
| 13 | "name": "calc", |
| 14 | "inputs": 2, |
| 15 | "sha256": "9cc4681a263d6aa62dcd343489c5de531ab73d1d72cbad8ad27f49fbb697e4d8", |
| 16 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a; }\n" |
| 17 | }, |
| 18 | { |
| 19 | "id": "F2-cpp-F1-P01", |
| 20 | "f1_id": "F1-P01", |
| 21 | "f1_sha256": "cc4a3ac6374b8c68eb99de6540e6896ef4c41aea9eb5fb5c1f0ae4be52662456", |
| 22 | "name": "calc", |
| 23 | "inputs": 2, |
| 24 | "sha256": "0521e328121989ab5871f3fd14b285bcc9c111937014b57e8c154121e0e5649a", |
| 25 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return b; }\n" |
| 26 | }, |
| 27 | { |
| 28 | "id": "F2-cpp-F1-P02", |
| 29 | "f1_id": "F1-P02", |
| 30 | "f1_sha256": "2ab81c70d64699c9afe59cda7d49edcb577e10a57e32f2402af6ad67a0632c3e", |
| 31 | "name": "calc", |
| 32 | "inputs": 2, |
| 33 | "sha256": "431613eb0b0bc214e203dd1c8c7b5380a4decd0a783f1aa301536764b2b70336", |
| 34 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a+b; }\n" |
| 35 | }, |
| 36 | { |
| 37 | "id": "F2-cpp-F1-P03", |
| 38 | "f1_id": "F1-P03", |
| 39 | "f1_sha256": "ce4e5d1d53ed51443e3b940939a21b8fff9bb35db202438920f398938c0f7fb6", |
| 40 | "name": "calc", |
| 41 | "inputs": 2, |
| 42 | "sha256": "958480ce724147adb6be81149edc98d0f27e1eb1acaf263ab959559e194c537f", |
| 43 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a-b; }\n" |
| 44 | }, |
| 45 | { |
| 46 | "id": "F2-cpp-F1-P04", |
| 47 | "f1_id": "F1-P04", |
| 48 | "f1_sha256": "78db75440f5b5da2dafb59d0f771b696171c24d2698677f959e2ab430a2ebfd6", |
| 49 | "name": "calc", |
| 50 | "inputs": 2, |
| 51 | "sha256": "3d9b81e6d4acd962f2c9aa55580578116d3ade72ac8b4784b7cb72fde0170651", |
| 52 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a*b; }\n" |
| 53 | }, |
| 54 | { |
| 55 | "id": "F2-cpp-F1-P05", |
| 56 | "f1_id": "F1-P05", |
| 57 | "f1_sha256": "277232cc9416a0c4f06004c5b00dbaab33952fc411c7e42f505f324026ca1765", |
| 58 | "name": "calc", |
| 59 | "inputs": 2, |
| 60 | "sha256": "a7f53970047fa8cdf24b987357d24ac48ed917c937b77ae7d57241005df27563", |
| 61 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return (a+b)*(a-b); }\n" |
| 62 | }, |
| 63 | { |
| 64 | "id": "F2-cpp-F1-P06", |
| 65 | "f1_id": "F1-P06", |
| 66 | "f1_sha256": "4332e4105d4442afba0b586e9574f1f192d7ed740099228eae26ad15473a5099", |
| 67 | "name": "calc", |
| 68 | "inputs": 2, |
| 69 | "sha256": "82b58d122f64cef014dc161b11b174922ddc55b6f7cfb17c1ee192487b847012", |
| 70 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a+std::uint64_t{0ULL}; }\n" |
| 71 | }, |
| 72 | { |
| 73 | "id": "F2-cpp-F1-P07", |
| 74 | "f1_id": "F1-P07", |
| 75 | "f1_sha256": "7339bf648758434626305006d637470ca6d97399010515134dd4358940641451", |
| 76 | "name": "calc", |
| 77 | "inputs": 2, |
| 78 | "sha256": "91a965fc3ef53c19529aeb479c6ee98f82da3475a6c30f895240d749ec3418c2", |
| 79 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a-std::uint64_t{1ULL}; }\n" |
| 80 | }, |
| 81 | { |
| 82 | "id": "F2-cpp-F1-P08", |
| 83 | "f1_id": "F1-P08", |
| 84 | "f1_sha256": "9bb734b9718ebfbfac521731fa2bbd0ea59b201afc77ca385bcce151fa76a703", |
| 85 | "name": "calc", |
| 86 | "inputs": 2, |
| 87 | "sha256": "7294a41349f8709f481b9bc9a533436bfffcd6b197dec116dc199c2a187e1f94", |
| 88 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a*std::uint64_t{2ULL}; }\n" |
| 89 | }, |
| 90 | { |
| 91 | "id": "F2-cpp-F1-P09", |
| 92 | "f1_id": "F1-P09", |
| 93 | "f1_sha256": "9d409851a2558cf54315c84c4917ec67d1bee299ff7d371557d707416542b631", |
| 94 | "name": "calc", |
| 95 | "inputs": 2, |
| 96 | "sha256": "efad455d03e8a94871c5639599cbdcb7589f67fb679b3f42d1edac06790e6fe5", |
| 97 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return std::uint64_t{0ULL}-a; }\n" |
| 98 | }, |
| 99 | { |
| 100 | "id": "F2-cpp-F1-P10", |
| 101 | "f1_id": "F1-P10", |
| 102 | "f1_sha256": "aa0163f4a11aa259d38605ed3d26a56cbd80b381b32a9a20ffa10f82dbcd68ea", |
| 103 | "name": "calc", |
| 104 | "inputs": 2, |
| 105 | "sha256": "746aee4003baa7bcd1f1821330071abd655011ac63177cf28c7ccdd215c6e7ca", |
| 106 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return std::uint64_t{18446744073709551615ULL}+a; }\n" |
| 107 | }, |
| 108 | { |
| 109 | "id": "F2-cpp-F1-P11", |
| 110 | "f1_id": "F1-P11", |
| 111 | "f1_sha256": "83d8dadc4e596492af0bd7c79b865fd5c5cb6b8536370706f95efd5c59f261d5", |
| 112 | "name": "calc", |
| 113 | "inputs": 2, |
| 114 | "sha256": "ad19bae3fdf15b0b7c795c58e2fbd0c570bb806515d0199c9062111eed2f322d", |
| 115 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a*b+std::uint64_t{3ULL}; }\n" |
| 116 | }, |
| 117 | { |
| 118 | "id": "F2-cpp-F1-P12", |
| 119 | "f1_id": "F1-P12", |
| 120 | "f1_sha256": "a23775feb8d8822fc987bc087356a2dec17d4a85dd9a8fceb36606dac6e28572", |
| 121 | "name": "calc", |
| 122 | "inputs": 2, |
| 123 | "sha256": "20a96ff6e9a195f1b4f17cbd6ce8b114efade29e6226a3fba9e6010fab0b4040", |
| 124 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a+a+b; }\n" |
| 125 | }, |
| 126 | { |
| 127 | "id": "F2-cpp-F1-P13", |
| 128 | "f1_id": "F1-P13", |
| 129 | "f1_sha256": "23bc6a271dbba691f7a87f0f37e15ab125cecf8be229ab965777342266252ad2", |
| 130 | "name": "calc", |
| 131 | "inputs": 2, |
| 132 | "sha256": "9a8412b0b4d992f57f3b704e15ec2eb8f7598c6b8c89fb86ce6f36e25777db22", |
| 133 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a+(a+b); }\n" |
| 134 | }, |
| 135 | { |
| 136 | "id": "F2-cpp-F1-P14", |
| 137 | "f1_id": "F1-P14", |
| 138 | "f1_sha256": "11c77e44f631b68afbf893f347a6e94498aae6213af99950deb03eea53f6da05", |
| 139 | "name": "calc", |
| 140 | "inputs": 2, |
| 141 | "sha256": "1140c84240c5973b3259b3de86f5cabaa31ce4491c5561d1c0c994b71ab4fe02", |
| 142 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a-b-b; }\n" |
| 143 | }, |
| 144 | { |
| 145 | "id": "F2-cpp-F1-P15", |
| 146 | "f1_id": "F1-P15", |
| 147 | "f1_sha256": "c5f7c9fdc269761e8ad7a4a3fa9ed0a2a2ccd7115cd2721a503203c778a2da2f", |
| 148 | "name": "calc", |
| 149 | "inputs": 2, |
| 150 | "sha256": "a7642911f254e6a0c340c3941ef3a1e77114cacbcd2af793e9e6abb79a3fedb3", |
| 151 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a-(b-b); }\n" |
| 152 | }, |
| 153 | { |
| 154 | "id": "F2-cpp-F1-P16", |
| 155 | "f1_id": "F1-P16", |
| 156 | "f1_sha256": "d17614f4cb5234a2234af049027f78f1f49a5f6f03d5f2e5c7c2b4b580f263c5", |
| 157 | "name": "calc", |
| 158 | "inputs": 2, |
| 159 | "sha256": "85c4c4d740bec8e0524ab194182afb73f30b3366a77924ee107bc5957dd0d47e", |
| 160 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a*b*a; }\n" |
| 161 | }, |
| 162 | { |
| 163 | "id": "F2-cpp-F1-P17", |
| 164 | "f1_id": "F1-P17", |
| 165 | "f1_sha256": "a686cff8ae29e41a88bd4904c479806fec36f691e87d5732de68f59f319c694d", |
| 166 | "name": "calc", |
| 167 | "inputs": 2, |
| 168 | "sha256": "39f12965f2dc12c704b41911a9ccfd77c189e9af7cbb24c6eb65d6f4489ab961", |
| 169 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a*(b*a); }\n" |
| 170 | }, |
| 171 | { |
| 172 | "id": "F2-cpp-F1-P18", |
| 173 | "f1_id": "F1-P18", |
| 174 | "f1_sha256": "262e9b705e8ba8c433e540f49209540cc7406bacb7e3b95c0b1cd5ad869af607", |
| 175 | "name": "calc", |
| 176 | "inputs": 2, |
| 177 | "sha256": "b64690c922a04e1d8c5774ed2bd821a7ac1a634745dcdea2bbe001c792208f90", |
| 178 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return std::uint64_t{123ULL}; }\n" |
| 179 | }, |
| 180 | { |
| 181 | "id": "F2-cpp-F1-P19", |
| 182 | "f1_id": "F1-P19", |
| 183 | "f1_sha256": "0b7ae5fc5fcacdd7b3040571e1838c324ba755ab1e9ecf7ba363e4d05d118511", |
| 184 | "name": "calc", |
| 185 | "inputs": 2, |
| 186 | "sha256": "0b0319e21ddc6095925c0f3362b9340abc7902eb449a7535b20b89c3bdf83922", |
| 187 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return ((a)); }\n" |
| 188 | }, |
| 189 | { |
| 190 | "id": "F2-cpp-F1-P20", |
| 191 | "f1_id": "F1-P20", |
| 192 | "f1_sha256": "e83ba5c9beccb2a5639359cbca57afd15b7a508aa86d912ce861d7b14b335d50", |
| 193 | "name": "calc", |
| 194 | "inputs": 2, |
| 195 | "sha256": "a4020b23fccf3583b98218c178374964f5114a72fb42dc3aed83ce20d5f31f0b", |
| 196 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return (a+b)*(b+std::uint64_t{1ULL}); }\n" |
| 197 | }, |
| 198 | { |
| 199 | "id": "F2-cpp-F1-P21", |
| 200 | "f1_id": "F1-P21", |
| 201 | "f1_sha256": "62ddab9112329da4fb6a45eb8ca1939e51c8bbfe0db85ba3784c4df0b078e757", |
| 202 | "name": "calc", |
| 203 | "inputs": 2, |
| 204 | "sha256": "163395cb6968c6fd02188b420cd85f9a412c539fa076a59238a75b0fd159074d", |
| 205 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a+b*std::uint64_t{2ULL}; }\n" |
| 206 | }, |
| 207 | { |
| 208 | "id": "F2-cpp-F1-P22", |
| 209 | "f1_id": "F1-P22", |
| 210 | "f1_sha256": "f2472d246de322a108e5bc3098e7d7e359e7511b9ca07723c2560130ffc86656", |
| 211 | "name": "calc", |
| 212 | "inputs": 2, |
| 213 | "sha256": "162ac892097ef3f0e48771d4addc36ebf6b293628103f201e0a78ec9593799b5", |
| 214 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return (a+b)*std::uint64_t{2ULL}; }\n" |
| 215 | }, |
| 216 | { |
| 217 | "id": "F2-cpp-F1-P23", |
| 218 | "f1_id": "F1-P23", |
| 219 | "f1_sha256": "6ac071f7821d7d29ca2e3961b90a89471e3f8f1a3150e06b1ab4642183ff6121", |
| 220 | "name": "calc", |
| 221 | "inputs": 2, |
| 222 | "sha256": "a27601c90d5f7c08d1c0cb808596cf0812ba572dc11c985a07e9bc53cfcfe1db", |
| 223 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a-std::uint64_t{2ULL}*b; }\n" |
| 224 | }, |
| 225 | { |
| 226 | "id": "F2-cpp-F1-P24", |
| 227 | "f1_id": "F1-P24", |
| 228 | "f1_sha256": "f844f1cd780ee05f2e0218ce28afef6ae528d7d89c570253cdb8d82084784511", |
| 229 | "name": "calc", |
| 230 | "inputs": 2, |
| 231 | "sha256": "137314fa804d105c489d5b7646f7c924737f3e716a9994dc2a8263660aa21c6d", |
| 232 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return (a-std::uint64_t{2ULL})*b; }\n" |
| 233 | }, |
| 234 | { |
| 235 | "id": "F2-cpp-F1-P25", |
| 236 | "f1_id": "F1-P25", |
| 237 | "f1_sha256": "e446180a9b2462c5508e23bbd94371e2c0ee409a6b540a219a70026fe15fb568", |
| 238 | "name": "calc", |
| 239 | "inputs": 2, |
| 240 | "sha256": "37f622b82922957c35e4e5ce68fecdd10293a0b703c8e4c4d5791eca82181b03", |
| 241 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a+std::uint64_t{18446744073709551615ULL}*b; }\n" |
| 242 | }, |
| 243 | { |
| 244 | "id": "F2-cpp-F1-P26", |
| 245 | "f1_id": "F1-P26", |
| 246 | "f1_sha256": "26762c67b1d44a63563289ecd4c80ee13655629a93ac95bc727a9d59d74eccf7", |
| 247 | "name": "calc", |
| 248 | "inputs": 2, |
| 249 | "sha256": "e7f9025f19c97ef8426564ab5a264d7773bb2b76b7d55269ae8e066fff1ca47d", |
| 250 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return std::uint64_t{2ULL}*std::uint64_t{3ULL}+std::uint64_t{4ULL}; }\n" |
| 251 | }, |
| 252 | { |
| 253 | "id": "F2-cpp-F1-P27", |
| 254 | "f1_id": "F1-P27", |
| 255 | "f1_sha256": "412ea121023c650878fc8e0dc12146e7dc9a083b3c9fde4adf813ace9baec525", |
| 256 | "name": "calc", |
| 257 | "inputs": 2, |
| 258 | "sha256": "f79b7f2dff21413f83190a06664122f5ec44fe0ec05f0a006103a74be7cfd436", |
| 259 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return std::uint64_t{2ULL}*(std::uint64_t{3ULL}+std::uint64_t{4ULL}); }\n" |
| 260 | }, |
| 261 | { |
| 262 | "id": "F2-cpp-F1-P28", |
| 263 | "f1_id": "F1-P28", |
| 264 | "f1_sha256": "e8b386f48e1ae8e8d91a073518e0c792e7c54e1a9cca283b37662aa66f636392", |
| 265 | "name": "calc", |
| 266 | "inputs": 2, |
| 267 | "sha256": "77b09bf64289b02686dbfd5c778909ae67b6b3c1039181d0f0e3f8d31b617bdb", |
| 268 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a-b+a*b; }\n" |
| 269 | }, |
| 270 | { |
| 271 | "id": "F2-cpp-F1-P29", |
| 272 | "f1_id": "F1-P29", |
| 273 | "f1_sha256": "5ccf53bf81d312f299d2b5e916447830417b61a1e1a696460d7121dabb941106", |
| 274 | "name": "calc", |
| 275 | "inputs": 2, |
| 276 | "sha256": "89065dc10408e57e2184d60a4e65e9820c076fe5af247a5a8b8282211ee90111", |
| 277 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return (a+a)*(b+b); }\n" |
| 278 | }, |
| 279 | { |
| 280 | "id": "F2-cpp-F1-P30", |
| 281 | "f1_id": "F1-P30", |
| 282 | "f1_sha256": "01332f15d4dc15b52bfb8f1ad9ee7c5eeb1e9cbeec229e1ebe790678b28d7963", |
| 283 | "name": "calc", |
| 284 | "inputs": 0, |
| 285 | "sha256": "606fb3fd54167e3ed7790dca996e8dc78bee0cbfd11ce64b190ec937f7352778", |
| 286 | "source": "#include <cstdint>\nstd::uint64_t calc() { return std::uint64_t{7ULL}; }\n" |
| 287 | }, |
| 288 | { |
| 289 | "id": "F2-cpp-F1-P31", |
| 290 | "f1_id": "F1-P31", |
| 291 | "f1_sha256": "255692046d239f102f700df892a5519525d7615e3cba14517be1f383e2aa5644", |
| 292 | "name": "calc", |
| 293 | "inputs": 1, |
| 294 | "sha256": "360694a9e3f32a561ecd7e375a67f6c53df7ce201653a8f57dec28d81f657ad9", |
| 295 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t x) { return x; }\n" |
| 296 | }, |
| 297 | { |
| 298 | "id": "F2-cpp-F1-P32", |
| 299 | "f1_id": "F1-P32", |
| 300 | "f1_sha256": "14daf8acaa708f00035d3d6dcc7bb5ce341a4f859cb9fc89517d6a5a6b18bf5b", |
| 301 | "name": "calc", |
| 302 | "inputs": 6, |
| 303 | "sha256": "dd5c8e1dae6c5fe97506613e17d1e5a03345991adaa2e36267978411910f8e93", |
| 304 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a,std::uint64_t b,std::uint64_t c,std::uint64_t d,std::uint64_t e,std::uint64_t f) { return a+b+c+d+e+f; }\n" |
| 305 | }, |
| 306 | { |
| 307 | "id": "F2-cpp-F1-P33", |
| 308 | "f1_id": "F1-P33", |
| 309 | "f1_sha256": "48d398126ae85ad37b7fa9b96acd0d84a3bc980bed9c176843da4dc52ed4b6ef", |
| 310 | "name": "calc", |
| 311 | "inputs": 2, |
| 312 | "sha256": "ba8bf09668826d47218b311826a9c1d3b6a4a573a33685bf8749ed3fe109a42f", |
| 313 | "source": "#include <cstdint>\n/* α comment retained */\nstd::uint64_t calc(std::uint64_t left,std::uint64_t right) { /* keep */ return left*right; }\r\n" |
| 314 | }, |
| 315 | { |
| 316 | "id": "F2-cpp-F1-P34", |
| 317 | "f1_id": "F1-P34", |
| 318 | "f1_sha256": "7c48737aa01323118ce87f9c95ed39edf11b554cd9fd9e8741b30fa548555dc6", |
| 319 | "name": "omega_fold", |
| 320 | "inputs": 2, |
| 321 | "sha256": "2f4ea48a632fbf59e23197300dd8e980a2da0f95c19931deeb9039bd7c64d2b2", |
| 322 | "source": "#include <cstdint>\nstd::uint64_t omega_fold(std::uint64_t a,std::uint64_t b){return a*b+std::uint64_t{42ULL};}\n" |
| 323 | } |
| 324 | ], |
| 325 | "not_in_profile": [], |
| 326 | "refusals": [ |
| 327 | { |
| 328 | "id": "F2-cpp-N000", |
| 329 | "name": "nul-byte", |
| 330 | "status": 65, |
| 331 | "reason": "NUL byte in the source", |
| 332 | "sha256": "7983926639730171e8641ea746210a76dd85ab333b344a672580dc38bee575f8", |
| 333 | "source_hex": "23696e636c756465203c63737464696e743e0a7374643a3a75696e7436345f742063616c63287374643a3a75696e7436345f7420612c207374643a3a75696e7436345f74206229207b2072657475726e20613b207d0a00" |
| 334 | }, |
| 335 | { |
| 336 | "id": "F2-cpp-N001", |
| 337 | "name": "unterminated-block-comment", |
| 338 | "status": 65, |
| 339 | "reason": "block comment without */", |
| 340 | "sha256": "6432ec0cf2fbf46b43da8854ab9d2d5539c195c5d09c45a3703d0c283a624301", |
| 341 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a; } /* open\n" |
| 342 | }, |
| 343 | { |
| 344 | "id": "F2-cpp-N002", |
| 345 | "name": "missing-semicolon", |
| 346 | "status": 65, |
| 347 | "reason": "return statement without ;", |
| 348 | "sha256": "0f894b64b519c92d97303e14e16dcc29c1e6a61f8082087942779f27b91b5142", |
| 349 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a }\n" |
| 350 | }, |
| 351 | { |
| 352 | "id": "F2-cpp-N003", |
| 353 | "name": "trailing-comma-params", |
| 354 | "status": 65, |
| 355 | "reason": "trailing comma in the parameter list (one spelling)", |
| 356 | "sha256": "99874449ae0ee7e8a2efd2d09e69c1f62d8475b96efca935129ddb1097645c70", |
| 357 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, ) { return a; }\n" |
| 358 | }, |
| 359 | { |
| 360 | "id": "F2-cpp-N004", |
| 361 | "name": "empty-return", |
| 362 | "status": 65, |
| 363 | "reason": "return without an expression", |
| 364 | "sha256": "fbc285673f3e2df0d0aee671ae6582b2748af30f2172abb7c193239d7e6f8f76", |
| 365 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return ; }\n" |
| 366 | }, |
| 367 | { |
| 368 | "id": "F2-cpp-N005", |
| 369 | "name": "default-argument", |
| 370 | "status": 65, |
| 371 | "reason": "default arguments are not part of the profile", |
| 372 | "sha256": "010858c8671327192f6f41352f34efeabf4258742120151097d3554d57702698", |
| 373 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a = std::uint64_t{1ULL}) { return a; }\n" |
| 374 | }, |
| 375 | { |
| 376 | "id": "F2-cpp-N006", |
| 377 | "name": "unbalanced-paren", |
| 378 | "status": 65, |
| 379 | "reason": "missing )", |
| 380 | "sha256": "bd5926a9252dd859c7dd61046b241f3000384236cb8fca7ee4213612f42074d2", |
| 381 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return (a + b; }\n" |
| 382 | }, |
| 383 | { |
| 384 | "id": "F2-cpp-N007", |
| 385 | "name": "unqualified-return-type", |
| 386 | "status": 66, |
| 387 | "reason": "<cstdint> guarantees only std::uint64_t; global ::uint64_t is unspecified", |
| 388 | "sha256": "e6371dd964853a8353701c73b1ef8bc02bc41bc92fe177df7ca4823482450770", |
| 389 | "source": "#include <cstdint>\nuint64_t calc(std::uint64_t a, std::uint64_t b) { return a; }\n" |
| 390 | }, |
| 391 | { |
| 392 | "id": "F2-cpp-N008", |
| 393 | "name": "unqualified-param-type", |
| 394 | "status": 66, |
| 395 | "reason": "parameter type spelled uint64_t, not std::uint64_t", |
| 396 | "sha256": "a05eea58a9abc4b1eb7ece2a09fce8c7af408189e66a1127994d5a6577449831", |
| 397 | "source": "#include <cstdint>\nstd::uint64_t calc(uint64_t a) { return a; }\n" |
| 398 | }, |
| 399 | { |
| 400 | "id": "F2-cpp-N009", |
| 401 | "name": "int-return", |
| 402 | "status": 66, |
| 403 | "reason": "int return type", |
| 404 | "sha256": "c80165fec89917c98e34d8a6ed52b4e3234addeef26ca596b1f88d3a3651e00c", |
| 405 | "source": "#include <cstdint>\nint calc(std::uint64_t a, std::uint64_t b) { return a; }\n" |
| 406 | }, |
| 407 | { |
| 408 | "id": "F2-cpp-N010", |
| 409 | "name": "unsigned-long-long-param", |
| 410 | "status": 66, |
| 411 | "reason": "unsigned long long is not spelled std::uint64_t (and is a distinct type on LP64)", |
| 412 | "sha256": "1c8c1e20371ef301400be7f1c07b236b82c4bb5e13c66b29a1c4edf4bf544139", |
| 413 | "source": "#include <cstdint>\nstd::uint64_t calc(unsigned long long a) { return a; }\n" |
| 414 | }, |
| 415 | { |
| 416 | "id": "F2-cpp-N011", |
| 417 | "name": "int64-param", |
| 418 | "status": 66, |
| 419 | "reason": "signed std::int64_t", |
| 420 | "sha256": "7121427603fb2a470749901d88963cfca8409f7a6dfc57d13d59b385b7e5bcba", |
| 421 | "source": "#include <cstdint>\nstd::uint64_t calc(std::int64_t a) { return a; }\n" |
| 422 | }, |
| 423 | { |
| 424 | "id": "F2-cpp-N012", |
| 425 | "name": "uint32-param", |
| 426 | "status": 66, |
| 427 | "reason": "narrow std::uint32_t would promote", |
| 428 | "sha256": "cf240c6d157d586139a1bd343299b21b7544273ee6803f1911f794a359f0ccac", |
| 429 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint32_t a) { return a; }\n" |
| 430 | }, |
| 431 | { |
| 432 | "id": "F2-cpp-N013", |
| 433 | "name": "size-t-param", |
| 434 | "status": 66, |
| 435 | "reason": "std::size_t is a distinct spelling", |
| 436 | "sha256": "48d41592e8b0d2a136d4ea5e4e52e54074ff619a439106304cf37db1e1c291c8", |
| 437 | "source": "#include <cstdint>\nstd::uint64_t calc(std::size_t a) { return a; }\n" |
| 438 | }, |
| 439 | { |
| 440 | "id": "F2-cpp-N014", |
| 441 | "name": "auto-return", |
| 442 | "status": 66, |
| 443 | "reason": "auto return type deduction", |
| 444 | "sha256": "8ec11516608ba097e3247191c5eae1a38cd2b996b94e8b37db8f570ec3366b20", |
| 445 | "source": "#include <cstdint>\nauto calc(std::uint64_t a, std::uint64_t b) { return a; }\n" |
| 446 | }, |
| 447 | { |
| 448 | "id": "F2-cpp-N015", |
| 449 | "name": "void-params", |
| 450 | "status": 66, |
| 451 | "reason": "(void) is a second spelling of (); the profile accepts only ()", |
| 452 | "sha256": "a5542781a0febfa97c1de322fb53eac3035f2f9169d0134bb52fd06bfd5dd768", |
| 453 | "source": "#include <cstdint>\nstd::uint64_t calc(void) { return std::uint64_t{7ULL}; }\n" |
| 454 | }, |
| 455 | { |
| 456 | "id": "F2-cpp-N016", |
| 457 | "name": "global-qualified-type", |
| 458 | "status": 66, |
| 459 | "reason": "::uint64_t is not std::uint64_t", |
| 460 | "sha256": "f973dad9720c082d43d163c55b68a8ae725a7085dc04212bf2727f81dd3ae13e", |
| 461 | "source": "#include <cstdint>\nstd::uint64_t calc(::uint64_t a) { return a; }\n" |
| 462 | }, |
| 463 | { |
| 464 | "id": "F2-cpp-N017", |
| 465 | "name": "spaced-qualifier", |
| 466 | "status": 66, |
| 467 | "reason": "std :: uint64_t with inner whitespace is not the single accepted spelling", |
| 468 | "sha256": "4a655ca3279a369ee1a8fdf5f1f9a12bb3a8fce4ab5a465d34e382922158db4e", |
| 469 | "source": "#include <cstdint>\nstd::uint64_t calc(std :: uint64_t a) { return a; }\n" |
| 470 | }, |
| 471 | { |
| 472 | "id": "F2-cpp-N018", |
| 473 | "name": "over-source-capacity", |
| 474 | "status": 67, |
| 475 | "reason": "over 4096 bytes", |
| 476 | "sha256": "bdc7c6928acbd9d84e3e7c1e989850cdb14831a6339e9f2a65bb3f8c13866223", |
| 477 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a; }\n " |
| 478 | }, |
| 479 | { |
| 480 | "id": "F2-cpp-N019", |
| 481 | "name": "seven-params", |
| 482 | "status": 67, |
| 483 | "reason": "over 6 parameters", |
| 484 | "sha256": "fb8756a9753ba34a04f65688590314d4cee44fd24557a661e3d151c7a2cd84d5", |
| 485 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t pa, std::uint64_t pb, std::uint64_t pc, std::uint64_t pd, std::uint64_t pe, std::uint64_t pf, std::uint64_t pg) { return pa; }\n" |
| 486 | }, |
| 487 | { |
| 488 | "id": "F2-cpp-N020", |
| 489 | "name": "literal-overflow", |
| 490 | "status": 67, |
| 491 | "reason": "literal above 2^64-1", |
| 492 | "sha256": "4d42e192aede6e6ab840290dd4140307c5c8411996f5e8971c2794c42b3d83a0", |
| 493 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return std::uint64_t{18446744073709551616ULL}; }\n" |
| 494 | }, |
| 495 | { |
| 496 | "id": "F2-cpp-N021", |
| 497 | "name": "depth-17", |
| 498 | "status": 67, |
| 499 | "reason": "parenthesis depth over 16", |
| 500 | "sha256": "fbc8079016c275447d5faaa3cd55a207ce0154a26213cfeb92baee235305c43e", |
| 501 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return (((((((((((((((((a))))))))))))))))); }\n" |
| 502 | }, |
| 503 | { |
| 504 | "id": "F2-cpp-N022", |
| 505 | "name": "over-operation-capacity", |
| 506 | "status": 67, |
| 507 | "reason": "over 64 upper operations", |
| 508 | "sha256": "0ff83f9f75919b1d1bc6a8e29ebecbd9c63e3bb5ef5cbee12c19e5d22a76d3ea", |
| 509 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a + a; }\n" |
| 510 | }, |
| 511 | { |
| 512 | "id": "F2-cpp-N023", |
| 513 | "name": "bare-ull-literal", |
| 514 | "status": 68, |
| 515 | "reason": "1ULL is unsigned long long, not exactly std::uint64_t (mixed type); use std::uint64_t{1ULL}", |
| 516 | "sha256": "ff4f254239b8f034b4dc4853973d709a3d5539b95104b8d2b5d04f2e7f04556e", |
| 517 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a + 1ULL; }\n" |
| 518 | }, |
| 519 | { |
| 520 | "id": "F2-cpp-N024", |
| 521 | "name": "int-literal", |
| 522 | "status": 68, |
| 523 | "reason": "a plain 1 is int; mixed int/std::uint64_t arithmetic refuses", |
| 524 | "sha256": "7d63da49bdc96271a8e923bb733a5f0accc360430a782cdf520d8191bed3bf32", |
| 525 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a - 1; }\n" |
| 526 | }, |
| 527 | { |
| 528 | "id": "F2-cpp-N025", |
| 529 | "name": "int-literal-left", |
| 530 | "status": 68, |
| 531 | "reason": "1 - a mixes int and std::uint64_t", |
| 532 | "sha256": "807c96066559f32a255da0e893666559a5dc98fa43966107a827d18f0cc265fd", |
| 533 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return 1 - a; }\n" |
| 534 | }, |
| 535 | { |
| 536 | "id": "F2-cpp-N026", |
| 537 | "name": "lowercase-ull", |
| 538 | "status": 68, |
| 539 | "reason": "ull is a second spelling of ULL", |
| 540 | "sha256": "110706d3d3e5626991302656f2448493d2eb7577afc6489d3fec54ec1307c492", |
| 541 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return std::uint64_t{1ull}; }\n" |
| 542 | }, |
| 543 | { |
| 544 | "id": "F2-cpp-N027", |
| 545 | "name": "ul-suffix", |
| 546 | "status": 68, |
| 547 | "reason": "UL suffix is not the profile literal", |
| 548 | "sha256": "143ac9497cfcde0bc788ee6e478e141ac88c7b0f9837c59fea44a8f31d40aca4", |
| 549 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return std::uint64_t{1UL}; }\n" |
| 550 | }, |
| 551 | { |
| 552 | "id": "F2-cpp-N028", |
| 553 | "name": "unsuffixed-braced", |
| 554 | "status": 68, |
| 555 | "reason": "braced literal without ULL (int initializer)", |
| 556 | "sha256": "c518c46c33fc135a8ce788ab4b6b1204b41bcb0eb14e043defcae7d7c328a0f0", |
| 557 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return std::uint64_t{1}; }\n" |
| 558 | }, |
| 559 | { |
| 560 | "id": "F2-cpp-N029", |
| 561 | "name": "u-suffix", |
| 562 | "status": 68, |
| 563 | "reason": "U suffix", |
| 564 | "sha256": "3bdc861e0f8910be0350af4c3b37a35c6947140b502cc6467e90316de87db3d0", |
| 565 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return std::uint64_t{1U}; }\n" |
| 566 | }, |
| 567 | { |
| 568 | "id": "F2-cpp-N030", |
| 569 | "name": "hex-literal", |
| 570 | "status": 68, |
| 571 | "reason": "hexadecimal literal", |
| 572 | "sha256": "289fd7e6792ef9b54c66c6d0e931a7425fee0a7b32c6e442a469f8412c924283", |
| 573 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return std::uint64_t{0x1ULL}; }\n" |
| 574 | }, |
| 575 | { |
| 576 | "id": "F2-cpp-N031", |
| 577 | "name": "octal-literal", |
| 578 | "status": 68, |
| 579 | "reason": "leading zero (octal) literal", |
| 580 | "sha256": "ea8ffb74cf5f455f11f946621571dbe385c6fb25677cf87caff960abb2e6c46e", |
| 581 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return std::uint64_t{010ULL}; }\n" |
| 582 | }, |
| 583 | { |
| 584 | "id": "F2-cpp-N032", |
| 585 | "name": "binary-literal", |
| 586 | "status": 68, |
| 587 | "reason": "binary literal", |
| 588 | "sha256": "812995b1b37e6335e99101bec3d006ea4958581e30854987bb338c2725ab165a", |
| 589 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return std::uint64_t{0b1ULL}; }\n" |
| 590 | }, |
| 591 | { |
| 592 | "id": "F2-cpp-N033", |
| 593 | "name": "digit-separator", |
| 594 | "status": 68, |
| 595 | "reason": "digit separator '", |
| 596 | "sha256": "73101609d7d5222f5d5b498c51793045433186747629fee09b4ab4aee7625607", |
| 597 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return std::uint64_t{1'000ULL}; }\n" |
| 598 | }, |
| 599 | { |
| 600 | "id": "F2-cpp-N034", |
| 601 | "name": "user-defined-literal", |
| 602 | "status": 68, |
| 603 | "reason": "user-defined literal suffix", |
| 604 | "sha256": "05111caf75f1e0b6ae87204c3f40e0e89efb3a7cbc57a14787586b676ec11494", |
| 605 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return std::uint64_t{1ULL_x}; }\n" |
| 606 | }, |
| 607 | { |
| 608 | "id": "F2-cpp-N035", |
| 609 | "name": "division", |
| 610 | "status": 68, |
| 611 | "reason": "division is outside the family (division by zero is undefined behaviour)", |
| 612 | "sha256": "26d98a75414d48630c90c424090b443df5372582d3484ff98c202ce664cb5dd5", |
| 613 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a / b; }\n" |
| 614 | }, |
| 615 | { |
| 616 | "id": "F2-cpp-N036", |
| 617 | "name": "remainder", |
| 618 | "status": 68, |
| 619 | "reason": "%", |
| 620 | "sha256": "609fde27b62f0b3a6b3fa27327d4202406f9db026483100d6d4e4fc0eada0e56", |
| 621 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a % b; }\n" |
| 622 | }, |
| 623 | { |
| 624 | "id": "F2-cpp-N037", |
| 625 | "name": "shift", |
| 626 | "status": 68, |
| 627 | "reason": "<<", |
| 628 | "sha256": "19df8d7c08e50592b30caa63fe1fb8cf2433f224aaf06760c747ccda7b5d03c6", |
| 629 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a << b; }\n" |
| 630 | }, |
| 631 | { |
| 632 | "id": "F2-cpp-N038", |
| 633 | "name": "bitand", |
| 634 | "status": 68, |
| 635 | "reason": "&", |
| 636 | "sha256": "8ab9f66de39ed414492714e011f073dc5ec6268fda9dab96ec41943996038754", |
| 637 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a & b; }\n" |
| 638 | }, |
| 639 | { |
| 640 | "id": "F2-cpp-N039", |
| 641 | "name": "bitor", |
| 642 | "status": 68, |
| 643 | "reason": "|", |
| 644 | "sha256": "2eacc43f2b75eddc08d5565221dc2727b8e6e3b820992dba8a7b26a2f4ec3d97", |
| 645 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a | b; }\n" |
| 646 | }, |
| 647 | { |
| 648 | "id": "F2-cpp-N040", |
| 649 | "name": "xor", |
| 650 | "status": 68, |
| 651 | "reason": "^", |
| 652 | "sha256": "10d05e39c25b61603571eeade110874547f6e2c515e7d8a26f9ccefdc57bc76a", |
| 653 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a ^ b; }\n" |
| 654 | }, |
| 655 | { |
| 656 | "id": "F2-cpp-N041", |
| 657 | "name": "unary-minus", |
| 658 | "status": 68, |
| 659 | "reason": "unary -", |
| 660 | "sha256": "48b5889a5f155a99b89879ee077747e97b116be19fd083adda466c1f31c8a0b0", |
| 661 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return -a; }\n" |
| 662 | }, |
| 663 | { |
| 664 | "id": "F2-cpp-N042", |
| 665 | "name": "unary-plus", |
| 666 | "status": 68, |
| 667 | "reason": "unary +", |
| 668 | "sha256": "c99eeb6f2f38ce406092ab055337d50bc70daf7123ad773b8a2e01bad4d49a62", |
| 669 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return +a; }\n" |
| 670 | }, |
| 671 | { |
| 672 | "id": "F2-cpp-N043", |
| 673 | "name": "complement", |
| 674 | "status": 68, |
| 675 | "reason": "~", |
| 676 | "sha256": "2406ac243bb1f805d819c2ca8db89db263616edee3b0ca4aacc35bebc568a52b", |
| 677 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return ~a; }\n" |
| 678 | }, |
| 679 | { |
| 680 | "id": "F2-cpp-N044", |
| 681 | "name": "logical-not", |
| 682 | "status": 68, |
| 683 | "reason": "!", |
| 684 | "sha256": "91635dbe6c94c0a57b4ceb73e2f120b58ed7e35b895b39521da4f4c8ab61c013", |
| 685 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return !a; }\n" |
| 686 | }, |
| 687 | { |
| 688 | "id": "F2-cpp-N045", |
| 689 | "name": "alternative-and", |
| 690 | "status": 68, |
| 691 | "reason": "alternative token and (&&)", |
| 692 | "sha256": "c7f97c21dc3d7f8de8256bf9cc72f37a25e9cb2e9a2f049cae4a78cde6251e8a", |
| 693 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a and b; }\n" |
| 694 | }, |
| 695 | { |
| 696 | "id": "F2-cpp-N046", |
| 697 | "name": "alternative-compl", |
| 698 | "status": 68, |
| 699 | "reason": "alternative token compl (~)", |
| 700 | "sha256": "71b45195766c7206adac2d789d5ba78911064b0b24038ca80ce34641711f3839", |
| 701 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return compl a; }\n" |
| 702 | }, |
| 703 | { |
| 704 | "id": "F2-cpp-N047", |
| 705 | "name": "comparison", |
| 706 | "status": 68, |
| 707 | "reason": "<", |
| 708 | "sha256": "833ae2e1d9bbb8fad2e1c33c456ad9a847d44c1a68638e1cb298ec43bbd6910e", |
| 709 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a < b; }\n" |
| 710 | }, |
| 711 | { |
| 712 | "id": "F2-cpp-N048", |
| 713 | "name": "equality", |
| 714 | "status": 68, |
| 715 | "reason": "==", |
| 716 | "sha256": "18a6e2193962e03e505d0e4f4cf7718781993242ee99274306e0f70d619b7e35", |
| 717 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a == b; }\n" |
| 718 | }, |
| 719 | { |
| 720 | "id": "F2-cpp-N049", |
| 721 | "name": "ternary", |
| 722 | "status": 68, |
| 723 | "reason": "?:", |
| 724 | "sha256": "4d196c799befa3103509c59af5312b236685965e349e57b11e73912408f232cb", |
| 725 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a ? b : a; }\n" |
| 726 | }, |
| 727 | { |
| 728 | "id": "F2-cpp-N050", |
| 729 | "name": "compound-assignment", |
| 730 | "status": 68, |
| 731 | "reason": "+=", |
| 732 | "sha256": "01377f2344654168bae4ae0a8c7a91ee13e8c28840f814c17b53bac48bd8ef2c", |
| 733 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a += b; }\n" |
| 734 | }, |
| 735 | { |
| 736 | "id": "F2-cpp-N051", |
| 737 | "name": "increment", |
| 738 | "status": 68, |
| 739 | "reason": "++", |
| 740 | "sha256": "57a81dda7cc307b2917e12966421942272d378bec0a1f2060885da541841b6fb", |
| 741 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a++; }\n" |
| 742 | }, |
| 743 | { |
| 744 | "id": "F2-cpp-N052", |
| 745 | "name": "constexpr", |
| 746 | "status": 69, |
| 747 | "reason": "constexpr: one spelling, no specifiers", |
| 748 | "sha256": "d557ac379233e0543b3fb771e0adc3cd9824e4fd1b750c0fc3a7b1c3d021dfa5", |
| 749 | "source": "#include <cstdint>\nconstexpr std::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a; }\n" |
| 750 | }, |
| 751 | { |
| 752 | "id": "F2-cpp-N053", |
| 753 | "name": "inline", |
| 754 | "status": 69, |
| 755 | "reason": "inline", |
| 756 | "sha256": "bc454b38ad0fafe5ae4a08b41ac0a4b2b2e28fef0ef49ee2db5b99bf13d260c6", |
| 757 | "source": "#include <cstdint>\ninline std::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a; }\n" |
| 758 | }, |
| 759 | { |
| 760 | "id": "F2-cpp-N054", |
| 761 | "name": "static", |
| 762 | "status": 69, |
| 763 | "reason": "static (internal linkage)", |
| 764 | "sha256": "fb299c9147b9a2daf348177d2581c3a7588f90f27453fdaf052dd529ddf7976f", |
| 765 | "source": "#include <cstdint>\nstatic std::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a; }\n" |
| 766 | }, |
| 767 | { |
| 768 | "id": "F2-cpp-N055", |
| 769 | "name": "nodiscard", |
| 770 | "status": 69, |
| 771 | "reason": "attributes", |
| 772 | "sha256": "e5de27d31d4cd1b82a3a0ae2e50e55db112eef57e660902e90c1571df45e9080", |
| 773 | "source": "#include <cstdint>\n[[nodiscard]] std::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a; }\n" |
| 774 | }, |
| 775 | { |
| 776 | "id": "F2-cpp-N056", |
| 777 | "name": "noexcept", |
| 778 | "status": 69, |
| 779 | "reason": "noexcept changes the function type", |
| 780 | "sha256": "ad395268861efc647614378f2304109d0343d1962010dea38f00b7b743f3c2c9", |
| 781 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) noexcept { return a; }\n" |
| 782 | }, |
| 783 | { |
| 784 | "id": "F2-cpp-N057", |
| 785 | "name": "template", |
| 786 | "status": 69, |
| 787 | "reason": "templates", |
| 788 | "sha256": "90d51c42e933996915be7a1b36015a6bbe48d7338aad395a72ab7330476c1dc9", |
| 789 | "source": "#include <cstdint>\ntemplate <typename T> std::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a; }\n" |
| 790 | }, |
| 791 | { |
| 792 | "id": "F2-cpp-N058", |
| 793 | "name": "namespace", |
| 794 | "status": 69, |
| 795 | "reason": "namespaces", |
| 796 | "sha256": "fc36623dcc083e06308a3e28e2fd1d3cdfa8af7dd52d476e8a798e430c45e7d0", |
| 797 | "source": "#include <cstdint>\nnamespace n { std::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a; } }\n" |
| 798 | }, |
| 799 | { |
| 800 | "id": "F2-cpp-N059", |
| 801 | "name": "using", |
| 802 | "status": 69, |
| 803 | "reason": "using declarations/aliases", |
| 804 | "sha256": "72434916b5c42307f21534df5fee3b874f4999b1fa9a9a675b04eb5da41f7e9b", |
| 805 | "source": "#include <cstdint>\nusing u = std::uint64_t;\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a; }\n" |
| 806 | }, |
| 807 | { |
| 808 | "id": "F2-cpp-N060", |
| 809 | "name": "extern-c", |
| 810 | "status": 69, |
| 811 | "reason": "linkage specification", |
| 812 | "sha256": "6c536f2c83fbc38f71791a67b67ce9e3bf84784414d7b89a209039533ac965c5", |
| 813 | "source": "#include <cstdint>\nextern \"C\" std::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a; }\n" |
| 814 | }, |
| 815 | { |
| 816 | "id": "F2-cpp-N061", |
| 817 | "name": "const-param", |
| 818 | "status": 69, |
| 819 | "reason": "cv-qualified parameter", |
| 820 | "sha256": "451d41d698d387abb4020db0a0b8b9f03e821a5568e7d3aaf06aaa93ead7b796", |
| 821 | "source": "#include <cstdint>\nstd::uint64_t calc(const std::uint64_t a) { return a; }\n" |
| 822 | }, |
| 823 | { |
| 824 | "id": "F2-cpp-N062", |
| 825 | "name": "reference-param", |
| 826 | "status": 69, |
| 827 | "reason": "references", |
| 828 | "sha256": "aa0ee9f237f43e7a5dbacb4cad8e61379d27e78ec8ffce66e312369d5aaa0e62", |
| 829 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t& a) { return a; }\n" |
| 830 | }, |
| 831 | { |
| 832 | "id": "F2-cpp-N063", |
| 833 | "name": "pointer-param", |
| 834 | "status": 69, |
| 835 | "reason": "pointers", |
| 836 | "sha256": "e4eac594a7d92ad601be13cce3defca1bce11fdd58c06abebc5ddef6cb770140", |
| 837 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t *a) { return a; }\n" |
| 838 | }, |
| 839 | { |
| 840 | "id": "F2-cpp-N064", |
| 841 | "name": "static-cast", |
| 842 | "status": 69, |
| 843 | "reason": "casts", |
| 844 | "sha256": "dd74dddddc2eecd5e4079f7ccb8a4ada9645ffec9d38ecd0748327ac6d2ce827", |
| 845 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return static_cast<std::uint64_t>(a); }\n" |
| 846 | }, |
| 847 | { |
| 848 | "id": "F2-cpp-N065", |
| 849 | "name": "functional-cast", |
| 850 | "status": 69, |
| 851 | "reason": "functional-notation conversion of a non-literal", |
| 852 | "sha256": "ffbb260c1b4b7742c55151c0e94939abb3dc7249841eb378a59a8e4e6b1341e5", |
| 853 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return std::uint64_t(a); }\n" |
| 854 | }, |
| 855 | { |
| 856 | "id": "F2-cpp-N066", |
| 857 | "name": "braced-variable", |
| 858 | "status": 69, |
| 859 | "reason": "braced conversion of a variable (only a ULL literal may be braced)", |
| 860 | "sha256": "0f9d8addfb6a44a140ec9cb27e065204f5b13c87481da3b437e95f6a7c23d6c4", |
| 861 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return std::uint64_t{a}; }\n" |
| 862 | }, |
| 863 | { |
| 864 | "id": "F2-cpp-N067", |
| 865 | "name": "braced-empty", |
| 866 | "status": 69, |
| 867 | "reason": "value-initialization std::uint64_t{} is a second spelling of zero", |
| 868 | "sha256": "4d8279c1bc68d1d22aa1b674988deb22fecaec7fcd694d8ac4d67b144afb15c0", |
| 869 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return std::uint64_t{}; }\n" |
| 870 | }, |
| 871 | { |
| 872 | "id": "F2-cpp-N068", |
| 873 | "name": "braced-expression", |
| 874 | "status": 69, |
| 875 | "reason": "braced initializer with an expression", |
| 876 | "sha256": "f61f7a03b7b84319341cfd71073ebf14a7138aba03c44d3c434354a916a0465f", |
| 877 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return std::uint64_t{1ULL+2ULL}; }\n" |
| 878 | }, |
| 879 | { |
| 880 | "id": "F2-cpp-N069", |
| 881 | "name": "lambda", |
| 882 | "status": 69, |
| 883 | "reason": "lambdas", |
| 884 | "sha256": "ab5aeb602a0db3ee6a87eafe2bca9729b7ca68fe508f1195e23ef868fb7c5bce", |
| 885 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return []{ return std::uint64_t{1ULL}; }(); }\n" |
| 886 | }, |
| 887 | { |
| 888 | "id": "F2-cpp-N070", |
| 889 | "name": "local-variable", |
| 890 | "status": 69, |
| 891 | "reason": "statements other than one return", |
| 892 | "sha256": "82d24442cff102dd22de46a7cba39c00b7f039f8c2711a78461d7a4e84d57043", |
| 893 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { std::uint64_t c = a; return c; }\n" |
| 894 | }, |
| 895 | { |
| 896 | "id": "F2-cpp-N071", |
| 897 | "name": "if-statement", |
| 898 | "status": 69, |
| 899 | "reason": "control flow", |
| 900 | "sha256": "2d96e7305cb8a6e2ad0b2bac77adc12b403a4feb0eb8b04612913d772b5ac22c", |
| 901 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { if (a) return a; return b; }\n" |
| 902 | }, |
| 903 | { |
| 904 | "id": "F2-cpp-N072", |
| 905 | "name": "second-function", |
| 906 | "status": 69, |
| 907 | "reason": "a second declaration", |
| 908 | "sha256": "ba7d885f870f4013a1f274f8a67a5917b8f3d932e204b30d3fb16737d22bca90", |
| 909 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a; }\nstd::uint64_t omega_x(std::uint64_t a) { return a; }\n" |
| 910 | }, |
| 911 | { |
| 912 | "id": "F2-cpp-N073", |
| 913 | "name": "stray-semicolon", |
| 914 | "status": 69, |
| 915 | "reason": "an empty declaration after the function", |
| 916 | "sha256": "06a17e866d725f8afebc6063b962b29679e1ecc745b4e7662bd0435977d8c2a6", |
| 917 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a; }\n;\n" |
| 918 | }, |
| 919 | { |
| 920 | "id": "F2-cpp-N074", |
| 921 | "name": "non-ascii-identifier", |
| 922 | "status": 69, |
| 923 | "reason": "non-ASCII outside comments", |
| 924 | "sha256": "38d591109373c1007709de92618d7e35e37a13d98cbafbe81e4f52864767d89a", |
| 925 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return aé; }\n" |
| 926 | }, |
| 927 | { |
| 928 | "id": "F2-cpp-N075", |
| 929 | "name": "const-member-qualifier", |
| 930 | "status": 69, |
| 931 | "reason": "cv-qualifier after the parameter list", |
| 932 | "sha256": "726c34322d7e35609cceb58eebfe0a130ccc614c06cb3e21f4ccc8d1fa9998ae", |
| 933 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) const { return a; }\n" |
| 934 | }, |
| 935 | { |
| 936 | "id": "F2-cpp-N076", |
| 937 | "name": "this-keyword", |
| 938 | "status": 69, |
| 939 | "reason": "this", |
| 940 | "sha256": "c72539115603ced176d29daacd7e31bf8018aed88617465c24701d9553108230", |
| 941 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return this; }\n" |
| 942 | }, |
| 943 | { |
| 944 | "id": "F2-cpp-N077", |
| 945 | "name": "sizeof", |
| 946 | "status": 69, |
| 947 | "reason": "sizeof", |
| 948 | "sha256": "85d7d0ff4af6b8edce0bc85dfbf5f43c8001b87832f1f5852628047013171e90", |
| 949 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return sizeof(a); }\n" |
| 950 | }, |
| 951 | { |
| 952 | "id": "F2-cpp-N078", |
| 953 | "name": "unknown-variable", |
| 954 | "status": 70, |
| 955 | "reason": "identifier that is not a parameter", |
| 956 | "sha256": "f8fac4d046aa6b4f1d2c39f162da05b3330c1328311c0de9ecbc1ce52028a165", |
| 957 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return c; }\n" |
| 958 | }, |
| 959 | { |
| 960 | "id": "F2-cpp-N079", |
| 961 | "name": "std-function", |
| 962 | "status": 70, |
| 963 | "reason": "std:: name other than the type", |
| 964 | "sha256": "babc174ab8d683c9bd92ff76cffbc5adada3355588debeb64dae331d26495869", |
| 965 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return std::max(a, b); }\n" |
| 966 | }, |
| 967 | { |
| 968 | "id": "F2-cpp-N080", |
| 969 | "name": "unqualified-type-in-expression", |
| 970 | "status": 70, |
| 971 | "reason": "uint64_t{1ULL} unqualified in an expression", |
| 972 | "sha256": "5765fe0316b242db3f88a377d2e67861621319cffa65a2e099825f2f603bb614", |
| 973 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return uint64_t{1ULL}; }\n" |
| 974 | }, |
| 975 | { |
| 976 | "id": "F2-cpp-N081", |
| 977 | "name": "name-main", |
| 978 | "status": 71, |
| 979 | "reason": "main is reserved", |
| 980 | "sha256": "7e28ec343faa9851b37f51392e855342438330c98c9c4dd9c936b8f6f80042f5", |
| 981 | "source": "#include <cstdint>\nstd::uint64_t main(std::uint64_t a, std::uint64_t b) { return a; }\n" |
| 982 | }, |
| 983 | { |
| 984 | "id": "F2-cpp-N082", |
| 985 | "name": "name-other", |
| 986 | "status": 71, |
| 987 | "reason": "function name must be calc or omega_*", |
| 988 | "sha256": "dbb9c8ea9c81f1bf8893f418bc746a582c139b43feb15ea51e016d5d4df8f5c9", |
| 989 | "source": "#include <cstdint>\nstd::uint64_t foo(std::uint64_t a, std::uint64_t b) { return a; }\n" |
| 990 | }, |
| 991 | { |
| 992 | "id": "F2-cpp-N083", |
| 993 | "name": "name-upper", |
| 994 | "status": 71, |
| 995 | "reason": "names start with a lowercase letter", |
| 996 | "sha256": "dda90f21098ed6738f10fcb0d41f7feb7f321fd661208c20504b7b7ded439519", |
| 997 | "source": "#include <cstdint>\nstd::uint64_t Calc(std::uint64_t a, std::uint64_t b) { return a; }\n" |
| 998 | }, |
| 999 | { |
| 1000 | "id": "F2-cpp-N084", |
| 1001 | "name": "name-double-underscore", |
| 1002 | "status": 71, |
| 1003 | "reason": "identifiers containing __ are reserved in C++", |
| 1004 | "sha256": "e581233010197c153f66f429da53f6e7c07c7238f2c8c246ed22eed51674a1de", |
| 1005 | "source": "#include <cstdint>\nstd::uint64_t omega__x(std::uint64_t a, std::uint64_t b) { return a; }\n" |
| 1006 | }, |
| 1007 | { |
| 1008 | "id": "F2-cpp-N085", |
| 1009 | "name": "name-omega-only", |
| 1010 | "status": 71, |
| 1011 | "reason": "omega_ needs at least one following byte", |
| 1012 | "sha256": "1fc70611088df47cb0ef70a67d70650e79eb7610f93060b6f274a3bade50734d", |
| 1013 | "source": "#include <cstdint>\nstd::uint64_t omega_(std::uint64_t a, std::uint64_t b) { return a; }\n" |
| 1014 | }, |
| 1015 | { |
| 1016 | "id": "F2-cpp-N086", |
| 1017 | "name": "param-int-prefix", |
| 1018 | "status": 71, |
| 1019 | "reason": "int/uint prefixes collide with <cstdint> names", |
| 1020 | "sha256": "25b255442d067fc6f7420384cf4b11da9c7eb146dba48f1f513047c35666845c", |
| 1021 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t int8) { return int8; }\n" |
| 1022 | }, |
| 1023 | { |
| 1024 | "id": "F2-cpp-N087", |
| 1025 | "name": "param-keyword", |
| 1026 | "status": 71, |
| 1027 | "reason": "keyword parameter name", |
| 1028 | "sha256": "958fa837d817384cce059338e07638338d2e123be77ed7c4dcd1fab91ee41a33", |
| 1029 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t and) { return a; }\n" |
| 1030 | }, |
| 1031 | { |
| 1032 | "id": "F2-cpp-N088", |
| 1033 | "name": "param-linux", |
| 1034 | "status": 71, |
| 1035 | "reason": "linux is a predefined macro in GNU modes", |
| 1036 | "sha256": "afa9c1deb87fd5ea7285d8ebf77b138ae1932b80eefe47898214ab3f790323e8", |
| 1037 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t linux) { return linux; }\n" |
| 1038 | }, |
| 1039 | { |
| 1040 | "id": "F2-cpp-N089", |
| 1041 | "name": "param-std", |
| 1042 | "status": 71, |
| 1043 | "reason": "std is reserved", |
| 1044 | "sha256": "2f10b974ace9a4a2e4162ce810eee3c483e4968a6882ae5e6e800e451d934007", |
| 1045 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t std) { return a; }\n" |
| 1046 | }, |
| 1047 | { |
| 1048 | "id": "F2-cpp-N090", |
| 1049 | "name": "duplicate-param", |
| 1050 | "status": 71, |
| 1051 | "reason": "duplicate parameter", |
| 1052 | "sha256": "a740d45a4adb223272b94433319783634f95ee8ce58ddca3e0d87d988308c0ff", |
| 1053 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t a) { return a; }\n" |
| 1054 | }, |
| 1055 | { |
| 1056 | "id": "F2-cpp-N091", |
| 1057 | "name": "long-name", |
| 1058 | "status": 71, |
| 1059 | "reason": "over 32 bytes", |
| 1060 | "sha256": "638c96610b9e186c4fb0261f107f70c7037555b1c9e0eb52279839db7d1cf820", |
| 1061 | "source": "#include <cstdint>\nstd::uint64_t omega_xxxxxxxxxxxxxxxxxxxxxxxxxxx(std::uint64_t a, std::uint64_t b) { return a; }\n" |
| 1062 | }, |
| 1063 | { |
| 1064 | "id": "F2-cpp-N092", |
| 1065 | "name": "unnamed-param", |
| 1066 | "status": 69, |
| 1067 | "reason": "unnamed parameter", |
| 1068 | "sha256": "db999b432736593708c6e729ba20578575a546643e61a6d636452f75b68f7909", |
| 1069 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t) { return std::uint64_t{1ULL}; }\n" |
| 1070 | }, |
| 1071 | { |
| 1072 | "id": "F2-cpp-N093", |
| 1073 | "name": "stdint-h-header", |
| 1074 | "status": 72, |
| 1075 | "reason": "only #include <cstdint> is accepted", |
| 1076 | "sha256": "e3cf1dbcc71769e6b440e949ebe270d8d39c87350afeeee6e7cf5fd5b0359713", |
| 1077 | "source": "#include <stdint.h>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a; }\n" |
| 1078 | }, |
| 1079 | { |
| 1080 | "id": "F2-cpp-N094", |
| 1081 | "name": "missing-header", |
| 1082 | "status": 72, |
| 1083 | "reason": "no include", |
| 1084 | "sha256": "4c7d8269929ccb3b913718b893eb6949e5fc887c08a866f257cdae9dcb974ad6", |
| 1085 | "source": "std::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a; }\n" |
| 1086 | }, |
| 1087 | { |
| 1088 | "id": "F2-cpp-N095", |
| 1089 | "name": "bom", |
| 1090 | "status": 72, |
| 1091 | "reason": "byte-order mark", |
| 1092 | "sha256": "15d1db02f2c82b9fed2013f286e27cd58f9e954b1e22a15ea95ba7f3aa77aa94", |
| 1093 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a; }\n" |
| 1094 | }, |
| 1095 | { |
| 1096 | "id": "F2-cpp-N096", |
| 1097 | "name": "crlf-header", |
| 1098 | "status": 72, |
| 1099 | "reason": "header line must end in LF", |
| 1100 | "sha256": "cd3ef07bf7987fed0e2c44281e40aae570480f55dc02d4df6fd91986842d9fb8", |
| 1101 | "source": "#include <cstdint>\r\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a; }\n" |
| 1102 | }, |
| 1103 | { |
| 1104 | "id": "F2-cpp-N097", |
| 1105 | "name": "second-directive", |
| 1106 | "status": 72, |
| 1107 | "reason": "preprocessing beyond the include", |
| 1108 | "sha256": "9ebba7167631f1b6eb4c33cc8a7708b04278a12e53f57422cfcd4e2ec382ecc8", |
| 1109 | "source": "#include <cstdint>\n#define X 1\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a; }\n" |
| 1110 | }, |
| 1111 | { |
| 1112 | "id": "F2-cpp-N098", |
| 1113 | "name": "digraph-directive", |
| 1114 | "status": 72, |
| 1115 | "reason": "%: is the digraph of #", |
| 1116 | "sha256": "8107315edf6f8fc6a047be9dd224c0cebac32ff63f9023b6e4d4dba0efcedb58", |
| 1117 | "source": "#include <cstdint>\n%:define X 1\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a; }\n" |
| 1118 | }, |
| 1119 | { |
| 1120 | "id": "F2-cpp-N099", |
| 1121 | "name": "line-splice", |
| 1122 | "status": 72, |
| 1123 | "reason": "backslash line splice (can extend a // comment)", |
| 1124 | "sha256": "418cb7242becab9e2f15617ae5d63bb5267b92254a4065db37f88677f55b9a4d", |
| 1125 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a; // x\\\n}\n" |
| 1126 | }, |
| 1127 | { |
| 1128 | "id": "F2-cpp-N100", |
| 1129 | "name": "trigraph", |
| 1130 | "status": 72, |
| 1131 | "reason": "trigraph sequence (refused as in the C profile)", |
| 1132 | "sha256": "4935b3dbe01342c85c6ed7307bcca63074577218727a0e06aeaa8995fa4368d7", |
| 1133 | "source": "#include <cstdint>\nstd::uint64_t calc(std::uint64_t a, std::uint64_t b) { return a; /* ??/ */ }\n" |
| 1134 | } |
| 1135 | ] |
| 1136 | } |