tobogganSe connecter

louise

Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.

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>

olivier · il y a 1 mois · 4d2d7eedd93a66f73384ca117f90b61691254047

Parents 874d356

7 fichiers modifiés, 79 ajouts, 24 suppressions

Mcrates/louise_codegen_c/src/lib.rs+9−5
Mcrates/louise_core/src/evidence.rs+11−2
Mcrates/louise_perceus/src/borrow.rs+11−8
Mcrates/louise_perceus/src/lib.rs+20−7
Mcrates/louise_perceus/src/verify.rs+8−2
Mcrates/louise_perceus/tests/programs.rs+18−0