Skip to content

Commit 9a60cdb

Browse files
Andreas PaschosNlightNFotis
Andreas Paschos
authored andcommitted
Fixes from reviews
1 parent 4835290 commit 9a60cdb

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/goto-programs/goto_convert.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,7 @@ void goto_convertt::finish_gotos(goto_programt &dest, const irep_idt &mode)
180180
}
181181
else
182182
{
183-
INVARIANT(
184-
false,
185-
i.code.find_source_location().as_string() +
186-
": finish_gotos: unexpected goto");
183+
UNREACHABLE;
187184
}
188185
}
189186

@@ -198,7 +195,7 @@ void goto_convertt::finish_computed_gotos(goto_programt &goto_program)
198195
exprt destination=i.code.op0();
199196

200197
DATA_INVARIANT(
201-
destination.id() != ID_dereference, "dereference ID not allowed here");
198+
destination.id() == ID_dereference, "dereference ID not allowed here");
202199
DATA_INVARIANT(destination.operands().size() == 1, "expected 1 argument");
203200

204201
exprt pointer=destination.op0();

0 commit comments

Comments
 (0)