Skip to content

Commit 3fb0e70

Browse files
author
Remi Delmas
committed
no simultaneous enable and disable on a same goto instruction is now an invariant.
1 parent a6902e0 commit 3fb0e70

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/analyses/goto_check.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1968,10 +1968,10 @@ void goto_checkt::goto_check(
19681968
else if(d.first == "enable:pointer-primitive-check")
19691969
seen = flag_resetter.set_flag(enable_pointer_primitive_check, true);
19701970

1971-
if(seen)
1972-
log.warning() << "Found enable and disable pragmas for "
1973-
<< d.first << " at " << i.source_location().pretty()
1974-
<< messaget::eom;
1971+
INVARIANT(
1972+
!seen,
1973+
"Found enable and disable pragmas for " + id2string(d.first) +
1974+
" at \n" + i.source_location().pretty());
19751975
}
19761976

19771977
new_code.clear();

0 commit comments

Comments
 (0)