Set a property id for recursion unwinding assertions
Previously we displayed an empty id.
This commit is contained in:
parent
e48870578f
commit
e53a82b00d
|
@ -0,0 +1,9 @@
|
|||
void foo()
|
||||
{
|
||||
foo();
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
foo();
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
CORE
|
||||
main.c
|
||||
--unwind 3 --unwinding-assertions
|
||||
^EXIT=10$
|
||||
^SIGNAL=0$
|
||||
^VERIFICATION FAILED$
|
||||
^\[foo.recursion\]
|
||||
--
|
|
@ -988,6 +988,12 @@ irep_idt symex_target_equationt::SSA_stept::get_property_id() const
|
|||
property_id = id2string(source.pc->source_location.get_function()) +
|
||||
".unwind." + std::to_string(source.pc->loop_number);
|
||||
}
|
||||
else if(source.pc->is_function_call())
|
||||
{
|
||||
// this is likely a recursion unwinding assertion
|
||||
property_id =
|
||||
id2string(source.pc->source_location.get_function()) + ".recursion";
|
||||
}
|
||||
else
|
||||
{
|
||||
// return empty
|
||||
|
|
Loading…
Reference in New Issue