Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use sets for widening thresholds instead of lists #1654

Merged
merged 5 commits into from
Jan 15, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
exists -> mem
karoliineh committed Jan 10, 2025
commit c1d1a07aa4246b860cf6098d2fb9cbbbf8830971
2 changes: 1 addition & 1 deletion src/cdomain/value/cdomains/intDomain0.ml
Original file line number Diff line number Diff line change
@@ -575,7 +575,7 @@ module IntervalArith (Ints_t : IntOps.IntOps) = struct
let is_threshold t ts =
let ts = find_thresholds ts in
let t = Ints_t.to_bigint t in
WideningThresholds.Thresholds.exists (Z.equal t) ts
WideningThresholds.Thresholds.mem t ts

let is_upper_threshold u = is_threshold u WideningThresholds.upper_thresholds
let is_lower_threshold l = is_threshold l WideningThresholds.lower_thresholds