Skip to content

Commit 871298a

Browse files
author
Daniel Kroening
committed
print disjuncts in Gentzen sequent separately
1 parent 163bc94 commit 871298a

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

src/goto-symex/show_vcc.cpp

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,22 @@ void show_vcc_plain(
8383
out << u8"\u2500";
8484
out << '\n';
8585

86-
std::string string_value =
87-
from_expr(ns, s_it->source.pc->function, s_it->cond_expr);
88-
out << "{" << 1 << "} " << string_value << "\n";
86+
// split property into multiple disjunts, if applicable
87+
exprt::operandst disjuncts;
88+
89+
if(s_it->cond_expr.id() == ID_or)
90+
disjuncts = to_or_expr(s_it->cond_expr).operands();
91+
else
92+
disjuncts.push_back(s_it->cond_expr);
93+
94+
std::size_t count = 1;
95+
for(const auto &disjunct : disjuncts)
96+
{
97+
std::string string_value =
98+
from_expr(ns, s_it->source.pc->function, disjunct);
99+
out << "{" << count << "} " << string_value << "\n";
100+
count++;
101+
}
89102
}
90103
}
91104

0 commit comments

Comments
 (0)