File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -64,11 +64,11 @@ bool cbmc_dimacst::write_dimacs(std::ostream &out)
64
64
s_it++)
65
65
{
66
66
if (s_it->second .is_constant ())
67
- out << " c " << ( s_it->second . is_true ()? " TRUE " : " FALSE " ) << " "
68
- << s_it->first << " \n " ;
67
+ out << " c " << s_it->first << " "
68
+ << ( s_it->second . is_true ()? " TRUE " : " FALSE " ) << " \n " ;
69
69
else
70
- out << " c " << s_it->second . dimacs () << " "
71
- << s_it->first << " \n " ;
70
+ out << " c " << s_it->first << " "
71
+ << s_it->second . dimacs () << " \n " ;
72
72
}
73
73
74
74
// dump mapping for selected bit-vectors
@@ -80,7 +80,8 @@ bool cbmc_dimacst::write_dimacs(std::ostream &out)
80
80
m_it++)
81
81
{
82
82
if (m_it->second .bvtype ==IS_SIGNED ||
83
- m_it->second .bvtype ==IS_UNSIGNED)
83
+ m_it->second .bvtype ==IS_UNSIGNED ||
84
+ m_it->second .bvtype ==IS_C_BOOL)
84
85
{
85
86
const boolbv_mapt::literal_mapt &literal_map=m_it->second .literal_map ;
86
87
out << " c " << m_it->first ;
You can’t perform that action at this time.
0 commit comments