Commit graph

12 commits

Author SHA1 Message Date
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
Kevin Phoenix
f939c5b88c
Enable ruff isort rule (#6452)
* Enable ruff isort rule

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-06-02 14:48:07 -07:00
pre-commit-ci[bot]
563fb5f862
[pre-commit.ci] pre-commit autoupdate (#6025)
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.14.11 → v0.14.13](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.11...v0.14.13)
- [github.com/psf/black-pre-commit-mirror: 25.12.0 → 26.1.0](https://github.com/psf/black-pre-commit-mirror/compare/25.12.0...26.1.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-01-19 13:37:06 -07:00
Matt Borgerson
9689017c1b tests: Remove many @slow_test markers 2025-11-17 10:36:50 -07:00
Fish
15e1628482
Factory.callable: Take function as the first argument. (#5257)
* Factory.callable: Take function as the first argument.

* Type check test_callable.py.
2025-02-07 13:55:28 -07:00
Kevin Phoenix
867abd1d8b
Remove insn_text from block constructor (#5226)
* Remove insn_text from block constructor

* Fix keystone test
2025-01-29 20:38:05 -07:00
pre-commit-ci[bot]
48cdccd1fa
[pre-commit.ci] pre-commit autoupdate (#5047)
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.7.4 → v0.8.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.7.4...v0.8.3)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Rewrite lots of strings to be f-strings

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Kevin Phoenix <kevin@kphoenix.us>
2024-12-16 14:40:07 -07:00
Kevin Phoenix
4cc7d4a88c
Allow keystone tests to run on non-linux platforms (#4955)
* Allow keystone tests to run on non-linux platforms

* Improve lint
2024-10-14 13:38:58 -07:00
Kevin Phoenix
fa56ba3668
Use ruff TID252 to prevent reletive imports from parents (#4916) 2024-10-01 09:06:33 -07:00
Kevin Phoenix
ee464d0338
Adopt from __future__ import annotations (#4790) 2024-08-28 18:31:43 -07:00
Matt Borgerson
a066ac5d7c Replace uses of _model_concrete.value with concrete_value 2023-09-20 22:06:04 -07:00
Matt Borgerson
17bad29fa6 tests: Structure test files into directories
* Initial pass, loosely following angr package layout
* Many updates to use the 'common' module for binaries repo
* Some unused imports and log handlers are cleaned up
2023-09-08 16:05:33 -07:00