// 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.4.1.ufo.BOUNDED-8.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; port_t p4 = 0; char p4_old = '\x0'; char p4_new = '\x0'; char id4 = '\x0'; char st4 = '\x0'; msg_t send4 = '\x0'; _Bool mode4 = 0; _Bool alive4 = 0; void node1(); void node2(); void node3(); void node4(); void (*nodes[4])() = { &node1, &node2, &node3, &node4 }; int init(); int check(); int main(); int __return_130; int __return_4143; int __tmp_13157_0; int __return_13184; int __return_4133; int __tmp_12863_0; int __return_13004; int __return_4163; int __return_4153; int __tmp_13200_0; int __return_4103; int __tmp_12538_0; int __return_12565; int __return_4093; int __tmp_12296_0; int __tmp_12384_0; int __return_12399; int __return_4123; int __tmp_12820_0; int __return_12847; int __return_4113; int __tmp_12581_0; int __tmp_12669_0; int __return_12684; int __return_4223; int __return_4213; int __tmp_13790_0; int __return_4243; int __return_4233; int __tmp_13961_0; int __return_4183; int __return_4173; int __tmp_13448_0; int __return_4203; int __return_4193; int __tmp_13619_0; int __return_3983; int __tmp_11084_0; int __return_11149; int __return_3973; int __tmp_10880_0; int __tmp_10930_0; int __return_10983; int __return_4003; int __tmp_11326_0; int __return_3993; int __tmp_11165_0; int __tmp_11215_0; int __return_3943; int __tmp_10598_0; int __tmp_10610_0; int __return_10625; int __return_3933; int __tmp_10418_0; int __tmp_10468_0; int __tmp_10480_0; int __return_10497; int __return_3963; int __tmp_10829_0; int __tmp_10841_0; int __return_10856; int __return_3953; int __tmp_10649_0; int __tmp_10699_0; int __tmp_10711_0; int __return_10728; int __return_4063; int __tmp_12020_0; int __return_12085; int __return_4053; int __tmp_11816_0; int __tmp_11866_0; int __return_11919; int __return_4083; int __tmp_12262_0; int __return_4073; int __tmp_12101_0; int __tmp_12151_0; int __return_4023; int __tmp_11540_0; int __tmp_11552_0; int __return_11567; int __return_4013; int __tmp_11360_0; int __tmp_11410_0; int __tmp_11422_0; int __return_11439; int __return_4043; int __tmp_11768_0; int __tmp_11780_0; int __return_11795; int __return_4033; int __tmp_11588_0; int __tmp_11638_0; int __tmp_11650_0; int __return_11667; int __return_4303; int __return_4293; int __tmp_14322_0; int __return_4323; int __return_4313; int __tmp_14417_0; int __return_4263; int __return_4253; int __tmp_14132_0; int __return_4283; int __return_4273; int __tmp_14227_0; int __return_4383; int __return_4373; int __tmp_14702_0; int __return_4403; int __return_4393; int __tmp_14797_0; int __return_4343; int __return_4333; int __tmp_14512_0; int __return_4363; int __return_4353; int __tmp_14607_0; int __return_3663; int __tmp_8154_0; int __return_8257; int __tmp_8258_0; int __return_3653; int __tmp_7988_0; int __tmp_8000_0; int __return_8091; int __return_3683; int __tmp_8404_0; int __return_3673; int __tmp_8281_0; int __tmp_8293_0; int __return_3623; int __tmp_7668_0; int __tmp_7718_0; int __return_7733; int __return_3613; int __tmp_7526_0; int __tmp_7538_0; int __tmp_7588_0; int __return_7605; int __return_3643; int __tmp_7899_0; int __tmp_7949_0; int __return_7964; int __return_3633; int __tmp_7757_0; int __tmp_7769_0; int __tmp_7819_0; int __return_7836; int __return_3743; int __tmp_8799_0; int __return_3733; int __tmp_8714_0; int __tmp_8726_0; int __return_3763; int __tmp_8918_0; int __return_3753; int __tmp_8833_0; int __tmp_8845_0; int __return_3703; int __tmp_8561_0; int __return_3693; int __tmp_8476_0; int __tmp_8488_0; int __return_3723; int __tmp_8680_0; int __return_3713; int __tmp_8595_0; int __tmp_8607_0; int __return_3503; int __tmp_6555_0; int __tmp_6567_0; int __return_6620; int __tmp_6629_0; int __return_3493; int __tmp_6413_0; int __tmp_6425_0; int __tmp_6437_0; int __return_6492; int __return_3523; int __tmp_6744_0; int __tmp_6756_0; int __return_3513; int __tmp_6647_0; int __tmp_6659_0; int __tmp_6671_0; int __return_3463; int __tmp_6167_0; int __tmp_6179_0; int __tmp_6191_0; int __return_6208; int __tmp_6217_0; int __return_17460; int __return_3453; int __tmp_6051_0; int __tmp_6063_0; int __tmp_6075_0; int __tmp_6087_0; int __return_6104; int __tmp_17297_0; int __tmp_17350_0; int __return_3483; int __tmp_6348_0; int __tmp_6360_0; int __tmp_6372_0; int __return_6389; int __return_3473; int __tmp_6232_0; int __tmp_6244_0; int __tmp_6256_0; int __tmp_6268_0; int __return_6285; int __return_3583; int __tmp_7294_0; int __tmp_7306_0; int __return_7359; int __return_3573; int __tmp_7152_0; int __tmp_7164_0; int __tmp_7176_0; int __return_7231; int __return_3603; int __tmp_7480_0; int __tmp_7492_0; int __return_3593; int __tmp_7383_0; int __tmp_7395_0; int __tmp_7407_0; int __return_3543; int __tmp_6906_0; int __tmp_6918_0; int __tmp_6930_0; int __return_6947; int __return_3533; int __tmp_6790_0; int __tmp_6802_0; int __tmp_6814_0; int __tmp_6826_0; int __return_6843; int __return_3563; int __tmp_7087_0; int __tmp_7099_0; int __tmp_7111_0; int __return_7128; int __return_3553; int __tmp_6971_0; int __tmp_6983_0; int __tmp_6995_0; int __tmp_7007_0; int __return_7024; int __tmp_17684_0; int __return_3823; int __tmp_9456_0; int __return_9521; int __return_3813; int __tmp_9314_0; int __tmp_9326_0; int __return_9393; int __return_3843; int __tmp_9639_0; int __return_3833; int __tmp_9542_0; int __tmp_9554_0; int __return_3783; int __tmp_9068_0; int __tmp_9092_0; int __return_9109; int __return_3773; int __tmp_8952_0; int __tmp_8964_0; int __tmp_8988_0; int __return_9005; int __return_3803; int __tmp_9249_0; int __tmp_9273_0; int __return_9290; int __return_3793; int __tmp_9133_0; int __tmp_9145_0; int __tmp_9169_0; int __return_9186; int __tmp_17964_0; int __return_3903; int __tmp_10189_0; int __return_10254; int __return_3893; int __tmp_10047_0; int __tmp_10059_0; int __return_10126; int __return_3923; int __tmp_10372_0; int __return_3913; int __tmp_10275_0; int __tmp_10287_0; int __return_3863; int __tmp_9801_0; int __tmp_9825_0; int __return_9842; int __return_3853; int __tmp_9685_0; int __tmp_9697_0; int __tmp_9721_0; int __return_9738; int __tmp_18142_0; int __return_3883; int __tmp_9982_0; int __tmp_10006_0; int __return_10023; int __return_3873; int __tmp_9866_0; int __tmp_9878_0; int __tmp_9902_0; int __return_9919; int __tmp_18242_0; int __return_4623; int __return_4613; int __tmp_15948_0; int __return_16051; int __return_4643; int __return_4633; int __tmp_16094_0; int __return_4583; int __return_4573; int __tmp_15698_0; int __tmp_15760_0; int __return_15777; int __return_4603; int __return_4593; int __tmp_15823_0; int __tmp_15885_0; int __return_15902; int __return_4703; int __return_4693; int __tmp_16336_0; int __return_4723; int __return_4713; int __tmp_16404_0; int __return_4663; int __return_4653; int __tmp_16200_0; int __return_4683; int __return_4673; int __tmp_16268_0; int __return_4463; int __return_4453; int __tmp_15090_0; int __tmp_15114_0; int __return_15169; int __return_4483; int __return_4473; int __tmp_15215_0; int __tmp_15239_0; int __return_4423; int __return_4413; int __tmp_14892_0; int __tmp_14916_0; int __tmp_14928_0; int __return_14945; int __return_4443; int __return_4433; int __tmp_14991_0; int __tmp_15015_0; int __tmp_15027_0; int __return_15044; int __return_4543; int __return_4533; int __tmp_15493_0; int __tmp_15517_0; int __return_15572; int __return_4563; int __return_4553; int __tmp_15618_0; int __tmp_15642_0; int __return_4503; int __return_4493; int __tmp_15295_0; int __tmp_15319_0; int __tmp_15331_0; int __return_15348; int __return_4523; int __return_4513; int __tmp_15394_0; int __tmp_15418_0; int __tmp_15430_0; int __return_15447; int __return_4783; int __return_4773; int __tmp_16670_0; int __return_16749; int __return_4803; int __return_4793; int __tmp_16795_0; int __return_4743; int __return_4733; int __tmp_16472_0; int __tmp_16508_0; int __return_16525; int __return_4763; int __return_4753; int __tmp_16571_0; int __tmp_16607_0; int __return_16624; int __return_4863; int __return_4853; int __tmp_17073_0; int __return_17152; int __return_4883; int __return_4873; int __tmp_17198_0; int __return_4823; int __return_4813; int __tmp_16875_0; int __tmp_16911_0; int __return_16928; int __return_4843; int __return_4833; int __tmp_16974_0; int __tmp_17010_0; int __return_17027; 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(); id4 = __VERIFIER_nondet_char(); st4 = __VERIFIER_nondet_char(); send4 = __VERIFIER_nondet_char(); mode4 = __VERIFIER_nondet_bool(); alive4 = __VERIFIER_nondet_bool(); { int init__tmp; if (((int)r1) == 0) { if ((((((int)alive1) + ((int)alive2)) + ((int)alive3)) + ((int)alive4)) >= 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)id4) >= 0) { if (((int)st4) == 0) { if (((int)send4) == ((int)id4)) { if (((int)mode4) == 0) { if (((int)id1) != ((int)id2)) { if (((int)id1) != ((int)id3)) { if (((int)id1) != ((int)id4)) { if (((int)id2) != ((int)id3)) { if (((int)id2) != ((int)id4)) { if (((int)id3) != ((int)id4)) { init__tmp = 1; __return_130 = init__tmp; main__i2 = __return_130; if (main__i2 != 0) { p1_old = nomsg; p1_new = nomsg; p2_old = nomsg; p2_new = nomsg; p3_old = nomsg; p3_new = nomsg; p4_old = nomsg; p4_new = nomsg; main__i2 = 0; if (main__i2 < 8) { { 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_161:; 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; label_245:; 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; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { return __return_main; } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4143 = check__tmp; main__c1 = __return_4143; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_13025; } 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_13063; } 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_13101; } else { if (((int)node3__m3) == ((int)id3)) { st3 = 1; mode3 = 0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { if (((int)node4__m4) > ((int)id4)) { send4 = node4__m4; goto label_13139; } else { if (((int)node4__m4) == ((int)id4)) { st4 = 1; goto label_13144; } else { label_13139:; label_13144:; mode4 = 0; label_13152:; __tmp_13157_0 = main____CPAchecker_TMP_0; label_13157:; main____CPAchecker_TMP_0 = __tmp_13157_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; goto label_13178; } else { if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) == 1) { check__tmp = 1; goto label_13178; } else { check__tmp = 0; label_13178:; goto label_13172; } } } else { check__tmp = 0; label_13172:; __return_13184 = check__tmp; main__c1 = __return_13184; __tmp_8258_0 = main____CPAchecker_TMP_0; goto label_8258; } } } } } else { send4 = node4__m4; mode4 = 0; goto label_13152; } } else { mode4 = 0; __tmp_12538_0 = main____CPAchecker_TMP_0; goto label_12538; } } else { return __return_main; } } } else { label_13101:; mode3 = 0; goto label_13118; } } } else { send3 = node3__m3; mode3 = 0; goto label_13118; } } else { mode3 = 0; label_13118:; __tmp_11084_0 = main____CPAchecker_TMP_0; goto label_11084; } } else { return __return_main; } } } else { label_13063:; mode2 = 0; goto label_13080; } } } else { send2 = node2__m2; mode2 = 0; goto label_13080; } } else { mode2 = 0; label_13080:; __tmp_8154_0 = main____CPAchecker_TMP_0; goto label_8154; } } else { return __return_main; } } } else { send1 = node1__m1; label_13025:; mode1 = 0; goto label_13042; } } } else { send1 = node1__m1; mode1 = 0; goto label_13042; } } else { mode1 = 0; label_13042:; __tmp_12863_0 = main____CPAchecker_TMP_0; goto label_12863; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node4____CPAchecker_TMP_0 = p4_new; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4133 = check__tmp; main__c1 = __return_4133; { _Bool __tmp_2; __tmp_2 = main__c1; _Bool assert__arg; assert__arg = __tmp_2; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_12863_0 = main____CPAchecker_TMP_0; label_12863:; main____CPAchecker_TMP_0 = __tmp_12863_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_12879; } 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_12917; } else { if (((int)node3__m3) == ((int)id3)) { st3 = 1; mode3 = 0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { if (((int)node4__m4) > ((int)id4)) { send4 = node4__m4; goto label_12955; } else { if (((int)node4__m4) == ((int)id4)) { st4 = 1; mode4 = 0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; goto label_12998; } else { if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) == 1) { check__tmp = 1; goto label_12998; } else { check__tmp = 0; label_12998:; goto label_12992; } } } else { check__tmp = 0; label_12992:; __return_13004 = check__tmp; main__c1 = __return_13004; __tmp_8258_0 = main____CPAchecker_TMP_0; goto label_8258; } } } else { label_12955:; mode4 = 0; goto label_12972; } } } else { send4 = node4__m4; mode4 = 0; goto label_12972; } } else { mode4 = 0; label_12972:; __tmp_12384_0 = main____CPAchecker_TMP_0; goto label_12384; } } else { return __return_main; } } } else { label_12917:; mode3 = 0; goto label_12934; } } } else { send3 = node3__m3; mode3 = 0; goto label_12934; } } else { mode3 = 0; label_12934:; __tmp_10930_0 = main____CPAchecker_TMP_0; goto label_10930; } } else { return __return_main; } } } else { label_12879:; mode2 = 0; goto label_12896; } } } else { send2 = node2__m2; mode2 = 0; goto label_12896; } } else { mode2 = 0; label_12896:; __tmp_8000_0 = main____CPAchecker_TMP_0; goto label_8000; } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { if (((int)send4) != ((int)id4)) { int node4____CPAchecker_TMP_1; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_1 = send4; goto label_1481; } else { return __return_main; } } else { node4____CPAchecker_TMP_1 = p4_new; label_1481:; p4_new = node4____CPAchecker_TMP_1; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4163 = check__tmp; main__c1 = __return_4163; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_13315; } 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_13353; } 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_13391; } else { if (((int)node3__m3) == ((int)id3)) { st3 = 1; mode3 = 0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { return __return_main; } else { send4 = node4__m4; mode4 = 0; __tmp_13157_0 = main____CPAchecker_TMP_0; goto label_13157; } } else { mode4 = 0; __tmp_12820_0 = main____CPAchecker_TMP_0; goto label_12820; } } else { return __return_main; } } } else { label_13391:; mode3 = 0; goto label_13408; } } } else { send3 = node3__m3; mode3 = 0; goto label_13408; } } else { mode3 = 0; label_13408:; __tmp_11326_0 = main____CPAchecker_TMP_0; goto label_11326; } } else { return __return_main; } } } else { label_13353:; mode2 = 0; goto label_13370; } } } else { send2 = node2__m2; mode2 = 0; goto label_13370; } } else { mode2 = 0; label_13370:; __tmp_8404_0 = main____CPAchecker_TMP_0; goto label_8404; } } else { return __return_main; } } } else { send1 = node1__m1; label_13315:; mode1 = 0; goto label_13332; } } } else { send1 = node1__m1; mode1 = 0; goto label_13332; } } else { mode1 = 0; label_13332:; __tmp_13200_0 = main____CPAchecker_TMP_0; goto label_13200; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4153 = check__tmp; main__c1 = __return_4153; { _Bool __tmp_4; __tmp_4 = main__c1; _Bool assert__arg; assert__arg = __tmp_4; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_13200_0 = main____CPAchecker_TMP_0; label_13200:; main____CPAchecker_TMP_0 = __tmp_13200_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_13216; } 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_13254; } else { if (((int)node3__m3) == ((int)id3)) { st3 = 1; mode3 = 0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { return __return_main; } else { send4 = node4__m4; mode4 = 0; goto label_13293; } } else { mode4 = 0; label_13293:; __tmp_12669_0 = main____CPAchecker_TMP_0; goto label_12669; } } else { return __return_main; } } } else { label_13254:; mode3 = 0; goto label_13271; } } } else { send3 = node3__m3; mode3 = 0; goto label_13271; } } else { mode3 = 0; label_13271:; __tmp_11215_0 = main____CPAchecker_TMP_0; goto label_11215; } } else { return __return_main; } } } else { label_13216:; mode2 = 0; goto label_13233; } } } else { send2 = node2__m2; mode2 = 0; goto label_13233; } } else { mode2 = 0; label_13233:; __tmp_8293_0 = main____CPAchecker_TMP_0; goto label_8293; } } 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 { node3____CPAchecker_TMP_0 = p3_new; p3_new = node3____CPAchecker_TMP_0; mode3 = 1; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { return __return_main; } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4103 = check__tmp; main__c1 = __return_4103; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_12428; } 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_12466; } 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_12504; } else { if (((int)node3__m3) == ((int)id3)) { st3 = 1; mode3 = 0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_12538_0 = main____CPAchecker_TMP_0; label_12538:; main____CPAchecker_TMP_0 = __tmp_12538_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; goto label_12559; } else { if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) == 1) { check__tmp = 1; goto label_12559; } else { check__tmp = 0; label_12559:; goto label_12553; } } } else { check__tmp = 0; label_12553:; __return_12565 = check__tmp; main__c1 = __return_12565; __tmp_8258_0 = main____CPAchecker_TMP_0; goto label_8258; } } } } else { return __return_main; } } } else { label_12504:; mode3 = 0; goto label_12521; } } } else { send3 = node3__m3; mode3 = 0; goto label_12521; } } else { mode3 = 0; label_12521:; __tmp_10598_0 = main____CPAchecker_TMP_0; goto label_10598; } } else { return __return_main; } } } else { label_12466:; mode2 = 0; goto label_12483; } } } else { send2 = node2__m2; mode2 = 0; goto label_12483; } } else { mode2 = 0; label_12483:; __tmp_7668_0 = main____CPAchecker_TMP_0; goto label_7668; } } else { return __return_main; } } } else { send1 = node1__m1; label_12428:; mode1 = 0; goto label_12445; } } } else { send1 = node1__m1; mode1 = 0; goto label_12445; } } else { mode1 = 0; label_12445:; __tmp_12296_0 = main____CPAchecker_TMP_0; goto label_12296; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node4____CPAchecker_TMP_0 = p4_new; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4093 = check__tmp; main__c1 = __return_4093; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_12296_0 = main____CPAchecker_TMP_0; label_12296:; main____CPAchecker_TMP_0 = __tmp_12296_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_12312; } 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_12350; } else { if (((int)node3__m3) == ((int)id3)) { st3 = 1; mode3 = 0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_12384_0 = main____CPAchecker_TMP_0; label_12384:; main____CPAchecker_TMP_0 = __tmp_12384_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { return __return_main; } else { check__tmp = 0; __return_12399 = check__tmp; main__c1 = __return_12399; { _Bool __tmp_7; __tmp_7 = main__c1; _Bool assert__arg; assert__arg = __tmp_7; if (assert__arg == 0) { {reach_error();} return __return_main; } else { __tmp_6629_0 = main____CPAchecker_TMP_0; goto label_6629; } } } } } } else { return __return_main; } } } else { label_12350:; mode3 = 0; goto label_12367; } } } else { send3 = node3__m3; mode3 = 0; goto label_12367; } } else { mode3 = 0; label_12367:; __tmp_10468_0 = main____CPAchecker_TMP_0; goto label_10468; } } else { return __return_main; } } } else { label_12312:; mode2 = 0; goto label_12329; } } } else { send2 = node2__m2; mode2 = 0; goto label_12329; } } else { mode2 = 0; label_12329:; __tmp_7538_0 = main____CPAchecker_TMP_0; goto label_7538; } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { if (((int)send4) != ((int)id4)) { int node4____CPAchecker_TMP_1; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_1 = send4; goto label_1437; } else { return __return_main; } } else { node4____CPAchecker_TMP_1 = p4_new; label_1437:; p4_new = node4____CPAchecker_TMP_1; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4123 = check__tmp; main__c1 = __return_4123; { _Bool __tmp_8; __tmp_8 = main__c1; _Bool assert__arg; assert__arg = __tmp_8; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_12710; } 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_12748; } 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_12786; } else { if (((int)node3__m3) == ((int)id3)) { st3 = 1; mode3 = 0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_12820_0 = main____CPAchecker_TMP_0; label_12820:; main____CPAchecker_TMP_0 = __tmp_12820_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; goto label_12841; } else { if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) == 1) { check__tmp = 1; goto label_12841; } else { check__tmp = 0; label_12841:; goto label_12835; } } } else { check__tmp = 0; label_12835:; __return_12847 = check__tmp; main__c1 = __return_12847; __tmp_8258_0 = main____CPAchecker_TMP_0; goto label_8258; } } } } else { return __return_main; } } } else { label_12786:; mode3 = 0; goto label_12803; } } } else { send3 = node3__m3; mode3 = 0; goto label_12803; } } else { mode3 = 0; label_12803:; __tmp_10829_0 = main____CPAchecker_TMP_0; goto label_10829; } } else { return __return_main; } } } else { label_12748:; mode2 = 0; goto label_12765; } } } else { send2 = node2__m2; mode2 = 0; goto label_12765; } } else { mode2 = 0; label_12765:; __tmp_7899_0 = main____CPAchecker_TMP_0; goto label_7899; } } else { return __return_main; } } } else { send1 = node1__m1; label_12710:; mode1 = 0; goto label_12727; } } } else { send1 = node1__m1; mode1 = 0; goto label_12727; } } else { mode1 = 0; label_12727:; __tmp_12581_0 = main____CPAchecker_TMP_0; goto label_12581; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4113 = check__tmp; main__c1 = __return_4113; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_12581_0 = main____CPAchecker_TMP_0; label_12581:; main____CPAchecker_TMP_0 = __tmp_12581_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_12597; } 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_12635; } else { if (((int)node3__m3) == ((int)id3)) { st3 = 1; mode3 = 0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_12669_0 = main____CPAchecker_TMP_0; label_12669:; main____CPAchecker_TMP_0 = __tmp_12669_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { return __return_main; } else { check__tmp = 0; __return_12684 = check__tmp; main__c1 = __return_12684; { _Bool __tmp_10; __tmp_10 = main__c1; _Bool assert__arg; assert__arg = __tmp_10; if (assert__arg == 0) { {reach_error();} return __return_main; } else { return __return_main; } } } } } } else { return __return_main; } } } else { label_12635:; mode3 = 0; goto label_12652; } } } else { send3 = node3__m3; mode3 = 0; goto label_12652; } } else { mode3 = 0; label_12652:; __tmp_10699_0 = main____CPAchecker_TMP_0; goto label_10699; } } else { return __return_main; } } } else { label_12597:; mode2 = 0; goto label_12614; } } } else { send2 = node2__m2; mode2 = 0; goto label_12614; } } else { mode2 = 0; label_12614:; __tmp_7769_0 = main____CPAchecker_TMP_0; goto label_7769; } } 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_513; } else { return __return_main; } } else { node3____CPAchecker_TMP_1 = p3_new; label_513:; p3_new = node3____CPAchecker_TMP_1; mode3 = 1; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { return __return_main; } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4223 = check__tmp; main__c1 = __return_4223; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_13867; } 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_13905; } 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_13944; } } else { mode3 = 0; label_13944:; __tmp_12020_0 = main____CPAchecker_TMP_0; goto label_12020; } } else { return __return_main; } } } else { label_13905:; mode2 = 0; goto label_13922; } } } else { send2 = node2__m2; mode2 = 0; goto label_13922; } } else { mode2 = 0; label_13922:; __tmp_8799_0 = main____CPAchecker_TMP_0; goto label_8799; } } else { return __return_main; } } } else { send1 = node1__m1; label_13867:; mode1 = 0; goto label_13884; } } } else { send1 = node1__m1; mode1 = 0; goto label_13884; } } else { mode1 = 0; label_13884:; __tmp_13790_0 = main____CPAchecker_TMP_0; goto label_13790; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node4____CPAchecker_TMP_0 = p4_new; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4213 = check__tmp; main__c1 = __return_4213; { _Bool __tmp_12; __tmp_12 = main__c1; _Bool assert__arg; assert__arg = __tmp_12; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_13790_0 = main____CPAchecker_TMP_0; label_13790:; main____CPAchecker_TMP_0 = __tmp_13790_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_13806; } 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_13845; } } else { mode3 = 0; label_13845:; __tmp_11866_0 = main____CPAchecker_TMP_0; goto label_11866; } } else { return __return_main; } } } else { label_13806:; mode2 = 0; goto label_13823; } } } else { send2 = node2__m2; mode2 = 0; goto label_13823; } } else { mode2 = 0; label_13823:; __tmp_8726_0 = main____CPAchecker_TMP_0; goto label_8726; } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { if (((int)send4) != ((int)id4)) { int node4____CPAchecker_TMP_1; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_1 = send4; goto label_1569; } else { return __return_main; } } else { node4____CPAchecker_TMP_1 = p4_new; label_1569:; p4_new = node4____CPAchecker_TMP_1; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4243 = check__tmp; main__c1 = __return_4243; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_14038; } 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_14076; } 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_14115; } } else { mode3 = 0; label_14115:; __tmp_12262_0 = main____CPAchecker_TMP_0; goto label_12262; } } else { return __return_main; } } } else { label_14076:; mode2 = 0; goto label_14093; } } } else { send2 = node2__m2; mode2 = 0; goto label_14093; } } else { mode2 = 0; label_14093:; __tmp_8918_0 = main____CPAchecker_TMP_0; goto label_8918; } } else { return __return_main; } } } else { send1 = node1__m1; label_14038:; mode1 = 0; goto label_14055; } } } else { send1 = node1__m1; mode1 = 0; goto label_14055; } } else { mode1 = 0; label_14055:; __tmp_13961_0 = main____CPAchecker_TMP_0; goto label_13961; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4233 = check__tmp; main__c1 = __return_4233; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_13961_0 = main____CPAchecker_TMP_0; label_13961:; main____CPAchecker_TMP_0 = __tmp_13961_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_13977; } 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_14016; } } else { mode3 = 0; label_14016:; __tmp_12151_0 = main____CPAchecker_TMP_0; goto label_12151; } } else { return __return_main; } } } else { label_13977:; mode2 = 0; goto label_13994; } } } else { send2 = node2__m2; mode2 = 0; goto label_13994; } } else { mode2 = 0; label_13994:; __tmp_8845_0 = main____CPAchecker_TMP_0; goto label_8845; } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } } } } } else { mode3 = 1; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { return __return_main; } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4183 = check__tmp; main__c1 = __return_4183; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_13525; } 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_13563; } 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_13602; } } else { mode3 = 0; label_13602:; __tmp_11540_0 = main____CPAchecker_TMP_0; goto label_11540; } } else { return __return_main; } } } else { label_13563:; mode2 = 0; goto label_13580; } } } else { send2 = node2__m2; mode2 = 0; goto label_13580; } } else { mode2 = 0; label_13580:; __tmp_8561_0 = main____CPAchecker_TMP_0; goto label_8561; } } else { return __return_main; } } } else { send1 = node1__m1; label_13525:; mode1 = 0; goto label_13542; } } } else { send1 = node1__m1; mode1 = 0; goto label_13542; } } else { mode1 = 0; label_13542:; __tmp_13448_0 = main____CPAchecker_TMP_0; goto label_13448; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node4____CPAchecker_TMP_0 = p4_new; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4173 = check__tmp; main__c1 = __return_4173; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_13448_0 = main____CPAchecker_TMP_0; label_13448:; main____CPAchecker_TMP_0 = __tmp_13448_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_13464; } 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_13503; } } else { mode3 = 0; label_13503:; __tmp_11410_0 = main____CPAchecker_TMP_0; goto label_11410; } } else { return __return_main; } } } else { label_13464:; mode2 = 0; goto label_13481; } } } else { send2 = node2__m2; mode2 = 0; goto label_13481; } } else { mode2 = 0; label_13481:; __tmp_8488_0 = main____CPAchecker_TMP_0; goto label_8488; } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { if (((int)send4) != ((int)id4)) { int node4____CPAchecker_TMP_1; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_1 = send4; goto label_1525; } else { return __return_main; } } else { node4____CPAchecker_TMP_1 = p4_new; label_1525:; p4_new = node4____CPAchecker_TMP_1; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4203 = check__tmp; main__c1 = __return_4203; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_13696; } 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_13734; } 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_13773; } } else { mode3 = 0; label_13773:; __tmp_11768_0 = main____CPAchecker_TMP_0; goto label_11768; } } else { return __return_main; } } } else { label_13734:; mode2 = 0; goto label_13751; } } } else { send2 = node2__m2; mode2 = 0; goto label_13751; } } else { mode2 = 0; label_13751:; __tmp_8680_0 = main____CPAchecker_TMP_0; goto label_8680; } } else { return __return_main; } } } else { send1 = node1__m1; label_13696:; mode1 = 0; goto label_13713; } } } else { send1 = node1__m1; mode1 = 0; goto label_13713; } } else { mode1 = 0; label_13713:; __tmp_13619_0 = main____CPAchecker_TMP_0; goto label_13619; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4193 = check__tmp; main__c1 = __return_4193; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_13619_0 = main____CPAchecker_TMP_0; label_13619:; main____CPAchecker_TMP_0 = __tmp_13619_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_13635; } 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_13674; } } else { mode3 = 0; label_13674:; __tmp_11638_0 = main____CPAchecker_TMP_0; goto label_11638; } } else { return __return_main; } } } else { label_13635:; mode2 = 0; goto label_13652; } } } else { send2 = node2__m2; mode2 = 0; goto label_13652; } } else { mode2 = 0; label_13652:; __tmp_8607_0 = main____CPAchecker_TMP_0; goto label_8607; } } 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; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { return __return_main; } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3983 = check__tmp; main__c1 = __return_3983; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_11012; } 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_11050; } 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_11084_0 = main____CPAchecker_TMP_0; label_11084:; main____CPAchecker_TMP_0 = __tmp_11084_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { if (((int)node4__m4) > ((int)id4)) { send4 = node4__m4; goto label_11100; } else { if (((int)node4__m4) == ((int)id4)) { st4 = 1; mode4 = 0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; goto label_11143; } else { if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) == 1) { check__tmp = 1; goto label_11143; } else { check__tmp = 0; label_11143:; goto label_11137; } } } else { check__tmp = 0; label_11137:; __return_11149 = check__tmp; main__c1 = __return_11149; __tmp_8258_0 = main____CPAchecker_TMP_0; goto label_8258; } } } else { label_11100:; mode4 = 0; goto label_11117; } } } else { send4 = node4__m4; mode4 = 0; goto label_11117; } } else { mode4 = 0; label_11117:; __tmp_10610_0 = main____CPAchecker_TMP_0; goto label_10610; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_11050:; mode2 = 0; goto label_11067; } } } else { send2 = node2__m2; mode2 = 0; goto label_11067; } } else { mode2 = 0; label_11067:; __tmp_6555_0 = main____CPAchecker_TMP_0; goto label_6555; } } else { return __return_main; } } } else { send1 = node1__m1; label_11012:; mode1 = 0; goto label_11029; } } } else { send1 = node1__m1; mode1 = 0; goto label_11029; } } else { mode1 = 0; label_11029:; __tmp_10880_0 = main____CPAchecker_TMP_0; goto label_10880; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node4____CPAchecker_TMP_0 = p4_new; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3973 = check__tmp; main__c1 = __return_3973; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_10880_0 = main____CPAchecker_TMP_0; label_10880:; main____CPAchecker_TMP_0 = __tmp_10880_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_10896; } 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_10930_0 = main____CPAchecker_TMP_0; label_10930:; main____CPAchecker_TMP_0 = __tmp_10930_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { if (((int)node4__m4) > ((int)id4)) { send4 = node4__m4; goto label_10946; } else { if (((int)node4__m4) == ((int)id4)) { st4 = 1; mode4 = 0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { return __return_main; } else { check__tmp = 0; __return_10983 = check__tmp; main__c1 = __return_10983; { _Bool __tmp_21; __tmp_21 = main__c1; _Bool assert__arg; assert__arg = __tmp_21; if (assert__arg == 0) { {reach_error();} return __return_main; } else { __tmp_6629_0 = main____CPAchecker_TMP_0; goto label_6629; } } } } } else { label_10946:; mode4 = 0; goto label_10963; } } } else { send4 = node4__m4; mode4 = 0; goto label_10963; } } else { mode4 = 0; label_10963:; __tmp_10480_0 = main____CPAchecker_TMP_0; goto label_10480; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_10896:; mode2 = 0; goto label_10913; } } } else { send2 = node2__m2; mode2 = 0; goto label_10913; } } else { mode2 = 0; label_10913:; __tmp_6425_0 = main____CPAchecker_TMP_0; goto label_6425; } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { if (((int)send4) != ((int)id4)) { int node4____CPAchecker_TMP_1; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_1 = send4; goto label_1305; } else { return __return_main; } } else { node4____CPAchecker_TMP_1 = p4_new; label_1305:; p4_new = node4____CPAchecker_TMP_1; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4003 = check__tmp; main__c1 = __return_4003; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_11254; } 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_11292; } 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_11326_0 = main____CPAchecker_TMP_0; label_11326:; main____CPAchecker_TMP_0 = __tmp_11326_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { return __return_main; } else { send4 = node4__m4; mode4 = 0; goto label_11343; } } else { mode4 = 0; label_11343:; __tmp_10841_0 = main____CPAchecker_TMP_0; goto label_10841; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_11292:; mode2 = 0; goto label_11309; } } } else { send2 = node2__m2; mode2 = 0; goto label_11309; } } else { mode2 = 0; label_11309:; __tmp_6744_0 = main____CPAchecker_TMP_0; goto label_6744; } } else { return __return_main; } } } else { send1 = node1__m1; label_11254:; mode1 = 0; goto label_11271; } } } else { send1 = node1__m1; mode1 = 0; goto label_11271; } } else { mode1 = 0; label_11271:; __tmp_11165_0 = main____CPAchecker_TMP_0; goto label_11165; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3993 = check__tmp; main__c1 = __return_3993; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_11165_0 = main____CPAchecker_TMP_0; label_11165:; main____CPAchecker_TMP_0 = __tmp_11165_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_11181; } 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_11215_0 = main____CPAchecker_TMP_0; label_11215:; main____CPAchecker_TMP_0 = __tmp_11215_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { return __return_main; } else { send4 = node4__m4; mode4 = 0; goto label_11232; } } else { mode4 = 0; label_11232:; __tmp_10711_0 = main____CPAchecker_TMP_0; goto label_10711; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_11181:; mode2 = 0; goto label_11198; } } } else { send2 = node2__m2; mode2 = 0; goto label_11198; } } else { mode2 = 0; label_11198:; __tmp_6659_0 = main____CPAchecker_TMP_0; goto label_6659; } } 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 { node3____CPAchecker_TMP_0 = p3_new; p3_new = node3____CPAchecker_TMP_0; mode3 = 1; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { return __return_main; } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3943 = check__tmp; main__c1 = __return_3943; { _Bool __tmp_24; __tmp_24 = main__c1; _Bool assert__arg; assert__arg = __tmp_24; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_10526; } 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_10564; } 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_10598_0 = main____CPAchecker_TMP_0; label_10598:; main____CPAchecker_TMP_0 = __tmp_10598_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_10610_0 = main____CPAchecker_TMP_0; label_10610:; main____CPAchecker_TMP_0 = __tmp_10610_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { return __return_main; } else { check__tmp = 0; __return_10625 = check__tmp; main__c1 = __return_10625; { _Bool __tmp_25; __tmp_25 = main__c1; _Bool assert__arg; assert__arg = __tmp_25; if (assert__arg == 0) { {reach_error();} return __return_main; } else { __tmp_6629_0 = main____CPAchecker_TMP_0; goto label_6629; } } } } } } else { return __return_main; } } } } else { return __return_main; } } } else { label_10564:; mode2 = 0; goto label_10581; } } } else { send2 = node2__m2; mode2 = 0; goto label_10581; } } else { mode2 = 0; label_10581:; __tmp_6167_0 = main____CPAchecker_TMP_0; goto label_6167; } } else { return __return_main; } } } else { send1 = node1__m1; label_10526:; mode1 = 0; goto label_10543; } } } else { send1 = node1__m1; mode1 = 0; goto label_10543; } } else { mode1 = 0; label_10543:; __tmp_10418_0 = main____CPAchecker_TMP_0; goto label_10418; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node4____CPAchecker_TMP_0 = p4_new; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3933 = check__tmp; main__c1 = __return_3933; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_10418_0 = main____CPAchecker_TMP_0; label_10418:; main____CPAchecker_TMP_0 = __tmp_10418_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_10434; } 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_10468_0 = main____CPAchecker_TMP_0; label_10468:; main____CPAchecker_TMP_0 = __tmp_10468_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_10480_0 = main____CPAchecker_TMP_0; label_10480:; main____CPAchecker_TMP_0 = __tmp_10480_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_10497 = check__tmp; main__c1 = __return_10497; { _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; __tmp_6217_0 = main____CPAchecker_TMP_0; goto label_6217; } } } else { return __return_main; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { label_10434:; mode2 = 0; goto label_10451; } } } else { send2 = node2__m2; mode2 = 0; goto label_10451; } } else { mode2 = 0; label_10451:; __tmp_6063_0 = main____CPAchecker_TMP_0; goto label_6063; } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { if (((int)send4) != ((int)id4)) { int node4____CPAchecker_TMP_1; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_1 = send4; goto label_1261; } else { return __return_main; } } else { node4____CPAchecker_TMP_1 = p4_new; label_1261:; p4_new = node4____CPAchecker_TMP_1; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3963 = check__tmp; main__c1 = __return_3963; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_10757; } 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_10795; } 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_10829_0 = main____CPAchecker_TMP_0; label_10829:; main____CPAchecker_TMP_0 = __tmp_10829_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_10841_0 = main____CPAchecker_TMP_0; label_10841:; main____CPAchecker_TMP_0 = __tmp_10841_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { return __return_main; } else { check__tmp = 0; __return_10856 = check__tmp; main__c1 = __return_10856; { _Bool __tmp_29; __tmp_29 = main__c1; _Bool assert__arg; assert__arg = __tmp_29; if (assert__arg == 0) { {reach_error();} return __return_main; } else { __tmp_6629_0 = main____CPAchecker_TMP_0; goto label_6629; } } } } } } else { return __return_main; } } } } else { return __return_main; } } } else { label_10795:; mode2 = 0; goto label_10812; } } } else { send2 = node2__m2; mode2 = 0; goto label_10812; } } else { mode2 = 0; label_10812:; __tmp_6348_0 = main____CPAchecker_TMP_0; goto label_6348; } } else { return __return_main; } } } else { send1 = node1__m1; label_10757:; mode1 = 0; goto label_10774; } } } else { send1 = node1__m1; mode1 = 0; goto label_10774; } } else { mode1 = 0; label_10774:; __tmp_10649_0 = main____CPAchecker_TMP_0; goto label_10649; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3953 = check__tmp; main__c1 = __return_3953; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_10649_0 = main____CPAchecker_TMP_0; label_10649:; main____CPAchecker_TMP_0 = __tmp_10649_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_10665; } 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_10699_0 = main____CPAchecker_TMP_0; label_10699:; main____CPAchecker_TMP_0 = __tmp_10699_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_10711_0 = main____CPAchecker_TMP_0; label_10711:; main____CPAchecker_TMP_0 = __tmp_10711_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_10728 = check__tmp; main__c1 = __return_10728; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_18430; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; goto label_18430; } else { send1 = node1__m1; label_18430:; goto label_18422; } } } else { send1 = node1__m1; goto label_18422; } } else { label_18422:; mode1 = 0; label_18439:; __tmp_17297_0 = main____CPAchecker_TMP_0; goto label_17297; } } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; goto label_18447; } else { goto label_18444; } } else { label_18444:; node1____CPAchecker_TMP_0 = p1_new; label_18447:; p1_new = node1____CPAchecker_TMP_0; label_18450:; mode1 = 1; goto label_18439; } } 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_18459; } else { goto label_18456; } } else { label_18456:; node1____CPAchecker_TMP_1 = p1_new; label_18459:; p1_new = node1____CPAchecker_TMP_1; goto label_18450; } } else { goto label_18450; } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { label_10665:; mode2 = 0; goto label_10682; } } } else { send2 = node2__m2; mode2 = 0; goto label_10682; } } else { mode2 = 0; label_10682:; __tmp_6244_0 = main____CPAchecker_TMP_0; goto label_6244; } } 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_469; } else { return __return_main; } } else { node3____CPAchecker_TMP_1 = p3_new; label_469:; p3_new = node3____CPAchecker_TMP_1; mode3 = 1; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { return __return_main; } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4063 = check__tmp; main__c1 = __return_4063; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_11948; } 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_11986; } 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_12020_0 = main____CPAchecker_TMP_0; label_12020:; main____CPAchecker_TMP_0 = __tmp_12020_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { if (((int)node4__m4) > ((int)id4)) { send4 = node4__m4; goto label_12036; } else { if (((int)node4__m4) == ((int)id4)) { st4 = 1; mode4 = 0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; goto label_12079; } else { if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) == 1) { check__tmp = 1; goto label_12079; } else { check__tmp = 0; label_12079:; goto label_12073; } } } else { check__tmp = 0; label_12073:; __return_12085 = check__tmp; main__c1 = __return_12085; __tmp_8258_0 = main____CPAchecker_TMP_0; goto label_8258; } } } else { label_12036:; mode4 = 0; goto label_12053; } } } else { send4 = node4__m4; mode4 = 0; goto label_12053; } } else { mode4 = 0; label_12053:; __tmp_11552_0 = main____CPAchecker_TMP_0; goto label_11552; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_11986:; mode2 = 0; goto label_12003; } } } else { send2 = node2__m2; mode2 = 0; goto label_12003; } } else { mode2 = 0; label_12003:; __tmp_7294_0 = main____CPAchecker_TMP_0; goto label_7294; } } else { return __return_main; } } } else { send1 = node1__m1; label_11948:; mode1 = 0; goto label_11965; } } } else { send1 = node1__m1; mode1 = 0; goto label_11965; } } else { mode1 = 0; label_11965:; __tmp_11816_0 = main____CPAchecker_TMP_0; goto label_11816; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node4____CPAchecker_TMP_0 = p4_new; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4053 = check__tmp; main__c1 = __return_4053; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_11816_0 = main____CPAchecker_TMP_0; label_11816:; main____CPAchecker_TMP_0 = __tmp_11816_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_11832; } 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_11866_0 = main____CPAchecker_TMP_0; label_11866:; main____CPAchecker_TMP_0 = __tmp_11866_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { if (((int)node4__m4) > ((int)id4)) { send4 = node4__m4; goto label_11882; } else { if (((int)node4__m4) == ((int)id4)) { st4 = 1; mode4 = 0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { return __return_main; } else { check__tmp = 0; __return_11919 = check__tmp; main__c1 = __return_11919; { _Bool __tmp_34; __tmp_34 = main__c1; _Bool assert__arg; assert__arg = __tmp_34; if (assert__arg == 0) { {reach_error();} return __return_main; } else { __tmp_6629_0 = main____CPAchecker_TMP_0; goto label_6629; } } } } } else { label_11882:; mode4 = 0; goto label_11899; } } } else { send4 = node4__m4; mode4 = 0; goto label_11899; } } else { mode4 = 0; label_11899:; __tmp_11422_0 = main____CPAchecker_TMP_0; goto label_11422; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_11832:; mode2 = 0; goto label_11849; } } } else { send2 = node2__m2; mode2 = 0; goto label_11849; } } else { mode2 = 0; label_11849:; __tmp_7164_0 = main____CPAchecker_TMP_0; goto label_7164; } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { if (((int)send4) != ((int)id4)) { int node4____CPAchecker_TMP_1; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_1 = send4; goto label_1393; } else { return __return_main; } } else { node4____CPAchecker_TMP_1 = p4_new; label_1393:; p4_new = node4____CPAchecker_TMP_1; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4083 = check__tmp; main__c1 = __return_4083; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_12190; } 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_12228; } 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_12262_0 = main____CPAchecker_TMP_0; label_12262:; main____CPAchecker_TMP_0 = __tmp_12262_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { return __return_main; } else { send4 = node4__m4; mode4 = 0; goto label_12279; } } else { mode4 = 0; label_12279:; __tmp_11780_0 = main____CPAchecker_TMP_0; goto label_11780; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_12228:; mode2 = 0; goto label_12245; } } } else { send2 = node2__m2; mode2 = 0; goto label_12245; } } else { mode2 = 0; label_12245:; __tmp_7480_0 = main____CPAchecker_TMP_0; goto label_7480; } } else { return __return_main; } } } else { send1 = node1__m1; label_12190:; mode1 = 0; goto label_12207; } } } else { send1 = node1__m1; mode1 = 0; goto label_12207; } } else { mode1 = 0; label_12207:; __tmp_12101_0 = main____CPAchecker_TMP_0; goto label_12101; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4073 = check__tmp; main__c1 = __return_4073; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_12101_0 = main____CPAchecker_TMP_0; label_12101:; main____CPAchecker_TMP_0 = __tmp_12101_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_12117; } 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_12151_0 = main____CPAchecker_TMP_0; label_12151:; main____CPAchecker_TMP_0 = __tmp_12151_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { return __return_main; } else { send4 = node4__m4; mode4 = 0; goto label_12168; } } else { mode4 = 0; label_12168:; __tmp_11650_0 = main____CPAchecker_TMP_0; goto label_11650; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_12117:; mode2 = 0; goto label_12134; } } } else { send2 = node2__m2; mode2 = 0; goto label_12134; } } else { mode2 = 0; label_12134:; __tmp_7395_0 = main____CPAchecker_TMP_0; goto label_7395; } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } } } } } else { mode3 = 1; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { return __return_main; } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4023 = check__tmp; main__c1 = __return_4023; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_11468; } 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_11506; } 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_11540_0 = main____CPAchecker_TMP_0; label_11540:; main____CPAchecker_TMP_0 = __tmp_11540_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_11552_0 = main____CPAchecker_TMP_0; label_11552:; main____CPAchecker_TMP_0 = __tmp_11552_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { return __return_main; } else { check__tmp = 0; __return_11567 = check__tmp; main__c1 = __return_11567; { _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 { return __return_main; } } } } else { return __return_main; } } } else { label_11506:; mode2 = 0; goto label_11523; } } } else { send2 = node2__m2; mode2 = 0; goto label_11523; } } else { mode2 = 0; label_11523:; __tmp_6906_0 = main____CPAchecker_TMP_0; goto label_6906; } } else { return __return_main; } } } else { send1 = node1__m1; label_11468:; mode1 = 0; goto label_11485; } } } else { send1 = node1__m1; mode1 = 0; goto label_11485; } } else { mode1 = 0; label_11485:; __tmp_11360_0 = main____CPAchecker_TMP_0; goto label_11360; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node4____CPAchecker_TMP_0 = p4_new; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4013 = check__tmp; main__c1 = __return_4013; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_11360_0 = main____CPAchecker_TMP_0; label_11360:; main____CPAchecker_TMP_0 = __tmp_11360_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_11376; } 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_11410_0 = main____CPAchecker_TMP_0; label_11410:; main____CPAchecker_TMP_0 = __tmp_11410_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_11422_0 = main____CPAchecker_TMP_0; label_11422:; main____CPAchecker_TMP_0 = __tmp_11422_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_11439 = check__tmp; main__c1 = __return_11439; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_18487; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; goto label_18487; } else { send1 = node1__m1; label_18487:; goto label_18479; } } } else { send1 = node1__m1; goto label_18479; } } else { label_18479:; mode1 = 0; label_18496:; __tmp_17297_0 = main____CPAchecker_TMP_0; goto label_17297; } } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; goto label_18504; } else { goto label_18501; } } else { label_18501:; node1____CPAchecker_TMP_0 = p1_new; label_18504:; p1_new = node1____CPAchecker_TMP_0; label_18507:; mode1 = 1; goto label_18496; } } 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_18516; } else { goto label_18513; } } else { label_18513:; node1____CPAchecker_TMP_1 = p1_new; label_18516:; p1_new = node1____CPAchecker_TMP_1; goto label_18507; } } else { goto label_18507; } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { label_11376:; mode2 = 0; goto label_11393; } } } else { send2 = node2__m2; mode2 = 0; goto label_11393; } } else { mode2 = 0; label_11393:; __tmp_6802_0 = main____CPAchecker_TMP_0; goto label_6802; } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { if (((int)send4) != ((int)id4)) { int node4____CPAchecker_TMP_1; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_1 = send4; goto label_1349; } else { return __return_main; } } else { node4____CPAchecker_TMP_1 = p4_new; label_1349:; p4_new = node4____CPAchecker_TMP_1; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4043 = check__tmp; main__c1 = __return_4043; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_11696; } 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_11734; } 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_11768_0 = main____CPAchecker_TMP_0; label_11768:; main____CPAchecker_TMP_0 = __tmp_11768_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_11780_0 = main____CPAchecker_TMP_0; label_11780:; main____CPAchecker_TMP_0 = __tmp_11780_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { return __return_main; } else { check__tmp = 0; __return_11795 = check__tmp; main__c1 = __return_11795; { _Bool __tmp_42; __tmp_42 = main__c1; _Bool assert__arg; assert__arg = __tmp_42; if (assert__arg == 0) { {reach_error();} return __return_main; } else { return __return_main; } } } } } } else { return __return_main; } } } } else { return __return_main; } } } else { label_11734:; mode2 = 0; goto label_11751; } } } else { send2 = node2__m2; mode2 = 0; goto label_11751; } } else { mode2 = 0; label_11751:; __tmp_7087_0 = main____CPAchecker_TMP_0; goto label_7087; } } else { return __return_main; } } } else { send1 = node1__m1; label_11696:; mode1 = 0; goto label_11713; } } } else { send1 = node1__m1; mode1 = 0; goto label_11713; } } else { mode1 = 0; label_11713:; __tmp_11588_0 = main____CPAchecker_TMP_0; goto label_11588; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4033 = check__tmp; main__c1 = __return_4033; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_11588_0 = main____CPAchecker_TMP_0; label_11588:; main____CPAchecker_TMP_0 = __tmp_11588_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_11604; } 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_11638_0 = main____CPAchecker_TMP_0; label_11638:; main____CPAchecker_TMP_0 = __tmp_11638_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_11650_0 = main____CPAchecker_TMP_0; label_11650:; main____CPAchecker_TMP_0 = __tmp_11650_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_11667 = check__tmp; main__c1 = __return_11667; { _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 < 8) { { 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_18538; } else { goto label_18535; } } else { label_18535:; node1____CPAchecker_TMP_0 = p1_new; label_18538:; p1_new = node1____CPAchecker_TMP_0; label_18541:; mode1 = 1; __tmp_17297_0 = main____CPAchecker_TMP_0; goto label_17297; } } 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_18550; } else { goto label_18547; } } else { label_18547:; node1____CPAchecker_TMP_1 = p1_new; label_18550:; p1_new = node1____CPAchecker_TMP_1; goto label_18541; } } else { goto label_18541; } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { label_11604:; mode2 = 0; goto label_11621; } } } else { send2 = node2__m2; mode2 = 0; goto label_11621; } } else { mode2 = 0; label_11621:; __tmp_6983_0 = main____CPAchecker_TMP_0; goto label_6983; } } 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; p2_new = node2____CPAchecker_TMP_1; goto label_245; } else { return __return_main; } } else { node2____CPAchecker_TMP_1 = p2_new; p2_new = node2____CPAchecker_TMP_1; goto label_248; } } else { label_248:; 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; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { return __return_main; } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4303 = check__tmp; main__c1 = __return_4303; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_14361; } 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_14400; } } else { mode2 = 0; label_14400:; __tmp_9456_0 = main____CPAchecker_TMP_0; goto label_9456; } } else { return __return_main; } } } else { send1 = node1__m1; label_14361:; mode1 = 0; goto label_14378; } } } else { send1 = node1__m1; mode1 = 0; goto label_14378; } } else { mode1 = 0; label_14378:; __tmp_14322_0 = main____CPAchecker_TMP_0; goto label_14322; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node4____CPAchecker_TMP_0 = p4_new; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4293 = check__tmp; main__c1 = __return_4293; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_14322_0 = main____CPAchecker_TMP_0; label_14322:; main____CPAchecker_TMP_0 = __tmp_14322_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_14339; } } else { mode2 = 0; label_14339:; __tmp_9326_0 = main____CPAchecker_TMP_0; goto label_9326; } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { if (((int)send4) != ((int)id4)) { int node4____CPAchecker_TMP_1; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_1 = send4; goto label_1657; } else { return __return_main; } } else { node4____CPAchecker_TMP_1 = p4_new; label_1657:; p4_new = node4____CPAchecker_TMP_1; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4323 = check__tmp; main__c1 = __return_4323; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_14456; } 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_14495; } } else { mode2 = 0; label_14495:; __tmp_9639_0 = main____CPAchecker_TMP_0; goto label_9639; } } else { return __return_main; } } } else { send1 = node1__m1; label_14456:; mode1 = 0; goto label_14473; } } } else { send1 = node1__m1; mode1 = 0; goto label_14473; } } else { mode1 = 0; label_14473:; __tmp_14417_0 = main____CPAchecker_TMP_0; goto label_14417; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4313 = check__tmp; main__c1 = __return_4313; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_14417_0 = main____CPAchecker_TMP_0; label_14417:; main____CPAchecker_TMP_0 = __tmp_14417_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_14434; } } else { mode2 = 0; label_14434:; __tmp_9554_0 = main____CPAchecker_TMP_0; goto label_9554; } } 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 { node3____CPAchecker_TMP_0 = p3_new; p3_new = node3____CPAchecker_TMP_0; mode3 = 1; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { return __return_main; } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4263 = check__tmp; main__c1 = __return_4263; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_14171; } 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_14210; } } else { mode2 = 0; label_14210:; __tmp_9068_0 = main____CPAchecker_TMP_0; goto label_9068; } } else { return __return_main; } } } else { send1 = node1__m1; label_14171:; mode1 = 0; goto label_14188; } } } else { send1 = node1__m1; mode1 = 0; goto label_14188; } } else { mode1 = 0; label_14188:; __tmp_14132_0 = main____CPAchecker_TMP_0; goto label_14132; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node4____CPAchecker_TMP_0 = p4_new; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4253 = check__tmp; main__c1 = __return_4253; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_14132_0 = main____CPAchecker_TMP_0; label_14132:; main____CPAchecker_TMP_0 = __tmp_14132_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_14149; } } else { mode2 = 0; label_14149:; __tmp_8964_0 = main____CPAchecker_TMP_0; goto label_8964; } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { if (((int)send4) != ((int)id4)) { int node4____CPAchecker_TMP_1; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_1 = send4; goto label_1613; } else { return __return_main; } } else { node4____CPAchecker_TMP_1 = p4_new; label_1613:; p4_new = node4____CPAchecker_TMP_1; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4283 = check__tmp; main__c1 = __return_4283; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_14266; } 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_14305; } } else { mode2 = 0; label_14305:; __tmp_9249_0 = main____CPAchecker_TMP_0; goto label_9249; } } else { return __return_main; } } } else { send1 = node1__m1; label_14266:; mode1 = 0; goto label_14283; } } } else { send1 = node1__m1; mode1 = 0; goto label_14283; } } else { mode1 = 0; label_14283:; __tmp_14227_0 = main____CPAchecker_TMP_0; goto label_14227; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4273 = check__tmp; main__c1 = __return_4273; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_14227_0 = main____CPAchecker_TMP_0; label_14227:; main____CPAchecker_TMP_0 = __tmp_14227_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_14244; } } else { mode2 = 0; label_14244:; __tmp_9145_0 = main____CPAchecker_TMP_0; goto label_9145; } } 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_557; } else { return __return_main; } } else { node3____CPAchecker_TMP_1 = p3_new; label_557:; p3_new = node3____CPAchecker_TMP_1; mode3 = 1; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { return __return_main; } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4383 = check__tmp; main__c1 = __return_4383; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_14741; } 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_14780; } } else { mode2 = 0; label_14780:; __tmp_10189_0 = main____CPAchecker_TMP_0; goto label_10189; } } else { return __return_main; } } } else { send1 = node1__m1; label_14741:; mode1 = 0; goto label_14758; } } } else { send1 = node1__m1; mode1 = 0; goto label_14758; } } else { mode1 = 0; label_14758:; __tmp_14702_0 = main____CPAchecker_TMP_0; goto label_14702; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node4____CPAchecker_TMP_0 = p4_new; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4373 = check__tmp; main__c1 = __return_4373; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_14702_0 = main____CPAchecker_TMP_0; label_14702:; main____CPAchecker_TMP_0 = __tmp_14702_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_14719; } } else { mode2 = 0; label_14719:; __tmp_10059_0 = main____CPAchecker_TMP_0; goto label_10059; } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { if (((int)send4) != ((int)id4)) { int node4____CPAchecker_TMP_1; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_1 = send4; goto label_1745; } else { return __return_main; } } else { node4____CPAchecker_TMP_1 = p4_new; label_1745:; p4_new = node4____CPAchecker_TMP_1; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4403 = check__tmp; main__c1 = __return_4403; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_14836; } 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_14875; } } else { mode2 = 0; label_14875:; __tmp_10372_0 = main____CPAchecker_TMP_0; goto label_10372; } } else { return __return_main; } } } else { send1 = node1__m1; label_14836:; mode1 = 0; goto label_14853; } } } else { send1 = node1__m1; mode1 = 0; goto label_14853; } } else { mode1 = 0; label_14853:; __tmp_14797_0 = main____CPAchecker_TMP_0; goto label_14797; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4393 = check__tmp; main__c1 = __return_4393; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_14797_0 = main____CPAchecker_TMP_0; label_14797:; main____CPAchecker_TMP_0 = __tmp_14797_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_14814; } } else { mode2 = 0; label_14814:; __tmp_10287_0 = main____CPAchecker_TMP_0; goto label_10287; } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } } } } } else { mode3 = 1; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { return __return_main; } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4343 = check__tmp; main__c1 = __return_4343; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_14551; } 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_14590; } } else { mode2 = 0; label_14590:; __tmp_9801_0 = main____CPAchecker_TMP_0; goto label_9801; } } else { return __return_main; } } } else { send1 = node1__m1; label_14551:; mode1 = 0; goto label_14568; } } } else { send1 = node1__m1; mode1 = 0; goto label_14568; } } else { mode1 = 0; label_14568:; __tmp_14512_0 = main____CPAchecker_TMP_0; goto label_14512; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node4____CPAchecker_TMP_0 = p4_new; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4333 = check__tmp; main__c1 = __return_4333; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_14512_0 = main____CPAchecker_TMP_0; label_14512:; main____CPAchecker_TMP_0 = __tmp_14512_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_14529; } } else { mode2 = 0; label_14529:; __tmp_9697_0 = main____CPAchecker_TMP_0; goto label_9697; } } else { return __return_main; } } } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { if (((int)send4) != ((int)id4)) { int node4____CPAchecker_TMP_1; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_1 = send4; goto label_1701; } else { return __return_main; } } else { node4____CPAchecker_TMP_1 = p4_new; label_1701:; p4_new = node4____CPAchecker_TMP_1; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4363 = check__tmp; main__c1 = __return_4363; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_14646; } 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_14685; } } else { mode2 = 0; label_14685:; __tmp_9982_0 = main____CPAchecker_TMP_0; goto label_9982; } } else { return __return_main; } } } else { send1 = node1__m1; label_14646:; mode1 = 0; goto label_14663; } } } else { send1 = node1__m1; mode1 = 0; goto label_14663; } } else { mode1 = 0; label_14663:; __tmp_14607_0 = main____CPAchecker_TMP_0; goto label_14607; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4353 = check__tmp; main__c1 = __return_4353; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_14607_0 = main____CPAchecker_TMP_0; label_14607:; main____CPAchecker_TMP_0 = __tmp_14607_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_14624; } } else { mode2 = 0; label_14624:; __tmp_9878_0 = main____CPAchecker_TMP_0; goto label_9878; } } 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; label_203:; 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; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { return __return_main; } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3663 = check__tmp; main__c1 = __return_3663; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_8120; } 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_8154_0 = main____CPAchecker_TMP_0; label_8154:; main____CPAchecker_TMP_0 = __tmp_8154_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_8170; } else { if (((int)node3__m3) == ((int)id3)) { st3 = 1; mode3 = 0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { if (((int)node4__m4) > ((int)id4)) { send4 = node4__m4; goto label_8208; } else { if (((int)node4__m4) == ((int)id4)) { st4 = 1; mode4 = 0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; goto label_8251; } else { if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) == 1) { check__tmp = 1; goto label_8251; } else { check__tmp = 0; label_8251:; goto label_8245; } } } else { check__tmp = 0; label_8245:; __return_8257 = check__tmp; main__c1 = __return_8257; __tmp_8258_0 = main____CPAchecker_TMP_0; label_8258:; main____CPAchecker_TMP_0 = __tmp_8258_0; { _Bool __tmp_62; __tmp_62 = main__c1; _Bool assert__arg; assert__arg = __tmp_62; if (assert__arg == 0) { {reach_error();} return __return_main; } else { __tmp_6629_0 = main____CPAchecker_TMP_0; goto label_6629; } } } } } else { label_8208:; mode4 = 0; goto label_8225; } } } else { send4 = node4__m4; mode4 = 0; goto label_8225; } } else { mode4 = 0; label_8225:; __tmp_7718_0 = main____CPAchecker_TMP_0; goto label_7718; } } else { return __return_main; } } } else { label_8170:; mode3 = 0; goto label_8187; } } } else { send3 = node3__m3; mode3 = 0; goto label_8187; } } else { mode3 = 0; label_8187:; __tmp_6567_0 = main____CPAchecker_TMP_0; goto label_6567; } } else { return __return_main; } } } } else { return __return_main; } } } else { send1 = node1__m1; label_8120:; mode1 = 0; goto label_8137; } } } else { send1 = node1__m1; mode1 = 0; goto label_8137; } } else { mode1 = 0; label_8137:; __tmp_7988_0 = main____CPAchecker_TMP_0; goto label_7988; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node4____CPAchecker_TMP_0 = p4_new; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3653 = check__tmp; main__c1 = __return_3653; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_7988_0 = main____CPAchecker_TMP_0; label_7988:; main____CPAchecker_TMP_0 = __tmp_7988_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_8000_0 = main____CPAchecker_TMP_0; label_8000:; main____CPAchecker_TMP_0 = __tmp_8000_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_8016; } else { if (((int)node3__m3) == ((int)id3)) { st3 = 1; mode3 = 0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { if (((int)node4__m4) > ((int)id4)) { send4 = node4__m4; goto label_8054; } else { if (((int)node4__m4) == ((int)id4)) { st4 = 1; mode4 = 0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { return __return_main; } else { check__tmp = 0; __return_8091 = check__tmp; main__c1 = __return_8091; { _Bool __tmp_64; __tmp_64 = main__c1; _Bool assert__arg; assert__arg = __tmp_64; if (assert__arg == 0) { {reach_error();} return __return_main; } else { __tmp_6629_0 = main____CPAchecker_TMP_0; goto label_6629; } } } } } else { label_8054:; mode4 = 0; goto label_8071; } } } else { send4 = node4__m4; mode4 = 0; goto label_8071; } } else { mode4 = 0; label_8071:; __tmp_7588_0 = main____CPAchecker_TMP_0; goto label_7588; } } else { return __return_main; } } } else { label_8016:; mode3 = 0; goto label_8033; } } } else { send3 = node3__m3; mode3 = 0; goto label_8033; } } else { mode3 = 0; label_8033:; __tmp_6437_0 = main____CPAchecker_TMP_0; goto label_6437; } } 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)send4) != ((int)id4)) { int node4____CPAchecker_TMP_1; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_1 = send4; goto label_953; } else { return __return_main; } } else { node4____CPAchecker_TMP_1 = p4_new; label_953:; p4_new = node4____CPAchecker_TMP_1; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3683 = check__tmp; main__c1 = __return_3683; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_8370; } 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_8404_0 = main____CPAchecker_TMP_0; label_8404:; main____CPAchecker_TMP_0 = __tmp_8404_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_8420; } else { if (((int)node3__m3) == ((int)id3)) { st3 = 1; mode3 = 0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { return __return_main; } else { send4 = node4__m4; mode4 = 0; goto label_8459; } } else { mode4 = 0; label_8459:; __tmp_7949_0 = main____CPAchecker_TMP_0; goto label_7949; } } else { return __return_main; } } } else { label_8420:; mode3 = 0; goto label_8437; } } } else { send3 = node3__m3; mode3 = 0; goto label_8437; } } else { mode3 = 0; label_8437:; __tmp_6756_0 = main____CPAchecker_TMP_0; goto label_6756; } } else { return __return_main; } } } } else { return __return_main; } } } else { send1 = node1__m1; label_8370:; mode1 = 0; goto label_8387; } } } else { send1 = node1__m1; mode1 = 0; goto label_8387; } } else { mode1 = 0; label_8387:; __tmp_8281_0 = main____CPAchecker_TMP_0; goto label_8281; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3673 = check__tmp; main__c1 = __return_3673; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_8281_0 = main____CPAchecker_TMP_0; label_8281:; main____CPAchecker_TMP_0 = __tmp_8281_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_8293_0 = main____CPAchecker_TMP_0; label_8293:; main____CPAchecker_TMP_0 = __tmp_8293_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_8309; } else { if (((int)node3__m3) == ((int)id3)) { st3 = 1; mode3 = 0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { return __return_main; } else { send4 = node4__m4; mode4 = 0; goto label_8348; } } else { mode4 = 0; label_8348:; __tmp_7819_0 = main____CPAchecker_TMP_0; goto label_7819; } } else { return __return_main; } } } else { label_8309:; mode3 = 0; goto label_8326; } } } else { send3 = node3__m3; mode3 = 0; goto label_8326; } } else { mode3 = 0; label_8326:; __tmp_6671_0 = main____CPAchecker_TMP_0; goto label_6671; } } 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 { node3____CPAchecker_TMP_0 = p3_new; p3_new = node3____CPAchecker_TMP_0; mode3 = 1; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { return __return_main; } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3623 = check__tmp; main__c1 = __return_3623; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_7634; } 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_7668_0 = main____CPAchecker_TMP_0; label_7668:; main____CPAchecker_TMP_0 = __tmp_7668_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_7684; } else { if (((int)node3__m3) == ((int)id3)) { st3 = 1; mode3 = 0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_7718_0 = main____CPAchecker_TMP_0; label_7718:; main____CPAchecker_TMP_0 = __tmp_7718_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { return __return_main; } else { check__tmp = 0; __return_7733 = check__tmp; main__c1 = __return_7733; { _Bool __tmp_68; __tmp_68 = main__c1; _Bool assert__arg; assert__arg = __tmp_68; if (assert__arg == 0) { {reach_error();} return __return_main; } else { __tmp_6629_0 = main____CPAchecker_TMP_0; goto label_6629; } } } } } } else { return __return_main; } } } else { label_7684:; mode3 = 0; goto label_7701; } } } else { send3 = node3__m3; mode3 = 0; goto label_7701; } } else { mode3 = 0; label_7701:; __tmp_6179_0 = main____CPAchecker_TMP_0; goto label_6179; } } else { return __return_main; } } } } else { return __return_main; } } } else { send1 = node1__m1; label_7634:; mode1 = 0; goto label_7651; } } } else { send1 = node1__m1; mode1 = 0; goto label_7651; } } else { mode1 = 0; label_7651:; __tmp_7526_0 = main____CPAchecker_TMP_0; goto label_7526; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node4____CPAchecker_TMP_0 = p4_new; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3613 = check__tmp; main__c1 = __return_3613; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_7526_0 = main____CPAchecker_TMP_0; label_7526:; main____CPAchecker_TMP_0 = __tmp_7526_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_7538_0 = main____CPAchecker_TMP_0; label_7538:; main____CPAchecker_TMP_0 = __tmp_7538_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_7554; } else { if (((int)node3__m3) == ((int)id3)) { st3 = 1; mode3 = 0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_7588_0 = main____CPAchecker_TMP_0; label_7588:; main____CPAchecker_TMP_0 = __tmp_7588_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_7605 = check__tmp; main__c1 = __return_7605; { _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; __tmp_6217_0 = main____CPAchecker_TMP_0; goto label_6217; } } } else { return __return_main; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_7554:; mode3 = 0; goto label_7571; } } } else { send3 = node3__m3; mode3 = 0; goto label_7571; } } else { mode3 = 0; label_7571:; __tmp_6075_0 = main____CPAchecker_TMP_0; goto label_6075; } } 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)send4) != ((int)id4)) { int node4____CPAchecker_TMP_1; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_1 = send4; goto label_909; } else { return __return_main; } } else { node4____CPAchecker_TMP_1 = p4_new; label_909:; p4_new = node4____CPAchecker_TMP_1; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3643 = check__tmp; main__c1 = __return_3643; { _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 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_7865; } 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_7899_0 = main____CPAchecker_TMP_0; label_7899:; main____CPAchecker_TMP_0 = __tmp_7899_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_7915; } else { if (((int)node3__m3) == ((int)id3)) { st3 = 1; mode3 = 0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_7949_0 = main____CPAchecker_TMP_0; label_7949:; main____CPAchecker_TMP_0 = __tmp_7949_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { return __return_main; } else { check__tmp = 0; __return_7964 = check__tmp; main__c1 = __return_7964; { _Bool __tmp_72; __tmp_72 = main__c1; _Bool assert__arg; assert__arg = __tmp_72; if (assert__arg == 0) { {reach_error();} return __return_main; } else { __tmp_6629_0 = main____CPAchecker_TMP_0; goto label_6629; } } } } } } else { return __return_main; } } } else { label_7915:; mode3 = 0; goto label_7932; } } } else { send3 = node3__m3; mode3 = 0; goto label_7932; } } else { mode3 = 0; label_7932:; __tmp_6360_0 = main____CPAchecker_TMP_0; goto label_6360; } } else { return __return_main; } } } } else { return __return_main; } } } else { send1 = node1__m1; label_7865:; mode1 = 0; goto label_7882; } } } else { send1 = node1__m1; mode1 = 0; goto label_7882; } } else { mode1 = 0; label_7882:; __tmp_7757_0 = main____CPAchecker_TMP_0; goto label_7757; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3633 = check__tmp; main__c1 = __return_3633; { _Bool __tmp_73; __tmp_73 = main__c1; _Bool assert__arg; assert__arg = __tmp_73; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_7757_0 = main____CPAchecker_TMP_0; label_7757:; main____CPAchecker_TMP_0 = __tmp_7757_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_7769_0 = main____CPAchecker_TMP_0; label_7769:; main____CPAchecker_TMP_0 = __tmp_7769_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_7785; } else { if (((int)node3__m3) == ((int)id3)) { st3 = 1; mode3 = 0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_7819_0 = main____CPAchecker_TMP_0; label_7819:; main____CPAchecker_TMP_0 = __tmp_7819_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_7836 = check__tmp; main__c1 = __return_7836; { _Bool __tmp_74; __tmp_74 = main__c1; _Bool assert__arg; assert__arg = __tmp_74; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_17794; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; goto label_17794; } else { send1 = node1__m1; label_17794:; goto label_17786; } } } else { send1 = node1__m1; goto label_17786; } } else { label_17786:; mode1 = 0; label_17803:; __tmp_17297_0 = main____CPAchecker_TMP_0; goto label_17297; } } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; goto label_17811; } else { goto label_17808; } } else { label_17808:; node1____CPAchecker_TMP_0 = p1_new; label_17811:; p1_new = node1____CPAchecker_TMP_0; label_17814:; mode1 = 1; goto label_17803; } } 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_17823; } else { goto label_17820; } } else { label_17820:; node1____CPAchecker_TMP_1 = p1_new; label_17823:; p1_new = node1____CPAchecker_TMP_1; goto label_17814; } } else { goto label_17814; } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_7785:; mode3 = 0; goto label_7802; } } } else { send3 = node3__m3; mode3 = 0; goto label_7802; } } else { mode3 = 0; label_7802:; __tmp_6256_0 = main____CPAchecker_TMP_0; goto label_6256; } } 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_381; } else { return __return_main; } } else { node3____CPAchecker_TMP_1 = p3_new; label_381:; p3_new = node3____CPAchecker_TMP_1; mode3 = 1; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { return __return_main; } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3743 = check__tmp; main__c1 = __return_3743; { _Bool __tmp_75; __tmp_75 = main__c1; _Bool assert__arg; assert__arg = __tmp_75; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_8765; } 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_8799_0 = main____CPAchecker_TMP_0; label_8799:; main____CPAchecker_TMP_0 = __tmp_8799_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_8816; } } else { mode3 = 0; label_8816:; __tmp_7306_0 = main____CPAchecker_TMP_0; goto label_7306; } } else { return __return_main; } } } } else { return __return_main; } } } else { send1 = node1__m1; label_8765:; mode1 = 0; goto label_8782; } } } else { send1 = node1__m1; mode1 = 0; goto label_8782; } } else { mode1 = 0; label_8782:; __tmp_8714_0 = main____CPAchecker_TMP_0; goto label_8714; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node4____CPAchecker_TMP_0 = p4_new; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3733 = check__tmp; main__c1 = __return_3733; { _Bool __tmp_76; __tmp_76 = main__c1; _Bool assert__arg; assert__arg = __tmp_76; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_8714_0 = main____CPAchecker_TMP_0; label_8714:; main____CPAchecker_TMP_0 = __tmp_8714_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_8726_0 = main____CPAchecker_TMP_0; label_8726:; main____CPAchecker_TMP_0 = __tmp_8726_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_8743; } } else { mode3 = 0; label_8743:; __tmp_7176_0 = main____CPAchecker_TMP_0; goto label_7176; } } 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)send4) != ((int)id4)) { int node4____CPAchecker_TMP_1; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_1 = send4; goto label_1041; } else { return __return_main; } } else { node4____CPAchecker_TMP_1 = p4_new; label_1041:; p4_new = node4____CPAchecker_TMP_1; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3763 = check__tmp; main__c1 = __return_3763; { _Bool __tmp_77; __tmp_77 = main__c1; _Bool assert__arg; assert__arg = __tmp_77; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_8884; } 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_8918_0 = main____CPAchecker_TMP_0; label_8918:; main____CPAchecker_TMP_0 = __tmp_8918_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_8935; } } else { mode3 = 0; label_8935:; __tmp_7492_0 = main____CPAchecker_TMP_0; goto label_7492; } } else { return __return_main; } } } } else { return __return_main; } } } else { send1 = node1__m1; label_8884:; mode1 = 0; goto label_8901; } } } else { send1 = node1__m1; mode1 = 0; goto label_8901; } } else { mode1 = 0; label_8901:; __tmp_8833_0 = main____CPAchecker_TMP_0; goto label_8833; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3753 = check__tmp; main__c1 = __return_3753; { _Bool __tmp_78; __tmp_78 = main__c1; _Bool assert__arg; assert__arg = __tmp_78; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_8833_0 = main____CPAchecker_TMP_0; label_8833:; main____CPAchecker_TMP_0 = __tmp_8833_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_8845_0 = main____CPAchecker_TMP_0; label_8845:; main____CPAchecker_TMP_0 = __tmp_8845_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_8862; } } else { mode3 = 0; label_8862:; __tmp_7407_0 = main____CPAchecker_TMP_0; goto label_7407; } } 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 { mode3 = 1; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { return __return_main; } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3703 = check__tmp; main__c1 = __return_3703; { _Bool __tmp_79; __tmp_79 = main__c1; _Bool assert__arg; assert__arg = __tmp_79; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_8527; } 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_8561_0 = main____CPAchecker_TMP_0; label_8561:; main____CPAchecker_TMP_0 = __tmp_8561_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_8578; } } else { mode3 = 0; label_8578:; __tmp_6918_0 = main____CPAchecker_TMP_0; goto label_6918; } } else { return __return_main; } } } } else { return __return_main; } } } else { send1 = node1__m1; label_8527:; mode1 = 0; goto label_8544; } } } else { send1 = node1__m1; mode1 = 0; goto label_8544; } } else { mode1 = 0; label_8544:; __tmp_8476_0 = main____CPAchecker_TMP_0; goto label_8476; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node4____CPAchecker_TMP_0 = p4_new; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3693 = check__tmp; main__c1 = __return_3693; { _Bool __tmp_80; __tmp_80 = main__c1; _Bool assert__arg; assert__arg = __tmp_80; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_8476_0 = main____CPAchecker_TMP_0; label_8476:; main____CPAchecker_TMP_0 = __tmp_8476_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_8488_0 = main____CPAchecker_TMP_0; label_8488:; main____CPAchecker_TMP_0 = __tmp_8488_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_8505; } } else { mode3 = 0; label_8505:; __tmp_6814_0 = main____CPAchecker_TMP_0; goto label_6814; } } 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)send4) != ((int)id4)) { int node4____CPAchecker_TMP_1; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_1 = send4; goto label_997; } else { return __return_main; } } else { node4____CPAchecker_TMP_1 = p4_new; label_997:; p4_new = node4____CPAchecker_TMP_1; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3723 = check__tmp; main__c1 = __return_3723; { _Bool __tmp_81; __tmp_81 = main__c1; _Bool assert__arg; assert__arg = __tmp_81; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_8646; } 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_8680_0 = main____CPAchecker_TMP_0; label_8680:; main____CPAchecker_TMP_0 = __tmp_8680_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_8697; } } else { mode3 = 0; label_8697:; __tmp_7099_0 = main____CPAchecker_TMP_0; goto label_7099; } } else { return __return_main; } } } } else { return __return_main; } } } else { send1 = node1__m1; label_8646:; mode1 = 0; goto label_8663; } } } else { send1 = node1__m1; mode1 = 0; goto label_8663; } } else { mode1 = 0; label_8663:; __tmp_8595_0 = main____CPAchecker_TMP_0; goto label_8595; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3713 = check__tmp; main__c1 = __return_3713; { _Bool __tmp_82; __tmp_82 = main__c1; _Bool assert__arg; assert__arg = __tmp_82; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_8595_0 = main____CPAchecker_TMP_0; label_8595:; main____CPAchecker_TMP_0 = __tmp_8595_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_8607_0 = main____CPAchecker_TMP_0; label_8607:; main____CPAchecker_TMP_0 = __tmp_8607_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_8624; } } else { mode3 = 0; label_8624:; __tmp_6995_0 = main____CPAchecker_TMP_0; goto label_6995; } } 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; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { return __return_main; } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3503 = check__tmp; main__c1 = __return_3503; { _Bool __tmp_83; __tmp_83 = main__c1; _Bool assert__arg; assert__arg = __tmp_83; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_6521; } 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_6555_0 = main____CPAchecker_TMP_0; label_6555:; main____CPAchecker_TMP_0 = __tmp_6555_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_6567_0 = main____CPAchecker_TMP_0; label_6567:; main____CPAchecker_TMP_0 = __tmp_6567_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { if (((int)node4__m4) > ((int)id4)) { send4 = node4__m4; goto label_6583; } else { if (((int)node4__m4) == ((int)id4)) { st4 = 1; mode4 = 0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { return __return_main; } else { check__tmp = 0; __return_6620 = check__tmp; main__c1 = __return_6620; { _Bool __tmp_84; __tmp_84 = main__c1; _Bool assert__arg; assert__arg = __tmp_84; if (assert__arg == 0) { {reach_error();} return __return_main; } else { __tmp_6629_0 = main____CPAchecker_TMP_0; label_6629:; main____CPAchecker_TMP_0 = __tmp_6629_0; int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; __tmp_6217_0 = main____CPAchecker_TMP_0; goto label_6217; } } } } } else { label_6583:; mode4 = 0; goto label_6600; } } } else { send4 = node4__m4; mode4 = 0; goto label_6600; } } else { mode4 = 0; label_6600:; __tmp_6191_0 = main____CPAchecker_TMP_0; goto label_6191; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { send1 = node1__m1; label_6521:; mode1 = 0; goto label_6538; } } } else { send1 = node1__m1; mode1 = 0; goto label_6538; } } else { mode1 = 0; label_6538:; __tmp_6413_0 = main____CPAchecker_TMP_0; goto label_6413; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node4____CPAchecker_TMP_0 = p4_new; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3493 = check__tmp; main__c1 = __return_3493; { _Bool __tmp_85; __tmp_85 = main__c1; _Bool assert__arg; assert__arg = __tmp_85; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_6413_0 = main____CPAchecker_TMP_0; label_6413:; main____CPAchecker_TMP_0 = __tmp_6413_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_6425_0 = main____CPAchecker_TMP_0; label_6425:; main____CPAchecker_TMP_0 = __tmp_6425_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_6437_0 = main____CPAchecker_TMP_0; label_6437:; main____CPAchecker_TMP_0 = __tmp_6437_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { if (((int)node4__m4) > ((int)id4)) { send4 = node4__m4; goto label_6453; } else { if (((int)node4__m4) == ((int)id4)) { st4 = 1; mode4 = 0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_6492 = check__tmp; main__c1 = __return_6492; { _Bool __tmp_86; __tmp_86 = main__c1; _Bool assert__arg; assert__arg = __tmp_86; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; __tmp_6217_0 = main____CPAchecker_TMP_0; goto label_6217; } } } else { return __return_main; } } else { return __return_main; } } } else { label_6453:; mode4 = 0; goto label_6470; } } } else { send4 = node4__m4; mode4 = 0; goto label_6470; } } else { mode4 = 0; label_6470:; __tmp_6087_0 = main____CPAchecker_TMP_0; goto label_6087; } } 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)send4) != ((int)id4)) { int node4____CPAchecker_TMP_1; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_1 = send4; goto label_777; } else { return __return_main; } } else { node4____CPAchecker_TMP_1 = p4_new; label_777:; p4_new = node4____CPAchecker_TMP_1; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3523 = check__tmp; main__c1 = __return_3523; { _Bool __tmp_87; __tmp_87 = main__c1; _Bool assert__arg; assert__arg = __tmp_87; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_6710; } 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_6744_0 = main____CPAchecker_TMP_0; label_6744:; main____CPAchecker_TMP_0 = __tmp_6744_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_6756_0 = main____CPAchecker_TMP_0; label_6756:; main____CPAchecker_TMP_0 = __tmp_6756_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { return __return_main; } else { send4 = node4__m4; mode4 = 0; goto label_6773; } } else { mode4 = 0; label_6773:; __tmp_6372_0 = main____CPAchecker_TMP_0; goto label_6372; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { send1 = node1__m1; label_6710:; mode1 = 0; goto label_6727; } } } else { send1 = node1__m1; mode1 = 0; goto label_6727; } } else { mode1 = 0; label_6727:; __tmp_6647_0 = main____CPAchecker_TMP_0; goto label_6647; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3513 = check__tmp; main__c1 = __return_3513; { _Bool __tmp_88; __tmp_88 = main__c1; _Bool assert__arg; assert__arg = __tmp_88; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_6647_0 = main____CPAchecker_TMP_0; label_6647:; main____CPAchecker_TMP_0 = __tmp_6647_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_6659_0 = main____CPAchecker_TMP_0; label_6659:; main____CPAchecker_TMP_0 = __tmp_6659_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_6671_0 = main____CPAchecker_TMP_0; label_6671:; main____CPAchecker_TMP_0 = __tmp_6671_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { return __return_main; } else { send4 = node4__m4; mode4 = 0; goto label_6688; } } else { mode4 = 0; label_6688:; __tmp_6268_0 = main____CPAchecker_TMP_0; goto label_6268; } } 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 { node3____CPAchecker_TMP_0 = p3_new; p3_new = node3____CPAchecker_TMP_0; mode3 = 1; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { return __return_main; } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3463 = check__tmp; main__c1 = __return_3463; { _Bool __tmp_89; __tmp_89 = main__c1; _Bool assert__arg; assert__arg = __tmp_89; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_6133; } 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_6167_0 = main____CPAchecker_TMP_0; label_6167:; main____CPAchecker_TMP_0 = __tmp_6167_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_6179_0 = main____CPAchecker_TMP_0; label_6179:; main____CPAchecker_TMP_0 = __tmp_6179_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_6191_0 = main____CPAchecker_TMP_0; label_6191:; main____CPAchecker_TMP_0 = __tmp_6191_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_6208 = check__tmp; main__c1 = __return_6208; { _Bool __tmp_90; __tmp_90 = main__c1; _Bool assert__arg; assert__arg = __tmp_90; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; __tmp_6217_0 = main____CPAchecker_TMP_0; label_6217:; main____CPAchecker_TMP_0 = __tmp_6217_0; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_17479; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; goto label_17479; } else { send1 = node1__m1; label_17479:; goto label_17471; } } } else { send1 = node1__m1; goto label_17471; } } else { label_17471:; mode1 = 0; label_17488:; __tmp_17297_0 = main____CPAchecker_TMP_0; goto label_17297; } } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; goto label_17496; } else { goto label_17493; } } else { label_17493:; node1____CPAchecker_TMP_0 = p1_new; label_17496:; p1_new = node1____CPAchecker_TMP_0; label_17499:; mode1 = 1; goto label_17488; } } 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_17508; } else { goto label_17505; } } else { label_17505:; node1____CPAchecker_TMP_1 = p1_new; label_17508:; p1_new = node1____CPAchecker_TMP_1; goto label_17499; } } else { goto label_17499; } } } } } else { __return_17460 = 0; return __return_17460; } } } } else { return __return_main; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { send1 = node1__m1; label_6133:; mode1 = 0; goto label_6150; } } } else { send1 = node1__m1; mode1 = 0; goto label_6150; } } else { mode1 = 0; label_6150:; __tmp_6051_0 = main____CPAchecker_TMP_0; goto label_6051; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node4____CPAchecker_TMP_0 = p4_new; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3453 = check__tmp; main__c1 = __return_3453; { _Bool __tmp_91; __tmp_91 = main__c1; _Bool assert__arg; assert__arg = __tmp_91; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_6051_0 = main____CPAchecker_TMP_0; label_6051:; main____CPAchecker_TMP_0 = __tmp_6051_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_6063_0 = main____CPAchecker_TMP_0; label_6063:; main____CPAchecker_TMP_0 = __tmp_6063_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_6075_0 = main____CPAchecker_TMP_0; label_6075:; main____CPAchecker_TMP_0 = __tmp_6075_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_6087_0 = main____CPAchecker_TMP_0; label_6087:; main____CPAchecker_TMP_0 = __tmp_6087_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_6104 = check__tmp; main__c1 = __return_6104; { _Bool __tmp_92; __tmp_92 = main__c1; _Bool assert__arg; assert__arg = __tmp_92; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { 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_17278; } else { goto label_17275; } } else { label_17275:; node1____CPAchecker_TMP_0 = p1_new; label_17278:; p1_new = node1____CPAchecker_TMP_0; label_17281:; mode1 = 1; __tmp_17297_0 = main____CPAchecker_TMP_0; label_17297:; main____CPAchecker_TMP_0 = __tmp_17297_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_17314; } else { if (((int)node2__m2) == ((int)id2)) { st2 = 1; goto label_17314; } else { label_17314:; goto label_17307; } } } else { send2 = node2__m2; goto label_17307; } } else { label_17307:; mode2 = 0; label_17323:; __tmp_17350_0 = main____CPAchecker_TMP_0; label_17350:; main____CPAchecker_TMP_0 = __tmp_17350_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_17367; } else { if (((int)node3__m3) == ((int)id3)) { st3 = 1; goto label_17367; } else { label_17367:; goto label_17360; } } } else { send3 = node3__m3; goto label_17360; } } else { label_17360:; mode3 = 0; label_17376:; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { if (((int)node4__m4) > ((int)id4)) { send4 = node4__m4; goto label_17420; } else { if (((int)node4__m4) == ((int)id4)) { st4 = 1; goto label_17420; } else { label_17420:; goto label_17413; } } } else { send4 = node4__m4; goto label_17413; } } else { label_17413:; mode4 = 0; label_17429:; __tmp_13157_0 = main____CPAchecker_TMP_0; goto label_13157; } } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; goto label_17437; } else { goto label_17434; } } else { label_17434:; node4____CPAchecker_TMP_0 = p4_new; label_17437:; p4_new = node4____CPAchecker_TMP_0; label_17440:; mode4 = 1; goto label_17429; } } else { if (((int)send4) != ((int)id4)) { int node4____CPAchecker_TMP_1; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_1 = send4; goto label_17449; } else { goto label_17446; } } else { label_17446:; node4____CPAchecker_TMP_1 = p4_new; label_17449:; p4_new = node4____CPAchecker_TMP_1; goto label_17440; } } else { goto label_17440; } } } } } } else { if (!(alive3 == 0)) { int node3____CPAchecker_TMP_0; if (send3 != nomsg) { if (p3_new == nomsg) { node3____CPAchecker_TMP_0 = send3; goto label_17384; } else { goto label_17381; } } else { label_17381:; node3____CPAchecker_TMP_0 = p3_new; label_17384:; p3_new = node3____CPAchecker_TMP_0; label_17387:; mode3 = 1; goto label_17376; } } 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_17396; } else { goto label_17393; } } else { label_17393:; node3____CPAchecker_TMP_1 = p3_new; label_17396:; p3_new = node3____CPAchecker_TMP_1; goto label_17387; } } else { goto label_17387; } } } } } } else { if (!(alive2 == 0)) { int node2____CPAchecker_TMP_0; if (send2 != nomsg) { if (p2_new == nomsg) { node2____CPAchecker_TMP_0 = send2; goto label_17331; } else { goto label_17328; } } else { label_17328:; node2____CPAchecker_TMP_0 = p2_new; label_17331:; p2_new = node2____CPAchecker_TMP_0; label_17334:; mode2 = 1; goto label_17323; } } 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_17343; } else { goto label_17340; } } else { label_17340:; node2____CPAchecker_TMP_1 = p2_new; label_17343:; p2_new = node2____CPAchecker_TMP_1; goto label_17334; } } else { goto label_17334; } } } } } } 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_17290; } else { goto label_17287; } } else { label_17287:; node1____CPAchecker_TMP_1 = p1_new; label_17290:; p1_new = node1____CPAchecker_TMP_1; goto label_17281; } } else { goto label_17281; } } } } } 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 { if (((int)send4) != ((int)id4)) { int node4____CPAchecker_TMP_1; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_1 = send4; goto label_733; } else { return __return_main; } } else { node4____CPAchecker_TMP_1 = p4_new; label_733:; p4_new = node4____CPAchecker_TMP_1; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3483 = check__tmp; main__c1 = __return_3483; { _Bool __tmp_93; __tmp_93 = main__c1; _Bool assert__arg; assert__arg = __tmp_93; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_6314; } 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_6348_0 = main____CPAchecker_TMP_0; label_6348:; main____CPAchecker_TMP_0 = __tmp_6348_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_6360_0 = main____CPAchecker_TMP_0; label_6360:; main____CPAchecker_TMP_0 = __tmp_6360_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_6372_0 = main____CPAchecker_TMP_0; label_6372:; main____CPAchecker_TMP_0 = __tmp_6372_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_6389 = check__tmp; main__c1 = __return_6389; { _Bool __tmp_94; __tmp_94 = main__c1; _Bool assert__arg; assert__arg = __tmp_94; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; __tmp_6217_0 = main____CPAchecker_TMP_0; goto label_6217; } } } else { return __return_main; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { send1 = node1__m1; label_6314:; mode1 = 0; goto label_6331; } } } else { send1 = node1__m1; mode1 = 0; goto label_6331; } } else { mode1 = 0; label_6331:; __tmp_6232_0 = main____CPAchecker_TMP_0; goto label_6232; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3473 = check__tmp; main__c1 = __return_3473; { _Bool __tmp_95; __tmp_95 = main__c1; _Bool assert__arg; assert__arg = __tmp_95; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_6232_0 = main____CPAchecker_TMP_0; label_6232:; main____CPAchecker_TMP_0 = __tmp_6232_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_6244_0 = main____CPAchecker_TMP_0; label_6244:; main____CPAchecker_TMP_0 = __tmp_6244_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_6256_0 = main____CPAchecker_TMP_0; label_6256:; main____CPAchecker_TMP_0 = __tmp_6256_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_6268_0 = main____CPAchecker_TMP_0; label_6268:; main____CPAchecker_TMP_0 = __tmp_6268_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_6285 = check__tmp; main__c1 = __return_6285; { _Bool __tmp_96; __tmp_96 = main__c1; _Bool assert__arg; assert__arg = __tmp_96; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { 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_17531; } else { return __return_main; } } else { node1____CPAchecker_TMP_0 = p1_new; p1_new = node1____CPAchecker_TMP_0; label_17531:; label_17533:; mode1 = 1; label_17547:; __tmp_17297_0 = main____CPAchecker_TMP_0; goto label_17297; } } 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_17541; } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; label_17541:; p1_new = node1____CPAchecker_TMP_1; goto label_17533; } } else { mode1 = 1; goto label_17547; } } } } } 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 { if (((int)send3) != ((int)id3)) { int node3____CPAchecker_TMP_1; if (send3 != nomsg) { if (p3_new == nomsg) { node3____CPAchecker_TMP_1 = send3; goto label_337; } else { return __return_main; } } else { node3____CPAchecker_TMP_1 = p3_new; label_337:; p3_new = node3____CPAchecker_TMP_1; mode3 = 1; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { return __return_main; } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3583 = check__tmp; main__c1 = __return_3583; { _Bool __tmp_97; __tmp_97 = main__c1; _Bool assert__arg; assert__arg = __tmp_97; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_7260; } 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_7294_0 = main____CPAchecker_TMP_0; label_7294:; main____CPAchecker_TMP_0 = __tmp_7294_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_7306_0 = main____CPAchecker_TMP_0; label_7306:; main____CPAchecker_TMP_0 = __tmp_7306_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { if (((int)node4__m4) > ((int)id4)) { send4 = node4__m4; goto label_7322; } else { if (((int)node4__m4) == ((int)id4)) { st4 = 1; mode4 = 0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { return __return_main; } else { check__tmp = 0; __return_7359 = check__tmp; main__c1 = __return_7359; { _Bool __tmp_98; __tmp_98 = main__c1; _Bool assert__arg; assert__arg = __tmp_98; if (assert__arg == 0) { {reach_error();} return __return_main; } else { __tmp_6629_0 = main____CPAchecker_TMP_0; goto label_6629; } } } } } else { label_7322:; mode4 = 0; goto label_7339; } } } else { send4 = node4__m4; mode4 = 0; goto label_7339; } } else { mode4 = 0; label_7339:; __tmp_6930_0 = main____CPAchecker_TMP_0; goto label_6930; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { send1 = node1__m1; label_7260:; mode1 = 0; goto label_7277; } } } else { send1 = node1__m1; mode1 = 0; goto label_7277; } } else { mode1 = 0; label_7277:; __tmp_7152_0 = main____CPAchecker_TMP_0; goto label_7152; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node4____CPAchecker_TMP_0 = p4_new; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3573 = check__tmp; main__c1 = __return_3573; { _Bool __tmp_99; __tmp_99 = main__c1; _Bool assert__arg; assert__arg = __tmp_99; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_7152_0 = main____CPAchecker_TMP_0; label_7152:; main____CPAchecker_TMP_0 = __tmp_7152_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_7164_0 = main____CPAchecker_TMP_0; label_7164:; main____CPAchecker_TMP_0 = __tmp_7164_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_7176_0 = main____CPAchecker_TMP_0; label_7176:; main____CPAchecker_TMP_0 = __tmp_7176_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { if (((int)node4__m4) > ((int)id4)) { send4 = node4__m4; goto label_7192; } else { if (((int)node4__m4) == ((int)id4)) { st4 = 1; mode4 = 0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_7231 = check__tmp; main__c1 = __return_7231; { _Bool __tmp_100; __tmp_100 = main__c1; _Bool assert__arg; assert__arg = __tmp_100; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; __tmp_6217_0 = main____CPAchecker_TMP_0; goto label_6217; } } } else { return __return_main; } } else { return __return_main; } } } else { label_7192:; mode4 = 0; goto label_7209; } } } else { send4 = node4__m4; mode4 = 0; goto label_7209; } } else { mode4 = 0; label_7209:; __tmp_6826_0 = main____CPAchecker_TMP_0; goto label_6826; } } 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)send4) != ((int)id4)) { int node4____CPAchecker_TMP_1; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_1 = send4; goto label_865; } else { return __return_main; } } else { node4____CPAchecker_TMP_1 = p4_new; label_865:; p4_new = node4____CPAchecker_TMP_1; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3603 = check__tmp; main__c1 = __return_3603; { _Bool __tmp_101; __tmp_101 = main__c1; _Bool assert__arg; assert__arg = __tmp_101; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_7446; } 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_7480_0 = main____CPAchecker_TMP_0; label_7480:; main____CPAchecker_TMP_0 = __tmp_7480_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_7492_0 = main____CPAchecker_TMP_0; label_7492:; main____CPAchecker_TMP_0 = __tmp_7492_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { return __return_main; } else { send4 = node4__m4; mode4 = 0; goto label_7509; } } else { mode4 = 0; label_7509:; __tmp_7111_0 = main____CPAchecker_TMP_0; goto label_7111; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { send1 = node1__m1; label_7446:; mode1 = 0; goto label_7463; } } } else { send1 = node1__m1; mode1 = 0; goto label_7463; } } else { mode1 = 0; label_7463:; __tmp_7383_0 = main____CPAchecker_TMP_0; goto label_7383; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3593 = check__tmp; main__c1 = __return_3593; { _Bool __tmp_102; __tmp_102 = main__c1; _Bool assert__arg; assert__arg = __tmp_102; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_7383_0 = main____CPAchecker_TMP_0; label_7383:; main____CPAchecker_TMP_0 = __tmp_7383_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_7395_0 = main____CPAchecker_TMP_0; label_7395:; main____CPAchecker_TMP_0 = __tmp_7395_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_7407_0 = main____CPAchecker_TMP_0; label_7407:; main____CPAchecker_TMP_0 = __tmp_7407_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { return __return_main; } else { send4 = node4__m4; mode4 = 0; goto label_7424; } } else { mode4 = 0; label_7424:; __tmp_7007_0 = main____CPAchecker_TMP_0; goto label_7007; } } 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 { mode3 = 1; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { return __return_main; } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3543 = check__tmp; main__c1 = __return_3543; { _Bool __tmp_103; __tmp_103 = main__c1; _Bool assert__arg; assert__arg = __tmp_103; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_6872; } 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_6906_0 = main____CPAchecker_TMP_0; label_6906:; main____CPAchecker_TMP_0 = __tmp_6906_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_6918_0 = main____CPAchecker_TMP_0; label_6918:; main____CPAchecker_TMP_0 = __tmp_6918_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_6930_0 = main____CPAchecker_TMP_0; label_6930:; main____CPAchecker_TMP_0 = __tmp_6930_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_6947 = check__tmp; main__c1 = __return_6947; { _Bool __tmp_104; __tmp_104 = main__c1; _Bool assert__arg; assert__arg = __tmp_104; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_17606; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; goto label_17606; } else { send1 = node1__m1; label_17606:; goto label_17598; } } } else { send1 = node1__m1; goto label_17598; } } else { label_17598:; mode1 = 0; label_17615:; __tmp_17297_0 = main____CPAchecker_TMP_0; goto label_17297; } } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; goto label_17623; } else { goto label_17620; } } else { label_17620:; node1____CPAchecker_TMP_0 = p1_new; label_17623:; p1_new = node1____CPAchecker_TMP_0; label_17626:; mode1 = 1; goto label_17615; } } 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_17635; } else { goto label_17632; } } else { label_17632:; node1____CPAchecker_TMP_1 = p1_new; label_17635:; p1_new = node1____CPAchecker_TMP_1; goto label_17626; } } else { goto label_17626; } } } } } 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 { send1 = node1__m1; label_6872:; mode1 = 0; goto label_6889; } } } else { send1 = node1__m1; mode1 = 0; goto label_6889; } } else { mode1 = 0; label_6889:; __tmp_6790_0 = main____CPAchecker_TMP_0; goto label_6790; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node4____CPAchecker_TMP_0 = p4_new; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3533 = check__tmp; main__c1 = __return_3533; { _Bool __tmp_105; __tmp_105 = main__c1; _Bool assert__arg; assert__arg = __tmp_105; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_6790_0 = main____CPAchecker_TMP_0; label_6790:; main____CPAchecker_TMP_0 = __tmp_6790_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_6802_0 = main____CPAchecker_TMP_0; label_6802:; main____CPAchecker_TMP_0 = __tmp_6802_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_6814_0 = main____CPAchecker_TMP_0; label_6814:; main____CPAchecker_TMP_0 = __tmp_6814_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_6826_0 = main____CPAchecker_TMP_0; label_6826:; main____CPAchecker_TMP_0 = __tmp_6826_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_6843 = check__tmp; main__c1 = __return_6843; { _Bool __tmp_106; __tmp_106 = main__c1; _Bool assert__arg; assert__arg = __tmp_106; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { 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_17566; } else { return __return_main; } } else { node1____CPAchecker_TMP_0 = p1_new; p1_new = node1____CPAchecker_TMP_0; label_17566:; label_17568:; mode1 = 1; label_17582:; __tmp_17297_0 = main____CPAchecker_TMP_0; goto label_17297; } } 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_17576; } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; label_17576:; p1_new = node1____CPAchecker_TMP_1; goto label_17568; } } else { mode1 = 1; goto label_17582; } } } } } 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 { if (((int)send4) != ((int)id4)) { int node4____CPAchecker_TMP_1; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_1 = send4; goto label_821; } else { return __return_main; } } else { node4____CPAchecker_TMP_1 = p4_new; label_821:; p4_new = node4____CPAchecker_TMP_1; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3563 = check__tmp; main__c1 = __return_3563; { _Bool __tmp_107; __tmp_107 = main__c1; _Bool assert__arg; assert__arg = __tmp_107; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_7053; } 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_7087_0 = main____CPAchecker_TMP_0; label_7087:; main____CPAchecker_TMP_0 = __tmp_7087_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_7099_0 = main____CPAchecker_TMP_0; label_7099:; main____CPAchecker_TMP_0 = __tmp_7099_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_7111_0 = main____CPAchecker_TMP_0; label_7111:; main____CPAchecker_TMP_0 = __tmp_7111_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_7128 = check__tmp; main__c1 = __return_7128; { _Bool __tmp_108; __tmp_108 = main__c1; _Bool assert__arg; assert__arg = __tmp_108; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_17737; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; goto label_17737; } else { send1 = node1__m1; label_17737:; goto label_17729; } } } else { send1 = node1__m1; goto label_17729; } } else { label_17729:; mode1 = 0; label_17746:; __tmp_17297_0 = main____CPAchecker_TMP_0; goto label_17297; } } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; goto label_17754; } else { goto label_17751; } } else { label_17751:; node1____CPAchecker_TMP_0 = p1_new; label_17754:; p1_new = node1____CPAchecker_TMP_0; label_17757:; mode1 = 1; goto label_17746; } } 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_17766; } else { goto label_17763; } } else { label_17763:; node1____CPAchecker_TMP_1 = p1_new; label_17766:; p1_new = node1____CPAchecker_TMP_1; goto label_17757; } } else { goto label_17757; } } } } } 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 { send1 = node1__m1; label_7053:; mode1 = 0; goto label_7070; } } } else { send1 = node1__m1; mode1 = 0; goto label_7070; } } else { mode1 = 0; label_7070:; __tmp_6971_0 = main____CPAchecker_TMP_0; goto label_6971; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3553 = check__tmp; main__c1 = __return_3553; { _Bool __tmp_109; __tmp_109 = main__c1; _Bool assert__arg; assert__arg = __tmp_109; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_6971_0 = main____CPAchecker_TMP_0; label_6971:; main____CPAchecker_TMP_0 = __tmp_6971_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_6983_0 = main____CPAchecker_TMP_0; label_6983:; main____CPAchecker_TMP_0 = __tmp_6983_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_6995_0 = main____CPAchecker_TMP_0; label_6995:; main____CPAchecker_TMP_0 = __tmp_6995_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_7007_0 = main____CPAchecker_TMP_0; label_7007:; main____CPAchecker_TMP_0 = __tmp_7007_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_7024 = check__tmp; main__c1 = __return_7024; { _Bool __tmp_110; __tmp_110 = main__c1; _Bool assert__arg; assert__arg = __tmp_110; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { 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_17661:; mode1 = 1; goto label_17678; } else { return __return_main; } } else { node1____CPAchecker_TMP_0 = p1_new; p1_new = node1____CPAchecker_TMP_0; mode1 = 1; label_17678:; __tmp_17297_0 = main____CPAchecker_TMP_0; goto label_17297; } } 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_17661; } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; p1_new = node1____CPAchecker_TMP_1; goto label_17664; } } else { label_17664:; mode1 = 1; __tmp_17684_0 = main____CPAchecker_TMP_0; label_17684:; main____CPAchecker_TMP_0 = __tmp_17684_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_17697; } else { goto label_17694; } } else { label_17694:; node2____CPAchecker_TMP_0 = p2_new; label_17697:; p2_new = node2____CPAchecker_TMP_0; label_17700:; mode2 = 1; __tmp_17350_0 = main____CPAchecker_TMP_0; goto label_17350; } } 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_17709; } else { goto label_17706; } } else { label_17706:; node2____CPAchecker_TMP_1 = p2_new; label_17709:; p2_new = node2____CPAchecker_TMP_1; goto label_17700; } } else { goto label_17700; } } } } } } } } } 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 { if (((int)send2) != ((int)id2)) { int node2____CPAchecker_TMP_1; if (send2 != nomsg) { if (p2_new == nomsg) { node2____CPAchecker_TMP_1 = send2; p2_new = node2____CPAchecker_TMP_1; goto label_203; } else { return __return_main; } } else { node2____CPAchecker_TMP_1 = p2_new; p2_new = node2____CPAchecker_TMP_1; goto label_206; } } else { label_206:; 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; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { return __return_main; } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3823 = check__tmp; main__c1 = __return_3823; { _Bool __tmp_111; __tmp_111 = main__c1; _Bool assert__arg; assert__arg = __tmp_111; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_9422; } 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_9456_0 = main____CPAchecker_TMP_0; label_9456:; main____CPAchecker_TMP_0 = __tmp_9456_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; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { if (((int)node4__m4) > ((int)id4)) { send4 = node4__m4; goto label_9484; } else { if (((int)node4__m4) == ((int)id4)) { st4 = 1; mode4 = 0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { return __return_main; } else { check__tmp = 0; __return_9521 = check__tmp; main__c1 = __return_9521; { _Bool __tmp_112; __tmp_112 = main__c1; _Bool assert__arg; assert__arg = __tmp_112; if (assert__arg == 0) { {reach_error();} return __return_main; } else { return __return_main; } } } } } else { label_9484:; mode4 = 0; goto label_9501; } } } else { send4 = node4__m4; mode4 = 0; goto label_9501; } } else { mode4 = 0; label_9501:; __tmp_9092_0 = main____CPAchecker_TMP_0; goto label_9092; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { send1 = node1__m1; label_9422:; mode1 = 0; goto label_9439; } } } else { send1 = node1__m1; mode1 = 0; goto label_9439; } } else { mode1 = 0; label_9439:; __tmp_9314_0 = main____CPAchecker_TMP_0; goto label_9314; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node4____CPAchecker_TMP_0 = p4_new; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3813 = check__tmp; main__c1 = __return_3813; { _Bool __tmp_113; __tmp_113 = main__c1; _Bool assert__arg; assert__arg = __tmp_113; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_9314_0 = main____CPAchecker_TMP_0; label_9314:; main____CPAchecker_TMP_0 = __tmp_9314_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_9326_0 = main____CPAchecker_TMP_0; label_9326:; main____CPAchecker_TMP_0 = __tmp_9326_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; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { if (((int)node4__m4) > ((int)id4)) { send4 = node4__m4; goto label_9354; } else { if (((int)node4__m4) == ((int)id4)) { st4 = 1; mode4 = 0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_9393 = check__tmp; main__c1 = __return_9393; { _Bool __tmp_114; __tmp_114 = main__c1; _Bool assert__arg; assert__arg = __tmp_114; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_18064; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; goto label_18064; } else { send1 = node1__m1; label_18064:; goto label_18056; } } } else { send1 = node1__m1; goto label_18056; } } else { label_18056:; mode1 = 0; label_18073:; __tmp_17297_0 = main____CPAchecker_TMP_0; goto label_17297; } } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; goto label_18081; } else { goto label_18078; } } else { label_18078:; node1____CPAchecker_TMP_0 = p1_new; label_18081:; p1_new = node1____CPAchecker_TMP_0; label_18084:; mode1 = 1; goto label_18073; } } 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_18093; } else { goto label_18090; } } else { label_18090:; node1____CPAchecker_TMP_1 = p1_new; label_18093:; p1_new = node1____CPAchecker_TMP_1; goto label_18084; } } else { goto label_18084; } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { label_9354:; mode4 = 0; goto label_9371; } } } else { send4 = node4__m4; mode4 = 0; goto label_9371; } } else { mode4 = 0; label_9371:; __tmp_8988_0 = main____CPAchecker_TMP_0; goto label_8988; } } 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)send4) != ((int)id4)) { int node4____CPAchecker_TMP_1; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_1 = send4; goto label_1129; } else { return __return_main; } } else { node4____CPAchecker_TMP_1 = p4_new; label_1129:; p4_new = node4____CPAchecker_TMP_1; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3843 = check__tmp; main__c1 = __return_3843; { _Bool __tmp_115; __tmp_115 = main__c1; _Bool assert__arg; assert__arg = __tmp_115; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_9605; } 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_9639_0 = main____CPAchecker_TMP_0; label_9639:; main____CPAchecker_TMP_0 = __tmp_9639_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; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { return __return_main; } else { send4 = node4__m4; mode4 = 0; goto label_9668; } } else { mode4 = 0; label_9668:; __tmp_9273_0 = main____CPAchecker_TMP_0; goto label_9273; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { send1 = node1__m1; label_9605:; mode1 = 0; goto label_9622; } } } else { send1 = node1__m1; mode1 = 0; goto label_9622; } } else { mode1 = 0; label_9622:; __tmp_9542_0 = main____CPAchecker_TMP_0; goto label_9542; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3833 = check__tmp; main__c1 = __return_3833; { _Bool __tmp_116; __tmp_116 = main__c1; _Bool assert__arg; assert__arg = __tmp_116; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_9542_0 = main____CPAchecker_TMP_0; label_9542:; main____CPAchecker_TMP_0 = __tmp_9542_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_9554_0 = main____CPAchecker_TMP_0; label_9554:; main____CPAchecker_TMP_0 = __tmp_9554_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; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { return __return_main; } else { send4 = node4__m4; mode4 = 0; goto label_9583; } } else { mode4 = 0; label_9583:; __tmp_9169_0 = main____CPAchecker_TMP_0; goto label_9169; } } 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 { node3____CPAchecker_TMP_0 = p3_new; p3_new = node3____CPAchecker_TMP_0; mode3 = 1; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { return __return_main; } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3783 = check__tmp; main__c1 = __return_3783; { _Bool __tmp_117; __tmp_117 = main__c1; _Bool assert__arg; assert__arg = __tmp_117; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_9034; } 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_9068_0 = main____CPAchecker_TMP_0; label_9068:; main____CPAchecker_TMP_0 = __tmp_9068_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; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_9092_0 = main____CPAchecker_TMP_0; label_9092:; main____CPAchecker_TMP_0 = __tmp_9092_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_9109 = check__tmp; main__c1 = __return_9109; { _Bool __tmp_118; __tmp_118 = main__c1; _Bool assert__arg; assert__arg = __tmp_118; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_17886; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; goto label_17886; } else { send1 = node1__m1; label_17886:; goto label_17878; } } } else { send1 = node1__m1; goto label_17878; } } else { label_17878:; mode1 = 0; label_17895:; __tmp_17297_0 = main____CPAchecker_TMP_0; goto label_17297; } } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; goto label_17903; } else { goto label_17900; } } else { label_17900:; node1____CPAchecker_TMP_0 = p1_new; label_17903:; p1_new = node1____CPAchecker_TMP_0; label_17906:; mode1 = 1; goto label_17895; } } 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_17915; } else { goto label_17912; } } else { label_17912:; node1____CPAchecker_TMP_1 = p1_new; label_17915:; p1_new = node1____CPAchecker_TMP_1; goto label_17906; } } else { goto label_17906; } } } } } 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 { send1 = node1__m1; label_9034:; mode1 = 0; goto label_9051; } } } else { send1 = node1__m1; mode1 = 0; goto label_9051; } } else { mode1 = 0; label_9051:; __tmp_8952_0 = main____CPAchecker_TMP_0; goto label_8952; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node4____CPAchecker_TMP_0 = p4_new; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3773 = check__tmp; main__c1 = __return_3773; { _Bool __tmp_119; __tmp_119 = main__c1; _Bool assert__arg; assert__arg = __tmp_119; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_8952_0 = main____CPAchecker_TMP_0; label_8952:; main____CPAchecker_TMP_0 = __tmp_8952_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_8964_0 = main____CPAchecker_TMP_0; label_8964:; main____CPAchecker_TMP_0 = __tmp_8964_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; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_8988_0 = main____CPAchecker_TMP_0; label_8988:; main____CPAchecker_TMP_0 = __tmp_8988_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_9005 = check__tmp; main__c1 = __return_9005; { _Bool __tmp_120; __tmp_120 = main__c1; _Bool assert__arg; assert__arg = __tmp_120; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { 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_17846; } else { return __return_main; } } else { node1____CPAchecker_TMP_0 = p1_new; p1_new = node1____CPAchecker_TMP_0; label_17846:; label_17848:; mode1 = 1; label_17862:; __tmp_17297_0 = main____CPAchecker_TMP_0; goto label_17297; } } 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_17856; } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; label_17856:; p1_new = node1____CPAchecker_TMP_1; goto label_17848; } } else { mode1 = 1; goto label_17862; } } } } } 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 { if (((int)send4) != ((int)id4)) { int node4____CPAchecker_TMP_1; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_1 = send4; goto label_1085; } else { return __return_main; } } else { node4____CPAchecker_TMP_1 = p4_new; label_1085:; p4_new = node4____CPAchecker_TMP_1; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3803 = check__tmp; main__c1 = __return_3803; { _Bool __tmp_121; __tmp_121 = main__c1; _Bool assert__arg; assert__arg = __tmp_121; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_9215; } 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_9249_0 = main____CPAchecker_TMP_0; label_9249:; main____CPAchecker_TMP_0 = __tmp_9249_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; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_9273_0 = main____CPAchecker_TMP_0; label_9273:; main____CPAchecker_TMP_0 = __tmp_9273_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_9290 = check__tmp; main__c1 = __return_9290; { _Bool __tmp_122; __tmp_122 = main__c1; _Bool assert__arg; assert__arg = __tmp_122; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_18007; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; goto label_18007; } else { send1 = node1__m1; label_18007:; goto label_17999; } } } else { send1 = node1__m1; goto label_17999; } } else { label_17999:; mode1 = 0; label_18016:; __tmp_17297_0 = main____CPAchecker_TMP_0; goto label_17297; } } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; goto label_18024; } else { goto label_18021; } } else { label_18021:; node1____CPAchecker_TMP_0 = p1_new; label_18024:; p1_new = node1____CPAchecker_TMP_0; label_18027:; mode1 = 1; goto label_18016; } } 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_18036; } else { goto label_18033; } } else { label_18033:; node1____CPAchecker_TMP_1 = p1_new; label_18036:; p1_new = node1____CPAchecker_TMP_1; goto label_18027; } } else { goto label_18027; } } } } } 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 { send1 = node1__m1; label_9215:; mode1 = 0; goto label_9232; } } } else { send1 = node1__m1; mode1 = 0; goto label_9232; } } else { mode1 = 0; label_9232:; __tmp_9133_0 = main____CPAchecker_TMP_0; goto label_9133; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3793 = check__tmp; main__c1 = __return_3793; { _Bool __tmp_123; __tmp_123 = main__c1; _Bool assert__arg; assert__arg = __tmp_123; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_9133_0 = main____CPAchecker_TMP_0; label_9133:; main____CPAchecker_TMP_0 = __tmp_9133_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_9145_0 = main____CPAchecker_TMP_0; label_9145:; main____CPAchecker_TMP_0 = __tmp_9145_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; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_9169_0 = main____CPAchecker_TMP_0; label_9169:; main____CPAchecker_TMP_0 = __tmp_9169_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_9186 = check__tmp; main__c1 = __return_9186; { _Bool __tmp_124; __tmp_124 = main__c1; _Bool assert__arg; assert__arg = __tmp_124; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { 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_17941:; mode1 = 1; goto label_17958; } else { return __return_main; } } else { node1____CPAchecker_TMP_0 = p1_new; p1_new = node1____CPAchecker_TMP_0; mode1 = 1; label_17958:; __tmp_17297_0 = main____CPAchecker_TMP_0; goto label_17297; } } 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_17941; } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; p1_new = node1____CPAchecker_TMP_1; goto label_17944; } } else { label_17944:; mode1 = 1; __tmp_17964_0 = main____CPAchecker_TMP_0; label_17964:; main____CPAchecker_TMP_0 = __tmp_17964_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_17979; } else { goto label_17976; } } else { label_17976:; node2____CPAchecker_TMP_1 = p2_new; label_17979:; p2_new = node2____CPAchecker_TMP_1; goto label_17973; } } else { label_17973:; mode2 = 1; __tmp_17350_0 = main____CPAchecker_TMP_0; goto label_17350; } } } } } } } } } 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 { if (((int)send3) != ((int)id3)) { int node3____CPAchecker_TMP_1; if (send3 != nomsg) { if (p3_new == nomsg) { node3____CPAchecker_TMP_1 = send3; goto label_425; } else { return __return_main; } } else { node3____CPAchecker_TMP_1 = p3_new; label_425:; p3_new = node3____CPAchecker_TMP_1; mode3 = 1; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { return __return_main; } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3903 = check__tmp; main__c1 = __return_3903; { _Bool __tmp_125; __tmp_125 = main__c1; _Bool assert__arg; assert__arg = __tmp_125; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_10155; } 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_10189_0 = main____CPAchecker_TMP_0; label_10189:; main____CPAchecker_TMP_0 = __tmp_10189_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; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { if (((int)node4__m4) > ((int)id4)) { send4 = node4__m4; goto label_10217; } else { if (((int)node4__m4) == ((int)id4)) { st4 = 1; mode4 = 0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { return __return_main; } else { check__tmp = 0; __return_10254 = check__tmp; main__c1 = __return_10254; { _Bool __tmp_126; __tmp_126 = main__c1; _Bool assert__arg; assert__arg = __tmp_126; if (assert__arg == 0) { {reach_error();} return __return_main; } else { return __return_main; } } } } } else { label_10217:; mode4 = 0; goto label_10234; } } } else { send4 = node4__m4; mode4 = 0; goto label_10234; } } else { mode4 = 0; label_10234:; __tmp_9825_0 = main____CPAchecker_TMP_0; goto label_9825; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { send1 = node1__m1; label_10155:; mode1 = 0; goto label_10172; } } } else { send1 = node1__m1; mode1 = 0; goto label_10172; } } else { mode1 = 0; label_10172:; __tmp_10047_0 = main____CPAchecker_TMP_0; goto label_10047; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node4____CPAchecker_TMP_0 = p4_new; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3893 = check__tmp; main__c1 = __return_3893; { _Bool __tmp_127; __tmp_127 = main__c1; _Bool assert__arg; assert__arg = __tmp_127; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_10047_0 = main____CPAchecker_TMP_0; label_10047:; main____CPAchecker_TMP_0 = __tmp_10047_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_10059_0 = main____CPAchecker_TMP_0; label_10059:; main____CPAchecker_TMP_0 = __tmp_10059_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; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { if (((int)node4__m4) > ((int)id4)) { send4 = node4__m4; goto label_10087; } else { if (((int)node4__m4) == ((int)id4)) { st4 = 1; mode4 = 0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_10126 = check__tmp; main__c1 = __return_10126; { _Bool __tmp_128; __tmp_128 = main__c1; _Bool assert__arg; assert__arg = __tmp_128; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_18373; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; goto label_18373; } else { send1 = node1__m1; label_18373:; goto label_18365; } } } else { send1 = node1__m1; goto label_18365; } } else { label_18365:; mode1 = 0; label_18382:; __tmp_17297_0 = main____CPAchecker_TMP_0; goto label_17297; } } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; goto label_18390; } else { goto label_18387; } } else { label_18387:; node1____CPAchecker_TMP_0 = p1_new; label_18390:; p1_new = node1____CPAchecker_TMP_0; label_18393:; mode1 = 1; goto label_18382; } } 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_18402; } else { goto label_18399; } } else { label_18399:; node1____CPAchecker_TMP_1 = p1_new; label_18402:; p1_new = node1____CPAchecker_TMP_1; goto label_18393; } } else { goto label_18393; } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { label_10087:; mode4 = 0; goto label_10104; } } } else { send4 = node4__m4; mode4 = 0; goto label_10104; } } else { mode4 = 0; label_10104:; __tmp_9721_0 = main____CPAchecker_TMP_0; goto label_9721; } } 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)send4) != ((int)id4)) { int node4____CPAchecker_TMP_1; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_1 = send4; goto label_1217; } else { return __return_main; } } else { node4____CPAchecker_TMP_1 = p4_new; label_1217:; p4_new = node4____CPAchecker_TMP_1; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3923 = check__tmp; main__c1 = __return_3923; { _Bool __tmp_129; __tmp_129 = main__c1; _Bool assert__arg; assert__arg = __tmp_129; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_10338; } 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_10372_0 = main____CPAchecker_TMP_0; label_10372:; main____CPAchecker_TMP_0 = __tmp_10372_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; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { return __return_main; } else { send4 = node4__m4; mode4 = 0; goto label_10401; } } else { mode4 = 0; label_10401:; __tmp_10006_0 = main____CPAchecker_TMP_0; goto label_10006; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { send1 = node1__m1; label_10338:; mode1 = 0; goto label_10355; } } } else { send1 = node1__m1; mode1 = 0; goto label_10355; } } else { mode1 = 0; label_10355:; __tmp_10275_0 = main____CPAchecker_TMP_0; goto label_10275; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3913 = check__tmp; main__c1 = __return_3913; { _Bool __tmp_130; __tmp_130 = main__c1; _Bool assert__arg; assert__arg = __tmp_130; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_10275_0 = main____CPAchecker_TMP_0; label_10275:; main____CPAchecker_TMP_0 = __tmp_10275_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_10287_0 = main____CPAchecker_TMP_0; label_10287:; main____CPAchecker_TMP_0 = __tmp_10287_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; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { return __return_main; } else { send4 = node4__m4; mode4 = 0; goto label_10316; } } else { mode4 = 0; label_10316:; __tmp_9902_0 = main____CPAchecker_TMP_0; goto label_9902; } } 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 { mode3 = 1; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { return __return_main; } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3863 = check__tmp; main__c1 = __return_3863; { _Bool __tmp_131; __tmp_131 = main__c1; _Bool assert__arg; assert__arg = __tmp_131; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_9767; } 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_9801_0 = main____CPAchecker_TMP_0; label_9801:; main____CPAchecker_TMP_0 = __tmp_9801_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; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_9825_0 = main____CPAchecker_TMP_0; label_9825:; main____CPAchecker_TMP_0 = __tmp_9825_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_9842 = check__tmp; main__c1 = __return_9842; { _Bool __tmp_132; __tmp_132 = main__c1; _Bool assert__arg; assert__arg = __tmp_132; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { 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_18179; } else { goto label_18176; } } else { label_18176:; node1____CPAchecker_TMP_0 = p1_new; label_18179:; p1_new = node1____CPAchecker_TMP_0; label_18182:; mode1 = 1; __tmp_17297_0 = main____CPAchecker_TMP_0; goto label_17297; } } 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_18191; } else { goto label_18188; } } else { label_18188:; node1____CPAchecker_TMP_1 = p1_new; label_18191:; p1_new = node1____CPAchecker_TMP_1; goto label_18182; } } else { goto label_18182; } } } } } 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 { send1 = node1__m1; label_9767:; mode1 = 0; goto label_9784; } } } else { send1 = node1__m1; mode1 = 0; goto label_9784; } } else { mode1 = 0; label_9784:; __tmp_9685_0 = main____CPAchecker_TMP_0; goto label_9685; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node4____CPAchecker_TMP_0 = p4_new; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3853 = check__tmp; main__c1 = __return_3853; { _Bool __tmp_133; __tmp_133 = main__c1; _Bool assert__arg; assert__arg = __tmp_133; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_9685_0 = main____CPAchecker_TMP_0; label_9685:; main____CPAchecker_TMP_0 = __tmp_9685_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_9697_0 = main____CPAchecker_TMP_0; label_9697:; main____CPAchecker_TMP_0 = __tmp_9697_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; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_9721_0 = main____CPAchecker_TMP_0; label_9721:; main____CPAchecker_TMP_0 = __tmp_9721_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_9738 = check__tmp; main__c1 = __return_9738; { _Bool __tmp_134; __tmp_134 = main__c1; _Bool assert__arg; assert__arg = __tmp_134; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { 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_18119:; mode1 = 1; goto label_18136; } else { return __return_main; } } else { node1____CPAchecker_TMP_0 = p1_new; p1_new = node1____CPAchecker_TMP_0; mode1 = 1; label_18136:; __tmp_17297_0 = main____CPAchecker_TMP_0; goto label_17297; } } 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_18119; } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; p1_new = node1____CPAchecker_TMP_1; goto label_18122; } } else { label_18122:; mode1 = 1; __tmp_18142_0 = main____CPAchecker_TMP_0; label_18142:; main____CPAchecker_TMP_0 = __tmp_18142_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_18157; } else { goto label_18154; } } else { label_18154:; node2____CPAchecker_TMP_1 = p2_new; label_18157:; p2_new = node2____CPAchecker_TMP_1; goto label_18151; } } else { label_18151:; mode2 = 1; __tmp_17350_0 = main____CPAchecker_TMP_0; goto label_17350; } } } } } } } } } 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 { if (((int)send4) != ((int)id4)) { int node4____CPAchecker_TMP_1; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_1 = send4; goto label_1173; } else { return __return_main; } } else { node4____CPAchecker_TMP_1 = p4_new; label_1173:; p4_new = node4____CPAchecker_TMP_1; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3883 = check__tmp; main__c1 = __return_3883; { _Bool __tmp_135; __tmp_135 = main__c1; _Bool assert__arg; assert__arg = __tmp_135; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_9948; } 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_9982_0 = main____CPAchecker_TMP_0; label_9982:; main____CPAchecker_TMP_0 = __tmp_9982_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; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_10006_0 = main____CPAchecker_TMP_0; label_10006:; main____CPAchecker_TMP_0 = __tmp_10006_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_10023 = check__tmp; main__c1 = __return_10023; { _Bool __tmp_136; __tmp_136 = main__c1; _Bool assert__arg; assert__arg = __tmp_136; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { 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_18333; } else { goto label_18330; } } else { label_18330:; node1____CPAchecker_TMP_0 = p1_new; label_18333:; p1_new = node1____CPAchecker_TMP_0; label_18336:; mode1 = 1; __tmp_17297_0 = main____CPAchecker_TMP_0; goto label_17297; } } 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_18345; } else { goto label_18342; } } else { label_18342:; node1____CPAchecker_TMP_1 = p1_new; label_18345:; p1_new = node1____CPAchecker_TMP_1; goto label_18336; } } else { goto label_18336; } } } } } 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 { send1 = node1__m1; label_9948:; mode1 = 0; goto label_9965; } } } else { send1 = node1__m1; mode1 = 0; goto label_9965; } } else { mode1 = 0; label_9965:; __tmp_9866_0 = main____CPAchecker_TMP_0; goto label_9866; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_3873 = check__tmp; main__c1 = __return_3873; { _Bool __tmp_137; __tmp_137 = main__c1; _Bool assert__arg; assert__arg = __tmp_137; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_9866_0 = main____CPAchecker_TMP_0; label_9866:; main____CPAchecker_TMP_0 = __tmp_9866_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_9878_0 = main____CPAchecker_TMP_0; label_9878:; main____CPAchecker_TMP_0 = __tmp_9878_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; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_9902_0 = main____CPAchecker_TMP_0; label_9902:; main____CPAchecker_TMP_0 = __tmp_9902_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_9919 = check__tmp; main__c1 = __return_9919; { _Bool __tmp_138; __tmp_138 = main__c1; _Bool assert__arg; assert__arg = __tmp_138; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { 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_18217:; mode1 = 1; __tmp_17297_0 = main____CPAchecker_TMP_0; goto label_17297; } 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_18259; } else { if (((int)node2__m2) == ((int)id2)) { st2 = 1; goto label_18259; } else { label_18259:; goto label_18252; } } } else { send2 = node2__m2; goto label_18252; } } else { label_18252:; mode2 = 0; label_18268:; __tmp_17350_0 = main____CPAchecker_TMP_0; goto label_17350; } } else { if (!(alive2 == 0)) { int node2____CPAchecker_TMP_0; if (send2 != nomsg) { if (p2_new == nomsg) { node2____CPAchecker_TMP_0 = send2; goto label_18276; } else { goto label_18273; } } else { label_18273:; node2____CPAchecker_TMP_0 = p2_new; label_18276:; p2_new = node2____CPAchecker_TMP_0; label_18279:; mode2 = 1; goto label_18268; } } 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_18288; } else { goto label_18285; } } else { label_18285:; node2____CPAchecker_TMP_1 = p2_new; label_18288:; p2_new = node2____CPAchecker_TMP_1; goto label_18279; } } else { goto label_18279; } } } } } } 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_18217; } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; p1_new = node1____CPAchecker_TMP_1; goto label_18220; } } else { label_18220:; mode1 = 1; __tmp_18242_0 = main____CPAchecker_TMP_0; label_18242:; main____CPAchecker_TMP_0 = __tmp_18242_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_18309; } else { return __return_main; } } else { node2____CPAchecker_TMP_1 = p2_new; label_18309:; p2_new = node2____CPAchecker_TMP_1; mode2 = 1; goto label_18315; } } else { mode2 = 1; label_18315:; __tmp_17350_0 = main____CPAchecker_TMP_0; goto label_17350; } } } } } } } } } 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 { 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_161; } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; p1_new = node1____CPAchecker_TMP_1; goto label_164; } } else { label_164:; 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; label_287:; 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; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { return __return_main; } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4623 = check__tmp; main__c1 = __return_4623; { _Bool __tmp_139; __tmp_139 = main__c1; _Bool assert__arg; assert__arg = __tmp_139; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { return __return_main; } else { send1 = node1__m1; mode1 = 0; goto label_16077; } } else { mode1 = 0; label_16077:; __tmp_15948_0 = main____CPAchecker_TMP_0; goto label_15948; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node4____CPAchecker_TMP_0 = p4_new; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4613 = check__tmp; main__c1 = __return_4613; { _Bool __tmp_140; __tmp_140 = main__c1; _Bool assert__arg; assert__arg = __tmp_140; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_15948_0 = main____CPAchecker_TMP_0; label_15948:; main____CPAchecker_TMP_0 = __tmp_15948_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_15976; } else { if (((int)node3__m3) == ((int)id3)) { st3 = 1; mode3 = 0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { if (((int)node4__m4) > ((int)id4)) { send4 = node4__m4; goto label_16014; } else { if (((int)node4__m4) == ((int)id4)) { st4 = 1; mode4 = 0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { return __return_main; } else { check__tmp = 0; __return_16051 = check__tmp; main__c1 = __return_16051; { _Bool __tmp_141; __tmp_141 = main__c1; _Bool assert__arg; assert__arg = __tmp_141; if (assert__arg == 0) { {reach_error();} return __return_main; } else { return __return_main; } } } } } else { label_16014:; mode4 = 0; goto label_16031; } } } else { send4 = node4__m4; mode4 = 0; goto label_16031; } } else { mode4 = 0; label_16031:; __tmp_15760_0 = main____CPAchecker_TMP_0; goto label_15760; } } else { return __return_main; } } } else { label_15976:; mode3 = 0; goto label_15993; } } } else { send3 = node3__m3; mode3 = 0; goto label_15993; } } else { mode3 = 0; label_15993:; __tmp_15114_0 = main____CPAchecker_TMP_0; goto label_15114; } } 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)send4) != ((int)id4)) { int node4____CPAchecker_TMP_1; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_1 = send4; goto label_2009; } else { return __return_main; } } else { node4____CPAchecker_TMP_1 = p4_new; label_2009:; p4_new = node4____CPAchecker_TMP_1; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4643 = check__tmp; main__c1 = __return_4643; { _Bool __tmp_142; __tmp_142 = main__c1; _Bool assert__arg; assert__arg = __tmp_142; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { return __return_main; } else { send1 = node1__m1; mode1 = 0; goto label_16183; } } else { mode1 = 0; label_16183:; __tmp_16094_0 = main____CPAchecker_TMP_0; goto label_16094; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4633 = check__tmp; main__c1 = __return_4633; { _Bool __tmp_143; __tmp_143 = main__c1; _Bool assert__arg; assert__arg = __tmp_143; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_16094_0 = main____CPAchecker_TMP_0; label_16094:; main____CPAchecker_TMP_0 = __tmp_16094_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_16122; } else { if (((int)node3__m3) == ((int)id3)) { st3 = 1; mode3 = 0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { return __return_main; } else { send4 = node4__m4; mode4 = 0; goto label_16161; } } else { mode4 = 0; label_16161:; __tmp_15885_0 = main____CPAchecker_TMP_0; goto label_15885; } } else { return __return_main; } } } else { label_16122:; mode3 = 0; goto label_16139; } } } else { send3 = node3__m3; mode3 = 0; goto label_16139; } } else { mode3 = 0; label_16139:; __tmp_15239_0 = main____CPAchecker_TMP_0; goto label_15239; } } 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 { node3____CPAchecker_TMP_0 = p3_new; p3_new = node3____CPAchecker_TMP_0; mode3 = 1; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { return __return_main; } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4583 = check__tmp; main__c1 = __return_4583; { _Bool __tmp_144; __tmp_144 = main__c1; _Bool assert__arg; assert__arg = __tmp_144; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { return __return_main; } else { send1 = node1__m1; mode1 = 0; goto label_15806; } } else { mode1 = 0; label_15806:; __tmp_15698_0 = main____CPAchecker_TMP_0; goto label_15698; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node4____CPAchecker_TMP_0 = p4_new; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4573 = check__tmp; main__c1 = __return_4573; { _Bool __tmp_145; __tmp_145 = main__c1; _Bool assert__arg; assert__arg = __tmp_145; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_15698_0 = main____CPAchecker_TMP_0; label_15698:; main____CPAchecker_TMP_0 = __tmp_15698_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_15726; } else { if (((int)node3__m3) == ((int)id3)) { st3 = 1; mode3 = 0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_15760_0 = main____CPAchecker_TMP_0; label_15760:; main____CPAchecker_TMP_0 = __tmp_15760_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_15777 = check__tmp; main__c1 = __return_15777; { _Bool __tmp_146; __tmp_146 = main__c1; _Bool assert__arg; assert__arg = __tmp_146; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_18910; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; goto label_18910; } else { send1 = node1__m1; label_18910:; goto label_18902; } } } else { send1 = node1__m1; goto label_18902; } } else { label_18902:; mode1 = 0; label_18919:; __tmp_17297_0 = main____CPAchecker_TMP_0; goto label_17297; } } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; goto label_18927; } else { goto label_18924; } } else { label_18924:; node1____CPAchecker_TMP_0 = p1_new; label_18927:; p1_new = node1____CPAchecker_TMP_0; label_18930:; mode1 = 1; goto label_18919; } } 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_18939; } else { goto label_18936; } } else { label_18936:; node1____CPAchecker_TMP_1 = p1_new; label_18939:; p1_new = node1____CPAchecker_TMP_1; goto label_18930; } } else { goto label_18930; } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_15726:; mode3 = 0; goto label_15743; } } } else { send3 = node3__m3; mode3 = 0; goto label_15743; } } else { mode3 = 0; label_15743:; __tmp_14916_0 = main____CPAchecker_TMP_0; goto label_14916; } } 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)send4) != ((int)id4)) { int node4____CPAchecker_TMP_1; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_1 = send4; goto label_1965; } else { return __return_main; } } else { node4____CPAchecker_TMP_1 = p4_new; label_1965:; p4_new = node4____CPAchecker_TMP_1; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4603 = check__tmp; main__c1 = __return_4603; { _Bool __tmp_147; __tmp_147 = main__c1; _Bool assert__arg; assert__arg = __tmp_147; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { return __return_main; } else { send1 = node1__m1; mode1 = 0; goto label_15931; } } else { mode1 = 0; label_15931:; __tmp_15823_0 = main____CPAchecker_TMP_0; goto label_15823; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4593 = check__tmp; main__c1 = __return_4593; { _Bool __tmp_148; __tmp_148 = main__c1; _Bool assert__arg; assert__arg = __tmp_148; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_15823_0 = main____CPAchecker_TMP_0; label_15823:; main____CPAchecker_TMP_0 = __tmp_15823_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_15851; } else { if (((int)node3__m3) == ((int)id3)) { st3 = 1; mode3 = 0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_15885_0 = main____CPAchecker_TMP_0; label_15885:; main____CPAchecker_TMP_0 = __tmp_15885_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_15902 = check__tmp; main__c1 = __return_15902; { _Bool __tmp_149; __tmp_149 = main__c1; _Bool assert__arg; assert__arg = __tmp_149; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { 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_18963; } else { goto label_18960; } } else { label_18960:; node1____CPAchecker_TMP_1 = p1_new; label_18963:; p1_new = node1____CPAchecker_TMP_1; goto label_18957; } } else { label_18957:; mode1 = 1; __tmp_17297_0 = main____CPAchecker_TMP_0; goto label_17297; } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_15851:; mode3 = 0; goto label_15868; } } } else { send3 = node3__m3; mode3 = 0; goto label_15868; } } else { mode3 = 0; label_15868:; __tmp_15015_0 = main____CPAchecker_TMP_0; goto label_15015; } } 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_645; } else { return __return_main; } } else { node3____CPAchecker_TMP_1 = p3_new; label_645:; p3_new = node3____CPAchecker_TMP_1; mode3 = 1; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { return __return_main; } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4703 = check__tmp; main__c1 = __return_4703; { _Bool __tmp_150; __tmp_150 = main__c1; _Bool assert__arg; assert__arg = __tmp_150; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { return __return_main; } else { send1 = node1__m1; mode1 = 0; goto label_16387; } } else { mode1 = 0; label_16387:; __tmp_16336_0 = main____CPAchecker_TMP_0; goto label_16336; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node4____CPAchecker_TMP_0 = p4_new; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4693 = check__tmp; main__c1 = __return_4693; { _Bool __tmp_151; __tmp_151 = main__c1; _Bool assert__arg; assert__arg = __tmp_151; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_16336_0 = main____CPAchecker_TMP_0; label_16336:; main____CPAchecker_TMP_0 = __tmp_16336_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_16365; } } else { mode3 = 0; label_16365:; __tmp_15517_0 = main____CPAchecker_TMP_0; goto label_15517; } } 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)send4) != ((int)id4)) { int node4____CPAchecker_TMP_1; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_1 = send4; goto label_2097; } else { return __return_main; } } else { node4____CPAchecker_TMP_1 = p4_new; label_2097:; p4_new = node4____CPAchecker_TMP_1; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4723 = check__tmp; main__c1 = __return_4723; { _Bool __tmp_152; __tmp_152 = main__c1; _Bool assert__arg; assert__arg = __tmp_152; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { return __return_main; } else { send1 = node1__m1; mode1 = 0; goto label_16455; } } else { mode1 = 0; label_16455:; __tmp_16404_0 = main____CPAchecker_TMP_0; goto label_16404; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4713 = check__tmp; main__c1 = __return_4713; { _Bool __tmp_153; __tmp_153 = main__c1; _Bool assert__arg; assert__arg = __tmp_153; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_16404_0 = main____CPAchecker_TMP_0; label_16404:; main____CPAchecker_TMP_0 = __tmp_16404_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_16433; } } else { mode3 = 0; label_16433:; __tmp_15642_0 = main____CPAchecker_TMP_0; goto label_15642; } } 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 { mode3 = 1; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { return __return_main; } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4663 = check__tmp; main__c1 = __return_4663; { _Bool __tmp_154; __tmp_154 = main__c1; _Bool assert__arg; assert__arg = __tmp_154; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { return __return_main; } else { send1 = node1__m1; mode1 = 0; goto label_16251; } } else { mode1 = 0; label_16251:; __tmp_16200_0 = main____CPAchecker_TMP_0; goto label_16200; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node4____CPAchecker_TMP_0 = p4_new; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4653 = check__tmp; main__c1 = __return_4653; { _Bool __tmp_155; __tmp_155 = main__c1; _Bool assert__arg; assert__arg = __tmp_155; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_16200_0 = main____CPAchecker_TMP_0; label_16200:; main____CPAchecker_TMP_0 = __tmp_16200_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_16229; } } else { mode3 = 0; label_16229:; __tmp_15319_0 = main____CPAchecker_TMP_0; goto label_15319; } } 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)send4) != ((int)id4)) { int node4____CPAchecker_TMP_1; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_1 = send4; goto label_2053; } else { return __return_main; } } else { node4____CPAchecker_TMP_1 = p4_new; label_2053:; p4_new = node4____CPAchecker_TMP_1; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4683 = check__tmp; main__c1 = __return_4683; { _Bool __tmp_156; __tmp_156 = main__c1; _Bool assert__arg; assert__arg = __tmp_156; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { return __return_main; } else { send1 = node1__m1; mode1 = 0; goto label_16319; } } else { mode1 = 0; label_16319:; __tmp_16268_0 = main____CPAchecker_TMP_0; goto label_16268; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4673 = check__tmp; main__c1 = __return_4673; { _Bool __tmp_157; __tmp_157 = main__c1; _Bool assert__arg; assert__arg = __tmp_157; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_16268_0 = main____CPAchecker_TMP_0; label_16268:; main____CPAchecker_TMP_0 = __tmp_16268_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_16297; } } else { mode3 = 0; label_16297:; __tmp_15418_0 = main____CPAchecker_TMP_0; goto label_15418; } } 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; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { return __return_main; } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4463 = check__tmp; main__c1 = __return_4463; { _Bool __tmp_158; __tmp_158 = main__c1; _Bool assert__arg; assert__arg = __tmp_158; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { return __return_main; } else { send1 = node1__m1; mode1 = 0; goto label_15198; } } else { mode1 = 0; label_15198:; __tmp_15090_0 = main____CPAchecker_TMP_0; goto label_15090; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node4____CPAchecker_TMP_0 = p4_new; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4453 = check__tmp; main__c1 = __return_4453; { _Bool __tmp_159; __tmp_159 = main__c1; _Bool assert__arg; assert__arg = __tmp_159; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_15090_0 = main____CPAchecker_TMP_0; label_15090:; main____CPAchecker_TMP_0 = __tmp_15090_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_15114_0 = main____CPAchecker_TMP_0; label_15114:; main____CPAchecker_TMP_0 = __tmp_15114_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { if (((int)node4__m4) > ((int)id4)) { send4 = node4__m4; goto label_15130; } else { if (((int)node4__m4) == ((int)id4)) { st4 = 1; mode4 = 0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_15169 = check__tmp; main__c1 = __return_15169; { _Bool __tmp_160; __tmp_160 = main__c1; _Bool assert__arg; assert__arg = __tmp_160; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_18685; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; goto label_18685; } else { send1 = node1__m1; label_18685:; goto label_18677; } } } else { send1 = node1__m1; goto label_18677; } } else { label_18677:; mode1 = 0; label_18694:; __tmp_17297_0 = main____CPAchecker_TMP_0; goto label_17297; } } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; goto label_18702; } else { goto label_18699; } } else { label_18699:; node1____CPAchecker_TMP_0 = p1_new; label_18702:; p1_new = node1____CPAchecker_TMP_0; label_18705:; mode1 = 1; goto label_18694; } } 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_18714; } else { goto label_18711; } } else { label_18711:; node1____CPAchecker_TMP_1 = p1_new; label_18714:; p1_new = node1____CPAchecker_TMP_1; goto label_18705; } } else { goto label_18705; } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { label_15130:; mode4 = 0; goto label_15147; } } } else { send4 = node4__m4; mode4 = 0; goto label_15147; } } else { mode4 = 0; label_15147:; __tmp_14928_0 = main____CPAchecker_TMP_0; goto label_14928; } } 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)send4) != ((int)id4)) { int node4____CPAchecker_TMP_1; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_1 = send4; goto label_1833; } else { return __return_main; } } else { node4____CPAchecker_TMP_1 = p4_new; label_1833:; p4_new = node4____CPAchecker_TMP_1; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4483 = check__tmp; main__c1 = __return_4483; { _Bool __tmp_161; __tmp_161 = main__c1; _Bool assert__arg; assert__arg = __tmp_161; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { return __return_main; } else { send1 = node1__m1; mode1 = 0; goto label_15278; } } else { mode1 = 0; label_15278:; __tmp_15215_0 = main____CPAchecker_TMP_0; goto label_15215; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4473 = check__tmp; main__c1 = __return_4473; { _Bool __tmp_162; __tmp_162 = main__c1; _Bool assert__arg; assert__arg = __tmp_162; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_15215_0 = main____CPAchecker_TMP_0; label_15215:; main____CPAchecker_TMP_0 = __tmp_15215_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_15239_0 = main____CPAchecker_TMP_0; label_15239:; main____CPAchecker_TMP_0 = __tmp_15239_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { return __return_main; } else { send4 = node4__m4; mode4 = 0; goto label_15256; } } else { mode4 = 0; label_15256:; __tmp_15027_0 = main____CPAchecker_TMP_0; goto label_15027; } } 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 { node3____CPAchecker_TMP_0 = p3_new; p3_new = node3____CPAchecker_TMP_0; mode3 = 1; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { return __return_main; } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4423 = check__tmp; main__c1 = __return_4423; { _Bool __tmp_163; __tmp_163 = main__c1; _Bool assert__arg; assert__arg = __tmp_163; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { return __return_main; } else { send1 = node1__m1; mode1 = 0; goto label_14974; } } else { mode1 = 0; label_14974:; __tmp_14892_0 = main____CPAchecker_TMP_0; goto label_14892; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node4____CPAchecker_TMP_0 = p4_new; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4413 = check__tmp; main__c1 = __return_4413; { _Bool __tmp_164; __tmp_164 = main__c1; _Bool assert__arg; assert__arg = __tmp_164; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_14892_0 = main____CPAchecker_TMP_0; label_14892:; main____CPAchecker_TMP_0 = __tmp_14892_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_14916_0 = main____CPAchecker_TMP_0; label_14916:; main____CPAchecker_TMP_0 = __tmp_14916_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_14928_0 = main____CPAchecker_TMP_0; label_14928:; main____CPAchecker_TMP_0 = __tmp_14928_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_14945 = check__tmp; main__c1 = __return_14945; { _Bool __tmp_165; __tmp_165 = main__c1; _Bool assert__arg; assert__arg = __tmp_165; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { 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_18573; } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; label_18573:; p1_new = node1____CPAchecker_TMP_1; mode1 = 1; goto label_18579; } } else { mode1 = 1; label_18579:; __tmp_17297_0 = main____CPAchecker_TMP_0; goto label_17297; } } } } } 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 { if (((int)send4) != ((int)id4)) { int node4____CPAchecker_TMP_1; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_1 = send4; goto label_1789; } else { return __return_main; } } else { node4____CPAchecker_TMP_1 = p4_new; label_1789:; p4_new = node4____CPAchecker_TMP_1; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4443 = check__tmp; main__c1 = __return_4443; { _Bool __tmp_166; __tmp_166 = main__c1; _Bool assert__arg; assert__arg = __tmp_166; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { return __return_main; } else { send1 = node1__m1; mode1 = 0; goto label_15073; } } else { mode1 = 0; label_15073:; __tmp_14991_0 = main____CPAchecker_TMP_0; goto label_14991; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4433 = check__tmp; main__c1 = __return_4433; { _Bool __tmp_167; __tmp_167 = main__c1; _Bool assert__arg; assert__arg = __tmp_167; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_14991_0 = main____CPAchecker_TMP_0; label_14991:; main____CPAchecker_TMP_0 = __tmp_14991_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_15015_0 = main____CPAchecker_TMP_0; label_15015:; main____CPAchecker_TMP_0 = __tmp_15015_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_15027_0 = main____CPAchecker_TMP_0; label_15027:; main____CPAchecker_TMP_0 = __tmp_15027_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_15044 = check__tmp; main__c1 = __return_15044; { _Bool __tmp_168; __tmp_168 = main__c1; _Bool assert__arg; assert__arg = __tmp_168; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { 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_17297_0 = main____CPAchecker_TMP_0; goto label_17297; } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; p1_new = node1____CPAchecker_TMP_1; goto label_18593; } } else { label_18593:; 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_18628; } else { if (((int)node2__m2) == ((int)id2)) { st2 = 1; goto label_18628; } else { label_18628:; goto label_18621; } } } else { send2 = node2__m2; goto label_18621; } } else { label_18621:; mode2 = 0; label_18637:; __tmp_17350_0 = main____CPAchecker_TMP_0; goto label_17350; } } else { if (!(alive2 == 0)) { int node2____CPAchecker_TMP_0; if (send2 != nomsg) { if (p2_new == nomsg) { node2____CPAchecker_TMP_0 = send2; goto label_18645; } else { goto label_18642; } } else { label_18642:; node2____CPAchecker_TMP_0 = p2_new; label_18645:; p2_new = node2____CPAchecker_TMP_0; label_18648:; mode2 = 1; goto label_18637; } } 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_18657; } else { goto label_18654; } } else { label_18654:; node2____CPAchecker_TMP_1 = p2_new; label_18657:; p2_new = node2____CPAchecker_TMP_1; goto label_18648; } } else { goto label_18648; } } } } } } } } } 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 { if (((int)send3) != ((int)id3)) { int node3____CPAchecker_TMP_1; if (send3 != nomsg) { if (p3_new == nomsg) { node3____CPAchecker_TMP_1 = send3; goto label_601; } else { return __return_main; } } else { node3____CPAchecker_TMP_1 = p3_new; label_601:; p3_new = node3____CPAchecker_TMP_1; mode3 = 1; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { return __return_main; } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4543 = check__tmp; main__c1 = __return_4543; { _Bool __tmp_169; __tmp_169 = main__c1; _Bool assert__arg; assert__arg = __tmp_169; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { return __return_main; } else { send1 = node1__m1; mode1 = 0; goto label_15601; } } else { mode1 = 0; label_15601:; __tmp_15493_0 = main____CPAchecker_TMP_0; goto label_15493; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node4____CPAchecker_TMP_0 = p4_new; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4533 = check__tmp; main__c1 = __return_4533; { _Bool __tmp_170; __tmp_170 = main__c1; _Bool assert__arg; assert__arg = __tmp_170; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_15493_0 = main____CPAchecker_TMP_0; label_15493:; main____CPAchecker_TMP_0 = __tmp_15493_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_15517_0 = main____CPAchecker_TMP_0; label_15517:; main____CPAchecker_TMP_0 = __tmp_15517_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { if (((int)node4__m4) > ((int)id4)) { send4 = node4__m4; goto label_15533; } else { if (((int)node4__m4) == ((int)id4)) { st4 = 1; mode4 = 0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_15572 = check__tmp; main__c1 = __return_15572; { _Bool __tmp_171; __tmp_171 = main__c1; _Bool assert__arg; assert__arg = __tmp_171; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { if (((int)node1__m1) > ((int)id1)) { send1 = node1__m1; goto label_18853; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; goto label_18853; } else { send1 = node1__m1; label_18853:; goto label_18845; } } } else { send1 = node1__m1; goto label_18845; } } else { label_18845:; mode1 = 0; label_18862:; __tmp_17297_0 = main____CPAchecker_TMP_0; goto label_17297; } } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; goto label_18870; } else { goto label_18867; } } else { label_18867:; node1____CPAchecker_TMP_0 = p1_new; label_18870:; p1_new = node1____CPAchecker_TMP_0; label_18873:; mode1 = 1; goto label_18862; } } 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_18882; } else { goto label_18879; } } else { label_18879:; node1____CPAchecker_TMP_1 = p1_new; label_18882:; p1_new = node1____CPAchecker_TMP_1; goto label_18873; } } else { goto label_18873; } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { label_15533:; mode4 = 0; goto label_15550; } } } else { send4 = node4__m4; mode4 = 0; goto label_15550; } } else { mode4 = 0; label_15550:; __tmp_15331_0 = main____CPAchecker_TMP_0; goto label_15331; } } 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)send4) != ((int)id4)) { int node4____CPAchecker_TMP_1; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_1 = send4; goto label_1921; } else { return __return_main; } } else { node4____CPAchecker_TMP_1 = p4_new; label_1921:; p4_new = node4____CPAchecker_TMP_1; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4563 = check__tmp; main__c1 = __return_4563; { _Bool __tmp_172; __tmp_172 = main__c1; _Bool assert__arg; assert__arg = __tmp_172; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { return __return_main; } else { send1 = node1__m1; mode1 = 0; goto label_15681; } } else { mode1 = 0; label_15681:; __tmp_15618_0 = main____CPAchecker_TMP_0; goto label_15618; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4553 = check__tmp; main__c1 = __return_4553; { _Bool __tmp_173; __tmp_173 = main__c1; _Bool assert__arg; assert__arg = __tmp_173; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_15618_0 = main____CPAchecker_TMP_0; label_15618:; main____CPAchecker_TMP_0 = __tmp_15618_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_15642_0 = main____CPAchecker_TMP_0; label_15642:; main____CPAchecker_TMP_0 = __tmp_15642_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { return __return_main; } else { send4 = node4__m4; mode4 = 0; goto label_15659; } } else { mode4 = 0; label_15659:; __tmp_15430_0 = main____CPAchecker_TMP_0; goto label_15430; } } 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 { mode3 = 1; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { return __return_main; } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4503 = check__tmp; main__c1 = __return_4503; { _Bool __tmp_174; __tmp_174 = main__c1; _Bool assert__arg; assert__arg = __tmp_174; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { return __return_main; } else { send1 = node1__m1; mode1 = 0; goto label_15377; } } else { mode1 = 0; label_15377:; __tmp_15295_0 = main____CPAchecker_TMP_0; goto label_15295; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node4____CPAchecker_TMP_0 = p4_new; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4493 = check__tmp; main__c1 = __return_4493; { _Bool __tmp_175; __tmp_175 = main__c1; _Bool assert__arg; assert__arg = __tmp_175; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_15295_0 = main____CPAchecker_TMP_0; label_15295:; main____CPAchecker_TMP_0 = __tmp_15295_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_15319_0 = main____CPAchecker_TMP_0; label_15319:; main____CPAchecker_TMP_0 = __tmp_15319_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_15331_0 = main____CPAchecker_TMP_0; label_15331:; main____CPAchecker_TMP_0 = __tmp_15331_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_15348 = check__tmp; main__c1 = __return_15348; { _Bool __tmp_176; __tmp_176 = main__c1; _Bool assert__arg; assert__arg = __tmp_176; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { 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_17297_0 = main____CPAchecker_TMP_0; goto label_17297; } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; p1_new = node1____CPAchecker_TMP_1; goto label_18732; } } else { label_18732:; 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_18767; } else { if (((int)node2__m2) == ((int)id2)) { st2 = 1; goto label_18767; } else { label_18767:; goto label_18760; } } } else { send2 = node2__m2; goto label_18760; } } else { label_18760:; mode2 = 0; label_18776:; __tmp_17350_0 = main____CPAchecker_TMP_0; goto label_17350; } } else { if (!(alive2 == 0)) { int node2____CPAchecker_TMP_0; if (send2 != nomsg) { if (p2_new == nomsg) { node2____CPAchecker_TMP_0 = send2; goto label_18784; } else { goto label_18781; } } else { label_18781:; node2____CPAchecker_TMP_0 = p2_new; label_18784:; p2_new = node2____CPAchecker_TMP_0; label_18787:; mode2 = 1; goto label_18776; } } 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_18796; } else { goto label_18793; } } else { label_18793:; node2____CPAchecker_TMP_1 = p2_new; label_18796:; p2_new = node2____CPAchecker_TMP_1; goto label_18787; } } else { goto label_18787; } } } } } } } } } 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 { if (((int)send4) != ((int)id4)) { int node4____CPAchecker_TMP_1; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_1 = send4; goto label_1877; } else { return __return_main; } } else { node4____CPAchecker_TMP_1 = p4_new; label_1877:; p4_new = node4____CPAchecker_TMP_1; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4523 = check__tmp; main__c1 = __return_4523; { _Bool __tmp_177; __tmp_177 = main__c1; _Bool assert__arg; assert__arg = __tmp_177; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { return __return_main; } else { send1 = node1__m1; mode1 = 0; goto label_15476; } } else { mode1 = 0; label_15476:; __tmp_15394_0 = main____CPAchecker_TMP_0; goto label_15394; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4513 = check__tmp; main__c1 = __return_4513; { _Bool __tmp_178; __tmp_178 = main__c1; _Bool assert__arg; assert__arg = __tmp_178; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_15394_0 = main____CPAchecker_TMP_0; label_15394:; main____CPAchecker_TMP_0 = __tmp_15394_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_15418_0 = main____CPAchecker_TMP_0; label_15418:; main____CPAchecker_TMP_0 = __tmp_15418_0; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_15430_0 = main____CPAchecker_TMP_0; label_15430:; main____CPAchecker_TMP_0 = __tmp_15430_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_15447 = check__tmp; main__c1 = __return_15447; { _Bool __tmp_179; __tmp_179 = main__c1; _Bool assert__arg; assert__arg = __tmp_179; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { 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_17297_0 = main____CPAchecker_TMP_0; goto label_17297; } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; p1_new = node1____CPAchecker_TMP_1; goto label_18814; } } else { label_18814:; mode1 = 1; __tmp_17684_0 = main____CPAchecker_TMP_0; goto label_17684; } } } } } 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 { if (((int)send2) != ((int)id2)) { int node2____CPAchecker_TMP_1; if (send2 != nomsg) { if (p2_new == nomsg) { node2____CPAchecker_TMP_1 = send2; p2_new = node2____CPAchecker_TMP_1; goto label_287; } else { return __return_main; } } else { node2____CPAchecker_TMP_1 = p2_new; p2_new = node2____CPAchecker_TMP_1; goto label_290; } } else { label_290:; 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; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { return __return_main; } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4783 = check__tmp; main__c1 = __return_4783; { _Bool __tmp_180; __tmp_180 = main__c1; _Bool assert__arg; assert__arg = __tmp_180; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { return __return_main; } else { send1 = node1__m1; mode1 = 0; goto label_16778; } } else { mode1 = 0; label_16778:; __tmp_16670_0 = main____CPAchecker_TMP_0; goto label_16670; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node4____CPAchecker_TMP_0 = p4_new; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4773 = check__tmp; main__c1 = __return_4773; { _Bool __tmp_181; __tmp_181 = main__c1; _Bool assert__arg; assert__arg = __tmp_181; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_16670_0 = main____CPAchecker_TMP_0; label_16670:; main____CPAchecker_TMP_0 = __tmp_16670_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; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { if (((int)node4__m4) > ((int)id4)) { send4 = node4__m4; goto label_16710; } else { if (((int)node4__m4) == ((int)id4)) { st4 = 1; mode4 = 0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_16749 = check__tmp; main__c1 = __return_16749; { _Bool __tmp_182; __tmp_182 = main__c1; _Bool assert__arg; assert__arg = __tmp_182; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { 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_19098; } else { goto label_19095; } } else { label_19095:; node1____CPAchecker_TMP_1 = p1_new; label_19098:; p1_new = node1____CPAchecker_TMP_1; goto label_19092; } } else { label_19092:; mode1 = 1; __tmp_17297_0 = main____CPAchecker_TMP_0; goto label_17297; } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { label_16710:; mode4 = 0; goto label_16727; } } } else { send4 = node4__m4; mode4 = 0; goto label_16727; } } else { mode4 = 0; label_16727:; __tmp_16508_0 = main____CPAchecker_TMP_0; goto label_16508; } } 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)send4) != ((int)id4)) { int node4____CPAchecker_TMP_1; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_1 = send4; goto label_2185; } else { return __return_main; } } else { node4____CPAchecker_TMP_1 = p4_new; label_2185:; p4_new = node4____CPAchecker_TMP_1; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4803 = check__tmp; main__c1 = __return_4803; { _Bool __tmp_183; __tmp_183 = main__c1; _Bool assert__arg; assert__arg = __tmp_183; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { return __return_main; } else { send1 = node1__m1; mode1 = 0; goto label_16858; } } else { mode1 = 0; label_16858:; __tmp_16795_0 = main____CPAchecker_TMP_0; goto label_16795; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4793 = check__tmp; main__c1 = __return_4793; { _Bool __tmp_184; __tmp_184 = main__c1; _Bool assert__arg; assert__arg = __tmp_184; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_16795_0 = main____CPAchecker_TMP_0; label_16795:; main____CPAchecker_TMP_0 = __tmp_16795_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; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { return __return_main; } else { send4 = node4__m4; mode4 = 0; goto label_16836; } } else { mode4 = 0; label_16836:; __tmp_16607_0 = main____CPAchecker_TMP_0; goto label_16607; } } 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 { node3____CPAchecker_TMP_0 = p3_new; p3_new = node3____CPAchecker_TMP_0; mode3 = 1; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { return __return_main; } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4743 = check__tmp; main__c1 = __return_4743; { _Bool __tmp_185; __tmp_185 = main__c1; _Bool assert__arg; assert__arg = __tmp_185; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { return __return_main; } else { send1 = node1__m1; mode1 = 0; goto label_16554; } } else { mode1 = 0; label_16554:; __tmp_16472_0 = main____CPAchecker_TMP_0; goto label_16472; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node4____CPAchecker_TMP_0 = p4_new; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4733 = check__tmp; main__c1 = __return_4733; { _Bool __tmp_186; __tmp_186 = main__c1; _Bool assert__arg; assert__arg = __tmp_186; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_16472_0 = main____CPAchecker_TMP_0; label_16472:; main____CPAchecker_TMP_0 = __tmp_16472_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; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_16508_0 = main____CPAchecker_TMP_0; label_16508:; main____CPAchecker_TMP_0 = __tmp_16508_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_16525 = check__tmp; main__c1 = __return_16525; { _Bool __tmp_187; __tmp_187 = main__c1; _Bool assert__arg; assert__arg = __tmp_187; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { 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_17297_0 = main____CPAchecker_TMP_0; goto label_17297; } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; p1_new = node1____CPAchecker_TMP_1; goto label_18981; } } else { label_18981:; 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_19016; } else { if (((int)node2__m2) == ((int)id2)) { st2 = 1; goto label_19016; } else { label_19016:; goto label_19009; } } } else { send2 = node2__m2; goto label_19009; } } else { label_19009:; mode2 = 0; label_19025:; __tmp_17350_0 = main____CPAchecker_TMP_0; goto label_17350; } } else { if (!(alive2 == 0)) { int node2____CPAchecker_TMP_0; if (send2 != nomsg) { if (p2_new == nomsg) { node2____CPAchecker_TMP_0 = send2; goto label_19033; } else { goto label_19030; } } else { label_19030:; node2____CPAchecker_TMP_0 = p2_new; label_19033:; p2_new = node2____CPAchecker_TMP_0; label_19036:; mode2 = 1; goto label_19025; } } 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_19045; } else { goto label_19042; } } else { label_19042:; node2____CPAchecker_TMP_1 = p2_new; label_19045:; p2_new = node2____CPAchecker_TMP_1; goto label_19036; } } else { goto label_19036; } } } } } } } } } 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 { if (((int)send4) != ((int)id4)) { int node4____CPAchecker_TMP_1; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_1 = send4; goto label_2141; } else { return __return_main; } } else { node4____CPAchecker_TMP_1 = p4_new; label_2141:; p4_new = node4____CPAchecker_TMP_1; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4763 = check__tmp; main__c1 = __return_4763; { _Bool __tmp_188; __tmp_188 = main__c1; _Bool assert__arg; assert__arg = __tmp_188; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { return __return_main; } else { send1 = node1__m1; mode1 = 0; goto label_16653; } } else { mode1 = 0; label_16653:; __tmp_16571_0 = main____CPAchecker_TMP_0; goto label_16571; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4753 = check__tmp; main__c1 = __return_4753; { _Bool __tmp_189; __tmp_189 = main__c1; _Bool assert__arg; assert__arg = __tmp_189; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_16571_0 = main____CPAchecker_TMP_0; label_16571:; main____CPAchecker_TMP_0 = __tmp_16571_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; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_16607_0 = main____CPAchecker_TMP_0; label_16607:; main____CPAchecker_TMP_0 = __tmp_16607_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_16624 = check__tmp; main__c1 = __return_16624; { _Bool __tmp_190; __tmp_190 = main__c1; _Bool assert__arg; assert__arg = __tmp_190; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { 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_17297_0 = main____CPAchecker_TMP_0; goto label_17297; } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; p1_new = node1____CPAchecker_TMP_1; goto label_19063; } } else { label_19063:; mode1 = 1; __tmp_17964_0 = main____CPAchecker_TMP_0; goto label_17964; } } } } } 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 { if (((int)send3) != ((int)id3)) { int node3____CPAchecker_TMP_1; if (send3 != nomsg) { if (p3_new == nomsg) { node3____CPAchecker_TMP_1 = send3; goto label_689; } else { return __return_main; } } else { node3____CPAchecker_TMP_1 = p3_new; label_689:; p3_new = node3____CPAchecker_TMP_1; mode3 = 1; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { return __return_main; } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4863 = check__tmp; main__c1 = __return_4863; { _Bool __tmp_191; __tmp_191 = main__c1; _Bool assert__arg; assert__arg = __tmp_191; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { return __return_main; } else { send1 = node1__m1; mode1 = 0; goto label_17181; } } else { mode1 = 0; label_17181:; __tmp_17073_0 = main____CPAchecker_TMP_0; goto label_17073; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node4____CPAchecker_TMP_0 = p4_new; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4853 = check__tmp; main__c1 = __return_4853; { _Bool __tmp_192; __tmp_192 = main__c1; _Bool assert__arg; assert__arg = __tmp_192; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_17073_0 = main____CPAchecker_TMP_0; label_17073:; main____CPAchecker_TMP_0 = __tmp_17073_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; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { if (((int)node4__m4) > ((int)id4)) { send4 = node4__m4; goto label_17113; } else { if (((int)node4__m4) == ((int)id4)) { st4 = 1; mode4 = 0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_17152 = check__tmp; main__c1 = __return_17152; { _Bool __tmp_193; __tmp_193 = main__c1; _Bool assert__arg; assert__arg = __tmp_193; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { 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_19212; } else { goto label_19209; } } else { label_19209:; node1____CPAchecker_TMP_1 = p1_new; label_19212:; p1_new = node1____CPAchecker_TMP_1; goto label_19206; } } else { label_19206:; mode1 = 1; __tmp_17297_0 = main____CPAchecker_TMP_0; goto label_17297; } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { label_17113:; mode4 = 0; goto label_17130; } } } else { send4 = node4__m4; mode4 = 0; goto label_17130; } } else { mode4 = 0; label_17130:; __tmp_16911_0 = main____CPAchecker_TMP_0; goto label_16911; } } 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)send4) != ((int)id4)) { int node4____CPAchecker_TMP_1; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_1 = send4; goto label_2273; } else { return __return_main; } } else { node4____CPAchecker_TMP_1 = p4_new; label_2273:; p4_new = node4____CPAchecker_TMP_1; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4883 = check__tmp; main__c1 = __return_4883; { _Bool __tmp_194; __tmp_194 = main__c1; _Bool assert__arg; assert__arg = __tmp_194; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { return __return_main; } else { send1 = node1__m1; mode1 = 0; goto label_17261; } } else { mode1 = 0; label_17261:; __tmp_17198_0 = main____CPAchecker_TMP_0; goto label_17198; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4873 = check__tmp; main__c1 = __return_4873; { _Bool __tmp_195; __tmp_195 = main__c1; _Bool assert__arg; assert__arg = __tmp_195; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_17198_0 = main____CPAchecker_TMP_0; label_17198:; main____CPAchecker_TMP_0 = __tmp_17198_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; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { if (!(alive4 == 0)) { return __return_main; } else { send4 = node4__m4; mode4 = 0; goto label_17239; } } else { mode4 = 0; label_17239:; __tmp_17010_0 = main____CPAchecker_TMP_0; goto label_17010; } } 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 { mode3 = 1; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { return __return_main; } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4823 = check__tmp; main__c1 = __return_4823; { _Bool __tmp_196; __tmp_196 = main__c1; _Bool assert__arg; assert__arg = __tmp_196; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { return __return_main; } else { send1 = node1__m1; mode1 = 0; goto label_16957; } } else { mode1 = 0; label_16957:; __tmp_16875_0 = main____CPAchecker_TMP_0; goto label_16875; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { node4____CPAchecker_TMP_0 = p4_new; p4_new = node4____CPAchecker_TMP_0; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4813 = check__tmp; main__c1 = __return_4813; { _Bool __tmp_197; __tmp_197 = main__c1; _Bool assert__arg; assert__arg = __tmp_197; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_16875_0 = main____CPAchecker_TMP_0; label_16875:; main____CPAchecker_TMP_0 = __tmp_16875_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; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_16911_0 = main____CPAchecker_TMP_0; label_16911:; main____CPAchecker_TMP_0 = __tmp_16911_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_16928 = check__tmp; main__c1 = __return_16928; { _Bool __tmp_198; __tmp_198 = main__c1; _Bool assert__arg; assert__arg = __tmp_198; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { 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_17297_0 = main____CPAchecker_TMP_0; goto label_17297; } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; p1_new = node1____CPAchecker_TMP_1; goto label_19116; } } else { label_19116:; mode1 = 1; __tmp_18142_0 = main____CPAchecker_TMP_0; goto label_18142; } } } } } 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 { if (((int)send4) != ((int)id4)) { int node4____CPAchecker_TMP_1; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_1 = send4; goto label_2229; } else { return __return_main; } } else { node4____CPAchecker_TMP_1 = p4_new; label_2229:; p4_new = node4____CPAchecker_TMP_1; mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4843 = check__tmp; main__c1 = __return_4843; { _Bool __tmp_199; __tmp_199 = main__c1; _Bool assert__arg; assert__arg = __tmp_199; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { if (!(alive1 == 0)) { return __return_main; } else { send1 = node1__m1; mode1 = 0; goto label_17056; } } else { mode1 = 0; label_17056:; __tmp_16974_0 = main____CPAchecker_TMP_0; goto label_16974; } } else { return __return_main; } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { mode4 = 1; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_4833 = check__tmp; main__c1 = __return_4833; { _Bool __tmp_200; __tmp_200 = main__c1; _Bool assert__arg; assert__arg = __tmp_200; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { msg_t node1__m1; node1__m1 = nomsg; if (!(mode1 == 0)) { r1 = (char)(((int)r1) + 1); node1__m1 = p4_old; p4_old = nomsg; if (((int)node1__m1) != ((int)nomsg)) { return __return_main; } else { mode1 = 0; __tmp_16974_0 = main____CPAchecker_TMP_0; label_16974:; main____CPAchecker_TMP_0 = __tmp_16974_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; { msg_t node4__m4; node4__m4 = nomsg; if (!(mode4 == 0)) { node4__m4 = p3_old; p3_old = nomsg; if (((int)node4__m4) != ((int)nomsg)) { return __return_main; } else { mode4 = 0; __tmp_17010_0 = main____CPAchecker_TMP_0; label_17010:; main____CPAchecker_TMP_0 = __tmp_17010_0; p1_old = p1_new; p1_new = nomsg; p2_old = p2_new; p2_new = nomsg; p3_old = p3_new; p3_new = nomsg; p4_old = p4_new; p4_new = nomsg; { int check__tmp; if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) <= 1) { if (((int)r1) < 4) { check__tmp = 1; __return_17027 = check__tmp; main__c1 = __return_17027; { _Bool __tmp_201; __tmp_201 = main__c1; _Bool assert__arg; assert__arg = __tmp_201; if (assert__arg == 0) { return __return_main; } else { int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; if (main__i2 < 8) { { 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_19176; } else { goto label_19173; } } else { label_19173:; node2____CPAchecker_TMP_0 = p2_new; label_19176:; p2_new = node2____CPAchecker_TMP_0; label_19179:; mode2 = 1; __tmp_17350_0 = main____CPAchecker_TMP_0; goto label_17350; } } 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_19188; } else { goto label_19185; } } else { label_19185:; node2____CPAchecker_TMP_1 = p2_new; label_19188:; p2_new = node2____CPAchecker_TMP_1; goto label_19179; } } else { goto label_19179; } } } } } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; p1_new = node1____CPAchecker_TMP_1; goto label_19145; } } else { label_19145:; mode1 = 1; __tmp_18242_0 = main____CPAchecker_TMP_0; goto label_18242; } } } } } 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; } } 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; } } }