File tree Expand file tree Collapse file tree 1 file changed +15
-17
lines changed Expand file tree Collapse file tree 1 file changed +15
-17
lines changed Original file line number Diff line number Diff line change @@ -79,23 +79,21 @@ bool cbmc_dimacst::write_dimacs(std::ostream &out)
79
79
m_it!=boolbv_map.mapping .end ();
80
80
m_it++)
81
81
{
82
- if (m_it->second .bvtype ==IS_SIGNED ||
83
- m_it->second .bvtype ==IS_UNSIGNED ||
84
- m_it->second .bvtype ==IS_C_BOOL)
85
- {
86
- const boolbv_mapt::literal_mapt &literal_map=m_it->second .literal_map ;
87
- out << " c " << m_it->first ;
88
-
89
- for (unsigned i=0 ; i<literal_map.size (); i++)
90
- if (!literal_map[i].is_set )
91
- out << " " << " ?" ;
92
- else if (literal_map[i].l .is_constant ())
93
- out << " " << (literal_map[i].l .is_true ()?" TRUE" :" FALSE" );
94
- else
95
- out << " " << literal_map[i].l .dimacs ();
96
-
97
- out << " \n " ;
98
- }
82
+ const boolbv_mapt::literal_mapt &literal_map=m_it->second .literal_map ;
83
+
84
+ if (literal_map.empty ()) continue ;
85
+
86
+ out << " c " << m_it->first ;
87
+
88
+ for (unsigned i=0 ; i<literal_map.size (); i++)
89
+ if (!literal_map[i].is_set )
90
+ out << " " << " ?" ;
91
+ else if (literal_map[i].l .is_constant ())
92
+ out << " " << (literal_map[i].l .is_true ()?" TRUE" :" FALSE" );
93
+ else
94
+ out << " " << literal_map[i].l .dimacs ();
95
+
96
+ out << " \n " ;
99
97
}
100
98
101
99
return false ;
You can’t perform that action at this time.
0 commit comments