We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3db8d84 + 1538ca4 commit f701467Copy full SHA for f701467
src/goto-symex/goto_symex_state.cpp
@@ -765,6 +765,12 @@ void goto_symex_statet::get_l1_name(exprt &expr) const
765
/// \param out: stream to write to
766
void goto_symex_statet::print_backtrace(std::ostream &out) const
767
{
768
+ if(threads[source.thread_nr].call_stack.empty())
769
+ {
770
+ out << "No stack!\n";
771
+ return;
772
+ }
773
+
774
out << source.pc->function << " " << source.pc->location_number << "\n";
775
776
for(auto stackit = threads[source.thread_nr].call_stack.rbegin(),
0 commit comments