Closed regehr closed 4 months ago
It's correct because fptosi
gives poison if the value doesn't fit. Doing fptosi
in 64 bits will have the same behavior as the 32 bit version in src when the value fits.
If you flip src/tgt, then you get a counterexample.
argh thanks Nuno.
Alive with Z3 4.12.6 verifies this pair:
but I don't think it's right
I looked at the SMT queries and they seem plausible but I don't understand all of what's going on there. cc @zhengyang92