mirror of
https://github.com/Z3Prover/z3
synced 2025-10-04 23:13:57 +00:00
never ever ever reuse constants in mk_string(). this gets us MUCH farther
This commit is contained in:
parent
953a4c5437
commit
23150d3b5e
2 changed files with 16 additions and 17 deletions
|
@ -101,7 +101,8 @@ func_decl * str_decl_plugin::mk_func_decl(decl_kind k, unsigned num_parameters,
|
|||
|
||||
app * str_decl_plugin::mk_string(std::string & val) {
|
||||
std::map<std::string, app*>::iterator it = string_cache.find(val);
|
||||
if (it == string_cache.end()) {
|
||||
//if (it == string_cache.end()) {
|
||||
if (true) {
|
||||
char * new_buffer = alloc_svect(char, (val.length() + 1));
|
||||
strcpy(new_buffer, val.c_str());
|
||||
parameter p[1] = {parameter(new_buffer)};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue