
louise
Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.
Dernier runRéussi#1205 · main · 10 min 08 s
1Étoiles
0Forks
0Issues
Codegen: specialise and count only reachable functions (issue #114)
The specialiser (evidence::run_in) and Perceus (insert_rc_in, verify_in, borrow inference) now work on the functions the entries reach, as emission already did. hello's build: perceus 4.0 -> 0.1 ms, specialise 0.8 -> 0.2 ms (best of 9), which takes back most of what the prelude's tuple impls cost. Borrow inference sees only live closure targets, so a function that only dead code makes into a closure may now borrow: sound, since nothing live calls it through a closure. The C of tests/run is the same up to function numbers, but for 3 programs where that happens; the native tests and the leak oracle pass. A test checks that an unreachable function keeps its body and borrows nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Parents 874d356
7 fichiers modifiés, 79 ajouts, 24 suppressions
crates/louise_codegen_c/src/lib.rs+9−5crates/louise_core/src/evidence.rs+11−2crates/louise_perceus/src/borrow.rs+11−8crates/louise_perceus/src/lib.rs+20−7crates/louise_perceus/src/verify.rs+8−2crates/louise_perceus/tests/programs.rs+18−0docs/adr/0002-memory-model.md+2−0