Skip to content

Commit

Permalink
Move MAX_CONCRETE_STRING_SIZE definition to magic
Browse files Browse the repository at this point in the history
  • Loading branch information
romainbrenguier committed Apr 18, 2018
1 parent d1b6da4 commit ce43b3e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/solvers/refinement/string_refinement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Author: Alberto Griggio, [email protected]
#include <solvers/sat/satcheck.h>
#include <solvers/refinement/string_constraint_instantiation.h>
#include <unordered_set>
#include <util/magic.h>

static bool is_valid_string_constraint(
messaget::mstreamt &stream,
Expand Down
2 changes: 0 additions & 2 deletions src/solvers/refinement/string_refinement.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ Author: Alberto Griggio, [email protected]

#define DEFAULT_MAX_NB_REFINEMENT std::numeric_limits<size_t>::max()
#define CHARACTER_FOR_UNKNOWN '?'
// Limit the size of strings in traces to 64M chars to avoid memout
#define MAX_CONCRETE_STRING_SIZE (1 << 26)

class string_refinementt final: public bv_refinementt
{
Expand Down
2 changes: 2 additions & 0 deletions src/util/magic.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@
const std::size_t CNF_DUMP_BLOCK_SIZE = 4096;
const std::size_t MAX_FLATTENED_ARRAY_SIZE=1000;
const std::size_t STRING_REFINEMENT_MAX_CHAR_WIDTH = 16;
// Limit the size of strings in traces to 64M chars to avoid memout
const std::size_t MAX_CONCRETE_STRING_SIZE = 1 << 26;

#endif

0 comments on commit ce43b3e

Please sign in to comment.