← Back to Pull requests

feat: add new `AnyNumber` for type-unstable numbers #1193

Open
AayushSabharwal opened this pull request with 1274 lines diff across 23 files
View on GitHub
AayushSabharwal AayushSabharwal commented on Nov 13, 2026 15:49 UTC
Author

CC @oscardssmith

Diff: 1274 lines (+1196 / -78) across 23 files Reviewer: oscardssmith Review duration: 30851m
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.78) × (1 − Review Confidence (0.77)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.78 · 1274 lines diff across 23 files
0.78
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.58 · 2 substantive comment(s)
0.58
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
76%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.400
Mass File Touch mass_file_touch
0.080
Empty Description empty_description
0.060
Real PR Conversation Timeline
4 items
oscardssmith oscardssmith commented on Nov 16, 2026 18:19 UTC
Reviewer

Robot review of a4a3c3f6. Findings are from reading the code and the CI logs; nothing was run locally. Roughly ordered by severity.

Blocking / CI-confirmed

1. src/anynumber.jl:11 — package does not load on Julia 1.10/1.11. struct AnyNumber inside module AnyNumber is an invalid constant redefinition there (LoadError: invalid redefinition of constant AnyNumber.AnyNumber). The 1.10 and 1.11 Core jobs, the QA jobs on those versions and Benchmarks (lts) all fail this way, while [compat] still allows 1.10. Renaming the module (e.g. AnyNumbers) fixes it and also makes export AnyNumber usable; today using SymbolicUtils.AnyNumber binds the module, not the type.

2. src/types.jl:250 — AddMul.coeff and ACDict values now hold AnyNumber wrappers, which breaks downstream readers of these fields. Symbolics reads p.coeff and (k, v) in p.dict directly (coeff, _gather_split, gather_factor, the Latexify ext). x.coeff isa Real/Integer/Rational is now false and the wrapper propagates through arithmetic. The Symbolics.jl/Core downstream job has 30 failures (e.g. Symbolics.coeff(gx, x) returns 0, symbolic_solve_ode returns 1//3 instead of 11//9, latexify output changes). ModelOrderReduction also errors, probably for the same reason (not traced). There is no version bump or upgrade note.

3. src/types.jl:360 — Base.convert(::Type{Union{AnyNumber.AnyNumber, AbstractArray}}, x::Number) is type piracy and fails the Aqua piracy test (QA job). It exists only so ConstructionBase.setproperties can pass coeff = 4 to the positional constructor; calling _wrap_coeff(get(p, :coeff, coeff)) at types.jl:661 removes the need for it.

4. src/anynumber.jl:283 — Base.deepcopy_internal(x::AnyNumber, dict) = x extends a non-public Base function (QA: all_qualified_accesses_are_public fails). It is also not a deep copy when other holds a mutable number: deepcopy(AnyNumber(big"1")) shares the BigInt, so the comment claiming an immutable AnyNumber is its own deep copy is wrong for the other path.

5. src/SymbolicUtils.jl:251 — @public AnyNumber has no docs entry (QA: public API is rendered in docs fails). docs/src/manual/variants.md:163 still shows const coeff::Any and describes coeff = 2, and docs/src/upgrade.md has no note.

6. src/anynumber.jl:299 — the comment text UnionAlls fails the typos spellcheck job. Reword it or add an allow entry to .typos.toml.

Correctness

7. src/anynumber.jl:460 — the mixed forwards f(a::AnyNumber, b::Number) = f(a, _wrap(b)) absorb every Number subtype, including symbolic wrappers such as Symbolics.Num <: Real. x.coeff num gives AnyNumber(other = Num(...)) rather than a Num; gather_factor then returns an AnyNumber, and Symbolics.coeff(::AnyNumber, x) takes the p isa Number branch and returns 0. For functions where @number_methods(Num, ...) defines f(a::Number, b::Num) (max, min, atan, mod, rem, hypot, copysign), these should also be method ambiguities.

8. src/safe_ctors.jl:264 — Div{T} passes the wrapped coeff to safe_div, whose a isa Integer checks are now always false. (big(2)^70 x) / 3 falls through to a / b and the coefficient becomes a BigFloat instead of an exact Rational{BigInt}. A small BigInt, Int128 or UInt coefficient goes through Int(a) and yields Rational{Int} instead of Rational{BigInt}. The two neighbouring branches were patched with unwrap(c1)/unwrap(c2); this one was missed.

9. src/polyform.jl:124 (and :139) — MA.copy_if_mutable(coeff) is now a no-op because coeff is an AnyNumber. The defensive copy of BigInt/BigFloat/Rational{BigInt} coefficients before in-place polynomial arithmetic is lost, so MA.operate!! could mutate the coefficient of a hash-consed expression under its cached hash. I did not confirm the mutation path end to end in DynamicPolynomials. Fix: MA.copy_if_mutable(unwrap(coeff)).

10. src/anynumber.jl:346 — the absorbing promote_rule(::Type{AnyNumber}, ::Type{<:Number}) = AnyNumber is ambiguous with other packages' absorbing rules, e.g. Symbolics' promote_rule(::Type{T}, ::Type{Num}) where T<:Number. promote_type(AnyNumber, Num) (reached by [x.coeff, num], promote(an, num), generic 3-argument fallbacks) should throw, and Symbolics' Aqua ambiguity test would start failing.

11. src/types.jl:606 — unwrap knows about AnyNumber but symtype does not. Operators that compute promote_symtype before unwrapping see the type AnyNumber: (2x).coeff / y gets symtype AnyNumber in _fslash_worker, and (2x).coeff // y throws a MethodError because AnyNumber <: Rat is false even when the stored value is an Int. ^(a::Number, b::BasicSymbolic) and the @number_methods binary ops have the same problem; only the +/ workers unwrap first.

12. src/hashconsing.jl:117 — isequal_coeffs calls bare isequal(a, b) on the mixed concrete/other path, dropping the try/catch that isequal_somescalar provided. With a number type whose isequal against plain reals throws (interval types are the likely case; not checked against a specific package), isequal(x + 1, x + iv) now propagates the exception instead of returning false.

13. src/anynumber.jl:310 — convert(::Type{Number}, a::AnyNumber) (and Real/Integer/...) returns the unwrapped value, breaking convert(T, x::T) === x for an AnyNumber <: Number. Number[an], Ref{Number}(an) or a c::Number field silently strip the wrapper while convert(Any, an) keeps it, and convert(Real, AnyNumber(1 + 2im)) throws InexactError.

14. src/anynumber.jl:23 — the Val{false} inner constructor accepts ConcreteT values and other AnyNumbers. AnyNumber(1.5, Val(false)) stores a Float64 in other; against the canonical AnyNumber(1.5), isequal_coeffs(..., full = true) returns false because the flags differ, yet _hash_coeff gives both the same hash, so hash consing keeps two objects for structurally identical expressions. Restricting the constructor's argument type, or asserting, would close it.

15. test/basics.jl:1297 — @test v2.coeff !== 0.5 became vacuous: an AnyNumber is never === a Float64, so the guard that (1//2)x does not pick up the cached 0.5 coefficient no longer tests anything. Only the next line was updated to unwrap.

Design

16. src/types.jl:345 — storing the wrapper in public fields forces every reader to unwrap. Unwraps were added in _isnegative, _is_neg_term, _has_neg_leading, ratcoeff, two Div branches, ^, get_mul_coefficient and two polyform helpers; the safe_div branch (item 8) and all downstream readers (item 2) were missed, and every future coeff isa Real check is a silent false. Keeping AnyNumber to the worker accumulators, or exposing raw values at the accessor/match boundary, would remove this class of bug.

17. src/anynumber.jl:192 — the module defines a very large Base method surface (about 80 unary and 31 binary ops, 3-argument ops with 125 union-split leaves each, typed rounding and conversion for 23 types), all inside @recompile_invalidations. SymbolicUtils itself needs roughly + - / ^ abs, comparisons, iszero/isone/isinteger, hash, isequal and Int. The rest is precompile/load cost and ambiguity surface; I did not measure it.

18. src/anynumber.jl:46 — only 0, 1 and -1 share a box. With Dict{BasicSymbolic, Number}, Ints in -512..511 used Julia's preallocated boxes; now x^2, 2x, 3x each allocate an AnyNumber per dict entry and per intermediate. A small table of shared boxes (say -8..8) would cover the common exponents.

Cleanup

19. src/utils.jl:26 — safe_isinteger(::AnyNumber) is built with the internal AnyNumber._dispatch_tree plus @eval instead of the module's own @unionsplit macro, as Base.hash and Base.show in anynumber.jl already do. The existing comment on hash_somescalar notes that @eval makes Revise error.

20. src/hashconsing.jl:768 — hash_bsimpl duplicates _hash_coeff (defined at :665) and writes the hash_addmuldict(...) expression twice. The is_concrete ? concrete : other ternary is also hand-inlined at hashconsing.jl:666, :774 and terminterface.jl:211 instead of calling AnyNumber._value.

21. Dead code: _ANY_NEGONE (src/types.jl:355) is never used, and _widen_coeff(::AnyNumber) (src/polyform.jl:79) is unreachable because _maybe_widen(::AnyNumber, ...) unwraps first.

22. src/anynumber.jl:164 — top-level tree = _dispatch_tree(...) assignments leave a non-const global tree in the module, and later file-scope for loops assign to the same name. utils.jl already uses let tree = ... for the same job.

23. src/anynumber.jl:38 — the _wrap docstring is separated from _wrap by comments and const definitions, so it attaches to const _ZERO. It should sit directly above @inline function _wrap at line 46.

24. src/anynumber.jl:26 — docstrings use free-form signatures (_wrap(x) -> AnyNumber, _value(a::AnyNumber), @unionsplit v body) rather than the DocStringExtensions convention used elsewhere in the repo; isequal_coeffs in this PR already uses $TYPEDSIGNATURES.

github-actions[bot] github-actions[bot] commented on Nov 20, 2026 17:56 UTC
Bot

Benchmark Results (Julia vlts)

<details><summary>Time benchmarks</summary>

| | master | ca58e1dba3e7ae... | master / ca58e1dba3e7ae... |
|:----------------------------------------------------|:------------------:|:------------------:|:--------------------------:|
| arithmetic/2-arg mul | 7.39 ± 0.47 μs | 7.18 ± 0.67 μs | 1.03 ± 0.12 |
| arithmetic/add_100k_term_sums | 0.0578 ± 0.0071 s | 23.3 ± 3.5 ms | 2.49 ± 0.48 |
| arithmetic/addition | 0.0332 ± 0.0015 ms | 29.5 ± 0.63 μs | 1.13 ± 0.056 |
| arithmetic/affine_chain_k10 | 0.367 ± 0.04 s | 0.403 ± 0.011 s | 0.909 ± 0.1 |
| arithmetic/division | 14.9 ± 0.6 μs | 13.2 ± 0.58 μs | 1.13 ± 0.067 |
| arithmetic/multiplication | 27 ± 1.9 μs | 22.2 ± 3.2 μs | 1.22 ± 0.2 |
| codegen/arrayop_nested/fast_toexpr | 7.22 ± 0.94 μs | 7.45 ± 1.5 μs | 0.97 ± 0.23 |
| codegen/arrayop_nested/toexpr | 0.0389 ± 0.0042 ms | 0.0357 ± 0.004 ms | 1.09 ± 0.17 |
| codegen/deep_poly/deg=10:fast_toexpr | 0.0639 ± 0.0056 ms | 0.0654 ± 0.0074 ms | 0.978 ± 0.14 |
| codegen/deep_poly/deg=10:toexpr | 0.0535 ± 0.0031 ms | 0.0568 ± 0.0087 ms | 0.941 ± 0.15 |
| codegen/deep_poly/deg=14:fast_toexpr | 0.128 ± 0.018 ms | 0.125 ± 0.017 ms | 1.03 ± 0.2 |
| codegen/deep_poly/deg=14:toexpr | 0.0932 ± 0.0059 ms | 0.0957 ± 0.0093 ms | 0.974 ± 0.11 |
| codegen/deep_poly/deg=6:fast_toexpr | 29.8 ± 2.8 μs | 0.0348 ± 0.0038 ms | 0.854 ± 0.12 |
| codegen/deep_poly/deg=6:toexpr | 24.1 ± 1.5 μs | 28.2 ± 1.4 μs | 0.856 ± 0.068 |
| codegen/makearray/n=100:fast_toexpr | 0.0577 ± 0.0051 ms | 0.0601 ± 0.0088 ms | 0.96 ± 0.16 |
| codegen/makearray/n=100:toexpr | 0.354 ± 0.025 ms | 0.358 ± 0.035 ms | 0.988 ± 0.12 |
| codegen/makearray/n=200:fast_toexpr | 0.1 ± 0.015 ms | 0.0989 ± 0.015 ms | 1.01 ± 0.22 |
| codegen/makearray/n=200:toexpr | 0.504 ± 0.037 ms | 0.51 ± 0.048 ms | 0.988 ± 0.12 |
| codegen/makearray/n=400:fast_toexpr | 0.209 ± 0.033 ms | 0.206 ± 0.03 ms | 1.02 ± 0.22 |
| codegen/makearray/n=400:toexpr | 0.867 ± 0.13 ms | 0.854 ± 0.11 ms | 1.01 ± 0.2 |
| codegen/wide_deep_poly/fast_toexpr | 0.433 ± 0.06 ms | 0.452 ± 0.091 ms | 0.959 ± 0.23 |
| codegen/wide_deep_poly/toexpr | 0.315 ± 0.016 ms | 0.353 ± 0.051 ms | 0.892 ± 0.14 |
| codegen/wide_poly/n=100:fast_toexpr | 0.228 ± 0.026 ms | 0.235 ± 0.032 ms | 0.971 ± 0.17 |
| codegen/wide_poly/n=100:toexpr | 0.196 ± 0.012 ms | 0.185 ± 0.029 ms | 1.06 ± 0.18 |
| codegen/wide_poly/n=25:fast_toexpr | 0.0551 ± 0.0033 ms | 0.0518 ± 0.0072 ms | 1.06 ± 0.16 |
| codegen/wide_poly/n=25:toexpr | 0.0435 ± 0.0026 ms | 0.0452 ± 0.0051 ms | 0.963 ± 0.12 |
| codegen/wide_poly/n=50:fast_toexpr | 0.103 ± 0.009 ms | 0.105 ± 0.011 ms | 0.984 ± 0.13 |
| codegen/wide_poly/n=50:toexpr | 0.0868 ± 0.0081 ms | 0.0899 ± 0.011 ms | 0.966 ± 0.15 |
| irstructure/search_variables/common:IRStructure | 0.281 ± 0.027 ms | 0.274 ± 0.0067 ms | 1.03 ± 0.1 |
| irstructure/search_variables/common:reference | 0.544 ± 0.026 ms | 0.547 ± 0.022 ms | 0.995 ± 0.063 |
| irstructure/search_variables/dissimilar:IRStructure | 0.0708 ± 0.0016 ms | 0.0686 ± 0.0022 ms | 1.03 ± 0.041 |
| irstructure/search_variables/dissimilar:reference | 0.129 ± 0.01 ms | 0.136 ± 0.0078 ms | 0.953 ± 0.094 |
| irstructure/subset_ir/large | 2.27 ± 0.27 ms | 2.04 ± 0.33 ms | 1.11 ± 0.22 |
| irstructure/subset_ir/small | 0.167 ± 0.015 ms | 0.168 ± 0.02 ms | 0.991 ± 0.15 |
| irstructure/substitute/IRSubstituter | 5.96 ± 0.15 ms | 6.04 ± 0.21 ms | 0.987 ± 0.043 |
| irstructure/substitute/reference | 6.19 ± 0.18 ms | 6.39 ± 0.33 ms | 0.969 ± 0.057 |
| irstructure/substitute/sparse IRSubstituter | 0.949 ± 0.027 ms | 1.02 ± 0.11 ms | 0.931 ± 0.11 |
| irstructure/substitute/sparse reference | 1.65 ± 0.062 ms | 1.55 ± 0.054 ms | 1.07 ± 0.055 |
| overhead/acrule/a+2 | 1.8 ± 0.37 μs | 1.8 ± 0.25 μs | 1.01 ± 0.25 |
| overhead/acrule/a+2+b | 0.06 ± 0.002 μs | 0.063 ± 0.002 μs | 0.952 ± 0.044 |
| overhead/acrule/a+b | 2.22 ± 0.28 μs | 2.45 ± 0.12 μs | 0.906 ± 0.12 |
| overhead/acrule/noop:Int | 0.052 ± 0.001 μs | 0.047 ± 0.003 μs | 1.11 ± 0.074 |
| overhead/acrule/noop:Sym | 0.048 ± 0.001 μs | 0.05 ± 0.003 μs | 0.96 ± 0.061 |
| overhead/get_degrees/large_poly | 0.068 ± 0.002 μs | 0.073 ± 0.001 μs | 0.932 ± 0.03 |
| overhead/isequal/different | 0.323 ± 0.0086 ms | 0.263 ± 0.0085 ms | 1.23 ± 0.052 |
| overhead/isequal/identical | 4.78 ± 0.18 μs | 4.09 ± 0.21 μs | 1.17 ± 0.075 |
| overhead/rule/noop:Int | 0.06 ± 0.002 μs | 0.062 ± 0.002 μs | 0.968 ± 0.045 |
| overhead/rule/noop:Sym | 0.06 ± 0.001 μs | 0.063 ± 0.001 μs | 0.952 ± 0.022 |
| overhead/rule/noop:Term | 0.059 ± 0.002 μs | 0.063 ± 0.002 μs | 0.937 ± 0.043 |
| overhead/ruleset/noop:Int | 19 ± 1 ns | 19 ± 1 ns | 1 ± 0.074 |
| overhead/ruleset/noop:Sym | 0.206 ± 0.004 μs | 0.223 ± 0.005 μs | 0.924 ± 0.027 |
| overhead/ruleset/noop:Term | 0.944 ± 0.19 μs | 0.905 ± 0.051 μs | 1.04 ± 0.22 |
| overhead/simplify/noop:Int | 19 ± 1 ns | 19 ± 1 ns | 1 ± 0.074 |
| overhead/simplify/noop:Sym | 24 ± 1 ns | 25 ± 1 ns | 0.96 ± 0.055 |
| overhead/simplify/noop:Term | 19.9 ± 1.2 μs | 19.9 ± 0.92 μs | 1 ± 0.076 |
| overhead/simplify/randterm (+, ):serial | 0.168 ± 0.005 s | 0.154 ± 0.0039 s | 1.09 ± 0.043 |
| overhead/simplify/randterm (+,
):thread | 0.201 ± 0.022 s | 0.203 ± 0.028 s | 0.993 ± 0.17 |
| overhead/simplify/randterm (/, ):serial | 0.127 ± 0.0063 ms | 0.133 ± 0.016 ms | 0.957 ± 0.12 |
| overhead/simplify/randterm (/,
):thread | 0.129 ± 0.0064 ms | 0.138 ± 0.02 ms | 0.937 ± 0.15 |
| overhead/substitute/a | 19.3 ± 0.82 μs | 18.7 ± 0.54 μs | 1.03 ± 0.053 |
| overhead/substitute/a,b | 23.5 ± 0.66 μs | 24.1 ± 1.1 μs | 0.976 ± 0.052 |
| overhead/substitute/a,b,c | 23.6 ± 1.3 μs | 23.4 ± 0.8 μs | 1.01 ± 0.065 |
| polyform/easy_iszero | 10.6 ± 0.43 μs | 12.2 ± 0.38 μs | 0.873 ± 0.045 |
| polyform/isone | 0.665 ± 0.057 ms | 0.764 ± 0.096 ms | 0.87 ± 0.13 |
| polyform/isone:noop | 0.066 ± 0.001 μs | 0.064 ± 0.001 μs | 1.03 ± 0.022 |
| polyform/iszero | 0.52 ± 0.064 ms | 0.551 ± 0.052 ms | 0.944 ± 0.15 |
| polyform/iszero:noop | 0.066 ± 0.001 μs | 0.066 ± 0.001 μs | 1 ± 0.021 |
| polyform/simplify_fractions | 0.725 ± 0.082 ms | 0.748 ± 0.068 ms | 0.969 ± 0.14 |
| printing/large_poly | 0.166 ± 0.017 s | 0.171 ± 0.01 s | 0.97 ± 0.11 |
| time_to_load | 1.11 ± 0.015 s | 1.08 ± 0.077 s | 1.02 ± 0.074 |

</details>

<details><summary>Memory benchmarks</summary>

| | master | ca58e1dba3e7ae... | master / ca58e1dba3e7ae... |
|:----------------------------------------------------|:-------------------------:|:-------------------------:|:--------------------------:|
| arithmetic/2-arg mul | 0.073 k allocs: 3.2 kB | 0.079 k allocs: 3.38 kB | 0.949 |
| arithmetic/add_100k_term_sums | 0.0499 M allocs: 0.762 MB | 11 allocs: 0.359 kB | 2.17e+03 |
| arithmetic/addition | 0.213 k allocs: 12.6 kB | 0.266 k allocs: 14.1 kB | 0.897 |
| arithmetic/affine_chain_k10 | 2.53 M allocs: 0.261 GB | 2.8 M allocs: 0.268 GB | 0.973 |
| arithmetic/division | 0.119 k allocs: 4.64 kB | 0.123 k allocs: 4.92 kB | 0.943 |
| arithmetic/multiplication | 0.275 k allocs: 8.16 kB | 0.248 k allocs: 12.9 kB | 0.633 |
| codegen/arrayop_nested/fast_toexpr | 0.196 k allocs: 11.8 kB | 0.196 k allocs: 11.8 kB | 1 |
| codegen/arrayop_nested/toexpr | 0.456 k allocs: 20.1 kB | 0.456 k allocs: 20.1 kB | 1 |
| codegen/deep_poly/deg=10:fast_toexpr | 1.24 k allocs: 0.066 MB | 1.24 k allocs: 0.066 MB | 1 |
| codegen/deep_poly/deg=10:toexpr | 1.04 k allocs: 0.049 MB | 1.04 k allocs: 0.049 MB | 1 |
| codegen/deep_poly/deg=14:fast_toexpr | 2.15 k allocs: 0.129 MB | 2.15 k allocs: 0.13 MB | 0.999 |
| codegen/deep_poly/deg=14:toexpr | 1.86 k allocs: 0.0857 MB | 1.86 k allocs: 0.0859 MB | 0.998 |
| codegen/deep_poly/deg=6:fast_toexpr | 0.575 k allocs: 0.0341 MB | 0.575 k allocs: 0.0341 MB | 1 |
| codegen/deep_poly/deg=6:toexpr | 0.449 k allocs: 22.8 kB | 0.449 k allocs: 22.8 kB | 1 |
| codegen/makearray/n=100:fast_toexpr | 1.31 k allocs: 0.0691 MB | 1.31 k allocs: 0.0691 MB | 1 |
| codegen/makearray/n=100:toexpr | 4.31 k allocs: 0.168 MB | 4.31 k allocs: 0.168 MB | 1 |
| codegen/makearray/n=200:fast_toexpr | 2.22 k allocs: 0.112 MB | 2.22 k allocs: 0.112 MB | 1 |
| codegen/makearray/n=200:toexpr | 6.19 k allocs: 0.24 MB | 6.19 k allocs: 0.24 MB | 1 |
| codegen/makearray/n=400:fast_toexpr | 4.12 k allocs: 0.218 MB | 4.12 k allocs: 0.218 MB | 1 |
| codegen/makearray/n=400:toexpr | 9.89 k allocs: 0.383 MB | 9.89 k allocs: 0.383 MB | 1 |
| codegen/wide_deep_poly/fast_toexpr | 6.74 k allocs: 0.345 MB | 6.74 k allocs: 0.345 MB | 0.999 |
| codegen/wide_deep_poly/toexpr | 6.85 k allocs: 0.317 MB | 6.85 k allocs: 0.317 MB | 0.999 |
| codegen/wide_poly/n=100:fast_toexpr | 3.69 k allocs: 0.2 MB | 3.69 k allocs: 0.2 MB | 1 |
| codegen/wide_poly/n=100:toexpr | 3.82 k allocs: 0.165 MB | 3.82 k allocs: 0.165 MB | 1 |
| codegen/wide_poly/n=25:fast_toexpr | 0.958 k allocs: 0.0518 MB | 0.958 k allocs: 0.0518 MB | 1 |
| codegen/wide_poly/n=25:toexpr | 0.968 k allocs: 0.042 MB | 0.968 k allocs: 0.042 MB | 1 |
| codegen/wide_poly/n=50:fast_toexpr | 1.87 k allocs: 0.116 MB | 1.87 k allocs: 0.116 MB | 1 |
| codegen/wide_poly/n=50:toexpr | 1.92 k allocs: 0.0813 MB | 1.92 k allocs: 0.0813 MB | 1 |
| irstructure/search_variables/common:IRStructure | 0.04 k allocs: 5.31 kB | 0.04 k allocs: 5.31 kB | 1 |
| irstructure/search_variables/common:reference | 0.1 k allocs: 0.863 MB | 0.1 k allocs: 0.863 MB | 1 |
| irstructure/search_variables/dissimilar:IRStructure | 30 allocs: 3.41 kB | 30 allocs: 3.41 kB | 1 |
| irstructure/search_variables/dissimilar:reference | 0.068 k allocs: 0.0722 MB | 0.07 k allocs: 0.104 MB | 0.696 |
| irstructure/subset_ir/large | 0.0425 M allocs: 1.99 MB | 0.0425 M allocs: 1.99 MB | 1 |
| irstructure/subset_ir/small | 2.65 k allocs: 0.214 MB | 2.65 k allocs: 0.214 MB | 1 |
| irstructure/substitute/IRSubstituter | 26.6 k allocs: 0.925 MB | 28.8 k allocs: 0.972 MB | 0.952 |
| irstructure/substitute/reference | 29.3 k allocs: 1.09 MB | 31.4 k allocs: 1.14 MB | 0.959 |
| irstructure/substitute/sparse IRSubstituter | 3.04 k allocs: 0.107 MB | 3.28 k allocs: 0.112 MB | 0.962 |
| irstructure/substitute/sparse reference | 5.71 k allocs: 0.275 MB | 5.95 k allocs: 0.279 MB | 0.985 |
| overhead/acrule/a+2 | 0.046 k allocs: 2.06 kB | 0.046 k allocs: 2.06 kB | 1 |
| overhead/acrule/a+2+b | 0 allocs: 0 B | 0 allocs: 0 B | |
| overhead/acrule/a+b | 0.043 k allocs: 1.67 kB | 0.043 k allocs: 1.67 kB | 1 |
| overhead/acrule/noop:Int | 0 allocs: 0 B | 0 allocs: 0 B | |
| overhead/acrule/noop:Sym | 0 allocs: 0 B | 0 allocs: 0 B | |
| overhead/get_degrees/large_poly | 2 allocs: 32 B | 2 allocs: 32 B | 1 |
| overhead/isequal/different | 0 allocs: 0 B | 0 allocs: 0 B | |
| overhead/isequal/identical | 0 allocs: 0 B | 0 allocs: 0 B | |
| overhead/rule/noop:Int | 2 allocs: 0.0625 kB | 2 allocs: 0.0625 kB | 1 |
| overhead/rule/noop:Sym | 2 allocs: 0.0625 kB | 2 allocs: 0.0625 kB | 1 |
| overhead/rule/noop:Term | 2 allocs: 0.0625 kB | 2 allocs: 0.0625 kB | 1 |
| overhead/ruleset/noop:Int | 0 allocs: 0 B | 0 allocs: 0 B | |
| overhead/ruleset/noop:Sym | 3 allocs: 0.109 kB | 3 allocs: 0.109 kB | 1 |
| overhead/ruleset/noop:Term | 12 allocs: 0.391 kB | 12 allocs: 0.391 kB | 1 |
| overhead/simplify/noop:Int | 0 allocs: 0 B | 0 allocs: 0 B | |
| overhead/simplify/noop:Sym | 0 allocs: 0 B | 0 allocs: 0 B | |
| overhead/simplify/noop:Term | 0.325 k allocs: 13.1 kB | 0.325 k allocs: 13.1 kB | 1 |
| overhead/simplify/randterm (+, ):serial | 2.36 M allocs: 0.0918 GB | 2.36 M allocs: 0.0918 GB | 1 |
| overhead/simplify/randterm (+,
):thread | 2.41 M allocs: 0.249 GB | 2.41 M allocs: 0.249 GB | 1 |
| overhead/simplify/randterm (/, ):serial | 2.26 k allocs: 0.0839 MB | 2.26 k allocs: 0.0839 MB | 1 |
| overhead/simplify/randterm (/,
):thread | 2.3 k allocs: 0.0849 MB | 2.3 k allocs: 0.0849 MB | 1 |
| overhead/substitute/a | 0.136 k allocs: 4.94 kB | 0.143 k allocs: 5.05 kB | 0.978 |
| overhead/substitute/a,b | 0.177 k allocs: 6.31 kB | 0.184 k allocs: 6.42 kB | 0.983 |
| overhead/substitute/a,b,c | 0.183 k allocs: 6.41 kB | 0.188 k allocs: 6.48 kB | 0.988 |
| polyform/easy_iszero | 0.089 k allocs: 2.97 kB | 0.099 k allocs: 3.12 kB | 0.95 |
| polyform/isone | 7.26 k allocs: 0.547 MB | 7.94 k allocs: 0.565 MB | 0.968 |
| polyform/isone:noop | 1 allocs: 16 B | 1 allocs: 16 B | 1 |
| polyform/iszero | 5.71 k allocs: 0.424 MB | 6.31 k allocs: 0.44 MB | 0.964 |
| polyform/iszero:noop | 1 allocs: 16 B | 1 allocs: 16 B | 1 |
| polyform/simplify_fractions | 7.81 k allocs: 0.568 MB | 8.52 k allocs: 0.587 MB | 0.969 |
| printing/large_poly | 1.86 M allocs: 0.082 GB | 1.86 M allocs: 0.082 GB | 1 |
| time_to_load | 0.153 k allocs: 14.5 kB | 0.153 k allocs: 14.5 kB | 1 |

</details>

github-actions[bot] github-actions[bot] commented on Nov 20, 2026 17:56 UTC
Bot

Benchmark Results (Julia v1)

<details><summary>Time benchmarks</summary>

| | master | ca58e1dba3e7ae... | master / ca58e1dba3e7ae... |
|:----------------------------------------------------|:-------------------:|:-------------------:|:--------------------------:|
| arithmetic/2-arg mul | 9.79 ± 0.26 μs | 10.1 ± 0.31 μs | 0.97 ± 0.039 |
| arithmetic/add_100k_term_sums | 0.0589 ± 0.0052 s | 0.0479 ± 0.0091 s | 1.23 ± 0.26 |
| arithmetic/addition | 0.046 ± 0.00065 ms | 0.0451 ± 0.00076 ms | 1.02 ± 0.022 |
| arithmetic/affine_chain_k10 | 0.494 ± 0.048 s | 0.539 ± 0.05 s | 0.916 ± 0.12 |
| arithmetic/division | 19 ± 0.43 μs | 18.7 ± 0.42 μs | 1.02 ± 0.033 |
| arithmetic/multiplication | 0.0331 ± 0.00097 ms | 24 ± 0.82 μs | 1.38 ± 0.062 |
| codegen/arrayop_nested/fast_toexpr | 9.15 ± 0.51 μs | 9.16 ± 0.46 μs | 0.999 ± 0.075 |
| codegen/arrayop_nested/toexpr | 0.0505 ± 0.0021 ms | 0.0493 ± 0.0012 ms | 1.03 ± 0.05 |
| codegen/deep_poly/deg=10:fast_toexpr | 0.115 ± 0.035 ms | 0.113 ± 0.032 ms | 1.01 ± 0.43 |
| codegen/deep_poly/deg=10:toexpr | 0.112 ± 0.025 ms | 0.114 ± 0.026 ms | 0.981 ± 0.31 |
| codegen/deep_poly/deg=14:fast_toexpr | 0.228 ± 0.033 ms | 0.223 ± 0.034 ms | 1.02 ± 0.21 |
| codegen/deep_poly/deg=14:toexpr | 0.176 ± 0.042 ms | 0.176 ± 0.043 ms | 1 ± 0.34 |
| codegen/deep_poly/deg=6:fast_toexpr | 0.0425 ± 0.01 ms | 0.0407 ± 0.011 ms | 1.04 ± 0.37 |
| codegen/deep_poly/deg=6:toexpr | 0.0406 ± 0.00068 ms | 0.0411 ± 0.00062 ms | 0.987 ± 0.022 |
| codegen/makearray/n=100:fast_toexpr | 0.111 ± 0.037 ms | 0.107 ± 0.036 ms | 1.04 ± 0.49 |
| codegen/makearray/n=100:toexpr | 0.44 ± 0.059 ms | 0.44 ± 0.06 ms | 1 ± 0.19 |
| codegen/makearray/n=200:fast_toexpr | 0.211 ± 0.054 ms | 0.204 ± 0.054 ms | 1.03 ± 0.38 |
| codegen/makearray/n=200:toexpr | 0.881 ± 0.12 ms | 0.879 ± 0.12 ms | 1 ± 0.19 |
| codegen/makearray/n=400:fast_toexpr | 0.363 ± 0.082 ms | 0.348 ± 0.085 ms | 1.04 ± 0.35 |
| codegen/makearray/n=400:toexpr | 1.21 ± 0.16 ms | 1.17 ± 0.15 ms | 1.04 ± 0.19 |
| codegen/wide_deep_poly/fast_toexpr | 0.773 ± 0.069 ms | 0.756 ± 0.077 ms | 1.02 ± 0.14 |
| codegen/wide_deep_poly/toexpr | 0.495 ± 0.13 ms | 0.503 ± 0.14 ms | 0.985 ± 0.37 |
| codegen/wide_poly/n=100:fast_toexpr | 0.361 ± 0.039 ms | 0.355 ± 0.067 ms | 1.02 ± 0.22 |
| codegen/wide_poly/n=100:toexpr | 0.31 ± 0.074 ms | 0.308 ± 0.071 ms | 1 ± 0.33 |
| codegen/wide_poly/n=25:fast_toexpr | 0.0701 ± 0.024 ms | 0.0807 ± 0.024 ms | 0.868 ± 0.39 |
| codegen/wide_poly/n=25:toexpr | 0.0732 ± 0.022 ms | 0.0754 ± 0.019 ms | 0.971 ± 0.38 |
| codegen/wide_poly/n=50:fast_toexpr | 0.168 ± 0.036 ms | 0.169 ± 0.044 ms | 0.995 ± 0.34 |
| codegen/wide_poly/n=50:toexpr | 0.155 ± 0.041 ms | 0.152 ± 0.039 ms | 1.02 ± 0.38 |
| irstructure/search_variables/common:IRStructure | 0.425 ± 0.0095 ms | 0.434 ± 0.0095 ms | 0.978 ± 0.031 |
| irstructure/search_variables/common:reference | 1 ± 0.02 ms | 1.05 ± 0.015 ms | 0.956 ± 0.024 |
| irstructure/search_variables/dissimilar:IRStructure | 0.109 ± 0.004 ms | 0.12 ± 0.0057 ms | 0.907 ± 0.054 |
| irstructure/search_variables/dissimilar:reference | 0.307 ± 0.026 ms | 0.321 ± 0.024 ms | 0.955 ± 0.11 |
| irstructure/subset_ir/large | 1.39 ± 0.092 ms | 1.47 ± 0.14 ms | 0.947 ± 0.11 |
| irstructure/subset_ir/small | 0.13 ± 0.0093 ms | 0.127 ± 0.0092 ms | 1.02 ± 0.1 |
| irstructure/substitute/IRSubstituter | 6.99 ± 0.19 ms | 7.18 ± 0.29 ms | 0.973 ± 0.047 |
| irstructure/substitute/reference | 7.44 ± 0.24 ms | 7.64 ± 0.48 ms | 0.974 ± 0.069 |
| irstructure/substitute/sparse IRSubstituter | 1.2 ± 0.031 ms | 1.23 ± 0.033 ms | 0.977 ± 0.036 |
| irstructure/substitute/sparse reference | 1.59 ± 0.04 ms | 1.63 ± 0.047 ms | 0.976 ± 0.037 |
| overhead/acrule/a+2 | 2.31 ± 0.13 μs | 2.34 ± 0.1 μs | 0.987 ± 0.07 |
| overhead/acrule/a+2+b | 0.08 ± 0 μs | 0.08 ± 0.001 μs | 1 ± 0.013 |
| overhead/acrule/a+b | 3.22 ± 0.12 μs | 3.26 ± 0.1 μs | 0.988 ± 0.048 |
| overhead/acrule/noop:Int | 0.04 ± 0 μs | 0.04 ± 0.01 μs | 1 ± 0.25 |
| overhead/acrule/noop:Sym | 0.07 ± 0.01 μs | 0.07 ± 0.01 μs | 1 ± 0.2 |
| overhead/get_degrees/large_poly | 0.09 ± 0.01 μs | 0.09 ± 0.001 μs | 1 ± 0.11 |
| overhead/isequal/different | 0.473 ± 0.0075 ms | 0.421 ± 0.0097 ms | 1.12 ± 0.031 |
| overhead/isequal/identical | 5.67 ± 0.031 μs | 6.16 ± 0.021 μs | 0.92 ± 0.0059 |
| overhead/rule/noop:Int | 0.08 ± 0.01 μs | 0.08 ± 0.001 μs | 1 ± 0.13 |
| overhead/rule/noop:Sym | 0.08 ± 0 μs | 0.08 ± 0.001 μs | 1 ± 0.013 |
| overhead/rule/noop:Term | 0.08 ± 0 μs | 0.08 ± 0.001 μs | 1 ± 0.013 |
| overhead/ruleset/noop:Int | 30 ± 0 ns | 30 ± 0 ns | 1 ± 0 |
| overhead/ruleset/noop:Sym | 0.291 ± 0.01 μs | 0.31 ± 0.01 μs | 0.939 ± 0.044 |
| overhead/ruleset/noop:Term | 1.33 ± 0.031 μs | 1.39 ± 0.011 μs | 0.957 ± 0.024 |
| overhead/simplify/noop:Int | 30 ± 0 ns | 30 ± 0 ns | 1 ± 0 |
| overhead/simplify/noop:Sym | 0.04 ± 0.01 μs | 0.04 ± 0.01 μs | 1 ± 0.35 |
| overhead/simplify/noop:Term | 0.0328 ± 0.00066 ms | 0.0323 ± 0.00059 ms | 1.01 ± 0.028 |
| overhead/simplify/randterm (+, ):serial | 0.209 ± 0.039 s | 0.211 ± 0.039 s | 0.991 ± 0.26 |
| overhead/simplify/randterm (+,
):thread | 0.252 ± 0.015 s | 0.241 ± 0.0089 s | 1.05 ± 0.075 |
| overhead/simplify/randterm (/, ):serial | 0.232 ± 0.043 ms | 0.233 ± 0.042 ms | 0.995 ± 0.26 |
| overhead/simplify/randterm (/,
):thread | 0.233 ± 0.045 ms | 0.234 ± 0.043 ms | 0.996 ± 0.26 |
| overhead/substitute/a | 28.6 ± 0.55 μs | 29.1 ± 0.66 μs | 0.984 ± 0.029 |
| overhead/substitute/a,b | 0.0366 ± 0.00074 ms | 0.0364 ± 0.00093 ms | 1 ± 0.033 |
| overhead/substitute/a,b,c | 0.0359 ± 0.0012 ms | 0.0354 ± 0.0012 ms | 1.01 ± 0.047 |
| polyform/easy_iszero | 13.3 ± 0.32 μs | 14.6 ± 0.35 μs | 0.915 ± 0.031 |
| polyform/isone | 0.694 ± 0.029 ms | 0.805 ± 0.041 ms | 0.863 ± 0.057 |
| polyform/isone:noop | 0.07 ± 0.01 μs | 0.09 ± 0.01 μs | 0.778 ± 0.14 |
| polyform/iszero | 0.566 ± 0.026 ms | 0.664 ± 0.021 ms | 0.852 ± 0.047 |
| polyform/iszero:noop | 0.08 ± 0.01 μs | 0.07 ± 0.01 μs | 1.14 ± 0.22 |
| polyform/simplify_fractions | 0.786 ± 0.036 ms | 0.908 ± 0.031 ms | 0.866 ± 0.05 |
| printing/large_poly | 0.22 ± 0.036 s | 0.215 ± 0.039 s | 1.02 ± 0.25 |
| time_to_load | 1.22 ± 0.0029 s | 1.25 ± 0.0081 s | 0.977 ± 0.0067 |

</details>

<details><summary>Memory benchmarks</summary>

| | master | ca58e1dba3e7ae... | master / ca58e1dba3e7ae... |
|:----------------------------------------------------|:-------------------------:|:-------------------------:|:--------------------------:|
| arithmetic/2-arg mul | 0.061 k allocs: 2.25 kB | 0.069 k allocs: 2.45 kB | 0.917 |
| arithmetic/add_100k_term_sums | 10 allocs: 0.328 kB | 11 allocs: 0.344 kB | 0.955 |
| arithmetic/addition | 0.218 k allocs: 12.3 kB | 0.271 k allocs: 13.8 kB | 0.895 |
| arithmetic/affine_chain_k10 | 3.64 M allocs: 0.253 GB | 3.89 M allocs: 0.26 GB | 0.973 |
| arithmetic/division | 0.107 k allocs: 3.89 kB | 0.112 k allocs: 4.17 kB | 0.933 |
| arithmetic/multiplication | 0.231 k allocs: 6.25 kB | 0.238 k allocs: 11.5 kB | 0.543 |
| codegen/arrayop_nested/fast_toexpr | 0.224 k allocs: 10.3 kB | 0.224 k allocs: 10.3 kB | 1 |
| codegen/arrayop_nested/toexpr | 0.433 k allocs: 16.5 kB | 0.433 k allocs: 16.5 kB | 1 |
| codegen/deep_poly/deg=10:fast_toexpr | 1.65 k allocs: 0.0683 MB | 1.65 k allocs: 0.0683 MB | 1 |
| codegen/deep_poly/deg=10:toexpr | 1.41 k allocs: 0.049 MB | 1.41 k allocs: 0.049 MB | 1 |
| codegen/deep_poly/deg=14:fast_toexpr | 2.88 k allocs: 0.137 MB | 2.89 k allocs: 0.137 MB | 0.999 |
| codegen/deep_poly/deg=14:toexpr | 2.52 k allocs: 0.0903 MB | 2.53 k allocs: 0.0904 MB | 0.998 |
| codegen/deep_poly/deg=6:fast_toexpr | 0.754 k allocs: 0.0335 MB | 0.754 k allocs: 0.0335 MB | 1 |
| codegen/deep_poly/deg=6:toexpr | 0.606 k allocs: 22.5 kB | 0.606 k allocs: 22.5 kB | 1 |
| codegen/makearray/n=100:fast_toexpr | 1.81 k allocs: 0.0747 MB | 1.81 k allocs: 0.0747 MB | 1 |
| codegen/makearray/n=100:toexpr | 3.74 k allocs: 0.129 MB | 3.74 k allocs: 0.129 MB | 1 |
| codegen/makearray/n=200:fast_toexpr | 3.23 k allocs: 0.135 MB | 3.23 k allocs: 0.135 MB | 1 |
| codegen/makearray/n=200:toexpr | 7.33 k allocs: 0.255 MB | 7.33 k allocs: 0.255 MB | 1 |
| codegen/makearray/n=400:fast_toexpr | 5.55 k allocs: 0.232 MB | 5.55 k allocs: 0.232 MB | 1 |
| codegen/makearray/n=400:toexpr | 10 k allocs: 0.341 MB | 10 k allocs: 0.341 MB | 1 |
| codegen/wide_deep_poly/fast_toexpr | 9.15 k allocs: 0.402 MB | 9.16 k allocs: 0.402 MB | 1 |
| codegen/wide_deep_poly/toexpr | 9.34 k allocs: 0.316 MB | 9.34 k allocs: 0.316 MB | 0.999 |
| codegen/wide_poly/n=100:fast_toexpr | 4.61 k allocs: 0.183 MB | 4.61 k allocs: 0.183 MB | 1 |
| codegen/wide_poly/n=100:toexpr | 4.92 k allocs: 0.166 MB | 4.92 k allocs: 0.166 MB | 1 |
| codegen/wide_poly/n=25:fast_toexpr | 1.19 k allocs: 0.0459 MB | 1.19 k allocs: 0.0459 MB | 1 |
| codegen/wide_poly/n=25:toexpr | 1.24 k allocs: 0.0419 MB | 1.24 k allocs: 0.0419 MB | 1 |
| codegen/wide_poly/n=50:fast_toexpr | 2.34 k allocs: 0.105 MB | 2.34 k allocs: 0.105 MB | 1 |
| codegen/wide_poly/n=50:toexpr | 2.47 k allocs: 0.0862 MB | 2.47 k allocs: 0.0862 MB | 1 |
| irstructure/search_variables/common:IRStructure | 0.06 k allocs: 4.53 kB | 0.06 k allocs: 4.53 kB | 1 |
| irstructure/search_variables/common:reference | 0.26 k allocs: 0.23 MB | 0.26 k allocs: 0.23 MB | 1 |
| irstructure/search_variables/dissimilar:IRStructure | 0.045 k allocs: 3.59 kB | 0.045 k allocs: 3.59 kB | 1 |
| irstructure/search_variables/dissimilar:reference | 0.154 k allocs: 0.0483 MB | 0.156 k allocs: 0.0491 MB | 0.984 |
| irstructure/subset_ir/large | 0.0369 M allocs: 1.65 MB | 0.0369 M allocs: 1.65 MB | 1 |
| irstructure/subset_ir/small | 2.66 k allocs: 0.194 MB | 2.66 k allocs: 0.194 MB | 1 |
| irstructure/substitute/IRSubstituter | 28.7 k allocs: 0.914 MB | 30.5 k allocs: 0.956 MB | 0.956 |
| irstructure/substitute/reference | 31.4 k allocs: 1.08 MB | 0.0332 M allocs: 1.12 MB | 0.963 |
| irstructure/substitute/sparse IRSubstituter | 3.34 k allocs: 0.107 MB | 3.54 k allocs: 0.111 MB | 0.968 |
| irstructure/substitute/sparse reference | 6.02 k allocs: 0.274 MB | 6.21 k allocs: 0.278 MB | 0.987 |
| overhead/acrule/a+2 | 0.046 k allocs: 1.77 kB | 0.046 k allocs: 1.77 kB | 1 |
| overhead/acrule/a+2+b | 0 allocs: 0 B | 0 allocs: 0 B | |
| overhead/acrule/a+b | 0.042 k allocs: 1.42 kB | 0.042 k allocs: 1.42 kB | 1 |
| overhead/acrule/noop:Int | 0 allocs: 0 B | 0 allocs: 0 B | |
| overhead/acrule/noop:Sym | 0 allocs: 0 B | 0 allocs: 0 B | |
| overhead/get_degrees/large_poly | 2 allocs: 32 B | 2 allocs: 32 B | 1 |
| overhead/isequal/different | 0 allocs: 0 B | 0 allocs: 0 B | |
| overhead/isequal/identical | 0 allocs: 0 B | 0 allocs: 0 B | |
| overhead/rule/noop:Int | 2 allocs: 0.0625 kB | 2 allocs: 0.0625 kB | 1 |
| overhead/rule/noop:Sym | 2 allocs: 0.0625 kB | 2 allocs: 0.0625 kB | 1 |
| overhead/rule/noop:Term | 2 allocs: 0.0625 kB | 2 allocs: 0.0625 kB | 1 |
| overhead/ruleset/noop:Int | 0 allocs: 0 B | 0 allocs: 0 B | |
| overhead/ruleset/noop:Sym | 3 allocs: 0.109 kB | 3 allocs: 0.109 kB | 1 |
| overhead/ruleset/noop:Term | 12 allocs: 0.391 kB | 12 allocs: 0.391 kB | 1 |
| overhead/simplify/noop:Int | 0 allocs: 0 B | 0 allocs: 0 B | |
| overhead/simplify/noop:Sym | 0 allocs: 0 B | 0 allocs: 0 B | |
| overhead/simplify/noop:Term | 0.325 k allocs: 11.6 kB | 0.325 k allocs: 11.6 kB | 1 |
| overhead/simplify/randterm (+, ):serial | 2.34 M allocs: 0.0821 GB | 2.34 M allocs: 0.0821 GB | 1 |
| overhead/simplify/randterm (+,
):thread | 2.38 M allocs: 0.239 GB | 2.38 M allocs: 0.239 GB | 1 |
| overhead/simplify/randterm (/, ):serial | 2.25 k allocs: 0.078 MB | 2.25 k allocs: 0.078 MB | 1 |
| overhead/simplify/randterm (/,
):thread | 2.27 k allocs: 0.0787 MB | 2.27 k allocs: 0.0787 MB | 1 |
| overhead/substitute/a | 0.144 k allocs: 4.88 kB | 0.15 k allocs: 4.97 kB | 0.981 |
| overhead/substitute/a,b | 0.189 k allocs: 6.31 kB | 0.195 k allocs: 6.41 kB | 0.985 |
| overhead/substitute/a,b,c | 0.197 k allocs: 6.53 kB | 0.201 k allocs: 6.59 kB | 0.991 |
| polyform/easy_iszero | 0.08 k allocs: 2.52 kB | 0.087 k allocs: 2.62 kB | 0.958 |
| polyform/isone | 9.84 k allocs: 0.51 MB | 10.5 k allocs: 0.527 MB | 0.967 |
| polyform/isone:noop | 1 allocs: 16 B | 1 allocs: 16 B | 1 |
| polyform/iszero | 7.46 k allocs: 0.394 MB | 8.05 k allocs: 0.409 MB | 0.962 |
| polyform/iszero:noop | 1 allocs: 16 B | 1 allocs: 16 B | 1 |
| polyform/simplify_fractions | 10.3 k allocs: 0.526 MB | 11 k allocs: 0.544 MB | 0.967 |
| printing/large_poly | 1.88 M allocs: 0.071 GB | 1.88 M allocs: 0.071 GB | 1 |
| time_to_load | 0.2 k allocs: 11.7 kB | 0.2 k allocs: 11.7 kB | 1 |

</details>

Reviewers
Assignees
AayushSabharwal AayushSabharwal
Labels
risk: low confidence: 76.8% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 77.5% (HIGH) · Higher = larger blast radius
77.5%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 76.8% · Lower = rushed or shallow review
76.8%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 18% · Safe to merge
18%