@@ -92,21 +92,32 @@ int main(int argc, char** argv)
92
92
else if (arg==" irep" )
93
93
INVARIANT_WITH_IREP (false , " error with irep" , pointer_type (void_typet ()));
94
94
else if (arg == " invariant-diagnostics" )
95
- INVARIANT (
95
+ INVARIANT_WITH_DIAGNOSTICS (
96
96
false ,
97
97
" invariant with diagnostics failure" ,
98
98
" invariant diagnostics information" );
99
99
else if (arg == " precondition-diagnostics" )
100
- PRECONDITION (false , " precondition diagnostics information" );
100
+ PRECONDITION_WITH_DIAGNOSTICS (
101
+ false , " precondition diagnostics information" );
101
102
else if (arg == " postcondition-diagnostics" )
102
- POSTCONDITION (false , " postcondition diagnostics information" );
103
+ POSTCONDITION_WITH_DIAGNOSTICS (
104
+ false , " postcondition diagnostics information" );
103
105
else if (arg == " check-return-diagnostics" )
104
- CHECK_RETURN (false , " check return diagnostics information" );
106
+ CHECK_RETURN_WITH_DIAGNOSTICS (
107
+ false , " check return diagnostics information" );
105
108
else if (arg == " data-invariant-diagnostics" )
106
- DATA_INVARIANT (
109
+ DATA_INVARIANT_WITH_DIAGNOSTICS (
107
110
false ,
108
111
" data invariant with diagnostics failure" ,
109
112
" data invariant diagnostics information" );
113
+ else if (arg == " invariant-with-lots-of-diagnostics" )
114
+ INVARIANT_WITH_DIAGNOSTICS (
115
+ false ,
116
+ " an invariant that fails" ,
117
+ " diagnostic 1" ,
118
+ " diagnostic 2" ,
119
+ " diagnostic 3" ,
120
+ " diagnostic 4" );
110
121
else
111
122
return 1 ;
112
123
}
0 commit comments