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/compare/7c8fb257dda17c39a0831276bb7afc415c5fcb18...3659d64f59734d7d8f8cd710b1f41e3fbe2d82ce # 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 ## Comparing `7c8fb257dda17c39a0831276bb7afc415c5fcb18` ... `3659d64f59734d7d8f8cd710b1f41e3fbe2d82ce` - Infer OSC scalar operator types and operand contexts in Omega `3659d64` · Drake Stapleton · 2026-11-20 17:48 · Browse - Reuse OSC symbol spellings and surface scanner capacity failures `ef94818` · Drake Stapleton · 2026-11-20 17:45 · Browse - Refresh the scalar unit identity in the generated header `1c2d082` · Drake Stapleton · 2026-11-20 17:45 · Browse - Extract each folded scalar byte before narrowing `9a2b4aa` · Drake Stapleton · 2026-11-20 17:44 · Browse - Integrate OSC parser, scalar and semantic Omega units `9a5c705` · Drake Stapleton · 2026-11-20 17:43 · Browse 26 files changed, +5681 -1276 CONTRIBUTORS.md +8 -1 mk/compiler.mk +48 -0 om/compiler/osc_a64_fields.om +276 -0 om/compiler/osc_expr.om +210 -0 om/compiler/osc_literal.om +694 -0 om/compiler/osc_ownership.om +30 -1 om/compiler/osc_pool.om +63 -0 om/compiler/osc_scalar.om +831 -0 om/compiler/osc_scope.om +89 -0 om/compiler/osc_statement.om +337 -0 om/compiler/osc_type.om +188 -0 om/units.sh +1 -1 src/compiler/osc_a64.c +58 -115 src/compiler/osc_check.c +158 -436 src/compiler/osc_interp.c +22 -96 src/compiler/osc_lex.c +73 -139 src/compiler/osc_lower.c +3 -31 src/compiler/osc_parse.c +315 -372 src/omega_api_decl.h +363 -0 src/omega_native.h +86 -2 src/omega_om_units.c +1216 -80 src/omega_om_units.ident +9 -2 tests/compiler/osc_lex_reference.c +192 -0 tests/compiler/test_osc_lex.c +108 -0 tests/compiler/test_osc_parse_parity.c +211 -0 tests/compiler/test_osc_scalar_parity.c +92 -0 CONTRIBUTORS.md @@ -7,7 +7,6 @@ The current development method is [Human-Directed Agentic Engineering (HDAE)](RE 7 7 8 8 | Model | What it did | 9 9 |---|---| 10 -| OpenAI Codex (OSC semantic checker) | Ported the owner access, borrow, reborrow and move decisions to seeded Omega. Ported branch joins for ownership, handle provenance and definite frees. Migrated owner initialization and direct and nested borrow lifecycles. | 11 10 | OpenAI Codex | Brought the bundle corpus builder and compiler feedback harness from aien-train into Omega LLM with their original Git history. | 12 11 | Gemini 4 Neon (via Antigravity) | Closed remaining OM-2 Blackwell IR boundary gaps: `omega_bw_ir_from_om` (`src/omega_bw_om_ir.h`) now clears `prog` via `omega_bw_ir_init` on every error path (preventing partial-program residue), all remaining OM-2 codegen wrappers (`bf16`, `moe2`, `pf`, `pfhost`, `qmma`) zero-initialize `ins`/`meta` and init `prog`, and `tests/test_bw_om_codegen_bounds.c` adds partial-residue checks, `qmma`/`pfhost` invalid-spec sweeps, and max-size legal input headroom checks (173/173 PASS on Spark AArch64; zero calls to aborting `apic` GPU/codegen wrappers in `src/`). Completed live GB10 silicon validation (`spark-window 20261119T233031Z-d8ecb9`, exclusive, quiet machine): `gpu_qmma_probe_test` PASS (262,144/262,144 exact, 238.47 TFLOPS peak, 1,048,576/1,048,576 F2E4 exact), `gpu_pfhost_test --chip` PASS (router `rl` 0/262,144 diffs 0.314 ms, combine `mc` 0/4,194,304 diffs 0.818 ms, mutants 1..2 caught), `gpu_fp8gemm_test` 36/36 PASS (bit-identical, 1.90–2.78× vs GEMV), `gpu_moe_window_test --small` 101/101 PASS. | 13 12 | Gemini 4 Neon (via Antigravity) | Hardened the pure-OM-2 Blackwell IR boundary (`src/omega_bw_om_ir.h` validates `meta[5]`, instruction/vreg/uvreg/loop bounds, vreg/uvreg widths, opcode range, register/subregister/barrier/flag bounds; `*_patch` in `cg_{bf16,gemm,moe,moe2}.om` guards `pos < 1024`; `gemm`/`moe` wrappers zero-init buffers and reset `prog` on any failure) and added host boundary + kernel-metrics test `tests/test_bw_om_codegen_bounds.c` (76/76 PASS; 10/10 compiled kernels byte-for-byte identical SM121 SASS SHA-256, GPRs, occupancy, and avg stalls vs C parent ``3d0cb3500``). Re-verified on live GB10 silicon (`spark-window 20261119T231305Z-1a8c84`, exclusive): `gpu_q38_graph_test` 22/22 PASS, `gpu_q38_stroke_exact_test` 71/71 PASS, 4-layer 27B `q38_stress_bench` PASS (`N=8` batched `plain bf16` 33.919 ms / 4.16×, `64x8` sustained `bat_exact` mean 41.826 ms / 191.27 tok/s). | @@ -363,3 +362,11 @@ Update this table in the same commit as the work it credits. 363 362 | Codex (under Drake Stapleton’s direction) | Replayed the nine-check Spark GB10 Q38 stress suite on ``371a882a5`` and published the [November 20 measurements](docs/gpu/Q38_27B_GB10_STRESS_`20261120`.md). | 364 363 | Codex (under Drake Stapleton’s direction) | Implemented the seeded Omega training harness for native tokenization, CPU and GB10 fine-tuning and held-out evaluation. | 365 364 | Codex (under Drake Stapleton’s direction) | Trained and evaluated Omega coding checkpoints on Spark and packaged the native example-checked chain and behavior replay. | 365 +| OpenAI Codex (OSC semantic checker) | Ported the owner access, borrow, reborrow and move decisions to seeded Omega. Ported branch joins for ownership, handle provenance and definite frees. Migrated owner initialization and direct and nested borrow lifecycles. Integrated the OSC parser and scalar series, migrated the scoped symbol index, pool accounting and whole-input token scan, and batched owner joins. | 366 +| Codex (under Drake Stapleton's direction) | Migrated OSC token scanning to seeded Omega and added differential tests against the C lexer. | 367 +| Codex (under Drake Stapleton's direction) | Moved OSC scalar, array, reference and parameter type recognition into the seeded Omega parser. | 368 +| Codex (under Drake Stapleton's direction) | Converted OSC binary-expression precedence, associativity and comparison-chain refusal to seeded Omega. | 369 +| Codex (under Drake Stapleton's direction) | Migrated OSC operand recognition, prefix and cast parsing, scalar arithmetic and traps, constant folding and contract arithmetic, scalar opcode selection, and AArch64 instruction fields to seeded Omega. | 370 +| Codex (under Drake Stapleton's direction) | Migrated OSC name-led and return statements, loop bounds, import declarations, and contract text formatting to seeded Omega and checked their ASTs and diagnostics against the historical parser. | 371 +| Codex (under Drake Stapleton's direction) | Converted the OSC constant-expression walk, integer folding and contract expression evaluation to seeded Omega. | 372 +| Codex (under Drake Stapleton's direction) | Migrated scalar operator type inference, operand contexts and checked refusal ordering into seeded Omega. | mk/compiler.mk @@ -26,6 +26,54 @@ OSC_MODEL = src/compiler/model/osc_model.c 26 26 OSC_MODEL_GEN = src/compiler/model/osc_model_gen.c 27 27 OSC_HDRS = $(wildcard src/compiler/*.h) $(wildcard src/compiler/model/*.h) src/sha256.h 28 28 29 +OSC_LEX_TEST_SRC = tests/compiler/test_osc_lex.c tests/compiler/osc_lex_reference.c \ 30 + src/compiler/osc_lex.c src/compiler/osc_diag.c src/omega_om_units.c 31 +OSC_LEX_FIXTURES = $(wildcard tests/compiler/progs/*.osc tests/compiler/neg/*.osc) 32 + 33 +$(OSC_DIR)/test_osc_lex: $(OSC_LEX_TEST_SRC) $(OSC_HDRS) src/omega_api_decl.h 34 + @mkdir -p $(OSC_DIR) 35 + $(CC) $(OSC_CFLAGS) -o $@ $(OSC_LEX_TEST_SRC) 36 + 37 +.PHONY: test-osc-lex 38 +test-osc-lex: $(OSC_DIR)/test_osc_lex 39 + @$(OSC_DIR)/test_osc_lex $(OSC_LEX_FIXTURES) 40 + 41 +test-compiler test-compiler-quick: test-osc-lex 42 + 43 +# Optional differential run for source checkouts with Git history. Compile the 44 +# last all-C parser independently and keep it out of the production link. 45 +OSC_PARSE_BASE = `7c8fb257dda17c39a0831276bb7afc415c5fcb18` 46 +OSC_PARSE_ORACLE = $(OSC_DIR)/osc_parse_$(OSC_PARSE_BASE) 47 +$(OSC_PARSE_ORACLE).c: 48 + @mkdir -p $(OSC_DIR) 49 + git show $(OSC_PARSE_BASE):src/compiler/osc_parse.c > $@.tmp && mv $@.tmp $@ 50 + 51 +$(OSC_PARSE_ORACLE).o: $(OSC_PARSE_ORACLE).c $(OSC_HDRS) 52 + $(CC) $(OSC_CFLAGS) -Dosc_parse=osc_parse_reference -Dosc_node_name=osc_node_name_reference -c $< -o $@ 53 + 54 +OSC_PARSE_PARITY_SRC = tests/compiler/test_osc_parse_parity.c src/compiler/osc_parse.c \ 55 + src/compiler/osc_lex.c src/compiler/osc_diag.c src/omega_om_units.c 56 +$(OSC_DIR)/test_osc_parse_parity: $(OSC_PARSE_PARITY_SRC) $(OSC_PARSE_ORACLE).o $(OSC_HDRS) src/omega_api_decl.h 57 + $(CC) $(OSC_CFLAGS) -o $@ $(OSC_PARSE_PARITY_SRC) $(OSC_PARSE_ORACLE).o 58 + 59 +.PHONY: test-osc-parse-parity 60 +test-osc-parse-parity: $(OSC_DIR)/test_osc_parse_parity 61 + @$(OSC_DIR)/test_osc_parse_parity $(OSC_LEX_FIXTURES) 62 + 63 +# The frozen interpreter supplies the arithmetic oracle, including its native 64 +# C trap path, only when running differential tests from a source checkout. 65 +$(OSC_DIR)/osc_interp_reference.c: 66 + @mkdir -p $(OSC_DIR) 67 + git show $(OSC_PARSE_BASE):src/compiler/osc_interp.c > $@.tmp && mv $@.tmp $@ 68 + 69 +OSC_SCALAR_PARITY_LIB = $(filter-out src/compiler/osc_interp.c,$(OSC_LIB)) 70 +$(OSC_DIR)/test_osc_scalar_parity: tests/compiler/test_osc_scalar_parity.c $(OSC_DIR)/osc_interp_reference.c $(OSC_SCALAR_PARITY_LIB) $(OSC_HDRS) src/omega_api_decl.h 71 + $(CC) $(OSC_CFLAGS) -I$(OSC_DIR) -o $@ $< $(OSC_SCALAR_PARITY_LIB) 72 + 73 +.PHONY: test-osc-scalar-parity 74 +test-osc-scalar-parity: $(OSC_DIR)/test_osc_scalar_parity 75 + @$(OSC_DIR)/test_osc_scalar_parity 76 + 29 77 $(OSC_DIR)/test_osc_model: tests/compiler/test_osc_model.c $(OSC_MODEL) $(OSC_MODEL_GEN) $(OSC_HDRS) 30 78 @mkdir -p $(OSC_DIR) 31 79 $(CC) $(OSC_CFLAGS) -o $@ tests/compiler/test_osc_model.c $(OSC_MODEL) $(OSC_MODEL_GEN) om/compiler/osc_a64_fields.om new file mode 100644 @@ -0,0 +1,276 @@ 1 +note SPDX-License-Identifier: Apache-2.0 2 +note Encode/decode the variable fields of OSC's supported 64-bit AArch64 forms. 3 +note The opcode table supplies base bits and the class. Register kind, canonical 4 +note operands and range checks precede packing. Negative offsets use low field bits. 5 +note bridge c-type a64field OscA64Fields 6 +note bridge c-define OSC_A64_ERR_UNUSED_SHIFT 1 7 +note bridge c-define OSC_A64_ERR_UNUSED_COND 2 8 +note bridge c-define OSC_A64_ERR_UNUSED_IMM2 3 9 +note bridge c-define OSC_A64_ERR_UNUSED_IMM 4 10 +note bridge c-define OSC_A64_ERR_SHIFT_KIND 5 11 +note bridge c-define OSC_A64_ERR_SHIFT_AMOUNT 6 12 +note bridge c-define OSC_A64_ERR_IMM12 7 13 +note bridge c-define OSC_A64_ERR_LSL12 8 14 +note bridge c-define OSC_A64_ERR_IMMR 9 15 +note bridge c-define OSC_A64_ERR_IMMS 10 16 +note bridge c-define OSC_A64_ERR_COND 11 17 +note bridge c-define OSC_A64_ERR_IMM16 12 18 +note bridge c-define OSC_A64_ERR_MOV_SHIFT 13 19 +note bridge c-define OSC_A64_ERR_MEM_OFFSET 14 20 +note bridge c-define OSC_A64_ERR_PAIR_OFFSET 15 21 +note bridge c-define OSC_A64_ERR_WRITEBACK_ALIAS 16 22 +note bridge c-define OSC_A64_ERR_LOAD_ALIAS 17 23 +note bridge c-define OSC_A64_ERR_BRANCH_OFFSET 18 24 +note bridge c-define OSC_A64_ERR_BRANCH_COND 19 25 +om2 26 +layout a64field 40 27 +field rd uint at 0 little 28 +field rn uint at 4 little 29 +field rm uint at 8 little 30 +field ra uint at 12 little 31 +field shift uint at 16 little 32 +field cond uint at 20 little 33 +field imm long at 24 little 34 +field imm2 long at 32 little 35 +end 36 + 37 +const CLS_NONE ulong 0 38 +const CLS_RRR_SH ulong 1 39 +const CLS_RI ulong 2 40 +const CLS_R4 ulong 3 41 +const CLS_MULH ulong 4 42 +const CLS_R3 ulong 5 43 +const CLS_BFM ulong 6 44 +const CLS_CSINC ulong 7 45 +const CLS_MOV16 ulong 8 46 +const CLS_MEM ulong 9 47 +const CLS_PAIR ulong 10 48 +const CLS_B26 ulong 11 49 +const CLS_BCOND ulong 12 50 +const CLS_CB ulong 13 51 +const CLS_BREG ulong 14 52 +const CLS_BRK ulong 15 53 + 54 +export fn osc_a64_pack_fields form ulong base ulong f view a64field to ulong 55 +rd = ulong get f rd 56 +rn = shl ulong get f rn 5 57 +rm = shl ulong get f rm 16 58 +ra = shl ulong get f ra 10 59 +imm = bitcast ulong get f imm 60 +second = bitcast ulong get f imm2 61 +if eq form CLS_RRR_SH 62 + regs = or rd or rn rm 63 + returnbits = or shl ulong get f shift 22 shl imm 10 64 + ret or base or regs returnbits 65 +end 66 +if eq form CLS_RI 67 + ret or base or or rd rn or shl second 22 shl imm 10 68 +end 69 +if eq form CLS_R4 70 + ret or base or or rd rn or rm ra 71 +end 72 +if or eq form CLS_MULH eq form CLS_R3 73 + ret or base or rd or rn rm 74 +end 75 +if eq form CLS_BFM 76 + ret or base or or rd rn or shl imm 16 shl second 10 77 +end 78 +if eq form CLS_CSINC 79 + regs = or rd or rn rm 80 + ret or base or regs shl ulong get f cond 12 81 +end 82 +if eq form CLS_MOV16 83 + ret or base or rd or shl shr second 4 21 shl imm 5 84 +end 85 +if eq form CLS_MEM 86 + ret or base or or rd rn shl shr imm 3 10 87 +end 88 +if eq form CLS_PAIR 89 + offset = shl and shr imm 3 0x7f 15 90 + ret or base or or rd rn or ra offset 91 +end 92 +if eq form CLS_B26 93 + ret or base and shr imm 2 0x03ffffff 94 +end 95 +if or eq form CLS_BCOND eq form CLS_CB 96 + offset = shl and shr imm 2 0x7ffff 5 97 + if eq form CLS_BCOND 98 + ret or base or offset ulong get f cond 99 + end 100 + ret or base or offset rd 101 +end 102 +if eq form CLS_BREG 103 + ret or base rn 104 +end 105 +if eq form CLS_BRK 106 + ret or base shl imm 5 107 +end 108 +trap 5 109 +end 110 + 111 +fn a64_scaled_signed fieldbits ulong signbit ulong scale ulong to long 112 +ret bitcast long shl sub xor fieldbits signbit signbit scale 113 +end 114 + 115 +export fn osc_a64_unpack_fields form ulong word ulong f edit a64field to void 116 +put f rd uint and word 31 117 +put f rn uint and shr word 5 31 118 +put f rm uint and shr word 16 31 119 +put f ra uint and shr word 10 31 120 +put f shift 0 121 +put f cond 0 122 +put f imm 0 123 +put f imm2 0 124 +if eq form CLS_RRR_SH 125 + put f shift uint and shr word 22 3 126 + put f imm long and shr word 10 63 127 +end 128 +if eq form CLS_RI 129 + put f imm long and shr word 10 0xfff 130 + put f imm2 long and shr word 22 1 131 +end 132 +if eq form CLS_BFM 133 + put f imm long and shr word 16 63 134 + put f imm2 long and shr word 10 63 135 +end 136 +if eq form CLS_CSINC 137 + put f cond uint and shr word 12 15 138 +end 139 +if eq form CLS_MOV16 140 + put f imm long and shr word 5 0xffff 141 + put f imm2 long shl and shr word 21 3 4 142 +end 143 +if eq form CLS_MEM 144 + put f imm long shl and shr word 10 0xfff 3 145 +end 146 +if eq form CLS_PAIR 147 + put f imm a64_scaled_signed and shr word 15 0x7f 0x40 3 148 +end 149 +if eq form CLS_B26 150 + put f imm a64_scaled_signed and word 0x03ffffff 0x02000000 2 151 +end 152 +if or eq form CLS_BCOND eq form CLS_CB 153 + put f imm a64_scaled_signed and shr word 5 0x7ffff 0x40000 2 154 + if eq form CLS_BCOND 155 + put f cond uint and word 15 156 + end 157 +end 158 +if eq form CLS_BRK 159 + put f imm long and shr word 5 0xffff 160 +end 161 +end 162 +const ERR_UNUSED_SHIFT ulong 1 163 +const ERR_UNUSED_COND ulong 2 164 +const ERR_UNUSED_IMM2 ulong 3 165 +const ERR_UNUSED_IMM ulong 4 166 +const ERR_SHIFT_KIND ulong 5 167 +const ERR_SHIFT_AMOUNT ulong 6 168 +const ERR_IMM12 ulong 7 169 +const ERR_LSL12 ulong 8 170 +const ERR_IMMR ulong 9 171 +const ERR_IMMS ulong 10 172 +const ERR_COND ulong 11 173 +const ERR_IMM16 ulong 12 174 +const ERR_MOV_SHIFT ulong 13 175 +const ERR_MEM_OFFSET ulong 14 176 +const ERR_PAIR_OFFSET ulong 15 177 +const ERR_WRITEBACK_ALIAS ulong 16 178 +const ERR_LOAD_ALIAS ulong 17 179 +const ERR_BRANCH_OFFSET ulong 18 180 +const ERR_BRANCH_COND ulong 19 181 + 182 +note Pair flags come from the opcode table. Encoded base register 31 is SP 183 +note for the pair class, so it cannot alias a transfer even when that is XZR. 184 +export fn osc_a64_check_fields cls ulong f view a64field writeback ulong loadpair ulong to ulong 185 +imm = get f imm 186 +second = get f imm2 187 +if and ne cls CLS_RRR_SH ne get f shift 0 188 + ret ERR_UNUSED_SHIFT 189 +end 190 +if and ne get f cond 0 and ne cls CLS_CSINC ne cls CLS_BCOND 191 + ret ERR_UNUSED_COND 192 +end 193 +if ne second 0 194 + if and ne cls CLS_RI and ne cls CLS_BFM ne cls CLS_MOV16 195 + ret ERR_UNUSED_IMM2 196 + end 197 +end 198 +if ne imm 0 199 + if or eq cls CLS_R4 or eq cls CLS_MULH eq cls CLS_R3 200 + ret ERR_UNUSED_IMM 201 + end 202 + if or eq cls CLS_CSINC eq cls CLS_BREG 203 + ret ERR_UNUSED_IMM 204 + end 205 +end 206 +if eq cls CLS_RRR_SH 207 + if gt get f shift 2 208 + ret ERR_SHIFT_KIND 209 + end 210 + if or lt imm 0 gt imm 63 211 + ret ERR_SHIFT_AMOUNT 212 + end 213 +end 214 +if eq cls CLS_RI 215 + if or lt imm 0 gt imm 4095 216 + ret ERR_IMM12 217 + end 218 + if and ne second 0 ne second 1 219 + ret ERR_LSL12 220 + end 221 +end 222 +if eq cls CLS_BFM 223 + if or lt imm 0 gt imm 63 224 + ret ERR_IMMR 225 + end 226 + if or lt second 0 gt second 63 227 + ret ERR_IMMS 228 + end 229 +end 230 +if and eq cls CLS_CSINC gt get f cond 14 231 + ret ERR_COND 232 +end 233 +if or eq cls CLS_MOV16 eq cls CLS_BRK 234 + if or lt imm 0 gt imm 65535 235 + ret ERR_IMM16 236 + end 237 + if eq cls CLS_MOV16 238 + if or lt second 0 or gt second 48 ne and second 15 0 239 + ret ERR_MOV_SHIFT 240 + end 241 + end 242 +end 243 +if eq cls CLS_MEM 244 + if or lt imm 0 or gt imm 32760 ne and imm 7 0 245 + ret ERR_MEM_OFFSET 246 + end 247 +end 248 +if eq cls CLS_PAIR 249 + if or lt imm -512 or gt imm 504 ne and imm 7 0 250 + ret ERR_PAIR_OFFSET 251 + end 252 + if and ne writeback 0 ne get f rn 31 253 + base = get f rn 254 + if or eq base get f rd eq base get f ra 255 + ret ERR_WRITEBACK_ALIAS 256 + end 257 + end 258 + if and ne loadpair 0 eq get f rd get f ra 259 + ret ERR_LOAD_ALIAS 260 + end 261 +end 262 +if eq cls CLS_B26 263 + if or lt imm -`134217728` or gt imm `134217724` ne and imm 3 0 264 + ret ERR_BRANCH_OFFSET 265 + end 266 +end 267 +if or eq cls CLS_BCOND eq cls CLS_CB 268 + if and eq cls CLS_BCOND gt get f cond 13 269 + ret ERR_BRANCH_COND 270 + end 271 + if or lt imm -`1048576` or gt imm `1048572` ne and imm 3 0 272 + ret ERR_BRANCH_OFFSET 273 + end 274 +end 275 +ret 0 276 +end om/compiler/osc_expr.om new file mode 100644 @@ -0,0 +1,210 @@ 1 +note SPDX-License-Identifier: Apache-2.0 2 +note OSC infix expressions. Pending operators are strictly increasing in precedence. 3 +note Thus nine precedence levels need nine slots regardless of expression length. 4 +note The caller supplies one parsed unary operand at a time, allocates AST nodes 5 +note on shift, and attaches their edges on reduction. No syntax tree is buffered. 6 +note bridge c-type exprstk OscExprStack 7 +note bridge c-define OSC_EXPR_DONE 0 8 +note bridge c-define OSC_EXPR_SHIFT 1 9 +note bridge c-define OSC_EXPR_REDUCE 2 10 +note bridge c-define OSC_EXPR_CHAINED 3 11 +note bridge c-type opstate OscOperandState 12 +note bridge c-define OSC_OPERAND_DONE 0 13 +note bridge c-define OSC_OPERAND_PREFIX 1 14 +note bridge c-define OSC_OPERAND_INTEGER 2 15 +note bridge c-define OSC_OPERAND_TRUE 3 16 +note bridge c-define OSC_OPERAND_FALSE 4 17 +note bridge c-define OSC_OPERAND_NAME 5 18 +note bridge c-define OSC_OPERAND_CALL 6 19 +note bridge c-define OSC_OPERAND_FIELD 7 20 +note bridge c-define OSC_OPERAND_INDEX 8 21 +note bridge c-define OSC_OPERAND_POOL 9 22 +note bridge c-define OSC_OPERAND_GROUP 10 23 +note bridge c-define OSC_OPERAND_BORROW_ERROR 11 24 +note bridge c-define OSC_OPERAND_SYNTAX 12 25 +note bridge c-define OSC_OPERAND_CAST 13 26 +note bridge c-define OSC_OPERAND_CAST_ERROR 14 27 +note bridge c-define OSC_OPERAND_UNWIND 15 28 +om2 29 + 30 +layout exprstk 120 31 +field depth uint at 0 little 32 +field rank uint 9 at 4 little 33 +field node int 9 at 40 little 34 +field lhs int 9 at 76 little 35 +field parent int at 112 little 36 +field left int at 116 little 37 +end 38 + 39 +note Prefix nodes are consecutive until the primary begins. Unwind links them 40 +note only after a successful primary and cast, preserving partial ASTs on errors. 41 +layout opstate 12 42 +field phase uint at 0 little 43 +field prefixes uint at 4 little 44 +field pending uint at 8 little 45 +end 46 + 47 +const OP_DONE ulong 0 48 +const OP_PREFIX ulong 1 49 +const OP_INTEGER ulong 2 50 +const OP_TRUE ulong 3 51 +const OP_FALSE ulong 4 52 +const OP_NAME ulong 5 53 +const OP_CALL ulong 6 54 +const OP_FIELD ulong 7 55 +const OP_INDEX ulong 8 56 +const OP_POOL ulong 9 57 +const OP_GROUP ulong 10 58 +const OP_BORROW_ERROR ulong 11 59 +const OP_SYNTAX ulong 12 60 +const OP_CAST ulong 13 61 +const OP_CAST_ERROR ulong 14 62 +const OP_UNWIND ulong 15 63 + 64 +const OT_PLUS uint 42 65 +const OT_MINUS uint 43 66 +const OT_STAR uint 44 67 +const OT_SLASH uint 45 68 +const OT_PERCENT uint 46 69 +const OT_AMP uint 47 70 +const OT_PIPE uint 48 71 +const OT_CARET uint 49 72 +const OT_ANDAND uint 52 73 +const OT_OROR uint 53 74 +const OT_SHL uint 54 75 +const OT_SHR uint 55 76 +const OT_EQ uint 56 77 +const OT_GE uint 61 78 +const CMP_RANK uint 3 79 +const EXPR_DONE ulong 0 80 +const EXPR_SHIFT ulong 1 81 +const EXPR_REDUCE ulong 2 82 +const EXPR_CHAINED ulong 3 83 + 84 +fn expr_rank kind uint to uint 85 +if eq kind OT_OROR 86 + ret 1 87 +end 88 +if eq kind OT_ANDAND 89 + ret 2 90 +end 91 +if and ge kind OT_EQ le kind OT_GE 92 + ret CMP_RANK 93 +end 94 +if eq kind OT_PIPE 95 + ret 4 96 +end 97 +if eq kind OT_CARET 98 + ret 5 99 +end 100 +if eq kind OT_AMP 101 + ret 6 102 +end 103 +if or eq kind OT_SHL eq kind OT_SHR 104 + ret 7 105 +end 106 +if or eq kind OT_PLUS eq kind OT_MINUS 107 + ret 8 108 +end 109 +if or eq kind OT_STAR or eq kind OT_SLASH eq kind OT_PERCENT 110 + ret 9 111 +end 112 +ret 0 113 +end 114 + 115 +export fn osc_expr_step stack edit exprstk look ulong operand ulong to ulong 116 +rank = expr_rank uint look 117 +depth = get stack depth 118 +if ne depth 0 119 + top = ulong sub depth 1 120 + pending = get stack rank top 121 + if ge pending rank 122 + put stack depth sub depth 1 123 + put stack parent get stack node top 124 + put stack left get stack lhs top 125 + if and eq pending CMP_RANK eq rank CMP_RANK 126 + ret EXPR_CHAINED 127 + end 128 + ret EXPR_REDUCE 129 + end 130 +end 131 +if eq rank 0 132 + ret EXPR_DONE 133 +end 134 +put stack rank ulong depth rank 135 +put stack lhs ulong depth int operand 136 +put stack depth add depth 1 137 +ret EXPR_SHIFT 138 +end 139 +const OT_LPAREN uint 30 140 +const OT_LBRACK uint 34 141 +const OT_DOT uint 63 142 +const OT_ALLOC uint 8 143 +const OT_AS uint 18 144 +const OT_INT uint 2 145 +const OT_NAME uint 1 146 +const OT_TRUE uint 19 147 +const OT_FALSE uint 20 148 +const OT_BANG uint 51 149 +const OT_TILDE uint 50 150 + 151 +note phase 0 scans prefixes and selects the primary, phase 1 permits one cast, 152 +note phase 2 refuses a second cast, phase 3 attaches the pending prefix nodes. 153 +export fn osc_operand_step state edit opstate kind ulong nextkind ulong third ulong to ulong 154 +phase = get state phase 155 +if eq phase 0 156 + if or eq uint kind OT_MINUS or eq uint kind OT_TILDE eq uint kind OT_BANG 157 + put state prefixes add get state prefixes 1 158 + ret OP_PREFIX 159 + end 160 + put state phase 1 161 + if eq uint kind OT_INT 162 + ret OP_INTEGER 163 + end 164 + if eq uint kind OT_TRUE 165 + ret OP_TRUE 166 + end 167 + if eq uint kind OT_FALSE 168 + ret OP_FALSE 169 + end 170 + if eq uint kind OT_NAME 171 + if eq uint nextkind OT_LPAREN 172 + ret OP_CALL 173 + end 174 + if eq uint nextkind OT_LBRACK 175 + ret OP_INDEX 176 + end 177 + if eq uint nextkind OT_DOT 178 + if eq uint third OT_ALLOC 179 + ret OP_POOL 180 + end 181 + ret OP_FIELD 182 + end 183 + ret OP_NAME 184 + end 185 + if eq uint kind OT_LPAREN 186 + ret OP_GROUP 187 + end 188 + if eq uint kind OT_AMP 189 + ret OP_BORROW_ERROR 190 + end 191 + ret OP_SYNTAX 192 +end 193 +if eq uint kind OT_AS 194 + if eq phase 1 195 + put state phase 2 196 + ret OP_CAST 197 + end 198 + if eq phase 2 199 + ret OP_CAST_ERROR 200 + end 201 +end 202 +put state phase 3 203 +count = get state prefixes 204 +if ne count 0 205 + put state pending sub count 1 206 + put state prefixes sub count 1 207 + ret OP_UNWIND 208 +end 209 +ret OP_DONE 210 +end om/compiler/osc_literal.om @@ -2,8 +2,34 @@ note SPDX-License-Identifier: Apache-2.0 2 2 note Decode the spelling of one OSC integer token. Syntax takes precedence over overflow. 3 3 note bridge c-define OSC_LITERAL_MALFORMED 1 4 4 note bridge c-define OSC_LITERAL_OVERFLOW 2 5 +note The lexer and literal decoder share this unit so integer tokens need no second bridge call. 6 +note bridge c-type lexstate OscLexState 7 +note bridge c-define OSC_LEX_COMMENT 3 8 +note bridge c-define OSC_LEX_FULL 4 9 +note bridge c-define OSC_LEX_NAME_LONG 5 10 +note bridge c-define OSC_LEX_BAD_BYTE 6 5 11 om2 6 12 13 +layout lexstate 40 14 +field pos ulong at 0 little 15 +field start ulong at 8 little 16 +field value ulong at 16 little 17 +field line uint at 24 little 18 +field col uint at 28 little 19 +field width uint at 32 little 20 +field kind uint at 36 little 21 +end 22 + 23 +note Wire image of a host OscToken. The C adapter asserts its offsets and size. 24 +layout osctoken 32 25 +field kind ushort at 0 little 26 +field line uint at 4 little 27 +field col uint at 8 little 28 +field off uint at 12 little 29 +field width uint at 16 little 30 +field value ulong at 24 little 31 +end 32 + 7 33 fn literal_digit c ulong to ulong 8 34 if and ge c 48 le c 57 9 35 ret sub c 48 @@ -57,3 +83,671 @@ end 57 83 put value 0 acc 58 84 ret 0 59 85 end 86 + 87 +note OscTokKind values from src/compiler/osc_lex.h. The oracle exercises every spelling. 88 +const OT_EOF uint 0 89 +const OT_NAME uint 1 90 +const OT_INT uint 2 91 +const OT_RESERVED uint 3 92 +const OT_FN uint 4 93 +const OT_LET uint 5 94 +const OT_MUT uint 6 95 +const OT_OWN uint 7 96 +const OT_ALLOC uint 8 97 +const OT_IF uint 9 98 +const OT_ELSE uint 10 99 +const OT_WHILE uint 11 100 +const OT_BOUND uint 12 101 +const OT_FOR uint 13 102 +const OT_IN uint 14 103 +const OT_RETURN uint 15 104 +const OT_REQUIRES uint 16 105 +const OT_ENSURES uint 17 106 +const OT_AS uint 18 107 +const OT_TRUE uint 19 108 +const OT_FALSE uint 20 109 +const OT_U8 uint 21 110 +const OT_U16 uint 22 111 +const OT_U32 uint 23 112 +const OT_U64 uint 24 113 +const OT_I8 uint 25 114 +const OT_I16 uint 26 115 +const OT_I32 uint 27 116 +const OT_I64 uint 28 117 +const OT_BOOL uint 29 118 +const OT_LPAREN uint 30 119 +const OT_RPAREN uint 31 120 +const OT_LBRACE uint 32 121 +const OT_RBRACE uint 33 122 +const OT_LBRACK uint 34 123 +const OT_RBRACK uint 35 124 +const OT_COMMA uint 36 125 +const OT_SEMI uint 37 126 +const OT_COLON uint 38 127 +const OT_ARROW uint 39 128 +const OT_DOTDOT uint 40 129 +const OT_ASSIGN uint 41 130 +const OT_PLUS uint 42 131 +const OT_MINUS uint 43 132 +const OT_STAR uint 44 133 +const OT_SLASH uint 45 134 +const OT_PERCENT uint 46 135 +const OT_AMP uint 47 136 +const OT_PIPE uint 48 137 +const OT_CARET uint 49 138 +const OT_TILDE uint 50 139 +const OT_BANG uint 51 140 +const OT_ANDAND uint 52 141 +const OT_OROR uint 53 142 +const OT_SHL uint 54 143 +const OT_SHR uint 55 144 +const OT_EQ uint 56 145 +const OT_NE uint 57 146 +const OT_LT uint 58 147 +const OT_LE uint 59 148 +const OT_GT uint 60 149 +const OT_GE uint 61 150 +const OT_STRUCT uint 62 151 +const OT_DOT uint 63 152 +const OT_ARENA uint 64 153 +const OT_POOL uint 65 154 +const OT_HANDLE uint 66 155 +const OT_IMPORT uint 67 156 +const OT_BYTES uint 68 157 +const OT_CELLS uint 69 158 + 159 +fn lex_digit c uchar to bool 160 +ret and ge c 48 le c 57 161 +end 162 + 163 +fn lex_alpha c uchar to bool 164 +if eq c 95 165 + ret true 166 +end 167 +ret or and ge c 65 le c 90 and ge c 97 le c 122 168 +end 169 + 170 +note Function-mode units cannot contain text globals. Compare exact ASCII spellings 171 +note packed most significant byte first. Identifiers contain no zero bytes. 172 +fn lex_word word view uchar * to uint 173 +if gt len word 10 174 + ret OT_NAME 175 +end 176 +key = ulong 0 177 +tail = uint 0 178 +index = ulong 0 179 +while lt index len word bound 10 180 + if lt index 8 181 + key = or shl key 8 ulong get word index 182 + else 183 + tail = or shl tail 8 uint get word index 184 + end 185 + index = add index 1 186 +end 187 +if ne tail 0 188 + note capability 189 + if and eq key 0x6361706162696c69 eq tail 0x7479 190 + ret OT_RESERVED 191 + end 192 + note authority 193 + if and eq key 0x617574686f726974 eq tail 0x79 194 + ret OT_RESERVED 195 + end 196 + ret OT_NAME 197 +end 198 +note fn 199 +if eq key 0x666e 200 + ret OT_FN 201 +end 202 +note let 203 +if eq key 0x6c6574 204 + ret OT_LET 205 +end 206 +note mut 207 +if eq key 0x6d7574 208 + ret OT_MUT 209 +end 210 +note own 211 +if eq key 0x6f776e 212 + ret OT_OWN 213 +end 214 +note alloc 215 +if eq key 0x616c6c6f63 216 + ret OT_ALLOC 217 +end 218 +note if 219 +if eq key 0x6966 220 + ret OT_IF 221 +end 222 +note else 223 +if eq key 0x656c7365 224 + ret OT_ELSE 225 +end 226 +note while 227 +if eq key 0x7768696c65 228 + ret OT_WHILE 229 +end 230 +note bound 231 +if eq key 0x626f756e64 232 + ret OT_BOUND 233 +end 234 +note for 235 +if eq key 0x666f72 236 + ret OT_FOR 237 +end 238 +note in 239 +if eq key 0x696e 240 + ret OT_IN 241 +end 242 +note return 243 +if eq key 0x72657475726e 244 + ret OT_RETURN 245 +end 246 +note requires 247 +if eq key 0x7265717569726573 248 + ret OT_REQUIRES 249 +end 250 +note ensures 251 +if eq key 0x656e7375726573 252 + ret OT_ENSURES 253 +end 254 +note as 255 +if eq key 0x6173 256 + ret OT_AS 257 +end 258 +note true 259 +if eq key 0x74727565 260 + ret OT_TRUE 261 +end 262 +note false 263 +if eq key 0x66616c7365 264 + ret OT_FALSE 265 +end 266 +note u8 267 +if eq key 0x7538 268 + ret OT_U8 269 +end 270 +note u16 271 +if eq key 0x753136 272 + ret OT_U16 273 +end 274 +note u32 275 +if eq key 0x753332 276 + ret OT_U32 277 +end 278 +note u64 279 +if eq key 0x753634 280 + ret OT_U64 281 +end 282 +note i8 283 +if eq key 0x6938 284 + ret OT_I8 285 +end 286 +note i16 287 +if eq key 0x693136 288 + ret OT_I16 289 +end 290 +note i32 291 +if eq key 0x693332 292 + ret OT_I32 293 +end 294 +note i64 295 +if eq key 0x693634 296 + ret OT_I64 297 +end 298 +note bool 299 +if eq key 0x626f6f6c 300 + ret OT_BOOL 301 +end 302 +note struct 303 +if eq key 0x737472756374 304 + ret OT_STRUCT 305 +end 306 +note arena 307 +if eq key 0x6172656e61 308 + ret OT_ARENA 309 +end 310 +note pool 311 +if eq key 0x706f6f6c 312 + ret OT_POOL 313 +end 314 +note handle 315 +if eq key 0x68616e646c65 316 + ret OT_HANDLE 317 +end 318 +note import 319 +if eq key 0x696d706f7274 320 + ret OT_IMPORT 321 +end 322 +note bytes 323 +if eq key 0x6279746573 324 + ret OT_BYTES 325 +end 326 +note cells 327 +if eq key 0x63656c6c73 328 + ret OT_CELLS 329 +end 330 +note free 331 +if eq key 0x66726565 332 + ret OT_RESERVED 333 +end 334 +note drop 335 +if eq key 0x64726f70 336 + ret OT_RESERVED 337 +end 338 +note delete 339 +if eq key 0x64656c657465 340 + ret OT_RESERVED 341 +end 342 +note dealloc 343 +if eq key 0x6465616c6c6f63 344 + ret OT_RESERVED 345 +end 346 +note effect 347 +if eq key 0x656666656374 348 + ret OT_RESERVED 349 +end 350 +note cap 351 +if eq key 0x636170 352 + ret OT_RESERVED 353 +end 354 +note mint 355 +if eq key 0x6d696e74 356 + ret OT_RESERVED 357 +end 358 +note revoke 359 +if eq key 0x7265766f6b65 360 + ret OT_RESERVED 361 +end 362 +note grant 363 +if eq key 0x6772616e74 364 + ret OT_RESERVED 365 +end 366 +note publish 367 +if eq key 0x7075626c697368 368 + ret OT_RESERVED 369 +end 370 +note promote 371 +if eq key 0x70726f6d6f7465 372 + ret OT_RESERVED 373 +end 374 +note admin 375 +if eq key 0x61646d696e 376 + ret OT_RESERVED 377 +end 378 +note syscall 379 +if eq key 0x73797363616c6c 380 + ret OT_RESERVED 381 +end 382 +note io 383 +if eq key 0x696f 384 + ret OT_RESERVED 385 +end 386 +note print 387 +if eq key 0x7072696e74 388 + ret OT_RESERVED 389 +end 390 +note extern 391 +if eq key 0x65787465726e 392 + ret OT_RESERVED 393 +end 394 +note unsafe 395 +if eq key 0x756e73616665 396 + ret OT_RESERVED 397 +end 398 +note asm 399 +if eq key 0x61736d 400 + ret OT_RESERVED 401 +end 402 +note loop 403 +if eq key 0x6c6f6f70 404 + ret OT_RESERVED 405 +end 406 +note match 407 +if eq key 0x6d61746368 408 + ret OT_RESERVED 409 +end 410 +note enum 411 +if eq key 0x656e756d 412 + ret OT_RESERVED 413 +end 414 +note var 415 +if eq key 0x766172 416 + ret OT_RESERVED 417 +end 418 +note const 419 +if eq key 0x636f6e7374 420 + ret OT_RESERVED 421 +end 422 +note self 423 +if eq key 0x73656c66 424 + ret OT_RESERVED 425 +end 426 +note rec 427 +if eq key 0x726563 428 + ret OT_RESERVED 429 +end 430 +note break 431 +if eq key 0x627265616b 432 + ret OT_RESERVED 433 +end 434 +note continue 435 +if eq key 0x636f6e74696e7565 436 + ret OT_RESERVED 437 +end 438 +ret OT_NAME 439 +end 440 + 441 +fn lex_pair key uint to uint 442 +note -> 443 +if eq key 0x2d3e 444 + ret OT_ARROW 445 +end 446 +note .. 447 +if eq key 0x2e2e 448 + ret OT_DOTDOT 449 +end 450 +note && 451 +if eq key 0x2626 452 + ret OT_ANDAND 453 +end 454 +note || 455 +if eq key 0x7c7c 456 + ret OT_OROR 457 +end 458 +note << 459 +if eq key 0x3c3c 460 + ret OT_SHL 461 +end 462 +note >> 463 +if eq key 0x3e3e 464 + ret OT_SHR 465 +end 466 +note == 467 +if eq key 0x3d3d 468 + ret OT_EQ 469 +end 470 +note != 471 +if eq key 0x213d 472 + ret OT_NE 473 +end 474 +note <= 475 +if eq key 0x3c3d 476 + ret OT_LE 477 +end 478 +note >= 479 +if eq key 0x3e3d 480 + ret OT_GE 481 +end 482 +ret OT_EOF 483 +end 484 + 485 +fn lex_single key uint to uint 486 +note ( 487 +if eq key 0x28 488 + ret OT_LPAREN 489 +end 490 +note ) 491 +if eq key 0x29 492 + ret OT_RPAREN 493 +end 494 +note { 495 +if eq key 0x7b 496 + ret OT_LBRACE 497 +end 498 +note } 499 +if eq key 0x7d 500 + ret OT_RBRACE 501 +end 502 +note [ 503 +if eq key 0x5b 504 + ret OT_LBRACK 505 +end 506 +note ] 507 +if eq key 0x5d 508 + ret OT_RBRACK 509 +end 510 +note , 511 +if eq key 0x2c 512 + ret OT_COMMA 513 +end 514 +note ; 515 +if eq key 0x3b 516 + ret OT_SEMI 517 +end 518 +note : 519 +if eq key 0x3a 520 + ret OT_COLON 521 +end 522 +note = 523 +if eq key 0x3d 524 + ret OT_ASSIGN 525 +end 526 +note + 527 +if eq key 0x2b 528 + ret OT_PLUS 529 +end 530 +note - 531 +if eq key 0x2d 532 + ret OT_MINUS 533 +end 534 +note * 535 +if eq key 0x2a 536 + ret OT_STAR 537 +end 538 +note / 539 +if eq key 0x2f 540 + ret OT_SLASH 541 +end 542 +note % 543 +if eq key 0x25 544 + ret OT_PERCENT 545 +end 546 +note & 547 +if eq key 0x26 548 + ret OT_AMP 549 +end 550 +note | 551 +if eq key 0x7c 552 + ret OT_PIPE 553 +end 554 +note ^ 555 +if eq key 0x5e 556 + ret OT_CARET 557 +end 558 +note ~ 559 +if eq key 0x7e 560 + ret OT_TILDE 561 +end 562 +note ! 563 +if eq key 0x21 564 + ret OT_BANG 565 +end 566 +note < 567 +if eq key 0x3c 568 + ret OT_LT 569 +end 570 +note > 571 +if eq key 0x3e 572 + ret OT_GT 573 +end 574 +note . 575 +if eq key 0x2e 576 + ret OT_DOT 577 +end 578 +ret OT_EOF 579 +end 580 + 581 +note Leave pos at the first token byte. Only LF advances the line number. 582 +note On an unfinished block comment, report the position of its opening slash. 583 +fn lex_trivia src view uchar * cursor edit lexstate to bool 584 +pos = get cursor pos 585 +line = get cursor line 586 +col = get cursor col 587 +while lt pos len src bound `9223372036854775807` 588 + c = get src pos 589 + if eq c 10 590 + line = add line 1 591 + col = 1 592 + pos = add pos 1 593 + continue 594 + end 595 + if or eq c 32 or eq c 9 eq c 13 596 + col = add col 1 597 + pos = add pos 1 598 + continue 599 + end 600 + if ne c 47 601 + break 602 + end 603 + if eq add pos 1 len src 604 + break 605 + end 606 + nextbyte = get src add pos 1 607 + if eq nextbyte 47 608 + while lt pos len src bound `9223372036854775807` 609 + if eq get src pos 10 610 + break 611 + end 612 + pos = add pos 1 613 + col = add col 1 614 + end 615 + continue 616 + end 617 + if ne nextbyte 42 618 + break 619 + end 620 + put cursor line line 621 + put cursor col col 622 + pos = add pos 2 623 + col = add col 2 624 + while true bound `9223372036854775807` 625 + if eq pos len src 626 + ret false 627 + end 628 + c = get src pos 629 + pos = add pos 1 630 + col = add col 1 631 + if eq c 42 632 + if lt pos len src 633 + if eq get src pos 47 634 + pos = add pos 1 635 + col = add col 1 636 + break 637 + end 638 + end 639 + end 640 + if eq c 10 641 + line = add line 1 642 + col = 1 643 + end 644 + end 645 +end 646 +put cursor pos pos 647 +put cursor line line 648 +put cursor col col 649 +ret true 650 +end 651 + 652 +note On entry col is the previous token's start column and width its byte length. 653 +note Tokens never cross a line. Trivia updates both coordinates before the capacity check. 654 +export fn osc_lex_next src view uchar * cursor edit lexstate room ulong namemax ulong to ulong 655 +value = new ulong 1 0 656 +put cursor col add get cursor col get cursor width 657 +if not lex_trivia src cursor 658 + ret 3 659 +end 660 +if eq room 0 661 + ret 4 662 +end 663 +start = get cursor pos 664 +put cursor start start 665 +put cursor width 0 666 +put cursor value 0 667 +put cursor kind OT_EOF 668 +if eq start len src 669 + ret 0 670 +end 671 +c = get src start 672 +pos = add start 1 673 +if or lex_alpha c lex_digit c 674 + while lt pos len src bound `9223372036854775807` 675 + ch = get src pos 676 + if not or lex_alpha ch lex_digit ch 677 + break 678 + end 679 + pos = add pos 1 680 + end 681 + size = sub pos start 682 + put cursor pos pos 683 + put cursor width uint size 684 + if lex_digit c 685 + status = osc_parse_literal part src start size value 686 + if ne status 0 687 + ret status 688 + end 689 + put cursor value get value 0 690 + put cursor kind OT_INT 691 + else 692 + if gt ulong uint size namemax 693 + ret 5 694 + end 695 + put cursor kind lex_word part src start size 696 + end 697 + ret 0 698 +end 699 +kind = OT_EOF 700 +if lt pos len src 701 + pair = or shl uint c 8 uint get src pos 702 + kind = lex_pair pair 703 +end 704 +if ne kind OT_EOF 705 + pos = add pos 1 706 +else 707 + kind = lex_single uint c 708 + if eq kind OT_EOF 709 + ret 6 710 + end 711 +end 712 +put cursor kind kind 713 +put cursor pos pos 714 +put cursor width uint sub pos start 715 +ret 0 716 +end 717 + 718 +fn save_token dest edit osctoken cursor view lexstate to void 719 + put dest kind ushort get cursor kind 720 + put dest line get cursor line 721 + put dest col get cursor col 722 + put dest off uint get cursor start 723 + put dest width get cursor width 724 + put dest value get cursor value 725 +end 726 + 727 +note Refusals preserve completed tokens and the partially written failing 728 +note token. Capacity and unterminated comments create no token. 729 +export fn osc_lex_stream src view uchar * cursor edit lexstate dest edit uchar * count edit ulong 1 to ulong 730 + token = new uchar 32 0 731 + n = ulong 0 732 + cap = div len dest 32 733 + while true bound `4294967296` 734 + status = osc_lex_next src cursor sub cap n 63 735 + if and ne status 3 ne status 4 736 + save_token token cursor 737 + offset = mul n 32 738 + for j ulong 32 739 + put dest add offset j get token j 740 + end 741 + end 742 + if ne status 0 743 + put count 0 n 744 + ret status 745 + end 746 + n = add n 1 747 + if eq get cursor kind OT_EOF 748 + put count 0 n 749 + ret 0 750 + end 751 + end 752 + trap 1 753 +end om/compiler/osc_ownership.om @@ -79,13 +79,17 @@ end 79 79 note Join two paths that reach the same point. Keep the diagnostic line from 80 80 note the already maybe-moved path when the other path definitely moved. 81 81 note Return one when the declaration needs a conditional release. 82 +fn keep_taken_line first uchar second uchar to bool 83 + ret or eq second owner_live and eq second owner_moved eq first owner_maybe 84 +end 85 + 82 86 export fn osc_join_owner taken view oscowner remaining edit oscowner to ulong 83 87 first = get taken moved 84 88 second = get remaining moved 85 89 if eq first second 86 90 ret 0 87 91 end 88 - if or eq second owner_live and eq second owner_moved eq first owner_maybe 92 + if keep_taken_line first second 89 93 put remaining moveline get taken moveline 90 94 end 91 95 put remaining moved owner_maybe @@ -168,3 +172,28 @@ export fn osc_close_reborrow parent edit oscbor child edit oscbor to void 168 172 put parent n_shared sub get parent n_shared 1 169 173 end 170 174 end 175 + 176 +note Join all pre-branch records in one call. Only declarations requiring a 177 +note conditional release are returned to the AST consumer. 178 +export fn osc_join_owners taken view uchar * remaining edit uchar * changes edit int * to ulong 179 +requires eq len taken mul len changes 20 180 +requires eq len remaining len taken 181 + count = ulong 0 182 + for i ulong len changes 183 + offset = mul i 20 184 + first = get taken offset 185 + second = get remaining offset 186 + if ne first second 187 + if keep_taken_line first second 188 + for j ulong 4 189 + atline = add add offset 8 j 190 + put remaining atline get taken atline 191 + end 192 + end 193 + put remaining offset owner_maybe 194 + put changes count int i 195 + count = add count 1 196 + end 197 + end 198 + ret count 199 +end om/compiler/osc_pool.om new file mode 100644 @@ -0,0 +1,63 @@ 1 +note SPDX-License-Identifier: Apache-2.0 2 +note Definite pool usage for OSC versioned handles. Crossing a conditional 3 +note free invalidates the live-slot bound. The generation budget still applies. 4 +note bridge c-type poolstat OscCheckedPool 5 +note bridge c-define OSC_POOL_FULL 1 6 +note bridge c-define OSC_POOL_RETIRED 2 7 +om2 8 + 9 +layout poolstat 32 10 +field gbase ulong at 0 little 11 +field dallocs ulong at 8 little 12 +field loop int at 16 little 13 +field branch int at 20 little 14 +field cap ushort at 24 little 15 +field dlive ushort at 26 little 16 +field cap_off uchar at 28 little 17 +end 18 + 19 +export fn osc_pool_init p edit poolstat cap ulong base ulong loop_depth long cond_depth long to void 20 + put p gbase base 21 + put p dallocs 0 22 + put p loop int loop_depth 23 + put p branch int cond_depth 24 + put p cap ushort cap 25 + put p dlive 0 26 + put p cap_off 0 27 +end 28 + 29 +fn definite p view poolstat loop_depth long cond_depth long to bool 30 + ret and eq long get p loop loop_depth eq long get p branch cond_depth 31 +end 32 + 33 +export fn osc_pool_alloc p edit poolstat loop_depth long cond_depth long to ulong 34 + if not definite p loop_depth cond_depth 35 + ret 0 36 + end 37 + live = ulong get p dlive 38 + slots = ulong get p cap 39 + if and eq get p cap_off 0 ge live slots 40 + ret 1 41 + end 42 + remaining = sub ulong `18446744073709551615` get p gbase 43 + allocations = add get p dallocs 1 44 + if and lt remaining `4294967296` gt allocations mul slots add remaining 1 45 + ret 2 46 + end 47 + put p dallocs allocations 48 + if eq get p cap_off 0 49 + put p dlive ushort add live 1 50 + end 51 + ret 0 52 +end 53 + 54 +export fn osc_pool_free p edit poolstat loop_depth long cond_depth long to void 55 + if not definite p loop_depth cond_depth 56 + put p cap_off 1 57 + else 58 + live = get p dlive 59 + if ne live 0 60 + put p dlive sub live 1 61 + end 62 + end 63 +end om/compiler/osc_scalar.om new file mode 100644 @@ -0,0 +1,831 @@ 1 +note SPDX-License-Identifier: Apache-2.0 2 +note Scalar semantics of validated OSC IR. Checked operations return the OSC 3 +note trap code as data. The host delivers that trap through the program runtime. 4 +om2 5 + 6 +note IDs from osc_ir.h. Operands enter in their canonical 64-bit representation. 7 +const T_BOOL ulong 1 8 +const T_U8 ulong 2 9 +const T_U64 ulong 5 10 +const T_I8 ulong 6 11 +const T_I64 ulong 9 12 +const SIGN64 ulong 0x8000000000000000 13 +const OVERFLOW ulong 1 14 +const DIV_ZERO ulong 2 15 +const CAST_RANGE ulong 5 16 +const BAD_SHIFT ulong 7 17 +const BAD_OPCODE ulong 8 18 + 19 +note Contract bindings contain known scalar arguments and the optional result. 20 +note bridge c-type contract OscContractBindings 21 +layout contract 80 22 +field v ulong 6 at 0 little 23 +field k uchar 6 at 48 little 24 +field nk int at 56 little 25 +field res_sym int at 60 little 26 +field known uchar at 64 little 27 +field result ulong at 72 little 28 +end 29 + 30 +note Offsets refer to the OscNode representation asserted at its C boundary. 31 +const ast_stride ulong 104 32 +const node_int ulong 15 33 +const node_bool ulong 16 34 +const node_name ulong 17 35 +const node_bin ulong 21 36 +const node_un ulong 22 37 +const node_cast ulong 23 38 +const node_type ulong 56 39 +const node_flag ulong 73 40 +const node_known ulong 75 41 +const node_value ulong 80 42 +const node_symbol ulong 88 43 + 44 +note The checker calls back into its general expression checker for each 45 +note operand. The frame preserves the exact evaluation order and type context. 46 +note bridge c-type infer OscInference 47 +note bridge c-define OSC_INFER_DONE 0 48 +note bridge c-define OSC_INFER_CHECK 1 49 +note bridge c-define OSC_INFER_CAST_LITERAL 2 50 +note bridge c-define OSC_INFER_COMPARE_LITERALS 3 51 +note bridge c-define OSC_INFER_COMPARE_BOOL 4 52 +note bridge c-define OSC_INFER_ARITH_BOOL 5 53 +note bridge c-define OSC_INFER_UNARY_TYPE 6 54 +note bridge c-define OSC_INFER_CAST_TYPE 7 55 +note bridge c-define OSC_INFER_SHIFT_TYPE 8 56 +note bridge c-define OSC_INFER_AMOUNT_TYPE 9 57 +note bridge c-define OSC_INFER_SHIFT_RANGE 10 58 +note bridge c-define OSC_INFER_ARITH_TYPE 11 59 +note bridge c-define OSC_INFER_ZERO_DIVISOR 12 60 + 61 +layout infer 72 62 +field root ulong at 0 little 63 +field want ulong at 8 little 64 +field phase ulong at 16 little 65 +field first ulong at 24 little 66 +field second ulong at 32 little 67 +field literal2 ulong at 40 little 68 +field optype ulong at 48 little 69 +field site ulong at 56 little 70 +field context ulong at 64 little 71 +end 72 + 73 +fn alu_signed t ulong to bool 74 +ret and ge t T_I8 le t T_I64 75 +end 76 + 77 +export fn osc_alu_width t ulong to ulong 78 +if eq t T_BOOL 79 + ret 1 80 +end 81 +if and ge t T_U8 le t T_U64 82 + ret shl ulong 8 sub t T_U8 83 +end 84 +if alu_signed t 85 + ret shl ulong 8 sub t T_I8 86 +end 87 +ret 0 88 +end 89 + 90 +fn alu_mask width ulong to ulong 91 +if eq width 64 92 + ret 0xffffffffffffffff 93 +end 94 +ret sub shl ulong 1 width 1 95 +end 96 + 97 +export fn osc_alu_canon t ulong v ulong to ulong 98 +w = osc_alu_width t 99 +v = and v alu_mask w 100 +if alu_signed t 101 + sign = shl ulong 1 sub w 1 102 + v = sub xor v sign sign 103 +end 104 +ret v 105 +end 106 + 107 +fn alu_mag v ulong to ulong 108 +if ge v SIGN64 109 + ret sub ulong 0 v 110 +end 111 +ret v 112 +end 113 + 114 +fn alu_limit width ulong negative bool to ulong 115 +top = shl ulong 1 sub width 1 116 +if negative 117 + ret top 118 +end 119 +ret sub top 1 120 +end 121 + 122 +fn alu_addsub op ulong t ulong a ulong b ulong value edit ulong 1 to ulong 123 +w = osc_alu_width t 124 +signedop = alu_signed t 125 +r = add a b 126 +if eq op 2 127 + r = sub a b 128 +end 129 +if signedop 130 + sign = shl ulong 1 sub w 1 131 + changed = and xor r a sign 132 + diff = and xor a b sign 133 + if ne changed 0 134 + if eq eq op 1 eq diff 0 135 + ret OVERFLOW 136 + end 137 + end 138 +end 139 +put value 0 osc_alu_canon t r 140 +ret 0 141 +end 142 + 143 +fn alu_mul t ulong a ulong b ulong value edit ulong 1 to ulong 144 +w = osc_alu_width t 145 +signedop = alu_signed t 146 +if signedop 147 + limit = alu_limit w ge xor a b SIGN64 148 + bm = alu_mag b 149 + if ne bm 0 150 + if gt alu_mag a div limit bm 151 + ret OVERFLOW 152 + end 153 + end 154 +end 155 +put value 0 osc_alu_canon t mul a b 156 +ret 0 157 +end 158 + 159 +fn alu_divrem op ulong t ulong a ulong b ulong value edit ulong 1 to ulong 160 +w = osc_alu_width t 161 +signedop = alu_signed t 162 +if eq b 0 163 + ret DIV_ZERO 164 +end 165 +am = a 166 +bm = b 167 +if signedop 168 + am = alu_mag a 169 + bm = alu_mag b 170 +end 171 +if eq op 4 172 + r = div am bm 173 + if signedop 174 + negative = ge xor a b SIGN64 175 + if gt r alu_limit w negative 176 + ret OVERFLOW 177 + end 178 + if negative 179 + r = sub ulong 0 r 180 + end 181 + end 182 + put value 0 r 183 +else 184 + r = rem am bm 185 + if and signedop ge a SIGN64 186 + r = sub ulong 0 r 187 + end 188 + put value 0 r 189 +end 190 +ret 0 191 +end 192 + 193 +fn alu_shift op ulong t ulong a ulong b ulong value edit ulong 1 to ulong 194 +w = osc_alu_width t 195 +signedop = alu_signed t 196 +note A negative canonical count is unsigned-greater than every valid width. 197 +if ge b w 198 + ret BAD_SHIFT 199 +end 200 +if eq op 9 201 + if signedop 202 + limit = alu_limit w ge a SIGN64 203 + if gt alu_mag a shr limit b 204 + ret OVERFLOW 205 + end 206 + end 207 + put value 0 osc_alu_canon t shl a b 208 +else 209 + r = shr a b 210 + if and signedop ge a SIGN64 211 + r = not shr not a b 212 + end 213 + put value 0 r 214 +end 215 +ret 0 216 +end 217 + 218 +export fn osc_alu_bin op ulong t ulong a ulong b ulong value out ulong 1 to ulong 219 +put value 0 0 220 +if eq osc_alu_width t 0 221 + ret BAD_OPCODE 222 +end 223 +if or eq op 1 eq op 2 224 + ret alu_addsub op t a b value 225 +end 226 +if eq op 3 227 + ret alu_mul t a b value 228 +end 229 +if or eq op 4 eq op 5 230 + ret alu_divrem op t a b value 231 +end 232 +if eq op 6 233 + put value 0 and a b 234 + ret 0 235 +end 236 +if eq op 7 237 + put value 0 or a b 238 + ret 0 239 +end 240 +if eq op 8 241 + put value 0 xor a b 242 + ret 0 243 +end 244 +if or eq op 9 eq op 10 245 + ret alu_shift op t a b value 246 +end 247 +ret BAD_OPCODE 248 +end 249 + 250 +export fn osc_alu_un op ulong t ulong a ulong value out ulong 1 to ulong 251 +put value 0 0 252 +if eq op 1 253 + if alu_signed t 254 + if ge a SIGN64 255 + if gt alu_mag a alu_limit osc_alu_width t false 256 + ret OVERFLOW 257 + end 258 + end 259 + end 260 + put value 0 osc_alu_canon t sub ulong 0 a 261 + ret 0 262 +end 263 +if eq op 2 264 + put value 0 osc_alu_canon t not a 265 + ret 0 266 +end 267 +if eq op 3 268 + put value 0 xor a 1 269 + ret 0 270 +end 271 +ret BAD_OPCODE 272 +end 273 + 274 +fn alu_truth flag bool to ulong 275 +if flag 276 + ret 1 277 +end 278 +ret 0 279 +end 280 + 281 +export fn osc_alu_cmp cc ulong t ulong a ulong b ulong to ulong 282 +if alu_signed t 283 + a = xor a SIGN64 284 + b = xor b SIGN64 285 +end 286 +if eq cc 1 287 + ret alu_truth eq a b 288 +end 289 +if eq cc 2 290 + ret alu_truth ne a b 291 +end 292 +if eq cc 3 293 + ret alu_truth lt a b 294 +end 295 +if eq cc 4 296 + ret alu_truth le a b 297 +end 298 +if eq cc 5 299 + ret alu_truth gt a b 300 +end 301 +if eq cc 6 302 + ret alu_truth ge a b 303 +end 304 +ret 0 305 +end 306 + 307 +export fn osc_alu_cast target ulong src ulong a ulong value out ulong 1 to ulong 308 +put value 0 0 309 +negative = and alu_signed src ge a SIGN64 310 +width = osc_alu_width target 311 +if alu_signed target 312 + magnitude = a 313 + if negative 314 + magnitude = alu_mag a 315 + end 316 + if gt magnitude alu_limit width negative 317 + ret CAST_RANGE 318 + end 319 +else 320 + if or negative gt a alu_mask width 321 + ret CAST_RANGE 322 + end 323 +end 324 +put value 0 a 325 +ret 0 326 +end 327 + 328 +note OSC surface token numbers from osc_lex.h and scalar sub-opcodes from osc_ir.h. 329 +const TOK_PLUS ulong 42 330 +const TOK_XOR ulong 49 331 +const TOK_SHL ulong 54 332 +const TOK_SHR ulong 55 333 +const TOK_EQ ulong 56 334 +const TOK_GE ulong 61 335 + 336 +export fn osc_binary_opcode tok ulong to ulong 337 +if and ge tok TOK_PLUS le tok TOK_XOR 338 + ret add sub tok TOK_PLUS 1 339 +end 340 +if eq tok TOK_SHL 341 + ret 9 342 +end 343 +if eq tok TOK_SHR 344 + ret 10 345 +end 346 +ret 0 347 +end 348 + 349 +export fn osc_compare_opcode tok ulong to ulong 350 +if and ge tok TOK_EQ le tok TOK_GE 351 + ret add sub tok TOK_EQ 1 352 +end 353 +ret 0 354 +end 355 + 356 +note The minus of a literal may denote the signed minimum directly, even 357 +note though its positive magnitude cannot stand alone as that signed type. 358 +export fn osc_literal_fits t ulong magnitude ulong negative ulong to ulong 359 +w = osc_alu_width t 360 +if alu_signed t 361 + ret alu_truth le magnitude alu_limit w ne negative 0 362 +end 363 +if ne negative 0 364 + ret alu_truth eq magnitude 0 365 +end 366 +ret alu_truth le magnitude alu_mask w 367 +end 368 + 369 +fn ast_read nodes view uchar * atbyte ulong bytes ulong to ulong 370 + v = ulong 0 371 + for i ulong bytes 372 + v = or v shl ulong get nodes add atbyte i mul i 8 373 + end 374 + ret v 375 +end 376 + 377 +fn contract_leaf nodes view uchar * base ulong env view contract value edit ulong 1 to ulong 378 + if ne get nodes add base node_known 0 379 + put value 0 ast_read nodes add base node_value 8 380 + ret 1 381 + end 382 + kind = ast_read nodes base 2 383 + if eq kind node_bool 384 + put value 0 alu_truth ne ast_read nodes add base 32 8 0 385 + ret 1 386 + end 387 + if eq kind node_name 388 + symbol = long int uint ast_read nodes add base node_symbol 4 389 + if lt symbol 0 390 + ret 0 391 + end 392 + if lt symbol long get env nk 393 + if ne get env k ulong symbol 0 394 + put value 0 get env v ulong symbol 395 + ret 1 396 + end 397 + end 398 + if and eq symbol long get env res_sym ne get env known 0 399 + put value 0 get env result 400 + ret 1 401 + end 402 + ret 0 403 + end 404 + if or eq kind node_un or eq kind node_cast eq kind node_bin 405 + ret 2 406 + end 407 + ret 0 408 +end 409 + 410 +fn contract_unary nodes view uchar * base ulong value edit ulong 1 to ulong 411 + typ = ast_read nodes add base node_type 4 412 + if eq ast_read nodes base 2 node_cast 413 + child = ast_read nodes add base 12 4 414 + src = ast_read nodes add mul child ast_stride node_type 4 415 + ret alu_truth eq osc_alu_cast typ src get value 0 value 0 416 + end 417 + tok = ast_read nodes add base 2 2 418 + unop = ulong 1 419 + if eq tok 51 420 + unop = 3 421 + else 422 + if eq tok 50 423 + unop = 2 424 + end 425 + end 426 + ret alu_truth eq osc_alu_un unop typ get value 0 value 0 427 +end 428 + 429 +fn contract_binary nodes view uchar * base ulong left ulong value edit ulong 1 to ulong 430 + tok = ast_read nodes add base 2 2 431 + if or eq tok 52 eq tok 53 432 + ret 1 433 + end 434 + cc = osc_compare_opcode tok 435 + if ne cc 0 436 + put value 0 osc_alu_cmp cc ulong get nodes add base node_flag left get value 0 437 + ret 1 438 + end 439 + typ = ast_read nodes add base node_type 4 440 + ret alu_truth eq osc_alu_bin osc_binary_opcode tok typ left get value 0 value 0 441 +end 442 + 443 +fn short_circuit nodes view uchar * base ulong value ulong to bool 444 + op = ast_read nodes add base 2 2 445 + ret or and eq op 52 eq value 0 and eq op 53 ne value 0 446 +end 447 + 448 +note Each work entry holds the node and its continuation. The second half of 449 +note the stack holds left operands while right subtrees are being evaluated. 450 +export fn osc_contract_value nodes view uchar * env view contract stack edit ulong * request edit ulong 2 to ulong 451 + value = new ulong 1 0 452 + depth = ulong 1 453 + put stack 0 mul get request 0 4 454 + while ne depth 0 bound 65537 455 + top = sub depth 1 456 + base = mul shr get stack top 2 ast_stride 457 + phase = and get stack top 3 458 + if eq phase 0 459 + choice = contract_leaf nodes base env value 460 + if eq choice 0 461 + ret 0 462 + end 463 + if eq choice 2 464 + put stack top add get stack top 1 465 + put stack depth mul ast_read nodes add base 12 4 4 466 + depth = add depth 1 467 + continue 468 + end 469 + else 470 + if ne ast_read nodes base 2 node_bin 471 + if eq contract_unary nodes base value 0 472 + ret 0 473 + end 474 + else 475 + if eq phase 1 476 + if short_circuit nodes base get value 0 477 + put value 0 alu_truth ne get value 0 0 478 + else 479 + put stack add top div len stack 2 get value 0 480 + put stack top add get stack top 1 481 + put stack depth mul ast_read nodes add base 16 4 4 482 + depth = add depth 1 483 + continue 484 + end 485 + else 486 + if eq contract_binary nodes base get stack add top div len stack 2 value 0 487 + ret 0 488 + end 489 + end 490 + end 491 + end 492 + depth = top 493 + end 494 + put request 1 get value 0 495 + ret 1 496 +end 497 + 498 +note Both classifications accept integer literals and arithmetic subtrees. 499 +note Shift width comes from its left child; folding also needs a literal RHS. 500 +fn needs_rhs op ulong literals ulong to bool 501 + ret or ne literals 0 not or eq op TOK_SHL eq op TOK_SHR 502 +end 503 + 504 +export fn osc_constant_tree nodes view uchar * id ulong require_literals ulong pending edit ulong * to ulong 505 + count = ulong 1 506 + put pending 0 id 507 + while ne count 0 bound 16384 508 + count = sub count 1 509 + base = mul get pending count ast_stride 510 + kind = ast_read nodes base 2 511 + if eq kind node_int 512 + continue 513 + end 514 + op = ast_read nodes add base 2 2 515 + if eq kind node_un 516 + if eq op 51 517 + ret 0 518 + end 519 + else 520 + if or ne kind node_bin eq osc_binary_opcode op 0 521 + ret 0 522 + end 523 + if needs_rhs op require_literals 524 + put pending count ast_read nodes add base 16 4 525 + count = add count 1 526 + end 527 + end 528 + put pending count ast_read nodes add base 12 4 529 + count = add count 1 530 + end 531 + ret 1 532 +end 533 + 534 +note Folding annotates the node only after its operands succeed. Negative 535 +note signed minimum is allowed as a single literal, though its positive 536 +note magnitude cannot stand alone in that type. 537 +fn ast_write nodes edit uchar * pos ulong bytes ulong v ulong to void 538 + for j ulong bytes 539 + put nodes add pos j uchar and shr v mul j 8 255 540 + end 541 +end 542 + 543 +fn mark_folded nodes edit uchar * base ulong typ ulong v ulong to void 544 + ast_write nodes add base node_type 4 typ 545 + put nodes add base node_known 1 546 + ast_write nodes add base node_value 8 v 547 +end 548 + 549 +fn fold_leaf nodes edit uchar * base ulong typ ulong report edit ulong 3 to ulong 550 + magnitude = ast_read nodes add base 32 8 551 + if eq osc_literal_fits typ magnitude 0 0 552 + put report 2 magnitude 553 + ret 2 554 + end 555 + mark_folded nodes base typ magnitude 556 + ret 0 557 +end 558 + 559 +fn fold_neg_literal nodes edit uchar * base ulong typ ulong report edit ulong 3 to ulong 560 + child = mul ast_read nodes add base 12 4 ast_stride 561 + magnitude = ast_read nodes add child 32 8 562 + put report 2 magnitude 563 + if and not alu_signed typ ne magnitude 0 564 + ret 3 565 + end 566 + if eq osc_literal_fits typ magnitude 1 0 567 + ret 4 568 + end 569 + mark_folded nodes child typ magnitude 570 + mark_folded nodes base typ sub ulong 0 magnitude 571 + ret 0 572 +end 573 + 574 +fn fold_unary nodes edit uchar * base ulong typ ulong to ulong 575 + input = ast_read nodes add mul ast_read nodes add base 12 4 ast_stride node_value 8 576 + op = ulong 2 577 + if eq ast_read nodes add base 2 2 43 578 + op = 1 579 + if and not alu_signed typ ne input 0 580 + ret 5 581 + end 582 + end 583 + value = new ulong 1 0 584 + if ne osc_alu_un op typ input value 0 585 + ret 6 586 + end 587 + mark_folded nodes base typ get value 0 588 + ret 0 589 +end 590 + 591 +fn fold_binary nodes edit uchar * base ulong typ ulong report edit ulong 3 to ulong 592 + left = ast_read nodes add mul ast_read nodes add base 12 4 ast_stride node_value 8 593 + right_id = ast_read nodes add base 16 4 594 + right = ast_read nodes add mul right_id ast_stride node_value 8 595 + tok = ast_read nodes add base 2 2 596 + value = new ulong 1 0 597 + status = osc_alu_bin osc_binary_opcode tok typ left right value 598 + if eq status 0 599 + mark_folded nodes base typ get value 0 600 + ret 0 601 + end 602 + if or eq status DIV_ZERO eq status BAD_SHIFT 603 + put report 1 right_id 604 + put report 2 right 605 + if eq status DIV_ZERO 606 + ret 7 607 + end 608 + ret 8 609 + end 610 + if eq status OVERFLOW 611 + if eq tok TOK_SHL 612 + ret 9 613 + end 614 + ret 10 615 + end 616 + ret 11 617 +end 618 + 619 +fn fold_enter nodes edit uchar * base ulong typ ulong report edit ulong 3 to ulong 620 + kind = ast_read nodes base 2 621 + if eq kind node_int 622 + ret fold_leaf nodes base typ report 623 + end 624 + if not or eq kind node_un eq kind node_bin 625 + ret 12 626 + end 627 + if and eq kind node_un eq ast_read nodes add base 2 2 43 628 + child = ast_read nodes add base 12 4 629 + if eq ast_read nodes mul child ast_stride 2 node_int 630 + ret fold_neg_literal nodes base typ report 631 + end 632 + end 633 + ret 13 634 +end 635 + 636 +export fn osc_fold_tree nodes edit uchar * typ ulong stack edit ulong * report edit ulong 3 to ulong 637 + id = get report 1 638 + if eq typ T_BOOL 639 + ret 1 640 + end 641 + depth = ulong 1 642 + put stack 0 mul id 4 643 + while ne depth 0 bound 65537 644 + top = sub depth 1 645 + base = mul shr get stack top 2 ast_stride 646 + put report 1 shr get stack top 2 647 + phase = and get stack top 3 648 + status = ulong 0 649 + if eq phase 0 650 + status = fold_enter nodes base typ report 651 + if eq status 13 652 + put stack top add get stack top 1 653 + put stack depth mul ast_read nodes add base 12 4 4 654 + depth = add depth 1 655 + continue 656 + end 657 + else 658 + if eq ast_read nodes base 2 node_un 659 + status = fold_unary nodes base typ 660 + else 661 + if eq phase 1 662 + put stack top add get stack top 1 663 + put stack depth mul ast_read nodes add base 16 4 4 664 + depth = add depth 1 665 + continue 666 + end 667 + status = fold_binary nodes base typ report 668 + end 669 + end 670 + if ne status 0 671 + ret status 672 + end 673 + depth = top 674 + end 675 + put report 0 ast_read nodes add mul id ast_stride node_value 8 676 + ret 0 677 +end 678 + 679 +fn infer_integer t ulong to bool 680 + ret and ge t T_U8 le t T_I64 681 +end 682 + 683 +fn infer_begin nodes view uchar * stack edit ulong * frame edit infer to ulong 684 + base = mul get frame root ast_stride 685 + op = ast_read nodes add base 2 2 686 + kind = ast_read nodes base 2 687 + a = ast_read nodes add base 12 4 688 + b = ast_read nodes add base 16 4 689 + put frame first a 690 + put frame second b 691 + put frame context 0 692 + if or eq op 51 or eq op 52 eq op 53 693 + put frame context T_BOOL 694 + else 695 + left_literal = osc_constant_tree nodes a 0 stack 696 + if eq kind node_cast 697 + if ne left_literal 0 698 + put frame site a 699 + ret 2 700 + end 701 + else 702 + if eq kind node_un 703 + if ne left_literal 0 704 + put frame context get frame want 705 + end 706 + else 707 + right_literal = osc_constant_tree nodes b 0 stack 708 + if or eq op TOK_SHL eq op TOK_SHR 709 + if ne left_literal 0 710 + put frame context get frame want 711 + end 712 + else 713 + if ne left_literal 0 714 + if ne right_literal 0 715 + if ne osc_compare_opcode op 0 716 + put frame site get frame root 717 + ret 3 718 + end 719 + put frame context get frame want 720 + else 721 + put frame first b 722 + put frame second a 723 + right_literal = 1 724 + end 725 + end 726 + end 727 + put frame literal2 right_literal 728 + end 729 + end 730 + end 731 + put frame site get frame first 732 + put frame phase 1 733 + ret 1 734 +end 735 + 736 +fn infer_after_first nodes view uchar * frame edit infer t ulong to ulong 737 + base = mul get frame root ast_stride 738 + kind = ast_read nodes base 2 739 + op = ast_read nodes add base 2 2 740 + put frame optype t 741 + put frame site get frame root 742 + if eq kind node_un 743 + if and ne op 51 not infer_integer t 744 + ret 6 745 + end 746 + put frame context t 747 + ret 0 748 + end 749 + if eq kind node_cast 750 + target = ast_read nodes add base node_type 4 751 + if not and infer_integer t infer_integer target 752 + ret 7 753 + end 754 + put frame context target 755 + ret 0 756 + end 757 + context = t 758 + if or eq op TOK_SHL eq op TOK_SHR 759 + if not infer_integer t 760 + ret 8 761 + end 762 + if eq get frame literal2 0 763 + context = 0 764 + end 765 + else 766 + if ne osc_compare_opcode op 0 767 + if and eq t T_BOOL ne get frame literal2 0 768 + put frame site get frame second 769 + ret 4 770 + end 771 + else 772 + if and eq t T_BOOL not or eq op 52 eq op 53 773 + put frame site get frame first 774 + ret 5 775 + end 776 + end 777 + end 778 + put frame site get frame second 779 + put frame context context 780 + put frame phase 2 781 + ret 1 782 +end 783 + 784 +fn infer_after_second nodes edit uchar * frame edit infer second_type ulong to ulong 785 + base = mul get frame root ast_stride 786 + op = ast_read nodes add base 2 2 787 + t = get frame optype 788 + put frame context t 789 + if or eq op 52 eq op 53 790 + ret 0 791 + end 792 + if ne osc_compare_opcode op 0 793 + put nodes add base node_flag uchar t 794 + put frame context T_BOOL 795 + ret 0 796 + end 797 + right = ast_read nodes add base 16 4 798 + rb = mul right ast_stride 799 + if or eq op TOK_SHL eq op TOK_SHR 800 + if not infer_integer second_type 801 + put frame optype second_type 802 + ret 9 803 + end 804 + if and ne get nodes add rb node_known 0 ge ast_read nodes add rb node_value 8 osc_alu_width t 805 + ret 10 806 + end 807 + else 808 + if not infer_integer t 809 + put frame site get frame root 810 + ret 11 811 + end 812 + if or eq op 45 eq op 46 813 + if and ne get nodes add rb node_known 0 eq ast_read nodes add rb node_value 8 0 814 + put frame site right 815 + ret 12 816 + end 817 + end 818 + end 819 + ret 0 820 +end 821 + 822 +export fn osc_infer_step nodes edit uchar * stack edit ulong * frame edit infer checked ulong to ulong 823 + phase = get frame phase 824 + if eq phase 0 825 + ret infer_begin nodes stack frame 826 + end 827 + if eq phase 1 828 + ret infer_after_first nodes frame checked 829 + end 830 + ret infer_after_second nodes frame checked 831 +end om/compiler/osc_scope.om new file mode 100644 @@ -0,0 +1,89 @@ 1 +note SPDX-License-Identifier: Apache-2.0 2 +note Visible OSC names are indexed by spelling. Declaration IDs live for the 3 +note whole function; leaving a block unlinks its entries in reverse order. 4 +note The zero bucket sentinel is distinct from symbol zero. 5 +note bridge c-type scopetab OscCheckedScope 6 +om2 7 + 8 +layout scopetab 3672 9 +field head ushort 256 at 0 little 10 +field prior ushort 480 at 512 little 11 +field bucket ushort 480 at 1472 little 12 +field visible ushort 480 at 2432 little 13 +field start ushort 136 at 3392 little 14 +field count uint at 3664 little 15 +field depth uint at 3668 little 16 +end 17 + 18 +fn name_bucket name view uchar * to ulong 19 + hash = ulong 5381 20 + for i ulong len name 21 + hash = xor mul hash 33 ulong get name i 22 + end 23 + ret and hash 255 24 +end 25 + 26 +export fn osc_scope_reset table edit scopetab to void 27 + for i ulong 256 28 + put table head i 0 29 + end 30 + put table count 0 31 + put table depth 0 32 +end 33 + 34 +export fn osc_scope_find table view scopetab symbols view uchar * stride ulong name view uchar * to long 35 + entry = ulong get table head name_bucket name 36 + while ne entry 0 bound 480 37 + id = sub entry 1 38 + base = mul id stride 39 + if eq get symbols add base len name 0 40 + equal = true 41 + for i ulong len name 42 + if ne get symbols add base i get name i 43 + equal = false 44 + break 45 + end 46 + end 47 + if equal 48 + ret long id 49 + end 50 + end 51 + entry = ulong get table prior id 52 + end 53 + ret -1 54 +end 55 + 56 +export fn osc_scope_bind table edit scopetab id ulong name view uchar * to void 57 +requires lt id 480 58 +requires le len name 63 59 + slot = name_bucket name 60 + put table prior id get table head slot 61 + put table bucket id ushort slot 62 + put table head slot ushort add id 1 63 + n = ulong get table count 64 + put table visible n ushort id 65 + put table count uint add n 1 66 +end 67 + 68 +export fn osc_scope_push table edit scopetab to ulong 69 + d = ulong get table depth 70 + if eq d 136 71 + ret 0 72 + end 73 + put table start d ushort get table count 74 + put table depth uint add d 1 75 + ret 1 76 +end 77 + 78 +export fn osc_scope_pop table edit scopetab to void 79 + d = sub ulong get table depth 1 80 + first = ulong get table start d 81 + n = ulong get table count 82 + while gt n first bound 480 83 + n = sub n 1 84 + id = ulong get table visible n 85 + put table head ulong get table bucket id get table prior id 86 + end 87 + put table depth uint d 88 + put table count uint first 89 +end om/compiler/osc_statement.om new file mode 100644 @@ -0,0 +1,337 @@ 1 +note SPDX-License-Identifier: Apache-2.0 2 +note Parse bounded loop headers. The maximum spelling after "for" is seven 3 +note tokens: NAME in - INT .. - INT. used identifies the first unconsumed 4 +note token even on refusal. Partial results mirror the source-order AST writes. 5 +note bridge c-type imprec OscImportParse 6 +note bridge c-type forrange OscForRange 7 +note bridge c-define OSC_FOR_WINDOW 7 8 +note bridge c-define OSC_FOR_NAME 1 9 +note bridge c-define OSC_FOR_IN 2 10 +note bridge c-define OSC_FOR_INT 3 11 +note bridge c-define OSC_FOR_OVERFLOW 4 12 +note bridge c-define OSC_FOR_DOTS 5 13 +note bridge c-define OSC_FOR_TRIPS 6 14 +note bridge c-define OSC_BOUND_KEYWORD 1 15 +note bridge c-define OSC_BOUND_INT 2 16 +note bridge c-define OSC_BOUND_RANGE 3 17 +note bridge c-define OSC_IMPORT_POSITION 1 18 +note bridge c-define OSC_IMPORT_NAME 2 19 +note bridge c-define OSC_IMPORT_FULL 3 20 +note bridge c-define OSC_IMPORT_DUP 4 21 +note bridge c-define OSC_IMPORT_SEMI 5 22 +note bridge c-type stmtplan OscStmtPlan 23 +note bridge c-define OSC_ST_CALL 70 24 +note bridge c-define OSC_ST_EXPR_A 71 25 +note bridge c-define OSC_ST_EXPR_B 72 26 +note bridge c-define OSC_ST_BORROW_A 73 27 +note bridge c-define OSC_ST_INDEX 74 28 +note bridge c-define OSC_ST_STORE 75 29 +om2 30 + 31 +layout forrange 24 32 +field used uint at 0 little 33 +field lower_at uint at 4 little 34 +field low ulong at 8 little 35 +field high ulong at 16 little 36 +end 37 + 38 +note The longest name-led statement is a subscripted store: index, ], =, 39 +note value, ;. Each step is punctuation to consume or a child AST operation. 40 +layout stmtplan 32 41 +field skip uint at 0 little 42 +field steps uint at 4 little 43 +field actions uint 5 at 8 little 44 +field nodekind uint at 28 little 45 +end 46 + 47 +layout imprec 20 48 +field started uint at 0 little 49 +field stride uint at 4 little 50 +field nameoff uint at 8 little 51 +field match uint at 12 little 52 +field nextkind uint at 16 little 53 +end 54 + 55 +const NAME ushort 1 56 +const INTEGER ushort 2 57 +const BOUND ushort 12 58 +const IN ushort 14 59 +const SEMI ushort 37 60 +const DOTDOT ushort 40 61 +const MINUS ushort 43 62 +const SIGN ulong 0x8000000000000000 63 + 64 +const OSC_FOR_NAME ulong 1 65 +const OSC_FOR_IN ulong 2 66 +const OSC_FOR_INT ulong 3 67 +const OSC_FOR_OVERFLOW ulong 4 68 +const OSC_FOR_DOTS ulong 5 69 +const OSC_FOR_TRIPS ulong 6 70 + 71 +fn range_end kinds view ushort 7 values view ulong 7 range edit forrange upper ulong to ulong 72 +pos = ulong get range used 73 +negative = eq get kinds pos MINUS 74 +if negative 75 + pos = add pos 1 76 + put range used uint pos 77 +end 78 +if ne get kinds pos INTEGER 79 + ret OSC_FOR_INT 80 +end 81 +v = get values pos 82 +limit = sub SIGN 1 83 +if negative 84 + limit = SIGN 85 +end 86 +if gt v limit 87 + ret OSC_FOR_OVERFLOW 88 +end 89 +if negative 90 + v = sub ulong 0 v 91 +end 92 +if ne upper 0 93 + put range high v 94 +else 95 + put range low v 96 +end 97 +put range used uint add pos 1 98 +ret 0 99 +end 100 + 101 +export fn osc_for_range kinds view ushort 7 values view ulong 7 limit ulong range edit forrange to ulong 102 +put range used 0 103 +put range lower_at 0 104 +put range low 0 105 +put range high 0 106 +if ne get kinds 0 NAME 107 + ret OSC_FOR_NAME 108 +end 109 +put range used 1 110 +if ne get kinds 1 IN 111 + ret OSC_FOR_IN 112 +end 113 +put range used 2 114 +put range lower_at 2 115 +status = range_end kinds values range 0 116 +if ne status 0 117 + ret status 118 +end 119 +pos = ulong get range used 120 +if ne get kinds pos DOTDOT 121 + ret OSC_FOR_DOTS 122 +end 123 +put range used uint add pos 1 124 +status = range_end kinds values range 1 125 +if ne status 0 126 + ret status 127 +end 128 +lo = get range low 129 +hi = get range high 130 +note Flipping the sign bit orders the signed ends. Subtract in ulong so that 131 +note the full INT64_MIN to INT64_MAX distance is defined before the limit test. 132 +if or lt xor hi SIGN xor lo SIGN gt sub hi lo limit 133 + ret OSC_FOR_TRIPS 134 +end 135 +ret 0 136 +end 137 + 138 +note Both while and arena require "bound INT". 139 +const OSC_BOUND_KEYWORD ulong 1 140 +const OSC_BOUND_INT ulong 2 141 +const OSC_BOUND_RANGE ulong 3 142 + 143 +export fn osc_read_bound keyword ulong kind ulong value ulong limit ulong to ulong 144 +if ne keyword ulong BOUND 145 + ret OSC_BOUND_KEYWORD 146 +end 147 +if ne kind ulong INTEGER 148 + ret OSC_BOUND_INT 149 +end 150 +if or eq value 0 gt value limit 151 + ret OSC_BOUND_RANGE 152 +end 153 +ret 0 154 +end 155 + 156 +fn same_import table view uchar * old ulong dest ulong width ulong to bool 157 +j = ulong 0 158 +while lt j width 159 + if ne get table add old j get table add dest j 160 + ret false 161 + end 162 + j = add j 1 163 +end 164 +ret eq get table add old width 0 165 +end 166 + 167 +fn record_import spelling view uchar * table edit uchar * dest ulong to ulong 168 +width = len spelling 169 +capacity = sub len table dest 170 +if ge width capacity 171 + width = sub capacity 1 172 +end 173 +i = ulong 0 174 +while lt i width 175 + put table add dest i get spelling i 176 + i = add i 1 177 +end 178 +put table add dest width 0 179 +ret width 180 +end 181 + 182 +note Match and record "import NAME ;". C owns the table and supplies its 183 +note byte layout. Installing the candidate name before duplicate/semicolon 184 +note checks preserves the visible partial declaration on either refusal. 185 +const OSC_IMPORT_POSITION ulong 1 186 +const OSC_IMPORT_NAME ulong 2 187 +const OSC_IMPORT_FULL ulong 3 188 +const OSC_IMPORT_DUP ulong 4 189 +const OSC_IMPORT_SEMI ulong 5 190 + 191 +export fn osc_read_import state edit imprec kind ulong spelling view uchar * table edit uchar * to ulong 192 +put state match 0 193 +stride = ulong get state stride 194 +nameoff = ulong get state nameoff 195 +if ne get state started 0 196 + ret OSC_IMPORT_POSITION 197 +end 198 +if ne kind ulong NAME 199 + ret OSC_IMPORT_NAME 200 +end 201 +note The caller passes populated entries plus one writable slot, or an empty 202 +note view when full. Each stored name is terminated within its own record. 203 +if eq len table 0 204 + ret OSC_IMPORT_FULL 205 +end 206 +slot = sub len table stride 207 +dest = add slot nameoff 208 +width = record_import spelling table dest 209 +base = ulong 0 210 +while lt base slot 211 + if same_import table add base nameoff dest width 212 + put state match uint div base stride 213 + ret OSC_IMPORT_DUP 214 + end 215 + base = add base stride 216 +end 217 +if ne get state nextkind uint SEMI 218 + ret OSC_IMPORT_SEMI 219 +end 220 +ret 0 221 +end 222 + 223 +note Render a contract one spelling at a time. Parentheses suppress their 224 +note adjacent space. Refusal leaves the already formatted prefix intact. 225 +export fn osc_clause_word dst edit uchar 256 used ulong prev ulong kind ulong word view uchar * to ulong 226 +space = and ne used 0 and ne prev 30 ne kind 31 227 +endpos = add used len word 228 +if space 229 + endpos = add endpos 1 230 +end 231 +if ge endpos len dst 232 + ret len dst 233 +end 234 +if space 235 + put dst used 32 236 + used = add used 1 237 +end 238 +i = ulong 0 239 +while lt i len word 240 + put dst add used i get word i 241 + i = add i 1 242 +end 243 +put dst endpos 0 244 +ret endpos 245 +end 246 + 247 +const LPAREN uint 30 248 +const RPAREN uint 31 249 +const LBRACK uint 34 250 +const RBRACK uint 35 251 +const ASSIGN uint 41 252 +const AMP uint 47 253 +const DOT uint 63 254 +const RETURN uint 15 255 +const RESERVED uint 3 256 +const CALL_CHILD uint 70 257 +const EXPR_A uint 71 258 +const EXPR_B uint 72 259 +const BORROW_A uint 73 260 +const INDEX_CHILD uint 74 261 +const STORE_VALUE uint 75 262 +note Node IDs come from OscNodeKind, checked in the parser bridge. 263 +const N_ASSIGN uint 8 264 +const N_STORE uint 9 265 +const N_RETURN uint 13 266 +const N_CALLSTMT uint 14 267 +const N_FSTORE uint 26 268 +const N_PFREE uint 31 269 + 270 +fn is_free word view uchar * to bool 271 +if ne len word 4 272 + ret false 273 +end 274 +ret and eq get word 0 102 and eq get word 1 114 and eq get word 2 101 eq get word 3 101 275 +end 276 + 277 +fn end_statement plan edit stmtplan count ulong to ulong 278 +put plan actions count uint SEMI 279 +put plan steps uint add count 1 280 +ret 0 281 +end 282 + 283 +fn rhs_action kind ulong to uint 284 +if eq uint kind AMP 285 + ret BORROW_A 286 +end 287 +ret EXPR_A 288 +end 289 + 290 +export fn osc_statement_plan plan edit stmtplan kind ulong nextkind ulong third ulong spelling view uchar * to ulong 291 +if eq uint kind RETURN 292 + put plan nodekind N_RETURN 293 + put plan skip 1 294 + if eq uint nextkind uint SEMI 295 + ret end_statement plan 0 296 + end 297 + put plan actions 0 rhs_action nextkind 298 + ret end_statement plan 1 299 +end 300 +if eq uint nextkind LPAREN 301 + put plan nodekind N_CALLSTMT 302 + put plan skip 0 303 + put plan actions 0 CALL_CHILD 304 + ret end_statement plan 1 305 +end 306 +if eq uint nextkind DOT 307 + if and eq uint third RESERVED is_free spelling 308 + put plan nodekind N_PFREE 309 + put plan skip 3 310 + put plan actions 0 LPAREN 311 + put plan actions 1 EXPR_A 312 + put plan actions 2 RPAREN 313 + ret end_statement plan 3 314 + end 315 + put plan nodekind N_FSTORE 316 + put plan skip 0 317 + put plan actions 0 ASSIGN 318 + put plan actions 1 EXPR_B 319 + ret end_statement plan 2 320 +end 321 +if eq uint nextkind ASSIGN 322 + put plan nodekind N_ASSIGN 323 + put plan skip 2 324 + put plan actions 0 rhs_action third 325 + ret end_statement plan 1 326 +end 327 +if eq uint nextkind LBRACK 328 + put plan nodekind N_STORE 329 + put plan skip 2 330 + put plan actions 0 INDEX_CHILD 331 + put plan actions 1 RBRACK 332 + put plan actions 2 ASSIGN 333 + put plan actions 3 STORE_VALUE 334 + ret end_statement plan 4 335 +end 336 +ret 1 337 +end om/compiler/osc_type.om new file mode 100644 @@ -0,0 +1,188 @@ 1 +note SPDX-License-Identifier: Apache-2.0 2 +note Parse a scalar, fixed array, reference body or parameter type. The longest 3 +note production is "& mut [ scalar ; INT ]". Input beyond EOF is padded with OT_EOF. 4 +note used counts consumed tokens, including on failure. Named references stop 5 +note at NAME so the caller can resolve it against the current declaration table. 6 +note bridge c-define OSC_TYPE_WINDOW 7 7 +note bridge c-define OSC_TYPE_SCALAR 1 8 +note bridge c-define OSC_TYPE_ARRAY 2 9 +note bridge c-define OSC_TYPE_REF_BODY 3 10 +note bridge c-define OSC_TYPE_PARAM 4 11 +note bridge c-define OSC_TYPE_EXPECT_SCALAR 1 12 +note bridge c-define OSC_TYPE_SLICE_ESCAPE 2 13 +note bridge c-define OSC_TYPE_EXPECT_OPEN 3 14 +note bridge c-define OSC_TYPE_EXPECT_SEMI 4 15 +note bridge c-define OSC_TYPE_EXPECT_LENGTH 5 16 +note bridge c-define OSC_TYPE_ZERO_LENGTH 6 17 +note bridge c-define OSC_TYPE_LONG_ARRAY 7 18 +note bridge c-define OSC_TYPE_EXPECT_CLOSE 8 19 +note bridge c-define OSC_TYPE_NAMED_REF 9 20 +note bridge c-define OSC_TYPE_BARE_NAME 10 21 +note bridge c-define OSC_TYPE_LOCAL_ONLY 11 22 +note bridge c-type typerec OscParsedType 23 +om2 24 + 25 +layout typerec 24 26 +field used uint at 0 little 27 +field scalar uint at 4 little 28 +field refkind uint at 8 little 29 +field elem uint at 12 little 30 +field count ulong at 16 little 31 +end 32 + 33 +note Token and type IDs are the public enums in osc_lex.h and osc_ir.h. 34 +const OT_NAME ushort 1 35 +const OT_INT ushort 2 36 +const OT_MUT ushort 6 37 +const OT_OWN ushort 7 38 +const OT_U8 ushort 21 39 +const OT_I64 ushort 28 40 +const OT_BOOL ushort 29 41 +const OT_LBRACK ushort 34 42 +const OT_RBRACK ushort 35 43 +const OT_SEMI ushort 37 44 +const OT_AMP ushort 47 45 +const OT_HANDLE ushort 66 46 +const OT_POOL ushort 65 47 +const OT_BYTES ushort 68 48 +const OT_CELLS ushort 69 49 +const OSC_TYPE_SCALAR ulong 1 50 +const OSC_TYPE_ARRAY ulong 2 51 +const OSC_TYPE_REF_BODY ulong 3 52 +const OSC_TYPE_PARAM ulong 4 53 +const OSC_TYPE_EXPECT_SCALAR ulong 1 54 +const OSC_TYPE_SLICE_ESCAPE ulong 2 55 +const OSC_TYPE_EXPECT_OPEN ulong 3 56 +const OSC_TYPE_EXPECT_SEMI ulong 4 57 +const OSC_TYPE_EXPECT_LENGTH ulong 5 58 +const OSC_TYPE_ZERO_LENGTH ulong 6 59 +const OSC_TYPE_LONG_ARRAY ulong 7 60 +const OSC_TYPE_EXPECT_CLOSE ulong 8 61 +const OSC_TYPE_NAMED_REF ulong 9 62 +const OSC_TYPE_BARE_NAME ulong 10 63 +const OSC_TYPE_LOCAL_ONLY ulong 11 64 +const TYPE_BOOL uint 1 65 +const TYPE_U8 uint 2 66 +const TYPE_REF uint 10 67 +const TYPE_BYTES uint 11 68 +const TYPE_CELLS uint 12 69 +const REF_OWN uint 1 70 +const REF_SHARED uint 2 71 +const REF_MUT uint 3 72 + 73 +fn type_scalar kind ushort to uint 74 +if eq kind OT_BOOL 75 + ret TYPE_BOOL 76 +end 77 +if and ge kind OT_U8 le kind OT_I64 78 + ret add TYPE_U8 uint sub kind OT_U8 79 +end 80 +ret 0 81 +end 82 + 83 +fn type_scalar_error kind ushort to ulong 84 +if or eq kind OT_BYTES eq kind OT_CELLS 85 + ret OSC_TYPE_SLICE_ESCAPE 86 +end 87 +ret OSC_TYPE_EXPECT_SCALAR 88 +end 89 + 90 +fn type_array kinds view ushort 7 values view ulong 7 pos ulong limit ulong result edit typerec to ulong 91 +if ne get kinds pos OT_LBRACK 92 + ret OSC_TYPE_EXPECT_OPEN 93 +end 94 +pos = add pos 1 95 +put result used uint pos 96 +kind = get kinds pos 97 +scalar = type_scalar kind 98 +if eq scalar 0 99 + ret type_scalar_error kind 100 +end 101 +pos = add pos 1 102 +put result used uint pos 103 +if ne get kinds pos OT_SEMI 104 + ret OSC_TYPE_EXPECT_SEMI 105 +end 106 +pos = add pos 1 107 +put result used uint pos 108 +if ne get kinds pos OT_INT 109 + ret OSC_TYPE_EXPECT_LENGTH 110 +end 111 +size = get values pos 112 +if eq size 0 113 + ret OSC_TYPE_ZERO_LENGTH 114 +end 115 +if gt size limit 116 + ret OSC_TYPE_LONG_ARRAY 117 +end 118 +pos = add pos 1 119 +put result used uint pos 120 +if ne get kinds pos OT_RBRACK 121 + ret OSC_TYPE_EXPECT_CLOSE 122 +end 123 +put result used uint add pos 1 124 +put result scalar TYPE_REF 125 +put result elem scalar 126 +put result count size 127 +ret 0 128 +end 129 + 130 +export fn osc_read_type kinds view ushort 7 values view ulong 7 form ulong refkind ulong limit ulong result edit typerec to ulong 131 +put result used 0 132 +put result scalar 0 133 +put result refkind uint refkind 134 +put result elem 0 135 +put result count 0 136 +pos = ulong 0 137 +kind = get kinds pos 138 +if eq form OSC_TYPE_PARAM 139 + if eq kind OT_OWN 140 + put result refkind REF_OWN 141 + pos = 1 142 + form = OSC_TYPE_REF_BODY 143 + end 144 + if eq kind OT_AMP 145 + put result refkind REF_SHARED 146 + pos = 1 147 + if eq get kinds pos OT_MUT 148 + put result refkind REF_MUT 149 + pos = 2 150 + end 151 + form = OSC_TYPE_REF_BODY 152 + end 153 + put result used uint pos 154 + if eq form OSC_TYPE_PARAM 155 + if eq kind OT_NAME 156 + ret OSC_TYPE_BARE_NAME 157 + end 158 + if or eq kind OT_HANDLE eq kind OT_POOL 159 + ret OSC_TYPE_LOCAL_ONLY 160 + end 161 + if or eq kind OT_BYTES eq kind OT_CELLS 162 + if eq kind OT_BYTES 163 + put result scalar TYPE_BYTES 164 + else 165 + put result scalar TYPE_CELLS 166 + end 167 + put result used 1 168 + ret 0 169 + end 170 + end 171 +end 172 +if eq form OSC_TYPE_REF_BODY 173 + if eq get kinds pos OT_NAME 174 + ret OSC_TYPE_NAMED_REF 175 + end 176 + form = OSC_TYPE_ARRAY 177 +end 178 +if eq form OSC_TYPE_ARRAY 179 + ret type_array kinds values pos limit result 180 +end 181 +scalar = type_scalar kind 182 +if eq scalar 0 183 + ret type_scalar_error kind 184 +end 185 +put result scalar scalar 186 +put result used 1 187 +ret 0 188 +end om/units.sh @@ -28,7 +28,7 @@ NATIVE_PIN=`2c1bf63798336e899704217d98f909b31e567289650751a55d83255c7eb8f27d` 28 28 ROOT=$(cd "$(dirname "$0")/.." && pwd) 29 29 # One generated library for all units: the bindings share one ABI runtime (ombr_enter). 30 30 # om/encoder/bw_enc_sm121.om: the sm_121 instruction encoder, twin of aien-dev/CUDApp's (mk/om-encoder.mk). 31 -UNITS="${OMEGA_UNITS:-om/sha256/sha256-om2.om om/blake3/b3unit.om om/encoder/bw_enc_sm121.om om/gpu/bw_qmd.om om/gpu/bw_sched.om om/gpu/q38_plan.om om/gpu/cg_pf.om om/gpu/cg_bf16.om om/gpu/cg_gemm.om om/gpu/cg_moe2.om om/gpu/cg_moe.om om/gpu/cg_qmma.om om/gpu/cg_pfhost.om om/gpu/cg_gpu_attn.om om/runtime/rx_regulate.om om/runtime/rx_mid.om om/runtime/rx_cortex_rec.om om/runtime/rx_plan_core.om om/runtime/rx_projection.om om/runtime/rx_capq_core.om om/runtime/rx_costmodel_core.om om/runtime/rx_route_core.om om/runtime/rx_world_core.om om/runtime/rx_skillroute_core.om om/runtime/rx_fusion_core.om om/compiler/osc_literal.om om/compiler/osc_ownership.om}" 31 +UNITS="${OMEGA_UNITS:-om/sha256/sha256-om2.om om/blake3/b3unit.om om/encoder/bw_enc_sm121.om om/gpu/bw_qmd.om om/gpu/bw_sched.om om/gpu/q38_plan.om om/gpu/cg_pf.om om/gpu/cg_bf16.om om/gpu/cg_gemm.om om/gpu/cg_moe2.om om/gpu/cg_moe.om om/gpu/cg_qmma.om om/gpu/cg_pfhost.om om/gpu/cg_gpu_attn.om om/runtime/rx_regulate.om om/runtime/rx_mid.om om/runtime/rx_cortex_rec.om om/runtime/rx_plan_core.om om/runtime/rx_projection.om om/runtime/rx_capq_core.om om/runtime/rx_costmodel_core.om om/runtime/rx_route_core.om om/runtime/rx_world_core.om om/runtime/rx_skillroute_core.om om/runtime/rx_fusion_core.om om/compiler/osc_literal.om om/compiler/osc_type.om om/compiler/osc_expr.om om/compiler/osc_scalar.om om/compiler/osc_a64_fields.om om/compiler/osc_statement.om om/compiler/osc_ownership.om om/compiler/osc_scope.om om/compiler/osc_pool.om}" 32 32 # The units the freestanding GPU link needs (the encoder, codegen, matmul and realize files hash with sha256_*; qmd packs QMDs). 33 33 FS_UNITS="om/sha256/sha256-om2.om om/gpu/bw_qmd.om om/gpu/cg_gpu_attn.om" 34 34 DEST="${OMEGA_UNITS_DEST:-$ROOT/src}" src/compiler/osc_a64.c @@ -21,6 +21,7 @@ 21 21 * range-checked and an out-of-range or wrong-kind operand is refused. 22 22 */ 23 23 #include "osc_a64.h" 24 +#include "omega_api_decl.h" 24 25 25 26 #include 26 27 #include @@ -137,8 +138,6 @@ static int unreg(int kind, uint32_t f) { 137 138 return 255; /* not encodable: re-encode check refuses */ 138 139 } 139 140 140 -static int is_sp(int r) { return r == OSC_A64_SP; } 141 - 142 141 int osc_a64_encode(const OscA64Insn *in, uint32_t *word, char *err, size_t n) { 143 142 if (!in || !word) return fail(err, n, "null"); 144 143 int op = in->op; @@ -146,7 +145,7 @@ int osc_a64_encode(const OscA64Insn *in, uint32_t *word, char *err, size_t n) { 146 145 return fail(err, n, "unknown op %d", op); 147 146 const OpInfo *oi = &OPS[op]; 148 147 const char *nm = oi->name; 149 - uint32_t w = oi->base, rd = 0, rn = 0, rm = 0, ra = 0; 148 + uint32_t rd = 0, rn = 0, rm = 0, ra = 0; 150 149 /* unused register / field positions must be zero (canonical form) */ 151 150 if (oi->kd == K_NONE && in->rd) return fail(err, n, "%s: rd unused but set", nm); 152 151 if (oi->kn == K_NONE && in->rn) return fail(err, n, "%s: rn unused but set", nm); @@ -156,95 +155,53 @@ int osc_a64_encode(const OscA64Insn *in, uint32_t *word, char *err, size_t n) { 156 155 if (oi->kn != K_NONE && regfield(oi->kn, in->rn, &rn, "rn", nm, err, n)) return -1; 157 156 if (oi->km != K_NONE && regfield(oi->km, in->rm, &rm, "rm", nm, err, n)) return -1; 158 157 if (oi->ka != K_NONE && regfield(oi->ka, in->ra, &ra, "ra", nm, err, n)) return -1; 159 - int uses_shift = oi->cls == CLS_RRR_SH; 160 - int uses_cond = oi->cls == CLS_CSINC || oi->cls == CLS_BCOND; 161 - int uses_imm2 = oi->cls == CLS_RI || oi->cls == CLS_BFM || oi->cls == CLS_MOV16; 162 - int uses_imm = !(oi->cls == CLS_R4 || oi->cls == CLS_MULH || oi->cls == CLS_R3 || 163 - oi->cls == CLS_CSINC || oi->cls == CLS_BREG); 164 - if (!uses_shift && in->shift) return fail(err, n, "%s: shift unused but set", nm); 165 - if (!uses_cond && in->cond) return fail(err, n, "%s: cond unused but set", nm); 166 - if (!uses_imm2 && in->imm2) return fail(err, n, "%s: imm2 unused but set", nm); 167 - if (!uses_imm && in->imm) return fail(err, n, "%s: imm unused but set", nm); 168 - int64_t imm = in->imm, imm2 = in->imm2; 169 - 170 - switch (oi->cls) { 171 - case CLS_RRR_SH: 172 - if (in->shift > OSC_A64_ASR) return fail(err, n, "%s: shift type %u refused", nm, in->shift); 173 - if (imm < 0 || imm > 63) return fail(err, n, "%s: shift amount %lld out of range", nm, (long long)imm); 174 - w |= ((uint32_t)in->shift << 22) | (rm << 16) | ((uint32_t)imm << 10) | (rn << 5) | rd; 175 - break; 176 - case CLS_RI: 177 - if (imm < 0 || imm > 4095) return fail(err, n, "%s: imm12 %lld out of range", nm, (long long)imm); 178 - if (imm2 != 0 && imm2 != 1) return fail(err, n, "%s: lsl12 flag %lld invalid", nm, (long long)imm2); 179 - w |= ((uint32_t)imm2 << 22) | ((uint32_t)imm << 10) | (rn << 5) | rd; 180 - break; 181 - case CLS_R4: 182 - w |= (rm << 16) | (ra << 10) | (rn << 5) | rd; 183 - break; 184 - case CLS_MULH: 185 - case CLS_R3: 186 - w |= (rm << 16) | (rn << 5) | rd; 187 - break; 188 - case CLS_BFM: 189 - if (imm < 0 || imm > 63) return fail(err, n, "%s: immr %lld out of range", nm, (long long)imm); 190 - if (imm2 < 0 || imm2 > 63) return fail(err, n, "%s: imms %lld out of range", nm, (long long)imm2); 191 - w |= ((uint32_t)imm << 16) | ((uint32_t)imm2 << 10) | (rn << 5) | rd; 192 - break; 193 - case CLS_CSINC: 194 - if (in->cond > OSC_A64_AL) return fail(err, n, "%s: cond %u refused", nm, in->cond); 195 - w |= (rm << 16) | ((uint32_t)in->cond << 12) | (rn << 5) | rd; 196 - break; 197 - case CLS_MOV16: 198 - if (imm < 0 || imm > 0xFFFF) return fail(err, n, "%s: imm16 %lld out of range", nm, (long long)imm); 199 - if (imm2 != 0 && imm2 != 16 && imm2 != 32 && imm2 != 48) 200 - return fail(err, n, "%s: shift %lld invalid", nm, (long long)imm2); 201 - w |= ((uint32_t)(imm2 / 16) << 21) | ((uint32_t)imm << 5) | rd; 202 - break; 203 - case CLS_MEM: 204 - if (imm < 0 || imm > 4095 * 8 || (imm & 7)) 205 - return fail(err, n, "%s: offset %lld not a multiple of 8 in 0..32760", nm, (long long)imm); 206 - w |= ((uint32_t)(imm / 8) << 10) | (rn << 5) | rd; 207 - break; 208 - case CLS_PAIR: { 209 - if (imm < -512 || imm > 504 || (imm & 7)) 210 - return fail(err, n, "%s: offset %lld not a multiple of 8 in -512..504", nm, (long long)imm); 211 - int wb = op == OSC_A64_STP_PRE || op == OSC_A64_STP_POST || op == OSC_A64_LDP_PRE || op == OSC_A64_LDP_POST; 212 - int load = op == OSC_A64_LDP_OFF || op == OSC_A64_LDP_PRE || op == OSC_A64_LDP_POST; 213 - if (wb && !is_sp(in->rn) && (in->rn == in->rd || in->rn == in->ra)) 214 - return fail(err, n, "%s: writeback base equals a transfer register (unpredictable)", nm); 215 - if (load && in->rd == in->ra) 216 - return fail(err, n, "%s: Rt == Rt2 (unpredictable)", nm); 217 - uint32_t i7 = (uint32_t)((imm / 8) & 0x7F); 218 - w |= (i7 << 15) | (ra << 10) | (rn << 5) | rd; 219 - break; 220 - } 221 - case CLS_B26: 222 - if ((imm & 3) || imm < -(1LL << 27) || imm > (1LL << 27) - 4) 223 - return fail(err, n, "%s: offset %lld out of range or misaligned", nm, (long long)imm); 224 - w |= (uint32_t)((imm / 4) & 0x03FFFFFF); 225 - break; 226 - case CLS_BCOND: 227 - if (in->cond > 13) return fail(err, n, "%s: cond %u refused (AL/NV not used)", nm, in->cond); 228 - if ((imm & 3) || imm < -(1LL << 20) || imm > (1LL << 20) - 4) 229 - return fail(err, n, "%s: offset %lld out of range or misaligned", nm, (long long)imm); 230 - w |= ((uint32_t)((imm / 4) & 0x7FFFF) << 5) | in->cond; 231 - break; 232 - case CLS_CB: 233 - if ((imm & 3) || imm < -(1LL << 20) || imm > (1LL << 20) - 4) 234 - return fail(err, n, "%s: offset %lld out of range or misaligned", nm, (long long)imm); 235 - w |= ((uint32_t)((imm / 4) & 0x7FFFF) << 5) | rd; 236 - break; 237 - case CLS_BREG: 238 - w |= rn << 5; 239 - break; 240 - case CLS_BRK: 241 - if (imm < 0 || imm > 0xFFFF) return fail(err, n, "%s: imm16 %lld out of range", nm, (long long)imm); 242 - w |= (uint32_t)imm << 5; 243 - break; 244 - default: 245 - return fail(err, n, "bad class"); 158 + const OscA64Fields f = {.rd = rd, .rn = rn, .rm = rm, .ra = ra, .shift = in->shift, 159 + .cond = in->cond, .imm = in->imm, .imm2 = in->imm2}; 160 + int writeback = op == OSC_A64_STP_PRE || op == OSC_A64_STP_POST || op == OSC_A64_LDP_PRE || op == OSC_A64_LDP_POST; 161 + int loadpair = op == OSC_A64_LDP_OFF || op == OSC_A64_LDP_PRE || op == OSC_A64_LDP_POST; 162 + switch (osc_a64_check_fields(oi->cls, &f, writeback, loadpair)) { 163 + case 0: break; 164 + case OSC_A64_ERR_UNUSED_SHIFT: 165 + return fail(err, n, "%s: shift unused but set", nm); 166 + case OSC_A64_ERR_UNUSED_COND: 167 + return fail(err, n, "%s: cond unused but set", nm); 168 + case OSC_A64_ERR_UNUSED_IMM2: 169 + return fail(err, n, "%s: imm2 unused but set", nm); 170 + case OSC_A64_ERR_UNUSED_IMM: 171 + return fail(err, n, "%s: imm unused but set", nm); 172 + case OSC_A64_ERR_SHIFT_KIND: 173 + return fail(err, n, "%s: shift type %u refused", nm, in->shift); 174 + case OSC_A64_ERR_SHIFT_AMOUNT: 175 + return fail(err, n, "%s: shift amount %lld out of range", nm, (long long)in->imm); 176 + case OSC_A64_ERR_IMM12: 177 + return fail(err, n, "%s: imm12 %lld out of range", nm, (long long)in->imm); 178 + case OSC_A64_ERR_LSL12: 179 + return fail(err, n, "%s: lsl12 flag %lld invalid", nm, (long long)in->imm2); 180 + case OSC_A64_ERR_IMMR: 181 + return fail(err, n, "%s: immr %lld out of range", nm, (long long)in->imm); 182 + case OSC_A64_ERR_IMMS: 183 + return fail(err, n, "%s: imms %lld out of range", nm, (long long)in->imm2); 184 + case OSC_A64_ERR_COND: 185 + return fail(err, n, "%s: cond %u refused", nm, in->cond); 186 + case OSC_A64_ERR_IMM16: 187 + return fail(err, n, "%s: imm16 %lld out of range", nm, (long long)in->imm); 188 + case OSC_A64_ERR_MOV_SHIFT: 189 + return fail(err, n, "%s: shift %lld invalid", nm, (long long)in->imm2); 190 + case OSC_A64_ERR_MEM_OFFSET: 191 + return fail(err, n, "%s: offset %lld not a multiple of 8 in 0..32760", nm, (long long)in->imm); 192 + case OSC_A64_ERR_PAIR_OFFSET: 193 + return fail(err, n, "%s: offset %lld not a multiple of 8 in -512..504", nm, (long long)in->imm); 194 + case OSC_A64_ERR_WRITEBACK_ALIAS: 195 + return fail(err, n, "%s: writeback base equals a transfer register (unpredictable)", nm); 196 + case OSC_A64_ERR_LOAD_ALIAS: 197 + return fail(err, n, "%s: Rt == Rt2 (unpredictable)", nm); 198 + case OSC_A64_ERR_BRANCH_OFFSET: 199 + return fail(err, n, "%s: offset %lld out of range or misaligned", nm, (long long)in->imm); 200 + case OSC_A64_ERR_BRANCH_COND: 201 + return fail(err, n, "%s: cond %u refused (AL/NV not used)", nm, in->cond); 202 + default: return fail(err, n, "bad class"); 246 203 } 247 - *word = w; 204 + *word = (uint32_t)osc_a64_pack_fields(oi->cls, oi->base, &f); 248 205 return 0; 249 206 } 250 207 @@ -252,11 +209,6 @@ int osc_a64_reencode(const OscA64Insn *in, uint32_t *word) { 252 209 return osc_a64_encode(in, word, NULL, 0); 253 210 } 254 211 255 -static int64_t sext(uint32_t v, unsigned bits) { 256 - uint64_t m = 1ULL << (bits - 1); 257 - return (int64_t)(((uint64_t)v ^ m) - m); 258 -} 259 - 260 212 int osc_a64_decode(uint32_t w, OscA64Insn *out) { 261 213 for (int op = 1; op < OSC_A64_NOPS; op++) { 262 214 const OpInfo *oi = &OPS[op]; @@ -265,25 +217,16 @@ int osc_a64_decode(uint32_t w, OscA64Insn *out) { 265 217 OscA64Insn d; 266 218 memset(&d, 0, sizeof d); 267 219 d.op = (uint8_t)op; 268 - uint32_t f_rd = w & 31, f_rn = (w >> 5) & 31, f_rm = (w >> 16) & 31, f_ra = (w >> 10) & 31; 269 - if (oi->kd != K_NONE) d.rd = (uint8_t)unreg(oi->kd, f_rd); 270 - if (oi->kn != K_NONE) d.rn = (uint8_t)unreg(oi->kn, f_rn); 271 - if (oi->km != K_NONE) d.rm = (uint8_t)unreg(oi->km, f_rm); 272 - if (oi->ka != K_NONE) d.ra = (uint8_t)unreg(oi->ka, f_ra); 273 - switch (oi->cls) { 274 - case CLS_RRR_SH: d.shift = (uint8_t)((w >> 22) & 3); d.imm = (w >> 10) & 63; break; 275 - case CLS_RI: d.imm = (w >> 10) & 0xFFF; d.imm2 = (w >> 22) & 1; break; 276 - case CLS_BFM: d.imm = (w >> 16) & 63; d.imm2 = (w >> 10) & 63; break; 277 - case CLS_CSINC: d.cond = (uint8_t)((w >> 12) & 15); break; 278 - case CLS_MOV16: d.imm = (w >> 5) & 0xFFFF; d.imm2 = ((w >> 21) & 3) * 16; break; 279 - case CLS_MEM: d.imm = (int64_t)((w >> 10) & 0xFFF) * 8; break; 280 - case CLS_PAIR: d.imm = sext((w >> 15) & 0x7F, 7) * 8; break; 281 - case CLS_B26: d.imm = sext(w & 0x03FFFFFF, 26) * 4; break; 282 - case CLS_BCOND: d.imm = sext((w >> 5) & 0x7FFFF, 19) * 4; d.cond = (uint8_t)(w & 15); break; 283 - case CLS_CB: d.imm = sext((w >> 5) & 0x7FFFF, 19) * 4; break; 284 - case CLS_BRK: d.imm = (w >> 5) & 0xFFFF; break; 285 - default: break; 286 - } 220 + OscA64Fields f; 221 + osc_a64_unpack_fields(oi->cls, w, &f); 222 + if (oi->kd != K_NONE) d.rd = (uint8_t)unreg(oi->kd, f.rd); 223 + if (oi->kn != K_NONE) d.rn = (uint8_t)unreg(oi->kn, f.rn); 224 + if (oi->km != K_NONE) d.rm = (uint8_t)unreg(oi->km, f.rm); 225 + if (oi->ka != K_NONE) d.ra = (uint8_t)unreg(oi->ka, f.ra); 226 + d.shift = (uint8_t)f.shift; 227 + d.cond = (uint8_t)f.cond; 228 + d.imm = f.imm; 229 + d.imm2 = f.imm2; 287 230 uint32_t re; 288 231 if (osc_a64_encode(&d, &re, NULL, 0) != 0 || re != w) continue; 289 232 if (out) *out = d; src/compiler/osc_check.c @@ -50,14 +50,8 @@ typedef struct { 50 50 uint32_t region; 51 51 uint16_t cap, used; 52 52 int cond_depth; 53 - /* OSC-3 item 2. SK_POOL: cap = K slots, gbase = declared generation base, 54 - * dallocs = definite allocations so far, dlive = definite live slots (a 55 - * lower bound; valid while cap_off == 0), cap_off = 1 once a free that is 56 - * not definite was seen. SK_HANDLE: pool = its pool symbol, prov = the 57 - * static provenance it holds (-1 unknown). */ 58 - uint64_t gbase, dallocs; 59 - uint16_t dlive; 60 - uint8_t cap_off; 53 + OscCheckedPool slots; /* SK_POOL: definite capacity and generation accounting */ 54 + /* SK_HANDLE: pool symbol and static allocation provenance (-1 unknown). */ 61 55 int pool, prov; 62 56 int decl; /* OSC-3 item 3: declaring AST node (owners: carries the drop-flag mark) */ 63 57 } Sym; @@ -85,11 +79,15 @@ typedef struct { 85 79 int nobj, nbor, nsym; 86 80 } Snap; 87 81 88 -#define MAX_SCOPES (OSC_AST_MAX_DEPTH * 2 + 8) 82 +_Static_assert(sizeof(((OscCheckedScope *)0)->visible) / sizeof(uint16_t) == OSC_CHECK_MAX_SYMS, "OSC scope symbol capacity"); 83 +_Static_assert(sizeof(((OscCheckedScope *)0)->start) / sizeof(uint16_t) == OSC_AST_MAX_DEPTH * 2 + 8, "OSC scope depth"); 84 +_Static_assert(offsetof(Sym, name) == 0 && sizeof(((Sym *)0)->name) == OSC_LEX_NAME_MAX + 1, "OSC symbol name layout"); 89 85 90 86 typedef struct { 91 87 const OscAlloc *a; /* every heap byte of the checker (state snapshots, this struct) comes from here */ 92 88 OscAst *ast; 89 + uint64_t *expr_work; 90 + size_t expr_words; 93 91 OscDiag *d; 94 92 OscTrace *tr; 95 93 int fi; /* current function index */ @@ -101,10 +99,7 @@ typedef struct { 101 99 int nobj; 102 100 Bor bor[OSC_CHECK_MAX_BORS]; 103 101 int nbor; 104 - int vis[OSC_CHECK_MAX_SYMS]; 105 - int nvis; 106 - int scope_start[MAX_SCOPES]; 107 - int depth; 102 + OscCheckedScope names; 108 103 int loop_depth; 109 104 int term; /* current path has returned */ 110 105 char sobj[64]; /* statement object (diagnostics) */ @@ -395,9 +390,8 @@ static int do_move(C *c, int s, int dest, uint32_t line, uint32_t col) 395 390 /* ------------------------------------------------------------ scopes */ 396 391 static int lookup(C *c, const char *name) 397 392 { 398 - for (int i = c->nvis - 1; i >= 0; i--) 399 - if (strcmp(c->sym[c->vis[i]].name, name) == 0) return c->vis[i]; 400 - return -1; 393 + return (int)osc_scope_find(&c->names, (const uint8_t *)c->sym, sizeof c->sym, sizeof(Sym), 394 + (const uint8_t *)name, strlen(name)); 401 395 } 402 396 403 397 static int declare(C *c, const OscNode *n, uint8_t kind, const OscType *ty, int mut) @@ -423,14 +417,13 @@ static int declare(C *c, const OscNode *n, uint8_t kind, const OscType *ty, int 423 417 y->loop_depth = c->loop_depth; 424 418 y->obj = y->bor = -1; 425 419 y->decl = (int)(n - c->ast->nodes); 426 - c->vis[c->nvis++] = s; 420 + osc_scope_bind(&c->names, (uint64_t)s, (const uint8_t *)y->name, strlen(y->name)); 427 421 return s; 428 422 } 429 423 430 424 static int push_scope(C *c, uint32_t line) 431 425 { 432 - if (c->depth >= MAX_SCOPES) return cap_fail(c, line, "scope depth"); 433 - c->scope_start[c->depth++] = c->nvis; 426 + if (!osc_scope_push(&c->names)) return cap_fail(c, line, "scope depth"); 434 427 return 0; 435 428 } 436 429 @@ -460,11 +453,11 @@ static int scope_exit_events(C *c, int levels, uint32_t line, OscNode *rec) 460 453 rec->rel_start = a->nrel; 461 454 rec->rel_count = 0; 462 455 for (int lv = 0; lv < levels; lv++) { 463 - int d = c->depth - 1 - lv; 456 + int d = c->names.depth - 1 - lv; 464 457 /* each level visits only its own symbols (inner levels were done) */ 465 - int hi = lv == 0 ? c->nvis : c->scope_start[d + 1]; 466 - for (int i = hi - 1; i >= c->scope_start[d]; i--) { 467 - int s = c->vis[i]; 458 + int hi = lv == 0 ? c->names.count : c->names.start[d + 1]; 459 + for (int i = hi - 1; i >= c->names.start[d]; i--) { 460 + int s = c->names.visible[i]; 468 461 Sym *y = &c->sym[s]; 469 462 if (y->kind == SK_BORROW) { 470 463 if (y->bor >= 0 && c->bor[y->bor].live) end_bor(c, y->bor, line); @@ -497,8 +490,7 @@ static int scope_exit_events(C *c, int levels, uint32_t line, OscNode *rec) 497 490 498 491 static void pop_scope(C *c) 499 492 { 500 - c->depth--; 501 - c->nvis = c->scope_start[c->depth]; 493 + osc_scope_pop(&c->names); 502 494 } 503 495 504 496 /* ------------------------------------------------------------ state snapshots */ @@ -559,62 +551,25 @@ static void snap_restore(C *c, const Snap *s) 559 551 } 560 552 561 553 /* ------------------------------------------------------------ integer helpers */ 562 -typedef __int128 i128; 563 554 564 -static int fits(OscScalar t, i128 v) 565 -{ 566 - unsigned w = osc_scalar_width(t); 567 - if (osc_scalar_signed(t)) { 568 - i128 lo = -((i128)1 << (w - 1)), hi = ((i128)1 << (w - 1)) - 1; 569 - return v >= lo && v <= hi; 570 - } 571 - return v >= 0 && v <= (((i128)1 << w) - 1); 572 -} 573 -static i128 wrapu(OscScalar t, i128 v) 574 -{ 575 - unsigned w = osc_scalar_width(t); 576 - unsigned __int128 m = (((unsigned __int128)1) << w) - 1; 577 - return (i128)((unsigned __int128)v & m); 578 -} 579 -static uint64_t canon(OscScalar t, i128 v) 580 -{ 581 - if (t == OSC_T_BOOL) return v ? 1 : 0; 582 - if (osc_scalar_signed(t)) return (uint64_t)(int64_t)v; 583 - return (uint64_t)wrapu(t, v); 584 -} 555 +/* The expression walkers read parsed OSC nodes directly. Guard every ABI 556 + * field they consume; diagnostic strings continue to use the host API. */ 557 +_Static_assert(OSC_AST_MAX_NODES == 16384 && sizeof(OscNode) == 104 && offsetof(OscNode, kind) == 0 && offsetof(OscNode, op) == 2 && 558 + offsetof(OscNode, a) == 12 && offsetof(OscNode, b) == 16 && offsetof(OscNode, ival) == 32 && 559 + offsetof(OscNode, ty.s) == 56 && sizeof(OscScalar) == 4 && offsetof(OscNode, flag) == 73 && 560 + offsetof(OscNode, is_const) == 75 && offsetof(OscNode, cval) == 80 && offsetof(OscNode, sym) == 88, 561 + "OSC scalar walkers must match the native AST layout"); 562 +_Static_assert(ON_INT == 15 && ON_BOOL == 16 && ON_NAME == 17 && ON_BIN == 21 && ON_UN == 22 && ON_CAST == 23 && 563 + OT_TILDE == 50 && OT_BANG == 51 && OT_ANDAND == 52 && OT_OROR == 53, "OSC scalar walker node tags"); 585 564 586 -static int is_shift(int op) { return op == OT_SHL || op == OT_SHR; } 587 -static int is_arith(int op) 588 -{ 589 - return op == OT_PLUS || op == OT_MINUS || op == OT_STAR || op == OT_SLASH || op == OT_PERCENT || op == OT_AMP || 590 - op == OT_PIPE || op == OT_CARET; 591 -} 592 -static int is_cmpop(int op) { return op == OT_EQ || op == OT_NE || op == OT_LT || op == OT_LE || op == OT_GT || op == OT_GE; } 593 - 594 -/* type comes only from context */ 595 565 static int ctxfree(C *c, int i) 596 566 { 597 - const OscNode *n = NODE(i); 598 - switch (n->kind) { 599 - case ON_INT: return 1; 600 - case ON_UN: return n->op != OT_BANG && ctxfree(c, n->a); 601 - case ON_BIN: 602 - if (is_shift(n->op)) return ctxfree(c, n->a); 603 - if (is_arith(n->op)) return ctxfree(c, n->a) && ctxfree(c, n->b); 604 - return 0; 605 - default: return 0; 606 - } 567 + return (int)osc_constant_tree((const uint8_t *)c->ast->nodes, c->ast->nnodes * sizeof(OscNode), i, 0, c->expr_work, c->expr_words); 607 568 } 608 -/* all leaves literal */ 569 + 609 570 static int constexpr_(C *c, int i) 610 571 { 611 - const OscNode *n = NODE(i); 612 - switch (n->kind) { 613 - case ON_INT: return 1; 614 - case ON_UN: return n->op != OT_BANG && constexpr_(c, n->a); 615 - case ON_BIN: return (is_shift(n->op) || is_arith(n->op)) && constexpr_(c, n->a) && constexpr_(c, n->b); 616 - default: return 0; 617 - } 572 + return (int)osc_constant_tree((const uint8_t *)c->ast->nodes, c->ast->nnodes * sizeof(OscNode), i, 1, c->expr_work, c->expr_words); 618 573 } 619 574 620 575 static int ovf(C *c, const OscNode *n, const char *transition, const char *msg) @@ -623,107 +578,43 @@ static int ovf(C *c, const OscNode *n, const char *transition, const char *msg) 623 578 return -1; 624 579 } 625 580 626 -/* fold constant expression i at type t; value as mathematical integer in range of t */ 627 -static int fold(C *c, int i, OscScalar t, i128 *out) 581 +/* Fold using the same OSC scalar semantics as the reference interpreter. 582 + * Constant negation of a nonzero unsigned value is refused by the front end. */ 583 +static int fold(C *c, int i, OscScalar t, uint64_t *out) 628 584 { 629 - OscNode *n = NODE(i); 585 + uint64_t report[3] = {0, (uint64_t)i, 0}; 586 + uint64_t status = osc_fold_tree((uint8_t *)c->ast->nodes, c->ast->nnodes * sizeof(OscNode), 587 + t, c->expr_work, c->expr_words, report); 588 + if (!status) { 589 + *out = report[0]; 590 + return 0; 591 + } 592 + OscNode *at = NODE(report[1]); 630 593 char msg[320]; 631 - if (t == OSC_T_BOOL) return tmismatch(c, n, "bool", "integer literal where bool is required"); 632 - int sg = osc_scalar_signed(t); 633 - unsigned w = osc_scalar_width(t); 634 - i128 v, a, b; 635 - switch (n->kind) { 636 - case ON_INT: 637 - v = (i128)n->ival; 638 - if (!fits(t, v)) { 639 - snprintf(msg, sizeof msg, "literal %llu does not fit %s", (unsigned long long)n->ival, tname(t)); 640 - return ovf(c, n, "literal does not fit type", msg); 641 - } 642 - break; 643 - case ON_UN: 644 - if (n->op == OT_MINUS && NODE(n->a)->kind == ON_INT) { 645 - const OscNode *l = NODE(n->a); 646 - v = -(i128)l->ival; 647 - if (!sg && l->ival != 0) { 648 - snprintf(msg, sizeof msg, "negative literal -%llu for unsigned %s", (unsigned long long)l->ival, tname(t)); 649 - return ovf(c, n, "negative literal for unsigned type", msg); 650 - } 651 - if (!fits(t, v)) { 652 - snprintf(msg, sizeof msg, "literal -%llu does not fit %s", (unsigned long long)l->ival, tname(t)); 653 - return ovf(c, n, "literal does not fit type", msg); 654 - } 655 - NODE(n->a)->ty.s = t; 656 - NODE(n->a)->is_const = 1; 657 - NODE(n->a)->cval = canon(t, (i128)l->ival); 658 - break; 659 - } 660 - if (fold(c, n->a, t, &a)) return -1; 661 - if (n->op == OT_MINUS) { 662 - if (!sg) { 663 - if (a != 0) return ovf(c, n, "negative constant for unsigned type", "negation of a non-zero unsigned constant"); 664 - v = 0; 665 - } else { 666 - v = -a; 667 - if (!fits(t, v)) return ovf(c, n, "signed constant overflow", "constant negation overflows"); 668 - } 669 - } else { /* ~ */ 670 - v = sg ? (i128)(~(int64_t)a) : wrapu(t, ~a); 671 - } 672 - break; 673 - case ON_BIN: 674 - if (fold(c, n->a, t, &a) || fold(c, n->b, t, &b)) return -1; 675 - switch (n->op) { 676 - case OT_PLUS: v = a + b; break; 677 - case OT_MINUS: v = a - b; break; 678 - case OT_STAR: 679 - if (sg) v = a * b; 680 - else v = (i128)(((unsigned __int128)a * (unsigned __int128)b) & ((((unsigned __int128)1) << w) - 1)); 681 - break; 682 - case OT_SLASH: case OT_PERCENT: 683 - if (b == 0) return ovf(c, NODE(n->b), "literal zero divisor", "division by a constant zero"); 684 - v = n->op == OT_SLASH ? a / b : a % b; 685 - break; 686 - case OT_AMP: v = sg ? (i128)((int64_t)a & (int64_t)b) : (a & b); break; 687 - case OT_PIPE: v = sg ? (i128)((int64_t)a | (int64_t)b) : (a | b); break; 688 - case OT_CARET: v = sg ? (i128)((int64_t)a ^ (int64_t)b) : (a ^ b); break; 689 - case OT_SHL: case OT_SHR: 690 - if (b < 0 || b >= (i128)w) { 691 - snprintf(msg, sizeof msg, "constant shift amount %lld outside 0..%u", (long long)b, w - 1); 692 - return ovf(c, NODE(n->b), "literal shift >= width", msg); 693 - } 694 - if (n->op == OT_SHL) { 695 - if (sg) { 696 - v = a * ((i128)1 << (int)b); 697 - if (!fits(t, v)) return ovf(c, n, "signed constant overflow", "constant left shift overflows"); 698 - } else { 699 - v = wrapu(t, a << (int)b); 700 - } 701 - } else { 702 - v = sg ? (a >> (int)b) : (a >> (int)b); 703 - } 704 - break; 705 - default: return tmismatch(c, n, NULL, "operator not allowed in a constant"); 706 - } 707 - if (sg) { 708 - if (!fits(t, v)) { 709 - snprintf(msg, sizeof msg, "constant expression overflows %s", tname(t)); 710 - return ovf(c, n, "signed constant overflow", msg); 711 - } 712 - } else { 713 - v = wrapu(t, v); 714 - } 715 - break; 716 - default: 717 - return tmismatch(c, n, NULL, "not a constant"); 594 + switch (status) { 595 + case 1: return tmismatch(c, at, "bool", "integer literal where bool is required"); 596 + case 2: case 4: 597 + snprintf(msg, sizeof msg, "literal %s%llu does not fit %s", status == 4 ? "-" : "", 598 + (unsigned long long)report[2], tname(t)); 599 + return ovf(c, at, "literal does not fit type", msg); 600 + case 3: 601 + snprintf(msg, sizeof msg, "negative literal -%llu for unsigned %s", (unsigned long long)report[2], tname(t)); 602 + return ovf(c, at, "negative literal for unsigned type", msg); 603 + case 5: return ovf(c, at, "negative constant for unsigned type", "negation of a non-zero unsigned constant"); 604 + case 6: return ovf(c, at, "signed constant overflow", "constant negation overflows"); 605 + case 7: return ovf(c, at, "literal zero divisor", "division by a constant zero"); 606 + case 8: 607 + snprintf(msg, sizeof msg, "constant shift amount %lld outside 0..%u", (long long)report[2], osc_scalar_width(t) - 1); 608 + return ovf(c, at, "literal shift >= width", msg); 609 + case 9: return ovf(c, at, "signed constant overflow", "constant left shift overflows"); 610 + case 10: 611 + snprintf(msg, sizeof msg, "constant expression overflows %s", tname(t)); 612 + return ovf(c, at, "signed constant overflow", msg); 613 + case 11: return tmismatch(c, at, NULL, "operator not allowed in a constant"); 614 + default: return tmismatch(c, at, NULL, "not a constant"); 718 615 } 719 - n->ty.s = t; 720 - n->is_const = 1; 721 - n->cval = canon(t, v); 722 - *out = v; 723 - return 0; 724 616 } 725 617 726 - 727 618 /* ------------------------------------------------------------ contracts (OSC-2) */ 728 619 /* Static evaluation of a checked contract clause (docs/osc/OSC-2-DESIGN.md 729 620 * section 1.4). Constant folding only: a leaf is known if it is a literal / @@ -733,125 +624,16 @@ static int fold(C *c, int i, OscScalar t, i128 *out) 733 624 * (overflow, divide by zero, shift range, cast range) makes the result 734 625 * unknown, as do array reads and calls. `&&` / `||` are decided left to 735 626 * right: the right operand is consulted only when the left one is known. */ 736 -typedef struct { 737 - int nk; /* symbols 0..nk-1 may be known (parameters) */ 738 - uint64_t v[OSC_MAX_PARAMS]; 739 - uint8_t k[OSC_MAX_PARAMS]; 740 - int res_sym; /* `result` symbol, or -1 */ 741 - uint8_t res_known; 742 - uint64_t res_val; 743 -} CEnv; 744 - 745 -static uint64_t ccanon(OscScalar t, uint64_t x) 746 -{ 747 - unsigned w = osc_scalar_width(t); 748 - if (t == OSC_T_BOOL) return x & 1; 749 - if (w >= 64) return x; 750 - if (osc_scalar_signed(t)) { 751 - uint64_t m = 1ULL << (w - 1); 752 - x &= (1ULL << w) - 1; 753 - return (x ^ m) - m; 754 - } 755 - return x & ((1ULL << w) - 1); 756 -} 757 -static int sfits(unsigned w, i128 r) { return r >= -((i128)1 << (w - 1)) && r <= ((i128)1 << (w - 1)) - 1; } 627 +typedef OscContractBindings CEnv; 628 +_Static_assert(sizeof(((CEnv *)0)->k) == OSC_MAX_PARAMS, "OSC contract argument capacity"); 758 629 759 -/* 1 known (*out canonical for the node's type), 0 unknown */ 760 630 static int ceval(C *c, int i, const CEnv *env, uint64_t *out) 761 631 { 762 - const OscNode *n = NODE(i); 763 - if (n->is_const) { *out = n->cval; return 1; } 764 - uint64_t a, b; 765 - switch (n->kind) { 766 - case ON_BOOL: *out = n->ival ? 1 : 0; return 1; 767 - case ON_NAME: 768 - if (n->sym >= 0 && n->sym < env->nk && env->k[n->sym]) { *out = env->v[n->sym]; return 1; } 769 - if (n->sym >= 0 && n->sym == env->res_sym && env->res_known) { *out = env->res_val; return 1; } 770 - return 0; 771 - case ON_UN: { 772 - if (!ceval(c, n->a, env, &a)) return 0; 773 - OscScalar t = n->ty.s; 774 - if (n->op == OT_BANG) { *out = a ^ 1; return 1; } 775 - if (n->op == OT_TILDE) { *out = ccanon(t, ~a); return 1; } 776 - if (osc_scalar_signed(t)) { 777 - i128 r = -(i128)(int64_t)a; 778 - if (!sfits(osc_scalar_width(t), r)) return 0; 779 - *out = (uint64_t)(int64_t)r; 780 - return 1; 781 - } 782 - *out = ccanon(t, 0 - a); 783 - return 1; 784 - } 785 - case ON_CAST: { 786 - if (!ceval(c, n->a, env, &a)) return 0; 787 - OscScalar from = NODE(n->a)->ty.s, to = n->ty.s; 788 - i128 v = osc_scalar_signed(from) ? (i128)(int64_t)a : (i128)a; 789 - unsigned w = osc_scalar_width(to); 790 - i128 lo = osc_scalar_signed(to) ? -((i128)1 << (w - 1)) : 0; 791 - i128 hi = osc_scalar_signed(to) ? ((i128)1 << (w - 1)) - 1 : (((i128)1 << w) - 1); 792 - if (v < lo || v > hi) return 0; 793 - *out = (uint64_t)v; 794 - return 1; 795 - } 796 - case ON_BIN: { 797 - int op = n->op; 798 - if (op == OT_ANDAND || op == OT_OROR) { 799 - if (!ceval(c, n->a, env, &a)) return 0; 800 - if (op == OT_ANDAND && !a) { *out = 0; return 1; } 801 - if (op == OT_OROR && a) { *out = 1; return 1; } 802 - if (!ceval(c, n->b, env, &b)) return 0; 803 - *out = b; 804 - return 1; 805 - } 806 - if (!ceval(c, n->a, env, &a) || !ceval(c, n->b, env, &b)) return 0; 807 - if (is_cmpop(op)) { 808 - OscScalar T = (OscScalar)n->flag; 809 - int lt = osc_scalar_signed(T) ? (int64_t)a < (int64_t)b : a < b, eq = a == b; 810 - switch (op) { 811 - case OT_EQ: *out = eq; break; 812 - case OT_NE: *out = !eq; break; 813 - case OT_LT: *out = lt; break; 814 - case OT_LE: *out = lt || eq; break; 815 - case OT_GT: *out = !lt && !eq; break; 816 - default: *out = !lt; break; 817 - } 818 - return 1; 819 - } 820 - OscScalar t = n->ty.s, tb = NODE(n->b)->ty.s; 821 - unsigned w = osc_scalar_width(t); 822 - int s = osc_scalar_signed(t); 823 - i128 A = s ? (i128)(int64_t)a : (i128)a, B = osc_scalar_signed(tb) ? (i128)(int64_t)b : (i128)b, r; 824 - switch (op) { 825 - case OT_PLUS: if (!s) { *out = ccanon(t, a + b); return 1; } r = A + B; break; 826 - case OT_MINUS: if (!s) { *out = ccanon(t, a - b); return 1; } r = A - B; break; 827 - case OT_STAR: if (!s) { *out = ccanon(t, a * b); return 1; } r = A * B; break; 828 - case OT_SLASH: 829 - if (b == 0) return 0; 830 - if (!s) { *out = a / b; return 1; } 831 - r = A / B; 832 - break; 833 - case OT_PERCENT: 834 - if (b == 0) return 0; 835 - *out = s ? (uint64_t)(int64_t)(A % B) : a % b; 836 - return 1; 837 - case OT_AMP: *out = a & b; return 1; 838 - case OT_PIPE: *out = a | b; return 1; 839 - case OT_CARET: *out = a ^ b; return 1; 840 - case OT_SHL: case OT_SHR: 841 - if (B < 0 || B >= (i128)w) return 0; 842 - if (op == OT_SHR) { *out = s ? (uint64_t)((int64_t)a >> (unsigned)B) : a >> (unsigned)B; return 1; } 843 - if (!s) { *out = ccanon(t, a << (unsigned)B); return 1; } 844 - r = A * ((i128)1 << (unsigned)B); 845 - break; 846 - default: return 0; 847 - } 848 - if (!sfits(w, r)) return 0; 849 - *out = (uint64_t)(int64_t)r; 850 - return 1; 851 - } 852 - default: 853 - return 0; /* ON_INDEX (memory), ON_CALL (refused in clauses anyway) */ 854 - } 632 + uint64_t request[2] = {(uint64_t)i, 0}; 633 + if (!osc_contract_value((const uint8_t *)c->ast->nodes, c->ast->nnodes * sizeof(OscNode), 634 + env, c->expr_work, c->expr_words, request)) return 0; 635 + *out = request[1]; 636 + return 1; 855 637 } 856 638 857 639 /* name check inside a clause: `result` is reserved there */ @@ -1047,25 +829,21 @@ static int handle_alloc(C *c, OscNode *an, int ps) 1047 829 } 1048 830 an->sym = ps; 1049 831 if (slice_noescape(c, an->a) || chk(c, an->a, p->ty.s) < 0) return -1; 1050 - if (c->loop_depth == p->loop_depth && c->cond_depth == p->cond_depth) { 1051 - if (!p->cap_off && p->dlive + 1u > p->cap) { 1052 - osc_diag_set(c->d, OSC_DIAG_POOL_CAPACITY, an->line, an->col, p->name, p->line, NULL, "pool full", 1053 - "allocation needs %u live slots, pool '%s' has %u", p->dlive + 1u, p->name, p->cap); 1054 - return -1; 1055 - } 1056 - /* each slot serves generations gbase..UINT64_MAX: K * (2^64 - gbase) allocations in all */ 1057 - uint64_t per = UINT64_MAX - p->gbase; /* + 1 */ 1058 - if (per < (1ull << 32) && p->dallocs + 1 > (uint64_t)p->cap * (per + 1)) { 1059 - osc_diag_set(c->d, OSC_DIAG_GENERATION_EXHAUSTED, an->line, an->col, p->name, p->line, NULL, 1060 - "retired slot reused", 1061 - "allocation %llu from pool '%s' exceeds its generation budget (%u slots x %llu generations " 1062 - "from base %llu); every slot is live or retired", 1063 - (unsigned long long)(p->dallocs + 1), p->name, p->cap, (unsigned long long)(per + 1), 1064 - (unsigned long long)p->gbase); 1065 - return -1; 1066 - } 1067 - p->dallocs++; 1068 - if (!p->cap_off) p->dlive++; 832 + uint64_t decision = osc_pool_alloc(&p->slots, c->loop_depth, c->cond_depth); 833 + if (decision == OSC_POOL_FULL) { 834 + osc_diag_set(c->d, OSC_DIAG_POOL_CAPACITY, an->line, an->col, p->name, p->line, NULL, "pool full", 835 + "allocation needs %u live slots, pool '%s' has %u", p->slots.dlive + 1u, p->name, p->slots.cap); 836 + return -1; 837 + } 838 + if (decision == OSC_POOL_RETIRED) { 839 + uint64_t generations = UINT64_MAX - p->slots.gbase + 1; 840 + osc_diag_set(c->d, OSC_DIAG_GENERATION_EXHAUSTED, an->line, an->col, p->name, p->line, NULL, 841 + "retired slot reused", 842 + "allocation %llu from pool '%s' exceeds its generation budget (%u slots x %llu generations " 843 + "from base %llu); every slot is live or retired", 844 + (unsigned long long)(p->slots.dallocs + 1), p->name, p->slots.cap, 845 + (unsigned long long)generations, (unsigned long long)p->slots.gbase); 846 + return -1; 1069 847 } 1070 848 if (c->nprov >= MAX_PROV) return cap_fail(c, an->line, "handle provenance capacity"); 1071 849 int pv = c->nprov++; @@ -1184,23 +962,68 @@ static const OscField *chk_field(C *c, OscNode *n, int s) 1184 962 return fd; 1185 963 } 1186 964 965 +/* Omega chooses the operand order, type context, result and refusal site. */ 966 +static int check_operator(C *c, int i, OscScalar want) 967 +{ 968 + OscInference frame = {.root = (uint64_t)i, .want = want}; 969 + int checked = 0; 970 + uint64_t action; 971 + do { 972 + action = osc_infer_step((uint8_t *)c->ast->nodes, c->ast->nnodes * sizeof(OscNode), 973 + c->expr_work, c->expr_words, &frame, (uint64_t)checked); 974 + if (action == OSC_INFER_CHECK) { 975 + checked = chk(c, (int)frame.site, (OscScalar)frame.context); 976 + if (checked < 0) return -1; 977 + } 978 + } while (action == OSC_INFER_CHECK); 979 + 980 + OscNode *at = NODE(frame.site); 981 + OscScalar t = (OscScalar)frame.optype; 982 + char msg[320]; 983 + switch (action) { 984 + case OSC_INFER_DONE: return (int)frame.context; 985 + case OSC_INFER_CAST_LITERAL: 986 + osc_diag_set(c->d, OSC_DIAG_AMBIGUOUS_WIDTH, at->line, at->col, c->sobj, 0, NULL, 987 + "literal as 'as' source", "the source of 'as' must not be a bare literal (ambiguous width)"); 988 + return -1; 989 + case OSC_INFER_COMPARE_LITERALS: 990 + osc_diag_set(c->d, OSC_DIAG_AMBIGUOUS_WIDTH, at->line, at->col, c->sobj, 0, NULL, 991 + "literal without type context", "comparison of two literals (ambiguous width)"); 992 + return -1; 993 + case OSC_INFER_COMPARE_BOOL: return tmismatch(c, at, "bool", "integer literal compared with bool"); 994 + case OSC_INFER_ARITH_BOOL: return tmismatch(c, at, "bool", "arithmetic on bool"); 995 + case OSC_INFER_UNARY_TYPE: return tmismatch(c, at, tname(t), "'-' and '~' need an integer operand"); 996 + case OSC_INFER_CAST_TYPE: 997 + snprintf(msg, sizeof msg, "'as' converts between integer types only (%s as %s)", tname(t), tname(at->ty.s)); 998 + return tmismatch(c, at, tname(t), msg); 999 + case OSC_INFER_SHIFT_TYPE: return tmismatch(c, at, tname(t), "shift of a non-integer"); 1000 + case OSC_INFER_AMOUNT_TYPE: return tmismatch(c, at, tname(t), "shift amount must be an integer"); 1001 + case OSC_INFER_SHIFT_RANGE: 1002 + snprintf(msg, sizeof msg, "constant shift amount outside 0..%u for %s", osc_scalar_width(t) - 1, tname(t)); 1003 + return ovf(c, at, "literal shift >= width", msg); 1004 + case OSC_INFER_ARITH_TYPE: return tmismatch(c, at, tname(t), "arithmetic needs integer operands"); 1005 + case OSC_INFER_ZERO_DIVISOR: return ovf(c, at, "literal zero divisor", "division by a constant zero"); 1006 + default: return tmismatch(c, at, NULL, "unexpected operator inference result"); 1007 + } 1008 +} 1009 + 1187 1010 static int chk(C *c, int i, OscScalar want) 1188 1011 { 1189 1012 OscNode *n = NODE(i); 1190 1013 char msg[320]; 1191 - if (ctxfree(c, i) && !want) { 1014 + if (!want && ctxfree(c, i)) { 1192 1015 osc_diag_set(c->d, OSC_DIAG_AMBIGUOUS_WIDTH, n->line, n->col, c->sobj, 0, NULL, "literal without type context", 1193 1016 "integer literal has no type from context (ambiguous width)"); 1194 1017 return -1; 1195 1018 } 1196 1019 if (want && constexpr_(c, i)) { 1197 - i128 v; 1020 + uint64_t v; 1198 1021 if (fold(c, i, want, &v)) return -1; 1199 1022 return (int)want; 1200 1023 } 1201 1024 OscScalar t; 1202 1025 switch (n->kind) { 1203 - case ON_INT: { i128 v; if (fold(c, i, want, &v)) return -1; return (int)want; } /* unreachable: constexpr */ 1026 + case ON_INT: { uint64_t v; if (fold(c, i, want, &v)) return -1; return (int)want; } /* unreachable: constexpr */ 1204 1027 case ON_BOOL: 1205 1028 t = OSC_T_BOOL; 1206 1029 break; @@ -1309,113 +1132,10 @@ static int chk(C *c, int i, OscScalar want) 1309 1132 } 1310 1133 case ON_BORROW: 1311 1134 return tmismatch(c, n, NULL, "a borrow is not a value here"); 1312 - case ON_UN: { 1313 - if (n->op == OT_BANG) { 1314 - if (chk(c, n->a, OSC_T_BOOL) < 0) return -1; 1315 - t = OSC_T_BOOL; 1316 - break; 1317 - } 1318 - int r = chk(c, n->a, ctxfree(c, n->a) ? want : 0); 1319 - if (r < 0) return -1; 1320 - t = (OscScalar)r; 1321 - if (!osc_scalar_is_int(t)) return tmismatch(c, n, tname(t), "'-' and '~' need an integer operand"); 1322 - break; 1323 - } 1324 - case ON_CAST: { 1325 - if (ctxfree(c, n->a)) { 1326 - osc_diag_set(c->d, OSC_DIAG_AMBIGUOUS_WIDTH, NODE(n->a)->line, NODE(n->a)->col, c->sobj, 0, NULL, 1327 - "literal as 'as' source", "the source of 'as' must not be a bare literal (ambiguous width)"); 1328 - return -1; 1329 - } 1330 - int r = chk(c, n->a, 0); 1331 - if (r < 0) return -1; 1332 - if (!osc_scalar_is_int((OscScalar)r) || !osc_scalar_is_int(n->ty.s)) { 1333 - snprintf(msg, sizeof msg, "'as' converts between integer types only (%s as %s)", tname((OscScalar)r), 1334 - tname(n->ty.s)); 1335 - return tmismatch(c, n, tname((OscScalar)r), msg); 1336 - } 1337 - t = n->ty.s; 1338 - break; 1339 - } 1340 - case ON_BIN: { 1341 - int op = n->op; 1342 - if (op == OT_ANDAND || op == OT_OROR) { 1343 - if (chk(c, n->a, OSC_T_BOOL) < 0 || chk(c, n->b, OSC_T_BOOL) < 0) return -1; 1344 - t = OSC_T_BOOL; 1345 - break; 1346 - } 1347 - if (is_cmpop(op)) { 1348 - OscScalar T; 1349 - if (ctxfree(c, n->a) && ctxfree(c, n->b)) { 1350 - osc_diag_set(c->d, OSC_DIAG_AMBIGUOUS_WIDTH, n->line, n->col, c->sobj, 0, NULL, 1351 - "literal without type context", "comparison of two literals (ambiguous width)"); 1352 - return -1; 1353 - } 1354 - if (ctxfree(c, n->a)) { 1355 - int r = chk(c, n->b, 0); 1356 - if (r < 0) return -1; 1357 - T = (OscScalar)r; 1358 - if (T == OSC_T_BOOL) return tmismatch(c, NODE(n->a), "bool", "integer literal compared with bool"); 1359 - if (chk(c, n->a, T) < 0) return -1; 1360 - } else { 1361 - int r = chk(c, n->a, 0); 1362 - if (r < 0) return -1; 1363 - T = (OscScalar)r; 1364 - if (T == OSC_T_BOOL && ctxfree(c, n->b)) 1365 - return tmismatch(c, NODE(n->b), "bool", "integer literal compared with bool"); 1366 - if (chk(c, n->b, T) < 0) return -1; 1367 - } 1368 - n->flag = (uint8_t)T; /* operand type for lowering */ 1369 - t = OSC_T_BOOL; 1370 - break; 1371 - } 1372 - if (is_shift(op)) { 1373 - int r = chk(c, n->a, ctxfree(c, n->a) ? want : 0); 1374 - if (r < 0) return -1; 1375 - OscScalar T = (OscScalar)r; 1376 - if (!osc_scalar_is_int(T)) return tmismatch(c, n, tname(T), "shift of a non-integer"); 1377 - int ra; 1378 - if (ctxfree(c, n->b)) ra = chk(c, n->b, T); 1379 - else ra = chk(c, n->b, 0); 1380 - if (ra < 0) return -1; 1381 - if (!osc_scalar_is_int((OscScalar)ra)) return tmismatch(c, NODE(n->b), tname((OscScalar)ra), "shift amount must be an integer"); 1382 - const OscNode *bn = NODE(n->b); 1383 - if (bn->is_const) { 1384 - unsigned w = osc_scalar_width(T); 1385 - int neg = osc_scalar_signed((OscScalar)ra) && (int64_t)bn->cval < 0; 1386 - if (neg || bn->cval >= w) { 1387 - snprintf(msg, sizeof msg, "constant shift amount outside 0..%u for %s", w - 1, tname(T)); 1388 - return ovf(c, bn, "literal shift >= width", msg); 1389 - } 1390 - } 1391 - t = T; 1392 - break; 1393 - } 1394 - /* arithmetic / bitwise */ 1395 - OscScalar T; 1396 - if (ctxfree(c, n->a) && ctxfree(c, n->b)) { 1397 - /* only reachable with want (else ambiguous above) and non-constant leaves */ 1398 - int r = chk(c, n->a, want); 1399 - if (r < 0) return -1; 1400 - T = (OscScalar)r; 1401 - if (chk(c, n->b, T) < 0) return -1; 1402 - } else if (ctxfree(c, n->a)) { 1403 - int r = chk(c, n->b, 0); 1404 - if (r < 0) return -1; 1405 - T = (OscScalar)r; 1406 - if (T == OSC_T_BOOL) return tmismatch(c, NODE(n->b), "bool", "arithmetic on bool"); 1407 - if (chk(c, n->a, T) < 0) return -1; 1408 - } else { 1409 - int r = chk(c, n->a, 0); 1410 - if (r < 0) return -1; 1411 - T = (OscScalar)r; 1412 - if (T == OSC_T_BOOL) return tmismatch(c, NODE(n->a), "bool", "arithmetic on bool"); 1413 - if (chk(c, n->b, T) < 0) return -1; 1414 - } 1415 - if (!osc_scalar_is_int(T)) return tmismatch(c, n, tname(T), "arithmetic needs integer operands"); 1416 - if ((op == OT_SLASH || op == OT_PERCENT) && NODE(n->b)->is_const && NODE(n->b)->cval == 0) 1417 - return ovf(c, NODE(n->b), "literal zero divisor", "division by a constant zero"); 1418 - t = T; 1135 + case ON_UN: case ON_CAST: case ON_BIN: { 1136 + int result = check_operator(c, i, want); 1137 + if (result < 0) return -1; 1138 + t = (OscScalar)result; 1419 1139 break; 1420 1140 } 1421 1141 case ON_PALLOC: /* OSC-3 item 2 */ @@ -1499,7 +1219,7 @@ static int chk_contracts(C *c, int fi) 1499 1219 y->kind = SK_SCALAR; 1500 1220 y->ty = c->fret; 1501 1221 y->obj = y->bor = -1; 1502 - c->vis[c->nvis++] = s; 1222 + osc_scope_bind(&c->names, (uint64_t)s, (const uint8_t *)y->name, strlen(y->name)); 1503 1223 a->res_sym[fi] = s; 1504 1224 } 1505 1225 c->contract = 2; @@ -1800,9 +1520,12 @@ static int chk_if(C *c, int i) 1800 1520 * every move, tested by its scope-end release. Both paths moved: 1801 1521 * definitely moved (no flag). Neither: unchanged. Pre-existing 1802 1522 * objects are never OM_GONE on a path that falls through. */ 1803 - for (int o = 0; o < nobj0; o++) { 1804 - if (!osc_join_owner(&s1->obj[o], &c->obj[o])) continue; 1805 - int sym = c->obj[o].sym; 1523 + int32_t changed[OSC_CHECK_MAX_OBJS]; 1524 + size_t bytes = (size_t)nobj0 * sizeof(Obj); 1525 + size_t nchanged = osc_join_owners((const uint8_t *)s1->obj, bytes, (uint8_t *)c->obj, bytes, 1526 + changed, (size_t)nobj0); 1527 + for (size_t j = 0; j < nchanged; j++) { 1528 + int sym = c->obj[changed[j]].sym; 1806 1529 if (sym >= 0) NODE(c->sym[sym].decl)->dflag = 1; 1807 1530 } 1808 1531 } @@ -1873,8 +1596,8 @@ static int chk_return_ensures(C *c, OscNode *n) 1873 1596 uint64_t rv, v; 1874 1597 if (!ceval(c, n->a, &env, &rv)) return 0; 1875 1598 env.res_sym = a->res_sym[fi]; 1876 - env.res_known = 1; 1877 - env.res_val = rv; 1599 + env.known = 1; 1600 + env.result = rv; 1878 1601 if (!ceval(c, a->ensn[fi], &env, &v)) return 0; 1879 1602 if (!v) { 1880 1603 char fname[64]; @@ -2135,7 +1858,7 @@ static int chk_stmt(C *c, int i) 2135 1858 if (chk(c, n->a, c->fret.s) < 0) return -1; 2136 1859 if (chk_return_ensures(c, n)) return -1; 2137 1860 } 2138 - if (scope_exit_events(c, c->depth, n->line, n)) return -1; 1861 + if (scope_exit_events(c, c->names.depth, n->line, n)) return -1; 2139 1862 c->term = 1; 2140 1863 return 0; 2141 1864 } @@ -2165,12 +1888,7 @@ static int chk_stmt(C *c, int i) 2165 1888 int s = declare(c, n, SK_POOL, &tp, 0); 2166 1889 if (s < 0) return -1; 2167 1890 Sym *y = &c->sym[s]; 2168 - y->cap = (uint16_t)n->ival; 2169 - y->gbase = (uint64_t)n->lo; 2170 - y->cond_depth = c->cond_depth; 2171 - y->dallocs = 0; 2172 - y->dlive = 0; 2173 - y->cap_off = 0; 1891 + osc_pool_init(&y->slots, (uint16_t)n->ival, (uint64_t)n->lo, c->loop_depth, c->cond_depth); 2174 1892 n->sym = s; 2175 1893 if (chk_block(c, n->b, 1)) return -1; 2176 1894 if (!c->term && scope_exit_events(c, 1, (uint32_t)NODE(n->b)->ival, n)) return -1; @@ -2206,11 +1924,7 @@ static int chk_stmt(C *c, int i) 2206 1924 n->sym2 = hs; 2207 1925 NODE(n->a)->sym = hs; 2208 1926 Sym *p = &c->sym[ps], *h = &c->sym[hs]; 2209 - if (c->loop_depth == p->loop_depth && c->cond_depth == p->cond_depth) { 2210 - if (p->dlive) p->dlive--; 2211 - } else { 2212 - p->cap_off = 1; 2213 - } 1927 + osc_pool_free(&p->slots, c->loop_depth, c->cond_depth); 2214 1928 int pv = h->prov; 2215 1929 if (pv < 0) return 0; 2216 1930 if (c->pfreed[pv]) { @@ -2260,10 +1974,11 @@ static int chk_fn(C *c, int fi) 2260 1974 OscAst *a = c->ast; 2261 1975 int f = a->fns[fi]; 2262 1976 OscNode *fn = NODE(f); 1977 + osc_scope_reset(&c->names); 2263 1978 c->fi = fi; 2264 1979 c->fnode = f; 2265 1980 c->fret = fn->ty; 2266 - c->nsym = c->nobj = c->nbor = c->nvis = c->depth = c->loop_depth = c->term = 0; 1981 + c->nsym = c->nobj = c->nbor = c->loop_depth = c->term = 0; 2267 1982 c->cond_depth = 0; 2268 1983 c->nregion = 0; 2269 1984 c->nprov = 0; /* OSC-3 item 2 */ @@ -2325,7 +2040,14 @@ static int chk_fn(C *c, int fi) 2325 2040 2326 2041 int osc_check(const OscAlloc *a, OscAst *ast, OscDiag *d, OscTrace *trace) 2327 2042 { 2328 - C *c = osc_alloc_zero(a, sizeof *c); 2043 + size_t expr_words = (size_t)ast->nnodes * 2 + 1; 2044 + size_t bytes = sizeof(C) + expr_words * sizeof(uint64_t); 2045 + C *c = a->alloc(a->ctx, bytes); 2046 + if (c) { 2047 + memset(c, 0, sizeof *c); 2048 + c->expr_work = (uint64_t *)(c + 1); 2049 + c->expr_words = expr_words; 2050 + } 2329 2051 if (!c) { 2330 2052 osc_diag_set(d, OSC_DIAG_CAPACITY, 0, 0, "unit", 0, NULL, "checker memory", "out of memory"); 2331 2053 return -1; @@ -2342,6 +2064,6 @@ int osc_check(const OscAlloc *a, OscAst *ast, OscDiag *d, OscTrace *trace) 2342 2064 osc_diag_set(d, OSC_DIAG_CAPACITY, 0, 0, "unit", 0, NULL, "release list capacity", "too many scope-exit releases"); 2343 2065 rc = -1; 2344 2066 } 2345 - a->free(a->ctx, c, sizeof *c); 2067 + a->free(a->ctx, c, bytes); 2346 2068 return rc; 2347 2069 } src/compiler/osc_interp.c @@ -18,11 +18,11 @@ 18 18 * osc_interp.c -- reference interpreter for the OSC-1 IR (DESIGN section 5). 19 19 * OSC-1 slice; not a general Omega compiler; no self-hosting. 20 20 * 21 - * Checked signed arithmetic is computed exactly in 128-bit integers and then 22 - * range-checked, independently of the native code's flag/extension tricks, so 23 - * the differential test compares two different derivations of section 5. 21 + * Scalar operations use the seeded OSC scalar unit. It reports OSC trap 22 + * codes to this runtime and executes independently of the native back end. 24 23 */ 25 24 #include "osc_interp.h" 25 +#include "omega_api_decl.h" 26 26 27 27 #include 28 28 @@ -32,96 +32,8 @@ typedef struct { 32 32 uint64_t steps; 33 33 } Ctx; 34 34 35 -typedef __int128 i128; 36 - 37 35 static void trap(Ctx *c, unsigned code) { osc_rt_trap(c->rt, code); } 38 36 39 -static uint64_t canon(OscScalar t, uint64_t x) { 40 - unsigned w = osc_scalar_width(t); 41 - if (t == OSC_T_BOOL) return x & 1; 42 - if (w >= 64) return x; 43 - if (osc_scalar_signed(t)) { 44 - uint64_t m = 1ULL << (w - 1); 45 - x &= (1ULL << w) - 1; 46 - return (x ^ m) - m; 47 - } 48 - return x & ((1ULL << w) - 1); 49 -} 50 - 51 -static i128 smin(unsigned w) { return -((i128)1 << (w - 1)); } 52 -static i128 smax(unsigned w) { return ((i128)1 << (w - 1)) - 1; } 53 - 54 -/* exact signed result -> canonical, or OVERFLOW */ 55 -static uint64_t sfit(Ctx *c, unsigned w, i128 r) { 56 - if (r < smin(w) || r > smax(w)) trap(c, OSC_TRAP_OVERFLOW); 57 - return (uint64_t)(int64_t)r; 58 -} 59 - 60 -static uint64_t do_bin(Ctx *c, unsigned sub, OscScalar t, OscScalar tb, uint64_t a, uint64_t b) { 61 - unsigned w = osc_scalar_width(t); 62 - bool s = osc_scalar_signed(t); 63 - i128 A = s ? (i128)(int64_t)a : (i128)a, B = osc_scalar_signed(tb) ? (i128)(int64_t)b : (i128)b; 64 - switch (sub) { 65 - case OSC_B_ADD: return s ? sfit(c, w, A + B) : canon(t, a + b); 66 - case OSC_B_SUB: return s ? sfit(c, w, A - B) : canon(t, a - b); 67 - case OSC_B_MUL: return s ? sfit(c, w, A * B) : canon(t, a * b); 68 - case OSC_B_DIV: 69 - if (b == 0) trap(c, OSC_TRAP_DIV0); 70 - return s ? sfit(c, w, A / B) : a / b; /* C: truncation toward zero */ 71 - case OSC_B_REM: 72 - if (b == 0) trap(c, OSC_TRAP_DIV0); 73 - return s ? (uint64_t)(int64_t)(A % B) : a % b; /* sign of the dividend; MIN % -1 == 0 */ 74 - case OSC_B_AND: return a & b; 75 - case OSC_B_OR: return a | b; 76 - case OSC_B_XOR: return a ^ b; 77 - case OSC_B_SHL: 78 - case OSC_B_SHR: { 79 - if (B < 0 || B >= (i128)w) trap(c, OSC_TRAP_SHIFT); 80 - unsigned k = (unsigned)B; 81 - if (sub == OSC_B_SHL) return s ? sfit(c, w, A * ((i128)1 << k)) : canon(t, a << k); 82 - return s ? (uint64_t)((int64_t)a >> k) : a >> k; 83 - } 84 - default: trap(c, OSC_TRAP_RUNTIME); 85 - } 86 - return 0; 87 -} 88 - 89 -static uint64_t do_un(Ctx *c, unsigned sub, OscScalar t, uint64_t a) { 90 - switch (sub) { 91 - case OSC_U_NEG: 92 - if (osc_scalar_signed(t)) return sfit(c, osc_scalar_width(t), -(i128)(int64_t)a); 93 - return canon(t, 0 - a); 94 - case OSC_U_BNOT: return canon(t, ~a); 95 - case OSC_U_LNOT: return a ^ 1; 96 - default: trap(c, OSC_TRAP_RUNTIME); 97 - } 98 - return 0; 99 -} 100 - 101 -static uint64_t do_cmp(unsigned cc, OscScalar t, uint64_t a, uint64_t b) { 102 - bool lt, eq = a == b; 103 - if (osc_scalar_signed(t)) lt = (int64_t)a < (int64_t)b; 104 - else lt = a < b; 105 - switch (cc) { 106 - case OSC_C_EQ: return eq; 107 - case OSC_C_NE: return !eq; 108 - case OSC_C_LT: return lt; 109 - case OSC_C_LE: return lt || eq; 110 - case OSC_C_GT: return !lt && !eq; 111 - case OSC_C_GE: return !lt; 112 - default: return 0; 113 - } 114 -} 115 - 116 -static uint64_t do_cast(Ctx *c, OscScalar to, OscScalar from, uint64_t a) { 117 - i128 v = osc_scalar_signed(from) ? (i128)(int64_t)a : (i128)a; 118 - unsigned w = osc_scalar_width(to); 119 - i128 lo = osc_scalar_signed(to) ? smin(w) : 0; 120 - i128 hi = osc_scalar_signed(to) ? smax(w) : (((i128)1 << w) - 1); 121 - if (v < lo || v > hi) trap(c, OSC_TRAP_CAST); 122 - return (uint64_t)v; 123 -} 124 - 125 37 /* element pointer with the bounds rule of section 5 */ 126 38 static uint64_t *elem(Ctx *c, const OscType *rt_, uint64_t base, OscScalar ti, uint64_t idx) { 127 39 if (osc_scalar_signed(ti) && (int64_t)idx < 0) trap(c, OSC_TRAP_BOUNDS); @@ -178,10 +90,24 @@ static uint64_t run_func(Ctx *c, int fi, const uint64_t *args) { 178 90 switch (in->op) { 179 91 case OSC_I_CONST: v[in->dst] = in->imm; break; 180 92 case OSC_I_MOV: v[in->dst] = v[in->a]; break; 181 - case OSC_I_BIN: v[in->dst] = do_bin(c, in->sub, T[in->a].s, T[in->b].s, v[in->a], v[in->b]); break; 182 - case OSC_I_UN: v[in->dst] = do_un(c, in->sub, T[in->a].s, v[in->a]); break; 183 - case OSC_I_CMP: v[in->dst] = do_cmp(in->sub, T[in->a].s, v[in->a], v[in->b]); break; 184 - case OSC_I_CAST: v[in->dst] = do_cast(c, T[in->dst].s, T[in->a].s, v[in->a]); break; 93 + case OSC_I_BIN: { 94 + uint64_t code = osc_alu_bin(in->sub, T[in->a].s, v[in->a], v[in->b], &v[in->dst]); 95 + if (code) trap(c, (unsigned)code); 96 + break; 97 + } 98 + case OSC_I_UN: { 99 + uint64_t code = osc_alu_un(in->sub, T[in->a].s, v[in->a], &v[in->dst]); 100 + if (code) trap(c, (unsigned)code); 101 + break; 102 + } 103 + case OSC_I_CMP: 104 + v[in->dst] = osc_alu_cmp(in->sub, T[in->a].s, v[in->a], v[in->b]); 105 + break; 106 + case OSC_I_CAST: { 107 + uint64_t code = osc_alu_cast(T[in->dst].s, T[in->a].s, v[in->a], &v[in->dst]); 108 + if (code) trap(c, (unsigned)code); 109 + break; 110 + } 185 111 case OSC_I_ALLOC: v[in->dst] = osc_rt_alloc(c->rt, T[in->dst].len, v[in->a]); break; 186 112 case OSC_I_RELEASE: osc_rt_release(c->rt, v[in->a], T[in->a].len); break; 187 113 case OSC_I_AOPEN: v[in->dst] = osc_rt_arena_open(c->rt, in->imm); break; @@ -234,7 +160,7 @@ static int check_args(const OscUnit *u, int func, const uint64_t *args, unsigned 234 160 if (t->s == OSC_T_BYTES || t->s == OSC_T_CELLS) continue; /* external pointer: checked as a pair below */ 235 161 if (t->s == OSC_T_REF) { 236 162 if (!osc_rt_is_live_ref(rt, args[p], t->len)) return -1; 237 - } else if (canon(t->s, args[p]) != args[p]) { 163 + } else if (osc_alu_canon(t->s, args[p]) != args[p]) { 238 164 return -1; 239 165 } 240 166 } src/compiler/osc_lex.c @@ -20,29 +20,12 @@ 20 20 */ 21 21 #include "osc_lex.h" 22 22 #include "omega_api_decl.h" 23 +#include "omega_native.h" 23 24 25 +#include 26 +#include 24 27 #include 25 28 26 -static const struct { const char *w; int k; } keywords[] = { 27 - {"fn", OT_FN}, {"let", OT_LET}, {"mut", OT_MUT}, {"own", OT_OWN}, {"alloc", OT_ALLOC}, 28 - {"if", OT_IF}, {"else", OT_ELSE}, {"while", OT_WHILE}, {"bound", OT_BOUND}, {"for", OT_FOR}, 29 - {"in", OT_IN}, {"return", OT_RETURN}, {"requires", OT_REQUIRES}, {"ensures", OT_ENSURES}, 30 - {"as", OT_AS}, {"true", OT_TRUE}, {"false", OT_FALSE}, {"u8", OT_U8}, {"u16", OT_U16}, 31 - {"u32", OT_U32}, {"u64", OT_U64}, {"i8", OT_I8}, {"i16", OT_I16}, {"i32", OT_I32}, 32 - {"i64", OT_I64}, {"bool", OT_BOOL}, {"struct", OT_STRUCT}, {"arena", OT_ARENA}, 33 - {"pool", OT_POOL}, {"handle", OT_HANDLE}, {"import", OT_IMPORT}, 34 - {"bytes", OT_BYTES}, {"cells", OT_CELLS}, 35 -}; 36 - 37 -/* Reserved: destruction words (destruction has no surface syntax, III.8) and 38 - * the V0 effect / authority / control-flow words. Never names. */ 39 -static const char *const reserved[] = { 40 - "free", "drop", "delete", "dealloc", 41 - "effect", "cap", "capability", "mint", "revoke", "grant", "publish", "promote", "authority", "admin", 42 - "syscall", "io", "print", "extern", "unsafe", "asm", "loop", "match", "enum", 43 - "var", "const", "self", "rec", "break", "continue", 44 -}; 45 - 46 29 static const char *const kind_names[OT__COUNT] = { 47 30 "end of input", "NAME", "INT", "reserved word", 48 31 "fn", "let", "mut", "own", "alloc", "if", "else", "while", "bound", "for", "in", "return", "requires", @@ -67,128 +50,79 @@ void osc_tok_text(const char *src, const OscToken *t, char *buf, size_t cap) 67 50 buf[n] = 0; 68 51 } 69 52 70 -static int is_alpha(int c) { return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || c == '_'; } 71 -static int is_digit(int c) { return c >= '0' && c <= '9'; } 53 +/* Omega selects the refusal and its source location. Keep formatting at the 54 + * OscDiag boundary so all compiler diagnostics use the same representation. */ 55 +static void lex_diag(OscDiag *d, uint64_t status, const char *src, const OscLexState *s, 56 + const OscToken *t, uint32_t cap) 57 +{ 58 + char text[64]; 59 + switch (status) { 60 + case OSC_LEX_COMMENT: 61 + osc_diag_set(d, OSC_DIAG_SYNTAX, s->line, s->col, "/*", 0, NULL, "unterminated comment", 62 + "unterminated /* comment"); 63 + break; 64 + case OSC_LEX_FULL: 65 + osc_diag_set(d, OSC_DIAG_CAPACITY, s->line, s->col, "unit", 0, NULL, "token capacity", 66 + "more than %u tokens", cap); 67 + break; 68 + case OSC_LEX_NAME_LONG: 69 + osc_tok_text(src, t, text, sizeof text); 70 + osc_diag_set(d, OSC_DIAG_CAPACITY, s->line, s->col, text, 0, NULL, "identifier length", 71 + "identifier longer than %d characters", OSC_LEX_NAME_MAX); 72 + break; 73 + case OSC_LITERAL_MALFORMED: 74 + osc_tok_text(src, t, text, sizeof text); 75 + osc_diag_set(d, OSC_DIAG_SYNTAX, s->line, s->col, text, 0, NULL, "malformed literal", 76 + "malformed integer literal '%s'", text); 77 + break; 78 + case OSC_LITERAL_OVERFLOW: 79 + osc_tok_text(src, t, text, sizeof text); 80 + osc_diag_set(d, OSC_DIAG_OVERFLOW_UNSAFE, s->line, s->col, text, 0, NULL, "literal wider than 64 bits", 81 + "integer literal does not fit in 64 bits"); 82 + break; 83 + case OSC_LEX_BAD_BYTE: { 84 + unsigned char c = (unsigned char)src[s->start]; 85 + if (c >= 0x20 && c < 0x7f) { 86 + text[0] = (char)c; 87 + text[1] = 0; 88 + } else { 89 + snprintf(text, sizeof text, "\\x%02x", (unsigned)c); 90 + } 91 + osc_diag_set(d, OSC_DIAG_SYNTAX, s->line, s->col, text, 0, NULL, "unexpected character", 92 + "unexpected character '%s'", text); 93 + break; 94 + } 95 + default: 96 + abort(); 97 + } 98 +} 72 99 73 100 int osc_lex(const char *src, size_t len, OscToken *toks, uint32_t cap, uint32_t *ntok, OscDiag *d) 74 101 { 75 - size_t i = 0; 76 - uint32_t line = 1, col = 1, n = 0; 77 -#define ADV() do { if (src[i] == '\n') { line++; col = 1; } else col++; i++; } while (0) 78 - for (;;) { 79 - /* skip whitespace and comments */ 80 - while (i < len) { 81 - char c = src[i]; 82 - if (c == ' ' || c == '\t' || c == '\r' || c == '\n') { ADV(); continue; } 83 - if (c == '/' && i + 1 < len && src[i + 1] == '/') { 84 - while (i < len && src[i] != '\n') ADV(); 85 - continue; 86 - } 87 - if (c == '/' && i + 1 < len && src[i + 1] == '*') { 88 - uint32_t sl = line, sc = col; 89 - ADV(); ADV(); 90 - while (i < len && !(src[i] == '*' && i + 1 < len && src[i + 1] == '/')) ADV(); 91 - if (i >= len) { 92 - osc_diag_set(d, OSC_DIAG_SYNTAX, sl, sc, "/*", 0, NULL, "unterminated comment", 93 - "unterminated /* comment"); 94 - return -1; 95 - } 96 - ADV(); ADV(); 97 - continue; 98 - } 99 - break; 100 - } 101 - if (n >= cap) { 102 - osc_diag_set(d, OSC_DIAG_CAPACITY, line, col, "unit", 0, NULL, "token capacity", 103 - "more than %u tokens", cap); 104 - return -1; 105 - } 106 - OscToken *t = &toks[n]; 107 - memset(t, 0, sizeof *t); 108 - t->line = line; 109 - t->col = col; 110 - t->off = (uint32_t)i; 111 - if (i >= len) { t->kind = OT_EOF; n++; break; } 112 - char c = src[i]; 113 - if (is_alpha(c)) { 114 - size_t s = i; 115 - while (i < len && (is_alpha(src[i]) || is_digit(src[i]))) ADV(); 116 - t->len = (uint32_t)(i - s); 117 - char buf[OSC_LEX_NAME_MAX + 1]; 118 - if (t->len > OSC_LEX_NAME_MAX) { 119 - osc_tok_text(src, t, buf, sizeof buf); 120 - osc_diag_set(d, OSC_DIAG_CAPACITY, t->line, t->col, buf, 0, NULL, "identifier length", 121 - "identifier longer than %d characters", OSC_LEX_NAME_MAX); 122 - return -1; 123 - } 124 - osc_tok_text(src, t, buf, sizeof buf); 125 - t->kind = OT_NAME; 126 - for (size_t k = 0; k < sizeof keywords / sizeof keywords[0]; k++) 127 - if (strcmp(buf, keywords[k].w) == 0) t->kind = (uint16_t)keywords[k].k; 128 - for (size_t k = 0; k < sizeof reserved / sizeof reserved[0]; k++) 129 - if (strcmp(buf, reserved[k]) == 0) t->kind = OT_RESERVED; 130 - n++; 131 - continue; 132 - } 133 - if (is_digit(c)) { 134 - size_t s = i; 135 - while (i < len && (is_alpha(src[i]) || is_digit(src[i]))) ADV(); 136 - t->len = (uint32_t)(i - s); 137 - uint64_t status = osc_parse_literal((const uint8_t *)src + s, i - s, &t->ival); 138 - char buf[64]; 139 - if (status == OSC_LITERAL_MALFORMED) { 140 - osc_tok_text(src, t, buf, sizeof buf); 141 - osc_diag_set(d, OSC_DIAG_SYNTAX, t->line, t->col, buf, 0, NULL, "malformed literal", 142 - "malformed integer literal '%s'", buf); 143 - return -1; 144 - } 145 - if (status == OSC_LITERAL_OVERFLOW) { 146 - osc_tok_text(src, t, buf, sizeof buf); 147 - osc_diag_set(d, OSC_DIAG_OVERFLOW_UNSAFE, t->line, t->col, buf, 0, NULL, "literal wider than 64 bits", 148 - "integer literal does not fit in 64 bits"); 149 - return -1; 150 - } 151 - t->kind = OT_INT; 152 - n++; 153 - continue; 154 - } 155 - /* punctuation: longest match first */ 156 - static const struct { const char *s; int k; } punct[] = { 157 - {"->", OT_ARROW}, {"..", OT_DOTDOT}, {"&&", OT_ANDAND}, {"||", OT_OROR}, {"<<", OT_SHL}, 158 - {">>", OT_SHR}, {"==", OT_EQ}, {"!=", OT_NE}, {"<=", OT_LE}, {">=", OT_GE}, 159 - {"(", OT_LPAREN}, {")", OT_RPAREN}, {"{", OT_LBRACE}, {"}", OT_RBRACE}, {"[", OT_LBRACK}, 160 - {"]", OT_RBRACK}, {",", OT_COMMA}, {";", OT_SEMI}, {":", OT_COLON}, {"=", OT_ASSIGN}, 161 - {"+", OT_PLUS}, {"-", OT_MINUS}, {"*", OT_STAR}, {"/", OT_SLASH}, {"%", OT_PERCENT}, 162 - {"&", OT_AMP}, {"|", OT_PIPE}, {"^", OT_CARET}, {"~", OT_TILDE}, {"!", OT_BANG}, 163 - {"<", OT_LT}, {">", OT_GT}, {".", OT_DOT}, 164 - }; 165 - int found = 0; 166 - for (size_t k = 0; k < sizeof punct / sizeof punct[0]; k++) { 167 - size_t pl = strlen(punct[k].s); 168 - if (i + pl <= len && memcmp(src + i, punct[k].s, pl) == 0) { 169 - t->kind = (uint16_t)punct[k].k; 170 - t->len = (uint32_t)pl; 171 - for (size_t q = 0; q < pl; q++) ADV(); 172 - found = 1; 173 - break; 174 - } 175 - } 176 - if (!found) { 177 - char buf[8]; 178 - unsigned char uc = (unsigned char)c; 179 - if (uc >= 0x20 && uc < 0x7f) { buf[0] = (char)uc; buf[1] = 0; } 180 - else 181 - { 182 - static const char hx[] = "`0123456789abcdef`"; 183 - buf[0] = '\\'; buf[1] = 'x'; buf[2] = hx[uc >> 4]; buf[3] = hx[uc & 15]; buf[4] = 0; 184 - } 185 - osc_diag_set(d, OSC_DIAG_SYNTAX, line, col, buf, 0, NULL, "unexpected character", 186 - "unexpected character '%s'", buf); 187 - return -1; 188 - } 189 - n++; 102 + OscLexState cursor = {.line = 1, .col = 1}; 103 + _Static_assert(sizeof(OscToken) == 32 && offsetof(OscToken, kind) == 0 && offsetof(OscToken, line) == 4 && 104 + offsetof(OscToken, col) == 8 && offsetof(OscToken, off) == 12 && offsetof(OscToken, len) == 16 && 105 + offsetof(OscToken, ival) == 24, "OSC token layout must match osc_lex_stream"); 106 + _Static_assert(OSC_LEX_NAME_MAX == 63, "OSC scanner identifier width"); 107 + uint64_t count = 0; 108 + if (len > UINT32_MAX) { 109 + osc_diag_set(d, OSC_DIAG_CAPACITY, 1, 1, "unit", 0, NULL, "source offset capacity", 110 + "source exceeds the OSC 32-bit offset range"); 111 + return -1; 112 + } 113 + uint64_t status; 114 + uint32_t bridge = omega2_osc_lex_stream(&status, (const uint8_t *)src, len, (uint8_t *)&cursor, 115 + (uint8_t *)toks, (size_t)cap * sizeof *toks, &count, 1); 116 + if (bridge != OMEGA_OK) { 117 + osc_diag_set(d, OSC_DIAG_CAPACITY, cursor.line, cursor.col, "unit", 0, NULL, "scanner capacity", 118 + "scanner could not represent or allocate its input state"); 119 + return -1; 120 + } 121 + if (status) { 122 + const OscToken *t = status == OSC_LEX_FULL || status == OSC_LEX_COMMENT ? NULL : &toks[count]; 123 + lex_diag(d, status, src, &cursor, t, cap); 124 + return -1; 190 125 } 191 -#undef ADV 192 - *ntok = n; 126 + *ntok = (uint32_t)count; 193 127 return 0; 194 128 } src/compiler/osc_lower.c @@ -19,6 +19,7 @@ 19 19 * OSC-1 slice; not a general Omega compiler; no self-hosting. 20 20 */ 21 21 #include "osc_lower.h" 22 +#include "omega_api_decl.h" 22 23 #include "osc_check.h" 23 24 24 25 #include @@ -162,35 +163,6 @@ static void releases(L *l, const OscNode *n) 162 163 } 163 164 } 164 165 165 -static int bop(int tok) 166 -{ 167 - switch (tok) { 168 - case OT_PLUS: return OSC_B_ADD; 169 - case OT_MINUS: return OSC_B_SUB; 170 - case OT_STAR: return OSC_B_MUL; 171 - case OT_SLASH: return OSC_B_DIV; 172 - case OT_PERCENT: return OSC_B_REM; 173 - case OT_AMP: return OSC_B_AND; 174 - case OT_PIPE: return OSC_B_OR; 175 - case OT_CARET: return OSC_B_XOR; 176 - case OT_SHL: return OSC_B_SHL; 177 - case OT_SHR: return OSC_B_SHR; 178 - default: return 0; 179 - } 180 -} 181 -static int cop(int tok) 182 -{ 183 - switch (tok) { 184 - case OT_EQ: return OSC_C_EQ; 185 - case OT_NE: return OSC_C_NE; 186 - case OT_LT: return OSC_C_LT; 187 - case OT_LE: return OSC_C_LE; 188 - case OT_GT: return OSC_C_GT; 189 - case OT_GE: return OSC_C_GE; 190 - default: return 0; 191 - } 192 -} 193 - 194 166 /* symbol s is an external byte slice (its vreg is the pointer register) */ 195 167 static int is_slice(L *l, int s) 196 168 { @@ -313,9 +285,9 @@ static int expr(L *l, int i) 313 285 int a = expr(l, n->a); 314 286 int b = expr(l, n->b); 315 287 int r = newvs(l, n->ty.s, n->line); 316 - int cc = cop(n->op); 288 + uint64_t cc = osc_compare_opcode(n->op); 317 289 OscInsn *x = emit(l, cc ? OSC_I_CMP : OSC_I_BIN, n->line); 318 - x->sub = (uint8_t)(cc ? cc : bop(n->op)); 290 + x->sub = (uint8_t)(cc ? cc : osc_binary_opcode(n->op)); 319 291 x->dst = (int16_t)r; 320 292 x->a = (int16_t)a; 321 293 x->b = (int16_t)b; src/compiler/osc_parse.c @@ -20,8 +20,10 @@ 20 20 * OSC-1 slice; not a general Omega compiler; no self-hosting. 21 21 */ 22 22 #include "osc_parse.h" 23 +#include "omega_api_decl.h" 23 24 24 25 #include 26 +#include 25 27 #include 26 28 27 29 #define LOOP_BOUND_MAX `1000000` @@ -97,62 +99,6 @@ static int enter(P *p) 97 99 } 98 100 static void leave(P *p) { p->depth--; } 99 101 100 -static int scalar_of(int k) 101 -{ 102 - switch (k) { 103 - case OT_U8: return OSC_T_U8; case OT_U16: return OSC_T_U16; case OT_U32: return OSC_T_U32; 104 - case OT_U64: return OSC_T_U64; case OT_I8: return OSC_T_I8; case OT_I16: return OSC_T_I16; 105 - case OT_I32: return OSC_T_I32; case OT_I64: return OSC_T_I64; case OT_BOOL: return OSC_T_BOOL; 106 - default: return 0; 107 - } 108 -} 109 - 110 -static int parse_scalar(P *p, OscType *ty) 111 -{ 112 - int s = scalar_of(cur(p)->kind); 113 - if (at(p, OT_BYTES) || at(p, OT_CELLS)) { 114 - const OscToken *t = cur(p); 115 - osc_diag_set(p->d, OSC_DIAG_SLICE_ESCAPE, t->line, t->col, at(p, OT_BYTES) ? "bytes" : "cells", 0, NULL, 116 - "slice type outside a parameter", "'%s' is a parameter type only: a slice is never a local, field, element or result", 117 - at(p, OT_BYTES) ? "bytes" : "cells"); 118 - return -1; 119 - } 120 - if (!s) return syntax(p, "a type (u8 u16 u32 u64 i8 i16 i32 i64 bool)"); 121 - memset(ty, 0, sizeof *ty); 122 - ty->s = (OscScalar)s; 123 - adv(p); 124 - return 0; 125 -} 126 - 127 -/* "[" type ";" INT "]" with ref kind already consumed */ 128 -static int parse_arr_body(P *p, OscType *ty, OscRefKind rk) 129 -{ 130 - OscType el; 131 - if (expect(p, OT_LBRACK)) return -1; 132 - if (parse_scalar(p, &el)) return -1; 133 - if (expect(p, OT_SEMI)) return -1; 134 - if (!at(p, OT_INT)) return syntax(p, "array length INT"); 135 - const OscToken *lt = cur(p); 136 - if (lt->ival == 0) { 137 - osc_diag_set(p->d, OSC_DIAG_UNSUPPORTED, lt->line, lt->col, "array", 0, NULL, "array length 0", 138 - "array length must be 1..%d", OSC_MAX_ARRAY_LEN); 139 - return -1; 140 - } 141 - if (lt->ival > OSC_MAX_ARRAY_LEN) { 142 - osc_diag_set(p->d, OSC_DIAG_CAPACITY, lt->line, lt->col, "array", 0, NULL, "array length", 143 - "array length %llu > %d", (unsigned long long)lt->ival, OSC_MAX_ARRAY_LEN); 144 - return -1; 145 - } 146 - adv(p); 147 - if (expect(p, OT_RBRACK)) return -1; 148 - memset(ty, 0, sizeof *ty); 149 - ty->s = OSC_T_REF; 150 - ty->ref = rk; 151 - ty->elem = el.s; 152 - ty->len = (uint16_t)lt->ival; 153 - return 0; 154 -} 155 - 156 102 static int parse_expr(P *p); 157 103 158 104 /* ---- OSC-2 structs (docs/osc/OSC-2-DESIGN.md section 2) ---------------- */ @@ -215,13 +161,6 @@ static int parse_struct_ref(P *p, OscType *ty, OscRefKind rk) 215 161 return 0; 216 162 } 217 163 218 -/* "[" ... (array) or NAME (struct), ref kind already consumed */ 219 -static int parse_ref_body(P *p, OscType *ty, OscRefKind rk) 220 -{ 221 - if (at(p, OT_NAME)) return parse_struct_ref(p, ty, rk); 222 - return parse_arr_body(p, ty, rk); 223 -} 224 - 225 164 /* OSC-3 item 2: pools and handles are function-local (never parameters or 226 165 * results) */ 227 166 static int local_only(P *p) @@ -233,24 +172,57 @@ static int local_only(P *p) 233 172 return -1; 234 173 } 235 174 236 -/* ptype: scalar | own[..] | &[..] | &mut[..] | own S | &S | &mut S */ 237 -static int parse_ptype(P *p, OscType *ty) 175 +/* The longest type spelling has OSC_TYPE_WINDOW tokens. A zero kind pads 176 + * the end of the stream with EOF, as peek_kind does. The grammar consumes 177 + * only its prefix and returns the offset of the exact failure token. */ 178 +static int parse_type(P *p, OscType *ty, unsigned form, OscRefKind ref) 238 179 { 239 - if (at(p, OT_OWN)) { adv(p); return parse_ref_body(p, ty, OSC_REF_OWN); } 240 - if (at(p, OT_AMP)) { 241 - adv(p); 242 - if (at(p, OT_MUT)) { adv(p); return parse_ref_body(p, ty, OSC_REF_MUT); } 243 - return parse_ref_body(p, ty, OSC_REF_SHARED); 180 + uint16_t kinds[OSC_TYPE_WINDOW] = {0}; 181 + uint64_t values[OSC_TYPE_WINDOW] = {0}; 182 + uint32_t remaining = p->ast->ntok - p->pos; 183 + for (unsigned i = 0; i < remaining && i < OSC_TYPE_WINDOW; ++i) { 184 + kinds[i] = p->ast->toks[p->pos + i].kind; 185 + values[i] = p->ast->toks[p->pos + i].ival; 244 186 } 245 - if (at(p, OT_NAME) && find_struct(p, cur(p)) >= 0) return struct_by_value(p, cur(p), "struct by value"); 246 - if (at(p, OT_BYTES) || at(p, OT_CELLS)) { /* external byte slice: pointer + length registers */ 247 - memset(ty, 0, sizeof *ty); 248 - ty->s = at(p, OT_BYTES) ? OSC_T_BYTES : OSC_T_CELLS; 249 - adv(p); 187 + OscParsedType parsed; 188 + uint64_t status = osc_read_type(kinds, values, form, ref, OSC_MAX_ARRAY_LEN, &parsed); 189 + p->pos += parsed.used; 190 + if (status == 0) { 191 + *ty = (OscType){.s = (OscScalar)parsed.scalar, .ref = (OscRefKind)parsed.refkind, 192 + .elem = (OscScalar)parsed.elem, .len = (uint16_t)parsed.count}; 250 193 return 0; 251 194 } 252 - if (at(p, OT_HANDLE) || at(p, OT_POOL)) return local_only(p); 253 - return parse_scalar(p, ty); 195 + const OscToken *t = cur(p); 196 + switch (status) { 197 + case OSC_TYPE_NAMED_REF: 198 + return parse_struct_ref(p, ty, (OscRefKind)parsed.refkind); 199 + case OSC_TYPE_BARE_NAME: 200 + if (find_struct(p, t) >= 0) return struct_by_value(p, t, "struct by value"); 201 + /* fall through */ 202 + case OSC_TYPE_EXPECT_SCALAR: 203 + return syntax(p, "a type (u8 u16 u32 u64 i8 i16 i32 i64 bool)"); 204 + case OSC_TYPE_LOCAL_ONLY: 205 + return local_only(p); 206 + case OSC_TYPE_SLICE_ESCAPE: { 207 + const char *name = osc_tok_kind_name(t->kind); 208 + osc_diag_set(p->d, OSC_DIAG_SLICE_ESCAPE, t->line, t->col, name, 0, NULL, 209 + "slice type outside a parameter", "'%s' is a parameter type only: a slice is never a local, field, element or result", name); 210 + return -1; 211 + } 212 + case OSC_TYPE_EXPECT_OPEN: return syntax(p, osc_tok_kind_name(OT_LBRACK)); 213 + case OSC_TYPE_EXPECT_SEMI: return syntax(p, osc_tok_kind_name(OT_SEMI)); 214 + case OSC_TYPE_EXPECT_LENGTH: return syntax(p, "array length INT"); 215 + case OSC_TYPE_EXPECT_CLOSE: return syntax(p, osc_tok_kind_name(OT_RBRACK)); 216 + case OSC_TYPE_ZERO_LENGTH: 217 + osc_diag_set(p->d, OSC_DIAG_UNSUPPORTED, t->line, t->col, "array", 0, NULL, "array length 0", 218 + "array length must be 1..%d", OSC_MAX_ARRAY_LEN); 219 + return -1; 220 + case OSC_TYPE_LONG_ARRAY: 221 + osc_diag_set(p->d, OSC_DIAG_CAPACITY, t->line, t->col, "array", 0, NULL, "array length", 222 + "array length %llu > %d", (unsigned long long)t->ival, OSC_MAX_ARRAY_LEN); 223 + return -1; 224 + default: abort(); 225 + } 254 226 } 255 227 256 228 /* struct_decl = "struct" NAME "{" field { "," field } [","] "}" ; @@ -325,12 +297,12 @@ static int parse_struct(P *p) 325 297 } 326 298 if (at(p, OT_LBRACK)) { 327 299 OscType at_; 328 - if (parse_arr_body(p, &at_, OSC_REF_OWN)) return -1; 300 + if (parse_type(p, &at_, OSC_TYPE_ARRAY, OSC_REF_OWN)) return -1; 329 301 fd->s = at_.elem; 330 302 fd->alen = at_.len; 331 303 } else { 332 304 OscType sc; 333 - if (parse_scalar(p, &sc)) return -1; 305 + if (parse_type(p, &sc, OSC_TYPE_SCALAR, OSC_REF_NONE)) return -1; 334 306 fd->s = sc.s; 335 307 } 336 308 fd->off = (uint16_t)cells; @@ -503,155 +475,137 @@ static int parse_call(P *p) 503 475 return n; 504 476 } 505 477 506 -static int parse_primary(P *p) 478 +static int parse_operand(P *p) 507 479 { 508 - const OscToken *t = cur(p); 509 - int n; 510 - switch (t->kind) { 511 - case OT_INT: 512 - n = new_node(p, ON_INT, t); 513 - if (n < 0) return -1; 514 - N(n)->ival = t->ival; 515 - adv(p); 516 - return n; 517 - case OT_TRUE: case OT_FALSE: 518 - n = new_node(p, ON_BOOL, t); 519 - if (n < 0) return -1; 520 - N(n)->ival = t->kind == OT_TRUE; 521 - adv(p); 522 - return n; 523 - case OT_NAME: 524 - if (peek_kind(p, 1) == OT_LPAREN) return parse_call(p); 525 - if (peek_kind(p, 1) == OT_DOT && peek_kind(p, 2) == OT_ALLOC) { /* OSC-3 item 2: P.alloc(e) */ 526 - n = new_node(p, ON_PALLOC, t); 527 - if (n < 0) return -1; 528 - adv(p); adv(p); adv(p); 529 - if (expect(p, OT_LPAREN)) return -1; 530 - if (enter(p)) return -1; 531 - int e0 = parse_expr(p); 480 + OscOperandState state = {0}; 481 + const uint32_t first_prefix = p->ast->nnodes; 482 + int value = -1; 483 + for (;;) { 484 + const OscToken *t = cur(p); 485 + uint64_t action = osc_operand_step(&state, t->kind, peek_kind(p, 1), peek_kind(p, 2)); 486 + int n; 487 + switch (action) { 488 + case OSC_OPERAND_PREFIX: 489 + if (enter(p) || new_node(p, ON_UN, t) < 0) return -1; 490 + adv(p); 491 + break; 492 + case OSC_OPERAND_UNWIND: 493 + n = (int)(first_prefix + state.pending); 494 + N(n)->op = p->ast->toks[N(n)->tok].kind; 495 + N(n)->a = value; 532 496 leave(p); 533 - if (e0 < 0) return -1; 534 - N(n)->a = e0; 535 - if (expect(p, OT_RPAREN)) return -1; 536 - return n; 497 + value = n; 498 + break; 499 + case OSC_OPERAND_INTEGER: 500 + case OSC_OPERAND_TRUE: 501 + case OSC_OPERAND_FALSE: 502 + case OSC_OPERAND_NAME: { 503 + int kind = action == OSC_OPERAND_INTEGER ? ON_INT : action == OSC_OPERAND_NAME ? ON_NAME : ON_BOOL; 504 + value = new_node(p, kind, t); 505 + if (value < 0) return -1; 506 + N(value)->ival = action == OSC_OPERAND_INTEGER ? t->ival : action == OSC_OPERAND_TRUE; 507 + adv(p); 508 + break; 537 509 } 538 - if (peek_kind(p, 1) == OT_DOT) return parse_field_ref(p, ON_FIELD); 539 - if (peek_kind(p, 1) == OT_LBRACK) { 510 + case OSC_OPERAND_CALL: 511 + value = parse_call(p); 512 + if (value < 0) return -1; 513 + break; 514 + case OSC_OPERAND_FIELD: 515 + value = parse_field_ref(p, ON_FIELD); 516 + if (value < 0) return -1; 517 + break; 518 + case OSC_OPERAND_INDEX: 540 519 n = new_node(p, ON_INDEX, t); 541 520 if (n < 0) return -1; 542 521 adv(p); adv(p); 543 - int ix = parse_expr(p); 544 - if (ix < 0) return -1; 545 - N(n)->a = ix; 522 + value = parse_expr(p); 523 + if (value < 0) return -1; 524 + N(n)->a = value; 546 525 if (expect(p, OT_RBRACK)) return -1; 547 - return n; 526 + value = n; 527 + break; 528 + case OSC_OPERAND_POOL: 529 + n = new_node(p, ON_PALLOC, t); 530 + if (n < 0) return -1; 531 + adv(p); adv(p); adv(p); 532 + if (expect(p, OT_LPAREN) || enter(p)) return -1; 533 + value = parse_expr(p); 534 + leave(p); 535 + if (value < 0) return -1; 536 + N(n)->a = value; 537 + if (expect(p, OT_RPAREN)) return -1; 538 + value = n; 539 + break; 540 + case OSC_OPERAND_GROUP: 541 + if (enter(p)) return -1; 542 + adv(p); 543 + value = parse_expr(p); 544 + if (value < 0 || expect(p, OT_RPAREN)) return -1; 545 + leave(p); 546 + break; 547 + case OSC_OPERAND_CAST: 548 + n = new_node(p, ON_CAST, t); 549 + if (n < 0) return -1; 550 + adv(p); 551 + if (parse_type(p, &N(n)->ty, OSC_TYPE_SCALAR, OSC_REF_NONE)) return -1; 552 + N(n)->a = value; 553 + N(n)->line = N(value)->line; 554 + N(n)->col = N(value)->col; 555 + value = n; 556 + break; 557 + case OSC_OPERAND_DONE: 558 + return value; 559 + case OSC_OPERAND_CAST_ERROR: 560 + return syntax(p, "';' (chained 'as' needs parentheses)"); 561 + case OSC_OPERAND_BORROW_ERROR: 562 + osc_diag_set(p->d, OSC_DIAG_UNSUPPORTED, t->line, t->col, "&", 0, NULL, "borrow in expression", 563 + "a borrow may only be a call argument or a borrow binding's value"); 564 + return -1; 565 + case OSC_OPERAND_SYNTAX: 566 + return syntax(p, "an expression"); 567 + default: 568 + abort(); 548 569 } 549 - n = new_node(p, ON_NAME, t); 550 - if (n < 0) return -1; 551 - adv(p); 552 - return n; 553 - case OT_LPAREN: { 554 - if (enter(p)) return -1; 555 - adv(p); 556 - int e = parse_expr(p); 557 - if (e < 0) return -1; 558 - if (expect(p, OT_RPAREN)) return -1; 559 - leave(p); 560 - return e; 561 - } 562 - case OT_AMP: 563 - osc_diag_set(p->d, OSC_DIAG_UNSUPPORTED, t->line, t->col, "&", 0, NULL, "borrow in expression", 564 - "a borrow may only be a call argument or a borrow binding's value"); 565 - return -1; 566 - default: 567 - return syntax(p, "an expression"); 568 570 } 569 571 } 570 572 571 -static int parse_postfix(P *p) 573 +/* Omega decides when to consume the next operator and when to finish an 574 + * existing node. Allocate at the operator token and attach edges only after 575 + * the right operand parses, preserving the AST prefix on syntax errors. */ 576 +static int parse_expr(P *p) 572 577 { 573 - int e = parse_primary(p); 574 - if (e < 0) return -1; 575 - if (at(p, OT_AS)) { 576 - int n = new_node(p, ON_CAST, cur(p)); 577 - if (n < 0) return -1; 578 - adv(p); 579 - if (parse_scalar(p, &N(n)->ty)) return -1; 580 - N(n)->a = e; 581 - N(n)->line = N(e)->line; 582 - N(n)->col = N(e)->col; 583 - if (at(p, OT_AS)) return syntax(p, "';' (chained 'as' needs parentheses)"); 584 - return n; 585 - } 586 - return e; 587 -} 588 - 589 -static int parse_unary(P *p) 590 -{ 591 - int k = cur(p)->kind; 592 - if (k == OT_MINUS || k == OT_TILDE || k == OT_BANG) { 593 - if (enter(p)) return -1; 594 - int n = new_node(p, ON_UN, cur(p)); 595 - if (n < 0) return -1; 596 - adv(p); 597 - int a = parse_unary(p); 598 - leave(p); 599 - if (a < 0) return -1; 600 - N(n)->op = (uint16_t)k; 601 - N(n)->a = a; 602 - return n; 603 - } 604 - return parse_postfix(p); 605 -} 606 - 607 -/* binary precedence levels, lowest first */ 608 -static const int levels[][3] = { 609 - {OT_OROR, 0, 0}, {OT_ANDAND, 0, 0}, {0, 0, 0} /* cmp */, {OT_PIPE, 0, 0}, {OT_CARET, 0, 0}, 610 - {OT_AMP, 0, 0}, {OT_SHL, OT_SHR, 0}, {OT_PLUS, OT_MINUS, 0}, {OT_STAR, OT_SLASH, OT_PERCENT}, 611 -}; 612 -#define NLEVELS ((int)(sizeof levels / sizeof levels[0])) 613 -#define CMP_LEVEL 2 614 - 615 -static int is_cmp(int k) { return k == OT_EQ || k == OT_NE || k == OT_LT || k == OT_LE || k == OT_GT || k == OT_GE; } 616 - 617 -static int parse_level(P *p, int lv) 618 -{ 619 - if (lv >= NLEVELS) return parse_unary(p); 620 - int l = parse_level(p, lv + 1); 621 - if (l < 0) return -1; 622 - if (lv == CMP_LEVEL) { 623 - if (is_cmp(cur(p)->kind)) { 578 + OscExprStack stack = {0}; 579 + int operand = parse_operand(p); 580 + while (operand >= 0) { 581 + uint64_t action = osc_expr_step(&stack, cur(p)->kind, (uint64_t)operand); 582 + switch (action) { 583 + case OSC_EXPR_DONE: 584 + return operand; 585 + case OSC_EXPR_SHIFT: { 624 586 int n = new_node(p, ON_BIN, cur(p)); 625 587 if (n < 0) return -1; 588 + stack.node[stack.depth - 1] = n; 626 589 N(n)->op = cur(p)->kind; 627 590 adv(p); 628 - int r = parse_level(p, lv + 1); 629 - if (r < 0) return -1; 630 - N(n)->a = l; 631 - N(n)->b = r; 632 - l = n; 633 - if (is_cmp(cur(p)->kind)) return syntax(p, "no second comparison (comparisons do not chain)"); 591 + operand = parse_operand(p); 592 + break; 593 + } 594 + case OSC_EXPR_REDUCE: 595 + case OSC_EXPR_CHAINED: 596 + N(stack.parent)->a = stack.left; 597 + N(stack.parent)->b = operand; 598 + if (action == OSC_EXPR_CHAINED) 599 + return syntax(p, "no second comparison (comparisons do not chain)"); 600 + operand = stack.parent; 601 + break; 602 + default: 603 + abort(); 634 604 } 635 - return l; 636 - } 637 - for (;;) { 638 - int k = cur(p)->kind; 639 - if (k == 0 || !(k == levels[lv][0] || k == levels[lv][1] || k == levels[lv][2])) break; 640 - int n = new_node(p, ON_BIN, cur(p)); 641 - if (n < 0) return -1; 642 - N(n)->op = (uint16_t)k; 643 - adv(p); 644 - int r = parse_level(p, lv + 1); 645 - if (r < 0) return -1; 646 - N(n)->a = l; 647 - N(n)->b = r; 648 - l = n; 649 605 } 650 - return l; 606 + return -1; 651 607 } 652 608 653 -static int parse_expr(P *p) { return parse_level(p, 0); } 654 - 655 609 static int parse_name_tok(P *p, int n) 656 610 { 657 611 if (!at(p, OT_NAME)) return syntax(p, "a name"); @@ -660,24 +614,130 @@ static int parse_name_tok(P *p, int n) 660 614 return 0; 661 615 } 662 616 663 -static int parse_int_signed(P *p, int64_t *out) 617 +static int parse_for_range(P *p, int n, const OscToken *kw) 664 618 { 665 - int neg = 0; 666 - if (at(p, OT_MINUS)) { neg = 1; adv(p); } 667 - if (!at(p, OT_INT)) return syntax(p, "an integer literal"); 668 - const OscToken *t = cur(p); 669 - if (t->ival > (uint64_t)INT64_MAX + (uint64_t)neg) { 670 - osc_diag_set(p->d, OSC_DIAG_OVERFLOW_UNSAFE, t->line, t->col, "for", 0, NULL, "literal does not fit i64", 671 - "for-loop end does not fit i64"); 619 + uint16_t kinds[OSC_FOR_WINDOW] = {0}; 620 + uint64_t values[OSC_FOR_WINDOW] = {0}; 621 + uint32_t start = p->pos; 622 + for (unsigned i = 0; i < OSC_FOR_WINDOW && i < p->ast->ntok - start; ++i) { 623 + kinds[i] = p->ast->toks[start + i].kind; 624 + values[i] = p->ast->toks[start + i].ival; 625 + } 626 + OscForRange range; 627 + uint64_t status = osc_for_range(kinds, values, LOOP_BOUND_MAX, &range); 628 + if (range.used) N(n)->tok = start; 629 + p->pos += range.used; 630 + N(n)->lo = (int64_t)range.low; 631 + N(n)->hi = (int64_t)range.high; 632 + switch (status) { 633 + case 0: return 0; 634 + case OSC_FOR_NAME: return syntax(p, "a name"); 635 + case OSC_FOR_IN: return syntax(p, osc_tok_kind_name(OT_IN)); 636 + case OSC_FOR_INT: return syntax(p, "an integer literal"); 637 + case OSC_FOR_DOTS: return syntax(p, osc_tok_kind_name(OT_DOTDOT)); 638 + case OSC_FOR_OVERFLOW: 639 + osc_diag_set(p->d, OSC_DIAG_OVERFLOW_UNSAFE, cur(p)->line, cur(p)->col, "for", 0, NULL, 640 + "literal does not fit i64", "for-loop end does not fit i64"); 641 + return -1; 642 + case OSC_FOR_TRIPS: { 643 + char nm[64]; 644 + osc_node_name(p->ast, N(n), nm, sizeof nm); 645 + const OscToken *lt = &p->ast->toks[start + range.lower_at]; 646 + osc_diag_set(p->d, OSC_DIAG_UNBOUNDED_LOOP, lt->line, lt->col, nm, kw->line, NULL, 647 + "for range outside 0..`1000000` trips", "for range must satisfy A <= B and B - A <= %d", 648 + LOOP_BOUND_MAX); 649 + return -1; 650 + } 651 + default: abort(); 652 + } 653 +} 654 + 655 +static int parse_bound(P *p, int n, const OscToken *kw) 656 +{ 657 + int arena = kw->kind == OT_ARENA; 658 + int limit = arena ? OSC_ARENA_MAX_CELLS : LOOP_BOUND_MAX; 659 + const OscToken *value = p->pos + 1 < p->ast->ntok ? cur(p) + 1 : cur(p); 660 + uint64_t status = osc_read_bound(cur(p)->kind, value->kind, value->ival, limit); 661 + if (status == OSC_BOUND_KEYWORD) { 662 + if (arena) return syntax(p, "'bound K' after the arena name"); 663 + osc_diag_set(p->d, OSC_DIAG_UNBOUNDED_LOOP, kw->line, kw->col, "while", 0, NULL, "while without bound", 664 + "'while' needs 'bound N' (static trip-count bound)"); 672 665 return -1; 673 666 } 674 - *out = neg ? (int64_t)(0 - t->ival) : (int64_t)t->ival; 667 + adv(p); 668 + if (status == OSC_BOUND_INT) return syntax(p, "bound INT"); 669 + if (status == OSC_BOUND_RANGE) { 670 + if (arena) { 671 + char nm[64]; 672 + osc_node_name(p->ast, N(n), nm, sizeof nm); 673 + osc_diag_set(p->d, OSC_DIAG_ARENA_CAPACITY, value->line, value->col, nm, kw->line, NULL, 674 + "arena bound outside 1..64", "arena bound %llu outside 1..%d cells", 675 + (unsigned long long)value->ival, limit); 676 + } else { 677 + osc_diag_set(p->d, OSC_DIAG_UNBOUNDED_LOOP, value->line, value->col, "while", kw->line, NULL, 678 + "bound outside 1..`1000000`", "loop bound %llu outside 1..%d", 679 + (unsigned long long)value->ival, limit); 680 + } 681 + return -1; 682 + } 683 + if (status != 0) abort(); 684 + N(n)->ival = value->ival; 675 685 adv(p); 676 686 return 0; 677 687 } 678 688 679 689 static int parse_if(P *p); 680 690 691 +_Static_assert(ON_ASSIGN == 8 && ON_STORE == 9 && ON_RETURN == 13 && ON_CALLSTMT == 14 && 692 + ON_FSTORE == 26 && ON_PFREE == 31, "statement plan AST kinds"); 693 + 694 +static int parse_simple_stmt(P *p) 695 +{ 696 + const OscToken *t = cur(p); 697 + const OscToken *third = p->ast->ntok - p->pos > 2 ? t + 2 : &p->ast->toks[p->ast->ntok - 1]; 698 + OscStmtPlan plan; 699 + if (osc_statement_plan(&plan, t->kind, peek_kind(p, 1), third->kind, 700 + (const uint8_t *)p->ast->src + third->off, third->len)) { 701 + adv(p); 702 + return syntax(p, "'=', '[' or '(' after a name at statement start"); 703 + } 704 + int n = plan.nodekind == ON_FSTORE ? parse_field_ref(p, ON_FSTORE) : new_node(p, plan.nodekind, t); 705 + if (n < 0) return -1; 706 + p->pos += plan.skip; 707 + int index = -1; 708 + for (unsigned i = 0; i < plan.steps; ++i) { 709 + unsigned action = plan.actions[i]; 710 + int child; 711 + switch (action) { 712 + case OSC_ST_CALL: child = parse_call(p); break; 713 + case OSC_ST_BORROW_A: child = parse_borrow(p); break; 714 + case OSC_ST_INDEX: 715 + case OSC_ST_EXPR_A: 716 + case OSC_ST_EXPR_B: child = parse_expr(p); break; 717 + case OSC_ST_STORE: 718 + if (at(p, OT_AMP)) { 719 + const OscToken *bt = cur(p); 720 + char nm[64]; 721 + osc_node_name(p->ast, N(n), nm, sizeof nm); 722 + osc_diag_set(p->d, OSC_DIAG_BORROW_OUTLIVES_OWNER, bt->line, bt->col, nm, 0, NULL, 723 + "store borrow into array", "a borrow cannot be stored anywhere but a borrow binding"); 724 + return -1; 725 + } 726 + child = parse_expr(p); 727 + break; 728 + default: 729 + if (expect(p, (int)action)) return -1; 730 + continue; 731 + } 732 + if (child < 0) return -1; 733 + if (action == OSC_ST_INDEX) index = child; 734 + else if (action == OSC_ST_STORE) { N(n)->a = index; N(n)->b = child; } 735 + else if (action == OSC_ST_EXPR_B) N(n)->b = child; 736 + else N(n)->a = child; 737 + } 738 + return n; 739 +} 740 + 681 741 static int parse_stmt(P *p) 682 742 { 683 743 const OscToken *t = cur(p); @@ -715,7 +775,7 @@ static int parse_stmt(P *p) 715 775 return -1; 716 776 } 717 777 adv(p); 718 - if (parse_ref_body(p, &N(n)->ty, OSC_REF_OWN)) return -1; 778 + if (parse_type(p, &N(n)->ty, OSC_TYPE_REF_BODY, OSC_REF_OWN)) return -1; 719 779 int in_arena = -1; /* OSC-2 arenas: "in NAME" */ 720 780 if (at(p, OT_IN)) { 721 781 adv(p); @@ -760,7 +820,7 @@ static int parse_stmt(P *p) 760 820 adv(p); 761 821 OscRefKind rk = OSC_REF_SHARED; 762 822 if (at(p, OT_MUT)) { rk = OSC_REF_MUT; adv(p); } 763 - if (parse_ref_body(p, &N(n)->ty, rk)) return -1; 823 + if (parse_type(p, &N(n)->ty, OSC_TYPE_REF_BODY, rk)) return -1; 764 824 if (expect(p, OT_ASSIGN)) return -1; 765 825 if (!at(p, OT_AMP)) return syntax(p, "a borrow '&name' or '&mut name'"); 766 826 int b = parse_borrow(p); @@ -769,7 +829,7 @@ static int parse_stmt(P *p) 769 829 } else { 770 830 N(n)->mut = (uint8_t)mut; 771 831 if (at(p, OT_NAME) && find_struct(p, cur(p)) >= 0) return struct_by_value(p, cur(p), "struct by value"); 772 - if (parse_scalar(p, &N(n)->ty)) return -1; 832 + if (parse_type(p, &N(n)->ty, OSC_TYPE_SCALAR, OSC_REF_NONE)) return -1; 773 833 if (expect(p, OT_ASSIGN)) return -1; 774 834 int e = parse_expr(p); 775 835 if (e < 0) return -1; @@ -778,76 +838,9 @@ static int parse_stmt(P *p) 778 838 if (expect(p, OT_SEMI)) return -1; 779 839 return n; 780 840 } 781 - case OT_NAME: { 782 - int k1 = peek_kind(p, 1); 783 - if (k1 == OT_LPAREN) { 784 - n = new_node(p, ON_CALLSTMT, t); 785 - if (n < 0) return -1; 786 - int c = parse_call(p); 787 - if (c < 0) return -1; 788 - N(n)->a = c; 789 - if (expect(p, OT_SEMI)) return -1; 790 - return n; 791 - } 792 - if (k1 == OT_DOT && peek_kind(p, 2) == OT_RESERVED && p->ast->toks[p->pos + 2].len == 4 && 793 - memcmp(p->ast->src + p->ast->toks[p->pos + 2].off, "free", 4) == 0) { /* OSC-3 item 2: P.free(h); */ 794 - n = new_node(p, ON_PFREE, t); 795 - if (n < 0) return -1; 796 - adv(p); adv(p); adv(p); 797 - if (expect(p, OT_LPAREN)) return -1; 798 - int h = parse_expr(p); 799 - if (h < 0) return -1; 800 - N(n)->a = h; 801 - if (expect(p, OT_RPAREN)) return -1; 802 - if (expect(p, OT_SEMI)) return -1; 803 - return n; 804 - } 805 - if (k1 == OT_DOT) { 806 - n = parse_field_ref(p, ON_FSTORE); 807 - if (n < 0) return -1; 808 - if (expect(p, OT_ASSIGN)) return -1; 809 - int v = parse_expr(p); 810 - if (v < 0) return -1; 811 - N(n)->b = v; 812 - if (expect(p, OT_SEMI)) return -1; 813 - return n; 814 - } 815 - if (k1 == OT_ASSIGN) { 816 - n = new_node(p, ON_ASSIGN, t); 817 - if (n < 0) return -1; 818 - adv(p); adv(p); 819 - int e = at(p, OT_AMP) ? parse_borrow(p) : parse_expr(p); 820 - if (e < 0) return -1; 821 - N(n)->a = e; 822 - if (expect(p, OT_SEMI)) return -1; 823 - return n; 824 - } 825 - if (k1 == OT_LBRACK) { 826 - n = new_node(p, ON_STORE, t); 827 - if (n < 0) return -1; 828 - adv(p); adv(p); 829 - int ix = parse_expr(p); 830 - if (ix < 0) return -1; 831 - if (expect(p, OT_RBRACK)) return -1; 832 - if (expect(p, OT_ASSIGN)) return -1; 833 - if (at(p, OT_AMP)) { 834 - const OscToken *bt = cur(p); 835 - char nm[64]; 836 - osc_node_name(p->ast, N(n), nm, sizeof nm); 837 - osc_diag_set(p->d, OSC_DIAG_BORROW_OUTLIVES_OWNER, bt->line, bt->col, nm, 0, NULL, 838 - "store borrow into array", "a borrow cannot be stored anywhere but a borrow binding"); 839 - return -1; 840 - } 841 - int v = parse_expr(p); 842 - if (v < 0) return -1; 843 - N(n)->a = ix; 844 - N(n)->b = v; 845 - if (expect(p, OT_SEMI)) return -1; 846 - return n; 847 - } 848 - adv(p); 849 - return syntax(p, "'=', '[' or '(' after a name at statement start"); 850 - } 841 + case OT_NAME: 842 + case OT_RETURN: 843 + return parse_simple_stmt(p); 851 844 case OT_POOL: { /* OSC-3 item 2: pool NAME: [T; K] [gen B] { ... } */ 852 845 n = new_node(p, ON_POOL, t); 853 846 if (n < 0) return -1; @@ -855,7 +848,7 @@ static int parse_stmt(P *p) 855 848 if (parse_name_tok(p, n)) return -1; 856 849 if (expect(p, OT_COLON)) return -1; 857 850 if (expect(p, OT_LBRACK)) return -1; 858 - if (parse_scalar(p, &N(n)->ty)) return -1; 851 + if (parse_type(p, &N(n)->ty, OSC_TYPE_SCALAR, OSC_REF_NONE)) return -1; 859 852 if (expect(p, OT_SEMI)) return -1; 860 853 if (!at(p, OT_INT)) return syntax(p, "a slot count INT"); 861 854 const OscToken *kt = cur(p); @@ -887,20 +880,7 @@ static int parse_stmt(P *p) 887 880 if (n < 0) return -1; 888 881 adv(p); 889 882 if (parse_name_tok(p, n)) return -1; 890 - if (!at(p, OT_BOUND)) return syntax(p, "'bound K' after the arena name"); 891 - adv(p); 892 - if (!at(p, OT_INT)) return syntax(p, "bound INT"); 893 - const OscToken *bt = cur(p); 894 - if (bt->ival == 0 || bt->ival > OSC_ARENA_MAX_CELLS) { 895 - char nm[64]; 896 - osc_node_name(p->ast, N(n), nm, sizeof nm); 897 - osc_diag_set(p->d, OSC_DIAG_ARENA_CAPACITY, bt->line, bt->col, nm, t->line, NULL, 898 - "arena bound outside 1..64", "arena bound %llu outside 1..%d cells", 899 - (unsigned long long)bt->ival, OSC_ARENA_MAX_CELLS); 900 - return -1; 901 - } 902 - N(n)->ival = bt->ival; 903 - adv(p); 883 + if (parse_bound(p, n, t)) return -1; 904 884 int b = parse_block(p); 905 885 if (b < 0) return -1; 906 886 N(n)->b = b; @@ -915,23 +895,8 @@ static int parse_stmt(P *p) 915 895 int c = parse_expr(p); 916 896 if (c < 0) return -1; 917 897 N(n)->a = c; 918 - if (!at(p, OT_BOUND)) { 919 - osc_diag_set(p->d, OSC_DIAG_UNBOUNDED_LOOP, t->line, t->col, "while", 0, NULL, "while without bound", 920 - "'while' needs 'bound N' (static trip-count bound)"); 921 - return -1; 922 - } 923 - adv(p); 924 - if (!at(p, OT_INT)) return syntax(p, "bound INT"); 925 - const OscToken *bt = cur(p); 926 - if (bt->ival == 0 || bt->ival > LOOP_BOUND_MAX) { 927 - osc_diag_set(p->d, OSC_DIAG_UNBOUNDED_LOOP, bt->line, bt->col, "while", t->line, NULL, 928 - "bound outside 1..`1000000`", "loop bound %llu outside 1..%d", 929 - (unsigned long long)bt->ival, LOOP_BOUND_MAX); 930 - return -1; 931 - } 932 - N(n)->ival = bt->ival; 898 + if (parse_bound(p, n, t)) return -1; 933 899 N(n)->flag = 1; 934 - adv(p); 935 900 int b = parse_block(p); 936 901 if (b < 0) return -1; 937 902 N(n)->b = b; @@ -941,37 +906,12 @@ static int parse_stmt(P *p) 941 906 n = new_node(p, ON_FOR, t); 942 907 if (n < 0) return -1; 943 908 adv(p); 944 - if (parse_name_tok(p, n)) return -1; 945 - if (expect(p, OT_IN)) return -1; 946 - const OscToken *lt = cur(p); 947 - if (parse_int_signed(p, &N(n)->lo)) return -1; 948 - if (expect(p, OT_DOTDOT)) return -1; 949 - if (parse_int_signed(p, &N(n)->hi)) return -1; 950 - if (N(n)->hi < N(n)->lo || (uint64_t)(N(n)->hi - N(n)->lo) > LOOP_BOUND_MAX) { 951 - char nm[64]; 952 - osc_node_name(p->ast, N(n), nm, sizeof nm); 953 - osc_diag_set(p->d, OSC_DIAG_UNBOUNDED_LOOP, lt->line, lt->col, nm, t->line, NULL, 954 - "for range outside 0..`1000000` trips", "for range must satisfy A <= B and B - A <= %d", 955 - LOOP_BOUND_MAX); 956 - return -1; 957 - } 909 + if (parse_for_range(p, n, t)) return -1; 958 910 int b = parse_block(p); 959 911 if (b < 0) return -1; 960 912 N(n)->b = b; 961 913 return n; 962 914 } 963 - case OT_RETURN: { 964 - n = new_node(p, ON_RETURN, t); 965 - if (n < 0) return -1; 966 - adv(p); 967 - if (!at(p, OT_SEMI)) { 968 - int e = at(p, OT_AMP) ? parse_borrow(p) : parse_expr(p); 969 - if (e < 0) return -1; 970 - N(n)->a = e; 971 - } 972 - if (expect(p, OT_SEMI)) return -1; 973 - return n; 974 - } 975 915 case OT_LBRACE: 976 916 return parse_block(p); 977 917 default: @@ -1025,6 +965,7 @@ static int parse_block(P *p) 1025 965 * source text is still recorded (token spellings joined by single spaces, 1026 966 * none after '(' or before ')') and carried into the IR; the expression node 1027 967 * is checked and lowered into runtime checks by the checker / lowerer. */ 968 +_Static_assert(OSC_CLAUSE_MAX == 256, "OSC clause buffer must match the Omega binding"); 1028 969 static int parse_clause(P *p, char *out, const OscToken *kw, int32_t *node) 1029 970 { 1030 971 uint32_t start = p->pos; @@ -1039,16 +980,13 @@ static int parse_clause(P *p, char *out, const OscToken *kw, int32_t *node) 1039 980 for (uint32_t i = start; i < p->pos; i++) { 1040 981 const OscToken *t = &p->ast->toks[i]; 1041 982 int k = t->kind; 1042 - int sp = len > 0 && prev != OT_LPAREN && k != OT_RPAREN; 1043 - if (len + (size_t)sp + t->len + 1 > OSC_CLAUSE_MAX) { 983 + len = osc_clause_word((uint8_t *)out, len, (uint64_t)prev, k, 984 + (const uint8_t *)p->ast->src + t->off, t->len); 985 + if (len == OSC_CLAUSE_MAX) { 1044 986 osc_diag_set(p->d, OSC_DIAG_CAPACITY, kw->line, kw->col, osc_tok_kind_name(kw->kind), 0, NULL, 1045 987 "contract text length", "contract clause longer than %d bytes", OSC_CLAUSE_MAX - 1); 1046 988 return -1; 1047 989 } 1048 - if (sp) out[len++] = ' '; 1049 - memcpy(out + len, p->ast->src + t->off, t->len); 1050 - len += t->len; 1051 - out[len] = 0; 1052 990 prev = k; 1053 991 } 1054 992 *node = e; @@ -1080,7 +1018,7 @@ static int parse_fn(P *p) 1080 1018 if (pn < 0) return -1; 1081 1019 if (parse_name_tok(p, pn)) return -1; 1082 1020 if (expect(p, OT_COLON)) return -1; 1083 - if (parse_ptype(p, &N(pn)->ty)) return -1; 1021 + if (parse_type(p, &N(pn)->ty, OSC_TYPE_PARAM, OSC_REF_NONE)) return -1; 1084 1022 int is_slice = N(pn)->ty.s == OSC_T_BYTES || N(pn)->ty.s == OSC_T_CELLS; 1085 1023 nslice += is_slice; 1086 1024 np += is_slice ? 2 : 1; /* parameter registers: a slice is pointer + length */ @@ -1118,7 +1056,7 @@ static int parse_fn(P *p) 1118 1056 "array return type", "OSC-1 functions return a scalar only"); 1119 1057 return -1; 1120 1058 } 1121 - if (parse_scalar(p, &N(f)->ty)) return -1; 1059 + if (parse_type(p, &N(f)->ty, OSC_TYPE_SCALAR, OSC_REF_NONE)) return -1; 1122 1060 } 1123 1061 uint32_t fi = a->nfns; 1124 1062 a->req[fi][0] = a->ens[fi][0] = 0; @@ -1145,10 +1083,21 @@ static int parse_import(P *p) 1145 1083 { 1146 1084 OscAst *a = p->ast; 1147 1085 const OscToken *kw = cur(p); 1086 + const OscToken *nm = kw + 1; /* The import token always precedes another token or EOF. */ 1087 + size_t slots = a->nimports < OSC_MAX_IMPORTS ? a->nimports + 1u : 0u; 1088 + OscImportParse entry = {.started = a->nstructs || a->nfns, .stride = sizeof(OscImport), 1089 + .nameoff = offsetof(OscImport, name), .nextkind = peek_kind(p, 2)}; 1090 + uint64_t status = osc_read_import(&entry, nm->kind, 1091 + (const uint8_t *)a->src + nm->off, nm->len, 1092 + (uint8_t *)a->imports, slots * sizeof(OscImport)); 1093 + if (status == OSC_IMPORT_POSITION) { 1094 + osc_diag_set(p->d, OSC_DIAG_SYNTAX, kw->line, kw->col, "import", 0, NULL, "import position", 1095 + "imports must come before any struct or function"); 1096 + return -1; 1097 + } 1148 1098 adv(p); 1149 - if (!at(p, OT_NAME)) return syntax(p, "NAME"); 1150 - const OscToken *nm = cur(p); 1151 - if (a->nimports >= OSC_MAX_IMPORTS) { 1099 + if (status == OSC_IMPORT_NAME) return syntax(p, "NAME"); 1100 + if (status == OSC_IMPORT_FULL) { 1152 1101 osc_diag_set(p->d, OSC_DIAG_CAPACITY, kw->line, kw->col, "unit", 0, NULL, "import capacity", 1153 1102 "more than %d imports", OSC_MAX_IMPORTS); 1154 1103 return -1; @@ -1156,15 +1105,15 @@ static int parse_import(P *p) 1156 1105 OscImport *im = &a->imports[a->nimports]; 1157 1106 im->line = nm->line; 1158 1107 im->col = nm->col; 1159 - osc_tok_text(a->src, nm, im->name, sizeof im->name); 1160 - for (uint8_t k = 0; k < a->nimports; k++) 1161 - if (strcmp(a->imports[k].name, im->name) == 0) { 1162 - osc_diag_set(p->d, OSC_DIAG_REDEFINED_NAME, nm->line, nm->col, im->name, a->imports[k].line, NULL, 1163 - "import", "import '%s' is listed twice", im->name); 1164 - return -1; 1165 - } 1108 + if (status == OSC_IMPORT_DUP) { 1109 + osc_diag_set(p->d, OSC_DIAG_REDEFINED_NAME, nm->line, nm->col, im->name, a->imports[entry.match].line, NULL, 1110 + "import", "import '%s' is listed twice", im->name); 1111 + return -1; 1112 + } 1113 + adv(p); 1114 + if (status == OSC_IMPORT_SEMI) return syntax(p, osc_tok_kind_name(OT_SEMI)); 1115 + if (status != 0) abort(); 1166 1116 adv(p); 1167 - if (expect(p, OT_SEMI)) return -1; 1168 1117 a->nimports++; 1169 1118 return 0; 1170 1119 } @@ -1179,12 +1128,6 @@ int osc_parse(OscAst *ast, OscDiag *d) 1179 1128 ast->nimports = 0; 1180 1129 while (!at(&p, OT_EOF)) { 1181 1130 if (at(&p, OT_IMPORT)) { 1182 - if (ast->nstructs || ast->nfns) { 1183 - const OscToken *t = cur(&p); 1184 - osc_diag_set(d, OSC_DIAG_SYNTAX, t->line, t->col, "import", 0, NULL, "import position", 1185 - "imports must come before any struct or function"); 1186 - return -1; 1187 - } 1188 1131 if (parse_import(&p)) return -1; 1189 1132 continue; 1190 1133 } src/omega_api_decl.h @@ -168,8 +168,316 @@ uint64_t rx_fus_word64(const uint8_t o_d[8]); 168 168 uint64_t rx_fus_eligible_kind(uint64_t o_k); 169 169 #define OSC_LITERAL_MALFORMED 1 170 170 #define OSC_LITERAL_OVERFLOW 2 171 +#define OSC_LEX_COMMENT 3 172 +#define OSC_LEX_FULL 4 173 +#define OSC_LEX_NAME_LONG 5 174 +#define OSC_LEX_BAD_BYTE 6 175 +typedef struct { 176 + uint64_t pos; 177 + uint64_t start; 178 + uint64_t value; 179 + uint32_t line; 180 + uint32_t col; 181 + uint32_t width; 182 + uint32_t kind; 183 +} OscLexState; 184 +OMBR_ASSERT(sizeof(OscLexState) == 40, "layout lexstate size"); 185 +OMBR_ASSERT(offsetof(OscLexState, pos) == 0, "layout lexstate field pos"); 186 +OMBR_ASSERT(offsetof(OscLexState, start) == 8, "layout lexstate field start"); 187 +OMBR_ASSERT(offsetof(OscLexState, value) == 16, "layout lexstate field value"); 188 +OMBR_ASSERT(offsetof(OscLexState, line) == 24, "layout lexstate field line"); 189 +OMBR_ASSERT(offsetof(OscLexState, col) == 28, "layout lexstate field col"); 190 +OMBR_ASSERT(offsetof(OscLexState, width) == 32, "layout lexstate field width"); 191 +OMBR_ASSERT(offsetof(OscLexState, kind) == 36, "layout lexstate field kind"); 192 +typedef struct { 193 + uint16_t kind; 194 + uint8_t ombr_pad2[2]; 195 + uint32_t line; 196 + uint32_t col; 197 + uint32_t off; 198 + uint32_t width; 199 + uint8_t ombr_pad20[4]; 200 + uint64_t value; 201 +} osctoken; 202 +OMBR_ASSERT(sizeof(osctoken) == 32, "layout osctoken size"); 203 +OMBR_ASSERT(offsetof(osctoken, kind) == 0, "layout osctoken field kind"); 204 +OMBR_ASSERT(offsetof(osctoken, line) == 4, "layout osctoken field line"); 205 +OMBR_ASSERT(offsetof(osctoken, col) == 8, "layout osctoken field col"); 206 +OMBR_ASSERT(offsetof(osctoken, off) == 12, "layout osctoken field off"); 207 +OMBR_ASSERT(offsetof(osctoken, width) == 16, "layout osctoken field width"); 208 +OMBR_ASSERT(offsetof(osctoken, value) == 24, "layout osctoken field value"); 171 209 /* export fn osc_parse_literal spelling view uchar * value out ulong 1 to ulong */ 172 210 uint64_t osc_parse_literal(const uint8_t *o_spelling, size_t o_spelling_len, uint64_t o_value[1]); 211 +/* export fn osc_lex_next src view uchar * cursor edit lexstate room ulong namemax ulong to ulong */ 212 +uint64_t osc_lex_next(const uint8_t *o_src, size_t o_src_len, OscLexState *o_cursor, uint64_t o_room, uint64_t o_namemax); 213 +/* export fn osc_lex_stream src view uchar * cursor edit lexstate dest edit uchar * count edit ulong 1 to ulong */ 214 +uint64_t osc_lex_stream(const uint8_t *o_src, size_t o_src_len, OscLexState *o_cursor, uint8_t *o_dest, size_t o_dest_len, uint64_t o_count[1]); 215 +#define OSC_TYPE_WINDOW 7 216 +#define OSC_TYPE_SCALAR 1 217 +#define OSC_TYPE_ARRAY 2 218 +#define OSC_TYPE_REF_BODY 3 219 +#define OSC_TYPE_PARAM 4 220 +#define OSC_TYPE_EXPECT_SCALAR 1 221 +#define OSC_TYPE_SLICE_ESCAPE 2 222 +#define OSC_TYPE_EXPECT_OPEN 3 223 +#define OSC_TYPE_EXPECT_SEMI 4 224 +#define OSC_TYPE_EXPECT_LENGTH 5 225 +#define OSC_TYPE_ZERO_LENGTH 6 226 +#define OSC_TYPE_LONG_ARRAY 7 227 +#define OSC_TYPE_EXPECT_CLOSE 8 228 +#define OSC_TYPE_NAMED_REF 9 229 +#define OSC_TYPE_BARE_NAME 10 230 +#define OSC_TYPE_LOCAL_ONLY 11 231 +typedef struct { 232 + uint32_t used; 233 + uint32_t scalar; 234 + uint32_t refkind; 235 + uint32_t elem; 236 + uint64_t count; 237 +} OscParsedType; 238 +OMBR_ASSERT(sizeof(OscParsedType) == 24, "layout typerec size"); 239 +OMBR_ASSERT(offsetof(OscParsedType, used) == 0, "layout typerec field used"); 240 +OMBR_ASSERT(offsetof(OscParsedType, scalar) == 4, "layout typerec field scalar"); 241 +OMBR_ASSERT(offsetof(OscParsedType, refkind) == 8, "layout typerec field refkind"); 242 +OMBR_ASSERT(offsetof(OscParsedType, elem) == 12, "layout typerec field elem"); 243 +OMBR_ASSERT(offsetof(OscParsedType, count) == 16, "layout typerec field count"); 244 +/* export fn osc_read_type kinds view ushort 7 values view ulong 7 form ulong refkind ulong limit ulong result edit typerec to ulong */ 245 +uint64_t osc_read_type(const uint16_t o_kinds[7], const uint64_t o_values[7], uint64_t o_form, uint64_t o_refkind, uint64_t o_limit, OscParsedType *o_result); 246 +#define OSC_EXPR_DONE 0 247 +#define OSC_EXPR_SHIFT 1 248 +#define OSC_EXPR_REDUCE 2 249 +#define OSC_EXPR_CHAINED 3 250 +#define OSC_OPERAND_DONE 0 251 +#define OSC_OPERAND_PREFIX 1 252 +#define OSC_OPERAND_INTEGER 2 253 +#define OSC_OPERAND_TRUE 3 254 +#define OSC_OPERAND_FALSE 4 255 +#define OSC_OPERAND_NAME 5 256 +#define OSC_OPERAND_CALL 6 257 +#define OSC_OPERAND_FIELD 7 258 +#define OSC_OPERAND_INDEX 8 259 +#define OSC_OPERAND_POOL 9 260 +#define OSC_OPERAND_GROUP 10 261 +#define OSC_OPERAND_BORROW_ERROR 11 262 +#define OSC_OPERAND_SYNTAX 12 263 +#define OSC_OPERAND_CAST 13 264 +#define OSC_OPERAND_CAST_ERROR 14 265 +#define OSC_OPERAND_UNWIND 15 266 +typedef struct { 267 + uint32_t depth; 268 + uint32_t rank[9]; 269 + int32_t node[9]; 270 + int32_t lhs[9]; 271 + int32_t parent; 272 + int32_t left; 273 +} OscExprStack; 274 +OMBR_ASSERT(sizeof(OscExprStack) == 120, "layout exprstk size"); 275 +OMBR_ASSERT(offsetof(OscExprStack, depth) == 0, "layout exprstk field depth"); 276 +OMBR_ASSERT(offsetof(OscExprStack, rank) == 4, "layout exprstk field rank"); 277 +OMBR_ASSERT(offsetof(OscExprStack, node) == 40, "layout exprstk field node"); 278 +OMBR_ASSERT(offsetof(OscExprStack, lhs) == 76, "layout exprstk field lhs"); 279 +OMBR_ASSERT(offsetof(OscExprStack, parent) == 112, "layout exprstk field parent"); 280 +OMBR_ASSERT(offsetof(OscExprStack, left) == 116, "layout exprstk field left"); 281 +typedef struct { 282 + uint32_t phase; 283 + uint32_t prefixes; 284 + uint32_t pending; 285 +} OscOperandState; 286 +OMBR_ASSERT(sizeof(OscOperandState) == 12, "layout opstate size"); 287 +OMBR_ASSERT(offsetof(OscOperandState, phase) == 0, "layout opstate field phase"); 288 +OMBR_ASSERT(offsetof(OscOperandState, prefixes) == 4, "layout opstate field prefixes"); 289 +OMBR_ASSERT(offsetof(OscOperandState, pending) == 8, "layout opstate field pending"); 290 +/* export fn osc_expr_step stack edit exprstk look ulong operand ulong to ulong */ 291 +uint64_t osc_expr_step(OscExprStack *o_stack, uint64_t o_look, uint64_t o_operand); 292 +/* export fn osc_operand_step state edit opstate kind ulong nextkind ulong third ulong to ulong */ 293 +uint64_t osc_operand_step(OscOperandState *o_state, uint64_t o_kind, uint64_t o_nextkind, uint64_t o_third); 294 +#define OSC_INFER_DONE 0 295 +#define OSC_INFER_CHECK 1 296 +#define OSC_INFER_CAST_LITERAL 2 297 +#define OSC_INFER_COMPARE_LITERALS 3 298 +#define OSC_INFER_COMPARE_BOOL 4 299 +#define OSC_INFER_ARITH_BOOL 5 300 +#define OSC_INFER_UNARY_TYPE 6 301 +#define OSC_INFER_CAST_TYPE 7 302 +#define OSC_INFER_SHIFT_TYPE 8 303 +#define OSC_INFER_AMOUNT_TYPE 9 304 +#define OSC_INFER_SHIFT_RANGE 10 305 +#define OSC_INFER_ARITH_TYPE 11 306 +#define OSC_INFER_ZERO_DIVISOR 12 307 +typedef struct { 308 + uint64_t v[6]; 309 + uint8_t k[6]; 310 + uint8_t ombr_pad54[2]; 311 + int32_t nk; 312 + int32_t res_sym; 313 + uint8_t known; 314 + uint8_t ombr_pad65[7]; 315 + uint64_t result; 316 +} OscContractBindings; 317 +OMBR_ASSERT(sizeof(OscContractBindings) == 80, "layout contract size"); 318 +OMBR_ASSERT(offsetof(OscContractBindings, v) == 0, "layout contract field v"); 319 +OMBR_ASSERT(offsetof(OscContractBindings, k) == 48, "layout contract field k"); 320 +OMBR_ASSERT(offsetof(OscContractBindings, nk) == 56, "layout contract field nk"); 321 +OMBR_ASSERT(offsetof(OscContractBindings, res_sym) == 60, "layout contract field res_sym"); 322 +OMBR_ASSERT(offsetof(OscContractBindings, known) == 64, "layout contract field known"); 323 +OMBR_ASSERT(offsetof(OscContractBindings, result) == 72, "layout contract field result"); 324 +typedef struct { 325 + uint64_t root; 326 + uint64_t want; 327 + uint64_t phase; 328 + uint64_t first; 329 + uint64_t second; 330 + uint64_t literal2; 331 + uint64_t optype; 332 + uint64_t site; 333 + uint64_t context; 334 +} OscInference; 335 +OMBR_ASSERT(sizeof(OscInference) == 72, "layout infer size"); 336 +OMBR_ASSERT(offsetof(OscInference, root) == 0, "layout infer field root"); 337 +OMBR_ASSERT(offsetof(OscInference, want) == 8, "layout infer field want"); 338 +OMBR_ASSERT(offsetof(OscInference, phase) == 16, "layout infer field phase"); 339 +OMBR_ASSERT(offsetof(OscInference, first) == 24, "layout infer field first"); 340 +OMBR_ASSERT(offsetof(OscInference, second) == 32, "layout infer field second"); 341 +OMBR_ASSERT(offsetof(OscInference, literal2) == 40, "layout infer field literal2"); 342 +OMBR_ASSERT(offsetof(OscInference, optype) == 48, "layout infer field optype"); 343 +OMBR_ASSERT(offsetof(OscInference, site) == 56, "layout infer field site"); 344 +OMBR_ASSERT(offsetof(OscInference, context) == 64, "layout infer field context"); 345 +/* export fn osc_alu_width t ulong to ulong */ 346 +uint64_t osc_alu_width(uint64_t o_t); 347 +/* export fn osc_alu_canon t ulong v ulong to ulong */ 348 +uint64_t osc_alu_canon(uint64_t o_t, uint64_t o_v); 349 +/* export fn osc_alu_bin op ulong t ulong a ulong b ulong value out ulong 1 to ulong */ 350 +uint64_t osc_alu_bin(uint64_t o_op, uint64_t o_t, uint64_t o_a, uint64_t o_b, uint64_t o_value[1]); 351 +/* export fn osc_alu_un op ulong t ulong a ulong value out ulong 1 to ulong */ 352 +uint64_t osc_alu_un(uint64_t o_op, uint64_t o_t, uint64_t o_a, uint64_t o_value[1]); 353 +/* export fn osc_alu_cmp cc ulong t ulong a ulong b ulong to ulong */ 354 +uint64_t osc_alu_cmp(uint64_t o_cc, uint64_t o_t, uint64_t o_a, uint64_t o_b); 355 +/* export fn osc_alu_cast target ulong src ulong a ulong value out ulong 1 to ulong */ 356 +uint64_t osc_alu_cast(uint64_t o_target, uint64_t o_src, uint64_t o_a, uint64_t o_value[1]); 357 +/* export fn osc_binary_opcode tok ulong to ulong */ 358 +uint64_t osc_binary_opcode(uint64_t o_tok); 359 +/* export fn osc_compare_opcode tok ulong to ulong */ 360 +uint64_t osc_compare_opcode(uint64_t o_tok); 361 +/* export fn osc_literal_fits t ulong magnitude ulong negative ulong to ulong */ 362 +uint64_t osc_literal_fits(uint64_t o_t, uint64_t o_magnitude, uint64_t o_negative); 363 +/* export fn osc_contract_value nodes view uchar * env view contract stack edit ulong * request edit ulong 2 to ulong */ 364 +uint64_t osc_contract_value(const uint8_t *o_nodes, size_t o_nodes_len, const OscContractBindings *o_env, uint64_t *o_stack, size_t o_stack_len, uint64_t o_request[2]); 365 +/* export fn osc_constant_tree nodes view uchar * id ulong require_literals ulong pending edit ulong * to ulong */ 366 +uint64_t osc_constant_tree(const uint8_t *o_nodes, size_t o_nodes_len, uint64_t o_id, uint64_t o_require_literals, uint64_t *o_pending, size_t o_pending_len); 367 +/* export fn osc_fold_tree nodes edit uchar * typ ulong stack edit ulong * report edit ulong 3 to ulong */ 368 +uint64_t osc_fold_tree(uint8_t *o_nodes, size_t o_nodes_len, uint64_t o_typ, uint64_t *o_stack, size_t o_stack_len, uint64_t o_report[3]); 369 +/* export fn osc_infer_step nodes edit uchar * stack edit ulong * frame edit infer checked ulong to ulong */ 370 +uint64_t osc_infer_step(uint8_t *o_nodes, size_t o_nodes_len, uint64_t *o_stack, size_t o_stack_len, OscInference *o_frame, uint64_t o_checked); 371 +#define OSC_A64_ERR_UNUSED_SHIFT 1 372 +#define OSC_A64_ERR_UNUSED_COND 2 373 +#define OSC_A64_ERR_UNUSED_IMM2 3 374 +#define OSC_A64_ERR_UNUSED_IMM 4 375 +#define OSC_A64_ERR_SHIFT_KIND 5 376 +#define OSC_A64_ERR_SHIFT_AMOUNT 6 377 +#define OSC_A64_ERR_IMM12 7 378 +#define OSC_A64_ERR_LSL12 8 379 +#define OSC_A64_ERR_IMMR 9 380 +#define OSC_A64_ERR_IMMS 10 381 +#define OSC_A64_ERR_COND 11 382 +#define OSC_A64_ERR_IMM16 12 383 +#define OSC_A64_ERR_MOV_SHIFT 13 384 +#define OSC_A64_ERR_MEM_OFFSET 14 385 +#define OSC_A64_ERR_PAIR_OFFSET 15 386 +#define OSC_A64_ERR_WRITEBACK_ALIAS 16 387 +#define OSC_A64_ERR_LOAD_ALIAS 17 388 +#define OSC_A64_ERR_BRANCH_OFFSET 18 389 +#define OSC_A64_ERR_BRANCH_COND 19 390 +typedef struct { 391 + uint32_t rd; 392 + uint32_t rn; 393 + uint32_t rm; 394 + uint32_t ra; 395 + uint32_t shift; 396 + uint32_t cond; 397 + int64_t imm; 398 + int64_t imm2; 399 +} OscA64Fields; 400 +OMBR_ASSERT(sizeof(OscA64Fields) == 40, "layout a64field size"); 401 +OMBR_ASSERT(offsetof(OscA64Fields, rd) == 0, "layout a64field field rd"); 402 +OMBR_ASSERT(offsetof(OscA64Fields, rn) == 4, "layout a64field field rn"); 403 +OMBR_ASSERT(offsetof(OscA64Fields, rm) == 8, "layout a64field field rm"); 404 +OMBR_ASSERT(offsetof(OscA64Fields, ra) == 12, "layout a64field field ra"); 405 +OMBR_ASSERT(offsetof(OscA64Fields, shift) == 16, "layout a64field field shift"); 406 +OMBR_ASSERT(offsetof(OscA64Fields, cond) == 20, "layout a64field field cond"); 407 +OMBR_ASSERT(offsetof(OscA64Fields, imm) == 24, "layout a64field field imm"); 408 +OMBR_ASSERT(offsetof(OscA64Fields, imm2) == 32, "layout a64field field imm2"); 409 +/* export fn osc_a64_pack_fields form ulong base ulong f view a64field to ulong */ 410 +uint64_t osc_a64_pack_fields(uint64_t o_form, uint64_t o_base, const OscA64Fields *o_f); 411 +/* export fn osc_a64_unpack_fields form ulong word ulong f edit a64field to void */ 412 +void osc_a64_unpack_fields(uint64_t o_form, uint64_t o_word, OscA64Fields *o_f); 413 +/* export fn osc_a64_check_fields cls ulong f view a64field writeback ulong loadpair ulong to ulong */ 414 +uint64_t osc_a64_check_fields(uint64_t o_cls, const OscA64Fields *o_f, uint64_t o_writeback, uint64_t o_loadpair); 415 +#define OSC_FOR_WINDOW 7 416 +#define OSC_FOR_NAME 1 417 +#define OSC_FOR_IN 2 418 +#define OSC_FOR_INT 3 419 +#define OSC_FOR_OVERFLOW 4 420 +#define OSC_FOR_DOTS 5 421 +#define OSC_FOR_TRIPS 6 422 +#define OSC_BOUND_KEYWORD 1 423 +#define OSC_BOUND_INT 2 424 +#define OSC_BOUND_RANGE 3 425 +#define OSC_IMPORT_POSITION 1 426 +#define OSC_IMPORT_NAME 2 427 +#define OSC_IMPORT_FULL 3 428 +#define OSC_IMPORT_DUP 4 429 +#define OSC_IMPORT_SEMI 5 430 +#define OSC_ST_CALL 70 431 +#define OSC_ST_EXPR_A 71 432 +#define OSC_ST_EXPR_B 72 433 +#define OSC_ST_BORROW_A 73 434 +#define OSC_ST_INDEX 74 435 +#define OSC_ST_STORE 75 436 +typedef struct { 437 + uint32_t used; 438 + uint32_t lower_at; 439 + uint64_t low; 440 + uint64_t high; 441 +} OscForRange; 442 +OMBR_ASSERT(sizeof(OscForRange) == 24, "layout forrange size"); 443 +OMBR_ASSERT(offsetof(OscForRange, used) == 0, "layout forrange field used"); 444 +OMBR_ASSERT(offsetof(OscForRange, lower_at) == 4, "layout forrange field lower_at"); 445 +OMBR_ASSERT(offsetof(OscForRange, low) == 8, "layout forrange field low"); 446 +OMBR_ASSERT(offsetof(OscForRange, high) == 16, "layout forrange field high"); 447 +typedef struct { 448 + uint32_t skip; 449 + uint32_t steps; 450 + uint32_t actions[5]; 451 + uint32_t nodekind; 452 +} OscStmtPlan; 453 +OMBR_ASSERT(sizeof(OscStmtPlan) == 32, "layout stmtplan size"); 454 +OMBR_ASSERT(offsetof(OscStmtPlan, skip) == 0, "layout stmtplan field skip"); 455 +OMBR_ASSERT(offsetof(OscStmtPlan, steps) == 4, "layout stmtplan field steps"); 456 +OMBR_ASSERT(offsetof(OscStmtPlan, actions) == 8, "layout stmtplan field actions"); 457 +OMBR_ASSERT(offsetof(OscStmtPlan, nodekind) == 28, "layout stmtplan field nodekind"); 458 +typedef struct { 459 + uint32_t started; 460 + uint32_t stride; 461 + uint32_t nameoff; 462 + uint32_t match; 463 + uint32_t nextkind; 464 +} OscImportParse; 465 +OMBR_ASSERT(sizeof(OscImportParse) == 20, "layout imprec size"); 466 +OMBR_ASSERT(offsetof(OscImportParse, started) == 0, "layout imprec field started"); 467 +OMBR_ASSERT(offsetof(OscImportParse, stride) == 4, "layout imprec field stride"); 468 +OMBR_ASSERT(offsetof(OscImportParse, nameoff) == 8, "layout imprec field nameoff"); 469 +OMBR_ASSERT(offsetof(OscImportParse, match) == 12, "layout imprec field match"); 470 +OMBR_ASSERT(offsetof(OscImportParse, nextkind) == 16, "layout imprec field nextkind"); 471 +/* export fn osc_for_range kinds view ushort 7 values view ulong 7 limit ulong range edit forrange to ulong */ 472 +uint64_t osc_for_range(const uint16_t o_kinds[7], const uint64_t o_values[7], uint64_t o_limit, OscForRange *o_range); 473 +/* export fn osc_read_bound keyword ulong kind ulong value ulong limit ulong to ulong */ 474 +uint64_t osc_read_bound(uint64_t o_keyword, uint64_t o_kind, uint64_t o_value, uint64_t o_limit); 475 +/* export fn osc_read_import state edit imprec kind ulong spelling view uchar * table edit uchar * to ulong */ 476 +uint64_t osc_read_import(OscImportParse *o_state, uint64_t o_kind, const uint8_t *o_spelling, size_t o_spelling_len, uint8_t *o_table, size_t o_table_len); 477 +/* export fn osc_clause_word dst edit uchar 256 used ulong prev ulong kind ulong word view uchar * to ulong */ 478 +uint64_t osc_clause_word(uint8_t o_dst[256], uint64_t o_used, uint64_t o_prev, uint64_t o_kind, const uint8_t *o_word, size_t o_word_len); 479 +/* export fn osc_statement_plan plan edit stmtplan kind ulong nextkind ulong third ulong spelling view uchar * to ulong */ 480 +uint64_t osc_statement_plan(OscStmtPlan *o_plan, uint64_t o_kind, uint64_t o_nextkind, uint64_t o_third, const uint8_t *o_spelling, size_t o_spelling_len); 173 481 #define OSC_OWN_ALLOWED 0 174 482 #define OSC_OWN_MOVED 1 175 483 #define OSC_OWN_ALIAS 2 @@ -234,6 +542,61 @@ void osc_open_reborrow(OscCheckedBorrow *o_parent, OscCheckedBorrow *o_child, in 234 542 void osc_close_borrow(OscCheckedOwner *o_owner, OscCheckedBorrow *o_child); 235 543 /* export fn osc_close_reborrow parent edit oscbor child edit oscbor to void */ 236 544 void osc_close_reborrow(OscCheckedBorrow *o_parent, OscCheckedBorrow *o_child); 545 +/* export fn osc_join_owners taken view uchar * remaining edit uchar * changes edit int * to ulong */ 546 +uint64_t osc_join_owners(const uint8_t *o_taken, size_t o_taken_len, uint8_t *o_remaining, size_t o_remaining_len, int32_t *o_changes, size_t o_changes_len); 547 +typedef struct { 548 + uint16_t head[256]; 549 + uint16_t prior[480]; 550 + uint16_t bucket[480]; 551 + uint16_t visible[480]; 552 + uint16_t start[136]; 553 + uint32_t count; 554 + uint32_t depth; 555 +} OscCheckedScope; 556 +OMBR_ASSERT(sizeof(OscCheckedScope) == 3672, "layout scopetab size"); 557 +OMBR_ASSERT(offsetof(OscCheckedScope, head) == 0, "layout scopetab field head"); 558 +OMBR_ASSERT(offsetof(OscCheckedScope, prior) == 512, "layout scopetab field prior"); 559 +OMBR_ASSERT(offsetof(OscCheckedScope, bucket) == 1472, "layout scopetab field bucket"); 560 +OMBR_ASSERT(offsetof(OscCheckedScope, visible) == 2432, "layout scopetab field visible"); 561 +OMBR_ASSERT(offsetof(OscCheckedScope, start) == 3392, "layout scopetab field start"); 562 +OMBR_ASSERT(offsetof(OscCheckedScope, count) == 3664, "layout scopetab field count"); 563 +OMBR_ASSERT(offsetof(OscCheckedScope, depth) == 3668, "layout scopetab field depth"); 564 +/* export fn osc_scope_reset table edit scopetab to void */ 565 +void osc_scope_reset(OscCheckedScope *o_table); 566 +/* export fn osc_scope_find table view scopetab symbols view uchar * stride ulong name view uchar * to long */ 567 +int64_t osc_scope_find(const OscCheckedScope *o_table, const uint8_t *o_symbols, size_t o_symbols_len, uint64_t o_stride, const uint8_t *o_name, size_t o_name_len); 568 +/* export fn osc_scope_bind table edit scopetab id ulong name view uchar * to void */ 569 +void osc_scope_bind(OscCheckedScope *o_table, uint64_t o_id, const uint8_t *o_name, size_t o_name_len); 570 +/* export fn osc_scope_push table edit scopetab to ulong */ 571 +uint64_t osc_scope_push(OscCheckedScope *o_table); 572 +/* export fn osc_scope_pop table edit scopetab to void */ 573 +void osc_scope_pop(OscCheckedScope *o_table); 574 +#define OSC_POOL_FULL 1 575 +#define OSC_POOL_RETIRED 2 576 +typedef struct { 577 + uint64_t gbase; 578 + uint64_t dallocs; 579 + int32_t loop; 580 + int32_t branch; 581 + uint16_t cap; 582 + uint16_t dlive; 583 + uint8_t cap_off; 584 + uint8_t ombr_pad29[3]; 585 +} OscCheckedPool; 586 +OMBR_ASSERT(sizeof(OscCheckedPool) == 32, "layout poolstat size"); 587 +OMBR_ASSERT(offsetof(OscCheckedPool, gbase) == 0, "layout poolstat field gbase"); 588 +OMBR_ASSERT(offsetof(OscCheckedPool, dallocs) == 8, "layout poolstat field dallocs"); 589 +OMBR_ASSERT(offsetof(OscCheckedPool, loop) == 16, "layout poolstat field loop"); 590 +OMBR_ASSERT(offsetof(OscCheckedPool, branch) == 20, "layout poolstat field branch"); 591 +OMBR_ASSERT(offsetof(OscCheckedPool, cap) == 24, "layout poolstat field cap"); 592 +OMBR_ASSERT(offsetof(OscCheckedPool, dlive) == 26, "layout poolstat field dlive"); 593 +OMBR_ASSERT(offsetof(OscCheckedPool, cap_off) == 28, "layout poolstat field cap_off"); 594 +/* export fn osc_pool_init p edit poolstat cap ulong base ulong loop_depth long cond_depth long to void */ 595 +void osc_pool_init(OscCheckedPool *o_p, uint64_t o_cap, uint64_t o_base, int64_t o_loop_depth, int64_t o_cond_depth); 596 +/* export fn osc_pool_alloc p edit poolstat loop_depth long cond_depth long to ulong */ 597 +uint64_t osc_pool_alloc(OscCheckedPool *o_p, int64_t o_loop_depth, int64_t o_cond_depth); 598 +/* export fn osc_pool_free p edit poolstat loop_depth long cond_depth long to void */ 599 +void osc_pool_free(OscCheckedPool *o_p, int64_t o_loop_depth, int64_t o_cond_depth); 237 600 #ifdef __cplusplus 238 601 } 239 602 #endif src/omega_native.h @@ -207,11 +207,73 @@ const char *omega2_ident_rx_fusion_core(void); 207 207 uint32_t omega2_rx_fus_word64(uint64_t *result, const uint8_t *o_d, uint64_t o_d_len); 208 208 /* export fn rx_fus_eligible_kind k ulong to ulong */ 209 209 uint32_t omega2_rx_fus_eligible_kind(uint64_t *result, uint64_t o_k); 210 -#define OMEGA2_IDENT_osc_literal "omega-ident 1 unit=osc_literal abi=2 profile=OM-2 src=`c61bdcbb9f71b01df86fba045b4206809091e709eba208939a4270b67dabbce2` omc=`b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2`" 210 +#define OMEGA2_IDENT_osc_literal "omega-ident 1 unit=osc_literal abi=2 profile=OM-2 src=`ed2da39b4adba054db253cd7bd5b5f7e7c68a773f7b676be6fb7ed9825cb0c0f` omc=`b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2`" 211 211 const char *omega2_ident_osc_literal(void); 212 212 /* export fn osc_parse_literal spelling view uchar * value out ulong 1 to ulong */ 213 213 uint32_t omega2_osc_parse_literal(uint64_t *result, const uint8_t *o_spelling, uint64_t o_spelling_len, uint64_t *o_value); 214 -#define OMEGA2_IDENT_osc_ownership "omega-ident 1 unit=osc_ownership abi=2 profile=OM-2 src=`4057f369075c9ea7e8df9c208f640eb5361dacd2608138cb04b853db082c4d33` omc=`b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2`" 214 +/* export fn osc_lex_next src view uchar * cursor edit lexstate room ulong namemax ulong to ulong */ 215 +uint32_t omega2_osc_lex_next(uint64_t *result, const uint8_t *o_src, uint64_t o_src_len, uint8_t *o_cursor, uint64_t o_room, uint64_t o_namemax); 216 +/* export fn osc_lex_stream src view uchar * cursor edit lexstate dest edit uchar * count edit ulong 1 to ulong */ 217 +uint32_t omega2_osc_lex_stream(uint64_t *result, const uint8_t *o_src, uint64_t o_src_len, uint8_t *o_cursor, uint8_t *o_dest, uint64_t o_dest_len, uint64_t *o_count, uint64_t o_count_len); 218 +#define OMEGA2_IDENT_osc_type "omega-ident 1 unit=osc_type abi=2 profile=OM-2 src=`a33e7745e4cdb1a968b06aff6016de192ef8a2a9d0d2946f5b1f79c91c7f2cba` omc=`b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2`" 219 +const char *omega2_ident_osc_type(void); 220 +/* export fn osc_read_type kinds view ushort 7 values view ulong 7 form ulong refkind ulong limit ulong result edit typerec to ulong */ 221 +uint32_t omega2_osc_read_type(uint64_t *result, const uint16_t *o_kinds, uint64_t o_kinds_len, const uint64_t *o_values, uint64_t o_values_len, uint64_t o_form, uint64_t o_refkind, uint64_t o_limit, uint8_t *o_result); 222 +#define OMEGA2_IDENT_osc_expr "omega-ident 1 unit=osc_expr abi=2 profile=OM-2 src=`e869e7be788d2f0c942d9c4c8d87d3fe6efc45713c0ced12d82183e3fa3dba1b` omc=`b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2`" 223 +const char *omega2_ident_osc_expr(void); 224 +/* export fn osc_expr_step stack edit exprstk look ulong operand ulong to ulong */ 225 +uint32_t omega2_osc_expr_step(uint64_t *result, uint8_t *o_stack, uint64_t o_look, uint64_t o_operand); 226 +/* export fn osc_operand_step state edit opstate kind ulong nextkind ulong third ulong to ulong */ 227 +uint32_t omega2_osc_operand_step(uint64_t *result, uint8_t *o_state, uint64_t o_kind, uint64_t o_nextkind, uint64_t o_third); 228 +#define OMEGA2_IDENT_osc_scalar "omega-ident 1 unit=osc_scalar abi=2 profile=OM-2 src=`28238165ae668bbf8493bc4f27ca69af1c8cccb9ddd7d47a0889f288d0e7dc73` omc=`b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2`" 229 +const char *omega2_ident_osc_scalar(void); 230 +/* export fn osc_alu_width t ulong to ulong */ 231 +uint32_t omega2_osc_alu_width(uint64_t *result, uint64_t o_t); 232 +/* export fn osc_alu_canon t ulong v ulong to ulong */ 233 +uint32_t omega2_osc_alu_canon(uint64_t *result, uint64_t o_t, uint64_t o_v); 234 +/* export fn osc_alu_bin op ulong t ulong a ulong b ulong value out ulong 1 to ulong */ 235 +uint32_t omega2_osc_alu_bin(uint64_t *result, uint64_t o_op, uint64_t o_t, uint64_t o_a, uint64_t o_b, uint64_t *o_value); 236 +/* export fn osc_alu_un op ulong t ulong a ulong value out ulong 1 to ulong */ 237 +uint32_t omega2_osc_alu_un(uint64_t *result, uint64_t o_op, uint64_t o_t, uint64_t o_a, uint64_t *o_value); 238 +/* export fn osc_alu_cmp cc ulong t ulong a ulong b ulong to ulong */ 239 +uint32_t omega2_osc_alu_cmp(uint64_t *result, uint64_t o_cc, uint64_t o_t, uint64_t o_a, uint64_t o_b); 240 +/* export fn osc_alu_cast target ulong src ulong a ulong value out ulong 1 to ulong */ 241 +uint32_t omega2_osc_alu_cast(uint64_t *result, uint64_t o_target, uint64_t o_src, uint64_t o_a, uint64_t *o_value); 242 +/* export fn osc_binary_opcode tok ulong to ulong */ 243 +uint32_t omega2_osc_binary_opcode(uint64_t *result, uint64_t o_tok); 244 +/* export fn osc_compare_opcode tok ulong to ulong */ 245 +uint32_t omega2_osc_compare_opcode(uint64_t *result, uint64_t o_tok); 246 +/* export fn osc_literal_fits t ulong magnitude ulong negative ulong to ulong */ 247 +uint32_t omega2_osc_literal_fits(uint64_t *result, uint64_t o_t, uint64_t o_magnitude, uint64_t o_negative); 248 +/* export fn osc_contract_value nodes view uchar * env view contract stack edit ulong * request edit ulong 2 to ulong */ 249 +uint32_t omega2_osc_contract_value(uint64_t *result, const uint8_t *o_nodes, uint64_t o_nodes_len, const uint8_t *o_env, uint64_t *o_stack, uint64_t o_stack_len, uint64_t *o_request, uint64_t o_request_len); 250 +/* export fn osc_constant_tree nodes view uchar * id ulong require_literals ulong pending edit ulong * to ulong */ 251 +uint32_t omega2_osc_constant_tree(uint64_t *result, const uint8_t *o_nodes, uint64_t o_nodes_len, uint64_t o_id, uint64_t o_require_literals, uint64_t *o_pending, uint64_t o_pending_len); 252 +/* export fn osc_fold_tree nodes edit uchar * typ ulong stack edit ulong * report edit ulong 3 to ulong */ 253 +uint32_t omega2_osc_fold_tree(uint64_t *result, uint8_t *o_nodes, uint64_t o_nodes_len, uint64_t o_typ, uint64_t *o_stack, uint64_t o_stack_len, uint64_t *o_report, uint64_t o_report_len); 254 +/* export fn osc_infer_step nodes edit uchar * stack edit ulong * frame edit infer checked ulong to ulong */ 255 +uint32_t omega2_osc_infer_step(uint64_t *result, uint8_t *o_nodes, uint64_t o_nodes_len, uint64_t *o_stack, uint64_t o_stack_len, uint8_t *o_frame, uint64_t o_checked); 256 +#define OMEGA2_IDENT_osc_a64_fields "omega-ident 1 unit=osc_a64_fields abi=2 profile=OM-2 src=`9611ed84cd164f070399a77dcae62086f741201bcc972d969f912b21ce8824b4` omc=`b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2`" 257 +const char *omega2_ident_osc_a64_fields(void); 258 +/* export fn osc_a64_pack_fields form ulong base ulong f view a64field to ulong */ 259 +uint32_t omega2_osc_a64_pack_fields(uint64_t *result, uint64_t o_form, uint64_t o_base, const uint8_t *o_f); 260 +/* export fn osc_a64_unpack_fields form ulong word ulong f edit a64field to void */ 261 +uint32_t omega2_osc_a64_unpack_fields(uint64_t *result, uint64_t o_form, uint64_t o_word, uint8_t *o_f); 262 +/* export fn osc_a64_check_fields cls ulong f view a64field writeback ulong loadpair ulong to ulong */ 263 +uint32_t omega2_osc_a64_check_fields(uint64_t *result, uint64_t o_cls, const uint8_t *o_f, uint64_t o_writeback, uint64_t o_loadpair); 264 +#define OMEGA2_IDENT_osc_statement "omega-ident 1 unit=osc_statement abi=2 profile=OM-2 src=`a7b0105f7f6556f4b78142c36b3208d8d5072df232898491f5fc010a7903c914` omc=`b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2`" 265 +const char *omega2_ident_osc_statement(void); 266 +/* export fn osc_for_range kinds view ushort 7 values view ulong 7 limit ulong range edit forrange to ulong */ 267 +uint32_t omega2_osc_for_range(uint64_t *result, const uint16_t *o_kinds, uint64_t o_kinds_len, const uint64_t *o_values, uint64_t o_values_len, uint64_t o_limit, uint8_t *o_range); 268 +/* export fn osc_read_bound keyword ulong kind ulong value ulong limit ulong to ulong */ 269 +uint32_t omega2_osc_read_bound(uint64_t *result, uint64_t o_keyword, uint64_t o_kind, uint64_t o_value, uint64_t o_limit); 270 +/* export fn osc_read_import state edit imprec kind ulong spelling view uchar * table edit uchar * to ulong */ 271 +uint32_t omega2_osc_read_import(uint64_t *result, uint8_t *o_state, uint64_t o_kind, const uint8_t *o_spelling, uint64_t o_spelling_len, uint8_t *o_table, uint64_t o_table_len); 272 +/* export fn osc_clause_word dst edit uchar 256 used ulong prev ulong kind ulong word view uchar * to ulong */ 273 +uint32_t omega2_osc_clause_word(uint64_t *result, uint8_t *o_dst, uint64_t o_dst_len, uint64_t o_used, uint64_t o_prev, uint64_t o_kind, const uint8_t *o_word, uint64_t o_word_len); 274 +/* export fn osc_statement_plan plan edit stmtplan kind ulong nextkind ulong third ulong spelling view uchar * to ulong */ 275 +uint32_t omega2_osc_statement_plan(uint64_t *result, uint8_t *o_plan, uint64_t o_kind, uint64_t o_nextkind, uint64_t o_third, const uint8_t *o_spelling, uint64_t o_spelling_len); 276 +#define OMEGA2_IDENT_osc_ownership "omega-ident 1 unit=osc_ownership abi=2 profile=OM-2 src=`b89c54bb7edd8e242def52f184a2df63754b02bf921b39839344f1d5d7f6fdec` omc=`b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2`" 215 277 const char *omega2_ident_osc_ownership(void); 216 278 /* export fn osc_owner_access moved ulong exclusive ulong shared_count ulong mut_count ulong to ulong */ 217 279 uint32_t omega2_osc_owner_access(uint64_t *result, uint64_t o_moved, uint64_t o_exclusive, uint64_t o_shared_count, uint64_t o_mut_count); @@ -235,6 +297,28 @@ uint32_t omega2_osc_open_reborrow(uint64_t *result, uint8_t *o_parent, uint8_t * 235 297 uint32_t omega2_osc_close_borrow(uint64_t *result, uint8_t *o_owner, uint8_t *o_child); 236 298 /* export fn osc_close_reborrow parent edit oscbor child edit oscbor to void */ 237 299 uint32_t omega2_osc_close_reborrow(uint64_t *result, uint8_t *o_parent, uint8_t *o_child); 300 +/* export fn osc_join_owners taken view uchar * remaining edit uchar * changes edit int * to ulong */ 301 +uint32_t omega2_osc_join_owners(uint64_t *result, const uint8_t *o_taken, uint64_t o_taken_len, uint8_t *o_remaining, uint64_t o_remaining_len, int32_t *o_changes, uint64_t o_changes_len); 302 +#define OMEGA2_IDENT_osc_scope "omega-ident 1 unit=osc_scope abi=2 profile=OM-2 src=`04d9c3dead3cabf5dbfa96da36fe4c58c64aa20ea36494bbfa92d1d0d3a17c4e` omc=`b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2`" 303 +const char *omega2_ident_osc_scope(void); 304 +/* export fn osc_scope_reset table edit scopetab to void */ 305 +uint32_t omega2_osc_scope_reset(uint64_t *result, uint8_t *o_table); 306 +/* export fn osc_scope_find table view scopetab symbols view uchar * stride ulong name view uchar * to long */ 307 +uint32_t omega2_osc_scope_find(uint64_t *result, const uint8_t *o_table, const uint8_t *o_symbols, uint64_t o_symbols_len, uint64_t o_stride, const uint8_t *o_name, uint64_t o_name_len); 308 +/* export fn osc_scope_bind table edit scopetab id ulong name view uchar * to void */ 309 +uint32_t omega2_osc_scope_bind(uint64_t *result, uint8_t *o_table, uint64_t o_id, const uint8_t *o_name, uint64_t o_name_len); 310 +/* export fn osc_scope_push table edit scopetab to ulong */ 311 +uint32_t omega2_osc_scope_push(uint64_t *result, uint8_t *o_table); 312 +/* export fn osc_scope_pop table edit scopetab to void */ 313 +uint32_t omega2_osc_scope_pop(uint64_t *result, uint8_t *o_table); 314 +#define OMEGA2_IDENT_osc_pool "omega-ident 1 unit=osc_pool abi=2 profile=OM-2 src=`739af9855c5a25c5c3322dade4200fec3d7ee380ddc97de7afa7875618888711` omc=`b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2`" 315 +const char *omega2_ident_osc_pool(void); 316 +/* export fn osc_pool_init p edit poolstat cap ulong base ulong loop_depth long cond_depth long to void */ 317 +uint32_t omega2_osc_pool_init(uint64_t *result, uint8_t *o_p, uint64_t o_cap, uint64_t o_base, uint64_t o_loop_depth, uint64_t o_cond_depth); 318 +/* export fn osc_pool_alloc p edit poolstat loop_depth long cond_depth long to ulong */ 319 +uint32_t omega2_osc_pool_alloc(uint64_t *result, uint8_t *o_p, uint64_t o_loop_depth, uint64_t o_cond_depth); 320 +/* export fn osc_pool_free p edit poolstat loop_depth long cond_depth long to void */ 321 +uint32_t omega2_osc_pool_free(uint64_t *result, uint8_t *o_p, uint64_t o_loop_depth, uint64_t o_cond_depth); 238 322 #ifdef __cplusplus 239 323 } 240 324 #endif src/omega_om_units.c @@ -1939,8 +1939,8 @@ __attribute__((visibility("default"))) uint32_t omega2_rx_fus_eligible_kind(uint 1939 1939 return OMEGA_BAD_ARG; 1940 1940 return ombr2_run(ombr2_entry_rx_fus_eligible_kind, a, result, 1, ou, no); 1941 1941 } 1942 -__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_code_osc_literal\n.hidden ombr2_code_osc_literal\nombr2_code_osc_literal:\n.byte 0x1f,0x00,0x00,0x14,0x1f,0xc0,0x00,0xf1,0xe1,0x37,0x9f,0x9a,0x1f,0xe4,0x00,0xf1,0xe2,0x87,0x9f,0x9a,0x23,0x00,0x02,0x8a,0x63,0x00,0x00,0xb4,0x00,0xc0,0x00,0xd1,0xc0,0x03,0x5f,0xd6,0x1f,0x04,0x01,0xf1,0xe1,0x37,0x9f,0x9a,0x1f,0x18,0x01,0xf1,0xe2,0x87,0x9f,0x9a,0x23,0x00,0x02,0x8a,0xa3,0x00,0x00,0xb4,0x01,0x04,0x01,0xd1,0x42,0x01,0x80,0xd2,0x40,0x00,0x01,0x8b,0xc0,0x03,0x5f,0xd6,0x1f,0x84,0x01,0xf1,0xe1,0x37,0x9f,0x9a,0x1f,0x98,0x01,0xf1,0xe2,0x87,0x9f,0x9a,0x23,0x00,0x02,0x8a,0xa3,0x00,0x00,0xb4,0x01,0x84,0x01,0xd1,0x42,0x01,0x80,0xd2,0x40,0x00,0x01,0x8b,0xc0,0x03,0x5f,0xd6,0x00,0x02,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x03,0x00,0x80,0xd2,0x43,0x00,0x00,0xf9,0x43,0x01,0x80,0xd2,0x04,0x00,0x80,0xd2,0x3f,0x08,0x00,0xf1,0x63,0x02,0x00,0x54,0x05,0x00,0x80,0xd2,0xbf,0x00,0x01,0xeb,0xc2,0x0a,0x00,0x54,0x06,0x68,0x65,0x38,0xdf,0xc0,0x00,0xf1,0xa1,0x01,0x00,0x54,0x26,0x00,0x80,0xd2,0xdf,0x00,0x01,0xeb,0x02,0x0a,0x00,0x54,0x05,0x68,0x66,0x38,0xbf,0xe0,0x01,0xf1,0x61,0x00,0x00,0x54,0x03,0x02,0x80,0xd2,0x44,0x00,0x80,0xd2,0xbf,0x88,0x01,0xf1,0x61,0x00,0x00,0x54,0x43,0x00,0x80,0xd2,0x44,0x00,0x80,0xd2,0x9f,0x00,0x01,0xeb,0x61,0x00,0x00,0x54,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x05,0x00,0x80,0xd2,0x06,0x00,0x80,0xd2,0x08,0x00,0x80,0xd2,0x9f,0x00,0x01,0xeb,0x62,0x06,0x00,0x54,0xe9,0xff,0x9f,0xd2,0xe9,0xff,0xbf,0xf2,0xe9,0xff,0xdf,0xf2,0xe9,0xff,0xef,0xf2,0x1f,0x01,0x09,0xeb,0x42,0x07,0x00,0x54,0x08,0x05,0x00,0x91,0x9f,0x00,0x01,0xeb,0xa2,0x06,0x00,0x54,0x0a,0x68,0x64,0x38,0xff,0x83,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xfe,0x2b,0x00,0xf9,0xe0,0x27,0x40,0xf9,0xaa,0xff,0xff,0x97,0xe9,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xfe,0x2b,0x40,0xf9,0xff,0x83,0x01,0x91,0x3f,0x01,0x03,0xeb,0x63,0x00,0x00,0x54,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x0a,0x00,0x80,0x92,0x4b,0x01,0x09,0xcb,0x43,0x02,0x00,0xb4,0x6c,0x09,0xc3,0x9a,0xbf,0x00,0x0c,0xeb,0x49,0x00,0x00,0x54,0x26,0x00,0x80,0xd2,0xaa,0x7c,0x03,0x9b,0x45,0x01,0x09,0x8b,0x84,0x04,0x00,0x91,0xcd,0xff,0xff,0x17,0x66,0x00,0x00,0xb4,0x40,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x45,0x00,0x00,0xf9,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x41,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x61,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0x81,0x00,0x80,0xd2,0xf8,0xff,0xff,0x17\n.previous\n"); 1943 -static const char ombr2_ident_osc_literal[] = "omega-ident 1 unit=osc_literal abi=2 profile=OM-2 src=`c61bdcbb9f71b01df86fba045b4206809091e709eba208939a4270b67dabbce2` omc=`b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2`"; 1942 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_code_osc_literal\n.hidden ombr2_code_osc_literal\nombr2_code_osc_literal:\n.byte 0x21,0x00,0x00,0x14,0x75,0x03,0x00,0x14,0x3f,0x05,0x00,0x14,0x1f,0xc0,0x00,0xf1,0xe1,0x37,0x9f,0x9a,0x1f,0xe4,0x00,0xf1,0xe2,0x87,0x9f,0x9a,0x23,0x00,0x02,0x8a,0x63,0x00,0x00,0xb4,0x00,0xc0,0x00,0xd1,0xc0,0x03,0x5f,0xd6,0x1f,0x04,0x01,0xf1,0xe1,0x37,0x9f,0x9a,0x1f,0x18,0x01,0xf1,0xe2,0x87,0x9f,0x9a,0x23,0x00,0x02,0x8a,0xa3,0x00,0x00,0xb4,0x01,0x04,0x01,0xd1,0x42,0x01,0x80,0xd2,0x40,0x00,0x01,0x8b,0xc0,0x03,0x5f,0xd6,0x1f,0x84,0x01,0xf1,0xe1,0x37,0x9f,0x9a,0x1f,0x98,0x01,0xf1,0xe2,0x87,0x9f,0x9a,0x23,0x00,0x02,0x8a,0xa3,0x00,0x00,0xb4,0x01,0x84,0x01,0xd1,0x42,0x01,0x80,0xd2,0x40,0x00,0x01,0x8b,0xc0,0x03,0x5f,0xd6,0x00,0x02,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x03,0x00,0x80,0xd2,0x43,0x00,0x00,0xf9,0x43,0x01,0x80,0xd2,0x04,0x00,0x80,0xd2,0x3f,0x08,0x00,0xf1,0x63,0x02,0x00,0x54,0x05,0x00,0x80,0xd2,0xbf,0x00,0x01,0xeb,0xc2,0x0a,0x00,0x54,0x06,0x68,0x65,0x38,0xdf,0xc0,0x00,0xf1,0xa1,0x01,0x00,0x54,0x26,0x00,0x80,0xd2,0xdf,0x00,0x01,0xeb,0x02,0x0a,0x00,0x54,0x05,0x68,0x66,0x38,0xbf,0xe0,0x01,0xf1,0x61,0x00,0x00,0x54,0x03,0x02,0x80,0xd2,0x44,0x00,0x80,0xd2,0xbf,0x88,0x01,0xf1,0x61,0x00,0x00,0x54,0x43,0x00,0x80,0xd2,0x44,0x00,0x80,0xd2,0x9f,0x00,0x01,0xeb,0x61,0x00,0x00,0x54,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x05,0x00,0x80,0xd2,0x06,0x00,0x80,0xd2,0x08,0x00,0x80,0xd2,0x9f,0x00,0x01,0xeb,0x62,0x06,0x00,0x54,0xe9,0xff,0x9f,0xd2,0xe9,0xff,0xbf,0xf2,0xe9,0xff,0xdf,0xf2,0xe9,0xff,0xef,0xf2,0x1f,0x01,0x09,0xeb,0x42,0x07,0x00,0x54,0x08,0x05,0x00,0x91,0x9f,0x00,0x01,0xeb,0xa2,0x06,0x00,0x54,0x0a,0x68,0x64,0x38,0xff,0x83,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xfe,0x2b,0x00,0xf9,0xe0,0x27,0x40,0xf9,0xaa,0xff,0xff,0x97,0xe9,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xfe,0x2b,0x40,0xf9,0xff,0x83,0x01,0x91,0x3f,0x01,0x03,0xeb,0x63,0x00,0x00,0x54,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x0a,0x00,0x80,0x92,0x4b,0x01,0x09,0xcb,0x43,0x02,0x00,0xb4,0x6c,0x09,0xc3,0x9a,0xbf,0x00,0x0c,0xeb,0x49,0x00,0x00,0x54,0x26,0x00,0x80,0xd2,0xaa,0x7c,0x03,0x9b,0x45,0x01,0x09,0x8b,0x84,0x04,0x00,0x91,0xcd,0xff,0xff,0x17,0x66,0x00,0x00,0xb4,0x40,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x45,0x00,0x00,0xf9,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x41,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x61,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0x81,0x00,0x80,0xd2,0xf8,0xff,0xff,0x17,0x1f,0xc0,0x00,0xf1,0xe1,0x37,0x9f,0x9a,0x1f,0xe4,0x00,0xf1,0xe2,0x87,0x9f,0x9a,0x20,0x00,0x02,0x8a,0xc0,0x03,0x5f,0xd6,0x1f,0x7c,0x01,0xf1,0x61,0x00,0x00,0x54,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0x04,0x01,0xf1,0xe1,0x37,0x9f,0x9a,0x1f,0x68,0x01,0xf1,0xe2,0x87,0x9f,0x9a,0x23,0x00,0x02,0x8a,0x1f,0x84,0x01,0xf1,0xe4,0x37,0x9f,0x9a,0x1f,0xe8,0x01,0xf1,0xe5,0x87,0x9f,0x9a,0x86,0x00,0x05,0x8a,0x60,0x00,0x06,0xaa,0xc0,0x03,0x5f,0xd6,0x3f,0x28,0x00,0xf1,0x69,0x00,0x00,0x54,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x02,0x00,0x80,0xd2,0x03,0x00,0x80,0xd2,0x04,0x00,0x80,0xd2,0x05,0x00,0x80,0xd2,0x9f,0x00,0x01,0xeb,0x82,0x02,0x00,0x54,0xbf,0x28,0x00,0xf1,0x62,0x37,0x00,0x54,0xa5,0x04,0x00,0x91,0x9f,0x20,0x00,0xf1,0xe2,0x00,0x00,0x54,0x46,0xdc,0x78,0xd3,0x9f,0x00,0x01,0xeb,0x62,0x36,0x00,0x54,0x08,0x68,0x64,0x38,0xc2,0x00,0x08,0xaa,0x07,0x00,0x00,0x14,0x66,0xdc,0x78,0xd3,0xc6,0x7c,0x40,0xd3,0x9f,0x00,0x01,0xeb,0x82,0x35,0x00,0x54,0x08,0x68,0x64,0x38,0xc3,0x00,0x08,0xaa,0x84,0x04,0x00,0x91,0xec,0xff,0xff,0x17,0x7f,0x00,0x00,0xf1,0x80,0x03,0x00,0x54,0x25,0x8d,0x8d,0xd2,0x25,0x4d,0xac,0xf2,0x25,0x0c,0xce,0xf2,0x25,0x6c,0xec,0xf2,0x5f,0x00,0x05,0xeb,0xe6,0x17,0x9f,0x9a,0x28,0x8f,0x8e,0xd2,0x7f,0x00,0x08,0xeb,0xe9,0x17,0x9f,0x9a,0xca,0x00,0x09,0x8a,0x6a,0x00,0x00,0xb4,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x85,0x2e,0x8d,0xd2,0x45,0xee,0xad,0xf2,0x05,0x8d,0xce,0xf2,0xa5,0x2e,0xec,0xf2,0x5f,0x00,0x05,0xeb,0xe6,0x17,0x9f,0x9a,0x7f,0xe4,0x01,0xf1,0xe8,0x17,0x9f,0x9a,0xc9,0x00,0x08,0x8a,0x69,0x00,0x00,0xb4,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xc5,0xcd,0x8c,0xd2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x80,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x85,0xae,0x8c,0xd2,0x85,0x0d,0xa0,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0xa0,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x85,0xae,0x8e,0xd2,0xa5,0x0d,0xa0,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0xc0,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xc5,0xed,0x8e,0xd2,0xe5,0x0d,0xa0,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0xe0,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x65,0xec,0x8d,0xd2,0x85,0x8d,0xad,0xf2,0x25,0x0c,0xc0,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x00,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xc5,0x2c,0x8d,0xd2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x20,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xa5,0x6c,0x8e,0xd2,0x85,0xad,0xac,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x40,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xa5,0x8c,0x8d,0xd2,0x25,0x0d,0xad,0xf2,0xe5,0x0e,0xc0,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x60,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x85,0xcc,0x8d,0xd2,0xa5,0xee,0xad,0xf2,0x45,0x0c,0xc0,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x80,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x45,0xee,0x8d,0xd2,0xc5,0x0c,0xa0,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0xa0,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xc5,0x2d,0x8d,0xd2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0xc0,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xc5,0x4d,0x8e,0xd2,0xa5,0x8e,0xae,0xf2,0xa5,0x4c,0xce,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0xe0,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x65,0xae,0x8c,0xd2,0x45,0x2e,0xad,0xf2,0xa5,0x2e,0xce,0xf2,0xa5,0x4c,0xee,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x00,0x02,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x65,0xae,0x8c,0xd2,0x45,0xae,0xae,0xf2,0x65,0xce,0xcd,0xf2,0xa5,0x0c,0xe0,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x20,0x02,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x65,0x2e,0x8c,0xd2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x40,0x02,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xa5,0xac,0x8e,0xd2,0x45,0x8e,0xae,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x60,0x02,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xa5,0x6c,0x8e,0xd2,0x85,0x2d,0xac,0xf2,0xc5,0x0c,0xc0,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x80,0x02,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x05,0xa7,0x8e,0xd2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0xa0,0x02,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xc5,0x26,0x86,0xd2,0xa5,0x0e,0xa0,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0xc0,0x02,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x45,0x66,0x86,0xd2,0xa5,0x0e,0xa0,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0xe0,0x02,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x85,0xc6,0x86,0xd2,0xa5,0x0e,0xa0,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x00,0x03,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x05,0x27,0x8d,0xd2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x20,0x03,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xc5,0x26,0x86,0xd2,0x25,0x0d,0xa0,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x40,0x03,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x45,0x66,0x86,0xd2,0x25,0x0d,0xa0,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x60,0x03,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x85,0xc6,0x86,0xd2,0x25,0x0d,0xa0,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x80,0x03,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x85,0xed,0x8d,0xd2,0xe5,0x4d,0xac,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0xa0,0x03,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x85,0x6e,0x8c,0xd2,0xa5,0x4e,0xae,0xf2,0x85,0x6e,0xce,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0xc0,0x07,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x25,0xcc,0x8d,0xd2,0xa5,0x4c,0xae,0xf2,0x25,0x0c,0xc0,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x00,0x08,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x85,0xed,0x8d,0xd2,0xe5,0x0d,0xae,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x20,0x08,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xa5,0x8c,0x8d,0xd2,0x85,0xcc,0xad,0xf2,0x25,0x0c,0xcd,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x40,0x08,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x85,0x4e,0x8e,0xd2,0xe5,0x0d,0xae,0xf2,0xa5,0x2d,0xcd,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x60,0x08,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x65,0xae,0x8c,0xd2,0x85,0x2e,0xaf,0xf2,0x45,0x0c,0xc0,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x80,0x08,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x65,0x8e,0x8d,0xd2,0x85,0xad,0xac,0xf2,0x65,0x0c,0xc0,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0xa0,0x08,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xa5,0xac,0x8c,0xd2,0x45,0xce,0xac,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x05,0xee,0x8d,0xd2,0x45,0x8e,0xac,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xa5,0x8c,0x8e,0xd2,0xa5,0x8c,0xad,0xf2,0xa5,0x8c,0xcc,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x65,0xec,0x8d,0xd2,0x85,0x8d,0xad,0xf2,0x25,0xac,0xcc,0xf2,0x85,0x0c,0xe0,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x85,0x6e,0x8c,0xd2,0xa5,0xcc,0xac,0xf2,0xc5,0xac,0xcc,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x05,0x2e,0x8c,0xd2,0x65,0x0c,0xa0,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x85,0xce,0x8d,0xd2,0x25,0xad,0xad,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xa5,0x6c,0x8d,0xd2,0xe5,0xcd,0xae,0xf2,0xa5,0x4c,0xce,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x85,0xce,0x8d,0xd2,0x25,0x4c,0xae,0xf2,0xe5,0x0c,0xc0,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x05,0x6d,0x8e,0xd2,0x25,0x8d,0xad,0xf2,0x45,0xac,0xce,0xf2,0x05,0x0e,0xe0,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xa5,0x8c,0x8e,0xd2,0xe5,0xad,0xad,0xf2,0xe5,0x4d,0xce,0xf2,0x05,0x0e,0xe0,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xc5,0x2d,0x8d,0xd2,0xa5,0x8d,0xac,0xf2,0x25,0x0c,0xc0,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x85,0x8d,0x8d,0xd2,0x25,0x6c,0xac,0xf2,0x65,0x2e,0xcf,0xf2,0x65,0x0e,0xe0,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xe5,0x2d,0x8d,0xd2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x85,0xce,0x8d,0xd2,0x25,0x4d,0xae,0xf2,0x05,0x0e,0xc0,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xc5,0x4d,0x8e,0xd2,0xa5,0x8c,0xae,0xf2,0x05,0xaf,0xcc,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xa5,0xcc,0x8c,0xd2,0x25,0x6c,0xae,0xf2,0xc5,0xad,0xce,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xa5,0x6d,0x8e,0xd2,0x25,0x0c,0xa0,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x05,0xee,0x8d,0xd2,0xe5,0x8d,0xad,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x05,0x6d,0x8c,0xd2,0x85,0x2e,0xac,0xf2,0xa5,0x0d,0xc0,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xa5,0xad,0x8e,0xd2,0xc5,0xad,0xac,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x45,0x2e,0x8c,0xd2,0xc5,0x0e,0xa0,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x85,0x6e,0x8e,0xd2,0xc5,0xed,0xad,0xf2,0x65,0x0c,0xc0,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xc5,0x8c,0x8d,0xd2,0xa5,0x6c,0xae,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x65,0xac,0x8c,0xd2,0x45,0x0e,0xa0,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x65,0x2d,0x8c,0xd2,0xa5,0x4c,0xae,0xf2,0x45,0x0c,0xc0,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xa5,0xac,0x8e,0xd2,0xc5,0x2d,0xad,0xf2,0x85,0xce,0xcd,0xf2,0xe5,0x6d,0xec,0xf2,0x5f,0x00,0x05,0xeb,0x61,0x00,0x00,0x54,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x81,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0xc1,0xa7,0x85,0xd2,0x1f,0x00,0x01,0xeb,0x61,0x00,0x00,0x54,0xe0,0x04,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xc1,0xc5,0x85,0xd2,0x1f,0x00,0x01,0xeb,0x61,0x00,0x00,0x54,0x00,0x05,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xc1,0xc4,0x84,0xd2,0x1f,0x00,0x01,0xeb,0x61,0x00,0x00,0x54,0x80,0x06,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x81,0x8f,0x8f,0xd2,0x1f,0x00,0x01,0xeb,0x61,0x00,0x00,0x54,0xa0,0x06,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x81,0x87,0x87,0xd2,0x1f,0x00,0x01,0xeb,0x61,0x00,0x00,0x54,0xc0,0x06,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xc1,0xc7,0x87,0xd2,0x1f,0x00,0x01,0xeb,0x61,0x00,0x00,0x54,0xe0,0x06,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xa1,0xa7,0x87,0xd2,0x1f,0x00,0x01,0xeb,0x61,0x00,0x00,0x54,0x00,0x07,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xa1,0x27,0x84,0xd2,0x1f,0x00,0x01,0xeb,0x61,0x00,0x00,0x54,0x20,0x07,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xa1,0x87,0x87,0xd2,0x1f,0x00,0x01,0xeb,0x61,0x00,0x00,0x54,0x60,0x07,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xa1,0xc7,0x87,0xd2,0x1f,0x00,0x01,0xeb,0x61,0x00,0x00,0x54,0xa0,0x07,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0xa0,0x00,0xf1,0x61,0x00,0x00,0x54,0xc0,0x03,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0xa4,0x00,0xf1,0x61,0x00,0x00,0x54,0xe0,0x03,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0xec,0x01,0xf1,0x61,0x00,0x00,0x54,0x00,0x04,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0xf4,0x01,0xf1,0x61,0x00,0x00,0x54,0x20,0x04,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0x6c,0x01,0xf1,0x61,0x00,0x00,0x54,0x40,0x04,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0x74,0x01,0xf1,0x61,0x00,0x00,0x54,0x60,0x04,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0xb0,0x00,0xf1,0x61,0x00,0x00,0x54,0x80,0x04,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0xec,0x00,0xf1,0x61,0x00,0x00,0x54,0xa0,0x04,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0xe8,0x00,0xf1,0x61,0x00,0x00,0x54,0xc0,0x04,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0xf4,0x00,0xf1,0x61,0x00,0x00,0x54,0x20,0x05,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0xac,0x00,0xf1,0x61,0x00,0x00,0x54,0x40,0x05,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0xb4,0x00,0xf1,0x61,0x00,0x00,0x54,0x60,0x05,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0xa8,0x00,0xf1,0x61,0x00,0x00,0x54,0x80,0x05,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0xbc,0x00,0xf1,0x61,0x00,0x00,0x54,0xa0,0x05,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0x94,0x00,0xf1,0x61,0x00,0x00,0x54,0xc0,0x05,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0x98,0x00,0xf1,0x61,0x00,0x00,0x54,0xe0,0x05,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0xf0,0x01,0xf1,0x61,0x00,0x00,0x54,0x00,0x06,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0x78,0x01,0xf1,0x61,0x00,0x00,0x54,0x20,0x06,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0xf8,0x01,0xf1,0x61,0x00,0x00,0x54,0x40,0x06,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0x84,0x00,0xf1,0x61,0x00,0x00,0x54,0x60,0x06,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0xf0,0x00,0xf1,0x61,0x00,0x00,0x54,0x40,0x07,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0xf8,0x00,0xf1,0x61,0x00,0x00,0x54,0x80,0x07,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0xb8,0x00,0xf1,0x61,0x00,0x00,0x54,0xe0,0x07,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x04,0x00,0x80,0xd2,0x43,0x68,0x64,0xf8,0x05,0x03,0x80,0xd2,0x44,0x68,0x65,0xb8,0x86,0x03,0x80,0xd2,0x45,0x68,0x66,0xb8,0x06,0x00,0x80,0xd2,0x7f,0x00,0x01,0xeb,0x82,0x0d,0x00,0x54,0xe8,0xff,0x9f,0xd2,0xe8,0xff,0xbf,0xf2,0xe8,0xff,0xdf,0xf2,0xe8,0xff,0xef,0xf2,0xdf,0x00,0x08,0xeb,0x62,0x0e,0x00,0x54,0xc6,0x04,0x00,0x91,0x7f,0x00,0x01,0xeb,0xc2,0x0d,0x00,0x54,0x08,0x68,0x63,0x38,0x1f,0x29,0x00,0xf1,0xa1,0x00,0x00,0x54,0x84,0x04,0x00,0x11,0x25,0x00,0x80,0xd2,0x63,0x04,0x00,0x91,0xee,0xfd,0xff,0x54,0x1f,0x81,0x00,0xf1,0xe9,0x17,0x9f,0x9a,0x1f,0x25,0x00,0xf1,0xea,0x17,0x9f,0x9a,0x1f,0x35,0x00,0xf1,0xeb,0x17,0x9f,0x9a,0x4c,0x01,0x0b,0xaa,0x2d,0x01,0x0c,0xaa,0x8d,0x00,0x00,0xb4,0xa5,0x04,0x00,0x11,0x63,0x04,0x00,0x91,0x6e,0xfc,0xff,0x54,0x1f,0xbd,0x00,0xf1,0x40,0x00,0x00,0x54,0xae,0x09,0x00,0x54,0x69,0x04,0x00,0x91,0x3f,0x01,0x01,0xeb,0x41,0x00,0x00,0x54,0x2e,0x09,0x00,0x54,0x6a,0x04,0x00,0x91,0x5f,0x01,0x01,0xeb,0x22,0x0a,0x00,0x54,0x09,0x68,0x6a,0x38,0x3f,0xbd,0x00,0xf1,0xa1,0x02,0x00,0x54,0x0a,0x00,0x80,0xd2,0x7f,0x00,0x01,0xeb,0x22,0x02,0x00,0x54,0xeb,0xff,0x9f,0xd2,0xeb,0xff,0xbf,0xf2,0xeb,0xff,0xdf,0xf2,0xeb,0xff,0xef,0xf2,0x5f,0x01,0x0b,0xeb,0xe2,0x08,0x00,0x54,0x4a,0x05,0x00,0x91,0x7f,0x00,0x01,0xeb,0x42,0x08,0x00,0x54,0x0b,0x68,0x63,0x38,0x7f,0x29,0x00,0xf1,0x41,0x00,0x00,0x54,0x8e,0x00,0x00,0x54,0x63,0x04,0x00,0x91,0xa5,0x04,0x00,0x11,0xef,0xff,0xff,0x17,0x4e,0xf8,0xff,0x54,0x3f,0xa9,0x00,0xf1,0x40,0x00,0x00,0x54,0x8e,0x05,0x00,0x54,0x0a,0x03,0x80,0xd2,0x44,0x68,0x2a,0xb8,0x8a,0x03,0x80,0xd2,0x45,0x68,0x2a,0xb8,0x63,0x08,0x00,0x91,0xa5,0x08,0x00,0x11,0x0a,0x00,0x80,0xd2,0x2b,0x00,0x80,0xd2,0x4b,0x04,0x00,0xb4,0xec,0xff,0x9f,0xd2,0xec,0xff,0xbf,0xf2,0xec,0xff,0xdf,0xf2,0xec,0xff,0xef,0xf2,0x5f,0x01,0x0c,0xeb,0x42,0x05,0x00,0x54,0x4a,0x05,0x00,0x91,0x7f,0x00,0x01,0xeb,0x61,0x00,0x00,0x54,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x7f,0x00,0x01,0xeb,0x22,0x04,0x00,0x54,0x08,0x68,0x63,0x38,0x63,0x04,0x00,0x91,0xa5,0x04,0x00,0x11,0x1f,0xa9,0x00,0xf1,0x61,0x01,0x00,0x54,0x7f,0x00,0x01,0xeb,0x22,0x01,0x00,0x54,0x7f,0x00,0x01,0xeb,0x02,0x03,0x00,0x54,0x0b,0x68,0x63,0x38,0x7f,0xbd,0x00,0xf1,0x81,0x00,0x00,0x54,0x63,0x04,0x00,0x91,0xa5,0x04,0x00,0x11,0xce,0x00,0x00,0x54,0x1f,0x29,0x00,0xf1,0x61,0x00,0x00,0x54,0x84,0x04,0x00,0x11,0x25,0x00,0x80,0xd2,0xde,0xff,0xff,0x17,0x94,0xff,0xff,0x17,0x06,0x00,0x80,0xd2,0x43,0x68,0x26,0xf8,0x06,0x03,0x80,0xd2,0x44,0x68,0x26,0xb8,0x86,0x03,0x80,0xd2,0x45,0x68,0x26,0xb8,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x81,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0x06,0x00,0x80,0xd2,0xff,0x43,0x00,0xd1,0xe5,0x03,0x00,0x91,0x08,0x00,0x80,0xd2,0xa6,0x78,0x28,0xf8,0x08,0x05,0x00,0x91,0x1f,0x05,0x00,0xf1,0xa3,0xff,0xff,0x54,0x86,0x03,0x80,0xd2,0x48,0x68,0x66,0xb8,0x09,0x04,0x80,0xd2,0x4a,0x68,0x69,0xb8,0x0b,0x01,0x0a,0x0b,0x8c,0x03,0x80,0xd2,0x4b,0x68,0x2c,0xb8,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0x63,0xff,0xff,0x97,0xe6,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0xc8,0x00,0x40,0xd2,0x88,0x00,0x00,0xb4,0x60,0x00,0x80,0xd2,0xff,0x43,0x00,0x91,0xc0,0x03,0x5f,0xd6,0x7f,0x00,0x00,0xf1,0x81,0x00,0x00,0x54,0x80,0x00,0x80,0xd2,0xff,0x43,0x00,0x91,0xc0,0x03,0x5f,0xd6,0x08,0x00,0x80,0xd2,0x46,0x68,0x68,0xf8,0x08,0x01,0x80,0xd2,0x46,0x68,0x28,0xf8,0x08,0x00,0x80,0xd2,0x09,0x04,0x80,0xd2,0x48,0x68,0x29,0xb8,0x08,0x00,0x80,0xd2,0x09,0x02,0x80,0xd2,0x48,0x68,0x29,0xf8,0x08,0x00,0x80,0xd2,0x89,0x04,0x80,0xd2,0x48,0x68,0x29,0xb8,0xdf,0x00,0x01,0xeb,0x81,0x00,0x00,0x54,0x00,0x00,0x80,0xd2,0xff,0x43,0x00,0x91,0xc0,0x03,0x5f,0xd6,0xdf,0x00,0x01,0xeb,0x42,0x2c,0x00,0x54,0x08,0x68,0x66,0x38,0xc9,0x04,0x00,0x91,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xfe,0x27,0x00,0xf9,0xe0,0x1f,0x40,0xf9,0xc3,0xfc,0xff,0x97,0xea,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xfe,0x27,0x40,0xf9,0xff,0x43,0x01,0x91,0xff,0x83,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xfe,0x2b,0x00,0xf9,0xe0,0x1f,0x40,0xf9,0xa3,0xfc,0xff,0x97,0xeb,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xfe,0x2b,0x40,0xf9,0xff,0x83,0x01,0x91,0x4c,0x01,0x0b,0xaa,0x6c,0x1a,0x00,0xb4,0x0a,0x00,0x80,0xd2,0x3f,0x01,0x01,0xeb,0xa2,0x09,0x00,0x54,0xeb,0xff,0x9f,0xd2,0xeb,0xff,0xbf,0xf2,0xeb,0xff,0xdf,0xf2,0xeb,0xff,0xef,0xf2,0x5f,0x01,0x0b,0xeb,0x62,0x24,0x00,0x54,0x4a,0x05,0x00,0x91,0x3f,0x01,0x01,0xeb,0xc2,0x23,0x00,0x54,0x0b,0x68,0x69,0x38,0xff,0x83,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xfe,0x2f,0x00,0xf9,0xe0,0x2b,0x40,0xf9,0x7e,0xfc,0xff,0x97,0xec,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xeb,0x2b,0x40,0xf9,0xfe,0x2f,0x40,0xf9,0xff,0x83,0x01,0x91,0xff,0xc3,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xec,0x2f,0x00,0xf9,0xfe,0x33,0x00,0xf9,0xe0,0x2b,0x40,0xf9,0x5a,0xfc,0xff,0x97,0xed,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xeb,0x2b,0x40,0xf9,0xec,0x2f,0x40,0xf9,0xfe,0x33,0x40,0xf9,0xff,0xc3,0x01,0x91,0x8e,0x01,0x0d,0xaa,0xcf,0x01,0x40,0xd2,0x4f,0x00,0x00,0xb4,0x6e,0x00,0x00,0x54,0x29,0x05,0x00,0x91,0xb3,0xff,0xff,0x17,0x2a,0x01,0x06,0xcb,0x0b,0x00,0x80,0xd2,0x49,0x68,0x2b,0xf8,0x4b,0xfd,0x60,0xd3,0x4b,0x1b,0x00,0xb5,0x0c,0x04,0x80,0xd2,0x4a,0x68,0x2c,0xb8,0xff,0x83,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xfe,0x2b,0x00,0xf9,0xe0,0x1f,0x40,0xf9,0x30,0xfc,0xff,0x97,0xeb,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xfe,0x2b,0x40,0xf9,0xff,0x83,0x01,0x91,0x4b,0x06,0x00,0xb4,0xdf,0x00,0x01,0xeb,0xc8,0x16,0x00,0x54,0x2c,0x00,0x06,0xcb,0x5f,0x01,0x0c,0xeb,0x68,0x16,0x00,0x54,0x0c,0x00,0x06,0x8b,0xff,0xc3,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xec,0x2f,0x00,0xf9,0xfe,0x33,0x00,0xf9,0xe0,0x2f,0x40,0xf9,0xe1,0x27,0x40,0xf9,0xe2,0x17,0x40,0xf9,0xa8,0xfb,0xff,0x97,0xeb,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xfe,0x33,0x40,0xf9,0xff,0xc3,0x01,0x91,0x7f,0x01,0x00,0xf1,0x80,0x00,0x00,0x54,0xe0,0x03,0x0b,0xaa,0xff,0x43,0x00,0x91,0xc0,0x03,0x5f,0xd6,0xac,0x00,0x40,0xf9,0x0d,0x02,0x80,0xd2,0x4c,0x68,0x2d,0xf8,0x4c,0x00,0x80,0xd2,0x8d,0x04,0x80,0xd2,0x4c,0x68,0x2d,0xb8,0x2d,0x00,0x00,0x14,0x4b,0xfd,0x60,0xd3,0x2b,0x11,0x00,0xb5,0x5f,0x01,0x04,0xeb,0x89,0x00,0x00,0x54,0xa0,0x00,0x80,0xd2,0xff,0x43,0x00,0x91,0xc0,0x03,0x5f,0xd6,0xdf,0x00,0x01,0xeb,0xc8,0x0f,0x00,0x54,0x2b,0x00,0x06,0xcb,0x5f,0x01,0x0b,0xeb,0x68,0x0f,0x00,0x54,0x0b,0x00,0x06,0x8b,0xff,0x83,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xfe,0x2f,0x00,0xf9,0xe0,0x2b,0x40,0xf9,0xe1,0x27,0x40,0xf9,0xea,0xfb,0xff,0x97,0xeb,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xfe,0x2f,0x40,0xf9,0xff,0x83,0x01,0x91,0x8c,0x04,0x80,0xd2,0x4b,0x68,0x2c,0xb8,0x00,0x00,0x80,0xd2,0xff,0x43,0x00,0x91,0xc0,0x03,0x5f,0xd6,0x0a,0x00,0x80,0xd2,0x3f,0x01,0x01,0xeb,0x62,0x04,0x00,0x54,0x0c,0xdd,0x78,0xd3,0x8c,0x7d,0x40,0xd3,0x3f,0x01,0x01,0xeb,0x22,0x0a,0x00,0x54,0x0d,0x68,0x69,0x38,0x8b,0x01,0x0d,0xaa,0xff,0x83,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xfe,0x2f,0x00,0xf9,0xe0,0x2b,0x40,0xf9,0x88,0xfd,0xff,0x97,0xea,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xeb,0x2b,0x40,0xf9,0xfe,0x2f,0x40,0xf9,0xff,0x83,0x01,0x91,0x5f,0x01,0x00,0xf1,0x60,0x00,0x00,0x54,0x29,0x05,0x00,0x91,0x20,0x00,0x00,0x14,0xff,0x83,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xfe,0x2b,0x00,0xf9,0xe0,0x1f,0x40,0xf9,0x9d,0xfd,0xff,0x97,0xea,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xfe,0x2b,0x40,0xf9,0xff,0x83,0x01,0x91,0x5f,0x01,0x00,0xf1,0x81,0x00,0x00,0x54,0xc0,0x00,0x80,0xd2,0xff,0x43,0x00,0x91,0xc0,0x03,0x5f,0xd6,0x8b,0x04,0x80,0xd2,0x4a,0x68,0x2b,0xb8,0x0b,0x00,0x80,0xd2,0x49,0x68,0x2b,0xf8,0x2b,0x01,0x06,0xcb,0x6c,0xfd,0x60,0xd3,0xac,0x01,0x00,0xb5,0x0d,0x04,0x80,0xd2,0x4b,0x68,0x2d,0xb8,0x00,0x00,0x80,0xd2,0xff,0x43,0x00,0x91,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x81,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0xa1,0x00,0x80,0xd2,0xf8,0xff,0xff,0x17,0x82,0x04,0x80,0xd2,0x23,0x68,0x62,0xb8,0x64,0xfc,0x50,0xd3,0xa4,0x03,0x00,0xb5,0x05,0x00,0x80,0xd2,0x03,0x68,0x25,0x78,0x02,0x03,0x80,0xd2,0x23,0x68,0x62,0xb8,0x84,0x00,0x80,0xd2,0x03,0x68,0x24,0xb8,0x82,0x03,0x80,0xd2,0x23,0x68,0x62,0xb8,0x04,0x01,0x80,0xd2,0x03,0x68,0x24,0xb8,0x02,0x01,0x80,0xd2,0x23,0x68,0x62,0xf8,0x64,0xfc,0x60,0xd3,0xe4,0x01,0x00,0xb5,0x85,0x01,0x80,0xd2,0x03,0x68,0x25,0xb8,0x02,0x04,0x80,0xd2,0x23,0x68,0x62,0xb8,0x04,0x02,0x80,0xd2,0x03,0x68,0x24,0xb8,0x02,0x02,0x80,0xd2,0x23,0x68,0x62,0xf8,0x04,0x03,0x80,0xd2,0x03,0x68,0x24,0xf8,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0xa1,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x08,0x00,0x80,0xd2,0xff,0x83,0x00,0xd1,0xe6,0x03,0x00,0x91,0x09,0x00,0x80,0xd2,0xc8,0x68,0x29,0x38,0x29,0x05,0x00,0x91,0x3f,0x81,0x00,0xf1,0xa3,0xff,0xff,0x54,0x08,0x00,0x80,0xd2,0x0a,0x04,0x80,0xd2,0x89,0x08,0xca,0x9a,0x0a,0x00,0x80,0xd2,0x2b,0x00,0x80,0xd2,0x2b,0x0d,0x00,0xb4,0x2c,0x00,0xc0,0xd2,0x5f,0x01,0x0c,0xeb,0xc2,0x0d,0x00,0x54,0x4a,0x05,0x00,0x91,0x2c,0x01,0x08,0xcb,0xff,0xc3,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xec,0x2f,0x00,0xf9,0xfe,0x33,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x2f,0x40,0xf9,0xe4,0x07,0x80,0xd2,0x0f,0xfe,0xff,0x97,0xeb,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xfe,0x33,0x40,0xf9,0xff,0xc3,0x01,0x91,0x7f,0x0d,0x00,0xf1,0xec,0x07,0x9f,0x9a,0x7f,0x11,0x00,0xf1,0xed,0x07,0x9f,0x9a,0x8e,0x01,0x0d,0x8a,0xae,0x05,0x00,0xb4,0xff,0x83,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xfe,0x2f,0x00,0xf9,0xe0,0x1b,0x40,0xf9,0xe1,0x0b,0x40,0xf9,0x95,0xff,0xff,0x97,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xeb,0x2b,0x40,0xf9,0xfe,0x2f,0x40,0xf9,0xff,0x83,0x01,0x91,0x0d,0x04,0x80,0xd2,0x0c,0x7d,0x0d,0x9b,0x0d,0x00,0x80,0xd2,0xbf,0x81,0x00,0xf1,0x62,0x01,0x00,0x54,0x8e,0x01,0x0d,0x8b,0xbf,0x81,0x00,0xf1,0xc2,0x03,0x00,0x54,0xcf,0x68,0x6d,0x38,0xdf,0x01,0x04,0xeb,0x62,0x03,0x00,0x54,0x6f,0x68,0x2e,0x38,0xad,0x05,0x00,0x91,0xbf,0x81,0x00,0xf1,0xe3,0xfe,0xff,0x54,0x7f,0x01,0x00,0xf1,0xa0,0x00,0x00,0x54,0xa8,0x00,0x00,0xf9,0xe0,0x03,0x0b,0xaa,0xff,0x83,0x00,0x91,0xc0,0x03,0x5f,0xd6,0x08,0x05,0x00,0x91,0x8c,0x04,0x80,0xd2,0x4d,0x68,0x6c,0xb8,0xbf,0x01,0x00,0xf1,0xa1,0x00,0x00,0x54,0xa8,0x00,0x00,0xf9,0x00,0x00,0x80,0xd2,0xff,0x83,0x00,0x91,0xc0,0x03,0x5f,0xd6,0x97,0xff,0xff,0x17,0x8e,0x00,0x00,0x54,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x21,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x61,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0x81,0x00,0x80,0xd2,0xf8,0xff,0xff,0x17\n.previous\n"); 1943 +static const char ombr2_ident_osc_literal[] = "omega-ident 1 unit=osc_literal abi=2 profile=OM-2 src=`ed2da39b4adba054db253cd7bd5b5f7e7c68a773f7b676be6fb7ed9825cb0c0f` omc=`b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2`"; 1944 1944 __attribute__((visibility("default"))) const char *omega2_ident_osc_literal(void) 1945 1945 { 1946 1946 return ombr2_ident_osc_literal; @@ -1971,8 +1971,650 @@ __attribute__((visibility("default"))) uint32_t omega2_osc_parse_literal(uint64_ 1971 1971 return OMEGA_BAD_ARG; 1972 1972 return ombr2_run(ombr2_entry_osc_parse_literal, a, result, 1, ou, no); 1973 1973 } 1974 -__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_code_osc_ownership\n.hidden ombr2_code_osc_ownership\nombr2_code_osc_ownership:\n.byte 0x18,0x00,0x00,0x14,0x2b,0x00,0x00,0x14,0x42,0x00,0x00,0x14,0x60,0x00,0x00,0x14,0x79,0x00,0x00,0x14,0x81,0x00,0x00,0x14,0xad,0x00,0x00,0x14,0xe7,0x00,0x00,0x14,0x0a,0x01,0x00,0x14,0x2f,0x01,0x00,0x14,0x43,0x01,0x00,0x14,0x5f,0x00,0x00,0xf1,0xe3,0x07,0x9f,0x9a,0x1f,0x00,0x00,0xf1,0xe4,0x07,0x9f,0x9a,0x3f,0x00,0x00,0xf1,0xe5,0x07,0x9f,0x9a,0x86,0x00,0x05,0x8a,0x68,0x00,0x06,0xaa,0x68,0x00,0x00,0xb4,0x40,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0x00,0x00,0xf1,0x60,0x00,0x00,0x54,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xff,0xc3,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xfe,0x13,0x00,0xf9,0xe0,0x07,0x40,0xf9,0xe1,0x0b,0x40,0xf9,0xe2,0x0f,0x40,0xf9,0xe6,0xff,0xff,0x97,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xfe,0x13,0x40,0xf9,0xff,0xc3,0x00,0x91,0xc0,0x03,0x5f,0xd6,0x3f,0x00,0x00,0xf1,0xe4,0x07,0x9f,0x9a,0x1f,0x00,0x00,0xf1,0xe5,0x17,0x9f,0x9a,0x86,0x00,0x05,0x8a,0x66,0x00,0x00,0xb4,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xff,0xc3,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xfe,0x13,0x00,0xf9,0xe0,0x07,0x40,0xf9,0xe1,0x0b,0x40,0xf9,0xe2,0x0f,0x40,0xf9,0xce,0xff,0xff,0x97,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xfe,0x13,0x40,0xf9,0xff,0xc3,0x00,0x91,0xc0,0x03,0x5f,0xd6,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x03,0x40,0xf9,0x21,0x00,0x80,0xd2,0xe2,0x07,0x40,0xf9,0xe3,0x0b,0x40,0xf9,0xc8,0xff,0xff,0x97,0xe5,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0xbf,0x00,0x00,0xf1,0x60,0x00,0x00,0x54,0xe0,0x03,0x05,0xaa,0xc0,0x03,0x5f,0xd6,0x7f,0x00,0x04,0xeb,0x6a,0x00,0x00,0x54,0x80,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x03,0x00,0x80,0xd2,0x02,0x68,0x63,0x38,0x04,0x00,0x80,0xd2,0x23,0x68,0x64,0x38,0x5f,0x00,0x03,0xeb,0x61,0x00,0x00,0x54,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x7f,0x00,0x00,0xf1,0xe4,0x17,0x9f,0x9a,0x7f,0x04,0x00,0xf1,0xe5,0x17,0x9f,0x9a,0x5f,0x0c,0x00,0xf1,0xe6,0x17,0x9f,0x9a,0xa8,0x00,0x06,0x8a,0x89,0x00,0x08,0xaa,0xa9,0x00,0x00,0xb4,0x04,0x01,0x80,0xd2,0x05,0x68,0x64,0xb8,0x06,0x01,0x80,0xd2,0x25,0x68,0x26,0xb8,0x64,0x00,0x80,0xd2,0x05,0x00,0x80,0xd2,0x24,0x68,0x25,0x38,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x3f,0x00,0x00,0xeb,0xe3,0x07,0x9f,0x9a,0x5f,0x00,0x00,0xeb,0xe4,0x07,0x9f,0x9a,0x65,0x00,0x04,0xaa,0x65,0x00,0x00,0xb4,0x00,0x00,0x80,0x92,0xc0,0x03,0x5f,0xd6,0xc0,0x03,0x5f,0xd6,0x3f,0x00,0x03,0xeb,0x41,0x05,0x00,0x54,0x04,0x00,0x80,0xd2,0x05,0x00,0x80,0xd2,0x9f,0x00,0x03,0xeb,0xc2,0x03,0x00,0x54,0x06,0x48,0x88,0xd2,0xe6,0x01,0xa0,0xf2,0xbf,0x00,0x06,0xeb,0x02,0x04,0x00,0x54,0xa5,0x04,0x00,0x91,0x9f,0x00,0x01,0xeb,0x62,0x03,0x00,0x54,0x06,0x68,0x64,0x38,0xdf,0x00,0x00,0xf1,0xe8,0x07,0x9f,0x9a,0x9f,0x00,0x03,0xeb,0xc2,0x02,0x00,0x54,0x49,0x68,0x64,0x38,0x3f,0x01,0x00,0xf1,0xea,0x07,0x9f,0x9a,0x0b,0x01,0x0a,0x8a,0xcb,0x00,0x00,0xb4,0x26,0x00,0x80,0xd2,0x9f,0x00,0x03,0xeb,0xc2,0x01,0x00,0x54,0x46,0x68,0x24,0x38,0x05,0x00,0x00,0x14,0x06,0x00,0x80,0xd2,0x9f,0x00,0x03,0xeb,0x22,0x01,0x00,0x54,0x46,0x68,0x24,0x38,0x84,0x04,0x00,0x91,0x9f,0x00,0x03,0xeb,0x83,0xfc,0xff,0x54,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x81,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0x21,0x01,0x80,0xd2,0xf8,0xff,0xff,0x17,0x02,0x00,0x80,0xd2,0x03,0x00,0x80,0xd2,0x02,0x68,0x23,0x38,0x02,0x00,0x80,0xd2,0x43,0x00,0x80,0xd2,0x02,0x68,0x23,0x78,0x02,0x00,0x80,0xd2,0x83,0x00,0x80,0xd2,0x02,0x68,0x23,0x78,0x02,0x00,0x80,0xd2,0x03,0x01,0x80,0xd2,0x02,0x68,0x23,0xb8,0x3f,0xc0,0x21,0xeb,0x41,0x01,0x00,0x54,0x82,0x01,0x80,0xd2,0x01,0x68,0x22,0xb8,0x02,0x00,0x80,0xd2,0x03,0x02,0x80,0xd2,0x02,0x68,0x23,0xb8,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0xa1,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x25,0x00,0x80,0xd2,0x06,0x00,0x80,0xd2,0x05,0x68,0x26,0x38,0x65,0xfc,0x48,0xd3,0x85,0x03,0x00,0xb5,0x26,0x00,0x80,0xd2,0x03,0x68,0x26,0x38,0x3f,0xc0,0x21,0xeb,0x01,0x03,0x00,0x54,0x85,0x00,0x80,0xd2,0x01,0x68,0x25,0xb8,0x5f,0xc0,0x22,0xeb,0x81,0x02,0x00,0x54,0x05,0x01,0x80,0xd2,0x02,0x68,0x25,0xb8,0x05,0x00,0x80,0xd2,0x86,0x01,0x80,0xd2,0x05,0x68,0x26,0x78,0x05,0x00,0x80,0xd2,0xc6,0x01,0x80,0xd2,0x05,0x68,0x26,0x78,0x85,0xfc,0x60,0xd3,0x45,0x01,0x00,0xb5,0x06,0x02,0x80,0xd2,0x04,0x68,0x26,0xb8,0x05,0x00,0x80,0x92,0x86,0x02,0x80,0xd2,0x05,0x68,0x26,0xb8,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0xa1,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0xff,0xc3,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xfe,0x17,0x00,0xf9,0xe0,0x07,0x40,0xf9,0xe1,0x0b,0x40,0xf9,0x02,0x00,0x80,0x92,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xd2,0xff,0xff,0x97,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x17,0x40,0xf9,0xff,0xc3,0x00,0x91,0x7f,0x00,0x00,0xf1,0x00,0x01,0x00,0x54,0x85,0x00,0x80,0xd2,0x06,0x68,0x65,0x78,0xc8,0x04,0x00,0x91,0x08,0x3d,0x40,0xd3,0x89,0x00,0x80,0xd2,0x08,0x68,0x29,0x78,0x07,0x00,0x00,0x14,0x45,0x00,0x80,0xd2,0x06,0x68,0x65,0x78,0xc8,0x04,0x00,0x91,0x08,0x3d,0x40,0xd3,0x49,0x00,0x80,0xd2,0x08,0x68,0x29,0x78,0xc0,0x03,0x5f,0xd6,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x07,0x40,0xf9,0xe1,0x0b,0x40,0xf9,0xe2,0x0f,0x40,0xf9,0xe3,0x13,0x40,0xf9,0xe4,0x17,0x40,0xf9,0xad,0xff,0xff,0x97,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0x9f,0x00,0x00,0xf1,0x00,0x01,0x00,0x54,0xc6,0x01,0x80,0xd2,0x08,0x68,0x66,0x78,0x09,0x05,0x00,0x91,0x29,0x3d,0x40,0xd3,0xca,0x01,0x80,0xd2,0x09,0x68,0x2a,0x78,0x07,0x00,0x00,0x14,0x86,0x01,0x80,0xd2,0x08,0x68,0x66,0x78,0x09,0x05,0x00,0x91,0x29,0x3d,0x40,0xd3,0x8a,0x01,0x80,0xd2,0x09,0x68,0x2a,0x78,0xc0,0x03,0x5f,0xd6,0x02,0x00,0x80,0xd2,0x03,0x00,0x80,0xd2,0x22,0x68,0x23,0x38,0x22,0x00,0x80,0xd2,0x23,0x68,0x62,0x38,0x7f,0x00,0x00,0xf1,0x00,0x01,0x00,0x54,0x82,0x00,0x80,0xd2,0x03,0x68,0x62,0x78,0x64,0x04,0x00,0xd1,0x84,0x3c,0x40,0xd3,0x85,0x00,0x80,0xd2,0x04,0x68,0x25,0x78,0x07,0x00,0x00,0x14,0x42,0x00,0x80,0xd2,0x03,0x68,0x62,0x78,0x64,0x04,0x00,0xd1,0x84,0x3c,0x40,0xd3,0x45,0x00,0x80,0xd2,0x04,0x68,0x25,0x78,0xc0,0x03,0x5f,0xd6,0x02,0x00,0x80,0xd2,0x03,0x00,0x80,0xd2,0x22,0x68,0x23,0x38,0x22,0x00,0x80,0xd2,0x23,0x68,0x62,0x38,0x7f,0x00,0x00,0xf1,0x00,0x01,0x00,0x54,0xc2,0x01,0x80,0xd2,0x03,0x68,0x62,0x78,0x64,0x04,0x00,0xd1,0x84,0x3c,0x40,0xd3,0xc5,0x01,0x80,0xd2,0x04,0x68,0x25,0x78,0x07,0x00,0x00,0x14,0x82,0x01,0x80,0xd2,0x03,0x68,0x62,0x78,0x64,0x04,0x00,0xd1,0x84,0x3c,0x40,0xd3,0x85,0x01,0x80,0xd2,0x04,0x68,0x25,0x78,0xc0,0x03,0x5f,0xd6\n.previous\n"); 1975 -static const char ombr2_ident_osc_ownership[] = "omega-ident 1 unit=osc_ownership abi=2 profile=OM-2 src=`4057f369075c9ea7e8df9c208f640eb5361dacd2608138cb04b853db082c4d33` omc=`b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2`"; 1974 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_lex_next\n.hidden ombr2_entry_osc_lex_next\nombr2_entry_osc_lex_next:\nhint #34\nb ombr2_code_osc_literal+4\n.previous\n"); 1975 +extern const unsigned char ombr2_entry_osc_lex_next[] __attribute__((visibility("hidden"))); 1976 +/* export fn osc_lex_next src view uchar * cursor edit lexstate room ulong namemax ulong to ulong */ 1977 +__attribute__((visibility("default"))) uint32_t omega2_osc_lex_next(uint64_t *result, const uint8_t *o_src, uint64_t o_src_len, uint8_t *o_cursor, uint64_t o_room, uint64_t o_namemax) 1978 +{ 1979 + ombr_span sp[7]; 1980 + unsigned ns = 0; 1981 + uint64_t a[6] = {0}; 1982 + ombr2_out ou[6] = {{0, 0, 0}}; 1983 + unsigned no = 0; 1984 + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 1985 + return OMEGA_BAD_ARG; 1986 + if (ombr2_view(sp, &ns, o_src, o_src_len, 1u, 0)) 1987 + return OMEGA_BAD_ARG; 1988 + a[0] = (uint64_t)(uintptr_t)o_src; 1989 + a[1] = o_src_len; 1990 + if (ombr2_fixed(sp, &ns, o_cursor, 40u, 1u, 1)) 1991 + return OMEGA_BAD_ARG; 1992 + a[2] = (uint64_t)(uintptr_t)o_cursor; 1993 + a[3] = o_room; 1994 + a[4] = o_namemax; 1995 + if (ombr2_overlap(sp, ns)) 1996 + return OMEGA_BAD_ARG; 1997 + return ombr2_run(ombr2_entry_osc_lex_next, a, result, 1, ou, no); 1998 +} 1999 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_lex_stream\n.hidden ombr2_entry_osc_lex_stream\nombr2_entry_osc_lex_stream:\nhint #34\nb ombr2_code_osc_literal+8\n.previous\n"); 2000 +extern const unsigned char ombr2_entry_osc_lex_stream[] __attribute__((visibility("hidden"))); 2001 +/* export fn osc_lex_stream src view uchar * cursor edit lexstate dest edit uchar * count edit ulong 1 to ulong */ 2002 +__attribute__((visibility("default"))) uint32_t omega2_osc_lex_stream(uint64_t *result, const uint8_t *o_src, uint64_t o_src_len, uint8_t *o_cursor, uint8_t *o_dest, uint64_t o_dest_len, uint64_t *o_count, uint64_t o_count_len) 2003 +{ 2004 + ombr_span sp[7]; 2005 + unsigned ns = 0; 2006 + uint64_t a[6] = {0}; 2007 + ombr2_out ou[6] = {{0, 0, 0}}; 2008 + unsigned no = 0; 2009 + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2010 + return OMEGA_BAD_ARG; 2011 + if (ombr2_view(sp, &ns, o_src, o_src_len, 1u, 0)) 2012 + return OMEGA_BAD_ARG; 2013 + a[0] = (uint64_t)(uintptr_t)o_src; 2014 + a[1] = o_src_len; 2015 + if (ombr2_fixed(sp, &ns, o_cursor, 40u, 1u, 1)) 2016 + return OMEGA_BAD_ARG; 2017 + a[2] = (uint64_t)(uintptr_t)o_cursor; 2018 + if (ombr2_view(sp, &ns, o_dest, o_dest_len, 1u, 1)) 2019 + return OMEGA_BAD_ARG; 2020 + a[3] = (uint64_t)(uintptr_t)o_dest; 2021 + a[4] = o_dest_len; 2022 + if (ombr_span_add(sp, &ns, o_count, o_count_len, 1u, 8u, 1)) 2023 + return OMEGA_BAD_ARG; 2024 + a[5] = (uint64_t)(uintptr_t)o_count; 2025 + if (ombr2_overlap(sp, ns)) 2026 + return OMEGA_BAD_ARG; 2027 + return ombr2_run(ombr2_entry_osc_lex_stream, a, result, 1, ou, no); 2028 +} 2029 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_code_osc_type\n.hidden ombr2_code_osc_type\nombr2_code_osc_type:\n.byte 0x99,0x00,0x00,0x14,0x1f,0x74,0x00,0xf1,0x61,0x00,0x00,0x54,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0x54,0x00,0xf1,0xe1,0x37,0x9f,0x9a,0x1f,0x70,0x00,0xf1,0xe2,0x87,0x9f,0x9a,0x23,0x00,0x02,0x8a,0xc3,0x00,0x00,0xb4,0x01,0x54,0x00,0xd1,0x21,0x3c,0x40,0xd3,0x42,0x00,0x80,0xd2,0x40,0x00,0x01,0x0b,0xc0,0x03,0x5f,0xd6,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0x10,0x01,0xf1,0xe1,0x17,0x9f,0x9a,0x1f,0x14,0x01,0xf1,0xe2,0x17,0x9f,0x9a,0x23,0x00,0x02,0xaa,0x63,0x00,0x00,0xb4,0x40,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x5f,0x1c,0x00,0xf1,0x02,0x0f,0x00,0x54,0x05,0x78,0x62,0x78,0xbf,0x88,0x00,0xf1,0x60,0x00,0x00,0x54,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x42,0x04,0x00,0x91,0x45,0xfc,0x60,0xd3,0x45,0x0e,0x00,0xb5,0x06,0x00,0x80,0xd2,0x82,0x68,0x26,0xb8,0x5f,0x1c,0x00,0xf1,0x82,0x0d,0x00,0x54,0x05,0x78,0x62,0x78,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xfe,0x1f,0x00,0xf9,0xe0,0x17,0x40,0xf9,0xcc,0xff,0xff,0x97,0xe6,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x1f,0x40,0xf9,0xff,0x03,0x01,0x91,0xdf,0x00,0x00,0xf1,0xa1,0x02,0x00,0x54,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xfe,0x1f,0x00,0xf9,0xe0,0x17,0x40,0xf9,0xc7,0xff,0xff,0x97,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xfe,0x1f,0x40,0xf9,0xff,0x03,0x01,0x91,0xc0,0x03,0x5f,0xd6,0x42,0x04,0x00,0x91,0x48,0xfc,0x60,0xd3,0x08,0x08,0x00,0xb5,0x09,0x00,0x80,0xd2,0x82,0x68,0x29,0xb8,0x5f,0x1c,0x00,0xf1,0x42,0x07,0x00,0x54,0x08,0x78,0x62,0x78,0x1f,0x95,0x00,0xf1,0x60,0x00,0x00,0x54,0x80,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x42,0x04,0x00,0x91,0x48,0xfc,0x60,0xd3,0x88,0x06,0x00,0xb5,0x09,0x00,0x80,0xd2,0x82,0x68,0x29,0xb8,0x5f,0x1c,0x00,0xf1,0xc2,0x05,0x00,0x54,0x08,0x78,0x62,0x78,0x1f,0x09,0x00,0xf1,0x60,0x00,0x00,0x54,0xa0,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x5f,0x1c,0x00,0xf1,0xe2,0x04,0x00,0x54,0x28,0x78,0x62,0xf8,0x1f,0x01,0x00,0xf1,0x61,0x00,0x00,0x54,0xc0,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0x01,0x03,0xeb,0x69,0x00,0x00,0x54,0xe0,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x42,0x04,0x00,0x91,0x49,0xfc,0x60,0xd3,0xa9,0x03,0x00,0xb5,0x0a,0x00,0x80,0xd2,0x82,0x68,0x2a,0xb8,0x5f,0x1c,0x00,0xf1,0xe2,0x02,0x00,0x54,0x09,0x78,0x62,0x78,0x3f,0x8d,0x00,0xf1,0x60,0x00,0x00,0x54,0x00,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x49,0x04,0x00,0x91,0x2a,0xfd,0x60,0xd3,0x2a,0x02,0x00,0xb5,0x0b,0x00,0x80,0xd2,0x89,0x68,0x2b,0xb8,0x49,0x01,0x80,0xd2,0x8a,0x00,0x80,0xd2,0x89,0x68,0x2a,0xb8,0x89,0x01,0x80,0xd2,0x86,0x68,0x29,0xb8,0x09,0x02,0x80,0xd2,0x88,0x68,0x29,0xf8,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0xa1,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0x06,0x00,0x80,0xd2,0x08,0x00,0x80,0xd2,0xa6,0x68,0x28,0xb8,0x06,0x00,0x80,0xd2,0x88,0x00,0x80,0xd2,0xa6,0x68,0x28,0xb8,0x66,0xfc,0x60,0xd3,0x06,0x16,0x00,0xb5,0x08,0x01,0x80,0xd2,0xa3,0x68,0x28,0xb8,0x06,0x00,0x80,0xd2,0x88,0x01,0x80,0xd2,0xa6,0x68,0x28,0xb8,0x06,0x00,0x80,0xd2,0x08,0x02,0x80,0xd2,0xa6,0x68,0x28,0xf8,0x06,0x00,0x80,0xd2,0xdf,0x1c,0x00,0xf1,0x62,0x14,0x00,0x54,0x08,0x78,0x66,0x78,0x5f,0x10,0x00,0xf1,0xc1,0x07,0x00,0x54,0x1f,0x1d,0x00,0xf1,0xc1,0x00,0x00,0x54,0x29,0x00,0x80,0xd2,0x0a,0x01,0x80,0xd2,0xa9,0x68,0x2a,0xb8,0x26,0x00,0x80,0xd2,0x62,0x00,0x80,0xd2,0x1f,0xbd,0x00,0xf1,0xe1,0x01,0x00,0x54,0x49,0x00,0x80,0xd2,0x0a,0x01,0x80,0xd2,0xa9,0x68,0x2a,0xb8,0x26,0x00,0x80,0xd2,0xdf,0x1c,0x00,0xf1,0x22,0x12,0x00,0x54,0x09,0x78,0x66,0x78,0x3f,0x19,0x00,0xf1,0xa1,0x00,0x00,0x54,0x69,0x00,0x80,0xd2,0x0a,0x01,0x80,0xd2,0xa9,0x68,0x2a,0xb8,0x46,0x00,0x80,0xd2,0x62,0x00,0x80,0xd2,0xc9,0xfc,0x60,0xd3,0x29,0x11,0x00,0xb5,0x0a,0x00,0x80,0xd2,0xa6,0x68,0x2a,0xb8,0x5f,0x10,0x00,0xf1,0x21,0x04,0x00,0x54,0x1f,0x05,0x00,0xf1,0x61,0x00,0x00,0x54,0x40,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0x09,0x01,0xf1,0xe9,0x17,0x9f,0x9a,0x1f,0x05,0x01,0xf1,0xea,0x17,0x9f,0x9a,0x2b,0x01,0x0a,0xaa,0x6b,0x00,0x00,0xb4,0x60,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0x11,0x01,0xf1,0xe9,0x17,0x9f,0x9a,0x1f,0x15,0x01,0xf1,0xea,0x17,0x9f,0x9a,0x2b,0x01,0x0a,0xaa,0xeb,0x01,0x00,0xb4,0x1f,0x11,0x01,0xf1,0xa1,0x00,0x00,0x54,0x69,0x01,0x80,0xd2,0x8a,0x00,0x80,0xd2,0xa9,0x68,0x2a,0xb8,0x04,0x00,0x00,0x14,0x89,0x01,0x80,0xd2,0x8a,0x00,0x80,0xd2,0xa9,0x68,0x2a,0xb8,0x29,0x00,0x80,0xd2,0x0a,0x00,0x80,0xd2,0xa9,0x68,0x2a,0xb8,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x5f,0x0c,0x00,0xf1,0x21,0x01,0x00,0x54,0xdf,0x1c,0x00,0xf1,0xe2,0x0b,0x00,0x54,0x09,0x78,0x66,0x78,0x3f,0x05,0x00,0xf1,0x61,0x00,0x00,0x54,0x20,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x42,0x00,0x80,0xd2,0x5f,0x08,0x00,0xf1,0x61,0x03,0x00,0x54,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xfe,0x23,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x1b,0x40,0xf9,0xe3,0x13,0x40,0xf9,0xe4,0x17,0x40,0xf9,0x15,0xff,0xff,0x97,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xfe,0x23,0x40,0xf9,0xff,0x43,0x01,0x91,0xc0,0x03,0x5f,0xd6,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xfe,0x27,0x00,0xf9,0xe0,0x1f,0x40,0xf9,0xe3,0xfe,0xff,0x97,0xe9,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xfe,0x27,0x40,0xf9,0xff,0x43,0x01,0x91,0x3f,0x01,0x00,0xf1,0x21,0x03,0x00,0x54,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xfe,0x27,0x00,0xf9,0xe0,0x1f,0x40,0xf9,0xda,0xfe,0xff,0x97,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xfe,0x27,0x40,0xf9,0xff,0x43,0x01,0x91,0xc0,0x03,0x5f,0xd6,0x8a,0x00,0x80,0xd2,0xa9,0x68,0x2a,0xb8,0x2a,0x00,0x80,0xd2,0x0b,0x00,0x80,0xd2,0xaa,0x68,0x2b,0xb8,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0xa1,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17\n.previous\n"); 2030 +static const char ombr2_ident_osc_type[] = "omega-ident 1 unit=osc_type abi=2 profile=OM-2 src=`a33e7745e4cdb1a968b06aff6016de192ef8a2a9d0d2946f5b1f79c91c7f2cba` omc=`b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2`"; 2031 +__attribute__((visibility("default"))) const char *omega2_ident_osc_type(void) 2032 +{ 2033 + return ombr2_ident_osc_type; 2034 +} 2035 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_read_type\n.hidden ombr2_entry_osc_read_type\nombr2_entry_osc_read_type:\nhint #34\nb ombr2_code_osc_type+0\n.previous\n"); 2036 +extern const unsigned char ombr2_entry_osc_read_type[] __attribute__((visibility("hidden"))); 2037 +/* export fn osc_read_type kinds view ushort 7 values view ulong 7 form ulong refkind ulong limit ulong result edit typerec to ulong */ 2038 +__attribute__((visibility("default"))) uint32_t omega2_osc_read_type(uint64_t *result, const uint16_t *o_kinds, uint64_t o_kinds_len, const uint64_t *o_values, uint64_t o_values_len, uint64_t o_form, uint64_t o_refkind, uint64_t o_limit, uint8_t *o_result) 2039 +{ 2040 + ombr_span sp[7]; 2041 + unsigned ns = 0; 2042 + uint64_t a[6] = {0}; 2043 + ombr2_out ou[6] = {{0, 0, 0}}; 2044 + unsigned no = 0; 2045 + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2046 + return OMEGA_BAD_ARG; 2047 + if (ombr_span_add(sp, &ns, o_kinds, o_kinds_len, 7u, 2u, 0)) 2048 + return OMEGA_BAD_ARG; 2049 + a[0] = (uint64_t)(uintptr_t)o_kinds; 2050 + if (ombr_span_add(sp, &ns, o_values, o_values_len, 7u, 8u, 0)) 2051 + return OMEGA_BAD_ARG; 2052 + a[1] = (uint64_t)(uintptr_t)o_values; 2053 + a[2] = o_form; 2054 + a[3] = o_refkind; 2055 + a[4] = o_limit; 2056 + if (ombr2_fixed(sp, &ns, o_result, 24u, 1u, 1)) 2057 + return OMEGA_BAD_ARG; 2058 + a[5] = (uint64_t)(uintptr_t)o_result; 2059 + if (ombr2_overlap(sp, ns)) 2060 + return OMEGA_BAD_ARG; 2061 + return ombr2_run(ombr2_entry_osc_read_type, a, result, 1, ou, no); 2062 +} 2063 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_code_osc_expr\n.hidden ombr2_code_osc_expr\nombr2_code_osc_expr:\n.byte 0x3b,0x00,0x00,0x14,0x91,0x00,0x00,0x14,0x1f,0xd4,0x00,0xf1,0x61,0x00,0x00,0x54,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0xd0,0x00,0xf1,0x61,0x00,0x00,0x54,0x40,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0xe0,0x00,0xf1,0xe1,0x37,0x9f,0x9a,0x1f,0xf4,0x00,0xf1,0xe2,0x87,0x9f,0x9a,0x23,0x00,0x02,0x8a,0x63,0x00,0x00,0xb4,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0xc0,0x00,0xf1,0x61,0x00,0x00,0x54,0x80,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0xc4,0x00,0xf1,0x61,0x00,0x00,0x54,0xa0,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0xbc,0x00,0xf1,0x61,0x00,0x00,0x54,0xc0,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0xd8,0x00,0xf1,0xe1,0x17,0x9f,0x9a,0x1f,0xdc,0x00,0xf1,0xe2,0x17,0x9f,0x9a,0x23,0x00,0x02,0xaa,0x63,0x00,0x00,0xb4,0xe0,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0xa8,0x00,0xf1,0xe1,0x17,0x9f,0x9a,0x1f,0xac,0x00,0xf1,0xe2,0x17,0x9f,0x9a,0x23,0x00,0x02,0xaa,0x63,0x00,0x00,0xb4,0x00,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0xb0,0x00,0xf1,0xe1,0x17,0x9f,0x9a,0x1f,0xb4,0x00,0xf1,0xe2,0x17,0x9f,0x9a,0x1f,0xb8,0x00,0xf1,0xe3,0x17,0x9f,0x9a,0x44,0x00,0x03,0xaa,0x25,0x00,0x04,0xaa,0x65,0x00,0x00,0xb4,0x20,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x24,0xfc,0x60,0xd3,0x84,0x0a,0x00,0xb5,0xff,0xc3,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xfe,0x17,0x00,0xf9,0xe0,0x07,0x40,0xf9,0xbd,0xff,0xff,0x97,0xe3,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xfe,0x17,0x40,0xf9,0xff,0xc3,0x00,0x91,0x05,0x00,0x80,0xd2,0x04,0x68,0x65,0xb8,0x9f,0x00,0x00,0xf1,0xe0,0x04,0x00,0x54,0x86,0x04,0x00,0x51,0xe5,0x03,0x06,0xaa,0xbf,0x24,0x00,0xf1,0x62,0x07,0x00,0x54,0x88,0x00,0x80,0xd2,0x08,0x09,0x05,0x8b,0x06,0x68,0x68,0xb8,0xdf,0x00,0x03,0xeb,0xc3,0x03,0x00,0x54,0x88,0x04,0x00,0x51,0x09,0x00,0x80,0xd2,0x08,0x68,0x29,0xb8,0xbf,0x24,0x00,0xf1,0x22,0x06,0x00,0x54,0x08,0x05,0x80,0xd2,0x08,0x09,0x05,0x8b,0x09,0x68,0x68,0xb8,0x29,0x7d,0x40,0x93,0x0a,0x0e,0x80,0xd2,0x09,0x68,0x2a,0xb8,0xbf,0x24,0x00,0xf1,0x22,0x05,0x00,0x54,0x88,0x09,0x80,0xd2,0x08,0x09,0x05,0x8b,0x09,0x68,0x68,0xb8,0x29,0x7d,0x40,0x93,0x8a,0x0e,0x80,0xd2,0x09,0x68,0x2a,0xb8,0xdf,0x0c,0x00,0xf1,0xe8,0x17,0x9f,0x9a,0x7f,0x0c,0x00,0xf1,0xe9,0x17,0x9f,0x9a,0x0a,0x01,0x09,0x8a,0x6a,0x00,0x00,0xb4,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x40,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x7f,0x00,0x00,0xf1,0x61,0x00,0x00,0x54,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x9f,0x24,0x00,0xf1,0x62,0x02,0x00,0x54,0x85,0x00,0x80,0xd2,0xa5,0x08,0x04,0x8b,0x03,0x68,0x25,0xb8,0x45,0xfc,0x5f,0xd3,0x05,0x02,0x00,0xb5,0x9f,0x24,0x00,0xf1,0x82,0x01,0x00,0x54,0x86,0x09,0x80,0xd2,0xc6,0x08,0x04,0x8b,0x02,0x68,0x26,0xb8,0x85,0x04,0x00,0x11,0x06,0x00,0x80,0xd2,0x05,0x68,0x26,0xb8,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0xa1,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0x05,0x00,0x80,0xd2,0x04,0x68,0x65,0xb8,0x9f,0x00,0x00,0xf1,0x01,0x0b,0x00,0x54,0x25,0xfc,0x60,0xd3,0x25,0x0f,0x00,0xb5,0x3f,0xac,0x00,0xf1,0xe6,0x17,0x9f,0x9a,0x28,0xfc,0x60,0xd3,0xa8,0x0e,0x00,0xb5,0x3f,0xc8,0x00,0xf1,0xe9,0x17,0x9f,0x9a,0x2a,0xfc,0x60,0xd3,0x2a,0x0e,0x00,0xb5,0x3f,0xcc,0x00,0xf1,0xeb,0x17,0x9f,0x9a,0x2c,0x01,0x0b,0xaa,0xcd,0x00,0x0c,0xaa,0x0d,0x01,0x00,0xb4,0x85,0x00,0x80,0xd2,0x06,0x68,0x65,0xb8,0xc8,0x04,0x00,0x11,0x89,0x00,0x80,0xd2,0x08,0x68,0x29,0xb8,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x25,0x00,0x80,0xd2,0x06,0x00,0x80,0xd2,0x05,0x68,0x26,0xb8,0x25,0xfc,0x60,0xd3,0x05,0x0c,0x00,0xb5,0x3f,0x08,0x00,0xf1,0x61,0x00,0x00,0x54,0x40,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x25,0xfc,0x60,0xd3,0x45,0x0b,0x00,0xb5,0x3f,0x4c,0x00,0xf1,0x61,0x00,0x00,0x54,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x25,0xfc,0x60,0xd3,0x85,0x0a,0x00,0xb5,0x3f,0x50,0x00,0xf1,0x61,0x00,0x00,0x54,0x80,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x25,0xfc,0x60,0xd3,0xc5,0x09,0x00,0xb5,0x3f,0x04,0x00,0xf1,0x61,0x03,0x00,0x54,0x45,0xfc,0x60,0xd3,0x45,0x09,0x00,0xb5,0x5f,0x78,0x00,0xf1,0x61,0x00,0x00,0x54,0xc0,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x45,0xfc,0x60,0xd3,0x85,0x08,0x00,0xb5,0x5f,0x88,0x00,0xf1,0x61,0x00,0x00,0x54,0x00,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x45,0xfc,0x60,0xd3,0xc5,0x07,0x00,0xb5,0x5f,0xfc,0x00,0xf1,0x21,0x01,0x00,0x54,0x65,0xfc,0x60,0xd3,0x45,0x07,0x00,0xb5,0x7f,0x20,0x00,0xf1,0x61,0x00,0x00,0x54,0x20,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xe0,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xa0,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x25,0xfc,0x60,0xd3,0x05,0x06,0x00,0xb5,0x3f,0x78,0x00,0xf1,0x61,0x00,0x00,0x54,0x40,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x25,0xfc,0x60,0xd3,0x45,0x05,0x00,0xb5,0x3f,0xbc,0x00,0xf1,0x61,0x00,0x00,0x54,0x60,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x80,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x25,0xfc,0x60,0xd3,0x45,0x04,0x00,0xb5,0x3f,0x48,0x00,0xf1,0x81,0x01,0x00,0x54,0x9f,0x04,0x00,0xf1,0xc1,0x00,0x00,0x54,0x45,0x00,0x80,0xd2,0x06,0x00,0x80,0xd2,0x05,0x68,0x26,0xb8,0xa0,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x9f,0x08,0x00,0xf1,0x61,0x00,0x00,0x54,0xc0,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x65,0x00,0x80,0xd2,0x06,0x00,0x80,0xd2,0x05,0x68,0x26,0xb8,0x86,0x00,0x80,0xd2,0x05,0x68,0x66,0xb8,0xbf,0x00,0x00,0xf1,0x20,0x01,0x00,0x54,0xa6,0x04,0x00,0x51,0x08,0x01,0x80,0xd2,0x06,0x68,0x28,0xb8,0xa6,0x04,0x00,0x51,0x88,0x00,0x80,0xd2,0x06,0x68,0x28,0xb8,0xe0,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0xa1,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17\n.previous\n"); 2064 +static const char ombr2_ident_osc_expr[] = "omega-ident 1 unit=osc_expr abi=2 profile=OM-2 src=`e869e7be788d2f0c942d9c4c8d87d3fe6efc45713c0ced12d82183e3fa3dba1b` omc=`b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2`"; 2065 +__attribute__((visibility("default"))) const char *omega2_ident_osc_expr(void) 2066 +{ 2067 + return ombr2_ident_osc_expr; 2068 +} 2069 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_expr_step\n.hidden ombr2_entry_osc_expr_step\nombr2_entry_osc_expr_step:\nhint #34\nb ombr2_code_osc_expr+0\n.previous\n"); 2070 +extern const unsigned char ombr2_entry_osc_expr_step[] __attribute__((visibility("hidden"))); 2071 +/* export fn osc_expr_step stack edit exprstk look ulong operand ulong to ulong */ 2072 +__attribute__((visibility("default"))) uint32_t omega2_osc_expr_step(uint64_t *result, uint8_t *o_stack, uint64_t o_look, uint64_t o_operand) 2073 +{ 2074 + ombr_span sp[7]; 2075 + unsigned ns = 0; 2076 + uint64_t a[6] = {0}; 2077 + ombr2_out ou[6] = {{0, 0, 0}}; 2078 + unsigned no = 0; 2079 + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2080 + return OMEGA_BAD_ARG; 2081 + if (ombr2_fixed(sp, &ns, o_stack, 120u, 1u, 1)) 2082 + return OMEGA_BAD_ARG; 2083 + a[0] = (uint64_t)(uintptr_t)o_stack; 2084 + a[1] = o_look; 2085 + a[2] = o_operand; 2086 + if (ombr2_overlap(sp, ns)) 2087 + return OMEGA_BAD_ARG; 2088 + return ombr2_run(ombr2_entry_osc_expr_step, a, result, 1, ou, no); 2089 +} 2090 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_operand_step\n.hidden ombr2_entry_osc_operand_step\nombr2_entry_osc_operand_step:\nhint #34\nb ombr2_code_osc_expr+4\n.previous\n"); 2091 +extern const unsigned char ombr2_entry_osc_operand_step[] __attribute__((visibility("hidden"))); 2092 +/* export fn osc_operand_step state edit opstate kind ulong nextkind ulong third ulong to ulong */ 2093 +__attribute__((visibility("default"))) uint32_t omega2_osc_operand_step(uint64_t *result, uint8_t *o_state, uint64_t o_kind, uint64_t o_nextkind, uint64_t o_third) 2094 +{ 2095 + ombr_span sp[7]; 2096 + unsigned ns = 0; 2097 + uint64_t a[6] = {0}; 2098 + ombr2_out ou[6] = {{0, 0, 0}}; 2099 + unsigned no = 0; 2100 + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2101 + return OMEGA_BAD_ARG; 2102 + if (ombr2_fixed(sp, &ns, o_state, 12u, 1u, 1)) 2103 + return OMEGA_BAD_ARG; 2104 + a[0] = (uint64_t)(uintptr_t)o_state; 2105 + a[1] = o_kind; 2106 + a[2] = o_nextkind; 2107 + a[3] = o_third; 2108 + if (ombr2_overlap(sp, ns)) 2109 + return OMEGA_BAD_ARG; 2110 + return ombr2_run(ombr2_entry_osc_operand_step, a, result, 1, ou, no); 2111 +} 2112 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_code_osc_scalar\n.hidden ombr2_code_osc_scalar\nombr2_code_osc_scalar:\n.byte 0x13,0x00,0x00,0x14,0x48,0x00,0x00,0x14,0xcc,0x02,0x00,0x14,0x59,0x03,0x00,0x14,0xe5,0x03,0x00,0x14,0x72,0x04,0x00,0x14,0xfe,0x04,0x00,0x14,0x10,0x05,0x00,0x14,0x1a,0x05,0x00,0x14,0x47,0x08,0x00,0x14,0xe9,0x09,0x00,0x14,0x86,0x0e,0x00,0x14,0x67,0x13,0x00,0x14,0x1f,0x18,0x00,0xf1,0xe1,0x37,0x9f,0x9a,0x1f,0x24,0x00,0xf1,0xe2,0x87,0x9f,0x9a,0x20,0x00,0x02,0x8a,0xc0,0x03,0x5f,0xd6,0x1f,0x04,0x00,0xf1,0x61,0x00,0x00,0x54,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0x08,0x00,0xf1,0xe1,0x37,0x9f,0x9a,0x1f,0x14,0x00,0xf1,0xe2,0x87,0x9f,0x9a,0x23,0x00,0x02,0x8a,0xe3,0x00,0x00,0xb4,0x01,0x08,0x00,0xd1,0x02,0x01,0x80,0xd2,0x3f,0x00,0x01,0xf1,0x02,0x03,0x00,0x54,0x40,0x20,0xc1,0x9a,0xc0,0x03,0x5f,0xd6,0xff,0x43,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xfe,0x07,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe6,0xff,0xff,0x97,0xe1,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xfe,0x07,0x40,0xf9,0xff,0x43,0x00,0x91,0xe1,0x00,0x00,0xb4,0x01,0x18,0x00,0xd1,0x02,0x01,0x80,0xd2,0x3f,0x00,0x01,0xf1,0x02,0x01,0x00,0x54,0x40,0x20,0xc1,0x9a,0xc0,0x03,0x5f,0xd6,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0xe1,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x1f,0x00,0x01,0xf1,0x61,0x00,0x00,0x54,0x00,0x00,0x80,0x92,0xc0,0x03,0x5f,0xd6,0x21,0x00,0x80,0xd2,0x1f,0x00,0x01,0xf1,0xe2,0x00,0x00,0x54,0x22,0x20,0xc0,0x9a,0x40,0x04,0x00,0xd1,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0xe1,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0xff,0x83,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xfe,0x0f,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xc4,0xff,0xff,0x97,0xe2,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xfe,0x0f,0x40,0xf9,0xff,0x83,0x00,0x91,0xff,0x83,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xfe,0x0f,0x00,0xf9,0xe0,0x0b,0x40,0xf9,0xdf,0xff,0xff,0x97,0xe3,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xfe,0x0f,0x40,0xf9,0xff,0x83,0x00,0x91,0x21,0x00,0x03,0x8a,0xff,0x83,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xfe,0x0f,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xa4,0xff,0xff,0x97,0xe3,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xfe,0x0f,0x40,0xf9,0xff,0x83,0x00,0x91,0x03,0x01,0x00,0xb4,0x44,0x04,0x00,0xd1,0x25,0x00,0x80,0xd2,0x9f,0x00,0x01,0xf1,0x22,0x01,0x00,0x54,0xa3,0x20,0xc4,0x9a,0x24,0x00,0x03,0xca,0x81,0x00,0x03,0xcb,0xe0,0x03,0x01,0xaa,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0xe1,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0xe1,0xff,0x9f,0x92,0x01,0x00,0xa0,0xf2,0x01,0x00,0xc0,0xf2,0x01,0x00,0xf0,0xf2,0x1f,0x00,0x01,0xeb,0x83,0x00,0x00,0x54,0x01,0x00,0x80,0xd2,0x20,0x00,0x00,0xcb,0xc0,0x03,0x5f,0xd6,0xc0,0x03,0x5f,0xd6,0x03,0x04,0x00,0xd1,0x24,0x00,0x80,0xd2,0x7f,0x00,0x01,0xf1,0x42,0x01,0x00,0x54,0x82,0x20,0xc3,0x9a,0x61,0x00,0x00,0xb4,0xe0,0x03,0x02,0xaa,0xc0,0x03,0x5f,0xd6,0x40,0x04,0x00,0xd1,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0xe1,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x07,0x40,0xf9,0x72,0xff,0xff,0x97,0xe5,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xfe,0x1f,0x00,0xf9,0xe0,0x07,0x40,0xf9,0x59,0xff,0xff,0x97,0xe6,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x1f,0x40,0xf9,0xff,0x03,0x01,0x91,0x48,0x00,0x03,0x8b,0x1f,0x08,0x00,0xf1,0x41,0x00,0x00,0x54,0x48,0x00,0x03,0xcb,0x86,0x02,0x00,0xb4,0xaa,0x04,0x00,0xd1,0x2b,0x00,0x80,0xd2,0x5f,0x01,0x01,0xf1,0xc2,0x05,0x00,0x54,0x69,0x21,0xca,0x9a,0x0b,0x01,0x02,0xca,0x6a,0x01,0x09,0x8a,0x4c,0x00,0x03,0xca,0x8b,0x01,0x09,0x8a,0x5f,0x01,0x00,0xf1,0x20,0x01,0x00,0x54,0x1f,0x04,0x00,0xf1,0xec,0x17,0x9f,0x9a,0x7f,0x01,0x00,0xf1,0xed,0x17,0x9f,0x9a,0x9f,0x01,0x0d,0xeb,0x61,0x00,0x00,0x54,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xfe,0x23,0x00,0xf9,0xe0,0x07,0x40,0xf9,0xe1,0x1f,0x40,0xf9,0x67,0xff,0xff,0x97,0xe9,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xfe,0x23,0x40,0xf9,0xff,0x43,0x01,0x91,0x89,0x00,0x00,0xf9,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0xe1,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0xff,0xc3,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xfe,0x17,0x00,0xf9,0xe0,0x03,0x40,0xf9,0x15,0xff,0xff,0x97,0xe4,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xfe,0x17,0x40,0xf9,0xff,0xc3,0x00,0x91,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xfe,0xfe,0xff,0x97,0xe5,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0xa5,0x0a,0x00,0xb4,0x28,0x00,0x02,0xca,0xe9,0xff,0x9f,0x92,0x09,0x00,0xa0,0xf2,0x09,0x00,0xc0,0xf2,0x09,0x00,0xf0,0xf2,0x1f,0x01,0x09,0xeb,0xea,0x37,0x9f,0x9a,0xff,0x83,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xfe,0x2b,0x00,0xf9,0xe0,0x13,0x40,0xf9,0xe1,0x27,0x40,0xf9,0x5b,0xff,0xff,0x97,0xe6,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x2b,0x40,0xf9,0xff,0x83,0x01,0x91,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xfe,0x23,0x00,0xf9,0xe0,0x0b,0x40,0xf9,0x3c,0xff,0xff,0x97,0xe8,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xfe,0x23,0x40,0xf9,0xff,0x43,0x01,0x91,0x1f,0x01,0x00,0xf1,0xc0,0x03,0x00,0x54,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xfe,0x23,0x00,0xf9,0xe0,0x07,0x40,0xf9,0x24,0xff,0xff,0x97,0xe9,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xfe,0x23,0x40,0xf9,0xff,0x43,0x01,0x91,0x48,0x04,0x00,0xb4,0xca,0x08,0xc8,0x9a,0x3f,0x01,0x0a,0xeb,0x69,0x00,0x00,0x54,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x26,0x7c,0x02,0x9b,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xfe,0x1f,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x1b,0x40,0xf9,0xd0,0xfe,0xff,0x97,0xe6,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x1f,0x40,0xf9,0xff,0x03,0x01,0x91,0x66,0x00,0x00,0xf9,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x41,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x07,0x40,0xf9,0x7f,0xfe,0xff,0x97,0xe5,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xfe,0x1f,0x00,0xf9,0xe0,0x07,0x40,0xf9,0x66,0xfe,0xff,0x97,0xe6,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x1f,0x40,0xf9,0xff,0x03,0x01,0x91,0x7f,0x00,0x00,0xf1,0x61,0x00,0x00,0x54,0x40,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xe8,0x03,0x02,0xaa,0xe9,0x03,0x03,0xaa,0x26,0x06,0x00,0xb4,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xfe,0x27,0x00,0xf9,0xe0,0x0b,0x40,0xf9,0xbb,0xfe,0xff,0x97,0xe8,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xfe,0x27,0x40,0xf9,0xff,0x43,0x01,0x91,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xfe,0x27,0x00,0xf9,0xe0,0x0f,0x40,0xf9,0xa3,0xfe,0xff,0x97,0xe9,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xfe,0x27,0x40,0xf9,0xff,0x43,0x01,0x91,0x1f,0x10,0x00,0xf1,0x41,0x06,0x00,0x54,0x89,0x08,0x00,0xb4,0x0a,0x09,0xc9,0x9a,0xa6,0x05,0x00,0xb4,0x4c,0x00,0x03,0xca,0xed,0xff,0x9f,0x92,0x0d,0x00,0xa0,0xf2,0x0d,0x00,0xc0,0xf2,0x0d,0x00,0xf0,0xf2,0x9f,0x01,0x0d,0xeb,0xeb,0x37,0x9f,0x9a,0xff,0x83,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xfe,0x2f,0x00,0xf9,0xe0,0x17,0x40,0xf9,0xe1,0x2b,0x40,0xf9,0x86,0xfe,0xff,0x97,0xec,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xeb,0x2b,0x40,0xf9,0xfe,0x2f,0x40,0xf9,0xff,0x83,0x01,0x91,0x5f,0x01,0x0c,0xeb,0x69,0x00,0x00,0x54,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x6b,0x00,0x00,0xb4,0x0c,0x00,0x80,0xd2,0x8a,0x01,0x0a,0xcb,0x8a,0x00,0x00,0xf9,0x0f,0x00,0x00,0x14,0x69,0x02,0x00,0xb4,0x0b,0x09,0xc9,0x9a,0x6a,0xa1,0x09,0x9b,0xeb,0xff,0x9f,0x92,0x0b,0x00,0xa0,0xf2,0x0b,0x00,0xc0,0xf2,0x0b,0x00,0xf0,0xf2,0x5f,0x00,0x0b,0xeb,0xec,0x37,0x9f,0x9a,0xcd,0x00,0x0c,0x8a,0x6d,0x00,0x00,0xb4,0x0b,0x00,0x80,0xd2,0x6a,0x01,0x0a,0xcb,0x8a,0x00,0x00,0xf9,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x41,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x07,0x40,0xf9,0xda,0xfd,0xff,0x97,0xe5,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xfe,0x1f,0x00,0xf9,0xe0,0x07,0x40,0xf9,0xc1,0xfd,0xff,0x97,0xe6,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x1f,0x40,0xf9,0xff,0x03,0x01,0x91,0x7f,0x00,0x05,0xeb,0x63,0x00,0x00,0x54,0xe0,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0x24,0x00,0xf1,0x61,0x0b,0x00,0x54,0xc6,0x07,0x00,0xb4,0xe9,0xff,0x9f,0x92,0x09,0x00,0xa0,0xf2,0x09,0x00,0xc0,0xf2,0x09,0x00,0xf0,0xf2,0x5f,0x00,0x09,0xeb,0xea,0x37,0x9f,0x9a,0xff,0x83,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xfe,0x2b,0x00,0xf9,0xe0,0x17,0x40,0xf9,0xe1,0x27,0x40,0xf9,0x18,0xfe,0xff,0x97,0xe8,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xfe,0x2b,0x40,0xf9,0xff,0x83,0x01,0x91,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xfe,0x23,0x00,0xf9,0xe0,0x0b,0x40,0xf9,0xf8,0xfd,0xff,0x97,0xe9,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xfe,0x23,0x40,0xf9,0xff,0x43,0x01,0x91,0x7f,0x00,0x01,0xf1,0x02,0x07,0x00,0x54,0x0a,0x25,0xc3,0x9a,0x3f,0x01,0x0a,0xeb,0x69,0x00,0x00,0x54,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x7f,0x00,0x01,0xf1,0x22,0x06,0x00,0x54,0x48,0x20,0xc3,0x9a,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xfe,0x23,0x00,0xf9,0xe0,0x07,0x40,0xf9,0xe1,0x1f,0x40,0xf9,0xa0,0xfd,0xff,0x97,0xe8,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xfe,0x23,0x40,0xf9,0xff,0x43,0x01,0x91,0x88,0x00,0x00,0xf9,0x12,0x00,0x00,0x14,0x7f,0x00,0x01,0xf1,0xa2,0x02,0x00,0x54,0x48,0x24,0xc3,0x9a,0xe9,0xff,0x9f,0x92,0x09,0x00,0xa0,0xf2,0x09,0x00,0xc0,0xf2,0x09,0x00,0xf0,0xf2,0x5f,0x00,0x09,0xeb,0xea,0x37,0x9f,0x9a,0xcb,0x00,0x0a,0x8a,0xcb,0x00,0x00,0xb4,0xe9,0x03,0x22,0xaa,0x7f,0x00,0x01,0xf1,0x22,0x01,0x00,0x54,0x2a,0x25,0xc3,0x9a,0xe8,0x03,0x2a,0xaa,0x88,0x00,0x00,0xf9,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0xe1,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x05,0x00,0x80,0xd2,0x85,0x00,0x00,0xf9,0xff,0xc3,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xfe,0x17,0x00,0xf9,0xe0,0x07,0x40,0xf9,0x3b,0xfd,0xff,0x97,0xe5,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x17,0x40,0xf9,0xff,0xc3,0x00,0x91,0xbf,0x00,0x00,0xf1,0x61,0x00,0x00,0x54,0x00,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0x04,0x00,0xf1,0xe5,0x17,0x9f,0x9a,0x1f,0x08,0x00,0xf1,0xe6,0x17,0x9f,0x9a,0xa8,0x00,0x06,0xaa,0xa8,0x02,0x00,0xb4,0xff,0xc3,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xfe,0x17,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xa1,0xfd,0xff,0x97,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x17,0x40,0xf9,0xff,0xc3,0x00,0x91,0xc0,0x03,0x5f,0xd6,0x1f,0x0c,0x00,0xf1,0x81,0x02,0x00,0x54,0xff,0xc3,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xfe,0x17,0x00,0xf9,0xe0,0x07,0x40,0xf9,0xe1,0x0b,0x40,0xf9,0xe2,0x0f,0x40,0xf9,0xe3,0x13,0x40,0xf9,0xea,0xfd,0xff,0x97,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x17,0x40,0xf9,0xff,0xc3,0x00,0x91,0xc0,0x03,0x5f,0xd6,0x1f,0x10,0x00,0xf1,0xe5,0x17,0x9f,0x9a,0x1f,0x14,0x00,0xf1,0xe6,0x17,0x9f,0x9a,0xa8,0x00,0x06,0xaa,0xa8,0x02,0x00,0xb4,0xff,0xc3,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xfe,0x17,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0x65,0xfe,0xff,0x97,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x17,0x40,0xf9,0xff,0xc3,0x00,0x91,0xc0,0x03,0x5f,0xd6,0x1f,0x18,0x00,0xf1,0xa1,0x00,0x00,0x54,0x45,0x00,0x03,0x8a,0x85,0x00,0x00,0xf9,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0x1c,0x00,0xf1,0xa1,0x00,0x00,0x54,0x45,0x00,0x03,0xaa,0x85,0x00,0x00,0xf9,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0x20,0x00,0xf1,0xa1,0x00,0x00,0x54,0x45,0x00,0x03,0xca,0x85,0x00,0x00,0xf9,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0x24,0x00,0xf1,0xe5,0x17,0x9f,0x9a,0x1f,0x28,0x00,0xf1,0xe6,0x17,0x9f,0x9a,0xa8,0x00,0x06,0xaa,0xa8,0x02,0x00,0xb4,0xff,0xc3,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xfe,0x17,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xde,0xfe,0xff,0x97,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x17,0x40,0xf9,0xff,0xc3,0x00,0x91,0xc0,0x03,0x5f,0xd6,0x00,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x04,0x00,0x80,0xd2,0x64,0x00,0x00,0xf9,0x1f,0x04,0x00,0xf1,0xa1,0x0c,0x00,0x54,0xff,0xc3,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xfe,0x13,0x00,0xf9,0xe0,0x07,0x40,0xf9,0xa6,0xfc,0xff,0x97,0xe4,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xfe,0x13,0x40,0xf9,0xff,0xc3,0x00,0x91,0xc4,0x07,0x00,0xb4,0xe4,0xff,0x9f,0x92,0x04,0x00,0xa0,0xf2,0x04,0x00,0xc0,0xf2,0x04,0x00,0xf0,0xf2,0x5f,0x00,0x04,0xeb,0x03,0x07,0x00,0x54,0xff,0xc3,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xfe,0x13,0x00,0xf9,0xe0,0x0b,0x40,0xf9,0x02,0xfd,0xff,0x97,0xe4,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xfe,0x13,0x40,0xf9,0xff,0xc3,0x00,0x91,0xff,0xc3,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xfe,0x17,0x00,0xf9,0xe0,0x07,0x40,0xf9,0x86,0xfc,0xff,0x97,0xe5,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x17,0x40,0xf9,0xff,0xc3,0x00,0x91,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x17,0x40,0xf9,0x01,0x00,0x80,0xd2,0xe9,0xfc,0xff,0x97,0xe5,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0x9f,0x00,0x05,0xeb,0x69,0x00,0x00,0x54,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x04,0x00,0x80,0xd2,0x85,0x00,0x02,0xcb,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x07,0x40,0xf9,0xe1,0x17,0x40,0xf9,0x90,0xfc,0xff,0x97,0xe4,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0x64,0x00,0x00,0xf9,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0x08,0x00,0xf1,0xc1,0x02,0x00,0x54,0xe4,0x03,0x22,0xaa,0xff,0xc3,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xfe,0x17,0x00,0xf9,0xe0,0x07,0x40,0xf9,0xe1,0x13,0x40,0xf9,0x79,0xfc,0xff,0x97,0xe4,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xfe,0x17,0x40,0xf9,0xff,0xc3,0x00,0x91,0x64,0x00,0x00,0xf9,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0x0c,0x00,0xf1,0xc1,0x00,0x00,0x54,0x24,0x00,0x80,0xd2,0x45,0x00,0x04,0xca,0x65,0x00,0x00,0xf9,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x00,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x60,0x00,0x00,0xb4,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xff,0xc3,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xfe,0x13,0x00,0xf9,0xe0,0x07,0x40,0xf9,0x1d,0xfc,0xff,0x97,0xe4,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xfe,0x13,0x40,0xf9,0xff,0xc3,0x00,0x91,0x64,0x01,0x00,0xb4,0xe4,0xff,0x9f,0x92,0x04,0x00,0xa0,0xf2,0x04,0x00,0xc0,0xf2,0x04,0x00,0xf0,0xf2,0x42,0x00,0x04,0xca,0xe4,0xff,0x9f,0x92,0x04,0x00,0xa0,0xf2,0x04,0x00,0xc0,0xf2,0x04,0x00,0xf0,0xf2,0x63,0x00,0x04,0xca,0x1f,0x04,0x00,0xf1,0x41,0x02,0x00,0x54,0x5f,0x00,0x03,0xeb,0xe4,0x17,0x9f,0x9a,0xff,0xc3,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xfe,0x17,0x00,0xf9,0xe0,0x13,0x40,0xf9,0xd5,0xff,0xff,0x97,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xfe,0x17,0x40,0xf9,0xff,0xc3,0x00,0x91,0xc0,0x03,0x5f,0xd6,0x1f,0x08,0x00,0xf1,0x41,0x02,0x00,0x54,0x5f,0x00,0x03,0xeb,0xe4,0x07,0x9f,0x9a,0xff,0xc3,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xfe,0x17,0x00,0xf9,0xe0,0x13,0x40,0xf9,0xc2,0xff,0xff,0x97,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xfe,0x17,0x40,0xf9,0xff,0xc3,0x00,0x91,0xc0,0x03,0x5f,0xd6,0x1f,0x0c,0x00,0xf1,0x41,0x02,0x00,0x54,0x5f,0x00,0x03,0xeb,0xe4,0x27,0x9f,0x9a,0xff,0xc3,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xfe,0x17,0x00,0xf9,0xe0,0x13,0x40,0xf9,0xaf,0xff,0xff,0x97,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xfe,0x17,0x40,0xf9,0xff,0xc3,0x00,0x91,0xc0,0x03,0x5f,0xd6,0x1f,0x10,0x00,0xf1,0x41,0x02,0x00,0x54,0x5f,0x00,0x03,0xeb,0xe4,0x87,0x9f,0x9a,0xff,0xc3,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xfe,0x17,0x00,0xf9,0xe0,0x13,0x40,0xf9,0x9c,0xff,0xff,0x97,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xfe,0x17,0x40,0xf9,0xff,0xc3,0x00,0x91,0xc0,0x03,0x5f,0xd6,0x1f,0x14,0x00,0xf1,0x41,0x02,0x00,0x54,0x5f,0x00,0x03,0xeb,0xe4,0x97,0x9f,0x9a,0xff,0xc3,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xfe,0x17,0x00,0xf9,0xe0,0x13,0x40,0xf9,0x89,0xff,0xff,0x97,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xfe,0x17,0x40,0xf9,0xff,0xc3,0x00,0x91,0xc0,0x03,0x5f,0xd6,0x1f,0x18,0x00,0xf1,0x41,0x02,0x00,0x54,0x5f,0x00,0x03,0xeb,0xe4,0x37,0x9f,0x9a,0xff,0xc3,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xfe,0x17,0x00,0xf9,0xe0,0x13,0x40,0xf9,0x76,0xff,0xff,0x97,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xfe,0x17,0x40,0xf9,0xff,0xc3,0x00,0x91,0xc0,0x03,0x5f,0xd6,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x04,0x00,0x80,0xd2,0x64,0x00,0x00,0xf9,0xff,0xc3,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xfe,0x17,0x00,0xf9,0xe0,0x07,0x40,0xf9,0x8c,0xfb,0xff,0x97,0xe5,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x17,0x40,0xf9,0xff,0xc3,0x00,0x91,0xe6,0xff,0x9f,0x92,0x06,0x00,0xa0,0xf2,0x06,0x00,0xc0,0xf2,0x06,0x00,0xf0,0xf2,0x5f,0x00,0x06,0xeb,0xe8,0x37,0x9f,0x9a,0xa4,0x00,0x08,0x8a,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x03,0x40,0xf9,0x79,0xfb,0xff,0x97,0xe5,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x03,0x40,0xf9,0x61,0xfb,0xff,0x97,0xe6,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0x46,0x06,0x00,0xb4,0xe6,0x03,0x02,0xaa,0xa4,0x02,0x00,0xb4,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xfe,0x1f,0x00,0xf9,0xe0,0x0b,0x40,0xf9,0xbc,0xfb,0xff,0x97,0xe6,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x1f,0x40,0xf9,0xff,0x03,0x01,0x91,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xfe,0x1f,0x00,0xf9,0xe0,0x17,0x40,0xf9,0xe1,0x13,0x40,0xf9,0xb1,0xfb,0xff,0x97,0xe8,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xfe,0x1f,0x40,0xf9,0xff,0x03,0x01,0x91,0xdf,0x00,0x08,0xeb,0x69,0x00,0x00,0x54,0xa0,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1a,0x00,0x00,0x14,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x17,0x40,0xf9,0x49,0xfb,0xff,0x97,0xe6,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0x5f,0x00,0x06,0xeb,0xe8,0x97,0x9f,0x9a,0x89,0x00,0x08,0xaa,0x69,0x00,0x00,0xb4,0xa0,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x62,0x00,0x00,0xf9,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0xa8,0x00,0xf1,0xe1,0x37,0x9f,0x9a,0x1f,0xc4,0x00,0xf1,0xe2,0x87,0x9f,0x9a,0x23,0x00,0x02,0x8a,0x83,0x00,0x00,0xb4,0x01,0xa8,0x00,0xd1,0x20,0x04,0x00,0x91,0xc0,0x03,0x5f,0xd6,0x1f,0xd8,0x00,0xf1,0x61,0x00,0x00,0x54,0x20,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0xdc,0x00,0xf1,0x61,0x00,0x00,0x54,0x40,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0xe0,0x00,0xf1,0xe1,0x37,0x9f,0x9a,0x1f,0xf4,0x00,0xf1,0xe2,0x87,0x9f,0x9a,0x23,0x00,0x02,0x8a,0x83,0x00,0x00,0xb4,0x01,0xe0,0x00,0xd1,0x20,0x04,0x00,0x91,0xc0,0x03,0x5f,0xd6,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xff,0xc3,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xfe,0x13,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xea,0xfa,0xff,0x97,0xe3,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xfe,0x13,0x40,0xf9,0xff,0xc3,0x00,0x91,0xff,0xc3,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xfe,0x13,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xd6,0xfa,0xff,0x97,0xe4,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xfe,0x13,0x40,0xf9,0xff,0xc3,0x00,0x91,0xc4,0x04,0x00,0xb4,0x5f,0x00,0x00,0xf1,0xe4,0x07,0x9f,0x9a,0xff,0xc3,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xfe,0x17,0x00,0xf9,0xe0,0x0f,0x40,0xf9,0xe1,0x13,0x40,0xf9,0x3e,0xfb,0xff,0x97,0xe4,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xfe,0x17,0x40,0xf9,0xff,0xc3,0x00,0x91,0x3f,0x00,0x04,0xeb,0xe5,0x87,0x9f,0x9a,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x17,0x40,0xf9,0x86,0xfe,0xff,0x97,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0xc0,0x03,0x5f,0xd6,0x5f,0x00,0x00,0xf1,0x40,0x02,0x00,0x54,0x3f,0x00,0x00,0xf1,0xe4,0x17,0x9f,0x9a,0xff,0xc3,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xfe,0x17,0x00,0xf9,0xe0,0x13,0x40,0xf9,0x73,0xfe,0xff,0x97,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xfe,0x17,0x40,0xf9,0xff,0xc3,0x00,0x91,0xc0,0x03,0x5f,0xd6,0xff,0xc3,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xfe,0x13,0x00,0xf9,0xe0,0x0f,0x40,0xf9,0xbb,0xfa,0xff,0x97,0xe4,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xfe,0x13,0x40,0xf9,0xff,0xc3,0x00,0x91,0x3f,0x00,0x04,0xeb,0xe5,0x87,0x9f,0x9a,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x17,0x40,0xf9,0x52,0xfe,0xff,0x97,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0xc0,0x03,0x5f,0xd6,0x04,0x00,0x80,0xd2,0x05,0x00,0x80,0xd2,0x06,0x00,0x80,0xd2,0xbf,0x00,0x03,0xeb,0x62,0x02,0x00,0x54,0x08,0x48,0x88,0xd2,0xe8,0x01,0xa0,0xf2,0xdf,0x00,0x08,0xeb,0xc2,0x02,0x00,0x54,0xc6,0x04,0x00,0x91,0x48,0x00,0x05,0x8b,0x1f,0x01,0x01,0xeb,0x02,0x02,0x00,0x54,0x09,0x68,0x68,0x38,0x0a,0x01,0x80,0xd2,0xab,0x7c,0x0a,0x9b,0x7f,0x01,0x01,0xf1,0xe2,0x01,0x00,0x54,0x2c,0x21,0xcb,0x9a,0x84,0x00,0x0c,0xaa,0xa5,0x04,0x00,0x91,0xbf,0x00,0x03,0xeb,0xe3,0xfd,0xff,0x54,0xe0,0x03,0x04,0xaa,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x81,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0xe1,0x00,0x80,0xd2,0xf8,0xff,0xff,0x17,0x45,0x2c,0x01,0x91,0xbf,0x00,0x01,0xeb,0xa2,0x18,0x00,0x54,0x06,0x68,0x65,0x38,0xdf,0x00,0x00,0xf1,0x40,0x03,0x00,0x54,0x45,0x40,0x01,0x91,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x17,0x40,0xf9,0x03,0x01,0x80,0xd2,0xcb,0xff,0xff,0x97,0xe5,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0x85,0x00,0x00,0xf9,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0x43,0x00,0x80,0xd2,0xb3,0xff,0xff,0x97,0xe5,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0xbf,0x40,0x00,0xf1,0x61,0x06,0x00,0x54,0x46,0x80,0x00,0x91,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xfe,0x1f,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x1b,0x40,0xf9,0x03,0x01,0x80,0xd2,0x9a,0xff,0xff,0x97,0xe6,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x1f,0x40,0xf9,0xff,0x03,0x01,0x91,0xdf,0x00,0x00,0xf1,0xe8,0x07,0x9f,0x9a,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xfe,0x23,0x00,0xf9,0xe0,0x1f,0x40,0xf9,0xce,0xfd,0xff,0x97,0xe6,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x23,0x40,0xf9,0xff,0x43,0x01,0x91,0x86,0x00,0x00,0xf9,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xbf,0x44,0x00,0xf1,0xc1,0x09,0x00,0x54,0x48,0x60,0x01,0x91,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xfe,0x23,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x1f,0x40,0xf9,0x83,0x00,0x80,0xd2,0x65,0xff,0xff,0x97,0xe8,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xfe,0x23,0x40,0xf9,0xff,0x43,0x01,0x91,0x09,0xfd,0x60,0xd3,0x89,0x08,0x00,0xb5,0x0a,0xfd,0x5f,0xd3,0x4a,0x08,0x00,0xb5,0xe6,0x03,0x08,0xaa,0xdf,0x00,0x00,0xf1,0x6a,0x00,0x00,0x54,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x08,0x07,0x80,0xd2,0x69,0x68,0x68,0xb8,0x29,0x7d,0x40,0x93,0xdf,0x00,0x09,0xeb,0x8a,0x02,0x00,0x54,0xc8,0xfc,0x7f,0xd3,0xc8,0x06,0x00,0xb5,0xdf,0x18,0x00,0xf1,0x42,0x06,0x00,0x54,0x09,0x06,0x80,0xd2,0x29,0x01,0x06,0x8b,0x6a,0x68,0x69,0x38,0x5f,0x01,0x00,0xf1,0x60,0x01,0x00,0x54,0xc8,0xfc,0x7f,0xd3,0xa8,0x05,0x00,0xb5,0xdf,0x18,0x00,0xf1,0x22,0x05,0x00,0x54,0x09,0x00,0x80,0xd2,0x29,0x0d,0x06,0x8b,0x6a,0x68,0x69,0xf8,0x8a,0x00,0x00,0xf9,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x88,0x07,0x80,0xd2,0x69,0x68,0x68,0xb8,0x29,0x7d,0x40,0x93,0xdf,0x00,0x09,0xeb,0xea,0x17,0x9f,0x9a,0x0b,0x08,0x80,0xd2,0x6c,0x68,0x6b,0x38,0x9f,0x01,0x00,0xf1,0xed,0x07,0x9f,0x9a,0x4e,0x01,0x0d,0x8a,0xce,0x00,0x00,0xb4,0x08,0x09,0x80,0xd2,0x69,0x68,0x68,0xf8,0x89,0x00,0x00,0xf9,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xbf,0x58,0x00,0xf1,0xe6,0x17,0x9f,0x9a,0xbf,0x5c,0x00,0xf1,0xe8,0x17,0x9f,0x9a,0xbf,0x54,0x00,0xf1,0xe9,0x17,0x9f,0x9a,0x0a,0x01,0x09,0xaa,0xcb,0x00,0x0a,0xaa,0x6b,0x00,0x00,0xb4,0x40,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0xa1,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0x45,0xe0,0x00,0x91,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x17,0x40,0xf9,0x83,0x00,0x80,0xd2,0x06,0xff,0xff,0x97,0xe4,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0xff,0xc3,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xfe,0x17,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0x43,0x00,0x80,0xd2,0xf3,0xfe,0xff,0x97,0xe5,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x17,0x40,0xf9,0xff,0xc3,0x00,0x91,0xbf,0x5c,0x00,0xf1,0xe1,0x0c,0x00,0x54,0x46,0x30,0x00,0x91,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xfe,0x1f,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x1b,0x40,0xf9,0x83,0x00,0x80,0xd2,0xda,0xfe,0xff,0x97,0xe5,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x1f,0x40,0xf9,0xff,0x03,0x01,0x91,0x08,0x0d,0x80,0xd2,0xa9,0x7c,0x08,0x9b,0x2a,0xe1,0x00,0x91,0xff,0x83,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xfe,0x2b,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x27,0x40,0xf9,0x83,0x00,0x80,0xd2,0xbe,0xfe,0xff,0x97,0xe6,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x2b,0x40,0xf9,0xff,0x83,0x01,0x91,0x68,0x00,0x40,0xf9,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xfe,0x23,0x00,0xf9,0xe0,0x13,0x40,0xf9,0xe1,0x1b,0x40,0xf9,0xe2,0x1f,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0x83,0xfd,0xff,0x97,0xe8,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xfe,0x23,0x40,0xf9,0xff,0x43,0x01,0x91,0x1f,0x01,0x00,0xf1,0xe9,0x17,0x9f,0x9a,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xfe,0x27,0x00,0xf9,0xe0,0x23,0x40,0xf9,0xd7,0xfc,0xff,0x97,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xfe,0x27,0x40,0xf9,0xff,0x43,0x01,0x91,0xc0,0x03,0x5f,0xd6,0x46,0x08,0x00,0x91,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xfe,0x1f,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x1b,0x40,0xf9,0x43,0x00,0x80,0xd2,0x74,0xfe,0xff,0x97,0xe5,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x1f,0x40,0xf9,0xff,0x03,0x01,0x91,0x26,0x00,0x80,0xd2,0xbf,0xcc,0x00,0xf1,0x61,0x00,0x00,0x54,0x66,0x00,0x80,0xd2,0x04,0x00,0x00,0x14,0xbf,0xc8,0x00,0xf1,0x41,0x00,0x00,0x54,0x46,0x00,0x80,0xd2,0x68,0x00,0x40,0xf9,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xfe,0x23,0x00,0xf9,0xe0,0x1b,0x40,0xf9,0xe1,0x13,0x40,0xf9,0xe2,0x1f,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0x17,0xfc,0xff,0x97,0xe8,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xfe,0x23,0x40,0xf9,0xff,0x43,0x01,0x91,0x1f,0x01,0x00,0xf1,0xe9,0x17,0x9f,0x9a,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xfe,0x27,0x00,0xf9,0xe0,0x23,0x40,0xf9,0x86,0xfc,0xff,0x97,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xfe,0x27,0x40,0xf9,0xff,0x43,0x01,0x91,0xc0,0x03,0x5f,0xd6,0x46,0x08,0x00,0x91,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xfe,0x1f,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x1b,0x40,0xf9,0x43,0x00,0x80,0xd2,0x23,0xfe,0xff,0x97,0xe5,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x1f,0x40,0xf9,0xff,0x03,0x01,0x91,0xbf,0xd0,0x00,0xf1,0xe6,0x17,0x9f,0x9a,0xbf,0xd4,0x00,0xf1,0xe8,0x17,0x9f,0x9a,0xc9,0x00,0x08,0xaa,0x69,0x00,0x00,0xb4,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xfe,0x1f,0x00,0xf9,0xe0,0x17,0x40,0xf9,0x86,0xfd,0xff,0x97,0xe6,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x1f,0x40,0xf9,0xff,0x03,0x01,0x91,0xdf,0x00,0x00,0xf1,0x80,0x04,0x00,0x54,0x48,0x24,0x01,0x91,0x1f,0x01,0x01,0xeb,0xc2,0x11,0x00,0x54,0x09,0x68,0x68,0x38,0x8a,0x00,0x40,0xf9,0xff,0x83,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xfe,0x2b,0x00,0xf9,0xe0,0x1b,0x40,0xf9,0xe1,0x23,0x40,0xf9,0xe2,0x0f,0x40,0xf9,0xe3,0x27,0x40,0xf9,0x37,0xfc,0xff,0x97,0xe8,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xfe,0x2b,0x40,0xf9,0xff,0x83,0x01,0x91,0x88,0x00,0x00,0xf9,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x49,0xe0,0x00,0x91,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xfe,0x27,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x23,0x40,0xf9,0x83,0x00,0x80,0xd2,0xc9,0xfd,0xff,0x97,0xe8,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xfe,0x27,0x40,0xf9,0xff,0x43,0x01,0x91,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xfe,0x23,0x00,0xf9,0xe0,0x17,0x40,0xf9,0x1e,0xfd,0xff,0x97,0xe9,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xfe,0x23,0x40,0xf9,0xff,0x43,0x01,0x91,0x8a,0x00,0x40,0xf9,0xff,0x83,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xfe,0x2b,0x00,0xf9,0xe0,0x23,0x40,0xf9,0xe1,0x1f,0x40,0xf9,0xe2,0x0f,0x40,0xf9,0xe3,0x27,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xca,0xfa,0xff,0x97,0xe9,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xfe,0x2b,0x40,0xf9,0xff,0x83,0x01,0x91,0x3f,0x01,0x00,0xf1,0xea,0x17,0x9f,0x9a,0xff,0x83,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xfe,0x2b,0x00,0xf9,0xe0,0x27,0x40,0xf9,0xc5,0xfb,0xff,0x97,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xfe,0x2b,0x40,0xf9,0xff,0x83,0x01,0x91,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x45,0x08,0x00,0x91,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x17,0x40,0xf9,0x43,0x00,0x80,0xd2,0x5d,0xfd,0xff,0x97,0xe4,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0x9f,0xd0,0x00,0xf1,0xe5,0x17,0x9f,0x9a,0x7f,0x00,0x00,0xf1,0xe6,0x17,0x9f,0x9a,0xa8,0x00,0x06,0x8a,0x9f,0xd4,0x00,0xf1,0xe9,0x17,0x9f,0x9a,0x7f,0x00,0x00,0xf1,0xea,0x07,0x9f,0x9a,0x2b,0x01,0x0a,0x8a,0x00,0x01,0x0b,0xaa,0xc0,0x03,0x5f,0xd6,0x08,0x00,0x80,0xd2,0xff,0x43,0x00,0xd1,0xe6,0x03,0x00,0x91,0x09,0x00,0x80,0xd2,0xc8,0x78,0x29,0xf8,0x29,0x05,0x00,0x91,0x3f,0x05,0x00,0xf1,0xa3,0xff,0xff,0x54,0x28,0x00,0x80,0xd2,0xa9,0x00,0x40,0xf9,0x8a,0x00,0x80,0xd2,0x2b,0x7d,0x0a,0x9b,0x0c,0x00,0x80,0xd2,0x9f,0x01,0x04,0xeb,0xe2,0x30,0x00,0x54,0x6b,0x78,0x2c,0xf8,0x09,0x00,0x80,0xd2,0x1f,0x01,0x00,0xf1,0x60,0x2f,0x00,0x54,0x2a,0x00,0x80,0xd2,0x2a,0x00,0xa0,0xf2,0x3f,0x01,0x0a,0xeb,0x22,0x30,0x00,0x54,0x29,0x05,0x00,0x91,0x0a,0x05,0x00,0xd1,0x5f,0x01,0x04,0xeb,0x62,0x2f,0x00,0x54,0x6c,0x78,0x6a,0xf8,0x8d,0xfd,0x42,0xd3,0x0e,0x0d,0x80,0xd2,0xab,0x7d,0x0e,0x9b,0x5f,0x01,0x04,0xeb,0xa2,0x2e,0x00,0x54,0x6d,0x78,0x6a,0xf8,0x6e,0x00,0x80,0xd2,0xac,0x01,0x0e,0x8a,0x9f,0x01,0x00,0xf1,0x21,0x0c,0x00,0x54,0xff,0xc3,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xec,0x2f,0x00,0xf9,0xed,0x33,0x00,0xf9,0xfe,0x37,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x2b,0x40,0xf9,0xe3,0x0b,0x40,0xf9,0xe4,0x1b,0x40,0xf9,0x31,0xfd,0xff,0x97,0xed,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xeb,0x2b,0x40,0xf9,0xec,0x2f,0x40,0xf9,0xfe,0x37,0x40,0xf9,0xff,0xc3,0x01,0x91,0xbf,0x01,0x00,0xf1,0x81,0x00,0x00,0x54,0x00,0x00,0x80,0xd2,0xff,0x43,0x00,0x91,0xc0,0x03,0x5f,0xd6,0xbf,0x09,0x00,0xf1,0xa1,0x06,0x00,0x54,0x5f,0x01,0x04,0xeb,0x62,0x28,0x00,0x54,0x6e,0x78,0x6a,0xf8,0xcf,0x05,0x00,0x91,0x5f,0x01,0x04,0xeb,0xe2,0x27,0x00,0x54,0x6f,0x78,0x2a,0xf8,0x6e,0x31,0x00,0x91,0xff,0x03,0x02,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xec,0x2f,0x00,0xf9,0xed,0x33,0x00,0xf9,0xee,0x37,0x00,0xf9,0xfe,0x3b,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x37,0x40,0xf9,0x83,0x00,0x80,0xd2,0xdc,0xfc,0xff,0x97,0xee,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xeb,0x2b,0x40,0xf9,0xec,0x2f,0x40,0xf9,0xed,0x33,0x40,0xf9,0xfe,0x3b,0x40,0xf9,0xff,0x03,0x02,0x91,0x8f,0x00,0x80,0xd2,0xd1,0x7d,0x0f,0x9b,0x1f,0x01,0x04,0xeb,0x82,0x22,0x00,0x54,0x71,0x78,0x28,0xf8,0x08,0x05,0x00,0x91,0xae,0xf1,0xff,0x54,0x06,0x01,0x00,0x14,0xff,0xc3,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xec,0x2f,0x00,0xf9,0xfe,0x33,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x2b,0x40,0xf9,0x43,0x00,0x80,0xd2,0xb1,0xfc,0xff,0x97,0xed,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xeb,0x2b,0x40,0xf9,0xec,0x2f,0x40,0xf9,0xfe,0x33,0x40,0xf9,0xff,0xc3,0x01,0x91,0xbf,0x55,0x00,0xf1,0x20,0x05,0x00,0x54,0xff,0xc3,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xec,0x2f,0x00,0xf9,0xfe,0x33,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x2b,0x40,0xf9,0xe3,0x1b,0x40,0xf9,0x7a,0xfd,0xff,0x97,0xed,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xeb,0x2b,0x40,0xf9,0xec,0x2f,0x40,0xf9,0xfe,0x33,0x40,0xf9,0xff,0xc3,0x01,0x91,0xbf,0x01,0x00,0xf1,0x81,0x00,0x00,0x54,0x00,0x00,0x80,0xd2,0xff,0x43,0x00,0x91,0xc0,0x03,0x5f,0xd6,0xba,0x00,0x00,0x14,0x9f,0x05,0x00,0xf1,0xc1,0x10,0x00,0x54,0xcd,0x00,0x40,0xf9,0xff,0xc3,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xec,0x2f,0x00,0xf9,0xed,0x33,0x00,0xf9,0xfe,0x37,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x2b,0x40,0xf9,0xe3,0x33,0x40,0xf9,0xf7,0xfe,0xff,0x97,0xed,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xeb,0x2b,0x40,0xf9,0xec,0x2f,0x40,0xf9,0xfe,0x37,0x40,0xf9,0xff,0xc3,0x01,0x91,0xed,0x04,0x00,0xb4,0xcd,0x00,0x40,0xf9,0xbf,0x01,0x00,0xf1,0xee,0x07,0x9f,0x9a,0xff,0x03,0x02,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xec,0x2f,0x00,0xf9,0xed,0x33,0x00,0xf9,0xee,0x37,0x00,0xf9,0xfe,0x3b,0x00,0xf9,0xe0,0x37,0x40,0xf9,0x87,0xfa,0xff,0x97,0xed,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xeb,0x2b,0x40,0xf9,0xec,0x2f,0x40,0xf9,0xfe,0x3b,0x40,0xf9,0xff,0x03,0x02,0x91,0xcd,0x00,0x00,0xf9,0x3a,0x00,0x00,0x14,0x4d,0x00,0x80,0xd2,0x8e,0x08,0xcd,0x9a,0x4f,0x01,0x0e,0x8b,0xd1,0x00,0x40,0xf9,0xff,0x01,0x04,0xeb,0x22,0x0e,0x00,0x54,0x71,0x78,0x2f,0xf8,0x5f,0x01,0x04,0xeb,0xc2,0x0d,0x00,0x54,0x6d,0x78,0x6a,0xf8,0xae,0x05,0x00,0x91,0x5f,0x01,0x04,0xeb,0x42,0x0d,0x00,0x54,0x6e,0x78,0x2a,0xf8,0x6d,0x41,0x00,0x91,0xff,0xc3,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xec,0x2f,0x00,0xf9,0xed,0x33,0x00,0xf9,0xfe,0x37,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x33,0x40,0xf9,0x83,0x00,0x80,0xd2,0x08,0xfc,0xff,0x97,0xed,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xeb,0x2b,0x40,0xf9,0xec,0x2f,0x40,0xf9,0xfe,0x37,0x40,0xf9,0xff,0xc3,0x01,0x91,0x8e,0x00,0x80,0xd2,0xaf,0x7d,0x0e,0x9b,0x1f,0x01,0x04,0xeb,0x22,0x08,0x00,0x54,0x6f,0x78,0x28,0xf8,0x08,0x05,0x00,0x91,0x4e,0xd7,0xff,0x54,0x33,0x00,0x00,0x14,0x4d,0x00,0x80,0xd2,0x8e,0x08,0xcd,0x9a,0x4f,0x01,0x0e,0x8b,0xff,0x01,0x04,0xeb,0x02,0x07,0x00,0x54,0x71,0x78,0x6f,0xf8,0xff,0x43,0x02,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xec,0x2f,0x00,0xf9,0xed,0x33,0x00,0xf9,0xee,0x37,0x00,0xf9,0xef,0x3b,0x00,0xf9,0xf1,0x3f,0x00,0xf9,0xfe,0x43,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x2b,0x40,0xf9,0xe3,0x3f,0x40,0xf9,0xe4,0x1b,0x40,0xf9,0xa2,0xfd,0xff,0x97,0xed,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xeb,0x2b,0x40,0xf9,0xec,0x2f,0x40,0xf9,0xfe,0x43,0x40,0xf9,0xff,0x43,0x02,0x91,0xbf,0x01,0x00,0xf1,0x81,0x00,0x00,0x54,0x00,0x00,0x80,0xd2,0xff,0x43,0x00,0x91,0xc0,0x03,0x5f,0xd6,0xe8,0x03,0x0a,0xaa,0x85,0xfe,0xff,0x17,0xc9,0x00,0x40,0xf9,0xa9,0x04,0x00,0xf9,0x20,0x00,0x80,0xd2,0xff,0x43,0x00,0x91,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x81,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0x3f,0x00,0x00,0xf1,0xe2,0x07,0x9f,0x9a,0x1f,0xd8,0x00,0xf1,0xe3,0x17,0x9f,0x9a,0x1f,0xdc,0x00,0xf1,0xe4,0x17,0x9f,0x9a,0x65,0x00,0x04,0xaa,0xa6,0x00,0x40,0xd2,0x40,0x00,0x06,0xaa,0xc0,0x03,0x5f,0xd6,0x26,0x00,0x80,0xd2,0x08,0x00,0x80,0xd2,0x1f,0x01,0x05,0xeb,0xe2,0x1d,0x00,0x54,0x82,0x78,0x28,0xf8,0x08,0x00,0x80,0xd2,0xdf,0x00,0x00,0xf1,0xc0,0x1c,0x00,0x54,0x09,0x00,0x88,0xd2,0x1f,0x01,0x09,0xeb,0x42,0x1d,0x00,0x54,0x08,0x05,0x00,0x91,0xc6,0x04,0x00,0xd1,0xdf,0x00,0x05,0xeb,0x82,0x1c,0x00,0x54,0x8a,0x78,0x66,0xf8,0x0b,0x0d,0x80,0xd2,0x49,0x7d,0x0b,0x9b,0xff,0x83,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xfe,0x2b,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x23,0x40,0xf9,0x43,0x00,0x80,0xd2,0x84,0xfb,0xff,0x97,0xea,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xfe,0x2b,0x40,0xf9,0xff,0x83,0x01,0x91,0x5f,0x3d,0x00,0xf1,0x41,0x00,0x00,0x54,0xae,0xfa,0xff,0x54,0x2c,0x09,0x00,0x91,0xff,0xc3,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xec,0x2f,0x00,0xf9,0xfe,0x33,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x2f,0x40,0xf9,0x43,0x00,0x80,0xd2,0x61,0xfb,0xff,0x97,0xeb,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xfe,0x33,0x40,0xf9,0xff,0xc3,0x01,0x91,0x5f,0x59,0x00,0xf1,0xc1,0x00,0x00,0x54,0x7f,0xcd,0x00,0xf1,0x61,0x00,0x00,0x54,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x6d,0x00,0x00,0x14,0x5f,0x55,0x00,0xf1,0xec,0x07,0x9f,0x9a,0xff,0xc3,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xec,0x2f,0x00,0xf9,0xfe,0x33,0x00,0xf9,0xe0,0x2b,0x40,0xf9,0xa6,0xfa,0xff,0x97,0xed,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xeb,0x2b,0x40,0xf9,0xec,0x2f,0x40,0xf9,0xfe,0x33,0x40,0xf9,0xff,0xc3,0x01,0x91,0xbf,0x01,0x00,0xf1,0xee,0x17,0x9f,0x9a,0x8f,0x01,0x0e,0xaa,0x6f,0x00,0x00,0xb4,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xff,0x83,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xfe,0x2f,0x00,0xf9,0xe0,0x2b,0x40,0xf9,0xe1,0x0f,0x40,0xf9,0x66,0xff,0xff,0x97,0xec,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xeb,0x2b,0x40,0xf9,0xfe,0x2f,0x40,0xf9,0xff,0x83,0x01,0x91,0xec,0x04,0x00,0xb4,0x2c,0x41,0x00,0x91,0xff,0xc3,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xec,0x2f,0x00,0xf9,0xfe,0x33,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x2f,0x40,0xf9,0x83,0x00,0x80,0xd2,0xf3,0xfa,0xff,0x97,0xec,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xeb,0x2b,0x40,0xf9,0xfe,0x33,0x40,0xf9,0xff,0xc3,0x01,0x91,0xdf,0x00,0x05,0xeb,0xe2,0x05,0x00,0x54,0x8c,0x78,0x26,0xf8,0xc6,0x04,0x00,0x91,0x2c,0x31,0x00,0x91,0xff,0xc3,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xec,0x2f,0x00,0xf9,0xfe,0x33,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x2f,0x40,0xf9,0x83,0x00,0x80,0xd2,0xcd,0xfa,0xff,0x97,0xec,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xeb,0x2b,0x40,0xf9,0xfe,0x33,0x40,0xf9,0xff,0xc3,0x01,0x91,0xdf,0x00,0x05,0xeb,0x22,0x01,0x00,0x54,0x8c,0x78,0x26,0xf8,0xc6,0x04,0x00,0x91,0x1a,0xff,0xff,0x17,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x81,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0x05,0x00,0x80,0xd2,0x06,0x00,0x80,0xd2,0xbf,0x00,0x03,0xeb,0xc2,0x02,0x00,0x54,0x08,0x48,0x88,0xd2,0xe8,0x01,0xa0,0xf2,0xdf,0x00,0x08,0xeb,0x02,0x03,0x00,0x54,0xc6,0x04,0x00,0x91,0x48,0x00,0x05,0x8b,0x09,0x01,0x80,0xd2,0xaa,0x7c,0x09,0x9b,0x5f,0x01,0x01,0xf1,0xc2,0x02,0x00,0x54,0x8b,0x24,0xca,0x9a,0xec,0x1f,0x80,0xd2,0x6d,0x01,0x0c,0x8a,0xae,0xfd,0x48,0xd3,0xee,0x01,0x00,0xb5,0x1f,0x01,0x01,0xeb,0x22,0x01,0x00,0x54,0x0d,0x68,0x28,0x38,0xa5,0x04,0x00,0x91,0xbf,0x00,0x03,0xeb,0x83,0xfd,0xff,0x54,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x81,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0xa1,0x00,0x80,0xd2,0xf8,0xff,0xff,0x17,0xe1,0x00,0x80,0xd2,0xf6,0xff,0xff,0x17,0x45,0xe0,0x00,0x91,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x17,0x40,0xf9,0x83,0x00,0x80,0xd2,0xe4,0x0f,0x40,0xf9,0xcd,0xff,0xff,0x97,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0x45,0x2c,0x01,0x91,0x26,0x00,0x80,0xd2,0xbf,0x00,0x01,0xeb,0x82,0x03,0x00,0x54,0x06,0x68,0x25,0x38,0x45,0x40,0x01,0x91,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x17,0x40,0xf9,0x03,0x01,0x80,0xd2,0xe4,0x13,0x40,0xf9,0xb2,0xff,0xff,0x97,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x46,0x80,0x00,0x91,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xfe,0x1f,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x1b,0x40,0xf9,0x03,0x01,0x80,0xd2,0x46,0xfa,0xff,0x97,0xe5,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x1f,0x40,0xf9,0xff,0x03,0x01,0x91,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x0f,0x40,0xf9,0xe1,0x17,0x40,0xf9,0x02,0x00,0x80,0xd2,0xbb,0xf9,0xff,0x97,0xe6,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0xdf,0x00,0x00,0xf1,0x81,0x00,0x00,0x54,0x85,0x08,0x00,0xf9,0x40,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x17,0x40,0xf9,0x8b,0xff,0xff,0x97,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x46,0x30,0x00,0x91,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xfe,0x1f,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x1b,0x40,0xf9,0x83,0x00,0x80,0xd2,0xfd,0xf9,0xff,0x97,0xe6,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x1f,0x40,0xf9,0xff,0x03,0x01,0x91,0x08,0x0d,0x80,0xd2,0xc5,0x7c,0x08,0x9b,0xa8,0x80,0x00,0x91,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xfe,0x23,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x1f,0x40,0xf9,0x03,0x01,0x80,0xd2,0xe2,0xf9,0xff,0x97,0xe6,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x23,0x40,0xf9,0xff,0x43,0x01,0x91,0x86,0x08,0x00,0xf9,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xfe,0x1f,0x00,0xf9,0xe0,0x0f,0x40,0xf9,0x41,0xf4,0xff,0x97,0xe8,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xfe,0x1f,0x40,0xf9,0xff,0x03,0x01,0x91,0x09,0x01,0x40,0xd2,0xdf,0x00,0x00,0xf1,0xea,0x07,0x9f,0x9a,0x2b,0x01,0x0a,0x8a,0x6b,0x00,0x00,0xb4,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xfe,0x1f,0x00,0xf9,0xe0,0x0f,0x40,0xf9,0xe1,0x1b,0x40,0xf9,0x22,0x00,0x80,0xd2,0x38,0xf9,0xff,0x97,0xe8,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xfe,0x1f,0x40,0xf9,0xff,0x03,0x01,0x91,0x1f,0x01,0x00,0xf1,0x61,0x00,0x00,0x54,0x80,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xfe,0x1f,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x17,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x1b,0x40,0xf9,0x07,0xff,0xff,0x97,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xfe,0x1f,0x40,0xf9,0xff,0x03,0x01,0x91,0x08,0x00,0x80,0xd2,0x09,0x01,0x06,0xcb,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xfe,0x27,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x23,0x40,0xf9,0xeb,0xfe,0xff,0x97,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xfe,0x27,0x40,0xf9,0xff,0x43,0x01,0x91,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x45,0x30,0x00,0x91,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x17,0x40,0xf9,0x83,0x00,0x80,0xd2,0x5d,0xf9,0xff,0x97,0xe5,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0x06,0x0d,0x80,0xd2,0xa8,0x7c,0x06,0x9b,0x09,0x41,0x01,0x91,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xfe,0x27,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x23,0x40,0xf9,0x03,0x01,0x80,0xd2,0x42,0xf9,0xff,0x97,0xe4,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xfe,0x27,0x40,0xf9,0xff,0x43,0x01,0x91,0x45,0x00,0x80,0xd2,0x46,0x08,0x00,0x91,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xfe,0x1f,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x1b,0x40,0xf9,0x43,0x00,0x80,0xd2,0x2b,0xf9,0xff,0x97,0xe6,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x1f,0x40,0xf9,0xff,0x03,0x01,0x91,0xdf,0xac,0x00,0xf1,0x81,0x03,0x00,0x54,0x25,0x00,0x80,0xd2,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x0f,0x40,0xf9,0x89,0xf3,0xff,0x97,0xe6,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0xc8,0x00,0x40,0xd2,0x9f,0x00,0x00,0xf1,0xe9,0x07,0x9f,0x9a,0x0a,0x01,0x09,0x8a,0x6a,0x00,0x00,0xb4,0xa0,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x08,0x00,0x80,0xd2,0xff,0x43,0x00,0xd1,0xe6,0x03,0x00,0x91,0x09,0x00,0x80,0xd2,0xc8,0x78,0x29,0xf8,0x29,0x05,0x00,0x91,0x3f,0x05,0x00,0xf1,0xa3,0xff,0xff,0x54,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xfe,0x1f,0x00,0xf9,0xe0,0x17,0x40,0xf9,0xe1,0x0f,0x40,0xf9,0xe2,0x13,0x40,0xf9,0xe3,0x1b,0x40,0xf9,0xb2,0xf6,0xff,0x97,0xe8,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xfe,0x1f,0x40,0xf9,0xff,0x03,0x01,0x91,0x1f,0x01,0x00,0xf1,0x80,0x00,0x00,0x54,0xc0,0x00,0x80,0xd2,0xff,0x43,0x00,0x91,0xc0,0x03,0x5f,0xd6,0xc8,0x00,0x40,0xf9,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xfe,0x23,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x1f,0x40,0xf9,0x44,0xfe,0xff,0x97,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xfe,0x23,0x40,0xf9,0xff,0x43,0x01,0x91,0x00,0x00,0x80,0xd2,0xff,0x43,0x00,0x91,0xc0,0x03,0x5f,0xd6,0x46,0x30,0x00,0x91,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xfe,0x1f,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x1b,0x40,0xf9,0x83,0x00,0x80,0xd2,0xb4,0xf8,0xff,0x97,0xe6,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x1f,0x40,0xf9,0xff,0x03,0x01,0x91,0x08,0x0d,0x80,0xd2,0xc9,0x7c,0x08,0x9b,0x2a,0x41,0x01,0x91,0xff,0x83,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xfe,0x2b,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x27,0x40,0xf9,0x03,0x01,0x80,0xd2,0x97,0xf8,0xff,0x97,0xe5,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x2b,0x40,0xf9,0xff,0x83,0x01,0x91,0x48,0x40,0x00,0x91,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xfe,0x23,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x1f,0x40,0xf9,0x83,0x00,0x80,0xd2,0x7f,0xf8,0xff,0x97,0xe6,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x23,0x40,0xf9,0xff,0x43,0x01,0x91,0x09,0x0d,0x80,0xd2,0xca,0x7c,0x09,0x9b,0x4b,0x41,0x01,0x91,0xff,0x83,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xfe,0x2f,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x2b,0x40,0xf9,0x03,0x01,0x80,0xd2,0x61,0xf8,0xff,0x97,0xe8,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xfe,0x2f,0x40,0xf9,0xff,0x83,0x01,0x91,0x4a,0x08,0x00,0x91,0xff,0x83,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xfe,0x2b,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x27,0x40,0xf9,0x43,0x00,0x80,0xd2,0x45,0xf8,0xff,0x97,0xe9,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xfe,0x2b,0x40,0xf9,0xff,0x83,0x01,0x91,0x0b,0x00,0x80,0xd2,0xff,0x43,0x00,0xd1,0xea,0x03,0x00,0x91,0x0c,0x00,0x80,0xd2,0x4b,0x79,0x2c,0xf8,0x8c,0x05,0x00,0x91,0x9f,0x05,0x00,0xf1,0xa3,0xff,0xff,0x54,0xff,0x83,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xfe,0x2f,0x00,0xf9,0xe0,0x23,0x40,0xf9,0x8e,0xf7,0xff,0x97,0xec,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xeb,0x2b,0x40,0xf9,0xfe,0x2f,0x40,0xf9,0xff,0x83,0x01,0x91,0xff,0xc3,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xec,0x2f,0x00,0xf9,0xfe,0x33,0x00,0xf9,0xe0,0x2f,0x40,0xf9,0xe1,0x0f,0x40,0xf9,0xe2,0x17,0x40,0xf9,0xe3,0x1f,0x40,0xf9,0xe4,0x27,0x40,0xf9,0x36,0xf5,0xff,0x97,0xeb,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xfe,0x33,0x40,0xf9,0xff,0xc3,0x01,0x91,0x7f,0x01,0x00,0xf1,0xc1,0x04,0x00,0x54,0x4c,0x01,0x40,0xf9,0xff,0xc3,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xec,0x2f,0x00,0xf9,0xfe,0x33,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x2f,0x40,0xf9,0x52,0xfd,0xff,0x97,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xeb,0x2b,0x40,0xf9,0xfe,0x33,0x40,0xf9,0xff,0xc3,0x01,0x91,0x00,0x00,0x80,0xd2,0xff,0x43,0x00,0x91,0xc0,0x03,0x5f,0xd6,0x7f,0x09,0x00,0xf1,0xec,0x17,0x9f,0x9a,0x7f,0x1d,0x00,0xf1,0xed,0x17,0x9f,0x9a,0x8e,0x01,0x0d,0xaa,0x6e,0x01,0x00,0xb4,0x86,0x04,0x00,0xf9,0x88,0x08,0x00,0xf9,0x7f,0x09,0x00,0xf1,0x81,0x00,0x00,0x54,0xe0,0x00,0x80,0xd2,0xff,0x43,0x00,0x91,0xc0,0x03,0x5f,0xd6,0x00,0x01,0x80,0xd2,0xff,0x43,0x00,0x91,0xc0,0x03,0x5f,0xd6,0x7f,0x05,0x00,0xf1,0x21,0x01,0x00,0x54,0x3f,0xd9,0x00,0xf1,0x81,0x00,0x00,0x54,0x20,0x01,0x80,0xd2,0xff,0x43,0x00,0x91,0xc0,0x03,0x5f,0xd6,0x40,0x01,0x80,0xd2,0xff,0x43,0x00,0x91,0xc0,0x03,0x5f,0xd6,0x60,0x01,0x80,0xd2,0xff,0x43,0x00,0x91,0xc0,0x03,0x5f,0xd6,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0x43,0x00,0x80,0xd2,0xa3,0xf7,0xff,0x97,0xe5,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0xbf,0x3c,0x00,0xf1,0xe1,0x02,0x00,0x54,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0x37,0xfd,0xff,0x97,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0xc0,0x03,0x5f,0xd6,0xbf,0x58,0x00,0xf1,0xe6,0x17,0x9f,0x9a,0xbf,0x54,0x00,0xf1,0xe8,0x17,0x9f,0x9a,0xc9,0x00,0x08,0xaa,0x2a,0x01,0x40,0xd2,0x6a,0x00,0x00,0xb4,0x80,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xbf,0x58,0x00,0xf1,0xe6,0x17,0x9f,0x9a,0x48,0x08,0x00,0x91,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xfe,0x23,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x1f,0x40,0xf9,0x43,0x00,0x80,0xd2,0x68,0xf7,0xff,0x97,0xe8,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xfe,0x23,0x40,0xf9,0xff,0x43,0x01,0x91,0x1f,0xad,0x00,0xf1,0xe9,0x17,0x9f,0x9a,0xca,0x00,0x09,0x8a,0x0a,0x0a,0x00,0xb4,0x48,0x30,0x00,0x91,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xfe,0x23,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x1f,0x40,0xf9,0x83,0x00,0x80,0xd2,0x4a,0xf7,0xff,0x97,0xe6,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x23,0x40,0xf9,0xff,0x43,0x01,0x91,0x08,0x0d,0x80,0xd2,0xc9,0x7c,0x08,0x9b,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xfe,0x27,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x23,0x40,0xf9,0x43,0x00,0x80,0xd2,0x2f,0xf7,0xff,0x97,0xe8,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xfe,0x27,0x40,0xf9,0xff,0x43,0x01,0x91,0x1f,0x3d,0x00,0xf1,0x21,0x03,0x00,0x54,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xfe,0x1f,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0x09,0xfd,0xff,0x97,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xfe,0x1f,0x40,0xf9,0xff,0x03,0x01,0x91,0xc0,0x03,0x5f,0xd6,0xa0,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xa6,0x04,0x40,0xf9,0x5f,0x04,0x00,0xf1,0x61,0x00,0x00,0x54,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x28,0x00,0x80,0xd2,0x89,0x00,0x80,0xd2,0xca,0x7c,0x09,0x9b,0x0b,0x00,0x80,0xd2,0x7f,0x01,0x04,0xeb,0x22,0x29,0x00,0x54,0x6a,0x78,0x2b,0xf8,0x09,0x00,0x80,0xd2,0x1f,0x01,0x00,0xf1,0xe0,0x23,0x00,0x54,0x2a,0x00,0x80,0xd2,0x2a,0x00,0xa0,0xf2,0x3f,0x01,0x0a,0xeb,0x62,0x28,0x00,0x54,0x29,0x05,0x00,0x91,0x0a,0x05,0x00,0xd1,0x5f,0x01,0x04,0xeb,0xa2,0x27,0x00,0x54,0x6c,0x78,0x6a,0xf8,0x8d,0xfd,0x42,0xd3,0x0e,0x0d,0x80,0xd2,0xab,0x7d,0x0e,0x9b,0x5f,0x01,0x04,0xeb,0xe2,0x26,0x00,0x54,0x6c,0x78,0x6a,0xf8,0x8d,0xfd,0x42,0xd3,0xad,0x04,0x00,0xf9,0x5f,0x01,0x04,0xeb,0x42,0x26,0x00,0x54,0x6d,0x78,0x6a,0xf8,0x6e,0x00,0x80,0xd2,0xac,0x01,0x0e,0x8a,0x0d,0x00,0x80,0xd2,0x9f,0x01,0x00,0xf1,0x81,0x0b,0x00,0x54,0xff,0xc3,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xec,0x2f,0x00,0xf9,0xed,0x33,0x00,0xf9,0xfe,0x37,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x2b,0x40,0xf9,0xe3,0x0b,0x40,0xf9,0xe4,0x17,0x40,0xf9,0x1d,0xff,0xff,0x97,0xed,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xeb,0x2b,0x40,0xf9,0xec,0x2f,0x40,0xf9,0xfe,0x37,0x40,0xf9,0xff,0xc3,0x01,0x91,0xbf,0x35,0x00,0xf1,0xa1,0x06,0x00,0x54,0x5f,0x01,0x04,0xeb,0x82,0x20,0x00,0x54,0x6e,0x78,0x6a,0xf8,0xcf,0x05,0x00,0x91,0x5f,0x01,0x04,0xeb,0x02,0x20,0x00,0x54,0x6f,0x78,0x2a,0xf8,0x6e,0x31,0x00,0x91,0xff,0x03,0x02,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xec,0x2f,0x00,0xf9,0xed,0x33,0x00,0xf9,0xee,0x37,0x00,0xf9,0xfe,0x3b,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x37,0x40,0xf9,0x83,0x00,0x80,0xd2,0x9e,0xf6,0xff,0x97,0xee,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xeb,0x2b,0x40,0xf9,0xec,0x2f,0x40,0xf9,0xed,0x33,0x40,0xf9,0xfe,0x3b,0x40,0xf9,0xff,0x03,0x02,0x91,0x8f,0x00,0x80,0xd2,0xd1,0x7d,0x0f,0x9b,0x1f,0x01,0x04,0xeb,0xa2,0x1a,0x00,0x54,0x71,0x78,0x28,0xf8,0x08,0x05,0x00,0x91,0x8e,0xf1,0xff,0x54,0xa5,0x00,0x00,0x14,0xff,0xc3,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xec,0x2f,0x00,0xf9,0xed,0x33,0x00,0xf9,0xfe,0x37,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x2b,0x40,0xf9,0x43,0x00,0x80,0xd2,0x72,0xf6,0xff,0x97,0xee,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xeb,0x2b,0x40,0xf9,0xec,0x2f,0x40,0xf9,0xed,0x33,0x40,0xf9,0xfe,0x37,0x40,0xf9,0xff,0xc3,0x01,0x91,0xdf,0x59,0x00,0xf1,0xa1,0x04,0x00,0x54,0xff,0xc3,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xec,0x2f,0x00,0xf9,0xed,0x33,0x00,0xf9,0xfe,0x37,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x2b,0x40,0xf9,0xe3,0x0b,0x40,0xf9,0xe2,0xfc,0xff,0x97,0xed,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xeb,0x2b,0x40,0xf9,0xec,0x2f,0x40,0xf9,0xfe,0x37,0x40,0xf9,0xff,0xc3,0x01,0x91,0x5b,0x00,0x00,0x14,0x9f,0x05,0x00,0xf1,0xa1,0x06,0x00,0x54,0x5f,0x01,0x04,0xeb,0x62,0x10,0x00,0x54,0x6e,0x78,0x6a,0xf8,0xcf,0x05,0x00,0x91,0x5f,0x01,0x04,0xeb,0xe2,0x0f,0x00,0x54,0x6f,0x78,0x2a,0xf8,0x6e,0x41,0x00,0x91,0xff,0x03,0x02,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xec,0x2f,0x00,0xf9,0xed,0x33,0x00,0xf9,0xee,0x37,0x00,0xf9,0xfe,0x3b,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x37,0x40,0xf9,0x83,0x00,0x80,0xd2,0x1d,0xf6,0xff,0x97,0xee,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xeb,0x2b,0x40,0xf9,0xec,0x2f,0x40,0xf9,0xed,0x33,0x40,0xf9,0xfe,0x3b,0x40,0xf9,0xff,0x03,0x02,0x91,0x8f,0x00,0x80,0xd2,0xd1,0x7d,0x0f,0x9b,0x1f,0x01,0x04,0xeb,0x82,0x0a,0x00,0x54,0x71,0x78,0x28,0xf8,0x08,0x05,0x00,0x91,0x6e,0xe1,0xff,0x54,0xff,0xc3,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xec,0x2f,0x00,0xf9,0xed,0x33,0x00,0xf9,0xfe,0x37,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x2b,0x40,0xf9,0xe3,0x0b,0x40,0xf9,0xe4,0x17,0x40,0xf9,0x2f,0xfd,0xff,0x97,0xed,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xeb,0x2b,0x40,0xf9,0xec,0x2f,0x40,0xf9,0xfe,0x37,0x40,0xf9,0xff,0xc3,0x01,0x91,0xbf,0x01,0x00,0xf1,0x60,0x00,0x00,0x54,0xe0,0x03,0x0d,0xaa,0xc0,0x03,0x5f,0xd6,0xe8,0x03,0x0a,0xaa,0xe1,0xfe,0xff,0x17,0x09,0x0d,0x80,0xd2,0xca,0x7c,0x09,0x9b,0x4b,0x41,0x01,0x91,0xff,0x83,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xfe,0x2f,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x2b,0x40,0xf9,0x03,0x01,0x80,0xd2,0xc7,0xf5,0xff,0x97,0xe9,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xfe,0x2f,0x40,0xf9,0xff,0x83,0x01,0x91,0xa9,0x00,0x00,0xf9,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x81,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0x1f,0x08,0x00,0xf1,0xe1,0x37,0x9f,0x9a,0x1f,0x24,0x00,0xf1,0xe2,0x87,0x9f,0x9a,0x20,0x00,0x02,0x8a,0xc0,0x03,0x5f,0xd6,0x06,0x00,0x80,0xd2,0x88,0x68,0x66,0xf8,0x09,0x0d,0x80,0xd2,0x05,0x7d,0x09,0x9b,0xa8,0x08,0x00,0x91,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xfe,0x23,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x1f,0x40,0xf9,0x43,0x00,0x80,0xd2,0x98,0xf5,0xff,0x97,0xe6,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x23,0x40,0xf9,0xff,0x43,0x01,0x91,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xfe,0x23,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x17,0x40,0xf9,0x43,0x00,0x80,0xd2,0x80,0xf5,0xff,0x97,0xe8,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xfe,0x23,0x40,0xf9,0xff,0x43,0x01,0x91,0xaa,0x30,0x00,0x91,0xff,0x83,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xfe,0x2b,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x27,0x40,0xf9,0x83,0x00,0x80,0xd2,0x64,0xf5,0xff,0x97,0xe9,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xfe,0x2b,0x40,0xf9,0xff,0x83,0x01,0x91,0xab,0x40,0x00,0x91,0xff,0x83,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xfe,0x2f,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x2b,0x40,0xf9,0x83,0x00,0x80,0xd2,0x46,0xf5,0xff,0x97,0xea,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xfe,0x2f,0x40,0xf9,0xff,0x83,0x01,0x91,0x0b,0x03,0x80,0xd2,0x89,0x68,0x2b,0xf8,0x0b,0x04,0x80,0xd2,0x8a,0x68,0x2b,0xf8,0x0b,0x00,0x80,0xd2,0x0c,0x08,0x80,0xd2,0x8b,0x68,0x2c,0xf8,0xdf,0xcc,0x00,0xf1,0xeb,0x17,0x9f,0x9a,0xdf,0xd0,0x00,0xf1,0xec,0x17,0x9f,0x9a,0xdf,0xd4,0x00,0xf1,0xed,0x17,0x9f,0x9a,0x8e,0x01,0x0d,0xaa,0x6f,0x01,0x0e,0xaa,0xaf,0x00,0x00,0xb4,0x2b,0x00,0x80,0xd2,0x0c,0x08,0x80,0xd2,0x8b,0x68,0x2c,0xf8,0x9b,0x00,0x00,0x14,0xff,0x83,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xfe,0x2f,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x23,0x40,0xf9,0x03,0x00,0x80,0xd2,0xe4,0x0b,0x40,0xf9,0xe5,0x0f,0x40,0xf9,0x6c,0xf9,0xff,0x97,0xeb,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xfe,0x2f,0x40,0xf9,0xff,0x83,0x01,0x91,0x1f,0x5d,0x00,0xf1,0x01,0x01,0x00,0x54,0x7f,0x01,0x00,0xf1,0xa0,0x00,0x00,0x54,0x0c,0x07,0x80,0xd2,0x89,0x68,0x2c,0xf8,0x40,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x71,0x00,0x00,0x14,0x1f,0x59,0x00,0xf1,0x01,0x01,0x00,0x54,0x7f,0x01,0x00,0xf1,0xa0,0x00,0x00,0x54,0x0c,0x01,0x80,0xd2,0x8d,0x68,0x6c,0xf8,0x0e,0x08,0x80,0xd2,0x8d,0x68,0x2e,0xf8,0x68,0x00,0x00,0x14,0xff,0xc3,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xec,0x2f,0x00,0xf9,0xfe,0x33,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x27,0x40,0xf9,0x03,0x00,0x80,0xd2,0xe4,0x0b,0x40,0xf9,0xe5,0x0f,0x40,0xf9,0x38,0xf9,0xff,0x97,0xec,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xeb,0x2b,0x40,0xf9,0xfe,0x33,0x40,0xf9,0xff,0xc3,0x01,0x91,0xdf,0xd8,0x00,0xf1,0xed,0x17,0x9f,0x9a,0xdf,0xdc,0x00,0xf1,0xee,0x17,0x9f,0x9a,0xaf,0x01,0x0e,0xaa,0x0f,0x01,0x00,0xb4,0x7f,0x01,0x00,0xf1,0xa0,0x00,0x00,0x54,0x0d,0x01,0x80,0xd2,0x8e,0x68,0x6d,0xf8,0x0f,0x08,0x80,0xd2,0x8e,0x68,0x2f,0xf8,0x36,0x00,0x00,0x14,0x7f,0x01,0x00,0xf1,0x80,0x06,0x00,0x54,0x9f,0x01,0x00,0xf1,0xa0,0x05,0x00,0x54,0xff,0xc3,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xec,0x2f,0x00,0xf9,0xfe,0x33,0x00,0xf9,0xe0,0x1b,0x40,0xf9,0x2d,0xf4,0xff,0x97,0xed,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xeb,0x2b,0x40,0xf9,0xec,0x2f,0x40,0xf9,0xfe,0x33,0x40,0xf9,0xff,0xc3,0x01,0x91,0xbf,0x01,0x00,0xf1,0xe0,0x00,0x00,0x54,0x0d,0x00,0x80,0xd2,0x8e,0x68,0x6d,0xf8,0x0f,0x07,0x80,0xd2,0x8e,0x68,0x2f,0xf8,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x0d,0x01,0x80,0xd2,0x8e,0x68,0x6d,0xf8,0x0f,0x08,0x80,0xd2,0x8e,0x68,0x2f,0xf8,0x06,0x00,0x00,0x14,0x0d,0x03,0x80,0xd2,0x8a,0x68,0x2d,0xf8,0x0d,0x04,0x80,0xd2,0x89,0x68,0x2d,0xf8,0x2c,0x00,0x80,0xd2,0x0d,0x05,0x80,0xd2,0x8c,0x68,0x2d,0xf8,0x0b,0x03,0x80,0xd2,0x8c,0x68,0x6b,0xf8,0x0d,0x07,0x80,0xd2,0x8c,0x68,0x2d,0xf8,0x2b,0x00,0x80,0xd2,0x0c,0x02,0x80,0xd2,0x8b,0x68,0x2c,0xf8,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x05,0x00,0x80,0xd2,0x46,0x68,0x65,0xf8,0x08,0x0d,0x80,0xd2,0xc4,0x7c,0x08,0x9b,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x13,0x40,0xf9,0x43,0x00,0x80,0xd2,0x72,0xf4,0xff,0x97,0xe5,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0x88,0x08,0x00,0x91,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xfe,0x23,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x1f,0x40,0xf9,0x43,0x00,0x80,0xd2,0x5a,0xf4,0xff,0x97,0xe6,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x23,0x40,0xf9,0xff,0x43,0x01,0x91,0x08,0x06,0x80,0xd2,0x43,0x68,0x28,0xf8,0x08,0x00,0x80,0xd2,0x49,0x68,0x68,0xf8,0x0a,0x07,0x80,0xd2,0x49,0x68,0x2a,0xf8,0xbf,0x58,0x00,0xf1,0x61,0x04,0x00,0x54,0xdf,0xcc,0x00,0xf1,0xe8,0x07,0x9f,0x9a,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xfe,0x23,0x00,0xf9,0xe0,0x0f,0x40,0xf9,0x8a,0xfe,0xff,0x97,0xe9,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xfe,0x23,0x40,0xf9,0xff,0x43,0x01,0x91,0x2a,0x01,0x40,0xd2,0x0b,0x01,0x0a,0x8a,0x6b,0x00,0x00,0xb4,0xc0,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x08,0x08,0x80,0xd2,0x43,0x68,0x28,0xf8,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xbf,0x5c,0x00,0xf1,0xa1,0x0a,0x00,0x54,0x89,0xe0,0x00,0x91,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xfe,0x27,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x23,0x40,0xf9,0x83,0x00,0x80,0xd2,0x14,0xf4,0xff,0x97,0xe8,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xfe,0x27,0x40,0xf9,0xff,0x43,0x01,0x91,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xfe,0x23,0x00,0xf9,0xe0,0x0f,0x40,0xf9,0x4d,0xfe,0xff,0x97,0xe9,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xfe,0x23,0x40,0xf9,0xff,0x43,0x01,0x91,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xfe,0x27,0x00,0xf9,0xe0,0x1f,0x40,0xf9,0x35,0xfe,0xff,0x97,0xea,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xfe,0x27,0x40,0xf9,0xff,0x43,0x01,0x91,0x2b,0x01,0x0a,0x8a,0x6c,0x01,0x40,0xd2,0x6c,0x00,0x00,0xb4,0xe0,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x09,0x08,0x80,0xd2,0x48,0x68,0x29,0xf8,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xe8,0x03,0x03,0xaa,0xdf,0xd8,0x00,0xf1,0xe9,0x17,0x9f,0x9a,0xdf,0xdc,0x00,0xf1,0xea,0x17,0x9f,0x9a,0x2b,0x01,0x0a,0xaa,0x4b,0x04,0x00,0xb4,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xfe,0x23,0x00,0xf9,0xe0,0x0f,0x40,0xf9,0x0d,0xfe,0xff,0x97,0xe9,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xfe,0x23,0x40,0xf9,0xff,0x43,0x01,0x91,0x2a,0x01,0x40,0xd2,0x6a,0x00,0x00,0xb4,0x00,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x09,0x05,0x80,0xd2,0x4a,0x68,0x69,0xf8,0x5f,0x01,0x00,0xf1,0x41,0x00,0x00,0x54,0x08,0x00,0x80,0xd2,0x39,0x00,0x00,0x14,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xfe,0x23,0x00,0xf9,0xe0,0x1b,0x40,0xf9,0x1b,0xf3,0xff,0x97,0xe9,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xfe,0x23,0x40,0xf9,0xff,0x43,0x01,0x91,0x3f,0x01,0x00,0xf1,0x00,0x02,0x00,0x54,0x7f,0x04,0x00,0xf1,0xe9,0x17,0x9f,0x9a,0x0a,0x05,0x80,0xd2,0x4b,0x68,0x6a,0xf8,0x7f,0x01,0x00,0xf1,0xec,0x07,0x9f,0x9a,0x2d,0x01,0x0c,0x8a,0xed,0x00,0x00,0xb4,0x09,0x04,0x80,0xd2,0x4a,0x68,0x69,0xf8,0x0b,0x07,0x80,0xd2,0x4a,0x68,0x2b,0xf8,0x80,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x11,0x00,0x00,0x14,0x7f,0x04,0x00,0xf1,0xe9,0x17,0x9f,0x9a,0xdf,0xd0,0x00,0xf1,0xea,0x17,0x9f,0x9a,0xdf,0xd4,0x00,0xf1,0xeb,0x17,0x9f,0x9a,0x4c,0x01,0x0b,0xaa,0x8d,0x01,0x40,0xd2,0x2e,0x01,0x0d,0x8a,0xee,0x00,0x00,0xb4,0x09,0x03,0x80,0xd2,0x4a,0x68,0x69,0xf8,0x0b,0x07,0x80,0xd2,0x4a,0x68,0x2b,0xf8,0xa0,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x09,0x04,0x80,0xd2,0x4a,0x68,0x69,0xf8,0x0b,0x07,0x80,0xd2,0x4a,0x68,0x2b,0xf8,0x09,0x08,0x80,0xd2,0x48,0x68,0x29,0xf8,0x49,0x00,0x80,0xd2,0x0a,0x02,0x80,0xd2,0x49,0x68,0x2a,0xf8,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x05,0x00,0x80,0xd2,0x46,0x68,0x65,0xf8,0x08,0x0d,0x80,0xd2,0xc4,0x7c,0x08,0x9b,0x86,0x08,0x00,0x91,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xfe,0x1f,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x1b,0x40,0xf9,0x43,0x00,0x80,0xd2,0x53,0xf3,0xff,0x97,0xe5,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x1f,0x40,0xf9,0xff,0x03,0x01,0x91,0x08,0x06,0x80,0xd2,0x46,0x68,0x68,0xf8,0x08,0x08,0x80,0xd2,0x46,0x68,0x28,0xf8,0xbf,0xd0,0x00,0xf1,0xe8,0x17,0x9f,0x9a,0xbf,0xd4,0x00,0xf1,0xe9,0x17,0x9f,0x9a,0x0a,0x01,0x09,0xaa,0x6a,0x00,0x00,0xb4,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xfe,0x1f,0x00,0xf9,0xe0,0x17,0x40,0xf9,0xb2,0xf2,0xff,0x97,0xe8,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xfe,0x1f,0x40,0xf9,0xff,0x03,0x01,0x91,0x1f,0x01,0x00,0xf1,0x80,0x01,0x00,0x54,0x88,0x24,0x01,0x91,0xc9,0xfc,0x48,0xd3,0xa9,0x1f,0x00,0xb5,0x1f,0x01,0x01,0xeb,0x22,0x1f,0x00,0x54,0x06,0x68,0x28,0x38,0x28,0x00,0x80,0xd2,0x09,0x08,0x80,0xd2,0x48,0x68,0x29,0xf8,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x89,0x40,0x00,0x91,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xfe,0x27,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x23,0x40,0xf9,0x83,0x00,0x80,0xd2,0x0c,0xf3,0xff,0x97,0xe8,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xfe,0x27,0x40,0xf9,0xff,0x43,0x01,0x91,0x0a,0x0d,0x80,0xd2,0x09,0x7d,0x0a,0x9b,0xbf,0xd8,0x00,0xf1,0xea,0x17,0x9f,0x9a,0xbf,0xdc,0x00,0xf1,0xeb,0x17,0x9f,0x9a,0x4c,0x01,0x0b,0xaa,0x4c,0x0e,0x00,0xb4,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xfe,0x27,0x00,0xf9,0xe0,0x0f,0x40,0xf9,0x3c,0xfd,0xff,0x97,0xea,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xfe,0x27,0x40,0xf9,0xff,0x43,0x01,0x91,0x4b,0x01,0x40,0xd2,0xab,0x00,0x00,0xb4,0x0a,0x06,0x80,0xd2,0x43,0x68,0x2a,0xf8,0x20,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x2a,0x2d,0x01,0x91,0x5f,0x01,0x01,0xeb,0xc2,0x15,0x00,0x54,0x0b,0x68,0x6a,0x38,0x7f,0x01,0x00,0xf1,0xec,0x07,0x9f,0x9a,0x2d,0x41,0x01,0x91,0xff,0xc3,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xec,0x2f,0x00,0xf9,0xed,0x33,0x00,0xf9,0xfe,0x37,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x33,0x40,0xf9,0x03,0x01,0x80,0xd2,0xc0,0xf2,0xff,0x97,0xed,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xeb,0x2b,0x40,0xf9,0xec,0x2f,0x40,0xf9,0xfe,0x37,0x40,0xf9,0xff,0xc3,0x01,0x91,0xff,0xc3,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xec,0x2f,0x00,0xf9,0xed,0x33,0x00,0xf9,0xfe,0x37,0x00,0xf9,0xe0,0x1b,0x40,0xf9,0x1a,0xed,0xff,0x97,0xee,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xeb,0x2b,0x40,0xf9,0xec,0x2f,0x40,0xf9,0xed,0x33,0x40,0xf9,0xfe,0x37,0x40,0xf9,0xff,0xc3,0x01,0x91,0xbf,0x01,0x0e,0xeb,0xef,0x37,0x9f,0x9a,0x91,0x01,0x0f,0x8a,0x71,0x00,0x00,0xb4,0x40,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x5a,0x00,0x00,0x14,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xfe,0x27,0x00,0xf9,0xe0,0x1b,0x40,0xf9,0xcb,0xfc,0xff,0x97,0xea,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xfe,0x27,0x40,0xf9,0xff,0x43,0x01,0x91,0x4b,0x01,0x40,0xd2,0xeb,0x00,0x00,0xb4,0x0a,0x00,0x80,0xd2,0x4b,0x68,0x6a,0xf8,0x0c,0x07,0x80,0xd2,0x4b,0x68,0x2c,0xf8,0x60,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xbf,0xb4,0x00,0xf1,0xea,0x17,0x9f,0x9a,0xbf,0xb8,0x00,0xf1,0xeb,0x17,0x9f,0x9a,0x4c,0x01,0x0b,0xaa,0x6c,0x06,0x00,0xb4,0x2a,0x2d,0x01,0x91,0x5f,0x01,0x01,0xeb,0xa2,0x06,0x00,0x54,0x0b,0x68,0x6a,0x38,0x7f,0x01,0x00,0xf1,0xec,0x07,0x9f,0x9a,0x2d,0x41,0x01,0x91,0xff,0xc3,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xec,0x2f,0x00,0xf9,0xed,0x33,0x00,0xf9,0xfe,0x37,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x33,0x40,0xf9,0x03,0x01,0x80,0xd2,0x47,0xf2,0xff,0x97,0xed,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xeb,0x2b,0x40,0xf9,0xec,0x2f,0x40,0xf9,0xfe,0x37,0x40,0xf9,0xff,0xc3,0x01,0x91,0xbf,0x01,0x00,0xf1,0xee,0x17,0x9f,0x9a,0x8f,0x01,0x0e,0x8a,0xaf,0x00,0x00,0xb4,0x0a,0x07,0x80,0xd2,0x48,0x68,0x2a,0xf8,0x80,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0xa1,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0x08,0x02,0x80,0xd2,0x86,0x68,0x68,0xf8,0xdf,0x00,0x00,0xf1,0x21,0x03,0x00,0x54,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xfe,0x1f,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0x69,0xfc,0xff,0x97,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xfe,0x1f,0x40,0xf9,0xff,0x03,0x01,0x91,0xc0,0x03,0x5f,0xd6,0xdf,0x04,0x00,0xf1,0x01,0x03,0x00,0x54,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xfe,0x1f,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x13,0x40,0xf9,0xe3,0x17,0x40,0xf9,0x79,0xfd,0xff,0x97,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xfe,0x1f,0x40,0xf9,0xff,0x03,0x01,0x91,0xc0,0x03,0x5f,0xd6,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xfe,0x1f,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x13,0x40,0xf9,0xe3,0x17,0x40,0xf9,0x7f,0xfe,0xff,0x97,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xfe,0x1f,0x40,0xf9,0xff,0x03,0x01,0x91,0xc0,0x03,0x5f,0xd6\n.previous\n"); 2113 +static const char ombr2_ident_osc_scalar[] = "omega-ident 1 unit=osc_scalar abi=2 profile=OM-2 src=`28238165ae668bbf8493bc4f27ca69af1c8cccb9ddd7d47a0889f288d0e7dc73` omc=`b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2`"; 2114 +__attribute__((visibility("default"))) const char *omega2_ident_osc_scalar(void) 2115 +{ 2116 + return ombr2_ident_osc_scalar; 2117 +} 2118 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_alu_width\n.hidden ombr2_entry_osc_alu_width\nombr2_entry_osc_alu_width:\nhint #34\nb ombr2_code_osc_scalar+0\n.previous\n"); 2119 +extern const unsigned char ombr2_entry_osc_alu_width[] __attribute__((visibility("hidden"))); 2120 +/* export fn osc_alu_width t ulong to ulong */ 2121 +__attribute__((visibility("default"))) uint32_t omega2_osc_alu_width(uint64_t *result, uint64_t o_t) 2122 +{ 2123 + ombr_span sp[7]; 2124 + unsigned ns = 0; 2125 + uint64_t a[6] = {0}; 2126 + ombr2_out ou[6] = {{0, 0, 0}}; 2127 + unsigned no = 0; 2128 + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2129 + return OMEGA_BAD_ARG; 2130 + a[0] = o_t; 2131 + if (ombr2_overlap(sp, ns)) 2132 + return OMEGA_BAD_ARG; 2133 + return ombr2_run(ombr2_entry_osc_alu_width, a, result, 1, ou, no); 2134 +} 2135 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_alu_canon\n.hidden ombr2_entry_osc_alu_canon\nombr2_entry_osc_alu_canon:\nhint #34\nb ombr2_code_osc_scalar+4\n.previous\n"); 2136 +extern const unsigned char ombr2_entry_osc_alu_canon[] __attribute__((visibility("hidden"))); 2137 +/* export fn osc_alu_canon t ulong v ulong to ulong */ 2138 +__attribute__((visibility("default"))) uint32_t omega2_osc_alu_canon(uint64_t *result, uint64_t o_t, uint64_t o_v) 2139 +{ 2140 + ombr_span sp[7]; 2141 + unsigned ns = 0; 2142 + uint64_t a[6] = {0}; 2143 + ombr2_out ou[6] = {{0, 0, 0}}; 2144 + unsigned no = 0; 2145 + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2146 + return OMEGA_BAD_ARG; 2147 + a[0] = o_t; 2148 + a[1] = o_v; 2149 + if (ombr2_overlap(sp, ns)) 2150 + return OMEGA_BAD_ARG; 2151 + return ombr2_run(ombr2_entry_osc_alu_canon, a, result, 1, ou, no); 2152 +} 2153 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_alu_bin\n.hidden ombr2_entry_osc_alu_bin\nombr2_entry_osc_alu_bin:\nhint #34\nb ombr2_code_osc_scalar+8\n.previous\n"); 2154 +extern const unsigned char ombr2_entry_osc_alu_bin[] __attribute__((visibility("hidden"))); 2155 +/* export fn osc_alu_bin op ulong t ulong a ulong b ulong value out ulong 1 to ulong */ 2156 +__attribute__((visibility("default"))) uint32_t omega2_osc_alu_bin(uint64_t *result, uint64_t o_op, uint64_t o_t, uint64_t o_a, uint64_t o_b, uint64_t *o_value) 2157 +{ 2158 + ombr_span sp[7]; 2159 + unsigned ns = 0; 2160 + uint64_t a[6] = {0}; 2161 + ombr2_out ou[6] = {{0, 0, 0}}; 2162 + unsigned no = 0; 2163 + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2164 + return OMEGA_BAD_ARG; 2165 + a[0] = o_op; 2166 + a[1] = o_t; 2167 + a[2] = o_a; 2168 + a[3] = o_b; 2169 + if (ombr2_fixed(sp, &ns, o_value, 8u, 8u, 2)) 2170 + return OMEGA_BAD_ARG; 2171 + ou[no].slot = 4u; 2172 + ou[no].n = 8u; 2173 + ou[no].dst = o_value; 2174 + no++; 2175 + if (ombr2_overlap(sp, ns)) 2176 + return OMEGA_BAD_ARG; 2177 + return ombr2_run(ombr2_entry_osc_alu_bin, a, result, 1, ou, no); 2178 +} 2179 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_alu_un\n.hidden ombr2_entry_osc_alu_un\nombr2_entry_osc_alu_un:\nhint #34\nb ombr2_code_osc_scalar+12\n.previous\n"); 2180 +extern const unsigned char ombr2_entry_osc_alu_un[] __attribute__((visibility("hidden"))); 2181 +/* export fn osc_alu_un op ulong t ulong a ulong value out ulong 1 to ulong */ 2182 +__attribute__((visibility("default"))) uint32_t omega2_osc_alu_un(uint64_t *result, uint64_t o_op, uint64_t o_t, uint64_t o_a, uint64_t *o_value) 2183 +{ 2184 + ombr_span sp[7]; 2185 + unsigned ns = 0; 2186 + uint64_t a[6] = {0}; 2187 + ombr2_out ou[6] = {{0, 0, 0}}; 2188 + unsigned no = 0; 2189 + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2190 + return OMEGA_BAD_ARG; 2191 + a[0] = o_op; 2192 + a[1] = o_t; 2193 + a[2] = o_a; 2194 + if (ombr2_fixed(sp, &ns, o_value, 8u, 8u, 2)) 2195 + return OMEGA_BAD_ARG; 2196 + ou[no].slot = 3u; 2197 + ou[no].n = 8u; 2198 + ou[no].dst = o_value; 2199 + no++; 2200 + if (ombr2_overlap(sp, ns)) 2201 + return OMEGA_BAD_ARG; 2202 + return ombr2_run(ombr2_entry_osc_alu_un, a, result, 1, ou, no); 2203 +} 2204 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_alu_cmp\n.hidden ombr2_entry_osc_alu_cmp\nombr2_entry_osc_alu_cmp:\nhint #34\nb ombr2_code_osc_scalar+16\n.previous\n"); 2205 +extern const unsigned char ombr2_entry_osc_alu_cmp[] __attribute__((visibility("hidden"))); 2206 +/* export fn osc_alu_cmp cc ulong t ulong a ulong b ulong to ulong */ 2207 +__attribute__((visibility("default"))) uint32_t omega2_osc_alu_cmp(uint64_t *result, uint64_t o_cc, uint64_t o_t, uint64_t o_a, uint64_t o_b) 2208 +{ 2209 + ombr_span sp[7]; 2210 + unsigned ns = 0; 2211 + uint64_t a[6] = {0}; 2212 + ombr2_out ou[6] = {{0, 0, 0}}; 2213 + unsigned no = 0; 2214 + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2215 + return OMEGA_BAD_ARG; 2216 + a[0] = o_cc; 2217 + a[1] = o_t; 2218 + a[2] = o_a; 2219 + a[3] = o_b; 2220 + if (ombr2_overlap(sp, ns)) 2221 + return OMEGA_BAD_ARG; 2222 + return ombr2_run(ombr2_entry_osc_alu_cmp, a, result, 1, ou, no); 2223 +} 2224 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_alu_cast\n.hidden ombr2_entry_osc_alu_cast\nombr2_entry_osc_alu_cast:\nhint #34\nb ombr2_code_osc_scalar+20\n.previous\n"); 2225 +extern const unsigned char ombr2_entry_osc_alu_cast[] __attribute__((visibility("hidden"))); 2226 +/* export fn osc_alu_cast target ulong src ulong a ulong value out ulong 1 to ulong */ 2227 +__attribute__((visibility("default"))) uint32_t omega2_osc_alu_cast(uint64_t *result, uint64_t o_target, uint64_t o_src, uint64_t o_a, uint64_t *o_value) 2228 +{ 2229 + ombr_span sp[7]; 2230 + unsigned ns = 0; 2231 + uint64_t a[6] = {0}; 2232 + ombr2_out ou[6] = {{0, 0, 0}}; 2233 + unsigned no = 0; 2234 + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2235 + return OMEGA_BAD_ARG; 2236 + a[0] = o_target; 2237 + a[1] = o_src; 2238 + a[2] = o_a; 2239 + if (ombr2_fixed(sp, &ns, o_value, 8u, 8u, 2)) 2240 + return OMEGA_BAD_ARG; 2241 + ou[no].slot = 3u; 2242 + ou[no].n = 8u; 2243 + ou[no].dst = o_value; 2244 + no++; 2245 + if (ombr2_overlap(sp, ns)) 2246 + return OMEGA_BAD_ARG; 2247 + return ombr2_run(ombr2_entry_osc_alu_cast, a, result, 1, ou, no); 2248 +} 2249 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_binary_opcode\n.hidden ombr2_entry_osc_binary_opcode\nombr2_entry_osc_binary_opcode:\nhint #34\nb ombr2_code_osc_scalar+24\n.previous\n"); 2250 +extern const unsigned char ombr2_entry_osc_binary_opcode[] __attribute__((visibility("hidden"))); 2251 +/* export fn osc_binary_opcode tok ulong to ulong */ 2252 +__attribute__((visibility("default"))) uint32_t omega2_osc_binary_opcode(uint64_t *result, uint64_t o_tok) 2253 +{ 2254 + ombr_span sp[7]; 2255 + unsigned ns = 0; 2256 + uint64_t a[6] = {0}; 2257 + ombr2_out ou[6] = {{0, 0, 0}}; 2258 + unsigned no = 0; 2259 + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2260 + return OMEGA_BAD_ARG; 2261 + a[0] = o_tok; 2262 + if (ombr2_overlap(sp, ns)) 2263 + return OMEGA_BAD_ARG; 2264 + return ombr2_run(ombr2_entry_osc_binary_opcode, a, result, 1, ou, no); 2265 +} 2266 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_compare_opcode\n.hidden ombr2_entry_osc_compare_opcode\nombr2_entry_osc_compare_opcode:\nhint #34\nb ombr2_code_osc_scalar+28\n.previous\n"); 2267 +extern const unsigned char ombr2_entry_osc_compare_opcode[] __attribute__((visibility("hidden"))); 2268 +/* export fn osc_compare_opcode tok ulong to ulong */ 2269 +__attribute__((visibility("default"))) uint32_t omega2_osc_compare_opcode(uint64_t *result, uint64_t o_tok) 2270 +{ 2271 + ombr_span sp[7]; 2272 + unsigned ns = 0; 2273 + uint64_t a[6] = {0}; 2274 + ombr2_out ou[6] = {{0, 0, 0}}; 2275 + unsigned no = 0; 2276 + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2277 + return OMEGA_BAD_ARG; 2278 + a[0] = o_tok; 2279 + if (ombr2_overlap(sp, ns)) 2280 + return OMEGA_BAD_ARG; 2281 + return ombr2_run(ombr2_entry_osc_compare_opcode, a, result, 1, ou, no); 2282 +} 2283 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_literal_fits\n.hidden ombr2_entry_osc_literal_fits\nombr2_entry_osc_literal_fits:\nhint #34\nb ombr2_code_osc_scalar+32\n.previous\n"); 2284 +extern const unsigned char ombr2_entry_osc_literal_fits[] __attribute__((visibility("hidden"))); 2285 +/* export fn osc_literal_fits t ulong magnitude ulong negative ulong to ulong */ 2286 +__attribute__((visibility("default"))) uint32_t omega2_osc_literal_fits(uint64_t *result, uint64_t o_t, uint64_t o_magnitude, uint64_t o_negative) 2287 +{ 2288 + ombr_span sp[7]; 2289 + unsigned ns = 0; 2290 + uint64_t a[6] = {0}; 2291 + ombr2_out ou[6] = {{0, 0, 0}}; 2292 + unsigned no = 0; 2293 + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2294 + return OMEGA_BAD_ARG; 2295 + a[0] = o_t; 2296 + a[1] = o_magnitude; 2297 + a[2] = o_negative; 2298 + if (ombr2_overlap(sp, ns)) 2299 + return OMEGA_BAD_ARG; 2300 + return ombr2_run(ombr2_entry_osc_literal_fits, a, result, 1, ou, no); 2301 +} 2302 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_contract_value\n.hidden ombr2_entry_osc_contract_value\nombr2_entry_osc_contract_value:\nhint #34\nb ombr2_code_osc_scalar+36\n.previous\n"); 2303 +extern const unsigned char ombr2_entry_osc_contract_value[] __attribute__((visibility("hidden"))); 2304 +/* export fn osc_contract_value nodes view uchar * env view contract stack edit ulong * request edit ulong 2 to ulong */ 2305 +__attribute__((visibility("default"))) uint32_t omega2_osc_contract_value(uint64_t *result, const uint8_t *o_nodes, uint64_t o_nodes_len, const uint8_t *o_env, uint64_t *o_stack, uint64_t o_stack_len, uint64_t *o_request, uint64_t o_request_len) 2306 +{ 2307 + ombr_span sp[7]; 2308 + unsigned ns = 0; 2309 + uint64_t a[6] = {0}; 2310 + ombr2_out ou[6] = {{0, 0, 0}}; 2311 + unsigned no = 0; 2312 + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2313 + return OMEGA_BAD_ARG; 2314 + if (ombr2_view(sp, &ns, o_nodes, o_nodes_len, 1u, 0)) 2315 + return OMEGA_BAD_ARG; 2316 + a[0] = (uint64_t)(uintptr_t)o_nodes; 2317 + a[1] = o_nodes_len; 2318 + if (ombr2_fixed(sp, &ns, o_env, 80u, 1u, 0)) 2319 + return OMEGA_BAD_ARG; 2320 + a[2] = (uint64_t)(uintptr_t)o_env; 2321 + if (ombr2_view(sp, &ns, o_stack, o_stack_len, 8u, 1)) 2322 + return OMEGA_BAD_ARG; 2323 + a[3] = (uint64_t)(uintptr_t)o_stack; 2324 + a[4] = o_stack_len; 2325 + if (ombr_span_add(sp, &ns, o_request, o_request_len, 2u, 8u, 1)) 2326 + return OMEGA_BAD_ARG; 2327 + a[5] = (uint64_t)(uintptr_t)o_request; 2328 + if (ombr2_overlap(sp, ns)) 2329 + return OMEGA_BAD_ARG; 2330 + return ombr2_run(ombr2_entry_osc_contract_value, a, result, 1, ou, no); 2331 +} 2332 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_constant_tree\n.hidden ombr2_entry_osc_constant_tree\nombr2_entry_osc_constant_tree:\nhint #34\nb ombr2_code_osc_scalar+40\n.previous\n"); 2333 +extern const unsigned char ombr2_entry_osc_constant_tree[] __attribute__((visibility("hidden"))); 2334 +/* export fn osc_constant_tree nodes view uchar * id ulong require_literals ulong pending edit ulong * to ulong */ 2335 +__attribute__((visibility("default"))) uint32_t omega2_osc_constant_tree(uint64_t *result, const uint8_t *o_nodes, uint64_t o_nodes_len, uint64_t o_id, uint64_t o_require_literals, uint64_t *o_pending, uint64_t o_pending_len) 2336 +{ 2337 + ombr_span sp[7]; 2338 + unsigned ns = 0; 2339 + uint64_t a[6] = {0}; 2340 + ombr2_out ou[6] = {{0, 0, 0}}; 2341 + unsigned no = 0; 2342 + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2343 + return OMEGA_BAD_ARG; 2344 + if (ombr2_view(sp, &ns, o_nodes, o_nodes_len, 1u, 0)) 2345 + return OMEGA_BAD_ARG; 2346 + a[0] = (uint64_t)(uintptr_t)o_nodes; 2347 + a[1] = o_nodes_len; 2348 + a[2] = o_id; 2349 + a[3] = o_require_literals; 2350 + if (ombr2_view(sp, &ns, o_pending, o_pending_len, 8u, 1)) 2351 + return OMEGA_BAD_ARG; 2352 + a[4] = (uint64_t)(uintptr_t)o_pending; 2353 + a[5] = o_pending_len; 2354 + if (ombr2_overlap(sp, ns)) 2355 + return OMEGA_BAD_ARG; 2356 + return ombr2_run(ombr2_entry_osc_constant_tree, a, result, 1, ou, no); 2357 +} 2358 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_fold_tree\n.hidden ombr2_entry_osc_fold_tree\nombr2_entry_osc_fold_tree:\nhint #34\nb ombr2_code_osc_scalar+44\n.previous\n"); 2359 +extern const unsigned char ombr2_entry_osc_fold_tree[] __attribute__((visibility("hidden"))); 2360 +/* export fn osc_fold_tree nodes edit uchar * typ ulong stack edit ulong * report edit ulong 3 to ulong */ 2361 +__attribute__((visibility("default"))) uint32_t omega2_osc_fold_tree(uint64_t *result, uint8_t *o_nodes, uint64_t o_nodes_len, uint64_t o_typ, uint64_t *o_stack, uint64_t o_stack_len, uint64_t *o_report, uint64_t o_report_len) 2362 +{ 2363 + ombr_span sp[7]; 2364 + unsigned ns = 0; 2365 + uint64_t a[6] = {0}; 2366 + ombr2_out ou[6] = {{0, 0, 0}}; 2367 + unsigned no = 0; 2368 + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2369 + return OMEGA_BAD_ARG; 2370 + if (ombr2_view(sp, &ns, o_nodes, o_nodes_len, 1u, 1)) 2371 + return OMEGA_BAD_ARG; 2372 + a[0] = (uint64_t)(uintptr_t)o_nodes; 2373 + a[1] = o_nodes_len; 2374 + a[2] = o_typ; 2375 + if (ombr2_view(sp, &ns, o_stack, o_stack_len, 8u, 1)) 2376 + return OMEGA_BAD_ARG; 2377 + a[3] = (uint64_t)(uintptr_t)o_stack; 2378 + a[4] = o_stack_len; 2379 + if (ombr_span_add(sp, &ns, o_report, o_report_len, 3u, 8u, 1)) 2380 + return OMEGA_BAD_ARG; 2381 + a[5] = (uint64_t)(uintptr_t)o_report; 2382 + if (ombr2_overlap(sp, ns)) 2383 + return OMEGA_BAD_ARG; 2384 + return ombr2_run(ombr2_entry_osc_fold_tree, a, result, 1, ou, no); 2385 +} 2386 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_infer_step\n.hidden ombr2_entry_osc_infer_step\nombr2_entry_osc_infer_step:\nhint #34\nb ombr2_code_osc_scalar+48\n.previous\n"); 2387 +extern const unsigned char ombr2_entry_osc_infer_step[] __attribute__((visibility("hidden"))); 2388 +/* export fn osc_infer_step nodes edit uchar * stack edit ulong * frame edit infer checked ulong to ulong */ 2389 +__attribute__((visibility("default"))) uint32_t omega2_osc_infer_step(uint64_t *result, uint8_t *o_nodes, uint64_t o_nodes_len, uint64_t *o_stack, uint64_t o_stack_len, uint8_t *o_frame, uint64_t o_checked) 2390 +{ 2391 + ombr_span sp[7]; 2392 + unsigned ns = 0; 2393 + uint64_t a[6] = {0}; 2394 + ombr2_out ou[6] = {{0, 0, 0}}; 2395 + unsigned no = 0; 2396 + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2397 + return OMEGA_BAD_ARG; 2398 + if (ombr2_view(sp, &ns, o_nodes, o_nodes_len, 1u, 1)) 2399 + return OMEGA_BAD_ARG; 2400 + a[0] = (uint64_t)(uintptr_t)o_nodes; 2401 + a[1] = o_nodes_len; 2402 + if (ombr2_view(sp, &ns, o_stack, o_stack_len, 8u, 1)) 2403 + return OMEGA_BAD_ARG; 2404 + a[2] = (uint64_t)(uintptr_t)o_stack; 2405 + a[3] = o_stack_len; 2406 + if (ombr2_fixed(sp, &ns, o_frame, 72u, 1u, 1)) 2407 + return OMEGA_BAD_ARG; 2408 + a[4] = (uint64_t)(uintptr_t)o_frame; 2409 + a[5] = o_checked; 2410 + if (ombr2_overlap(sp, ns)) 2411 + return OMEGA_BAD_ARG; 2412 + return ombr2_run(ombr2_entry_osc_infer_step, a, result, 1, ou, no); 2413 +} 2414 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_code_osc_a64_fields\n.hidden ombr2_code_osc_a64_fields\nombr2_code_osc_a64_fields:\n.byte 0x03,0x00,0x00,0x14,0xa1,0x00,0x00,0x14,0x81,0x01,0x00,0x14,0x04,0x00,0x80,0xd2,0x45,0x68,0x64,0xb8,0xe3,0x03,0x05,0xaa,0x85,0x00,0x80,0xd2,0x46,0x68,0x65,0xb8,0xc4,0xe8,0x7b,0xd3,0x06,0x01,0x80,0xd2,0x48,0x68,0x66,0xb8,0x05,0xbd,0x70,0xd3,0x88,0x01,0x80,0xd2,0x49,0x68,0x68,0xb8,0x26,0xd5,0x76,0xd3,0x09,0x03,0x80,0xd2,0x4a,0x68,0x69,0xf8,0xe8,0x03,0x0a,0xaa,0x0a,0x04,0x80,0xd2,0x4b,0x68,0x6a,0xf8,0xe9,0x03,0x0b,0xaa,0x1f,0x04,0x00,0xf1,0x61,0x01,0x00,0x54,0x8b,0x00,0x05,0xaa,0x6a,0x00,0x0b,0xaa,0x0c,0x02,0x80,0xd2,0x4d,0x68,0x6c,0xb8,0xae,0xa5,0x6a,0xd3,0x0f,0xd5,0x76,0xd3,0xcb,0x01,0x0f,0xaa,0x4c,0x01,0x0b,0xaa,0x20,0x00,0x0c,0xaa,0xc0,0x03,0x5f,0xd6,0x1f,0x08,0x00,0xf1,0x01,0x01,0x00,0x54,0x6a,0x00,0x04,0xaa,0x2b,0xa5,0x6a,0xd3,0x0c,0xd5,0x76,0xd3,0x6d,0x01,0x0c,0xaa,0x4e,0x01,0x0d,0xaa,0x20,0x00,0x0e,0xaa,0xc0,0x03,0x5f,0xd6,0x1f,0x0c,0x00,0xf1,0xc1,0x00,0x00,0x54,0x6a,0x00,0x04,0xaa,0xab,0x00,0x06,0xaa,0x4c,0x01,0x0b,0xaa,0x20,0x00,0x0c,0xaa,0xc0,0x03,0x5f,0xd6,0x1f,0x10,0x00,0xf1,0xea,0x17,0x9f,0x9a,0x1f,0x14,0x00,0xf1,0xeb,0x17,0x9f,0x9a,0x4c,0x01,0x0b,0xaa,0xac,0x00,0x00,0xb4,0x8a,0x00,0x05,0xaa,0x6b,0x00,0x0a,0xaa,0x20,0x00,0x0b,0xaa,0xc0,0x03,0x5f,0xd6,0x1f,0x18,0x00,0xf1,0x01,0x01,0x00,0x54,0x6a,0x00,0x04,0xaa,0x0b,0xbd,0x70,0xd3,0x2c,0xd5,0x76,0xd3,0x6d,0x01,0x0c,0xaa,0x4e,0x01,0x0d,0xaa,0x20,0x00,0x0e,0xaa,0xc0,0x03,0x5f,0xd6,0x1f,0x1c,0x00,0xf1,0x21,0x01,0x00,0x54,0x8b,0x00,0x05,0xaa,0x6a,0x00,0x0b,0xaa,0x8b,0x02,0x80,0xd2,0x4c,0x68,0x6b,0xb8,0x8d,0xcd,0x74,0xd3,0x4e,0x01,0x0d,0xaa,0x20,0x00,0x0e,0xaa,0xc0,0x03,0x5f,0xd6,0x1f,0x20,0x00,0xf1,0x01,0x01,0x00,0x54,0x2a,0xfd,0x44,0xd3,0x4b,0xa9,0x6b,0xd3,0x0c,0xe9,0x7b,0xd3,0x6d,0x01,0x0c,0xaa,0x6e,0x00,0x0d,0xaa,0x20,0x00,0x0e,0xaa,0xc0,0x03,0x5f,0xd6,0x1f,0x24,0x00,0xf1,0xe1,0x00,0x00,0x54,0x6a,0x00,0x04,0xaa,0x0b,0xfd,0x43,0xd3,0x6c,0xd5,0x76,0xd3,0x4d,0x01,0x0c,0xaa,0x20,0x00,0x0d,0xaa,0xc0,0x03,0x5f,0xd6,0x1f,0x28,0x00,0xf1,0x41,0x01,0x00,0x54,0x0b,0xfd,0x43,0xd3,0xec,0x0f,0x80,0xd2,0x6d,0x01,0x0c,0x8a,0xaa,0xc1,0x71,0xd3,0x6b,0x00,0x04,0xaa,0xcc,0x00,0x0a,0xaa,0x6d,0x01,0x0c,0xaa,0x20,0x00,0x0d,0xaa,0xc0,0x03,0x5f,0xd6,0x1f,0x2c,0x00,0xf1,0xe1,0x00,0x00,0x54,0x0a,0xfd,0x42,0xd3,0xeb,0xff,0x9f,0xd2,0xeb,0x7f,0xa0,0xf2,0x4c,0x01,0x0b,0x8a,0x20,0x00,0x0c,0xaa,0xc0,0x03,0x5f,0xd6,0x1f,0x30,0x00,0xf1,0xea,0x17,0x9f,0x9a,0x1f,0x34,0x00,0xf1,0xeb,0x17,0x9f,0x9a,0x4c,0x01,0x0b,0xaa,0x0c,0x02,0x00,0xb4,0x0b,0xfd,0x42,0xd3,0xec,0xff,0x9f,0xd2,0xec,0x00,0xa0,0xf2,0x6d,0x01,0x0c,0x8a,0xaa,0xe9,0x7b,0xd3,0x1f,0x30,0x00,0xf1,0xc1,0x00,0x00,0x54,0x8b,0x02,0x80,0xd2,0x4c,0x68,0x6b,0xb8,0x4d,0x01,0x0c,0xaa,0x20,0x00,0x0d,0xaa,0xc0,0x03,0x5f,0xd6,0x4b,0x01,0x03,0xaa,0x20,0x00,0x0b,0xaa,0xc0,0x03,0x5f,0xd6,0x1f,0x38,0x00,0xf1,0x61,0x00,0x00,0x54,0x20,0x00,0x04,0xaa,0xc0,0x03,0x5f,0xd6,0x1f,0x3c,0x00,0xf1,0x81,0x00,0x00,0x54,0x0a,0xe9,0x7b,0xd3,0x20,0x00,0x0a,0xaa,0xc0,0x03,0x5f,0xd6,0x8e,0x00,0x00,0x54,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0xa1,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x03,0x00,0x01,0xca,0x64,0x00,0x01,0xcb,0x5f,0x00,0x01,0xf1,0xe2,0x00,0x00,0x54,0x85,0x20,0xc2,0x9a,0xe0,0x03,0x05,0xaa,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0xe1,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0xe3,0x03,0x80,0xd2,0x24,0x00,0x03,0x8a,0x85,0xfc,0x60,0xd3,0x85,0x1b,0x00,0xb5,0x06,0x00,0x80,0xd2,0x44,0x68,0x26,0xb8,0x23,0xfc,0x45,0xd3,0xe4,0x03,0x80,0xd2,0x65,0x00,0x04,0x8a,0xa6,0xfc,0x60,0xd3,0xa6,0x1a,0x00,0xb5,0x88,0x00,0x80,0xd2,0x45,0x68,0x28,0xb8,0x23,0xfc,0x50,0xd3,0xe4,0x03,0x80,0xd2,0x65,0x00,0x04,0x8a,0xa6,0xfc,0x60,0xd3,0xc6,0x19,0x00,0xb5,0x08,0x01,0x80,0xd2,0x45,0x68,0x28,0xb8,0x23,0xfc,0x4a,0xd3,0xe4,0x03,0x80,0xd2,0x65,0x00,0x04,0x8a,0xa6,0xfc,0x60,0xd3,0xe6,0x18,0x00,0xb5,0x88,0x01,0x80,0xd2,0x45,0x68,0x28,0xb8,0x03,0x00,0x80,0xd2,0x04,0x02,0x80,0xd2,0x43,0x68,0x24,0xb8,0x03,0x00,0x80,0xd2,0x84,0x02,0x80,0xd2,0x43,0x68,0x24,0xb8,0x03,0x00,0x80,0xd2,0x04,0x03,0x80,0xd2,0x43,0x68,0x24,0xf8,0x03,0x00,0x80,0xd2,0x04,0x04,0x80,0xd2,0x43,0x68,0x24,0xf8,0x1f,0x04,0x00,0xf1,0xe1,0x01,0x00,0x54,0x23,0xfc,0x56,0xd3,0x64,0x00,0x80,0xd2,0x65,0x00,0x04,0x8a,0xa6,0xfc,0x60,0xd3,0x46,0x16,0x00,0xb5,0x08,0x02,0x80,0xd2,0x45,0x68,0x28,0xb8,0x23,0xfc,0x4a,0xd3,0xe4,0x07,0x80,0xd2,0x65,0x00,0x04,0x8a,0xa6,0xfc,0x7f,0xd3,0x66,0x15,0x00,0xb5,0x08,0x03,0x80,0xd2,0x45,0x68,0x28,0xf8,0x1f,0x08,0x00,0xf1,0xe1,0x01,0x00,0x54,0x23,0xfc,0x4a,0xd3,0xe4,0xff,0x81,0xd2,0x65,0x00,0x04,0x8a,0xa6,0xfc,0x7f,0xd3,0x46,0x14,0x00,0xb5,0x08,0x03,0x80,0xd2,0x45,0x68,0x28,0xf8,0x23,0xfc,0x56,0xd3,0x24,0x00,0x80,0xd2,0x65,0x00,0x04,0x8a,0xa6,0xfc,0x7f,0xd3,0x66,0x13,0x00,0xb5,0x08,0x04,0x80,0xd2,0x45,0x68,0x28,0xf8,0x1f,0x18,0x00,0xf1,0xe1,0x01,0x00,0x54,0x23,0xfc,0x50,0xd3,0xe4,0x07,0x80,0xd2,0x65,0x00,0x04,0x8a,0xa6,0xfc,0x7f,0xd3,0x46,0x12,0x00,0xb5,0x08,0x03,0x80,0xd2,0x45,0x68,0x28,0xf8,0x23,0xfc,0x4a,0xd3,0xe4,0x07,0x80,0xd2,0x65,0x00,0x04,0x8a,0xa6,0xfc,0x7f,0xd3,0x66,0x11,0x00,0xb5,0x08,0x04,0x80,0xd2,0x45,0x68,0x28,0xf8,0x1f,0x1c,0x00,0xf1,0x01,0x01,0x00,0x54,0x23,0xfc,0x4c,0xd3,0xe4,0x01,0x80,0xd2,0x65,0x00,0x04,0x8a,0xa6,0xfc,0x60,0xd3,0x46,0x10,0x00,0xb5,0x88,0x02,0x80,0xd2,0x45,0x68,0x28,0xb8,0x1f,0x20,0x00,0xf1,0x01,0x02,0x00,0x54,0x23,0xfc,0x45,0xd3,0xe4,0xff,0x9f,0xd2,0x65,0x00,0x04,0x8a,0xa6,0xfc,0x7f,0xd3,0x26,0x0f,0x00,0xb5,0x08,0x03,0x80,0xd2,0x45,0x68,0x28,0xf8,0x23,0xfc,0x55,0xd3,0x64,0x00,0x80,0xd2,0x65,0x00,0x04,0x8a,0xa6,0xec,0x7c,0xd3,0xc8,0xfc,0x7f,0xd3,0x28,0x0e,0x00,0xb5,0x09,0x04,0x80,0xd2,0x46,0x68,0x29,0xf8,0x1f,0x24,0x00,0xf1,0x21,0x01,0x00,0x54,0x23,0xfc,0x4a,0xd3,0xe4,0xff,0x81,0xd2,0x65,0x00,0x04,0x8a,0xa6,0xf0,0x7d,0xd3,0xc8,0xfc,0x7f,0xd3,0xe8,0x0c,0x00,0xb5,0x09,0x03,0x80,0xd2,0x46,0x68,0x29,0xf8,0x1f,0x28,0x00,0xf1,0x01,0x03,0x00,0x54,0x23,0xfc,0x4f,0xd3,0xe4,0x0f,0x80,0xd2,0x65,0x00,0x04,0x8a,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x17,0x40,0xf9,0x01,0x08,0x80,0xd2,0x62,0x00,0x80,0xd2,0x69,0xff,0xff,0x97,0xe3,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0x04,0x03,0x80,0xd2,0x43,0x68,0x24,0xf8,0x1f,0x2c,0x00,0xf1,0xe1,0x02,0x00,0x54,0xe3,0xff,0x9f,0xd2,0xe3,0x7f,0xa0,0xf2,0x24,0x00,0x03,0x8a,0xff,0xc3,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xfe,0x17,0x00,0xf9,0xe0,0x13,0x40,0xf9,0x01,0x40,0xa0,0xd2,0x42,0x00,0x80,0xd2,0x51,0xff,0xff,0x97,0xe3,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xfe,0x17,0x40,0xf9,0xff,0xc3,0x00,0x91,0x04,0x03,0x80,0xd2,0x43,0x68,0x24,0xf8,0x1f,0x30,0x00,0xf1,0xe3,0x17,0x9f,0x9a,0x1f,0x34,0x00,0xf1,0xe4,0x17,0x9f,0x9a,0x65,0x00,0x04,0xaa,0x25,0x04,0x00,0xb4,0x23,0xfc,0x45,0xd3,0xe4,0xff,0x9f,0xd2,0xe4,0x00,0xa0,0xf2,0x65,0x00,0x04,0x8a,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x17,0x40,0xf9,0x81,0x00,0xa0,0xd2,0x42,0x00,0x80,0xd2,0x33,0xff,0xff,0x97,0xe3,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0x04,0x03,0x80,0xd2,0x43,0x68,0x24,0xf8,0x1f,0x30,0x00,0xf1,0xe1,0x00,0x00,0x54,0xe3,0x01,0x80,0xd2,0x24,0x00,0x03,0x8a,0x85,0xfc,0x60,0xd3,0x05,0x02,0x00,0xb5,0x86,0x02,0x80,0xd2,0x44,0x68,0x26,0xb8,0x1f,0x3c,0x00,0xf1,0x01,0x01,0x00,0x54,0x23,0xfc,0x45,0xd3,0xe4,0xff,0x9f,0xd2,0x65,0x00,0x04,0x8a,0xa6,0xfc,0x7f,0xd3,0xe6,0x00,0x00,0xb5,0x08,0x03,0x80,0xd2,0x45,0x68,0x28,0xf8,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0xa1,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x05,0x03,0x80,0xd2,0x24,0x68,0x65,0xf8,0x06,0x04,0x80,0xd2,0x25,0x68,0x66,0xf8,0x1f,0x04,0x00,0xf1,0xe6,0x07,0x9f,0x9a,0x08,0x02,0x80,0xd2,0x29,0x68,0x68,0xb8,0x3f,0x01,0x00,0xf1,0xea,0x07,0x9f,0x9a,0xcb,0x00,0x0a,0x8a,0x6b,0x00,0x00,0xb4,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x86,0x02,0x80,0xd2,0x28,0x68,0x66,0xb8,0x1f,0x01,0x00,0xf1,0xe9,0x07,0x9f,0x9a,0x1f,0x1c,0x00,0xf1,0xea,0x07,0x9f,0x9a,0x1f,0x30,0x00,0xf1,0xeb,0x07,0x9f,0x9a,0x4c,0x01,0x0b,0x8a,0x2d,0x01,0x0c,0x8a,0x6d,0x00,0x00,0xb4,0x40,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xbf,0x00,0x00,0xf1,0x80,0x01,0x00,0x54,0x1f,0x08,0x00,0xf1,0xe6,0x07,0x9f,0x9a,0x1f,0x18,0x00,0xf1,0xe8,0x07,0x9f,0x9a,0x1f,0x20,0x00,0xf1,0xe9,0x07,0x9f,0x9a,0x0a,0x01,0x09,0x8a,0xcb,0x00,0x0a,0x8a,0x6b,0x00,0x00,0xb4,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x9f,0x00,0x00,0xf1,0x80,0x02,0x00,0x54,0x1f,0x0c,0x00,0xf1,0xe6,0x17,0x9f,0x9a,0x1f,0x10,0x00,0xf1,0xe8,0x17,0x9f,0x9a,0x1f,0x14,0x00,0xf1,0xe9,0x17,0x9f,0x9a,0x0a,0x01,0x09,0xaa,0xcb,0x00,0x0a,0xaa,0x6b,0x00,0x00,0xb4,0x80,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0x1c,0x00,0xf1,0xe6,0x17,0x9f,0x9a,0x1f,0x38,0x00,0xf1,0xe8,0x17,0x9f,0x9a,0xc9,0x00,0x08,0xaa,0x69,0x00,0x00,0xb4,0x80,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0x04,0x00,0xf1,0xe1,0x01,0x00,0x54,0x06,0x02,0x80,0xd2,0x28,0x68,0x66,0xb8,0x1f,0x09,0x00,0xf1,0x69,0x00,0x00,0x54,0xa0,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x9f,0x00,0x00,0xf1,0xe6,0xa7,0x9f,0x9a,0x9f,0xfc,0x00,0xf1,0xe8,0xd7,0x9f,0x9a,0xc9,0x00,0x08,0xaa,0x69,0x00,0x00,0xb4,0xc0,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0x08,0x00,0xf1,0x21,0x02,0x00,0x54,0x9f,0x00,0x00,0xf1,0xe6,0xa7,0x9f,0x9a,0x9f,0xfc,0x3f,0xf1,0xe8,0xd7,0x9f,0x9a,0xc9,0x00,0x08,0xaa,0x69,0x00,0x00,0xb4,0xe0,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xbf,0x00,0x00,0xf1,0xe6,0x07,0x9f,0x9a,0xbf,0x04,0x00,0xf1,0xe8,0x07,0x9f,0x9a,0xc9,0x00,0x08,0x8a,0x69,0x00,0x00,0xb4,0x00,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0x18,0x00,0xf1,0x21,0x02,0x00,0x54,0x9f,0x00,0x00,0xf1,0xe6,0xa7,0x9f,0x9a,0x9f,0xfc,0x00,0xf1,0xe8,0xd7,0x9f,0x9a,0xc9,0x00,0x08,0xaa,0x69,0x00,0x00,0xb4,0x20,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xbf,0x00,0x00,0xf1,0xe6,0xa7,0x9f,0x9a,0xbf,0xfc,0x00,0xf1,0xe8,0xd7,0x9f,0x9a,0xc9,0x00,0x08,0xaa,0x69,0x00,0x00,0xb4,0x40,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0x1c,0x00,0xf1,0xe6,0x17,0x9f,0x9a,0x88,0x02,0x80,0xd2,0x29,0x68,0x68,0xb8,0x3f,0x39,0x00,0xf1,0xea,0x97,0x9f,0x9a,0xcb,0x00,0x0a,0x8a,0x6b,0x00,0x00,0xb4,0x60,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0x20,0x00,0xf1,0xe6,0x17,0x9f,0x9a,0x1f,0x3c,0x00,0xf1,0xe8,0x17,0x9f,0x9a,0xc9,0x00,0x08,0xaa,0x29,0x03,0x00,0xb4,0x9f,0x00,0x00,0xf1,0xe6,0xa7,0x9f,0x9a,0xe8,0xff,0x9f,0xd2,0x9f,0x00,0x08,0xeb,0xe9,0xd7,0x9f,0x9a,0xca,0x00,0x09,0xaa,0x6a,0x00,0x00,0xb4,0x80,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0x20,0x00,0xf1,0xc1,0x01,0x00,0x54,0xbf,0x00,0x00,0xf1,0xe6,0xa7,0x9f,0x9a,0xbf,0xc0,0x00,0xf1,0xe8,0xd7,0x9f,0x9a,0xe9,0x01,0x80,0xd2,0xaa,0x00,0x09,0x8a,0x5f,0x01,0x00,0xf1,0xeb,0x07,0x9f,0x9a,0x0c,0x01,0x0b,0xaa,0xcd,0x00,0x0c,0xaa,0x6d,0x00,0x00,0xb4,0xa0,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0x24,0x00,0xf1,0xe1,0x01,0x00,0x54,0x9f,0x00,0x00,0xf1,0xe6,0xa7,0x9f,0x9a,0x08,0xff,0x8f,0xd2,0x9f,0x00,0x08,0xeb,0xe9,0xd7,0x9f,0x9a,0xea,0x00,0x80,0xd2,0x8b,0x00,0x0a,0x8a,0x7f,0x01,0x00,0xf1,0xec,0x07,0x9f,0x9a,0x2d,0x01,0x0c,0xaa,0xce,0x00,0x0d,0xaa,0x6e,0x00,0x00,0xb4,0xc0,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0x28,0x00,0xf1,0x21,0x06,0x00,0x54,0xe6,0x3f,0x80,0x92,0x9f,0x00,0x06,0xeb,0xe8,0xa7,0x9f,0x9a,0x9f,0xe0,0x07,0xf1,0xe9,0xd7,0x9f,0x9a,0xea,0x00,0x80,0xd2,0x8b,0x00,0x0a,0x8a,0x7f,0x01,0x00,0xf1,0xec,0x07,0x9f,0x9a,0x2d,0x01,0x0c,0xaa,0x0e,0x01,0x0d,0xaa,0x6e,0x00,0x00,0xb4,0xe0,0x01,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x5f,0x00,0x00,0xf1,0xe6,0x07,0x9f,0x9a,0x88,0x00,0x80,0xd2,0x29,0x68,0x68,0xb8,0x3f,0x7d,0x00,0xf1,0xea,0x07,0x9f,0x9a,0xcb,0x00,0x0a,0x8a,0xeb,0x01,0x00,0xb4,0x88,0x00,0x80,0xd2,0x26,0x68,0x68,0xb8,0x08,0x00,0x80,0xd2,0x29,0x68,0x68,0xb8,0xdf,0x00,0x09,0xeb,0xea,0x17,0x9f,0x9a,0x8b,0x01,0x80,0xd2,0x2c,0x68,0x6b,0xb8,0xdf,0x00,0x0c,0xeb,0xed,0x17,0x9f,0x9a,0x4e,0x01,0x0d,0xaa,0x6e,0x00,0x00,0xb4,0x00,0x02,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x7f,0x00,0x00,0xf1,0xe6,0x07,0x9f,0x9a,0x08,0x00,0x80,0xd2,0x29,0x68,0x68,0xb8,0x8a,0x01,0x80,0xd2,0x2b,0x68,0x6a,0xb8,0x3f,0x01,0x0b,0xeb,0xec,0x17,0x9f,0x9a,0xcd,0x00,0x0c,0x8a,0x6d,0x00,0x00,0xb4,0x20,0x02,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0x2c,0x00,0xf1,0x41,0x02,0x00,0x54,0xe6,0xff,0x9f,0x92,0x06,0x00,0xbf,0xf2,0x9f,0x00,0x06,0xeb,0xe8,0xa7,0x9f,0x9a,0x89,0xff,0x9f,0xd2,0xe9,0xff,0xa0,0xf2,0x9f,0x00,0x09,0xeb,0xea,0xd7,0x9f,0x9a,0x6b,0x00,0x80,0xd2,0x8c,0x00,0x0b,0x8a,0x9f,0x01,0x00,0xf1,0xed,0x07,0x9f,0x9a,0x4e,0x01,0x0d,0xaa,0x0f,0x01,0x0e,0xaa,0x6f,0x00,0x00,0xb4,0x40,0x02,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0x30,0x00,0xf1,0xe6,0x17,0x9f,0x9a,0x1f,0x34,0x00,0xf1,0xe8,0x17,0x9f,0x9a,0xc9,0x00,0x08,0xaa,0x89,0x03,0x00,0xb4,0x1f,0x30,0x00,0xf1,0xe6,0x17,0x9f,0x9a,0x88,0x02,0x80,0xd2,0x29,0x68,0x68,0xb8,0x3f,0x35,0x00,0xf1,0xea,0x97,0x9f,0x9a,0xcb,0x00,0x0a,0x8a,0x6b,0x00,0x00,0xb4,0x60,0x02,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xe6,0xff,0x9f,0x92,0x06,0xfe,0xbf,0xf2,0x9f,0x00,0x06,0xeb,0xe8,0xa7,0x9f,0x9a,0x89,0xff,0x9f,0xd2,0xe9,0x01,0xa0,0xf2,0x9f,0x00,0x09,0xeb,0xea,0xd7,0x9f,0x9a,0x6b,0x00,0x80,0xd2,0x8c,0x00,0x0b,0x8a,0x9f,0x01,0x00,0xf1,0xed,0x07,0x9f,0x9a,0x4e,0x01,0x0d,0xaa,0x0f,0x01,0x0e,0xaa,0x6f,0x00,0x00,0xb4,0x40,0x02,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6\n.previous\n"); 2415 +static const char ombr2_ident_osc_a64_fields[] = "omega-ident 1 unit=osc_a64_fields abi=2 profile=OM-2 src=`9611ed84cd164f070399a77dcae62086f741201bcc972d969f912b21ce8824b4` omc=`b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2`"; 2416 +__attribute__((visibility("default"))) const char *omega2_ident_osc_a64_fields(void) 2417 +{ 2418 + return ombr2_ident_osc_a64_fields; 2419 +} 2420 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_a64_pack_fields\n.hidden ombr2_entry_osc_a64_pack_fields\nombr2_entry_osc_a64_pack_fields:\nhint #34\nb ombr2_code_osc_a64_fields+0\n.previous\n"); 2421 +extern const unsigned char ombr2_entry_osc_a64_pack_fields[] __attribute__((visibility("hidden"))); 2422 +/* export fn osc_a64_pack_fields form ulong base ulong f view a64field to ulong */ 2423 +__attribute__((visibility("default"))) uint32_t omega2_osc_a64_pack_fields(uint64_t *result, uint64_t o_form, uint64_t o_base, const uint8_t *o_f) 2424 +{ 2425 + ombr_span sp[7]; 2426 + unsigned ns = 0; 2427 + uint64_t a[6] = {0}; 2428 + ombr2_out ou[6] = {{0, 0, 0}}; 2429 + unsigned no = 0; 2430 + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2431 + return OMEGA_BAD_ARG; 2432 + a[0] = o_form; 2433 + a[1] = o_base; 2434 + if (ombr2_fixed(sp, &ns, o_f, 40u, 1u, 0)) 2435 + return OMEGA_BAD_ARG; 2436 + a[2] = (uint64_t)(uintptr_t)o_f; 2437 + if (ombr2_overlap(sp, ns)) 2438 + return OMEGA_BAD_ARG; 2439 + return ombr2_run(ombr2_entry_osc_a64_pack_fields, a, result, 1, ou, no); 2440 +} 2441 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_a64_unpack_fields\n.hidden ombr2_entry_osc_a64_unpack_fields\nombr2_entry_osc_a64_unpack_fields:\nhint #34\nb ombr2_code_osc_a64_fields+4\n.previous\n"); 2442 +extern const unsigned char ombr2_entry_osc_a64_unpack_fields[] __attribute__((visibility("hidden"))); 2443 +/* export fn osc_a64_unpack_fields form ulong word ulong f edit a64field to void */ 2444 +__attribute__((visibility("default"))) uint32_t omega2_osc_a64_unpack_fields(uint64_t *result, uint64_t o_form, uint64_t o_word, uint8_t *o_f) 2445 +{ 2446 + ombr_span sp[7]; 2447 + unsigned ns = 0; 2448 + uint64_t a[6] = {0}; 2449 + ombr2_out ou[6] = {{0, 0, 0}}; 2450 + unsigned no = 0; 2451 + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2452 + return OMEGA_BAD_ARG; 2453 + a[0] = o_form; 2454 + a[1] = o_word; 2455 + if (ombr2_fixed(sp, &ns, o_f, 40u, 1u, 1)) 2456 + return OMEGA_BAD_ARG; 2457 + a[2] = (uint64_t)(uintptr_t)o_f; 2458 + if (ombr2_overlap(sp, ns)) 2459 + return OMEGA_BAD_ARG; 2460 + return ombr2_run(ombr2_entry_osc_a64_unpack_fields, a, result, 0, ou, no); 2461 +} 2462 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_a64_check_fields\n.hidden ombr2_entry_osc_a64_check_fields\nombr2_entry_osc_a64_check_fields:\nhint #34\nb ombr2_code_osc_a64_fields+8\n.previous\n"); 2463 +extern const unsigned char ombr2_entry_osc_a64_check_fields[] __attribute__((visibility("hidden"))); 2464 +/* export fn osc_a64_check_fields cls ulong f view a64field writeback ulong loadpair ulong to ulong */ 2465 +__attribute__((visibility("default"))) uint32_t omega2_osc_a64_check_fields(uint64_t *result, uint64_t o_cls, const uint8_t *o_f, uint64_t o_writeback, uint64_t o_loadpair) 2466 +{ 2467 + ombr_span sp[7]; 2468 + unsigned ns = 0; 2469 + uint64_t a[6] = {0}; 2470 + ombr2_out ou[6] = {{0, 0, 0}}; 2471 + unsigned no = 0; 2472 + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2473 + return OMEGA_BAD_ARG; 2474 + a[0] = o_cls; 2475 + if (ombr2_fixed(sp, &ns, o_f, 40u, 1u, 0)) 2476 + return OMEGA_BAD_ARG; 2477 + a[1] = (uint64_t)(uintptr_t)o_f; 2478 + a[2] = o_writeback; 2479 + a[3] = o_loadpair; 2480 + if (ombr2_overlap(sp, ns)) 2481 + return OMEGA_BAD_ARG; 2482 + return ombr2_run(ombr2_entry_osc_a64_check_fields, a, result, 1, ou, no); 2483 +} 2484 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_code_osc_statement\n.hidden ombr2_code_osc_statement\nombr2_code_osc_statement:\n.byte 0x43,0x00,0x00,0x14,0xc0,0x00,0x00,0x14,0x1d,0x01,0x00,0x14,0xa3,0x01,0x00,0x14,0x1c,0x02,0x00,0x14,0x05,0x00,0x80,0xd2,0x46,0x68,0x65,0xb8,0xe4,0x03,0x06,0xaa,0x9f,0x1c,0x00,0xf1,0xc2,0x06,0x00,0x54,0x06,0x78,0x64,0x78,0xdf,0xac,0x00,0xf1,0xe5,0x17,0x9f,0x9a,0xc5,0x00,0x00,0xb4,0x84,0x04,0x00,0x91,0x86,0xfc,0x60,0xd3,0x26,0x06,0x00,0xb5,0x08,0x00,0x80,0xd2,0x44,0x68,0x28,0xb8,0x9f,0x1c,0x00,0xf1,0x62,0x05,0x00,0x54,0x06,0x78,0x64,0x78,0xdf,0x08,0x00,0xf1,0x60,0x00,0x00,0x54,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x9f,0x1c,0x00,0xf1,0x82,0x04,0x00,0x54,0x26,0x78,0x64,0xf8,0xe9,0xff,0x9f,0x92,0x09,0x00,0xa0,0xf2,0x09,0x00,0xc0,0xf2,0x09,0x00,0xf0,0xf2,0x28,0x05,0x00,0xd1,0xa5,0x00,0x00,0xb4,0xe8,0xff,0x9f,0x92,0x08,0x00,0xa0,0xf2,0x08,0x00,0xc0,0xf2,0x08,0x00,0xf0,0xf2,0xdf,0x00,0x08,0xeb,0x69,0x00,0x00,0x54,0x80,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x65,0x00,0x00,0xb4,0x09,0x00,0x80,0xd2,0x26,0x01,0x06,0xcb,0x7f,0x00,0x00,0xf1,0x80,0x00,0x00,0x54,0x09,0x02,0x80,0xd2,0x46,0x68,0x29,0xf8,0x03,0x00,0x00,0x14,0x09,0x01,0x80,0xd2,0x46,0x68,0x29,0xf8,0x89,0x04,0x00,0x91,0x2a,0xfd,0x60,0xd3,0x4a,0x01,0x00,0xb5,0x0b,0x00,0x80,0xd2,0x49,0x68,0x2b,0xb8,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0xa1,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0x04,0x00,0x80,0xd2,0x05,0x00,0x80,0xd2,0x64,0x68,0x25,0xb8,0x04,0x00,0x80,0xd2,0x85,0x00,0x80,0xd2,0x64,0x68,0x25,0xb8,0x04,0x00,0x80,0xd2,0x05,0x01,0x80,0xd2,0x64,0x68,0x25,0xf8,0x04,0x00,0x80,0xd2,0x05,0x02,0x80,0xd2,0x64,0x68,0x25,0xf8,0x04,0x00,0x40,0x79,0x9f,0x04,0x00,0xf1,0x60,0x00,0x00,0x54,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x24,0x00,0x80,0xd2,0x05,0x00,0x80,0xd2,0x64,0x68,0x25,0xb8,0x04,0x04,0x40,0x79,0x9f,0x38,0x00,0xf1,0x60,0x00,0x00,0x54,0x40,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x44,0x00,0x80,0xd2,0x05,0x00,0x80,0xd2,0x64,0x68,0x25,0xb8,0x44,0x00,0x80,0xd2,0x85,0x00,0x80,0xd2,0x64,0x68,0x25,0xb8,0xff,0xc3,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xfe,0x17,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0f,0x40,0xf9,0x03,0x00,0x80,0xd2,0x98,0xff,0xff,0x97,0xe4,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xfe,0x17,0x40,0xf9,0xff,0xc3,0x00,0x91,0x9f,0x00,0x00,0xf1,0x60,0x00,0x00,0x54,0xe0,0x03,0x04,0xaa,0xc0,0x03,0x5f,0xd6,0x06,0x00,0x80,0xd2,0x68,0x68,0x66,0xb8,0xe5,0x03,0x08,0xaa,0xbf,0x1c,0x00,0xf1,0x02,0x08,0x00,0x54,0x06,0x78,0x65,0x78,0xdf,0xa0,0x00,0xf1,0x60,0x00,0x00,0x54,0xa0,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xa6,0x04,0x00,0x91,0xc8,0xfc,0x60,0xd3,0x48,0x07,0x00,0xb5,0x09,0x00,0x80,0xd2,0x66,0x68,0x29,0xb8,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0f,0x40,0xf9,0x23,0x00,0x80,0xd2,0x71,0xff,0xff,0x97,0xe4,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0x9f,0x00,0x00,0xf1,0x60,0x00,0x00,0x54,0xe0,0x03,0x04,0xaa,0xc0,0x03,0x5f,0xd6,0x08,0x01,0x80,0xd2,0x66,0x68,0x68,0xf8,0x09,0x02,0x80,0xd2,0x68,0x68,0x69,0xf8,0xe9,0xff,0x9f,0x92,0x09,0x00,0xa0,0xf2,0x09,0x00,0xc0,0xf2,0x09,0x00,0xf0,0xf2,0x0a,0x01,0x09,0xca,0xeb,0xff,0x9f,0x92,0x0b,0x00,0xa0,0xf2,0x0b,0x00,0xc0,0xf2,0x0b,0x00,0xf0,0xf2,0xcc,0x00,0x0b,0xca,0x5f,0x01,0x0c,0xeb,0xed,0x27,0x9f,0x9a,0x0e,0x01,0x06,0xcb,0xdf,0x01,0x02,0xeb,0xef,0x97,0x9f,0x9a,0xb1,0x01,0x0f,0xaa,0x71,0x00,0x00,0xb4,0xc0,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0xa1,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0x84,0x01,0x80,0xd2,0x1f,0x00,0x04,0xeb,0x60,0x00,0x00,0x54,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x44,0x00,0x80,0xd2,0x3f,0x00,0x04,0xeb,0x60,0x00,0x00,0x54,0x40,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x5f,0x00,0x00,0xf1,0xe4,0x17,0x9f,0x9a,0x5f,0x00,0x03,0xeb,0xe5,0x97,0x9f,0x9a,0x86,0x00,0x05,0xaa,0x66,0x00,0x00,0xb4,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x05,0x00,0x80,0xd2,0x06,0x00,0x80,0xd2,0xbf,0x00,0x04,0xeb,0x82,0x02,0x00,0x54,0x08,0x48,0x88,0xd2,0xe8,0x01,0xa0,0xf2,0xdf,0x00,0x08,0xeb,0x82,0x03,0x00,0x54,0xc6,0x04,0x00,0x91,0x48,0x00,0x05,0x8b,0x1f,0x01,0x01,0xeb,0xc2,0x02,0x00,0x54,0x09,0x68,0x68,0x38,0x6a,0x00,0x05,0x8b,0x5f,0x01,0x01,0xeb,0x42,0x02,0x00,0x54,0x0b,0x68,0x6a,0x38,0x3f,0x01,0x0b,0xeb,0x60,0x00,0x00,0x54,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xa5,0x04,0x00,0x91,0xec,0xff,0xff,0x17,0x46,0x00,0x04,0x8b,0xdf,0x00,0x01,0xeb,0x02,0x01,0x00,0x54,0x08,0x68,0x66,0x38,0x1f,0x01,0x00,0xf1,0xe0,0x17,0x9f,0x9a,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x81,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0xe5,0x03,0x01,0xaa,0x66,0x00,0x04,0xcb,0xbf,0x00,0x06,0xeb,0x43,0x00,0x00,0x54,0xc5,0x04,0x00,0xd1,0x08,0x00,0x80,0xd2,0x09,0x00,0x80,0xd2,0x1f,0x01,0x05,0xeb,0xe2,0x01,0x00,0x54,0x0a,0x48,0x88,0xd2,0xea,0x01,0xa0,0xf2,0x3f,0x01,0x0a,0xeb,0xe2,0x02,0x00,0x54,0x29,0x05,0x00,0x91,0x8a,0x00,0x08,0x8b,0x1f,0x01,0x01,0xeb,0x22,0x02,0x00,0x54,0x0b,0x68,0x68,0x38,0x5f,0x01,0x03,0xeb,0xc2,0x01,0x00,0x54,0x4b,0x68,0x2a,0x38,0x08,0x05,0x00,0x91,0xf1,0xff,0xff,0x17,0x89,0x00,0x05,0x8b,0x0a,0x00,0x80,0xd2,0x3f,0x01,0x03,0xeb,0xe2,0x00,0x00,0x54,0x4a,0x68,0x29,0x38,0xe0,0x03,0x05,0xaa,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x81,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0x06,0x00,0x80,0xd2,0x88,0x01,0x80,0xd2,0x06,0x68,0x28,0xb8,0x88,0x00,0x80,0xd2,0x09,0x68,0x68,0xb8,0xe6,0x03,0x09,0xaa,0x09,0x01,0x80,0xd2,0x0a,0x68,0x69,0xb8,0xe8,0x03,0x0a,0xaa,0x09,0x00,0x80,0xd2,0x0a,0x68,0x69,0xb8,0x5f,0x01,0x00,0xf1,0x60,0x00,0x00,0x54,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x29,0x00,0x80,0xd2,0x3f,0x00,0x09,0xeb,0x60,0x00,0x00,0x54,0x40,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xbf,0x00,0x00,0xf1,0x61,0x00,0x00,0x54,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xa9,0x00,0x06,0xcb,0x2a,0x01,0x08,0x8b,0xff,0x83,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xfe,0x2f,0x00,0xf9,0xe0,0x0b,0x40,0xf9,0xe1,0x0f,0x40,0xf9,0xe2,0x13,0x40,0xf9,0xe3,0x17,0x40,0xf9,0xe4,0x27,0x40,0xf9,0xaf,0xff,0xff,0x97,0xeb,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xfe,0x2f,0x40,0xf9,0xff,0x83,0x01,0x91,0x0c,0x00,0x80,0xd2,0x0d,0x00,0x80,0xd2,0x9f,0x01,0x09,0xeb,0x02,0x07,0x00,0x54,0x0e,0x48,0x88,0xd2,0xee,0x01,0xa0,0xf2,0xbf,0x01,0x0e,0xeb,0x42,0x08,0x00,0x54,0xad,0x05,0x00,0x91,0x8e,0x01,0x08,0x8b,0xff,0x03,0x02,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xec,0x2f,0x00,0xf9,0xed,0x33,0x00,0xf9,0xee,0x37,0x00,0xf9,0xfe,0x3b,0x00,0xf9,0xe0,0x13,0x40,0xf9,0xe1,0x17,0x40,0xf9,0xe2,0x37,0x40,0xf9,0xe3,0x27,0x40,0xf9,0xe4,0x2b,0x40,0xf9,0x5d,0xff,0xff,0x97,0xee,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xeb,0x2b,0x40,0xf9,0xec,0x2f,0x40,0xf9,0xed,0x33,0x40,0xf9,0xfe,0x3b,0x40,0xf9,0xff,0x03,0x02,0x91,0x2e,0x01,0x00,0xb4,0xc6,0x02,0x00,0xb4,0x8e,0x09,0xc6,0x9a,0xcf,0xfd,0x60,0xd3,0xef,0x02,0x00,0xb5,0x91,0x01,0x80,0xd2,0x0e,0x68,0x31,0xb8,0x80,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x8c,0x01,0x06,0x8b,0xc8,0xff,0xff,0x17,0x0d,0x02,0x80,0xd2,0x0e,0x68,0x6d,0xb8,0xaf,0x04,0x80,0xd2,0xdf,0x01,0x0f,0xeb,0x60,0x00,0x00,0x54,0xa0,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x41,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x81,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0xa1,0x00,0x80,0xd2,0xf8,0xff,0xff,0x17,0x3f,0x00,0x00,0xf1,0xe8,0x07,0x9f,0x9a,0x5f,0x78,0x00,0xf1,0xe9,0x07,0x9f,0x9a,0x7f,0x7c,0x00,0xf1,0xea,0x07,0x9f,0x9a,0x2b,0x01,0x0a,0x8a,0x06,0x01,0x0b,0x8a,0x28,0x00,0x05,0x8b,0x46,0x00,0x00,0xb4,0x08,0x05,0x00,0x91,0x1f,0x01,0x04,0xf1,0x63,0x00,0x00,0x54,0x00,0x20,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xc6,0x00,0x00,0xb4,0x09,0x04,0x80,0xd2,0x3f,0x00,0x04,0xf1,0xc2,0x03,0x00,0x54,0x09,0x68,0x21,0x38,0x21,0x04,0x00,0x91,0x09,0x00,0x80,0xd2,0x0a,0x00,0x80,0xd2,0x3f,0x01,0x05,0xeb,0xe2,0x01,0x00,0x54,0x0b,0x48,0x88,0xd2,0xeb,0x01,0xa0,0xf2,0x5f,0x01,0x0b,0xeb,0xc2,0x02,0x00,0x54,0x4a,0x05,0x00,0x91,0x2b,0x00,0x09,0x8b,0x3f,0x01,0x05,0xeb,0x02,0x02,0x00,0x54,0x8c,0x68,0x69,0x38,0x7f,0x01,0x04,0xf1,0xa2,0x01,0x00,0x54,0x0c,0x68,0x2b,0x38,0x29,0x05,0x00,0x91,0xf1,0xff,0xff,0x17,0x0a,0x00,0x80,0xd2,0x1f,0x01,0x04,0xf1,0xe2,0x00,0x00,0x54,0x0a,0x68,0x28,0x38,0xe0,0x03,0x08,0xaa,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x81,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0x3f,0x10,0x00,0xf1,0x60,0x00,0x00,0x54,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x02,0x00,0x80,0xd2,0x5f,0x00,0x01,0xeb,0xa2,0x03,0x00,0x54,0x03,0x68,0x62,0x38,0x7f,0x98,0x01,0xf1,0xe4,0x17,0x9f,0x9a,0x25,0x00,0x80,0xd2,0xbf,0x00,0x01,0xeb,0xe2,0x02,0x00,0x54,0x06,0x68,0x65,0x38,0xdf,0xc8,0x01,0xf1,0xe8,0x17,0x9f,0x9a,0x49,0x00,0x80,0xd2,0x3f,0x01,0x01,0xeb,0x22,0x02,0x00,0x54,0x0a,0x68,0x69,0x38,0x5f,0x95,0x01,0xf1,0xeb,0x17,0x9f,0x9a,0x6c,0x00,0x80,0xd2,0x9f,0x01,0x01,0xeb,0x62,0x01,0x00,0x54,0x0d,0x68,0x6c,0x38,0xbf,0x95,0x01,0xf1,0xee,0x17,0x9f,0x9a,0x6f,0x01,0x0e,0x8a,0x11,0x01,0x0f,0x8a,0x80,0x00,0x11,0x8a,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0xa2,0x04,0x80,0xd2,0x3f,0x14,0x00,0xf1,0xc2,0x01,0x00,0x54,0x03,0x01,0x80,0xd2,0x63,0x08,0x01,0x8b,0x02,0x68,0x23,0xb8,0x22,0x04,0x00,0x91,0x43,0xfc,0x60,0xd3,0x43,0x01,0x00,0xb5,0x84,0x00,0x80,0xd2,0x02,0x68,0x24,0xb8,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0xa1,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0x01,0xfc,0x60,0xd3,0x41,0x01,0x00,0xb5,0x1f,0xbc,0x00,0xf1,0x61,0x00,0x00,0x54,0x20,0x09,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xe0,0x08,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0xa1,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x26,0xfc,0x60,0xd3,0x86,0x25,0x00,0xb5,0x3f,0x3c,0x00,0xf1,0xe1,0x08,0x00,0x54,0xa6,0x01,0x80,0xd2,0x88,0x03,0x80,0xd2,0x06,0x68,0x28,0xb8,0x26,0x00,0x80,0xd2,0x08,0x00,0x80,0xd2,0x06,0x68,0x28,0xb8,0x46,0xfc,0x60,0xd3,0x46,0x24,0x00,0xb5,0xa8,0x04,0x80,0xd2,0x5f,0x00,0x08,0xeb,0x81,0x02,0x00,0x54,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x03,0x40,0xf9,0x01,0x00,0x80,0xd2,0xc6,0xff,0xff,0x97,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0xc0,0x03,0x5f,0xd6,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x0b,0x40,0xf9,0xc8,0xff,0xff,0x97,0xe6,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0x08,0x01,0x80,0xd2,0x06,0x68,0x28,0xb8,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x03,0x40,0xf9,0x21,0x00,0x80,0xd2,0x9e,0xff,0xff,0x97,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0xc0,0x03,0x5f,0xd6,0x46,0xfc,0x60,0xd3,0x46,0x1c,0x00,0xb5,0x5f,0x78,0x00,0xf1,0xa1,0x03,0x00,0x54,0xc6,0x01,0x80,0xd2,0x88,0x03,0x80,0xd2,0x06,0x68,0x28,0xb8,0x06,0x00,0x80,0xd2,0x08,0x00,0x80,0xd2,0x06,0x68,0x28,0xb8,0xc6,0x08,0x80,0xd2,0x08,0x01,0x80,0xd2,0x06,0x68,0x28,0xb8,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x03,0x40,0xf9,0x21,0x00,0x80,0xd2,0x7e,0xff,0xff,0x97,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0xc0,0x03,0x5f,0xd6,0x46,0xfc,0x60,0xd3,0x46,0x18,0x00,0xb5,0x5f,0xfc,0x00,0xf1,0x01,0x0c,0x00,0x54,0x66,0xfc,0x60,0xd3,0xc6,0x17,0x00,0xb5,0x7f,0x0c,0x00,0xf1,0xe8,0x17,0x9f,0x9a,0xff,0x43,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xfe,0x23,0x00,0xf9,0xe0,0x13,0x40,0xf9,0xe1,0x17,0x40,0xf9,0x3c,0xff,0xff,0x97,0xe9,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xfe,0x23,0x40,0xf9,0xff,0x43,0x01,0x91,0x0a,0x01,0x09,0x8a,0x6a,0x04,0x00,0xb4,0xe6,0x03,0x80,0xd2,0x88,0x03,0x80,0xd2,0x06,0x68,0x28,0xb8,0x66,0x00,0x80,0xd2,0x08,0x00,0x80,0xd2,0x06,0x68,0x28,0xb8,0xc6,0x03,0x80,0xd2,0x08,0x01,0x80,0xd2,0x06,0x68,0x28,0xb8,0xe6,0x08,0x80,0xd2,0x88,0x01,0x80,0xd2,0x06,0x68,0x28,0xb8,0xe6,0x03,0x80,0xd2,0x08,0x02,0x80,0xd2,0x06,0x68,0x28,0xb8,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x03,0x40,0xf9,0x61,0x00,0x80,0xd2,0x3a,0xff,0xff,0x97,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0xc0,0x03,0x5f,0xd6,0x46,0x03,0x80,0xd2,0x88,0x03,0x80,0xd2,0x06,0x68,0x28,0xb8,0x06,0x00,0x80,0xd2,0x08,0x00,0x80,0xd2,0x06,0x68,0x28,0xb8,0x26,0x05,0x80,0xd2,0x08,0x01,0x80,0xd2,0x06,0x68,0x28,0xb8,0x06,0x09,0x80,0xd2,0x88,0x01,0x80,0xd2,0x06,0x68,0x28,0xb8,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x03,0x40,0xf9,0x41,0x00,0x80,0xd2,0x1b,0xff,0xff,0x97,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0xc0,0x03,0x5f,0xd6,0x46,0xfc,0x60,0xd3,0xe6,0x0b,0x00,0xb5,0x5f,0xa4,0x00,0xf1,0xe1,0x05,0x00,0x54,0x06,0x01,0x80,0xd2,0x88,0x03,0x80,0xd2,0x06,0x68,0x28,0xb8,0x46,0x00,0x80,0xd2,0x08,0x00,0x80,0xd2,0x06,0x68,0x28,0xb8,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x0f,0x40,0xf9,0x13,0xff,0xff,0x97,0xe6,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0x08,0x01,0x80,0xd2,0x06,0x68,0x28,0xb8,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x03,0x40,0xf9,0x21,0x00,0x80,0xd2,0xe9,0xfe,0xff,0x97,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0xc0,0x03,0x5f,0xd6,0x46,0xfc,0x60,0xd3,0xa6,0x05,0x00,0xb5,0x5f,0x88,0x00,0xf1,0xc1,0x04,0x00,0x54,0x26,0x01,0x80,0xd2,0x88,0x03,0x80,0xd2,0x06,0x68,0x28,0xb8,0x46,0x00,0x80,0xd2,0x08,0x00,0x80,0xd2,0x06,0x68,0x28,0xb8,0x46,0x09,0x80,0xd2,0x08,0x01,0x80,0xd2,0x06,0x68,0x28,0xb8,0x66,0x04,0x80,0xd2,0x88,0x01,0x80,0xd2,0x06,0x68,0x28,0xb8,0x26,0x05,0x80,0xd2,0x08,0x02,0x80,0xd2,0x06,0x68,0x28,0xb8,0x66,0x09,0x80,0xd2,0x88,0x02,0x80,0xd2,0x06,0x68,0x28,0xb8,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x03,0x40,0xf9,0x81,0x00,0x80,0xd2,0xc0,0xfe,0xff,0x97,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0xc0,0x03,0x5f,0xd6,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0xa1,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17\n.previous\n"); 2485 +static const char ombr2_ident_osc_statement[] = "omega-ident 1 unit=osc_statement abi=2 profile=OM-2 src=`a7b0105f7f6556f4b78142c36b3208d8d5072df232898491f5fc010a7903c914` omc=`b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2`"; 2486 +__attribute__((visibility("default"))) const char *omega2_ident_osc_statement(void) 2487 +{ 2488 + return ombr2_ident_osc_statement; 2489 +} 2490 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_for_range\n.hidden ombr2_entry_osc_for_range\nombr2_entry_osc_for_range:\nhint #34\nb ombr2_code_osc_statement+0\n.previous\n"); 2491 +extern const unsigned char ombr2_entry_osc_for_range[] __attribute__((visibility("hidden"))); 2492 +/* export fn osc_for_range kinds view ushort 7 values view ulong 7 limit ulong range edit forrange to ulong */ 2493 +__attribute__((visibility("default"))) uint32_t omega2_osc_for_range(uint64_t *result, const uint16_t *o_kinds, uint64_t o_kinds_len, const uint64_t *o_values, uint64_t o_values_len, uint64_t o_limit, uint8_t *o_range) 2494 +{ 2495 + ombr_span sp[7]; 2496 + unsigned ns = 0; 2497 + uint64_t a[6] = {0}; 2498 + ombr2_out ou[6] = {{0, 0, 0}}; 2499 + unsigned no = 0; 2500 + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2501 + return OMEGA_BAD_ARG; 2502 + if (ombr_span_add(sp, &ns, o_kinds, o_kinds_len, 7u, 2u, 0)) 2503 + return OMEGA_BAD_ARG; 2504 + a[0] = (uint64_t)(uintptr_t)o_kinds; 2505 + if (ombr_span_add(sp, &ns, o_values, o_values_len, 7u, 8u, 0)) 2506 + return OMEGA_BAD_ARG; 2507 + a[1] = (uint64_t)(uintptr_t)o_values; 2508 + a[2] = o_limit; 2509 + if (ombr2_fixed(sp, &ns, o_range, 24u, 1u, 1)) 2510 + return OMEGA_BAD_ARG; 2511 + a[3] = (uint64_t)(uintptr_t)o_range; 2512 + if (ombr2_overlap(sp, ns)) 2513 + return OMEGA_BAD_ARG; 2514 + return ombr2_run(ombr2_entry_osc_for_range, a, result, 1, ou, no); 2515 +} 2516 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_read_bound\n.hidden ombr2_entry_osc_read_bound\nombr2_entry_osc_read_bound:\nhint #34\nb ombr2_code_osc_statement+4\n.previous\n"); 2517 +extern const unsigned char ombr2_entry_osc_read_bound[] __attribute__((visibility("hidden"))); 2518 +/* export fn osc_read_bound keyword ulong kind ulong value ulong limit ulong to ulong */ 2519 +__attribute__((visibility("default"))) uint32_t omega2_osc_read_bound(uint64_t *result, uint64_t o_keyword, uint64_t o_kind, uint64_t o_value, uint64_t o_limit) 2520 +{ 2521 + ombr_span sp[7]; 2522 + unsigned ns = 0; 2523 + uint64_t a[6] = {0}; 2524 + ombr2_out ou[6] = {{0, 0, 0}}; 2525 + unsigned no = 0; 2526 + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2527 + return OMEGA_BAD_ARG; 2528 + a[0] = o_keyword; 2529 + a[1] = o_kind; 2530 + a[2] = o_value; 2531 + a[3] = o_limit; 2532 + if (ombr2_overlap(sp, ns)) 2533 + return OMEGA_BAD_ARG; 2534 + return ombr2_run(ombr2_entry_osc_read_bound, a, result, 1, ou, no); 2535 +} 2536 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_read_import\n.hidden ombr2_entry_osc_read_import\nombr2_entry_osc_read_import:\nhint #34\nb ombr2_code_osc_statement+8\n.previous\n"); 2537 +extern const unsigned char ombr2_entry_osc_read_import[] __attribute__((visibility("hidden"))); 2538 +/* export fn osc_read_import state edit imprec kind ulong spelling view uchar * table edit uchar * to ulong */ 2539 +__attribute__((visibility("default"))) uint32_t omega2_osc_read_import(uint64_t *result, uint8_t *o_state, uint64_t o_kind, const uint8_t *o_spelling, uint64_t o_spelling_len, uint8_t *o_table, uint64_t o_table_len) 2540 +{ 2541 + ombr_span sp[7]; 2542 + unsigned ns = 0; 2543 + uint64_t a[6] = {0}; 2544 + ombr2_out ou[6] = {{0, 0, 0}}; 2545 + unsigned no = 0; 2546 + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2547 + return OMEGA_BAD_ARG; 2548 + if (ombr2_fixed(sp, &ns, o_state, 20u, 1u, 1)) 2549 + return OMEGA_BAD_ARG; 2550 + a[0] = (uint64_t)(uintptr_t)o_state; 2551 + a[1] = o_kind; 2552 + if (ombr2_view(sp, &ns, o_spelling, o_spelling_len, 1u, 0)) 2553 + return OMEGA_BAD_ARG; 2554 + a[2] = (uint64_t)(uintptr_t)o_spelling; 2555 + a[3] = o_spelling_len; 2556 + if (ombr2_view(sp, &ns, o_table, o_table_len, 1u, 1)) 2557 + return OMEGA_BAD_ARG; 2558 + a[4] = (uint64_t)(uintptr_t)o_table; 2559 + a[5] = o_table_len; 2560 + if (ombr2_overlap(sp, ns)) 2561 + return OMEGA_BAD_ARG; 2562 + return ombr2_run(ombr2_entry_osc_read_import, a, result, 1, ou, no); 2563 +} 2564 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_clause_word\n.hidden ombr2_entry_osc_clause_word\nombr2_entry_osc_clause_word:\nhint #34\nb ombr2_code_osc_statement+12\n.previous\n"); 2565 +extern const unsigned char ombr2_entry_osc_clause_word[] __attribute__((visibility("hidden"))); 2566 +/* export fn osc_clause_word dst edit uchar 256 used ulong prev ulong kind ulong word view uchar * to ulong */ 2567 +__attribute__((visibility("default"))) uint32_t omega2_osc_clause_word(uint64_t *result, uint8_t *o_dst, uint64_t o_dst_len, uint64_t o_used, uint64_t o_prev, uint64_t o_kind, const uint8_t *o_word, uint64_t o_word_len) 2568 +{ 2569 + ombr_span sp[7]; 2570 + unsigned ns = 0; 2571 + uint64_t a[6] = {0}; 2572 + ombr2_out ou[6] = {{0, 0, 0}}; 2573 + unsigned no = 0; 2574 + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2575 + return OMEGA_BAD_ARG; 2576 + if (ombr_span_add(sp, &ns, o_dst, o_dst_len, 256u, 1u, 1)) 2577 + return OMEGA_BAD_ARG; 2578 + a[0] = (uint64_t)(uintptr_t)o_dst; 2579 + a[1] = o_used; 2580 + a[2] = o_prev; 2581 + a[3] = o_kind; 2582 + if (ombr2_view(sp, &ns, o_word, o_word_len, 1u, 0)) 2583 + return OMEGA_BAD_ARG; 2584 + a[4] = (uint64_t)(uintptr_t)o_word; 2585 + a[5] = o_word_len; 2586 + if (ombr2_overlap(sp, ns)) 2587 + return OMEGA_BAD_ARG; 2588 + return ombr2_run(ombr2_entry_osc_clause_word, a, result, 1, ou, no); 2589 +} 2590 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_statement_plan\n.hidden ombr2_entry_osc_statement_plan\nombr2_entry_osc_statement_plan:\nhint #34\nb ombr2_code_osc_statement+16\n.previous\n"); 2591 +extern const unsigned char ombr2_entry_osc_statement_plan[] __attribute__((visibility("hidden"))); 2592 +/* export fn osc_statement_plan plan edit stmtplan kind ulong nextkind ulong third ulong spelling view uchar * to ulong */ 2593 +__attribute__((visibility("default"))) uint32_t omega2_osc_statement_plan(uint64_t *result, uint8_t *o_plan, uint64_t o_kind, uint64_t o_nextkind, uint64_t o_third, const uint8_t *o_spelling, uint64_t o_spelling_len) 2594 +{ 2595 + ombr_span sp[7]; 2596 + unsigned ns = 0; 2597 + uint64_t a[6] = {0}; 2598 + ombr2_out ou[6] = {{0, 0, 0}}; 2599 + unsigned no = 0; 2600 + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2601 + return OMEGA_BAD_ARG; 2602 + if (ombr2_fixed(sp, &ns, o_plan, 32u, 1u, 1)) 2603 + return OMEGA_BAD_ARG; 2604 + a[0] = (uint64_t)(uintptr_t)o_plan; 2605 + a[1] = o_kind; 2606 + a[2] = o_nextkind; 2607 + a[3] = o_third; 2608 + if (ombr2_view(sp, &ns, o_spelling, o_spelling_len, 1u, 0)) 2609 + return OMEGA_BAD_ARG; 2610 + a[4] = (uint64_t)(uintptr_t)o_spelling; 2611 + a[5] = o_spelling_len; 2612 + if (ombr2_overlap(sp, ns)) 2613 + return OMEGA_BAD_ARG; 2614 + return ombr2_run(ombr2_entry_osc_statement_plan, a, result, 1, ou, no); 2615 +} 2616 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_code_osc_ownership\n.hidden ombr2_code_osc_ownership\nombr2_code_osc_ownership:\n.byte 0x19,0x00,0x00,0x14,0x2c,0x00,0x00,0x14,0x43,0x00,0x00,0x14,0x6a,0x00,0x00,0x14,0x8b,0x00,0x00,0x14,0x93,0x00,0x00,0x14,0xbf,0x00,0x00,0x14,0xf9,0x00,0x00,0x14,0x1c,0x01,0x00,0x14,0x41,0x01,0x00,0x14,0x55,0x01,0x00,0x14,0x69,0x01,0x00,0x14,0x5f,0x00,0x00,0xf1,0xe3,0x07,0x9f,0x9a,0x1f,0x00,0x00,0xf1,0xe4,0x07,0x9f,0x9a,0x3f,0x00,0x00,0xf1,0xe5,0x07,0x9f,0x9a,0x86,0x00,0x05,0x8a,0x68,0x00,0x06,0xaa,0x68,0x00,0x00,0xb4,0x40,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x1f,0x00,0x00,0xf1,0x60,0x00,0x00,0x54,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xff,0xc3,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xfe,0x13,0x00,0xf9,0xe0,0x07,0x40,0xf9,0xe1,0x0b,0x40,0xf9,0xe2,0x0f,0x40,0xf9,0xe6,0xff,0xff,0x97,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xfe,0x13,0x40,0xf9,0xff,0xc3,0x00,0x91,0xc0,0x03,0x5f,0xd6,0x3f,0x00,0x00,0xf1,0xe4,0x07,0x9f,0x9a,0x1f,0x00,0x00,0xf1,0xe5,0x17,0x9f,0x9a,0x86,0x00,0x05,0x8a,0x66,0x00,0x00,0xb4,0x60,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xff,0xc3,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xfe,0x13,0x00,0xf9,0xe0,0x07,0x40,0xf9,0xe1,0x0b,0x40,0xf9,0xe2,0x0f,0x40,0xf9,0xce,0xff,0xff,0x97,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xfe,0x13,0x40,0xf9,0xff,0xc3,0x00,0x91,0xc0,0x03,0x5f,0xd6,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x03,0x40,0xf9,0x21,0x00,0x80,0xd2,0xe2,0x07,0x40,0xf9,0xe3,0x0b,0x40,0xf9,0xc8,0xff,0xff,0x97,0xe5,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0xbf,0x00,0x00,0xf1,0x60,0x00,0x00,0x54,0xe0,0x03,0x05,0xaa,0xc0,0x03,0x5f,0xd6,0x7f,0x00,0x04,0xeb,0x6a,0x00,0x00,0x54,0x80,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x3f,0x00,0x00,0xf1,0xe2,0x17,0x9f,0x9a,0x3f,0x04,0x00,0xf1,0xe3,0x17,0x9f,0x9a,0x1f,0x0c,0x00,0xf1,0xe4,0x17,0x9f,0x9a,0x65,0x00,0x04,0x8a,0x40,0x00,0x05,0xaa,0xc0,0x03,0x5f,0xd6,0x03,0x00,0x80,0xd2,0x02,0x68,0x63,0x38,0x04,0x00,0x80,0xd2,0x23,0x68,0x64,0x38,0x5f,0x00,0x03,0xeb,0x61,0x00,0x00,0x54,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xff,0xc3,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xfe,0x13,0x00,0xf9,0xe0,0x0b,0x40,0xf9,0xe1,0x0f,0x40,0xf9,0xe7,0xff,0xff,0x97,0xe4,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xfe,0x13,0x40,0xf9,0xff,0xc3,0x00,0x91,0xa4,0x00,0x00,0xb4,0x04,0x01,0x80,0xd2,0x05,0x68,0x64,0xb8,0x06,0x01,0x80,0xd2,0x25,0x68,0x26,0xb8,0x64,0x00,0x80,0xd2,0x05,0x00,0x80,0xd2,0x24,0x68,0x25,0x38,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x3f,0x00,0x00,0xeb,0xe3,0x07,0x9f,0x9a,0x5f,0x00,0x00,0xeb,0xe4,0x07,0x9f,0x9a,0x65,0x00,0x04,0xaa,0x65,0x00,0x00,0xb4,0x00,0x00,0x80,0x92,0xc0,0x03,0x5f,0xd6,0xc0,0x03,0x5f,0xd6,0x3f,0x00,0x03,0xeb,0x41,0x05,0x00,0x54,0x04,0x00,0x80,0xd2,0x05,0x00,0x80,0xd2,0x9f,0x00,0x03,0xeb,0xc2,0x03,0x00,0x54,0x06,0x48,0x88,0xd2,0xe6,0x01,0xa0,0xf2,0xbf,0x00,0x06,0xeb,0x02,0x04,0x00,0x54,0xa5,0x04,0x00,0x91,0x9f,0x00,0x01,0xeb,0x62,0x03,0x00,0x54,0x06,0x68,0x64,0x38,0xdf,0x00,0x00,0xf1,0xe8,0x07,0x9f,0x9a,0x9f,0x00,0x03,0xeb,0xc2,0x02,0x00,0x54,0x49,0x68,0x64,0x38,0x3f,0x01,0x00,0xf1,0xea,0x07,0x9f,0x9a,0x0b,0x01,0x0a,0x8a,0xcb,0x00,0x00,0xb4,0x26,0x00,0x80,0xd2,0x9f,0x00,0x03,0xeb,0xc2,0x01,0x00,0x54,0x46,0x68,0x24,0x38,0x05,0x00,0x00,0x14,0x06,0x00,0x80,0xd2,0x9f,0x00,0x03,0xeb,0x22,0x01,0x00,0x54,0x46,0x68,0x24,0x38,0x84,0x04,0x00,0x91,0x9f,0x00,0x03,0xeb,0x83,0xfc,0xff,0x54,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x81,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0x21,0x01,0x80,0xd2,0xf8,0xff,0xff,0x17,0x02,0x00,0x80,0xd2,0x03,0x00,0x80,0xd2,0x02,0x68,0x23,0x38,0x02,0x00,0x80,0xd2,0x43,0x00,0x80,0xd2,0x02,0x68,0x23,0x78,0x02,0x00,0x80,0xd2,0x83,0x00,0x80,0xd2,0x02,0x68,0x23,0x78,0x02,0x00,0x80,0xd2,0x03,0x01,0x80,0xd2,0x02,0x68,0x23,0xb8,0x3f,0xc0,0x21,0xeb,0x41,0x01,0x00,0x54,0x82,0x01,0x80,0xd2,0x01,0x68,0x22,0xb8,0x02,0x00,0x80,0xd2,0x03,0x02,0x80,0xd2,0x02,0x68,0x23,0xb8,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0xa1,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x25,0x00,0x80,0xd2,0x06,0x00,0x80,0xd2,0x05,0x68,0x26,0x38,0x65,0xfc,0x48,0xd3,0x85,0x03,0x00,0xb5,0x26,0x00,0x80,0xd2,0x03,0x68,0x26,0x38,0x3f,0xc0,0x21,0xeb,0x01,0x03,0x00,0x54,0x85,0x00,0x80,0xd2,0x01,0x68,0x25,0xb8,0x5f,0xc0,0x22,0xeb,0x81,0x02,0x00,0x54,0x05,0x01,0x80,0xd2,0x02,0x68,0x25,0xb8,0x05,0x00,0x80,0xd2,0x86,0x01,0x80,0xd2,0x05,0x68,0x26,0x78,0x05,0x00,0x80,0xd2,0xc6,0x01,0x80,0xd2,0x05,0x68,0x26,0x78,0x85,0xfc,0x60,0xd3,0x45,0x01,0x00,0xb5,0x06,0x02,0x80,0xd2,0x04,0x68,0x26,0xb8,0x05,0x00,0x80,0x92,0x86,0x02,0x80,0xd2,0x05,0x68,0x26,0xb8,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0xa1,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0xff,0xc3,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xfe,0x17,0x00,0xf9,0xe0,0x07,0x40,0xf9,0xe1,0x0b,0x40,0xf9,0x02,0x00,0x80,0x92,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xd2,0xff,0xff,0x97,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xfe,0x17,0x40,0xf9,0xff,0xc3,0x00,0x91,0x7f,0x00,0x00,0xf1,0x00,0x01,0x00,0x54,0x85,0x00,0x80,0xd2,0x06,0x68,0x65,0x78,0xc8,0x04,0x00,0x91,0x08,0x3d,0x40,0xd3,0x89,0x00,0x80,0xd2,0x08,0x68,0x29,0x78,0x07,0x00,0x00,0x14,0x45,0x00,0x80,0xd2,0x06,0x68,0x65,0x78,0xc8,0x04,0x00,0x91,0x08,0x3d,0x40,0xd3,0x49,0x00,0x80,0xd2,0x08,0x68,0x29,0x78,0xc0,0x03,0x5f,0xd6,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xfe,0x1b,0x00,0xf9,0xe0,0x07,0x40,0xf9,0xe1,0x0b,0x40,0xf9,0xe2,0x0f,0x40,0xf9,0xe3,0x13,0x40,0xf9,0xe4,0x17,0x40,0xf9,0xad,0xff,0xff,0x97,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xfe,0x1b,0x40,0xf9,0xff,0x03,0x01,0x91,0x9f,0x00,0x00,0xf1,0x00,0x01,0x00,0x54,0xc6,0x01,0x80,0xd2,0x08,0x68,0x66,0x78,0x09,0x05,0x00,0x91,0x29,0x3d,0x40,0xd3,0xca,0x01,0x80,0xd2,0x09,0x68,0x2a,0x78,0x07,0x00,0x00,0x14,0x86,0x01,0x80,0xd2,0x08,0x68,0x66,0x78,0x09,0x05,0x00,0x91,0x29,0x3d,0x40,0xd3,0x8a,0x01,0x80,0xd2,0x09,0x68,0x2a,0x78,0xc0,0x03,0x5f,0xd6,0x02,0x00,0x80,0xd2,0x03,0x00,0x80,0xd2,0x22,0x68,0x23,0x38,0x22,0x00,0x80,0xd2,0x23,0x68,0x62,0x38,0x7f,0x00,0x00,0xf1,0x00,0x01,0x00,0x54,0x82,0x00,0x80,0xd2,0x03,0x68,0x62,0x78,0x64,0x04,0x00,0xd1,0x84,0x3c,0x40,0xd3,0x85,0x00,0x80,0xd2,0x04,0x68,0x25,0x78,0x07,0x00,0x00,0x14,0x42,0x00,0x80,0xd2,0x03,0x68,0x62,0x78,0x64,0x04,0x00,0xd1,0x84,0x3c,0x40,0xd3,0x45,0x00,0x80,0xd2,0x04,0x68,0x25,0x78,0xc0,0x03,0x5f,0xd6,0x02,0x00,0x80,0xd2,0x03,0x00,0x80,0xd2,0x22,0x68,0x23,0x38,0x22,0x00,0x80,0xd2,0x23,0x68,0x62,0x38,0x7f,0x00,0x00,0xf1,0x00,0x01,0x00,0x54,0xc2,0x01,0x80,0xd2,0x03,0x68,0x62,0x78,0x64,0x04,0x00,0xd1,0x84,0x3c,0x40,0xd3,0xc5,0x01,0x80,0xd2,0x04,0x68,0x25,0x78,0x07,0x00,0x00,0x14,0x82,0x01,0x80,0xd2,0x03,0x68,0x62,0x78,0x64,0x04,0x00,0xd1,0x84,0x3c,0x40,0xd3,0x85,0x01,0x80,0xd2,0x04,0x68,0x25,0x78,0xc0,0x03,0x5f,0xd6,0x86,0x02,0x80,0xd2,0xa8,0x7c,0x06,0x9b,0x3f,0x00,0x08,0xeb,0xc1,0x0b,0x00,0x54,0x7f,0x00,0x01,0xeb,0x81,0x0b,0x00,0x54,0x06,0x00,0x80,0xd2,0x08,0x00,0x80,0xd2,0x09,0x00,0x80,0xd2,0x1f,0x01,0x05,0xeb,0x82,0x09,0x00,0x54,0x0a,0x48,0x88,0xd2,0xea,0x01,0xa0,0xf2,0x3f,0x01,0x0a,0xeb,0xe2,0x09,0x00,0x54,0x29,0x05,0x00,0x91,0x8b,0x02,0x80,0xd2,0x0a,0x7d,0x0b,0x9b,0x5f,0x01,0x01,0xeb,0x02,0x09,0x00,0x54,0x0b,0x68,0x6a,0x38,0x5f,0x01,0x03,0xeb,0xa2,0x08,0x00,0x54,0x4c,0x68,0x6a,0x38,0x7f,0x01,0x0c,0xeb,0x40,0x07,0x00,0x54,0xff,0xc3,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xe8,0x1f,0x00,0xf9,0xe9,0x23,0x00,0xf9,0xea,0x27,0x00,0xf9,0xeb,0x2b,0x00,0xf9,0xec,0x2f,0x00,0xf9,0xfe,0x33,0x00,0xf9,0xe0,0x2b,0x40,0xf9,0xe1,0x2f,0x40,0xf9,0xc6,0xfe,0xff,0x97,0xed,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xe8,0x1f,0x40,0xf9,0xe9,0x23,0x40,0xf9,0xea,0x27,0x40,0xf9,0xeb,0x2b,0x40,0xf9,0xec,0x2f,0x40,0xf9,0xfe,0x33,0x40,0xf9,0xff,0xc3,0x01,0x91,0xed,0x01,0x00,0xb4,0x0d,0x00,0x80,0xd2,0xbf,0x11,0x00,0xf1,0x82,0x01,0x00,0x54,0x4f,0x21,0x00,0x91,0xee,0x01,0x0d,0x8b,0xdf,0x01,0x01,0xeb,0x42,0x03,0x00,0x54,0x0f,0x68,0x6e,0x38,0xdf,0x01,0x03,0xeb,0xe2,0x02,0x00,0x54,0x4f,0x68,0x2e,0x38,0xad,0x05,0x00,0x91,0xbf,0x11,0x00,0xf1,0xc3,0xfe,0xff,0x54,0x6d,0x00,0x80,0xd2,0x5f,0x01,0x03,0xeb,0x02,0x02,0x00,0x54,0x4d,0x68,0x2a,0x38,0x0d,0xfd,0x5f,0xd3,0x2d,0x02,0x00,0xb5,0xdf,0x00,0x05,0xeb,0x62,0x01,0x00,0x54,0x88,0x78,0x26,0xb8,0xc6,0x04,0x00,0x91,0x08,0x05,0x00,0x91,0x1f,0x01,0x05,0xeb,0xc3,0xf6,0xff,0x54,0xe0,0x03,0x06,0xaa,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x81,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0xa1,0x00,0x80,0xd2,0xf8,0xff,0xff,0x17,0x21,0x01,0x80,0xd2,0xf6,0xff,0xff,0x17\n.previous\n"); 2617 +static const char ombr2_ident_osc_ownership[] = "omega-ident 1 unit=osc_ownership abi=2 profile=OM-2 src=`b89c54bb7edd8e242def52f184a2df63754b02bf921b39839344f1d5d7f6fdec` omc=`b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2`"; 1976 2618 __attribute__((visibility("default"))) const char *omega2_ident_osc_ownership(void) 1977 2619 { 1978 2620 return ombr2_ident_osc_ownership; @@ -2055,15 +2697,226 @@ __attribute__((visibility("default"))) uint32_t omega2_osc_join_owner(uint64_t * 2055 2697 a[0] = (uint64_t)(uintptr_t)o_taken; 2056 2698 if (ombr2_fixed(sp, &ns, o_remaining, 20u, 1u, 1)) 2057 2699 return OMEGA_BAD_ARG; 2058 - a[1] = (uint64_t)(uintptr_t)o_remaining; 2700 + a[1] = (uint64_t)(uintptr_t)o_remaining; 2701 + if (ombr2_overlap(sp, ns)) 2702 + return OMEGA_BAD_ARG; 2703 + return ombr2_run(ombr2_entry_osc_join_owner, a, result, 1, ou, no); 2704 +} 2705 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_join_handle\n.hidden ombr2_entry_osc_join_handle\nombr2_entry_osc_join_handle:\nhint #34\nb ombr2_code_osc_ownership+16\n.previous\n"); 2706 +extern const unsigned char ombr2_entry_osc_join_handle[] __attribute__((visibility("hidden"))); 2707 +/* export fn osc_join_handle before long current long other long to long */ 2708 +__attribute__((visibility("default"))) uint32_t omega2_osc_join_handle(uint64_t *result, uint64_t o_before, uint64_t o_current, uint64_t o_other) 2709 +{ 2710 + ombr_span sp[7]; 2711 + unsigned ns = 0; 2712 + uint64_t a[6] = {0}; 2713 + ombr2_out ou[6] = {{0, 0, 0}}; 2714 + unsigned no = 0; 2715 + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2716 + return OMEGA_BAD_ARG; 2717 + a[0] = o_before; 2718 + a[1] = o_current; 2719 + a[2] = o_other; 2720 + if (ombr2_overlap(sp, ns)) 2721 + return OMEGA_BAD_ARG; 2722 + return ombr2_run(ombr2_entry_osc_join_handle, a, result, 1, ou, no); 2723 +} 2724 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_join_frees\n.hidden ombr2_entry_osc_join_frees\nombr2_entry_osc_join_frees:\nhint #34\nb ombr2_code_osc_ownership+20\n.previous\n"); 2725 +extern const unsigned char ombr2_entry_osc_join_frees[] __attribute__((visibility("hidden"))); 2726 +/* export fn osc_join_frees taken view uchar * remaining edit uchar * to void */ 2727 +__attribute__((visibility("default"))) uint32_t omega2_osc_join_frees(uint64_t *result, const uint8_t *o_taken, uint64_t o_taken_len, uint8_t *o_remaining, uint64_t o_remaining_len) 2728 +{ 2729 + ombr_span sp[7]; 2730 + unsigned ns = 0; 2731 + uint64_t a[6] = {0}; 2732 + ombr2_out ou[6] = {{0, 0, 0}}; 2733 + unsigned no = 0; 2734 + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2735 + return OMEGA_BAD_ARG; 2736 + if (ombr2_view(sp, &ns, o_taken, o_taken_len, 1u, 0)) 2737 + return OMEGA_BAD_ARG; 2738 + a[0] = (uint64_t)(uintptr_t)o_taken; 2739 + a[1] = o_taken_len; 2740 + if (ombr2_view(sp, &ns, o_remaining, o_remaining_len, 1u, 1)) 2741 + return OMEGA_BAD_ARG; 2742 + a[2] = (uint64_t)(uintptr_t)o_remaining; 2743 + a[3] = o_remaining_len; 2744 + if (ombr2_overlap(sp, ns)) 2745 + return OMEGA_BAD_ARG; 2746 + return ombr2_run(ombr2_entry_osc_join_frees, a, result, 0, ou, no); 2747 +} 2748 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_init_owner\n.hidden ombr2_entry_osc_init_owner\nombr2_entry_osc_init_owner:\nhint #34\nb ombr2_code_osc_ownership+24\n.previous\n"); 2749 +extern const unsigned char ombr2_entry_osc_init_owner[] __attribute__((visibility("hidden"))); 2750 +/* export fn osc_init_owner item edit oscowner symbol long to void */ 2751 +__attribute__((visibility("default"))) uint32_t omega2_osc_init_owner(uint64_t *result, uint8_t *o_item, uint64_t o_symbol) 2752 +{ 2753 + ombr_span sp[7]; 2754 + unsigned ns = 0; 2755 + uint64_t a[6] = {0}; 2756 + ombr2_out ou[6] = {{0, 0, 0}}; 2757 + unsigned no = 0; 2758 + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2759 + return OMEGA_BAD_ARG; 2760 + if (ombr2_fixed(sp, &ns, o_item, 20u, 1u, 1)) 2761 + return OMEGA_BAD_ARG; 2762 + a[0] = (uint64_t)(uintptr_t)o_item; 2763 + a[1] = o_symbol; 2764 + if (ombr2_overlap(sp, ns)) 2765 + return OMEGA_BAD_ARG; 2766 + return ombr2_run(ombr2_entry_osc_init_owner, a, result, 0, ou, no); 2767 +} 2768 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_open_borrow\n.hidden ombr2_entry_osc_open_borrow\nombr2_entry_osc_open_borrow:\nhint #34\nb ombr2_code_osc_ownership+28\n.previous\n"); 2769 +extern const unsigned char ombr2_entry_osc_open_borrow[] __attribute__((visibility("hidden"))); 2770 +/* export fn osc_open_borrow owner edit oscowner child edit oscbor object long mutable ulong source_line ulong to void */ 2771 +__attribute__((visibility("default"))) uint32_t omega2_osc_open_borrow(uint64_t *result, uint8_t *o_owner, uint8_t *o_child, uint64_t o_object, uint64_t o_mutable, uint64_t o_source_line) 2772 +{ 2773 + ombr_span sp[7]; 2774 + unsigned ns = 0; 2775 + uint64_t a[6] = {0}; 2776 + ombr2_out ou[6] = {{0, 0, 0}}; 2777 + unsigned no = 0; 2778 + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2779 + return OMEGA_BAD_ARG; 2780 + if (ombr2_fixed(sp, &ns, o_owner, 20u, 1u, 1)) 2781 + return OMEGA_BAD_ARG; 2782 + a[0] = (uint64_t)(uintptr_t)o_owner; 2783 + if (ombr2_fixed(sp, &ns, o_child, 24u, 1u, 1)) 2784 + return OMEGA_BAD_ARG; 2785 + a[1] = (uint64_t)(uintptr_t)o_child; 2786 + a[2] = o_object; 2787 + a[3] = o_mutable; 2788 + a[4] = o_source_line; 2789 + if (ombr2_overlap(sp, ns)) 2790 + return OMEGA_BAD_ARG; 2791 + return ombr2_run(ombr2_entry_osc_open_borrow, a, result, 0, ou, no); 2792 +} 2793 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_open_reborrow\n.hidden ombr2_entry_osc_open_reborrow\nombr2_entry_osc_open_reborrow:\nhint #34\nb ombr2_code_osc_ownership+32\n.previous\n"); 2794 +extern const unsigned char ombr2_entry_osc_open_reborrow[] __attribute__((visibility("hidden"))); 2795 +/* export fn osc_open_reborrow parent edit oscbor child edit oscbor object long parent_id long mutable ulong source_line ulong to void */ 2796 +__attribute__((visibility("default"))) uint32_t omega2_osc_open_reborrow(uint64_t *result, uint8_t *o_parent, uint8_t *o_child, uint64_t o_object, uint64_t o_parent_id, uint64_t o_mutable, uint64_t o_source_line) 2797 +{ 2798 + ombr_span sp[7]; 2799 + unsigned ns = 0; 2800 + uint64_t a[6] = {0}; 2801 + ombr2_out ou[6] = {{0, 0, 0}}; 2802 + unsigned no = 0; 2803 + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2804 + return OMEGA_BAD_ARG; 2805 + if (ombr2_fixed(sp, &ns, o_parent, 24u, 1u, 1)) 2806 + return OMEGA_BAD_ARG; 2807 + a[0] = (uint64_t)(uintptr_t)o_parent; 2808 + if (ombr2_fixed(sp, &ns, o_child, 24u, 1u, 1)) 2809 + return OMEGA_BAD_ARG; 2810 + a[1] = (uint64_t)(uintptr_t)o_child; 2811 + a[2] = o_object; 2812 + a[3] = o_parent_id; 2813 + a[4] = o_mutable; 2814 + a[5] = o_source_line; 2815 + if (ombr2_overlap(sp, ns)) 2816 + return OMEGA_BAD_ARG; 2817 + return ombr2_run(ombr2_entry_osc_open_reborrow, a, result, 0, ou, no); 2818 +} 2819 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_close_borrow\n.hidden ombr2_entry_osc_close_borrow\nombr2_entry_osc_close_borrow:\nhint #34\nb ombr2_code_osc_ownership+36\n.previous\n"); 2820 +extern const unsigned char ombr2_entry_osc_close_borrow[] __attribute__((visibility("hidden"))); 2821 +/* export fn osc_close_borrow owner edit oscowner child edit oscbor to void */ 2822 +__attribute__((visibility("default"))) uint32_t omega2_osc_close_borrow(uint64_t *result, uint8_t *o_owner, uint8_t *o_child) 2823 +{ 2824 + ombr_span sp[7]; 2825 + unsigned ns = 0; 2826 + uint64_t a[6] = {0}; 2827 + ombr2_out ou[6] = {{0, 0, 0}}; 2828 + unsigned no = 0; 2829 + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2830 + return OMEGA_BAD_ARG; 2831 + if (ombr2_fixed(sp, &ns, o_owner, 20u, 1u, 1)) 2832 + return OMEGA_BAD_ARG; 2833 + a[0] = (uint64_t)(uintptr_t)o_owner; 2834 + if (ombr2_fixed(sp, &ns, o_child, 24u, 1u, 1)) 2835 + return OMEGA_BAD_ARG; 2836 + a[1] = (uint64_t)(uintptr_t)o_child; 2837 + if (ombr2_overlap(sp, ns)) 2838 + return OMEGA_BAD_ARG; 2839 + return ombr2_run(ombr2_entry_osc_close_borrow, a, result, 0, ou, no); 2840 +} 2841 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_close_reborrow\n.hidden ombr2_entry_osc_close_reborrow\nombr2_entry_osc_close_reborrow:\nhint #34\nb ombr2_code_osc_ownership+40\n.previous\n"); 2842 +extern const unsigned char ombr2_entry_osc_close_reborrow[] __attribute__((visibility("hidden"))); 2843 +/* export fn osc_close_reborrow parent edit oscbor child edit oscbor to void */ 2844 +__attribute__((visibility("default"))) uint32_t omega2_osc_close_reborrow(uint64_t *result, uint8_t *o_parent, uint8_t *o_child) 2845 +{ 2846 + ombr_span sp[7]; 2847 + unsigned ns = 0; 2848 + uint64_t a[6] = {0}; 2849 + ombr2_out ou[6] = {{0, 0, 0}}; 2850 + unsigned no = 0; 2851 + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2852 + return OMEGA_BAD_ARG; 2853 + if (ombr2_fixed(sp, &ns, o_parent, 24u, 1u, 1)) 2854 + return OMEGA_BAD_ARG; 2855 + a[0] = (uint64_t)(uintptr_t)o_parent; 2856 + if (ombr2_fixed(sp, &ns, o_child, 24u, 1u, 1)) 2857 + return OMEGA_BAD_ARG; 2858 + a[1] = (uint64_t)(uintptr_t)o_child; 2859 + if (ombr2_overlap(sp, ns)) 2860 + return OMEGA_BAD_ARG; 2861 + return ombr2_run(ombr2_entry_osc_close_reborrow, a, result, 0, ou, no); 2862 +} 2863 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_join_owners\n.hidden ombr2_entry_osc_join_owners\nombr2_entry_osc_join_owners:\nhint #34\nb ombr2_code_osc_ownership+44\n.previous\n"); 2864 +extern const unsigned char ombr2_entry_osc_join_owners[] __attribute__((visibility("hidden"))); 2865 +/* export fn osc_join_owners taken view uchar * remaining edit uchar * changes edit int * to ulong */ 2866 +__attribute__((visibility("default"))) uint32_t omega2_osc_join_owners(uint64_t *result, const uint8_t *o_taken, uint64_t o_taken_len, uint8_t *o_remaining, uint64_t o_remaining_len, int32_t *o_changes, uint64_t o_changes_len) 2867 +{ 2868 + ombr_span sp[7]; 2869 + unsigned ns = 0; 2870 + uint64_t a[6] = {0}; 2871 + ombr2_out ou[6] = {{0, 0, 0}}; 2872 + unsigned no = 0; 2873 + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2874 + return OMEGA_BAD_ARG; 2875 + if (ombr2_view(sp, &ns, o_taken, o_taken_len, 1u, 0)) 2876 + return OMEGA_BAD_ARG; 2877 + a[0] = (uint64_t)(uintptr_t)o_taken; 2878 + a[1] = o_taken_len; 2879 + if (ombr2_view(sp, &ns, o_remaining, o_remaining_len, 1u, 1)) 2880 + return OMEGA_BAD_ARG; 2881 + a[2] = (uint64_t)(uintptr_t)o_remaining; 2882 + a[3] = o_remaining_len; 2883 + if (ombr2_view(sp, &ns, o_changes, o_changes_len, 4u, 1)) 2884 + return OMEGA_BAD_ARG; 2885 + a[4] = (uint64_t)(uintptr_t)o_changes; 2886 + a[5] = o_changes_len; 2887 + if (ombr2_overlap(sp, ns)) 2888 + return OMEGA_BAD_ARG; 2889 + return ombr2_run(ombr2_entry_osc_join_owners, a, result, 1, ou, no); 2890 +} 2891 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_code_osc_scope\n.hidden ombr2_code_osc_scope\nombr2_code_osc_scope:\n.byte 0x22,0x00,0x00,0x14,0x39,0x00,0x00,0x14,0x91,0x00,0x00,0x14,0xd7,0x00,0x00,0x14,0xf4,0x00,0x00,0x14,0xa2,0xa0,0x82,0xd2,0x03,0x00,0x80,0xd2,0x04,0x00,0x80,0xd2,0x7f,0x00,0x01,0xeb,0xe2,0x01,0x00,0x54,0x05,0x48,0x88,0xd2,0xe5,0x01,0xa0,0xf2,0x9f,0x00,0x05,0xeb,0x62,0x02,0x00,0x54,0x84,0x04,0x00,0x91,0x25,0x04,0x80,0xd2,0x46,0x7c,0x05,0x9b,0x7f,0x00,0x01,0xeb,0x82,0x01,0x00,0x54,0x08,0x68,0x63,0x38,0xc2,0x00,0x08,0xca,0x63,0x04,0x00,0x91,0x7f,0x00,0x01,0xeb,0x63,0xfe,0xff,0x54,0xe3,0x1f,0x80,0xd2,0x40,0x00,0x03,0x8a,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x81,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0x01,0x00,0x80,0xd2,0x3f,0x00,0x04,0xf1,0x42,0x01,0x00,0x54,0x02,0x00,0x80,0xd2,0x3f,0x00,0x04,0xf1,0x22,0x02,0x00,0x54,0x03,0x00,0x80,0xd2,0x63,0x04,0x01,0x8b,0x02,0x68,0x23,0x78,0x21,0x04,0x00,0x91,0x3f,0x00,0x04,0xf1,0x03,0xff,0xff,0x54,0x01,0x00,0x80,0xd2,0x02,0xca,0x81,0xd2,0x01,0x68,0x22,0xb8,0x01,0x00,0x80,0xd2,0x82,0xca,0x81,0xd2,0x01,0x68,0x22,0xb8,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0xff,0x03,0x01,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xe5,0x17,0x00,0xf9,0xe6,0x1b,0x00,0xf9,0xfe,0x1f,0x00,0xf9,0xe0,0x13,0x40,0xf9,0xe1,0x17,0x40,0xf9,0xc0,0xff,0xff,0x97,0xe8,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xe4,0x13,0x40,0xf9,0xe5,0x17,0x40,0xf9,0xe6,0x1b,0x40,0xf9,0xfe,0x1f,0x40,0xf9,0xff,0x03,0x01,0x91,0x1f,0x01,0x04,0xf1,0x82,0x07,0x00,0x54,0x09,0x00,0x80,0xd2,0x29,0x05,0x08,0x8b,0x0a,0x68,0x69,0x78,0xe6,0x03,0x0a,0xaa,0x08,0x00,0x80,0xd2,0xdf,0x00,0x00,0xf1,0x00,0x06,0x00,0x54,0x1f,0x81,0x07,0xf1,0xa2,0x06,0x00,0x54,0x08,0x05,0x00,0x91,0xc9,0x04,0x00,0xd1,0x2a,0x7d,0x03,0x9b,0x4b,0x01,0x05,0x8b,0x7f,0x01,0x02,0xeb,0xa2,0x05,0x00,0x54,0x2c,0x68,0x6b,0x38,0x9f,0x01,0x00,0xf1,0xc1,0x03,0x00,0x54,0x2b,0x00,0x80,0xd2,0x0c,0x00,0x80,0xd2,0x0d,0x00,0x80,0xd2,0x9f,0x01,0x05,0xeb,0x82,0x02,0x00,0x54,0x0e,0x48,0x88,0xd2,0xee,0x01,0xa0,0xf2,0xbf,0x01,0x0e,0xeb,0x62,0x04,0x00,0x54,0xad,0x05,0x00,0x91,0x4e,0x01,0x0c,0x8b,0xdf,0x01,0x02,0xeb,0xa2,0x03,0x00,0x54,0x2f,0x68,0x6e,0x38,0x9f,0x01,0x05,0xeb,0x42,0x03,0x00,0x54,0x91,0x68,0x6c,0x38,0xff,0x01,0x11,0xeb,0x60,0x00,0x00,0x54,0x0b,0x00,0x80,0xd2,0x8e,0x00,0x00,0x54,0x8c,0x05,0x00,0x91,0x9f,0x01,0x05,0xeb,0xc3,0xfd,0xff,0x54,0xab,0x00,0x00,0xb4,0x2c,0xfd,0x7f,0xd3,0x6c,0x02,0x00,0xb5,0xe0,0x03,0x09,0xaa,0xc0,0x03,0x5f,0xd6,0x3f,0x81,0x07,0xf1,0x62,0x01,0x00,0x54,0x0b,0x40,0x80,0xd2,0x6b,0x05,0x09,0x8b,0x0c,0x68,0x6b,0x78,0xe6,0x03,0x0c,0xaa,0xd0,0xff,0xff,0x17,0x00,0x00,0x80,0x92,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x81,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0xa1,0x00,0x80,0xd2,0xf8,0xff,0xff,0x17,0x3f,0x80,0x07,0xf1,0x82,0x08,0x00,0x54,0x7f,0xfc,0x00,0xf1,0x48,0x08,0x00,0x54,0xff,0xc3,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xe3,0x0f,0x00,0xf9,0xe4,0x13,0x00,0xf9,0xfe,0x17,0x00,0xf9,0xe0,0x0b,0x40,0xf9,0xe1,0x0f,0x40,0xf9,0x65,0xff,0xff,0x97,0xe4,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xe3,0x0f,0x40,0xf9,0xfe,0x17,0x40,0xf9,0xff,0xc3,0x00,0x91,0x9f,0x00,0x04,0xf1,0x62,0x05,0x00,0x54,0x05,0x00,0x80,0xd2,0xa5,0x04,0x04,0x8b,0x06,0x68,0x65,0x78,0x3f,0x80,0x07,0xf1,0xc2,0x04,0x00,0x54,0x08,0x40,0x80,0xd2,0x08,0x05,0x01,0x8b,0x06,0x68,0x28,0x78,0x85,0xfc,0x50,0xd3,0x65,0x04,0x00,0xb5,0x3f,0x80,0x07,0xf1,0xe2,0x03,0x00,0x54,0x06,0xb8,0x80,0xd2,0xc6,0x04,0x01,0x8b,0x04,0x68,0x26,0x78,0x25,0x04,0x00,0x91,0xa6,0xfc,0x50,0xd3,0x66,0x03,0x00,0xb5,0x9f,0x00,0x04,0xf1,0xe2,0x02,0x00,0x54,0x08,0x00,0x80,0xd2,0x08,0x05,0x04,0x8b,0x05,0x68,0x28,0x78,0x06,0xca,0x81,0xd2,0x08,0x68,0x66,0xb8,0xe5,0x03,0x08,0xaa,0x26,0xfc,0x50,0xd3,0x26,0x02,0x00,0xb5,0xbf,0x80,0x07,0xf1,0xa2,0x01,0x00,0x54,0x08,0x30,0x81,0xd2,0x08,0x05,0x05,0x8b,0x01,0x68,0x28,0x78,0xa6,0x04,0x00,0x91,0xc8,0xfc,0x60,0xd3,0x28,0x01,0x00,0xb5,0x09,0xca,0x81,0xd2,0x06,0x68,0x29,0xb8,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0xa1,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0x21,0x01,0x80,0xd2,0xf8,0xff,0xff,0x17,0x82,0xca,0x81,0xd2,0x03,0x68,0x62,0xb8,0xe1,0x03,0x03,0xaa,0x3f,0x20,0x02,0xf1,0x61,0x00,0x00,0x54,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x02,0xca,0x81,0xd2,0x03,0x68,0x62,0xb8,0x64,0xfc,0x50,0xd3,0x44,0x02,0x00,0xb5,0x3f,0x20,0x02,0xf1,0xc2,0x01,0x00,0x54,0x05,0xa8,0x81,0xd2,0xa5,0x04,0x01,0x8b,0x03,0x68,0x25,0x78,0x22,0x04,0x00,0x91,0x43,0xfc,0x60,0xd3,0x43,0x01,0x00,0xb5,0x84,0xca,0x81,0xd2,0x02,0x68,0x24,0xb8,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0xa1,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0x82,0xca,0x81,0xd2,0x03,0x68,0x62,0xb8,0x61,0x04,0x00,0xd1,0x3f,0x20,0x02,0xf1,0x22,0x06,0x00,0x54,0x03,0xa8,0x81,0xd2,0x63,0x04,0x01,0x8b,0x04,0x68,0x63,0x78,0xe2,0x03,0x04,0xaa,0x04,0xca,0x81,0xd2,0x05,0x68,0x64,0xb8,0xe3,0x03,0x05,0xaa,0x04,0x00,0x80,0xd2,0x7f,0x00,0x02,0xeb,0x69,0x03,0x00,0x54,0x9f,0x80,0x07,0xf1,0xe2,0x04,0x00,0x54,0x84,0x04,0x00,0x91,0x63,0x04,0x00,0xd1,0x7f,0x80,0x07,0xf1,0x22,0x04,0x00,0x54,0x06,0x30,0x81,0xd2,0xc6,0x04,0x03,0x8b,0x08,0x68,0x66,0x78,0xe5,0x03,0x08,0xaa,0xbf,0x80,0x07,0xf1,0x62,0x03,0x00,0x54,0x06,0xb8,0x80,0xd2,0xc6,0x04,0x05,0x8b,0x08,0x68,0x66,0x78,0xbf,0x80,0x07,0xf1,0xc2,0x02,0x00,0x54,0x09,0x40,0x80,0xd2,0x29,0x05,0x05,0x8b,0x0a,0x68,0x69,0x78,0x1f,0x01,0x04,0xf1,0x22,0x02,0x00,0x54,0x0b,0x00,0x80,0xd2,0x6b,0x05,0x08,0x8b,0x0a,0x68,0x2b,0x78,0xe5,0xff,0xff,0x17,0x24,0xfc,0x60,0xd3,0xe4,0x01,0x00,0xb5,0x85,0xca,0x81,0xd2,0x01,0x68,0x25,0xb8,0x44,0xfc,0x60,0xd3,0x64,0x01,0x00,0xb5,0x05,0xca,0x81,0xd2,0x02,0x68,0x25,0xb8,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0x61,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x81,0x00,0x80,0xd2,0xfa,0xff,0xff,0x17,0xa1,0x00,0x80,0xd2,0xf8,0xff,0xff,0x17\n.previous\n"); 2892 +static const char ombr2_ident_osc_scope[] = "omega-ident 1 unit=osc_scope abi=2 profile=OM-2 src=`04d9c3dead3cabf5dbfa96da36fe4c58c64aa20ea36494bbfa92d1d0d3a17c4e` omc=`b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2`"; 2893 +__attribute__((visibility("default"))) const char *omega2_ident_osc_scope(void) 2894 +{ 2895 + return ombr2_ident_osc_scope; 2896 +} 2897 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_scope_reset\n.hidden ombr2_entry_osc_scope_reset\nombr2_entry_osc_scope_reset:\nhint #34\nb ombr2_code_osc_scope+0\n.previous\n"); 2898 +extern const unsigned char ombr2_entry_osc_scope_reset[] __attribute__((visibility("hidden"))); 2899 +/* export fn osc_scope_reset table edit scopetab to void */ 2900 +__attribute__((visibility("default"))) uint32_t omega2_osc_scope_reset(uint64_t *result, uint8_t *o_table) 2901 +{ 2902 + ombr_span sp[7]; 2903 + unsigned ns = 0; 2904 + uint64_t a[6] = {0}; 2905 + ombr2_out ou[6] = {{0, 0, 0}}; 2906 + unsigned no = 0; 2907 + if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2908 + return OMEGA_BAD_ARG; 2909 + if (ombr2_fixed(sp, &ns, o_table, 3672u, 1u, 1)) 2910 + return OMEGA_BAD_ARG; 2911 + a[0] = (uint64_t)(uintptr_t)o_table; 2059 2912 if (ombr2_overlap(sp, ns)) 2060 2913 return OMEGA_BAD_ARG; 2061 - return ombr2_run(ombr2_entry_osc_join_owner, a, result, 1, ou, no); 2914 + return ombr2_run(ombr2_entry_osc_scope_reset, a, result, 0, ou, no); 2062 2915 } 2063 -__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_join_handle\n.hidden ombr2_entry_osc_join_handle\nombr2_entry_osc_join_handle:\nhint #34\nb ombr2_code_osc_ownership+16\n.previous\n"); 2064 -extern const unsigned char ombr2_entry_osc_join_handle[] __attribute__((visibility("hidden"))); 2065 -/* export fn osc_join_handle before long current long other long to long */ 2066 -__attribute__((visibility("default"))) uint32_t omega2_osc_join_handle(uint64_t *result, uint64_t o_before, uint64_t o_current, uint64_t o_other) 2916 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_scope_find\n.hidden ombr2_entry_osc_scope_find\nombr2_entry_osc_scope_find:\nhint #34\nb ombr2_code_osc_scope+4\n.previous\n"); 2917 +extern const unsigned char ombr2_entry_osc_scope_find[] __attribute__((visibility("hidden"))); 2918 +/* export fn osc_scope_find table view scopetab symbols view uchar * stride ulong name view uchar * to long */ 2919 +__attribute__((visibility("default"))) uint32_t omega2_osc_scope_find(uint64_t *result, const uint8_t *o_table, const uint8_t *o_symbols, uint64_t o_symbols_len, uint64_t o_stride, const uint8_t *o_name, uint64_t o_name_len) 2067 2920 { 2068 2921 ombr_span sp[7]; 2069 2922 unsigned ns = 0; @@ -2072,17 +2925,26 @@ __attribute__((visibility("default"))) uint32_t omega2_osc_join_handle(uint64_t 2072 2925 unsigned no = 0; 2073 2926 if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2074 2927 return OMEGA_BAD_ARG; 2075 - a[0] = o_before; 2076 - a[1] = o_current; 2077 - a[2] = o_other; 2928 + if (ombr2_fixed(sp, &ns, o_table, 3672u, 1u, 0)) 2929 + return OMEGA_BAD_ARG; 2930 + a[0] = (uint64_t)(uintptr_t)o_table; 2931 + if (ombr2_view(sp, &ns, o_symbols, o_symbols_len, 1u, 0)) 2932 + return OMEGA_BAD_ARG; 2933 + a[1] = (uint64_t)(uintptr_t)o_symbols; 2934 + a[2] = o_symbols_len; 2935 + a[3] = o_stride; 2936 + if (ombr2_view(sp, &ns, o_name, o_name_len, 1u, 0)) 2937 + return OMEGA_BAD_ARG; 2938 + a[4] = (uint64_t)(uintptr_t)o_name; 2939 + a[5] = o_name_len; 2078 2940 if (ombr2_overlap(sp, ns)) 2079 2941 return OMEGA_BAD_ARG; 2080 - return ombr2_run(ombr2_entry_osc_join_handle, a, result, 1, ou, no); 2942 + return ombr2_run(ombr2_entry_osc_scope_find, a, result, 1, ou, no); 2081 2943 } 2082 -__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_join_frees\n.hidden ombr2_entry_osc_join_frees\nombr2_entry_osc_join_frees:\nhint #34\nb ombr2_code_osc_ownership+20\n.previous\n"); 2083 -extern const unsigned char ombr2_entry_osc_join_frees[] __attribute__((visibility("hidden"))); 2084 -/* export fn osc_join_frees taken view uchar * remaining edit uchar * to void */ 2085 -__attribute__((visibility("default"))) uint32_t omega2_osc_join_frees(uint64_t *result, const uint8_t *o_taken, uint64_t o_taken_len, uint8_t *o_remaining, uint64_t o_remaining_len) 2944 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_scope_bind\n.hidden ombr2_entry_osc_scope_bind\nombr2_entry_osc_scope_bind:\nhint #34\nb ombr2_code_osc_scope+8\n.previous\n"); 2945 +extern const unsigned char ombr2_entry_osc_scope_bind[] __attribute__((visibility("hidden"))); 2946 +/* export fn osc_scope_bind table edit scopetab id ulong name view uchar * to void */ 2947 +__attribute__((visibility("default"))) uint32_t omega2_osc_scope_bind(uint64_t *result, uint8_t *o_table, uint64_t o_id, const uint8_t *o_name, uint64_t o_name_len) 2086 2948 { 2087 2949 ombr_span sp[7]; 2088 2950 unsigned ns = 0; @@ -2091,22 +2953,22 @@ __attribute__((visibility("default"))) uint32_t omega2_osc_join_frees(uint64_t * 2091 2953 unsigned no = 0; 2092 2954 if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2093 2955 return OMEGA_BAD_ARG; 2094 - if (ombr2_view(sp, &ns, o_taken, o_taken_len, 1u, 0)) 2956 + if (ombr2_fixed(sp, &ns, o_table, 3672u, 1u, 1)) 2095 2957 return OMEGA_BAD_ARG; 2096 - a[0] = (uint64_t)(uintptr_t)o_taken; 2097 - a[1] = o_taken_len; 2098 - if (ombr2_view(sp, &ns, o_remaining, o_remaining_len, 1u, 1)) 2958 + a[0] = (uint64_t)(uintptr_t)o_table; 2959 + a[1] = o_id; 2960 + if (ombr2_view(sp, &ns, o_name, o_name_len, 1u, 0)) 2099 2961 return OMEGA_BAD_ARG; 2100 - a[2] = (uint64_t)(uintptr_t)o_remaining; 2101 - a[3] = o_remaining_len; 2962 + a[2] = (uint64_t)(uintptr_t)o_name; 2963 + a[3] = o_name_len; 2102 2964 if (ombr2_overlap(sp, ns)) 2103 2965 return OMEGA_BAD_ARG; 2104 - return ombr2_run(ombr2_entry_osc_join_frees, a, result, 0, ou, no); 2966 + return ombr2_run(ombr2_entry_osc_scope_bind, a, result, 0, ou, no); 2105 2967 } 2106 -__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_init_owner\n.hidden ombr2_entry_osc_init_owner\nombr2_entry_osc_init_owner:\nhint #34\nb ombr2_code_osc_ownership+24\n.previous\n"); 2107 -extern const unsigned char ombr2_entry_osc_init_owner[] __attribute__((visibility("hidden"))); 2108 -/* export fn osc_init_owner item edit oscowner symbol long to void */ 2109 -__attribute__((visibility("default"))) uint32_t omega2_osc_init_owner(uint64_t *result, uint8_t *o_item, uint64_t o_symbol) 2968 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_scope_push\n.hidden ombr2_entry_osc_scope_push\nombr2_entry_osc_scope_push:\nhint #34\nb ombr2_code_osc_scope+12\n.previous\n"); 2969 +extern const unsigned char ombr2_entry_osc_scope_push[] __attribute__((visibility("hidden"))); 2970 +/* export fn osc_scope_push table edit scopetab to ulong */ 2971 +__attribute__((visibility("default"))) uint32_t omega2_osc_scope_push(uint64_t *result, uint8_t *o_table) 2110 2972 { 2111 2973 ombr_span sp[7]; 2112 2974 unsigned ns = 0; @@ -2115,18 +2977,17 @@ __attribute__((visibility("default"))) uint32_t omega2_osc_init_owner(uint64_t * 2115 2977 unsigned no = 0; 2116 2978 if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2117 2979 return OMEGA_BAD_ARG; 2118 - if (ombr2_fixed(sp, &ns, o_item, 20u, 1u, 1)) 2980 + if (ombr2_fixed(sp, &ns, o_table, 3672u, 1u, 1)) 2119 2981 return OMEGA_BAD_ARG; 2120 - a[0] = (uint64_t)(uintptr_t)o_item; 2121 - a[1] = o_symbol; 2982 + a[0] = (uint64_t)(uintptr_t)o_table; 2122 2983 if (ombr2_overlap(sp, ns)) 2123 2984 return OMEGA_BAD_ARG; 2124 - return ombr2_run(ombr2_entry_osc_init_owner, a, result, 0, ou, no); 2985 + return ombr2_run(ombr2_entry_osc_scope_push, a, result, 1, ou, no); 2125 2986 } 2126 -__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_open_borrow\n.hidden ombr2_entry_osc_open_borrow\nombr2_entry_osc_open_borrow:\nhint #34\nb ombr2_code_osc_ownership+28\n.previous\n"); 2127 -extern const unsigned char ombr2_entry_osc_open_borrow[] __attribute__((visibility("hidden"))); 2128 -/* export fn osc_open_borrow owner edit oscowner child edit oscbor object long mutable ulong source_line ulong to void */ 2129 -__attribute__((visibility("default"))) uint32_t omega2_osc_open_borrow(uint64_t *result, uint8_t *o_owner, uint8_t *o_child, uint64_t o_object, uint64_t o_mutable, uint64_t o_source_line) 2987 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_scope_pop\n.hidden ombr2_entry_osc_scope_pop\nombr2_entry_osc_scope_pop:\nhint #34\nb ombr2_code_osc_scope+16\n.previous\n"); 2988 +extern const unsigned char ombr2_entry_osc_scope_pop[] __attribute__((visibility("hidden"))); 2989 +/* export fn osc_scope_pop table edit scopetab to void */ 2990 +__attribute__((visibility("default"))) uint32_t omega2_osc_scope_pop(uint64_t *result, uint8_t *o_table) 2130 2991 { 2131 2992 ombr_span sp[7]; 2132 2993 unsigned ns = 0; @@ -2135,23 +2996,23 @@ __attribute__((visibility("default"))) uint32_t omega2_osc_open_borrow(uint64_t 2135 2996 unsigned no = 0; 2136 2997 if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2137 2998 return OMEGA_BAD_ARG; 2138 - if (ombr2_fixed(sp, &ns, o_owner, 20u, 1u, 1)) 2139 - return OMEGA_BAD_ARG; 2140 - a[0] = (uint64_t)(uintptr_t)o_owner; 2141 - if (ombr2_fixed(sp, &ns, o_child, 24u, 1u, 1)) 2999 + if (ombr2_fixed(sp, &ns, o_table, 3672u, 1u, 1)) 2142 3000 return OMEGA_BAD_ARG; 2143 - a[1] = (uint64_t)(uintptr_t)o_child; 2144 - a[2] = o_object; 2145 - a[3] = o_mutable; 2146 - a[4] = o_source_line; 3001 + a[0] = (uint64_t)(uintptr_t)o_table; 2147 3002 if (ombr2_overlap(sp, ns)) 2148 3003 return OMEGA_BAD_ARG; 2149 - return ombr2_run(ombr2_entry_osc_open_borrow, a, result, 0, ou, no); 3004 + return ombr2_run(ombr2_entry_osc_scope_pop, a, result, 0, ou, no); 2150 3005 } 2151 -__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_open_reborrow\n.hidden ombr2_entry_osc_open_reborrow\nombr2_entry_osc_open_reborrow:\nhint #34\nb ombr2_code_osc_ownership+32\n.previous\n"); 2152 -extern const unsigned char ombr2_entry_osc_open_reborrow[] __attribute__((visibility("hidden"))); 2153 -/* export fn osc_open_reborrow parent edit oscbor child edit oscbor object long parent_id long mutable ulong source_line ulong to void */ 2154 -__attribute__((visibility("default"))) uint32_t omega2_osc_open_reborrow(uint64_t *result, uint8_t *o_parent, uint8_t *o_child, uint64_t o_object, uint64_t o_parent_id, uint64_t o_mutable, uint64_t o_source_line) 3006 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_code_osc_pool\n.hidden ombr2_code_osc_pool\nombr2_code_osc_pool:\n.byte 0x03,0x00,0x00,0x14,0x2b,0x00,0x00,0x14,0x71,0x00,0x00,0x14,0x05,0x00,0x80,0xd2,0x02,0x68,0x25,0xf8,0x05,0x00,0x80,0xd2,0x06,0x01,0x80,0xd2,0x05,0x68,0x26,0xf8,0x7f,0xc0,0x23,0xeb,0xa1,0x02,0x00,0x54,0x05,0x02,0x80,0xd2,0x03,0x68,0x25,0xb8,0x9f,0xc0,0x24,0xeb,0x21,0x02,0x00,0x54,0x85,0x02,0x80,0xd2,0x04,0x68,0x25,0xb8,0x25,0xfc,0x50,0xd3,0xa5,0x01,0x00,0xb5,0x06,0x03,0x80,0xd2,0x01,0x68,0x26,0x78,0x05,0x00,0x80,0xd2,0x46,0x03,0x80,0xd2,0x05,0x68,0x26,0x78,0x05,0x00,0x80,0xd2,0x86,0x03,0x80,0xd2,0x05,0x68,0x26,0x38,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0xa1,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0x03,0x02,0x80,0xd2,0x04,0x68,0x63,0xb8,0x84,0x7c,0x40,0x93,0x9f,0x00,0x01,0xeb,0xe5,0x17,0x9f,0x9a,0x86,0x02,0x80,0xd2,0x08,0x68,0x66,0xb8,0x08,0x7d,0x40,0x93,0x1f,0x01,0x02,0xeb,0xe9,0x17,0x9f,0x9a,0xa0,0x00,0x09,0x8a,0xc0,0x03,0x5f,0xd6,0xff,0x83,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xfe,0x0f,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xec,0xff,0xff,0x97,0xe3,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xfe,0x0f,0x40,0xf9,0xff,0x83,0x00,0x91,0x64,0x00,0x40,0xd2,0x64,0x00,0x00,0xb4,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x44,0x03,0x80,0xd2,0x05,0x68,0x64,0x78,0xe3,0x03,0x05,0xaa,0x05,0x03,0x80,0xd2,0x06,0x68,0x65,0x78,0xe4,0x03,0x06,0xaa,0x85,0x03,0x80,0xd2,0x06,0x68,0x65,0x38,0xdf,0x00,0x00,0xf1,0xe8,0x17,0x9f,0x9a,0x7f,0x00,0x04,0xeb,0xe9,0x37,0x9f,0x9a,0x0a,0x01,0x09,0x8a,0x6a,0x00,0x00,0xb4,0x20,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x06,0x00,0x80,0xd2,0x08,0x68,0x66,0xf8,0x09,0x00,0x80,0x92,0x25,0x01,0x08,0xcb,0x08,0x01,0x80,0xd2,0x09,0x68,0x68,0xf8,0x26,0x05,0x00,0x91,0x28,0x00,0xc0,0xd2,0xbf,0x00,0x08,0xeb,0xe9,0x27,0x9f,0x9a,0xaa,0x04,0x00,0x91,0x8b,0x7c,0x0a,0x9b,0xdf,0x00,0x0b,0xeb,0xec,0x97,0x9f,0x9a,0x2d,0x01,0x0c,0x8a,0x6d,0x00,0x00,0xb4,0x40,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0x08,0x01,0x80,0xd2,0x06,0x68,0x28,0xf8,0x88,0x03,0x80,0xd2,0x09,0x68,0x68,0x38,0x3f,0x01,0x00,0xf1,0xc1,0x00,0x00,0x54,0x68,0x04,0x00,0x91,0x09,0xfd,0x50,0xd3,0x09,0x01,0x00,0xb5,0x4a,0x03,0x80,0xd2,0x08,0x68,0x2a,0x78,0x00,0x00,0x80,0xd2,0xc0,0x03,0x5f,0xd6,0xe0,0x03,0x07,0xaa,0xf0,0x08,0x40,0xf9,0x00,0x02,0x1f,0xd6,0xa1,0x00,0x80,0xd2,0xfc,0xff,0xff,0x17,0xff,0x83,0x00,0xd1,0xe0,0x03,0x00,0xf9,0xe1,0x07,0x00,0xf9,0xe2,0x0b,0x00,0xf9,0xfe,0x0f,0x00,0xf9,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xa5,0xff,0xff,0x97,0xe3,0x03,0x00,0xaa,0xe0,0x03,0x40,0xf9,0xe1,0x07,0x40,0xf9,0xe2,0x0b,0x40,0xf9,0xfe,0x0f,0x40,0xf9,0xff,0x83,0x00,0x91,0x64,0x00,0x40,0xd2,0xa4,0x00,0x00,0xb4,0x23,0x00,0x80,0xd2,0x84,0x03,0x80,0xd2,0x03,0x68,0x24,0x38,0x09,0x00,0x00,0x14,0x44,0x03,0x80,0xd2,0x03,0x68,0x64,0x78,0x7f,0x00,0x00,0xf1,0xa0,0x00,0x00,0x54,0x64,0x04,0x00,0xd1,0x84,0x3c,0x40,0xd3,0x45,0x03,0x80,0xd2,0x04,0x68,0x25,0x78,0xc0,0x03,0x5f,0xd6\n.previous\n"); 3007 +static const char ombr2_ident_osc_pool[] = "omega-ident 1 unit=osc_pool abi=2 profile=OM-2 src=`739af9855c5a25c5c3322dade4200fec3d7ee380ddc97de7afa7875618888711` omc=`b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2`"; 3008 +__attribute__((visibility("default"))) const char *omega2_ident_osc_pool(void) 3009 +{ 3010 + return ombr2_ident_osc_pool; 3011 +} 3012 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_pool_init\n.hidden ombr2_entry_osc_pool_init\nombr2_entry_osc_pool_init:\nhint #34\nb ombr2_code_osc_pool+0\n.previous\n"); 3013 +extern const unsigned char ombr2_entry_osc_pool_init[] __attribute__((visibility("hidden"))); 3014 +/* export fn osc_pool_init p edit poolstat cap ulong base ulong loop_depth long cond_depth long to void */ 3015 +__attribute__((visibility("default"))) uint32_t omega2_osc_pool_init(uint64_t *result, uint8_t *o_p, uint64_t o_cap, uint64_t o_base, uint64_t o_loop_depth, uint64_t o_cond_depth) 2155 3016 { 2156 3017 ombr_span sp[7]; 2157 3018 unsigned ns = 0; @@ -2160,24 +3021,21 @@ __attribute__((visibility("default"))) uint32_t omega2_osc_open_reborrow(uint64_ 2160 3021 unsigned no = 0; 2161 3022 if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2162 3023 return OMEGA_BAD_ARG; 2163 - if (ombr2_fixed(sp, &ns, o_parent, 24u, 1u, 1)) 2164 - return OMEGA_BAD_ARG; 2165 - a[0] = (uint64_t)(uintptr_t)o_parent; 2166 - if (ombr2_fixed(sp, &ns, o_child, 24u, 1u, 1)) 3024 + if (ombr2_fixed(sp, &ns, o_p, 32u, 1u, 1)) 2167 3025 return OMEGA_BAD_ARG; 2168 - a[1] = (uint64_t)(uintptr_t)o_child; 2169 - a[2] = o_object; 2170 - a[3] = o_parent_id; 2171 - a[4] = o_mutable; 2172 - a[5] = o_source_line; 3026 + a[0] = (uint64_t)(uintptr_t)o_p; 3027 + a[1] = o_cap; 3028 + a[2] = o_base; 3029 + a[3] = o_loop_depth; 3030 + a[4] = o_cond_depth; 2173 3031 if (ombr2_overlap(sp, ns)) 2174 3032 return OMEGA_BAD_ARG; 2175 - return ombr2_run(ombr2_entry_osc_open_reborrow, a, result, 0, ou, no); 3033 + return ombr2_run(ombr2_entry_osc_pool_init, a, result, 0, ou, no); 2176 3034 } 2177 -__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_close_borrow\n.hidden ombr2_entry_osc_close_borrow\nombr2_entry_osc_close_borrow:\nhint #34\nb ombr2_code_osc_ownership+36\n.previous\n"); 2178 -extern const unsigned char ombr2_entry_osc_close_borrow[] __attribute__((visibility("hidden"))); 2179 -/* export fn osc_close_borrow owner edit oscowner child edit oscbor to void */ 2180 -__attribute__((visibility("default"))) uint32_t omega2_osc_close_borrow(uint64_t *result, uint8_t *o_owner, uint8_t *o_child) 3035 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_pool_alloc\n.hidden ombr2_entry_osc_pool_alloc\nombr2_entry_osc_pool_alloc:\nhint #34\nb ombr2_code_osc_pool+4\n.previous\n"); 3036 +extern const unsigned char ombr2_entry_osc_pool_alloc[] __attribute__((visibility("hidden"))); 3037 +/* export fn osc_pool_alloc p edit poolstat loop_depth long cond_depth long to ulong */ 3038 +__attribute__((visibility("default"))) uint32_t omega2_osc_pool_alloc(uint64_t *result, uint8_t *o_p, uint64_t o_loop_depth, uint64_t o_cond_depth) 2181 3039 { 2182 3040 ombr_span sp[7]; 2183 3041 unsigned ns = 0; @@ -2186,20 +3044,19 @@ __attribute__((visibility("default"))) uint32_t omega2_osc_close_borrow(uint64_t 2186 3044 unsigned no = 0; 2187 3045 if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2188 3046 return OMEGA_BAD_ARG; 2189 - if (ombr2_fixed(sp, &ns, o_owner, 20u, 1u, 1)) 2190 - return OMEGA_BAD_ARG; 2191 - a[0] = (uint64_t)(uintptr_t)o_owner; 2192 - if (ombr2_fixed(sp, &ns, o_child, 24u, 1u, 1)) 3047 + if (ombr2_fixed(sp, &ns, o_p, 32u, 1u, 1)) 2193 3048 return OMEGA_BAD_ARG; 2194 - a[1] = (uint64_t)(uintptr_t)o_child; 3049 + a[0] = (uint64_t)(uintptr_t)o_p; 3050 + a[1] = o_loop_depth; 3051 + a[2] = o_cond_depth; 2195 3052 if (ombr2_overlap(sp, ns)) 2196 3053 return OMEGA_BAD_ARG; 2197 - return ombr2_run(ombr2_entry_osc_close_borrow, a, result, 0, ou, no); 3054 + return ombr2_run(ombr2_entry_osc_pool_alloc, a, result, 1, ou, no); 2198 3055 } 2199 -__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_close_reborrow\n.hidden ombr2_entry_osc_close_reborrow\nombr2_entry_osc_close_reborrow:\nhint #34\nb ombr2_code_osc_ownership+40\n.previous\n"); 2200 -extern const unsigned char ombr2_entry_osc_close_reborrow[] __attribute__((visibility("hidden"))); 2201 -/* export fn osc_close_reborrow parent edit oscbor child edit oscbor to void */ 2202 -__attribute__((visibility("default"))) uint32_t omega2_osc_close_reborrow(uint64_t *result, uint8_t *o_parent, uint8_t *o_child) 3056 +__asm__(".section .text.omega_bridge,\"ax\",@progbits\n.balign 4\n.local ombr2_entry_osc_pool_free\n.hidden ombr2_entry_osc_pool_free\nombr2_entry_osc_pool_free:\nhint #34\nb ombr2_code_osc_pool+8\n.previous\n"); 3057 +extern const unsigned char ombr2_entry_osc_pool_free[] __attribute__((visibility("hidden"))); 3058 +/* export fn osc_pool_free p edit poolstat loop_depth long cond_depth long to void */ 3059 +__attribute__((visibility("default"))) uint32_t omega2_osc_pool_free(uint64_t *result, uint8_t *o_p, uint64_t o_loop_depth, uint64_t o_cond_depth) 2203 3060 { 2204 3061 ombr_span sp[7]; 2205 3062 unsigned ns = 0; @@ -2208,15 +3065,14 @@ __attribute__((visibility("default"))) uint32_t omega2_osc_close_reborrow(uint64 2208 3065 unsigned no = 0; 2209 3066 if (ombr_span_add(sp, &ns, result, 1u, 1u, 8u, 1)) 2210 3067 return OMEGA_BAD_ARG; 2211 - if (ombr2_fixed(sp, &ns, o_parent, 24u, 1u, 1)) 2212 - return OMEGA_BAD_ARG; 2213 - a[0] = (uint64_t)(uintptr_t)o_parent; 2214 - if (ombr2_fixed(sp, &ns, o_child, 24u, 1u, 1)) 3068 + if (ombr2_fixed(sp, &ns, o_p, 32u, 1u, 1)) 2215 3069 return OMEGA_BAD_ARG; 2216 - a[1] = (uint64_t)(uintptr_t)o_child; 3070 + a[0] = (uint64_t)(uintptr_t)o_p; 3071 + a[1] = o_loop_depth; 3072 + a[2] = o_cond_depth; 2217 3073 if (ombr2_overlap(sp, ns)) 2218 3074 return OMEGA_BAD_ARG; 2219 - return ombr2_run(ombr2_entry_osc_close_reborrow, a, result, 0, ou, no); 3075 + return ombr2_run(ombr2_entry_osc_pool_free, a, result, 0, ou, no); 2220 3076 } 2221 3077 /* Generated by omega-bridge src/native.om: the definitions of the C API declared in 2222 3078 * omega_api_decl.h (output apic). Each calls omega2_ and calls abort() on a nonzero status. @@ -2799,6 +3655,214 @@ uint64_t osc_parse_literal(const uint8_t *o_spelling, size_t o_spelling_len, uin 2799 3655 abort(); 2800 3656 return r; 2801 3657 } 3658 +/* export fn osc_lex_next src view uchar * cursor edit lexstate room ulong namemax ulong to ulong */ 3659 +uint64_t osc_lex_next(const uint8_t *o_src, size_t o_src_len, OscLexState *o_cursor, uint64_t o_room, uint64_t o_namemax) 3660 +{ 3661 + uint64_t r = 0; 3662 + if (omega2_osc_lex_next(&r, o_src, o_src_len, (uint8_t *)o_cursor, (uint64_t)o_room, (uint64_t)o_namemax) != OMEGA_OK) 3663 + abort(); 3664 + return r; 3665 +} 3666 +/* export fn osc_lex_stream src view uchar * cursor edit lexstate dest edit uchar * count edit ulong 1 to ulong */ 3667 +uint64_t osc_lex_stream(const uint8_t *o_src, size_t o_src_len, OscLexState *o_cursor, uint8_t *o_dest, size_t o_dest_len, uint64_t o_count[1]) 3668 +{ 3669 + uint64_t r = 0; 3670 + if (omega2_osc_lex_stream(&r, o_src, o_src_len, (uint8_t *)o_cursor, o_dest, o_dest_len, o_count, 1) != OMEGA_OK) 3671 + abort(); 3672 + return r; 3673 +} 3674 +/* export fn osc_read_type kinds view ushort 7 values view ulong 7 form ulong refkind ulong limit ulong result edit typerec to ulong */ 3675 +uint64_t osc_read_type(const uint16_t o_kinds[7], const uint64_t o_values[7], uint64_t o_form, uint64_t o_refkind, uint64_t o_limit, OscParsedType *o_result) 3676 +{ 3677 + uint64_t r = 0; 3678 + if (omega2_osc_read_type(&r, o_kinds, 7, o_values, 7, (uint64_t)o_form, (uint64_t)o_refkind, (uint64_t)o_limit, (uint8_t *)o_result) != OMEGA_OK) 3679 + abort(); 3680 + return r; 3681 +} 3682 +/* export fn osc_expr_step stack edit exprstk look ulong operand ulong to ulong */ 3683 +uint64_t osc_expr_step(OscExprStack *o_stack, uint64_t o_look, uint64_t o_operand) 3684 +{ 3685 + uint64_t r = 0; 3686 + if (omega2_osc_expr_step(&r, (uint8_t *)o_stack, (uint64_t)o_look, (uint64_t)o_operand) != OMEGA_OK) 3687 + abort(); 3688 + return r; 3689 +} 3690 +/* export fn osc_operand_step state edit opstate kind ulong nextkind ulong third ulong to ulong */ 3691 +uint64_t osc_operand_step(OscOperandState *o_state, uint64_t o_kind, uint64_t o_nextkind, uint64_t o_third) 3692 +{ 3693 + uint64_t r = 0; 3694 + if (omega2_osc_operand_step(&r, (uint8_t *)o_state, (uint64_t)o_kind, (uint64_t)o_nextkind, (uint64_t)o_third) != OMEGA_OK) 3695 + abort(); 3696 + return r; 3697 +} 3698 +/* export fn osc_alu_width t ulong to ulong */ 3699 +uint64_t osc_alu_width(uint64_t o_t) 3700 +{ 3701 + uint64_t r = 0; 3702 + if (omega2_osc_alu_width(&r, (uint64_t)o_t) != OMEGA_OK) 3703 + abort(); 3704 + return r; 3705 +} 3706 +/* export fn osc_alu_canon t ulong v ulong to ulong */ 3707 +uint64_t osc_alu_canon(uint64_t o_t, uint64_t o_v) 3708 +{ 3709 + uint64_t r = 0; 3710 + if (omega2_osc_alu_canon(&r, (uint64_t)o_t, (uint64_t)o_v) != OMEGA_OK) 3711 + abort(); 3712 + return r; 3713 +} 3714 +/* export fn osc_alu_bin op ulong t ulong a ulong b ulong value out ulong 1 to ulong */ 3715 +uint64_t osc_alu_bin(uint64_t o_op, uint64_t o_t, uint64_t o_a, uint64_t o_b, uint64_t o_value[1]) 3716 +{ 3717 + uint64_t r = 0; 3718 + if (omega2_osc_alu_bin(&r, (uint64_t)o_op, (uint64_t)o_t, (uint64_t)o_a, (uint64_t)o_b, o_value) != OMEGA_OK) 3719 + abort(); 3720 + return r; 3721 +} 3722 +/* export fn osc_alu_un op ulong t ulong a ulong value out ulong 1 to ulong */ 3723 +uint64_t osc_alu_un(uint64_t o_op, uint64_t o_t, uint64_t o_a, uint64_t o_value[1]) 3724 +{ 3725 + uint64_t r = 0; 3726 + if (omega2_osc_alu_un(&r, (uint64_t)o_op, (uint64_t)o_t, (uint64_t)o_a, o_value) != OMEGA_OK) 3727 + abort(); 3728 + return r; 3729 +} 3730 +/* export fn osc_alu_cmp cc ulong t ulong a ulong b ulong to ulong */ 3731 +uint64_t osc_alu_cmp(uint64_t o_cc, uint64_t o_t, uint64_t o_a, uint64_t o_b) 3732 +{ 3733 + uint64_t r = 0; 3734 + if (omega2_osc_alu_cmp(&r, (uint64_t)o_cc, (uint64_t)o_t, (uint64_t)o_a, (uint64_t)o_b) != OMEGA_OK) 3735 + abort(); 3736 + return r; 3737 +} 3738 +/* export fn osc_alu_cast target ulong src ulong a ulong value out ulong 1 to ulong */ 3739 +uint64_t osc_alu_cast(uint64_t o_target, uint64_t o_src, uint64_t o_a, uint64_t o_value[1]) 3740 +{ 3741 + uint64_t r = 0; 3742 + if (omega2_osc_alu_cast(&r, (uint64_t)o_target, (uint64_t)o_src, (uint64_t)o_a, o_value) != OMEGA_OK) 3743 + abort(); 3744 + return r; 3745 +} 3746 +/* export fn osc_binary_opcode tok ulong to ulong */ 3747 +uint64_t osc_binary_opcode(uint64_t o_tok) 3748 +{ 3749 + uint64_t r = 0; 3750 + if (omega2_osc_binary_opcode(&r, (uint64_t)o_tok) != OMEGA_OK) 3751 + abort(); 3752 + return r; 3753 +} 3754 +/* export fn osc_compare_opcode tok ulong to ulong */ 3755 +uint64_t osc_compare_opcode(uint64_t o_tok) 3756 +{ 3757 + uint64_t r = 0; 3758 + if (omega2_osc_compare_opcode(&r, (uint64_t)o_tok) != OMEGA_OK) 3759 + abort(); 3760 + return r; 3761 +} 3762 +/* export fn osc_literal_fits t ulong magnitude ulong negative ulong to ulong */ 3763 +uint64_t osc_literal_fits(uint64_t o_t, uint64_t o_magnitude, uint64_t o_negative) 3764 +{ 3765 + uint64_t r = 0; 3766 + if (omega2_osc_literal_fits(&r, (uint64_t)o_t, (uint64_t)o_magnitude, (uint64_t)o_negative) != OMEGA_OK) 3767 + abort(); 3768 + return r; 3769 +} 3770 +/* export fn osc_contract_value nodes view uchar * env view contract stack edit ulong * request edit ulong 2 to ulong */ 3771 +uint64_t osc_contract_value(const uint8_t *o_nodes, size_t o_nodes_len, const OscContractBindings *o_env, uint64_t *o_stack, size_t o_stack_len, uint64_t o_request[2]) 3772 +{ 3773 + uint64_t r = 0; 3774 + if (omega2_osc_contract_value(&r, o_nodes, o_nodes_len, (const uint8_t *)o_env, o_stack, o_stack_len, o_request, 2) != OMEGA_OK) 3775 + abort(); 3776 + return r; 3777 +} 3778 +/* export fn osc_constant_tree nodes view uchar * id ulong require_literals ulong pending edit ulong * to ulong */ 3779 +uint64_t osc_constant_tree(const uint8_t *o_nodes, size_t o_nodes_len, uint64_t o_id, uint64_t o_require_literals, uint64_t *o_pending, size_t o_pending_len) 3780 +{ 3781 + uint64_t r = 0; 3782 + if (omega2_osc_constant_tree(&r, o_nodes, o_nodes_len, (uint64_t)o_id, (uint64_t)o_require_literals, o_pending, o_pending_len) != OMEGA_OK) 3783 + abort(); 3784 + return r; 3785 +} 3786 +/* export fn osc_fold_tree nodes edit uchar * typ ulong stack edit ulong * report edit ulong 3 to ulong */ 3787 +uint64_t osc_fold_tree(uint8_t *o_nodes, size_t o_nodes_len, uint64_t o_typ, uint64_t *o_stack, size_t o_stack_len, uint64_t o_report[3]) 3788 +{ 3789 + uint64_t r = 0; 3790 + if (omega2_osc_fold_tree(&r, o_nodes, o_nodes_len, (uint64_t)o_typ, o_stack, o_stack_len, o_report, 3) != OMEGA_OK) 3791 + abort(); 3792 + return r; 3793 +} 3794 +/* export fn osc_infer_step nodes edit uchar * stack edit ulong * frame edit infer checked ulong to ulong */ 3795 +uint64_t osc_infer_step(uint8_t *o_nodes, size_t o_nodes_len, uint64_t *o_stack, size_t o_stack_len, OscInference *o_frame, uint64_t o_checked) 3796 +{ 3797 + uint64_t r = 0; 3798 + if (omega2_osc_infer_step(&r, o_nodes, o_nodes_len, o_stack, o_stack_len, (uint8_t *)o_frame, (uint64_t)o_checked) != OMEGA_OK) 3799 + abort(); 3800 + return r; 3801 +} 3802 +/* export fn osc_a64_pack_fields form ulong base ulong f view a64field to ulong */ 3803 +uint64_t osc_a64_pack_fields(uint64_t o_form, uint64_t o_base, const OscA64Fields *o_f) 3804 +{ 3805 + uint64_t r = 0; 3806 + if (omega2_osc_a64_pack_fields(&r, (uint64_t)o_form, (uint64_t)o_base, (const uint8_t *)o_f) != OMEGA_OK) 3807 + abort(); 3808 + return r; 3809 +} 3810 +/* export fn osc_a64_unpack_fields form ulong word ulong f edit a64field to void */ 3811 +void osc_a64_unpack_fields(uint64_t o_form, uint64_t o_word, OscA64Fields *o_f) 3812 +{ 3813 + uint64_t r = 0; 3814 + if (omega2_osc_a64_unpack_fields(&r, (uint64_t)o_form, (uint64_t)o_word, (uint8_t *)o_f) != OMEGA_OK) 3815 + abort(); 3816 + (void)r; 3817 +} 3818 +/* export fn osc_a64_check_fields cls ulong f view a64field writeback ulong loadpair ulong to ulong */ 3819 +uint64_t osc_a64_check_fields(uint64_t o_cls, const OscA64Fields *o_f, uint64_t o_writeback, uint64_t o_loadpair) 3820 +{ 3821 + uint64_t r = 0; 3822 + if (omega2_osc_a64_check_fields(&r, (uint64_t)o_cls, (const uint8_t *)o_f, (uint64_t)o_writeback, (uint64_t)o_loadpair) != OMEGA_OK) 3823 + abort(); 3824 + return r; 3825 +} 3826 +/* export fn osc_for_range kinds view ushort 7 values view ulong 7 limit ulong range edit forrange to ulong */ 3827 +uint64_t osc_for_range(const uint16_t o_kinds[7], const uint64_t o_values[7], uint64_t o_limit, OscForRange *o_range) 3828 +{ 3829 + uint64_t r = 0; 3830 + if (omega2_osc_for_range(&r, o_kinds, 7, o_values, 7, (uint64_t)o_limit, (uint8_t *)o_range) != OMEGA_OK) 3831 + abort(); 3832 + return r; 3833 +} 3834 +/* export fn osc_read_bound keyword ulong kind ulong value ulong limit ulong to ulong */ 3835 +uint64_t osc_read_bound(uint64_t o_keyword, uint64_t o_kind, uint64_t o_value, uint64_t o_limit) 3836 +{ 3837 + uint64_t r = 0; 3838 + if (omega2_osc_read_bound(&r, (uint64_t)o_keyword, (uint64_t)o_kind, (uint64_t)o_value, (uint64_t)o_limit) != OMEGA_OK) 3839 + abort(); 3840 + return r; 3841 +} 3842 +/* export fn osc_read_import state edit imprec kind ulong spelling view uchar * table edit uchar * to ulong */ 3843 +uint64_t osc_read_import(OscImportParse *o_state, uint64_t o_kind, const uint8_t *o_spelling, size_t o_spelling_len, uint8_t *o_table, size_t o_table_len) 3844 +{ 3845 + uint64_t r = 0; 3846 + if (omega2_osc_read_import(&r, (uint8_t *)o_state, (uint64_t)o_kind, o_spelling, o_spelling_len, o_table, o_table_len) != OMEGA_OK) 3847 + abort(); 3848 + return r; 3849 +} 3850 +/* export fn osc_clause_word dst edit uchar 256 used ulong prev ulong kind ulong word view uchar * to ulong */ 3851 +uint64_t osc_clause_word(uint8_t o_dst[256], uint64_t o_used, uint64_t o_prev, uint64_t o_kind, const uint8_t *o_word, size_t o_word_len) 3852 +{ 3853 + uint64_t r = 0; 3854 + if (omega2_osc_clause_word(&r, o_dst, 256, (uint64_t)o_used, (uint64_t)o_prev, (uint64_t)o_kind, o_word, o_word_len) != OMEGA_OK) 3855 + abort(); 3856 + return r; 3857 +} 3858 +/* export fn osc_statement_plan plan edit stmtplan kind ulong nextkind ulong third ulong spelling view uchar * to ulong */ 3859 +uint64_t osc_statement_plan(OscStmtPlan *o_plan, uint64_t o_kind, uint64_t o_nextkind, uint64_t o_third, const uint8_t *o_spelling, size_t o_spelling_len) 3860 +{ 3861 + uint64_t r = 0; 3862 + if (omega2_osc_statement_plan(&r, (uint8_t *)o_plan, (uint64_t)o_kind, (uint64_t)o_nextkind, (uint64_t)o_third, o_spelling, o_spelling_len) != OMEGA_OK) 3863 + abort(); 3864 + return r; 3865 +} 2802 3866 /* export fn osc_owner_access moved ulong exclusive ulong shared_count ulong mut_count ulong to ulong */ 2803 3867 uint64_t osc_owner_access(uint64_t o_moved, uint64_t o_exclusive, uint64_t o_shared_count, uint64_t o_mut_count) 2804 3868 { @@ -2887,3 +3951,75 @@ void osc_close_reborrow(OscCheckedBorrow *o_parent, OscCheckedBorrow *o_child) 2887 3951 abort(); 2888 3952 (void)r; 2889 3953 } 3954 +/* export fn osc_join_owners taken view uchar * remaining edit uchar * changes edit int * to ulong */ 3955 +uint64_t osc_join_owners(const uint8_t *o_taken, size_t o_taken_len, uint8_t *o_remaining, size_t o_remaining_len, int32_t *o_changes, size_t o_changes_len) 3956 +{ 3957 + uint64_t r = 0; 3958 + if (omega2_osc_join_owners(&r, o_taken, o_taken_len, o_remaining, o_remaining_len, o_changes, o_changes_len) != OMEGA_OK) 3959 + abort(); 3960 + return r; 3961 +} 3962 +/* export fn osc_scope_reset table edit scopetab to void */ 3963 +void osc_scope_reset(OscCheckedScope *o_table) 3964 +{ 3965 + uint64_t r = 0; 3966 + if (omega2_osc_scope_reset(&r, (uint8_t *)o_table) != OMEGA_OK) 3967 + abort(); 3968 + (void)r; 3969 +} 3970 +/* export fn osc_scope_find table view scopetab symbols view uchar * stride ulong name view uchar * to long */ 3971 +int64_t osc_scope_find(const OscCheckedScope *o_table, const uint8_t *o_symbols, size_t o_symbols_len, uint64_t o_stride, const uint8_t *o_name, size_t o_name_len) 3972 +{ 3973 + uint64_t r = 0; 3974 + if (omega2_osc_scope_find(&r, (const uint8_t *)o_table, o_symbols, o_symbols_len, (uint64_t)o_stride, o_name, o_name_len) != OMEGA_OK) 3975 + abort(); 3976 + return (int64_t)r; 3977 +} 3978 +/* export fn osc_scope_bind table edit scopetab id ulong name view uchar * to void */ 3979 +void osc_scope_bind(OscCheckedScope *o_table, uint64_t o_id, const uint8_t *o_name, size_t o_name_len) 3980 +{ 3981 + uint64_t r = 0; 3982 + if (omega2_osc_scope_bind(&r, (uint8_t *)o_table, (uint64_t)o_id, o_name, o_name_len) != OMEGA_OK) 3983 + abort(); 3984 + (void)r; 3985 +} 3986 +/* export fn osc_scope_push table edit scopetab to ulong */ 3987 +uint64_t osc_scope_push(OscCheckedScope *o_table) 3988 +{ 3989 + uint64_t r = 0; 3990 + if (omega2_osc_scope_push(&r, (uint8_t *)o_table) != OMEGA_OK) 3991 + abort(); 3992 + return r; 3993 +} 3994 +/* export fn osc_scope_pop table edit scopetab to void */ 3995 +void osc_scope_pop(OscCheckedScope *o_table) 3996 +{ 3997 + uint64_t r = 0; 3998 + if (omega2_osc_scope_pop(&r, (uint8_t *)o_table) != OMEGA_OK) 3999 + abort(); 4000 + (void)r; 4001 +} 4002 +/* export fn osc_pool_init p edit poolstat cap ulong base ulong loop_depth long cond_depth long to void */ 4003 +void osc_pool_init(OscCheckedPool *o_p, uint64_t o_cap, uint64_t o_base, int64_t o_loop_depth, int64_t o_cond_depth) 4004 +{ 4005 + uint64_t r = 0; 4006 + if (omega2_osc_pool_init(&r, (uint8_t *)o_p, (uint64_t)o_cap, (uint64_t)o_base, (uint64_t)o_loop_depth, (uint64_t)o_cond_depth) != OMEGA_OK) 4007 + abort(); 4008 + (void)r; 4009 +} 4010 +/* export fn osc_pool_alloc p edit poolstat loop_depth long cond_depth long to ulong */ 4011 +uint64_t osc_pool_alloc(OscCheckedPool *o_p, int64_t o_loop_depth, int64_t o_cond_depth) 4012 +{ 4013 + uint64_t r = 0; 4014 + if (omega2_osc_pool_alloc(&r, (uint8_t *)o_p, (uint64_t)o_loop_depth, (uint64_t)o_cond_depth) != OMEGA_OK) 4015 + abort(); 4016 + return r; 4017 +} 4018 +/* export fn osc_pool_free p edit poolstat loop_depth long cond_depth long to void */ 4019 +void osc_pool_free(OscCheckedPool *o_p, int64_t o_loop_depth, int64_t o_cond_depth) 4020 +{ 4021 + uint64_t r = 0; 4022 + if (omega2_osc_pool_free(&r, (uint8_t *)o_p, (uint64_t)o_loop_depth, (uint64_t)o_cond_depth) != OMEGA_OK) 4023 + abort(); 4024 + (void)r; 4025 +} src/omega_om_units.ident @@ -23,5 +23,12 @@ omega-ident 1 unit=rx_route_core abi=2 profile=OM-2 src=`4d45fdbb7089300c5a9f7889` 23 23 omega-ident 1 unit=rx_world_core abi=2 profile=OM-2 src=`fe6656a9770cd0721dd5d5e885bc506ec68ca34d67243cf4b7da57d5e46a0611` omc=`b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2` path=om/runtime/rx_world_core.om 24 24 omega-ident 1 unit=rx_skillroute_core abi=2 profile=OM-2 src=`568e2a8345feaffe9d1c119697426be1564d2b2317f8bdd192ad7756c39a6c3d` omc=`b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2` path=om/runtime/rx_skillroute_core.om 25 25 omega-ident 1 unit=rx_fusion_core abi=2 profile=OM-2 src=`aab22272005a4d65c2ada2b9754906cdaa7736ae127042f84457d548875d1ee6` omc=`b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2` path=om/runtime/rx_fusion_core.om 26 -omega-ident 1 unit=osc_literal abi=2 profile=OM-2 src=`c61bdcbb9f71b01df86fba045b4206809091e709eba208939a4270b67dabbce2` omc=`b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2` path=om/compiler/osc_literal.om 27 -omega-ident 1 unit=osc_ownership abi=2 profile=OM-2 src=`4057f369075c9ea7e8df9c208f640eb5361dacd2608138cb04b853db082c4d33` omc=`b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2` path=om/compiler/osc_ownership.om 26 +omega-ident 1 unit=osc_literal abi=2 profile=OM-2 src=`ed2da39b4adba054db253cd7bd5b5f7e7c68a773f7b676be6fb7ed9825cb0c0f` omc=`b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2` path=om/compiler/osc_literal.om 27 +omega-ident 1 unit=osc_type abi=2 profile=OM-2 src=`a33e7745e4cdb1a968b06aff6016de192ef8a2a9d0d2946f5b1f79c91c7f2cba` omc=`b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2` path=om/compiler/osc_type.om 28 +omega-ident 1 unit=osc_expr abi=2 profile=OM-2 src=`e869e7be788d2f0c942d9c4c8d87d3fe6efc45713c0ced12d82183e3fa3dba1b` omc=`b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2` path=om/compiler/osc_expr.om 29 +omega-ident 1 unit=osc_scalar abi=2 profile=OM-2 src=`28238165ae668bbf8493bc4f27ca69af1c8cccb9ddd7d47a0889f288d0e7dc73` omc=`b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2` path=om/compiler/osc_scalar.om 30 +omega-ident 1 unit=osc_a64_fields abi=2 profile=OM-2 src=`9611ed84cd164f070399a77dcae62086f741201bcc972d969f912b21ce8824b4` omc=`b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2` path=om/compiler/osc_a64_fields.om 31 +omega-ident 1 unit=osc_statement abi=2 profile=OM-2 src=`a7b0105f7f6556f4b78142c36b3208d8d5072df232898491f5fc010a7903c914` omc=`b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2` path=om/compiler/osc_statement.om 32 +omega-ident 1 unit=osc_ownership abi=2 profile=OM-2 src=`b89c54bb7edd8e242def52f184a2df63754b02bf921b39839344f1d5d7f6fdec` omc=`b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2` path=om/compiler/osc_ownership.om 33 +omega-ident 1 unit=osc_scope abi=2 profile=OM-2 src=`04d9c3dead3cabf5dbfa96da36fe4c58c64aa20ea36494bbfa92d1d0d3a17c4e` omc=`b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2` path=om/compiler/osc_scope.om 34 +omega-ident 1 unit=osc_pool abi=2 profile=OM-2 src=`739af9855c5a25c5c3322dade4200fec3d7ee380ddc97de7afa7875618888711` omc=`b6129ed51e07dd8ef7f33e78fdff99d6c4d914e3bccdaf8b344043b95017d4f2` path=om/compiler/osc_pool.om tests/compiler/osc_lex_reference.c new file mode 100644 @@ -0,0 +1,192 @@ 1 +/* SPDX-License-Identifier: Apache-2.0 2 + * Copyright 2026 Drake Stapleton (AIEN / aien-dev) 3 + * 4 + * Licensed under the Apache License, Version 2.0 (the "License"); 5 + * you may not use this file except in compliance with the License. 6 + * You may obtain a copy of the License at 7 + * 8 + * http://www.apache.org/licenses/LICENSE-2.0 9 + * 10 + * Unless required by applicable law or agreed to in writing, software 11 + * distributed under the License is distributed on an "AS IS" BASIS, 12 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 + * See the License for the specific language governing permissions and 14 + * limitations under the License. 15 + */ 16 + 17 +/* 18 + * Test oracle: the C lexer before the integer literal migration (parent of `acbdf0b67`). 19 + * OSC-1 slice; not a general Omega compiler; no self-hosting. 20 + */ 21 +#include "osc_lex.h" 22 + 23 +#include 24 + 25 +static const struct { const char *w; int k; } keywords[] = { 26 + {"fn", OT_FN}, {"let", OT_LET}, {"mut", OT_MUT}, {"own", OT_OWN}, {"alloc", OT_ALLOC}, 27 + {"if", OT_IF}, {"else", OT_ELSE}, {"while", OT_WHILE}, {"bound", OT_BOUND}, {"for", OT_FOR}, 28 + {"in", OT_IN}, {"return", OT_RETURN}, {"requires", OT_REQUIRES}, {"ensures", OT_ENSURES}, 29 + {"as", OT_AS}, {"true", OT_TRUE}, {"false", OT_FALSE}, {"u8", OT_U8}, {"u16", OT_U16}, 30 + {"u32", OT_U32}, {"u64", OT_U64}, {"i8", OT_I8}, {"i16", OT_I16}, {"i32", OT_I32}, 31 + {"i64", OT_I64}, {"bool", OT_BOOL}, {"struct", OT_STRUCT}, {"arena", OT_ARENA}, 32 + {"pool", OT_POOL}, {"handle", OT_HANDLE}, {"import", OT_IMPORT}, 33 + {"bytes", OT_BYTES}, {"cells", OT_CELLS}, 34 +}; 35 + 36 +/* Reserved: destruction words (destruction has no surface syntax, III.8) and 37 + * the V0 effect / authority / control-flow words. Never names. */ 38 +static const char *const reserved[] = { 39 + "free", "drop", "delete", "dealloc", 40 + "effect", "cap", "capability", "mint", "revoke", "grant", "publish", "promote", "authority", "admin", 41 + "syscall", "io", "print", "extern", "unsafe", "asm", "loop", "match", "enum", 42 + "var", "const", "self", "rec", "break", "continue", 43 +}; 44 + 45 +static int is_alpha(int c) { return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || c == '_'; } 46 +static int is_digit(int c) { return c >= '0' && c <= '9'; } 47 +static int digit_val(int c) 48 +{ 49 + if (c >= '0' && c <= '9') return c - '0'; 50 + if (c >= 'a' && c <= 'f') return c - 'a' + 10; 51 + if (c >= 'A' && c <= 'F') return c - 'A' + 10; 52 + return 99; 53 +} 54 + 55 +int osc_lex_reference(const char *src, size_t len, OscToken *toks, uint32_t cap, uint32_t *ntok, OscDiag *d) 56 +{ 57 + size_t i = 0; 58 + uint32_t line = 1, col = 1, n = 0; 59 +#define ADV() do { if (src[i] == '\n') { line++; col = 1; } else col++; i++; } while (0) 60 + for (;;) { 61 + /* skip whitespace and comments */ 62 + while (i < len) { 63 + char c = src[i]; 64 + if (c == ' ' || c == '\t' || c == '\r' || c == '\n') { ADV(); continue; } 65 + if (c == '/' && i + 1 < len && src[i + 1] == '/') { 66 + while (i < len && src[i] != '\n') ADV(); 67 + continue; 68 + } 69 + if (c == '/' && i + 1 < len && src[i + 1] == '*') { 70 + uint32_t sl = line, sc = col; 71 + ADV(); ADV(); 72 + while (i < len && !(src[i] == '*' && i + 1 < len && src[i + 1] == '/')) ADV(); 73 + if (i >= len) { 74 + osc_diag_set(d, OSC_DIAG_SYNTAX, sl, sc, "/*", 0, NULL, "unterminated comment", 75 + "unterminated /* comment"); 76 + return -1; 77 + } 78 + ADV(); ADV(); 79 + continue; 80 + } 81 + break; 82 + } 83 + if (n >= cap) { 84 + osc_diag_set(d, OSC_DIAG_CAPACITY, line, col, "unit", 0, NULL, "token capacity", 85 + "more than %u tokens", cap); 86 + return -1; 87 + } 88 + OscToken *t = &toks[n]; 89 + memset(t, 0, sizeof *t); 90 + t->line = line; 91 + t->col = col; 92 + t->off = (uint32_t)i; 93 + if (i >= len) { t->kind = OT_EOF; n++; break; } 94 + char c = src[i]; 95 + if (is_alpha(c)) { 96 + size_t s = i; 97 + while (i < len && (is_alpha(src[i]) || is_digit(src[i]))) ADV(); 98 + t->len = (uint32_t)(i - s); 99 + char buf[OSC_LEX_NAME_MAX + 1]; 100 + if (t->len > OSC_LEX_NAME_MAX) { 101 + osc_tok_text(src, t, buf, sizeof buf); 102 + osc_diag_set(d, OSC_DIAG_CAPACITY, t->line, t->col, buf, 0, NULL, "identifier length", 103 + "identifier longer than %d characters", OSC_LEX_NAME_MAX); 104 + return -1; 105 + } 106 + osc_tok_text(src, t, buf, sizeof buf); 107 + t->kind = OT_NAME; 108 + for (size_t k = 0; k < sizeof keywords / sizeof keywords[0]; k++) 109 + if (strcmp(buf, keywords[k].w) == 0) t->kind = (uint16_t)keywords[k].k; 110 + for (size_t k = 0; k < sizeof reserved / sizeof reserved[0]; k++) 111 + if (strcmp(buf, reserved[k]) == 0) t->kind = OT_RESERVED; 112 + n++; 113 + continue; 114 + } 115 + if (is_digit(c)) { 116 + size_t s = i; 117 + unsigned base = 10; 118 + if (c == '0' && i + 1 < len && (src[i + 1] == 'x' || src[i + 1] == 'b')) { 119 + base = src[i + 1] == 'x' ? 16 : 2; 120 + ADV(); ADV(); 121 + } 122 + size_t ds = i; 123 + int overflow = 0; 124 + uint64_t v = 0; 125 + while (i < len && (is_alpha(src[i]) || is_digit(src[i]))) { 126 + int dv = digit_val(src[i]); 127 + if (dv >= (int)base) break; 128 + if (v > (UINT64_MAX - (uint64_t)dv) / base) overflow = 1; 129 + v = v * base + (uint64_t)dv; 130 + ADV(); 131 + } 132 + t->len = (uint32_t)(i - s); 133 + char buf[64]; 134 + if (i == ds || (i < len && (is_alpha(src[i]) || is_digit(src[i])))) { 135 + while (i < len && (is_alpha(src[i]) || is_digit(src[i]))) ADV(); 136 + t->len = (uint32_t)(i - s); 137 + osc_tok_text(src, t, buf, sizeof buf); 138 + osc_diag_set(d, OSC_DIAG_SYNTAX, t->line, t->col, buf, 0, NULL, "malformed literal", 139 + "malformed integer literal '%s'", buf); 140 + return -1; 141 + } 142 + if (overflow) { 143 + osc_tok_text(src, t, buf, sizeof buf); 144 + osc_diag_set(d, OSC_DIAG_OVERFLOW_UNSAFE, t->line, t->col, buf, 0, NULL, "literal wider than 64 bits", 145 + "integer literal does not fit in 64 bits"); 146 + return -1; 147 + } 148 + t->kind = OT_INT; 149 + t->ival = v; 150 + n++; 151 + continue; 152 + } 153 + /* punctuation: longest match first */ 154 + static const struct { const char *s; int k; } punct[] = { 155 + {"->", OT_ARROW}, {"..", OT_DOTDOT}, {"&&", OT_ANDAND}, {"||", OT_OROR}, {"<<", OT_SHL}, 156 + {">>", OT_SHR}, {"==", OT_EQ}, {"!=", OT_NE}, {"<=", OT_LE}, {">=", OT_GE}, 157 + {"(", OT_LPAREN}, {")", OT_RPAREN}, {"{", OT_LBRACE}, {"}", OT_RBRACE}, {"[", OT_LBRACK}, 158 + {"]", OT_RBRACK}, {",", OT_COMMA}, {";", OT_SEMI}, {":", OT_COLON}, {"=", OT_ASSIGN}, 159 + {"+", OT_PLUS}, {"-", OT_MINUS}, {"*", OT_STAR}, {"/", OT_SLASH}, {"%", OT_PERCENT}, 160 + {"&", OT_AMP}, {"|", OT_PIPE}, {"^", OT_CARET}, {"~", OT_TILDE}, {"!", OT_BANG}, 161 + {"<", OT_LT}, {">", OT_GT}, {".", OT_DOT}, 162 + }; 163 + int found = 0; 164 + for (size_t k = 0; k < sizeof punct / sizeof punct[0]; k++) { 165 + size_t pl = strlen(punct[k].s); 166 + if (i + pl <= len && memcmp(src + i, punct[k].s, pl) == 0) { 167 + t->kind = (uint16_t)punct[k].k; 168 + t->len = (uint32_t)pl; 169 + for (size_t q = 0; q < pl; q++) ADV(); 170 + found = 1; 171 + break; 172 + } 173 + } 174 + if (!found) { 175 + char buf[8]; 176 + unsigned char uc = (unsigned char)c; 177 + if (uc >= 0x20 && uc < 0x7f) { buf[0] = (char)uc; buf[1] = 0; } 178 + else 179 + { 180 + static const char hx[] = "`0123456789abcdef`"; 181 + buf[0] = '\\'; buf[1] = 'x'; buf[2] = hx[uc >> 4]; buf[3] = hx[uc & 15]; buf[4] = 0; 182 + } 183 + osc_diag_set(d, OSC_DIAG_SYNTAX, line, col, buf, 0, NULL, "unexpected character", 184 + "unexpected character '%s'", buf); 185 + return -1; 186 + } 187 + n++; 188 + } 189 +#undef ADV 190 + *ntok = n; 191 + return 0; 192 +} tests/compiler/test_osc_lex.c new file mode 100644 @@ -0,0 +1,108 @@ 1 +/* SPDX-License-Identifier: Apache-2.0 */ 2 +/* Run the production entry point and the independent C lexer on identical 3 + * length-delimited bytes. Compare partial output and guard slots on errors. */ 4 +#include "osc_lex.h" 5 + 6 +#include 7 +#include 8 +#include 9 + 10 +int osc_lex_reference(const char *, size_t, OscToken *, uint32_t, uint32_t *, OscDiag *); 11 + 12 +static unsigned cases; 13 + 14 +static void compare(const char *label, const char *src, size_t len, uint32_t cap) 15 +{ 16 + size_t bytes = (cap + (size_t)1) * sizeof(OscToken); 17 + OscToken *want = malloc(bytes), *got = malloc(bytes); 18 + if (!want || !got) abort(); 19 + memset(want, 0xa5, bytes); 20 + memset(got, 0xa5, bytes); 21 + uint32_t nw = UINT32_MAX, ng = UINT32_MAX; 22 + OscDiag dw, dg; 23 + memset(&dw, 0xa5, sizeof dw); 24 + memset(&dg, 0xa5, sizeof dg); 25 + int rw = osc_lex_reference(src, len, want, cap, &nw, &dw); 26 + int rg = osc_lex(src, len, got, cap, &ng, &dg); 27 + if (rw != rg || nw != ng || memcmp(&dw, &dg, sizeof dw) || memcmp(want, got, bytes)) { 28 + fprintf(stderr, "FAIL lexer case %u (%s) len=%zu cap=%u, return %d/%d count %u/%u\n", 29 + cases, label, len, cap, rw, rg, nw, ng); 30 + if (rw) fprintf(stderr, "C diagnostic: %u:%u %s\n", dw.line, dw.col, dw.message); 31 + if (rg) fprintf(stderr, "Omega diagnostic: %u:%u %s\n", dg.line, dg.col, dg.message); 32 + for (uint32_t i = 0; i <= cap; ++i) { 33 + if (memcmp(&want[i], &got[i], sizeof *want)) { 34 + fprintf(stderr, "first differing token %u: kind %u/%u, offset %u/%u, width %u/%u\n", 35 + i, want[i].kind, got[i].kind, want[i].off, got[i].off, want[i].len, got[i].len); 36 + break; 37 + } 38 + } 39 + exit(1); 40 + } 41 + ++cases; 42 + free(want); 43 + free(got); 44 +} 45 + 46 +static void file_case(const char *path) 47 +{ 48 + FILE *f = fopen(path, "rb"); 49 + if (!f || fseek(f, 0, SEEK_END)) { perror(path); exit(1); } 50 + long len = ftell(f); 51 + if (len < 0 || fseek(f, 0, SEEK_SET)) { perror(path); exit(1); } 52 + char *src = malloc((size_t)len + 1); 53 + if (!src || fread(src, 1, (size_t)len, f) != (size_t)len) abort(); 54 + fclose(f); 55 + compare(path, src, (size_t)len, len < OSC_LEX_MAX_TOKENS ? (uint32_t)len + 1 : OSC_LEX_MAX_TOKENS); 56 + free(src); 57 +} 58 + 59 +int main(int argc, char **argv) 60 +{ 61 + static const char *const inputs[] = { 62 + "", " \r\t\n\n", "//", "/**/", "a/* first\nsecond **/\tb// tail\r\n c", 63 + "/***/a", "/* /* */ */", "x\n /*", "x//\n/*abc*", "*/", "x /*/ ", 64 + "fn let mut own alloc if else while bound for in return requires ensures as true false " 65 + "u8 u16 u32 u64 i8 i16 i32 i64 bool struct arena pool handle import bytes cells", 66 + "free drop delete dealloc effect cap capability mint revoke grant publish promote authority admin " 67 + "syscall io print extern unsafe asm loop match enum var const self rec break continue", 68 + "_ _1 _fn fn0 xif Fn IF XAuthority capabilityX requires1 authorityy authoritx capability_", 69 + "( ) { } [ ] , ; : -> .. = + - * / % & | ^ ~ ! && || << >> == != < <= > >= .", 70 + "...->> &&& ||| !== <<==", "0 42 0xff 0b10 `18446744073709551615`", 71 + "00x", "0x", "0b2", "1_a", "`18446744073709551616`", "18446744073709551616z", 72 + "x \n @", "x \n /* unfinished", "x\t// trivia before EOF" 73 + }; 74 + for (size_t i = 0; i < sizeof inputs / sizeof *inputs; ++i) { 75 + size_t len = strlen(inputs[i]); 76 + for (uint32_t cap = 0; cap <= len + 1; ++cap) 77 + compare(inputs[i], inputs[i], len, cap); 78 + } 79 + compare("empty null span", NULL, 0, 1); 80 + for (unsigned i = 0; i <= 255; ++i) { 81 + char s[] = {'a', '\n', ' ', (char)i, 'z'}; 82 + compare("all byte values", s, sizeof s, sizeof s + 1); 83 + s[0] = '/'; s[1] = '*'; s[3] = (char)i; s[4] = '*'; 84 + compare("byte in unfinished comment", s, sizeof s, 0); 85 + } 86 + char name[OSC_LEX_NAME_MAX + 2]; 87 + memset(name, 'a', sizeof name); 88 + for (size_t n = sizeof name - 3; n <= sizeof name; ++n) 89 + compare("identifier limit", name, n, 2); 90 + char wide[256]; 91 + memset(wide, '0', sizeof wide); 92 + wide[sizeof wide - 1] = '1'; 93 + compare("leading zeroes", wide, sizeof wide, 2); 94 + memset(wide, '9', sizeof wide); 95 + compare("long overflow", wide, sizeof wide, 2); 96 + wide[sizeof wide - 1] = '_'; 97 + compare("long malformed", wide, sizeof wide, 2); 98 + 99 + char *dense = malloc(OSC_LEX_MAX_TOKENS); 100 + if (!dense) abort(); 101 + memset(dense, ';', OSC_LEX_MAX_TOKENS); 102 + compare("last slot for EOF", dense, OSC_LEX_MAX_TOKENS - 1, OSC_LEX_MAX_TOKENS); 103 + compare("no slot for EOF", dense, OSC_LEX_MAX_TOKENS, OSC_LEX_MAX_TOKENS); 104 + free(dense); 105 + for (int i = 1; i < argc; ++i) file_case(argv[i]); 106 + printf("OSC_LEX_PARITY_PASS cases=%u files=%d\n", cases, argc - 1); 107 + return 0; 108 +} tests/compiler/test_osc_parse_parity.c new file mode 100644 @@ -0,0 +1,211 @@ 1 +/* SPDX-License-Identifier: Apache-2.0 */ 2 +/* Both parsers receive the same tokens, source and initial AST contents. */ 3 +#include "osc_parse.h" 4 + 5 +#include 6 +#include 7 +#include 8 + 9 +int osc_parse_reference(OscAst *, OscDiag *); 10 + 11 +static OscAst old_ast, new_ast; 12 +static OscToken tokens[OSC_LEX_MAX_TOKENS]; 13 +static unsigned passed, lex_refusals; 14 + 15 +static void compare(const char *label, const char *src, size_t size) 16 +{ 17 + OscDiag old_diag = {0}, new_diag = {0}; 18 + uint32_t count; 19 + if (osc_lex(src, size, tokens, OSC_LEX_MAX_TOKENS, &count, &new_diag)) { 20 + ++lex_refusals; 21 + return; 22 + } 23 + memset(&old_ast, 0, sizeof old_ast); 24 + old_ast.src = src; 25 + old_ast.toks = tokens; 26 + old_ast.ntok = count; 27 + memcpy(&new_ast, &old_ast, sizeof old_ast); 28 + int want = osc_parse_reference(&old_ast, &old_diag); 29 + int got = osc_parse(&new_ast, &new_diag); 30 + if (want != got || memcmp(&old_diag, &new_diag, sizeof old_diag) || 31 + memcmp(&old_ast, &new_ast, sizeof old_ast)) { 32 + fprintf(stderr, "FAIL %s\nC (%d) %u:%u %s\nOmega (%d) %u:%u %s\n", 33 + label, want, old_diag.line, old_diag.col, old_diag.message, 34 + got, new_diag.line, new_diag.col, new_diag.message); 35 + exit(1); 36 + } 37 + ++passed; 38 +} 39 + 40 +static void file_case(const char *path) 41 +{ 42 + FILE *f = fopen(path, "rb"); 43 + if (!f || fseek(f, 0, SEEK_END)) { perror(path); exit(1); } 44 + long size = ftell(f); 45 + if (size < 0 || fseek(f, 0, SEEK_SET)) { perror(path); exit(1); } 46 + char *src = malloc((size_t)size + 1); 47 + if (!src || fread(src, 1, (size_t)size, f) != (size_t)size) abort(); 48 + fclose(f); 49 + compare(path, src, (size_t)size); 50 + free(src); 51 +} 52 + 53 +static void expression_cases(void) 54 +{ 55 + static const char *const operators[] = { 56 + "||", "&&", "==", "!=", "<", "<=", ">", ">=", "|", "^", "&", 57 + "<<", ">>", "+", "-", "*", "/", "%" 58 + }; 59 + static const char *const forms[] = { 60 + "a %s b %s c", "(a %s b) %s c", "a %s (b %s c)", "a %s -b %s" 61 + }; 62 + char src[256]; 63 + for (size_t i = 0; i < sizeof operators / sizeof *operators; ++i) { 64 + for (size_t j = 0; j < sizeof operators / sizeof *operators; ++j) { 65 + for (size_t k = 0; k < sizeof forms / sizeof *forms; ++k) { 66 + char expr[64]; 67 + int ne = snprintf(expr, sizeof expr, forms[k], operators[i], operators[j]); 68 + int n = snprintf(src, sizeof src, "fn f() -> u64 { return %s; }", expr); 69 + if (ne < 0 || (size_t)ne >= sizeof expr || n < 0 || (size_t)n >= sizeof src) abort(); 70 + compare(src, src, (size_t)n); 71 + } 72 + } 73 + } 74 + static const char *const edge[] = { 75 + "fn f() -> u64 { return a || b && c == d | e ^ f & g << h + i * j; }", 76 + "fn f() -> u64 { return a * b + c << d & e ^ f | g == h && i || j; }", 77 + "fn f() -> u64 { return a == b * c < d; }", 78 + "fn f() -> u64 { return a == b && c == d; }", 79 + "fn f() -> i32 { return !~-f(1, x[0]) as i32; }", 80 + "fn f() -> i32 { return (x as i8) as i32; }", 81 + "fn f() -> i32 { return -x as i8 as i32; }", 82 + "fn f() -> i32 { return ~-!x as", "fn f() -> i32 { return ~-!; }", 83 + "fn f() -> i32 { return !p.alloc(f(x.field[0])); }", 84 + "fn f() -> u64 { return a * (b + c", "fn f() -> u64 { return -(-a) << ~b; }" 85 + }; 86 + for (size_t i = 0; i < sizeof edge / sizeof *edge; ++i) 87 + compare(edge[i], edge[i], strlen(edge[i])); 88 +} 89 + 90 +/* Truncate after each token to compare diagnostic locations and partial AST 91 + * writes as well as the successful production. All variants reach the parser. */ 92 +static void statement_cases(void) 93 +{ 94 + static const char *const programs[] = { 95 + "fn f ( ) { return ; }", "fn f ( ) { return & mut x ; }", 96 + "fn f ( ) { x = & mut value ; }", "fn f ( ) { x = value + 1 ; }", 97 + "fn f ( ) { a [ i ] = value ; }", "fn f ( ) { a [ i ] = & value ; }", 98 + "fn f ( ) { x . member [ i ] = y ; }", "fn f ( ) { p . free ( f ( x ) ) ; }", 99 + "fn f ( ) { p . unsafe ( x ) ; }", "fn f ( ) { f ( x , y ) ; }", 100 + "fn f ( ) { while x bound 1 { } }", "fn f ( ) { while x bound `1000001` { } }", 101 + "fn f ( ) { arena a bound 64 { } }", "fn f ( ) { arena a bound 65 { } }", 102 + "fn f ( ) { for i in - 5 .. - 2 { } }", "fn f ( ) { for i in 3 .. 2 { } }", 103 + "fn f ( ) { for i in - 1 .. 999999 { } }", "fn f ( ) { for i in - 1 .. `1000000` { } }", 104 + "fn f ( ) { for i in - `9223372036854775808` .. - `9223372036854775807` { } }", 105 + "fn f ( ) { for i in - `9223372036854775809` .. 0 { } }", 106 + "fn f ( ) { for i in `9223372036854775807` .. `9223372036854775807` { } }", 107 + "fn f ( ) { for i in 0 .. `9223372036854775808` { } }", 108 + "import a ; import ab ; import abc ;", "import abc ; import ab ; import abc ;", 109 + "import x ; fn f ( ) { } import", "struct S { x : u8 } import unsafe ;", 110 + "fn f ( x : u8 ) requires ( x + 1 ) > 0 ensures ( x ) { return ; }" 111 + }; 112 + for (size_t i = 0; i < sizeof programs / sizeof *programs; ++i) { 113 + const char *src = programs[i]; 114 + for (size_t j = 0; src[j]; ++j) 115 + if (src[j] == ' ') compare(src, src, j); 116 + compare(src, src, strlen(src)); 117 + } 118 + 119 + char imports[2048]; 120 + size_t used = 0; 121 + for (unsigned i = 0; i < OSC_MAX_IMPORTS; ++i) { 122 + int n = snprintf(imports + used, sizeof imports - used, "import p%u;\n", i); 123 + if (n < 0 || (size_t)n >= sizeof imports - used) abort(); 124 + used += (size_t)n; 125 + } 126 + compare("full import table", imports, used); 127 + static const char *const tails[] = {"import p0;", "import extra;", "import ;"}; 128 + for (size_t i = 0; i < sizeof tails / sizeof *tails; ++i) { 129 + strcpy(imports + used, tails[i]); 130 + compare("import capacity diagnostic", imports, used + strlen(tails[i])); 131 + } 132 + 133 + /* Canonical text is four names separated by three " + " sequences. 134 + * Exercise capacity-1, capacity, and the first refused append. */ 135 + for (size_t length = OSC_CLAUSE_MAX - 2; length <= OSC_CLAUSE_MAX + 1; ++length) { 136 + char src[512], names[4][OSC_LEX_NAME_MAX + 1]; 137 + size_t remaining = length - 9; 138 + for (int i = 0; i < 4; ++i) { 139 + size_t width = remaining / (size_t)(4 - i); 140 + if (width > OSC_LEX_NAME_MAX) abort(); 141 + memset(names[i], 'a' + i, width); 142 + names[i][width] = 0; 143 + remaining -= width; 144 + } 145 + int n = snprintf(src, sizeof src, "fn f() requires %s+%s+%s+%s {}", 146 + names[0], names[1], names[2], names[3]); 147 + if (n < 0 || (size_t)n >= sizeof src) abort(); 148 + compare("contract text capacity", src, (size_t)n); 149 + } 150 +} 151 + 152 +/* The C oracle subtracts int64_t ends before testing the trip count. A full 153 + * span overflows that subtraction, so check this case directly against the 154 + * specified diagnostic, including the location of the first range token. */ 155 +static void wide_for_range(void) 156 +{ 157 + const char *src = "fn f() { for i in\n-`9223372036854775808` .. `9223372036854775807` {} }"; 158 + OscDiag d = {0}; 159 + uint32_t count; 160 + if (osc_lex(src, strlen(src), tokens, OSC_LEX_MAX_TOKENS, &count, &d)) abort(); 161 + memset(&new_ast, 0, sizeof new_ast); 162 + new_ast.src = src; 163 + new_ast.toks = tokens; 164 + new_ast.ntok = count; 165 + if (osc_parse(&new_ast, &d) != -1 || d.kind != OSC_DIAG_UNBOUNDED_LOOP || 166 + d.line != 2 || d.col != 1 || 167 + strcmp(d.message, "for range must satisfy A <= B and B - A <= `1000000`")) { 168 + fprintf(stderr, "FAIL full-width range: %u:%u %s\n", d.line, d.col, d.message); 169 + exit(1); 170 + } 171 +} 172 + 173 +int main(int argc, char **argv) 174 +{ 175 + static const char *const contexts[] = { 176 + "struct S { v:u8 } fn f(x:\n %s) {}", 177 + "struct S { v:u8 } fn f() ->\n %s {}", 178 + "struct S { v:u8 } struct T { member:\n %s }", 179 + "struct S { v:u8 } fn f() { let x:\n %s = 1; }", 180 + "fn f() -> u8 { return 1 as\n %s; }" 181 + }; 182 + static const char *const types[] = { 183 + "u8", "u16", "u32", "u64", "i8", "i16", "i32", "i64", "bool", "bytes", 184 + "cells", "S", "Missing", "pool", "handle", "unsafe", "mut", "", "[", 185 + "[bool", "[u8 1]", "[u8;", "[u8;n]", "[u8;0]", "[u8;1]", "[u8;64]", 186 + "[u8;65]", "[u8;`18446744073709551615`]", "[bytes;1]", "[cells;1]", 187 + "[free;1]", "[u8;1 free", "own", "own S", "own Missing", "own [u8;3]", 188 + "&", "& S", "& Missing", "&mut", "&mut S", "&mut Missing", 189 + "&mut [", "&mut [i64", "&mut [i64;", "&mut [i64;2", "&mut [i64;2]", 190 + "&mut [u8;0]", "&mut [u8;65]", "&mut [i64;2 free", "& mut pool" 191 + }; 192 + for (int i = 1; i < argc; ++i) file_case(argv[i]); 193 + unsigned before = lex_refusals; 194 + char src[256]; 195 + for (size_t i = 0; i < sizeof types / sizeof *types; ++i) { 196 + for (size_t j = 0; j < sizeof contexts / sizeof *contexts; ++j) { 197 + int n = snprintf(src, sizeof src, contexts[j], types[i]); 198 + if (n < 0 || (size_t)n >= sizeof src) abort(); 199 + compare(src, src, (size_t)n); 200 + } 201 + int n = snprintf(src, sizeof src, "fn f(x:\n %s", types[i]); 202 + if (n < 0 || (size_t)n >= sizeof src) abort(); 203 + compare(src, src, (size_t)n); 204 + } 205 + expression_cases(); 206 + statement_cases(); 207 + wide_for_range(); 208 + if (lex_refusals != before) abort(); /* All constructed cases must reach the parser. */ 209 + printf("OSC_PARSE_PARITY_PASS parsed=%u lexer_refusals=%u files=%d\n", passed, lex_refusals, argc - 1); 210 + return 0; 211 +} tests/compiler/test_osc_scalar_parity.c new file mode 100644 @@ -0,0 +1,92 @@ 1 +/* SPDX-License-Identifier: Apache-2.0 */ 2 +/* Exercise the retired 128-bit interpreter on canonical input independently 3 + * of both production consumers of the Omega scalar unit. */ 4 +#include "osc_interp_reference.c" 5 +#include "omega_api_decl.h" 6 + 7 +#include 8 +#include 9 +#include 10 + 11 +static OscRt runtime; 12 +static Ctx context = {.rt = &runtime}; 13 +static unsigned long checks; 14 + 15 +static unsigned reference(unsigned ins, unsigned op, OscScalar t, OscScalar other, 16 + uint64_t a, uint64_t b, uint64_t *result) 17 +{ 18 + if (setjmp(runtime.jb)) return runtime.trap_code; 19 + switch (ins) { 20 + case OSC_I_BIN: *result = do_bin(&context, op, t, other, a, b); break; 21 + case OSC_I_UN: *result = do_un(&context, op, t, a); break; 22 + case OSC_I_CAST: *result = do_cast(&context, other, t, a); break; 23 + case OSC_I_CMP: *result = do_cmp(op, t, a, b); break; 24 + default: abort(); 25 + } 26 + return 0; 27 +} 28 + 29 +static void check(unsigned ins, unsigned op, OscScalar t, OscScalar other, uint64_t a, uint64_t b) 30 +{ 31 + uint64_t got = 0, want = 0, code = 0; 32 + unsigned expected = reference(ins, op, t, other, a, b, &want); 33 + switch (ins) { 34 + case OSC_I_BIN: code = osc_alu_bin(op, t, a, b, &got); break; 35 + case OSC_I_UN: code = osc_alu_un(op, t, a, &got); break; 36 + case OSC_I_CAST: code = osc_alu_cast(other, t, a, &got); break; 37 + case OSC_I_CMP: got = osc_alu_cmp(op, t, a, b); break; 38 + default: abort(); 39 + } 40 + if (code != expected || (!code && got != want)) { 41 + fprintf(stderr, "FAIL ins=%u op=%u types=%u/%u a=%" PRIx64 " b=%" PRIx64 42 + " trap=%u/%" PRIu64 " result=%" PRIx64 "/%" PRIx64 "\n", 43 + ins, op, (unsigned)t, (unsigned)other, a, b, expected, code, want, got); 44 + exit(1); 45 + } 46 + ++checks; 47 +} 48 + 49 +static void pair(OscScalar t, uint64_t a, uint64_t b) 50 +{ 51 + for (unsigned op = OSC_B_ADD; op <= OSC_B_SHR; ++op) 52 + check(OSC_I_BIN, op, t, t, a, b); 53 + for (unsigned cc = OSC_C_EQ; cc <= OSC_C_GE; ++cc) 54 + check(OSC_I_CMP, cc, t, t, a, b); 55 +} 56 + 57 +static void unary(OscScalar t, uint64_t a) 58 +{ 59 + check(OSC_I_UN, OSC_U_NEG, t, t, a, 0); 60 + check(OSC_I_UN, OSC_U_BNOT, t, t, a, 0); 61 + for (OscScalar dest = OSC_T_U8; dest <= OSC_T_I64; ++dest) 62 + check(OSC_I_CAST, 0, t, dest, a, 0); 63 +} 64 + 65 +int main(void) 66 +{ 67 + for (unsigned i = 0; i <= 1; ++i) 68 + check(OSC_I_UN, OSC_U_LNOT, OSC_T_BOOL, OSC_T_BOOL, i, 0); 69 + for (OscScalar t = OSC_T_U8; t <= OSC_T_I64; ++t) { 70 + unsigned w = osc_scalar_width(t); 71 + uint64_t sign = UINT64_C(1) << (w - 1); 72 + uint64_t mask = w == 64 ? UINT64_MAX : (UINT64_C(1) << w) - 1; 73 + uint64_t values[] = {0, 1, 2, 3, w - 1, w, w + 1, sign - 2, sign - 1, sign, 74 + sign + 1, mask - 1, mask, UINT64_C(0x5555555555555555)}; 75 + unsigned count = w == 8 ? 256 : sizeof values / sizeof *values; 76 + for (unsigned i = 0; i < count; ++i) { 77 + uint64_t a = canon(t, w == 8 ? i : values[i]); 78 + unary(t, a); 79 + for (unsigned j = 0; j < count; ++j) 80 + pair(t, a, canon(t, w == 8 ? j : values[j])); 81 + for (OscScalar ct = OSC_T_U8; ct <= OSC_T_I64; ++ct) { 82 + for (size_t j = 0; j < sizeof values / sizeof *values; ++j) { 83 + uint64_t count_value = canon(ct, values[j]); 84 + check(OSC_I_BIN, OSC_B_SHL, t, ct, a, count_value); 85 + check(OSC_I_BIN, OSC_B_SHR, t, ct, a, count_value); 86 + } 87 + } 88 + } 89 + } 90 + printf("OSC_SCALAR_PARITY_PASS checks=%lu\n", checks); 91 + return 0; 92 +}