Skip to content

Commit 508fd49

Browse files
Get_all_property_ids should only return failed properties
Passed properties on traces are less interesting.
1 parent 79ea945 commit 508fd49

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/goto-programs/goto_trace.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ std::vector<irep_idt> goto_tracet::get_all_property_ids() const
778778
std::vector<irep_idt> property_ids;
779779
for(const auto &step : steps)
780780
{
781-
if(step.is_assert())
781+
if(step.is_assert() && !step.cond_value)
782782
property_ids.push_back(step.property_id);
783783
}
784784
return property_ids;

src/goto-programs/goto_trace.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ class goto_tracet
201201
return steps.back();
202202
}
203203

204-
/// Returns the property IDs of all assertions in the trace
204+
/// Returns the property IDs of all failed assertions in the trace
205205
std::vector<irep_idt> get_all_property_ids() const;
206206
};
207207

0 commit comments

Comments
 (0)