@@ -167,29 +167,31 @@ impl KaniSession {
167
167
harness : & HarnessMetadata ,
168
168
) -> Result < VerificationResult > {
169
169
let thread_index = rayon:: current_thread_index ( ) . unwrap_or_default ( ) ;
170
- // If the harness is automatically generated, pretty_name refers to the function under verification.
171
- let mut msg = if harness. is_automatically_generated {
172
- if matches ! ( harness. attributes. kind, HarnessKind :: Proof ) {
173
- format ! (
174
- "Autoverify: Checking function {} against all possible inputs..." ,
175
- harness. pretty_name
176
- )
170
+ if !self . args . common_args . quiet {
171
+ // If the harness is automatically generated, pretty_name refers to the function under verification.
172
+ let mut msg = if harness. is_automatically_generated {
173
+ if matches ! ( harness. attributes. kind, HarnessKind :: Proof ) {
174
+ format ! (
175
+ "Autoverify: Checking function {} against all possible inputs..." ,
176
+ harness. pretty_name
177
+ )
178
+ } else {
179
+ format ! (
180
+ "Autoverify: Checking function {}'s contract against all possible inputs..." ,
181
+ harness. pretty_name
182
+ )
183
+ }
177
184
} else {
178
- format ! (
179
- "Autoverify: Checking function {}'s contract against all possible inputs..." ,
180
- harness. pretty_name
181
- )
185
+ format ! ( "Checking harness {}..." , harness. pretty_name)
186
+ } ;
187
+
188
+ if rayon:: current_num_threads ( ) > 1 {
189
+ msg = format ! ( "Thread {thread_index}: {msg}" ) ;
182
190
}
183
- } else {
184
- format ! ( "Checking harness {}..." , harness. pretty_name)
185
- } ;
186
191
187
- if rayon:: current_num_threads ( ) > 1 {
188
- msg = format ! ( "Thread {thread_index}: {msg}" ) ;
192
+ println ! ( "{msg}" ) ;
189
193
}
190
194
191
- println ! ( "{msg}" ) ;
192
-
193
195
let mut result = self . with_timer ( || self . run_cbmc ( binary, harness) , "run_cbmc" ) ?;
194
196
195
197
self . process_output ( & result, harness, thread_index) ;
0 commit comments