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/a5db24776f6fc80a # 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#837 (code only) open derived `a5db24776f6fc80a` #837 Imported from GitHub aien-dev/omega-mv#837 (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 `0b77e6ea294aa3d69ccbdb86b9c14d133abea689` · Head `f1b9ecb5d13f3b7303c055a187fff06e802eb952` ### Apply it ``` git checkout -b patch-a5db24776f6fc80a 0b77e6ea294aa3d69ccbdb86b9c14d133abea689 curl -fsSL https://interplane.io/drakestapleton/omega-mv/patches/a5db24776f6fc80a.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 837 f1b9ecb5d13f3b7303c055a187fff06e802eb952 ``` ``` {"kind":"github-import","owner":"aien-dev","repo":"omega-mv","number":837,"url":"https://github.com/aien-dev/omega-mv/pull/837","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:38:45Z","metadata":"unavailable","state_derived":true} ``` ### Changes ``` diff --git a/.crumb b/.crumb index 35aa2238f..f6b6e8621 100644 --- a/.crumb +++ b/.crumb @@ -42,68 +42,68 @@ "children": [ { "digest": "9f19f11674ca5dfc3c9c3ae35fe6106557aee9583210da13d257e1b9d88e052c", - "last_commit": "d863780e", + "last_commit": "d863780eb", "name": "calibration", "purpose": "Directory calibration. Purpose not yet described by a human." }, { - "digest": "26c2fbf4515e981db72f56dad2fc3fe0667c469551cf6071e28ac50005a36e42", - "last_commit": "943f5139", + "digest": "b108a9de01155731675495177897787727ac73298052888450fefa2a76539d97", + "last_commit": "6ebe4ff3b", "name": "docs", "purpose": "Directory docs. Purpose not yet described by a human." }, { "digest": "536f7b8db9a92a1f586bad4379d47544a30d1b8e83c2d799c18e66cf8660c9ae", - "last_commit": "30bb116c", + "last_commit": "30bb116cc", "name": "doctrine", "purpose": "Directory doctrine. Purpose not yet described by a human." }, { "digest": "4947c0eb38550826cdfaba5d08384f3ebd284b82ab456ecf276617ce2ef998fd", - "last_commit": "43f25831", + "last_commit": "43f25831b", "name": "mk", "purpose": "Directory mk. Purpose not yet described by a human." }, { "digest": "62b92244c52fa8af6f511012dee2967e98dff162cc1d8bf45d0b2f15cb0adc5f", - "last_commit": "450bbefd", + "last_commit": "450bbefd4", "name": "research", "purpose": "Directory research. Purpose not yet described by a human." }, { "digest": "8bbd5f74b01446007499a9a9be4e9f50f4364af0f578d9cdf26a2afd84e3bb63", - "last_commit": "faebae8c", + "last_commit": "faebae8c1", "name": "spec", "purpose": "Directory spec. Purpose not yet described by a human." }, { "digest": "f390041dbba29a5707b5652e20e6bffd69e0a1f1ebfc493736ff5266370fa4aa", - "last_commit": "82a399b9", + "last_commit": "82a399b9f", "name": "src", "purpose": "Directory src. Purpose not yet described by a human." }, { "digest": "d75dd95349e3cd5e180a91ec848d3e25ac9c3b693f96d4397c9646e37823cba9", - "last_commit": "45f7d769", + "last_commit": "45f7d7691", "name": "tests", "purpose": "Directory tests. Purpose not yet described by a human." }, { "digest": "4e83dea21da137c30076c2dc0ca4f3a488f576f30a94e334558ad5ea523f3a6b", - "last_commit": "a50c3bd4", + "last_commit": "a50c3bd41", "name": "tools", "purpose": "Directory tools. Purpose not yet described by a human." } ], - "children_root": "sha256:86ef1d4da867572dbd97c75562b8066d916c4b712e883715e0c3bdd3a13b5f1f", - "compiled_at": "2026-10-26T19:28:07Z", + "children_root": "sha256:a7c4af5109914bb4aa4313cee3cc2119db3423ed7100a570c88d68dd84540315", + "compiled_at": "2026-10-26T22:03:39Z", "compiler": "crumb-compile/1", - "digest": "sha256:cbd1d776bb45a312fa9e1d63b688b2085834b584fb1bf95d56e96eefa4d90c28", + "digest": "sha256:0635eefd0c8b37547ec1df4bf7c8b489398cb006a94d278c274b5587d360bb45", "evidence_files": 12477, "evidence_root": "sha256:9d96c8c22e5c574c4768d1eadd333b9750f73cd27be276a0f190c876960008a1", - "files": 17297, - "generated_at_commit": "813d6c4385665b61485ee9d1fa91c0c213ed4ce3", - "source_tree": "sha256:028d088bf1a5bb9001b4082b459ef4efaeaa6e33e4840a5e73a9a5ca07ae4ffe" + "files": 17298, + "generated_at_commit": "c77816edc4900e0b9e4f8343089b84d6504fb3a8", + "source_tree": "sha256:1b01c8161e9ca21b961a8b648890db05ec43c184be2aa999adda83adffb9f8bb" }, "owner_lane": "", "provenance": { diff --git a/docs/.crumb b/docs/.crumb index dcf015737..d0b2107a5 100644 --- a/docs/.crumb +++ b/docs/.crumb @@ -46,92 +46,92 @@ "children": [ { "digest": "640f6b7b818c769ab0dcd91437d58dd3251044084d2ae3785f000d30d2bb768a", - "last_commit": "a927bd6c", + "last_commit": "a927bd6c2", "name": "adr", "purpose": "Directory docs/adr. Purpose not yet described by a human." }, { "digest": "e7ac2460455a35b96b01dab649dcdc2cdf5bb4657bf230b91272c64fe1bf82cf", - "last_commit": "d48ab89e", + "last_commit": "d48ab89e5", "name": "autodiff", "purpose": "M21 OMEGA_AUTODIFF scope, op and error-contract table, status (not qualified)" }, { "digest": "7506b1a8659e6de84e1be31a281c8d046e4946de6ed29451155bb56cda5cb365", - "last_commit": "6637b32b", + "last_commit": "6637b32b6", "name": "brownian", "purpose": "Directory docs/brownian. Purpose not yet described by a human." }, { "digest": "1b01542d91e3b1c7c5263d6b393338a3d9d40e138a12ec833ce7852d83887ce2", - "last_commit": "5901baa5", + "last_commit": "5901baa51", "name": "crumbs", "purpose": "Directory docs/crumbs. Purpose not yet described by a human." }, { "digest": "e9baaaeec04be41a57c4a2d6a540b01a682c70d4db96cb4af4e1a9912a133aa9", - "last_commit": "55d05d6a", + "last_commit": "55d05d6a5", "name": "dual", "purpose": "DUAL (ARCH-0031) documents in omega: applicability experiment method and findings (APPLICABILITY" }, { "digest": "56a5a999ce726e90d89c1c88b9e20c81857c8e6ee82af8d651ac80ea70e2c46d", - "last_commit": "38a6a569", + "last_commit": "38a6a569b", "name": "estimation", "purpose": "Directory docs/estimation. Purpose not yet described by a human." }, { "digest": "8b926a045985692f116d9469af5aaa06d778bca78cf5d7e891e68c2486ed789e", - "last_commit": "8ec82485", + "last_commit": "8ec82485d", "name": "numeric", "purpose": "Directory docs/numeric. Purpose not yet described by a human." }, { "digest": "1a26b15f795aa3581a03400a21d5635e85c71f3f544fcc3676fa58064402c7ad", - "last_commit": "968734c7", + "last_commit": "968734c7e", "name": "osc", "purpose": "Directory docs/osc. Purpose not yet described by a human." }, { "digest": "645b6abb9d46a13dff6c9091d79acf0318fcfdc447a2dc50a3b70cd0dcfaa548", - "last_commit": "968734c7", + "last_commit": "968734c7e", "name": "polyglot", "purpose": "Directory docs/polyglot. Purpose not yet described by a human." }, { "digest": "46d3e2d59a468271e044ccd2398eb32345df6436c15eb6d8c703953c838023a9", - "last_commit": "dd67f6bd", + "last_commit": "dd67f6bd7", "name": "reservoir", "purpose": "Reservoir reference and contracts (omega#440): RESERVOIR_REFERENCE.md pins the authors' paper an" }, { "digest": "2ab37838f8694e5060a3789f08a16146996050af949fba329ed805429d85f695", - "last_commit": "f633e343", + "last_commit": "f633e3430", "name": "tensor", "purpose": "M20 OMEGA_TENSOR spec and qualification checklist" }, { "digest": "41ab5cf8617e9583dcda75292e1e851e1ec4187b69d5d00b5eb354f1ee55c9d5", - "last_commit": "54826a37", + "last_commit": "54826a37f", "name": "train", "purpose": "Directory docs/train. Purpose not yet described by a human." }, { "digest": "5db2869ff0b78866ad0ce38f77b262e81fdbc89408e94968491c4e6548177278", - "last_commit": "968734c7", + "last_commit": "968734c7e", "name": "turing", "purpose": "Directory docs/turing. Purpose not yet described by a human." } ], "children_root": "sha256:c81d43c0c392dfec2b6ed5b38ba95ea7c592782b283950e32b777e7b9cfd9d61", - "compiled_at": "2026-10-26T17:56:57Z", + "compiled_at": "2026-10-26T22:03:39Z", "compiler": "crumb-compile/1", - "digest": "sha256:26c2fbf4515e981db72f56dad2fc3fe0667c469551cf6071e28ac50005a36e42", + "digest": "sha256:b108a9de01155731675495177897787727ac73298052888450fefa2a76539d97", "evidence_files": 34, "evidence_root": "sha256:589d8b3706e6d7a202ab20b278dac5fc5bafc973f1c2a867b2668aa7210b65cc", "files": 135, - "generated_at_commit": "943f5139f3f91f586ca03e707332afb2048d59d2", - "source_tree": "sha256:e91c9c4dc91d9680759d217e532ccacbaceea2f0ae8acc0b1ee957e627f1381d" + "generated_at_commit": "c77816edc4900e0b9e4f8343089b84d6504fb3a8", + "source_tree": "sha256:24c2634afd6b168868985996c7fdc8d0cf60962b67ff80d2613e0fa51a39cb8c" }, "owner_lane": "", "provenance": { diff --git a/docs/one_layer/OMEGESE.md b/docs/one_layer/OMEGESE.md index 119c55955..4e3d4189f 100644 --- a/docs/one_layer/OMEGESE.md +++ b/docs/one_layer/OMEGESE.md @@ -420,7 +420,10 @@ gate that tests it (`seed/rung4/gate4.sh`, section numbers of that script). Deci - `to void` makes a void function; `ret` with no value returns from it, and so does reaching its `end`. A function with a return type whose `end` can be reached is error 18. (s.6 t_void, s.7) - Arguments are read left to right, each fully before the next. (s.5 fm5) -- Function names may have up to 63 characters; other names up to 8 (error 13). (s.4 dev01, s.7) +- Names (functions, locals, parameters, globals, texts, constants, structs, fields, loop counters) may + have up to 63 bytes, compared in full: `counter_a` and `counter_b` are two names. 64 bytes or more is + error 13. In omc's IR mode, locals and parameters, `abstract` and `layout` names and layout fields + keep the 8-byte limit (error 13). om4 keeps 8 for every name except functions. (s.4 dev01, s.7) - A function has at most 6 parameters; a seventh is error 9. `main` has none (error 9). A new name may not reuse a name already in scope, a function or a struct: error 10. - In program mode the stack is a fixed 8 MiB pool; a call or a local array that would go below it traps @@ -606,7 +609,7 @@ error 9. Checked by `seed/omc/gate10.sh`, which `seed/host/check.sh` runs. ### 9.12 Constants (omc only, gate16) `const NAME TYPE LITERAL` at top level defines a named value before use. `NAME` is at most -8 characters and may not collide with a visible name, a function or a struct (error 10); the value +63 bytes and may not collide with a visible name, a function or a struct (error 10); the value must fit the type (error 8). The constant is a typed number: an integer (`uint 5`, `long -3`) or a float literal (`f64 0.1`, `f32 0.1`); an integer literal under a float type is refused (error 16). It composes wherever a value goes, including inside functions and as a call argument, and it cannot diff --git a/seed/check/nextfuzz.sh b/seed/check/nextfuzz.sh index ba21ffea0..bd84b4967 100755 --- a/seed/check/nextfuzz.sh +++ b/seed/check/nextfuzz.sh @@ -6,7 +6,7 @@ # with OTHER given, OTHER must give the same bytes, exit status and error number (prefix om4/omc aside). set -eu N=$1; REF=$2; OTH=${3:-}; D=$(dirname "$0"); W=${NFW:-/tmp/nextfuzz.$$}; mkdir -p $W -V="fn to end if else while bound for ret exit put get len read write new global text view edit true false note neg not add sub mul div rem and or xor shl shr eq ne lt le gt ge ( ) = bool uchar ushort uint ulong byte short int long void main 0 1 -1 255 18446744073709551615 9223372036854775808 x zz abcdefghij 123456789012345678901 1x \"s\" \"q\\\\x\"" +V="fn to end if else while bound for ret exit put get len read write new global text view edit true false note neg not add sub mul div rem and or xor shl shr eq ne lt le gt ge ( ) = bool uchar ushort uint ulong byte short int long void main 0 1 -1 255 18446744073709551615 9223372036854775808 x zz abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd 123456789012345678901 1x \"s\" \"q\\\\x\"" acc=0; inputs=0; bad=0; codes="" one() { # file -> checks it inputs=$((inputs + 1)) diff --git a/seed/omc/gate15.sh b/seed/omc/gate15.sh index 18ed50122..d2bc63a4f 100755 --- a/seed/omc/gate15.sh +++ b/seed/omc/gate15.sh @@ -35,7 +35,7 @@ e8_out_of_range|8|fn f to int\nx = int 2147483648\nret 0\nend e9_break_outside|9|fn f to int\nbreak\nret 0\nend e10_duplicate_param|10|fn f x int x int to int\nret 0\nend e11_ambiguous|11|fn f to int\nx = 5\nret 0\nend -e13_long_variable|13|fn f to int\nabcdefghi = int 1\nret 0\nend +e13_long_variable|13|fn f to int\nabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd = int 1\nret 0\nend e15_missing_end|15|fn f to int\nret 0 e16_syntax|16|wat e17_after_path|17|fn f to int\nret 0\nret 1\nend @@ -82,5 +82,20 @@ rc=$? set -e [ "$rc" = 0 ] || bad "valid control: exit $rc ($(cat "$T/ok.err"))" -say "PASS gate15 21 refusal cases (codes 3..23; 1 and 2 are compiler I/O) plus a valid control" +# Names of 9..63 bytes compare in full: two names sharing their first 8 bytes stay distinct, and a +# 63-byte name is accepted (64 bytes is e13 above). The program must compile and exit 21. +printf 'fn add_numbers counter_a int counter_b int to int\nret add counter_a mul counter_b int 10\nend\nfn main to int\nabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabc = int 1\ncounter_x = int 2\nret add_numbers abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabc counter_x\nend\n' > "$T/long.om" +set +e +"$S" < "$T/long.om" > "$T/long.bin" 2> "$T/long.err" +rc=$? +set -e +[ "$rc" = 0 ] || bad "long names: compile exit $rc ($(cat "$T/long.err"))" +chmod +x "$T/long.bin" +set +e +"$T/long.bin" > /dev/null 2>&1 +rc=$? +set -e +[ "$rc" = 21 ] || bad "long names: exit $rc, wanted 21" + +say "PASS gate15 21 refusal cases (codes 3..23; 1 and 2 are compiler I/O) plus a valid control and long names" exit 0 diff --git a/seed/omc/gate16.sh b/seed/omc/gate16.sh index d4d8314a8..37428a40d 100755 --- a/seed/omc/gate16.sh +++ b/seed/omc/gate16.sh @@ -71,7 +71,7 @@ duplicate|10|const N uint 5\nconst N uint 6\nfn main to int\nret 0\nend out_of_range|8|const N uchar 300\nfn main to int\nret 0\nend ir_float_const|9|ir\nconst H f64 0.1\nfn f to f64\nret H\nend extra_word|5|const N uint 5 6\nfn main to int\nret 0\nend -long_name|13|const abcdefghi uint 5\nfn main to int\nret 0\nend +long_name|13|const abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd uint 5\nfn main to int\nret 0\nend reserved|16|const while uint 5\nfn main to int\nret 0\nend missing_value|4|const N uint\nfn main to int\nret 0\nend inside_fn|16|fn main to int\nconst N uint 5\nret 0\nend diff --git a/seed/omc/gate5.sh b/seed/omc/gate5.sh index ddd9a52f5..339198a20 100644 --- a/seed/omc/gate5.sh +++ b/seed/omc/gate5.sh @@ -119,7 +119,7 @@ printf 'fn f a uint to uint\nret a\nend\n' > $B/ok.om; ecase 1 / $B/e.out; ecase printf 'fn f to uint\nret add\nend\n' > $B/e4.om; ecase 4 $B/e4.om $B/e.out printf 'fn f to uint\nret add 1 2\nend\n' > $B/e11.om; ecase 11 $B/e11.om $B/e.out { echo 'fn f to uint'; for i in $(seq 1 17); do echo "v$i = uint $i"; done; echo 'ret 0'; echo 'end'; } > $B/e12.om; ecase 12 $B/e12.om $B/e.out -printf 'fn f to uint\nabcdefghi = uint 1\nret 0\nend\n' > $B/e13.om; ecase 13 $B/e13.om $B/e.out +printf 'fn f to uint\nabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd = uint 1\nret 0\nend\n' > $B/e13.om; ecase 13 $B/e13.om $B/e.out yes 'note filler' | head -c 9000000 > $B/e14.om; ecase 14 $B/e14.om $B/e.out cases=$((cases + 10)) diff --git a/seed/omc/omc.om b/seed/omc/omc.om index eed86971c..255f90fb6 100644 --- a/seed/omc/omc.om +++ b/seed/omc/omc.om @@ -15,6 +15,7 @@ global tk ulong 1 global tw ulong 1 global tl ulong 1 global ts ulong 1 +global tp ulong 1 global tbig ulong 1 global out uchar 8388608 global oc ulong 1 @@ -111,6 +112,12 @@ global nm_kind uchar 8192 global nm_addr ulong 8192 global nn ulong 1 +note ---- long-word table (8192 spellings of 9..63 bytes, see lnid): packed first 8 bytes, length, offset ---- +global ln_w ulong 8192 +global ln_l ulong 8192 +global ln_s ulong 8192 +global nln ulong 1 + note ---- function table (4096): 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 4096 @@ -657,8 +664,48 @@ end end end +note lnsame: 1 when the n input bytes at a and at b agree from byte 8 on (the first 8 already matched). +fn lnsame a ulong b ulong n ulong to ulong +k = ulong 8 +while lt k n +if ne get inp add a k get inp add b k +ret 0 +end +k = add k 1 +end +ret 1 +end + +note lnid: a word of 9..63 bytes at [s, s+n) whose first 8 bytes are packed in w -> its interned id. Byte 0 +note of an id is 1, so an id never equals a packed word of 8 bytes or fewer (every word byte is above 32) +note and never a keyword; two spellings share an id only when every byte is equal. The table lives for +note the whole compile (the signature scan and the compile pass see the same ids). At most 8192 long +note spellings (error 14). +fn lnid s ulong n ulong w ulong to ulong +i = ulong 0 +while lt i get nln 0 +if eq get ln_w i w +if eq get ln_l i n +if eq lnsame get ln_s i s n 1 +ret or 1 shl add i 1 8 +end +end +end +i = add i 1 +end +if ge i 8192 +fail 14 +end +put ln_w i w +put ln_l i n +put ln_s i s +put nln 0 add i 1 +ret or 1 shl add i 1 8 +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. +note first byte '-' or a digit is a number. A word of 9..63 bytes gets its interned id (lnid) in tw, so +note every name up to 63 bytes is compared exactly. fn tok2 c uchar to void if eq c 34 tok_text @@ -702,6 +749,7 @@ m = add m 1 end end put tw 0 w +put tp 0 w put tl 0 n f = get inp get ts 0 isnum = false @@ -715,6 +763,11 @@ if isnum tok_num else put tk 0 1 +if gt n 8 +if le n 63 +put tw 0 lnid get ts 0 n w +end +end end end @@ -2085,7 +2138,7 @@ tok if ne get tk 0 1 fail 16 end -if gt get tl 0 8 +if gt get tl 0 63 fail 13 end sid = findstruct get tw 0 @@ -2096,7 +2149,7 @@ tok if ne get tk 0 1 fail 16 end -if gt get tl 0 8 +if gt get tl 0 63 fail 13 end f = findfield sub sid 1 get tw 0 @@ -2368,7 +2421,7 @@ fn newname w ulong l ulong s ulong to void if ne findstruct w 0 fail 10 end -if le l 8 +if le l 63 if ne findname w 0 fail 10 end @@ -2716,7 +2769,7 @@ if eq k 2 ret get tw 0 end if eq k 1 -if le get tl 0 8 +if le get tl 0 63 e = findname get tw 0 if ne e 0 if eq get nm_kind sub e 1 9 @@ -2800,7 +2853,7 @@ end if ne k 1 fail 16 end -if gt get tl 0 8 +if gt get tl 0 63 fail 13 end if eq kw get tw 0 193 @@ -2822,7 +2875,7 @@ tok if ne get tk 0 1 fail 16 end -if gt get tl 0 8 +if gt get tl 0 63 fail 13 end w = get tw 0 @@ -3724,7 +3777,7 @@ end if ne k 1 fail 16 end -if gt get tl 0 8 +if gt get tl 0 63 fail 13 end end @@ -6020,9 +6073,7 @@ ret end if gt get tl 0 8 f = findfn get tw 0 get tl 0 get ts 0 -if eq f 0 -unkfail 13 -end +if ne f 0 if eq get fn_ret sub f 1 12 fail 7 end @@ -6030,6 +6081,10 @@ rdval 2 0 dst f vdec ret end +if gt get tl 0 63 +unkfail 13 +end +end c = kw get tw 0 if eq c 0 if ne get cpure 0 0 @@ -6396,7 +6451,8 @@ 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. +note s_long: a word over 8 characters at the start of a line: a call of a void function, or (up to 63 +note bytes, interned by lnid) a name as s_name. om4 S_LONG. fn s_long to void if eq get curret 0 0 fail 13 @@ -6406,8 +6462,12 @@ fail 17 end f = findfn get tw 0 get tl 0 get ts 0 if eq f 0 +if gt get tl 0 63 unkfail 13 end +s_name get tw 0 +ret +end if ne get fn_ret sub f 1 12 fail 7 end @@ -6721,7 +6781,7 @@ end if ne get tk 0 1 fail 16 end -if gt get tl 0 8 +if gt get tl 0 63 fail 13 end pw = get tw 0 @@ -6925,7 +6985,7 @@ tok if ne get tk 0 1 fail 16 end -if gt get tl 0 8 +if gt get tl 0 63 fail 13 end w = get tw 0 @@ -7190,7 +7250,7 @@ end if ne get tk 0 1 fail 16 end -if gt get tl 0 8 +if gt get tl 0 63 fail 13 end w = get tw 0 @@ -8758,7 +8818,7 @@ 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 +if gt get tl 0 63 fail 13 end fw = get tw 0 @@ -8838,7 +8898,7 @@ tok if ne get tk 0 1 fail 16 end -if gt get tl 0 8 +if gt get tl 0 63 fail 13 end if ne kw get tw 0 0 @@ -10171,7 +10231,7 @@ tok if ne get tk 0 1 fail 16 end -if gt get tl 0 8 +if gt get tl 0 63 fail 13 end si = sub ulong get nm_type i 16 @@ -10227,7 +10287,7 @@ tok if ne get tk 0 1 fail 16 end -if gt get tl 0 8 +if gt get tl 0 63 fail 13 end si = sub ulong get nm_type i 16 @@ -11707,7 +11767,7 @@ end if and eq get tl 0 7 eq get tw 0 32481164592901733 ret 2 end -if and eq get tl 0 9 eq get tw 0 7953754356895346281 +if and eq get tl 0 9 eq get tp 0 7953754356895346281 if eq get inp add get ts 0 8 116 ret 3 end diff --git a/seed/qualification/om2/manifest-c2-longnames.txt b/seed/qualification/om2/manifest-c2-longnames.txt new file mode 100644 index 000000000..c1594e884 --- /dev/null +++ b/seed/qualification/om2/manifest-c2-longnames.txt @@ -0,0 +1,58 @@ +# Declared C2 delta for the long-names change (omega-mv #837): names of 9..63 bytes are compared in full; error 13 now means over 63. manifest-c2.txt stays frozen. +# Each row below expected error 13 for a 9- or 10-byte name. Under the candidate each gives exactly the exit, stdout and stderr that the pinned compiler 2c824805 gives on the same program with the long name shortened to 8 bytes (the program the old limit implied). +# c2-00665: the long name is now accepted; the program compiles. +c2-00665 emit pack:seed/qualification/om2/c2/corpus.pack:490126:40 sha:878d1ef08bd1640cfe8730c9ec0289bffdc61a98257dd6dcaf299117448efa91 - 0 +# c2-00700: the long name is now accepted; the program compiles. +c2-00700 emit pack:seed/qualification/om2/c2/corpus.pack:516076:48 sha:4caebbb143d76413098649f9569eadc495aad8ca744a91ba7b29fe1bad4c7471 - 0 +# c2-00836: the long name is now accepted; the program compiles. +c2-00836 emit pack:seed/qualification/om2/c2/corpus.pack:540709:44 sha:c4edf24cc46e9bbeec77592b398d9e48588e4711fefd5e4b96b1707145351d85 - 0 +# c2-00996: the long name is now accepted; the program compiles. +c2-00996 emit pack:seed/qualification/om2/c2/corpus.pack:597947:369 sha:4d41925da444e49399ff48ae6ee756fb50c7ef28915a01c74d23ab5a09ab5eec - 0 +# c2-01255: was error 13 at line 18; the long name is read in full and is not declared: error 3 (unknown name), as for an 8-byte name (line 18). +c2-01255 emit pack:seed/qualification/om2/c2/corpus.pack:711213:478 - err:18:3 3 +# c2-01411: was error 13 at line 15; the long name is read in full and is not declared: error 3 (unknown name), as for an 8-byte name (line 15). +c2-01411 emit pack:seed/qualification/om2/c2/corpus.pack:765792:275 - err:15:3 3 +# c2-01738: was error 13 at line 23; the long name is read in full and is not declared: error 3 (unknown name), as for an 8-byte name (line 23). +c2-01738 emit pack:seed/qualification/om2/c2/corpus.pack:885194:496 - err:23:3 3 +# c2-01801: was error 13 at line 14; the long name is read in full and is not declared: error 3 (unknown name), as for an 8-byte name (line 14). +c2-01801 emit pack:seed/qualification/om2/c2/corpus.pack:922076:497 - err:14:3 3 +# c2-02180: was error 13 at line 30; the long name is read in full as a statement word; the next line is then incomplete (error 4), as for an 8-byte name (line 31). +c2-02180 emit pack:seed/qualification/om2/c2/corpus.pack:1208556:1209 - err:31:4 4 +# c2-02327: was error 13 at line 64; the long name is read in full and is not declared: error 3 (unknown name), as for an 8-byte name (line 64). +c2-02327 emit pack:seed/qualification/om2/c2/corpus.pack:1399508:1206 - err:64:3 3 +# c2-02372: was error 13 at line 7; the long name is read in full and is not declared: error 3 (unknown name), as for an 8-byte name (line 7). +c2-02372 emit pack:seed/qualification/om2/c2/corpus.pack:1457964:1209 - err:7:3 3 +# c2-02393: was error 13 at line 9; the long name is read in full and is not declared: error 3 (unknown name), as for an 8-byte name (line 9). +c2-02393 emit pack:seed/qualification/om2/c2/corpus.pack:1485224:1209 - err:9:3 3 +# c2-02435: was error 13 at line 18; the long name is read in full as a statement word; the next line is then incomplete (error 4), as for an 8-byte name (line 19). +c2-02435 emit pack:seed/qualification/om2/c2/corpus.pack:1539765:1208 - err:19:4 4 +# c2-02742: was error 13 at line 21; the long name is read in full and is not declared: error 3 (unknown name), as for an 8-byte name (line 21). +c2-02742 emit pack:seed/qualification/om2/c2/corpus.pack:1660512:689 - err:21:3 3 +# c2-02768: was error 13 at line 27; the long name is read in full as a statement word; the next line is then incomplete (error 4), as for an 8-byte name (line 28). +c2-02768 emit pack:seed/qualification/om2/c2/corpus.pack:1680741:689 - err:28:4 4 +# c2-02779: was error 13 at line 29; the long name is read in full and is not declared: error 3 (unknown name), as for an 8-byte name (line 29). +c2-02779 emit pack:seed/qualification/om2/c2/corpus.pack:1689302:691 - err:29:3 3 +# c2-02804: was error 13 at line 34; the long name is read in full and is not declared: error 3 (unknown name), as for an 8-byte name (line 34). +c2-02804 emit pack:seed/qualification/om2/c2/corpus.pack:1708747:691 - err:34:3 3 +# c2-02809: was error 13 at line 34; the long name is read in full and is not declared: error 3 (unknown name), as for an 8-byte name (line 34). +c2-02809 emit pack:seed/qualification/om2/c2/corpus.pack:1712642:689 - err:34:3 3 +# c2-03322: was error 13 at line 5; the long name is read in full and is not declared: error 3 (unknown name), as for an 8-byte name (line 5). +c2-03322 emit pack:seed/qualification/om2/c2/corpus.pack:1976147:650 - err:5:3 3 +# c2-03880: was error 13 at line 19; the long name is read in full and is not declared: error 3 (unknown name), as for an 8-byte name (line 19). +c2-03880 emit pack:seed/qualification/om2/c2/corpus.pack:2216748:478 - err:19:3 3 +# c2-03951: was error 13 at line 11; the long name is read in full and is not declared: error 3 (unknown name), as for an 8-byte name (line 11). +c2-03951 emit pack:seed/qualification/om2/c2/corpus.pack:2257066:480 - err:11:3 3 +# c2-03968: was error 13 at line 13; the long name is read in full and is not declared: error 3 (unknown name), as for an 8-byte name (line 13). +c2-03968 emit pack:seed/qualification/om2/c2/corpus.pack:2266721:477 - err:13:3 3 +# c2-04446: the long name is now accepted; the program compiles. +c2-04446 emit pack:seed/qualification/om2/c2/corpus.pack:2504251:576 sha:c3d73e6ff3d33c57a9c7f5e13057aca628996fe43da2cd7a049ce238653c4529 - 0 +# c2-04475: was error 13 at line 30; the long name is read in full and is not declared: error 3 (unknown name), as for an 8-byte name (line 30). +c2-04475 emit pack:seed/qualification/om2/c2/corpus.pack:2523540:574 - err:30:3 3 +# c2-04567: was error 13 at line 1; the long name is read in full as a statement word; the next line is then incomplete (error 4), as for an 8-byte name (line 2). +c2-04567 emit pack:seed/qualification/om2/c2/corpus.pack:2584649:576 - err:2:4 4 +# c2-04962: was error 13 at line 1; the long name is read in full and is not declared: error 3 (unknown name), as for an 8-byte name (line 3). +c2-04962 emit pack:seed/qualification/om2/c2/corpus.pack:2759587:216 - err:3:3 3 +# c2-05116: was error 13 at line 11; the long name is read in full and is not declared: error 3 (unknown name), as for an 8-byte name (line 11). +c2-05116 emit pack:seed/qualification/om2/c2/corpus.pack:2812741:357 - err:11:3 3 +# c2-05700: the long name is now accepted; the program compiles. +c2-05700 emit pack:seed/qualification/om2/c2/corpus.pack:3120761:42 sha:878d1ef08bd1640cfe8730c9ec0289bffdc61a98257dd6dcaf299117448efa91 - 0 diff --git a/seed/rung4/gate4.sh b/seed/rung4/gate4.sh index dbb4f3879..9da33efbe 100644 --- a/seed/rung4/gate4.sh +++ b/seed/rung4/gate4.sh @@ -133,7 +133,7 @@ t 23 'global g uchar 9223372036854775808\nfn main to int\nret 0\nend\n' '24: a p t 9 'fn main to int\nx = new uint 4 0\nfree x\nret 0\nend\n' '24: free is not a word (no heap, nothing given back by hand)' t 9 'fn f a int b int to int\nret 0\nend\nfn g to int\nx = own a\nret 0\nend\n' 'own is not in the subset' t 10 'fn f a uint to uint\nret a\nend\nfn g f uint to uint\nret f\nend\n' 'a name equal to a function' -t 13 'fn f a uint to uint\nabcdefghi = a\nret a\nend\n' 'a variable over 8 characters' +t 13 'fn f a uint to uint\nabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcd = a\nret a\nend\n' 'a 64-character variable (om4 refuses over 8, omc over 63)' t 15 'fn f a uint to uint\nret a\n' 'a function without end' t 14 "fn f a ulong to ulong\nx = $(printf 'neg %.0s' $(seq 1025))a\nret x\nend\n" '23: values nested over 1024 deep (a capacity, refused not overrun)' t 16 'end\n' 'end outside a function' ```