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/patches/ce5b29a6d839e9d6 # 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 ## GitHub aien-dev/omega-mv#675 (code only) closed derived `ce5b29a6d839e9d6` #675 Imported from GitHub aien-dev/omega-mv#675 (code only) GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed). Base `57f5f4258cebf3d5b2c22853cd062e351265c525` · Head `3b3a67393d4d5d2ea9b70e43353e1946e5e2430a` ### Apply it ``` git checkout -b patch-ce5b29a6d839e9d6 57f5f4258cebf3d5b2c22853cd062e351265c525 curl -fsSL https://interplane.io/drakestapleton/omega-mv/patches/ce5b29a6d839e9d6.patch | git am ``` Raw patch (mbox) · Diff ### Provenance This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record: ``` github-import 1 aien-dev/omega-mv 675 3b3a67393d4d5d2ea9b70e43353e1946e5e2430a ``` ``` {"kind":"github-import","owner":"aien-dev","repo":"omega-mv","number":675,"url":"https://github.com/aien-dev/omega-mv/pull/675","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:38:14Z","metadata":"unavailable","state_derived":true} ``` ### Changes ``` diff --git a/.crumb b/.crumb index d121d2dad..ef3f08e81 100644 --- a/.crumb +++ b/.crumb @@ -47,8 +47,8 @@ "purpose": "Directory calibration. Purpose not yet described by a human." }, { - "digest": "d2eb8967a939ebdb0b54e15fe5d849dd5af71c23b812941e4ba86ad2b0f21d39", - "last_commit": "4870b0a4", + "digest": "5afdf0e35f7b233fed81ad95654e8c6e17293fa89088733009ccda0f2968ee93", + "last_commit": "57f5f425", "name": "docs", "purpose": "Directory docs. Purpose not yet described by a human." }, @@ -59,8 +59,8 @@ "purpose": "Directory doctrine. Purpose not yet described by a human." }, { - "digest": "e7d38c87a51c3c0ee6e3b18419ef4a01d95029de12ac9bf69eb672654f0ace55", - "last_commit": "ae4ad9c0", + "digest": "b679dc33e081ae6a157db8198f86654c09ff8c922c6664d61512b72cbaf2858d", + "last_commit": "29b12760", "name": "mk", "purpose": "Directory mk. Purpose not yet described by a human." }, @@ -95,15 +95,15 @@ "purpose": "Directory tools. Purpose not yet described by a human." } ], - "children_root": "sha256:e1a8c008214ad5dbc33a3e184d7e882dc56d1d50f9bd14c58f8773992961557e", - "compiled_at": "2026-10-18T21:10:38Z", + "children_root": "sha256:95e6dde98fa02816d3519eac785ee67dcf9d359d541f4f80589459af1a6056ca", + "compiled_at": "2026-10-23T22:16:30Z", "compiler": "crumb-compile/1", - "digest": "sha256:be7220db494238bb4c33023d1df17286c35f947336bee5fc2e0405c136ec3e73", - "evidence_files": 11127, - "evidence_root": "sha256:4528085ec1661c442b64fb5dc8def65067ea2620ff88e42bcf52d58b7642ea6e", - "files": 14100, - "generated_at_commit": "f4a9849fb127f8d2d664dfc56890752ad180c507", - "source_tree": "sha256:21f93defce6c9ba159a4bd31083db787e156dfaa4afb80c3427cf88f732f8258" + "digest": "sha256:b3022fd85503838ef564e130b9c62f4eb8de3526cfe4f0c1e4e7bec718d42040", + "evidence_files": 11930, + "evidence_root": "sha256:e6cde1e3d69e9bd18d8108e3ca3971a69674d37c0119cb5da1ca78eae69a15ac", + "files": 15064, + "generated_at_commit": "a7c68b4e2646ab63604b185d8b9473dcec58ed33", + "source_tree": "sha256:f71f05d5b70b35c99eaa9a3ba4097c4bf95969ec4d25a5e22a4e941032203817" }, "owner_lane": "", "provenance": { diff --git a/docs/.crumb b/docs/.crumb index ca5d5ec00..21426049e 100644 --- a/docs/.crumb +++ b/docs/.crumb @@ -124,14 +124,14 @@ } ], "children_root": "sha256:ac7f7ea4b00d4620a993c6dd88a0267f2d49008d415162976e45fa4341e43407", - "compiled_at": "2026-10-16T09:04:56Z", + "compiled_at": "2026-10-23T22:16:30Z", "compiler": "crumb-compile/1", - "digest": "sha256:d2eb8967a939ebdb0b54e15fe5d849dd5af71c23b812941e4ba86ad2b0f21d39", + "digest": "sha256:5afdf0e35f7b233fed81ad95654e8c6e17293fa89088733009ccda0f2968ee93", "evidence_files": 34, "evidence_root": "sha256:589d8b3706e6d7a202ab20b278dac5fc5bafc973f1c2a867b2668aa7210b65cc", "files": 127, - "generated_at_commit": "9d368679f13ea58c46bf7580899aee92e39f5885", - "source_tree": "sha256:29d159b6950500f96de859834fd2c5a9e9ba037f9bc88fd97a8ed47a1688233b" + "generated_at_commit": "a7c68b4e2646ab63604b185d8b9473dcec58ed33", + "source_tree": "sha256:8f4e7a4abc3eedb0057e094d18a0b718f21ef4c5ca81db8733ce7b41879aea0f" }, "owner_lane": "", "provenance": { diff --git a/evidence/ECOSYSTEM660/README.md b/evidence/ECOSYSTEM660/README.md new file mode 100644 index 000000000..24260df2c --- /dev/null +++ b/evidence/ECOSYSTEM660/README.md @@ -0,0 +1,49 @@ +# Independent seed replay, 2026-10-23 + +Functional inputs are immutable upstream revisions; no compiler source was +changed. The profile contract and next owners are in +`seed/qualification/ecosystem660/`. This receipt is a bounded host result, not +whole-programme acceptance or diverse-double-compilation trust. + +| Evidence | Meaning | +| --- | --- | +| `birth.*` | Fresh seed chain and definition-export compiler fixed point | +| `bridge.*`, `bridge-binaries.sha256` | Separate omega-bridge source-only baseline rebuild | +| `gate6.*` | 26 inherited struct gates | +| `host-check.*` | Separate native-host branch's complete existing qualification | +| `definitions/` | Replayed original 13 export cases, native 947-assertion oracle and three compiled compiler mutants | +| `capabilities/results.tsv` | Cross-profile compile and execution results; raw per-case errors/exits retained alongside | +| `capabilities/inputs/` | Exact pinned existing test source, retained as immutable evidence | +| `*.readelf.txt` | Actual executable segment/dependency observation | +| `seed-{before,after,final}.sha256` | Definition-profile tracked seed bytes before and after tests | +| `consumed.sha256` | Exact separately consumed source, binary and host contract identities | +| `remote-refs.txt` | Canonical branch observations at qualification | +| `tools.txt`, `host.txt` | Actual host and external tool identity observations | + +Native compiler mutants are retained as `.om` sources under `definitions/`. +Their compiled ELF identities are recorded in `definitions/binaries.sha256`; +executables remain untracked build artifacts. These sources deliberately +implement defects and must not be selected as consumer compilers. Their +successfully compiled, wrong-output behavior is rejected by the unmodified +native oracle. This is stronger than counting a compiler refusal as a caught +semantic mutation. + +Original source inputs for capability tests are pinned in `profiles.json`. +No newly authored foreign-language test runner was added. The existing shell +test entrypoints and tool invocations are disclosed in the profile README. +Per-file compile/run output and status are retained even for expected failures. +Only successful compiler outputs were executed. `struct` correctly returns +20 in its positive fixture; this exit is unrelated to compiler error20. + +The source-only bridge and native-host worktrees remained at their pinned +revisions with no tracked modifications. The definition worktree contains only +this additive profile/evidence packet. Existing immutable evidence was not +rewritten. Host tests used their own temporary files and private child +processes; loopback TCP ports were selected by the kernel. + +Costs are coarse `/usr/bin/time` observations on a shared host, with scheduler +wrapper overhead included in complete rebuild samples. They are not a +performance qualification. Definition-control orchestration totals, complete +engineering/API costs and energy are UNKNOWN. No model/config/checkpoint was +consumed. GPU, simulator, full gate5/C-oracle, DDC and end-to-end model gates +are NOT_RUN. Final-source independent review of this profile packet is pending. diff --git a/evidence/ECOSYSTEM660/SHA256SUMS b/evidence/ECOSYSTEM660/SHA256SUMS new file mode 100644 index 000000000..8a18028e3 --- /dev/null +++ b/evidence/ECOSYSTEM660/SHA256SUMS @@ -0,0 +1,439 @@ +354ea3cb3f73b616023fd24e68c0848fc434a56746c761e41414045afaf27b95 evidence/ECOSYSTEM660/README.md +256476da056fb256cf6dcd2395720bfb8f3e8b34b5d3db1f997c552ff08e5a98 evidence/ECOSYSTEM660/baseline.readelf.txt +03bbe40a6525f8c86ae534bbf84feb0114e552410ed724f731471bebb75580ec evidence/ECOSYSTEM660/birth.cost +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/birth.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/birth.stderr +55c32d42920637cb218975d91e47bbd31b4aca499277d916244716a0c5efc8e2 evidence/ECOSYSTEM660/birth.stdout +0f8e255162d111686f235f09c28a6c264523b6b48ab68f6d8d223b03df92f208 evidence/ECOSYSTEM660/bridge-binaries.sha256 +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/bridge-tracked-source-unchanged.exit +e56b21ae7bdbfce0377c12aca79f855d591f02e491ff159689739c55306d6506 evidence/ECOSYSTEM660/bridge.cost +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/bridge.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/bridge.stderr +d2bf998e2ad964ecf02327ae887a51daaee7d7691314b307153ca664d368dc73 evidence/ECOSYSTEM660/bridge.stdout +6aec3256caf8fe32bf9d8cdb3d5c9d0640bc7e9d69e6566f40a90172fe23b38f evidence/ECOSYSTEM660/capabilities/artifacts.sha256 +e474f552e779425c4923146f004bd37ef235d560005f36bc81e867fdbde3fdd5 evidence/ECOSYSTEM660/capabilities/baseline-args.compile.cost +1121cfccd5913f0a63fec40a6ffd44ea64f9dc135c66634ba001d10bcf4302a2 evidence/ECOSYSTEM660/capabilities/baseline-args.compile.exit +b8697c0ea66f27523da00e89b698ad5773e36fae122a5fdb914ac85f51a5d820 evidence/ECOSYSTEM660/capabilities/baseline-args.compile.stderr +cf188f07b45017ab6169aa57b65d9ea9a85b08f131bf43885824ea9bad4909ee evidence/ECOSYSTEM660/capabilities/baseline-positive.compile.cost +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/capabilities/baseline-positive.compile.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/baseline-positive.compile.stderr +cf188f07b45017ab6169aa57b65d9ea9a85b08f131bf43885824ea9bad4909ee evidence/ECOSYSTEM660/capabilities/baseline-positive.run.cost +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/capabilities/baseline-positive.run.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/baseline-positive.run.stderr +8b45d7fd25162b8f74efd1342db13d76d9b3ee4197dccac98bb44ff5f0d22722 evidence/ECOSYSTEM660/capabilities/baseline-positive.run.stdout +e474f552e779425c4923146f004bd37ef235d560005f36bc81e867fdbde3fdd5 evidence/ECOSYSTEM660/capabilities/baseline-refuse-float.compile.cost +1121cfccd5913f0a63fec40a6ffd44ea64f9dc135c66634ba001d10bcf4302a2 evidence/ECOSYSTEM660/capabilities/baseline-refuse-float.compile.exit +85ed6219be355818844f1e06a75380601ada3d3178885cb97e7767be15f0130e evidence/ECOSYSTEM660/capabilities/baseline-refuse-float.compile.stderr +698323ada77d2be899f128c72582d5c6e64859e282b9845733df457f1da733cc evidence/ECOSYSTEM660/capabilities/baseline-refuse-type.compile.cost +10159baf262b43a92d95db59dae1f72c645127301661e0a3ce4e38b295a97c58 evidence/ECOSYSTEM660/capabilities/baseline-refuse-type.compile.exit +3c2192bb4faa2ffac55b3a8ebcf45cfa3597ed6432db3ebd3ee12aa81fc0a06f evidence/ECOSYSTEM660/capabilities/baseline-refuse-type.compile.stderr +e42fd87fbef38cab52bf27ad030c8645a5373a7381945acfd9141c7b80920e7f evidence/ECOSYSTEM660/capabilities/baseline-struct.compile.cost +e6c21e8d260fe71882debdb339d2402a2ca7648529bc2303f48649bce0380017 evidence/ECOSYSTEM660/capabilities/baseline-struct.compile.exit +5f17d2ac7b2d85a8acc9facbac31afd064e4be4ec22919d382c2533f70c2112c evidence/ECOSYSTEM660/capabilities/baseline-struct.compile.stderr +cf188f07b45017ab6169aa57b65d9ea9a85b08f131bf43885824ea9bad4909ee evidence/ECOSYSTEM660/capabilities/baseline-trap-bounds.compile.cost +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/capabilities/baseline-trap-bounds.compile.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/baseline-trap-bounds.compile.stderr +f84a7f1572b8836acb6fef058a19be036fb723cbe12bf0bf0519bf86ba65cdea evidence/ECOSYSTEM660/capabilities/baseline-trap-bounds.run.cost +45080860abd6d79b808dbd71836bf29e41918f1bf1f05f7ce732ada7674cc816 evidence/ECOSYSTEM660/capabilities/baseline-trap-bounds.run.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/baseline-trap-bounds.run.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/baseline-trap-bounds.run.stdout +cf188f07b45017ab6169aa57b65d9ea9a85b08f131bf43885824ea9bad4909ee evidence/ECOSYSTEM660/capabilities/baseline-trap-conversion.compile.cost +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/capabilities/baseline-trap-conversion.compile.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/baseline-trap-conversion.compile.stderr +974cfb7ed8637785f815e379b6f3d2626c48b442e278fe139499f75295ccd705 evidence/ECOSYSTEM660/capabilities/baseline-trap-conversion.run.cost +2fcae9c346ff9530cd3b7303a6456e3a296ff1876b18b50c324343638ec2bdf3 evidence/ECOSYSTEM660/capabilities/baseline-trap-conversion.run.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/baseline-trap-conversion.run.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/baseline-trap-conversion.run.stdout +cf188f07b45017ab6169aa57b65d9ea9a85b08f131bf43885824ea9bad4909ee evidence/ECOSYSTEM660/capabilities/baseline-trap-div.compile.cost +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/capabilities/baseline-trap-div.compile.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/baseline-trap-div.compile.stderr +814ad91892381d2e091123a9dad17cc70a8c33a6e3803185e6e7a00ce21efa5e evidence/ECOSYSTEM660/capabilities/baseline-trap-div.run.cost +496ecdb854d49463f8655b210ddf17d3395d26b20a6f297b07cf99834c6336f0 evidence/ECOSYSTEM660/capabilities/baseline-trap-div.run.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/baseline-trap-div.run.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/baseline-trap-div.run.stdout +cf188f07b45017ab6169aa57b65d9ea9a85b08f131bf43885824ea9bad4909ee evidence/ECOSYSTEM660/capabilities/baseline-trap-loop.compile.cost +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/capabilities/baseline-trap-loop.compile.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/baseline-trap-loop.compile.stderr +dce28f5f3dfac74ace21e57229a14b9aa7977ac93fed03bed6899151f20e7cbd evidence/ECOSYSTEM660/capabilities/baseline-trap-loop.run.cost +77a60c200656e08ac5403f38b58657ecec155293323bd5313290399b75cf1c3d evidence/ECOSYSTEM660/capabilities/baseline-trap-loop.run.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/baseline-trap-loop.run.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/baseline-trap-loop.run.stdout +cf188f07b45017ab6169aa57b65d9ea9a85b08f131bf43885824ea9bad4909ee evidence/ECOSYSTEM660/capabilities/baseline-trap-overflow.compile.cost +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/capabilities/baseline-trap-overflow.compile.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/baseline-trap-overflow.compile.stderr +bf84a59402224c7492c3910b682cc8f06273bc825d0b115a031828b3bc2036a6 evidence/ECOSYSTEM660/capabilities/baseline-trap-overflow.run.cost +39b8dc3fc8b44765c8e6f1adee04c5b465e555ab791cc42d0d9e810d5b64297c evidence/ECOSYSTEM660/capabilities/baseline-trap-overflow.run.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/baseline-trap-overflow.run.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/baseline-trap-overflow.run.stdout +cf188f07b45017ab6169aa57b65d9ea9a85b08f131bf43885824ea9bad4909ee evidence/ECOSYSTEM660/capabilities/baseline-trap-shift.compile.cost +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/capabilities/baseline-trap-shift.compile.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/baseline-trap-shift.compile.stderr +35a233dd212cbe90148b8820ecfe257c5695048bd0577b5adc098c1078a52b93 evidence/ECOSYSTEM660/capabilities/baseline-trap-shift.run.cost +bcea5d7d8b256f1bda5f90a3ede41899e94b89fccb4e4d2786073b5bfaa0002a evidence/ECOSYSTEM660/capabilities/baseline-trap-shift.run.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/baseline-trap-shift.run.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/baseline-trap-shift.run.stdout +e474f552e779425c4923146f004bd37ef235d560005f36bc81e867fdbde3fdd5 evidence/ECOSYSTEM660/capabilities/definitions-args.compile.cost +1121cfccd5913f0a63fec40a6ffd44ea64f9dc135c66634ba001d10bcf4302a2 evidence/ECOSYSTEM660/capabilities/definitions-args.compile.exit +b8697c0ea66f27523da00e89b698ad5773e36fae122a5fdb914ac85f51a5d820 evidence/ECOSYSTEM660/capabilities/definitions-args.compile.stderr +cf188f07b45017ab6169aa57b65d9ea9a85b08f131bf43885824ea9bad4909ee evidence/ECOSYSTEM660/capabilities/definitions-positive.compile.cost +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/capabilities/definitions-positive.compile.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/definitions-positive.compile.stderr +cf188f07b45017ab6169aa57b65d9ea9a85b08f131bf43885824ea9bad4909ee evidence/ECOSYSTEM660/capabilities/definitions-positive.run.cost +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/capabilities/definitions-positive.run.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/definitions-positive.run.stderr +8b45d7fd25162b8f74efd1342db13d76d9b3ee4197dccac98bb44ff5f0d22722 evidence/ECOSYSTEM660/capabilities/definitions-positive.run.stdout +e474f552e779425c4923146f004bd37ef235d560005f36bc81e867fdbde3fdd5 evidence/ECOSYSTEM660/capabilities/definitions-refuse-float.compile.cost +1121cfccd5913f0a63fec40a6ffd44ea64f9dc135c66634ba001d10bcf4302a2 evidence/ECOSYSTEM660/capabilities/definitions-refuse-float.compile.exit +85ed6219be355818844f1e06a75380601ada3d3178885cb97e7767be15f0130e evidence/ECOSYSTEM660/capabilities/definitions-refuse-float.compile.stderr +698323ada77d2be899f128c72582d5c6e64859e282b9845733df457f1da733cc evidence/ECOSYSTEM660/capabilities/definitions-refuse-type.compile.cost +10159baf262b43a92d95db59dae1f72c645127301661e0a3ce4e38b295a97c58 evidence/ECOSYSTEM660/capabilities/definitions-refuse-type.compile.exit +3c2192bb4faa2ffac55b3a8ebcf45cfa3597ed6432db3ebd3ee12aa81fc0a06f evidence/ECOSYSTEM660/capabilities/definitions-refuse-type.compile.stderr +cf188f07b45017ab6169aa57b65d9ea9a85b08f131bf43885824ea9bad4909ee evidence/ECOSYSTEM660/capabilities/definitions-struct.compile.cost +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/capabilities/definitions-struct.compile.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/definitions-struct.compile.stderr +ebdfdfd6d9f17b16fa92fab5a25978b947b863870058dfac2be19eed01a6f0c3 evidence/ECOSYSTEM660/capabilities/definitions-struct.run.cost +5378796307535df3ec8d8b15a2e2dc5641419c3d3060cfe32238c0fa973f7aa3 evidence/ECOSYSTEM660/capabilities/definitions-struct.run.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/definitions-struct.run.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/definitions-struct.run.stdout +cf188f07b45017ab6169aa57b65d9ea9a85b08f131bf43885824ea9bad4909ee evidence/ECOSYSTEM660/capabilities/definitions-trap-bounds.compile.cost +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/capabilities/definitions-trap-bounds.compile.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/definitions-trap-bounds.compile.stderr +f84a7f1572b8836acb6fef058a19be036fb723cbe12bf0bf0519bf86ba65cdea evidence/ECOSYSTEM660/capabilities/definitions-trap-bounds.run.cost +45080860abd6d79b808dbd71836bf29e41918f1bf1f05f7ce732ada7674cc816 evidence/ECOSYSTEM660/capabilities/definitions-trap-bounds.run.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/definitions-trap-bounds.run.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/definitions-trap-bounds.run.stdout +cf188f07b45017ab6169aa57b65d9ea9a85b08f131bf43885824ea9bad4909ee evidence/ECOSYSTEM660/capabilities/definitions-trap-conversion.compile.cost +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/capabilities/definitions-trap-conversion.compile.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/definitions-trap-conversion.compile.stderr +974cfb7ed8637785f815e379b6f3d2626c48b442e278fe139499f75295ccd705 evidence/ECOSYSTEM660/capabilities/definitions-trap-conversion.run.cost +2fcae9c346ff9530cd3b7303a6456e3a296ff1876b18b50c324343638ec2bdf3 evidence/ECOSYSTEM660/capabilities/definitions-trap-conversion.run.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/definitions-trap-conversion.run.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/definitions-trap-conversion.run.stdout +cf188f07b45017ab6169aa57b65d9ea9a85b08f131bf43885824ea9bad4909ee evidence/ECOSYSTEM660/capabilities/definitions-trap-div.compile.cost +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/capabilities/definitions-trap-div.compile.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/definitions-trap-div.compile.stderr +814ad91892381d2e091123a9dad17cc70a8c33a6e3803185e6e7a00ce21efa5e evidence/ECOSYSTEM660/capabilities/definitions-trap-div.run.cost +496ecdb854d49463f8655b210ddf17d3395d26b20a6f297b07cf99834c6336f0 evidence/ECOSYSTEM660/capabilities/definitions-trap-div.run.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/definitions-trap-div.run.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/definitions-trap-div.run.stdout +cf188f07b45017ab6169aa57b65d9ea9a85b08f131bf43885824ea9bad4909ee evidence/ECOSYSTEM660/capabilities/definitions-trap-loop.compile.cost +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/capabilities/definitions-trap-loop.compile.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/definitions-trap-loop.compile.stderr +dce28f5f3dfac74ace21e57229a14b9aa7977ac93fed03bed6899151f20e7cbd evidence/ECOSYSTEM660/capabilities/definitions-trap-loop.run.cost +77a60c200656e08ac5403f38b58657ecec155293323bd5313290399b75cf1c3d evidence/ECOSYSTEM660/capabilities/definitions-trap-loop.run.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/definitions-trap-loop.run.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/definitions-trap-loop.run.stdout +cf188f07b45017ab6169aa57b65d9ea9a85b08f131bf43885824ea9bad4909ee evidence/ECOSYSTEM660/capabilities/definitions-trap-overflow.compile.cost +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/capabilities/definitions-trap-overflow.compile.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/definitions-trap-overflow.compile.stderr +bf84a59402224c7492c3910b682cc8f06273bc825d0b115a031828b3bc2036a6 evidence/ECOSYSTEM660/capabilities/definitions-trap-overflow.run.cost +39b8dc3fc8b44765c8e6f1adee04c5b465e555ab791cc42d0d9e810d5b64297c evidence/ECOSYSTEM660/capabilities/definitions-trap-overflow.run.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/definitions-trap-overflow.run.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/definitions-trap-overflow.run.stdout +cf188f07b45017ab6169aa57b65d9ea9a85b08f131bf43885824ea9bad4909ee evidence/ECOSYSTEM660/capabilities/definitions-trap-shift.compile.cost +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/capabilities/definitions-trap-shift.compile.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/definitions-trap-shift.compile.stderr +35a233dd212cbe90148b8820ecfe257c5695048bd0577b5adc098c1078a52b93 evidence/ECOSYSTEM660/capabilities/definitions-trap-shift.run.cost +bcea5d7d8b256f1bda5f90a3ede41899e94b89fccb4e4d2786073b5bfaa0002a evidence/ECOSYSTEM660/capabilities/definitions-trap-shift.run.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/definitions-trap-shift.run.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/definitions-trap-shift.run.stdout +cf188f07b45017ab6169aa57b65d9ea9a85b08f131bf43885824ea9bad4909ee evidence/ECOSYSTEM660/capabilities/host-args.compile.cost +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/capabilities/host-args.compile.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/host-args.compile.stderr +cf188f07b45017ab6169aa57b65d9ea9a85b08f131bf43885824ea9bad4909ee evidence/ECOSYSTEM660/capabilities/host-args.run.cost +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/capabilities/host-args.run.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/host-args.run.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/host-args.run.stdout +cf188f07b45017ab6169aa57b65d9ea9a85b08f131bf43885824ea9bad4909ee evidence/ECOSYSTEM660/capabilities/host-positive.compile.cost +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/capabilities/host-positive.compile.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/host-positive.compile.stderr +cf188f07b45017ab6169aa57b65d9ea9a85b08f131bf43885824ea9bad4909ee evidence/ECOSYSTEM660/capabilities/host-positive.run.cost +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/capabilities/host-positive.run.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/host-positive.run.stderr +8b45d7fd25162b8f74efd1342db13d76d9b3ee4197dccac98bb44ff5f0d22722 evidence/ECOSYSTEM660/capabilities/host-positive.run.stdout +e474f552e779425c4923146f004bd37ef235d560005f36bc81e867fdbde3fdd5 evidence/ECOSYSTEM660/capabilities/host-refuse-float.compile.cost +1121cfccd5913f0a63fec40a6ffd44ea64f9dc135c66634ba001d10bcf4302a2 evidence/ECOSYSTEM660/capabilities/host-refuse-float.compile.exit +85ed6219be355818844f1e06a75380601ada3d3178885cb97e7767be15f0130e evidence/ECOSYSTEM660/capabilities/host-refuse-float.compile.stderr +698323ada77d2be899f128c72582d5c6e64859e282b9845733df457f1da733cc evidence/ECOSYSTEM660/capabilities/host-refuse-type.compile.cost +10159baf262b43a92d95db59dae1f72c645127301661e0a3ce4e38b295a97c58 evidence/ECOSYSTEM660/capabilities/host-refuse-type.compile.exit +3c2192bb4faa2ffac55b3a8ebcf45cfa3597ed6432db3ebd3ee12aa81fc0a06f evidence/ECOSYSTEM660/capabilities/host-refuse-type.compile.stderr +e42fd87fbef38cab52bf27ad030c8645a5373a7381945acfd9141c7b80920e7f evidence/ECOSYSTEM660/capabilities/host-struct.compile.cost +e6c21e8d260fe71882debdb339d2402a2ca7648529bc2303f48649bce0380017 evidence/ECOSYSTEM660/capabilities/host-struct.compile.exit +5f17d2ac7b2d85a8acc9facbac31afd064e4be4ec22919d382c2533f70c2112c evidence/ECOSYSTEM660/capabilities/host-struct.compile.stderr +cf188f07b45017ab6169aa57b65d9ea9a85b08f131bf43885824ea9bad4909ee evidence/ECOSYSTEM660/capabilities/host-trap-bounds.compile.cost +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/capabilities/host-trap-bounds.compile.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/host-trap-bounds.compile.stderr +f84a7f1572b8836acb6fef058a19be036fb723cbe12bf0bf0519bf86ba65cdea evidence/ECOSYSTEM660/capabilities/host-trap-bounds.run.cost +45080860abd6d79b808dbd71836bf29e41918f1bf1f05f7ce732ada7674cc816 evidence/ECOSYSTEM660/capabilities/host-trap-bounds.run.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/host-trap-bounds.run.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/host-trap-bounds.run.stdout +cf188f07b45017ab6169aa57b65d9ea9a85b08f131bf43885824ea9bad4909ee evidence/ECOSYSTEM660/capabilities/host-trap-conversion.compile.cost +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/capabilities/host-trap-conversion.compile.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/host-trap-conversion.compile.stderr +974cfb7ed8637785f815e379b6f3d2626c48b442e278fe139499f75295ccd705 evidence/ECOSYSTEM660/capabilities/host-trap-conversion.run.cost +2fcae9c346ff9530cd3b7303a6456e3a296ff1876b18b50c324343638ec2bdf3 evidence/ECOSYSTEM660/capabilities/host-trap-conversion.run.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/host-trap-conversion.run.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/host-trap-conversion.run.stdout +cf188f07b45017ab6169aa57b65d9ea9a85b08f131bf43885824ea9bad4909ee evidence/ECOSYSTEM660/capabilities/host-trap-div.compile.cost +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/capabilities/host-trap-div.compile.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/host-trap-div.compile.stderr +814ad91892381d2e091123a9dad17cc70a8c33a6e3803185e6e7a00ce21efa5e evidence/ECOSYSTEM660/capabilities/host-trap-div.run.cost +496ecdb854d49463f8655b210ddf17d3395d26b20a6f297b07cf99834c6336f0 evidence/ECOSYSTEM660/capabilities/host-trap-div.run.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/host-trap-div.run.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/host-trap-div.run.stdout +cf188f07b45017ab6169aa57b65d9ea9a85b08f131bf43885824ea9bad4909ee evidence/ECOSYSTEM660/capabilities/host-trap-loop.compile.cost +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/capabilities/host-trap-loop.compile.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/host-trap-loop.compile.stderr +dce28f5f3dfac74ace21e57229a14b9aa7977ac93fed03bed6899151f20e7cbd evidence/ECOSYSTEM660/capabilities/host-trap-loop.run.cost +77a60c200656e08ac5403f38b58657ecec155293323bd5313290399b75cf1c3d evidence/ECOSYSTEM660/capabilities/host-trap-loop.run.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/host-trap-loop.run.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/host-trap-loop.run.stdout +cf188f07b45017ab6169aa57b65d9ea9a85b08f131bf43885824ea9bad4909ee evidence/ECOSYSTEM660/capabilities/host-trap-overflow.compile.cost +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/capabilities/host-trap-overflow.compile.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/host-trap-overflow.compile.stderr +bf84a59402224c7492c3910b682cc8f06273bc825d0b115a031828b3bc2036a6 evidence/ECOSYSTEM660/capabilities/host-trap-overflow.run.cost +39b8dc3fc8b44765c8e6f1adee04c5b465e555ab791cc42d0d9e810d5b64297c evidence/ECOSYSTEM660/capabilities/host-trap-overflow.run.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/host-trap-overflow.run.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/host-trap-overflow.run.stdout +cf188f07b45017ab6169aa57b65d9ea9a85b08f131bf43885824ea9bad4909ee evidence/ECOSYSTEM660/capabilities/host-trap-shift.compile.cost +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/capabilities/host-trap-shift.compile.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/host-trap-shift.compile.stderr +35a233dd212cbe90148b8820ecfe257c5695048bd0577b5adc098c1078a52b93 evidence/ECOSYSTEM660/capabilities/host-trap-shift.run.cost +bcea5d7d8b256f1bda5f90a3ede41899e94b89fccb4e4d2786073b5bfaa0002a evidence/ECOSYSTEM660/capabilities/host-trap-shift.run.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/host-trap-shift.run.stderr +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/capabilities/host-trap-shift.run.stdout +0e6bdbfb63ef9e52028682ddbecb1e9b4d81a3326b2e63848be570a775c31e6e evidence/ECOSYSTEM660/capabilities/inputs/args.om +2fbfb7d05a241e7772f3fcbff005fbd06b7f459f055088f946a0d148640396df evidence/ECOSYSTEM660/capabilities/inputs/positive.om +85ed6b89f6e9e185cbd723b5773ab90a57f29be486ed425b1256ee77384a83de evidence/ECOSYSTEM660/capabilities/inputs/refuse-float.om +c612d3492faaaa12be1215468ba51c38772d2af3edadcfc8aa5d1e3ed3b4e480 evidence/ECOSYSTEM660/capabilities/inputs/refuse-type.om +fd78d1b9bf5e5c5bc1d5e1a0318853fe4bc15c54b3289c4a29ef840d2e7da3c6 evidence/ECOSYSTEM660/capabilities/inputs/struct.om +d2ab4b69f472df006509f3245292cec1e37b8a3ea7ffe4677b1abd5923b501df evidence/ECOSYSTEM660/capabilities/inputs/trap-bounds.om +223aab00ff2b19f54a7b09ea09a74a43059db3528b9950712715d17092f4596d evidence/ECOSYSTEM660/capabilities/inputs/trap-conversion.om +cf78d0c37418aca1fa8c8f439ec1e70df6358201171cbdfd9c04e24596de1c7f evidence/ECOSYSTEM660/capabilities/inputs/trap-div.om +3e50d994d8f6673e35e18973efa5951bd8a79a0fdfa25ed86da0055437dadec6 evidence/ECOSYSTEM660/capabilities/inputs/trap-loop.om +4d43cc62549581c6fd50712f37374d33a54d7bba7c733bfe37411769388b9c6b evidence/ECOSYSTEM660/capabilities/inputs/trap-overflow.om +499bcf1124822f05f8f33280e32115cf8c769e5db8bcfbff7a97a0cbed2603e0 evidence/ECOSYSTEM660/capabilities/inputs/trap-shift.om +fd55541faafd82643a7e667a7de57875a8275af1a0fbb862e4159b53c390c60b evidence/ECOSYSTEM660/capabilities/results.tsv +22b618f2734e7a457983b09b79c04b6604629940a68a3f743e15991d234d28e9 evidence/ECOSYSTEM660/consumed.sha256 +97eaba3de54fb3864ef5b15ac56a4a6a122d4638136f97ffb0c220e757cf52d7 evidence/ECOSYSTEM660/definitions.readelf.txt +c74c678804899ca42f0233eb84f8cb318c4c759adfdd0cc8da86a8ec55bd416c evidence/ECOSYSTEM660/definitions/binaries.sha256 +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/definitions/case0.exit +9c72f575bc3f0c05bece795c72471e66778bccf9739566fe2ad31ec8af749a4b evidence/ECOSYSTEM660/definitions/case0.request +f9b595f2eb1e3b7ac4e8a71a9a866c88dda9d9fe0037618b2328dbf6abd39cea evidence/ECOSYSTEM660/definitions/case0.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/case0.stderr +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/definitions/case1.exit +87682ebfe7a3f0c0b69399adb5b913f93880dbbde40075190b8ee76a27d3bb13 evidence/ECOSYSTEM660/definitions/case1.request +d26265f83372d6bba18fc6937d4bdbf1329cdf6fe678bdbb90d3d6042a0d038f evidence/ECOSYSTEM660/definitions/case1.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/case1.stderr +95aebc97bc646c67fdcd923a5965b001f3c8a5c4d3a77075112e12a3a311d760 evidence/ECOSYSTEM660/definitions/case10.exit +d37dab1c43606c77cedd02d5c4a991357a040741c3395f200937e916ab84cd47 evidence/ECOSYSTEM660/definitions/case10.request +49c507705fefe32a01623def96d9dab488c5c8ed5688fe81b720afa3539b8809 evidence/ECOSYSTEM660/definitions/case10.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/case10.stderr +ce516e29a2ccfe4bab40e4e6adab7661cd695680482c00b1faa738fc0df62698 evidence/ECOSYSTEM660/definitions/case11.exit +927849465667ad088dbe53ba0b83bc6e6cec4ed5ec9e2fb7a472baf2d56932cc evidence/ECOSYSTEM660/definitions/case11.request +88eb32a51d2676beb853648c6aeb2be7d79e48889395a4cb75176e53d1478bd8 evidence/ECOSYSTEM660/definitions/case11.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/case11.stderr +95aebc97bc646c67fdcd923a5965b001f3c8a5c4d3a77075112e12a3a311d760 evidence/ECOSYSTEM660/definitions/case12.exit +3723a2c581377a077bd081cab5000d343fc0c59b71db3bfe2fe8244ac8b332aa evidence/ECOSYSTEM660/definitions/case12.request +a137ba088292b1485c8f489660c7d3295d648467a8c8d57861151a13247bf797 evidence/ECOSYSTEM660/definitions/case12.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/case12.stderr +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/definitions/case2.exit +5b290e08f480af345a1187ea3e914f8eccbd7382ecd493bf721f35480cea4f44 evidence/ECOSYSTEM660/definitions/case2.request +2a7ede9c6a3ecd15aa44d28acc2bbb34971bbf8086ace5692dba379afabec405 evidence/ECOSYSTEM660/definitions/case2.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/case2.stderr +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/definitions/case3.exit +fc43c6233b81d972f7839692c426d9f15d7d3254d867583cc50c452489a4e553 evidence/ECOSYSTEM660/definitions/case3.request +8b65d7aa2e8ede55430b67c9a16f1aa6693b272ec6f16a569482b3415137f243 evidence/ECOSYSTEM660/definitions/case3.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/case3.stderr +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/definitions/case4.exit +0df47bec19e20ba1a6ae0de01955cb3fd5a07636ab45206cde0780c286158863 evidence/ECOSYSTEM660/definitions/case4.request +cd9202736ad80ae39be9f914ef42744a773623dce6713dae827562bc97836c68 evidence/ECOSYSTEM660/definitions/case4.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/case4.stderr +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/definitions/case5.exit +7fa57f774a7fcebd10d4bee1855f3dbed1d4e1086064a70738097a7a7a9e3481 evidence/ECOSYSTEM660/definitions/case5.request +4f2a0e24cdeca7cfdac9e351a8eb6ec97219b3b374eaf7d0a642406d632f0f63 evidence/ECOSYSTEM660/definitions/case5.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/case5.stderr +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/definitions/case6.exit +0125f68411f268d1ef7763d890c39c316541620f34433ddef6e471e9daae1134 evidence/ECOSYSTEM660/definitions/case6.request +f9b595f2eb1e3b7ac4e8a71a9a866c88dda9d9fe0037618b2328dbf6abd39cea evidence/ECOSYSTEM660/definitions/case6.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/case6.stderr +917df3320d778ddbaa5c5c7742bc4046bf803c36ed2b050f30844ed206783469 evidence/ECOSYSTEM660/definitions/case7.exit +b7b49d2fd1848293810bd350b108814f06c528d6669b8df328f81b556f898eee evidence/ECOSYSTEM660/definitions/case7.request +d0d3f308711dfbc3584563b95fd30a936967ed4ab06243164af4f489218cb67d evidence/ECOSYSTEM660/definitions/case7.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/case7.stderr +10159baf262b43a92d95db59dae1f72c645127301661e0a3ce4e38b295a97c58 evidence/ECOSYSTEM660/definitions/case8.exit +5325ae83cdf1236b62510162f45e1187860e117ce9ef274c106f41af9ec83b11 evidence/ECOSYSTEM660/definitions/case8.request +278e37e5fb8d7ec5c39ab880c4d35685e5db67db58b4c8c4550cf28790d7d0b3 evidence/ECOSYSTEM660/definitions/case8.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/case8.stderr +238903180cc104ec2c5d8b3f20c5bc61b389ec0a967df8cc208cdc7cd454174f evidence/ECOSYSTEM660/definitions/case9.exit +e2c3d4c533f45e210e5b2b575a709ba41794f6987560e66f4caba2230d69a157 evidence/ECOSYSTEM660/definitions/case9.request +9c5a0e193822ea7e09d786903bf05b2968c8a60d1ee338be577fe838bba89f81 evidence/ECOSYSTEM660/definitions/case9.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/case9.stderr +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/definitions/check.compile.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/check.compile.stderr +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/definitions/check.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/check.stderr +77dbcfbc0e255b416451cbe3b68805029deaade790522d3015a104ba759fea93 evidence/ECOSYSTEM660/definitions/check.stdout +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/definitions/corpus.compile.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/corpus.compile.stderr +21514da5f4e648e9e3dd8613cef3fa018d814c1eb9fbb36e6264f2e6069d329f evidence/ECOSYSTEM660/definitions/independent-source-digests.txt +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/definitions/mutant0.case0.exit +a6878247b42821f31f509421461e4b00f97ed0d0872224427693779917ecf8a0 evidence/ECOSYSTEM660/definitions/mutant0.case0.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant0.case0.stderr +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/definitions/mutant0.case1.exit +faac41b5c8dbacd88aa77d4c0ee5f58429703692e9ea7bda1c97de0e2f6ced83 evidence/ECOSYSTEM660/definitions/mutant0.case1.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant0.case1.stderr +95aebc97bc646c67fdcd923a5965b001f3c8a5c4d3a77075112e12a3a311d760 evidence/ECOSYSTEM660/definitions/mutant0.case10.exit +49c507705fefe32a01623def96d9dab488c5c8ed5688fe81b720afa3539b8809 evidence/ECOSYSTEM660/definitions/mutant0.case10.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant0.case10.stderr +ce516e29a2ccfe4bab40e4e6adab7661cd695680482c00b1faa738fc0df62698 evidence/ECOSYSTEM660/definitions/mutant0.case11.exit +88eb32a51d2676beb853648c6aeb2be7d79e48889395a4cb75176e53d1478bd8 evidence/ECOSYSTEM660/definitions/mutant0.case11.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant0.case11.stderr +95aebc97bc646c67fdcd923a5965b001f3c8a5c4d3a77075112e12a3a311d760 evidence/ECOSYSTEM660/definitions/mutant0.case12.exit +a137ba088292b1485c8f489660c7d3295d648467a8c8d57861151a13247bf797 evidence/ECOSYSTEM660/definitions/mutant0.case12.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant0.case12.stderr +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/definitions/mutant0.case2.exit +327d7214875f86a5d506da94712515655326b3d90c02805620823fba94c7fa1d evidence/ECOSYSTEM660/definitions/mutant0.case2.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant0.case2.stderr +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/definitions/mutant0.case3.exit +d01b6c90550215053655ca4d55ea9904aa307e2653789bbc70296cd5853fa546 evidence/ECOSYSTEM660/definitions/mutant0.case3.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant0.case3.stderr +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/definitions/mutant0.case4.exit +599608ce40838fb0faa1ad2754c644cd7f86509429dc0a35114fe23de8b9e222 evidence/ECOSYSTEM660/definitions/mutant0.case4.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant0.case4.stderr +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/definitions/mutant0.case5.exit +d27620c7174451bbb53e1eedc7b591152b0b1996ad509c807ae825582e1f88e5 evidence/ECOSYSTEM660/definitions/mutant0.case5.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant0.case5.stderr +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/definitions/mutant0.case6.exit +a6878247b42821f31f509421461e4b00f97ed0d0872224427693779917ecf8a0 evidence/ECOSYSTEM660/definitions/mutant0.case6.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant0.case6.stderr +917df3320d778ddbaa5c5c7742bc4046bf803c36ed2b050f30844ed206783469 evidence/ECOSYSTEM660/definitions/mutant0.case7.exit +d0d3f308711dfbc3584563b95fd30a936967ed4ab06243164af4f489218cb67d evidence/ECOSYSTEM660/definitions/mutant0.case7.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant0.case7.stderr +10159baf262b43a92d95db59dae1f72c645127301661e0a3ce4e38b295a97c58 evidence/ECOSYSTEM660/definitions/mutant0.case8.exit +278e37e5fb8d7ec5c39ab880c4d35685e5db67db58b4c8c4550cf28790d7d0b3 evidence/ECOSYSTEM660/definitions/mutant0.case8.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant0.case8.stderr +238903180cc104ec2c5d8b3f20c5bc61b389ec0a967df8cc208cdc7cd454174f evidence/ECOSYSTEM660/definitions/mutant0.case9.exit +9c5a0e193822ea7e09d786903bf05b2968c8a60d1ee338be577fe838bba89f81 evidence/ECOSYSTEM660/definitions/mutant0.case9.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant0.case9.stderr +4355a46b19d348dc2f57c046f8ef63d4538ebb936000f3c9ee954a27460dd865 evidence/ECOSYSTEM660/definitions/mutant0.check.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant0.check.stderr +51e6dc5dda5779d789fabc21d5b24bdd9f13474329d409dd52ddc15a0d7c805b evidence/ECOSYSTEM660/definitions/mutant0.check.stdout +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/definitions/mutant0.compile.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant0.compile.stderr +a97690f8d068ae9910485bbe11b8ed4ea5d6f642eea3241fa373081c8ab20550 evidence/ECOSYSTEM660/definitions/mutant0.om +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/definitions/mutant1.case0.exit +1a3fc311760ceb05cedd21ac5800ce65e2fc68f77a71b58b304183d10d3c8195 evidence/ECOSYSTEM660/definitions/mutant1.case0.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant1.case0.stderr +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/definitions/mutant1.case1.exit +e46ae83491529dea625e37022e5846fd7da2a2213093cfb5f60f33599efd7618 evidence/ECOSYSTEM660/definitions/mutant1.case1.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant1.case1.stderr +95aebc97bc646c67fdcd923a5965b001f3c8a5c4d3a77075112e12a3a311d760 evidence/ECOSYSTEM660/definitions/mutant1.case10.exit +49c507705fefe32a01623def96d9dab488c5c8ed5688fe81b720afa3539b8809 evidence/ECOSYSTEM660/definitions/mutant1.case10.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant1.case10.stderr +ce516e29a2ccfe4bab40e4e6adab7661cd695680482c00b1faa738fc0df62698 evidence/ECOSYSTEM660/definitions/mutant1.case11.exit +88eb32a51d2676beb853648c6aeb2be7d79e48889395a4cb75176e53d1478bd8 evidence/ECOSYSTEM660/definitions/mutant1.case11.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant1.case11.stderr +95aebc97bc646c67fdcd923a5965b001f3c8a5c4d3a77075112e12a3a311d760 evidence/ECOSYSTEM660/definitions/mutant1.case12.exit +a137ba088292b1485c8f489660c7d3295d648467a8c8d57861151a13247bf797 evidence/ECOSYSTEM660/definitions/mutant1.case12.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant1.case12.stderr +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/definitions/mutant1.case2.exit +f7a3cd4ce1ef393429b83eb93a453ba733f8f6fedb8c0c86671f8f163d59d2a8 evidence/ECOSYSTEM660/definitions/mutant1.case2.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant1.case2.stderr +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/definitions/mutant1.case3.exit +c34831e1a9a4546c09197675a63ecfaac8f66f097f16db3bb64907dfb1044d36 evidence/ECOSYSTEM660/definitions/mutant1.case3.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant1.case3.stderr +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/definitions/mutant1.case4.exit +4aa71b804519b6a193505a6a810f04bdd41a44092b0095d6f765d846959f6df5 evidence/ECOSYSTEM660/definitions/mutant1.case4.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant1.case4.stderr +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/definitions/mutant1.case5.exit +09d405a669813cbd0ea9258954b6d1181988a4d3372e891c2268059f1d313ba7 evidence/ECOSYSTEM660/definitions/mutant1.case5.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant1.case5.stderr +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/definitions/mutant1.case6.exit +1a3fc311760ceb05cedd21ac5800ce65e2fc68f77a71b58b304183d10d3c8195 evidence/ECOSYSTEM660/definitions/mutant1.case6.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant1.case6.stderr +917df3320d778ddbaa5c5c7742bc4046bf803c36ed2b050f30844ed206783469 evidence/ECOSYSTEM660/definitions/mutant1.case7.exit +d0d3f308711dfbc3584563b95fd30a936967ed4ab06243164af4f489218cb67d evidence/ECOSYSTEM660/definitions/mutant1.case7.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant1.case7.stderr +10159baf262b43a92d95db59dae1f72c645127301661e0a3ce4e38b295a97c58 evidence/ECOSYSTEM660/definitions/mutant1.case8.exit +278e37e5fb8d7ec5c39ab880c4d35685e5db67db58b4c8c4550cf28790d7d0b3 evidence/ECOSYSTEM660/definitions/mutant1.case8.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant1.case8.stderr +238903180cc104ec2c5d8b3f20c5bc61b389ec0a967df8cc208cdc7cd454174f evidence/ECOSYSTEM660/definitions/mutant1.case9.exit +9c5a0e193822ea7e09d786903bf05b2968c8a60d1ee338be577fe838bba89f81 evidence/ECOSYSTEM660/definitions/mutant1.case9.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant1.case9.stderr +4355a46b19d348dc2f57c046f8ef63d4538ebb936000f3c9ee954a27460dd865 evidence/ECOSYSTEM660/definitions/mutant1.check.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant1.check.stderr +77799e54a1ddc0d4713d10d277949487c7ce2457e8d780814467a0dbe4109974 evidence/ECOSYSTEM660/definitions/mutant1.check.stdout +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/definitions/mutant1.compile.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant1.compile.stderr +f8dfc3900abce0fafa2dfb08049931a9c6784b423fb1b14a1008f6b7eef485b7 evidence/ECOSYSTEM660/definitions/mutant1.om +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/definitions/mutant2.case0.exit +1cdcb144a28cbc801a8ef26e811c7e90265cd950f34c7cbfe3a47158624721b3 evidence/ECOSYSTEM660/definitions/mutant2.case0.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant2.case0.stderr +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/definitions/mutant2.case1.exit +a439fb5299653cf78f9e8d55043e110b6255b585f166f3c2e65fda6d48f968ee evidence/ECOSYSTEM660/definitions/mutant2.case1.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant2.case1.stderr +95aebc97bc646c67fdcd923a5965b001f3c8a5c4d3a77075112e12a3a311d760 evidence/ECOSYSTEM660/definitions/mutant2.case10.exit +49c507705fefe32a01623def96d9dab488c5c8ed5688fe81b720afa3539b8809 evidence/ECOSYSTEM660/definitions/mutant2.case10.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant2.case10.stderr +ce516e29a2ccfe4bab40e4e6adab7661cd695680482c00b1faa738fc0df62698 evidence/ECOSYSTEM660/definitions/mutant2.case11.exit +88eb32a51d2676beb853648c6aeb2be7d79e48889395a4cb75176e53d1478bd8 evidence/ECOSYSTEM660/definitions/mutant2.case11.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant2.case11.stderr +95aebc97bc646c67fdcd923a5965b001f3c8a5c4d3a77075112e12a3a311d760 evidence/ECOSYSTEM660/definitions/mutant2.case12.exit +a137ba088292b1485c8f489660c7d3295d648467a8c8d57861151a13247bf797 evidence/ECOSYSTEM660/definitions/mutant2.case12.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant2.case12.stderr +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/definitions/mutant2.case2.exit +1cdcb144a28cbc801a8ef26e811c7e90265cd950f34c7cbfe3a47158624721b3 evidence/ECOSYSTEM660/definitions/mutant2.case2.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant2.case2.stderr +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/definitions/mutant2.case3.exit +c101bb6863036bf61ac35c2d40732750cb5c3360bbd6ea4e952a15dc6e947598 evidence/ECOSYSTEM660/definitions/mutant2.case3.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant2.case3.stderr +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/definitions/mutant2.case4.exit +1043d2264a08028b7bf9d8cfefe86d36cf42dcede87132cf93cb84f2f7ed3991 evidence/ECOSYSTEM660/definitions/mutant2.case4.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant2.case4.stderr +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/definitions/mutant2.case5.exit +939b4cd8439f0aae1cba2816b7864a401ccf1ed5423668b44b496b24cbfea041 evidence/ECOSYSTEM660/definitions/mutant2.case5.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant2.case5.stderr +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/definitions/mutant2.case6.exit +1cdcb144a28cbc801a8ef26e811c7e90265cd950f34c7cbfe3a47158624721b3 evidence/ECOSYSTEM660/definitions/mutant2.case6.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant2.case6.stderr +917df3320d778ddbaa5c5c7742bc4046bf803c36ed2b050f30844ed206783469 evidence/ECOSYSTEM660/definitions/mutant2.case7.exit +aee3fd932df7759ccdebd962af83f005a7399c54f787c7e85eb175f7325dd630 evidence/ECOSYSTEM660/definitions/mutant2.case7.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant2.case7.stderr +10159baf262b43a92d95db59dae1f72c645127301661e0a3ce4e38b295a97c58 evidence/ECOSYSTEM660/definitions/mutant2.case8.exit +f3d717826acd90c8ed58f15153f92c4caea84d1f48eced2dcf48dd7736bcd906 evidence/ECOSYSTEM660/definitions/mutant2.case8.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant2.case8.stderr +238903180cc104ec2c5d8b3f20c5bc61b389ec0a967df8cc208cdc7cd454174f evidence/ECOSYSTEM660/definitions/mutant2.case9.exit +bc48c976ab538b8cae937469fc6279718b644ba8ccedb98a0717af66c54d156f evidence/ECOSYSTEM660/definitions/mutant2.case9.response +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant2.case9.stderr +4355a46b19d348dc2f57c046f8ef63d4538ebb936000f3c9ee954a27460dd865 evidence/ECOSYSTEM660/definitions/mutant2.check.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant2.check.stderr +0e290f825e18a94dbba7a378cfb9a73550f2e601f3b23cd48cd50cc0b5aaafc8 evidence/ECOSYSTEM660/definitions/mutant2.check.stdout +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/definitions/mutant2.compile.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutant2.compile.stderr +2d78d7b7f27ee7870e51cf35e5272c061a50c055b7e67fc6f0011cac546173c2 evidence/ECOSYSTEM660/definitions/mutant2.om +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/definitions/mutate.compile.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/mutate.compile.stderr +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/definitions/request.compile.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/definitions/request.compile.stderr +cdaf277e1683e25434b2247073b8b3487ce378f5155f30cb2a53b818f34acca7 evidence/ECOSYSTEM660/definitions/sources.sha256 +f6f098ed4aabf0d28c43729ef211d9cc21de64905980aeda1d1c6bd308b41b40 evidence/ECOSYSTEM660/gate6.cost +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/gate6.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/gate6.stderr +17cb78104cba930132c8bf117228636fa730f7f481e7c881b89f19a003fdb254 evidence/ECOSYSTEM660/gate6.stdout +28d39eee7a793549b5244db91b7ce65bc3f5923d7eee2717e3bfa8488c4b0ccb evidence/ECOSYSTEM660/host-check.cost +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/host-check.exit +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 evidence/ECOSYSTEM660/host-check.stderr +ba7e19fbc9570816f6f9d3959aadc56a5faac1edde1e520cc8b928e66979f2fd evidence/ECOSYSTEM660/host-check.stdout +9244cfde44a1fa45676c5a3cf99d83385d36e5bf63da1e10c0485eb4a8079419 evidence/ECOSYSTEM660/host-seed-absolute.sha256 +236eaa938cb5583fc8a7711647a35db5677a7ab4c1d41cf9a8c647ec66c6fd7d evidence/ECOSYSTEM660/host-seed-before.sha256 +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/host-tracked-source-unchanged.exit +536483fb6997ec2a6c433871bcf498b5d69fb477217df4077219bb648a6fab16 evidence/ECOSYSTEM660/host.readelf.txt +dfeeef2bbf589895ba5f95929ae8be1003ed65ff78a6fdd0118b306a998cd3c6 evidence/ECOSYSTEM660/host.txt +59f6bcec5c8eab76ae52d7f5b7e64b0da30b01ccebb54a5c50d6d7adbd6a236f evidence/ECOSYSTEM660/remote-refs.txt +d06e28b7e9ae893e41c035a4bf3784022c8bf43ded3871bd358b795e7653cfae evidence/ECOSYSTEM660/seed-after.sha256 +d06e28b7e9ae893e41c035a4bf3784022c8bf43ded3871bd358b795e7653cfae evidence/ECOSYSTEM660/seed-before.sha256 +d06e28b7e9ae893e41c035a4bf3784022c8bf43ded3871bd358b795e7653cfae evidence/ECOSYSTEM660/seed-final.sha256 +f30e79069bde3d0c72c7badd563d815818771d7e2c3a03458057b5cd214c4a0f evidence/ECOSYSTEM660/source.commit +8863493506171598b6f9598c9d239bf087de0149ee414065f89e6aab0c3f9764 evidence/ECOSYSTEM660/tools.txt +9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa evidence/ECOSYSTEM660/tracked-source-unchanged.exit diff --git a/evidence/ECOSYSTEM660/baseline.readelf.txt b/evidence/ECOSYSTEM660/baseline.readelf.txt new file mode 100644 index 000000000..ea93046f9 --- /dev/null +++ b/evidence/ECOSYSTEM660/baseline.readelf.txt @@ -0,0 +1,14 @@ + +Elf file type is EXEC (Executable file) +Entry point 0x4000b0 +There are 2 program headers, starting at offset 64 + +Program Headers: + Type Offset VirtAddr PhysAddr + FileSiz MemSiz Flags Align + LOAD 0x0000000000000000 0x0000000000400000 0x0000000000400000 + 0x0000000000012bcc 0x0000000000012bcc R E 0x1000 + LOAD 0x0000000000000000 0x0000000010000000 0x0000000010000000 + 0x0000000000000000 0x00000000019fad70 RW 0x1000 + +There is no dynamic section in this file. diff --git a/evidence/ECOSYSTEM660/birth.cost b/evidence/ECOSYSTEM660/birth.cost new file mode 100644 index 000000000..afbd47690 --- /dev/null +++ b/evidence/ECOSYSTEM660/birth.cost @@ -0,0 +1 @@ +elapsed_s=0.41 user_s=0.17 system_s=0.31 peak_rss_kb=3152 exit=0 diff --git a/evidence/ECOSYSTEM660/birth.exit b/evidence/ECOSYSTEM660/birth.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/birth.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/birth.stderr b/evidence/ECOSYSTEM660/birth.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/birth.stdout b/evidence/ECOSYSTEM660/birth.stdout new file mode 100644 index 000000000..a386bb9bf --- /dev/null +++ b/evidence/ECOSYSTEM660/birth.stdout @@ -0,0 +1,12 @@ +PASS seed0 408 bytes, rebuilds itself +PASS hex1 776 bytes, born from seed0 +PASS asm2 2464 bytes, born from hex1 +PASS om4 om4.bin 14224 bytes +PASS omc fixpoint bcf3abc7d322b1f4e53f65559fb7e10b089a8febb5f82242f919f3aeaf9d54be +PASS fwd exit 0 +PASS fwd runs, exit 7 +PASS mut exit 0 +PASS mut runs, exit 0 +PASS cycle exit 9 +PASS assign exit 7 +RC=0 diff --git a/evidence/ECOSYSTEM660/bridge-binaries.sha256 b/evidence/ECOSYSTEM660/bridge-binaries.sha256 new file mode 100644 index 000000000..3ed71c996 --- /dev/null +++ b/evidence/ECOSYSTEM660/bridge-binaries.sha256 @@ -0,0 +1,5 @@ +aca00cf3677236809f0f223437398c6bb429e4c65f13d58762bcf96d13799474 build/bootstrap/seed0 +920e1756aec399c7c74f5cedd1676abb91b844ea75448e14aa50dcb0bbc7ba5d build/bootstrap/hex1 +6988abe072fac3cdef2240d5ad13a3ecd8fb576fa09112d344b9e7c2315969c4 build/bootstrap/asm2 +d0da40e45f1fcc45d9a39c9c52c9d745b545e076970729e51c12d76ef519efab build/bootstrap/om4 +191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9 build/bootstrap/omc diff --git a/evidence/ECOSYSTEM660/bridge-tracked-source-unchanged.exit b/evidence/ECOSYSTEM660/bridge-tracked-source-unchanged.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/bridge-tracked-source-unchanged.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/bridge.cost b/evidence/ECOSYSTEM660/bridge.cost new file mode 100644 index 000000000..5565996e8 --- /dev/null +++ b/evidence/ECOSYSTEM660/bridge.cost @@ -0,0 +1 @@ +elapsed_s=0.45 user_s=0.19 system_s=0.33 peak_rss_kb=3088 exit=0 diff --git a/evidence/ECOSYSTEM660/bridge.exit b/evidence/ECOSYSTEM660/bridge.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/bridge.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/bridge.stderr b/evidence/ECOSYSTEM660/bridge.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/bridge.stdout b/evidence/ECOSYSTEM660/bridge.stdout new file mode 100644 index 000000000..be820a3fd --- /dev/null +++ b/evidence/ECOSYSTEM660/bridge.stdout @@ -0,0 +1 @@ +PASS source-only seed bootstrap and compiler fixpoint diff --git a/evidence/ECOSYSTEM660/capabilities/artifacts.sha256 b/evidence/ECOSYSTEM660/capabilities/artifacts.sha256 new file mode 100644 index 000000000..e1d72cf55 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/artifacts.sha256 @@ -0,0 +1,44 @@ +0e6bdbfb63ef9e52028682ddbecb1e9b4d81a3326b2e63848be570a775c31e6e evidence/ECOSYSTEM660/capabilities/inputs/args.om +2fbfb7d05a241e7772f3fcbff005fbd06b7f459f055088f946a0d148640396df evidence/ECOSYSTEM660/capabilities/inputs/positive.om +85ed6b89f6e9e185cbd723b5773ab90a57f29be486ed425b1256ee77384a83de evidence/ECOSYSTEM660/capabilities/inputs/refuse-float.om +c612d3492faaaa12be1215468ba51c38772d2af3edadcfc8aa5d1e3ed3b4e480 evidence/ECOSYSTEM660/capabilities/inputs/refuse-type.om +fd78d1b9bf5e5c5bc1d5e1a0318853fe4bc15c54b3289c4a29ef840d2e7da3c6 evidence/ECOSYSTEM660/capabilities/inputs/struct.om +d2ab4b69f472df006509f3245292cec1e37b8a3ea7ffe4677b1abd5923b501df evidence/ECOSYSTEM660/capabilities/inputs/trap-bounds.om +223aab00ff2b19f54a7b09ea09a74a43059db3528b9950712715d17092f4596d evidence/ECOSYSTEM660/capabilities/inputs/trap-conversion.om +cf78d0c37418aca1fa8c8f439ec1e70df6358201171cbdfd9c04e24596de1c7f evidence/ECOSYSTEM660/capabilities/inputs/trap-div.om +3e50d994d8f6673e35e18973efa5951bd8a79a0fdfa25ed86da0055437dadec6 evidence/ECOSYSTEM660/capabilities/inputs/trap-loop.om +4d43cc62549581c6fd50712f37374d33a54d7bba7c733bfe37411769388b9c6b evidence/ECOSYSTEM660/capabilities/inputs/trap-overflow.om +499bcf1124822f05f8f33280e32115cf8c769e5db8bcfbff7a97a0cbed2603e0 evidence/ECOSYSTEM660/capabilities/inputs/trap-shift.om +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 build/ecosystem660/capabilities/baseline-args +ce7040105da30696e71edb723c77370477faa8bd2148fbeb72eaaceca0f44daf build/ecosystem660/capabilities/baseline-positive +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 build/ecosystem660/capabilities/baseline-refuse-float +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 build/ecosystem660/capabilities/baseline-refuse-type +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 build/ecosystem660/capabilities/baseline-struct +b66f78046593042ee7edcb8e551e16c551c7cb4056ffcbd357ad9e3465c48692 build/ecosystem660/capabilities/baseline-trap-bounds +d5f47bfa254aab044388fa59500df19e5bd875ebacdb60ccb73dba7fec9963fb build/ecosystem660/capabilities/baseline-trap-conversion +9eb37a95fad35b874182a8d679ff1fa60ff49e9ae8ef2c97f841afe89c79634b build/ecosystem660/capabilities/baseline-trap-div +d5bc16edaf2a55fbb4e07088f4db908ec365cc82187c3ef8668944e959f88a29 build/ecosystem660/capabilities/baseline-trap-loop +0ac9ec3106e8c9dd7433a9a4e5ab1e67c255ef267dd7ac35f6f95cc7476799fe build/ecosystem660/capabilities/baseline-trap-overflow +38a77465ecd719c0eb8007378c54d77a4c67681bd9e5265f12aaec4af801008e build/ecosystem660/capabilities/baseline-trap-shift +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 build/ecosystem660/capabilities/definitions-args +ce7040105da30696e71edb723c77370477faa8bd2148fbeb72eaaceca0f44daf build/ecosystem660/capabilities/definitions-positive +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 build/ecosystem660/capabilities/definitions-refuse-float +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 build/ecosystem660/capabilities/definitions-refuse-type +93af1343d2bae18523c36469dc950a93552f98ed33f67a86af56c403730c5482 build/ecosystem660/capabilities/definitions-struct +b66f78046593042ee7edcb8e551e16c551c7cb4056ffcbd357ad9e3465c48692 build/ecosystem660/capabilities/definitions-trap-bounds +d5f47bfa254aab044388fa59500df19e5bd875ebacdb60ccb73dba7fec9963fb build/ecosystem660/capabilities/definitions-trap-conversion +9eb37a95fad35b874182a8d679ff1fa60ff49e9ae8ef2c97f841afe89c79634b build/ecosystem660/capabilities/definitions-trap-div +d5bc16edaf2a55fbb4e07088f4db908ec365cc82187c3ef8668944e959f88a29 build/ecosystem660/capabilities/definitions-trap-loop +0ac9ec3106e8c9dd7433a9a4e5ab1e67c255ef267dd7ac35f6f95cc7476799fe build/ecosystem660/capabilities/definitions-trap-overflow +38a77465ecd719c0eb8007378c54d77a4c67681bd9e5265f12aaec4af801008e build/ecosystem660/capabilities/definitions-trap-shift +791ff80993fa254d7b3b7d0bf5698d70c7d7af632235e4f83fdb3ff9da7c700f build/ecosystem660/capabilities/host-args +ce7040105da30696e71edb723c77370477faa8bd2148fbeb72eaaceca0f44daf build/ecosystem660/capabilities/host-positive +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 build/ecosystem660/capabilities/host-refuse-float +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 build/ecosystem660/capabilities/host-refuse-type +e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 build/ecosystem660/capabilities/host-struct +b66f78046593042ee7edcb8e551e16c551c7cb4056ffcbd357ad9e3465c48692 build/ecosystem660/capabilities/host-trap-bounds +d5f47bfa254aab044388fa59500df19e5bd875ebacdb60ccb73dba7fec9963fb build/ecosystem660/capabilities/host-trap-conversion +9eb37a95fad35b874182a8d679ff1fa60ff49e9ae8ef2c97f841afe89c79634b build/ecosystem660/capabilities/host-trap-div +d5bc16edaf2a55fbb4e07088f4db908ec365cc82187c3ef8668944e959f88a29 build/ecosystem660/capabilities/host-trap-loop +0ac9ec3106e8c9dd7433a9a4e5ab1e67c255ef267dd7ac35f6f95cc7476799fe build/ecosystem660/capabilities/host-trap-overflow +38a77465ecd719c0eb8007378c54d77a4c67681bd9e5265f12aaec4af801008e build/ecosystem660/capabilities/host-trap-shift diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-args.compile.cost b/evidence/ECOSYSTEM660/capabilities/baseline-args.compile.cost new file mode 100644 index 000000000..c2a19fdc4 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-args.compile.cost @@ -0,0 +1,2 @@ +Command exited with non-zero status 3 +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=3 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-args.compile.exit b/evidence/ECOSYSTEM660/capabilities/baseline-args.compile.exit new file mode 100644 index 000000000..00750edc0 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-args.compile.exit @@ -0,0 +1 @@ +3 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-args.compile.stderr b/evidence/ECOSYSTEM660/capabilities/baseline-args.compile.stderr new file mode 100644 index 000000000..97e633694 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-args.compile.stderr @@ -0,0 +1 @@ +omc: line 4: error 3 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-positive.compile.cost b/evidence/ECOSYSTEM660/capabilities/baseline-positive.compile.cost new file mode 100644 index 000000000..84c1fca9b --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-positive.compile.cost @@ -0,0 +1 @@ +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=0 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-positive.compile.exit b/evidence/ECOSYSTEM660/capabilities/baseline-positive.compile.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-positive.compile.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-positive.compile.stderr b/evidence/ECOSYSTEM660/capabilities/baseline-positive.compile.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-positive.run.cost b/evidence/ECOSYSTEM660/capabilities/baseline-positive.run.cost new file mode 100644 index 000000000..84c1fca9b --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-positive.run.cost @@ -0,0 +1 @@ +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=0 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-positive.run.exit b/evidence/ECOSYSTEM660/capabilities/baseline-positive.run.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-positive.run.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-positive.run.stderr b/evidence/ECOSYSTEM660/capabilities/baseline-positive.run.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-positive.run.stdout b/evidence/ECOSYSTEM660/capabilities/baseline-positive.run.stdout new file mode 100644 index 000000000..2c30ae6e8 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-positive.run.stdout @@ -0,0 +1 @@ +PROFILE_PASS diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-refuse-float.compile.cost b/evidence/ECOSYSTEM660/capabilities/baseline-refuse-float.compile.cost new file mode 100644 index 000000000..c2a19fdc4 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-refuse-float.compile.cost @@ -0,0 +1,2 @@ +Command exited with non-zero status 3 +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=3 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-refuse-float.compile.exit b/evidence/ECOSYSTEM660/capabilities/baseline-refuse-float.compile.exit new file mode 100644 index 000000000..00750edc0 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-refuse-float.compile.exit @@ -0,0 +1 @@ +3 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-refuse-float.compile.stderr b/evidence/ECOSYSTEM660/capabilities/baseline-refuse-float.compile.stderr new file mode 100644 index 000000000..2a6f4ccde --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-refuse-float.compile.stderr @@ -0,0 +1 @@ +omc: line 2: error 3 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-refuse-type.compile.cost b/evidence/ECOSYSTEM660/capabilities/baseline-refuse-type.compile.cost new file mode 100644 index 000000000..69a49c2f4 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-refuse-type.compile.cost @@ -0,0 +1,2 @@ +Command exited with non-zero status 7 +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=7 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-refuse-type.compile.exit b/evidence/ECOSYSTEM660/capabilities/baseline-refuse-type.compile.exit new file mode 100644 index 000000000..7f8f011eb --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-refuse-type.compile.exit @@ -0,0 +1 @@ +7 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-refuse-type.compile.stderr b/evidence/ECOSYSTEM660/capabilities/baseline-refuse-type.compile.stderr new file mode 100644 index 000000000..729cd3e2b --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-refuse-type.compile.stderr @@ -0,0 +1 @@ +omc: line 2: error 7 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-struct.compile.cost b/evidence/ECOSYSTEM660/capabilities/baseline-struct.compile.cost new file mode 100644 index 000000000..7e35f8b55 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-struct.compile.cost @@ -0,0 +1,2 @@ +Command exited with non-zero status 16 +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=16 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-struct.compile.exit b/evidence/ECOSYSTEM660/capabilities/baseline-struct.compile.exit new file mode 100644 index 000000000..b6a7d89c6 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-struct.compile.exit @@ -0,0 +1 @@ +16 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-struct.compile.stderr b/evidence/ECOSYSTEM660/capabilities/baseline-struct.compile.stderr new file mode 100644 index 000000000..dfc6810ff --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-struct.compile.stderr @@ -0,0 +1 @@ +omc: line 1: error 16 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-bounds.compile.cost b/evidence/ECOSYSTEM660/capabilities/baseline-trap-bounds.compile.cost new file mode 100644 index 000000000..84c1fca9b --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-trap-bounds.compile.cost @@ -0,0 +1 @@ +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=0 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-bounds.compile.exit b/evidence/ECOSYSTEM660/capabilities/baseline-trap-bounds.compile.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-trap-bounds.compile.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-bounds.compile.stderr b/evidence/ECOSYSTEM660/capabilities/baseline-trap-bounds.compile.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-bounds.run.cost b/evidence/ECOSYSTEM660/capabilities/baseline-trap-bounds.run.cost new file mode 100644 index 000000000..c8c4768ff --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-trap-bounds.run.cost @@ -0,0 +1,2 @@ +Command exited with non-zero status 103 +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=103 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-bounds.run.exit b/evidence/ECOSYSTEM660/capabilities/baseline-trap-bounds.run.exit new file mode 100644 index 000000000..a9c8fe829 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-trap-bounds.run.exit @@ -0,0 +1 @@ +103 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-bounds.run.stderr b/evidence/ECOSYSTEM660/capabilities/baseline-trap-bounds.run.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-bounds.run.stdout b/evidence/ECOSYSTEM660/capabilities/baseline-trap-bounds.run.stdout new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-conversion.compile.cost b/evidence/ECOSYSTEM660/capabilities/baseline-trap-conversion.compile.cost new file mode 100644 index 000000000..84c1fca9b --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-trap-conversion.compile.cost @@ -0,0 +1 @@ +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=0 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-conversion.compile.exit b/evidence/ECOSYSTEM660/capabilities/baseline-trap-conversion.compile.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-trap-conversion.compile.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-conversion.compile.stderr b/evidence/ECOSYSTEM660/capabilities/baseline-trap-conversion.compile.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-conversion.run.cost b/evidence/ECOSYSTEM660/capabilities/baseline-trap-conversion.run.cost new file mode 100644 index 000000000..c436ed0fb --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-trap-conversion.run.cost @@ -0,0 +1,2 @@ +Command exited with non-zero status 105 +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=105 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-conversion.run.exit b/evidence/ECOSYSTEM660/capabilities/baseline-trap-conversion.run.exit new file mode 100644 index 000000000..f96ac0672 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-trap-conversion.run.exit @@ -0,0 +1 @@ +105 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-conversion.run.stderr b/evidence/ECOSYSTEM660/capabilities/baseline-trap-conversion.run.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-conversion.run.stdout b/evidence/ECOSYSTEM660/capabilities/baseline-trap-conversion.run.stdout new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-div.compile.cost b/evidence/ECOSYSTEM660/capabilities/baseline-trap-div.compile.cost new file mode 100644 index 000000000..84c1fca9b --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-trap-div.compile.cost @@ -0,0 +1 @@ +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=0 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-div.compile.exit b/evidence/ECOSYSTEM660/capabilities/baseline-trap-div.compile.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-trap-div.compile.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-div.compile.stderr b/evidence/ECOSYSTEM660/capabilities/baseline-trap-div.compile.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-div.run.cost b/evidence/ECOSYSTEM660/capabilities/baseline-trap-div.run.cost new file mode 100644 index 000000000..a99024b66 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-trap-div.run.cost @@ -0,0 +1,2 @@ +Command exited with non-zero status 102 +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=102 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-div.run.exit b/evidence/ECOSYSTEM660/capabilities/baseline-trap-div.run.exit new file mode 100644 index 000000000..257e56326 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-trap-div.run.exit @@ -0,0 +1 @@ +102 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-div.run.stderr b/evidence/ECOSYSTEM660/capabilities/baseline-trap-div.run.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-div.run.stdout b/evidence/ECOSYSTEM660/capabilities/baseline-trap-div.run.stdout new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-loop.compile.cost b/evidence/ECOSYSTEM660/capabilities/baseline-trap-loop.compile.cost new file mode 100644 index 000000000..84c1fca9b --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-trap-loop.compile.cost @@ -0,0 +1 @@ +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=0 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-loop.compile.exit b/evidence/ECOSYSTEM660/capabilities/baseline-trap-loop.compile.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-trap-loop.compile.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-loop.compile.stderr b/evidence/ECOSYSTEM660/capabilities/baseline-trap-loop.compile.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-loop.run.cost b/evidence/ECOSYSTEM660/capabilities/baseline-trap-loop.run.cost new file mode 100644 index 000000000..3144fb56e --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-trap-loop.run.cost @@ -0,0 +1,2 @@ +Command exited with non-zero status 104 +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=104 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-loop.run.exit b/evidence/ECOSYSTEM660/capabilities/baseline-trap-loop.run.exit new file mode 100644 index 000000000..b16e5f75e --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-trap-loop.run.exit @@ -0,0 +1 @@ +104 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-loop.run.stderr b/evidence/ECOSYSTEM660/capabilities/baseline-trap-loop.run.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-loop.run.stdout b/evidence/ECOSYSTEM660/capabilities/baseline-trap-loop.run.stdout new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-overflow.compile.cost b/evidence/ECOSYSTEM660/capabilities/baseline-trap-overflow.compile.cost new file mode 100644 index 000000000..84c1fca9b --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-trap-overflow.compile.cost @@ -0,0 +1 @@ +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=0 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-overflow.compile.exit b/evidence/ECOSYSTEM660/capabilities/baseline-trap-overflow.compile.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-trap-overflow.compile.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-overflow.compile.stderr b/evidence/ECOSYSTEM660/capabilities/baseline-trap-overflow.compile.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-overflow.run.cost b/evidence/ECOSYSTEM660/capabilities/baseline-trap-overflow.run.cost new file mode 100644 index 000000000..e76129fbb --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-trap-overflow.run.cost @@ -0,0 +1,2 @@ +Command exited with non-zero status 101 +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=101 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-overflow.run.exit b/evidence/ECOSYSTEM660/capabilities/baseline-trap-overflow.run.exit new file mode 100644 index 000000000..398050c62 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-trap-overflow.run.exit @@ -0,0 +1 @@ +101 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-overflow.run.stderr b/evidence/ECOSYSTEM660/capabilities/baseline-trap-overflow.run.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-overflow.run.stdout b/evidence/ECOSYSTEM660/capabilities/baseline-trap-overflow.run.stdout new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-shift.compile.cost b/evidence/ECOSYSTEM660/capabilities/baseline-trap-shift.compile.cost new file mode 100644 index 000000000..84c1fca9b --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-trap-shift.compile.cost @@ -0,0 +1 @@ +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=0 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-shift.compile.exit b/evidence/ECOSYSTEM660/capabilities/baseline-trap-shift.compile.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-trap-shift.compile.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-shift.compile.stderr b/evidence/ECOSYSTEM660/capabilities/baseline-trap-shift.compile.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-shift.run.cost b/evidence/ECOSYSTEM660/capabilities/baseline-trap-shift.run.cost new file mode 100644 index 000000000..ef94da006 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-trap-shift.run.cost @@ -0,0 +1,2 @@ +Command exited with non-zero status 107 +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=107 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-shift.run.exit b/evidence/ECOSYSTEM660/capabilities/baseline-trap-shift.run.exit new file mode 100644 index 000000000..e34885bbc --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/baseline-trap-shift.run.exit @@ -0,0 +1 @@ +107 diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-shift.run.stderr b/evidence/ECOSYSTEM660/capabilities/baseline-trap-shift.run.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/baseline-trap-shift.run.stdout b/evidence/ECOSYSTEM660/capabilities/baseline-trap-shift.run.stdout new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-args.compile.cost b/evidence/ECOSYSTEM660/capabilities/definitions-args.compile.cost new file mode 100644 index 000000000..c2a19fdc4 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-args.compile.cost @@ -0,0 +1,2 @@ +Command exited with non-zero status 3 +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=3 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-args.compile.exit b/evidence/ECOSYSTEM660/capabilities/definitions-args.compile.exit new file mode 100644 index 000000000..00750edc0 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-args.compile.exit @@ -0,0 +1 @@ +3 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-args.compile.stderr b/evidence/ECOSYSTEM660/capabilities/definitions-args.compile.stderr new file mode 100644 index 000000000..97e633694 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-args.compile.stderr @@ -0,0 +1 @@ +omc: line 4: error 3 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-positive.compile.cost b/evidence/ECOSYSTEM660/capabilities/definitions-positive.compile.cost new file mode 100644 index 000000000..84c1fca9b --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-positive.compile.cost @@ -0,0 +1 @@ +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=0 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-positive.compile.exit b/evidence/ECOSYSTEM660/capabilities/definitions-positive.compile.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-positive.compile.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-positive.compile.stderr b/evidence/ECOSYSTEM660/capabilities/definitions-positive.compile.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-positive.run.cost b/evidence/ECOSYSTEM660/capabilities/definitions-positive.run.cost new file mode 100644 index 000000000..84c1fca9b --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-positive.run.cost @@ -0,0 +1 @@ +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=0 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-positive.run.exit b/evidence/ECOSYSTEM660/capabilities/definitions-positive.run.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-positive.run.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-positive.run.stderr b/evidence/ECOSYSTEM660/capabilities/definitions-positive.run.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-positive.run.stdout b/evidence/ECOSYSTEM660/capabilities/definitions-positive.run.stdout new file mode 100644 index 000000000..2c30ae6e8 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-positive.run.stdout @@ -0,0 +1 @@ +PROFILE_PASS diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-refuse-float.compile.cost b/evidence/ECOSYSTEM660/capabilities/definitions-refuse-float.compile.cost new file mode 100644 index 000000000..c2a19fdc4 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-refuse-float.compile.cost @@ -0,0 +1,2 @@ +Command exited with non-zero status 3 +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=3 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-refuse-float.compile.exit b/evidence/ECOSYSTEM660/capabilities/definitions-refuse-float.compile.exit new file mode 100644 index 000000000..00750edc0 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-refuse-float.compile.exit @@ -0,0 +1 @@ +3 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-refuse-float.compile.stderr b/evidence/ECOSYSTEM660/capabilities/definitions-refuse-float.compile.stderr new file mode 100644 index 000000000..2a6f4ccde --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-refuse-float.compile.stderr @@ -0,0 +1 @@ +omc: line 2: error 3 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-refuse-type.compile.cost b/evidence/ECOSYSTEM660/capabilities/definitions-refuse-type.compile.cost new file mode 100644 index 000000000..69a49c2f4 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-refuse-type.compile.cost @@ -0,0 +1,2 @@ +Command exited with non-zero status 7 +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=7 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-refuse-type.compile.exit b/evidence/ECOSYSTEM660/capabilities/definitions-refuse-type.compile.exit new file mode 100644 index 000000000..7f8f011eb --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-refuse-type.compile.exit @@ -0,0 +1 @@ +7 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-refuse-type.compile.stderr b/evidence/ECOSYSTEM660/capabilities/definitions-refuse-type.compile.stderr new file mode 100644 index 000000000..729cd3e2b --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-refuse-type.compile.stderr @@ -0,0 +1 @@ +omc: line 2: error 7 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-struct.compile.cost b/evidence/ECOSYSTEM660/capabilities/definitions-struct.compile.cost new file mode 100644 index 000000000..84c1fca9b --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-struct.compile.cost @@ -0,0 +1 @@ +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=0 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-struct.compile.exit b/evidence/ECOSYSTEM660/capabilities/definitions-struct.compile.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-struct.compile.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-struct.compile.stderr b/evidence/ECOSYSTEM660/capabilities/definitions-struct.compile.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-struct.run.cost b/evidence/ECOSYSTEM660/capabilities/definitions-struct.run.cost new file mode 100644 index 000000000..a961eb176 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-struct.run.cost @@ -0,0 +1,2 @@ +Command exited with non-zero status 20 +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=20 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-struct.run.exit b/evidence/ECOSYSTEM660/capabilities/definitions-struct.run.exit new file mode 100644 index 000000000..209e3ef4b --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-struct.run.exit @@ -0,0 +1 @@ +20 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-struct.run.stderr b/evidence/ECOSYSTEM660/capabilities/definitions-struct.run.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-struct.run.stdout b/evidence/ECOSYSTEM660/capabilities/definitions-struct.run.stdout new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-bounds.compile.cost b/evidence/ECOSYSTEM660/capabilities/definitions-trap-bounds.compile.cost new file mode 100644 index 000000000..84c1fca9b --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-trap-bounds.compile.cost @@ -0,0 +1 @@ +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=0 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-bounds.compile.exit b/evidence/ECOSYSTEM660/capabilities/definitions-trap-bounds.compile.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-trap-bounds.compile.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-bounds.compile.stderr b/evidence/ECOSYSTEM660/capabilities/definitions-trap-bounds.compile.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-bounds.run.cost b/evidence/ECOSYSTEM660/capabilities/definitions-trap-bounds.run.cost new file mode 100644 index 000000000..c8c4768ff --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-trap-bounds.run.cost @@ -0,0 +1,2 @@ +Command exited with non-zero status 103 +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=103 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-bounds.run.exit b/evidence/ECOSYSTEM660/capabilities/definitions-trap-bounds.run.exit new file mode 100644 index 000000000..a9c8fe829 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-trap-bounds.run.exit @@ -0,0 +1 @@ +103 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-bounds.run.stderr b/evidence/ECOSYSTEM660/capabilities/definitions-trap-bounds.run.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-bounds.run.stdout b/evidence/ECOSYSTEM660/capabilities/definitions-trap-bounds.run.stdout new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-conversion.compile.cost b/evidence/ECOSYSTEM660/capabilities/definitions-trap-conversion.compile.cost new file mode 100644 index 000000000..84c1fca9b --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-trap-conversion.compile.cost @@ -0,0 +1 @@ +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=0 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-conversion.compile.exit b/evidence/ECOSYSTEM660/capabilities/definitions-trap-conversion.compile.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-trap-conversion.compile.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-conversion.compile.stderr b/evidence/ECOSYSTEM660/capabilities/definitions-trap-conversion.compile.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-conversion.run.cost b/evidence/ECOSYSTEM660/capabilities/definitions-trap-conversion.run.cost new file mode 100644 index 000000000..c436ed0fb --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-trap-conversion.run.cost @@ -0,0 +1,2 @@ +Command exited with non-zero status 105 +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=105 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-conversion.run.exit b/evidence/ECOSYSTEM660/capabilities/definitions-trap-conversion.run.exit new file mode 100644 index 000000000..f96ac0672 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-trap-conversion.run.exit @@ -0,0 +1 @@ +105 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-conversion.run.stderr b/evidence/ECOSYSTEM660/capabilities/definitions-trap-conversion.run.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-conversion.run.stdout b/evidence/ECOSYSTEM660/capabilities/definitions-trap-conversion.run.stdout new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-div.compile.cost b/evidence/ECOSYSTEM660/capabilities/definitions-trap-div.compile.cost new file mode 100644 index 000000000..84c1fca9b --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-trap-div.compile.cost @@ -0,0 +1 @@ +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=0 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-div.compile.exit b/evidence/ECOSYSTEM660/capabilities/definitions-trap-div.compile.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-trap-div.compile.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-div.compile.stderr b/evidence/ECOSYSTEM660/capabilities/definitions-trap-div.compile.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-div.run.cost b/evidence/ECOSYSTEM660/capabilities/definitions-trap-div.run.cost new file mode 100644 index 000000000..a99024b66 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-trap-div.run.cost @@ -0,0 +1,2 @@ +Command exited with non-zero status 102 +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=102 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-div.run.exit b/evidence/ECOSYSTEM660/capabilities/definitions-trap-div.run.exit new file mode 100644 index 000000000..257e56326 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-trap-div.run.exit @@ -0,0 +1 @@ +102 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-div.run.stderr b/evidence/ECOSYSTEM660/capabilities/definitions-trap-div.run.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-div.run.stdout b/evidence/ECOSYSTEM660/capabilities/definitions-trap-div.run.stdout new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-loop.compile.cost b/evidence/ECOSYSTEM660/capabilities/definitions-trap-loop.compile.cost new file mode 100644 index 000000000..84c1fca9b --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-trap-loop.compile.cost @@ -0,0 +1 @@ +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=0 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-loop.compile.exit b/evidence/ECOSYSTEM660/capabilities/definitions-trap-loop.compile.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-trap-loop.compile.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-loop.compile.stderr b/evidence/ECOSYSTEM660/capabilities/definitions-trap-loop.compile.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-loop.run.cost b/evidence/ECOSYSTEM660/capabilities/definitions-trap-loop.run.cost new file mode 100644 index 000000000..3144fb56e --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-trap-loop.run.cost @@ -0,0 +1,2 @@ +Command exited with non-zero status 104 +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=104 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-loop.run.exit b/evidence/ECOSYSTEM660/capabilities/definitions-trap-loop.run.exit new file mode 100644 index 000000000..b16e5f75e --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-trap-loop.run.exit @@ -0,0 +1 @@ +104 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-loop.run.stderr b/evidence/ECOSYSTEM660/capabilities/definitions-trap-loop.run.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-loop.run.stdout b/evidence/ECOSYSTEM660/capabilities/definitions-trap-loop.run.stdout new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-overflow.compile.cost b/evidence/ECOSYSTEM660/capabilities/definitions-trap-overflow.compile.cost new file mode 100644 index 000000000..84c1fca9b --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-trap-overflow.compile.cost @@ -0,0 +1 @@ +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=0 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-overflow.compile.exit b/evidence/ECOSYSTEM660/capabilities/definitions-trap-overflow.compile.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-trap-overflow.compile.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-overflow.compile.stderr b/evidence/ECOSYSTEM660/capabilities/definitions-trap-overflow.compile.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-overflow.run.cost b/evidence/ECOSYSTEM660/capabilities/definitions-trap-overflow.run.cost new file mode 100644 index 000000000..e76129fbb --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-trap-overflow.run.cost @@ -0,0 +1,2 @@ +Command exited with non-zero status 101 +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=101 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-overflow.run.exit b/evidence/ECOSYSTEM660/capabilities/definitions-trap-overflow.run.exit new file mode 100644 index 000000000..398050c62 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-trap-overflow.run.exit @@ -0,0 +1 @@ +101 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-overflow.run.stderr b/evidence/ECOSYSTEM660/capabilities/definitions-trap-overflow.run.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-overflow.run.stdout b/evidence/ECOSYSTEM660/capabilities/definitions-trap-overflow.run.stdout new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-shift.compile.cost b/evidence/ECOSYSTEM660/capabilities/definitions-trap-shift.compile.cost new file mode 100644 index 000000000..84c1fca9b --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-trap-shift.compile.cost @@ -0,0 +1 @@ +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=0 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-shift.compile.exit b/evidence/ECOSYSTEM660/capabilities/definitions-trap-shift.compile.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-trap-shift.compile.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-shift.compile.stderr b/evidence/ECOSYSTEM660/capabilities/definitions-trap-shift.compile.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-shift.run.cost b/evidence/ECOSYSTEM660/capabilities/definitions-trap-shift.run.cost new file mode 100644 index 000000000..ef94da006 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-trap-shift.run.cost @@ -0,0 +1,2 @@ +Command exited with non-zero status 107 +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=107 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-shift.run.exit b/evidence/ECOSYSTEM660/capabilities/definitions-trap-shift.run.exit new file mode 100644 index 000000000..e34885bbc --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/definitions-trap-shift.run.exit @@ -0,0 +1 @@ +107 diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-shift.run.stderr b/evidence/ECOSYSTEM660/capabilities/definitions-trap-shift.run.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/definitions-trap-shift.run.stdout b/evidence/ECOSYSTEM660/capabilities/definitions-trap-shift.run.stdout new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/host-args.compile.cost b/evidence/ECOSYSTEM660/capabilities/host-args.compile.cost new file mode 100644 index 000000000..84c1fca9b --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-args.compile.cost @@ -0,0 +1 @@ +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=0 diff --git a/evidence/ECOSYSTEM660/capabilities/host-args.compile.exit b/evidence/ECOSYSTEM660/capabilities/host-args.compile.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-args.compile.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/capabilities/host-args.compile.stderr b/evidence/ECOSYSTEM660/capabilities/host-args.compile.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/host-args.run.cost b/evidence/ECOSYSTEM660/capabilities/host-args.run.cost new file mode 100644 index 000000000..84c1fca9b --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-args.run.cost @@ -0,0 +1 @@ +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=0 diff --git a/evidence/ECOSYSTEM660/capabilities/host-args.run.exit b/evidence/ECOSYSTEM660/capabilities/host-args.run.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-args.run.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/capabilities/host-args.run.stderr b/evidence/ECOSYSTEM660/capabilities/host-args.run.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/host-args.run.stdout b/evidence/ECOSYSTEM660/capabilities/host-args.run.stdout new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/host-positive.compile.cost b/evidence/ECOSYSTEM660/capabilities/host-positive.compile.cost new file mode 100644 index 000000000..84c1fca9b --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-positive.compile.cost @@ -0,0 +1 @@ +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=0 diff --git a/evidence/ECOSYSTEM660/capabilities/host-positive.compile.exit b/evidence/ECOSYSTEM660/capabilities/host-positive.compile.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-positive.compile.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/capabilities/host-positive.compile.stderr b/evidence/ECOSYSTEM660/capabilities/host-positive.compile.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/host-positive.run.cost b/evidence/ECOSYSTEM660/capabilities/host-positive.run.cost new file mode 100644 index 000000000..84c1fca9b --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-positive.run.cost @@ -0,0 +1 @@ +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=0 diff --git a/evidence/ECOSYSTEM660/capabilities/host-positive.run.exit b/evidence/ECOSYSTEM660/capabilities/host-positive.run.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-positive.run.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/capabilities/host-positive.run.stderr b/evidence/ECOSYSTEM660/capabilities/host-positive.run.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/host-positive.run.stdout b/evidence/ECOSYSTEM660/capabilities/host-positive.run.stdout new file mode 100644 index 000000000..2c30ae6e8 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-positive.run.stdout @@ -0,0 +1 @@ +PROFILE_PASS diff --git a/evidence/ECOSYSTEM660/capabilities/host-refuse-float.compile.cost b/evidence/ECOSYSTEM660/capabilities/host-refuse-float.compile.cost new file mode 100644 index 000000000..c2a19fdc4 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-refuse-float.compile.cost @@ -0,0 +1,2 @@ +Command exited with non-zero status 3 +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=3 diff --git a/evidence/ECOSYSTEM660/capabilities/host-refuse-float.compile.exit b/evidence/ECOSYSTEM660/capabilities/host-refuse-float.compile.exit new file mode 100644 index 000000000..00750edc0 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-refuse-float.compile.exit @@ -0,0 +1 @@ +3 diff --git a/evidence/ECOSYSTEM660/capabilities/host-refuse-float.compile.stderr b/evidence/ECOSYSTEM660/capabilities/host-refuse-float.compile.stderr new file mode 100644 index 000000000..2a6f4ccde --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-refuse-float.compile.stderr @@ -0,0 +1 @@ +omc: line 2: error 3 diff --git a/evidence/ECOSYSTEM660/capabilities/host-refuse-type.compile.cost b/evidence/ECOSYSTEM660/capabilities/host-refuse-type.compile.cost new file mode 100644 index 000000000..69a49c2f4 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-refuse-type.compile.cost @@ -0,0 +1,2 @@ +Command exited with non-zero status 7 +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=7 diff --git a/evidence/ECOSYSTEM660/capabilities/host-refuse-type.compile.exit b/evidence/ECOSYSTEM660/capabilities/host-refuse-type.compile.exit new file mode 100644 index 000000000..7f8f011eb --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-refuse-type.compile.exit @@ -0,0 +1 @@ +7 diff --git a/evidence/ECOSYSTEM660/capabilities/host-refuse-type.compile.stderr b/evidence/ECOSYSTEM660/capabilities/host-refuse-type.compile.stderr new file mode 100644 index 000000000..729cd3e2b --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-refuse-type.compile.stderr @@ -0,0 +1 @@ +omc: line 2: error 7 diff --git a/evidence/ECOSYSTEM660/capabilities/host-struct.compile.cost b/evidence/ECOSYSTEM660/capabilities/host-struct.compile.cost new file mode 100644 index 000000000..7e35f8b55 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-struct.compile.cost @@ -0,0 +1,2 @@ +Command exited with non-zero status 16 +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=16 diff --git a/evidence/ECOSYSTEM660/capabilities/host-struct.compile.exit b/evidence/ECOSYSTEM660/capabilities/host-struct.compile.exit new file mode 100644 index 000000000..b6a7d89c6 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-struct.compile.exit @@ -0,0 +1 @@ +16 diff --git a/evidence/ECOSYSTEM660/capabilities/host-struct.compile.stderr b/evidence/ECOSYSTEM660/capabilities/host-struct.compile.stderr new file mode 100644 index 000000000..dfc6810ff --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-struct.compile.stderr @@ -0,0 +1 @@ +omc: line 1: error 16 diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-bounds.compile.cost b/evidence/ECOSYSTEM660/capabilities/host-trap-bounds.compile.cost new file mode 100644 index 000000000..84c1fca9b --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-trap-bounds.compile.cost @@ -0,0 +1 @@ +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=0 diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-bounds.compile.exit b/evidence/ECOSYSTEM660/capabilities/host-trap-bounds.compile.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-trap-bounds.compile.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-bounds.compile.stderr b/evidence/ECOSYSTEM660/capabilities/host-trap-bounds.compile.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-bounds.run.cost b/evidence/ECOSYSTEM660/capabilities/host-trap-bounds.run.cost new file mode 100644 index 000000000..c8c4768ff --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-trap-bounds.run.cost @@ -0,0 +1,2 @@ +Command exited with non-zero status 103 +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=103 diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-bounds.run.exit b/evidence/ECOSYSTEM660/capabilities/host-trap-bounds.run.exit new file mode 100644 index 000000000..a9c8fe829 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-trap-bounds.run.exit @@ -0,0 +1 @@ +103 diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-bounds.run.stderr b/evidence/ECOSYSTEM660/capabilities/host-trap-bounds.run.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-bounds.run.stdout b/evidence/ECOSYSTEM660/capabilities/host-trap-bounds.run.stdout new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-conversion.compile.cost b/evidence/ECOSYSTEM660/capabilities/host-trap-conversion.compile.cost new file mode 100644 index 000000000..84c1fca9b --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-trap-conversion.compile.cost @@ -0,0 +1 @@ +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=0 diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-conversion.compile.exit b/evidence/ECOSYSTEM660/capabilities/host-trap-conversion.compile.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-trap-conversion.compile.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-conversion.compile.stderr b/evidence/ECOSYSTEM660/capabilities/host-trap-conversion.compile.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-conversion.run.cost b/evidence/ECOSYSTEM660/capabilities/host-trap-conversion.run.cost new file mode 100644 index 000000000..c436ed0fb --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-trap-conversion.run.cost @@ -0,0 +1,2 @@ +Command exited with non-zero status 105 +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=105 diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-conversion.run.exit b/evidence/ECOSYSTEM660/capabilities/host-trap-conversion.run.exit new file mode 100644 index 000000000..f96ac0672 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-trap-conversion.run.exit @@ -0,0 +1 @@ +105 diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-conversion.run.stderr b/evidence/ECOSYSTEM660/capabilities/host-trap-conversion.run.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-conversion.run.stdout b/evidence/ECOSYSTEM660/capabilities/host-trap-conversion.run.stdout new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-div.compile.cost b/evidence/ECOSYSTEM660/capabilities/host-trap-div.compile.cost new file mode 100644 index 000000000..84c1fca9b --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-trap-div.compile.cost @@ -0,0 +1 @@ +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=0 diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-div.compile.exit b/evidence/ECOSYSTEM660/capabilities/host-trap-div.compile.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-trap-div.compile.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-div.compile.stderr b/evidence/ECOSYSTEM660/capabilities/host-trap-div.compile.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-div.run.cost b/evidence/ECOSYSTEM660/capabilities/host-trap-div.run.cost new file mode 100644 index 000000000..a99024b66 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-trap-div.run.cost @@ -0,0 +1,2 @@ +Command exited with non-zero status 102 +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=102 diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-div.run.exit b/evidence/ECOSYSTEM660/capabilities/host-trap-div.run.exit new file mode 100644 index 000000000..257e56326 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-trap-div.run.exit @@ -0,0 +1 @@ +102 diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-div.run.stderr b/evidence/ECOSYSTEM660/capabilities/host-trap-div.run.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-div.run.stdout b/evidence/ECOSYSTEM660/capabilities/host-trap-div.run.stdout new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-loop.compile.cost b/evidence/ECOSYSTEM660/capabilities/host-trap-loop.compile.cost new file mode 100644 index 000000000..84c1fca9b --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-trap-loop.compile.cost @@ -0,0 +1 @@ +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=0 diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-loop.compile.exit b/evidence/ECOSYSTEM660/capabilities/host-trap-loop.compile.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-trap-loop.compile.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-loop.compile.stderr b/evidence/ECOSYSTEM660/capabilities/host-trap-loop.compile.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-loop.run.cost b/evidence/ECOSYSTEM660/capabilities/host-trap-loop.run.cost new file mode 100644 index 000000000..3144fb56e --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-trap-loop.run.cost @@ -0,0 +1,2 @@ +Command exited with non-zero status 104 +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=104 diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-loop.run.exit b/evidence/ECOSYSTEM660/capabilities/host-trap-loop.run.exit new file mode 100644 index 000000000..b16e5f75e --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-trap-loop.run.exit @@ -0,0 +1 @@ +104 diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-loop.run.stderr b/evidence/ECOSYSTEM660/capabilities/host-trap-loop.run.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-loop.run.stdout b/evidence/ECOSYSTEM660/capabilities/host-trap-loop.run.stdout new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-overflow.compile.cost b/evidence/ECOSYSTEM660/capabilities/host-trap-overflow.compile.cost new file mode 100644 index 000000000..84c1fca9b --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-trap-overflow.compile.cost @@ -0,0 +1 @@ +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=0 diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-overflow.compile.exit b/evidence/ECOSYSTEM660/capabilities/host-trap-overflow.compile.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-trap-overflow.compile.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-overflow.compile.stderr b/evidence/ECOSYSTEM660/capabilities/host-trap-overflow.compile.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-overflow.run.cost b/evidence/ECOSYSTEM660/capabilities/host-trap-overflow.run.cost new file mode 100644 index 000000000..e76129fbb --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-trap-overflow.run.cost @@ -0,0 +1,2 @@ +Command exited with non-zero status 101 +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=101 diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-overflow.run.exit b/evidence/ECOSYSTEM660/capabilities/host-trap-overflow.run.exit new file mode 100644 index 000000000..398050c62 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-trap-overflow.run.exit @@ -0,0 +1 @@ +101 diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-overflow.run.stderr b/evidence/ECOSYSTEM660/capabilities/host-trap-overflow.run.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-overflow.run.stdout b/evidence/ECOSYSTEM660/capabilities/host-trap-overflow.run.stdout new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-shift.compile.cost b/evidence/ECOSYSTEM660/capabilities/host-trap-shift.compile.cost new file mode 100644 index 000000000..84c1fca9b --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-trap-shift.compile.cost @@ -0,0 +1 @@ +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=0 diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-shift.compile.exit b/evidence/ECOSYSTEM660/capabilities/host-trap-shift.compile.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-trap-shift.compile.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-shift.compile.stderr b/evidence/ECOSYSTEM660/capabilities/host-trap-shift.compile.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-shift.run.cost b/evidence/ECOSYSTEM660/capabilities/host-trap-shift.run.cost new file mode 100644 index 000000000..ef94da006 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-trap-shift.run.cost @@ -0,0 +1,2 @@ +Command exited with non-zero status 107 +elapsed_s=0.00 user_s=0.00 system_s=0.00 peak_rss_kb=192 exit=107 diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-shift.run.exit b/evidence/ECOSYSTEM660/capabilities/host-trap-shift.run.exit new file mode 100644 index 000000000..e34885bbc --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/host-trap-shift.run.exit @@ -0,0 +1 @@ +107 diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-shift.run.stderr b/evidence/ECOSYSTEM660/capabilities/host-trap-shift.run.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/host-trap-shift.run.stdout b/evidence/ECOSYSTEM660/capabilities/host-trap-shift.run.stdout new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/capabilities/inputs/args.om b/evidence/ECOSYSTEM660/capabilities/inputs/args.om new file mode 100644 index 000000000..317c24f4f --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/inputs/args.om @@ -0,0 +1,36 @@ +text want "two words" +global buf uchar 32 +fn main to int +if ne argcnt 4 +ret 1 +end +n = argread 1 buf 0 len buf +if ne n 0 +ret 2 +end +n = argread 2 buf 3 29 +if ne n long len want +ret 3 +end +for i ulong len want +if ne get buf add i 3 get want i +ret 4 +end +end +put buf 0 42 +n = argread 2 buf 0 1 +if ne n neg long 105 +ret 5 +end +if ne get buf 0 42 +ret 6 +end +n = argread 3 buf 0 len buf +if ne n 2 +ret 7 +end +if or ne get buf 0 207 ne get buf 1 128 +ret 8 +end +ret 0 +end diff --git a/evidence/ECOSYSTEM660/capabilities/inputs/positive.om b/evidence/ECOSYSTEM660/capabilities/inputs/positive.om new file mode 100644 index 000000000..7fb5edcb4 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/inputs/positive.om @@ -0,0 +1,54 @@ +note Compiler capability probes, not the independent task oracle. +global Probe uchar 8 +text ok "PROFILE_PASS\n" + +fn compose x ulong to ulong +ret add mul x 3 1 +end + +fn main to int +if ne add ulong 18446744073709551615 1 0 +ret 1 +end +if ne sub ulong 0 1 18446744073709551615 +ret 2 +end +if ne mul ulong 9223372036854775808 2 0 +ret 3 +end +if ne div ulong 17 5 3 +ret 4 +end +if ne rem ulong 17 5 2 +ret 5 +end +if ne compose 7 22 +ret 6 +end +sum = ulong 0 +for i ulong 8 +sum = add sum i +put Probe i uchar i +end +if ne sum 28 +ret 7 +end +if ne get Probe 7 7 +ret 8 +end +if ne shr shl ulong 1 63 63 1 +ret 9 +end +x = ulong 0 +while lt x 4 bound 4 +x = add x 1 +end +if ne x 4 +ret 10 +end +w = write 1 ok 0 len ok +if ne w long len ok +ret 11 +end +ret 0 +end diff --git a/evidence/ECOSYSTEM660/capabilities/inputs/refuse-float.om b/evidence/ECOSYSTEM660/capabilities/inputs/refuse-float.om new file mode 100644 index 000000000..dff215518 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/inputs/refuse-float.om @@ -0,0 +1,4 @@ +fn main to int +x = float 1 +ret int x +end diff --git a/evidence/ECOSYSTEM660/capabilities/inputs/refuse-type.om b/evidence/ECOSYSTEM660/capabilities/inputs/refuse-type.om new file mode 100644 index 000000000..5d4624c39 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/inputs/refuse-type.om @@ -0,0 +1,4 @@ +fn main to int +x = add ulong 1 long 2 +ret int x +end diff --git a/evidence/ECOSYSTEM660/capabilities/inputs/struct.om b/evidence/ECOSYSTEM660/capabilities/inputs/struct.om new file mode 100644 index 000000000..c41bff3c6 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/inputs/struct.om @@ -0,0 +1,5 @@ +struct P x uint y uint end +fn main to uint +p = new P 20 22 +ret get p x +end diff --git a/evidence/ECOSYSTEM660/capabilities/inputs/trap-bounds.om b/evidence/ECOSYSTEM660/capabilities/inputs/trap-bounds.om new file mode 100644 index 000000000..c648e1274 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/inputs/trap-bounds.om @@ -0,0 +1,8 @@ +global B uchar 2 +fn fetch i ulong to uchar +ret get B i +end +fn main to int +x = fetch 2 +ret int x +end diff --git a/evidence/ECOSYSTEM660/capabilities/inputs/trap-conversion.om b/evidence/ECOSYSTEM660/capabilities/inputs/trap-conversion.om new file mode 100644 index 000000000..adc28be83 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/inputs/trap-conversion.om @@ -0,0 +1,4 @@ +fn main to int +x = uchar ulong 256 +ret int x +end diff --git a/evidence/ECOSYSTEM660/capabilities/inputs/trap-div.om b/evidence/ECOSYSTEM660/capabilities/inputs/trap-div.om new file mode 100644 index 000000000..a33c3b362 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/inputs/trap-div.om @@ -0,0 +1,4 @@ +fn main to int +x = div ulong 1 0 +ret int x +end diff --git a/evidence/ECOSYSTEM660/capabilities/inputs/trap-loop.om b/evidence/ECOSYSTEM660/capabilities/inputs/trap-loop.om new file mode 100644 index 000000000..7170a98a1 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/inputs/trap-loop.om @@ -0,0 +1,7 @@ +fn main to int +x = ulong 0 +while lt x 5 bound 4 +x = add x 1 +end +ret 0 +end diff --git a/evidence/ECOSYSTEM660/capabilities/inputs/trap-overflow.om b/evidence/ECOSYSTEM660/capabilities/inputs/trap-overflow.om new file mode 100644 index 000000000..78782df63 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/inputs/trap-overflow.om @@ -0,0 +1,4 @@ +fn main to int +x = add long 9223372036854775807 1 +ret int x +end diff --git a/evidence/ECOSYSTEM660/capabilities/inputs/trap-shift.om b/evidence/ECOSYSTEM660/capabilities/inputs/trap-shift.om new file mode 100644 index 000000000..7cb165417 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/inputs/trap-shift.om @@ -0,0 +1,4 @@ +fn main to int +x = shl ulong 1 64 +ret int x +end diff --git a/evidence/ECOSYSTEM660/capabilities/results.tsv b/evidence/ECOSYSTEM660/capabilities/results.tsv new file mode 100644 index 000000000..9caed58a3 --- /dev/null +++ b/evidence/ECOSYSTEM660/capabilities/results.tsv @@ -0,0 +1,34 @@ +profile fixture compile_exit run_exit +baseline args 3 NOT_RUN +baseline positive 0 0 +baseline refuse-float 3 NOT_RUN +baseline refuse-type 7 NOT_RUN +baseline struct 16 NOT_RUN +baseline trap-bounds 0 103 +baseline trap-conversion 0 105 +baseline trap-div 0 102 +baseline trap-loop 0 104 +baseline trap-overflow 0 101 +baseline trap-shift 0 107 +definitions args 3 NOT_RUN +definitions positive 0 0 +definitions refuse-float 3 NOT_RUN +definitions refuse-type 7 NOT_RUN +definitions struct 0 20 +definitions trap-bounds 0 103 +definitions trap-conversion 0 105 +definitions trap-div 0 102 +definitions trap-loop 0 104 +definitions trap-overflow 0 101 +definitions trap-shift 0 107 +host args 0 0 +host positive 0 0 +host refuse-float 3 NOT_RUN +host refuse-type 7 NOT_RUN +host struct 16 NOT_RUN +host trap-bounds 0 103 +host trap-conversion 0 105 +host trap-div 0 102 +host trap-loop 0 104 +host trap-overflow 0 101 +host trap-shift 0 107 diff --git a/evidence/ECOSYSTEM660/consumed.sha256 b/evidence/ECOSYSTEM660/consumed.sha256 new file mode 100644 index 000000000..623972c7e --- /dev/null +++ b/evidence/ECOSYSTEM660/consumed.sha256 @@ -0,0 +1,5 @@ +e5d60db892c8f21cc8c9128af26d8bded0e96d7f92946f5a549397c43a872649 /home/drakestapleton/workspace/omega-ecosystem660-host/seed/out/omc +74620988c967f18f9757807fc1d6f713c3120513c2a4a4aaba671e3019e8865e /home/drakestapleton/workspace/omega-ecosystem660-host/seed/omc/omc.om +5f2b9686c487e437ad5b8bdef0dba249ee3cbb9fb664abedab6ec0aacda0a1d1 /home/drakestapleton/workspace/omega-ecosystem660-host/docs/one_layer/OMEGESE.md +8608fa11f6a2cf1c50db22d871eef16b00d5bc719bc1a222cc3e456984ac5ebf /home/drakestapleton/workspace/omega-ecosystem660-bridge/seed/omc/omc.om +191b776ef98821597c3e30655da6d680a9b66edbc9ceaca3c39c61ea6df098e9 /home/drakestapleton/workspace/omega-ecosystem660-bridge/build/bootstrap/omc diff --git a/evidence/ECOSYSTEM660/definitions.readelf.txt b/evidence/ECOSYSTEM660/definitions.readelf.txt new file mode 100644 index 000000000..6f6f59974 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions.readelf.txt @@ -0,0 +1,14 @@ + +Elf file type is EXEC (Executable file) +Entry point 0x4000b0 +There are 2 program headers, starting at offset 64 + +Program Headers: + Type Offset VirtAddr PhysAddr + FileSiz MemSiz Flags Align + LOAD 0x0000000000000000 0x0000000000400000 0x0000000000400000 + 0x000000000001964c 0x000000000001964c R E 0x1000 + LOAD 0x0000000000000000 0x0000000010000000 0x0000000010000000 + 0x0000000000000000 0x0000000001a000a0 RW 0x1000 + +There is no dynamic section in this file. diff --git a/evidence/ECOSYSTEM660/definitions/binaries.sha256 b/evidence/ECOSYSTEM660/definitions/binaries.sha256 new file mode 100644 index 000000000..5725010a8 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/binaries.sha256 @@ -0,0 +1,7 @@ +372390892830d3b518a08c94d85cba6d612c237eb88f9d8ecdb76679d18c6bd2 build/ecosystem660/definitions/check +956e418232ae0bc497b7cbd42405a61398bee38423fe6c5de7ffa118294abb80 build/ecosystem660/definitions/corpus +bfa57562d05bfcf060e1987dc3cbd5be18abfd784629df9cedc86ae43c302e9e build/ecosystem660/definitions/mutant0 +942815d631ad705e8218f1de631902d6fff1958aeaa4830f550519a1ce705daa build/ecosystem660/definitions/mutant1 +786948197e74af17cdbde33c78533ce28f9f81e6e338ceced5c04819d08d7c0d build/ecosystem660/definitions/mutant2 +c65e99a43f8bbdcf1f20672855faf3aa6e045a26d0cc2b1b71115fc7e7133647 build/ecosystem660/definitions/mutate +7fcb273dd46226fc93ca3b6c906d29b88b50ec80c63694a0e6087548c05d8281 build/ecosystem660/definitions/request diff --git a/evidence/ECOSYSTEM660/definitions/case0.exit b/evidence/ECOSYSTEM660/definitions/case0.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/case0.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/definitions/case0.request b/evidence/ECOSYSTEM660/definitions/case0.request new file mode 100644 index 000000000..460ca3804 Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/case0.request differ diff --git a/evidence/ECOSYSTEM660/definitions/case0.response b/evidence/ECOSYSTEM660/definitions/case0.response new file mode 100644 index 000000000..20aa894bb Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/case0.response differ diff --git a/evidence/ECOSYSTEM660/definitions/case0.stderr b/evidence/ECOSYSTEM660/definitions/case0.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/case1.exit b/evidence/ECOSYSTEM660/definitions/case1.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/case1.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/definitions/case1.request b/evidence/ECOSYSTEM660/definitions/case1.request new file mode 100644 index 000000000..05a0fb3e3 Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/case1.request differ diff --git a/evidence/ECOSYSTEM660/definitions/case1.response b/evidence/ECOSYSTEM660/definitions/case1.response new file mode 100644 index 000000000..7321803d9 Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/case1.response differ diff --git a/evidence/ECOSYSTEM660/definitions/case1.stderr b/evidence/ECOSYSTEM660/definitions/case1.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/case10.exit b/evidence/ECOSYSTEM660/definitions/case10.exit new file mode 100644 index 000000000..d15a2cc44 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/case10.exit @@ -0,0 +1 @@ +80 diff --git a/evidence/ECOSYSTEM660/definitions/case10.request b/evidence/ECOSYSTEM660/definitions/case10.request new file mode 100644 index 000000000..cc3d5300f Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/case10.request differ diff --git a/evidence/ECOSYSTEM660/definitions/case10.response b/evidence/ECOSYSTEM660/definitions/case10.response new file mode 100644 index 000000000..8f9fdd1cf Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/case10.response differ diff --git a/evidence/ECOSYSTEM660/definitions/case10.stderr b/evidence/ECOSYSTEM660/definitions/case10.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/case11.exit b/evidence/ECOSYSTEM660/definitions/case11.exit new file mode 100644 index 000000000..d88e31369 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/case11.exit @@ -0,0 +1 @@ +81 diff --git a/evidence/ECOSYSTEM660/definitions/case11.request b/evidence/ECOSYSTEM660/definitions/case11.request new file mode 100644 index 000000000..0ab86c0be Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/case11.request differ diff --git a/evidence/ECOSYSTEM660/definitions/case11.response b/evidence/ECOSYSTEM660/definitions/case11.response new file mode 100644 index 000000000..a87d08dfe Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/case11.response differ diff --git a/evidence/ECOSYSTEM660/definitions/case11.stderr b/evidence/ECOSYSTEM660/definitions/case11.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/case12.exit b/evidence/ECOSYSTEM660/definitions/case12.exit new file mode 100644 index 000000000..d15a2cc44 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/case12.exit @@ -0,0 +1 @@ +80 diff --git a/evidence/ECOSYSTEM660/definitions/case12.request b/evidence/ECOSYSTEM660/definitions/case12.request new file mode 100644 index 000000000..31d69ad07 Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/case12.request differ diff --git a/evidence/ECOSYSTEM660/definitions/case12.response b/evidence/ECOSYSTEM660/definitions/case12.response new file mode 100644 index 000000000..8dbb1ca7e Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/case12.response differ diff --git a/evidence/ECOSYSTEM660/definitions/case12.stderr b/evidence/ECOSYSTEM660/definitions/case12.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/case2.exit b/evidence/ECOSYSTEM660/definitions/case2.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/case2.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/definitions/case2.request b/evidence/ECOSYSTEM660/definitions/case2.request new file mode 100644 index 000000000..1683e666d Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/case2.request differ diff --git a/evidence/ECOSYSTEM660/definitions/case2.response b/evidence/ECOSYSTEM660/definitions/case2.response new file mode 100644 index 000000000..9b8832864 Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/case2.response differ diff --git a/evidence/ECOSYSTEM660/definitions/case2.stderr b/evidence/ECOSYSTEM660/definitions/case2.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/case3.exit b/evidence/ECOSYSTEM660/definitions/case3.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/case3.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/definitions/case3.request b/evidence/ECOSYSTEM660/definitions/case3.request new file mode 100644 index 000000000..679381376 Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/case3.request differ diff --git a/evidence/ECOSYSTEM660/definitions/case3.response b/evidence/ECOSYSTEM660/definitions/case3.response new file mode 100644 index 000000000..50e6b3f49 Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/case3.response differ diff --git a/evidence/ECOSYSTEM660/definitions/case3.stderr b/evidence/ECOSYSTEM660/definitions/case3.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/case4.exit b/evidence/ECOSYSTEM660/definitions/case4.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/case4.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/definitions/case4.request b/evidence/ECOSYSTEM660/definitions/case4.request new file mode 100644 index 000000000..6a1d6cf79 Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/case4.request differ diff --git a/evidence/ECOSYSTEM660/definitions/case4.response b/evidence/ECOSYSTEM660/definitions/case4.response new file mode 100644 index 000000000..619d47c6c Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/case4.response differ diff --git a/evidence/ECOSYSTEM660/definitions/case4.stderr b/evidence/ECOSYSTEM660/definitions/case4.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/case5.exit b/evidence/ECOSYSTEM660/definitions/case5.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/case5.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/definitions/case5.request b/evidence/ECOSYSTEM660/definitions/case5.request new file mode 100644 index 000000000..b64ee92cd Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/case5.request differ diff --git a/evidence/ECOSYSTEM660/definitions/case5.response b/evidence/ECOSYSTEM660/definitions/case5.response new file mode 100644 index 000000000..b694df5f8 Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/case5.response differ diff --git a/evidence/ECOSYSTEM660/definitions/case5.stderr b/evidence/ECOSYSTEM660/definitions/case5.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/case6.exit b/evidence/ECOSYSTEM660/definitions/case6.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/case6.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/definitions/case6.request b/evidence/ECOSYSTEM660/definitions/case6.request new file mode 100644 index 000000000..83861995e Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/case6.request differ diff --git a/evidence/ECOSYSTEM660/definitions/case6.response b/evidence/ECOSYSTEM660/definitions/case6.response new file mode 100644 index 000000000..20aa894bb Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/case6.response differ diff --git a/evidence/ECOSYSTEM660/definitions/case6.stderr b/evidence/ECOSYSTEM660/definitions/case6.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/case7.exit b/evidence/ECOSYSTEM660/definitions/case7.exit new file mode 100644 index 000000000..f599e28b8 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/case7.exit @@ -0,0 +1 @@ +10 diff --git a/evidence/ECOSYSTEM660/definitions/case7.request b/evidence/ECOSYSTEM660/definitions/case7.request new file mode 100644 index 000000000..9b2dff68d Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/case7.request differ diff --git a/evidence/ECOSYSTEM660/definitions/case7.response b/evidence/ECOSYSTEM660/definitions/case7.response new file mode 100644 index 000000000..758eefd64 Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/case7.response differ diff --git a/evidence/ECOSYSTEM660/definitions/case7.stderr b/evidence/ECOSYSTEM660/definitions/case7.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/case8.exit b/evidence/ECOSYSTEM660/definitions/case8.exit new file mode 100644 index 000000000..7f8f011eb --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/case8.exit @@ -0,0 +1 @@ +7 diff --git a/evidence/ECOSYSTEM660/definitions/case8.request b/evidence/ECOSYSTEM660/definitions/case8.request new file mode 100644 index 000000000..e04997f56 Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/case8.request differ diff --git a/evidence/ECOSYSTEM660/definitions/case8.response b/evidence/ECOSYSTEM660/definitions/case8.response new file mode 100644 index 000000000..4febc74b6 Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/case8.response differ diff --git a/evidence/ECOSYSTEM660/definitions/case8.stderr b/evidence/ECOSYSTEM660/definitions/case8.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/case9.exit b/evidence/ECOSYSTEM660/definitions/case9.exit new file mode 100644 index 000000000..60d3b2f4a --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/case9.exit @@ -0,0 +1 @@ +15 diff --git a/evidence/ECOSYSTEM660/definitions/case9.request b/evidence/ECOSYSTEM660/definitions/case9.request new file mode 100644 index 000000000..84eea4d1f Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/case9.request differ diff --git a/evidence/ECOSYSTEM660/definitions/case9.response b/evidence/ECOSYSTEM660/definitions/case9.response new file mode 100644 index 000000000..1417f4275 Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/case9.response differ diff --git a/evidence/ECOSYSTEM660/definitions/case9.stderr b/evidence/ECOSYSTEM660/definitions/case9.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/check.compile.exit b/evidence/ECOSYSTEM660/definitions/check.compile.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/check.compile.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/definitions/check.compile.stderr b/evidence/ECOSYSTEM660/definitions/check.compile.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/check.exit b/evidence/ECOSYSTEM660/definitions/check.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/check.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/definitions/check.stderr b/evidence/ECOSYSTEM660/definitions/check.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/check.stdout b/evidence/ECOSYSTEM660/definitions/check.stdout new file mode 100644 index 000000000..d0830c3f9 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/check.stdout @@ -0,0 +1 @@ +947 0 diff --git a/evidence/ECOSYSTEM660/definitions/corpus.compile.exit b/evidence/ECOSYSTEM660/definitions/corpus.compile.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/corpus.compile.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/definitions/corpus.compile.stderr b/evidence/ECOSYSTEM660/definitions/corpus.compile.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/independent-source-digests.txt b/evidence/ECOSYSTEM660/definitions/independent-source-digests.txt new file mode 100644 index 000000000..39726e9b7 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/independent-source-digests.txt @@ -0,0 +1,7 @@ +1a97b2dba35313ff25dcc7fc372ad9446a3cfafb025de3d041fcee13f3430625 - +ba76433658e8220b1df92c7b5e31fa7aeb782525cd110a018b9e1f3f450c8ae8 - +c532fce748267d120b6d6b4b561c9403860c3213482123389111170ef7509cda - +c25ea21d0e3d3a8f347f6f2a3eee6bc672397924a3300faa65a3470088b1dfdb - +1a97b2dba35313ff25dcc7fc372ad9446a3cfafb025de3d041fcee13f3430625 - +1a97b2dba35313ff25dcc7fc372ad9446a3cfafb025de3d041fcee13f3430625 - +1a97b2dba35313ff25dcc7fc372ad9446a3cfafb025de3d041fcee13f3430625 - diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case0.exit b/evidence/ECOSYSTEM660/definitions/mutant0.case0.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant0.case0.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case0.response b/evidence/ECOSYSTEM660/definitions/mutant0.case0.response new file mode 100644 index 000000000..59bb59371 Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant0.case0.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case0.stderr b/evidence/ECOSYSTEM660/definitions/mutant0.case0.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case1.exit b/evidence/ECOSYSTEM660/definitions/mutant0.case1.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant0.case1.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case1.response b/evidence/ECOSYSTEM660/definitions/mutant0.case1.response new file mode 100644 index 000000000..f0ed74c5d Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant0.case1.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case1.stderr b/evidence/ECOSYSTEM660/definitions/mutant0.case1.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case10.exit b/evidence/ECOSYSTEM660/definitions/mutant0.case10.exit new file mode 100644 index 000000000..d15a2cc44 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant0.case10.exit @@ -0,0 +1 @@ +80 diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case10.response b/evidence/ECOSYSTEM660/definitions/mutant0.case10.response new file mode 100644 index 000000000..8f9fdd1cf Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant0.case10.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case10.stderr b/evidence/ECOSYSTEM660/definitions/mutant0.case10.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case11.exit b/evidence/ECOSYSTEM660/definitions/mutant0.case11.exit new file mode 100644 index 000000000..d88e31369 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant0.case11.exit @@ -0,0 +1 @@ +81 diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case11.response b/evidence/ECOSYSTEM660/definitions/mutant0.case11.response new file mode 100644 index 000000000..a87d08dfe Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant0.case11.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case11.stderr b/evidence/ECOSYSTEM660/definitions/mutant0.case11.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case12.exit b/evidence/ECOSYSTEM660/definitions/mutant0.case12.exit new file mode 100644 index 000000000..d15a2cc44 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant0.case12.exit @@ -0,0 +1 @@ +80 diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case12.response b/evidence/ECOSYSTEM660/definitions/mutant0.case12.response new file mode 100644 index 000000000..8dbb1ca7e Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant0.case12.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case12.stderr b/evidence/ECOSYSTEM660/definitions/mutant0.case12.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case2.exit b/evidence/ECOSYSTEM660/definitions/mutant0.case2.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant0.case2.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case2.response b/evidence/ECOSYSTEM660/definitions/mutant0.case2.response new file mode 100644 index 000000000..de4f4c4b7 Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant0.case2.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case2.stderr b/evidence/ECOSYSTEM660/definitions/mutant0.case2.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case3.exit b/evidence/ECOSYSTEM660/definitions/mutant0.case3.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant0.case3.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case3.response b/evidence/ECOSYSTEM660/definitions/mutant0.case3.response new file mode 100644 index 000000000..dfdcbd019 Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant0.case3.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case3.stderr b/evidence/ECOSYSTEM660/definitions/mutant0.case3.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case4.exit b/evidence/ECOSYSTEM660/definitions/mutant0.case4.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant0.case4.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case4.response b/evidence/ECOSYSTEM660/definitions/mutant0.case4.response new file mode 100644 index 000000000..4ccc19638 Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant0.case4.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case4.stderr b/evidence/ECOSYSTEM660/definitions/mutant0.case4.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case5.exit b/evidence/ECOSYSTEM660/definitions/mutant0.case5.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant0.case5.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case5.response b/evidence/ECOSYSTEM660/definitions/mutant0.case5.response new file mode 100644 index 000000000..568af80bf Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant0.case5.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case5.stderr b/evidence/ECOSYSTEM660/definitions/mutant0.case5.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case6.exit b/evidence/ECOSYSTEM660/definitions/mutant0.case6.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant0.case6.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case6.response b/evidence/ECOSYSTEM660/definitions/mutant0.case6.response new file mode 100644 index 000000000..59bb59371 Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant0.case6.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case6.stderr b/evidence/ECOSYSTEM660/definitions/mutant0.case6.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case7.exit b/evidence/ECOSYSTEM660/definitions/mutant0.case7.exit new file mode 100644 index 000000000..f599e28b8 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant0.case7.exit @@ -0,0 +1 @@ +10 diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case7.response b/evidence/ECOSYSTEM660/definitions/mutant0.case7.response new file mode 100644 index 000000000..758eefd64 Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant0.case7.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case7.stderr b/evidence/ECOSYSTEM660/definitions/mutant0.case7.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case8.exit b/evidence/ECOSYSTEM660/definitions/mutant0.case8.exit new file mode 100644 index 000000000..7f8f011eb --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant0.case8.exit @@ -0,0 +1 @@ +7 diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case8.response b/evidence/ECOSYSTEM660/definitions/mutant0.case8.response new file mode 100644 index 000000000..4febc74b6 Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant0.case8.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case8.stderr b/evidence/ECOSYSTEM660/definitions/mutant0.case8.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case9.exit b/evidence/ECOSYSTEM660/definitions/mutant0.case9.exit new file mode 100644 index 000000000..60d3b2f4a --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant0.case9.exit @@ -0,0 +1 @@ +15 diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case9.response b/evidence/ECOSYSTEM660/definitions/mutant0.case9.response new file mode 100644 index 000000000..1417f4275 Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant0.case9.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.case9.stderr b/evidence/ECOSYSTEM660/definitions/mutant0.case9.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.check.exit b/evidence/ECOSYSTEM660/definitions/mutant0.check.exit new file mode 100644 index 000000000..d00491fd7 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant0.check.exit @@ -0,0 +1 @@ +1 diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.check.stderr b/evidence/ECOSYSTEM660/definitions/mutant0.check.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.check.stdout b/evidence/ECOSYSTEM660/definitions/mutant0.check.stdout new file mode 100644 index 000000000..29fa2d389 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant0.check.stdout @@ -0,0 +1 @@ +947 446 diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.compile.exit b/evidence/ECOSYSTEM660/definitions/mutant0.compile.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant0.compile.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.compile.stderr b/evidence/ECOSYSTEM660/definitions/mutant0.compile.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant0.om b/evidence/ECOSYSTEM660/definitions/mutant0.om new file mode 100644 index 000000000..37fa0dd8f --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant0.om @@ -0,0 +1,4165 @@ +note omc: the Omega compiler written in Omega (the om4 subset). Reads Omegese on stdin, writes a runnable +note AArch64 Linux program (or bare function words) on stdout. Built first by om4; its codegen matches om4 +note byte for byte, so om4(X) == omc(X) on every program (seed chain rung 5, ledger L408). +note All compiler state lives in fixed global pools (decision 24: no heap). Every working value is a ulong +note (raw 64 bits) so the language's checked conversions never fire on om4's untyped-register logic. + +note ---- input, output, token ---- +global inp uchar 8388608 +global inlen ulong 1 +global cur ulong 1 +global line ulong 1 +global tk ulong 1 +global tw ulong 1 +global tl ulong 1 +global ts ulong 1 +global tbig ulong 1 +global out uchar 8388608 +global oc ulong 1 + +note Definition export v1 is an opt-in framed compiler result, never a second parser. +global dmode ulong 1 +global dmeta uchar 704 +global drepo ulong 1 +global dpath ulong 1 +global drev ulong 1 +global dstart ulong 512 +global dend ulong 512 +global dtoken ulong 1 +global dsrcsha uchar 32 + +note ---- name table (1024 names in scope): packed name, register, type, length, kind, address ---- +global nm_name ulong 1024 +global nm_reg uchar 1024 +global nm_type uchar 1024 +global nm_len ulong 1024 +global nm_kind uchar 1024 +global nm_addr ulong 1024 +global nn ulong 1 + +note ---- function table (512): name, address (byte offset in out), return type, parameter count, +note per-parameter type/length/kind (6 each), name length, name offset in the input ---- +global fn_name ulong 512 +global fn_addr ulong 512 +global fn_ret uchar 512 +global fn_np uchar 512 +global fn_pt uchar 3072 +global fn_pl ulong 3072 +global fn_pk uchar 3072 +global fn_nmlen ulong 512 +global fn_off ulong 512 +global nf ulong 1 +global lastfn ulong 1 +global scanning ulong 1 +global ncalls ulong 1 +global callsite ulong 65536 +global callfrom ulong 65536 +global callto ulong 65536 +global settled uchar 512 + + +note ---- compiler state ---- +global npar ulong 1 +global held ulong 1 +global nslot ulong 1 +global curret ulong 1 +global progmode ulong 1 +global nglob ulong 1 +global stkbytes ulong 1 +global dead ulong 1 +global poolb ulong 1 + +note ---- structs (16) and fields (256). R6. nm_type 16+index, kind 6 own, 7 edit, 8 view ---- +global st_name ulong 16 +global st_nf uchar 16 +global st_cells uchar 16 +global st_foff uchar 16 +global nst ulong 1 +global sf_name ulong 256 +global sf_type uchar 256 +global sf_len uchar 256 +global sf_off uchar 256 +global nsf ulong 1 +global svk ulong 16 +global svv ulong 16 +global svt ulong 16 + +note ======== leaf helpers ======== + +note poolc: the i-th register of the pool x0..x6, x8..x15, x17 (x7 is the runtime, x16 scratch) +fn poolc i ulong to ulong +if lt i 7 +ret i +end +if lt i 15 +ret add i 1 +end +ret 17 +end + +note ---- error reporting ---- +global msg uchar 64 +global mc ulong 1 + +fn mputb b uchar to void +m = get mc 0 +put msg m b +put mc 0 add m 1 +end + +fn mputn v ulong to void +d = new uchar 20 0 +i = ulong 0 +x = v +put d 0 uchar add rem x 10 48 +x = div x 10 +i = add i 1 +while gt x 0 +put d i uchar add rem x 10 48 +x = div x 10 +i = add i 1 +end +j = i +while gt j 0 +j = sub j 1 +mputb get d j +end +end + +note fail: write "omc: line N: error E" to stderr (fd 2) and exit with the code +fn fail code ulong to void +if ne get dmode 0 0 +derror code +end +put mc 0 0 +mputb 111 +mputb 109 +mputb 99 +mputb 58 +mputb 32 +mputb 108 +mputb 105 +mputb 110 +mputb 101 +mputb 32 +mputn get line 0 +mputb 58 +mputb 32 +mputb 101 +mputb 114 +mputb 114 +mputb 111 +mputb 114 +mputb 32 +mputn code +mputb 10 +w = write 2 msg 0 get mc 0 +exit int code +end + +note emitb / emit: one byte / one 32-bit word (little-endian) to the output; error 14 when it is full +note (om4 EMIT, EMITB: the 8 MiB output area) +fn emitb b uchar to void +o = get oc 0 +if ge o 8388608 +fail 14 +end +put out o b +put oc 0 add o 1 +end + +fn emit w ulong to void +if ge get oc 0 8388608 +fail 14 +end +emitb uchar and w 255 +emitb uchar and shr w 8 255 +emitb uchar and shr w 16 255 +emitb uchar and shr w 24 255 +end + +note tok_num: the word at [ts,cur) is [-]decimal, at most 20 digits, from -2^63 to 2^64 - 1 (error 6 +note bad number, 8 out of range). tw = its raw 64 bits (a negative one as two's complement); tbig = 1 +note when it is 2^63 or more (only a ulong holds it), else 0. As om4's TK_NUM. +fn tok_num to void +p = get ts 0 +e = get cur 0 +minus = false +if eq get inp p 45 +minus = true +p = add p 1 +end +ndig = sub e p +if eq ndig 0 +fail 6 +end +if gt ndig 20 +fail 6 +end +v = ulong 0 +lim = ulong 1844674407370955161 +i = p +while lt i e +d = sub ulong get inp i 48 +if gt d 9 +fail 6 +end +if gt v lim +fail 8 +end +if and eq v lim gt d 5 +fail 8 +end +v = add mul v 10 d +i = add i 1 +end +half = shl ulong 1 63 +put tbig 0 0 +if minus +if gt v half +fail 8 +end +put tw 0 sub ulong 0 v +else +if ge v half +put tbig 0 1 +end +put tw 0 v +end +put tk 0 2 +end + +note tok_text: a text literal starting at the opening quote. tw = first byte offset, tl = source length +note (escapes not yet decoded). Ends at an unescaped '"' on the same line, followed by a blank/end. Err 22. +note (Loops over the input are two loops, the inner under 1000000 passes: om4 has no pass limit.) +fn tok_text to void +put cur 0 add get cur 0 1 +put tw 0 get cur 0 +go = true +while go +n = ulong 0 +while and go lt n 999999 +if ge get cur 0 get inlen 0 +fail 22 +end +b = get inp get cur 0 +if eq b 10 +fail 22 +end +if eq b 34 +go = false +else +put cur 0 add get cur 0 1 +if eq b 92 +if ge get cur 0 get inlen 0 +fail 22 +end +if eq get inp get cur 0 10 +fail 22 +end +put cur 0 add get cur 0 1 +end +end +n = add n 1 +end +end +put tl 0 sub get cur 0 get tw 0 +put cur 0 add get cur 0 1 +put tk 0 4 +if lt get cur 0 get inlen 0 +if gt get inp get cur 0 32 +fail 22 +end +end +end + +note tok2: a word at cur with first byte c; packs 8 bytes into tw, sets tl and ts. A '"' is a text; a +note first byte '-' or a digit is a number. +fn tok2 c uchar to void +if eq c 34 +tok_text +ret +end +put ts 0 get cur 0 +w = ulong 0 +sh = ulong 0 +n = ulong 0 +go = true +while go +m = ulong 0 +while and go lt m 999999 +if ge get cur 0 get inlen 0 +go = false +else +b = get inp get cur 0 +if le b 32 +go = false +else +if lt n 8 +w = or w shl ulong b sh +sh = add sh 8 +end +n = add n 1 +put cur 0 add get cur 0 1 +end +end +m = add m 1 +end +end +put tw 0 w +put tl 0 n +f = get inp get ts 0 +isnum = false +if eq f 45 +isnum = true +end +if and ge f 48 le f 57 +isnum = true +end +if isnum +tok_num +else +put tk 0 1 +end +end + +note tok: next word, skipping blanks (space, tab, carriage return); newline is end of line (kind 0) and +note bumps the line number; another byte below 32 is error 16; the end of the input is kind 3. om4 TOK. +fn tok to void +go = true +while go +n = ulong 0 +while and go lt n 999999 +if ge get cur 0 get inlen 0 +go = false +else +c = get inp get cur 0 +if or or eq c 32 eq c 9 eq c 13 +put cur 0 add get cur 0 1 +else +if eq c 10 +put cur 0 add get cur 0 1 +put line 0 add get line 0 1 +put tk 0 0 +ret +end +if lt c 32 +fail 16 +end +tok2 c +ret +end +end +n = add n 1 +end +end +put tk 0 3 +end + +note ======== keyword lookup (om4 KWTAB, generated by seed/omc/genkw.awk) ======== +fn kw w ulong to ulong +if eq w 1819242338 +ret 1 +end +if eq w 491260502901 +ret 2 +end +if eq w 14453 +ret 2 +end +if eq w 128034844210037 +ret 3 +end +if eq w 3551605 +ret 3 +end +if eq w 1953393013 +ret 4 +end +if eq w 3289973 +ret 4 +end +if eq w 444234427509 +ret 5 +end +if eq w 3421813 +ret 5 +end +if eq w 1702132066 +ret 6 +end +if eq w 14441 +ret 6 +end +if eq w 500136110195 +ret 7 +end +if eq w 3551593 +ret 7 +end +if eq w 7630441 +ret 8 +end +if eq w 3289961 +ret 8 +end +if eq w 1735290732 +ret 9 +end +if eq w 3421801 +ret 9 +end +if eq w 6579297 +ret 33 +end +if eq w 6452595 +ret 34 +end +if eq w 7107949 +ret 35 +end +if eq w 7760228 +ret 36 +end +if eq w 7169394 +ret 37 +end +if eq w 6581857 +ret 38 +end +if eq w 29295 +ret 39 +end +if eq w 7499640 +ret 40 +end +if eq w 7104627 +ret 41 +end +if eq w 7497843 +ret 42 +end +if eq w 29029 +ret 43 +end +if eq w 25966 +ret 44 +end +if eq w 29804 +ret 45 +end +if eq w 25964 +ret 46 +end +if eq w 29799 +ret 47 +end +if eq w 25959 +ret 48 +end +if eq w 6776174 +ret 49 +end +if eq w 7630702 +ret 50 +end +if eq w 7628135 +ret 51 +end +if eq w 7234924 +ret 52 +end +if eq w 1684104562 +ret 53 +end +if eq w 435744764535 +ret 54 +end +if eq w 1702195828 +ret 55 +end +if eq w 435728179558 +ret 56 +end +if eq w 2003134838 +ret 57 +end +if eq w 1953064037 +ret 58 +end +if eq w 28262 +ret 64 +end +if eq w 28532 +ret 65 +end +if eq w 6581861 +ret 66 +end +if eq w 26217 +ret 67 +end +if eq w 1702063205 +ret 68 +end +if eq w 435610544247 +ret 69 +end +if eq w 431349919586 +ret 70 +end +if eq w 7499622 +ret 71 +end +if eq w 7628146 +ret 72 +end +if eq w 61 +ret 73 +end +if eq w 40 +ret 74 +end +if eq w 41 +ret 75 +end +if eq w 1684631414 +ret 76 +end +if eq w 119165519096935 +ret 78 +end +if eq w 1954047348 +ret 79 +end +if eq w 7632240 +ret 80 +end +if eq w 1701147238 +ret 81 +end +if eq w 1953069157 +ret 82 +end +if eq w 1702129518 +ret 83 +end +if eq w 7824750 +ret 84 +end +if eq w 461195539042 +ret 77 +end +if eq w 1885434484 +ret 77 +end +if eq w 7239535 +ret 77 +end +if eq w 127970521019507 +ret 85 +end +ret 0 +end + +note ======== om4's small tables, as functions ======== +note twid: width in bits by type 0..9 (bool 1; uchar ushort uint ulong; byte short int long) +fn twid t ulong to ulong +if eq t 1 +ret 1 +end +if or eq t 2 eq t 6 +ret 8 +end +if or eq t 3 eq t 7 +ret 16 +end +if or eq t 4 eq t 8 +ret 32 +end +if or eq t 5 eq t 9 +ret 64 +end +ret 0 +end + +note tlog: log2 of the element size by type +fn tlog t ulong to ulong +if or eq t 3 eq t 7 +ret 1 +end +if or eq t 4 eq t 8 +ret 2 +end +if or eq t 5 eq t 9 +ret 3 +end +ret 0 +end + +note regidx: the pool index of register r (the inverse of poolc; 255 for x7 and x16) +fn regidx r ulong to ulong +if lt r 7 +ret r +end +if eq r 7 +ret 255 +end +if lt r 16 +ret sub r 1 +end +if eq r 16 +ret 255 +end +ret 15 +end + +note conds: the condition for eq ne lt le gt ge (i = 2 (op - 43) + 1 when signed): EQ 0, NE 1, LO 3 / LT 11, +note LS 9 / LE 13, HI 8 / GT 12, HS 2 / GE 10 (Arm ARM Table C1-1). The opposite condition is cond xor 1. +fn conds i ulong to ulong +if lt i 2 +ret 0 +end +if lt i 4 +ret 1 +end +if eq i 4 +ret 3 +end +if eq i 5 +ret 11 +end +if eq i 6 +ret 9 +end +if eq i 7 +ret 13 +end +if eq i 8 +ret 8 +end +if eq i 9 +ret 12 +end +if eq i 10 +ret 2 +end +ret 10 +end + +note ldop / stop: register-offset load / store by element type (om4 LDOP, STOP tables) +fn ldop t ulong to ulong +note LDRB 0x38606800, LDRH 0x78607800, LDR w 0xb8607800, LDR x 0xf8607800, LDRSB 0x38a06800, +note LDRSH 0x78a07800, LDRSW 0xb8a07800 +if eq t 2 +ret 945842176 +end +if eq t 3 +ret 2019588096 +end +if eq t 4 +ret 3093329920 +end +if or eq t 5 eq t 9 +ret 4167071744 +end +if eq t 6 +ret 950036480 +end +if eq t 7 +ret 2023782400 +end +if eq t 8 +ret 3097524224 +end +ret 0 +end + +fn stop t ulong to ulong +note STRB 0x38206800, STRH 0x78207800, STR w 0xb8207800, STR x 0xf8207800 +if or eq t 2 eq t 6 +ret 941647872 +end +if or eq t 3 eq t 7 +ret 2015393792 +end +if or eq t 4 eq t 8 +ret 3089135616 +end +if or eq t 5 eq t 9 +ret 4162877440 +end +ret 0 +end + +note ---- trap list (8192 sites per function): output offset of the branch, trap code ---- +global tsite ulong 8192 +global tcode ulong 8192 +global nt ulong 1 +note ---- block stack (512): kind (1 if, 2 else, 3 while, 4 for), branch to patch, loop head, loop +note register, its type, names and held pool slots to restore at end, then-part ended (for else) ---- +global bkind ulong 512 +global bbr ulong 512 +global bhead ulong 512 +global breg ulong 512 +global btyp ulong 512 +global bnames ulong 512 +global bheld ulong 512 +global bdead ulong 512 +global nb ulong 1 +global curfn ulong 1 + +note ======== names and functions ======== +note findname: packed name -> its index + 1 among the names in scope (0 none). om4 FINDNAME. +fn findname w ulong to ulong +i = ulong 0 +n = get nn 0 +while lt i n +if eq get nm_name i w +ret add i 1 +end +i = add i 1 +end +ret 0 +end + +note findfn: packed name w (first 8 bytes), length l (any value up to 8 for a short name), start s in the +note input (read only for a name over 8 bytes) -> function index + 1 (0 none). om4 FINDFN. +fn findfn w ulong l ulong s ulong to ulong +j = ulong 0 +while lt j get nf 0 +if eq get fn_name j w +fl = get fn_nmlen j +if le l 8 +if le fl 8 +ret add j 1 +end +else +if eq fl l +o = get fn_off j +k = ulong 8 +same = true +while and same lt k l +a = get inp add o k +if ne a get inp add s k +same = false +end +k = add k 1 +end +if same +ret add j 1 +end +end +end +end +j = add j 1 +end +ret 0 +end + +note newname: the name must not be in use (a name in scope when 8 bytes or fewer, or a function): error 10 +fn newname w ulong l ulong s ulong to void +if ne findstruct w 0 +fail 10 +end +if le l 8 +if ne findname w 0 +fail 10 +end +end +if ne findfn w l s 0 +fail 10 +end +end + +note addname: packed name, register, type, length, kind, address. om4 ADDNAME. +fn addname w ulong r ulong t ulong ln ulong k ulong a ulong to void +n = get nn 0 +if ge n 1024 +fail 14 +end +put nm_name n w +put nm_reg n uchar r +put nm_type n uchar t +put nm_len n ln +put nm_kind n uchar k +put nm_addr n a +put nn 0 add n 1 +end + +note ======== registers and words ======== +note alloc: the next free register of the pool (after the parameters); error 12 when none is left +fn alloc to ulong +i = add get npar 0 get nslot 0 +if ge i 16 +fail 12 +end +put nslot 0 add get nslot 0 1 +ret poolc i +end + +note destreg: d, or a new temporary when d is 255 +fn destreg d ulong to ulong +if eq d 255 +ret alloc +end +ret d +end + +note e3: emit op | d | n << 5 | m << 16 +fn e3 op ulong d ulong n ulong m ulong to void +emit or or or op d shl n 5 shl m 16 +end + +note trapsite: note the place and code of a branch to the trap stub, then emit it. trapc: B.cond, as om4. +fn trapsite w ulong code ulong to void +n = get nt 0 +if ge n 8192 +fail 14 +end +put tsite n get oc 0 +put tcode n code +put nt 0 add n 1 +emit w +end + +fn trapc cc ulong code ulong to void +trapsite or 1409286144 cc code +end + +fn rdword at ulong to ulong +a = ulong get out at +b = shl ulong get out add at 1 8 +c = shl ulong get out add at 2 16 +d = shl ulong get out add at 3 24 +ret or or or a b c d +end + +fn wrword at ulong w ulong to void +put out at uchar and w 255 +put out add at 1 uchar and shr w 8 255 +put out add at 2 uchar and shr w 16 255 +put out add at 3 uchar and shr w 24 255 +end + +note patch19: the word distance from a B.cond / CBZ / CBNZ at `at` to `target`, into bits 5..23 +fn patch19 at ulong target ulong to void +d = and shr sub target at 2 524287 +wrword at or rdword at shl d 5 +end + +note patch26: the word distance from a B at `at` to `target`, into bits 0..25 +fn patch26 at ulong target ulong to void +d = and shr sub target at 2 67108863 +wrword at or rdword at d +end + +note back: emit B to an earlier place (C6.2.35) +fn back addr ulong to void +emit or 335544320 and shr sub addr get oc 0 2 67108863 +end + +note matconst: put a 64-bit value in register r: MOVZ (C6.2.285) or, for a value with the top bit set, +note MOVN (C6.2.284) with the first halfword that differs from the fill, then MOVK (C6.2.283) for each +note other such halfword. om4 MATCONST. +fn matconst r ulong v ulong to void +fill = ulong 0 +mop = ulong 3531603968 +if ne shr v 63 0 +fill = ulong 65535 +mop = ulong 2457862144 +end +started = false +hw = ulong 0 +while lt hw 4 +h = and shr v shl hw 4 65535 +if ne h fill +if started +emit or or or 4068474880 shl h 5 shl hw 21 r +else +emit or or or mop shl xor h fill 5 shl hw 21 r +started = true +end +end +hw = add hw 1 +end +if not started +emit or mop r +end +end + +note canon: u8/u16/u32 UBFM Xr, Xr, #0, #w-1 (C6.2.487); i8/i16/i32 SBFM (C6.2.355); else nothing +fn canon r ulong t ulong to void +if lt t 2 +ret +end +if eq t 5 +ret +end +if eq t 9 +ret +end +base = ulong 3544186880 +if gt t 5 +base = ulong 2470445056 +end +emit or or or base shl sub twid t 1 10 r shl r 5 +end + +note chkext: CMP Xr, Wr, SXTB/SXTH/SXTW (SUBS extended, C6.2.463), then B.NE trap code +fn chkext r ulong t ulong code ulong to void +emit or or or 3944742943 shl sub t 2 13 shl r 16 shl r 5 +trapc 1 code +end + +note range: error 8 unless v is a value of type t; big = the number was written as 2^63 or more +fn range v ulong t ulong big ulong to void +w = twid t +if eq w 64 +if eq t 9 +if ne big 0 +fail 8 +end +ret +end +if ne big 0 +ret +end +if ne shr v 63 0 +fail 8 +end +ret +end +if ne big 0 +fail 8 +end +lim = shl ulong 1 w +if lt t 6 +if ge v lim +fail 8 +end +ret +end +half = shr lim 1 +if ge add v half lim +fail 8 +end +end + +note cset: CSET Xr, cond = CSINC Xr, XZR, XZR, opposite cond (C6.2.141) +fn cset r ulong cc ulong to void +emit or or 2594113504 r shl xor cc 1 12 +end + +note force: put a value (kind 1 register, 3 number, 4 flags) in register r; a bare number is error 11 +fn force k ulong v ulong t ulong r ulong to void +if eq k 1 +if ne v r +emit or or 2852127712 r shl v 16 +end +ret +end +if eq k 3 +matconst r v +ret +end +if eq k 4 +cset r v +ret +end +fail 11 +end + +note matreg: a register holding the value +fn matreg k ulong v ulong t ulong to ulong +if eq k 1 +ret v +end +r = alloc +force k v t r +ret r +end + +note spop: ADD (C6.2.5) / SUB (C6.2.457) SP, SP by a multiple of 16 below 2^24: low 12 bits, then the +note high 12 bits LSL 12; nothing for a zero part +fn spop base ulong bytes ulong to void +lo = and bytes 4095 +if ne lo 0 +emit or or base 1023 shl lo 10 +end +hi = and shr bytes 12 4095 +if ne hi 0 +emit or or base 4195327 shl hi 10 +end +end + +fn spadd bytes ulong to void +spop 2432696320 bytes +end + +fn spsub bytes ulong to void +spop 3506438144 bytes +end + +note stkchk: program mode only: CMP SP, X28 (C6.2.463); B.LO trap 6 +fn stkchk to void +if ne get progmode 0 0 +emit 3946603519 +trapc 3 6 +end +end + +note epi: give back the stack of the local arrays, then RET (C6.2.338) +fn epi to void +spadd get stkbytes 0 +emit 3596551104 +end + +fn dead1 to void +put dead 0 1 +end + +note pushb / pushnh: open a block (om4 PUSHB, split in two because a call takes at most 6 values) +fn pushb br ulong k ulong head ulong reg ulong ty ulong to void +n = get nb 0 +if ge n 512 +fail 14 +end +put bkind n k +put bbr n br +put bhead n head +put breg n reg +put btyp n ty +put bdead n 0 +put nb 0 add n 1 +end + +fn pushnh names ulong hd ulong to void +n = sub get nb 0 1 +put bnames n names +put bheld n hd +end + +note ======== small readers ======== +fn elemtype t ulong to void +if lt t 2 +fail 9 +end +end + +note arrlen: an array length 1 .. 16777216 (error 8 below, 23 above, 23 when written as 2^63 or more) +fn arrlen v ulong to void +if ne get tbig 0 0 +fail 23 +end +if or eq v 0 ne shr v 63 0 +fail 8 +end +if gt v 16777216 +fail 23 +end +end + +note typeword: read a type name -> 1..9 +fn typeword to ulong +tok +k = get tk 0 +if eq k 0 +fail 4 +end +if ne k 1 +fail 16 +end +if gt get tl 0 8 +fail 16 +end +c = kw get tw 0 +if eq c 76 +fail 9 +end +if gt sub c 1 8 +fail 16 +end +ret c +end + +note eol: the line must end here +fn eol to void +tok +k = get tk 0 +if and ne k 0 ne k 3 +fail 5 +end +end + +note arrname: read an array name -> its index + 1 +fn arrname to ulong +tok +k = get tk 0 +if eq k 0 +fail 4 +end +if eq k 3 +fail 4 +end +if ne k 1 +fail 16 +end +if gt get tl 0 8 +fail 13 +end +e = findname get tw 0 +if eq e 0 +fail 3 +end +if eq get nm_kind sub e 1 0 +fail 7 +end +ret e +end + +note topname: read a new name for a global or a text -> its packed word +fn topname to ulong +tok +if ne get tk 0 1 +fail 16 +end +if gt get tl 0 8 +fail 13 +end +w = get tw 0 +if ne kw w 0 +fail 16 +end +newname w get tl 0 get ts 0 +ret w +end + +note ---- value results (om4 x0 kind 1 register / 2 bare number / 3 typed number / 4 flags, x1 register, +note number or condition, x2 type). fr: 32 cells per value nesting depth 0..1024: 0..5 the two operands of +note a binary op (kind, value, type each), 8..25 a call's arguments (kind, value, array name each) ---- +global rk ulong 1 +global rv ulong 1 +global rt ulong 1 +global fr ulong 32800 +global depth ulong 1 + +note ======== BINOP (om4 BINOP and its BO_* parts): two values already read, types settled ======== +note bo_w3: emit fx | rd | ra << 5 | (imm12 << 10, or rb << 16) +fn bo_w3 fx ulong rd ulong ra ulong rb ulong imm ulong to void +if ne imm 0 +emit or or or fx rd shl ra 5 shl rb 10 +else +emit or or or fx rd shl ra 5 shl rb 16 +end +end + +note bo_fix: after a 64-bit op on rd: u8/u16/u32 wrap (canon), i8/i16/i32 overflow check (trap 1) +fn bo_fix rd ulong ty ulong to void +if lt ty 6 +canon rd ty +ret +end +if eq ty 9 +ret +end +chkext rd ty 1 +end + +note bo_schk: a shift amount in a register must be below the width: CMP Xb, #w; B.HS trap 7 +fn bo_schk ty ulong rb ulong to void +emit or or 4043309087 shl twid ty 10 shl rb 5 +trapc 2 7 +end + +note add, sub: u32 the 32-bit form; i64 ADDS/SUBS + B.VS trap 1; others 64-bit then bo_fix (om4 BO_ADD) +fn bo_add op ulong ty ulong ra ulong rb ulong imm ulong rd ulong to void +fx = ulong 2332033024 +if eq op 34 +fx = ulong 3405774848 +end +if ne imm 0 +fx = ulong 2432696320 +if eq op 34 +fx = ulong 3506438144 +end +end +if eq ty 4 +bo_w3 xor fx 2147483648 rd ra rb imm +ret +end +if eq ty 9 +bo_w3 or fx 536870912 rd ra rb imm +trapc 6 1 +ret +end +bo_w3 fx rd ra rb imm +bo_fix rd ty +end + +note mul: i64 SMULH t, MUL, CMP t, rd, ASR #63, B.NE trap 1 (om4 BO_MUL) +fn bo_mul ty ulong ra ulong rb ulong rd ulong to void +if eq ty 9 +t = alloc +e3 2604694528 t ra rb +bo_w3 2600500224 rd ra rb 0 +e3 3951098911 0 t rd +trapc 1 1 +ret +end +if eq ty 4 +bo_w3 453016576 rd ra rb 0 +ret +end +bo_w3 2600500224 rd ra rb 0 +bo_fix rd ty +end + +note div, rem (om4 BO_DIV, BO_SDIV): CBZ Xb trap 2 unless fl bit 1 (b a number other than 0); UDIV or +note SDIV; rem: t = a / b, rd = a - t * b (MSUB); i64 div: CMN Xb, #1; B.NE +3; NEGS XZR, Xa; B.VS trap 1, +note unless fl bit 2 (b a number other than -1) +fn bo_div op ulong ty ulong ra ulong rb ulong rd ulong fl ulong to void +if eq and fl 1 0 +trapsite or 3019898880 rb 2 +end +if eq op 37 +t = alloc +if ge ty 6 +e3 2596277248 t ra rb +else +e3 2596276224 t ra rb +end +e3 or 2600501248 shl ra 10 rd t rb +ret +end +if lt ty 6 +bo_w3 2596276224 rd ra rb 0 +ret +end +if eq ty 9 +if eq and fl 2 0 +emit or 2969568287 shl rb 5 +emit 1409286241 +emit or 3942646783 shl ra 16 +trapc 6 1 +end +end +bo_w3 2596277248 rd ra rb 0 +if ne ty 9 +bo_fix rd ty +end +end + +note and, or, xor (om4 BO_LOG) +fn bo_log op ulong ra ulong rb ulong rd ulong to void +fx = ulong 2315255808 +if eq op 39 +fx = ulong 2852126720 +end +if eq op 40 +fx = ulong 3388997632 +end +bo_w3 fx rd ra rb 0 +end + +note bo_lsl: LSL Xd, Xn, #s as UBFM Xd, Xn, #(64-s) mod 64, #63-s +fn bo_lsl ra ulong s ulong rd ulong to void +r = shl and sub 64 s 63 16 +r = or r shl sub 63 s 10 +r = or r shl ra 5 +emit or or 3544186880 r rd +end + +note shl (om4 BO_SHL, BS_64): by a number s: UBFM Xd, Xn, #(64-s) mod 64, #63-s; by a register: the amount +note check, LSLV; i64: t = a << s, X16 = t >> s arithmetic, CMP X16, Xa, B.NE trap 1, MOV Xd, Xt +fn bo_shl ty ulong ra ulong rb ulong imm ulong rd ulong to void +if eq ty 9 +t = alloc +if ne imm 0 +bo_lsl ra rb t +emit or or 2470509584 shl rb 16 shl t 5 +else +bo_schk ty rb +e3 2596282368 t ra rb +e3 2596284432 0 t rb +end +emit or 3942646303 shl ra 16 +trapc 1 1 +emit or or 2852127712 rd shl t 16 +ret +end +if ne imm 0 +bo_lsl ra rb rd +bo_fix rd ty +ret +end +bo_schk ty rb +if eq ty 4 +bo_w3 448798720 rd ra rb 0 +ret +end +bo_w3 2596282368 rd ra rb 0 +bo_fix rd ty +end + +note shr: unsigned LSR, signed ASR; by a number UBFM / SBFM Xd, Xn, #s, #63; by a register the amount check +note then LSRV / ASRV (om4 BO_SHR) +fn bo_shr ty ulong ra ulong rb ulong imm ulong rd ulong to void +if ne imm 0 +fi = ulong 3544251392 +if ge ty 6 +fi = ulong 2470509568 +end +emit or or or fi shl rb 16 shl ra 5 rd +ret +end +bo_schk ty rb +fx = ulong 2596283392 +if ge ty 6 +fx = ulong 2596284416 +end +bo_w3 fx rd ra rb 0 +end + +note comparisons: CMP Xa, #imm or CMP Xa, Xb; the result is the flags and a condition (om4 BO_CMP) +fn bo_cmp op ulong ty ulong ra ulong rb ulong imm ulong to void +if ne imm 0 +emit or or 4043309087 shl rb 10 shl ra 5 +else +emit or or 3942645791 shl rb 16 shl ra 5 +end +i = mul sub op 43 2 +if ge ty 6 +i = add i 1 +end +put rk 0 4 +put rv 0 conds i +put rt 0 1 +end + +note binop: op 33..48, destination (255 none), ix the fr slot of a (kind, number/register, type) then b. +note Result in rk/rv/rt. om4 BINOP. +fn binop op ulong dst ulong ix ulong to void +ty = get fr add ix 2 +ra = matreg get fr ix get fr add ix 1 ty +imm = ulong 0 +bk = get fr add ix 3 +bn = get fr add ix 4 +rb = ulong 0 +useimm = false +if eq bk 3 +if or eq op 41 eq op 42 +if lt bn twid ty +useimm = true +end +else +if or lt op 35 ge op 43 +if le bn 4095 +useimm = true +end +end +end +end +if useimm +rb = bn +imm = ulong 1 +else +rb = matreg bk bn get fr add ix 5 +end +if ge op 43 +bo_cmp op ty ra rb imm +ret +end +if eq ty 1 +if gt sub op 38 2 +fail 7 +end +end +rd = destreg dst +if lt op 35 +bo_add op ty ra rb imm rd +else +if eq op 35 +bo_mul ty ra rb rd +else +if lt op 38 +fl = ulong 0 +if and eq bk 3 ne bn 0 +fl = or fl 1 +end +if and eq bk 3 ne bn 18446744073709551615 +fl = or fl 2 +end +bo_div op ty ra rb rd fl +else +if lt op 41 +bo_log op ra rb rd +else +if eq op 41 +bo_shl ty ra rb imm rd +else +bo_shr ty ra rb imm rd +end +end +end +end +end +put rk 0 1 +put rv 0 rd +put rt 0 ty +end + +note ======== calls: registers saved around a call and loaded back ======== +global svn ulong 1 +global sva ulong 1 +note save: n = registers in use (parameters + pool slots), A = 8 (n + 1) rounded up to 16: SUB SP, SP, #A +note (C6.2.457); the stack check; STR Xr, [SP, #8j] for each (C6.2.415); STR X30, [SP, #8n]. Out: svn n, +note sva A. om4 SAVE. +fn save to void +n = add get npar 0 get nslot 0 +a = shl shr add n 2 1 4 +put svn 0 n +put sva 0 a +spsub a +stkchk +j = ulong 0 +while lt j n +emit or or 4177527776 poolc j shl j 10 +j = add j 1 +end +emit or 4177527806 shl n 10 +end + +note loadarg: register t from an argument: kind 1 or 5 a register v, read back from its save slot (LDR Xt, +note [SP, #8 slot], C6.2.216); kind 3 or 6 the number or address v. om4 LOADARG. +fn loadarg t ulong k ulong v ulong to void +if or eq k 3 eq k 6 +matconst t v +ret +end +emit or or 4181722080 t shl regidx v 10 +end + +note basearg: register t = the base of array name e (index + 1): its register from the save area, or its +note address. om4 BASEARG. +fn basearg t ulong e ulong to void +i = sub e 1 +if ge get nm_kind i 4 +matconst t get nm_addr i +ret +end +loadarg t 1 ulong get nm_reg i +end + +note restore: d destination (255: a new temporary at pool slot `slot`), slot the pool slot before the +note arguments, n saved count, a save bytes, res 1 if there is a result in X0. MOV Xd, X0 (C6.2.282); LDR +note each register in use before the arguments except Xd (C6.2.216); LDR X30; ADD SP, SP, #A (C6.2.5). +note Returns Xd (255 when no result). om4 RESTORE. +fn restore d ulong slot ulong n ulong a ulong res ulong to ulong +put nslot 0 slot +rd = ulong 255 +if ne res 0 +rd = d +if eq d 255 +rd = alloc +end +if ne rd 0 +emit or 2852127712 rd +end +end +m = add get npar 0 slot +j = ulong 0 +while lt j m +r = poolc j +if ne r rd +emit or or 4181722080 r shl j 10 +end +j = add j 1 +end +emit or 4181722110 shl n 10 +spadd a +ret rd +end + +note ca_bl: BL to function f (index + 1), C6.2.43 +fn ca_bl f ulong to void +n = get ncalls 0 +if ge n 65536 +fail 14 +end +put callsite n get oc 0 +put callfrom n get curfn 0 +put callto n f +put ncalls 0 add n 1 + +emit or 2483027968 and shr sub get fn_addr sub f 1 get oc 0 2 67108863 +end + +note ======== element addresses and array arguments ======== +global ea_b ulong 1 +global ea_i ulong 1 +note elemaddr: array name e (index + 1), index value (kind, number or register, type). A number index must +note be inside the array (error 21) and needs no check; a register index: CMP Xi, #len (C6.2.96) or CMP Xi, +note Xt (C6.2.97), B.HS trap 3 (unsigned, so a negative signed index traps too). Out: ea_b base register +note (the array's register, or a new one holding its address), ea_i index register. om4 ELEMADDR. +fn elemaddr e ulong k ulong v ulong t ulong to void +if eq t 1 +fail 7 +end +i = sub e 1 +ln = get nm_len i +x = v +if eq k 3 +if ge v ln +fail 21 +end +x = alloc +matconst x v +else +if le ln 4095 +emit or or 4043309087 shl ln 10 shl v 5 +else +y = alloc +matconst y ln +emit or or 3942645791 shl y 16 shl v 5 +end +trapc 2 3 +end +put ea_i 0 x +if ge get nm_kind i 4 +b = alloc +matconst b get nm_addr i +put ea_b 0 b +else +put ea_b 0 ulong get nm_reg i +end +end + +note aa_word: the next word of an array argument must be a name of at most 8 bytes +fn aa_word to void +tok +k = get tk 0 +if eq k 0 +fail 4 +end +if ne k 1 +fail 16 +end +if gt get tl 0 8 +fail 13 +end +end + +note arrarg: an array argument for parameter pi of function f (index + 1): [view | edit] NAME. Its type and +note length must equal the parameter's; an edit parameter needs a writable array (local or edit, error 20; +note a view passed to it is error 20, OMEGESE.md 9.4); a global is never passed (error 19). Out: rk 5 +note (register rv) or 6 (address rv, a text), rt the name entry. om4 ARRARG. +fn arrarg f ulong pi ulong to void +md = ulong 0 +aa_word +w = get tw 0 +c = kw w +if ne c 0 +if or lt c 57 gt c 58 +fail 16 +end +md = c +aa_word +w = get tw 0 +end +e = findname w +if eq e 0 +fail 3 +end +i = sub e 1 +k = ulong get nm_kind i +if eq k 0 +fail 7 +end +if ge k 6 +fail 7 +end +if eq k 4 +fail 19 +end +p = add mul sub f 1 6 pi +if eq get fn_pk p 3 +if eq md 57 +fail 20 +end +if and ne k 1 ne k 3 +fail 20 +end +else +if eq md 58 +fail 7 +end +end +if ne get nm_type i get fn_pt p +fail 7 +end +if ne get nm_len i get fn_pl p +fail 7 +end +put rt 0 e +if eq k 5 +put rk 0 6 +put rv 0 get nm_addr i +else +put rk 0 5 +put rv 0 ulong get nm_reg i +end +end + +note ======== the parts of the value reader that read no further value ======== +fn vdec to void +put depth 0 sub get depth 0 1 +end + +note vdone: a value's result, and one nesting level less (om4 VT_RET) +fn vdone k ulong v ulong t ulong to void +put rk 0 k +put rv 0 v +put rt 0 t +vdec +end + +note vt_un: neg / not of the value in rk/rv/rt (a bare number already refused). neg: NEG Xd, Xm (SUB from +note XZR, C6.2.458; the 32-bit form for u32), i64 NEGS + B.VS trap 1 (C6.2.465), then the wrap or the +note sign check; not: bool EOR Xd, Xn, #1 (C6.2.155), else MVN (ORN from XZR, C6.2.300), then the wrap. +note om4 VU1 .. VU_E. +fn vt_un c ulong dst ulong to void +ty = get rt 0 +ra = matreg get rk 0 get rv 0 ty +rd = destreg dst +if eq c 50 +if eq ty 1 +e3 3527409664 rd ra 0 +else +if eq ty 4 +e3 706741216 rd 0 ra +else +e3 2854224864 rd 0 ra +if lt ty 6 +canon rd ty +end +end +end +else +if eq ty 1 +fail 7 +end +if eq ty 9 +e3 3942646752 rd 0 ra +trapc 6 1 +else +if eq ty 4 +e3 1258292192 rd 0 ra +else +e3 3405775840 rd 0 ra +if lt ty 6 +canon rd ty +else +chkext rd ty 1 +end +end +end +end +put rk 0 1 +put rv 0 rd +put rt 0 ty +end + +note vt_conv: the value in rk/rv/rt converted to type tt (neither bool, error 9). Out of range when any bit +note at or above s is set: LSR Xt, Xa, #s (UBFM, C6.2.487); CBNZ Xt trap 5 (C6.2.77); signed to a narrower +note signed type: the sign-extension check, trap 5. om4 VTT1 .. VC_OK. +fn vt_conv tt ulong to void +ft = get rt 0 +ra = matreg get rk 0 get rv 0 ft +if eq ft 1 +fail 9 +end +if eq tt 1 +fail 9 +end +wf = twid ft +wt = twid tt +s = ulong 99 +if lt ft 6 +if ge tt 6 +if ge wf wt +s = sub wt 1 +end +else +if gt wf wt +s = wt +end +end +else +if lt tt 6 +s = wt +if gt s 63 +s = ulong 63 +end +else +if gt wf wt +chkext ra tt 5 +end +end +end +if ne s 99 +t = alloc +emit or or or 3544251392 t shl s 16 shl ra 5 +trapsite or 3036676096 t 5 +end +put rk 0 1 +put rv 0 ra +put rt 0 tt +end + +note vt_get: get A i with the index value in rk/rv/rt: the element address, then the load of the element +note type, register offset (LDOP table). om4 VT_GET. +fn vt_get e ulong dst ulong to void +elemaddr e get rk 0 get rv 0 get rt 0 +rd = destreg dst +ty = ulong get nm_type sub e 1 +w = or ldop ty rd +emit or or w shl get ea_b 0 5 shl get ea_i 0 16 +put rk 0 1 +put rv 0 rd +put rt 0 ty +end + +note vs_chk: read / write bounds: n <= len A and off <= len A - n, else trap 3 (CMP C6.2.97, B.HI C6.2.34, +note SUB C6.2.458). om4 VT_SYS. +fn vs_chk e ulong ro ulong rn ulong to void +t = alloc +matconst t get nm_len sub e 1 +emit or or 3942645791 shl rn 5 shl t 16 +trapc 8 3 +e3 3405774848 t t rn +emit or or 3942645791 shl ro 5 shl t 16 +trapc 8 3 +end + +note vs_call: save the registers in use, X0 = fd, X1 = A + off (ADD through X16, C6.2.6), X2 = n, X8 = 63 +note (read) or 64 (write) (MOVZ C6.2.285), SVC #0 (C6.2.466). om4 VT_SYS. +fn vs_call c ulong fk ulong fv ulong e ulong ro ulong rn ulong to void +save +loadarg 0 fk fv +basearg 1 e +loadarg 16 1 ro +emit 2333081633 +loadarg 2 1 rn +emit or 3531603976 shl add c 10 5 +emit 3556769793 +end + +note ca_scal: a scalar argument just read (rk/rv/rt) for parameter p: flags into a register; its type +note must be the parameter's; stored at fr[q..q+2]. om4 CA1 .. CA_PUT. +fn ca_scal p ulong q ulong to void +if eq get rk 0 4 +put rv 0 matreg 4 get rv 0 get rt 0 +put rk 0 1 +put rt 0 1 +end +if ne get rt 0 ulong get fn_pt p +fail 7 +end +put fr q get rk 0 +put fr add q 1 get rv 0 +put fr add q 2 0 +end + +note ca_arr: an array argument i of function f, call frame cb: one array passed twice is error 19. +note om4 CA_ARR .. CA_PUT. +fn ca_arr f ulong i ulong cb ulong to void +arrarg f i +j = ulong 0 +while lt j i +if eq get fr add add cb mul j 3 2 get rt 0 +fail 19 +end +j = add j 1 +end +q = add cb mul i 3 +put fr q get rk 0 +put fr add q 1 get rv 0 +put fr add q 2 get rt 0 +end + +note ca_end: all arguments read: save, the arguments into X0.., BL, restore. Frame cb: 3 per argument, +note then cb+18 the parameter count, cb+19 the pool slot before the arguments. om4 CA_DONE .. CA5. +fn ca_end f ulong dst ulong cb ulong to void +save +np = get fr add cb 18 +i = ulong 0 +while lt i np +q = add cb mul i 3 +loadarg i get fr q get fr add q 1 +i = add i 1 +end +ca_bl f +hr = ulong 1 +if eq get fn_ret sub f 1 10 +hr = ulong 0 +end +n = get svn 0 +a = get sva 0 +sl = get fr add cb 19 +r = restore dst sl n a hr +put rk 0 1 +put rv 0 r +put rt 0 ulong get fn_ret sub f 1 +end + +note vs_fd, vs_arr, vs_off, vs_end: the steps of read / write between the values it reads, with the fd +note (kind, value), the offset register and the pool slot before kept in fr[x+8..x+11] (om4's VT_SYS +note frame slots 4, 5, 7 and 14) +fn vs_fd x ulong to void +if ne get rt 0 8 +fail 7 +end +put fr add x 9 get rk 0 +put fr add x 10 get rv 0 +end + +fn vs_arr c ulong e ulong to void +if ge get nm_kind sub e 1 6 +fail 7 +end +if eq c 53 +k = get nm_kind sub e 1 +if or eq k 2 eq k 5 +fail 20 +end +end +end + +fn vs_off x ulong to void +if ne get rt 0 5 +fail 7 +end +put fr add x 11 matreg get rk 0 get rv 0 get rt 0 +end + +fn vs_end c ulong e ulong dst ulong x ulong to void +if ne get rt 0 5 +fail 7 +end +rn = matreg get rk 0 get rv 0 get rt 0 +ro = get fr add x 11 +vs_chk e ro rn +fk = get fr add x 9 +fv = get fr add x 10 +vs_call c fk fv e ro rn +sl = get fr add x 8 +n = get svn 0 +a = get sva 0 +r = restore dst sl n a 1 +vdone 1 r 9 +end + +note ======== rdval: read one value (om4 VAL, VALTOK, CALL and the VT_ parts, one self-recursive +note function because a function calls only earlier functions or itself) ======== +note mode 0: read the first word; 1: the first word is the current token; 2: a call of function fe (index +note + 1), its arguments still to read. exp the expected type (0 none), dst the destination register (255 +note none). Out: rk kind (1 register, 2 bare number, 3 typed number, 4 flags), rv register / number / +note condition, rt type (for a bare number: 1 when written as 2^63 or more). Only the outermost op writes the +note destination. Every value nests one level deeper (at most 1024, error 14); a call does not. +fn rdval mode ulong exp ulong dst ulong fe ulong to void +if eq mode 2 +cb = add mul get depth 0 32 8 +put fr add cb 18 ulong get fn_np sub fe 1 +put fr add cb 19 get nslot 0 +if eq get progmode 0 0 +if eq get curfn 0 fe +fail 9 +end +end +i = ulong 0 +while lt i get fr add cb 18 +p = add mul sub fe 1 6 i +if eq get fn_pk p 0 +rdval 0 ulong get fn_pt p 255 0 +ca_scal p add cb mul i 3 +else +if ge get fn_pk p 6 +ca_st fe i cb +else +ca_arr fe i cb +end +end +i = add i 1 +end +ca_end fe dst cb +ret +end +if eq mode 0 +tok +end +put depth 0 add get depth 0 1 +if gt get depth 0 1024 +fail 14 +end +if or eq get tk 0 0 eq get tk 0 3 +fail 4 +end +if eq get tk 0 4 +fail 16 +end +if eq get tk 0 2 +if eq exp 0 +vdone 2 get tw 0 get tbig 0 +ret +end +range get tw 0 exp get tbig 0 +vdone 3 get tw 0 exp +ret +end +if gt get tl 0 8 +f = findfn get tw 0 get tl 0 get ts 0 +if eq f 0 +fail 13 +end +if eq get fn_ret sub f 1 10 +fail 7 +end +rdval 2 0 dst f +vdec +ret +end +c = kw get tw 0 +if eq c 0 +e = findname get tw 0 +if ne e 0 +if ne get nm_kind sub e 1 0 +fail 7 +end +vdone 1 ulong get nm_reg sub e 1 ulong get nm_type sub e 1 +ret +end +f = findfn get tw 0 0 0 +if eq f 0 +fail 3 +end +if eq get fn_ret sub f 1 10 +fail 7 +end +rdval 2 0 dst f +vdec +ret +end +if le sub c 1 8 +tok +if eq get tk 0 2 +range get tw 0 c get tbig 0 +vdone 3 get tw 0 c +ret +end +rdval 1 0 255 0 +if eq get rk 0 2 +fail 11 +end +vt_conv c +vdec +ret +end +if eq c 74 +rdval 0 exp dst 0 +tok +if ne get tk 0 1 +fail 16 +end +if gt get tl 0 8 +fail 16 +end +if ne kw get tw 0 75 +fail 16 +end +vdec +ret +end +if eq c 77 +fail 9 +end +if eq c 51 +e = arrname +if ge get nm_kind sub e 1 6 +vt_fget e dst +vdec +ret +end +rdval 0 5 255 0 +vt_get e dst +vdec +ret +end +if eq c 52 +e = arrname +if ge get nm_kind sub e 1 6 +fail 7 +end +vdone 3 get nm_len sub e 1 5 +ret +end +if or eq c 53 eq c 54 +x = mul get depth 0 32 +put fr add x 8 get nslot 0 +rdval 0 8 255 0 +vs_fd x +e = arrname +vs_arr c e +rdval 0 5 255 0 +vs_off x +rdval 0 5 255 0 +vs_end c e dst x +ret +end +if eq c 55 +vdone 3 1 1 +ret +end +if eq c 56 +vdone 3 0 1 +ret +end +if gt sub c 33 17 +fail 16 +end +if ge c 49 +rdval 0 exp 255 0 +if and eq c 50 eq get rk 0 4 +put rv 0 xor get rv 0 1 +vdec +ret +end +if eq get rk 0 2 +fail 11 +end +vt_un c dst +vdec +ret +end +rdval 0 0 255 0 +ak = get rk 0 +av = get rv 0 +at = get rt 0 +if eq ak 4 +av = matreg 4 av at +ak = ulong 1 +at = ulong 1 +end +rdval 0 0 255 0 +bk = get rk 0 +bv = get rv 0 +bt = get rt 0 +if eq bk 4 +bv = matreg 4 bv bt +bk = ulong 1 +bt = ulong 1 +end +if eq ak 2 +if eq bk 2 +fail 11 +end +range av bt at +at = bt +ak = ulong 3 +end +if eq bk 2 +range bv at bt +bt = at +bk = ulong 3 +end +if and ne c 41 ne c 42 +if ne at bt +fail 7 +end +end +x = mul get depth 0 32 +put fr x ak +put fr add x 1 av +put fr add x 2 at +put fr add x 3 bk +put fr add x 4 bv +put fr add x 5 bt +binop c dst x +vdec +end + +note cond: read a condition (a bool value); emit a branch taken when it is false: B.cond with the opposite +note condition (C6.2.34), or CBZ Xr (C6.2.78). Returns that branch's place. om4 COND. +fn cond to ulong +rdval 0 1 255 0 +if ne get rt 0 1 +fail 7 +end +if eq get rk 0 4 +at = get oc 0 +emit or 1409286144 xor get rv 0 1 +ret at +end +r = matreg get rk 0 get rv 0 get rt 0 +at = get oc 0 +emit or 3019898880 r +ret at +end + +note ======== statements, one per line (om4 STMT and the S_ parts) ======== +note skipnl: note ...: the rest of the line is not read (up to the newline, which tok reads). om4 S_NOTE. +fn skipnl to void +go = true +while go +n = ulong 0 +while and go lt n 999999 +if ge get cur 0 get inlen 0 +go = false +else +if eq get inp get cur 0 10 +go = false +else +put cur 0 add get cur 0 1 +end +end +n = add n 1 +end +end +end + +note s_long: a word over 8 characters at the start of a line: only a call of a void function. om4 S_LONG. +fn s_long to void +if eq get curret 0 0 +fail 13 +end +if ne get dead 0 0 +fail 17 +end +f = findfn get tw 0 get tl 0 get ts 0 +if eq f 0 +fail 13 +end +if ne get fn_ret sub f 1 10 +fail 7 +end +rdval 2 0 255 f +eol +end + +note blo: B.LO back to an earlier place (C6.2.34) +fn blo at ulong to void +d = and shr sub at get oc 0 2 524287 +emit or 1409286147 shl d 5 +end + +note sa_arr: x = new T N v: N elements of type T on the stack, each set to v; only in the function's +note outermost block, so the stack held by local arrays is known at every ret. SUB SP (C6.2.457); program +note mode: the stack check; MOV Xb, SP (ADD immediate, C6.2.5); then the fill loop: STR v, [Xb, Xi, LSL]; +note ADD Xi, Xi, #1; CMP Xi, #N or Xn; B.LO back (C6.2.34). om4 SA_ARR. +fn sa_arr w ulong to void +if ne get nb 0 0 +fail 9 +end +t = typeword +elemtype t +tok +if ne get tk 0 2 +fail 16 +end +n = get tw 0 +arrlen n +by = shl shr add shl n tlog t 15 4 4 +s = add get stkbytes 0 by +if gt s 4194304 +fail 23 +end +put stkbytes 0 s +r = alloc +put held 0 get nslot 0 +rdval 0 t 255 0 +if ne get rt 0 t +fail 7 +end +v = matreg get rk 0 get rv 0 get rt 0 +spsub by +stkchk +emit or 2432697312 r +i = alloc +emit or 3531603968 i +m = ulong 0 +if gt n 4095 +m = alloc +matconst m n +end +lp = get oc 0 +emit or or or stop t v shl r 5 shl i 16 +emit or or 2432697344 i shl i 5 +if le n 4095 +emit or or 4043309087 shl n 10 shl i 5 +else +emit or or 3942645791 shl m 16 shl i 5 +end +blo lp +addname w r t n 1 0 +end + +note s_assign: name [=] value (an existing scalar, or a new one), or name = new T N v. om4 S_ASSIGN. +fn s_assign w ulong to void +tok +if eq get tk 0 1 +if le get tl 0 8 +if eq kw get tw 0 73 +tok +end +end +end +e = findname w +if ne e 0 +i = sub e 1 +if ne get nm_kind i 0 +fail 7 +end +r = ulong get nm_reg i +t = ulong get nm_type i +rdval 1 t r 0 +if ne get rt 0 t +fail 7 +end +force get rk 0 get rv 0 get rt 0 r +eol +ret +end +if ne findfn w 0 0 0 +fail 10 +end +if eq get tk 0 1 +if le get tl 0 8 +if eq kw get tw 0 84 +sa_new w +eol +ret +end +end +end +r = alloc +put held 0 get nslot 0 +rdval 1 0 r 0 +if eq get rk 0 2 +fail 11 +end +t = get rt 0 +force get rk 0 get rv 0 t r +addname w r t 0 0 0 +eol +end + +note s_name: a name at the start of a line: a call of a void function, or name [=] value. om4 S_NAME. +fn s_name w ulong to void +if ne findname w 0 +s_assign w +ret +end +f = findfn w get tl 0 0 +if eq f 0 +s_assign w +ret +end +if ne get fn_ret sub f 1 10 +fail 7 +end +rdval 2 0 255 f +eol +end + +note fn_p: the type of parameter np (name pw) of function f (index): T, or view / edit T N (an array: +note kind 2 / 3, element type, length 1 .. 2^24). om4 FN_P .. FN_ADD. +fn fn_p f ulong np ulong pw ulong to void +tok +if ne get tk 0 1 +fail 16 +end +if gt get tl 0 8 +fail 16 +end +c = kw get tw 0 +t = ulong 0 +ln = ulong 0 +k = ulong 0 +if or eq c 57 eq c 58 +k = sub c 55 +sid = peek_struct +if ne sid 0 +fn_p_st f np pw sid k +ret +end +t = typeword +elemtype t +tok +if eq get tk 0 0 +fail 4 +end +if ne get tk 0 2 +fail 16 +end +ln = get tw 0 +arrlen ln +else +if gt sub c 1 8 +fail 16 +end +t = c +end +addname pw poolc np t ln k 0 +p = add mul f 6 np +put fn_pt p uchar t +put fn_pl p ln +put fn_pk p uchar k +end + +note fn_to: to T | to void at the end of a fn line; the function's state starts. om4 FN_TO .. FN_T2. +fn fn_to f ulong np ulong to void +tok +if eq get tk 0 0 +fail 4 +end +if ne get tk 0 1 +fail 16 +end +if gt get tl 0 8 +fail 16 +end +c = kw get tw 0 +r = c +if eq c 76 +r = ulong 10 +else +if gt sub c 1 8 +fail 16 +end +end +put curret 0 r +put fn_ret f uchar r +put fn_np f uchar np +put stkbytes 0 0 +put dead 0 0 +put npar 0 np +put nslot 0 0 +put held 0 0 +put nb 0 0 +put nt 0 0 +eol +end + +note s_fn: fn name (param type | param view T N | param edit T N)* to type | void. om4 S_FN. +fn s_fn to void +if ne get curret 0 0 +fail 15 +end +tok +if ne get tk 0 1 +fail 16 +end +if gt get tl 0 63 +fail 13 +end +w = get tw 0 +if ne kw w 0 +fail 16 +end +l = get tl 0 +s = get ts 0 +f = ulong 0 +if eq get scanning 0 1 +newname w l s +f = get nf 0 +if ge f 512 +fail 14 +end +put nf 0 add f 1 +put curfn 0 add f 1 +put lastfn 0 add f 1 +put fn_name f w +put fn_addr f get oc 0 +put fn_ret f 0 +put fn_np f 0 +put fn_nmlen f l +put fn_off f s +put dstart f get dtoken 0 +else +f = sub findfn w l s 1 +put curfn 0 add f 1 +put lastfn 0 add f 1 +put fn_addr f get oc 0 +end +put nn 0 get nglob 0 +np = ulong 0 +go = true +while go +tok +if eq get tk 0 0 +fail 4 +end +if ne get tk 0 1 +fail 16 +end +if gt get tl 0 8 +fail 13 +end +pw = get tw 0 +c = kw pw +if eq c 65 +go = false +else +if ne c 0 +fail 16 +end +newname pw get tl 0 get ts 0 +if ge np 6 +fail 9 +end +fn_p f np pw +np = add np 1 +end +end +fn_to f np +if eq get scanning 0 1 +put curret 0 0 +put nn 0 0 +end +end + +note s_ret: ret [value]: the value into X0, give back the local arrays' stack, RET. om4 S_RET. +fn s_ret to void +r = get curret 0 +if eq r 10 +eol +epi +dead1 +ret +end +rdval 0 r 0 0 +if ne get rt 0 r +fail 7 +end +force get rk 0 get rv 0 get rt 0 0 +epi +dead1 +eol +end + +note s_exit: exit value (int): Linux exit (system call 93: MOVZ X8, #93, C6.2.285; SVC #0, C6.2.466); the +note path ends. om4 S_EXIT. +fn s_exit to void +rdval 0 8 255 0 +if ne get rt 0 8 +fail 7 +end +force get rk 0 get rv 0 get rt 0 0 +emit 3531606952 +emit 3556769793 +dead1 +eol +end + +note stel: the checked store of v (type t) at ea_b / ea_i (the STOP table: register offset, scaled) +fn stel t ulong v ulong to void +b = shl get ea_b 0 5 +i = shl get ea_i 0 16 +emit or or or stop t v b i +end + +note s_put: put A i v: index, then value, then the checked store (STOP table). om4 S_PUT. +fn s_put to void +e = arrname +k = get nm_kind sub e 1 +if ge k 6 +s_putf e +ret +end +if or eq k 2 eq k 5 +fail 20 +end +rdval 0 5 255 0 +ik = get rk 0 +iv = get rv 0 +it = get rt 0 +t = ulong get nm_type sub e 1 +rdval 0 t 255 0 +if ne get rt 0 t +fail 7 +end +v = matreg get rk 0 get rv 0 get rt 0 +elemaddr e ik iv it +stel t v +eol +end + +note s_global: global NAME T N: a fixed pool of N elements, zero at start, in the read/write part of the +note program image after the 8 MiB stack pool (address 0x10800000 + pool bytes so far); at most 1 GiB of +note pools (error 23). om4 S_GLOBAL. +fn s_global to void +w = topname +t = typeword +elemtype t +tok +if ne get tk 0 2 +fail 16 +end +n = get tw 0 +arrlen n +by = shl shr add shl n tlog t 15 4 4 +pb = get poolb 0 +a = add 276824064 pb +s = add pb by +if gt s 1073741824 +fail 23 +end +put poolb 0 s +addname w 0 t n 4 a +put nglob 0 get nn 0 +eol +end + +note s_text: text NAME "...": read-only bytes in the program image (escapes \n \t \\ \", any other is error +note 22), padded to a word, with their length; address 0x400000 + its place. om4 S_TEXT. +fn s_text to void +w = topname +tok +if ne get tk 0 4 +fail 16 +end +a = add get oc 0 4194304 +p = get tw 0 +e = add p get tl 0 +n = ulong 0 +go = true +while go +m = ulong 0 +while and go lt m 999999 +if ge p e +go = false +else +b = get inp p +p = add p 1 +if eq b 92 +b = get inp p +p = add p 1 +if eq b 110 +b = uchar 10 +else +if eq b 116 +b = uchar 9 +else +if and ne b 92 ne b 34 +fail 22 +end +end +end +end +emitb b +n = add n 1 +end +m = add m 1 +end +end +while ne and get oc 0 3 0 +emitb 0 +end +addname w 0 2 n 5 a +put nglob 0 get nn 0 +eol +end + +note s_if: if cond: the false branch is patched at else / end. om4 S_IF. +fn s_if to void +at = cond +pushb at 1 0 0 0 +pushnh get nn 0 get held 0 +eol +end + +note s_else: jump over the else part (B, C6.2.35); the if's false branch lands after that jump. om4 S_ELSE. +fn s_else to void +n = get nb 0 +if eq n 0 +fail 15 +end +i = sub n 1 +if ne get bkind i 1 +fail 15 +end +b = get oc 0 +emit 335544320 +patch19 get bbr i get oc 0 +put bkind i 2 +put bbr i b +put nn 0 get bnames i +put held 0 get bheld i +put bdead i get dead 0 +put dead 0 0 +eol +end + +note lpcnt: the hidden counter check of a loop: CMP Xc, #N (C6.2.96) or CMP Xc, Xn (C6.2.97); B.HS trap +note 4; ADD Xc, Xc, #1 (C6.2.5). om4 SW_NOB .. SW_G and the same in S_FOR. +fn lpcnt c ulong n ulong to void +if le n 4095 +emit or or 4043309087 shl n 10 shl c 5 +else +m = alloc +matconst m n +emit or or 3942645791 shl c 5 shl m 16 +end +trapc 2 4 +emit or or 2432697344 c shl c 5 +end + +note s_while: while cond [bound N]: hidden counter = 0; head: cond false -> exit; counter >= N -> trap 4; +note counter = counter + 1; body; B head. N is 1 .. 999999 (error 8), 1000000 with no bound. om4 S_WHILE. +fn s_while to void +sn = get nn 0 +sh = get held 0 +c = alloc +put held 0 get nslot 0 +emit or 3531603968 c +hd = get oc 0 +br = cond +n = ulong 1000000 +tok +k = get tk 0 +if and ne k 0 ne k 3 +if ne k 1 +fail 5 +end +if gt get tl 0 8 +fail 5 +end +if ne kw get tw 0 70 +fail 5 +end +tok +if eq get tk 0 0 +fail 4 +end +if ne get tk 0 2 +fail 16 +end +if ge sub get tw 0 1 999999 +fail 8 +end +n = get tw 0 +eol +end +lpcnt c n +pushb br 3 hd c 0 +pushnh sn sh +end + +note sf_br: B.HS (unsigned) or B.GE (signed) to the loop exit, C6.2.34 (distance filled at end); returns +note its place. om4 SF_BR. +fn sf_br t ulong to ulong +at = get oc 0 +if lt t 6 +emit 1409286146 +else +emit 1409286154 +end +ret at +end + +note sf_num: for i T K with K a number: i = 0 (MOVZ, C6.2.285); head: CMP Xi, #K or Xk; B.HS/B.GE exit. +note om4 SF_NUM .. SF_PUSH. +fn sf_num w ulong t ulong kk ulong sn ulong sh ulong to void +eol +i = alloc +put held 0 get nslot 0 +addname w i t 0 0 0 +emit or 3531603968 i +hd = get oc 0 +if le kk 4095 +emit or or 4043309087 shl kk 10 shl i 5 +else +k = alloc +matconst k kk +emit or or 3942645791 shl i 5 shl k 16 +end +br = sf_br t +pushb br 4 hd i t +pushnh sn sh +end + +note sf_val: for i T K with K a value of type T in register kr: i = 0; the hidden counter c = 0; head: CMP +note Xi, Xk; B.HS/B.GE exit; the counter guard of a while with no bound. om4 SF_VAL. +fn sf_val w ulong t ulong kr ulong sn ulong sh ulong to void +eol +i = alloc +put held 0 get nslot 0 +addname w i t 0 0 0 +emit or 3531603968 i +c = alloc +put held 0 get nslot 0 +emit or 3531603968 c +hd = get oc 0 +emit or or 3942645791 shl kr 16 shl i 5 +br = sf_br t +m = alloc +matconst m 1000000 +emit or or 3942645791 shl c 5 shl m 16 +trapc 2 4 +emit or or 2432697344 c shl c 5 +pushb br 4 hd i t +pushnh sn sh +end + +note s_for: for i T K: i = 0; head: not i < K -> exit; body; latch i = add i 1; B head. K a number, or a +note value of type T: a name is read at every pass, another value once before the loop. om4 S_FOR. +fn s_for to void +sn = get nn 0 +sh = get held 0 +tok +if eq get tk 0 0 +fail 4 +end +if ne get tk 0 1 +fail 16 +end +if gt get tl 0 8 +fail 13 +end +w = get tw 0 +if ne kw w 0 +fail 16 +end +newname w get tl 0 get ts 0 +t = typeword +if eq t 1 +fail 7 +end +tok +if eq get tk 0 0 +fail 4 +end +if eq get tk 0 2 +range get tw 0 t get tbig 0 +sf_num w t get tw 0 sn sh +ret +end +rdval 1 t 255 0 +if ne get rt 0 t +fail 7 +end +if eq get rk 0 3 +sf_num w t get rv 0 sn sh +ret +end +kr = matreg get rk 0 get rv 0 get rt 0 +sf_val w t kr sn sh +end + +note finish: end of a function: a function that needs a value must not reach its end (error 18), a void +note one returns; then the trap stubs: shared tail, function mode MOV X0, X7; LDR X16, [X7, #16]; BR X16 +note (C6.2.282, C6.2.216, C6.2.46: OscRt.trap); program mode ADD X0, X1, #100; MOVZ X8, #93; SVC #0 (exit +note 100 + code). Per trap code used: MOVZ X1, #code (C6.2.285); B tail. om4 FINISH. +fn finish to void +if ne get dmode 0 0 +put dend sub get curfn 0 1 get cur 0 +end +eol +if eq get dead 0 0 +if ne get curret 0 10 +fail 18 +end +epi +end +nt0 = get nt 0 +if ne nt0 0 +tail = get oc 0 +if eq get progmode 0 0 +emit 2852586464 +emit 4181723376 +emit 3592356352 +else +emit 2432798752 +emit 3531606952 +emit 3556769793 +end +code = ulong 1 +while le code 14 +st = ulong 0 +j = ulong 0 +while lt j nt0 +if eq get tcode j code +if eq st 0 +st = get oc 0 +emit or 3531603969 shl code 5 +back tail +end +patch19 get tsite j st +end +j = add j 1 +end +code = add code 1 +end +end +put curret 0 0 +put nn 0 get nglob 0 +put curfn 0 0 +end + +note s_end: close the innermost block (if: patch its branch; else: patch its jump; while: B head; for: i = +note add i 1, B head), or the function. om4 S_END. +fn s_end to void +n = get nb 0 +if eq n 0 +finish +ret +end +i = sub n 1 +put nb 0 i +k = get bkind i +if eq k 2 +put dead 0 and get dead 0 get bdead i +else +put dead 0 0 +end +if eq k 4 +put fr 0 1 +put fr 1 get breg i +put fr 2 get btyp i +put fr 3 3 +put fr 4 1 +put fr 5 get btyp i +binop 33 get breg i 0 +end +if ge k 3 +back get bhead i +end +if eq k 2 +patch26 get bbr i get oc 0 +else +patch19 get bbr i get oc 0 +end +put nn 0 get bnames i +put held 0 get bheld i +eol +end + +note ======== the end of the input: the output ======== +note writeout: the output from byte st to the end, to stdout (error 2), then exit 0. om4 WRITEOUT. +fn writeout st ulong to void +p = st +go = true +while go +m = ulong 0 +while and go lt m 999999 +if ge p get oc 0 +go = false +else +n = write 1 out p sub get oc 0 p +if le n 0 +fail 2 +end +p = add p ulong n +end +m = add m 1 +end +end +exit int 0 +end + +note elfhdr: the 176-byte file header (om4 ELFHDR, 44 words): ELF64 little-endian, executable, AArch64, +note entry 0x4000b0 (the word after the header), 2 program headers: code read+execute from 0x400000, and +note the read/write pools from 0x10000000. Only the words that are not 0 (the output starts at 0). +fn elfhdr to void +wrword 0 1179403647 +wrword 4 65794 +wrword 16 11993090 +wrword 20 1 +wrword 24 4194480 +wrword 32 64 +wrword 52 3670080 +wrword 56 2 +wrword 64 1 +wrword 68 5 +wrword 80 4194304 +wrword 88 4194304 +wrword 112 4096 +wrword 120 1 +wrword 124 6 +wrword 136 268435456 +wrword 144 268435456 +wrword 168 4096 +end + +note eof_prog: program mode: start code = MOVZ X28, #0x1000, LSL 16 (stack pool floor); MOVZ X16, #0x1080, +note LSL 16; MOV SP, X16 (ADD immediate, C6.2.5); BL main (C6.2.43); [MOVZ X0, #0 for a void main]; MOVZ X8, +note #93; SVC #0. The entry word after the header is a B to it; the header gets the file and pool sizes. +note om4 EOF_PROG. +fn eof_prog to void +f = findfn 1852399981 4 0 +if eq f 0 +fail 16 +end +if ne get fn_np sub f 1 0 +fail 9 +end +wrword 176 or 335544320 and shr sub get oc 0 176 2 67108863 +emit 3533832220 +emit 3533836304 +emit 2432696863 +emit or 2483027968 and shr sub get fn_addr sub f 1 get oc 0 2 67108863 +if eq get fn_ret sub f 1 10 +emit 3531603968 +end +emit 3531606952 +emit 3556769793 +elfhdr +wrword 96 get oc 0 +wrword 104 get oc 0 +wrword 160 add get poolb 0 8388608 +writeout 0 +end + +note s_eof: end of input: no open function (error 15), some function (16); function mode: no globals or +note texts (9); one function: its bare words; more: the entry word, a B to the last function. om4 S_EOF. +note Resolve every call after all addresses are known. In function mode remove leaves of the call +note graph; any functions left after nf rounds form or reach a cycle (error 9). +fn resolve to void +n = get ncalls 0 +i = ulong 0 +while lt i n +s = get callsite i +f = sub get callto i 1 +wrword s or 2483027968 and shr sub get fn_addr f s 2 67108863 +i = add i 1 +end +if eq get progmode 0 0 +pass = ulong 0 +while lt pass get nf 0 +f = ulong 0 +while lt f get nf 0 +if eq get settled f 0 +ok = true +i = ulong 0 +while and ok lt i n +if eq get callfrom i add f 1 +if eq get settled sub get callto i 1 0 +ok = false +end +end +i = add i 1 +end +if ok +put settled f 1 +end +end +f = add f 1 +end +pass = add pass 1 +end +f = ulong 0 +while lt f get nf 0 +if eq get settled f 0 +fail 9 +end +f = add f 1 +end +end +end + +fn s_eof to void + +if ne get curret 0 0 +fail 15 +end +if eq get nf 0 0 +fail 16 +end +resolve +if ne get dmode 0 0 +dexport +end +if ne get progmode 0 0 +eof_prog +end +if ne get nglob 0 0 +fail 9 +end +if eq get nf 0 1 +writeout 180 +end +a = get fn_addr sub get lastfn 0 1 +wrword 176 or 335544320 and shr sub a 176 2 67108863 +writeout 176 +end + +note stmt: one line. Returns 1 at the end of the input. om4 STMT. +fn stmt to ulong +put nslot 0 get held 0 +tok +k = get tk 0 +if eq k 0 +ret 0 +end +if eq k 3 +s_eof +ret 1 +end +if ne k 1 +fail 16 +end +if gt get tl 0 8 +s_long +ret 0 +end +w = get tw 0 +c = kw w +if eq c 83 +skipnl +ret 0 +end +if eq c 64 +s_fn +ret 0 +end +if eq get curret 0 0 +if eq c 78 +s_global +ret 0 +end +if eq c 79 +s_text +ret 0 +end +if eq c 85 +skipnl +ret 0 +end +fail 16 +end +if eq c 66 +s_end +ret 0 +end +if eq c 68 +s_else +ret 0 +end +if ne get dead 0 0 +fail 17 +end +if eq c 0 +s_name w +ret 0 +end +if eq c 67 +s_if +ret 0 +end +if eq c 69 +s_while +ret 0 +end +if eq c 71 +s_for +ret 0 +end +if eq c 72 +s_ret +ret 0 +end +if eq c 80 +s_put +ret 0 +end +if eq c 82 +s_exit +ret 0 +end +if or or or eq c 77 eq c 78 eq c 79 eq c 81 +fail 9 +end +if eq c 85 +fail 9 +end +fail 16 +ret 0 +end + +note ======== program mode: some line is `fn main` (blanks, fn, blanks, main, then a blank or the end) ======== +note skipbl: the first place at or after q that is not a space or tab (or the end) +fn skipbl q ulong to ulong +e = get inlen 0 +p = q +go = true +while go +m = ulong 0 +while and go lt m 999999 +if ge p e +go = false +else +b = get inp p +if or eq b 32 eq b 9 +p = add p 1 +else +go = false +end +end +m = add m 1 +end +end +ret p +end + +note skipln: the place after the next newline at or after q (or the end) +fn skipln q ulong to ulong +e = get inlen 0 +p = q +go = true +while go +m = ulong 0 +while and go lt m 999999 +if ge p e +go = false +else +b = get inp p +p = add p 1 +if eq b 10 +go = false +end +end +m = add m 1 +end +end +ret p +end + +note ps_at: the line's first byte that is not blank is at p: 1 when the line is `fn main`, 2 when the input +note ends while deciding, else 0. om4 PS_LINE .. PS_YES. +fn ps_at p ulong to ulong +e = get inlen 0 +if ne get inp p 102 +ret 0 +end +q = add p 1 +if ge q e +ret 2 +end +if ne get inp q 110 +ret 0 +end +r = add q 1 +q = skipbl r +if ge q e +ret 2 +end +if eq q r +ret 0 +end +if gt add q 4 e +ret 0 +end +if ne get inp q 109 +ret 0 +end +if ne get inp add q 1 97 +ret 0 +end +if ne get inp add q 2 105 +ret 0 +end +if ne get inp add q 3 110 +ret 0 +end +if ge add q 4 e +ret 1 +end +if gt get inp add q 4 32 +ret 0 +end +ret 1 +end + +fn prescan to void +e = get inlen 0 +p = ulong 0 +go = true +while go +m = ulong 0 +while and go lt m 999999 +p = skipbl p +if ge p e +go = false +else +r = ps_at p +if eq r 1 +put progmode 0 1 +go = false +end +if eq r 2 +go = false +end +if go +p = skipln p +if ge p e +go = false +end +end +end +m = add m 1 +end +end +end + +note First collect signatures. Only fn headers are parsed here; other lines are read in the body pass. +fn namescan to void +put scanning 0 1 +put line 0 1 +go = true +while go +n = ulong 0 +while and go lt n 999999 +tok +if eq get tk 0 3 +go = false +else +if ne get tk 0 0 +if and eq get tk 0 1 eq get tw 0 28262 +put dtoken 0 get ts 0 +s_fn +else +if and eq get tk 0 1 eq get tw 0 127970521019507 +s_struct +else +skipnl +end +end +end +end +n = add n 1 +end +end +put scanning 0 0 +put cur 0 0 +put line 0 1 +put nn 0 0 +put curfn 0 0 +put curret 0 0 +put npar 0 0 +put nslot 0 0 +put held 0 0 +end + +note ======== R6 structs (omc only; om4 stays the parent that rebuilds this file) ======== +note A struct is 8-byte cells, declaration order, no padding (OSC-2). new is a stack slot, given +note back at ret, like a local array. There is no free (decision 24). Field scale: cell << (3 - tlog) +note so a typed store lands on cell * 8. Pack of struct is 127970521019507 (Wolfram, little-endian). + +note findstruct: packed name -> index + 1, or 0 +fn findstruct w ulong to ulong +i = ulong 0 +n = get nst 0 +while lt i n +if eq get st_name i w +ret add i 1 +end +i = add i 1 +end +ret 0 +end + +note findfield: struct index, packed field name -> field-table index + 1, or 0 +fn findfield si ulong w ulong to ulong +fo = ulong get st_foff si +nfd = ulong get st_nf si +i = ulong 0 +while lt i nfd +j = add fo i +if eq get sf_name j w +ret add j 1 +end +i = add i 1 +end +ret 0 +end + +note field_dup: 1 if w is already a field of the struct being read (fields fo .. nsf) +fn field_dup fo ulong w ulong to ulong +i = fo +e = get nsf 0 +while lt i e +if eq get sf_name i w +ret 1 +end +i = add i 1 +end +ret 0 +end + +note s_field: the current word is a field name of struct w. Returns the cell count after this field. +fn s_field w ulong fo ulong cells ulong to ulong +if ne kw get tw 0 0 +fail 16 +end +if gt get tl 0 8 +fail 13 +end +fw = get tw 0 +if eq fw w +fail 10 +end +if ne findstruct fw 0 +fail 10 +end +if ne field_dup fo fw 0 +fail 10 +end +t = typeword +ln = ulong 0 +p = get cur 0 +ln0 = get line 0 +tok +if eq get tk 0 2 +ln = get tw 0 +if ne get tbig 0 0 +fail 14 +end +if or eq ln 0 gt ln 64 +fail 14 +end +else +put cur 0 p +put line 0 ln0 +end +addc = ulong 1 +if ne ln 0 +addc = ln +end +if gt add cells addc 64 +fail 14 +end +put sf_name get nsf 0 fw +put sf_type get nsf 0 uchar t +put sf_len get nsf 0 uchar ln +put sf_off get nsf 0 uchar cells +put nsf 0 add get nsf 0 1 +ret add cells addc +end + +note s_struct: struct Name (field type [len])* end. Before any fn (namescan). 1..16 fields, <= 64 cells. +fn s_struct to void +if ne get nf 0 0 +fail 9 +end +tok +if ne get tk 0 1 +fail 16 +end +if gt get tl 0 8 +fail 13 +end +if ne kw get tw 0 0 +fail 16 +end +w = get tw 0 +if ne findstruct w 0 +fail 10 +end +if ne findfn w get tl 0 get ts 0 0 +fail 10 +end +if ge get nst 0 16 +fail 14 +end +sid = get nst 0 +fo = get nsf 0 +cells = ulong 0 +nfld = ulong 0 +go = true +while go +tok +if eq get tk 0 0 +fail 4 +end +if ne get tk 0 1 +fail 16 +end +if eq kw get tw 0 66 +go = false +else +if ge nfld 16 +fail 14 +end +cells = s_field w fo cells +nfld = add nfld 1 +end +end +if eq nfld 0 +fail 16 +end +put st_name sid w +put st_nf sid uchar nfld +put st_cells sid uchar cells +put st_foff sid uchar fo +put nst 0 add sid 1 +eol +end + +note peek_struct: if the next word is a struct name, consume it and return index + 1; else rewind +fn peek_struct to ulong +p = get cur 0 +ln = get line 0 +tok +if ne get tk 0 1 +put cur 0 p +put line 0 ln +ret 0 +end +sid = findstruct get tw 0 +if eq sid 0 +put cur 0 p +put line 0 ln +ret 0 +end +ret sid +end + +note fn_p_st: parameter pw is view (k 2, name kind 8) or edit (k 3, name kind 7). fn_pk is 6 or 7. +fn fn_p_st f ulong np ulong pw ulong sid ulong k ulong to void +si = sub sid 1 +t = add si 16 +ln = ulong get st_cells si +sk = add k 4 +if eq k 2 +addname pw poolc np t ln 8 0 +else +addname pw poolc np t ln 7 0 +end +p = add mul f 6 np +put fn_pt p uchar t +put fn_pl p ln +put fn_pk p uchar sk +end + +note sa_new: name = new . Rewind unless the next word is a struct name. +fn sa_new w ulong to void +p = get cur 0 +ln = get line 0 +tok +sid = ulong 0 +if eq get tk 0 1 +sid = findstruct get tw 0 +end +if ne sid 0 +sa_st w sid +ret +end +put cur 0 p +put line 0 ln +sa_arr w +end + +note st_read: one value per field, saved in svk/svv/svt. An array field takes one value. +fn st_read si ulong to void +fo = ulong get st_foff si +nfd = ulong get st_nf si +i = ulong 0 +while lt i nfd +ft = ulong get sf_type add fo i +rdval 0 ft 255 0 +if ne get rt 0 ft +fail 7 +end +put svk i get rk 0 +put svv i get rv 0 +put svt i get rt 0 +i = add i 1 +end +end + +note st_store: STR of v at cell, scaled so the typed store lands on cell * 8. ADD is not used; the +note index register holds cell << (3 - tlog). STR register-offset is the STOP table (om4). +fn st_store base ulong idx ulong cell ulong t ulong v ulong to void +matconst idx shl cell sub 3 tlog t +put ea_b 0 base +put ea_i 0 idx +stel t v +end + +note st_ixreg: runtime element index iv, field length fl, cell offset off. CMP + B.HS trap 3 +note (elemaddr, C6.2.96 / C6.2.34), then ADD Xidx, Xiv, #off (C6.2.5, base word 2432696320) and +note LSL by 3 - tlog (bo_lsl) so the STOP store lands on (off + i) * 8. +fn st_ixreg idx ulong iv ulong off ulong fl ulong t ulong to void +emit or or 4043309087 shl fl 10 shl iv 5 +trapc 2 3 +emit or or or 2432696320 idx shl iv 5 shl off 10 +sh = sub 3 tlog t +if ne sh 0 +bo_lsl idx sh idx +end +end + +note st_ld: LDR of type t from base + idx into dst (or a new register). LDOP table, as vt_get. +fn st_ld base ulong idx ulong t ulong dst ulong to void +rd = destreg dst +w = or ldop t rd +emit or or w shl base 5 shl idx 16 +put rk 0 1 +put rv 0 rd +put rt 0 t +end + +note st_write1: store field j (value saved at sv* i) into the struct at base. +fn st_write1 base ulong tmp ulong idx ulong j ulong i ulong to void +ft = ulong get sf_type j +fl = ulong get sf_len j +off = ulong get sf_off j +force get svk i get svv i get svt i tmp +if eq fl 0 +st_store base idx off ft tmp +else +k = ulong 0 +while lt k fl +st_store base idx add off k ft tmp +k = add k 1 +end +end +end + +note st_write: store each field value. An array field is filled with its one value. +fn st_write base ulong tmp ulong idx ulong si ulong to void +fo = ulong get st_foff si +nfd = ulong get st_nf si +i = ulong 0 +while lt i nfd +st_write1 base tmp idx add fo i i +i = add i 1 +end +end + +note sa_st: p = new S v1 .. vn. Stack slot of the cell count, 16-byte aligned, outermost block only. +fn sa_st w ulong sid ulong to void +if ne get nb 0 0 +fail 9 +end +si = sub sid 1 +cells = ulong get st_cells si +by = shl shr add shl cells 3 15 4 4 +s = add get stkbytes 0 by +if gt s 4194304 +fail 23 +end +put stkbytes 0 s +r = alloc +put held 0 get nslot 0 +st_read si +spsub by +stkchk +emit or 2432697312 r +tmp = alloc +idx = alloc +st_write r tmp idx si +addname w r add si 16 cells 6 0 +end + +note vt_fget_go: field j of struct name e. Scalar, or an index then the element. +fn vt_fget_go e ulong dst ulong j ulong to void +fl = ulong get sf_len j +ft = ulong get sf_type j +off = ulong get sf_off j +base = ulong get nm_reg sub e 1 +idx = alloc +if eq fl 0 +st_store_ld base idx off ft dst +else +rdval 0 5 255 0 +if eq get rt 0 1 +fail 7 +end +if eq get rk 0 3 +if ge get rv 0 fl +fail 21 +end +st_store_ld base idx add off get rv 0 ft dst +else +if ne get rk 0 1 +fail 7 +end +st_ixreg idx get rv 0 off fl ft +st_ld base idx ft dst +end +end +end + +note vt_fget: get p f, or get p f i for an array field. Kind 6 own, 7 edit, 8 view; all may be read. +fn vt_fget e ulong dst ulong to void +i = sub e 1 +tok +if ne get tk 0 1 +fail 16 +end +if gt get tl 0 8 +fail 13 +end +si = sub ulong get nm_type i 16 +fid = findfield si get tw 0 +if eq fid 0 +fail 3 +end +vt_fget_go e dst sub fid 1 +end + +note st_store_ld: constant cell, then load. Split out so vt_fget stays under 16 registers. +fn st_store_ld base ulong idx ulong cell ulong t ulong dst ulong to void +matconst idx shl cell sub 3 tlog t +st_ld base idx t dst +end + +note s_putf_go: field j of struct name e. Read the value (and the index, if an array field) and store. +fn s_putf_go e ulong j ulong to void +fl = ulong get sf_len j +ft = ulong get sf_type j +off = ulong get sf_off j +base = ulong get nm_reg sub e 1 +if ne fl 0 +rdval 0 5 255 0 +if eq get rt 0 1 +fail 7 +end +put svk 0 get rk 0 +put svv 0 get rv 0 +put svt 0 get rt 0 +end +rdval 0 ft 255 0 +if ne get rt 0 ft +fail 7 +end +v = matreg get rk 0 get rv 0 get rt 0 +idx = alloc +if eq fl 0 +st_store base idx off ft v +else +s_putf_ix base idx v off fl ft +end +eol +end + +note s_putf: put p f v, or put p f i v. A view struct is error 20. +fn s_putf e ulong to void +i = sub e 1 +if eq ulong get nm_kind i 8 +fail 20 +end +tok +if ne get tk 0 1 +fail 16 +end +if gt get tl 0 8 +fail 13 +end +si = sub ulong get nm_type i 16 +fid = findfield si get tw 0 +if eq fid 0 +fail 3 +end +s_putf_go e sub fid 1 +end + +note s_putf_ix: the index was saved in svk/svv/svt before the value was read +fn s_putf_ix base ulong idx ulong v ulong off ulong fl ulong ft ulong to void +ik = get svk 0 +iv = get svv 0 +if eq get svt 0 1 +fail 7 +end +if eq ik 3 +if ge iv fl +fail 21 +end +st_store base idx add off iv ft v +else +if ne ik 1 +fail 7 +end +st_ixreg idx iv off fl ft +put ea_b 0 base +put ea_i 0 idx +stel ft v +end +end + +note ca_st_ok: read one struct argument of parameter i of function f. Returns the name entry. +fn ca_st_ok f ulong i ulong to ulong +md = ulong 0 +aa_word +w = get tw 0 +c = kw w +if ne c 0 +if or lt c 57 gt c 58 +fail 16 +end +md = c +aa_word +w = get tw 0 +end +e = findname w +if eq e 0 +fail 3 +end +ni = sub e 1 +k = ulong get nm_kind ni +if lt k 6 +fail 7 +end +p = add mul sub f 1 6 i +pk = ulong get fn_pk p +if eq pk 7 +if eq md 57 +fail 20 +end +if eq k 8 +fail 20 +end +else +if eq md 58 +fail 7 +end +end +if ne ulong get nm_type ni ulong get fn_pt p +fail 7 +end +ret e +end + +note ca_dist: the same struct name passed twice in one call is error 19. +fn ca_dist cb ulong i ulong e ulong to void +j = ulong 0 +while lt j i +if eq get fr add add cb mul j 3 2 e +fail 19 +end +j = add j 1 +end +end + +note ca_st: a struct argument. edit (fn_pk 7) needs own or edit; view takes any. Same struct. +fn ca_st f ulong i ulong cb ulong to void +e = ca_st_ok f i +ca_dist cb i e +q = add cb mul i 3 +put fr q 5 +put fr add q 1 ulong get nm_reg sub e 1 +put fr add q 2 e +end + +note Definition export SHA256 arithmetic is reused from source-aware/vendor/sha256.om +note at cd2c41f3c697524629585b2a228e2f0ab5b99c45, SHA256 +note 12d492b5f99b47b1e525067e1660c7cedbf6b414032cfc8b7e174919a28c052c. +note Only identifiers are namespaced; the AGPL-3.0-or-later notice is retained. +note SPDX-License-Identifier: AGPL-3.0-or-later +note Exact native TRN1 SHA256 functions; see NOTICE. Buffer declarations bounded for this caller. +global dBuf uchar 8192 +global dH uint 8 +global dVv uint 8 +global dW uint 64 +global dK uint 64 +global dHb uchar 64 +global dHs ulong 2 +global dHash uchar 32 +fn drotate x uint n uint to uint +ret or shr x n shl x sub 32 n +end + +fn dround i ulong to void +e = get dVv 4 +a = get dVv 0 +s = xor xor drotate e 6 drotate e 11 drotate e 25 +c = xor and e get dVv 5 and not e get dVv 6 +t = add add get dVv 7 s add c add get dK i get dW i +s = xor xor drotate a 2 drotate a 13 drotate a 22 +c = and a get dVv 1 +c = xor c and a get dVv 2 +c = xor c and get dVv 1 get dVv 2 +u = add s c +put dVv 7 get dVv 6 +put dVv 6 get dVv 5 +put dVv 5 e +put dVv 4 add get dVv 3 t +put dVv 3 get dVv 2 +put dVv 2 get dVv 1 +put dVv 1 a +put dVv 0 add t u +end + +fn dblock to void +for i ulong 16 +x = uint 0 +for j ulong 4 +x = or shl x 8 uint get dHb add mul i 4 j +end +put dW i x +end +for j ulong 48 +i = add j 16 +x = get dW sub i 15 +y = get dW sub i 2 +s = xor xor drotate x 7 drotate x 18 shr x 3 +t = xor xor drotate y 17 drotate y 19 shr y 10 +put dW i add add get dW sub i 16 s add get dW sub i 7 t +end +for i ulong 8 +put dVv i get dH i +end +for i ulong 64 +dround i +end +for i ulong 8 +put dH i add get dH i get dVv i +end +end + +fn dhinit to void +put dH 0 1779033703 +put dH 1 3144134277 +put dH 2 1013904242 +put dH 3 2773480762 +put dH 4 1359893119 +put dH 5 2600822924 +put dH 6 528734635 +put dH 7 1541459225 +put dHs 0 0 +put dHs 1 0 +end + +fn dhbyte c uchar to void +p = get dHs 0 +put dHb p c +p = add p 1 +put dHs 1 add get dHs 1 1 +if eq p 64 +dblock +p = 0 +end +put dHs 0 p +end + +fn dupdate off ulong count ulong to void +for i ulong count +dhbyte get dBuf add off i +end +end + +fn dhfinish to void +bits = mul get dHs 1 8 +dhbyte 128 +while ne get dHs 0 56 +dhbyte 0 +end +for i ulong 8 +dhbyte uchar and shr bits mul sub 7 i 8 255 +end +for i ulong 32 +x = get dH div i 4 +put dHash i uchar and shr x uint mul sub 3 rem i 4 8 255 +end +end + +fn dconst to void +put dK 0 1116352408 +put dK 1 1899447441 +put dK 2 3049323471 +put dK 3 3921009573 +put dK 4 961987163 +put dK 5 1508970993 +put dK 6 2453635748 +put dK 7 2870763221 +put dK 8 3624381080 +put dK 9 310598401 +put dK 10 607225278 +put dK 11 1426881987 +put dK 12 1925078388 +put dK 13 2162078206 +put dK 14 2614888103 +put dK 15 3248222580 +put dK 16 3835390401 +put dK 17 4022224774 +put dK 18 264347078 +put dK 19 604807628 +put dK 20 770255983 +put dK 21 1249150122 +put dK 22 1555081692 +put dK 23 1996064986 +put dK 24 2554220882 +put dK 25 2821834349 +put dK 26 2952996808 +put dK 27 3210313671 +put dK 28 3336571891 +put dK 29 3584528711 +put dK 30 113926993 +put dK 31 338241895 +put dK 32 666307205 +put dK 33 773529912 +put dK 34 1294757372 +put dK 35 1396182291 +put dK 36 1695183700 +put dK 37 1986661051 +put dK 38 2177026350 +put dK 39 2456956037 +put dK 40 2730485921 +put dK 41 2820302411 +put dK 42 3259730800 +put dK 43 3345764771 +put dK 44 3516065817 +put dK 45 3600352804 +put dK 46 4094571909 +put dK 47 275423344 +put dK 48 430227734 +put dK 49 506948616 +put dK 50 659060556 +put dK 51 883997877 +put dK 52 958139571 +put dK 53 1322822218 +put dK 54 1537002063 +put dK 55 1747873779 +put dK 56 1955562222 +put dK 57 2024104815 +put dK 58 2227730452 +put dK 59 2361852424 +put dK 60 2428436474 +put dK 61 2756734187 +put dK 62 3204031479 +put dK 63 3329325298 +end + + +note Detect framed mode early so bounded framing failures remain structured. +fn ddetect to void +if lt get inlen 0 5 +ret +end +if ne get inp 0 79 +ret +end +if ne get inp 1 77 +ret +end +if ne get inp 2 68 +ret +end +if ne get inp 3 69 +ret +end +if ne get inp 4 70 +ret +end +put dmode 0 1 +if gt get inlen 0 66264 +fail 81 +end +end + +fn dget32 p ulong to ulong +v = ulong 0 +for i ulong 4 +v = or v shl ulong get inp add p i mul i 8 +end +ret v +end + +note Metadata identifies a corpus coordinate, not an authorization grant. +fn dframe to void +if eq get dmode 0 0 +ret +end +if lt get inlen 0 24 +fail 80 +end +if ne get inp 5 48 +fail 80 +end +if ne get inp 6 48 +fail 80 +end +if ne get inp 7 49 +fail 80 +end +r = dget32 8 +p = dget32 12 +v = dget32 16 +n = dget32 20 +if or eq r 0 gt r 128 +fail 82 +end +if or eq p 0 gt p 512 +fail 82 +end +if and ne v 40 ne v 64 +fail 82 +end +if or eq n 0 gt n 65536 +fail 81 +end +m = add add r p v +if ne add add 24 m n get inlen 0 +fail 80 +end +for i ulong m +b = get inp add 24 i +if or lt b 33 gt b 126 +fail 82 +end +put dmeta i b +end +for i ulong v +b = get dmeta add add r p i +if not or and ge b 48 le b 57 and ge b 97 le b 102 +fail 82 +end +end +put drepo 0 r +put dpath 0 p +put drev 0 v +for i ulong n +put inp i get inp add add 24 m i +end +put inlen 0 n +dconst +dhinit +for i ulong n +dhbyte get inp i +end +dhfinish +for i ulong 32 +put dsrcsha i get dHash i +end +end + +note LE u32 hashing is length-delimited, domain-separated, and independent of revision/order. +fn dh32 v ulong to void +for i ulong 4 +dhbyte uchar and shr v mul i 8 255 +end +end + +fn did f ulong to void +dhinit +dhbyte 79 +dhbyte 109 +dhbyte 68 +dhbyte 101 +dhbyte 102 +dhbyte 73 +dhbyte 100 +dhbyte 49 +dh32 get drepo 0 +for i ulong get drepo 0 +dhbyte 0 +end +dh32 get dpath 0 +for i ulong get dpath 0 +dhbyte get dmeta add get drepo 0 i +end +dh32 1 +dh32 get fn_nmlen f +for i ulong get fn_nmlen f +dhbyte get inp add get fn_off f i +end +dhfinish +end + +fn dheader code ulong count ulong to void +put oc 0 0 +emitb 79 +emitb 77 +emitb 68 +emitb 69 +emitb 70 +emitb 82 +emitb 48 +emitb 49 +emit 1 +emit code +emit get inlen 0 +emit count +for i ulong 32 +emitb get dsrcsha i +end +end + +note A refusal has no records. Only structured framing bytes are exposed on stdout. +fn derror code ulong to void +dheader code 0 +p = ulong 0 +while lt p 56 +n = write 1 out p sub 56 p +if le n 0 +exit int 2 +end +p = add p ulong n +end +exit int code +end + +note Export only after the ordinary complete compiler passes and call resolution succeed. +fn dexport to void +dheader 0 get nf 0 +for f ulong get nf 0 +emit 1 +emit get dstart f +emit get dend f +emit get fn_nmlen f +did f +for i ulong 32 +emitb get dHash i +end +for i ulong get fn_nmlen f +emitb get inp add get fn_off f i +end +end +writeout 0 +end + +note main: read all of stdin +note (8 MiB at most, error 14; a read error is 1), find the mode, then one +note statement per line from output byte 180 (om4 START .. STMT) +fn main to int +off = ulong 0 +go = true +while go +m = ulong 0 +while and go lt m 999999 +if ge off len inp +fail 14 +end +n = read 0 inp off sub len inp off +if eq n 0 +go = false +else +if lt n 0 +fail 1 +end +off = add off ulong n +put inlen 0 off +ddetect +end +m = add m 1 +end +end +put inlen 0 off +dframe +prescan +namescan +put oc 0 180 +put line 0 1 +done = false +while not done +m = ulong 0 +while and not done lt m 999999 +if ne stmt 0 +done = true +end +m = add m 1 +end +end +ret 0 +end diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case0.exit b/evidence/ECOSYSTEM660/definitions/mutant1.case0.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant1.case0.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case0.response b/evidence/ECOSYSTEM660/definitions/mutant1.case0.response new file mode 100644 index 000000000..3739036ca Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant1.case0.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case0.stderr b/evidence/ECOSYSTEM660/definitions/mutant1.case0.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case1.exit b/evidence/ECOSYSTEM660/definitions/mutant1.case1.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant1.case1.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case1.response b/evidence/ECOSYSTEM660/definitions/mutant1.case1.response new file mode 100644 index 000000000..e5a6ddb39 Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant1.case1.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case1.stderr b/evidence/ECOSYSTEM660/definitions/mutant1.case1.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case10.exit b/evidence/ECOSYSTEM660/definitions/mutant1.case10.exit new file mode 100644 index 000000000..d15a2cc44 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant1.case10.exit @@ -0,0 +1 @@ +80 diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case10.response b/evidence/ECOSYSTEM660/definitions/mutant1.case10.response new file mode 100644 index 000000000..8f9fdd1cf Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant1.case10.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case10.stderr b/evidence/ECOSYSTEM660/definitions/mutant1.case10.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case11.exit b/evidence/ECOSYSTEM660/definitions/mutant1.case11.exit new file mode 100644 index 000000000..d88e31369 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant1.case11.exit @@ -0,0 +1 @@ +81 diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case11.response b/evidence/ECOSYSTEM660/definitions/mutant1.case11.response new file mode 100644 index 000000000..a87d08dfe Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant1.case11.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case11.stderr b/evidence/ECOSYSTEM660/definitions/mutant1.case11.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case12.exit b/evidence/ECOSYSTEM660/definitions/mutant1.case12.exit new file mode 100644 index 000000000..d15a2cc44 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant1.case12.exit @@ -0,0 +1 @@ +80 diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case12.response b/evidence/ECOSYSTEM660/definitions/mutant1.case12.response new file mode 100644 index 000000000..8dbb1ca7e Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant1.case12.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case12.stderr b/evidence/ECOSYSTEM660/definitions/mutant1.case12.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case2.exit b/evidence/ECOSYSTEM660/definitions/mutant1.case2.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant1.case2.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case2.response b/evidence/ECOSYSTEM660/definitions/mutant1.case2.response new file mode 100644 index 000000000..df80e0193 Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant1.case2.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case2.stderr b/evidence/ECOSYSTEM660/definitions/mutant1.case2.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case3.exit b/evidence/ECOSYSTEM660/definitions/mutant1.case3.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant1.case3.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case3.response b/evidence/ECOSYSTEM660/definitions/mutant1.case3.response new file mode 100644 index 000000000..67c48d364 Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant1.case3.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case3.stderr b/evidence/ECOSYSTEM660/definitions/mutant1.case3.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case4.exit b/evidence/ECOSYSTEM660/definitions/mutant1.case4.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant1.case4.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case4.response b/evidence/ECOSYSTEM660/definitions/mutant1.case4.response new file mode 100644 index 000000000..2e0062e09 Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant1.case4.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case4.stderr b/evidence/ECOSYSTEM660/definitions/mutant1.case4.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case5.exit b/evidence/ECOSYSTEM660/definitions/mutant1.case5.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant1.case5.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case5.response b/evidence/ECOSYSTEM660/definitions/mutant1.case5.response new file mode 100644 index 000000000..cb805df24 Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant1.case5.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case5.stderr b/evidence/ECOSYSTEM660/definitions/mutant1.case5.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case6.exit b/evidence/ECOSYSTEM660/definitions/mutant1.case6.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant1.case6.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case6.response b/evidence/ECOSYSTEM660/definitions/mutant1.case6.response new file mode 100644 index 000000000..3739036ca Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant1.case6.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case6.stderr b/evidence/ECOSYSTEM660/definitions/mutant1.case6.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case7.exit b/evidence/ECOSYSTEM660/definitions/mutant1.case7.exit new file mode 100644 index 000000000..f599e28b8 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant1.case7.exit @@ -0,0 +1 @@ +10 diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case7.response b/evidence/ECOSYSTEM660/definitions/mutant1.case7.response new file mode 100644 index 000000000..758eefd64 Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant1.case7.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case7.stderr b/evidence/ECOSYSTEM660/definitions/mutant1.case7.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case8.exit b/evidence/ECOSYSTEM660/definitions/mutant1.case8.exit new file mode 100644 index 000000000..7f8f011eb --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant1.case8.exit @@ -0,0 +1 @@ +7 diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case8.response b/evidence/ECOSYSTEM660/definitions/mutant1.case8.response new file mode 100644 index 000000000..4febc74b6 Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant1.case8.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case8.stderr b/evidence/ECOSYSTEM660/definitions/mutant1.case8.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case9.exit b/evidence/ECOSYSTEM660/definitions/mutant1.case9.exit new file mode 100644 index 000000000..60d3b2f4a --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant1.case9.exit @@ -0,0 +1 @@ +15 diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case9.response b/evidence/ECOSYSTEM660/definitions/mutant1.case9.response new file mode 100644 index 000000000..1417f4275 Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant1.case9.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.case9.stderr b/evidence/ECOSYSTEM660/definitions/mutant1.case9.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.check.exit b/evidence/ECOSYSTEM660/definitions/mutant1.check.exit new file mode 100644 index 000000000..d00491fd7 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant1.check.exit @@ -0,0 +1 @@ +1 diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.check.stderr b/evidence/ECOSYSTEM660/definitions/mutant1.check.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.check.stdout b/evidence/ECOSYSTEM660/definitions/mutant1.check.stdout new file mode 100644 index 000000000..d8af17b0d --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant1.check.stdout @@ -0,0 +1 @@ +947 14 diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.compile.exit b/evidence/ECOSYSTEM660/definitions/mutant1.compile.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant1.compile.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.compile.stderr b/evidence/ECOSYSTEM660/definitions/mutant1.compile.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant1.om b/evidence/ECOSYSTEM660/definitions/mutant1.om new file mode 100644 index 000000000..3360df0d3 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant1.om @@ -0,0 +1,4165 @@ +note omc: the Omega compiler written in Omega (the om4 subset). Reads Omegese on stdin, writes a runnable +note AArch64 Linux program (or bare function words) on stdout. Built first by om4; its codegen matches om4 +note byte for byte, so om4(X) == omc(X) on every program (seed chain rung 5, ledger L408). +note All compiler state lives in fixed global pools (decision 24: no heap). Every working value is a ulong +note (raw 64 bits) so the language's checked conversions never fire on om4's untyped-register logic. + +note ---- input, output, token ---- +global inp uchar 8388608 +global inlen ulong 1 +global cur ulong 1 +global line ulong 1 +global tk ulong 1 +global tw ulong 1 +global tl ulong 1 +global ts ulong 1 +global tbig ulong 1 +global out uchar 8388608 +global oc ulong 1 + +note Definition export v1 is an opt-in framed compiler result, never a second parser. +global dmode ulong 1 +global dmeta uchar 704 +global drepo ulong 1 +global dpath ulong 1 +global drev ulong 1 +global dstart ulong 512 +global dend ulong 512 +global dtoken ulong 1 +global dsrcsha uchar 32 + +note ---- name table (1024 names in scope): packed name, register, type, length, kind, address ---- +global nm_name ulong 1024 +global nm_reg uchar 1024 +global nm_type uchar 1024 +global nm_len ulong 1024 +global nm_kind uchar 1024 +global nm_addr ulong 1024 +global nn ulong 1 + +note ---- function table (512): name, address (byte offset in out), return type, parameter count, +note per-parameter type/length/kind (6 each), name length, name offset in the input ---- +global fn_name ulong 512 +global fn_addr ulong 512 +global fn_ret uchar 512 +global fn_np uchar 512 +global fn_pt uchar 3072 +global fn_pl ulong 3072 +global fn_pk uchar 3072 +global fn_nmlen ulong 512 +global fn_off ulong 512 +global nf ulong 1 +global lastfn ulong 1 +global scanning ulong 1 +global ncalls ulong 1 +global callsite ulong 65536 +global callfrom ulong 65536 +global callto ulong 65536 +global settled uchar 512 + + +note ---- compiler state ---- +global npar ulong 1 +global held ulong 1 +global nslot ulong 1 +global curret ulong 1 +global progmode ulong 1 +global nglob ulong 1 +global stkbytes ulong 1 +global dead ulong 1 +global poolb ulong 1 + +note ---- structs (16) and fields (256). R6. nm_type 16+index, kind 6 own, 7 edit, 8 view ---- +global st_name ulong 16 +global st_nf uchar 16 +global st_cells uchar 16 +global st_foff uchar 16 +global nst ulong 1 +global sf_name ulong 256 +global sf_type uchar 256 +global sf_len uchar 256 +global sf_off uchar 256 +global nsf ulong 1 +global svk ulong 16 +global svv ulong 16 +global svt ulong 16 + +note ======== leaf helpers ======== + +note poolc: the i-th register of the pool x0..x6, x8..x15, x17 (x7 is the runtime, x16 scratch) +fn poolc i ulong to ulong +if lt i 7 +ret i +end +if lt i 15 +ret add i 1 +end +ret 17 +end + +note ---- error reporting ---- +global msg uchar 64 +global mc ulong 1 + +fn mputb b uchar to void +m = get mc 0 +put msg m b +put mc 0 add m 1 +end + +fn mputn v ulong to void +d = new uchar 20 0 +i = ulong 0 +x = v +put d 0 uchar add rem x 10 48 +x = div x 10 +i = add i 1 +while gt x 0 +put d i uchar add rem x 10 48 +x = div x 10 +i = add i 1 +end +j = i +while gt j 0 +j = sub j 1 +mputb get d j +end +end + +note fail: write "omc: line N: error E" to stderr (fd 2) and exit with the code +fn fail code ulong to void +if ne get dmode 0 0 +derror code +end +put mc 0 0 +mputb 111 +mputb 109 +mputb 99 +mputb 58 +mputb 32 +mputb 108 +mputb 105 +mputb 110 +mputb 101 +mputb 32 +mputn get line 0 +mputb 58 +mputb 32 +mputb 101 +mputb 114 +mputb 114 +mputb 111 +mputb 114 +mputb 32 +mputn code +mputb 10 +w = write 2 msg 0 get mc 0 +exit int code +end + +note emitb / emit: one byte / one 32-bit word (little-endian) to the output; error 14 when it is full +note (om4 EMIT, EMITB: the 8 MiB output area) +fn emitb b uchar to void +o = get oc 0 +if ge o 8388608 +fail 14 +end +put out o b +put oc 0 add o 1 +end + +fn emit w ulong to void +if ge get oc 0 8388608 +fail 14 +end +emitb uchar and w 255 +emitb uchar and shr w 8 255 +emitb uchar and shr w 16 255 +emitb uchar and shr w 24 255 +end + +note tok_num: the word at [ts,cur) is [-]decimal, at most 20 digits, from -2^63 to 2^64 - 1 (error 6 +note bad number, 8 out of range). tw = its raw 64 bits (a negative one as two's complement); tbig = 1 +note when it is 2^63 or more (only a ulong holds it), else 0. As om4's TK_NUM. +fn tok_num to void +p = get ts 0 +e = get cur 0 +minus = false +if eq get inp p 45 +minus = true +p = add p 1 +end +ndig = sub e p +if eq ndig 0 +fail 6 +end +if gt ndig 20 +fail 6 +end +v = ulong 0 +lim = ulong 1844674407370955161 +i = p +while lt i e +d = sub ulong get inp i 48 +if gt d 9 +fail 6 +end +if gt v lim +fail 8 +end +if and eq v lim gt d 5 +fail 8 +end +v = add mul v 10 d +i = add i 1 +end +half = shl ulong 1 63 +put tbig 0 0 +if minus +if gt v half +fail 8 +end +put tw 0 sub ulong 0 v +else +if ge v half +put tbig 0 1 +end +put tw 0 v +end +put tk 0 2 +end + +note tok_text: a text literal starting at the opening quote. tw = first byte offset, tl = source length +note (escapes not yet decoded). Ends at an unescaped '"' on the same line, followed by a blank/end. Err 22. +note (Loops over the input are two loops, the inner under 1000000 passes: om4 has no pass limit.) +fn tok_text to void +put cur 0 add get cur 0 1 +put tw 0 get cur 0 +go = true +while go +n = ulong 0 +while and go lt n 999999 +if ge get cur 0 get inlen 0 +fail 22 +end +b = get inp get cur 0 +if eq b 10 +fail 22 +end +if eq b 34 +go = false +else +put cur 0 add get cur 0 1 +if eq b 92 +if ge get cur 0 get inlen 0 +fail 22 +end +if eq get inp get cur 0 10 +fail 22 +end +put cur 0 add get cur 0 1 +end +end +n = add n 1 +end +end +put tl 0 sub get cur 0 get tw 0 +put cur 0 add get cur 0 1 +put tk 0 4 +if lt get cur 0 get inlen 0 +if gt get inp get cur 0 32 +fail 22 +end +end +end + +note tok2: a word at cur with first byte c; packs 8 bytes into tw, sets tl and ts. A '"' is a text; a +note first byte '-' or a digit is a number. +fn tok2 c uchar to void +if eq c 34 +tok_text +ret +end +put ts 0 get cur 0 +w = ulong 0 +sh = ulong 0 +n = ulong 0 +go = true +while go +m = ulong 0 +while and go lt m 999999 +if ge get cur 0 get inlen 0 +go = false +else +b = get inp get cur 0 +if le b 32 +go = false +else +if lt n 8 +w = or w shl ulong b sh +sh = add sh 8 +end +n = add n 1 +put cur 0 add get cur 0 1 +end +end +m = add m 1 +end +end +put tw 0 w +put tl 0 n +f = get inp get ts 0 +isnum = false +if eq f 45 +isnum = true +end +if and ge f 48 le f 57 +isnum = true +end +if isnum +tok_num +else +put tk 0 1 +end +end + +note tok: next word, skipping blanks (space, tab, carriage return); newline is end of line (kind 0) and +note bumps the line number; another byte below 32 is error 16; the end of the input is kind 3. om4 TOK. +fn tok to void +go = true +while go +n = ulong 0 +while and go lt n 999999 +if ge get cur 0 get inlen 0 +go = false +else +c = get inp get cur 0 +if or or eq c 32 eq c 9 eq c 13 +put cur 0 add get cur 0 1 +else +if eq c 10 +put cur 0 add get cur 0 1 +put line 0 add get line 0 1 +put tk 0 0 +ret +end +if lt c 32 +fail 16 +end +tok2 c +ret +end +end +n = add n 1 +end +end +put tk 0 3 +end + +note ======== keyword lookup (om4 KWTAB, generated by seed/omc/genkw.awk) ======== +fn kw w ulong to ulong +if eq w 1819242338 +ret 1 +end +if eq w 491260502901 +ret 2 +end +if eq w 14453 +ret 2 +end +if eq w 128034844210037 +ret 3 +end +if eq w 3551605 +ret 3 +end +if eq w 1953393013 +ret 4 +end +if eq w 3289973 +ret 4 +end +if eq w 444234427509 +ret 5 +end +if eq w 3421813 +ret 5 +end +if eq w 1702132066 +ret 6 +end +if eq w 14441 +ret 6 +end +if eq w 500136110195 +ret 7 +end +if eq w 3551593 +ret 7 +end +if eq w 7630441 +ret 8 +end +if eq w 3289961 +ret 8 +end +if eq w 1735290732 +ret 9 +end +if eq w 3421801 +ret 9 +end +if eq w 6579297 +ret 33 +end +if eq w 6452595 +ret 34 +end +if eq w 7107949 +ret 35 +end +if eq w 7760228 +ret 36 +end +if eq w 7169394 +ret 37 +end +if eq w 6581857 +ret 38 +end +if eq w 29295 +ret 39 +end +if eq w 7499640 +ret 40 +end +if eq w 7104627 +ret 41 +end +if eq w 7497843 +ret 42 +end +if eq w 29029 +ret 43 +end +if eq w 25966 +ret 44 +end +if eq w 29804 +ret 45 +end +if eq w 25964 +ret 46 +end +if eq w 29799 +ret 47 +end +if eq w 25959 +ret 48 +end +if eq w 6776174 +ret 49 +end +if eq w 7630702 +ret 50 +end +if eq w 7628135 +ret 51 +end +if eq w 7234924 +ret 52 +end +if eq w 1684104562 +ret 53 +end +if eq w 435744764535 +ret 54 +end +if eq w 1702195828 +ret 55 +end +if eq w 435728179558 +ret 56 +end +if eq w 2003134838 +ret 57 +end +if eq w 1953064037 +ret 58 +end +if eq w 28262 +ret 64 +end +if eq w 28532 +ret 65 +end +if eq w 6581861 +ret 66 +end +if eq w 26217 +ret 67 +end +if eq w 1702063205 +ret 68 +end +if eq w 435610544247 +ret 69 +end +if eq w 431349919586 +ret 70 +end +if eq w 7499622 +ret 71 +end +if eq w 7628146 +ret 72 +end +if eq w 61 +ret 73 +end +if eq w 40 +ret 74 +end +if eq w 41 +ret 75 +end +if eq w 1684631414 +ret 76 +end +if eq w 119165519096935 +ret 78 +end +if eq w 1954047348 +ret 79 +end +if eq w 7632240 +ret 80 +end +if eq w 1701147238 +ret 81 +end +if eq w 1953069157 +ret 82 +end +if eq w 1702129518 +ret 83 +end +if eq w 7824750 +ret 84 +end +if eq w 461195539042 +ret 77 +end +if eq w 1885434484 +ret 77 +end +if eq w 7239535 +ret 77 +end +if eq w 127970521019507 +ret 85 +end +ret 0 +end + +note ======== om4's small tables, as functions ======== +note twid: width in bits by type 0..9 (bool 1; uchar ushort uint ulong; byte short int long) +fn twid t ulong to ulong +if eq t 1 +ret 1 +end +if or eq t 2 eq t 6 +ret 8 +end +if or eq t 3 eq t 7 +ret 16 +end +if or eq t 4 eq t 8 +ret 32 +end +if or eq t 5 eq t 9 +ret 64 +end +ret 0 +end + +note tlog: log2 of the element size by type +fn tlog t ulong to ulong +if or eq t 3 eq t 7 +ret 1 +end +if or eq t 4 eq t 8 +ret 2 +end +if or eq t 5 eq t 9 +ret 3 +end +ret 0 +end + +note regidx: the pool index of register r (the inverse of poolc; 255 for x7 and x16) +fn regidx r ulong to ulong +if lt r 7 +ret r +end +if eq r 7 +ret 255 +end +if lt r 16 +ret sub r 1 +end +if eq r 16 +ret 255 +end +ret 15 +end + +note conds: the condition for eq ne lt le gt ge (i = 2 (op - 43) + 1 when signed): EQ 0, NE 1, LO 3 / LT 11, +note LS 9 / LE 13, HI 8 / GT 12, HS 2 / GE 10 (Arm ARM Table C1-1). The opposite condition is cond xor 1. +fn conds i ulong to ulong +if lt i 2 +ret 0 +end +if lt i 4 +ret 1 +end +if eq i 4 +ret 3 +end +if eq i 5 +ret 11 +end +if eq i 6 +ret 9 +end +if eq i 7 +ret 13 +end +if eq i 8 +ret 8 +end +if eq i 9 +ret 12 +end +if eq i 10 +ret 2 +end +ret 10 +end + +note ldop / stop: register-offset load / store by element type (om4 LDOP, STOP tables) +fn ldop t ulong to ulong +note LDRB 0x38606800, LDRH 0x78607800, LDR w 0xb8607800, LDR x 0xf8607800, LDRSB 0x38a06800, +note LDRSH 0x78a07800, LDRSW 0xb8a07800 +if eq t 2 +ret 945842176 +end +if eq t 3 +ret 2019588096 +end +if eq t 4 +ret 3093329920 +end +if or eq t 5 eq t 9 +ret 4167071744 +end +if eq t 6 +ret 950036480 +end +if eq t 7 +ret 2023782400 +end +if eq t 8 +ret 3097524224 +end +ret 0 +end + +fn stop t ulong to ulong +note STRB 0x38206800, STRH 0x78207800, STR w 0xb8207800, STR x 0xf8207800 +if or eq t 2 eq t 6 +ret 941647872 +end +if or eq t 3 eq t 7 +ret 2015393792 +end +if or eq t 4 eq t 8 +ret 3089135616 +end +if or eq t 5 eq t 9 +ret 4162877440 +end +ret 0 +end + +note ---- trap list (8192 sites per function): output offset of the branch, trap code ---- +global tsite ulong 8192 +global tcode ulong 8192 +global nt ulong 1 +note ---- block stack (512): kind (1 if, 2 else, 3 while, 4 for), branch to patch, loop head, loop +note register, its type, names and held pool slots to restore at end, then-part ended (for else) ---- +global bkind ulong 512 +global bbr ulong 512 +global bhead ulong 512 +global breg ulong 512 +global btyp ulong 512 +global bnames ulong 512 +global bheld ulong 512 +global bdead ulong 512 +global nb ulong 1 +global curfn ulong 1 + +note ======== names and functions ======== +note findname: packed name -> its index + 1 among the names in scope (0 none). om4 FINDNAME. +fn findname w ulong to ulong +i = ulong 0 +n = get nn 0 +while lt i n +if eq get nm_name i w +ret add i 1 +end +i = add i 1 +end +ret 0 +end + +note findfn: packed name w (first 8 bytes), length l (any value up to 8 for a short name), start s in the +note input (read only for a name over 8 bytes) -> function index + 1 (0 none). om4 FINDFN. +fn findfn w ulong l ulong s ulong to ulong +j = ulong 0 +while lt j get nf 0 +if eq get fn_name j w +fl = get fn_nmlen j +if le l 8 +if le fl 8 +ret add j 1 +end +else +if eq fl l +o = get fn_off j +k = ulong 8 +same = true +while and same lt k l +a = get inp add o k +if ne a get inp add s k +same = false +end +k = add k 1 +end +if same +ret add j 1 +end +end +end +end +j = add j 1 +end +ret 0 +end + +note newname: the name must not be in use (a name in scope when 8 bytes or fewer, or a function): error 10 +fn newname w ulong l ulong s ulong to void +if ne findstruct w 0 +fail 10 +end +if le l 8 +if ne findname w 0 +fail 10 +end +end +if ne findfn w l s 0 +fail 10 +end +end + +note addname: packed name, register, type, length, kind, address. om4 ADDNAME. +fn addname w ulong r ulong t ulong ln ulong k ulong a ulong to void +n = get nn 0 +if ge n 1024 +fail 14 +end +put nm_name n w +put nm_reg n uchar r +put nm_type n uchar t +put nm_len n ln +put nm_kind n uchar k +put nm_addr n a +put nn 0 add n 1 +end + +note ======== registers and words ======== +note alloc: the next free register of the pool (after the parameters); error 12 when none is left +fn alloc to ulong +i = add get npar 0 get nslot 0 +if ge i 16 +fail 12 +end +put nslot 0 add get nslot 0 1 +ret poolc i +end + +note destreg: d, or a new temporary when d is 255 +fn destreg d ulong to ulong +if eq d 255 +ret alloc +end +ret d +end + +note e3: emit op | d | n << 5 | m << 16 +fn e3 op ulong d ulong n ulong m ulong to void +emit or or or op d shl n 5 shl m 16 +end + +note trapsite: note the place and code of a branch to the trap stub, then emit it. trapc: B.cond, as om4. +fn trapsite w ulong code ulong to void +n = get nt 0 +if ge n 8192 +fail 14 +end +put tsite n get oc 0 +put tcode n code +put nt 0 add n 1 +emit w +end + +fn trapc cc ulong code ulong to void +trapsite or 1409286144 cc code +end + +fn rdword at ulong to ulong +a = ulong get out at +b = shl ulong get out add at 1 8 +c = shl ulong get out add at 2 16 +d = shl ulong get out add at 3 24 +ret or or or a b c d +end + +fn wrword at ulong w ulong to void +put out at uchar and w 255 +put out add at 1 uchar and shr w 8 255 +put out add at 2 uchar and shr w 16 255 +put out add at 3 uchar and shr w 24 255 +end + +note patch19: the word distance from a B.cond / CBZ / CBNZ at `at` to `target`, into bits 5..23 +fn patch19 at ulong target ulong to void +d = and shr sub target at 2 524287 +wrword at or rdword at shl d 5 +end + +note patch26: the word distance from a B at `at` to `target`, into bits 0..25 +fn patch26 at ulong target ulong to void +d = and shr sub target at 2 67108863 +wrword at or rdword at d +end + +note back: emit B to an earlier place (C6.2.35) +fn back addr ulong to void +emit or 335544320 and shr sub addr get oc 0 2 67108863 +end + +note matconst: put a 64-bit value in register r: MOVZ (C6.2.285) or, for a value with the top bit set, +note MOVN (C6.2.284) with the first halfword that differs from the fill, then MOVK (C6.2.283) for each +note other such halfword. om4 MATCONST. +fn matconst r ulong v ulong to void +fill = ulong 0 +mop = ulong 3531603968 +if ne shr v 63 0 +fill = ulong 65535 +mop = ulong 2457862144 +end +started = false +hw = ulong 0 +while lt hw 4 +h = and shr v shl hw 4 65535 +if ne h fill +if started +emit or or or 4068474880 shl h 5 shl hw 21 r +else +emit or or or mop shl xor h fill 5 shl hw 21 r +started = true +end +end +hw = add hw 1 +end +if not started +emit or mop r +end +end + +note canon: u8/u16/u32 UBFM Xr, Xr, #0, #w-1 (C6.2.487); i8/i16/i32 SBFM (C6.2.355); else nothing +fn canon r ulong t ulong to void +if lt t 2 +ret +end +if eq t 5 +ret +end +if eq t 9 +ret +end +base = ulong 3544186880 +if gt t 5 +base = ulong 2470445056 +end +emit or or or base shl sub twid t 1 10 r shl r 5 +end + +note chkext: CMP Xr, Wr, SXTB/SXTH/SXTW (SUBS extended, C6.2.463), then B.NE trap code +fn chkext r ulong t ulong code ulong to void +emit or or or 3944742943 shl sub t 2 13 shl r 16 shl r 5 +trapc 1 code +end + +note range: error 8 unless v is a value of type t; big = the number was written as 2^63 or more +fn range v ulong t ulong big ulong to void +w = twid t +if eq w 64 +if eq t 9 +if ne big 0 +fail 8 +end +ret +end +if ne big 0 +ret +end +if ne shr v 63 0 +fail 8 +end +ret +end +if ne big 0 +fail 8 +end +lim = shl ulong 1 w +if lt t 6 +if ge v lim +fail 8 +end +ret +end +half = shr lim 1 +if ge add v half lim +fail 8 +end +end + +note cset: CSET Xr, cond = CSINC Xr, XZR, XZR, opposite cond (C6.2.141) +fn cset r ulong cc ulong to void +emit or or 2594113504 r shl xor cc 1 12 +end + +note force: put a value (kind 1 register, 3 number, 4 flags) in register r; a bare number is error 11 +fn force k ulong v ulong t ulong r ulong to void +if eq k 1 +if ne v r +emit or or 2852127712 r shl v 16 +end +ret +end +if eq k 3 +matconst r v +ret +end +if eq k 4 +cset r v +ret +end +fail 11 +end + +note matreg: a register holding the value +fn matreg k ulong v ulong t ulong to ulong +if eq k 1 +ret v +end +r = alloc +force k v t r +ret r +end + +note spop: ADD (C6.2.5) / SUB (C6.2.457) SP, SP by a multiple of 16 below 2^24: low 12 bits, then the +note high 12 bits LSL 12; nothing for a zero part +fn spop base ulong bytes ulong to void +lo = and bytes 4095 +if ne lo 0 +emit or or base 1023 shl lo 10 +end +hi = and shr bytes 12 4095 +if ne hi 0 +emit or or base 4195327 shl hi 10 +end +end + +fn spadd bytes ulong to void +spop 2432696320 bytes +end + +fn spsub bytes ulong to void +spop 3506438144 bytes +end + +note stkchk: program mode only: CMP SP, X28 (C6.2.463); B.LO trap 6 +fn stkchk to void +if ne get progmode 0 0 +emit 3946603519 +trapc 3 6 +end +end + +note epi: give back the stack of the local arrays, then RET (C6.2.338) +fn epi to void +spadd get stkbytes 0 +emit 3596551104 +end + +fn dead1 to void +put dead 0 1 +end + +note pushb / pushnh: open a block (om4 PUSHB, split in two because a call takes at most 6 values) +fn pushb br ulong k ulong head ulong reg ulong ty ulong to void +n = get nb 0 +if ge n 512 +fail 14 +end +put bkind n k +put bbr n br +put bhead n head +put breg n reg +put btyp n ty +put bdead n 0 +put nb 0 add n 1 +end + +fn pushnh names ulong hd ulong to void +n = sub get nb 0 1 +put bnames n names +put bheld n hd +end + +note ======== small readers ======== +fn elemtype t ulong to void +if lt t 2 +fail 9 +end +end + +note arrlen: an array length 1 .. 16777216 (error 8 below, 23 above, 23 when written as 2^63 or more) +fn arrlen v ulong to void +if ne get tbig 0 0 +fail 23 +end +if or eq v 0 ne shr v 63 0 +fail 8 +end +if gt v 16777216 +fail 23 +end +end + +note typeword: read a type name -> 1..9 +fn typeword to ulong +tok +k = get tk 0 +if eq k 0 +fail 4 +end +if ne k 1 +fail 16 +end +if gt get tl 0 8 +fail 16 +end +c = kw get tw 0 +if eq c 76 +fail 9 +end +if gt sub c 1 8 +fail 16 +end +ret c +end + +note eol: the line must end here +fn eol to void +tok +k = get tk 0 +if and ne k 0 ne k 3 +fail 5 +end +end + +note arrname: read an array name -> its index + 1 +fn arrname to ulong +tok +k = get tk 0 +if eq k 0 +fail 4 +end +if eq k 3 +fail 4 +end +if ne k 1 +fail 16 +end +if gt get tl 0 8 +fail 13 +end +e = findname get tw 0 +if eq e 0 +fail 3 +end +if eq get nm_kind sub e 1 0 +fail 7 +end +ret e +end + +note topname: read a new name for a global or a text -> its packed word +fn topname to ulong +tok +if ne get tk 0 1 +fail 16 +end +if gt get tl 0 8 +fail 13 +end +w = get tw 0 +if ne kw w 0 +fail 16 +end +newname w get tl 0 get ts 0 +ret w +end + +note ---- value results (om4 x0 kind 1 register / 2 bare number / 3 typed number / 4 flags, x1 register, +note number or condition, x2 type). fr: 32 cells per value nesting depth 0..1024: 0..5 the two operands of +note a binary op (kind, value, type each), 8..25 a call's arguments (kind, value, array name each) ---- +global rk ulong 1 +global rv ulong 1 +global rt ulong 1 +global fr ulong 32800 +global depth ulong 1 + +note ======== BINOP (om4 BINOP and its BO_* parts): two values already read, types settled ======== +note bo_w3: emit fx | rd | ra << 5 | (imm12 << 10, or rb << 16) +fn bo_w3 fx ulong rd ulong ra ulong rb ulong imm ulong to void +if ne imm 0 +emit or or or fx rd shl ra 5 shl rb 10 +else +emit or or or fx rd shl ra 5 shl rb 16 +end +end + +note bo_fix: after a 64-bit op on rd: u8/u16/u32 wrap (canon), i8/i16/i32 overflow check (trap 1) +fn bo_fix rd ulong ty ulong to void +if lt ty 6 +canon rd ty +ret +end +if eq ty 9 +ret +end +chkext rd ty 1 +end + +note bo_schk: a shift amount in a register must be below the width: CMP Xb, #w; B.HS trap 7 +fn bo_schk ty ulong rb ulong to void +emit or or 4043309087 shl twid ty 10 shl rb 5 +trapc 2 7 +end + +note add, sub: u32 the 32-bit form; i64 ADDS/SUBS + B.VS trap 1; others 64-bit then bo_fix (om4 BO_ADD) +fn bo_add op ulong ty ulong ra ulong rb ulong imm ulong rd ulong to void +fx = ulong 2332033024 +if eq op 34 +fx = ulong 3405774848 +end +if ne imm 0 +fx = ulong 2432696320 +if eq op 34 +fx = ulong 3506438144 +end +end +if eq ty 4 +bo_w3 xor fx 2147483648 rd ra rb imm +ret +end +if eq ty 9 +bo_w3 or fx 536870912 rd ra rb imm +trapc 6 1 +ret +end +bo_w3 fx rd ra rb imm +bo_fix rd ty +end + +note mul: i64 SMULH t, MUL, CMP t, rd, ASR #63, B.NE trap 1 (om4 BO_MUL) +fn bo_mul ty ulong ra ulong rb ulong rd ulong to void +if eq ty 9 +t = alloc +e3 2604694528 t ra rb +bo_w3 2600500224 rd ra rb 0 +e3 3951098911 0 t rd +trapc 1 1 +ret +end +if eq ty 4 +bo_w3 453016576 rd ra rb 0 +ret +end +bo_w3 2600500224 rd ra rb 0 +bo_fix rd ty +end + +note div, rem (om4 BO_DIV, BO_SDIV): CBZ Xb trap 2 unless fl bit 1 (b a number other than 0); UDIV or +note SDIV; rem: t = a / b, rd = a - t * b (MSUB); i64 div: CMN Xb, #1; B.NE +3; NEGS XZR, Xa; B.VS trap 1, +note unless fl bit 2 (b a number other than -1) +fn bo_div op ulong ty ulong ra ulong rb ulong rd ulong fl ulong to void +if eq and fl 1 0 +trapsite or 3019898880 rb 2 +end +if eq op 37 +t = alloc +if ge ty 6 +e3 2596277248 t ra rb +else +e3 2596276224 t ra rb +end +e3 or 2600501248 shl ra 10 rd t rb +ret +end +if lt ty 6 +bo_w3 2596276224 rd ra rb 0 +ret +end +if eq ty 9 +if eq and fl 2 0 +emit or 2969568287 shl rb 5 +emit 1409286241 +emit or 3942646783 shl ra 16 +trapc 6 1 +end +end +bo_w3 2596277248 rd ra rb 0 +if ne ty 9 +bo_fix rd ty +end +end + +note and, or, xor (om4 BO_LOG) +fn bo_log op ulong ra ulong rb ulong rd ulong to void +fx = ulong 2315255808 +if eq op 39 +fx = ulong 2852126720 +end +if eq op 40 +fx = ulong 3388997632 +end +bo_w3 fx rd ra rb 0 +end + +note bo_lsl: LSL Xd, Xn, #s as UBFM Xd, Xn, #(64-s) mod 64, #63-s +fn bo_lsl ra ulong s ulong rd ulong to void +r = shl and sub 64 s 63 16 +r = or r shl sub 63 s 10 +r = or r shl ra 5 +emit or or 3544186880 r rd +end + +note shl (om4 BO_SHL, BS_64): by a number s: UBFM Xd, Xn, #(64-s) mod 64, #63-s; by a register: the amount +note check, LSLV; i64: t = a << s, X16 = t >> s arithmetic, CMP X16, Xa, B.NE trap 1, MOV Xd, Xt +fn bo_shl ty ulong ra ulong rb ulong imm ulong rd ulong to void +if eq ty 9 +t = alloc +if ne imm 0 +bo_lsl ra rb t +emit or or 2470509584 shl rb 16 shl t 5 +else +bo_schk ty rb +e3 2596282368 t ra rb +e3 2596284432 0 t rb +end +emit or 3942646303 shl ra 16 +trapc 1 1 +emit or or 2852127712 rd shl t 16 +ret +end +if ne imm 0 +bo_lsl ra rb rd +bo_fix rd ty +ret +end +bo_schk ty rb +if eq ty 4 +bo_w3 448798720 rd ra rb 0 +ret +end +bo_w3 2596282368 rd ra rb 0 +bo_fix rd ty +end + +note shr: unsigned LSR, signed ASR; by a number UBFM / SBFM Xd, Xn, #s, #63; by a register the amount check +note then LSRV / ASRV (om4 BO_SHR) +fn bo_shr ty ulong ra ulong rb ulong imm ulong rd ulong to void +if ne imm 0 +fi = ulong 3544251392 +if ge ty 6 +fi = ulong 2470509568 +end +emit or or or fi shl rb 16 shl ra 5 rd +ret +end +bo_schk ty rb +fx = ulong 2596283392 +if ge ty 6 +fx = ulong 2596284416 +end +bo_w3 fx rd ra rb 0 +end + +note comparisons: CMP Xa, #imm or CMP Xa, Xb; the result is the flags and a condition (om4 BO_CMP) +fn bo_cmp op ulong ty ulong ra ulong rb ulong imm ulong to void +if ne imm 0 +emit or or 4043309087 shl rb 10 shl ra 5 +else +emit or or 3942645791 shl rb 16 shl ra 5 +end +i = mul sub op 43 2 +if ge ty 6 +i = add i 1 +end +put rk 0 4 +put rv 0 conds i +put rt 0 1 +end + +note binop: op 33..48, destination (255 none), ix the fr slot of a (kind, number/register, type) then b. +note Result in rk/rv/rt. om4 BINOP. +fn binop op ulong dst ulong ix ulong to void +ty = get fr add ix 2 +ra = matreg get fr ix get fr add ix 1 ty +imm = ulong 0 +bk = get fr add ix 3 +bn = get fr add ix 4 +rb = ulong 0 +useimm = false +if eq bk 3 +if or eq op 41 eq op 42 +if lt bn twid ty +useimm = true +end +else +if or lt op 35 ge op 43 +if le bn 4095 +useimm = true +end +end +end +end +if useimm +rb = bn +imm = ulong 1 +else +rb = matreg bk bn get fr add ix 5 +end +if ge op 43 +bo_cmp op ty ra rb imm +ret +end +if eq ty 1 +if gt sub op 38 2 +fail 7 +end +end +rd = destreg dst +if lt op 35 +bo_add op ty ra rb imm rd +else +if eq op 35 +bo_mul ty ra rb rd +else +if lt op 38 +fl = ulong 0 +if and eq bk 3 ne bn 0 +fl = or fl 1 +end +if and eq bk 3 ne bn 18446744073709551615 +fl = or fl 2 +end +bo_div op ty ra rb rd fl +else +if lt op 41 +bo_log op ra rb rd +else +if eq op 41 +bo_shl ty ra rb imm rd +else +bo_shr ty ra rb imm rd +end +end +end +end +end +put rk 0 1 +put rv 0 rd +put rt 0 ty +end + +note ======== calls: registers saved around a call and loaded back ======== +global svn ulong 1 +global sva ulong 1 +note save: n = registers in use (parameters + pool slots), A = 8 (n + 1) rounded up to 16: SUB SP, SP, #A +note (C6.2.457); the stack check; STR Xr, [SP, #8j] for each (C6.2.415); STR X30, [SP, #8n]. Out: svn n, +note sva A. om4 SAVE. +fn save to void +n = add get npar 0 get nslot 0 +a = shl shr add n 2 1 4 +put svn 0 n +put sva 0 a +spsub a +stkchk +j = ulong 0 +while lt j n +emit or or 4177527776 poolc j shl j 10 +j = add j 1 +end +emit or 4177527806 shl n 10 +end + +note loadarg: register t from an argument: kind 1 or 5 a register v, read back from its save slot (LDR Xt, +note [SP, #8 slot], C6.2.216); kind 3 or 6 the number or address v. om4 LOADARG. +fn loadarg t ulong k ulong v ulong to void +if or eq k 3 eq k 6 +matconst t v +ret +end +emit or or 4181722080 t shl regidx v 10 +end + +note basearg: register t = the base of array name e (index + 1): its register from the save area, or its +note address. om4 BASEARG. +fn basearg t ulong e ulong to void +i = sub e 1 +if ge get nm_kind i 4 +matconst t get nm_addr i +ret +end +loadarg t 1 ulong get nm_reg i +end + +note restore: d destination (255: a new temporary at pool slot `slot`), slot the pool slot before the +note arguments, n saved count, a save bytes, res 1 if there is a result in X0. MOV Xd, X0 (C6.2.282); LDR +note each register in use before the arguments except Xd (C6.2.216); LDR X30; ADD SP, SP, #A (C6.2.5). +note Returns Xd (255 when no result). om4 RESTORE. +fn restore d ulong slot ulong n ulong a ulong res ulong to ulong +put nslot 0 slot +rd = ulong 255 +if ne res 0 +rd = d +if eq d 255 +rd = alloc +end +if ne rd 0 +emit or 2852127712 rd +end +end +m = add get npar 0 slot +j = ulong 0 +while lt j m +r = poolc j +if ne r rd +emit or or 4181722080 r shl j 10 +end +j = add j 1 +end +emit or 4181722110 shl n 10 +spadd a +ret rd +end + +note ca_bl: BL to function f (index + 1), C6.2.43 +fn ca_bl f ulong to void +n = get ncalls 0 +if ge n 65536 +fail 14 +end +put callsite n get oc 0 +put callfrom n get curfn 0 +put callto n f +put ncalls 0 add n 1 + +emit or 2483027968 and shr sub get fn_addr sub f 1 get oc 0 2 67108863 +end + +note ======== element addresses and array arguments ======== +global ea_b ulong 1 +global ea_i ulong 1 +note elemaddr: array name e (index + 1), index value (kind, number or register, type). A number index must +note be inside the array (error 21) and needs no check; a register index: CMP Xi, #len (C6.2.96) or CMP Xi, +note Xt (C6.2.97), B.HS trap 3 (unsigned, so a negative signed index traps too). Out: ea_b base register +note (the array's register, or a new one holding its address), ea_i index register. om4 ELEMADDR. +fn elemaddr e ulong k ulong v ulong t ulong to void +if eq t 1 +fail 7 +end +i = sub e 1 +ln = get nm_len i +x = v +if eq k 3 +if ge v ln +fail 21 +end +x = alloc +matconst x v +else +if le ln 4095 +emit or or 4043309087 shl ln 10 shl v 5 +else +y = alloc +matconst y ln +emit or or 3942645791 shl y 16 shl v 5 +end +trapc 2 3 +end +put ea_i 0 x +if ge get nm_kind i 4 +b = alloc +matconst b get nm_addr i +put ea_b 0 b +else +put ea_b 0 ulong get nm_reg i +end +end + +note aa_word: the next word of an array argument must be a name of at most 8 bytes +fn aa_word to void +tok +k = get tk 0 +if eq k 0 +fail 4 +end +if ne k 1 +fail 16 +end +if gt get tl 0 8 +fail 13 +end +end + +note arrarg: an array argument for parameter pi of function f (index + 1): [view | edit] NAME. Its type and +note length must equal the parameter's; an edit parameter needs a writable array (local or edit, error 20; +note a view passed to it is error 20, OMEGESE.md 9.4); a global is never passed (error 19). Out: rk 5 +note (register rv) or 6 (address rv, a text), rt the name entry. om4 ARRARG. +fn arrarg f ulong pi ulong to void +md = ulong 0 +aa_word +w = get tw 0 +c = kw w +if ne c 0 +if or lt c 57 gt c 58 +fail 16 +end +md = c +aa_word +w = get tw 0 +end +e = findname w +if eq e 0 +fail 3 +end +i = sub e 1 +k = ulong get nm_kind i +if eq k 0 +fail 7 +end +if ge k 6 +fail 7 +end +if eq k 4 +fail 19 +end +p = add mul sub f 1 6 pi +if eq get fn_pk p 3 +if eq md 57 +fail 20 +end +if and ne k 1 ne k 3 +fail 20 +end +else +if eq md 58 +fail 7 +end +end +if ne get nm_type i get fn_pt p +fail 7 +end +if ne get nm_len i get fn_pl p +fail 7 +end +put rt 0 e +if eq k 5 +put rk 0 6 +put rv 0 get nm_addr i +else +put rk 0 5 +put rv 0 ulong get nm_reg i +end +end + +note ======== the parts of the value reader that read no further value ======== +fn vdec to void +put depth 0 sub get depth 0 1 +end + +note vdone: a value's result, and one nesting level less (om4 VT_RET) +fn vdone k ulong v ulong t ulong to void +put rk 0 k +put rv 0 v +put rt 0 t +vdec +end + +note vt_un: neg / not of the value in rk/rv/rt (a bare number already refused). neg: NEG Xd, Xm (SUB from +note XZR, C6.2.458; the 32-bit form for u32), i64 NEGS + B.VS trap 1 (C6.2.465), then the wrap or the +note sign check; not: bool EOR Xd, Xn, #1 (C6.2.155), else MVN (ORN from XZR, C6.2.300), then the wrap. +note om4 VU1 .. VU_E. +fn vt_un c ulong dst ulong to void +ty = get rt 0 +ra = matreg get rk 0 get rv 0 ty +rd = destreg dst +if eq c 50 +if eq ty 1 +e3 3527409664 rd ra 0 +else +if eq ty 4 +e3 706741216 rd 0 ra +else +e3 2854224864 rd 0 ra +if lt ty 6 +canon rd ty +end +end +end +else +if eq ty 1 +fail 7 +end +if eq ty 9 +e3 3942646752 rd 0 ra +trapc 6 1 +else +if eq ty 4 +e3 1258292192 rd 0 ra +else +e3 3405775840 rd 0 ra +if lt ty 6 +canon rd ty +else +chkext rd ty 1 +end +end +end +end +put rk 0 1 +put rv 0 rd +put rt 0 ty +end + +note vt_conv: the value in rk/rv/rt converted to type tt (neither bool, error 9). Out of range when any bit +note at or above s is set: LSR Xt, Xa, #s (UBFM, C6.2.487); CBNZ Xt trap 5 (C6.2.77); signed to a narrower +note signed type: the sign-extension check, trap 5. om4 VTT1 .. VC_OK. +fn vt_conv tt ulong to void +ft = get rt 0 +ra = matreg get rk 0 get rv 0 ft +if eq ft 1 +fail 9 +end +if eq tt 1 +fail 9 +end +wf = twid ft +wt = twid tt +s = ulong 99 +if lt ft 6 +if ge tt 6 +if ge wf wt +s = sub wt 1 +end +else +if gt wf wt +s = wt +end +end +else +if lt tt 6 +s = wt +if gt s 63 +s = ulong 63 +end +else +if gt wf wt +chkext ra tt 5 +end +end +end +if ne s 99 +t = alloc +emit or or or 3544251392 t shl s 16 shl ra 5 +trapsite or 3036676096 t 5 +end +put rk 0 1 +put rv 0 ra +put rt 0 tt +end + +note vt_get: get A i with the index value in rk/rv/rt: the element address, then the load of the element +note type, register offset (LDOP table). om4 VT_GET. +fn vt_get e ulong dst ulong to void +elemaddr e get rk 0 get rv 0 get rt 0 +rd = destreg dst +ty = ulong get nm_type sub e 1 +w = or ldop ty rd +emit or or w shl get ea_b 0 5 shl get ea_i 0 16 +put rk 0 1 +put rv 0 rd +put rt 0 ty +end + +note vs_chk: read / write bounds: n <= len A and off <= len A - n, else trap 3 (CMP C6.2.97, B.HI C6.2.34, +note SUB C6.2.458). om4 VT_SYS. +fn vs_chk e ulong ro ulong rn ulong to void +t = alloc +matconst t get nm_len sub e 1 +emit or or 3942645791 shl rn 5 shl t 16 +trapc 8 3 +e3 3405774848 t t rn +emit or or 3942645791 shl ro 5 shl t 16 +trapc 8 3 +end + +note vs_call: save the registers in use, X0 = fd, X1 = A + off (ADD through X16, C6.2.6), X2 = n, X8 = 63 +note (read) or 64 (write) (MOVZ C6.2.285), SVC #0 (C6.2.466). om4 VT_SYS. +fn vs_call c ulong fk ulong fv ulong e ulong ro ulong rn ulong to void +save +loadarg 0 fk fv +basearg 1 e +loadarg 16 1 ro +emit 2333081633 +loadarg 2 1 rn +emit or 3531603976 shl add c 10 5 +emit 3556769793 +end + +note ca_scal: a scalar argument just read (rk/rv/rt) for parameter p: flags into a register; its type +note must be the parameter's; stored at fr[q..q+2]. om4 CA1 .. CA_PUT. +fn ca_scal p ulong q ulong to void +if eq get rk 0 4 +put rv 0 matreg 4 get rv 0 get rt 0 +put rk 0 1 +put rt 0 1 +end +if ne get rt 0 ulong get fn_pt p +fail 7 +end +put fr q get rk 0 +put fr add q 1 get rv 0 +put fr add q 2 0 +end + +note ca_arr: an array argument i of function f, call frame cb: one array passed twice is error 19. +note om4 CA_ARR .. CA_PUT. +fn ca_arr f ulong i ulong cb ulong to void +arrarg f i +j = ulong 0 +while lt j i +if eq get fr add add cb mul j 3 2 get rt 0 +fail 19 +end +j = add j 1 +end +q = add cb mul i 3 +put fr q get rk 0 +put fr add q 1 get rv 0 +put fr add q 2 get rt 0 +end + +note ca_end: all arguments read: save, the arguments into X0.., BL, restore. Frame cb: 3 per argument, +note then cb+18 the parameter count, cb+19 the pool slot before the arguments. om4 CA_DONE .. CA5. +fn ca_end f ulong dst ulong cb ulong to void +save +np = get fr add cb 18 +i = ulong 0 +while lt i np +q = add cb mul i 3 +loadarg i get fr q get fr add q 1 +i = add i 1 +end +ca_bl f +hr = ulong 1 +if eq get fn_ret sub f 1 10 +hr = ulong 0 +end +n = get svn 0 +a = get sva 0 +sl = get fr add cb 19 +r = restore dst sl n a hr +put rk 0 1 +put rv 0 r +put rt 0 ulong get fn_ret sub f 1 +end + +note vs_fd, vs_arr, vs_off, vs_end: the steps of read / write between the values it reads, with the fd +note (kind, value), the offset register and the pool slot before kept in fr[x+8..x+11] (om4's VT_SYS +note frame slots 4, 5, 7 and 14) +fn vs_fd x ulong to void +if ne get rt 0 8 +fail 7 +end +put fr add x 9 get rk 0 +put fr add x 10 get rv 0 +end + +fn vs_arr c ulong e ulong to void +if ge get nm_kind sub e 1 6 +fail 7 +end +if eq c 53 +k = get nm_kind sub e 1 +if or eq k 2 eq k 5 +fail 20 +end +end +end + +fn vs_off x ulong to void +if ne get rt 0 5 +fail 7 +end +put fr add x 11 matreg get rk 0 get rv 0 get rt 0 +end + +fn vs_end c ulong e ulong dst ulong x ulong to void +if ne get rt 0 5 +fail 7 +end +rn = matreg get rk 0 get rv 0 get rt 0 +ro = get fr add x 11 +vs_chk e ro rn +fk = get fr add x 9 +fv = get fr add x 10 +vs_call c fk fv e ro rn +sl = get fr add x 8 +n = get svn 0 +a = get sva 0 +r = restore dst sl n a 1 +vdone 1 r 9 +end + +note ======== rdval: read one value (om4 VAL, VALTOK, CALL and the VT_ parts, one self-recursive +note function because a function calls only earlier functions or itself) ======== +note mode 0: read the first word; 1: the first word is the current token; 2: a call of function fe (index +note + 1), its arguments still to read. exp the expected type (0 none), dst the destination register (255 +note none). Out: rk kind (1 register, 2 bare number, 3 typed number, 4 flags), rv register / number / +note condition, rt type (for a bare number: 1 when written as 2^63 or more). Only the outermost op writes the +note destination. Every value nests one level deeper (at most 1024, error 14); a call does not. +fn rdval mode ulong exp ulong dst ulong fe ulong to void +if eq mode 2 +cb = add mul get depth 0 32 8 +put fr add cb 18 ulong get fn_np sub fe 1 +put fr add cb 19 get nslot 0 +if eq get progmode 0 0 +if eq get curfn 0 fe +fail 9 +end +end +i = ulong 0 +while lt i get fr add cb 18 +p = add mul sub fe 1 6 i +if eq get fn_pk p 0 +rdval 0 ulong get fn_pt p 255 0 +ca_scal p add cb mul i 3 +else +if ge get fn_pk p 6 +ca_st fe i cb +else +ca_arr fe i cb +end +end +i = add i 1 +end +ca_end fe dst cb +ret +end +if eq mode 0 +tok +end +put depth 0 add get depth 0 1 +if gt get depth 0 1024 +fail 14 +end +if or eq get tk 0 0 eq get tk 0 3 +fail 4 +end +if eq get tk 0 4 +fail 16 +end +if eq get tk 0 2 +if eq exp 0 +vdone 2 get tw 0 get tbig 0 +ret +end +range get tw 0 exp get tbig 0 +vdone 3 get tw 0 exp +ret +end +if gt get tl 0 8 +f = findfn get tw 0 get tl 0 get ts 0 +if eq f 0 +fail 13 +end +if eq get fn_ret sub f 1 10 +fail 7 +end +rdval 2 0 dst f +vdec +ret +end +c = kw get tw 0 +if eq c 0 +e = findname get tw 0 +if ne e 0 +if ne get nm_kind sub e 1 0 +fail 7 +end +vdone 1 ulong get nm_reg sub e 1 ulong get nm_type sub e 1 +ret +end +f = findfn get tw 0 0 0 +if eq f 0 +fail 3 +end +if eq get fn_ret sub f 1 10 +fail 7 +end +rdval 2 0 dst f +vdec +ret +end +if le sub c 1 8 +tok +if eq get tk 0 2 +range get tw 0 c get tbig 0 +vdone 3 get tw 0 c +ret +end +rdval 1 0 255 0 +if eq get rk 0 2 +fail 11 +end +vt_conv c +vdec +ret +end +if eq c 74 +rdval 0 exp dst 0 +tok +if ne get tk 0 1 +fail 16 +end +if gt get tl 0 8 +fail 16 +end +if ne kw get tw 0 75 +fail 16 +end +vdec +ret +end +if eq c 77 +fail 9 +end +if eq c 51 +e = arrname +if ge get nm_kind sub e 1 6 +vt_fget e dst +vdec +ret +end +rdval 0 5 255 0 +vt_get e dst +vdec +ret +end +if eq c 52 +e = arrname +if ge get nm_kind sub e 1 6 +fail 7 +end +vdone 3 get nm_len sub e 1 5 +ret +end +if or eq c 53 eq c 54 +x = mul get depth 0 32 +put fr add x 8 get nslot 0 +rdval 0 8 255 0 +vs_fd x +e = arrname +vs_arr c e +rdval 0 5 255 0 +vs_off x +rdval 0 5 255 0 +vs_end c e dst x +ret +end +if eq c 55 +vdone 3 1 1 +ret +end +if eq c 56 +vdone 3 0 1 +ret +end +if gt sub c 33 17 +fail 16 +end +if ge c 49 +rdval 0 exp 255 0 +if and eq c 50 eq get rk 0 4 +put rv 0 xor get rv 0 1 +vdec +ret +end +if eq get rk 0 2 +fail 11 +end +vt_un c dst +vdec +ret +end +rdval 0 0 255 0 +ak = get rk 0 +av = get rv 0 +at = get rt 0 +if eq ak 4 +av = matreg 4 av at +ak = ulong 1 +at = ulong 1 +end +rdval 0 0 255 0 +bk = get rk 0 +bv = get rv 0 +bt = get rt 0 +if eq bk 4 +bv = matreg 4 bv bt +bk = ulong 1 +bt = ulong 1 +end +if eq ak 2 +if eq bk 2 +fail 11 +end +range av bt at +at = bt +ak = ulong 3 +end +if eq bk 2 +range bv at bt +bt = at +bk = ulong 3 +end +if and ne c 41 ne c 42 +if ne at bt +fail 7 +end +end +x = mul get depth 0 32 +put fr x ak +put fr add x 1 av +put fr add x 2 at +put fr add x 3 bk +put fr add x 4 bv +put fr add x 5 bt +binop c dst x +vdec +end + +note cond: read a condition (a bool value); emit a branch taken when it is false: B.cond with the opposite +note condition (C6.2.34), or CBZ Xr (C6.2.78). Returns that branch's place. om4 COND. +fn cond to ulong +rdval 0 1 255 0 +if ne get rt 0 1 +fail 7 +end +if eq get rk 0 4 +at = get oc 0 +emit or 1409286144 xor get rv 0 1 +ret at +end +r = matreg get rk 0 get rv 0 get rt 0 +at = get oc 0 +emit or 3019898880 r +ret at +end + +note ======== statements, one per line (om4 STMT and the S_ parts) ======== +note skipnl: note ...: the rest of the line is not read (up to the newline, which tok reads). om4 S_NOTE. +fn skipnl to void +go = true +while go +n = ulong 0 +while and go lt n 999999 +if ge get cur 0 get inlen 0 +go = false +else +if eq get inp get cur 0 10 +go = false +else +put cur 0 add get cur 0 1 +end +end +n = add n 1 +end +end +end + +note s_long: a word over 8 characters at the start of a line: only a call of a void function. om4 S_LONG. +fn s_long to void +if eq get curret 0 0 +fail 13 +end +if ne get dead 0 0 +fail 17 +end +f = findfn get tw 0 get tl 0 get ts 0 +if eq f 0 +fail 13 +end +if ne get fn_ret sub f 1 10 +fail 7 +end +rdval 2 0 255 f +eol +end + +note blo: B.LO back to an earlier place (C6.2.34) +fn blo at ulong to void +d = and shr sub at get oc 0 2 524287 +emit or 1409286147 shl d 5 +end + +note sa_arr: x = new T N v: N elements of type T on the stack, each set to v; only in the function's +note outermost block, so the stack held by local arrays is known at every ret. SUB SP (C6.2.457); program +note mode: the stack check; MOV Xb, SP (ADD immediate, C6.2.5); then the fill loop: STR v, [Xb, Xi, LSL]; +note ADD Xi, Xi, #1; CMP Xi, #N or Xn; B.LO back (C6.2.34). om4 SA_ARR. +fn sa_arr w ulong to void +if ne get nb 0 0 +fail 9 +end +t = typeword +elemtype t +tok +if ne get tk 0 2 +fail 16 +end +n = get tw 0 +arrlen n +by = shl shr add shl n tlog t 15 4 4 +s = add get stkbytes 0 by +if gt s 4194304 +fail 23 +end +put stkbytes 0 s +r = alloc +put held 0 get nslot 0 +rdval 0 t 255 0 +if ne get rt 0 t +fail 7 +end +v = matreg get rk 0 get rv 0 get rt 0 +spsub by +stkchk +emit or 2432697312 r +i = alloc +emit or 3531603968 i +m = ulong 0 +if gt n 4095 +m = alloc +matconst m n +end +lp = get oc 0 +emit or or or stop t v shl r 5 shl i 16 +emit or or 2432697344 i shl i 5 +if le n 4095 +emit or or 4043309087 shl n 10 shl i 5 +else +emit or or 3942645791 shl m 16 shl i 5 +end +blo lp +addname w r t n 1 0 +end + +note s_assign: name [=] value (an existing scalar, or a new one), or name = new T N v. om4 S_ASSIGN. +fn s_assign w ulong to void +tok +if eq get tk 0 1 +if le get tl 0 8 +if eq kw get tw 0 73 +tok +end +end +end +e = findname w +if ne e 0 +i = sub e 1 +if ne get nm_kind i 0 +fail 7 +end +r = ulong get nm_reg i +t = ulong get nm_type i +rdval 1 t r 0 +if ne get rt 0 t +fail 7 +end +force get rk 0 get rv 0 get rt 0 r +eol +ret +end +if ne findfn w 0 0 0 +fail 10 +end +if eq get tk 0 1 +if le get tl 0 8 +if eq kw get tw 0 84 +sa_new w +eol +ret +end +end +end +r = alloc +put held 0 get nslot 0 +rdval 1 0 r 0 +if eq get rk 0 2 +fail 11 +end +t = get rt 0 +force get rk 0 get rv 0 t r +addname w r t 0 0 0 +eol +end + +note s_name: a name at the start of a line: a call of a void function, or name [=] value. om4 S_NAME. +fn s_name w ulong to void +if ne findname w 0 +s_assign w +ret +end +f = findfn w get tl 0 0 +if eq f 0 +s_assign w +ret +end +if ne get fn_ret sub f 1 10 +fail 7 +end +rdval 2 0 255 f +eol +end + +note fn_p: the type of parameter np (name pw) of function f (index): T, or view / edit T N (an array: +note kind 2 / 3, element type, length 1 .. 2^24). om4 FN_P .. FN_ADD. +fn fn_p f ulong np ulong pw ulong to void +tok +if ne get tk 0 1 +fail 16 +end +if gt get tl 0 8 +fail 16 +end +c = kw get tw 0 +t = ulong 0 +ln = ulong 0 +k = ulong 0 +if or eq c 57 eq c 58 +k = sub c 55 +sid = peek_struct +if ne sid 0 +fn_p_st f np pw sid k +ret +end +t = typeword +elemtype t +tok +if eq get tk 0 0 +fail 4 +end +if ne get tk 0 2 +fail 16 +end +ln = get tw 0 +arrlen ln +else +if gt sub c 1 8 +fail 16 +end +t = c +end +addname pw poolc np t ln k 0 +p = add mul f 6 np +put fn_pt p uchar t +put fn_pl p ln +put fn_pk p uchar k +end + +note fn_to: to T | to void at the end of a fn line; the function's state starts. om4 FN_TO .. FN_T2. +fn fn_to f ulong np ulong to void +tok +if eq get tk 0 0 +fail 4 +end +if ne get tk 0 1 +fail 16 +end +if gt get tl 0 8 +fail 16 +end +c = kw get tw 0 +r = c +if eq c 76 +r = ulong 10 +else +if gt sub c 1 8 +fail 16 +end +end +put curret 0 r +put fn_ret f uchar r +put fn_np f uchar np +put stkbytes 0 0 +put dead 0 0 +put npar 0 np +put nslot 0 0 +put held 0 0 +put nb 0 0 +put nt 0 0 +eol +end + +note s_fn: fn name (param type | param view T N | param edit T N)* to type | void. om4 S_FN. +fn s_fn to void +if ne get curret 0 0 +fail 15 +end +tok +if ne get tk 0 1 +fail 16 +end +if gt get tl 0 63 +fail 13 +end +w = get tw 0 +if ne kw w 0 +fail 16 +end +l = get tl 0 +s = get ts 0 +f = ulong 0 +if eq get scanning 0 1 +newname w l s +f = get nf 0 +if ge f 512 +fail 14 +end +put nf 0 add f 1 +put curfn 0 add f 1 +put lastfn 0 add f 1 +put fn_name f w +put fn_addr f get oc 0 +put fn_ret f 0 +put fn_np f 0 +put fn_nmlen f l +put fn_off f s +put dstart f get dtoken 0 +else +f = sub findfn w l s 1 +put curfn 0 add f 1 +put lastfn 0 add f 1 +put fn_addr f get oc 0 +end +put nn 0 get nglob 0 +np = ulong 0 +go = true +while go +tok +if eq get tk 0 0 +fail 4 +end +if ne get tk 0 1 +fail 16 +end +if gt get tl 0 8 +fail 13 +end +pw = get tw 0 +c = kw pw +if eq c 65 +go = false +else +if ne c 0 +fail 16 +end +newname pw get tl 0 get ts 0 +if ge np 6 +fail 9 +end +fn_p f np pw +np = add np 1 +end +end +fn_to f np +if eq get scanning 0 1 +put curret 0 0 +put nn 0 0 +end +end + +note s_ret: ret [value]: the value into X0, give back the local arrays' stack, RET. om4 S_RET. +fn s_ret to void +r = get curret 0 +if eq r 10 +eol +epi +dead1 +ret +end +rdval 0 r 0 0 +if ne get rt 0 r +fail 7 +end +force get rk 0 get rv 0 get rt 0 0 +epi +dead1 +eol +end + +note s_exit: exit value (int): Linux exit (system call 93: MOVZ X8, #93, C6.2.285; SVC #0, C6.2.466); the +note path ends. om4 S_EXIT. +fn s_exit to void +rdval 0 8 255 0 +if ne get rt 0 8 +fail 7 +end +force get rk 0 get rv 0 get rt 0 0 +emit 3531606952 +emit 3556769793 +dead1 +eol +end + +note stel: the checked store of v (type t) at ea_b / ea_i (the STOP table: register offset, scaled) +fn stel t ulong v ulong to void +b = shl get ea_b 0 5 +i = shl get ea_i 0 16 +emit or or or stop t v b i +end + +note s_put: put A i v: index, then value, then the checked store (STOP table). om4 S_PUT. +fn s_put to void +e = arrname +k = get nm_kind sub e 1 +if ge k 6 +s_putf e +ret +end +if or eq k 2 eq k 5 +fail 20 +end +rdval 0 5 255 0 +ik = get rk 0 +iv = get rv 0 +it = get rt 0 +t = ulong get nm_type sub e 1 +rdval 0 t 255 0 +if ne get rt 0 t +fail 7 +end +v = matreg get rk 0 get rv 0 get rt 0 +elemaddr e ik iv it +stel t v +eol +end + +note s_global: global NAME T N: a fixed pool of N elements, zero at start, in the read/write part of the +note program image after the 8 MiB stack pool (address 0x10800000 + pool bytes so far); at most 1 GiB of +note pools (error 23). om4 S_GLOBAL. +fn s_global to void +w = topname +t = typeword +elemtype t +tok +if ne get tk 0 2 +fail 16 +end +n = get tw 0 +arrlen n +by = shl shr add shl n tlog t 15 4 4 +pb = get poolb 0 +a = add 276824064 pb +s = add pb by +if gt s 1073741824 +fail 23 +end +put poolb 0 s +addname w 0 t n 4 a +put nglob 0 get nn 0 +eol +end + +note s_text: text NAME "...": read-only bytes in the program image (escapes \n \t \\ \", any other is error +note 22), padded to a word, with their length; address 0x400000 + its place. om4 S_TEXT. +fn s_text to void +w = topname +tok +if ne get tk 0 4 +fail 16 +end +a = add get oc 0 4194304 +p = get tw 0 +e = add p get tl 0 +n = ulong 0 +go = true +while go +m = ulong 0 +while and go lt m 999999 +if ge p e +go = false +else +b = get inp p +p = add p 1 +if eq b 92 +b = get inp p +p = add p 1 +if eq b 110 +b = uchar 10 +else +if eq b 116 +b = uchar 9 +else +if and ne b 92 ne b 34 +fail 22 +end +end +end +end +emitb b +n = add n 1 +end +m = add m 1 +end +end +while ne and get oc 0 3 0 +emitb 0 +end +addname w 0 2 n 5 a +put nglob 0 get nn 0 +eol +end + +note s_if: if cond: the false branch is patched at else / end. om4 S_IF. +fn s_if to void +at = cond +pushb at 1 0 0 0 +pushnh get nn 0 get held 0 +eol +end + +note s_else: jump over the else part (B, C6.2.35); the if's false branch lands after that jump. om4 S_ELSE. +fn s_else to void +n = get nb 0 +if eq n 0 +fail 15 +end +i = sub n 1 +if ne get bkind i 1 +fail 15 +end +b = get oc 0 +emit 335544320 +patch19 get bbr i get oc 0 +put bkind i 2 +put bbr i b +put nn 0 get bnames i +put held 0 get bheld i +put bdead i get dead 0 +put dead 0 0 +eol +end + +note lpcnt: the hidden counter check of a loop: CMP Xc, #N (C6.2.96) or CMP Xc, Xn (C6.2.97); B.HS trap +note 4; ADD Xc, Xc, #1 (C6.2.5). om4 SW_NOB .. SW_G and the same in S_FOR. +fn lpcnt c ulong n ulong to void +if le n 4095 +emit or or 4043309087 shl n 10 shl c 5 +else +m = alloc +matconst m n +emit or or 3942645791 shl c 5 shl m 16 +end +trapc 2 4 +emit or or 2432697344 c shl c 5 +end + +note s_while: while cond [bound N]: hidden counter = 0; head: cond false -> exit; counter >= N -> trap 4; +note counter = counter + 1; body; B head. N is 1 .. 999999 (error 8), 1000000 with no bound. om4 S_WHILE. +fn s_while to void +sn = get nn 0 +sh = get held 0 +c = alloc +put held 0 get nslot 0 +emit or 3531603968 c +hd = get oc 0 +br = cond +n = ulong 1000000 +tok +k = get tk 0 +if and ne k 0 ne k 3 +if ne k 1 +fail 5 +end +if gt get tl 0 8 +fail 5 +end +if ne kw get tw 0 70 +fail 5 +end +tok +if eq get tk 0 0 +fail 4 +end +if ne get tk 0 2 +fail 16 +end +if ge sub get tw 0 1 999999 +fail 8 +end +n = get tw 0 +eol +end +lpcnt c n +pushb br 3 hd c 0 +pushnh sn sh +end + +note sf_br: B.HS (unsigned) or B.GE (signed) to the loop exit, C6.2.34 (distance filled at end); returns +note its place. om4 SF_BR. +fn sf_br t ulong to ulong +at = get oc 0 +if lt t 6 +emit 1409286146 +else +emit 1409286154 +end +ret at +end + +note sf_num: for i T K with K a number: i = 0 (MOVZ, C6.2.285); head: CMP Xi, #K or Xk; B.HS/B.GE exit. +note om4 SF_NUM .. SF_PUSH. +fn sf_num w ulong t ulong kk ulong sn ulong sh ulong to void +eol +i = alloc +put held 0 get nslot 0 +addname w i t 0 0 0 +emit or 3531603968 i +hd = get oc 0 +if le kk 4095 +emit or or 4043309087 shl kk 10 shl i 5 +else +k = alloc +matconst k kk +emit or or 3942645791 shl i 5 shl k 16 +end +br = sf_br t +pushb br 4 hd i t +pushnh sn sh +end + +note sf_val: for i T K with K a value of type T in register kr: i = 0; the hidden counter c = 0; head: CMP +note Xi, Xk; B.HS/B.GE exit; the counter guard of a while with no bound. om4 SF_VAL. +fn sf_val w ulong t ulong kr ulong sn ulong sh ulong to void +eol +i = alloc +put held 0 get nslot 0 +addname w i t 0 0 0 +emit or 3531603968 i +c = alloc +put held 0 get nslot 0 +emit or 3531603968 c +hd = get oc 0 +emit or or 3942645791 shl kr 16 shl i 5 +br = sf_br t +m = alloc +matconst m 1000000 +emit or or 3942645791 shl c 5 shl m 16 +trapc 2 4 +emit or or 2432697344 c shl c 5 +pushb br 4 hd i t +pushnh sn sh +end + +note s_for: for i T K: i = 0; head: not i < K -> exit; body; latch i = add i 1; B head. K a number, or a +note value of type T: a name is read at every pass, another value once before the loop. om4 S_FOR. +fn s_for to void +sn = get nn 0 +sh = get held 0 +tok +if eq get tk 0 0 +fail 4 +end +if ne get tk 0 1 +fail 16 +end +if gt get tl 0 8 +fail 13 +end +w = get tw 0 +if ne kw w 0 +fail 16 +end +newname w get tl 0 get ts 0 +t = typeword +if eq t 1 +fail 7 +end +tok +if eq get tk 0 0 +fail 4 +end +if eq get tk 0 2 +range get tw 0 t get tbig 0 +sf_num w t get tw 0 sn sh +ret +end +rdval 1 t 255 0 +if ne get rt 0 t +fail 7 +end +if eq get rk 0 3 +sf_num w t get rv 0 sn sh +ret +end +kr = matreg get rk 0 get rv 0 get rt 0 +sf_val w t kr sn sh +end + +note finish: end of a function: a function that needs a value must not reach its end (error 18), a void +note one returns; then the trap stubs: shared tail, function mode MOV X0, X7; LDR X16, [X7, #16]; BR X16 +note (C6.2.282, C6.2.216, C6.2.46: OscRt.trap); program mode ADD X0, X1, #100; MOVZ X8, #93; SVC #0 (exit +note 100 + code). Per trap code used: MOVZ X1, #code (C6.2.285); B tail. om4 FINISH. +fn finish to void +if ne get dmode 0 0 +put dend sub get curfn 0 1 sub get cur 0 1 +end +eol +if eq get dead 0 0 +if ne get curret 0 10 +fail 18 +end +epi +end +nt0 = get nt 0 +if ne nt0 0 +tail = get oc 0 +if eq get progmode 0 0 +emit 2852586464 +emit 4181723376 +emit 3592356352 +else +emit 2432798752 +emit 3531606952 +emit 3556769793 +end +code = ulong 1 +while le code 14 +st = ulong 0 +j = ulong 0 +while lt j nt0 +if eq get tcode j code +if eq st 0 +st = get oc 0 +emit or 3531603969 shl code 5 +back tail +end +patch19 get tsite j st +end +j = add j 1 +end +code = add code 1 +end +end +put curret 0 0 +put nn 0 get nglob 0 +put curfn 0 0 +end + +note s_end: close the innermost block (if: patch its branch; else: patch its jump; while: B head; for: i = +note add i 1, B head), or the function. om4 S_END. +fn s_end to void +n = get nb 0 +if eq n 0 +finish +ret +end +i = sub n 1 +put nb 0 i +k = get bkind i +if eq k 2 +put dead 0 and get dead 0 get bdead i +else +put dead 0 0 +end +if eq k 4 +put fr 0 1 +put fr 1 get breg i +put fr 2 get btyp i +put fr 3 3 +put fr 4 1 +put fr 5 get btyp i +binop 33 get breg i 0 +end +if ge k 3 +back get bhead i +end +if eq k 2 +patch26 get bbr i get oc 0 +else +patch19 get bbr i get oc 0 +end +put nn 0 get bnames i +put held 0 get bheld i +eol +end + +note ======== the end of the input: the output ======== +note writeout: the output from byte st to the end, to stdout (error 2), then exit 0. om4 WRITEOUT. +fn writeout st ulong to void +p = st +go = true +while go +m = ulong 0 +while and go lt m 999999 +if ge p get oc 0 +go = false +else +n = write 1 out p sub get oc 0 p +if le n 0 +fail 2 +end +p = add p ulong n +end +m = add m 1 +end +end +exit int 0 +end + +note elfhdr: the 176-byte file header (om4 ELFHDR, 44 words): ELF64 little-endian, executable, AArch64, +note entry 0x4000b0 (the word after the header), 2 program headers: code read+execute from 0x400000, and +note the read/write pools from 0x10000000. Only the words that are not 0 (the output starts at 0). +fn elfhdr to void +wrword 0 1179403647 +wrword 4 65794 +wrword 16 11993090 +wrword 20 1 +wrword 24 4194480 +wrword 32 64 +wrword 52 3670080 +wrword 56 2 +wrword 64 1 +wrword 68 5 +wrword 80 4194304 +wrword 88 4194304 +wrword 112 4096 +wrword 120 1 +wrword 124 6 +wrword 136 268435456 +wrword 144 268435456 +wrword 168 4096 +end + +note eof_prog: program mode: start code = MOVZ X28, #0x1000, LSL 16 (stack pool floor); MOVZ X16, #0x1080, +note LSL 16; MOV SP, X16 (ADD immediate, C6.2.5); BL main (C6.2.43); [MOVZ X0, #0 for a void main]; MOVZ X8, +note #93; SVC #0. The entry word after the header is a B to it; the header gets the file and pool sizes. +note om4 EOF_PROG. +fn eof_prog to void +f = findfn 1852399981 4 0 +if eq f 0 +fail 16 +end +if ne get fn_np sub f 1 0 +fail 9 +end +wrword 176 or 335544320 and shr sub get oc 0 176 2 67108863 +emit 3533832220 +emit 3533836304 +emit 2432696863 +emit or 2483027968 and shr sub get fn_addr sub f 1 get oc 0 2 67108863 +if eq get fn_ret sub f 1 10 +emit 3531603968 +end +emit 3531606952 +emit 3556769793 +elfhdr +wrword 96 get oc 0 +wrword 104 get oc 0 +wrword 160 add get poolb 0 8388608 +writeout 0 +end + +note s_eof: end of input: no open function (error 15), some function (16); function mode: no globals or +note texts (9); one function: its bare words; more: the entry word, a B to the last function. om4 S_EOF. +note Resolve every call after all addresses are known. In function mode remove leaves of the call +note graph; any functions left after nf rounds form or reach a cycle (error 9). +fn resolve to void +n = get ncalls 0 +i = ulong 0 +while lt i n +s = get callsite i +f = sub get callto i 1 +wrword s or 2483027968 and shr sub get fn_addr f s 2 67108863 +i = add i 1 +end +if eq get progmode 0 0 +pass = ulong 0 +while lt pass get nf 0 +f = ulong 0 +while lt f get nf 0 +if eq get settled f 0 +ok = true +i = ulong 0 +while and ok lt i n +if eq get callfrom i add f 1 +if eq get settled sub get callto i 1 0 +ok = false +end +end +i = add i 1 +end +if ok +put settled f 1 +end +end +f = add f 1 +end +pass = add pass 1 +end +f = ulong 0 +while lt f get nf 0 +if eq get settled f 0 +fail 9 +end +f = add f 1 +end +end +end + +fn s_eof to void + +if ne get curret 0 0 +fail 15 +end +if eq get nf 0 0 +fail 16 +end +resolve +if ne get dmode 0 0 +dexport +end +if ne get progmode 0 0 +eof_prog +end +if ne get nglob 0 0 +fail 9 +end +if eq get nf 0 1 +writeout 180 +end +a = get fn_addr sub get lastfn 0 1 +wrword 176 or 335544320 and shr sub a 176 2 67108863 +writeout 176 +end + +note stmt: one line. Returns 1 at the end of the input. om4 STMT. +fn stmt to ulong +put nslot 0 get held 0 +tok +k = get tk 0 +if eq k 0 +ret 0 +end +if eq k 3 +s_eof +ret 1 +end +if ne k 1 +fail 16 +end +if gt get tl 0 8 +s_long +ret 0 +end +w = get tw 0 +c = kw w +if eq c 83 +skipnl +ret 0 +end +if eq c 64 +s_fn +ret 0 +end +if eq get curret 0 0 +if eq c 78 +s_global +ret 0 +end +if eq c 79 +s_text +ret 0 +end +if eq c 85 +skipnl +ret 0 +end +fail 16 +end +if eq c 66 +s_end +ret 0 +end +if eq c 68 +s_else +ret 0 +end +if ne get dead 0 0 +fail 17 +end +if eq c 0 +s_name w +ret 0 +end +if eq c 67 +s_if +ret 0 +end +if eq c 69 +s_while +ret 0 +end +if eq c 71 +s_for +ret 0 +end +if eq c 72 +s_ret +ret 0 +end +if eq c 80 +s_put +ret 0 +end +if eq c 82 +s_exit +ret 0 +end +if or or or eq c 77 eq c 78 eq c 79 eq c 81 +fail 9 +end +if eq c 85 +fail 9 +end +fail 16 +ret 0 +end + +note ======== program mode: some line is `fn main` (blanks, fn, blanks, main, then a blank or the end) ======== +note skipbl: the first place at or after q that is not a space or tab (or the end) +fn skipbl q ulong to ulong +e = get inlen 0 +p = q +go = true +while go +m = ulong 0 +while and go lt m 999999 +if ge p e +go = false +else +b = get inp p +if or eq b 32 eq b 9 +p = add p 1 +else +go = false +end +end +m = add m 1 +end +end +ret p +end + +note skipln: the place after the next newline at or after q (or the end) +fn skipln q ulong to ulong +e = get inlen 0 +p = q +go = true +while go +m = ulong 0 +while and go lt m 999999 +if ge p e +go = false +else +b = get inp p +p = add p 1 +if eq b 10 +go = false +end +end +m = add m 1 +end +end +ret p +end + +note ps_at: the line's first byte that is not blank is at p: 1 when the line is `fn main`, 2 when the input +note ends while deciding, else 0. om4 PS_LINE .. PS_YES. +fn ps_at p ulong to ulong +e = get inlen 0 +if ne get inp p 102 +ret 0 +end +q = add p 1 +if ge q e +ret 2 +end +if ne get inp q 110 +ret 0 +end +r = add q 1 +q = skipbl r +if ge q e +ret 2 +end +if eq q r +ret 0 +end +if gt add q 4 e +ret 0 +end +if ne get inp q 109 +ret 0 +end +if ne get inp add q 1 97 +ret 0 +end +if ne get inp add q 2 105 +ret 0 +end +if ne get inp add q 3 110 +ret 0 +end +if ge add q 4 e +ret 1 +end +if gt get inp add q 4 32 +ret 0 +end +ret 1 +end + +fn prescan to void +e = get inlen 0 +p = ulong 0 +go = true +while go +m = ulong 0 +while and go lt m 999999 +p = skipbl p +if ge p e +go = false +else +r = ps_at p +if eq r 1 +put progmode 0 1 +go = false +end +if eq r 2 +go = false +end +if go +p = skipln p +if ge p e +go = false +end +end +end +m = add m 1 +end +end +end + +note First collect signatures. Only fn headers are parsed here; other lines are read in the body pass. +fn namescan to void +put scanning 0 1 +put line 0 1 +go = true +while go +n = ulong 0 +while and go lt n 999999 +tok +if eq get tk 0 3 +go = false +else +if ne get tk 0 0 +if and eq get tk 0 1 eq get tw 0 28262 +put dtoken 0 get ts 0 +s_fn +else +if and eq get tk 0 1 eq get tw 0 127970521019507 +s_struct +else +skipnl +end +end +end +end +n = add n 1 +end +end +put scanning 0 0 +put cur 0 0 +put line 0 1 +put nn 0 0 +put curfn 0 0 +put curret 0 0 +put npar 0 0 +put nslot 0 0 +put held 0 0 +end + +note ======== R6 structs (omc only; om4 stays the parent that rebuilds this file) ======== +note A struct is 8-byte cells, declaration order, no padding (OSC-2). new is a stack slot, given +note back at ret, like a local array. There is no free (decision 24). Field scale: cell << (3 - tlog) +note so a typed store lands on cell * 8. Pack of struct is 127970521019507 (Wolfram, little-endian). + +note findstruct: packed name -> index + 1, or 0 +fn findstruct w ulong to ulong +i = ulong 0 +n = get nst 0 +while lt i n +if eq get st_name i w +ret add i 1 +end +i = add i 1 +end +ret 0 +end + +note findfield: struct index, packed field name -> field-table index + 1, or 0 +fn findfield si ulong w ulong to ulong +fo = ulong get st_foff si +nfd = ulong get st_nf si +i = ulong 0 +while lt i nfd +j = add fo i +if eq get sf_name j w +ret add j 1 +end +i = add i 1 +end +ret 0 +end + +note field_dup: 1 if w is already a field of the struct being read (fields fo .. nsf) +fn field_dup fo ulong w ulong to ulong +i = fo +e = get nsf 0 +while lt i e +if eq get sf_name i w +ret 1 +end +i = add i 1 +end +ret 0 +end + +note s_field: the current word is a field name of struct w. Returns the cell count after this field. +fn s_field w ulong fo ulong cells ulong to ulong +if ne kw get tw 0 0 +fail 16 +end +if gt get tl 0 8 +fail 13 +end +fw = get tw 0 +if eq fw w +fail 10 +end +if ne findstruct fw 0 +fail 10 +end +if ne field_dup fo fw 0 +fail 10 +end +t = typeword +ln = ulong 0 +p = get cur 0 +ln0 = get line 0 +tok +if eq get tk 0 2 +ln = get tw 0 +if ne get tbig 0 0 +fail 14 +end +if or eq ln 0 gt ln 64 +fail 14 +end +else +put cur 0 p +put line 0 ln0 +end +addc = ulong 1 +if ne ln 0 +addc = ln +end +if gt add cells addc 64 +fail 14 +end +put sf_name get nsf 0 fw +put sf_type get nsf 0 uchar t +put sf_len get nsf 0 uchar ln +put sf_off get nsf 0 uchar cells +put nsf 0 add get nsf 0 1 +ret add cells addc +end + +note s_struct: struct Name (field type [len])* end. Before any fn (namescan). 1..16 fields, <= 64 cells. +fn s_struct to void +if ne get nf 0 0 +fail 9 +end +tok +if ne get tk 0 1 +fail 16 +end +if gt get tl 0 8 +fail 13 +end +if ne kw get tw 0 0 +fail 16 +end +w = get tw 0 +if ne findstruct w 0 +fail 10 +end +if ne findfn w get tl 0 get ts 0 0 +fail 10 +end +if ge get nst 0 16 +fail 14 +end +sid = get nst 0 +fo = get nsf 0 +cells = ulong 0 +nfld = ulong 0 +go = true +while go +tok +if eq get tk 0 0 +fail 4 +end +if ne get tk 0 1 +fail 16 +end +if eq kw get tw 0 66 +go = false +else +if ge nfld 16 +fail 14 +end +cells = s_field w fo cells +nfld = add nfld 1 +end +end +if eq nfld 0 +fail 16 +end +put st_name sid w +put st_nf sid uchar nfld +put st_cells sid uchar cells +put st_foff sid uchar fo +put nst 0 add sid 1 +eol +end + +note peek_struct: if the next word is a struct name, consume it and return index + 1; else rewind +fn peek_struct to ulong +p = get cur 0 +ln = get line 0 +tok +if ne get tk 0 1 +put cur 0 p +put line 0 ln +ret 0 +end +sid = findstruct get tw 0 +if eq sid 0 +put cur 0 p +put line 0 ln +ret 0 +end +ret sid +end + +note fn_p_st: parameter pw is view (k 2, name kind 8) or edit (k 3, name kind 7). fn_pk is 6 or 7. +fn fn_p_st f ulong np ulong pw ulong sid ulong k ulong to void +si = sub sid 1 +t = add si 16 +ln = ulong get st_cells si +sk = add k 4 +if eq k 2 +addname pw poolc np t ln 8 0 +else +addname pw poolc np t ln 7 0 +end +p = add mul f 6 np +put fn_pt p uchar t +put fn_pl p ln +put fn_pk p uchar sk +end + +note sa_new: name = new . Rewind unless the next word is a struct name. +fn sa_new w ulong to void +p = get cur 0 +ln = get line 0 +tok +sid = ulong 0 +if eq get tk 0 1 +sid = findstruct get tw 0 +end +if ne sid 0 +sa_st w sid +ret +end +put cur 0 p +put line 0 ln +sa_arr w +end + +note st_read: one value per field, saved in svk/svv/svt. An array field takes one value. +fn st_read si ulong to void +fo = ulong get st_foff si +nfd = ulong get st_nf si +i = ulong 0 +while lt i nfd +ft = ulong get sf_type add fo i +rdval 0 ft 255 0 +if ne get rt 0 ft +fail 7 +end +put svk i get rk 0 +put svv i get rv 0 +put svt i get rt 0 +i = add i 1 +end +end + +note st_store: STR of v at cell, scaled so the typed store lands on cell * 8. ADD is not used; the +note index register holds cell << (3 - tlog). STR register-offset is the STOP table (om4). +fn st_store base ulong idx ulong cell ulong t ulong v ulong to void +matconst idx shl cell sub 3 tlog t +put ea_b 0 base +put ea_i 0 idx +stel t v +end + +note st_ixreg: runtime element index iv, field length fl, cell offset off. CMP + B.HS trap 3 +note (elemaddr, C6.2.96 / C6.2.34), then ADD Xidx, Xiv, #off (C6.2.5, base word 2432696320) and +note LSL by 3 - tlog (bo_lsl) so the STOP store lands on (off + i) * 8. +fn st_ixreg idx ulong iv ulong off ulong fl ulong t ulong to void +emit or or 4043309087 shl fl 10 shl iv 5 +trapc 2 3 +emit or or or 2432696320 idx shl iv 5 shl off 10 +sh = sub 3 tlog t +if ne sh 0 +bo_lsl idx sh idx +end +end + +note st_ld: LDR of type t from base + idx into dst (or a new register). LDOP table, as vt_get. +fn st_ld base ulong idx ulong t ulong dst ulong to void +rd = destreg dst +w = or ldop t rd +emit or or w shl base 5 shl idx 16 +put rk 0 1 +put rv 0 rd +put rt 0 t +end + +note st_write1: store field j (value saved at sv* i) into the struct at base. +fn st_write1 base ulong tmp ulong idx ulong j ulong i ulong to void +ft = ulong get sf_type j +fl = ulong get sf_len j +off = ulong get sf_off j +force get svk i get svv i get svt i tmp +if eq fl 0 +st_store base idx off ft tmp +else +k = ulong 0 +while lt k fl +st_store base idx add off k ft tmp +k = add k 1 +end +end +end + +note st_write: store each field value. An array field is filled with its one value. +fn st_write base ulong tmp ulong idx ulong si ulong to void +fo = ulong get st_foff si +nfd = ulong get st_nf si +i = ulong 0 +while lt i nfd +st_write1 base tmp idx add fo i i +i = add i 1 +end +end + +note sa_st: p = new S v1 .. vn. Stack slot of the cell count, 16-byte aligned, outermost block only. +fn sa_st w ulong sid ulong to void +if ne get nb 0 0 +fail 9 +end +si = sub sid 1 +cells = ulong get st_cells si +by = shl shr add shl cells 3 15 4 4 +s = add get stkbytes 0 by +if gt s 4194304 +fail 23 +end +put stkbytes 0 s +r = alloc +put held 0 get nslot 0 +st_read si +spsub by +stkchk +emit or 2432697312 r +tmp = alloc +idx = alloc +st_write r tmp idx si +addname w r add si 16 cells 6 0 +end + +note vt_fget_go: field j of struct name e. Scalar, or an index then the element. +fn vt_fget_go e ulong dst ulong j ulong to void +fl = ulong get sf_len j +ft = ulong get sf_type j +off = ulong get sf_off j +base = ulong get nm_reg sub e 1 +idx = alloc +if eq fl 0 +st_store_ld base idx off ft dst +else +rdval 0 5 255 0 +if eq get rt 0 1 +fail 7 +end +if eq get rk 0 3 +if ge get rv 0 fl +fail 21 +end +st_store_ld base idx add off get rv 0 ft dst +else +if ne get rk 0 1 +fail 7 +end +st_ixreg idx get rv 0 off fl ft +st_ld base idx ft dst +end +end +end + +note vt_fget: get p f, or get p f i for an array field. Kind 6 own, 7 edit, 8 view; all may be read. +fn vt_fget e ulong dst ulong to void +i = sub e 1 +tok +if ne get tk 0 1 +fail 16 +end +if gt get tl 0 8 +fail 13 +end +si = sub ulong get nm_type i 16 +fid = findfield si get tw 0 +if eq fid 0 +fail 3 +end +vt_fget_go e dst sub fid 1 +end + +note st_store_ld: constant cell, then load. Split out so vt_fget stays under 16 registers. +fn st_store_ld base ulong idx ulong cell ulong t ulong dst ulong to void +matconst idx shl cell sub 3 tlog t +st_ld base idx t dst +end + +note s_putf_go: field j of struct name e. Read the value (and the index, if an array field) and store. +fn s_putf_go e ulong j ulong to void +fl = ulong get sf_len j +ft = ulong get sf_type j +off = ulong get sf_off j +base = ulong get nm_reg sub e 1 +if ne fl 0 +rdval 0 5 255 0 +if eq get rt 0 1 +fail 7 +end +put svk 0 get rk 0 +put svv 0 get rv 0 +put svt 0 get rt 0 +end +rdval 0 ft 255 0 +if ne get rt 0 ft +fail 7 +end +v = matreg get rk 0 get rv 0 get rt 0 +idx = alloc +if eq fl 0 +st_store base idx off ft v +else +s_putf_ix base idx v off fl ft +end +eol +end + +note s_putf: put p f v, or put p f i v. A view struct is error 20. +fn s_putf e ulong to void +i = sub e 1 +if eq ulong get nm_kind i 8 +fail 20 +end +tok +if ne get tk 0 1 +fail 16 +end +if gt get tl 0 8 +fail 13 +end +si = sub ulong get nm_type i 16 +fid = findfield si get tw 0 +if eq fid 0 +fail 3 +end +s_putf_go e sub fid 1 +end + +note s_putf_ix: the index was saved in svk/svv/svt before the value was read +fn s_putf_ix base ulong idx ulong v ulong off ulong fl ulong ft ulong to void +ik = get svk 0 +iv = get svv 0 +if eq get svt 0 1 +fail 7 +end +if eq ik 3 +if ge iv fl +fail 21 +end +st_store base idx add off iv ft v +else +if ne ik 1 +fail 7 +end +st_ixreg idx iv off fl ft +put ea_b 0 base +put ea_i 0 idx +stel ft v +end +end + +note ca_st_ok: read one struct argument of parameter i of function f. Returns the name entry. +fn ca_st_ok f ulong i ulong to ulong +md = ulong 0 +aa_word +w = get tw 0 +c = kw w +if ne c 0 +if or lt c 57 gt c 58 +fail 16 +end +md = c +aa_word +w = get tw 0 +end +e = findname w +if eq e 0 +fail 3 +end +ni = sub e 1 +k = ulong get nm_kind ni +if lt k 6 +fail 7 +end +p = add mul sub f 1 6 i +pk = ulong get fn_pk p +if eq pk 7 +if eq md 57 +fail 20 +end +if eq k 8 +fail 20 +end +else +if eq md 58 +fail 7 +end +end +if ne ulong get nm_type ni ulong get fn_pt p +fail 7 +end +ret e +end + +note ca_dist: the same struct name passed twice in one call is error 19. +fn ca_dist cb ulong i ulong e ulong to void +j = ulong 0 +while lt j i +if eq get fr add add cb mul j 3 2 e +fail 19 +end +j = add j 1 +end +end + +note ca_st: a struct argument. edit (fn_pk 7) needs own or edit; view takes any. Same struct. +fn ca_st f ulong i ulong cb ulong to void +e = ca_st_ok f i +ca_dist cb i e +q = add cb mul i 3 +put fr q 5 +put fr add q 1 ulong get nm_reg sub e 1 +put fr add q 2 e +end + +note Definition export SHA256 arithmetic is reused from source-aware/vendor/sha256.om +note at cd2c41f3c697524629585b2a228e2f0ab5b99c45, SHA256 +note 12d492b5f99b47b1e525067e1660c7cedbf6b414032cfc8b7e174919a28c052c. +note Only identifiers are namespaced; the AGPL-3.0-or-later notice is retained. +note SPDX-License-Identifier: AGPL-3.0-or-later +note Exact native TRN1 SHA256 functions; see NOTICE. Buffer declarations bounded for this caller. +global dBuf uchar 8192 +global dH uint 8 +global dVv uint 8 +global dW uint 64 +global dK uint 64 +global dHb uchar 64 +global dHs ulong 2 +global dHash uchar 32 +fn drotate x uint n uint to uint +ret or shr x n shl x sub 32 n +end + +fn dround i ulong to void +e = get dVv 4 +a = get dVv 0 +s = xor xor drotate e 6 drotate e 11 drotate e 25 +c = xor and e get dVv 5 and not e get dVv 6 +t = add add get dVv 7 s add c add get dK i get dW i +s = xor xor drotate a 2 drotate a 13 drotate a 22 +c = and a get dVv 1 +c = xor c and a get dVv 2 +c = xor c and get dVv 1 get dVv 2 +u = add s c +put dVv 7 get dVv 6 +put dVv 6 get dVv 5 +put dVv 5 e +put dVv 4 add get dVv 3 t +put dVv 3 get dVv 2 +put dVv 2 get dVv 1 +put dVv 1 a +put dVv 0 add t u +end + +fn dblock to void +for i ulong 16 +x = uint 0 +for j ulong 4 +x = or shl x 8 uint get dHb add mul i 4 j +end +put dW i x +end +for j ulong 48 +i = add j 16 +x = get dW sub i 15 +y = get dW sub i 2 +s = xor xor drotate x 7 drotate x 18 shr x 3 +t = xor xor drotate y 17 drotate y 19 shr y 10 +put dW i add add get dW sub i 16 s add get dW sub i 7 t +end +for i ulong 8 +put dVv i get dH i +end +for i ulong 64 +dround i +end +for i ulong 8 +put dH i add get dH i get dVv i +end +end + +fn dhinit to void +put dH 0 1779033703 +put dH 1 3144134277 +put dH 2 1013904242 +put dH 3 2773480762 +put dH 4 1359893119 +put dH 5 2600822924 +put dH 6 528734635 +put dH 7 1541459225 +put dHs 0 0 +put dHs 1 0 +end + +fn dhbyte c uchar to void +p = get dHs 0 +put dHb p c +p = add p 1 +put dHs 1 add get dHs 1 1 +if eq p 64 +dblock +p = 0 +end +put dHs 0 p +end + +fn dupdate off ulong count ulong to void +for i ulong count +dhbyte get dBuf add off i +end +end + +fn dhfinish to void +bits = mul get dHs 1 8 +dhbyte 128 +while ne get dHs 0 56 +dhbyte 0 +end +for i ulong 8 +dhbyte uchar and shr bits mul sub 7 i 8 255 +end +for i ulong 32 +x = get dH div i 4 +put dHash i uchar and shr x uint mul sub 3 rem i 4 8 255 +end +end + +fn dconst to void +put dK 0 1116352408 +put dK 1 1899447441 +put dK 2 3049323471 +put dK 3 3921009573 +put dK 4 961987163 +put dK 5 1508970993 +put dK 6 2453635748 +put dK 7 2870763221 +put dK 8 3624381080 +put dK 9 310598401 +put dK 10 607225278 +put dK 11 1426881987 +put dK 12 1925078388 +put dK 13 2162078206 +put dK 14 2614888103 +put dK 15 3248222580 +put dK 16 3835390401 +put dK 17 4022224774 +put dK 18 264347078 +put dK 19 604807628 +put dK 20 770255983 +put dK 21 1249150122 +put dK 22 1555081692 +put dK 23 1996064986 +put dK 24 2554220882 +put dK 25 2821834349 +put dK 26 2952996808 +put dK 27 3210313671 +put dK 28 3336571891 +put dK 29 3584528711 +put dK 30 113926993 +put dK 31 338241895 +put dK 32 666307205 +put dK 33 773529912 +put dK 34 1294757372 +put dK 35 1396182291 +put dK 36 1695183700 +put dK 37 1986661051 +put dK 38 2177026350 +put dK 39 2456956037 +put dK 40 2730485921 +put dK 41 2820302411 +put dK 42 3259730800 +put dK 43 3345764771 +put dK 44 3516065817 +put dK 45 3600352804 +put dK 46 4094571909 +put dK 47 275423344 +put dK 48 430227734 +put dK 49 506948616 +put dK 50 659060556 +put dK 51 883997877 +put dK 52 958139571 +put dK 53 1322822218 +put dK 54 1537002063 +put dK 55 1747873779 +put dK 56 1955562222 +put dK 57 2024104815 +put dK 58 2227730452 +put dK 59 2361852424 +put dK 60 2428436474 +put dK 61 2756734187 +put dK 62 3204031479 +put dK 63 3329325298 +end + + +note Detect framed mode early so bounded framing failures remain structured. +fn ddetect to void +if lt get inlen 0 5 +ret +end +if ne get inp 0 79 +ret +end +if ne get inp 1 77 +ret +end +if ne get inp 2 68 +ret +end +if ne get inp 3 69 +ret +end +if ne get inp 4 70 +ret +end +put dmode 0 1 +if gt get inlen 0 66264 +fail 81 +end +end + +fn dget32 p ulong to ulong +v = ulong 0 +for i ulong 4 +v = or v shl ulong get inp add p i mul i 8 +end +ret v +end + +note Metadata identifies a corpus coordinate, not an authorization grant. +fn dframe to void +if eq get dmode 0 0 +ret +end +if lt get inlen 0 24 +fail 80 +end +if ne get inp 5 48 +fail 80 +end +if ne get inp 6 48 +fail 80 +end +if ne get inp 7 49 +fail 80 +end +r = dget32 8 +p = dget32 12 +v = dget32 16 +n = dget32 20 +if or eq r 0 gt r 128 +fail 82 +end +if or eq p 0 gt p 512 +fail 82 +end +if and ne v 40 ne v 64 +fail 82 +end +if or eq n 0 gt n 65536 +fail 81 +end +m = add add r p v +if ne add add 24 m n get inlen 0 +fail 80 +end +for i ulong m +b = get inp add 24 i +if or lt b 33 gt b 126 +fail 82 +end +put dmeta i b +end +for i ulong v +b = get dmeta add add r p i +if not or and ge b 48 le b 57 and ge b 97 le b 102 +fail 82 +end +end +put drepo 0 r +put dpath 0 p +put drev 0 v +for i ulong n +put inp i get inp add add 24 m i +end +put inlen 0 n +dconst +dhinit +for i ulong n +dhbyte get inp i +end +dhfinish +for i ulong 32 +put dsrcsha i get dHash i +end +end + +note LE u32 hashing is length-delimited, domain-separated, and independent of revision/order. +fn dh32 v ulong to void +for i ulong 4 +dhbyte uchar and shr v mul i 8 255 +end +end + +fn did f ulong to void +dhinit +dhbyte 79 +dhbyte 109 +dhbyte 68 +dhbyte 101 +dhbyte 102 +dhbyte 73 +dhbyte 100 +dhbyte 49 +dh32 get drepo 0 +for i ulong get drepo 0 +dhbyte get dmeta i +end +dh32 get dpath 0 +for i ulong get dpath 0 +dhbyte get dmeta add get drepo 0 i +end +dh32 1 +dh32 get fn_nmlen f +for i ulong get fn_nmlen f +dhbyte get inp add get fn_off f i +end +dhfinish +end + +fn dheader code ulong count ulong to void +put oc 0 0 +emitb 79 +emitb 77 +emitb 68 +emitb 69 +emitb 70 +emitb 82 +emitb 48 +emitb 49 +emit 1 +emit code +emit get inlen 0 +emit count +for i ulong 32 +emitb get dsrcsha i +end +end + +note A refusal has no records. Only structured framing bytes are exposed on stdout. +fn derror code ulong to void +dheader code 0 +p = ulong 0 +while lt p 56 +n = write 1 out p sub 56 p +if le n 0 +exit int 2 +end +p = add p ulong n +end +exit int code +end + +note Export only after the ordinary complete compiler passes and call resolution succeed. +fn dexport to void +dheader 0 get nf 0 +for f ulong get nf 0 +emit 1 +emit get dstart f +emit get dend f +emit get fn_nmlen f +did f +for i ulong 32 +emitb get dHash i +end +for i ulong get fn_nmlen f +emitb get inp add get fn_off f i +end +end +writeout 0 +end + +note main: read all of stdin +note (8 MiB at most, error 14; a read error is 1), find the mode, then one +note statement per line from output byte 180 (om4 START .. STMT) +fn main to int +off = ulong 0 +go = true +while go +m = ulong 0 +while and go lt m 999999 +if ge off len inp +fail 14 +end +n = read 0 inp off sub len inp off +if eq n 0 +go = false +else +if lt n 0 +fail 1 +end +off = add off ulong n +put inlen 0 off +ddetect +end +m = add m 1 +end +end +put inlen 0 off +dframe +prescan +namescan +put oc 0 180 +put line 0 1 +done = false +while not done +m = ulong 0 +while and not done lt m 999999 +if ne stmt 0 +done = true +end +m = add m 1 +end +end +ret 0 +end diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case0.exit b/evidence/ECOSYSTEM660/definitions/mutant2.case0.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant2.case0.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case0.response b/evidence/ECOSYSTEM660/definitions/mutant2.case0.response new file mode 100644 index 000000000..73ce183bf Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant2.case0.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case0.stderr b/evidence/ECOSYSTEM660/definitions/mutant2.case0.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case1.exit b/evidence/ECOSYSTEM660/definitions/mutant2.case1.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant2.case1.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case1.response b/evidence/ECOSYSTEM660/definitions/mutant2.case1.response new file mode 100644 index 000000000..a29eb5691 Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant2.case1.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case1.stderr b/evidence/ECOSYSTEM660/definitions/mutant2.case1.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case10.exit b/evidence/ECOSYSTEM660/definitions/mutant2.case10.exit new file mode 100644 index 000000000..d15a2cc44 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant2.case10.exit @@ -0,0 +1 @@ +80 diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case10.response b/evidence/ECOSYSTEM660/definitions/mutant2.case10.response new file mode 100644 index 000000000..8f9fdd1cf Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant2.case10.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case10.stderr b/evidence/ECOSYSTEM660/definitions/mutant2.case10.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case11.exit b/evidence/ECOSYSTEM660/definitions/mutant2.case11.exit new file mode 100644 index 000000000..d88e31369 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant2.case11.exit @@ -0,0 +1 @@ +81 diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case11.response b/evidence/ECOSYSTEM660/definitions/mutant2.case11.response new file mode 100644 index 000000000..a87d08dfe Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant2.case11.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case11.stderr b/evidence/ECOSYSTEM660/definitions/mutant2.case11.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case12.exit b/evidence/ECOSYSTEM660/definitions/mutant2.case12.exit new file mode 100644 index 000000000..d15a2cc44 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant2.case12.exit @@ -0,0 +1 @@ +80 diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case12.response b/evidence/ECOSYSTEM660/definitions/mutant2.case12.response new file mode 100644 index 000000000..8dbb1ca7e Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant2.case12.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case12.stderr b/evidence/ECOSYSTEM660/definitions/mutant2.case12.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case2.exit b/evidence/ECOSYSTEM660/definitions/mutant2.case2.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant2.case2.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case2.response b/evidence/ECOSYSTEM660/definitions/mutant2.case2.response new file mode 100644 index 000000000..73ce183bf Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant2.case2.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case2.stderr b/evidence/ECOSYSTEM660/definitions/mutant2.case2.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case3.exit b/evidence/ECOSYSTEM660/definitions/mutant2.case3.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant2.case3.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case3.response b/evidence/ECOSYSTEM660/definitions/mutant2.case3.response new file mode 100644 index 000000000..3fcafdbad Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant2.case3.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case3.stderr b/evidence/ECOSYSTEM660/definitions/mutant2.case3.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case4.exit b/evidence/ECOSYSTEM660/definitions/mutant2.case4.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant2.case4.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case4.response b/evidence/ECOSYSTEM660/definitions/mutant2.case4.response new file mode 100644 index 000000000..34a5f179b Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant2.case4.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case4.stderr b/evidence/ECOSYSTEM660/definitions/mutant2.case4.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case5.exit b/evidence/ECOSYSTEM660/definitions/mutant2.case5.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant2.case5.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case5.response b/evidence/ECOSYSTEM660/definitions/mutant2.case5.response new file mode 100644 index 000000000..f05711f45 Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant2.case5.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case5.stderr b/evidence/ECOSYSTEM660/definitions/mutant2.case5.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case6.exit b/evidence/ECOSYSTEM660/definitions/mutant2.case6.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant2.case6.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case6.response b/evidence/ECOSYSTEM660/definitions/mutant2.case6.response new file mode 100644 index 000000000..73ce183bf Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant2.case6.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case6.stderr b/evidence/ECOSYSTEM660/definitions/mutant2.case6.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case7.exit b/evidence/ECOSYSTEM660/definitions/mutant2.case7.exit new file mode 100644 index 000000000..f599e28b8 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant2.case7.exit @@ -0,0 +1 @@ +10 diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case7.response b/evidence/ECOSYSTEM660/definitions/mutant2.case7.response new file mode 100644 index 000000000..ecff35538 Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant2.case7.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case7.stderr b/evidence/ECOSYSTEM660/definitions/mutant2.case7.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case8.exit b/evidence/ECOSYSTEM660/definitions/mutant2.case8.exit new file mode 100644 index 000000000..7f8f011eb --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant2.case8.exit @@ -0,0 +1 @@ +7 diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case8.response b/evidence/ECOSYSTEM660/definitions/mutant2.case8.response new file mode 100644 index 000000000..29c172155 Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant2.case8.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case8.stderr b/evidence/ECOSYSTEM660/definitions/mutant2.case8.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case9.exit b/evidence/ECOSYSTEM660/definitions/mutant2.case9.exit new file mode 100644 index 000000000..60d3b2f4a --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant2.case9.exit @@ -0,0 +1 @@ +15 diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case9.response b/evidence/ECOSYSTEM660/definitions/mutant2.case9.response new file mode 100644 index 000000000..d12511884 Binary files /dev/null and b/evidence/ECOSYSTEM660/definitions/mutant2.case9.response differ diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.case9.stderr b/evidence/ECOSYSTEM660/definitions/mutant2.case9.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.check.exit b/evidence/ECOSYSTEM660/definitions/mutant2.check.exit new file mode 100644 index 000000000..d00491fd7 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant2.check.exit @@ -0,0 +1 @@ +1 diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.check.stderr b/evidence/ECOSYSTEM660/definitions/mutant2.check.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.check.stdout b/evidence/ECOSYSTEM660/definitions/mutant2.check.stdout new file mode 100644 index 000000000..f7548e391 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant2.check.stdout @@ -0,0 +1 @@ +947 223 diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.compile.exit b/evidence/ECOSYSTEM660/definitions/mutant2.compile.exit new file mode 100644 index 000000000..573541ac9 --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant2.compile.exit @@ -0,0 +1 @@ +0 diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.compile.stderr b/evidence/ECOSYSTEM660/definitions/mutant2.compile.stderr new file mode 100644 index 000000000..e69de29bb diff --git a/evidence/ECOSYSTEM660/definitions/mutant2.om b/evidence/ECOSYSTEM660/definitions/mutant2.om new file mode 100644 index 000000000..10674b25c --- /dev/null +++ b/evidence/ECOSYSTEM660/definitions/mutant2.om @@ -0,0 +1,4165 @@ +note omc: the Omega compiler written in Omega (the om4 subset). Reads Omegese on stdin, writes a runnable +note AArch64 Linux program (or bare function words) on stdout. Built first by om4; its codegen matches om4 +note byte for byte, so om4(X) == omc(X) on every program (seed chain rung 5, ledger L408). +note All compiler state lives in fixed global pools (decision 24: no heap). Every working value is a ulong +note (raw 64 bits) so the language's checked conversions never fire on om4's untyped-register logic. + +note ---- input, output, token ---- +global inp uchar 8388608 +global inlen ulong 1 +global cur ulong 1 +global line ulong 1 +global tk ulong 1 +global tw ulong 1 +global tl ulong 1 +global ts ulong 1 +global tbig ulong 1 +global out uchar 8388608 +global oc ulong 1 + +note Definition export v1 is an opt-in framed compiler result, never a second parser. +global dmode ulong 1 +global dmeta uchar 704 +global drepo ulong 1 +global dpath ulong 1 +global drev ulong 1 +global dstart ulong 512 +global dend ulong 512 +global dtoken ulong 1 +global dsrcsha uchar 32 + +note ---- name table (1024 names in scope): packed name, register, type, length, kind, address ---- +global nm_name ulong 1024 +global nm_reg uchar 1024 +global nm_type uchar 1024 +global nm_len ulong 1024 +global nm_kind uchar 1024 +global nm_addr ulong 1024 +global nn ulong 1 + +note ---- function table (512): name, address (byte offset in out), return type, parameter count, +note per-parameter type/length/kind (6 each), name length, name offset in the input ---- +global fn_name ulong 512 +global fn_addr ulong 512 +global fn_ret uchar 512 +global fn_np uchar 512 +global fn_pt uchar 3072 +global fn_pl ulong 3072 +global fn_pk uchar 3072 +global fn_nmlen ulong 512 +global fn_off ulong 512 +global nf ulong 1 +global lastfn ulong 1 +global scanning ulong 1 +global ncalls ulong 1 +global callsite ulong 65536 +global callfrom ulong 65536 +global callto ulong 65536 +global settled uchar 512 + + +note ---- compiler state ---- +global npar ulong 1 +global held ulong 1 +global nslot ulong 1 +global curret ulong 1 +global progmode ulong 1 +global nglob ulong 1 +global stkbytes ulong 1 +global dead ulong 1 +global poolb ulong 1 + +note ---- structs (16) and fields (256). R6. nm_type 16+index, kind 6 own, 7 edit, 8 view ---- +global st_name ulong 16 +global st_nf uchar 16 +global st_cells uchar 16 +global st_foff uchar 16 +global nst ulong 1 +global sf_name ulong 256 +global sf_type uchar 256 +global sf_len uchar 256 +global sf_off uchar 256 +global nsf ulong 1 +global svk ulong 16 +global svv ulong 16 +global svt ulong 16 + +note ======== leaf helpers ======== + +note poolc: the i-th register of the pool x0..x6, x8..x15, x17 (x7 is the runtime, x16 scratch) +fn poolc i ulong to ulong +if lt i 7 +ret i +end +if lt i 15 +ret add i 1 +end +ret 17 +end + +note ---- error reporting ---- +global msg uchar 64 +global mc ulong 1 + +fn mputb b uchar to void +m = get mc 0 +put msg m b +put mc 0 add m 1 +end + +fn mputn v ulong to void +d = new uchar 20 0 +i = ulong 0 +x = v +put d 0 uchar add rem x 10 48 +x = div x 10 +i = add i 1 +while gt x 0 +put d i uchar add rem x 10 48 +x = div x 10 +i = add i 1 +end +j = i +while gt j 0 +j = sub j 1 +mputb get d j +end +end + +note fail: write "omc: line N: error E" to stderr (fd 2) and exit with the code +fn fail code ulong to void +if ne get dmode 0 0 +derror code +end +put mc 0 0 +mputb 111 +mputb 109 +mputb 99 +mputb 58 +mputb 32 +mputb 108 +mputb 105 +mputb 110 +mputb 101 +mputb 32 +mputn get line 0 +mputb 58 +mputb 32 +mputb 101 +mputb 114 +mputb 114 +mputb 111 +mputb 114 +mputb 32 +mputn code +mputb 10 +w = write 2 msg 0 get mc 0 +exit int code +end + +note emitb / emit: one byte / one 32-bit word (little-endian) to the output; error 14 when it is full +note (om4 EMIT, EMITB: the 8 MiB output area) +fn emitb b uchar to void +o = get oc 0 +if ge o 8388608 +fail 14 +end +put out o b +put oc 0 add o 1 +end + +fn emit w ulong to void +if ge get oc 0 8388608 +fail 14 +end +emitb uchar and w 255 +emitb uchar and shr w 8 255 +emitb uchar and shr w 16 255 +emitb uchar and shr w 24 255 +end + +note tok_num: the word at [ts,cur) is [-]decimal, at most 20 digits, from -2^63 to 2^64 - 1 (error 6 +note bad number, 8 out of range). tw = its raw 64 bits (a negative one as two's complement); tbig = 1 +note when it is 2^63 or more (only a ulong holds it), else 0. As om4's TK_NUM. +fn tok_num to void +p = get ts 0 +e = get cur 0 +minus = false +if eq get inp p 45 +minus = true +p = add p 1 +end +ndig = sub e p +if eq ndig 0 +fail 6 +end +if gt ndig 20 +fail 6 +end +v = ulong 0 +lim = ulong 1844674407370955161 +i = p +while lt i e +d = sub ulong get inp i 48 +if gt d 9 +fail 6 +end +if gt v lim +fail 8 +end +if and eq v lim gt d 5 +fail 8 +end +v = add mul v 10 d +i = add i 1 +end +half = shl ulong 1 63 +put tbig 0 0 +if minus +if gt v half +fail 8 +end +put tw 0 sub ulong 0 v +else +if ge v half +put tbig 0 1 +end +put tw 0 v +end +put tk 0 2 +end + +note tok_text: a text literal starting at the opening quote. tw = first byte offset, tl = source length +note (escapes not yet decoded). Ends at an unescaped '"' on the same line, followed by a blank/end. Err 22. +note (Loops over the input are two loops, the inner under 1000000 passes: om4 has no pass limit.) +fn tok_text to void +put cur 0 add get cur 0 1 +put tw 0 get cur 0 +go = true +while go +n = ulong 0 +while and go lt n 999999 +if ge get cur 0 get inlen 0 +fail 22 +end +b = get inp get cur 0 +if eq b 10 +fail 22 +end +if eq b 34 +go = false +else +put cur 0 add get cur 0 1 +if eq b 92 +if ge get cur 0 get inlen 0 +fail 22 +end +if eq get inp get cur 0 10 +fail 22 +end +put cur 0 add get cur 0 1 +end +end +n = add n 1 +end +end +put tl 0 sub get cur 0 get tw 0 +put cur 0 add get cur 0 1 +put tk 0 4 +if lt get cur 0 get inlen 0 +if gt get inp get cur 0 32 +fail 22 +end +end +end + +note tok2: a word at cur with first byte c; packs 8 bytes into tw, sets tl and ts. A '"' is a text; a +note first byte '-' or a digit is a number. +fn tok2 c uchar to void +if eq c 34 +tok_text +ret +end +put ts 0 get cur 0 +w = ulong 0 +sh = ulong 0 +n = ulong 0 +go = true +while go +m = ulong 0 +while and go lt m 999999 +if ge get cur 0 get inlen 0 +go = false +else +b = get inp get cur 0 +if le b 32 +go = false +else +if lt n 8 +w = or w shl ulong b sh +sh = add sh 8 +end +n = add n 1 +put cur 0 add get cur 0 1 +end +end +m = add m 1 +end +end +put tw 0 w +put tl 0 n +f = get inp get ts 0 +isnum = false +if eq f 45 +isnum = true +end +if and ge f 48 le f 57 +isnum = true +end +if isnum +tok_num +else +put tk 0 1 +end +end + +note tok: next word, skipping blanks (space, tab, carriage return); newline is end of line (kind 0) and +note bumps the line number; another byte below 32 is error 16; the end of the input is kind 3. om4 TOK. +fn tok to void +go = true +while go +n = ulong 0 +while and go lt n 999999 +if ge get cur 0 get inlen 0 +go = false +else +c = get inp get cur 0 +if or or eq c 32 eq c 9 eq c 13 +put cur 0 add get cur 0 1 +else +if eq c 10 +put cur 0 add get cur 0 1 +put line 0 add get line 0 1 +put tk 0 0 +ret +end +if lt c 32 +fail 16 +end +tok2 c +ret +end +end +n = add n 1 +end +end +put tk 0 3 +end + +note ======== keyword lookup (om4 KWTAB, generated by seed/omc/genkw.awk) ======== +fn kw w ulong to ulong +if eq w 1819242338 +ret 1 +end +if eq w 491260502901 +ret 2 +end +if eq w 14453 +ret 2 +end +if eq w 128034844210037 +ret 3 +end +if eq w 3551605 +ret 3 +end +if eq w 1953393013 +ret 4 +end +if eq w 3289973 +ret 4 +end +if eq w 444234427509 +ret 5 +end +if eq w 3421813 +ret 5 +end +if eq w 1702132066 +ret 6 +end +if eq w 14441 +ret 6 +end +if eq w 500136110195 +ret 7 +end +if eq w 3551593 +ret 7 +end +if eq w 7630441 +ret 8 +end +if eq w 3289961 +ret 8 +end +if eq w 1735290732 +ret 9 +end +if eq w 3421801 +ret 9 +end +if eq w 6579297 +ret 33 +end +if eq w 6452595 +ret 34 +end +if eq w 7107949 +ret 35 +end +if eq w 7760228 +ret 36 +end +if eq w 7169394 +ret 37 +end +if eq w 6581857 +ret 38 +end +if eq w 29295 +ret 39 +end +if eq w 7499640 +ret 40 +end +if eq w 7104627 +ret 41 +end +if eq w 7497843 +ret 42 +end +if eq w 29029 +ret 43 +end +if eq w 25966 +ret 44 +end +if eq w 29804 +ret 45 +end +if eq w 25964 +ret 46 +end +if eq w 29799 +ret 47 +end +if eq w 25959 +ret 48 +end +if eq w 6776174 +ret 49 +end +if eq w 7630702 +ret 50 +end +if eq w 7628135 +ret 51 +end +if eq w 7234924 +ret 52 +end +if eq w 1684104562 +ret 53 +end +if eq w 435744764535 +ret 54 +end +if eq w 1702195828 +ret 55 +end +if eq w 435728179558 +ret 56 +end +if eq w 2003134838 +ret 57 +end +if eq w 1953064037 +ret 58 +end +if eq w 28262 +ret 64 +end +if eq w 28532 +ret 65 +end +if eq w 6581861 +ret 66 +end +if eq w 26217 +ret 67 +end +if eq w 1702063205 +ret 68 +end +if eq w 435610544247 +ret 69 +end +if eq w 431349919586 +ret 70 +end +if eq w 7499622 +ret 71 +end +if eq w 7628146 +ret 72 +end +if eq w 61 +ret 73 +end +if eq w 40 +ret 74 +end +if eq w 41 +ret 75 +end +if eq w 1684631414 +ret 76 +end +if eq w 119165519096935 +ret 78 +end +if eq w 1954047348 +ret 79 +end +if eq w 7632240 +ret 80 +end +if eq w 1701147238 +ret 81 +end +if eq w 1953069157 +ret 82 +end +if eq w 1702129518 +ret 83 +end +if eq w 7824750 +ret 84 +end +if eq w 461195539042 +ret 77 +end +if eq w 1885434484 +ret 77 +end +if eq w 7239535 +ret 77 +end +if eq w 127970521019507 +ret 85 +end +ret 0 +end + +note ======== om4's small tables, as functions ======== +note twid: width in bits by type 0..9 (bool 1; uchar ushort uint ulong; byte short int long) +fn twid t ulong to ulong +if eq t 1 +ret 1 +end +if or eq t 2 eq t 6 +ret 8 +end +if or eq t 3 eq t 7 +ret 16 +end +if or eq t 4 eq t 8 +ret 32 +end +if or eq t 5 eq t 9 +ret 64 +end +ret 0 +end + +note tlog: log2 of the element size by type +fn tlog t ulong to ulong +if or eq t 3 eq t 7 +ret 1 +end +if or eq t 4 eq t 8 +ret 2 +end +if or eq t 5 eq t 9 +ret 3 +end +ret 0 +end + +note regidx: the pool index of register r (the inverse of poolc; 255 for x7 and x16) +fn regidx r ulong to ulong +if lt r 7 +ret r +end +if eq r 7 +ret 255 +end +if lt r 16 +ret sub r 1 +end +if eq r 16 +ret 255 +end +ret 15 +end + +note conds: the condition for eq ne lt le gt ge (i = 2 (op - 43) + 1 when signed): EQ 0, NE 1, LO 3 / LT 11, +note LS 9 / LE 13, HI 8 / GT 12, HS 2 / GE 10 (Arm ARM Table C1-1). The opposite condition is cond xor 1. +fn conds i ulong to ulong +if lt i 2 +ret 0 +end +if lt i 4 +ret 1 +end +if eq i 4 +ret 3 +end +if eq i 5 +ret 11 +end +if eq i 6 +ret 9 +end +if eq i 7 +ret 13 +end +if eq i 8 +ret 8 +end +if eq i 9 +ret 12 +end +if eq i 10 +ret 2 +end +ret 10 +end + +note ldop / stop: register-offset load / store by element type (om4 LDOP, STOP tables) +fn ldop t ulong to ulong +note LDRB 0x38606800, LDRH 0x78607800, LDR w 0xb8607800, LDR x 0xf8607800, LDRSB 0x38a06800, +note LDRSH 0x78a07800, LDRSW 0xb8a07800 +if eq t 2 +ret 945842176 +end +if eq t 3 +ret 2019588096 +end +if eq t 4 +ret 3093329920 +end +if or eq t 5 eq t 9 +ret 4167071744 +end +if eq t 6 +ret 950036480 +end +if eq t 7 +ret 2023782400 +end +if eq t 8 +ret 3097524224 +end +ret 0 +end + +fn stop t ulong to ulong +note STRB 0x38206800, STRH 0x78207800, STR w 0xb8207800, STR x 0xf8207800 +if or eq t 2 eq t 6 +ret 941647872 +end +if or eq t 3 eq t 7 +ret 2015393792 +end +if or eq t 4 eq t 8 +ret 3089135616 +end +if or eq t 5 eq t 9 +ret 4162877440 +end +ret 0 +end + +note ---- trap list (8192 sites per function): output offset of the branch, trap code ---- +global tsite ulong 8192 +global tcode ulong 8192 +global nt ulong 1 +note ---- block stack (512): kind (1 if, 2 else, 3 while, 4 for), branch to patch, loop head, loop +note register, its type, names and held pool slots to restore at end, then-part ended (for else) ---- +global bkind ulong 512 +global bbr ulong 512 +global bhead ulong 512 +global breg ulong 512 +global btyp ulong 512 +global bnames ulong 512 +global bheld ulong 512 +global bdead ulong 512 +global nb ulong 1 +global curfn ulong 1 + +note ======== names and functions ======== +note findname: packed name -> its index + 1 among the names in scope (0 none). om4 FINDNAME. +fn findname w ulong to ulong +i = ulong 0 +n = get nn 0 +while lt i n +if eq get nm_name i w +ret add i 1 +end +i = add i 1 +end +ret 0 +end + +note findfn: packed name w (first 8 bytes), length l (any value up to 8 for a short name), start s in the +note input (read only for a name over 8 bytes) -> function index + 1 (0 none). om4 FINDFN. +fn findfn w ulong l ulong s ulong to ulong +j = ulong 0 +while lt j get nf 0 +if eq get fn_name j w +fl = get fn_nmlen j +if le l 8 +if le fl 8 +ret add j 1 +end +else +if eq fl l +o = get fn_off j +k = ulong 8 +same = true +while and same lt k l +a = get inp add o k +if ne a get inp add s k +same = false +end +k = add k 1 +end +if same +ret add j 1 +end +end +end +end +j = add j 1 +end +ret 0 +end + +note newname: the name must not be in use (a name in scope when 8 bytes or fewer, or a function): error 10 +fn newname w ulong l ulong s ulong to void +if ne findstruct w 0 +fail 10 +end +if le l 8 +if ne findname w 0 +fail 10 +end +end +if ne findfn w l s 0 +fail 10 +end +end + +note addname: packed name, register, type, length, kind, address. om4 ADDNAME. +fn addname w ulong r ulong t ulong ln ulong k ulong a ulong to void +n = get nn 0 +if ge n 1024 +fail 14 +end +put nm_name n w +put nm_reg n uchar r +put nm_type n uchar t +put nm_len n ln +put nm_kind n uchar k +put nm_addr n a +put nn 0 add n 1 +end + +note ======== registers and words ======== +note alloc: the next free register of the pool (after the parameters); error 12 when none is left +fn alloc to ulong +i = add get npar 0 get nslot 0 +if ge i 16 +fail 12 +end +put nslot 0 add get nslot 0 1 +ret poolc i +end + +note destreg: d, or a new temporary when d is 255 +fn destreg d ulong to ulong +if eq d 255 +ret alloc +end +ret d +end + +note e3: emit op | d | n << 5 | m << 16 +fn e3 op ulong d ulong n ulong m ulong to void +emit or or or op d shl n 5 shl m 16 +end + +note trapsite: note the place and code of a branch to the trap stub, then emit it. trapc: B.cond, as om4. +fn trapsite w ulong code ulong to void +n = get nt 0 +if ge n 8192 +fail 14 +end +put tsite n get oc 0 +put tcode n code +put nt 0 add n 1 +emit w +end + +fn trapc cc ulong code ulong to void +trapsite or 1409286144 cc code +end + +fn rdword at ulong to ulong +a = ulong get out at +b = shl ulong get out add at 1 8 +c = shl ulong get out add at 2 16 +d = shl ulong get out add at 3 24 +ret or or or a b c d +end + +fn wrword at ulong w ulong to void +put out at uchar and w 255 +put out add at 1 uchar and shr w 8 255 +put out add at 2 uchar and shr w 16 255 +put out add at 3 uchar and shr w 24 255 +end + +note patch19: the word distance from a B.cond / CBZ / CBNZ at `at` to `target`, into bits 5..23 +fn patch19 at ulong target ulong to void +d = and shr sub target at 2 524287 +wrword at or rdword at shl d 5 +end + +note patch26: the word distance from a B at `at` to `target`, into bits 0..25 +fn patch26 at ulong target ulong to void +d = and shr sub target at 2 67108863 +wrword at or rdword at d +end + +note back: emit B to an earlier place (C6.2.35) +fn back addr ulong to void +emit or 335544320 and shr sub addr get oc 0 2 67108863 +end + +note matconst: put a 64-bit value in register r: MOVZ (C6.2.285) or, for a value with the top bit set, +note MOVN (C6.2.284) with the first halfword that differs from the fill, then MOVK (C6.2.283) for each +note other such halfword. om4 MATCONST. +fn matconst r ulong v ulong to void +fill = ulong 0 +mop = ulong 3531603968 +if ne shr v 63 0 +fill = ulong 65535 +mop = ulong 2457862144 +end +started = false +hw = ulong 0 +while lt hw 4 +h = and shr v shl hw 4 65535 +if ne h fill +if started +emit or or or 4068474880 shl h 5 shl hw 21 r +else +emit or or or mop shl xor h fill 5 shl hw 21 r +started = true +end +end +hw = add hw 1 +end +if not started +emit or mop r +end +end + +note canon: u8/u16/u32 UBFM Xr, Xr, #0, #w-1 (C6.2.487); i8/i16/i32 SBFM (C6.2.355); else nothing +fn canon r ulong t ulong to void +if lt t 2 +ret +end +if eq t 5 +ret +end +if eq t 9 +ret +end +base = ulong 3544186880 +if gt t 5 +base = ulong 2470445056 +end +emit or or or base shl sub twid t 1 10 r shl r 5 +end + +note chkext: CMP Xr, Wr, SXTB/SXTH/SXTW (SUBS extended, C6.2.463), then B.NE trap code +fn chkext r ulong t ulong code ulong to void +emit or or or 3944742943 shl sub t 2 13 shl r 16 shl r 5 +trapc 1 code +end + +note range: error 8 unless v is a value of type t; big = the number was written as 2^63 or more +fn range v ulong t ulong big ulong to void +w = twid t +if eq w 64 +if eq t 9 +if ne big 0 +fail 8 +end +ret +end +if ne big 0 +ret +end +if ne shr v 63 0 +fail 8 +end +ret +end +if ne big 0 +fail 8 +end +lim = shl ulong 1 w +if lt t 6 +if ge v lim +fail 8 +end +ret +end +half = shr lim 1 +if ge add v half lim +fail 8 +end +end + +note cset: CSET Xr, cond = CSINC Xr, XZR, XZR, opposite cond (C6.2.141) +fn cset r ulong cc ulong to void +emit or or 2594113504 r shl xor cc 1 12 +end + +note force: put a value (kind 1 register, 3 number, 4 flags) in register r; a bare number is error 11 +fn force k ulong v ulong t ulong r ulong to void +if eq k 1 +if ne v r +emit or or 2852127712 r shl v 16 +end +ret +end +if eq k 3 +matconst r v +ret +end +if eq k 4 +cset r v +ret +end +fail 11 +end + +note matreg: a register holding the value +fn matreg k ulong v ulong t ulong to ulong +if eq k 1 +ret v +end +r = alloc +force k v t r +ret r +end + +note spop: ADD (C6.2.5) / SUB (C6.2.457) SP, SP by a multiple of 16 below 2^24: low 12 bits, then the +note high 12 bits LSL 12; nothing for a zero part +fn spop base ulong bytes ulong to void +lo = and bytes 4095 +if ne lo 0 +emit or or base 1023 shl lo 10 +end +hi = and shr bytes 12 4095 +if ne hi 0 +emit or or base 4195327 shl hi 10 +end +end + +fn spadd bytes ulong to void +spop 2432696320 bytes +end + +fn spsub bytes ulong to void +spop 3506438144 bytes +end + +note stkchk: program mode only: CMP SP, X28 (C6.2.463); B.LO trap 6 +fn stkchk to void +if ne get progmode 0 0 +emit 3946603519 +trapc 3 6 +end +end + +note epi: give back the stack of the local arrays, then RET (C6.2.338) +fn epi to void +spadd get stkbytes 0 +emit 3596551104 +end + +fn dead1 to void +put dead 0 1 +end + +note pushb / pushnh: open a block (om4 PUSHB, split in two because a call takes at most 6 values) +fn pushb br ulong k ulong head ulong reg ulong ty ulong to void +n = get nb 0 +if ge n 512 +fail 14 +end +put bkind n k +put bbr n br +put bhead n head +put breg n reg +put btyp n ty +put bdead n 0 +put nb 0 add n 1 +end + +fn pushnh names ulong hd ulong to void +n = sub get nb 0 1 +put bnames n names +put bheld n hd +end + +note ======== small readers ======== +fn elemtype t ulong to void +if lt t 2 +fail 9 +end +end + +note arrlen: an array length 1 .. 16777216 (error 8 below, 23 above, 23 when written as 2^63 or more) +fn arrlen v ulong to void +if ne get tbig 0 0 +fail 23 +end +if or eq v 0 ne shr v 63 0 +fail 8 +end +if gt v 16777216 +fail 23 +end +end + +note typeword: read a type name -> 1..9 +fn typeword to ulong +tok +k = get tk 0 +if eq k 0 +fail 4 +end +if ne k 1 +fail 16 +end +if gt get tl 0 8 +fail 16 +end +c = kw get tw 0 +if eq c 76 +fail 9 +end +if gt sub c 1 8 +fail 16 +end +ret c +end + +note eol: the line must end here +fn eol to void +tok +k = get tk 0 +if and ne k 0 ne k 3 +fail 5 +end +end + +note arrname: read an array name -> its index + 1 +fn arrname to ulong +tok +k = get tk 0 +if eq k 0 +fail 4 +end +if eq k 3 +fail 4 +end +if ne k 1 +fail 16 +end +if gt get tl 0 8 +fail 13 +end +e = findname get tw 0 +if eq e 0 +fail 3 +end +if eq get nm_kind sub e 1 0 +fail 7 +end +ret e +end + +note topname: read a new name for a global or a text -> its packed word +fn topname to ulong +tok +if ne get tk 0 1 +fail 16 +end +if gt get tl 0 8 +fail 13 +end +w = get tw 0 +if ne kw w 0 +fail 16 +end +newname w get tl 0 get ts 0 +ret w +end + +note ---- value results (om4 x0 kind 1 register / 2 bare number / 3 typed number / 4 flags, x1 register, +note number or condition, x2 type). fr: 32 cells per value nesting depth 0..1024: 0..5 the two operands of +note a binary op (kind, value, type each), 8..25 a call's arguments (kind, value, array name each) ---- +global rk ulong 1 +global rv ulong 1 +global rt ulong 1 +global fr ulong 32800 +global depth ulong 1 + +note ======== BINOP (om4 BINOP and its BO_* parts): two values already read, types settled ======== +note bo_w3: emit fx | rd | ra << 5 | (imm12 << 10, or rb << 16) +fn bo_w3 fx ulong rd ulong ra ulong rb ulong imm ulong to void +if ne imm 0 +emit or or or fx rd shl ra 5 shl rb 10 +else +emit or or or fx rd shl ra 5 shl rb 16 +end +end + +note bo_fix: after a 64-bit op on rd: u8/u16/u32 wrap (canon), i8/i16/i32 overflow check (trap 1) +fn bo_fix rd ulong ty ulong to void +if lt ty 6 +canon rd ty +ret +end +if eq ty 9 +ret +end +chkext rd ty 1 +end + +note bo_schk: a shift amount in a register must be below the width: CMP Xb, #w; B.HS trap 7 +fn bo_schk ty ulong rb ulong to void +emit or or 4043309087 shl twid ty 10 shl rb 5 +trapc 2 7 +end + +note add, sub: u32 the 32-bit form; i64 ADDS/SUBS + B.VS trap 1; others 64-bit then bo_fix (om4 BO_ADD) +fn bo_add op ulong ty ulong ra ulong rb ulong imm ulong rd ulong to void +fx = ulong 2332033024 +if eq op 34 +fx = ulong 3405774848 +end +if ne imm 0 +fx = ulong 2432696320 +if eq op 34 +fx = ulong 3506438144 +end +end +if eq ty 4 +bo_w3 xor fx 2147483648 rd ra rb imm +ret +end +if eq ty 9 +bo_w3 or fx 536870912 rd ra rb imm +trapc 6 1 +ret +end +bo_w3 fx rd ra rb imm +bo_fix rd ty +end + +note mul: i64 SMULH t, MUL, CMP t, rd, ASR #63, B.NE trap 1 (om4 BO_MUL) +fn bo_mul ty ulong ra ulong rb ulong rd ulong to void +if eq ty 9 +t = alloc +e3 2604694528 t ra rb +bo_w3 2600500224 rd ra rb 0 +e3 3951098911 0 t rd +trapc 1 1 +ret +end +if eq ty 4 +bo_w3 453016576 rd ra rb 0 +ret +end +bo_w3 2600500224 rd ra rb 0 +bo_fix rd ty +end + +note div, rem (om4 BO_DIV, BO_SDIV): CBZ Xb trap 2 unless fl bit 1 (b a number other than 0); UDIV or +note SDIV; rem: t = a / b, rd = a - t * b (MSUB); i64 div: CMN Xb, #1; B.NE +3; NEGS XZR, Xa; B.VS trap 1, +note unless fl bit 2 (b a number other than -1) +fn bo_div op ulong ty ulong ra ulong rb ulong rd ulong fl ulong to void +if eq and fl 1 0 +trapsite or 3019898880 rb 2 +end +if eq op 37 +t = alloc +if ge ty 6 +e3 2596277248 t ra rb +else +e3 2596276224 t ra rb +end +e3 or 2600501248 shl ra 10 rd t rb +ret +end +if lt ty 6 +bo_w3 2596276224 rd ra rb 0 +ret +end +if eq ty 9 +if eq and fl 2 0 +emit or 2969568287 shl rb 5 +emit 1409286241 +emit or 3942646783 shl ra 16 +trapc 6 1 +end +end +bo_w3 2596277248 rd ra rb 0 +if ne ty 9 +bo_fix rd ty +end +end + +note and, or, xor (om4 BO_LOG) +fn bo_log op ulong ra ulong rb ulong rd ulong to void +fx = ulong 2315255808 +if eq op 39 +fx = ulong 2852126720 +end +if eq op 40 +fx = ulong 3388997632 +end +bo_w3 fx rd ra rb 0 +end + +note bo_lsl: LSL Xd, Xn, #s as UBFM Xd, Xn, #(64-s) mod 64, #63-s +fn bo_lsl ra ulong s ulong rd ulong to void +r = shl and sub 64 s 63 16 +r = or r shl sub 63 s 10 +r = or r shl ra 5 +emit or or 3544186880 r rd +end + +note shl (om4 BO_SHL, BS_64): by a number s: UBFM Xd, Xn, #(64-s) mod 64, #63-s; by a register: the amount +note check, LSLV; i64: t = a << s, X16 = t >> s arithmetic, CMP X16, Xa, B.NE trap 1, MOV Xd, Xt +fn bo_shl ty ulong ra ulong rb ulong imm ulong rd ulong to void +if eq ty 9 +t = alloc +if ne imm 0 +bo_lsl ra rb t +emit or or 2470509584 shl rb 16 shl t 5 +else +bo_schk ty rb +e3 2596282368 t ra rb +e3 2596284432 0 t rb +end +emit or 3942646303 shl ra 16 +trapc 1 1 +emit or or 2852127712 rd shl t 16 +ret +end +if ne imm 0 +bo_lsl ra rb rd +bo_fix rd ty +ret +end +bo_schk ty rb +if eq ty 4 +bo_w3 448798720 rd ra rb 0 +ret +end +bo_w3 2596282368 rd ra rb 0 +bo_fix rd ty +end + +note shr: unsigned LSR, signed ASR; by a number UBFM / SBFM Xd, Xn, #s, #63; by a register the amount check +note then LSRV / ASRV (om4 BO_SHR) +fn bo_shr ty ulong ra ulong rb ulong imm ulong rd ulong to void +if ne imm 0 +fi = ulong 3544251392 +if ge ty 6 +fi = ulong 2470509568 +end +emit or or or fi shl rb 16 shl ra 5 rd +ret +end +bo_schk ty rb +fx = ulong 2596283392 +if ge ty 6 +fx = ulong 2596284416 +end +bo_w3 fx rd ra rb 0 +end + +note comparisons: CMP Xa, #imm or CMP Xa, Xb; the result is the flags and a condition (om4 BO_CMP) +fn bo_cmp op ulong ty ulong ra ulong rb ulong imm ulong to void +if ne imm 0 +emit or or 4043309087 shl rb 10 shl ra 5 +else +emit or or 3942645791 shl rb 16 shl ra 5 +end +i = mul sub op 43 2 +if ge ty 6 +i = add i 1 +end +put rk 0 4 +put rv 0 conds i +put rt 0 1 +end + +note binop: op 33..48, destination (255 none), ix the fr slot of a (kind, number/register, type) then b. +note Result in rk/rv/rt. om4 BINOP. +fn binop op ulong dst ulong ix ulong to void +ty = get fr add ix 2 +ra = matreg get fr ix get fr add ix 1 ty +imm = ulong 0 +bk = get fr add ix 3 +bn = get fr add ix 4 +rb = ulong 0 +useimm = false +if eq bk 3 +if or eq op 41 eq op 42 +if lt bn twid ty +useimm = true +end +else +if or lt op 35 ge op 43 +if le bn 4095 +useimm = true +end +end +end +end +if useimm +rb = bn +imm = ulong 1 +else +rb = matreg bk bn get fr add ix 5 +end +if ge op 43 +bo_cmp op ty ra rb imm +ret +end +if eq ty 1 +if gt sub op 38 2 +fail 7 +end +end +rd = destreg dst +if lt op 35 +bo_add op ty ra rb imm rd +else +if eq op 35 +bo_mul ty ra rb rd +else +if lt op 38 +fl = ulong 0 +if and eq bk 3 ne bn 0 +fl = or fl 1 +end +if and eq bk 3 ne bn 18446744073709551615 +fl = or fl 2 +end +bo_div op ty ra rb rd fl +else +if lt op 41 +bo_log op ra rb rd +else +if eq op 41 +bo_shl ty ra rb imm rd +else +bo_shr ty ra rb imm rd +end +end +end +end +end +put rk 0 1 +put rv 0 rd +put rt 0 ty +end + +note ======== calls: registers saved around a call and loaded back ======== +global svn ulong 1 +global sva ulong 1 +note save: n = registers in use (parameters + pool slots), A = 8 (n + 1) rounded up to 16: SUB SP, SP, #A +note (C6.2.457); the stack check; STR Xr, [SP, #8j] for each (C6.2.415); STR X30, [SP, #8n]. Out: svn n, +note sva A. om4 SAVE. +fn save to void +n = add get npar 0 get nslot 0 +a = shl shr add n 2 1 4 +put svn 0 n +put sva 0 a +spsub a +stkchk +j = ulong 0 +while lt j n +emit or or 4177527776 poolc j shl j 10 +j = add j 1 +end +emit or 4177527806 shl n 10 +end + +note loadarg: register t from an argument: kind 1 or 5 a register v, read back from its save slot (LDR Xt, +note [SP, #8 slot], C6.2.216); kind 3 or 6 the number or address v. om4 LOADARG. +fn loadarg t ulong k ulong v ulong to void +if or eq k 3 eq k 6 +matconst t v +ret +end +emit or or 4181722080 t shl regidx v 10 +end + +note basearg: register t = the base of array name e (index + 1): its register from the save area, or its +note address. om4 BASEARG. +fn basearg t ulong e ulong to void +i = sub e 1 +if ge get nm_kind i 4 +matconst t get nm_addr i +ret +end +loadarg t 1 ulong get nm_reg i +end + +note restore: d destination (255: a new temporary at pool slot `slot`), slot the pool slot before the +note arguments, n saved count, a save bytes, res 1 if there is a result in X0. MOV Xd, X0 (C6.2.282); LDR +note each register in use before the arguments except Xd (C6.2.216); LDR X30; ADD SP, SP, #A (C6.2.5). +note Returns Xd (255 when no result). om4 RESTORE. +fn restore d ulong slot ulong n ulong a ulong res ulong to ulong +put nslot 0 slot +rd = ulong 255 +if ne res 0 +rd = d +if eq d 255 +rd = alloc +end +if ne rd 0 +emit or 2852127712 rd +end +end +m = add get npar 0 slot +j = ulong 0 +while lt j m +r = poolc j +if ne r rd +emit or or 4181722080 r shl j 10 +end +j = add j 1 +end +emit or 4181722110 shl n 10 +spadd a +ret rd +end + +note ca_bl: BL to function f (index + 1), C6.2.43 +fn ca_bl f ulong to void +n = get ncalls 0 +if ge n 65536 +fail 14 +end +put callsite n get oc 0 +put callfrom n get curfn 0 +put callto n f +put ncalls 0 add n 1 + +emit or 2483027968 and shr sub get fn_addr sub f 1 get oc 0 2 67108863 +end + +note ======== element addresses and array arguments ======== +global ea_b ulong 1 +global ea_i ulong 1 +note elemaddr: array name e (index + 1), index value (kind, number or register, type). A number index must +note be inside the array (error 21) and needs no check; a register index: CMP Xi, #len (C6.2.96) or CMP Xi, +note Xt (C6.2.97), B.HS trap 3 (unsigned, so a negative signed index traps too). Out: ea_b base register +note (the array's register, or a new one holding its address), ea_i index register. om4 ELEMADDR. +fn elemaddr e ulong k ulong v ulong t ulong to void +if eq t 1 +fail 7 +end +i = sub e 1 +ln = get nm_len i +x = v +if eq k 3 +if ge v ln +fail 21 +end +x = alloc +matconst x v +else +if le ln 4095 +emit or or 4043309087 shl ln 10 shl v 5 +else +y = alloc +matconst y ln +emit or or 3942645791 shl y 16 shl v 5 +end +trapc 2 3 +end +put ea_i 0 x +if ge get nm_kind i 4 +b = alloc +matconst b get nm_addr i +put ea_b 0 b +else +put ea_b 0 ulong get nm_reg i +end +end + +note aa_word: the next word of an array argument must be a name of at most 8 bytes +fn aa_word to void +tok +k = get tk 0 +if eq k 0 +fail 4 +end +if ne k 1 +fail 16 +end +if gt get tl 0 8 +fail 13 +end +end + +note arrarg: an array argument for parameter pi of function f (index + 1): [view | edit] NAME. Its type and +note length must equal the parameter's; an edit parameter needs a writable array (local or edit, error 20; +note a view passed to it is error 20, OMEGESE.md 9.4); a global is never passed (error 19). Out: rk 5 +note (register rv) or 6 (address rv, a text), rt the name entry. om4 ARRARG. +fn arrarg f ulong pi ulong to void +md = ulong 0 +aa_word +w = get tw 0 +c = kw w +if ne c 0 +if or lt c 57 gt c 58 +fail 16 +end +md = c +aa_word +w = get tw 0 +end +e = findname w +if eq e 0 +fail 3 +end +i = sub e 1 +k = ulong get nm_kind i +if eq k 0 +fail 7 +end +if ge k 6 +fail 7 +end +if eq k 4 +fail 19 +end +p = add mul sub f 1 6 pi +if eq get fn_pk p 3 +if eq md 57 +fail 20 +end +if and ne k 1 ne k 3 +fail 20 +end +else +if eq md 58 +fail 7 +end +end +if ne get nm_type i get fn_pt p +fail 7 +end +if ne get nm_len i get fn_pl p +fail 7 +end +put rt 0 e +if eq k 5 +put rk 0 6 +put rv 0 get nm_addr i +else +put rk 0 5 +put rv 0 ulong get nm_reg i +end +end + +note ======== the parts of the value reader that read no further value ======== +fn vdec to void +put depth 0 sub get depth 0 1 +end + +note vdone: a value's result, and one nesting level less (om4 VT_RET) +fn vdone k ulong v ulong t ulong to void +put rk 0 k +put rv 0 v +put rt 0 t +vdec +end + +note vt_un: neg / not of the value in rk/rv/rt (a bare number already refused). neg: NEG Xd, Xm (SUB from +note XZR, C6.2.458; the 32-bit form for u32), i64 NEGS + B.VS trap 1 (C6.2.465), then the wrap or the +note sign check; not: bool EOR Xd, Xn, #1 (C6.2.155), else MVN (ORN from XZR, C6.2.300), then the wrap. +note om4 VU1 .. VU_E. +fn vt_un c ulong dst ulong to void +ty = get rt 0 +ra = matreg get rk 0 get rv 0 ty +rd = destreg dst +if eq c 50 +if eq ty 1 +e3 3527409664 rd ra 0 +else +if eq ty 4 +e3 706741216 rd 0 ra +else +e3 2854224864 rd 0 ra +if lt ty 6 +canon rd ty +end +end +end +else +if eq ty 1 +fail 7 +end +if eq ty 9 +e3 3942646752 rd 0 ra +trapc 6 1 +else +if eq ty 4 +e3 1258292192 rd 0 ra +else +e3 3405775840 rd 0 ra +if lt ty 6 +canon rd ty +else +chkext rd ty 1 +end +end +end +end +put rk 0 1 +put rv 0 rd +put rt 0 ty +end + +note vt_conv: the value in rk/rv/rt converted to type tt (neither bool, error 9). Out of range when any bit +note at or above s is set: LSR Xt, Xa, #s (UBFM, C6.2.487); CBNZ Xt trap 5 (C6.2.77); signed to a narrower +note signed type: the sign-extension check, trap 5. om4 VTT1 .. VC_OK. +fn vt_conv tt ulong to void +ft = get rt 0 +ra = matreg get rk 0 get rv 0 ft +if eq ft 1 +fail 9 +end +if eq tt 1 +fail 9 +end +wf = twid ft +wt = twid tt +s = ulong 99 +if lt ft 6 +if ge tt 6 +if ge wf wt +s = sub wt 1 +end +else +if gt wf wt +s = wt +end +end +else +if lt tt 6 +s = wt +if gt s 63 +s = ulong 63 +end +else +if gt wf wt +chkext ra tt 5 +end +end +end +if ne s 99 +t = alloc +emit or or or 3544251392 t shl s 16 shl ra 5 +trapsite or 3036676096 t 5 +end +put rk 0 1 +put rv 0 ra +put rt 0 tt +end + +note vt_get: get A i with the index value in rk/rv/rt: the element address, then the load of the element +note type, register offset (LDOP table). om4 VT_GET. +fn vt_get e ulong dst ulong to void +elemaddr e get rk 0 get rv 0 get rt 0 +rd = destreg dst +ty = ulong get nm_type sub e 1 +w = or ldop ty rd +emit or or w shl get ea_b 0 5 shl get ea_i 0 16 +put rk 0 1 +put rv 0 rd +put rt 0 ty +end + +note vs_chk: read / write bounds: n <= len A and off <= len A - n, else trap 3 (CMP C6.2.97, B.HI C6.2.34, +note SUB C6.2.458). om4 VT_SYS. +fn vs_chk e ulong ro ulong rn ulong to void +t = alloc +matconst t get nm_len sub e 1 +emit or or 3942645791 shl rn 5 shl t 16 +trapc 8 3 +e3 3405774848 t t rn +emit or or 3942645791 shl ro 5 shl t 16 +trapc 8 3 +end + +note vs_call: save the registers in use, X0 = fd, X1 = A + off (ADD through X16, C6.2.6), X2 = n, X8 = 63 +note (read) or 64 (write) (MOVZ C6.2.285), SVC #0 (C6.2.466). om4 VT_SYS. +fn vs_call c ulong fk ulong fv ulong e ulong ro ulong rn ulong to void +save +loadarg 0 fk fv +basearg 1 e +loadarg 16 1 ro +emit 2333081633 +loadarg 2 1 rn +emit or 3531603976 shl add c 10 5 +emit 3556769793 +end + +note ca_scal: a scalar argument just read (rk/rv/rt) for parameter p: flags into a register; its type +note must be the parameter's; stored at fr[q..q+2]. om4 CA1 .. CA_PUT. +fn ca_scal p ulong q ulong to void +if eq get rk 0 4 +put rv 0 matreg 4 get rv 0 get rt 0 +put rk 0 1 +put rt 0 1 +end +if ne get rt 0 ulong get fn_pt p +fail 7 +end +put fr q get rk 0 +put fr add q 1 get rv 0 +put fr add q 2 0 +end + +note ca_arr: an array argument i of function f, call frame cb: one array passed twice is error 19. +note om4 CA_ARR .. CA_PUT. +fn ca_arr f ulong i ulong cb ulong to void +arrarg f i +j = ulong 0 +while lt j i +if eq get fr add add cb mul j 3 2 get rt 0 +fail 19 +end +j = add j 1 +end +q = add cb mul i 3 +put fr q get rk 0 +put fr add q 1 get rv 0 +put fr add q 2 get rt 0 +end + +note ca_end: all arguments read: save, the arguments into X0.., BL, restore. Frame cb: 3 per argument, +note then cb+18 the parameter count, cb+19 the pool slot before the arguments. om4 CA_DONE .. CA5. +fn ca_end f ulong dst ulong cb ulong to void +save +np = get fr add cb 18 +i = ulong 0 +while lt i np +q = add cb mul i 3 +loadarg i get fr q get fr add q 1 +i = add i 1 +end +ca_bl f +hr = ulong 1 +if eq get fn_ret sub f 1 10 +hr = ulong 0 +end +n = get svn 0 +a = get sva 0 +sl = get fr add cb 19 +r = restore dst sl n a hr +put rk 0 1 +put rv 0 r +put rt 0 ulong get fn_ret sub f 1 +end + +note vs_fd, vs_arr, vs_off, vs_end: the steps of read / write between the values it reads, with the fd +note (kind, value), the offset register and the pool slot before kept in fr[x+8..x+11] (om4's VT_SYS +note frame slots 4, 5, 7 and 14) +fn vs_fd x ulong to void +if ne get rt 0 8 +fail 7 +end +put fr add x 9 get rk 0 +put fr add x 10 get rv 0 +end + +fn vs_arr c ulong e ulong to void +if ge get nm_kind sub e 1 6 +fail 7 +end +if eq c 53 +k = get nm_kind sub e 1 +if or eq k 2 eq k 5 +fail 20 +end +end +end + +fn vs_off x ulong to void +if ne get rt 0 5 +fail 7 +end +put fr add x 11 matreg get rk 0 get rv 0 get rt 0 +end + +fn vs_end c ulong e ulong dst ulong x ulong to void +if ne get rt 0 5 +fail 7 +end +rn = matreg get rk 0 get rv 0 get rt 0 +ro = get fr add x 11 +vs_chk e ro rn +fk = get fr add x 9 +fv = get fr add x 10 +vs_call c fk fv e ro rn +sl = get fr add x 8 +n = get svn 0 +a = get sva 0 +r = restore dst sl n a 1 +vdone 1 r 9 +end + +note ======== rdval: read one value (om4 VAL, VALTOK, CALL and the VT_ parts, one self-recursive +note function because a function calls only earlier functions or itself) ======== +note mode 0: read the first word; 1: the first word is the current token; 2: a call of function fe (index +note + 1), its arguments still to read. exp the expected type (0 none), dst the destination register (255 +note none). Out: rk kind (1 register, 2 bare number, 3 typed number, 4 flags), rv register / number / +note condition, rt type (for a bare number: 1 when written as 2^63 or more). Only the outermost op writes the +note destination. Every value nests one level deeper (at most 1024, error 14); a call does not. +fn rdval mode ulong exp ulong dst ulong fe ulong to void +if eq mode 2 +cb = add mul get depth 0 32 8 +put fr add cb 18 ulong get fn_np sub fe 1 +put fr add cb 19 get nslot 0 +if eq get progmode 0 0 +if eq get curfn 0 fe +fail 9 +end +end +i = ulong 0 +while lt i get fr add cb 18 +p = add mul sub fe 1 6 i +if eq get fn_pk p 0 +rdval 0 ulong get fn_pt p 255 0 +ca_scal p add cb mul i 3 +else +if ge get fn_pk p 6 +ca_st fe i cb +else +ca_arr fe i cb +end +end +i = add i 1 +end +ca_end fe dst cb +ret +end +if eq mode 0 +tok +end +put depth 0 add get depth 0 1 +if gt get depth 0 1024 +fail 14 +end +if or eq get tk 0 0 eq get tk 0 3 +fail 4 +end +if eq get tk 0 4 +fail 16 +end +if eq get tk 0 2 +if eq exp 0 +vdone 2 get tw 0 get tbig 0 +ret +end +range get tw 0 exp get tbig 0 +vdone 3 get tw 0 exp +ret +end +if gt get tl 0 8 +f = findfn get tw 0 get tl 0 get ts 0 +if eq f 0 +fail 13 +end +if eq get fn_ret sub f 1 10 +fail 7 +end +rdval 2 0 dst f +vdec +ret +end +c = kw get tw 0 +if eq c 0 +e = findname get tw 0 +if ne e 0 +if ne get nm_kind sub e 1 0 +fail 7 +end +vdone 1 ulong get nm_reg sub e 1 ulong get nm_type sub e 1 +ret +end +f = findfn get tw 0 0 0 +if eq f 0 +fail 3 +end +if eq get fn_ret sub f 1 10 +fail 7 +end +rdval 2 0 dst f +vdec +ret +end +if le sub c 1 8 +tok +if eq get tk 0 2 +range get tw 0 c get tbig 0 +vdone 3 get tw 0 c +ret +end +rdval 1 0 255 0 +if eq get rk 0 2 +fail 11 +end +vt_conv c +vdec +ret +end +if eq c 74 +rdval 0 exp dst 0 +tok +if ne get tk 0 1 +fail 16 +end +if gt get tl 0 8 +fail 16 +end +if ne kw get tw 0 75 +fail 16 +end +vdec +ret +end +if eq c 77 +fail 9 +end +if eq c 51 +e = arrname +if ge get nm_kind sub e 1 6 +vt_fget e dst +vdec +ret +end +rdval 0 5 255 0 +vt_get e dst +vdec +ret +end +if eq c 52 +e = arrname +if ge get nm_kind sub e 1 6 +fail 7 +end +vdone 3 get nm_len sub e 1 5 +ret +end +if or eq c 53 eq c 54 +x = mul get depth 0 32 +put fr add x 8 get nslot 0 +rdval 0 8 255 0 +vs_fd x +e = arrname +vs_arr c e +rdval 0 5 255 0 +vs_off x +rdval 0 5 255 0 +vs_end c e dst x +ret +end +if eq c 55 +vdone 3 1 1 +ret +end +if eq c 56 +vdone 3 0 1 +ret +end +if gt sub c 33 17 +fail 16 +end +if ge c 49 +rdval 0 exp 255 0 +if and eq c 50 eq get rk 0 4 +put rv 0 xor get rv 0 1 +vdec +ret +end +if eq get rk 0 2 +fail 11 +end +vt_un c dst +vdec +ret +end +rdval 0 0 255 0 +ak = get rk 0 +av = get rv 0 +at = get rt 0 +if eq ak 4 +av = matreg 4 av at +ak = ulong 1 +at = ulong 1 +end +rdval 0 0 255 0 +bk = get rk 0 +bv = get rv 0 +bt = get rt 0 +if eq bk 4 +bv = matreg 4 bv bt +bk = ulong 1 +bt = ulong 1 +end +if eq ak 2 +if eq bk 2 +fail 11 +end +range av bt at +at = bt +ak = ulong 3 +end +if eq bk 2 +range bv at bt +bt = at +bk = ulong 3 +end +if and ne c 41 ne c 42 +if ne at bt +fail 7 +end +end +x = mul get depth 0 32 +put fr x ak +put fr add x 1 av +put fr add x 2 at +put fr add x 3 bk +put fr add x 4 bv +put fr add x 5 bt +binop c dst x +vdec +end + +note cond: read a condition (a bool value); emit a branch taken when it is false: B.cond with the opposite +note condition (C6.2.34), or CBZ Xr (C6.2.78). Returns that branch's place. om4 COND. +fn cond to ulong +rdval 0 1 255 0 +if ne get rt 0 1 +fail 7 +end +if eq get rk 0 4 +at = get oc 0 +emit or 1409286144 xor get rv 0 1 +ret at +end +r = matreg get rk 0 get rv 0 get rt 0 +at = get oc 0 +emit or 3019898880 r +ret at +end + +note ======== statements, one per line (om4 STMT and the S_ parts) ======== +note skipnl: note ...: the rest of the line is not read (up to the newline, which tok reads). om4 S_NOTE. +fn skipnl to void +go = true +while go +n = ulong 0 +while and go lt n 999999 +if ge get cur 0 get inlen 0 +go = false +else +if eq get inp get cur 0 10 +go = false +else +put cur 0 add get cur 0 1 +end +end +n = add n 1 +end +end +end + +note s_long: a word over 8 characters at the start of a line: only a call of a void function. om4 S_LONG. +fn s_long to void +if eq get curret 0 0 +fail 13 +end +if ne get dead 0 0 +fail 17 +end +f = findfn get tw 0 get tl 0 get ts 0 +if eq f 0 +fail 13 +end +if ne get fn_ret sub f 1 10 +fail 7 +end +rdval 2 0 255 f +eol +end + +note blo: B.LO back to an earlier place (C6.2.34) +fn blo at ulong to void +d = and shr sub at get oc 0 2 524287 +emit or 1409286147 shl d 5 +end + +note sa_arr: x = new T N v: N elements of type T on the stack, each set to v; only in the function's +note outermost block, so the stack held by local arrays is known at every ret. SUB SP (C6.2.457); program +note mode: the stack check; MOV Xb, SP (ADD immediate, C6.2.5); then the fill loop: STR v, [Xb, Xi, LSL]; +note ADD Xi, Xi, #1; CMP Xi, #N or Xn; B.LO back (C6.2.34). om4 SA_ARR. +fn sa_arr w ulong to void +if ne get nb 0 0 +fail 9 +end +t = typeword +elemtype t +tok +if ne get tk 0 2 +fail 16 +end +n = get tw 0 +arrlen n +by = shl shr add shl n tlog t 15 4 4 +s = add get stkbytes 0 by +if gt s 4194304 +fail 23 +end +put stkbytes 0 s +r = alloc +put held 0 get nslot 0 +rdval 0 t 255 0 +if ne get rt 0 t +fail 7 +end +v = matreg get rk 0 get rv 0 get rt 0 +spsub by +stkchk +emit or 2432697312 r +i = alloc +emit or 3531603968 i +m = ulong 0 +if gt n 4095 +m = alloc +matconst m n +end +lp = get oc 0 +emit or or or stop t v shl r 5 shl i 16 +emit or or 2432697344 i shl i 5 +if le n 4095 +emit or or 4043309087 shl n 10 shl i 5 +else +emit or or 3942645791 shl m 16 shl i 5 +end +blo lp +addname w r t n 1 0 +end + +note s_assign: name [=] value (an existing scalar, or a new one), or name = new T N v. om4 S_ASSIGN. +fn s_assign w ulong to void +tok +if eq get tk 0 1 +if le get tl 0 8 +if eq kw get tw 0 73 +tok +end +end +end +e = findname w +if ne e 0 +i = sub e 1 +if ne get nm_kind i 0 +fail 7 +end +r = ulong get nm_reg i +t = ulong get nm_type i +rdval 1 t r 0 +if ne get rt 0 t +fail 7 +end +force get rk 0 get rv 0 get rt 0 r +eol +ret +end +if ne findfn w 0 0 0 +fail 10 +end +if eq get tk 0 1 +if le get tl 0 8 +if eq kw get tw 0 84 +sa_new w +eol +ret +end +end +end +r = alloc +put held 0 get nslot 0 +rdval 1 0 r 0 +if eq get rk 0 2 +fail 11 +end +t = get rt 0 +force get rk 0 get rv 0 t r +addname w r t 0 0 0 +eol +end + +note s_name: a name at the start of a line: a call of a void function, or name [=] value. om4 S_NAME. +fn s_name w ulong to void +if ne findname w 0 +s_assign w +ret +end +f = findfn w get tl 0 0 +if eq f 0 +s_assign w +ret +end +if ne get fn_ret sub f 1 10 +fail 7 +end +rdval 2 0 255 f +eol +end + +note fn_p: the type of parameter np (name pw) of function f (index): T, or view / edit T N (an array: +note kind 2 / 3, element type, length 1 .. 2^24). om4 FN_P .. FN_ADD. +fn fn_p f ulong np ulong pw ulong to void +tok +if ne get tk 0 1 +fail 16 +end +if gt get tl 0 8 +fail 16 +end +c = kw get tw 0 +t = ulong 0 +ln = ulong 0 +k = ulong 0 +if or eq c 57 eq c 58 +k = sub c 55 +sid = peek_struct +if ne sid 0 +fn_p_st f np pw sid k +ret +end +t = typeword +elemtype t +tok +if eq get tk 0 0 +fail 4 +end +if ne get tk 0 2 +fail 16 +end +ln = get tw 0 +arrlen ln +else +if gt sub c 1 8 +fail 16 +end +t = c +end +addname pw poolc np t ln k 0 +p = add mul f 6 np +put fn_pt p uchar t +put fn_pl p ln +put fn_pk p uchar k +end + +note fn_to: to T | to void at the end of a fn line; the function's state starts. om4 FN_TO .. FN_T2. +fn fn_to f ulong np ulong to void +tok +if eq get tk 0 0 +fail 4 +end +if ne get tk 0 1 +fail 16 +end +if gt get tl 0 8 +fail 16 +end +c = kw get tw 0 +r = c +if eq c 76 +r = ulong 10 +else +if gt sub c 1 8 +fail 16 +end +end +put curret 0 r +put fn_ret f uchar r +put fn_np f uchar np +put stkbytes 0 0 +put dead 0 0 +put npar 0 np +put nslot 0 0 +put held 0 0 +put nb 0 0 +put nt 0 0 +eol +end + +note s_fn: fn name (param type | param view T N | param edit T N)* to type | void. om4 S_FN. +fn s_fn to void +if ne get curret 0 0 +fail 15 +end +tok +if ne get tk 0 1 +fail 16 +end +if gt get tl 0 63 +fail 13 +end +w = get tw 0 +if ne kw w 0 +fail 16 +end +l = get tl 0 +s = get ts 0 +f = ulong 0 +if eq get scanning 0 1 +newname w l s +f = get nf 0 +if ge f 512 +fail 14 +end +put nf 0 add f 1 +put curfn 0 add f 1 +put lastfn 0 add f 1 +put fn_name f w +put fn_addr f get oc 0 +put fn_ret f 0 +put fn_np f 0 +put fn_nmlen f l +put fn_off f s +put dstart f get dtoken 0 +else +f = sub findfn w l s 1 +put curfn 0 add f 1 +put lastfn 0 add f 1 +put fn_addr f get oc 0 +end +put nn 0 get nglob 0 +np = ulong 0 +go = true +while go +tok +if eq get tk 0 0 +fail 4 +end +if ne get tk 0 1 +fail 16 +end +if gt get tl 0 8 +fail 13 +end +pw = get tw 0 +c = kw pw +if eq c 65 +go = false +else +if ne c 0 +fail 16 +end +newname pw get tl 0 get ts 0 +if ge np 6 +fail 9 +end +fn_p f np pw +np = add np 1 +end +end +fn_to f np +if eq get scanning 0 1 +put curret 0 0 +put nn 0 0 +end +end + +note s_ret: ret [value]: the value into X0, give back the local arrays' stack, RET. om4 S_RET. +fn s_ret to void +r = get curret 0 +if eq r 10 +eol +epi +dead1 +ret +end +rdval 0 r 0 0 +if ne get rt 0 r +fail 7 +end +force get rk 0 get rv 0 get rt 0 0 +epi +dead1 +eol +end + +note s_exit: exit value (int): Linux exit (system call 93: MOVZ X8, #93, C6.2.285; SVC #0, C6.2.466); the +note path ends. om4 S_EXIT. +fn s_exit to void +rdval 0 8 255 0 +if ne get rt 0 8 +fail 7 +end +force get rk 0 get rv 0 get rt 0 0 +emit 3531606952 +emit 3556769793 +dead1 +eol +end + +note stel: the checked store of v (type t) at ea_b / ea_i (the STOP table: register offset, scaled) +fn stel t ulong v ulong to void +b = shl get ea_b 0 5 +i = shl get ea_i 0 16 +emit or or or stop t v b i +end + +note s_put: put A i v: index, then value, then the checked store (STOP table). om4 S_PUT. +fn s_put to void +e = arrname +k = get nm_kind sub e 1 +if ge k 6 +s_putf e +ret +end +if or eq k 2 eq k 5 +fail 20 +end +rdval 0 5 255 0 +ik = get rk 0 +iv = get rv 0 +it = get rt 0 +t = ulong get nm_type sub e 1 +rdval 0 t 255 0 +if ne get rt 0 t +fail 7 +end +v = matreg get rk 0 get rv 0 get rt 0 +elemaddr e ik iv it +stel t v +eol +end + +note s_global: global NAME T N: a fixed pool of N elements, zero at start, in the read/write part of the +note program image after the 8 MiB stack pool (address 0x10800000 + pool bytes so far); at most 1 GiB of +note pools (error 23). om4 S_GLOBAL. +fn s_global to void +w = topname +t = typeword +elemtype t +tok +if ne get tk 0 2 +fail 16 +end +n = get tw 0 +arrlen n +by = shl shr add shl n tlog t 15 4 4 +pb = get poolb 0 +a = add 276824064 pb +s = add pb by +if gt s 1073741824 +fail 23 +end +put poolb 0 s +addname w 0 t n 4 a +put nglob 0 get nn 0 +eol +end + +note s_text: text NAME "...": read-only bytes in the program image (escapes \n \t \\ \", any other is error +note 22), padded to a word, with their length; address 0x400000 + its place. om4 S_TEXT. +fn s_text to void +w = topname +tok +if ne get tk 0 4 +fail 16 +end +a = add get oc 0 4194304 +p = get tw 0 +e = add p get tl 0 +n = ulong 0 +go = true +while go +m = ulong 0 +while and go lt m 999999 +if ge p e +go = false +else +b = get inp p +p = add p 1 +if eq b 92 +b = get inp p +p = add p 1 +if eq b 110 +b = uchar 10 +else +if eq b 116 +b = uchar 9 +else +if and ne b 92 ne b 34 +fail 22 +end +end +end +end +emitb b +n = add n 1 +end +m = add m 1 +end +end +while ne and get oc 0 3 0 +emitb 0 +end +addname w 0 2 n 5 a +put nglob 0 get nn 0 +eol +end + +note s_if: if cond: the false branch is patched at else / end. om4 S_IF. +fn s_if to void +at = cond +pushb at 1 0 0 0 +pushnh get nn 0 get held 0 +eol +end + +note s_else: jump over the else part (B, C6.2.35); the if's false branch lands after that jump. om4 S_ELSE. +fn s_else to void +n = get nb 0 +if eq n 0 +fail 15 +end +i = sub n 1 +if ne get bkind i 1 +fail 15 +end +b = get oc 0 +emit 335544320 +patch19 get bbr i get oc 0 +put bkind i 2 +put bbr i b +put nn 0 get bnames i +put held 0 get bheld i +put bdead i get dead 0 +put dead 0 0 +eol +end + +note lpcnt: the hidden counter check of a loop: CMP Xc, #N (C6.2.96) or CMP Xc, Xn (C6.2.97); B.HS trap +note 4; ADD Xc, Xc, #1 (C6.2.5). om4 SW_NOB .. SW_G and the same in S_FOR. +fn lpcnt c ulong n ulong to void +if le n 4095 +emit or or 4043309087 shl n 10 shl c 5 +else +m = alloc +matconst m n +emit or or 3942645791 shl c 5 shl m 16 +end +trapc 2 4 +emit or or 2432697344 c shl c 5 +end + +note s_while: while cond [bound N]: hidden counter = 0; head: cond false -> exit; counter >= N -> trap 4; +note counter = counter + 1; body; B head. N is 1 .. 999999 (error 8), 1000000 with no bound. om4 S_WHILE. +fn s_while to void +sn = get nn 0 +sh = get held 0 +c = alloc +put held 0 get nslot 0 +emit or 3531603968 c +hd = get oc 0 +br = cond +n = ulong 1000000 +tok +k = get tk 0 +if and ne k 0 ne k 3 +if ne k 1 +fail 5 +end +if gt get tl 0 8 +fail 5 +end +if ne kw get tw 0 70 +fail 5 +end +tok +if eq get tk 0 0 +fail 4 +end +if ne get tk 0 2 +fail 16 +end +if ge sub get tw 0 1 999999 +fail 8 +end +n = get tw 0 +eol +end +lpcnt c n +pushb br 3 hd c 0 +pushnh sn sh +end + +note sf_br: B.HS (unsigned) or B.GE (signed) to the loop exit, C6.2.34 (distance filled at end); returns +note its place. om4 SF_BR. +fn sf_br t ulong to ulong +at = get oc 0 +if lt t 6 +emit 1409286146 +else +emit 1409286154 +end +ret at +end + +note sf_num: for i T K with K a number: i = 0 (MOVZ, C6.2.285); head: CMP Xi, #K or Xk; B.HS/B.GE exit. +note om4 SF_NUM .. SF_PUSH. +fn sf_num w ulong t ulong kk ulong sn ulong sh ulong to void +eol +i = alloc +put held 0 get nslot 0 +addname w i t 0 0 0 +emit or 3531603968 i +hd = get oc 0 +if le kk 4095 +emit or or 4043309087 shl kk 10 shl i 5 +else +k = alloc +matconst k kk +emit or or 3942645791 shl i 5 shl k 16 +end +br = sf_br t +pushb br 4 hd i t +pushnh sn sh +end + +note sf_val: for i T K with K a value of type T in register kr: i = 0; the hidden counter c = 0; head: CMP +note Xi, Xk; B.HS/B.GE exit; the counter guard of a while with no bound. om4 SF_VAL. +fn sf_val w ulong t ulong kr ulong sn ulong sh ulong to void +eol +i = alloc +put held 0 get nslot 0 +addname w i t 0 0 0 +emit or 3531603968 i +c = alloc +put held 0 get nslot 0 +emit or 3531603968 c +hd = get oc 0 +emit or or 3942645791 shl kr 16 shl i 5 +br = sf_br t +m = alloc +matconst m 1000000 +emit or or 3942645791 shl c 5 shl m 16 +trapc 2 4 +emit or or 2432697344 c shl c 5 +pushb br 4 hd i t +pushnh sn sh +end + +note s_for: for i T K: i = 0; head: not i < K -> exit; body; latch i = add i 1; B head. K a number, or a +note value of type T: a name is read at every pass, another value once before the loop. om4 S_FOR. +fn s_for to void +sn = get nn 0 +sh = get held 0 +tok +if eq get tk 0 0 +fail 4 +end +if ne get tk 0 1 +fail 16 +end +if gt get tl 0 8 +fail 13 +end +w = get tw 0 +if ne kw w 0 +fail 16 +end +newname w get tl 0 get ts 0 +t = typeword +if eq t 1 +fail 7 +end +tok +if eq get tk 0 0 +fail 4 +end +if eq get tk 0 2 +range get tw 0 t get tbig 0 +sf_num w t get tw 0 sn sh +ret +end +rdval 1 t 255 0 +if ne get rt 0 t +fail 7 +end +if eq get rk 0 3 +sf_num w t get rv 0 sn sh +ret +end +kr = matreg get rk 0 get rv 0 get rt 0 +sf_val w t kr sn sh +end + +note finish: end of a function: a function that needs a value must not reach its end (error 18), a void +note one returns; then the trap stubs: shared tail, function mode MOV X0, X7; LDR X16, [X7, #16]; BR X16 +note (C6.2.282, C6.2.216, C6.2.46: OscRt.trap); program mode ADD X0, X1, #100; MOVZ X8, #93; SVC #0 (exit +note 100 + code). Per trap code used: MOVZ X1, #code (C6.2.285); B tail. om4 FINISH. +fn finish to void +if ne get dmode 0 0 +put dend sub get curfn 0 1 get cur 0 +end +eol +if eq get dead 0 0 +if ne get curret 0 10 +fail 18 +end +epi +end +nt0 = get nt 0 +if ne nt0 0 +tail = get oc 0 +if eq get progmode 0 0 +emit 2852586464 +emit 4181723376 +emit 3592356352 +else +emit 2432798752 +emit 3531606952 +emit 3556769793 +end +code = ulong 1 +while le code 14 +st = ulong 0 +j = ulong 0 +while lt j nt0 +if eq get tcode j code +if eq st 0 +st = get oc 0 +emit or 3531603969 shl code 5 +back tail +end +patch19 get tsite j st +end +j = add j 1 +end +code = add code 1 +end +end +put curret 0 0 +put nn 0 get nglob 0 +put curfn 0 0 +end + +note s_end: close the innermost block (if: patch its branch; else: patch its jump; while: B head; for: i = +note add i 1, B head), or the function. om4 S_END. +fn s_end to void +n = get nb 0 +if eq n 0 +finish +ret +end +i = sub n 1 +put nb 0 i +k = get bkind i +if eq k 2 +put dead 0 and get dead 0 get bdead i +else +put dead 0 0 +end +if eq k 4 +put fr 0 1 +put fr 1 get breg i +put fr 2 get btyp i +put fr 3 3 +put fr 4 1 +put fr 5 get btyp i +binop 33 get breg i 0 +end +if ge k 3 +back get bhead i +end +if eq k 2 +patch26 get bbr i get oc 0 +else +patch19 get bbr i get oc 0 +end +put nn 0 get bnames i +put held 0 get bheld i +eol +end + +note ======== the end of the input: the output ======== +note writeout: the output from byte st to the end, to stdout (error 2), then exit 0. om4 WRITEOUT. +fn writeout st ulong to void +p = st +go = true +while go +m = ulong 0 +while and go lt m 999999 +if ge p get oc 0 +go = false +else +n = write 1 out p sub get oc 0 p +if le n 0 +fail 2 +end +p = add p ulong n +end +m = add m 1 +end +end +exit int 0 +end + +note elfhdr: the 176-byte file header (om4 ELFHDR, 44 words): ELF64 little-endian, executable, AArch64, +note entry 0x4000b0 (the word after the header), 2 program headers: code read+execute from 0x400000, and +note the read/write pools from 0x10000000. Only the words that are not 0 (the output starts at 0). +fn elfhdr to void +wrword 0 1179403647 +wrword 4 65794 +wrword 16 11993090 +wrword 20 1 +wrword 24 4194480 +wrword 32 64 +wrword 52 3670080 +wrword 56 2 +wrword 64 1 +wrword 68 5 +wrword 80 4194304 +wrword 88 4194304 +wrword 112 4096 +wrword 120 1 +wrword 124 6 +wrword 136 268435456 +wrword 144 268435456 +wrword 168 4096 +end + +note eof_prog: program mode: start code = MOVZ X28, #0x1000, LSL 16 (stack pool floor); MOVZ X16, #0x1080, +note LSL 16; MOV SP, X16 (ADD immediate, C6.2.5); BL main (C6.2.43); [MOVZ X0, #0 for a void main]; MOVZ X8, +note #93; SVC #0. The entry word after the header is a B to it; the header gets the file and pool sizes. +note om4 EOF_PROG. +fn eof_prog to void +f = findfn 1852399981 4 0 +if eq f 0 +fail 16 +end +if ne get fn_np sub f 1 0 +fail 9 +end +wrword 176 or 335544320 and shr sub get oc 0 176 2 67108863 +emit 3533832220 +emit 3533836304 +emit 2432696863 +emit or 2483027968 and shr sub get fn_addr sub f 1 get oc 0 2 67108863 +if eq get fn_ret sub f 1 10 +emit 3531603968 +end +emit 3531606952 +emit 3556769793 +elfhdr +wrword 96 get oc 0 +wrword 104 get oc 0 +wrword 160 add get poolb 0 8388608 +writeout 0 +end + +note s_eof: end of input: no open function (error 15), some function (16); function mode: no globals or +note texts (9); one function: its bare words; more: the entry word, a B to the last function. om4 S_EOF. +note Resolve every call after all addresses are known. In function mode remove leaves of the call +note graph; any functions left after nf rounds form or reach a cycle (error 9). +fn resolve to void +n = get ncalls 0 +i = ulong 0 +while lt i n +s = get callsite i +f = sub get callto i 1 +wrword s or 2483027968 and shr sub get fn_addr f s 2 67108863 +i = add i 1 +end +if eq get progmode 0 0 +pass = ulong 0 +while lt pass get nf 0 +f = ulong 0 +while lt f get nf 0 +if eq get settled f 0 +ok = true +i = ulong 0 +while and ok lt i n +if eq get callfrom i add f 1 +if eq get settled sub get callto i 1 0 +ok = false +end +end +i = add i 1 +end +if ok +put settled f 1 +end +end +f = add f 1 +end +pass = add pass 1 +end +f = ulong 0 +while lt f get nf 0 +if eq get settled f 0 +fail 9 +end +f = add f 1 +end +end +end + +fn s_eof to void + +if ne get curret 0 0 +fail 15 +end +if eq get nf 0 0 +fail 16 +end +resolve +if ne get dmode 0 0 +dexport +end +if ne get progmode 0 0 +eof_prog +end +if ne get nglob 0 0 +fail 9 +end +if eq get nf 0 1 +writeout 180 +end +a = get fn_addr sub get lastfn 0 1 +wrword 176 or 335544320 and shr sub a 176 2 67108863 +writeout 176 +end + +note stmt: one line. Returns 1 at the end of the input. om4 STMT. +fn stmt to ulong +put nslot 0 get held 0 +tok +k = get tk 0 +if eq k 0 +ret 0 +end +if eq k 3 +s_eof +ret 1 +end +if ne k 1 +fail 16 +end +if gt get tl 0 8 +s_long +ret 0 +end +w = get tw 0 +c = kw w +if eq c 83 +skipnl +ret 0 +end +if eq c 64 +s_fn +ret 0 +end +if eq get curret 0 0 +if eq c 78 +s_global +ret 0 +end +if eq c 79 +s_text +ret 0 +end +if eq c 85 +skipnl +ret 0 +end +fail 16 +end +if eq c 66 +s_end +ret 0 +end +if eq c 68 +s_else +ret 0 +end +if ne get dead 0 0 +fail 17 +end +if eq c 0 +s_name w +ret 0 +end +if eq c 67 +s_if +ret 0 +end +if eq c 69 +s_while +ret 0 +end +if eq c 71 +s_for +ret 0 +end +if eq c 72 +s_ret +ret 0 +end +if eq c 80 +s_put +ret 0 +end +if eq c 82 +s_exit +ret 0 +end +if or or or eq c 77 eq c 78 eq c 79 eq c 81 +fail 9 +end +if eq c 85 +fail 9 +end +fail 16 +ret 0 +end + +note ======== program mode: some line is `fn main` (blanks, fn, blanks, main, then a blank or the end) ======== +note skipbl: the first place at or after q that is not a space or tab (or the end) +fn skipbl q ulong to ulong +e = get inlen 0 +p = q +go = true +while go +m = ulong 0 +while and go lt m 999999 +if ge p e +go = false +else +b = get inp p +if or eq b 32 eq b 9 +p = add p 1 +else +go = false +end +end +m = add m 1 +end +end +ret p +end + +note skipln: the place after the next newline at or after q (or the end) +fn skipln q ulong to ulong +e = get inlen 0 +p = q +go = true +while go +m = ulong 0 +while and go lt m 999999 +if ge p e +go = false +else +b = get inp p +p = add p 1 +if eq b 10 +go = false +end +end +m = add m 1 +end +end +ret p +end + +note ps_at: the line's first byte that is not blank is at p: 1 when the line is `fn main`, 2 when the input +note ends while deciding, else 0. om4 PS_LINE .. PS_YES. +fn ps_at p ulong to ulong +e = get inlen 0 +if ne get inp p 102 +ret 0 +end +q = add p 1 +if ge q e +ret 2 +end +if ne get inp q 110 +ret 0 +end +r = add q 1 +q = skipbl r +if ge q e +ret 2 +end +if eq q r +ret 0 +end +if gt add q 4 e +ret 0 +end +if ne get inp q 109 +ret 0 +end +if ne get inp add q 1 97 +ret 0 +end +if ne get inp add q 2 105 +ret 0 +end +if ne get inp add q 3 110 +ret 0 +end +if ge add q 4 e +ret 1 +end +if gt get inp add q 4 32 +ret 0 +end +ret 1 +end + +fn prescan to void +e = get inlen 0 +p = ulong 0 +go = true +while go +m = ulong 0 +while and go lt m 999999 +p = skipbl p +if ge p e +go = false +else +r = ps_at p +if eq r 1 +put progmode 0 1 +go = false +end +if eq r 2 +go = false +end +if go +p = skipln p +if ge p e +go = false +end +end +end +m = add m 1 +end +end +end + +note First collect signatures. Only fn headers are parsed here; other lines are read in the body pass. +fn namescan to void +put scanning 0 1 +put line 0 1 +go = true +while go +n = ulong 0 +while and go lt n 999999 +tok +if eq get tk 0 3 +go = false +else +if ne get tk 0 0 +if and eq get tk 0 1 eq get tw 0 28262 +put dtoken 0 get ts 0 +s_fn +else +if and eq get tk 0 1 eq get tw 0 127970521019507 +s_struct +else +skipnl +end +end +end +end +n = add n 1 +end +end +put scanning 0 0 +put cur 0 0 +put line 0 1 +put nn 0 0 +put curfn 0 0 +put curret 0 0 +put npar 0 0 +put nslot 0 0 +put held 0 0 +end + +note ======== R6 structs (omc only; om4 stays the parent that rebuilds this file) ======== +note A struct is 8-byte cells, declaration order, no padding (OSC-2). new is a stack slot, given +note back at ret, like a local array. There is no free (decision 24). Field scale: cell << (3 - tlog) +note so a typed store lands on cell * 8. Pack of struct is 127970521019507 (Wolfram, little-endian). + +note findstruct: packed name -> index + 1, or 0 +fn findstruct w ulong to ulong +i = ulong 0 +n = get nst 0 +while lt i n +if eq get st_name i w +ret add i 1 +end +i = add i 1 +end +ret 0 +end + +note findfield: struct index, packed field name -> field-table index + 1, or 0 +fn findfield si ulong w ulong to ulong +fo = ulong get st_foff si +nfd = ulong get st_nf si +i = ulong 0 +while lt i nfd +j = add fo i +if eq get sf_name j w +ret add j 1 +end +i = add i 1 +end +ret 0 +end + +note field_dup: 1 if w is already a field of the struct being read (fields fo .. nsf) +fn field_dup fo ulong w ulong to ulong +i = fo +e = get nsf 0 +while lt i e +if eq get sf_name i w +ret 1 +end +i = add i 1 +end +ret 0 +end + +note s_field: the current word is a field name of struct w. Returns the cell count after this field. +fn s_field w ulong fo ulong cells ulong to ulong +if ne kw get tw 0 0 +fail 16 +end +if gt get tl 0 8 +fail 13 +end +fw = get tw 0 +if eq fw w +fail 10 +end +if ne findstruct fw 0 +fail 10 +end +if ne field_dup fo fw 0 +fail 10 +end +t = typeword +ln = ulong 0 +p = get cur 0 +ln0 = get line 0 +tok +if eq get tk 0 2 +ln = get tw 0 +if ne get tbig 0 0 +fail 14 +end +if or eq ln 0 gt ln 64 +fail 14 +end +else +put cur 0 p +put line 0 ln0 +end +addc = ulong 1 +if ne ln 0 +addc = ln +end +if gt add cells addc 64 +fail 14 +end +put sf_name get nsf 0 fw +put sf_type get nsf 0 uchar t +put sf_len get nsf 0 uchar ln +put sf_off get nsf 0 uchar cells +put nsf 0 add get nsf 0 1 +ret add cells addc +end + +note s_struct: struct Name (field type [len])* end. Before any fn (namescan). 1..16 fields, <= 64 cells. +fn s_struct to void +if ne get nf 0 0 +fail 9 +end +tok +if ne get tk 0 1 +fail 16 +end +if gt get tl 0 8 +fail 13 +end +if ne kw get tw 0 0 +fail 16 +end +w = get tw 0 +if ne findstruct w 0 +fail 10 +end +if ne findfn w get tl 0 get ts 0 0 +fail 10 +end +if ge get nst 0 16 +fail 14 +end +sid = get nst 0 +fo = get nsf 0 +cells = ulong 0 +nfld = ulong 0 +go = true +while go +tok +if eq get tk 0 0 +fail 4 +end +if ne get tk 0 1 +fail 16 +end +if eq kw get tw 0 66 +go = false +else +if ge nfld 16 +fail 14 +end +cells = s_field w fo cells +nfld = add nfld 1 +end +end +if eq nfld 0 +fail 16 +end +put st_name sid w +put st_nf sid uchar nfld +put st_cells sid uchar cells +put st_foff sid uchar fo +put nst 0 add sid 1 +eol +end + +note peek_struct: if the next word is a struct name, consume it and return index + 1; else rewind +fn peek_struct to ulong +p = get cur 0 +ln = get line 0 +tok +if ne get tk 0 1 +put cur 0 p +put line 0 ln +ret 0 +end +sid = findstruct get tw 0 +if eq sid 0 +put cur 0 p +put line 0 ln +ret 0 +end +ret sid +end + +note fn_p_st: parameter pw is view (k 2, name kind 8) or edit (k 3, name kind 7). fn_pk is 6 or 7. +fn fn_p_st f ulong np ulong pw ulong sid ulong k ulong to void +si = sub sid 1 +t = add si 16 +ln = ulong get st_cells si +sk = add k 4 +if eq k 2 +addname pw poolc np t ln 8 0 +else +addname pw poolc np t ln 7 0 +end +p = add mul f 6 np +put fn_pt p uchar t +put fn_pl p ln +put fn_pk p uchar sk +end + +note sa_new: name = new . Rewind unless the next word is a struct name. +fn sa_new w ulong to void +p = get cur 0 +ln = get line 0 +tok +sid = ulong 0 +if eq get tk 0 1 +sid = findstruct get tw 0 +end +if ne sid 0 +sa_st w sid +ret +end +put cur 0 p +put line 0 ln +sa_arr w +end + +note st_read: one value per field, saved in svk/svv/svt. An array field takes one value. +fn st_read si ulong to void +fo = ulong get st_foff si +nfd = ulong get st_nf si +i = ulong 0 +while lt i nfd +ft = ulong get sf_type add fo i +rdval 0 ft 255 0 +if ne get rt 0 ft +fail 7 +end +put svk i get rk 0 +put svv i get rv 0 +put svt i get rt 0 +i = add i 1 +end +end + +note st_store: STR of v at cell, scaled so the typed store lands on cell * 8. ADD is not used; the +note index register holds cell << (3 - tlog). STR register-offset is the STOP table (om4). +fn st_store base ulong idx ulong cell ulong t ulong v ulong to void +matconst idx shl cell sub 3 tlog t +put ea_b 0 base +put ea_i 0 idx +stel t v +end + +note st_ixreg: runtime element index iv, field length fl, cell offset off. CMP + B.HS trap 3 +note (elemaddr, C6.2.96 / C6.2.34), then ADD Xidx, Xiv, #off (C6.2.5, base word 2432696320) and +note LSL by 3 - tlog (bo_lsl) so the STOP store lands on (off + i) * 8. +fn st_ixreg idx ulong iv ulong off ulong fl ulong t ulong to void +emit or or 4043309087 shl fl 10 shl iv 5 +trapc 2 3 +emit or or or 2432696320 idx shl iv 5 shl off 10 +sh = sub 3 tlog t +if ne sh 0 +bo_lsl idx sh idx +end +end + ``` The diff is longer than this page shows; the raw diff has all of it.