Files
aji/tests/conformance/reject-twins.json
T

314 lines
12 KiB
JSON

{
"version": 1,
"cases": {
"phase0/reject/block_argument_type.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a71",
"rule": "Explicit block arguments are generated mechanics. A wrong generated argument type is a compiler defect, not authorable source."
},
"phase0/reject/branch_arity.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a71",
"rule": "Explicit target argument arity is generated mechanics; malformed lowered targets are compiler defects."
},
"phase0/reject/call_argument_type.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a710",
"rule": "The source type/signature rule rejects before AIR verification, using its prescribed E7xxx code; this does not satisfy the same-code criterion.",
"analogues": [
{
"source": "source/typecheck/call_argument.aji",
"codes": [
"E7005"
],
"fields": {
"expected": "u64",
"found": "bool"
}
}
]
},
"phase0/reject/double_definition.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a71",
"rule": "SSA definition identity is generated; source shadowing is a different name rule."
},
"phase0/reject/duplicate_feature.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a79",
"rule": "Source does not declare an AIR features header; lowering generates its closure."
},
"phase0/reject/lossy_widen.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a710",
"rule": "The source type/signature rule rejects before AIR verification, using its prescribed E7xxx code; this does not satisfy the same-code criterion.",
"analogues": [
{
"source": "source/typecheck/lossy_widen.aji",
"codes": [
"E7005"
],
"fields": {}
}
]
},
"phase0/reject/missing_dependency.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a79",
"rule": "Source does not declare an AIR features header; lowering generates its closure."
},
"phase0/reject/missing_terminator.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a71",
"rule": "Block terminators are generated, and malformed lowered CFG is a compiler defect."
},
"phase0/reject/operand_type_mismatch.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a710",
"rule": "The source type/signature rule rejects before AIR verification, using its prescribed E7xxx code; this does not satisfy the same-code criterion.",
"analogues": [
{
"source": "source/typecheck/binary_mixed_widths.aji",
"codes": [
"E7005"
],
"fields": {
"expected": "u64",
"found": "u8"
}
}
]
},
"phase0/reject/recursive_type.air": {
"kind": "same_code",
"site": "declaration",
"spec": "docs/spec/15-source-language.md \u00a71",
"rule": "Node contains itself by value; source declaration validation retains E1003 (Q-043/Q-044).",
"lowering": "rejected"
},
"phase0/reject/terminator_mid_block.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a71",
"rule": "Instruction placement after an AIR terminator is generated CFG structure."
},
"phase0/reject/too_many_params.air": {
"kind": "same_code",
"site": "function",
"spec": "docs/spec/08-verifier.md",
"rule": "The same deterministic budget is exceeded, with identical limit/max/found/type facts."
},
"phase0/reject/unknown_block.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a71",
"rule": "Source has no named AIR block targets; generated resolution failure is a compiler defect."
},
"phase0/reject/unknown_feature.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a79",
"rule": "Source does not declare an AIR features header; lowering generates its closure."
},
"phase0/reject/unsupported_version.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a71",
"rule": "Source has no AIR format-version header."
},
"phase0/reject/use_not_dominated.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a71",
"rule": "Source has no explicit SSA dominance edges; malformed generated uses are compiler defects."
},
"phase1/reject/alloc_outside_entry.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a71",
"rule": "local.alloc placement is chosen by lowering; source has no instruction-placement operation."
},
"phase1/reject/borrow_return_without_from.air": {
"kind": "source_error",
"spec": "docs/spec/15-source-language.md \u00a719",
"rule": "The source type/signature rule rejects before AIR verification, using its prescribed E7xxx code; this does not satisfy the same-code criterion.",
"analogues": [
{
"source": "source/borrow_returns/missing_from.aji",
"codes": [
"E7006"
],
"fields": {
"reason": "invalid_borrow_return"
}
}
]
},
"phase1/reject/feature_not_declared.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a79",
"rule": "Source does not declare an AIR features header; lowering generates its closure."
},
"phase1/reject/frame_escape.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/08-verifier.md \u00a711.3",
"rule": "A returned borrow points into local frame storage, despite the declared parameter origin."
},
"phase1/reject/frame_too_large.air": {
"kind": "same_code",
"site": "function",
"spec": "docs/spec/08-verifier.md",
"rule": "The same deterministic budget is exceeded, with identical limit/max/found/type facts."
},
"phase1/reject/le_is_not_a_fact.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a75",
"rule": "A source <= condition uses checked indexing; only the specified strict < bounds form requests proven indexing."
},
"phase1/reject/mut_and_shared.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/08-verifier.md \u00a711.2",
"rule": "A shared whole-place borrow is created while an exclusive whole-place borrow is live."
},
"phase1/reject/read_uninitialized.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a74",
"rule": "Source local declarations require an initializer; there is no uninitialized frame-local declaration."
},
"phase1/reject/size_overflow.air": {
"kind": "same_code",
"site": "function",
"spec": "docs/spec/08-verifier.md",
"rule": "The same deterministic budget is exceeded, with identical limit/max/found/type facts."
},
"phase1/reject/value_too_large.air": {
"kind": "same_code",
"site": "function",
"spec": "docs/spec/08-verifier.md",
"rule": "The same deterministic budget is exceeded, with identical limit/max/found/type facts."
},
"phase2/reject/own_free_while_borrowed.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/03-memory-model.md",
"rule": "The same owning-resource consumption or whole-place borrow conflicts with a live borrow."
},
"phase2/reject/own_use_after_free.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/03-memory-model.md",
"rule": "A closed/freed resource is borrowed again."
},
"phase2/reject/region_destroy_with_live_reference.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/03-memory-model.md",
"rule": "The same region operation would invalidate a live allocation reference."
},
"phase2/reject/region_leak.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/06-resources-and-errors.md \u00a76.3",
"rule": "An owned region reaches return without region.destroy."
},
"phase2/reject/region_reset_with_live_reference.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/03-memory-model.md",
"rule": "The same region operation would invalidate a live allocation reference."
},
"phase2/reject/resource_close_twice_after_error.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/06-resources-and-errors.md",
"rule": "The same resource is consumed twice."
},
"phase2/reject/resource_close_while_borrowed.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/06-resources-and-errors.md",
"rule": "The same owning-resource consumption or whole-place borrow conflicts with a live borrow."
},
"phase2/reject/resource_join_mismatch.air": {
"kind": "same_code",
"site": "block",
"spec": "docs/spec/08-verifier.md \u00a711.4",
"rule": "The same file is closed on one incoming edge and still live on another."
},
"phase2/reject/resource_use_after_close.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/06-resources-and-errors.md",
"rule": "A closed/freed resource is borrowed again."
},
"phase3/reject/cancel_join_keeps_loans.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md",
"rule": "The lent borrow is ended while its task remains unjoined; the creating spawn is retained.",
"required_ops": {
"task.join.cancel": 1
}
},
"phase3/reject/cancel_join_twice_keeps_spawn.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md",
"rule": "The lent borrow is ended while its task remains unjoined; the creating spawn is retained.",
"required_ops": {
"task.join.cancel": 2
}
},
"phase3/reject/tasks_end_lent_borrow.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md",
"rule": "The lent borrow is ended while its task remains unjoined; the creating spawn is retained."
},
"phase4/reject/arc_release_twice.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/03-memory-model.md",
"rule": "The same resource is consumed twice."
},
"phase4/reject/frozen_leak.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/03-memory-model.md \u00a723",
"rule": "An owned frozen graph reaches return without frozen.release."
},
"phase4/reject/island_use_after_freeze.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/03-memory-model.md",
"rule": "An island is borrowed after freezing transferred its ownership."
},
"phase5/reject/cmpxchg_failure_release.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md",
"rule": "The same atomic operation rejects the same ordering and allowed set."
},
"phase5/reject/fence_relaxed.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md",
"rule": "The same atomic operation rejects the same ordering and allowed set."
},
"phase5/reject/load_release.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md",
"rule": "The same atomic operation rejects the same ordering and allowed set."
},
"phase5/reject/store_acquire.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md",
"rule": "The same atomic operation rejects the same ordering and allowed set."
},
"phase5/reject/take_while_borrowed.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md",
"rule": "The same owning-resource consumption or whole-place borrow conflicts with a live borrow."
}
}
}