From bcaad06061b2981669c84770462192d0886791e3 Mon Sep 17 00:00:00 2001 From: Murphy Berzish Date: Sat, 7 May 2016 17:47:50 -0400 Subject: [PATCH] add theory name; add debug info for freeVar_map --- src/smt/theory_str.cpp | 11 +++++++---- src/smt/theory_str.h | 2 ++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/smt/theory_str.cpp b/src/smt/theory_str.cpp index 37b68e48c..3903508ea 100644 --- a/src/smt/theory_str.cpp +++ b/src/smt/theory_str.cpp @@ -2655,6 +2655,7 @@ void theory_str::init_search_eh() { * might not get a chance to see. */ + /* expr_ref_vector assignments(m); ctx.get_assignments(assignments); for (expr_ref_vector::iterator i = assignments.begin(); i != assignments.end(); ++i) { @@ -2676,6 +2677,7 @@ void theory_str::init_search_eh() { << ": expr ignored" << std::endl;); } } + */ TRACE("t_str", tout << "search started" << std::endl;); search_started = true; @@ -2686,16 +2688,12 @@ void theory_str::new_eq_eh(theory_var x, theory_var y) { TRACE("t_str", tout << "new eq: " << mk_ismt2_pp(get_enode(x)->get_owner(), get_manager()) << " = " << mk_ismt2_pp(get_enode(y)->get_owner(), get_manager()) << std::endl;); handle_equality(get_enode(x)->get_owner(), get_enode(y)->get_owner()); - - TRACE("t_str_dump_assign", dump_assignments();); } void theory_str::new_diseq_eh(theory_var x, theory_var y) { //TRACE("t_str_detail", tout << "new diseq: v#" << x << " != v#" << y << std::endl;); TRACE("t_str", tout << "new diseq: " << mk_ismt2_pp(get_enode(x)->get_owner(), get_manager()) << " != " << mk_ismt2_pp(get_enode(y)->get_owner(), get_manager()) << std::endl;); - - TRACE("t_str_dump_assign", dump_assignments();); } void theory_str::relevant_eh(app * n) { @@ -3523,6 +3521,11 @@ final_check_status theory_str::final_check_eh() { for (std::set::iterator itx = free_variables.begin(); itx != free_variables.end(); ++itx) { tout << mk_ismt2_pp(*itx, m) << std::endl; } + tout << "freeVar_map has the following entries:" << std::endl; + for (std::map::iterator fvIt = freeVar_map.begin(); fvIt != freeVar_map.end(); fvIt++) { + expr * var = fvIt->first; + tout << mk_ismt2_pp(var, m) << std::endl; + } ); // ----------------------------------------------------------- diff --git a/src/smt/theory_str.h b/src/smt/theory_str.h index af2ea1db6..9d56c01fe 100644 --- a/src/smt/theory_str.h +++ b/src/smt/theory_str.h @@ -205,6 +205,8 @@ namespace smt { public: theory_str(ast_manager & m); virtual ~theory_str(); + + virtual char const * get_name() const { return "strings"; } protected: virtual bool internalize_atom(app * atom, bool gate_ctx); virtual bool internalize_term(app * term);