// This file is part of the SV-Benchmarks collection of verification tasks: // https://gitlab.com/sosy-lab/benchmarking/sv-benchmarks // // SPDX-FileCopyrightText: 2019 Makai Mann // SPDX-FileCopyrightText: 2022 The SV-Benchmarks Community // // SPDX-License-Identifier: BSD-3-Clause // This C program is converted from Btor2 by Btor2C version sha1:a0fa249 // with arguments: { architecture=64, lazy_modulo=true, use_memmove=false, unroll_inner_loops=false, shortest_type=true, diff_type=true, decimal_constant=true, zero_init=false, sra_extend_sign=true } // Comments from the original Btor2 file: // ; source: https://github.com/makaimann/btor-benchmarks/tree/d9a2792dcee39f17607c889500ac76ad3df35a50 // ; BTOR description generated by Yosys 0.8+458 (git sha1 9b2b0d91, clang 7.0.1 -fPIC -Os) for module top. extern unsigned char __VERIFIER_nondet_uchar(); extern unsigned short __VERIFIER_nondet_ushort(); extern unsigned int __VERIFIER_nondet_uint(); extern unsigned long __VERIFIER_nondet_ulong(); extern void abort(void); extern void __assert_fail(const char *, const char *, unsigned int, const char *); void reach_error() { __assert_fail("0", "safe_arbitrated_fifos_n2d8w8.c", 0, "reach_error"); } void __VERIFIER_assert(int cond) { if (!(cond)) { ERROR: { reach_error(); abort(); } } } void assume_abort_if_not(int cond) { if (!cond) { abort(); } } int main() { // Defining sorts ... typedef unsigned char SORT_1; // BV with 1 bits const SORT_1 mask_SORT_1 = (SORT_1)-1 >> (sizeof(SORT_1) * 8 - 1); const SORT_1 msb_SORT_1 = (SORT_1)1 << (1 - 1); typedef unsigned short SORT_3; // BV with 16 bits const SORT_3 mask_SORT_3 = (SORT_3)-1 >> (sizeof(SORT_3) * 8 - 16); const SORT_3 msb_SORT_3 = (SORT_3)1 << (16 - 1); typedef unsigned char SORT_5; // BV with 2 bits const SORT_5 mask_SORT_5 = (SORT_5)-1 >> (sizeof(SORT_5) * 8 - 2); const SORT_5 msb_SORT_5 = (SORT_5)1 << (2 - 1); typedef unsigned char SORT_11; // BV with 8 bits const SORT_11 mask_SORT_11 = (SORT_11)-1 >> (sizeof(SORT_11) * 8 - 8); const SORT_11 msb_SORT_11 = (SORT_11)1 << (8 - 1); typedef unsigned char SORT_12; // BV with 3 bits const SORT_12 mask_SORT_12 = (SORT_12)-1 >> (sizeof(SORT_12) * 8 - 3); const SORT_12 msb_SORT_12 = (SORT_12)1 << (3 - 1); typedef SORT_11 SORT_13[1 << 3]; // Array with (1 << 3) SORT_11 elements typedef unsigned char SORT_15; // BV with 4 bits const SORT_15 mask_SORT_15 = (SORT_15)-1 >> (sizeof(SORT_15) * 8 - 4); const SORT_15 msb_SORT_15 = (SORT_15)1 << (4 - 1); typedef unsigned char SORT_36; // BV with 5 bits const SORT_36 mask_SORT_36 = (SORT_36)-1 >> (sizeof(SORT_36) * 8 - 5); const SORT_36 msb_SORT_36 = (SORT_36)1 << (5 - 1); typedef unsigned char SORT_38; // BV with 6 bits const SORT_38 mask_SORT_38 = (SORT_38)-1 >> (sizeof(SORT_38) * 8 - 6); const SORT_38 msb_SORT_38 = (SORT_38)1 << (6 - 1); typedef unsigned char SORT_40; // BV with 7 bits const SORT_40 mask_SORT_40 = (SORT_40)-1 >> (sizeof(SORT_40) * 8 - 7); const SORT_40 msb_SORT_40 = (SORT_40)1 << (7 - 1); typedef unsigned int SORT_229; // BV with 32 bits const SORT_229 mask_SORT_229 = (SORT_229)-1 >> (sizeof(SORT_229) * 8 - 32); const SORT_229 msb_SORT_229 = (SORT_229)1 << (32 - 1); // Initializing constants ... const SORT_15 var_27 = 8; const SORT_15 var_99 = 0; const SORT_1 var_109 = 1; const SORT_1 var_110 = 0; const SORT_11 var_183 = 0; const SORT_229 var_230 = 2; const SORT_11 var_410 = 255; // Collecting input declarations ... SORT_1 input_2; SORT_3 input_4; SORT_5 input_6; SORT_3 input_7; SORT_5 input_8; SORT_1 input_9; SORT_1 input_10; // Collecting state declarations ... SORT_13 state_14; for (unsigned char i = 0; i < (1 << 3); ++i) state_14[i] = __VERIFIER_nondet_uchar() & mask_SORT_11; SORT_15 state_16 = __VERIFIER_nondet_uchar() & mask_SORT_15; SORT_15 state_19 = __VERIFIER_nondet_uchar() & mask_SORT_15; SORT_11 state_26 = __VERIFIER_nondet_uchar() & mask_SORT_11; SORT_1 state_31 = __VERIFIER_nondet_uchar() & mask_SORT_1; SORT_13 state_44; for (unsigned char i = 0; i < (1 << 3); ++i) state_44[i] = __VERIFIER_nondet_uchar() & mask_SORT_11; SORT_15 state_45 = __VERIFIER_nondet_uchar() & mask_SORT_15; SORT_15 state_48 = __VERIFIER_nondet_uchar() & mask_SORT_15; SORT_11 state_55 = __VERIFIER_nondet_uchar() & mask_SORT_11; SORT_1 state_85 = __VERIFIER_nondet_uchar() & mask_SORT_1; SORT_1 state_86 = __VERIFIER_nondet_uchar() & mask_SORT_1; SORT_15 state_89 = __VERIFIER_nondet_uchar() & mask_SORT_15; SORT_11 state_105 = __VERIFIER_nondet_uchar() & mask_SORT_11; SORT_1 state_111 = __VERIFIER_nondet_uchar() & mask_SORT_1; SORT_1 state_333 = __VERIFIER_nondet_uchar() & mask_SORT_1; SORT_1 state_334 = __VERIFIER_nondet_uchar() & mask_SORT_1; SORT_1 state_335 = __VERIFIER_nondet_uchar() & mask_SORT_1; SORT_1 state_336 = __VERIFIER_nondet_uchar() & mask_SORT_1; SORT_1 state_337 = __VERIFIER_nondet_uchar() & mask_SORT_1; SORT_1 state_338 = __VERIFIER_nondet_uchar() & mask_SORT_1; SORT_1 state_339 = __VERIFIER_nondet_uchar() & mask_SORT_1; SORT_1 state_340 = __VERIFIER_nondet_uchar() & mask_SORT_1; // Initializing states ... SORT_1 init_112_arg_1 = var_109; state_111 = init_112_arg_1; for (;;) { // Getting external input values ... input_2 = __VERIFIER_nondet_uchar(); input_4 = __VERIFIER_nondet_ushort(); input_6 = __VERIFIER_nondet_uchar(); input_7 = __VERIFIER_nondet_ushort(); input_8 = __VERIFIER_nondet_uchar(); input_9 = __VERIFIER_nondet_uchar(); input_9 = input_9 & mask_SORT_1; input_10 = __VERIFIER_nondet_uchar(); // Assuming invariants ... SORT_15 var_52_arg_0 = state_48; SORT_15 var_52_arg_1 = state_45; SORT_1 var_52 = var_52_arg_0 == var_52_arg_1; SORT_1 var_117_arg_0 = var_52; SORT_1 var_117 = ~var_117_arg_0; SORT_5 var_51_arg_0 = input_8; SORT_1 var_51 = var_51_arg_0 >> 0; SORT_1 var_118_arg_0 = var_51; SORT_1 var_118 = ~var_118_arg_0; SORT_1 var_119_arg_0 = var_117; SORT_1 var_119_arg_1 = var_118; SORT_1 var_119 = var_119_arg_0 | var_119_arg_1; SORT_1 var_120_arg_0 = var_109; SORT_1 var_120 = ~var_120_arg_0; SORT_1 var_121_arg_0 = var_119; SORT_1 var_121_arg_1 = var_120; SORT_1 var_121 = var_121_arg_0 | var_121_arg_1; var_121 = var_121 & mask_SORT_1; SORT_1 constr_122_arg_0 = var_121; assume_abort_if_not(constr_122_arg_0); SORT_15 var_23_arg_0 = state_19; SORT_15 var_23_arg_1 = state_16; SORT_1 var_23 = var_23_arg_0 == var_23_arg_1; SORT_1 var_123_arg_0 = var_23; SORT_1 var_123 = ~var_123_arg_0; SORT_5 var_22_arg_0 = input_8; SORT_1 var_22 = var_22_arg_0 >> 1; SORT_1 var_124_arg_0 = var_22; SORT_1 var_124 = ~var_124_arg_0; SORT_1 var_125_arg_0 = var_123; SORT_1 var_125_arg_1 = var_124; SORT_1 var_125 = var_125_arg_0 | var_125_arg_1; SORT_1 var_126_arg_0 = var_109; SORT_1 var_126 = ~var_126_arg_0; SORT_1 var_127_arg_0 = var_125; SORT_1 var_127_arg_1 = var_126; SORT_1 var_127 = var_127_arg_0 | var_127_arg_1; var_127 = var_127 & mask_SORT_1; SORT_1 constr_128_arg_0 = var_127; assume_abort_if_not(constr_128_arg_0); SORT_15 var_49_arg_0 = state_48; SORT_12 var_49 = var_49_arg_0 >> 0; var_49 = var_49 & mask_SORT_12; SORT_15 var_46_arg_0 = state_45; SORT_12 var_46 = var_46_arg_0 >> 0; var_46 = var_46 & mask_SORT_12; SORT_12 var_73_arg_0 = var_49; SORT_12 var_73_arg_1 = var_46; SORT_1 var_73 = var_73_arg_0 == var_73_arg_1; SORT_15 var_74_arg_0 = state_48; SORT_1 var_74 = var_74_arg_0 >> 3; var_74 = var_74 & mask_SORT_1; SORT_15 var_75_arg_0 = state_45; SORT_1 var_75 = var_75_arg_0 >> 3; var_75 = var_75 & mask_SORT_1; SORT_1 var_76_arg_0 = var_74; SORT_1 var_76_arg_1 = var_75; SORT_1 var_76 = var_76_arg_0 != var_76_arg_1; SORT_1 var_77_arg_0 = var_73; SORT_1 var_77_arg_1 = var_76; SORT_1 var_77 = var_77_arg_0 & var_77_arg_1; var_77 = var_77 & mask_SORT_1; SORT_1 var_129_arg_0 = var_77; SORT_1 var_129 = ~var_129_arg_0; SORT_5 var_92_arg_0 = input_6; SORT_1 var_92 = var_92_arg_0 >> 0; var_92 = var_92 & mask_SORT_1; SORT_1 var_130_arg_0 = var_92; SORT_1 var_130 = ~var_130_arg_0; SORT_1 var_131_arg_0 = var_129; SORT_1 var_131_arg_1 = var_130; SORT_1 var_131 = var_131_arg_0 | var_131_arg_1; SORT_1 var_132_arg_0 = var_109; SORT_1 var_132 = ~var_132_arg_0; SORT_1 var_133_arg_0 = var_131; SORT_1 var_133_arg_1 = var_132; SORT_1 var_133 = var_133_arg_0 | var_133_arg_1; var_133 = var_133 & mask_SORT_1; SORT_1 constr_134_arg_0 = var_133; assume_abort_if_not(constr_134_arg_0); SORT_15 var_20_arg_0 = state_19; SORT_12 var_20 = var_20_arg_0 >> 0; var_20 = var_20 & mask_SORT_12; SORT_15 var_17_arg_0 = state_16; SORT_12 var_17 = var_17_arg_0 >> 0; var_17 = var_17 & mask_SORT_12; SORT_12 var_78_arg_0 = var_20; SORT_12 var_78_arg_1 = var_17; SORT_1 var_78 = var_78_arg_0 == var_78_arg_1; SORT_15 var_79_arg_0 = state_19; SORT_1 var_79 = var_79_arg_0 >> 3; var_79 = var_79 & mask_SORT_1; SORT_15 var_80_arg_0 = state_16; SORT_1 var_80 = var_80_arg_0 >> 3; var_80 = var_80 & mask_SORT_1; SORT_1 var_81_arg_0 = var_79; SORT_1 var_81_arg_1 = var_80; SORT_1 var_81 = var_81_arg_0 != var_81_arg_1; SORT_1 var_82_arg_0 = var_78; SORT_1 var_82_arg_1 = var_81; SORT_1 var_82 = var_82_arg_0 & var_82_arg_1; SORT_1 var_135_arg_0 = var_82; SORT_1 var_135 = ~var_135_arg_0; SORT_5 var_136_arg_0 = input_6; SORT_1 var_136 = var_136_arg_0 >> 1; var_136 = var_136 & mask_SORT_1; SORT_1 var_137_arg_0 = var_136; SORT_1 var_137 = ~var_137_arg_0; SORT_1 var_138_arg_0 = var_135; SORT_1 var_138_arg_1 = var_137; SORT_1 var_138 = var_138_arg_0 | var_138_arg_1; SORT_1 var_139_arg_0 = var_109; SORT_1 var_139 = ~var_139_arg_0; SORT_1 var_140_arg_0 = var_138; SORT_1 var_140_arg_1 = var_139; SORT_1 var_140 = var_140_arg_0 | var_140_arg_1; var_140 = var_140 & mask_SORT_1; SORT_1 constr_141_arg_0 = var_140; assume_abort_if_not(constr_141_arg_0); SORT_1 var_142_arg_0 = state_111; SORT_1 var_142_arg_1 = input_9; SORT_1 var_142 = var_142_arg_0 == var_142_arg_1; SORT_1 var_143_arg_0 = var_109; SORT_1 var_143 = ~var_143_arg_0; SORT_1 var_144_arg_0 = var_142; SORT_1 var_144_arg_1 = var_143; SORT_1 var_144 = var_144_arg_0 | var_144_arg_1; var_144 = var_144 & mask_SORT_1; SORT_1 constr_145_arg_0 = var_144; assume_abort_if_not(constr_145_arg_0); // Asserting properties ... SORT_1 var_113_arg_0 = state_111; SORT_1 var_113_arg_1 = var_110; SORT_1 var_113_arg_2 = var_109; SORT_1 var_113 = var_113_arg_0 ? var_113_arg_1 : var_113_arg_2; SORT_1 var_87_arg_0 = state_86; SORT_1 var_87 = ~var_87_arg_0; SORT_1 var_88_arg_0 = state_85; SORT_1 var_88_arg_1 = var_87; SORT_1 var_88 = var_88_arg_0 & var_88_arg_1; SORT_15 var_90_arg_0 = state_89; SORT_1 var_90 = var_90_arg_0 != 0; SORT_1 var_91_arg_0 = var_88; SORT_1 var_91_arg_1 = var_90; SORT_1 var_91 = var_91_arg_0 & var_91_arg_1; SORT_1 var_93_arg_0 = state_85; SORT_1 var_93 = ~var_93_arg_0; SORT_1 var_94_arg_0 = var_92; SORT_1 var_94_arg_1 = var_93; SORT_1 var_94 = var_94_arg_0 & var_94_arg_1; SORT_1 var_95_arg_0 = var_94; var_95_arg_0 = var_95_arg_0 & mask_SORT_1; SORT_15 var_95 = var_95_arg_0; SORT_15 var_96_arg_0 = state_89; SORT_15 var_96_arg_1 = var_95; SORT_15 var_96 = var_96_arg_0 + var_96_arg_1; SORT_1 var_53_arg_0 = var_52; SORT_1 var_53 = ~var_53_arg_0; SORT_1 var_54_arg_0 = var_51; SORT_1 var_54_arg_1 = var_53; SORT_1 var_54 = var_54_arg_0 & var_54_arg_1; var_54 = var_54 & mask_SORT_1; SORT_15 var_56_arg_0 = var_27; var_56_arg_0 = var_56_arg_0 & mask_SORT_15; SORT_11 var_56 = var_56_arg_0; SORT_11 var_57_arg_0 = state_55; SORT_11 var_57_arg_1 = var_56; SORT_1 var_57 = var_57_arg_0 >= var_57_arg_1; SORT_1 var_58_arg_0 = var_54; SORT_1 var_58_arg_1 = var_57; SORT_1 var_58 = var_58_arg_0 & var_58_arg_1; SORT_1 var_59_arg_0 = state_31; SORT_1 var_59 = ~var_59_arg_0; var_59 = var_59 & mask_SORT_1; SORT_1 var_60_arg_0 = var_58; SORT_1 var_60_arg_1 = var_59; SORT_1 var_60 = var_60_arg_0 & var_60_arg_1; var_60 = var_60 & mask_SORT_1; SORT_1 var_97_arg_0 = var_60; var_97_arg_0 = var_97_arg_0 & mask_SORT_1; SORT_15 var_97 = var_97_arg_0; SORT_15 var_98_arg_0 = var_96; SORT_15 var_98_arg_1 = var_97; SORT_15 var_98 = var_98_arg_0 - var_98_arg_1; SORT_1 var_100_arg_0 = input_9; SORT_15 var_100_arg_1 = var_99; SORT_15 var_100_arg_2 = var_98; SORT_15 var_100 = var_100_arg_0 ? var_100_arg_1 : var_100_arg_2; var_100 = var_100 & mask_SORT_15; SORT_15 var_101_arg_0 = var_100; SORT_1 var_101 = var_101_arg_0 != 0; SORT_1 var_102_arg_0 = var_101; SORT_1 var_102 = ~var_102_arg_0; SORT_1 var_103_arg_0 = var_91; SORT_1 var_103_arg_1 = var_102; SORT_1 var_103 = var_103_arg_0 & var_103_arg_1; SORT_1 var_104_arg_0 = var_103; SORT_1 var_104 = ~var_104_arg_0; SORT_11* var_21_arg_0 = state_14; SORT_12 var_21_arg_1 = var_20; SORT_11 var_21 = var_21_arg_0[(unsigned char) var_21_arg_1]; SORT_1 var_24_arg_0 = var_23; SORT_1 var_24 = ~var_24_arg_0; SORT_1 var_25_arg_0 = var_22; SORT_1 var_25_arg_1 = var_24; SORT_1 var_25 = var_25_arg_0 & var_25_arg_1; SORT_15 var_28_arg_0 = var_27; var_28_arg_0 = var_28_arg_0 & mask_SORT_15; SORT_11 var_28 = var_28_arg_0; SORT_11 var_29_arg_0 = state_26; SORT_11 var_29_arg_1 = var_28; SORT_1 var_29 = var_29_arg_0 >= var_29_arg_1; SORT_1 var_30_arg_0 = var_25; SORT_1 var_30_arg_1 = var_29; SORT_1 var_30 = var_30_arg_0 & var_30_arg_1; SORT_1 var_32_arg_0 = var_30; SORT_1 var_32_arg_1 = state_31; SORT_1 var_32 = var_32_arg_0 & var_32_arg_1; var_32 = var_32 & mask_SORT_1; SORT_1 var_33_arg_0 = var_32; SORT_1 var_33_arg_1 = var_32; SORT_5 var_33 = ((SORT_5)var_33_arg_0 << 1) | var_33_arg_1; var_33 = var_33 & mask_SORT_5; SORT_1 var_34_arg_0 = var_32; SORT_5 var_34_arg_1 = var_33; SORT_12 var_34 = ((SORT_12)var_34_arg_0 << 2) | var_34_arg_1; var_34 = var_34 & mask_SORT_12; SORT_1 var_35_arg_0 = var_32; SORT_12 var_35_arg_1 = var_34; SORT_15 var_35 = ((SORT_15)var_35_arg_0 << 3) | var_35_arg_1; var_35 = var_35 & mask_SORT_15; SORT_1 var_37_arg_0 = var_32; SORT_15 var_37_arg_1 = var_35; SORT_36 var_37 = ((SORT_36)var_37_arg_0 << 4) | var_37_arg_1; var_37 = var_37 & mask_SORT_36; SORT_1 var_39_arg_0 = var_32; SORT_36 var_39_arg_1 = var_37; SORT_38 var_39 = ((SORT_38)var_39_arg_0 << 5) | var_39_arg_1; var_39 = var_39 & mask_SORT_38; SORT_1 var_41_arg_0 = var_32; SORT_38 var_41_arg_1 = var_39; SORT_40 var_41 = ((SORT_40)var_41_arg_0 << 6) | var_41_arg_1; var_41 = var_41 & mask_SORT_40; SORT_1 var_42_arg_0 = var_32; SORT_40 var_42_arg_1 = var_41; SORT_11 var_42 = ((SORT_11)var_42_arg_0 << 7) | var_42_arg_1; SORT_11 var_43_arg_0 = var_21; SORT_11 var_43_arg_1 = var_42; SORT_11 var_43 = var_43_arg_0 & var_43_arg_1; SORT_11* var_50_arg_0 = state_44; SORT_12 var_50_arg_1 = var_49; SORT_11 var_50 = var_50_arg_0[(unsigned char) var_50_arg_1]; var_50 = var_50 & mask_SORT_11; SORT_1 var_61_arg_0 = var_60; SORT_1 var_61_arg_1 = var_60; SORT_5 var_61 = ((SORT_5)var_61_arg_0 << 1) | var_61_arg_1; var_61 = var_61 & mask_SORT_5; SORT_1 var_62_arg_0 = var_60; SORT_5 var_62_arg_1 = var_61; SORT_12 var_62 = ((SORT_12)var_62_arg_0 << 2) | var_62_arg_1; var_62 = var_62 & mask_SORT_12; SORT_1 var_63_arg_0 = var_60; SORT_12 var_63_arg_1 = var_62; SORT_15 var_63 = ((SORT_15)var_63_arg_0 << 3) | var_63_arg_1; var_63 = var_63 & mask_SORT_15; SORT_1 var_64_arg_0 = var_60; SORT_15 var_64_arg_1 = var_63; SORT_36 var_64 = ((SORT_36)var_64_arg_0 << 4) | var_64_arg_1; var_64 = var_64 & mask_SORT_36; SORT_1 var_65_arg_0 = var_60; SORT_36 var_65_arg_1 = var_64; SORT_38 var_65 = ((SORT_38)var_65_arg_0 << 5) | var_65_arg_1; var_65 = var_65 & mask_SORT_38; SORT_1 var_66_arg_0 = var_60; SORT_38 var_66_arg_1 = var_65; SORT_40 var_66 = ((SORT_40)var_66_arg_0 << 6) | var_66_arg_1; var_66 = var_66 & mask_SORT_40; SORT_1 var_67_arg_0 = var_60; SORT_40 var_67_arg_1 = var_66; SORT_11 var_67 = ((SORT_11)var_67_arg_0 << 7) | var_67_arg_1; SORT_11 var_68_arg_0 = var_50; SORT_11 var_68_arg_1 = var_67; SORT_11 var_68 = var_68_arg_0 & var_68_arg_1; SORT_11 var_69_arg_0 = var_43; SORT_11 var_69_arg_1 = var_68; SORT_11 var_69 = var_69_arg_0 | var_69_arg_1; var_69 = var_69 & mask_SORT_11; SORT_11 var_106_arg_0 = state_105; SORT_11 var_106_arg_1 = var_69; SORT_1 var_106 = var_106_arg_0 == var_106_arg_1; SORT_1 var_107_arg_0 = var_104; SORT_1 var_107_arg_1 = var_106; SORT_1 var_107 = var_107_arg_0 | var_107_arg_1; SORT_1 var_114_arg_0 = var_107; SORT_1 var_114 = ~var_114_arg_0; SORT_1 var_115_arg_0 = var_113; SORT_1 var_115_arg_1 = var_114; SORT_1 var_115 = var_115_arg_0 & var_115_arg_1; var_115 = var_115 & mask_SORT_1; SORT_1 bad_116_arg_0 = var_115; __VERIFIER_assert(!(bad_116_arg_0)); // Computing next states ... SORT_1 var_298_arg_0 = var_136; SORT_1 var_298_arg_1 = var_32; SORT_1 var_298 = var_298_arg_0 | var_298_arg_1; SORT_1 var_299_arg_0 = var_298; SORT_1 var_299_arg_1 = input_9; SORT_1 var_299 = var_299_arg_0 | var_299_arg_1; var_299 = var_299 & mask_SORT_1; SORT_1 var_310_arg_0 = var_136; var_310_arg_0 = var_310_arg_0 & mask_SORT_1; SORT_15 var_310 = var_310_arg_0; SORT_15 var_311_arg_0 = state_16; SORT_15 var_311_arg_1 = var_310; SORT_15 var_311 = var_311_arg_0 + var_311_arg_1; SORT_1 var_404_arg_0 = var_299; SORT_15 var_404_arg_1 = var_311; SORT_15 var_404_arg_2 = state_16; SORT_15 var_404 = var_404_arg_0 ? var_404_arg_1 : var_404_arg_2; SORT_1 var_405_arg_0 = input_9; SORT_15 var_405_arg_1 = var_99; SORT_15 var_405_arg_2 = var_404; SORT_15 var_405 = var_405_arg_0 ? var_405_arg_1 : var_405_arg_2; var_405 = var_405 & mask_SORT_15; SORT_15 next_406_arg_1 = var_405; SORT_1 var_304_arg_0 = var_32; var_304_arg_0 = var_304_arg_0 & mask_SORT_1; SORT_15 var_304 = var_304_arg_0; SORT_15 var_305_arg_0 = state_19; SORT_15 var_305_arg_1 = var_304; SORT_15 var_305 = var_305_arg_0 + var_305_arg_1; SORT_1 var_407_arg_0 = var_299; SORT_15 var_407_arg_1 = var_305; SORT_15 var_407_arg_2 = state_19; SORT_15 var_407 = var_407_arg_0 ? var_407_arg_1 : var_407_arg_2; SORT_1 var_408_arg_0 = input_9; SORT_15 var_408_arg_1 = var_99; SORT_15 var_408_arg_2 = var_407; SORT_15 var_408 = var_408_arg_0 ? var_408_arg_1 : var_408_arg_2; var_408 = var_408 & mask_SORT_15; SORT_15 next_409_arg_1 = var_408; SORT_11 var_417_arg_0 = var_410; SORT_1 var_417 = var_417_arg_0 != 0; SORT_3 var_258_arg_0 = input_4; SORT_11 var_258 = var_258_arg_0 >> 8; SORT_11* var_18_arg_0 = state_14; SORT_12 var_18_arg_1 = var_17; SORT_11 var_18 = var_18_arg_0[(unsigned char) var_18_arg_1]; SORT_1 var_317_arg_0 = var_136; SORT_11 var_317_arg_1 = var_258; SORT_11 var_317_arg_2 = var_18; SORT_11 var_317 = var_317_arg_0 ? var_317_arg_1 : var_317_arg_2; SORT_11 var_414_arg_0 = var_317; SORT_11 var_414_arg_1 = var_410; SORT_11 var_414 = var_414_arg_0 & var_414_arg_1; SORT_11* var_411_arg_0 = state_14; SORT_12 var_411_arg_1 = var_17; SORT_11 var_411 = var_411_arg_0[(unsigned char) var_411_arg_1]; SORT_11 var_412_arg_0 = var_410; SORT_11 var_412 = ~var_412_arg_0; SORT_11 var_413_arg_0 = var_411; SORT_11 var_413_arg_1 = var_412; SORT_11 var_413 = var_413_arg_0 & var_413_arg_1; SORT_11 var_415_arg_0 = var_414; SORT_11 var_415_arg_1 = var_413; SORT_11 var_415 = var_415_arg_0 | var_415_arg_1; SORT_11* var_416_arg_0 = state_14; SORT_12 var_416_arg_1 = var_17; SORT_11 var_416_arg_2 = var_415; SORT_13 var_416; for (unsigned char i = 0; i < (1 << 3); ++i) var_416[i] = var_416_arg_0[i]; var_416[(unsigned char) var_416_arg_1] = var_416_arg_2; SORT_1 var_418_arg_0 = var_417; SORT_11* var_418_arg_1 = var_416; SORT_11* var_418_arg_2 = state_14; SORT_11* var_418 = var_418_arg_0 ? var_418_arg_1 : var_418_arg_2; SORT_11* next_419_arg_1 = var_418; SORT_1 var_157_arg_0 = var_25; SORT_1 var_157_arg_1 = var_54; SORT_5 var_157 = ((SORT_5)var_157_arg_0 << 1) | var_157_arg_1; var_157 = var_157 & mask_SORT_5; SORT_1 var_162_arg_0 = state_31; var_162_arg_0 = var_162_arg_0 & mask_SORT_1; SORT_5 var_162 = var_162_arg_0; SORT_1 var_163_arg_0 = var_109; var_163_arg_0 = var_163_arg_0 & mask_SORT_1; SORT_5 var_163 = var_163_arg_0; SORT_5 var_164_arg_0 = var_162; SORT_5 var_164_arg_1 = var_163; SORT_5 var_164 = var_164_arg_0 + var_164_arg_1; SORT_5 var_165_arg_0 = var_164; var_165_arg_0 = var_165_arg_0 & mask_SORT_5; SORT_12 var_165 = var_165_arg_0; SORT_1 var_166_arg_0 = var_109; var_166_arg_0 = var_166_arg_0 & mask_SORT_1; SORT_12 var_166 = var_166_arg_0; SORT_12 var_167_arg_0 = var_165; SORT_12 var_167_arg_1 = var_166; SORT_12 var_167 = var_167_arg_0 + var_167_arg_1; SORT_12 var_168_arg_0 = var_167; SORT_1 var_168 = var_168_arg_0 >> 0; SORT_1 var_169_arg_0 = var_168; var_169_arg_0 = var_169_arg_0 & mask_SORT_1; SORT_5 var_169 = var_169_arg_0; SORT_5 var_170_arg_0 = var_157; SORT_5 var_170_arg_1 = var_169; SORT_5 var_170 = var_170_arg_0 >> var_170_arg_1; SORT_5 var_171_arg_0 = var_170; SORT_1 var_171 = var_171_arg_0 >> 0; SORT_1 var_152_arg_0 = var_110; SORT_1 var_152_arg_1 = state_31; SORT_5 var_152 = ((SORT_5)var_152_arg_0 << 1) | var_152_arg_1; SORT_5 var_153_arg_0 = var_152; var_153_arg_0 = var_153_arg_0 & mask_SORT_5; SORT_12 var_153 = var_153_arg_0; SORT_1 var_154_arg_0 = var_109; var_154_arg_0 = var_154_arg_0 & mask_SORT_1; SORT_12 var_154 = var_154_arg_0; SORT_12 var_155_arg_0 = var_153; SORT_12 var_155_arg_1 = var_154; SORT_12 var_155 = var_155_arg_0 + var_155_arg_1; SORT_12 var_156_arg_0 = var_155; SORT_1 var_156 = var_156_arg_0 >> 0; SORT_1 var_158_arg_0 = var_156; var_158_arg_0 = var_158_arg_0 & mask_SORT_1; SORT_5 var_158 = var_158_arg_0; SORT_5 var_159_arg_0 = var_157; SORT_5 var_159_arg_1 = var_158; SORT_5 var_159 = var_159_arg_0 >> var_159_arg_1; SORT_5 var_160_arg_0 = var_159; SORT_1 var_160 = var_160_arg_0 >> 0; var_160 = var_160 & mask_SORT_1; SORT_1 var_172_arg_0 = var_160; SORT_1 var_172 = ~var_172_arg_0; SORT_1 var_173_arg_0 = var_171; SORT_1 var_173_arg_1 = var_172; SORT_1 var_173 = var_173_arg_0 & var_173_arg_1; var_173 = var_173 & mask_SORT_1; SORT_1 var_161_arg_0 = var_160; SORT_1 var_161_arg_1 = var_156; SORT_1 var_161_arg_2 = state_31; SORT_1 var_161 = var_161_arg_0 ? var_161_arg_1 : var_161_arg_2; SORT_1 var_174_arg_0 = var_173; SORT_1 var_174_arg_1 = var_168; SORT_1 var_174_arg_2 = var_161; SORT_1 var_174 = var_174_arg_0 ? var_174_arg_1 : var_174_arg_2; var_174 = var_174 & mask_SORT_1; SORT_1 var_204_arg_0 = var_174; SORT_1 var_204_arg_1 = state_31; SORT_1 var_204 = var_204_arg_0 | var_204_arg_1; var_204 = var_204 & mask_SORT_1; SORT_1 var_198_arg_0 = var_25; SORT_1 var_198 = ~var_198_arg_0; SORT_1 var_199_arg_0 = state_31; SORT_1 var_199_arg_1 = var_198; SORT_1 var_199 = var_199_arg_0 & var_199_arg_1; var_199 = var_199 & mask_SORT_1; SORT_3 var_191_arg_0 = input_7; SORT_11 var_191 = var_191_arg_0 >> 8; SORT_11 var_192_arg_0 = state_26; SORT_11 var_192_arg_1 = var_191; SORT_11 var_192 = var_192_arg_0 + var_192_arg_1; SORT_1 var_193_arg_0 = var_174; SORT_11 var_193_arg_1 = var_192; SORT_11 var_193_arg_2 = state_26; SORT_11 var_193 = var_193_arg_0 ? var_193_arg_1 : var_193_arg_2; SORT_15 var_195_arg_0 = var_27; var_195_arg_0 = var_195_arg_0 & mask_SORT_15; SORT_11 var_195 = var_195_arg_0; SORT_11 var_196_arg_0 = var_193; SORT_11 var_196_arg_1 = var_195; SORT_11 var_196 = var_196_arg_0 - var_196_arg_1; SORT_1 var_197_arg_0 = var_32; SORT_11 var_197_arg_1 = var_196; SORT_11 var_197_arg_2 = var_193; SORT_11 var_197 = var_197_arg_0 ? var_197_arg_1 : var_197_arg_2; SORT_1 var_200_arg_0 = var_199; SORT_11 var_200_arg_1 = state_26; SORT_11 var_200_arg_2 = var_197; SORT_11 var_200 = var_200_arg_0 ? var_200_arg_1 : var_200_arg_2; SORT_1 var_201_arg_0 = input_9; SORT_11 var_201_arg_1 = var_183; SORT_11 var_201_arg_2 = var_200; SORT_11 var_201 = var_201_arg_0 ? var_201_arg_1 : var_201_arg_2; var_201 = var_201 & mask_SORT_11; SORT_1 var_420_arg_0 = var_204; SORT_11 var_420_arg_1 = var_201; SORT_11 var_420_arg_2 = state_26; SORT_11 var_420 = var_420_arg_0 ? var_420_arg_1 : var_420_arg_2; SORT_1 var_421_arg_0 = input_9; SORT_11 var_421_arg_1 = var_183; SORT_11 var_421_arg_2 = var_420; SORT_11 var_421 = var_421_arg_0 ? var_421_arg_1 : var_421_arg_2; var_421 = var_421 & mask_SORT_11; SORT_11 next_422_arg_1 = var_421; SORT_1 var_180_arg_0 = var_54; SORT_1 var_180 = ~var_180_arg_0; SORT_1 var_181_arg_0 = var_59; SORT_1 var_181_arg_1 = var_180; SORT_1 var_181 = var_181_arg_0 & var_181_arg_1; var_181 = var_181 & mask_SORT_1; SORT_3 var_150_arg_0 = input_7; SORT_11 var_150 = var_150_arg_0 >> 0; SORT_11 var_151_arg_0 = state_55; SORT_11 var_151_arg_1 = var_150; SORT_11 var_151 = var_151_arg_0 + var_151_arg_1; SORT_1 var_175_arg_0 = var_174; SORT_11 var_175_arg_1 = state_55; SORT_11 var_175_arg_2 = var_151; SORT_11 var_175 = var_175_arg_0 ? var_175_arg_1 : var_175_arg_2; SORT_15 var_177_arg_0 = var_27; var_177_arg_0 = var_177_arg_0 & mask_SORT_15; SORT_11 var_177 = var_177_arg_0; SORT_11 var_178_arg_0 = var_175; SORT_11 var_178_arg_1 = var_177; SORT_11 var_178 = var_178_arg_0 - var_178_arg_1; SORT_1 var_179_arg_0 = var_60; SORT_11 var_179_arg_1 = var_178; SORT_11 var_179_arg_2 = var_175; SORT_11 var_179 = var_179_arg_0 ? var_179_arg_1 : var_179_arg_2; SORT_1 var_182_arg_0 = var_181; SORT_11 var_182_arg_1 = state_55; SORT_11 var_182_arg_2 = var_179; SORT_11 var_182 = var_182_arg_0 ? var_182_arg_1 : var_182_arg_2; SORT_1 var_184_arg_0 = input_9; SORT_11 var_184_arg_1 = var_183; SORT_11 var_184_arg_2 = var_182; SORT_11 var_184 = var_184_arg_0 ? var_184_arg_1 : var_184_arg_2; var_184 = var_184 & mask_SORT_11; SORT_15 var_212_arg_0 = var_27; var_212_arg_0 = var_212_arg_0 & mask_SORT_15; SORT_11 var_212 = var_212_arg_0; SORT_11 var_213_arg_0 = var_184; SORT_11 var_213_arg_1 = var_212; SORT_1 var_213 = var_213_arg_0 < var_213_arg_1; SORT_1 var_214_arg_0 = var_180; SORT_1 var_214_arg_1 = var_213; SORT_1 var_214 = var_214_arg_0 | var_214_arg_1; SORT_1 var_215_arg_0 = var_59; SORT_1 var_215_arg_1 = var_214; SORT_1 var_215 = var_215_arg_0 & var_215_arg_1; SORT_1 var_216_arg_0 = var_60; SORT_1 var_216_arg_1 = var_215; SORT_1 var_216 = var_216_arg_0 & var_216_arg_1; var_216 = var_216 & mask_SORT_1; SORT_15 var_207_arg_0 = var_27; var_207_arg_0 = var_207_arg_0 & mask_SORT_15; SORT_11 var_207 = var_207_arg_0; SORT_11 var_208_arg_0 = var_201; SORT_11 var_208_arg_1 = var_207; SORT_1 var_208 = var_208_arg_0 < var_208_arg_1; SORT_1 var_209_arg_0 = var_198; SORT_1 var_209_arg_1 = var_208; SORT_1 var_209 = var_209_arg_0 | var_209_arg_1; SORT_1 var_210_arg_0 = state_31; SORT_1 var_210_arg_1 = var_209; SORT_1 var_210 = var_210_arg_0 & var_210_arg_1; SORT_1 var_211_arg_0 = var_32; SORT_1 var_211_arg_1 = var_210; SORT_1 var_211 = var_211_arg_0 & var_211_arg_1; var_211 = var_211 & mask_SORT_1; SORT_1 var_217_arg_0 = var_216; SORT_1 var_217_arg_1 = var_211; SORT_5 var_217 = ((SORT_5)var_217_arg_0 << 1) | var_217_arg_1; var_217 = var_217 & mask_SORT_5; SORT_5 var_218_arg_0 = var_217; SORT_1 var_218 = var_218_arg_0 != 0; SORT_1 var_423_arg_0 = var_218; SORT_1 var_423_arg_1 = var_174; SORT_1 var_423_arg_2 = state_31; SORT_1 var_423 = var_423_arg_0 ? var_423_arg_1 : var_423_arg_2; SORT_1 var_424_arg_0 = input_9; SORT_1 var_424_arg_1 = var_110; SORT_1 var_424_arg_2 = var_423; SORT_1 var_424 = var_424_arg_0 ? var_424_arg_1 : var_424_arg_2; var_424 = var_424 & mask_SORT_1; SORT_1 next_425_arg_1 = var_424; SORT_1 var_269_arg_0 = var_92; SORT_1 var_269_arg_1 = var_60; SORT_1 var_269 = var_269_arg_0 | var_269_arg_1; SORT_1 var_270_arg_0 = var_269; SORT_1 var_270_arg_1 = input_9; SORT_1 var_270 = var_270_arg_0 | var_270_arg_1; var_270 = var_270 & mask_SORT_1; SORT_1 var_281_arg_0 = var_92; var_281_arg_0 = var_281_arg_0 & mask_SORT_1; SORT_15 var_281 = var_281_arg_0; SORT_15 var_282_arg_0 = state_45; SORT_15 var_282_arg_1 = var_281; SORT_15 var_282 = var_282_arg_0 + var_282_arg_1; SORT_1 var_426_arg_0 = var_270; SORT_15 var_426_arg_1 = var_282; SORT_15 var_426_arg_2 = state_45; SORT_15 var_426 = var_426_arg_0 ? var_426_arg_1 : var_426_arg_2; SORT_1 var_427_arg_0 = input_9; SORT_15 var_427_arg_1 = var_99; SORT_15 var_427_arg_2 = var_426; SORT_15 var_427 = var_427_arg_0 ? var_427_arg_1 : var_427_arg_2; var_427 = var_427 & mask_SORT_15; SORT_15 next_428_arg_1 = var_427; SORT_1 var_275_arg_0 = var_60; var_275_arg_0 = var_275_arg_0 & mask_SORT_1; SORT_15 var_275 = var_275_arg_0; SORT_15 var_276_arg_0 = state_48; SORT_15 var_276_arg_1 = var_275; SORT_15 var_276 = var_276_arg_0 + var_276_arg_1; SORT_1 var_429_arg_0 = var_270; SORT_15 var_429_arg_1 = var_276; SORT_15 var_429_arg_2 = state_48; SORT_15 var_429 = var_429_arg_0 ? var_429_arg_1 : var_429_arg_2; SORT_1 var_430_arg_0 = input_9; SORT_15 var_430_arg_1 = var_99; SORT_15 var_430_arg_2 = var_429; SORT_15 var_430 = var_430_arg_0 ? var_430_arg_1 : var_430_arg_2; var_430 = var_430 & mask_SORT_15; SORT_15 next_431_arg_1 = var_430; SORT_11 var_438_arg_0 = var_410; SORT_1 var_438 = var_438_arg_0 != 0; SORT_3 var_256_arg_0 = input_4; SORT_11 var_256 = var_256_arg_0 >> 0; SORT_11* var_47_arg_0 = state_44; SORT_12 var_47_arg_1 = var_46; SORT_11 var_47 = var_47_arg_0[(unsigned char) var_47_arg_1]; SORT_1 var_288_arg_0 = var_92; SORT_11 var_288_arg_1 = var_256; SORT_11 var_288_arg_2 = var_47; SORT_11 var_288 = var_288_arg_0 ? var_288_arg_1 : var_288_arg_2; SORT_11 var_435_arg_0 = var_288; SORT_11 var_435_arg_1 = var_410; SORT_11 var_435 = var_435_arg_0 & var_435_arg_1; SORT_11* var_432_arg_0 = state_44; SORT_12 var_432_arg_1 = var_46; SORT_11 var_432 = var_432_arg_0[(unsigned char) var_432_arg_1]; SORT_11 var_433_arg_0 = var_410; SORT_11 var_433 = ~var_433_arg_0; SORT_11 var_434_arg_0 = var_432; SORT_11 var_434_arg_1 = var_433; SORT_11 var_434 = var_434_arg_0 & var_434_arg_1; SORT_11 var_436_arg_0 = var_435; SORT_11 var_436_arg_1 = var_434; SORT_11 var_436 = var_436_arg_0 | var_436_arg_1; SORT_11* var_437_arg_0 = state_44; SORT_12 var_437_arg_1 = var_46; SORT_11 var_437_arg_2 = var_436; SORT_13 var_437; for (unsigned char i = 0; i < (1 << 3); ++i) var_437[i] = var_437_arg_0[i]; var_437[(unsigned char) var_437_arg_1] = var_437_arg_2; SORT_1 var_439_arg_0 = var_438; SORT_11* var_439_arg_1 = var_437; SORT_11* var_439_arg_2 = state_44; SORT_11* var_439 = var_439_arg_0 ? var_439_arg_1 : var_439_arg_2; SORT_11* next_440_arg_1 = var_439; SORT_1 var_187_arg_0 = var_174; SORT_1 var_187 = ~var_187_arg_0; var_187 = var_187 & mask_SORT_1; SORT_1 var_188_arg_0 = var_187; SORT_1 var_188_arg_1 = var_59; SORT_1 var_188 = var_188_arg_0 | var_188_arg_1; var_188 = var_188 & mask_SORT_1; SORT_1 var_441_arg_0 = var_188; SORT_11 var_441_arg_1 = var_184; SORT_11 var_441_arg_2 = state_55; SORT_11 var_441 = var_441_arg_0 ? var_441_arg_1 : var_441_arg_2; SORT_1 var_442_arg_0 = input_9; SORT_11 var_442_arg_1 = var_183; SORT_11 var_442_arg_2 = var_441; SORT_11 var_442 = var_442_arg_0 ? var_442_arg_1 : var_442_arg_2; var_442 = var_442 & mask_SORT_11; SORT_11 next_443_arg_1 = var_442; SORT_1 var_365_arg_0 = input_10; SORT_1 var_365_arg_1 = var_92; SORT_1 var_365 = var_365_arg_0 & var_365_arg_1; SORT_1 var_366_arg_0 = state_85; SORT_1 var_366_arg_1 = var_365; SORT_1 var_366 = var_366_arg_0 | var_366_arg_1; SORT_1 var_444_arg_0 = state_85; SORT_1 var_444_arg_1 = var_109; SORT_1 var_444_arg_2 = var_366; SORT_1 var_444 = var_444_arg_0 ? var_444_arg_1 : var_444_arg_2; SORT_1 var_445_arg_0 = input_9; SORT_1 var_445_arg_1 = var_110; SORT_1 var_445_arg_2 = var_444; SORT_1 var_445 = var_445_arg_0 ? var_445_arg_1 : var_445_arg_2; var_445 = var_445 & mask_SORT_1; SORT_1 next_446_arg_1 = var_445; SORT_1 var_376_arg_0 = var_103; SORT_1 var_376_arg_1 = state_86; SORT_1 var_376 = var_376_arg_0 | var_376_arg_1; SORT_1 var_447_arg_0 = input_9; SORT_1 var_447_arg_1 = var_110; SORT_1 var_447_arg_2 = var_376; SORT_1 var_447 = var_447_arg_0 ? var_447_arg_1 : var_447_arg_2; SORT_1 next_448_arg_1 = var_447; SORT_1 var_388_arg_0 = var_270; SORT_1 var_388_arg_1 = state_85; SORT_1 var_388 = var_388_arg_0 | var_388_arg_1; var_388 = var_388 & mask_SORT_1; SORT_1 var_449_arg_0 = var_388; SORT_15 var_449_arg_1 = var_100; SORT_15 var_449_arg_2 = state_89; SORT_15 var_449 = var_449_arg_0 ? var_449_arg_1 : var_449_arg_2; SORT_1 var_450_arg_0 = input_9; SORT_15 var_450_arg_1 = var_99; SORT_15 var_450_arg_2 = var_449; SORT_15 var_450 = var_450_arg_0 ? var_450_arg_1 : var_450_arg_2; var_450 = var_450 & mask_SORT_15; SORT_15 next_451_arg_1 = var_450; SORT_1 var_373_arg_0 = var_365; SORT_1 var_373_arg_1 = var_93; SORT_1 var_373 = var_373_arg_0 & var_373_arg_1; var_373 = var_373 & mask_SORT_1; SORT_1 var_452_arg_0 = var_373; SORT_11 var_452_arg_1 = var_256; SORT_11 var_452_arg_2 = state_105; SORT_11 var_452 = var_452_arg_0 ? var_452_arg_1 : var_452_arg_2; SORT_1 var_453_arg_0 = input_9; SORT_11 var_453_arg_1 = var_183; SORT_11 var_453_arg_2 = var_452; SORT_11 var_453 = var_453_arg_0 ? var_453_arg_1 : var_453_arg_2; var_453 = var_453 & mask_SORT_11; SORT_11 next_454_arg_1 = var_453; SORT_1 next_455_arg_1 = var_110; // Assigning next states ... state_16 = next_406_arg_1; state_19 = next_409_arg_1; for (unsigned char i = 0; i < (1 << 3); ++i) state_14[i] = next_419_arg_1[i]; state_26 = next_422_arg_1; state_31 = next_425_arg_1; state_45 = next_428_arg_1; state_48 = next_431_arg_1; for (unsigned char i = 0; i < (1 << 3); ++i) state_44[i] = next_440_arg_1[i]; state_55 = next_443_arg_1; state_85 = next_446_arg_1; state_86 = next_448_arg_1; state_89 = next_451_arg_1; state_105 = next_454_arg_1; state_111 = next_455_arg_1; } return 0; }