// 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.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_13122_0; int __return_13149; int __return_4133; int __tmp_12829_0; int __return_12970; int __return_4163; int __return_4153; int __tmp_13165_0; int __return_4103; int __tmp_12505_0; int __return_12532; int __return_4093; int __tmp_12264_0; int __tmp_12352_0; int __return_12367; int __return_4123; int __tmp_12786_0; int __return_12813; int __return_4113; int __tmp_12548_0; int __tmp_12636_0; int __return_12651; int __return_4223; int __return_4213; int __tmp_13752_0; int __return_4243; int __return_4233; int __tmp_13922_0; int __return_4183; int __return_4173; int __tmp_13412_0; int __return_4203; int __return_4193; int __tmp_13582_0; int __return_3983; int __tmp_11057_0; int __return_11122; int __return_3973; int __tmp_10854_0; int __tmp_10904_0; int __return_10957; int __return_4003; int __tmp_11298_0; int __return_3993; int __tmp_11138_0; int __tmp_11188_0; int __return_3943; int __tmp_10573_0; int __tmp_10585_0; int __return_10600; int __return_3933; int __tmp_10394_0; int __tmp_10444_0; int __tmp_10456_0; int __return_10473; int __return_3963; int __tmp_10803_0; int __tmp_10815_0; int __return_10830; int __return_3953; int __tmp_10624_0; int __tmp_10674_0; int __tmp_10686_0; int __return_10703; int __return_4063; int __tmp_11989_0; int __return_12054; int __return_4053; int __tmp_11786_0; int __tmp_11836_0; int __return_11889; int __return_4083; int __tmp_12230_0; int __return_4073; int __tmp_12070_0; int __tmp_12120_0; int __return_4023; int __tmp_11511_0; int __tmp_11523_0; int __return_11538; int __return_4013; int __tmp_11332_0; int __tmp_11382_0; int __tmp_11394_0; int __return_11411; int __return_4043; int __tmp_11738_0; int __tmp_11750_0; int __return_11765; int __return_4033; int __tmp_11559_0; int __tmp_11609_0; int __tmp_11621_0; int __return_11638; int __return_4303; int __return_4293; int __tmp_14280_0; int __return_4323; int __return_4313; int __tmp_14374_0; int __return_4263; int __return_4253; int __tmp_14092_0; int __return_4283; int __return_4273; int __tmp_14186_0; int __return_4383; int __return_4373; int __tmp_14656_0; int __return_4403; int __return_4393; int __tmp_14750_0; int __return_4343; int __return_4333; int __tmp_14468_0; int __return_4363; int __return_4353; int __tmp_14562_0; int __return_3663; int __tmp_8143_0; int __return_8246; int __tmp_8247_0; int __return_3653; int __tmp_7978_0; int __tmp_7990_0; int __return_8081; int __return_3683; int __tmp_8392_0; int __return_3673; int __tmp_8270_0; int __tmp_8282_0; int __return_3623; int __tmp_7659_0; int __tmp_7709_0; int __return_7724; int __return_3613; int __tmp_7518_0; int __tmp_7530_0; int __tmp_7580_0; int __return_7597; int __return_3643; int __tmp_7889_0; int __tmp_7939_0; int __return_7954; int __return_3633; int __tmp_7748_0; int __tmp_7760_0; int __tmp_7810_0; int __return_7827; int __return_3743; int __tmp_8784_0; int __return_3733; int __tmp_8700_0; int __tmp_8712_0; int __return_3763; int __tmp_8902_0; int __return_3753; int __tmp_8818_0; int __tmp_8830_0; int __return_3703; int __tmp_8548_0; int __return_3693; int __tmp_8464_0; int __tmp_8476_0; int __return_3723; int __tmp_8666_0; int __return_3713; int __tmp_8582_0; int __tmp_8594_0; int __return_3503; int __tmp_6552_0; int __tmp_6564_0; int __return_6617; int __tmp_6626_0; int __return_3493; int __tmp_6411_0; int __tmp_6423_0; int __tmp_6435_0; int __return_6490; int __return_3523; int __tmp_6740_0; int __tmp_6752_0; int __return_3513; int __tmp_6644_0; int __tmp_6656_0; int __tmp_6668_0; int __return_3463; int __tmp_6166_0; int __tmp_6178_0; int __tmp_6190_0; int __return_6207; int __tmp_6216_0; int __return_17412; int __return_3453; int __tmp_6051_0; int __tmp_6063_0; int __tmp_6075_0; int __tmp_6087_0; int __return_6104; int __tmp_17249_0; int __tmp_17302_0; int __return_3483; int __tmp_6346_0; int __tmp_6358_0; int __tmp_6370_0; int __return_6387; int __return_3473; int __tmp_6231_0; int __tmp_6243_0; int __tmp_6255_0; int __tmp_6267_0; int __return_6284; int __return_3583; int __tmp_7287_0; int __tmp_7299_0; int __return_7352; int __return_3573; int __tmp_7146_0; int __tmp_7158_0; int __tmp_7170_0; int __return_7225; int __return_3603; int __tmp_7472_0; int __tmp_7484_0; int __return_3593; int __tmp_7376_0; int __tmp_7388_0; int __tmp_7400_0; int __return_3543; int __tmp_6901_0; int __tmp_6913_0; int __tmp_6925_0; int __return_6942; int __return_3533; int __tmp_6786_0; int __tmp_6798_0; int __tmp_6810_0; int __tmp_6822_0; int __return_6839; int __return_3563; int __tmp_7081_0; int __tmp_7093_0; int __tmp_7105_0; int __return_7122; int __return_3553; int __tmp_6966_0; int __tmp_6978_0; int __tmp_6990_0; int __tmp_7002_0; int __return_7019; int __tmp_17634_0; int __return_3823; int __tmp_9437_0; int __return_9502; int __return_3813; int __tmp_9296_0; int __tmp_9308_0; int __return_9375; int __return_3843; int __tmp_9619_0; int __return_3833; int __tmp_9523_0; int __tmp_9535_0; int __return_3783; int __tmp_9051_0; int __tmp_9075_0; int __return_9092; int __return_3773; int __tmp_8936_0; int __tmp_8948_0; int __tmp_8972_0; int __return_8989; int __return_3803; int __tmp_9231_0; int __tmp_9255_0; int __return_9272; int __return_3793; int __tmp_9116_0; int __tmp_9128_0; int __tmp_9152_0; int __return_9169; int __tmp_17911_0; int __return_3903; int __tmp_10166_0; int __return_10231; int __return_3893; int __tmp_10025_0; int __tmp_10037_0; int __return_10104; int __return_3923; int __tmp_10348_0; int __return_3913; int __tmp_10252_0; int __tmp_10264_0; int __return_3863; int __tmp_9780_0; int __tmp_9804_0; int __return_9821; int __return_3853; int __tmp_9665_0; int __tmp_9677_0; int __tmp_9701_0; int __return_9718; int __tmp_18087_0; int __return_3883; int __tmp_9960_0; int __tmp_9984_0; int __return_10001; int __return_3873; int __tmp_9845_0; int __tmp_9857_0; int __tmp_9881_0; int __return_9898; int __tmp_18187_0; int __return_4623; int __return_4613; int __tmp_15900_0; int __return_16003; int __return_4643; int __return_4633; int __tmp_16046_0; int __return_4583; int __return_4573; int __tmp_15650_0; int __tmp_15712_0; int __return_15729; int __return_4603; int __return_4593; int __tmp_15775_0; int __tmp_15837_0; int __return_15854; int __return_4703; int __return_4693; int __tmp_16288_0; int __return_4723; int __return_4713; int __tmp_16356_0; int __return_4663; int __return_4653; int __tmp_16152_0; int __return_4683; int __return_4673; int __tmp_16220_0; int __return_4463; int __return_4453; int __tmp_15042_0; int __tmp_15066_0; int __return_15121; int __return_4483; int __return_4473; int __tmp_15167_0; int __tmp_15191_0; int __return_4423; int __return_4413; int __tmp_14844_0; int __tmp_14868_0; int __tmp_14880_0; int __return_14897; int __return_4443; int __return_4433; int __tmp_14943_0; int __tmp_14967_0; int __tmp_14979_0; int __return_14996; int __return_4543; int __return_4533; int __tmp_15445_0; int __tmp_15469_0; int __return_15524; int __return_4563; int __return_4553; int __tmp_15570_0; int __tmp_15594_0; int __return_4503; int __return_4493; int __tmp_15247_0; int __tmp_15271_0; int __tmp_15283_0; int __return_15300; int __return_4523; int __return_4513; int __tmp_15346_0; int __tmp_15370_0; int __tmp_15382_0; int __return_15399; int __return_4783; int __return_4773; int __tmp_16622_0; int __return_16701; int __return_4803; int __return_4793; int __tmp_16747_0; int __return_4743; int __return_4733; int __tmp_16424_0; int __tmp_16460_0; int __return_16477; int __return_4763; int __return_4753; int __tmp_16523_0; int __tmp_16559_0; int __return_16576; int __return_4863; int __return_4853; int __tmp_17025_0; int __return_17104; int __return_4883; int __return_4873; int __tmp_17150_0; int __return_4823; int __return_4813; int __tmp_16827_0; int __tmp_16863_0; int __return_16880; int __return_4843; int __return_4833; int __tmp_16926_0; int __tmp_16962_0; int __return_16979; 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_12990; } 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_13028; } 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_13066; } 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_13104; } else { if (((int)node4__m4) == ((int)id4)) { st4 = 1; goto label_13109; } else { label_13104:; label_13109:; mode4 = 0; label_13117:; __tmp_13122_0 = main____CPAchecker_TMP_0; label_13122:; main____CPAchecker_TMP_0 = __tmp_13122_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_13143; } else { if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) == 1) { check__tmp = 1; goto label_13143; } else { check__tmp = 0; label_13143:; goto label_13137; } } } else { check__tmp = 0; label_13137:; __return_13149 = check__tmp; main__c1 = __return_13149; __tmp_8247_0 = main____CPAchecker_TMP_0; goto label_8247; } } } } } else { send4 = node4__m4; mode4 = 0; goto label_13117; } } else { mode4 = 0; __tmp_12505_0 = main____CPAchecker_TMP_0; goto label_12505; } } else { return __return_main; } } } else { label_13066:; mode3 = 0; goto label_13083; } } } else { send3 = node3__m3; mode3 = 0; goto label_13083; } } else { mode3 = 0; label_13083:; __tmp_11057_0 = main____CPAchecker_TMP_0; goto label_11057; } } else { return __return_main; } } } else { label_13028:; mode2 = 0; goto label_13045; } } } else { send2 = node2__m2; mode2 = 0; goto label_13045; } } else { mode2 = 0; label_13045:; __tmp_8143_0 = main____CPAchecker_TMP_0; goto label_8143; } } else { return __return_main; } } } else { label_12990:; mode1 = 0; goto label_13007; } } } else { send1 = node1__m1; mode1 = 0; goto label_13007; } } else { mode1 = 0; label_13007:; __tmp_12829_0 = main____CPAchecker_TMP_0; goto label_12829; } } 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_12829_0 = main____CPAchecker_TMP_0; label_12829:; main____CPAchecker_TMP_0 = __tmp_12829_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_12845; } 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_12883; } 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_12921; } 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_12964; } else { if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) == 1) { check__tmp = 1; goto label_12964; } else { check__tmp = 0; label_12964:; goto label_12958; } } } else { check__tmp = 0; label_12958:; __return_12970 = check__tmp; main__c1 = __return_12970; __tmp_8247_0 = main____CPAchecker_TMP_0; goto label_8247; } } } else { label_12921:; mode4 = 0; goto label_12938; } } } else { send4 = node4__m4; mode4 = 0; goto label_12938; } } else { mode4 = 0; label_12938:; __tmp_12352_0 = main____CPAchecker_TMP_0; goto label_12352; } } else { return __return_main; } } } else { label_12883:; mode3 = 0; goto label_12900; } } } else { send3 = node3__m3; mode3 = 0; goto label_12900; } } else { mode3 = 0; label_12900:; __tmp_10904_0 = main____CPAchecker_TMP_0; goto label_10904; } } else { return __return_main; } } } else { label_12845:; mode2 = 0; goto label_12862; } } } else { send2 = node2__m2; mode2 = 0; goto label_12862; } } else { mode2 = 0; label_12862:; __tmp_7990_0 = main____CPAchecker_TMP_0; goto label_7990; } } 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_13279; } 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_13317; } 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_13355; } 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_13122_0 = main____CPAchecker_TMP_0; goto label_13122; } } else { mode4 = 0; __tmp_12786_0 = main____CPAchecker_TMP_0; goto label_12786; } } else { return __return_main; } } } else { label_13355:; mode3 = 0; goto label_13372; } } } else { send3 = node3__m3; mode3 = 0; goto label_13372; } } else { mode3 = 0; label_13372:; __tmp_11298_0 = main____CPAchecker_TMP_0; goto label_11298; } } else { return __return_main; } } } else { label_13317:; mode2 = 0; goto label_13334; } } } else { send2 = node2__m2; mode2 = 0; goto label_13334; } } else { mode2 = 0; label_13334:; __tmp_8392_0 = main____CPAchecker_TMP_0; goto label_8392; } } else { return __return_main; } } } else { label_13279:; mode1 = 0; goto label_13296; } } } else { send1 = node1__m1; mode1 = 0; goto label_13296; } } else { mode1 = 0; label_13296:; __tmp_13165_0 = main____CPAchecker_TMP_0; goto label_13165; } } 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_13165_0 = main____CPAchecker_TMP_0; label_13165:; main____CPAchecker_TMP_0 = __tmp_13165_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_13181; } 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_13219; } 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_13258; } } else { mode4 = 0; label_13258:; __tmp_12636_0 = main____CPAchecker_TMP_0; goto label_12636; } } else { return __return_main; } } } else { label_13219:; mode3 = 0; goto label_13236; } } } else { send3 = node3__m3; mode3 = 0; goto label_13236; } } else { mode3 = 0; label_13236:; __tmp_11188_0 = main____CPAchecker_TMP_0; goto label_11188; } } else { return __return_main; } } } else { label_13181:; mode2 = 0; goto label_13198; } } } else { send2 = node2__m2; mode2 = 0; goto label_13198; } } else { mode2 = 0; label_13198:; __tmp_8282_0 = main____CPAchecker_TMP_0; goto label_8282; } } 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_12395; } 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_12433; } 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_12471; } 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_12505_0 = main____CPAchecker_TMP_0; label_12505:; main____CPAchecker_TMP_0 = __tmp_12505_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_12526; } else { if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) == 1) { check__tmp = 1; goto label_12526; } else { check__tmp = 0; label_12526:; goto label_12520; } } } else { check__tmp = 0; label_12520:; __return_12532 = check__tmp; main__c1 = __return_12532; __tmp_8247_0 = main____CPAchecker_TMP_0; goto label_8247; } } } } else { return __return_main; } } } else { label_12471:; mode3 = 0; goto label_12488; } } } else { send3 = node3__m3; mode3 = 0; goto label_12488; } } else { mode3 = 0; label_12488:; __tmp_10573_0 = main____CPAchecker_TMP_0; goto label_10573; } } else { return __return_main; } } } else { label_12433:; mode2 = 0; goto label_12450; } } } else { send2 = node2__m2; mode2 = 0; goto label_12450; } } else { mode2 = 0; label_12450:; __tmp_7659_0 = main____CPAchecker_TMP_0; goto label_7659; } } else { return __return_main; } } } else { label_12395:; mode1 = 0; goto label_12412; } } } else { send1 = node1__m1; mode1 = 0; goto label_12412; } } else { mode1 = 0; label_12412:; __tmp_12264_0 = main____CPAchecker_TMP_0; goto label_12264; } } 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_12264_0 = main____CPAchecker_TMP_0; label_12264:; main____CPAchecker_TMP_0 = __tmp_12264_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_12280; } 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_12318; } 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_12352_0 = main____CPAchecker_TMP_0; label_12352:; main____CPAchecker_TMP_0 = __tmp_12352_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_12367 = check__tmp; main__c1 = __return_12367; { _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_6626_0 = main____CPAchecker_TMP_0; goto label_6626; } } } } } } else { return __return_main; } } } else { label_12318:; mode3 = 0; goto label_12335; } } } else { send3 = node3__m3; mode3 = 0; goto label_12335; } } else { mode3 = 0; label_12335:; __tmp_10444_0 = main____CPAchecker_TMP_0; goto label_10444; } } else { return __return_main; } } } else { label_12280:; mode2 = 0; goto label_12297; } } } else { send2 = node2__m2; mode2 = 0; goto label_12297; } } else { mode2 = 0; label_12297:; __tmp_7530_0 = main____CPAchecker_TMP_0; goto label_7530; } } 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_12676; } 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_12714; } 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_12752; } 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_12786_0 = main____CPAchecker_TMP_0; label_12786:; main____CPAchecker_TMP_0 = __tmp_12786_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_12807; } else { if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) == 1) { check__tmp = 1; goto label_12807; } else { check__tmp = 0; label_12807:; goto label_12801; } } } else { check__tmp = 0; label_12801:; __return_12813 = check__tmp; main__c1 = __return_12813; __tmp_8247_0 = main____CPAchecker_TMP_0; goto label_8247; } } } } else { return __return_main; } } } else { label_12752:; mode3 = 0; goto label_12769; } } } else { send3 = node3__m3; mode3 = 0; goto label_12769; } } else { mode3 = 0; label_12769:; __tmp_10803_0 = main____CPAchecker_TMP_0; goto label_10803; } } else { return __return_main; } } } else { label_12714:; mode2 = 0; goto label_12731; } } } else { send2 = node2__m2; mode2 = 0; goto label_12731; } } else { mode2 = 0; label_12731:; __tmp_7889_0 = main____CPAchecker_TMP_0; goto label_7889; } } else { return __return_main; } } } else { label_12676:; mode1 = 0; goto label_12693; } } } else { send1 = node1__m1; mode1 = 0; goto label_12693; } } else { mode1 = 0; label_12693:; __tmp_12548_0 = main____CPAchecker_TMP_0; goto label_12548; } } 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_12548_0 = main____CPAchecker_TMP_0; label_12548:; main____CPAchecker_TMP_0 = __tmp_12548_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_12564; } 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_12602; } 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_12636_0 = main____CPAchecker_TMP_0; label_12636:; main____CPAchecker_TMP_0 = __tmp_12636_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_12651 = check__tmp; main__c1 = __return_12651; { _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_12602:; mode3 = 0; goto label_12619; } } } else { send3 = node3__m3; mode3 = 0; goto label_12619; } } else { mode3 = 0; label_12619:; __tmp_10674_0 = main____CPAchecker_TMP_0; goto label_10674; } } else { return __return_main; } } } else { label_12564:; mode2 = 0; goto label_12581; } } } else { send2 = node2__m2; mode2 = 0; goto label_12581; } } else { mode2 = 0; label_12581:; __tmp_7760_0 = main____CPAchecker_TMP_0; goto label_7760; } } 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_13828; } 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_13866; } 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_13905; } } else { mode3 = 0; label_13905:; __tmp_11989_0 = main____CPAchecker_TMP_0; goto label_11989; } } else { return __return_main; } } } else { label_13866:; mode2 = 0; goto label_13883; } } } else { send2 = node2__m2; mode2 = 0; goto label_13883; } } else { mode2 = 0; label_13883:; __tmp_8784_0 = main____CPAchecker_TMP_0; goto label_8784; } } else { return __return_main; } } } else { label_13828:; mode1 = 0; goto label_13845; } } } else { send1 = node1__m1; mode1 = 0; goto label_13845; } } else { mode1 = 0; label_13845:; __tmp_13752_0 = main____CPAchecker_TMP_0; goto label_13752; } } 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_13752_0 = main____CPAchecker_TMP_0; label_13752:; main____CPAchecker_TMP_0 = __tmp_13752_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_13768; } 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_13807; } } else { mode3 = 0; label_13807:; __tmp_11836_0 = main____CPAchecker_TMP_0; goto label_11836; } } else { return __return_main; } } } else { label_13768:; mode2 = 0; goto label_13785; } } } else { send2 = node2__m2; mode2 = 0; goto label_13785; } } else { mode2 = 0; label_13785:; __tmp_8712_0 = main____CPAchecker_TMP_0; goto label_8712; } } 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_13998; } 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_14036; } 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_14075; } } else { mode3 = 0; label_14075:; __tmp_12230_0 = main____CPAchecker_TMP_0; goto label_12230; } } else { return __return_main; } } } else { label_14036:; mode2 = 0; goto label_14053; } } } else { send2 = node2__m2; mode2 = 0; goto label_14053; } } else { mode2 = 0; label_14053:; __tmp_8902_0 = main____CPAchecker_TMP_0; goto label_8902; } } else { return __return_main; } } } else { label_13998:; mode1 = 0; goto label_14015; } } } else { send1 = node1__m1; mode1 = 0; goto label_14015; } } else { mode1 = 0; label_14015:; __tmp_13922_0 = main____CPAchecker_TMP_0; goto label_13922; } } 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_13922_0 = main____CPAchecker_TMP_0; label_13922:; main____CPAchecker_TMP_0 = __tmp_13922_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_13938; } 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_13977; } } else { mode3 = 0; label_13977:; __tmp_12120_0 = main____CPAchecker_TMP_0; goto label_12120; } } else { return __return_main; } } } else { label_13938:; mode2 = 0; goto label_13955; } } } else { send2 = node2__m2; mode2 = 0; goto label_13955; } } else { mode2 = 0; label_13955:; __tmp_8830_0 = main____CPAchecker_TMP_0; goto label_8830; } } 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_13488; } 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_13526; } 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_13565; } } else { mode3 = 0; label_13565:; __tmp_11511_0 = main____CPAchecker_TMP_0; goto label_11511; } } else { return __return_main; } } } else { label_13526:; mode2 = 0; goto label_13543; } } } else { send2 = node2__m2; mode2 = 0; goto label_13543; } } else { mode2 = 0; label_13543:; __tmp_8548_0 = main____CPAchecker_TMP_0; goto label_8548; } } else { return __return_main; } } } else { label_13488:; mode1 = 0; goto label_13505; } } } else { send1 = node1__m1; mode1 = 0; goto label_13505; } } else { mode1 = 0; label_13505:; __tmp_13412_0 = main____CPAchecker_TMP_0; goto label_13412; } } 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_13412_0 = main____CPAchecker_TMP_0; label_13412:; main____CPAchecker_TMP_0 = __tmp_13412_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_13428; } 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_13467; } } else { mode3 = 0; label_13467:; __tmp_11382_0 = main____CPAchecker_TMP_0; goto label_11382; } } else { return __return_main; } } } else { label_13428:; mode2 = 0; goto label_13445; } } } else { send2 = node2__m2; mode2 = 0; goto label_13445; } } else { mode2 = 0; label_13445:; __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 { 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_13658; } 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_13696; } 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_13735; } } else { mode3 = 0; label_13735:; __tmp_11738_0 = main____CPAchecker_TMP_0; goto label_11738; } } else { return __return_main; } } } else { label_13696:; mode2 = 0; goto label_13713; } } } else { send2 = node2__m2; mode2 = 0; goto label_13713; } } else { mode2 = 0; label_13713:; __tmp_8666_0 = main____CPAchecker_TMP_0; goto label_8666; } } else { return __return_main; } } } else { label_13658:; mode1 = 0; goto label_13675; } } } else { send1 = node1__m1; mode1 = 0; goto label_13675; } } else { mode1 = 0; label_13675:; __tmp_13582_0 = main____CPAchecker_TMP_0; goto label_13582; } } 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_13582_0 = main____CPAchecker_TMP_0; label_13582:; main____CPAchecker_TMP_0 = __tmp_13582_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_13598; } 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_13637; } } else { mode3 = 0; label_13637:; __tmp_11609_0 = main____CPAchecker_TMP_0; goto label_11609; } } else { return __return_main; } } } else { label_13598:; mode2 = 0; goto label_13615; } } } else { send2 = node2__m2; mode2 = 0; goto label_13615; } } else { mode2 = 0; label_13615:; __tmp_8594_0 = main____CPAchecker_TMP_0; goto label_8594; } } 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_10985; } 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_11023; } 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_11057_0 = main____CPAchecker_TMP_0; label_11057:; main____CPAchecker_TMP_0 = __tmp_11057_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_11073; } 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_11116; } else { if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) == 1) { check__tmp = 1; goto label_11116; } else { check__tmp = 0; label_11116:; goto label_11110; } } } else { check__tmp = 0; label_11110:; __return_11122 = check__tmp; main__c1 = __return_11122; __tmp_8247_0 = main____CPAchecker_TMP_0; goto label_8247; } } } else { label_11073:; mode4 = 0; goto label_11090; } } } else { send4 = node4__m4; mode4 = 0; goto label_11090; } } else { mode4 = 0; label_11090:; __tmp_10585_0 = main____CPAchecker_TMP_0; goto label_10585; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_11023:; mode2 = 0; goto label_11040; } } } else { send2 = node2__m2; mode2 = 0; goto label_11040; } } else { mode2 = 0; label_11040:; __tmp_6552_0 = main____CPAchecker_TMP_0; goto label_6552; } } else { return __return_main; } } } else { label_10985:; mode1 = 0; goto label_11002; } } } else { send1 = node1__m1; mode1 = 0; goto label_11002; } } else { mode1 = 0; label_11002:; __tmp_10854_0 = main____CPAchecker_TMP_0; goto label_10854; } } 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_10854_0 = main____CPAchecker_TMP_0; label_10854:; main____CPAchecker_TMP_0 = __tmp_10854_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_10870; } 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_10904_0 = main____CPAchecker_TMP_0; label_10904:; main____CPAchecker_TMP_0 = __tmp_10904_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_10920; } 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_10957 = check__tmp; main__c1 = __return_10957; { _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_6626_0 = main____CPAchecker_TMP_0; goto label_6626; } } } } } else { label_10920:; mode4 = 0; goto label_10937; } } } else { send4 = node4__m4; mode4 = 0; goto label_10937; } } else { mode4 = 0; label_10937:; __tmp_10456_0 = main____CPAchecker_TMP_0; goto label_10456; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_10870:; mode2 = 0; goto label_10887; } } } else { send2 = node2__m2; mode2 = 0; goto label_10887; } } else { mode2 = 0; label_10887:; __tmp_6423_0 = main____CPAchecker_TMP_0; goto label_6423; } } 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_11226; } 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_11264; } 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_11298_0 = main____CPAchecker_TMP_0; label_11298:; main____CPAchecker_TMP_0 = __tmp_11298_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_11315; } } else { mode4 = 0; label_11315:; __tmp_10815_0 = main____CPAchecker_TMP_0; goto label_10815; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_11264:; mode2 = 0; goto label_11281; } } } else { send2 = node2__m2; mode2 = 0; goto label_11281; } } else { mode2 = 0; label_11281:; __tmp_6740_0 = main____CPAchecker_TMP_0; goto label_6740; } } else { return __return_main; } } } else { label_11226:; mode1 = 0; goto label_11243; } } } else { send1 = node1__m1; mode1 = 0; goto label_11243; } } else { mode1 = 0; label_11243:; __tmp_11138_0 = main____CPAchecker_TMP_0; goto label_11138; } } 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_11138_0 = main____CPAchecker_TMP_0; label_11138:; main____CPAchecker_TMP_0 = __tmp_11138_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_11154; } 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_11188_0 = main____CPAchecker_TMP_0; label_11188:; main____CPAchecker_TMP_0 = __tmp_11188_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_11205; } } else { mode4 = 0; label_11205:; __tmp_10686_0 = main____CPAchecker_TMP_0; goto label_10686; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_11154:; mode2 = 0; goto label_11171; } } } else { send2 = node2__m2; mode2 = 0; goto label_11171; } } else { mode2 = 0; label_11171:; __tmp_6656_0 = main____CPAchecker_TMP_0; goto label_6656; } } 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_10501; } 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_10539; } 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_10573_0 = main____CPAchecker_TMP_0; label_10573:; main____CPAchecker_TMP_0 = __tmp_10573_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_10585_0 = main____CPAchecker_TMP_0; label_10585:; main____CPAchecker_TMP_0 = __tmp_10585_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_10600 = check__tmp; main__c1 = __return_10600; { _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_6626_0 = main____CPAchecker_TMP_0; goto label_6626; } } } } } } else { return __return_main; } } } } else { return __return_main; } } } else { label_10539:; mode2 = 0; goto label_10556; } } } else { send2 = node2__m2; mode2 = 0; goto label_10556; } } else { mode2 = 0; label_10556:; __tmp_6166_0 = main____CPAchecker_TMP_0; goto label_6166; } } else { return __return_main; } } } else { label_10501:; mode1 = 0; goto label_10518; } } } else { send1 = node1__m1; mode1 = 0; goto label_10518; } } else { mode1 = 0; label_10518:; __tmp_10394_0 = main____CPAchecker_TMP_0; goto label_10394; } } 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_10394_0 = main____CPAchecker_TMP_0; label_10394:; main____CPAchecker_TMP_0 = __tmp_10394_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_10410; } 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_10444_0 = main____CPAchecker_TMP_0; label_10444:; main____CPAchecker_TMP_0 = __tmp_10444_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_10456_0 = main____CPAchecker_TMP_0; label_10456:; main____CPAchecker_TMP_0 = __tmp_10456_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_10473 = check__tmp; main__c1 = __return_10473; { _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_6216_0 = main____CPAchecker_TMP_0; goto label_6216; } } } else { return __return_main; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { label_10410:; mode2 = 0; goto label_10427; } } } else { send2 = node2__m2; mode2 = 0; goto label_10427; } } else { mode2 = 0; label_10427:; __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_10731; } 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_10769; } 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_10803_0 = main____CPAchecker_TMP_0; label_10803:; main____CPAchecker_TMP_0 = __tmp_10803_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_10815_0 = main____CPAchecker_TMP_0; label_10815:; main____CPAchecker_TMP_0 = __tmp_10815_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_10830 = check__tmp; main__c1 = __return_10830; { _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_6626_0 = main____CPAchecker_TMP_0; goto label_6626; } } } } } } else { return __return_main; } } } } else { return __return_main; } } } else { label_10769:; mode2 = 0; goto label_10786; } } } else { send2 = node2__m2; mode2 = 0; goto label_10786; } } else { mode2 = 0; label_10786:; __tmp_6346_0 = main____CPAchecker_TMP_0; goto label_6346; } } else { return __return_main; } } } else { label_10731:; mode1 = 0; goto label_10748; } } } else { send1 = node1__m1; mode1 = 0; goto label_10748; } } else { mode1 = 0; label_10748:; __tmp_10624_0 = main____CPAchecker_TMP_0; goto label_10624; } } 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_10624_0 = main____CPAchecker_TMP_0; label_10624:; main____CPAchecker_TMP_0 = __tmp_10624_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_10640; } 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_10674_0 = main____CPAchecker_TMP_0; label_10674:; main____CPAchecker_TMP_0 = __tmp_10674_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_10686_0 = main____CPAchecker_TMP_0; label_10686:; main____CPAchecker_TMP_0 = __tmp_10686_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_10703 = check__tmp; main__c1 = __return_10703; { _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_18373; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; goto label_18373; } else { label_18373:; goto label_18366; } } } else { send1 = node1__m1; goto label_18366; } } else { label_18366:; mode1 = 0; label_18382:; __tmp_17249_0 = main____CPAchecker_TMP_0; goto label_17249; } } 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 { return __return_main; } } } } else { return __return_main; } } } else { label_10640:; mode2 = 0; goto label_10657; } } } else { send2 = node2__m2; mode2 = 0; goto label_10657; } } else { mode2 = 0; label_10657:; __tmp_6243_0 = main____CPAchecker_TMP_0; goto label_6243; } } 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_11917; } 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_11955; } 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_11989_0 = main____CPAchecker_TMP_0; label_11989:; main____CPAchecker_TMP_0 = __tmp_11989_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_12005; } 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_12048; } else { if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) == 1) { check__tmp = 1; goto label_12048; } else { check__tmp = 0; label_12048:; goto label_12042; } } } else { check__tmp = 0; label_12042:; __return_12054 = check__tmp; main__c1 = __return_12054; __tmp_8247_0 = main____CPAchecker_TMP_0; goto label_8247; } } } else { label_12005:; mode4 = 0; goto label_12022; } } } else { send4 = node4__m4; mode4 = 0; goto label_12022; } } else { mode4 = 0; label_12022:; __tmp_11523_0 = main____CPAchecker_TMP_0; goto label_11523; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_11955:; mode2 = 0; goto label_11972; } } } else { send2 = node2__m2; mode2 = 0; goto label_11972; } } else { mode2 = 0; label_11972:; __tmp_7287_0 = main____CPAchecker_TMP_0; goto label_7287; } } else { return __return_main; } } } else { label_11917:; mode1 = 0; goto label_11934; } } } else { send1 = node1__m1; mode1 = 0; goto label_11934; } } else { mode1 = 0; label_11934:; __tmp_11786_0 = main____CPAchecker_TMP_0; goto label_11786; } } 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_11786_0 = main____CPAchecker_TMP_0; label_11786:; main____CPAchecker_TMP_0 = __tmp_11786_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_11802; } 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_11836_0 = main____CPAchecker_TMP_0; label_11836:; main____CPAchecker_TMP_0 = __tmp_11836_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_11852; } 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_11889 = check__tmp; main__c1 = __return_11889; { _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_6626_0 = main____CPAchecker_TMP_0; goto label_6626; } } } } } else { label_11852:; mode4 = 0; goto label_11869; } } } else { send4 = node4__m4; mode4 = 0; goto label_11869; } } else { mode4 = 0; label_11869:; __tmp_11394_0 = main____CPAchecker_TMP_0; goto label_11394; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_11802:; mode2 = 0; goto label_11819; } } } else { send2 = node2__m2; mode2 = 0; goto label_11819; } } else { mode2 = 0; label_11819:; __tmp_7158_0 = main____CPAchecker_TMP_0; goto label_7158; } } 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_12158; } 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_12196; } 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_12230_0 = main____CPAchecker_TMP_0; label_12230:; main____CPAchecker_TMP_0 = __tmp_12230_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_12247; } } else { mode4 = 0; label_12247:; __tmp_11750_0 = main____CPAchecker_TMP_0; goto label_11750; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_12196:; mode2 = 0; goto label_12213; } } } else { send2 = node2__m2; mode2 = 0; goto label_12213; } } else { mode2 = 0; label_12213:; __tmp_7472_0 = main____CPAchecker_TMP_0; goto label_7472; } } else { return __return_main; } } } else { label_12158:; mode1 = 0; goto label_12175; } } } else { send1 = node1__m1; mode1 = 0; goto label_12175; } } else { mode1 = 0; label_12175:; __tmp_12070_0 = main____CPAchecker_TMP_0; goto label_12070; } } 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_12070_0 = main____CPAchecker_TMP_0; label_12070:; main____CPAchecker_TMP_0 = __tmp_12070_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_12086; } 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_12120_0 = main____CPAchecker_TMP_0; label_12120:; main____CPAchecker_TMP_0 = __tmp_12120_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_12137; } } else { mode4 = 0; label_12137:; __tmp_11621_0 = main____CPAchecker_TMP_0; goto label_11621; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_12086:; mode2 = 0; goto label_12103; } } } else { send2 = node2__m2; mode2 = 0; goto label_12103; } } else { mode2 = 0; label_12103:; __tmp_7388_0 = main____CPAchecker_TMP_0; goto label_7388; } } 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_11439; } 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_11477; } 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_11511_0 = main____CPAchecker_TMP_0; label_11511:; main____CPAchecker_TMP_0 = __tmp_11511_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_11523_0 = main____CPAchecker_TMP_0; label_11523:; main____CPAchecker_TMP_0 = __tmp_11523_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_11538 = check__tmp; main__c1 = __return_11538; { _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_11477:; mode2 = 0; goto label_11494; } } } else { send2 = node2__m2; mode2 = 0; goto label_11494; } } else { mode2 = 0; label_11494:; __tmp_6901_0 = main____CPAchecker_TMP_0; goto label_6901; } } else { return __return_main; } } } else { label_11439:; mode1 = 0; goto label_11456; } } } else { send1 = node1__m1; mode1 = 0; goto label_11456; } } else { mode1 = 0; label_11456:; __tmp_11332_0 = main____CPAchecker_TMP_0; goto label_11332; } } 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_11332_0 = main____CPAchecker_TMP_0; label_11332:; main____CPAchecker_TMP_0 = __tmp_11332_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_11348; } 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_11382_0 = main____CPAchecker_TMP_0; label_11382:; main____CPAchecker_TMP_0 = __tmp_11382_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_11394_0 = main____CPAchecker_TMP_0; label_11394:; main____CPAchecker_TMP_0 = __tmp_11394_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_11411 = check__tmp; main__c1 = __return_11411; { _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_18429; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; goto label_18429; } else { label_18429:; goto label_18422; } } } else { send1 = node1__m1; goto label_18422; } } else { label_18422:; mode1 = 0; label_18438:; __tmp_17249_0 = main____CPAchecker_TMP_0; goto label_17249; } } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; goto label_18446; } else { goto label_18443; } } else { label_18443:; node1____CPAchecker_TMP_0 = p1_new; label_18446:; p1_new = node1____CPAchecker_TMP_0; label_18449:; mode1 = 1; goto label_18438; } } 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_18458; } else { goto label_18455; } } else { label_18455:; node1____CPAchecker_TMP_1 = p1_new; label_18458:; p1_new = node1____CPAchecker_TMP_1; goto label_18449; } } else { goto label_18449; } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { label_11348:; mode2 = 0; goto label_11365; } } } else { send2 = node2__m2; mode2 = 0; goto label_11365; } } else { mode2 = 0; label_11365:; __tmp_6798_0 = main____CPAchecker_TMP_0; goto label_6798; } } 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_11666; } 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_11704; } 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_11738_0 = main____CPAchecker_TMP_0; label_11738:; main____CPAchecker_TMP_0 = __tmp_11738_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_11750_0 = main____CPAchecker_TMP_0; label_11750:; main____CPAchecker_TMP_0 = __tmp_11750_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_11765 = check__tmp; main__c1 = __return_11765; { _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_11704:; mode2 = 0; goto label_11721; } } } else { send2 = node2__m2; mode2 = 0; goto label_11721; } } else { mode2 = 0; label_11721:; __tmp_7081_0 = main____CPAchecker_TMP_0; goto label_7081; } } else { return __return_main; } } } else { label_11666:; mode1 = 0; goto label_11683; } } } else { send1 = node1__m1; mode1 = 0; goto label_11683; } } else { mode1 = 0; label_11683:; __tmp_11559_0 = main____CPAchecker_TMP_0; goto label_11559; } } 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_11559_0 = main____CPAchecker_TMP_0; label_11559:; main____CPAchecker_TMP_0 = __tmp_11559_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_11575; } 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_11609_0 = main____CPAchecker_TMP_0; label_11609:; main____CPAchecker_TMP_0 = __tmp_11609_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_11621_0 = main____CPAchecker_TMP_0; label_11621:; main____CPAchecker_TMP_0 = __tmp_11621_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_11638 = check__tmp; main__c1 = __return_11638; { _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_18480; } else { goto label_18477; } } else { label_18477:; node1____CPAchecker_TMP_0 = p1_new; label_18480:; p1_new = node1____CPAchecker_TMP_0; label_18483:; mode1 = 1; __tmp_17249_0 = main____CPAchecker_TMP_0; goto label_17249; } } 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_18492; } else { goto label_18489; } } else { label_18489:; node1____CPAchecker_TMP_1 = p1_new; label_18492:; p1_new = node1____CPAchecker_TMP_1; goto label_18483; } } else { goto label_18483; } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { label_11575:; mode2 = 0; goto label_11592; } } } else { send2 = node2__m2; mode2 = 0; goto label_11592; } } else { mode2 = 0; label_11592:; __tmp_6978_0 = main____CPAchecker_TMP_0; goto label_6978; } } 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_14318; } 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_14357; } } else { mode2 = 0; label_14357:; __tmp_9437_0 = main____CPAchecker_TMP_0; goto label_9437; } } else { return __return_main; } } } else { label_14318:; mode1 = 0; goto label_14335; } } } else { send1 = node1__m1; mode1 = 0; goto label_14335; } } else { mode1 = 0; label_14335:; __tmp_14280_0 = main____CPAchecker_TMP_0; goto label_14280; } } 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_14280_0 = main____CPAchecker_TMP_0; label_14280:; main____CPAchecker_TMP_0 = __tmp_14280_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_14297; } } else { mode2 = 0; label_14297:; __tmp_9308_0 = main____CPAchecker_TMP_0; goto label_9308; } } 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_14412; } 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_14451; } } else { mode2 = 0; label_14451:; __tmp_9619_0 = main____CPAchecker_TMP_0; goto label_9619; } } else { return __return_main; } } } else { label_14412:; mode1 = 0; goto label_14429; } } } else { send1 = node1__m1; mode1 = 0; goto label_14429; } } else { mode1 = 0; label_14429:; __tmp_14374_0 = main____CPAchecker_TMP_0; goto label_14374; } } 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_14374_0 = main____CPAchecker_TMP_0; label_14374:; main____CPAchecker_TMP_0 = __tmp_14374_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_14391; } } else { mode2 = 0; label_14391:; __tmp_9535_0 = main____CPAchecker_TMP_0; goto label_9535; } } 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_14130; } 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_14169; } } else { mode2 = 0; label_14169:; __tmp_9051_0 = main____CPAchecker_TMP_0; goto label_9051; } } else { return __return_main; } } } else { label_14130:; mode1 = 0; goto label_14147; } } } else { send1 = node1__m1; mode1 = 0; goto label_14147; } } else { mode1 = 0; label_14147:; __tmp_14092_0 = main____CPAchecker_TMP_0; goto label_14092; } } 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_14092_0 = main____CPAchecker_TMP_0; label_14092:; main____CPAchecker_TMP_0 = __tmp_14092_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_14109; } } else { mode2 = 0; label_14109:; __tmp_8948_0 = main____CPAchecker_TMP_0; goto label_8948; } } 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_14224; } 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_14263; } } else { mode2 = 0; label_14263:; __tmp_9231_0 = main____CPAchecker_TMP_0; goto label_9231; } } else { return __return_main; } } } else { label_14224:; mode1 = 0; goto label_14241; } } } else { send1 = node1__m1; mode1 = 0; goto label_14241; } } else { mode1 = 0; label_14241:; __tmp_14186_0 = main____CPAchecker_TMP_0; goto label_14186; } } 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_14186_0 = main____CPAchecker_TMP_0; label_14186:; main____CPAchecker_TMP_0 = __tmp_14186_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_14203; } } else { mode2 = 0; label_14203:; __tmp_9128_0 = main____CPAchecker_TMP_0; goto label_9128; } } 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_14694; } 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_14733; } } else { mode2 = 0; label_14733:; __tmp_10166_0 = main____CPAchecker_TMP_0; goto label_10166; } } else { return __return_main; } } } else { label_14694:; mode1 = 0; goto label_14711; } } } else { send1 = node1__m1; mode1 = 0; goto label_14711; } } else { mode1 = 0; label_14711:; __tmp_14656_0 = main____CPAchecker_TMP_0; goto label_14656; } } 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_14656_0 = main____CPAchecker_TMP_0; label_14656:; main____CPAchecker_TMP_0 = __tmp_14656_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_14673; } } else { mode2 = 0; label_14673:; __tmp_10037_0 = main____CPAchecker_TMP_0; goto label_10037; } } 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_14788; } 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_14827; } } else { mode2 = 0; label_14827:; __tmp_10348_0 = main____CPAchecker_TMP_0; goto label_10348; } } else { return __return_main; } } } else { label_14788:; mode1 = 0; goto label_14805; } } } else { send1 = node1__m1; mode1 = 0; goto label_14805; } } else { mode1 = 0; label_14805:; __tmp_14750_0 = main____CPAchecker_TMP_0; goto label_14750; } } 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_14750_0 = main____CPAchecker_TMP_0; label_14750:; main____CPAchecker_TMP_0 = __tmp_14750_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_14767; } } else { mode2 = 0; label_14767:; __tmp_10264_0 = main____CPAchecker_TMP_0; goto label_10264; } } 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_14506; } 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_14545; } } else { mode2 = 0; label_14545:; __tmp_9780_0 = main____CPAchecker_TMP_0; goto label_9780; } } else { return __return_main; } } } else { label_14506:; mode1 = 0; goto label_14523; } } } else { send1 = node1__m1; mode1 = 0; goto label_14523; } } else { mode1 = 0; label_14523:; __tmp_14468_0 = main____CPAchecker_TMP_0; goto label_14468; } } 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_14468_0 = main____CPAchecker_TMP_0; label_14468:; main____CPAchecker_TMP_0 = __tmp_14468_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_14485; } } else { mode2 = 0; label_14485:; __tmp_9677_0 = main____CPAchecker_TMP_0; goto label_9677; } } 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_14600; } 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_14639; } } else { mode2 = 0; label_14639:; __tmp_9960_0 = main____CPAchecker_TMP_0; goto label_9960; } } else { return __return_main; } } } else { label_14600:; mode1 = 0; goto label_14617; } } } else { send1 = node1__m1; mode1 = 0; goto label_14617; } } else { mode1 = 0; label_14617:; __tmp_14562_0 = main____CPAchecker_TMP_0; goto label_14562; } } 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_14562_0 = main____CPAchecker_TMP_0; label_14562:; main____CPAchecker_TMP_0 = __tmp_14562_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_14579; } } else { mode2 = 0; label_14579:; __tmp_9857_0 = main____CPAchecker_TMP_0; goto label_9857; } } 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_8109; } 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_8143_0 = main____CPAchecker_TMP_0; label_8143:; main____CPAchecker_TMP_0 = __tmp_8143_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_8159; } 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_8197; } 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_8240; } else { if ((((((int)st1) + ((int)st2)) + ((int)st3)) + ((int)st4)) == 1) { check__tmp = 1; goto label_8240; } else { check__tmp = 0; label_8240:; goto label_8234; } } } else { check__tmp = 0; label_8234:; __return_8246 = check__tmp; main__c1 = __return_8246; __tmp_8247_0 = main____CPAchecker_TMP_0; label_8247:; main____CPAchecker_TMP_0 = __tmp_8247_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_6626_0 = main____CPAchecker_TMP_0; goto label_6626; } } } } } else { label_8197:; mode4 = 0; goto label_8214; } } } else { send4 = node4__m4; mode4 = 0; goto label_8214; } } else { mode4 = 0; label_8214:; __tmp_7709_0 = main____CPAchecker_TMP_0; goto label_7709; } } else { return __return_main; } } } else { label_8159:; mode3 = 0; goto label_8176; } } } else { send3 = node3__m3; mode3 = 0; goto label_8176; } } else { mode3 = 0; label_8176:; __tmp_6564_0 = main____CPAchecker_TMP_0; goto label_6564; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_8109:; mode1 = 0; goto label_8126; } } } else { send1 = node1__m1; mode1 = 0; goto label_8126; } } else { mode1 = 0; label_8126:; __tmp_7978_0 = main____CPAchecker_TMP_0; goto label_7978; } } 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_7978_0 = main____CPAchecker_TMP_0; label_7978:; main____CPAchecker_TMP_0 = __tmp_7978_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_7990_0 = main____CPAchecker_TMP_0; label_7990:; main____CPAchecker_TMP_0 = __tmp_7990_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_8006; } 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_8044; } 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_8081 = check__tmp; main__c1 = __return_8081; { _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_6626_0 = main____CPAchecker_TMP_0; goto label_6626; } } } } } else { label_8044:; mode4 = 0; goto label_8061; } } } else { send4 = node4__m4; mode4 = 0; goto label_8061; } } else { mode4 = 0; label_8061:; __tmp_7580_0 = main____CPAchecker_TMP_0; goto label_7580; } } else { return __return_main; } } } else { label_8006:; mode3 = 0; goto label_8023; } } } else { send3 = node3__m3; mode3 = 0; goto label_8023; } } else { mode3 = 0; label_8023:; __tmp_6435_0 = main____CPAchecker_TMP_0; goto label_6435; } } 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_8358; } 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_8392_0 = main____CPAchecker_TMP_0; label_8392:; main____CPAchecker_TMP_0 = __tmp_8392_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_8408; } 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_8447; } } else { mode4 = 0; label_8447:; __tmp_7939_0 = main____CPAchecker_TMP_0; goto label_7939; } } else { return __return_main; } } } else { label_8408:; mode3 = 0; goto label_8425; } } } else { send3 = node3__m3; mode3 = 0; goto label_8425; } } else { mode3 = 0; label_8425:; __tmp_6752_0 = main____CPAchecker_TMP_0; goto label_6752; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_8358:; mode1 = 0; goto label_8375; } } } else { send1 = node1__m1; mode1 = 0; goto label_8375; } } else { mode1 = 0; label_8375:; __tmp_8270_0 = main____CPAchecker_TMP_0; goto label_8270; } } 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_8270_0 = main____CPAchecker_TMP_0; label_8270:; main____CPAchecker_TMP_0 = __tmp_8270_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_8282_0 = main____CPAchecker_TMP_0; label_8282:; main____CPAchecker_TMP_0 = __tmp_8282_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_8298; } 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_8337; } } else { mode4 = 0; label_8337:; __tmp_7810_0 = main____CPAchecker_TMP_0; goto label_7810; } } else { return __return_main; } } } else { label_8298:; mode3 = 0; goto label_8315; } } } else { send3 = node3__m3; mode3 = 0; goto label_8315; } } else { mode3 = 0; label_8315:; __tmp_6668_0 = main____CPAchecker_TMP_0; goto label_6668; } } 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_7625; } 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_7659_0 = main____CPAchecker_TMP_0; label_7659:; main____CPAchecker_TMP_0 = __tmp_7659_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_7675; } 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_7709_0 = main____CPAchecker_TMP_0; label_7709:; main____CPAchecker_TMP_0 = __tmp_7709_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_7724 = check__tmp; main__c1 = __return_7724; { _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_6626_0 = main____CPAchecker_TMP_0; goto label_6626; } } } } } } else { return __return_main; } } } else { label_7675:; mode3 = 0; goto label_7692; } } } else { send3 = node3__m3; mode3 = 0; goto label_7692; } } else { mode3 = 0; label_7692:; __tmp_6178_0 = main____CPAchecker_TMP_0; goto label_6178; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_7625:; mode1 = 0; goto label_7642; } } } else { send1 = node1__m1; mode1 = 0; goto label_7642; } } else { mode1 = 0; label_7642:; __tmp_7518_0 = main____CPAchecker_TMP_0; goto label_7518; } } 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_7518_0 = main____CPAchecker_TMP_0; label_7518:; main____CPAchecker_TMP_0 = __tmp_7518_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_7530_0 = main____CPAchecker_TMP_0; label_7530:; main____CPAchecker_TMP_0 = __tmp_7530_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_7546; } 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_7580_0 = main____CPAchecker_TMP_0; label_7580:; main____CPAchecker_TMP_0 = __tmp_7580_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_7597 = check__tmp; main__c1 = __return_7597; { _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_6216_0 = main____CPAchecker_TMP_0; goto label_6216; } } } else { return __return_main; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_7546:; mode3 = 0; goto label_7563; } } } else { send3 = node3__m3; mode3 = 0; goto label_7563; } } else { mode3 = 0; label_7563:; __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_7855; } 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_7889_0 = main____CPAchecker_TMP_0; label_7889:; main____CPAchecker_TMP_0 = __tmp_7889_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_7905; } 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_7939_0 = main____CPAchecker_TMP_0; label_7939:; main____CPAchecker_TMP_0 = __tmp_7939_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_7954 = check__tmp; main__c1 = __return_7954; { _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_6626_0 = main____CPAchecker_TMP_0; goto label_6626; } } } } } } else { return __return_main; } } } else { label_7905:; mode3 = 0; goto label_7922; } } } else { send3 = node3__m3; mode3 = 0; goto label_7922; } } else { mode3 = 0; label_7922:; __tmp_6358_0 = main____CPAchecker_TMP_0; goto label_6358; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_7855:; mode1 = 0; goto label_7872; } } } else { send1 = node1__m1; mode1 = 0; goto label_7872; } } else { mode1 = 0; label_7872:; __tmp_7748_0 = main____CPAchecker_TMP_0; goto label_7748; } } 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_7748_0 = main____CPAchecker_TMP_0; label_7748:; main____CPAchecker_TMP_0 = __tmp_7748_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_7760_0 = main____CPAchecker_TMP_0; label_7760:; main____CPAchecker_TMP_0 = __tmp_7760_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_7776; } 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_7810_0 = main____CPAchecker_TMP_0; label_7810:; main____CPAchecker_TMP_0 = __tmp_7810_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_7827 = check__tmp; main__c1 = __return_7827; { _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_17742; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; goto label_17742; } else { label_17742:; goto label_17735; } } } else { send1 = node1__m1; goto label_17735; } } else { label_17735:; mode1 = 0; label_17751:; __tmp_17249_0 = main____CPAchecker_TMP_0; goto label_17249; } } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; goto label_17759; } else { goto label_17756; } } else { label_17756:; node1____CPAchecker_TMP_0 = p1_new; label_17759:; p1_new = node1____CPAchecker_TMP_0; label_17762:; mode1 = 1; goto label_17751; } } 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_17771; } else { goto label_17768; } } else { label_17768:; node1____CPAchecker_TMP_1 = p1_new; label_17771:; p1_new = node1____CPAchecker_TMP_1; goto label_17762; } } else { goto label_17762; } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_7776:; mode3 = 0; goto label_7793; } } } else { send3 = node3__m3; mode3 = 0; goto label_7793; } } else { mode3 = 0; label_7793:; __tmp_6255_0 = main____CPAchecker_TMP_0; goto label_6255; } } 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_8750; } 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_8784_0 = main____CPAchecker_TMP_0; label_8784:; main____CPAchecker_TMP_0 = __tmp_8784_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_8801; } } else { mode3 = 0; label_8801:; __tmp_7299_0 = main____CPAchecker_TMP_0; goto label_7299; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_8750:; mode1 = 0; goto label_8767; } } } else { send1 = node1__m1; mode1 = 0; goto label_8767; } } else { mode1 = 0; label_8767:; __tmp_8700_0 = main____CPAchecker_TMP_0; goto label_8700; } } 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_8700_0 = main____CPAchecker_TMP_0; label_8700:; main____CPAchecker_TMP_0 = __tmp_8700_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_8712_0 = main____CPAchecker_TMP_0; label_8712:; main____CPAchecker_TMP_0 = __tmp_8712_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_8729; } } else { mode3 = 0; label_8729:; __tmp_7170_0 = main____CPAchecker_TMP_0; goto label_7170; } } 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_8868; } 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_8902_0 = main____CPAchecker_TMP_0; label_8902:; main____CPAchecker_TMP_0 = __tmp_8902_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_8919; } } else { mode3 = 0; label_8919:; __tmp_7484_0 = main____CPAchecker_TMP_0; goto label_7484; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_8868:; mode1 = 0; goto label_8885; } } } else { send1 = node1__m1; mode1 = 0; goto label_8885; } } else { mode1 = 0; label_8885:; __tmp_8818_0 = main____CPAchecker_TMP_0; goto label_8818; } } 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_8818_0 = main____CPAchecker_TMP_0; label_8818:; main____CPAchecker_TMP_0 = __tmp_8818_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_8830_0 = main____CPAchecker_TMP_0; label_8830:; main____CPAchecker_TMP_0 = __tmp_8830_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_8847; } } else { mode3 = 0; label_8847:; __tmp_7400_0 = main____CPAchecker_TMP_0; goto label_7400; } } 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_8514; } 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_8548_0 = main____CPAchecker_TMP_0; label_8548:; main____CPAchecker_TMP_0 = __tmp_8548_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_8565; } } else { mode3 = 0; label_8565:; __tmp_6913_0 = main____CPAchecker_TMP_0; goto label_6913; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_8514:; mode1 = 0; goto label_8531; } } } else { send1 = node1__m1; mode1 = 0; goto label_8531; } } else { mode1 = 0; label_8531:; __tmp_8464_0 = main____CPAchecker_TMP_0; goto label_8464; } } 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_8464_0 = main____CPAchecker_TMP_0; label_8464:; main____CPAchecker_TMP_0 = __tmp_8464_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_8476_0 = main____CPAchecker_TMP_0; label_8476:; main____CPAchecker_TMP_0 = __tmp_8476_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_8493; } } else { mode3 = 0; label_8493:; __tmp_6810_0 = main____CPAchecker_TMP_0; goto label_6810; } } 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_8632; } 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_8666_0 = main____CPAchecker_TMP_0; label_8666:; main____CPAchecker_TMP_0 = __tmp_8666_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_8683; } } else { mode3 = 0; label_8683:; __tmp_7093_0 = main____CPAchecker_TMP_0; goto label_7093; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_8632:; mode1 = 0; goto label_8649; } } } else { send1 = node1__m1; mode1 = 0; goto label_8649; } } else { mode1 = 0; label_8649:; __tmp_8582_0 = main____CPAchecker_TMP_0; goto label_8582; } } 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_8582_0 = main____CPAchecker_TMP_0; label_8582:; main____CPAchecker_TMP_0 = __tmp_8582_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_8594_0 = main____CPAchecker_TMP_0; label_8594:; main____CPAchecker_TMP_0 = __tmp_8594_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_8611; } } else { mode3 = 0; label_8611:; __tmp_6990_0 = main____CPAchecker_TMP_0; goto label_6990; } } 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_6518; } 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_6552_0 = main____CPAchecker_TMP_0; label_6552:; main____CPAchecker_TMP_0 = __tmp_6552_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_6564_0 = main____CPAchecker_TMP_0; label_6564:; main____CPAchecker_TMP_0 = __tmp_6564_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_6580; } 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_6617 = check__tmp; main__c1 = __return_6617; { _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_6626_0 = main____CPAchecker_TMP_0; label_6626:; main____CPAchecker_TMP_0 = __tmp_6626_0; int main____CPAchecker_TMP_0 = main__i2; main__i2 = main__i2 + 1; __tmp_6216_0 = main____CPAchecker_TMP_0; goto label_6216; } } } } } else { label_6580:; mode4 = 0; goto label_6597; } } } else { send4 = node4__m4; mode4 = 0; goto label_6597; } } else { mode4 = 0; label_6597:; __tmp_6190_0 = main____CPAchecker_TMP_0; goto label_6190; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { label_6518:; mode1 = 0; goto label_6535; } } } else { send1 = node1__m1; mode1 = 0; goto label_6535; } } else { mode1 = 0; label_6535:; __tmp_6411_0 = main____CPAchecker_TMP_0; goto label_6411; } } 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_6411_0 = main____CPAchecker_TMP_0; label_6411:; main____CPAchecker_TMP_0 = __tmp_6411_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_6423_0 = main____CPAchecker_TMP_0; label_6423:; main____CPAchecker_TMP_0 = __tmp_6423_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_6435_0 = main____CPAchecker_TMP_0; label_6435:; main____CPAchecker_TMP_0 = __tmp_6435_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_6451; } 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_6490 = check__tmp; main__c1 = __return_6490; { _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_6216_0 = main____CPAchecker_TMP_0; goto label_6216; } } } else { return __return_main; } } else { return __return_main; } } } else { label_6451:; mode4 = 0; goto label_6468; } } } else { send4 = node4__m4; mode4 = 0; goto label_6468; } } else { mode4 = 0; label_6468:; __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_6706; } 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_6740_0 = main____CPAchecker_TMP_0; label_6740:; main____CPAchecker_TMP_0 = __tmp_6740_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_6752_0 = main____CPAchecker_TMP_0; label_6752:; main____CPAchecker_TMP_0 = __tmp_6752_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_6769; } } else { mode4 = 0; label_6769:; __tmp_6370_0 = main____CPAchecker_TMP_0; goto label_6370; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { label_6706:; mode1 = 0; goto label_6723; } } } else { send1 = node1__m1; mode1 = 0; goto label_6723; } } else { mode1 = 0; label_6723:; __tmp_6644_0 = main____CPAchecker_TMP_0; goto label_6644; } } 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_6644_0 = main____CPAchecker_TMP_0; label_6644:; main____CPAchecker_TMP_0 = __tmp_6644_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_6656_0 = main____CPAchecker_TMP_0; label_6656:; main____CPAchecker_TMP_0 = __tmp_6656_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_6668_0 = main____CPAchecker_TMP_0; label_6668:; main____CPAchecker_TMP_0 = __tmp_6668_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_6685; } } else { mode4 = 0; label_6685:; __tmp_6267_0 = main____CPAchecker_TMP_0; goto label_6267; } } 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_6132; } 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_6166_0 = main____CPAchecker_TMP_0; label_6166:; main____CPAchecker_TMP_0 = __tmp_6166_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_6178_0 = main____CPAchecker_TMP_0; label_6178:; main____CPAchecker_TMP_0 = __tmp_6178_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_6190_0 = main____CPAchecker_TMP_0; label_6190:; main____CPAchecker_TMP_0 = __tmp_6190_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_6207 = check__tmp; main__c1 = __return_6207; { _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_6216_0 = main____CPAchecker_TMP_0; label_6216:; main____CPAchecker_TMP_0 = __tmp_6216_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_17430; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; goto label_17430; } else { label_17430:; goto label_17423; } } } else { send1 = node1__m1; goto label_17423; } } else { label_17423:; mode1 = 0; label_17439:; __tmp_17249_0 = main____CPAchecker_TMP_0; goto label_17249; } } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; goto label_17447; } else { goto label_17444; } } else { label_17444:; node1____CPAchecker_TMP_0 = p1_new; label_17447:; p1_new = node1____CPAchecker_TMP_0; label_17450:; mode1 = 1; goto label_17439; } } 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_17459; } else { goto label_17456; } } else { label_17456:; node1____CPAchecker_TMP_1 = p1_new; label_17459:; p1_new = node1____CPAchecker_TMP_1; goto label_17450; } } else { goto label_17450; } } } } } else { __return_17412 = 0; return __return_17412; } } } } else { return __return_main; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { label_6132:; mode1 = 0; goto label_6149; } } } else { send1 = node1__m1; mode1 = 0; goto label_6149; } } else { mode1 = 0; label_6149:; __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_17230; } else { goto label_17227; } } else { label_17227:; node1____CPAchecker_TMP_0 = p1_new; label_17230:; p1_new = node1____CPAchecker_TMP_0; label_17233:; mode1 = 1; __tmp_17249_0 = main____CPAchecker_TMP_0; label_17249:; main____CPAchecker_TMP_0 = __tmp_17249_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_17266; } else { if (((int)node2__m2) == ((int)id2)) { st2 = 1; goto label_17266; } else { label_17266:; goto label_17259; } } } else { send2 = node2__m2; goto label_17259; } } else { label_17259:; mode2 = 0; label_17275:; __tmp_17302_0 = main____CPAchecker_TMP_0; label_17302:; main____CPAchecker_TMP_0 = __tmp_17302_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_17319; } else { if (((int)node3__m3) == ((int)id3)) { st3 = 1; goto label_17319; } else { label_17319:; goto label_17312; } } } else { send3 = node3__m3; goto label_17312; } } else { label_17312:; mode3 = 0; label_17328:; { 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_17372; } else { if (((int)node4__m4) == ((int)id4)) { st4 = 1; goto label_17372; } else { label_17372:; goto label_17365; } } } else { send4 = node4__m4; goto label_17365; } } else { label_17365:; mode4 = 0; label_17381:; __tmp_13122_0 = main____CPAchecker_TMP_0; goto label_13122; } } else { if (!(alive4 == 0)) { int node4____CPAchecker_TMP_0; if (send4 != nomsg) { if (p4_new == nomsg) { node4____CPAchecker_TMP_0 = send4; goto label_17389; } else { goto label_17386; } } else { label_17386:; node4____CPAchecker_TMP_0 = p4_new; label_17389:; p4_new = node4____CPAchecker_TMP_0; label_17392:; mode4 = 1; goto label_17381; } } 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_17401; } else { goto label_17398; } } else { label_17398:; node4____CPAchecker_TMP_1 = p4_new; label_17401:; p4_new = node4____CPAchecker_TMP_1; goto label_17392; } } else { goto label_17392; } } } } } } else { if (!(alive3 == 0)) { int node3____CPAchecker_TMP_0; if (send3 != nomsg) { if (p3_new == nomsg) { node3____CPAchecker_TMP_0 = send3; goto label_17336; } else { goto label_17333; } } else { label_17333:; node3____CPAchecker_TMP_0 = p3_new; label_17336:; p3_new = node3____CPAchecker_TMP_0; label_17339:; mode3 = 1; goto label_17328; } } 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_17348; } else { goto label_17345; } } else { label_17345:; node3____CPAchecker_TMP_1 = p3_new; label_17348:; p3_new = node3____CPAchecker_TMP_1; goto label_17339; } } else { goto label_17339; } } } } } } else { if (!(alive2 == 0)) { int node2____CPAchecker_TMP_0; if (send2 != nomsg) { if (p2_new == nomsg) { node2____CPAchecker_TMP_0 = send2; goto label_17283; } else { goto label_17280; } } else { label_17280:; node2____CPAchecker_TMP_0 = p2_new; label_17283:; p2_new = node2____CPAchecker_TMP_0; label_17286:; mode2 = 1; goto label_17275; } } 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_17295; } else { goto label_17292; } } else { label_17292:; node2____CPAchecker_TMP_1 = p2_new; label_17295:; p2_new = node2____CPAchecker_TMP_1; goto label_17286; } } else { goto label_17286; } } } } } } 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_17242; } else { goto label_17239; } } else { label_17239:; node1____CPAchecker_TMP_1 = p1_new; label_17242:; p1_new = node1____CPAchecker_TMP_1; goto label_17233; } } else { goto label_17233; } } } } } 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_6312; } 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_6346_0 = main____CPAchecker_TMP_0; label_6346:; main____CPAchecker_TMP_0 = __tmp_6346_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_6358_0 = main____CPAchecker_TMP_0; label_6358:; main____CPAchecker_TMP_0 = __tmp_6358_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_6370_0 = main____CPAchecker_TMP_0; label_6370:; main____CPAchecker_TMP_0 = __tmp_6370_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_6387 = check__tmp; main__c1 = __return_6387; { _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_6216_0 = main____CPAchecker_TMP_0; goto label_6216; } } } else { return __return_main; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { label_6312:; mode1 = 0; goto label_6329; } } } else { send1 = node1__m1; mode1 = 0; goto label_6329; } } else { mode1 = 0; label_6329:; __tmp_6231_0 = main____CPAchecker_TMP_0; goto label_6231; } } 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_6231_0 = main____CPAchecker_TMP_0; label_6231:; main____CPAchecker_TMP_0 = __tmp_6231_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_6243_0 = main____CPAchecker_TMP_0; label_6243:; main____CPAchecker_TMP_0 = __tmp_6243_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_6255_0 = main____CPAchecker_TMP_0; label_6255:; main____CPAchecker_TMP_0 = __tmp_6255_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_6267_0 = main____CPAchecker_TMP_0; label_6267:; main____CPAchecker_TMP_0 = __tmp_6267_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_6284 = check__tmp; main__c1 = __return_6284; { _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_17482; } else { return __return_main; } } else { node1____CPAchecker_TMP_0 = p1_new; p1_new = node1____CPAchecker_TMP_0; label_17482:; label_17484:; mode1 = 1; label_17498:; __tmp_17249_0 = main____CPAchecker_TMP_0; goto label_17249; } } 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_17492; } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; label_17492:; p1_new = node1____CPAchecker_TMP_1; goto label_17484; } } else { mode1 = 1; goto label_17498; } } } } } 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_7253; } 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_7287_0 = main____CPAchecker_TMP_0; label_7287:; main____CPAchecker_TMP_0 = __tmp_7287_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_7299_0 = main____CPAchecker_TMP_0; label_7299:; main____CPAchecker_TMP_0 = __tmp_7299_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_7315; } 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_7352 = check__tmp; main__c1 = __return_7352; { _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_6626_0 = main____CPAchecker_TMP_0; goto label_6626; } } } } } else { label_7315:; mode4 = 0; goto label_7332; } } } else { send4 = node4__m4; mode4 = 0; goto label_7332; } } else { mode4 = 0; label_7332:; __tmp_6925_0 = main____CPAchecker_TMP_0; goto label_6925; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { label_7253:; mode1 = 0; goto label_7270; } } } else { send1 = node1__m1; mode1 = 0; goto label_7270; } } else { mode1 = 0; label_7270:; __tmp_7146_0 = main____CPAchecker_TMP_0; goto label_7146; } } 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_7146_0 = main____CPAchecker_TMP_0; label_7146:; main____CPAchecker_TMP_0 = __tmp_7146_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_7158_0 = main____CPAchecker_TMP_0; label_7158:; main____CPAchecker_TMP_0 = __tmp_7158_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_7170_0 = main____CPAchecker_TMP_0; label_7170:; main____CPAchecker_TMP_0 = __tmp_7170_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_7186; } 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_7225 = check__tmp; main__c1 = __return_7225; { _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_6216_0 = main____CPAchecker_TMP_0; goto label_6216; } } } else { return __return_main; } } else { return __return_main; } } } else { label_7186:; mode4 = 0; goto label_7203; } } } else { send4 = node4__m4; mode4 = 0; goto label_7203; } } else { mode4 = 0; label_7203:; __tmp_6822_0 = main____CPAchecker_TMP_0; goto label_6822; } } 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_7438; } 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_7472_0 = main____CPAchecker_TMP_0; label_7472:; main____CPAchecker_TMP_0 = __tmp_7472_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_7484_0 = main____CPAchecker_TMP_0; label_7484:; main____CPAchecker_TMP_0 = __tmp_7484_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_7501; } } else { mode4 = 0; label_7501:; __tmp_7105_0 = main____CPAchecker_TMP_0; goto label_7105; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { label_7438:; mode1 = 0; goto label_7455; } } } else { send1 = node1__m1; mode1 = 0; goto label_7455; } } else { mode1 = 0; label_7455:; __tmp_7376_0 = main____CPAchecker_TMP_0; goto label_7376; } } 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_7376_0 = main____CPAchecker_TMP_0; label_7376:; main____CPAchecker_TMP_0 = __tmp_7376_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_7388_0 = main____CPAchecker_TMP_0; label_7388:; main____CPAchecker_TMP_0 = __tmp_7388_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_7400_0 = main____CPAchecker_TMP_0; label_7400:; main____CPAchecker_TMP_0 = __tmp_7400_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_7417; } } else { mode4 = 0; label_7417:; __tmp_7002_0 = main____CPAchecker_TMP_0; goto label_7002; } } 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_6867; } 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_6901_0 = main____CPAchecker_TMP_0; label_6901:; main____CPAchecker_TMP_0 = __tmp_6901_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_6913_0 = main____CPAchecker_TMP_0; label_6913:; main____CPAchecker_TMP_0 = __tmp_6913_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_6925_0 = main____CPAchecker_TMP_0; label_6925:; main____CPAchecker_TMP_0 = __tmp_6925_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_6942 = check__tmp; main__c1 = __return_6942; { _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_17556; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; goto label_17556; } else { label_17556:; goto label_17549; } } } else { send1 = node1__m1; goto label_17549; } } else { label_17549:; mode1 = 0; label_17565:; __tmp_17249_0 = main____CPAchecker_TMP_0; goto label_17249; } } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; goto label_17573; } else { goto label_17570; } } else { label_17570:; node1____CPAchecker_TMP_0 = p1_new; label_17573:; p1_new = node1____CPAchecker_TMP_0; label_17576:; mode1 = 1; goto label_17565; } } 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_17585; } else { goto label_17582; } } else { label_17582:; node1____CPAchecker_TMP_1 = p1_new; label_17585:; p1_new = node1____CPAchecker_TMP_1; goto label_17576; } } else { goto label_17576; } } } } } 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 { label_6867:; mode1 = 0; goto label_6884; } } } else { send1 = node1__m1; mode1 = 0; goto label_6884; } } else { mode1 = 0; label_6884:; __tmp_6786_0 = main____CPAchecker_TMP_0; goto label_6786; } } 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_6786_0 = main____CPAchecker_TMP_0; label_6786:; main____CPAchecker_TMP_0 = __tmp_6786_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_6798_0 = main____CPAchecker_TMP_0; label_6798:; main____CPAchecker_TMP_0 = __tmp_6798_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_6810_0 = main____CPAchecker_TMP_0; label_6810:; main____CPAchecker_TMP_0 = __tmp_6810_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_6822_0 = main____CPAchecker_TMP_0; label_6822:; main____CPAchecker_TMP_0 = __tmp_6822_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_6839 = check__tmp; main__c1 = __return_6839; { _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_17517; } else { return __return_main; } } else { node1____CPAchecker_TMP_0 = p1_new; p1_new = node1____CPAchecker_TMP_0; label_17517:; label_17519:; mode1 = 1; label_17533:; __tmp_17249_0 = main____CPAchecker_TMP_0; goto label_17249; } } 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_17527; } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; label_17527:; p1_new = node1____CPAchecker_TMP_1; goto label_17519; } } else { mode1 = 1; goto label_17533; } } } } } 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_7047; } 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_7081_0 = main____CPAchecker_TMP_0; label_7081:; main____CPAchecker_TMP_0 = __tmp_7081_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_7093_0 = main____CPAchecker_TMP_0; label_7093:; main____CPAchecker_TMP_0 = __tmp_7093_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_7105_0 = main____CPAchecker_TMP_0; label_7105:; main____CPAchecker_TMP_0 = __tmp_7105_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_7122 = check__tmp; main__c1 = __return_7122; { _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_17686; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; goto label_17686; } else { label_17686:; goto label_17679; } } } else { send1 = node1__m1; goto label_17679; } } else { label_17679:; mode1 = 0; label_17695:; __tmp_17249_0 = main____CPAchecker_TMP_0; goto label_17249; } } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; goto label_17703; } else { goto label_17700; } } else { label_17700:; node1____CPAchecker_TMP_0 = p1_new; label_17703:; p1_new = node1____CPAchecker_TMP_0; label_17706:; mode1 = 1; goto label_17695; } } 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_17715; } else { goto label_17712; } } else { label_17712:; node1____CPAchecker_TMP_1 = p1_new; label_17715:; p1_new = node1____CPAchecker_TMP_1; goto label_17706; } } else { goto label_17706; } } } } } 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 { label_7047:; mode1 = 0; goto label_7064; } } } else { send1 = node1__m1; mode1 = 0; goto label_7064; } } else { mode1 = 0; label_7064:; __tmp_6966_0 = main____CPAchecker_TMP_0; goto label_6966; } } 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_6966_0 = main____CPAchecker_TMP_0; label_6966:; main____CPAchecker_TMP_0 = __tmp_6966_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_6978_0 = main____CPAchecker_TMP_0; label_6978:; main____CPAchecker_TMP_0 = __tmp_6978_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_6990_0 = main____CPAchecker_TMP_0; label_6990:; main____CPAchecker_TMP_0 = __tmp_6990_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_7002_0 = main____CPAchecker_TMP_0; label_7002:; main____CPAchecker_TMP_0 = __tmp_7002_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_7019 = check__tmp; main__c1 = __return_7019; { _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_17611:; mode1 = 1; goto label_17628; } else { return __return_main; } } else { node1____CPAchecker_TMP_0 = p1_new; p1_new = node1____CPAchecker_TMP_0; mode1 = 1; label_17628:; __tmp_17249_0 = main____CPAchecker_TMP_0; goto label_17249; } } 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_17611; } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; p1_new = node1____CPAchecker_TMP_1; goto label_17614; } } else { label_17614:; mode1 = 1; __tmp_17634_0 = main____CPAchecker_TMP_0; label_17634:; main____CPAchecker_TMP_0 = __tmp_17634_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_17647; } else { goto label_17644; } } else { label_17644:; node2____CPAchecker_TMP_0 = p2_new; label_17647:; p2_new = node2____CPAchecker_TMP_0; label_17650:; mode2 = 1; __tmp_17302_0 = main____CPAchecker_TMP_0; goto label_17302; } } 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_17659; } else { goto label_17656; } } else { label_17656:; node2____CPAchecker_TMP_1 = p2_new; label_17659:; p2_new = node2____CPAchecker_TMP_1; goto label_17650; } } else { goto label_17650; } } } } } } } } } 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_9403; } 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_9437_0 = main____CPAchecker_TMP_0; label_9437:; main____CPAchecker_TMP_0 = __tmp_9437_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_9465; } 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_9502 = check__tmp; main__c1 = __return_9502; { _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_9465:; mode4 = 0; goto label_9482; } } } else { send4 = node4__m4; mode4 = 0; goto label_9482; } } else { mode4 = 0; label_9482:; __tmp_9075_0 = main____CPAchecker_TMP_0; goto label_9075; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { label_9403:; mode1 = 0; goto label_9420; } } } else { send1 = node1__m1; mode1 = 0; goto label_9420; } } else { mode1 = 0; label_9420:; __tmp_9296_0 = main____CPAchecker_TMP_0; goto label_9296; } } 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_9296_0 = main____CPAchecker_TMP_0; label_9296:; main____CPAchecker_TMP_0 = __tmp_9296_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_9308_0 = main____CPAchecker_TMP_0; label_9308:; main____CPAchecker_TMP_0 = __tmp_9308_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_9336; } 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_9375 = check__tmp; main__c1 = __return_9375; { _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_18009; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; goto label_18009; } else { label_18009:; goto label_18002; } } } else { send1 = node1__m1; goto label_18002; } } else { label_18002:; mode1 = 0; label_18018:; __tmp_17249_0 = main____CPAchecker_TMP_0; goto label_17249; } } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; goto label_18026; } else { goto label_18023; } } else { label_18023:; node1____CPAchecker_TMP_0 = p1_new; label_18026:; p1_new = node1____CPAchecker_TMP_0; label_18029:; mode1 = 1; goto label_18018; } } 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_18038; } else { goto label_18035; } } else { label_18035:; node1____CPAchecker_TMP_1 = p1_new; label_18038:; p1_new = node1____CPAchecker_TMP_1; goto label_18029; } } else { goto label_18029; } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { label_9336:; mode4 = 0; goto label_9353; } } } else { send4 = node4__m4; mode4 = 0; goto label_9353; } } else { mode4 = 0; label_9353:; __tmp_8972_0 = main____CPAchecker_TMP_0; goto label_8972; } } 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_9585; } 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_9619_0 = main____CPAchecker_TMP_0; label_9619:; main____CPAchecker_TMP_0 = __tmp_9619_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_9648; } } else { mode4 = 0; label_9648:; __tmp_9255_0 = main____CPAchecker_TMP_0; goto label_9255; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { label_9585:; mode1 = 0; goto label_9602; } } } else { send1 = node1__m1; mode1 = 0; goto label_9602; } } else { mode1 = 0; label_9602:; __tmp_9523_0 = main____CPAchecker_TMP_0; goto label_9523; } } 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_9523_0 = main____CPAchecker_TMP_0; label_9523:; main____CPAchecker_TMP_0 = __tmp_9523_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_9535_0 = main____CPAchecker_TMP_0; label_9535:; main____CPAchecker_TMP_0 = __tmp_9535_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_9564; } } else { mode4 = 0; label_9564:; __tmp_9152_0 = main____CPAchecker_TMP_0; goto label_9152; } } 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_9017; } 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_9051_0 = main____CPAchecker_TMP_0; label_9051:; main____CPAchecker_TMP_0 = __tmp_9051_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_9075_0 = main____CPAchecker_TMP_0; label_9075:; main____CPAchecker_TMP_0 = __tmp_9075_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_9092 = check__tmp; main__c1 = __return_9092; { _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_17833; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; goto label_17833; } else { label_17833:; goto label_17826; } } } else { send1 = node1__m1; goto label_17826; } } else { label_17826:; mode1 = 0; label_17842:; __tmp_17249_0 = main____CPAchecker_TMP_0; goto label_17249; } } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; goto label_17850; } else { goto label_17847; } } else { label_17847:; node1____CPAchecker_TMP_0 = p1_new; label_17850:; p1_new = node1____CPAchecker_TMP_0; label_17853:; mode1 = 1; goto label_17842; } } 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_17862; } else { goto label_17859; } } else { label_17859:; node1____CPAchecker_TMP_1 = p1_new; label_17862:; p1_new = node1____CPAchecker_TMP_1; goto label_17853; } } else { goto label_17853; } } } } } 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 { label_9017:; mode1 = 0; goto label_9034; } } } else { send1 = node1__m1; mode1 = 0; goto label_9034; } } else { mode1 = 0; label_9034:; __tmp_8936_0 = main____CPAchecker_TMP_0; goto label_8936; } } 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_8936_0 = main____CPAchecker_TMP_0; label_8936:; main____CPAchecker_TMP_0 = __tmp_8936_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_8948_0 = main____CPAchecker_TMP_0; label_8948:; main____CPAchecker_TMP_0 = __tmp_8948_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_8972_0 = main____CPAchecker_TMP_0; label_8972:; main____CPAchecker_TMP_0 = __tmp_8972_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_8989 = check__tmp; main__c1 = __return_8989; { _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_17794; } else { return __return_main; } } else { node1____CPAchecker_TMP_0 = p1_new; p1_new = node1____CPAchecker_TMP_0; label_17794:; label_17796:; mode1 = 1; label_17810:; __tmp_17249_0 = main____CPAchecker_TMP_0; goto label_17249; } } 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_17804; } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; label_17804:; p1_new = node1____CPAchecker_TMP_1; goto label_17796; } } else { mode1 = 1; goto label_17810; } } } } } 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_9197; } 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_9231_0 = main____CPAchecker_TMP_0; label_9231:; main____CPAchecker_TMP_0 = __tmp_9231_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_9255_0 = main____CPAchecker_TMP_0; label_9255:; main____CPAchecker_TMP_0 = __tmp_9255_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_9272 = check__tmp; main__c1 = __return_9272; { _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_17953; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; goto label_17953; } else { label_17953:; goto label_17946; } } } else { send1 = node1__m1; goto label_17946; } } else { label_17946:; mode1 = 0; label_17962:; __tmp_17249_0 = main____CPAchecker_TMP_0; goto label_17249; } } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; goto label_17970; } else { goto label_17967; } } else { label_17967:; node1____CPAchecker_TMP_0 = p1_new; label_17970:; p1_new = node1____CPAchecker_TMP_0; label_17973:; mode1 = 1; goto label_17962; } } 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_17982; } else { goto label_17979; } } else { label_17979:; node1____CPAchecker_TMP_1 = p1_new; label_17982:; p1_new = node1____CPAchecker_TMP_1; goto label_17973; } } else { goto label_17973; } } } } } 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 { label_9197:; mode1 = 0; goto label_9214; } } } else { send1 = node1__m1; mode1 = 0; goto label_9214; } } else { mode1 = 0; label_9214:; __tmp_9116_0 = main____CPAchecker_TMP_0; goto label_9116; } } 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_9116_0 = main____CPAchecker_TMP_0; label_9116:; main____CPAchecker_TMP_0 = __tmp_9116_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_9128_0 = main____CPAchecker_TMP_0; label_9128:; main____CPAchecker_TMP_0 = __tmp_9128_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_9152_0 = main____CPAchecker_TMP_0; label_9152:; main____CPAchecker_TMP_0 = __tmp_9152_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_9169 = check__tmp; main__c1 = __return_9169; { _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_17888:; mode1 = 1; goto label_17905; } else { return __return_main; } } else { node1____CPAchecker_TMP_0 = p1_new; p1_new = node1____CPAchecker_TMP_0; mode1 = 1; label_17905:; __tmp_17249_0 = main____CPAchecker_TMP_0; goto label_17249; } } 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_17888; } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; p1_new = node1____CPAchecker_TMP_1; goto label_17891; } } else { label_17891:; mode1 = 1; __tmp_17911_0 = main____CPAchecker_TMP_0; label_17911:; main____CPAchecker_TMP_0 = __tmp_17911_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_17926; } else { goto label_17923; } } else { label_17923:; node2____CPAchecker_TMP_1 = p2_new; label_17926:; p2_new = node2____CPAchecker_TMP_1; goto label_17920; } } else { label_17920:; mode2 = 1; __tmp_17302_0 = main____CPAchecker_TMP_0; goto label_17302; } } } } } } } } } 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_10132; } 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_10166_0 = main____CPAchecker_TMP_0; label_10166:; main____CPAchecker_TMP_0 = __tmp_10166_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_10194; } 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_10231 = check__tmp; main__c1 = __return_10231; { _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_10194:; mode4 = 0; goto label_10211; } } } else { send4 = node4__m4; mode4 = 0; goto label_10211; } } else { mode4 = 0; label_10211:; __tmp_9804_0 = main____CPAchecker_TMP_0; goto label_9804; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { label_10132:; mode1 = 0; goto label_10149; } } } else { send1 = node1__m1; mode1 = 0; goto label_10149; } } else { mode1 = 0; label_10149:; __tmp_10025_0 = main____CPAchecker_TMP_0; goto label_10025; } } 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_10025_0 = main____CPAchecker_TMP_0; label_10025:; main____CPAchecker_TMP_0 = __tmp_10025_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_10037_0 = main____CPAchecker_TMP_0; label_10037:; main____CPAchecker_TMP_0 = __tmp_10037_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_10065; } 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_10104 = check__tmp; main__c1 = __return_10104; { _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_18317; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; goto label_18317; } else { label_18317:; goto label_18310; } } } else { send1 = node1__m1; goto label_18310; } } else { label_18310:; mode1 = 0; label_18326:; __tmp_17249_0 = main____CPAchecker_TMP_0; goto label_17249; } } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; goto label_18334; } else { goto label_18331; } } else { label_18331:; node1____CPAchecker_TMP_0 = p1_new; label_18334:; p1_new = node1____CPAchecker_TMP_0; label_18337:; mode1 = 1; goto label_18326; } } 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_18346; } else { goto label_18343; } } else { label_18343:; node1____CPAchecker_TMP_1 = p1_new; label_18346:; p1_new = node1____CPAchecker_TMP_1; goto label_18337; } } else { goto label_18337; } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { label_10065:; mode4 = 0; goto label_10082; } } } else { send4 = node4__m4; mode4 = 0; goto label_10082; } } else { mode4 = 0; label_10082:; __tmp_9701_0 = main____CPAchecker_TMP_0; goto label_9701; } } 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_10314; } 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_10348_0 = main____CPAchecker_TMP_0; label_10348:; main____CPAchecker_TMP_0 = __tmp_10348_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_10377; } } else { mode4 = 0; label_10377:; __tmp_9984_0 = main____CPAchecker_TMP_0; goto label_9984; } } else { return __return_main; } } } } else { return __return_main; } } } } else { return __return_main; } } } else { label_10314:; mode1 = 0; goto label_10331; } } } else { send1 = node1__m1; mode1 = 0; goto label_10331; } } else { mode1 = 0; label_10331:; __tmp_10252_0 = main____CPAchecker_TMP_0; goto label_10252; } } 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_10252_0 = main____CPAchecker_TMP_0; label_10252:; main____CPAchecker_TMP_0 = __tmp_10252_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_10264_0 = main____CPAchecker_TMP_0; label_10264:; main____CPAchecker_TMP_0 = __tmp_10264_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_10293; } } else { mode4 = 0; label_10293:; __tmp_9881_0 = main____CPAchecker_TMP_0; goto label_9881; } } 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_9746; } 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_9780_0 = main____CPAchecker_TMP_0; label_9780:; main____CPAchecker_TMP_0 = __tmp_9780_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_9804_0 = main____CPAchecker_TMP_0; label_9804:; main____CPAchecker_TMP_0 = __tmp_9804_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_9821 = check__tmp; main__c1 = __return_9821; { _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_18124; } else { goto label_18121; } } else { label_18121:; node1____CPAchecker_TMP_0 = p1_new; label_18124:; p1_new = node1____CPAchecker_TMP_0; label_18127:; mode1 = 1; __tmp_17249_0 = main____CPAchecker_TMP_0; goto label_17249; } } 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_18136; } else { goto label_18133; } } else { label_18133:; node1____CPAchecker_TMP_1 = p1_new; label_18136:; p1_new = node1____CPAchecker_TMP_1; goto label_18127; } } else { goto label_18127; } } } } } 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 { label_9746:; mode1 = 0; goto label_9763; } } } else { send1 = node1__m1; mode1 = 0; goto label_9763; } } else { mode1 = 0; label_9763:; __tmp_9665_0 = main____CPAchecker_TMP_0; goto label_9665; } } 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_9665_0 = main____CPAchecker_TMP_0; label_9665:; main____CPAchecker_TMP_0 = __tmp_9665_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_9677_0 = main____CPAchecker_TMP_0; label_9677:; main____CPAchecker_TMP_0 = __tmp_9677_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_9701_0 = main____CPAchecker_TMP_0; label_9701:; main____CPAchecker_TMP_0 = __tmp_9701_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_9718 = check__tmp; main__c1 = __return_9718; { _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_18064:; mode1 = 1; goto label_18081; } else { return __return_main; } } else { node1____CPAchecker_TMP_0 = p1_new; p1_new = node1____CPAchecker_TMP_0; mode1 = 1; label_18081:; __tmp_17249_0 = main____CPAchecker_TMP_0; goto label_17249; } } 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_18064; } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; p1_new = node1____CPAchecker_TMP_1; goto label_18067; } } else { label_18067:; mode1 = 1; __tmp_18087_0 = main____CPAchecker_TMP_0; label_18087:; main____CPAchecker_TMP_0 = __tmp_18087_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_18102; } else { goto label_18099; } } else { label_18099:; node2____CPAchecker_TMP_1 = p2_new; label_18102:; p2_new = node2____CPAchecker_TMP_1; goto label_18096; } } else { label_18096:; mode2 = 1; __tmp_17302_0 = main____CPAchecker_TMP_0; goto label_17302; } } } } } } } } } 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_9926; } 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_9960_0 = main____CPAchecker_TMP_0; label_9960:; main____CPAchecker_TMP_0 = __tmp_9960_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_9984_0 = main____CPAchecker_TMP_0; label_9984:; main____CPAchecker_TMP_0 = __tmp_9984_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_10001 = check__tmp; main__c1 = __return_10001; { _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_18278; } else { goto label_18275; } } else { label_18275:; node1____CPAchecker_TMP_0 = p1_new; label_18278:; p1_new = node1____CPAchecker_TMP_0; label_18281:; mode1 = 1; __tmp_17249_0 = main____CPAchecker_TMP_0; goto label_17249; } } 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_18290; } else { goto label_18287; } } else { label_18287:; node1____CPAchecker_TMP_1 = p1_new; label_18290:; p1_new = node1____CPAchecker_TMP_1; goto label_18281; } } else { goto label_18281; } } } } } 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 { label_9926:; mode1 = 0; goto label_9943; } } } else { send1 = node1__m1; mode1 = 0; goto label_9943; } } else { mode1 = 0; label_9943:; __tmp_9845_0 = main____CPAchecker_TMP_0; goto label_9845; } } 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_9845_0 = main____CPAchecker_TMP_0; label_9845:; main____CPAchecker_TMP_0 = __tmp_9845_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_9857_0 = main____CPAchecker_TMP_0; label_9857:; main____CPAchecker_TMP_0 = __tmp_9857_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_9881_0 = main____CPAchecker_TMP_0; label_9881:; main____CPAchecker_TMP_0 = __tmp_9881_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_9898 = check__tmp; main__c1 = __return_9898; { _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_18162:; mode1 = 1; __tmp_17249_0 = main____CPAchecker_TMP_0; goto label_17249; } 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_18204; } else { if (((int)node2__m2) == ((int)id2)) { st2 = 1; goto label_18204; } else { label_18204:; goto label_18197; } } } else { send2 = node2__m2; goto label_18197; } } else { label_18197:; mode2 = 0; label_18213:; __tmp_17302_0 = main____CPAchecker_TMP_0; goto label_17302; } } else { if (!(alive2 == 0)) { int node2____CPAchecker_TMP_0; if (send2 != nomsg) { if (p2_new == nomsg) { node2____CPAchecker_TMP_0 = send2; goto label_18221; } else { goto label_18218; } } else { label_18218:; node2____CPAchecker_TMP_0 = p2_new; label_18221:; p2_new = node2____CPAchecker_TMP_0; label_18224:; mode2 = 1; goto label_18213; } } 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_18233; } else { goto label_18230; } } else { label_18230:; node2____CPAchecker_TMP_1 = p2_new; label_18233:; p2_new = node2____CPAchecker_TMP_1; goto label_18224; } } else { goto label_18224; } } } } } } 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_18162; } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; p1_new = node1____CPAchecker_TMP_1; goto label_18165; } } else { label_18165:; mode1 = 1; __tmp_18187_0 = main____CPAchecker_TMP_0; label_18187:; main____CPAchecker_TMP_0 = __tmp_18187_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_18254; } else { return __return_main; } } else { node2____CPAchecker_TMP_1 = p2_new; label_18254:; p2_new = node2____CPAchecker_TMP_1; mode2 = 1; goto label_18260; } } else { mode2 = 1; label_18260:; __tmp_17302_0 = main____CPAchecker_TMP_0; goto label_17302; } } } } } } } } } 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_16029; } } else { mode1 = 0; label_16029:; __tmp_15900_0 = main____CPAchecker_TMP_0; goto label_15900; } } 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_15900_0 = main____CPAchecker_TMP_0; label_15900:; main____CPAchecker_TMP_0 = __tmp_15900_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_15928; } 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_15966; } 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_16003 = check__tmp; main__c1 = __return_16003; { _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_15966:; mode4 = 0; goto label_15983; } } } else { send4 = node4__m4; mode4 = 0; goto label_15983; } } else { mode4 = 0; label_15983:; __tmp_15712_0 = main____CPAchecker_TMP_0; goto label_15712; } } else { return __return_main; } } } else { label_15928:; mode3 = 0; goto label_15945; } } } else { send3 = node3__m3; mode3 = 0; goto label_15945; } } else { mode3 = 0; label_15945:; __tmp_15066_0 = main____CPAchecker_TMP_0; goto label_15066; } } 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_16135; } } else { mode1 = 0; label_16135:; __tmp_16046_0 = main____CPAchecker_TMP_0; goto label_16046; } } 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_16046_0 = main____CPAchecker_TMP_0; label_16046:; main____CPAchecker_TMP_0 = __tmp_16046_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_16074; } 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_16113; } } else { mode4 = 0; label_16113:; __tmp_15837_0 = main____CPAchecker_TMP_0; goto label_15837; } } else { return __return_main; } } } else { label_16074:; mode3 = 0; goto label_16091; } } } else { send3 = node3__m3; mode3 = 0; goto label_16091; } } else { mode3 = 0; label_16091:; __tmp_15191_0 = main____CPAchecker_TMP_0; goto label_15191; } } 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_15758; } } else { mode1 = 0; label_15758:; __tmp_15650_0 = main____CPAchecker_TMP_0; goto label_15650; } } 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_15650_0 = main____CPAchecker_TMP_0; label_15650:; main____CPAchecker_TMP_0 = __tmp_15650_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_15678; } 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_15712_0 = main____CPAchecker_TMP_0; label_15712:; main____CPAchecker_TMP_0 = __tmp_15712_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_15729 = check__tmp; main__c1 = __return_15729; { _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_18849; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; goto label_18849; } else { label_18849:; goto label_18842; } } } else { send1 = node1__m1; goto label_18842; } } else { label_18842:; mode1 = 0; label_18858:; __tmp_17249_0 = main____CPAchecker_TMP_0; goto label_17249; } } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; goto label_18866; } else { goto label_18863; } } else { label_18863:; node1____CPAchecker_TMP_0 = p1_new; label_18866:; p1_new = node1____CPAchecker_TMP_0; label_18869:; mode1 = 1; goto label_18858; } } 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_18878; } else { goto label_18875; } } else { label_18875:; node1____CPAchecker_TMP_1 = p1_new; label_18878:; p1_new = node1____CPAchecker_TMP_1; goto label_18869; } } else { goto label_18869; } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_15678:; mode3 = 0; goto label_15695; } } } else { send3 = node3__m3; mode3 = 0; goto label_15695; } } else { mode3 = 0; label_15695:; __tmp_14868_0 = main____CPAchecker_TMP_0; goto label_14868; } } 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_15883; } } else { mode1 = 0; label_15883:; __tmp_15775_0 = main____CPAchecker_TMP_0; goto label_15775; } } 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_15775_0 = main____CPAchecker_TMP_0; label_15775:; main____CPAchecker_TMP_0 = __tmp_15775_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_15803; } 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_15837_0 = main____CPAchecker_TMP_0; label_15837:; main____CPAchecker_TMP_0 = __tmp_15837_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_15854 = check__tmp; main__c1 = __return_15854; { _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_18902; } else { goto label_18899; } } else { label_18899:; node1____CPAchecker_TMP_1 = p1_new; label_18902:; p1_new = node1____CPAchecker_TMP_1; goto label_18896; } } else { label_18896:; mode1 = 1; __tmp_17249_0 = main____CPAchecker_TMP_0; goto label_17249; } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } } else { return __return_main; } } } else { label_15803:; mode3 = 0; goto label_15820; } } } else { send3 = node3__m3; mode3 = 0; goto label_15820; } } else { mode3 = 0; label_15820:; __tmp_14967_0 = main____CPAchecker_TMP_0; goto label_14967; } } 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_16339; } } else { mode1 = 0; label_16339:; __tmp_16288_0 = main____CPAchecker_TMP_0; goto label_16288; } } 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_16288_0 = main____CPAchecker_TMP_0; label_16288:; main____CPAchecker_TMP_0 = __tmp_16288_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_16317; } } else { mode3 = 0; label_16317:; __tmp_15469_0 = main____CPAchecker_TMP_0; goto label_15469; } } 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_16407; } } else { mode1 = 0; label_16407:; __tmp_16356_0 = main____CPAchecker_TMP_0; goto label_16356; } } 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_16356_0 = main____CPAchecker_TMP_0; label_16356:; main____CPAchecker_TMP_0 = __tmp_16356_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_16385; } } else { mode3 = 0; label_16385:; __tmp_15594_0 = main____CPAchecker_TMP_0; goto label_15594; } } 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_16203; } } else { mode1 = 0; label_16203:; __tmp_16152_0 = main____CPAchecker_TMP_0; goto label_16152; } } 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_16152_0 = main____CPAchecker_TMP_0; label_16152:; main____CPAchecker_TMP_0 = __tmp_16152_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_16181; } } else { mode3 = 0; label_16181:; __tmp_15271_0 = main____CPAchecker_TMP_0; goto label_15271; } } 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_16271; } } else { mode1 = 0; label_16271:; __tmp_16220_0 = main____CPAchecker_TMP_0; goto label_16220; } } 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_16220_0 = main____CPAchecker_TMP_0; label_16220:; main____CPAchecker_TMP_0 = __tmp_16220_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_16249; } } else { mode3 = 0; label_16249:; __tmp_15370_0 = main____CPAchecker_TMP_0; goto label_15370; } } 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_15150; } } else { mode1 = 0; label_15150:; __tmp_15042_0 = main____CPAchecker_TMP_0; goto label_15042; } } 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_15042_0 = main____CPAchecker_TMP_0; label_15042:; main____CPAchecker_TMP_0 = __tmp_15042_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_15066_0 = main____CPAchecker_TMP_0; label_15066:; main____CPAchecker_TMP_0 = __tmp_15066_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_15082; } 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_15121 = check__tmp; main__c1 = __return_15121; { _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_18626; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; goto label_18626; } else { label_18626:; goto label_18619; } } } else { send1 = node1__m1; goto label_18619; } } else { label_18619:; mode1 = 0; label_18635:; __tmp_17249_0 = main____CPAchecker_TMP_0; goto label_17249; } } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; goto label_18643; } else { goto label_18640; } } else { label_18640:; node1____CPAchecker_TMP_0 = p1_new; label_18643:; p1_new = node1____CPAchecker_TMP_0; label_18646:; mode1 = 1; goto label_18635; } } 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_18655; } else { goto label_18652; } } else { label_18652:; node1____CPAchecker_TMP_1 = p1_new; label_18655:; p1_new = node1____CPAchecker_TMP_1; goto label_18646; } } else { goto label_18646; } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { label_15082:; mode4 = 0; goto label_15099; } } } else { send4 = node4__m4; mode4 = 0; goto label_15099; } } else { mode4 = 0; label_15099:; __tmp_14880_0 = main____CPAchecker_TMP_0; goto label_14880; } } 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_15230; } } else { mode1 = 0; label_15230:; __tmp_15167_0 = main____CPAchecker_TMP_0; goto label_15167; } } 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_15167_0 = main____CPAchecker_TMP_0; label_15167:; main____CPAchecker_TMP_0 = __tmp_15167_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_15191_0 = main____CPAchecker_TMP_0; label_15191:; main____CPAchecker_TMP_0 = __tmp_15191_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_15208; } } else { mode4 = 0; label_15208:; __tmp_14979_0 = main____CPAchecker_TMP_0; goto label_14979; } } 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_14926; } } else { mode1 = 0; label_14926:; __tmp_14844_0 = main____CPAchecker_TMP_0; goto label_14844; } } 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_14844_0 = main____CPAchecker_TMP_0; label_14844:; main____CPAchecker_TMP_0 = __tmp_14844_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_14868_0 = main____CPAchecker_TMP_0; label_14868:; main____CPAchecker_TMP_0 = __tmp_14868_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_14880_0 = main____CPAchecker_TMP_0; label_14880:; main____CPAchecker_TMP_0 = __tmp_14880_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_14897 = check__tmp; main__c1 = __return_14897; { _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_18515; } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; label_18515:; p1_new = node1____CPAchecker_TMP_1; mode1 = 1; goto label_18521; } } else { mode1 = 1; label_18521:; __tmp_17249_0 = main____CPAchecker_TMP_0; goto label_17249; } } } } } 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_15025; } } else { mode1 = 0; label_15025:; __tmp_14943_0 = main____CPAchecker_TMP_0; goto label_14943; } } 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_14943_0 = main____CPAchecker_TMP_0; label_14943:; main____CPAchecker_TMP_0 = __tmp_14943_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_14967_0 = main____CPAchecker_TMP_0; label_14967:; main____CPAchecker_TMP_0 = __tmp_14967_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_14979_0 = main____CPAchecker_TMP_0; label_14979:; main____CPAchecker_TMP_0 = __tmp_14979_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_14996 = check__tmp; main__c1 = __return_14996; { _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_17249_0 = main____CPAchecker_TMP_0; goto label_17249; } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; p1_new = node1____CPAchecker_TMP_1; goto label_18535; } } else { label_18535:; 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_18570; } else { if (((int)node2__m2) == ((int)id2)) { st2 = 1; goto label_18570; } else { label_18570:; goto label_18563; } } } else { send2 = node2__m2; goto label_18563; } } else { label_18563:; mode2 = 0; label_18579:; __tmp_17302_0 = main____CPAchecker_TMP_0; goto label_17302; } } else { if (!(alive2 == 0)) { int node2____CPAchecker_TMP_0; if (send2 != nomsg) { if (p2_new == nomsg) { node2____CPAchecker_TMP_0 = send2; goto label_18587; } else { goto label_18584; } } else { label_18584:; node2____CPAchecker_TMP_0 = p2_new; label_18587:; p2_new = node2____CPAchecker_TMP_0; label_18590:; mode2 = 1; goto label_18579; } } 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_18599; } else { goto label_18596; } } else { label_18596:; node2____CPAchecker_TMP_1 = p2_new; label_18599:; p2_new = node2____CPAchecker_TMP_1; goto label_18590; } } else { goto label_18590; } } } } } } } } } 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_15553; } } else { mode1 = 0; label_15553:; __tmp_15445_0 = main____CPAchecker_TMP_0; goto label_15445; } } 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_15445_0 = main____CPAchecker_TMP_0; label_15445:; main____CPAchecker_TMP_0 = __tmp_15445_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_15469_0 = main____CPAchecker_TMP_0; label_15469:; main____CPAchecker_TMP_0 = __tmp_15469_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_15485; } 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_15524 = check__tmp; main__c1 = __return_15524; { _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_18793; } else { if (((int)node1__m1) == ((int)id1)) { st1 = 1; goto label_18793; } else { label_18793:; goto label_18786; } } } else { send1 = node1__m1; goto label_18786; } } else { label_18786:; mode1 = 0; label_18802:; __tmp_17249_0 = main____CPAchecker_TMP_0; goto label_17249; } } else { if (!(alive1 == 0)) { int node1____CPAchecker_TMP_0; if (send1 != nomsg) { if (p1_new == nomsg) { node1____CPAchecker_TMP_0 = send1; goto label_18810; } else { goto label_18807; } } else { label_18807:; node1____CPAchecker_TMP_0 = p1_new; label_18810:; p1_new = node1____CPAchecker_TMP_0; label_18813:; mode1 = 1; goto label_18802; } } 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_18822; } else { goto label_18819; } } else { label_18819:; node1____CPAchecker_TMP_1 = p1_new; label_18822:; p1_new = node1____CPAchecker_TMP_1; goto label_18813; } } else { goto label_18813; } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { label_15485:; mode4 = 0; goto label_15502; } } } else { send4 = node4__m4; mode4 = 0; goto label_15502; } } else { mode4 = 0; label_15502:; __tmp_15283_0 = main____CPAchecker_TMP_0; goto label_15283; } } 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_15633; } } else { mode1 = 0; label_15633:; __tmp_15570_0 = main____CPAchecker_TMP_0; goto label_15570; } } 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_15570_0 = main____CPAchecker_TMP_0; label_15570:; main____CPAchecker_TMP_0 = __tmp_15570_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_15594_0 = main____CPAchecker_TMP_0; label_15594:; main____CPAchecker_TMP_0 = __tmp_15594_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_15611; } } else { mode4 = 0; label_15611:; __tmp_15382_0 = main____CPAchecker_TMP_0; goto label_15382; } } 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_15329; } } else { mode1 = 0; label_15329:; __tmp_15247_0 = main____CPAchecker_TMP_0; goto label_15247; } } 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_15247_0 = main____CPAchecker_TMP_0; label_15247:; main____CPAchecker_TMP_0 = __tmp_15247_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_15271_0 = main____CPAchecker_TMP_0; label_15271:; main____CPAchecker_TMP_0 = __tmp_15271_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_15283_0 = main____CPAchecker_TMP_0; label_15283:; main____CPAchecker_TMP_0 = __tmp_15283_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_15300 = check__tmp; main__c1 = __return_15300; { _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_17249_0 = main____CPAchecker_TMP_0; goto label_17249; } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; p1_new = node1____CPAchecker_TMP_1; goto label_18673; } } else { label_18673:; 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_18708; } else { if (((int)node2__m2) == ((int)id2)) { st2 = 1; goto label_18708; } else { label_18708:; goto label_18701; } } } else { send2 = node2__m2; goto label_18701; } } else { label_18701:; mode2 = 0; label_18717:; __tmp_17302_0 = main____CPAchecker_TMP_0; goto label_17302; } } else { if (!(alive2 == 0)) { int node2____CPAchecker_TMP_0; if (send2 != nomsg) { if (p2_new == nomsg) { node2____CPAchecker_TMP_0 = send2; goto label_18725; } else { goto label_18722; } } else { label_18722:; node2____CPAchecker_TMP_0 = p2_new; label_18725:; p2_new = node2____CPAchecker_TMP_0; label_18728:; mode2 = 1; goto label_18717; } } 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_18737; } else { goto label_18734; } } else { label_18734:; node2____CPAchecker_TMP_1 = p2_new; label_18737:; p2_new = node2____CPAchecker_TMP_1; goto label_18728; } } else { goto label_18728; } } } } } } } } } 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_15428; } } else { mode1 = 0; label_15428:; __tmp_15346_0 = main____CPAchecker_TMP_0; goto label_15346; } } 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_15346_0 = main____CPAchecker_TMP_0; label_15346:; main____CPAchecker_TMP_0 = __tmp_15346_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_15370_0 = main____CPAchecker_TMP_0; label_15370:; main____CPAchecker_TMP_0 = __tmp_15370_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_15382_0 = main____CPAchecker_TMP_0; label_15382:; main____CPAchecker_TMP_0 = __tmp_15382_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_15399 = check__tmp; main__c1 = __return_15399; { _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_17249_0 = main____CPAchecker_TMP_0; goto label_17249; } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; p1_new = node1____CPAchecker_TMP_1; goto label_18755; } } else { label_18755:; mode1 = 1; __tmp_17634_0 = main____CPAchecker_TMP_0; goto label_17634; } } } } } 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_16730; } } else { mode1 = 0; label_16730:; __tmp_16622_0 = main____CPAchecker_TMP_0; goto label_16622; } } 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_16622_0 = main____CPAchecker_TMP_0; label_16622:; main____CPAchecker_TMP_0 = __tmp_16622_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_16662; } 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_16701 = check__tmp; main__c1 = __return_16701; { _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_19037; } else { goto label_19034; } } else { label_19034:; node1____CPAchecker_TMP_1 = p1_new; label_19037:; p1_new = node1____CPAchecker_TMP_1; goto label_19031; } } else { label_19031:; mode1 = 1; __tmp_17249_0 = main____CPAchecker_TMP_0; goto label_17249; } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { label_16662:; mode4 = 0; goto label_16679; } } } else { send4 = node4__m4; mode4 = 0; goto label_16679; } } else { mode4 = 0; label_16679:; __tmp_16460_0 = main____CPAchecker_TMP_0; goto label_16460; } } 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_16810; } } else { mode1 = 0; label_16810:; __tmp_16747_0 = main____CPAchecker_TMP_0; goto label_16747; } } 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_16747_0 = main____CPAchecker_TMP_0; label_16747:; main____CPAchecker_TMP_0 = __tmp_16747_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_16788; } } else { mode4 = 0; label_16788:; __tmp_16559_0 = main____CPAchecker_TMP_0; goto label_16559; } } 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_16506; } } else { mode1 = 0; label_16506:; __tmp_16424_0 = main____CPAchecker_TMP_0; goto label_16424; } } 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_16424_0 = main____CPAchecker_TMP_0; label_16424:; main____CPAchecker_TMP_0 = __tmp_16424_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_16460_0 = main____CPAchecker_TMP_0; label_16460:; main____CPAchecker_TMP_0 = __tmp_16460_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_16477 = check__tmp; main__c1 = __return_16477; { _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_17249_0 = main____CPAchecker_TMP_0; goto label_17249; } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; p1_new = node1____CPAchecker_TMP_1; goto label_18920; } } else { label_18920:; 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_18955; } else { if (((int)node2__m2) == ((int)id2)) { st2 = 1; goto label_18955; } else { label_18955:; goto label_18948; } } } else { send2 = node2__m2; goto label_18948; } } else { label_18948:; mode2 = 0; label_18964:; __tmp_17302_0 = main____CPAchecker_TMP_0; goto label_17302; } } else { if (!(alive2 == 0)) { int node2____CPAchecker_TMP_0; if (send2 != nomsg) { if (p2_new == nomsg) { node2____CPAchecker_TMP_0 = send2; goto label_18972; } else { goto label_18969; } } else { label_18969:; node2____CPAchecker_TMP_0 = p2_new; label_18972:; p2_new = node2____CPAchecker_TMP_0; label_18975:; mode2 = 1; goto label_18964; } } 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_18984; } else { goto label_18981; } } else { label_18981:; node2____CPAchecker_TMP_1 = p2_new; label_18984:; p2_new = node2____CPAchecker_TMP_1; goto label_18975; } } else { goto label_18975; } } } } } } } } } 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_16605; } } else { mode1 = 0; label_16605:; __tmp_16523_0 = main____CPAchecker_TMP_0; goto label_16523; } } 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_16523_0 = main____CPAchecker_TMP_0; label_16523:; main____CPAchecker_TMP_0 = __tmp_16523_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_16559_0 = main____CPAchecker_TMP_0; label_16559:; main____CPAchecker_TMP_0 = __tmp_16559_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_16576 = check__tmp; main__c1 = __return_16576; { _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_17249_0 = main____CPAchecker_TMP_0; goto label_17249; } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; p1_new = node1____CPAchecker_TMP_1; goto label_19002; } } else { label_19002:; mode1 = 1; __tmp_17911_0 = main____CPAchecker_TMP_0; goto label_17911; } } } } } 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_17133; } } else { mode1 = 0; label_17133:; __tmp_17025_0 = main____CPAchecker_TMP_0; goto label_17025; } } 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_17025_0 = main____CPAchecker_TMP_0; label_17025:; main____CPAchecker_TMP_0 = __tmp_17025_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_17065; } 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_17104 = check__tmp; main__c1 = __return_17104; { _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_19151; } else { goto label_19148; } } else { label_19148:; node1____CPAchecker_TMP_1 = p1_new; label_19151:; p1_new = node1____CPAchecker_TMP_1; goto label_19145; } } else { label_19145:; mode1 = 1; __tmp_17249_0 = main____CPAchecker_TMP_0; goto label_17249; } } } } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } } else { label_17065:; mode4 = 0; goto label_17082; } } } else { send4 = node4__m4; mode4 = 0; goto label_17082; } } else { mode4 = 0; label_17082:; __tmp_16863_0 = main____CPAchecker_TMP_0; goto label_16863; } } 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_17213; } } else { mode1 = 0; label_17213:; __tmp_17150_0 = main____CPAchecker_TMP_0; goto label_17150; } } 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_17150_0 = main____CPAchecker_TMP_0; label_17150:; main____CPAchecker_TMP_0 = __tmp_17150_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_17191; } } else { mode4 = 0; label_17191:; __tmp_16962_0 = main____CPAchecker_TMP_0; goto label_16962; } } 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_16909; } } else { mode1 = 0; label_16909:; __tmp_16827_0 = main____CPAchecker_TMP_0; goto label_16827; } } 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_16827_0 = main____CPAchecker_TMP_0; label_16827:; main____CPAchecker_TMP_0 = __tmp_16827_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_16863_0 = main____CPAchecker_TMP_0; label_16863:; main____CPAchecker_TMP_0 = __tmp_16863_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_16880 = check__tmp; main__c1 = __return_16880; { _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_17249_0 = main____CPAchecker_TMP_0; goto label_17249; } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; p1_new = node1____CPAchecker_TMP_1; goto label_19055; } } else { label_19055:; mode1 = 1; __tmp_18087_0 = main____CPAchecker_TMP_0; goto label_18087; } } } } } 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_17008; } } else { mode1 = 0; label_17008:; __tmp_16926_0 = main____CPAchecker_TMP_0; goto label_16926; } } 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_16926_0 = main____CPAchecker_TMP_0; label_16926:; main____CPAchecker_TMP_0 = __tmp_16926_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_16962_0 = main____CPAchecker_TMP_0; label_16962:; main____CPAchecker_TMP_0 = __tmp_16962_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_16979 = check__tmp; main__c1 = __return_16979; { _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_19115; } else { goto label_19112; } } else { label_19112:; node2____CPAchecker_TMP_0 = p2_new; label_19115:; p2_new = node2____CPAchecker_TMP_0; label_19118:; mode2 = 1; __tmp_17302_0 = main____CPAchecker_TMP_0; goto label_17302; } } 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_19127; } else { goto label_19124; } } else { label_19124:; node2____CPAchecker_TMP_1 = p2_new; label_19127:; p2_new = node2____CPAchecker_TMP_1; goto label_19118; } } else { goto label_19118; } } } } } else { return __return_main; } } else { node1____CPAchecker_TMP_1 = p1_new; p1_new = node1____CPAchecker_TMP_1; goto label_19084; } } else { label_19084:; mode1 = 1; __tmp_18187_0 = main____CPAchecker_TMP_0; goto label_18187; } } } } } 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; } } }