Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-mv/blob/main/tests/universal/translation/fixtures-f1.json # 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 Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / tests / universal / translation / fixtures-f1.json` 495 lines · 14654 bytes Raw Blame History 1 { 2 "schema": "omega.universal.fixtures.v1", 3 "set": "F1", 4 "contract": "spec/universal/translation-v1.md", 5 "from": "tests/universal/c_import_gate.py", 6 "positives": [ 7 { 8 "id": "F1-P00", 9 "sha256": "`250e3228f00b4c0cd60df70092f50106dce54f081cc77d4f3a24f7d2b5af8c4c`", 10 "name": "calc", 11 "inputs": 2, 12 "source": "#include \nuint64_t calc(uint64_t a, uint64_t b) { return a; }\n" 13 }, 14 { 15 "id": "F1-P01", 16 "sha256": "`cc4a3ac6374b8c68eb99de6540e6896ef4c41aea9eb5fb5c1f0ae4be52662456`", 17 "name": "calc", 18 "inputs": 2, 19 "source": "#include \nuint64_t calc(uint64_t a, uint64_t b) { return b; }\n" 20 }, 21 { 22 "id": "F1-P02", 23 "sha256": "`2ab81c70d64699c9afe59cda7d49edcb577e10a57e32f2402af6ad67a0632c3e`", 24 "name": "calc", 25 "inputs": 2, 26 "source": "#include \nuint64_t calc(uint64_t a, uint64_t b) { return a+b; }\n" 27 }, 28 { 29 "id": "F1-P03", 30 "sha256": "`ce4e5d1d53ed51443e3b940939a21b8fff9bb35db202438920f398938c0f7fb6`", 31 "name": "calc", 32 "inputs": 2, 33 "source": "#include \nuint64_t calc(uint64_t a, uint64_t b) { return a-b; }\n" 34 }, 35 { 36 "id": "F1-P04", 37 "sha256": "`78db75440f5b5da2dafb59d0f771b696171c24d2698677f959e2ab430a2ebfd6`", 38 "name": "calc", 39 "inputs": 2, 40 "source": "#include \nuint64_t calc(uint64_t a, uint64_t b) { return a*b; }\n" 41 }, 42 { 43 "id": "F1-P05", 44 "sha256": "`277232cc9416a0c4f06004c5b00dbaab33952fc411c7e42f505f324026ca1765`", 45 "name": "calc", 46 "inputs": 2, 47 "source": "#include \nuint64_t calc(uint64_t a, uint64_t b) { return (a+b)*(a-b); }\n" 48 }, 49 { 50 "id": "F1-P06", 51 "sha256": "`4332e4105d4442afba0b586e9574f1f192d7ed740099228eae26ad15473a5099`", 52 "name": "calc", 53 "inputs": 2, 54 "source": "#include \nuint64_t calc(uint64_t a, uint64_t b) { return a+0ULL; }\n" 55 }, 56 { 57 "id": "F1-P07", 58 "sha256": "`7339bf648758434626305006d637470ca6d97399010515134dd4358940641451`", 59 "name": "calc", 60 "inputs": 2, 61 "source": "#include \nuint64_t calc(uint64_t a, uint64_t b) { return a-1ULL; }\n" 62 }, 63 { 64 "id": "F1-P08", 65 "sha256": "`9bb734b9718ebfbfac521731fa2bbd0ea59b201afc77ca385bcce151fa76a703`", 66 "name": "calc", 67 "inputs": 2, 68 "source": "#include \nuint64_t calc(uint64_t a, uint64_t b) { return a*2ULL; }\n" 69 }, 70 { 71 "id": "F1-P09", 72 "sha256": "`9d409851a2558cf54315c84c4917ec67d1bee299ff7d371557d707416542b631`", 73 "name": "calc", 74 "inputs": 2, 75 "source": "#include \nuint64_t calc(uint64_t a, uint64_t b) { return 0ULL-a; }\n" 76 }, 77 { 78 "id": "F1-P10", 79 "sha256": "`aa0163f4a11aa259d38605ed3d26a56cbd80b381b32a9a20ffa10f82dbcd68ea`", 80 "name": "calc", 81 "inputs": 2, 82 "source": "#include \nuint64_t calc(uint64_t a, uint64_t b) { return 18446744073709551615ULL+a; }\n" 83 }, 84 { 85 "id": "F1-P11", 86 "sha256": "`83d8dadc4e596492af0bd7c79b865fd5c5cb6b8536370706f95efd5c59f261d5`", 87 "name": "calc", 88 "inputs": 2, 89 "source": "#include \nuint64_t calc(uint64_t a, uint64_t b) { return a*b+3ULL; }\n" 90 }, 91 { 92 "id": "F1-P12", 93 "sha256": "`a23775feb8d8822fc987bc087356a2dec17d4a85dd9a8fceb36606dac6e28572`", 94 "name": "calc", 95 "inputs": 2, 96 "source": "#include \nuint64_t calc(uint64_t a, uint64_t b) { return a+a+b; }\n" 97 }, 98 { 99 "id": "F1-P13", 100 "sha256": "`23bc6a271dbba691f7a87f0f37e15ab125cecf8be229ab965777342266252ad2`", 101 "name": "calc", 102 "inputs": 2, 103 "source": "#include \nuint64_t calc(uint64_t a, uint64_t b) { return a+(a+b); }\n" 104 }, 105 { 106 "id": "F1-P14", 107 "sha256": "`11c77e44f631b68afbf893f347a6e94498aae6213af99950deb03eea53f6da05`", 108 "name": "calc", 109 "inputs": 2, 110 "source": "#include \nuint64_t calc(uint64_t a, uint64_t b) { return a-b-b; }\n" 111 }, 112 { 113 "id": "F1-P15", 114 "sha256": "`c5f7c9fdc269761e8ad7a4a3fa9ed0a2a2ccd7115cd2721a503203c778a2da2f`", 115 "name": "calc", 116 "inputs": 2, 117 "source": "#include \nuint64_t calc(uint64_t a, uint64_t b) { return a-(b-b); }\n" 118 }, 119 { 120 "id": "F1-P16", 121 "sha256": "`d17614f4cb5234a2234af049027f78f1f49a5f6f03d5f2e5c7c2b4b580f263c5`", 122 "name": "calc", 123 "inputs": 2, 124 "source": "#include \nuint64_t calc(uint64_t a, uint64_t b) { return a*b*a; }\n" 125 }, 126 { 127 "id": "F1-P17", 128 "sha256": "`a686cff8ae29e41a88bd4904c479806fec36f691e87d5732de68f59f319c694d`", 129 "name": "calc", 130 "inputs": 2, 131 "source": "#include \nuint64_t calc(uint64_t a, uint64_t b) { return a*(b*a); }\n" 132 }, 133 { 134 "id": "F1-P18", 135 "sha256": "`262e9b705e8ba8c433e540f49209540cc7406bacb7e3b95c0b1cd5ad869af607`", 136 "name": "calc", 137 "inputs": 2, 138 "source": "#include \nuint64_t calc(uint64_t a, uint64_t b) { return 123ULL; }\n" 139 }, 140 { 141 "id": "F1-P19", 142 "sha256": "`0b7ae5fc5fcacdd7b3040571e1838c324ba755ab1e9ecf7ba363e4d05d118511`", 143 "name": "calc", 144 "inputs": 2, 145 "source": "#include \nuint64_t calc(uint64_t a, uint64_t b) { return ((a)); }\n" 146 }, 147 { 148 "id": "F1-P20", 149 "sha256": "`e83ba5c9beccb2a5639359cbca57afd15b7a508aa86d912ce861d7b14b335d50`", 150 "name": "calc", 151 "inputs": 2, 152 "source": "#include \nuint64_t calc(uint64_t a, uint64_t b) { return (a+b)*(b+1ULL); }\n" 153 }, 154 { 155 "id": "F1-P21", 156 "sha256": "`62ddab9112329da4fb6a45eb8ca1939e51c8bbfe0db85ba3784c4df0b078e757`", 157 "name": "calc", 158 "inputs": 2, 159 "source": "#include \nuint64_t calc(uint64_t a, uint64_t b) { return a+b*2ULL; }\n" 160 }, 161 { 162 "id": "F1-P22", 163 "sha256": "`f2472d246de322a108e5bc3098e7d7e359e7511b9ca07723c2560130ffc86656`", 164 "name": "calc", 165 "inputs": 2, 166 "source": "#include \nuint64_t calc(uint64_t a, uint64_t b) { return (a+b)*2ULL; }\n" 167 }, 168 { 169 "id": "F1-P23", 170 "sha256": "`6ac071f7821d7d29ca2e3961b90a89471e3f8f1a3150e06b1ab4642183ff6121`", 171 "name": "calc", 172 "inputs": 2, 173 "source": "#include \nuint64_t calc(uint64_t a, uint64_t b) { return a-2ULL*b; }\n" 174 }, 175 { 176 "id": "F1-P24", 177 "sha256": "`f844f1cd780ee05f2e0218ce28afef6ae528d7d89c570253cdb8d82084784511`", 178 "name": "calc", 179 "inputs": 2, 180 "source": "#include \nuint64_t calc(uint64_t a, uint64_t b) { return (a-2ULL)*b; }\n" 181 }, 182 { 183 "id": "F1-P25", 184 "sha256": "`e446180a9b2462c5508e23bbd94371e2c0ee409a6b540a219a70026fe15fb568`", 185 "name": "calc", 186 "inputs": 2, 187 "source": "#include \nuint64_t calc(uint64_t a, uint64_t b) { return a+18446744073709551615ULL*b; }\n" 188 }, 189 { 190 "id": "F1-P26", 191 "sha256": "`26762c67b1d44a63563289ecd4c80ee13655629a93ac95bc727a9d59d74eccf7`", 192 "name": "calc", 193 "inputs": 2, 194 "source": "#include \nuint64_t calc(uint64_t a, uint64_t b) { return 2ULL*3ULL+4ULL; }\n" 195 }, 196 { 197 "id": "F1-P27", 198 "sha256": "`412ea121023c650878fc8e0dc12146e7dc9a083b3c9fde4adf813ace9baec525`", 199 "name": "calc", 200 "inputs": 2, 201 "source": "#include \nuint64_t calc(uint64_t a, uint64_t b) { return 2ULL*(3ULL+4ULL); }\n" 202 }, 203 { 204 "id": "F1-P28", 205 "sha256": "`e8b386f48e1ae8e8d91a073518e0c792e7c54e1a9cca283b37662aa66f636392`", 206 "name": "calc", 207 "inputs": 2, 208 "source": "#include \nuint64_t calc(uint64_t a, uint64_t b) { return a-b+a*b; }\n" 209 }, 210 { 211 "id": "F1-P29", 212 "sha256": "`5ccf53bf81d312f299d2b5e916447830417b61a1e1a696460d7121dabb941106`", 213 "name": "calc", 214 "inputs": 2, 215 "source": "#include \nuint64_t calc(uint64_t a, uint64_t b) { return (a+a)*(b+b); }\n" 216 }, 217 { 218 "id": "F1-P30", 219 "sha256": "`01332f15d4dc15b52bfb8f1ad9ee7c5eeb1e9cbeec229e1ebe790678b28d7963`", 220 "name": "calc", 221 "inputs": 0, 222 "source": "#include \nuint64_t calc(void) { return 7ULL; }\n" 223 }, 224 { 225 "id": "F1-P31", 226 "sha256": "`255692046d239f102f700df892a5519525d7615e3cba14517be1f383e2aa5644`", 227 "name": "calc", 228 "inputs": 1, 229 "source": "#include \nuint64_t calc(uint64_t x) { return x; }\n" 230 }, 231 { 232 "id": "F1-P32", 233 "sha256": "`14daf8acaa708f00035d3d6dcc7bb5ce341a4f859cb9fc89517d6a5a6b18bf5b`", 234 "name": "calc", 235 "inputs": 6, 236 "source": "#include \nuint64_t calc(uint64_t a,uint64_t b,uint64_t c,uint64_t d,uint64_t e,uint64_t f) { return a+b+c+d+e+f; }\n" 237 }, 238 { 239 "id": "F1-P33", 240 "sha256": "`48d398126ae85ad37b7fa9b96acd0d84a3bc980bed9c176843da4dc52ed4b6ef`", 241 "name": "calc", 242 "inputs": 2, 243 "source": "#include \n/* α comment retained */\nuint64_t calc(uint64_t left,uint64_t right) { /* keep */ return left*right; }\r\n" 244 }, 245 { 246 "id": "F1-P34", 247 "sha256": "`7c48737aa01323118ce87f9c95ed39edf11b554cd9fd9e8741b30fa548555dc6`", 248 "name": "omega_fold", 249 "inputs": 2, 250 "source": "#include \nuint64_t omega_fold(uint64_t a,uint64_t b){return a*b+42ULL;}\n" 251 } 252 ], 253 "refusals": [ 254 { 255 "id": "F1-N00", 256 "sha256": "`0af857a0f67e6acf415c878bafe2bbd0f2c2320898b248d9dc93937b50748668`", 257 "bytes": 69 258 }, 259 { 260 "id": "F1-N01", 261 "sha256": "`b7f85d3ebc638e63d292b97a579e69c0bd18d6ea23debe776d639022cff7b1cf`", 262 "bytes": 68 263 }, 264 { 265 "id": "F1-N02", 266 "sha256": "`b592a677ad066137dd54f34f3e5595777a9e0c10c3d645b45b3cbc0ad3ebb883`", 267 "bytes": 66 268 }, 269 { 270 "id": "F1-N03", 271 "sha256": "`f34cf66a07ece18bfc5f03964793728d9dc3887e4b396a5bbbb2d3c97e5815a4`", 272 "bytes": 58 273 }, 274 { 275 "id": "F1-N04", 276 "sha256": "`cc97f878326c2a792ec650c1045bec27942ff81aa30311f3b42d913e30af1e3c`", 277 "bytes": 69 278 }, 279 { 280 "id": "F1-N05", 281 "sha256": "`1ff1952d414b644dbf386ac9d38cfb2f4d41fdb875cc5d0cf0788ffd8c44fa8a`", 282 "bytes": 69 283 }, 284 { 285 "id": "F1-N06", 286 "sha256": "`aa50aa7a2f594d313029125cafcf43b612bdb6724c37c6387c8d8f363b12a5e7`", 287 "bytes": 70 288 }, 289 { 290 "id": "F1-N07", 291 "sha256": "`f70d2db2175ac95d9989f3520e051e84f1d5b5b8bb2a57ebb4e5f11ce324cd3d`", 292 "bytes": 70 293 }, 294 { 295 "id": "F1-N08", 296 "sha256": "`401206ba6aa591ced2d2e35eb189ad4ca949c2fbab4393debbdee0a7e84b14e5`", 297 "bytes": 69 298 }, 299 { 300 "id": "F1-N09", 301 "sha256": "`cffd9283681940b6d5ed5093c934235644111d0b4fe20d169def66b80bcecbb9`", 302 "bytes": 69 303 }, 304 { 305 "id": "F1-N10", 306 "sha256": "`ba16c74a044c675918400e2b0a1658fb29a3392210965712c883e6de6e1ba3ab`", 307 "bytes": 69 308 }, 309 { 310 "id": "F1-N11", 311 "sha256": "`cde185c0aef9fb53b2ae9ab100133d78933ed37cdab46432c6b1456ac405745c`", 312 "bytes": 70 313 }, 314 { 315 "id": "F1-N12", 316 "sha256": "`ad7c8d90576a3489ce705d22a3dc50ab820917c8618b3392931f9f49e9c70d39`", 317 "bytes": 71 318 }, 319 { 320 "id": "F1-N13", 321 "sha256": "`c27556bf58661fefeda327e8f8ac4e156f8de7291ab5b41714f17e2f8859620c`", 322 "bytes": 68 323 }, 324 { 325 "id": "F1-N14", 326 "sha256": "`30a0f71335fef290bcfd0994bddb4eca5a7f74496993a1e1c36e03bb10567163`", 327 "bytes": 69 328 }, 329 { 330 "id": "F1-N15", 331 "sha256": "`8e89aba69fbf4d2327bfed5ce076b645f67af60bbb6ac69060be894e3b370577`", 332 "bytes": 68 333 }, 334 { 335 "id": "F1-N16", 336 "sha256": "`429631d32bca2d4687d4c51130e2fe1a4e1cb9ed88b9f257db7b043a28afdde1`", 337 "bytes": 81 338 }, 339 { 340 "id": "F1-N17", 341 "sha256": "`31fb2112ee36cb84ef2ec35d3fe9f6834f69152559d27905392914cb275bf215`", 342 "bytes": 76 343 }, 344 { 345 "id": "F1-N18", 346 "sha256": "`9916fb95ce6fa2fbf4c44922f5a84e3b5d55080f00667f84e4e6b5d5aabfa584`", 347 "bytes": 89 348 }, 349 { 350 "id": "F1-N19", 351 "sha256": "`dd7055421edaf673b201f3b07bdc9df2ccb2f1ef57f259ceef52fbe55bc5c911`", 352 "bytes": 74 353 }, 354 { 355 "id": "F1-N20", 356 "sha256": "`f743171fdbb20d0f5eb2c2c4aa87db8a490bf3c8f53e7341888b98afb095e61c`", 357 "bytes": 75 358 }, 359 { 360 "id": "F1-N21", 361 "sha256": "`ad52cbd4aa151c29ff4c791b9f875ae6493ec0dd62d52ff3ecf685074ccb864b`", 362 "bytes": 77 363 }, 364 { 365 "id": "F1-N22", 366 "sha256": "`56405586ad572ddc956354a7660374847d56c58248564010438050d75b900582`", 367 "bytes": 89 368 }, 369 { 370 "id": "F1-N23", 371 "sha256": "`a605a3603e045d8ae50c47572efc31e3d30591cc22a99498f56695e8b55ae315`", 372 "bytes": 69 373 }, 374 { 375 "id": "F1-N24", 376 "sha256": "`60a70999cb2e7186ab1c78b15aa09660ae0e7246089b11aa3ce20bc6ad80a689`", 377 "bytes": 71 378 }, 379 { 380 "id": "F1-N25", 381 "sha256": "`fd70868d0f50a589c420bc707d0fe1300aabb95f111b469e182499314f658405`", 382 "bytes": 73 383 }, 384 { 385 "id": "F1-N26", 386 "sha256": "`18094d214fde2f325782c1ec61b57f04881e7f9b220ec1ad881767efb26c4a42`", 387 "bytes": 67 388 }, 389 { 390 "id": "F1-N27", 391 "sha256": "`c0a171a8edb1cd3d8da116b43828eebb6806fc0f891b6b29dc7787ce840adb80`", 392 "bytes": 49 393 }, 394 { 395 "id": "F1-N28", 396 "sha256": "`4805a98fde58af5ca6a346e61b4278fadc550589d2f1da016f9c0178d1856e34`", 397 "bytes": 104 398 }, 399 { 400 "id": "F1-N29", 401 "sha256": "`3cb58c15eca27db851c3ad1ac9955515861d57044c88b48229d5022821f8d5c9`", 402 "bytes": 67 403 }, 404 { 405 "id": "F1-N30", 406 "sha256": "`f991318e5900cbff7c6626b474b7d1c79be87e3f0c7ed5a1116919f1baaadfc7`", 407 "bytes": 70 408 }, 409 { 410 "id": "F1-N31", 411 "sha256": "`7a621704091dda4b1b49054643d0119c33368a9104cd538fd679e7c72b064827`", 412 "bytes": 67 413 }, 414 { 415 "id": "F1-N32", 416 "sha256": "`40afe4ba815162a82490f6effc31fa65c0b624ce11386c849a32e1f2c380c8c1`", 417 "bytes": 64 418 }, 419 { 420 "id": "F1-N33", 421 "sha256": "`e3a3bfd0b305b96439d1354a1d966c67c89de6245e2fc47212865e699b40e530`", 422 "bytes": 70 423 }, 424 { 425 "id": "F1-N34", 426 "sha256": "`3e428a86b6416815c620ea176f9ebb8123fd1785137c8f7cc35062b2b1297e9f`", 427 "bytes": 122 428 }, 429 { 430 "id": "F1-N35", 431 "sha256": "`de604de4fae409eba3c200c2c7fd9791a181905337e7b5fc76e70887c8cc6229`", 432 "bytes": 53 433 }, 434 { 435 "id": "F1-N36", 436 "sha256": "`19a396f5b5dddbca148a595eb51188a876e3ac924ad4cb24241666d5b419132f`", 437 "bytes": 62 438 }, 439 { 440 "id": "F1-N37", 441 "sha256": "`283997005e59920fdbbcb315a9812bce8bba47920acacba204d1166792c67ada`", 442 "bytes": 34 443 }, 444 { 445 "id": "F1-N38", 446 "sha256": "`52c09b4f675fda2330425f44cf0254df0de9dbaf1139065e5b6d3da7ee5993fd`", 447 "bytes": 54 448 }, 449 { 450 "id": "F1-N39", 451 "sha256": "`3e97197f4b8d46a893067c94ab15e195e3d97fb5f24eede5ef047b571240d92b`", 452 "bytes": 4097 453 }, 454 { 455 "id": "F1-N40", 456 "sha256": "`63c6c0e5a63a0e43418354b5226498e27b1bba084490b8720f66b765366ecf01`", 457 "bytes": 56 458 }, 459 { 460 "id": "F1-N41", 461 "sha256": "`fb0a34345332985589161c23de8eff3e83824884f24adcc06389942c2cfe59b5`", 462 "bytes": 55 463 }, 464 { 465 "id": "F1-N42", 466 "sha256": "`9a728cc3c45ddf2bc5fd0d06fe56253749d15c01ccf7f9dd0e54552e7eb99904`", 467 "bytes": 55 468 }, 469 { 470 "id": "F1-N43", 471 "sha256": "`b93c5f6322fd0886fc64cb58e057805c788b0447d9dad6e2e8e550710250cac0`", 472 "bytes": 75 473 }, 474 { 475 "id": "F1-N44", 476 "sha256": "`06b9d1e675bcf5e680b9d2f81443983c92ab0435cfdcb0c6a8b2cfccbb04b51b`", 477 "bytes": 77 478 }, 479 { 480 "id": "F1-N45", 481 "sha256": "`8fad3fa68eba297fc052f777fc4229e6f541c17ef1deb130a01583d472eba45c`", 482 "bytes": 68 483 }, 484 { 485 "id": "F1-N46", 486 "sha256": "`bf88dc418ca9cf0665b93aa836c1f5c454822f3627c1e5cb06f583020ca0e464`", 487 "bytes": 57 488 }, 489 { 490 "id": "F1-N47", 491 "sha256": "`788b4fbf1bbd46387f0af1dbd2e3c09ad66bc4ad4a1103e90b57d7134688f3ec`", 492 "bytes": 55 493 } 494 ] 495 }