Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions bootstrap/omega/compiler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,10 @@ The manifest, not directory enumeration or path order, selects and orders D's
members. `mbx xtask source-closure` validates every
declared length, digest, source byte, path, strictly increasing stable
identity, and exact source inventory before concatenating bytes without separators.
The manifest materializes 1,811,233 bytes with SHA-256
`034ea4e45e502bc0b70ef8afdf90354ba4cfec5274bda500bf95e0f5aa1bad1f`.
The manifest materializes 1,815,058 bytes with SHA-256
`79ad4526b7ae6792577cdef7d351ac165104322b4005f71e2db67094e8af8797`.
The manifest itself is 11,099 bytes, SHA-256
`cbb4b48d0fe4f42d3169589bce8dd180f73c33c2d740bda21a4a50add1c641ec`;
`58e92859ab4cd5417b0af0b96c981af49308ed73c60b6e8abad21bd23a6517bc`;
`tools/bootstrap/omega/compiler_env.sh` checks both identities against every
materialization. The source-closure verifier checks the resulting packed bytes.
A digest binds source custody; it does not prove compiler correctness.
Expand Down Expand Up @@ -795,8 +795,9 @@ element type, layout stride, array length, collection, selector, access mode,
parent backing and bounds evidence. A call returning a copy record or an indexed record can supply a named field
in an rvalue. Each field suffix retains its base expression and name span. The
compiler resolves the field against that record declaration and applies its
checked field offset. Whole-record stores copy exactly one element while the
loan covers the parent array. Explicit shared or mutable removal of the array
checked field offset. Fields of statically indexed records can also be borrowed or written. Each
field keeps its declared bounds and writability. A literal selector borrows the
selected element. A computed selector conservatively borrows its backing array. Explicit shared or mutable removal of the array
shell's `Trapping` domain preserves element types
and closes its empty restoration debt. Reads use shared views and writes use
mutable views. A mutable incoming record or fixed array can also be forwarded to a shared parameter of the same referent. Its child loan remains live across later arguments and closes when the call returns. Bare fixed arrays of supported plain integers, Booleans and copy records
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ machine OmegaScalarCompiler::check_case_subject(
}
}
machine place() {
transition self.check_place(source, state_index, before, subject) {
transition self.check_place(source, state_index, before, subject, 0) {
1 -> local()
_ -> return 0
}
Expand Down
4 changes: 2 additions & 2 deletions bootstrap/omega/compiler/checking/entry_bounds.epsilon
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ machine OmegaScalarCompiler::decode_entry_predicate(
}
}
machine place(row: OmegaBinaryExpressionSyntax) {
transition self.check_place(source, state_index, 0, row.left) {
transition self.check_place(source, state_index, 0, row.left, 0) {
1 -> formal(row, self.place_roots[row.left])
_ -> return 0
}
Expand Down Expand Up @@ -202,7 +202,7 @@ machine OmegaScalarCompiler::decode_entry_predicate(
}
}
machine projected(left: i32, right: i32, kind: OmegaEntryBoundKind) {
transition self.check_place(source, state_index, 0, right) {
transition self.check_place(source, state_index, 0, right, 0) {
1 -> projected_type(left, right, kind, self.place_roots[right])
_ -> return 0
}
Expand Down
8 changes: 4 additions & 4 deletions bootstrap/omega/compiler/checking/shared_slices.epsilon
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ machine OmegaScalarCompiler::check_slice_range(
}
// Borrowing the whole array by reference keeps its fixed-array type.
machine fixed_reference() {
transition self.check_place(source, state_index, before, indexed) {
transition self.check_place(source, state_index, before, indexed, 0) {
1 -> fixed_type(self.fixed_array_row(self.place_types[indexed]))
_ -> return 0
}
Expand All @@ -129,7 +129,7 @@ machine OmegaScalarCompiler::check_slice_range(
}
}
machine fixed_base(collection: i32, range: OmegaRangeExpressionSyntax) {
transition self.check_index_base(source, state_index, before, collection) {
transition self.check_index_base(source, state_index, before, collection, expected / 100000 - 4) {
1 -> array(collection, range, self.indexable_array_row(self.place_types[collection], 0))
_ -> return 0
}
Expand Down Expand Up @@ -872,13 +872,13 @@ machine OmegaScalarCompiler::check_array_view_cast(@mutable self, source: @[u8],
}
}
machine borrowed_place(collection: i32) {
transition self.check_place(source, state, before, collection) {
transition self.check_place(source, state, before, collection, target / 100000 - 4) {
1 -> array(collection, self.fixed_array_row(self.place_types[collection]))
_ -> return 0
}
}
machine existing_reference() {
transition self.check_index_base(source, state, before, cast.value) {
transition self.check_index_base(source, state, before, cast.value, target / 100000 - 4) {
1 -> reference_root(self.place_roots[cast.value])
_ -> return 0
}
Expand Down
2 changes: 1 addition & 1 deletion bootstrap/omega/compiler/checking/stores.epsilon
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ machine OmegaScalarCompiler::check_store_value(@mutable self, source: @[u8], own
}
machine OmegaScalarCompiler::check_store_operands(@mutable self, source: @[u8], owner: i32, state: i32,
before: i32, target: i32, value: i32, at: i32) -> i32 {
transition self.check_place(source, state, before, target) { 1 -> access() _ -> return 0 }
transition self.check_place(source, state, before, target, 1) { 1 -> access() _ -> return 0 }
machine access() {
transition self.place_writable[target] == 1 { true -> available() _ -> reject() }
}
Expand Down
10 changes: 5 additions & 5 deletions bootstrap/omega/compiler/omega_compiler.epsilon.sources
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ member 0000000000000000000000000000000000000000000000000000000000000003 1740 0ef
member 0000000000000000000000000000000000000000000000000000000000000004 43076 95e2e0e2a8036113396dd72b705d2e5f666ba3cc1d0675f6e8e2ff16d2fa32bd source-to-tokens/scan.epsilon
member 0000000000000000000000000000000000000000000000000000000000000005 625617 a9ba6da2e775caa5ebe4e27762175a93555d95c47d80988ccced7c47d35a7639 parser.epsilon
member 0000000000000000000000000000000000000000000000000000000000000006 31249 b600ac32a84478b97fee24638a43db18396dde3f518fee0361b3c7775329fc77 alpha/tape.epsilon
member 0000000000000000000000000000000000000000000000000000000000000007 440758 14c515325680732b5c40a43d8c078f62f2867a654a75c34733c1bdb9ae873cd3 scalar_compilation.epsilon
member 0000000000000000000000000000000000000000000000000000000000000007 444503 de050c5a85814ce08ed75f7185d2170ecc7f2b1617e3c926b28d795e432ccd33 scalar_compilation.epsilon
member 0000000000000000000000000000000000000000000000000000000000000008 14092 8e72e69f6c7548c52a51a6f8f9124942bc95f88d8f4aba777c2a2a12e5b4b91f outcome.epsilon
member 0000000000000000000000000000000000000000000000000000000000000009 6709 69ada1de631d77c87e70c86857b4648e8cd02edf611b8dd698e6277ed345967d source_set.epsilon
member 000000000000000000000000000000000000000000000000000000000000000a 27347 2db7c3d8504bf869e6b46489ff6bfe59acce5ee222b9053aea6e58ee171dea00 resolution/declarations.epsilon
member 000000000000000000000000000000000000000000000000000000000000000b 39972 b2ca3e175321da34e7987d31eeac1edf08936849837e88df6c001104c2bed7c5 resolution/services.epsilon
member 000000000000000000000000000000000000000000000000000000000000000c 47367 afe912387e7375db77640d16c7f97341ca2334ee0a880bba077118dc7c2f48c8 construction/units.epsilon
member 000000000000000000000000000000000000000000000000000000000000000d 16339 e915f49a3090b77227b9a794eb3c040087cf2143e09105e0ee54632ce1b88dea resolution/providers.epsilon
member 000000000000000000000000000000000000000000000000000000000000000e 45711 183c8202698644f40179650cf76561c36b2501bb4a26be58f038eb285c25797f checking/shared_slices.epsilon
member 000000000000000000000000000000000000000000000000000000000000000e 45779 4dd80682e2c9171f189e1ec97b95dc2b883d2145d97c43ec22744741323735c5 checking/shared_slices.epsilon
member 000000000000000000000000000000000000000000000000000000000000000f 29317 9870c6744c195eb9941c5310423a802c4e8107258d3ea18b76863ec6a8b710e2 construction/build.epsilon
member 0000000000000000000000000000000000000000000000000000000000000010 10652 2c433571125435bb6013f1935605f3e3a0a98bc03842ea608ee2373bb5b49a0e checking/case_requirements.epsilon
member 0000000000000000000000000000000000000000000000000000000000000010 10655 0949aaa08d0fa89564e18612c8f2834c4c188cbc22e8b9b5bd04ed3dde6fb74a checking/case_requirements.epsilon
member 0000000000000000000000000000000000000000000000000000000000000011 7403 8ec37d9b06a6e484bb1f080745cb1672403fd51c129d1081fcf50e30b43aaf0b construction/dependencies.epsilon
member 0000000000000000000000000000000000000000000000000000000000000012 9567 c7762abd5333d9c8d65232b01eefdf78b885ce29e93f16d3390287a402592e3d parser/file_imports.epsilon
member 0000000000000000000000000000000000000000000000000000000000000013 7939 ca81a735873dbc15dab299a29ed311382fa4a388ddc8431304960907abedfdbd resolution/file_imports.epsilon
Expand All @@ -30,7 +30,7 @@ member 000000000000000000000000000000000000000000000000000000000000001c 4834 8f9
member 000000000000000000000000000000000000000000000000000000000000001d 12385 3c0ee1b6e0ca72199d8b55dd4c2f96d53dd5eb4a358372f7419c55068bf70f5f alpha/shared_slices.epsilon
member 000000000000000000000000000000000000000000000000000000000000001e 2188 082c8b004141c8d58ce8fdcfbc81539de456788b063608964eebf3f2f873d7c0 checking/ordinary_calls.epsilon
member 000000000000000000000000000000000000000000000000000000000000001f 6960 5b182ad7696fd95c62ff7f80ecfc21f79d8b081106eb1b68fcfe36c72dc56a4b checking/word_bounds.epsilon
member 0000000000000000000000000000000000000000000000000000000000000020 29912 1617a5453c1b80f21a755aa4dff8c50a7692cf37f73d59b57e1c5062f1917541 checking/entry_bounds.epsilon
member 0000000000000000000000000000000000000000000000000000000000000020 29918 ca7376a1e51dcd8d6dd276b2979d2156aa80c166b08ab94b7e19e9f0bacee004 checking/entry_bounds.epsilon
member 0000000000000000000000000000000000000000000000000000000000000021 10366 ac443ce9b16f4085c8ff768d679ccd01e8a6205e6e8b5d63dfd8c61a78c1b3c3 checking/invocation_cycles.epsilon
member 0000000000000000000000000000000000000000000000000000000000000022 12619 1700700a488d06cb52ebb4b01f0c76ee4ca9701f221887e7f1116e0f945a3988 checking/branch_facts.epsilon
member 0000000000000000000000000000000000000000000000000000000000000023 10894 23bd6fe3954567fa63a81d6f27ade9ac865d06fc7bdef8774f507c648080d747 checking/guard_comparisons.epsilon
Expand All @@ -49,7 +49,7 @@ member 000000000000000000000000000000000000000000000000000000000000002f 1275 eec
member 0000000000000000000000000000000000000000000000000000000000000030 2996 c189261a0fbadbb0ffd3eb55301d77c76573d1bcb8e7fa9d15222f1401787618 resolution/byte_observations.epsilon
member 0000000000000000000000000000000000000000000000000000000000000031 5705 c32a861511ea4608ea8e409a436edec01f98ed33237aca448e466432b12b5fb5 alpha/byte_observations.epsilon
member 0000000000000000000000000000000000000000000000000000000000000032 5962 de8d72229ece1034a13e425e87c824fc138dc1adafc37a5addfbacb11a9296b6 resolution/type_aliases.epsilon
member 0000000000000000000000000000000000000000000000000000000000000033 5300 e2762c27ee4c6e0076daf0949462b574ecca8e24bc8d5e1032a9ee38d74b1770 checking/stores.epsilon
member 0000000000000000000000000000000000000000000000000000000000000033 5303 d758300c56faf3d67c2f0b20e294243799023ec48fe2aefe1c4c54261a99bc35 checking/stores.epsilon
member 0000000000000000000000000000000000000000000000000000000000000034 6542 2f2d7eb70a668273ef554c8bab1ce86f271622cf1995aa838f4de6a9ced801e3 checking/transition_blocks.epsilon
member 0000000000000000000000000000000000000000000000000000000000000035 4884 fedb94079ff841b7b7fd90f63ff2e69df4b7ffbfe693be19fe56e944702153c2 alpha/transition_blocks.epsilon
member 0000000000000000000000000000000000000000000000000000000000000036 14106 fd66b0587778e2bd59c6aa22cad1863b994f712cf7daca8aec4ba215e48e40e6 checking/slice_extent.epsilon
Expand Down
Loading
Loading