From 5f4ca8c6fc302b8a9959b0f91e7fc680256027f2 Mon Sep 17 00:00:00 2001 From: Nikolaj Bjorner Date: Mon, 15 Jul 2024 11:11:37 -0700 Subject: [PATCH] use template<> syntax Signed-off-by: Nikolaj Bjorner --- src/ast/sls/sls_arith_base.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ast/sls/sls_arith_base.cpp b/src/ast/sls/sls_arith_base.cpp index 519e724d9..7ebc0766e 100644 --- a/src/ast/sls/sls_arith_base.cpp +++ b/src/ast/sls/sls_arith_base.cpp @@ -371,6 +371,7 @@ namespace sls { ineq.m_args.push_back({ c, v }); } + template<> bool arith_base>::is_num(expr* e, checked_int64& i) { rational r; if (a.is_numeral(e, r)) { @@ -382,6 +383,7 @@ namespace sls { return false; } + template<> bool arith_base::is_num(expr* e, rational& i) { return a.is_numeral(e, i); } @@ -392,10 +394,12 @@ namespace sls { return false; } + template<> expr_ref arith_base::from_num(sort* s, rational const& n) { return expr_ref(a.mk_numeral(n, s), m); } + template<> expr_ref arith_base>::from_num(sort* s, checked_int64 const& n) { return expr_ref(a.mk_numeral(rational(n.get_int64(), rational::i64()), s), m); }