Skip to content

Commit d2801ee

Browse files
committed
deprecate goto_instructiont::get_ and set_condition()
1 parent 4031e6b commit d2801ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/goto-programs/goto_program.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,13 +345,15 @@ class goto_programt
345345
}
346346

347347
/// Get the condition of gotos, assume, assert
348+
DEPRECATED(SINCE(2021, 10, 12, "Use condition() instead"))
348349
const exprt &get_condition() const
349350
{
350351
PRECONDITION(has_condition());
351352
return guard;
352353
}
353354

354355
/// Set the condition of gotos, assume, assert
356+
DEPRECATED(SINCE(2021, 10, 12, "Use condition_nonconst() instead"))
355357
void set_condition(exprt c)
356358
{
357359
PRECONDITION(has_condition());

0 commit comments

Comments
 (0)