-
Notifications
You must be signed in to change notification settings - Fork 274
move floating-point-related expression classes into separate header file #5760
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
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,7 @@ Author: Daniel Kroening, [email protected] | |
#include <util/arith_tools.h> | ||
#include <util/c_types.h> | ||
#include <util/expr_initializer.h> | ||
#include <util/floatbv_expr.h> | ||
#include <util/ieee_float.h> | ||
#include <util/invariant.h> | ||
#include <util/namespace.h> | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ Author: Daniel Kroening, [email protected] | |
#include <util/cprover_prefix.h> | ||
#include <util/expr_util.h> | ||
#include <util/find_symbols.h> | ||
#include <util/floatbv_expr.h> | ||
#include <util/ieee_float.h> | ||
#include <util/invariant.h> | ||
#include <util/make_unique.h> | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ Author: Daniel Kroening, [email protected] | |
#include <util/config.h> | ||
#include <util/cprover_prefix.h> | ||
#include <util/expr_util.h> | ||
#include <util/floatbv_expr.h> | ||
#include <util/ieee_float.h> | ||
#include <util/mathematical_expr.h> | ||
#include <util/mathematical_types.h> | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ Author: Daniel Kroening, [email protected] | |
#include <util/cprover_prefix.h> | ||
#include <util/find_symbols.h> | ||
#include <util/fixedbv.h> | ||
#include <util/floatbv_expr.h> | ||
#include <util/lispexpr.h> | ||
#include <util/lispirep.h> | ||
#include <util/namespace.h> | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,12 +11,13 @@ Author: Daniel Kroening, [email protected] | |
|
||
#include "adjust_float_expressions.h" | ||
|
||
#include <util/arith_tools.h> | ||
#include <util/cprover_prefix.h> | ||
#include <util/expr_util.h> | ||
#include <util/floatbv_expr.h> | ||
#include <util/ieee_float.h> | ||
#include <util/std_expr.h> | ||
#include <util/symbol.h> | ||
#include <util/ieee_float.h> | ||
#include <util/arith_tools.h> | ||
|
||
#include "goto_model.h" | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ Author: Daniel Kroening, [email protected] | |
|
||
#include <util/arith_tools.h> | ||
#include <util/bitvector_expr.h> | ||
#include <util/floatbv_expr.h> | ||
#include <util/magic.h> | ||
#include <util/mp_arith.h> | ||
#include <util/prefix.h> | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ Author: Daniel Kroening, [email protected] | |
#include <algorithm> | ||
#include <iostream> | ||
|
||
#include <util/floatbv_expr.h> | ||
#include <util/std_types.h> | ||
|
||
#include <solvers/floatbv/float_utils.h> | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ Author: Daniel Kroening, [email protected] | |
|
||
#include <util/arith_tools.h> | ||
#include <util/bitvector_expr.h> | ||
#include <util/floatbv_expr.h> | ||
#include <util/std_expr.h> | ||
|
||
exprt float_bvt::convert(const exprt &expr) const | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,10 +8,11 @@ Author: Daniel Kroening, [email protected] | |
|
||
#include "bv_refinement.h" | ||
|
||
#include <util/arith_tools.h> | ||
#include <util/bv_arithmetic.h> | ||
#include <util/ieee_float.h> | ||
#include <util/expr_util.h> | ||
#include <util/arith_tools.h> | ||
#include <util/floatbv_expr.h> | ||
#include <util/ieee_float.h> | ||
|
||
#include <solvers/floatbv/float_utils.h> | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,8 +13,9 @@ Author: Daniel Kroening, [email protected] | |
#include <sstream> | ||
#include <set> | ||
|
||
#include <util/std_expr.h> | ||
#include <util/byte_operators.h> | ||
#include <util/floatbv_expr.h> | ||
#include <util/std_expr.h> | ||
|
||
#if !HASH_CODE | ||
# include <util/irep_hash_container.h> | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ Author: Daniel Kroening, [email protected] | |
|
||
#include <util/arith_tools.h> | ||
#include <util/bitvector_expr.h> | ||
#include <util/floatbv_expr.h> | ||
#include <util/ieee_float.h> | ||
#include <util/invariant.h> | ||
#include <util/mathematical_expr.h> | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ Author: Romain Brenguier, [email protected] | |
#include "string_constraint_generator.h" | ||
|
||
#include <util/bitvector_expr.h> | ||
#include <util/floatbv_expr.h> | ||
|
||
#include <solvers/floatbv/float_bv.h> | ||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are these forward declared when other types are not. I can see cases for forward declaration or inclusion but the mix seems unclear.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The algorithm is to count the .cpp files that includes this .h file that include the omitted header file. If that is a high percentage, then use the include, otherwise use the forward declaration.
In this case, a lot of .cpp files (46) include boolbv.h but do not need the full floatbv_expr.h (32).