Skip to content

Commit 4582171

Browse files
Cleanup invariants in read_bin_goto_object
1 parent 53d645c commit 4582171

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/goto-programs/read_bin_goto_object.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,10 @@ static bool read_bin_goto_object_v4(
145145
{
146146
unsigned n=*nit;
147147
rev_target_mapt::const_iterator entry=rev_target_map.find(n);
148-
assert(entry!=rev_target_map.end());
148+
INVARIANT(
149+
entry != rev_target_map.end(),
150+
"Something from the target map should also be in the reverse target "
151+
"map");
149152
ins->targets.push_back(entry->second);
150153
}
151154
}

0 commit comments

Comments
 (0)