Repository navigation
Commit 5a8ea9c
committed
Phase 5.B c22b-api amend: API-6 operand cleanup with actual operands.
Per gatekeeper 14:42:25Z BLOCK on c22b-api ab60a4d PASS-(b) {6}:
test_operand_cleanup was passing kCall with no operands so the
variadic pack was empty + addOperands was never called with operand
content; the cleanup cascade through lir_operand_free was not
exercised.
Amended: each cycle now allocates with two Imm{} inputs (k64bit +
k32bit) which actually invoke allocateImmediateInput per operand.
delete then cascades cleanup through Instruction dtor ->
lir_instruction_destroy -> per-input lir_operand_free.
getNumInputs()==2 assertion confirms operands were attached
pre-delete (proves the operand-cleanup path is the one being
exercised).
Counter-instrumentation alternative deferred per pythia 14:05:34Z +
supervisor 14:05:55Z heads-up (would modify production
lir_operand_free, borderline-violates Option A zero-compile-flag-
change attestation per supervisor 13:31:11Z 2-class ARM64 rule).
Standalone test passing without crash + getNumInputs assertion
substitutes for compile-time counter; valgrind/ASAN external if
needed.
Files: 1 modified, ~12 LOC delta.1 parent ab60a4d commit 5a8ea9c
1 file changed
Lines changed: 15 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
57 | 64 | | |
58 | 65 | | |
59 | 66 | | |
60 | 67 | | |
61 | 68 | | |
62 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
63 | 72 | | |
| 73 | + | |
64 | 74 | | |
65 | 75 | | |
66 | 76 | | |
| |||
0 commit comments