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 / ng / front / prune.txt

54 lines · 1566 bytes Raw Blame History
1# ng-front prune script (seed/ng/front/prune.om): omc.om@943d9555 renamed by rename.map and hand-edited,
2# minus the paths that cannot run in an ng front end.
3#
4# 1. Targets. fe_run exits 64 right after the lead lines for an x86/EFI target unit (D8) and for an IR v1
5# unit, so f_xtarge and f_irmode are 0 in every unit the front end goes on with.
6false ne get f_xtarge 0 0
7true eq get f_xtarge 0 0
8true ne get f_xtarge 0 1
9false eq get f_xtarge 0 2
10false eq get f_xtarge 0 1
11false or ne get f_irmode 0 0 ne get f_xtarge 0 0
12false and ne get f_xtarge 0 0 ne get f_om2 0 0
13false and ne get f_xtarge 0 0 eq get f_scanni 0 0
14true or eq get f_xtarge 0 0 eq get f_bdead i 0
15false and eq w 6907493 eq get f_xtarge 0 2
16false ne get f_irmode 0 0
17call fe_xaddr
18call fe_xstore
19dead fe_run
20#
21# 2. Machine code. The check pass writes no program: the code buffer f_out, its offset f_oc and every
22# global that only holds code offsets are sinks; the word writers and branch patchers go; then every
23# function left without an effect goes with its call statements. An om2 fmt unit is checked (fmtprep) but
24# not formatted: the fmtout calls under `if ne get f_fmtm 0 0` go, and f_fmtm is a sink.
25sink f_out
26sink f_oc
27sink f_bbr
28sink f_bhead
29sink f_lastb
30sink f_ilp
31sink f_cpos
32sink f_brkpos
33sink f_fstart
34sink f_fnaddr
35sink f_callsi
36sink f_tsite
37sink f_tgoc
38sink f_nt
39sink f_tcode
40sink f_fmtm
41call fe_emit
42call fe_emitb
43call fe_patch19
44call fe_patch26
45call fe_blo
46call fe_wrword
47false ne get f_fmtm 0 0
48false and ne get f_dead 0 0 gt n p0
49pure
50dead fe_run
51tidy
52pure
53tidy
54dead fe_run