// 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_floodmax.3.4.ufo.UNBOUNDED.pals.c.v+lhb-reducer.c", 4, "reach_error"); } char __VERIFIER_nondet_char(); unsigned char __VERIFIER_nondet_uchar(); _Bool __VERIFIER_nondet_bool(); 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; port_t p12 = 0; char p12_old = '\x0'; char p12_new = '\x0'; _Bool ep12 = 0; port_t p13 = 0; char p13_old = '\x0'; char p13_new = '\x0'; _Bool ep13 = 0; port_t p21 = 0; char p21_old = '\x0'; char p21_new = '\x0'; _Bool ep21 = 0; port_t p23 = 0; char p23_old = '\x0'; char p23_new = '\x0'; _Bool ep23 = 0; port_t p31 = 0; char p31_old = '\x0'; char p31_new = '\x0'; _Bool ep31 = 0; port_t p32 = 0; char p32_old = '\x0'; char p32_new = '\x0'; _Bool ep32 = 0; char id1 = '\x0'; unsigned char r1 = '\x0'; char st1 = '\x0'; char nl1 = '\x0'; char m1 = '\x0'; char max1 = '\x0'; _Bool mode1 = 0; char id2 = '\x0'; unsigned char r2 = '\x0'; char st2 = '\x0'; char nl2 = '\x0'; char m2 = '\x0'; char max2 = '\x0'; _Bool mode2 = 0; char id3 = '\x0'; unsigned char r3 = '\x0'; char st3 = '\x0'; char nl3 = '\x0'; char m3 = '\x0'; char max3 = '\x0'; _Bool mode3 = 0; void node1(); void node2(); void node3(); void (*nodes[3])() = { &node1, &node2, &node3 }; int init(); int check(); int main(); int __return_1719; int __return_1847; int __return_1965; int __return_2067; int __return_2801; int __return_2770; int __return_2711; int __return_2677; int __return_2300; int __return_2572; int __return_2538; int __return_2458; int __return_2190; int main() { int main__c1; int main__i2; main__c1 = 0; ep12 = __VERIFIER_nondet_bool(); ep13 = __VERIFIER_nondet_bool(); ep21 = __VERIFIER_nondet_bool(); ep23 = __VERIFIER_nondet_bool(); ep31 = __VERIFIER_nondet_bool(); ep32 = __VERIFIER_nondet_bool(); id1 = __VERIFIER_nondet_char(); r1 = __VERIFIER_nondet_uchar(); st1 = __VERIFIER_nondet_char(); nl1 = __VERIFIER_nondet_char(); m1 = __VERIFIER_nondet_char(); max1 = __VERIFIER_nondet_char(); mode1 = __VERIFIER_nondet_bool(); id2 = __VERIFIER_nondet_char(); r2 = __VERIFIER_nondet_uchar(); st2 = __VERIFIER_nondet_char(); nl2 = __VERIFIER_nondet_char(); m2 = __VERIFIER_nondet_char(); max2 = __VERIFIER_nondet_char(); mode2 = __VERIFIER_nondet_bool(); id3 = __VERIFIER_nondet_char(); r3 = __VERIFIER_nondet_uchar(); st3 = __VERIFIER_nondet_char(); nl3 = __VERIFIER_nondet_char(); m3 = __VERIFIER_nondet_char(); max3 = __VERIFIER_nondet_char(); mode3 = __VERIFIER_nondet_bool(); { _Bool init__r121; _Bool init__r131; _Bool init__r211; _Bool init__r231; _Bool init__r311; _Bool init__r321; _Bool init__r122; int init__tmp; _Bool init__r132; int init__tmp___0; _Bool init__r212; int init__tmp___1; _Bool init__r232; int init__tmp___2; _Bool init__r312; int init__tmp___3; _Bool init__r322; int init__tmp___4; int init__tmp___5; init__r121 = ep12; init__r131 = ep13; init__r211 = ep21; init__r231 = ep23; init__r311 = ep31; init__r321 = ep32; if (!(init__r121 == 0)) { init__tmp = 1; label_1637:; init__r122 = (_Bool)init__tmp; if (!(init__r131 == 0)) { init__tmp___0 = 1; label_1642:; init__r132 = (_Bool)init__tmp___0; if (!(init__r211 == 0)) { init__tmp___1 = 1; label_1647:; init__r212 = (_Bool)init__tmp___1; if (!(init__r231 == 0)) { init__tmp___2 = 1; label_1652:; init__r232 = (_Bool)init__tmp___2; if (!(init__r311 == 0)) { init__tmp___3 = 1; label_1657:; init__r312 = (_Bool)init__tmp___3; if (!(init__r321 == 0)) { init__tmp___4 = 1; label_1662:; init__r322 = (_Bool)init__tmp___4; if (((int)id1) != ((int)id2)) { if (((int)id1) != ((int)id3)) { if (((int)id2) != ((int)id3)) { if (((int)id1) >= 0) { if (((int)id2) >= 0) { if (((int)id3) >= 0) { if (((int)r1) == 0) { if (((int)r2) == 0) { if (((int)r3) == 0) { if (!(init__r122 == 0)) { if (!(init__r132 == 0)) { if (!(init__r212 == 0)) { if (!(init__r232 == 0)) { if (!(init__r312 == 0)) { if (!(init__r322 == 0)) { if (((int)max1) == ((int)id1)) { if (((int)max2) == ((int)id2)) { if (((int)max3) == ((int)id3)) { if (((int)st1) == 0) { if (((int)st2) == 0) { if (((int)st3) == 0) { if (((int)nl1) == 0) { if (((int)nl2) == 0) { if (((int)nl3) == 0) { if (((int)mode1) == 0) { if (((int)mode2) == 0) { if (((int)mode3) == 0) { init__tmp___5 = 1; __return_1719 = init__tmp___5; main__i2 = __return_1719; if (main__i2 != 0) { p12_old = nomsg; p12_new = nomsg; p13_old = nomsg; p13_new = nomsg; p21_old = nomsg; p21_new = nomsg; p23_old = nomsg; p23_new = nomsg; p31_old = nomsg; p31_new = nomsg; p32_old = nomsg; p32_new = nomsg; main__i2 = 0; { if (!(mode1 == 0)) { return __return_main; } else { if (((int)r1) < 1) { if (!(ep12 == 0)) { int node1____CPAchecker_TMP_0; if (max1 != nomsg) { if (p12_new == nomsg) { node1____CPAchecker_TMP_0 = max1; label_1747:; p12_new = node1____CPAchecker_TMP_0; label_1742:; if (!(ep13 == 0)) { int node1____CPAchecker_TMP_1; if (max1 != nomsg) { if (p13_new == nomsg) { node1____CPAchecker_TMP_1 = max1; label_1755:; p13_new = node1____CPAchecker_TMP_1; label_1757:; mode1 = 1; { if (!(mode2 == 0)) { return __return_main; } else { if (((int)r2) < 2) { if (!(ep21 == 0)) { int node2____CPAchecker_TMP_0; if (max2 != nomsg) { if (p21_new == nomsg) { node2____CPAchecker_TMP_0 = max2; label_1771:; p21_new = node2____CPAchecker_TMP_0; label_1766:; if (!(ep23 == 0)) { int node2____CPAchecker_TMP_1; if (max2 != nomsg) { if (p23_new == nomsg) { node2____CPAchecker_TMP_1 = max2; label_1779:; p23_new = node2____CPAchecker_TMP_1; label_1781:; mode2 = 1; { if (!(mode3 == 0)) { return __return_main; } else { if (((int)r3) < 2) { if (!(ep31 == 0)) { int node3____CPAchecker_TMP_0; if (max3 != nomsg) { if (p31_new == nomsg) { node3____CPAchecker_TMP_0 = max3; label_1795:; p31_new = node3____CPAchecker_TMP_0; label_1790:; if (!(ep32 == 0)) { int node3____CPAchecker_TMP_1; if (max3 != nomsg) { if (p32_new == nomsg) { node3____CPAchecker_TMP_1 = max3; label_1803:; p32_new = node3____CPAchecker_TMP_1; label_1805:; mode3 = 1; p12_old = p12_new; p12_new = nomsg; p13_old = p13_new; p13_new = nomsg; p21_old = p21_new; p21_new = nomsg; p23_old = p23_new; p23_new = nomsg; p31_old = p31_new; p31_new = nomsg; p32_old = p32_new; p32_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if ((((int)st1) + ((int)nl1)) <= 1) { if ((((int)st2) + ((int)nl2)) <= 1) { if ((((int)st3) + ((int)nl3)) <= 1) { if (((int)r1) >= 2) { return __return_main; } else { if (((((int)st1) + ((int)st2)) + ((int)st3)) == 0) { if (((int)r1) < 2) { if (((int)r1) >= 2) { return __return_main; } else { if (((((int)nl1) + ((int)nl2)) + ((int)nl3)) == 0) { if (((int)r1) < 2) { check__tmp = 1; __return_1847 = check__tmp; main__c1 = __return_1847; { _Bool __tmp_1; __tmp_1 = main__c1; _Bool assert__arg; assert__arg = __tmp_1; if (assert__arg == 0) { return __return_main; } else { { if (!(mode1 == 0)) { if (r1 == 255) { return __return_main; } else { r1 = r1 + 1; if (!(ep21 == 0)) { m1 = p21_old; p21_old = nomsg; if (((int)m1) > ((int)max1)) { max1 = m1; label_1861:; if (!(ep31 == 0)) { m1 = p31_old; p31_old = nomsg; if (((int)m1) > ((int)max1)) { max1 = m1; label_1868:; if (((int)r1) == 2) { return __return_main; } else { mode1 = 0; { if (!(mode2 == 0)) { if (r2 == 255) { return __return_main; } else { r2 = r2 + 1; if (!(ep12 == 0)) { m2 = p12_old; p12_old = nomsg; if (((int)m2) > ((int)max2)) { max2 = m2; label_1885:; if (!(ep32 == 0)) { m2 = p32_old; p32_old = nomsg; if (((int)m2) > ((int)max2)) { max2 = m2; label_1892:; if (((int)r2) == 2) { return __return_main; } else { mode2 = 0; { if (!(mode3 == 0)) { if (r3 == 255) { return __return_main; } else { r3 = r3 + 1; if (!(ep13 == 0)) { m3 = p13_old; p13_old = nomsg; if (((int)m3) > ((int)max3)) { max3 = m3; label_1909:; if (!(ep23 == 0)) { m3 = p23_old; p23_old = nomsg; if (((int)m3) > ((int)max3)) { max3 = m3; label_1916:; if (((int)r3) == 2) { return __return_main; } else { mode3 = 0; p12_old = p12_new; p12_new = nomsg; p13_old = p13_new; p13_new = nomsg; p21_old = p21_new; p21_new = nomsg; p23_old = p23_new; p23_new = nomsg; p31_old = p31_new; p31_new = nomsg; p32_old = p32_new; p32_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if ((((int)st1) + ((int)nl1)) <= 1) { if ((((int)st2) + ((int)nl2)) <= 1) { if ((((int)st3) + ((int)nl3)) <= 1) { if (((int)r1) >= 2) { return __return_main; } else { if (((((int)st1) + ((int)st2)) + ((int)st3)) == 0) { if (((int)r1) < 2) { if (((int)r1) >= 2) { return __return_main; } else { if (((((int)nl1) + ((int)nl2)) + ((int)nl3)) == 0) { if (((int)r1) < 2) { check__tmp = 1; __return_1965 = check__tmp; main__c1 = __return_1965; { _Bool __tmp_2; __tmp_2 = main__c1; _Bool assert__arg; assert__arg = __tmp_2; if (assert__arg == 0) { return __return_main; } else { { if (!(mode1 == 0)) { return __return_main; } else { if (((int)r1) < 1) { return __return_main; } else { mode1 = 1; { if (!(mode2 == 0)) { return __return_main; } else { if (((int)r2) < 2) { if (!(ep21 == 0)) { int node2____CPAchecker_TMP_0; if (max2 != nomsg) { if (p21_new == nomsg) { node2____CPAchecker_TMP_0 = max2; label_1991:; p21_new = node2____CPAchecker_TMP_0; label_1986:; if (!(ep23 == 0)) { int node2____CPAchecker_TMP_1; if (max2 != nomsg) { if (p23_new == nomsg) { node2____CPAchecker_TMP_1 = max2; label_1999:; p23_new = node2____CPAchecker_TMP_1; label_2001:; mode2 = 1; { if (!(mode3 == 0)) { return __return_main; } else { if (((int)r3) < 2) { if (!(ep31 == 0)) { int node3____CPAchecker_TMP_0; if (max3 != nomsg) { if (p31_new == nomsg) { node3____CPAchecker_TMP_0 = max3; label_2015:; p31_new = node3____CPAchecker_TMP_0; label_2010:; if (!(ep32 == 0)) { int node3____CPAchecker_TMP_1; if (max3 != nomsg) { if (p32_new == nomsg) { node3____CPAchecker_TMP_1 = max3; label_2023:; p32_new = node3____CPAchecker_TMP_1; label_2025:; mode3 = 1; p12_old = p12_new; p12_new = nomsg; p13_old = p13_new; p13_new = nomsg; p21_old = p21_new; p21_new = nomsg; p23_old = p23_new; p23_new = nomsg; p31_old = p31_new; p31_new = nomsg; p32_old = p32_new; p32_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if ((((int)st1) + ((int)nl1)) <= 1) { if ((((int)st2) + ((int)nl2)) <= 1) { if ((((int)st3) + ((int)nl3)) <= 1) { if (((int)r1) >= 2) { return __return_main; } else { if (((((int)st1) + ((int)st2)) + ((int)st3)) == 0) { if (((int)r1) < 2) { if (((int)r1) >= 2) { return __return_main; } else { if (((((int)nl1) + ((int)nl2)) + ((int)nl3)) == 0) { if (((int)r1) < 2) { check__tmp = 1; __return_2067 = check__tmp; main__c1 = __return_2067; { _Bool __tmp_3; __tmp_3 = main__c1; _Bool assert__arg; assert__arg = __tmp_3; if (assert__arg == 0) { return __return_main; } else { { if (!(mode1 == 0)) { if (r1 == 255) { return __return_main; } else { r1 = r1 + 1; if (!(ep21 == 0)) { m1 = p21_old; p21_old = nomsg; if (((int)m1) > ((int)max1)) { max1 = m1; label_2081:; if (!(ep31 == 0)) { m1 = p31_old; p31_old = nomsg; if (((int)m1) > ((int)max1)) { max1 = m1; label_2088:; if (((int)r1) == 2) { if (((int)max1) == ((int)id1)) { st1 = 1; mode1 = 0; { if (!(mode2 == 0)) { if (r2 == 255) { return __return_main; } else { r2 = r2 + 1; if (!(ep12 == 0)) { m2 = p12_old; p12_old = nomsg; if (((int)m2) > ((int)max2)) { max2 = m2; label_2590:; if (!(ep32 == 0)) { m2 = p32_old; p32_old = nomsg; if (((int)m2) > ((int)max2)) { max2 = m2; label_2597:; if (((int)r2) == 2) { if (((int)max2) == ((int)id2)) { st2 = 1; mode2 = 0; { if (!(mode3 == 0)) { if (r3 == 255) { return __return_main; } else { r3 = r3 + 1; if (!(ep13 == 0)) { m3 = p13_old; p13_old = nomsg; if (((int)m3) > ((int)max3)) { max3 = m3; label_2729:; if (!(ep23 == 0)) { m3 = p23_old; p23_old = nomsg; if (((int)m3) > ((int)max3)) { max3 = m3; label_2736:; if (((int)r3) == 2) { if (((int)max3) == ((int)id3)) { st3 = 1; mode3 = 0; p12_old = p12_new; p12_new = nomsg; p13_old = p13_new; p13_new = nomsg; p21_old = p21_new; p21_new = nomsg; p23_old = p23_new; p23_new = nomsg; p31_old = p31_new; p31_new = nomsg; p32_old = p32_new; p32_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { return __return_main; } else { check__tmp = 0; __return_2801 = check__tmp; main__c1 = __return_2801; { _Bool __tmp_4; __tmp_4 = main__c1; _Bool assert__arg; assert__arg = __tmp_4; if (assert__arg == 0) { {reach_error();} return __return_main; } else { return __return_main; } } } } } else { nl3 = 1; mode3 = 0; p12_old = p12_new; p12_new = nomsg; p13_old = p13_new; p13_new = nomsg; p21_old = p21_new; p21_new = nomsg; p23_old = p23_new; p23_new = nomsg; p31_old = p31_new; p31_new = nomsg; p32_old = p32_new; p32_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { return __return_main; } else { check__tmp = 0; __return_2770 = check__tmp; main__c1 = __return_2770; { _Bool __tmp_5; __tmp_5 = main__c1; _Bool assert__arg; assert__arg = __tmp_5; if (assert__arg == 0) { {reach_error();} return __return_main; } else { return __return_main; } } } } } } else { return __return_main; } } else { goto label_2736; } } else { goto label_2736; } } else { goto label_2729; } } else { goto label_2729; } } } else { return __return_main; } } } else { nl2 = 1; mode2 = 0; { if (!(mode3 == 0)) { if (r3 == 255) { return __return_main; } else { r3 = r3 + 1; if (!(ep13 == 0)) { m3 = p13_old; p13_old = nomsg; if (((int)m3) > ((int)max3)) { max3 = m3; label_2618:; if (!(ep23 == 0)) { m3 = p23_old; p23_old = nomsg; if (((int)m3) > ((int)max3)) { max3 = m3; label_2625:; if (((int)r3) == 2) { if (((int)max3) == ((int)id3)) { st3 = 1; mode3 = 0; p12_old = p12_new; p12_new = nomsg; p13_old = p13_new; p13_new = nomsg; p21_old = p21_new; p21_new = nomsg; p23_old = p23_new; p23_new = nomsg; p31_old = p31_new; p31_new = nomsg; p32_old = p32_new; p32_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { return __return_main; } else { check__tmp = 0; __return_2711 = check__tmp; main__c1 = __return_2711; { _Bool __tmp_6; __tmp_6 = main__c1; _Bool assert__arg; assert__arg = __tmp_6; if (assert__arg == 0) { {reach_error();} return __return_main; } else { return __return_main; } } } } } else { nl3 = 1; mode3 = 0; p12_old = p12_new; p12_new = nomsg; p13_old = p13_new; p13_new = nomsg; p21_old = p21_new; p21_new = nomsg; p23_old = p23_new; p23_new = nomsg; p31_old = p31_new; p31_new = nomsg; p32_old = p32_new; p32_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if ((((int)st1) + ((int)nl1)) <= 1) { if ((((int)st2) + ((int)nl2)) <= 1) { if ((((int)st3) + ((int)nl3)) <= 1) { if (((int)r1) >= 2) { if (((int)r1) < 2) { return __return_main; } else { if (((((int)st1) + ((int)st2)) + ((int)st3)) == 1) { if (((int)r1) >= 2) { label_2678:; if (((int)r1) < 2) { check__tmp = 1; label_2684:; label_2670:; __return_2677 = check__tmp; main__c1 = __return_2677; label_2191:; { _Bool __tmp_7; __tmp_7 = main__c1; _Bool assert__arg; assert__arg = __tmp_7; if (assert__arg == 0) { {reach_error();} return __return_main; } else { { if (!(mode1 == 0)) { if (r1 == 255) { r1 = 2; label_2205:; r1 = r1 + 1; if (!(ep21 == 0)) { m1 = p21_old; p21_old = nomsg; if (((int)m1) > ((int)max1)) { max1 = m1; label_2207:; if (!(ep31 == 0)) { m1 = p31_old; p31_old = nomsg; if (((int)m1) > ((int)max1)) { max1 = m1; label_2214:; if (((int)r1) == 2) { if (((int)max1) == ((int)id1)) { st1 = 1; label_2222:; mode1 = 0; label_2224:; { if (!(mode2 == 0)) { if (r2 == 255) { r2 = 2; label_2232:; r2 = r2 + 1; if (!(ep12 == 0)) { m2 = p12_old; p12_old = nomsg; if (((int)m2) > ((int)max2)) { max2 = m2; label_2234:; if (!(ep32 == 0)) { m2 = p32_old; p32_old = nomsg; if (((int)m2) > ((int)max2)) { max2 = m2; label_2241:; if (((int)r2) == 2) { if (((int)max2) == ((int)id2)) { st2 = 1; label_2249:; mode2 = 0; label_2251:; { if (!(mode3 == 0)) { if (r3 == 255) { r3 = 2; label_2259:; r3 = r3 + 1; if (!(ep13 == 0)) { m3 = p13_old; p13_old = nomsg; if (((int)m3) > ((int)max3)) { max3 = m3; label_2261:; if (!(ep23 == 0)) { m3 = p23_old; p23_old = nomsg; if (((int)m3) > ((int)max3)) { max3 = m3; label_2268:; if (((int)r3) == 2) { if (((int)max3) == ((int)id3)) { st3 = 1; label_2276:; mode3 = 0; label_2278:; p12_old = p12_new; p12_new = nomsg; p13_old = p13_new; p13_new = nomsg; p21_old = p21_new; p21_new = nomsg; p23_old = p23_new; p23_new = nomsg; p31_old = p31_new; p31_new = nomsg; p32_old = p32_new; p32_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if ((((int)st1) + ((int)nl1)) <= 1) { if ((((int)st2) + ((int)nl2)) <= 1) { if ((((int)st3) + ((int)nl3)) <= 1) { if (((int)r1) >= 2) { label_2319:; if (((int)r1) < 2) { label_2326:; if (((int)r1) >= 2) { label_2333:; if (((int)r1) < 2) { check__tmp = 1; label_2339:; label_2332:; label_2325:; label_2318:; label_2312:; label_2308:; label_2304:; label_2299:; __return_2300 = check__tmp; main__c1 = __return_2300; goto label_2191; } else { if (((((int)nl1) + ((int)nl2)) + ((int)nl3)) == 2) { check__tmp = 1; goto label_2339; } else { check__tmp = 0; goto label_2339; } } } else { if (((((int)nl1) + ((int)nl2)) + ((int)nl3)) == 0) { goto label_2333; } else { check__tmp = 0; goto label_2332; } } } else { if (((((int)st1) + ((int)st2)) + ((int)st3)) == 1) { goto label_2326; } else { check__tmp = 0; goto label_2325; } } } else { if (((((int)st1) + ((int)st2)) + ((int)st3)) == 0) { goto label_2319; } else { check__tmp = 0; goto label_2318; } } } else { check__tmp = 0; goto label_2312; } } else { check__tmp = 0; goto label_2308; } } else { check__tmp = 0; goto label_2304; } } else { check__tmp = 0; goto label_2299; } } } else { nl3 = 1; goto label_2276; } } else { goto label_2276; } } else { goto label_2268; } } else { goto label_2268; } } else { goto label_2261; } } else { goto label_2261; } } else { goto label_2259; } } else { if (((int)r3) < 2) { if (!(ep31 == 0)) { int node3____CPAchecker_TMP_0; if (max3 != nomsg) { if (p31_new == nomsg) { node3____CPAchecker_TMP_0 = max3; label_2355:; p31_new = node3____CPAchecker_TMP_0; label_2350:; if (!(ep32 == 0)) { int node3____CPAchecker_TMP_1; if (max3 != nomsg) { if (p32_new == nomsg) { node3____CPAchecker_TMP_1 = max3; label_2363:; p32_new = node3____CPAchecker_TMP_1; label_2348:; mode3 = 1; goto label_2278; } else { label_2362:; node3____CPAchecker_TMP_1 = p32_new; goto label_2363; } } else { goto label_2362; } } else { goto label_2348; } } else { label_2354:; node3____CPAchecker_TMP_0 = p31_new; goto label_2355; } } else { goto label_2354; } } else { goto label_2350; } } else { goto label_2348; } } } } else { nl2 = 1; goto label_2249; } } else { goto label_2249; } } else { goto label_2241; } } else { goto label_2241; } } else { goto label_2234; } } else { goto label_2234; } } else { goto label_2232; } } else { if (((int)r2) < 2) { if (!(ep21 == 0)) { int node2____CPAchecker_TMP_0; if (max2 != nomsg) { if (p21_new == nomsg) { node2____CPAchecker_TMP_0 = max2; label_2379:; p21_new = node2____CPAchecker_TMP_0; label_2374:; if (!(ep23 == 0)) { int node2____CPAchecker_TMP_1; if (max2 != nomsg) { if (p23_new == nomsg) { node2____CPAchecker_TMP_1 = max2; label_2387:; p23_new = node2____CPAchecker_TMP_1; label_2372:; mode2 = 1; goto label_2251; } else { label_2386:; node2____CPAchecker_TMP_1 = p23_new; goto label_2387; } } else { goto label_2386; } } else { goto label_2372; } } else { label_2378:; node2____CPAchecker_TMP_0 = p21_new; goto label_2379; } } else { goto label_2378; } } else { goto label_2374; } } else { goto label_2372; } } } } else { nl1 = 1; goto label_2222; } } else { goto label_2222; } } else { goto label_2214; } } else { goto label_2214; } } else { goto label_2207; } } else { goto label_2207; } } else { goto label_2205; } } else { if (((int)r1) < 1) { if (!(ep12 == 0)) { int node1____CPAchecker_TMP_0; if (max1 != nomsg) { if (p12_new == nomsg) { node1____CPAchecker_TMP_0 = max1; label_2403:; p12_new = node1____CPAchecker_TMP_0; label_2398:; if (!(ep13 == 0)) { int node1____CPAchecker_TMP_1; if (max1 != nomsg) { if (p13_new == nomsg) { node1____CPAchecker_TMP_1 = max1; label_2411:; p13_new = node1____CPAchecker_TMP_1; label_2396:; mode1 = 1; goto label_2224; } else { label_2410:; node1____CPAchecker_TMP_1 = p13_new; goto label_2411; } } else { goto label_2410; } } else { goto label_2396; } } else { label_2402:; node1____CPAchecker_TMP_0 = p12_new; goto label_2403; } } else { goto label_2402; } } else { goto label_2398; } } else { goto label_2396; } } } } } } else { if (((((int)nl1) + ((int)nl2)) + ((int)nl3)) == 2) { check__tmp = 1; goto label_2684; } else { check__tmp = 0; goto label_2684; } } } else { if (((((int)nl1) + ((int)nl2)) + ((int)nl3)) == 0) { goto label_2678; } else { check__tmp = 0; goto label_2670; } } } else { return __return_main; } } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } } } else { return __return_main; } } else { goto label_2625; } } else { goto label_2625; } } else { goto label_2618; } } else { goto label_2618; } } } else { return __return_main; } } } } else { return __return_main; } } else { goto label_2597; } } else { goto label_2597; } } else { goto label_2590; } } else { goto label_2590; } } } else { return __return_main; } } } else { nl1 = 1; mode1 = 0; { if (!(mode2 == 0)) { if (r2 == 255) { return __return_main; } else { r2 = r2 + 1; if (!(ep12 == 0)) { m2 = p12_old; p12_old = nomsg; if (((int)m2) > ((int)max2)) { max2 = m2; label_2109:; if (!(ep32 == 0)) { m2 = p32_old; p32_old = nomsg; if (((int)m2) > ((int)max2)) { max2 = m2; label_2116:; if (((int)r2) == 2) { if (((int)max2) == ((int)id2)) { st2 = 1; mode2 = 0; { if (!(mode3 == 0)) { if (r3 == 255) { return __return_main; } else { r3 = r3 + 1; if (!(ep13 == 0)) { m3 = p13_old; p13_old = nomsg; if (((int)m3) > ((int)max3)) { max3 = m3; label_2479:; if (!(ep23 == 0)) { m3 = p23_old; p23_old = nomsg; if (((int)m3) > ((int)max3)) { max3 = m3; label_2486:; if (((int)r3) == 2) { if (((int)max3) == ((int)id3)) { st3 = 1; mode3 = 0; p12_old = p12_new; p12_new = nomsg; p13_old = p13_new; p13_new = nomsg; p21_old = p21_new; p21_new = nomsg; p23_old = p23_new; p23_new = nomsg; p31_old = p31_new; p31_new = nomsg; p32_old = p32_new; p32_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { return __return_main; } else { check__tmp = 0; __return_2572 = check__tmp; main__c1 = __return_2572; { _Bool __tmp_8; __tmp_8 = main__c1; _Bool assert__arg; assert__arg = __tmp_8; if (assert__arg == 0) { {reach_error();} return __return_main; } else { return __return_main; } } } } } else { nl3 = 1; mode3 = 0; p12_old = p12_new; p12_new = nomsg; p13_old = p13_new; p13_new = nomsg; p21_old = p21_new; p21_new = nomsg; p23_old = p23_new; p23_new = nomsg; p31_old = p31_new; p31_new = nomsg; p32_old = p32_new; p32_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if ((((int)st1) + ((int)nl1)) <= 1) { if ((((int)st2) + ((int)nl2)) <= 1) { if ((((int)st3) + ((int)nl3)) <= 1) { if (((int)r1) >= 2) { if (((int)r1) < 2) { return __return_main; } else { if (((((int)st1) + ((int)st2)) + ((int)st3)) == 1) { if (((int)r1) >= 2) { label_2539:; if (((int)r1) < 2) { check__tmp = 1; label_2545:; label_2531:; __return_2538 = check__tmp; main__c1 = __return_2538; goto label_2191; } else { if (((((int)nl1) + ((int)nl2)) + ((int)nl3)) == 2) { check__tmp = 1; goto label_2545; } else { check__tmp = 0; goto label_2545; } } } else { if (((((int)nl1) + ((int)nl2)) + ((int)nl3)) == 0) { goto label_2539; } else { check__tmp = 0; goto label_2531; } } } else { return __return_main; } } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } } } else { return __return_main; } } else { goto label_2486; } } else { goto label_2486; } } else { goto label_2479; } } else { goto label_2479; } } } else { return __return_main; } } } else { nl2 = 1; mode2 = 0; { if (!(mode3 == 0)) { if (r3 == 255) { return __return_main; } else { r3 = r3 + 1; if (!(ep13 == 0)) { m3 = p13_old; p13_old = nomsg; if (((int)m3) > ((int)max3)) { max3 = m3; label_2137:; if (!(ep23 == 0)) { m3 = p23_old; p23_old = nomsg; if (((int)m3) > ((int)max3)) { max3 = m3; label_2144:; if (((int)r3) == 2) { if (((int)max3) == ((int)id3)) { st3 = 1; mode3 = 0; p12_old = p12_new; p12_new = nomsg; p13_old = p13_new; p13_new = nomsg; p21_old = p21_new; p21_new = nomsg; p23_old = p23_new; p23_new = nomsg; p31_old = p31_new; p31_new = nomsg; p32_old = p32_new; p32_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if ((((int)st1) + ((int)nl1)) <= 1) { if ((((int)st2) + ((int)nl2)) <= 1) { if ((((int)st3) + ((int)nl3)) <= 1) { if (((int)r1) >= 2) { if (((int)r1) < 2) { return __return_main; } else { if (((((int)st1) + ((int)st2)) + ((int)st3)) == 1) { if (((int)r1) >= 2) { label_2459:; if (((int)r1) < 2) { check__tmp = 1; label_2465:; label_2451:; __return_2458 = check__tmp; main__c1 = __return_2458; goto label_2191; } else { if (((((int)nl1) + ((int)nl2)) + ((int)nl3)) == 2) { check__tmp = 1; goto label_2465; } else { check__tmp = 0; goto label_2465; } } } else { if (((((int)nl1) + ((int)nl2)) + ((int)nl3)) == 0) { goto label_2459; } else { check__tmp = 0; goto label_2451; } } } else { return __return_main; } } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } } else { nl3 = 1; mode3 = 0; p12_old = p12_new; p12_new = nomsg; p13_old = p13_new; p13_new = nomsg; p21_old = p21_new; p21_new = nomsg; p23_old = p23_new; p23_new = nomsg; p31_old = p31_new; p31_new = nomsg; p32_old = p32_new; p32_new = nomsg; { int check__tmp; if (((((int)st1) + ((int)st2)) + ((int)st3)) <= 1) { if ((((int)st1) + ((int)nl1)) <= 1) { if ((((int)st2) + ((int)nl2)) <= 1) { if ((((int)st3) + ((int)nl3)) <= 1) { if (((int)r1) >= 2) { if (((int)r1) < 2) { return __return_main; } else { if (((((int)st1) + ((int)st2)) + ((int)st3)) == 1) { return __return_main; } else { check__tmp = 0; __return_2190 = check__tmp; main__c1 = __return_2190; goto label_2191; } } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } } } else { return __return_main; } } else { goto label_2144; } } else { goto label_2144; } } else { goto label_2137; } } else { goto label_2137; } } } else { return __return_main; } } } } else { return __return_main; } } else { goto label_2116; } } else { goto label_2116; } } else { goto label_2109; } } else { goto label_2109; } } } else { return __return_main; } } } } else { return __return_main; } } else { goto label_2088; } } else { goto label_2088; } } else { goto label_2081; } } else { goto label_2081; } } } else { return __return_main; } } } } } else { return __return_main; } } else { return __return_main; } } } else { 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_2022:; node3____CPAchecker_TMP_1 = p32_new; goto label_2023; } } else { goto label_2022; } } else { goto label_2025; } } else { label_2014:; node3____CPAchecker_TMP_0 = p31_new; goto label_2015; } } else { goto label_2014; } } else { goto label_2010; } } else { return __return_main; } } } } else { label_1998:; node2____CPAchecker_TMP_1 = p23_new; goto label_1999; } } else { goto label_1998; } } else { goto label_2001; } } else { label_1990:; node2____CPAchecker_TMP_0 = p21_new; goto label_1991; } } else { goto label_1990; } } else { goto label_1986; } } else { return __return_main; } } } } } } } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { return __return_main; } } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } } } else { goto label_1916; } } else { goto label_1916; } } else { goto label_1909; } } else { goto label_1909; } } } else { return __return_main; } } } } else { goto label_1892; } } else { goto label_1892; } } else { goto label_1885; } } else { goto label_1885; } } } else { return __return_main; } } } } else { goto label_1868; } } else { goto label_1868; } } else { goto label_1861; } } else { goto label_1861; } } } else { return __return_main; } } } } } else { return __return_main; } } else { return __return_main; } } } else { 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_1802:; node3____CPAchecker_TMP_1 = p32_new; goto label_1803; } } else { goto label_1802; } } else { goto label_1805; } } else { label_1794:; node3____CPAchecker_TMP_0 = p31_new; goto label_1795; } } else { goto label_1794; } } else { goto label_1790; } } else { return __return_main; } } } } else { label_1778:; node2____CPAchecker_TMP_1 = p23_new; goto label_1779; } } else { goto label_1778; } } else { goto label_1781; } } else { label_1770:; node2____CPAchecker_TMP_0 = p21_new; goto label_1771; } } else { goto label_1770; } } else { goto label_1766; } } else { return __return_main; } } } } else { label_1754:; node1____CPAchecker_TMP_1 = p13_new; goto label_1755; } } else { goto label_1754; } } else { goto label_1757; } } else { label_1746:; node1____CPAchecker_TMP_0 = p12_new; goto label_1747; } } else { goto label_1746; } } else { goto label_1742; } } else { return __return_main; } } } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { return __return_main; } } else { 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 (!(init__r311 == 0)) { if (!(ep12 == 0)) { init__tmp___4 = 1; label_2818:; goto label_1662; } else { init__tmp___4 = 0; goto label_2818; } } else { init__tmp___4 = 0; goto label_1662; } } } else { if (!(init__r321 == 0)) { if (!(ep21 == 0)) { init__tmp___3 = 1; label_2826:; goto label_1657; } else { init__tmp___3 = 0; goto label_2826; } } else { init__tmp___3 = 0; goto label_1657; } } } else { if (!(init__r211 == 0)) { if (!(ep13 == 0)) { init__tmp___2 = 1; label_2834:; goto label_1652; } else { init__tmp___2 = 0; goto label_2834; } } else { init__tmp___2 = 0; goto label_1652; } } } else { if (!(init__r231 == 0)) { if (!(ep31 == 0)) { init__tmp___1 = 1; label_2842:; goto label_1647; } else { init__tmp___1 = 0; goto label_2842; } } else { init__tmp___1 = 0; goto label_1647; } } } else { if (!(init__r121 == 0)) { if (!(ep23 == 0)) { init__tmp___0 = 1; label_2850:; goto label_1642; } else { init__tmp___0 = 0; goto label_2850; } } else { init__tmp___0 = 0; goto label_1642; } } } else { if (!(init__r131 == 0)) { if (!(ep32 == 0)) { init__tmp = 1; label_2858:; goto label_1637; } else { init__tmp = 0; goto label_2858; } } else { init__tmp = 0; goto label_1637; } } } }