v4: COLD keeps the vocabularies as sealed -- FORGET's prune, shared

COLD set VOC-LINK to 0, assuming the sealed system has one vocabulary.
With starshipos.4th sealed in, STARSHIPOS fell out of the chain after
COLD. A word defined in it then forgotten, or COLDed away, hung the
node. ACL-INIT-PRIMITIVES would also have skipped its words.

FORGET's loop is now (PRUNE-ALL). It drops the vocabularies above (Q)
and prunes the lists of those that stay. FORGET calls it as before, and
COLD calls it with the sealed DP. No new cell and no new word.

Test first in test_mesh_boot.c: FORGET and COLD of a word in
STARSHIPOS, and STARSHIPOS's own words staying. The before-run hung and
was stopped at 500 s. After: 109 checks pass, POST is 990/990, all 52
64-bit tests and test-32 pass, ASan/UBSan are clean, and the amd64
build is clean.

Found by Captain Bob's "make sure we're not applying incorrect logic".
Ruled: fix first, then the protocol. Logs are in
logs/20261118-cold-vocabularies.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017RzZgrf7V7Zk2iczBXDRbm
This commit is contained in:
Claude
2026-11-18 13:35:22 +00:00
parent 8301d09db0
commit 295cd5185c
8 changed files with 1001 additions and 9 deletions
+17 -9
View File
@@ -95,6 +95,19 @@ set HDR-NFA here ", VLIST #id, #, 0 #, HDR-NFA #, HDR-LINK set HDR-LINK he
CUT: drop -1 + a! @ (Q)+1 a! @ a! ! jump L
DONE: drop ;
\ ( -- ) take off every list every entry at or above the address in (Q)+0:
\ FORTH's, and each vocabulary's that stays; a vocabulary defined at or above
\ it goes from the chain. FORGET does this for what it forgets, and COLD for
\ everything since the seal, so a vocabulary sealed into the system stays.
: (PRUNE-ALL)
(LATEST) (PRUNE)
V: VOC-LINK a! @ if PRUNED \ vocabularies that go
dup (Q) a! @ inv + 1 + -if GONE drop jump KEPT
GONE: drop 1 + a! @ VOC-LINK a! ! jump V
KEPT: P: if PRUNED \ the lists of those that stay
dup (PRUNE) 1 + a! @ jump P
PRUNED: drop ;
\ FORGET xxx FORTH-79: remove xxx and every word defined after it, in
\ whatever vocabulary; the space they took is free again. A vocabulary that
\ goes is no longer CONTEXT or CURRENT: FORTH is. A word that is not there
@@ -108,13 +121,7 @@ set HDR-NFA here ", FORGET #id, #, 0 #, HDR-NFA #, HDR-LINK set HDR-LINK h
drop drop NODE-ERROR b! 10 !b ;
OK: drop
dup (Q) a! ! 4* DP a! ! \ the space from its name on
(LATEST) (PRUNE)
V: VOC-LINK a! @ if PRUNED \ vocabularies that go
dup (Q) a! @ inv + 1 + -if GONE drop jump KEPT
GONE: drop 1 + a! @ VOC-LINK a! ! jump V
KEPT: P: if PRUNED \ the lists of those that stay
dup (PRUNE) 1 + a! @ jump P
PRUNED: drop
(PRUNE-ALL)
CONTEXT a! @ (Q) a! @ inv + 1 + -if C1 drop jump C2
C1: drop (LATEST) CONTEXT a! !
C2: CURRENT a! @ (Q) a! @ inv + 1 + -if C3 drop jump TOLD
@@ -150,7 +157,7 @@ set HDR-NFA here ", WARM #id, #, 0 #, HDR-NFA #, HDR-LINK set HDR-LINK her
jump ABORT
\ ( -- ) the system as it was when the capsule had just been loaded:
\ everything defined since is gone, there is one vocabulary, numbers are
\ everything defined since is gone, the vocabularies are as sealed, numbers are
\ decimal, the block buffers are empty. Then as WARM.
set HDR-NFA here ", COLD #id, #, 0 #, HDR-NFA #, HDR-LINK set HDR-LINK here
: COLD
@@ -158,7 +165,8 @@ set HDR-NFA here ", COLD #id, #, 0 #, HDR-NFA #, HDR-LINK set HDR-LINK her
(BOOT)+1 a! @ (LATEST) a! !
(BOOT) a! @ 2/ 2/ (FENCE) a! !
(BOOT-ID) a! @ (NEXT-ID) a! !
(LATEST) CONTEXT a! ! (LATEST) CURRENT a! ! 0 VOC-LINK a! !
(LATEST) CONTEXT a! ! (LATEST) CURRENT a! !
(BOOT) a! @ 2/ 2/ (Q) a! ! (PRUNE-ALL) \ the vocabularies as sealed, with what was sealed in them
10 BASE a! ! 0 SCR a! ! 2 (LOG-LEVEL) a! ! 0 (ACL-HOOK) a! ! EMPTY-BUFFERS
(BOOT) a! @ 2/ 2/ (FORGOTTEN) \ the kernel's records of what has gone go too (dict.f18)
$54524F46 (EMIT4) $39372D48 (EMIT4) $6C6F4320 (EMIT4) $74532064 (EMIT4) $747261 (EMIT4) CR
@@ -0,0 +1,262 @@
V4ROM capsules/v4/rom -> build/amd64/kernel/v4_rom_64.c build/amd64/kernel/v4_map_64.c build/amd64/kernel/v4_mesh_rom_64.c
CC (kernel) v3/src/blkio_ram.c
CC (kernel) v3/src/block_subsystem.c
CC (kernel) v3/src/compudynamics.c
CC (kernel) v3/src/dictionary_heat_optimization.c
CC (kernel) v3/src/dictionary_management.c
CC (kernel) v3/src/heartbeat_export.c
CC (kernel) v3/src/inference_engine.c
CC (kernel) v3/src/io.c
CC (kernel) v3/src/math_portable.c
CC (kernel) v3/src/memory_management.c
CC (kernel) v3/src/physics_execution_hooks.c
CC (kernel) v3/src/physics_hotwords_cache.c
CC (kernel) v3/src/physics_metadata.c
CC (kernel) v3/src/physics_pipelining_metrics.c
CC (kernel) v3/src/physics_runtime.c
CC (kernel) v3/src/profiler.c
CC (kernel) v3/src/rolling_window_of_truth.c
CC (kernel) v3/src/ssm_jacquard.c
CC (kernel) v3/src/stack_management.c
CC (kernel) v3/src/vm_api.c
CC (kernel) v3/src/vm_debug.c
CC (kernel) v3/src/word_registry.c
CC (kernel) v3/src/word_source/acl_words.c
CC (kernel) v3/src/word_source/arithmetic_words.c
CC (kernel) v3/src/word_source/block_words.c
CC (kernel) v3/src/word_source/control_words.c
CC (kernel) v3/src/word_source/defer_words.c
CC (kernel) v3/src/word_source/defining_words.c
CC (kernel) v3/src/word_source/dictionary_heat_diagnostic_words.c
CC (kernel) v3/src/word_source/dictionary_manipulation_words.c
CC (kernel) v3/src/word_source/dictionary_words.c
CC (kernel) v3/src/word_source/double_words.c
CC (kernel) v3/src/word_source/editor_words.c
CC (kernel) v3/src/word_source/format_words.c
CC (kernel) v3/src/word_source/framebuffer_words.c
CC (kernel) v3/src/word_source/inference_words.c
CC (kernel) v3/src/word_source/io_words.c
CC (kernel) v3/src/word_source/keyboard_words.c
CC (kernel) v3/src/word_source/lifecycle_words_hosted.c
CC (kernel) v3/src/word_source/log_words.c
CC (kernel) v3/src/word_source/logical_words.c
CC (kernel) v3/src/word_source/memory_words.c
CC (kernel) v3/src/word_source/mixed_arithmetic_words.c
CC (kernel) v3/src/word_source/physics_benchmark_words.c
CC (kernel) v3/src/word_source/physics_diagnostic_words.c
CC (kernel) v3/src/word_source/physics_freeze_words.c
CC (kernel) v3/src/word_source/physics_pipelining_diagnostic_words.c
CC (kernel) v3/src/word_source/q48_words.c
CC (kernel) v3/src/word_source/return_stack_words.c
CC (kernel) v3/src/word_source/scroll_words.c
CC (kernel) v3/src/word_source/stack_words.c
CC (kernel) v3/src/word_source/starforth_words.c
CC (kernel) v3/src/word_source/string_words.c
CC (kernel) v3/src/word_source/system_words.c
CC (kernel) v3/src/word_source/ttf_words.c
CC (kernel) v3/src/word_source/vocabulary_words.c
CC (kernel) v3/src/test_runner/test_common.c
CC (kernel) v3/src/test_runner/test_contracts.c
CC (kernel) v3/src/test_runner/test_runner.c
CC (kernel) v3/src/test_runner/modules/acl_words_test.c
CC (kernel) v3/src/test_runner/modules/arithmetic_words_test.c
CC (kernel) v3/src/test_runner/modules/block_words_test.c
CC (kernel) v3/src/test_runner/modules/control_words_test.c
CC (kernel) v3/src/test_runner/modules/defining_words_tests.c
CC (kernel) v3/src/test_runner/modules/dictionary_manipulation_words_test.c
CC (kernel) v3/src/test_runner/modules/dictionary_words_test.c
CC (kernel) v3/src/test_runner/modules/double_words_test.c
CC (kernel) v3/src/test_runner/modules/format_words_test.c
CC (kernel) v3/src/test_runner/modules/inference_words_test.c
CC (kernel) v3/src/test_runner/modules/integration_tests.c
CC (kernel) v3/src/test_runner/modules/io_words_test.c
CC (kernel) v3/src/test_runner/modules/logical_words_test.c
CC (kernel) v3/src/test_runner/modules/mama_forth_words_test.c
CC (kernel) v3/src/test_runner/modules/memory_words_test.c
CC (kernel) v3/src/test_runner/modules/mixed_arithmetic_words_test.c
CC (kernel) v3/src/test_runner/modules/physics_freeze_words_test.c
CC (kernel) v3/src/test_runner/modules/q48_words_test.c
CC (kernel) v3/src/test_runner/modules/return_stack_words_test.c
CC (kernel) v3/src/test_runner/modules/stack_words_test.c
CC (kernel) v3/src/test_runner/modules/starforth_words_test.c
CC (kernel) v3/src/test_runner/modules/stress_tests.c
CC (kernel) v3/src/test_runner/modules/string_words_test.c
CC (kernel) v3/src/test_runner/modules/system_words_test.c
CC (kernel) v3/src/test_runner/modules/vocabulary_words_test.c
MKCAP capsules -> build/amd64/kernel/capsule_generated.c
mkcapsule: checking for block conflicts...
mkcapsule: scanning capsules
[p] zuse.4th (1684 bytes, hash=0x490ded9be257a90b)
[p] font.4th (17688 bytes, hash=0x3f305911500c78f6)
[p] MANIFEST_AUTO.md (11687 bytes, hash=0xe022545a0755960f)
[p] multiuser-doe.4th (3942 bytes, hash=0x22140588ee7c39e6)
[p] hestia:init.4th (891 bytes, hash=0x64e111990fbc45ff)
[p] contrib:README.md (1855 bytes, hash=0x4212e52b927793e7)
[p] ACL.4th (4318 bytes, hash=0xf8890c05c0d8f921)
[p] workload-3.4th (2189 bytes, hash=0x62b7a71576ad1041)
[p] init-l8-diverse.4th (430 bytes, hash=0xaa293201a6c91838)
[p] user-font-demo.4th (1674 bytes, hash=0xce1fd7d1b581a56d)
[p] workload-9.4th (1321 bytes, hash=0x3f2bec73142aa424)
[p] lib.4th (619 bytes, hash=0x4b216635c359ef73)
[p] workload-calib1.4th (304 bytes, hash=0x3b9f2d17b554fabc)
[m] init.4th (669 bytes, hash=0xd09db9461b336431)
[p] workload-1-lite.4th (540 bytes, hash=0x44a7a7e3176dcc8d)
[p] init-l8-stable.4th (278 bytes, hash=0xdc3830f189063a9a)
[p] v4:physics.4th (2937 bytes, hash=0x747d89ca8d57e29c)
[p] v4:forth79.4th (1208 bytes, hash=0x4055641ee17d176b)
[p] v4:sys:log.f18 (4535 bytes, hash=0x544cd004233dff62)
[p] v4:sys:qmath.f18 (8607 bytes, hash=0xa93783c2c8f9b7db)
[p] v4:sys:map-32.f18 (3162 bytes, hash=0x5bdf8cbbebdd3c8f)
[p] v4:sys:blocks.f18 (6112 bytes, hash=0x09d361dbe6174236)
[p] v4:sys:input.f18 (10692 bytes, hash=0x0f13c3f9d5fd07fc)
[p] v4:sys:dict.f18 (13816 bytes, hash=0xe3453808afd5a0af)
[p] v4:sys:forth.f18 (12617 bytes, hash=0xc4c0ad315c95eda4)
[p] v4:sys:quit.f18 (32141 bytes, hash=0x7fa7a7668b6bf1ed)
[p] v4:sys:map-64.f18 (3201 bytes, hash=0x06cb44832df2b8fd)
[p] v4:sys:codegen.f18 (4999 bytes, hash=0x36d2ae84d2911b90)
[p] v4:sys:acl.f18 (4100 bytes, hash=0x76e7e746befa2733)
[p] v4:sys:core.f18 (24370 bytes, hash=0x0f415502fccc3fba)
[p] v4:sys:system.f18 (10189 bytes, hash=0xfe257eb084c43a5d)
[p] v4:sys:numout.f18 (6641 bytes, hash=0xca0fb0f9c1589e20)
[p] v4:sys:words.f18 (9642 bytes, hash=0x2f4e5f7f3e7f736f)
[p] v4:sys:compile.f18 (23099 bytes, hash=0xb46bf77ceee7245a)
[p] v4:sys:end.f18 (1452 bytes, hash=0x98fd33b1c431cfe7)
[p] v4:starshipos.4th (702 bytes, hash=0x5658ee1b771b5963)
[p] v4:hera.4th (1372 bytes, hash=0x85300ad4e6e8b86b)
[p] v4:rom:sym.f18 (5610 bytes, hash=0xbbad5748f5bbf863)
[p] v4:rom:main.f18 (2284 bytes, hash=0x6994f1f1d567e163)
[p] v4:rom:math.f18 (5108 bytes, hash=0x9be63ad87934622f)
[p] v4:rom:dir.f18 (5112 bytes, hash=0x51b069f0623ded16)
[p] v4:rom:num.f18 (2634 bytes, hash=0x08b76f1b058cac17)
[p] v4:rom:pack.f18 (4583 bytes, hash=0x65a944d8eb7de7f2)
[p] v4:rom:word.f18 (12966 bytes, hash=0x9210d6c2ac424d11)
[p] v4:rom:in.f18 (4230 bytes, hash=0x65798bed38a09f0f)
[p] v4:rom:mesh.f18 (449 bytes, hash=0x83723d76b9620c2c)
[p] v4:centre.4th (3899 bytes, hash=0xccd1b28a101c78b2)
[p] README.md (2305 bytes, hash=0x09a684ebdfbeb01c)
[p] block-acl.4th (980 bytes, hash=0xf6cc2a59e3a6734e)
[p] sdk.4th (2295 bytes, hash=0x008fdbbb62c94a3a)
[p] pki:starshipos-intermediate.der (408 bytes, hash=0xb40aab540c19f877)
[p] init-l8-omni.4th (1986 bytes, hash=0x5979e314d6452045)
[p] acl-std79.4th (5040 bytes, hash=0x773bf9209df191d1)
[p] doe-campaign.4th (2369 bytes, hash=0x26fb485e5c9dc6ff)
[p] init-l8-volatile.4th (718 bytes, hash=0x98caabbbd92abac4)
[p] doe.4th (3244 bytes, hash=0xf154616d248e861f)
[p] fabric.4th (10359 bytes, hash=0x9d9489cbeca4099b)
[p] workload-4.4th (469 bytes, hash=0x099619264e650b1c)
[p] init-l8-temporal.4th (363 bytes, hash=0x51abd4c138246651)
[p] workload-5.4th (480 bytes, hash=0x526964c7c9506a11)
[p] fonts:README.md (1846 bytes, hash=0xf628c2b7a49f4d46)
[p] fonts:JetBrainsMono-Regular.ttf (270224 bytes, hash=0xf4b7077dab274e6b)
[p] init-l8-transition.4th (529 bytes, hash=0xbcc1a81976f0a4c9)
[p] workload-2.4th (1321 bytes, hash=0xf113b3d0bcccae47)
[p] workload-1.4th (1041 bytes, hash=0x63e251adb0a03613)
[p] workload-5-lite.4th (468 bytes, hash=0xea0303f38824f254)
[p] workload-0.4th (290 bytes, hash=0x93f86f60aeba8feb)
[p] artemis:init.4th (16782 bytes, hash=0x7ba120e2a6aab239)
[p] MANIFEST.md (35813 bytes, hash=0x9d3a6fdb7415d224)
[p] workload-7.4th (206 bytes, hash=0x02862291387eb7ac)
[p] BLOCK_MAP.md (22910 bytes, hash=0xd11c185372228b0c)
[p] turtle.4th (3254 bytes, hash=0x4d470418ca543365)
[p] workload-8.4th (172 bytes, hash=0x56b7f2f0efa000df)
[p] workload-6.4th (1986 bytes, hash=0x06fc0ce1e369ef5a)
mkcapsule: 74 capsule(s) collected
CC (loader) v3/src/blkio_ram.c
CC (loader) v3/src/compudynamics.c
CC (loader) v3/src/block_subsystem.c
mkcapsule: wrote build/amd64/kernel/capsule_generated.c
MKCAP capsules -> capsules/BLOCK_MAP.md
mkcapsule: manifest written to capsules/BLOCK_MAP.md (40 capsule(s))
CC (loader) v3/src/dictionary_heat_optimization.c
CC (loader) v3/src/dictionary_management.c
CC (loader) v3/src/heartbeat_export.c
CC (loader) v3/src/inference_engine.c
CC (loader) v3/src/io.c
CC (loader) v3/src/math_portable.c
CC (loader) v3/src/memory_management.c
CC (loader) v3/src/physics_execution_hooks.c
CC (loader) v3/src/physics_hotwords_cache.c
CC (loader) v3/src/physics_metadata.c
CC (loader) v3/src/physics_pipelining_metrics.c
CC (loader) v3/src/physics_runtime.c
CC (loader) v3/src/profiler.c
CC (loader) v3/src/rolling_window_of_truth.c
CC (loader) v3/src/ssm_jacquard.c
CC (loader) v3/src/stack_management.c
CC (loader) v3/src/vm_api.c
CC (loader) v3/src/vm_debug.c
CC (loader) v3/src/word_registry.c
CC (loader) v3/src/word_source/acl_words.c
CC (loader) v3/src/word_source/arithmetic_words.c
CC (loader) v3/src/word_source/block_words.c
CC (loader) v3/src/word_source/control_words.c
CC (loader) v3/src/word_source/defer_words.c
CC (loader) v3/src/word_source/defining_words.c
CC (loader) v3/src/word_source/dictionary_heat_diagnostic_words.c
CC (loader) v3/src/word_source/dictionary_manipulation_words.c
CC (loader) v3/src/word_source/dictionary_words.c
CC (loader) v3/src/word_source/double_words.c
CC (loader) v3/src/word_source/editor_words.c
CC (loader) v3/src/word_source/format_words.c
CC (loader) v3/src/word_source/framebuffer_words.c
CC (loader) v3/src/word_source/inference_words.c
CC (loader) v3/src/word_source/io_words.c
CC (loader) v3/src/word_source/keyboard_words.c
CC (loader) v3/src/word_source/lifecycle_words_hosted.c
CC (loader) v3/src/word_source/log_words.c
CC (loader) v3/src/word_source/logical_words.c
CC (loader) v3/src/word_source/memory_words.c
CC (loader) v3/src/word_source/mixed_arithmetic_words.c
CC (loader) v3/src/word_source/physics_benchmark_words.c
CC (loader) v3/src/word_source/physics_diagnostic_words.c
CC (loader) v3/src/word_source/physics_freeze_words.c
CC (loader) v3/src/word_source/physics_pipelining_diagnostic_words.c
CC (loader) v3/src/word_source/q48_words.c
CC (loader) v3/src/word_source/return_stack_words.c
CC (loader) v3/src/word_source/scroll_words.c
CC (loader) v3/src/word_source/stack_words.c
CC (loader) v3/src/word_source/starforth_words.c
CC (loader) v3/src/word_source/string_words.c
CC (loader) v3/src/word_source/system_words.c
CC (loader) v3/src/word_source/ttf_words.c
CC (loader) v3/src/word_source/vocabulary_words.c
CC (loader) v3/src/test_runner/test_common.c
CC (loader) v3/src/test_runner/test_contracts.c
CC (loader) v3/src/test_runner/test_runner.c
CC (loader) v3/src/test_runner/modules/acl_words_test.c
CC (loader) v3/src/test_runner/modules/arithmetic_words_test.c
CC (loader) v3/src/test_runner/modules/block_words_test.c
CC (loader) v3/src/test_runner/modules/control_words_test.c
CC (loader) v3/src/test_runner/modules/defining_words_tests.c
CC (loader) v3/src/test_runner/modules/dictionary_manipulation_words_test.c
CC (loader) v3/src/test_runner/modules/dictionary_words_test.c
CC (loader) v3/src/test_runner/modules/double_words_test.c
CC (loader) v3/src/test_runner/modules/format_words_test.c
CC (loader) v3/src/test_runner/modules/inference_words_test.c
CC (loader) v3/src/test_runner/modules/integration_tests.c
CC (loader) v3/src/test_runner/modules/io_words_test.c
CC (loader) v3/src/test_runner/modules/logical_words_test.c
CC (loader) v3/src/test_runner/modules/mama_forth_words_test.c
CC (loader) v3/src/test_runner/modules/memory_words_test.c
CC (loader) v3/src/test_runner/modules/mixed_arithmetic_words_test.c
CC (loader) v3/src/test_runner/modules/physics_freeze_words_test.c
CC (loader) v3/src/test_runner/modules/q48_words_test.c
CC (loader) v3/src/test_runner/modules/return_stack_words_test.c
CC (loader) v3/src/test_runner/modules/stack_words_test.c
CC (loader) v3/src/test_runner/modules/starforth_words_test.c
CC (loader) v3/src/test_runner/modules/stress_tests.c
CC (loader) v3/src/test_runner/modules/string_words_test.c
CC (loader) v3/src/test_runner/modules/system_words_test.c
CC (loader) v3/src/test_runner/modules/vocabulary_words_test.c
CC build/amd64/kernel/capsule_generated.c
CC (kernel) build/amd64/kernel/capsule_generated.c
LD (kernel) build/amd64/kernel/starkernel_kernel.elf
ld: warning: build/amd64/kernel/obj/kernel/arch/amd64/switch.o: missing .note.GNU-stack section implies executable stack
ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
Kernel built: build/amd64/kernel/starkernel_kernel.elf
LD (loader PE) build/amd64/kernel/starkernel_loader.efi
Loader built: build/amd64/kernel/starkernel_loader.efi
StarKernel built successfully for amd64
Loader: build/amd64/kernel/starkernel_loader.efi
Kernel: build/amd64/kernel/starkernel_kernel.elf
rc=0
@@ -0,0 +1,4 @@
[ASan+UBSan mesh boot, V4_CELL_BITS=64]
v4 mesh boot: V4_CELL_BITS=64
PARITY:V4_POST tests=990 pass=990 fail=0
109 checks, 0 failures
+272
View File
@@ -0,0 +1,272 @@
[V4_CELL_BITS=32 run-32-test_asm.c]
v4 asm tests: V4_CELL_BITS=32
32 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_cells.c]
v4 single-cell word tests: V4_CELL_BITS=32
code: 99 of 1024 words
NIP headroom: data 7 below canary, return 7 below its return address
SWAP headroom: data 6 below canary, return 6 below its return address
ROT headroom: data 5 below canary, return 4 below its return address
-ROT headroom: data 5 below canary, return 5 below its return address
?DUP headroom: data 7 below canary, return 8 below its return address
+! headroom: data 7 below canary, return 8 below its return address
-! headroom: data 7 below canary, return 8 below its return address
2@ headroom: data 7 below canary, return 8 below its return address
2! headroom: data 6 below canary, return 6 below its return address
- headroom: data 6 below canary, return 8 below its return address
MIN headroom: data 3 below canary, return 6 below its return address
MAX headroom: data 3 below canary, return 6 below its return address
OR headroom: data 6 below canary, return 8 below its return address
0> headroom: data 8 below canary, return 8 below its return address
<> headroom: data 7 below canary, return 8 below its return address
< headroom: data 5 below canary, return 7 below its return address
> headroom: data 5 below canary, return 6 below its return address
<= headroom: data 5 below canary, return 6 below its return address
>= headroom: data 5 below canary, return 6 below its return address
U< headroom: data 5 below canary, return 7 below its return address
WITHIN headroom: data 3 below canary, return 5 below its return address
21420 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_console.c]
v4 console tests: V4_CELL_BITS=32, capture 4096 characters
312 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_dump.c]
test_dump: 15 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_exec.c]
v4 exec tests: V4_CELL_BITS=32
3107 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_fabric.c]
v4 fabric tests: V4_CELL_BITS=32, 8 ports to a node
334 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_fabric_walk.c]
v4 fabric walk tests
13 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_foundation.c]
v4 foundation tests: V4_CELL_BITS=32
code: 949 of 1024 words
Q.+ random cases that overflow Q48.16: 2682 of 20000
Q.> as written (SWAP D<): 11702 wrong of 20169
(UQ/) cases run: 8687
UM* headroom: data 5 below canary, return 6 below its return address
UM/MOD headroom: data 5 below canary, return 6 below its return address
ABS headroom: data 7 below canary, return 7 below its return address
U> headroom: data 5 below canary, return 5 below its return address
D+ headroom: data 5 below canary, return 5 below its return address
DNEGATE headroom: data 6 below canary, return 7 below its return address
DABS headroom: data 6 below canary, return 6 below its return address
M+ headroom: data 5 below canary, return 4 below its return address
M- headroom: data 4 below canary, return 5 below its return address
M* headroom: data 5 below canary, return 4 below its return address
M/MOD headroom: data 4 below canary, return 3 below its return address
MOD headroom: data 4 below canary, return 2 below its return address
*/MOD headroom: data 4 below canary, return 2 below its return address
*/ headroom: data 4 below canary, return 2 below its return address
D0< headroom: data 7 below canary, return 7 below its return address
D2* headroom: data 6 below canary, return 7 below its return address
D2/ headroom: data 7 below canary, return 7 below its return address
2ROT headroom: data 2 below canary, return 1 below its return address
D- headroom: data 4 below canary, return 4 below its return address
D0= headroom: data 6 below canary, return 7 below its return address
D= headroom: data 4 below canary, return 3 below its return address
< headroom: data 5 below canary, return 7 below its return address
= headroom: data 7 below canary, return 7 below its return address
D< headroom: data 3 below canary, return 3 below its return address
(D<) headroom: data 2 below canary, return 5 below its return address
2SWAP headroom: data 4 below canary, return 4 below its return address
2OVER headroom: data 2 below canary, return 3 below its return address
DMAX headroom: data 2 below canary, return 4 below its return address
DMIN headroom: data 2 below canary, return 4 below its return address
Q.> (2SWAP D<) headroom: data 3 below canary, return 2 below its return address
Q.* headroom: data 2 below canary, return 3 below its return address
(UQ/) headroom: data 3 below canary, return 4 below its return address
Q./ headroom: data 2 below canary, return 3 below its return address
Q.EXP headroom: data 2 below canary, return 2 below its return address
Q.SQRT headroom: data 2 below canary, return 2 below its return address
Q.LOG headroom: data 2 below canary, return 2 below its return address
(Q.REDUCE) headroom: data 4 below canary, return 5 below its return address
Q.SIN headroom: data 2 below canary, return 2 below its return address
Q.COS headroom: data 2 below canary, return 2 below its return address
LSHIFT headroom: data 6 below canary, return 5 below its return address
RSHIFT headroom: data 6 below canary, return 5 below its return address
C@ headroom: data 7 below canary, return 7 below its return address
C! headroom: data 6 below canary, return 7 below its return address
SM/REM headroom: data 4 below canary, return 3 below its return address
/MOD headroom: data 4 below canary, return 2 below its return address
/ headroom: data 4 below canary, return 2 below its return address
* headroom: data 5 below canary, return 5 below its return address
1023754 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_guard.c]
v4 guard tests: V4_CELL_BITS=32, data bound 1, return bound 1
60 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_heat.c]
v4 heat tests: V4_CELL_BITS=32
67 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_host_blocks.c]
v4 block request tests: V4_CELL_BITS=32, V4_NODE_WORDS=32768
46 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_host_codegen.c]
v4 host code generator tests: V4_CELL_BITS=32, V4_NODE_WORDS=32768
code: 1728 words
856 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_host_compile.c]
v4 host compiler tests: V4_CELL_BITS=32, V4_NODE_WORDS=32768
capsule: 4559 words
a line may have 270 values on the stack while the interpreter reads its next word
a word run from the interpreter has 29 return entries to itself
defining and running a word leaves 1017 data cells under it untouched
1096 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_host_depth.c]
v4 mesh depth tests: V4_CELL_BITS=32, V4_NODE_WORDS=32768
a text that prints 1012..1024 values: works to 1020, then a stack error and nothing else; calls: works to 23 deep; 19 worked, 14 clean errors, 0 failures
SEND 1012..1024 values: works to 1018, then a stack error and nothing else; calls: works to 26 deep; 20 worked, 13 clean errors, 0 failures
SEND with no way 1012..1024 values: works to 1018, then a stack error and nothing else; calls: works to 27 deep; 21 worked, 12 clean errors, 0 failures
AWAIT answered 1012..1024 values: works to 1018, then a stack error and nothing else; calls: works to 24 deep; 18 worked, 15 clean errors, 0 failures
AWAIT ended by a GONE 1012..1024 values: works to 1018, then a stack error and nothing else; calls: works to 24 deep; 18 worked, 15 clean errors, 0 failures
passing on while its text waits for room 1012..1024 values: works to 1018, then a stack error and nothing else; calls: works to 17 deep; 11 worked, 22 clean errors, 0 failures
AWAIT broken by a line from the console 1012..1024 values: works to 1018, then a stack error and nothing else; calls: works to 24 deep; 18 worked, 15 clean errors, 0 failures
a refusal while its text waits for room 1012..1024 values: works to 1018, then a stack error and nothing else; calls: works to 17 deep; 11 worked, 22 clean errors, 0 failures
GONE 1012..1024 values: works to 1019, then a stack error and nothing else; calls: works to 26 deep; 21 worked, 12 clean errors, 0 failures
a spent message refused while its text waits 1012..1024 values: works to 1018, then a stack error and nothing else; calls: works to 17 deep; 11 worked, 22 clean errors, 0 failures
330 runs: 168 worked, 162 ended in a stack error and nothing else, 0 did neither
397 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_host_dict.c]
v4 host dictionary tests: V4_CELL_BITS=32, V4_NODE_WORDS=32768
code: 1633 words
300 entries in 2218 cells
FIND headroom: data 1020 below canary, return 28 below its return address
(') headroom: data 1020 below canary, return 28 below its return address
MAKE headroom: data 1020 below canary, return 28 below its return address
, headroom: data 1020 below canary, return 31 below its return address
ALLOT headroom: data 1020 below canary, return 30 below its return address
708 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_host_input.c]
v4 host input tests: V4_CELL_BITS=32, V4_NODE_WORDS=32768
code: 1108 words
WORD headroom: data 1020 below canary, return 29 below its return address
NUMBER headroom: data 1016 below canary, return 25 below its return address
EXPECT headroom: data 1020 below canary, return 30 below its return address
ENCLOSE headroom: data 1017 below canary, return 28 below its return address
6569 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_host_mesh.c]
v4 mesh tests: V4_CELL_BITS=32, V4_NODE_WORDS=32768
the flood: 268 sends tried: 2 refused at once, 121 let go on the way, 145 done; 1 of the two texts that set a node sending let go; (LOST) 122, (REFUSED) 124
between texts the nucleus used at most 3 cells of the data stack and 4 entries of the return stack
a node removed or a wire cut: 19983 times in all
244 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_host_node.c]
v4 host node tests: V4_CELL_BITS=32, V4_NODE_WORDS=32768
45 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_host_quit.c]
v4 host prompt tests: V4_CELL_BITS=32, V4_NODE_WORDS=32768
capsule: 7381 words
from the prompt, words may call each other 30 deep
1020 values may wait on the stack while the next line is typed and interpreted
defining and running a word from the prompt leaves 1017 data cells under it untouched
.S prints a stack of up to 1018 values; it needs 6 cells free
WORDS: 318 names, longest line 74 columns
1356 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_host_rom_asm.c]
test_host_rom_asm: 466 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_host_rom_in.c]
test_host_rom_in: 26 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_host_rom_math.c]
v4 ROM math tests: V4_CELL_BITS=32
the host ROM: 2383 words; the mesh ROM: 265 words
156 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_host_rom_nucleus.c]
the ROM assembled the system: 63401381 instructions, 16536684 instruction words, 0.77 s (32-bit cells)
test_host_rom_nucleus: 6 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_host_rom_num.c]
test_host_rom_num: 31 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_host_rom_pack.c]
test_host_rom_pack: 7 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_host_rom_range.c]
test_host_rom_range: 19 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_host_rom_sym.c]
test_host_rom_sym: 81 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_host_unit.c]
v4 unit tests: V4_CELL_BITS=32, V4_NODE_WORDS=32768
not run at this width: the capsules are the 64-bit products'
[V4_CELL_BITS=32 run-32-test_iword.c]
v4 iword tests: V4_CELL_BITS=32
1763 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_loops.c]
v4 loop tests: V4_CELL_BITS=32
code: 298 of 1024 words
loops run against C: 3008 (1696 more would run past 63 times and were left out)
DO .. LOOP headroom: data 5 below canary, return 6 below its return address
DO .. +LOOP headroom: data 5 below canary, return 6 below its return address
?DO .. LOOP headroom: data 5 below canary, return 6 below its return address
DO .. LEAVE .. LOOP headroom: data 5 below canary, return 6 below its return address
nested DO, I and J headroom: data 5 below canary, return 4 below its return address
3104 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_manage.c]
v4 manage tests: V4_CELL_BITS=32
78 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_node.c]
v4 node tests: V4_CELL_BITS=32, 1024 words
node: 1024 words + 52 head + 52 tail boundary (10.2% overhead)
1078 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_numout.c]
v4 number-output tests: V4_CELL_BITS=32
code: 382 of 1024 words
SPACES headroom: data 6 below canary, return 7 below its return address
. headroom: data 3 below canary, return 2 below its return address
.R headroom: data 3 below canary, return 2 below its return address
U. headroom: data 3 below canary, return 3 below its return address
U.R headroom: data 3 below canary, return 3 below its return address
D. headroom: data 3 below canary, return 2 below its return address
D.R headroom: data 3 below canary, return 2 below its return address
25242 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_pictured.c]
v4 pictured-output tests: V4_CELL_BITS=32
<# #S #> headroom: data 3 below canary, return 3 below its return address
signed picture headroom: data 3 below canary, return 2 below its return address
4716 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_port.c]
v4 port tests: V4_CELL_BITS=32
25 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_printing.c]
v4 printing tests (? Q.PRINT DUMP BASE HLD): V4_CELL_BITS=32
code: 506 of 1024 words
DECIMAL headroom: data 7 below canary, return 8 below its return address
? headroom: data 3 below canary, return 2 below its return address
Q.PRINT headroom: data 3 below canary, return 3 below its return address
DUMP headroom: data 3 below canary, return 4 below its return address
13439 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_stack.c]
v4 stack tests: V4_CELL_BITS=32, data depth 10, return depth 9
exhaustive: 2046 sequences of length <= 10
differential: 200000 ops
730137 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_strings.c]
v4 string tests: V4_CELL_BITS=32
code: 234 of 1024 words
COUNT headroom: data 6 below canary, return 6 below its return address
CMOVE headroom: data 4 below canary, return 5 below its return address
CMOVE> headroom: data 3 below canary, return 5 below its return address
MOVE headroom: data 5 below canary, return 6 below its return address
FILL headroom: data 4 below canary, return 5 below its return address
BLANK headroom: data 4 below canary, return 5 below its return address
-TRAILING headroom: data 5 below canary, return 6 below its return address
COMPARE headroom: data 3 below canary, return 5 below its return address
SEARCH headroom: data 2 below canary, return 5 below its return address
SCAN headroom: data 4 below canary, return 5 below its return address
SKIP headroom: data 4 below canary, return 5 below its return address
16729 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_terminal.c]
v4 terminal-output tests: V4_CELL_BITS=32
KEY headroom: data 8 below canary
EMIT headroom: data 7 below canary, return 8 below its return address
CR headroom: data 7 below canary, return 8 below its return address
TYPE headroom: data 5 below canary, return 6 below its return address
1212 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_text.c]
v4 text assembler tests: V4_CELL_BITS=32
240 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_umul.c]
v4 umul tests: V4_CELL_BITS=32
2009 checks, 0 failures
[V4_CELL_BITS=32 run-32-test_wire.c]
v4 wire tests: V4_CELL_BITS=32, 1024 cells to a queue
112 checks, 0 failures
rc=0
+273
View File
@@ -0,0 +1,273 @@
[V4_CELL_BITS=64 run-64-test_asm.c]
v4 asm tests: V4_CELL_BITS=64
32 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_cells.c]
v4 single-cell word tests: V4_CELL_BITS=64
code: 99 of 1024 words
NIP headroom: data 7 below canary, return 7 below its return address
SWAP headroom: data 6 below canary, return 6 below its return address
ROT headroom: data 5 below canary, return 4 below its return address
-ROT headroom: data 5 below canary, return 5 below its return address
?DUP headroom: data 7 below canary, return 8 below its return address
+! headroom: data 7 below canary, return 8 below its return address
-! headroom: data 7 below canary, return 8 below its return address
2@ headroom: data 7 below canary, return 8 below its return address
2! headroom: data 6 below canary, return 6 below its return address
- headroom: data 6 below canary, return 8 below its return address
MIN headroom: data 3 below canary, return 6 below its return address
MAX headroom: data 3 below canary, return 6 below its return address
OR headroom: data 6 below canary, return 8 below its return address
0> headroom: data 8 below canary, return 8 below its return address
<> headroom: data 7 below canary, return 8 below its return address
< headroom: data 5 below canary, return 7 below its return address
> headroom: data 5 below canary, return 6 below its return address
<= headroom: data 5 below canary, return 6 below its return address
>= headroom: data 5 below canary, return 6 below its return address
U< headroom: data 5 below canary, return 7 below its return address
WITHIN headroom: data 3 below canary, return 5 below its return address
21420 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_console.c]
v4 console tests: V4_CELL_BITS=64, capture 4096 characters
312 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_dump.c]
test_dump: 15 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_exec.c]
v4 exec tests: V4_CELL_BITS=64
3110 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_fabric.c]
v4 fabric tests: V4_CELL_BITS=64, 8 ports to a node
334 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_fabric_walk.c]
v4 fabric walk tests
13 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_foundation.c]
v4 foundation tests: V4_CELL_BITS=64
code: 949 of 1024 words
Q.+ random cases that overflow Q48.16: 2682 of 20000
Q.> as written (SWAP D<): 12834 wrong of 20169
(UQ/) cases run: 9000
UM* headroom: data 5 below canary, return 6 below its return address
UM/MOD headroom: data 5 below canary, return 6 below its return address
ABS headroom: data 7 below canary, return 7 below its return address
U> headroom: data 5 below canary, return 5 below its return address
D+ headroom: data 5 below canary, return 5 below its return address
DNEGATE headroom: data 6 below canary, return 7 below its return address
DABS headroom: data 6 below canary, return 6 below its return address
M+ headroom: data 5 below canary, return 4 below its return address
M- headroom: data 4 below canary, return 5 below its return address
M* headroom: data 5 below canary, return 4 below its return address
M/MOD headroom: data 4 below canary, return 3 below its return address
MOD headroom: data 4 below canary, return 2 below its return address
*/MOD headroom: data 4 below canary, return 2 below its return address
*/ headroom: data 4 below canary, return 2 below its return address
D0< headroom: data 7 below canary, return 7 below its return address
D2* headroom: data 6 below canary, return 7 below its return address
D2/ headroom: data 7 below canary, return 7 below its return address
2ROT headroom: data 2 below canary, return 1 below its return address
D- headroom: data 4 below canary, return 4 below its return address
D0= headroom: data 6 below canary, return 7 below its return address
D= headroom: data 4 below canary, return 3 below its return address
< headroom: data 5 below canary, return 7 below its return address
= headroom: data 7 below canary, return 7 below its return address
D< headroom: data 3 below canary, return 3 below its return address
(D<) headroom: data 2 below canary, return 5 below its return address
2SWAP headroom: data 4 below canary, return 4 below its return address
2OVER headroom: data 2 below canary, return 3 below its return address
DMAX headroom: data 2 below canary, return 4 below its return address
DMIN headroom: data 2 below canary, return 4 below its return address
Q.> (2SWAP D<) headroom: data 3 below canary, return 2 below its return address
Q.* headroom: data 2 below canary, return 3 below its return address
(UQ/) headroom: data 3 below canary, return 4 below its return address
Q./ headroom: data 2 below canary, return 3 below its return address
Q.EXP headroom: data 2 below canary, return 2 below its return address
Q.SQRT headroom: data 2 below canary, return 2 below its return address
Q.LOG headroom: data 2 below canary, return 2 below its return address
(Q.REDUCE) headroom: data 4 below canary, return 5 below its return address
Q.SIN headroom: data 2 below canary, return 2 below its return address
Q.COS headroom: data 2 below canary, return 2 below its return address
LSHIFT headroom: data 6 below canary, return 5 below its return address
RSHIFT headroom: data 6 below canary, return 5 below its return address
C@ headroom: data 7 below canary, return 7 below its return address
C! headroom: data 6 below canary, return 7 below its return address
SM/REM headroom: data 4 below canary, return 3 below its return address
/MOD headroom: data 4 below canary, return 2 below its return address
/ headroom: data 4 below canary, return 2 below its return address
* headroom: data 5 below canary, return 5 below its return address
1024904 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_guard.c]
v4 guard tests: V4_CELL_BITS=64, data bound 1, return bound 1
60 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_heat.c]
v4 heat tests: V4_CELL_BITS=64
67 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_host_blocks.c]
v4 block request tests: V4_CELL_BITS=64, V4_NODE_WORDS=32768
48 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_host_codegen.c]
v4 host code generator tests: V4_CELL_BITS=64, V4_NODE_WORDS=32768
code: 1728 words
856 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_host_compile.c]
v4 host compiler tests: V4_CELL_BITS=64, V4_NODE_WORDS=32768
capsule: 4559 words
a line may have 270 values on the stack while the interpreter reads its next word
a word run from the interpreter has 29 return entries to itself
defining and running a word leaves 1017 data cells under it untouched
1096 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_host_depth.c]
v4 mesh depth tests: V4_CELL_BITS=64, V4_NODE_WORDS=32768
a text that prints 1012..1024 values: works to 1020, then a stack error and nothing else; calls: works to 23 deep; 19 worked, 14 clean errors, 0 failures
SEND 1012..1024 values: works to 1018, then a stack error and nothing else; calls: works to 26 deep; 20 worked, 13 clean errors, 0 failures
SEND with no way 1012..1024 values: works to 1018, then a stack error and nothing else; calls: works to 27 deep; 21 worked, 12 clean errors, 0 failures
AWAIT answered 1012..1024 values: works to 1018, then a stack error and nothing else; calls: works to 24 deep; 18 worked, 15 clean errors, 0 failures
AWAIT ended by a GONE 1012..1024 values: works to 1018, then a stack error and nothing else; calls: works to 24 deep; 18 worked, 15 clean errors, 0 failures
passing on while its text waits for room 1012..1024 values: works to 1018, then a stack error and nothing else; calls: works to 17 deep; 11 worked, 22 clean errors, 0 failures
AWAIT broken by a line from the console 1012..1024 values: works to 1018, then a stack error and nothing else; calls: works to 24 deep; 18 worked, 15 clean errors, 0 failures
a refusal while its text waits for room 1012..1024 values: works to 1018, then a stack error and nothing else; calls: works to 17 deep; 11 worked, 22 clean errors, 0 failures
GONE 1012..1024 values: works to 1019, then a stack error and nothing else; calls: works to 26 deep; 21 worked, 12 clean errors, 0 failures
a spent message refused while its text waits 1012..1024 values: works to 1018, then a stack error and nothing else; calls: works to 17 deep; 11 worked, 22 clean errors, 0 failures
330 runs: 168 worked, 162 ended in a stack error and nothing else, 0 did neither
397 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_host_dict.c]
v4 host dictionary tests: V4_CELL_BITS=64, V4_NODE_WORDS=32768
code: 1633 words
300 entries in 2218 cells
FIND headroom: data 1020 below canary, return 28 below its return address
(') headroom: data 1020 below canary, return 28 below its return address
MAKE headroom: data 1020 below canary, return 28 below its return address
, headroom: data 1020 below canary, return 31 below its return address
ALLOT headroom: data 1020 below canary, return 30 below its return address
708 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_host_input.c]
v4 host input tests: V4_CELL_BITS=64, V4_NODE_WORDS=32768
code: 1108 words
WORD headroom: data 1020 below canary, return 29 below its return address
NUMBER headroom: data 1016 below canary, return 25 below its return address
EXPECT headroom: data 1020 below canary, return 30 below its return address
ENCLOSE headroom: data 1017 below canary, return 28 below its return address
6569 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_host_mesh.c]
v4 mesh tests: V4_CELL_BITS=64, V4_NODE_WORDS=32768
the flood: 268 sends tried: 2 refused at once, 121 let go on the way, 145 done; 1 of the two texts that set a node sending let go; (LOST) 122, (REFUSED) 124
between texts the nucleus used at most 3 cells of the data stack and 4 entries of the return stack
a node removed or a wire cut: 26895 times in all
244 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_host_node.c]
v4 host node tests: V4_CELL_BITS=64, V4_NODE_WORDS=32768
45 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_host_quit.c]
v4 host prompt tests: V4_CELL_BITS=64, V4_NODE_WORDS=32768
capsule: 7381 words
from the prompt, words may call each other 30 deep
1020 values may wait on the stack while the next line is typed and interpreted
defining and running a word from the prompt leaves 1017 data cells under it untouched
.S prints a stack of up to 1018 values; it needs 6 cells free
WORDS: 318 names, longest line 74 columns
1360 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_host_rom_asm.c]
test_host_rom_asm: 472 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_host_rom_in.c]
test_host_rom_in: 26 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_host_rom_math.c]
v4 ROM math tests: V4_CELL_BITS=64
the host ROM: 2383 words; the mesh ROM: 265 words
156 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_host_rom_nucleus.c]
the ROM assembled the system: 63411003 instructions, 16539406 instruction words, 0.66 s (64-bit cells)
test_host_rom_nucleus: 6 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_host_rom_num.c]
test_host_rom_num: 31 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_host_rom_pack.c]
test_host_rom_pack: 7 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_host_rom_range.c]
test_host_rom_range: 19 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_host_rom_sym.c]
test_host_rom_sym: 81 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_host_unit.c]
v4 unit tests: V4_CELL_BITS=64, V4_NODE_WORDS=32768
after POST and COLD: 225 of the 8302 cells below HERE differ from before POST (the first at 25); dict_hash differs
the four outer nodes: dict_hash=0x02b819749682039b
126 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_iword.c]
v4 iword tests: V4_CELL_BITS=64
1763 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_loops.c]
v4 loop tests: V4_CELL_BITS=64
code: 298 of 1024 words
loops run against C: 3008 (1696 more would run past 63 times and were left out)
DO .. LOOP headroom: data 5 below canary, return 6 below its return address
DO .. +LOOP headroom: data 5 below canary, return 6 below its return address
?DO .. LOOP headroom: data 5 below canary, return 6 below its return address
DO .. LEAVE .. LOOP headroom: data 5 below canary, return 6 below its return address
nested DO, I and J headroom: data 5 below canary, return 4 below its return address
3104 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_manage.c]
v4 manage tests: V4_CELL_BITS=64
78 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_node.c]
v4 node tests: V4_CELL_BITS=64, 1024 words
node: 1024 words + 52 head + 52 tail boundary (10.2% overhead)
1078 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_numout.c]
v4 number-output tests: V4_CELL_BITS=64
code: 382 of 1024 words
SPACES headroom: data 6 below canary, return 7 below its return address
. headroom: data 3 below canary, return 2 below its return address
.R headroom: data 3 below canary, return 2 below its return address
U. headroom: data 3 below canary, return 3 below its return address
U.R headroom: data 3 below canary, return 3 below its return address
D. headroom: data 3 below canary, return 2 below its return address
D.R headroom: data 3 below canary, return 2 below its return address
25242 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_pictured.c]
v4 pictured-output tests: V4_CELL_BITS=64
<# #S #> headroom: data 3 below canary, return 3 below its return address
signed picture headroom: data 3 below canary, return 2 below its return address
4716 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_port.c]
v4 port tests: V4_CELL_BITS=64
25 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_printing.c]
v4 printing tests (? Q.PRINT DUMP BASE HLD): V4_CELL_BITS=64
code: 506 of 1024 words
DECIMAL headroom: data 7 below canary, return 8 below its return address
? headroom: data 3 below canary, return 2 below its return address
Q.PRINT headroom: data 3 below canary, return 3 below its return address
DUMP headroom: data 3 below canary, return 4 below its return address
13439 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_stack.c]
v4 stack tests: V4_CELL_BITS=64, data depth 10, return depth 9
exhaustive: 2046 sequences of length <= 10
differential: 200000 ops
730137 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_strings.c]
v4 string tests: V4_CELL_BITS=64
code: 234 of 1024 words
COUNT headroom: data 6 below canary, return 6 below its return address
CMOVE headroom: data 4 below canary, return 5 below its return address
CMOVE> headroom: data 3 below canary, return 5 below its return address
MOVE headroom: data 5 below canary, return 6 below its return address
FILL headroom: data 4 below canary, return 5 below its return address
BLANK headroom: data 4 below canary, return 5 below its return address
-TRAILING headroom: data 5 below canary, return 6 below its return address
COMPARE headroom: data 3 below canary, return 5 below its return address
SEARCH headroom: data 2 below canary, return 5 below its return address
SCAN headroom: data 4 below canary, return 5 below its return address
SKIP headroom: data 4 below canary, return 5 below its return address
16729 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_terminal.c]
v4 terminal-output tests: V4_CELL_BITS=64
KEY headroom: data 8 below canary
EMIT headroom: data 7 below canary, return 8 below its return address
CR headroom: data 7 below canary, return 8 below its return address
TYPE headroom: data 5 below canary, return 6 below its return address
1212 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_text.c]
v4 text assembler tests: V4_CELL_BITS=64
240 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_umul.c]
v4 umul tests: V4_CELL_BITS=64
2808 checks, 0 failures
[V4_CELL_BITS=64 run-64-test_wire.c]
v4 wire tests: V4_CELL_BITS=64, 1024 cells to a queue
112 checks, 0 failures
@@ -0,0 +1,82 @@
mkcapsule: checking for block conflicts...
mkcapsule: scanning /home/user/LithosAnanke/capsules
[p] zuse.4th (1684 bytes, hash=0x490ded9be257a90b)
[p] font.4th (17688 bytes, hash=0x3f305911500c78f6)
[p] MANIFEST_AUTO.md (11687 bytes, hash=0xe022545a0755960f)
[p] multiuser-doe.4th (3942 bytes, hash=0x22140588ee7c39e6)
[p] hestia:init.4th (891 bytes, hash=0x64e111990fbc45ff)
[p] contrib:README.md (1855 bytes, hash=0x4212e52b927793e7)
[p] ACL.4th (4318 bytes, hash=0xf8890c05c0d8f921)
[p] workload-3.4th (2189 bytes, hash=0x62b7a71576ad1041)
[p] init-l8-diverse.4th (430 bytes, hash=0xaa293201a6c91838)
[p] user-font-demo.4th (1674 bytes, hash=0xce1fd7d1b581a56d)
[p] workload-9.4th (1321 bytes, hash=0x3f2bec73142aa424)
[p] lib.4th (619 bytes, hash=0x4b216635c359ef73)
[p] workload-calib1.4th (304 bytes, hash=0x3b9f2d17b554fabc)
[m] init.4th (669 bytes, hash=0xd09db9461b336431)
[p] workload-1-lite.4th (540 bytes, hash=0x44a7a7e3176dcc8d)
[p] init-l8-stable.4th (278 bytes, hash=0xdc3830f189063a9a)
[p] v4:physics.4th (2937 bytes, hash=0x747d89ca8d57e29c)
[p] v4:forth79.4th (1208 bytes, hash=0x4055641ee17d176b)
[p] v4:sys:log.f18 (4535 bytes, hash=0x544cd004233dff62)
[p] v4:sys:qmath.f18 (8607 bytes, hash=0xa93783c2c8f9b7db)
[p] v4:sys:map-32.f18 (3162 bytes, hash=0x5bdf8cbbebdd3c8f)
[p] v4:sys:blocks.f18 (6112 bytes, hash=0x09d361dbe6174236)
[p] v4:sys:input.f18 (10692 bytes, hash=0x0f13c3f9d5fd07fc)
[p] v4:sys:dict.f18 (13816 bytes, hash=0xe3453808afd5a0af)
[p] v4:sys:forth.f18 (12617 bytes, hash=0xc4c0ad315c95eda4)
[p] v4:sys:quit.f18 (32141 bytes, hash=0x7fa7a7668b6bf1ed)
[p] v4:sys:map-64.f18 (3201 bytes, hash=0x06cb44832df2b8fd)
[p] v4:sys:codegen.f18 (4999 bytes, hash=0x36d2ae84d2911b90)
[p] v4:sys:acl.f18 (4100 bytes, hash=0x76e7e746befa2733)
[p] v4:sys:core.f18 (24370 bytes, hash=0x0f415502fccc3fba)
[p] v4:sys:system.f18 (10189 bytes, hash=0xfe257eb084c43a5d)
[p] v4:sys:numout.f18 (6641 bytes, hash=0xca0fb0f9c1589e20)
[p] v4:sys:words.f18 (9642 bytes, hash=0x2f4e5f7f3e7f736f)
[p] v4:sys:compile.f18 (23099 bytes, hash=0xb46bf77ceee7245a)
[p] v4:sys:end.f18 (1452 bytes, hash=0x98fd33b1c431cfe7)
[p] v4:starshipos.4th (702 bytes, hash=0x5658ee1b771b5963)
[p] v4:hera.4th (1372 bytes, hash=0x85300ad4e6e8b86b)
[p] v4:rom:sym.f18 (5610 bytes, hash=0xbbad5748f5bbf863)
[p] v4:rom:main.f18 (2284 bytes, hash=0x6994f1f1d567e163)
[p] v4:rom:math.f18 (5108 bytes, hash=0x9be63ad87934622f)
[p] v4:rom:dir.f18 (5112 bytes, hash=0x51b069f0623ded16)
[p] v4:rom:num.f18 (2634 bytes, hash=0x08b76f1b058cac17)
[p] v4:rom:pack.f18 (4583 bytes, hash=0x65a944d8eb7de7f2)
[p] v4:rom:word.f18 (12966 bytes, hash=0x9210d6c2ac424d11)
[p] v4:rom:in.f18 (4230 bytes, hash=0x65798bed38a09f0f)
[p] v4:rom:mesh.f18 (449 bytes, hash=0x83723d76b9620c2c)
[p] v4:centre.4th (3899 bytes, hash=0xccd1b28a101c78b2)
[p] README.md (2305 bytes, hash=0x09a684ebdfbeb01c)
[p] block-acl.4th (980 bytes, hash=0xf6cc2a59e3a6734e)
[p] sdk.4th (2295 bytes, hash=0x008fdbbb62c94a3a)
[p] pki:starshipos-intermediate.der (408 bytes, hash=0xb40aab540c19f877)
[p] init-l8-omni.4th (1986 bytes, hash=0x5979e314d6452045)
[p] acl-std79.4th (5040 bytes, hash=0x773bf9209df191d1)
[p] doe-campaign.4th (2369 bytes, hash=0x26fb485e5c9dc6ff)
[p] init-l8-volatile.4th (718 bytes, hash=0x98caabbbd92abac4)
[p] doe.4th (3244 bytes, hash=0xf154616d248e861f)
[p] fabric.4th (10359 bytes, hash=0x9d9489cbeca4099b)
[p] workload-4.4th (469 bytes, hash=0x099619264e650b1c)
[p] init-l8-temporal.4th (363 bytes, hash=0x51abd4c138246651)
[p] workload-5.4th (480 bytes, hash=0x526964c7c9506a11)
[p] fonts:README.md (1846 bytes, hash=0xf628c2b7a49f4d46)
[p] fonts:JetBrainsMono-Regular.ttf (270224 bytes, hash=0xf4b7077dab274e6b)
[p] init-l8-transition.4th (529 bytes, hash=0xbcc1a81976f0a4c9)
[p] workload-2.4th (1321 bytes, hash=0xf113b3d0bcccae47)
[p] workload-1.4th (1041 bytes, hash=0x63e251adb0a03613)
[p] workload-5-lite.4th (468 bytes, hash=0xea0303f38824f254)
[p] workload-0.4th (290 bytes, hash=0x93f86f60aeba8feb)
[p] artemis:init.4th (16782 bytes, hash=0x7ba120e2a6aab239)
[p] MANIFEST.md (35813 bytes, hash=0x9d3a6fdb7415d224)
[p] workload-7.4th (206 bytes, hash=0x02862291387eb7ac)
[p] BLOCK_MAP.md (22910 bytes, hash=0xd11c185372228b0c)
[p] turtle.4th (3254 bytes, hash=0x4d470418ca543365)
[p] workload-8.4th (172 bytes, hash=0x56b7f2f0efa000df)
[p] workload-6.4th (1986 bytes, hash=0x06fc0ce1e369ef5a)
mkcapsule: 74 capsule(s) collected
mkcapsule: wrote /home/user/LithosAnanke/v4/build/capsule_generated.c
[mesh boot, V4_CELL_BITS=64]
v4 mesh boot: V4_CELL_BITS=64
PARITY:V4_POST tests=990 pass=990 fail=0
109 checks, 0 failures
@@ -0,0 +1,81 @@
mkcapsule: checking for block conflicts...
mkcapsule: scanning /home/user/LithosAnanke/capsules
[p] zuse.4th (1684 bytes, hash=0x490ded9be257a90b)
[p] font.4th (17688 bytes, hash=0x3f305911500c78f6)
[p] MANIFEST_AUTO.md (11687 bytes, hash=0xe022545a0755960f)
[p] multiuser-doe.4th (3942 bytes, hash=0x22140588ee7c39e6)
[p] hestia:init.4th (891 bytes, hash=0x64e111990fbc45ff)
[p] contrib:README.md (1855 bytes, hash=0x4212e52b927793e7)
[p] ACL.4th (4318 bytes, hash=0xf8890c05c0d8f921)
[p] workload-3.4th (2189 bytes, hash=0x62b7a71576ad1041)
[p] init-l8-diverse.4th (430 bytes, hash=0xaa293201a6c91838)
[p] user-font-demo.4th (1674 bytes, hash=0xce1fd7d1b581a56d)
[p] workload-9.4th (1321 bytes, hash=0x3f2bec73142aa424)
[p] lib.4th (619 bytes, hash=0x4b216635c359ef73)
[p] workload-calib1.4th (304 bytes, hash=0x3b9f2d17b554fabc)
[m] init.4th (669 bytes, hash=0xd09db9461b336431)
[p] workload-1-lite.4th (540 bytes, hash=0x44a7a7e3176dcc8d)
[p] init-l8-stable.4th (278 bytes, hash=0xdc3830f189063a9a)
[p] v4:physics.4th (2937 bytes, hash=0x747d89ca8d57e29c)
[p] v4:forth79.4th (1208 bytes, hash=0x4055641ee17d176b)
[p] v4:sys:log.f18 (4535 bytes, hash=0x544cd004233dff62)
[p] v4:sys:qmath.f18 (8607 bytes, hash=0xa93783c2c8f9b7db)
[p] v4:sys:map-32.f18 (3162 bytes, hash=0x5bdf8cbbebdd3c8f)
[p] v4:sys:blocks.f18 (6112 bytes, hash=0x09d361dbe6174236)
[p] v4:sys:input.f18 (10692 bytes, hash=0x0f13c3f9d5fd07fc)
[p] v4:sys:dict.f18 (13816 bytes, hash=0xe3453808afd5a0af)
[p] v4:sys:forth.f18 (12617 bytes, hash=0xc4c0ad315c95eda4)
[p] v4:sys:quit.f18 (32141 bytes, hash=0x7fa7a7668b6bf1ed)
[p] v4:sys:map-64.f18 (3201 bytes, hash=0x06cb44832df2b8fd)
[p] v4:sys:codegen.f18 (4999 bytes, hash=0x36d2ae84d2911b90)
[p] v4:sys:acl.f18 (4100 bytes, hash=0x76e7e746befa2733)
[p] v4:sys:core.f18 (24370 bytes, hash=0x0f415502fccc3fba)
[p] v4:sys:system.f18 (9757 bytes, hash=0x69f5840a57afdf83)
[p] v4:sys:numout.f18 (6641 bytes, hash=0xca0fb0f9c1589e20)
[p] v4:sys:words.f18 (9642 bytes, hash=0x2f4e5f7f3e7f736f)
[p] v4:sys:compile.f18 (23099 bytes, hash=0xb46bf77ceee7245a)
[p] v4:sys:end.f18 (1452 bytes, hash=0x98fd33b1c431cfe7)
[p] v4:starshipos.4th (702 bytes, hash=0x5658ee1b771b5963)
[p] v4:hera.4th (1372 bytes, hash=0x85300ad4e6e8b86b)
[p] v4:rom:sym.f18 (5610 bytes, hash=0xbbad5748f5bbf863)
[p] v4:rom:main.f18 (2284 bytes, hash=0x6994f1f1d567e163)
[p] v4:rom:math.f18 (5108 bytes, hash=0x9be63ad87934622f)
[p] v4:rom:dir.f18 (5112 bytes, hash=0x51b069f0623ded16)
[p] v4:rom:num.f18 (2634 bytes, hash=0x08b76f1b058cac17)
[p] v4:rom:pack.f18 (4583 bytes, hash=0x65a944d8eb7de7f2)
[p] v4:rom:word.f18 (12966 bytes, hash=0x9210d6c2ac424d11)
[p] v4:rom:in.f18 (4230 bytes, hash=0x65798bed38a09f0f)
[p] v4:rom:mesh.f18 (449 bytes, hash=0x83723d76b9620c2c)
[p] v4:centre.4th (3899 bytes, hash=0xccd1b28a101c78b2)
[p] README.md (2305 bytes, hash=0x09a684ebdfbeb01c)
[p] block-acl.4th (980 bytes, hash=0xf6cc2a59e3a6734e)
[p] sdk.4th (2295 bytes, hash=0x008fdbbb62c94a3a)
[p] pki:starshipos-intermediate.der (408 bytes, hash=0xb40aab540c19f877)
[p] init-l8-omni.4th (1986 bytes, hash=0x5979e314d6452045)
[p] acl-std79.4th (5040 bytes, hash=0x773bf9209df191d1)
[p] doe-campaign.4th (2369 bytes, hash=0x26fb485e5c9dc6ff)
[p] init-l8-volatile.4th (718 bytes, hash=0x98caabbbd92abac4)
[p] doe.4th (3244 bytes, hash=0xf154616d248e861f)
[p] fabric.4th (10359 bytes, hash=0x9d9489cbeca4099b)
[p] workload-4.4th (469 bytes, hash=0x099619264e650b1c)
[p] init-l8-temporal.4th (363 bytes, hash=0x51abd4c138246651)
[p] workload-5.4th (480 bytes, hash=0x526964c7c9506a11)
[p] fonts:README.md (1846 bytes, hash=0xf628c2b7a49f4d46)
[p] fonts:JetBrainsMono-Regular.ttf (270224 bytes, hash=0xf4b7077dab274e6b)
[p] init-l8-transition.4th (529 bytes, hash=0xbcc1a81976f0a4c9)
[p] workload-2.4th (1321 bytes, hash=0xf113b3d0bcccae47)
[p] workload-1.4th (1041 bytes, hash=0x63e251adb0a03613)
[p] workload-5-lite.4th (468 bytes, hash=0xea0303f38824f254)
[p] workload-0.4th (290 bytes, hash=0x93f86f60aeba8feb)
[p] artemis:init.4th (16782 bytes, hash=0x7ba120e2a6aab239)
[p] MANIFEST.md (35813 bytes, hash=0x9d3a6fdb7415d224)
[p] workload-7.4th (206 bytes, hash=0x02862291387eb7ac)
[p] BLOCK_MAP.md (22910 bytes, hash=0xd11c185372228b0c)
[p] turtle.4th (3254 bytes, hash=0x4d470418ca543365)
[p] workload-8.4th (172 bytes, hash=0x56b7f2f0efa000df)
[p] workload-6.4th (1986 bytes, hash=0x06fc0ce1e369ef5a)
mkcapsule: 74 capsule(s) collected
mkcapsule: wrote /home/user/LithosAnanke/v4/build/capsule_generated.c
[mesh boot, V4_CELL_BITS=64]
make: *** [Makefile:380: mesh-boot] Terminated
(the run was stopped at 500 s: the node hung; a normal mesh boot is about 13 s)
+10
View File
@@ -146,6 +146,16 @@ int main(void)
/* starshipos.4th, a system capsule loaded before POST (MACHINE.md 3, step 3; ruled 2026-11-18) */
r = line(V4_MESH_HERA, "STARSHIPOS S\" ok\" DOE", &how); /* COLD leaves FORTH alone in the search; init.4th will set it */
CHECK(how == V4_TEXT_COMPLETED && strcmp(r, "ok") == 0, "starshipos.4th is loaded: in STARSHIPOS, DOE types its name: \"%s\" (%d)", r, how);
/* a vocabulary sealed into the system (STARSHIPOS) stays in the chain after COLD: FORGET and COLD prune its list */
r = line(V4_MESH_HERA, "STARSHIPOS DEFINITIONS : ZZ 7 ; FORTH DEFINITIONS STARSHIPOS FORGET ZZ", &how);
CHECK(how == V4_TEXT_COMPLETED, "a word defined in STARSHIPOS is forgotten: \"%s\" (%d)", r, how);
r = line(V4_MESH_HERA, "STARSHIPOS ZZ", &how);
CHECK(how == V4_TEXT_ERROR && strstr(r, "UNKNOWN WORD") != 0, " and is gone from STARSHIPOS's list: \"%s\" (%d)", r, how);
r = line(V4_MESH_HERA, "STARSHIPOS DEFINITIONS : YY 8 ; FORTH DEFINITIONS COLD", &how);
r = line(V4_MESH_HERA, "STARSHIPOS YY", &how);
CHECK(how == V4_TEXT_ERROR && strstr(r, "UNKNOWN WORD") != 0, "COLD takes a word defined in STARSHIPOS off its list: \"%s\" (%d)", r, how);
r = line(V4_MESH_HERA, "STARSHIPOS S\" ok\" DOE", &how);
CHECK(how == V4_TEXT_COMPLETED && strcmp(r, "ok") == 0, " and STARSHIPOS's own words stay: \"%s\" (%d)", r, how);
r = line(V4_MESH_HERA, "NODE-ME .", &how);
CHECK(how == V4_TEXT_COMPLETED && strcmp(r, "0 ") == 0, "NODE-ME: Hera is at place 0: \"%s\"", r);
r = line(V4_MESH_HERA, "NOSUCH", &how);