[Libre-soc-bugs] [Bug 196] Formal correctness proof needed for the IEEE754 FPU

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Fri May 13 22:43:42 BST 2022


https://bugs.libre-soc.org/show_bug.cgi?id=196

--- Comment #24 from Jacob Lifshay <programmerjake at gmail.com> ---
(In reply to Luke Kenneth Casson Leighton from comment #23)
> 21 seconds.
> 
>     $z3 -version
>     Z3 version 4.8.5 - 64 bit
> 
> 
> 
> lkcl at fizzy:~/src/libresoc/ieee754fpu$ time z3 -smt2 fpmul_test.smt2 
> should return unsat:
> sat
> dumping values in case it returned sat:
> ((a #x80000000)
>  (b #xff800000)
>  (p #x7f800002)
>  ((f32_to_fp a) (_ -zero 8 24))
>  ((f32_to_fp b) (_ -oo 8 24))
>  ((fp.mul RNE (f32_to_fp a) (f32_to_fp b)) (_ NaN 8 24))
>  ((f32_to_fp (f32_mul_rne a b)) (_ +oo 8 24))

ahh, i forgot to add the check for inf * 0 -> NaN.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list