Skip to content

Commit 9e355e9

Browse files
committed
Use make_skip to turn an instruction into a SKIP
1 parent b055179 commit 9e355e9

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/analyses/goto_check.cpp

+6-2
Original file line numberDiff line numberDiff line change
@@ -1649,12 +1649,16 @@ void goto_checkt::goto_check(
16491649
if((is_user_provided && !enable_assertions &&
16501650
i.source_location.get_property_class()!="error label") ||
16511651
(!is_user_provided && !enable_built_in_assertions))
1652-
i.type=SKIP;
1652+
{
1653+
i.make_skip();
1654+
}
16531655
}
16541656
else if(i.is_assume())
16551657
{
16561658
if(!enable_assumptions)
1657-
i.type=SKIP;
1659+
{
1660+
i.make_skip();
1661+
}
16581662
}
16591663
else if(i.is_dead())
16601664
{

src/goto-programs/set_properties.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void set_properties(
3232
property_set.find(property_id);
3333

3434
if(c_it==property_set.end())
35-
it->type=SKIP;
35+
it->make_skip();
3636
else
3737
property_set.erase(c_it);
3838
}

0 commit comments

Comments
 (0)