diff options
Diffstat (limited to 'src/theory/sets')
-rw-r--r-- | src/theory/sets/rels_utils.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/theory/sets/rels_utils.h b/src/theory/sets/rels_utils.h index 5f4c7d79d..d179c447e 100644 --- a/src/theory/sets/rels_utils.h +++ b/src/theory/sets/rels_utils.h @@ -66,8 +66,9 @@ public: if( tuple.getKind() == kind::APPLY_CONSTRUCTOR ) { return tuple[n_th]; } - Datatype dt = tuple.getType().getDatatype(); - return NodeManager::currentNM()->mkNode(kind::APPLY_SELECTOR_TOTAL, dt[0][n_th].getSelector(), tuple); + TypeNode tn = tuple.getType(); + Datatype dt = tn.getDatatype(); + return NodeManager::currentNM()->mkNode(kind::APPLY_SELECTOR_TOTAL, dt[0].getSelectorInternal( tn.toType(), n_th ), tuple); } static Node reverseTuple( Node tuple ) { |