File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -1011,17 +1011,28 @@ int cbmc_parse_optionst::do_bmc(
1011
1011
{
1012
1012
bmc.set_ui (get_ui ());
1013
1013
1014
+ int result=6 ;
1015
+
1014
1016
// do actual BMC
1015
- bool result=(bmc.run (goto_functions)==safety_checkert::SAFE);
1017
+ switch (bmc.run (goto_functions))
1018
+ {
1019
+ case safety_checkert::SAFE:
1020
+ result=0 ;
1021
+ break ;
1022
+ case safety_checkert::UNSAFE:
1023
+ result=10 ;
1024
+ break ;
1025
+ case safety_checkert::ERROR:
1026
+ result=6 ;
1027
+ break ;
1028
+ }
1016
1029
1017
1030
// let's log some more statistics
1018
1031
debug () << " Memory consumption:" << messaget::endl;
1019
1032
memory_info (debug ());
1020
1033
debug () << eom;
1021
1034
1022
- // We return '0' if the property holds,
1023
- // and '10' if it is violated.
1024
- return result?0 :10 ;
1035
+ return result;
1025
1036
}
1026
1037
1027
1038
/* ******************************************************************\
You can’t perform that action at this time.
0 commit comments