forked from diffblue/cbmc
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consistently disable simplify_exprt::local_replace_map
This avoids unnecessarily computing the hash of an exprt for an unused map. The common preprocessor macro now also links together all related bits of code.
- Loading branch information
1 parent
da63652
commit 3c23b28
Showing
2 changed files
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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 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,7 +19,10 @@ Author: Daniel Kroening, [email protected] | |
|
||
#include "type.h" | ||
#include "mp_arith.h" | ||
// #define USE_LOCAL_REPLACE_MAP | ||
#ifdef USE_LOCAL_REPLACE_MAP | ||
#include "replace_expr.h" | ||
#endif | ||
|
||
class bswap_exprt; | ||
class byte_extract_exprt; | ||
|
@@ -154,7 +157,9 @@ class simplify_exprt | |
#ifdef DEBUG_ON_DEMAND | ||
bool debug_on; | ||
#endif | ||
#ifdef USE_LOCAL_REPLACE_MAP | ||
replace_mapt local_replace_map; | ||
#endif | ||
}; | ||
|
||
#endif // CPROVER_UTIL_SIMPLIFY_EXPR_CLASS_H |