You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
/ over two divisible int variables yields float instead of int #46
area:typesType inference / representation / VRAbugSomething isn't workingneeds-designNeeds a design/epic, not a local fixwrong-answerCompiles and runs, output differs from php
/ over two divisible int variables yields float instead of int.
Also listed in the docs/ROADMAP.md Tier 1 gap matrix.
Repro
<?php$a = 6;
$b = 2;
var_dump($a / $b);
Expected (php 8.5)
int(3)
Actual (manticore 10affa68, macOS arm64)
float(3)
Tracking
Known-bug repro: tests/aot/repro/wrong/int_div_exact.php — bash tests/aot/xfail.sh -k int_div_exact reports XFAIL while this is open and XPASS once it is fixed; then move the repro into tests/aot/cases/ and close this issue.
Scope: result-type design./ over two int variables is always typed float; php yields int when divisible. Needs an int|float result type (or VRA / runtime-tagged result) and cascade through InferTypes. Skipped in batch C.
area:typesType inference / representation / VRAbugSomething isn't workingneeds-designNeeds a design/epic, not a local fixwrong-answerCompiles and runs, output differs from php
Activity
blacktrs commentedon Oct 13, 2026
Scope: result-type design.
/over two int variables is always typed float; php yields int when divisible. Needs an int|float result type (or VRA / runtime-tagged result) and cascade through InferTypes. Skipped in batch C.