File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ void goto_trace_stept::output(
65
65
case goto_trace_stept::ASSIGNMENT: out << " ASSIGNMENT" ; break ;
66
66
case goto_trace_stept::GOTO: out << " GOTO" ; break ;
67
67
case goto_trace_stept::DECL: out << " DECL" ; break ;
68
+ case goto_trace_stept::DEAD: out << " DEAD" ; break ;
68
69
case goto_trace_stept::OUTPUT: out << " OUTPUT" ; break ;
69
70
case goto_trace_stept::INPUT: out << " INPUT" ; break ;
70
71
case goto_trace_stept::ATOMIC_BEGIN: out << " ATOMC_BEGIN" ; break ;
@@ -73,7 +74,9 @@ void goto_trace_stept::output(
73
74
case goto_trace_stept::SHARED_WRITE: out << " SHARED WRITE" ; break ;
74
75
case goto_trace_stept::FUNCTION_CALL: out << " FUNCTION CALL" ; break ;
75
76
case goto_trace_stept::FUNCTION_RETURN: out << " FUNCTION RETURN" ; break ;
76
- default : assert (false );
77
+ default :
78
+ out << " unknown type: " << type << std::endl;
79
+ assert (false );
77
80
}
78
81
79
82
if (type==ASSERT || type==ASSUME || type==GOTO)
Original file line number Diff line number Diff line change @@ -154,6 +154,13 @@ class goto_tracet
154
154
steps.push_back (step);
155
155
}
156
156
157
+ // retrieves the final step in the trace for manipulation
158
+ // (used to fill a trace from code, hence non-const)
159
+ inline goto_trace_stept &get_last_step ()
160
+ {
161
+ return steps.back ();
162
+ }
163
+
157
164
// delete all steps after (not including) s
158
165
void trim_after (stepst::iterator s)
159
166
{
You can’t perform that action at this time.
0 commit comments