interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / seed / omc / tests / struct-bool / cases.tsv

24 lines · 1191 bytes Raw Blame History
1# cases for seed/omc/tests/struct-bool, run by check.sh. Fields are separated by one TAB:
2# name expect twin kind
3# name: NAME.om in this directory. expect: the exit status of the compiled program, worked out by
4# hand from the program text (the notes in each file give the sum). Every listed form is admitted
5# by the struct-field grammar and must execute; no refusal is accepted as a substitute.
6# twin: "yes" when the program has a uchar twin (bool -> uchar, true -> 1, false -> 0) that the
7# current compiler runs correctly and must give the same status. That is the control showing the
8# expected value and the program are valid and that only the bool field is at fault. "no" when the
9# program uses a bool function value or a bool local, which a uchar field cannot hold.
10report 0 yes init
11init_true 15 yes init-get
12init_false 25 yes init-get
13only_field 7 yes init-get-put
14put_flip 16 yes get-put
15neighbours 87 yes neighbours
16adjacent 6 yes neighbours
17param_edit 7 yes parameter
18param_view 53 yes parameter
19loop_toggle 31 yes get-put-loop
20array_fields 45 yes arrays
21trap_index 103 yes arrays-trap
22func_value 7 no function-value
23local_value 7 no local-value
24array_bool 5 no arrays