tobogganSe connecter

louise

The Louise language: compiler, runtime, std, tooling

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

Codegen: range analysis through comparison switches, at uses (issue #191)

A switch on tl_int_compare's Order itself (fusion's counting loop) or on
tl_int_eq's Bool refines the arms, as the TagIs chain already did; a Not
in the chain negates the condition. And the ranges a *_unchecked op
consults are the operands' ranges at their arithmetic uses — where the
arm's refinement holds — joined per variable, not the binding site's:
a counter's guard bound no longer has to survive the parameter
fixpoint's widening (which snaps past the 2^30 multiply margin), so the
fused loop's x * 2 and i + 1 lose their checks.

olivier · il y a 1 mois · e4148247cd016dae7eed5d9e536c983a7ee3a2d0

Parents 0b0d58e

1 fichiers modifiés, 166 ajouts, 34 suppressions

Mcrates/louise_codegen_c/src/ranges.rs+166−34