88
99#ifdef _ENABLE_CBMC_
1010
11- #define ASYNC (c ) __CPROVER_ASYNC_1 : (c)
12- #define ATOMIC_BEGIN __CPROVER_atomic_begin()
13- #define ATOMIC_END __CPROVER_atomic_end()
11+ # define ASYNC (n , c ) __CPROVER_ASYNC_##n : (c)
12+ # define ATOMIC_BEGIN __CPROVER_atomic_begin()
13+ # define ATOMIC_END __CPROVER_atomic_end()
1414
1515char symbolic_char (char );
1616
@@ -233,7 +233,7 @@ void* write_data_register(struct Hardware *hw, RegisterId reg_id, Register value
233233 pthread_create (& interrupt_thread , NULL , hw -> interrupt_handler , (void * ) hw -> fw );
234234 }
235235#else
236- ASYNC (hw -> interrupt_handler ((void * ) hw -> fw ));
236+ ASYNC (1 , hw -> interrupt_handler ((void * )hw -> fw ));
237237#endif
238238
239239SKIP :
@@ -346,7 +346,7 @@ int main(void)
346346 pthread_t firmware_thread ;
347347 pthread_create (& firmware_thread , NULL , poll , (void * ) fw );
348348#else
349- ASYNC (poll ((void * ) fw ));
349+ ASYNC (1 , poll ((void * )fw ));
350350#endif
351351
352352#ifdef _EXPOSE_BUG_
@@ -358,7 +358,7 @@ int main(void)
358358 pthread_t stimulus_thread ;
359359 pthread_create (& stimulus_thread , NULL , stimulus , (void * ) hw );
360360#else
361- ASYNC (stimulus ((void * ) hw ));
361+ ASYNC (2 , stimulus ((void * )hw ));
362362#endif
363363
364364#ifdef _EXPOSE_BUG_
0 commit comments