We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1eedc80 commit c6f6041Copy full SHA for c6f6041
src/goto-programs/goto_program.cpp
@@ -736,6 +736,7 @@ void goto_programt::instructiont::validate(
736
evaluates_to_boolean(guard),
737
"assuming non-boolean condition\n" + guard.pretty(),
738
source_location);
739
+ break;
740
case ASSERT:
741
DATA_CHECK_WITH_DIAGNOSTICS(
742
targets.empty(),
@@ -745,6 +746,13 @@ void goto_programt::instructiont::validate(
745
746
747
"asserting non-boolean condition\n" + guard.pretty(),
748
749
750
+ case GOTO:
751
+ DATA_CHECK_WITH_DIAGNOSTICS(
752
+ evaluates_to_boolean(guard),
753
+ "goto with non-boolean condition\n" + guard.pretty(),
754
+ source_location);
755
756
default:
757
break;
758
}
0 commit comments