Skip to content

VSD - bool intervals go top #6209

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

Merged
merged 2 commits into from
Jul 2, 2021

Conversation

jezhiggins
Copy link
Contributor

@jezhiggins jezhiggins commented Jul 2, 2021

An interval which spans its type's [min-max] goes TOP. By extension, a bool interval spanning [FALSE,TRUE] should also go TOP.

This PR makes the changes to interval_abstract_valuet to add this behaviour.
It also extends value-sets to set { FALSE, TRUE } to TOP.

Intervals with range [min(type), max(type)] go top. However, by
extension [FALSE, TRUE] should also go top. This change extends the TOP
check constructing interval_abstract_values to cover intervals of type
bool and c_bool.
@jezhiggins jezhiggins force-pushed the vsd-bool-intervals-go-top branch 3 times, most recently from febc042 to 192eee5 Compare July 2, 2021 10:17
@jezhiggins jezhiggins marked this pull request as ready for review July 2, 2021 10:23
@jezhiggins jezhiggins force-pushed the vsd-bool-intervals-go-top branch from 192eee5 to 0a0a862 Compare July 2, 2021 10:32
@codecov
Copy link

codecov bot commented Jul 2, 2021

Codecov Report

Merging #6209 (0a0a862) into develop (b68902f) will decrease coverage by 0.18%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #6209      +/-   ##
===========================================
- Coverage    75.39%   75.20%   -0.19%     
===========================================
  Files         1456     1458       +2     
  Lines       161216   161311      +95     
===========================================
- Hits        121544   121318     -226     
- Misses       39672    39993     +321     
Impacted Files Coverage Δ
...ses/variable-sensitivity/interval_abstract_value.h 100.00% <ø> (ø)
...s/variable-sensitivity/interval_abstract_value.cpp 84.76% <100.00%> (+0.76%) ⬆️
...variable-sensitivity/value_set_abstract_object.cpp 97.66% <100.00%> (+0.24%) ⬆️
...tivity/interval_abstract_value/extremes-go-top.cpp 100.00% <100.00%> (ø)
...vity/value_set_abstract_object/extremes-go-top.cpp 100.00% <100.00%> (ø)
src/ansi-c/c_typecheck_expr.cpp 59.46% <0.00%> (-15.37%) ⬇️
src/ansi-c/c_typecheck_base.h 86.66% <0.00%> (-13.34%) ⬇️
src/ansi-c/c_expr.h 94.87% <0.00%> (-5.13%) ⬇️
src/util/bitvector_expr.h 89.17% <0.00%> (-3.90%) ⬇️
...lyses/variable-sensitivity/abstract_object_set.cpp 96.66% <0.00%> (-3.34%) ⬇️
... and 13 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5b8e8fa...0a0a862. Read the comment docs.

@martin-cs martin-cs merged commit a7d4c3d into diffblue:develop Jul 2, 2021
@jezhiggins jezhiggins deleted the vsd-bool-intervals-go-top branch August 12, 2021 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants