angr/tests/factory
Kevin Phoenix d4a3f058e0
tests: sum floats sequentially in run_manyfloatsum_symbolic (#6509)
Since Python 3.12, builtin sum() uses Neumaier compensated summation for
floats, which is more accurate than the program's naive left-to-right
addition. The test constrains the program's sequential FP sum to equal 27.7
exactly, then asserted sum(args) == 27.7 — which additionally demands that
the model have no intermediate rounding error under compensated summation,
something the constraint does not guarantee. Sum with functools.reduce to
mirror the program's sequential addition.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-16 17:25:37 -07:00
..
block Enable ruff isort rule (#6452) 2026-06-02 14:48:07 -07:00
__init__.py tests: Structure test files into directories 2023-09-08 16:05:33 -07:00
test_argc.py Enable ruff isort rule (#6452) 2026-06-02 14:48:07 -07:00
test_argc_sym.py Enable ruff isort rule (#6452) 2026-06-02 14:48:07 -07:00
test_argv.py Enable ruff isort rule (#6452) 2026-06-02 14:48:07 -07:00
test_callable.py tests: sum floats sequentially in run_manyfloatsum_symbolic (#6509) 2026-06-16 17:25:37 -07:00
test_windows_args.py Enable ruff isort rule (#6452) 2026-06-02 14:48:07 -07:00