diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2018-03-25 11:47:38 -0500 |
---|---|---|
committer | Andres Noetzli <andres.noetzli@gmail.com> | 2018-03-25 09:47:38 -0700 |
commit | c03e15c1b4ef6ec62209f2a4906cce5843e80c46 (patch) | |
tree | 3446029246936a23004e734e5e2590bde37b87c6 /src/theory/strings/theory_strings.cpp | |
parent | 9e9e6b8777047160ef7a1f2708a295aa503eb856 (diff) |
Cleanup various exit calls (#1692)
Diffstat (limited to 'src/theory/strings/theory_strings.cpp')
-rw-r--r-- | src/theory/strings/theory_strings.cpp | 5 |
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; |