File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ Author: Daniel Kroening, kroening@kroening.com
1616#include < util/namespace.h>
1717#include < util/std_expr.h>
1818
19+ #include < ebmc/ebmc_error.h>
1920#include < solvers/flattening/boolbv_width.h>
2021#include < solvers/prop/literal_expr.h>
2122#include < temporal-logic/ctl.h>
@@ -564,8 +565,9 @@ void convert_trans_to_netlistt::convert_lhs_rec(
564565 lhs_mapt::iterator it=lhs_map.find (bv_varid);
565566
566567 if (it==lhs_map.end ())
567- throw " lhs_rec: failed to find `" +bv_varid.as_string ()+" ' in lhs_map" ;
568-
568+ throw ebmc_errort{} << " lhs_rec: failed to find `"
569+ << bv_varid.as_string () << " ' in lhs_map" ;
570+
569571 // we only need to do wires
570572 if (!it->second .var ->is_wire ()) return ;
571573
@@ -729,7 +731,8 @@ void convert_trans_to_netlistt::add_equality_rec(
729731 lhs_map.find (bv_varid);
730732
731733 if (it==lhs_map.end ())
732- throw " add_equality_rec: failed to find `" +bv_varid.as_string ()+" ' in lhs_map" ;
734+ throw ebmc_errort{} << " add_equality_rec: failed to find `"
735+ << bv_varid.as_string () << " ' in lhs_map" ;
733736
734737 lhs_entryt &lhs_entry=it->second ;
735738 const var_mapt::vart &var=*lhs_entry.var ;
You can’t perform that action at this time.
0 commit comments