-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1845 from tautschnig/fix-1837
Fix building without USE_DSTRING
- Loading branch information
Showing
17 changed files
with
37 additions
and
18 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
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 |
---|---|---|
|
@@ -12,6 +12,8 @@ Author: Daniel Kroening, [email protected] | |
|
||
#include <util/irep.h> | ||
|
||
#include <unordered_map> | ||
|
||
enum class ansi_c_id_classt | ||
{ | ||
ANSI_C_UNKNOWN, | ||
|
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 |
---|---|---|
|
@@ -20,6 +20,7 @@ Author: Daniel Kroening, [email protected] | |
|
||
#include <util/invariant.h> | ||
#include <util/std_types.h> | ||
#include <util/string_container.h> | ||
#include <util/symbol_table.h> | ||
#include <util/ieee_float.h> | ||
#include <util/fixedbv.h> | ||
|
@@ -642,7 +643,7 @@ exprt interpretert::get_value( | |
{ | ||
// Strings are currently encoded by their irep_idt ID. | ||
return constant_exprt( | ||
irep_idt::make_from_table_index(rhs[integer2size_t(offset)].to_long()), | ||
get_string_container().get_string(rhs[integer2size_t(offset)].to_long()), | ||
type); | ||
} | ||
|
||
|
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,6 +19,7 @@ Author: Daniel Kroening, [email protected] | |
#include <util/invariant.h> | ||
#include <util/fixedbv.h> | ||
#include <util/std_expr.h> | ||
#include <util/string_container.h> | ||
#include <util/pointer_offset_size.h> | ||
|
||
#include <langapi/language_util.h> | ||
|
@@ -394,7 +395,7 @@ void interpretert::evaluate( | |
if(show) | ||
warning() << "string decoding not fully implemented " | ||
<< length << eom; | ||
mp_integer tmp=value.get_no(); | ||
mp_integer tmp = get_string_container()[id2string(value)]; | ||
dest.push_back(tmp); | ||
return; | ||
} | ||
|
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
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
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 |
---|---|---|
|
@@ -23,6 +23,8 @@ Author: Michael Tautschnig, [email protected] | |
|
||
#include <solvers/miniBDD/miniBDD.h> | ||
|
||
#include <unordered_map> | ||
|
||
class namespacet; | ||
|
||
/*! \brief TO_BE_DOCUMENTED | ||
|
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 |
---|---|---|
|
@@ -15,6 +15,8 @@ Author: Daniel Kroening, [email protected] | |
#include <functional> | ||
#include "type.h" | ||
|
||
#include <list> | ||
|
||
#define forall_operands(it, expr) \ | ||
if((expr).has_operands()) /* NOLINT(readability/braces) */ \ | ||
for(exprt::operandst::const_iterator it=(expr).operands().begin(), \ | ||
|
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 |
---|---|---|
|
@@ -12,10 +12,14 @@ Author: Reuben Thomas, [email protected] | |
#ifndef CPROVER_UTIL_IREP_IDS_H | ||
#define CPROVER_UTIL_IREP_IDS_H | ||
|
||
#ifndef USE_STD_STRING | ||
#define USE_DSTRING | ||
#endif | ||
|
||
#ifdef USE_DSTRING | ||
#include "dstring.h" | ||
#else | ||
#include <string> | ||
#endif | ||
|
||
/// \file The irep_ids are generated using a technique called | ||
|
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 |
---|---|---|
|
@@ -17,6 +17,8 @@ Author: Daniel Kroening, [email protected] | |
|
||
#include "expr.h" | ||
|
||
#include <unordered_map> | ||
|
||
typedef std::unordered_map<exprt, exprt, irep_hash> replace_mapt; | ||
|
||
bool replace_expr(const exprt &what, const exprt &by, exprt &dest); | ||
|
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 |
---|---|---|
|
@@ -17,6 +17,8 @@ Author: Daniel Kroening, [email protected] | |
|
||
#include "expr.h" | ||
|
||
#include <unordered_map> | ||
|
||
class replace_symbolt | ||
{ | ||
public: | ||
|
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 |
---|---|---|
|
@@ -21,6 +21,8 @@ Author: Daniel Kroening, [email protected] | |
#include "invariant.h" | ||
#include "expr_cast.h" | ||
|
||
#include <unordered_map> | ||
|
||
class constant_exprt; | ||
|
||
/*! \defgroup gr_std_types Conversion to specific types | ||
|
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