summaryrefslogtreecommitdiff
path: root/src/theory/strings/theory_strings.cpp
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2018-03-25 11:47:38 -0500
committerAndres Noetzli <andres.noetzli@gmail.com>2018-03-25 09:47:38 -0700
commitc03e15c1b4ef6ec62209f2a4906cce5843e80c46 (patch)
tree3446029246936a23004e734e5e2590bde37b87c6 /src/theory/strings/theory_strings.cpp
parent9e9e6b8777047160ef7a1f2708a295aa503eb856 (diff)
Cleanup various exit calls (#1692)
Diffstat (limited to 'src/theory/strings/theory_strings.cpp')
-rw-r--r--src/theory/strings/theory_strings.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/theory/strings/theory_strings.cpp b/src/theory/strings/theory_strings.cpp
index 8827959ea..59b2e8ea0 100644
--- a/src/theory/strings/theory_strings.cpp
+++ b/src/theory/strings/theory_strings.cpp
@@ -2807,8 +2807,9 @@ bool TheoryStrings::detectLoop( std::vector< std::vector< Node > > &normal_forms
bool TheoryStrings::processLoop( std::vector< std::vector< Node > > &normal_forms, std::vector< Node > &normal_form_src,
int i, int j, int loop_n_index, int other_n_index, int loop_index, int index, InferInfo& info ){
if( options::stringAbortLoop() ){
- Message() << "Looping word equation encountered." << std::endl;
- exit( 1 );
+ std::stringstream ss;
+ ss << "Looping word equation encountered." << std::endl;
+ throw LogicException(ss.str());
}
NodeManager* nm = NodeManager::currentNM();
Node conc;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback