// This file is part of the SV-Benchmarks collection of verification tasks: // https://gitlab.com/sosy-lab/benchmarking/sv-benchmarks // // SPDX-FileCopyrightText: 2013 Carnegie Mellon University // SPDX-FileCopyrightText: 2014-2021 The SV-Benchmarks Community // SPDX-FileCopyrightText: 2018 Marie-Christine Jakobs, LMU Munich // // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Attribution-CMU-LMU int __return_main; void abort(void); extern void __assert_fail(const char *, const char *, unsigned int, const char *) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__noreturn__)); void reach_error() { __assert_fail("0", "pals_lcr-var-start-time.3.ufo.BOUNDED-6.pals.c.v+sep-reducer.c", 4, "reach_error"); } _Bool __VERIFIER_nondet_bool(); char __VERIFIER_nondet_char(); void assert(_Bool arg); void abort(void); void assume_abort_if_not(int cond) { if(!cond) {abort();} } typedef char msg_t; typedef int port_t; void read(port_t p, msg_t m); void write(port_t p, msg_t m); msg_t nomsg = (msg_t )-1; char r1 = '\x0'; port_t p1 = 0; char p1_old = '\x0'; char p1_new = '\x0'; char id1 = '\x0'; char st1 = '\x0'; msg_t send1 = '\x0'; _Bool mode1 = 0; _Bool alive1 = 0; port_t p2 = 0; char p2_old = '\x0'; char p2_new = '\x0'; char id2 = '\x0'; char st2 = '\x0'; msg_t send2 = '\x0'; _Bool mode2 = 0; _Bool alive2 = 0; port_t p3 = 0; char p3_old = '\x0'; char p3_new = '\x0'; char id3 = '\x0'; char st3 = '\x0'; msg_t send3 = '\x0'; _Bool mode3 = 0; _Bool alive3 = 0; void node1(); void node2(); void node3(); void (*nodes[3])() = { &node1, &node2, &node3 }; int init(); int check(); int main(); int __return_102; int __return_1323; int __return_3848; int __tmp_3849_0; int __return_5915; int __return_1313; int __tmp_3623_0; int __return_3712; int __return_1343; int __return_1333; int __tmp_3875_0; int __return_1283; int __tmp_3390_0; int __return_3403; int __return_1273; int __tmp_3225_0; int __tmp_3275_0; int __return_3290; int __return_1303; int __tmp_3589_0; int __return_3602; int __return_1293; int __tmp_3424_0; int __tmp_3474_0; int __return_3489; int __return_1403; int __return_1393; int __tmp_4233_0; int __return_1423; int __return_1413; int __tmp_4327_0; int __return_1363; int __return_1353; int __tmp_4045_0; int __return_1383; int __return_1373; int __tmp_4139_0; int __return_1163; int __tmp_2414_0; int __return_2465; int __return_1153; int __tmp_2287_0; int __tmp_2299_0; int __return_2352; int __return_1183; int __tmp_2570_0; int __return_1173; int __tmp_2486_0; int __tmp_2498_0; int __return_1123; int __tmp_2084_0; int __tmp_2096_0; int __return_2111; int __return_1113; int __tmp_1983_0; int __tmp_1995_0; int __tmp_2007_0; int __return_2022; int __tmp_5139_0; int __tmp_5192_0; int __return_5270; int __return_1143; int __tmp_2236_0; int __tmp_2248_0; int __return_2263; int __return_1133; int __tmp_2135_0; int __tmp_2147_0; int __tmp_2159_0; int __return_2174; int __tmp_5369_0; int __return_1243; int __tmp_3035_0; int __return_3086; int __return_1233; int __tmp_2908_0; int __tmp_2920_0; int __return_2973; int __return_1263; int __tmp_3191_0; int __return_1253; int __tmp_3107_0; int __tmp_3119_0; int __return_1203; int __tmp_2705_0; int __tmp_2717_0; int __return_2732; int __return_1193; int __tmp_2604_0; int __tmp_2616_0; int __tmp_2628_0; int __return_2643; int __tmp_5555_0; int __return_1223; int __tmp_2857_0; int __tmp_2869_0; int __return_2884; int __return_1213; int __tmp_2756_0; int __tmp_2768_0; int __tmp_2780_0; int __return_2795; int __tmp_5655_0; int __return_1483; int __return_1473; int __tmp_4591_0; int __return_4656; int __return_1503; int __return_1493; int __tmp_4702_0; int __return_1443; int __return_1433; int __tmp_4421_0; int __tmp_4445_0; int __return_4460; int __return_1463; int __return_1453; int __tmp_4506_0; int __tmp_4530_0; int __return_4545; int __return_1563; int __return_1553; int __tmp_4940_0; int __return_5005; int __return_1583; int __return_1573; int __tmp_5051_0; int __return_1523; int __return_1513; int __tmp_4770_0; int __tmp_4794_0; int __return_4809; int __return_1543; int __return_1533; int __tmp_4855_0; int __tmp_4879_0; int __return_4894; int main() { int main__c1; int main__i2; main__c1 = 0; r1 = __VERIFIER_nondet_char(); id1 = __VERIFIER_nondet_char(); st1 = __VERIFIER_nondet_char(); send1 = __VERIFIER_nondet_char(); mode1 = __VERIFIER_nondet_bool(); alive1 = __VERIFIER_nondet_bool(); id2 = __VERIFIER_nondet_char(); st2 = __VERIFIER_nondet_char(); send2 = __VERIFIER_nondet_char(); mode2 = __VERIFIER_nondet_bool(); alive2 = __VERIFIER_nondet_bool(); id3 = __VERIFIER_nondet_char(); st3 = __VERIFIER_nondet_char(); send3 = __VERIFIER_nondet_char(); mode3 = __VERIFIER_nondet_bool(); alive3 = __VERIFIER_nondet_bool(); { int init__tmp; if (((int)r1) == 0) { if (((((int)alive1) + ((int)alive2)) + ((int)alive3)) >= 1) { if (((int)id1) >= 0) { if (((int)st1) == 0) { if (((int)send1) == ((int)id1)) { if (((int)mode1) == 0) { if (((int)id2) >= 0) { if (((int)st2) == 0) { if (((int)send2) == ((int)id2)) { if (((int)mode2) == 0) { if (((int)id3) >= 0) { if (((int)st3) == 0) { if (((int)send3) == ((int)id3)) { if (((int)mode3) == 0) { if (((int)id1) != ((int)id2)) { if (((int)id1) != ((int)id3)) { if (((int)id2) != ((int)id3)) { init__tmp = 1; __return_102 = init__tmp; main__i2 = __return_102; if (main__i2 != 0) { p1_old = nomsg; p1_new = nomsg; p2_old = nomsg; p2_new = nomsg; p3_old = nomsg; p3_new = nomsg; main__i2 = 0; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { return __return_main; } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; p1_new = node1____CPAchecker_TMP_0; label_131:; mode1 = 1; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { return __return_main; } else { if (!(alive2 == 0)) { int node2____CPAchecker_TMP_0; if (send2 != nomsg) { if (p2_new == nomsg) { node2____CPAchecker_TMP_0 = send2; p2_new = node2____CPAchecker_TMP_0; mode2 = 1; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { return __return_main; } else { if (!(alive3 == 0)) { int node3____CPAchecker_TMP_0; if (send3 != nomsg) { if (p3_new == nomsg) { node3____CPAchecker_TMP_0 = send3; p3_new = node3____CPAchecker_TMP_0; mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1323 = check__tmp; main__c1 = __return_1323; { _Bool __tmp_1; __tmp_1 = main__c1; _Bool assert__arg; assert__arg = __tmp_1; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_3737; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; mode1 = 0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { if (!(alive2 == 0)) { if (((int)node2__m2) > ((int)id2)) { send2 = node2__m2; goto label_3775; } else { if (((int)node2__m2) == ((int)id2)) { st2 = 1; mode2 = 0; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { node3__m3 = p2_old; p2_old = nomsg; if (((int)node3__m3) != ((int)nomsg)) { if (!(alive3 == 0)) { if (((int)node3__m3) > ((int)id3)) { send3 = node3__m3; goto label_3813; } else { if (((int)node3__m3) == ((int)id3)) { st3 = 1; mode3 = 0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { return __return_main; } else { check__tmp = 0; __return_3848 = check__tmp; main__c1 = __return_3848; __tmp_3849_0 = main____CPAchecker_TMP_0; label_3849:; main____CPAchecker_TMP_0 = __tmp_3849_0; { _Bool __tmp_2; __tmp_2 = main__c1; _Bool assert__arg; assert__arg = __tmp_2; if (assert__arg == 0) { {reach_error();} return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_5933; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; goto label_5933; } else { label_5933:; goto label_5926; } } } else { send1 = node1__m1; goto label_5926; } } else { label_5926:; mode1 = 0; label_5942:; __tmp_5139_0 = main____CPAchecker_TMP_0; goto label_5139; } } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; goto label_5950; } else { goto label_5947; } } else { label_5947:; node1____CPAchecker_TMP_0 = p1_new; label_5950:; p1_new = node1____CPAchecker_TMP_0; label_5953:; mode1 = 1; goto label_5942; } } else { if (((int)send1) != ((int)id1)) { int node1____CPAchecker_TMP_1; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_1 = send1; goto label_5962; } else { goto label_5959; } } else { label_5959:; node1____CPAchecker_TMP_1 = p1_new; label_5962:; p1_new = node1____CPAchecker_TMP_1; goto label_5953; } } else { goto label_5953; } } } } } else { __return_5915 = 0; return __return_5915; } } } } } } else { label_3813:; mode3 = 0; goto label_3830; } } } else { send3 = node3__m3; mode3 = 0; goto label_3830; } } else { mode3 = 0; label_3830:; __tmp_3390_0 = main____CPAchecker_TMP_0; goto label_3390; } } else { return __return_main; } } } else { label_3775:; mode2 = 0; goto label_3792; } } } else { send2 = node2__m2; mode2 = 0; goto label_3792; } } else { mode2 = 0; label_3792:; __tmp_2414_0 = main____CPAchecker_TMP_0; goto label_2414; } } else { return __return_main; } } } else { label_3737:; mode1 = 0; goto label_3754; } } } else { send1 = node1__m1; mode1 = 0; goto label_3754; } } else { mode1 = 0; label_3754:; __tmp_3623_0 = main____CPAchecker_TMP_0; goto label_3623; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node3____CPAchecker_TMP_0 = p3_new; p3_new = node3____CPAchecker_TMP_0; mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1313 = check__tmp; main__c1 = __return_1313; { _Bool __tmp_3; __tmp_3 = main__c1; _Bool assert__arg; assert__arg = __tmp_3; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_3623_0 = main____CPAchecker_TMP_0; label_3623:; main____CPAchecker_TMP_0 = __tmp_3623_0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { if (!(alive2 == 0)) { if (((int)node2__m2) > ((int)id2)) { send2 = node2__m2; goto label_3639; } else { if (((int)node2__m2) == ((int)id2)) { st2 = 1; mode2 = 0; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { node3__m3 = p2_old; p2_old = nomsg; if (((int)node3__m3) != ((int)nomsg)) { if (!(alive3 == 0)) { if (((int)node3__m3) > ((int)id3)) { send3 = node3__m3; goto label_3677; } else { if (((int)node3__m3) == ((int)id3)) { st3 = 1; mode3 = 0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { return __return_main; } else { check__tmp = 0; __return_3712 = check__tmp; main__c1 = __return_3712; { _Bool __tmp_4; __tmp_4 = main__c1; _Bool assert__arg; assert__arg = __tmp_4; if (assert__arg == 0) { {reach_error();} return __return_main; } else { return __return_main; } } } } } else { label_3677:; mode3 = 0; goto label_3694; } } } else { send3 = node3__m3; mode3 = 0; goto label_3694; } } else { mode3 = 0; label_3694:; __tmp_3275_0 = main____CPAchecker_TMP_0; goto label_3275; } } else { return __return_main; } } } else { label_3639:; mode2 = 0; goto label_3656; } } } else { send2 = node2__m2; mode2 = 0; goto label_3656; } } else { mode2 = 0; label_3656:; __tmp_2299_0 = main____CPAchecker_TMP_0; goto label_2299; } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { if (((int)send3) != ((int)id3)) { int node3____CPAchecker_TMP_1; if (send3 != nomsg) { if (p3_new == nomsg) { node3____CPAchecker_TMP_1 = send3; goto label_533; } else { return __return_main; } } else { node3____CPAchecker_TMP_1 = p3_new; label_533:; p3_new = node3____CPAchecker_TMP_1; mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1343 = check__tmp; main__c1 = __return_1343; { _Bool __tmp_5; __tmp_5 = main__c1; _Bool assert__arg; assert__arg = __tmp_5; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_3951; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; mode1 = 0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { if (!(alive2 == 0)) { if (((int)node2__m2) > ((int)id2)) { send2 = node2__m2; goto label_3989; } else { if (((int)node2__m2) == ((int)id2)) { st2 = 1; mode2 = 0; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { node3__m3 = p2_old; p2_old = nomsg; if (((int)node3__m3) != ((int)nomsg)) { if (!(alive3 == 0)) { return __return_main; } else { send3 = node3__m3; mode3 = 0; goto label_4028; } } else { mode3 = 0; label_4028:; __tmp_3589_0 = main____CPAchecker_TMP_0; goto label_3589; } } else { return __return_main; } } } else { label_3989:; mode2 = 0; goto label_4006; } } } else { send2 = node2__m2; mode2 = 0; goto label_4006; } } else { mode2 = 0; label_4006:; __tmp_2570_0 = main____CPAchecker_TMP_0; goto label_2570; } } else { return __return_main; } } } else { label_3951:; mode1 = 0; goto label_3968; } } } else { send1 = node1__m1; mode1 = 0; goto label_3968; } } else { mode1 = 0; label_3968:; __tmp_3875_0 = main____CPAchecker_TMP_0; goto label_3875; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1333 = check__tmp; main__c1 = __return_1333; { _Bool __tmp_6; __tmp_6 = main__c1; _Bool assert__arg; assert__arg = __tmp_6; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_3875_0 = main____CPAchecker_TMP_0; label_3875:; main____CPAchecker_TMP_0 = __tmp_3875_0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { if (!(alive2 == 0)) { if (((int)node2__m2) > ((int)id2)) { send2 = node2__m2; goto label_3891; } else { if (((int)node2__m2) == ((int)id2)) { st2 = 1; mode2 = 0; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { node3__m3 = p2_old; p2_old = nomsg; if (((int)node3__m3) != ((int)nomsg)) { if (!(alive3 == 0)) { return __return_main; } else { send3 = node3__m3; mode3 = 0; goto label_3930; } } else { mode3 = 0; label_3930:; __tmp_3474_0 = main____CPAchecker_TMP_0; goto label_3474; } } else { return __return_main; } } } else { label_3891:; mode2 = 0; goto label_3908; } } } else { send2 = node2__m2; mode2 = 0; goto label_3908; } } else { mode2 = 0; label_3908:; __tmp_2498_0 = main____CPAchecker_TMP_0; goto label_2498; } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } } } } else { return __return_main; } } else { node2____CPAchecker_TMP_0 = p2_new; p2_new = node2____CPAchecker_TMP_0; mode2 = 1; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { return __return_main; } else { if (!(alive3 == 0)) { int node3____CPAchecker_TMP_0; if (send3 != nomsg) { if (p3_new == nomsg) { node3____CPAchecker_TMP_0 = send3; p3_new = node3____CPAchecker_TMP_0; mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1283 = check__tmp; main__c1 = __return_1283; { _Bool __tmp_7; __tmp_7 = main__c1; _Bool assert__arg; assert__arg = __tmp_7; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_3318; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; mode1 = 0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { if (!(alive2 == 0)) { if (((int)node2__m2) > ((int)id2)) { send2 = node2__m2; goto label_3356; } else { if (((int)node2__m2) == ((int)id2)) { st2 = 1; mode2 = 0; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { node3__m3 = p2_old; p2_old = nomsg; if (((int)node3__m3) != ((int)nomsg)) { return __return_main; } else { mode3 = 0; __tmp_3390_0 = main____CPAchecker_TMP_0; label_3390:; main____CPAchecker_TMP_0 = __tmp_3390_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { return __return_main; } else { check__tmp = 0; __return_3403 = check__tmp; main__c1 = __return_3403; { _Bool __tmp_8; __tmp_8 = main__c1; _Bool assert__arg; assert__arg = __tmp_8; if (assert__arg == 0) { {reach_error();} return __return_main; } else { return __return_main; } } } } } } else { return __return_main; } } } else { label_3356:; mode2 = 0; goto label_3373; } } } else { send2 = node2__m2; mode2 = 0; goto label_3373; } } else { mode2 = 0; label_3373:; __tmp_2084_0 = main____CPAchecker_TMP_0; goto label_2084; } } else { return __return_main; } } } else { label_3318:; mode1 = 0; goto label_3335; } } } else { send1 = node1__m1; mode1 = 0; goto label_3335; } } else { mode1 = 0; label_3335:; __tmp_3225_0 = main____CPAchecker_TMP_0; goto label_3225; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node3____CPAchecker_TMP_0 = p3_new; p3_new = node3____CPAchecker_TMP_0; mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1273 = check__tmp; main__c1 = __return_1273; { _Bool __tmp_9; __tmp_9 = main__c1; _Bool assert__arg; assert__arg = __tmp_9; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_3225_0 = main____CPAchecker_TMP_0; label_3225:; main____CPAchecker_TMP_0 = __tmp_3225_0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { if (!(alive2 == 0)) { if (((int)node2__m2) > ((int)id2)) { send2 = node2__m2; goto label_3241; } else { if (((int)node2__m2) == ((int)id2)) { st2 = 1; mode2 = 0; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { node3__m3 = p2_old; p2_old = nomsg; if (((int)node3__m3) != ((int)nomsg)) { return __return_main; } else { mode3 = 0; __tmp_3275_0 = main____CPAchecker_TMP_0; label_3275:; main____CPAchecker_TMP_0 = __tmp_3275_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_3290 = check__tmp; main__c1 = __return_3290; { _Bool __tmp_10; __tmp_10 = main__c1; _Bool assert__arg; assert__arg = __tmp_10; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_5841; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; goto label_5841; } else { label_5841:; goto label_5834; } } } else { send1 = node1__m1; goto label_5834; } } else { label_5834:; mode1 = 0; label_5850:; __tmp_5139_0 = main____CPAchecker_TMP_0; goto label_5139; } } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; goto label_5858; } else { goto label_5855; } } else { label_5855:; node1____CPAchecker_TMP_0 = p1_new; label_5858:; p1_new = node1____CPAchecker_TMP_0; label_5861:; mode1 = 1; goto label_5850; } } else { if (((int)send1) != ((int)id1)) { int node1____CPAchecker_TMP_1; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_1 = send1; goto label_5870; } else { goto label_5867; } } else { label_5867:; node1____CPAchecker_TMP_1 = p1_new; label_5870:; p1_new = node1____CPAchecker_TMP_1; goto label_5861; } } else { goto label_5861; } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_3241:; mode2 = 0; goto label_3258; } } } else { send2 = node2__m2; mode2 = 0; goto label_3258; } } else { mode2 = 0; label_3258:; __tmp_1995_0 = main____CPAchecker_TMP_0; goto label_1995; } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { if (((int)send3) != ((int)id3)) { int node3____CPAchecker_TMP_1; if (send3 != nomsg) { if (p3_new == nomsg) { node3____CPAchecker_TMP_1 = send3; goto label_489; } else { return __return_main; } } else { node3____CPAchecker_TMP_1 = p3_new; label_489:; p3_new = node3____CPAchecker_TMP_1; mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1303 = check__tmp; main__c1 = __return_1303; { _Bool __tmp_11; __tmp_11 = main__c1; _Bool assert__arg; assert__arg = __tmp_11; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_3517; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; mode1 = 0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { if (!(alive2 == 0)) { if (((int)node2__m2) > ((int)id2)) { send2 = node2__m2; goto label_3555; } else { if (((int)node2__m2) == ((int)id2)) { st2 = 1; mode2 = 0; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { node3__m3 = p2_old; p2_old = nomsg; if (((int)node3__m3) != ((int)nomsg)) { return __return_main; } else { mode3 = 0; __tmp_3589_0 = main____CPAchecker_TMP_0; label_3589:; main____CPAchecker_TMP_0 = __tmp_3589_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { return __return_main; } else { check__tmp = 0; __return_3602 = check__tmp; main__c1 = __return_3602; { _Bool __tmp_12; __tmp_12 = main__c1; _Bool assert__arg; assert__arg = __tmp_12; if (assert__arg == 0) { {reach_error();} return __return_main; } else { return __return_main; } } } } } } else { return __return_main; } } } else { label_3555:; mode2 = 0; goto label_3572; } } } else { send2 = node2__m2; mode2 = 0; goto label_3572; } } else { mode2 = 0; label_3572:; __tmp_2236_0 = main____CPAchecker_TMP_0; goto label_2236; } } else { return __return_main; } } } else { label_3517:; mode1 = 0; goto label_3534; } } } else { send1 = node1__m1; mode1 = 0; goto label_3534; } } else { mode1 = 0; label_3534:; __tmp_3424_0 = main____CPAchecker_TMP_0; goto label_3424; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1293 = check__tmp; main__c1 = __return_1293; { _Bool __tmp_13; __tmp_13 = main__c1; _Bool assert__arg; assert__arg = __tmp_13; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_3424_0 = main____CPAchecker_TMP_0; label_3424:; main____CPAchecker_TMP_0 = __tmp_3424_0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { if (!(alive2 == 0)) { if (((int)node2__m2) > ((int)id2)) { send2 = node2__m2; goto label_3440; } else { if (((int)node2__m2) == ((int)id2)) { st2 = 1; mode2 = 0; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { node3__m3 = p2_old; p2_old = nomsg; if (((int)node3__m3) != ((int)nomsg)) { return __return_main; } else { mode3 = 0; __tmp_3474_0 = main____CPAchecker_TMP_0; label_3474:; main____CPAchecker_TMP_0 = __tmp_3474_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_3489 = check__tmp; main__c1 = __return_3489; { _Bool __tmp_14; __tmp_14 = main__c1; _Bool assert__arg; assert__arg = __tmp_14; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { return __return_main; } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; goto label_5892; } else { goto label_5889; } } else { label_5889:; node1____CPAchecker_TMP_0 = p1_new; label_5892:; p1_new = node1____CPAchecker_TMP_0; label_5895:; mode1 = 1; __tmp_5139_0 = main____CPAchecker_TMP_0; goto label_5139; } } else { if (((int)send1) != ((int)id1)) { int node1____CPAchecker_TMP_1; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_1 = send1; goto label_5904; } else { goto label_5901; } } else { label_5901:; node1____CPAchecker_TMP_1 = p1_new; label_5904:; p1_new = node1____CPAchecker_TMP_1; goto label_5895; } } else { goto label_5895; } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_3440:; mode2 = 0; goto label_3457; } } } else { send2 = node2__m2; mode2 = 0; goto label_3457; } } else { mode2 = 0; label_3457:; __tmp_2147_0 = main____CPAchecker_TMP_0; goto label_2147; } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } } } } } else { if (((int)send2) != ((int)id2)) { int node2____CPAchecker_TMP_1; if (send2 != nomsg) { if (p2_new == nomsg) { node2____CPAchecker_TMP_1 = send2; goto label_225; } else { return __return_main; } } else { node2____CPAchecker_TMP_1 = p2_new; label_225:; p2_new = node2____CPAchecker_TMP_1; mode2 = 1; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { return __return_main; } else { if (!(alive3 == 0)) { int node3____CPAchecker_TMP_0; if (send3 != nomsg) { if (p3_new == nomsg) { node3____CPAchecker_TMP_0 = send3; p3_new = node3____CPAchecker_TMP_0; mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1403 = check__tmp; main__c1 = __return_1403; { _Bool __tmp_15; __tmp_15 = main__c1; _Bool assert__arg; assert__arg = __tmp_15; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_4271; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; mode1 = 0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { if (!(alive2 == 0)) { return __return_main; } else { send2 = node2__m2; mode2 = 0; goto label_4310; } } else { mode2 = 0; label_4310:; __tmp_3035_0 = main____CPAchecker_TMP_0; goto label_3035; } } else { return __return_main; } } } else { label_4271:; mode1 = 0; goto label_4288; } } } else { send1 = node1__m1; mode1 = 0; goto label_4288; } } else { mode1 = 0; label_4288:; __tmp_4233_0 = main____CPAchecker_TMP_0; goto label_4233; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node3____CPAchecker_TMP_0 = p3_new; p3_new = node3____CPAchecker_TMP_0; mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1393 = check__tmp; main__c1 = __return_1393; { _Bool __tmp_16; __tmp_16 = main__c1; _Bool assert__arg; assert__arg = __tmp_16; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_4233_0 = main____CPAchecker_TMP_0; label_4233:; main____CPAchecker_TMP_0 = __tmp_4233_0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { if (!(alive2 == 0)) { return __return_main; } else { send2 = node2__m2; mode2 = 0; goto label_4250; } } else { mode2 = 0; label_4250:; __tmp_2920_0 = main____CPAchecker_TMP_0; goto label_2920; } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { if (((int)send3) != ((int)id3)) { int node3____CPAchecker_TMP_1; if (send3 != nomsg) { if (p3_new == nomsg) { node3____CPAchecker_TMP_1 = send3; goto label_621; } else { return __return_main; } } else { node3____CPAchecker_TMP_1 = p3_new; label_621:; p3_new = node3____CPAchecker_TMP_1; mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1423 = check__tmp; main__c1 = __return_1423; { _Bool __tmp_17; __tmp_17 = main__c1; _Bool assert__arg; assert__arg = __tmp_17; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_4365; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; mode1 = 0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { if (!(alive2 == 0)) { return __return_main; } else { send2 = node2__m2; mode2 = 0; goto label_4404; } } else { mode2 = 0; label_4404:; __tmp_3191_0 = main____CPAchecker_TMP_0; goto label_3191; } } else { return __return_main; } } } else { label_4365:; mode1 = 0; goto label_4382; } } } else { send1 = node1__m1; mode1 = 0; goto label_4382; } } else { mode1 = 0; label_4382:; __tmp_4327_0 = main____CPAchecker_TMP_0; goto label_4327; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1413 = check__tmp; main__c1 = __return_1413; { _Bool __tmp_18; __tmp_18 = main__c1; _Bool assert__arg; assert__arg = __tmp_18; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_4327_0 = main____CPAchecker_TMP_0; label_4327:; main____CPAchecker_TMP_0 = __tmp_4327_0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { if (!(alive2 == 0)) { return __return_main; } else { send2 = node2__m2; mode2 = 0; goto label_4344; } } else { mode2 = 0; label_4344:; __tmp_3119_0 = main____CPAchecker_TMP_0; goto label_3119; } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } } } } } else { mode2 = 1; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { return __return_main; } else { if (!(alive3 == 0)) { int node3____CPAchecker_TMP_0; if (send3 != nomsg) { if (p3_new == nomsg) { node3____CPAchecker_TMP_0 = send3; p3_new = node3____CPAchecker_TMP_0; mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1363 = check__tmp; main__c1 = __return_1363; { _Bool __tmp_19; __tmp_19 = main__c1; _Bool assert__arg; assert__arg = __tmp_19; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_4083; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; mode1 = 0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { if (!(alive2 == 0)) { return __return_main; } else { send2 = node2__m2; mode2 = 0; goto label_4122; } } else { mode2 = 0; label_4122:; __tmp_2705_0 = main____CPAchecker_TMP_0; goto label_2705; } } else { return __return_main; } } } else { label_4083:; mode1 = 0; goto label_4100; } } } else { send1 = node1__m1; mode1 = 0; goto label_4100; } } else { mode1 = 0; label_4100:; __tmp_4045_0 = main____CPAchecker_TMP_0; goto label_4045; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node3____CPAchecker_TMP_0 = p3_new; p3_new = node3____CPAchecker_TMP_0; mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1353 = check__tmp; main__c1 = __return_1353; { _Bool __tmp_20; __tmp_20 = main__c1; _Bool assert__arg; assert__arg = __tmp_20; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_4045_0 = main____CPAchecker_TMP_0; label_4045:; main____CPAchecker_TMP_0 = __tmp_4045_0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { if (!(alive2 == 0)) { return __return_main; } else { send2 = node2__m2; mode2 = 0; goto label_4062; } } else { mode2 = 0; label_4062:; __tmp_2616_0 = main____CPAchecker_TMP_0; goto label_2616; } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { if (((int)send3) != ((int)id3)) { int node3____CPAchecker_TMP_1; if (send3 != nomsg) { if (p3_new == nomsg) { node3____CPAchecker_TMP_1 = send3; goto label_577; } else { return __return_main; } } else { node3____CPAchecker_TMP_1 = p3_new; label_577:; p3_new = node3____CPAchecker_TMP_1; mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1383 = check__tmp; main__c1 = __return_1383; { _Bool __tmp_21; __tmp_21 = main__c1; _Bool assert__arg; assert__arg = __tmp_21; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_4177; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; mode1 = 0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { if (!(alive2 == 0)) { return __return_main; } else { send2 = node2__m2; mode2 = 0; goto label_4216; } } else { mode2 = 0; label_4216:; __tmp_2857_0 = main____CPAchecker_TMP_0; goto label_2857; } } else { return __return_main; } } } else { label_4177:; mode1 = 0; goto label_4194; } } } else { send1 = node1__m1; mode1 = 0; goto label_4194; } } else { mode1 = 0; label_4194:; __tmp_4139_0 = main____CPAchecker_TMP_0; goto label_4139; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1373 = check__tmp; main__c1 = __return_1373; { _Bool __tmp_22; __tmp_22 = main__c1; _Bool assert__arg; assert__arg = __tmp_22; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_4139_0 = main____CPAchecker_TMP_0; label_4139:; main____CPAchecker_TMP_0 = __tmp_4139_0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { if (!(alive2 == 0)) { return __return_main; } else { send2 = node2__m2; mode2 = 0; goto label_4156; } } else { mode2 = 0; label_4156:; __tmp_2768_0 = main____CPAchecker_TMP_0; goto label_2768; } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } } } } } } } } else { return __return_main; } } else { node1____CPAchecker_TMP_0 = p1_new; p1_new = node1____CPAchecker_TMP_0; mode1 = 1; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { return __return_main; } else { if (!(alive2 == 0)) { int node2____CPAchecker_TMP_0; if (send2 != nomsg) { if (p2_new == nomsg) { node2____CPAchecker_TMP_0 = send2; p2_new = node2____CPAchecker_TMP_0; mode2 = 1; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { return __return_main; } else { if (!(alive3 == 0)) { int node3____CPAchecker_TMP_0; if (send3 != nomsg) { if (p3_new == nomsg) { node3____CPAchecker_TMP_0 = send3; p3_new = node3____CPAchecker_TMP_0; mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1163 = check__tmp; main__c1 = __return_1163; { _Bool __tmp_23; __tmp_23 = main__c1; _Bool assert__arg; assert__arg = __tmp_23; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_2380; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; mode1 = 0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { return __return_main; } else { mode2 = 0; __tmp_2414_0 = main____CPAchecker_TMP_0; label_2414:; main____CPAchecker_TMP_0 = __tmp_2414_0; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { node3__m3 = p2_old; p2_old = nomsg; if (((int)node3__m3) != ((int)nomsg)) { if (!(alive3 == 0)) { if (((int)node3__m3) > ((int)id3)) { send3 = node3__m3; goto label_2430; } else { if (((int)node3__m3) == ((int)id3)) { st3 = 1; mode3 = 0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { return __return_main; } else { check__tmp = 0; __return_2465 = check__tmp; main__c1 = __return_2465; { _Bool __tmp_24; __tmp_24 = main__c1; _Bool assert__arg; assert__arg = __tmp_24; if (assert__arg == 0) { {reach_error();} return __return_main; } else { return __return_main; } } } } } else { label_2430:; mode3 = 0; goto label_2447; } } } else { send3 = node3__m3; mode3 = 0; goto label_2447; } } else { mode3 = 0; label_2447:; __tmp_2096_0 = main____CPAchecker_TMP_0; goto label_2096; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_2380:; mode1 = 0; goto label_2397; } } } else { send1 = node1__m1; mode1 = 0; goto label_2397; } } else { mode1 = 0; label_2397:; __tmp_2287_0 = main____CPAchecker_TMP_0; goto label_2287; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node3____CPAchecker_TMP_0 = p3_new; p3_new = node3____CPAchecker_TMP_0; mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1153 = check__tmp; main__c1 = __return_1153; { _Bool __tmp_25; __tmp_25 = main__c1; _Bool assert__arg; assert__arg = __tmp_25; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_2287_0 = main____CPAchecker_TMP_0; label_2287:; main____CPAchecker_TMP_0 = __tmp_2287_0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { return __return_main; } else { mode2 = 0; __tmp_2299_0 = main____CPAchecker_TMP_0; label_2299:; main____CPAchecker_TMP_0 = __tmp_2299_0; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { node3__m3 = p2_old; p2_old = nomsg; if (((int)node3__m3) != ((int)nomsg)) { if (!(alive3 == 0)) { if (((int)node3__m3) > ((int)id3)) { send3 = node3__m3; goto label_2315; } else { if (((int)node3__m3) == ((int)id3)) { st3 = 1; mode3 = 0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_2352 = check__tmp; main__c1 = __return_2352; { _Bool __tmp_26; __tmp_26 = main__c1; _Bool assert__arg; assert__arg = __tmp_26; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_5477; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; goto label_5477; } else { label_5477:; goto label_5470; } } } else { send1 = node1__m1; goto label_5470; } } else { label_5470:; mode1 = 0; label_5486:; __tmp_5139_0 = main____CPAchecker_TMP_0; goto label_5139; } } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; goto label_5494; } else { goto label_5491; } } else { label_5491:; node1____CPAchecker_TMP_0 = p1_new; label_5494:; p1_new = node1____CPAchecker_TMP_0; label_5497:; mode1 = 1; goto label_5486; } } else { if (((int)send1) != ((int)id1)) { int node1____CPAchecker_TMP_1; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_1 = send1; goto label_5506; } else { goto label_5503; } } else { label_5503:; node1____CPAchecker_TMP_1 = p1_new; label_5506:; p1_new = node1____CPAchecker_TMP_1; goto label_5497; } } else { goto label_5497; } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { label_2315:; mode3 = 0; goto label_2332; } } } else { send3 = node3__m3; mode3 = 0; goto label_2332; } } else { mode3 = 0; label_2332:; __tmp_2007_0 = main____CPAchecker_TMP_0; goto label_2007; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { if (((int)send3) != ((int)id3)) { int node3____CPAchecker_TMP_1; if (send3 != nomsg) { if (p3_new == nomsg) { node3____CPAchecker_TMP_1 = send3; goto label_357; } else { return __return_main; } } else { node3____CPAchecker_TMP_1 = p3_new; label_357:; p3_new = node3____CPAchecker_TMP_1; mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1183 = check__tmp; main__c1 = __return_1183; { _Bool __tmp_27; __tmp_27 = main__c1; _Bool assert__arg; assert__arg = __tmp_27; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_2536; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; mode1 = 0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { return __return_main; } else { mode2 = 0; __tmp_2570_0 = main____CPAchecker_TMP_0; label_2570:; main____CPAchecker_TMP_0 = __tmp_2570_0; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { node3__m3 = p2_old; p2_old = nomsg; if (((int)node3__m3) != ((int)nomsg)) { if (!(alive3 == 0)) { return __return_main; } else { send3 = node3__m3; mode3 = 0; goto label_2587; } } else { mode3 = 0; label_2587:; __tmp_2248_0 = main____CPAchecker_TMP_0; goto label_2248; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_2536:; mode1 = 0; goto label_2553; } } } else { send1 = node1__m1; mode1 = 0; goto label_2553; } } else { mode1 = 0; label_2553:; __tmp_2486_0 = main____CPAchecker_TMP_0; goto label_2486; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1173 = check__tmp; main__c1 = __return_1173; { _Bool __tmp_28; __tmp_28 = main__c1; _Bool assert__arg; assert__arg = __tmp_28; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_2486_0 = main____CPAchecker_TMP_0; label_2486:; main____CPAchecker_TMP_0 = __tmp_2486_0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { return __return_main; } else { mode2 = 0; __tmp_2498_0 = main____CPAchecker_TMP_0; label_2498:; main____CPAchecker_TMP_0 = __tmp_2498_0; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { node3__m3 = p2_old; p2_old = nomsg; if (((int)node3__m3) != ((int)nomsg)) { if (!(alive3 == 0)) { return __return_main; } else { send3 = node3__m3; mode3 = 0; goto label_2515; } } else { mode3 = 0; label_2515:; __tmp_2159_0 = main____CPAchecker_TMP_0; goto label_2159; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } } } } else { return __return_main; } } else { node2____CPAchecker_TMP_0 = p2_new; p2_new = node2____CPAchecker_TMP_0; mode2 = 1; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { return __return_main; } else { if (!(alive3 == 0)) { int node3____CPAchecker_TMP_0; if (send3 != nomsg) { if (p3_new == nomsg) { node3____CPAchecker_TMP_0 = send3; p3_new = node3____CPAchecker_TMP_0; mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1123 = check__tmp; main__c1 = __return_1123; { _Bool __tmp_29; __tmp_29 = main__c1; _Bool assert__arg; assert__arg = __tmp_29; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_2050; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; mode1 = 0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { return __return_main; } else { mode2 = 0; __tmp_2084_0 = main____CPAchecker_TMP_0; label_2084:; main____CPAchecker_TMP_0 = __tmp_2084_0; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { node3__m3 = p2_old; p2_old = nomsg; if (((int)node3__m3) != ((int)nomsg)) { return __return_main; } else { mode3 = 0; __tmp_2096_0 = main____CPAchecker_TMP_0; label_2096:; main____CPAchecker_TMP_0 = __tmp_2096_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_2111 = check__tmp; main__c1 = __return_2111; { _Bool __tmp_30; __tmp_30 = main__c1; _Bool assert__arg; assert__arg = __tmp_30; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_5291; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; goto label_5291; } else { label_5291:; goto label_5284; } } } else { send1 = node1__m1; goto label_5284; } } else { label_5284:; mode1 = 0; label_5300:; __tmp_5139_0 = main____CPAchecker_TMP_0; goto label_5139; } } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; goto label_5308; } else { goto label_5305; } } else { label_5305:; node1____CPAchecker_TMP_0 = p1_new; label_5308:; p1_new = node1____CPAchecker_TMP_0; label_5311:; mode1 = 1; goto label_5300; } } else { if (((int)send1) != ((int)id1)) { int node1____CPAchecker_TMP_1; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_1 = send1; goto label_5320; } else { goto label_5317; } } else { label_5317:; node1____CPAchecker_TMP_1 = p1_new; label_5320:; p1_new = node1____CPAchecker_TMP_1; goto label_5311; } } else { goto label_5311; } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { label_2050:; mode1 = 0; goto label_2067; } } } else { send1 = node1__m1; mode1 = 0; goto label_2067; } } else { mode1 = 0; label_2067:; __tmp_1983_0 = main____CPAchecker_TMP_0; goto label_1983; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node3____CPAchecker_TMP_0 = p3_new; p3_new = node3____CPAchecker_TMP_0; mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1113 = check__tmp; main__c1 = __return_1113; { _Bool __tmp_31; __tmp_31 = main__c1; _Bool assert__arg; assert__arg = __tmp_31; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_1983_0 = main____CPAchecker_TMP_0; label_1983:; main____CPAchecker_TMP_0 = __tmp_1983_0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { return __return_main; } else { mode2 = 0; __tmp_1995_0 = main____CPAchecker_TMP_0; label_1995:; main____CPAchecker_TMP_0 = __tmp_1995_0; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { node3__m3 = p2_old; p2_old = nomsg; if (((int)node3__m3) != ((int)nomsg)) { return __return_main; } else { mode3 = 0; __tmp_2007_0 = main____CPAchecker_TMP_0; label_2007:; main____CPAchecker_TMP_0 = __tmp_2007_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_2022 = check__tmp; main__c1 = __return_2022; { _Bool __tmp_32; __tmp_32 = main__c1; _Bool assert__arg; assert__arg = __tmp_32; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { return __return_main; } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; p1_new = node1____CPAchecker_TMP_0; goto label_5120; } else { return __return_main; } } else { node1____CPAchecker_TMP_0 = p1_new; p1_new = node1____CPAchecker_TMP_0; label_5120:; label_5122:; mode1 = 1; label_5136:; __tmp_5139_0 = main____CPAchecker_TMP_0; label_5139:; main____CPAchecker_TMP_0 = __tmp_5139_0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { if (!(alive2 == 0)) { if (((int)node2__m2) > ((int)id2)) { send2 = node2__m2; goto label_5156; } else { if (((int)node2__m2) == ((int)id2)) { st2 = 1; goto label_5156; } else { label_5156:; goto label_5149; } } } else { send2 = node2__m2; goto label_5149; } } else { label_5149:; mode2 = 0; label_5165:; __tmp_5192_0 = main____CPAchecker_TMP_0; label_5192:; main____CPAchecker_TMP_0 = __tmp_5192_0; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { node3__m3 = p2_old; p2_old = nomsg; if (((int)node3__m3) != ((int)nomsg)) { if (!(alive3 == 0)) { if (((int)node3__m3) > ((int)id3)) { send3 = node3__m3; goto label_5209; } else { if (((int)node3__m3) == ((int)id3)) { st3 = 1; goto label_5209; } else { label_5209:; goto label_5202; } } } else { send3 = node3__m3; goto label_5202; } } else { label_5202:; mode3 = 0; label_5218:; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; goto label_5264; } else { if (((((int)st1) + ((int)st2)) + ((int)st3)) == 1) { check__tmp = 1; goto label_5264; } else { check__tmp = 0; label_5264:; goto label_5258; } } } else { check__tmp = 0; label_5258:; __return_5270 = check__tmp; main__c1 = __return_5270; __tmp_3849_0 = main____CPAchecker_TMP_0; goto label_3849; } } } } else { if (!(alive3 == 0)) { int node3____CPAchecker_TMP_0; if (send3 != nomsg) { if (p3_new == nomsg) { node3____CPAchecker_TMP_0 = send3; goto label_5226; } else { goto label_5223; } } else { label_5223:; node3____CPAchecker_TMP_0 = p3_new; label_5226:; p3_new = node3____CPAchecker_TMP_0; label_5229:; mode3 = 1; goto label_5218; } } else { if (((int)send3) != ((int)id3)) { int node3____CPAchecker_TMP_1; if (send3 != nomsg) { if (p3_new == nomsg) { node3____CPAchecker_TMP_1 = send3; goto label_5238; } else { goto label_5235; } } else { label_5235:; node3____CPAchecker_TMP_1 = p3_new; label_5238:; p3_new = node3____CPAchecker_TMP_1; goto label_5229; } } else { goto label_5229; } } } } } } else { if (!(alive2 == 0)) { int node2____CPAchecker_TMP_0; if (send2 != nomsg) { if (p2_new == nomsg) { node2____CPAchecker_TMP_0 = send2; goto label_5173; } else { goto label_5170; } } else { label_5170:; node2____CPAchecker_TMP_0 = p2_new; label_5173:; p2_new = node2____CPAchecker_TMP_0; label_5176:; mode2 = 1; goto label_5165; } } else { if (((int)send2) != ((int)id2)) { int node2____CPAchecker_TMP_1; if (send2 != nomsg) { if (p2_new == nomsg) { node2____CPAchecker_TMP_1 = send2; goto label_5185; } else { goto label_5182; } } else { label_5182:; node2____CPAchecker_TMP_1 = p2_new; label_5185:; p2_new = node2____CPAchecker_TMP_1; goto label_5176; } } else { goto label_5176; } } } } } } else { if (((int)send1) != ((int)id1)) { int node1____CPAchecker_TMP_1; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_1 = send1; goto label_5130; } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; label_5130:; p1_new = node1____CPAchecker_TMP_1; goto label_5122; } } else { mode1 = 1; goto label_5136; } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { if (((int)send3) != ((int)id3)) { int node3____CPAchecker_TMP_1; if (send3 != nomsg) { if (p3_new == nomsg) { node3____CPAchecker_TMP_1 = send3; goto label_313; } else { return __return_main; } } else { node3____CPAchecker_TMP_1 = p3_new; label_313:; p3_new = node3____CPAchecker_TMP_1; mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1143 = check__tmp; main__c1 = __return_1143; { _Bool __tmp_33; __tmp_33 = main__c1; _Bool assert__arg; assert__arg = __tmp_33; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_2202; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; mode1 = 0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { return __return_main; } else { mode2 = 0; __tmp_2236_0 = main____CPAchecker_TMP_0; label_2236:; main____CPAchecker_TMP_0 = __tmp_2236_0; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { node3__m3 = p2_old; p2_old = nomsg; if (((int)node3__m3) != ((int)nomsg)) { return __return_main; } else { mode3 = 0; __tmp_2248_0 = main____CPAchecker_TMP_0; label_2248:; main____CPAchecker_TMP_0 = __tmp_2248_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_2263 = check__tmp; main__c1 = __return_2263; { _Bool __tmp_34; __tmp_34 = main__c1; _Bool assert__arg; assert__arg = __tmp_34; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_5421; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; goto label_5421; } else { label_5421:; goto label_5414; } } } else { send1 = node1__m1; goto label_5414; } } else { label_5414:; mode1 = 0; label_5430:; __tmp_5139_0 = main____CPAchecker_TMP_0; goto label_5139; } } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; goto label_5438; } else { goto label_5435; } } else { label_5435:; node1____CPAchecker_TMP_0 = p1_new; label_5438:; p1_new = node1____CPAchecker_TMP_0; label_5441:; mode1 = 1; goto label_5430; } } else { if (((int)send1) != ((int)id1)) { int node1____CPAchecker_TMP_1; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_1 = send1; goto label_5450; } else { goto label_5447; } } else { label_5447:; node1____CPAchecker_TMP_1 = p1_new; label_5450:; p1_new = node1____CPAchecker_TMP_1; goto label_5441; } } else { goto label_5441; } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { label_2202:; mode1 = 0; goto label_2219; } } } else { send1 = node1__m1; mode1 = 0; goto label_2219; } } else { mode1 = 0; label_2219:; __tmp_2135_0 = main____CPAchecker_TMP_0; goto label_2135; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1133 = check__tmp; main__c1 = __return_1133; { _Bool __tmp_35; __tmp_35 = main__c1; _Bool assert__arg; assert__arg = __tmp_35; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_2135_0 = main____CPAchecker_TMP_0; label_2135:; main____CPAchecker_TMP_0 = __tmp_2135_0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { return __return_main; } else { mode2 = 0; __tmp_2147_0 = main____CPAchecker_TMP_0; label_2147:; main____CPAchecker_TMP_0 = __tmp_2147_0; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { node3__m3 = p2_old; p2_old = nomsg; if (((int)node3__m3) != ((int)nomsg)) { return __return_main; } else { mode3 = 0; __tmp_2159_0 = main____CPAchecker_TMP_0; label_2159:; main____CPAchecker_TMP_0 = __tmp_2159_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_2174 = check__tmp; main__c1 = __return_2174; { _Bool __tmp_36; __tmp_36 = main__c1; _Bool assert__arg; assert__arg = __tmp_36; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { return __return_main; } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; p1_new = node1____CPAchecker_TMP_0; label_5346:; mode1 = 1; goto label_5363; } else { return __return_main; } } else { node1____CPAchecker_TMP_0 = p1_new; p1_new = node1____CPAchecker_TMP_0; mode1 = 1; label_5363:; __tmp_5139_0 = main____CPAchecker_TMP_0; goto label_5139; } } else { if (((int)send1) != ((int)id1)) { int node1____CPAchecker_TMP_1; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_1 = send1; p1_new = node1____CPAchecker_TMP_1; goto label_5346; } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; p1_new = node1____CPAchecker_TMP_1; goto label_5349; } } else { label_5349:; mode1 = 1; __tmp_5369_0 = main____CPAchecker_TMP_0; label_5369:; main____CPAchecker_TMP_0 = __tmp_5369_0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { return __return_main; } else { if (!(alive2 == 0)) { int node2____CPAchecker_TMP_0; if (send2 != nomsg) { if (p2_new == nomsg) { node2____CPAchecker_TMP_0 = send2; goto label_5382; } else { goto label_5379; } } else { label_5379:; node2____CPAchecker_TMP_0 = p2_new; label_5382:; p2_new = node2____CPAchecker_TMP_0; label_5385:; mode2 = 1; __tmp_5192_0 = main____CPAchecker_TMP_0; goto label_5192; } } else { if (((int)send2) != ((int)id2)) { int node2____CPAchecker_TMP_1; if (send2 != nomsg) { if (p2_new == nomsg) { node2____CPAchecker_TMP_1 = send2; goto label_5394; } else { goto label_5391; } } else { label_5391:; node2____CPAchecker_TMP_1 = p2_new; label_5394:; p2_new = node2____CPAchecker_TMP_1; goto label_5385; } } else { goto label_5385; } } } } } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } } } } } else { if (((int)send2) != ((int)id2)) { int node2____CPAchecker_TMP_1; if (send2 != nomsg) { if (p2_new == nomsg) { node2____CPAchecker_TMP_1 = send2; goto label_181; } else { return __return_main; } } else { node2____CPAchecker_TMP_1 = p2_new; label_181:; p2_new = node2____CPAchecker_TMP_1; mode2 = 1; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { return __return_main; } else { if (!(alive3 == 0)) { int node3____CPAchecker_TMP_0; if (send3 != nomsg) { if (p3_new == nomsg) { node3____CPAchecker_TMP_0 = send3; p3_new = node3____CPAchecker_TMP_0; mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1243 = check__tmp; main__c1 = __return_1243; { _Bool __tmp_37; __tmp_37 = main__c1; _Bool assert__arg; assert__arg = __tmp_37; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_3001; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; mode1 = 0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { return __return_main; } else { mode2 = 0; __tmp_3035_0 = main____CPAchecker_TMP_0; label_3035:; main____CPAchecker_TMP_0 = __tmp_3035_0; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { node3__m3 = p2_old; p2_old = nomsg; if (((int)node3__m3) != ((int)nomsg)) { if (!(alive3 == 0)) { if (((int)node3__m3) > ((int)id3)) { send3 = node3__m3; goto label_3051; } else { if (((int)node3__m3) == ((int)id3)) { st3 = 1; mode3 = 0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { return __return_main; } else { check__tmp = 0; __return_3086 = check__tmp; main__c1 = __return_3086; { _Bool __tmp_38; __tmp_38 = main__c1; _Bool assert__arg; assert__arg = __tmp_38; if (assert__arg == 0) { {reach_error();} return __return_main; } else { return __return_main; } } } } } else { label_3051:; mode3 = 0; goto label_3068; } } } else { send3 = node3__m3; mode3 = 0; goto label_3068; } } else { mode3 = 0; label_3068:; __tmp_2717_0 = main____CPAchecker_TMP_0; goto label_2717; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_3001:; mode1 = 0; goto label_3018; } } } else { send1 = node1__m1; mode1 = 0; goto label_3018; } } else { mode1 = 0; label_3018:; __tmp_2908_0 = main____CPAchecker_TMP_0; goto label_2908; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node3____CPAchecker_TMP_0 = p3_new; p3_new = node3____CPAchecker_TMP_0; mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1233 = check__tmp; main__c1 = __return_1233; { _Bool __tmp_39; __tmp_39 = main__c1; _Bool assert__arg; assert__arg = __tmp_39; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_2908_0 = main____CPAchecker_TMP_0; label_2908:; main____CPAchecker_TMP_0 = __tmp_2908_0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { return __return_main; } else { mode2 = 0; __tmp_2920_0 = main____CPAchecker_TMP_0; label_2920:; main____CPAchecker_TMP_0 = __tmp_2920_0; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { node3__m3 = p2_old; p2_old = nomsg; if (((int)node3__m3) != ((int)nomsg)) { if (!(alive3 == 0)) { if (((int)node3__m3) > ((int)id3)) { send3 = node3__m3; goto label_2936; } else { if (((int)node3__m3) == ((int)id3)) { st3 = 1; mode3 = 0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_2973 = check__tmp; main__c1 = __return_2973; { _Bool __tmp_40; __tmp_40 = main__c1; _Bool assert__arg; assert__arg = __tmp_40; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_5785; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; goto label_5785; } else { label_5785:; goto label_5778; } } } else { send1 = node1__m1; goto label_5778; } } else { label_5778:; mode1 = 0; label_5794:; __tmp_5139_0 = main____CPAchecker_TMP_0; goto label_5139; } } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; goto label_5802; } else { goto label_5799; } } else { label_5799:; node1____CPAchecker_TMP_0 = p1_new; label_5802:; p1_new = node1____CPAchecker_TMP_0; label_5805:; mode1 = 1; goto label_5794; } } else { if (((int)send1) != ((int)id1)) { int node1____CPAchecker_TMP_1; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_1 = send1; goto label_5814; } else { goto label_5811; } } else { label_5811:; node1____CPAchecker_TMP_1 = p1_new; label_5814:; p1_new = node1____CPAchecker_TMP_1; goto label_5805; } } else { goto label_5805; } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { label_2936:; mode3 = 0; goto label_2953; } } } else { send3 = node3__m3; mode3 = 0; goto label_2953; } } else { mode3 = 0; label_2953:; __tmp_2628_0 = main____CPAchecker_TMP_0; goto label_2628; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { if (((int)send3) != ((int)id3)) { int node3____CPAchecker_TMP_1; if (send3 != nomsg) { if (p3_new == nomsg) { node3____CPAchecker_TMP_1 = send3; goto label_445; } else { return __return_main; } } else { node3____CPAchecker_TMP_1 = p3_new; label_445:; p3_new = node3____CPAchecker_TMP_1; mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1263 = check__tmp; main__c1 = __return_1263; { _Bool __tmp_41; __tmp_41 = main__c1; _Bool assert__arg; assert__arg = __tmp_41; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_3157; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; mode1 = 0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { return __return_main; } else { mode2 = 0; __tmp_3191_0 = main____CPAchecker_TMP_0; label_3191:; main____CPAchecker_TMP_0 = __tmp_3191_0; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { node3__m3 = p2_old; p2_old = nomsg; if (((int)node3__m3) != ((int)nomsg)) { if (!(alive3 == 0)) { return __return_main; } else { send3 = node3__m3; mode3 = 0; goto label_3208; } } else { mode3 = 0; label_3208:; __tmp_2869_0 = main____CPAchecker_TMP_0; goto label_2869; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_3157:; mode1 = 0; goto label_3174; } } } else { send1 = node1__m1; mode1 = 0; goto label_3174; } } else { mode1 = 0; label_3174:; __tmp_3107_0 = main____CPAchecker_TMP_0; goto label_3107; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1253 = check__tmp; main__c1 = __return_1253; { _Bool __tmp_42; __tmp_42 = main__c1; _Bool assert__arg; assert__arg = __tmp_42; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_3107_0 = main____CPAchecker_TMP_0; label_3107:; main____CPAchecker_TMP_0 = __tmp_3107_0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { return __return_main; } else { mode2 = 0; __tmp_3119_0 = main____CPAchecker_TMP_0; label_3119:; main____CPAchecker_TMP_0 = __tmp_3119_0; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { node3__m3 = p2_old; p2_old = nomsg; if (((int)node3__m3) != ((int)nomsg)) { if (!(alive3 == 0)) { return __return_main; } else { send3 = node3__m3; mode3 = 0; goto label_3136; } } else { mode3 = 0; label_3136:; __tmp_2780_0 = main____CPAchecker_TMP_0; goto label_2780; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } } } } } else { mode2 = 1; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { return __return_main; } else { if (!(alive3 == 0)) { int node3____CPAchecker_TMP_0; if (send3 != nomsg) { if (p3_new == nomsg) { node3____CPAchecker_TMP_0 = send3; p3_new = node3____CPAchecker_TMP_0; mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1203 = check__tmp; main__c1 = __return_1203; { _Bool __tmp_43; __tmp_43 = main__c1; _Bool assert__arg; assert__arg = __tmp_43; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_2671; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; mode1 = 0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { return __return_main; } else { mode2 = 0; __tmp_2705_0 = main____CPAchecker_TMP_0; label_2705:; main____CPAchecker_TMP_0 = __tmp_2705_0; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { node3__m3 = p2_old; p2_old = nomsg; if (((int)node3__m3) != ((int)nomsg)) { return __return_main; } else { mode3 = 0; __tmp_2717_0 = main____CPAchecker_TMP_0; label_2717:; main____CPAchecker_TMP_0 = __tmp_2717_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_2732 = check__tmp; main__c1 = __return_2732; { _Bool __tmp_44; __tmp_44 = main__c1; _Bool assert__arg; assert__arg = __tmp_44; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { return __return_main; } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; goto label_5592; } else { goto label_5589; } } else { label_5589:; node1____CPAchecker_TMP_0 = p1_new; label_5592:; p1_new = node1____CPAchecker_TMP_0; label_5595:; mode1 = 1; __tmp_5139_0 = main____CPAchecker_TMP_0; goto label_5139; } } else { if (((int)send1) != ((int)id1)) { int node1____CPAchecker_TMP_1; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_1 = send1; goto label_5604; } else { goto label_5601; } } else { label_5601:; node1____CPAchecker_TMP_1 = p1_new; label_5604:; p1_new = node1____CPAchecker_TMP_1; goto label_5595; } } else { goto label_5595; } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { label_2671:; mode1 = 0; goto label_2688; } } } else { send1 = node1__m1; mode1 = 0; goto label_2688; } } else { mode1 = 0; label_2688:; __tmp_2604_0 = main____CPAchecker_TMP_0; goto label_2604; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node3____CPAchecker_TMP_0 = p3_new; p3_new = node3____CPAchecker_TMP_0; mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1193 = check__tmp; main__c1 = __return_1193; { _Bool __tmp_45; __tmp_45 = main__c1; _Bool assert__arg; assert__arg = __tmp_45; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_2604_0 = main____CPAchecker_TMP_0; label_2604:; main____CPAchecker_TMP_0 = __tmp_2604_0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { return __return_main; } else { mode2 = 0; __tmp_2616_0 = main____CPAchecker_TMP_0; label_2616:; main____CPAchecker_TMP_0 = __tmp_2616_0; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { node3__m3 = p2_old; p2_old = nomsg; if (((int)node3__m3) != ((int)nomsg)) { return __return_main; } else { mode3 = 0; __tmp_2628_0 = main____CPAchecker_TMP_0; label_2628:; main____CPAchecker_TMP_0 = __tmp_2628_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_2643 = check__tmp; main__c1 = __return_2643; { _Bool __tmp_46; __tmp_46 = main__c1; _Bool assert__arg; assert__arg = __tmp_46; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { return __return_main; } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; p1_new = node1____CPAchecker_TMP_0; label_5532:; mode1 = 1; goto label_5549; } else { return __return_main; } } else { node1____CPAchecker_TMP_0 = p1_new; p1_new = node1____CPAchecker_TMP_0; mode1 = 1; label_5549:; __tmp_5139_0 = main____CPAchecker_TMP_0; goto label_5139; } } else { if (((int)send1) != ((int)id1)) { int node1____CPAchecker_TMP_1; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_1 = send1; p1_new = node1____CPAchecker_TMP_1; goto label_5532; } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; p1_new = node1____CPAchecker_TMP_1; goto label_5535; } } else { label_5535:; mode1 = 1; __tmp_5555_0 = main____CPAchecker_TMP_0; label_5555:; main____CPAchecker_TMP_0 = __tmp_5555_0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { return __return_main; } else { if (!(alive2 == 0)) { return __return_main; } else { if (((int)send2) != ((int)id2)) { int node2____CPAchecker_TMP_1; if (send2 != nomsg) { if (p2_new == nomsg) { node2____CPAchecker_TMP_1 = send2; goto label_5570; } else { goto label_5567; } } else { label_5567:; node2____CPAchecker_TMP_1 = p2_new; label_5570:; p2_new = node2____CPAchecker_TMP_1; goto label_5564; } } else { label_5564:; mode2 = 1; __tmp_5192_0 = main____CPAchecker_TMP_0; goto label_5192; } } } } } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { if (((int)send3) != ((int)id3)) { int node3____CPAchecker_TMP_1; if (send3 != nomsg) { if (p3_new == nomsg) { node3____CPAchecker_TMP_1 = send3; goto label_401; } else { return __return_main; } } else { node3____CPAchecker_TMP_1 = p3_new; label_401:; p3_new = node3____CPAchecker_TMP_1; mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1223 = check__tmp; main__c1 = __return_1223; { _Bool __tmp_47; __tmp_47 = main__c1; _Bool assert__arg; assert__arg = __tmp_47; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_2823; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; mode1 = 0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { return __return_main; } else { mode2 = 0; __tmp_2857_0 = main____CPAchecker_TMP_0; label_2857:; main____CPAchecker_TMP_0 = __tmp_2857_0; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { node3__m3 = p2_old; p2_old = nomsg; if (((int)node3__m3) != ((int)nomsg)) { return __return_main; } else { mode3 = 0; __tmp_2869_0 = main____CPAchecker_TMP_0; label_2869:; main____CPAchecker_TMP_0 = __tmp_2869_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_2884 = check__tmp; main__c1 = __return_2884; { _Bool __tmp_48; __tmp_48 = main__c1; _Bool assert__arg; assert__arg = __tmp_48; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { return __return_main; } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; goto label_5746; } else { goto label_5743; } } else { label_5743:; node1____CPAchecker_TMP_0 = p1_new; label_5746:; p1_new = node1____CPAchecker_TMP_0; label_5749:; mode1 = 1; __tmp_5139_0 = main____CPAchecker_TMP_0; goto label_5139; } } else { if (((int)send1) != ((int)id1)) { int node1____CPAchecker_TMP_1; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_1 = send1; goto label_5758; } else { goto label_5755; } } else { label_5755:; node1____CPAchecker_TMP_1 = p1_new; label_5758:; p1_new = node1____CPAchecker_TMP_1; goto label_5749; } } else { goto label_5749; } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { label_2823:; mode1 = 0; goto label_2840; } } } else { send1 = node1__m1; mode1 = 0; goto label_2840; } } else { mode1 = 0; label_2840:; __tmp_2756_0 = main____CPAchecker_TMP_0; goto label_2756; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1213 = check__tmp; main__c1 = __return_1213; { _Bool __tmp_49; __tmp_49 = main__c1; _Bool assert__arg; assert__arg = __tmp_49; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_2756_0 = main____CPAchecker_TMP_0; label_2756:; main____CPAchecker_TMP_0 = __tmp_2756_0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { return __return_main; } else { mode2 = 0; __tmp_2768_0 = main____CPAchecker_TMP_0; label_2768:; main____CPAchecker_TMP_0 = __tmp_2768_0; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { node3__m3 = p2_old; p2_old = nomsg; if (((int)node3__m3) != ((int)nomsg)) { return __return_main; } else { mode3 = 0; __tmp_2780_0 = main____CPAchecker_TMP_0; label_2780:; main____CPAchecker_TMP_0 = __tmp_2780_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_2795 = check__tmp; main__c1 = __return_2795; { _Bool __tmp_50; __tmp_50 = main__c1; _Bool assert__arg; assert__arg = __tmp_50; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { return __return_main; } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; p1_new = node1____CPAchecker_TMP_0; label_5630:; mode1 = 1; __tmp_5139_0 = main____CPAchecker_TMP_0; goto label_5139; } else { return __return_main; } } else { node1____CPAchecker_TMP_0 = p1_new; p1_new = node1____CPAchecker_TMP_0; mode1 = 1; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { if (!(alive2 == 0)) { if (((int)node2__m2) > ((int)id2)) { send2 = node2__m2; goto label_5672; } else { if (((int)node2__m2) == ((int)id2)) { st2 = 1; goto label_5672; } else { label_5672:; goto label_5665; } } } else { send2 = node2__m2; goto label_5665; } } else { label_5665:; mode2 = 0; label_5681:; __tmp_5192_0 = main____CPAchecker_TMP_0; goto label_5192; } } else { if (!(alive2 == 0)) { int node2____CPAchecker_TMP_0; if (send2 != nomsg) { if (p2_new == nomsg) { node2____CPAchecker_TMP_0 = send2; goto label_5689; } else { goto label_5686; } } else { label_5686:; node2____CPAchecker_TMP_0 = p2_new; label_5689:; p2_new = node2____CPAchecker_TMP_0; label_5692:; mode2 = 1; goto label_5681; } } else { if (((int)send2) != ((int)id2)) { int node2____CPAchecker_TMP_1; if (send2 != nomsg) { if (p2_new == nomsg) { node2____CPAchecker_TMP_1 = send2; goto label_5701; } else { goto label_5698; } } else { label_5698:; node2____CPAchecker_TMP_1 = p2_new; label_5701:; p2_new = node2____CPAchecker_TMP_1; goto label_5692; } } else { goto label_5692; } } } } } } else { if (((int)send1) != ((int)id1)) { int node1____CPAchecker_TMP_1; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_1 = send1; p1_new = node1____CPAchecker_TMP_1; goto label_5630; } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; p1_new = node1____CPAchecker_TMP_1; goto label_5633; } } else { label_5633:; mode1 = 1; __tmp_5655_0 = main____CPAchecker_TMP_0; label_5655:; main____CPAchecker_TMP_0 = __tmp_5655_0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { return __return_main; } else { if (!(alive2 == 0)) { return __return_main; } else { if (((int)send2) != ((int)id2)) { int node2____CPAchecker_TMP_1; if (send2 != nomsg) { if (p2_new == nomsg) { node2____CPAchecker_TMP_1 = send2; goto label_5722; } else { return __return_main; } } else { node2____CPAchecker_TMP_1 = p2_new; label_5722:; p2_new = node2____CPAchecker_TMP_1; mode2 = 1; goto label_5728; } } else { mode2 = 1; label_5728:; __tmp_5192_0 = main____CPAchecker_TMP_0; goto label_5192; } } } } } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } } } } } } } } } else { if (((int)send1) != ((int)id1)) { int node1____CPAchecker_TMP_1; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_1 = send1; p1_new = node1____CPAchecker_TMP_1; goto label_131; } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; p1_new = node1____CPAchecker_TMP_1; goto label_134; } } else { label_134:; mode1 = 1; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { return __return_main; } else { if (!(alive2 == 0)) { int node2____CPAchecker_TMP_0; if (send2 != nomsg) { if (p2_new == nomsg) { node2____CPAchecker_TMP_0 = send2; p2_new = node2____CPAchecker_TMP_0; mode2 = 1; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { return __return_main; } else { if (!(alive3 == 0)) { int node3____CPAchecker_TMP_0; if (send3 != nomsg) { if (p3_new == nomsg) { node3____CPAchecker_TMP_0 = send3; p3_new = node3____CPAchecker_TMP_0; mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1483 = check__tmp; main__c1 = __return_1483; { _Bool __tmp_51; __tmp_51 = main__c1; _Bool assert__arg; assert__arg = __tmp_51; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { return __return_main; } else { send1 = node1__m1; mode1 = 0; goto label_4685; } } else { mode1 = 0; label_4685:; __tmp_4591_0 = main____CPAchecker_TMP_0; goto label_4591; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node3____CPAchecker_TMP_0 = p3_new; p3_new = node3____CPAchecker_TMP_0; mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1473 = check__tmp; main__c1 = __return_1473; { _Bool __tmp_52; __tmp_52 = main__c1; _Bool assert__arg; assert__arg = __tmp_52; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_4591_0 = main____CPAchecker_TMP_0; label_4591:; main____CPAchecker_TMP_0 = __tmp_4591_0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { return __return_main; } else { mode2 = 0; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { node3__m3 = p2_old; p2_old = nomsg; if (((int)node3__m3) != ((int)nomsg)) { if (!(alive3 == 0)) { if (((int)node3__m3) > ((int)id3)) { send3 = node3__m3; goto label_4619; } else { if (((int)node3__m3) == ((int)id3)) { st3 = 1; mode3 = 0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_4656 = check__tmp; main__c1 = __return_4656; { _Bool __tmp_53; __tmp_53 = main__c1; _Bool assert__arg; assert__arg = __tmp_53; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { return __return_main; } else { if (!(alive1 == 0)) { return __return_main; } else { if (((int)send1) != ((int)id1)) { int node1____CPAchecker_TMP_1; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_1 = send1; goto label_6097; } else { goto label_6094; } } else { label_6094:; node1____CPAchecker_TMP_1 = p1_new; label_6097:; p1_new = node1____CPAchecker_TMP_1; goto label_6091; } } else { label_6091:; mode1 = 1; __tmp_5139_0 = main____CPAchecker_TMP_0; goto label_5139; } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { label_4619:; mode3 = 0; goto label_4636; } } } else { send3 = node3__m3; mode3 = 0; goto label_4636; } } else { mode3 = 0; label_4636:; __tmp_4445_0 = main____CPAchecker_TMP_0; goto label_4445; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { if (((int)send3) != ((int)id3)) { int node3____CPAchecker_TMP_1; if (send3 != nomsg) { if (p3_new == nomsg) { node3____CPAchecker_TMP_1 = send3; goto label_709; } else { return __return_main; } } else { node3____CPAchecker_TMP_1 = p3_new; label_709:; p3_new = node3____CPAchecker_TMP_1; mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1503 = check__tmp; main__c1 = __return_1503; { _Bool __tmp_54; __tmp_54 = main__c1; _Bool assert__arg; assert__arg = __tmp_54; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { return __return_main; } else { send1 = node1__m1; mode1 = 0; goto label_4753; } } else { mode1 = 0; label_4753:; __tmp_4702_0 = main____CPAchecker_TMP_0; goto label_4702; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1493 = check__tmp; main__c1 = __return_1493; { _Bool __tmp_55; __tmp_55 = main__c1; _Bool assert__arg; assert__arg = __tmp_55; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_4702_0 = main____CPAchecker_TMP_0; label_4702:; main____CPAchecker_TMP_0 = __tmp_4702_0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { return __return_main; } else { mode2 = 0; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { node3__m3 = p2_old; p2_old = nomsg; if (((int)node3__m3) != ((int)nomsg)) { if (!(alive3 == 0)) { return __return_main; } else { send3 = node3__m3; mode3 = 0; goto label_4731; } } else { mode3 = 0; label_4731:; __tmp_4530_0 = main____CPAchecker_TMP_0; goto label_4530; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } } } } else { return __return_main; } } else { node2____CPAchecker_TMP_0 = p2_new; p2_new = node2____CPAchecker_TMP_0; mode2 = 1; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { return __return_main; } else { if (!(alive3 == 0)) { int node3____CPAchecker_TMP_0; if (send3 != nomsg) { if (p3_new == nomsg) { node3____CPAchecker_TMP_0 = send3; p3_new = node3____CPAchecker_TMP_0; mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1443 = check__tmp; main__c1 = __return_1443; { _Bool __tmp_56; __tmp_56 = main__c1; _Bool assert__arg; assert__arg = __tmp_56; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { return __return_main; } else { send1 = node1__m1; mode1 = 0; goto label_4489; } } else { mode1 = 0; label_4489:; __tmp_4421_0 = main____CPAchecker_TMP_0; goto label_4421; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node3____CPAchecker_TMP_0 = p3_new; p3_new = node3____CPAchecker_TMP_0; mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1433 = check__tmp; main__c1 = __return_1433; { _Bool __tmp_57; __tmp_57 = main__c1; _Bool assert__arg; assert__arg = __tmp_57; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_4421_0 = main____CPAchecker_TMP_0; label_4421:; main____CPAchecker_TMP_0 = __tmp_4421_0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { return __return_main; } else { mode2 = 0; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { node3__m3 = p2_old; p2_old = nomsg; if (((int)node3__m3) != ((int)nomsg)) { return __return_main; } else { mode3 = 0; __tmp_4445_0 = main____CPAchecker_TMP_0; label_4445:; main____CPAchecker_TMP_0 = __tmp_4445_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_4460 = check__tmp; main__c1 = __return_4460; { _Bool __tmp_58; __tmp_58 = main__c1; _Bool assert__arg; assert__arg = __tmp_58; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { return __return_main; } else { if (!(alive1 == 0)) { return __return_main; } else { if (((int)send1) != ((int)id1)) { int node1____CPAchecker_TMP_1; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_1 = send1; p1_new = node1____CPAchecker_TMP_1; mode1 = 1; __tmp_5139_0 = main____CPAchecker_TMP_0; goto label_5139; } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; p1_new = node1____CPAchecker_TMP_1; goto label_5980; } } else { label_5980:; mode1 = 1; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { if (!(alive2 == 0)) { if (((int)node2__m2) > ((int)id2)) { send2 = node2__m2; goto label_6015; } else { if (((int)node2__m2) == ((int)id2)) { st2 = 1; goto label_6015; } else { label_6015:; goto label_6008; } } } else { send2 = node2__m2; goto label_6008; } } else { label_6008:; mode2 = 0; label_6024:; __tmp_5192_0 = main____CPAchecker_TMP_0; goto label_5192; } } else { if (!(alive2 == 0)) { int node2____CPAchecker_TMP_0; if (send2 != nomsg) { if (p2_new == nomsg) { node2____CPAchecker_TMP_0 = send2; goto label_6032; } else { goto label_6029; } } else { label_6029:; node2____CPAchecker_TMP_0 = p2_new; label_6032:; p2_new = node2____CPAchecker_TMP_0; label_6035:; mode2 = 1; goto label_6024; } } else { if (((int)send2) != ((int)id2)) { int node2____CPAchecker_TMP_1; if (send2 != nomsg) { if (p2_new == nomsg) { node2____CPAchecker_TMP_1 = send2; goto label_6044; } else { goto label_6041; } } else { label_6041:; node2____CPAchecker_TMP_1 = p2_new; label_6044:; p2_new = node2____CPAchecker_TMP_1; goto label_6035; } } else { goto label_6035; } } } } } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { if (((int)send3) != ((int)id3)) { int node3____CPAchecker_TMP_1; if (send3 != nomsg) { if (p3_new == nomsg) { node3____CPAchecker_TMP_1 = send3; goto label_665; } else { return __return_main; } } else { node3____CPAchecker_TMP_1 = p3_new; label_665:; p3_new = node3____CPAchecker_TMP_1; mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1463 = check__tmp; main__c1 = __return_1463; { _Bool __tmp_59; __tmp_59 = main__c1; _Bool assert__arg; assert__arg = __tmp_59; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { return __return_main; } else { send1 = node1__m1; mode1 = 0; goto label_4574; } } else { mode1 = 0; label_4574:; __tmp_4506_0 = main____CPAchecker_TMP_0; goto label_4506; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1453 = check__tmp; main__c1 = __return_1453; { _Bool __tmp_60; __tmp_60 = main__c1; _Bool assert__arg; assert__arg = __tmp_60; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_4506_0 = main____CPAchecker_TMP_0; label_4506:; main____CPAchecker_TMP_0 = __tmp_4506_0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { return __return_main; } else { mode2 = 0; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { node3__m3 = p2_old; p2_old = nomsg; if (((int)node3__m3) != ((int)nomsg)) { return __return_main; } else { mode3 = 0; __tmp_4530_0 = main____CPAchecker_TMP_0; label_4530:; main____CPAchecker_TMP_0 = __tmp_4530_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_4545 = check__tmp; main__c1 = __return_4545; { _Bool __tmp_61; __tmp_61 = main__c1; _Bool assert__arg; assert__arg = __tmp_61; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { return __return_main; } else { if (!(alive1 == 0)) { return __return_main; } else { if (((int)send1) != ((int)id1)) { int node1____CPAchecker_TMP_1; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_1 = send1; p1_new = node1____CPAchecker_TMP_1; mode1 = 1; __tmp_5139_0 = main____CPAchecker_TMP_0; goto label_5139; } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; p1_new = node1____CPAchecker_TMP_1; goto label_6062; } } else { label_6062:; mode1 = 1; __tmp_5369_0 = main____CPAchecker_TMP_0; goto label_5369; } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } } } } } else { if (((int)send2) != ((int)id2)) { int node2____CPAchecker_TMP_1; if (send2 != nomsg) { if (p2_new == nomsg) { node2____CPAchecker_TMP_1 = send2; goto label_269; } else { return __return_main; } } else { node2____CPAchecker_TMP_1 = p2_new; label_269:; p2_new = node2____CPAchecker_TMP_1; mode2 = 1; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { return __return_main; } else { if (!(alive3 == 0)) { int node3____CPAchecker_TMP_0; if (send3 != nomsg) { if (p3_new == nomsg) { node3____CPAchecker_TMP_0 = send3; p3_new = node3____CPAchecker_TMP_0; mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1563 = check__tmp; main__c1 = __return_1563; { _Bool __tmp_62; __tmp_62 = main__c1; _Bool assert__arg; assert__arg = __tmp_62; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { return __return_main; } else { send1 = node1__m1; mode1 = 0; goto label_5034; } } else { mode1 = 0; label_5034:; __tmp_4940_0 = main____CPAchecker_TMP_0; goto label_4940; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node3____CPAchecker_TMP_0 = p3_new; p3_new = node3____CPAchecker_TMP_0; mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1553 = check__tmp; main__c1 = __return_1553; { _Bool __tmp_63; __tmp_63 = main__c1; _Bool assert__arg; assert__arg = __tmp_63; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_4940_0 = main____CPAchecker_TMP_0; label_4940:; main____CPAchecker_TMP_0 = __tmp_4940_0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { return __return_main; } else { mode2 = 0; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { node3__m3 = p2_old; p2_old = nomsg; if (((int)node3__m3) != ((int)nomsg)) { if (!(alive3 == 0)) { if (((int)node3__m3) > ((int)id3)) { send3 = node3__m3; goto label_4968; } else { if (((int)node3__m3) == ((int)id3)) { st3 = 1; mode3 = 0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_5005 = check__tmp; main__c1 = __return_5005; { _Bool __tmp_64; __tmp_64 = main__c1; _Bool assert__arg; assert__arg = __tmp_64; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { return __return_main; } else { if (!(alive1 == 0)) { return __return_main; } else { if (((int)send1) != ((int)id1)) { int node1____CPAchecker_TMP_1; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_1 = send1; goto label_6211; } else { goto label_6208; } } else { label_6208:; node1____CPAchecker_TMP_1 = p1_new; label_6211:; p1_new = node1____CPAchecker_TMP_1; goto label_6205; } } else { label_6205:; mode1 = 1; __tmp_5139_0 = main____CPAchecker_TMP_0; goto label_5139; } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { label_4968:; mode3 = 0; goto label_4985; } } } else { send3 = node3__m3; mode3 = 0; goto label_4985; } } else { mode3 = 0; label_4985:; __tmp_4794_0 = main____CPAchecker_TMP_0; goto label_4794; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { if (((int)send3) != ((int)id3)) { int node3____CPAchecker_TMP_1; if (send3 != nomsg) { if (p3_new == nomsg) { node3____CPAchecker_TMP_1 = send3; goto label_797; } else { return __return_main; } } else { node3____CPAchecker_TMP_1 = p3_new; label_797:; p3_new = node3____CPAchecker_TMP_1; mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1583 = check__tmp; main__c1 = __return_1583; { _Bool __tmp_65; __tmp_65 = main__c1; _Bool assert__arg; assert__arg = __tmp_65; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { return __return_main; } else { send1 = node1__m1; mode1 = 0; goto label_5102; } } else { mode1 = 0; label_5102:; __tmp_5051_0 = main____CPAchecker_TMP_0; goto label_5051; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1573 = check__tmp; main__c1 = __return_1573; { _Bool __tmp_66; __tmp_66 = main__c1; _Bool assert__arg; assert__arg = __tmp_66; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_5051_0 = main____CPAchecker_TMP_0; label_5051:; main____CPAchecker_TMP_0 = __tmp_5051_0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { return __return_main; } else { mode2 = 0; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { node3__m3 = p2_old; p2_old = nomsg; if (((int)node3__m3) != ((int)nomsg)) { if (!(alive3 == 0)) { return __return_main; } else { send3 = node3__m3; mode3 = 0; goto label_5080; } } else { mode3 = 0; label_5080:; __tmp_4879_0 = main____CPAchecker_TMP_0; goto label_4879; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } } } } } else { mode2 = 1; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { return __return_main; } else { if (!(alive3 == 0)) { int node3____CPAchecker_TMP_0; if (send3 != nomsg) { if (p3_new == nomsg) { node3____CPAchecker_TMP_0 = send3; p3_new = node3____CPAchecker_TMP_0; mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1523 = check__tmp; main__c1 = __return_1523; { _Bool __tmp_67; __tmp_67 = main__c1; _Bool assert__arg; assert__arg = __tmp_67; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { return __return_main; } else { send1 = node1__m1; mode1 = 0; goto label_4838; } } else { mode1 = 0; label_4838:; __tmp_4770_0 = main____CPAchecker_TMP_0; goto label_4770; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node3____CPAchecker_TMP_0 = p3_new; p3_new = node3____CPAchecker_TMP_0; mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1513 = check__tmp; main__c1 = __return_1513; { _Bool __tmp_68; __tmp_68 = main__c1; _Bool assert__arg; assert__arg = __tmp_68; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_4770_0 = main____CPAchecker_TMP_0; label_4770:; main____CPAchecker_TMP_0 = __tmp_4770_0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { return __return_main; } else { mode2 = 0; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { node3__m3 = p2_old; p2_old = nomsg; if (((int)node3__m3) != ((int)nomsg)) { return __return_main; } else { mode3 = 0; __tmp_4794_0 = main____CPAchecker_TMP_0; label_4794:; main____CPAchecker_TMP_0 = __tmp_4794_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_4809 = check__tmp; main__c1 = __return_4809; { _Bool __tmp_69; __tmp_69 = main__c1; _Bool assert__arg; assert__arg = __tmp_69; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { return __return_main; } else { if (!(alive1 == 0)) { return __return_main; } else { if (((int)send1) != ((int)id1)) { int node1____CPAchecker_TMP_1; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_1 = send1; p1_new = node1____CPAchecker_TMP_1; mode1 = 1; __tmp_5139_0 = main____CPAchecker_TMP_0; goto label_5139; } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; p1_new = node1____CPAchecker_TMP_1; goto label_6115; } } else { label_6115:; mode1 = 1; __tmp_5555_0 = main____CPAchecker_TMP_0; goto label_5555; } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { if (((int)send3) != ((int)id3)) { int node3____CPAchecker_TMP_1; if (send3 != nomsg) { if (p3_new == nomsg) { node3____CPAchecker_TMP_1 = send3; goto label_753; } else { return __return_main; } } else { node3____CPAchecker_TMP_1 = p3_new; label_753:; p3_new = node3____CPAchecker_TMP_1; mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1543 = check__tmp; main__c1 = __return_1543; { _Bool __tmp_70; __tmp_70 = main__c1; _Bool assert__arg; assert__arg = __tmp_70; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { return __return_main; } else { send1 = node1__m1; mode1 = 0; goto label_4923; } } else { mode1 = 0; label_4923:; __tmp_4855_0 = main____CPAchecker_TMP_0; goto label_4855; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode3 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_1533 = check__tmp; main__c1 = __return_1533; { _Bool __tmp_71; __tmp_71 = main__c1; _Bool assert__arg; assert__arg = __tmp_71; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p3_old; p3_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_4855_0 = main____CPAchecker_TMP_0; label_4855:; main____CPAchecker_TMP_0 = __tmp_4855_0; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { node2__m2 = p1_old; p1_old = nomsg; if (((int)node2__m2) != ((int)nomsg)) { return __return_main; } else { mode2 = 0; { msg_t node3__m3; node3__m3 = nomsg; if (!(mode3 == 0)) { node3__m3 = p2_old; p2_old = nomsg; if (((int)node3__m3) != ((int)nomsg)) { return __return_main; } else { mode3 = 0; __tmp_4879_0 = main____CPAchecker_TMP_0; label_4879:; main____CPAchecker_TMP_0 = __tmp_4879_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if (((int)r1) < 3) { check__tmp = 1; __return_4894 = check__tmp; main__c1 = __return_4894; { _Bool __tmp_72; __tmp_72 = main__c1; _Bool assert__arg; assert__arg = __tmp_72; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 6) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { return __return_main; } else { if (!(alive1 == 0)) { return __return_main; } else { if (((int)send1) != ((int)id1)) { int node1____CPAchecker_TMP_1; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_1 = send1; p1_new = node1____CPAchecker_TMP_1; mode1 = 1; { msg_t node2__m2; node2__m2 = nomsg; if (!(mode2 == 0)) { return __return_main; } else { if (!(alive2 == 0)) { int node2____CPAchecker_TMP_0; if (send2 != nomsg) { if (p2_new == nomsg) { node2____CPAchecker_TMP_0 = send2; goto label_6175; } else { goto label_6172; } } else { label_6172:; node2____CPAchecker_TMP_0 = p2_new; label_6175:; p2_new = node2____CPAchecker_TMP_0; label_6178:; mode2 = 1; __tmp_5192_0 = main____CPAchecker_TMP_0; goto label_5192; } } else { if (((int)send2) != ((int)id2)) { int node2____CPAchecker_TMP_1; if (send2 != nomsg) { if (p2_new == nomsg) { node2____CPAchecker_TMP_1 = send2; goto label_6187; } else { goto label_6184; } } else { label_6184:; node2____CPAchecker_TMP_1 = p2_new; label_6187:; p2_new = node2____CPAchecker_TMP_1; goto label_6178; } } else { goto label_6178; } } } } } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; p1_new = node1____CPAchecker_TMP_1; goto label_6144; } } else { label_6144:; mode1 = 1; __tmp_5655_0 = main____CPAchecker_TMP_0; goto label_5655; } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } } } } } } } } } } } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } }