diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2020-03-11 10:13:24 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-11 10:13:24 -0500 |
commit | 10507bb67177a1e52bdd89535c3c6d77cc62507a (patch) | |
tree | 2905771aa934b5c647569286024f8eb4e9c6b4cd /src/theory/quantifiers | |
parent | 2b355305ef635ddfaad7fe75c29221cb2f744a62 (diff) |
Fix duplicate variable issue in sygus-qe-preproc (#4013)
Diffstat (limited to 'src/theory/quantifiers')
-rw-r--r-- | src/theory/quantifiers/single_inv_partition.cpp | 2 | ||||
-rw-r--r-- | src/theory/quantifiers/single_inv_partition.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/theory/quantifiers/single_inv_partition.cpp b/src/theory/quantifiers/single_inv_partition.cpp index a0e25b756..50831fdac 100644 --- a/src/theory/quantifiers/single_inv_partition.cpp +++ b/src/theory/quantifiers/single_inv_partition.cpp @@ -346,7 +346,7 @@ bool SingleInvocationPartition::init(std::vector<Node>& funcs, d_conjuncts[2].push_back(cr); std::unordered_set<Node, NodeHashFunction> fvs; expr::getFreeVariables(cr, fvs); - d_all_vars.insert(d_all_vars.end(), fvs.begin(), fvs.end()); + d_all_vars.insert(fvs.begin(), fvs.end()); if (singleInvocation) { // replace with single invocation formulation diff --git a/src/theory/quantifiers/single_inv_partition.h b/src/theory/quantifiers/single_inv_partition.h index 0a4af3185..cdc56d1f0 100644 --- a/src/theory/quantifiers/single_inv_partition.h +++ b/src/theory/quantifiers/single_inv_partition.h @@ -201,7 +201,7 @@ class SingleInvocationPartition std::vector<Node> d_si_vars; /** every free variable of conjuncts[2] */ - std::vector<Node> d_all_vars; + std::unordered_set<Node, NodeHashFunction> d_all_vars; /** map from functions to first-order variables that anti-skolemized them */ std::map<Node, Node> d_func_fo_var; /** map from first-order variables to the function it anti-skolemized */ |