Skip to content

Commit c92b8ea

Browse files
committed
Reorder template concretization for type deduction in clang
1 parent 9db4b58 commit c92b8ea

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

src/ila-mngr/u_unroller_smt.cc

+12-6
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,16 @@ UnrollerSmt<Generator>::UnrollWithStepsUnconnected_(const size_t& len,
7171
return smt_gen_.GetShimExpr(nullptr, "");
7272
}
7373

74-
//
75-
// PathUnroller
76-
//
77-
7874
// Concretize SMT generators
79-
template class PathUnroller<Z3ExprAdapter>;
75+
template class UnrollerSmt<Z3ExprAdapter>;
8076
#ifdef SMTSWITCH_INTERFACE
81-
template class PathUnroller<SmtSwitchItf>;
77+
template class UnrollerSmt<SmtSwitchItf>;
8278
#endif // SMTSWITCH_INTERFACE
8379

80+
//
81+
// PathUnroller
82+
//
83+
8484
template <class Generator> void PathUnroller<Generator>::SetDecidingVars() {
8585
ExprSet unique_vars;
8686
for (const auto& instr : seq_) {
@@ -116,4 +116,10 @@ void PathUnroller<Generator>::MakeOneTransition(const size_t& idx) {
116116
this->assert_holder_.push_back(decode);
117117
}
118118

119+
// Concretize SMT generators
120+
template class PathUnroller<Z3ExprAdapter>;
121+
#ifdef SMTSWITCH_INTERFACE
122+
template class PathUnroller<SmtSwitchItf>;
123+
#endif // SMTSWITCH_INTERFACE
124+
119125
} // namespace ilang

0 commit comments

Comments
 (0)