Skip to content

Commit

Permalink
Fix timed quoted symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanoKobalamyne committed Feb 12, 2025
1 parent 22d1b15 commit 29eb694
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions core/unroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@
**
**/

#include <assert.h>
#include "unroller.h"

#include <algorithm>
#include <cassert>

#include "smt-switch/utils.h"

#include "unroller.h"
#include "utils/syntax_analysis_common.h"

using namespace smt;
using namespace std;
Expand Down Expand Up @@ -95,9 +96,10 @@ Term Unroller::var_at_time(const Term & v, unsigned int k)
return it->second;
}

std::string name = v->to_string();
std::string name = syntax_analysis::name_desanitize(v->to_string());
name += time_id_ + std::to_string(k);
Term timed_v = solver_->make_symbol(name, v->get_sort());
Term timed_v =
solver_->make_symbol(syntax_analysis::name_sanitize(name), v->get_sort());
cache[v] = timed_v;
untime_cache_[timed_v] = v;
var_times_[timed_v] = k;
Expand Down

0 comments on commit 29eb694

Please sign in to comment.