void _main(){if(global_returns_t_or_f()){{std_thread thread_a=NULL;std_thread thread_b=NULL;int val;val=0;if (!std_thread_create(helper_main, (void*)&val, &thread_a)){thread_a=NULL;}if (!std_thread_create(helper_main, (void*)&val, &thread_b)){thread_b=NULL;}if (thread_a && std_thread_join(thread_a)) std_thread_destroy(thread_a);if (thread_b && std_thread_join(thread_b)) std_thread_destroy(thread_b);printIntLine(val);}}else{{std_thread thread_a=NULL;std_thread thread_b=NULL;int val;val=0;if (!std_thread_lock_create(&g_good_lock)){return;}if (!std_thread_create(helper_good, (void*)&val, &thread_a)){thread_a=NULL;}if (!std_thread_create(helper_good, (void*)&val, &thread_b)){thread_b=NULL;}if (thread_a && std_thread_join(thread_a)) std_thread_destroy(thread_a);if (thread_b && std_thread_join(thread_b)) std_thread_destroy(thread_b);std_thread_lock_destroy(g_good_lock);printIntLine(val);}}}
static void main(){if(global_returns_t_or_f()){{std_thread thread_a=NULL;std_thread thread_b=NULL;int val;val=0;if (!std_thread_lock_create(&g_good_lock)){return;}if (!std_thread_create(helper_good, (void*)&val, &thread_a)){thread_a=NULL;}if (!std_thread_create(helper_good, (void*)&val, &thread_b)){thread_b=NULL;}if (thread_a && std_thread_join(thread_a)) std_thread_destroy(thread_a);if (thread_b && std_thread_join(thread_b)) std_thread_destroy(thread_b);std_thread_lock_destroy(g_good_lock);printIntLine(val);}}else{{std_thread thread_a=NULL;std_thread thread_b=NULL;int val;val=0;if (!std_thread_lock_create(&g_good_lock)){return;}if (!std_thread_create(helper_good, (void*)&val, &thread_a)){thread_a=NULL;}if (!std_thread_create(helper_good, (void*)&val, &thread_b)){thread_b=NULL;}if (thread_a && std_thread_join(thread_a)) std_thread_destroy(thread_a);if (thread_b && std_thread_join(thread_b)) std_thread_destroy(thread_b);std_thread_lock_destroy(g_good_lock);printIntLine(val);}}}