file
stringlengths 18
26
| data
stringlengths 3
1.04M
|
---|---|
the_stack_data/148577350.c | main(argc,argv)
int argc; char **argv;
{
int count;
if (argc==1)
count = 0;
else
count = atoi(argv[1]) + 1;
while (--count)
randbyte();
}
|
the_stack_data/21236.c | //@ ltl invariant negative: ( ([] (<> ( AP((s0_l2 != 0)) && ( AP((s0_l0 != 0)) && (! AP((s0_l1 != 0))))))) || (! ([] (<> AP((1.0 <= _diverge_delta))))));
extern float __VERIFIER_nondet_float(void);
extern int __VERIFIER_nondet_int(void);
char __VERIFIER_nondet_bool(void) {
return __VERIFIER_nondet_int() != 0;
}
float _diverge_delta, _x__diverge_delta;
char s25_evt1, _x_s25_evt1;
char s25_evt0, _x_s25_evt0;
float s25_z, _x_s25_z;
float s25_y, _x_s25_y;
char s24_l2, _x_s24_l2;
char s24_evt1, _x_s24_evt1;
char s24_evt0, _x_s24_evt0;
float s24_z, _x_s24_z;
float s24_y, _x_s24_y;
char s23_l2, _x_s23_l2;
char s23_evt1, _x_s23_evt1;
char s23_evt0, _x_s23_evt0;
float s23_z, _x_s23_z;
float s23_y, _x_s23_y;
char s22_l2, _x_s22_l2;
char s22_evt1, _x_s22_evt1;
char s22_evt0, _x_s22_evt0;
float s22_z, _x_s22_z;
float s22_y, _x_s22_y;
float s21_z, _x_s21_z;
float s21_y, _x_s21_y;
char s20_l2, _x_s20_l2;
char s20_evt1, _x_s20_evt1;
char s20_evt0, _x_s20_evt0;
float s20_z, _x_s20_z;
float s20_y, _x_s20_y;
char s19_l2, _x_s19_l2;
char s19_evt1, _x_s19_evt1;
char s19_evt0, _x_s19_evt0;
float s19_z, _x_s19_z;
float s19_y, _x_s19_y;
char s18_l2, _x_s18_l2;
char s18_evt1, _x_s18_evt1;
char s18_evt0, _x_s18_evt0;
float s18_z, _x_s18_z;
float s18_y, _x_s18_y;
char s17_l2, _x_s17_l2;
char s17_evt1, _x_s17_evt1;
char s17_evt0, _x_s17_evt0;
float s17_z, _x_s17_z;
float s17_y, _x_s17_y;
char s16_l2, _x_s16_l2;
char s16_evt1, _x_s16_evt1;
char s16_evt0, _x_s16_evt0;
float s16_z, _x_s16_z;
float s16_y, _x_s16_y;
char s15_l2, _x_s15_l2;
char s15_evt1, _x_s15_evt1;
char s15_evt0, _x_s15_evt0;
float s15_z, _x_s15_z;
float s15_y, _x_s15_y;
char s5_l2, _x_s5_l2;
float s19_x, _x_s19_x;
char s5_evt1, _x_s5_evt1;
char s2_l1, _x_s2_l1;
char s4_l2, _x_s4_l2;
char s16_l1, _x_s16_l1;
float s4_z, _x_s4_z;
char s10_l2, _x_s10_l2;
char s3_l2, _x_s3_l2;
char s6_evt0, _x_s6_evt0;
char s3_l0, _x_s3_l0;
float s17_x, _x_s17_x;
char s3_evt1, _x_s3_evt1;
char s0_l1, _x_s0_l1;
char s18_l0, _x_s18_l0;
float s6_y, _x_s6_y;
char s15_l1, _x_s15_l1;
float s3_z, _x_s3_z;
char s9_l2, _x_s9_l2;
char s5_l1, _x_s5_l1;
float s22_x, _x_s22_x;
char s8_evt1, _x_s8_evt1;
char s2_l2, _x_s2_l2;
char s5_l0, _x_s5_l0;
char s8_evt0, _x_s8_evt0;
char s0_evt0, _x_s0_evt0;
float s6_x, _x_s6_x;
char s15_l0, _x_s15_l0;
float s3_y, _x_s3_y;
char s9_l1, _x_s9_l1;
char s12_evt1, _x_s12_evt1;
char s12_l1, _x_s12_l1;
float s0_z, _x_s0_z;
char s6_l2, _x_s6_l2;
char s17_l1, _x_s17_l1;
float s5_z, _x_s5_z;
char s11_l2, _x_s11_l2;
char s0_l0, _x_s0_l0;
char s3_evt0, _x_s3_evt0;
char s4_evt0, _x_s4_evt0;
char s1_l0, _x_s1_l0;
float s15_x, _x_s15_x;
char s1_evt1, _x_s1_evt1;
char r_event1, _x_r_event1;
float s10_x, _x_s10_x;
char s21_evt1, _x_s21_evt1;
char r_event0, _x_r_event0;
float s3_x, _x_s3_x;
char s9_l0, _x_s9_l0;
char s12_evt0, _x_s12_evt0;
char s12_l0, _x_s12_l0;
float s0_y, _x_s0_y;
char s6_l1, _x_s6_l1;
float s23_x, _x_s23_x;
char s9_evt1, _x_s9_evt1;
char s25_l0, _x_s25_l0;
float s13_y, _x_s13_y;
char s2_l0, _x_s2_l0;
char s5_evt0, _x_s5_evt0;
float s18_x, _x_s18_x;
char s4_evt1, _x_s4_evt1;
char s1_l1, _x_s1_l1;
char s25_l2, _x_s25_l2;
float s0_x, _x_s0_x;
char s6_l0, _x_s6_l0;
char s9_evt0, _x_s9_evt0;
char s21_l2, _x_s21_l2;
int r_counter, _x_r_counter;
float s13_x, _x_s13_x;
char s21_evt0, _x_s21_evt0;
float delta, _x_delta;
float s16_x, _x_s16_x;
char s2_evt1, _x_s2_evt1;
char s17_l0, _x_s17_l0;
float s5_y, _x_s5_y;
char s11_l1, _x_s11_l1;
char s14_evt1, _x_s14_evt1;
char s8_l2, _x_s8_l2;
float s2_x, _x_s2_x;
float r_x, _x_r_x;
char s8_l0, _x_s8_l0;
char s11_evt0, _x_s11_evt0;
char s3_l1, _x_s3_l1;
float s20_x, _x_s20_x;
char s6_evt1, _x_s6_evt1;
char s0_l2, _x_s0_l2;
float s5_x, _x_s5_x;
char s11_l0, _x_s11_l0;
char s14_evt0, _x_s14_evt0;
char s8_l1, _x_s8_l1;
float s25_x, _x_s25_x;
char s11_evt1, _x_s11_evt1;
float s1_x, _x_s1_x;
char s7_l0, _x_s7_l0;
char s10_evt0, _x_s10_evt0;
float s4_x, _x_s4_x;
char s10_l0, _x_s10_l0;
char s13_evt0, _x_s13_evt0;
char s7_l1, _x_s7_l1;
float s24_x, _x_s24_x;
char s10_evt1, _x_s10_evt1;
char s16_l0, _x_s16_l0;
float s4_y, _x_s4_y;
char s10_l1, _x_s10_l1;
char s13_evt1, _x_s13_evt1;
char s7_l2, _x_s7_l2;
char s1_evt0, _x_s1_evt0;
char s18_l1, _x_s18_l1;
float s6_z, _x_s6_z;
char s12_l2, _x_s12_l2;
char s4_l0, _x_s4_l0;
char s7_evt0, _x_s7_evt0;
char s4_l1, _x_s4_l1;
float s21_x, _x_s21_x;
char s7_evt1, _x_s7_evt1;
char s1_l2, _x_s1_l2;
char s2_evt0, _x_s2_evt0;
float s7_x, _x_s7_x;
float s1_y, _x_s1_y;
char s13_l0, _x_s13_l0;
char s19_l0, _x_s19_l0;
float s7_y, _x_s7_y;
float s1_z, _x_s1_z;
char s13_l1, _x_s13_l1;
char s19_l1, _x_s19_l1;
float s7_z, _x_s7_z;
char s13_l2, _x_s13_l2;
float s8_x, _x_s8_x;
float s2_y, _x_s2_y;
char s14_l0, _x_s14_l0;
char s20_l0, _x_s20_l0;
float s8_y, _x_s8_y;
float s2_z, _x_s2_z;
char s14_l1, _x_s14_l1;
char s20_l1, _x_s20_l1;
float s8_z, _x_s8_z;
char s14_l2, _x_s14_l2;
float s9_x, _x_s9_x;
char s21_l0, _x_s21_l0;
char r_l, _x_r_l;
float s9_y, _x_s9_y;
char s21_l1, _x_s21_l1;
int r_evt_id, _x_r_evt_id;
float s9_z, _x_s9_z;
char s22_l0, _x_s22_l0;
float s10_y, _x_s10_y;
char s22_l1, _x_s22_l1;
float s10_z, _x_s10_z;
float s11_x, _x_s11_x;
char s23_l0, _x_s23_l0;
float s11_y, _x_s11_y;
char s23_l1, _x_s23_l1;
float s11_z, _x_s11_z;
float s12_x, _x_s12_x;
char s24_l0, _x_s24_l0;
float s12_y, _x_s12_y;
char s24_l1, _x_s24_l1;
float s12_z, _x_s12_z;
char s25_l1, _x_s25_l1;
float s13_z, _x_s13_z;
char s0_evt1, _x_s0_evt1;
float s14_x, _x_s14_x;
float s14_y, _x_s14_y;
float s14_z, _x_s14_z;
int main()
{
_diverge_delta = __VERIFIER_nondet_float();
s25_evt1 = __VERIFIER_nondet_bool();
s25_evt0 = __VERIFIER_nondet_bool();
s25_z = __VERIFIER_nondet_float();
s25_y = __VERIFIER_nondet_float();
s24_l2 = __VERIFIER_nondet_bool();
s24_evt1 = __VERIFIER_nondet_bool();
s24_evt0 = __VERIFIER_nondet_bool();
s24_z = __VERIFIER_nondet_float();
s24_y = __VERIFIER_nondet_float();
s23_l2 = __VERIFIER_nondet_bool();
s23_evt1 = __VERIFIER_nondet_bool();
s23_evt0 = __VERIFIER_nondet_bool();
s23_z = __VERIFIER_nondet_float();
s23_y = __VERIFIER_nondet_float();
s22_l2 = __VERIFIER_nondet_bool();
s22_evt1 = __VERIFIER_nondet_bool();
s22_evt0 = __VERIFIER_nondet_bool();
s22_z = __VERIFIER_nondet_float();
s22_y = __VERIFIER_nondet_float();
s21_z = __VERIFIER_nondet_float();
s21_y = __VERIFIER_nondet_float();
s20_l2 = __VERIFIER_nondet_bool();
s20_evt1 = __VERIFIER_nondet_bool();
s20_evt0 = __VERIFIER_nondet_bool();
s20_z = __VERIFIER_nondet_float();
s20_y = __VERIFIER_nondet_float();
s19_l2 = __VERIFIER_nondet_bool();
s19_evt1 = __VERIFIER_nondet_bool();
s19_evt0 = __VERIFIER_nondet_bool();
s19_z = __VERIFIER_nondet_float();
s19_y = __VERIFIER_nondet_float();
s18_l2 = __VERIFIER_nondet_bool();
s18_evt1 = __VERIFIER_nondet_bool();
s18_evt0 = __VERIFIER_nondet_bool();
s18_z = __VERIFIER_nondet_float();
s18_y = __VERIFIER_nondet_float();
s17_l2 = __VERIFIER_nondet_bool();
s17_evt1 = __VERIFIER_nondet_bool();
s17_evt0 = __VERIFIER_nondet_bool();
s17_z = __VERIFIER_nondet_float();
s17_y = __VERIFIER_nondet_float();
s16_l2 = __VERIFIER_nondet_bool();
s16_evt1 = __VERIFIER_nondet_bool();
s16_evt0 = __VERIFIER_nondet_bool();
s16_z = __VERIFIER_nondet_float();
s16_y = __VERIFIER_nondet_float();
s15_l2 = __VERIFIER_nondet_bool();
s15_evt1 = __VERIFIER_nondet_bool();
s15_evt0 = __VERIFIER_nondet_bool();
s15_z = __VERIFIER_nondet_float();
s15_y = __VERIFIER_nondet_float();
s5_l2 = __VERIFIER_nondet_bool();
s19_x = __VERIFIER_nondet_float();
s5_evt1 = __VERIFIER_nondet_bool();
s2_l1 = __VERIFIER_nondet_bool();
s4_l2 = __VERIFIER_nondet_bool();
s16_l1 = __VERIFIER_nondet_bool();
s4_z = __VERIFIER_nondet_float();
s10_l2 = __VERIFIER_nondet_bool();
s3_l2 = __VERIFIER_nondet_bool();
s6_evt0 = __VERIFIER_nondet_bool();
s3_l0 = __VERIFIER_nondet_bool();
s17_x = __VERIFIER_nondet_float();
s3_evt1 = __VERIFIER_nondet_bool();
s0_l1 = __VERIFIER_nondet_bool();
s18_l0 = __VERIFIER_nondet_bool();
s6_y = __VERIFIER_nondet_float();
s15_l1 = __VERIFIER_nondet_bool();
s3_z = __VERIFIER_nondet_float();
s9_l2 = __VERIFIER_nondet_bool();
s5_l1 = __VERIFIER_nondet_bool();
s22_x = __VERIFIER_nondet_float();
s8_evt1 = __VERIFIER_nondet_bool();
s2_l2 = __VERIFIER_nondet_bool();
s5_l0 = __VERIFIER_nondet_bool();
s8_evt0 = __VERIFIER_nondet_bool();
s0_evt0 = __VERIFIER_nondet_bool();
s6_x = __VERIFIER_nondet_float();
s15_l0 = __VERIFIER_nondet_bool();
s3_y = __VERIFIER_nondet_float();
s9_l1 = __VERIFIER_nondet_bool();
s12_evt1 = __VERIFIER_nondet_bool();
s12_l1 = __VERIFIER_nondet_bool();
s0_z = __VERIFIER_nondet_float();
s6_l2 = __VERIFIER_nondet_bool();
s17_l1 = __VERIFIER_nondet_bool();
s5_z = __VERIFIER_nondet_float();
s11_l2 = __VERIFIER_nondet_bool();
s0_l0 = __VERIFIER_nondet_bool();
s3_evt0 = __VERIFIER_nondet_bool();
s4_evt0 = __VERIFIER_nondet_bool();
s1_l0 = __VERIFIER_nondet_bool();
s15_x = __VERIFIER_nondet_float();
s1_evt1 = __VERIFIER_nondet_bool();
r_event1 = __VERIFIER_nondet_bool();
s10_x = __VERIFIER_nondet_float();
s21_evt1 = __VERIFIER_nondet_bool();
r_event0 = __VERIFIER_nondet_bool();
s3_x = __VERIFIER_nondet_float();
s9_l0 = __VERIFIER_nondet_bool();
s12_evt0 = __VERIFIER_nondet_bool();
s12_l0 = __VERIFIER_nondet_bool();
s0_y = __VERIFIER_nondet_float();
s6_l1 = __VERIFIER_nondet_bool();
s23_x = __VERIFIER_nondet_float();
s9_evt1 = __VERIFIER_nondet_bool();
s25_l0 = __VERIFIER_nondet_bool();
s13_y = __VERIFIER_nondet_float();
s2_l0 = __VERIFIER_nondet_bool();
s5_evt0 = __VERIFIER_nondet_bool();
s18_x = __VERIFIER_nondet_float();
s4_evt1 = __VERIFIER_nondet_bool();
s1_l1 = __VERIFIER_nondet_bool();
s25_l2 = __VERIFIER_nondet_bool();
s0_x = __VERIFIER_nondet_float();
s6_l0 = __VERIFIER_nondet_bool();
s9_evt0 = __VERIFIER_nondet_bool();
s21_l2 = __VERIFIER_nondet_bool();
r_counter = __VERIFIER_nondet_int();
s13_x = __VERIFIER_nondet_float();
s21_evt0 = __VERIFIER_nondet_bool();
delta = __VERIFIER_nondet_float();
s16_x = __VERIFIER_nondet_float();
s2_evt1 = __VERIFIER_nondet_bool();
s17_l0 = __VERIFIER_nondet_bool();
s5_y = __VERIFIER_nondet_float();
s11_l1 = __VERIFIER_nondet_bool();
s14_evt1 = __VERIFIER_nondet_bool();
s8_l2 = __VERIFIER_nondet_bool();
s2_x = __VERIFIER_nondet_float();
r_x = __VERIFIER_nondet_float();
s8_l0 = __VERIFIER_nondet_bool();
s11_evt0 = __VERIFIER_nondet_bool();
s3_l1 = __VERIFIER_nondet_bool();
s20_x = __VERIFIER_nondet_float();
s6_evt1 = __VERIFIER_nondet_bool();
s0_l2 = __VERIFIER_nondet_bool();
s5_x = __VERIFIER_nondet_float();
s11_l0 = __VERIFIER_nondet_bool();
s14_evt0 = __VERIFIER_nondet_bool();
s8_l1 = __VERIFIER_nondet_bool();
s25_x = __VERIFIER_nondet_float();
s11_evt1 = __VERIFIER_nondet_bool();
s1_x = __VERIFIER_nondet_float();
s7_l0 = __VERIFIER_nondet_bool();
s10_evt0 = __VERIFIER_nondet_bool();
s4_x = __VERIFIER_nondet_float();
s10_l0 = __VERIFIER_nondet_bool();
s13_evt0 = __VERIFIER_nondet_bool();
s7_l1 = __VERIFIER_nondet_bool();
s24_x = __VERIFIER_nondet_float();
s10_evt1 = __VERIFIER_nondet_bool();
s16_l0 = __VERIFIER_nondet_bool();
s4_y = __VERIFIER_nondet_float();
s10_l1 = __VERIFIER_nondet_bool();
s13_evt1 = __VERIFIER_nondet_bool();
s7_l2 = __VERIFIER_nondet_bool();
s1_evt0 = __VERIFIER_nondet_bool();
s18_l1 = __VERIFIER_nondet_bool();
s6_z = __VERIFIER_nondet_float();
s12_l2 = __VERIFIER_nondet_bool();
s4_l0 = __VERIFIER_nondet_bool();
s7_evt0 = __VERIFIER_nondet_bool();
s4_l1 = __VERIFIER_nondet_bool();
s21_x = __VERIFIER_nondet_float();
s7_evt1 = __VERIFIER_nondet_bool();
s1_l2 = __VERIFIER_nondet_bool();
s2_evt0 = __VERIFIER_nondet_bool();
s7_x = __VERIFIER_nondet_float();
s1_y = __VERIFIER_nondet_float();
s13_l0 = __VERIFIER_nondet_bool();
s19_l0 = __VERIFIER_nondet_bool();
s7_y = __VERIFIER_nondet_float();
s1_z = __VERIFIER_nondet_float();
s13_l1 = __VERIFIER_nondet_bool();
s19_l1 = __VERIFIER_nondet_bool();
s7_z = __VERIFIER_nondet_float();
s13_l2 = __VERIFIER_nondet_bool();
s8_x = __VERIFIER_nondet_float();
s2_y = __VERIFIER_nondet_float();
s14_l0 = __VERIFIER_nondet_bool();
s20_l0 = __VERIFIER_nondet_bool();
s8_y = __VERIFIER_nondet_float();
s2_z = __VERIFIER_nondet_float();
s14_l1 = __VERIFIER_nondet_bool();
s20_l1 = __VERIFIER_nondet_bool();
s8_z = __VERIFIER_nondet_float();
s14_l2 = __VERIFIER_nondet_bool();
s9_x = __VERIFIER_nondet_float();
s21_l0 = __VERIFIER_nondet_bool();
r_l = __VERIFIER_nondet_bool();
s9_y = __VERIFIER_nondet_float();
s21_l1 = __VERIFIER_nondet_bool();
r_evt_id = __VERIFIER_nondet_int();
s9_z = __VERIFIER_nondet_float();
s22_l0 = __VERIFIER_nondet_bool();
s10_y = __VERIFIER_nondet_float();
s22_l1 = __VERIFIER_nondet_bool();
s10_z = __VERIFIER_nondet_float();
s11_x = __VERIFIER_nondet_float();
s23_l0 = __VERIFIER_nondet_bool();
s11_y = __VERIFIER_nondet_float();
s23_l1 = __VERIFIER_nondet_bool();
s11_z = __VERIFIER_nondet_float();
s12_x = __VERIFIER_nondet_float();
s24_l0 = __VERIFIER_nondet_bool();
s12_y = __VERIFIER_nondet_float();
s24_l1 = __VERIFIER_nondet_bool();
s12_z = __VERIFIER_nondet_float();
s25_l1 = __VERIFIER_nondet_bool();
s13_z = __VERIFIER_nondet_float();
s0_evt1 = __VERIFIER_nondet_bool();
s14_x = __VERIFIER_nondet_float();
s14_y = __VERIFIER_nondet_float();
s14_z = __VERIFIER_nondet_float();
int __ok = ((((((((((( !(s25_evt0 != 0)) && ( !(s25_evt1 != 0))) || ((s25_evt0 != 0) && ( !(s25_evt1 != 0)))) || (((s25_evt1 != 0) && ( !(s25_evt0 != 0))) || ((s25_evt0 != 0) && (s25_evt1 != 0)))) && ((((( !(s25_l2 != 0)) && (( !(s25_l0 != 0)) && ( !(s25_l1 != 0)))) || (( !(s25_l2 != 0)) && ((s25_l0 != 0) && ( !(s25_l1 != 0))))) || ((( !(s25_l2 != 0)) && ((s25_l1 != 0) && ( !(s25_l0 != 0)))) || (( !(s25_l2 != 0)) && ((s25_l0 != 0) && (s25_l1 != 0))))) || (((s25_l2 != 0) && (( !(s25_l0 != 0)) && ( !(s25_l1 != 0)))) || ((s25_l2 != 0) && ((s25_l0 != 0) && ( !(s25_l1 != 0))))))) && (((( !(s25_l2 != 0)) && (( !(s25_l0 != 0)) && ( !(s25_l1 != 0)))) && (s25_x == 0.0)) && ((s25_y == 0.0) && (s25_z == 0.0)))) && ((s25_x <= 20.0) || ( !(( !(s25_l2 != 0)) && ((s25_l0 != 0) && ( !(s25_l1 != 0))))))) && ((s25_x <= 120.0) || ( !(( !(s25_l2 != 0)) && ((s25_l1 != 0) && ( !(s25_l0 != 0))))))) && ((s25_x <= 120.0) || ( !((s25_l2 != 0) && ((s25_l0 != 0) && ( !(s25_l1 != 0))))))) && (((((((((( !(s24_evt0 != 0)) && ( !(s24_evt1 != 0))) || ((s24_evt0 != 0) && ( !(s24_evt1 != 0)))) || (((s24_evt1 != 0) && ( !(s24_evt0 != 0))) || ((s24_evt0 != 0) && (s24_evt1 != 0)))) && ((((( !(s24_l2 != 0)) && (( !(s24_l0 != 0)) && ( !(s24_l1 != 0)))) || (( !(s24_l2 != 0)) && ((s24_l0 != 0) && ( !(s24_l1 != 0))))) || ((( !(s24_l2 != 0)) && ((s24_l1 != 0) && ( !(s24_l0 != 0)))) || (( !(s24_l2 != 0)) && ((s24_l0 != 0) && (s24_l1 != 0))))) || (((s24_l2 != 0) && (( !(s24_l0 != 0)) && ( !(s24_l1 != 0)))) || ((s24_l2 != 0) && ((s24_l0 != 0) && ( !(s24_l1 != 0))))))) && (((( !(s24_l2 != 0)) && (( !(s24_l0 != 0)) && ( !(s24_l1 != 0)))) && (s24_x == 0.0)) && ((s24_y == 0.0) && (s24_z == 0.0)))) && ((s24_x <= 20.0) || ( !(( !(s24_l2 != 0)) && ((s24_l0 != 0) && ( !(s24_l1 != 0))))))) && ((s24_x <= 120.0) || ( !(( !(s24_l2 != 0)) && ((s24_l1 != 0) && ( !(s24_l0 != 0))))))) && ((s24_x <= 120.0) || ( !((s24_l2 != 0) && ((s24_l0 != 0) && ( !(s24_l1 != 0))))))) && (((((((((( !(s23_evt0 != 0)) && ( !(s23_evt1 != 0))) || ((s23_evt0 != 0) && ( !(s23_evt1 != 0)))) || (((s23_evt1 != 0) && ( !(s23_evt0 != 0))) || ((s23_evt0 != 0) && (s23_evt1 != 0)))) && ((((( !(s23_l2 != 0)) && (( !(s23_l0 != 0)) && ( !(s23_l1 != 0)))) || (( !(s23_l2 != 0)) && ((s23_l0 != 0) && ( !(s23_l1 != 0))))) || ((( !(s23_l2 != 0)) && ((s23_l1 != 0) && ( !(s23_l0 != 0)))) || (( !(s23_l2 != 0)) && ((s23_l0 != 0) && (s23_l1 != 0))))) || (((s23_l2 != 0) && (( !(s23_l0 != 0)) && ( !(s23_l1 != 0)))) || ((s23_l2 != 0) && ((s23_l0 != 0) && ( !(s23_l1 != 0))))))) && (((( !(s23_l2 != 0)) && (( !(s23_l0 != 0)) && ( !(s23_l1 != 0)))) && (s23_x == 0.0)) && ((s23_y == 0.0) && (s23_z == 0.0)))) && ((s23_x <= 20.0) || ( !(( !(s23_l2 != 0)) && ((s23_l0 != 0) && ( !(s23_l1 != 0))))))) && ((s23_x <= 120.0) || ( !(( !(s23_l2 != 0)) && ((s23_l1 != 0) && ( !(s23_l0 != 0))))))) && ((s23_x <= 120.0) || ( !((s23_l2 != 0) && ((s23_l0 != 0) && ( !(s23_l1 != 0))))))) && (((((((((( !(s22_evt0 != 0)) && ( !(s22_evt1 != 0))) || ((s22_evt0 != 0) && ( !(s22_evt1 != 0)))) || (((s22_evt1 != 0) && ( !(s22_evt0 != 0))) || ((s22_evt0 != 0) && (s22_evt1 != 0)))) && ((((( !(s22_l2 != 0)) && (( !(s22_l0 != 0)) && ( !(s22_l1 != 0)))) || (( !(s22_l2 != 0)) && ((s22_l0 != 0) && ( !(s22_l1 != 0))))) || ((( !(s22_l2 != 0)) && ((s22_l1 != 0) && ( !(s22_l0 != 0)))) || (( !(s22_l2 != 0)) && ((s22_l0 != 0) && (s22_l1 != 0))))) || (((s22_l2 != 0) && (( !(s22_l0 != 0)) && ( !(s22_l1 != 0)))) || ((s22_l2 != 0) && ((s22_l0 != 0) && ( !(s22_l1 != 0))))))) && (((( !(s22_l2 != 0)) && (( !(s22_l0 != 0)) && ( !(s22_l1 != 0)))) && (s22_x == 0.0)) && ((s22_y == 0.0) && (s22_z == 0.0)))) && ((s22_x <= 20.0) || ( !(( !(s22_l2 != 0)) && ((s22_l0 != 0) && ( !(s22_l1 != 0))))))) && ((s22_x <= 120.0) || ( !(( !(s22_l2 != 0)) && ((s22_l1 != 0) && ( !(s22_l0 != 0))))))) && ((s22_x <= 120.0) || ( !((s22_l2 != 0) && ((s22_l0 != 0) && ( !(s22_l1 != 0))))))) && (((((((((( !(s21_evt0 != 0)) && ( !(s21_evt1 != 0))) || ((s21_evt0 != 0) && ( !(s21_evt1 != 0)))) || (((s21_evt1 != 0) && ( !(s21_evt0 != 0))) || ((s21_evt0 != 0) && (s21_evt1 != 0)))) && ((((( !(s21_l2 != 0)) && (( !(s21_l0 != 0)) && ( !(s21_l1 != 0)))) || (( !(s21_l2 != 0)) && ((s21_l0 != 0) && ( !(s21_l1 != 0))))) || ((( !(s21_l2 != 0)) && ((s21_l1 != 0) && ( !(s21_l0 != 0)))) || (( !(s21_l2 != 0)) && ((s21_l0 != 0) && (s21_l1 != 0))))) || (((s21_l2 != 0) && (( !(s21_l0 != 0)) && ( !(s21_l1 != 0)))) || ((s21_l2 != 0) && ((s21_l0 != 0) && ( !(s21_l1 != 0))))))) && (((( !(s21_l2 != 0)) && (( !(s21_l0 != 0)) && ( !(s21_l1 != 0)))) && (s21_x == 0.0)) && ((s21_y == 0.0) && (s21_z == 0.0)))) && ((s21_x <= 20.0) || ( !(( !(s21_l2 != 0)) && ((s21_l0 != 0) && ( !(s21_l1 != 0))))))) && ((s21_x <= 120.0) || ( !(( !(s21_l2 != 0)) && ((s21_l1 != 0) && ( !(s21_l0 != 0))))))) && ((s21_x <= 120.0) || ( !((s21_l2 != 0) && ((s21_l0 != 0) && ( !(s21_l1 != 0))))))) && (((((((((( !(s20_evt0 != 0)) && ( !(s20_evt1 != 0))) || ((s20_evt0 != 0) && ( !(s20_evt1 != 0)))) || (((s20_evt1 != 0) && ( !(s20_evt0 != 0))) || ((s20_evt0 != 0) && (s20_evt1 != 0)))) && ((((( !(s20_l2 != 0)) && (( !(s20_l0 != 0)) && ( !(s20_l1 != 0)))) || (( !(s20_l2 != 0)) && ((s20_l0 != 0) && ( !(s20_l1 != 0))))) || ((( !(s20_l2 != 0)) && ((s20_l1 != 0) && ( !(s20_l0 != 0)))) || (( !(s20_l2 != 0)) && ((s20_l0 != 0) && (s20_l1 != 0))))) || (((s20_l2 != 0) && (( !(s20_l0 != 0)) && ( !(s20_l1 != 0)))) || ((s20_l2 != 0) && ((s20_l0 != 0) && ( !(s20_l1 != 0))))))) && (((( !(s20_l2 != 0)) && (( !(s20_l0 != 0)) && ( !(s20_l1 != 0)))) && (s20_x == 0.0)) && ((s20_y == 0.0) && (s20_z == 0.0)))) && ((s20_x <= 20.0) || ( !(( !(s20_l2 != 0)) && ((s20_l0 != 0) && ( !(s20_l1 != 0))))))) && ((s20_x <= 120.0) || ( !(( !(s20_l2 != 0)) && ((s20_l1 != 0) && ( !(s20_l0 != 0))))))) && ((s20_x <= 120.0) || ( !((s20_l2 != 0) && ((s20_l0 != 0) && ( !(s20_l1 != 0))))))) && (((((((((( !(s19_evt0 != 0)) && ( !(s19_evt1 != 0))) || ((s19_evt0 != 0) && ( !(s19_evt1 != 0)))) || (((s19_evt1 != 0) && ( !(s19_evt0 != 0))) || ((s19_evt0 != 0) && (s19_evt1 != 0)))) && ((((( !(s19_l2 != 0)) && (( !(s19_l0 != 0)) && ( !(s19_l1 != 0)))) || (( !(s19_l2 != 0)) && ((s19_l0 != 0) && ( !(s19_l1 != 0))))) || ((( !(s19_l2 != 0)) && ((s19_l1 != 0) && ( !(s19_l0 != 0)))) || (( !(s19_l2 != 0)) && ((s19_l0 != 0) && (s19_l1 != 0))))) || (((s19_l2 != 0) && (( !(s19_l0 != 0)) && ( !(s19_l1 != 0)))) || ((s19_l2 != 0) && ((s19_l0 != 0) && ( !(s19_l1 != 0))))))) && (((( !(s19_l2 != 0)) && (( !(s19_l0 != 0)) && ( !(s19_l1 != 0)))) && (s19_x == 0.0)) && ((s19_y == 0.0) && (s19_z == 0.0)))) && ((s19_x <= 20.0) || ( !(( !(s19_l2 != 0)) && ((s19_l0 != 0) && ( !(s19_l1 != 0))))))) && ((s19_x <= 120.0) || ( !(( !(s19_l2 != 0)) && ((s19_l1 != 0) && ( !(s19_l0 != 0))))))) && ((s19_x <= 120.0) || ( !((s19_l2 != 0) && ((s19_l0 != 0) && ( !(s19_l1 != 0))))))) && (((((((((( !(s18_evt0 != 0)) && ( !(s18_evt1 != 0))) || ((s18_evt0 != 0) && ( !(s18_evt1 != 0)))) || (((s18_evt1 != 0) && ( !(s18_evt0 != 0))) || ((s18_evt0 != 0) && (s18_evt1 != 0)))) && ((((( !(s18_l2 != 0)) && (( !(s18_l0 != 0)) && ( !(s18_l1 != 0)))) || (( !(s18_l2 != 0)) && ((s18_l0 != 0) && ( !(s18_l1 != 0))))) || ((( !(s18_l2 != 0)) && ((s18_l1 != 0) && ( !(s18_l0 != 0)))) || (( !(s18_l2 != 0)) && ((s18_l0 != 0) && (s18_l1 != 0))))) || (((s18_l2 != 0) && (( !(s18_l0 != 0)) && ( !(s18_l1 != 0)))) || ((s18_l2 != 0) && ((s18_l0 != 0) && ( !(s18_l1 != 0))))))) && (((( !(s18_l2 != 0)) && (( !(s18_l0 != 0)) && ( !(s18_l1 != 0)))) && (s18_x == 0.0)) && ((s18_y == 0.0) && (s18_z == 0.0)))) && ((s18_x <= 20.0) || ( !(( !(s18_l2 != 0)) && ((s18_l0 != 0) && ( !(s18_l1 != 0))))))) && ((s18_x <= 120.0) || ( !(( !(s18_l2 != 0)) && ((s18_l1 != 0) && ( !(s18_l0 != 0))))))) && ((s18_x <= 120.0) || ( !((s18_l2 != 0) && ((s18_l0 != 0) && ( !(s18_l1 != 0))))))) && (((((((((( !(s17_evt0 != 0)) && ( !(s17_evt1 != 0))) || ((s17_evt0 != 0) && ( !(s17_evt1 != 0)))) || (((s17_evt1 != 0) && ( !(s17_evt0 != 0))) || ((s17_evt0 != 0) && (s17_evt1 != 0)))) && ((((( !(s17_l2 != 0)) && (( !(s17_l0 != 0)) && ( !(s17_l1 != 0)))) || (( !(s17_l2 != 0)) && ((s17_l0 != 0) && ( !(s17_l1 != 0))))) || ((( !(s17_l2 != 0)) && ((s17_l1 != 0) && ( !(s17_l0 != 0)))) || (( !(s17_l2 != 0)) && ((s17_l0 != 0) && (s17_l1 != 0))))) || (((s17_l2 != 0) && (( !(s17_l0 != 0)) && ( !(s17_l1 != 0)))) || ((s17_l2 != 0) && ((s17_l0 != 0) && ( !(s17_l1 != 0))))))) && (((( !(s17_l2 != 0)) && (( !(s17_l0 != 0)) && ( !(s17_l1 != 0)))) && (s17_x == 0.0)) && ((s17_y == 0.0) && (s17_z == 0.0)))) && ((s17_x <= 20.0) || ( !(( !(s17_l2 != 0)) && ((s17_l0 != 0) && ( !(s17_l1 != 0))))))) && ((s17_x <= 120.0) || ( !(( !(s17_l2 != 0)) && ((s17_l1 != 0) && ( !(s17_l0 != 0))))))) && ((s17_x <= 120.0) || ( !((s17_l2 != 0) && ((s17_l0 != 0) && ( !(s17_l1 != 0))))))) && (((((((((( !(s16_evt0 != 0)) && ( !(s16_evt1 != 0))) || ((s16_evt0 != 0) && ( !(s16_evt1 != 0)))) || (((s16_evt1 != 0) && ( !(s16_evt0 != 0))) || ((s16_evt0 != 0) && (s16_evt1 != 0)))) && ((((( !(s16_l2 != 0)) && (( !(s16_l0 != 0)) && ( !(s16_l1 != 0)))) || (( !(s16_l2 != 0)) && ((s16_l0 != 0) && ( !(s16_l1 != 0))))) || ((( !(s16_l2 != 0)) && ((s16_l1 != 0) && ( !(s16_l0 != 0)))) || (( !(s16_l2 != 0)) && ((s16_l0 != 0) && (s16_l1 != 0))))) || (((s16_l2 != 0) && (( !(s16_l0 != 0)) && ( !(s16_l1 != 0)))) || ((s16_l2 != 0) && ((s16_l0 != 0) && ( !(s16_l1 != 0))))))) && (((( !(s16_l2 != 0)) && (( !(s16_l0 != 0)) && ( !(s16_l1 != 0)))) && (s16_x == 0.0)) && ((s16_y == 0.0) && (s16_z == 0.0)))) && ((s16_x <= 20.0) || ( !(( !(s16_l2 != 0)) && ((s16_l0 != 0) && ( !(s16_l1 != 0))))))) && ((s16_x <= 120.0) || ( !(( !(s16_l2 != 0)) && ((s16_l1 != 0) && ( !(s16_l0 != 0))))))) && ((s16_x <= 120.0) || ( !((s16_l2 != 0) && ((s16_l0 != 0) && ( !(s16_l1 != 0))))))) && (((((((((( !(s15_evt0 != 0)) && ( !(s15_evt1 != 0))) || ((s15_evt0 != 0) && ( !(s15_evt1 != 0)))) || (((s15_evt1 != 0) && ( !(s15_evt0 != 0))) || ((s15_evt0 != 0) && (s15_evt1 != 0)))) && ((((( !(s15_l2 != 0)) && (( !(s15_l0 != 0)) && ( !(s15_l1 != 0)))) || (( !(s15_l2 != 0)) && ((s15_l0 != 0) && ( !(s15_l1 != 0))))) || ((( !(s15_l2 != 0)) && ((s15_l1 != 0) && ( !(s15_l0 != 0)))) || (( !(s15_l2 != 0)) && ((s15_l0 != 0) && (s15_l1 != 0))))) || (((s15_l2 != 0) && (( !(s15_l0 != 0)) && ( !(s15_l1 != 0)))) || ((s15_l2 != 0) && ((s15_l0 != 0) && ( !(s15_l1 != 0))))))) && (((( !(s15_l2 != 0)) && (( !(s15_l0 != 0)) && ( !(s15_l1 != 0)))) && (s15_x == 0.0)) && ((s15_y == 0.0) && (s15_z == 0.0)))) && ((s15_x <= 20.0) || ( !(( !(s15_l2 != 0)) && ((s15_l0 != 0) && ( !(s15_l1 != 0))))))) && ((s15_x <= 120.0) || ( !(( !(s15_l2 != 0)) && ((s15_l1 != 0) && ( !(s15_l0 != 0))))))) && ((s15_x <= 120.0) || ( !((s15_l2 != 0) && ((s15_l0 != 0) && ( !(s15_l1 != 0))))))) && (((((((((( !(s14_evt0 != 0)) && ( !(s14_evt1 != 0))) || ((s14_evt0 != 0) && ( !(s14_evt1 != 0)))) || (((s14_evt1 != 0) && ( !(s14_evt0 != 0))) || ((s14_evt0 != 0) && (s14_evt1 != 0)))) && ((((( !(s14_l2 != 0)) && (( !(s14_l0 != 0)) && ( !(s14_l1 != 0)))) || (( !(s14_l2 != 0)) && ((s14_l0 != 0) && ( !(s14_l1 != 0))))) || ((( !(s14_l2 != 0)) && ((s14_l1 != 0) && ( !(s14_l0 != 0)))) || (( !(s14_l2 != 0)) && ((s14_l0 != 0) && (s14_l1 != 0))))) || (((s14_l2 != 0) && (( !(s14_l0 != 0)) && ( !(s14_l1 != 0)))) || ((s14_l2 != 0) && ((s14_l0 != 0) && ( !(s14_l1 != 0))))))) && (((( !(s14_l2 != 0)) && (( !(s14_l0 != 0)) && ( !(s14_l1 != 0)))) && (s14_x == 0.0)) && ((s14_y == 0.0) && (s14_z == 0.0)))) && ((s14_x <= 20.0) || ( !(( !(s14_l2 != 0)) && ((s14_l0 != 0) && ( !(s14_l1 != 0))))))) && ((s14_x <= 120.0) || ( !(( !(s14_l2 != 0)) && ((s14_l1 != 0) && ( !(s14_l0 != 0))))))) && ((s14_x <= 120.0) || ( !((s14_l2 != 0) && ((s14_l0 != 0) && ( !(s14_l1 != 0))))))) && (((((((((( !(s13_evt0 != 0)) && ( !(s13_evt1 != 0))) || ((s13_evt0 != 0) && ( !(s13_evt1 != 0)))) || (((s13_evt1 != 0) && ( !(s13_evt0 != 0))) || ((s13_evt0 != 0) && (s13_evt1 != 0)))) && ((((( !(s13_l2 != 0)) && (( !(s13_l0 != 0)) && ( !(s13_l1 != 0)))) || (( !(s13_l2 != 0)) && ((s13_l0 != 0) && ( !(s13_l1 != 0))))) || ((( !(s13_l2 != 0)) && ((s13_l1 != 0) && ( !(s13_l0 != 0)))) || (( !(s13_l2 != 0)) && ((s13_l0 != 0) && (s13_l1 != 0))))) || (((s13_l2 != 0) && (( !(s13_l0 != 0)) && ( !(s13_l1 != 0)))) || ((s13_l2 != 0) && ((s13_l0 != 0) && ( !(s13_l1 != 0))))))) && (((( !(s13_l2 != 0)) && (( !(s13_l0 != 0)) && ( !(s13_l1 != 0)))) && (s13_x == 0.0)) && ((s13_y == 0.0) && (s13_z == 0.0)))) && ((s13_x <= 20.0) || ( !(( !(s13_l2 != 0)) && ((s13_l0 != 0) && ( !(s13_l1 != 0))))))) && ((s13_x <= 120.0) || ( !(( !(s13_l2 != 0)) && ((s13_l1 != 0) && ( !(s13_l0 != 0))))))) && ((s13_x <= 120.0) || ( !((s13_l2 != 0) && ((s13_l0 != 0) && ( !(s13_l1 != 0))))))) && (((((((((( !(s12_evt0 != 0)) && ( !(s12_evt1 != 0))) || ((s12_evt0 != 0) && ( !(s12_evt1 != 0)))) || (((s12_evt1 != 0) && ( !(s12_evt0 != 0))) || ((s12_evt0 != 0) && (s12_evt1 != 0)))) && ((((( !(s12_l2 != 0)) && (( !(s12_l0 != 0)) && ( !(s12_l1 != 0)))) || (( !(s12_l2 != 0)) && ((s12_l0 != 0) && ( !(s12_l1 != 0))))) || ((( !(s12_l2 != 0)) && ((s12_l1 != 0) && ( !(s12_l0 != 0)))) || (( !(s12_l2 != 0)) && ((s12_l0 != 0) && (s12_l1 != 0))))) || (((s12_l2 != 0) && (( !(s12_l0 != 0)) && ( !(s12_l1 != 0)))) || ((s12_l2 != 0) && ((s12_l0 != 0) && ( !(s12_l1 != 0))))))) && (((( !(s12_l2 != 0)) && (( !(s12_l0 != 0)) && ( !(s12_l1 != 0)))) && (s12_x == 0.0)) && ((s12_y == 0.0) && (s12_z == 0.0)))) && ((s12_x <= 20.0) || ( !(( !(s12_l2 != 0)) && ((s12_l0 != 0) && ( !(s12_l1 != 0))))))) && ((s12_x <= 120.0) || ( !(( !(s12_l2 != 0)) && ((s12_l1 != 0) && ( !(s12_l0 != 0))))))) && ((s12_x <= 120.0) || ( !((s12_l2 != 0) && ((s12_l0 != 0) && ( !(s12_l1 != 0))))))) && (((((((((( !(s11_evt0 != 0)) && ( !(s11_evt1 != 0))) || ((s11_evt0 != 0) && ( !(s11_evt1 != 0)))) || (((s11_evt1 != 0) && ( !(s11_evt0 != 0))) || ((s11_evt0 != 0) && (s11_evt1 != 0)))) && ((((( !(s11_l2 != 0)) && (( !(s11_l0 != 0)) && ( !(s11_l1 != 0)))) || (( !(s11_l2 != 0)) && ((s11_l0 != 0) && ( !(s11_l1 != 0))))) || ((( !(s11_l2 != 0)) && ((s11_l1 != 0) && ( !(s11_l0 != 0)))) || (( !(s11_l2 != 0)) && ((s11_l0 != 0) && (s11_l1 != 0))))) || (((s11_l2 != 0) && (( !(s11_l0 != 0)) && ( !(s11_l1 != 0)))) || ((s11_l2 != 0) && ((s11_l0 != 0) && ( !(s11_l1 != 0))))))) && (((( !(s11_l2 != 0)) && (( !(s11_l0 != 0)) && ( !(s11_l1 != 0)))) && (s11_x == 0.0)) && ((s11_y == 0.0) && (s11_z == 0.0)))) && ((s11_x <= 20.0) || ( !(( !(s11_l2 != 0)) && ((s11_l0 != 0) && ( !(s11_l1 != 0))))))) && ((s11_x <= 120.0) || ( !(( !(s11_l2 != 0)) && ((s11_l1 != 0) && ( !(s11_l0 != 0))))))) && ((s11_x <= 120.0) || ( !((s11_l2 != 0) && ((s11_l0 != 0) && ( !(s11_l1 != 0))))))) && (((((((((( !(s10_evt0 != 0)) && ( !(s10_evt1 != 0))) || ((s10_evt0 != 0) && ( !(s10_evt1 != 0)))) || (((s10_evt1 != 0) && ( !(s10_evt0 != 0))) || ((s10_evt0 != 0) && (s10_evt1 != 0)))) && ((((( !(s10_l2 != 0)) && (( !(s10_l0 != 0)) && ( !(s10_l1 != 0)))) || (( !(s10_l2 != 0)) && ((s10_l0 != 0) && ( !(s10_l1 != 0))))) || ((( !(s10_l2 != 0)) && ((s10_l1 != 0) && ( !(s10_l0 != 0)))) || (( !(s10_l2 != 0)) && ((s10_l0 != 0) && (s10_l1 != 0))))) || (((s10_l2 != 0) && (( !(s10_l0 != 0)) && ( !(s10_l1 != 0)))) || ((s10_l2 != 0) && ((s10_l0 != 0) && ( !(s10_l1 != 0))))))) && (((( !(s10_l2 != 0)) && (( !(s10_l0 != 0)) && ( !(s10_l1 != 0)))) && (s10_x == 0.0)) && ((s10_y == 0.0) && (s10_z == 0.0)))) && ((s10_x <= 20.0) || ( !(( !(s10_l2 != 0)) && ((s10_l0 != 0) && ( !(s10_l1 != 0))))))) && ((s10_x <= 120.0) || ( !(( !(s10_l2 != 0)) && ((s10_l1 != 0) && ( !(s10_l0 != 0))))))) && ((s10_x <= 120.0) || ( !((s10_l2 != 0) && ((s10_l0 != 0) && ( !(s10_l1 != 0))))))) && (((((((((( !(s9_evt0 != 0)) && ( !(s9_evt1 != 0))) || ((s9_evt0 != 0) && ( !(s9_evt1 != 0)))) || (((s9_evt1 != 0) && ( !(s9_evt0 != 0))) || ((s9_evt0 != 0) && (s9_evt1 != 0)))) && ((((( !(s9_l2 != 0)) && (( !(s9_l0 != 0)) && ( !(s9_l1 != 0)))) || (( !(s9_l2 != 0)) && ((s9_l0 != 0) && ( !(s9_l1 != 0))))) || ((( !(s9_l2 != 0)) && ((s9_l1 != 0) && ( !(s9_l0 != 0)))) || (( !(s9_l2 != 0)) && ((s9_l0 != 0) && (s9_l1 != 0))))) || (((s9_l2 != 0) && (( !(s9_l0 != 0)) && ( !(s9_l1 != 0)))) || ((s9_l2 != 0) && ((s9_l0 != 0) && ( !(s9_l1 != 0))))))) && (((( !(s9_l2 != 0)) && (( !(s9_l0 != 0)) && ( !(s9_l1 != 0)))) && (s9_x == 0.0)) && ((s9_y == 0.0) && (s9_z == 0.0)))) && ((s9_x <= 20.0) || ( !(( !(s9_l2 != 0)) && ((s9_l0 != 0) && ( !(s9_l1 != 0))))))) && ((s9_x <= 120.0) || ( !(( !(s9_l2 != 0)) && ((s9_l1 != 0) && ( !(s9_l0 != 0))))))) && ((s9_x <= 120.0) || ( !((s9_l2 != 0) && ((s9_l0 != 0) && ( !(s9_l1 != 0))))))) && (((((((((( !(s8_evt0 != 0)) && ( !(s8_evt1 != 0))) || ((s8_evt0 != 0) && ( !(s8_evt1 != 0)))) || (((s8_evt1 != 0) && ( !(s8_evt0 != 0))) || ((s8_evt0 != 0) && (s8_evt1 != 0)))) && ((((( !(s8_l2 != 0)) && (( !(s8_l0 != 0)) && ( !(s8_l1 != 0)))) || (( !(s8_l2 != 0)) && ((s8_l0 != 0) && ( !(s8_l1 != 0))))) || ((( !(s8_l2 != 0)) && ((s8_l1 != 0) && ( !(s8_l0 != 0)))) || (( !(s8_l2 != 0)) && ((s8_l0 != 0) && (s8_l1 != 0))))) || (((s8_l2 != 0) && (( !(s8_l0 != 0)) && ( !(s8_l1 != 0)))) || ((s8_l2 != 0) && ((s8_l0 != 0) && ( !(s8_l1 != 0))))))) && (((( !(s8_l2 != 0)) && (( !(s8_l0 != 0)) && ( !(s8_l1 != 0)))) && (s8_x == 0.0)) && ((s8_y == 0.0) && (s8_z == 0.0)))) && ((s8_x <= 20.0) || ( !(( !(s8_l2 != 0)) && ((s8_l0 != 0) && ( !(s8_l1 != 0))))))) && ((s8_x <= 120.0) || ( !(( !(s8_l2 != 0)) && ((s8_l1 != 0) && ( !(s8_l0 != 0))))))) && ((s8_x <= 120.0) || ( !((s8_l2 != 0) && ((s8_l0 != 0) && ( !(s8_l1 != 0))))))) && (((((((((( !(s7_evt0 != 0)) && ( !(s7_evt1 != 0))) || ((s7_evt0 != 0) && ( !(s7_evt1 != 0)))) || (((s7_evt1 != 0) && ( !(s7_evt0 != 0))) || ((s7_evt0 != 0) && (s7_evt1 != 0)))) && ((((( !(s7_l2 != 0)) && (( !(s7_l0 != 0)) && ( !(s7_l1 != 0)))) || (( !(s7_l2 != 0)) && ((s7_l0 != 0) && ( !(s7_l1 != 0))))) || ((( !(s7_l2 != 0)) && ((s7_l1 != 0) && ( !(s7_l0 != 0)))) || (( !(s7_l2 != 0)) && ((s7_l0 != 0) && (s7_l1 != 0))))) || (((s7_l2 != 0) && (( !(s7_l0 != 0)) && ( !(s7_l1 != 0)))) || ((s7_l2 != 0) && ((s7_l0 != 0) && ( !(s7_l1 != 0))))))) && (((( !(s7_l2 != 0)) && (( !(s7_l0 != 0)) && ( !(s7_l1 != 0)))) && (s7_x == 0.0)) && ((s7_y == 0.0) && (s7_z == 0.0)))) && ((s7_x <= 20.0) || ( !(( !(s7_l2 != 0)) && ((s7_l0 != 0) && ( !(s7_l1 != 0))))))) && ((s7_x <= 120.0) || ( !(( !(s7_l2 != 0)) && ((s7_l1 != 0) && ( !(s7_l0 != 0))))))) && ((s7_x <= 120.0) || ( !((s7_l2 != 0) && ((s7_l0 != 0) && ( !(s7_l1 != 0))))))) && (((((((((( !(s6_evt0 != 0)) && ( !(s6_evt1 != 0))) || ((s6_evt0 != 0) && ( !(s6_evt1 != 0)))) || (((s6_evt1 != 0) && ( !(s6_evt0 != 0))) || ((s6_evt0 != 0) && (s6_evt1 != 0)))) && ((((( !(s6_l2 != 0)) && (( !(s6_l0 != 0)) && ( !(s6_l1 != 0)))) || (( !(s6_l2 != 0)) && ((s6_l0 != 0) && ( !(s6_l1 != 0))))) || ((( !(s6_l2 != 0)) && ((s6_l1 != 0) && ( !(s6_l0 != 0)))) || (( !(s6_l2 != 0)) && ((s6_l0 != 0) && (s6_l1 != 0))))) || (((s6_l2 != 0) && (( !(s6_l0 != 0)) && ( !(s6_l1 != 0)))) || ((s6_l2 != 0) && ((s6_l0 != 0) && ( !(s6_l1 != 0))))))) && (((( !(s6_l2 != 0)) && (( !(s6_l0 != 0)) && ( !(s6_l1 != 0)))) && (s6_x == 0.0)) && ((s6_y == 0.0) && (s6_z == 0.0)))) && ((s6_x <= 20.0) || ( !(( !(s6_l2 != 0)) && ((s6_l0 != 0) && ( !(s6_l1 != 0))))))) && ((s6_x <= 120.0) || ( !(( !(s6_l2 != 0)) && ((s6_l1 != 0) && ( !(s6_l0 != 0))))))) && ((s6_x <= 120.0) || ( !((s6_l2 != 0) && ((s6_l0 != 0) && ( !(s6_l1 != 0))))))) && (((((((((( !(s5_evt0 != 0)) && ( !(s5_evt1 != 0))) || ((s5_evt0 != 0) && ( !(s5_evt1 != 0)))) || (((s5_evt1 != 0) && ( !(s5_evt0 != 0))) || ((s5_evt0 != 0) && (s5_evt1 != 0)))) && ((((( !(s5_l2 != 0)) && (( !(s5_l0 != 0)) && ( !(s5_l1 != 0)))) || (( !(s5_l2 != 0)) && ((s5_l0 != 0) && ( !(s5_l1 != 0))))) || ((( !(s5_l2 != 0)) && ((s5_l1 != 0) && ( !(s5_l0 != 0)))) || (( !(s5_l2 != 0)) && ((s5_l0 != 0) && (s5_l1 != 0))))) || (((s5_l2 != 0) && (( !(s5_l0 != 0)) && ( !(s5_l1 != 0)))) || ((s5_l2 != 0) && ((s5_l0 != 0) && ( !(s5_l1 != 0))))))) && (((( !(s5_l2 != 0)) && (( !(s5_l0 != 0)) && ( !(s5_l1 != 0)))) && (s5_x == 0.0)) && ((s5_y == 0.0) && (s5_z == 0.0)))) && ((s5_x <= 20.0) || ( !(( !(s5_l2 != 0)) && ((s5_l0 != 0) && ( !(s5_l1 != 0))))))) && ((s5_x <= 120.0) || ( !(( !(s5_l2 != 0)) && ((s5_l1 != 0) && ( !(s5_l0 != 0))))))) && ((s5_x <= 120.0) || ( !((s5_l2 != 0) && ((s5_l0 != 0) && ( !(s5_l1 != 0))))))) && (((((((((( !(s4_evt0 != 0)) && ( !(s4_evt1 != 0))) || ((s4_evt0 != 0) && ( !(s4_evt1 != 0)))) || (((s4_evt1 != 0) && ( !(s4_evt0 != 0))) || ((s4_evt0 != 0) && (s4_evt1 != 0)))) && ((((( !(s4_l2 != 0)) && (( !(s4_l0 != 0)) && ( !(s4_l1 != 0)))) || (( !(s4_l2 != 0)) && ((s4_l0 != 0) && ( !(s4_l1 != 0))))) || ((( !(s4_l2 != 0)) && ((s4_l1 != 0) && ( !(s4_l0 != 0)))) || (( !(s4_l2 != 0)) && ((s4_l0 != 0) && (s4_l1 != 0))))) || (((s4_l2 != 0) && (( !(s4_l0 != 0)) && ( !(s4_l1 != 0)))) || ((s4_l2 != 0) && ((s4_l0 != 0) && ( !(s4_l1 != 0))))))) && (((( !(s4_l2 != 0)) && (( !(s4_l0 != 0)) && ( !(s4_l1 != 0)))) && (s4_x == 0.0)) && ((s4_y == 0.0) && (s4_z == 0.0)))) && ((s4_x <= 20.0) || ( !(( !(s4_l2 != 0)) && ((s4_l0 != 0) && ( !(s4_l1 != 0))))))) && ((s4_x <= 120.0) || ( !(( !(s4_l2 != 0)) && ((s4_l1 != 0) && ( !(s4_l0 != 0))))))) && ((s4_x <= 120.0) || ( !((s4_l2 != 0) && ((s4_l0 != 0) && ( !(s4_l1 != 0))))))) && (((((((((( !(s3_evt0 != 0)) && ( !(s3_evt1 != 0))) || ((s3_evt0 != 0) && ( !(s3_evt1 != 0)))) || (((s3_evt1 != 0) && ( !(s3_evt0 != 0))) || ((s3_evt0 != 0) && (s3_evt1 != 0)))) && ((((( !(s3_l2 != 0)) && (( !(s3_l0 != 0)) && ( !(s3_l1 != 0)))) || (( !(s3_l2 != 0)) && ((s3_l0 != 0) && ( !(s3_l1 != 0))))) || ((( !(s3_l2 != 0)) && ((s3_l1 != 0) && ( !(s3_l0 != 0)))) || (( !(s3_l2 != 0)) && ((s3_l0 != 0) && (s3_l1 != 0))))) || (((s3_l2 != 0) && (( !(s3_l0 != 0)) && ( !(s3_l1 != 0)))) || ((s3_l2 != 0) && ((s3_l0 != 0) && ( !(s3_l1 != 0))))))) && (((( !(s3_l2 != 0)) && (( !(s3_l0 != 0)) && ( !(s3_l1 != 0)))) && (s3_x == 0.0)) && ((s3_y == 0.0) && (s3_z == 0.0)))) && ((s3_x <= 20.0) || ( !(( !(s3_l2 != 0)) && ((s3_l0 != 0) && ( !(s3_l1 != 0))))))) && ((s3_x <= 120.0) || ( !(( !(s3_l2 != 0)) && ((s3_l1 != 0) && ( !(s3_l0 != 0))))))) && ((s3_x <= 120.0) || ( !((s3_l2 != 0) && ((s3_l0 != 0) && ( !(s3_l1 != 0))))))) && (((((((((( !(s2_evt0 != 0)) && ( !(s2_evt1 != 0))) || ((s2_evt0 != 0) && ( !(s2_evt1 != 0)))) || (((s2_evt1 != 0) && ( !(s2_evt0 != 0))) || ((s2_evt0 != 0) && (s2_evt1 != 0)))) && ((((( !(s2_l2 != 0)) && (( !(s2_l0 != 0)) && ( !(s2_l1 != 0)))) || (( !(s2_l2 != 0)) && ((s2_l0 != 0) && ( !(s2_l1 != 0))))) || ((( !(s2_l2 != 0)) && ((s2_l1 != 0) && ( !(s2_l0 != 0)))) || (( !(s2_l2 != 0)) && ((s2_l0 != 0) && (s2_l1 != 0))))) || (((s2_l2 != 0) && (( !(s2_l0 != 0)) && ( !(s2_l1 != 0)))) || ((s2_l2 != 0) && ((s2_l0 != 0) && ( !(s2_l1 != 0))))))) && (((( !(s2_l2 != 0)) && (( !(s2_l0 != 0)) && ( !(s2_l1 != 0)))) && (s2_x == 0.0)) && ((s2_y == 0.0) && (s2_z == 0.0)))) && ((s2_x <= 20.0) || ( !(( !(s2_l2 != 0)) && ((s2_l0 != 0) && ( !(s2_l1 != 0))))))) && ((s2_x <= 120.0) || ( !(( !(s2_l2 != 0)) && ((s2_l1 != 0) && ( !(s2_l0 != 0))))))) && ((s2_x <= 120.0) || ( !((s2_l2 != 0) && ((s2_l0 != 0) && ( !(s2_l1 != 0))))))) && (((((((((( !(s1_evt0 != 0)) && ( !(s1_evt1 != 0))) || ((s1_evt0 != 0) && ( !(s1_evt1 != 0)))) || (((s1_evt1 != 0) && ( !(s1_evt0 != 0))) || ((s1_evt0 != 0) && (s1_evt1 != 0)))) && ((((( !(s1_l2 != 0)) && (( !(s1_l0 != 0)) && ( !(s1_l1 != 0)))) || (( !(s1_l2 != 0)) && ((s1_l0 != 0) && ( !(s1_l1 != 0))))) || ((( !(s1_l2 != 0)) && ((s1_l1 != 0) && ( !(s1_l0 != 0)))) || (( !(s1_l2 != 0)) && ((s1_l0 != 0) && (s1_l1 != 0))))) || (((s1_l2 != 0) && (( !(s1_l0 != 0)) && ( !(s1_l1 != 0)))) || ((s1_l2 != 0) && ((s1_l0 != 0) && ( !(s1_l1 != 0))))))) && (((( !(s1_l2 != 0)) && (( !(s1_l0 != 0)) && ( !(s1_l1 != 0)))) && (s1_x == 0.0)) && ((s1_y == 0.0) && (s1_z == 0.0)))) && ((s1_x <= 20.0) || ( !(( !(s1_l2 != 0)) && ((s1_l0 != 0) && ( !(s1_l1 != 0))))))) && ((s1_x <= 120.0) || ( !(( !(s1_l2 != 0)) && ((s1_l1 != 0) && ( !(s1_l0 != 0))))))) && ((s1_x <= 120.0) || ( !((s1_l2 != 0) && ((s1_l0 != 0) && ( !(s1_l1 != 0))))))) && (((((((((( !(s0_evt0 != 0)) && ( !(s0_evt1 != 0))) || ((s0_evt0 != 0) && ( !(s0_evt1 != 0)))) || (((s0_evt1 != 0) && ( !(s0_evt0 != 0))) || ((s0_evt0 != 0) && (s0_evt1 != 0)))) && ((((( !(s0_l2 != 0)) && (( !(s0_l0 != 0)) && ( !(s0_l1 != 0)))) || (( !(s0_l2 != 0)) && ((s0_l0 != 0) && ( !(s0_l1 != 0))))) || ((( !(s0_l2 != 0)) && ((s0_l1 != 0) && ( !(s0_l0 != 0)))) || (( !(s0_l2 != 0)) && ((s0_l0 != 0) && (s0_l1 != 0))))) || (((s0_l2 != 0) && (( !(s0_l0 != 0)) && ( !(s0_l1 != 0)))) || ((s0_l2 != 0) && ((s0_l0 != 0) && ( !(s0_l1 != 0))))))) && (((( !(s0_l2 != 0)) && (( !(s0_l0 != 0)) && ( !(s0_l1 != 0)))) && (s0_x == 0.0)) && ((s0_y == 0.0) && (s0_z == 0.0)))) && ((s0_x <= 20.0) || ( !(( !(s0_l2 != 0)) && ((s0_l0 != 0) && ( !(s0_l1 != 0))))))) && ((s0_x <= 120.0) || ( !(( !(s0_l2 != 0)) && ((s0_l1 != 0) && ( !(s0_l0 != 0))))))) && ((s0_x <= 120.0) || ( !((s0_l2 != 0) && ((s0_l0 != 0) && ( !(s0_l1 != 0))))))) && (((((((r_l != 0) && ((r_counter == 0) && (r_x == 0.0))) && ((( !(r_event0 != 0)) && ( !(r_event1 != 0))) || (((r_event0 != 0) && ( !(r_event1 != 0))) || ((r_event1 != 0) && ( !(r_event0 != 0)))))) && ((((((((((((((((((((((((((r_evt_id == 0) || (r_evt_id == 1)) || (r_evt_id == 2)) || (r_evt_id == 3)) || (r_evt_id == 4)) || (r_evt_id == 5)) || (r_evt_id == 6)) || (r_evt_id == 7)) || (r_evt_id == 8)) || (r_evt_id == 9)) || (r_evt_id == 10)) || (r_evt_id == 11)) || (r_evt_id == 12)) || (r_evt_id == 13)) || (r_evt_id == 14)) || (r_evt_id == 15)) || (r_evt_id == 16)) || (r_evt_id == 17)) || (r_evt_id == 18)) || (r_evt_id == 19)) || (r_evt_id == 20)) || (r_evt_id == 21)) || (r_evt_id == 22)) || (r_evt_id == 23)) || (r_evt_id == 24)) || (r_evt_id == 25))) && ((((((((((((((((((((((((((r_counter == 0) || (r_counter == 1)) || (r_counter == 2)) || (r_counter == 3)) || (r_counter == 4)) || (r_counter == 5)) || (r_counter == 6)) || (r_counter == 7)) || (r_counter == 8)) || (r_counter == 9)) || (r_counter == 10)) || (r_counter == 11)) || (r_counter == 12)) || (r_counter == 13)) || (r_counter == 14)) || (r_counter == 15)) || (r_counter == 16)) || (r_counter == 17)) || (r_counter == 18)) || (r_counter == 19)) || (r_counter == 20)) || (r_counter == 21)) || (r_counter == 22)) || (r_counter == 23)) || (r_counter == 24)) || (r_counter == 25))) && (( !(r_l != 0)) || (r_x <= 0.0))) && (0.0 <= delta)))))))))))))))))))))))))))) && (delta == _diverge_delta));
while (__ok) {
_x__diverge_delta = __VERIFIER_nondet_float();
_x_s25_evt1 = __VERIFIER_nondet_bool();
_x_s25_evt0 = __VERIFIER_nondet_bool();
_x_s25_z = __VERIFIER_nondet_float();
_x_s25_y = __VERIFIER_nondet_float();
_x_s24_l2 = __VERIFIER_nondet_bool();
_x_s24_evt1 = __VERIFIER_nondet_bool();
_x_s24_evt0 = __VERIFIER_nondet_bool();
_x_s24_z = __VERIFIER_nondet_float();
_x_s24_y = __VERIFIER_nondet_float();
_x_s23_l2 = __VERIFIER_nondet_bool();
_x_s23_evt1 = __VERIFIER_nondet_bool();
_x_s23_evt0 = __VERIFIER_nondet_bool();
_x_s23_z = __VERIFIER_nondet_float();
_x_s23_y = __VERIFIER_nondet_float();
_x_s22_l2 = __VERIFIER_nondet_bool();
_x_s22_evt1 = __VERIFIER_nondet_bool();
_x_s22_evt0 = __VERIFIER_nondet_bool();
_x_s22_z = __VERIFIER_nondet_float();
_x_s22_y = __VERIFIER_nondet_float();
_x_s21_z = __VERIFIER_nondet_float();
_x_s21_y = __VERIFIER_nondet_float();
_x_s20_l2 = __VERIFIER_nondet_bool();
_x_s20_evt1 = __VERIFIER_nondet_bool();
_x_s20_evt0 = __VERIFIER_nondet_bool();
_x_s20_z = __VERIFIER_nondet_float();
_x_s20_y = __VERIFIER_nondet_float();
_x_s19_l2 = __VERIFIER_nondet_bool();
_x_s19_evt1 = __VERIFIER_nondet_bool();
_x_s19_evt0 = __VERIFIER_nondet_bool();
_x_s19_z = __VERIFIER_nondet_float();
_x_s19_y = __VERIFIER_nondet_float();
_x_s18_l2 = __VERIFIER_nondet_bool();
_x_s18_evt1 = __VERIFIER_nondet_bool();
_x_s18_evt0 = __VERIFIER_nondet_bool();
_x_s18_z = __VERIFIER_nondet_float();
_x_s18_y = __VERIFIER_nondet_float();
_x_s17_l2 = __VERIFIER_nondet_bool();
_x_s17_evt1 = __VERIFIER_nondet_bool();
_x_s17_evt0 = __VERIFIER_nondet_bool();
_x_s17_z = __VERIFIER_nondet_float();
_x_s17_y = __VERIFIER_nondet_float();
_x_s16_l2 = __VERIFIER_nondet_bool();
_x_s16_evt1 = __VERIFIER_nondet_bool();
_x_s16_evt0 = __VERIFIER_nondet_bool();
_x_s16_z = __VERIFIER_nondet_float();
_x_s16_y = __VERIFIER_nondet_float();
_x_s15_l2 = __VERIFIER_nondet_bool();
_x_s15_evt1 = __VERIFIER_nondet_bool();
_x_s15_evt0 = __VERIFIER_nondet_bool();
_x_s15_z = __VERIFIER_nondet_float();
_x_s15_y = __VERIFIER_nondet_float();
_x_s5_l2 = __VERIFIER_nondet_bool();
_x_s19_x = __VERIFIER_nondet_float();
_x_s5_evt1 = __VERIFIER_nondet_bool();
_x_s2_l1 = __VERIFIER_nondet_bool();
_x_s4_l2 = __VERIFIER_nondet_bool();
_x_s16_l1 = __VERIFIER_nondet_bool();
_x_s4_z = __VERIFIER_nondet_float();
_x_s10_l2 = __VERIFIER_nondet_bool();
_x_s3_l2 = __VERIFIER_nondet_bool();
_x_s6_evt0 = __VERIFIER_nondet_bool();
_x_s3_l0 = __VERIFIER_nondet_bool();
_x_s17_x = __VERIFIER_nondet_float();
_x_s3_evt1 = __VERIFIER_nondet_bool();
_x_s0_l1 = __VERIFIER_nondet_bool();
_x_s18_l0 = __VERIFIER_nondet_bool();
_x_s6_y = __VERIFIER_nondet_float();
_x_s15_l1 = __VERIFIER_nondet_bool();
_x_s3_z = __VERIFIER_nondet_float();
_x_s9_l2 = __VERIFIER_nondet_bool();
_x_s5_l1 = __VERIFIER_nondet_bool();
_x_s22_x = __VERIFIER_nondet_float();
_x_s8_evt1 = __VERIFIER_nondet_bool();
_x_s2_l2 = __VERIFIER_nondet_bool();
_x_s5_l0 = __VERIFIER_nondet_bool();
_x_s8_evt0 = __VERIFIER_nondet_bool();
_x_s0_evt0 = __VERIFIER_nondet_bool();
_x_s6_x = __VERIFIER_nondet_float();
_x_s15_l0 = __VERIFIER_nondet_bool();
_x_s3_y = __VERIFIER_nondet_float();
_x_s9_l1 = __VERIFIER_nondet_bool();
_x_s12_evt1 = __VERIFIER_nondet_bool();
_x_s12_l1 = __VERIFIER_nondet_bool();
_x_s0_z = __VERIFIER_nondet_float();
_x_s6_l2 = __VERIFIER_nondet_bool();
_x_s17_l1 = __VERIFIER_nondet_bool();
_x_s5_z = __VERIFIER_nondet_float();
_x_s11_l2 = __VERIFIER_nondet_bool();
_x_s0_l0 = __VERIFIER_nondet_bool();
_x_s3_evt0 = __VERIFIER_nondet_bool();
_x_s4_evt0 = __VERIFIER_nondet_bool();
_x_s1_l0 = __VERIFIER_nondet_bool();
_x_s15_x = __VERIFIER_nondet_float();
_x_s1_evt1 = __VERIFIER_nondet_bool();
_x_r_event1 = __VERIFIER_nondet_bool();
_x_s10_x = __VERIFIER_nondet_float();
_x_s21_evt1 = __VERIFIER_nondet_bool();
_x_r_event0 = __VERIFIER_nondet_bool();
_x_s3_x = __VERIFIER_nondet_float();
_x_s9_l0 = __VERIFIER_nondet_bool();
_x_s12_evt0 = __VERIFIER_nondet_bool();
_x_s12_l0 = __VERIFIER_nondet_bool();
_x_s0_y = __VERIFIER_nondet_float();
_x_s6_l1 = __VERIFIER_nondet_bool();
_x_s23_x = __VERIFIER_nondet_float();
_x_s9_evt1 = __VERIFIER_nondet_bool();
_x_s25_l0 = __VERIFIER_nondet_bool();
_x_s13_y = __VERIFIER_nondet_float();
_x_s2_l0 = __VERIFIER_nondet_bool();
_x_s5_evt0 = __VERIFIER_nondet_bool();
_x_s18_x = __VERIFIER_nondet_float();
_x_s4_evt1 = __VERIFIER_nondet_bool();
_x_s1_l1 = __VERIFIER_nondet_bool();
_x_s25_l2 = __VERIFIER_nondet_bool();
_x_s0_x = __VERIFIER_nondet_float();
_x_s6_l0 = __VERIFIER_nondet_bool();
_x_s9_evt0 = __VERIFIER_nondet_bool();
_x_s21_l2 = __VERIFIER_nondet_bool();
_x_r_counter = __VERIFIER_nondet_int();
_x_s13_x = __VERIFIER_nondet_float();
_x_s21_evt0 = __VERIFIER_nondet_bool();
_x_delta = __VERIFIER_nondet_float();
_x_s16_x = __VERIFIER_nondet_float();
_x_s2_evt1 = __VERIFIER_nondet_bool();
_x_s17_l0 = __VERIFIER_nondet_bool();
_x_s5_y = __VERIFIER_nondet_float();
_x_s11_l1 = __VERIFIER_nondet_bool();
_x_s14_evt1 = __VERIFIER_nondet_bool();
_x_s8_l2 = __VERIFIER_nondet_bool();
_x_s2_x = __VERIFIER_nondet_float();
_x_r_x = __VERIFIER_nondet_float();
_x_s8_l0 = __VERIFIER_nondet_bool();
_x_s11_evt0 = __VERIFIER_nondet_bool();
_x_s3_l1 = __VERIFIER_nondet_bool();
_x_s20_x = __VERIFIER_nondet_float();
_x_s6_evt1 = __VERIFIER_nondet_bool();
_x_s0_l2 = __VERIFIER_nondet_bool();
_x_s5_x = __VERIFIER_nondet_float();
_x_s11_l0 = __VERIFIER_nondet_bool();
_x_s14_evt0 = __VERIFIER_nondet_bool();
_x_s8_l1 = __VERIFIER_nondet_bool();
_x_s25_x = __VERIFIER_nondet_float();
_x_s11_evt1 = __VERIFIER_nondet_bool();
_x_s1_x = __VERIFIER_nondet_float();
_x_s7_l0 = __VERIFIER_nondet_bool();
_x_s10_evt0 = __VERIFIER_nondet_bool();
_x_s4_x = __VERIFIER_nondet_float();
_x_s10_l0 = __VERIFIER_nondet_bool();
_x_s13_evt0 = __VERIFIER_nondet_bool();
_x_s7_l1 = __VERIFIER_nondet_bool();
_x_s24_x = __VERIFIER_nondet_float();
_x_s10_evt1 = __VERIFIER_nondet_bool();
_x_s16_l0 = __VERIFIER_nondet_bool();
_x_s4_y = __VERIFIER_nondet_float();
_x_s10_l1 = __VERIFIER_nondet_bool();
_x_s13_evt1 = __VERIFIER_nondet_bool();
_x_s7_l2 = __VERIFIER_nondet_bool();
_x_s1_evt0 = __VERIFIER_nondet_bool();
_x_s18_l1 = __VERIFIER_nondet_bool();
_x_s6_z = __VERIFIER_nondet_float();
_x_s12_l2 = __VERIFIER_nondet_bool();
_x_s4_l0 = __VERIFIER_nondet_bool();
_x_s7_evt0 = __VERIFIER_nondet_bool();
_x_s4_l1 = __VERIFIER_nondet_bool();
_x_s21_x = __VERIFIER_nondet_float();
_x_s7_evt1 = __VERIFIER_nondet_bool();
_x_s1_l2 = __VERIFIER_nondet_bool();
_x_s2_evt0 = __VERIFIER_nondet_bool();
_x_s7_x = __VERIFIER_nondet_float();
_x_s1_y = __VERIFIER_nondet_float();
_x_s13_l0 = __VERIFIER_nondet_bool();
_x_s19_l0 = __VERIFIER_nondet_bool();
_x_s7_y = __VERIFIER_nondet_float();
_x_s1_z = __VERIFIER_nondet_float();
_x_s13_l1 = __VERIFIER_nondet_bool();
_x_s19_l1 = __VERIFIER_nondet_bool();
_x_s7_z = __VERIFIER_nondet_float();
_x_s13_l2 = __VERIFIER_nondet_bool();
_x_s8_x = __VERIFIER_nondet_float();
_x_s2_y = __VERIFIER_nondet_float();
_x_s14_l0 = __VERIFIER_nondet_bool();
_x_s20_l0 = __VERIFIER_nondet_bool();
_x_s8_y = __VERIFIER_nondet_float();
_x_s2_z = __VERIFIER_nondet_float();
_x_s14_l1 = __VERIFIER_nondet_bool();
_x_s20_l1 = __VERIFIER_nondet_bool();
_x_s8_z = __VERIFIER_nondet_float();
_x_s14_l2 = __VERIFIER_nondet_bool();
_x_s9_x = __VERIFIER_nondet_float();
_x_s21_l0 = __VERIFIER_nondet_bool();
_x_r_l = __VERIFIER_nondet_bool();
_x_s9_y = __VERIFIER_nondet_float();
_x_s21_l1 = __VERIFIER_nondet_bool();
_x_r_evt_id = __VERIFIER_nondet_int();
_x_s9_z = __VERIFIER_nondet_float();
_x_s22_l0 = __VERIFIER_nondet_bool();
_x_s10_y = __VERIFIER_nondet_float();
_x_s22_l1 = __VERIFIER_nondet_bool();
_x_s10_z = __VERIFIER_nondet_float();
_x_s11_x = __VERIFIER_nondet_float();
_x_s23_l0 = __VERIFIER_nondet_bool();
_x_s11_y = __VERIFIER_nondet_float();
_x_s23_l1 = __VERIFIER_nondet_bool();
_x_s11_z = __VERIFIER_nondet_float();
_x_s12_x = __VERIFIER_nondet_float();
_x_s24_l0 = __VERIFIER_nondet_bool();
_x_s12_y = __VERIFIER_nondet_float();
_x_s24_l1 = __VERIFIER_nondet_bool();
_x_s12_z = __VERIFIER_nondet_float();
_x_s25_l1 = __VERIFIER_nondet_bool();
_x_s13_z = __VERIFIER_nondet_float();
_x_s0_evt1 = __VERIFIER_nondet_bool();
_x_s14_x = __VERIFIER_nondet_float();
_x_s14_y = __VERIFIER_nondet_float();
_x_s14_z = __VERIFIER_nondet_float();
__ok = ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((( !(_x_s25_evt0 != 0)) && ( !(_x_s25_evt1 != 0))) || ((_x_s25_evt0 != 0) && ( !(_x_s25_evt1 != 0)))) || (((_x_s25_evt1 != 0) && ( !(_x_s25_evt0 != 0))) || ((_x_s25_evt0 != 0) && (_x_s25_evt1 != 0)))) && ((((( !(_x_s25_l2 != 0)) && (( !(_x_s25_l0 != 0)) && ( !(_x_s25_l1 != 0)))) || (( !(_x_s25_l2 != 0)) && ((_x_s25_l0 != 0) && ( !(_x_s25_l1 != 0))))) || ((( !(_x_s25_l2 != 0)) && ((_x_s25_l1 != 0) && ( !(_x_s25_l0 != 0)))) || (( !(_x_s25_l2 != 0)) && ((_x_s25_l0 != 0) && (_x_s25_l1 != 0))))) || (((_x_s25_l2 != 0) && (( !(_x_s25_l0 != 0)) && ( !(_x_s25_l1 != 0)))) || ((_x_s25_l2 != 0) && ((_x_s25_l0 != 0) && ( !(_x_s25_l1 != 0))))))) && ((_x_s25_x <= 20.0) || ( !(( !(_x_s25_l2 != 0)) && ((_x_s25_l0 != 0) && ( !(_x_s25_l1 != 0))))))) && ((_x_s25_x <= 120.0) || ( !(( !(_x_s25_l2 != 0)) && ((_x_s25_l1 != 0) && ( !(_x_s25_l0 != 0))))))) && ((_x_s25_x <= 120.0) || ( !((_x_s25_l2 != 0) && ((_x_s25_l0 != 0) && ( !(_x_s25_l1 != 0))))))) && ((delta <= 0.0) || ((((delta + (s25_x + (-1.0 * _x_s25_x))) == 0.0) && ((delta + (s25_y + (-1.0 * _x_s25_y))) == 0.0)) && (((((s25_l0 != 0) == (_x_s25_l0 != 0)) && ((s25_l1 != 0) == (_x_s25_l1 != 0))) && ((s25_l2 != 0) == (_x_s25_l2 != 0))) && ((delta + (s25_z + (-1.0 * _x_s25_z))) == 0.0))))) && (((((((s25_l0 != 0) == (_x_s25_l0 != 0)) && ((s25_l1 != 0) == (_x_s25_l1 != 0))) && ((s25_l2 != 0) == (_x_s25_l2 != 0))) && ((delta + (s25_x + (-1.0 * _x_s25_x))) == 0.0)) && (((delta + (s25_y + (-1.0 * _x_s25_y))) == 0.0) && ((delta + (s25_z + (-1.0 * _x_s25_z))) == 0.0))) || ( !(( !(s25_evt0 != 0)) && ( !(s25_evt1 != 0)))))) && ((((((s25_evt0 != 0) && (s25_evt1 != 0)) && (( !(_x_s25_l2 != 0)) && ((_x_s25_l0 != 0) && ( !(_x_s25_l1 != 0))))) && ((_x_s25_x == 0.0) && (_x_s25_y == 0.0))) && (s25_z == _x_s25_z)) || ( !((( !(s25_l2 != 0)) && (( !(s25_l0 != 0)) && ( !(s25_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s25_evt0 != 0)) && ( !(s25_evt1 != 0))))))))) && (((((( !(_x_s25_l2 != 0)) && ((_x_s25_l1 != 0) && ( !(_x_s25_l0 != 0)))) || (( !(_x_s25_l2 != 0)) && ((_x_s25_l0 != 0) && (_x_s25_l1 != 0)))) && (s25_x == _x_s25_x)) && ((s25_z == _x_s25_z) && (s25_y == _x_s25_y))) || ( !((( !(s25_l2 != 0)) && ((s25_l0 != 0) && ( !(s25_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s25_evt0 != 0)) && ( !(s25_evt1 != 0))))))))) && ((((s25_evt0 != 0) && ( !(s25_evt1 != 0))) && ((20.0 <= s25_x) && ( !(120.0 <= s25_z)))) || ( !(((delta == 0.0) && ( !(( !(s25_evt0 != 0)) && ( !(s25_evt1 != 0))))) && ((( !(s25_l2 != 0)) && ((s25_l0 != 0) && ( !(s25_l1 != 0)))) && (( !(_x_s25_l2 != 0)) && ((_x_s25_l1 != 0) && ( !(_x_s25_l0 != 0))))))))) && ((((s25_evt1 != 0) && ( !(s25_evt0 != 0))) && ((20.0 <= s25_x) && (120.0 <= s25_z))) || ( !(((delta == 0.0) && ( !(( !(s25_evt0 != 0)) && ( !(s25_evt1 != 0))))) && ((( !(s25_l2 != 0)) && ((s25_l0 != 0) && ( !(s25_l1 != 0)))) && (( !(_x_s25_l2 != 0)) && ((_x_s25_l0 != 0) && (_x_s25_l1 != 0)))))))) && (((s25_z == _x_s25_z) && ((((s25_evt1 != 0) && ( !(s25_evt0 != 0))) && (( !(_x_s25_l2 != 0)) && ((_x_s25_l0 != 0) && (_x_s25_l1 != 0)))) && ((s25_x == _x_s25_x) && (s25_y == _x_s25_y)))) || ( !((( !(s25_l2 != 0)) && ((s25_l1 != 0) && ( !(s25_l0 != 0)))) && ((delta == 0.0) && ( !(( !(s25_evt0 != 0)) && ( !(s25_evt1 != 0))))))))) && ((((((s25_evt0 != 0) && (s25_evt1 != 0)) && ((_x_s25_l2 != 0) && (( !(_x_s25_l0 != 0)) && ( !(_x_s25_l1 != 0))))) && ((_x_s25_x == 0.0) && (s25_y == _x_s25_y))) && (_x_s25_z == 0.0)) || ( !((( !(s25_l2 != 0)) && ((s25_l0 != 0) && (s25_l1 != 0))) && ((delta == 0.0) && ( !(( !(s25_evt0 != 0)) && ( !(s25_evt1 != 0))))))))) && ((((s25_x == _x_s25_x) && (s25_y == _x_s25_y)) && ((s25_z == _x_s25_z) && ((( !(_x_s25_l2 != 0)) && (( !(_x_s25_l0 != 0)) && ( !(_x_s25_l1 != 0)))) || ((_x_s25_l2 != 0) && ((_x_s25_l0 != 0) && ( !(_x_s25_l1 != 0))))))) || ( !(((s25_l2 != 0) && (( !(s25_l0 != 0)) && ( !(s25_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s25_evt0 != 0)) && ( !(s25_evt1 != 0))))))))) && ((((s25_evt0 != 0) && ( !(s25_evt1 != 0))) && ((20.0 <= s25_x) && ( !(120.0 <= s25_y)))) || ( !(((delta == 0.0) && ( !(( !(s25_evt0 != 0)) && ( !(s25_evt1 != 0))))) && (((s25_l2 != 0) && (( !(s25_l0 != 0)) && ( !(s25_l1 != 0)))) && ((_x_s25_l2 != 0) && ((_x_s25_l0 != 0) && ( !(_x_s25_l1 != 0))))))))) && ((((s25_evt1 != 0) && ( !(s25_evt0 != 0))) && ((20.0 <= s25_x) && (120.0 <= s25_y))) || ( !(((delta == 0.0) && ( !(( !(s25_evt0 != 0)) && ( !(s25_evt1 != 0))))) && ((( !(_x_s25_l2 != 0)) && (( !(_x_s25_l0 != 0)) && ( !(_x_s25_l1 != 0)))) && ((s25_l2 != 0) && (( !(s25_l0 != 0)) && ( !(s25_l1 != 0))))))))) && (((s25_z == _x_s25_z) && (((s25_x == _x_s25_x) && (s25_y == _x_s25_y)) && (((s25_evt1 != 0) && ( !(s25_evt0 != 0))) && (( !(_x_s25_l2 != 0)) && (( !(_x_s25_l0 != 0)) && ( !(_x_s25_l1 != 0))))))) || ( !(((s25_l2 != 0) && ((s25_l0 != 0) && ( !(s25_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s25_evt0 != 0)) && ( !(s25_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_s24_evt0 != 0)) && ( !(_x_s24_evt1 != 0))) || ((_x_s24_evt0 != 0) && ( !(_x_s24_evt1 != 0)))) || (((_x_s24_evt1 != 0) && ( !(_x_s24_evt0 != 0))) || ((_x_s24_evt0 != 0) && (_x_s24_evt1 != 0)))) && ((((( !(_x_s24_l2 != 0)) && (( !(_x_s24_l0 != 0)) && ( !(_x_s24_l1 != 0)))) || (( !(_x_s24_l2 != 0)) && ((_x_s24_l0 != 0) && ( !(_x_s24_l1 != 0))))) || ((( !(_x_s24_l2 != 0)) && ((_x_s24_l1 != 0) && ( !(_x_s24_l0 != 0)))) || (( !(_x_s24_l2 != 0)) && ((_x_s24_l0 != 0) && (_x_s24_l1 != 0))))) || (((_x_s24_l2 != 0) && (( !(_x_s24_l0 != 0)) && ( !(_x_s24_l1 != 0)))) || ((_x_s24_l2 != 0) && ((_x_s24_l0 != 0) && ( !(_x_s24_l1 != 0))))))) && ((_x_s24_x <= 20.0) || ( !(( !(_x_s24_l2 != 0)) && ((_x_s24_l0 != 0) && ( !(_x_s24_l1 != 0))))))) && ((_x_s24_x <= 120.0) || ( !(( !(_x_s24_l2 != 0)) && ((_x_s24_l1 != 0) && ( !(_x_s24_l0 != 0))))))) && ((_x_s24_x <= 120.0) || ( !((_x_s24_l2 != 0) && ((_x_s24_l0 != 0) && ( !(_x_s24_l1 != 0))))))) && ((delta <= 0.0) || ((((delta + (s24_x + (-1.0 * _x_s24_x))) == 0.0) && ((delta + (s24_y + (-1.0 * _x_s24_y))) == 0.0)) && (((((s24_l0 != 0) == (_x_s24_l0 != 0)) && ((s24_l1 != 0) == (_x_s24_l1 != 0))) && ((s24_l2 != 0) == (_x_s24_l2 != 0))) && ((delta + (s24_z + (-1.0 * _x_s24_z))) == 0.0))))) && (((((((s24_l0 != 0) == (_x_s24_l0 != 0)) && ((s24_l1 != 0) == (_x_s24_l1 != 0))) && ((s24_l2 != 0) == (_x_s24_l2 != 0))) && ((delta + (s24_x + (-1.0 * _x_s24_x))) == 0.0)) && (((delta + (s24_y + (-1.0 * _x_s24_y))) == 0.0) && ((delta + (s24_z + (-1.0 * _x_s24_z))) == 0.0))) || ( !(( !(s24_evt0 != 0)) && ( !(s24_evt1 != 0)))))) && ((((((s24_evt0 != 0) && (s24_evt1 != 0)) && (( !(_x_s24_l2 != 0)) && ((_x_s24_l0 != 0) && ( !(_x_s24_l1 != 0))))) && ((_x_s24_x == 0.0) && (_x_s24_y == 0.0))) && (s24_z == _x_s24_z)) || ( !((( !(s24_l2 != 0)) && (( !(s24_l0 != 0)) && ( !(s24_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s24_evt0 != 0)) && ( !(s24_evt1 != 0))))))))) && (((((( !(_x_s24_l2 != 0)) && ((_x_s24_l1 != 0) && ( !(_x_s24_l0 != 0)))) || (( !(_x_s24_l2 != 0)) && ((_x_s24_l0 != 0) && (_x_s24_l1 != 0)))) && (s24_x == _x_s24_x)) && ((s24_z == _x_s24_z) && (s24_y == _x_s24_y))) || ( !((( !(s24_l2 != 0)) && ((s24_l0 != 0) && ( !(s24_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s24_evt0 != 0)) && ( !(s24_evt1 != 0))))))))) && ((((s24_evt0 != 0) && ( !(s24_evt1 != 0))) && ((20.0 <= s24_x) && ( !(120.0 <= s24_z)))) || ( !(((delta == 0.0) && ( !(( !(s24_evt0 != 0)) && ( !(s24_evt1 != 0))))) && ((( !(s24_l2 != 0)) && ((s24_l0 != 0) && ( !(s24_l1 != 0)))) && (( !(_x_s24_l2 != 0)) && ((_x_s24_l1 != 0) && ( !(_x_s24_l0 != 0))))))))) && ((((s24_evt1 != 0) && ( !(s24_evt0 != 0))) && ((20.0 <= s24_x) && (120.0 <= s24_z))) || ( !(((delta == 0.0) && ( !(( !(s24_evt0 != 0)) && ( !(s24_evt1 != 0))))) && ((( !(s24_l2 != 0)) && ((s24_l0 != 0) && ( !(s24_l1 != 0)))) && (( !(_x_s24_l2 != 0)) && ((_x_s24_l0 != 0) && (_x_s24_l1 != 0)))))))) && (((s24_z == _x_s24_z) && ((((s24_evt1 != 0) && ( !(s24_evt0 != 0))) && (( !(_x_s24_l2 != 0)) && ((_x_s24_l0 != 0) && (_x_s24_l1 != 0)))) && ((s24_x == _x_s24_x) && (s24_y == _x_s24_y)))) || ( !((( !(s24_l2 != 0)) && ((s24_l1 != 0) && ( !(s24_l0 != 0)))) && ((delta == 0.0) && ( !(( !(s24_evt0 != 0)) && ( !(s24_evt1 != 0))))))))) && ((((((s24_evt0 != 0) && (s24_evt1 != 0)) && ((_x_s24_l2 != 0) && (( !(_x_s24_l0 != 0)) && ( !(_x_s24_l1 != 0))))) && ((_x_s24_x == 0.0) && (s24_y == _x_s24_y))) && (_x_s24_z == 0.0)) || ( !((( !(s24_l2 != 0)) && ((s24_l0 != 0) && (s24_l1 != 0))) && ((delta == 0.0) && ( !(( !(s24_evt0 != 0)) && ( !(s24_evt1 != 0))))))))) && ((((s24_x == _x_s24_x) && (s24_y == _x_s24_y)) && ((s24_z == _x_s24_z) && ((( !(_x_s24_l2 != 0)) && (( !(_x_s24_l0 != 0)) && ( !(_x_s24_l1 != 0)))) || ((_x_s24_l2 != 0) && ((_x_s24_l0 != 0) && ( !(_x_s24_l1 != 0))))))) || ( !(((s24_l2 != 0) && (( !(s24_l0 != 0)) && ( !(s24_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s24_evt0 != 0)) && ( !(s24_evt1 != 0))))))))) && ((((s24_evt0 != 0) && ( !(s24_evt1 != 0))) && ((20.0 <= s24_x) && ( !(120.0 <= s24_y)))) || ( !(((delta == 0.0) && ( !(( !(s24_evt0 != 0)) && ( !(s24_evt1 != 0))))) && (((s24_l2 != 0) && (( !(s24_l0 != 0)) && ( !(s24_l1 != 0)))) && ((_x_s24_l2 != 0) && ((_x_s24_l0 != 0) && ( !(_x_s24_l1 != 0))))))))) && ((((s24_evt1 != 0) && ( !(s24_evt0 != 0))) && ((20.0 <= s24_x) && (120.0 <= s24_y))) || ( !(((delta == 0.0) && ( !(( !(s24_evt0 != 0)) && ( !(s24_evt1 != 0))))) && ((( !(_x_s24_l2 != 0)) && (( !(_x_s24_l0 != 0)) && ( !(_x_s24_l1 != 0)))) && ((s24_l2 != 0) && (( !(s24_l0 != 0)) && ( !(s24_l1 != 0))))))))) && (((s24_z == _x_s24_z) && (((s24_x == _x_s24_x) && (s24_y == _x_s24_y)) && (((s24_evt1 != 0) && ( !(s24_evt0 != 0))) && (( !(_x_s24_l2 != 0)) && (( !(_x_s24_l0 != 0)) && ( !(_x_s24_l1 != 0))))))) || ( !(((s24_l2 != 0) && ((s24_l0 != 0) && ( !(s24_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s24_evt0 != 0)) && ( !(s24_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_s23_evt0 != 0)) && ( !(_x_s23_evt1 != 0))) || ((_x_s23_evt0 != 0) && ( !(_x_s23_evt1 != 0)))) || (((_x_s23_evt1 != 0) && ( !(_x_s23_evt0 != 0))) || ((_x_s23_evt0 != 0) && (_x_s23_evt1 != 0)))) && ((((( !(_x_s23_l2 != 0)) && (( !(_x_s23_l0 != 0)) && ( !(_x_s23_l1 != 0)))) || (( !(_x_s23_l2 != 0)) && ((_x_s23_l0 != 0) && ( !(_x_s23_l1 != 0))))) || ((( !(_x_s23_l2 != 0)) && ((_x_s23_l1 != 0) && ( !(_x_s23_l0 != 0)))) || (( !(_x_s23_l2 != 0)) && ((_x_s23_l0 != 0) && (_x_s23_l1 != 0))))) || (((_x_s23_l2 != 0) && (( !(_x_s23_l0 != 0)) && ( !(_x_s23_l1 != 0)))) || ((_x_s23_l2 != 0) && ((_x_s23_l0 != 0) && ( !(_x_s23_l1 != 0))))))) && ((_x_s23_x <= 20.0) || ( !(( !(_x_s23_l2 != 0)) && ((_x_s23_l0 != 0) && ( !(_x_s23_l1 != 0))))))) && ((_x_s23_x <= 120.0) || ( !(( !(_x_s23_l2 != 0)) && ((_x_s23_l1 != 0) && ( !(_x_s23_l0 != 0))))))) && ((_x_s23_x <= 120.0) || ( !((_x_s23_l2 != 0) && ((_x_s23_l0 != 0) && ( !(_x_s23_l1 != 0))))))) && ((delta <= 0.0) || ((((delta + (s23_x + (-1.0 * _x_s23_x))) == 0.0) && ((delta + (s23_y + (-1.0 * _x_s23_y))) == 0.0)) && (((((s23_l0 != 0) == (_x_s23_l0 != 0)) && ((s23_l1 != 0) == (_x_s23_l1 != 0))) && ((s23_l2 != 0) == (_x_s23_l2 != 0))) && ((delta + (s23_z + (-1.0 * _x_s23_z))) == 0.0))))) && (((((((s23_l0 != 0) == (_x_s23_l0 != 0)) && ((s23_l1 != 0) == (_x_s23_l1 != 0))) && ((s23_l2 != 0) == (_x_s23_l2 != 0))) && ((delta + (s23_x + (-1.0 * _x_s23_x))) == 0.0)) && (((delta + (s23_y + (-1.0 * _x_s23_y))) == 0.0) && ((delta + (s23_z + (-1.0 * _x_s23_z))) == 0.0))) || ( !(( !(s23_evt0 != 0)) && ( !(s23_evt1 != 0)))))) && ((((((s23_evt0 != 0) && (s23_evt1 != 0)) && (( !(_x_s23_l2 != 0)) && ((_x_s23_l0 != 0) && ( !(_x_s23_l1 != 0))))) && ((_x_s23_x == 0.0) && (_x_s23_y == 0.0))) && (s23_z == _x_s23_z)) || ( !((( !(s23_l2 != 0)) && (( !(s23_l0 != 0)) && ( !(s23_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s23_evt0 != 0)) && ( !(s23_evt1 != 0))))))))) && (((((( !(_x_s23_l2 != 0)) && ((_x_s23_l1 != 0) && ( !(_x_s23_l0 != 0)))) || (( !(_x_s23_l2 != 0)) && ((_x_s23_l0 != 0) && (_x_s23_l1 != 0)))) && (s23_x == _x_s23_x)) && ((s23_z == _x_s23_z) && (s23_y == _x_s23_y))) || ( !((( !(s23_l2 != 0)) && ((s23_l0 != 0) && ( !(s23_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s23_evt0 != 0)) && ( !(s23_evt1 != 0))))))))) && ((((s23_evt0 != 0) && ( !(s23_evt1 != 0))) && ((20.0 <= s23_x) && ( !(120.0 <= s23_z)))) || ( !(((delta == 0.0) && ( !(( !(s23_evt0 != 0)) && ( !(s23_evt1 != 0))))) && ((( !(s23_l2 != 0)) && ((s23_l0 != 0) && ( !(s23_l1 != 0)))) && (( !(_x_s23_l2 != 0)) && ((_x_s23_l1 != 0) && ( !(_x_s23_l0 != 0))))))))) && ((((s23_evt1 != 0) && ( !(s23_evt0 != 0))) && ((20.0 <= s23_x) && (120.0 <= s23_z))) || ( !(((delta == 0.0) && ( !(( !(s23_evt0 != 0)) && ( !(s23_evt1 != 0))))) && ((( !(s23_l2 != 0)) && ((s23_l0 != 0) && ( !(s23_l1 != 0)))) && (( !(_x_s23_l2 != 0)) && ((_x_s23_l0 != 0) && (_x_s23_l1 != 0)))))))) && (((s23_z == _x_s23_z) && ((((s23_evt1 != 0) && ( !(s23_evt0 != 0))) && (( !(_x_s23_l2 != 0)) && ((_x_s23_l0 != 0) && (_x_s23_l1 != 0)))) && ((s23_x == _x_s23_x) && (s23_y == _x_s23_y)))) || ( !((( !(s23_l2 != 0)) && ((s23_l1 != 0) && ( !(s23_l0 != 0)))) && ((delta == 0.0) && ( !(( !(s23_evt0 != 0)) && ( !(s23_evt1 != 0))))))))) && ((((((s23_evt0 != 0) && (s23_evt1 != 0)) && ((_x_s23_l2 != 0) && (( !(_x_s23_l0 != 0)) && ( !(_x_s23_l1 != 0))))) && ((_x_s23_x == 0.0) && (s23_y == _x_s23_y))) && (_x_s23_z == 0.0)) || ( !((( !(s23_l2 != 0)) && ((s23_l0 != 0) && (s23_l1 != 0))) && ((delta == 0.0) && ( !(( !(s23_evt0 != 0)) && ( !(s23_evt1 != 0))))))))) && ((((s23_x == _x_s23_x) && (s23_y == _x_s23_y)) && ((s23_z == _x_s23_z) && ((( !(_x_s23_l2 != 0)) && (( !(_x_s23_l0 != 0)) && ( !(_x_s23_l1 != 0)))) || ((_x_s23_l2 != 0) && ((_x_s23_l0 != 0) && ( !(_x_s23_l1 != 0))))))) || ( !(((s23_l2 != 0) && (( !(s23_l0 != 0)) && ( !(s23_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s23_evt0 != 0)) && ( !(s23_evt1 != 0))))))))) && ((((s23_evt0 != 0) && ( !(s23_evt1 != 0))) && ((20.0 <= s23_x) && ( !(120.0 <= s23_y)))) || ( !(((delta == 0.0) && ( !(( !(s23_evt0 != 0)) && ( !(s23_evt1 != 0))))) && (((s23_l2 != 0) && (( !(s23_l0 != 0)) && ( !(s23_l1 != 0)))) && ((_x_s23_l2 != 0) && ((_x_s23_l0 != 0) && ( !(_x_s23_l1 != 0))))))))) && ((((s23_evt1 != 0) && ( !(s23_evt0 != 0))) && ((20.0 <= s23_x) && (120.0 <= s23_y))) || ( !(((delta == 0.0) && ( !(( !(s23_evt0 != 0)) && ( !(s23_evt1 != 0))))) && ((( !(_x_s23_l2 != 0)) && (( !(_x_s23_l0 != 0)) && ( !(_x_s23_l1 != 0)))) && ((s23_l2 != 0) && (( !(s23_l0 != 0)) && ( !(s23_l1 != 0))))))))) && (((s23_z == _x_s23_z) && (((s23_x == _x_s23_x) && (s23_y == _x_s23_y)) && (((s23_evt1 != 0) && ( !(s23_evt0 != 0))) && (( !(_x_s23_l2 != 0)) && (( !(_x_s23_l0 != 0)) && ( !(_x_s23_l1 != 0))))))) || ( !(((s23_l2 != 0) && ((s23_l0 != 0) && ( !(s23_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s23_evt0 != 0)) && ( !(s23_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_s22_evt0 != 0)) && ( !(_x_s22_evt1 != 0))) || ((_x_s22_evt0 != 0) && ( !(_x_s22_evt1 != 0)))) || (((_x_s22_evt1 != 0) && ( !(_x_s22_evt0 != 0))) || ((_x_s22_evt0 != 0) && (_x_s22_evt1 != 0)))) && ((((( !(_x_s22_l2 != 0)) && (( !(_x_s22_l0 != 0)) && ( !(_x_s22_l1 != 0)))) || (( !(_x_s22_l2 != 0)) && ((_x_s22_l0 != 0) && ( !(_x_s22_l1 != 0))))) || ((( !(_x_s22_l2 != 0)) && ((_x_s22_l1 != 0) && ( !(_x_s22_l0 != 0)))) || (( !(_x_s22_l2 != 0)) && ((_x_s22_l0 != 0) && (_x_s22_l1 != 0))))) || (((_x_s22_l2 != 0) && (( !(_x_s22_l0 != 0)) && ( !(_x_s22_l1 != 0)))) || ((_x_s22_l2 != 0) && ((_x_s22_l0 != 0) && ( !(_x_s22_l1 != 0))))))) && ((_x_s22_x <= 20.0) || ( !(( !(_x_s22_l2 != 0)) && ((_x_s22_l0 != 0) && ( !(_x_s22_l1 != 0))))))) && ((_x_s22_x <= 120.0) || ( !(( !(_x_s22_l2 != 0)) && ((_x_s22_l1 != 0) && ( !(_x_s22_l0 != 0))))))) && ((_x_s22_x <= 120.0) || ( !((_x_s22_l2 != 0) && ((_x_s22_l0 != 0) && ( !(_x_s22_l1 != 0))))))) && ((delta <= 0.0) || ((((delta + (s22_x + (-1.0 * _x_s22_x))) == 0.0) && ((delta + (s22_y + (-1.0 * _x_s22_y))) == 0.0)) && (((((s22_l0 != 0) == (_x_s22_l0 != 0)) && ((s22_l1 != 0) == (_x_s22_l1 != 0))) && ((s22_l2 != 0) == (_x_s22_l2 != 0))) && ((delta + (s22_z + (-1.0 * _x_s22_z))) == 0.0))))) && (((((((s22_l0 != 0) == (_x_s22_l0 != 0)) && ((s22_l1 != 0) == (_x_s22_l1 != 0))) && ((s22_l2 != 0) == (_x_s22_l2 != 0))) && ((delta + (s22_x + (-1.0 * _x_s22_x))) == 0.0)) && (((delta + (s22_y + (-1.0 * _x_s22_y))) == 0.0) && ((delta + (s22_z + (-1.0 * _x_s22_z))) == 0.0))) || ( !(( !(s22_evt0 != 0)) && ( !(s22_evt1 != 0)))))) && ((((((s22_evt0 != 0) && (s22_evt1 != 0)) && (( !(_x_s22_l2 != 0)) && ((_x_s22_l0 != 0) && ( !(_x_s22_l1 != 0))))) && ((_x_s22_x == 0.0) && (_x_s22_y == 0.0))) && (s22_z == _x_s22_z)) || ( !((( !(s22_l2 != 0)) && (( !(s22_l0 != 0)) && ( !(s22_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s22_evt0 != 0)) && ( !(s22_evt1 != 0))))))))) && (((((( !(_x_s22_l2 != 0)) && ((_x_s22_l1 != 0) && ( !(_x_s22_l0 != 0)))) || (( !(_x_s22_l2 != 0)) && ((_x_s22_l0 != 0) && (_x_s22_l1 != 0)))) && (s22_x == _x_s22_x)) && ((s22_z == _x_s22_z) && (s22_y == _x_s22_y))) || ( !((( !(s22_l2 != 0)) && ((s22_l0 != 0) && ( !(s22_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s22_evt0 != 0)) && ( !(s22_evt1 != 0))))))))) && ((((s22_evt0 != 0) && ( !(s22_evt1 != 0))) && ((20.0 <= s22_x) && ( !(120.0 <= s22_z)))) || ( !(((delta == 0.0) && ( !(( !(s22_evt0 != 0)) && ( !(s22_evt1 != 0))))) && ((( !(s22_l2 != 0)) && ((s22_l0 != 0) && ( !(s22_l1 != 0)))) && (( !(_x_s22_l2 != 0)) && ((_x_s22_l1 != 0) && ( !(_x_s22_l0 != 0))))))))) && ((((s22_evt1 != 0) && ( !(s22_evt0 != 0))) && ((20.0 <= s22_x) && (120.0 <= s22_z))) || ( !(((delta == 0.0) && ( !(( !(s22_evt0 != 0)) && ( !(s22_evt1 != 0))))) && ((( !(s22_l2 != 0)) && ((s22_l0 != 0) && ( !(s22_l1 != 0)))) && (( !(_x_s22_l2 != 0)) && ((_x_s22_l0 != 0) && (_x_s22_l1 != 0)))))))) && (((s22_z == _x_s22_z) && ((((s22_evt1 != 0) && ( !(s22_evt0 != 0))) && (( !(_x_s22_l2 != 0)) && ((_x_s22_l0 != 0) && (_x_s22_l1 != 0)))) && ((s22_x == _x_s22_x) && (s22_y == _x_s22_y)))) || ( !((( !(s22_l2 != 0)) && ((s22_l1 != 0) && ( !(s22_l0 != 0)))) && ((delta == 0.0) && ( !(( !(s22_evt0 != 0)) && ( !(s22_evt1 != 0))))))))) && ((((((s22_evt0 != 0) && (s22_evt1 != 0)) && ((_x_s22_l2 != 0) && (( !(_x_s22_l0 != 0)) && ( !(_x_s22_l1 != 0))))) && ((_x_s22_x == 0.0) && (s22_y == _x_s22_y))) && (_x_s22_z == 0.0)) || ( !((( !(s22_l2 != 0)) && ((s22_l0 != 0) && (s22_l1 != 0))) && ((delta == 0.0) && ( !(( !(s22_evt0 != 0)) && ( !(s22_evt1 != 0))))))))) && ((((s22_x == _x_s22_x) && (s22_y == _x_s22_y)) && ((s22_z == _x_s22_z) && ((( !(_x_s22_l2 != 0)) && (( !(_x_s22_l0 != 0)) && ( !(_x_s22_l1 != 0)))) || ((_x_s22_l2 != 0) && ((_x_s22_l0 != 0) && ( !(_x_s22_l1 != 0))))))) || ( !(((s22_l2 != 0) && (( !(s22_l0 != 0)) && ( !(s22_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s22_evt0 != 0)) && ( !(s22_evt1 != 0))))))))) && ((((s22_evt0 != 0) && ( !(s22_evt1 != 0))) && ((20.0 <= s22_x) && ( !(120.0 <= s22_y)))) || ( !(((delta == 0.0) && ( !(( !(s22_evt0 != 0)) && ( !(s22_evt1 != 0))))) && (((s22_l2 != 0) && (( !(s22_l0 != 0)) && ( !(s22_l1 != 0)))) && ((_x_s22_l2 != 0) && ((_x_s22_l0 != 0) && ( !(_x_s22_l1 != 0))))))))) && ((((s22_evt1 != 0) && ( !(s22_evt0 != 0))) && ((20.0 <= s22_x) && (120.0 <= s22_y))) || ( !(((delta == 0.0) && ( !(( !(s22_evt0 != 0)) && ( !(s22_evt1 != 0))))) && ((( !(_x_s22_l2 != 0)) && (( !(_x_s22_l0 != 0)) && ( !(_x_s22_l1 != 0)))) && ((s22_l2 != 0) && (( !(s22_l0 != 0)) && ( !(s22_l1 != 0))))))))) && (((s22_z == _x_s22_z) && (((s22_x == _x_s22_x) && (s22_y == _x_s22_y)) && (((s22_evt1 != 0) && ( !(s22_evt0 != 0))) && (( !(_x_s22_l2 != 0)) && (( !(_x_s22_l0 != 0)) && ( !(_x_s22_l1 != 0))))))) || ( !(((s22_l2 != 0) && ((s22_l0 != 0) && ( !(s22_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s22_evt0 != 0)) && ( !(s22_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_s21_evt0 != 0)) && ( !(_x_s21_evt1 != 0))) || ((_x_s21_evt0 != 0) && ( !(_x_s21_evt1 != 0)))) || (((_x_s21_evt1 != 0) && ( !(_x_s21_evt0 != 0))) || ((_x_s21_evt0 != 0) && (_x_s21_evt1 != 0)))) && ((((( !(_x_s21_l2 != 0)) && (( !(_x_s21_l0 != 0)) && ( !(_x_s21_l1 != 0)))) || (( !(_x_s21_l2 != 0)) && ((_x_s21_l0 != 0) && ( !(_x_s21_l1 != 0))))) || ((( !(_x_s21_l2 != 0)) && ((_x_s21_l1 != 0) && ( !(_x_s21_l0 != 0)))) || (( !(_x_s21_l2 != 0)) && ((_x_s21_l0 != 0) && (_x_s21_l1 != 0))))) || (((_x_s21_l2 != 0) && (( !(_x_s21_l0 != 0)) && ( !(_x_s21_l1 != 0)))) || ((_x_s21_l2 != 0) && ((_x_s21_l0 != 0) && ( !(_x_s21_l1 != 0))))))) && ((_x_s21_x <= 20.0) || ( !(( !(_x_s21_l2 != 0)) && ((_x_s21_l0 != 0) && ( !(_x_s21_l1 != 0))))))) && ((_x_s21_x <= 120.0) || ( !(( !(_x_s21_l2 != 0)) && ((_x_s21_l1 != 0) && ( !(_x_s21_l0 != 0))))))) && ((_x_s21_x <= 120.0) || ( !((_x_s21_l2 != 0) && ((_x_s21_l0 != 0) && ( !(_x_s21_l1 != 0))))))) && ((delta <= 0.0) || ((((delta + (s21_x + (-1.0 * _x_s21_x))) == 0.0) && ((delta + (s21_y + (-1.0 * _x_s21_y))) == 0.0)) && (((((s21_l0 != 0) == (_x_s21_l0 != 0)) && ((s21_l1 != 0) == (_x_s21_l1 != 0))) && ((s21_l2 != 0) == (_x_s21_l2 != 0))) && ((delta + (s21_z + (-1.0 * _x_s21_z))) == 0.0))))) && (((((((s21_l0 != 0) == (_x_s21_l0 != 0)) && ((s21_l1 != 0) == (_x_s21_l1 != 0))) && ((s21_l2 != 0) == (_x_s21_l2 != 0))) && ((delta + (s21_x + (-1.0 * _x_s21_x))) == 0.0)) && (((delta + (s21_y + (-1.0 * _x_s21_y))) == 0.0) && ((delta + (s21_z + (-1.0 * _x_s21_z))) == 0.0))) || ( !(( !(s21_evt0 != 0)) && ( !(s21_evt1 != 0)))))) && ((((((s21_evt0 != 0) && (s21_evt1 != 0)) && (( !(_x_s21_l2 != 0)) && ((_x_s21_l0 != 0) && ( !(_x_s21_l1 != 0))))) && ((_x_s21_x == 0.0) && (_x_s21_y == 0.0))) && (s21_z == _x_s21_z)) || ( !((( !(s21_l2 != 0)) && (( !(s21_l0 != 0)) && ( !(s21_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s21_evt0 != 0)) && ( !(s21_evt1 != 0))))))))) && (((((( !(_x_s21_l2 != 0)) && ((_x_s21_l1 != 0) && ( !(_x_s21_l0 != 0)))) || (( !(_x_s21_l2 != 0)) && ((_x_s21_l0 != 0) && (_x_s21_l1 != 0)))) && (s21_x == _x_s21_x)) && ((s21_z == _x_s21_z) && (s21_y == _x_s21_y))) || ( !((( !(s21_l2 != 0)) && ((s21_l0 != 0) && ( !(s21_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s21_evt0 != 0)) && ( !(s21_evt1 != 0))))))))) && ((((s21_evt0 != 0) && ( !(s21_evt1 != 0))) && ((20.0 <= s21_x) && ( !(120.0 <= s21_z)))) || ( !(((delta == 0.0) && ( !(( !(s21_evt0 != 0)) && ( !(s21_evt1 != 0))))) && ((( !(s21_l2 != 0)) && ((s21_l0 != 0) && ( !(s21_l1 != 0)))) && (( !(_x_s21_l2 != 0)) && ((_x_s21_l1 != 0) && ( !(_x_s21_l0 != 0))))))))) && ((((s21_evt1 != 0) && ( !(s21_evt0 != 0))) && ((20.0 <= s21_x) && (120.0 <= s21_z))) || ( !(((delta == 0.0) && ( !(( !(s21_evt0 != 0)) && ( !(s21_evt1 != 0))))) && ((( !(s21_l2 != 0)) && ((s21_l0 != 0) && ( !(s21_l1 != 0)))) && (( !(_x_s21_l2 != 0)) && ((_x_s21_l0 != 0) && (_x_s21_l1 != 0)))))))) && (((s21_z == _x_s21_z) && ((((s21_evt1 != 0) && ( !(s21_evt0 != 0))) && (( !(_x_s21_l2 != 0)) && ((_x_s21_l0 != 0) && (_x_s21_l1 != 0)))) && ((s21_x == _x_s21_x) && (s21_y == _x_s21_y)))) || ( !((( !(s21_l2 != 0)) && ((s21_l1 != 0) && ( !(s21_l0 != 0)))) && ((delta == 0.0) && ( !(( !(s21_evt0 != 0)) && ( !(s21_evt1 != 0))))))))) && ((((((s21_evt0 != 0) && (s21_evt1 != 0)) && ((_x_s21_l2 != 0) && (( !(_x_s21_l0 != 0)) && ( !(_x_s21_l1 != 0))))) && ((_x_s21_x == 0.0) && (s21_y == _x_s21_y))) && (_x_s21_z == 0.0)) || ( !((( !(s21_l2 != 0)) && ((s21_l0 != 0) && (s21_l1 != 0))) && ((delta == 0.0) && ( !(( !(s21_evt0 != 0)) && ( !(s21_evt1 != 0))))))))) && ((((s21_x == _x_s21_x) && (s21_y == _x_s21_y)) && ((s21_z == _x_s21_z) && ((( !(_x_s21_l2 != 0)) && (( !(_x_s21_l0 != 0)) && ( !(_x_s21_l1 != 0)))) || ((_x_s21_l2 != 0) && ((_x_s21_l0 != 0) && ( !(_x_s21_l1 != 0))))))) || ( !(((s21_l2 != 0) && (( !(s21_l0 != 0)) && ( !(s21_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s21_evt0 != 0)) && ( !(s21_evt1 != 0))))))))) && ((((s21_evt0 != 0) && ( !(s21_evt1 != 0))) && ((20.0 <= s21_x) && ( !(120.0 <= s21_y)))) || ( !(((delta == 0.0) && ( !(( !(s21_evt0 != 0)) && ( !(s21_evt1 != 0))))) && (((s21_l2 != 0) && (( !(s21_l0 != 0)) && ( !(s21_l1 != 0)))) && ((_x_s21_l2 != 0) && ((_x_s21_l0 != 0) && ( !(_x_s21_l1 != 0))))))))) && ((((s21_evt1 != 0) && ( !(s21_evt0 != 0))) && ((20.0 <= s21_x) && (120.0 <= s21_y))) || ( !(((delta == 0.0) && ( !(( !(s21_evt0 != 0)) && ( !(s21_evt1 != 0))))) && ((( !(_x_s21_l2 != 0)) && (( !(_x_s21_l0 != 0)) && ( !(_x_s21_l1 != 0)))) && ((s21_l2 != 0) && (( !(s21_l0 != 0)) && ( !(s21_l1 != 0))))))))) && (((s21_z == _x_s21_z) && (((s21_x == _x_s21_x) && (s21_y == _x_s21_y)) && (((s21_evt1 != 0) && ( !(s21_evt0 != 0))) && (( !(_x_s21_l2 != 0)) && (( !(_x_s21_l0 != 0)) && ( !(_x_s21_l1 != 0))))))) || ( !(((s21_l2 != 0) && ((s21_l0 != 0) && ( !(s21_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s21_evt0 != 0)) && ( !(s21_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_s20_evt0 != 0)) && ( !(_x_s20_evt1 != 0))) || ((_x_s20_evt0 != 0) && ( !(_x_s20_evt1 != 0)))) || (((_x_s20_evt1 != 0) && ( !(_x_s20_evt0 != 0))) || ((_x_s20_evt0 != 0) && (_x_s20_evt1 != 0)))) && ((((( !(_x_s20_l2 != 0)) && (( !(_x_s20_l0 != 0)) && ( !(_x_s20_l1 != 0)))) || (( !(_x_s20_l2 != 0)) && ((_x_s20_l0 != 0) && ( !(_x_s20_l1 != 0))))) || ((( !(_x_s20_l2 != 0)) && ((_x_s20_l1 != 0) && ( !(_x_s20_l0 != 0)))) || (( !(_x_s20_l2 != 0)) && ((_x_s20_l0 != 0) && (_x_s20_l1 != 0))))) || (((_x_s20_l2 != 0) && (( !(_x_s20_l0 != 0)) && ( !(_x_s20_l1 != 0)))) || ((_x_s20_l2 != 0) && ((_x_s20_l0 != 0) && ( !(_x_s20_l1 != 0))))))) && ((_x_s20_x <= 20.0) || ( !(( !(_x_s20_l2 != 0)) && ((_x_s20_l0 != 0) && ( !(_x_s20_l1 != 0))))))) && ((_x_s20_x <= 120.0) || ( !(( !(_x_s20_l2 != 0)) && ((_x_s20_l1 != 0) && ( !(_x_s20_l0 != 0))))))) && ((_x_s20_x <= 120.0) || ( !((_x_s20_l2 != 0) && ((_x_s20_l0 != 0) && ( !(_x_s20_l1 != 0))))))) && ((delta <= 0.0) || ((((delta + (s20_x + (-1.0 * _x_s20_x))) == 0.0) && ((delta + (s20_y + (-1.0 * _x_s20_y))) == 0.0)) && (((((s20_l0 != 0) == (_x_s20_l0 != 0)) && ((s20_l1 != 0) == (_x_s20_l1 != 0))) && ((s20_l2 != 0) == (_x_s20_l2 != 0))) && ((delta + (s20_z + (-1.0 * _x_s20_z))) == 0.0))))) && (((((((s20_l0 != 0) == (_x_s20_l0 != 0)) && ((s20_l1 != 0) == (_x_s20_l1 != 0))) && ((s20_l2 != 0) == (_x_s20_l2 != 0))) && ((delta + (s20_x + (-1.0 * _x_s20_x))) == 0.0)) && (((delta + (s20_y + (-1.0 * _x_s20_y))) == 0.0) && ((delta + (s20_z + (-1.0 * _x_s20_z))) == 0.0))) || ( !(( !(s20_evt0 != 0)) && ( !(s20_evt1 != 0)))))) && ((((((s20_evt0 != 0) && (s20_evt1 != 0)) && (( !(_x_s20_l2 != 0)) && ((_x_s20_l0 != 0) && ( !(_x_s20_l1 != 0))))) && ((_x_s20_x == 0.0) && (_x_s20_y == 0.0))) && (s20_z == _x_s20_z)) || ( !((( !(s20_l2 != 0)) && (( !(s20_l0 != 0)) && ( !(s20_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s20_evt0 != 0)) && ( !(s20_evt1 != 0))))))))) && (((((( !(_x_s20_l2 != 0)) && ((_x_s20_l1 != 0) && ( !(_x_s20_l0 != 0)))) || (( !(_x_s20_l2 != 0)) && ((_x_s20_l0 != 0) && (_x_s20_l1 != 0)))) && (s20_x == _x_s20_x)) && ((s20_z == _x_s20_z) && (s20_y == _x_s20_y))) || ( !((( !(s20_l2 != 0)) && ((s20_l0 != 0) && ( !(s20_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s20_evt0 != 0)) && ( !(s20_evt1 != 0))))))))) && ((((s20_evt0 != 0) && ( !(s20_evt1 != 0))) && ((20.0 <= s20_x) && ( !(120.0 <= s20_z)))) || ( !(((delta == 0.0) && ( !(( !(s20_evt0 != 0)) && ( !(s20_evt1 != 0))))) && ((( !(s20_l2 != 0)) && ((s20_l0 != 0) && ( !(s20_l1 != 0)))) && (( !(_x_s20_l2 != 0)) && ((_x_s20_l1 != 0) && ( !(_x_s20_l0 != 0))))))))) && ((((s20_evt1 != 0) && ( !(s20_evt0 != 0))) && ((20.0 <= s20_x) && (120.0 <= s20_z))) || ( !(((delta == 0.0) && ( !(( !(s20_evt0 != 0)) && ( !(s20_evt1 != 0))))) && ((( !(s20_l2 != 0)) && ((s20_l0 != 0) && ( !(s20_l1 != 0)))) && (( !(_x_s20_l2 != 0)) && ((_x_s20_l0 != 0) && (_x_s20_l1 != 0)))))))) && (((s20_z == _x_s20_z) && ((((s20_evt1 != 0) && ( !(s20_evt0 != 0))) && (( !(_x_s20_l2 != 0)) && ((_x_s20_l0 != 0) && (_x_s20_l1 != 0)))) && ((s20_x == _x_s20_x) && (s20_y == _x_s20_y)))) || ( !((( !(s20_l2 != 0)) && ((s20_l1 != 0) && ( !(s20_l0 != 0)))) && ((delta == 0.0) && ( !(( !(s20_evt0 != 0)) && ( !(s20_evt1 != 0))))))))) && ((((((s20_evt0 != 0) && (s20_evt1 != 0)) && ((_x_s20_l2 != 0) && (( !(_x_s20_l0 != 0)) && ( !(_x_s20_l1 != 0))))) && ((_x_s20_x == 0.0) && (s20_y == _x_s20_y))) && (_x_s20_z == 0.0)) || ( !((( !(s20_l2 != 0)) && ((s20_l0 != 0) && (s20_l1 != 0))) && ((delta == 0.0) && ( !(( !(s20_evt0 != 0)) && ( !(s20_evt1 != 0))))))))) && ((((s20_x == _x_s20_x) && (s20_y == _x_s20_y)) && ((s20_z == _x_s20_z) && ((( !(_x_s20_l2 != 0)) && (( !(_x_s20_l0 != 0)) && ( !(_x_s20_l1 != 0)))) || ((_x_s20_l2 != 0) && ((_x_s20_l0 != 0) && ( !(_x_s20_l1 != 0))))))) || ( !(((s20_l2 != 0) && (( !(s20_l0 != 0)) && ( !(s20_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s20_evt0 != 0)) && ( !(s20_evt1 != 0))))))))) && ((((s20_evt0 != 0) && ( !(s20_evt1 != 0))) && ((20.0 <= s20_x) && ( !(120.0 <= s20_y)))) || ( !(((delta == 0.0) && ( !(( !(s20_evt0 != 0)) && ( !(s20_evt1 != 0))))) && (((s20_l2 != 0) && (( !(s20_l0 != 0)) && ( !(s20_l1 != 0)))) && ((_x_s20_l2 != 0) && ((_x_s20_l0 != 0) && ( !(_x_s20_l1 != 0))))))))) && ((((s20_evt1 != 0) && ( !(s20_evt0 != 0))) && ((20.0 <= s20_x) && (120.0 <= s20_y))) || ( !(((delta == 0.0) && ( !(( !(s20_evt0 != 0)) && ( !(s20_evt1 != 0))))) && ((( !(_x_s20_l2 != 0)) && (( !(_x_s20_l0 != 0)) && ( !(_x_s20_l1 != 0)))) && ((s20_l2 != 0) && (( !(s20_l0 != 0)) && ( !(s20_l1 != 0))))))))) && (((s20_z == _x_s20_z) && (((s20_x == _x_s20_x) && (s20_y == _x_s20_y)) && (((s20_evt1 != 0) && ( !(s20_evt0 != 0))) && (( !(_x_s20_l2 != 0)) && (( !(_x_s20_l0 != 0)) && ( !(_x_s20_l1 != 0))))))) || ( !(((s20_l2 != 0) && ((s20_l0 != 0) && ( !(s20_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s20_evt0 != 0)) && ( !(s20_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_s19_evt0 != 0)) && ( !(_x_s19_evt1 != 0))) || ((_x_s19_evt0 != 0) && ( !(_x_s19_evt1 != 0)))) || (((_x_s19_evt1 != 0) && ( !(_x_s19_evt0 != 0))) || ((_x_s19_evt0 != 0) && (_x_s19_evt1 != 0)))) && ((((( !(_x_s19_l2 != 0)) && (( !(_x_s19_l0 != 0)) && ( !(_x_s19_l1 != 0)))) || (( !(_x_s19_l2 != 0)) && ((_x_s19_l0 != 0) && ( !(_x_s19_l1 != 0))))) || ((( !(_x_s19_l2 != 0)) && ((_x_s19_l1 != 0) && ( !(_x_s19_l0 != 0)))) || (( !(_x_s19_l2 != 0)) && ((_x_s19_l0 != 0) && (_x_s19_l1 != 0))))) || (((_x_s19_l2 != 0) && (( !(_x_s19_l0 != 0)) && ( !(_x_s19_l1 != 0)))) || ((_x_s19_l2 != 0) && ((_x_s19_l0 != 0) && ( !(_x_s19_l1 != 0))))))) && ((_x_s19_x <= 20.0) || ( !(( !(_x_s19_l2 != 0)) && ((_x_s19_l0 != 0) && ( !(_x_s19_l1 != 0))))))) && ((_x_s19_x <= 120.0) || ( !(( !(_x_s19_l2 != 0)) && ((_x_s19_l1 != 0) && ( !(_x_s19_l0 != 0))))))) && ((_x_s19_x <= 120.0) || ( !((_x_s19_l2 != 0) && ((_x_s19_l0 != 0) && ( !(_x_s19_l1 != 0))))))) && ((delta <= 0.0) || ((((delta + (s19_x + (-1.0 * _x_s19_x))) == 0.0) && ((delta + (s19_y + (-1.0 * _x_s19_y))) == 0.0)) && (((((s19_l0 != 0) == (_x_s19_l0 != 0)) && ((s19_l1 != 0) == (_x_s19_l1 != 0))) && ((s19_l2 != 0) == (_x_s19_l2 != 0))) && ((delta + (s19_z + (-1.0 * _x_s19_z))) == 0.0))))) && (((((((s19_l0 != 0) == (_x_s19_l0 != 0)) && ((s19_l1 != 0) == (_x_s19_l1 != 0))) && ((s19_l2 != 0) == (_x_s19_l2 != 0))) && ((delta + (s19_x + (-1.0 * _x_s19_x))) == 0.0)) && (((delta + (s19_y + (-1.0 * _x_s19_y))) == 0.0) && ((delta + (s19_z + (-1.0 * _x_s19_z))) == 0.0))) || ( !(( !(s19_evt0 != 0)) && ( !(s19_evt1 != 0)))))) && ((((((s19_evt0 != 0) && (s19_evt1 != 0)) && (( !(_x_s19_l2 != 0)) && ((_x_s19_l0 != 0) && ( !(_x_s19_l1 != 0))))) && ((_x_s19_x == 0.0) && (_x_s19_y == 0.0))) && (s19_z == _x_s19_z)) || ( !((( !(s19_l2 != 0)) && (( !(s19_l0 != 0)) && ( !(s19_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s19_evt0 != 0)) && ( !(s19_evt1 != 0))))))))) && (((((( !(_x_s19_l2 != 0)) && ((_x_s19_l1 != 0) && ( !(_x_s19_l0 != 0)))) || (( !(_x_s19_l2 != 0)) && ((_x_s19_l0 != 0) && (_x_s19_l1 != 0)))) && (s19_x == _x_s19_x)) && ((s19_z == _x_s19_z) && (s19_y == _x_s19_y))) || ( !((( !(s19_l2 != 0)) && ((s19_l0 != 0) && ( !(s19_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s19_evt0 != 0)) && ( !(s19_evt1 != 0))))))))) && ((((s19_evt0 != 0) && ( !(s19_evt1 != 0))) && ((20.0 <= s19_x) && ( !(120.0 <= s19_z)))) || ( !(((delta == 0.0) && ( !(( !(s19_evt0 != 0)) && ( !(s19_evt1 != 0))))) && ((( !(s19_l2 != 0)) && ((s19_l0 != 0) && ( !(s19_l1 != 0)))) && (( !(_x_s19_l2 != 0)) && ((_x_s19_l1 != 0) && ( !(_x_s19_l0 != 0))))))))) && ((((s19_evt1 != 0) && ( !(s19_evt0 != 0))) && ((20.0 <= s19_x) && (120.0 <= s19_z))) || ( !(((delta == 0.0) && ( !(( !(s19_evt0 != 0)) && ( !(s19_evt1 != 0))))) && ((( !(s19_l2 != 0)) && ((s19_l0 != 0) && ( !(s19_l1 != 0)))) && (( !(_x_s19_l2 != 0)) && ((_x_s19_l0 != 0) && (_x_s19_l1 != 0)))))))) && (((s19_z == _x_s19_z) && ((((s19_evt1 != 0) && ( !(s19_evt0 != 0))) && (( !(_x_s19_l2 != 0)) && ((_x_s19_l0 != 0) && (_x_s19_l1 != 0)))) && ((s19_x == _x_s19_x) && (s19_y == _x_s19_y)))) || ( !((( !(s19_l2 != 0)) && ((s19_l1 != 0) && ( !(s19_l0 != 0)))) && ((delta == 0.0) && ( !(( !(s19_evt0 != 0)) && ( !(s19_evt1 != 0))))))))) && ((((((s19_evt0 != 0) && (s19_evt1 != 0)) && ((_x_s19_l2 != 0) && (( !(_x_s19_l0 != 0)) && ( !(_x_s19_l1 != 0))))) && ((_x_s19_x == 0.0) && (s19_y == _x_s19_y))) && (_x_s19_z == 0.0)) || ( !((( !(s19_l2 != 0)) && ((s19_l0 != 0) && (s19_l1 != 0))) && ((delta == 0.0) && ( !(( !(s19_evt0 != 0)) && ( !(s19_evt1 != 0))))))))) && ((((s19_x == _x_s19_x) && (s19_y == _x_s19_y)) && ((s19_z == _x_s19_z) && ((( !(_x_s19_l2 != 0)) && (( !(_x_s19_l0 != 0)) && ( !(_x_s19_l1 != 0)))) || ((_x_s19_l2 != 0) && ((_x_s19_l0 != 0) && ( !(_x_s19_l1 != 0))))))) || ( !(((s19_l2 != 0) && (( !(s19_l0 != 0)) && ( !(s19_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s19_evt0 != 0)) && ( !(s19_evt1 != 0))))))))) && ((((s19_evt0 != 0) && ( !(s19_evt1 != 0))) && ((20.0 <= s19_x) && ( !(120.0 <= s19_y)))) || ( !(((delta == 0.0) && ( !(( !(s19_evt0 != 0)) && ( !(s19_evt1 != 0))))) && (((s19_l2 != 0) && (( !(s19_l0 != 0)) && ( !(s19_l1 != 0)))) && ((_x_s19_l2 != 0) && ((_x_s19_l0 != 0) && ( !(_x_s19_l1 != 0))))))))) && ((((s19_evt1 != 0) && ( !(s19_evt0 != 0))) && ((20.0 <= s19_x) && (120.0 <= s19_y))) || ( !(((delta == 0.0) && ( !(( !(s19_evt0 != 0)) && ( !(s19_evt1 != 0))))) && ((( !(_x_s19_l2 != 0)) && (( !(_x_s19_l0 != 0)) && ( !(_x_s19_l1 != 0)))) && ((s19_l2 != 0) && (( !(s19_l0 != 0)) && ( !(s19_l1 != 0))))))))) && (((s19_z == _x_s19_z) && (((s19_x == _x_s19_x) && (s19_y == _x_s19_y)) && (((s19_evt1 != 0) && ( !(s19_evt0 != 0))) && (( !(_x_s19_l2 != 0)) && (( !(_x_s19_l0 != 0)) && ( !(_x_s19_l1 != 0))))))) || ( !(((s19_l2 != 0) && ((s19_l0 != 0) && ( !(s19_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s19_evt0 != 0)) && ( !(s19_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_s18_evt0 != 0)) && ( !(_x_s18_evt1 != 0))) || ((_x_s18_evt0 != 0) && ( !(_x_s18_evt1 != 0)))) || (((_x_s18_evt1 != 0) && ( !(_x_s18_evt0 != 0))) || ((_x_s18_evt0 != 0) && (_x_s18_evt1 != 0)))) && ((((( !(_x_s18_l2 != 0)) && (( !(_x_s18_l0 != 0)) && ( !(_x_s18_l1 != 0)))) || (( !(_x_s18_l2 != 0)) && ((_x_s18_l0 != 0) && ( !(_x_s18_l1 != 0))))) || ((( !(_x_s18_l2 != 0)) && ((_x_s18_l1 != 0) && ( !(_x_s18_l0 != 0)))) || (( !(_x_s18_l2 != 0)) && ((_x_s18_l0 != 0) && (_x_s18_l1 != 0))))) || (((_x_s18_l2 != 0) && (( !(_x_s18_l0 != 0)) && ( !(_x_s18_l1 != 0)))) || ((_x_s18_l2 != 0) && ((_x_s18_l0 != 0) && ( !(_x_s18_l1 != 0))))))) && ((_x_s18_x <= 20.0) || ( !(( !(_x_s18_l2 != 0)) && ((_x_s18_l0 != 0) && ( !(_x_s18_l1 != 0))))))) && ((_x_s18_x <= 120.0) || ( !(( !(_x_s18_l2 != 0)) && ((_x_s18_l1 != 0) && ( !(_x_s18_l0 != 0))))))) && ((_x_s18_x <= 120.0) || ( !((_x_s18_l2 != 0) && ((_x_s18_l0 != 0) && ( !(_x_s18_l1 != 0))))))) && ((delta <= 0.0) || ((((delta + (s18_x + (-1.0 * _x_s18_x))) == 0.0) && ((delta + (s18_y + (-1.0 * _x_s18_y))) == 0.0)) && (((((s18_l0 != 0) == (_x_s18_l0 != 0)) && ((s18_l1 != 0) == (_x_s18_l1 != 0))) && ((s18_l2 != 0) == (_x_s18_l2 != 0))) && ((delta + (s18_z + (-1.0 * _x_s18_z))) == 0.0))))) && (((((((s18_l0 != 0) == (_x_s18_l0 != 0)) && ((s18_l1 != 0) == (_x_s18_l1 != 0))) && ((s18_l2 != 0) == (_x_s18_l2 != 0))) && ((delta + (s18_x + (-1.0 * _x_s18_x))) == 0.0)) && (((delta + (s18_y + (-1.0 * _x_s18_y))) == 0.0) && ((delta + (s18_z + (-1.0 * _x_s18_z))) == 0.0))) || ( !(( !(s18_evt0 != 0)) && ( !(s18_evt1 != 0)))))) && ((((((s18_evt0 != 0) && (s18_evt1 != 0)) && (( !(_x_s18_l2 != 0)) && ((_x_s18_l0 != 0) && ( !(_x_s18_l1 != 0))))) && ((_x_s18_x == 0.0) && (_x_s18_y == 0.0))) && (s18_z == _x_s18_z)) || ( !((( !(s18_l2 != 0)) && (( !(s18_l0 != 0)) && ( !(s18_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s18_evt0 != 0)) && ( !(s18_evt1 != 0))))))))) && (((((( !(_x_s18_l2 != 0)) && ((_x_s18_l1 != 0) && ( !(_x_s18_l0 != 0)))) || (( !(_x_s18_l2 != 0)) && ((_x_s18_l0 != 0) && (_x_s18_l1 != 0)))) && (s18_x == _x_s18_x)) && ((s18_z == _x_s18_z) && (s18_y == _x_s18_y))) || ( !((( !(s18_l2 != 0)) && ((s18_l0 != 0) && ( !(s18_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s18_evt0 != 0)) && ( !(s18_evt1 != 0))))))))) && ((((s18_evt0 != 0) && ( !(s18_evt1 != 0))) && ((20.0 <= s18_x) && ( !(120.0 <= s18_z)))) || ( !(((delta == 0.0) && ( !(( !(s18_evt0 != 0)) && ( !(s18_evt1 != 0))))) && ((( !(s18_l2 != 0)) && ((s18_l0 != 0) && ( !(s18_l1 != 0)))) && (( !(_x_s18_l2 != 0)) && ((_x_s18_l1 != 0) && ( !(_x_s18_l0 != 0))))))))) && ((((s18_evt1 != 0) && ( !(s18_evt0 != 0))) && ((20.0 <= s18_x) && (120.0 <= s18_z))) || ( !(((delta == 0.0) && ( !(( !(s18_evt0 != 0)) && ( !(s18_evt1 != 0))))) && ((( !(s18_l2 != 0)) && ((s18_l0 != 0) && ( !(s18_l1 != 0)))) && (( !(_x_s18_l2 != 0)) && ((_x_s18_l0 != 0) && (_x_s18_l1 != 0)))))))) && (((s18_z == _x_s18_z) && ((((s18_evt1 != 0) && ( !(s18_evt0 != 0))) && (( !(_x_s18_l2 != 0)) && ((_x_s18_l0 != 0) && (_x_s18_l1 != 0)))) && ((s18_x == _x_s18_x) && (s18_y == _x_s18_y)))) || ( !((( !(s18_l2 != 0)) && ((s18_l1 != 0) && ( !(s18_l0 != 0)))) && ((delta == 0.0) && ( !(( !(s18_evt0 != 0)) && ( !(s18_evt1 != 0))))))))) && ((((((s18_evt0 != 0) && (s18_evt1 != 0)) && ((_x_s18_l2 != 0) && (( !(_x_s18_l0 != 0)) && ( !(_x_s18_l1 != 0))))) && ((_x_s18_x == 0.0) && (s18_y == _x_s18_y))) && (_x_s18_z == 0.0)) || ( !((( !(s18_l2 != 0)) && ((s18_l0 != 0) && (s18_l1 != 0))) && ((delta == 0.0) && ( !(( !(s18_evt0 != 0)) && ( !(s18_evt1 != 0))))))))) && ((((s18_x == _x_s18_x) && (s18_y == _x_s18_y)) && ((s18_z == _x_s18_z) && ((( !(_x_s18_l2 != 0)) && (( !(_x_s18_l0 != 0)) && ( !(_x_s18_l1 != 0)))) || ((_x_s18_l2 != 0) && ((_x_s18_l0 != 0) && ( !(_x_s18_l1 != 0))))))) || ( !(((s18_l2 != 0) && (( !(s18_l0 != 0)) && ( !(s18_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s18_evt0 != 0)) && ( !(s18_evt1 != 0))))))))) && ((((s18_evt0 != 0) && ( !(s18_evt1 != 0))) && ((20.0 <= s18_x) && ( !(120.0 <= s18_y)))) || ( !(((delta == 0.0) && ( !(( !(s18_evt0 != 0)) && ( !(s18_evt1 != 0))))) && (((s18_l2 != 0) && (( !(s18_l0 != 0)) && ( !(s18_l1 != 0)))) && ((_x_s18_l2 != 0) && ((_x_s18_l0 != 0) && ( !(_x_s18_l1 != 0))))))))) && ((((s18_evt1 != 0) && ( !(s18_evt0 != 0))) && ((20.0 <= s18_x) && (120.0 <= s18_y))) || ( !(((delta == 0.0) && ( !(( !(s18_evt0 != 0)) && ( !(s18_evt1 != 0))))) && ((( !(_x_s18_l2 != 0)) && (( !(_x_s18_l0 != 0)) && ( !(_x_s18_l1 != 0)))) && ((s18_l2 != 0) && (( !(s18_l0 != 0)) && ( !(s18_l1 != 0))))))))) && (((s18_z == _x_s18_z) && (((s18_x == _x_s18_x) && (s18_y == _x_s18_y)) && (((s18_evt1 != 0) && ( !(s18_evt0 != 0))) && (( !(_x_s18_l2 != 0)) && (( !(_x_s18_l0 != 0)) && ( !(_x_s18_l1 != 0))))))) || ( !(((s18_l2 != 0) && ((s18_l0 != 0) && ( !(s18_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s18_evt0 != 0)) && ( !(s18_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_s17_evt0 != 0)) && ( !(_x_s17_evt1 != 0))) || ((_x_s17_evt0 != 0) && ( !(_x_s17_evt1 != 0)))) || (((_x_s17_evt1 != 0) && ( !(_x_s17_evt0 != 0))) || ((_x_s17_evt0 != 0) && (_x_s17_evt1 != 0)))) && ((((( !(_x_s17_l2 != 0)) && (( !(_x_s17_l0 != 0)) && ( !(_x_s17_l1 != 0)))) || (( !(_x_s17_l2 != 0)) && ((_x_s17_l0 != 0) && ( !(_x_s17_l1 != 0))))) || ((( !(_x_s17_l2 != 0)) && ((_x_s17_l1 != 0) && ( !(_x_s17_l0 != 0)))) || (( !(_x_s17_l2 != 0)) && ((_x_s17_l0 != 0) && (_x_s17_l1 != 0))))) || (((_x_s17_l2 != 0) && (( !(_x_s17_l0 != 0)) && ( !(_x_s17_l1 != 0)))) || ((_x_s17_l2 != 0) && ((_x_s17_l0 != 0) && ( !(_x_s17_l1 != 0))))))) && ((_x_s17_x <= 20.0) || ( !(( !(_x_s17_l2 != 0)) && ((_x_s17_l0 != 0) && ( !(_x_s17_l1 != 0))))))) && ((_x_s17_x <= 120.0) || ( !(( !(_x_s17_l2 != 0)) && ((_x_s17_l1 != 0) && ( !(_x_s17_l0 != 0))))))) && ((_x_s17_x <= 120.0) || ( !((_x_s17_l2 != 0) && ((_x_s17_l0 != 0) && ( !(_x_s17_l1 != 0))))))) && ((delta <= 0.0) || ((((delta + (s17_x + (-1.0 * _x_s17_x))) == 0.0) && ((delta + (s17_y + (-1.0 * _x_s17_y))) == 0.0)) && (((((s17_l0 != 0) == (_x_s17_l0 != 0)) && ((s17_l1 != 0) == (_x_s17_l1 != 0))) && ((s17_l2 != 0) == (_x_s17_l2 != 0))) && ((delta + (s17_z + (-1.0 * _x_s17_z))) == 0.0))))) && (((((((s17_l0 != 0) == (_x_s17_l0 != 0)) && ((s17_l1 != 0) == (_x_s17_l1 != 0))) && ((s17_l2 != 0) == (_x_s17_l2 != 0))) && ((delta + (s17_x + (-1.0 * _x_s17_x))) == 0.0)) && (((delta + (s17_y + (-1.0 * _x_s17_y))) == 0.0) && ((delta + (s17_z + (-1.0 * _x_s17_z))) == 0.0))) || ( !(( !(s17_evt0 != 0)) && ( !(s17_evt1 != 0)))))) && ((((((s17_evt0 != 0) && (s17_evt1 != 0)) && (( !(_x_s17_l2 != 0)) && ((_x_s17_l0 != 0) && ( !(_x_s17_l1 != 0))))) && ((_x_s17_x == 0.0) && (_x_s17_y == 0.0))) && (s17_z == _x_s17_z)) || ( !((( !(s17_l2 != 0)) && (( !(s17_l0 != 0)) && ( !(s17_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s17_evt0 != 0)) && ( !(s17_evt1 != 0))))))))) && (((((( !(_x_s17_l2 != 0)) && ((_x_s17_l1 != 0) && ( !(_x_s17_l0 != 0)))) || (( !(_x_s17_l2 != 0)) && ((_x_s17_l0 != 0) && (_x_s17_l1 != 0)))) && (s17_x == _x_s17_x)) && ((s17_z == _x_s17_z) && (s17_y == _x_s17_y))) || ( !((( !(s17_l2 != 0)) && ((s17_l0 != 0) && ( !(s17_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s17_evt0 != 0)) && ( !(s17_evt1 != 0))))))))) && ((((s17_evt0 != 0) && ( !(s17_evt1 != 0))) && ((20.0 <= s17_x) && ( !(120.0 <= s17_z)))) || ( !(((delta == 0.0) && ( !(( !(s17_evt0 != 0)) && ( !(s17_evt1 != 0))))) && ((( !(s17_l2 != 0)) && ((s17_l0 != 0) && ( !(s17_l1 != 0)))) && (( !(_x_s17_l2 != 0)) && ((_x_s17_l1 != 0) && ( !(_x_s17_l0 != 0))))))))) && ((((s17_evt1 != 0) && ( !(s17_evt0 != 0))) && ((20.0 <= s17_x) && (120.0 <= s17_z))) || ( !(((delta == 0.0) && ( !(( !(s17_evt0 != 0)) && ( !(s17_evt1 != 0))))) && ((( !(s17_l2 != 0)) && ((s17_l0 != 0) && ( !(s17_l1 != 0)))) && (( !(_x_s17_l2 != 0)) && ((_x_s17_l0 != 0) && (_x_s17_l1 != 0)))))))) && (((s17_z == _x_s17_z) && ((((s17_evt1 != 0) && ( !(s17_evt0 != 0))) && (( !(_x_s17_l2 != 0)) && ((_x_s17_l0 != 0) && (_x_s17_l1 != 0)))) && ((s17_x == _x_s17_x) && (s17_y == _x_s17_y)))) || ( !((( !(s17_l2 != 0)) && ((s17_l1 != 0) && ( !(s17_l0 != 0)))) && ((delta == 0.0) && ( !(( !(s17_evt0 != 0)) && ( !(s17_evt1 != 0))))))))) && ((((((s17_evt0 != 0) && (s17_evt1 != 0)) && ((_x_s17_l2 != 0) && (( !(_x_s17_l0 != 0)) && ( !(_x_s17_l1 != 0))))) && ((_x_s17_x == 0.0) && (s17_y == _x_s17_y))) && (_x_s17_z == 0.0)) || ( !((( !(s17_l2 != 0)) && ((s17_l0 != 0) && (s17_l1 != 0))) && ((delta == 0.0) && ( !(( !(s17_evt0 != 0)) && ( !(s17_evt1 != 0))))))))) && ((((s17_x == _x_s17_x) && (s17_y == _x_s17_y)) && ((s17_z == _x_s17_z) && ((( !(_x_s17_l2 != 0)) && (( !(_x_s17_l0 != 0)) && ( !(_x_s17_l1 != 0)))) || ((_x_s17_l2 != 0) && ((_x_s17_l0 != 0) && ( !(_x_s17_l1 != 0))))))) || ( !(((s17_l2 != 0) && (( !(s17_l0 != 0)) && ( !(s17_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s17_evt0 != 0)) && ( !(s17_evt1 != 0))))))))) && ((((s17_evt0 != 0) && ( !(s17_evt1 != 0))) && ((20.0 <= s17_x) && ( !(120.0 <= s17_y)))) || ( !(((delta == 0.0) && ( !(( !(s17_evt0 != 0)) && ( !(s17_evt1 != 0))))) && (((s17_l2 != 0) && (( !(s17_l0 != 0)) && ( !(s17_l1 != 0)))) && ((_x_s17_l2 != 0) && ((_x_s17_l0 != 0) && ( !(_x_s17_l1 != 0))))))))) && ((((s17_evt1 != 0) && ( !(s17_evt0 != 0))) && ((20.0 <= s17_x) && (120.0 <= s17_y))) || ( !(((delta == 0.0) && ( !(( !(s17_evt0 != 0)) && ( !(s17_evt1 != 0))))) && ((( !(_x_s17_l2 != 0)) && (( !(_x_s17_l0 != 0)) && ( !(_x_s17_l1 != 0)))) && ((s17_l2 != 0) && (( !(s17_l0 != 0)) && ( !(s17_l1 != 0))))))))) && (((s17_z == _x_s17_z) && (((s17_x == _x_s17_x) && (s17_y == _x_s17_y)) && (((s17_evt1 != 0) && ( !(s17_evt0 != 0))) && (( !(_x_s17_l2 != 0)) && (( !(_x_s17_l0 != 0)) && ( !(_x_s17_l1 != 0))))))) || ( !(((s17_l2 != 0) && ((s17_l0 != 0) && ( !(s17_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s17_evt0 != 0)) && ( !(s17_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_s16_evt0 != 0)) && ( !(_x_s16_evt1 != 0))) || ((_x_s16_evt0 != 0) && ( !(_x_s16_evt1 != 0)))) || (((_x_s16_evt1 != 0) && ( !(_x_s16_evt0 != 0))) || ((_x_s16_evt0 != 0) && (_x_s16_evt1 != 0)))) && ((((( !(_x_s16_l2 != 0)) && (( !(_x_s16_l0 != 0)) && ( !(_x_s16_l1 != 0)))) || (( !(_x_s16_l2 != 0)) && ((_x_s16_l0 != 0) && ( !(_x_s16_l1 != 0))))) || ((( !(_x_s16_l2 != 0)) && ((_x_s16_l1 != 0) && ( !(_x_s16_l0 != 0)))) || (( !(_x_s16_l2 != 0)) && ((_x_s16_l0 != 0) && (_x_s16_l1 != 0))))) || (((_x_s16_l2 != 0) && (( !(_x_s16_l0 != 0)) && ( !(_x_s16_l1 != 0)))) || ((_x_s16_l2 != 0) && ((_x_s16_l0 != 0) && ( !(_x_s16_l1 != 0))))))) && ((_x_s16_x <= 20.0) || ( !(( !(_x_s16_l2 != 0)) && ((_x_s16_l0 != 0) && ( !(_x_s16_l1 != 0))))))) && ((_x_s16_x <= 120.0) || ( !(( !(_x_s16_l2 != 0)) && ((_x_s16_l1 != 0) && ( !(_x_s16_l0 != 0))))))) && ((_x_s16_x <= 120.0) || ( !((_x_s16_l2 != 0) && ((_x_s16_l0 != 0) && ( !(_x_s16_l1 != 0))))))) && ((delta <= 0.0) || ((((delta + (s16_x + (-1.0 * _x_s16_x))) == 0.0) && ((delta + (s16_y + (-1.0 * _x_s16_y))) == 0.0)) && (((((s16_l0 != 0) == (_x_s16_l0 != 0)) && ((s16_l1 != 0) == (_x_s16_l1 != 0))) && ((s16_l2 != 0) == (_x_s16_l2 != 0))) && ((delta + (s16_z + (-1.0 * _x_s16_z))) == 0.0))))) && (((((((s16_l0 != 0) == (_x_s16_l0 != 0)) && ((s16_l1 != 0) == (_x_s16_l1 != 0))) && ((s16_l2 != 0) == (_x_s16_l2 != 0))) && ((delta + (s16_x + (-1.0 * _x_s16_x))) == 0.0)) && (((delta + (s16_y + (-1.0 * _x_s16_y))) == 0.0) && ((delta + (s16_z + (-1.0 * _x_s16_z))) == 0.0))) || ( !(( !(s16_evt0 != 0)) && ( !(s16_evt1 != 0)))))) && ((((((s16_evt0 != 0) && (s16_evt1 != 0)) && (( !(_x_s16_l2 != 0)) && ((_x_s16_l0 != 0) && ( !(_x_s16_l1 != 0))))) && ((_x_s16_x == 0.0) && (_x_s16_y == 0.0))) && (s16_z == _x_s16_z)) || ( !((( !(s16_l2 != 0)) && (( !(s16_l0 != 0)) && ( !(s16_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s16_evt0 != 0)) && ( !(s16_evt1 != 0))))))))) && (((((( !(_x_s16_l2 != 0)) && ((_x_s16_l1 != 0) && ( !(_x_s16_l0 != 0)))) || (( !(_x_s16_l2 != 0)) && ((_x_s16_l0 != 0) && (_x_s16_l1 != 0)))) && (s16_x == _x_s16_x)) && ((s16_z == _x_s16_z) && (s16_y == _x_s16_y))) || ( !((( !(s16_l2 != 0)) && ((s16_l0 != 0) && ( !(s16_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s16_evt0 != 0)) && ( !(s16_evt1 != 0))))))))) && ((((s16_evt0 != 0) && ( !(s16_evt1 != 0))) && ((20.0 <= s16_x) && ( !(120.0 <= s16_z)))) || ( !(((delta == 0.0) && ( !(( !(s16_evt0 != 0)) && ( !(s16_evt1 != 0))))) && ((( !(s16_l2 != 0)) && ((s16_l0 != 0) && ( !(s16_l1 != 0)))) && (( !(_x_s16_l2 != 0)) && ((_x_s16_l1 != 0) && ( !(_x_s16_l0 != 0))))))))) && ((((s16_evt1 != 0) && ( !(s16_evt0 != 0))) && ((20.0 <= s16_x) && (120.0 <= s16_z))) || ( !(((delta == 0.0) && ( !(( !(s16_evt0 != 0)) && ( !(s16_evt1 != 0))))) && ((( !(s16_l2 != 0)) && ((s16_l0 != 0) && ( !(s16_l1 != 0)))) && (( !(_x_s16_l2 != 0)) && ((_x_s16_l0 != 0) && (_x_s16_l1 != 0)))))))) && (((s16_z == _x_s16_z) && ((((s16_evt1 != 0) && ( !(s16_evt0 != 0))) && (( !(_x_s16_l2 != 0)) && ((_x_s16_l0 != 0) && (_x_s16_l1 != 0)))) && ((s16_x == _x_s16_x) && (s16_y == _x_s16_y)))) || ( !((( !(s16_l2 != 0)) && ((s16_l1 != 0) && ( !(s16_l0 != 0)))) && ((delta == 0.0) && ( !(( !(s16_evt0 != 0)) && ( !(s16_evt1 != 0))))))))) && ((((((s16_evt0 != 0) && (s16_evt1 != 0)) && ((_x_s16_l2 != 0) && (( !(_x_s16_l0 != 0)) && ( !(_x_s16_l1 != 0))))) && ((_x_s16_x == 0.0) && (s16_y == _x_s16_y))) && (_x_s16_z == 0.0)) || ( !((( !(s16_l2 != 0)) && ((s16_l0 != 0) && (s16_l1 != 0))) && ((delta == 0.0) && ( !(( !(s16_evt0 != 0)) && ( !(s16_evt1 != 0))))))))) && ((((s16_x == _x_s16_x) && (s16_y == _x_s16_y)) && ((s16_z == _x_s16_z) && ((( !(_x_s16_l2 != 0)) && (( !(_x_s16_l0 != 0)) && ( !(_x_s16_l1 != 0)))) || ((_x_s16_l2 != 0) && ((_x_s16_l0 != 0) && ( !(_x_s16_l1 != 0))))))) || ( !(((s16_l2 != 0) && (( !(s16_l0 != 0)) && ( !(s16_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s16_evt0 != 0)) && ( !(s16_evt1 != 0))))))))) && ((((s16_evt0 != 0) && ( !(s16_evt1 != 0))) && ((20.0 <= s16_x) && ( !(120.0 <= s16_y)))) || ( !(((delta == 0.0) && ( !(( !(s16_evt0 != 0)) && ( !(s16_evt1 != 0))))) && (((s16_l2 != 0) && (( !(s16_l0 != 0)) && ( !(s16_l1 != 0)))) && ((_x_s16_l2 != 0) && ((_x_s16_l0 != 0) && ( !(_x_s16_l1 != 0))))))))) && ((((s16_evt1 != 0) && ( !(s16_evt0 != 0))) && ((20.0 <= s16_x) && (120.0 <= s16_y))) || ( !(((delta == 0.0) && ( !(( !(s16_evt0 != 0)) && ( !(s16_evt1 != 0))))) && ((( !(_x_s16_l2 != 0)) && (( !(_x_s16_l0 != 0)) && ( !(_x_s16_l1 != 0)))) && ((s16_l2 != 0) && (( !(s16_l0 != 0)) && ( !(s16_l1 != 0))))))))) && (((s16_z == _x_s16_z) && (((s16_x == _x_s16_x) && (s16_y == _x_s16_y)) && (((s16_evt1 != 0) && ( !(s16_evt0 != 0))) && (( !(_x_s16_l2 != 0)) && (( !(_x_s16_l0 != 0)) && ( !(_x_s16_l1 != 0))))))) || ( !(((s16_l2 != 0) && ((s16_l0 != 0) && ( !(s16_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s16_evt0 != 0)) && ( !(s16_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_s15_evt0 != 0)) && ( !(_x_s15_evt1 != 0))) || ((_x_s15_evt0 != 0) && ( !(_x_s15_evt1 != 0)))) || (((_x_s15_evt1 != 0) && ( !(_x_s15_evt0 != 0))) || ((_x_s15_evt0 != 0) && (_x_s15_evt1 != 0)))) && ((((( !(_x_s15_l2 != 0)) && (( !(_x_s15_l0 != 0)) && ( !(_x_s15_l1 != 0)))) || (( !(_x_s15_l2 != 0)) && ((_x_s15_l0 != 0) && ( !(_x_s15_l1 != 0))))) || ((( !(_x_s15_l2 != 0)) && ((_x_s15_l1 != 0) && ( !(_x_s15_l0 != 0)))) || (( !(_x_s15_l2 != 0)) && ((_x_s15_l0 != 0) && (_x_s15_l1 != 0))))) || (((_x_s15_l2 != 0) && (( !(_x_s15_l0 != 0)) && ( !(_x_s15_l1 != 0)))) || ((_x_s15_l2 != 0) && ((_x_s15_l0 != 0) && ( !(_x_s15_l1 != 0))))))) && ((_x_s15_x <= 20.0) || ( !(( !(_x_s15_l2 != 0)) && ((_x_s15_l0 != 0) && ( !(_x_s15_l1 != 0))))))) && ((_x_s15_x <= 120.0) || ( !(( !(_x_s15_l2 != 0)) && ((_x_s15_l1 != 0) && ( !(_x_s15_l0 != 0))))))) && ((_x_s15_x <= 120.0) || ( !((_x_s15_l2 != 0) && ((_x_s15_l0 != 0) && ( !(_x_s15_l1 != 0))))))) && ((delta <= 0.0) || ((((delta + (s15_x + (-1.0 * _x_s15_x))) == 0.0) && ((delta + (s15_y + (-1.0 * _x_s15_y))) == 0.0)) && (((((s15_l0 != 0) == (_x_s15_l0 != 0)) && ((s15_l1 != 0) == (_x_s15_l1 != 0))) && ((s15_l2 != 0) == (_x_s15_l2 != 0))) && ((delta + (s15_z + (-1.0 * _x_s15_z))) == 0.0))))) && (((((((s15_l0 != 0) == (_x_s15_l0 != 0)) && ((s15_l1 != 0) == (_x_s15_l1 != 0))) && ((s15_l2 != 0) == (_x_s15_l2 != 0))) && ((delta + (s15_x + (-1.0 * _x_s15_x))) == 0.0)) && (((delta + (s15_y + (-1.0 * _x_s15_y))) == 0.0) && ((delta + (s15_z + (-1.0 * _x_s15_z))) == 0.0))) || ( !(( !(s15_evt0 != 0)) && ( !(s15_evt1 != 0)))))) && ((((((s15_evt0 != 0) && (s15_evt1 != 0)) && (( !(_x_s15_l2 != 0)) && ((_x_s15_l0 != 0) && ( !(_x_s15_l1 != 0))))) && ((_x_s15_x == 0.0) && (_x_s15_y == 0.0))) && (s15_z == _x_s15_z)) || ( !((( !(s15_l2 != 0)) && (( !(s15_l0 != 0)) && ( !(s15_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s15_evt0 != 0)) && ( !(s15_evt1 != 0))))))))) && (((((( !(_x_s15_l2 != 0)) && ((_x_s15_l1 != 0) && ( !(_x_s15_l0 != 0)))) || (( !(_x_s15_l2 != 0)) && ((_x_s15_l0 != 0) && (_x_s15_l1 != 0)))) && (s15_x == _x_s15_x)) && ((s15_z == _x_s15_z) && (s15_y == _x_s15_y))) || ( !((( !(s15_l2 != 0)) && ((s15_l0 != 0) && ( !(s15_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s15_evt0 != 0)) && ( !(s15_evt1 != 0))))))))) && ((((s15_evt0 != 0) && ( !(s15_evt1 != 0))) && ((20.0 <= s15_x) && ( !(120.0 <= s15_z)))) || ( !(((delta == 0.0) && ( !(( !(s15_evt0 != 0)) && ( !(s15_evt1 != 0))))) && ((( !(s15_l2 != 0)) && ((s15_l0 != 0) && ( !(s15_l1 != 0)))) && (( !(_x_s15_l2 != 0)) && ((_x_s15_l1 != 0) && ( !(_x_s15_l0 != 0))))))))) && ((((s15_evt1 != 0) && ( !(s15_evt0 != 0))) && ((20.0 <= s15_x) && (120.0 <= s15_z))) || ( !(((delta == 0.0) && ( !(( !(s15_evt0 != 0)) && ( !(s15_evt1 != 0))))) && ((( !(s15_l2 != 0)) && ((s15_l0 != 0) && ( !(s15_l1 != 0)))) && (( !(_x_s15_l2 != 0)) && ((_x_s15_l0 != 0) && (_x_s15_l1 != 0)))))))) && (((s15_z == _x_s15_z) && ((((s15_evt1 != 0) && ( !(s15_evt0 != 0))) && (( !(_x_s15_l2 != 0)) && ((_x_s15_l0 != 0) && (_x_s15_l1 != 0)))) && ((s15_x == _x_s15_x) && (s15_y == _x_s15_y)))) || ( !((( !(s15_l2 != 0)) && ((s15_l1 != 0) && ( !(s15_l0 != 0)))) && ((delta == 0.0) && ( !(( !(s15_evt0 != 0)) && ( !(s15_evt1 != 0))))))))) && ((((((s15_evt0 != 0) && (s15_evt1 != 0)) && ((_x_s15_l2 != 0) && (( !(_x_s15_l0 != 0)) && ( !(_x_s15_l1 != 0))))) && ((_x_s15_x == 0.0) && (s15_y == _x_s15_y))) && (_x_s15_z == 0.0)) || ( !((( !(s15_l2 != 0)) && ((s15_l0 != 0) && (s15_l1 != 0))) && ((delta == 0.0) && ( !(( !(s15_evt0 != 0)) && ( !(s15_evt1 != 0))))))))) && ((((s15_x == _x_s15_x) && (s15_y == _x_s15_y)) && ((s15_z == _x_s15_z) && ((( !(_x_s15_l2 != 0)) && (( !(_x_s15_l0 != 0)) && ( !(_x_s15_l1 != 0)))) || ((_x_s15_l2 != 0) && ((_x_s15_l0 != 0) && ( !(_x_s15_l1 != 0))))))) || ( !(((s15_l2 != 0) && (( !(s15_l0 != 0)) && ( !(s15_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s15_evt0 != 0)) && ( !(s15_evt1 != 0))))))))) && ((((s15_evt0 != 0) && ( !(s15_evt1 != 0))) && ((20.0 <= s15_x) && ( !(120.0 <= s15_y)))) || ( !(((delta == 0.0) && ( !(( !(s15_evt0 != 0)) && ( !(s15_evt1 != 0))))) && (((s15_l2 != 0) && (( !(s15_l0 != 0)) && ( !(s15_l1 != 0)))) && ((_x_s15_l2 != 0) && ((_x_s15_l0 != 0) && ( !(_x_s15_l1 != 0))))))))) && ((((s15_evt1 != 0) && ( !(s15_evt0 != 0))) && ((20.0 <= s15_x) && (120.0 <= s15_y))) || ( !(((delta == 0.0) && ( !(( !(s15_evt0 != 0)) && ( !(s15_evt1 != 0))))) && ((( !(_x_s15_l2 != 0)) && (( !(_x_s15_l0 != 0)) && ( !(_x_s15_l1 != 0)))) && ((s15_l2 != 0) && (( !(s15_l0 != 0)) && ( !(s15_l1 != 0))))))))) && (((s15_z == _x_s15_z) && (((s15_x == _x_s15_x) && (s15_y == _x_s15_y)) && (((s15_evt1 != 0) && ( !(s15_evt0 != 0))) && (( !(_x_s15_l2 != 0)) && (( !(_x_s15_l0 != 0)) && ( !(_x_s15_l1 != 0))))))) || ( !(((s15_l2 != 0) && ((s15_l0 != 0) && ( !(s15_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s15_evt0 != 0)) && ( !(s15_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_s14_evt0 != 0)) && ( !(_x_s14_evt1 != 0))) || ((_x_s14_evt0 != 0) && ( !(_x_s14_evt1 != 0)))) || (((_x_s14_evt1 != 0) && ( !(_x_s14_evt0 != 0))) || ((_x_s14_evt0 != 0) && (_x_s14_evt1 != 0)))) && ((((( !(_x_s14_l2 != 0)) && (( !(_x_s14_l0 != 0)) && ( !(_x_s14_l1 != 0)))) || (( !(_x_s14_l2 != 0)) && ((_x_s14_l0 != 0) && ( !(_x_s14_l1 != 0))))) || ((( !(_x_s14_l2 != 0)) && ((_x_s14_l1 != 0) && ( !(_x_s14_l0 != 0)))) || (( !(_x_s14_l2 != 0)) && ((_x_s14_l0 != 0) && (_x_s14_l1 != 0))))) || (((_x_s14_l2 != 0) && (( !(_x_s14_l0 != 0)) && ( !(_x_s14_l1 != 0)))) || ((_x_s14_l2 != 0) && ((_x_s14_l0 != 0) && ( !(_x_s14_l1 != 0))))))) && ((_x_s14_x <= 20.0) || ( !(( !(_x_s14_l2 != 0)) && ((_x_s14_l0 != 0) && ( !(_x_s14_l1 != 0))))))) && ((_x_s14_x <= 120.0) || ( !(( !(_x_s14_l2 != 0)) && ((_x_s14_l1 != 0) && ( !(_x_s14_l0 != 0))))))) && ((_x_s14_x <= 120.0) || ( !((_x_s14_l2 != 0) && ((_x_s14_l0 != 0) && ( !(_x_s14_l1 != 0))))))) && ((delta <= 0.0) || ((((delta + (s14_x + (-1.0 * _x_s14_x))) == 0.0) && ((delta + (s14_y + (-1.0 * _x_s14_y))) == 0.0)) && (((((s14_l0 != 0) == (_x_s14_l0 != 0)) && ((s14_l1 != 0) == (_x_s14_l1 != 0))) && ((s14_l2 != 0) == (_x_s14_l2 != 0))) && ((delta + (s14_z + (-1.0 * _x_s14_z))) == 0.0))))) && (((((((s14_l0 != 0) == (_x_s14_l0 != 0)) && ((s14_l1 != 0) == (_x_s14_l1 != 0))) && ((s14_l2 != 0) == (_x_s14_l2 != 0))) && ((delta + (s14_x + (-1.0 * _x_s14_x))) == 0.0)) && (((delta + (s14_y + (-1.0 * _x_s14_y))) == 0.0) && ((delta + (s14_z + (-1.0 * _x_s14_z))) == 0.0))) || ( !(( !(s14_evt0 != 0)) && ( !(s14_evt1 != 0)))))) && ((((((s14_evt0 != 0) && (s14_evt1 != 0)) && (( !(_x_s14_l2 != 0)) && ((_x_s14_l0 != 0) && ( !(_x_s14_l1 != 0))))) && ((_x_s14_x == 0.0) && (_x_s14_y == 0.0))) && (s14_z == _x_s14_z)) || ( !((( !(s14_l2 != 0)) && (( !(s14_l0 != 0)) && ( !(s14_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s14_evt0 != 0)) && ( !(s14_evt1 != 0))))))))) && (((((( !(_x_s14_l2 != 0)) && ((_x_s14_l1 != 0) && ( !(_x_s14_l0 != 0)))) || (( !(_x_s14_l2 != 0)) && ((_x_s14_l0 != 0) && (_x_s14_l1 != 0)))) && (s14_x == _x_s14_x)) && ((s14_z == _x_s14_z) && (s14_y == _x_s14_y))) || ( !((( !(s14_l2 != 0)) && ((s14_l0 != 0) && ( !(s14_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s14_evt0 != 0)) && ( !(s14_evt1 != 0))))))))) && ((((s14_evt0 != 0) && ( !(s14_evt1 != 0))) && ((20.0 <= s14_x) && ( !(120.0 <= s14_z)))) || ( !(((delta == 0.0) && ( !(( !(s14_evt0 != 0)) && ( !(s14_evt1 != 0))))) && ((( !(s14_l2 != 0)) && ((s14_l0 != 0) && ( !(s14_l1 != 0)))) && (( !(_x_s14_l2 != 0)) && ((_x_s14_l1 != 0) && ( !(_x_s14_l0 != 0))))))))) && ((((s14_evt1 != 0) && ( !(s14_evt0 != 0))) && ((20.0 <= s14_x) && (120.0 <= s14_z))) || ( !(((delta == 0.0) && ( !(( !(s14_evt0 != 0)) && ( !(s14_evt1 != 0))))) && ((( !(s14_l2 != 0)) && ((s14_l0 != 0) && ( !(s14_l1 != 0)))) && (( !(_x_s14_l2 != 0)) && ((_x_s14_l0 != 0) && (_x_s14_l1 != 0)))))))) && (((s14_z == _x_s14_z) && ((((s14_evt1 != 0) && ( !(s14_evt0 != 0))) && (( !(_x_s14_l2 != 0)) && ((_x_s14_l0 != 0) && (_x_s14_l1 != 0)))) && ((s14_x == _x_s14_x) && (s14_y == _x_s14_y)))) || ( !((( !(s14_l2 != 0)) && ((s14_l1 != 0) && ( !(s14_l0 != 0)))) && ((delta == 0.0) && ( !(( !(s14_evt0 != 0)) && ( !(s14_evt1 != 0))))))))) && ((((((s14_evt0 != 0) && (s14_evt1 != 0)) && ((_x_s14_l2 != 0) && (( !(_x_s14_l0 != 0)) && ( !(_x_s14_l1 != 0))))) && ((_x_s14_x == 0.0) && (s14_y == _x_s14_y))) && (_x_s14_z == 0.0)) || ( !((( !(s14_l2 != 0)) && ((s14_l0 != 0) && (s14_l1 != 0))) && ((delta == 0.0) && ( !(( !(s14_evt0 != 0)) && ( !(s14_evt1 != 0))))))))) && ((((s14_x == _x_s14_x) && (s14_y == _x_s14_y)) && ((s14_z == _x_s14_z) && ((( !(_x_s14_l2 != 0)) && (( !(_x_s14_l0 != 0)) && ( !(_x_s14_l1 != 0)))) || ((_x_s14_l2 != 0) && ((_x_s14_l0 != 0) && ( !(_x_s14_l1 != 0))))))) || ( !(((s14_l2 != 0) && (( !(s14_l0 != 0)) && ( !(s14_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s14_evt0 != 0)) && ( !(s14_evt1 != 0))))))))) && ((((s14_evt0 != 0) && ( !(s14_evt1 != 0))) && ((20.0 <= s14_x) && ( !(120.0 <= s14_y)))) || ( !(((delta == 0.0) && ( !(( !(s14_evt0 != 0)) && ( !(s14_evt1 != 0))))) && (((s14_l2 != 0) && (( !(s14_l0 != 0)) && ( !(s14_l1 != 0)))) && ((_x_s14_l2 != 0) && ((_x_s14_l0 != 0) && ( !(_x_s14_l1 != 0))))))))) && ((((s14_evt1 != 0) && ( !(s14_evt0 != 0))) && ((20.0 <= s14_x) && (120.0 <= s14_y))) || ( !(((delta == 0.0) && ( !(( !(s14_evt0 != 0)) && ( !(s14_evt1 != 0))))) && ((( !(_x_s14_l2 != 0)) && (( !(_x_s14_l0 != 0)) && ( !(_x_s14_l1 != 0)))) && ((s14_l2 != 0) && (( !(s14_l0 != 0)) && ( !(s14_l1 != 0))))))))) && (((s14_z == _x_s14_z) && (((s14_x == _x_s14_x) && (s14_y == _x_s14_y)) && (((s14_evt1 != 0) && ( !(s14_evt0 != 0))) && (( !(_x_s14_l2 != 0)) && (( !(_x_s14_l0 != 0)) && ( !(_x_s14_l1 != 0))))))) || ( !(((s14_l2 != 0) && ((s14_l0 != 0) && ( !(s14_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s14_evt0 != 0)) && ( !(s14_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_s13_evt0 != 0)) && ( !(_x_s13_evt1 != 0))) || ((_x_s13_evt0 != 0) && ( !(_x_s13_evt1 != 0)))) || (((_x_s13_evt1 != 0) && ( !(_x_s13_evt0 != 0))) || ((_x_s13_evt0 != 0) && (_x_s13_evt1 != 0)))) && ((((( !(_x_s13_l2 != 0)) && (( !(_x_s13_l0 != 0)) && ( !(_x_s13_l1 != 0)))) || (( !(_x_s13_l2 != 0)) && ((_x_s13_l0 != 0) && ( !(_x_s13_l1 != 0))))) || ((( !(_x_s13_l2 != 0)) && ((_x_s13_l1 != 0) && ( !(_x_s13_l0 != 0)))) || (( !(_x_s13_l2 != 0)) && ((_x_s13_l0 != 0) && (_x_s13_l1 != 0))))) || (((_x_s13_l2 != 0) && (( !(_x_s13_l0 != 0)) && ( !(_x_s13_l1 != 0)))) || ((_x_s13_l2 != 0) && ((_x_s13_l0 != 0) && ( !(_x_s13_l1 != 0))))))) && ((_x_s13_x <= 20.0) || ( !(( !(_x_s13_l2 != 0)) && ((_x_s13_l0 != 0) && ( !(_x_s13_l1 != 0))))))) && ((_x_s13_x <= 120.0) || ( !(( !(_x_s13_l2 != 0)) && ((_x_s13_l1 != 0) && ( !(_x_s13_l0 != 0))))))) && ((_x_s13_x <= 120.0) || ( !((_x_s13_l2 != 0) && ((_x_s13_l0 != 0) && ( !(_x_s13_l1 != 0))))))) && ((delta <= 0.0) || ((((delta + (s13_x + (-1.0 * _x_s13_x))) == 0.0) && ((delta + (s13_y + (-1.0 * _x_s13_y))) == 0.0)) && (((((s13_l0 != 0) == (_x_s13_l0 != 0)) && ((s13_l1 != 0) == (_x_s13_l1 != 0))) && ((s13_l2 != 0) == (_x_s13_l2 != 0))) && ((delta + (s13_z + (-1.0 * _x_s13_z))) == 0.0))))) && (((((((s13_l0 != 0) == (_x_s13_l0 != 0)) && ((s13_l1 != 0) == (_x_s13_l1 != 0))) && ((s13_l2 != 0) == (_x_s13_l2 != 0))) && ((delta + (s13_x + (-1.0 * _x_s13_x))) == 0.0)) && (((delta + (s13_y + (-1.0 * _x_s13_y))) == 0.0) && ((delta + (s13_z + (-1.0 * _x_s13_z))) == 0.0))) || ( !(( !(s13_evt0 != 0)) && ( !(s13_evt1 != 0)))))) && ((((((s13_evt0 != 0) && (s13_evt1 != 0)) && (( !(_x_s13_l2 != 0)) && ((_x_s13_l0 != 0) && ( !(_x_s13_l1 != 0))))) && ((_x_s13_x == 0.0) && (_x_s13_y == 0.0))) && (s13_z == _x_s13_z)) || ( !((( !(s13_l2 != 0)) && (( !(s13_l0 != 0)) && ( !(s13_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s13_evt0 != 0)) && ( !(s13_evt1 != 0))))))))) && (((((( !(_x_s13_l2 != 0)) && ((_x_s13_l1 != 0) && ( !(_x_s13_l0 != 0)))) || (( !(_x_s13_l2 != 0)) && ((_x_s13_l0 != 0) && (_x_s13_l1 != 0)))) && (s13_x == _x_s13_x)) && ((s13_z == _x_s13_z) && (s13_y == _x_s13_y))) || ( !((( !(s13_l2 != 0)) && ((s13_l0 != 0) && ( !(s13_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s13_evt0 != 0)) && ( !(s13_evt1 != 0))))))))) && ((((s13_evt0 != 0) && ( !(s13_evt1 != 0))) && ((20.0 <= s13_x) && ( !(120.0 <= s13_z)))) || ( !(((delta == 0.0) && ( !(( !(s13_evt0 != 0)) && ( !(s13_evt1 != 0))))) && ((( !(s13_l2 != 0)) && ((s13_l0 != 0) && ( !(s13_l1 != 0)))) && (( !(_x_s13_l2 != 0)) && ((_x_s13_l1 != 0) && ( !(_x_s13_l0 != 0))))))))) && ((((s13_evt1 != 0) && ( !(s13_evt0 != 0))) && ((20.0 <= s13_x) && (120.0 <= s13_z))) || ( !(((delta == 0.0) && ( !(( !(s13_evt0 != 0)) && ( !(s13_evt1 != 0))))) && ((( !(s13_l2 != 0)) && ((s13_l0 != 0) && ( !(s13_l1 != 0)))) && (( !(_x_s13_l2 != 0)) && ((_x_s13_l0 != 0) && (_x_s13_l1 != 0)))))))) && (((s13_z == _x_s13_z) && ((((s13_evt1 != 0) && ( !(s13_evt0 != 0))) && (( !(_x_s13_l2 != 0)) && ((_x_s13_l0 != 0) && (_x_s13_l1 != 0)))) && ((s13_x == _x_s13_x) && (s13_y == _x_s13_y)))) || ( !((( !(s13_l2 != 0)) && ((s13_l1 != 0) && ( !(s13_l0 != 0)))) && ((delta == 0.0) && ( !(( !(s13_evt0 != 0)) && ( !(s13_evt1 != 0))))))))) && ((((((s13_evt0 != 0) && (s13_evt1 != 0)) && ((_x_s13_l2 != 0) && (( !(_x_s13_l0 != 0)) && ( !(_x_s13_l1 != 0))))) && ((_x_s13_x == 0.0) && (s13_y == _x_s13_y))) && (_x_s13_z == 0.0)) || ( !((( !(s13_l2 != 0)) && ((s13_l0 != 0) && (s13_l1 != 0))) && ((delta == 0.0) && ( !(( !(s13_evt0 != 0)) && ( !(s13_evt1 != 0))))))))) && ((((s13_x == _x_s13_x) && (s13_y == _x_s13_y)) && ((s13_z == _x_s13_z) && ((( !(_x_s13_l2 != 0)) && (( !(_x_s13_l0 != 0)) && ( !(_x_s13_l1 != 0)))) || ((_x_s13_l2 != 0) && ((_x_s13_l0 != 0) && ( !(_x_s13_l1 != 0))))))) || ( !(((s13_l2 != 0) && (( !(s13_l0 != 0)) && ( !(s13_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s13_evt0 != 0)) && ( !(s13_evt1 != 0))))))))) && ((((s13_evt0 != 0) && ( !(s13_evt1 != 0))) && ((20.0 <= s13_x) && ( !(120.0 <= s13_y)))) || ( !(((delta == 0.0) && ( !(( !(s13_evt0 != 0)) && ( !(s13_evt1 != 0))))) && (((s13_l2 != 0) && (( !(s13_l0 != 0)) && ( !(s13_l1 != 0)))) && ((_x_s13_l2 != 0) && ((_x_s13_l0 != 0) && ( !(_x_s13_l1 != 0))))))))) && ((((s13_evt1 != 0) && ( !(s13_evt0 != 0))) && ((20.0 <= s13_x) && (120.0 <= s13_y))) || ( !(((delta == 0.0) && ( !(( !(s13_evt0 != 0)) && ( !(s13_evt1 != 0))))) && ((( !(_x_s13_l2 != 0)) && (( !(_x_s13_l0 != 0)) && ( !(_x_s13_l1 != 0)))) && ((s13_l2 != 0) && (( !(s13_l0 != 0)) && ( !(s13_l1 != 0))))))))) && (((s13_z == _x_s13_z) && (((s13_x == _x_s13_x) && (s13_y == _x_s13_y)) && (((s13_evt1 != 0) && ( !(s13_evt0 != 0))) && (( !(_x_s13_l2 != 0)) && (( !(_x_s13_l0 != 0)) && ( !(_x_s13_l1 != 0))))))) || ( !(((s13_l2 != 0) && ((s13_l0 != 0) && ( !(s13_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s13_evt0 != 0)) && ( !(s13_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_s12_evt0 != 0)) && ( !(_x_s12_evt1 != 0))) || ((_x_s12_evt0 != 0) && ( !(_x_s12_evt1 != 0)))) || (((_x_s12_evt1 != 0) && ( !(_x_s12_evt0 != 0))) || ((_x_s12_evt0 != 0) && (_x_s12_evt1 != 0)))) && ((((( !(_x_s12_l2 != 0)) && (( !(_x_s12_l0 != 0)) && ( !(_x_s12_l1 != 0)))) || (( !(_x_s12_l2 != 0)) && ((_x_s12_l0 != 0) && ( !(_x_s12_l1 != 0))))) || ((( !(_x_s12_l2 != 0)) && ((_x_s12_l1 != 0) && ( !(_x_s12_l0 != 0)))) || (( !(_x_s12_l2 != 0)) && ((_x_s12_l0 != 0) && (_x_s12_l1 != 0))))) || (((_x_s12_l2 != 0) && (( !(_x_s12_l0 != 0)) && ( !(_x_s12_l1 != 0)))) || ((_x_s12_l2 != 0) && ((_x_s12_l0 != 0) && ( !(_x_s12_l1 != 0))))))) && ((_x_s12_x <= 20.0) || ( !(( !(_x_s12_l2 != 0)) && ((_x_s12_l0 != 0) && ( !(_x_s12_l1 != 0))))))) && ((_x_s12_x <= 120.0) || ( !(( !(_x_s12_l2 != 0)) && ((_x_s12_l1 != 0) && ( !(_x_s12_l0 != 0))))))) && ((_x_s12_x <= 120.0) || ( !((_x_s12_l2 != 0) && ((_x_s12_l0 != 0) && ( !(_x_s12_l1 != 0))))))) && ((delta <= 0.0) || ((((delta + (s12_x + (-1.0 * _x_s12_x))) == 0.0) && ((delta + (s12_y + (-1.0 * _x_s12_y))) == 0.0)) && (((((s12_l0 != 0) == (_x_s12_l0 != 0)) && ((s12_l1 != 0) == (_x_s12_l1 != 0))) && ((s12_l2 != 0) == (_x_s12_l2 != 0))) && ((delta + (s12_z + (-1.0 * _x_s12_z))) == 0.0))))) && (((((((s12_l0 != 0) == (_x_s12_l0 != 0)) && ((s12_l1 != 0) == (_x_s12_l1 != 0))) && ((s12_l2 != 0) == (_x_s12_l2 != 0))) && ((delta + (s12_x + (-1.0 * _x_s12_x))) == 0.0)) && (((delta + (s12_y + (-1.0 * _x_s12_y))) == 0.0) && ((delta + (s12_z + (-1.0 * _x_s12_z))) == 0.0))) || ( !(( !(s12_evt0 != 0)) && ( !(s12_evt1 != 0)))))) && ((((((s12_evt0 != 0) && (s12_evt1 != 0)) && (( !(_x_s12_l2 != 0)) && ((_x_s12_l0 != 0) && ( !(_x_s12_l1 != 0))))) && ((_x_s12_x == 0.0) && (_x_s12_y == 0.0))) && (s12_z == _x_s12_z)) || ( !((( !(s12_l2 != 0)) && (( !(s12_l0 != 0)) && ( !(s12_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s12_evt0 != 0)) && ( !(s12_evt1 != 0))))))))) && (((((( !(_x_s12_l2 != 0)) && ((_x_s12_l1 != 0) && ( !(_x_s12_l0 != 0)))) || (( !(_x_s12_l2 != 0)) && ((_x_s12_l0 != 0) && (_x_s12_l1 != 0)))) && (s12_x == _x_s12_x)) && ((s12_z == _x_s12_z) && (s12_y == _x_s12_y))) || ( !((( !(s12_l2 != 0)) && ((s12_l0 != 0) && ( !(s12_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s12_evt0 != 0)) && ( !(s12_evt1 != 0))))))))) && ((((s12_evt0 != 0) && ( !(s12_evt1 != 0))) && ((20.0 <= s12_x) && ( !(120.0 <= s12_z)))) || ( !(((delta == 0.0) && ( !(( !(s12_evt0 != 0)) && ( !(s12_evt1 != 0))))) && ((( !(s12_l2 != 0)) && ((s12_l0 != 0) && ( !(s12_l1 != 0)))) && (( !(_x_s12_l2 != 0)) && ((_x_s12_l1 != 0) && ( !(_x_s12_l0 != 0))))))))) && ((((s12_evt1 != 0) && ( !(s12_evt0 != 0))) && ((20.0 <= s12_x) && (120.0 <= s12_z))) || ( !(((delta == 0.0) && ( !(( !(s12_evt0 != 0)) && ( !(s12_evt1 != 0))))) && ((( !(s12_l2 != 0)) && ((s12_l0 != 0) && ( !(s12_l1 != 0)))) && (( !(_x_s12_l2 != 0)) && ((_x_s12_l0 != 0) && (_x_s12_l1 != 0)))))))) && (((s12_z == _x_s12_z) && ((((s12_evt1 != 0) && ( !(s12_evt0 != 0))) && (( !(_x_s12_l2 != 0)) && ((_x_s12_l0 != 0) && (_x_s12_l1 != 0)))) && ((s12_x == _x_s12_x) && (s12_y == _x_s12_y)))) || ( !((( !(s12_l2 != 0)) && ((s12_l1 != 0) && ( !(s12_l0 != 0)))) && ((delta == 0.0) && ( !(( !(s12_evt0 != 0)) && ( !(s12_evt1 != 0))))))))) && ((((((s12_evt0 != 0) && (s12_evt1 != 0)) && ((_x_s12_l2 != 0) && (( !(_x_s12_l0 != 0)) && ( !(_x_s12_l1 != 0))))) && ((_x_s12_x == 0.0) && (s12_y == _x_s12_y))) && (_x_s12_z == 0.0)) || ( !((( !(s12_l2 != 0)) && ((s12_l0 != 0) && (s12_l1 != 0))) && ((delta == 0.0) && ( !(( !(s12_evt0 != 0)) && ( !(s12_evt1 != 0))))))))) && ((((s12_x == _x_s12_x) && (s12_y == _x_s12_y)) && ((s12_z == _x_s12_z) && ((( !(_x_s12_l2 != 0)) && (( !(_x_s12_l0 != 0)) && ( !(_x_s12_l1 != 0)))) || ((_x_s12_l2 != 0) && ((_x_s12_l0 != 0) && ( !(_x_s12_l1 != 0))))))) || ( !(((s12_l2 != 0) && (( !(s12_l0 != 0)) && ( !(s12_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s12_evt0 != 0)) && ( !(s12_evt1 != 0))))))))) && ((((s12_evt0 != 0) && ( !(s12_evt1 != 0))) && ((20.0 <= s12_x) && ( !(120.0 <= s12_y)))) || ( !(((delta == 0.0) && ( !(( !(s12_evt0 != 0)) && ( !(s12_evt1 != 0))))) && (((s12_l2 != 0) && (( !(s12_l0 != 0)) && ( !(s12_l1 != 0)))) && ((_x_s12_l2 != 0) && ((_x_s12_l0 != 0) && ( !(_x_s12_l1 != 0))))))))) && ((((s12_evt1 != 0) && ( !(s12_evt0 != 0))) && ((20.0 <= s12_x) && (120.0 <= s12_y))) || ( !(((delta == 0.0) && ( !(( !(s12_evt0 != 0)) && ( !(s12_evt1 != 0))))) && ((( !(_x_s12_l2 != 0)) && (( !(_x_s12_l0 != 0)) && ( !(_x_s12_l1 != 0)))) && ((s12_l2 != 0) && (( !(s12_l0 != 0)) && ( !(s12_l1 != 0))))))))) && (((s12_z == _x_s12_z) && (((s12_x == _x_s12_x) && (s12_y == _x_s12_y)) && (((s12_evt1 != 0) && ( !(s12_evt0 != 0))) && (( !(_x_s12_l2 != 0)) && (( !(_x_s12_l0 != 0)) && ( !(_x_s12_l1 != 0))))))) || ( !(((s12_l2 != 0) && ((s12_l0 != 0) && ( !(s12_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s12_evt0 != 0)) && ( !(s12_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_s11_evt0 != 0)) && ( !(_x_s11_evt1 != 0))) || ((_x_s11_evt0 != 0) && ( !(_x_s11_evt1 != 0)))) || (((_x_s11_evt1 != 0) && ( !(_x_s11_evt0 != 0))) || ((_x_s11_evt0 != 0) && (_x_s11_evt1 != 0)))) && ((((( !(_x_s11_l2 != 0)) && (( !(_x_s11_l0 != 0)) && ( !(_x_s11_l1 != 0)))) || (( !(_x_s11_l2 != 0)) && ((_x_s11_l0 != 0) && ( !(_x_s11_l1 != 0))))) || ((( !(_x_s11_l2 != 0)) && ((_x_s11_l1 != 0) && ( !(_x_s11_l0 != 0)))) || (( !(_x_s11_l2 != 0)) && ((_x_s11_l0 != 0) && (_x_s11_l1 != 0))))) || (((_x_s11_l2 != 0) && (( !(_x_s11_l0 != 0)) && ( !(_x_s11_l1 != 0)))) || ((_x_s11_l2 != 0) && ((_x_s11_l0 != 0) && ( !(_x_s11_l1 != 0))))))) && ((_x_s11_x <= 20.0) || ( !(( !(_x_s11_l2 != 0)) && ((_x_s11_l0 != 0) && ( !(_x_s11_l1 != 0))))))) && ((_x_s11_x <= 120.0) || ( !(( !(_x_s11_l2 != 0)) && ((_x_s11_l1 != 0) && ( !(_x_s11_l0 != 0))))))) && ((_x_s11_x <= 120.0) || ( !((_x_s11_l2 != 0) && ((_x_s11_l0 != 0) && ( !(_x_s11_l1 != 0))))))) && ((delta <= 0.0) || ((((delta + (s11_x + (-1.0 * _x_s11_x))) == 0.0) && ((delta + (s11_y + (-1.0 * _x_s11_y))) == 0.0)) && (((((s11_l0 != 0) == (_x_s11_l0 != 0)) && ((s11_l1 != 0) == (_x_s11_l1 != 0))) && ((s11_l2 != 0) == (_x_s11_l2 != 0))) && ((delta + (s11_z + (-1.0 * _x_s11_z))) == 0.0))))) && (((((((s11_l0 != 0) == (_x_s11_l0 != 0)) && ((s11_l1 != 0) == (_x_s11_l1 != 0))) && ((s11_l2 != 0) == (_x_s11_l2 != 0))) && ((delta + (s11_x + (-1.0 * _x_s11_x))) == 0.0)) && (((delta + (s11_y + (-1.0 * _x_s11_y))) == 0.0) && ((delta + (s11_z + (-1.0 * _x_s11_z))) == 0.0))) || ( !(( !(s11_evt0 != 0)) && ( !(s11_evt1 != 0)))))) && ((((((s11_evt0 != 0) && (s11_evt1 != 0)) && (( !(_x_s11_l2 != 0)) && ((_x_s11_l0 != 0) && ( !(_x_s11_l1 != 0))))) && ((_x_s11_x == 0.0) && (_x_s11_y == 0.0))) && (s11_z == _x_s11_z)) || ( !((( !(s11_l2 != 0)) && (( !(s11_l0 != 0)) && ( !(s11_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s11_evt0 != 0)) && ( !(s11_evt1 != 0))))))))) && (((((( !(_x_s11_l2 != 0)) && ((_x_s11_l1 != 0) && ( !(_x_s11_l0 != 0)))) || (( !(_x_s11_l2 != 0)) && ((_x_s11_l0 != 0) && (_x_s11_l1 != 0)))) && (s11_x == _x_s11_x)) && ((s11_z == _x_s11_z) && (s11_y == _x_s11_y))) || ( !((( !(s11_l2 != 0)) && ((s11_l0 != 0) && ( !(s11_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s11_evt0 != 0)) && ( !(s11_evt1 != 0))))))))) && ((((s11_evt0 != 0) && ( !(s11_evt1 != 0))) && ((20.0 <= s11_x) && ( !(120.0 <= s11_z)))) || ( !(((delta == 0.0) && ( !(( !(s11_evt0 != 0)) && ( !(s11_evt1 != 0))))) && ((( !(s11_l2 != 0)) && ((s11_l0 != 0) && ( !(s11_l1 != 0)))) && (( !(_x_s11_l2 != 0)) && ((_x_s11_l1 != 0) && ( !(_x_s11_l0 != 0))))))))) && ((((s11_evt1 != 0) && ( !(s11_evt0 != 0))) && ((20.0 <= s11_x) && (120.0 <= s11_z))) || ( !(((delta == 0.0) && ( !(( !(s11_evt0 != 0)) && ( !(s11_evt1 != 0))))) && ((( !(s11_l2 != 0)) && ((s11_l0 != 0) && ( !(s11_l1 != 0)))) && (( !(_x_s11_l2 != 0)) && ((_x_s11_l0 != 0) && (_x_s11_l1 != 0)))))))) && (((s11_z == _x_s11_z) && ((((s11_evt1 != 0) && ( !(s11_evt0 != 0))) && (( !(_x_s11_l2 != 0)) && ((_x_s11_l0 != 0) && (_x_s11_l1 != 0)))) && ((s11_x == _x_s11_x) && (s11_y == _x_s11_y)))) || ( !((( !(s11_l2 != 0)) && ((s11_l1 != 0) && ( !(s11_l0 != 0)))) && ((delta == 0.0) && ( !(( !(s11_evt0 != 0)) && ( !(s11_evt1 != 0))))))))) && ((((((s11_evt0 != 0) && (s11_evt1 != 0)) && ((_x_s11_l2 != 0) && (( !(_x_s11_l0 != 0)) && ( !(_x_s11_l1 != 0))))) && ((_x_s11_x == 0.0) && (s11_y == _x_s11_y))) && (_x_s11_z == 0.0)) || ( !((( !(s11_l2 != 0)) && ((s11_l0 != 0) && (s11_l1 != 0))) && ((delta == 0.0) && ( !(( !(s11_evt0 != 0)) && ( !(s11_evt1 != 0))))))))) && ((((s11_x == _x_s11_x) && (s11_y == _x_s11_y)) && ((s11_z == _x_s11_z) && ((( !(_x_s11_l2 != 0)) && (( !(_x_s11_l0 != 0)) && ( !(_x_s11_l1 != 0)))) || ((_x_s11_l2 != 0) && ((_x_s11_l0 != 0) && ( !(_x_s11_l1 != 0))))))) || ( !(((s11_l2 != 0) && (( !(s11_l0 != 0)) && ( !(s11_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s11_evt0 != 0)) && ( !(s11_evt1 != 0))))))))) && ((((s11_evt0 != 0) && ( !(s11_evt1 != 0))) && ((20.0 <= s11_x) && ( !(120.0 <= s11_y)))) || ( !(((delta == 0.0) && ( !(( !(s11_evt0 != 0)) && ( !(s11_evt1 != 0))))) && (((s11_l2 != 0) && (( !(s11_l0 != 0)) && ( !(s11_l1 != 0)))) && ((_x_s11_l2 != 0) && ((_x_s11_l0 != 0) && ( !(_x_s11_l1 != 0))))))))) && ((((s11_evt1 != 0) && ( !(s11_evt0 != 0))) && ((20.0 <= s11_x) && (120.0 <= s11_y))) || ( !(((delta == 0.0) && ( !(( !(s11_evt0 != 0)) && ( !(s11_evt1 != 0))))) && ((( !(_x_s11_l2 != 0)) && (( !(_x_s11_l0 != 0)) && ( !(_x_s11_l1 != 0)))) && ((s11_l2 != 0) && (( !(s11_l0 != 0)) && ( !(s11_l1 != 0))))))))) && (((s11_z == _x_s11_z) && (((s11_x == _x_s11_x) && (s11_y == _x_s11_y)) && (((s11_evt1 != 0) && ( !(s11_evt0 != 0))) && (( !(_x_s11_l2 != 0)) && (( !(_x_s11_l0 != 0)) && ( !(_x_s11_l1 != 0))))))) || ( !(((s11_l2 != 0) && ((s11_l0 != 0) && ( !(s11_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s11_evt0 != 0)) && ( !(s11_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_s10_evt0 != 0)) && ( !(_x_s10_evt1 != 0))) || ((_x_s10_evt0 != 0) && ( !(_x_s10_evt1 != 0)))) || (((_x_s10_evt1 != 0) && ( !(_x_s10_evt0 != 0))) || ((_x_s10_evt0 != 0) && (_x_s10_evt1 != 0)))) && ((((( !(_x_s10_l2 != 0)) && (( !(_x_s10_l0 != 0)) && ( !(_x_s10_l1 != 0)))) || (( !(_x_s10_l2 != 0)) && ((_x_s10_l0 != 0) && ( !(_x_s10_l1 != 0))))) || ((( !(_x_s10_l2 != 0)) && ((_x_s10_l1 != 0) && ( !(_x_s10_l0 != 0)))) || (( !(_x_s10_l2 != 0)) && ((_x_s10_l0 != 0) && (_x_s10_l1 != 0))))) || (((_x_s10_l2 != 0) && (( !(_x_s10_l0 != 0)) && ( !(_x_s10_l1 != 0)))) || ((_x_s10_l2 != 0) && ((_x_s10_l0 != 0) && ( !(_x_s10_l1 != 0))))))) && ((_x_s10_x <= 20.0) || ( !(( !(_x_s10_l2 != 0)) && ((_x_s10_l0 != 0) && ( !(_x_s10_l1 != 0))))))) && ((_x_s10_x <= 120.0) || ( !(( !(_x_s10_l2 != 0)) && ((_x_s10_l1 != 0) && ( !(_x_s10_l0 != 0))))))) && ((_x_s10_x <= 120.0) || ( !((_x_s10_l2 != 0) && ((_x_s10_l0 != 0) && ( !(_x_s10_l1 != 0))))))) && ((delta <= 0.0) || ((((delta + (s10_x + (-1.0 * _x_s10_x))) == 0.0) && ((delta + (s10_y + (-1.0 * _x_s10_y))) == 0.0)) && (((((s10_l0 != 0) == (_x_s10_l0 != 0)) && ((s10_l1 != 0) == (_x_s10_l1 != 0))) && ((s10_l2 != 0) == (_x_s10_l2 != 0))) && ((delta + (s10_z + (-1.0 * _x_s10_z))) == 0.0))))) && (((((((s10_l0 != 0) == (_x_s10_l0 != 0)) && ((s10_l1 != 0) == (_x_s10_l1 != 0))) && ((s10_l2 != 0) == (_x_s10_l2 != 0))) && ((delta + (s10_x + (-1.0 * _x_s10_x))) == 0.0)) && (((delta + (s10_y + (-1.0 * _x_s10_y))) == 0.0) && ((delta + (s10_z + (-1.0 * _x_s10_z))) == 0.0))) || ( !(( !(s10_evt0 != 0)) && ( !(s10_evt1 != 0)))))) && ((((((s10_evt0 != 0) && (s10_evt1 != 0)) && (( !(_x_s10_l2 != 0)) && ((_x_s10_l0 != 0) && ( !(_x_s10_l1 != 0))))) && ((_x_s10_x == 0.0) && (_x_s10_y == 0.0))) && (s10_z == _x_s10_z)) || ( !((( !(s10_l2 != 0)) && (( !(s10_l0 != 0)) && ( !(s10_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s10_evt0 != 0)) && ( !(s10_evt1 != 0))))))))) && (((((( !(_x_s10_l2 != 0)) && ((_x_s10_l1 != 0) && ( !(_x_s10_l0 != 0)))) || (( !(_x_s10_l2 != 0)) && ((_x_s10_l0 != 0) && (_x_s10_l1 != 0)))) && (s10_x == _x_s10_x)) && ((s10_z == _x_s10_z) && (s10_y == _x_s10_y))) || ( !((( !(s10_l2 != 0)) && ((s10_l0 != 0) && ( !(s10_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s10_evt0 != 0)) && ( !(s10_evt1 != 0))))))))) && ((((s10_evt0 != 0) && ( !(s10_evt1 != 0))) && ((20.0 <= s10_x) && ( !(120.0 <= s10_z)))) || ( !(((delta == 0.0) && ( !(( !(s10_evt0 != 0)) && ( !(s10_evt1 != 0))))) && ((( !(s10_l2 != 0)) && ((s10_l0 != 0) && ( !(s10_l1 != 0)))) && (( !(_x_s10_l2 != 0)) && ((_x_s10_l1 != 0) && ( !(_x_s10_l0 != 0))))))))) && ((((s10_evt1 != 0) && ( !(s10_evt0 != 0))) && ((20.0 <= s10_x) && (120.0 <= s10_z))) || ( !(((delta == 0.0) && ( !(( !(s10_evt0 != 0)) && ( !(s10_evt1 != 0))))) && ((( !(s10_l2 != 0)) && ((s10_l0 != 0) && ( !(s10_l1 != 0)))) && (( !(_x_s10_l2 != 0)) && ((_x_s10_l0 != 0) && (_x_s10_l1 != 0)))))))) && (((s10_z == _x_s10_z) && ((((s10_evt1 != 0) && ( !(s10_evt0 != 0))) && (( !(_x_s10_l2 != 0)) && ((_x_s10_l0 != 0) && (_x_s10_l1 != 0)))) && ((s10_x == _x_s10_x) && (s10_y == _x_s10_y)))) || ( !((( !(s10_l2 != 0)) && ((s10_l1 != 0) && ( !(s10_l0 != 0)))) && ((delta == 0.0) && ( !(( !(s10_evt0 != 0)) && ( !(s10_evt1 != 0))))))))) && ((((((s10_evt0 != 0) && (s10_evt1 != 0)) && ((_x_s10_l2 != 0) && (( !(_x_s10_l0 != 0)) && ( !(_x_s10_l1 != 0))))) && ((_x_s10_x == 0.0) && (s10_y == _x_s10_y))) && (_x_s10_z == 0.0)) || ( !((( !(s10_l2 != 0)) && ((s10_l0 != 0) && (s10_l1 != 0))) && ((delta == 0.0) && ( !(( !(s10_evt0 != 0)) && ( !(s10_evt1 != 0))))))))) && ((((s10_x == _x_s10_x) && (s10_y == _x_s10_y)) && ((s10_z == _x_s10_z) && ((( !(_x_s10_l2 != 0)) && (( !(_x_s10_l0 != 0)) && ( !(_x_s10_l1 != 0)))) || ((_x_s10_l2 != 0) && ((_x_s10_l0 != 0) && ( !(_x_s10_l1 != 0))))))) || ( !(((s10_l2 != 0) && (( !(s10_l0 != 0)) && ( !(s10_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s10_evt0 != 0)) && ( !(s10_evt1 != 0))))))))) && ((((s10_evt0 != 0) && ( !(s10_evt1 != 0))) && ((20.0 <= s10_x) && ( !(120.0 <= s10_y)))) || ( !(((delta == 0.0) && ( !(( !(s10_evt0 != 0)) && ( !(s10_evt1 != 0))))) && (((s10_l2 != 0) && (( !(s10_l0 != 0)) && ( !(s10_l1 != 0)))) && ((_x_s10_l2 != 0) && ((_x_s10_l0 != 0) && ( !(_x_s10_l1 != 0))))))))) && ((((s10_evt1 != 0) && ( !(s10_evt0 != 0))) && ((20.0 <= s10_x) && (120.0 <= s10_y))) || ( !(((delta == 0.0) && ( !(( !(s10_evt0 != 0)) && ( !(s10_evt1 != 0))))) && ((( !(_x_s10_l2 != 0)) && (( !(_x_s10_l0 != 0)) && ( !(_x_s10_l1 != 0)))) && ((s10_l2 != 0) && (( !(s10_l0 != 0)) && ( !(s10_l1 != 0))))))))) && (((s10_z == _x_s10_z) && (((s10_x == _x_s10_x) && (s10_y == _x_s10_y)) && (((s10_evt1 != 0) && ( !(s10_evt0 != 0))) && (( !(_x_s10_l2 != 0)) && (( !(_x_s10_l0 != 0)) && ( !(_x_s10_l1 != 0))))))) || ( !(((s10_l2 != 0) && ((s10_l0 != 0) && ( !(s10_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s10_evt0 != 0)) && ( !(s10_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_s9_evt0 != 0)) && ( !(_x_s9_evt1 != 0))) || ((_x_s9_evt0 != 0) && ( !(_x_s9_evt1 != 0)))) || (((_x_s9_evt1 != 0) && ( !(_x_s9_evt0 != 0))) || ((_x_s9_evt0 != 0) && (_x_s9_evt1 != 0)))) && ((((( !(_x_s9_l2 != 0)) && (( !(_x_s9_l0 != 0)) && ( !(_x_s9_l1 != 0)))) || (( !(_x_s9_l2 != 0)) && ((_x_s9_l0 != 0) && ( !(_x_s9_l1 != 0))))) || ((( !(_x_s9_l2 != 0)) && ((_x_s9_l1 != 0) && ( !(_x_s9_l0 != 0)))) || (( !(_x_s9_l2 != 0)) && ((_x_s9_l0 != 0) && (_x_s9_l1 != 0))))) || (((_x_s9_l2 != 0) && (( !(_x_s9_l0 != 0)) && ( !(_x_s9_l1 != 0)))) || ((_x_s9_l2 != 0) && ((_x_s9_l0 != 0) && ( !(_x_s9_l1 != 0))))))) && ((_x_s9_x <= 20.0) || ( !(( !(_x_s9_l2 != 0)) && ((_x_s9_l0 != 0) && ( !(_x_s9_l1 != 0))))))) && ((_x_s9_x <= 120.0) || ( !(( !(_x_s9_l2 != 0)) && ((_x_s9_l1 != 0) && ( !(_x_s9_l0 != 0))))))) && ((_x_s9_x <= 120.0) || ( !((_x_s9_l2 != 0) && ((_x_s9_l0 != 0) && ( !(_x_s9_l1 != 0))))))) && ((delta <= 0.0) || ((((delta + (s9_x + (-1.0 * _x_s9_x))) == 0.0) && ((delta + (s9_y + (-1.0 * _x_s9_y))) == 0.0)) && (((((s9_l0 != 0) == (_x_s9_l0 != 0)) && ((s9_l1 != 0) == (_x_s9_l1 != 0))) && ((s9_l2 != 0) == (_x_s9_l2 != 0))) && ((delta + (s9_z + (-1.0 * _x_s9_z))) == 0.0))))) && (((((((s9_l0 != 0) == (_x_s9_l0 != 0)) && ((s9_l1 != 0) == (_x_s9_l1 != 0))) && ((s9_l2 != 0) == (_x_s9_l2 != 0))) && ((delta + (s9_x + (-1.0 * _x_s9_x))) == 0.0)) && (((delta + (s9_y + (-1.0 * _x_s9_y))) == 0.0) && ((delta + (s9_z + (-1.0 * _x_s9_z))) == 0.0))) || ( !(( !(s9_evt0 != 0)) && ( !(s9_evt1 != 0)))))) && ((((((s9_evt0 != 0) && (s9_evt1 != 0)) && (( !(_x_s9_l2 != 0)) && ((_x_s9_l0 != 0) && ( !(_x_s9_l1 != 0))))) && ((_x_s9_x == 0.0) && (_x_s9_y == 0.0))) && (s9_z == _x_s9_z)) || ( !((( !(s9_l2 != 0)) && (( !(s9_l0 != 0)) && ( !(s9_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s9_evt0 != 0)) && ( !(s9_evt1 != 0))))))))) && (((((( !(_x_s9_l2 != 0)) && ((_x_s9_l1 != 0) && ( !(_x_s9_l0 != 0)))) || (( !(_x_s9_l2 != 0)) && ((_x_s9_l0 != 0) && (_x_s9_l1 != 0)))) && (s9_x == _x_s9_x)) && ((s9_z == _x_s9_z) && (s9_y == _x_s9_y))) || ( !((( !(s9_l2 != 0)) && ((s9_l0 != 0) && ( !(s9_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s9_evt0 != 0)) && ( !(s9_evt1 != 0))))))))) && ((((s9_evt0 != 0) && ( !(s9_evt1 != 0))) && ((20.0 <= s9_x) && ( !(120.0 <= s9_z)))) || ( !(((delta == 0.0) && ( !(( !(s9_evt0 != 0)) && ( !(s9_evt1 != 0))))) && ((( !(s9_l2 != 0)) && ((s9_l0 != 0) && ( !(s9_l1 != 0)))) && (( !(_x_s9_l2 != 0)) && ((_x_s9_l1 != 0) && ( !(_x_s9_l0 != 0))))))))) && ((((s9_evt1 != 0) && ( !(s9_evt0 != 0))) && ((20.0 <= s9_x) && (120.0 <= s9_z))) || ( !(((delta == 0.0) && ( !(( !(s9_evt0 != 0)) && ( !(s9_evt1 != 0))))) && ((( !(s9_l2 != 0)) && ((s9_l0 != 0) && ( !(s9_l1 != 0)))) && (( !(_x_s9_l2 != 0)) && ((_x_s9_l0 != 0) && (_x_s9_l1 != 0)))))))) && (((s9_z == _x_s9_z) && ((((s9_evt1 != 0) && ( !(s9_evt0 != 0))) && (( !(_x_s9_l2 != 0)) && ((_x_s9_l0 != 0) && (_x_s9_l1 != 0)))) && ((s9_x == _x_s9_x) && (s9_y == _x_s9_y)))) || ( !((( !(s9_l2 != 0)) && ((s9_l1 != 0) && ( !(s9_l0 != 0)))) && ((delta == 0.0) && ( !(( !(s9_evt0 != 0)) && ( !(s9_evt1 != 0))))))))) && ((((((s9_evt0 != 0) && (s9_evt1 != 0)) && ((_x_s9_l2 != 0) && (( !(_x_s9_l0 != 0)) && ( !(_x_s9_l1 != 0))))) && ((_x_s9_x == 0.0) && (s9_y == _x_s9_y))) && (_x_s9_z == 0.0)) || ( !((( !(s9_l2 != 0)) && ((s9_l0 != 0) && (s9_l1 != 0))) && ((delta == 0.0) && ( !(( !(s9_evt0 != 0)) && ( !(s9_evt1 != 0))))))))) && ((((s9_x == _x_s9_x) && (s9_y == _x_s9_y)) && ((s9_z == _x_s9_z) && ((( !(_x_s9_l2 != 0)) && (( !(_x_s9_l0 != 0)) && ( !(_x_s9_l1 != 0)))) || ((_x_s9_l2 != 0) && ((_x_s9_l0 != 0) && ( !(_x_s9_l1 != 0))))))) || ( !(((s9_l2 != 0) && (( !(s9_l0 != 0)) && ( !(s9_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s9_evt0 != 0)) && ( !(s9_evt1 != 0))))))))) && ((((s9_evt0 != 0) && ( !(s9_evt1 != 0))) && ((20.0 <= s9_x) && ( !(120.0 <= s9_y)))) || ( !(((delta == 0.0) && ( !(( !(s9_evt0 != 0)) && ( !(s9_evt1 != 0))))) && (((s9_l2 != 0) && (( !(s9_l0 != 0)) && ( !(s9_l1 != 0)))) && ((_x_s9_l2 != 0) && ((_x_s9_l0 != 0) && ( !(_x_s9_l1 != 0))))))))) && ((((s9_evt1 != 0) && ( !(s9_evt0 != 0))) && ((20.0 <= s9_x) && (120.0 <= s9_y))) || ( !(((delta == 0.0) && ( !(( !(s9_evt0 != 0)) && ( !(s9_evt1 != 0))))) && ((( !(_x_s9_l2 != 0)) && (( !(_x_s9_l0 != 0)) && ( !(_x_s9_l1 != 0)))) && ((s9_l2 != 0) && (( !(s9_l0 != 0)) && ( !(s9_l1 != 0))))))))) && (((s9_z == _x_s9_z) && (((s9_x == _x_s9_x) && (s9_y == _x_s9_y)) && (((s9_evt1 != 0) && ( !(s9_evt0 != 0))) && (( !(_x_s9_l2 != 0)) && (( !(_x_s9_l0 != 0)) && ( !(_x_s9_l1 != 0))))))) || ( !(((s9_l2 != 0) && ((s9_l0 != 0) && ( !(s9_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s9_evt0 != 0)) && ( !(s9_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_s8_evt0 != 0)) && ( !(_x_s8_evt1 != 0))) || ((_x_s8_evt0 != 0) && ( !(_x_s8_evt1 != 0)))) || (((_x_s8_evt1 != 0) && ( !(_x_s8_evt0 != 0))) || ((_x_s8_evt0 != 0) && (_x_s8_evt1 != 0)))) && ((((( !(_x_s8_l2 != 0)) && (( !(_x_s8_l0 != 0)) && ( !(_x_s8_l1 != 0)))) || (( !(_x_s8_l2 != 0)) && ((_x_s8_l0 != 0) && ( !(_x_s8_l1 != 0))))) || ((( !(_x_s8_l2 != 0)) && ((_x_s8_l1 != 0) && ( !(_x_s8_l0 != 0)))) || (( !(_x_s8_l2 != 0)) && ((_x_s8_l0 != 0) && (_x_s8_l1 != 0))))) || (((_x_s8_l2 != 0) && (( !(_x_s8_l0 != 0)) && ( !(_x_s8_l1 != 0)))) || ((_x_s8_l2 != 0) && ((_x_s8_l0 != 0) && ( !(_x_s8_l1 != 0))))))) && ((_x_s8_x <= 20.0) || ( !(( !(_x_s8_l2 != 0)) && ((_x_s8_l0 != 0) && ( !(_x_s8_l1 != 0))))))) && ((_x_s8_x <= 120.0) || ( !(( !(_x_s8_l2 != 0)) && ((_x_s8_l1 != 0) && ( !(_x_s8_l0 != 0))))))) && ((_x_s8_x <= 120.0) || ( !((_x_s8_l2 != 0) && ((_x_s8_l0 != 0) && ( !(_x_s8_l1 != 0))))))) && ((delta <= 0.0) || ((((delta + (s8_x + (-1.0 * _x_s8_x))) == 0.0) && ((delta + (s8_y + (-1.0 * _x_s8_y))) == 0.0)) && (((((s8_l0 != 0) == (_x_s8_l0 != 0)) && ((s8_l1 != 0) == (_x_s8_l1 != 0))) && ((s8_l2 != 0) == (_x_s8_l2 != 0))) && ((delta + (s8_z + (-1.0 * _x_s8_z))) == 0.0))))) && (((((((s8_l0 != 0) == (_x_s8_l0 != 0)) && ((s8_l1 != 0) == (_x_s8_l1 != 0))) && ((s8_l2 != 0) == (_x_s8_l2 != 0))) && ((delta + (s8_x + (-1.0 * _x_s8_x))) == 0.0)) && (((delta + (s8_y + (-1.0 * _x_s8_y))) == 0.0) && ((delta + (s8_z + (-1.0 * _x_s8_z))) == 0.0))) || ( !(( !(s8_evt0 != 0)) && ( !(s8_evt1 != 0)))))) && ((((((s8_evt0 != 0) && (s8_evt1 != 0)) && (( !(_x_s8_l2 != 0)) && ((_x_s8_l0 != 0) && ( !(_x_s8_l1 != 0))))) && ((_x_s8_x == 0.0) && (_x_s8_y == 0.0))) && (s8_z == _x_s8_z)) || ( !((( !(s8_l2 != 0)) && (( !(s8_l0 != 0)) && ( !(s8_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s8_evt0 != 0)) && ( !(s8_evt1 != 0))))))))) && (((((( !(_x_s8_l2 != 0)) && ((_x_s8_l1 != 0) && ( !(_x_s8_l0 != 0)))) || (( !(_x_s8_l2 != 0)) && ((_x_s8_l0 != 0) && (_x_s8_l1 != 0)))) && (s8_x == _x_s8_x)) && ((s8_z == _x_s8_z) && (s8_y == _x_s8_y))) || ( !((( !(s8_l2 != 0)) && ((s8_l0 != 0) && ( !(s8_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s8_evt0 != 0)) && ( !(s8_evt1 != 0))))))))) && ((((s8_evt0 != 0) && ( !(s8_evt1 != 0))) && ((20.0 <= s8_x) && ( !(120.0 <= s8_z)))) || ( !(((delta == 0.0) && ( !(( !(s8_evt0 != 0)) && ( !(s8_evt1 != 0))))) && ((( !(s8_l2 != 0)) && ((s8_l0 != 0) && ( !(s8_l1 != 0)))) && (( !(_x_s8_l2 != 0)) && ((_x_s8_l1 != 0) && ( !(_x_s8_l0 != 0))))))))) && ((((s8_evt1 != 0) && ( !(s8_evt0 != 0))) && ((20.0 <= s8_x) && (120.0 <= s8_z))) || ( !(((delta == 0.0) && ( !(( !(s8_evt0 != 0)) && ( !(s8_evt1 != 0))))) && ((( !(s8_l2 != 0)) && ((s8_l0 != 0) && ( !(s8_l1 != 0)))) && (( !(_x_s8_l2 != 0)) && ((_x_s8_l0 != 0) && (_x_s8_l1 != 0)))))))) && (((s8_z == _x_s8_z) && ((((s8_evt1 != 0) && ( !(s8_evt0 != 0))) && (( !(_x_s8_l2 != 0)) && ((_x_s8_l0 != 0) && (_x_s8_l1 != 0)))) && ((s8_x == _x_s8_x) && (s8_y == _x_s8_y)))) || ( !((( !(s8_l2 != 0)) && ((s8_l1 != 0) && ( !(s8_l0 != 0)))) && ((delta == 0.0) && ( !(( !(s8_evt0 != 0)) && ( !(s8_evt1 != 0))))))))) && ((((((s8_evt0 != 0) && (s8_evt1 != 0)) && ((_x_s8_l2 != 0) && (( !(_x_s8_l0 != 0)) && ( !(_x_s8_l1 != 0))))) && ((_x_s8_x == 0.0) && (s8_y == _x_s8_y))) && (_x_s8_z == 0.0)) || ( !((( !(s8_l2 != 0)) && ((s8_l0 != 0) && (s8_l1 != 0))) && ((delta == 0.0) && ( !(( !(s8_evt0 != 0)) && ( !(s8_evt1 != 0))))))))) && ((((s8_x == _x_s8_x) && (s8_y == _x_s8_y)) && ((s8_z == _x_s8_z) && ((( !(_x_s8_l2 != 0)) && (( !(_x_s8_l0 != 0)) && ( !(_x_s8_l1 != 0)))) || ((_x_s8_l2 != 0) && ((_x_s8_l0 != 0) && ( !(_x_s8_l1 != 0))))))) || ( !(((s8_l2 != 0) && (( !(s8_l0 != 0)) && ( !(s8_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s8_evt0 != 0)) && ( !(s8_evt1 != 0))))))))) && ((((s8_evt0 != 0) && ( !(s8_evt1 != 0))) && ((20.0 <= s8_x) && ( !(120.0 <= s8_y)))) || ( !(((delta == 0.0) && ( !(( !(s8_evt0 != 0)) && ( !(s8_evt1 != 0))))) && (((s8_l2 != 0) && (( !(s8_l0 != 0)) && ( !(s8_l1 != 0)))) && ((_x_s8_l2 != 0) && ((_x_s8_l0 != 0) && ( !(_x_s8_l1 != 0))))))))) && ((((s8_evt1 != 0) && ( !(s8_evt0 != 0))) && ((20.0 <= s8_x) && (120.0 <= s8_y))) || ( !(((delta == 0.0) && ( !(( !(s8_evt0 != 0)) && ( !(s8_evt1 != 0))))) && ((( !(_x_s8_l2 != 0)) && (( !(_x_s8_l0 != 0)) && ( !(_x_s8_l1 != 0)))) && ((s8_l2 != 0) && (( !(s8_l0 != 0)) && ( !(s8_l1 != 0))))))))) && (((s8_z == _x_s8_z) && (((s8_x == _x_s8_x) && (s8_y == _x_s8_y)) && (((s8_evt1 != 0) && ( !(s8_evt0 != 0))) && (( !(_x_s8_l2 != 0)) && (( !(_x_s8_l0 != 0)) && ( !(_x_s8_l1 != 0))))))) || ( !(((s8_l2 != 0) && ((s8_l0 != 0) && ( !(s8_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s8_evt0 != 0)) && ( !(s8_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_s7_evt0 != 0)) && ( !(_x_s7_evt1 != 0))) || ((_x_s7_evt0 != 0) && ( !(_x_s7_evt1 != 0)))) || (((_x_s7_evt1 != 0) && ( !(_x_s7_evt0 != 0))) || ((_x_s7_evt0 != 0) && (_x_s7_evt1 != 0)))) && ((((( !(_x_s7_l2 != 0)) && (( !(_x_s7_l0 != 0)) && ( !(_x_s7_l1 != 0)))) || (( !(_x_s7_l2 != 0)) && ((_x_s7_l0 != 0) && ( !(_x_s7_l1 != 0))))) || ((( !(_x_s7_l2 != 0)) && ((_x_s7_l1 != 0) && ( !(_x_s7_l0 != 0)))) || (( !(_x_s7_l2 != 0)) && ((_x_s7_l0 != 0) && (_x_s7_l1 != 0))))) || (((_x_s7_l2 != 0) && (( !(_x_s7_l0 != 0)) && ( !(_x_s7_l1 != 0)))) || ((_x_s7_l2 != 0) && ((_x_s7_l0 != 0) && ( !(_x_s7_l1 != 0))))))) && ((_x_s7_x <= 20.0) || ( !(( !(_x_s7_l2 != 0)) && ((_x_s7_l0 != 0) && ( !(_x_s7_l1 != 0))))))) && ((_x_s7_x <= 120.0) || ( !(( !(_x_s7_l2 != 0)) && ((_x_s7_l1 != 0) && ( !(_x_s7_l0 != 0))))))) && ((_x_s7_x <= 120.0) || ( !((_x_s7_l2 != 0) && ((_x_s7_l0 != 0) && ( !(_x_s7_l1 != 0))))))) && ((delta <= 0.0) || ((((delta + (s7_x + (-1.0 * _x_s7_x))) == 0.0) && ((delta + (s7_y + (-1.0 * _x_s7_y))) == 0.0)) && (((((s7_l0 != 0) == (_x_s7_l0 != 0)) && ((s7_l1 != 0) == (_x_s7_l1 != 0))) && ((s7_l2 != 0) == (_x_s7_l2 != 0))) && ((delta + (s7_z + (-1.0 * _x_s7_z))) == 0.0))))) && (((((((s7_l0 != 0) == (_x_s7_l0 != 0)) && ((s7_l1 != 0) == (_x_s7_l1 != 0))) && ((s7_l2 != 0) == (_x_s7_l2 != 0))) && ((delta + (s7_x + (-1.0 * _x_s7_x))) == 0.0)) && (((delta + (s7_y + (-1.0 * _x_s7_y))) == 0.0) && ((delta + (s7_z + (-1.0 * _x_s7_z))) == 0.0))) || ( !(( !(s7_evt0 != 0)) && ( !(s7_evt1 != 0)))))) && ((((((s7_evt0 != 0) && (s7_evt1 != 0)) && (( !(_x_s7_l2 != 0)) && ((_x_s7_l0 != 0) && ( !(_x_s7_l1 != 0))))) && ((_x_s7_x == 0.0) && (_x_s7_y == 0.0))) && (s7_z == _x_s7_z)) || ( !((( !(s7_l2 != 0)) && (( !(s7_l0 != 0)) && ( !(s7_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s7_evt0 != 0)) && ( !(s7_evt1 != 0))))))))) && (((((( !(_x_s7_l2 != 0)) && ((_x_s7_l1 != 0) && ( !(_x_s7_l0 != 0)))) || (( !(_x_s7_l2 != 0)) && ((_x_s7_l0 != 0) && (_x_s7_l1 != 0)))) && (s7_x == _x_s7_x)) && ((s7_z == _x_s7_z) && (s7_y == _x_s7_y))) || ( !((( !(s7_l2 != 0)) && ((s7_l0 != 0) && ( !(s7_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s7_evt0 != 0)) && ( !(s7_evt1 != 0))))))))) && ((((s7_evt0 != 0) && ( !(s7_evt1 != 0))) && ((20.0 <= s7_x) && ( !(120.0 <= s7_z)))) || ( !(((delta == 0.0) && ( !(( !(s7_evt0 != 0)) && ( !(s7_evt1 != 0))))) && ((( !(s7_l2 != 0)) && ((s7_l0 != 0) && ( !(s7_l1 != 0)))) && (( !(_x_s7_l2 != 0)) && ((_x_s7_l1 != 0) && ( !(_x_s7_l0 != 0))))))))) && ((((s7_evt1 != 0) && ( !(s7_evt0 != 0))) && ((20.0 <= s7_x) && (120.0 <= s7_z))) || ( !(((delta == 0.0) && ( !(( !(s7_evt0 != 0)) && ( !(s7_evt1 != 0))))) && ((( !(s7_l2 != 0)) && ((s7_l0 != 0) && ( !(s7_l1 != 0)))) && (( !(_x_s7_l2 != 0)) && ((_x_s7_l0 != 0) && (_x_s7_l1 != 0)))))))) && (((s7_z == _x_s7_z) && ((((s7_evt1 != 0) && ( !(s7_evt0 != 0))) && (( !(_x_s7_l2 != 0)) && ((_x_s7_l0 != 0) && (_x_s7_l1 != 0)))) && ((s7_x == _x_s7_x) && (s7_y == _x_s7_y)))) || ( !((( !(s7_l2 != 0)) && ((s7_l1 != 0) && ( !(s7_l0 != 0)))) && ((delta == 0.0) && ( !(( !(s7_evt0 != 0)) && ( !(s7_evt1 != 0))))))))) && ((((((s7_evt0 != 0) && (s7_evt1 != 0)) && ((_x_s7_l2 != 0) && (( !(_x_s7_l0 != 0)) && ( !(_x_s7_l1 != 0))))) && ((_x_s7_x == 0.0) && (s7_y == _x_s7_y))) && (_x_s7_z == 0.0)) || ( !((( !(s7_l2 != 0)) && ((s7_l0 != 0) && (s7_l1 != 0))) && ((delta == 0.0) && ( !(( !(s7_evt0 != 0)) && ( !(s7_evt1 != 0))))))))) && ((((s7_x == _x_s7_x) && (s7_y == _x_s7_y)) && ((s7_z == _x_s7_z) && ((( !(_x_s7_l2 != 0)) && (( !(_x_s7_l0 != 0)) && ( !(_x_s7_l1 != 0)))) || ((_x_s7_l2 != 0) && ((_x_s7_l0 != 0) && ( !(_x_s7_l1 != 0))))))) || ( !(((s7_l2 != 0) && (( !(s7_l0 != 0)) && ( !(s7_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s7_evt0 != 0)) && ( !(s7_evt1 != 0))))))))) && ((((s7_evt0 != 0) && ( !(s7_evt1 != 0))) && ((20.0 <= s7_x) && ( !(120.0 <= s7_y)))) || ( !(((delta == 0.0) && ( !(( !(s7_evt0 != 0)) && ( !(s7_evt1 != 0))))) && (((s7_l2 != 0) && (( !(s7_l0 != 0)) && ( !(s7_l1 != 0)))) && ((_x_s7_l2 != 0) && ((_x_s7_l0 != 0) && ( !(_x_s7_l1 != 0))))))))) && ((((s7_evt1 != 0) && ( !(s7_evt0 != 0))) && ((20.0 <= s7_x) && (120.0 <= s7_y))) || ( !(((delta == 0.0) && ( !(( !(s7_evt0 != 0)) && ( !(s7_evt1 != 0))))) && ((( !(_x_s7_l2 != 0)) && (( !(_x_s7_l0 != 0)) && ( !(_x_s7_l1 != 0)))) && ((s7_l2 != 0) && (( !(s7_l0 != 0)) && ( !(s7_l1 != 0))))))))) && (((s7_z == _x_s7_z) && (((s7_x == _x_s7_x) && (s7_y == _x_s7_y)) && (((s7_evt1 != 0) && ( !(s7_evt0 != 0))) && (( !(_x_s7_l2 != 0)) && (( !(_x_s7_l0 != 0)) && ( !(_x_s7_l1 != 0))))))) || ( !(((s7_l2 != 0) && ((s7_l0 != 0) && ( !(s7_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s7_evt0 != 0)) && ( !(s7_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_s6_evt0 != 0)) && ( !(_x_s6_evt1 != 0))) || ((_x_s6_evt0 != 0) && ( !(_x_s6_evt1 != 0)))) || (((_x_s6_evt1 != 0) && ( !(_x_s6_evt0 != 0))) || ((_x_s6_evt0 != 0) && (_x_s6_evt1 != 0)))) && ((((( !(_x_s6_l2 != 0)) && (( !(_x_s6_l0 != 0)) && ( !(_x_s6_l1 != 0)))) || (( !(_x_s6_l2 != 0)) && ((_x_s6_l0 != 0) && ( !(_x_s6_l1 != 0))))) || ((( !(_x_s6_l2 != 0)) && ((_x_s6_l1 != 0) && ( !(_x_s6_l0 != 0)))) || (( !(_x_s6_l2 != 0)) && ((_x_s6_l0 != 0) && (_x_s6_l1 != 0))))) || (((_x_s6_l2 != 0) && (( !(_x_s6_l0 != 0)) && ( !(_x_s6_l1 != 0)))) || ((_x_s6_l2 != 0) && ((_x_s6_l0 != 0) && ( !(_x_s6_l1 != 0))))))) && ((_x_s6_x <= 20.0) || ( !(( !(_x_s6_l2 != 0)) && ((_x_s6_l0 != 0) && ( !(_x_s6_l1 != 0))))))) && ((_x_s6_x <= 120.0) || ( !(( !(_x_s6_l2 != 0)) && ((_x_s6_l1 != 0) && ( !(_x_s6_l0 != 0))))))) && ((_x_s6_x <= 120.0) || ( !((_x_s6_l2 != 0) && ((_x_s6_l0 != 0) && ( !(_x_s6_l1 != 0))))))) && ((delta <= 0.0) || ((((delta + (s6_x + (-1.0 * _x_s6_x))) == 0.0) && ((delta + (s6_y + (-1.0 * _x_s6_y))) == 0.0)) && (((((s6_l0 != 0) == (_x_s6_l0 != 0)) && ((s6_l1 != 0) == (_x_s6_l1 != 0))) && ((s6_l2 != 0) == (_x_s6_l2 != 0))) && ((delta + (s6_z + (-1.0 * _x_s6_z))) == 0.0))))) && (((((((s6_l0 != 0) == (_x_s6_l0 != 0)) && ((s6_l1 != 0) == (_x_s6_l1 != 0))) && ((s6_l2 != 0) == (_x_s6_l2 != 0))) && ((delta + (s6_x + (-1.0 * _x_s6_x))) == 0.0)) && (((delta + (s6_y + (-1.0 * _x_s6_y))) == 0.0) && ((delta + (s6_z + (-1.0 * _x_s6_z))) == 0.0))) || ( !(( !(s6_evt0 != 0)) && ( !(s6_evt1 != 0)))))) && ((((((s6_evt0 != 0) && (s6_evt1 != 0)) && (( !(_x_s6_l2 != 0)) && ((_x_s6_l0 != 0) && ( !(_x_s6_l1 != 0))))) && ((_x_s6_x == 0.0) && (_x_s6_y == 0.0))) && (s6_z == _x_s6_z)) || ( !((( !(s6_l2 != 0)) && (( !(s6_l0 != 0)) && ( !(s6_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s6_evt0 != 0)) && ( !(s6_evt1 != 0))))))))) && (((((( !(_x_s6_l2 != 0)) && ((_x_s6_l1 != 0) && ( !(_x_s6_l0 != 0)))) || (( !(_x_s6_l2 != 0)) && ((_x_s6_l0 != 0) && (_x_s6_l1 != 0)))) && (s6_x == _x_s6_x)) && ((s6_z == _x_s6_z) && (s6_y == _x_s6_y))) || ( !((( !(s6_l2 != 0)) && ((s6_l0 != 0) && ( !(s6_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s6_evt0 != 0)) && ( !(s6_evt1 != 0))))))))) && ((((s6_evt0 != 0) && ( !(s6_evt1 != 0))) && ((20.0 <= s6_x) && ( !(120.0 <= s6_z)))) || ( !(((delta == 0.0) && ( !(( !(s6_evt0 != 0)) && ( !(s6_evt1 != 0))))) && ((( !(s6_l2 != 0)) && ((s6_l0 != 0) && ( !(s6_l1 != 0)))) && (( !(_x_s6_l2 != 0)) && ((_x_s6_l1 != 0) && ( !(_x_s6_l0 != 0))))))))) && ((((s6_evt1 != 0) && ( !(s6_evt0 != 0))) && ((20.0 <= s6_x) && (120.0 <= s6_z))) || ( !(((delta == 0.0) && ( !(( !(s6_evt0 != 0)) && ( !(s6_evt1 != 0))))) && ((( !(s6_l2 != 0)) && ((s6_l0 != 0) && ( !(s6_l1 != 0)))) && (( !(_x_s6_l2 != 0)) && ((_x_s6_l0 != 0) && (_x_s6_l1 != 0)))))))) && (((s6_z == _x_s6_z) && ((((s6_evt1 != 0) && ( !(s6_evt0 != 0))) && (( !(_x_s6_l2 != 0)) && ((_x_s6_l0 != 0) && (_x_s6_l1 != 0)))) && ((s6_x == _x_s6_x) && (s6_y == _x_s6_y)))) || ( !((( !(s6_l2 != 0)) && ((s6_l1 != 0) && ( !(s6_l0 != 0)))) && ((delta == 0.0) && ( !(( !(s6_evt0 != 0)) && ( !(s6_evt1 != 0))))))))) && ((((((s6_evt0 != 0) && (s6_evt1 != 0)) && ((_x_s6_l2 != 0) && (( !(_x_s6_l0 != 0)) && ( !(_x_s6_l1 != 0))))) && ((_x_s6_x == 0.0) && (s6_y == _x_s6_y))) && (_x_s6_z == 0.0)) || ( !((( !(s6_l2 != 0)) && ((s6_l0 != 0) && (s6_l1 != 0))) && ((delta == 0.0) && ( !(( !(s6_evt0 != 0)) && ( !(s6_evt1 != 0))))))))) && ((((s6_x == _x_s6_x) && (s6_y == _x_s6_y)) && ((s6_z == _x_s6_z) && ((( !(_x_s6_l2 != 0)) && (( !(_x_s6_l0 != 0)) && ( !(_x_s6_l1 != 0)))) || ((_x_s6_l2 != 0) && ((_x_s6_l0 != 0) && ( !(_x_s6_l1 != 0))))))) || ( !(((s6_l2 != 0) && (( !(s6_l0 != 0)) && ( !(s6_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s6_evt0 != 0)) && ( !(s6_evt1 != 0))))))))) && ((((s6_evt0 != 0) && ( !(s6_evt1 != 0))) && ((20.0 <= s6_x) && ( !(120.0 <= s6_y)))) || ( !(((delta == 0.0) && ( !(( !(s6_evt0 != 0)) && ( !(s6_evt1 != 0))))) && (((s6_l2 != 0) && (( !(s6_l0 != 0)) && ( !(s6_l1 != 0)))) && ((_x_s6_l2 != 0) && ((_x_s6_l0 != 0) && ( !(_x_s6_l1 != 0))))))))) && ((((s6_evt1 != 0) && ( !(s6_evt0 != 0))) && ((20.0 <= s6_x) && (120.0 <= s6_y))) || ( !(((delta == 0.0) && ( !(( !(s6_evt0 != 0)) && ( !(s6_evt1 != 0))))) && ((( !(_x_s6_l2 != 0)) && (( !(_x_s6_l0 != 0)) && ( !(_x_s6_l1 != 0)))) && ((s6_l2 != 0) && (( !(s6_l0 != 0)) && ( !(s6_l1 != 0))))))))) && (((s6_z == _x_s6_z) && (((s6_x == _x_s6_x) && (s6_y == _x_s6_y)) && (((s6_evt1 != 0) && ( !(s6_evt0 != 0))) && (( !(_x_s6_l2 != 0)) && (( !(_x_s6_l0 != 0)) && ( !(_x_s6_l1 != 0))))))) || ( !(((s6_l2 != 0) && ((s6_l0 != 0) && ( !(s6_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s6_evt0 != 0)) && ( !(s6_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_s5_evt0 != 0)) && ( !(_x_s5_evt1 != 0))) || ((_x_s5_evt0 != 0) && ( !(_x_s5_evt1 != 0)))) || (((_x_s5_evt1 != 0) && ( !(_x_s5_evt0 != 0))) || ((_x_s5_evt0 != 0) && (_x_s5_evt1 != 0)))) && ((((( !(_x_s5_l2 != 0)) && (( !(_x_s5_l0 != 0)) && ( !(_x_s5_l1 != 0)))) || (( !(_x_s5_l2 != 0)) && ((_x_s5_l0 != 0) && ( !(_x_s5_l1 != 0))))) || ((( !(_x_s5_l2 != 0)) && ((_x_s5_l1 != 0) && ( !(_x_s5_l0 != 0)))) || (( !(_x_s5_l2 != 0)) && ((_x_s5_l0 != 0) && (_x_s5_l1 != 0))))) || (((_x_s5_l2 != 0) && (( !(_x_s5_l0 != 0)) && ( !(_x_s5_l1 != 0)))) || ((_x_s5_l2 != 0) && ((_x_s5_l0 != 0) && ( !(_x_s5_l1 != 0))))))) && ((_x_s5_x <= 20.0) || ( !(( !(_x_s5_l2 != 0)) && ((_x_s5_l0 != 0) && ( !(_x_s5_l1 != 0))))))) && ((_x_s5_x <= 120.0) || ( !(( !(_x_s5_l2 != 0)) && ((_x_s5_l1 != 0) && ( !(_x_s5_l0 != 0))))))) && ((_x_s5_x <= 120.0) || ( !((_x_s5_l2 != 0) && ((_x_s5_l0 != 0) && ( !(_x_s5_l1 != 0))))))) && ((delta <= 0.0) || ((((delta + (s5_x + (-1.0 * _x_s5_x))) == 0.0) && ((delta + (s5_y + (-1.0 * _x_s5_y))) == 0.0)) && (((((s5_l0 != 0) == (_x_s5_l0 != 0)) && ((s5_l1 != 0) == (_x_s5_l1 != 0))) && ((s5_l2 != 0) == (_x_s5_l2 != 0))) && ((delta + (s5_z + (-1.0 * _x_s5_z))) == 0.0))))) && (((((((s5_l0 != 0) == (_x_s5_l0 != 0)) && ((s5_l1 != 0) == (_x_s5_l1 != 0))) && ((s5_l2 != 0) == (_x_s5_l2 != 0))) && ((delta + (s5_x + (-1.0 * _x_s5_x))) == 0.0)) && (((delta + (s5_y + (-1.0 * _x_s5_y))) == 0.0) && ((delta + (s5_z + (-1.0 * _x_s5_z))) == 0.0))) || ( !(( !(s5_evt0 != 0)) && ( !(s5_evt1 != 0)))))) && ((((((s5_evt0 != 0) && (s5_evt1 != 0)) && (( !(_x_s5_l2 != 0)) && ((_x_s5_l0 != 0) && ( !(_x_s5_l1 != 0))))) && ((_x_s5_x == 0.0) && (_x_s5_y == 0.0))) && (s5_z == _x_s5_z)) || ( !((( !(s5_l2 != 0)) && (( !(s5_l0 != 0)) && ( !(s5_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s5_evt0 != 0)) && ( !(s5_evt1 != 0))))))))) && (((((( !(_x_s5_l2 != 0)) && ((_x_s5_l1 != 0) && ( !(_x_s5_l0 != 0)))) || (( !(_x_s5_l2 != 0)) && ((_x_s5_l0 != 0) && (_x_s5_l1 != 0)))) && (s5_x == _x_s5_x)) && ((s5_z == _x_s5_z) && (s5_y == _x_s5_y))) || ( !((( !(s5_l2 != 0)) && ((s5_l0 != 0) && ( !(s5_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s5_evt0 != 0)) && ( !(s5_evt1 != 0))))))))) && ((((s5_evt0 != 0) && ( !(s5_evt1 != 0))) && ((20.0 <= s5_x) && ( !(120.0 <= s5_z)))) || ( !(((delta == 0.0) && ( !(( !(s5_evt0 != 0)) && ( !(s5_evt1 != 0))))) && ((( !(s5_l2 != 0)) && ((s5_l0 != 0) && ( !(s5_l1 != 0)))) && (( !(_x_s5_l2 != 0)) && ((_x_s5_l1 != 0) && ( !(_x_s5_l0 != 0))))))))) && ((((s5_evt1 != 0) && ( !(s5_evt0 != 0))) && ((20.0 <= s5_x) && (120.0 <= s5_z))) || ( !(((delta == 0.0) && ( !(( !(s5_evt0 != 0)) && ( !(s5_evt1 != 0))))) && ((( !(s5_l2 != 0)) && ((s5_l0 != 0) && ( !(s5_l1 != 0)))) && (( !(_x_s5_l2 != 0)) && ((_x_s5_l0 != 0) && (_x_s5_l1 != 0)))))))) && (((s5_z == _x_s5_z) && ((((s5_evt1 != 0) && ( !(s5_evt0 != 0))) && (( !(_x_s5_l2 != 0)) && ((_x_s5_l0 != 0) && (_x_s5_l1 != 0)))) && ((s5_x == _x_s5_x) && (s5_y == _x_s5_y)))) || ( !((( !(s5_l2 != 0)) && ((s5_l1 != 0) && ( !(s5_l0 != 0)))) && ((delta == 0.0) && ( !(( !(s5_evt0 != 0)) && ( !(s5_evt1 != 0))))))))) && ((((((s5_evt0 != 0) && (s5_evt1 != 0)) && ((_x_s5_l2 != 0) && (( !(_x_s5_l0 != 0)) && ( !(_x_s5_l1 != 0))))) && ((_x_s5_x == 0.0) && (s5_y == _x_s5_y))) && (_x_s5_z == 0.0)) || ( !((( !(s5_l2 != 0)) && ((s5_l0 != 0) && (s5_l1 != 0))) && ((delta == 0.0) && ( !(( !(s5_evt0 != 0)) && ( !(s5_evt1 != 0))))))))) && ((((s5_x == _x_s5_x) && (s5_y == _x_s5_y)) && ((s5_z == _x_s5_z) && ((( !(_x_s5_l2 != 0)) && (( !(_x_s5_l0 != 0)) && ( !(_x_s5_l1 != 0)))) || ((_x_s5_l2 != 0) && ((_x_s5_l0 != 0) && ( !(_x_s5_l1 != 0))))))) || ( !(((s5_l2 != 0) && (( !(s5_l0 != 0)) && ( !(s5_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s5_evt0 != 0)) && ( !(s5_evt1 != 0))))))))) && ((((s5_evt0 != 0) && ( !(s5_evt1 != 0))) && ((20.0 <= s5_x) && ( !(120.0 <= s5_y)))) || ( !(((delta == 0.0) && ( !(( !(s5_evt0 != 0)) && ( !(s5_evt1 != 0))))) && (((s5_l2 != 0) && (( !(s5_l0 != 0)) && ( !(s5_l1 != 0)))) && ((_x_s5_l2 != 0) && ((_x_s5_l0 != 0) && ( !(_x_s5_l1 != 0))))))))) && ((((s5_evt1 != 0) && ( !(s5_evt0 != 0))) && ((20.0 <= s5_x) && (120.0 <= s5_y))) || ( !(((delta == 0.0) && ( !(( !(s5_evt0 != 0)) && ( !(s5_evt1 != 0))))) && ((( !(_x_s5_l2 != 0)) && (( !(_x_s5_l0 != 0)) && ( !(_x_s5_l1 != 0)))) && ((s5_l2 != 0) && (( !(s5_l0 != 0)) && ( !(s5_l1 != 0))))))))) && (((s5_z == _x_s5_z) && (((s5_x == _x_s5_x) && (s5_y == _x_s5_y)) && (((s5_evt1 != 0) && ( !(s5_evt0 != 0))) && (( !(_x_s5_l2 != 0)) && (( !(_x_s5_l0 != 0)) && ( !(_x_s5_l1 != 0))))))) || ( !(((s5_l2 != 0) && ((s5_l0 != 0) && ( !(s5_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s5_evt0 != 0)) && ( !(s5_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_s4_evt0 != 0)) && ( !(_x_s4_evt1 != 0))) || ((_x_s4_evt0 != 0) && ( !(_x_s4_evt1 != 0)))) || (((_x_s4_evt1 != 0) && ( !(_x_s4_evt0 != 0))) || ((_x_s4_evt0 != 0) && (_x_s4_evt1 != 0)))) && ((((( !(_x_s4_l2 != 0)) && (( !(_x_s4_l0 != 0)) && ( !(_x_s4_l1 != 0)))) || (( !(_x_s4_l2 != 0)) && ((_x_s4_l0 != 0) && ( !(_x_s4_l1 != 0))))) || ((( !(_x_s4_l2 != 0)) && ((_x_s4_l1 != 0) && ( !(_x_s4_l0 != 0)))) || (( !(_x_s4_l2 != 0)) && ((_x_s4_l0 != 0) && (_x_s4_l1 != 0))))) || (((_x_s4_l2 != 0) && (( !(_x_s4_l0 != 0)) && ( !(_x_s4_l1 != 0)))) || ((_x_s4_l2 != 0) && ((_x_s4_l0 != 0) && ( !(_x_s4_l1 != 0))))))) && ((_x_s4_x <= 20.0) || ( !(( !(_x_s4_l2 != 0)) && ((_x_s4_l0 != 0) && ( !(_x_s4_l1 != 0))))))) && ((_x_s4_x <= 120.0) || ( !(( !(_x_s4_l2 != 0)) && ((_x_s4_l1 != 0) && ( !(_x_s4_l0 != 0))))))) && ((_x_s4_x <= 120.0) || ( !((_x_s4_l2 != 0) && ((_x_s4_l0 != 0) && ( !(_x_s4_l1 != 0))))))) && ((delta <= 0.0) || ((((delta + (s4_x + (-1.0 * _x_s4_x))) == 0.0) && ((delta + (s4_y + (-1.0 * _x_s4_y))) == 0.0)) && (((((s4_l0 != 0) == (_x_s4_l0 != 0)) && ((s4_l1 != 0) == (_x_s4_l1 != 0))) && ((s4_l2 != 0) == (_x_s4_l2 != 0))) && ((delta + (s4_z + (-1.0 * _x_s4_z))) == 0.0))))) && (((((((s4_l0 != 0) == (_x_s4_l0 != 0)) && ((s4_l1 != 0) == (_x_s4_l1 != 0))) && ((s4_l2 != 0) == (_x_s4_l2 != 0))) && ((delta + (s4_x + (-1.0 * _x_s4_x))) == 0.0)) && (((delta + (s4_y + (-1.0 * _x_s4_y))) == 0.0) && ((delta + (s4_z + (-1.0 * _x_s4_z))) == 0.0))) || ( !(( !(s4_evt0 != 0)) && ( !(s4_evt1 != 0)))))) && ((((((s4_evt0 != 0) && (s4_evt1 != 0)) && (( !(_x_s4_l2 != 0)) && ((_x_s4_l0 != 0) && ( !(_x_s4_l1 != 0))))) && ((_x_s4_x == 0.0) && (_x_s4_y == 0.0))) && (s4_z == _x_s4_z)) || ( !((( !(s4_l2 != 0)) && (( !(s4_l0 != 0)) && ( !(s4_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s4_evt0 != 0)) && ( !(s4_evt1 != 0))))))))) && (((((( !(_x_s4_l2 != 0)) && ((_x_s4_l1 != 0) && ( !(_x_s4_l0 != 0)))) || (( !(_x_s4_l2 != 0)) && ((_x_s4_l0 != 0) && (_x_s4_l1 != 0)))) && (s4_x == _x_s4_x)) && ((s4_z == _x_s4_z) && (s4_y == _x_s4_y))) || ( !((( !(s4_l2 != 0)) && ((s4_l0 != 0) && ( !(s4_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s4_evt0 != 0)) && ( !(s4_evt1 != 0))))))))) && ((((s4_evt0 != 0) && ( !(s4_evt1 != 0))) && ((20.0 <= s4_x) && ( !(120.0 <= s4_z)))) || ( !(((delta == 0.0) && ( !(( !(s4_evt0 != 0)) && ( !(s4_evt1 != 0))))) && ((( !(s4_l2 != 0)) && ((s4_l0 != 0) && ( !(s4_l1 != 0)))) && (( !(_x_s4_l2 != 0)) && ((_x_s4_l1 != 0) && ( !(_x_s4_l0 != 0))))))))) && ((((s4_evt1 != 0) && ( !(s4_evt0 != 0))) && ((20.0 <= s4_x) && (120.0 <= s4_z))) || ( !(((delta == 0.0) && ( !(( !(s4_evt0 != 0)) && ( !(s4_evt1 != 0))))) && ((( !(s4_l2 != 0)) && ((s4_l0 != 0) && ( !(s4_l1 != 0)))) && (( !(_x_s4_l2 != 0)) && ((_x_s4_l0 != 0) && (_x_s4_l1 != 0)))))))) && (((s4_z == _x_s4_z) && ((((s4_evt1 != 0) && ( !(s4_evt0 != 0))) && (( !(_x_s4_l2 != 0)) && ((_x_s4_l0 != 0) && (_x_s4_l1 != 0)))) && ((s4_x == _x_s4_x) && (s4_y == _x_s4_y)))) || ( !((( !(s4_l2 != 0)) && ((s4_l1 != 0) && ( !(s4_l0 != 0)))) && ((delta == 0.0) && ( !(( !(s4_evt0 != 0)) && ( !(s4_evt1 != 0))))))))) && ((((((s4_evt0 != 0) && (s4_evt1 != 0)) && ((_x_s4_l2 != 0) && (( !(_x_s4_l0 != 0)) && ( !(_x_s4_l1 != 0))))) && ((_x_s4_x == 0.0) && (s4_y == _x_s4_y))) && (_x_s4_z == 0.0)) || ( !((( !(s4_l2 != 0)) && ((s4_l0 != 0) && (s4_l1 != 0))) && ((delta == 0.0) && ( !(( !(s4_evt0 != 0)) && ( !(s4_evt1 != 0))))))))) && ((((s4_x == _x_s4_x) && (s4_y == _x_s4_y)) && ((s4_z == _x_s4_z) && ((( !(_x_s4_l2 != 0)) && (( !(_x_s4_l0 != 0)) && ( !(_x_s4_l1 != 0)))) || ((_x_s4_l2 != 0) && ((_x_s4_l0 != 0) && ( !(_x_s4_l1 != 0))))))) || ( !(((s4_l2 != 0) && (( !(s4_l0 != 0)) && ( !(s4_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s4_evt0 != 0)) && ( !(s4_evt1 != 0))))))))) && ((((s4_evt0 != 0) && ( !(s4_evt1 != 0))) && ((20.0 <= s4_x) && ( !(120.0 <= s4_y)))) || ( !(((delta == 0.0) && ( !(( !(s4_evt0 != 0)) && ( !(s4_evt1 != 0))))) && (((s4_l2 != 0) && (( !(s4_l0 != 0)) && ( !(s4_l1 != 0)))) && ((_x_s4_l2 != 0) && ((_x_s4_l0 != 0) && ( !(_x_s4_l1 != 0))))))))) && ((((s4_evt1 != 0) && ( !(s4_evt0 != 0))) && ((20.0 <= s4_x) && (120.0 <= s4_y))) || ( !(((delta == 0.0) && ( !(( !(s4_evt0 != 0)) && ( !(s4_evt1 != 0))))) && ((( !(_x_s4_l2 != 0)) && (( !(_x_s4_l0 != 0)) && ( !(_x_s4_l1 != 0)))) && ((s4_l2 != 0) && (( !(s4_l0 != 0)) && ( !(s4_l1 != 0))))))))) && (((s4_z == _x_s4_z) && (((s4_x == _x_s4_x) && (s4_y == _x_s4_y)) && (((s4_evt1 != 0) && ( !(s4_evt0 != 0))) && (( !(_x_s4_l2 != 0)) && (( !(_x_s4_l0 != 0)) && ( !(_x_s4_l1 != 0))))))) || ( !(((s4_l2 != 0) && ((s4_l0 != 0) && ( !(s4_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s4_evt0 != 0)) && ( !(s4_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_s3_evt0 != 0)) && ( !(_x_s3_evt1 != 0))) || ((_x_s3_evt0 != 0) && ( !(_x_s3_evt1 != 0)))) || (((_x_s3_evt1 != 0) && ( !(_x_s3_evt0 != 0))) || ((_x_s3_evt0 != 0) && (_x_s3_evt1 != 0)))) && ((((( !(_x_s3_l2 != 0)) && (( !(_x_s3_l0 != 0)) && ( !(_x_s3_l1 != 0)))) || (( !(_x_s3_l2 != 0)) && ((_x_s3_l0 != 0) && ( !(_x_s3_l1 != 0))))) || ((( !(_x_s3_l2 != 0)) && ((_x_s3_l1 != 0) && ( !(_x_s3_l0 != 0)))) || (( !(_x_s3_l2 != 0)) && ((_x_s3_l0 != 0) && (_x_s3_l1 != 0))))) || (((_x_s3_l2 != 0) && (( !(_x_s3_l0 != 0)) && ( !(_x_s3_l1 != 0)))) || ((_x_s3_l2 != 0) && ((_x_s3_l0 != 0) && ( !(_x_s3_l1 != 0))))))) && ((_x_s3_x <= 20.0) || ( !(( !(_x_s3_l2 != 0)) && ((_x_s3_l0 != 0) && ( !(_x_s3_l1 != 0))))))) && ((_x_s3_x <= 120.0) || ( !(( !(_x_s3_l2 != 0)) && ((_x_s3_l1 != 0) && ( !(_x_s3_l0 != 0))))))) && ((_x_s3_x <= 120.0) || ( !((_x_s3_l2 != 0) && ((_x_s3_l0 != 0) && ( !(_x_s3_l1 != 0))))))) && ((delta <= 0.0) || ((((delta + (s3_x + (-1.0 * _x_s3_x))) == 0.0) && ((delta + (s3_y + (-1.0 * _x_s3_y))) == 0.0)) && (((((s3_l0 != 0) == (_x_s3_l0 != 0)) && ((s3_l1 != 0) == (_x_s3_l1 != 0))) && ((s3_l2 != 0) == (_x_s3_l2 != 0))) && ((delta + (s3_z + (-1.0 * _x_s3_z))) == 0.0))))) && (((((((s3_l0 != 0) == (_x_s3_l0 != 0)) && ((s3_l1 != 0) == (_x_s3_l1 != 0))) && ((s3_l2 != 0) == (_x_s3_l2 != 0))) && ((delta + (s3_x + (-1.0 * _x_s3_x))) == 0.0)) && (((delta + (s3_y + (-1.0 * _x_s3_y))) == 0.0) && ((delta + (s3_z + (-1.0 * _x_s3_z))) == 0.0))) || ( !(( !(s3_evt0 != 0)) && ( !(s3_evt1 != 0)))))) && ((((((s3_evt0 != 0) && (s3_evt1 != 0)) && (( !(_x_s3_l2 != 0)) && ((_x_s3_l0 != 0) && ( !(_x_s3_l1 != 0))))) && ((_x_s3_x == 0.0) && (_x_s3_y == 0.0))) && (s3_z == _x_s3_z)) || ( !((( !(s3_l2 != 0)) && (( !(s3_l0 != 0)) && ( !(s3_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s3_evt0 != 0)) && ( !(s3_evt1 != 0))))))))) && (((((( !(_x_s3_l2 != 0)) && ((_x_s3_l1 != 0) && ( !(_x_s3_l0 != 0)))) || (( !(_x_s3_l2 != 0)) && ((_x_s3_l0 != 0) && (_x_s3_l1 != 0)))) && (s3_x == _x_s3_x)) && ((s3_z == _x_s3_z) && (s3_y == _x_s3_y))) || ( !((( !(s3_l2 != 0)) && ((s3_l0 != 0) && ( !(s3_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s3_evt0 != 0)) && ( !(s3_evt1 != 0))))))))) && ((((s3_evt0 != 0) && ( !(s3_evt1 != 0))) && ((20.0 <= s3_x) && ( !(120.0 <= s3_z)))) || ( !(((delta == 0.0) && ( !(( !(s3_evt0 != 0)) && ( !(s3_evt1 != 0))))) && ((( !(s3_l2 != 0)) && ((s3_l0 != 0) && ( !(s3_l1 != 0)))) && (( !(_x_s3_l2 != 0)) && ((_x_s3_l1 != 0) && ( !(_x_s3_l0 != 0))))))))) && ((((s3_evt1 != 0) && ( !(s3_evt0 != 0))) && ((20.0 <= s3_x) && (120.0 <= s3_z))) || ( !(((delta == 0.0) && ( !(( !(s3_evt0 != 0)) && ( !(s3_evt1 != 0))))) && ((( !(s3_l2 != 0)) && ((s3_l0 != 0) && ( !(s3_l1 != 0)))) && (( !(_x_s3_l2 != 0)) && ((_x_s3_l0 != 0) && (_x_s3_l1 != 0)))))))) && (((s3_z == _x_s3_z) && ((((s3_evt1 != 0) && ( !(s3_evt0 != 0))) && (( !(_x_s3_l2 != 0)) && ((_x_s3_l0 != 0) && (_x_s3_l1 != 0)))) && ((s3_x == _x_s3_x) && (s3_y == _x_s3_y)))) || ( !((( !(s3_l2 != 0)) && ((s3_l1 != 0) && ( !(s3_l0 != 0)))) && ((delta == 0.0) && ( !(( !(s3_evt0 != 0)) && ( !(s3_evt1 != 0))))))))) && ((((((s3_evt0 != 0) && (s3_evt1 != 0)) && ((_x_s3_l2 != 0) && (( !(_x_s3_l0 != 0)) && ( !(_x_s3_l1 != 0))))) && ((_x_s3_x == 0.0) && (s3_y == _x_s3_y))) && (_x_s3_z == 0.0)) || ( !((( !(s3_l2 != 0)) && ((s3_l0 != 0) && (s3_l1 != 0))) && ((delta == 0.0) && ( !(( !(s3_evt0 != 0)) && ( !(s3_evt1 != 0))))))))) && ((((s3_x == _x_s3_x) && (s3_y == _x_s3_y)) && ((s3_z == _x_s3_z) && ((( !(_x_s3_l2 != 0)) && (( !(_x_s3_l0 != 0)) && ( !(_x_s3_l1 != 0)))) || ((_x_s3_l2 != 0) && ((_x_s3_l0 != 0) && ( !(_x_s3_l1 != 0))))))) || ( !(((s3_l2 != 0) && (( !(s3_l0 != 0)) && ( !(s3_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s3_evt0 != 0)) && ( !(s3_evt1 != 0))))))))) && ((((s3_evt0 != 0) && ( !(s3_evt1 != 0))) && ((20.0 <= s3_x) && ( !(120.0 <= s3_y)))) || ( !(((delta == 0.0) && ( !(( !(s3_evt0 != 0)) && ( !(s3_evt1 != 0))))) && (((s3_l2 != 0) && (( !(s3_l0 != 0)) && ( !(s3_l1 != 0)))) && ((_x_s3_l2 != 0) && ((_x_s3_l0 != 0) && ( !(_x_s3_l1 != 0))))))))) && ((((s3_evt1 != 0) && ( !(s3_evt0 != 0))) && ((20.0 <= s3_x) && (120.0 <= s3_y))) || ( !(((delta == 0.0) && ( !(( !(s3_evt0 != 0)) && ( !(s3_evt1 != 0))))) && ((( !(_x_s3_l2 != 0)) && (( !(_x_s3_l0 != 0)) && ( !(_x_s3_l1 != 0)))) && ((s3_l2 != 0) && (( !(s3_l0 != 0)) && ( !(s3_l1 != 0))))))))) && (((s3_z == _x_s3_z) && (((s3_x == _x_s3_x) && (s3_y == _x_s3_y)) && (((s3_evt1 != 0) && ( !(s3_evt0 != 0))) && (( !(_x_s3_l2 != 0)) && (( !(_x_s3_l0 != 0)) && ( !(_x_s3_l1 != 0))))))) || ( !(((s3_l2 != 0) && ((s3_l0 != 0) && ( !(s3_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s3_evt0 != 0)) && ( !(s3_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_s2_evt0 != 0)) && ( !(_x_s2_evt1 != 0))) || ((_x_s2_evt0 != 0) && ( !(_x_s2_evt1 != 0)))) || (((_x_s2_evt1 != 0) && ( !(_x_s2_evt0 != 0))) || ((_x_s2_evt0 != 0) && (_x_s2_evt1 != 0)))) && ((((( !(_x_s2_l2 != 0)) && (( !(_x_s2_l0 != 0)) && ( !(_x_s2_l1 != 0)))) || (( !(_x_s2_l2 != 0)) && ((_x_s2_l0 != 0) && ( !(_x_s2_l1 != 0))))) || ((( !(_x_s2_l2 != 0)) && ((_x_s2_l1 != 0) && ( !(_x_s2_l0 != 0)))) || (( !(_x_s2_l2 != 0)) && ((_x_s2_l0 != 0) && (_x_s2_l1 != 0))))) || (((_x_s2_l2 != 0) && (( !(_x_s2_l0 != 0)) && ( !(_x_s2_l1 != 0)))) || ((_x_s2_l2 != 0) && ((_x_s2_l0 != 0) && ( !(_x_s2_l1 != 0))))))) && ((_x_s2_x <= 20.0) || ( !(( !(_x_s2_l2 != 0)) && ((_x_s2_l0 != 0) && ( !(_x_s2_l1 != 0))))))) && ((_x_s2_x <= 120.0) || ( !(( !(_x_s2_l2 != 0)) && ((_x_s2_l1 != 0) && ( !(_x_s2_l0 != 0))))))) && ((_x_s2_x <= 120.0) || ( !((_x_s2_l2 != 0) && ((_x_s2_l0 != 0) && ( !(_x_s2_l1 != 0))))))) && ((delta <= 0.0) || ((((delta + (s2_x + (-1.0 * _x_s2_x))) == 0.0) && ((delta + (s2_y + (-1.0 * _x_s2_y))) == 0.0)) && (((((s2_l0 != 0) == (_x_s2_l0 != 0)) && ((s2_l1 != 0) == (_x_s2_l1 != 0))) && ((s2_l2 != 0) == (_x_s2_l2 != 0))) && ((delta + (s2_z + (-1.0 * _x_s2_z))) == 0.0))))) && (((((((s2_l0 != 0) == (_x_s2_l0 != 0)) && ((s2_l1 != 0) == (_x_s2_l1 != 0))) && ((s2_l2 != 0) == (_x_s2_l2 != 0))) && ((delta + (s2_x + (-1.0 * _x_s2_x))) == 0.0)) && (((delta + (s2_y + (-1.0 * _x_s2_y))) == 0.0) && ((delta + (s2_z + (-1.0 * _x_s2_z))) == 0.0))) || ( !(( !(s2_evt0 != 0)) && ( !(s2_evt1 != 0)))))) && ((((((s2_evt0 != 0) && (s2_evt1 != 0)) && (( !(_x_s2_l2 != 0)) && ((_x_s2_l0 != 0) && ( !(_x_s2_l1 != 0))))) && ((_x_s2_x == 0.0) && (_x_s2_y == 0.0))) && (s2_z == _x_s2_z)) || ( !((( !(s2_l2 != 0)) && (( !(s2_l0 != 0)) && ( !(s2_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s2_evt0 != 0)) && ( !(s2_evt1 != 0))))))))) && (((((( !(_x_s2_l2 != 0)) && ((_x_s2_l1 != 0) && ( !(_x_s2_l0 != 0)))) || (( !(_x_s2_l2 != 0)) && ((_x_s2_l0 != 0) && (_x_s2_l1 != 0)))) && (s2_x == _x_s2_x)) && ((s2_z == _x_s2_z) && (s2_y == _x_s2_y))) || ( !((( !(s2_l2 != 0)) && ((s2_l0 != 0) && ( !(s2_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s2_evt0 != 0)) && ( !(s2_evt1 != 0))))))))) && ((((s2_evt0 != 0) && ( !(s2_evt1 != 0))) && ((20.0 <= s2_x) && ( !(120.0 <= s2_z)))) || ( !(((delta == 0.0) && ( !(( !(s2_evt0 != 0)) && ( !(s2_evt1 != 0))))) && ((( !(s2_l2 != 0)) && ((s2_l0 != 0) && ( !(s2_l1 != 0)))) && (( !(_x_s2_l2 != 0)) && ((_x_s2_l1 != 0) && ( !(_x_s2_l0 != 0))))))))) && ((((s2_evt1 != 0) && ( !(s2_evt0 != 0))) && ((20.0 <= s2_x) && (120.0 <= s2_z))) || ( !(((delta == 0.0) && ( !(( !(s2_evt0 != 0)) && ( !(s2_evt1 != 0))))) && ((( !(s2_l2 != 0)) && ((s2_l0 != 0) && ( !(s2_l1 != 0)))) && (( !(_x_s2_l2 != 0)) && ((_x_s2_l0 != 0) && (_x_s2_l1 != 0)))))))) && (((s2_z == _x_s2_z) && ((((s2_evt1 != 0) && ( !(s2_evt0 != 0))) && (( !(_x_s2_l2 != 0)) && ((_x_s2_l0 != 0) && (_x_s2_l1 != 0)))) && ((s2_x == _x_s2_x) && (s2_y == _x_s2_y)))) || ( !((( !(s2_l2 != 0)) && ((s2_l1 != 0) && ( !(s2_l0 != 0)))) && ((delta == 0.0) && ( !(( !(s2_evt0 != 0)) && ( !(s2_evt1 != 0))))))))) && ((((((s2_evt0 != 0) && (s2_evt1 != 0)) && ((_x_s2_l2 != 0) && (( !(_x_s2_l0 != 0)) && ( !(_x_s2_l1 != 0))))) && ((_x_s2_x == 0.0) && (s2_y == _x_s2_y))) && (_x_s2_z == 0.0)) || ( !((( !(s2_l2 != 0)) && ((s2_l0 != 0) && (s2_l1 != 0))) && ((delta == 0.0) && ( !(( !(s2_evt0 != 0)) && ( !(s2_evt1 != 0))))))))) && ((((s2_x == _x_s2_x) && (s2_y == _x_s2_y)) && ((s2_z == _x_s2_z) && ((( !(_x_s2_l2 != 0)) && (( !(_x_s2_l0 != 0)) && ( !(_x_s2_l1 != 0)))) || ((_x_s2_l2 != 0) && ((_x_s2_l0 != 0) && ( !(_x_s2_l1 != 0))))))) || ( !(((s2_l2 != 0) && (( !(s2_l0 != 0)) && ( !(s2_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s2_evt0 != 0)) && ( !(s2_evt1 != 0))))))))) && ((((s2_evt0 != 0) && ( !(s2_evt1 != 0))) && ((20.0 <= s2_x) && ( !(120.0 <= s2_y)))) || ( !(((delta == 0.0) && ( !(( !(s2_evt0 != 0)) && ( !(s2_evt1 != 0))))) && (((s2_l2 != 0) && (( !(s2_l0 != 0)) && ( !(s2_l1 != 0)))) && ((_x_s2_l2 != 0) && ((_x_s2_l0 != 0) && ( !(_x_s2_l1 != 0))))))))) && ((((s2_evt1 != 0) && ( !(s2_evt0 != 0))) && ((20.0 <= s2_x) && (120.0 <= s2_y))) || ( !(((delta == 0.0) && ( !(( !(s2_evt0 != 0)) && ( !(s2_evt1 != 0))))) && ((( !(_x_s2_l2 != 0)) && (( !(_x_s2_l0 != 0)) && ( !(_x_s2_l1 != 0)))) && ((s2_l2 != 0) && (( !(s2_l0 != 0)) && ( !(s2_l1 != 0))))))))) && (((s2_z == _x_s2_z) && (((s2_x == _x_s2_x) && (s2_y == _x_s2_y)) && (((s2_evt1 != 0) && ( !(s2_evt0 != 0))) && (( !(_x_s2_l2 != 0)) && (( !(_x_s2_l0 != 0)) && ( !(_x_s2_l1 != 0))))))) || ( !(((s2_l2 != 0) && ((s2_l0 != 0) && ( !(s2_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s2_evt0 != 0)) && ( !(s2_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_s1_evt0 != 0)) && ( !(_x_s1_evt1 != 0))) || ((_x_s1_evt0 != 0) && ( !(_x_s1_evt1 != 0)))) || (((_x_s1_evt1 != 0) && ( !(_x_s1_evt0 != 0))) || ((_x_s1_evt0 != 0) && (_x_s1_evt1 != 0)))) && ((((( !(_x_s1_l2 != 0)) && (( !(_x_s1_l0 != 0)) && ( !(_x_s1_l1 != 0)))) || (( !(_x_s1_l2 != 0)) && ((_x_s1_l0 != 0) && ( !(_x_s1_l1 != 0))))) || ((( !(_x_s1_l2 != 0)) && ((_x_s1_l1 != 0) && ( !(_x_s1_l0 != 0)))) || (( !(_x_s1_l2 != 0)) && ((_x_s1_l0 != 0) && (_x_s1_l1 != 0))))) || (((_x_s1_l2 != 0) && (( !(_x_s1_l0 != 0)) && ( !(_x_s1_l1 != 0)))) || ((_x_s1_l2 != 0) && ((_x_s1_l0 != 0) && ( !(_x_s1_l1 != 0))))))) && ((_x_s1_x <= 20.0) || ( !(( !(_x_s1_l2 != 0)) && ((_x_s1_l0 != 0) && ( !(_x_s1_l1 != 0))))))) && ((_x_s1_x <= 120.0) || ( !(( !(_x_s1_l2 != 0)) && ((_x_s1_l1 != 0) && ( !(_x_s1_l0 != 0))))))) && ((_x_s1_x <= 120.0) || ( !((_x_s1_l2 != 0) && ((_x_s1_l0 != 0) && ( !(_x_s1_l1 != 0))))))) && ((delta <= 0.0) || ((((delta + (s1_x + (-1.0 * _x_s1_x))) == 0.0) && ((delta + (s1_y + (-1.0 * _x_s1_y))) == 0.0)) && (((((s1_l0 != 0) == (_x_s1_l0 != 0)) && ((s1_l1 != 0) == (_x_s1_l1 != 0))) && ((s1_l2 != 0) == (_x_s1_l2 != 0))) && ((delta + (s1_z + (-1.0 * _x_s1_z))) == 0.0))))) && (((((((s1_l0 != 0) == (_x_s1_l0 != 0)) && ((s1_l1 != 0) == (_x_s1_l1 != 0))) && ((s1_l2 != 0) == (_x_s1_l2 != 0))) && ((delta + (s1_x + (-1.0 * _x_s1_x))) == 0.0)) && (((delta + (s1_y + (-1.0 * _x_s1_y))) == 0.0) && ((delta + (s1_z + (-1.0 * _x_s1_z))) == 0.0))) || ( !(( !(s1_evt0 != 0)) && ( !(s1_evt1 != 0)))))) && ((((((s1_evt0 != 0) && (s1_evt1 != 0)) && (( !(_x_s1_l2 != 0)) && ((_x_s1_l0 != 0) && ( !(_x_s1_l1 != 0))))) && ((_x_s1_x == 0.0) && (_x_s1_y == 0.0))) && (s1_z == _x_s1_z)) || ( !((( !(s1_l2 != 0)) && (( !(s1_l0 != 0)) && ( !(s1_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s1_evt0 != 0)) && ( !(s1_evt1 != 0))))))))) && (((((( !(_x_s1_l2 != 0)) && ((_x_s1_l1 != 0) && ( !(_x_s1_l0 != 0)))) || (( !(_x_s1_l2 != 0)) && ((_x_s1_l0 != 0) && (_x_s1_l1 != 0)))) && (s1_x == _x_s1_x)) && ((s1_z == _x_s1_z) && (s1_y == _x_s1_y))) || ( !((( !(s1_l2 != 0)) && ((s1_l0 != 0) && ( !(s1_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s1_evt0 != 0)) && ( !(s1_evt1 != 0))))))))) && ((((s1_evt0 != 0) && ( !(s1_evt1 != 0))) && ((20.0 <= s1_x) && ( !(120.0 <= s1_z)))) || ( !(((delta == 0.0) && ( !(( !(s1_evt0 != 0)) && ( !(s1_evt1 != 0))))) && ((( !(s1_l2 != 0)) && ((s1_l0 != 0) && ( !(s1_l1 != 0)))) && (( !(_x_s1_l2 != 0)) && ((_x_s1_l1 != 0) && ( !(_x_s1_l0 != 0))))))))) && ((((s1_evt1 != 0) && ( !(s1_evt0 != 0))) && ((20.0 <= s1_x) && (120.0 <= s1_z))) || ( !(((delta == 0.0) && ( !(( !(s1_evt0 != 0)) && ( !(s1_evt1 != 0))))) && ((( !(s1_l2 != 0)) && ((s1_l0 != 0) && ( !(s1_l1 != 0)))) && (( !(_x_s1_l2 != 0)) && ((_x_s1_l0 != 0) && (_x_s1_l1 != 0)))))))) && (((s1_z == _x_s1_z) && ((((s1_evt1 != 0) && ( !(s1_evt0 != 0))) && (( !(_x_s1_l2 != 0)) && ((_x_s1_l0 != 0) && (_x_s1_l1 != 0)))) && ((s1_x == _x_s1_x) && (s1_y == _x_s1_y)))) || ( !((( !(s1_l2 != 0)) && ((s1_l1 != 0) && ( !(s1_l0 != 0)))) && ((delta == 0.0) && ( !(( !(s1_evt0 != 0)) && ( !(s1_evt1 != 0))))))))) && ((((((s1_evt0 != 0) && (s1_evt1 != 0)) && ((_x_s1_l2 != 0) && (( !(_x_s1_l0 != 0)) && ( !(_x_s1_l1 != 0))))) && ((_x_s1_x == 0.0) && (s1_y == _x_s1_y))) && (_x_s1_z == 0.0)) || ( !((( !(s1_l2 != 0)) && ((s1_l0 != 0) && (s1_l1 != 0))) && ((delta == 0.0) && ( !(( !(s1_evt0 != 0)) && ( !(s1_evt1 != 0))))))))) && ((((s1_x == _x_s1_x) && (s1_y == _x_s1_y)) && ((s1_z == _x_s1_z) && ((( !(_x_s1_l2 != 0)) && (( !(_x_s1_l0 != 0)) && ( !(_x_s1_l1 != 0)))) || ((_x_s1_l2 != 0) && ((_x_s1_l0 != 0) && ( !(_x_s1_l1 != 0))))))) || ( !(((s1_l2 != 0) && (( !(s1_l0 != 0)) && ( !(s1_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s1_evt0 != 0)) && ( !(s1_evt1 != 0))))))))) && ((((s1_evt0 != 0) && ( !(s1_evt1 != 0))) && ((20.0 <= s1_x) && ( !(120.0 <= s1_y)))) || ( !(((delta == 0.0) && ( !(( !(s1_evt0 != 0)) && ( !(s1_evt1 != 0))))) && (((s1_l2 != 0) && (( !(s1_l0 != 0)) && ( !(s1_l1 != 0)))) && ((_x_s1_l2 != 0) && ((_x_s1_l0 != 0) && ( !(_x_s1_l1 != 0))))))))) && ((((s1_evt1 != 0) && ( !(s1_evt0 != 0))) && ((20.0 <= s1_x) && (120.0 <= s1_y))) || ( !(((delta == 0.0) && ( !(( !(s1_evt0 != 0)) && ( !(s1_evt1 != 0))))) && ((( !(_x_s1_l2 != 0)) && (( !(_x_s1_l0 != 0)) && ( !(_x_s1_l1 != 0)))) && ((s1_l2 != 0) && (( !(s1_l0 != 0)) && ( !(s1_l1 != 0))))))))) && (((s1_z == _x_s1_z) && (((s1_x == _x_s1_x) && (s1_y == _x_s1_y)) && (((s1_evt1 != 0) && ( !(s1_evt0 != 0))) && (( !(_x_s1_l2 != 0)) && (( !(_x_s1_l0 != 0)) && ( !(_x_s1_l1 != 0))))))) || ( !(((s1_l2 != 0) && ((s1_l0 != 0) && ( !(s1_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s1_evt0 != 0)) && ( !(s1_evt1 != 0))))))))) && ((((((((((((((((((((( !(_x_s0_evt0 != 0)) && ( !(_x_s0_evt1 != 0))) || ((_x_s0_evt0 != 0) && ( !(_x_s0_evt1 != 0)))) || (((_x_s0_evt1 != 0) && ( !(_x_s0_evt0 != 0))) || ((_x_s0_evt0 != 0) && (_x_s0_evt1 != 0)))) && ((((( !(_x_s0_l2 != 0)) && (( !(_x_s0_l0 != 0)) && ( !(_x_s0_l1 != 0)))) || (( !(_x_s0_l2 != 0)) && ((_x_s0_l0 != 0) && ( !(_x_s0_l1 != 0))))) || ((( !(_x_s0_l2 != 0)) && ((_x_s0_l1 != 0) && ( !(_x_s0_l0 != 0)))) || (( !(_x_s0_l2 != 0)) && ((_x_s0_l0 != 0) && (_x_s0_l1 != 0))))) || (((_x_s0_l2 != 0) && (( !(_x_s0_l0 != 0)) && ( !(_x_s0_l1 != 0)))) || ((_x_s0_l2 != 0) && ((_x_s0_l0 != 0) && ( !(_x_s0_l1 != 0))))))) && ((_x_s0_x <= 20.0) || ( !(( !(_x_s0_l2 != 0)) && ((_x_s0_l0 != 0) && ( !(_x_s0_l1 != 0))))))) && ((_x_s0_x <= 120.0) || ( !(( !(_x_s0_l2 != 0)) && ((_x_s0_l1 != 0) && ( !(_x_s0_l0 != 0))))))) && ((_x_s0_x <= 120.0) || ( !((_x_s0_l2 != 0) && ((_x_s0_l0 != 0) && ( !(_x_s0_l1 != 0))))))) && ((delta <= 0.0) || ((((delta + (s0_x + (-1.0 * _x_s0_x))) == 0.0) && ((delta + (s0_y + (-1.0 * _x_s0_y))) == 0.0)) && (((((s0_l0 != 0) == (_x_s0_l0 != 0)) && ((s0_l1 != 0) == (_x_s0_l1 != 0))) && ((s0_l2 != 0) == (_x_s0_l2 != 0))) && ((delta + (s0_z + (-1.0 * _x_s0_z))) == 0.0))))) && (((((((s0_l0 != 0) == (_x_s0_l0 != 0)) && ((s0_l1 != 0) == (_x_s0_l1 != 0))) && ((s0_l2 != 0) == (_x_s0_l2 != 0))) && ((delta + (s0_x + (-1.0 * _x_s0_x))) == 0.0)) && (((delta + (s0_y + (-1.0 * _x_s0_y))) == 0.0) && ((delta + (s0_z + (-1.0 * _x_s0_z))) == 0.0))) || ( !(( !(s0_evt0 != 0)) && ( !(s0_evt1 != 0)))))) && ((((((s0_evt0 != 0) && (s0_evt1 != 0)) && (( !(_x_s0_l2 != 0)) && ((_x_s0_l0 != 0) && ( !(_x_s0_l1 != 0))))) && ((_x_s0_x == 0.0) && (_x_s0_y == 0.0))) && (s0_z == _x_s0_z)) || ( !((( !(s0_l2 != 0)) && (( !(s0_l0 != 0)) && ( !(s0_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s0_evt0 != 0)) && ( !(s0_evt1 != 0))))))))) && (((((( !(_x_s0_l2 != 0)) && ((_x_s0_l1 != 0) && ( !(_x_s0_l0 != 0)))) || (( !(_x_s0_l2 != 0)) && ((_x_s0_l0 != 0) && (_x_s0_l1 != 0)))) && (s0_x == _x_s0_x)) && ((s0_z == _x_s0_z) && (s0_y == _x_s0_y))) || ( !((( !(s0_l2 != 0)) && ((s0_l0 != 0) && ( !(s0_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s0_evt0 != 0)) && ( !(s0_evt1 != 0))))))))) && ((((s0_evt0 != 0) && ( !(s0_evt1 != 0))) && ((20.0 <= s0_x) && ( !(120.0 <= s0_z)))) || ( !(((delta == 0.0) && ( !(( !(s0_evt0 != 0)) && ( !(s0_evt1 != 0))))) && ((( !(s0_l2 != 0)) && ((s0_l0 != 0) && ( !(s0_l1 != 0)))) && (( !(_x_s0_l2 != 0)) && ((_x_s0_l1 != 0) && ( !(_x_s0_l0 != 0))))))))) && ((((s0_evt1 != 0) && ( !(s0_evt0 != 0))) && ((20.0 <= s0_x) && (120.0 <= s0_z))) || ( !(((delta == 0.0) && ( !(( !(s0_evt0 != 0)) && ( !(s0_evt1 != 0))))) && ((( !(s0_l2 != 0)) && ((s0_l0 != 0) && ( !(s0_l1 != 0)))) && (( !(_x_s0_l2 != 0)) && ((_x_s0_l0 != 0) && (_x_s0_l1 != 0)))))))) && (((s0_z == _x_s0_z) && ((((s0_evt1 != 0) && ( !(s0_evt0 != 0))) && (( !(_x_s0_l2 != 0)) && ((_x_s0_l0 != 0) && (_x_s0_l1 != 0)))) && ((s0_x == _x_s0_x) && (s0_y == _x_s0_y)))) || ( !((( !(s0_l2 != 0)) && ((s0_l1 != 0) && ( !(s0_l0 != 0)))) && ((delta == 0.0) && ( !(( !(s0_evt0 != 0)) && ( !(s0_evt1 != 0))))))))) && ((((((s0_evt0 != 0) && (s0_evt1 != 0)) && ((_x_s0_l2 != 0) && (( !(_x_s0_l0 != 0)) && ( !(_x_s0_l1 != 0))))) && ((_x_s0_x == 0.0) && (s0_y == _x_s0_y))) && (_x_s0_z == 0.0)) || ( !((( !(s0_l2 != 0)) && ((s0_l0 != 0) && (s0_l1 != 0))) && ((delta == 0.0) && ( !(( !(s0_evt0 != 0)) && ( !(s0_evt1 != 0))))))))) && ((((s0_x == _x_s0_x) && (s0_y == _x_s0_y)) && ((s0_z == _x_s0_z) && ((( !(_x_s0_l2 != 0)) && (( !(_x_s0_l0 != 0)) && ( !(_x_s0_l1 != 0)))) || ((_x_s0_l2 != 0) && ((_x_s0_l0 != 0) && ( !(_x_s0_l1 != 0))))))) || ( !(((s0_l2 != 0) && (( !(s0_l0 != 0)) && ( !(s0_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s0_evt0 != 0)) && ( !(s0_evt1 != 0))))))))) && ((((s0_evt0 != 0) && ( !(s0_evt1 != 0))) && ((20.0 <= s0_x) && ( !(120.0 <= s0_y)))) || ( !(((delta == 0.0) && ( !(( !(s0_evt0 != 0)) && ( !(s0_evt1 != 0))))) && (((s0_l2 != 0) && (( !(s0_l0 != 0)) && ( !(s0_l1 != 0)))) && ((_x_s0_l2 != 0) && ((_x_s0_l0 != 0) && ( !(_x_s0_l1 != 0))))))))) && ((((s0_evt1 != 0) && ( !(s0_evt0 != 0))) && ((20.0 <= s0_x) && (120.0 <= s0_y))) || ( !(((delta == 0.0) && ( !(( !(s0_evt0 != 0)) && ( !(s0_evt1 != 0))))) && ((( !(_x_s0_l2 != 0)) && (( !(_x_s0_l0 != 0)) && ( !(_x_s0_l1 != 0)))) && ((s0_l2 != 0) && (( !(s0_l0 != 0)) && ( !(s0_l1 != 0))))))))) && (((s0_z == _x_s0_z) && (((s0_x == _x_s0_x) && (s0_y == _x_s0_y)) && (((s0_evt1 != 0) && ( !(s0_evt0 != 0))) && (( !(_x_s0_l2 != 0)) && (( !(_x_s0_l0 != 0)) && ( !(_x_s0_l1 != 0))))))) || ( !(((s0_l2 != 0) && ((s0_l0 != 0) && ( !(s0_l1 != 0)))) && ((delta == 0.0) && ( !(( !(s0_evt0 != 0)) && ( !(s0_evt1 != 0))))))))) && ((((((((((((((((((((((((((((((((((_x_r_evt_id == 0) || (_x_r_evt_id == 1)) || (_x_r_evt_id == 2)) || (_x_r_evt_id == 3)) || (_x_r_evt_id == 4)) || (_x_r_evt_id == 5)) || (_x_r_evt_id == 6)) || (_x_r_evt_id == 7)) || (_x_r_evt_id == 8)) || (_x_r_evt_id == 9)) || (_x_r_evt_id == 10)) || (_x_r_evt_id == 11)) || (_x_r_evt_id == 12)) || (_x_r_evt_id == 13)) || (_x_r_evt_id == 14)) || (_x_r_evt_id == 15)) || (_x_r_evt_id == 16)) || (_x_r_evt_id == 17)) || (_x_r_evt_id == 18)) || (_x_r_evt_id == 19)) || (_x_r_evt_id == 20)) || (_x_r_evt_id == 21)) || (_x_r_evt_id == 22)) || (_x_r_evt_id == 23)) || (_x_r_evt_id == 24)) || (_x_r_evt_id == 25)) && ((((((((((((((((((((((((((_x_r_counter == 0) || (_x_r_counter == 1)) || (_x_r_counter == 2)) || (_x_r_counter == 3)) || (_x_r_counter == 4)) || (_x_r_counter == 5)) || (_x_r_counter == 6)) || (_x_r_counter == 7)) || (_x_r_counter == 8)) || (_x_r_counter == 9)) || (_x_r_counter == 10)) || (_x_r_counter == 11)) || (_x_r_counter == 12)) || (_x_r_counter == 13)) || (_x_r_counter == 14)) || (_x_r_counter == 15)) || (_x_r_counter == 16)) || (_x_r_counter == 17)) || (_x_r_counter == 18)) || (_x_r_counter == 19)) || (_x_r_counter == 20)) || (_x_r_counter == 21)) || (_x_r_counter == 22)) || (_x_r_counter == 23)) || (_x_r_counter == 24)) || (_x_r_counter == 25))) && (( !(_x_r_l != 0)) || (_x_r_x <= 0.0))) && ((delta <= 0.0) || (((delta + (r_x + (-1.0 * _x_r_x))) == 0.0) && (((r_l != 0) == (_x_r_l != 0)) && (r_counter == _x_r_counter))))) && ((((r_l != 0) == (_x_r_l != 0)) && (((delta + (r_x + (-1.0 * _x_r_x))) == 0.0) && (r_counter == _x_r_counter))) || ( !(( !(r_event0 != 0)) && ( !(r_event1 != 0)))))) && ((((((r_event1 != 0) && ( !(r_event0 != 0))) && (r_x <= 0.0)) && (( !(_x_r_l != 0)) && (r_evt_id == r_counter))) && ((r_counter == _x_r_counter) && (r_x == _x_r_x))) || ( !((r_l != 0) && (( !(( !(r_event0 != 0)) && ( !(r_event1 != 0)))) && (delta == 0.0)))))) && (((_x_r_l != 0) && ((((r_event0 != 0) && ( !(r_event1 != 0))) && (r_evt_id == r_counter)) && ((_x_r_x == 0.0) && ((r_counter + (-1 * _x_r_counter)) == -1)))) || ( !((( !(( !(r_event0 != 0)) && ( !(r_event1 != 0)))) && (delta == 0.0)) && (( !(r_l != 0)) && ( !(25 <= r_counter))))))) && (((_x_r_l != 0) && ((((r_event0 != 0) && ( !(r_event1 != 0))) && (r_evt_id == r_counter)) && ((_x_r_counter == 0) && (_x_r_x == 0.0)))) || ( !((( !(( !(r_event0 != 0)) && ( !(r_event1 != 0)))) && (delta == 0.0)) && (( !(r_l != 0)) && (r_counter == 25)))))) && (0.0 <= _x_delta)))))))))))))))))))))))))))) && ((( !(( !(s25_evt0 != 0)) && ( !(s25_evt1 != 0)))) || (( !(( !(s24_evt0 != 0)) && ( !(s24_evt1 != 0)))) || (( !(( !(s23_evt0 != 0)) && ( !(s23_evt1 != 0)))) || (( !(( !(s22_evt0 != 0)) && ( !(s22_evt1 != 0)))) || (( !(( !(s21_evt0 != 0)) && ( !(s21_evt1 != 0)))) || (( !(( !(s20_evt0 != 0)) && ( !(s20_evt1 != 0)))) || (( !(( !(s19_evt0 != 0)) && ( !(s19_evt1 != 0)))) || (( !(( !(s18_evt0 != 0)) && ( !(s18_evt1 != 0)))) || (( !(( !(s17_evt0 != 0)) && ( !(s17_evt1 != 0)))) || (( !(( !(s16_evt0 != 0)) && ( !(s16_evt1 != 0)))) || (( !(( !(s15_evt0 != 0)) && ( !(s15_evt1 != 0)))) || (( !(( !(s14_evt0 != 0)) && ( !(s14_evt1 != 0)))) || (( !(( !(s13_evt0 != 0)) && ( !(s13_evt1 != 0)))) || (( !(( !(s12_evt0 != 0)) && ( !(s12_evt1 != 0)))) || (( !(( !(s11_evt0 != 0)) && ( !(s11_evt1 != 0)))) || (( !(( !(s10_evt0 != 0)) && ( !(s10_evt1 != 0)))) || (( !(( !(s9_evt0 != 0)) && ( !(s9_evt1 != 0)))) || (( !(( !(s8_evt0 != 0)) && ( !(s8_evt1 != 0)))) || (( !(( !(s7_evt0 != 0)) && ( !(s7_evt1 != 0)))) || (( !(( !(s6_evt0 != 0)) && ( !(s6_evt1 != 0)))) || (( !(( !(s5_evt0 != 0)) && ( !(s5_evt1 != 0)))) || (( !(( !(s4_evt0 != 0)) && ( !(s4_evt1 != 0)))) || (( !(( !(s3_evt0 != 0)) && ( !(s3_evt1 != 0)))) || (( !(( !(s2_evt0 != 0)) && ( !(s2_evt1 != 0)))) || (( !(( !(s1_evt0 != 0)) && ( !(s1_evt1 != 0)))) || (( !(( !(r_event0 != 0)) && ( !(r_event1 != 0)))) || ( !(( !(s0_evt0 != 0)) && ( !(s0_evt1 != 0)))))))))))))))))))))))))))))) || ( !(delta == 0.0)))) && (( !(delta == 0.0)) || (((s0_evt1 != 0) && ( !(s0_evt0 != 0))) == (((r_event0 != 0) && ( !(r_event1 != 0))) && (r_evt_id == 0))))) && (( !(delta == 0.0)) || (((s0_evt0 != 0) && (s0_evt1 != 0)) == (((r_event1 != 0) && ( !(r_event0 != 0))) && (r_evt_id == 0))))) && (( !(delta == 0.0)) || (((s1_evt1 != 0) && ( !(s1_evt0 != 0))) == (((r_event0 != 0) && ( !(r_event1 != 0))) && (r_evt_id == 1))))) && (( !(delta == 0.0)) || (((s1_evt0 != 0) && (s1_evt1 != 0)) == (((r_event1 != 0) && ( !(r_event0 != 0))) && (r_evt_id == 1))))) && (( !(delta == 0.0)) || (((s2_evt1 != 0) && ( !(s2_evt0 != 0))) == (((r_event0 != 0) && ( !(r_event1 != 0))) && (r_evt_id == 2))))) && (( !(delta == 0.0)) || (((s2_evt0 != 0) && (s2_evt1 != 0)) == (((r_event1 != 0) && ( !(r_event0 != 0))) && (r_evt_id == 2))))) && (( !(delta == 0.0)) || (((s3_evt1 != 0) && ( !(s3_evt0 != 0))) == (((r_event0 != 0) && ( !(r_event1 != 0))) && (r_evt_id == 3))))) && (( !(delta == 0.0)) || (((s3_evt0 != 0) && (s3_evt1 != 0)) == (((r_event1 != 0) && ( !(r_event0 != 0))) && (r_evt_id == 3))))) && (( !(delta == 0.0)) || (((s4_evt1 != 0) && ( !(s4_evt0 != 0))) == (((r_event0 != 0) && ( !(r_event1 != 0))) && (r_evt_id == 4))))) && (( !(delta == 0.0)) || (((s4_evt0 != 0) && (s4_evt1 != 0)) == (((r_event1 != 0) && ( !(r_event0 != 0))) && (r_evt_id == 4))))) && (( !(delta == 0.0)) || (((s5_evt1 != 0) && ( !(s5_evt0 != 0))) == (((r_event0 != 0) && ( !(r_event1 != 0))) && (r_evt_id == 5))))) && (( !(delta == 0.0)) || (((s5_evt0 != 0) && (s5_evt1 != 0)) == (((r_event1 != 0) && ( !(r_event0 != 0))) && (r_evt_id == 5))))) && (( !(delta == 0.0)) || (((s6_evt1 != 0) && ( !(s6_evt0 != 0))) == (((r_event0 != 0) && ( !(r_event1 != 0))) && (r_evt_id == 6))))) && (( !(delta == 0.0)) || (((s6_evt0 != 0) && (s6_evt1 != 0)) == (((r_event1 != 0) && ( !(r_event0 != 0))) && (r_evt_id == 6))))) && (( !(delta == 0.0)) || (((s7_evt1 != 0) && ( !(s7_evt0 != 0))) == (((r_event0 != 0) && ( !(r_event1 != 0))) && (r_evt_id == 7))))) && (( !(delta == 0.0)) || (((s7_evt0 != 0) && (s7_evt1 != 0)) == (((r_event1 != 0) && ( !(r_event0 != 0))) && (r_evt_id == 7))))) && (( !(delta == 0.0)) || (((s8_evt1 != 0) && ( !(s8_evt0 != 0))) == (((r_event0 != 0) && ( !(r_event1 != 0))) && (r_evt_id == 8))))) && (( !(delta == 0.0)) || (((s8_evt0 != 0) && (s8_evt1 != 0)) == (((r_event1 != 0) && ( !(r_event0 != 0))) && (r_evt_id == 8))))) && (( !(delta == 0.0)) || (((s9_evt1 != 0) && ( !(s9_evt0 != 0))) == (((r_event0 != 0) && ( !(r_event1 != 0))) && (r_evt_id == 9))))) && (( !(delta == 0.0)) || (((s9_evt0 != 0) && (s9_evt1 != 0)) == (((r_event1 != 0) && ( !(r_event0 != 0))) && (r_evt_id == 9))))) && (( !(delta == 0.0)) || (((s10_evt1 != 0) && ( !(s10_evt0 != 0))) == (((r_event0 != 0) && ( !(r_event1 != 0))) && (r_evt_id == 10))))) && (( !(delta == 0.0)) || (((s10_evt0 != 0) && (s10_evt1 != 0)) == (((r_event1 != 0) && ( !(r_event0 != 0))) && (r_evt_id == 10))))) && (( !(delta == 0.0)) || (((s11_evt1 != 0) && ( !(s11_evt0 != 0))) == (((r_event0 != 0) && ( !(r_event1 != 0))) && (r_evt_id == 11))))) && (( !(delta == 0.0)) || (((s11_evt0 != 0) && (s11_evt1 != 0)) == (((r_event1 != 0) && ( !(r_event0 != 0))) && (r_evt_id == 11))))) && (( !(delta == 0.0)) || (((s12_evt1 != 0) && ( !(s12_evt0 != 0))) == (((r_event0 != 0) && ( !(r_event1 != 0))) && (r_evt_id == 12))))) && (( !(delta == 0.0)) || (((s12_evt0 != 0) && (s12_evt1 != 0)) == (((r_event1 != 0) && ( !(r_event0 != 0))) && (r_evt_id == 12))))) && (( !(delta == 0.0)) || (((s13_evt1 != 0) && ( !(s13_evt0 != 0))) == (((r_event0 != 0) && ( !(r_event1 != 0))) && (r_evt_id == 13))))) && (( !(delta == 0.0)) || (((s13_evt0 != 0) && (s13_evt1 != 0)) == (((r_event1 != 0) && ( !(r_event0 != 0))) && (r_evt_id == 13))))) && (( !(delta == 0.0)) || (((s14_evt1 != 0) && ( !(s14_evt0 != 0))) == (((r_event0 != 0) && ( !(r_event1 != 0))) && (r_evt_id == 14))))) && (( !(delta == 0.0)) || (((s14_evt0 != 0) && (s14_evt1 != 0)) == (((r_event1 != 0) && ( !(r_event0 != 0))) && (r_evt_id == 14))))) && (( !(delta == 0.0)) || (((s15_evt1 != 0) && ( !(s15_evt0 != 0))) == (((r_event0 != 0) && ( !(r_event1 != 0))) && (r_evt_id == 15))))) && (( !(delta == 0.0)) || (((s15_evt0 != 0) && (s15_evt1 != 0)) == (((r_event1 != 0) && ( !(r_event0 != 0))) && (r_evt_id == 15))))) && (( !(delta == 0.0)) || (((s16_evt1 != 0) && ( !(s16_evt0 != 0))) == (((r_event0 != 0) && ( !(r_event1 != 0))) && (r_evt_id == 16))))) && (( !(delta == 0.0)) || (((s16_evt0 != 0) && (s16_evt1 != 0)) == (((r_event1 != 0) && ( !(r_event0 != 0))) && (r_evt_id == 16))))) && (( !(delta == 0.0)) || (((s17_evt1 != 0) && ( !(s17_evt0 != 0))) == (((r_event0 != 0) && ( !(r_event1 != 0))) && (r_evt_id == 17))))) && (( !(delta == 0.0)) || (((s17_evt0 != 0) && (s17_evt1 != 0)) == (((r_event1 != 0) && ( !(r_event0 != 0))) && (r_evt_id == 17))))) && (( !(delta == 0.0)) || (((s18_evt1 != 0) && ( !(s18_evt0 != 0))) == (((r_event0 != 0) && ( !(r_event1 != 0))) && (r_evt_id == 18))))) && (( !(delta == 0.0)) || (((s18_evt0 != 0) && (s18_evt1 != 0)) == (((r_event1 != 0) && ( !(r_event0 != 0))) && (r_evt_id == 18))))) && (( !(delta == 0.0)) || (((s19_evt1 != 0) && ( !(s19_evt0 != 0))) == (((r_event0 != 0) && ( !(r_event1 != 0))) && (r_evt_id == 19))))) && (( !(delta == 0.0)) || (((s19_evt0 != 0) && (s19_evt1 != 0)) == (((r_event1 != 0) && ( !(r_event0 != 0))) && (r_evt_id == 19))))) && (( !(delta == 0.0)) || (((s20_evt1 != 0) && ( !(s20_evt0 != 0))) == (((r_event0 != 0) && ( !(r_event1 != 0))) && (r_evt_id == 20))))) && (( !(delta == 0.0)) || (((s20_evt0 != 0) && (s20_evt1 != 0)) == (((r_event1 != 0) && ( !(r_event0 != 0))) && (r_evt_id == 20))))) && (( !(delta == 0.0)) || (((s21_evt1 != 0) && ( !(s21_evt0 != 0))) == (((r_event0 != 0) && ( !(r_event1 != 0))) && (r_evt_id == 21))))) && (( !(delta == 0.0)) || (((s21_evt0 != 0) && (s21_evt1 != 0)) == (((r_event1 != 0) && ( !(r_event0 != 0))) && (r_evt_id == 21))))) && (( !(delta == 0.0)) || (((s22_evt1 != 0) && ( !(s22_evt0 != 0))) == (((r_event0 != 0) && ( !(r_event1 != 0))) && (r_evt_id == 22))))) && (( !(delta == 0.0)) || (((s22_evt0 != 0) && (s22_evt1 != 0)) == (((r_event1 != 0) && ( !(r_event0 != 0))) && (r_evt_id == 22))))) && (( !(delta == 0.0)) || (((s23_evt1 != 0) && ( !(s23_evt0 != 0))) == (((r_event0 != 0) && ( !(r_event1 != 0))) && (r_evt_id == 23))))) && (( !(delta == 0.0)) || (((s23_evt0 != 0) && (s23_evt1 != 0)) == (((r_event1 != 0) && ( !(r_event0 != 0))) && (r_evt_id == 23))))) && (( !(delta == 0.0)) || (((s24_evt1 != 0) && ( !(s24_evt0 != 0))) == (((r_event0 != 0) && ( !(r_event1 != 0))) && (r_evt_id == 24))))) && (( !(delta == 0.0)) || (((s24_evt0 != 0) && (s24_evt1 != 0)) == (((r_event1 != 0) && ( !(r_event0 != 0))) && (r_evt_id == 24))))) && (( !(delta == 0.0)) || (((s25_evt1 != 0) && ( !(s25_evt0 != 0))) == (((r_event0 != 0) && ( !(r_event1 != 0))) && (r_evt_id == 25))))) && (( !(delta == 0.0)) || (((s25_evt0 != 0) && (s25_evt1 != 0)) == (((r_event1 != 0) && ( !(r_event0 != 0))) && (r_evt_id == 25))))) && (((delta == _x__diverge_delta) || ( !(1.0 <= _diverge_delta))) && ((1.0 <= _diverge_delta) || ((delta + (_diverge_delta + (-1.0 * _x__diverge_delta))) == 0.0))));
_diverge_delta = _x__diverge_delta;
s25_evt1 = _x_s25_evt1;
s25_evt0 = _x_s25_evt0;
s25_z = _x_s25_z;
s25_y = _x_s25_y;
s24_l2 = _x_s24_l2;
s24_evt1 = _x_s24_evt1;
s24_evt0 = _x_s24_evt0;
s24_z = _x_s24_z;
s24_y = _x_s24_y;
s23_l2 = _x_s23_l2;
s23_evt1 = _x_s23_evt1;
s23_evt0 = _x_s23_evt0;
s23_z = _x_s23_z;
s23_y = _x_s23_y;
s22_l2 = _x_s22_l2;
s22_evt1 = _x_s22_evt1;
s22_evt0 = _x_s22_evt0;
s22_z = _x_s22_z;
s22_y = _x_s22_y;
s21_z = _x_s21_z;
s21_y = _x_s21_y;
s20_l2 = _x_s20_l2;
s20_evt1 = _x_s20_evt1;
s20_evt0 = _x_s20_evt0;
s20_z = _x_s20_z;
s20_y = _x_s20_y;
s19_l2 = _x_s19_l2;
s19_evt1 = _x_s19_evt1;
s19_evt0 = _x_s19_evt0;
s19_z = _x_s19_z;
s19_y = _x_s19_y;
s18_l2 = _x_s18_l2;
s18_evt1 = _x_s18_evt1;
s18_evt0 = _x_s18_evt0;
s18_z = _x_s18_z;
s18_y = _x_s18_y;
s17_l2 = _x_s17_l2;
s17_evt1 = _x_s17_evt1;
s17_evt0 = _x_s17_evt0;
s17_z = _x_s17_z;
s17_y = _x_s17_y;
s16_l2 = _x_s16_l2;
s16_evt1 = _x_s16_evt1;
s16_evt0 = _x_s16_evt0;
s16_z = _x_s16_z;
s16_y = _x_s16_y;
s15_l2 = _x_s15_l2;
s15_evt1 = _x_s15_evt1;
s15_evt0 = _x_s15_evt0;
s15_z = _x_s15_z;
s15_y = _x_s15_y;
s5_l2 = _x_s5_l2;
s19_x = _x_s19_x;
s5_evt1 = _x_s5_evt1;
s2_l1 = _x_s2_l1;
s4_l2 = _x_s4_l2;
s16_l1 = _x_s16_l1;
s4_z = _x_s4_z;
s10_l2 = _x_s10_l2;
s3_l2 = _x_s3_l2;
s6_evt0 = _x_s6_evt0;
s3_l0 = _x_s3_l0;
s17_x = _x_s17_x;
s3_evt1 = _x_s3_evt1;
s0_l1 = _x_s0_l1;
s18_l0 = _x_s18_l0;
s6_y = _x_s6_y;
s15_l1 = _x_s15_l1;
s3_z = _x_s3_z;
s9_l2 = _x_s9_l2;
s5_l1 = _x_s5_l1;
s22_x = _x_s22_x;
s8_evt1 = _x_s8_evt1;
s2_l2 = _x_s2_l2;
s5_l0 = _x_s5_l0;
s8_evt0 = _x_s8_evt0;
s0_evt0 = _x_s0_evt0;
s6_x = _x_s6_x;
s15_l0 = _x_s15_l0;
s3_y = _x_s3_y;
s9_l1 = _x_s9_l1;
s12_evt1 = _x_s12_evt1;
s12_l1 = _x_s12_l1;
s0_z = _x_s0_z;
s6_l2 = _x_s6_l2;
s17_l1 = _x_s17_l1;
s5_z = _x_s5_z;
s11_l2 = _x_s11_l2;
s0_l0 = _x_s0_l0;
s3_evt0 = _x_s3_evt0;
s4_evt0 = _x_s4_evt0;
s1_l0 = _x_s1_l0;
s15_x = _x_s15_x;
s1_evt1 = _x_s1_evt1;
r_event1 = _x_r_event1;
s10_x = _x_s10_x;
s21_evt1 = _x_s21_evt1;
r_event0 = _x_r_event0;
s3_x = _x_s3_x;
s9_l0 = _x_s9_l0;
s12_evt0 = _x_s12_evt0;
s12_l0 = _x_s12_l0;
s0_y = _x_s0_y;
s6_l1 = _x_s6_l1;
s23_x = _x_s23_x;
s9_evt1 = _x_s9_evt1;
s25_l0 = _x_s25_l0;
s13_y = _x_s13_y;
s2_l0 = _x_s2_l0;
s5_evt0 = _x_s5_evt0;
s18_x = _x_s18_x;
s4_evt1 = _x_s4_evt1;
s1_l1 = _x_s1_l1;
s25_l2 = _x_s25_l2;
s0_x = _x_s0_x;
s6_l0 = _x_s6_l0;
s9_evt0 = _x_s9_evt0;
s21_l2 = _x_s21_l2;
r_counter = _x_r_counter;
s13_x = _x_s13_x;
s21_evt0 = _x_s21_evt0;
delta = _x_delta;
s16_x = _x_s16_x;
s2_evt1 = _x_s2_evt1;
s17_l0 = _x_s17_l0;
s5_y = _x_s5_y;
s11_l1 = _x_s11_l1;
s14_evt1 = _x_s14_evt1;
s8_l2 = _x_s8_l2;
s2_x = _x_s2_x;
r_x = _x_r_x;
s8_l0 = _x_s8_l0;
s11_evt0 = _x_s11_evt0;
s3_l1 = _x_s3_l1;
s20_x = _x_s20_x;
s6_evt1 = _x_s6_evt1;
s0_l2 = _x_s0_l2;
s5_x = _x_s5_x;
s11_l0 = _x_s11_l0;
s14_evt0 = _x_s14_evt0;
s8_l1 = _x_s8_l1;
s25_x = _x_s25_x;
s11_evt1 = _x_s11_evt1;
s1_x = _x_s1_x;
s7_l0 = _x_s7_l0;
s10_evt0 = _x_s10_evt0;
s4_x = _x_s4_x;
s10_l0 = _x_s10_l0;
s13_evt0 = _x_s13_evt0;
s7_l1 = _x_s7_l1;
s24_x = _x_s24_x;
s10_evt1 = _x_s10_evt1;
s16_l0 = _x_s16_l0;
s4_y = _x_s4_y;
s10_l1 = _x_s10_l1;
s13_evt1 = _x_s13_evt1;
s7_l2 = _x_s7_l2;
s1_evt0 = _x_s1_evt0;
s18_l1 = _x_s18_l1;
s6_z = _x_s6_z;
s12_l2 = _x_s12_l2;
s4_l0 = _x_s4_l0;
s7_evt0 = _x_s7_evt0;
s4_l1 = _x_s4_l1;
s21_x = _x_s21_x;
s7_evt1 = _x_s7_evt1;
s1_l2 = _x_s1_l2;
s2_evt0 = _x_s2_evt0;
s7_x = _x_s7_x;
s1_y = _x_s1_y;
s13_l0 = _x_s13_l0;
s19_l0 = _x_s19_l0;
s7_y = _x_s7_y;
s1_z = _x_s1_z;
s13_l1 = _x_s13_l1;
s19_l1 = _x_s19_l1;
s7_z = _x_s7_z;
s13_l2 = _x_s13_l2;
s8_x = _x_s8_x;
s2_y = _x_s2_y;
s14_l0 = _x_s14_l0;
s20_l0 = _x_s20_l0;
s8_y = _x_s8_y;
s2_z = _x_s2_z;
s14_l1 = _x_s14_l1;
s20_l1 = _x_s20_l1;
s8_z = _x_s8_z;
s14_l2 = _x_s14_l2;
s9_x = _x_s9_x;
s21_l0 = _x_s21_l0;
r_l = _x_r_l;
s9_y = _x_s9_y;
s21_l1 = _x_s21_l1;
r_evt_id = _x_r_evt_id;
s9_z = _x_s9_z;
s22_l0 = _x_s22_l0;
s10_y = _x_s10_y;
s22_l1 = _x_s22_l1;
s10_z = _x_s10_z;
s11_x = _x_s11_x;
s23_l0 = _x_s23_l0;
s11_y = _x_s11_y;
s23_l1 = _x_s23_l1;
s11_z = _x_s11_z;
s12_x = _x_s12_x;
s24_l0 = _x_s24_l0;
s12_y = _x_s12_y;
s24_l1 = _x_s24_l1;
s12_z = _x_s12_z;
s25_l1 = _x_s25_l1;
s13_z = _x_s13_z;
s0_evt1 = _x_s0_evt1;
s14_x = _x_s14_x;
s14_y = _x_s14_y;
s14_z = _x_s14_z;
}
}
|
the_stack_data/261628.c | // C program to implement Stooge Sort
/*
The function of the stooge sort function is to check if the value at index 0 is
greater than the value at last index, if YES then to swap those values.
Call the Stooge sort function recursively on initial 2/3rd of the array, last 2/3rd
and again initial 2/3rd to get the given array sorted
*/
#include <stdio.h>
// Helper function to swap two values
void swap(int *a, int *b)
{
int temp = *a;
*a = *b;
*b = temp;
}
void stooge_sort(int arr[], int start, int end)
{
// If the value at last index is smaller than the value at index 0, Swap them.
if (arr[start] > arr[end])
swap(&arr[start], &arr[end]);
// For finding the first and last two by third elements in the array
if (end - start + 1 > 2)
{
int twobythird = (end - start + 1) / 3;
//Recursively call the function on the initial two by third, last two by third followed by the initial two by third
if ((end - twobythird) >= start)
stooge_sort(arr, start, end - twobythird);
if (end >= (start + twobythird))
stooge_sort(arr, start + twobythird, end);
if ((end - twobythird) >= start)
stooge_sort(arr, start, end - twobythird);
}
}
int main()
{
int n;
printf("\nHow many numbers do you want to sort? ");
scanf("%d", &n);
int arr[n];
if (n <= 0)
{
printf("There are no numbers to sort!!!");
return 0;
}
// Input the numbers to sort
printf("Enter the numbers: ");
for (int i = 0; i < n; i++)
scanf("%d", &arr[i]);
//Call the sort function
stooge_sort(arr, 0, n - 1);
printf("The numbers in sorted order is: ");
// Print the sorted array
for (int i = 0; i < n; i++)
printf("%d ", arr[i]);
printf("\n");
return 0;
}
/*
Time Complexity: O(n^2.7095), slower than bubble sort
Space Complexity: O(n)
SAMPLE INPUT AND OUTPUT
SAMPLE 1
How many numbers do you want to sort? 5
Enter the numbers: 1 3 5 2 4
The numbers in sorted order is: 1 2 3 4 5
SAMPLE 2
How many numbers do you want to sort? 0
There are no numbers to sort!!!
*/
|
the_stack_data/49874.c | /* Implementation of getentropy based on getrandom.
Copyright (C) 2016-2020 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, see
<https://www.gnu.org/licenses/>. */
#include <sys/random.h>
#include <assert.h>
#include <errno.h>
#include <unistd.h>
/* Write LENGTH bytes of randomness starting at BUFFER. Return 0 on
success and -1 on failure. */
int
getentropy (void *buffer, size_t length)
{
/* The interface is documented to return EIO for buffer lengths
longer than 256 bytes. */
if (length > 256)
{
__set_errno (EIO);
return -1;
}
/* Try to fill the buffer completely. Even with the 256 byte limit
above, we might still receive an EINTR error (when blocking
during boot). */
void *end = buffer + length;
while (buffer < end)
{
/* NB: No cancellation point. */
ssize_t bytes = __getrandom (buffer, end - buffer, 0);
if (bytes < 0)
{
if (errno == EINTR)
/* Try again if interrupted by a signal. */
continue;
else
return -1;
}
if (bytes == 0)
{
/* No more bytes available. This should not happen under
normal circumstances. */
__set_errno (EIO);
return -1;
}
/* Try again in case of a short read. */
buffer += bytes;
}
return 0;
}
|
the_stack_data/7951543.c | #include <stdio.h>
#define MAX (90)
struct ANSWER {
int a;
int b;
};
struct ANSWER answer[MAX + 1];
int main(void)
{
int TC, tc;
int i, k;
answer[0].a = 1;
answer[0].b = 0;
answer[1].a = 2;
answer[1].b = 1;
for (i = 2; i <= MAX; ++i) {
answer[i].a = answer[i - 1].a + answer[i - 1].b;
answer[i].b = answer[i - 1].a;
}
freopen("sample_input.txt", "r", stdin);
setbuf(stdout, NULL);
scanf("%d", &TC);
for (tc = 1; tc <= TC; ++tc) {
scanf("%d\n", &k);
printf("#%d %d %d\n", tc, answer[k].a, answer[k].b);
}
return 0;
}
|
the_stack_data/627304.c | /* Example code for Exercises in C.
Copyright 2016 Allen B. Downey
License: MIT License https://opensource.org/licenses/MIT
*/
/*
Comments and Observations -
I tested this code with 3 children for Global, Static,
and Heap access for children vs. parent processes.
My observation is that the globally defined variable (globe)
is stored at the same address for both the parent and the
child processes, and containts the same value. The variables
defined statically inside the i child processes seemingly have
the same address, but it is different from statically defined
variable addresses for the parent process. As for the dynamically
allocated variables on the heap, the values and addresses are shared
across the parent and child processes since they are the same.
I'm not sure how I can test for the exact similarity in code segments.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <sys/time.h>
#include <sys/types.h>
#include <wait.h>
// errno is an external global variable that contains
// error information
extern int errno;
// Creating a global variable
int globe = 7;
// get_seconds returns the number of seconds since the
// beginning of the day, with microsecond precision
double get_seconds() {
struct timeval tv[1];
gettimeofday(tv, NULL);
return tv->tv_sec + tv->tv_usec / 1e6;
}
void child_code(int i,int *heapv)
{
sleep(i);
int stat = i;
printf("Hello from child %d.\n", i);
printf("Child - Global access - Value: %d Address: %p\n", globe, &globe);
printf("Child - Static access - Value: %d Address: %p\n", stat, &stat);
printf("Child - Heap access - Value: %d Address: %p\n", *heapv, heapv);
}
// main takes two parameters: argc is the number of command-line
// arguments; argv is an array of strings containing the command
// line arguments
int main(int argc, char *argv[])
{
int status;
pid_t pid;
double start, stop;
int i, num_children;
// Creating a static variable
int stat = 7;
// Creating a heap variable
int* heapv = malloc (sizeof(int));
*heapv = 7;
// the first command-line argument is the name of the executable.
// if there is a second, it is the number of children to create.
if (argc == 2) {
num_children = atoi(argv[1]);
} else {
num_children = 1;
}
// get the start time
start = get_seconds();
for (i=0; i<num_children; i++) {
*heapv += 1;
// create a child process
printf("Creating child %d.\n", i);
pid = fork();
/* check for an error */
if (pid == -1) {
fprintf(stderr, "fork failed: %s\n", strerror(errno));
perror(argv[0]);
exit(1);
}
/* see if we're the parent or the child */
if (pid == 0) {
child_code(i,heapv);
exit(i);
}
}
/* parent continues */
printf("Hello from the parent.\n");
printf("Parent - Global access - Value: %d Address: %p\n", globe, &globe);
printf("Parent - Static access - Value: %d Address: %p\n", stat, &stat);
printf("Parent - Heap access - Value: %d Address: %p\n", *heapv, heapv);
for (i=0; i<num_children; i++) {
pid = wait(&status);
if (pid == -1) {
fprintf(stderr, "wait failed: %s\n", strerror(errno));
perror(argv[0]);
exit(1);
}
// check the exit status of the child
status = WEXITSTATUS(status);
printf("Child %d exited with error code %d.\n", pid, status);
}
// compute the elapsed time
stop = get_seconds();
printf("Elapsed time = %f seconds.\n", stop - start);
exit(0);
} |
the_stack_data/14201352.c | /*
*
* This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
*
* Copyright 2007-2019 Broadcom Inc. All rights reserved.
*
* File: mpls.c
* Purpose: Manages MPLS functions
*/
#ifdef INCLUDE_L3
#include <sal/core/libc.h>
#include <soc/defs.h>
#include <soc/drv.h>
#include <soc/mem.h>
#include <soc/l2u.h>
#include <soc/l3x.h>
#include <soc/util.h>
#include <soc/debug.h>
#include <bcm/l2.h>
#include <bcm/l3.h>
#include <bcm/port.h>
#include <bcm/error.h>
#include <bcm/vlan.h>
#include <bcm/rate.h>
#include <bcm/ipmc.h>
#include <bcm/mpls.h>
#include <bcm/stack.h>
#include <bcm/topo.h>
#include <bcm_int/esw/virtual.h>
#include <bcm_int/esw/mbcm.h>
#include <bcm_int/esw/l3.h>
#include <bcm_int/esw/firebolt.h>
#if defined(BCM_TRIUMPH_SUPPORT)
#include <bcm_int/esw/triumph.h>
#endif /* BCM_TRIUMPH_SUPPORT */
#if defined(BCM_TRIUMPH2_SUPPORT)
#include <bcm_int/esw/triumph2.h>
#endif /* BCM_TRIUMPH2_SUPPORT */
#if defined(BCM_KATANA_SUPPORT)
#include <bcm_int/esw/katana.h>
#endif /* BCM_TRIUMPH_SUPPORT */
#if (defined(BCM_TOMAHAWK_SUPPORT) || defined(BCM_TRIDENT2PLUS_SUPPORT))
#include <bcm_int/esw/xgs5.h>
#endif /* BCM_TOMAHAWK_SUPPORT */
#if defined(BCM_TRIUMPH3_SUPPORT)
#include <bcm_int/esw/triumph3.h>
#endif /* BCM_TRIUMPH3_SUPPORT */
#if defined(BCM_TRIDENT2PLUS_SUPPORT)
#include <bcm_int/esw/trident2plus.h>
#endif /* BCM_TRIDENT2PLUS_SUPPORT */
#if defined(BCM_TRIDENT3_SUPPORT)
#include <bcm_int/esw/trident3.h>
#endif /* BCM_TRIDENT3_SUPPORT */
#include <bcm_int/esw_dispatch.h>
#include <bcm_int/esw/xgs3.h>
/*
* Function:
* bcm_mpls_init
* Purpose:
* Initialize the MPLS software module, clear all HW MPLS states
* Parameters:
* unit - Device Number
* Returns:
* BCM_E_XXXX
*/
int
bcm_esw_mpls_init(int unit)
{
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH_SUPPORT
if (SOC_IS_TR_VL(unit) && soc_feature(unit, soc_feature_mpls)) {
return bcm_tr_mpls_init(unit);
}
#endif
#endif
return BCM_E_UNAVAIL;
}
/*
* Function:
* bcm_mpls_cleanup
* Purpose:
* Detach the MPLS software module, clear all HW MPLS states
* Parameters:
* unit - Device Number
* Returns:
* BCM_E_XXXX
*/
int
bcm_esw_mpls_cleanup(int unit)
{
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH_SUPPORT
if (SOC_IS_TR_VL(unit) && soc_feature(unit, soc_feature_mpls)) {
return bcm_tr_mpls_cleanup(unit);
}
#endif
#endif
return BCM_E_NONE;
}
#ifdef BCM_WARM_BOOT_SUPPORT
int
_bcm_esw_mpls_sync(int unit)
{
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH_SUPPORT
if (SOC_IS_TR_VL(unit) && soc_feature(unit, soc_feature_mpls)) {
return bcm_tr_mpls_sync(unit);
}
#endif
#endif
return BCM_E_NONE;
}
int
_bcm_esw_mpls_match_key_recover(int unit)
{
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH3_SUPPORT
if (SOC_IS_TRIUMPH3(unit)) {
return _bcm_tr3_mpls_match_key_recover(unit);
} else
#endif
#ifdef BCM_TRIUMPH_SUPPORT
{
return _bcm_tr_mpls_match_key_recover(unit);
}
#endif /* BCM_TRIUMPH_SUPPORT */
#endif /* MPLS_SUPPORT */
return BCM_E_NONE;
}
/*
* Function:
* _bcm_esw_mpls_tunnel_switch_traverse_no_lock
* Purpose:
* Traverse all valid MPLS label entries and call the
* supplied callback routine without lock.
* Parameters:
* unit - Device Number
* cb - User callback function, called once per MPLS entry.
* user_data - cookie
* Returns:
* BCM_E_XXX
*/
int
_bcm_esw_mpls_tunnel_switch_traverse_no_lock(int unit,
bcm_mpls_tunnel_switch_traverse_cb cb,
void *user_data)
{
int rv = BCM_E_NONE;
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH3_SUPPORT
if (SOC_IS_TRIUMPH3(unit) && soc_feature(unit, soc_feature_mpls)) {
rv = bcm_tr3_mpls_tunnel_switch_traverse(unit, cb, user_data);
return rv;
}
#endif
#ifdef BCM_KATANA_SUPPORT
if (SOC_IS_KATANAX(unit) && soc_feature(unit, soc_feature_mpls)) {
rv = bcm_kt_mpls_tunnel_switch_traverse(unit, cb, user_data);
return rv;
}
#endif
#ifdef BCM_TRIUMPH_SUPPORT
if (SOC_IS_TR_VL(unit) && soc_feature(unit, soc_feature_mpls)) {
if (soc_feature(unit, soc_feature_mpls_lsr_ecmp)) {
#if (defined(BCM_TOMAHAWK_SUPPORT) || defined(BCM_TRIDENT2PLUS_SUPPORT))
rv = bcmi_xgs5_mpls_tunnel_switch_traverse(unit, cb, user_data);
#endif
} else {
rv = bcm_tr_mpls_tunnel_switch_traverse(unit, cb, user_data);
}
return rv;
}
#endif
#endif
return rv;
}
#endif
/*
* Function:
* bcm_mpls_vpn_id_create
* Purpose:
* Create a VPN
* Parameters:
* unit - (IN) Device Number
* info - (IN/OUT) VPN configuration info
* Returns:
* BCM_E_XXXX
*/
int
bcm_esw_mpls_vpn_id_create(int unit, bcm_mpls_vpn_config_t *info)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH_SUPPORT
#ifdef BCM_TOMAHAWK3_SUPPORT
if (soc_feature(unit, soc_feature_th3_style_simple_mpls) &&
((info->flags & BCM_MPLS_VPN_VPWS) ||
(info->flags & BCM_MPLS_VPN_VPLS))) {
return BCM_E_UNAVAIL;
}
#endif
if (SOC_IS_TR_VL(unit) && soc_feature(unit, soc_feature_mpls)) {
rv = bcm_tr_mpls_lock (unit) ;
if ( rv == BCM_E_NONE ) {
rv = bcm_tr_mpls_vpn_id_create(unit, info);
bcm_tr_mpls_unlock (unit);
}
return rv;
}
#endif
#endif
return rv;
}
/*
* Function:
* bcm_mpls_vpn_id_destroy
* Purpose:
* Destroy a VPN
* Parameters:
* unit - (IN) Device Number
* vpn - (IN) VPN instance
* Returns:
* BCM_E_XXXX
*/
int
bcm_esw_mpls_vpn_id_destroy(int unit, bcm_vpn_t vpn)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH_SUPPORT
if (SOC_IS_TR_VL(unit) && soc_feature(unit, soc_feature_mpls)) {
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
rv = bcm_tr_mpls_vpn_id_destroy(unit, vpn);
bcm_tr_mpls_unlock (unit);
}
return rv;
}
#endif
#endif
return rv;
}
/*
* Function:
* bcm_mpls_vpn_id_destroy_all
* Purpose:
* Destroy all VPNs
* Parameters:
* unit - (IN) Device Number
* Returns:
* BCM_E_XXXX
*/
int
bcm_esw_mpls_vpn_id_destroy_all(int unit)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH_SUPPORT
if (SOC_IS_TR_VL(unit) && soc_feature(unit, soc_feature_mpls)) {
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
rv = bcm_tr_mpls_vpn_id_destroy_all(unit);
bcm_tr_mpls_unlock (unit);
}
return rv;
}
#endif
#endif
return rv;
}
/*
* Function:
* bcm_mpls_vpn_id_get
* Purpose:
* Get a VPN
* Parameters:
* unit - (IN) Device Number
* vpn - (IN) VPN instance
* info - (OUT) VPN configuration info
* Returns:
* BCM_E_XXXX
*/
int
bcm_esw_mpls_vpn_id_get(int unit, bcm_vpn_t vpn, bcm_mpls_vpn_config_t *info)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH_SUPPORT
if (SOC_IS_TR_VL(unit) && soc_feature(unit, soc_feature_mpls)) {
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
rv = bcm_tr_mpls_vpn_id_get(unit, vpn, info);
bcm_tr_mpls_unlock (unit);
}
return rv;
}
#endif
#endif
return rv;
}
/*
* Function:
* bcm_mpls_vpn_traverse
* Purpose:
* MPLS VPN Traverse
* Parameters:
* unit - (IN) Device Number
* cb - (IN) User callback function, called once per entry
* user_data - (IN/OUT) Cookie
* Returns:
* BCM_E_XXXX
*/
int
bcm_esw_mpls_vpn_traverse(int unit, bcm_mpls_vpn_traverse_cb cb,
void *user_data)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH_SUPPORT
if (SOC_IS_TR_VL(unit) && soc_feature(unit, soc_feature_mpls)) {
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
rv = bcm_tr_mpls_vpn_traverse(unit, cb, user_data);
bcm_tr_mpls_unlock (unit);
}
return rv;
}
#endif
#endif
return rv;
}
/*
* Function:
* bcm_mpls_port_add
* Purpose:
* Add an mpls port to a VPN
* Parameters:
* unit - (IN) Device Number
* vpn - (IN) VPN instance ID
* mpls_port - (IN/OUT) mpls port information (OUT : mpls_port_id)
* Returns:
* BCM_E_XXX
*/
int
bcm_esw_mpls_port_add(int unit, bcm_vpn_t vpn, bcm_mpls_port_t *mpls_port)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH_SUPPORT
#ifdef BCM_TOMAHAWK3_SUPPORT
if (soc_feature(unit, soc_feature_th3_style_simple_mpls)) {
return BCM_E_UNAVAIL;
}
#endif
if (SOC_IS_TR_VL(unit) && soc_feature(unit, soc_feature_mpls)) {
L3_LOCK(unit);
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
rv = bcm_tr_mpls_port_add(unit, vpn, mpls_port);
bcm_tr_mpls_unlock (unit);
}
L3_UNLOCK(unit);
return rv;
}
#endif
#endif
return rv;
}
/*
* Function:
* bcm_mpls_port_delete
* Purpose:
* Delete an mpls port from a VPN
* Parameters:
* unit - (IN) Device Number
* vpn - (IN) VPN instance ID
* mpls_port_id - (IN) mpls port ID
* Returns:
* BCM_E_XXX
*/
int
bcm_esw_mpls_port_delete(int unit, bcm_vpn_t vpn, bcm_gport_t mpls_port_id)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH_SUPPORT
#ifdef BCM_TOMAHAWK3_SUPPORT
if (soc_feature(unit, soc_feature_th3_style_simple_mpls)) {
return BCM_E_UNAVAIL;
}
#endif
if (SOC_IS_TR_VL(unit) && soc_feature(unit, soc_feature_mpls)) {
L3_LOCK(unit);
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
rv = bcm_tr_mpls_port_delete(unit, vpn, mpls_port_id);
bcm_tr_mpls_unlock (unit);
}
L3_UNLOCK(unit);
return rv;
}
#endif
#endif
return rv;
}
/*
* Function:
* bcm_mpls_port_delete_all
* Purpose:
* Delete all mpls ports from a VPN
* Parameters:
* unit - Device Number
* vpn - VPN instance ID
* Returns:
* BCM_E_XXX
*/
int
bcm_esw_mpls_port_delete_all(int unit, bcm_vpn_t vpn)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH_SUPPORT
#ifdef BCM_TOMAHAWK3_SUPPORT
if (soc_feature(unit, soc_feature_th3_style_simple_mpls)) {
return BCM_E_UNAVAIL;
}
#endif
if (SOC_IS_TR_VL(unit) && soc_feature(unit, soc_feature_mpls)) {
L3_LOCK(unit);
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
rv = bcm_tr_mpls_port_delete_all(unit, vpn);
bcm_tr_mpls_unlock (unit);
}
L3_UNLOCK(unit);
return rv;
}
#endif
#endif
return rv;
}
/*
* Function:
* bcm_mpls_port_get
* Purpose:
* Get an mpls port from a VPN
* Parameters:
* unit - (IN) Device Number
* vpn - (IN) VPN instance ID
* mpls_port - (IN/OUT) mpls port information (IN : mpls_port_id)
*/
int
bcm_esw_mpls_port_get(int unit, bcm_vpn_t vpn, bcm_mpls_port_t *mpls_port)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH_SUPPORT
#ifdef BCM_TOMAHAWK3_SUPPORT
if (soc_feature(unit, soc_feature_th3_style_simple_mpls)) {
return BCM_E_UNAVAIL;
}
#endif
if (SOC_IS_TR_VL(unit) && soc_feature(unit, soc_feature_mpls)) {
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
rv = bcm_tr_mpls_port_get (unit, vpn, mpls_port);
bcm_tr_mpls_unlock (unit);
}
return rv;
}
#endif
#endif
return rv;
}
/*
* Function:
* bcm_mpls_port_get_all
* Purpose:
* Get an mpls port from a VPN
* Parameters:
* unit - (IN) Device Number
* vpn - (IN) VPN instance ID
* port_max - (IN) Maximum number of ports in array
* port_array - (OUT) Array of mpls ports
* port_count - (OUT) Number of ports returned in array
*/
int
bcm_esw_mpls_port_get_all(int unit, bcm_vpn_t vpn, int port_max,
bcm_mpls_port_t *port_array, int *port_count)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH_SUPPORT
#ifdef BCM_TOMAHAWK3_SUPPORT
if (soc_feature(unit, soc_feature_th3_style_simple_mpls)) {
return BCM_E_UNAVAIL;
}
#endif
if (SOC_IS_TR_VL(unit) && soc_feature(unit, soc_feature_mpls)) {
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
rv = bcm_tr_mpls_port_get_all(unit, vpn, port_max,
port_array, port_count);
bcm_tr_mpls_unlock (unit);
}
return rv;
}
#endif
#endif
return rv;
}
/*
* Function:
* bcm_mpls_tunnel_initiator_set
* Purpose:
* Set the MPLS tunnel initiator parameters for an L3 interface.
* Parameters:
* unit - Device Number
* intf - The egress L3 interface
* num_labels - Number of labels in the array
* label_array - Array of MPLS label and header information
* Returns:
* BCM_E_XXX
*/
int
bcm_esw_mpls_tunnel_initiator_set (int unit, bcm_if_t intf, int num_labels,
bcm_mpls_egress_label_t *label_array)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH_SUPPORT
if (SOC_IS_TR_VL(unit) && soc_feature(unit, soc_feature_mpls)) {
L3_LOCK(unit);
rv = bcm_tr_mpls_lock(unit);
if (rv == BCM_E_NONE ) {
#if defined(BCM_APACHE_SUPPORT) || defined(BCM_TOMAHAWK2_SUPPORT) || \
defined(BCM_TRIDENT3_SUPPORT) || defined(BCM_TOMAHAWK3_SUPPORT)
if (soc_feature(unit, soc_feature_egr_ip_tnl_mpls_double_wide) ||
(soc_feature(unit, soc_feature_th3_style_simple_mpls))) {
rv = bcmi_xgs5_mpls_tunnel_initiator_set(unit, intf,
num_labels, label_array);
} else
#endif
{
rv = bcm_tr_mpls_tunnel_initiator_set(unit, intf,
num_labels, label_array);
}
bcm_tr_mpls_unlock (unit);
}
L3_UNLOCK(unit);
return rv;
}
#endif
#endif
return rv;
}
/*
* Function:
* bcm_mpls_tunnel_initiator_clear
* Purpose:
* Clear the MPLS tunnel initiator parameters for an L3 interface.
* Parameters:
* unit - Device Number
* intf - The egress L3 interface
* Returns:
* BCM_E_XXX
*/
int
bcm_esw_mpls_tunnel_initiator_clear (int unit, bcm_if_t intf)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH_SUPPORT
if (SOC_IS_TR_VL(unit) && soc_feature(unit, soc_feature_mpls)) {
L3_LOCK(unit);
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
#if defined(BCM_APACHE_SUPPORT) || defined(BCM_TOMAHAWK2_SUPPORT) || \
defined(BCM_TRIDENT3_SUPPORT) || defined(BCM_TOMAHAWK3_SUPPORT)
if (soc_feature(unit, soc_feature_egr_ip_tnl_mpls_double_wide) ||
(soc_feature(unit, soc_feature_th3_style_simple_mpls))) {
rv = bcmi_xgs5_mpls_tunnel_initiator_clear(unit, intf);
} else
#endif
{
rv = bcm_tr_mpls_tunnel_initiator_clear(unit, intf);
}
bcm_tr_mpls_unlock (unit);
}
L3_UNLOCK(unit);
return rv;
}
#endif
#endif
return rv;
}
/*
* Function:
* bcm_mpls_tunnel_initiator_clear_all
* Purpose:
* Clear all the MPLS tunnel initiator parameters all L3 Interfaces
* Parameters:
* unit - Device Number
* Returns:
* BCM_E_XXX
*/
int
bcm_esw_mpls_tunnel_initiator_clear_all (int unit)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH_SUPPORT
if (SOC_IS_TR_VL(unit) && soc_feature(unit, soc_feature_mpls)) {
L3_LOCK(unit);
if ( bcm_tr_mpls_lock (unit) == BCM_E_NONE ) {
#if defined(BCM_APACHE_SUPPORT) || defined(BCM_TOMAHAWK2_SUPPORT) || \
defined(BCM_TRIDENT3_SUPPORT) || defined(BCM_TOMAHAWK3_SUPPORT)
if (soc_feature(unit, soc_feature_egr_ip_tnl_mpls_double_wide) ||
(soc_feature(unit, soc_feature_th3_style_simple_mpls))) {
rv = bcmi_xgs5_mpls_tunnel_initiator_clear_all(unit);
} else
#endif
{
rv = bcm_tr_mpls_tunnel_initiator_clear_all(unit);
}
bcm_tr_mpls_unlock (unit);
}
L3_UNLOCK(unit);
return rv;
}
#endif
#endif
return rv;
}
/*
* Function:
* bcm_mpls_tunnel_initiator_get
* Purpose:
* Get the the MPLS tunnel initiator parameters for an L3 interface.
* Parameters:
* unit - (IN) Device Number
* intf - (IN) The egress L3 interface
* label_max - (IN) Number of entries in label_array
* label_array - (OUT) MPLS header information
* label_count - (OUT) Actual number of labels returned
* Returns:
* BCM_E_XXX
*/
int
bcm_esw_mpls_tunnel_initiator_get (int unit, bcm_if_t intf, int label_max,
bcm_mpls_egress_label_t *label_array,
int *label_count)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH_SUPPORT
if (SOC_IS_TR_VL(unit) && soc_feature(unit, soc_feature_mpls)) {
L3_LOCK(unit);
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
#if defined(BCM_APACHE_SUPPORT) || defined(BCM_TOMAHAWK2_SUPPORT) || \
defined(BCM_TRIDENT3_SUPPORT) || defined(BCM_TOMAHAWK3_SUPPORT)
if (soc_feature(unit, soc_feature_egr_ip_tnl_mpls_double_wide) ||
(soc_feature(unit, soc_feature_th3_style_simple_mpls))) {
rv = bcmi_xgs5_mpls_tunnel_initiator_get(unit,
intf, label_max,
label_array, label_count);
} else
#endif
{
rv = bcm_tr_mpls_tunnel_initiator_get(unit,
intf, label_max,
label_array, label_count);
}
bcm_tr_mpls_unlock (unit);
}
L3_UNLOCK(unit);
return rv;
}
#endif
#endif
return rv;
}
/*
* Function:
* bcm_mpls_tunnel_switch_add
* Purpose:
* Add an MPLS label entry.
* Parameters:
* unit - Device Number
* info - Label (switch) information
* Returns:
* BCM_E_XXX
*/
int
bcm_esw_mpls_tunnel_switch_add (int unit, bcm_mpls_tunnel_switch_t *info)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH3_SUPPORT
if (SOC_IS_TRIUMPH3(unit) && soc_feature(unit, soc_feature_mpls)) {
L3_LOCK(unit);
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
rv = bcm_tr3_mpls_tunnel_switch_add(unit, info);
bcm_tr_mpls_unlock (unit);
}
L3_UNLOCK(unit);
return rv;
}
#endif
#ifdef BCM_KATANA_SUPPORT
if (SOC_IS_KATANAX(unit) && soc_feature(unit, soc_feature_mpls)) {
L3_LOCK(unit);
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
rv = bcm_kt_mpls_tunnel_switch_add(unit, info);
bcm_tr_mpls_unlock (unit);
}
L3_UNLOCK(unit);
return rv;
}
#endif
#ifdef BCM_TRIUMPH_SUPPORT
if (SOC_IS_TR_VL(unit) && soc_feature(unit, soc_feature_mpls)) {
L3_LOCK(unit);
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
if (soc_feature(unit, soc_feature_mpls_lsr_ecmp)) {
#if (defined(BCM_TOMAHAWK_SUPPORT) || defined(BCM_TRIDENT2PLUS_SUPPORT))
rv = bcmi_xgs5_mpls_tunnel_switch_add(unit, info);
#endif
} else {
rv = bcm_tr_mpls_tunnel_switch_add(unit, info);
}
}
bcm_tr_mpls_unlock (unit);
L3_UNLOCK(unit);
return rv;
}
#endif
#endif
return rv;
}
/*
* Function:
* bcm_mpls_tunnel_switch_delete
* Purpose:
* Delete an MPLS label entry.
* Parameters:
* unit - Device Number
* info - Label (switch) information
* Returns:
* BCM_E_XXX
*/
int
bcm_esw_mpls_tunnel_switch_delete (int unit, bcm_mpls_tunnel_switch_t *info)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH3_SUPPORT
if (SOC_IS_TRIUMPH3(unit) && soc_feature(unit, soc_feature_mpls)) {
L3_LOCK(unit);
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
rv = bcm_tr3_mpls_tunnel_switch_delete(unit, info);
bcm_tr_mpls_unlock (unit);
}
L3_UNLOCK(unit);
return rv;
}
#endif
#ifdef BCM_KATANA_SUPPORT
if (SOC_IS_KATANAX(unit) && soc_feature(unit, soc_feature_mpls)) {
L3_LOCK(unit);
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
rv = bcm_kt_mpls_tunnel_switch_delete(unit, info);
bcm_tr_mpls_unlock (unit);
}
L3_UNLOCK(unit);
return rv;
}
#endif
#ifdef BCM_TRIUMPH_SUPPORT
if (SOC_IS_TR_VL(unit) && soc_feature(unit, soc_feature_mpls)) {
L3_LOCK(unit);
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
if (soc_feature(unit, soc_feature_mpls_lsr_ecmp)) {
#if (defined(BCM_TOMAHAWK_SUPPORT) || defined(BCM_TRIDENT2PLUS_SUPPORT))
rv = bcmi_xgs5_mpls_tunnel_switch_delete(unit, info);
#endif
} else {
rv = bcm_tr_mpls_tunnel_switch_delete(unit, info);
}
}
bcm_tr_mpls_unlock (unit);
L3_UNLOCK(unit);
return rv;
}
#endif
#endif
return rv;
}
/*
* Function:
* bcm_mpls_tunnel_switch_delete_all
* Purpose:
* Delete all MPLS label entries.
* Parameters:
* unit - Device Number
* Returns:
* BCM_E_XXX
*/
int
bcm_esw_mpls_tunnel_switch_delete_all (int unit)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH3_SUPPORT
if (SOC_IS_TRIUMPH3(unit) && soc_feature(unit, soc_feature_mpls)) {
L3_LOCK(unit);
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
rv = bcm_tr3_mpls_tunnel_switch_delete_all(unit);
bcm_tr_mpls_unlock (unit);
}
L3_UNLOCK(unit);
return rv;
}
#endif
#ifdef BCM_KATANA_SUPPORT
if (SOC_IS_KATANAX(unit) && soc_feature(unit, soc_feature_mpls)) {
L3_LOCK(unit);
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
rv = bcm_kt_mpls_tunnel_switch_delete_all(unit);
bcm_tr_mpls_unlock (unit);
}
L3_UNLOCK(unit);
return rv;
}
#endif
#ifdef BCM_TRIUMPH_SUPPORT
if (SOC_IS_TR_VL(unit) && soc_feature(unit, soc_feature_mpls)) {
L3_LOCK(unit);
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
if (soc_feature(unit, soc_feature_mpls_lsr_ecmp)) {
#if (defined(BCM_TOMAHAWK_SUPPORT) || defined(BCM_TRIDENT2PLUS_SUPPORT))
rv = bcmi_xgs5_mpls_tunnel_switch_delete_all(unit);
#endif
} else {
rv = bcm_tr_mpls_tunnel_switch_delete_all(unit);
}
}
bcm_tr_mpls_unlock (unit);
L3_UNLOCK(unit);
return rv;
}
#endif
#endif
return rv;
}
/*
* Function:
* bcm_mpls_tunnel_switch_get
* Purpose:
* Get an MPLS label entry.
* Parameters:
* unit - Device Number
* info - Label (switch) information
* Returns:
* BCM_E_XXX
*/
int
bcm_esw_mpls_tunnel_switch_get (int unit, bcm_mpls_tunnel_switch_t *info)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH3_SUPPORT
if (SOC_IS_TRIUMPH3(unit) && soc_feature(unit, soc_feature_mpls)) {
L3_LOCK(unit);
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
rv = bcm_tr3_mpls_tunnel_switch_get(unit, info);
bcm_tr_mpls_unlock (unit);
}
L3_UNLOCK(unit);
return rv;
}
#endif
#ifdef BCM_KATANA_SUPPORT
if (SOC_IS_KATANAX(unit) && soc_feature(unit, soc_feature_mpls)) {
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
rv = bcm_kt_mpls_tunnel_switch_get(unit, info);
bcm_tr_mpls_unlock (unit);
}
return rv;
}
#endif
#ifdef BCM_TRIUMPH_SUPPORT
if (SOC_IS_TR_VL(unit) && soc_feature(unit, soc_feature_mpls)) {
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
if (soc_feature(unit, soc_feature_mpls_lsr_ecmp)) {
#if (defined(BCM_TOMAHAWK_SUPPORT) || defined(BCM_TRIDENT2PLUS_SUPPORT))
rv = bcmi_xgs5_mpls_tunnel_switch_get(unit, info);
#endif
} else {
rv = bcm_tr_mpls_tunnel_switch_get(unit, info);
}
}
bcm_tr_mpls_unlock (unit);
return rv;
}
#endif
#endif
return rv;
}
/*
* Function:
* bcm_mpls_tunnel_switch_traverse
* Purpose:
* Traverse all valid MPLS label entries and call the
* supplied callback routine.
* Parameters:
* unit - Device Number
* cb - User callback function, called once per MPLS entry.
* user_data - cookie
* Returns:
* BCM_E_XXX
*/
int
bcm_esw_mpls_tunnel_switch_traverse(int unit,
bcm_mpls_tunnel_switch_traverse_cb cb,
void *user_data)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH3_SUPPORT
if (SOC_IS_TRIUMPH3(unit) && soc_feature(unit, soc_feature_mpls)) {
L3_LOCK(unit);
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
rv = bcm_tr3_mpls_tunnel_switch_traverse(unit, cb, user_data);
bcm_tr_mpls_unlock (unit);
}
L3_UNLOCK(unit);
return rv;
}
#endif
#ifdef BCM_KATANA_SUPPORT
if (SOC_IS_KATANAX(unit) && soc_feature(unit, soc_feature_mpls)) {
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
rv = bcm_kt_mpls_tunnel_switch_traverse(unit, cb, user_data);
bcm_tr_mpls_unlock (unit);
}
return rv;
}
#endif
#ifdef BCM_TRIUMPH_SUPPORT
if (SOC_IS_TR_VL(unit) && soc_feature(unit, soc_feature_mpls)) {
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
if (soc_feature(unit, soc_feature_mpls_lsr_ecmp)) {
#if (defined(BCM_TOMAHAWK_SUPPORT) || defined(BCM_TRIDENT2PLUS_SUPPORT))
rv = bcmi_xgs5_mpls_tunnel_switch_traverse(unit, cb, user_data);
#endif
} else {
rv = bcm_tr_mpls_tunnel_switch_traverse(unit, cb, user_data);
}
bcm_tr_mpls_unlock (unit);
}
return rv;
}
#endif
#endif
return rv;
}
/*
* Function:
* _bcm_esw_mpls_port_source_vp_lag_set
* Purpose:
* Set source VP LAG for a mpls virtual port.
* Parameters:
* unit - (IN) SOC unit number.
* gport - (IN) mpls virtual port GPORT ID.
* vp_lag_vp - (IN) VP representing the VP LAG.
* Returns:
* BCM_X_XXX
*/
int
_bcm_esw_mpls_port_source_vp_lag_set(int unit, bcm_gport_t gport,
int vp_lag_vp)
{
int rv = BCM_E_UNAVAIL;
#if defined(BCM_TRIDENT2_SUPPORT)
if (soc_feature(unit, soc_feature_mpls)
&& soc_feature(unit, soc_feature_vp_lag)) {
rv = bcm_tr_mpls_lock(unit);
if (rv == BCM_E_NONE) {
rv = bcm_td2_mpls_port_source_vp_lag_set(unit, gport, vp_lag_vp);
bcm_tr_mpls_unlock(unit);
}
}
#endif /* BCM_TRIDENT2_SUPPORT */
return rv;
}
/*
* Function:
* _bcm_esw_mpls_port_source_vp_lag_clear
* Purpose:
* Clear source VP LAG for a mpls virtual port.
* Parameters:
* unit - (IN) SOC unit number.
* gport - (IN) mpls virtual port GPORT ID.
* vp_lag_vp - (IN) VP representing the VP LAG.
* Returns:
* BCM_X_XXX
*/
int
_bcm_esw_mpls_port_source_vp_lag_clear(int unit, bcm_gport_t gport,
int vp_lag_vp)
{
int rv = BCM_E_UNAVAIL;
#if defined(BCM_TRIDENT2_SUPPORT)
if (soc_feature(unit, soc_feature_mpls)
&& soc_feature(unit, soc_feature_vp_lag)) {
rv = bcm_tr_mpls_lock(unit);
if (rv == BCM_E_NONE) {
rv = bcm_td2_mpls_port_source_vp_lag_clear(unit, gport, vp_lag_vp);
bcm_tr_mpls_unlock(unit);
}
}
#endif /* BCM_TRIDENT2_SUPPORT */
return rv;
}
/*
* Function:
* _bcm_esw_mpls_port_source_vp_lag_get
* Purpose:
* Get source VP LAG for a mpls virtual port.
* Parameters:
* unit - (IN) SOC unit number.
* gport - (IN) mpls virtual port GPORT ID.
* vp_lag_vp - (OUT) VP representing the VP LAG.
* Returns:
* BCM_X_XXX
*/
int
_bcm_esw_mpls_port_source_vp_lag_get(int unit, bcm_gport_t gport,
int *vp_lag_vp)
{
int rv = BCM_E_UNAVAIL;
#if defined(BCM_TRIDENT2_SUPPORT)
if (soc_feature(unit, soc_feature_mpls)
&& soc_feature(unit, soc_feature_vp_lag)) {
rv = bcm_tr_mpls_lock(unit);
if (rv == BCM_E_NONE) {
rv = bcm_td2_mpls_port_source_vp_lag_get(unit, gport, vp_lag_vp);
bcm_tr_mpls_unlock(unit);
}
}
#endif /* BCM_TRIDENT2_SUPPORT */
return rv;
}
/*
* Function:
* bcm_mpls_entropy_identifier_add
* Purpose:
* Add an MPLS entropy label identifier
* Parameters:
* unit - Device Number
* info - Entropy Label information
* Returns:
* BCM_E_XXX
*/
int
bcm_esw_mpls_entropy_identifier_add(
int unit,
uint32 options,
bcm_mpls_entropy_identifier_t *info)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#if defined(BCM_TRIDENT2PLUS_SUPPORT)
if ((options & BCM_MPLS_ENTROPY_LABEL_IDENTIFIER_TOS) &&
soc_feature(unit, soc_feature_td2p_mpls_entropy_label)) {
L3_LOCK(unit);
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
rv = bcm_td2p_mpls_entropy_identifier_add(unit, options,
info);
bcm_tr_mpls_unlock (unit);
}
L3_UNLOCK(unit);
return rv;
}
#endif
#endif
return rv;
}
/*
* Function:
* bcm_mpls_entropy_identifier_delete
* Purpose:
* Delete an MPLS entropy label identifier
* Parameters:
* unit - Device Number
* info - Entropy Label information
* Returns:
* BCM_E_XXX
*/
int
bcm_esw_mpls_entropy_identifier_delete(
int unit,
bcm_mpls_entropy_identifier_t *info)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#if defined(BCM_TRIDENT2PLUS_SUPPORT)
if (soc_feature(unit, soc_feature_td2p_mpls_entropy_label)) {
L3_LOCK(unit);
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
rv = bcm_td2p_mpls_entropy_identifier_delete(unit, info);
bcm_tr_mpls_unlock (unit);
}
L3_UNLOCK(unit);
return rv;
}
#endif
#endif
return rv;
}
/*
* Function:
* bcm_mpls_entropy_identifier_delete_all
* Purpose:
* Delete all MPLS entropy label identifier entries.
* Parameters:
* unit - Device Number
* Returns:
* BCM_E_XXX
*/
int
bcm_esw_mpls_entropy_identifier_delete_all(
int unit)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#if defined(BCM_TRIDENT2PLUS_SUPPORT)
if (soc_feature(unit, soc_feature_td2p_mpls_entropy_label)) {
L3_LOCK(unit);
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
rv = bcm_td2p_mpls_entropy_identifier_delete_all(unit);
bcm_tr_mpls_unlock (unit);
}
L3_UNLOCK(unit);
return rv;
}
#endif
#endif
return rv;
}
/*
* Function:
* bcm_mpls_entropy_identifier_get
* Purpose:
* Get an MPLS entrpoy label identifier entry
* Parameters:
* unit - Device Number
* info - Entropy Label information
* Returns:
* BCM_E_XXX
*/
int
bcm_esw_mpls_entropy_identifier_get(
int unit,
bcm_mpls_entropy_identifier_t *info)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#if defined(BCM_TRIDENT2PLUS_SUPPORT)
if (soc_feature(unit, soc_feature_td2p_mpls_entropy_label)) {
L3_LOCK(unit);
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
rv = bcm_td2p_mpls_entropy_identifier_get(unit, info);
bcm_tr_mpls_unlock (unit);
}
L3_UNLOCK(unit);
return rv;
}
#endif
#endif
return rv;
}
/*
* Function:
* bcm_mpls_entropy_identifier_traverse
* Purpose:
* Traverse all valid MPLS entropy label identifier entries
* and call the supplied callback routine.
* Parameters:
* unit - Device Number
* cb - User callback function, called once per MPLS ELI entry.
* user_data - cookie
* Returns:
* BCM_E_XXX
*/
int
bcm_esw_mpls_entropy_identifier_traverse(
int unit,
bcm_mpls_entropy_identifier_traverse_cb cb,
void *user_data)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#if defined(BCM_TRIDENT2PLUS_SUPPORT)
if (soc_feature(unit, soc_feature_td2p_mpls_entropy_label)) {
L3_LOCK(unit);
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
rv = bcm_td2p_mpls_entropy_identifier_traverse(unit, cb, user_data);
bcm_tr_mpls_unlock (unit);
}
L3_UNLOCK(unit);
return rv;
}
#endif
#endif
return rv;
}
/*
* Function:
* bcm_esw_mpls_exp_map_create
* Purpose:
* Create an MPLS EXP map instance.
* Parameters:
* unit - (IN) SOC unit #
* flags - (IN) MPLS flags
* exp_map_id - (OUT) Allocated EXP map ID
* Returns:
* BCM_E_XXX
*/
int
bcm_esw_mpls_exp_map_create(int unit, uint32 flags, int *exp_map_id)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH_SUPPORT
if (SOC_IS_TR_VL(unit) && soc_feature(unit, soc_feature_mpls)) {
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
rv = bcm_tr_mpls_exp_map_create(unit, flags, exp_map_id);
bcm_tr_mpls_unlock (unit);
}
return rv;
}
#endif
#endif
return rv;
}
/*
* Function:
* bcm_esw_mpls_exp_map_destroy
* Purpose:
* Destroy an existing MPLS EXP map instance.
* Parameters:
* unit - (IN) SOC unit #
* exp_map_id - (IN) EXP map ID
* Returns:
* BCM_E_XXX
*/
int
bcm_esw_mpls_exp_map_destroy(int unit, int exp_map_id)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH_SUPPORT
if (SOC_IS_TR_VL(unit) && soc_feature(unit, soc_feature_mpls)) {
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
rv = bcm_tr_mpls_exp_map_destroy(unit, exp_map_id);
bcm_tr_mpls_unlock (unit);
}
return rv;
}
#endif
#endif
return rv;
}
/*
* Function:
* bcm_esw_mpls_exp_map_set
* Purpose:
* Set the mapping of { internal priority, color }
* to a EXP value for MPLS headers
* in the specified EXP map instance.
* Parameters:
* unit - (IN) SOC unit #
* exp_map_id - (IN) EXP map ID
* priority - (IN) Internal priority
* color - (IN) bcmColor*
* exp - (IN) EXP value
* Returns:
* BCM_E_XXX
*/
int
bcm_esw_mpls_exp_map_set(int unit, int exp_map_id,
bcm_mpls_exp_map_t *exp_map)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH_SUPPORT
if (SOC_IS_TR_VL(unit) && soc_feature(unit, soc_feature_mpls)) {
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
rv = bcm_tr_mpls_exp_map_set(unit, exp_map_id, exp_map);
bcm_tr_mpls_unlock (unit);
}
return rv;
}
#endif
#endif
return rv;
}
/*
* Function:
* bcm_esw_mpls_exp_map_get
* Purpose:
* Get the mapping of { internal priority, color }
* to a EXP value for MPLS headers
* in the specified EXP map instance.
* Parameters:
* unit - (IN) SOC unit #
* exp_map_id - (IN) EXP map ID
* priority - (IN) Internal priority
* color - (IN) bcmColor*
* exp - (OUT) EXP value
* Returns:
* BCM_E_XXX
*/
int
bcm_esw_mpls_exp_map_get(int unit, int exp_map_id,
bcm_mpls_exp_map_t *exp_map)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH_SUPPORT
if (SOC_IS_TR_VL(unit) && soc_feature(unit, soc_feature_mpls)) {
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
rv = bcm_tr_mpls_exp_map_get(unit, exp_map_id, exp_map);
bcm_tr_mpls_unlock (unit);
}
return rv;
}
#endif
#endif
return rv;
}
#if defined(BCM_TRIDENT2PLUS_SUPPORT)
/*
* Function:
* bcmi_td2p_mpls_tunnel_stat_get_table_info
* Description:
* Provides relevant flex table information(table-name,index with
* direction) based on the mpls tunnel info.
*
* Parameters:
* unit - (IN) unit number
* intf_id - (IN) Interface id of a egress L3 object.
* num_of_tables - (OUT) Number of flex counter tables
* table_info - (OUT) Flex counter tables information
*
* Return Value:
* BCM_E_XXX
*/
static
bcm_error_t bcmi_td2p_mpls_tunnel_stat_get_table_info(
int unit,
bcm_if_t intf_id,
uint32 *num_of_tables,
bcm_stat_flex_table_info_t *table_info)
{
bcm_l3_egress_t egr_intf = {0};
egr_l3_intf_entry_t if_entry;
int mpls_index = 0;
(*num_of_tables) = 0;
if (!soc_feature(unit,soc_feature_advanced_flex_counter)) {
return BCM_E_UNAVAIL;
}
BCM_IF_ERROR_RETURN(bcm_esw_l3_egress_get(unit, intf_id, &egr_intf));
/* L3 interface info */
SOC_IF_ERROR_RETURN(READ_EGR_L3_INTFm(unit,
MEM_BLOCK_ANY, egr_intf.intf, &if_entry));
mpls_index = soc_EGR_L3_INTFm_field32_get(unit, &if_entry,
MPLS_TUNNEL_INDEXf);
#if defined(BCM_TRIDENT3_SUPPORT)
if (SOC_IS_TRIDENT3X(unit) && soc_feature(unit, soc_feature_td3_style_mpls)) {
table_info[*num_of_tables].table = EGR_IP_TUNNEL_MPLS_DOUBLE_WIDEm;
} else
#endif
{
table_info[*num_of_tables].table = EGR_IP_TUNNEL_MPLSm;
}
table_info[*num_of_tables].index = mpls_index;
table_info[*num_of_tables].direction = bcmStatFlexDirectionEgress;
(*num_of_tables)++;
return BCM_E_NONE;
}
/*
* Function:
* bcmi_td2p_mpls_tunnel_stat_attach
*
* Description:
* Attach counters entries to the mpls tunnel derived from the
* given L3 Egress interface
*
* Parameters:
* unit - (IN) unit number
* intf_id - (IN) Interface id
* stat_counter_id - (IN) Stat Counter ID
*
* Return Value:
* BCM_E_XXX
*/
STATIC bcm_error_t bcmi_td2p_mpls_tunnel_stat_attach(
int unit,
bcm_if_t intf_id,
uint32 stat_counter_id)
{
soc_mem_t table = 0;
bcm_stat_flex_direction_t direction = bcmStatFlexDirectionEgress;
uint32 pool_number = 0;
uint32 base_index = 0;
bcm_stat_flex_mode_t offset_mode = 0;
bcm_stat_object_t object = bcmStatObjectEgrMplsTunnelLabel;
bcm_stat_group_mode_t group_mode = bcmStatGroupModeSingle;
uint32 count = 0;
uint32 actual_num_tables = 0;
uint32 num_of_tables = 0;
bcm_stat_flex_table_info_t table_info[BCM_STAT_FLEX_COUNTER_MAX_DIRECTION];
_bcm_esw_stat_get_counter_id_info(
unit, stat_counter_id,
&group_mode, &object,
&offset_mode, &pool_number, &base_index);
BCM_IF_ERROR_RETURN(_bcm_esw_stat_validate_object(unit,
object, &direction));
BCM_IF_ERROR_RETURN(_bcm_esw_stat_validate_group(unit, group_mode));
BCM_IF_ERROR_RETURN(_bcm_esw_stat_flex_get_table_info(unit,
object, 1, &actual_num_tables, &table, &direction));
BCM_IF_ERROR_RETURN(bcmi_td2p_mpls_tunnel_stat_get_table_info(
unit, intf_id, &num_of_tables, &table_info[0]));
for (count = 0; count < num_of_tables ; count++) {
if ((table_info[count].direction == direction) &&
(table_info[count].table == table) ) {
if (direction == bcmStatFlexDirectionIngress) {
return _bcm_esw_stat_flex_attach_ingress_table_counters(
unit,
table_info[count].table,
table_info[count].index,
offset_mode,
base_index,
pool_number);
} else {
return _bcm_esw_stat_flex_attach_egress_table_counters(
unit,
table_info[count].table,
table_info[count].index,
object,
offset_mode,
base_index,
pool_number);
}
}
}
return BCM_E_NOT_FOUND;
}
/*
* Function:
* bcmi_td2p_mpls_tunnel_stat_detach
*
* Description:
* Detach counters entries to the mpls tunnel derived from the
* given L3 Egress interface.
*
* Parameters:
* unit - (IN) unit number
* intf_id - (IN) Interface id of a egress L3 object.
* stat_counter_id - (IN) Stat Counter ID.
*
* Return Value:
* BCM_E_XXX
*/
STATIC
bcm_error_t bcmi_td2p_mpls_tunnel_stat_detach(
int unit,
bcm_if_t intf_id,
uint32 stat_counter_id)
{
uint32 count = 0;
uint32 num_of_tables = 0;
bcm_stat_flex_table_info_t table_info[BCM_STAT_FLEX_COUNTER_MAX_DIRECTION];
bcm_error_t rv = BCM_E_NONE;
bcm_error_t err_code[BCM_STAT_FLEX_COUNTER_MAX_DIRECTION] = {BCM_E_NONE};
bcm_stat_group_mode_t group_mode = bcmStatGroupModeSingle;
bcm_stat_object_t object = bcmStatObjectEgrMplsTunnelLabel;
bcm_stat_flex_mode_t offset_mode = 0;
uint32 pool_number = 0;
uint32 base_index = 0;
BCM_IF_ERROR_RETURN(bcmi_td2p_mpls_tunnel_stat_get_table_info(
unit, intf_id, &num_of_tables, &table_info[0]));
if (stat_counter_id != 0) {
_bcm_esw_stat_get_counter_id_info(
unit, stat_counter_id,
&group_mode, &object,
&offset_mode, &pool_number, &base_index);
}
for (count = 0; count < num_of_tables ; count++) {
if (table_info[count].direction == bcmStatFlexDirectionIngress) {
rv = _bcm_esw_stat_flex_detach_ingress_table_counters(
unit, table_info[count].table, table_info[count].index);
if (BCM_E_NONE != rv &&
BCM_E_NONE == err_code[bcmStatFlexDirectionIngress]) {
err_code[bcmStatFlexDirectionIngress] = rv;
}
} else {
rv = _bcm_esw_stat_flex_detach_egress_table_counters(
unit, object,
table_info[count].table, table_info[count].index);
if (BCM_E_NONE != rv &&
BCM_E_NONE == err_code[bcmStatFlexDirectionEgress]) {
err_code[bcmStatFlexDirectionEgress] = 1;
}
}
}
BCM_STAT_FLEX_DETACH_RETURN(err_code)
}
/*
* Function:
* bcmi_td2p_mpls_tunnel_stat_counter_get
*
* Description:
* Get the specified counter statistic for a mpls tunnel derived from the
* given L3 Egress interface
* if sync_mode is set, sync the sw accumulated count
* with hw count value first, else return sw count.
*
* Parameters:
* unit - (IN) unit number
* sync_mode - (IN) hwcount is to be synced to sw count
* intf_id - (IN) Interface id of a egress L3 object.
* stat - (IN) Type of the counter to retrieve
* I.e. ingress/egress byte/packet)
* num_entries - (IN) Number of counter Entries
* counter_indexes - (IN) Pointer to Counter indexes entries
* counter_values - (OUT) Pointer to counter values
*
* Return Value:
* BCM_E_XXX
*/
STATIC
bcm_error_t bcmi_td2p_mpls_tunnel_stat_counter_get(
int unit,
int sync_mode,
bcm_if_t intf_id,
uint32 stat_counter_id,
bcm_mpls_stat_t stat,
uint32 num_entries,
uint32 *counter_indexes,
bcm_stat_value_t *counter_values)
{
uint32 table_count = 0;
uint32 index_count = 0;
uint32 num_of_tables = 0;
bcm_stat_flex_direction_t direction = bcmStatFlexDirectionIngress;
uint32 byte_flag = 0;
bcm_stat_flex_table_info_t table_info[BCM_STAT_FLEX_COUNTER_MAX_DIRECTION];
uint32 pool_number = 0;
uint32 base_index = 0;
bcm_stat_flex_mode_t offset_mode = 0;
bcm_stat_object_t object = bcmStatObjectEgrMplsTunnelLabel;
bcm_stat_group_mode_t group_mode = bcmStatGroupModeSingle;
if (stat_counter_id != 0) {
_bcm_esw_stat_get_counter_id_info(
unit, stat_counter_id,
&group_mode, &object,
&offset_mode, &pool_number, &base_index);
}
if ((stat == bcmMplsOutPkts) ||
(stat == bcmMplsOutBytes)) {
direction = bcmStatFlexDirectionEgress;
} else {
direction = bcmStatFlexDirectionIngress;
}
if ((stat == bcmMplsInPkts)|| (stat == bcmMplsOutPkts)) {
byte_flag = 0;
} else {
byte_flag = 1;
}
BCM_IF_ERROR_RETURN(bcmi_td2p_mpls_tunnel_stat_get_table_info(
unit, intf_id, &num_of_tables, &table_info[0]));
for (table_count = 0; table_count < num_of_tables ; table_count++) {
if (table_info[table_count].direction == direction) {
for (index_count = 0; index_count < num_entries ; index_count++) {
BCM_IF_ERROR_RETURN(_bcm_esw_stat_counter_get(
unit, sync_mode,
table_info[table_count].index,
table_info[table_count].table,
object,
byte_flag,
counter_indexes[index_count],
&counter_values[index_count]));
}
}
}
return BCM_E_NONE;
}
/*
* Function:
* bcmi_td2p_mpls_tunnel_stat_counter_set
*
* Description:
* Set the specified counter statistic for a mpls tunnel derived from the
* given L3 Egress interface
*
* Parameters:
* unit - (IN) unit number
* intf_id - (IN) Interface id of a egress L3 object.
* stat - (IN) Type of the counter to retrieve
* I.e. ingress/egress byte/packet)
* num_entries - (IN) Number of counter Entries
* counter_indexes - (IN) Pointer to Counter indexes entries
* counter_values - (IN) Pointer to counter values
*
* Return Value:
* BCM_E_XXX
*/
STATIC
bcm_error_t bcmi_td2p_mpls_tunnel_stat_counter_set(
int unit,
bcm_if_t intf_id,
uint32 stat_counter_id,
bcm_mpls_stat_t stat,
uint32 num_entries,
uint32 *counter_indexes,
bcm_stat_value_t *counter_values)
{
uint32 table_count = 0;
uint32 index_count = 0;
uint32 num_of_tables = 0;
bcm_stat_flex_direction_t direction = bcmStatFlexDirectionIngress;
uint32 byte_flag = 0;
bcm_stat_flex_table_info_t table_info[BCM_STAT_FLEX_COUNTER_MAX_DIRECTION];
uint32 pool_number = 0;
uint32 base_index = 0;
bcm_stat_flex_mode_t offset_mode = 0;
bcm_stat_object_t object = bcmStatObjectEgrMplsTunnelLabel;
bcm_stat_group_mode_t group_mode = bcmStatGroupModeSingle;
if ((stat == bcmMplsOutPkts) ||
(stat == bcmMplsOutBytes)) {
direction = bcmStatFlexDirectionEgress;
} else {
direction = bcmStatFlexDirectionIngress;
}
if ((stat == bcmMplsInPkts) || (stat == bcmMplsOutPkts)) {
byte_flag = 0;
} else {
byte_flag = 1;
}
if (stat_counter_id != 0) {
_bcm_esw_stat_get_counter_id_info(
unit, stat_counter_id,
&group_mode, &object,
&offset_mode, &pool_number, &base_index);
}
BCM_IF_ERROR_RETURN(bcmi_td2p_mpls_tunnel_stat_get_table_info(
unit, intf_id, &num_of_tables, &table_info[0]));
for (table_count = 0; table_count < num_of_tables ; table_count++) {
if (table_info[table_count].direction == direction) {
for (index_count = 0; index_count < num_entries ; index_count++) {
BCM_IF_ERROR_RETURN(_bcm_esw_stat_counter_set(
unit,
table_info[table_count].index,
table_info[table_count].table,
object,
byte_flag,
counter_indexes[index_count],
&counter_values[index_count]));
}
}
}
return BCM_E_NONE;
}
/*
* Function:
* bcmi_td2p_mpls_tunnel_stat_id_get
*
* Description:
* Get stat counter id associated with given egress interface id
*
* Parameters:
* unit - (IN) unit number
* intf_id - (IN) Interface id of a egress L3 object.
* stat - (IN) Type of the counter to retrieve
* I.e. ingress/egress byte/packet)
* Stat_counter_id - (OUT) Stat Counter ID
*
* Return Value:
* BCM_E_XXX
*/
STATIC
int bcmi_td2p_mpls_tunnel_stat_id_get(
int unit,
bcm_if_t intf_id,
bcm_mpls_stat_t stat,
uint32 *stat_counter_id)
{
bcm_stat_flex_direction_t direction = bcmStatFlexDirectionIngress;
uint32 num_of_tables = 0;
bcm_stat_flex_table_info_t table_info[BCM_STAT_FLEX_COUNTER_MAX_DIRECTION];
uint32 index = 0;
uint32 num_stat_counter_ids = 0;
if ((stat == bcmMplsInPkts) ||
(stat == bcmMplsInBytes)) {
direction = bcmStatFlexDirectionIngress;
} else {
direction = bcmStatFlexDirectionEgress;
}
BCM_IF_ERROR_RETURN(bcmi_td2p_mpls_tunnel_stat_get_table_info(
unit, intf_id, &num_of_tables, &table_info[0]));
for (index = 0; index < num_of_tables ; index++) {
if (table_info[index].direction == direction)
return _bcm_esw_stat_flex_get_counter_id(
unit, 1, &table_info[index],
&num_stat_counter_ids, stat_counter_id);
}
return BCM_E_NOT_FOUND;
}
/*
* Function:
* bcmi_td2p_mpls_tunnel_label_counter_id_num_get
*
* Description:
* Get array of counters ids' attached to the mpls tunnel
*
* Parameters:
* unit - (IN) unit number
* intf_id - (IN) Interface id
* num_counters - (IN) Number of counters attached
* to the interface id
* Stat_counter_id - (OUT) Array of stat counter ids
* associated with the interface id
*
* Return Value:
* BCM_E_XXX
*/
STATIC bcm_error_t bcmi_td2p_mpls_tunnel_label_counter_id_num_get(
int unit,
bcm_if_t intf_id,
int *num_counters,
uint32 *stat_counter_id)
{
uint32 num_of_tables = 0;
int num_labels = 0;
bcm_stat_flex_table_info_t table_info[BCM_STAT_FLEX_COUNTER_MAX_DIRECTION];
BCM_IF_ERROR_RETURN(bcmi_td2p_mpls_tunnel_stat_get_table_info(
unit, intf_id, &num_of_tables, &table_info[0]));
BCM_IF_ERROR_RETURN(_bcm_tr_mpls_tunnel_chain_label_count_get(unit,
table_info[0].index, &num_labels));
#if defined (INCLUDE_L3)
if (*num_counters <= num_labels) {
return _bcm_esw_stat_flex_get_multi_counter_id(unit,&table_info[0],
num_counters, stat_counter_id);
} else {
return BCM_E_PARAM;
}
#endif
return BCM_E_UNAVAIL;
}
#endif /* BCM_TRIDENT2PLUS_SUPPORT */
/*
* Function:
* bcm_esw_mpls_tunnel_stat_attach
*
* Description:
* Attach counters entries to the the mpls tunnel derived from the
* given L3 Egress interface
*
* Parameters:
* unit - (IN) unit number
* intf_id - (IN) Interface id of a egress L3 object.
* stat_counter_id - (IN) Stat Counter ID.
*
* Return Value:
* BCM_E_XXX
*/
int bcm_esw_mpls_tunnel_stat_attach(
int unit,
bcm_if_t intf_id,
uint32 stat_counter_id)
{
#ifdef BCM_MPLS_SUPPORT
#if defined(BCM_TRIDENT2PLUS_SUPPORT)
if (soc_feature(unit,soc_feature_advanced_flex_counter)) {
return bcmi_td2p_mpls_tunnel_stat_attach(unit, intf_id, stat_counter_id);
}
#endif
#endif
return BCM_E_UNAVAIL;
}
/*
* Function:
* bcm_esw_mpls_tunnel_stat_detach
*
* Description:
* Detach counters entries to the the mpls tunnel derived from the
* given L3 Egress interface.
*
* Parameters:
* unit - (IN) unit number
* intf_id - (IN) Interface id of a egress L3 object.
* stat_counter_id - (IN) Stat Counter ID.
*
* Return Value:
* BCM_E_XXX
*/
int bcm_esw_mpls_tunnel_stat_detach(
int unit,
bcm_if_t intf_id)
{
#ifdef BCM_MPLS_SUPPORT
#if defined(BCM_TRIDENT2PLUS_SUPPORT)
if (soc_feature(unit,soc_feature_advanced_flex_counter)) {
return bcmi_td2p_mpls_tunnel_stat_detach(unit, intf_id, 0);
}
#endif
#endif
return BCM_E_UNAVAIL;
}
/*
* Function:
* bcm_esw_mpls_tunnel_stat_counter_get
*
* Description:
* Get the specified counter statistic for a mpls tunnel derived from the
* given L3 Egress interface
*
* Parameters:
* unit - (IN) unit number
* intf_id - (IN) Interface id of a egress L3 object.
* stat - (IN) Type of the counter to retrieve
* I.e. ingress/egress byte/packet)
* num_entries - (IN) Number of counter Entries
* counter_indexes - (IN) Pointer to Counter indexes entries
* counter_values - (OUT) Pointer to counter values
*
* Return Value:
* BCM_E_XXX
*/
int bcm_esw_mpls_tunnel_stat_counter_get(
int unit,
bcm_if_t intf_id,
bcm_mpls_stat_t stat,
uint32 num_entries,
uint32 *counter_indexes,
bcm_stat_value_t *counter_values)
{
#ifdef BCM_MPLS_SUPPORT
#if defined(BCM_TRIDENT2PLUS_SUPPORT)
return bcmi_td2p_mpls_tunnel_stat_counter_get(unit, 0, intf_id, 0, stat,
num_entries,
counter_indexes,
counter_values);
#endif
#endif
return BCM_E_UNAVAIL;
}
/*
* Function:
* bcm_esw_mpls_tunnel_stat_counter_sync_get
*
* Description:
* Retrieve set of counter statistics for a mpls tunnel derived from the
* given L3 Egress interface
* sw accumulated counters synced with hw count.
*
* Parameters:
* unit - (IN) unit number
* intf_id - (IN) Interface id of a egress L3 object.
* stat - (IN) Type of the counter to retrieve
* I.e. ingress/egress byte/packet)
* num_entries - (IN) Number of counter Entries
* counter_indexes - (IN) Pointer to Counter indexes entries
* counter_values - (OUT) Pointer to counter values
*
* Return Value:
* BCM_E_XXX
*/
int bcm_esw_mpls_tunnel_stat_counter_sync_get(
int unit,
bcm_if_t intf_id,
bcm_mpls_stat_t stat,
uint32 num_entries,
uint32 *counter_indexes,
bcm_stat_value_t *counter_values)
{
#ifdef BCM_MPLS_SUPPORT
#if defined(BCM_TRIDENT2PLUS_SUPPORT)
return bcmi_td2p_mpls_tunnel_stat_counter_get(unit, 1, intf_id, 0, stat,
num_entries, counter_indexes,
counter_values);
#endif
#endif
return BCM_E_UNAVAIL;
}
/*
* Function:
* bcm_esw_mpls_tunnel_stat_counter_set
*
* Description:
* Set the specified counter statistic for a mpls tunnel derived from the
* given L3 Egress interface
*
* Parameters:
* unit - (IN) unit number
* intf_id - (IN) Interface id of a egress L3 object.
* stat - (IN) Type of the counter to retrieve
* I.e. ingress/egress byte/packet)
* num_entries - (IN) Number of counter Entries
* counter_indexes - (IN) Pointer to Counter indexes entries
* counter_values - (IN) Pointer to counter values
*
* Return Value:
* BCM_E_XXX
*/
int bcm_esw_mpls_tunnel_stat_counter_set(
int unit,
bcm_if_t intf_id,
bcm_mpls_stat_t stat,
uint32 num_entries,
uint32 *counter_indexes,
bcm_stat_value_t *counter_values)
{
#ifdef BCM_MPLS_SUPPORT
#if defined(BCM_TRIDENT2PLUS_SUPPORT)
if (soc_feature(unit,soc_feature_advanced_flex_counter)) {
return bcmi_td2p_mpls_tunnel_stat_counter_set(unit, intf_id, 0, stat,
num_entries, counter_indexes, counter_values);
}
#endif
#endif
return BCM_E_UNAVAIL;
}
/*
* Function:
* bcm_esw_mpls_tunnel_stat_id_get
*
* Description:
* Get stat counter id associated with given egress interface id
*
* Parameters:
* unit - (IN) unit number
* intf_id - (IN) Interface id of a egress L3 object.
* stat - (IN) Type of the counter to retrieve
* I.e. ingress/egress byte/packet)
* Stat_counter_id - (OUT) Stat Counter ID
*
* Return Value:
* BCM_E_XXX
*/
int bcm_esw_mpls_tunnel_stat_id_get(
int unit,
bcm_if_t intf_id,
bcm_mpls_stat_t stat,
uint32 *stat_counter_id)
{
#ifdef BCM_MPLS_SUPPORT
#if defined(BCM_TRIDENT2PLUS_SUPPORT)
if (soc_feature(unit,soc_feature_advanced_flex_counter)) {
return bcmi_td2p_mpls_tunnel_stat_id_get(unit, intf_id, stat,
stat_counter_id);
}
#endif
#endif
return BCM_E_UNAVAIL;
}
/*
* Function:
* bcm_esw_mpls_tunnel_label_counter_id_detach
*
* Description:
* Detach counter entry of the specific mpls tunnel label pointed
* to by the given stat counter id.
*
* Parameters:
* unit - (IN) unit number
* intf_id - (IN) Interface id of a egress L3 object.
* stat_counter_id - (IN) Stat Counter ID.
*
* Return Value:
* BCM_E_XXX
*/
int bcm_esw_mpls_tunnel_label_counter_id_detach(
int unit,
bcm_if_t intf_id,
uint32 stat_counter_id)
{
#ifdef BCM_MPLS_SUPPORT
#if defined(BCM_TRIDENT2PLUS_SUPPORT)
if (soc_feature(unit,soc_feature_advanced_flex_counter)) {
return bcmi_td2p_mpls_tunnel_stat_detach(unit, intf_id, stat_counter_id);
}
#endif
#endif
return BCM_E_UNAVAIL;
}
/*
* Function:
* bcm_esw_mpls_tunnel_label_counter_id_stat_get
*
* Description:
* Get the specified counter statistic for the given mpls tunnel
* label and counter id associated with it
*
* Parameters:
* unit - (IN) unit number
* intf_id - (IN) Interface id of a egress L3 object.
* stat_counter_id - (IN) Stat Counter Id
* stat_info - (IN/OUT) Mpls Stat Info Structure
*
* Return Value:
* BCM_E_XXX
*/
int bcm_esw_mpls_tunnel_label_counter_id_stat_get(
int unit,
bcm_if_t intf_id,
uint32 stat_counter_id,
bcm_mpls_stat_info_t *stat_info)
{
#ifdef BCM_MPLS_SUPPORT
#if defined(BCM_TRIDENT2PLUS_SUPPORT)
return bcmi_td2p_mpls_tunnel_stat_counter_get(unit, 0, intf_id, stat_counter_id,
stat_info->stat,stat_info->num_entries,
stat_info->counter_indexes,
stat_info->counter_values);
#endif
#endif
return BCM_E_UNAVAIL;
}
/*
* Function:
* bcm_esw_mpls_tunnel_label_counter_id_stat_sync_get
*
* Description:
* Get the specified counter statistic for the given mpls tunnel
* label and counter id associated with it
* sw accumulated counters synced with hw count.
*
* Parameters:
* unit - (IN) unit number
* intf_id - (IN) Interface id of a egress L3 object.
* stat_counter_id - (IN) Stat Counter Id
* stat_info - (IN/OUT) Mpls Stat Info Structure
*
* Return Value:
* BCM_E_XXX
*/
int bcm_esw_mpls_tunnel_label_counter_id_stat_sync_get(
int unit,
bcm_if_t intf_id,
uint32 stat_counter_id,
bcm_mpls_stat_info_t *stat_info)
{
#ifdef BCM_MPLS_SUPPORT
#if defined(BCM_TRIDENT2PLUS_SUPPORT)
return bcmi_td2p_mpls_tunnel_stat_counter_get(unit, 1, intf_id, stat_counter_id,
stat_info->stat,stat_info->num_entries,
stat_info->counter_indexes,
stat_info->counter_values);
#endif
#endif
return BCM_E_UNAVAIL;
}
/*
* Function:
* bcm_esw_mpls_tunnel_label_counter_id_stat_set
*
* Description:
* Set the specified counter statistic for the given mpls tunnel
* label and counter id associated with it
*
* Parameters:
* unit - (IN) unit number
* intf_id - (IN) Interface id of a egress L3 object.
* stat_counter_id - (IN) Stat Counter Id
* stat_info - (IN) Mpls Stat Info Structure
*
* Return Value:
* BCM_E_XXX
*/
int bcm_esw_mpls_tunnel_label_counter_id_stat_set(
int unit,
bcm_if_t intf_id,
uint32 stat_counter_id,
bcm_mpls_stat_info_t *stat_info)
{
#ifdef BCM_MPLS_SUPPORT
#if defined(BCM_TRIDENT2PLUS_SUPPORT)
if (soc_feature(unit,soc_feature_advanced_flex_counter)) {
return bcmi_td2p_mpls_tunnel_stat_counter_set(unit, intf_id,
stat_counter_id,stat_info->stat, stat_info->num_entries,
stat_info->counter_indexes,stat_info->counter_values);
}
#endif
#endif
return BCM_E_UNAVAIL;
}
/*
* Function:
* bcm_esw_mpls_tunnel_label_counter_id_num_get
*
* Description:
* Get stat counter id associated with given egress interface id
*
* Parameters:
* unit - (IN) unit number
* intf_id - (IN) Interface id of a egress L3 object.
* num_counters - (IN/OUT) Number of counters attached
* to the interface id
* Stat_counter_id - (OUT) Array of stat counter ids
* associated with the interface id
*
* Return Value:
* BCM_E_XXX
*/
int bcm_esw_mpls_tunnel_label_counter_id_num_get(
int unit,
bcm_if_t intf_id,
int *num_counters,
uint32 *stat_counter_id)
{
#ifdef BCM_MPLS_SUPPORT
#if defined(BCM_TRIDENT2PLUS_SUPPORT)
if (soc_feature(unit,soc_feature_advanced_flex_counter)) {
return bcmi_td2p_mpls_tunnel_label_counter_id_num_get(unit, intf_id,
num_counters,stat_counter_id);
}
#endif
#endif
return BCM_E_UNAVAIL;
}
#if defined(BCM_TRIDENT2_SUPPORT)
/* Duplicated from Katana code
* This should also serve as default MPLS flex stat counter support.
*/
/*
* Function:
* td2_mpls_port_stat_get_table_info
* Description:
* Provides relevant flex table information(table-name,index with
* direction) for specific vpn and gport
*
* Parameters:
* unit - (IN) unit number
* vpn - (IN) VPN Id
* port - (IN) MPLS GPORT ID
* num_of_tables - (OUT) Number of flex counter tables
* table_info - (OUT) Flex counter tables information
*
* Return Value:
* BCM_E_XXX
* Notes:
*/
STATIC
bcm_error_t td2_mpls_port_stat_get_table_info(
int unit,
bcm_vpn_t vpn,
bcm_gport_t port,
uint32 *num_of_tables,
bcm_stat_flex_table_info_t *table_info)
{
int vp=0;
ing_dvp_table_entry_t dvp={{0}};
int nh_index=0;
initial_prot_nhi_table_entry_t prot_entry;
int vpless_failover_port = FALSE;
int rv;
if (_BCM_MPLS_GPORT_FAILOVER_VPLESS_GET(port)) {
vpless_failover_port = TRUE;
port = _BCM_MPLS_GPORT_FAILOVER_VPLESS_CLEAR(port);
}
(*num_of_tables)=0;
if (!soc_feature(unit,soc_feature_advanced_flex_counter)) {
return BCM_E_UNAVAIL;
}
if (soc_feature(unit, soc_feature_mpls)) {
BCM_IF_ERROR_RETURN(bcm_tr_mpls_lock(unit));
if (!_BCM_MPLS_VPN_IS_VPLS(vpn) &&
!_BCM_MPLS_VPN_IS_VPWS(vpn)) {
bcm_tr_mpls_unlock (unit);
return BCM_E_PARAM;
}
vp = BCM_GPORT_MPLS_PORT_ID_GET(port);
if (vp == -1) {
bcm_tr_mpls_unlock (unit);
return BCM_E_PARAM;
}
if (!_bcm_vp_used_get(unit, vp, _bcmVpTypeMpls)) {
bcm_tr_mpls_unlock (unit);
return BCM_E_NOT_FOUND;
}
table_info[*num_of_tables].table= SOURCE_VPm;
table_info[*num_of_tables].index=vp;
table_info[*num_of_tables].direction=bcmStatFlexDirectionIngress;
(*num_of_tables)++;
if(READ_ING_DVP_TABLEm(unit, MEM_BLOCK_ANY, vp, &dvp) == BCM_E_NONE) {
nh_index=soc_ING_DVP_TABLEm_field32_get(unit, &dvp, NEXT_HOP_INDEXf);
rv = BCM_E_NONE;
if (vpless_failover_port == TRUE) {
rv = READ_INITIAL_PROT_NHI_TABLEm(unit,MEM_BLOCK_ANY, nh_index, &prot_entry);
if (BCM_SUCCESS(rv)) {
nh_index = soc_INITIAL_PROT_NHI_TABLEm_field32_get(unit,&prot_entry,
PROT_NEXT_HOP_INDEXf);
}
}
if (BCM_SUCCESS(rv)) {
table_info[*num_of_tables].table= EGR_L3_NEXT_HOPm;
table_info[*num_of_tables].index=nh_index;
table_info[*num_of_tables].direction=bcmStatFlexDirectionEgress;
(*num_of_tables)++;
}
}
bcm_tr_mpls_unlock (unit);
return BCM_E_NONE;
}
return BCM_E_UNAVAIL;
}
#ifdef BCM_TOMAHAWK3_SUPPORT
/* Convert key part of application format to HW entry. */
STATIC int
th3_mpls_entry_set_key(int unit, bcm_mpls_tunnel_switch_t *info,
mpls_entry_entry_t *ment)
{
bcm_module_t mod_out;
bcm_port_t port_out;
bcm_trunk_t trunk_id;
int rv, gport_id;
soc_mem_t mem = MPLS_ENTRY_SINGLEm;
sal_memset(ment, 0, sizeof(mpls_entry_entry_t));
if (info->port == BCM_GPORT_INVALID) {
/* Global label, mod/port not part of lookup key */
soc_mem_field32_set(unit, mem, ment, PORT_NUMf, 0);
if (BCM_XGS3_L3_MPLS_LBL_VALID(info->label)) {
soc_mem_field32_set(unit, mem, ment, MPLS__MPLS_LABELf, info->label);
} else {
return BCM_E_PARAM;
}
soc_mem_field32_set(unit, mem, ment, BASE_VALIDf, 1);
return BCM_E_NONE;
}
rv = _bcm_esw_gport_resolve(unit, info->port, &mod_out,
&port_out, &trunk_id, &gport_id);
BCM_IF_ERROR_RETURN(rv);
if (BCM_GPORT_IS_TRUNK(info->port)) {
soc_mem_field32_set(unit, mem, ment, Tf, 1);
soc_mem_field32_set(unit, mem, ment, TGIDf, trunk_id);
} else {
soc_mem_field32_set(unit, mem, ment, PORT_NUMf, port_out);
}
if (BCM_XGS3_L3_MPLS_LBL_VALID(info->label)) {
soc_mem_field32_set(unit, mem, ment, MPLS__MPLS_LABELf, info->label);
} else {
return BCM_E_PARAM;
}
soc_mem_field32_set(unit, mem, ment, BASE_VALIDf, 1);
return BCM_E_NONE;
}
#endif
/* Convert key part of application format to HW entry. */
STATIC int
td2_mpls_entry_set_key(int unit, bcm_mpls_tunnel_switch_t *info,
mpls_entry_entry_t *ment)
{
bcm_module_t mod_out;
bcm_port_t port_out;
bcm_trunk_t trunk_id;
int rv, gport_id;
sal_memset(ment, 0, sizeof(mpls_entry_entry_t));
if (info->port == BCM_GPORT_INVALID) {
/* Global label, mod/port not part of lookup key */
soc_MPLS_ENTRYm_field32_set(unit, ment, MODULE_IDf, 0);
soc_MPLS_ENTRYm_field32_set(unit, ment, PORT_NUMf, 0);
if (BCM_XGS3_L3_MPLS_LBL_VALID(info->label)) {
soc_MPLS_ENTRYm_field32_set(unit, ment, MPLS_LABELf, info->label);
} else {
return BCM_E_PARAM;
}
if (soc_feature(unit, soc_feature_td3_style_mpls)) {
soc_MPLS_ENTRYm_field32_set(unit, ment, BASE_VALID_0f, 3);
soc_MPLS_ENTRYm_field32_set(unit, ment, BASE_VALID_1f, 7);
} else {
soc_MPLS_ENTRYm_field32_set(unit, ment, VALIDf, 1);
}
return BCM_E_NONE;
}
rv = _bcm_esw_gport_resolve(unit, info->port, &mod_out,
&port_out, &trunk_id, &gport_id);
BCM_IF_ERROR_RETURN(rv);
if (BCM_GPORT_IS_TRUNK(info->port)) {
soc_MPLS_ENTRYm_field32_set(unit, ment, Tf, 1);
soc_MPLS_ENTRYm_field32_set(unit, ment, TGIDf, trunk_id);
} else {
soc_MPLS_ENTRYm_field32_set(unit, ment, MODULE_IDf, mod_out);
soc_MPLS_ENTRYm_field32_set(unit, ment, PORT_NUMf, port_out);
}
if (BCM_XGS3_L3_MPLS_LBL_VALID(info->label)) {
soc_MPLS_ENTRYm_field32_set(unit, ment, MPLS_LABELf, info->label);
} else {
return BCM_E_PARAM;
}
if (soc_feature(unit, soc_feature_td3_style_mpls)) {
soc_MPLS_ENTRYm_field32_set(unit, ment, BASE_VALID_0f, 3);
soc_MPLS_ENTRYm_field32_set(unit, ment, BASE_VALID_1f, 7);
} else {
soc_MPLS_ENTRYm_field32_set(unit, ment, VALIDf, 1);
}
return BCM_E_NONE;
}
/*
* Function:
* td2_mpls_label_stat_get_table_info
* Description:
* Provides relevant flex table information(table-name,index with
* direction) for given mpls label and gport
*
* Parameters:
* unit - (IN) unit number
* label - (IN) MPLS Label
* port - (IN) MPLS Gport
* object - (IN) Stat Object
* num_of_tables - (OUT) Number of flex counter tables
* table_info - (OUT) Flex counter tables information
*
* Return Value:
* BCM_E_XXX
* Notes:
*/
STATIC
bcm_error_t td2_mpls_label_stat_get_table_info(
int unit,
bcm_mpls_label_t label,
bcm_gport_t port,
bcm_stat_object_t object,
uint32 *num_of_tables,
bcm_stat_flex_table_info_t *table_info)
{
bcm_error_t rv=BCM_E_NOT_FOUND;
bcm_mpls_tunnel_switch_t mpls_tunnel_switch={0};
mpls_entry_entry_t ment={{0}};
int index=0;
soc_mem_t mem = MPLS_ENTRYm;
int found = -1;
(*num_of_tables)=0;
if (!soc_feature(unit,soc_feature_advanced_flex_counter)) {
return BCM_E_UNAVAIL;
}
if (!soc_feature(unit, soc_feature_mpls)) {
return BCM_E_UNAVAIL;
}
#ifdef BCM_TOMAHAWK3_SUPPORT
if (soc_feature(unit, soc_feature_th3_style_simple_mpls)) {
mem = MPLS_ENTRY_SINGLEm;
}
#endif
sal_memset(&ment, 0, sizeof(mpls_entry_entry_t));
mpls_tunnel_switch.port = port;
if (BCM_XGS3_L3_MPLS_LBL_VALID(label)) {
mpls_tunnel_switch.label = label;
} else {
return BCM_E_PARAM;
}
if ((object == bcmStatObjectIngMplsSwitchLabel) ||
(object == bcmStatObjectIngMplsSwitchSecondLabel)) {
if (!soc_feature(unit, soc_feature_th3_style_simple_mpls)) {
BCM_IF_ERROR_RETURN(td2_mpls_entry_set_key(unit,
&mpls_tunnel_switch,&ment));
}
#ifdef BCM_TOMAHAWK3_SUPPORT
else {
BCM_IF_ERROR_RETURN(th3_mpls_entry_set_key(unit,
&mpls_tunnel_switch,&ment));
}
#endif
if ((rv=soc_mem_search(unit, mem, MEM_BLOCK_ANY, &index,
&ment, &ment, 0)) == BCM_E_NONE) {
found = 1;
}
} else if ((object == bcmStatObjectIngMplsFrrLabel) &&
(soc_feature(unit, soc_feature_mpls_frr_lookup))){
mem = L3_TUNNELm;
rv = _bcm_tr3_mpls_tunnel_switch_frr_get(unit, &mpls_tunnel_switch, &index);
if (rv == BCM_E_NONE) {
found = 1;
}
} else if (object == bcmStatObjectMaxValue) {
if (!soc_feature(unit, soc_feature_th3_style_simple_mpls)) {
BCM_IF_ERROR_RETURN(td2_mpls_entry_set_key(unit,
&mpls_tunnel_switch,&ment));
}
#ifdef BCM_TOMAHAWK3_SUPPORT
else {
BCM_IF_ERROR_RETURN(th3_mpls_entry_set_key(unit,
&mpls_tunnel_switch,&ment));
}
#endif
if ((rv=soc_mem_search(unit, mem, MEM_BLOCK_ANY, &index,
&ment, &ment, 0)) == BCM_E_NONE) {
mem = MPLS_ENTRYm;
#ifdef BCM_TOMAHAWK3_SUPPORT
if (soc_feature(unit, soc_feature_th3_style_simple_mpls)) {
mem = MPLS_ENTRY_SINGLEm;
}
#endif
} else if (soc_feature(unit, soc_feature_mpls_frr_lookup)) {
if ((rv= _bcm_tr3_mpls_tunnel_switch_frr_get(unit,
&mpls_tunnel_switch, &index)) == BCM_E_NONE) {
mem = L3_TUNNELm;
} else {
return rv;
}
} else {
return rv;
}
found = 1;
}
if (found == 1) {
table_info[*num_of_tables].table= mem;
table_info[*num_of_tables].index=index;
table_info[*num_of_tables].direction=bcmStatFlexDirectionIngress;
(*num_of_tables)++;
}
return rv;
}
/*
* Function:
* td2_mpls_port_stat_attach
* Description:
* Attach counters entries to the given mpls gport and vpn
*
* Parameters:
* unit - (IN) unit number
* vpn - (IN) VPN Id
* port - (IN) MPLS GPORT ID
* stat_counter_id - (IN) Stat Counter ID.
*
* Return Value:
* BCM_E_XXX
* Notes:
*/
STATIC
bcm_error_t td2_mpls_port_stat_attach(
int unit,
bcm_vpn_t vpn,
bcm_gport_t port,
uint32 stat_counter_id)
{
soc_mem_t table=0;
bcm_stat_flex_direction_t direction=bcmStatFlexDirectionIngress;
uint32 pool_number=0;
uint32 base_index=0;
bcm_stat_flex_mode_t offset_mode=0;
bcm_stat_object_t object=bcmStatObjectIngPort;
bcm_stat_group_mode_t group_mode= bcmStatGroupModeSingle;
uint32 count=0;
uint32 actual_num_tables=0;
uint32 num_of_tables=0;
bcm_stat_flex_table_info_t table_info[BCM_STAT_FLEX_COUNTER_MAX_DIRECTION];
_bcm_esw_stat_get_counter_id_info(
unit, stat_counter_id,
&group_mode,&object,&offset_mode,&pool_number,&base_index);
BCM_IF_ERROR_RETURN(_bcm_esw_stat_validate_object(unit,object,&direction));
BCM_IF_ERROR_RETURN(_bcm_esw_stat_validate_group(unit,group_mode));
BCM_IF_ERROR_RETURN(_bcm_esw_stat_flex_get_table_info(
unit,object,1,&actual_num_tables,&table,&direction));
BCM_IF_ERROR_RETURN(td2_mpls_port_stat_get_table_info(
unit, vpn,port,&num_of_tables,&table_info[0]));
for (count=0; count < num_of_tables ; count++) {
if ((table_info[count].direction == direction) &&
(table_info[count].table == table) ) {
if (direction == bcmStatFlexDirectionIngress) {
return _bcm_esw_stat_flex_attach_ingress_table_counters(
unit,
table_info[count].table,
table_info[count].index,
offset_mode,
base_index,
pool_number);
} else {
return _bcm_esw_stat_flex_attach_egress_table_counters(
unit,
table_info[count].table,
table_info[count].index,
0,
offset_mode,
base_index,
pool_number);
}
}
}
return BCM_E_UNAVAIL;
}
/*
* Function:
* td2_mpls_port_stat_detach
* Description:
* Detach counters entries to the given mpls port and vpn
*
* Parameters:
* unit - (IN) unit number
* vpn - (IN) VPN Id
* port - (IN) MPLS GPORT ID
*
* Return Value:
* BCM_E_XXX
* Notes:
*/
STATIC
bcm_error_t td2_mpls_port_stat_detach(
int unit,
bcm_vpn_t vpn,
bcm_gport_t port)
{
uint32 count=0;
uint32 num_of_tables=0;
bcm_stat_flex_table_info_t table_info[BCM_STAT_FLEX_COUNTER_MAX_DIRECTION];
bcm_error_t rv = BCM_E_NONE;
bcm_error_t err_code[BCM_STAT_FLEX_COUNTER_MAX_DIRECTION] = {BCM_E_NONE};
BCM_IF_ERROR_RETURN(td2_mpls_port_stat_get_table_info(
unit, vpn,port,&num_of_tables,&table_info[0]));
for (count=0; count < num_of_tables ; count++) {
if (table_info[count].direction == bcmStatFlexDirectionIngress) {
rv = _bcm_esw_stat_flex_detach_ingress_table_counters(
unit, table_info[count].table, table_info[count].index);
if (BCM_E_NONE != rv &&
BCM_E_NONE == err_code[bcmStatFlexDirectionIngress]) {
err_code[bcmStatFlexDirectionIngress] = rv;
}
} else {
rv = _bcm_esw_stat_flex_detach_egress_table_counters(
unit, 0, table_info[count].table, table_info[count].index);
if (BCM_E_NONE != rv &&
BCM_E_NONE == err_code[bcmStatFlexDirectionEgress]) {
err_code[bcmStatFlexDirectionEgress] = rv;
}
}
}
BCM_STAT_FLEX_DETACH_RETURN(err_code)
}
/*
* Function:
* td2_mpls_port_stat_counter_get
* Description:
* Get counter statistic values for specific vpn and gport
* if sync_mode is set, sync the sw accumulated count
* with hw count value first, else return sw count.
*
* Parameters:
* unit - (IN) unit number
* sync_mode - (IN) hwcount is to be synced to sw count
* vpn - (IN) VPN Id
* port - (IN) MPLS GPORT ID
* stat - (IN) Type of the counter to retrieve
* I.e. ingress/egress byte/packet)
* num_entries - (IN) Number of counter Entries
* counter_indexes - (IN) Pointer to Counter indexes entries
* counter_values - (OUT) Pointer to counter values
*
* Return Value:
* BCM_E_XXX
* Notes:
*/
STATIC
bcm_error_t td2_mpls_port_stat_counter_get(
int unit,
int sync_mode,
bcm_vpn_t vpn,
bcm_gport_t port,
bcm_mpls_stat_t stat,
uint32 num_entries,
uint32 *counter_indexes,
bcm_stat_value_t *counter_values)
{
uint32 table_count=0;
uint32 index_count=0;
uint32 num_of_tables=0;
bcm_stat_flex_direction_t direction=bcmStatFlexDirectionIngress;
uint32 byte_flag=0;
bcm_stat_flex_table_info_t table_info[
BCM_STAT_FLEX_COUNTER_MAX_DIRECTION];
if ((stat == bcmMplsInBytes) ||
(stat == bcmMplsInPkts)) {
direction = bcmStatFlexDirectionIngress;
} else {
direction = bcmStatFlexDirectionEgress;
}
if ((stat == bcmMplsInPkts) ||
(stat == bcmMplsOutPkts)) {
byte_flag=0;
} else {
byte_flag=1;
}
BCM_IF_ERROR_RETURN(td2_mpls_port_stat_get_table_info(
unit, vpn,port,&num_of_tables,&table_info[0]));
for (table_count=0; table_count < num_of_tables ; table_count++) {
if (table_info[table_count].direction == direction) {
for (index_count=0; index_count < num_entries ; index_count++) {
BCM_IF_ERROR_RETURN(_bcm_esw_stat_counter_get(
unit, sync_mode,
table_info[table_count].index,
table_info[table_count].table,
0, byte_flag,
counter_indexes[index_count],
&counter_values[index_count]));
}
}
}
return BCM_E_NONE;
}
/*
* Function:
* td2_mpls_port_stat_counter_set
* Description:
* Set counter statistic values for specific vpn and gport
*
* Parameters:
* unit - (IN) unit number
* vpn - (IN) VPN Id
* port - (IN) MPLS GPORT ID
* stat - (IN) Type of the counter to retrieve
* I.e. ingress/egress byte/packet)
* num_entries - (IN) Number of counter Entries
* counter_indexes - (IN) Pointer to Counter indexes entries
* counter_values - (OUT) Pointer to counter values
*
* Return Value:
* BCM_E_XXX
* Notes:
*/
STATIC
bcm_error_t td2_mpls_port_stat_counter_set(
int unit,
bcm_vpn_t vpn,
bcm_gport_t port,
bcm_mpls_stat_t stat,
uint32 num_entries,
uint32 *counter_indexes,
bcm_stat_value_t *counter_values)
{
uint32 table_count=0;
uint32 index_count=0;
uint32 num_of_tables=0;
bcm_stat_flex_direction_t direction=bcmStatFlexDirectionIngress;
uint32 byte_flag=0;
bcm_stat_flex_table_info_t table_info[
BCM_STAT_FLEX_COUNTER_MAX_DIRECTION];
if ((stat == bcmMplsInBytes) ||
(stat == bcmMplsInPkts)) {
direction = bcmStatFlexDirectionIngress;
} else {
direction = bcmStatFlexDirectionEgress;
}
if ((stat == bcmMplsInPkts) ||
(stat == bcmMplsOutPkts)) {
byte_flag=0;
} else {
byte_flag=1;
}
BCM_IF_ERROR_RETURN(td2_mpls_port_stat_get_table_info(
unit, vpn,port,&num_of_tables,&table_info[0]));
for (table_count=0; table_count < num_of_tables ; table_count++) {
if (table_info[table_count].direction == direction) {
for (index_count=0; index_count < num_entries ; index_count++) {
BCM_IF_ERROR_RETURN(_bcm_esw_stat_counter_set(
unit,
table_info[table_count].index,
table_info[table_count].table,
0, byte_flag,
counter_indexes[index_count],
&counter_values[index_count]));
}
}
}
return BCM_E_NONE;
}
/*
* Function:
* td2_mpls_port_stat_id_get
* Description:
* Get stat counter id associated with specific vpn and gport
*
* Parameters:
* unit - (IN) unit number
* vpn - (IN) VPN Id
* port - (IN) MPLS GPORT ID
* stat - (IN) Type of the counter to retrieve
* I.e. ingress/egress byte/packet)
* Stat_counter_id - (OUT) Stat Counter ID
*
* Return Value:
* BCM_E_XXX
* Notes:
*/
STATIC
bcm_error_t td2_mpls_port_stat_id_get(
int unit,
bcm_vpn_t vpn,
bcm_gport_t port,
bcm_mpls_stat_t stat,
uint32 *stat_counter_id)
{
bcm_stat_flex_direction_t direction=bcmStatFlexDirectionIngress;
uint32 num_of_tables=0;
bcm_stat_flex_table_info_t table_info[BCM_STAT_FLEX_COUNTER_MAX_DIRECTION];
uint32 index=0;
uint32 num_stat_counter_ids=0;
if ((stat == bcmMplsInBytes) ||
(stat == bcmMplsInPkts)) {
direction = bcmStatFlexDirectionIngress;
} else {
direction = bcmStatFlexDirectionEgress;
}
BCM_IF_ERROR_RETURN(td2_mpls_port_stat_get_table_info(
unit,vpn,port,&num_of_tables,&table_info[0]));
for (index=0; index < num_of_tables ; index++) {
if (table_info[index].direction == direction)
return _bcm_esw_stat_flex_get_counter_id(
unit, 1, &table_info[index],
&num_stat_counter_ids,stat_counter_id);
}
return BCM_E_NOT_FOUND;
}
/*
* Function:
* td2_mpls_label_stat_attach
* Description:
* Attach counters entries to the given mpls label and gport
*
* Parameters:
* unit - (IN) unit number
* label - (IN) MPLS Label
* port - (IN) MPLS Gport
* stat_counter_id - (IN) Stat Counter ID.
*
* Return Value:
* BCM_E_XXX
* Notes:
*/
STATIC
bcm_error_t td2_mpls_label_stat_attach(
int unit,
bcm_mpls_label_t label,
bcm_gport_t port,
uint32 stat_counter_id)
{
soc_mem_t table=0;
bcm_stat_flex_direction_t direction=bcmStatFlexDirectionIngress;
uint32 pool_number=0;
uint32 base_index=0;
bcm_stat_flex_mode_t offset_mode=0;
bcm_stat_object_t object=bcmStatObjectIngPort;
bcm_stat_group_mode_t group_mode= bcmStatGroupModeSingle;
uint32 count=0;
uint32 actual_num_tables=0;
uint32 num_of_tables=0;
bcm_stat_flex_table_info_t table_info[BCM_STAT_FLEX_COUNTER_MAX_DIRECTION];
_bcm_esw_stat_get_counter_id_info(
unit, stat_counter_id,
&group_mode,&object,&offset_mode,&pool_number,&base_index);
BCM_IF_ERROR_RETURN(_bcm_esw_stat_validate_object(unit,object,&direction));
BCM_IF_ERROR_RETURN(_bcm_esw_stat_validate_group(unit,group_mode));
BCM_IF_ERROR_RETURN(_bcm_esw_stat_flex_get_table_info(
unit,object,1,&actual_num_tables,&table,&direction));
if (!BCM_XGS3_L3_MPLS_LBL_VALID(label)) {
return BCM_E_PARAM;
}
BCM_IF_ERROR_RETURN(td2_mpls_label_stat_get_table_info(
unit, label,port, object, &num_of_tables,&table_info[0]));
for (count=0; count < num_of_tables ; count++) {
if ((table_info[count].direction == direction) &&
(table_info[count].table == table) ) {
if (direction == bcmStatFlexDirectionIngress) {
return _bcm_esw_stat_flex_attach_ingress_table_counters(
unit,
table_info[count].table,
table_info[count].index,
offset_mode,
base_index,
pool_number);
} else {
return _bcm_esw_stat_flex_attach_egress_table_counters(
unit,
table_info[count].table,
table_info[count].index,
0,
offset_mode,
base_index,
pool_number);
}
}
}
return BCM_E_NOT_FOUND;
}
/*
* Function:
* td2_mpls_label_stat_detach
* Description:
* Detach counters entries to the given mpls label and gport
*
* Parameters:
* unit - (IN) unit number
* label - (IN) MPLS Label
* port - (IN) MPLS Gport
*
* Return Value:
* BCM_E_XXX
* Notes:
*/
STATIC
bcm_error_t td2_mpls_label_stat_detach(
int unit,
bcm_mpls_label_t label,
bcm_gport_t port)
{
uint32 count=0;
uint32 num_of_tables=0;
bcm_stat_flex_table_info_t table_info[BCM_STAT_FLEX_COUNTER_MAX_DIRECTION];
bcm_error_t rv = BCM_E_NONE;
bcm_error_t err_code[BCM_STAT_FLEX_COUNTER_MAX_DIRECTION] = {BCM_E_NONE};
if (!BCM_XGS3_L3_MPLS_LBL_VALID(label)) {
return BCM_E_PARAM;
}
BCM_IF_ERROR_RETURN(td2_mpls_label_stat_get_table_info(
unit, label,port, bcmStatObjectMaxValue, &num_of_tables,&table_info[0]));
for (count=0; count < num_of_tables ; count++) {
if (table_info[count].direction == bcmStatFlexDirectionIngress) {
rv = _bcm_esw_stat_flex_detach_ingress_table_counters(
unit, table_info[count].table, table_info[count].index);
if (BCM_E_NONE != rv &&
BCM_E_NONE == err_code[bcmStatFlexDirectionIngress]) {
err_code[bcmStatFlexDirectionIngress] = rv;
}
} else {
rv = _bcm_esw_stat_flex_detach_egress_table_counters(
unit, 0, table_info[count].table, table_info[count].index);
if (BCM_E_NONE != rv &&
BCM_E_NONE == err_code[bcmStatFlexDirectionEgress]) {
err_code[bcmStatFlexDirectionEgress] = rv;
}
}
}
BCM_STAT_FLEX_DETACH_RETURN(err_code)
}
/*
* Function:
* td2_mpls_label_stat_counter_get
* Description:
* Get counter statistic values for specific MPLS label and gport
* Get counter statistic values for specific vpn and gport
* if sync_mode is set, sync the sw accumulated count
*
* Parameters:
* unit - (IN) unit number
* sync_mode - (IN) hwcount is to be synced to sw count
* label - (IN) MPLS Label
* port - (IN) MPLS Gport
* stat - (IN) Type of the counter to retrieve
* I.e. ingress/egress byte/packet)
* num_entries - (IN) Number of counter Entries
* counter_indexes - (IN) Pointer to Counter indexes entries
* counter_values - (OUT) Pointer to counter values
*
* Return Value:
* BCM_E_XXX
* Notes:
*/
STATIC
bcm_error_t td2_mpls_label_stat_counter_get(
int unit,
int sync_mode,
bcm_mpls_label_t label,
bcm_gport_t port,
bcm_mpls_stat_t stat,
uint32 num_entries,
uint32 *counter_indexes,
bcm_stat_value_t *counter_values)
{
uint32 table_count=0;
uint32 index_count=0;
uint32 num_of_tables=0;
bcm_stat_flex_direction_t direction=bcmStatFlexDirectionIngress;
uint32 byte_flag=0;
bcm_stat_flex_table_info_t table_info[
BCM_STAT_FLEX_COUNTER_MAX_DIRECTION];
if ((stat == bcmMplsInBytes) ||
(stat == bcmMplsInPkts)) {
direction = bcmStatFlexDirectionIngress;
} else {
direction = bcmStatFlexDirectionEgress;
}
if ((stat == bcmMplsInPkts) ||
(stat == bcmMplsOutPkts)) {
byte_flag=0;
} else {
byte_flag=1;
}
if (!BCM_XGS3_L3_MPLS_LBL_VALID(label)) {
return BCM_E_PARAM;
}
BCM_IF_ERROR_RETURN(td2_mpls_label_stat_get_table_info(
unit, label,port,bcmStatObjectMaxValue,&num_of_tables,&table_info[0]));
for (table_count=0; table_count < num_of_tables ; table_count++) {
if (table_info[table_count].direction == direction) {
for (index_count=0; index_count < num_entries ; index_count++) {
BCM_IF_ERROR_RETURN(_bcm_esw_stat_counter_get(
unit, sync_mode,
table_info[table_count].index,
table_info[table_count].table,
0, byte_flag,
counter_indexes[index_count],
&counter_values[index_count]));
}
}
}
return BCM_E_NONE;
}
/*
* Function:
* td2_mpls_label_stat_counter_set
* Description:
* Set counter statistic values for specific MPLS label and gport
*
* Parameters:
* unit - (IN) unit number
* label - (IN) MPLS Label
* port - (IN) MPLS Gport
* stat - (IN) Type of the counter to retrieve
* I.e. ingress/egress byte/packet)
* num_entries - (IN) Number of counter Entries
* counter_indexes - (IN) Pointer to Counter indexes entries
* counter_values - (IN) Pointer to counter values
*
* Return Value:
* BCM_E_XXX
* Notes:
*/
STATIC
bcm_error_t td2_mpls_label_stat_counter_set(
int unit,
bcm_mpls_label_t label,
bcm_gport_t port,
bcm_mpls_stat_t stat,
uint32 num_entries,
uint32 *counter_indexes,
bcm_stat_value_t *counter_values)
{
uint32 table_count=0;
uint32 index_count=0;
uint32 num_of_tables=0;
bcm_stat_flex_direction_t direction=bcmStatFlexDirectionIngress;
uint32 byte_flag=0;
bcm_stat_flex_table_info_t table_info[
BCM_STAT_FLEX_COUNTER_MAX_DIRECTION];
bcm_vpn_t vpn = 0;
if ((stat == bcmMplsInBytes) ||
(stat == bcmMplsInPkts)) {
direction = bcmStatFlexDirectionIngress;
} else {
direction = bcmStatFlexDirectionEgress;
}
if ((stat == bcmMplsInPkts) ||
(stat == bcmMplsOutPkts)) {
byte_flag=0;
} else {
byte_flag=1;
}
if (BCM_GPORT_IS_MPLS_PORT(port)) {
/* Just create a valid vpn id to pass the check */
_BCM_MPLS_VPN_SET(vpn, _BCM_MPLS_VPN_TYPE_VPWS, 1);
BCM_IF_ERROR_RETURN(td2_mpls_port_stat_get_table_info(
unit, vpn, port, &num_of_tables, &table_info[0]));
} else {
if (!BCM_XGS3_L3_MPLS_LBL_VALID(label)) {
return BCM_E_PARAM;
}
BCM_IF_ERROR_RETURN(td2_mpls_label_stat_get_table_info(
unit, label, port, bcmStatObjectMaxValue, &num_of_tables, &table_info[0]));
}
for (table_count=0; table_count < num_of_tables ; table_count++) {
if (table_info[table_count].direction == direction) {
for (index_count=0; index_count < num_entries ; index_count++) {
BCM_IF_ERROR_RETURN(_bcm_esw_stat_counter_set(
unit,
table_info[table_count].index,
table_info[table_count].table,
0, byte_flag,
counter_indexes[index_count],
&counter_values[index_count]));
}
}
}
return BCM_E_NONE;
}
/*
* Function:
* td2_mpls_label_stat_id_get
* Description:
* Get stat counter id associated with given vlan
*
* Parameters:
* unit - (IN) unit number
* label - (IN) MPLS Label
* port - (IN) MPLS Gport
* stat - (IN) Type of the counter to retrieve
* I.e. ingress/egress byte/packet)
* Stat_counter_id - (OUT) Stat Counter ID
*
* Return Value:
* BCM_E_XXX
* Notes:
*/
STATIC
bcm_error_t td2_mpls_label_stat_id_get(
int unit,
bcm_mpls_label_t label,
bcm_gport_t port,
bcm_mpls_stat_t stat,
uint32 *stat_counter_id)
{
bcm_stat_flex_direction_t direction=bcmStatFlexDirectionIngress;
uint32 num_of_tables=0;
bcm_stat_flex_table_info_t table_info[BCM_STAT_FLEX_COUNTER_MAX_DIRECTION];
uint32 index=0;
uint32 num_stat_counter_ids=0;
if (!BCM_XGS3_L3_MPLS_LBL_VALID(label)) {
return BCM_E_PARAM;
}
if ((stat == bcmMplsInBytes) ||
(stat == bcmMplsInPkts)) {
direction = bcmStatFlexDirectionIngress;
} else {
direction = bcmStatFlexDirectionEgress;
}
BCM_IF_ERROR_RETURN(td2_mpls_label_stat_get_table_info(
unit,label,port,bcmStatObjectMaxValue,&num_of_tables,&table_info[0]));
for (index=0; index < num_of_tables ; index++) {
if (table_info[index].direction == direction)
return _bcm_esw_stat_flex_get_counter_id(
unit, 1, &table_info[index],
&num_stat_counter_ids,stat_counter_id);
}
return BCM_E_NOT_FOUND;
}
/*
* Function:
* td2_mpls_label_stat_enable_set
* Purpose:
* Enable statistics collection for MPLS label or MPLS gport
* Parameters:
* unit - (IN) Unit number.
* label - (IN) MPLS label
* port - (IN) MPLS gport
* enable - (IN) Non-zero to enable counter collection, zero to disable.
* Returns:
* BCM_E_xxx
* Notes:
*/
STATIC
int td2_mpls_label_stat_enable_set(
int unit,
bcm_mpls_label_t label,
bcm_gport_t port,
int enable)
{
uint32 num_of_tables=0;
uint32 num_stat_counter_ids=0;
bcm_stat_flex_table_info_t table_info[BCM_STAT_FLEX_COUNTER_MAX_DIRECTION];
bcm_stat_object_t object=bcmStatObjectIngPort;
uint32 stat_counter_id[
BCM_STAT_FLEX_COUNTER_MAX_DIRECTION]={0};
uint32 num_entries=0;
int index=0;
if (BCM_GPORT_IS_MPLS_PORT(port)) {
/* When the gport is an MPLS port, we'll turn on the
* port-based tracking to comply with API definition.
*/
int vpn;
/* just create a valid vpn id to pass the check */
_BCM_MPLS_VPN_SET(vpn, _BCM_MPLS_VPN_TYPE_VPWS, 1);
BCM_IF_ERROR_RETURN(td2_mpls_port_stat_get_table_info(
unit,vpn,port,&num_of_tables,&table_info[0]));
if (enable ) {
for(index=0;index < num_of_tables ;index++) {
if (table_info[index].direction == bcmStatFlexDirectionIngress) {
BCM_IF_ERROR_RETURN(_bcm_esw_stat_flex_get_ingress_object(
unit,table_info[index].table,
table_info[index].index,NULL,&object));
} else {
BCM_IF_ERROR_RETURN(_bcm_esw_stat_flex_get_egress_object(
unit,table_info[index].table,
table_info[index].table,NULL,&object));
}
BCM_IF_ERROR_RETURN(bcm_esw_stat_group_create(
unit,object,bcmStatGroupModeSingle,
&stat_counter_id[table_info[index].direction],
&num_entries));
BCM_IF_ERROR_RETURN(td2_mpls_port_stat_attach(
unit,vpn,port,
stat_counter_id[table_info[index].direction]));
}
return BCM_E_NONE;
} else {
BCM_IF_ERROR_RETURN(_bcm_esw_stat_flex_get_counter_id(
unit, num_of_tables,&table_info[0],
&num_stat_counter_ids,&stat_counter_id[0]));
if ((stat_counter_id[bcmStatFlexDirectionIngress] == 0) &&
(stat_counter_id[bcmStatFlexDirectionEgress] == 0)) {
return BCM_E_PARAM;
}
BCM_IF_ERROR_RETURN(td2_mpls_port_stat_detach(unit,vpn,port));
if (stat_counter_id[bcmStatFlexDirectionIngress] != 0) {
BCM_IF_ERROR_RETURN(bcm_esw_stat_group_destroy(
unit,
stat_counter_id[bcmStatFlexDirectionIngress]));
}
if (stat_counter_id[bcmStatFlexDirectionEgress] != 0) {
BCM_IF_ERROR_RETURN(bcm_esw_stat_group_destroy(
unit,
stat_counter_id[bcmStatFlexDirectionEgress]));
}
return BCM_E_NONE;
}
}
if (!BCM_XGS3_L3_MPLS_LBL_VALID(label)) {
return BCM_E_PARAM;
}
BCM_IF_ERROR_RETURN(td2_mpls_label_stat_get_table_info(
unit,label,port,bcmStatObjectMaxValue,&num_of_tables,&table_info[0]));
if (enable ) {
for(index=0;index < num_of_tables ;index++) {
if (table_info[index].direction == bcmStatFlexDirectionIngress) {
BCM_IF_ERROR_RETURN(_bcm_esw_stat_flex_get_ingress_object(
unit,table_info[index].table,
table_info[index].index,NULL,&object));
} else {
BCM_IF_ERROR_RETURN(_bcm_esw_stat_flex_get_egress_object(
unit,table_info[index].table,
table_info[index].table,NULL,&object));
}
BCM_IF_ERROR_RETURN(bcm_esw_stat_group_create(
unit,object,bcmStatGroupModeSingle,
&stat_counter_id[table_info[index].direction],
&num_entries));
BCM_IF_ERROR_RETURN(bcm_esw_mpls_label_stat_attach(
unit,label,port,
stat_counter_id[table_info[index].direction]));
}
return BCM_E_NONE;
} else {
BCM_IF_ERROR_RETURN(_bcm_esw_stat_flex_get_counter_id(
unit, num_of_tables,&table_info[0],
&num_stat_counter_ids,&stat_counter_id[0]));
if ((stat_counter_id[bcmStatFlexDirectionIngress] == 0) &&
(stat_counter_id[bcmStatFlexDirectionEgress] == 0)) {
return BCM_E_PARAM;
}
BCM_IF_ERROR_RETURN(bcm_esw_mpls_label_stat_detach(unit,label,port));
if (stat_counter_id[bcmStatFlexDirectionIngress] != 0) {
BCM_IF_ERROR_RETURN(bcm_esw_stat_group_destroy(
unit,
stat_counter_id[bcmStatFlexDirectionIngress]));
}
if (stat_counter_id[bcmStatFlexDirectionEgress] != 0) {
BCM_IF_ERROR_RETURN(bcm_esw_stat_group_destroy(
unit,
stat_counter_id[bcmStatFlexDirectionEgress]));
}
return BCM_E_NONE;
}
}
/*
* Function:
* td2_mpls_label_stat_get
* Purpose:
* Get L2 MPLS PW Stats
* Parameters:
* unit - (IN) SOC unit #
* label - (IN) MPLS label
* port - (IN) MPLS gport
* stat - (IN) specify the Stat type
* val - (OUT) 64-bit Stats value
* Returns:
* BCM_E_XXX
*/
STATIC
int td2_mpls_label_stat_get(
int unit,
int sync_mode,
bcm_mpls_label_t label,
bcm_gport_t port,
bcm_mpls_stat_t stat,
uint64 *val)
{
uint32 counter_indexes=0 ;
bcm_stat_value_t counter_values={0};
if (BCM_GPORT_IS_MPLS_PORT(port)) {
int vpn;
/* just create a valid vpn id to pass the check */
_BCM_MPLS_VPN_SET(vpn, _BCM_MPLS_VPN_TYPE_VPWS, 1);
BCM_IF_ERROR_RETURN(td2_mpls_port_stat_counter_get(unit, sync_mode,
vpn, port, stat,
1, &counter_indexes,
&counter_values));
} else {
if (!BCM_XGS3_L3_MPLS_LBL_VALID(label)) {
return BCM_E_PARAM;
}
BCM_IF_ERROR_RETURN(td2_mpls_label_stat_counter_get(
unit, sync_mode, label, port, stat, 1,
&counter_indexes, &counter_values));
}
if ((stat == bcmMplsInPkts) ||
(stat == bcmMplsOutPkts)) {
COMPILER_64_SET(*val,
COMPILER_64_HI(counter_values.packets64),
COMPILER_64_LO(counter_values.packets64));
} else {
COMPILER_64_SET(*val,
COMPILER_64_HI(counter_values.bytes),
COMPILER_64_LO(counter_values.bytes));
}
return BCM_E_NONE;
}
/*
* Function:
* td2_mpls_label_stat_get32
* Purpose:
* Get L2 MPLS PW Stats
* if sync_mode is set, sync the sw accumulated count
* with hw count value first, else return sw count.
* Parameters:
* unit - (IN) SOC unit #
* sync_mode - (IN) hwcount is to be synced to sw count
* label - (IN) MPLS label
* port - (IN) MPLS gport
* stat - (IN) specify the Stat type
* val - (OUT) 32-bit Stats value
* Returns:
* BCM_E_XXX
*/
STATIC
int td2_mpls_label_stat_get32(
int unit,
int sync_mode,
bcm_mpls_label_t label,
bcm_gport_t port,
bcm_mpls_stat_t stat,
uint32 *val)
{
uint32 counter_indexes=0;
bcm_stat_value_t counter_values={0};
if (BCM_GPORT_IS_MPLS_PORT(port)) {
int vpn;
/* just create a valid vpn id to pass the check */
_BCM_MPLS_VPN_SET(vpn, _BCM_MPLS_VPN_TYPE_VPWS, 1);
BCM_IF_ERROR_RETURN(td2_mpls_port_stat_counter_get(
unit, sync_mode, vpn, port, stat, 1,
&counter_indexes, &counter_values));
} else {
if (!BCM_XGS3_L3_MPLS_LBL_VALID(label)) {
return BCM_E_PARAM;
}
BCM_IF_ERROR_RETURN(td2_mpls_label_stat_counter_get(
unit, sync_mode, label, port, stat, 1,
&counter_indexes, &counter_values));
}
if ((stat == bcmMplsInPkts) ||
(stat == bcmMplsOutPkts)) {
*val = counter_values.packets;
} else {
/* Ignoring Hi bytes value */
*val = COMPILER_64_LO(counter_values.bytes);
}
return BCM_E_NONE;
}
/*
* Function:
* td2_mpls_label_stat_clear
* Purpose:
* Clear L2 MPLS PW Stats
* Parameters:
* unit - (IN) SOC unit #
* label - (IN) MPLS label
* port - (IN) MPLS gport
* stat - (IN) specify the Stat type
* Returns:
* BCM_E_XXX
*/
STATIC
int td2_mpls_label_stat_clear(
int unit,
bcm_mpls_label_t label,
bcm_gport_t port,
bcm_mpls_stat_t stat)
{
uint32 counter_indexes=0 ;
bcm_stat_value_t counter_values={0};
if (!BCM_XGS3_L3_MPLS_LBL_VALID(label)) {
return BCM_E_PARAM;
}
BCM_IF_ERROR_RETURN(bcm_esw_mpls_label_stat_counter_set(
unit,label,port,stat,1,
&counter_indexes,&counter_values));
return BCM_E_NONE;
}
#endif /* BCM_TRIDENT2_SUPPORT */
/*
* Function:
* bcm_esw_mpls_label_stat_enable_set
* Purpose:
* Enable statistics collection for MPLS label or MPLS gport
* Parameters:
* unit - (IN) Unit number.
* label - (IN) MPLS label
* port - (IN) MPLS gport
* enable - (IN) Non-zero to enable counter collection, zero to disable.
* Returns:
* BCM_E_xxx
* Notes:
*/
int
bcm_esw_mpls_label_stat_enable_set(int unit, bcm_mpls_label_t label,
bcm_gport_t port, int enable)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH2_SUPPORT
if (soc_feature(unit, soc_feature_gport_service_counters) &&
soc_feature(unit, soc_feature_mpls)) {
rv = bcm_tr_mpls_lock(unit);
if (BCM_E_NONE == rv) {
rv = bcm_tr2_mpls_label_stat_enable_set(unit, label,
port, enable,0);
bcm_tr_mpls_unlock(unit);
}
}
#if defined(BCM_KATANA_SUPPORT) || defined(BCM_TRIUMPH3_SUPPORT) || \
defined(BCM_TRIDENT2_SUPPORT)
else if (soc_feature(unit,soc_feature_advanced_flex_counter) &&
soc_feature(unit, soc_feature_mpls)) {
BCM_IF_ERROR_RETURN(bcm_tr_mpls_lock(unit));
#if defined(BCM_KATANA_SUPPORT)
if (SOC_IS_KATANAX(unit)) {
rv = bcm_kt_mpls_label_stat_enable_set(unit, label,
port, enable);
} else
#endif
#if defined(BCM_TRIUMPH3_SUPPORT)
if (SOC_IS_TRIUMPH3(unit)) {
rv = bcm_tr3_mpls_label_stat_enable_set(unit, label,
port, enable);
} else
#endif
{
#if defined(BCM_TRIDENT2_SUPPORT)
rv = td2_mpls_label_stat_enable_set(unit, label,
port, enable);
#endif
}
bcm_tr_mpls_unlock(unit);
}
#endif
#if defined(BCM_MONTEREY_SUPPORT)
else if(SOC_IS_MONTEREY(unit)) {
/* Flex counters not supported in Monterey */
return rv;
}
#endif
#endif
#endif
return rv;
}
/*
* Function:
* _bcm_esw_mpls_label_stat_get
* Purpose:
* Get L2 MPLS PW Stats
* if sync_mode is set, sync the sw accumulated count
* with hw count value first, else return sw count.
* Parameters:
* unit - (IN) SOC unit #
* sync_mode - (IN) hwcount is to be synced to sw count
* label - (IN) MPLS label
* port - (IN) MPLS gport
* stat - (IN) specify the Stat type
* val - (OUT) 64-bit Stats value
* Returns:
* BCM_E_XXX
*/
int
_bcm_esw_mpls_label_stat_get(int unit, int sync_mode,
bcm_mpls_label_t label,
bcm_gport_t port,
bcm_mpls_stat_t stat,
uint64 *val)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH_SUPPORT
#if defined(BCM_KATANA_SUPPORT) || defined(BCM_TRIUMPH3_SUPPORT) || \
defined(BCM_TRIDENT2_SUPPORT)
if (soc_feature(unit,soc_feature_advanced_flex_counter) &&
soc_feature(unit, soc_feature_mpls)) {
BCM_IF_ERROR_RETURN(bcm_tr_mpls_lock(unit));
#if defined(BCM_KATANA_SUPPORT)
if (SOC_IS_KATANAX(unit)) {
rv = bcm_kt_mpls_label_stat_get(unit, sync_mode,
label, port,
stat, val);
} else
#endif
#if defined(BCM_TRIUMPH3_SUPPORT)
if (SOC_IS_TRIUMPH3(unit)) {
rv = bcm_tr3_mpls_label_stat_get(unit, sync_mode,
label, port,
stat, val);
} else
#endif
{
#if defined(BCM_TRIDENT2_SUPPORT)
rv = td2_mpls_label_stat_get(unit, sync_mode,
label, port,
stat, val);
#endif
}
bcm_tr_mpls_unlock(unit);
} else
#endif
#if defined(BCM_MONTEREY_SUPPORT)
if(SOC_IS_MONTEREY(unit)) {
/* Flex counters not supported in Monterey */
return rv;
} else
#endif
if ((SOC_IS_TR_VL(unit) && soc_feature(unit, soc_feature_mpls)) ||
(soc_feature(unit, soc_feature_mpls) &&
soc_feature(unit, soc_feature_gport_service_counters))) {
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
rv = bcm_tr_mpls_label_stat_get(unit, sync_mode,
label, port,
stat, val);
bcm_tr_mpls_unlock (unit);
}
return rv;
}
#endif
#endif
return rv;
}
/*
* Function:
* bcm_esw_mpls_label_stat_get
* Purpose:
* Get L2 MPLS PW Stats
* Parameters:
* unit - (IN) SOC unit #
* label - (IN) MPLS label
* port - (IN) MPLS gport
* stat - (IN) specify the Stat type
* val - (OUT) 64-bit Stats value
* Returns:
* BCM_E_XXX
*/
int
bcm_esw_mpls_label_stat_get(int unit, bcm_mpls_label_t label,
bcm_gport_t port, bcm_mpls_stat_t stat,
uint64 *val)
{
int rv = BCM_E_UNAVAIL;
rv = _bcm_esw_mpls_label_stat_get(unit, 0, label, port, stat, val);
return rv;
}
/*
* Function:
* bcm_esw_mpls_label_stat_sync_get
* Purpose:
* Get L2 MPLS PW Stats
* sw accumulated counters synced with hw count.
* Parameters:
* unit - (IN) SOC unit #
* label - (IN) MPLS label
* port - (IN) MPLS gport
* stat - (IN) specify the Stat type
* val - (OUT) 64-bit Stats value
* Returns:
* BCM_E_XXX
*/
int
bcm_esw_mpls_label_stat_sync_get(int unit, bcm_mpls_label_t label,
bcm_gport_t port, bcm_mpls_stat_t stat,
uint64 *val)
{
int rv = BCM_E_UNAVAIL;
rv = _bcm_esw_mpls_label_stat_get(unit, 1, label, port, stat, val);
return rv;
}
/*
* Function:
* bcm_esw_mpls_label_stat_get32
* Purpose:
* Get L2 MPLS PW Stats
* Parameters:
* unit - (IN) SOC unit #
* sync_mode - (IN) hwcount is to be synced to sw count
* label - (IN) MPLS label
* port - (IN) MPLS gport
* stat - (IN) specify the Stat type
* val - (OUT) 64-bit Stats value
* Returns:
* BCM_E_XXX
*/
int
_bcm_esw_mpls_label_stat_get32(int unit, int sync_mode,
bcm_mpls_label_t label,
bcm_gport_t port,
bcm_mpls_stat_t stat,
uint32 *val)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH_SUPPORT
#if defined(BCM_KATANA_SUPPORT) || defined(BCM_TRIUMPH3_SUPPORT) || \
defined(BCM_TRIDENT2_SUPPORT)
if (soc_feature(unit,soc_feature_advanced_flex_counter) &&
soc_feature(unit, soc_feature_mpls)) {
BCM_IF_ERROR_RETURN(bcm_tr_mpls_lock(unit));
#if defined(BCM_KATANA_SUPPORT)
if (SOC_IS_KATANAX(unit)) {
rv = bcm_kt_mpls_label_stat_get32(unit, sync_mode,
label, port,
stat, val);
} else
#endif
#if defined(BCM_TRIUMPH3_SUPPORT)
if (SOC_IS_TRIUMPH3(unit)) {
rv = bcm_tr3_mpls_label_stat_get32(unit, sync_mode,
label, port,
stat, val);
} else
#endif
{
#if defined(BCM_TRIDENT2_SUPPORT)
rv = td2_mpls_label_stat_get32(unit, sync_mode,
label, port,
stat, val);
#endif
}
bcm_tr_mpls_unlock(unit);
} else
#endif
#if defined(BCM_MONTEREY_SUPPORT)
if(SOC_IS_MONTEREY(unit)) {
/* Flex counters not supported in Monterey */
return rv;
} else
#endif
if ((SOC_IS_TR_VL(unit) && soc_feature(unit, soc_feature_mpls)) ||
(soc_feature(unit, soc_feature_mpls) &&
soc_feature(unit, soc_feature_gport_service_counters))) {
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
rv = bcm_tr_mpls_label_stat_get32(unit, sync_mode,
label, port,
stat, val);
bcm_tr_mpls_unlock (unit);
}
return rv;
}
#endif
#endif
return rv;
}
int
bcm_esw_mpls_label_stat_get32(int unit, bcm_mpls_label_t label,
bcm_gport_t port,
bcm_mpls_stat_t stat,
uint32 *val)
{
int rv = BCM_E_UNAVAIL;
rv = _bcm_esw_mpls_label_stat_get32(unit, 0, label, port, stat, val);
return rv;
}
int
bcm_esw_mpls_label_stat_sync_get32(int unit, bcm_mpls_label_t label,
bcm_gport_t port,
bcm_mpls_stat_t stat,
uint32 *val)
{
int rv = BCM_E_UNAVAIL;
rv = _bcm_esw_mpls_label_stat_get32(unit, 1, label, port, stat, val);
return rv;
}
/*
* Function:
* bcm_esw_mpls_label_stat_clear
* Purpose:
* Clear L2 MPLS PW Stats
* Parameters:
* unit - (IN) SOC unit #
* label - (IN) MPLS label
* port - (IN) MPLS gport
* stat - (IN) specify the Stat type
* Returns:
* BCM_E_XXX
*/
int
bcm_esw_mpls_label_stat_clear(int unit, bcm_mpls_label_t label, bcm_gport_t port,
bcm_mpls_stat_t stat)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH_SUPPORT
#if defined(BCM_KATANA_SUPPORT) || defined(BCM_TRIUMPH3_SUPPORT) || \
defined(BCM_TRIDENT2_SUPPORT)
if (soc_feature(unit,soc_feature_advanced_flex_counter) &&
soc_feature(unit, soc_feature_mpls)) {
BCM_IF_ERROR_RETURN(bcm_tr_mpls_lock(unit));
#if defined(BCM_KATANA_SUPPORT)
if (SOC_IS_KATANAX(unit)) {
rv = bcm_kt_mpls_label_stat_clear(unit,label,port, stat);
} else
#endif
#if defined(BCM_TRIUMPH3_SUPPORT)
if (SOC_IS_TRIUMPH3(unit)) {
rv = bcm_tr3_mpls_label_stat_clear(unit,label,port,stat);
} else
#endif
{
#if defined(BCM_TRIDENT2_SUPPORT)
rv = td2_mpls_label_stat_clear(unit,label,port,stat);
#endif
}
bcm_tr_mpls_unlock(unit);
} else
#endif
#if defined(BCM_MONTEREY_SUPPORT)
if(SOC_IS_MONTEREY(unit)) {
/* Flex counters not supported in Monterey */
return rv;
} else
#endif
if ((SOC_IS_TR_VL(unit) && soc_feature(unit, soc_feature_mpls)) ||
(soc_feature(unit, soc_feature_mpls) &&
soc_feature(unit, soc_feature_gport_service_counters))) {
rv = bcm_tr_mpls_lock(unit);
if ( rv == BCM_E_NONE ) {
rv = bcm_tr_mpls_label_stat_clear(unit, label, port, stat);
bcm_tr_mpls_unlock (unit);
}
return rv;
}
#endif
#endif
return rv;
}
/*
* Function:
* _bcm_esw_mpls_trunk_member_add
* Purpose:
* Set Mpls state for trunk members joining a trunk group.
* Parameters:
* unit - (IN) Device Number
* trunk_id - (IN) Trunk Group ID
* trunk_member_count - (IN) Count of Trunk members to be added
* trunk_member_array - (IN) Trunk member ports to be added
* Returns:
* BCM_E_XXX
*/
int
_bcm_esw_mpls_trunk_member_add(int unit, bcm_trunk_t trunk_id,
int trunk_member_count, bcm_port_t *trunk_member_array)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH_SUPPORT
if (soc_feature(unit, soc_feature_mpls)) {
rv = bcm_tr_mpls_trunk_member_add(unit, trunk_id,
trunk_member_count, trunk_member_array);
}
#endif
#endif
return rv;
}
/*
* Function:
* _bcm_esw_mpls_trunk_member_delete
* Purpose:
* Clear Mpls state for trunk members leaving a trunk group.
* Parameters:
* unit - (IN) Device Number
* trunk_id - (IN) Trunk Group ID
* trunk_member_count - (IN) Count of Trunk members to be deleted
* trunk_member_array - (IN) Trunk member ports to be deleted
* Returns:
* BCM_E_XXX
*/
int
_bcm_esw_mpls_trunk_member_delete(int unit, bcm_trunk_t trunk_id,
int trunk_member_count, bcm_port_t *trunk_member_array)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH_SUPPORT
if (soc_feature(unit, soc_feature_mpls)) {
rv = bcm_tr_mpls_trunk_member_delete(unit, trunk_id,
trunk_member_count, trunk_member_array);
}
#endif
#endif
return rv;
}
/*
* Function:
* _bcm_esw_mpls_match_add
* Purpose:
* Assign match criteria of an MPLS port
* Parameters:
* unit - (IN) Device Number
* mpls_port - (IN) mpls port information
* vp - (IN) Source Virtual Port
* vpn - (IN) VPN
* Returns:
* BCM_E_XXX
*/
int
_bcm_esw_mpls_match_add(int unit, bcm_mpls_port_t *mpls_port, int vp, int vpn,
int hw_update)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH3_SUPPORT
if (SOC_IS_TRIUMPH3(unit)) {
rv = _bcm_tr3_mpls_match_add(unit, mpls_port, vp, hw_update);
return rv;
}
#endif
#ifdef BCM_TRIUMPH_SUPPORT
if (SOC_IS_TR_VL(unit)) {
rv = _bcm_tr_mpls_match_add(unit, mpls_port, vp, vpn, hw_update);
return rv;
}
#endif
#endif
return rv;
}
/*
* Function:
* _bcm_esw_mpls_match_delete
* Purpose:
* Delete match criteria of an MPLS port
* Parameters:
* unit - (IN) Device Number
* vp - (IN) Source Virtual Port
* Returns:
* BCM_E_XXX
*/
int
_bcm_esw_mpls_match_delete(int unit, int vp, int sw_clear)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH3_SUPPORT
if (SOC_IS_TRIUMPH3(unit)) {
rv = _bcm_tr3_mpls_match_delete(unit, vp, sw_clear);
return rv;
}
#endif
#ifdef BCM_TRIUMPH_SUPPORT
if (SOC_IS_TR_VL(unit)) {
rv = _bcm_tr_mpls_match_delete(unit, vp, NULL, sw_clear);
return rv;
}
#endif
#endif
return rv;
}
/*
* Function:
* _bcm_esw_mpls_match_failover_update
* Purpose:
* Search mpls entry with provided source vp
* and replace with failover vp
* Parameters:
* unit - (IN) Device Number
* vp - (IN) Source Virtual Port
* fo_vp - (IN) Failover Virtual Port
* Returns:
* BCM_E_XXX
*/
int
_bcm_esw_mpls_match_failover_update(int unit, int vp, int fo_vp)
{
int rv = BCM_E_NONE;
#ifdef BCM_MPLS_SUPPORT
#if defined(BCM_TRIUMPH3_SUPPORT)
if (SOC_IS_TRIUMPH3(unit) || SOC_IS_METROLITE(unit)) {
rv = _bcm_tr3_mpls_match_failover_update(unit, vp, fo_vp);
return rv;
}
#endif
#endif
return rv;
}
/*
* Function:
* _bcm_esw_mpls_failover_nw_port_match_get
* Purpose:
* Get match criteria of an MPLS port
* Parameters:
* unit - (IN) Device Number
* mpls_port - (IN) mpls port
* vp - (IN) Source Virtual Port
* return_ment - (OUT) matched mpls entry.
* Returns:
* BCM_E_XXX
*/
int
_bcm_esw_mpls_failover_nw_port_match_get(int unit, bcm_mpls_port_t *mpls_port,
int vp, mpls_entry_entry_t *return_ment)
{
int rv = BCM_E_NOT_FOUND;
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH3_SUPPORT
if (SOC_IS_TRIUMPH3(unit)) {
rv = _bcm_tr3_mpls_failover_nw_port_match_get(unit, mpls_port, vp,
return_ment);
return rv;
}
#endif
#if defined(BCM_APACHE_SUPPORT) || defined(BCM_TRIDENT2PLUS_SUPPORT)
if (soc_feature(unit, soc_feature_mpls_xgs5_nw_port_match)) {
rv = bcmi_xgs5_mpls_failover_nw_port_match_get(unit, mpls_port, vp,
return_ment);
return rv;
}
#endif
#ifdef BCM_TRIUMPH_SUPPORT
if (SOC_IS_TR_VL(unit)) {
rv = _bcm_tr_mpls_failover_nw_port_match_get(unit, mpls_port, vp,
return_ment);
return rv;
}
#endif
#endif
return rv;
}
/*
* Function:
* _bcm_esw_mpls_match_get
* Purpose:
* Get match criteria of an MPLS port
* Parameters:
* unit - (IN) Device Number
* vp - (IN) Source Virtual Port
* Returns:
* BCM_E_XXX
*/
int
_bcm_esw_mpls_match_get(int unit, bcm_mpls_port_t *mpls_port, int vp)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH3_SUPPORT
if (SOC_IS_TRIUMPH3(unit)) {
rv = _bcm_tr3_mpls_match_get(unit, mpls_port, vp);
return rv;
}
#endif
#ifdef BCM_TRIUMPH_SUPPORT
if (SOC_IS_TR_VL(unit)) {
rv = _bcm_tr_mpls_match_get(unit, mpls_port, vp);
return rv;
}
#endif
#endif
return rv;
}
/*
* Function:
* _bcm_mpls_tunnel_switch_delete_all
* Purpose:
* Delete all MPLS label entries.
* Parameters:
* unit - Device Number
* Returns:
* BCM_E_XXX
*/
int
_bcm_esw_mpls_tunnel_switch_delete_all (int unit)
{
int rv = BCM_E_UNAVAIL;
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH3_SUPPORT
if (SOC_IS_TRIUMPH3(unit) && soc_feature(unit, soc_feature_mpls)) {
rv = bcm_tr3_mpls_tunnel_switch_delete_all(unit);
return rv;
}
#endif
#ifdef BCM_KATANA_SUPPORT
if (SOC_IS_KATANAX(unit) && soc_feature(unit, soc_feature_mpls)) {
rv = bcm_kt_mpls_tunnel_switch_delete_all(unit);
return rv;
}
#endif
#ifdef BCM_TRIUMPH_SUPPORT
if (SOC_IS_TR_VL(unit) && soc_feature(unit, soc_feature_mpls)) {
#if (defined(BCM_TOMAHAWK3_SUPPORT))
if (SOC_IS_TOMAHAWK3(unit)) {
rv = bcmi_xgs5_mpls_tunnel_switch_delete_all(unit);
} else
#endif
{
rv = bcm_tr_mpls_tunnel_switch_delete_all(unit);
}
return rv;
}
#endif
#endif
return rv;
}
/*
* Function:
* bcm_esw_mpls_port_stat_attach
* Description:
* Attach counters entries to the given mpls gport and vpn
*
* Parameters:
* unit - (IN) unit number
* vpn - (IN) VPN Id
* port - (IN) MPLS GPORT ID
* stat_counter_id - (IN) Stat Counter ID.
*
* Return Value:
* BCM_E_XXX
* Notes:
*/
int bcm_esw_mpls_port_stat_attach(
int unit,
bcm_vpn_t vpn,
bcm_gport_t port,
uint32 stat_counter_id)
{
#ifdef BCM_KATANA_SUPPORT
if (SOC_IS_KATANAX(unit)) {
return bcm_kt_mpls_port_stat_attach(
unit,vpn,port,stat_counter_id);
} else
#endif
#ifdef BCM_TRIUMPH3_SUPPORT
if (SOC_IS_TRIUMPH3(unit)) {
return bcm_tr3_mpls_port_stat_attach(
unit,vpn,port,stat_counter_id);
} else
#endif
{
#ifdef BCM_TRIDENT2_SUPPORT
if (soc_feature(unit,soc_feature_advanced_flex_counter)) {
return td2_mpls_port_stat_attach(
unit,vpn,port,stat_counter_id);
}
#endif
}
#if defined(BCM_MPLS_SUPPORT)
#if defined(BCM_TRIUMPH2_SUPPORT) || defined(BCM_TRIDENT_SUPPORT)
if (SOC_IS_TRIUMPH2(unit) || SOC_IS_TRIDENT(unit)) {
if (soc_feature(unit, soc_feature_gport_service_counters) &&
soc_feature(unit, soc_feature_mpls)) {
_bcm_flex_stat_type_t fs_type;
uint32 fs_inx;
uint32 flag;
int rv;
fs_type = _BCM_FLEX_STAT_TYPE(stat_counter_id);
fs_inx = _BCM_FLEX_STAT_COUNT_INX(stat_counter_id);
if (((fs_type != _bcmFlexStatTypeEgressGport) &&
(fs_type != _bcmFlexStatTypeGport)) || (!fs_inx)) {
return BCM_E_PARAM;
}
flag = fs_type==_bcmFlexStatTypeGport? _BCM_FLEX_STAT_HW_INGRESS:
_BCM_FLEX_STAT_HW_EGRESS;
rv = _bcm_esw_flex_stat_enable_set(unit, fs_type,
_bcm_esw_port_flex_stat_hw_index_set,
INT_TO_PTR(flag),
port, TRUE,fs_inx);
return rv;
}
}
#endif
#endif
return BCM_E_UNAVAIL;
}
/*
* Function:
* bcm_esw_mpls_port_stat_detach
* Description:
* Detach counters entries to the given mpls port and vpn
*
* Parameters:
* unit - (IN) unit number
* vpn - (IN) VPN Id
* port - (IN) MPLS GPORT ID
*
* Return Value:
* BCM_E_XXX
* Notes:
*/
int bcm_esw_mpls_port_stat_detach(
int unit,
bcm_vpn_t vpn,
bcm_gport_t port)
{
#ifdef BCM_KATANA_SUPPORT
if (SOC_IS_KATANAX(unit)) {
return bcm_kt_mpls_port_stat_detach(unit,vpn,port);
} else
#endif
#ifdef BCM_TRIUMPH3_SUPPORT
if (SOC_IS_TRIUMPH3(unit)) {
return bcm_tr3_mpls_port_stat_detach(unit,vpn,port);
} else
#endif
{
#ifdef BCM_TRIDENT2_SUPPORT
if (soc_feature(unit,soc_feature_advanced_flex_counter)) {
return td2_mpls_port_stat_detach(unit,vpn,port);
}
#endif
}
#if defined(BCM_MPLS_SUPPORT)
#if defined(BCM_TRIUMPH2_SUPPORT) || defined(BCM_TRIDENT_SUPPORT)
if (SOC_IS_TRIUMPH2(unit) || SOC_IS_TRIDENT(unit)) {
if (soc_feature(unit, soc_feature_gport_service_counters) &&
soc_feature(unit, soc_feature_mpls)) {
uint32 flag;
int rv;
int rv1;
flag= _BCM_FLEX_STAT_HW_INGRESS;
rv = _bcm_esw_flex_stat_enable_set(unit, _bcmFlexStatTypeGport,
_bcm_esw_port_flex_stat_hw_index_set,
INT_TO_PTR(flag),
port, FALSE,1);
flag= _BCM_FLEX_STAT_HW_EGRESS;
rv1 = _bcm_esw_flex_stat_enable_set(unit,
_bcmFlexStatTypeEgressGport,
_bcm_esw_port_flex_stat_hw_index_set,
INT_TO_PTR(flag),
port, FALSE,1);
if (BCM_SUCCESS(rv) && BCM_SUCCESS(rv1)) {
return BCM_E_NONE;
} else {
return BCM_E_NOT_FOUND;
}
}
}
#endif
#endif
return BCM_E_UNAVAIL;
}
/*
* Function:
* _bcm_esw_mpls_port_stat_counter_get
* Description:
* Get counter statistic values for specific vpn and gport
* if sync_mode is set, sync the sw accumulated count
* with hw count value first, else return sw count.
*
* Parameters:
* unit - (IN) unit number
* sync_mode - (IN) hwcount is to be synced to sw count
* vpn - (IN) VPN Id
* port - (IN) MPLS GPORT ID
* stat - (IN) Type of the counter to retrieve
* I.e. ingress/egress byte/packet)
* num_entries - (IN) Number of counter Entries
* counter_indexes - (IN) Pointer to Counter indexes entries
* counter_values - (OUT) Pointer to counter values
*
* Return Value:
* BCM_E_XXX
* Notes:
*/
int
_bcm_esw_mpls_port_stat_counter_get(
int unit,
int sync_mode,
bcm_vpn_t vpn,
bcm_gport_t port,
bcm_mpls_stat_t stat,
uint32 num_entries,
uint32 *counter_indexes,
bcm_stat_value_t *counter_values)
{
#ifdef BCM_KATANA_SUPPORT
if (SOC_IS_KATANAX(unit)) {
return bcm_kt_mpls_port_stat_counter_get(
unit, sync_mode, vpn, port, stat, num_entries,
counter_indexes,counter_values);
} else
#endif
#ifdef BCM_TRIUMPH3_SUPPORT
if (SOC_IS_TRIUMPH3(unit)) {
return bcm_tr3_mpls_port_stat_counter_get(
unit, sync_mode, vpn, port, stat, num_entries,
counter_indexes,counter_values);
} else
#endif
{
#ifdef BCM_TRIDENT2_SUPPORT
if (soc_feature(unit,soc_feature_advanced_flex_counter)) {
return td2_mpls_port_stat_counter_get(
unit, sync_mode, vpn, port, stat, num_entries,
counter_indexes,counter_values);
}
#endif
}
#if defined(BCM_MPLS_SUPPORT)
#if defined(BCM_TRIUMPH2_SUPPORT) || defined(BCM_TRIDENT_SUPPORT)
if ((SOC_IS_TRIUMPH2(unit) || SOC_IS_TRIDENT(unit)) &&
soc_feature(unit, soc_feature_mpls) &&
soc_feature(unit, soc_feature_gport_service_counters)) {
uint64 val;
int rv = BCM_E_NONE;
bcm_port_stat_t flex_stat=0;
switch (stat) {
case bcmMplsInPkts:
flex_stat = bcmPortStatIngressPackets;
break;
case bcmMplsInBytes:
flex_stat = bcmPortStatIngressBytes;
break;
case bcmMplsOutPkts:
flex_stat = bcmPortStatEgressPackets;
break;
case bcmMplsOutBytes:
flex_stat = bcmPortStatEgressBytes;
break;
default:
return BCM_E_PARAM;
break;
}
rv = _bcm_esw_flex_stat_get(unit, 0,
((flex_stat == bcmPortStatIngressPackets) ||
(flex_stat == bcmPortStatIngressBytes)) ?
_bcmFlexStatTypeGport:_bcmFlexStatTypeEgressGport,
port, (_bcm_flex_stat_t)flex_stat, &val);
if ((flex_stat == bcmPortStatIngressPackets) ||
(flex_stat == bcmPortStatEgressPackets)) {
counter_values->packets = COMPILER_64_LO(val);
} else {
COMPILER_64_SET(counter_values->bytes,
COMPILER_64_HI(val),
COMPILER_64_LO(val));
}
return rv;
}
#endif
#endif
return BCM_E_UNAVAIL;
}
/*
* Function:
* bcm_esw_mpls_port_stat_counter_get
* Description:
* Get counter statistic values for specific vpn and gport
*
* Parameters:
* unit - (IN) unit number
* vpn - (IN) VPN Id
* port - (IN) MPLS GPORT ID
* stat - (IN) Type of the counter to retrieve
* I.e. ingress/egress byte/packet)
* num_entries - (IN) Number of counter Entries
* counter_indexes - (IN) Pointer to Counter indexes entries
* counter_values - (OUT) Pointer to counter values
*
* Return Value:
* BCM_E_XXX
* Notes:
*/
int
bcm_esw_mpls_port_stat_counter_get(int unit,
bcm_vpn_t vpn,
bcm_gport_t port,
bcm_mpls_stat_t stat,
uint32 num_entries,
uint32 *counter_indexes,
bcm_stat_value_t *counter_values)
{
return _bcm_esw_mpls_port_stat_counter_get(unit, 0, vpn, port, stat,
num_entries,
counter_indexes,
counter_values);
}
/*
* Function:
* bcm_esw_mpls_port_stat_counter_sync_get
* Description:
* Get counter statistic values for specific vpn and gport
* sync the sw accumulated count with hw count value
*
* Parameters:
* unit - (IN) unit number
* vpn - (IN) VPN Id
* port - (IN) MPLS GPORT ID
* stat - (IN) Type of the counter to retrieve
* I.e. ingress/egress byte/packet)
* num_entries - (IN) Number of counter Entries
* counter_indexes - (IN) Pointer to Counter indexes entries
* counter_values - (OUT) Pointer to counter values
*
* Return Value:
* BCM_E_XXX
* Notes:
*/
int
bcm_esw_mpls_port_stat_counter_sync_get(int unit,
bcm_vpn_t vpn,
bcm_gport_t port,
bcm_mpls_stat_t stat,
uint32 num_entries,
uint32 *counter_indexes,
bcm_stat_value_t *counter_values)
{
return _bcm_esw_mpls_port_stat_counter_get(unit, 1, vpn, port, stat,
num_entries,
counter_indexes,
counter_values);
}
/*
* Function:
* bcm_esw_mpls_port_stat_counter_set
* Description:
* Set counter statistic values for specific vpn and gport
*
* Parameters:
* unit - (IN) unit number
* vpn - (IN) VPN Id
* port - (IN) MPLS GPORT ID
* stat - (IN) Type of the counter to retrieve
* I.e. ingress/egress byte/packet)
* num_entries - (IN) Number of counter Entries
* counter_indexes - (IN) Pointer to Counter indexes entries
* counter_values - (OUT) Pointer to counter values
*
* Return Value:
* BCM_E_XXX
* Notes:
*/
int bcm_esw_mpls_port_stat_counter_set(
int unit,
bcm_vpn_t vpn,
bcm_gport_t port,
bcm_mpls_stat_t stat,
uint32 num_entries,
uint32 *counter_indexes,
bcm_stat_value_t *counter_values)
{
#ifdef BCM_KATANA_SUPPORT
if (SOC_IS_KATANAX(unit)) {
return bcm_kt_mpls_port_stat_counter_set(
unit,vpn,port,stat,num_entries,counter_indexes,counter_values);
} else
#endif
#ifdef BCM_TRIUMPH3_SUPPORT
if (SOC_IS_TRIUMPH3(unit)) {
return bcm_tr3_mpls_port_stat_counter_set(
unit,vpn,port,stat,num_entries,counter_indexes,counter_values);
} else
#endif
{
#ifdef BCM_TRIDENT2_SUPPORT
if (soc_feature(unit,soc_feature_advanced_flex_counter)) {
return td2_mpls_port_stat_counter_set(
unit,vpn,port,stat,num_entries,counter_indexes,counter_values);
}
#endif
}
#if defined(BCM_MPLS_SUPPORT)
#if defined(BCM_TRIUMPH2_SUPPORT) || defined(BCM_TRIDENT_SUPPORT)
if ((SOC_IS_TRIUMPH2(unit) || SOC_IS_TRIDENT(unit)) &&
soc_feature(unit, soc_feature_mpls) &&
soc_feature(unit, soc_feature_gport_service_counters)) {
uint64 val;
int rv = BCM_E_NONE;
bcm_port_stat_t flex_stat=0;
switch (stat) {
case bcmMplsInPkts:
flex_stat = bcmPortStatIngressPackets;
break;
case bcmMplsInBytes:
flex_stat = bcmPortStatIngressBytes;
break;
case bcmMplsOutPkts:
flex_stat = bcmPortStatEgressPackets;
break;
case bcmMplsOutBytes:
flex_stat = bcmPortStatEgressBytes;
break;
default:
return BCM_E_PARAM;
break;
}
if ((flex_stat == bcmPortStatIngressPackets) ||
(flex_stat == bcmPortStatEgressPackets)) {
COMPILER_64_SET(val,0,counter_values->packets);
} else {
COMPILER_64_SET(val,
COMPILER_64_HI(counter_values->bytes),
COMPILER_64_LO(counter_values->bytes));
}
rv = _bcm_esw_flex_stat_set(unit,
((flex_stat == bcmPortStatIngressPackets) ||
(flex_stat == bcmPortStatIngressBytes)) ?
_bcmFlexStatTypeGport:_bcmFlexStatTypeEgressGport,
port, (_bcm_flex_stat_t) flex_stat, val);
return rv;
}
#endif
#endif
return BCM_E_UNAVAIL;
}
/*
* Function:
* bcm_esw_mpls_port_stat_id_get
* Description:
* Get stat counter id associated with specific vpn and gport
*
* Parameters:
* unit - (IN) unit number
* vpn - (IN) VPN Id
* port - (IN) MPLS GPORT ID
* stat - (IN) Type of the counter to retrieve
* I.e. ingress/egress byte/packet)
* Stat_counter_id - (OUT) Stat Counter ID
* Return Value:
* BCM_E_XXX
* Notes:
*/
int bcm_esw_mpls_port_stat_id_get(
int unit,
bcm_vpn_t vpn,
bcm_gport_t port,
bcm_mpls_stat_t stat,
uint32 *stat_counter_id)
{
#ifdef BCM_KATANA_SUPPORT
if (SOC_IS_KATANAX(unit)) {
return bcm_kt_mpls_port_stat_id_get(
unit,vpn,port,stat,stat_counter_id);
} else
#endif
#ifdef BCM_TRIUMPH3_SUPPORT
if (SOC_IS_TRIUMPH3(unit)) {
return bcm_tr3_mpls_port_stat_id_get(
unit,vpn,port,stat,stat_counter_id);
} else
#endif
{
#ifdef BCM_TRIDENT2_SUPPORT
if (soc_feature(unit,soc_feature_advanced_flex_counter)) {
return td2_mpls_port_stat_id_get(
unit,vpn,port,stat,stat_counter_id);
}
#endif
}
return BCM_E_UNAVAIL;
}
/*
* Function:
* bcm_esw_mpls_label_stat_attach
* Description:
* Attach counters entries to the given mpls label and gport
*
* Parameters:
* unit - (IN) unit number
* label - (IN) MPLS Label
* port - (IN) MPLS Gport
* stat_counter_id - (IN) Stat Counter ID.
*
* Return Value:
* BCM_E_XXX
* Notes:
*/
int bcm_esw_mpls_label_stat_attach(
int unit,
bcm_mpls_label_t label,
bcm_gport_t port,
uint32 stat_counter_id)
{
#if defined(BCM_KATANA_SUPPORT)
if (SOC_IS_KATANAX(unit)) {
return bcm_kt_mpls_label_stat_attach(
unit,label,port,stat_counter_id);
} else
#endif
#if defined(BCM_TRIUMPH3_SUPPORT)
if (SOC_IS_TRIUMPH3(unit)) {
return bcm_tr3_mpls_label_stat_attach(
unit,label,port,stat_counter_id);
} else
#endif
{
#if defined(BCM_TRIDENT2_SUPPORT)
if (soc_feature(unit,soc_feature_advanced_flex_counter)) {
return td2_mpls_label_stat_attach(
unit,label,port,stat_counter_id);
}
#endif
}
#if defined(BCM_MPLS_SUPPORT)
#if defined(BCM_TRIUMPH2_SUPPORT) || defined(BCM_TRIDENT_SUPPORT)
if (SOC_IS_TRIUMPH2(unit) || SOC_IS_TRIDENT(unit)) {
if (soc_feature(unit, soc_feature_gport_service_counters) &&
soc_feature(unit, soc_feature_mpls)) {
_bcm_flex_stat_type_t fs_type;
uint32 fs_inx;
int rv;
fs_type = _BCM_FLEX_STAT_TYPE(stat_counter_id);
fs_inx = _BCM_FLEX_STAT_COUNT_INX(stat_counter_id);
if ((fs_type != _bcmFlexStatTypeMplsLabel) || (!fs_inx)) {
return BCM_E_PARAM;
}
rv = bcm_tr_mpls_lock(unit);
if (BCM_E_NONE == rv) {
rv = bcm_tr2_mpls_label_stat_enable_set(unit, label,
port, TRUE, fs_inx);
bcm_tr_mpls_unlock(unit);
}
return rv;
}
}
#endif
#endif
return BCM_E_UNAVAIL;
}
/*
* Function:
* bcm_esw_mpls_label_stat_detach
* Description:
* Detach counters entries to the given mpls label and gport
*
* Parameters:
* unit - (IN) unit number
* label - (IN) MPLS Label
* port - (IN) MPLS Gport
*
* Return Value:
* BCM_E_XXX
* Notes:
*/
int bcm_esw_mpls_label_stat_detach(
int unit,
bcm_mpls_label_t label,
bcm_gport_t port)
{
#if defined(BCM_KATANA_SUPPORT)
if (SOC_IS_KATANAX(unit)) {
return bcm_kt_mpls_label_stat_detach(
unit,label,port);
} else
#endif
#if defined(BCM_TRIUMPH3_SUPPORT)
if (SOC_IS_TRIUMPH3(unit)) {
return bcm_tr3_mpls_label_stat_detach(
unit,label,port);
} else
#endif
{
#if defined(BCM_TRIDENT2_SUPPORT)
if (soc_feature(unit,soc_feature_advanced_flex_counter)) {
return td2_mpls_label_stat_detach(
unit,label,port);
}
#endif
}
#if defined(BCM_MPLS_SUPPORT)
#if defined(BCM_TRIUMPH2_SUPPORT) || defined(BCM_TRIDENT_SUPPORT)
if (SOC_IS_TRIUMPH2(unit) || SOC_IS_TRIDENT(unit)) {
if (soc_feature(unit, soc_feature_gport_service_counters) &&
soc_feature(unit, soc_feature_mpls)) {
int rv;
rv = bcm_tr_mpls_lock(unit);
if (BCM_E_NONE == rv) {
rv = bcm_tr2_mpls_label_stat_enable_set(unit, label,
port, FALSE, 1);
bcm_tr_mpls_unlock(unit);
}
return rv;
}
}
#endif
#endif
return BCM_E_UNAVAIL;
}
/*
* Function:
* _bcm_esw_mpls_label_stat_counter_get
* Description:
* Get counter statistic values for specific MPLS label and gport
* if sync_mode is set, sync the sw accumulated count
* with hw count value first, else return sw count.
*
* Parameters:
* unit - (IN) unit number
* sync_mode - (IN) hwcount is to be synced to sw count
* label - (IN) MPLS Label
* port - (IN) MPLS Gport
* stat - (IN) Type of the counter to retrieve
* I.e. ingress/egress byte/packet)
* num_entries - (IN) Number of counter Entries
* counter_indexes - (IN) Pointer to Counter indexes entries
* counter_values - (OUT) Pointer to counter values
*
* Return Value:
* BCM_E_XXX
* Notes:
*/
int
_bcm_esw_mpls_label_stat_counter_get(int unit,
int sync_mode,
bcm_mpls_label_t label,
bcm_gport_t port,
bcm_mpls_stat_t stat,
uint32 num_entries,
uint32 *counter_indexes,
bcm_stat_value_t *counter_values)
{
#if defined(BCM_KATANA_SUPPORT)
if (SOC_IS_KATANAX(unit)) {
return bcm_kt_mpls_label_stat_counter_get(
unit, sync_mode, label, port, stat, num_entries,
counter_indexes,counter_values);
} else
#endif
#if defined(BCM_TRIUMPH3_SUPPORT)
if (SOC_IS_TRIUMPH3(unit)) {
return bcm_tr3_mpls_label_stat_counter_get(
unit, sync_mode, label, port, stat,
num_entries, counter_indexes, counter_values);
} else
#endif
{
#if defined(BCM_TRIDENT2_SUPPORT)
if (soc_feature(unit,soc_feature_advanced_flex_counter)) {
return td2_mpls_label_stat_counter_get(
unit, sync_mode, label, port, stat,
num_entries, counter_indexes, counter_values);
}
#endif
}
#ifdef BCM_MPLS_SUPPORT
#ifdef BCM_TRIUMPH_SUPPORT
if (SOC_IS_TR_VL(unit) && soc_feature(unit, soc_feature_mpls) &&
soc_feature(unit, soc_feature_gport_service_counters)) {
uint64 val;
int rv;
rv = bcm_tr_mpls_lock(unit);
if (rv == BCM_E_NONE ) {
rv = bcm_tr_mpls_label_stat_get(unit, sync_mode, label,
port, stat, &val);
bcm_tr_mpls_unlock (unit);
if ((stat == bcmMplsInPkts) || (stat == bcmMplsOutPkts)) {
counter_values->packets = COMPILER_64_LO(val);
} else {
COMPILER_64_SET(counter_values->bytes,
COMPILER_64_HI(val),
COMPILER_64_LO(val));
}
}
return rv;
}
#endif
#endif
return BCM_E_UNAVAIL;
}
/*
* Function:
* bcm_esw_mpls_label_stat_counter_get
* Description:
* Get counter statistic values for specific MPLS label and gport
*
* Parameters:
* unit - (IN) unit number
* label - (IN) MPLS Label
* port - (IN) MPLS Gport
* stat - (IN) Type of the counter to retrieve
* I.e. ingress/egress byte/packet)
* num_entries - (IN) Number of counter Entries
* counter_indexes - (IN) Pointer to Counter indexes entries
* counter_values - (OUT) Pointer to counter values
*
* Return Value:
* BCM_E_XXX
* Notes:
*/
int
bcm_esw_mpls_label_stat_counter_get(int unit,
bcm_mpls_label_t label,
bcm_gport_t port,
bcm_mpls_stat_t stat,
uint32 num_entries,
uint32 *counter_indexes,
bcm_stat_value_t *counter_values)
{
return _bcm_esw_mpls_label_stat_counter_get(unit, 0, label, port, stat,
num_entries, counter_indexes,
counter_values);
}
/*
* Function:
* bcm_esw_mpls_label_stat_counter_sync_get
* Description:
* Get counter statistic values for specific MPLS label and gport
* sync the sw accumulated count with hw count value
*
* Parameters:
* unit - (IN) unit number
* label - (IN) MPLS Label
* port - (IN) MPLS Gport
* stat - (IN) Type of the counter to retrieve
* I.e. ingress/egress byte/packet)
* num_entries - (IN) Number of counter Entries
* counter_indexes - (IN) Pointer to Counter indexes entries
* counter_values - (OUT) Pointer to counter values
*
* Return Value:
* BCM_E_XXX
* Notes:
*/
int
bcm_esw_mpls_label_stat_counter_sync_get(int unit,
bcm_mpls_label_t label,
bcm_gport_t port,
bcm_mpls_stat_t stat,
uint32 num_entries,
uint32 *counter_indexes,
bcm_stat_value_t *counter_values)
{
return _bcm_esw_mpls_label_stat_counter_get(unit, 1, label, port, stat,
num_entries, counter_indexes,
counter_values);
}
/*
* Function:
* bcm_esw_mpls_label_stat_counter_set
* Description:
* Set counter statistic values for specific MPLS label and gport
*
* Parameters:
* unit - (IN) unit number
* label - (IN) MPLS Label
* port - (IN) MPLS Gport
* stat - (IN) Type of the counter to retrieve
* I.e. ingress/egress byte/packet)
* num_entries - (IN) Number of counter Entries
* counter_indexes - (IN) Pointer to Counter indexes entries
* counter_values - (IN) Pointer to counter values
*
* Return Value:
* BCM_E_XXX
* Notes:
*/
int bcm_esw_mpls_label_stat_counter_set(
int unit,
bcm_mpls_label_t label,
bcm_gport_t port,
bcm_mpls_stat_t stat,
uint32 num_entries,
uint32 *counter_indexes,
bcm_stat_value_t *counter_values)
{
#if defined(BCM_KATANA_SUPPORT)
if (SOC_IS_KATANAX(unit)) {
return bcm_kt_mpls_label_stat_counter_set(
unit,label,port,stat,num_entries,counter_indexes,counter_values);
} else
#endif
#if defined(BCM_TRIUMPH3_SUPPORT)
if (SOC_IS_TRIUMPH3(unit)) {
return bcm_tr3_mpls_label_stat_counter_set(
unit,label,port,stat,num_entries,counter_indexes,counter_values);
} else
#endif
{
#if defined(BCM_TRIDENT2_SUPPORT)
if (soc_feature(unit,soc_feature_advanced_flex_counter)) {
return td2_mpls_label_stat_counter_set(
unit,label,port,stat,num_entries,counter_indexes,counter_values);
}
#endif
}
return BCM_E_UNAVAIL;
}
/*
* Function:
* bcm_esw_mpls_label_stat_id_get
* Description:
* Get stat counter id associated with specific MPLS label and gport
*
* Parameters:
* unit - (IN) unit number
* label - (IN) MPLS Label
* port - (IN) MPLS Gport
* stat - (IN) Type of the counter to retrieve
* I.e. ingress/egress byte/packet)
* Stat_counter_id - (OUT) Stat Counter ID
* Return Value:
* BCM_E_XXX
* Notes:
*/
int bcm_esw_mpls_label_stat_id_get(
int unit,
bcm_mpls_label_t label,
bcm_gport_t port,
bcm_mpls_stat_t stat,
uint32 *stat_counter_id)
{
#if defined(BCM_KATANA_SUPPORT)
if (SOC_IS_KATANAX(unit)) {
return bcm_kt_mpls_label_stat_id_get(
unit,label,port,stat,stat_counter_id);
} else
#endif
#if defined(BCM_TRIUMPH3_SUPPORT)
if (SOC_IS_TRIUMPH3(unit)) {
return bcm_tr3_mpls_label_stat_id_get(
unit,label,port,stat,stat_counter_id);
} else
#endif
{
#if defined(BCM_TRIDENT2_SUPPORT)
if (soc_feature(unit,soc_feature_advanced_flex_counter)) {
return td2_mpls_label_stat_id_get(
unit,label,port,stat,stat_counter_id);
}
#endif
}
return BCM_E_UNAVAIL;
}
/*
* Function:
* bcm_esw_mpls_special_label_identifier_add
* Description:
* Add identifier entry of special label.
*
* Parameters:
* unit - (IN) unit number
* label_type - (IN) MPLS Label
* label_info - (IN) MPLS Gport
* Return Value:
* BCM_E_XXX
* Notes:
*/
int
bcm_esw_mpls_special_label_identifier_add(int unit,
bcm_mpls_special_label_type_t label_type,
bcm_mpls_special_label_t label_info)
{
int rv = BCM_E_NONE;
#if defined(BCM_TRIUMPH2_SUPPORT) || defined(BCM_TRIDENT_SUPPORT)
#ifdef BCM_SPECIAL_LABEL_SUPPORT
if ((!soc_feature(unit, soc_feature_mpls)) ||
(!(soc_feature(unit, soc_feature_mpls_special_label)))) {
return BCM_E_UNAVAIL;
}
rv = bcm_tr_mpls_lock(unit);
if (BCM_E_NONE == rv) {
rv = bcmi_mpls_special_label_identifier_add(unit, label_type,
label_info);
}
bcm_tr_mpls_unlock(unit);
#endif /* BCM_TRIUMPH2_SUPPORT || BCM_TRIDENT_SUPPORT */
#endif /*BCM_SPECIAL_LABEL_SUPPORT*/
return rv;
}
/*
* Function:
* bcm_esw_mpls_special_label_identifier_get
* Description:
* Get identifier entry of special label.
*
* Parameters:
* unit - (IN) unit number
* label_type - (IN) MPLS Label
* label_info - (IN) MPLS Gport
* Return Value:
* BCM_E_XXX
* Notes:
*/
int
bcm_esw_mpls_special_label_identifier_get(int unit,
bcm_mpls_special_label_type_t label_type,
bcm_mpls_special_label_t *label_info)
{
int rv = BCM_E_NONE;
#if defined(BCM_TRIUMPH2_SUPPORT) || defined(BCM_TRIDENT_SUPPORT)
#ifdef BCM_SPECIAL_LABEL_SUPPORT
if ((!soc_feature(unit, soc_feature_mpls)) ||
(!(soc_feature(unit, soc_feature_mpls_special_label)))) {
return BCM_E_UNAVAIL;
}
rv = bcm_tr_mpls_lock(unit);
if (BCM_E_NONE == rv) {
rv = bcmi_mpls_special_label_identifier_get(unit, label_type,
label_info);
}
bcm_tr_mpls_unlock(unit);
#endif /* BCM_TRIUMPH2_SUPPORT || BCM_TRIDENT_SUPPORT */
#endif /*BCM_SPECIAL_LABEL_SUPPORT*/
return rv;
}
/*
* Function:
* bcm_esw_mpls_special_label_identifier_delete
* Description:
* Delete identifiers of special label.
*
* Parameters:
* unit - (IN) unit number
* label_type - (IN) MPLS Label
* label_info - (IN) MPLS Gport
* Return Value:
* BCM_E_XXX
* Notes:
*/
int
bcm_esw_mpls_special_label_identifier_delete(int unit,
bcm_mpls_special_label_type_t label_type,
bcm_mpls_special_label_t label_info)
{
int rv = BCM_E_NONE;
#if defined(BCM_TRIUMPH2_SUPPORT) || defined(BCM_TRIDENT_SUPPORT)
#ifdef BCM_SPECIAL_LABEL_SUPPORT
if ((!soc_feature(unit, soc_feature_mpls)) ||
(!(soc_feature(unit, soc_feature_mpls_special_label)))) {
return BCM_E_UNAVAIL;
}
rv = bcm_tr_mpls_lock(unit);
if (BCM_E_NONE == rv) {
rv = bcmi_mpls_special_label_identifier_delete(unit, label_type,
label_info);
}
bcm_tr_mpls_unlock(unit);
#endif /* BCM_TRIUMPH2_SUPPORT || BCM_TRIDENT_SUPPORT */
#endif /*BCM_SPECIAL_LABEL_SUPPORT*/
return rv;
}
/*
* Function:
* bcm_esw_mpls_special_label_identifier_delete_all
* Description:
* Delete all identifiers ofs pecial labels.
*
* Parameters:
* unit - (IN) unit number
* label_type - (IN) MPLS Label
* label_info - (IN) MPLS Gport
* Return Value:
* BCM_E_XXX
* Notes:
*/
int
bcm_esw_mpls_special_label_identifier_delete_all(int unit)
{
int rv = BCM_E_NONE;
#if defined(BCM_TRIUMPH2_SUPPORT) || defined(BCM_TRIDENT_SUPPORT)
#ifdef BCM_SPECIAL_LABEL_SUPPORT
if ((!soc_feature(unit, soc_feature_mpls)) ||
(!(soc_feature(unit, soc_feature_mpls_special_label)))) {
return BCM_E_UNAVAIL;
}
rv = bcm_tr_mpls_lock(unit);
if (BCM_E_NONE == rv) {
rv = bcmi_mpls_special_label_identifier_delete_all(unit);
}
bcm_tr_mpls_unlock(unit);
#endif /* BCM_TRIUMPH2_SUPPORT || BCM_TRIDENT_SUPPORT */
#endif /*BCM_SPECIAL_LABEL_SUPPORT*/
return rv;
}
/*
* Function:
* bcm_esw_mpls_special_label_identifier_traverse
* Description:
* Traverse and call user call back for all special labels identifiers.
*
* Parameters:
* unit - (IN) unit number
* cb - (IN) user callback
* user data - (IN) option user data
* Return Value:
* BCM_E_XXX
* Notes:
*/
int bcm_esw_mpls_special_label_identifier_traverse(int unit,
bcm_mpls_special_label_identifier_traverse_cb cb, void *user_data)
{
int rv = BCM_E_NONE;
#if defined(BCM_TRIUMPH2_SUPPORT) || defined(BCM_TRIDENT_SUPPORT)
#ifdef BCM_SPECIAL_LABEL_SUPPORT
if ((!soc_feature(unit, soc_feature_mpls)) ||
(!(soc_feature(unit, soc_feature_mpls_special_label)))) {
return BCM_E_UNAVAIL;
}
rv = bcm_tr_mpls_lock(unit);
if (BCM_E_NONE == rv) {
rv = bcmi_mpls_special_label_identifier_traverse(unit, cb, user_data);
}
bcm_tr_mpls_unlock(unit);
#endif /* BCM_TRIUMPH2_SUPPORT || BCM_TRIDENT_SUPPORT */
#endif /*BCM_SPECIAL_LABEL_SUPPORT*/
return rv;
}
/*
* Function:
* bcm_esw_mpls_special_label_egress_add
* Description:
* Add special label in MPLS stack for packets
* going into MPLS tunnel.
*
* Parameters:
* unit - (IN) unit number
* label_type - (IN) MPLS Label
* label_info - (IN) MPLS Gport
* Return Value:
* BCM_E_XXX
* Notes:
*/
int
bcm_esw_mpls_special_label_egress_add(int unit,
bcm_mpls_special_label_type_t label_type,
bcm_mpls_special_label_t label_info)
{
int rv = BCM_E_NONE;
#if defined(BCM_TRIUMPH2_SUPPORT) || defined(BCM_TRIDENT_SUPPORT)
#ifdef BCM_SPECIAL_LABEL_SUPPORT
if ((!soc_feature(unit, soc_feature_mpls)) ||
(!(soc_feature(unit, soc_feature_mpls_special_label)))) {
return BCM_E_UNAVAIL;
}
rv = bcm_tr_mpls_lock(unit);
if (BCM_E_NONE == rv) {
rv = bcmi_mpls_special_label_egress_add(unit, label_type, label_info);
}
bcm_tr_mpls_unlock(unit);
#endif /* BCM_TRIUMPH2_SUPPORT || BCM_TRIDENT_SUPPORT */
#endif /*BCM_SPECIAL_LABEL_SUPPORT*/
return rv;
}
/*
* Function:
* bcm_esw_mpls_special_label_egress_get
* Description:
* Get special label in MPLS stack for packets
* going into MPLS tunnel.
*
* Parameters:
* unit - (IN) unit number
* label_type - (IN) MPLS Label
* label_info - (IN) MPLS Gport
* Return Value:
* BCM_E_XXX
* Notes:
*/
int
bcm_esw_mpls_special_label_egress_get(int unit,
bcm_mpls_special_label_type_t label_type,
bcm_mpls_special_label_t *label_info)
{
int rv = BCM_E_NONE;
#if defined(BCM_TRIUMPH2_SUPPORT) || defined(BCM_TRIDENT_SUPPORT)
#ifdef BCM_SPECIAL_LABEL_SUPPORT
if ((!soc_feature(unit, soc_feature_mpls)) ||
(!(soc_feature(unit, soc_feature_mpls_special_label)))) {
return BCM_E_UNAVAIL;
}
rv = bcm_tr_mpls_lock(unit);
if (BCM_E_NONE == rv) {
rv = bcmi_mpls_special_label_egress_get(unit, label_type, label_info);
}
bcm_tr_mpls_unlock(unit);
#endif /* BCM_TRIUMPH2_SUPPORT || BCM_TRIDENT_SUPPORT */
#endif /*BCM_SPECIAL_LABEL_SUPPORT*/
return rv;
}
/*
* Function:
* bcm_esw_mpls_special_label_egress_delete
* Description:
* Delete special label in MPLS stack for packets
* going into MPLS tunnel.
*
* Parameters:
* unit - (IN) unit number
* label_type - (IN) MPLS Label
* label_info - (IN) MPLS Gport
* Return Value:
* BCM_E_XXX
* Notes:
*/
int
bcm_esw_mpls_special_label_egress_delete(int unit,
bcm_mpls_special_label_type_t label_type,
bcm_mpls_special_label_t label_info)
{
int rv = BCM_E_NONE;
#if defined(BCM_TRIUMPH2_SUPPORT) || defined(BCM_TRIDENT_SUPPORT)
#ifdef BCM_SPECIAL_LABEL_SUPPORT
if ((!soc_feature(unit, soc_feature_mpls)) ||
(!(soc_feature(unit, soc_feature_mpls_special_label)))) {
return BCM_E_UNAVAIL;
}
rv = bcm_tr_mpls_lock(unit);
if (BCM_E_NONE == rv) {
rv = bcmi_mpls_special_label_egress_delete(unit, label_type, label_info);
}
bcm_tr_mpls_unlock(unit);
#endif /* BCM_TRIUMPH2_SUPPORT || BCM_TRIDENT_SUPPORT */
#endif /*BCM_SPECIAL_LABEL_SUPPORT*/
return rv;
}
/*
* Function:
* bcm_esw_mpls_special_label_egress_delete_all
* Description:
* Delete all special labels in MPLS stack for packets
* going into MPLS tunnel.
*
* Parameters:
* unit - (IN) unit number
* label_type - (IN) MPLS Label
* label_info - (IN) MPLS Gport
* Return Value:
* BCM_E_XXX
* Notes:
*/
int
bcm_esw_mpls_special_label_egress_delete_all(int unit)
{
int rv = BCM_E_NONE;
#if defined(BCM_TRIUMPH2_SUPPORT) || defined(BCM_TRIDENT_SUPPORT)
#ifdef BCM_SPECIAL_LABEL_SUPPORT
if ((!soc_feature(unit, soc_feature_mpls)) ||
(!(soc_feature(unit, soc_feature_mpls_special_label)))) {
return BCM_E_UNAVAIL;
}
rv = bcm_tr_mpls_lock(unit);
if (BCM_E_NONE == rv) {
rv = bcmi_mpls_special_label_egress_delete_all(unit);
}
bcm_tr_mpls_unlock(unit);
#endif /* BCM_TRIUMPH2_SUPPORT || BCM_TRIDENT_SUPPORT */
#endif /*BCM_SPECIAL_LABEL_SUPPORT*/
return rv;
}
/*
* Function:
* bcm_esw_mpls_special_label_egress_traverse
* Description:
* Traverse and call user call back for all special labels
* going into MPLS tunnel.
*
* Parameters:
* unit - (IN) unit number
* cb - (IN) user callback
* user data - (IN) option user data
* Return Value:
* BCM_E_XXX
* Notes:
*/
int bcm_esw_mpls_special_label_egress_traverse(int unit,
bcm_mpls_special_label_egress_traverse_cb cb,void *user_data)
{
int rv = BCM_E_NONE;
#if defined(BCM_TRIUMPH2_SUPPORT) || defined(BCM_TRIDENT_SUPPORT)
#ifdef BCM_SPECIAL_LABEL_SUPPORT
if ((!soc_feature(unit, soc_feature_mpls)) ||
(!(soc_feature(unit, soc_feature_mpls_special_label)))) {
return BCM_E_UNAVAIL;
}
rv = bcm_tr_mpls_lock(unit);
if (BCM_E_NONE == rv) {
rv = bcmi_mpls_special_label_egress_traverse(unit, cb, user_data);
}
bcm_tr_mpls_unlock(unit);
#endif /* BCM_TRIUMPH2_SUPPORT || BCM_TRIDENT_SUPPORT */
#endif /*BCM_SPECIAL_LABEL_SUPPORT*/
return rv;
}
/*
* Function:
* bcm_esw_mpls_special_label_push_action_set
* Description:
* Set mpls push action in MPLS objects.
* going into MPLS tunnel.
*
* Parameters:
* unit - (IN) unit number
* element - (IN) MPLS object
* push_type - (IN) push action
* Return Value:
* BCM_E_XXX
* Notes:
*/
int
bcm_esw_mpls_special_label_push_action_set(int unit,
bcm_mpls_special_label_push_element_t *element,
int push_type)
{
int rv = BCM_E_NONE;
#if defined(BCM_TRIUMPH2_SUPPORT) || defined(BCM_TRIDENT_SUPPORT)
#ifdef BCM_SPECIAL_LABEL_SUPPORT
if ((!soc_feature(unit, soc_feature_mpls)) ||
(!(soc_feature(unit, soc_feature_mpls_special_label)))) {
return BCM_E_UNAVAIL;
}
rv = bcm_tr_mpls_lock(unit);
if (BCM_E_NONE == rv) {
rv = bcmi_mpls_special_label_push_action_set(
unit, element, (bcm_mpls_special_label_push_type_t)push_type);
}
bcm_tr_mpls_unlock(unit);
#endif /* BCM_TRIUMPH2_SUPPORT || BCM_TRIDENT_SUPPORT */
#endif /*BCM_SPECIAL_LABEL_SUPPORT*/
return rv;
}
/*
* Function:
* bcm_esw_mpls_special_label_push_action_get
* Description:
* Get mpls push action in MPLS objects.
* going into MPLS tunnel.
*
* Parameters:
* unit - (IN) unit number
* element - (IN) MPLS object
* push_type - (OUT) push action
* Return Value:
* BCM_E_XXX
* Notes:
*/
int
bcm_esw_mpls_special_label_push_action_get(int unit,
bcm_mpls_special_label_push_element_t *element,
int *push_type)
{
int rv = BCM_E_NONE;
#if defined(BCM_TRIUMPH2_SUPPORT) || defined(BCM_TRIDENT_SUPPORT)
#ifdef BCM_SPECIAL_LABEL_SUPPORT
if ((!soc_feature(unit, soc_feature_mpls)) ||
(!(soc_feature(unit, soc_feature_mpls_special_label)))) {
return BCM_E_UNAVAIL;
}
if (push_type == NULL) {
return BCM_E_PARAM;
}
rv = bcm_tr_mpls_lock(unit);
if (BCM_E_NONE == rv) {
rv = bcmi_mpls_special_label_push_action_get(
unit, element, (bcm_mpls_special_label_push_type_t *)push_type);
}
bcm_tr_mpls_unlock(unit);
#endif /* BCM_TRIUMPH2_SUPPORT || BCM_TRIDENT_SUPPORT */
#endif /*BCM_SPECIAL_LABEL_SUPPORT*/
return rv;
}
#else /* INCLUDE_L3 */
int bcm_esw_mpls_not_empty;
#endif /* INCLUDE_L3 */
|
the_stack_data/28262086.c | char *mx_strchr(const char *s, int c);
char *mx_strchr(const char *s, int c)
{
for(int i = 0; s[i] != '\0'; i++)
if(s[i] == c)
return (char *)&s[i];
return 0;
}
|
the_stack_data/98575339.c | /* $NetBSD: getopt.c,v 1.26 2003/08/07 16:43:40 agc Exp $ */
/*
* Copyright (c) 1987, 1993, 1994
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)getopt.c 8.3 (Berkeley) 4/27/95";
#endif /* LIBC_SCCS and not lint */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#if HAVE_UNISTD_H
#include <unistd.h> /* getopt */
#endif
extern const char *_getprogname(void);
int opterr = 1, /* if error message should be printed */
optind = 1, /* index into parent argv vector */
optopt, /* character checked for validity */
optreset; /* reset getopt */
char *optarg; /* argument associated with option */
#define BADCH (int)'?'
#define BADARG (int)':'
#define EMSG ""
/*
* getopt --
* Parse argc/argv argument vector.
*/
int
getopt(nargc, nargv, ostr)
int nargc;
char * const nargv[];
const char *ostr;
{
static char *place = EMSG; /* option letter processing */
char *oli; /* option letter list index */
if (optreset || *place == 0) { /* update scanning pointer */
optreset = 0;
place = nargv[optind];
if (optind >= nargc || *place++ != '-') {
/* Argument is absent or is not an option */
place = EMSG;
return (-1);
}
optopt = *place++;
if (optopt == '-' && *place == 0) {
/* "--" => end of options */
++optind;
place = EMSG;
return (-1);
}
if (optopt == 0) {
/* Solitary '-', treat as a '-' option
if the program (eg su) is looking for it. */
place = EMSG;
if (strchr(ostr, '-') == NULL)
return (-1);
optopt = '-';
}
} else
optopt = *place++;
/* See if option letter is one the caller wanted... */
if (optopt == ':' || (oli = strchr(ostr, optopt)) == NULL) {
if (*place == 0)
++optind;
if (opterr && *ostr != ':')
(void)fprintf(stderr,
"%s: illegal option -- %c\n", _getprogname(),
optopt);
return (BADCH);
}
/* Does this option need an argument? */
if (oli[1] != ':') {
/* don't need argument */
optarg = NULL;
if (*place == 0)
++optind;
} else {
/* Option-argument is either the rest of this argument or the
entire next argument. */
if (*place)
optarg = place;
else if (nargc > ++optind)
optarg = nargv[optind];
else {
/* option-argument absent */
place = EMSG;
if (*ostr == ':')
return (BADARG);
if (opterr)
(void)fprintf(stderr,
"%s: option requires an argument -- %c\n",
_getprogname(), optopt);
return (BADCH);
}
place = EMSG;
++optind;
}
return (optopt); /* return option letter */
}
|
the_stack_data/1066229.c | /*
9.15.17
Final Assignment Submission v2
FOR PORTFOLIO PURPOSES
Context: This is the final submission for the myls assignment. Later assignments
will require further building upon this code to incorporate even more features
to resemble a functioning Linux Shell.
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/wait.h>
#include <fcntl.h>
int verbose_flag = 1; //by default, program should be in verbose mode
int redirection_flag = 0; //if there is redirection, then parsing will detect it and flip the bit
//when flipped, execution will check it and perform redirection appropriately. Once complete, it will
//flip it back to normal; a simple form of redirection, only ">" form
char *outputFile;
void parse(char* input, char** output){
//parsing assuming a maximum sized array for the arguments
//memory will be wasted, but hopefully not too much
char delimit[] = " \t\n\v";
char *p = strtok(input, delimit);
int i = 0;
//inspiration for following for loop form from the following
//stack post:
//https://stackoverflow.com/questions/3889992/how-does-strtok-split-the-string-into-tokens-in-c
for(; p != NULL; p = strtok(NULL, delimit)){
if(strcmp(p, ">") == 0) {//so > will not be included in arguments
redirection_flag = 1;
p = strtok(NULL, delimit); //bit of a stretch, but always assumes that next work is output file
outputFile = p;
}else {
output[i++] = p;
}
}
output[i] = NULL;
//following are for testing purposes:
//int a = 0;
//printf("YOLO: %s", commands[0]);
//for(; a < i; a++)
//printf("%s<\n", output[a]); //extra carrot chara to make sure no newline
//*output = *commands;
//return *commands;
}
void execution(char **commands){
/*int i = 0;
for (; i < 5; i++){
printf("%s\n", commands[i]);
}*/
//from textbook, Chapter 5, code example
//Cite: pages.cs.wisc.edu/~remzi/OSTEP/cpu-api.pdf
int rc = fork();
if(rc < 0){ //fork failure; exit
fprintf(stderr, "fork failed\n");
exit(1);
} else if (rc == 0) {//child new process
if(verbose_flag){
printf("hello, I am child (pid: %d)\n", (int) getpid());
printf("I will execute a new process\n");
}
if(redirection_flag){
if(verbose_flag)
printf("Redirection in progress:\n");
//Citations: pages.cs.wisc.edu/~remzi/OSTEP/cpu-api.pdf pg 7
close(STDOUT_FILENO);
open(outputFile, O_CREAT|O_WRONLY|O_TRUNC, S_IRWXU);
}
//now exec normally
execvp(commands[0], commands);
} else{
int wc = wait(NULL);
if(verbose_flag)
printf("hello, I am parent of %d (wc: %d) (pid: %d)\n", rc, wc, (int) getpid());
}
}
int main(int argc, char* argv[]){
int should_run = 1;
char input[80];
char* commands[10];
//printf("%s", argv[1]); //verifying how to use argv[]
//To enable verbose mode or not
if(argc > 1 && strcmp(argv[1], "-v")==0)
verbose_flag = 0;
//if condition needs argc > 1, otherwise second condition results in
//segmentation fault
if(verbose_flag){
printf("Welcome to the Mini Shell!\n");
printf("This Shell is being run under Verbose Mode currently\n");
printf("To disable, please execute the program again with the flag '-v' \n");
}
while(should_run){
printf("minsh> ");
fgets(input, 80, stdin);
//call "exit" or "quit" to quit the minsh
if(strcmp(input, "exit\n")==0 || strcmp(input, "quit\n")==0)
exit(0);
parse(input, commands);
//printf("r-flag: %d\n", redirection_flag);
execution(commands);
//always assures that after redirection, flag turns off
redirection_flag = 0;
//printf("r-flag2: %d\n", redirection_flag);
/*int i = 0;
printf("\n");
for(; i < 7; i++){
printf("%s>\n", commands[i]);
}*/ //test to make sure proper parameter output
//execvp(commands[0], commands); //This works alone
//printf("%s", argv);
fflush(stdout);
/*
(0) Read user input, e.g. with fgets()
(1) fork a child process
(2) the child process will invoke execvp()
(3) the parent will invoke wait()
*/
if(verbose_flag)
printf("\nAwaiting further instructions!\n");
} //end while
return 0;
}
|
the_stack_data/56938.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define ANSWERS_SIZE 26
#define BUFFER_MAX 256
int main(int argc, char** argv)
{
FILE* fp = fopen("../data/6.txt", "r");
if (fp)
{
char buf[BUFFER_MAX];
char answers[ANSWERS_SIZE] = {0};
unsigned int count_total = 0;
unsigned int people_in_group = 0;
while (1)
{
fgets(buf, BUFFER_MAX, fp);
if (buf[0] == '\n' || feof(fp))
{
unsigned int count = 0;
for (int i = 0; i < ANSWERS_SIZE; i++)
{
if (answers[i] == people_in_group)
{
count++;
}
answers[i] = 0;
}
count_total += count;
people_in_group = 0;
}
else
{
people_in_group++;
char* c = buf;
while (*c != '\n')
{
int i = *c - 'a';
answers[i]++;
c++;
}
}
if (feof(fp))
{
break;
}
}
printf("Answers total: %d\n", count_total);
}
else
{
printf("file not found\n");
}
return 0;
} |
the_stack_data/350057.c | // SPDX-License-Identifier: BSD-3-Clause
//
// Copyright(c) 2016 Intel Corporation. All rights reserved.
//
// Author: Liam Girdwood <[email protected]>
// Artur Kloniecki <[email protected]>
#if CONFIG_COMP_MUX
#include <sof/audio/component.h>
#include <sof/audio/mux.h>
#include <sof/common.h>
#include <sof/drivers/ipc.h>
#include <sof/lib/alloc.h>
#include <sof/lib/memory.h>
#include <sof/lib/uuid.h>
#include <sof/list.h>
#include <sof/math/numbers.h>
#include <sof/platform.h>
#include <sof/string.h>
#include <sof/trace/preproc.h>
#include <sof/trace/trace.h>
#include <sof/ut.h>
#include <ipc/control.h>
#include <ipc/topology.h>
#include <user/trace.h>
#include <errno.h>
#include <stddef.h>
#include <stdint.h>
static const struct comp_driver comp_mux;
/* c607ff4d-9cb6-49dc-b678-7da3c63ea557 */
DECLARE_SOF_RT_UUID("mux", mux_uuid, 0xc607ff4d, 0x9cb6, 0x49dc,
0xb6, 0x78, 0x7d, 0xa3, 0xc6, 0x3e, 0xa5, 0x57);
DECLARE_TR_CTX(mux_tr, SOF_UUID(mux_uuid), LOG_LEVEL_INFO);
/* c4b26868-1430-470e-a089-15d1c77f851a */
DECLARE_SOF_RT_UUID("demux", demux_uuid, 0xc4b26868, 0x1430, 0x470e,
0xa0, 0x89, 0x15, 0xd1, 0xc7, 0x7f, 0x85, 0x1a);
DECLARE_TR_CTX(demux_tr, SOF_UUID(demux_uuid), LOG_LEVEL_INFO);
static int mux_set_values(struct comp_dev *dev, struct comp_data *cd,
struct sof_mux_config *cfg)
{
uint8_t i;
uint8_t j;
bool channel_set;
comp_info(dev, "mux_set_values()");
/* check if number of streams configured doesn't exceed maximum */
if (cfg->num_streams > MUX_MAX_STREAMS) {
comp_cl_err(&comp_mux, "mux_set_values(): configured number of streams (%u) exceeds maximum = "
META_QUOTE(MUX_MAX_STREAMS), cfg->num_streams);
return -EINVAL;
}
/* check if all streams configured have distinct IDs */
for (i = 0; i < cfg->num_streams; i++) {
for (j = i + 1; j < cfg->num_streams; j++) {
if (cfg->streams[i].pipeline_id ==
cfg->streams[j].pipeline_id) {
comp_cl_err(&comp_mux, "mux_set_values(): multiple configured streams have same pipeline ID = %u",
cfg->streams[i].pipeline_id);
return -EINVAL;
}
}
}
for (i = 0; i < cfg->num_streams; i++) {
for (j = 0 ; j < PLATFORM_MAX_CHANNELS; j++) {
if (popcount(cfg->streams[i].mask[j]) > 1) {
comp_cl_err(&comp_mux, "mux_set_values(): mux component is not able to mix channels");
return -EINVAL;
}
}
}
if (dev->comp.type == SOF_COMP_MUX) {
for (j = 0 ; j < PLATFORM_MAX_CHANNELS; j++) {
channel_set = false;
for (i = 0 ; i < cfg->num_streams; i++) {
if (popcount(cfg->streams[i].mask[j])) {
if (!channel_set) {
channel_set = true;
} else {
comp_cl_err(&comp_mux, "mux_set_values(): mux component is not able to mix channels");
return -EINVAL;
}
}
}
}
}
for (i = 0; i < cfg->num_streams; i++) {
cd->config.streams[i].pipeline_id = cfg->streams[i].pipeline_id;
for (j = 0; j < PLATFORM_MAX_CHANNELS; j++)
cd->config.streams[i].mask[j] = cfg->streams[i].mask[j];
}
cd->config.num_streams = cfg->num_streams;
if (dev->comp.type == SOF_COMP_MUX)
mux_prepare_look_up_table(dev);
else
demux_prepare_look_up_table(dev);
if (dev->state > COMP_STATE_INIT) {
if (dev->comp.type == SOF_COMP_MUX)
cd->mux = mux_get_processing_function(dev);
else
cd->demux = demux_get_processing_function(dev);
}
return 0;
}
static struct comp_dev *mux_new(const struct comp_driver *drv,
struct sof_ipc_comp *comp)
{
struct sof_ipc_comp_process *ipc_process =
(struct sof_ipc_comp_process *)comp;
size_t bs = ipc_process->size;
struct comp_dev *dev;
struct comp_data *cd;
int ret;
comp_cl_info(&comp_mux, "mux_new()");
dev = comp_alloc(drv, COMP_SIZE(struct sof_ipc_comp_process));
if (!dev)
return NULL;
dev->state = COMP_STATE_INIT;
memcpy_s(COMP_GET_IPC(dev, sof_ipc_comp_process),
sizeof(struct sof_ipc_comp_process),
comp, sizeof(struct sof_ipc_comp_process));
cd = rzalloc(SOF_MEM_ZONE_RUNTIME, 0, SOF_MEM_CAPS_RAM,
sizeof(*cd) + MUX_MAX_STREAMS * sizeof(struct mux_stream_data));
if (!cd) {
rfree(dev);
return NULL;
}
comp_set_drvdata(dev, cd);
memcpy_s(&cd->config, sizeof(struct sof_mux_config) +
MUX_MAX_STREAMS * sizeof(struct mux_stream_data),
ipc_process->data, bs);
/* verification of initial parameters */
ret = mux_set_values(dev, cd, &cd->config);
if (ret < 0) {
rfree(cd);
rfree(dev);
return NULL;
}
dev->state = COMP_STATE_READY;
return dev;
}
static void mux_free(struct comp_dev *dev)
{
struct comp_data *cd = comp_get_drvdata(dev);
comp_info(dev, "mux_free()");
rfree(cd);
rfree(dev);
}
static uint8_t get_stream_index(struct comp_data *cd, uint32_t pipe_id)
{
int i;
for (i = 0; i < MUX_MAX_STREAMS; i++)
if (cd->config.streams[i].pipeline_id == pipe_id)
return i;
comp_cl_err(&comp_mux, "get_stream_index(): couldn't find configuration for connected pipeline %u",
pipe_id);
return 0;
}
static struct mux_look_up *get_lookup_table(struct comp_data *cd,
uint32_t pipe_id)
{
int i;
for (i = 0; i < MUX_MAX_STREAMS; i++)
if (cd->config.streams[i].pipeline_id == pipe_id)
return &cd->lookup[i];
comp_cl_err(&comp_mux, "get_lookup_table(): couldn't find configuration for connected pipeline %u",
pipe_id);
return 0;
}
static int mux_verify_params(struct comp_dev *dev,
struct sof_ipc_stream_params *params)
{
int ret;
comp_dbg(dev, "mux_verify_params()");
ret = comp_verify_params(dev, BUFF_PARAMS_CHANNELS, params);
if (ret < 0) {
comp_err(dev, "mux_verify_params(): comp_verify_params() failed.");
return ret;
}
return 0;
}
/* set component audio stream parameters */
static int mux_params(struct comp_dev *dev,
struct sof_ipc_stream_params *params)
{
int err;
comp_info(dev, "mux_params()");
err = mux_verify_params(dev, params);
if (err < 0) {
comp_err(dev, "mux_fir_params(): pcm params verification failed.");
return -EINVAL;
}
return 0;
}
static int mux_ctrl_set_cmd(struct comp_dev *dev,
struct sof_ipc_ctrl_data *cdata)
{
struct comp_data *cd = comp_get_drvdata(dev);
struct sof_mux_config *cfg;
int ret = 0;
comp_info(dev, "mux_ctrl_set_cmd(), cdata->cmd = 0x%08x",
cdata->cmd);
switch (cdata->cmd) {
case SOF_CTRL_CMD_BINARY:
cfg = (struct sof_mux_config *)
ASSUME_ALIGNED(cdata->data->data, 4);
ret = mux_set_values(dev, cd, cfg);
break;
default:
comp_err(dev, "mux_ctrl_set_cmd(): invalid cdata->cmd = 0x%08x",
cdata->cmd);
ret = -EINVAL;
break;
}
return ret;
}
static int mux_ctrl_get_cmd(struct comp_dev *dev,
struct sof_ipc_ctrl_data *cdata, int size)
{
struct comp_data *cd = comp_get_drvdata(dev);
struct sof_mux_config *cfg = &cd->config;
uint32_t reply_size;
int ret = 0;
comp_cl_info(&comp_mux, "mux_ctrl_get_cmd(), cdata->cmd = 0x%08x",
cdata->cmd);
switch (cdata->cmd) {
case SOF_CTRL_CMD_BINARY:
/* calculate config size */
reply_size = sizeof(struct sof_mux_config) + cfg->num_streams *
sizeof(struct mux_stream_data);
/* copy back to user space */
assert(!memcpy_s(cdata->data->data, ((struct sof_abi_hdr *)
(cdata->data))->size, cfg, reply_size));
cdata->data->abi = SOF_ABI_VERSION;
cdata->data->size = reply_size;
break;
default:
comp_cl_err(&comp_mux, "mux_ctrl_set_cmd(): invalid cdata->cmd = 0x%08x",
cdata->cmd);
ret = -EINVAL;
break;
}
return ret;
}
/* used to pass standard and bespoke commands (with data) to component */
static int mux_cmd(struct comp_dev *dev, int cmd, void *data,
int max_data_size)
{
struct sof_ipc_ctrl_data *cdata = data;
comp_info(dev, "mux_cmd() cmd = 0x%08x", cmd);
switch (cmd) {
case COMP_CMD_SET_DATA:
return mux_ctrl_set_cmd(dev, cdata);
case COMP_CMD_GET_DATA:
return mux_ctrl_get_cmd(dev, cdata, max_data_size);
default:
return -EINVAL;
}
}
static void prepare_active_look_up(struct comp_dev *dev,
struct audio_stream *sink,
const struct audio_stream **sources)
{
struct comp_data *cd = comp_get_drvdata(dev);
const struct audio_stream *source;
uint8_t active_elem;
uint8_t elem;
cd->active_lookup.num_elems = 0;
active_elem = 0;
/* init pointers */
for (elem = 0; elem < cd->lookup[0].num_elems; elem++) {
source = sources[cd->lookup[0].copy_elem[elem].stream_id];
if (!source)
continue;
cd->active_lookup.copy_elem[active_elem] =
cd->lookup[0].copy_elem[elem];
active_elem++;
cd->active_lookup.num_elems = active_elem;
}
}
/* process and copy stream data from source to sink buffers */
static int demux_copy(struct comp_dev *dev)
{
struct comp_data *cd = comp_get_drvdata(dev);
struct comp_buffer *source;
struct comp_buffer *sink;
struct comp_buffer *sinks[MUX_MAX_STREAMS] = { NULL };
struct mux_look_up *look_ups[MUX_MAX_STREAMS] = { NULL };
struct mux_look_up *look_up;
struct list_item *clist;
uint32_t num_sinks = 0;
uint32_t i = 0;
uint32_t frames = -1;
uint32_t source_bytes;
uint32_t avail;
uint32_t sinks_bytes[MUX_MAX_STREAMS] = { 0 };
uint32_t flags = 0;
comp_dbg(dev, "demux_copy()");
if (!cd->demux) {
comp_err(dev, "demux_copy(): no demux processing function for component.");
comp_set_state(dev, COMP_TRIGGER_RESET);
return -EINVAL;
}
// align sink streams with their respective configurations
list_for_item(clist, &dev->bsink_list) {
sink = container_of(clist, struct comp_buffer, source_list);
buffer_lock(sink, &flags);
if (sink->sink->state == dev->state) {
num_sinks++;
i = get_stream_index(cd, sink->pipeline_id);
look_up = get_lookup_table(cd, sink->pipeline_id);
sinks[i] = sink;
look_ups[i] = look_up;
}
buffer_unlock(sink, flags);
}
/* if there are no sinks active */
if (num_sinks == 0)
return 0;
source = list_first_item(&dev->bsource_list, struct comp_buffer,
sink_list);
buffer_lock(source, &flags);
/* check if source is active */
if (source->source->state != dev->state) {
buffer_unlock(source, flags);
return 0;
}
for (i = 0; i < MUX_MAX_STREAMS; i++) {
if (!sinks[i])
continue;
buffer_lock(sinks[i], &flags);
avail = audio_stream_avail_frames(&source->stream,
&sinks[i]->stream);
frames = MIN(frames, avail);
buffer_unlock(sinks[i], flags);
}
buffer_unlock(source, flags);
source_bytes = frames * audio_stream_frame_bytes(&source->stream);
for (i = 0; i < MUX_MAX_STREAMS; i++) {
if (!sinks[i])
continue;
sinks_bytes[i] = frames *
audio_stream_frame_bytes(&sinks[i]->stream);
}
/* produce output, one sink at a time */
for (i = 0; i < MUX_MAX_STREAMS; i++) {
if (!sinks[i])
continue;
buffer_invalidate(source, source_bytes);
cd->demux(dev, &sinks[i]->stream, &source->stream, frames,
look_ups[i]);
buffer_writeback(sinks[i], sinks_bytes[i]);
}
/* update components */
for (i = 0; i < MUX_MAX_STREAMS; i++) {
if (!sinks[i])
continue;
comp_update_buffer_produce(sinks[i], sinks_bytes[i]);
}
comp_update_buffer_consume(source, source_bytes);
return 0;
}
/* process and copy stream data from source to sink buffers */
static int mux_copy(struct comp_dev *dev)
{
struct comp_data *cd = comp_get_drvdata(dev);
struct comp_buffer *sink;
struct comp_buffer *source;
struct comp_buffer *sources[MUX_MAX_STREAMS] = { NULL };
const struct audio_stream *sources_stream[MUX_MAX_STREAMS] = { NULL };
struct list_item *clist;
uint32_t num_sources = 0;
uint32_t i = 0;
uint32_t frames = -1;
uint32_t sources_bytes[MUX_MAX_STREAMS] = { 0 };
uint32_t sink_bytes;
uint32_t flags = 0;
comp_dbg(dev, "mux_copy()");
if (!cd->mux) {
comp_err(dev, "mux_copy(): no mux processing function for component.");
comp_set_state(dev, COMP_TRIGGER_RESET);
return -EINVAL;
}
/* align source streams with their respective configurations */
list_for_item(clist, &dev->bsource_list) {
source = container_of(clist, struct comp_buffer, sink_list);
buffer_lock(source, &flags);
if (source->source->state == dev->state) {
num_sources++;
i = get_stream_index(cd, source->pipeline_id);
sources[i] = source;
sources_stream[i] = &source->stream;
} else {
buffer_unlock(source, flags);
}
}
/* check if there are any sources active */
if (num_sources == 0)
return 0;
sink = list_first_item(&dev->bsink_list, struct comp_buffer,
source_list);
buffer_lock(sink, &flags);
/* check if sink is active */
if (sink->sink->state != dev->state) {
for (i = 0; i < MUX_MAX_STREAMS; i++) {
if (!sources[i])
continue;
buffer_unlock(sources[i], flags);
}
buffer_unlock(sink, flags);
return 0;
}
for (i = 0; i < MUX_MAX_STREAMS; i++) {
if (!sources[i])
continue;
frames = MIN(frames,
audio_stream_avail_frames(sources_stream[i],
&sink->stream));
buffer_unlock(sources[i], flags);
}
buffer_unlock(sink, flags);
for (i = 0; i < MUX_MAX_STREAMS; i++) {
if (!sources[i])
continue;
sources_bytes[i] = frames *
audio_stream_frame_bytes(sources_stream[i]);
buffer_invalidate(sources[i], sources_bytes[i]);
}
sink_bytes = frames * audio_stream_frame_bytes(&sink->stream);
prepare_active_look_up(dev, &sink->stream, &sources_stream[0]);
/* produce output */
cd->mux(dev, &sink->stream, &sources_stream[0], frames,
&cd->active_lookup);
buffer_writeback(sink, sink_bytes);
/* update components */
comp_update_buffer_produce(sink, sink_bytes);
for (i = 0; i < MUX_MAX_STREAMS; i++) {
if (!sources[i])
continue;
comp_update_buffer_consume(sources[i], sources_bytes[i]);
}
return 0;
}
static int mux_reset(struct comp_dev *dev)
{
comp_info(dev, "mux_reset()");
return comp_set_state(dev, COMP_TRIGGER_RESET);
}
static int mux_prepare(struct comp_dev *dev)
{
struct comp_data *cd = comp_get_drvdata(dev);
int ret;
comp_info(dev, "mux_prepare()");
if (dev->comp.type == SOF_COMP_MUX)
cd->mux = mux_get_processing_function(dev);
else
cd->demux = demux_get_processing_function(dev);
if (!cd->mux && !cd->demux) {
comp_err(dev, "mux_prepare(): Invalid configuration, couldn't find suitable processing function.");
return -EINVAL;
}
ret = comp_set_state(dev, COMP_TRIGGER_PREPARE);
if (ret) {
comp_info(dev, "mux_prepare() comp_set_state() returned non-zero.");
return ret;
}
return 0;
}
static int mux_trigger(struct comp_dev *dev, int cmd)
{
int ret = 0;
comp_info(dev, "mux_trigger(), command = %u", cmd);
ret = comp_set_state(dev, cmd);
if (ret == COMP_STATUS_STATE_ALREADY_SET)
ret = PPL_STATUS_PATH_STOP;
return ret;
}
static const struct comp_driver comp_mux = {
.type = SOF_COMP_MUX,
.uid = SOF_RT_UUID(mux_uuid),
.tctx = &mux_tr,
.ops = {
.create = mux_new,
.free = mux_free,
.params = mux_params,
.cmd = mux_cmd,
.copy = mux_copy,
.prepare = mux_prepare,
.reset = mux_reset,
.trigger = mux_trigger,
},
};
static SHARED_DATA struct comp_driver_info comp_mux_info = {
.drv = &comp_mux,
};
static const struct comp_driver comp_demux = {
.type = SOF_COMP_DEMUX,
.uid = SOF_RT_UUID(demux_uuid),
.tctx = &demux_tr,
.ops = {
.create = mux_new,
.free = mux_free,
.params = mux_params,
.cmd = mux_cmd,
.copy = demux_copy,
.prepare = mux_prepare,
.reset = mux_reset,
.trigger = mux_trigger,
},
};
static SHARED_DATA struct comp_driver_info comp_demux_info = {
.drv = &comp_demux,
};
UT_STATIC void sys_comp_mux_init(void)
{
comp_register(platform_shared_get(&comp_mux_info,
sizeof(comp_mux_info)));
comp_register(platform_shared_get(&comp_demux_info,
sizeof(comp_demux_info)));
}
DECLARE_MODULE(sys_comp_mux_init);
#endif /* CONFIG_COMP_MUX */
|
the_stack_data/103264261.c | #ifndef _NO_DIRNAME
/* Copyright 2005 Shaun Jackman
* Permission to use, copy, modify, and distribute this software
* is freely granted, provided that this notice is preserved.
*/
#include <libgen.h>
#include <string.h>
char *
dirname (char *path)
{
char *p;
if( path == NULL || *path == '\0' )
return ".";
p = path + strlen(path) - 1;
while( *p == '/' ) {
if( p == path )
return path;
*p-- = '\0';
}
while( p >= path && *p != '/' )
p--;
return
p < path ? "." :
p == path ? "/" :
(*p = '\0', path);
}
#endif /* !_NO_DIRNAME */
|
the_stack_data/110205.c | #include <math.h>
#include <stdint.h>
#include <string.h>
enum state {
STATE_m,
STATE_h,
STATE_j,
STATE_x_kr,
STATE_x_ks,
STATE_x_to_s,
STATE_y_to_s,
STATE_x_to_f,
STATE_y_to_f,
STATE_d,
STATE_f,
STATE_f_Ca_Bj,
STATE_f_Ca_Bsl,
STATE_Ry_Rr,
STATE_Ry_Ro,
STATE_Ry_Ri,
STATE_Na_Bj,
STATE_Na_Bsl,
STATE_Tn_CL,
STATE_Tn_CHc,
STATE_Tn_CHm,
STATE_CaM,
STATE_Myo_c,
STATE_Myo_m,
STATE_SRB,
STATE_SLL_j,
STATE_SLL_sl,
STATE_SLH_j,
STATE_SLH_sl,
STATE_Csqn_b,
STATE_Ca_sr,
STATE_Na_j,
STATE_Na_sl,
STATE_Na_i,
STATE_K_i,
STATE_Ca_j,
STATE_Ca_sl,
STATE_Ca_i,
STATE_V_m,
NUM_STATES,
};
enum parameter {
PARAM_Fjunc,
PARAM_Fjunc_CaL,
PARAM_cellLength,
PARAM_cellRadius,
PARAM_distJuncSL,
PARAM_distSLcyto,
PARAM_junctionLength,
PARAM_junctionRadius,
PARAM_GNa,
PARAM_GNaB,
PARAM_IbarNaK,
PARAM_KmKo,
PARAM_KmNaip,
PARAM_Q10KmNai,
PARAM_Q10NaK,
PARAM_GKr,
PARAM_GKp,
PARAM_GKs,
PARAM_pNaK,
PARAM_GK1,
PARAM_Gto,
PARAM_epi,
PARAM_GClB,
PARAM_GClCa,
PARAM_KdClCa,
PARAM_GCaL,
PARAM_Q10CaL,
PARAM_pCa,
PARAM_pK,
PARAM_pNa,
PARAM_IbarNCX,
PARAM_Kdact,
PARAM_KmCai,
PARAM_KmCao,
PARAM_KmNai,
PARAM_KmNao,
PARAM_Q10NCX,
PARAM_ksat,
PARAM_nu,
PARAM_IbarSLCaP,
PARAM_KmPCa,
PARAM_Q10SLCaP,
PARAM_GCaB,
PARAM_Kmf,
PARAM_Kmr,
PARAM_MaxSR,
PARAM_MinSR,
PARAM_Q10SRCaP,
PARAM_Vmax_SRCaP,
PARAM_ec50SR,
PARAM_hillSRCaP,
PARAM_kiCa,
PARAM_kim,
PARAM_koCa,
PARAM_kom,
PARAM_ks,
PARAM_Bmax_Naj,
PARAM_Bmax_Nasl,
PARAM_koff_na,
PARAM_kon_na,
PARAM_Bmax_CaM,
PARAM_Bmax_SR,
PARAM_Bmax_TnChigh,
PARAM_Bmax_TnClow,
PARAM_Bmax_myosin,
PARAM_koff_cam,
PARAM_koff_myoca,
PARAM_koff_myomg,
PARAM_koff_sr,
PARAM_koff_tnchca,
PARAM_koff_tnchmg,
PARAM_koff_tncl,
PARAM_kon_cam,
PARAM_kon_myoca,
PARAM_kon_myomg,
PARAM_kon_sr,
PARAM_kon_tnchca,
PARAM_kon_tnchmg,
PARAM_kon_tncl,
PARAM_Bmax_SLhighj0,
PARAM_Bmax_SLhighsl0,
PARAM_Bmax_SLlowj0,
PARAM_Bmax_SLlowsl0,
PARAM_koff_slh,
PARAM_koff_sll,
PARAM_kon_slh,
PARAM_kon_sll,
PARAM_Bmax_Csqn0,
PARAM_DcaJuncSL,
PARAM_DcaSLcyto,
PARAM_J_ca_juncsl,
PARAM_J_ca_slmyo,
PARAM_koff_csqn,
PARAM_kon_csqn,
PARAM_DnaJuncSL,
PARAM_DnaSLcyto,
PARAM_J_na_juncsl,
PARAM_J_na_slmyo,
PARAM_Nao,
PARAM_Ko,
PARAM_Cao,
PARAM_Cli,
PARAM_Clo,
PARAM_Mgi,
PARAM_Cmem,
PARAM_Frdy,
PARAM_R,
PARAM_Temp,
PARAM_stim_amplitude,
PARAM_stim_duration,
PARAM_stim_period,
PARAM_stim_start,
NUM_PARAMS,
};
// State index
int state_index(const char name[])
{
if (strcmp(name, "m") == 0) {
return STATE_m;
} else if (strcmp(name, "h") == 0) {
return STATE_h;
} else if (strcmp(name, "j") == 0) {
return STATE_j;
} else if (strcmp(name, "x_kr") == 0) {
return STATE_x_kr;
} else if (strcmp(name, "x_ks") == 0) {
return STATE_x_ks;
} else if (strcmp(name, "x_to_s") == 0) {
return STATE_x_to_s;
} else if (strcmp(name, "y_to_s") == 0) {
return STATE_y_to_s;
} else if (strcmp(name, "x_to_f") == 0) {
return STATE_x_to_f;
} else if (strcmp(name, "y_to_f") == 0) {
return STATE_y_to_f;
} else if (strcmp(name, "d") == 0) {
return STATE_d;
} else if (strcmp(name, "f") == 0) {
return STATE_f;
} else if (strcmp(name, "f_Ca_Bj") == 0) {
return STATE_f_Ca_Bj;
} else if (strcmp(name, "f_Ca_Bsl") == 0) {
return STATE_f_Ca_Bsl;
} else if (strcmp(name, "Ry_Rr") == 0) {
return STATE_Ry_Rr;
} else if (strcmp(name, "Ry_Ro") == 0) {
return STATE_Ry_Ro;
} else if (strcmp(name, "Ry_Ri") == 0) {
return STATE_Ry_Ri;
} else if (strcmp(name, "Na_Bj") == 0) {
return STATE_Na_Bj;
} else if (strcmp(name, "Na_Bsl") == 0) {
return STATE_Na_Bsl;
} else if (strcmp(name, "Tn_CL") == 0) {
return STATE_Tn_CL;
} else if (strcmp(name, "Tn_CHc") == 0) {
return STATE_Tn_CHc;
} else if (strcmp(name, "Tn_CHm") == 0) {
return STATE_Tn_CHm;
} else if (strcmp(name, "CaM") == 0) {
return STATE_CaM;
} else if (strcmp(name, "Myo_c") == 0) {
return STATE_Myo_c;
} else if (strcmp(name, "Myo_m") == 0) {
return STATE_Myo_m;
} else if (strcmp(name, "SRB") == 0) {
return STATE_SRB;
} else if (strcmp(name, "SLL_j") == 0) {
return STATE_SLL_j;
} else if (strcmp(name, "SLL_sl") == 0) {
return STATE_SLL_sl;
} else if (strcmp(name, "SLH_j") == 0) {
return STATE_SLH_j;
} else if (strcmp(name, "SLH_sl") == 0) {
return STATE_SLH_sl;
} else if (strcmp(name, "Csqn_b") == 0) {
return STATE_Csqn_b;
} else if (strcmp(name, "Ca_sr") == 0) {
return STATE_Ca_sr;
} else if (strcmp(name, "Na_j") == 0) {
return STATE_Na_j;
} else if (strcmp(name, "Na_sl") == 0) {
return STATE_Na_sl;
} else if (strcmp(name, "Na_i") == 0) {
return STATE_Na_i;
} else if (strcmp(name, "K_i") == 0) {
return STATE_K_i;
} else if (strcmp(name, "Ca_j") == 0) {
return STATE_Ca_j;
} else if (strcmp(name, "Ca_sl") == 0) {
return STATE_Ca_sl;
} else if (strcmp(name, "Ca_i") == 0) {
return STATE_Ca_i;
} else if (strcmp(name, "V_m") == 0) {
return STATE_V_m;
}
return -1;
}
// Parameter index
int parameter_index(const char name[])
{
if (strcmp(name, "Fjunc") == 0) {
return PARAM_Fjunc;
} else if (strcmp(name, "Fjunc_CaL") == 0) {
return PARAM_Fjunc_CaL;
} else if (strcmp(name, "cellLength") == 0) {
return PARAM_cellLength;
} else if (strcmp(name, "cellRadius") == 0) {
return PARAM_cellRadius;
} else if (strcmp(name, "distJuncSL") == 0) {
return PARAM_distJuncSL;
} else if (strcmp(name, "distSLcyto") == 0) {
return PARAM_distSLcyto;
} else if (strcmp(name, "junctionLength") == 0) {
return PARAM_junctionLength;
} else if (strcmp(name, "junctionRadius") == 0) {
return PARAM_junctionRadius;
} else if (strcmp(name, "GNa") == 0) {
return PARAM_GNa;
} else if (strcmp(name, "GNaB") == 0) {
return PARAM_GNaB;
} else if (strcmp(name, "IbarNaK") == 0) {
return PARAM_IbarNaK;
} else if (strcmp(name, "KmKo") == 0) {
return PARAM_KmKo;
} else if (strcmp(name, "KmNaip") == 0) {
return PARAM_KmNaip;
} else if (strcmp(name, "Q10KmNai") == 0) {
return PARAM_Q10KmNai;
} else if (strcmp(name, "Q10NaK") == 0) {
return PARAM_Q10NaK;
} else if (strcmp(name, "GKr") == 0) {
return PARAM_GKr;
} else if (strcmp(name, "GKp") == 0) {
return PARAM_GKp;
} else if (strcmp(name, "GKs") == 0) {
return PARAM_GKs;
} else if (strcmp(name, "pNaK") == 0) {
return PARAM_pNaK;
} else if (strcmp(name, "GK1") == 0) {
return PARAM_GK1;
} else if (strcmp(name, "Gto") == 0) {
return PARAM_Gto;
} else if (strcmp(name, "epi") == 0) {
return PARAM_epi;
} else if (strcmp(name, "GClB") == 0) {
return PARAM_GClB;
} else if (strcmp(name, "GClCa") == 0) {
return PARAM_GClCa;
} else if (strcmp(name, "KdClCa") == 0) {
return PARAM_KdClCa;
} else if (strcmp(name, "GCaL") == 0) {
return PARAM_GCaL;
} else if (strcmp(name, "Q10CaL") == 0) {
return PARAM_Q10CaL;
} else if (strcmp(name, "pCa") == 0) {
return PARAM_pCa;
} else if (strcmp(name, "pK") == 0) {
return PARAM_pK;
} else if (strcmp(name, "pNa") == 0) {
return PARAM_pNa;
} else if (strcmp(name, "IbarNCX") == 0) {
return PARAM_IbarNCX;
} else if (strcmp(name, "Kdact") == 0) {
return PARAM_Kdact;
} else if (strcmp(name, "KmCai") == 0) {
return PARAM_KmCai;
} else if (strcmp(name, "KmCao") == 0) {
return PARAM_KmCao;
} else if (strcmp(name, "KmNai") == 0) {
return PARAM_KmNai;
} else if (strcmp(name, "KmNao") == 0) {
return PARAM_KmNao;
} else if (strcmp(name, "Q10NCX") == 0) {
return PARAM_Q10NCX;
} else if (strcmp(name, "ksat") == 0) {
return PARAM_ksat;
} else if (strcmp(name, "nu") == 0) {
return PARAM_nu;
} else if (strcmp(name, "IbarSLCaP") == 0) {
return PARAM_IbarSLCaP;
} else if (strcmp(name, "KmPCa") == 0) {
return PARAM_KmPCa;
} else if (strcmp(name, "Q10SLCaP") == 0) {
return PARAM_Q10SLCaP;
} else if (strcmp(name, "GCaB") == 0) {
return PARAM_GCaB;
} else if (strcmp(name, "Kmf") == 0) {
return PARAM_Kmf;
} else if (strcmp(name, "Kmr") == 0) {
return PARAM_Kmr;
} else if (strcmp(name, "MaxSR") == 0) {
return PARAM_MaxSR;
} else if (strcmp(name, "MinSR") == 0) {
return PARAM_MinSR;
} else if (strcmp(name, "Q10SRCaP") == 0) {
return PARAM_Q10SRCaP;
} else if (strcmp(name, "Vmax_SRCaP") == 0) {
return PARAM_Vmax_SRCaP;
} else if (strcmp(name, "ec50SR") == 0) {
return PARAM_ec50SR;
} else if (strcmp(name, "hillSRCaP") == 0) {
return PARAM_hillSRCaP;
} else if (strcmp(name, "kiCa") == 0) {
return PARAM_kiCa;
} else if (strcmp(name, "kim") == 0) {
return PARAM_kim;
} else if (strcmp(name, "koCa") == 0) {
return PARAM_koCa;
} else if (strcmp(name, "kom") == 0) {
return PARAM_kom;
} else if (strcmp(name, "ks") == 0) {
return PARAM_ks;
} else if (strcmp(name, "Bmax_Naj") == 0) {
return PARAM_Bmax_Naj;
} else if (strcmp(name, "Bmax_Nasl") == 0) {
return PARAM_Bmax_Nasl;
} else if (strcmp(name, "koff_na") == 0) {
return PARAM_koff_na;
} else if (strcmp(name, "kon_na") == 0) {
return PARAM_kon_na;
} else if (strcmp(name, "Bmax_CaM") == 0) {
return PARAM_Bmax_CaM;
} else if (strcmp(name, "Bmax_SR") == 0) {
return PARAM_Bmax_SR;
} else if (strcmp(name, "Bmax_TnChigh") == 0) {
return PARAM_Bmax_TnChigh;
} else if (strcmp(name, "Bmax_TnClow") == 0) {
return PARAM_Bmax_TnClow;
} else if (strcmp(name, "Bmax_myosin") == 0) {
return PARAM_Bmax_myosin;
} else if (strcmp(name, "koff_cam") == 0) {
return PARAM_koff_cam;
} else if (strcmp(name, "koff_myoca") == 0) {
return PARAM_koff_myoca;
} else if (strcmp(name, "koff_myomg") == 0) {
return PARAM_koff_myomg;
} else if (strcmp(name, "koff_sr") == 0) {
return PARAM_koff_sr;
} else if (strcmp(name, "koff_tnchca") == 0) {
return PARAM_koff_tnchca;
} else if (strcmp(name, "koff_tnchmg") == 0) {
return PARAM_koff_tnchmg;
} else if (strcmp(name, "koff_tncl") == 0) {
return PARAM_koff_tncl;
} else if (strcmp(name, "kon_cam") == 0) {
return PARAM_kon_cam;
} else if (strcmp(name, "kon_myoca") == 0) {
return PARAM_kon_myoca;
} else if (strcmp(name, "kon_myomg") == 0) {
return PARAM_kon_myomg;
} else if (strcmp(name, "kon_sr") == 0) {
return PARAM_kon_sr;
} else if (strcmp(name, "kon_tnchca") == 0) {
return PARAM_kon_tnchca;
} else if (strcmp(name, "kon_tnchmg") == 0) {
return PARAM_kon_tnchmg;
} else if (strcmp(name, "kon_tncl") == 0) {
return PARAM_kon_tncl;
} else if (strcmp(name, "Bmax_SLhighj0") == 0) {
return PARAM_Bmax_SLhighj0;
} else if (strcmp(name, "Bmax_SLhighsl0") == 0) {
return PARAM_Bmax_SLhighsl0;
} else if (strcmp(name, "Bmax_SLlowj0") == 0) {
return PARAM_Bmax_SLlowj0;
} else if (strcmp(name, "Bmax_SLlowsl0") == 0) {
return PARAM_Bmax_SLlowsl0;
} else if (strcmp(name, "koff_slh") == 0) {
return PARAM_koff_slh;
} else if (strcmp(name, "koff_sll") == 0) {
return PARAM_koff_sll;
} else if (strcmp(name, "kon_slh") == 0) {
return PARAM_kon_slh;
} else if (strcmp(name, "kon_sll") == 0) {
return PARAM_kon_sll;
} else if (strcmp(name, "Bmax_Csqn0") == 0) {
return PARAM_Bmax_Csqn0;
} else if (strcmp(name, "DcaJuncSL") == 0) {
return PARAM_DcaJuncSL;
} else if (strcmp(name, "DcaSLcyto") == 0) {
return PARAM_DcaSLcyto;
} else if (strcmp(name, "J_ca_juncsl") == 0) {
return PARAM_J_ca_juncsl;
} else if (strcmp(name, "J_ca_slmyo") == 0) {
return PARAM_J_ca_slmyo;
} else if (strcmp(name, "koff_csqn") == 0) {
return PARAM_koff_csqn;
} else if (strcmp(name, "kon_csqn") == 0) {
return PARAM_kon_csqn;
} else if (strcmp(name, "DnaJuncSL") == 0) {
return PARAM_DnaJuncSL;
} else if (strcmp(name, "DnaSLcyto") == 0) {
return PARAM_DnaSLcyto;
} else if (strcmp(name, "J_na_juncsl") == 0) {
return PARAM_J_na_juncsl;
} else if (strcmp(name, "J_na_slmyo") == 0) {
return PARAM_J_na_slmyo;
} else if (strcmp(name, "Nao") == 0) {
return PARAM_Nao;
} else if (strcmp(name, "Ko") == 0) {
return PARAM_Ko;
} else if (strcmp(name, "Cao") == 0) {
return PARAM_Cao;
} else if (strcmp(name, "Cli") == 0) {
return PARAM_Cli;
} else if (strcmp(name, "Clo") == 0) {
return PARAM_Clo;
} else if (strcmp(name, "Mgi") == 0) {
return PARAM_Mgi;
} else if (strcmp(name, "Cmem") == 0) {
return PARAM_Cmem;
} else if (strcmp(name, "Frdy") == 0) {
return PARAM_Frdy;
} else if (strcmp(name, "R") == 0) {
return PARAM_R;
} else if (strcmp(name, "Temp") == 0) {
return PARAM_Temp;
} else if (strcmp(name, "stim_amplitude") == 0) {
return PARAM_stim_amplitude;
} else if (strcmp(name, "stim_duration") == 0) {
return PARAM_stim_duration;
} else if (strcmp(name, "stim_period") == 0) {
return PARAM_stim_period;
} else if (strcmp(name, "stim_start") == 0) {
return PARAM_stim_start;
}
return -1;
}
// Init state values
void init_state_values(double* states, uint64_t n_nodes)
{
#pragma omp parallel for
for (uint64_t i = 0; i < n_nodes; i++) {
states[n_nodes * STATE_m + i] = 0.003793087414436;
states[n_nodes * STATE_h + i] = 0.626221949492493;
states[n_nodes * STATE_j + i] = 0.624553572490432;
states[n_nodes * STATE_x_kr + i] = 0.0210022533039071;
states[n_nodes * STATE_x_ks + i] = 0.00428016666258923;
states[n_nodes * STATE_x_to_s + i] = 0.000440445885642567;
states[n_nodes * STATE_y_to_s + i] = 0.785115828275182;
states[n_nodes * STATE_x_to_f + i] = 0.000440438103758954;
states[n_nodes * STATE_y_to_f + i] = 0.999995844038706;
states[n_nodes * STATE_d + i] = 2.92407183949469e-06;
states[n_nodes * STATE_f + i] = 0.995135796703515;
states[n_nodes * STATE_f_Ca_Bj + i] = 0.0246760872105795;
states[n_nodes * STATE_f_Ca_Bsl + i] = 0.0152723084239416;
states[n_nodes * STATE_Ry_Rr + i] = 0.890806040818203;
states[n_nodes * STATE_Ry_Ro + i] = 7.40481128853622e-07;
states[n_nodes * STATE_Ry_Ri + i] = 9.07666168960848e-08;
states[n_nodes * STATE_Na_Bj + i] = 3.4543773303328;
states[n_nodes * STATE_Na_Bsl + i] = 0.753740951477775;
states[n_nodes * STATE_Tn_CL + i] = 0.00893455096919132;
states[n_nodes * STATE_Tn_CHc + i] = 0.117412025936615;
states[n_nodes * STATE_Tn_CHm + i] = 0.0106160166692932;
states[n_nodes * STATE_CaM + i] = 0.000295573424135051;
states[n_nodes * STATE_Myo_c + i] = 0.00192322252438022;
states[n_nodes * STATE_Myo_m + i] = 0.137560495022823;
states[n_nodes * STATE_SRB + i] = 0.00217360235649355;
states[n_nodes * STATE_SLL_j + i] = 0.00740524521680039;
states[n_nodes * STATE_SLL_sl + i] = 0.00990339304377132;
states[n_nodes * STATE_SLH_j + i] = 0.0735890020284214;
states[n_nodes * STATE_SLH_sl + i] = 0.114583623436917;
states[n_nodes * STATE_Csqn_b + i] = 1.19723145924432;
states[n_nodes * STATE_Ca_sr + i] = 0.554760499828172;
states[n_nodes * STATE_Na_j + i] = 8.40537012592918;
states[n_nodes * STATE_Na_sl + i] = 8.40491910001025;
states[n_nodes * STATE_Na_i + i] = 8.40513364344858;
states[n_nodes * STATE_K_i + i] = 120.0;
states[n_nodes * STATE_Ca_j + i] = 0.000175882395147342;
states[n_nodes * STATE_Ca_sl + i] = 0.000106779509977354;
states[n_nodes * STATE_Ca_i + i] = 8.72509677797499e-05;
states[n_nodes * STATE_V_m + i] = -81.4552030512661;
}
}
void init_state_values_2d_from_array(double* states, double *values, uint64_t n_nodes)
{
#pragma omp parallel for
for (uint64_t i = 0; i < n_nodes; i++) {
states[n_nodes * STATE_m + i] = values[STATE_m];
states[n_nodes * STATE_h + i] = values[STATE_h];
states[n_nodes * STATE_j + i] = values[STATE_j];
states[n_nodes * STATE_x_kr + i] = values[STATE_x_kr];
states[n_nodes * STATE_x_ks + i] = values[STATE_x_ks];
states[n_nodes * STATE_x_to_s + i] = values[STATE_x_to_s];
states[n_nodes * STATE_y_to_s + i] = values[STATE_y_to_s];
states[n_nodes * STATE_x_to_f + i] = values[STATE_x_to_f];
states[n_nodes * STATE_y_to_f + i] = values[STATE_y_to_f];
states[n_nodes * STATE_d + i] = values[STATE_d];
states[n_nodes * STATE_f + i] = values[STATE_f];
states[n_nodes * STATE_f_Ca_Bj + i] = values[STATE_f_Ca_Bj];
states[n_nodes * STATE_f_Ca_Bsl + i] = values[STATE_f_Ca_Bsl];
states[n_nodes * STATE_Ry_Rr + i] = values[STATE_Ry_Rr];
states[n_nodes * STATE_Ry_Ro + i] = values[STATE_Ry_Ro];
states[n_nodes * STATE_Ry_Ri + i] = values[STATE_Ry_Ri];
states[n_nodes * STATE_Na_Bj + i] = values[STATE_Na_Bj];
states[n_nodes * STATE_Na_Bsl + i] = values[STATE_Na_Bsl];
states[n_nodes * STATE_Tn_CL + i] = values[STATE_Tn_CL];
states[n_nodes * STATE_Tn_CHc + i] = values[STATE_Tn_CHc];
states[n_nodes * STATE_Tn_CHm + i] = values[STATE_Tn_CHm];
states[n_nodes * STATE_CaM + i] = values[STATE_CaM];
states[n_nodes * STATE_Myo_c + i] = values[STATE_Myo_c];
states[n_nodes * STATE_Myo_m + i] = values[STATE_Myo_m];
states[n_nodes * STATE_SRB + i] = values[STATE_SRB];
states[n_nodes * STATE_SLL_j + i] = values[STATE_SLL_j];
states[n_nodes * STATE_SLL_sl + i] = values[STATE_SLL_sl];
states[n_nodes * STATE_SLH_j + i] = values[STATE_SLH_j];
states[n_nodes * STATE_SLH_sl + i] = values[STATE_SLH_sl];
states[n_nodes * STATE_Csqn_b + i] = values[STATE_Csqn_b];
states[n_nodes * STATE_Ca_sr + i] = values[STATE_Ca_sr];
states[n_nodes * STATE_Na_j + i] = values[STATE_Na_j];
states[n_nodes * STATE_Na_sl + i] = values[STATE_Na_sl];
states[n_nodes * STATE_Na_i + i] = values[STATE_Na_i];
states[n_nodes * STATE_K_i + i] = values[STATE_K_i];
states[n_nodes * STATE_Ca_j + i] = values[STATE_Ca_j];
states[n_nodes * STATE_Ca_sl + i] = values[STATE_Ca_sl];
states[n_nodes * STATE_Ca_i + i] = values[STATE_Ca_i];
states[n_nodes * STATE_V_m + i] = values[STATE_V_m];
}
}
// Default parameter values
void init_parameter_values(double* parameters, uint64_t n_nodes)
{
#pragma omp parallel for
for (uint64_t i = 0; i < n_nodes; i++) {
parameters[n_nodes * PARAM_Fjunc + i] = 0.11;
parameters[n_nodes * PARAM_Fjunc_CaL + i] = 0.9;
parameters[n_nodes * PARAM_cellLength + i] = 100.0;
parameters[n_nodes * PARAM_cellRadius + i] = 10.25;
parameters[n_nodes * PARAM_distJuncSL + i] = 0.5;
parameters[n_nodes * PARAM_distSLcyto + i] = 0.45;
parameters[n_nodes * PARAM_junctionLength + i] = 0.16;
parameters[n_nodes * PARAM_junctionRadius + i] = 0.015;
parameters[n_nodes * PARAM_GNa + i] = 23.0;
parameters[n_nodes * PARAM_GNaB + i] = 0.000597;
parameters[n_nodes * PARAM_IbarNaK + i] = 1.8;
parameters[n_nodes * PARAM_KmKo + i] = 1.5;
parameters[n_nodes * PARAM_KmNaip + i] = 11.0;
parameters[n_nodes * PARAM_Q10KmNai + i] = 1.39;
parameters[n_nodes * PARAM_Q10NaK + i] = 1.63;
parameters[n_nodes * PARAM_GKr + i] = 0.035;
parameters[n_nodes * PARAM_GKp + i] = 0.002;
parameters[n_nodes * PARAM_GKs + i] = 0.0035;
parameters[n_nodes * PARAM_pNaK + i] = 0.01833;
parameters[n_nodes * PARAM_GK1 + i] = 0.35;
parameters[n_nodes * PARAM_Gto + i] = 0.13;
parameters[n_nodes * PARAM_epi + i] = 1.0;
parameters[n_nodes * PARAM_GClB + i] = 0.009;
parameters[n_nodes * PARAM_GClCa + i] = 0.0548125;
parameters[n_nodes * PARAM_KdClCa + i] = 0.1;
parameters[n_nodes * PARAM_GCaL + i] = 0.5;
parameters[n_nodes * PARAM_Q10CaL + i] = 1.8;
parameters[n_nodes * PARAM_pCa + i] = 0.00054;
parameters[n_nodes * PARAM_pK + i] = 2.7e-07;
parameters[n_nodes * PARAM_pNa + i] = 1.5e-08;
parameters[n_nodes * PARAM_IbarNCX + i] = 4.5;
parameters[n_nodes * PARAM_Kdact + i] = 0.00015;
parameters[n_nodes * PARAM_KmCai + i] = 0.00359;
parameters[n_nodes * PARAM_KmCao + i] = 1.3;
parameters[n_nodes * PARAM_KmNai + i] = 12.29;
parameters[n_nodes * PARAM_KmNao + i] = 87.5;
parameters[n_nodes * PARAM_Q10NCX + i] = 1.57;
parameters[n_nodes * PARAM_ksat + i] = 0.32;
parameters[n_nodes * PARAM_nu + i] = 0.27;
parameters[n_nodes * PARAM_IbarSLCaP + i] = 0.0673;
parameters[n_nodes * PARAM_KmPCa + i] = 0.0005;
parameters[n_nodes * PARAM_Q10SLCaP + i] = 2.35;
parameters[n_nodes * PARAM_GCaB + i] = 0.0005513;
parameters[n_nodes * PARAM_Kmf + i] = 0.000246;
parameters[n_nodes * PARAM_Kmr + i] = 1.7;
parameters[n_nodes * PARAM_MaxSR + i] = 15.0;
parameters[n_nodes * PARAM_MinSR + i] = 1.0;
parameters[n_nodes * PARAM_Q10SRCaP + i] = 2.6;
parameters[n_nodes * PARAM_Vmax_SRCaP + i] = 0.0053114;
parameters[n_nodes * PARAM_ec50SR + i] = 0.45;
parameters[n_nodes * PARAM_hillSRCaP + i] = 1.787;
parameters[n_nodes * PARAM_kiCa + i] = 0.5;
parameters[n_nodes * PARAM_kim + i] = 0.005;
parameters[n_nodes * PARAM_koCa + i] = 10.0;
parameters[n_nodes * PARAM_kom + i] = 0.06;
parameters[n_nodes * PARAM_ks + i] = 25.0;
parameters[n_nodes * PARAM_Bmax_Naj + i] = 7.561;
parameters[n_nodes * PARAM_Bmax_Nasl + i] = 1.65;
parameters[n_nodes * PARAM_koff_na + i] = 0.001;
parameters[n_nodes * PARAM_kon_na + i] = 0.0001;
parameters[n_nodes * PARAM_Bmax_CaM + i] = 0.024;
parameters[n_nodes * PARAM_Bmax_SR + i] = 0.0171;
parameters[n_nodes * PARAM_Bmax_TnChigh + i] = 0.14;
parameters[n_nodes * PARAM_Bmax_TnClow + i] = 0.07;
parameters[n_nodes * PARAM_Bmax_myosin + i] = 0.14;
parameters[n_nodes * PARAM_koff_cam + i] = 0.238;
parameters[n_nodes * PARAM_koff_myoca + i] = 0.00046;
parameters[n_nodes * PARAM_koff_myomg + i] = 5.7e-05;
parameters[n_nodes * PARAM_koff_sr + i] = 0.06;
parameters[n_nodes * PARAM_koff_tnchca + i] = 3.2e-05;
parameters[n_nodes * PARAM_koff_tnchmg + i] = 0.00333;
parameters[n_nodes * PARAM_koff_tncl + i] = 0.0196;
parameters[n_nodes * PARAM_kon_cam + i] = 34.0;
parameters[n_nodes * PARAM_kon_myoca + i] = 13.8;
parameters[n_nodes * PARAM_kon_myomg + i] = 0.0157;
parameters[n_nodes * PARAM_kon_sr + i] = 100.0;
parameters[n_nodes * PARAM_kon_tnchca + i] = 2.37;
parameters[n_nodes * PARAM_kon_tnchmg + i] = 0.003;
parameters[n_nodes * PARAM_kon_tncl + i] = 32.7;
parameters[n_nodes * PARAM_Bmax_SLhighj0 + i] = 0.000165;
parameters[n_nodes * PARAM_Bmax_SLhighsl0 + i] = 0.0134;
parameters[n_nodes * PARAM_Bmax_SLlowj0 + i] = 0.00046;
parameters[n_nodes * PARAM_Bmax_SLlowsl0 + i] = 0.0374;
parameters[n_nodes * PARAM_koff_slh + i] = 0.03;
parameters[n_nodes * PARAM_koff_sll + i] = 1.3;
parameters[n_nodes * PARAM_kon_slh + i] = 100.0;
parameters[n_nodes * PARAM_kon_sll + i] = 100.0;
parameters[n_nodes * PARAM_Bmax_Csqn0 + i] = 0.14;
parameters[n_nodes * PARAM_DcaJuncSL + i] = 1.64e-06;
parameters[n_nodes * PARAM_DcaSLcyto + i] = 1.22e-06;
parameters[n_nodes * PARAM_J_ca_juncsl + i] = 8.2413e-13;
parameters[n_nodes * PARAM_J_ca_slmyo + i] = 3.7243e-12;
parameters[n_nodes * PARAM_koff_csqn + i] = 65.0;
parameters[n_nodes * PARAM_kon_csqn + i] = 100.0;
parameters[n_nodes * PARAM_DnaJuncSL + i] = 1.09e-05;
parameters[n_nodes * PARAM_DnaSLcyto + i] = 1.79e-05;
parameters[n_nodes * PARAM_J_na_juncsl + i] = 1.8313e-14;
parameters[n_nodes * PARAM_J_na_slmyo + i] = 1.6386e-12;
parameters[n_nodes * PARAM_Nao + i] = 140.0;
parameters[n_nodes * PARAM_Ko + i] = 5.4;
parameters[n_nodes * PARAM_Cao + i] = 1.8;
parameters[n_nodes * PARAM_Cli + i] = 15.0;
parameters[n_nodes * PARAM_Clo + i] = 150.0;
parameters[n_nodes * PARAM_Mgi + i] = 1.0;
parameters[n_nodes * PARAM_Cmem + i] = 1.381e-10;
parameters[n_nodes * PARAM_Frdy + i] = 96485.0;
parameters[n_nodes * PARAM_R + i] = 8314.0;
parameters[n_nodes * PARAM_Temp + i] = 310.0;
parameters[n_nodes * PARAM_stim_amplitude + i] = 40.0;
parameters[n_nodes * PARAM_stim_duration + i] = 1.0;
parameters[n_nodes * PARAM_stim_period + i] = 1000.0;
parameters[n_nodes * PARAM_stim_start + i] = 0.0;
}
}
void init_parameter_values_2d_from_array(double* parameters, double *values, uint64_t n_nodes)
{
#pragma omp parallel for
for (uint64_t i = 0; i < n_nodes; i++) {
parameters[n_nodes * PARAM_Fjunc + i] = values[PARAM_Fjunc];
parameters[n_nodes * PARAM_Fjunc_CaL + i] = values[PARAM_Fjunc_CaL];
parameters[n_nodes * PARAM_cellLength + i] = values[PARAM_cellLength];
parameters[n_nodes * PARAM_cellRadius + i] = values[PARAM_cellRadius];
parameters[n_nodes * PARAM_distJuncSL + i] = values[PARAM_distJuncSL];
parameters[n_nodes * PARAM_distSLcyto + i] = values[PARAM_distSLcyto];
parameters[n_nodes * PARAM_junctionLength + i] = values[PARAM_junctionLength];
parameters[n_nodes * PARAM_junctionRadius + i] = values[PARAM_junctionRadius];
parameters[n_nodes * PARAM_GNa + i] = values[PARAM_GNa];
parameters[n_nodes * PARAM_GNaB + i] = values[PARAM_GNaB];
parameters[n_nodes * PARAM_IbarNaK + i] = values[PARAM_IbarNaK];
parameters[n_nodes * PARAM_KmKo + i] = values[PARAM_KmKo];
parameters[n_nodes * PARAM_KmNaip + i] = values[PARAM_KmNaip];
parameters[n_nodes * PARAM_Q10KmNai + i] = values[PARAM_Q10KmNai];
parameters[n_nodes * PARAM_Q10NaK + i] = values[PARAM_Q10NaK];
parameters[n_nodes * PARAM_GKr + i] = values[PARAM_GKr];
parameters[n_nodes * PARAM_GKp + i] = values[PARAM_GKp];
parameters[n_nodes * PARAM_GKs + i] = values[PARAM_GKs];
parameters[n_nodes * PARAM_pNaK + i] = values[PARAM_pNaK];
parameters[n_nodes * PARAM_GK1 + i] = values[PARAM_GK1];
parameters[n_nodes * PARAM_Gto + i] = values[PARAM_Gto];
parameters[n_nodes * PARAM_epi + i] = values[PARAM_epi];
parameters[n_nodes * PARAM_GClB + i] = values[PARAM_GClB];
parameters[n_nodes * PARAM_GClCa + i] = values[PARAM_GClCa];
parameters[n_nodes * PARAM_KdClCa + i] = values[PARAM_KdClCa];
parameters[n_nodes * PARAM_GCaL + i] = values[PARAM_GCaL];
parameters[n_nodes * PARAM_Q10CaL + i] = values[PARAM_Q10CaL];
parameters[n_nodes * PARAM_pCa + i] = values[PARAM_pCa];
parameters[n_nodes * PARAM_pK + i] = values[PARAM_pK];
parameters[n_nodes * PARAM_pNa + i] = values[PARAM_pNa];
parameters[n_nodes * PARAM_IbarNCX + i] = values[PARAM_IbarNCX];
parameters[n_nodes * PARAM_Kdact + i] = values[PARAM_Kdact];
parameters[n_nodes * PARAM_KmCai + i] = values[PARAM_KmCai];
parameters[n_nodes * PARAM_KmCao + i] = values[PARAM_KmCao];
parameters[n_nodes * PARAM_KmNai + i] = values[PARAM_KmNai];
parameters[n_nodes * PARAM_KmNao + i] = values[PARAM_KmNao];
parameters[n_nodes * PARAM_Q10NCX + i] = values[PARAM_Q10NCX];
parameters[n_nodes * PARAM_ksat + i] = values[PARAM_ksat];
parameters[n_nodes * PARAM_nu + i] = values[PARAM_nu];
parameters[n_nodes * PARAM_IbarSLCaP + i] = values[PARAM_IbarSLCaP];
parameters[n_nodes * PARAM_KmPCa + i] = values[PARAM_KmPCa];
parameters[n_nodes * PARAM_Q10SLCaP + i] = values[PARAM_Q10SLCaP];
parameters[n_nodes * PARAM_GCaB + i] = values[PARAM_GCaB];
parameters[n_nodes * PARAM_Kmf + i] = values[PARAM_Kmf];
parameters[n_nodes * PARAM_Kmr + i] = values[PARAM_Kmr];
parameters[n_nodes * PARAM_MaxSR + i] = values[PARAM_MaxSR];
parameters[n_nodes * PARAM_MinSR + i] = values[PARAM_MinSR];
parameters[n_nodes * PARAM_Q10SRCaP + i] = values[PARAM_Q10SRCaP];
parameters[n_nodes * PARAM_Vmax_SRCaP + i] = values[PARAM_Vmax_SRCaP];
parameters[n_nodes * PARAM_ec50SR + i] = values[PARAM_ec50SR];
parameters[n_nodes * PARAM_hillSRCaP + i] = values[PARAM_hillSRCaP];
parameters[n_nodes * PARAM_kiCa + i] = values[PARAM_kiCa];
parameters[n_nodes * PARAM_kim + i] = values[PARAM_kim];
parameters[n_nodes * PARAM_koCa + i] = values[PARAM_koCa];
parameters[n_nodes * PARAM_kom + i] = values[PARAM_kom];
parameters[n_nodes * PARAM_ks + i] = values[PARAM_ks];
parameters[n_nodes * PARAM_Bmax_Naj + i] = values[PARAM_Bmax_Naj];
parameters[n_nodes * PARAM_Bmax_Nasl + i] = values[PARAM_Bmax_Nasl];
parameters[n_nodes * PARAM_koff_na + i] = values[PARAM_koff_na];
parameters[n_nodes * PARAM_kon_na + i] = values[PARAM_kon_na];
parameters[n_nodes * PARAM_Bmax_CaM + i] = values[PARAM_Bmax_CaM];
parameters[n_nodes * PARAM_Bmax_SR + i] = values[PARAM_Bmax_SR];
parameters[n_nodes * PARAM_Bmax_TnChigh + i] = values[PARAM_Bmax_TnChigh];
parameters[n_nodes * PARAM_Bmax_TnClow + i] = values[PARAM_Bmax_TnClow];
parameters[n_nodes * PARAM_Bmax_myosin + i] = values[PARAM_Bmax_myosin];
parameters[n_nodes * PARAM_koff_cam + i] = values[PARAM_koff_cam];
parameters[n_nodes * PARAM_koff_myoca + i] = values[PARAM_koff_myoca];
parameters[n_nodes * PARAM_koff_myomg + i] = values[PARAM_koff_myomg];
parameters[n_nodes * PARAM_koff_sr + i] = values[PARAM_koff_sr];
parameters[n_nodes * PARAM_koff_tnchca + i] = values[PARAM_koff_tnchca];
parameters[n_nodes * PARAM_koff_tnchmg + i] = values[PARAM_koff_tnchmg];
parameters[n_nodes * PARAM_koff_tncl + i] = values[PARAM_koff_tncl];
parameters[n_nodes * PARAM_kon_cam + i] = values[PARAM_kon_cam];
parameters[n_nodes * PARAM_kon_myoca + i] = values[PARAM_kon_myoca];
parameters[n_nodes * PARAM_kon_myomg + i] = values[PARAM_kon_myomg];
parameters[n_nodes * PARAM_kon_sr + i] = values[PARAM_kon_sr];
parameters[n_nodes * PARAM_kon_tnchca + i] = values[PARAM_kon_tnchca];
parameters[n_nodes * PARAM_kon_tnchmg + i] = values[PARAM_kon_tnchmg];
parameters[n_nodes * PARAM_kon_tncl + i] = values[PARAM_kon_tncl];
parameters[n_nodes * PARAM_Bmax_SLhighj0 + i] = values[PARAM_Bmax_SLhighj0];
parameters[n_nodes * PARAM_Bmax_SLhighsl0 + i] = values[PARAM_Bmax_SLhighsl0];
parameters[n_nodes * PARAM_Bmax_SLlowj0 + i] = values[PARAM_Bmax_SLlowj0];
parameters[n_nodes * PARAM_Bmax_SLlowsl0 + i] = values[PARAM_Bmax_SLlowsl0];
parameters[n_nodes * PARAM_koff_slh + i] = values[PARAM_koff_slh];
parameters[n_nodes * PARAM_koff_sll + i] = values[PARAM_koff_sll];
parameters[n_nodes * PARAM_kon_slh + i] = values[PARAM_kon_slh];
parameters[n_nodes * PARAM_kon_sll + i] = values[PARAM_kon_sll];
parameters[n_nodes * PARAM_Bmax_Csqn0 + i] = values[PARAM_Bmax_Csqn0];
parameters[n_nodes * PARAM_DcaJuncSL + i] = values[PARAM_DcaJuncSL];
parameters[n_nodes * PARAM_DcaSLcyto + i] = values[PARAM_DcaSLcyto];
parameters[n_nodes * PARAM_J_ca_juncsl + i] = values[PARAM_J_ca_juncsl];
parameters[n_nodes * PARAM_J_ca_slmyo + i] = values[PARAM_J_ca_slmyo];
parameters[n_nodes * PARAM_koff_csqn + i] = values[PARAM_koff_csqn];
parameters[n_nodes * PARAM_kon_csqn + i] = values[PARAM_kon_csqn];
parameters[n_nodes * PARAM_DnaJuncSL + i] = values[PARAM_DnaJuncSL];
parameters[n_nodes * PARAM_DnaSLcyto + i] = values[PARAM_DnaSLcyto];
parameters[n_nodes * PARAM_J_na_juncsl + i] = values[PARAM_J_na_juncsl];
parameters[n_nodes * PARAM_J_na_slmyo + i] = values[PARAM_J_na_slmyo];
parameters[n_nodes * PARAM_Nao + i] = values[PARAM_Nao];
parameters[n_nodes * PARAM_Ko + i] = values[PARAM_Ko];
parameters[n_nodes * PARAM_Cao + i] = values[PARAM_Cao];
parameters[n_nodes * PARAM_Cli + i] = values[PARAM_Cli];
parameters[n_nodes * PARAM_Clo + i] = values[PARAM_Clo];
parameters[n_nodes * PARAM_Mgi + i] = values[PARAM_Mgi];
parameters[n_nodes * PARAM_Cmem + i] = values[PARAM_Cmem];
parameters[n_nodes * PARAM_Frdy + i] = values[PARAM_Frdy];
parameters[n_nodes * PARAM_R + i] = values[PARAM_R];
parameters[n_nodes * PARAM_Temp + i] = values[PARAM_Temp];
parameters[n_nodes * PARAM_stim_amplitude + i] = values[PARAM_stim_amplitude];
parameters[n_nodes * PARAM_stim_duration + i] = values[PARAM_stim_duration];
parameters[n_nodes * PARAM_stim_period + i] = values[PARAM_stim_period];
parameters[n_nodes * PARAM_stim_start + i] = values[PARAM_stim_start];
}
}
// Compute a forward step using the explicit Euler algorithm to the grandi ODE
void FE(double *d_states, const double t, const double dt, const double *d_parameters,
const uint64_t n_nodes)
{
#pragma omp parallel for
for (uint64_t i = 0; i < n_nodes; i++) {
// Assign states
const double m = d_states[n_nodes * STATE_m + i];
const double h = d_states[n_nodes * STATE_h + i];
const double j = d_states[n_nodes * STATE_j + i];
const double x_kr = d_states[n_nodes * STATE_x_kr + i];
const double x_ks = d_states[n_nodes * STATE_x_ks + i];
const double x_to_s = d_states[n_nodes * STATE_x_to_s + i];
const double y_to_s = d_states[n_nodes * STATE_y_to_s + i];
const double x_to_f = d_states[n_nodes * STATE_x_to_f + i];
const double y_to_f = d_states[n_nodes * STATE_y_to_f + i];
const double d = d_states[n_nodes * STATE_d + i];
const double f = d_states[n_nodes * STATE_f + i];
const double f_Ca_Bj = d_states[n_nodes * STATE_f_Ca_Bj + i];
const double f_Ca_Bsl = d_states[n_nodes * STATE_f_Ca_Bsl + i];
const double Ry_Rr = d_states[n_nodes * STATE_Ry_Rr + i];
const double Ry_Ro = d_states[n_nodes * STATE_Ry_Ro + i];
const double Ry_Ri = d_states[n_nodes * STATE_Ry_Ri + i];
const double Na_Bj = d_states[n_nodes * STATE_Na_Bj + i];
const double Na_Bsl = d_states[n_nodes * STATE_Na_Bsl + i];
const double Tn_CL = d_states[n_nodes * STATE_Tn_CL + i];
const double Tn_CHc = d_states[n_nodes * STATE_Tn_CHc + i];
const double Tn_CHm = d_states[n_nodes * STATE_Tn_CHm + i];
const double CaM = d_states[n_nodes * STATE_CaM + i];
const double Myo_c = d_states[n_nodes * STATE_Myo_c + i];
const double Myo_m = d_states[n_nodes * STATE_Myo_m + i];
const double SRB = d_states[n_nodes * STATE_SRB + i];
const double SLL_j = d_states[n_nodes * STATE_SLL_j + i];
const double SLL_sl = d_states[n_nodes * STATE_SLL_sl + i];
const double SLH_j = d_states[n_nodes * STATE_SLH_j + i];
const double SLH_sl = d_states[n_nodes * STATE_SLH_sl + i];
const double Csqn_b = d_states[n_nodes * STATE_Csqn_b + i];
const double Ca_sr = d_states[n_nodes * STATE_Ca_sr + i];
const double Na_j = d_states[n_nodes * STATE_Na_j + i];
const double Na_sl = d_states[n_nodes * STATE_Na_sl + i];
const double Na_i = d_states[n_nodes * STATE_Na_i + i];
const double K_i = d_states[n_nodes * STATE_K_i + i];
const double Ca_j = d_states[n_nodes * STATE_Ca_j + i];
const double Ca_sl = d_states[n_nodes * STATE_Ca_sl + i];
const double Ca_i = d_states[n_nodes * STATE_Ca_i + i];
const double V_m = d_states[n_nodes * STATE_V_m + i];
// Assign parameters
const double Fjunc = d_parameters[n_nodes * PARAM_Fjunc + i];
const double Fjunc_CaL = d_parameters[n_nodes * PARAM_Fjunc_CaL + i];
const double cellLength = d_parameters[n_nodes * PARAM_cellLength + i];
const double cellRadius = d_parameters[n_nodes * PARAM_cellRadius + i];
const double GNa = d_parameters[n_nodes * PARAM_GNa + i];
const double GNaB = d_parameters[n_nodes * PARAM_GNaB + i];
const double IbarNaK = d_parameters[n_nodes * PARAM_IbarNaK + i];
const double KmKo = d_parameters[n_nodes * PARAM_KmKo + i];
const double KmNaip = d_parameters[n_nodes * PARAM_KmNaip + i];
const double GKr = d_parameters[n_nodes * PARAM_GKr + i];
const double GKp = d_parameters[n_nodes * PARAM_GKp + i];
const double GKs = d_parameters[n_nodes * PARAM_GKs + i];
const double pNaK = d_parameters[n_nodes * PARAM_pNaK + i];
const double GK1 = d_parameters[n_nodes * PARAM_GK1 + i];
const double Gto = d_parameters[n_nodes * PARAM_Gto + i];
const double epi = d_parameters[n_nodes * PARAM_epi + i];
const double GClB = d_parameters[n_nodes * PARAM_GClB + i];
const double GClCa = d_parameters[n_nodes * PARAM_GClCa + i];
const double KdClCa = d_parameters[n_nodes * PARAM_KdClCa + i];
const double GCaL = d_parameters[n_nodes * PARAM_GCaL + i];
const double Q10CaL = d_parameters[n_nodes * PARAM_Q10CaL + i];
const double pCa = d_parameters[n_nodes * PARAM_pCa + i];
const double pK = d_parameters[n_nodes * PARAM_pK + i];
const double pNa = d_parameters[n_nodes * PARAM_pNa + i];
const double IbarNCX = d_parameters[n_nodes * PARAM_IbarNCX + i];
const double Kdact = d_parameters[n_nodes * PARAM_Kdact + i];
const double KmCai = d_parameters[n_nodes * PARAM_KmCai + i];
const double KmCao = d_parameters[n_nodes * PARAM_KmCao + i];
const double KmNai = d_parameters[n_nodes * PARAM_KmNai + i];
const double KmNao = d_parameters[n_nodes * PARAM_KmNao + i];
const double Q10NCX = d_parameters[n_nodes * PARAM_Q10NCX + i];
const double ksat = d_parameters[n_nodes * PARAM_ksat + i];
const double nu = d_parameters[n_nodes * PARAM_nu + i];
const double IbarSLCaP = d_parameters[n_nodes * PARAM_IbarSLCaP + i];
const double KmPCa = d_parameters[n_nodes * PARAM_KmPCa + i];
const double Q10SLCaP = d_parameters[n_nodes * PARAM_Q10SLCaP + i];
const double GCaB = d_parameters[n_nodes * PARAM_GCaB + i];
const double Kmf = d_parameters[n_nodes * PARAM_Kmf + i];
const double Kmr = d_parameters[n_nodes * PARAM_Kmr + i];
const double MaxSR = d_parameters[n_nodes * PARAM_MaxSR + i];
const double MinSR = d_parameters[n_nodes * PARAM_MinSR + i];
const double Q10SRCaP = d_parameters[n_nodes * PARAM_Q10SRCaP + i];
const double Vmax_SRCaP = d_parameters[n_nodes * PARAM_Vmax_SRCaP + i];
const double ec50SR = d_parameters[n_nodes * PARAM_ec50SR + i];
const double hillSRCaP = d_parameters[n_nodes * PARAM_hillSRCaP + i];
const double kiCa = d_parameters[n_nodes * PARAM_kiCa + i];
const double kim = d_parameters[n_nodes * PARAM_kim + i];
const double koCa = d_parameters[n_nodes * PARAM_koCa + i];
const double kom = d_parameters[n_nodes * PARAM_kom + i];
const double ks = d_parameters[n_nodes * PARAM_ks + i];
const double Bmax_Naj = d_parameters[n_nodes * PARAM_Bmax_Naj + i];
const double Bmax_Nasl = d_parameters[n_nodes * PARAM_Bmax_Nasl + i];
const double koff_na = d_parameters[n_nodes * PARAM_koff_na + i];
const double kon_na = d_parameters[n_nodes * PARAM_kon_na + i];
const double Bmax_CaM = d_parameters[n_nodes * PARAM_Bmax_CaM + i];
const double Bmax_SR = d_parameters[n_nodes * PARAM_Bmax_SR + i];
const double Bmax_TnChigh = d_parameters[n_nodes * PARAM_Bmax_TnChigh + i];
const double Bmax_TnClow = d_parameters[n_nodes * PARAM_Bmax_TnClow + i];
const double Bmax_myosin = d_parameters[n_nodes * PARAM_Bmax_myosin + i];
const double koff_cam = d_parameters[n_nodes * PARAM_koff_cam + i];
const double koff_myoca = d_parameters[n_nodes * PARAM_koff_myoca + i];
const double koff_myomg = d_parameters[n_nodes * PARAM_koff_myomg + i];
const double koff_sr = d_parameters[n_nodes * PARAM_koff_sr + i];
const double koff_tnchca = d_parameters[n_nodes * PARAM_koff_tnchca + i];
const double koff_tnchmg = d_parameters[n_nodes * PARAM_koff_tnchmg + i];
const double koff_tncl = d_parameters[n_nodes * PARAM_koff_tncl + i];
const double kon_cam = d_parameters[n_nodes * PARAM_kon_cam + i];
const double kon_myoca = d_parameters[n_nodes * PARAM_kon_myoca + i];
const double kon_myomg = d_parameters[n_nodes * PARAM_kon_myomg + i];
const double kon_sr = d_parameters[n_nodes * PARAM_kon_sr + i];
const double kon_tnchca = d_parameters[n_nodes * PARAM_kon_tnchca + i];
const double kon_tnchmg = d_parameters[n_nodes * PARAM_kon_tnchmg + i];
const double kon_tncl = d_parameters[n_nodes * PARAM_kon_tncl + i];
const double Bmax_SLhighj0 = d_parameters[n_nodes * PARAM_Bmax_SLhighj0 + i];
const double Bmax_SLhighsl0 = d_parameters[n_nodes * PARAM_Bmax_SLhighsl0 + i];
const double Bmax_SLlowj0 = d_parameters[n_nodes * PARAM_Bmax_SLlowj0 + i];
const double Bmax_SLlowsl0 = d_parameters[n_nodes * PARAM_Bmax_SLlowsl0 + i];
const double koff_slh = d_parameters[n_nodes * PARAM_koff_slh + i];
const double koff_sll = d_parameters[n_nodes * PARAM_koff_sll + i];
const double kon_slh = d_parameters[n_nodes * PARAM_kon_slh + i];
const double kon_sll = d_parameters[n_nodes * PARAM_kon_sll + i];
const double Bmax_Csqn0 = d_parameters[n_nodes * PARAM_Bmax_Csqn0 + i];
const double J_ca_juncsl = d_parameters[n_nodes * PARAM_J_ca_juncsl + i];
const double J_ca_slmyo = d_parameters[n_nodes * PARAM_J_ca_slmyo + i];
const double koff_csqn = d_parameters[n_nodes * PARAM_koff_csqn + i];
const double kon_csqn = d_parameters[n_nodes * PARAM_kon_csqn + i];
const double J_na_juncsl = d_parameters[n_nodes * PARAM_J_na_juncsl + i];
const double J_na_slmyo = d_parameters[n_nodes * PARAM_J_na_slmyo + i];
const double Nao = d_parameters[n_nodes * PARAM_Nao + i];
const double Ko = d_parameters[n_nodes * PARAM_Ko + i];
const double Cao = d_parameters[n_nodes * PARAM_Cao + i];
const double Cli = d_parameters[n_nodes * PARAM_Cli + i];
const double Clo = d_parameters[n_nodes * PARAM_Clo + i];
const double Mgi = d_parameters[n_nodes * PARAM_Mgi + i];
const double Cmem = d_parameters[n_nodes * PARAM_Cmem + i];
const double Frdy = d_parameters[n_nodes * PARAM_Frdy + i];
const double R = d_parameters[n_nodes * PARAM_R + i];
const double Temp = d_parameters[n_nodes * PARAM_Temp + i];
const double stim_amplitude = d_parameters[n_nodes * PARAM_stim_amplitude + i];
const double stim_duration = d_parameters[n_nodes * PARAM_stim_duration + i];
const double stim_period = d_parameters[n_nodes * PARAM_stim_period + i];
const double stim_start = d_parameters[n_nodes * PARAM_stim_start + i];
// Expressions for the Geometry component
const double Vcell = 1.0e-15 * M_PI * cellLength * (cellRadius * cellRadius);
const double Vmyo = 0.65 * Vcell;
const double Vsr = 0.035 * Vcell;
const double Vsl = 0.02 * Vcell;
const double Vjunc = 0.000539 * Vcell;
const double Fsl = 1. - Fjunc;
const double Fsl_CaL = 1. - Fjunc_CaL;
// Expressions for the Reversal potentials component
const double FoRT = Frdy / (R * Temp);
const double ena_junc = log(Nao / Na_j) / FoRT;
const double ena_sl = log(Nao / Na_sl) / FoRT;
const double ek = log(Ko / K_i) / FoRT;
const double eca_junc = log(Cao / Ca_j) / (2. * FoRT);
const double eca_sl = log(Cao / Ca_sl) / (2. * FoRT);
const double ecl = log(Cli / Clo) / FoRT;
const double Qpow = -31. + Temp / 10.;
// Expressions for the I_Na component
const double mss = 1.0
/ ((1. + 0.00184221158116513 * exp(-0.110741971207087 * V_m))
* (1. + 0.00184221158116513 * exp(-0.110741971207087 * V_m)));
const double taum = 0.1292
* exp(-((2.94658944658945 + 0.0643500643500644 * V_m)
* (2.94658944658945 + 0.0643500643500644 * V_m)))
+ 0.06487
* exp(-((-0.0943466353677621 + 0.0195618153364632 * V_m)
* (-0.0943466353677621 + 0.0195618153364632 * V_m)));
const double ah = (V_m >= -40. ? 0. : 4.43126792958051e-7 * exp(-0.147058823529412 * V_m));
const double bh =
(V_m >= -40. ? 0.77 / (0.13 + 0.0497581410839387 * exp(-0.0900900900900901 * V_m))
: 310000.0 * exp(0.3485 * V_m) + 2.7 * exp(0.079 * V_m));
const double tauh = 1.0 / (ah + bh);
const double hss = 1.0
/ ((1. + 15212.5932856544 * exp(0.134589502018843 * V_m))
* (1. + 15212.5932856544 * exp(0.134589502018843 * V_m)));
const double aj =
(V_m >= -40.
? 0.
: (37.78 + V_m)
* (-25428.0 * exp(0.2444 * V_m) - 6.948e-6 * exp(-0.04391 * V_m))
/ (1. + 50262745825.954 * exp(0.311 * V_m)));
const double bj =
(V_m >= -40. ? 0.6 * exp(0.057 * V_m) / (1. + 0.0407622039783662 * exp(-0.1 * V_m))
: 0.02424 * exp(-0.01052 * V_m)
/ (1. + 0.00396086833990426 * exp(-0.1378 * V_m)));
const double tauj = 1.0 / (aj + bj);
const double jss = 1.0
/ ((1. + 15212.5932856544 * exp(0.134589502018843 * V_m))
* (1. + 15212.5932856544 * exp(0.134589502018843 * V_m)));
const double dm_dt = (-m + mss) / taum;
d_states[n_nodes * STATE_m + i] = dt * dm_dt + m;
const double dh_dt = (-h + hss) / tauh;
d_states[n_nodes * STATE_h + i] = dt * dh_dt + h;
const double dj_dt = (-j + jss) / tauj;
d_states[n_nodes * STATE_j + i] = dt * dj_dt + j;
const double I_Na_junc = Fjunc * GNa * (m * m * m) * (-ena_junc + V_m) * h * j;
const double I_Na_sl = GNa * (m * m * m) * (-ena_sl + V_m) * Fsl * h * j;
// Expressions for the I_NaBK component
const double I_nabk_junc = Fjunc * GNaB * (-ena_junc + V_m);
const double I_nabk_sl = GNaB * (-ena_sl + V_m) * Fsl;
// Expressions for the I_NaK component
const double sigma = -1. / 7. + exp(0.0148588410104012 * Nao) / 7.;
const double fnak =
1.0 / (1. + 0.1245 * exp(-0.1 * FoRT * V_m) + 0.0365 * exp(-FoRT * V_m) * sigma);
const double I_nak_junc = Fjunc * IbarNaK * Ko * fnak
/ ((1.
+ (((KmNaip) * (KmNaip)) * ((KmNaip) * (KmNaip)))
/ (((Na_j) * (Na_j)) * ((Na_j) * (Na_j))))
* (KmKo + Ko));
const double I_nak_sl = IbarNaK * Ko * Fsl * fnak
/ ((1.
+ (((KmNaip) * (KmNaip)) * ((KmNaip) * (KmNaip)))
/ (((Na_sl) * (Na_sl)) * ((Na_sl) * (Na_sl))))
* (KmKo + Ko));
const double I_nak = I_nak_junc + I_nak_sl;
// Expressions for the I_Kr component
const double gkr = 0.430331482911935 * GKr * sqrt(Ko);
const double xrss = 1.0 / (1. + exp(-2. - V_m / 5.));
const double tauxr =
230. / (1. + exp(2. + V_m / 20.))
+ 3300. / ((1. + exp(-22. / 9. - V_m / 9.)) * (1. + exp(11. / 9. + V_m / 9.)));
const double dx_kr_dt = (-x_kr + xrss) / tauxr;
d_states[n_nodes * STATE_x_kr + i] = dt * dx_kr_dt + x_kr;
const double rkr = 1.0 / (1. + exp(37. / 12. + V_m / 24.));
const double I_kr = (-ek + V_m) * gkr * rkr * x_kr;
// Expressions for the I_Kp component
const double kp_kp = 1.0 / (1. + 1786.47556537862 * exp(-0.167224080267559 * V_m));
const double I_kp_junc = Fjunc * GKp * (-ek + V_m) * kp_kp;
const double I_kp_sl = GKp * (-ek + V_m) * Fsl * kp_kp;
const double I_kp = I_kp_junc + I_kp_sl;
// Expressions for the I_Ks component
const double eks = log((Ko + Nao * pNaK) / (pNaK * Na_i + K_i)) / FoRT;
const double gks_junc = GKs;
const double gks_sl = GKs;
const double xsss = 1.0 / (1. + 0.765928338364649 * exp(-0.0701754385964912 * V_m));
const double tauxs = 990.1 / (1. + 0.841540408868102 * exp(-0.0708215297450425 * V_m));
const double dx_ks_dt = (-x_ks + xsss) / tauxs;
d_states[n_nodes * STATE_x_ks + i] = dt * dx_ks_dt + x_ks;
const double I_ks_junc = Fjunc * (x_ks * x_ks) * (-eks + V_m) * gks_junc;
const double I_ks_sl = (x_ks * x_ks) * (-eks + V_m) * Fsl * gks_sl;
const double I_ks = I_ks_junc + I_ks_sl;
// Expressions for the I_to component
const double GtoSlow = (epi == 1. ? 0.12 * Gto : 0.2892 * Gto);
const double GtoFast = (epi == 1. ? 0.88 * Gto : 0.0108 * Gto);
const double xtoss = 1.0 / (1. + exp(19. / 13. - V_m / 13.));
const double ytoss = 1.0 / (1. + 49.4024491055302 * exp(V_m / 5.));
const double tauxtos = 0.5 + 9. / (1. + exp(1. / 5. + V_m / 15.));
const double tauytos = 30. + 800. / (1. + exp(6. + V_m / 10.));
const double dx_to_s_dt = (-x_to_s + xtoss) / tauxtos;
d_states[n_nodes * STATE_x_to_s + i] = dt * dx_to_s_dt + x_to_s;
const double dy_to_s_dt = (-y_to_s + ytoss) / tauytos;
d_states[n_nodes * STATE_y_to_s + i] = dt * dy_to_s_dt + y_to_s;
const double I_tos = (-ek + V_m) * GtoSlow * x_to_s * y_to_s;
const double tauxtof = 0.5 + 8.5 * exp(-((9. / 10. + V_m / 50.) * (9. / 10. + V_m / 50.)));
const double tauytof = 7. + 85. * exp(-((40. + V_m) * (40. + V_m)) / 220.);
const double dx_to_f_dt = (-x_to_f + xtoss) / tauxtof;
d_states[n_nodes * STATE_x_to_f + i] = dt * dx_to_f_dt + x_to_f;
const double dy_to_f_dt = (-y_to_f + ytoss) / tauytof;
d_states[n_nodes * STATE_y_to_f + i] = dt * dy_to_f_dt + y_to_f;
const double I_tof = (-ek + V_m) * GtoFast * x_to_f * y_to_f;
const double I_to = I_tof + I_tos;
// Expressions for the I_K1 component
const double aki = 1.02 / (1. + 7.35454251046446e-7 * exp(0.2385 * V_m - 0.2385 * ek));
const double bki = (0.762624006506308 * exp(0.08032 * V_m - 0.08032 * ek)
+ 1.15340563518656e-16 * exp(0.06175 * V_m - 0.06175 * ek))
/ (1. + 0.0867722941576933 * exp(0.5143 * ek - 0.5143 * V_m));
const double kiss = aki / (aki + bki);
const double I_K1 = 0.430331482911935 * GK1 * sqrt(Ko) * (-ek + V_m) * kiss;
// Expressions for the I_ClCa component
const double I_ClCa_junc = Fjunc * GClCa * (-ecl + V_m) / (1. + KdClCa / Ca_j);
const double I_ClCa_sl = GClCa * (-ecl + V_m) * Fsl / (1. + KdClCa / Ca_sl);
const double I_ClCa = I_ClCa_junc + I_ClCa_sl;
const double I_Clbk = GClB * (-ecl + V_m);
// Expressions for the I_Ca component
const double fss =
1.0 / (1. + exp(35. / 9. + V_m / 9.)) + 0.6 / (1. + exp(5. / 2. - V_m / 20.));
const double dss = 1.0 / (1. + exp(-5. / 6. - V_m / 6.));
const double taud = (1. - exp(-5. / 6. - V_m / 6.)) * dss / (0.175 + 0.035 * V_m);
const double tauf =
1.0 / (0.02 + 0.0197 * exp(-((0.48865 + 0.0337 * V_m) * (0.48865 + 0.0337 * V_m))));
const double dd_dt = (-d + dss) / taud;
d_states[n_nodes * STATE_d + i] = dt * dd_dt + d;
const double df_dt = (-f + fss) / tauf;
d_states[n_nodes * STATE_f + i] = dt * df_dt + f;
const double df_Ca_Bj_dt = -0.0119 * f_Ca_Bj + 1.7 * (1. - f_Ca_Bj) * Ca_j;
d_states[n_nodes * STATE_f_Ca_Bj + i] = dt * df_Ca_Bj_dt + f_Ca_Bj;
const double df_Ca_Bsl_dt = -0.0119 * f_Ca_Bsl + 1.7 * (1. - f_Ca_Bsl) * Ca_sl;
d_states[n_nodes * STATE_f_Ca_Bsl + i] = dt * df_Ca_Bsl_dt + f_Ca_Bsl;
const double fcaCaMSL = 0.;
const double fcaCaj = 0.;
const double ibarca_j = 4. * Frdy * GCaL * pCa
* (-0.341 * Cao + 0.341 * Ca_j * exp(2. * FoRT * V_m)) * FoRT * V_m
/ (-1. + exp(2. * FoRT * V_m));
const double ibarca_sl = 4. * Frdy * GCaL * pCa
* (-0.341 * Cao + 0.341 * Ca_sl * exp(2. * FoRT * V_m)) * FoRT
* V_m / (-1. + exp(2. * FoRT * V_m));
const double ibark = Frdy * GCaL * pK * (-0.75 * Ko + 0.75 * K_i * exp(FoRT * V_m)) * FoRT
* V_m / (-1. + exp(FoRT * V_m));
const double ibarna_j = Frdy * GCaL * pNa * (-0.75 * Nao + 0.75 * Na_j * exp(FoRT * V_m))
* FoRT * V_m / (-1. + exp(FoRT * V_m));
const double ibarna_sl = Frdy * GCaL * pNa * (-0.75 * Nao + 0.75 * Na_sl * exp(FoRT * V_m))
* FoRT * V_m / (-1. + exp(FoRT * V_m));
const double I_Ca_junc =
0.45 * Fjunc_CaL * pow(Q10CaL, Qpow) * (1. + fcaCaj - f_Ca_Bj) * d * f * ibarca_j;
const double I_Ca_sl =
0.45 * pow(Q10CaL, Qpow) * (1. + fcaCaMSL - f_Ca_Bsl) * Fsl_CaL * d * f * ibarca_sl;
const double I_CaK =
0.45 * pow(Q10CaL, Qpow)
* (Fjunc_CaL * (1. + fcaCaj - f_Ca_Bj) + (1. + fcaCaMSL - f_Ca_Bsl) * Fsl_CaL) * d
* f * ibark;
const double I_CaNa_junc =
0.45 * Fjunc_CaL * pow(Q10CaL, Qpow) * (1. + fcaCaj - f_Ca_Bj) * d * f * ibarna_j;
const double I_CaNa_sl =
0.45 * pow(Q10CaL, Qpow) * (1. + fcaCaMSL - f_Ca_Bsl) * Fsl_CaL * d * f * ibarna_sl;
// Expressions for the I_NCX component
const double Ka_junc = 1.0 / (1. + (Kdact * Kdact) / (Ca_j * Ca_j));
const double Ka_sl = 1.0 / (1. + (Kdact * Kdact) / (Ca_sl * Ca_sl));
const double s1_junc = Cao * (Na_j * Na_j * Na_j) * exp(nu * FoRT * V_m);
const double s1_sl = Cao * (Na_sl * Na_sl * Na_sl) * exp(nu * FoRT * V_m);
const double s2_junc = (Nao * Nao * Nao) * Ca_j * exp((-1. + nu) * FoRT * V_m);
const double s3_junc =
Cao * (Na_j * Na_j * Na_j) + KmCao * (Na_j * Na_j * Na_j) + (Nao * Nao * Nao) * Ca_j
+ KmCai * (Nao * Nao * Nao) * (1. + (Na_j * Na_j * Na_j) / (KmNai * KmNai * KmNai))
+ (KmNao * KmNao * KmNao) * (1. + Ca_j / KmCai) * Ca_j;
const double s2_sl = (Nao * Nao * Nao) * Ca_sl * exp((-1. + nu) * FoRT * V_m);
const double s3_sl = Cao * (Na_sl * Na_sl * Na_sl) + KmCao * (Na_sl * Na_sl * Na_sl)
+ (Nao * Nao * Nao) * Ca_sl
+ KmCai * (Nao * Nao * Nao)
* (1. + (Na_sl * Na_sl * Na_sl) / (KmNai * KmNai * KmNai))
+ (KmNao * KmNao * KmNao) * (1. + Ca_sl / KmCai) * Ca_sl;
const double I_ncx_junc = Fjunc * IbarNCX * pow(Q10NCX, Qpow) * (-s2_junc + s1_junc)
* Ka_junc
/ ((1. + ksat * exp((-1. + nu) * FoRT * V_m)) * s3_junc);
const double I_ncx_sl = IbarNCX * pow(Q10NCX, Qpow) * (-s2_sl + s1_sl) * Fsl * Ka_sl
/ ((1. + ksat * exp((-1. + nu) * FoRT * V_m)) * s3_sl);
// Expressions for the I_PCa component
const double I_pca_junc = Fjunc * IbarSLCaP * pow(Q10SLCaP, Qpow) * pow(Ca_j, 1.6)
/ (pow(KmPCa, 1.6) + pow(Ca_j, 1.6));
const double I_pca_sl = IbarSLCaP * pow(Q10SLCaP, Qpow) * pow(Ca_sl, 1.6) * Fsl
/ (pow(KmPCa, 1.6) + pow(Ca_sl, 1.6));
// Expressions for the I_CaBK component
const double I_cabk_junc = Fjunc * GCaB * (-eca_junc + V_m);
const double I_cabk_sl = GCaB * (-eca_sl + V_m) * Fsl;
// Expressions for the SR Fluxes component
const double kCaSR = MaxSR - (MaxSR - MinSR) / (1. + pow(ec50SR / Ca_sr, 2.5));
const double koSRCa = koCa / kCaSR;
const double kiSRCa = kiCa * kCaSR;
const double RI = 1. - Ry_Ri - Ry_Ro - Ry_Rr;
const double dRy_Rr_dt =
kim * RI + kom * Ry_Ro - (Ca_j * Ca_j) * Ry_Rr * koSRCa - Ca_j * Ry_Rr * kiSRCa;
d_states[n_nodes * STATE_Ry_Rr + i] = dt * dRy_Rr_dt + Ry_Rr;
const double dRy_Ro_dt =
kim * Ry_Ri - kom * Ry_Ro + (Ca_j * Ca_j) * Ry_Rr * koSRCa - Ca_j * Ry_Ro * kiSRCa;
d_states[n_nodes * STATE_Ry_Ro + i] = dt * dRy_Ro_dt + Ry_Ro;
const double dRy_Ri_dt =
-kim * Ry_Ri - kom * Ry_Ri + (Ca_j * Ca_j) * RI * koSRCa + Ca_j * Ry_Ro * kiSRCa;
d_states[n_nodes * STATE_Ry_Ri + i] = dt * dRy_Ri_dt + Ry_Ri;
const double J_SRCarel = ks * (-Ca_j + Ca_sr) * Ry_Ro;
const double J_serca = Vmax_SRCaP * pow(Q10SRCaP, Qpow)
* (pow(Ca_i / Kmf, hillSRCaP) - pow(Ca_sr / Kmr, hillSRCaP))
/ (1. + pow(Ca_i / Kmf, hillSRCaP) + pow(Ca_sr / Kmr, hillSRCaP));
const double J_SRleak = 5.348e-6 * Ca_sr - 5.348e-6 * Ca_j;
// Expressions for the Na Buffers component
const double dNa_Bj_dt = -koff_na * Na_Bj + kon_na * (Bmax_Naj - Na_Bj) * Na_j;
d_states[n_nodes * STATE_Na_Bj + i] = dt * dNa_Bj_dt + Na_Bj;
const double dNa_Bsl_dt = -koff_na * Na_Bsl + kon_na * (Bmax_Nasl - Na_Bsl) * Na_sl;
d_states[n_nodes * STATE_Na_Bsl + i] = dt * dNa_Bsl_dt + Na_Bsl;
// Expressions for the Cytosolic Ca Buffers component
const double dTn_CL_dt = -koff_tncl * Tn_CL + kon_tncl * (Bmax_TnClow - Tn_CL) * Ca_i;
d_states[n_nodes * STATE_Tn_CL + i] = dt * dTn_CL_dt + Tn_CL;
const double dTn_CHc_dt =
-koff_tnchca * Tn_CHc + kon_tnchca * (Bmax_TnChigh - Tn_CHc - Tn_CHm) * Ca_i;
d_states[n_nodes * STATE_Tn_CHc + i] = dt * dTn_CHc_dt + Tn_CHc;
const double dTn_CHm_dt =
-koff_tnchmg * Tn_CHm + Mgi * kon_tnchmg * (Bmax_TnChigh - Tn_CHc - Tn_CHm);
d_states[n_nodes * STATE_Tn_CHm + i] = dt * dTn_CHm_dt + Tn_CHm;
const double dCaM_dt = -koff_cam * CaM + kon_cam * (Bmax_CaM - CaM) * Ca_i;
d_states[n_nodes * STATE_CaM + i] = dt * dCaM_dt + CaM;
const double dMyo_c_dt =
-koff_myoca * Myo_c + kon_myoca * (Bmax_myosin - Myo_c - Myo_m) * Ca_i;
d_states[n_nodes * STATE_Myo_c + i] = dt * dMyo_c_dt + Myo_c;
const double dMyo_m_dt =
-koff_myomg * Myo_m + Mgi * kon_myomg * (Bmax_myosin - Myo_c - Myo_m);
d_states[n_nodes * STATE_Myo_m + i] = dt * dMyo_m_dt + Myo_m;
const double dSRB_dt = -koff_sr * SRB + kon_sr * (Bmax_SR - SRB) * Ca_i;
d_states[n_nodes * STATE_SRB + i] = dt * dSRB_dt + SRB;
const double J_CaB_cytosol =
-koff_cam * CaM - koff_myoca * Myo_c - koff_myomg * Myo_m - koff_sr * SRB
- koff_tnchca * Tn_CHc - koff_tnchmg * Tn_CHm - koff_tncl * Tn_CL
+ Mgi * kon_myomg * (Bmax_myosin - Myo_c - Myo_m)
+ Mgi * kon_tnchmg * (Bmax_TnChigh - Tn_CHc - Tn_CHm)
+ kon_cam * (Bmax_CaM - CaM) * Ca_i
+ kon_myoca * (Bmax_myosin - Myo_c - Myo_m) * Ca_i + kon_sr * (Bmax_SR - SRB) * Ca_i
+ kon_tnchca * (Bmax_TnChigh - Tn_CHc - Tn_CHm) * Ca_i
+ kon_tncl * (Bmax_TnClow - Tn_CL) * Ca_i;
// Expressions for the Junctional and SL Ca Buffers component
const double Bmax_SLlowsl = Bmax_SLlowsl0 * Vmyo / Vsl;
const double Bmax_SLlowj = Bmax_SLlowj0 * Vmyo / Vjunc;
const double Bmax_SLhighsl = Bmax_SLhighsl0 * Vmyo / Vsl;
const double Bmax_SLhighj = Bmax_SLhighj0 * Vmyo / Vjunc;
const double dSLL_j_dt = -koff_sll * SLL_j + kon_sll * (-SLL_j + Bmax_SLlowj) * Ca_j;
d_states[n_nodes * STATE_SLL_j + i] = dt * dSLL_j_dt + SLL_j;
const double dSLL_sl_dt = -koff_sll * SLL_sl + kon_sll * (-SLL_sl + Bmax_SLlowsl) * Ca_sl;
d_states[n_nodes * STATE_SLL_sl + i] = dt * dSLL_sl_dt + SLL_sl;
const double dSLH_j_dt = -koff_slh * SLH_j + kon_slh * (-SLH_j + Bmax_SLhighj) * Ca_j;
d_states[n_nodes * STATE_SLH_j + i] = dt * dSLH_j_dt + SLH_j;
const double dSLH_sl_dt = -koff_slh * SLH_sl + kon_slh * (-SLH_sl + Bmax_SLhighsl) * Ca_sl;
d_states[n_nodes * STATE_SLH_sl + i] = dt * dSLH_sl_dt + SLH_sl;
const double J_CaB_junction = -koff_slh * SLH_j - koff_sll * SLL_j
+ kon_slh * (-SLH_j + Bmax_SLhighj) * Ca_j
+ kon_sll * (-SLL_j + Bmax_SLlowj) * Ca_j;
const double J_CaB_sl = -koff_slh * SLH_sl - koff_sll * SLL_sl
+ kon_slh * (-SLH_sl + Bmax_SLhighsl) * Ca_sl
+ kon_sll * (-SLL_sl + Bmax_SLlowsl) * Ca_sl;
// Expressions for the SR Ca Concentrations component
const double Bmax_Csqn = Bmax_Csqn0 * Vmyo / Vsr;
const double dCsqn_b_dt = -koff_csqn * Csqn_b + kon_csqn * (-Csqn_b + Bmax_Csqn) * Ca_sr;
d_states[n_nodes * STATE_Csqn_b + i] = dt * dCsqn_b_dt + Csqn_b;
const double dCa_sr_dt = -J_SRCarel + koff_csqn * Csqn_b
- kon_csqn * (-Csqn_b + Bmax_Csqn) * Ca_sr - J_SRleak * Vmyo / Vsr
+ J_serca;
d_states[n_nodes * STATE_Ca_sr + i] = dt * dCa_sr_dt + Ca_sr;
// Expressions for the Na Concentrations component
const double I_Na_tot_junc =
3. * I_nak_junc + 3. * I_ncx_junc + I_CaNa_junc + I_Na_junc + I_nabk_junc;
const double I_Na_tot_sl = 3. * I_nak_sl + 3. * I_ncx_sl + I_CaNa_sl + I_Na_sl + I_nabk_sl;
const double dNa_j_dt = -dNa_Bj_dt + J_na_juncsl * (-Na_j + Na_sl) / Vjunc
- Cmem * I_Na_tot_junc / (Frdy * Vjunc);
d_states[n_nodes * STATE_Na_j + i] = dt * dNa_j_dt + Na_j;
const double dNa_sl_dt = -dNa_Bsl_dt + J_na_juncsl * (-Na_sl + Na_j) / Vsl
+ J_na_slmyo * (-Na_sl + Na_i) / Vsl
- Cmem * I_Na_tot_sl / (Frdy * Vsl);
d_states[n_nodes * STATE_Na_sl + i] = dt * dNa_sl_dt + Na_sl;
const double dNa_i_dt = J_na_slmyo * (-Na_i + Na_sl) / Vmyo;
d_states[n_nodes * STATE_Na_i + i] = dt * dNa_i_dt + Na_i;
// Expressions for the K Concentration component
const double I_K_tot = -2. * I_nak + I_CaK + I_K1 + I_kp + I_kr + I_ks + I_to;
const double dK_i_dt = 0.;
d_states[n_nodes * STATE_K_i + i] = dt * dK_i_dt + K_i;
// Expressions for the Ca Concentrations component
const double I_Ca_tot_junc = -2. * I_ncx_junc + I_Ca_junc + I_cabk_junc + I_pca_junc;
const double I_Ca_tot_sl = -2. * I_ncx_sl + I_Ca_sl + I_cabk_sl + I_pca_sl;
const double dCa_j_dt = -J_CaB_junction + J_ca_juncsl * (-Ca_j + Ca_sl) / Vjunc
+ J_SRCarel * Vsr / Vjunc + J_SRleak * Vmyo / Vjunc
- Cmem * I_Ca_tot_junc / (2. * Frdy * Vjunc);
d_states[n_nodes * STATE_Ca_j + i] = dt * dCa_j_dt + Ca_j;
const double dCa_sl_dt = -J_CaB_sl + J_ca_juncsl * (-Ca_sl + Ca_j) / Vsl
+ J_ca_slmyo * (-Ca_sl + Ca_i) / Vsl
- Cmem * I_Ca_tot_sl / (2. * Frdy * Vsl);
d_states[n_nodes * STATE_Ca_sl + i] = dt * dCa_sl_dt + Ca_sl;
const double dCa_i_dt =
-J_CaB_cytosol + J_ca_slmyo * (-Ca_i + Ca_sl) / Vmyo - J_serca * Vsr / Vmyo;
d_states[n_nodes * STATE_Ca_i + i] = dt * dCa_i_dt + Ca_i;
// Expressions for the Membrane potential component
const double i_Stim =
(t - stim_period * floor(t / stim_period) <= stim_duration + stim_start
&& t - stim_period * floor(t / stim_period) >= stim_start
? -stim_amplitude
: 0.);
const double I_Na_tot = I_Na_tot_junc + I_Na_tot_sl;
const double I_Cl_tot = I_ClCa + I_Clbk;
const double I_Ca_tot = I_Ca_tot_junc + I_Ca_tot_sl;
const double I_tot = I_Ca_tot + I_Cl_tot + I_K_tot + I_Na_tot;
const double dV_m_dt = -I_tot - i_Stim;
d_states[n_nodes * STATE_V_m + i] = dt * dV_m_dt + V_m;
}
}
// Compute a forward step using the rush larsen algorithm to the grandi ODE
void GRL1(double *d_states, const double t, const double dt, const double *d_parameters,
const uint64_t n_nodes)
{
#pragma omp parallel for
for (uint64_t i = 0; i < n_nodes; i++) {
// Assign states
const double m = d_states[n_nodes * STATE_m + i];
const double h = d_states[n_nodes * STATE_h + i];
const double j = d_states[n_nodes * STATE_j + i];
const double x_kr = d_states[n_nodes * STATE_x_kr + i];
const double x_ks = d_states[n_nodes * STATE_x_ks + i];
const double x_to_s = d_states[n_nodes * STATE_x_to_s + i];
const double y_to_s = d_states[n_nodes * STATE_y_to_s + i];
const double x_to_f = d_states[n_nodes * STATE_x_to_f + i];
const double y_to_f = d_states[n_nodes * STATE_y_to_f + i];
const double d = d_states[n_nodes * STATE_d + i];
const double f = d_states[n_nodes * STATE_f + i];
const double f_Ca_Bj = d_states[n_nodes * STATE_f_Ca_Bj + i];
const double f_Ca_Bsl = d_states[n_nodes * STATE_f_Ca_Bsl + i];
const double Ry_Rr = d_states[n_nodes * STATE_Ry_Rr + i];
const double Ry_Ro = d_states[n_nodes * STATE_Ry_Ro + i];
const double Ry_Ri = d_states[n_nodes * STATE_Ry_Ri + i];
const double Na_Bj = d_states[n_nodes * STATE_Na_Bj + i];
const double Na_Bsl = d_states[n_nodes * STATE_Na_Bsl + i];
const double Tn_CL = d_states[n_nodes * STATE_Tn_CL + i];
const double Tn_CHc = d_states[n_nodes * STATE_Tn_CHc + i];
const double Tn_CHm = d_states[n_nodes * STATE_Tn_CHm + i];
const double CaM = d_states[n_nodes * STATE_CaM + i];
const double Myo_c = d_states[n_nodes * STATE_Myo_c + i];
const double Myo_m = d_states[n_nodes * STATE_Myo_m + i];
const double SRB = d_states[n_nodes * STATE_SRB + i];
const double SLL_j = d_states[n_nodes * STATE_SLL_j + i];
const double SLL_sl = d_states[n_nodes * STATE_SLL_sl + i];
const double SLH_j = d_states[n_nodes * STATE_SLH_j + i];
const double SLH_sl = d_states[n_nodes * STATE_SLH_sl + i];
const double Csqn_b = d_states[n_nodes * STATE_Csqn_b + i];
const double Ca_sr = d_states[n_nodes * STATE_Ca_sr + i];
const double Na_j = d_states[n_nodes * STATE_Na_j + i];
const double Na_sl = d_states[n_nodes * STATE_Na_sl + i];
const double Na_i = d_states[n_nodes * STATE_Na_i + i];
const double K_i = d_states[n_nodes * STATE_K_i + i];
const double Ca_j = d_states[n_nodes * STATE_Ca_j + i];
const double Ca_sl = d_states[n_nodes * STATE_Ca_sl + i];
const double Ca_i = d_states[n_nodes * STATE_Ca_i + i];
const double V_m = d_states[n_nodes * STATE_V_m + i];
// Assign parameters
const double Fjunc = d_parameters[n_nodes * PARAM_Fjunc + i];
const double Fjunc_CaL = d_parameters[n_nodes * PARAM_Fjunc_CaL + i];
const double cellLength = d_parameters[n_nodes * PARAM_cellLength + i];
const double cellRadius = d_parameters[n_nodes * PARAM_cellRadius + i];
const double GNa = d_parameters[n_nodes * PARAM_GNa + i];
const double GNaB = d_parameters[n_nodes * PARAM_GNaB + i];
const double IbarNaK = d_parameters[n_nodes * PARAM_IbarNaK + i];
const double KmKo = d_parameters[n_nodes * PARAM_KmKo + i];
const double KmNaip = d_parameters[n_nodes * PARAM_KmNaip + i];
const double GKr = d_parameters[n_nodes * PARAM_GKr + i];
const double GKp = d_parameters[n_nodes * PARAM_GKp + i];
const double GKs = d_parameters[n_nodes * PARAM_GKs + i];
const double pNaK = d_parameters[n_nodes * PARAM_pNaK + i];
const double GK1 = d_parameters[n_nodes * PARAM_GK1 + i];
const double Gto = d_parameters[n_nodes * PARAM_Gto + i];
const double epi = d_parameters[n_nodes * PARAM_epi + i];
const double GClB = d_parameters[n_nodes * PARAM_GClB + i];
const double GClCa = d_parameters[n_nodes * PARAM_GClCa + i];
const double KdClCa = d_parameters[n_nodes * PARAM_KdClCa + i];
const double GCaL = d_parameters[n_nodes * PARAM_GCaL + i];
const double Q10CaL = d_parameters[n_nodes * PARAM_Q10CaL + i];
const double pCa = d_parameters[n_nodes * PARAM_pCa + i];
const double pK = d_parameters[n_nodes * PARAM_pK + i];
const double pNa = d_parameters[n_nodes * PARAM_pNa + i];
const double IbarNCX = d_parameters[n_nodes * PARAM_IbarNCX + i];
const double Kdact = d_parameters[n_nodes * PARAM_Kdact + i];
const double KmCai = d_parameters[n_nodes * PARAM_KmCai + i];
const double KmCao = d_parameters[n_nodes * PARAM_KmCao + i];
const double KmNai = d_parameters[n_nodes * PARAM_KmNai + i];
const double KmNao = d_parameters[n_nodes * PARAM_KmNao + i];
const double Q10NCX = d_parameters[n_nodes * PARAM_Q10NCX + i];
const double ksat = d_parameters[n_nodes * PARAM_ksat + i];
const double nu = d_parameters[n_nodes * PARAM_nu + i];
const double IbarSLCaP = d_parameters[n_nodes * PARAM_IbarSLCaP + i];
const double KmPCa = d_parameters[n_nodes * PARAM_KmPCa + i];
const double Q10SLCaP = d_parameters[n_nodes * PARAM_Q10SLCaP + i];
const double GCaB = d_parameters[n_nodes * PARAM_GCaB + i];
const double Kmf = d_parameters[n_nodes * PARAM_Kmf + i];
const double Kmr = d_parameters[n_nodes * PARAM_Kmr + i];
const double MaxSR = d_parameters[n_nodes * PARAM_MaxSR + i];
const double MinSR = d_parameters[n_nodes * PARAM_MinSR + i];
const double Q10SRCaP = d_parameters[n_nodes * PARAM_Q10SRCaP + i];
const double Vmax_SRCaP = d_parameters[n_nodes * PARAM_Vmax_SRCaP + i];
const double ec50SR = d_parameters[n_nodes * PARAM_ec50SR + i];
const double hillSRCaP = d_parameters[n_nodes * PARAM_hillSRCaP + i];
const double kiCa = d_parameters[n_nodes * PARAM_kiCa + i];
const double kim = d_parameters[n_nodes * PARAM_kim + i];
const double koCa = d_parameters[n_nodes * PARAM_koCa + i];
const double kom = d_parameters[n_nodes * PARAM_kom + i];
const double ks = d_parameters[n_nodes * PARAM_ks + i];
const double Bmax_Naj = d_parameters[n_nodes * PARAM_Bmax_Naj + i];
const double Bmax_Nasl = d_parameters[n_nodes * PARAM_Bmax_Nasl + i];
const double koff_na = d_parameters[n_nodes * PARAM_koff_na + i];
const double kon_na = d_parameters[n_nodes * PARAM_kon_na + i];
const double Bmax_CaM = d_parameters[n_nodes * PARAM_Bmax_CaM + i];
const double Bmax_SR = d_parameters[n_nodes * PARAM_Bmax_SR + i];
const double Bmax_TnChigh = d_parameters[n_nodes * PARAM_Bmax_TnChigh + i];
const double Bmax_TnClow = d_parameters[n_nodes * PARAM_Bmax_TnClow + i];
const double Bmax_myosin = d_parameters[n_nodes * PARAM_Bmax_myosin + i];
const double koff_cam = d_parameters[n_nodes * PARAM_koff_cam + i];
const double koff_myoca = d_parameters[n_nodes * PARAM_koff_myoca + i];
const double koff_myomg = d_parameters[n_nodes * PARAM_koff_myomg + i];
const double koff_sr = d_parameters[n_nodes * PARAM_koff_sr + i];
const double koff_tnchca = d_parameters[n_nodes * PARAM_koff_tnchca + i];
const double koff_tnchmg = d_parameters[n_nodes * PARAM_koff_tnchmg + i];
const double koff_tncl = d_parameters[n_nodes * PARAM_koff_tncl + i];
const double kon_cam = d_parameters[n_nodes * PARAM_kon_cam + i];
const double kon_myoca = d_parameters[n_nodes * PARAM_kon_myoca + i];
const double kon_myomg = d_parameters[n_nodes * PARAM_kon_myomg + i];
const double kon_sr = d_parameters[n_nodes * PARAM_kon_sr + i];
const double kon_tnchca = d_parameters[n_nodes * PARAM_kon_tnchca + i];
const double kon_tnchmg = d_parameters[n_nodes * PARAM_kon_tnchmg + i];
const double kon_tncl = d_parameters[n_nodes * PARAM_kon_tncl + i];
const double Bmax_SLhighj0 = d_parameters[n_nodes * PARAM_Bmax_SLhighj0 + i];
const double Bmax_SLhighsl0 = d_parameters[n_nodes * PARAM_Bmax_SLhighsl0 + i];
const double Bmax_SLlowj0 = d_parameters[n_nodes * PARAM_Bmax_SLlowj0 + i];
const double Bmax_SLlowsl0 = d_parameters[n_nodes * PARAM_Bmax_SLlowsl0 + i];
const double koff_slh = d_parameters[n_nodes * PARAM_koff_slh + i];
const double koff_sll = d_parameters[n_nodes * PARAM_koff_sll + i];
const double kon_slh = d_parameters[n_nodes * PARAM_kon_slh + i];
const double kon_sll = d_parameters[n_nodes * PARAM_kon_sll + i];
const double Bmax_Csqn0 = d_parameters[n_nodes * PARAM_Bmax_Csqn0 + i];
const double J_ca_juncsl = d_parameters[n_nodes * PARAM_J_ca_juncsl + i];
const double J_ca_slmyo = d_parameters[n_nodes * PARAM_J_ca_slmyo + i];
const double koff_csqn = d_parameters[n_nodes * PARAM_koff_csqn + i];
const double kon_csqn = d_parameters[n_nodes * PARAM_kon_csqn + i];
const double J_na_juncsl = d_parameters[n_nodes * PARAM_J_na_juncsl + i];
const double J_na_slmyo = d_parameters[n_nodes * PARAM_J_na_slmyo + i];
const double Nao = d_parameters[n_nodes * PARAM_Nao + i];
const double Ko = d_parameters[n_nodes * PARAM_Ko + i];
const double Cao = d_parameters[n_nodes * PARAM_Cao + i];
const double Cli = d_parameters[n_nodes * PARAM_Cli + i];
const double Clo = d_parameters[n_nodes * PARAM_Clo + i];
const double Mgi = d_parameters[n_nodes * PARAM_Mgi + i];
const double Cmem = d_parameters[n_nodes * PARAM_Cmem + i];
const double Frdy = d_parameters[n_nodes * PARAM_Frdy + i];
const double R = d_parameters[n_nodes * PARAM_R + i];
const double Temp = d_parameters[n_nodes * PARAM_Temp + i];
const double stim_amplitude = d_parameters[n_nodes * PARAM_stim_amplitude + i];
const double stim_duration = d_parameters[n_nodes * PARAM_stim_duration + i];
const double stim_period = d_parameters[n_nodes * PARAM_stim_period + i];
const double stim_start = d_parameters[n_nodes * PARAM_stim_start + i];
// Expressions for the Geometry component
const double Vcell = 1.0e-15 * M_PI * cellLength * (cellRadius * cellRadius);
const double Vmyo = 0.65 * Vcell;
const double Vsr = 0.035 * Vcell;
const double Vsl = 0.02 * Vcell;
const double Vjunc = 0.000539 * Vcell;
const double Fsl = 1. - Fjunc;
const double Fsl_CaL = 1. - Fjunc_CaL;
// Expressions for the Reversal potentials component
const double FoRT = Frdy / (R * Temp);
const double ena_junc = log(Nao / Na_j) / FoRT;
const double ena_sl = log(Nao / Na_sl) / FoRT;
const double ek = log(Ko / K_i) / FoRT;
const double eca_junc = log(Cao / Ca_j) / (2. * FoRT);
const double eca_sl = log(Cao / Ca_sl) / (2. * FoRT);
const double ecl = log(Cli / Clo) / FoRT;
const double Qpow = -31. + Temp / 10.;
// Expressions for the I_Na component
const double mss = 1.0
/ ((1. + 0.00184221158116513 * exp(-0.110741971207087 * V_m))
* (1. + 0.00184221158116513 * exp(-0.110741971207087 * V_m)));
const double taum = 0.1292
* exp(-((2.94658944658945 + 0.0643500643500644 * V_m)
* (2.94658944658945 + 0.0643500643500644 * V_m)))
+ 0.06487
* exp(-((-0.0943466353677621 + 0.0195618153364632 * V_m)
* (-0.0943466353677621 + 0.0195618153364632 * V_m)));
const double ah = (V_m >= -40. ? 0. : 4.43126792958051e-7 * exp(-0.147058823529412 * V_m));
const double bh =
(V_m >= -40. ? 0.77 / (0.13 + 0.0497581410839387 * exp(-0.0900900900900901 * V_m))
: 310000.0 * exp(0.3485 * V_m) + 2.7 * exp(0.079 * V_m));
const double tauh = 1.0 / (ah + bh);
const double hss = 1.0
/ ((1. + 15212.5932856544 * exp(0.134589502018843 * V_m))
* (1. + 15212.5932856544 * exp(0.134589502018843 * V_m)));
const double aj =
(V_m >= -40.
? 0.
: (37.78 + V_m)
* (-25428.0 * exp(0.2444 * V_m) - 6.948e-6 * exp(-0.04391 * V_m))
/ (1. + 50262745825.954 * exp(0.311 * V_m)));
const double bj =
(V_m >= -40. ? 0.6 * exp(0.057 * V_m) / (1. + 0.0407622039783662 * exp(-0.1 * V_m))
: 0.02424 * exp(-0.01052 * V_m)
/ (1. + 0.00396086833990426 * exp(-0.1378 * V_m)));
const double tauj = 1.0 / (aj + bj);
const double jss = 1.0
/ ((1. + 15212.5932856544 * exp(0.134589502018843 * V_m))
* (1. + 15212.5932856544 * exp(0.134589502018843 * V_m)));
const double dm_dt = (-m + mss) / taum;
const double dm_dt_linearized = -1. / taum;
d_states[n_nodes * STATE_m + i] =
(fabs(dm_dt_linearized) > 1.0e-8
? (-1.0 + exp(dt * dm_dt_linearized)) * dm_dt / dm_dt_linearized
: dt * dm_dt)
+ m;
const double dh_dt = (-h + hss) / tauh;
const double dh_dt_linearized = -1. / tauh;
d_states[n_nodes * STATE_h + i] =
(fabs(dh_dt_linearized) > 1.0e-8
? (-1.0 + exp(dt * dh_dt_linearized)) * dh_dt / dh_dt_linearized
: dt * dh_dt)
+ h;
const double dj_dt = (-j + jss) / tauj;
const double dj_dt_linearized = -1. / tauj;
d_states[n_nodes * STATE_j + i] =
(fabs(dj_dt_linearized) > 1.0e-8
? (-1.0 + exp(dt * dj_dt_linearized)) * dj_dt / dj_dt_linearized
: dt * dj_dt)
+ j;
const double I_Na_junc = Fjunc * GNa * (m * m * m) * (-ena_junc + V_m) * h * j;
const double I_Na_sl = GNa * (m * m * m) * (-ena_sl + V_m) * Fsl * h * j;
// Expressions for the I_NaBK component
const double I_nabk_junc = Fjunc * GNaB * (-ena_junc + V_m);
const double I_nabk_sl = GNaB * (-ena_sl + V_m) * Fsl;
// Expressions for the I_NaK component
const double sigma = -1. / 7. + exp(0.0148588410104012 * Nao) / 7.;
const double fnak =
1.0 / (1. + 0.1245 * exp(-0.1 * FoRT * V_m) + 0.0365 * exp(-FoRT * V_m) * sigma);
const double I_nak_junc = Fjunc * IbarNaK * Ko * fnak
/ ((1.
+ (((KmNaip) * (KmNaip)) * ((KmNaip) * (KmNaip)))
/ (((Na_j) * (Na_j)) * ((Na_j) * (Na_j))))
* (KmKo + Ko));
const double I_nak_sl = IbarNaK * Ko * Fsl * fnak
/ ((1.
+ (((KmNaip) * (KmNaip)) * ((KmNaip) * (KmNaip)))
/ (((Na_sl) * (Na_sl)) * ((Na_sl) * (Na_sl))))
* (KmKo + Ko));
const double I_nak = I_nak_junc + I_nak_sl;
// Expressions for the I_Kr component
const double gkr = 0.430331482911935 * GKr * sqrt(Ko);
const double xrss = 1.0 / (1. + exp(-2. - V_m / 5.));
const double tauxr =
230. / (1. + exp(2. + V_m / 20.))
+ 3300. / ((1. + exp(-22. / 9. - V_m / 9.)) * (1. + exp(11. / 9. + V_m / 9.)));
const double dx_kr_dt = (-x_kr + xrss) / tauxr;
const double dx_kr_dt_linearized = -1. / tauxr;
d_states[n_nodes * STATE_x_kr + i] =
(fabs(dx_kr_dt_linearized) > 1.0e-8
? (-1.0 + exp(dt * dx_kr_dt_linearized)) * dx_kr_dt / dx_kr_dt_linearized
: dt * dx_kr_dt)
+ x_kr;
const double rkr = 1.0 / (1. + exp(37. / 12. + V_m / 24.));
const double I_kr = (-ek + V_m) * gkr * rkr * x_kr;
// Expressions for the I_Kp component
const double kp_kp = 1.0 / (1. + 1786.47556537862 * exp(-0.167224080267559 * V_m));
const double I_kp_junc = Fjunc * GKp * (-ek + V_m) * kp_kp;
const double I_kp_sl = GKp * (-ek + V_m) * Fsl * kp_kp;
const double I_kp = I_kp_junc + I_kp_sl;
// Expressions for the I_Ks component
const double eks = log((Ko + Nao * pNaK) / (pNaK * Na_i + K_i)) / FoRT;
const double gks_junc = GKs;
const double gks_sl = GKs;
const double xsss = 1.0 / (1. + 0.765928338364649 * exp(-0.0701754385964912 * V_m));
const double tauxs = 990.1 / (1. + 0.841540408868102 * exp(-0.0708215297450425 * V_m));
const double dx_ks_dt = (-x_ks + xsss) / tauxs;
const double dx_ks_dt_linearized = -1. / tauxs;
d_states[n_nodes * STATE_x_ks + i] =
(fabs(dx_ks_dt_linearized) > 1.0e-8
? (-1.0 + exp(dt * dx_ks_dt_linearized)) * dx_ks_dt / dx_ks_dt_linearized
: dt * dx_ks_dt)
+ x_ks;
const double I_ks_junc = Fjunc * (x_ks * x_ks) * (-eks + V_m) * gks_junc;
const double I_ks_sl = (x_ks * x_ks) * (-eks + V_m) * Fsl * gks_sl;
const double I_ks = I_ks_junc + I_ks_sl;
// Expressions for the I_to component
const double GtoSlow = (epi == 1. ? 0.12 * Gto : 0.2892 * Gto);
const double GtoFast = (epi == 1. ? 0.88 * Gto : 0.0108 * Gto);
const double xtoss = 1.0 / (1. + exp(19. / 13. - V_m / 13.));
const double ytoss = 1.0 / (1. + 49.4024491055302 * exp(V_m / 5.));
const double tauxtos = 0.5 + 9. / (1. + exp(1. / 5. + V_m / 15.));
const double tauytos = 30. + 800. / (1. + exp(6. + V_m / 10.));
const double dx_to_s_dt = (-x_to_s + xtoss) / tauxtos;
const double dx_to_s_dt_linearized = -1. / tauxtos;
d_states[n_nodes * STATE_x_to_s + i] =
(fabs(dx_to_s_dt_linearized) > 1.0e-8 ? (-1.0 + exp(dt * dx_to_s_dt_linearized))
* dx_to_s_dt / dx_to_s_dt_linearized
: dt * dx_to_s_dt)
+ x_to_s;
const double dy_to_s_dt = (-y_to_s + ytoss) / tauytos;
const double dy_to_s_dt_linearized = -1. / tauytos;
d_states[n_nodes * STATE_y_to_s + i] =
(fabs(dy_to_s_dt_linearized) > 1.0e-8 ? (-1.0 + exp(dt * dy_to_s_dt_linearized))
* dy_to_s_dt / dy_to_s_dt_linearized
: dt * dy_to_s_dt)
+ y_to_s;
const double I_tos = (-ek + V_m) * GtoSlow * x_to_s * y_to_s;
const double tauxtof = 0.5 + 8.5 * exp(-((9. / 10. + V_m / 50.) * (9. / 10. + V_m / 50.)));
const double tauytof = 7. + 85. * exp(-((40. + V_m) * (40. + V_m)) / 220.);
const double dx_to_f_dt = (-x_to_f + xtoss) / tauxtof;
const double dx_to_f_dt_linearized = -1. / tauxtof;
d_states[n_nodes * STATE_x_to_f + i] =
(fabs(dx_to_f_dt_linearized) > 1.0e-8 ? (-1.0 + exp(dt * dx_to_f_dt_linearized))
* dx_to_f_dt / dx_to_f_dt_linearized
: dt * dx_to_f_dt)
+ x_to_f;
const double dy_to_f_dt = (-y_to_f + ytoss) / tauytof;
const double dy_to_f_dt_linearized = -1. / tauytof;
d_states[n_nodes * STATE_y_to_f + i] =
(fabs(dy_to_f_dt_linearized) > 1.0e-8 ? (-1.0 + exp(dt * dy_to_f_dt_linearized))
* dy_to_f_dt / dy_to_f_dt_linearized
: dt * dy_to_f_dt)
+ y_to_f;
const double I_tof = (-ek + V_m) * GtoFast * x_to_f * y_to_f;
const double I_to = I_tof + I_tos;
// Expressions for the I_K1 component
const double aki = 1.02 / (1. + 7.35454251046446e-7 * exp(0.2385 * V_m - 0.2385 * ek));
const double bki = (0.762624006506308 * exp(0.08032 * V_m - 0.08032 * ek)
+ 1.15340563518656e-16 * exp(0.06175 * V_m - 0.06175 * ek))
/ (1. + 0.0867722941576933 * exp(0.5143 * ek - 0.5143 * V_m));
const double kiss = aki / (aki + bki);
const double I_K1 = 0.430331482911935 * GK1 * sqrt(Ko) * (-ek + V_m) * kiss;
// Expressions for the I_ClCa component
const double I_ClCa_junc = Fjunc * GClCa * (-ecl + V_m) / (1. + KdClCa / Ca_j);
const double I_ClCa_sl = GClCa * (-ecl + V_m) * Fsl / (1. + KdClCa / Ca_sl);
const double I_ClCa = I_ClCa_junc + I_ClCa_sl;
const double I_Clbk = GClB * (-ecl + V_m);
// Expressions for the I_Ca component
const double fss =
1.0 / (1. + exp(35. / 9. + V_m / 9.)) + 0.6 / (1. + exp(5. / 2. - V_m / 20.));
const double dss = 1.0 / (1. + exp(-5. / 6. - V_m / 6.));
const double taud = (1. - exp(-5. / 6. - V_m / 6.)) * dss / (0.175 + 0.035 * V_m);
const double tauf =
1.0 / (0.02 + 0.0197 * exp(-((0.48865 + 0.0337 * V_m) * (0.48865 + 0.0337 * V_m))));
const double dd_dt = (-d + dss) / taud;
const double dd_dt_linearized = -1. / taud;
d_states[n_nodes * STATE_d + i] =
(fabs(dd_dt_linearized) > 1.0e-8
? (-1.0 + exp(dt * dd_dt_linearized)) * dd_dt / dd_dt_linearized
: dt * dd_dt)
+ d;
const double df_dt = (-f + fss) / tauf;
const double df_dt_linearized = -1. / tauf;
d_states[n_nodes * STATE_f + i] =
(fabs(df_dt_linearized) > 1.0e-8
? (-1.0 + exp(dt * df_dt_linearized)) * df_dt / df_dt_linearized
: dt * df_dt)
+ f;
const double df_Ca_Bj_dt = -0.0119 * f_Ca_Bj + 1.7 * (1. - f_Ca_Bj) * Ca_j;
const double df_Ca_Bj_dt_linearized = -0.0119 - 1.7 * Ca_j;
d_states[n_nodes * STATE_f_Ca_Bj + i] =
(fabs(df_Ca_Bj_dt_linearized) > 1.0e-8
? (-1.0 + exp(dt * df_Ca_Bj_dt_linearized)) * df_Ca_Bj_dt
/ df_Ca_Bj_dt_linearized
: dt * df_Ca_Bj_dt)
+ f_Ca_Bj;
const double df_Ca_Bsl_dt = -0.0119 * f_Ca_Bsl + 1.7 * (1. - f_Ca_Bsl) * Ca_sl;
const double df_Ca_Bsl_dt_linearized = -0.0119 - 1.7 * Ca_sl;
d_states[n_nodes * STATE_f_Ca_Bsl + i] =
(fabs(df_Ca_Bsl_dt_linearized) > 1.0e-8
? (-1.0 + exp(dt * df_Ca_Bsl_dt_linearized)) * df_Ca_Bsl_dt
/ df_Ca_Bsl_dt_linearized
: dt * df_Ca_Bsl_dt)
+ f_Ca_Bsl;
const double fcaCaMSL = 0.;
const double fcaCaj = 0.;
const double ibarca_j = 4. * Frdy * GCaL * pCa
* (-0.341 * Cao + 0.341 * Ca_j * exp(2. * FoRT * V_m)) * FoRT * V_m
/ (-1. + exp(2. * FoRT * V_m));
const double ibarca_sl = 4. * Frdy * GCaL * pCa
* (-0.341 * Cao + 0.341 * Ca_sl * exp(2. * FoRT * V_m)) * FoRT
* V_m / (-1. + exp(2. * FoRT * V_m));
const double ibark = Frdy * GCaL * pK * (-0.75 * Ko + 0.75 * K_i * exp(FoRT * V_m)) * FoRT
* V_m / (-1. + exp(FoRT * V_m));
const double ibarna_j = Frdy * GCaL * pNa * (-0.75 * Nao + 0.75 * Na_j * exp(FoRT * V_m))
* FoRT * V_m / (-1. + exp(FoRT * V_m));
const double ibarna_sl = Frdy * GCaL * pNa * (-0.75 * Nao + 0.75 * Na_sl * exp(FoRT * V_m))
* FoRT * V_m / (-1. + exp(FoRT * V_m));
const double I_Ca_junc =
0.45 * Fjunc_CaL * pow(Q10CaL, Qpow) * (1. + fcaCaj - f_Ca_Bj) * d * f * ibarca_j;
const double I_Ca_sl =
0.45 * pow(Q10CaL, Qpow) * (1. + fcaCaMSL - f_Ca_Bsl) * Fsl_CaL * d * f * ibarca_sl;
const double I_CaK =
0.45 * pow(Q10CaL, Qpow)
* (Fjunc_CaL * (1. + fcaCaj - f_Ca_Bj) + (1. + fcaCaMSL - f_Ca_Bsl) * Fsl_CaL) * d
* f * ibark;
const double I_CaNa_junc =
0.45 * Fjunc_CaL * pow(Q10CaL, Qpow) * (1. + fcaCaj - f_Ca_Bj) * d * f * ibarna_j;
const double I_CaNa_sl =
0.45 * pow(Q10CaL, Qpow) * (1. + fcaCaMSL - f_Ca_Bsl) * Fsl_CaL * d * f * ibarna_sl;
// Expressions for the I_NCX component
const double Ka_junc = 1.0 / (1. + (Kdact * Kdact) / (Ca_j * Ca_j));
const double Ka_sl = 1.0 / (1. + (Kdact * Kdact) / (Ca_sl * Ca_sl));
const double s1_junc = Cao * (Na_j * Na_j * Na_j) * exp(nu * FoRT * V_m);
const double s1_sl = Cao * (Na_sl * Na_sl * Na_sl) * exp(nu * FoRT * V_m);
const double s2_junc = (Nao * Nao * Nao) * Ca_j * exp((-1. + nu) * FoRT * V_m);
const double s3_junc =
Cao * (Na_j * Na_j * Na_j) + KmCao * (Na_j * Na_j * Na_j) + (Nao * Nao * Nao) * Ca_j
+ KmCai * (Nao * Nao * Nao) * (1. + (Na_j * Na_j * Na_j) / (KmNai * KmNai * KmNai))
+ (KmNao * KmNao * KmNao) * (1. + Ca_j / KmCai) * Ca_j;
const double s2_sl = (Nao * Nao * Nao) * Ca_sl * exp((-1. + nu) * FoRT * V_m);
const double s3_sl = Cao * (Na_sl * Na_sl * Na_sl) + KmCao * (Na_sl * Na_sl * Na_sl)
+ (Nao * Nao * Nao) * Ca_sl
+ KmCai * (Nao * Nao * Nao)
* (1. + (Na_sl * Na_sl * Na_sl) / (KmNai * KmNai * KmNai))
+ (KmNao * KmNao * KmNao) * (1. + Ca_sl / KmCai) * Ca_sl;
const double I_ncx_junc = Fjunc * IbarNCX * pow(Q10NCX, Qpow) * (-s2_junc + s1_junc)
* Ka_junc
/ ((1. + ksat * exp((-1. + nu) * FoRT * V_m)) * s3_junc);
const double I_ncx_sl = IbarNCX * pow(Q10NCX, Qpow) * (-s2_sl + s1_sl) * Fsl * Ka_sl
/ ((1. + ksat * exp((-1. + nu) * FoRT * V_m)) * s3_sl);
// Expressions for the I_PCa component
const double I_pca_junc = Fjunc * IbarSLCaP * pow(Q10SLCaP, Qpow) * pow(Ca_j, 1.6)
/ (pow(KmPCa, 1.6) + pow(Ca_j, 1.6));
const double I_pca_sl = IbarSLCaP * pow(Q10SLCaP, Qpow) * pow(Ca_sl, 1.6) * Fsl
/ (pow(KmPCa, 1.6) + pow(Ca_sl, 1.6));
// Expressions for the I_CaBK component
const double I_cabk_junc = Fjunc * GCaB * (-eca_junc + V_m);
const double I_cabk_sl = GCaB * (-eca_sl + V_m) * Fsl;
// Expressions for the SR Fluxes component
const double kCaSR = MaxSR - (MaxSR - MinSR) / (1. + pow(ec50SR / Ca_sr, 2.5));
const double koSRCa = koCa / kCaSR;
const double kiSRCa = kiCa * kCaSR;
const double RI = 1. - Ry_Ri - Ry_Ro - Ry_Rr;
const double dRy_Rr_dt =
kim * RI + kom * Ry_Ro - (Ca_j * Ca_j) * Ry_Rr * koSRCa - Ca_j * Ry_Rr * kiSRCa;
const double dRy_Rr_dt_linearized = -kim - (Ca_j * Ca_j) * koSRCa - Ca_j * kiSRCa;
d_states[n_nodes * STATE_Ry_Rr + i] =
(fabs(dRy_Rr_dt_linearized) > 1.0e-8 ? (-1.0 + exp(dt * dRy_Rr_dt_linearized))
* dRy_Rr_dt / dRy_Rr_dt_linearized
: dt * dRy_Rr_dt)
+ Ry_Rr;
const double dRy_Ro_dt =
kim * Ry_Ri - kom * Ry_Ro + (Ca_j * Ca_j) * Ry_Rr * koSRCa - Ca_j * Ry_Ro * kiSRCa;
const double dRy_Ro_dt_linearized = -kom - Ca_j * kiSRCa;
d_states[n_nodes * STATE_Ry_Ro + i] =
(fabs(dRy_Ro_dt_linearized) > 1.0e-8 ? (-1.0 + exp(dt * dRy_Ro_dt_linearized))
* dRy_Ro_dt / dRy_Ro_dt_linearized
: dt * dRy_Ro_dt)
+ Ry_Ro;
const double dRy_Ri_dt =
-kim * Ry_Ri - kom * Ry_Ri + (Ca_j * Ca_j) * RI * koSRCa + Ca_j * Ry_Ro * kiSRCa;
const double dRy_Ri_dt_linearized = -kim - kom - (Ca_j * Ca_j) * koSRCa;
d_states[n_nodes * STATE_Ry_Ri + i] =
(fabs(dRy_Ri_dt_linearized) > 1.0e-8 ? (-1.0 + exp(dt * dRy_Ri_dt_linearized))
* dRy_Ri_dt / dRy_Ri_dt_linearized
: dt * dRy_Ri_dt)
+ Ry_Ri;
const double J_SRCarel = ks * (-Ca_j + Ca_sr) * Ry_Ro;
const double J_serca = Vmax_SRCaP * pow(Q10SRCaP, Qpow)
* (pow(Ca_i / Kmf, hillSRCaP) - pow(Ca_sr / Kmr, hillSRCaP))
/ (1. + pow(Ca_i / Kmf, hillSRCaP) + pow(Ca_sr / Kmr, hillSRCaP));
const double J_SRleak = 5.348e-6 * Ca_sr - 5.348e-6 * Ca_j;
// Expressions for the Na Buffers component
const double dNa_Bj_dt = -koff_na * Na_Bj + kon_na * (Bmax_Naj - Na_Bj) * Na_j;
const double dNa_Bj_dt_linearized = -koff_na - kon_na * Na_j;
d_states[n_nodes * STATE_Na_Bj + i] =
Na_Bj
+ (fabs(dNa_Bj_dt_linearized) > 1.0e-8 ? (-1.0 + exp(dt * dNa_Bj_dt_linearized))
* dNa_Bj_dt / dNa_Bj_dt_linearized
: dt * dNa_Bj_dt);
const double dNa_Bsl_dt = -koff_na * Na_Bsl + kon_na * (Bmax_Nasl - Na_Bsl) * Na_sl;
const double dNa_Bsl_dt_linearized = -koff_na - kon_na * Na_sl;
d_states[n_nodes * STATE_Na_Bsl + i] =
Na_Bsl
+ (fabs(dNa_Bsl_dt_linearized) > 1.0e-8
? (-1.0 + exp(dt * dNa_Bsl_dt_linearized)) * dNa_Bsl_dt
/ dNa_Bsl_dt_linearized
: dt * dNa_Bsl_dt);
// Expressions for the Cytosolic Ca Buffers component
const double dTn_CL_dt = -koff_tncl * Tn_CL + kon_tncl * (Bmax_TnClow - Tn_CL) * Ca_i;
const double dTn_CL_dt_linearized = -koff_tncl - kon_tncl * Ca_i;
d_states[n_nodes * STATE_Tn_CL + i] =
(fabs(dTn_CL_dt_linearized) > 1.0e-8 ? (-1.0 + exp(dt * dTn_CL_dt_linearized))
* dTn_CL_dt / dTn_CL_dt_linearized
: dt * dTn_CL_dt)
+ Tn_CL;
const double dTn_CHc_dt =
-koff_tnchca * Tn_CHc + kon_tnchca * (Bmax_TnChigh - Tn_CHc - Tn_CHm) * Ca_i;
const double dTn_CHc_dt_linearized = -koff_tnchca - kon_tnchca * Ca_i;
d_states[n_nodes * STATE_Tn_CHc + i] =
(fabs(dTn_CHc_dt_linearized) > 1.0e-8 ? (-1.0 + exp(dt * dTn_CHc_dt_linearized))
* dTn_CHc_dt / dTn_CHc_dt_linearized
: dt * dTn_CHc_dt)
+ Tn_CHc;
const double dTn_CHm_dt =
-koff_tnchmg * Tn_CHm + Mgi * kon_tnchmg * (Bmax_TnChigh - Tn_CHc - Tn_CHm);
const double dTn_CHm_dt_linearized = -koff_tnchmg - Mgi * kon_tnchmg;
d_states[n_nodes * STATE_Tn_CHm + i] =
(fabs(dTn_CHm_dt_linearized) > 1.0e-8 ? (-1.0 + exp(dt * dTn_CHm_dt_linearized))
* dTn_CHm_dt / dTn_CHm_dt_linearized
: dt * dTn_CHm_dt)
+ Tn_CHm;
const double dCaM_dt = -koff_cam * CaM + kon_cam * (Bmax_CaM - CaM) * Ca_i;
const double dCaM_dt_linearized = -koff_cam - kon_cam * Ca_i;
d_states[n_nodes * STATE_CaM + i] =
CaM
+ (fabs(dCaM_dt_linearized) > 1.0e-8
? (-1.0 + exp(dt * dCaM_dt_linearized)) * dCaM_dt / dCaM_dt_linearized
: dt * dCaM_dt);
const double dMyo_c_dt =
-koff_myoca * Myo_c + kon_myoca * (Bmax_myosin - Myo_c - Myo_m) * Ca_i;
const double dMyo_c_dt_linearized = -koff_myoca - kon_myoca * Ca_i;
d_states[n_nodes * STATE_Myo_c + i] =
Myo_c
+ (fabs(dMyo_c_dt_linearized) > 1.0e-8 ? (-1.0 + exp(dt * dMyo_c_dt_linearized))
* dMyo_c_dt / dMyo_c_dt_linearized
: dt * dMyo_c_dt);
const double dMyo_m_dt =
-koff_myomg * Myo_m + Mgi * kon_myomg * (Bmax_myosin - Myo_c - Myo_m);
const double dMyo_m_dt_linearized = -koff_myomg - Mgi * kon_myomg;
d_states[n_nodes * STATE_Myo_m + i] =
Myo_m
+ (fabs(dMyo_m_dt_linearized) > 1.0e-8 ? (-1.0 + exp(dt * dMyo_m_dt_linearized))
* dMyo_m_dt / dMyo_m_dt_linearized
: dt * dMyo_m_dt);
const double dSRB_dt = -koff_sr * SRB + kon_sr * (Bmax_SR - SRB) * Ca_i;
const double dSRB_dt_linearized = -koff_sr - kon_sr * Ca_i;
d_states[n_nodes * STATE_SRB + i] =
(fabs(dSRB_dt_linearized) > 1.0e-8
? (-1.0 + exp(dt * dSRB_dt_linearized)) * dSRB_dt / dSRB_dt_linearized
: dt * dSRB_dt)
+ SRB;
const double J_CaB_cytosol =
-koff_cam * CaM - koff_myoca * Myo_c - koff_myomg * Myo_m - koff_sr * SRB
- koff_tnchca * Tn_CHc - koff_tnchmg * Tn_CHm - koff_tncl * Tn_CL
+ Mgi * kon_myomg * (Bmax_myosin - Myo_c - Myo_m)
+ Mgi * kon_tnchmg * (Bmax_TnChigh - Tn_CHc - Tn_CHm)
+ kon_cam * (Bmax_CaM - CaM) * Ca_i
+ kon_myoca * (Bmax_myosin - Myo_c - Myo_m) * Ca_i + kon_sr * (Bmax_SR - SRB) * Ca_i
+ kon_tnchca * (Bmax_TnChigh - Tn_CHc - Tn_CHm) * Ca_i
+ kon_tncl * (Bmax_TnClow - Tn_CL) * Ca_i;
// Expressions for the Junctional and SL Ca Buffers component
const double Bmax_SLlowsl = Bmax_SLlowsl0 * Vmyo / Vsl;
const double Bmax_SLlowj = Bmax_SLlowj0 * Vmyo / Vjunc;
const double Bmax_SLhighsl = Bmax_SLhighsl0 * Vmyo / Vsl;
const double Bmax_SLhighj = Bmax_SLhighj0 * Vmyo / Vjunc;
const double dSLL_j_dt = -koff_sll * SLL_j + kon_sll * (-SLL_j + Bmax_SLlowj) * Ca_j;
const double dSLL_j_dt_linearized = -koff_sll - kon_sll * Ca_j;
d_states[n_nodes * STATE_SLL_j + i] =
(fabs(dSLL_j_dt_linearized) > 1.0e-8 ? (-1.0 + exp(dt * dSLL_j_dt_linearized))
* dSLL_j_dt / dSLL_j_dt_linearized
: dt * dSLL_j_dt)
+ SLL_j;
const double dSLL_sl_dt = -koff_sll * SLL_sl + kon_sll * (-SLL_sl + Bmax_SLlowsl) * Ca_sl;
const double dSLL_sl_dt_linearized = -koff_sll - kon_sll * Ca_sl;
d_states[n_nodes * STATE_SLL_sl + i] =
(fabs(dSLL_sl_dt_linearized) > 1.0e-8 ? (-1.0 + exp(dt * dSLL_sl_dt_linearized))
* dSLL_sl_dt / dSLL_sl_dt_linearized
: dt * dSLL_sl_dt)
+ SLL_sl;
const double dSLH_j_dt = -koff_slh * SLH_j + kon_slh * (-SLH_j + Bmax_SLhighj) * Ca_j;
const double dSLH_j_dt_linearized = -koff_slh - kon_slh * Ca_j;
d_states[n_nodes * STATE_SLH_j + i] =
(fabs(dSLH_j_dt_linearized) > 1.0e-8 ? (-1.0 + exp(dt * dSLH_j_dt_linearized))
* dSLH_j_dt / dSLH_j_dt_linearized
: dt * dSLH_j_dt)
+ SLH_j;
const double dSLH_sl_dt = -koff_slh * SLH_sl + kon_slh * (-SLH_sl + Bmax_SLhighsl) * Ca_sl;
const double dSLH_sl_dt_linearized = -koff_slh - kon_slh * Ca_sl;
d_states[n_nodes * STATE_SLH_sl + i] =
(fabs(dSLH_sl_dt_linearized) > 1.0e-8 ? (-1.0 + exp(dt * dSLH_sl_dt_linearized))
* dSLH_sl_dt / dSLH_sl_dt_linearized
: dt * dSLH_sl_dt)
+ SLH_sl;
const double J_CaB_junction = -koff_slh * SLH_j - koff_sll * SLL_j
+ kon_slh * (-SLH_j + Bmax_SLhighj) * Ca_j
+ kon_sll * (-SLL_j + Bmax_SLlowj) * Ca_j;
const double J_CaB_sl = -koff_slh * SLH_sl - koff_sll * SLL_sl
+ kon_slh * (-SLH_sl + Bmax_SLhighsl) * Ca_sl
+ kon_sll * (-SLL_sl + Bmax_SLlowsl) * Ca_sl;
// Expressions for the SR Ca Concentrations component
const double Bmax_Csqn = Bmax_Csqn0 * Vmyo / Vsr;
const double dCsqn_b_dt = -koff_csqn * Csqn_b + kon_csqn * (-Csqn_b + Bmax_Csqn) * Ca_sr;
const double dCsqn_b_dt_linearized = -koff_csqn - kon_csqn * Ca_sr;
d_states[n_nodes * STATE_Csqn_b + i] =
Csqn_b
+ (fabs(dCsqn_b_dt_linearized) > 1.0e-8
? (-1.0 + exp(dt * dCsqn_b_dt_linearized)) * dCsqn_b_dt
/ dCsqn_b_dt_linearized
: dt * dCsqn_b_dt);
const double dCa_sr_dt = -J_SRCarel + koff_csqn * Csqn_b
- kon_csqn * (-Csqn_b + Bmax_Csqn) * Ca_sr - J_SRleak * Vmyo / Vsr
+ J_serca;
const double dJ_serca_dCa_sr =
-Vmax_SRCaP * hillSRCaP * pow(Q10SRCaP, Qpow) * pow(Ca_sr / Kmr, hillSRCaP)
/ ((1. + pow(Ca_i / Kmf, hillSRCaP) + pow(Ca_sr / Kmr, hillSRCaP)) * Ca_sr)
- Vmax_SRCaP * hillSRCaP * pow(Q10SRCaP, Qpow) * pow(Ca_sr / Kmr, hillSRCaP)
* (pow(Ca_i / Kmf, hillSRCaP) - pow(Ca_sr / Kmr, hillSRCaP))
/ (((1. + pow(Ca_i / Kmf, hillSRCaP) + pow(Ca_sr / Kmr, hillSRCaP))
* (1. + pow(Ca_i / Kmf, hillSRCaP) + pow(Ca_sr / Kmr, hillSRCaP)))
* Ca_sr);
const double dCa_sr_dt_linearized = -kon_csqn * (-Csqn_b + Bmax_Csqn) - ks * Ry_Ro
- 5.348e-6 * Vmyo / Vsr + dJ_serca_dCa_sr;
d_states[n_nodes * STATE_Ca_sr + i] =
Ca_sr
+ (fabs(dCa_sr_dt_linearized) > 1.0e-8 ? (-1.0 + exp(dt * dCa_sr_dt_linearized))
* dCa_sr_dt / dCa_sr_dt_linearized
: dt * dCa_sr_dt);
// Expressions for the Na Concentrations component
const double I_Na_tot_junc =
3. * I_nak_junc + 3. * I_ncx_junc + I_CaNa_junc + I_Na_junc + I_nabk_junc;
const double I_Na_tot_sl = 3. * I_nak_sl + 3. * I_ncx_sl + I_CaNa_sl + I_Na_sl + I_nabk_sl;
const double dNa_j_dt = -dNa_Bj_dt + J_na_juncsl * (-Na_j + Na_sl) / Vjunc
- Cmem * I_Na_tot_junc / (Frdy * Vjunc);
const double dI_ncx_junc_ds1_junc =
Fjunc * IbarNCX * pow(Q10NCX, Qpow) * Ka_junc
/ ((1. + ksat * exp((-1. + nu) * FoRT * V_m)) * s3_junc);
const double ds3_junc_dNa_j =
3. * Cao * (Na_j * Na_j) + 3. * KmCao * (Na_j * Na_j)
+ 3. * KmCai * (Nao * Nao * Nao) * (Na_j * Na_j) / (KmNai * KmNai * KmNai);
const double dI_Na_junc_dena_junc = -Fjunc * GNa * (m * m * m) * h * j;
const double dI_nabk_junc_dena_junc = -Fjunc * GNaB;
const double ds1_junc_dNa_j = 3. * Cao * (Na_j * Na_j) * exp(nu * FoRT * V_m);
const double dI_CaNa_junc_dibarna_j =
0.45 * Fjunc_CaL * pow(Q10CaL, Qpow) * (1. + fcaCaj - f_Ca_Bj) * d * f;
const double dI_ncx_junc_ds3_junc =
-Fjunc * IbarNCX * pow(Q10NCX, Qpow) * (-s2_junc + s1_junc) * Ka_junc
/ ((1. + ksat * exp((-1. + nu) * FoRT * V_m)) * (s3_junc * s3_junc));
const double dena_junc_dNa_j = -1. / (FoRT * Na_j);
const double dibarna_j_dNa_j =
0.75 * Frdy * GCaL * pNa * FoRT * V_m * exp(FoRT * V_m) / (-1. + exp(FoRT * V_m));
const double dI_nak_junc_dNa_j =
4. * Fjunc * IbarNaK * Ko * (((KmNaip) * (KmNaip)) * ((KmNaip) * (KmNaip))) * fnak
/ (((1.
+ (((KmNaip) * (KmNaip)) * ((KmNaip) * (KmNaip)))
/ (((Na_j) * (Na_j)) * ((Na_j) * (Na_j))))
* (1.
+ (((KmNaip) * (KmNaip)) * ((KmNaip) * (KmNaip)))
/ (((Na_j) * (Na_j)) * ((Na_j) * (Na_j)))))
* (KmKo + Ko) * pow(Na_j, 5.));
const double dNa_j_dt_linearized =
-J_na_juncsl / Vjunc
- Cmem
* (3. * dI_nak_junc_dNa_j + dI_CaNa_junc_dibarna_j * dibarna_j_dNa_j
+ dI_Na_junc_dena_junc * dena_junc_dNa_j
+ dI_nabk_junc_dena_junc * dena_junc_dNa_j
+ 3. * dI_ncx_junc_ds1_junc * ds1_junc_dNa_j
+ 3. * dI_ncx_junc_ds3_junc * ds3_junc_dNa_j)
/ (Frdy * Vjunc);
d_states[n_nodes * STATE_Na_j + i] =
Na_j
+ (fabs(dNa_j_dt_linearized) > 1.0e-8
? (-1.0 + exp(dt * dNa_j_dt_linearized)) * dNa_j_dt / dNa_j_dt_linearized
: dt * dNa_j_dt);
const double dNa_sl_dt = -dNa_Bsl_dt + J_na_juncsl * (-Na_sl + Na_j) / Vsl
+ J_na_slmyo * (-Na_sl + Na_i) / Vsl
- Cmem * I_Na_tot_sl / (Frdy * Vsl);
const double dI_Na_sl_dena_sl = -GNa * (m * m * m) * Fsl * h * j;
const double dI_CaNa_sl_dibarna_sl =
0.45 * pow(Q10CaL, Qpow) * (1. + fcaCaMSL - f_Ca_Bsl) * Fsl_CaL * d * f;
const double dI_nabk_sl_dena_sl = -GNaB * Fsl;
const double dI_ncx_sl_ds3_sl =
-IbarNCX * pow(Q10NCX, Qpow) * (-s2_sl + s1_sl) * Fsl * Ka_sl
/ ((1. + ksat * exp((-1. + nu) * FoRT * V_m)) * (s3_sl * s3_sl));
const double ds1_sl_dNa_sl = 3. * Cao * (Na_sl * Na_sl) * exp(nu * FoRT * V_m);
const double ds3_sl_dNa_sl =
3. * Cao * (Na_sl * Na_sl) + 3. * KmCao * (Na_sl * Na_sl)
+ 3. * KmCai * (Nao * Nao * Nao) * (Na_sl * Na_sl) / (KmNai * KmNai * KmNai);
const double dibarna_sl_dNa_sl =
0.75 * Frdy * GCaL * pNa * FoRT * V_m * exp(FoRT * V_m) / (-1. + exp(FoRT * V_m));
const double dI_nak_sl_dNa_sl =
4. * IbarNaK * Ko * (((KmNaip) * (KmNaip)) * ((KmNaip) * (KmNaip))) * Fsl * fnak
/ (((1.
+ (((KmNaip) * (KmNaip)) * ((KmNaip) * (KmNaip)))
/ (((Na_sl) * (Na_sl)) * ((Na_sl) * (Na_sl))))
* (1.
+ (((KmNaip) * (KmNaip)) * ((KmNaip) * (KmNaip)))
/ (((Na_sl) * (Na_sl)) * ((Na_sl) * (Na_sl)))))
* (KmKo + Ko) * pow(Na_sl, 5.));
const double dena_sl_dNa_sl = -1. / (FoRT * Na_sl);
const double dI_ncx_sl_ds1_sl = IbarNCX * pow(Q10NCX, Qpow) * Fsl * Ka_sl
/ ((1. + ksat * exp((-1. + nu) * FoRT * V_m)) * s3_sl);
const double dNa_sl_dt_linearized =
-J_na_juncsl / Vsl - J_na_slmyo / Vsl
- Cmem
* (3. * dI_nak_sl_dNa_sl + dI_CaNa_sl_dibarna_sl * dibarna_sl_dNa_sl
+ dI_Na_sl_dena_sl * dena_sl_dNa_sl
+ dI_nabk_sl_dena_sl * dena_sl_dNa_sl
+ 3. * dI_ncx_sl_ds1_sl * ds1_sl_dNa_sl
+ 3. * dI_ncx_sl_ds3_sl * ds3_sl_dNa_sl)
/ (Frdy * Vsl);
d_states[n_nodes * STATE_Na_sl + i] =
Na_sl
+ (fabs(dNa_sl_dt_linearized) > 1.0e-8 ? (-1.0 + exp(dt * dNa_sl_dt_linearized))
* dNa_sl_dt / dNa_sl_dt_linearized
: dt * dNa_sl_dt);
const double dNa_i_dt = J_na_slmyo * (-Na_i + Na_sl) / Vmyo;
const double dNa_i_dt_linearized = -J_na_slmyo / Vmyo;
d_states[n_nodes * STATE_Na_i + i] =
Na_i
+ (fabs(dNa_i_dt_linearized) > 1.0e-8
? (-1.0 + exp(dt * dNa_i_dt_linearized)) * dNa_i_dt / dNa_i_dt_linearized
: dt * dNa_i_dt);
// Expressions for the K Concentration component
const double I_K_tot = -2. * I_nak + I_CaK + I_K1 + I_kp + I_kr + I_ks + I_to;
const double dK_i_dt = 0.;
d_states[n_nodes * STATE_K_i + i] = dt * dK_i_dt + K_i;
// Expressions for the Ca Concentrations component
const double I_Ca_tot_junc = -2. * I_ncx_junc + I_Ca_junc + I_cabk_junc + I_pca_junc;
const double I_Ca_tot_sl = -2. * I_ncx_sl + I_Ca_sl + I_cabk_sl + I_pca_sl;
const double dCa_j_dt = -J_CaB_junction + J_ca_juncsl * (-Ca_j + Ca_sl) / Vjunc
+ J_SRCarel * Vsr / Vjunc + J_SRleak * Vmyo / Vjunc
- Cmem * I_Ca_tot_junc / (2. * Frdy * Vjunc);
const double dI_ncx_junc_ds2_junc =
-Fjunc * IbarNCX * pow(Q10NCX, Qpow) * Ka_junc
/ ((1. + ksat * exp((-1. + nu) * FoRT * V_m)) * s3_junc);
const double dKa_junc_dCa_j =
2. * (Kdact * Kdact)
/ (((1. + (Kdact * Kdact) / (Ca_j * Ca_j)) * (1. + (Kdact * Kdact) / (Ca_j * Ca_j)))
* (Ca_j * Ca_j * Ca_j));
const double ds3_junc_dCa_j = (Nao * Nao * Nao)
+ (KmNao * KmNao * KmNao) * (1. + Ca_j / KmCai)
+ (KmNao * KmNao * KmNao) * Ca_j / KmCai;
const double deca_junc_dCa_j = -1. / (2. * Ca_j * FoRT);
const double dI_ncx_junc_dKa_junc =
Fjunc * IbarNCX * pow(Q10NCX, Qpow) * (-s2_junc + s1_junc)
/ ((1. + ksat * exp((-1. + nu) * FoRT * V_m)) * s3_junc);
const double dJ_CaB_junction_dCa_j =
kon_slh * (-SLH_j + Bmax_SLhighj) + kon_sll * (-SLL_j + Bmax_SLlowj);
const double dibarca_j_dCa_j = 1.364 * Frdy * GCaL * pCa * FoRT * V_m * exp(2. * FoRT * V_m)
/ (-1. + exp(2. * FoRT * V_m));
const double dI_Ca_junc_dibarca_j =
0.45 * Fjunc_CaL * pow(Q10CaL, Qpow) * (1. + fcaCaj - f_Ca_Bj) * d * f;
const double ds2_junc_dCa_j = (Nao * Nao * Nao) * exp((-1. + nu) * FoRT * V_m);
const double dI_cabk_junc_deca_junc = -Fjunc * GCaB;
const double dI_pca_junc_dCa_j =
1.6 * Fjunc * IbarSLCaP * pow(Q10SLCaP, Qpow) * pow(Ca_j, 0.6)
/ (pow(KmPCa, 1.6) + pow(Ca_j, 1.6))
- 1.6 * Fjunc * IbarSLCaP * pow(Q10SLCaP, Qpow) * pow(Ca_j, 2.2)
/ ((pow(KmPCa, 1.6) + pow(Ca_j, 1.6))
* (pow(KmPCa, 1.6) + pow(Ca_j, 1.6)));
const double dJ_SRCarel_dCa_j = -ks * Ry_Ro;
const double dCa_j_dt_linearized =
-dJ_CaB_junction_dCa_j - J_ca_juncsl / Vjunc - 5.348e-6 * Vmyo / Vjunc
+ Vsr * dJ_SRCarel_dCa_j / Vjunc
- Cmem
* (dI_Ca_junc_dibarca_j * dibarca_j_dCa_j
+ dI_cabk_junc_deca_junc * deca_junc_dCa_j
- 2. * dI_ncx_junc_dKa_junc * dKa_junc_dCa_j
- 2. * dI_ncx_junc_ds2_junc * ds2_junc_dCa_j
- 2. * dI_ncx_junc_ds3_junc * ds3_junc_dCa_j + dI_pca_junc_dCa_j)
/ (2. * Frdy * Vjunc);
d_states[n_nodes * STATE_Ca_j + i] =
Ca_j
+ (fabs(dCa_j_dt_linearized) > 1.0e-8
? (-1.0 + exp(dt * dCa_j_dt_linearized)) * dCa_j_dt / dCa_j_dt_linearized
: dt * dCa_j_dt);
const double dCa_sl_dt = -J_CaB_sl + J_ca_juncsl * (-Ca_sl + Ca_j) / Vsl
+ J_ca_slmyo * (-Ca_sl + Ca_i) / Vsl
- Cmem * I_Ca_tot_sl / (2. * Frdy * Vsl);
const double dI_Ca_sl_dibarca_sl =
0.45 * pow(Q10CaL, Qpow) * (1. + fcaCaMSL - f_Ca_Bsl) * Fsl_CaL * d * f;
const double dI_ncx_sl_ds2_sl = -IbarNCX * pow(Q10NCX, Qpow) * Fsl * Ka_sl
/ ((1. + ksat * exp((-1. + nu) * FoRT * V_m)) * s3_sl);
const double dKa_sl_dCa_sl = 2. * (Kdact * Kdact)
/ (((1. + (Kdact * Kdact) / (Ca_sl * Ca_sl))
* (1. + (Kdact * Kdact) / (Ca_sl * Ca_sl)))
* (Ca_sl * Ca_sl * Ca_sl));
const double deca_sl_dCa_sl = -1. / (2. * Ca_sl * FoRT);
const double dibarca_sl_dCa_sl = 1.364 * Frdy * GCaL * pCa * FoRT * V_m
* exp(2. * FoRT * V_m) / (-1. + exp(2. * FoRT * V_m));
const double dI_cabk_sl_deca_sl = -GCaB * Fsl;
const double ds3_sl_dCa_sl = (Nao * Nao * Nao)
+ (KmNao * KmNao * KmNao) * (1. + Ca_sl / KmCai)
+ (KmNao * KmNao * KmNao) * Ca_sl / KmCai;
const double dI_ncx_sl_dKa_sl = IbarNCX * pow(Q10NCX, Qpow) * (-s2_sl + s1_sl) * Fsl
/ ((1. + ksat * exp((-1. + nu) * FoRT * V_m)) * s3_sl);
const double ds2_sl_dCa_sl = (Nao * Nao * Nao) * exp((-1. + nu) * FoRT * V_m);
const double dI_pca_sl_dCa_sl = 1.6 * IbarSLCaP * pow(Q10SLCaP, Qpow) * pow(Ca_sl, 0.6)
* Fsl / (pow(KmPCa, 1.6) + pow(Ca_sl, 1.6))
- 1.6 * IbarSLCaP * pow(Q10SLCaP, Qpow) * pow(Ca_sl, 2.2)
* Fsl
/ ((pow(KmPCa, 1.6) + pow(Ca_sl, 1.6))
* (pow(KmPCa, 1.6) + pow(Ca_sl, 1.6)));
const double dJ_CaB_sl_dCa_sl =
kon_slh * (-SLH_sl + Bmax_SLhighsl) + kon_sll * (-SLL_sl + Bmax_SLlowsl);
const double dCa_sl_dt_linearized =
-dJ_CaB_sl_dCa_sl - J_ca_juncsl / Vsl - J_ca_slmyo / Vsl
- Cmem
* (dI_Ca_sl_dibarca_sl * dibarca_sl_dCa_sl
+ dI_cabk_sl_deca_sl * deca_sl_dCa_sl
- 2. * dI_ncx_sl_dKa_sl * dKa_sl_dCa_sl
- 2. * dI_ncx_sl_ds2_sl * ds2_sl_dCa_sl
- 2. * dI_ncx_sl_ds3_sl * ds3_sl_dCa_sl + dI_pca_sl_dCa_sl)
/ (2. * Frdy * Vsl);
d_states[n_nodes * STATE_Ca_sl + i] =
Ca_sl
+ (fabs(dCa_sl_dt_linearized) > 1.0e-8 ? (-1.0 + exp(dt * dCa_sl_dt_linearized))
* dCa_sl_dt / dCa_sl_dt_linearized
: dt * dCa_sl_dt);
const double dCa_i_dt =
-J_CaB_cytosol + J_ca_slmyo * (-Ca_i + Ca_sl) / Vmyo - J_serca * Vsr / Vmyo;
const double dJ_serca_dCa_i =
Vmax_SRCaP * hillSRCaP * pow(Q10SRCaP, Qpow) * pow(Ca_i / Kmf, hillSRCaP)
/ ((1. + pow(Ca_i / Kmf, hillSRCaP) + pow(Ca_sr / Kmr, hillSRCaP)) * Ca_i)
- Vmax_SRCaP * hillSRCaP * pow(Q10SRCaP, Qpow) * pow(Ca_i / Kmf, hillSRCaP)
* (pow(Ca_i / Kmf, hillSRCaP) - pow(Ca_sr / Kmr, hillSRCaP))
/ (((1. + pow(Ca_i / Kmf, hillSRCaP) + pow(Ca_sr / Kmr, hillSRCaP))
* (1. + pow(Ca_i / Kmf, hillSRCaP) + pow(Ca_sr / Kmr, hillSRCaP)))
* Ca_i);
const double dJ_CaB_cytosol_dCa_i =
kon_cam * (Bmax_CaM - CaM) + kon_myoca * (Bmax_myosin - Myo_c - Myo_m)
+ kon_sr * (Bmax_SR - SRB) + kon_tnchca * (Bmax_TnChigh - Tn_CHc - Tn_CHm)
+ kon_tncl * (Bmax_TnClow - Tn_CL);
const double dCa_i_dt_linearized =
-dJ_CaB_cytosol_dCa_i - J_ca_slmyo / Vmyo - Vsr * dJ_serca_dCa_i / Vmyo;
d_states[n_nodes * STATE_Ca_i + i] =
Ca_i
+ (fabs(dCa_i_dt_linearized) > 1.0e-8
? (-1.0 + exp(dt * dCa_i_dt_linearized)) * dCa_i_dt / dCa_i_dt_linearized
: dt * dCa_i_dt);
// Expressions for the Membrane potential component
const double i_Stim =
(t - stim_period * floor(t / stim_period) <= stim_duration + stim_start
&& t - stim_period * floor(t / stim_period) >= stim_start
? -stim_amplitude
: 0.);
const double I_Na_tot = I_Na_tot_junc + I_Na_tot_sl;
const double I_Cl_tot = I_ClCa + I_Clbk;
const double I_Ca_tot = I_Ca_tot_junc + I_Ca_tot_sl;
const double I_tot = I_Ca_tot + I_Cl_tot + I_K_tot + I_Na_tot;
const double dV_m_dt = -I_tot - i_Stim;
const double ds2_sl_dV_m =
(Nao * Nao * Nao) * (-1. + nu) * Ca_sl * FoRT * exp((-1. + nu) * FoRT * V_m);
const double dI_nak_junc_dfnak = Fjunc * IbarNaK * Ko
/ ((1.
+ (((KmNaip) * (KmNaip)) * ((KmNaip) * (KmNaip)))
/ (((Na_j) * (Na_j)) * ((Na_j) * (Na_j))))
* (KmKo + Ko));
const double daki_dV_m = -1.78913955652069e-7 * exp(0.2385 * V_m - 0.2385 * ek)
/ ((1. + 7.35454251046446e-7 * exp(0.2385 * V_m - 0.2385 * ek))
* (1. + 7.35454251046446e-7 * exp(0.2385 * V_m - 0.2385 * ek)));
const double dkiss_dbki = -aki / ((aki + bki) * (aki + bki));
const double dkiss_daki = 1.0 / (aki + bki) - aki / ((aki + bki) * (aki + bki));
const double dbki_dV_m =
(7.12227979727698e-18 * exp(0.06175 * V_m - 0.06175 * ek)
+ 0.0612539602025867 * exp(0.08032 * V_m - 0.08032 * ek))
/ (1. + 0.0867722941576933 * exp(0.5143 * ek - 0.5143 * V_m))
+ 0.0446269908853017
* (0.762624006506308 * exp(0.08032 * V_m - 0.08032 * ek)
+ 1.15340563518656e-16 * exp(0.06175 * V_m - 0.06175 * ek))
* exp(0.5143 * ek - 0.5143 * V_m)
/ ((1. + 0.0867722941576933 * exp(0.5143 * ek - 0.5143 * V_m))
* (1. + 0.0867722941576933 * exp(0.5143 * ek - 0.5143 * V_m)));
const double dI_K1_dV_m = 0.430331482911935 * GK1 * sqrt(Ko) * kiss
+ 0.430331482911935 * GK1 * sqrt(Ko) * (-ek + V_m)
* (daki_dV_m * dkiss_daki + dbki_dV_m * dkiss_dbki);
const double dI_kp_junc_dkp_kp = Fjunc * GKp * (-ek + V_m);
const double dibarca_sl_dV_m =
4. * Frdy * GCaL * pCa * (-0.341 * Cao + 0.341 * Ca_sl * exp(2. * FoRT * V_m))
* FoRT / (-1. + exp(2. * FoRT * V_m))
- 8. * Frdy * GCaL * pCa * (FoRT * FoRT)
* (-0.341 * Cao + 0.341 * Ca_sl * exp(2. * FoRT * V_m)) * V_m
* exp(2. * FoRT * V_m)
/ ((-1. + exp(2. * FoRT * V_m)) * (-1. + exp(2. * FoRT * V_m)))
+ 2.728 * Frdy * GCaL * pCa * (FoRT * FoRT) * Ca_sl * V_m * exp(2. * FoRT * V_m)
/ (-1. + exp(2. * FoRT * V_m));
const double ds2_junc_dV_m =
(Nao * Nao * Nao) * (-1. + nu) * Ca_j * FoRT * exp((-1. + nu) * FoRT * V_m);
const double dibarna_j_dV_m =
Frdy * GCaL * pNa * (-0.75 * Nao + 0.75 * Na_j * exp(FoRT * V_m)) * FoRT
/ (-1. + exp(FoRT * V_m))
- Frdy * GCaL * pNa * (FoRT * FoRT) * (-0.75 * Nao + 0.75 * Na_j * exp(FoRT * V_m))
* V_m * exp(FoRT * V_m)
/ ((-1. + exp(FoRT * V_m)) * (-1. + exp(FoRT * V_m)))
+ 0.75 * Frdy * GCaL * pNa * (FoRT * FoRT) * Na_j * V_m * exp(FoRT * V_m)
/ (-1. + exp(FoRT * V_m));
const double dibarna_sl_dV_m =
Frdy * GCaL * pNa * (-0.75 * Nao + 0.75 * Na_sl * exp(FoRT * V_m)) * FoRT
/ (-1. + exp(FoRT * V_m))
- Frdy * GCaL * pNa * (FoRT * FoRT) * (-0.75 * Nao + 0.75 * Na_sl * exp(FoRT * V_m))
* V_m * exp(FoRT * V_m)
/ ((-1. + exp(FoRT * V_m)) * (-1. + exp(FoRT * V_m)))
+ 0.75 * Frdy * GCaL * pNa * (FoRT * FoRT) * Na_sl * V_m * exp(FoRT * V_m)
/ (-1. + exp(FoRT * V_m));
const double dI_kr_drkr = (-ek + V_m) * gkr * x_kr;
const double dI_tos_dV_m = GtoSlow * x_to_s * y_to_s;
const double dI_ks_sl_dV_m = (x_ks * x_ks) * Fsl * gks_sl;
const double dI_ClCa_junc_dV_m = Fjunc * GClCa / (1. + KdClCa / Ca_j);
const double drkr_dV_m =
-exp(37. / 12. + V_m / 24.)
/ (24. * ((1. + exp(37. / 12. + V_m / 24.)) * (1. + exp(37. / 12. + V_m / 24.))));
const double dI_kr_dV_m = gkr * rkr * x_kr + (-ek + V_m) * drkr_dV_m * gkr * x_kr;
const double dfnak_dV_m =
(0.01245 * FoRT * exp(-0.1 * FoRT * V_m) + 0.0365 * FoRT * exp(-FoRT * V_m) * sigma)
/ ((1. + 0.1245 * exp(-0.1 * FoRT * V_m) + 0.0365 * exp(-FoRT * V_m) * sigma)
* (1. + 0.1245 * exp(-0.1 * FoRT * V_m) + 0.0365 * exp(-FoRT * V_m) * sigma));
const double ds1_junc_dV_m = Cao * nu * (Na_j * Na_j * Na_j) * FoRT * exp(nu * FoRT * V_m);
const double dI_tof_dV_m = GtoFast * x_to_f * y_to_f;
const double dI_ks_junc_dV_m = Fjunc * (x_ks * x_ks) * gks_junc;
const double ds1_sl_dV_m = Cao * nu * (Na_sl * Na_sl * Na_sl) * FoRT * exp(nu * FoRT * V_m);
const double dI_ncx_sl_dV_m =
IbarNCX * pow(Q10NCX, Qpow) * (-ds2_sl_dV_m + ds1_sl_dV_m) * Fsl * Ka_sl
/ ((1. + ksat * exp((-1. + nu) * FoRT * V_m)) * s3_sl)
- IbarNCX * ksat * pow(Q10NCX, Qpow) * (-1. + nu) * (-s2_sl + s1_sl) * FoRT * Fsl
* Ka_sl * exp((-1. + nu) * FoRT * V_m)
/ (((1. + ksat * exp((-1. + nu) * FoRT * V_m))
* (1. + ksat * exp((-1. + nu) * FoRT * V_m)))
* s3_sl);
const double dI_CaK_dibark =
0.45 * pow(Q10CaL, Qpow)
* (Fjunc_CaL * (1. + fcaCaj - f_Ca_Bj) + (1. + fcaCaMSL - f_Ca_Bsl) * Fsl_CaL) * d
* f;
const double dI_K1_dkiss = 0.430331482911935 * GK1 * sqrt(Ko) * (-ek + V_m);
const double dI_Na_junc_dV_m = Fjunc * GNa * (m * m * m) * h * j;
const double dI_kp_sl_dkp_kp = GKp * (-ek + V_m) * Fsl;
const double dI_Na_sl_dV_m = GNa * (m * m * m) * Fsl * h * j;
const double dkp_kp_dV_m = 298.741733340907 * exp(-0.167224080267559 * V_m)
/ ((1. + 1786.47556537862 * exp(-0.167224080267559 * V_m))
* (1. + 1786.47556537862 * exp(-0.167224080267559 * V_m)));
const double dI_ncx_junc_dV_m =
Fjunc * IbarNCX * pow(Q10NCX, Qpow) * (-ds2_junc_dV_m + ds1_junc_dV_m) * Ka_junc
/ ((1. + ksat * exp((-1. + nu) * FoRT * V_m)) * s3_junc)
- Fjunc * IbarNCX * ksat * pow(Q10NCX, Qpow) * (-1. + nu) * (-s2_junc + s1_junc)
* FoRT * Ka_junc * exp((-1. + nu) * FoRT * V_m)
/ (((1. + ksat * exp((-1. + nu) * FoRT * V_m))
* (1. + ksat * exp((-1. + nu) * FoRT * V_m)))
* s3_junc);
const double dI_ClCa_sl_dV_m = GClCa * Fsl / (1. + KdClCa / Ca_sl);
const double dI_kp_junc_dV_m =
Fjunc * GKp * kp_kp + Fjunc * GKp * (-ek + V_m) * dkp_kp_dV_m;
const double dibarca_j_dV_m =
4. * Frdy * GCaL * pCa * (-0.341 * Cao + 0.341 * Ca_j * exp(2. * FoRT * V_m)) * FoRT
/ (-1. + exp(2. * FoRT * V_m))
- 8. * Frdy * GCaL * pCa * (FoRT * FoRT)
* (-0.341 * Cao + 0.341 * Ca_j * exp(2. * FoRT * V_m)) * V_m
* exp(2. * FoRT * V_m)
/ ((-1. + exp(2. * FoRT * V_m)) * (-1. + exp(2. * FoRT * V_m)))
+ 2.728 * Frdy * GCaL * pCa * (FoRT * FoRT) * Ca_j * V_m * exp(2. * FoRT * V_m)
/ (-1. + exp(2. * FoRT * V_m));
const double dibark_dV_m = Frdy * GCaL * pK * (-0.75 * Ko + 0.75 * K_i * exp(FoRT * V_m))
* FoRT / (-1. + exp(FoRT * V_m))
- Frdy * GCaL * pK * (FoRT * FoRT)
* (-0.75 * Ko + 0.75 * K_i * exp(FoRT * V_m)) * V_m
* exp(FoRT * V_m)
/ ((-1. + exp(FoRT * V_m)) * (-1. + exp(FoRT * V_m)))
+ 0.75 * Frdy * GCaL * pK * (FoRT * FoRT) * K_i * V_m
* exp(FoRT * V_m) / (-1. + exp(FoRT * V_m));
const double dI_kp_sl_dV_m = GKp * Fsl * kp_kp + GKp * (-ek + V_m) * Fsl * dkp_kp_dV_m;
const double dI_nak_sl_dfnak = IbarNaK * Ko * Fsl
/ ((1.
+ (((KmNaip) * (KmNaip)) * ((KmNaip) * (KmNaip)))
/ (((Na_sl) * (Na_sl)) * ((Na_sl) * (Na_sl))))
* (KmKo + Ko));
const double dV_m_dt_linearized =
-GClB - dI_ClCa_junc_dV_m - dI_ClCa_sl_dV_m - dI_K1_dV_m - dI_Na_junc_dV_m
- dI_Na_sl_dV_m - dI_kp_junc_dV_m - dI_kp_sl_dV_m - dI_kr_dV_m - dI_ks_junc_dV_m
- dI_ks_sl_dV_m - dI_ncx_junc_dV_m - dI_ncx_sl_dV_m - dI_tof_dV_m - dI_tos_dV_m
- Fjunc * GCaB - Fjunc * GNaB - GCaB * Fsl - GNaB * Fsl
- (daki_dV_m * dkiss_daki + dbki_dV_m * dkiss_dbki) * dI_K1_dkiss
- dI_CaK_dibark * dibark_dV_m - dI_CaNa_junc_dibarna_j * dibarna_j_dV_m
- dI_CaNa_sl_dibarna_sl * dibarna_sl_dV_m - dI_Ca_junc_dibarca_j * dibarca_j_dV_m
- dI_Ca_sl_dibarca_sl * dibarca_sl_dV_m - dI_kp_junc_dkp_kp * dkp_kp_dV_m
- dI_kp_sl_dkp_kp * dkp_kp_dV_m - dI_kr_drkr * drkr_dV_m
- dI_nak_junc_dfnak * dfnak_dV_m - dI_nak_sl_dfnak * dfnak_dV_m
- dI_ncx_junc_ds1_junc * ds1_junc_dV_m - dI_ncx_junc_ds2_junc * ds2_junc_dV_m
- dI_ncx_sl_ds1_sl * ds1_sl_dV_m - dI_ncx_sl_ds2_sl * ds2_sl_dV_m;
d_states[n_nodes * STATE_V_m + i] =
(fabs(dV_m_dt_linearized) > 1.0e-8
? (-1.0 + exp(dt * dV_m_dt_linearized)) * dV_m_dt / dV_m_dt_linearized
: dt * dV_m_dt)
+ V_m;
}
}
|
the_stack_data/638248.c | #include <stdio.h>
#include<string.h>
#define MAXLEN 1000
int mode=-1;
inline void printReadMe();
inline void encode(char*);
inline void decode(char*);
int main() {
printReadMe();
char words[MAXLEN+1];
while(~scanf("%d",&mode)){
if(-1==mode)return 0;
scanf("%s",words);
if(1==mode){
encode(words);
}
if(0==mode){
decode(words);
}
}
return 0;
}
inline void printReadMe(){
system("cls");
puts("****Usage****");
puts("1 str : encode str");
puts("0 str : decode str");
puts("-1 : quit\n");
}
inline void encode(char *str){
int i;
for(i=0;i<strlen(str);++i){
str[i]+=10;
//shift 10
}
printf("encoded_str: %s\n\n",str);
}
inline void decode(char *str){
int i;
for(i=0;i<strlen(str);++i){
str[i]-=10;
//shift -10
}
printf("decoded_str: %s\n\n",str);
}
|
the_stack_data/137543.c | #include <stdio.h>
int gcdEuclidian(int a, int b)
{
while(a != b)
{
if(a > b)
a = a - b;
else if(a < b)
b = b - a;
}
return a;
}
int gcdEuclidianMod(int a, int b)
{
while(a > 0)
{
a = a % b;
b = b - a;
}
return b;
}
int scm(int a, int b)
{
return a * b / gcdEuclidianMod(a, b);
}
int main()
{
printf("Euclid: %d\n", gcdEuclidian(20, 12));
printf("EuclidMod: %d\n", gcdEuclidianMod(20, 12));
printf("SCM: %d\n", scm(20, 12));
return 0;
}
|
the_stack_data/138555.c | /* Make the necessary includes and set up the variables. */
#include <sys/types.h>
#include <sys/socket.h>
#include <stdio.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <stdlib.h>
int main()
{
int sockfd;
int len;
struct sockaddr_in address;
int result;
char mensaje[1024];
char respuesta[1024]; //Inicializamos a 1 para que entre en el while
while(respuesta != "exit")
{
printf("Escribe mensaje a enviar a servidor ");
fflush(stdin);
scanf("%s",mensaje); //Para capturar caracteres utiliza "%s"
/* creamos socket para el cliente. */
sockfd = socket(AF_INET, SOCK_STREAM, 0);
address.sin_family = AF_INET;
address.sin_addr.s_addr = inet_addr("43.255.190.165");
address.sin_port = htons(9734);
len = sizeof(address);
/* Conectamos socket al servidos */
result = connect(sockfd, (struct sockaddr *)&address, len);
if(result == -1) {
perror("oops: client3");
exit(1);
}
write(sockfd, mensaje, 1024);
//printf("El cliente envia: %c\n",numero);
read(sockfd, respuesta, 1024);
printf("Respuesta de Servidor: %s\n", respuesta );
close(sockfd);
}
printf("terminado: %s !!!\n", mensaje);
exit(0);
} |
the_stack_data/1829.c | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
#define TRUE 1 //真
#define FALSE 0 //假
#define OK 1 //算法正常完成
#define ERROR 0 //算法执行出错
#define INFEASIBLE -1 //算法不可实现
#define SEQ_OVERFLOW -2 //多项式序号溢出
typedef int STATUS;
typedef struct polyn_node *polyn_ptr;
struct polyn_node
{
double coeff;
int exp;
polyn_ptr next;
};
typedef polyn_ptr POLYN;
POLYN polyn[10] = {NULL};
int command;
FILE *fin = NULL, *fout = NULL;
polyn_ptr MakeNode() //分配节点空间 完成初始化
{
polyn_ptr hook;
hook = (polyn_ptr)malloc(sizeof(struct polyn_node));
hook->coeff = 0.0;
hook->exp = 0;
hook->next = NULL;
return hook;
}
STATUS is_proper_seq(int seq) //验证序号是否在0到9之间
{
if (seq < 0 || seq > 9)
return SEQ_OVERFLOW;
else
return TRUE;
}
STATUS is_null(int seq) //验证多项式指针是否为空
{
if (is_proper_seq(seq) == SEQ_OVERFLOW)
return SEQ_OVERFLOW;
else if (polyn[seq] == NULL)
return TRUE;
else
return FALSE;
}
STATUS is_empty(int seq) //验证多项式是否为空
{
if (is_proper_seq(seq) == SEQ_OVERFLOW)
return SEQ_OVERFLOW;
else if (is_null(seq) == TRUE) //不推荐验证空指针
return ERROR;
else if (polyn[seq]->next == NULL)
return TRUE;
else
return FALSE;
}
POLYN ReversePolyn(POLYN P, int max_exp) //反序 用于除法 非辗转相除法
{
POLYN AL_P;
polyn_ptr hook, transfer;
if (P == NULL)
return NULL;
AL_P = MakeNode();
if (P->next == NULL)
return AL_P;
hook = P;
while (hook->next != NULL)
{
hook = hook->next;
transfer = MakeNode();
transfer->coeff = hook->coeff;
transfer->exp = max_exp - hook->exp;
transfer->next = AL_P->next;
AL_P->next = transfer;
}
return AL_P;
}
STATUS ShrinkPolyn(POLYN P) //将多项式中系数为0的节点删除
{
polyn_ptr hook, destroyer;
if (P == NULL)
return ERROR;
hook = P;
while (hook->next != NULL)
{
if (hook->next->coeff == 0.0)
{
destroyer = hook->next;
hook->next = destroyer->next;
free(destroyer);
}
else
hook = hook->next;
}
return OK;
}
STATUS InsertPolyn(POLYN P, double coeff, int exp) //将系数为coeff 幂为exp的项 插入多项式P中 用于创建多项式
{
polyn_ptr hook, catch;
if (P == NULL)
return ERROR;
hook = P;
while (hook != NULL)
{
if (hook->next == NULL)
{
hook = hook->next = MakeNode();
hook->coeff = coeff;
hook->exp = exp;
hook->next = NULL;
return OK;
}
else if (hook->next->exp == exp)
{
hook = hook->next;
hook->coeff += coeff;
return OK;
}
else if (hook->next->exp < exp)
{
catch = MakeNode();
catch->coeff = coeff;
catch->exp = exp;
catch->next = hook->next;
hook->next = catch;
return OK;
}
else
hook = hook->next;
}
return ERROR;
}
STATUS CreatePolyn(int seq) //seq处创立多项式,包含头结点
{
double coeff;
int exp;
polyn_ptr hook;
if (is_proper_seq(seq) == SEQ_OVERFLOW)
return SEQ_OVERFLOW;
if (fin == NULL || fout == NULL)
return ERROR;
if (DestroyPolyn(seq) != OK)
return ERROR;
polyn[seq] = MakeNode(); //创建头结点
fscanf(fin, "%lf %d", &coeff, &exp); //输入第一对数据
while (coeff != 0.0 || exp != 0)
{
if (exp < 0)
return ERROR;
if (InsertPolyn(polyn[seq], coeff, exp) == OK)
fscanf(fin, "%lf %d", &coeff, &exp);
else
return ERROR;
}
if (ShrinkPolyn(polyn[seq]) == OK)
return OK;
else
return ERROR;
}
STATUS PrintPolyn(int seq) //对未创建多项式以及空多项式 输出NULL 其余降幂排列, 小数保留四位
{
polyn_ptr hook;
if (is_proper_seq(seq) == SEQ_OVERFLOW)
return SEQ_OVERFLOW;
if (is_null(seq) == TRUE)
{
fprintf(fout, "NULL\n");
return OK;
}
if (is_empty(seq) == TRUE)
{
fprintf(fout, "0.0000\n");
return OK;
}
else
{
hook = polyn[seq]->next;
while (hook != NULL)
{
fprintf(fout, "%.4lf", hook->coeff);
if (hook->exp == 0) ;
else if (hook->exp == 1)
fprintf(fout, "x");
else
fprintf(fout, "x^%d", hook->exp);
if (hook->next != NULL && hook->next->coeff > 0)
fprintf(fout, "+");
hook = hook->next;
}
fprintf(fout, "\n");
return OK;
}
}
STATUS CopyPolyn(int seq_m, int seq_s) //将存在的多项式seq_m复制到seq_s处,不论seq_s多项式存在与否
{
POLYN COP;
polyn_ptr hook, coper;
if (is_proper_seq(seq_m) == SEQ_OVERFLOW || is_proper_seq(seq_s) == SEQ_OVERFLOW)
return SEQ_OVERFLOW;
if (is_null(seq_m) == TRUE)
return ERROR;
hook = polyn[seq_m];
coper = COP = MakeNode();
while (hook->next != NULL)
{
coper->next = MakeNode();
hook = hook->next;
coper = coper->next;
coper->coeff = hook->coeff;
coper->exp = hook->exp;
coper->next = NULL;
}
if (DestroyPolyn(seq_s) == OK)
{
polyn[seq_s] = COP;
return OK;
}
else
return ERROR;
}
POLYN _AddPolyn(POLYN P_1, POLYN P_2) //加法核心
{
POLYN SUM;
polyn_ptr hook_1, hook_2, hook_sum;
if (P_1 == NULL || P_2 == NULL || SUM == NULL)
return NULL;
SUM = MakeNode();
hook_1 = P_1->next;
hook_2 = P_2->next;
hook_sum = SUM;
while (hook_1 != NULL && hook_2 != NULL)
{
if (hook_1->exp > hook_2->exp)
{
hook_sum = hook_sum->next = MakeNode();
hook_sum->coeff = hook_1->coeff;
hook_sum->exp = hook_1->exp;
hook_sum->next = NULL;
hook_1 = hook_1->next;
}
else if (hook_2->exp > hook_1->exp)
{
hook_sum = hook_sum->next = MakeNode();
hook_sum->coeff = hook_2->coeff;
hook_sum->exp = hook_2->exp;
hook_sum->next = NULL;
hook_2 = hook_2->next;
}
else
{
if (hook_1->coeff + hook_2->coeff != 0)
{
hook_sum = hook_sum->next = MakeNode();
hook_sum->coeff = hook_1->coeff + hook_2->coeff;
hook_sum->exp = hook_1->exp;
hook_sum->next = NULL;
}
hook_1 = hook_1->next;
hook_2 = hook_2->next;
}
}
if (hook_1 == NULL)
{
while (hook_2 != NULL)
{
hook_sum = hook_sum->next = MakeNode();
hook_sum->coeff = hook_2->coeff;
hook_sum->exp = hook_2->exp;
hook_sum->next = NULL;
hook_2 = hook_2->next;
}
}
else
{
while (hook_1 != NULL)
{
hook_sum = hook_sum->next = MakeNode();
hook_sum->coeff = hook_1->coeff;
hook_sum->exp = hook_1->exp;
hook_sum->next = NULL;
hook_1 = hook_1->next;
}
}
return SUM;
}
STATUS AddPolyn(int add_1, int add_2, int sum) //将存在的两个多项式相加,和存储至sum序号
{
polyn_ptr hook_1, hook_2, hook_sum;
POLYN SUM;
if (is_proper_seq(add_1) == SEQ_OVERFLOW || is_proper_seq(add_2) == SEQ_OVERFLOW || is_proper_seq(sum) == SEQ_OVERFLOW)
return SEQ_OVERFLOW;
if (is_null(add_1) == TRUE || is_null(add_2) == TRUE)
return ERROR;
SUM = MakeNode();
SUM = _AddPolyn(polyn[add_1], polyn[add_2]);
if(SUM == NULL)
return ERROR;
if (DestroyPolyn(sum) == OK)
{
polyn[sum] = SUM;
return OK;
}
else
return ERROR;
}
POLYN _SubtractPolyn(POLYN MND, POLYN SBR) //减法核心 多项式存在
{
if (MND == NULL || SBR == NULL)
return NULL;
POLYN ERRAND;
polyn_ptr hook_1, hook_2, hook_errand;
ERRAND = MakeNode();
hook_1 = MND->next;
hook_2 = SBR->next;
hook_errand = ERRAND;
while (hook_1 != NULL && hook_2 != NULL)
{
if (hook_1->exp > hook_2->exp)
{
hook_errand = hook_errand->next = MakeNode();
hook_errand->coeff = hook_1->coeff;
hook_errand->exp = hook_1->exp;
hook_errand->next = NULL;
hook_1 = hook_1->next;
}
else if (hook_2->exp > hook_1->exp)
{
hook_errand = hook_errand->next = MakeNode();
hook_errand->coeff = -hook_2->coeff;
hook_errand->exp = hook_2->exp;
hook_errand->next = NULL;
hook_2 = hook_2->next;
}
else
{
if (hook_1->coeff != hook_2->coeff)
{
hook_errand = hook_errand->next = MakeNode();
hook_errand->coeff = hook_1->coeff - hook_2->coeff;
hook_errand->exp = hook_1->exp;
hook_errand->next = NULL;
}
hook_1 = hook_1->next;
hook_2 = hook_2->next;
}
}
if (hook_1 == NULL)
{
while (hook_2 != NULL)
{
hook_errand = hook_errand->next = MakeNode();
hook_errand->coeff = -hook_2->coeff;
hook_errand->exp = hook_2->exp;
hook_errand->next = NULL;
hook_2 = hook_2->next;
}
}
else
{
while (hook_1 != NULL)
{
hook_errand = hook_errand->next = MakeNode();
hook_errand->coeff = hook_1->coeff;
hook_errand->exp = hook_1->exp;
hook_errand->next = NULL;
hook_1 = hook_1->next;
}
}
return ERRAND;
}
STATUS SubtractPolyn(int minuend, int subtractor, int errand) //将存在的两个多项式相减,和存储至errand序号
{
polyn_ptr hook_1, hook_2, hook_errand;
POLYN ERRAND;
if (is_proper_seq(minuend) == SEQ_OVERFLOW || is_proper_seq(subtractor) == SEQ_OVERFLOW || is_proper_seq(errand) == SEQ_OVERFLOW)
return SEQ_OVERFLOW;
if (is_null(minuend) == TRUE || is_null(subtractor) == TRUE)
return ERROR;
ERRAND = _SubtractPolyn(polyn[minuend], polyn[subtractor]);
if (ERRAND == NULL)
return ERROR;
if (DestroyPolyn(errand) == OK)
{
polyn[errand] = ERRAND;
return OK;
}
else
return ERROR;
}
POLYN _MutiplePolyn(POLYN M_1, POLYN M_2) //重构 多项式指针要求非空
{
POLYN AMASS;
polyn_ptr hook_1, hook_2, hook_amass, catch;
double _coeff;
int _exp;
if (M_1 == NULL || M_2 == NULL)
return NULL;
AMASS = MakeNode();
hook_1 = M_1->next;
hook_2 = M_2->next;
hook_amass = AMASS;
while (hook_1 != NULL)
{
while (hook_2 != NULL)
{
_coeff = hook_1->coeff * hook_2->coeff;
_exp = hook_1->exp + hook_2->exp;
if (hook_amass->next == NULL)
{
hook_amass = hook_amass->next = MakeNode();
hook_amass->coeff = _coeff;
hook_amass->exp = _exp;
hook_amass->next = NULL;
hook_2 = hook_2->next;
}
else if (hook_amass->next->exp < _exp)
{
catch = MakeNode();
catch->coeff = _coeff;
catch->exp = _exp;
catch->next = hook_amass->next;
hook_amass->next = catch;
hook_2 = hook_2->next;
}
else if (hook_amass->next->exp == _exp)
{
hook_amass = hook_amass->next;
hook_amass->coeff += _coeff;
hook_2 = hook_2->next;
}
else
hook_amass = hook_amass->next;
}
hook_amass = AMASS;
hook_2 = M_2->next;
hook_1 = hook_1->next;
}
if (ShrinkPolyn(AMASS) != OK)
return NULL;
return AMASS;
}
STATUS MutiplePolyn(int mtpler_1, int mtpler_2, int amass) //相乘, 存储至amass 利用ShrinkPolyn将0系数节点删除
{
polyn_ptr hook_1, hook_2, hook_amass, catch;
POLYN AMASS;
double _coeff;
int _exp;
if (is_proper_seq(mtpler_1) == SEQ_OVERFLOW || is_proper_seq(mtpler_2) == SEQ_OVERFLOW || is_proper_seq(amass) == SEQ_OVERFLOW)
return SEQ_OVERFLOW;
if (is_null(mtpler_1) == TRUE || is_null(mtpler_2) == TRUE)
return ERROR;
AMASS = _MutiplePolyn(polyn[mtpler_1], polyn[mtpler_2]);
if (AMASS == NULL)
return ERROR;
if (DestroyPolyn(amass) == OK)
{
polyn[amass] = AMASS;
return OK;
}
else
return ERROR;
}
STATUS CalculatePolyn(int seq, double value) //求值运算, 保留四位小数 TODO 浮点数表示误差
{
double outcome = 0.0;
polyn_ptr hook;
if (is_proper_seq(seq) == SEQ_OVERFLOW)
return SEQ_OVERFLOW;
if (is_null(seq) == TRUE)
return ERROR;
hook = polyn[seq]->next;
while (hook != NULL)
{
outcome += hook->coeff * pow(value, hook->exp);
hook = hook->next;
}
fprintf(fout, "%.4lf\n", outcome);
return OK;
}
POLYN _DestroyPolyn(POLYN P) //摧毁多项式
{
if (P == NULL)
return NULL;
EmptyPolyn(P);
free(P);
return NULL;
}
STATUS DestroyPolyn(int seq) //允许对空指针操作,将整个多项式摧毁
{
if (is_proper_seq(seq) == SEQ_OVERFLOW)
return SEQ_OVERFLOW;
if (is_null(seq) == TRUE)
return OK;
polyn[seq] = _DestroyPolyn(polyn[seq]);
return OK;
}
void _EmptyPolyn(POLYN P) //清空 多项式
{
polyn_ptr hook, destroyer;
if (P == NULL)
return ;
hook = P->next;
P->next = NULL;
while (hook != NULL)
{
destroyer = hook;
hook = hook->next;
free(destroyer);
}
return ;
}
STATUS EmptyPolyn(int seq) //对非空指针处理,清空多项式
{
if (is_proper_seq(seq) == SEQ_OVERFLOW)
return SEQ_OVERFLOW;
if (is_null(seq) == TRUE)
return ERROR;
_EmptyPolyn(polyn[seq]);
return OK;
}
STATUS DiffPolyn(int seq, int outcome) //微分, 结果存储至outcome
{
polyn_ptr hook_seq, hook_outcome;
POLYN OUTCOME;
if (is_proper_seq(seq) == SEQ_OVERFLOW || is_proper_seq(outcome) == SEQ_OVERFLOW)
return SEQ_OVERFLOW;
if (is_null(seq) == TRUE)
return ERROR;
OUTCOME = MakeNode();
hook_outcome = OUTCOME;
hook_seq = polyn[seq]->next;
while (hook_seq != NULL)
{
if (hook_seq->exp == 0) ;
else
{
hook_outcome = hook_outcome->next = MakeNode();
hook_outcome->coeff = hook_seq->coeff * (double)hook_seq->exp;
hook_outcome->exp = hook_seq->exp - 1;
hook_outcome->next = NULL;
}
hook_seq = hook_seq->next;
}
if (DestroyPolyn(outcome) == OK)
{
polyn[outcome] = OUTCOME;
return OK;
}
else
return ERROR;
}
STATUS Inf_IntegPolyn(int seq, int outcome) //不定积分,结果存储至outcome,无常数C
{
polyn_ptr hook_seq, hook_outcome;
POLYN OUTCOME;
if (is_proper_seq(seq) == SEQ_OVERFLOW || is_proper_seq(outcome) == SEQ_OVERFLOW)
return SEQ_OVERFLOW;
if (is_null(seq) == TRUE)
return ERROR;
OUTCOME = MakeNode();
hook_outcome = OUTCOME;
hook_seq = polyn[seq]->next;
while (hook_seq != NULL)
{
hook_outcome = hook_outcome->next = MakeNode();
hook_outcome->coeff = hook_seq->coeff / (double)(hook_seq->exp + 1);
hook_outcome->exp = hook_seq->exp + 1;
hook_outcome->next = NULL;
hook_seq = hook_seq->next;
}
if (DestroyPolyn(outcome) == OK)
{
polyn[outcome] = OUTCOME;
return OK;
}
else
return ERROR;
}
STATUS Def_IntegPolyn(int seq, double x1, double x2) //定积分 计算从x1到x2的积分值
{
double outcome = 0.0;
polyn_ptr hook;
if (is_proper_seq(seq) == SEQ_OVERFLOW)
return SEQ_OVERFLOW;
if (is_null(seq) == TRUE)
return ERROR;
hook = polyn[seq]->next;
while (hook != NULL)
{
outcome += hook->coeff / (hook->exp + 1) * (pow(x2, hook->exp + 1) - pow(x1, hook->exp + 1));
hook = hook->next;
}
fprintf(fout, "%.4lf\n", outcome);
return OK;
}
POLYN Inverse(POLYN P, int mod) // 求逆 所有多项式指针非空 利用递归 乘法求得
{
POLYN OUTCOME;
polyn_ptr hook, catch;
POLYN HALF, HOOK;
if (P == NULL || P->next == NULL || mod <= 0)
return NULL;
catch = P;
if (mod == 1) //基本情况
{
OUTCOME = MakeNode();
hook = OUTCOME;
while (catch->next != NULL)
catch = catch->next;
if (catch->exp == 0)
{
hook = hook->next = MakeNode();
hook->exp = 0;
hook->coeff = 1 / catch->coeff;
hook->next = NULL;
}
return OUTCOME;
}
else
{
HALF = Inverse(P, (mod + 1) / 2); //减半递归 模(mod+1)/2 求逆为HALF
HOOK = _MutiplePolyn(P, HALF);
if (HOOK == NULL)
return ERROR;
hook = HOOK;
if (hook->next == NULL)
{
hook = hook->next = MakeNode();
hook->coeff = 2.0;
hook->exp = 0;
hook->next;
}
else
{
while (hook->next != NULL)
{
hook = hook->next;
hook->coeff = -hook->coeff;
}
if (hook->exp == 0)
hook->coeff += 2;
else
{
hook = hook->next = MakeNode();
hook->exp = 0;
hook->coeff = 2.0;
hook->next = NULL;
}
}
OUTCOME = _MutiplePolyn(HALF, HOOK);
if (OUTCOME == NULL)
return NULL;
hook = OUTCOME;
while (hook->next != NULL && hook->next->exp > mod - 1)
{
catch = hook->next;
hook->next = catch->next;
free(catch);
}
HALF = _DestroyPolyn(HALF);
HOOK = _DestroyPolyn(HOOK);
return OUTCOME;
}
}
POLYN _DivisPolyn(POLYN DND, POLYN DOR) //除法核心代码 利用求逆 反序 以及暴力删除高指数节点求得
{
polyn_ptr hook;
POLYN FACTOR, AL_DOR, R_DND, R_DOR, R_FACTOR;
int mod;
FACTOR = MakeNode();
if (DND == NULL || DOR == NULL)
return NULL;
if (DOR->next == NULL)
return NULL;
if (DND->next == NULL || DND->next->exp < DOR->next->exp)
return FACTOR;
FACTOR = _DestroyPolyn(FACTOR);
mod = DND->next->exp - DOR->next->exp + 1;
R_DOR = ReversePolyn(DOR, DOR->next->exp);
AL_DOR = Inverse(R_DOR, mod);
if (AL_DOR == NULL)
{
R_DOR = _DestroyPolyn(R_DOR);
return NULL;
}
R_DND = ReversePolyn(DND, DND->next->exp);
R_FACTOR = _MutiplePolyn(R_DND, AL_DOR);
if (R_FACTOR == NULL) ;
else
{
hook = R_FACTOR->next;
while (hook != NULL && hook->exp >= mod)
{
R_FACTOR->next = hook->next;
free(hook);
hook = R_FACTOR->next;
}
FACTOR = ReversePolyn(R_FACTOR, mod - 1);
}
AL_DOR = _DestroyPolyn(AL_DOR);
R_DND = _DestroyPolyn(R_DND);
R_DOR = _DestroyPolyn(R_DOR);
R_FACTOR = _DestroyPolyn(R_FACTOR);
return FACTOR;
}
STATUS DivisPolyn(int dividend, int divisor, int factor) //除法 去除余数
{
POLYN FACTOR;
if (is_proper_seq(dividend) == SEQ_OVERFLOW || is_proper_seq(divisor) == SEQ_OVERFLOW || is_proper_seq(factor) == SEQ_OVERFLOW)
return SEQ_OVERFLOW;
if (is_null(dividend) == TRUE || is_null(divisor) == TRUE)
return ERROR;
if (is_empty(divisor) == TRUE)
return ERROR;
FACTOR = _DivisPolyn(polyn[dividend], polyn[divisor]);
if (FACTOR == NULL)
return ERROR;
if (DestroyPolyn(factor) == OK)
{
polyn[factor] = FACTOR;
return OK;
}
else
return ERROR;
}
POLYN _ModPolyn(POLYN DND, POLYN DOR) //基于除法 乘法 减法 实现的模
{
POLYN RMD, FACTOR, AMASS;
polyn_ptr hook;
int mod;
if (DND == NULL || DOR == NULL || DOR->next == NULL)
return NULL;
mod = DOR->next->exp;
FACTOR = _DivisPolyn(DND,DOR);
AMASS = _MutiplePolyn(DOR, FACTOR);
RMD = _SubtractPolyn(DND, AMASS);
FACTOR = _DestroyPolyn(FACTOR);
AMASS = _DestroyPolyn(AMASS);
hook = RMD->next;
while (hook != NULL && hook->exp >= mod)
{
RMD->next = hook->next;
free(hook);
hook = RMD->next;
}
return RMD;
}
STATUS ModPolyn(int dividend, int divisor, int remainder) //取模
{
POLYN RMD;
if (is_proper_seq(dividend) == SEQ_OVERFLOW || is_proper_seq(divisor) == SEQ_OVERFLOW || is_proper_seq(remainder) == SEQ_OVERFLOW)
return SEQ_OVERFLOW;
if (is_null(dividend) == TRUE || is_null(divisor) == TRUE)
return ERROR;
if (is_empty(divisor) == TRUE)
return ERROR;
RMD = _ModPolyn(polyn[dividend], polyn[divisor]);
if (RMD == NULL)
return ERROR;
if (DestroyPolyn(remainder) == OK)
{
polyn[remainder] = RMD;
return OK;
}
else
return ERROR;
}
POLYN _Com_DivisPolyn(POLYN DND, POLYN DOR) //利用辗转相除法求最大公因式 利用取模
{
POLYN HOOK;
double norm;
polyn_ptr hook, hook_d, hook_r;
if (DND == NULL || DOR == NULL)
return NULL;
if (DND->next == NULL || DOR->next == NULL)
return NULL;
hook_d = DND;
hook_r = DOR;
while (hook_r->next != NULL)
{
HOOK = _ModPolyn(hook_d, hook_r);
if (hook_d != DND && hook_d != DOR)
hook_d = _DestroyPolyn(hook_d);
hook_d = hook_r;
hook_r = HOOK;
}
hook = HOOK = _SubtractPolyn(hook_d, hook_r);
if (hook_d != DOR)
hook_d = _DestroyPolyn(hook_d);
hook_r = _DestroyPolyn(hook_r);
if (hook == NULL || hook->next == NULL)
return ERROR;
norm = hook->next->coeff;
while (hook->next != NULL)
{
hook = hook->next;
hook->coeff = hook->coeff / norm;
}
return HOOK;
}
STATUS Com_DivisPolyn(int mem_1, int mem_2, int sub) //求最大公因式 多项式存在且不可为0
{
POLYN SUB;
double norm;
polyn_ptr hook;
if (is_proper_seq(mem_1) == SEQ_OVERFLOW || is_proper_seq(mem_2) == SEQ_OVERFLOW || is_proper_seq(sub) == SEQ_OVERFLOW)
return SEQ_OVERFLOW;
if (is_null(mem_1) == TRUE || is_null(mem_2) == TRUE)
return ERROR;
if (is_empty(mem_1) == TRUE || is_empty(mem_2) == TRUE)
return ERROR;
SUB = _Com_DivisPolyn(polyn[mem_1], polyn[mem_2]);
if (SUB == NULL)
return ERROR;
if (DestroyPolyn(sub) == OK)
{
polyn[sub] = SUB;
return OK;
}
else
return ERROR;
}
POLYN _Com_MutiplePolyn(POLYN MTP_1, POLYN MTP_2) //最小公倍式算法 利用乘法 最大公因式 除法
{
POLYN AMASS, SUB, _AMASS;
double norm;
polyn_ptr hook;
if (MTP_1 == NULL || MTP_2 == NULL)
return NULL;
if (MTP_1->next == NULL || MTP_2->next == NULL)
return NULL;
SUB = _Com_DivisPolyn(MTP_1, MTP_2);
_AMASS = _MutiplePolyn(MTP_1, MTP_2);
AMASS = _DivisPolyn(_AMASS, SUB);
SUB = _DestroyPolyn(SUB);
_AMASS = _DestroyPolyn(_AMASS);
hook = AMASS;
if (hook == NULL || hook->next == NULL)
return ERROR;
norm = hook->next->coeff;
while (hook->next != NULL)
{
hook = hook->next;
hook->coeff = hook->coeff / norm;
}
return AMASS;
}
STATUS Com_MutiplePolyn(int mtpler_1, int mtpler_2, int amass) //求最小公倍式,多项式存在且不可为0
{
POLYN AMASS;
if (is_proper_seq(mtpler_1) == SEQ_OVERFLOW || is_proper_seq(mtpler_2) == SEQ_OVERFLOW || is_proper_seq(amass) == SEQ_OVERFLOW)
return SEQ_OVERFLOW;
if (is_null(mtpler_1) == TRUE || is_null(mtpler_2) == TRUE)
return ERROR;
if (is_empty(mtpler_1) == TRUE || is_empty(mtpler_2) == TRUE)
return ERROR;
AMASS = _Com_MutiplePolyn(polyn[mtpler_1], polyn[mtpler_2]);
if (AMASS == NULL)
return ERROR;
if (DestroyPolyn(amass) == OK)
{
polyn[amass] = AMASS;
return OK;
}
else
return ERROR;
}
POLYN _InvolPolyn(POLYN P, int power) //快速幂乘法 递归求乘方
{
POLYN OUTCOME, HALF;
polyn_ptr hook, hook_p;
if (P == NULL || power < 0)
return NULL;
OUTCOME = MakeNode();
hook = OUTCOME;
if (P->next == NULL) ; //0多项式 乘方后为0
else if (power == 0) //0次方 得常数
{
hook = hook->next = MakeNode();
hook->coeff = 1.0;
}
else if (power == 1)
{
hook_p = P->next;
while (hook_p != NULL)
{
hook = hook->next = MakeNode();
hook->coeff = hook_p->coeff;
hook->exp = hook_p->exp;
hook->next = NULL;
hook_p = hook_p->next;
}
}
else
{
free(OUTCOME);
HALF = _InvolPolyn(P, power / 2);
OUTCOME = _MutiplePolyn(HALF, HALF);
HALF = _DestroyPolyn(HALF);
if (power % 2 == 1)
{
HALF = OUTCOME;
OUTCOME = _MutiplePolyn(P, OUTCOME);
HALF = _DestroyPolyn(HALF);
}
}
if (ShrinkPolyn(OUTCOME) == OK)
return OUTCOME;
else
return NULL;
}
STATUS InvolPolyn(int seq, int outcome, int power) //乘方
{
POLYN OUTCOME;
if (is_proper_seq(seq) == SEQ_OVERFLOW || is_proper_seq(outcome) == SEQ_OVERFLOW)
return SEQ_OVERFLOW;
if (is_null(seq) == TRUE)
return ERROR;
OUTCOME = _InvolPolyn(polyn[seq], power);
if (OUTCOME == NULL)
return ERROR;
if (DestroyPolyn(outcome) == OK)
{
polyn[outcome] = OUTCOME;
return OK;
}
else
return ERROR;
}
void main()
{
int seq_1, seq_2, seq_3, value;
fin = fopen("polyn.in", "r");
fout = fopen("polyn.out", "w"); //TOBE changed
if (fin == NULL || fout == NULL)
return;
fscanf(fin, "%d", &command);
while (command != 0)
{
switch (command)
{
case 1:
fscanf(fin, "%d", &seq_1);
CreatePolyn(seq_1);
break;
case 2:
fscanf(fin, "%d", &seq_1);
PrintPolyn(seq_1);
break;
case 3:
fscanf(fin, "%d %d", &seq_1, &seq_2);
CopyPolyn(seq_1, seq_2);
break;
case 4:
fscanf(fin, "%d %d %d", &seq_1, &seq_2, &seq_3);
AddPolyn(seq_1, seq_2, seq_3);
break;
case 5:
fscanf(fin, "%d %d %d", &seq_1, &seq_2, &seq_3);
SubtractPolyn(seq_1, seq_2, seq_3);
break;
case 6:
fscanf(fin, "%d %d %d", &seq_1, &seq_2, &seq_3);
MutiplePolyn(seq_1, seq_2, seq_3);
break;
case 7:
fscanf(fin, "%d", &seq_1);
fscanf(fin, "%d", &value);
CalculatePolyn(seq_1, value);
break;
case 8:
fscanf(fin, "%d", &seq_1);
DestroyPolyn(seq_1);
break;
case 9:
fscanf(fin, "%d", &seq_1);
EmptyPolyn(seq_1);
break;
case 10:
fscanf(fin, "%d %d", &seq_1, &seq_2);
DiffPolyn(seq_1, seq_2);
break;
case 11:
fscanf(fin, "%d %d", &seq_1, &seq_2);
Inf_IntegPolyn(seq_1, seq_2);
break;
case 12:
fscanf(fin, "%d", &seq_1);
fscanf(fin, "%d", &seq_2);
fscanf(fin, "%d", &seq_3);
Def_IntegPolyn(seq_1, seq_2, seq_3);
break;
case 13:
fscanf(fin, "%d", &seq_1);
fscanf(fin, "%d", &seq_2);
fscanf(fin, "%d", &seq_3);
Com_DivisPolyn(seq_1, seq_2, seq_3);
break;
case 14:
fscanf(fin, "%d", &seq_1);
fscanf(fin, "%d", &seq_2);
fscanf(fin, "%d", &seq_3);
Com_MutiplePolyn(seq_1, seq_2, seq_3);
break;
case 15:
fscanf(fin, "%d %d %d", &seq_1, &seq_2, &seq_3);
DivisPolyn(seq_1, seq_2, seq_3);
break;
case 16:
fscanf(fin, "%d %d %d", &seq_1, &seq_2, &seq_3);
ModPolyn(seq_1, seq_2, seq_3);
break;
case 17:
fscanf(fin, "%d", &seq_1);
fscanf(fin, "%d", &seq_2);
fscanf(fin, "%d", &value);
InvolPolyn(seq_1, seq_2, value);
break;
default:
break;
}
fscanf(fin, "%d", &command);
}
fclose(fin);
fclose(fout);
} |
the_stack_data/82949412.c | /*
* Copyright (C) 2017-2019 Alibaba Group Holding Limited
*/
#if AOS_COMP_CLI
#include <string.h>
#include <aos/cli.h>
#include <lwip/etharp.h>
static void arp_command(char *buffer, int32_t buf_len, int32_t argc, char **argv);
struct cli_command arp_cmd[] = {
{ "arp", "arp app", arp_command},
};
static void arp_help_command(void)
{
LWIP_DEBUGF( ARP_DEBUG, ("Usage: arp -a\n"));
LWIP_DEBUGF( ARP_DEBUG, ("Eample:\n"));
LWIP_DEBUGF( ARP_DEBUG, ("arp -a\n"));
}
static void arp_query_command(void)
{
if (etharp_info_print() < 0) {
LWIP_DEBUGF( ARP_DEBUG, ("arp list empty!\n"));
}
}
static void arp_command(char *buffer, int32_t buf_len, int32_t argc, char **argv)
{
if (argc < 2) {
LWIP_DEBUGF( ARP_DEBUG, ("%s, invalid command\n", __func__));
arp_help_command();
return;
}
if (strcmp(argv[1], "-a") == 0) {
arp_query_command();
} else {
arp_help_command();
}
}
int32_t arp_cli_register(void)
{
if (0 == aos_cli_register_commands(arp_cmd, 1)) {
return 0;
}
return -1;
}
#endif /* AOS_COMP_CLI */
|
the_stack_data/177851.c | //
// main.c
// TrigoFunctions
//
// Created by Miguel Oliveira on 17/02/15.
// Copyright (c) 2015 GAZELAINC. All rights reserved.
//
#include <stdio.h>
#include <math.h>
int main(int argc, const char * argv[]) {
float sine = sin(1);
printf("sin(1) = %.3f\n", sine);
}
|
the_stack_data/97014021.c | unsigned int chroma_in0_32b = 0xF1234567;
unsigned int result, result2;
__attribute__((noinline))
int main() {
unsigned char A1_Cb, A1_Cr;
A1_Cb = (chroma_in0_32b>>24)&0x000000FF;
A1_Cr = (chroma_in0_32b>>16)&0x000000FF;
_TCEFU_SUB("ALU6", A1_Cb, A1_Cr, result);
_TCEFU_ADD("ALU8", A1_Cb, A1_Cr, result2);
return result;
}
|
the_stack_data/721367.c | #ifndef TH_GENERIC_FILE
#define TH_GENERIC_FILE "generic/SpatialFullDilatedConvolution.c"
#else
static void THNN_(im2col)(const real* data_im, const int channels,
const int height, const int width, const int kernel_h, const int kernel_w,
const int pad_h, const int pad_w,
const int stride_h, const int stride_w,
const int dilation_h, const int dilation_w,
real* data_col) {
const int height_col = (height + 2 * pad_h -
(dilation_h * (kernel_h - 1) + 1)) / stride_h + 1;
const int width_col = (width + 2 * pad_w -
(dilation_w * (kernel_w - 1) + 1)) / stride_w + 1;
const int channels_col = channels * kernel_h * kernel_w;
for (int c_col = 0; c_col < channels_col; ++c_col) {
int w_offset = c_col % kernel_w;
int h_offset = (c_col / kernel_w) % kernel_h;
int c_im = c_col / kernel_h / kernel_w;
for (int h_col = 0; h_col < height_col; ++h_col) {
for (int w_col = 0; w_col < width_col; ++w_col) {
int h_im = h_col * stride_h - pad_h + h_offset * dilation_h;
int w_im = w_col * stride_w - pad_w + w_offset * dilation_w;
data_col[(c_col * height_col + h_col) * width_col + w_col] =
(h_im >= 0 && w_im >= 0 && h_im < height && w_im < width) ?
data_im[(c_im * height + h_im) * width + w_im] : 0;
}
}
}
}
static void THNN_(col2im)(const real* data_col, const int channels,
const int height, const int width,
const int output_height, const int output_width,
const int kernel_h, const int kernel_w,
const int pad_h, const int pad_w,
const int stride_h, const int stride_w,
const int dilation_h, const int dilation_w,
real* data_im) {
memset(data_im, 0, sizeof(real) * height * width * channels);
const int height_col = output_height;
const int width_col = output_width;
const int channels_col = channels * kernel_h * kernel_w;
for (int c_col = 0; c_col < channels_col; ++c_col) {
int w_offset = c_col % kernel_w;
int h_offset = (c_col / kernel_w) % kernel_h;
int c_im = c_col / kernel_h / kernel_w;
for (int h_col = 0; h_col < height_col; ++h_col) {
for (int w_col = 0; w_col < width_col; ++w_col) {
int h_im = h_col * stride_h - pad_h + h_offset * dilation_h;
int w_im = w_col * stride_w - pad_w + w_offset * dilation_w;
if (h_im >= 0 && h_im < height && w_im >= 0 && w_im < width)
data_im[(c_im * height + h_im) * width + w_im] +=
data_col[(c_col * height_col + h_col) * width_col + w_col];
}
}
}
}
static inline void THNN_(SpatialFullDilatedConvolution_shapeCheck)(
THTensor *input, THTensor *gradOutput,
THTensor *weight, THTensor *bias,
int kH, int kW, int dH, int dW, int padH, int padW,
int dilationH, int dilationW, int adjH, int adjW) {
THArgCheck(kW > 0 && kH > 0, 9,
"kernel size should be greater than zero, but got kH: %d kW: %d", kH, kW);
THArgCheck(dW > 0 && dH > 0, 11,
"stride should be greater than zero, but got dH: %d dW: %d", dH, dW);
THArgCheck(dilationW > 0 && dilationH > 0, 15,
"dilation should be greater than zero, but got dilationH: %d, dilationW: %d",
dilationH, dilationW);
THArgCheck((adjW < dW || adjW < dilationW) && (adjH < dH || adjH < dilationH), 15,
"output padding must be smaller than either stride or dilation, but got adjH: %d adjW: %d dH: %d dW: %d dilationH: %d dilationW: %d",
adjH, adjW, dH, dW, dilationH, dilationW);
THNN_ARGCHECK(weight->nDimension == 2 || weight->nDimension == 4, 5, weight,
"2D or 4D weight tensor expected, but got: %s");
if (bias != NULL) {
THNN_CHECK_DIM_SIZE(bias, 1, 0, weight->size[1]);
}
int ndim = input->nDimension;
int dimf = 0;
int dimh = 1;
int dimw = 2;
if (ndim == 4) {
dimf++;
dimh++;
dimw++;
}
THNN_ARGCHECK(ndim == 3 || ndim == 4, 2, input,
"3D or 4D input tensor expected but got: %s");
int64_t nInputPlane = weight->size[0];
int64_t inputHeight = input->size[dimh];
int64_t inputWidth = input->size[dimw];
int64_t nOutputPlane = weight->size[1];
int64_t outputHeight = (inputHeight - 1) * dH - 2*padH + (dilationH * (kH - 1) + 1) + adjH;
int64_t outputWidth = (inputWidth - 1) * dW - 2*padW + (dilationW * (kW - 1) + 1) + adjW;
if (outputWidth < 1 || outputHeight < 1)
THError("Given input size: (%d x %d x %d). "
"Calculated output size: (%d x %d x %d). Output size is too small",
nInputPlane,inputHeight,inputWidth,nOutputPlane,outputHeight,outputWidth);
THNN_CHECK_DIM_SIZE(input, ndim, dimf, nInputPlane);
if (gradOutput != NULL) {
THNN_CHECK_DIM_SIZE(gradOutput, ndim, dimf, nOutputPlane);
THNN_CHECK_DIM_SIZE(gradOutput, ndim, dimh, outputHeight);
THNN_CHECK_DIM_SIZE(gradOutput, ndim, dimw, outputWidth);
}
}
void THNN_(SpatialFullDilatedConvolution_updateOutput)(
THNNState *state,
THTensor *input,
THTensor *output,
THTensor *weight,
THTensor *bias,
THTensor *columns,
THTensor *ones,
int kW, int kH,
int dW, int dH,
int padW, int padH,
int dilationW, int dilationH,
int adjW, int adjH)
{
THNN_(SpatialFullDilatedConvolution_shapeCheck)
(input, NULL, weight, bias, kH, kW, dH, dW, padH, padW,
dilationH, dilationW, adjH, adjW);
int nInputPlane = THTensor_(size)(weight,0);
int nOutputPlane = THTensor_(size)(weight,1);
input = THTensor_(newContiguous)(input);
weight = THTensor_(newContiguous)(weight);
bias = bias ? THTensor_(newContiguous)(bias) : bias;
int batch = 1;
if (input->nDimension == 3) {
// Force batch
batch = 0;
THTensor_(resize4d)(input, 1, input->size[0], input->size[1], input->size[2]);
}
int64_t inputHeight = input->size[2];
int64_t inputWidth = input->size[3];
int64_t outputHeight = (inputHeight - 1) * dH - 2*padH + (dilationH * (kH - 1) + 1) + adjH;
int64_t outputWidth = (inputWidth - 1) * dW - 2*padW + (dilationW * (kW - 1) + 1) + adjW;
// Batch size + input planes
int64_t batchSize = input->size[0];
// Resize output
THTensor_(resize4d)(output, batchSize, nOutputPlane, outputHeight, outputWidth);
// Resize temporary columns
THTensor_(resize2d)(columns, nOutputPlane*kW*kH, inputHeight*inputWidth);
THTensor_(zero)(columns);
// Define a buffer of ones, for bias accumulation
// Note: this buffer can be shared with other modules, it only ever gets increased,
// and always contains ones.
if (ones->nDimension != 2 || ones->size[0]*ones->size[1] < outputHeight*outputWidth) {
// Resize plane and fill with ones...
THTensor_(resize2d)(ones, outputHeight, outputWidth);
THTensor_(fill)(ones, 1);
}
// Helpers
THTensor *input_n = THTensor_(new)();
THTensor *output_n = THTensor_(new)();
int elt;
// For each elt in batch, do:
for (elt = 0; elt < batchSize; elt ++) {
// Matrix mulitply per output:
THTensor_(select)(input_n, input, 0, elt);
THTensor_(select)(output_n, output, 0, elt);
// M,N,K are dims of matrix A and B
// (see http://docs.nvidia.com/cuda/cublas/#cublas-lt-t-gt-gemm)
int64_t m = weight->size[1] * weight->size[2] * weight->size[3];
int64_t n = columns->size[1];
int64_t k = weight->size[0];
// Do GEMM (note: this is a bit confusing because gemm assumes column-major matrices)
THBlas_(gemm)(
'n', 't',
n, m, k,
1,
THTensor_(data)(input_n), n,
THTensor_(data)(weight), m,
0,
THTensor_(data)(columns), n
);
// Unpack columns back into input:
THNN_(col2im)(
THTensor_(data)(columns),
nOutputPlane, outputHeight, outputWidth, inputHeight, inputWidth, kH, kW, padH, padW, dH, dW,
dilationH, dilationW,
THTensor_(data)(output_n)
);
// Do Bias after:
// M,N,K are dims of matrix A and B
// (see http://docs.nvidia.com/cuda/cublas/#cublas-lt-t-gt-gemm)
int64_t m_ = nOutputPlane;
int64_t n_ = outputHeight * outputWidth;
int64_t k_ = 1;
// Do GEMM (note: this is a bit confusing because gemm assumes column-major matrices)
if (bias) {
THBlas_(gemm)(
't', 'n',
n_, m_, k_,
1,
THTensor_(data)(ones), k_,
THTensor_(data)(bias), k_,
1,
THTensor_(data)(output_n), n_
);
}
}
// Free
THTensor_(free)(input_n);
THTensor_(free)(output_n);
// Resize output
if (batch == 0) {
THTensor_(resize3d)(output, nOutputPlane, outputHeight, outputWidth);
THTensor_(resize3d)(input, nInputPlane, inputHeight, inputWidth);
}
THTensor_(free)(input);
THTensor_(free)(weight);
if (bias) THTensor_(free)(bias);
}
void THNN_(SpatialFullDilatedConvolution_updateGradInput)(
THNNState *state,
THTensor *input,
THTensor *gradOutput,
THTensor *gradInput,
THTensor *weight,
THTensor *gradColumns,
int kW, int kH,
int dW, int dH,
int padW, int padH,
int dilationW, int dilationH,
int adjW, int adjH)
{
THNN_(SpatialFullDilatedConvolution_shapeCheck)
(input, gradOutput, weight, NULL, kH, kW, dH, dW, padH, padW,
dilationH, dilationW, adjH, adjW);
int nInputPlane = THTensor_(size)(weight,0);
int nOutputPlane = THTensor_(size)(weight,1);
input = THTensor_(newContiguous)(input);
gradOutput = THTensor_(newContiguous)(gradOutput);
weight = THTensor_(newContiguous)(weight);
int batch = 1;
if (input->nDimension == 3) {
// Force batch
batch = 0;
THTensor_(resize4d)(input, 1, input->size[0], input->size[1], input->size[2]);
THTensor_(resize4d)(gradOutput, 1, gradOutput->size[0], gradOutput->size[1], gradOutput->size[2]);
}
int64_t inputWidth = input->size[3];
int64_t inputHeight = input->size[2];
int64_t outputHeight = (inputHeight - 1) * dH - 2*padH + (dilationH * (kH - 1) + 1) + adjH;
int64_t outputWidth = (inputWidth - 1) * dW - 2*padW + (dilationW * (kW - 1) + 1) + adjW;
// Batch size + input planes
int64_t batchSize = input->size[0];
// Resize output
THTensor_(resize4d)(gradInput, batchSize, nInputPlane, inputHeight, inputWidth);
THTensor_(zero)(gradInput);
// Resize temporary columns
THTensor_(resize2d)(gradColumns, nOutputPlane*kW*kH, inputHeight*inputWidth);
// Helpers
THTensor *gradInput_n = THTensor_(new)();
THTensor *gradOutput_n = THTensor_(new)();
int elt;
// For each elt in batch, do:
for (elt = 0; elt < batchSize; elt ++) {
// Matrix mulitply per sample:
THTensor_(select)(gradInput_n, gradInput, 0, elt);
THTensor_(select)(gradOutput_n, gradOutput, 0, elt);
// Extract columns:
THNN_(im2col)(
THTensor_(data)(gradOutput_n),
nOutputPlane, outputHeight, outputWidth, kH, kW, padH, padW, dH, dW,
dilationH, dilationW,
THTensor_(data)(gradColumns)
);
// M,N,K are dims of matrix A and B
// (see http://docs.nvidia.com/cuda/cublas/#cublas-lt-t-gt-gemm)
int64_t m = weight->size[0];
int64_t n = gradColumns->size[1];
int64_t k = weight->size[1] * weight->size[2] * weight->size[3];
// Do GEMM (note: this is a bit confusing because gemm assumes column-major matrices)
THBlas_(gemm)(
'n', 'n',
n, m, k,
1,
THTensor_(data)(gradColumns), n,
THTensor_(data)(weight), k,
0,
THTensor_(data)(gradInput_n), n
);
}
// Free
THTensor_(free)(gradInput_n);
THTensor_(free)(gradOutput_n);
// Resize output
if (batch == 0) {
THTensor_(resize3d)(gradOutput, nOutputPlane, outputHeight, outputWidth);
THTensor_(resize3d)(input, nInputPlane, inputHeight, inputWidth);
THTensor_(resize3d)(gradInput, nInputPlane, inputHeight, inputWidth);
}
THTensor_(free)(input);
THTensor_(free)(gradOutput);
THTensor_(free)(weight);
}
void THNN_(SpatialFullDilatedConvolution_accGradParameters)(
THNNState *state,
THTensor *input,
THTensor *gradOutput,
THTensor *gradWeight,
THTensor *gradBias,
THTensor *columns,
THTensor *ones,
int kW, int kH,
int dW, int dH,
int padW, int padH,
int dilationW, int dilationH,
int adjW, int adjH,
accreal scale_)
{
real scale = TH_CONVERT_ACCREAL_TO_REAL(scale_);
THNN_(SpatialFullDilatedConvolution_shapeCheck)
(input, gradOutput, gradWeight, gradBias, kH, kW, dH, dW, padH, padW,
dilationH, dilationW, adjH, adjW);
int nInputPlane = THTensor_(size)(gradWeight,0);
int nOutputPlane = THTensor_(size)(gradWeight,1);
input = THTensor_(newContiguous)(input);
gradOutput = THTensor_(newContiguous)(gradOutput);
THArgCheck(THTensor_(isContiguous)(gradWeight), 4, "gradWeight needs to be contiguous");
if (gradBias)
THArgCheck(THTensor_(isContiguous)(gradBias), 5, "gradBias needs to be contiguous");
int batch = 1;
if (input->nDimension == 3) {
// Force batch
batch = 0;
THTensor_(resize4d)(input, 1, input->size[0], input->size[1], input->size[2]);
THTensor_(resize4d)(gradOutput, 1, gradOutput->size[0], gradOutput->size[1], gradOutput->size[2]);
}
int64_t inputWidth = input->size[3];
int64_t inputHeight = input->size[2];
int64_t outputHeight = (inputHeight - 1) * dH - 2*padH + (dilationH * (kH - 1) + 1) + adjH;
int64_t outputWidth = (inputWidth - 1) * dW - 2*padW + (dilationW * (kW - 1) + 1) + adjW;
// Batch size + input planes
int64_t batchSize = input->size[0];
// Define a buffer of ones, for bias accumulation
if (ones->nDimension != 2 || ones->size[0]*ones->size[1] < outputHeight*outputWidth) {
// Resize plane and fill with ones...
THTensor_(resize2d)(ones, outputHeight, outputWidth);
THTensor_(fill)(ones, 1);
}
// Resize temporary columns
THTensor_(resize2d)(columns, nOutputPlane*kW*kH, inputHeight*inputWidth);
// Helpers
THTensor *input_n = THTensor_(new)();
THTensor *gradOutput_n = THTensor_(new)();
int elt;
// For each elt in batch, do:
for (elt = 0; elt < batchSize; elt ++) {
// Matrix mulitply per output:
THTensor_(select)(input_n, input, 0, elt);
THTensor_(select)(gradOutput_n, gradOutput, 0, elt);
// Extract columns:
THNN_(im2col)(
THTensor_(data)(gradOutput_n),
nOutputPlane, outputHeight, outputWidth, kH, kW, padH, padW, dH, dW,
dilationH, dilationW,
THTensor_(data)(columns)
);
// M,N,K are dims of matrix A and B
// (see http://docs.nvidia.com/cuda/cublas/#cublas-lt-t-gt-gemm)
int64_t n = columns->size[0]; // nOutputPlane * kh * kw
int64_t m = input_n->size[0]; // nInputPlane
int64_t k = columns->size[1]; // inputHeight * inputWidth
// Do GEMM (note: this is a bit confusing because gemm assumes column-major matrices)
THBlas_(gemm)(
't', 'n',
n, m, k,
scale,
THTensor_(data)(columns), k,
THTensor_(data)(input_n), k,
1,
THTensor_(data)(gradWeight), n
);
// Do Bias:
// M,N,K are dims of matrix A and B
// (see http://docs.nvidia.com/cuda/cublas/#cublas-lt-t-gt-gemm)
int64_t m_ = nOutputPlane;
int64_t k_ = outputHeight * outputWidth;
// Do GEMV (note: this is a bit confusing because gemv assumes column-major matrices)
if (gradBias) {
THBlas_(gemv)(
't',
k_, m_,
scale,
THTensor_(data)(gradOutput_n), k_,
THTensor_(data)(ones), 1,
1,
THTensor_(data)(gradBias), 1
);
}
}
// Free
THTensor_(free)(input_n);
THTensor_(free)(gradOutput_n);
// Resize
if (batch == 0) {
THTensor_(resize3d)(gradOutput, nOutputPlane, outputHeight, outputWidth);
THTensor_(resize3d)(input, nInputPlane, inputHeight, inputWidth);
}
THTensor_(free)(input);
THTensor_(free)(gradOutput);
}
#endif
|
the_stack_data/127419.c |
/* tail.c */
/* Return the tail of an array. */
/* This code is released to the public domain. */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* Function to return the tail of an array. */
void tail( int *array, int length )
{
int i ;
/* Create an array to stroe the "tail" elements. */
int tailarray[length-1] ;
for(i=1; i<length; i++)
{
tailarray[i-1] = array[i] ;
printf("tailarray[%d] is %d \n", i-1, tailarray[i-1]);
}
} ;
int main(void)
{
/* Declare an array and fill it with data. */
int myarray[] = {24, 37, 142, 205} ;
int length = sizeof(myarray) / sizeof(*myarray);
printf("Length of myarray is %d \n", length);
tail( myarray, length );
/* printf("myarray[%d] \n", myarray[0]); */
return 0 ;
}
|
the_stack_data/73576539.c | /*
* Copyright (c) [2020-2021] Huawei Technologies Co.,Ltd.All rights reserved.
*
* OpenArkCompiler is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR
* FIT FOR A PARTICULAR PURPOSE.
* See the Mulan PSL v2 for more details.
*/
// CHECK: [[# FILENUM:]] "{{.*}}/boundary_count_field.c"
#include <stdio.h>
struct A {
int *i __attribute__((count("len")));
int len;
};
struct B {
struct A a;
struct A *pa;
};
int g_a[] = {1,2,3,4,5};
int *g_p __attribute__((count(5))) = g_a;
int func(int x) {
return x;
}
int test_field(struct B b, struct B *pb) {
int res = 0;
// CHECK: LOC [[# FILENUM]] [[# @LINE + 2 ]]{{$}}
// CHECK: assertge{{.*}}
res += func(*(b.a.i + 4));
// CHECK: LOC [[# FILENUM]] [[# @LINE + 2 ]]{{$}}
// CHECK: assertge{{.*}}
res += func(pb->pa->i[4]);
}
int test_field1(struct B b, int i) {
// init field boundary
// CHECK: dassign %_boundary.b{{.*}}.lower 0{{.*}}
int res = 0;
if (i > 0) {
int arr[7] = {1, 2, 3, 4, 5, 6, 7};
b.a.len = 7;
// CHECK: LOC [[# FILENUM]] [[# @LINE + 3 ]]{{$}}
// CHECK: assignassertle{{.*}}
// CHECK: dassign %_boundary.b{{.*}}.lower 0{{.*}}
b.a.i = arr;
// CHECK: LOC [[# FILENUM]] [[# @LINE + 2 ]]{{$}}
// CHECK: assertge{{.*}}
res += func(*(b.a.i + 4));
} else {
// CHECK: LOC [[# FILENUM]] [[# @LINE + 2 ]]{{$}}
// CHECK: assertge{{.*}}
res += func(*(b.a.i + 4));
}
return res;
}
__attribute__((count("len", 1)))
int test_arg(int* a, struct B *b, int len) {
int res = 0;
// CHECK: LOC [[# FILENUM]] [[# @LINE + 2 ]]{{$}}
// CHECK: assertge{{.*}}
res += func(a[1]);
// CHECK: LOC [[# FILENUM]] [[# @LINE + 2 ]]{{$}}
// CHECK: assertge{{.*}}
res += func(b->a.i[1]);
// CHECK: LOC [[# FILENUM]] [[# @LINE + 3 ]]{{$}}
// CHECK: assignassertle{{.*}}
// CHECK: dassign %_boundary.a.upper 0 (add ptr {{.*}}
a = g_p;
// CHECK: LOC [[# FILENUM]] [[# @LINE + 3 ]]{{$}}
// CHECK: assignassertle{{.*}}
// CHECK: dassign %_boundary.B_i{{.*}}
b->a.i = g_p;
res += func(a[1]);
return res;
}
struct A ga;
void test_global_field_init1(int i) {
int res = 0;
ga.len = 5;
ga.i = g_p;
}
int test_global_field(int i) {
int res = 0;
if (i > 0) {
int arr[7] = {1, 2, 3, 4, 5, 6, 7};
ga.len = 7;
ga.i = arr;
res += func(*(ga.i + 3));
} else {
res += func(*(ga.i + 3));
}
return res;
}
int main() {
return 0;
}
|
the_stack_data/100140791.c | #include <stdio.h>
#include <stdlib.h>
typedef struct {
int *data;
int capacity;
int top;
}StackType;
void init_stack(StackType *s){
s->top = -1;
s->capacity = 1;
s->data = (int *)malloc(sizeof(int));
}
int is_empty(StackType *s){
return (s->top == -1);
}
int is_full(StackType *s){
return (s->top == s->capacity-1);
}
void push(StackType *s, int data){
if(is_full(s)){
s->capacity *= 2;
s->data = (int *)realloc(s->data, s->capacity* sizeof(int));
}
s->data[++(s->top)] = data;
}
int pop(StackType *s){
if(is_empty(s)){
fprintf(stderr, "스택 공백 에러\n");
exit(1);
}
else return s->data[(s->top)--];
}
int main(){
StackType s;
init_stack(&s);
push(&s, 1);
push(&s, 2);
push(&s, 3);
printf("%d\n", pop(&s));
printf("%d\n", pop(&s));
printf("%d\n", pop(&s));
printf("%d\n", is_empty(&s));
free(s.data);
} |
the_stack_data/46862.c | #include<stdio.h>
#include<signal.h>
#include<unistd.h>
#include<sys/types.h>
#include<sys/wait.h>
#include<stdlib.h>
int wait_flag=0;
void stop(int signum);
int main(){
int pid1,pid2;
//signal(SIGINT,stop);
signal(SIGQUIT,stop);
while((pid1=fork())==-1);
if(pid1>0){
while((pid2=fork())==-1);
if(pid2>0){ //父进程
wait_flag=1;
//父进程等待5秒
sleep(5);
//杀死进程1发中断号16
kill(pid1,SIGUSR1);
kill(pid2,SIGUSR2);
wait(0);
wait(0);
printf("\n Parent process is killed !!\n");
exit(0);
}
else{ //子进程2
wait_flag=1;
signal(SIGUSR2,stop);
//等待进程2被杀死的中断号17
while(wait_flag==1);
printf("\n Child process 2 is killed by parent !!\n");
exit(0);
}
}
else{ //子进程1
wait_flag=1;
signal(SIGUSR1,stop);
while(wait_flag==1);
printf("\n Child process 1 is killed by parent !!\n");
exit(0);
}
}
void stop(int signum){
wait_flag=0;
printf("\n %d stop test \n",signum);
}
|
the_stack_data/581473.c | /*
* Copyright (c) 2016, 2017 Pedro Falcato
* This file is part of Onyx, and is released under the terms of the MIT License
* check LICENSE at the root directory for more information
*/
#include <string.h>
char *strchr(const char *str, int c)
{
return memchr(str, c, strlen(str));
} |
the_stack_data/145453534.c | #include <stdio.h>
extern char* shows[];
extern int get_name(void);
short a = 1;
short b = 3;
int names[4];
int get_show(void);
void main(void) {
printf("main: a=%d b=%d %p \n", a, b, &b);
printf("%s perform %s\n", (char*)names[get_name()],
(char*)shows[get_show()]);
}
|
the_stack_data/242329601.c | void kernel_jacobi_1d(int tsteps,
int n,
double A[ 4000 + 0],
double B[ 4000 + 0])
{
int t, i;
for (t = 0; t < tsteps; t++)
{
#pragma clang loop(i1) tile sizes(8)
#pragma clang loop id(i1)
for (i = 1; i < n - 1; i++)
B[i] = 0.33333 * (A[i-1] + A[i] + A[i + 1]);
#pragma clang loop(i2) tile sizes(8)
#pragma clang loop id(i2)
for (i = 1; i < n - 1; i++)
A[i] = 0.33333 * (B[i-1] + B[i] + B[i + 1]);
}
}
|
the_stack_data/100141419.c | /*P11.16 Program to compare the memory allocated for a union and structure variable*/
#include<stdio.h>
struct stag
{
char c;
int i;
float f;
};
union utag
{
char c;
int i;
float f;
};
int main(void)
{
union utag uvar;
struct stag svar;
printf("Size of svar = %u\n", sizeof(svar));
printf("Address of svar : %p\t", &svar);
printf("Address of members : %p %p %p\n", &svar.c, &svar.i, &svar.f);
printf("Size of uvar = %u\n", sizeof(uvar) );
printf("Address of uvar : %p\t", &uvar);
printf("Address of members : %p %p %p\n", &uvar.c, &uvar.i, &uvar.f);
return 0;
} |
the_stack_data/148578346.c | #include <stdio.h>
main(){
int comp,larg,alt,vol;
printf("Solicite o comprimento(m) do objeto: ");
scanf("%d",&comp);
printf("Agora a largura(m): ");
scanf("%d",&larg);
printf("E finalmente a altura(m): ");
scanf("%d",&alt);
vol=comp*larg*alt;
printf("O volume do objeto eh %dm.",vol);
}
|
the_stack_data/107951993.c | typedef struct _charVoid {
char charFirst[16];
int i;
} charVoid;
charVoid str[10][10];
int main() {
sparrow_print(str);
f(str[10][20]);
g(str[30][40].charFirst[50]);
return 0;
}
|
the_stack_data/126791.c | // 2021-05-10
// program to get sum of two numbers
#include<stdio.h>
void main()
{
int num1, num2, sum;
printf("Enter the numbers you want to sum\n\n");
printf("enter the first number:\n");
scanf("%d",&num1);
printf("\nenter the second number:\n");
scanf("%d",&num2);
sum = num1+num2;
printf("\nsum of two numbers %d and %d is : %d",num1, num2, sum);
getchar();
} |
the_stack_data/190768045.c | #include <stdio.h>
#include <math.h>
#include <stdbool.h>
double SIGN(double a, double b);
double SQR(double a);
double snippet(double x) {
double NMAX=100;
double H=0.4;
double A1=2.0/3.0;
double A2=0.4;
double A3=2.0/7.0;
double i =0;
double n0 = 0;
bool init = true;
double d1= 0;
double d2= 0;
double e1= 0;
double e2= 0;
double sum= 0;
double x2= 0;
double xp= 0;
double xx= 0;
double ans= 0;
double c = 0;
double one = 1.0;//change
if (init) {
init=false;
for (i=0;i<NMAX;i++){
c+=exp(-SQR((2.0*i+1.0)*H));
x2=x*x*x;//change
}
}
if (fabs(x) < 0.2) {
x2=x*x;
ans=x*(one-A1*x*x*(one-A2*x2*(one-A3*x2)));//change
}
else {
xx=fabs(x);
n0=2*(0.5*xx+H+0.5);
xp=xx-n0*H;
e1=exp(2.0*xp*H);
e2=e1*e1;
d1=n0+1;
d2=d1-2.0;
sum=0.0;
for (i=0;i<NMAX;i++,d1+=2.0,d2-=2.0,e1*=e2)
sum += c*(e1*d1+1.0*(d2*e1));
ans=0.5641895835+SIGN(exp(-xp*xp),x)*sum;
}
return ans;
}
double SIGN(double a, double b){
return b >= 0 ? (a >= 0 ? a : -a) : (a >= 0 ? -a : a);
}
double SQR(double a) {
return a*a;
} |
the_stack_data/63277.c | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strcmp.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cyildiri <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/09/25 14:26:41 by cyildiri #+# #+# */
/* Updated: 2016/09/25 14:42:59 by cyildiri ### ########.fr */
/* */
/* ************************************************************************** */
int ft_strcmp(const char *s1, const char *s2)
{
int index;
index = 0;
while (s1[index] == s2[index] && (s1[index] != '\0' || s2[index] != '\0'))
index++;
return ((unsigned char)s1[index] - (unsigned char)s2[index]);
}
|
the_stack_data/44531.c | #include<stdio.h>
#include<stdlib.h>
#define MAX 3
int main(void)
{
int i;
struct data
{
char name[15];
int age;
int math;
}student[MAX];
for(i=0;i<MAX;i++)
{
printf("Name: ");
gets(student[i].name);
printf("Age: ");
scanf("%d",&student[i].age);
printf("Score: ");
scanf("%d",&student[i].math);
fflush(stdin);
}
for(i=0;i<MAX;i++)
{
printf("%s Age: %d Score: %d\n",student[i].name,student[i].math);
}
printf("sizeof(student)=%d\n",sizeof(student));
system("pause");
return 0;
}
|
the_stack_data/685603.c | /* realpath.c - Return the canonicalized absolute pathname */
/* Written 2000 by Werner Almesberger */
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <limits.h>
#include <errno.h>
#include <sys/stat.h>
/* FIXME: buffer overrun possible, loops forever on cyclic symlinks */
/*
* Canonical name: never ends with a slash
*/
static int resolve_path(char *path,char *result,char *pos)
{
if (*path == '/') {
*result = '/';
pos = result+1;
path++;
}
*pos = 0;
if (!*path) return 0;
while (1) {
char *slash;
struct stat st;
slash = *path ? strchr(path,'/') : NULL;
if (slash) *slash = 0;
if (!path[0] || (path[0] == '.' &&
(!path[1] || (path[1] == '.' && !path[2])))) {
pos--;
if (pos != result && path[0] && path[1])
while (*--pos != '/');
}
else {
strcpy(pos,path);
if (lstat(result,&st) < 0) return -1;
if (S_ISLNK(st.st_mode)) {
char buf[PATH_MAX];
if (readlink(result,buf,sizeof(buf)) < 0) return -1;
*pos = 0;
if (slash) {
*slash = '/';
strcat(buf,slash);
}
strcpy(path,buf);
if (*path == '/') result[1] = 0;
pos = strchr(result,0);
continue;
}
pos = strchr(result,0);
}
if (slash) {
*pos++ = '/';
path = slash+1;
}
*pos = 0;
if (!slash) break;
}
return 0;
}
char *realpath(const char *path,char *resolved_path)
{
char cwd[PATH_MAX];
char *path_copy;
int res;
if (!*path) {
errno = ENOENT; /* SUSv2 */
return NULL;
}
if (!getcwd(cwd,sizeof(cwd))) return NULL;
strcpy(resolved_path,"/");
if (resolve_path(cwd,resolved_path,resolved_path)) return NULL;
strcat(resolved_path,"/");
path_copy = strdup(path);
if (!path_copy) return NULL;
res = resolve_path(path_copy,resolved_path,strchr(resolved_path,0));
free(path_copy);
if (res) return NULL;
return resolved_path;
}
|
the_stack_data/107952748.c | /* CalculiX - A 3-dimensional finite element program */
/* Copyright (C) 1998-2015 Guido Dhondt */
/* This program is free software; you can redistribute it and/or */
/* modify it under the terms of the GNU General Public License as */
/* published by the Free Software Foundation(version 2); */
/* */
/* This program is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
/* GNU General Public License for more details. */
/* You should have received a copy of the GNU General Public License */
/* along with this program; if not, write to the Free Software */
/* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifdef ARPACK
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "CalculiX.h"
#ifdef SPOOLES
#include "spooles.h"
#endif
#ifdef SGI
#include "sgi.h"
#endif
#ifdef TAUCS
#include "tau.h"
#endif
#ifdef MATRIXSTORAGE
#include "matrixstorage.h"
#endif
#ifdef PARDISO
#include "pardiso.h"
#endif
void arpack(double *co, ITG *nk, ITG **konp, ITG **ipkonp, char **lakonp,
ITG *ne,
ITG *nodeboun, ITG *ndirboun, double *xboun, ITG *nboun,
ITG *ipompc, ITG *nodempc, double *coefmpc, char *labmpc,
ITG *nmpc,
ITG *nodeforc, ITG *ndirforc,double *xforc, ITG *nforc,
ITG *nelemload, char *sideload, double *xload,
ITG *nload, ITG *nactdof,
ITG *icol, ITG *jq, ITG **irowp, ITG *neq, ITG *nzl,
ITG *nmethod, ITG *ikmpc, ITG *ilmpc, ITG *ikboun,
ITG *ilboun,
double *elcon, ITG *nelcon, double *rhcon, ITG *nrhcon,
double *shcon, ITG *nshcon, double *cocon, ITG *ncocon,
double *alcon, ITG *nalcon, double *alzero, ITG **ielmatp,
ITG **ielorienp, ITG *norien, double *orab, ITG *ntmat_,
double *t0, double *t1, double *t1old,
ITG *ithermal,double *prestr, ITG *iprestr,
double *vold,ITG *iperturb, double *sti, ITG *nzs,
ITG *kode, ITG *mei, double *fei,
char *filab, double *eme,
ITG *iexpl, double *plicon, ITG *nplicon, double *plkcon,
ITG *nplkcon,
double **xstatep, ITG *npmat_, char *matname, ITG *mi,
ITG *ncmat_, ITG *nstate_, double **enerp, char *jobnamec,
char *output, char *set, ITG *nset, ITG *istartset,
ITG *iendset, ITG *ialset, ITG *nprint, char *prlab,
char *prset, ITG *nener, ITG *isolver, double *trab,
ITG *inotr, ITG *ntrans, double *ttime, double *fmpc,
char *cbody, ITG *ibody,double *xbody, ITG *nbody,
double *thicke, ITG *nslavs, double *tietol, ITG *nkon,
ITG *mpcinfo,ITG *ntie,ITG *istep,ITG *mcs,ITG *ics,
char *tieset,double *cs,ITG *nintpoint,ITG *mortar,
ITG *ifacecount,ITG **islavsurfp,double **pslavsurfp,
double **clearinip,ITG *nmat,char *typeboun,
ITG *ielprop,double *prop){
/* calls the Arnoldi Package (ARPACK) */
char bmat[2]="G", which[3]="LM", howmny[2]="A", fneig[132]="",
description[13]=" ",*lakon=NULL;
ITG *inum=NULL,k,ido,ldz,iparam[11],ipntr[14],lworkl,ngraph=1,im,
info,rvec=1,*select=NULL,lfin,j,lint,iout,ielas=0,icmd=0,mt=mi[1]+1,
iinc=1,nev,ncv,mxiter,jrow,*ipobody=NULL,inewton=0,ifreebody,
mass[2]={1,1}, stiffness=1, buckling=0, rhsi=0, intscheme=0,noddiam=-1,
coriolis=0,symmetryflag=0,inputformat=0,*ipneigh=NULL,*neigh=NULL,ne0,
*integerglob=NULL,nasym=0,zero=0,ncont=0,*itietri=NULL,
*koncont=NULL,ismallsliding=0,*itiefac=NULL,*islavsurf=NULL,
*islavnode=NULL,*imastnode=NULL,*nslavnode=NULL,*nmastnode=NULL,
*imastop=NULL,*iponoels=NULL,*inoels=NULL,*ipe=NULL,*ime=NULL,
mpcfree,memmpc_,icascade,maxlenmpc,iit=-1,*irow=NULL,nherm=1,
icfd=0,*inomat=NULL,*ipkon=NULL,*kon=NULL,*ielmat=NULL,*ielorien=NULL,
*islavact=NULL,maxprevcontel,iex,nslavs_prev_step,icutb=0,
iflagact=0,*islavsurfold=NULL;
double *stn=NULL,*v=NULL,*resid=NULL,*z=NULL,*workd=NULL,
*workl=NULL,*d=NULL,sigma=1,*temp_array=NULL,*pslavsurfold=NULL,
*een=NULL,sum,cam[5],*f=NULL,*fn=NULL,qa[3],*fext=NULL,
*epn=NULL,*fnr=NULL,*fni=NULL,*emn=NULL,*emeini=NULL,
*xstateini=NULL,*xstiff=NULL,*stiini=NULL,*vini=NULL,freq,*stx=NULL,
*enern=NULL,*xstaten=NULL,*eei=NULL,*enerini=NULL,
*physcon=NULL,*qfx=NULL,*qfn=NULL,tol,fmin,fmax,pi,*cgr=NULL,
*xloadold=NULL,reltime=1.,*vr=NULL,*vi=NULL,*stnr=NULL,*stni=NULL,
*vmax=NULL,*stnmax=NULL,*springarea=NULL,*eenmax=NULL,
*doubleglob=NULL,*cg=NULL,*straight=NULL,*clearini=NULL,
*xmastnor=NULL,*areaslav=NULL,*xnoels=NULL,theta=0.,
*di=NULL,sigmai=0,*workev=NULL,*ener=NULL,*xstate=NULL,*dc=NULL,
*au=NULL,*ad=NULL,*b=NULL,*aub=NULL,*adb=NULL,*pslavsurf=NULL,
*pmastsurf=NULL,*cdn=NULL,
*cdnr=NULL,*cdni=NULL;
FILE *f1;
/* dummy arguments for the results call */
double *veold=NULL,*accold=NULL,bet,gam,dtime,time=1.;
#ifdef SGI
ITG token;
#endif
irow=*irowp;ener=*enerp;xstate=*xstatep;ipkon=*ipkonp;lakon=*lakonp;
kon=*konp;ielmat=*ielmatp;ielorien=*ielorienp;
islavsurf=*islavsurfp;pslavsurf=*pslavsurfp;clearini=*clearinip;
if(*mortar!=1){
maxprevcontel=*nslavs;
}else if(*mortar==1){
maxprevcontel=*nintpoint;
if(*nstate_!=0){
if(maxprevcontel!=0){
NNEW(islavsurfold,ITG,2**ifacecount+2);
NNEW(pslavsurfold,double,3**nintpoint);
memcpy(&islavsurfold[0],&islavsurf[0],
sizeof(ITG)*(2**ifacecount+2));
memcpy(&pslavsurfold[0],&pslavsurf[0],
sizeof(double)*(3**nintpoint));
}
}
}
nslavs_prev_step=*nslavs;
if((strcmp1(&filab[870],"PU ")==0)||
(strcmp1(&filab[1479],"PHS ")==0)||
(strcmp1(&filab[1566],"MAXU")==0)||
(strcmp1(&filab[1653],"MAXS")==0)){
printf("*WARNING in arpack: PU, PHS, MAXU or MAX was selected in a frequency calculation without cyclic symmetry;\n this is not correct; output request is removed;\n");
strcpy1(&filab[870]," ",4);
strcpy1(&filab[1479]," ",4);
strcpy1(&filab[1566]," ",4);
strcpy1(&filab[1653]," ",4);
}
/* copying the frequency parameters */
pi=4.*atan(1.);
nev=mei[0];
ncv=mei[1];
mxiter=mei[2];
tol=fei[0];
fmin=2*pi*fei[1];
fmax=2*pi*fei[2];
/* assigning the body forces to the elements */
if(*nbody>0){
ifreebody=*ne+1;
NNEW(ipobody,ITG,2*ifreebody**nbody);
for(k=1;k<=*nbody;k++){
FORTRAN(bodyforce,(cbody,ibody,ipobody,nbody,set,istartset,
iendset,ialset,&inewton,nset,&ifreebody,&k));
RENEW(ipobody,ITG,2*(*ne+ifreebody));
}
RENEW(ipobody,ITG,2*(ifreebody-1));
if(inewton==1){
printf("*ERROR in arpackcs: generalized gravity loading is not allowed in frequency calculations");
FORTRAN(stop,());
}
}
ne0=*ne;
/* contact conditions */
if(*iperturb!=0){
memmpc_=mpcinfo[0];mpcfree=mpcinfo[1];icascade=mpcinfo[2];
maxlenmpc=mpcinfo[3];
inicont(nk,&ncont,ntie,tieset,nset,set,istartset,iendset,ialset,&itietri,
lakon,ipkon,kon,&koncont,nslavs,tietol,&ismallsliding,&itiefac,
&islavsurf,&islavnode,&imastnode,&nslavnode,&nmastnode,
mortar,&imastop,nkon,&iponoels,&inoels,&ipe,&ime,ne,ifacecount,
nmpc,&mpcfree,&memmpc_,
&ipompc,&labmpc,&ikmpc,&ilmpc,&fmpc,&nodempc,&coefmpc,
iperturb,ikboun,nboun,co,istep,&xnoels);
if(ncont!=0){
NNEW(cg,double,3*ncont);
NNEW(straight,double,16*ncont);
/* 11 instead of 10: last position is reserved for the
local contact spring element number; needed as
pointer into springarea */
if(*mortar==0){
RENEW(kon,ITG,*nkon+11**nslavs);
NNEW(springarea,double,2**nslavs);
if(*nener==1){
RENEW(ener,double,mi[0]*(*ne+*nslavs)*2);
}
RENEW(ipkon,ITG,*ne+*nslavs);
RENEW(lakon,char,8*(*ne+*nslavs));
if(*norien>0){
RENEW(ielorien,ITG,mi[2]*(*ne+*nslavs));
for(k=mi[2]**ne;k<mi[2]*(*ne+*nslavs);k++) ielorien[k]=0;
}
RENEW(ielmat,ITG,mi[2]*(*ne+*nslavs));
for(k=mi[2]**ne;k<mi[2]*(*ne+*nslavs);k++) ielmat[k]=1;
if((maxprevcontel==0)&&(*nslavs!=0)){
RENEW(xstate,double,*nstate_*mi[0]*(*ne+*nslavs));
for(k=*nstate_*mi[0]**ne;k<*nstate_*mi[0]*(*ne+*nslavs);k++){
xstate[k]=0.;
}
}
maxprevcontel=*nslavs;
NNEW(areaslav,double,*ifacecount);
NNEW(xmastnor,double,3*nmastnode[*ntie]);
}else if(*mortar==1){
NNEW(islavact,ITG,nslavnode[*ntie]);
DMEMSET(islavact,0,nslavnode[*ntie],1);
if((*istep==1)||(nslavs_prev_step==0)) NNEW(clearini,double,3*9**ifacecount);
NNEW(xmastnor,double,3*nmastnode[*ntie]);
*nintpoint=0;
precontact(&ncont,ntie,tieset,nset,set,istartset,
iendset,ialset,itietri,lakon,ipkon,kon,koncont,ne,
cg,straight,co,vold,istep,&iinc,&iit,itiefac,
islavsurf,islavnode,imastnode,nslavnode,nmastnode,
imastop,mi,ipe,ime,tietol,&iflagact,
nintpoint,&pslavsurf,xmastnor,cs,mcs,ics,clearini,
nslavs);
/* changing the dimension of element-related fields */
RENEW(kon,ITG,*nkon+22**nintpoint);
RENEW(springarea,double,2**nintpoint);
RENEW(pmastsurf,double,6**nintpoint);
if(*nener==1){
RENEW(ener,double,mi[0]*(*ne+*nintpoint)*2);
}
RENEW(ipkon,ITG,*ne+*nintpoint);
RENEW(lakon,char,8*(*ne+*nintpoint));
if(*norien>0){
RENEW(ielorien,ITG,mi[2]*(*ne+*nintpoint));
for(k=mi[2]**ne;k<mi[2]*(*ne+*nintpoint);k++) ielorien[k]=0;
}
RENEW(ielmat,ITG,mi[2]*(*ne+*nintpoint));
for(k=mi[2]**ne;k<mi[2]*(*ne+*nintpoint);k++) ielmat[k]=1;
/* interpolating the state variables */
if(*nstate_!=0){
if(maxprevcontel!=0){
RENEW(xstateini,double,
*nstate_*mi[0]*(ne0+maxprevcontel));
for(k=*nstate_*mi[0]*ne0;
k<*nstate_*mi[0]*(ne0+maxprevcontel);++k){
xstateini[k]=xstate[k];
}
}
RENEW(xstate,double,*nstate_*mi[0]*(ne0+*nintpoint));
for(k=*nstate_*mi[0]*ne0;k<*nstate_*mi[0]*(ne0+*nintpoint);k++){
xstate[k]=0.;
}
if((*nintpoint>0)&&(maxprevcontel>0)){
iex=2;
/* interpolation of xstate */
FORTRAN(interpolatestate,(ne,ipkon,kon,lakon,
&ne0,mi,xstate,pslavsurf,nstate_,
xstateini,islavsurf,islavsurfold,
pslavsurfold,tieset,ntie,itiefac));
}
if(maxprevcontel!=0){
SFREE(islavsurfold);SFREE(pslavsurfold);
}
maxprevcontel=*nintpoint;
RENEW(xstateini,double,*nstate_*mi[0]*(ne0+*nintpoint));
for(k=0;k<*nstate_*mi[0]*(ne0+*nintpoint);++k){
xstateini[k]=xstate[k];
}
}
}
/* generating contact spring elements */
contact(&ncont,ntie,tieset,nset,set,istartset,iendset,
ialset,itietri,lakon,ipkon,kon,koncont,ne,cg,straight,nkon,
co,vold,ielmat,cs,elcon,istep,&iinc,&iit,ncmat_,ntmat_,
&ne0,vini,nmethod,nmpc,&mpcfree,&memmpc_,
&ipompc,&labmpc,&ikmpc,&ilmpc,&fmpc,&nodempc,&coefmpc,
iperturb,ikboun,nboun,mi,imastop,nslavnode,islavnode,islavsurf,
itiefac,areaslav,iponoels,inoels,springarea,tietol,&reltime,
imastnode,nmastnode,xmastnor,filab,mcs,ics,&nasym,
xnoels,mortar,pslavsurf,pmastsurf,clearini,&theta,
xstateini,xstate,nstate_,&icutb);
printf("number of contact spring elements=%" ITGFORMAT "\n\n",*ne-ne0);
/* determining the structure of the stiffness/mass matrix */
remastructar(ipompc,&coefmpc,&nodempc,nmpc,
&mpcfree,nodeboun,ndirboun,nboun,ikmpc,ilmpc,ikboun,ilboun,
labmpc,nk,&memmpc_,&icascade,&maxlenmpc,
kon,ipkon,lakon,ne,nactdof,icol,jq,&irow,isolver,
neq,nzs,nmethod,ithermal,iperturb,mass,mi,ics,cs,
mcs,mortar,typeboun);
}
}
/* field for initial values of state variables (needed if
previous static step was viscoplastic and for contact */
if((*nstate_!=0)&&((*mortar==0)||(ncont==0))){
NNEW(xstateini,double,*nstate_*mi[0]*(ne0+*nslavs));
for(k=0;k<*nstate_*mi[0]*(ne0+*nslavs);++k){
xstateini[k]=xstate[k];
}
}
/* determining the internal forces and the stiffness coefficients */
NNEW(f,double,neq[1]);
/* allocating a field for the stiffness matrix */
NNEW(xstiff,double,(long long)27*mi[0]**ne);
iout=-1;
NNEW(v,double,mt**nk);
memcpy(&v[0],&vold[0],sizeof(double)*mt**nk);
NNEW(fn,double,mt**nk);
NNEW(stx,double,6*mi[0]**ne);
if(*ithermal>1){
NNEW(qfx,double,3*mi[0]**ne);
}
NNEW(inum,ITG,*nk);
if(*iperturb==0){
results(co,nk,kon,ipkon,lakon,ne,v,stn,inum,stx,
elcon,nelcon,rhcon,nrhcon,alcon,nalcon,alzero,ielmat,
ielorien,norien,orab,ntmat_,t0,t0,ithermal,
prestr,iprestr,filab,eme,emn,een,iperturb,
f,fn,nactdof,&iout,qa,vold,b,nodeboun,
ndirboun,xboun,nboun,ipompc,
nodempc,coefmpc,labmpc,nmpc,nmethod,cam,&neq[1],veold,accold,
&bet,&gam,&dtime,&time,ttime,plicon,nplicon,plkcon,nplkcon,
xstateini,xstiff,xstate,npmat_,epn,matname,mi,&ielas,
&icmd,ncmat_,nstate_,stiini,vini,ikboun,ilboun,ener,enern,
emeini,xstaten,eei,enerini,cocon,ncocon,set,nset,istartset,
iendset,ialset,nprint,prlab,prset,qfx,qfn,trab,inotr,ntrans,
fmpc,nelemload,nload,ikmpc,ilmpc,istep,&iinc,springarea,
&reltime,&ne0,xforc,nforc,thicke,shcon,nshcon,
sideload,xload,xloadold,&icfd,inomat,pslavsurf,pmastsurf,
mortar,islavact,cdn,islavnode,nslavnode,ntie,clearini,
islavsurf,ielprop,prop);
}else{
results(co,nk,kon,ipkon,lakon,ne,v,stn,inum,stx,
elcon,nelcon,rhcon,nrhcon,alcon,nalcon,alzero,ielmat,
ielorien,norien,orab,ntmat_,t0,t1old,ithermal,
prestr,iprestr,filab,eme,emn,een,iperturb,
f,fn,nactdof,&iout,qa,vold,b,nodeboun,
ndirboun,xboun,nboun,ipompc,
nodempc,coefmpc,labmpc,nmpc,nmethod,cam,&neq[1],veold,accold,
&bet,&gam,&dtime,&time,ttime,plicon,nplicon,plkcon,nplkcon,
xstateini,xstiff,xstate,npmat_,epn,matname,mi,&ielas,
&icmd,ncmat_,nstate_,stiini,vini,ikboun,ilboun,ener,enern,
emeini,xstaten,eei,enerini,cocon,ncocon,set,nset,istartset,
iendset,ialset,nprint,prlab,prset,qfx,qfn,trab,inotr,ntrans,
fmpc,nelemload,nload,ikmpc,ilmpc,istep,&iinc,springarea,
&reltime,&ne0,xforc,nforc,thicke,shcon,nshcon,
sideload,xload,xloadold,&icfd,inomat,pslavsurf,pmastsurf,
mortar,islavact,cdn,islavnode,nslavnode,ntie,clearini,
islavsurf,ielprop,prop);
}
SFREE(f);SFREE(v);SFREE(fn);SFREE(stx);if(*ithermal>1)SFREE(qfx);SFREE(inum);
iout=1;
/* for the frequency analysis linear strain and elastic properties
are used */
iperturb[1]=0;ielas=1;
/* filling in the matrix */
NNEW(ad,double,neq[1]);
NNEW(au,double,nzs[2]);
NNEW(adb,double,neq[1]);
NNEW(aub,double,nzs[1]);
NNEW(fext,double,neq[1]);
if(*iperturb==0){
FORTRAN(mafillsm,(co,nk,kon,ipkon,lakon,ne,nodeboun,ndirboun,xboun,nboun,
ipompc,nodempc,coefmpc,nmpc,nodeforc,ndirforc,xforc,
nforc,nelemload,sideload,xload,nload,xbody,ipobody,nbody,cgr,
ad,au,fext,nactdof,icol,jq,irow,neq,nzl,nmethod,
ikmpc,ilmpc,ikboun,ilboun,
elcon,nelcon,rhcon,nrhcon,alcon,nalcon,alzero,ielmat,
ielorien,norien,orab,ntmat_,
t0,t0,ithermal,prestr,iprestr,vold,iperturb,sti,
nzs,stx,adb,aub,iexpl,plicon,nplicon,plkcon,nplkcon,
xstiff,npmat_,&dtime,matname,mi,
ncmat_,mass,&stiffness,&buckling,&rhsi,&intscheme,
physcon,shcon,nshcon,cocon,ncocon,ttime,&time,istep,&iinc,
&coriolis,ibody,xloadold,&reltime,veold,springarea,nstate_,
xstateini,xstate,thicke,integerglob,doubleglob,
tieset,istartset,iendset,ialset,ntie,&nasym,pslavsurf,
pmastsurf,mortar,clearini,ielprop,prop));
}
else{
FORTRAN(mafillsm,(co,nk,kon,ipkon,lakon,ne,nodeboun,ndirboun,xboun,nboun,
ipompc,nodempc,coefmpc,nmpc,nodeforc,ndirforc,xforc,
nforc,nelemload,sideload,xload,nload,xbody,ipobody,nbody,cgr,
ad,au,fext,nactdof,icol,jq,irow,neq,nzl,nmethod,
ikmpc,ilmpc,ikboun,ilboun,
elcon,nelcon,rhcon,nrhcon,alcon,nalcon,alzero,ielmat,
ielorien,norien,orab,ntmat_,
t0,t1old,ithermal,prestr,iprestr,vold,iperturb,sti,
nzs,stx,adb,aub,iexpl,plicon,nplicon,plkcon,nplkcon,
xstiff,npmat_,&dtime,matname,mi,
ncmat_,mass,&stiffness,&buckling,&rhsi,&intscheme,
physcon,shcon,nshcon,cocon,ncocon,ttime,&time,istep,&iinc,
&coriolis,ibody,xloadold,&reltime,veold,springarea,nstate_,
xstateini,xstate,thicke,integerglob,doubleglob,
tieset,istartset,iendset,ialset,ntie,&nasym,pslavsurf,
pmastsurf,mortar,clearini,ielprop,prop));
if(nasym==1){
RENEW(au,double,nzs[2]+nzs[1]);
RENEW(aub,double,nzs[2]+nzs[1]);
symmetryflag=2;
inputformat=1;
FORTRAN(mafillsmas,(co,nk,kon,ipkon,lakon,ne,nodeboun,
ndirboun,xboun,nboun,
ipompc,nodempc,coefmpc,nmpc,nodeforc,ndirforc,xforc,
nforc,nelemload,sideload,xload,nload,xbody,ipobody,
nbody,cgr,ad,au,fext,nactdof,icol,jq,irow,neq,nzl,
nmethod,ikmpc,ilmpc,ikboun,ilboun,
elcon,nelcon,rhcon,nrhcon,alcon,nalcon,alzero,
ielmat,ielorien,norien,orab,ntmat_,
t0,t1old,ithermal,prestr,iprestr,vold,iperturb,sti,
nzs,stx,adb,aub,iexpl,plicon,nplicon,plkcon,nplkcon,
xstiff,npmat_,&dtime,matname,mi,
ncmat_,mass,&stiffness,&buckling,&rhsi,&intscheme,
physcon,shcon,nshcon,cocon,ncocon,ttime,&time,istep,&iinc,
&coriolis,ibody,xloadold,&reltime,veold,springarea,nstate_,
xstateini,xstate,thicke,
integerglob,doubleglob,tieset,istartset,iendset,
ialset,ntie,&nasym,pslavsurf,pmastsurf,mortar,clearini,
ielprop,prop));
}
}
SFREE(fext);
if(*nmethod==0){
/* error occurred in mafill: storing the geometry in frd format */
++*kode;
NNEW(inum,ITG,*nk);for(k=0;k<*nk;k++) inum[k]=1;
if(strcmp1(&filab[1044],"ZZS")==0){
NNEW(neigh,ITG,40**ne);
NNEW(ipneigh,ITG,*nk);
}
frd(co,nk,kon,ipkon,lakon,ne,v,stn,inum,nmethod,
kode,filab,een,t1,fn,&time,epn,ielmat,matname,enern,xstaten,
nstate_,istep,&iinc,ithermal,qfn,&j,&noddiam,trab,inotr,
ntrans,orab,ielorien,norien,description,ipneigh,neigh,
mi,sti,vr,vi,stnr,stni,vmax,stnmax,&ngraph,veold,ener,ne,
cs,set,nset,istartset,iendset,ialset,eenmax,fnr,fni,emn,
thicke,jobnamec,output,qfx,cdn,mortar,cdnr,cdni,nmat);
if(strcmp1(&filab[1044],"ZZS")==0){SFREE(ipneigh);SFREE(neigh);}
SFREE(inum);FORTRAN(stop,());
}
/* LU decomposition of the left hand matrix */
if(nasym==1){sigma=0.;}else{sigma=1.;}
if(*isolver==0){
#ifdef SPOOLES
spooles_factor(ad,au,adb,aub,&sigma,icol,irow,&neq[1],&nzs[1],
&symmetryflag,&inputformat,&nzs[2]);
#else
printf("*ERROR in arpack: the SPOOLES library is not linked\n\n");
FORTRAN(stop,());
#endif
}
else if(*isolver==4){
#ifdef SGI
token=1;
sgi_factor(ad,au,adb,aub,&sigma,icol,irow,&neq[1],&nzs[1],token);
#else
printf("*ERROR in arpack: the SGI library is not linked\n\n");
FORTRAN(stop,());
#endif
}
else if(*isolver==5){
#ifdef TAUCS
tau_factor(ad,&au,adb,aub,&sigma,icol,&irow,&neq[1],&nzs[1]);
#else
printf("*ERROR in arpack: the TAUCS library is not linked\n\n");
FORTRAN(stop,());
#endif
}
else if(*isolver==6){
#ifdef MATRIXSTORAGE
matrixstorage(ad,&au,adb,aub,&sigma,icol,&irow,&neq[1],&nzs[1],
ntrans,inotr,trab,co,nk,nactdof,jobnamec,mi,ipkon,
lakon,kon,ne,mei,nboun,nmpc,cs,mcs);
#else
printf("*ERROR in arpack: the MATRIXSTORAGE library is not linked\n\n");
FORTRAN(stop,());
#endif
}
else if(*isolver==7){
#ifdef PARDISO
pardiso_factor(ad,au,adb,aub,&sigma,icol,irow,&neq[1],&nzs[1],
&symmetryflag,&inputformat,jq,&nzs[2]);
#else
printf("*ERROR in arpack: the PARDISO library is not linked\n\n");
FORTRAN(stop,());
#endif
}
/* calculating the eigenvalues and eigenmodes */
printf(" Calculating the eigenvalues and the eigenmodes\n\n");
ido=0;
ldz=neq[1];
iparam[0]=1;
iparam[2]=mxiter;
iparam[3]=1;
iparam[6]=3;
info=0;
NNEW(resid,double,neq[1]);
NNEW(z,double,(long long)ncv*neq[1]);
NNEW(workd,double,3*neq[1]);
if(nasym==1){
lworkl=3*ncv*(2+ncv);
NNEW(workl,double,lworkl);
FORTRAN(dnaupd,(&ido,bmat,&neq[1],which,&nev,&tol,resid,&ncv,z,&ldz,iparam,ipntr,workd,
workl,&lworkl,&info));
}else{
lworkl=ncv*(8+ncv);
NNEW(workl,double,lworkl);
FORTRAN(dsaupd,(&ido,bmat,&neq[1],which,&nev,&tol,resid,&ncv,z,&ldz,iparam,ipntr,workd,
workl,&lworkl,&info));
}
NNEW(temp_array,double,neq[1]);
while((ido==-1)||(ido==1)||(ido==2)){
if(ido==-1){
if(nasym==1){
FORTRAN(opas,(&neq[1],&workd[ipntr[0]-1],temp_array,adb,aub,jq,irow,nzs));
}else{
FORTRAN(op,(&neq[1],&workd[ipntr[0]-1],temp_array,adb,aub,jq,irow));
}
}
if((ido==-1)||(ido==1)){
/* solve the linear equation system */
if(ido==-1){
if(*isolver==0){
#ifdef SPOOLES
spooles_solve(temp_array,&neq[1]);
#endif
}
else if(*isolver==4){
#ifdef SGI
sgi_solve(temp_array,token);
#endif
}
else if(*isolver==5){
#ifdef TAUCS
tau_solve(temp_array,&neq[1]);
#endif
}
else if(*isolver==7){
#ifdef PARDISO
pardiso_solve(temp_array,&neq[1],&symmetryflag);
#endif
}
for(jrow=0;jrow<neq[1];jrow++){
workd[ipntr[1]-1+jrow]=temp_array[jrow];
}
}
else if(ido==1){
if(*isolver==0){
#ifdef SPOOLES
spooles_solve(&workd[ipntr[2]-1],&neq[1]);
#endif
}
else if(*isolver==4){
#ifdef SGI
sgi_solve(&workd[ipntr[2]-1],token);
#endif
}
else if(*isolver==5){
#ifdef TAUCS
tau_solve(&workd[ipntr[2]-1],&neq[1]);
#endif
}
else if(*isolver==7){
#ifdef PARDISO
pardiso_solve(&workd[ipntr[2]-1],&neq[1],&symmetryflag);
#endif
}
for(jrow=0;jrow<neq[1];jrow++){
workd[ipntr[1]-1+jrow]=workd[ipntr[2]-1+jrow];
}
}
}
if(ido==2){
if(nasym==1){
FORTRAN(opas,(&neq[1],&workd[ipntr[0]-1],&workd[ipntr[1]-1],
adb,aub,jq,irow,nzs));
}else{
FORTRAN(op,(&neq[1],&workd[ipntr[0]-1],&workd[ipntr[1]-1],
adb,aub,jq,irow));
}
}
if(nasym==1){
FORTRAN(dnaupd,(&ido,bmat,&neq[1],which,&nev,&tol,resid,&ncv,z,&ldz,
iparam,ipntr,workd,workl,&lworkl,&info));
}else{
FORTRAN(dsaupd,(&ido,bmat,&neq[1],which,&nev,&tol,resid,&ncv,z,&ldz,
iparam,ipntr,workd,workl,&lworkl,&info));
}
}
/*--------------------------------------------------------------------*/
/*
-----------
free memory
-----------
*/
SFREE(temp_array);
if(*isolver==0){
#ifdef SPOOLES
spooles_cleanup();
#endif
}
else if(*isolver==4){
#ifdef SGI
sgi_cleanup(token);
#endif
}
else if(*isolver==5){
#ifdef TAUCS
tau_cleanup();
#endif
}
else if(*isolver==7){
#ifdef PARDISO
pardiso_cleanup(&neq[1],&symmetryflag);
#endif
}
if(info!=0){
printf("*ERROR in arpack: info=%" ITGFORMAT "\n",info);
printf(" # of converged eigenvalues=%" ITGFORMAT "\n\n",iparam[4]);
}
NNEW(select,ITG,ncv);
if(nasym==1){
NNEW(d,double,nev+1);
NNEW(di,double,nev+1);
NNEW(workev,double,3*ncv);
FORTRAN(dneupd,(&rvec,howmny,select,d,di,z,&ldz,&sigma,&sigmai,
workev,bmat,&neq[1],which,&nev,&tol,resid,
&ncv,z,&ldz,iparam,ipntr,workd,workl,&lworkl,&info));
SFREE(workev);
NNEW(dc,double,2*nev);
/* storing as complex number and taking the square root */
for(j=0;j<nev;j++){
dc[2*j]=sqrt(sqrt(d[j]*d[j]+di[j]*di[j])+d[j])/sqrt(2.);
dc[2*j+1]=sqrt(sqrt(d[j]*d[j]+di[j]*di[j])-d[j])/sqrt(2.);
if(di[j]<0.) dc[2*j+1]=-dc[2*j+1];
}
FORTRAN(writeevcomplex,(dc,&nev,&fmin,&fmax));
SFREE(di);SFREE(dc);
}else{
NNEW(d,double,nev);
FORTRAN(dseupd,(&rvec,howmny,select,d,z,&ldz,&sigma,bmat,&neq[1],which,
&nev,&tol,resid,&ncv,z,&ldz,iparam,ipntr,workd,workl,&lworkl,&info));
FORTRAN(writeev,(d,&nev,&fmin,&fmax));
}
SFREE(select);SFREE(workd);SFREE(workl);SFREE(resid);
/* writing the eigenvalues and mass matrix to a binary file */
if(mei[3]==1){
strcpy(fneig,jobnamec);
strcat(fneig,".eig");
if((f1=fopen(fneig,"wb"))==NULL){
printf("*ERROR in arpack: cannot open eigenvalue file for writing...");
exit(0);
}
/* storing a zero as indication that this was not a
cyclic symmetry calculation */
if(fwrite(&zero,sizeof(ITG),1,f1)!=1){
printf("*ERROR saving the cyclic symmetry flag to the eigenvalue file...");
exit(0);
}
/* Hermitian */
if(fwrite(&nherm,sizeof(ITG),1,f1)!=1){
printf("*ERROR saving the Hermitian flag to the eigenvalue file...");
exit(0);
}
/* storing the number of eigenvalues */
if(fwrite(&nev,sizeof(ITG),1,f1)!=1){
printf("*ERROR saving the number of eigenvalues to the eigenvalue file...");
exit(0);
}
/* the eigenfrequencies are stores as radians/time */
if(fwrite(d,sizeof(double),nev,f1)!=nev){
printf("*ERROR saving the eigenfrequencies to the eigenvalue file...");
exit(0);
}
/* storing the stiffness matrix */
if(fwrite(ad,sizeof(double),neq[1],f1)!=neq[1]){
printf("*ERROR saving the diagonal of the stiffness matrix to the eigenvalue file...");
exit(0);
}
if(fwrite(au,sizeof(double),nzs[2],f1)!=nzs[2]){
printf("*ERROR saving the off-diagonal terms of the stiffness matrix to the eigenvalue file...");
exit(0);
}
/* storing the mass matrix */
if(fwrite(adb,sizeof(double),neq[1],f1)!=neq[1]){
printf("*ERROR saving the diagonal of the mass matrix to the eigenvalue file...");
exit(0);
}
if(fwrite(aub,sizeof(double),nzs[1],f1)!=nzs[1]){
printf("*ERROR saving the off-diagonal terms of the mass matrix to the eigenvalue file...");
exit(0);
}
}
/* calculating the participation factors and the relative effective
modal mass */
if(*ithermal!=2){
FORTRAN(effectivemodalmass,(neq,nactdof,mi,adb,aub,jq,irow,&nev,z,co,nk));
}
SFREE(au);SFREE(ad);
/* calculating the displacements and the stresses and storing */
/* the results in frd format for each valid eigenmode */
NNEW(v,double,mt**nk);
NNEW(fn,double,mt**nk);
NNEW(stn,double,6**nk);
NNEW(inum,ITG,*nk);
NNEW(stx,double,6*mi[0]**ne);
if(*ithermal>1){
NNEW(qfn,double,3**nk);
NNEW(qfx,double,3*mi[0]**ne);
}
if(strcmp1(&filab[261],"E ")==0) NNEW(een,double,6**nk);
if(strcmp1(&filab[2697],"ME ")==0) NNEW(emn,double,6**nk);
if(strcmp1(&filab[522],"ENER")==0) NNEW(enern,double,*nk);
if(strcmp1(&filab[2175],"CONT")==0) NNEW(cdn,double,6**nk);
NNEW(temp_array,double,neq[1]);
lfin=0;
for(j=0;j<nev;++j){
lint=lfin;
lfin=lfin+neq[1];
for(k=0;k<6*mi[0]*ne0;k++){eme[k]=0.;}
sum=0.;
for(k=0;k<neq[1];++k)
temp_array[k]=0.;
if(nasym==1){
FORTRAN(opas,(&neq[1],&z[lint],temp_array,adb,aub,jq,irow,nzs));
}else{
FORTRAN(op,(&neq[1],&z[lint],temp_array,adb,aub,jq,irow));
}
for(k=0;k<neq[1];++k)
sum+=z[lint+k]*temp_array[k];
for(k=0;k<neq[1];++k)
z[lint+k]=z[lint+k]/sqrt(sum);
if(mei[3]==1){
if(fwrite(&z[lint],sizeof(double),neq[1],f1)!=neq[1]){
printf("*ERROR saving data to the eigenvalue file...");
exit(0);
}
}
/* check whether the frequency belongs to the requested
interval */
if(fmin>-0.5){
if(fmin*fmin>d[j]) continue;
}
if(fmax>-0.5){
if(fmax*fmax<d[j]) continue;
}
if(*nprint>0) FORTRAN(writehe,(&j));
NNEW(eei,double,6*mi[0]*ne0);
if(*nener==1){
NNEW(stiini,double,6*mi[0]*ne0);
NNEW(enerini,double,mi[0]*ne0);}
// memset(&v[0],0.,sizeof(double)*mt**nk);
DMEMSET(v,0,mt**nk,0.);
if(*iperturb==0){
results(co,nk,kon,ipkon,lakon,ne,v,stn,inum,
stx,elcon,
nelcon,rhcon,nrhcon,alcon,nalcon,alzero,ielmat,ielorien,
norien,orab,ntmat_,t0,t0,ithermal,
prestr,iprestr,filab,eme,emn,een,iperturb,
f,fn,nactdof,&iout,qa,vold,&z[lint],
nodeboun,ndirboun,xboun,nboun,ipompc,
nodempc,coefmpc,labmpc,nmpc,nmethod,cam,&neq[1],veold,accold,
&bet,&gam,&dtime,&time,ttime,plicon,nplicon,plkcon,nplkcon,
xstateini,xstiff,xstate,npmat_,epn,matname,mi,&ielas,
&icmd,ncmat_,nstate_,stiini,vini,ikboun,ilboun,ener,enern,
emeini,xstaten,eei,enerini,cocon,ncocon,set,nset,istartset,
iendset,
ialset,nprint,prlab,prset,qfx,qfn,trab,inotr,ntrans,fmpc,
nelemload,nload,ikmpc,ilmpc,istep,&iinc,springarea,
&reltime,&ne0,xforc,nforc,thicke,shcon,nshcon,
sideload,xload,xloadold,&icfd,inomat,pslavsurf,pmastsurf,
mortar,islavact,cdn,islavnode,nslavnode,ntie,clearini,
islavsurf,ielprop,prop);}
else{
results(co,nk,kon,ipkon,lakon,ne,v,stn,inum,
stx,elcon,
nelcon,rhcon,nrhcon,alcon,nalcon,alzero,ielmat,ielorien,
norien,orab,ntmat_,t0,t1old,ithermal,
prestr,iprestr,filab,eme,emn,een,iperturb,
f,fn,nactdof,&iout,qa,vold,&z[lint],
nodeboun,ndirboun,xboun,nboun,ipompc,
nodempc,coefmpc,labmpc,nmpc,nmethod,cam,&neq[1],veold,accold,
&bet,&gam,&dtime,&time,ttime,plicon,nplicon,plkcon,nplkcon,
xstateini,xstiff,xstate,npmat_,epn,matname,mi,&ielas,
&icmd,ncmat_,nstate_,stiini,vini,ikboun,ilboun,ener,enern,emeini,
xstaten,eei,enerini,cocon,ncocon,set,nset,istartset,iendset,
ialset,nprint,prlab,prset,qfx,qfn,trab,inotr,ntrans,fmpc,
nelemload,nload,ikmpc,ilmpc,istep,&iinc,springarea,&reltime,
&ne0,xforc,nforc,thicke,shcon,nshcon,
sideload,xload,xloadold,&icfd,inomat,pslavsurf,pmastsurf,
mortar,islavact,cdn,islavnode,nslavnode,ntie,clearini,
islavsurf,ielprop,prop);
}
SFREE(eei);
if(*nener==1){
SFREE(stiini);SFREE(enerini);}
++*kode;
if(d[j]>=0.){
freq=sqrt(d[j])/6.283185308;
}else{
freq=0.;
}
if(strcmp1(&filab[1044],"ZZS")==0){
NNEW(neigh,ITG,40**ne);
NNEW(ipneigh,ITG,*nk);
}
frd(co,nk,kon,ipkon,lakon,ne,v,stn,inum,nmethod,
kode,filab,een,t1,fn,&freq,epn,ielmat,matname,enern,xstaten,
nstate_,istep,&iinc,ithermal,qfn,&j,&noddiam,trab,inotr,
ntrans,orab,ielorien,norien,description,ipneigh,neigh,
mi,stx,vr,vi,stnr,stni,vmax,stnmax,&ngraph,veold,ener,ne,
cs,set,nset,istartset,iendset,ialset,eenmax,fnr,fni,emn,
thicke,jobnamec,output,qfx,cdn,mortar,cdnr,cdni,nmat);
if(strcmp1(&filab[1044],"ZZS")==0){SFREE(ipneigh);SFREE(neigh);}
if(*iperturb!=0){
for(k=0;k<*nstate_*mi[0]*(ne0+maxprevcontel);++k){
xstate[k]=xstateini[k];
}
}
}
if((fmax>-0.5)&&(fmax*fmax>d[nev-1])){
printf("\n*WARNING: not all frequencies in the requested interval might be found;\nincrease the number of requested frequencies\n");
}
if(mei[3]==1){
fclose(f1);
}
if(*iperturb!=0){
if(ncont!=0){
*ne=ne0;
if(*nener==1){
RENEW(ener,double,mi[0]**ne*2);
}
RENEW(ipkon,ITG,*ne);
RENEW(lakon,char,8**ne);
RENEW(kon,ITG,*nkon);
if(*norien>0){
RENEW(ielorien,ITG,mi[2]**ne);
}
RENEW(ielmat,ITG,mi[2]**ne);
SFREE(cg);SFREE(straight);
SFREE(imastop);SFREE(itiefac);SFREE(islavnode);
SFREE(nslavnode);SFREE(iponoels);SFREE(inoels);SFREE(imastnode);
SFREE(nmastnode);SFREE(itietri);SFREE(koncont);SFREE(xnoels);
SFREE(springarea);SFREE(xmastnor);
if(*mortar==0){
SFREE(areaslav);
}else if(*mortar==1){
SFREE(pmastsurf);SFREE(ipe);SFREE(ime);
SFREE(islavact);
}
}
}
SFREE(adb);SFREE(aub);SFREE(temp_array);
SFREE(v);SFREE(fn);SFREE(stn);SFREE(inum);SFREE(stx);
SFREE(z);SFREE(d);SFREE(xstiff);SFREE(ipobody);
if(*ithermal>1){SFREE(qfn);SFREE(qfx);}
if(*nstate_!=0){SFREE(xstateini);}
if(strcmp1(&filab[261],"E ")==0) SFREE(een);
if(strcmp1(&filab[2697],"ME ")==0) SFREE(emn);
if(strcmp1(&filab[522],"ENER")==0) SFREE(enern);
if(strcmp1(&filab[2175],"CONT")==0) SFREE(cdn);
for(k=0;k<6*mi[0]*ne0;k++){eme[k]=0.;}
if(*iperturb!=0){
mpcinfo[0]=memmpc_;mpcinfo[1]=mpcfree;mpcinfo[2]=icascade;
mpcinfo[3]=maxlenmpc;
}
*irowp=irow;*enerp=ener;*xstatep=xstate;*ipkonp=ipkon;*lakonp=lakon;
*konp=kon;*ielmatp=ielmat;*ielorienp=ielorien;
*islavsurfp=islavsurf;*pslavsurfp=pslavsurf;*clearinip=clearini;
return;
}
#endif
|
the_stack_data/115765099.c | /*
* plik ma na celu prezentację ciekawych zagadnień z programowania w języku C / C++
* prezentuje metody komunikacji sieciowej (TCP/IP) - program odbierający dane przez UDP
*
*/
#include <netdb.h>
#include <sys/socket.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#define _BUF_SIZE_ 255
int main(int argc, char *argv[]) {
if (argc<2) {
fprintf(stderr, "USAGE: %s port\n", argv[0]);
return 1;
}
int numerPortu = strtoll(argv[1],0,0);
if (numerPortu <= 0 || numerPortu > 65535) {
fprintf(stderr, "USAGE: %s port\n", argv[0]);
return 1;
}
// 1. otwieramy gniazdo (IPv6, UDP) ...
int sh = socket(AF_INET6, SOCK_DGRAM, 0);
if (sh<0) {
fprintf(stderr, "error in socket: %d %s\n", sh, strerror(errno));
return 2;
}
// i ustawiamy obsługę IPv4 oraz IPv6 na jednym gnieździe
int res = 0;
res = setsockopt(sh, IPPROTO_IPV6, IPV6_V6ONLY, (void *)&res, sizeof(res));
if (res<0) {
fprintf(stderr, "error in setsockopt: %d %s\n", res, strerror(errno));
return 2;
}
// 2. przygotowanie struktury z adresem do słuchania
struct sockaddr_in6 addr;
addr.sin6_family=AF_INET6;
addr.sin6_port=htons( numerPortu ); // zmieniamy porządek bajtów na sieciowy (host to network short);
// są też takie funkcje dla long oraz odwrotne
addr.sin6_addr=in6addr_any; // słuchamy na wszystkich adresach (zamiast tego można określić konkretny adres)
// 3. przypisanie adresu do gniazda
res=bind(sh, (struct sockaddr *) &addr, sizeof(addr));
if (res<0) {
fprintf(stderr, "error in bind: %d %s\n", res, strerror(errno));
return 3;
}
// 4. odbiór danych ...
while(1) {
char buf[_BUF_SIZE_];
struct sockaddr_in6 from;
socklen_t fromlen = sizeof(from);
// a. czekamy na porcję danych i ją odbieramy
res=recvfrom(sh, buf, _BUF_SIZE_, 0, (struct sockaddr *) &from, &fromlen);
if (res<0) {
fprintf(stderr, "error in recvfrom: %d %s\n", sh, strerror(errno));
continue;
}
// b. konwertujemy adres nadawcy na napis
char addr_buf[INET6_ADDRSTRLEN];
inet_ntop(AF_INET6, &(from.sin6_addr), addr_buf, INET6_ADDRSTRLEN);
// c. konwertujemy otrzymane dane (zakłądamy że to napis) na NULL-end string
buf[res]=0;
// d. wypisujemy
printf("odebrano od [%s]:%d : %s\n", addr_buf, ntohs(from.sin6_port), buf);
// e. można coś wysłać do "klienta" z użyciem:
sendto(sh, "OK\n", 3, 0, (struct sockaddr *) &from, fromlen);
}
// 5. zamkniecie gniazda
close(sh);
}
|
the_stack_data/50137159.c | /* mculib libgcc routines of Andes NDS32 cpu for GNU compiler
Copyright (C) 2012-2020 Free Software Foundation, Inc.
Contributed by Andes Technology Corporation.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published
by the Free Software Foundation; either version 3, or (at your
option) any later version.
GCC is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
License for more details.
Under Section 7 of GPL version 3, you are granted additional
permissions described in the GCC Runtime Library Exception, version
3.1, as published by the Free Software Foundation.
You should have received a copy of the GNU General Public License and
a copy of the GCC Runtime Library Exception along with this program;
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
<http://www.gnu.org/licenses/>. */
int
__clzsi2 (int val)
{
int i = 32;
int j = 16;
int temp;
for (; j; j >>= 1)
{
if (temp = val >> j)
{
if (j == 1)
{
return (i - 2);
}
else
{
i -= j;
val = temp;
}
}
}
return (i - val);
}
|
the_stack_data/83731.c | /*
* Copyright (C) 2015 University of Oregon
*
* You may distribute under the terms of either the GNU General Public
* License or the Apache License, as specified in the LICENSE file.
*
* For more information, see the LICENSE file.
*/
/*
*/
/*-----------------------------------------------------------------+
| readsctables read tables from dps('-j') output (dpstable) for |
| ============ C-to-SpinCAD pulse sequence conversion software |
+------------------------------------------------------------------+
| USAGE: readsctables ct #tables < dpstable > outfile |
| |
| ARGUMENTS: ct: number of scans for which phase tables |
| were extracted |
| #tables: number of tables present in input stream |
| |
| IT IS ESSENTIAL THAT BOTH THE NUMBER OF SCANS (ct |
| = maximum table size), AS WELL AS THE NUMBER OF |
| TABLES IF FIRST PROPERLY EVALUATED, otherwise |
| readsctables will not work properly! |
| |
| COMPILATION: cc -o readsctables readsctables.c [-Ddebug] |
+------------------------------------------------------------------+
| The INPUT is generated from within VNMR, using "dps('-j')", |
| which generates a file "dpstable" in the current experiment, |
| with the following format: |
| ct= 1 |
| 20 0 |
| 26 0 |
| 30 0 0 |
| .. |
| ct= 2 |
| 20 2 |
| 26 0 |
| 30 1 3 |
| .. |
| dps('-j') generates output for the currently specified number of |
| scans (nt); output is generated for any reference to real-time |
| variable or phase table in the "dps" output (dpsdata in the |
| current esperiment); the first number in each line indicates the |
| line number in the file "dpsdata" |
+------------------------------------------------------------------+
| OUTPUT FORMAT: readsctables produces one line per table. Each |
| starts with the "dpsdata" line number, followed by an ordinal |
| number, indicating the table number on that "dpsdata" line. |
| These numbers are then followed by the actual table. The tables |
| are reduced to minimum size by first repetitively dividing each |
| table into two halves until a) the two halves are not identical, |
| or until the table size becomes an odd number (such as 1). |
| Tables with less than 8 values are left as is; for longer tables |
| readsctables tries abbreviating the table using SpinCAD table |
| short-hand syntax, where "0 ^4" stands for "0 0 0 0". The extra |
| blank preceding the '^' will be removed by "vnmr2sc" |
| 20 1 0 |
| 26 1 0 |
| 30 1 0 |
| 30 2 0 |
| 31 1 1 1 3 3 |
| 32 1 0 2 |
| 34 1 1 1 3 3 |
| 34 2 0 2 |
| 38 1 0 |
| 39 1 0^4 2^4 |
| ... |
| 42 1 0^4 2^4 |
+------------------------------------------------------------------+
| Revision History: |
| 1999-11-26: rk, first complete version |
| 2001-12-14: rk, added more debugging code, fixed getchar |
| and calloc calls |
+-----------------------------------------------------------------*/
#include <stdio.h>
#include <string.h>
#ifdef debug
#define debug 1
#else
#define debug 0
#endif
#define TOKENSIZ 16
#define LINELEN 64
struct table
{
int line, size;
int *vals;
};
static int ct;
char token[TOKENSIZ], line[LINELEN];
struct table *tablearray;
/* read one input line */
void priv_getline()
{
int i = 0;
int c = getchar();
while ((c != '\n') && (c != '\0') && (i < LINELEN) && (c != EOF))
{
line[i++] = (char) c;
c = getchar();
}
line[i] = '\0';
if (debug) fprintf(stderr, "priv_getline(): line=\"%s\"\n", line);
}
/*-----+
| MAIN |
+-----*/
main(argc,argv)
int argc;
char *argv[];
{
int i, j, k, l, lineno, ntab, tables, compress;
int lline = 0,
lval = -32768,
cline = 0,
cval = 0,
nlines = 0;
char c;
/* read arguments */
if (argc < 3)
{
fprintf(stderr, "Usage: readsctables ct #tables < dpstable > outfile\n");
exit(1);
}
ct = atoi(argv[1]);
tables = atoi(argv[2]);
/* allocate memory for table header/pointer structure */
if (debug)
fprintf(stderr, " Allocating %d bytes for table array\n",
tables*sizeof(struct table));
tablearray = (struct table *) malloc(tables*sizeof(struct table));
if (tablearray == NULL)
{
fprintf(stderr, " failed to allocate memory for table headers\n");
exit(1);
}
if (debug)
fprintf(stderr, " Reading input data:\n");
/* skip first line */
priv_getline();
/*------------------------------+
| now read first block of lines |
+------------------------------*/
ntab = 0;
priv_getline();
while ((line[0] != 'c') && (line[0] != '\0'))
{
i = 0; /* line pointer */
/* read dpsdata (target) line number */
while ((line[i] != ' ') && (line[i] != '\0'))
{
token[i] = line[i];
i++;
}
token[i] = '\0';
lineno = atoi(token);
/* read values on current line */
while (line[i] != '\0')
{
/* skip white space */
while (line[i] == ' ')
i++;
/* read token */
j = 0; /* token pointer */
while ((line[i] != ' ') && (line[i] != '\0') && (j < TOKENSIZ))
{
token[j] = line[i];
i++; j++;
}
token[j] = '\0';
if (token[0] != '\0')
{
/* allocate memory for each new table */
tablearray[ntab].line = lineno;
tablearray[ntab].size = ct;
if (debug)
fprintf(stderr, " Allocating %d bytes for table #%d\n",
ct*sizeof(int), ntab);
tablearray[ntab].vals = (int *) calloc(ct, sizeof(int));
if (tablearray[ntab].vals == NULL)
{
fprintf(stderr, "failed to allocate memory at table #%d\n", ntab);
exit(1);
}
/* store first table value */
tablearray[ntab].vals[0] = atoi(token);
if (debug)
fprintf(stderr, "table #%2d: line=%d val[0]=%d\n", ntab,
tablearray[ntab].line,
tablearray[ntab].vals[0]);
/* increment table counter */
ntab++;
}
}
/* increment line counter */
nlines++;
/* read next line */
priv_getline();
}
/*---------------------------------------------------------+
| read "ct" table values from the rest of the input stream |
+---------------------------------------------------------*/
/* read "ct" blocks of data */
for (i = 1; (i < ct) && (line[0] != '\0'); i++)
{
/* reset table index */
ntab = 0;
/* read block line by line */
for (j = 0; j < nlines; j++)
{
priv_getline();
/* skip dpsdata line number (we assume properly organized input!) */
k = 0;
while ((line[k] != ' ') && (line[k] != '\0'))
k++;
/* skip whitespace after dpsdata line number */
while (line[k] == ' ')
k++;
/* read values on current line */
while (line[k] != '\0')
{
/* read token */
l = 0; /* token pointer */
while ((line[k] != ' ') && (line[k] != '\0') && (l < TOKENSIZ))
{
token[l] = line[k];
k++; l++;
}
token[l] = '\0';
/* skip whitespace after last token */
while (line[k] == ' ')
k++;
/* store table value */
if (token[0] != '\0')
{
tablearray[ntab].vals[i] = atoi(token);
if (debug)
fprintf(stderr, "table #%2d: line=%d val[%d]=%d\n", ntab,
tablearray[ntab].line, i,
tablearray[ntab].vals[i]);
/* increment table index */
ntab++;
}
}
}
/* read next line */
priv_getline();
}
/*--------------------------------------------------+
| debugging only: print tables prior to compression |
+--------------------------------------------------*/
if (debug)
{
fprintf(stderr, " Tables prior to compression:\n");
for (i = 0; i < tables; i++)
{
fprintf(stderr, "table #%2d line=%d size=%d:", i,
tablearray[i].line, tablearray[i].size);
for (j = 0; j < tablearray[i].size; j++)
fprintf(stderr, " %d",tablearray[i].vals[j]);
fprintf(stderr, "\n");
}
}
/*-------------------------------------------------------+
| compress tables, step 1: repetitively split table into |
| two halves and check whether the two half-tables are |
| identical. terminate when odd table size reached or |
| when the two halves are not identical |
+-------------------------------------------------------*/
if (ct > 1)
{
for (i = 0; i < ntab; i++)
{
/* don't even start if table size is odd number */
if ((ct % 2) == 0) compress = 1; else compress = 0;
for (j = ct/2; (j > 0) && (compress == 1); j /= 2)
{
/* compare (size/2) values */
for (k = 0; (k < j) && (compress == 1); k++)
{
if (tablearray[i].vals[k] != tablearray[i].vals[k + j])
compress = 0;
}
/* half-tables were identical, reduce size by factor of 2 */
if (compress == 1) tablearray[i].size /= 2;
/* terminate when odd size (e.g.: 1) reached */
if ((tablearray[i].size % 2) == 1) compress = 0;
}
}
}
/*-----------------------------------------------+
| debugging only: print tables after compression |
+-----------------------------------------------*/
if (debug)
{
fprintf(stderr, " Tables after compression:\n");
for (i = 0; i < tables; i++)
{
fprintf(stderr, "table #%2d line=%d size=%d:", i,
tablearray[i].line, tablearray[i].size);
for (j = 0; j < tablearray[i].size; j++)
fprintf(stderr, " %d",tablearray[i].vals[j]);
fprintf(stderr, "\n");
}
fprintf(stderr, " Regular command output:\n");
}
/*-----------------------------------------------+
| print out resulting tables, one table per line |
+-----------------------------------------------*/
for (i = 0; i < ntab; i++)
{
/* set table number (per line) to one if new line */
if (tablearray[i].line != lline)
cline = 1;
/* otherwise increment table number */
else
cline++;
/* remember dpsdata line number for next table */
lline = tablearray[i].line;
/* start each line with dpsdata line number and table count */
printf("%d %d", tablearray[i].line, cline);
/* for tables with less than 8 values print values as found */
if (tablearray[i].size < 8)
{
for (j = 0; j < tablearray[i].size; j++)
printf(" %d", tablearray[i].vals[j]);
printf("\n");
}
else
{
/*----------------------------------------------------+
| tables with 8 or more values: check whether SpinCAD |
| shorthand syntax (0^4 2^4) applies |
+----------------------------------------------------*/
for (j = 0; j < tablearray[i].size; j++)
{
/* first value in table */
if (j == 0)
{
/* print first value */
printf(" %d", tablearray[i].vals[j]);
/* remember last value */
lval = tablearray[i].vals[j];
/* initialize value count */
cval = 1;
}
else /* other values in table */
{
/* value is different from last one */
if (tablearray[i].vals[j] != lval)
{
/* last values were repetitive: print '^' and repetition count */
if (cval > 1) printf(" ^%d", cval);
/* print new value */
printf(" %d", tablearray[i].vals[j]);
/* remember new value */
lval = tablearray[i].vals[j];
/* re-initialize value count */
cval = 1;
}
else /* value is same as last one, increment value count */
cval++;
}
}
/* end of table: print last repetition index, if needed */
if (cval > 1) printf(" ^%d", cval);
printf("\n");
}
}
}
|
the_stack_data/92327928.c | unsigned int RSHash(char* str, unsigned int len)
{
unsigned int b = 378551;
unsigned int a = 63689;
unsigned int hash = 0;
unsigned int i = 0;
for(i = 0; i < len; str++, i++)
{
hash = hash * a + (*str);
a = a * b;
}
return hash;
}
/* End Of RS Hash Function */
unsigned int JSHash(char* str, unsigned int len)
{
unsigned int hash = 1315423911;
unsigned int i = 0;
for(i = 0; i < len; str++, i++)
{
hash ^= ((hash << 5) + (*str) + (hash >> 2));
}
return hash;
}
/* End Of JS Hash Function */
unsigned int PJWHash(char* str, unsigned int len)
{
const unsigned int BitsInUnsignedInt = (unsigned int)(sizeof(unsigned int) * 8);
const unsigned int ThreeQuarters = (unsigned int)((BitsInUnsignedInt * 3) / 4);
const unsigned int OneEighth = (unsigned int)(BitsInUnsignedInt / 8);
const unsigned int HighBits = (unsigned int)(0xFFFFFFFF) << (BitsInUnsignedInt - OneEighth);
unsigned int hash = 0;
unsigned int test = 0;
unsigned int i = 0;
for(i = 0; i < len; str++, i++)
{
hash = (hash << OneEighth) + (*str);
if((test = hash & HighBits) != 0)
{
hash = (( hash ^ (test >> ThreeQuarters)) & (~HighBits));
}
}
return hash;
}
/* End Of P. J. Weinberger Hash Function */
unsigned int ELFHash(char* str, unsigned int len)
{
unsigned int hash = 0;
unsigned int x = 0;
unsigned int i = 0;
for(i = 0; i < len; str++, i++)
{
hash = (hash << 4) + (*str);
if((x = hash & 0xF0000000L) != 0)
{
hash ^= (x >> 24);
}
hash &= ~x;
}
return hash;
}
/* End Of ELF Hash Function */
unsigned int BKDRHash(char* str, unsigned int len)
{
unsigned int seed = 131; /* 31 131 1313 13131 131313 etc.. */
unsigned int hash = 0;
unsigned int i = 0;
for(i = 0; i < len; str++, i++)
{
hash = (hash * seed) + (*str);
}
return hash;
}
/* End Of BKDR Hash Function */
unsigned int SDBMHash(char* str, unsigned int len)
{
unsigned int hash = 0;
unsigned int i = 0;
for(i = 0; i < len; str++, i++)
{
hash = (*str) + (hash << 6) + (hash << 16) - hash;
}
return hash;
}
/* End Of SDBM Hash Function */
unsigned int DJBHash(char* str, unsigned int len)
{
unsigned int hash = 5381;
unsigned int i = 0;
for(i = 0; i < len; str++, i++)
{
hash = ((hash << 5) + hash) + (*str);
}
return hash;
}
/* End Of DJB Hash Function */
unsigned int DEKHash(char* str, unsigned int len)
{
unsigned int hash = len;
unsigned int i = 0;
for(i = 0; i < len; str++, i++)
{
hash = ((hash << 5) ^ (hash >> 27)) ^ (*str);
}
return hash;
}
/* End Of DEK Hash Function */
unsigned int BPHash(char* str, unsigned int len)
{
unsigned int hash = 0;
unsigned int i = 0;
for(i = 0; i < len; str++, i++)
{
hash = hash << 7 ^ (*str);
}
return hash;
}
/* End Of BP Hash Function */
unsigned int FNVHash(char* str, unsigned int len)
{
const unsigned int fnv_prime = 0x811C9DC5;
unsigned int hash = 0;
unsigned int i = 0;
for(i = 0; i < len; str++, i++)
{
hash *= fnv_prime;
hash ^= (*str);
}
return hash;
}
/* End Of FNV Hash Function */
unsigned int APHash(char* str, unsigned int len)
{
unsigned int hash = 0xAAAAAAAA;
unsigned int i = 0;
for(i = 0; i < len; str++, i++)
{
hash ^= ((i & 1) == 0) ? ( (hash << 7) ^ (*str) * (hash >> 3)) :
(~((hash << 11) + (*str) ^ (hash >> 5)));
}
return hash;
}
/* End Of AP Hash Function */ |
the_stack_data/104827238.c | #include <stdio.h>
#include <string.h>
enum bool_t {true = (0 == 0), false = (0 != 0)};
typedef enum bool_t bool_t;
typedef bool_t bool;
int main(int argc, char *argv[]) {
bool b;
for (int i = 1; i < argc; i++) {
for (int j = i+1; j < argc; j++) {
b = (0 == strcmp(argv[i],argv[j]));
if (b) {
argc --;
argv[j] = argv[argc];
j--;
}
}
}
for (int i = 1; i < argc; i++)
printf("%s ", argv[i]);
printf("\n");
return 0;
}
|
the_stack_data/115764311.c | #include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define NEWLINE "\n"
void vConv(int iDbgInfo, char* szSrcDateTime, char* szSrcTZ, char* szTrgTz, int iOutputFormat)
{
char szEnv[64];
struct tm mytm = {0};
time_t mytime;
char buf[100];
if (iDbgInfo)
printf("TZ from: %s to: %s"NEWLINE, szSrcTZ, szTrgTz);
mytm.tm_isdst = -1;
sprintf(szEnv, "TZ=%s", szSrcTZ);
putenv(szEnv);
tzset();
strptime(szSrcDateTime, "%Y-%m-%d %H:%M:%S", &mytm);
mytime = mktime(&mytm);
if (iDbgInfo)
{
strftime(buf, 100, "%Y-%m-%d %H:%M:%S %z(%Z)", &mytm);
printf("%s --> %d(UnixEpoch) --> ", buf, (long)mytime);
}
sprintf(szEnv, "TZ=%s", szTrgTz);
putenv(szEnv);
tzset();
localtime_r(&mytime, &mytm);
if (iDbgInfo) {
strftime(buf, 100, "%Y-%m-%d %H:%M:%S %z(%Z)", &mytm);
printf("%s"NEWLINE, buf, (long)mytime);
}
switch(iOutputFormat)
{
default:
case 0:
strftime(buf, 100, "%Y-%m-%d %H:%M:%S"NEWLINE, &mytm);
break;
case 1:
strftime(buf, 100, "%Y%m%d %H%M%S"NEWLINE, &mytm);
break;
}
printf(buf);
}
void trimRight(char* psz)
{
char trim[] = " \t\r\n";
for (int i=0;i<strlen(trim);++i)
{
char* pTmp = strchr(psz, trim[i]);
if (pTmp != NULL)
*pTmp = '\0';
}
}
void vIfTZisLocal(char* psz)
{
char szLocal[32];
if (strcasecmp(psz, "local") == 0)
{
FILE* fp = fopen("/etc/timezone", "r");
if (fp != NULL)
{
fread(szLocal, 1, sizeof(szLocal), fp);
fclose(fp);
strcpy(psz, szLocal);
}
}
trimRight(psz);
}
int main (int argc, char *argv[])
{
if (argc > 1 && strcmp(argv[1], "-h") == 0){
printf("Systex Error!"NEWLINE);
printf("%s -s SRC_TZ -t TRG_TZ DateTime"NEWLINE, argv[0]);
printf("-h: Show this help"NEWLINE);
printf("-s: Sourct TimeZone"NEWLINE);
printf("-t: Target TimeZone"NEWLINE);
printf("-v: Show Debug info"NEWLINE);
printf("-f: Output datetime format"NEWLINE);
printf(" -f 0: YYYY-mm-DD HH:MM:SS"NEWLINE);
printf(" -f 1: YYYYmmDD HHMMSS"NEWLINE);
printf("-tz: Show all support timezone"NEWLINE);
printf("-stdin: get input from stdin"NEWLINE);
printf(" ex: %s -f 1 -s 'America/New_York' -t 'Asia/Taipei' '2014-01-2 04:15'"NEWLINE, argv[0]);
exit(0);
}
char szSrcTZ[32] = "UTC";
char szTrgTz[32] = "UTC";
char szSrcDateTime[32];
int iDbgInfo=0;
int iFromStdin=0;
int iOutputFormat = 0;
int i;
for (i=0;i<argc;++i){
if (strcmp(argv[i], "-s") == 0 && i<argc-1){
strcpy(szSrcTZ, argv[i+1]);
vIfTZisLocal(szSrcTZ);
i++;
} else if (strcmp(argv[i], "-t") == 0 && i<argc-1){
strcpy(szTrgTz, argv[i+1]);
vIfTZisLocal(szTrgTz);
i++;
} else if (strcmp(argv[i], "-v") == 0){
iDbgInfo = 1;
} else if (strcmp(argv[i], "-tz") == 0){
char szCMD[] = "find /usr/share/zoneinfo/ -type f -follow |sed 's/\\/usr\\/share\\/zoneinfo\\///' | sed 's/^right\\///' | sed 's/^posix\\///' | sort | uniq";
//char szCMD[] = "cat /usr/share/zoneinfo/zone.tab | awk '{if (substr($0,1,1)!=\"#\"){print $3}}' | sort";
system(szCMD);
exit(0);
} else if (strcmp(argv[i], "-stdin") == 0){
iFromStdin = 1;
} else if (strcmp(argv[i], "-f") == 0 && i<argc-1){
iOutputFormat = atoi(argv[i+1]);
i++;
}
}
trimRight(szSrcTZ);
trimRight(szTrgTz);
int iCount = 0;
while(1)
{
if (iFromStdin == 0) {
if (iCount>0)
break;
strcpy(szSrcDateTime, argv[argc-1]);
} else {
szSrcDateTime[0] = '\0';
fgets(szSrcDateTime, sizeof(szSrcDateTime), stdin);
szSrcDateTime[sizeof(szSrcDateTime)-1] = '\0';
if (strlen(szSrcDateTime)<8)
break;
}
char* pszSplit = strchr(szSrcDateTime, '\r');
if (pszSplit!=NULL) *pszSplit = '\0';
pszSplit = strchr(szSrcDateTime, '\n');
if (pszSplit!=NULL) *pszSplit = '\0';
vConv(iDbgInfo, szSrcDateTime, szSrcTZ, szTrgTz, iOutputFormat);
iCount++;
}
return 0;
}
|
the_stack_data/145451867.c | /*
* PicTrack rotor plugin for gsat
*
* (c)2001 by Xavier Crehueras, EB3CZS
*/
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
char * plugin_info( void );
int plugin_open_rotor( char * config );
void plugin_close_rotor( void );
void plugin_set_rotor( double azimuth, double elevation );
int antfd;
char * plugin_info( void )
{
return "PicTrack V1.0";
}
int plugin_open_rotor( char * config )
{
antfd=open(config, O_RDWR | O_NOCTTY | O_NDELAY);
if (antfd!=-1)
fcntl(antfd, F_SETFL, 0);
else {
fprintf(stderr,"Unable To Open Antenna Port\n");
return 0;
}
return 1;
}
void plugin_close_rotor( void )
{
close(antfd);
}
void plugin_set_rotor( double azimuth, double elevation )
{
/* This function sends Azimuth and Elevation data
to an antenna tracker connected to the serial port */
int n;
char message[30]="\n";
sprintf(message, "AZ%3.1f EL%3.1f \x0D\x0A", azimuth,elevation);
n=write(antfd,message,30);
if (n<0)
fprintf(stderr, "Error Writing To Antenna Port\n");
return;
}
|
the_stack_data/968623.c | /******************************************************************************
*
* Copyright (C) 2009 - 2014 Xilinx, Inc. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* Use of the Software is limited solely to applications:
* (a) running on a Xilinx device, or
* (b) that interact with a Xilinx device through a bus or interconnect.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* XILINX BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
* OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*
* Except as contained in this notice, the name of the Xilinx shall not be used
* in advertising or otherwise to promote the sale, use or other dealings in
* this Software without prior written authorization from Xilinx.
*
******************************************************************************/
/*
* helloworld.c: simple test application
*
* This application configures UART 16550 to baud rate 9600.
* PS7 UART (Zynq) is not initialized by this application, since
* bootrom/bsp configures it to baud rate 115200
*
* ------------------------------------------------
* | UART TYPE BAUD RATE |
* ------------------------------------------------
* uartns550 9600
* uartlite Configurable only in HW design
* ps7_uart 115200 (configured by bootrom/bsp)
*/
#include <stdio.h>
// #include "platform.h"
// #include "xil_printf.h"
#include "sha256.h"
// uint32_t block[16] = {0x61626380, 0x00000000, 0x00000000, 0x00000000,
// 0x00000000, 0x00000000, 0x00000000, 0x00000000,
// 0x00000000, 0x00000000, 0x00000000, 0x00000000,
// 0x00000000, 0x00000000, 0x00000000, 0x00000018};
//
// char name[25] = {0};
//
// unsigned int name0 = sha256_reg[ADDR_NAME0];
//
// memcpy(&name[0], &sha256_reg[ADDR_NAME0], 4);
// memcpy(&name[4], &sha256_reg[ADDR_NAME1], 4);
// memcpy(&name[12],&sha256_reg[ADDR_VERSION], 4);
//
// write_block(block);
//
// sha256_reg[ADDR_CTRL] = (CTRL_MODE_VALUE + CTRL_INIT_VALUE);
// sha256_reg[ADDR_CTRL] = (CTRL_MODE_VALUE);
//
// unsigned int ctrl = sha256_reg[ADDR_CTRL];
//
// wait_ready();
//
// uint32_t data_digest[8];
// read_digest(data_digest);
#define TEST_MAX 4
size_t
my_strlen(str)
const char *str;
{
register const char *s;
for (s = str; *s; ++s);
return(s - str);
}
void _exit() {
// while(1) {
// asm("nop");
// }
return;
}
int main()
{
// unsigned char buf[32] = {0};
unsigned int buf[8] = {0};
const unsigned char* test[TEST_MAX] = {
(const unsigned char*)"abc",
(const unsigned char*)"",
(const unsigned char*)"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
(const unsigned char*)"abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
};
unsigned int test_oracle[TEST_MAX][8] = {
{0xba7816bf, 0x8f01cfea, 0x414140de, 0x5dae2223, 0xb00361a3, 0x96177a9c, 0xb410ff61, 0xf20015ad},
{0xe3b0c442, 0x98fc1c14, 0x9afbf4c8, 0x996fb924, 0x27ae41e4, 0x649b934c, 0xa495991b, 0x7852b855},
{0x248d6a61, 0xd20638b8, 0xe5c02693, 0x0c3e6039, 0xa33ce459, 0x64ff2167, 0xf6ecedd4, 0x19db06c1},
{0xcf5b16a7, 0x78af8380, 0x036ce59e, 0x7b049237, 0x0b249b11, 0xe8f07a51, 0xafac4503, 0x7afee9d1}
};
// for(int i=0; i<1; i++) {
// sha256_hash(buf, test[i], my_strlen((const char*)test[i]));
//
// if(memcmp(buf, test_oracle[i], 32) != 0) {
// //error case
// while(1);
// }
// }
sha256_hash(buf, test[0], my_strlen((const char*)test[0]));
return 0;
}
|
the_stack_data/70451152.c | #include <stdio.h>
int main() {
int n, i, j, k, l;
/*le o numero de matrizes que seram inseridas*/
scanf(" %d", &n);
/*matriz sudoku guarda uma solucao que sera testada se eh possivel ou nao;
vetor result guarda a resposta da matriz sudoku, sendo 0 = SIM e 1 = NAO*/
short int sudoku[9][9], result[n];
/*laco que repete n vezes, que eh o numero de instancia que teram*/
for(i = 0; i < n; i++){ // laco I
/*deixa em 0 o resultado, caso chegue ate o final com 0, significa que sta correto*/
result[i] = 0;
/*laco que le cada numero do da solucao e armazena na matriz sudoku*/
for(j = 0; j < 9; j++){
for(k = 0; k < 9; k++){
scanf("%hi", &sudoku[j][k]);
}
}
/*laco for que caminha pelas linhas da matriz, delimitada pelo
numero de linhas que eh 9*/
for(j = 0; j < 9; j++){ // laco J
/*laco que caminha por elemento da linha, tambem delimitada por 9*/
for(k = 0; k < 9; k++){ // laco K
/*laco tambem caminha por elemento da linha,
usados para comparar todos elementos da linha*/
for(l = k+1; l < 9; l++){ // laco L
/*idenifica quando ha algum elemento repetido na linha*/
if(sudoku[j][k] == sudoku[j][l]){
/*chave que idetifica quando aparece um erro*/
result[i] = 1;
/*e nesse caso deve interromper o laco*/
break; // sai do laco L
}
/*do mesmo passo que caminha pela linha, pode-se caminhar
pela coluna, esse trecho aproveita disso e tambem
identifica quando ha algum elemento repetido na coluna,
*/
if(sudoku[k][j] == sudoku[l][j]){
result[i] = 1;
break; // sai do laco L
}
}
/*quando identifica a primeira irregularidade ja interrompe o laco
em outros ifs tambem fazem isso para otimizar o programa*/
if(result[i] == 1)
break; // sai do laco K
/*os if's identificam elementos repetidos dentro de um bloco 3x3*/
/*quando na 1a linha do bloco ... */
if(j % 3 == 0){
/*e na 1a coluna do bloco ... */
if(k % 3 == 0){
/*compara com os demais elementos do bloco exceto com os da
mesma linha e mesma coluna ja q ja foi coparado anteriormente
nos lacos for
identifica se ha elementos repetidos dentro do bloco na 2a ou 3a
linha e 2a ou 3a coluna*/
if(sudoku[j][k] == sudoku[j+1][k+1] || sudoku[j][k] == sudoku[j+1][k+2]
|| sudoku[j][k] == sudoku[j+2][k+1] || sudoku[j][k] == sudoku[j+2][k+2]){
result[i] = 1;
break; // sai do laco K
}
}
/*e na 2a coluna do bloco ... */
else if(k % 3 == 1){
/*compara com os demais elementos do bloco exceto com os da
mesma linha e mesma coluna ja q ja foi coparado anteriormente
nos lacos for */
if(sudoku[j][k] == sudoku[j+1][k+1] || sudoku[j][k] == sudoku[j+1][k-1]
|| sudoku[j][k] == sudoku[j+2][k+1] || sudoku[j][k] == sudoku[j+2][k-1]){
result[i] = 1;
break; // sai do laco K
}
}
/*e na 3a coluna do bloco ... */
else if(k % 3 == 2){
/*compara com os demais elementos do bloco exceto com os da
mesma linha e mesma coluna ja q ja foi coparado anteriormente
nos lacos for
identifica se ha elementos repetidos dentro do bloco na 2a ou 3a
linha e 1a ou 2a coluna*/
if(sudoku[j][k] == sudoku[j+1][k-1] || sudoku[j][k] == sudoku[j+1][k-2]
|| sudoku[j][k] == sudoku[j+2][k-1] || sudoku[j][k] == sudoku[j+2][k-2]){
result[i] = 1;
break; // sai do laco K
}
}
}
/*quando na 2a linha do bloco ... */
else if(j % 3 == 1){
/*e na 1a coluna do bloco ... */
if(k % 3 == 0){
/*compara com os demais elementos do bloco exceto com os da
mesma linha e mesma coluna ja q ja foi coparado anteriormente
nos lacos for e com os da 1a linha do bloco pq ja foi comparado
nos if's anteriores
identifica se ha elementos repetidos dentro do bloco na 3a
linha e 2a ou 3a coluna*/
if(sudoku[j][k] == sudoku[j+1][k+1] || sudoku[j][k] == sudoku[j+1][k+2]){
result[i] = 1;
break; // sai do laco K
}
}
/*e na 2a coluna do bloco ... */
else if(k % 3 == 1){
/*compara com os demais elementos do bloco exceto com os da
mesma linha e mesma coluna ja q ja foi coparado anteriormente
nos lacos for e com os da 1a linha do bloco pq ja foi comparado
nos if's anteriores */
if(sudoku[j][k] == sudoku[j+1][k+1] || sudoku[j][k] == sudoku[j+1][k-1]){
result[i] = 1;
break; // sai do laco K
}
}
/*e na 3a coluna do bloco ... */
else if(k % 3 == 2){
/*compara com os demais elementos do bloco exceto com os da
mesma linha e mesma coluna ja q ja foi coparado anteriormente
nos lacos for e com os da 1a linha do bloco pq ja foi comparado
nos if's anteriores */
if(sudoku[j][k] == sudoku[j+1][k-1] || sudoku[j][k] == sudoku[j+1][k-2]){
result[i] = 1;
break; // sai do laco K
}
}
}
/*quando na 3a linha do bloco ...
nao precisa ser comparada porque ja foi comparada com os
da 1a e 2a linha e com ela propria*/
/*interrompe laco...*/
if(result[i] == 1)
break; // sai do laco K
}
/*interrompe laco...*/
if(result[i] == 1)
break; // sai do laco J
}
}
/*da o resultado armazenado no vetor result*/
for(i = 0; i < n; i++){
printf("\nInstancia %d\n", i+1);
if(result[i] == 0)
printf("SIM\n");
else
printf("NÃO\n");
}
return 0;
}
|
the_stack_data/192330926.c | /*
* lcc [ option ]... [ file | -llib ]...
* front end for the ANSI C compiler
*/
static char rcsid[] = "Id: dummy rcsid";
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <ctype.h>
#include <signal.h>
#include <unistd.h>
#ifndef TEMPDIR
#define TEMPDIR "/tmp"
#endif
typedef struct list *List;
struct list { /* circular list nodes: */
char *str; /* option or file name */
List link; /* next list element */
};
static void *alloc(int);
static List append(char *,List);
extern char *basename(char *);
static int callsys(char *[]);
extern char *concat(char *, char *);
static int compile(char *, char *);
static void compose(char *[], List, List, List);
static void error(char *, char *);
static char *exists(char *);
static char *first(char *);
static int filename(char *, char *);
static List find(char *, List);
static void help(void);
static void initinputs(void);
static void interrupt(int);
static void opt(char *);
static List path2list(const char *);
extern int main(int, char *[]);
extern char *replace(const char *, int, int);
static void rm(List);
extern char *strsave(const char *);
extern char *stringf(const char *, ...);
extern int suffix(char *, char *[], int);
extern char *tempname(char *);
#ifndef __sun
extern int getpid(void);
#endif
extern char *cpp[], *include[], *com[], *as[],*ld[], inputs[], *suffixes[];
extern int option(char *);
static int errcnt; /* number of errors */
static int Eflag; /* -E specified */
static int Sflag = 1; /* -S specified */ //for Q3 we always generate asm
static int cflag; /* -c specified */
static int verbose; /* incremented for each -v */
static List llist[2]; /* loader files, flags */
static List alist; /* assembler flags */
static List clist; /* compiler flags */
static List plist; /* preprocessor flags */
static List ilist; /* list of additional includes from LCCINPUTS */
static List rmlist; /* list of files to remove */
static char *outfile; /* ld output file or -[cS] object file */
static int ac; /* argument count */
static char **av; /* argument vector */
char *tempdir = TEMPDIR; /* directory for temporary files */
static char *progname;
static List lccinputs; /* list of input directories */
extern void UpdatePaths( const char *lccBinary );
int main(int argc, char *argv[]) {
int i, j, nf;
progname = argv[0];
UpdatePaths( progname );
ac = argc + 50;
av = alloc(ac*sizeof(char *));
if (signal(SIGINT, SIG_IGN) != SIG_IGN)
signal(SIGINT, interrupt);
if (signal(SIGTERM, SIG_IGN) != SIG_IGN)
signal(SIGTERM, interrupt);
#ifdef SIGHUP
if (signal(SIGHUP, SIG_IGN) != SIG_IGN)
signal(SIGHUP, interrupt);
#endif
if (getenv("TMP"))
tempdir = getenv("TMP");
else if (getenv("TEMP"))
tempdir = getenv("TEMP");
else if (getenv("TMPDIR"))
tempdir = getenv("TMPDIR");
assert(tempdir);
i = strlen(tempdir);
for (; (i > 0 && tempdir[i-1] == '/') || tempdir[i-1] == '\\'; i--)
tempdir[i-1] = '\0';
if (argc <= 1) {
help();
exit(0);
}
plist = append("-D__LCC__", 0);
initinputs();
if (getenv("LCCDIR"))
option(stringf("-lccdir=%s", getenv("LCCDIR")));
for (nf = 0, i = j = 1; i < argc; i++) {
if (strcmp(argv[i], "-o") == 0) {
if (++i < argc) {
if (suffix(argv[i], suffixes, 2) >= 0) {
error("-o would overwrite %s", argv[i]);
exit(8);
}
outfile = argv[i];
continue;
} else {
error("unrecognized option `%s'", argv[i-1]);
exit(8);
}
} else if (strcmp(argv[i], "-target") == 0) {
if (argv[i+1] && *argv[i+1] != '-')
i++;
continue;
} else if (*argv[i] == '-' && argv[i][1] != 'l') {
opt(argv[i]);
continue;
} else if (*argv[i] != '-' && suffix(argv[i], suffixes, 3) >= 0)
nf++;
argv[j++] = argv[i];
}
if ((cflag || Sflag) && outfile && nf != 1) {
fprintf(stderr, "%s: -o %s ignored\n", progname, outfile);
outfile = 0;
}
argv[j] = 0;
for (i = 0; include[i]; i++)
plist = append(include[i], plist);
if (ilist) {
List b = ilist;
do {
b = b->link;
plist = append(b->str, plist);
} while (b != ilist);
}
ilist = 0;
for (i = 1; argv[i]; i++)
if (*argv[i] == '-')
opt(argv[i]);
else {
char *name = exists(argv[i]);
if (name) {
if (strcmp(name, argv[i]) != 0
|| (nf > 1 && suffix(name, suffixes, 3) >= 0))
fprintf(stderr, "%s:\n", name);
filename(name, 0);
} else
error("can't find `%s'", argv[i]);
}
if (errcnt == 0 && !Eflag && !Sflag && !cflag && llist[1]) {
compose(ld, llist[0], llist[1],
append(outfile ? outfile : concat("a", first(suffixes[4])), 0));
if (callsys(av))
errcnt++;
}
rm(rmlist);
return errcnt ? EXIT_FAILURE : EXIT_SUCCESS;
}
/* alloc - allocate n bytes or die */
static void *alloc(int n) {
static char *avail, *limit;
n = (n + sizeof(char *) - 1)&~(sizeof(char *) - 1);
if (n >= limit - avail) {
avail = malloc(n + 4*1024);
assert(avail);
limit = avail + n + 4*1024;
}
avail += n;
return avail - n;
}
/* append - append a node with string str onto list, return new list */
static List append(char *str, List list) {
List p = alloc(sizeof *p);
p->str = str;
if (list) {
p->link = list->link;
list->link = p;
} else
p->link = p;
return p;
}
/* basename - return base name for name, e.g. /usr/drh/foo.c => foo */
char *basename(char *name) {
char *s, *b, *t = 0;
for (b = s = name; *s; s++)
if (*s == '/' || *s == '\\') {
b = s + 1;
t = 0;
} else if (*s == '.')
t = s;
s = strsave(b);
if (t)
s[t-b] = 0;
return s;
}
#ifdef WIN32
#include <process.h>
static char *escapeDoubleQuotes(const char *string) {
int stringLength = strlen(string);
int bufferSize = stringLength + 1;
int i, j;
char *newString;
if (string == NULL)
return NULL;
for (i = 0; i < stringLength; i++) {
if (string[i] == '"')
bufferSize++;
}
newString = (char*)malloc(bufferSize);
if (newString == NULL)
return NULL;
for (i = 0, j = 0; i < stringLength; i++) {
if (string[i] == '"')
newString[j++] = '\\';
newString[j++] = string[i];
}
newString[j] = '\0';
return newString;
}
static int spawn(const char *cmdname, char **argv) {
int argc = 0;
char **newArgv = argv;
int i;
intptr_t exitStatus;
// _spawnvp removes double quotes from arguments, so we
// have to escape them manually
while (*newArgv++ != NULL)
argc++;
newArgv = (char **)malloc(sizeof(char*) * (argc + 1));
for (i = 0; i < argc; i++)
newArgv[i] = escapeDoubleQuotes(argv[i]);
newArgv[argc] = NULL;
exitStatus = _spawnvp(_P_WAIT, cmdname, (const char *const *)newArgv);
for (i = 0; i < argc; i++)
free(newArgv[i]);
free(newArgv);
return exitStatus;
}
#else
#define _P_WAIT 0
#ifndef __sun
extern int fork(void);
#endif
extern int wait(int *);
static int spawn(const char *cmdname, char **argv) {
int pid, n, status;
switch (pid = fork()) {
case -1:
fprintf(stderr, "%s: no more processes\n", progname);
return 100;
case 0:
// TTimo removing hardcoded paths, searching in $PATH
execvp(cmdname, argv);
fprintf(stderr, "%s: ", progname);
perror(cmdname);
fflush(stdout);
exit(100);
}
while ((n = wait(&status)) != pid && n != -1)
;
if (n == -1)
status = -1;
if (status&0377) {
fprintf(stderr, "%s: fatal error in %s\n", progname, cmdname);
status |= 0400;
}
return (status>>8)&0377;
}
#endif
/* callsys - execute the command described by av[0...], return status */
static int callsys(char **av) {
int i, status = 0;
static char **argv;
static int argc;
char *executable;
for (i = 0; av[i] != NULL; i++)
;
if (i + 1 > argc) {
argc = i + 1;
if (argv == NULL)
argv = malloc(argc*sizeof *argv);
else
argv = realloc(argv, argc*sizeof *argv);
assert(argv);
}
for (i = 0; status == 0 && av[i] != NULL; ) {
int j = 0;
char *s = NULL;
for ( ; av[i] != NULL && (s = strchr(av[i], '\n')) == NULL; i++)
argv[j++] = av[i];
if (s != NULL) {
if (s > av[i])
argv[j++] = stringf("%.*s", s - av[i], av[i]);
if (s[1] != '\0')
av[i] = s + 1;
else
i++;
}
argv[j] = NULL;
executable = strsave( argv[0] );
argv[0] = stringf( "\"%s\"", argv[0] );
if (verbose > 0) {
int k;
fprintf(stderr, "%s", argv[0]);
for (k = 1; argv[k] != NULL; k++)
fprintf(stderr, " %s", argv[k]);
fprintf(stderr, "\n");
}
if (verbose < 2)
status = spawn(executable, argv);
if (status == -1) {
fprintf(stderr, "%s: ", progname);
perror(argv[0]);
}
}
return status;
}
/* concat - return concatenation of strings s1 and s2 */
char *concat(char *s1, char *s2) {
int n = strlen(s1);
char *s = alloc(n + strlen(s2) + 1);
strcpy(s, s1);
strcpy(s + n, s2);
return s;
}
/* compile - compile src into dst, return status */
static int compile(char *src, char *dst) {
compose(com, clist, append(src, 0), append(dst, 0));
return callsys(av);
}
/* compose - compose cmd into av substituting a, b, c for $1, $2, $3, resp. */
static void compose(char *cmd[], List a, List b, List c) {
int i, j;
List lists[3];
lists[0] = a;
lists[1] = b;
lists[2] = c;
for (i = j = 0; cmd[i]; i++) {
char *s = strchr(cmd[i], '$');
if (s && isdigit(s[1])) {
int k = s[1] - '0';
assert(k >=1 && k <= 3);
if ((b = lists[k-1])) {
b = b->link;
av[j] = alloc(strlen(cmd[i]) + strlen(b->str) - 1);
strncpy(av[j], cmd[i], s - cmd[i]);
av[j][s-cmd[i]] = '\0';
strcat(av[j], b->str);
strcat(av[j++], s + 2);
while (b != lists[k-1]) {
b = b->link;
assert(j < ac);
av[j++] = b->str;
};
}
} else if (*cmd[i]) {
assert(j < ac);
av[j++] = cmd[i];
}
}
av[j] = NULL;
}
/* error - issue error msg according to fmt, bump error count */
static void error(char *fmt, char *msg) {
fprintf(stderr, "%s: ", progname);
fprintf(stderr, fmt, msg);
fprintf(stderr, "\n");
errcnt++;
}
/* exists - if `name' readable return its path name or return null */
static char *exists(char *name) {
List b;
if ( (name[0] == '/' || name[0] == '\\' || name[2] == ':')
&& access(name, 4) == 0)
return name;
if (!(name[0] == '/' || name[0] == '\\' || name[2] == ':')
&& (b = lccinputs))
do {
b = b->link;
if (b->str[0]) {
char buf[1024];
sprintf(buf, "%s/%s", b->str, name);
if (access(buf, 4) == 0)
return strsave(buf);
} else if (access(name, 4) == 0)
return name;
} while (b != lccinputs);
if (verbose > 1)
return name;
return 0;
}
/* first - return first component in semicolon separated list */
static char *first(char *list) {
char *s = strchr(list, ';');
if (s) {
char buf[1024];
strncpy(buf, list, s-list);
buf[s-list] = '\0';
return strsave(buf);
} else
return list;
}
/* filename - process file name argument `name', return status */
static int filename(char *name, char *base) {
int status = 0;
static char *stemp, *itemp;
if (base == 0)
base = basename(name);
switch (suffix(name, suffixes, 4)) {
case 0: /* C source files */
compose(cpp, plist, append(name, 0), 0);
if (Eflag) {
status = callsys(av);
break;
}
if (itemp == NULL)
itemp = tempname(first(suffixes[1]));
compose(cpp, plist, append(name, 0), append(itemp, 0));
status = callsys(av);
if (status == 0)
return filename(itemp, base);
break;
case 1: /* preprocessed source files */
if (Eflag)
break;
if (Sflag)
status = compile(name, outfile ? outfile : concat(base, first(suffixes[2])));
else if ((status = compile(name, stemp?stemp:(stemp=tempname(first(suffixes[2]))))) == 0)
return filename(stemp, base);
break;
case 2: /* assembly language files */
if (Eflag)
break;
if (!Sflag) {
char *ofile;
if (cflag && outfile)
ofile = outfile;
else if (cflag)
ofile = concat(base, first(suffixes[3]));
else
ofile = tempname(first(suffixes[3]));
compose(as, alist, append(name, 0), append(ofile, 0));
status = callsys(av);
if (!find(ofile, llist[1]))
llist[1] = append(ofile, llist[1]);
}
break;
case 3: /* object files */
if (!find(name, llist[1]))
llist[1] = append(name, llist[1]);
break;
default:
if (Eflag) {
compose(cpp, plist, append(name, 0), 0);
status = callsys(av);
}
llist[1] = append(name, llist[1]);
break;
}
if (status)
errcnt++;
return status;
}
/* find - find 1st occurrence of str in list, return list node or 0 */
static List find(char *str, List list) {
List b;
if ((b = list))
do {
if (strcmp(str, b->str) == 0)
return b;
} while ((b = b->link) != list);
return 0;
}
/* help - print help message */
static void help(void) {
static char *msgs[] = {
"", " [ option | file ]...\n",
" except for -l, options are processed left-to-right before files\n",
" unrecognized options are taken to be linker options\n",
"-A warn about nonANSI usage; 2nd -A warns more\n",
"-b emit expression-level profiling code; see bprint(1)\n",
#ifdef sparc
"-Bstatic -Bdynamic specify static or dynamic libraries\n",
#endif
"-Bdir/ use the compiler named `dir/rcc'\n",
"-c compile only\n",
"-dn set switch statement density to `n'\n",
"-Dname -Dname=def define the preprocessor symbol `name'\n",
"-E run only the preprocessor on the named C programs and unsuffixed files\n",
"-g produce symbol table information for debuggers\n",
"-help or -? print this message\n",
"-Idir add `dir' to the beginning of the list of #include directories\n",
"-lx search library `x'\n",
"-N do not search the standard directories for #include files\n",
"-n emit code to check for dereferencing zero pointers\n",
"-O is ignored\n",
"-o file leave the output in `file'\n",
"-P print ANSI-style declarations for globals\n",
"-p -pg emit profiling code; see prof(1) and gprof(1)\n",
"-S compile to assembly language\n",
#ifdef linux
"-static specify static libraries (default is dynamic)\n",
#endif
"-t -tname emit function tracing calls to printf or to `name'\n",
"-target name is ignored\n",
"-tempdir=dir place temporary files in `dir/'", "\n"
"-Uname undefine the preprocessor symbol `name'\n",
"-v show commands as they are executed; 2nd -v suppresses execution\n",
"-w suppress warnings\n",
"-Woarg specify system-specific `arg'\n",
"-W[pfal]arg pass `arg' to the preprocessor, compiler, assembler, or linker\n",
0 };
int i;
char *s;
msgs[0] = progname;
for (i = 0; msgs[i]; i++) {
fprintf(stderr, "%s", msgs[i]);
if (strncmp("-tempdir", msgs[i], 8) == 0 && tempdir)
fprintf(stderr, "; default=%s", tempdir);
}
#define xx(v) if ((s = getenv(#v))) fprintf(stderr, #v "=%s\n", s)
xx(LCCINPUTS);
xx(LCCDIR);
#undef xx
}
/* initinputs - if LCCINPUTS or include is defined, use them to initialize various lists */
static void initinputs(void) {
char *s = getenv("LCCINPUTS");
List b;
if (s == 0 || (s = inputs)[0] == 0)
s = ".";
if (s) {
lccinputs = path2list(s);
if ((b = lccinputs))
do {
b = b->link;
if (strcmp(b->str, ".") != 0) {
ilist = append(concat("-I", b->str), ilist);
if (strstr(com[1], "win32") == NULL)
llist[0] = append(concat("-L", b->str), llist[0]);
} else
b->str = "";
} while (b != lccinputs);
}
}
/* interrupt - catch interrupt signals */
static void interrupt(int n) {
rm(rmlist);
exit(n = 100);
}
/* opt - process option in arg */
static void opt(char *arg) {
switch (arg[1]) { /* multi-character options */
case 'W': /* -Wxarg */
if (arg[2] && arg[3])
switch (arg[2]) {
case 'o':
if (option(&arg[3]))
return;
break;
case 'p':
plist = append(&arg[3], plist);
return;
case 'f':
if (strcmp(&arg[3], "-C") || option("-b")) {
clist = append(&arg[3], clist);
return;
}
break; /* and fall thru */
case 'a':
alist = append(&arg[3], alist);
return;
case 'l':
llist[0] = append(&arg[3], llist[0]);
return;
}
fprintf(stderr, "%s: %s ignored\n", progname, arg);
return;
case 'd': /* -dn */
arg[1] = 's';
clist = append(arg, clist);
return;
case 't': /* -t -tname -tempdir=dir */
if (strncmp(arg, "-tempdir=", 9) == 0)
tempdir = arg + 9;
else
clist = append(arg, clist);
return;
case 'p': /* -p -pg */
if (option(arg))
clist = append(arg, clist);
else
fprintf(stderr, "%s: %s ignored\n", progname, arg);
return;
case 'D': /* -Dname -Dname=def */
case 'U': /* -Uname */
case 'I': /* -Idir */
plist = append(arg, plist);
return;
case 'B': /* -Bdir -Bstatic -Bdynamic */
#ifdef sparc
if (strcmp(arg, "-Bstatic") == 0 || strcmp(arg, "-Bdynamic") == 0)
llist[1] = append(arg, llist[1]);
else
#endif
{
static char *path;
if (path)
error("-B overwrites earlier option", 0);
path = arg + 2;
if (strstr(com[1], "win32") != NULL)
com[0] = concat(replace(path, '/', '\\'), concat("rcc", first(suffixes[4])));
else
com[0] = concat(path, "rcc");
if (path[0] == 0)
error("missing directory in -B option", 0);
}
return;
case 'h':
if (strcmp(arg, "-help") == 0) {
static int printed = 0;
case '?':
if (!printed)
help();
printed = 1;
return;
}
#ifdef linux
case 's':
if (strcmp(arg,"-static") == 0) {
if (!option(arg))
fprintf(stderr, "%s: %s ignored\n", progname, arg);
return;
}
#endif
}
if (arg[2] == 0)
switch (arg[1]) { /* single-character options */
case 'S':
Sflag++;
return;
case 'O':
fprintf(stderr, "%s: %s ignored\n", progname, arg);
return;
case 'A': case 'n': case 'w': case 'P':
clist = append(arg, clist);
return;
case 'g': case 'b':
if (option(arg))
clist = append(arg[1] == 'g' ? "-g2" : arg, clist);
else
fprintf(stderr, "%s: %s ignored\n", progname, arg);
return;
case 'G':
if (option(arg)) {
clist = append("-g3", clist);
llist[0] = append("-N", llist[0]);
} else
fprintf(stderr, "%s: %s ignored\n", progname, arg);
return;
case 'E':
Eflag++;
return;
case 'c':
cflag++;
return;
case 'N':
if (strcmp(basename(cpp[0]), "gcc-cpp") == 0)
plist = append("-nostdinc", plist);
include[0] = 0;
ilist = 0;
return;
case 'v':
if (verbose++ == 0) {
if (strcmp(basename(cpp[0]), "gcc-cpp") == 0)
plist = append(arg, plist);
clist = append(arg, clist);
fprintf(stderr, "%s %s\n", progname, rcsid);
}
return;
}
if (cflag || Sflag || Eflag)
fprintf(stderr, "%s: %s ignored\n", progname, arg);
else
llist[1] = append(arg, llist[1]);
}
/* path2list - convert a colon- or semicolon-separated list to a list */
static List path2list(const char *path) {
List list = NULL;
char sep = ':';
if (path == NULL)
return NULL;
if (strchr(path, ';'))
sep = ';';
while (*path) {
char *p, buf[512];
if ((p = strchr(path, sep))) {
assert(p - path < sizeof buf);
strncpy(buf, path, p - path);
buf[p-path] = '\0';
} else {
assert(strlen(path) < sizeof buf);
strcpy(buf, path);
}
if (!find(buf, list))
list = append(strsave(buf), list);
if (p == 0)
break;
path = p + 1;
}
return list;
}
/* replace - copy str, then replace occurrences of from with to, return the copy */
char *replace(const char *str, int from, int to) {
char *s = strsave(str), *p = s;
for ( ; (p = strchr(p, from)) != NULL; p++)
*p = to;
return s;
}
/* rm - remove files in list */
static void rm(List list) {
if (list) {
List b = list;
if (verbose)
fprintf(stderr, "rm");
do {
if (verbose)
fprintf(stderr, " %s", b->str);
if (verbose < 2)
remove(b->str);
} while ((b = b->link) != list);
if (verbose)
fprintf(stderr, "\n");
}
}
/* strsave - return a saved copy of string str */
char *strsave(const char *str) {
return strcpy(alloc(strlen(str)+1), str);
}
/* stringf - format and return a string */
char *stringf(const char *fmt, ...) {
char buf[1024];
va_list ap;
va_start(ap, fmt);
vsprintf(buf, fmt, ap);
va_end(ap);
return strsave(buf);
}
/* suffix - if one of tails[0..n-1] holds a proper suffix of name, return its index */
int suffix(char *name, char *tails[], int n) {
int i, len = strlen(name);
for (i = 0; i < n; i++) {
char *s = tails[i], *t;
for ( ; (t = strchr(s, ';')); s = t + 1) {
int m = t - s;
if (len > m && strncmp(&name[len-m], s, m) == 0)
return i;
}
if (*s) {
int m = strlen(s);
if (len > m && strncmp(&name[len-m], s, m) == 0)
return i;
}
}
return -1;
}
/* tempname - generate a temporary file name in tempdir with given suffix */
char *tempname(char *suffix) {
static int n;
char *name = stringf("%s/lcc%d%d%s", tempdir, getpid(), n++, suffix);
if (strstr(com[1], "win32") != NULL)
name = replace(name, '/', '\\');
rmlist = append(name, rmlist);
return name;
}
|
the_stack_data/57951455.c | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
struct label {
unsigned short length;
char *domain_name;
};
char *label_to_str (struct label label) {
size_t length = 0;
length = snprintf(NULL, length, "%hu%s", label.length, label.domain_name);
// add one to length to null terminate the string
char *label_str = calloc(1, length + 1);
if (!label_str) {
fprintf(stderr, "error: memory allocation failed");
return;
}
size_t write_length = snprintf(label_str, length + 1, "%hu%s", label.length, label.domain_name);
if(write_length > length) {
fprintf(stderr, "error: snprintf truncated result.");
return NULL;
}
return label_str;
}
void split_to_labels(struct label *labels, char *domain_name, short token_count) {
int i = 0;
char *token = strtok(domain_name, ".");
char *tokens[token_count];
while(token != NULL) {
tokens[i++] = token;
token = strtok(NULL, ".");
}
// iterate through array of tokens and assign lengths
int j = 0;
for (j = 0; j < i; j++) {
char *token = tokens[j];
labels[j].length = strlen(token);
labels[j].domain_name = token;
}
}
int main(void) {
char name_to_query[] = "foo.bar.google.com";
const char DELIMITER = '.';
short token_count = 0;
for (int i = 0; i < strlen(name_to_query); i++) {
if (name_to_query[i] == DELIMITER) {
token_count++;
}
}
struct label *labels = malloc((token_count + 1) * sizeof(*labels));
split_to_labels(labels, name_to_query, token_count);
for (int i = 0; i < 4; i++) {
printf("%s", label_to_str(labels[i]));
}
return 0;
}
|
the_stack_data/14979.c | //@ ltl invariant negative: (AP(x_17 - x_3 >= -18) R (X ([] AP(x_6 - x_18 > 8))));
float x_0;
float x_1;
float x_2;
float x_3;
float x_4;
float x_5;
float x_6;
float x_7;
float x_8;
float x_9;
float x_10;
float x_11;
float x_12;
float x_13;
float x_14;
float x_15;
float x_16;
float x_17;
float x_18;
float x_19;
float x_20;
float x_21;
float x_22;
float x_23;
float x_24;
float x_25;
float x_26;
float x_27;
float x_28;
float x_29;
float x_30;
float x_31;
float x_32;
float x_33;
float x_34;
float x_35;
int main()
{
float x_0_;
float x_1_;
float x_2_;
float x_3_;
float x_4_;
float x_5_;
float x_6_;
float x_7_;
float x_8_;
float x_9_;
float x_10_;
float x_11_;
float x_12_;
float x_13_;
float x_14_;
float x_15_;
float x_16_;
float x_17_;
float x_18_;
float x_19_;
float x_20_;
float x_21_;
float x_22_;
float x_23_;
float x_24_;
float x_25_;
float x_26_;
float x_27_;
float x_28_;
float x_29_;
float x_30_;
float x_31_;
float x_32_;
float x_33_;
float x_34_;
float x_35_;
while(1) {
x_0_ = (((((9.0 + x_2) > (18.0 + x_3)? (9.0 + x_2) : (18.0 + x_3)) > ((1.0 + x_4) > (18.0 + x_5)? (1.0 + x_4) : (18.0 + x_5))? ((9.0 + x_2) > (18.0 + x_3)? (9.0 + x_2) : (18.0 + x_3)) : ((1.0 + x_4) > (18.0 + x_5)? (1.0 + x_4) : (18.0 + x_5))) > (((11.0 + x_8) > (1.0 + x_9)? (11.0 + x_8) : (1.0 + x_9)) > ((20.0 + x_11) > ((16.0 + x_12) > (9.0 + x_13)? (16.0 + x_12) : (9.0 + x_13))? (20.0 + x_11) : ((16.0 + x_12) > (9.0 + x_13)? (16.0 + x_12) : (9.0 + x_13)))? ((11.0 + x_8) > (1.0 + x_9)? (11.0 + x_8) : (1.0 + x_9)) : ((20.0 + x_11) > ((16.0 + x_12) > (9.0 + x_13)? (16.0 + x_12) : (9.0 + x_13))? (20.0 + x_11) : ((16.0 + x_12) > (9.0 + x_13)? (16.0 + x_12) : (9.0 + x_13))))? (((9.0 + x_2) > (18.0 + x_3)? (9.0 + x_2) : (18.0 + x_3)) > ((1.0 + x_4) > (18.0 + x_5)? (1.0 + x_4) : (18.0 + x_5))? ((9.0 + x_2) > (18.0 + x_3)? (9.0 + x_2) : (18.0 + x_3)) : ((1.0 + x_4) > (18.0 + x_5)? (1.0 + x_4) : (18.0 + x_5))) : (((11.0 + x_8) > (1.0 + x_9)? (11.0 + x_8) : (1.0 + x_9)) > ((20.0 + x_11) > ((16.0 + x_12) > (9.0 + x_13)? (16.0 + x_12) : (9.0 + x_13))? (20.0 + x_11) : ((16.0 + x_12) > (9.0 + x_13)? (16.0 + x_12) : (9.0 + x_13)))? ((11.0 + x_8) > (1.0 + x_9)? (11.0 + x_8) : (1.0 + x_9)) : ((20.0 + x_11) > ((16.0 + x_12) > (9.0 + x_13)? (16.0 + x_12) : (9.0 + x_13))? (20.0 + x_11) : ((16.0 + x_12) > (9.0 + x_13)? (16.0 + x_12) : (9.0 + x_13))))) > ((((5.0 + x_15) > (2.0 + x_20)? (5.0 + x_15) : (2.0 + x_20)) > ((15.0 + x_25) > (7.0 + x_26)? (15.0 + x_25) : (7.0 + x_26))? ((5.0 + x_15) > (2.0 + x_20)? (5.0 + x_15) : (2.0 + x_20)) : ((15.0 + x_25) > (7.0 + x_26)? (15.0 + x_25) : (7.0 + x_26))) > (((10.0 + x_27) > (13.0 + x_28)? (10.0 + x_27) : (13.0 + x_28)) > ((8.0 + x_31) > ((5.0 + x_32) > (17.0 + x_34)? (5.0 + x_32) : (17.0 + x_34))? (8.0 + x_31) : ((5.0 + x_32) > (17.0 + x_34)? (5.0 + x_32) : (17.0 + x_34)))? ((10.0 + x_27) > (13.0 + x_28)? (10.0 + x_27) : (13.0 + x_28)) : ((8.0 + x_31) > ((5.0 + x_32) > (17.0 + x_34)? (5.0 + x_32) : (17.0 + x_34))? (8.0 + x_31) : ((5.0 + x_32) > (17.0 + x_34)? (5.0 + x_32) : (17.0 + x_34))))? (((5.0 + x_15) > (2.0 + x_20)? (5.0 + x_15) : (2.0 + x_20)) > ((15.0 + x_25) > (7.0 + x_26)? (15.0 + x_25) : (7.0 + x_26))? ((5.0 + x_15) > (2.0 + x_20)? (5.0 + x_15) : (2.0 + x_20)) : ((15.0 + x_25) > (7.0 + x_26)? (15.0 + x_25) : (7.0 + x_26))) : (((10.0 + x_27) > (13.0 + x_28)? (10.0 + x_27) : (13.0 + x_28)) > ((8.0 + x_31) > ((5.0 + x_32) > (17.0 + x_34)? (5.0 + x_32) : (17.0 + x_34))? (8.0 + x_31) : ((5.0 + x_32) > (17.0 + x_34)? (5.0 + x_32) : (17.0 + x_34)))? ((10.0 + x_27) > (13.0 + x_28)? (10.0 + x_27) : (13.0 + x_28)) : ((8.0 + x_31) > ((5.0 + x_32) > (17.0 + x_34)? (5.0 + x_32) : (17.0 + x_34))? (8.0 + x_31) : ((5.0 + x_32) > (17.0 + x_34)? (5.0 + x_32) : (17.0 + x_34)))))? ((((9.0 + x_2) > (18.0 + x_3)? (9.0 + x_2) : (18.0 + x_3)) > ((1.0 + x_4) > (18.0 + x_5)? (1.0 + x_4) : (18.0 + x_5))? ((9.0 + x_2) > (18.0 + x_3)? (9.0 + x_2) : (18.0 + x_3)) : ((1.0 + x_4) > (18.0 + x_5)? (1.0 + x_4) : (18.0 + x_5))) > (((11.0 + x_8) > (1.0 + x_9)? (11.0 + x_8) : (1.0 + x_9)) > ((20.0 + x_11) > ((16.0 + x_12) > (9.0 + x_13)? (16.0 + x_12) : (9.0 + x_13))? (20.0 + x_11) : ((16.0 + x_12) > (9.0 + x_13)? (16.0 + x_12) : (9.0 + x_13)))? ((11.0 + x_8) > (1.0 + x_9)? (11.0 + x_8) : (1.0 + x_9)) : ((20.0 + x_11) > ((16.0 + x_12) > (9.0 + x_13)? (16.0 + x_12) : (9.0 + x_13))? (20.0 + x_11) : ((16.0 + x_12) > (9.0 + x_13)? (16.0 + x_12) : (9.0 + x_13))))? (((9.0 + x_2) > (18.0 + x_3)? (9.0 + x_2) : (18.0 + x_3)) > ((1.0 + x_4) > (18.0 + x_5)? (1.0 + x_4) : (18.0 + x_5))? ((9.0 + x_2) > (18.0 + x_3)? (9.0 + x_2) : (18.0 + x_3)) : ((1.0 + x_4) > (18.0 + x_5)? (1.0 + x_4) : (18.0 + x_5))) : (((11.0 + x_8) > (1.0 + x_9)? (11.0 + x_8) : (1.0 + x_9)) > ((20.0 + x_11) > ((16.0 + x_12) > (9.0 + x_13)? (16.0 + x_12) : (9.0 + x_13))? (20.0 + x_11) : ((16.0 + x_12) > (9.0 + x_13)? (16.0 + x_12) : (9.0 + x_13)))? ((11.0 + x_8) > (1.0 + x_9)? (11.0 + x_8) : (1.0 + x_9)) : ((20.0 + x_11) > ((16.0 + x_12) > (9.0 + x_13)? (16.0 + x_12) : (9.0 + x_13))? (20.0 + x_11) : ((16.0 + x_12) > (9.0 + x_13)? (16.0 + x_12) : (9.0 + x_13))))) : ((((5.0 + x_15) > (2.0 + x_20)? (5.0 + x_15) : (2.0 + x_20)) > ((15.0 + x_25) > (7.0 + x_26)? (15.0 + x_25) : (7.0 + x_26))? ((5.0 + x_15) > (2.0 + x_20)? (5.0 + x_15) : (2.0 + x_20)) : ((15.0 + x_25) > (7.0 + x_26)? (15.0 + x_25) : (7.0 + x_26))) > (((10.0 + x_27) > (13.0 + x_28)? (10.0 + x_27) : (13.0 + x_28)) > ((8.0 + x_31) > ((5.0 + x_32) > (17.0 + x_34)? (5.0 + x_32) : (17.0 + x_34))? (8.0 + x_31) : ((5.0 + x_32) > (17.0 + x_34)? (5.0 + x_32) : (17.0 + x_34)))? ((10.0 + x_27) > (13.0 + x_28)? (10.0 + x_27) : (13.0 + x_28)) : ((8.0 + x_31) > ((5.0 + x_32) > (17.0 + x_34)? (5.0 + x_32) : (17.0 + x_34))? (8.0 + x_31) : ((5.0 + x_32) > (17.0 + x_34)? (5.0 + x_32) : (17.0 + x_34))))? (((5.0 + x_15) > (2.0 + x_20)? (5.0 + x_15) : (2.0 + x_20)) > ((15.0 + x_25) > (7.0 + x_26)? (15.0 + x_25) : (7.0 + x_26))? ((5.0 + x_15) > (2.0 + x_20)? (5.0 + x_15) : (2.0 + x_20)) : ((15.0 + x_25) > (7.0 + x_26)? (15.0 + x_25) : (7.0 + x_26))) : (((10.0 + x_27) > (13.0 + x_28)? (10.0 + x_27) : (13.0 + x_28)) > ((8.0 + x_31) > ((5.0 + x_32) > (17.0 + x_34)? (5.0 + x_32) : (17.0 + x_34))? (8.0 + x_31) : ((5.0 + x_32) > (17.0 + x_34)? (5.0 + x_32) : (17.0 + x_34)))? ((10.0 + x_27) > (13.0 + x_28)? (10.0 + x_27) : (13.0 + x_28)) : ((8.0 + x_31) > ((5.0 + x_32) > (17.0 + x_34)? (5.0 + x_32) : (17.0 + x_34))? (8.0 + x_31) : ((5.0 + x_32) > (17.0 + x_34)? (5.0 + x_32) : (17.0 + x_34))))));
x_1_ = (((((18.0 + x_1) > (1.0 + x_3)? (18.0 + x_1) : (1.0 + x_3)) > ((19.0 + x_4) > (4.0 + x_8)? (19.0 + x_4) : (4.0 + x_8))? ((18.0 + x_1) > (1.0 + x_3)? (18.0 + x_1) : (1.0 + x_3)) : ((19.0 + x_4) > (4.0 + x_8)? (19.0 + x_4) : (4.0 + x_8))) > (((11.0 + x_11) > (15.0 + x_12)? (11.0 + x_11) : (15.0 + x_12)) > ((8.0 + x_13) > ((5.0 + x_15) > (18.0 + x_16)? (5.0 + x_15) : (18.0 + x_16))? (8.0 + x_13) : ((5.0 + x_15) > (18.0 + x_16)? (5.0 + x_15) : (18.0 + x_16)))? ((11.0 + x_11) > (15.0 + x_12)? (11.0 + x_11) : (15.0 + x_12)) : ((8.0 + x_13) > ((5.0 + x_15) > (18.0 + x_16)? (5.0 + x_15) : (18.0 + x_16))? (8.0 + x_13) : ((5.0 + x_15) > (18.0 + x_16)? (5.0 + x_15) : (18.0 + x_16))))? (((18.0 + x_1) > (1.0 + x_3)? (18.0 + x_1) : (1.0 + x_3)) > ((19.0 + x_4) > (4.0 + x_8)? (19.0 + x_4) : (4.0 + x_8))? ((18.0 + x_1) > (1.0 + x_3)? (18.0 + x_1) : (1.0 + x_3)) : ((19.0 + x_4) > (4.0 + x_8)? (19.0 + x_4) : (4.0 + x_8))) : (((11.0 + x_11) > (15.0 + x_12)? (11.0 + x_11) : (15.0 + x_12)) > ((8.0 + x_13) > ((5.0 + x_15) > (18.0 + x_16)? (5.0 + x_15) : (18.0 + x_16))? (8.0 + x_13) : ((5.0 + x_15) > (18.0 + x_16)? (5.0 + x_15) : (18.0 + x_16)))? ((11.0 + x_11) > (15.0 + x_12)? (11.0 + x_11) : (15.0 + x_12)) : ((8.0 + x_13) > ((5.0 + x_15) > (18.0 + x_16)? (5.0 + x_15) : (18.0 + x_16))? (8.0 + x_13) : ((5.0 + x_15) > (18.0 + x_16)? (5.0 + x_15) : (18.0 + x_16))))) > ((((7.0 + x_18) > (13.0 + x_19)? (7.0 + x_18) : (13.0 + x_19)) > ((18.0 + x_24) > (19.0 + x_25)? (18.0 + x_24) : (19.0 + x_25))? ((7.0 + x_18) > (13.0 + x_19)? (7.0 + x_18) : (13.0 + x_19)) : ((18.0 + x_24) > (19.0 + x_25)? (18.0 + x_24) : (19.0 + x_25))) > (((14.0 + x_28) > (17.0 + x_29)? (14.0 + x_28) : (17.0 + x_29)) > ((8.0 + x_30) > ((19.0 + x_32) > (12.0 + x_33)? (19.0 + x_32) : (12.0 + x_33))? (8.0 + x_30) : ((19.0 + x_32) > (12.0 + x_33)? (19.0 + x_32) : (12.0 + x_33)))? ((14.0 + x_28) > (17.0 + x_29)? (14.0 + x_28) : (17.0 + x_29)) : ((8.0 + x_30) > ((19.0 + x_32) > (12.0 + x_33)? (19.0 + x_32) : (12.0 + x_33))? (8.0 + x_30) : ((19.0 + x_32) > (12.0 + x_33)? (19.0 + x_32) : (12.0 + x_33))))? (((7.0 + x_18) > (13.0 + x_19)? (7.0 + x_18) : (13.0 + x_19)) > ((18.0 + x_24) > (19.0 + x_25)? (18.0 + x_24) : (19.0 + x_25))? ((7.0 + x_18) > (13.0 + x_19)? (7.0 + x_18) : (13.0 + x_19)) : ((18.0 + x_24) > (19.0 + x_25)? (18.0 + x_24) : (19.0 + x_25))) : (((14.0 + x_28) > (17.0 + x_29)? (14.0 + x_28) : (17.0 + x_29)) > ((8.0 + x_30) > ((19.0 + x_32) > (12.0 + x_33)? (19.0 + x_32) : (12.0 + x_33))? (8.0 + x_30) : ((19.0 + x_32) > (12.0 + x_33)? (19.0 + x_32) : (12.0 + x_33)))? ((14.0 + x_28) > (17.0 + x_29)? (14.0 + x_28) : (17.0 + x_29)) : ((8.0 + x_30) > ((19.0 + x_32) > (12.0 + x_33)? (19.0 + x_32) : (12.0 + x_33))? (8.0 + x_30) : ((19.0 + x_32) > (12.0 + x_33)? (19.0 + x_32) : (12.0 + x_33)))))? ((((18.0 + x_1) > (1.0 + x_3)? (18.0 + x_1) : (1.0 + x_3)) > ((19.0 + x_4) > (4.0 + x_8)? (19.0 + x_4) : (4.0 + x_8))? ((18.0 + x_1) > (1.0 + x_3)? (18.0 + x_1) : (1.0 + x_3)) : ((19.0 + x_4) > (4.0 + x_8)? (19.0 + x_4) : (4.0 + x_8))) > (((11.0 + x_11) > (15.0 + x_12)? (11.0 + x_11) : (15.0 + x_12)) > ((8.0 + x_13) > ((5.0 + x_15) > (18.0 + x_16)? (5.0 + x_15) : (18.0 + x_16))? (8.0 + x_13) : ((5.0 + x_15) > (18.0 + x_16)? (5.0 + x_15) : (18.0 + x_16)))? ((11.0 + x_11) > (15.0 + x_12)? (11.0 + x_11) : (15.0 + x_12)) : ((8.0 + x_13) > ((5.0 + x_15) > (18.0 + x_16)? (5.0 + x_15) : (18.0 + x_16))? (8.0 + x_13) : ((5.0 + x_15) > (18.0 + x_16)? (5.0 + x_15) : (18.0 + x_16))))? (((18.0 + x_1) > (1.0 + x_3)? (18.0 + x_1) : (1.0 + x_3)) > ((19.0 + x_4) > (4.0 + x_8)? (19.0 + x_4) : (4.0 + x_8))? ((18.0 + x_1) > (1.0 + x_3)? (18.0 + x_1) : (1.0 + x_3)) : ((19.0 + x_4) > (4.0 + x_8)? (19.0 + x_4) : (4.0 + x_8))) : (((11.0 + x_11) > (15.0 + x_12)? (11.0 + x_11) : (15.0 + x_12)) > ((8.0 + x_13) > ((5.0 + x_15) > (18.0 + x_16)? (5.0 + x_15) : (18.0 + x_16))? (8.0 + x_13) : ((5.0 + x_15) > (18.0 + x_16)? (5.0 + x_15) : (18.0 + x_16)))? ((11.0 + x_11) > (15.0 + x_12)? (11.0 + x_11) : (15.0 + x_12)) : ((8.0 + x_13) > ((5.0 + x_15) > (18.0 + x_16)? (5.0 + x_15) : (18.0 + x_16))? (8.0 + x_13) : ((5.0 + x_15) > (18.0 + x_16)? (5.0 + x_15) : (18.0 + x_16))))) : ((((7.0 + x_18) > (13.0 + x_19)? (7.0 + x_18) : (13.0 + x_19)) > ((18.0 + x_24) > (19.0 + x_25)? (18.0 + x_24) : (19.0 + x_25))? ((7.0 + x_18) > (13.0 + x_19)? (7.0 + x_18) : (13.0 + x_19)) : ((18.0 + x_24) > (19.0 + x_25)? (18.0 + x_24) : (19.0 + x_25))) > (((14.0 + x_28) > (17.0 + x_29)? (14.0 + x_28) : (17.0 + x_29)) > ((8.0 + x_30) > ((19.0 + x_32) > (12.0 + x_33)? (19.0 + x_32) : (12.0 + x_33))? (8.0 + x_30) : ((19.0 + x_32) > (12.0 + x_33)? (19.0 + x_32) : (12.0 + x_33)))? ((14.0 + x_28) > (17.0 + x_29)? (14.0 + x_28) : (17.0 + x_29)) : ((8.0 + x_30) > ((19.0 + x_32) > (12.0 + x_33)? (19.0 + x_32) : (12.0 + x_33))? (8.0 + x_30) : ((19.0 + x_32) > (12.0 + x_33)? (19.0 + x_32) : (12.0 + x_33))))? (((7.0 + x_18) > (13.0 + x_19)? (7.0 + x_18) : (13.0 + x_19)) > ((18.0 + x_24) > (19.0 + x_25)? (18.0 + x_24) : (19.0 + x_25))? ((7.0 + x_18) > (13.0 + x_19)? (7.0 + x_18) : (13.0 + x_19)) : ((18.0 + x_24) > (19.0 + x_25)? (18.0 + x_24) : (19.0 + x_25))) : (((14.0 + x_28) > (17.0 + x_29)? (14.0 + x_28) : (17.0 + x_29)) > ((8.0 + x_30) > ((19.0 + x_32) > (12.0 + x_33)? (19.0 + x_32) : (12.0 + x_33))? (8.0 + x_30) : ((19.0 + x_32) > (12.0 + x_33)? (19.0 + x_32) : (12.0 + x_33)))? ((14.0 + x_28) > (17.0 + x_29)? (14.0 + x_28) : (17.0 + x_29)) : ((8.0 + x_30) > ((19.0 + x_32) > (12.0 + x_33)? (19.0 + x_32) : (12.0 + x_33))? (8.0 + x_30) : ((19.0 + x_32) > (12.0 + x_33)? (19.0 + x_32) : (12.0 + x_33))))));
x_2_ = (((((2.0 + x_0) > (9.0 + x_1)? (2.0 + x_0) : (9.0 + x_1)) > ((11.0 + x_2) > (20.0 + x_3)? (11.0 + x_2) : (20.0 + x_3))? ((2.0 + x_0) > (9.0 + x_1)? (2.0 + x_0) : (9.0 + x_1)) : ((11.0 + x_2) > (20.0 + x_3)? (11.0 + x_2) : (20.0 + x_3))) > (((14.0 + x_6) > (7.0 + x_8)? (14.0 + x_6) : (7.0 + x_8)) > ((19.0 + x_11) > ((19.0 + x_13) > (17.0 + x_14)? (19.0 + x_13) : (17.0 + x_14))? (19.0 + x_11) : ((19.0 + x_13) > (17.0 + x_14)? (19.0 + x_13) : (17.0 + x_14)))? ((14.0 + x_6) > (7.0 + x_8)? (14.0 + x_6) : (7.0 + x_8)) : ((19.0 + x_11) > ((19.0 + x_13) > (17.0 + x_14)? (19.0 + x_13) : (17.0 + x_14))? (19.0 + x_11) : ((19.0 + x_13) > (17.0 + x_14)? (19.0 + x_13) : (17.0 + x_14))))? (((2.0 + x_0) > (9.0 + x_1)? (2.0 + x_0) : (9.0 + x_1)) > ((11.0 + x_2) > (20.0 + x_3)? (11.0 + x_2) : (20.0 + x_3))? ((2.0 + x_0) > (9.0 + x_1)? (2.0 + x_0) : (9.0 + x_1)) : ((11.0 + x_2) > (20.0 + x_3)? (11.0 + x_2) : (20.0 + x_3))) : (((14.0 + x_6) > (7.0 + x_8)? (14.0 + x_6) : (7.0 + x_8)) > ((19.0 + x_11) > ((19.0 + x_13) > (17.0 + x_14)? (19.0 + x_13) : (17.0 + x_14))? (19.0 + x_11) : ((19.0 + x_13) > (17.0 + x_14)? (19.0 + x_13) : (17.0 + x_14)))? ((14.0 + x_6) > (7.0 + x_8)? (14.0 + x_6) : (7.0 + x_8)) : ((19.0 + x_11) > ((19.0 + x_13) > (17.0 + x_14)? (19.0 + x_13) : (17.0 + x_14))? (19.0 + x_11) : ((19.0 + x_13) > (17.0 + x_14)? (19.0 + x_13) : (17.0 + x_14))))) > ((((19.0 + x_15) > (13.0 + x_21)? (19.0 + x_15) : (13.0 + x_21)) > ((3.0 + x_24) > (19.0 + x_25)? (3.0 + x_24) : (19.0 + x_25))? ((19.0 + x_15) > (13.0 + x_21)? (19.0 + x_15) : (13.0 + x_21)) : ((3.0 + x_24) > (19.0 + x_25)? (3.0 + x_24) : (19.0 + x_25))) > (((9.0 + x_26) > (15.0 + x_27)? (9.0 + x_26) : (15.0 + x_27)) > ((9.0 + x_29) > ((5.0 + x_32) > (12.0 + x_33)? (5.0 + x_32) : (12.0 + x_33))? (9.0 + x_29) : ((5.0 + x_32) > (12.0 + x_33)? (5.0 + x_32) : (12.0 + x_33)))? ((9.0 + x_26) > (15.0 + x_27)? (9.0 + x_26) : (15.0 + x_27)) : ((9.0 + x_29) > ((5.0 + x_32) > (12.0 + x_33)? (5.0 + x_32) : (12.0 + x_33))? (9.0 + x_29) : ((5.0 + x_32) > (12.0 + x_33)? (5.0 + x_32) : (12.0 + x_33))))? (((19.0 + x_15) > (13.0 + x_21)? (19.0 + x_15) : (13.0 + x_21)) > ((3.0 + x_24) > (19.0 + x_25)? (3.0 + x_24) : (19.0 + x_25))? ((19.0 + x_15) > (13.0 + x_21)? (19.0 + x_15) : (13.0 + x_21)) : ((3.0 + x_24) > (19.0 + x_25)? (3.0 + x_24) : (19.0 + x_25))) : (((9.0 + x_26) > (15.0 + x_27)? (9.0 + x_26) : (15.0 + x_27)) > ((9.0 + x_29) > ((5.0 + x_32) > (12.0 + x_33)? (5.0 + x_32) : (12.0 + x_33))? (9.0 + x_29) : ((5.0 + x_32) > (12.0 + x_33)? (5.0 + x_32) : (12.0 + x_33)))? ((9.0 + x_26) > (15.0 + x_27)? (9.0 + x_26) : (15.0 + x_27)) : ((9.0 + x_29) > ((5.0 + x_32) > (12.0 + x_33)? (5.0 + x_32) : (12.0 + x_33))? (9.0 + x_29) : ((5.0 + x_32) > (12.0 + x_33)? (5.0 + x_32) : (12.0 + x_33)))))? ((((2.0 + x_0) > (9.0 + x_1)? (2.0 + x_0) : (9.0 + x_1)) > ((11.0 + x_2) > (20.0 + x_3)? (11.0 + x_2) : (20.0 + x_3))? ((2.0 + x_0) > (9.0 + x_1)? (2.0 + x_0) : (9.0 + x_1)) : ((11.0 + x_2) > (20.0 + x_3)? (11.0 + x_2) : (20.0 + x_3))) > (((14.0 + x_6) > (7.0 + x_8)? (14.0 + x_6) : (7.0 + x_8)) > ((19.0 + x_11) > ((19.0 + x_13) > (17.0 + x_14)? (19.0 + x_13) : (17.0 + x_14))? (19.0 + x_11) : ((19.0 + x_13) > (17.0 + x_14)? (19.0 + x_13) : (17.0 + x_14)))? ((14.0 + x_6) > (7.0 + x_8)? (14.0 + x_6) : (7.0 + x_8)) : ((19.0 + x_11) > ((19.0 + x_13) > (17.0 + x_14)? (19.0 + x_13) : (17.0 + x_14))? (19.0 + x_11) : ((19.0 + x_13) > (17.0 + x_14)? (19.0 + x_13) : (17.0 + x_14))))? (((2.0 + x_0) > (9.0 + x_1)? (2.0 + x_0) : (9.0 + x_1)) > ((11.0 + x_2) > (20.0 + x_3)? (11.0 + x_2) : (20.0 + x_3))? ((2.0 + x_0) > (9.0 + x_1)? (2.0 + x_0) : (9.0 + x_1)) : ((11.0 + x_2) > (20.0 + x_3)? (11.0 + x_2) : (20.0 + x_3))) : (((14.0 + x_6) > (7.0 + x_8)? (14.0 + x_6) : (7.0 + x_8)) > ((19.0 + x_11) > ((19.0 + x_13) > (17.0 + x_14)? (19.0 + x_13) : (17.0 + x_14))? (19.0 + x_11) : ((19.0 + x_13) > (17.0 + x_14)? (19.0 + x_13) : (17.0 + x_14)))? ((14.0 + x_6) > (7.0 + x_8)? (14.0 + x_6) : (7.0 + x_8)) : ((19.0 + x_11) > ((19.0 + x_13) > (17.0 + x_14)? (19.0 + x_13) : (17.0 + x_14))? (19.0 + x_11) : ((19.0 + x_13) > (17.0 + x_14)? (19.0 + x_13) : (17.0 + x_14))))) : ((((19.0 + x_15) > (13.0 + x_21)? (19.0 + x_15) : (13.0 + x_21)) > ((3.0 + x_24) > (19.0 + x_25)? (3.0 + x_24) : (19.0 + x_25))? ((19.0 + x_15) > (13.0 + x_21)? (19.0 + x_15) : (13.0 + x_21)) : ((3.0 + x_24) > (19.0 + x_25)? (3.0 + x_24) : (19.0 + x_25))) > (((9.0 + x_26) > (15.0 + x_27)? (9.0 + x_26) : (15.0 + x_27)) > ((9.0 + x_29) > ((5.0 + x_32) > (12.0 + x_33)? (5.0 + x_32) : (12.0 + x_33))? (9.0 + x_29) : ((5.0 + x_32) > (12.0 + x_33)? (5.0 + x_32) : (12.0 + x_33)))? ((9.0 + x_26) > (15.0 + x_27)? (9.0 + x_26) : (15.0 + x_27)) : ((9.0 + x_29) > ((5.0 + x_32) > (12.0 + x_33)? (5.0 + x_32) : (12.0 + x_33))? (9.0 + x_29) : ((5.0 + x_32) > (12.0 + x_33)? (5.0 + x_32) : (12.0 + x_33))))? (((19.0 + x_15) > (13.0 + x_21)? (19.0 + x_15) : (13.0 + x_21)) > ((3.0 + x_24) > (19.0 + x_25)? (3.0 + x_24) : (19.0 + x_25))? ((19.0 + x_15) > (13.0 + x_21)? (19.0 + x_15) : (13.0 + x_21)) : ((3.0 + x_24) > (19.0 + x_25)? (3.0 + x_24) : (19.0 + x_25))) : (((9.0 + x_26) > (15.0 + x_27)? (9.0 + x_26) : (15.0 + x_27)) > ((9.0 + x_29) > ((5.0 + x_32) > (12.0 + x_33)? (5.0 + x_32) : (12.0 + x_33))? (9.0 + x_29) : ((5.0 + x_32) > (12.0 + x_33)? (5.0 + x_32) : (12.0 + x_33)))? ((9.0 + x_26) > (15.0 + x_27)? (9.0 + x_26) : (15.0 + x_27)) : ((9.0 + x_29) > ((5.0 + x_32) > (12.0 + x_33)? (5.0 + x_32) : (12.0 + x_33))? (9.0 + x_29) : ((5.0 + x_32) > (12.0 + x_33)? (5.0 + x_32) : (12.0 + x_33))))));
x_3_ = (((((16.0 + x_0) > (1.0 + x_1)? (16.0 + x_0) : (1.0 + x_1)) > ((17.0 + x_3) > (6.0 + x_4)? (17.0 + x_3) : (6.0 + x_4))? ((16.0 + x_0) > (1.0 + x_1)? (16.0 + x_0) : (1.0 + x_1)) : ((17.0 + x_3) > (6.0 + x_4)? (17.0 + x_3) : (6.0 + x_4))) > (((3.0 + x_5) > (8.0 + x_12)? (3.0 + x_5) : (8.0 + x_12)) > ((4.0 + x_14) > ((1.0 + x_19) > (8.0 + x_20)? (1.0 + x_19) : (8.0 + x_20))? (4.0 + x_14) : ((1.0 + x_19) > (8.0 + x_20)? (1.0 + x_19) : (8.0 + x_20)))? ((3.0 + x_5) > (8.0 + x_12)? (3.0 + x_5) : (8.0 + x_12)) : ((4.0 + x_14) > ((1.0 + x_19) > (8.0 + x_20)? (1.0 + x_19) : (8.0 + x_20))? (4.0 + x_14) : ((1.0 + x_19) > (8.0 + x_20)? (1.0 + x_19) : (8.0 + x_20))))? (((16.0 + x_0) > (1.0 + x_1)? (16.0 + x_0) : (1.0 + x_1)) > ((17.0 + x_3) > (6.0 + x_4)? (17.0 + x_3) : (6.0 + x_4))? ((16.0 + x_0) > (1.0 + x_1)? (16.0 + x_0) : (1.0 + x_1)) : ((17.0 + x_3) > (6.0 + x_4)? (17.0 + x_3) : (6.0 + x_4))) : (((3.0 + x_5) > (8.0 + x_12)? (3.0 + x_5) : (8.0 + x_12)) > ((4.0 + x_14) > ((1.0 + x_19) > (8.0 + x_20)? (1.0 + x_19) : (8.0 + x_20))? (4.0 + x_14) : ((1.0 + x_19) > (8.0 + x_20)? (1.0 + x_19) : (8.0 + x_20)))? ((3.0 + x_5) > (8.0 + x_12)? (3.0 + x_5) : (8.0 + x_12)) : ((4.0 + x_14) > ((1.0 + x_19) > (8.0 + x_20)? (1.0 + x_19) : (8.0 + x_20))? (4.0 + x_14) : ((1.0 + x_19) > (8.0 + x_20)? (1.0 + x_19) : (8.0 + x_20))))) > ((((10.0 + x_23) > (10.0 + x_25)? (10.0 + x_23) : (10.0 + x_25)) > ((16.0 + x_26) > (5.0 + x_28)? (16.0 + x_26) : (5.0 + x_28))? ((10.0 + x_23) > (10.0 + x_25)? (10.0 + x_23) : (10.0 + x_25)) : ((16.0 + x_26) > (5.0 + x_28)? (16.0 + x_26) : (5.0 + x_28))) > (((17.0 + x_30) > (14.0 + x_31)? (17.0 + x_30) : (14.0 + x_31)) > ((15.0 + x_33) > ((17.0 + x_34) > (4.0 + x_35)? (17.0 + x_34) : (4.0 + x_35))? (15.0 + x_33) : ((17.0 + x_34) > (4.0 + x_35)? (17.0 + x_34) : (4.0 + x_35)))? ((17.0 + x_30) > (14.0 + x_31)? (17.0 + x_30) : (14.0 + x_31)) : ((15.0 + x_33) > ((17.0 + x_34) > (4.0 + x_35)? (17.0 + x_34) : (4.0 + x_35))? (15.0 + x_33) : ((17.0 + x_34) > (4.0 + x_35)? (17.0 + x_34) : (4.0 + x_35))))? (((10.0 + x_23) > (10.0 + x_25)? (10.0 + x_23) : (10.0 + x_25)) > ((16.0 + x_26) > (5.0 + x_28)? (16.0 + x_26) : (5.0 + x_28))? ((10.0 + x_23) > (10.0 + x_25)? (10.0 + x_23) : (10.0 + x_25)) : ((16.0 + x_26) > (5.0 + x_28)? (16.0 + x_26) : (5.0 + x_28))) : (((17.0 + x_30) > (14.0 + x_31)? (17.0 + x_30) : (14.0 + x_31)) > ((15.0 + x_33) > ((17.0 + x_34) > (4.0 + x_35)? (17.0 + x_34) : (4.0 + x_35))? (15.0 + x_33) : ((17.0 + x_34) > (4.0 + x_35)? (17.0 + x_34) : (4.0 + x_35)))? ((17.0 + x_30) > (14.0 + x_31)? (17.0 + x_30) : (14.0 + x_31)) : ((15.0 + x_33) > ((17.0 + x_34) > (4.0 + x_35)? (17.0 + x_34) : (4.0 + x_35))? (15.0 + x_33) : ((17.0 + x_34) > (4.0 + x_35)? (17.0 + x_34) : (4.0 + x_35)))))? ((((16.0 + x_0) > (1.0 + x_1)? (16.0 + x_0) : (1.0 + x_1)) > ((17.0 + x_3) > (6.0 + x_4)? (17.0 + x_3) : (6.0 + x_4))? ((16.0 + x_0) > (1.0 + x_1)? (16.0 + x_0) : (1.0 + x_1)) : ((17.0 + x_3) > (6.0 + x_4)? (17.0 + x_3) : (6.0 + x_4))) > (((3.0 + x_5) > (8.0 + x_12)? (3.0 + x_5) : (8.0 + x_12)) > ((4.0 + x_14) > ((1.0 + x_19) > (8.0 + x_20)? (1.0 + x_19) : (8.0 + x_20))? (4.0 + x_14) : ((1.0 + x_19) > (8.0 + x_20)? (1.0 + x_19) : (8.0 + x_20)))? ((3.0 + x_5) > (8.0 + x_12)? (3.0 + x_5) : (8.0 + x_12)) : ((4.0 + x_14) > ((1.0 + x_19) > (8.0 + x_20)? (1.0 + x_19) : (8.0 + x_20))? (4.0 + x_14) : ((1.0 + x_19) > (8.0 + x_20)? (1.0 + x_19) : (8.0 + x_20))))? (((16.0 + x_0) > (1.0 + x_1)? (16.0 + x_0) : (1.0 + x_1)) > ((17.0 + x_3) > (6.0 + x_4)? (17.0 + x_3) : (6.0 + x_4))? ((16.0 + x_0) > (1.0 + x_1)? (16.0 + x_0) : (1.0 + x_1)) : ((17.0 + x_3) > (6.0 + x_4)? (17.0 + x_3) : (6.0 + x_4))) : (((3.0 + x_5) > (8.0 + x_12)? (3.0 + x_5) : (8.0 + x_12)) > ((4.0 + x_14) > ((1.0 + x_19) > (8.0 + x_20)? (1.0 + x_19) : (8.0 + x_20))? (4.0 + x_14) : ((1.0 + x_19) > (8.0 + x_20)? (1.0 + x_19) : (8.0 + x_20)))? ((3.0 + x_5) > (8.0 + x_12)? (3.0 + x_5) : (8.0 + x_12)) : ((4.0 + x_14) > ((1.0 + x_19) > (8.0 + x_20)? (1.0 + x_19) : (8.0 + x_20))? (4.0 + x_14) : ((1.0 + x_19) > (8.0 + x_20)? (1.0 + x_19) : (8.0 + x_20))))) : ((((10.0 + x_23) > (10.0 + x_25)? (10.0 + x_23) : (10.0 + x_25)) > ((16.0 + x_26) > (5.0 + x_28)? (16.0 + x_26) : (5.0 + x_28))? ((10.0 + x_23) > (10.0 + x_25)? (10.0 + x_23) : (10.0 + x_25)) : ((16.0 + x_26) > (5.0 + x_28)? (16.0 + x_26) : (5.0 + x_28))) > (((17.0 + x_30) > (14.0 + x_31)? (17.0 + x_30) : (14.0 + x_31)) > ((15.0 + x_33) > ((17.0 + x_34) > (4.0 + x_35)? (17.0 + x_34) : (4.0 + x_35))? (15.0 + x_33) : ((17.0 + x_34) > (4.0 + x_35)? (17.0 + x_34) : (4.0 + x_35)))? ((17.0 + x_30) > (14.0 + x_31)? (17.0 + x_30) : (14.0 + x_31)) : ((15.0 + x_33) > ((17.0 + x_34) > (4.0 + x_35)? (17.0 + x_34) : (4.0 + x_35))? (15.0 + x_33) : ((17.0 + x_34) > (4.0 + x_35)? (17.0 + x_34) : (4.0 + x_35))))? (((10.0 + x_23) > (10.0 + x_25)? (10.0 + x_23) : (10.0 + x_25)) > ((16.0 + x_26) > (5.0 + x_28)? (16.0 + x_26) : (5.0 + x_28))? ((10.0 + x_23) > (10.0 + x_25)? (10.0 + x_23) : (10.0 + x_25)) : ((16.0 + x_26) > (5.0 + x_28)? (16.0 + x_26) : (5.0 + x_28))) : (((17.0 + x_30) > (14.0 + x_31)? (17.0 + x_30) : (14.0 + x_31)) > ((15.0 + x_33) > ((17.0 + x_34) > (4.0 + x_35)? (17.0 + x_34) : (4.0 + x_35))? (15.0 + x_33) : ((17.0 + x_34) > (4.0 + x_35)? (17.0 + x_34) : (4.0 + x_35)))? ((17.0 + x_30) > (14.0 + x_31)? (17.0 + x_30) : (14.0 + x_31)) : ((15.0 + x_33) > ((17.0 + x_34) > (4.0 + x_35)? (17.0 + x_34) : (4.0 + x_35))? (15.0 + x_33) : ((17.0 + x_34) > (4.0 + x_35)? (17.0 + x_34) : (4.0 + x_35))))));
x_4_ = (((((4.0 + x_0) > (3.0 + x_1)? (4.0 + x_0) : (3.0 + x_1)) > ((20.0 + x_2) > (3.0 + x_3)? (20.0 + x_2) : (3.0 + x_3))? ((4.0 + x_0) > (3.0 + x_1)? (4.0 + x_0) : (3.0 + x_1)) : ((20.0 + x_2) > (3.0 + x_3)? (20.0 + x_2) : (3.0 + x_3))) > (((18.0 + x_4) > (9.0 + x_9)? (18.0 + x_4) : (9.0 + x_9)) > ((12.0 + x_12) > ((19.0 + x_13) > (20.0 + x_15)? (19.0 + x_13) : (20.0 + x_15))? (12.0 + x_12) : ((19.0 + x_13) > (20.0 + x_15)? (19.0 + x_13) : (20.0 + x_15)))? ((18.0 + x_4) > (9.0 + x_9)? (18.0 + x_4) : (9.0 + x_9)) : ((12.0 + x_12) > ((19.0 + x_13) > (20.0 + x_15)? (19.0 + x_13) : (20.0 + x_15))? (12.0 + x_12) : ((19.0 + x_13) > (20.0 + x_15)? (19.0 + x_13) : (20.0 + x_15))))? (((4.0 + x_0) > (3.0 + x_1)? (4.0 + x_0) : (3.0 + x_1)) > ((20.0 + x_2) > (3.0 + x_3)? (20.0 + x_2) : (3.0 + x_3))? ((4.0 + x_0) > (3.0 + x_1)? (4.0 + x_0) : (3.0 + x_1)) : ((20.0 + x_2) > (3.0 + x_3)? (20.0 + x_2) : (3.0 + x_3))) : (((18.0 + x_4) > (9.0 + x_9)? (18.0 + x_4) : (9.0 + x_9)) > ((12.0 + x_12) > ((19.0 + x_13) > (20.0 + x_15)? (19.0 + x_13) : (20.0 + x_15))? (12.0 + x_12) : ((19.0 + x_13) > (20.0 + x_15)? (19.0 + x_13) : (20.0 + x_15)))? ((18.0 + x_4) > (9.0 + x_9)? (18.0 + x_4) : (9.0 + x_9)) : ((12.0 + x_12) > ((19.0 + x_13) > (20.0 + x_15)? (19.0 + x_13) : (20.0 + x_15))? (12.0 + x_12) : ((19.0 + x_13) > (20.0 + x_15)? (19.0 + x_13) : (20.0 + x_15))))) > ((((13.0 + x_19) > (12.0 + x_21)? (13.0 + x_19) : (12.0 + x_21)) > ((2.0 + x_22) > (12.0 + x_24)? (2.0 + x_22) : (12.0 + x_24))? ((13.0 + x_19) > (12.0 + x_21)? (13.0 + x_19) : (12.0 + x_21)) : ((2.0 + x_22) > (12.0 + x_24)? (2.0 + x_22) : (12.0 + x_24))) > (((14.0 + x_25) > (19.0 + x_28)? (14.0 + x_25) : (19.0 + x_28)) > ((20.0 + x_29) > ((20.0 + x_33) > (8.0 + x_34)? (20.0 + x_33) : (8.0 + x_34))? (20.0 + x_29) : ((20.0 + x_33) > (8.0 + x_34)? (20.0 + x_33) : (8.0 + x_34)))? ((14.0 + x_25) > (19.0 + x_28)? (14.0 + x_25) : (19.0 + x_28)) : ((20.0 + x_29) > ((20.0 + x_33) > (8.0 + x_34)? (20.0 + x_33) : (8.0 + x_34))? (20.0 + x_29) : ((20.0 + x_33) > (8.0 + x_34)? (20.0 + x_33) : (8.0 + x_34))))? (((13.0 + x_19) > (12.0 + x_21)? (13.0 + x_19) : (12.0 + x_21)) > ((2.0 + x_22) > (12.0 + x_24)? (2.0 + x_22) : (12.0 + x_24))? ((13.0 + x_19) > (12.0 + x_21)? (13.0 + x_19) : (12.0 + x_21)) : ((2.0 + x_22) > (12.0 + x_24)? (2.0 + x_22) : (12.0 + x_24))) : (((14.0 + x_25) > (19.0 + x_28)? (14.0 + x_25) : (19.0 + x_28)) > ((20.0 + x_29) > ((20.0 + x_33) > (8.0 + x_34)? (20.0 + x_33) : (8.0 + x_34))? (20.0 + x_29) : ((20.0 + x_33) > (8.0 + x_34)? (20.0 + x_33) : (8.0 + x_34)))? ((14.0 + x_25) > (19.0 + x_28)? (14.0 + x_25) : (19.0 + x_28)) : ((20.0 + x_29) > ((20.0 + x_33) > (8.0 + x_34)? (20.0 + x_33) : (8.0 + x_34))? (20.0 + x_29) : ((20.0 + x_33) > (8.0 + x_34)? (20.0 + x_33) : (8.0 + x_34)))))? ((((4.0 + x_0) > (3.0 + x_1)? (4.0 + x_0) : (3.0 + x_1)) > ((20.0 + x_2) > (3.0 + x_3)? (20.0 + x_2) : (3.0 + x_3))? ((4.0 + x_0) > (3.0 + x_1)? (4.0 + x_0) : (3.0 + x_1)) : ((20.0 + x_2) > (3.0 + x_3)? (20.0 + x_2) : (3.0 + x_3))) > (((18.0 + x_4) > (9.0 + x_9)? (18.0 + x_4) : (9.0 + x_9)) > ((12.0 + x_12) > ((19.0 + x_13) > (20.0 + x_15)? (19.0 + x_13) : (20.0 + x_15))? (12.0 + x_12) : ((19.0 + x_13) > (20.0 + x_15)? (19.0 + x_13) : (20.0 + x_15)))? ((18.0 + x_4) > (9.0 + x_9)? (18.0 + x_4) : (9.0 + x_9)) : ((12.0 + x_12) > ((19.0 + x_13) > (20.0 + x_15)? (19.0 + x_13) : (20.0 + x_15))? (12.0 + x_12) : ((19.0 + x_13) > (20.0 + x_15)? (19.0 + x_13) : (20.0 + x_15))))? (((4.0 + x_0) > (3.0 + x_1)? (4.0 + x_0) : (3.0 + x_1)) > ((20.0 + x_2) > (3.0 + x_3)? (20.0 + x_2) : (3.0 + x_3))? ((4.0 + x_0) > (3.0 + x_1)? (4.0 + x_0) : (3.0 + x_1)) : ((20.0 + x_2) > (3.0 + x_3)? (20.0 + x_2) : (3.0 + x_3))) : (((18.0 + x_4) > (9.0 + x_9)? (18.0 + x_4) : (9.0 + x_9)) > ((12.0 + x_12) > ((19.0 + x_13) > (20.0 + x_15)? (19.0 + x_13) : (20.0 + x_15))? (12.0 + x_12) : ((19.0 + x_13) > (20.0 + x_15)? (19.0 + x_13) : (20.0 + x_15)))? ((18.0 + x_4) > (9.0 + x_9)? (18.0 + x_4) : (9.0 + x_9)) : ((12.0 + x_12) > ((19.0 + x_13) > (20.0 + x_15)? (19.0 + x_13) : (20.0 + x_15))? (12.0 + x_12) : ((19.0 + x_13) > (20.0 + x_15)? (19.0 + x_13) : (20.0 + x_15))))) : ((((13.0 + x_19) > (12.0 + x_21)? (13.0 + x_19) : (12.0 + x_21)) > ((2.0 + x_22) > (12.0 + x_24)? (2.0 + x_22) : (12.0 + x_24))? ((13.0 + x_19) > (12.0 + x_21)? (13.0 + x_19) : (12.0 + x_21)) : ((2.0 + x_22) > (12.0 + x_24)? (2.0 + x_22) : (12.0 + x_24))) > (((14.0 + x_25) > (19.0 + x_28)? (14.0 + x_25) : (19.0 + x_28)) > ((20.0 + x_29) > ((20.0 + x_33) > (8.0 + x_34)? (20.0 + x_33) : (8.0 + x_34))? (20.0 + x_29) : ((20.0 + x_33) > (8.0 + x_34)? (20.0 + x_33) : (8.0 + x_34)))? ((14.0 + x_25) > (19.0 + x_28)? (14.0 + x_25) : (19.0 + x_28)) : ((20.0 + x_29) > ((20.0 + x_33) > (8.0 + x_34)? (20.0 + x_33) : (8.0 + x_34))? (20.0 + x_29) : ((20.0 + x_33) > (8.0 + x_34)? (20.0 + x_33) : (8.0 + x_34))))? (((13.0 + x_19) > (12.0 + x_21)? (13.0 + x_19) : (12.0 + x_21)) > ((2.0 + x_22) > (12.0 + x_24)? (2.0 + x_22) : (12.0 + x_24))? ((13.0 + x_19) > (12.0 + x_21)? (13.0 + x_19) : (12.0 + x_21)) : ((2.0 + x_22) > (12.0 + x_24)? (2.0 + x_22) : (12.0 + x_24))) : (((14.0 + x_25) > (19.0 + x_28)? (14.0 + x_25) : (19.0 + x_28)) > ((20.0 + x_29) > ((20.0 + x_33) > (8.0 + x_34)? (20.0 + x_33) : (8.0 + x_34))? (20.0 + x_29) : ((20.0 + x_33) > (8.0 + x_34)? (20.0 + x_33) : (8.0 + x_34)))? ((14.0 + x_25) > (19.0 + x_28)? (14.0 + x_25) : (19.0 + x_28)) : ((20.0 + x_29) > ((20.0 + x_33) > (8.0 + x_34)? (20.0 + x_33) : (8.0 + x_34))? (20.0 + x_29) : ((20.0 + x_33) > (8.0 + x_34)? (20.0 + x_33) : (8.0 + x_34))))));
x_5_ = (((((4.0 + x_2) > (6.0 + x_3)? (4.0 + x_2) : (6.0 + x_3)) > ((11.0 + x_4) > (13.0 + x_5)? (11.0 + x_4) : (13.0 + x_5))? ((4.0 + x_2) > (6.0 + x_3)? (4.0 + x_2) : (6.0 + x_3)) : ((11.0 + x_4) > (13.0 + x_5)? (11.0 + x_4) : (13.0 + x_5))) > (((15.0 + x_7) > (16.0 + x_9)? (15.0 + x_7) : (16.0 + x_9)) > ((10.0 + x_11) > ((19.0 + x_14) > (4.0 + x_16)? (19.0 + x_14) : (4.0 + x_16))? (10.0 + x_11) : ((19.0 + x_14) > (4.0 + x_16)? (19.0 + x_14) : (4.0 + x_16)))? ((15.0 + x_7) > (16.0 + x_9)? (15.0 + x_7) : (16.0 + x_9)) : ((10.0 + x_11) > ((19.0 + x_14) > (4.0 + x_16)? (19.0 + x_14) : (4.0 + x_16))? (10.0 + x_11) : ((19.0 + x_14) > (4.0 + x_16)? (19.0 + x_14) : (4.0 + x_16))))? (((4.0 + x_2) > (6.0 + x_3)? (4.0 + x_2) : (6.0 + x_3)) > ((11.0 + x_4) > (13.0 + x_5)? (11.0 + x_4) : (13.0 + x_5))? ((4.0 + x_2) > (6.0 + x_3)? (4.0 + x_2) : (6.0 + x_3)) : ((11.0 + x_4) > (13.0 + x_5)? (11.0 + x_4) : (13.0 + x_5))) : (((15.0 + x_7) > (16.0 + x_9)? (15.0 + x_7) : (16.0 + x_9)) > ((10.0 + x_11) > ((19.0 + x_14) > (4.0 + x_16)? (19.0 + x_14) : (4.0 + x_16))? (10.0 + x_11) : ((19.0 + x_14) > (4.0 + x_16)? (19.0 + x_14) : (4.0 + x_16)))? ((15.0 + x_7) > (16.0 + x_9)? (15.0 + x_7) : (16.0 + x_9)) : ((10.0 + x_11) > ((19.0 + x_14) > (4.0 + x_16)? (19.0 + x_14) : (4.0 + x_16))? (10.0 + x_11) : ((19.0 + x_14) > (4.0 + x_16)? (19.0 + x_14) : (4.0 + x_16))))) > ((((6.0 + x_17) > (13.0 + x_21)? (6.0 + x_17) : (13.0 + x_21)) > ((9.0 + x_26) > (17.0 + x_29)? (9.0 + x_26) : (17.0 + x_29))? ((6.0 + x_17) > (13.0 + x_21)? (6.0 + x_17) : (13.0 + x_21)) : ((9.0 + x_26) > (17.0 + x_29)? (9.0 + x_26) : (17.0 + x_29))) > (((2.0 + x_31) > (2.0 + x_32)? (2.0 + x_31) : (2.0 + x_32)) > ((11.0 + x_33) > ((13.0 + x_34) > (19.0 + x_35)? (13.0 + x_34) : (19.0 + x_35))? (11.0 + x_33) : ((13.0 + x_34) > (19.0 + x_35)? (13.0 + x_34) : (19.0 + x_35)))? ((2.0 + x_31) > (2.0 + x_32)? (2.0 + x_31) : (2.0 + x_32)) : ((11.0 + x_33) > ((13.0 + x_34) > (19.0 + x_35)? (13.0 + x_34) : (19.0 + x_35))? (11.0 + x_33) : ((13.0 + x_34) > (19.0 + x_35)? (13.0 + x_34) : (19.0 + x_35))))? (((6.0 + x_17) > (13.0 + x_21)? (6.0 + x_17) : (13.0 + x_21)) > ((9.0 + x_26) > (17.0 + x_29)? (9.0 + x_26) : (17.0 + x_29))? ((6.0 + x_17) > (13.0 + x_21)? (6.0 + x_17) : (13.0 + x_21)) : ((9.0 + x_26) > (17.0 + x_29)? (9.0 + x_26) : (17.0 + x_29))) : (((2.0 + x_31) > (2.0 + x_32)? (2.0 + x_31) : (2.0 + x_32)) > ((11.0 + x_33) > ((13.0 + x_34) > (19.0 + x_35)? (13.0 + x_34) : (19.0 + x_35))? (11.0 + x_33) : ((13.0 + x_34) > (19.0 + x_35)? (13.0 + x_34) : (19.0 + x_35)))? ((2.0 + x_31) > (2.0 + x_32)? (2.0 + x_31) : (2.0 + x_32)) : ((11.0 + x_33) > ((13.0 + x_34) > (19.0 + x_35)? (13.0 + x_34) : (19.0 + x_35))? (11.0 + x_33) : ((13.0 + x_34) > (19.0 + x_35)? (13.0 + x_34) : (19.0 + x_35)))))? ((((4.0 + x_2) > (6.0 + x_3)? (4.0 + x_2) : (6.0 + x_3)) > ((11.0 + x_4) > (13.0 + x_5)? (11.0 + x_4) : (13.0 + x_5))? ((4.0 + x_2) > (6.0 + x_3)? (4.0 + x_2) : (6.0 + x_3)) : ((11.0 + x_4) > (13.0 + x_5)? (11.0 + x_4) : (13.0 + x_5))) > (((15.0 + x_7) > (16.0 + x_9)? (15.0 + x_7) : (16.0 + x_9)) > ((10.0 + x_11) > ((19.0 + x_14) > (4.0 + x_16)? (19.0 + x_14) : (4.0 + x_16))? (10.0 + x_11) : ((19.0 + x_14) > (4.0 + x_16)? (19.0 + x_14) : (4.0 + x_16)))? ((15.0 + x_7) > (16.0 + x_9)? (15.0 + x_7) : (16.0 + x_9)) : ((10.0 + x_11) > ((19.0 + x_14) > (4.0 + x_16)? (19.0 + x_14) : (4.0 + x_16))? (10.0 + x_11) : ((19.0 + x_14) > (4.0 + x_16)? (19.0 + x_14) : (4.0 + x_16))))? (((4.0 + x_2) > (6.0 + x_3)? (4.0 + x_2) : (6.0 + x_3)) > ((11.0 + x_4) > (13.0 + x_5)? (11.0 + x_4) : (13.0 + x_5))? ((4.0 + x_2) > (6.0 + x_3)? (4.0 + x_2) : (6.0 + x_3)) : ((11.0 + x_4) > (13.0 + x_5)? (11.0 + x_4) : (13.0 + x_5))) : (((15.0 + x_7) > (16.0 + x_9)? (15.0 + x_7) : (16.0 + x_9)) > ((10.0 + x_11) > ((19.0 + x_14) > (4.0 + x_16)? (19.0 + x_14) : (4.0 + x_16))? (10.0 + x_11) : ((19.0 + x_14) > (4.0 + x_16)? (19.0 + x_14) : (4.0 + x_16)))? ((15.0 + x_7) > (16.0 + x_9)? (15.0 + x_7) : (16.0 + x_9)) : ((10.0 + x_11) > ((19.0 + x_14) > (4.0 + x_16)? (19.0 + x_14) : (4.0 + x_16))? (10.0 + x_11) : ((19.0 + x_14) > (4.0 + x_16)? (19.0 + x_14) : (4.0 + x_16))))) : ((((6.0 + x_17) > (13.0 + x_21)? (6.0 + x_17) : (13.0 + x_21)) > ((9.0 + x_26) > (17.0 + x_29)? (9.0 + x_26) : (17.0 + x_29))? ((6.0 + x_17) > (13.0 + x_21)? (6.0 + x_17) : (13.0 + x_21)) : ((9.0 + x_26) > (17.0 + x_29)? (9.0 + x_26) : (17.0 + x_29))) > (((2.0 + x_31) > (2.0 + x_32)? (2.0 + x_31) : (2.0 + x_32)) > ((11.0 + x_33) > ((13.0 + x_34) > (19.0 + x_35)? (13.0 + x_34) : (19.0 + x_35))? (11.0 + x_33) : ((13.0 + x_34) > (19.0 + x_35)? (13.0 + x_34) : (19.0 + x_35)))? ((2.0 + x_31) > (2.0 + x_32)? (2.0 + x_31) : (2.0 + x_32)) : ((11.0 + x_33) > ((13.0 + x_34) > (19.0 + x_35)? (13.0 + x_34) : (19.0 + x_35))? (11.0 + x_33) : ((13.0 + x_34) > (19.0 + x_35)? (13.0 + x_34) : (19.0 + x_35))))? (((6.0 + x_17) > (13.0 + x_21)? (6.0 + x_17) : (13.0 + x_21)) > ((9.0 + x_26) > (17.0 + x_29)? (9.0 + x_26) : (17.0 + x_29))? ((6.0 + x_17) > (13.0 + x_21)? (6.0 + x_17) : (13.0 + x_21)) : ((9.0 + x_26) > (17.0 + x_29)? (9.0 + x_26) : (17.0 + x_29))) : (((2.0 + x_31) > (2.0 + x_32)? (2.0 + x_31) : (2.0 + x_32)) > ((11.0 + x_33) > ((13.0 + x_34) > (19.0 + x_35)? (13.0 + x_34) : (19.0 + x_35))? (11.0 + x_33) : ((13.0 + x_34) > (19.0 + x_35)? (13.0 + x_34) : (19.0 + x_35)))? ((2.0 + x_31) > (2.0 + x_32)? (2.0 + x_31) : (2.0 + x_32)) : ((11.0 + x_33) > ((13.0 + x_34) > (19.0 + x_35)? (13.0 + x_34) : (19.0 + x_35))? (11.0 + x_33) : ((13.0 + x_34) > (19.0 + x_35)? (13.0 + x_34) : (19.0 + x_35))))));
x_6_ = (((((19.0 + x_1) > (2.0 + x_3)? (19.0 + x_1) : (2.0 + x_3)) > ((6.0 + x_8) > (20.0 + x_9)? (6.0 + x_8) : (20.0 + x_9))? ((19.0 + x_1) > (2.0 + x_3)? (19.0 + x_1) : (2.0 + x_3)) : ((6.0 + x_8) > (20.0 + x_9)? (6.0 + x_8) : (20.0 + x_9))) > (((7.0 + x_10) > (2.0 + x_13)? (7.0 + x_10) : (2.0 + x_13)) > ((6.0 + x_15) > ((15.0 + x_16) > (10.0 + x_17)? (15.0 + x_16) : (10.0 + x_17))? (6.0 + x_15) : ((15.0 + x_16) > (10.0 + x_17)? (15.0 + x_16) : (10.0 + x_17)))? ((7.0 + x_10) > (2.0 + x_13)? (7.0 + x_10) : (2.0 + x_13)) : ((6.0 + x_15) > ((15.0 + x_16) > (10.0 + x_17)? (15.0 + x_16) : (10.0 + x_17))? (6.0 + x_15) : ((15.0 + x_16) > (10.0 + x_17)? (15.0 + x_16) : (10.0 + x_17))))? (((19.0 + x_1) > (2.0 + x_3)? (19.0 + x_1) : (2.0 + x_3)) > ((6.0 + x_8) > (20.0 + x_9)? (6.0 + x_8) : (20.0 + x_9))? ((19.0 + x_1) > (2.0 + x_3)? (19.0 + x_1) : (2.0 + x_3)) : ((6.0 + x_8) > (20.0 + x_9)? (6.0 + x_8) : (20.0 + x_9))) : (((7.0 + x_10) > (2.0 + x_13)? (7.0 + x_10) : (2.0 + x_13)) > ((6.0 + x_15) > ((15.0 + x_16) > (10.0 + x_17)? (15.0 + x_16) : (10.0 + x_17))? (6.0 + x_15) : ((15.0 + x_16) > (10.0 + x_17)? (15.0 + x_16) : (10.0 + x_17)))? ((7.0 + x_10) > (2.0 + x_13)? (7.0 + x_10) : (2.0 + x_13)) : ((6.0 + x_15) > ((15.0 + x_16) > (10.0 + x_17)? (15.0 + x_16) : (10.0 + x_17))? (6.0 + x_15) : ((15.0 + x_16) > (10.0 + x_17)? (15.0 + x_16) : (10.0 + x_17))))) > ((((1.0 + x_18) > (10.0 + x_20)? (1.0 + x_18) : (10.0 + x_20)) > ((6.0 + x_21) > (6.0 + x_25)? (6.0 + x_21) : (6.0 + x_25))? ((1.0 + x_18) > (10.0 + x_20)? (1.0 + x_18) : (10.0 + x_20)) : ((6.0 + x_21) > (6.0 + x_25)? (6.0 + x_21) : (6.0 + x_25))) > (((12.0 + x_26) > (17.0 + x_28)? (12.0 + x_26) : (17.0 + x_28)) > ((13.0 + x_32) > ((4.0 + x_33) > (4.0 + x_35)? (4.0 + x_33) : (4.0 + x_35))? (13.0 + x_32) : ((4.0 + x_33) > (4.0 + x_35)? (4.0 + x_33) : (4.0 + x_35)))? ((12.0 + x_26) > (17.0 + x_28)? (12.0 + x_26) : (17.0 + x_28)) : ((13.0 + x_32) > ((4.0 + x_33) > (4.0 + x_35)? (4.0 + x_33) : (4.0 + x_35))? (13.0 + x_32) : ((4.0 + x_33) > (4.0 + x_35)? (4.0 + x_33) : (4.0 + x_35))))? (((1.0 + x_18) > (10.0 + x_20)? (1.0 + x_18) : (10.0 + x_20)) > ((6.0 + x_21) > (6.0 + x_25)? (6.0 + x_21) : (6.0 + x_25))? ((1.0 + x_18) > (10.0 + x_20)? (1.0 + x_18) : (10.0 + x_20)) : ((6.0 + x_21) > (6.0 + x_25)? (6.0 + x_21) : (6.0 + x_25))) : (((12.0 + x_26) > (17.0 + x_28)? (12.0 + x_26) : (17.0 + x_28)) > ((13.0 + x_32) > ((4.0 + x_33) > (4.0 + x_35)? (4.0 + x_33) : (4.0 + x_35))? (13.0 + x_32) : ((4.0 + x_33) > (4.0 + x_35)? (4.0 + x_33) : (4.0 + x_35)))? ((12.0 + x_26) > (17.0 + x_28)? (12.0 + x_26) : (17.0 + x_28)) : ((13.0 + x_32) > ((4.0 + x_33) > (4.0 + x_35)? (4.0 + x_33) : (4.0 + x_35))? (13.0 + x_32) : ((4.0 + x_33) > (4.0 + x_35)? (4.0 + x_33) : (4.0 + x_35)))))? ((((19.0 + x_1) > (2.0 + x_3)? (19.0 + x_1) : (2.0 + x_3)) > ((6.0 + x_8) > (20.0 + x_9)? (6.0 + x_8) : (20.0 + x_9))? ((19.0 + x_1) > (2.0 + x_3)? (19.0 + x_1) : (2.0 + x_3)) : ((6.0 + x_8) > (20.0 + x_9)? (6.0 + x_8) : (20.0 + x_9))) > (((7.0 + x_10) > (2.0 + x_13)? (7.0 + x_10) : (2.0 + x_13)) > ((6.0 + x_15) > ((15.0 + x_16) > (10.0 + x_17)? (15.0 + x_16) : (10.0 + x_17))? (6.0 + x_15) : ((15.0 + x_16) > (10.0 + x_17)? (15.0 + x_16) : (10.0 + x_17)))? ((7.0 + x_10) > (2.0 + x_13)? (7.0 + x_10) : (2.0 + x_13)) : ((6.0 + x_15) > ((15.0 + x_16) > (10.0 + x_17)? (15.0 + x_16) : (10.0 + x_17))? (6.0 + x_15) : ((15.0 + x_16) > (10.0 + x_17)? (15.0 + x_16) : (10.0 + x_17))))? (((19.0 + x_1) > (2.0 + x_3)? (19.0 + x_1) : (2.0 + x_3)) > ((6.0 + x_8) > (20.0 + x_9)? (6.0 + x_8) : (20.0 + x_9))? ((19.0 + x_1) > (2.0 + x_3)? (19.0 + x_1) : (2.0 + x_3)) : ((6.0 + x_8) > (20.0 + x_9)? (6.0 + x_8) : (20.0 + x_9))) : (((7.0 + x_10) > (2.0 + x_13)? (7.0 + x_10) : (2.0 + x_13)) > ((6.0 + x_15) > ((15.0 + x_16) > (10.0 + x_17)? (15.0 + x_16) : (10.0 + x_17))? (6.0 + x_15) : ((15.0 + x_16) > (10.0 + x_17)? (15.0 + x_16) : (10.0 + x_17)))? ((7.0 + x_10) > (2.0 + x_13)? (7.0 + x_10) : (2.0 + x_13)) : ((6.0 + x_15) > ((15.0 + x_16) > (10.0 + x_17)? (15.0 + x_16) : (10.0 + x_17))? (6.0 + x_15) : ((15.0 + x_16) > (10.0 + x_17)? (15.0 + x_16) : (10.0 + x_17))))) : ((((1.0 + x_18) > (10.0 + x_20)? (1.0 + x_18) : (10.0 + x_20)) > ((6.0 + x_21) > (6.0 + x_25)? (6.0 + x_21) : (6.0 + x_25))? ((1.0 + x_18) > (10.0 + x_20)? (1.0 + x_18) : (10.0 + x_20)) : ((6.0 + x_21) > (6.0 + x_25)? (6.0 + x_21) : (6.0 + x_25))) > (((12.0 + x_26) > (17.0 + x_28)? (12.0 + x_26) : (17.0 + x_28)) > ((13.0 + x_32) > ((4.0 + x_33) > (4.0 + x_35)? (4.0 + x_33) : (4.0 + x_35))? (13.0 + x_32) : ((4.0 + x_33) > (4.0 + x_35)? (4.0 + x_33) : (4.0 + x_35)))? ((12.0 + x_26) > (17.0 + x_28)? (12.0 + x_26) : (17.0 + x_28)) : ((13.0 + x_32) > ((4.0 + x_33) > (4.0 + x_35)? (4.0 + x_33) : (4.0 + x_35))? (13.0 + x_32) : ((4.0 + x_33) > (4.0 + x_35)? (4.0 + x_33) : (4.0 + x_35))))? (((1.0 + x_18) > (10.0 + x_20)? (1.0 + x_18) : (10.0 + x_20)) > ((6.0 + x_21) > (6.0 + x_25)? (6.0 + x_21) : (6.0 + x_25))? ((1.0 + x_18) > (10.0 + x_20)? (1.0 + x_18) : (10.0 + x_20)) : ((6.0 + x_21) > (6.0 + x_25)? (6.0 + x_21) : (6.0 + x_25))) : (((12.0 + x_26) > (17.0 + x_28)? (12.0 + x_26) : (17.0 + x_28)) > ((13.0 + x_32) > ((4.0 + x_33) > (4.0 + x_35)? (4.0 + x_33) : (4.0 + x_35))? (13.0 + x_32) : ((4.0 + x_33) > (4.0 + x_35)? (4.0 + x_33) : (4.0 + x_35)))? ((12.0 + x_26) > (17.0 + x_28)? (12.0 + x_26) : (17.0 + x_28)) : ((13.0 + x_32) > ((4.0 + x_33) > (4.0 + x_35)? (4.0 + x_33) : (4.0 + x_35))? (13.0 + x_32) : ((4.0 + x_33) > (4.0 + x_35)? (4.0 + x_33) : (4.0 + x_35))))));
x_7_ = (((((20.0 + x_0) > (2.0 + x_4)? (20.0 + x_0) : (2.0 + x_4)) > ((2.0 + x_5) > (19.0 + x_6)? (2.0 + x_5) : (19.0 + x_6))? ((20.0 + x_0) > (2.0 + x_4)? (20.0 + x_0) : (2.0 + x_4)) : ((2.0 + x_5) > (19.0 + x_6)? (2.0 + x_5) : (19.0 + x_6))) > (((7.0 + x_8) > (2.0 + x_10)? (7.0 + x_8) : (2.0 + x_10)) > ((14.0 + x_11) > ((8.0 + x_12) > (17.0 + x_14)? (8.0 + x_12) : (17.0 + x_14))? (14.0 + x_11) : ((8.0 + x_12) > (17.0 + x_14)? (8.0 + x_12) : (17.0 + x_14)))? ((7.0 + x_8) > (2.0 + x_10)? (7.0 + x_8) : (2.0 + x_10)) : ((14.0 + x_11) > ((8.0 + x_12) > (17.0 + x_14)? (8.0 + x_12) : (17.0 + x_14))? (14.0 + x_11) : ((8.0 + x_12) > (17.0 + x_14)? (8.0 + x_12) : (17.0 + x_14))))? (((20.0 + x_0) > (2.0 + x_4)? (20.0 + x_0) : (2.0 + x_4)) > ((2.0 + x_5) > (19.0 + x_6)? (2.0 + x_5) : (19.0 + x_6))? ((20.0 + x_0) > (2.0 + x_4)? (20.0 + x_0) : (2.0 + x_4)) : ((2.0 + x_5) > (19.0 + x_6)? (2.0 + x_5) : (19.0 + x_6))) : (((7.0 + x_8) > (2.0 + x_10)? (7.0 + x_8) : (2.0 + x_10)) > ((14.0 + x_11) > ((8.0 + x_12) > (17.0 + x_14)? (8.0 + x_12) : (17.0 + x_14))? (14.0 + x_11) : ((8.0 + x_12) > (17.0 + x_14)? (8.0 + x_12) : (17.0 + x_14)))? ((7.0 + x_8) > (2.0 + x_10)? (7.0 + x_8) : (2.0 + x_10)) : ((14.0 + x_11) > ((8.0 + x_12) > (17.0 + x_14)? (8.0 + x_12) : (17.0 + x_14))? (14.0 + x_11) : ((8.0 + x_12) > (17.0 + x_14)? (8.0 + x_12) : (17.0 + x_14))))) > ((((4.0 + x_16) > (6.0 + x_17)? (4.0 + x_16) : (6.0 + x_17)) > ((9.0 + x_18) > (18.0 + x_22)? (9.0 + x_18) : (18.0 + x_22))? ((4.0 + x_16) > (6.0 + x_17)? (4.0 + x_16) : (6.0 + x_17)) : ((9.0 + x_18) > (18.0 + x_22)? (9.0 + x_18) : (18.0 + x_22))) > (((8.0 + x_23) > (6.0 + x_28)? (8.0 + x_23) : (6.0 + x_28)) > ((2.0 + x_30) > ((2.0 + x_31) > (1.0 + x_35)? (2.0 + x_31) : (1.0 + x_35))? (2.0 + x_30) : ((2.0 + x_31) > (1.0 + x_35)? (2.0 + x_31) : (1.0 + x_35)))? ((8.0 + x_23) > (6.0 + x_28)? (8.0 + x_23) : (6.0 + x_28)) : ((2.0 + x_30) > ((2.0 + x_31) > (1.0 + x_35)? (2.0 + x_31) : (1.0 + x_35))? (2.0 + x_30) : ((2.0 + x_31) > (1.0 + x_35)? (2.0 + x_31) : (1.0 + x_35))))? (((4.0 + x_16) > (6.0 + x_17)? (4.0 + x_16) : (6.0 + x_17)) > ((9.0 + x_18) > (18.0 + x_22)? (9.0 + x_18) : (18.0 + x_22))? ((4.0 + x_16) > (6.0 + x_17)? (4.0 + x_16) : (6.0 + x_17)) : ((9.0 + x_18) > (18.0 + x_22)? (9.0 + x_18) : (18.0 + x_22))) : (((8.0 + x_23) > (6.0 + x_28)? (8.0 + x_23) : (6.0 + x_28)) > ((2.0 + x_30) > ((2.0 + x_31) > (1.0 + x_35)? (2.0 + x_31) : (1.0 + x_35))? (2.0 + x_30) : ((2.0 + x_31) > (1.0 + x_35)? (2.0 + x_31) : (1.0 + x_35)))? ((8.0 + x_23) > (6.0 + x_28)? (8.0 + x_23) : (6.0 + x_28)) : ((2.0 + x_30) > ((2.0 + x_31) > (1.0 + x_35)? (2.0 + x_31) : (1.0 + x_35))? (2.0 + x_30) : ((2.0 + x_31) > (1.0 + x_35)? (2.0 + x_31) : (1.0 + x_35)))))? ((((20.0 + x_0) > (2.0 + x_4)? (20.0 + x_0) : (2.0 + x_4)) > ((2.0 + x_5) > (19.0 + x_6)? (2.0 + x_5) : (19.0 + x_6))? ((20.0 + x_0) > (2.0 + x_4)? (20.0 + x_0) : (2.0 + x_4)) : ((2.0 + x_5) > (19.0 + x_6)? (2.0 + x_5) : (19.0 + x_6))) > (((7.0 + x_8) > (2.0 + x_10)? (7.0 + x_8) : (2.0 + x_10)) > ((14.0 + x_11) > ((8.0 + x_12) > (17.0 + x_14)? (8.0 + x_12) : (17.0 + x_14))? (14.0 + x_11) : ((8.0 + x_12) > (17.0 + x_14)? (8.0 + x_12) : (17.0 + x_14)))? ((7.0 + x_8) > (2.0 + x_10)? (7.0 + x_8) : (2.0 + x_10)) : ((14.0 + x_11) > ((8.0 + x_12) > (17.0 + x_14)? (8.0 + x_12) : (17.0 + x_14))? (14.0 + x_11) : ((8.0 + x_12) > (17.0 + x_14)? (8.0 + x_12) : (17.0 + x_14))))? (((20.0 + x_0) > (2.0 + x_4)? (20.0 + x_0) : (2.0 + x_4)) > ((2.0 + x_5) > (19.0 + x_6)? (2.0 + x_5) : (19.0 + x_6))? ((20.0 + x_0) > (2.0 + x_4)? (20.0 + x_0) : (2.0 + x_4)) : ((2.0 + x_5) > (19.0 + x_6)? (2.0 + x_5) : (19.0 + x_6))) : (((7.0 + x_8) > (2.0 + x_10)? (7.0 + x_8) : (2.0 + x_10)) > ((14.0 + x_11) > ((8.0 + x_12) > (17.0 + x_14)? (8.0 + x_12) : (17.0 + x_14))? (14.0 + x_11) : ((8.0 + x_12) > (17.0 + x_14)? (8.0 + x_12) : (17.0 + x_14)))? ((7.0 + x_8) > (2.0 + x_10)? (7.0 + x_8) : (2.0 + x_10)) : ((14.0 + x_11) > ((8.0 + x_12) > (17.0 + x_14)? (8.0 + x_12) : (17.0 + x_14))? (14.0 + x_11) : ((8.0 + x_12) > (17.0 + x_14)? (8.0 + x_12) : (17.0 + x_14))))) : ((((4.0 + x_16) > (6.0 + x_17)? (4.0 + x_16) : (6.0 + x_17)) > ((9.0 + x_18) > (18.0 + x_22)? (9.0 + x_18) : (18.0 + x_22))? ((4.0 + x_16) > (6.0 + x_17)? (4.0 + x_16) : (6.0 + x_17)) : ((9.0 + x_18) > (18.0 + x_22)? (9.0 + x_18) : (18.0 + x_22))) > (((8.0 + x_23) > (6.0 + x_28)? (8.0 + x_23) : (6.0 + x_28)) > ((2.0 + x_30) > ((2.0 + x_31) > (1.0 + x_35)? (2.0 + x_31) : (1.0 + x_35))? (2.0 + x_30) : ((2.0 + x_31) > (1.0 + x_35)? (2.0 + x_31) : (1.0 + x_35)))? ((8.0 + x_23) > (6.0 + x_28)? (8.0 + x_23) : (6.0 + x_28)) : ((2.0 + x_30) > ((2.0 + x_31) > (1.0 + x_35)? (2.0 + x_31) : (1.0 + x_35))? (2.0 + x_30) : ((2.0 + x_31) > (1.0 + x_35)? (2.0 + x_31) : (1.0 + x_35))))? (((4.0 + x_16) > (6.0 + x_17)? (4.0 + x_16) : (6.0 + x_17)) > ((9.0 + x_18) > (18.0 + x_22)? (9.0 + x_18) : (18.0 + x_22))? ((4.0 + x_16) > (6.0 + x_17)? (4.0 + x_16) : (6.0 + x_17)) : ((9.0 + x_18) > (18.0 + x_22)? (9.0 + x_18) : (18.0 + x_22))) : (((8.0 + x_23) > (6.0 + x_28)? (8.0 + x_23) : (6.0 + x_28)) > ((2.0 + x_30) > ((2.0 + x_31) > (1.0 + x_35)? (2.0 + x_31) : (1.0 + x_35))? (2.0 + x_30) : ((2.0 + x_31) > (1.0 + x_35)? (2.0 + x_31) : (1.0 + x_35)))? ((8.0 + x_23) > (6.0 + x_28)? (8.0 + x_23) : (6.0 + x_28)) : ((2.0 + x_30) > ((2.0 + x_31) > (1.0 + x_35)? (2.0 + x_31) : (1.0 + x_35))? (2.0 + x_30) : ((2.0 + x_31) > (1.0 + x_35)? (2.0 + x_31) : (1.0 + x_35))))));
x_8_ = (((((17.0 + x_0) > (4.0 + x_1)? (17.0 + x_0) : (4.0 + x_1)) > ((9.0 + x_2) > (3.0 + x_3)? (9.0 + x_2) : (3.0 + x_3))? ((17.0 + x_0) > (4.0 + x_1)? (17.0 + x_0) : (4.0 + x_1)) : ((9.0 + x_2) > (3.0 + x_3)? (9.0 + x_2) : (3.0 + x_3))) > (((8.0 + x_4) > (14.0 + x_5)? (8.0 + x_4) : (14.0 + x_5)) > ((7.0 + x_11) > ((15.0 + x_14) > (3.0 + x_18)? (15.0 + x_14) : (3.0 + x_18))? (7.0 + x_11) : ((15.0 + x_14) > (3.0 + x_18)? (15.0 + x_14) : (3.0 + x_18)))? ((8.0 + x_4) > (14.0 + x_5)? (8.0 + x_4) : (14.0 + x_5)) : ((7.0 + x_11) > ((15.0 + x_14) > (3.0 + x_18)? (15.0 + x_14) : (3.0 + x_18))? (7.0 + x_11) : ((15.0 + x_14) > (3.0 + x_18)? (15.0 + x_14) : (3.0 + x_18))))? (((17.0 + x_0) > (4.0 + x_1)? (17.0 + x_0) : (4.0 + x_1)) > ((9.0 + x_2) > (3.0 + x_3)? (9.0 + x_2) : (3.0 + x_3))? ((17.0 + x_0) > (4.0 + x_1)? (17.0 + x_0) : (4.0 + x_1)) : ((9.0 + x_2) > (3.0 + x_3)? (9.0 + x_2) : (3.0 + x_3))) : (((8.0 + x_4) > (14.0 + x_5)? (8.0 + x_4) : (14.0 + x_5)) > ((7.0 + x_11) > ((15.0 + x_14) > (3.0 + x_18)? (15.0 + x_14) : (3.0 + x_18))? (7.0 + x_11) : ((15.0 + x_14) > (3.0 + x_18)? (15.0 + x_14) : (3.0 + x_18)))? ((8.0 + x_4) > (14.0 + x_5)? (8.0 + x_4) : (14.0 + x_5)) : ((7.0 + x_11) > ((15.0 + x_14) > (3.0 + x_18)? (15.0 + x_14) : (3.0 + x_18))? (7.0 + x_11) : ((15.0 + x_14) > (3.0 + x_18)? (15.0 + x_14) : (3.0 + x_18))))) > ((((16.0 + x_19) > (4.0 + x_20)? (16.0 + x_19) : (4.0 + x_20)) > ((14.0 + x_21) > (20.0 + x_25)? (14.0 + x_21) : (20.0 + x_25))? ((16.0 + x_19) > (4.0 + x_20)? (16.0 + x_19) : (4.0 + x_20)) : ((14.0 + x_21) > (20.0 + x_25)? (14.0 + x_21) : (20.0 + x_25))) > (((16.0 + x_27) > (14.0 + x_29)? (16.0 + x_27) : (14.0 + x_29)) > ((10.0 + x_31) > ((4.0 + x_34) > (2.0 + x_35)? (4.0 + x_34) : (2.0 + x_35))? (10.0 + x_31) : ((4.0 + x_34) > (2.0 + x_35)? (4.0 + x_34) : (2.0 + x_35)))? ((16.0 + x_27) > (14.0 + x_29)? (16.0 + x_27) : (14.0 + x_29)) : ((10.0 + x_31) > ((4.0 + x_34) > (2.0 + x_35)? (4.0 + x_34) : (2.0 + x_35))? (10.0 + x_31) : ((4.0 + x_34) > (2.0 + x_35)? (4.0 + x_34) : (2.0 + x_35))))? (((16.0 + x_19) > (4.0 + x_20)? (16.0 + x_19) : (4.0 + x_20)) > ((14.0 + x_21) > (20.0 + x_25)? (14.0 + x_21) : (20.0 + x_25))? ((16.0 + x_19) > (4.0 + x_20)? (16.0 + x_19) : (4.0 + x_20)) : ((14.0 + x_21) > (20.0 + x_25)? (14.0 + x_21) : (20.0 + x_25))) : (((16.0 + x_27) > (14.0 + x_29)? (16.0 + x_27) : (14.0 + x_29)) > ((10.0 + x_31) > ((4.0 + x_34) > (2.0 + x_35)? (4.0 + x_34) : (2.0 + x_35))? (10.0 + x_31) : ((4.0 + x_34) > (2.0 + x_35)? (4.0 + x_34) : (2.0 + x_35)))? ((16.0 + x_27) > (14.0 + x_29)? (16.0 + x_27) : (14.0 + x_29)) : ((10.0 + x_31) > ((4.0 + x_34) > (2.0 + x_35)? (4.0 + x_34) : (2.0 + x_35))? (10.0 + x_31) : ((4.0 + x_34) > (2.0 + x_35)? (4.0 + x_34) : (2.0 + x_35)))))? ((((17.0 + x_0) > (4.0 + x_1)? (17.0 + x_0) : (4.0 + x_1)) > ((9.0 + x_2) > (3.0 + x_3)? (9.0 + x_2) : (3.0 + x_3))? ((17.0 + x_0) > (4.0 + x_1)? (17.0 + x_0) : (4.0 + x_1)) : ((9.0 + x_2) > (3.0 + x_3)? (9.0 + x_2) : (3.0 + x_3))) > (((8.0 + x_4) > (14.0 + x_5)? (8.0 + x_4) : (14.0 + x_5)) > ((7.0 + x_11) > ((15.0 + x_14) > (3.0 + x_18)? (15.0 + x_14) : (3.0 + x_18))? (7.0 + x_11) : ((15.0 + x_14) > (3.0 + x_18)? (15.0 + x_14) : (3.0 + x_18)))? ((8.0 + x_4) > (14.0 + x_5)? (8.0 + x_4) : (14.0 + x_5)) : ((7.0 + x_11) > ((15.0 + x_14) > (3.0 + x_18)? (15.0 + x_14) : (3.0 + x_18))? (7.0 + x_11) : ((15.0 + x_14) > (3.0 + x_18)? (15.0 + x_14) : (3.0 + x_18))))? (((17.0 + x_0) > (4.0 + x_1)? (17.0 + x_0) : (4.0 + x_1)) > ((9.0 + x_2) > (3.0 + x_3)? (9.0 + x_2) : (3.0 + x_3))? ((17.0 + x_0) > (4.0 + x_1)? (17.0 + x_0) : (4.0 + x_1)) : ((9.0 + x_2) > (3.0 + x_3)? (9.0 + x_2) : (3.0 + x_3))) : (((8.0 + x_4) > (14.0 + x_5)? (8.0 + x_4) : (14.0 + x_5)) > ((7.0 + x_11) > ((15.0 + x_14) > (3.0 + x_18)? (15.0 + x_14) : (3.0 + x_18))? (7.0 + x_11) : ((15.0 + x_14) > (3.0 + x_18)? (15.0 + x_14) : (3.0 + x_18)))? ((8.0 + x_4) > (14.0 + x_5)? (8.0 + x_4) : (14.0 + x_5)) : ((7.0 + x_11) > ((15.0 + x_14) > (3.0 + x_18)? (15.0 + x_14) : (3.0 + x_18))? (7.0 + x_11) : ((15.0 + x_14) > (3.0 + x_18)? (15.0 + x_14) : (3.0 + x_18))))) : ((((16.0 + x_19) > (4.0 + x_20)? (16.0 + x_19) : (4.0 + x_20)) > ((14.0 + x_21) > (20.0 + x_25)? (14.0 + x_21) : (20.0 + x_25))? ((16.0 + x_19) > (4.0 + x_20)? (16.0 + x_19) : (4.0 + x_20)) : ((14.0 + x_21) > (20.0 + x_25)? (14.0 + x_21) : (20.0 + x_25))) > (((16.0 + x_27) > (14.0 + x_29)? (16.0 + x_27) : (14.0 + x_29)) > ((10.0 + x_31) > ((4.0 + x_34) > (2.0 + x_35)? (4.0 + x_34) : (2.0 + x_35))? (10.0 + x_31) : ((4.0 + x_34) > (2.0 + x_35)? (4.0 + x_34) : (2.0 + x_35)))? ((16.0 + x_27) > (14.0 + x_29)? (16.0 + x_27) : (14.0 + x_29)) : ((10.0 + x_31) > ((4.0 + x_34) > (2.0 + x_35)? (4.0 + x_34) : (2.0 + x_35))? (10.0 + x_31) : ((4.0 + x_34) > (2.0 + x_35)? (4.0 + x_34) : (2.0 + x_35))))? (((16.0 + x_19) > (4.0 + x_20)? (16.0 + x_19) : (4.0 + x_20)) > ((14.0 + x_21) > (20.0 + x_25)? (14.0 + x_21) : (20.0 + x_25))? ((16.0 + x_19) > (4.0 + x_20)? (16.0 + x_19) : (4.0 + x_20)) : ((14.0 + x_21) > (20.0 + x_25)? (14.0 + x_21) : (20.0 + x_25))) : (((16.0 + x_27) > (14.0 + x_29)? (16.0 + x_27) : (14.0 + x_29)) > ((10.0 + x_31) > ((4.0 + x_34) > (2.0 + x_35)? (4.0 + x_34) : (2.0 + x_35))? (10.0 + x_31) : ((4.0 + x_34) > (2.0 + x_35)? (4.0 + x_34) : (2.0 + x_35)))? ((16.0 + x_27) > (14.0 + x_29)? (16.0 + x_27) : (14.0 + x_29)) : ((10.0 + x_31) > ((4.0 + x_34) > (2.0 + x_35)? (4.0 + x_34) : (2.0 + x_35))? (10.0 + x_31) : ((4.0 + x_34) > (2.0 + x_35)? (4.0 + x_34) : (2.0 + x_35))))));
x_9_ = (((((5.0 + x_0) > (1.0 + x_1)? (5.0 + x_0) : (1.0 + x_1)) > ((7.0 + x_3) > (18.0 + x_5)? (7.0 + x_3) : (18.0 + x_5))? ((5.0 + x_0) > (1.0 + x_1)? (5.0 + x_0) : (1.0 + x_1)) : ((7.0 + x_3) > (18.0 + x_5)? (7.0 + x_3) : (18.0 + x_5))) > (((12.0 + x_6) > (8.0 + x_7)? (12.0 + x_6) : (8.0 + x_7)) > ((9.0 + x_9) > ((10.0 + x_11) > (17.0 + x_12)? (10.0 + x_11) : (17.0 + x_12))? (9.0 + x_9) : ((10.0 + x_11) > (17.0 + x_12)? (10.0 + x_11) : (17.0 + x_12)))? ((12.0 + x_6) > (8.0 + x_7)? (12.0 + x_6) : (8.0 + x_7)) : ((9.0 + x_9) > ((10.0 + x_11) > (17.0 + x_12)? (10.0 + x_11) : (17.0 + x_12))? (9.0 + x_9) : ((10.0 + x_11) > (17.0 + x_12)? (10.0 + x_11) : (17.0 + x_12))))? (((5.0 + x_0) > (1.0 + x_1)? (5.0 + x_0) : (1.0 + x_1)) > ((7.0 + x_3) > (18.0 + x_5)? (7.0 + x_3) : (18.0 + x_5))? ((5.0 + x_0) > (1.0 + x_1)? (5.0 + x_0) : (1.0 + x_1)) : ((7.0 + x_3) > (18.0 + x_5)? (7.0 + x_3) : (18.0 + x_5))) : (((12.0 + x_6) > (8.0 + x_7)? (12.0 + x_6) : (8.0 + x_7)) > ((9.0 + x_9) > ((10.0 + x_11) > (17.0 + x_12)? (10.0 + x_11) : (17.0 + x_12))? (9.0 + x_9) : ((10.0 + x_11) > (17.0 + x_12)? (10.0 + x_11) : (17.0 + x_12)))? ((12.0 + x_6) > (8.0 + x_7)? (12.0 + x_6) : (8.0 + x_7)) : ((9.0 + x_9) > ((10.0 + x_11) > (17.0 + x_12)? (10.0 + x_11) : (17.0 + x_12))? (9.0 + x_9) : ((10.0 + x_11) > (17.0 + x_12)? (10.0 + x_11) : (17.0 + x_12))))) > ((((9.0 + x_16) > (8.0 + x_18)? (9.0 + x_16) : (8.0 + x_18)) > ((17.0 + x_23) > (1.0 + x_25)? (17.0 + x_23) : (1.0 + x_25))? ((9.0 + x_16) > (8.0 + x_18)? (9.0 + x_16) : (8.0 + x_18)) : ((17.0 + x_23) > (1.0 + x_25)? (17.0 + x_23) : (1.0 + x_25))) > (((9.0 + x_27) > (12.0 + x_28)? (9.0 + x_27) : (12.0 + x_28)) > ((6.0 + x_29) > ((16.0 + x_30) > (18.0 + x_31)? (16.0 + x_30) : (18.0 + x_31))? (6.0 + x_29) : ((16.0 + x_30) > (18.0 + x_31)? (16.0 + x_30) : (18.0 + x_31)))? ((9.0 + x_27) > (12.0 + x_28)? (9.0 + x_27) : (12.0 + x_28)) : ((6.0 + x_29) > ((16.0 + x_30) > (18.0 + x_31)? (16.0 + x_30) : (18.0 + x_31))? (6.0 + x_29) : ((16.0 + x_30) > (18.0 + x_31)? (16.0 + x_30) : (18.0 + x_31))))? (((9.0 + x_16) > (8.0 + x_18)? (9.0 + x_16) : (8.0 + x_18)) > ((17.0 + x_23) > (1.0 + x_25)? (17.0 + x_23) : (1.0 + x_25))? ((9.0 + x_16) > (8.0 + x_18)? (9.0 + x_16) : (8.0 + x_18)) : ((17.0 + x_23) > (1.0 + x_25)? (17.0 + x_23) : (1.0 + x_25))) : (((9.0 + x_27) > (12.0 + x_28)? (9.0 + x_27) : (12.0 + x_28)) > ((6.0 + x_29) > ((16.0 + x_30) > (18.0 + x_31)? (16.0 + x_30) : (18.0 + x_31))? (6.0 + x_29) : ((16.0 + x_30) > (18.0 + x_31)? (16.0 + x_30) : (18.0 + x_31)))? ((9.0 + x_27) > (12.0 + x_28)? (9.0 + x_27) : (12.0 + x_28)) : ((6.0 + x_29) > ((16.0 + x_30) > (18.0 + x_31)? (16.0 + x_30) : (18.0 + x_31))? (6.0 + x_29) : ((16.0 + x_30) > (18.0 + x_31)? (16.0 + x_30) : (18.0 + x_31)))))? ((((5.0 + x_0) > (1.0 + x_1)? (5.0 + x_0) : (1.0 + x_1)) > ((7.0 + x_3) > (18.0 + x_5)? (7.0 + x_3) : (18.0 + x_5))? ((5.0 + x_0) > (1.0 + x_1)? (5.0 + x_0) : (1.0 + x_1)) : ((7.0 + x_3) > (18.0 + x_5)? (7.0 + x_3) : (18.0 + x_5))) > (((12.0 + x_6) > (8.0 + x_7)? (12.0 + x_6) : (8.0 + x_7)) > ((9.0 + x_9) > ((10.0 + x_11) > (17.0 + x_12)? (10.0 + x_11) : (17.0 + x_12))? (9.0 + x_9) : ((10.0 + x_11) > (17.0 + x_12)? (10.0 + x_11) : (17.0 + x_12)))? ((12.0 + x_6) > (8.0 + x_7)? (12.0 + x_6) : (8.0 + x_7)) : ((9.0 + x_9) > ((10.0 + x_11) > (17.0 + x_12)? (10.0 + x_11) : (17.0 + x_12))? (9.0 + x_9) : ((10.0 + x_11) > (17.0 + x_12)? (10.0 + x_11) : (17.0 + x_12))))? (((5.0 + x_0) > (1.0 + x_1)? (5.0 + x_0) : (1.0 + x_1)) > ((7.0 + x_3) > (18.0 + x_5)? (7.0 + x_3) : (18.0 + x_5))? ((5.0 + x_0) > (1.0 + x_1)? (5.0 + x_0) : (1.0 + x_1)) : ((7.0 + x_3) > (18.0 + x_5)? (7.0 + x_3) : (18.0 + x_5))) : (((12.0 + x_6) > (8.0 + x_7)? (12.0 + x_6) : (8.0 + x_7)) > ((9.0 + x_9) > ((10.0 + x_11) > (17.0 + x_12)? (10.0 + x_11) : (17.0 + x_12))? (9.0 + x_9) : ((10.0 + x_11) > (17.0 + x_12)? (10.0 + x_11) : (17.0 + x_12)))? ((12.0 + x_6) > (8.0 + x_7)? (12.0 + x_6) : (8.0 + x_7)) : ((9.0 + x_9) > ((10.0 + x_11) > (17.0 + x_12)? (10.0 + x_11) : (17.0 + x_12))? (9.0 + x_9) : ((10.0 + x_11) > (17.0 + x_12)? (10.0 + x_11) : (17.0 + x_12))))) : ((((9.0 + x_16) > (8.0 + x_18)? (9.0 + x_16) : (8.0 + x_18)) > ((17.0 + x_23) > (1.0 + x_25)? (17.0 + x_23) : (1.0 + x_25))? ((9.0 + x_16) > (8.0 + x_18)? (9.0 + x_16) : (8.0 + x_18)) : ((17.0 + x_23) > (1.0 + x_25)? (17.0 + x_23) : (1.0 + x_25))) > (((9.0 + x_27) > (12.0 + x_28)? (9.0 + x_27) : (12.0 + x_28)) > ((6.0 + x_29) > ((16.0 + x_30) > (18.0 + x_31)? (16.0 + x_30) : (18.0 + x_31))? (6.0 + x_29) : ((16.0 + x_30) > (18.0 + x_31)? (16.0 + x_30) : (18.0 + x_31)))? ((9.0 + x_27) > (12.0 + x_28)? (9.0 + x_27) : (12.0 + x_28)) : ((6.0 + x_29) > ((16.0 + x_30) > (18.0 + x_31)? (16.0 + x_30) : (18.0 + x_31))? (6.0 + x_29) : ((16.0 + x_30) > (18.0 + x_31)? (16.0 + x_30) : (18.0 + x_31))))? (((9.0 + x_16) > (8.0 + x_18)? (9.0 + x_16) : (8.0 + x_18)) > ((17.0 + x_23) > (1.0 + x_25)? (17.0 + x_23) : (1.0 + x_25))? ((9.0 + x_16) > (8.0 + x_18)? (9.0 + x_16) : (8.0 + x_18)) : ((17.0 + x_23) > (1.0 + x_25)? (17.0 + x_23) : (1.0 + x_25))) : (((9.0 + x_27) > (12.0 + x_28)? (9.0 + x_27) : (12.0 + x_28)) > ((6.0 + x_29) > ((16.0 + x_30) > (18.0 + x_31)? (16.0 + x_30) : (18.0 + x_31))? (6.0 + x_29) : ((16.0 + x_30) > (18.0 + x_31)? (16.0 + x_30) : (18.0 + x_31)))? ((9.0 + x_27) > (12.0 + x_28)? (9.0 + x_27) : (12.0 + x_28)) : ((6.0 + x_29) > ((16.0 + x_30) > (18.0 + x_31)? (16.0 + x_30) : (18.0 + x_31))? (6.0 + x_29) : ((16.0 + x_30) > (18.0 + x_31)? (16.0 + x_30) : (18.0 + x_31))))));
x_10_ = (((((14.0 + x_0) > (1.0 + x_2)? (14.0 + x_0) : (1.0 + x_2)) > ((19.0 + x_3) > (10.0 + x_4)? (19.0 + x_3) : (10.0 + x_4))? ((14.0 + x_0) > (1.0 + x_2)? (14.0 + x_0) : (1.0 + x_2)) : ((19.0 + x_3) > (10.0 + x_4)? (19.0 + x_3) : (10.0 + x_4))) > (((8.0 + x_5) > (2.0 + x_7)? (8.0 + x_5) : (2.0 + x_7)) > ((14.0 + x_9) > ((18.0 + x_13) > (3.0 + x_14)? (18.0 + x_13) : (3.0 + x_14))? (14.0 + x_9) : ((18.0 + x_13) > (3.0 + x_14)? (18.0 + x_13) : (3.0 + x_14)))? ((8.0 + x_5) > (2.0 + x_7)? (8.0 + x_5) : (2.0 + x_7)) : ((14.0 + x_9) > ((18.0 + x_13) > (3.0 + x_14)? (18.0 + x_13) : (3.0 + x_14))? (14.0 + x_9) : ((18.0 + x_13) > (3.0 + x_14)? (18.0 + x_13) : (3.0 + x_14))))? (((14.0 + x_0) > (1.0 + x_2)? (14.0 + x_0) : (1.0 + x_2)) > ((19.0 + x_3) > (10.0 + x_4)? (19.0 + x_3) : (10.0 + x_4))? ((14.0 + x_0) > (1.0 + x_2)? (14.0 + x_0) : (1.0 + x_2)) : ((19.0 + x_3) > (10.0 + x_4)? (19.0 + x_3) : (10.0 + x_4))) : (((8.0 + x_5) > (2.0 + x_7)? (8.0 + x_5) : (2.0 + x_7)) > ((14.0 + x_9) > ((18.0 + x_13) > (3.0 + x_14)? (18.0 + x_13) : (3.0 + x_14))? (14.0 + x_9) : ((18.0 + x_13) > (3.0 + x_14)? (18.0 + x_13) : (3.0 + x_14)))? ((8.0 + x_5) > (2.0 + x_7)? (8.0 + x_5) : (2.0 + x_7)) : ((14.0 + x_9) > ((18.0 + x_13) > (3.0 + x_14)? (18.0 + x_13) : (3.0 + x_14))? (14.0 + x_9) : ((18.0 + x_13) > (3.0 + x_14)? (18.0 + x_13) : (3.0 + x_14))))) > ((((17.0 + x_17) > (16.0 + x_19)? (17.0 + x_17) : (16.0 + x_19)) > ((20.0 + x_20) > (4.0 + x_21)? (20.0 + x_20) : (4.0 + x_21))? ((17.0 + x_17) > (16.0 + x_19)? (17.0 + x_17) : (16.0 + x_19)) : ((20.0 + x_20) > (4.0 + x_21)? (20.0 + x_20) : (4.0 + x_21))) > (((15.0 + x_23) > (4.0 + x_24)? (15.0 + x_23) : (4.0 + x_24)) > ((4.0 + x_26) > ((10.0 + x_31) > (14.0 + x_34)? (10.0 + x_31) : (14.0 + x_34))? (4.0 + x_26) : ((10.0 + x_31) > (14.0 + x_34)? (10.0 + x_31) : (14.0 + x_34)))? ((15.0 + x_23) > (4.0 + x_24)? (15.0 + x_23) : (4.0 + x_24)) : ((4.0 + x_26) > ((10.0 + x_31) > (14.0 + x_34)? (10.0 + x_31) : (14.0 + x_34))? (4.0 + x_26) : ((10.0 + x_31) > (14.0 + x_34)? (10.0 + x_31) : (14.0 + x_34))))? (((17.0 + x_17) > (16.0 + x_19)? (17.0 + x_17) : (16.0 + x_19)) > ((20.0 + x_20) > (4.0 + x_21)? (20.0 + x_20) : (4.0 + x_21))? ((17.0 + x_17) > (16.0 + x_19)? (17.0 + x_17) : (16.0 + x_19)) : ((20.0 + x_20) > (4.0 + x_21)? (20.0 + x_20) : (4.0 + x_21))) : (((15.0 + x_23) > (4.0 + x_24)? (15.0 + x_23) : (4.0 + x_24)) > ((4.0 + x_26) > ((10.0 + x_31) > (14.0 + x_34)? (10.0 + x_31) : (14.0 + x_34))? (4.0 + x_26) : ((10.0 + x_31) > (14.0 + x_34)? (10.0 + x_31) : (14.0 + x_34)))? ((15.0 + x_23) > (4.0 + x_24)? (15.0 + x_23) : (4.0 + x_24)) : ((4.0 + x_26) > ((10.0 + x_31) > (14.0 + x_34)? (10.0 + x_31) : (14.0 + x_34))? (4.0 + x_26) : ((10.0 + x_31) > (14.0 + x_34)? (10.0 + x_31) : (14.0 + x_34)))))? ((((14.0 + x_0) > (1.0 + x_2)? (14.0 + x_0) : (1.0 + x_2)) > ((19.0 + x_3) > (10.0 + x_4)? (19.0 + x_3) : (10.0 + x_4))? ((14.0 + x_0) > (1.0 + x_2)? (14.0 + x_0) : (1.0 + x_2)) : ((19.0 + x_3) > (10.0 + x_4)? (19.0 + x_3) : (10.0 + x_4))) > (((8.0 + x_5) > (2.0 + x_7)? (8.0 + x_5) : (2.0 + x_7)) > ((14.0 + x_9) > ((18.0 + x_13) > (3.0 + x_14)? (18.0 + x_13) : (3.0 + x_14))? (14.0 + x_9) : ((18.0 + x_13) > (3.0 + x_14)? (18.0 + x_13) : (3.0 + x_14)))? ((8.0 + x_5) > (2.0 + x_7)? (8.0 + x_5) : (2.0 + x_7)) : ((14.0 + x_9) > ((18.0 + x_13) > (3.0 + x_14)? (18.0 + x_13) : (3.0 + x_14))? (14.0 + x_9) : ((18.0 + x_13) > (3.0 + x_14)? (18.0 + x_13) : (3.0 + x_14))))? (((14.0 + x_0) > (1.0 + x_2)? (14.0 + x_0) : (1.0 + x_2)) > ((19.0 + x_3) > (10.0 + x_4)? (19.0 + x_3) : (10.0 + x_4))? ((14.0 + x_0) > (1.0 + x_2)? (14.0 + x_0) : (1.0 + x_2)) : ((19.0 + x_3) > (10.0 + x_4)? (19.0 + x_3) : (10.0 + x_4))) : (((8.0 + x_5) > (2.0 + x_7)? (8.0 + x_5) : (2.0 + x_7)) > ((14.0 + x_9) > ((18.0 + x_13) > (3.0 + x_14)? (18.0 + x_13) : (3.0 + x_14))? (14.0 + x_9) : ((18.0 + x_13) > (3.0 + x_14)? (18.0 + x_13) : (3.0 + x_14)))? ((8.0 + x_5) > (2.0 + x_7)? (8.0 + x_5) : (2.0 + x_7)) : ((14.0 + x_9) > ((18.0 + x_13) > (3.0 + x_14)? (18.0 + x_13) : (3.0 + x_14))? (14.0 + x_9) : ((18.0 + x_13) > (3.0 + x_14)? (18.0 + x_13) : (3.0 + x_14))))) : ((((17.0 + x_17) > (16.0 + x_19)? (17.0 + x_17) : (16.0 + x_19)) > ((20.0 + x_20) > (4.0 + x_21)? (20.0 + x_20) : (4.0 + x_21))? ((17.0 + x_17) > (16.0 + x_19)? (17.0 + x_17) : (16.0 + x_19)) : ((20.0 + x_20) > (4.0 + x_21)? (20.0 + x_20) : (4.0 + x_21))) > (((15.0 + x_23) > (4.0 + x_24)? (15.0 + x_23) : (4.0 + x_24)) > ((4.0 + x_26) > ((10.0 + x_31) > (14.0 + x_34)? (10.0 + x_31) : (14.0 + x_34))? (4.0 + x_26) : ((10.0 + x_31) > (14.0 + x_34)? (10.0 + x_31) : (14.0 + x_34)))? ((15.0 + x_23) > (4.0 + x_24)? (15.0 + x_23) : (4.0 + x_24)) : ((4.0 + x_26) > ((10.0 + x_31) > (14.0 + x_34)? (10.0 + x_31) : (14.0 + x_34))? (4.0 + x_26) : ((10.0 + x_31) > (14.0 + x_34)? (10.0 + x_31) : (14.0 + x_34))))? (((17.0 + x_17) > (16.0 + x_19)? (17.0 + x_17) : (16.0 + x_19)) > ((20.0 + x_20) > (4.0 + x_21)? (20.0 + x_20) : (4.0 + x_21))? ((17.0 + x_17) > (16.0 + x_19)? (17.0 + x_17) : (16.0 + x_19)) : ((20.0 + x_20) > (4.0 + x_21)? (20.0 + x_20) : (4.0 + x_21))) : (((15.0 + x_23) > (4.0 + x_24)? (15.0 + x_23) : (4.0 + x_24)) > ((4.0 + x_26) > ((10.0 + x_31) > (14.0 + x_34)? (10.0 + x_31) : (14.0 + x_34))? (4.0 + x_26) : ((10.0 + x_31) > (14.0 + x_34)? (10.0 + x_31) : (14.0 + x_34)))? ((15.0 + x_23) > (4.0 + x_24)? (15.0 + x_23) : (4.0 + x_24)) : ((4.0 + x_26) > ((10.0 + x_31) > (14.0 + x_34)? (10.0 + x_31) : (14.0 + x_34))? (4.0 + x_26) : ((10.0 + x_31) > (14.0 + x_34)? (10.0 + x_31) : (14.0 + x_34))))));
x_11_ = (((((15.0 + x_0) > (20.0 + x_1)? (15.0 + x_0) : (20.0 + x_1)) > ((10.0 + x_3) > (2.0 + x_5)? (10.0 + x_3) : (2.0 + x_5))? ((15.0 + x_0) > (20.0 + x_1)? (15.0 + x_0) : (20.0 + x_1)) : ((10.0 + x_3) > (2.0 + x_5)? (10.0 + x_3) : (2.0 + x_5))) > (((20.0 + x_8) > (4.0 + x_9)? (20.0 + x_8) : (4.0 + x_9)) > ((1.0 + x_11) > ((11.0 + x_13) > (4.0 + x_14)? (11.0 + x_13) : (4.0 + x_14))? (1.0 + x_11) : ((11.0 + x_13) > (4.0 + x_14)? (11.0 + x_13) : (4.0 + x_14)))? ((20.0 + x_8) > (4.0 + x_9)? (20.0 + x_8) : (4.0 + x_9)) : ((1.0 + x_11) > ((11.0 + x_13) > (4.0 + x_14)? (11.0 + x_13) : (4.0 + x_14))? (1.0 + x_11) : ((11.0 + x_13) > (4.0 + x_14)? (11.0 + x_13) : (4.0 + x_14))))? (((15.0 + x_0) > (20.0 + x_1)? (15.0 + x_0) : (20.0 + x_1)) > ((10.0 + x_3) > (2.0 + x_5)? (10.0 + x_3) : (2.0 + x_5))? ((15.0 + x_0) > (20.0 + x_1)? (15.0 + x_0) : (20.0 + x_1)) : ((10.0 + x_3) > (2.0 + x_5)? (10.0 + x_3) : (2.0 + x_5))) : (((20.0 + x_8) > (4.0 + x_9)? (20.0 + x_8) : (4.0 + x_9)) > ((1.0 + x_11) > ((11.0 + x_13) > (4.0 + x_14)? (11.0 + x_13) : (4.0 + x_14))? (1.0 + x_11) : ((11.0 + x_13) > (4.0 + x_14)? (11.0 + x_13) : (4.0 + x_14)))? ((20.0 + x_8) > (4.0 + x_9)? (20.0 + x_8) : (4.0 + x_9)) : ((1.0 + x_11) > ((11.0 + x_13) > (4.0 + x_14)? (11.0 + x_13) : (4.0 + x_14))? (1.0 + x_11) : ((11.0 + x_13) > (4.0 + x_14)? (11.0 + x_13) : (4.0 + x_14))))) > ((((10.0 + x_16) > (11.0 + x_18)? (10.0 + x_16) : (11.0 + x_18)) > ((17.0 + x_21) > (13.0 + x_22)? (17.0 + x_21) : (13.0 + x_22))? ((10.0 + x_16) > (11.0 + x_18)? (10.0 + x_16) : (11.0 + x_18)) : ((17.0 + x_21) > (13.0 + x_22)? (17.0 + x_21) : (13.0 + x_22))) > (((2.0 + x_23) > (6.0 + x_28)? (2.0 + x_23) : (6.0 + x_28)) > ((14.0 + x_29) > ((5.0 + x_32) > (3.0 + x_35)? (5.0 + x_32) : (3.0 + x_35))? (14.0 + x_29) : ((5.0 + x_32) > (3.0 + x_35)? (5.0 + x_32) : (3.0 + x_35)))? ((2.0 + x_23) > (6.0 + x_28)? (2.0 + x_23) : (6.0 + x_28)) : ((14.0 + x_29) > ((5.0 + x_32) > (3.0 + x_35)? (5.0 + x_32) : (3.0 + x_35))? (14.0 + x_29) : ((5.0 + x_32) > (3.0 + x_35)? (5.0 + x_32) : (3.0 + x_35))))? (((10.0 + x_16) > (11.0 + x_18)? (10.0 + x_16) : (11.0 + x_18)) > ((17.0 + x_21) > (13.0 + x_22)? (17.0 + x_21) : (13.0 + x_22))? ((10.0 + x_16) > (11.0 + x_18)? (10.0 + x_16) : (11.0 + x_18)) : ((17.0 + x_21) > (13.0 + x_22)? (17.0 + x_21) : (13.0 + x_22))) : (((2.0 + x_23) > (6.0 + x_28)? (2.0 + x_23) : (6.0 + x_28)) > ((14.0 + x_29) > ((5.0 + x_32) > (3.0 + x_35)? (5.0 + x_32) : (3.0 + x_35))? (14.0 + x_29) : ((5.0 + x_32) > (3.0 + x_35)? (5.0 + x_32) : (3.0 + x_35)))? ((2.0 + x_23) > (6.0 + x_28)? (2.0 + x_23) : (6.0 + x_28)) : ((14.0 + x_29) > ((5.0 + x_32) > (3.0 + x_35)? (5.0 + x_32) : (3.0 + x_35))? (14.0 + x_29) : ((5.0 + x_32) > (3.0 + x_35)? (5.0 + x_32) : (3.0 + x_35)))))? ((((15.0 + x_0) > (20.0 + x_1)? (15.0 + x_0) : (20.0 + x_1)) > ((10.0 + x_3) > (2.0 + x_5)? (10.0 + x_3) : (2.0 + x_5))? ((15.0 + x_0) > (20.0 + x_1)? (15.0 + x_0) : (20.0 + x_1)) : ((10.0 + x_3) > (2.0 + x_5)? (10.0 + x_3) : (2.0 + x_5))) > (((20.0 + x_8) > (4.0 + x_9)? (20.0 + x_8) : (4.0 + x_9)) > ((1.0 + x_11) > ((11.0 + x_13) > (4.0 + x_14)? (11.0 + x_13) : (4.0 + x_14))? (1.0 + x_11) : ((11.0 + x_13) > (4.0 + x_14)? (11.0 + x_13) : (4.0 + x_14)))? ((20.0 + x_8) > (4.0 + x_9)? (20.0 + x_8) : (4.0 + x_9)) : ((1.0 + x_11) > ((11.0 + x_13) > (4.0 + x_14)? (11.0 + x_13) : (4.0 + x_14))? (1.0 + x_11) : ((11.0 + x_13) > (4.0 + x_14)? (11.0 + x_13) : (4.0 + x_14))))? (((15.0 + x_0) > (20.0 + x_1)? (15.0 + x_0) : (20.0 + x_1)) > ((10.0 + x_3) > (2.0 + x_5)? (10.0 + x_3) : (2.0 + x_5))? ((15.0 + x_0) > (20.0 + x_1)? (15.0 + x_0) : (20.0 + x_1)) : ((10.0 + x_3) > (2.0 + x_5)? (10.0 + x_3) : (2.0 + x_5))) : (((20.0 + x_8) > (4.0 + x_9)? (20.0 + x_8) : (4.0 + x_9)) > ((1.0 + x_11) > ((11.0 + x_13) > (4.0 + x_14)? (11.0 + x_13) : (4.0 + x_14))? (1.0 + x_11) : ((11.0 + x_13) > (4.0 + x_14)? (11.0 + x_13) : (4.0 + x_14)))? ((20.0 + x_8) > (4.0 + x_9)? (20.0 + x_8) : (4.0 + x_9)) : ((1.0 + x_11) > ((11.0 + x_13) > (4.0 + x_14)? (11.0 + x_13) : (4.0 + x_14))? (1.0 + x_11) : ((11.0 + x_13) > (4.0 + x_14)? (11.0 + x_13) : (4.0 + x_14))))) : ((((10.0 + x_16) > (11.0 + x_18)? (10.0 + x_16) : (11.0 + x_18)) > ((17.0 + x_21) > (13.0 + x_22)? (17.0 + x_21) : (13.0 + x_22))? ((10.0 + x_16) > (11.0 + x_18)? (10.0 + x_16) : (11.0 + x_18)) : ((17.0 + x_21) > (13.0 + x_22)? (17.0 + x_21) : (13.0 + x_22))) > (((2.0 + x_23) > (6.0 + x_28)? (2.0 + x_23) : (6.0 + x_28)) > ((14.0 + x_29) > ((5.0 + x_32) > (3.0 + x_35)? (5.0 + x_32) : (3.0 + x_35))? (14.0 + x_29) : ((5.0 + x_32) > (3.0 + x_35)? (5.0 + x_32) : (3.0 + x_35)))? ((2.0 + x_23) > (6.0 + x_28)? (2.0 + x_23) : (6.0 + x_28)) : ((14.0 + x_29) > ((5.0 + x_32) > (3.0 + x_35)? (5.0 + x_32) : (3.0 + x_35))? (14.0 + x_29) : ((5.0 + x_32) > (3.0 + x_35)? (5.0 + x_32) : (3.0 + x_35))))? (((10.0 + x_16) > (11.0 + x_18)? (10.0 + x_16) : (11.0 + x_18)) > ((17.0 + x_21) > (13.0 + x_22)? (17.0 + x_21) : (13.0 + x_22))? ((10.0 + x_16) > (11.0 + x_18)? (10.0 + x_16) : (11.0 + x_18)) : ((17.0 + x_21) > (13.0 + x_22)? (17.0 + x_21) : (13.0 + x_22))) : (((2.0 + x_23) > (6.0 + x_28)? (2.0 + x_23) : (6.0 + x_28)) > ((14.0 + x_29) > ((5.0 + x_32) > (3.0 + x_35)? (5.0 + x_32) : (3.0 + x_35))? (14.0 + x_29) : ((5.0 + x_32) > (3.0 + x_35)? (5.0 + x_32) : (3.0 + x_35)))? ((2.0 + x_23) > (6.0 + x_28)? (2.0 + x_23) : (6.0 + x_28)) : ((14.0 + x_29) > ((5.0 + x_32) > (3.0 + x_35)? (5.0 + x_32) : (3.0 + x_35))? (14.0 + x_29) : ((5.0 + x_32) > (3.0 + x_35)? (5.0 + x_32) : (3.0 + x_35))))));
x_12_ = (((((1.0 + x_0) > (7.0 + x_6)? (1.0 + x_0) : (7.0 + x_6)) > ((17.0 + x_7) > (4.0 + x_8)? (17.0 + x_7) : (4.0 + x_8))? ((1.0 + x_0) > (7.0 + x_6)? (1.0 + x_0) : (7.0 + x_6)) : ((17.0 + x_7) > (4.0 + x_8)? (17.0 + x_7) : (4.0 + x_8))) > (((5.0 + x_9) > (5.0 + x_11)? (5.0 + x_9) : (5.0 + x_11)) > ((13.0 + x_12) > ((7.0 + x_13) > (7.0 + x_18)? (7.0 + x_13) : (7.0 + x_18))? (13.0 + x_12) : ((7.0 + x_13) > (7.0 + x_18)? (7.0 + x_13) : (7.0 + x_18)))? ((5.0 + x_9) > (5.0 + x_11)? (5.0 + x_9) : (5.0 + x_11)) : ((13.0 + x_12) > ((7.0 + x_13) > (7.0 + x_18)? (7.0 + x_13) : (7.0 + x_18))? (13.0 + x_12) : ((7.0 + x_13) > (7.0 + x_18)? (7.0 + x_13) : (7.0 + x_18))))? (((1.0 + x_0) > (7.0 + x_6)? (1.0 + x_0) : (7.0 + x_6)) > ((17.0 + x_7) > (4.0 + x_8)? (17.0 + x_7) : (4.0 + x_8))? ((1.0 + x_0) > (7.0 + x_6)? (1.0 + x_0) : (7.0 + x_6)) : ((17.0 + x_7) > (4.0 + x_8)? (17.0 + x_7) : (4.0 + x_8))) : (((5.0 + x_9) > (5.0 + x_11)? (5.0 + x_9) : (5.0 + x_11)) > ((13.0 + x_12) > ((7.0 + x_13) > (7.0 + x_18)? (7.0 + x_13) : (7.0 + x_18))? (13.0 + x_12) : ((7.0 + x_13) > (7.0 + x_18)? (7.0 + x_13) : (7.0 + x_18)))? ((5.0 + x_9) > (5.0 + x_11)? (5.0 + x_9) : (5.0 + x_11)) : ((13.0 + x_12) > ((7.0 + x_13) > (7.0 + x_18)? (7.0 + x_13) : (7.0 + x_18))? (13.0 + x_12) : ((7.0 + x_13) > (7.0 + x_18)? (7.0 + x_13) : (7.0 + x_18))))) > ((((7.0 + x_19) > (18.0 + x_21)? (7.0 + x_19) : (18.0 + x_21)) > ((16.0 + x_22) > (3.0 + x_23)? (16.0 + x_22) : (3.0 + x_23))? ((7.0 + x_19) > (18.0 + x_21)? (7.0 + x_19) : (18.0 + x_21)) : ((16.0 + x_22) > (3.0 + x_23)? (16.0 + x_22) : (3.0 + x_23))) > (((10.0 + x_24) > (9.0 + x_26)? (10.0 + x_24) : (9.0 + x_26)) > ((6.0 + x_28) > ((2.0 + x_30) > (9.0 + x_34)? (2.0 + x_30) : (9.0 + x_34))? (6.0 + x_28) : ((2.0 + x_30) > (9.0 + x_34)? (2.0 + x_30) : (9.0 + x_34)))? ((10.0 + x_24) > (9.0 + x_26)? (10.0 + x_24) : (9.0 + x_26)) : ((6.0 + x_28) > ((2.0 + x_30) > (9.0 + x_34)? (2.0 + x_30) : (9.0 + x_34))? (6.0 + x_28) : ((2.0 + x_30) > (9.0 + x_34)? (2.0 + x_30) : (9.0 + x_34))))? (((7.0 + x_19) > (18.0 + x_21)? (7.0 + x_19) : (18.0 + x_21)) > ((16.0 + x_22) > (3.0 + x_23)? (16.0 + x_22) : (3.0 + x_23))? ((7.0 + x_19) > (18.0 + x_21)? (7.0 + x_19) : (18.0 + x_21)) : ((16.0 + x_22) > (3.0 + x_23)? (16.0 + x_22) : (3.0 + x_23))) : (((10.0 + x_24) > (9.0 + x_26)? (10.0 + x_24) : (9.0 + x_26)) > ((6.0 + x_28) > ((2.0 + x_30) > (9.0 + x_34)? (2.0 + x_30) : (9.0 + x_34))? (6.0 + x_28) : ((2.0 + x_30) > (9.0 + x_34)? (2.0 + x_30) : (9.0 + x_34)))? ((10.0 + x_24) > (9.0 + x_26)? (10.0 + x_24) : (9.0 + x_26)) : ((6.0 + x_28) > ((2.0 + x_30) > (9.0 + x_34)? (2.0 + x_30) : (9.0 + x_34))? (6.0 + x_28) : ((2.0 + x_30) > (9.0 + x_34)? (2.0 + x_30) : (9.0 + x_34)))))? ((((1.0 + x_0) > (7.0 + x_6)? (1.0 + x_0) : (7.0 + x_6)) > ((17.0 + x_7) > (4.0 + x_8)? (17.0 + x_7) : (4.0 + x_8))? ((1.0 + x_0) > (7.0 + x_6)? (1.0 + x_0) : (7.0 + x_6)) : ((17.0 + x_7) > (4.0 + x_8)? (17.0 + x_7) : (4.0 + x_8))) > (((5.0 + x_9) > (5.0 + x_11)? (5.0 + x_9) : (5.0 + x_11)) > ((13.0 + x_12) > ((7.0 + x_13) > (7.0 + x_18)? (7.0 + x_13) : (7.0 + x_18))? (13.0 + x_12) : ((7.0 + x_13) > (7.0 + x_18)? (7.0 + x_13) : (7.0 + x_18)))? ((5.0 + x_9) > (5.0 + x_11)? (5.0 + x_9) : (5.0 + x_11)) : ((13.0 + x_12) > ((7.0 + x_13) > (7.0 + x_18)? (7.0 + x_13) : (7.0 + x_18))? (13.0 + x_12) : ((7.0 + x_13) > (7.0 + x_18)? (7.0 + x_13) : (7.0 + x_18))))? (((1.0 + x_0) > (7.0 + x_6)? (1.0 + x_0) : (7.0 + x_6)) > ((17.0 + x_7) > (4.0 + x_8)? (17.0 + x_7) : (4.0 + x_8))? ((1.0 + x_0) > (7.0 + x_6)? (1.0 + x_0) : (7.0 + x_6)) : ((17.0 + x_7) > (4.0 + x_8)? (17.0 + x_7) : (4.0 + x_8))) : (((5.0 + x_9) > (5.0 + x_11)? (5.0 + x_9) : (5.0 + x_11)) > ((13.0 + x_12) > ((7.0 + x_13) > (7.0 + x_18)? (7.0 + x_13) : (7.0 + x_18))? (13.0 + x_12) : ((7.0 + x_13) > (7.0 + x_18)? (7.0 + x_13) : (7.0 + x_18)))? ((5.0 + x_9) > (5.0 + x_11)? (5.0 + x_9) : (5.0 + x_11)) : ((13.0 + x_12) > ((7.0 + x_13) > (7.0 + x_18)? (7.0 + x_13) : (7.0 + x_18))? (13.0 + x_12) : ((7.0 + x_13) > (7.0 + x_18)? (7.0 + x_13) : (7.0 + x_18))))) : ((((7.0 + x_19) > (18.0 + x_21)? (7.0 + x_19) : (18.0 + x_21)) > ((16.0 + x_22) > (3.0 + x_23)? (16.0 + x_22) : (3.0 + x_23))? ((7.0 + x_19) > (18.0 + x_21)? (7.0 + x_19) : (18.0 + x_21)) : ((16.0 + x_22) > (3.0 + x_23)? (16.0 + x_22) : (3.0 + x_23))) > (((10.0 + x_24) > (9.0 + x_26)? (10.0 + x_24) : (9.0 + x_26)) > ((6.0 + x_28) > ((2.0 + x_30) > (9.0 + x_34)? (2.0 + x_30) : (9.0 + x_34))? (6.0 + x_28) : ((2.0 + x_30) > (9.0 + x_34)? (2.0 + x_30) : (9.0 + x_34)))? ((10.0 + x_24) > (9.0 + x_26)? (10.0 + x_24) : (9.0 + x_26)) : ((6.0 + x_28) > ((2.0 + x_30) > (9.0 + x_34)? (2.0 + x_30) : (9.0 + x_34))? (6.0 + x_28) : ((2.0 + x_30) > (9.0 + x_34)? (2.0 + x_30) : (9.0 + x_34))))? (((7.0 + x_19) > (18.0 + x_21)? (7.0 + x_19) : (18.0 + x_21)) > ((16.0 + x_22) > (3.0 + x_23)? (16.0 + x_22) : (3.0 + x_23))? ((7.0 + x_19) > (18.0 + x_21)? (7.0 + x_19) : (18.0 + x_21)) : ((16.0 + x_22) > (3.0 + x_23)? (16.0 + x_22) : (3.0 + x_23))) : (((10.0 + x_24) > (9.0 + x_26)? (10.0 + x_24) : (9.0 + x_26)) > ((6.0 + x_28) > ((2.0 + x_30) > (9.0 + x_34)? (2.0 + x_30) : (9.0 + x_34))? (6.0 + x_28) : ((2.0 + x_30) > (9.0 + x_34)? (2.0 + x_30) : (9.0 + x_34)))? ((10.0 + x_24) > (9.0 + x_26)? (10.0 + x_24) : (9.0 + x_26)) : ((6.0 + x_28) > ((2.0 + x_30) > (9.0 + x_34)? (2.0 + x_30) : (9.0 + x_34))? (6.0 + x_28) : ((2.0 + x_30) > (9.0 + x_34)? (2.0 + x_30) : (9.0 + x_34))))));
x_13_ = (((((13.0 + x_1) > (12.0 + x_2)? (13.0 + x_1) : (12.0 + x_2)) > ((16.0 + x_3) > (9.0 + x_5)? (16.0 + x_3) : (9.0 + x_5))? ((13.0 + x_1) > (12.0 + x_2)? (13.0 + x_1) : (12.0 + x_2)) : ((16.0 + x_3) > (9.0 + x_5)? (16.0 + x_3) : (9.0 + x_5))) > (((17.0 + x_6) > (10.0 + x_10)? (17.0 + x_6) : (10.0 + x_10)) > ((11.0 + x_13) > ((9.0 + x_14) > (16.0 + x_16)? (9.0 + x_14) : (16.0 + x_16))? (11.0 + x_13) : ((9.0 + x_14) > (16.0 + x_16)? (9.0 + x_14) : (16.0 + x_16)))? ((17.0 + x_6) > (10.0 + x_10)? (17.0 + x_6) : (10.0 + x_10)) : ((11.0 + x_13) > ((9.0 + x_14) > (16.0 + x_16)? (9.0 + x_14) : (16.0 + x_16))? (11.0 + x_13) : ((9.0 + x_14) > (16.0 + x_16)? (9.0 + x_14) : (16.0 + x_16))))? (((13.0 + x_1) > (12.0 + x_2)? (13.0 + x_1) : (12.0 + x_2)) > ((16.0 + x_3) > (9.0 + x_5)? (16.0 + x_3) : (9.0 + x_5))? ((13.0 + x_1) > (12.0 + x_2)? (13.0 + x_1) : (12.0 + x_2)) : ((16.0 + x_3) > (9.0 + x_5)? (16.0 + x_3) : (9.0 + x_5))) : (((17.0 + x_6) > (10.0 + x_10)? (17.0 + x_6) : (10.0 + x_10)) > ((11.0 + x_13) > ((9.0 + x_14) > (16.0 + x_16)? (9.0 + x_14) : (16.0 + x_16))? (11.0 + x_13) : ((9.0 + x_14) > (16.0 + x_16)? (9.0 + x_14) : (16.0 + x_16)))? ((17.0 + x_6) > (10.0 + x_10)? (17.0 + x_6) : (10.0 + x_10)) : ((11.0 + x_13) > ((9.0 + x_14) > (16.0 + x_16)? (9.0 + x_14) : (16.0 + x_16))? (11.0 + x_13) : ((9.0 + x_14) > (16.0 + x_16)? (9.0 + x_14) : (16.0 + x_16))))) > ((((4.0 + x_18) > (5.0 + x_21)? (4.0 + x_18) : (5.0 + x_21)) > ((12.0 + x_22) > (12.0 + x_23)? (12.0 + x_22) : (12.0 + x_23))? ((4.0 + x_18) > (5.0 + x_21)? (4.0 + x_18) : (5.0 + x_21)) : ((12.0 + x_22) > (12.0 + x_23)? (12.0 + x_22) : (12.0 + x_23))) > (((10.0 + x_25) > (19.0 + x_28)? (10.0 + x_25) : (19.0 + x_28)) > ((20.0 + x_29) > ((11.0 + x_32) > (18.0 + x_35)? (11.0 + x_32) : (18.0 + x_35))? (20.0 + x_29) : ((11.0 + x_32) > (18.0 + x_35)? (11.0 + x_32) : (18.0 + x_35)))? ((10.0 + x_25) > (19.0 + x_28)? (10.0 + x_25) : (19.0 + x_28)) : ((20.0 + x_29) > ((11.0 + x_32) > (18.0 + x_35)? (11.0 + x_32) : (18.0 + x_35))? (20.0 + x_29) : ((11.0 + x_32) > (18.0 + x_35)? (11.0 + x_32) : (18.0 + x_35))))? (((4.0 + x_18) > (5.0 + x_21)? (4.0 + x_18) : (5.0 + x_21)) > ((12.0 + x_22) > (12.0 + x_23)? (12.0 + x_22) : (12.0 + x_23))? ((4.0 + x_18) > (5.0 + x_21)? (4.0 + x_18) : (5.0 + x_21)) : ((12.0 + x_22) > (12.0 + x_23)? (12.0 + x_22) : (12.0 + x_23))) : (((10.0 + x_25) > (19.0 + x_28)? (10.0 + x_25) : (19.0 + x_28)) > ((20.0 + x_29) > ((11.0 + x_32) > (18.0 + x_35)? (11.0 + x_32) : (18.0 + x_35))? (20.0 + x_29) : ((11.0 + x_32) > (18.0 + x_35)? (11.0 + x_32) : (18.0 + x_35)))? ((10.0 + x_25) > (19.0 + x_28)? (10.0 + x_25) : (19.0 + x_28)) : ((20.0 + x_29) > ((11.0 + x_32) > (18.0 + x_35)? (11.0 + x_32) : (18.0 + x_35))? (20.0 + x_29) : ((11.0 + x_32) > (18.0 + x_35)? (11.0 + x_32) : (18.0 + x_35)))))? ((((13.0 + x_1) > (12.0 + x_2)? (13.0 + x_1) : (12.0 + x_2)) > ((16.0 + x_3) > (9.0 + x_5)? (16.0 + x_3) : (9.0 + x_5))? ((13.0 + x_1) > (12.0 + x_2)? (13.0 + x_1) : (12.0 + x_2)) : ((16.0 + x_3) > (9.0 + x_5)? (16.0 + x_3) : (9.0 + x_5))) > (((17.0 + x_6) > (10.0 + x_10)? (17.0 + x_6) : (10.0 + x_10)) > ((11.0 + x_13) > ((9.0 + x_14) > (16.0 + x_16)? (9.0 + x_14) : (16.0 + x_16))? (11.0 + x_13) : ((9.0 + x_14) > (16.0 + x_16)? (9.0 + x_14) : (16.0 + x_16)))? ((17.0 + x_6) > (10.0 + x_10)? (17.0 + x_6) : (10.0 + x_10)) : ((11.0 + x_13) > ((9.0 + x_14) > (16.0 + x_16)? (9.0 + x_14) : (16.0 + x_16))? (11.0 + x_13) : ((9.0 + x_14) > (16.0 + x_16)? (9.0 + x_14) : (16.0 + x_16))))? (((13.0 + x_1) > (12.0 + x_2)? (13.0 + x_1) : (12.0 + x_2)) > ((16.0 + x_3) > (9.0 + x_5)? (16.0 + x_3) : (9.0 + x_5))? ((13.0 + x_1) > (12.0 + x_2)? (13.0 + x_1) : (12.0 + x_2)) : ((16.0 + x_3) > (9.0 + x_5)? (16.0 + x_3) : (9.0 + x_5))) : (((17.0 + x_6) > (10.0 + x_10)? (17.0 + x_6) : (10.0 + x_10)) > ((11.0 + x_13) > ((9.0 + x_14) > (16.0 + x_16)? (9.0 + x_14) : (16.0 + x_16))? (11.0 + x_13) : ((9.0 + x_14) > (16.0 + x_16)? (9.0 + x_14) : (16.0 + x_16)))? ((17.0 + x_6) > (10.0 + x_10)? (17.0 + x_6) : (10.0 + x_10)) : ((11.0 + x_13) > ((9.0 + x_14) > (16.0 + x_16)? (9.0 + x_14) : (16.0 + x_16))? (11.0 + x_13) : ((9.0 + x_14) > (16.0 + x_16)? (9.0 + x_14) : (16.0 + x_16))))) : ((((4.0 + x_18) > (5.0 + x_21)? (4.0 + x_18) : (5.0 + x_21)) > ((12.0 + x_22) > (12.0 + x_23)? (12.0 + x_22) : (12.0 + x_23))? ((4.0 + x_18) > (5.0 + x_21)? (4.0 + x_18) : (5.0 + x_21)) : ((12.0 + x_22) > (12.0 + x_23)? (12.0 + x_22) : (12.0 + x_23))) > (((10.0 + x_25) > (19.0 + x_28)? (10.0 + x_25) : (19.0 + x_28)) > ((20.0 + x_29) > ((11.0 + x_32) > (18.0 + x_35)? (11.0 + x_32) : (18.0 + x_35))? (20.0 + x_29) : ((11.0 + x_32) > (18.0 + x_35)? (11.0 + x_32) : (18.0 + x_35)))? ((10.0 + x_25) > (19.0 + x_28)? (10.0 + x_25) : (19.0 + x_28)) : ((20.0 + x_29) > ((11.0 + x_32) > (18.0 + x_35)? (11.0 + x_32) : (18.0 + x_35))? (20.0 + x_29) : ((11.0 + x_32) > (18.0 + x_35)? (11.0 + x_32) : (18.0 + x_35))))? (((4.0 + x_18) > (5.0 + x_21)? (4.0 + x_18) : (5.0 + x_21)) > ((12.0 + x_22) > (12.0 + x_23)? (12.0 + x_22) : (12.0 + x_23))? ((4.0 + x_18) > (5.0 + x_21)? (4.0 + x_18) : (5.0 + x_21)) : ((12.0 + x_22) > (12.0 + x_23)? (12.0 + x_22) : (12.0 + x_23))) : (((10.0 + x_25) > (19.0 + x_28)? (10.0 + x_25) : (19.0 + x_28)) > ((20.0 + x_29) > ((11.0 + x_32) > (18.0 + x_35)? (11.0 + x_32) : (18.0 + x_35))? (20.0 + x_29) : ((11.0 + x_32) > (18.0 + x_35)? (11.0 + x_32) : (18.0 + x_35)))? ((10.0 + x_25) > (19.0 + x_28)? (10.0 + x_25) : (19.0 + x_28)) : ((20.0 + x_29) > ((11.0 + x_32) > (18.0 + x_35)? (11.0 + x_32) : (18.0 + x_35))? (20.0 + x_29) : ((11.0 + x_32) > (18.0 + x_35)? (11.0 + x_32) : (18.0 + x_35))))));
x_14_ = (((((10.0 + x_0) > (5.0 + x_2)? (10.0 + x_0) : (5.0 + x_2)) > ((6.0 + x_6) > (13.0 + x_8)? (6.0 + x_6) : (13.0 + x_8))? ((10.0 + x_0) > (5.0 + x_2)? (10.0 + x_0) : (5.0 + x_2)) : ((6.0 + x_6) > (13.0 + x_8)? (6.0 + x_6) : (13.0 + x_8))) > (((8.0 + x_9) > (5.0 + x_10)? (8.0 + x_9) : (5.0 + x_10)) > ((1.0 + x_13) > ((1.0 + x_15) > (20.0 + x_17)? (1.0 + x_15) : (20.0 + x_17))? (1.0 + x_13) : ((1.0 + x_15) > (20.0 + x_17)? (1.0 + x_15) : (20.0 + x_17)))? ((8.0 + x_9) > (5.0 + x_10)? (8.0 + x_9) : (5.0 + x_10)) : ((1.0 + x_13) > ((1.0 + x_15) > (20.0 + x_17)? (1.0 + x_15) : (20.0 + x_17))? (1.0 + x_13) : ((1.0 + x_15) > (20.0 + x_17)? (1.0 + x_15) : (20.0 + x_17))))? (((10.0 + x_0) > (5.0 + x_2)? (10.0 + x_0) : (5.0 + x_2)) > ((6.0 + x_6) > (13.0 + x_8)? (6.0 + x_6) : (13.0 + x_8))? ((10.0 + x_0) > (5.0 + x_2)? (10.0 + x_0) : (5.0 + x_2)) : ((6.0 + x_6) > (13.0 + x_8)? (6.0 + x_6) : (13.0 + x_8))) : (((8.0 + x_9) > (5.0 + x_10)? (8.0 + x_9) : (5.0 + x_10)) > ((1.0 + x_13) > ((1.0 + x_15) > (20.0 + x_17)? (1.0 + x_15) : (20.0 + x_17))? (1.0 + x_13) : ((1.0 + x_15) > (20.0 + x_17)? (1.0 + x_15) : (20.0 + x_17)))? ((8.0 + x_9) > (5.0 + x_10)? (8.0 + x_9) : (5.0 + x_10)) : ((1.0 + x_13) > ((1.0 + x_15) > (20.0 + x_17)? (1.0 + x_15) : (20.0 + x_17))? (1.0 + x_13) : ((1.0 + x_15) > (20.0 + x_17)? (1.0 + x_15) : (20.0 + x_17))))) > ((((12.0 + x_18) > (11.0 + x_21)? (12.0 + x_18) : (11.0 + x_21)) > ((9.0 + x_23) > (6.0 + x_25)? (9.0 + x_23) : (6.0 + x_25))? ((12.0 + x_18) > (11.0 + x_21)? (12.0 + x_18) : (11.0 + x_21)) : ((9.0 + x_23) > (6.0 + x_25)? (9.0 + x_23) : (6.0 + x_25))) > (((1.0 + x_28) > (16.0 + x_30)? (1.0 + x_28) : (16.0 + x_30)) > ((8.0 + x_31) > ((20.0 + x_33) > (16.0 + x_34)? (20.0 + x_33) : (16.0 + x_34))? (8.0 + x_31) : ((20.0 + x_33) > (16.0 + x_34)? (20.0 + x_33) : (16.0 + x_34)))? ((1.0 + x_28) > (16.0 + x_30)? (1.0 + x_28) : (16.0 + x_30)) : ((8.0 + x_31) > ((20.0 + x_33) > (16.0 + x_34)? (20.0 + x_33) : (16.0 + x_34))? (8.0 + x_31) : ((20.0 + x_33) > (16.0 + x_34)? (20.0 + x_33) : (16.0 + x_34))))? (((12.0 + x_18) > (11.0 + x_21)? (12.0 + x_18) : (11.0 + x_21)) > ((9.0 + x_23) > (6.0 + x_25)? (9.0 + x_23) : (6.0 + x_25))? ((12.0 + x_18) > (11.0 + x_21)? (12.0 + x_18) : (11.0 + x_21)) : ((9.0 + x_23) > (6.0 + x_25)? (9.0 + x_23) : (6.0 + x_25))) : (((1.0 + x_28) > (16.0 + x_30)? (1.0 + x_28) : (16.0 + x_30)) > ((8.0 + x_31) > ((20.0 + x_33) > (16.0 + x_34)? (20.0 + x_33) : (16.0 + x_34))? (8.0 + x_31) : ((20.0 + x_33) > (16.0 + x_34)? (20.0 + x_33) : (16.0 + x_34)))? ((1.0 + x_28) > (16.0 + x_30)? (1.0 + x_28) : (16.0 + x_30)) : ((8.0 + x_31) > ((20.0 + x_33) > (16.0 + x_34)? (20.0 + x_33) : (16.0 + x_34))? (8.0 + x_31) : ((20.0 + x_33) > (16.0 + x_34)? (20.0 + x_33) : (16.0 + x_34)))))? ((((10.0 + x_0) > (5.0 + x_2)? (10.0 + x_0) : (5.0 + x_2)) > ((6.0 + x_6) > (13.0 + x_8)? (6.0 + x_6) : (13.0 + x_8))? ((10.0 + x_0) > (5.0 + x_2)? (10.0 + x_0) : (5.0 + x_2)) : ((6.0 + x_6) > (13.0 + x_8)? (6.0 + x_6) : (13.0 + x_8))) > (((8.0 + x_9) > (5.0 + x_10)? (8.0 + x_9) : (5.0 + x_10)) > ((1.0 + x_13) > ((1.0 + x_15) > (20.0 + x_17)? (1.0 + x_15) : (20.0 + x_17))? (1.0 + x_13) : ((1.0 + x_15) > (20.0 + x_17)? (1.0 + x_15) : (20.0 + x_17)))? ((8.0 + x_9) > (5.0 + x_10)? (8.0 + x_9) : (5.0 + x_10)) : ((1.0 + x_13) > ((1.0 + x_15) > (20.0 + x_17)? (1.0 + x_15) : (20.0 + x_17))? (1.0 + x_13) : ((1.0 + x_15) > (20.0 + x_17)? (1.0 + x_15) : (20.0 + x_17))))? (((10.0 + x_0) > (5.0 + x_2)? (10.0 + x_0) : (5.0 + x_2)) > ((6.0 + x_6) > (13.0 + x_8)? (6.0 + x_6) : (13.0 + x_8))? ((10.0 + x_0) > (5.0 + x_2)? (10.0 + x_0) : (5.0 + x_2)) : ((6.0 + x_6) > (13.0 + x_8)? (6.0 + x_6) : (13.0 + x_8))) : (((8.0 + x_9) > (5.0 + x_10)? (8.0 + x_9) : (5.0 + x_10)) > ((1.0 + x_13) > ((1.0 + x_15) > (20.0 + x_17)? (1.0 + x_15) : (20.0 + x_17))? (1.0 + x_13) : ((1.0 + x_15) > (20.0 + x_17)? (1.0 + x_15) : (20.0 + x_17)))? ((8.0 + x_9) > (5.0 + x_10)? (8.0 + x_9) : (5.0 + x_10)) : ((1.0 + x_13) > ((1.0 + x_15) > (20.0 + x_17)? (1.0 + x_15) : (20.0 + x_17))? (1.0 + x_13) : ((1.0 + x_15) > (20.0 + x_17)? (1.0 + x_15) : (20.0 + x_17))))) : ((((12.0 + x_18) > (11.0 + x_21)? (12.0 + x_18) : (11.0 + x_21)) > ((9.0 + x_23) > (6.0 + x_25)? (9.0 + x_23) : (6.0 + x_25))? ((12.0 + x_18) > (11.0 + x_21)? (12.0 + x_18) : (11.0 + x_21)) : ((9.0 + x_23) > (6.0 + x_25)? (9.0 + x_23) : (6.0 + x_25))) > (((1.0 + x_28) > (16.0 + x_30)? (1.0 + x_28) : (16.0 + x_30)) > ((8.0 + x_31) > ((20.0 + x_33) > (16.0 + x_34)? (20.0 + x_33) : (16.0 + x_34))? (8.0 + x_31) : ((20.0 + x_33) > (16.0 + x_34)? (20.0 + x_33) : (16.0 + x_34)))? ((1.0 + x_28) > (16.0 + x_30)? (1.0 + x_28) : (16.0 + x_30)) : ((8.0 + x_31) > ((20.0 + x_33) > (16.0 + x_34)? (20.0 + x_33) : (16.0 + x_34))? (8.0 + x_31) : ((20.0 + x_33) > (16.0 + x_34)? (20.0 + x_33) : (16.0 + x_34))))? (((12.0 + x_18) > (11.0 + x_21)? (12.0 + x_18) : (11.0 + x_21)) > ((9.0 + x_23) > (6.0 + x_25)? (9.0 + x_23) : (6.0 + x_25))? ((12.0 + x_18) > (11.0 + x_21)? (12.0 + x_18) : (11.0 + x_21)) : ((9.0 + x_23) > (6.0 + x_25)? (9.0 + x_23) : (6.0 + x_25))) : (((1.0 + x_28) > (16.0 + x_30)? (1.0 + x_28) : (16.0 + x_30)) > ((8.0 + x_31) > ((20.0 + x_33) > (16.0 + x_34)? (20.0 + x_33) : (16.0 + x_34))? (8.0 + x_31) : ((20.0 + x_33) > (16.0 + x_34)? (20.0 + x_33) : (16.0 + x_34)))? ((1.0 + x_28) > (16.0 + x_30)? (1.0 + x_28) : (16.0 + x_30)) : ((8.0 + x_31) > ((20.0 + x_33) > (16.0 + x_34)? (20.0 + x_33) : (16.0 + x_34))? (8.0 + x_31) : ((20.0 + x_33) > (16.0 + x_34)? (20.0 + x_33) : (16.0 + x_34))))));
x_15_ = (((((16.0 + x_0) > (10.0 + x_2)? (16.0 + x_0) : (10.0 + x_2)) > ((11.0 + x_3) > (10.0 + x_8)? (11.0 + x_3) : (10.0 + x_8))? ((16.0 + x_0) > (10.0 + x_2)? (16.0 + x_0) : (10.0 + x_2)) : ((11.0 + x_3) > (10.0 + x_8)? (11.0 + x_3) : (10.0 + x_8))) > (((11.0 + x_9) > (12.0 + x_12)? (11.0 + x_9) : (12.0 + x_12)) > ((5.0 + x_14) > ((20.0 + x_15) > (6.0 + x_16)? (20.0 + x_15) : (6.0 + x_16))? (5.0 + x_14) : ((20.0 + x_15) > (6.0 + x_16)? (20.0 + x_15) : (6.0 + x_16)))? ((11.0 + x_9) > (12.0 + x_12)? (11.0 + x_9) : (12.0 + x_12)) : ((5.0 + x_14) > ((20.0 + x_15) > (6.0 + x_16)? (20.0 + x_15) : (6.0 + x_16))? (5.0 + x_14) : ((20.0 + x_15) > (6.0 + x_16)? (20.0 + x_15) : (6.0 + x_16))))? (((16.0 + x_0) > (10.0 + x_2)? (16.0 + x_0) : (10.0 + x_2)) > ((11.0 + x_3) > (10.0 + x_8)? (11.0 + x_3) : (10.0 + x_8))? ((16.0 + x_0) > (10.0 + x_2)? (16.0 + x_0) : (10.0 + x_2)) : ((11.0 + x_3) > (10.0 + x_8)? (11.0 + x_3) : (10.0 + x_8))) : (((11.0 + x_9) > (12.0 + x_12)? (11.0 + x_9) : (12.0 + x_12)) > ((5.0 + x_14) > ((20.0 + x_15) > (6.0 + x_16)? (20.0 + x_15) : (6.0 + x_16))? (5.0 + x_14) : ((20.0 + x_15) > (6.0 + x_16)? (20.0 + x_15) : (6.0 + x_16)))? ((11.0 + x_9) > (12.0 + x_12)? (11.0 + x_9) : (12.0 + x_12)) : ((5.0 + x_14) > ((20.0 + x_15) > (6.0 + x_16)? (20.0 + x_15) : (6.0 + x_16))? (5.0 + x_14) : ((20.0 + x_15) > (6.0 + x_16)? (20.0 + x_15) : (6.0 + x_16))))) > ((((10.0 + x_18) > (18.0 + x_19)? (10.0 + x_18) : (18.0 + x_19)) > ((15.0 + x_22) > (10.0 + x_25)? (15.0 + x_22) : (10.0 + x_25))? ((10.0 + x_18) > (18.0 + x_19)? (10.0 + x_18) : (18.0 + x_19)) : ((15.0 + x_22) > (10.0 + x_25)? (15.0 + x_22) : (10.0 + x_25))) > (((8.0 + x_28) > (6.0 + x_29)? (8.0 + x_28) : (6.0 + x_29)) > ((12.0 + x_32) > ((17.0 + x_34) > (14.0 + x_35)? (17.0 + x_34) : (14.0 + x_35))? (12.0 + x_32) : ((17.0 + x_34) > (14.0 + x_35)? (17.0 + x_34) : (14.0 + x_35)))? ((8.0 + x_28) > (6.0 + x_29)? (8.0 + x_28) : (6.0 + x_29)) : ((12.0 + x_32) > ((17.0 + x_34) > (14.0 + x_35)? (17.0 + x_34) : (14.0 + x_35))? (12.0 + x_32) : ((17.0 + x_34) > (14.0 + x_35)? (17.0 + x_34) : (14.0 + x_35))))? (((10.0 + x_18) > (18.0 + x_19)? (10.0 + x_18) : (18.0 + x_19)) > ((15.0 + x_22) > (10.0 + x_25)? (15.0 + x_22) : (10.0 + x_25))? ((10.0 + x_18) > (18.0 + x_19)? (10.0 + x_18) : (18.0 + x_19)) : ((15.0 + x_22) > (10.0 + x_25)? (15.0 + x_22) : (10.0 + x_25))) : (((8.0 + x_28) > (6.0 + x_29)? (8.0 + x_28) : (6.0 + x_29)) > ((12.0 + x_32) > ((17.0 + x_34) > (14.0 + x_35)? (17.0 + x_34) : (14.0 + x_35))? (12.0 + x_32) : ((17.0 + x_34) > (14.0 + x_35)? (17.0 + x_34) : (14.0 + x_35)))? ((8.0 + x_28) > (6.0 + x_29)? (8.0 + x_28) : (6.0 + x_29)) : ((12.0 + x_32) > ((17.0 + x_34) > (14.0 + x_35)? (17.0 + x_34) : (14.0 + x_35))? (12.0 + x_32) : ((17.0 + x_34) > (14.0 + x_35)? (17.0 + x_34) : (14.0 + x_35)))))? ((((16.0 + x_0) > (10.0 + x_2)? (16.0 + x_0) : (10.0 + x_2)) > ((11.0 + x_3) > (10.0 + x_8)? (11.0 + x_3) : (10.0 + x_8))? ((16.0 + x_0) > (10.0 + x_2)? (16.0 + x_0) : (10.0 + x_2)) : ((11.0 + x_3) > (10.0 + x_8)? (11.0 + x_3) : (10.0 + x_8))) > (((11.0 + x_9) > (12.0 + x_12)? (11.0 + x_9) : (12.0 + x_12)) > ((5.0 + x_14) > ((20.0 + x_15) > (6.0 + x_16)? (20.0 + x_15) : (6.0 + x_16))? (5.0 + x_14) : ((20.0 + x_15) > (6.0 + x_16)? (20.0 + x_15) : (6.0 + x_16)))? ((11.0 + x_9) > (12.0 + x_12)? (11.0 + x_9) : (12.0 + x_12)) : ((5.0 + x_14) > ((20.0 + x_15) > (6.0 + x_16)? (20.0 + x_15) : (6.0 + x_16))? (5.0 + x_14) : ((20.0 + x_15) > (6.0 + x_16)? (20.0 + x_15) : (6.0 + x_16))))? (((16.0 + x_0) > (10.0 + x_2)? (16.0 + x_0) : (10.0 + x_2)) > ((11.0 + x_3) > (10.0 + x_8)? (11.0 + x_3) : (10.0 + x_8))? ((16.0 + x_0) > (10.0 + x_2)? (16.0 + x_0) : (10.0 + x_2)) : ((11.0 + x_3) > (10.0 + x_8)? (11.0 + x_3) : (10.0 + x_8))) : (((11.0 + x_9) > (12.0 + x_12)? (11.0 + x_9) : (12.0 + x_12)) > ((5.0 + x_14) > ((20.0 + x_15) > (6.0 + x_16)? (20.0 + x_15) : (6.0 + x_16))? (5.0 + x_14) : ((20.0 + x_15) > (6.0 + x_16)? (20.0 + x_15) : (6.0 + x_16)))? ((11.0 + x_9) > (12.0 + x_12)? (11.0 + x_9) : (12.0 + x_12)) : ((5.0 + x_14) > ((20.0 + x_15) > (6.0 + x_16)? (20.0 + x_15) : (6.0 + x_16))? (5.0 + x_14) : ((20.0 + x_15) > (6.0 + x_16)? (20.0 + x_15) : (6.0 + x_16))))) : ((((10.0 + x_18) > (18.0 + x_19)? (10.0 + x_18) : (18.0 + x_19)) > ((15.0 + x_22) > (10.0 + x_25)? (15.0 + x_22) : (10.0 + x_25))? ((10.0 + x_18) > (18.0 + x_19)? (10.0 + x_18) : (18.0 + x_19)) : ((15.0 + x_22) > (10.0 + x_25)? (15.0 + x_22) : (10.0 + x_25))) > (((8.0 + x_28) > (6.0 + x_29)? (8.0 + x_28) : (6.0 + x_29)) > ((12.0 + x_32) > ((17.0 + x_34) > (14.0 + x_35)? (17.0 + x_34) : (14.0 + x_35))? (12.0 + x_32) : ((17.0 + x_34) > (14.0 + x_35)? (17.0 + x_34) : (14.0 + x_35)))? ((8.0 + x_28) > (6.0 + x_29)? (8.0 + x_28) : (6.0 + x_29)) : ((12.0 + x_32) > ((17.0 + x_34) > (14.0 + x_35)? (17.0 + x_34) : (14.0 + x_35))? (12.0 + x_32) : ((17.0 + x_34) > (14.0 + x_35)? (17.0 + x_34) : (14.0 + x_35))))? (((10.0 + x_18) > (18.0 + x_19)? (10.0 + x_18) : (18.0 + x_19)) > ((15.0 + x_22) > (10.0 + x_25)? (15.0 + x_22) : (10.0 + x_25))? ((10.0 + x_18) > (18.0 + x_19)? (10.0 + x_18) : (18.0 + x_19)) : ((15.0 + x_22) > (10.0 + x_25)? (15.0 + x_22) : (10.0 + x_25))) : (((8.0 + x_28) > (6.0 + x_29)? (8.0 + x_28) : (6.0 + x_29)) > ((12.0 + x_32) > ((17.0 + x_34) > (14.0 + x_35)? (17.0 + x_34) : (14.0 + x_35))? (12.0 + x_32) : ((17.0 + x_34) > (14.0 + x_35)? (17.0 + x_34) : (14.0 + x_35)))? ((8.0 + x_28) > (6.0 + x_29)? (8.0 + x_28) : (6.0 + x_29)) : ((12.0 + x_32) > ((17.0 + x_34) > (14.0 + x_35)? (17.0 + x_34) : (14.0 + x_35))? (12.0 + x_32) : ((17.0 + x_34) > (14.0 + x_35)? (17.0 + x_34) : (14.0 + x_35))))));
x_16_ = (((((16.0 + x_1) > (4.0 + x_6)? (16.0 + x_1) : (4.0 + x_6)) > ((2.0 + x_10) > (17.0 + x_13)? (2.0 + x_10) : (17.0 + x_13))? ((16.0 + x_1) > (4.0 + x_6)? (16.0 + x_1) : (4.0 + x_6)) : ((2.0 + x_10) > (17.0 + x_13)? (2.0 + x_10) : (17.0 + x_13))) > (((3.0 + x_14) > (19.0 + x_15)? (3.0 + x_14) : (19.0 + x_15)) > ((5.0 + x_19) > ((13.0 + x_20) > (17.0 + x_23)? (13.0 + x_20) : (17.0 + x_23))? (5.0 + x_19) : ((13.0 + x_20) > (17.0 + x_23)? (13.0 + x_20) : (17.0 + x_23)))? ((3.0 + x_14) > (19.0 + x_15)? (3.0 + x_14) : (19.0 + x_15)) : ((5.0 + x_19) > ((13.0 + x_20) > (17.0 + x_23)? (13.0 + x_20) : (17.0 + x_23))? (5.0 + x_19) : ((13.0 + x_20) > (17.0 + x_23)? (13.0 + x_20) : (17.0 + x_23))))? (((16.0 + x_1) > (4.0 + x_6)? (16.0 + x_1) : (4.0 + x_6)) > ((2.0 + x_10) > (17.0 + x_13)? (2.0 + x_10) : (17.0 + x_13))? ((16.0 + x_1) > (4.0 + x_6)? (16.0 + x_1) : (4.0 + x_6)) : ((2.0 + x_10) > (17.0 + x_13)? (2.0 + x_10) : (17.0 + x_13))) : (((3.0 + x_14) > (19.0 + x_15)? (3.0 + x_14) : (19.0 + x_15)) > ((5.0 + x_19) > ((13.0 + x_20) > (17.0 + x_23)? (13.0 + x_20) : (17.0 + x_23))? (5.0 + x_19) : ((13.0 + x_20) > (17.0 + x_23)? (13.0 + x_20) : (17.0 + x_23)))? ((3.0 + x_14) > (19.0 + x_15)? (3.0 + x_14) : (19.0 + x_15)) : ((5.0 + x_19) > ((13.0 + x_20) > (17.0 + x_23)? (13.0 + x_20) : (17.0 + x_23))? (5.0 + x_19) : ((13.0 + x_20) > (17.0 + x_23)? (13.0 + x_20) : (17.0 + x_23))))) > ((((5.0 + x_25) > (3.0 + x_26)? (5.0 + x_25) : (3.0 + x_26)) > ((8.0 + x_27) > (9.0 + x_28)? (8.0 + x_27) : (9.0 + x_28))? ((5.0 + x_25) > (3.0 + x_26)? (5.0 + x_25) : (3.0 + x_26)) : ((8.0 + x_27) > (9.0 + x_28)? (8.0 + x_27) : (9.0 + x_28))) > (((20.0 + x_29) > (4.0 + x_31)? (20.0 + x_29) : (4.0 + x_31)) > ((14.0 + x_32) > ((4.0 + x_33) > (3.0 + x_34)? (4.0 + x_33) : (3.0 + x_34))? (14.0 + x_32) : ((4.0 + x_33) > (3.0 + x_34)? (4.0 + x_33) : (3.0 + x_34)))? ((20.0 + x_29) > (4.0 + x_31)? (20.0 + x_29) : (4.0 + x_31)) : ((14.0 + x_32) > ((4.0 + x_33) > (3.0 + x_34)? (4.0 + x_33) : (3.0 + x_34))? (14.0 + x_32) : ((4.0 + x_33) > (3.0 + x_34)? (4.0 + x_33) : (3.0 + x_34))))? (((5.0 + x_25) > (3.0 + x_26)? (5.0 + x_25) : (3.0 + x_26)) > ((8.0 + x_27) > (9.0 + x_28)? (8.0 + x_27) : (9.0 + x_28))? ((5.0 + x_25) > (3.0 + x_26)? (5.0 + x_25) : (3.0 + x_26)) : ((8.0 + x_27) > (9.0 + x_28)? (8.0 + x_27) : (9.0 + x_28))) : (((20.0 + x_29) > (4.0 + x_31)? (20.0 + x_29) : (4.0 + x_31)) > ((14.0 + x_32) > ((4.0 + x_33) > (3.0 + x_34)? (4.0 + x_33) : (3.0 + x_34))? (14.0 + x_32) : ((4.0 + x_33) > (3.0 + x_34)? (4.0 + x_33) : (3.0 + x_34)))? ((20.0 + x_29) > (4.0 + x_31)? (20.0 + x_29) : (4.0 + x_31)) : ((14.0 + x_32) > ((4.0 + x_33) > (3.0 + x_34)? (4.0 + x_33) : (3.0 + x_34))? (14.0 + x_32) : ((4.0 + x_33) > (3.0 + x_34)? (4.0 + x_33) : (3.0 + x_34)))))? ((((16.0 + x_1) > (4.0 + x_6)? (16.0 + x_1) : (4.0 + x_6)) > ((2.0 + x_10) > (17.0 + x_13)? (2.0 + x_10) : (17.0 + x_13))? ((16.0 + x_1) > (4.0 + x_6)? (16.0 + x_1) : (4.0 + x_6)) : ((2.0 + x_10) > (17.0 + x_13)? (2.0 + x_10) : (17.0 + x_13))) > (((3.0 + x_14) > (19.0 + x_15)? (3.0 + x_14) : (19.0 + x_15)) > ((5.0 + x_19) > ((13.0 + x_20) > (17.0 + x_23)? (13.0 + x_20) : (17.0 + x_23))? (5.0 + x_19) : ((13.0 + x_20) > (17.0 + x_23)? (13.0 + x_20) : (17.0 + x_23)))? ((3.0 + x_14) > (19.0 + x_15)? (3.0 + x_14) : (19.0 + x_15)) : ((5.0 + x_19) > ((13.0 + x_20) > (17.0 + x_23)? (13.0 + x_20) : (17.0 + x_23))? (5.0 + x_19) : ((13.0 + x_20) > (17.0 + x_23)? (13.0 + x_20) : (17.0 + x_23))))? (((16.0 + x_1) > (4.0 + x_6)? (16.0 + x_1) : (4.0 + x_6)) > ((2.0 + x_10) > (17.0 + x_13)? (2.0 + x_10) : (17.0 + x_13))? ((16.0 + x_1) > (4.0 + x_6)? (16.0 + x_1) : (4.0 + x_6)) : ((2.0 + x_10) > (17.0 + x_13)? (2.0 + x_10) : (17.0 + x_13))) : (((3.0 + x_14) > (19.0 + x_15)? (3.0 + x_14) : (19.0 + x_15)) > ((5.0 + x_19) > ((13.0 + x_20) > (17.0 + x_23)? (13.0 + x_20) : (17.0 + x_23))? (5.0 + x_19) : ((13.0 + x_20) > (17.0 + x_23)? (13.0 + x_20) : (17.0 + x_23)))? ((3.0 + x_14) > (19.0 + x_15)? (3.0 + x_14) : (19.0 + x_15)) : ((5.0 + x_19) > ((13.0 + x_20) > (17.0 + x_23)? (13.0 + x_20) : (17.0 + x_23))? (5.0 + x_19) : ((13.0 + x_20) > (17.0 + x_23)? (13.0 + x_20) : (17.0 + x_23))))) : ((((5.0 + x_25) > (3.0 + x_26)? (5.0 + x_25) : (3.0 + x_26)) > ((8.0 + x_27) > (9.0 + x_28)? (8.0 + x_27) : (9.0 + x_28))? ((5.0 + x_25) > (3.0 + x_26)? (5.0 + x_25) : (3.0 + x_26)) : ((8.0 + x_27) > (9.0 + x_28)? (8.0 + x_27) : (9.0 + x_28))) > (((20.0 + x_29) > (4.0 + x_31)? (20.0 + x_29) : (4.0 + x_31)) > ((14.0 + x_32) > ((4.0 + x_33) > (3.0 + x_34)? (4.0 + x_33) : (3.0 + x_34))? (14.0 + x_32) : ((4.0 + x_33) > (3.0 + x_34)? (4.0 + x_33) : (3.0 + x_34)))? ((20.0 + x_29) > (4.0 + x_31)? (20.0 + x_29) : (4.0 + x_31)) : ((14.0 + x_32) > ((4.0 + x_33) > (3.0 + x_34)? (4.0 + x_33) : (3.0 + x_34))? (14.0 + x_32) : ((4.0 + x_33) > (3.0 + x_34)? (4.0 + x_33) : (3.0 + x_34))))? (((5.0 + x_25) > (3.0 + x_26)? (5.0 + x_25) : (3.0 + x_26)) > ((8.0 + x_27) > (9.0 + x_28)? (8.0 + x_27) : (9.0 + x_28))? ((5.0 + x_25) > (3.0 + x_26)? (5.0 + x_25) : (3.0 + x_26)) : ((8.0 + x_27) > (9.0 + x_28)? (8.0 + x_27) : (9.0 + x_28))) : (((20.0 + x_29) > (4.0 + x_31)? (20.0 + x_29) : (4.0 + x_31)) > ((14.0 + x_32) > ((4.0 + x_33) > (3.0 + x_34)? (4.0 + x_33) : (3.0 + x_34))? (14.0 + x_32) : ((4.0 + x_33) > (3.0 + x_34)? (4.0 + x_33) : (3.0 + x_34)))? ((20.0 + x_29) > (4.0 + x_31)? (20.0 + x_29) : (4.0 + x_31)) : ((14.0 + x_32) > ((4.0 + x_33) > (3.0 + x_34)? (4.0 + x_33) : (3.0 + x_34))? (14.0 + x_32) : ((4.0 + x_33) > (3.0 + x_34)? (4.0 + x_33) : (3.0 + x_34))))));
x_17_ = (((((10.0 + x_0) > (16.0 + x_3)? (10.0 + x_0) : (16.0 + x_3)) > ((15.0 + x_5) > (10.0 + x_7)? (15.0 + x_5) : (10.0 + x_7))? ((10.0 + x_0) > (16.0 + x_3)? (10.0 + x_0) : (16.0 + x_3)) : ((15.0 + x_5) > (10.0 + x_7)? (15.0 + x_5) : (10.0 + x_7))) > (((17.0 + x_11) > (20.0 + x_12)? (17.0 + x_11) : (20.0 + x_12)) > ((7.0 + x_13) > ((12.0 + x_14) > (7.0 + x_16)? (12.0 + x_14) : (7.0 + x_16))? (7.0 + x_13) : ((12.0 + x_14) > (7.0 + x_16)? (12.0 + x_14) : (7.0 + x_16)))? ((17.0 + x_11) > (20.0 + x_12)? (17.0 + x_11) : (20.0 + x_12)) : ((7.0 + x_13) > ((12.0 + x_14) > (7.0 + x_16)? (12.0 + x_14) : (7.0 + x_16))? (7.0 + x_13) : ((12.0 + x_14) > (7.0 + x_16)? (12.0 + x_14) : (7.0 + x_16))))? (((10.0 + x_0) > (16.0 + x_3)? (10.0 + x_0) : (16.0 + x_3)) > ((15.0 + x_5) > (10.0 + x_7)? (15.0 + x_5) : (10.0 + x_7))? ((10.0 + x_0) > (16.0 + x_3)? (10.0 + x_0) : (16.0 + x_3)) : ((15.0 + x_5) > (10.0 + x_7)? (15.0 + x_5) : (10.0 + x_7))) : (((17.0 + x_11) > (20.0 + x_12)? (17.0 + x_11) : (20.0 + x_12)) > ((7.0 + x_13) > ((12.0 + x_14) > (7.0 + x_16)? (12.0 + x_14) : (7.0 + x_16))? (7.0 + x_13) : ((12.0 + x_14) > (7.0 + x_16)? (12.0 + x_14) : (7.0 + x_16)))? ((17.0 + x_11) > (20.0 + x_12)? (17.0 + x_11) : (20.0 + x_12)) : ((7.0 + x_13) > ((12.0 + x_14) > (7.0 + x_16)? (12.0 + x_14) : (7.0 + x_16))? (7.0 + x_13) : ((12.0 + x_14) > (7.0 + x_16)? (12.0 + x_14) : (7.0 + x_16))))) > ((((17.0 + x_17) > (1.0 + x_21)? (17.0 + x_17) : (1.0 + x_21)) > ((13.0 + x_22) > (13.0 + x_25)? (13.0 + x_22) : (13.0 + x_25))? ((17.0 + x_17) > (1.0 + x_21)? (17.0 + x_17) : (1.0 + x_21)) : ((13.0 + x_22) > (13.0 + x_25)? (13.0 + x_22) : (13.0 + x_25))) > (((1.0 + x_29) > (6.0 + x_30)? (1.0 + x_29) : (6.0 + x_30)) > ((19.0 + x_31) > ((12.0 + x_34) > (3.0 + x_35)? (12.0 + x_34) : (3.0 + x_35))? (19.0 + x_31) : ((12.0 + x_34) > (3.0 + x_35)? (12.0 + x_34) : (3.0 + x_35)))? ((1.0 + x_29) > (6.0 + x_30)? (1.0 + x_29) : (6.0 + x_30)) : ((19.0 + x_31) > ((12.0 + x_34) > (3.0 + x_35)? (12.0 + x_34) : (3.0 + x_35))? (19.0 + x_31) : ((12.0 + x_34) > (3.0 + x_35)? (12.0 + x_34) : (3.0 + x_35))))? (((17.0 + x_17) > (1.0 + x_21)? (17.0 + x_17) : (1.0 + x_21)) > ((13.0 + x_22) > (13.0 + x_25)? (13.0 + x_22) : (13.0 + x_25))? ((17.0 + x_17) > (1.0 + x_21)? (17.0 + x_17) : (1.0 + x_21)) : ((13.0 + x_22) > (13.0 + x_25)? (13.0 + x_22) : (13.0 + x_25))) : (((1.0 + x_29) > (6.0 + x_30)? (1.0 + x_29) : (6.0 + x_30)) > ((19.0 + x_31) > ((12.0 + x_34) > (3.0 + x_35)? (12.0 + x_34) : (3.0 + x_35))? (19.0 + x_31) : ((12.0 + x_34) > (3.0 + x_35)? (12.0 + x_34) : (3.0 + x_35)))? ((1.0 + x_29) > (6.0 + x_30)? (1.0 + x_29) : (6.0 + x_30)) : ((19.0 + x_31) > ((12.0 + x_34) > (3.0 + x_35)? (12.0 + x_34) : (3.0 + x_35))? (19.0 + x_31) : ((12.0 + x_34) > (3.0 + x_35)? (12.0 + x_34) : (3.0 + x_35)))))? ((((10.0 + x_0) > (16.0 + x_3)? (10.0 + x_0) : (16.0 + x_3)) > ((15.0 + x_5) > (10.0 + x_7)? (15.0 + x_5) : (10.0 + x_7))? ((10.0 + x_0) > (16.0 + x_3)? (10.0 + x_0) : (16.0 + x_3)) : ((15.0 + x_5) > (10.0 + x_7)? (15.0 + x_5) : (10.0 + x_7))) > (((17.0 + x_11) > (20.0 + x_12)? (17.0 + x_11) : (20.0 + x_12)) > ((7.0 + x_13) > ((12.0 + x_14) > (7.0 + x_16)? (12.0 + x_14) : (7.0 + x_16))? (7.0 + x_13) : ((12.0 + x_14) > (7.0 + x_16)? (12.0 + x_14) : (7.0 + x_16)))? ((17.0 + x_11) > (20.0 + x_12)? (17.0 + x_11) : (20.0 + x_12)) : ((7.0 + x_13) > ((12.0 + x_14) > (7.0 + x_16)? (12.0 + x_14) : (7.0 + x_16))? (7.0 + x_13) : ((12.0 + x_14) > (7.0 + x_16)? (12.0 + x_14) : (7.0 + x_16))))? (((10.0 + x_0) > (16.0 + x_3)? (10.0 + x_0) : (16.0 + x_3)) > ((15.0 + x_5) > (10.0 + x_7)? (15.0 + x_5) : (10.0 + x_7))? ((10.0 + x_0) > (16.0 + x_3)? (10.0 + x_0) : (16.0 + x_3)) : ((15.0 + x_5) > (10.0 + x_7)? (15.0 + x_5) : (10.0 + x_7))) : (((17.0 + x_11) > (20.0 + x_12)? (17.0 + x_11) : (20.0 + x_12)) > ((7.0 + x_13) > ((12.0 + x_14) > (7.0 + x_16)? (12.0 + x_14) : (7.0 + x_16))? (7.0 + x_13) : ((12.0 + x_14) > (7.0 + x_16)? (12.0 + x_14) : (7.0 + x_16)))? ((17.0 + x_11) > (20.0 + x_12)? (17.0 + x_11) : (20.0 + x_12)) : ((7.0 + x_13) > ((12.0 + x_14) > (7.0 + x_16)? (12.0 + x_14) : (7.0 + x_16))? (7.0 + x_13) : ((12.0 + x_14) > (7.0 + x_16)? (12.0 + x_14) : (7.0 + x_16))))) : ((((17.0 + x_17) > (1.0 + x_21)? (17.0 + x_17) : (1.0 + x_21)) > ((13.0 + x_22) > (13.0 + x_25)? (13.0 + x_22) : (13.0 + x_25))? ((17.0 + x_17) > (1.0 + x_21)? (17.0 + x_17) : (1.0 + x_21)) : ((13.0 + x_22) > (13.0 + x_25)? (13.0 + x_22) : (13.0 + x_25))) > (((1.0 + x_29) > (6.0 + x_30)? (1.0 + x_29) : (6.0 + x_30)) > ((19.0 + x_31) > ((12.0 + x_34) > (3.0 + x_35)? (12.0 + x_34) : (3.0 + x_35))? (19.0 + x_31) : ((12.0 + x_34) > (3.0 + x_35)? (12.0 + x_34) : (3.0 + x_35)))? ((1.0 + x_29) > (6.0 + x_30)? (1.0 + x_29) : (6.0 + x_30)) : ((19.0 + x_31) > ((12.0 + x_34) > (3.0 + x_35)? (12.0 + x_34) : (3.0 + x_35))? (19.0 + x_31) : ((12.0 + x_34) > (3.0 + x_35)? (12.0 + x_34) : (3.0 + x_35))))? (((17.0 + x_17) > (1.0 + x_21)? (17.0 + x_17) : (1.0 + x_21)) > ((13.0 + x_22) > (13.0 + x_25)? (13.0 + x_22) : (13.0 + x_25))? ((17.0 + x_17) > (1.0 + x_21)? (17.0 + x_17) : (1.0 + x_21)) : ((13.0 + x_22) > (13.0 + x_25)? (13.0 + x_22) : (13.0 + x_25))) : (((1.0 + x_29) > (6.0 + x_30)? (1.0 + x_29) : (6.0 + x_30)) > ((19.0 + x_31) > ((12.0 + x_34) > (3.0 + x_35)? (12.0 + x_34) : (3.0 + x_35))? (19.0 + x_31) : ((12.0 + x_34) > (3.0 + x_35)? (12.0 + x_34) : (3.0 + x_35)))? ((1.0 + x_29) > (6.0 + x_30)? (1.0 + x_29) : (6.0 + x_30)) : ((19.0 + x_31) > ((12.0 + x_34) > (3.0 + x_35)? (12.0 + x_34) : (3.0 + x_35))? (19.0 + x_31) : ((12.0 + x_34) > (3.0 + x_35)? (12.0 + x_34) : (3.0 + x_35))))));
x_18_ = (((((2.0 + x_0) > (7.0 + x_3)? (2.0 + x_0) : (7.0 + x_3)) > ((3.0 + x_4) > (7.0 + x_5)? (3.0 + x_4) : (7.0 + x_5))? ((2.0 + x_0) > (7.0 + x_3)? (2.0 + x_0) : (7.0 + x_3)) : ((3.0 + x_4) > (7.0 + x_5)? (3.0 + x_4) : (7.0 + x_5))) > (((15.0 + x_6) > (1.0 + x_8)? (15.0 + x_6) : (1.0 + x_8)) > ((5.0 + x_9) > ((1.0 + x_12) > (13.0 + x_13)? (1.0 + x_12) : (13.0 + x_13))? (5.0 + x_9) : ((1.0 + x_12) > (13.0 + x_13)? (1.0 + x_12) : (13.0 + x_13)))? ((15.0 + x_6) > (1.0 + x_8)? (15.0 + x_6) : (1.0 + x_8)) : ((5.0 + x_9) > ((1.0 + x_12) > (13.0 + x_13)? (1.0 + x_12) : (13.0 + x_13))? (5.0 + x_9) : ((1.0 + x_12) > (13.0 + x_13)? (1.0 + x_12) : (13.0 + x_13))))? (((2.0 + x_0) > (7.0 + x_3)? (2.0 + x_0) : (7.0 + x_3)) > ((3.0 + x_4) > (7.0 + x_5)? (3.0 + x_4) : (7.0 + x_5))? ((2.0 + x_0) > (7.0 + x_3)? (2.0 + x_0) : (7.0 + x_3)) : ((3.0 + x_4) > (7.0 + x_5)? (3.0 + x_4) : (7.0 + x_5))) : (((15.0 + x_6) > (1.0 + x_8)? (15.0 + x_6) : (1.0 + x_8)) > ((5.0 + x_9) > ((1.0 + x_12) > (13.0 + x_13)? (1.0 + x_12) : (13.0 + x_13))? (5.0 + x_9) : ((1.0 + x_12) > (13.0 + x_13)? (1.0 + x_12) : (13.0 + x_13)))? ((15.0 + x_6) > (1.0 + x_8)? (15.0 + x_6) : (1.0 + x_8)) : ((5.0 + x_9) > ((1.0 + x_12) > (13.0 + x_13)? (1.0 + x_12) : (13.0 + x_13))? (5.0 + x_9) : ((1.0 + x_12) > (13.0 + x_13)? (1.0 + x_12) : (13.0 + x_13))))) > ((((4.0 + x_14) > (15.0 + x_15)? (4.0 + x_14) : (15.0 + x_15)) > ((20.0 + x_16) > (16.0 + x_19)? (20.0 + x_16) : (16.0 + x_19))? ((4.0 + x_14) > (15.0 + x_15)? (4.0 + x_14) : (15.0 + x_15)) : ((20.0 + x_16) > (16.0 + x_19)? (20.0 + x_16) : (16.0 + x_19))) > (((15.0 + x_20) > (12.0 + x_26)? (15.0 + x_20) : (12.0 + x_26)) > ((13.0 + x_28) > ((12.0 + x_30) > (13.0 + x_33)? (12.0 + x_30) : (13.0 + x_33))? (13.0 + x_28) : ((12.0 + x_30) > (13.0 + x_33)? (12.0 + x_30) : (13.0 + x_33)))? ((15.0 + x_20) > (12.0 + x_26)? (15.0 + x_20) : (12.0 + x_26)) : ((13.0 + x_28) > ((12.0 + x_30) > (13.0 + x_33)? (12.0 + x_30) : (13.0 + x_33))? (13.0 + x_28) : ((12.0 + x_30) > (13.0 + x_33)? (12.0 + x_30) : (13.0 + x_33))))? (((4.0 + x_14) > (15.0 + x_15)? (4.0 + x_14) : (15.0 + x_15)) > ((20.0 + x_16) > (16.0 + x_19)? (20.0 + x_16) : (16.0 + x_19))? ((4.0 + x_14) > (15.0 + x_15)? (4.0 + x_14) : (15.0 + x_15)) : ((20.0 + x_16) > (16.0 + x_19)? (20.0 + x_16) : (16.0 + x_19))) : (((15.0 + x_20) > (12.0 + x_26)? (15.0 + x_20) : (12.0 + x_26)) > ((13.0 + x_28) > ((12.0 + x_30) > (13.0 + x_33)? (12.0 + x_30) : (13.0 + x_33))? (13.0 + x_28) : ((12.0 + x_30) > (13.0 + x_33)? (12.0 + x_30) : (13.0 + x_33)))? ((15.0 + x_20) > (12.0 + x_26)? (15.0 + x_20) : (12.0 + x_26)) : ((13.0 + x_28) > ((12.0 + x_30) > (13.0 + x_33)? (12.0 + x_30) : (13.0 + x_33))? (13.0 + x_28) : ((12.0 + x_30) > (13.0 + x_33)? (12.0 + x_30) : (13.0 + x_33)))))? ((((2.0 + x_0) > (7.0 + x_3)? (2.0 + x_0) : (7.0 + x_3)) > ((3.0 + x_4) > (7.0 + x_5)? (3.0 + x_4) : (7.0 + x_5))? ((2.0 + x_0) > (7.0 + x_3)? (2.0 + x_0) : (7.0 + x_3)) : ((3.0 + x_4) > (7.0 + x_5)? (3.0 + x_4) : (7.0 + x_5))) > (((15.0 + x_6) > (1.0 + x_8)? (15.0 + x_6) : (1.0 + x_8)) > ((5.0 + x_9) > ((1.0 + x_12) > (13.0 + x_13)? (1.0 + x_12) : (13.0 + x_13))? (5.0 + x_9) : ((1.0 + x_12) > (13.0 + x_13)? (1.0 + x_12) : (13.0 + x_13)))? ((15.0 + x_6) > (1.0 + x_8)? (15.0 + x_6) : (1.0 + x_8)) : ((5.0 + x_9) > ((1.0 + x_12) > (13.0 + x_13)? (1.0 + x_12) : (13.0 + x_13))? (5.0 + x_9) : ((1.0 + x_12) > (13.0 + x_13)? (1.0 + x_12) : (13.0 + x_13))))? (((2.0 + x_0) > (7.0 + x_3)? (2.0 + x_0) : (7.0 + x_3)) > ((3.0 + x_4) > (7.0 + x_5)? (3.0 + x_4) : (7.0 + x_5))? ((2.0 + x_0) > (7.0 + x_3)? (2.0 + x_0) : (7.0 + x_3)) : ((3.0 + x_4) > (7.0 + x_5)? (3.0 + x_4) : (7.0 + x_5))) : (((15.0 + x_6) > (1.0 + x_8)? (15.0 + x_6) : (1.0 + x_8)) > ((5.0 + x_9) > ((1.0 + x_12) > (13.0 + x_13)? (1.0 + x_12) : (13.0 + x_13))? (5.0 + x_9) : ((1.0 + x_12) > (13.0 + x_13)? (1.0 + x_12) : (13.0 + x_13)))? ((15.0 + x_6) > (1.0 + x_8)? (15.0 + x_6) : (1.0 + x_8)) : ((5.0 + x_9) > ((1.0 + x_12) > (13.0 + x_13)? (1.0 + x_12) : (13.0 + x_13))? (5.0 + x_9) : ((1.0 + x_12) > (13.0 + x_13)? (1.0 + x_12) : (13.0 + x_13))))) : ((((4.0 + x_14) > (15.0 + x_15)? (4.0 + x_14) : (15.0 + x_15)) > ((20.0 + x_16) > (16.0 + x_19)? (20.0 + x_16) : (16.0 + x_19))? ((4.0 + x_14) > (15.0 + x_15)? (4.0 + x_14) : (15.0 + x_15)) : ((20.0 + x_16) > (16.0 + x_19)? (20.0 + x_16) : (16.0 + x_19))) > (((15.0 + x_20) > (12.0 + x_26)? (15.0 + x_20) : (12.0 + x_26)) > ((13.0 + x_28) > ((12.0 + x_30) > (13.0 + x_33)? (12.0 + x_30) : (13.0 + x_33))? (13.0 + x_28) : ((12.0 + x_30) > (13.0 + x_33)? (12.0 + x_30) : (13.0 + x_33)))? ((15.0 + x_20) > (12.0 + x_26)? (15.0 + x_20) : (12.0 + x_26)) : ((13.0 + x_28) > ((12.0 + x_30) > (13.0 + x_33)? (12.0 + x_30) : (13.0 + x_33))? (13.0 + x_28) : ((12.0 + x_30) > (13.0 + x_33)? (12.0 + x_30) : (13.0 + x_33))))? (((4.0 + x_14) > (15.0 + x_15)? (4.0 + x_14) : (15.0 + x_15)) > ((20.0 + x_16) > (16.0 + x_19)? (20.0 + x_16) : (16.0 + x_19))? ((4.0 + x_14) > (15.0 + x_15)? (4.0 + x_14) : (15.0 + x_15)) : ((20.0 + x_16) > (16.0 + x_19)? (20.0 + x_16) : (16.0 + x_19))) : (((15.0 + x_20) > (12.0 + x_26)? (15.0 + x_20) : (12.0 + x_26)) > ((13.0 + x_28) > ((12.0 + x_30) > (13.0 + x_33)? (12.0 + x_30) : (13.0 + x_33))? (13.0 + x_28) : ((12.0 + x_30) > (13.0 + x_33)? (12.0 + x_30) : (13.0 + x_33)))? ((15.0 + x_20) > (12.0 + x_26)? (15.0 + x_20) : (12.0 + x_26)) : ((13.0 + x_28) > ((12.0 + x_30) > (13.0 + x_33)? (12.0 + x_30) : (13.0 + x_33))? (13.0 + x_28) : ((12.0 + x_30) > (13.0 + x_33)? (12.0 + x_30) : (13.0 + x_33))))));
x_19_ = (((((6.0 + x_1) > (3.0 + x_3)? (6.0 + x_1) : (3.0 + x_3)) > ((8.0 + x_4) > (12.0 + x_7)? (8.0 + x_4) : (12.0 + x_7))? ((6.0 + x_1) > (3.0 + x_3)? (6.0 + x_1) : (3.0 + x_3)) : ((8.0 + x_4) > (12.0 + x_7)? (8.0 + x_4) : (12.0 + x_7))) > (((8.0 + x_10) > (14.0 + x_11)? (8.0 + x_10) : (14.0 + x_11)) > ((16.0 + x_15) > ((9.0 + x_19) > (5.0 + x_21)? (9.0 + x_19) : (5.0 + x_21))? (16.0 + x_15) : ((9.0 + x_19) > (5.0 + x_21)? (9.0 + x_19) : (5.0 + x_21)))? ((8.0 + x_10) > (14.0 + x_11)? (8.0 + x_10) : (14.0 + x_11)) : ((16.0 + x_15) > ((9.0 + x_19) > (5.0 + x_21)? (9.0 + x_19) : (5.0 + x_21))? (16.0 + x_15) : ((9.0 + x_19) > (5.0 + x_21)? (9.0 + x_19) : (5.0 + x_21))))? (((6.0 + x_1) > (3.0 + x_3)? (6.0 + x_1) : (3.0 + x_3)) > ((8.0 + x_4) > (12.0 + x_7)? (8.0 + x_4) : (12.0 + x_7))? ((6.0 + x_1) > (3.0 + x_3)? (6.0 + x_1) : (3.0 + x_3)) : ((8.0 + x_4) > (12.0 + x_7)? (8.0 + x_4) : (12.0 + x_7))) : (((8.0 + x_10) > (14.0 + x_11)? (8.0 + x_10) : (14.0 + x_11)) > ((16.0 + x_15) > ((9.0 + x_19) > (5.0 + x_21)? (9.0 + x_19) : (5.0 + x_21))? (16.0 + x_15) : ((9.0 + x_19) > (5.0 + x_21)? (9.0 + x_19) : (5.0 + x_21)))? ((8.0 + x_10) > (14.0 + x_11)? (8.0 + x_10) : (14.0 + x_11)) : ((16.0 + x_15) > ((9.0 + x_19) > (5.0 + x_21)? (9.0 + x_19) : (5.0 + x_21))? (16.0 + x_15) : ((9.0 + x_19) > (5.0 + x_21)? (9.0 + x_19) : (5.0 + x_21))))) > ((((17.0 + x_22) > (11.0 + x_23)? (17.0 + x_22) : (11.0 + x_23)) > ((1.0 + x_25) > (8.0 + x_26)? (1.0 + x_25) : (8.0 + x_26))? ((17.0 + x_22) > (11.0 + x_23)? (17.0 + x_22) : (11.0 + x_23)) : ((1.0 + x_25) > (8.0 + x_26)? (1.0 + x_25) : (8.0 + x_26))) > (((19.0 + x_28) > (1.0 + x_29)? (19.0 + x_28) : (1.0 + x_29)) > ((16.0 + x_31) > ((6.0 + x_32) > (12.0 + x_33)? (6.0 + x_32) : (12.0 + x_33))? (16.0 + x_31) : ((6.0 + x_32) > (12.0 + x_33)? (6.0 + x_32) : (12.0 + x_33)))? ((19.0 + x_28) > (1.0 + x_29)? (19.0 + x_28) : (1.0 + x_29)) : ((16.0 + x_31) > ((6.0 + x_32) > (12.0 + x_33)? (6.0 + x_32) : (12.0 + x_33))? (16.0 + x_31) : ((6.0 + x_32) > (12.0 + x_33)? (6.0 + x_32) : (12.0 + x_33))))? (((17.0 + x_22) > (11.0 + x_23)? (17.0 + x_22) : (11.0 + x_23)) > ((1.0 + x_25) > (8.0 + x_26)? (1.0 + x_25) : (8.0 + x_26))? ((17.0 + x_22) > (11.0 + x_23)? (17.0 + x_22) : (11.0 + x_23)) : ((1.0 + x_25) > (8.0 + x_26)? (1.0 + x_25) : (8.0 + x_26))) : (((19.0 + x_28) > (1.0 + x_29)? (19.0 + x_28) : (1.0 + x_29)) > ((16.0 + x_31) > ((6.0 + x_32) > (12.0 + x_33)? (6.0 + x_32) : (12.0 + x_33))? (16.0 + x_31) : ((6.0 + x_32) > (12.0 + x_33)? (6.0 + x_32) : (12.0 + x_33)))? ((19.0 + x_28) > (1.0 + x_29)? (19.0 + x_28) : (1.0 + x_29)) : ((16.0 + x_31) > ((6.0 + x_32) > (12.0 + x_33)? (6.0 + x_32) : (12.0 + x_33))? (16.0 + x_31) : ((6.0 + x_32) > (12.0 + x_33)? (6.0 + x_32) : (12.0 + x_33)))))? ((((6.0 + x_1) > (3.0 + x_3)? (6.0 + x_1) : (3.0 + x_3)) > ((8.0 + x_4) > (12.0 + x_7)? (8.0 + x_4) : (12.0 + x_7))? ((6.0 + x_1) > (3.0 + x_3)? (6.0 + x_1) : (3.0 + x_3)) : ((8.0 + x_4) > (12.0 + x_7)? (8.0 + x_4) : (12.0 + x_7))) > (((8.0 + x_10) > (14.0 + x_11)? (8.0 + x_10) : (14.0 + x_11)) > ((16.0 + x_15) > ((9.0 + x_19) > (5.0 + x_21)? (9.0 + x_19) : (5.0 + x_21))? (16.0 + x_15) : ((9.0 + x_19) > (5.0 + x_21)? (9.0 + x_19) : (5.0 + x_21)))? ((8.0 + x_10) > (14.0 + x_11)? (8.0 + x_10) : (14.0 + x_11)) : ((16.0 + x_15) > ((9.0 + x_19) > (5.0 + x_21)? (9.0 + x_19) : (5.0 + x_21))? (16.0 + x_15) : ((9.0 + x_19) > (5.0 + x_21)? (9.0 + x_19) : (5.0 + x_21))))? (((6.0 + x_1) > (3.0 + x_3)? (6.0 + x_1) : (3.0 + x_3)) > ((8.0 + x_4) > (12.0 + x_7)? (8.0 + x_4) : (12.0 + x_7))? ((6.0 + x_1) > (3.0 + x_3)? (6.0 + x_1) : (3.0 + x_3)) : ((8.0 + x_4) > (12.0 + x_7)? (8.0 + x_4) : (12.0 + x_7))) : (((8.0 + x_10) > (14.0 + x_11)? (8.0 + x_10) : (14.0 + x_11)) > ((16.0 + x_15) > ((9.0 + x_19) > (5.0 + x_21)? (9.0 + x_19) : (5.0 + x_21))? (16.0 + x_15) : ((9.0 + x_19) > (5.0 + x_21)? (9.0 + x_19) : (5.0 + x_21)))? ((8.0 + x_10) > (14.0 + x_11)? (8.0 + x_10) : (14.0 + x_11)) : ((16.0 + x_15) > ((9.0 + x_19) > (5.0 + x_21)? (9.0 + x_19) : (5.0 + x_21))? (16.0 + x_15) : ((9.0 + x_19) > (5.0 + x_21)? (9.0 + x_19) : (5.0 + x_21))))) : ((((17.0 + x_22) > (11.0 + x_23)? (17.0 + x_22) : (11.0 + x_23)) > ((1.0 + x_25) > (8.0 + x_26)? (1.0 + x_25) : (8.0 + x_26))? ((17.0 + x_22) > (11.0 + x_23)? (17.0 + x_22) : (11.0 + x_23)) : ((1.0 + x_25) > (8.0 + x_26)? (1.0 + x_25) : (8.0 + x_26))) > (((19.0 + x_28) > (1.0 + x_29)? (19.0 + x_28) : (1.0 + x_29)) > ((16.0 + x_31) > ((6.0 + x_32) > (12.0 + x_33)? (6.0 + x_32) : (12.0 + x_33))? (16.0 + x_31) : ((6.0 + x_32) > (12.0 + x_33)? (6.0 + x_32) : (12.0 + x_33)))? ((19.0 + x_28) > (1.0 + x_29)? (19.0 + x_28) : (1.0 + x_29)) : ((16.0 + x_31) > ((6.0 + x_32) > (12.0 + x_33)? (6.0 + x_32) : (12.0 + x_33))? (16.0 + x_31) : ((6.0 + x_32) > (12.0 + x_33)? (6.0 + x_32) : (12.0 + x_33))))? (((17.0 + x_22) > (11.0 + x_23)? (17.0 + x_22) : (11.0 + x_23)) > ((1.0 + x_25) > (8.0 + x_26)? (1.0 + x_25) : (8.0 + x_26))? ((17.0 + x_22) > (11.0 + x_23)? (17.0 + x_22) : (11.0 + x_23)) : ((1.0 + x_25) > (8.0 + x_26)? (1.0 + x_25) : (8.0 + x_26))) : (((19.0 + x_28) > (1.0 + x_29)? (19.0 + x_28) : (1.0 + x_29)) > ((16.0 + x_31) > ((6.0 + x_32) > (12.0 + x_33)? (6.0 + x_32) : (12.0 + x_33))? (16.0 + x_31) : ((6.0 + x_32) > (12.0 + x_33)? (6.0 + x_32) : (12.0 + x_33)))? ((19.0 + x_28) > (1.0 + x_29)? (19.0 + x_28) : (1.0 + x_29)) : ((16.0 + x_31) > ((6.0 + x_32) > (12.0 + x_33)? (6.0 + x_32) : (12.0 + x_33))? (16.0 + x_31) : ((6.0 + x_32) > (12.0 + x_33)? (6.0 + x_32) : (12.0 + x_33))))));
x_20_ = (((((2.0 + x_2) > (8.0 + x_5)? (2.0 + x_2) : (8.0 + x_5)) > ((18.0 + x_6) > (9.0 + x_8)? (18.0 + x_6) : (9.0 + x_8))? ((2.0 + x_2) > (8.0 + x_5)? (2.0 + x_2) : (8.0 + x_5)) : ((18.0 + x_6) > (9.0 + x_8)? (18.0 + x_6) : (9.0 + x_8))) > (((15.0 + x_10) > (14.0 + x_11)? (15.0 + x_10) : (14.0 + x_11)) > ((20.0 + x_12) > ((11.0 + x_16) > (1.0 + x_17)? (11.0 + x_16) : (1.0 + x_17))? (20.0 + x_12) : ((11.0 + x_16) > (1.0 + x_17)? (11.0 + x_16) : (1.0 + x_17)))? ((15.0 + x_10) > (14.0 + x_11)? (15.0 + x_10) : (14.0 + x_11)) : ((20.0 + x_12) > ((11.0 + x_16) > (1.0 + x_17)? (11.0 + x_16) : (1.0 + x_17))? (20.0 + x_12) : ((11.0 + x_16) > (1.0 + x_17)? (11.0 + x_16) : (1.0 + x_17))))? (((2.0 + x_2) > (8.0 + x_5)? (2.0 + x_2) : (8.0 + x_5)) > ((18.0 + x_6) > (9.0 + x_8)? (18.0 + x_6) : (9.0 + x_8))? ((2.0 + x_2) > (8.0 + x_5)? (2.0 + x_2) : (8.0 + x_5)) : ((18.0 + x_6) > (9.0 + x_8)? (18.0 + x_6) : (9.0 + x_8))) : (((15.0 + x_10) > (14.0 + x_11)? (15.0 + x_10) : (14.0 + x_11)) > ((20.0 + x_12) > ((11.0 + x_16) > (1.0 + x_17)? (11.0 + x_16) : (1.0 + x_17))? (20.0 + x_12) : ((11.0 + x_16) > (1.0 + x_17)? (11.0 + x_16) : (1.0 + x_17)))? ((15.0 + x_10) > (14.0 + x_11)? (15.0 + x_10) : (14.0 + x_11)) : ((20.0 + x_12) > ((11.0 + x_16) > (1.0 + x_17)? (11.0 + x_16) : (1.0 + x_17))? (20.0 + x_12) : ((11.0 + x_16) > (1.0 + x_17)? (11.0 + x_16) : (1.0 + x_17))))) > ((((12.0 + x_21) > (18.0 + x_24)? (12.0 + x_21) : (18.0 + x_24)) > ((13.0 + x_27) > (4.0 + x_28)? (13.0 + x_27) : (4.0 + x_28))? ((12.0 + x_21) > (18.0 + x_24)? (12.0 + x_21) : (18.0 + x_24)) : ((13.0 + x_27) > (4.0 + x_28)? (13.0 + x_27) : (4.0 + x_28))) > (((8.0 + x_29) > (3.0 + x_30)? (8.0 + x_29) : (3.0 + x_30)) > ((20.0 + x_32) > ((13.0 + x_33) > (16.0 + x_34)? (13.0 + x_33) : (16.0 + x_34))? (20.0 + x_32) : ((13.0 + x_33) > (16.0 + x_34)? (13.0 + x_33) : (16.0 + x_34)))? ((8.0 + x_29) > (3.0 + x_30)? (8.0 + x_29) : (3.0 + x_30)) : ((20.0 + x_32) > ((13.0 + x_33) > (16.0 + x_34)? (13.0 + x_33) : (16.0 + x_34))? (20.0 + x_32) : ((13.0 + x_33) > (16.0 + x_34)? (13.0 + x_33) : (16.0 + x_34))))? (((12.0 + x_21) > (18.0 + x_24)? (12.0 + x_21) : (18.0 + x_24)) > ((13.0 + x_27) > (4.0 + x_28)? (13.0 + x_27) : (4.0 + x_28))? ((12.0 + x_21) > (18.0 + x_24)? (12.0 + x_21) : (18.0 + x_24)) : ((13.0 + x_27) > (4.0 + x_28)? (13.0 + x_27) : (4.0 + x_28))) : (((8.0 + x_29) > (3.0 + x_30)? (8.0 + x_29) : (3.0 + x_30)) > ((20.0 + x_32) > ((13.0 + x_33) > (16.0 + x_34)? (13.0 + x_33) : (16.0 + x_34))? (20.0 + x_32) : ((13.0 + x_33) > (16.0 + x_34)? (13.0 + x_33) : (16.0 + x_34)))? ((8.0 + x_29) > (3.0 + x_30)? (8.0 + x_29) : (3.0 + x_30)) : ((20.0 + x_32) > ((13.0 + x_33) > (16.0 + x_34)? (13.0 + x_33) : (16.0 + x_34))? (20.0 + x_32) : ((13.0 + x_33) > (16.0 + x_34)? (13.0 + x_33) : (16.0 + x_34)))))? ((((2.0 + x_2) > (8.0 + x_5)? (2.0 + x_2) : (8.0 + x_5)) > ((18.0 + x_6) > (9.0 + x_8)? (18.0 + x_6) : (9.0 + x_8))? ((2.0 + x_2) > (8.0 + x_5)? (2.0 + x_2) : (8.0 + x_5)) : ((18.0 + x_6) > (9.0 + x_8)? (18.0 + x_6) : (9.0 + x_8))) > (((15.0 + x_10) > (14.0 + x_11)? (15.0 + x_10) : (14.0 + x_11)) > ((20.0 + x_12) > ((11.0 + x_16) > (1.0 + x_17)? (11.0 + x_16) : (1.0 + x_17))? (20.0 + x_12) : ((11.0 + x_16) > (1.0 + x_17)? (11.0 + x_16) : (1.0 + x_17)))? ((15.0 + x_10) > (14.0 + x_11)? (15.0 + x_10) : (14.0 + x_11)) : ((20.0 + x_12) > ((11.0 + x_16) > (1.0 + x_17)? (11.0 + x_16) : (1.0 + x_17))? (20.0 + x_12) : ((11.0 + x_16) > (1.0 + x_17)? (11.0 + x_16) : (1.0 + x_17))))? (((2.0 + x_2) > (8.0 + x_5)? (2.0 + x_2) : (8.0 + x_5)) > ((18.0 + x_6) > (9.0 + x_8)? (18.0 + x_6) : (9.0 + x_8))? ((2.0 + x_2) > (8.0 + x_5)? (2.0 + x_2) : (8.0 + x_5)) : ((18.0 + x_6) > (9.0 + x_8)? (18.0 + x_6) : (9.0 + x_8))) : (((15.0 + x_10) > (14.0 + x_11)? (15.0 + x_10) : (14.0 + x_11)) > ((20.0 + x_12) > ((11.0 + x_16) > (1.0 + x_17)? (11.0 + x_16) : (1.0 + x_17))? (20.0 + x_12) : ((11.0 + x_16) > (1.0 + x_17)? (11.0 + x_16) : (1.0 + x_17)))? ((15.0 + x_10) > (14.0 + x_11)? (15.0 + x_10) : (14.0 + x_11)) : ((20.0 + x_12) > ((11.0 + x_16) > (1.0 + x_17)? (11.0 + x_16) : (1.0 + x_17))? (20.0 + x_12) : ((11.0 + x_16) > (1.0 + x_17)? (11.0 + x_16) : (1.0 + x_17))))) : ((((12.0 + x_21) > (18.0 + x_24)? (12.0 + x_21) : (18.0 + x_24)) > ((13.0 + x_27) > (4.0 + x_28)? (13.0 + x_27) : (4.0 + x_28))? ((12.0 + x_21) > (18.0 + x_24)? (12.0 + x_21) : (18.0 + x_24)) : ((13.0 + x_27) > (4.0 + x_28)? (13.0 + x_27) : (4.0 + x_28))) > (((8.0 + x_29) > (3.0 + x_30)? (8.0 + x_29) : (3.0 + x_30)) > ((20.0 + x_32) > ((13.0 + x_33) > (16.0 + x_34)? (13.0 + x_33) : (16.0 + x_34))? (20.0 + x_32) : ((13.0 + x_33) > (16.0 + x_34)? (13.0 + x_33) : (16.0 + x_34)))? ((8.0 + x_29) > (3.0 + x_30)? (8.0 + x_29) : (3.0 + x_30)) : ((20.0 + x_32) > ((13.0 + x_33) > (16.0 + x_34)? (13.0 + x_33) : (16.0 + x_34))? (20.0 + x_32) : ((13.0 + x_33) > (16.0 + x_34)? (13.0 + x_33) : (16.0 + x_34))))? (((12.0 + x_21) > (18.0 + x_24)? (12.0 + x_21) : (18.0 + x_24)) > ((13.0 + x_27) > (4.0 + x_28)? (13.0 + x_27) : (4.0 + x_28))? ((12.0 + x_21) > (18.0 + x_24)? (12.0 + x_21) : (18.0 + x_24)) : ((13.0 + x_27) > (4.0 + x_28)? (13.0 + x_27) : (4.0 + x_28))) : (((8.0 + x_29) > (3.0 + x_30)? (8.0 + x_29) : (3.0 + x_30)) > ((20.0 + x_32) > ((13.0 + x_33) > (16.0 + x_34)? (13.0 + x_33) : (16.0 + x_34))? (20.0 + x_32) : ((13.0 + x_33) > (16.0 + x_34)? (13.0 + x_33) : (16.0 + x_34)))? ((8.0 + x_29) > (3.0 + x_30)? (8.0 + x_29) : (3.0 + x_30)) : ((20.0 + x_32) > ((13.0 + x_33) > (16.0 + x_34)? (13.0 + x_33) : (16.0 + x_34))? (20.0 + x_32) : ((13.0 + x_33) > (16.0 + x_34)? (13.0 + x_33) : (16.0 + x_34))))));
x_21_ = (((((17.0 + x_0) > (16.0 + x_2)? (17.0 + x_0) : (16.0 + x_2)) > ((6.0 + x_5) > (11.0 + x_7)? (6.0 + x_5) : (11.0 + x_7))? ((17.0 + x_0) > (16.0 + x_2)? (17.0 + x_0) : (16.0 + x_2)) : ((6.0 + x_5) > (11.0 + x_7)? (6.0 + x_5) : (11.0 + x_7))) > (((2.0 + x_9) > (4.0 + x_11)? (2.0 + x_9) : (4.0 + x_11)) > ((18.0 + x_13) > ((11.0 + x_15) > (16.0 + x_17)? (11.0 + x_15) : (16.0 + x_17))? (18.0 + x_13) : ((11.0 + x_15) > (16.0 + x_17)? (11.0 + x_15) : (16.0 + x_17)))? ((2.0 + x_9) > (4.0 + x_11)? (2.0 + x_9) : (4.0 + x_11)) : ((18.0 + x_13) > ((11.0 + x_15) > (16.0 + x_17)? (11.0 + x_15) : (16.0 + x_17))? (18.0 + x_13) : ((11.0 + x_15) > (16.0 + x_17)? (11.0 + x_15) : (16.0 + x_17))))? (((17.0 + x_0) > (16.0 + x_2)? (17.0 + x_0) : (16.0 + x_2)) > ((6.0 + x_5) > (11.0 + x_7)? (6.0 + x_5) : (11.0 + x_7))? ((17.0 + x_0) > (16.0 + x_2)? (17.0 + x_0) : (16.0 + x_2)) : ((6.0 + x_5) > (11.0 + x_7)? (6.0 + x_5) : (11.0 + x_7))) : (((2.0 + x_9) > (4.0 + x_11)? (2.0 + x_9) : (4.0 + x_11)) > ((18.0 + x_13) > ((11.0 + x_15) > (16.0 + x_17)? (11.0 + x_15) : (16.0 + x_17))? (18.0 + x_13) : ((11.0 + x_15) > (16.0 + x_17)? (11.0 + x_15) : (16.0 + x_17)))? ((2.0 + x_9) > (4.0 + x_11)? (2.0 + x_9) : (4.0 + x_11)) : ((18.0 + x_13) > ((11.0 + x_15) > (16.0 + x_17)? (11.0 + x_15) : (16.0 + x_17))? (18.0 + x_13) : ((11.0 + x_15) > (16.0 + x_17)? (11.0 + x_15) : (16.0 + x_17))))) > ((((15.0 + x_20) > (20.0 + x_21)? (15.0 + x_20) : (20.0 + x_21)) > ((14.0 + x_26) > (14.0 + x_27)? (14.0 + x_26) : (14.0 + x_27))? ((15.0 + x_20) > (20.0 + x_21)? (15.0 + x_20) : (20.0 + x_21)) : ((14.0 + x_26) > (14.0 + x_27)? (14.0 + x_26) : (14.0 + x_27))) > (((2.0 + x_29) > (9.0 + x_32)? (2.0 + x_29) : (9.0 + x_32)) > ((13.0 + x_33) > ((4.0 + x_34) > (16.0 + x_35)? (4.0 + x_34) : (16.0 + x_35))? (13.0 + x_33) : ((4.0 + x_34) > (16.0 + x_35)? (4.0 + x_34) : (16.0 + x_35)))? ((2.0 + x_29) > (9.0 + x_32)? (2.0 + x_29) : (9.0 + x_32)) : ((13.0 + x_33) > ((4.0 + x_34) > (16.0 + x_35)? (4.0 + x_34) : (16.0 + x_35))? (13.0 + x_33) : ((4.0 + x_34) > (16.0 + x_35)? (4.0 + x_34) : (16.0 + x_35))))? (((15.0 + x_20) > (20.0 + x_21)? (15.0 + x_20) : (20.0 + x_21)) > ((14.0 + x_26) > (14.0 + x_27)? (14.0 + x_26) : (14.0 + x_27))? ((15.0 + x_20) > (20.0 + x_21)? (15.0 + x_20) : (20.0 + x_21)) : ((14.0 + x_26) > (14.0 + x_27)? (14.0 + x_26) : (14.0 + x_27))) : (((2.0 + x_29) > (9.0 + x_32)? (2.0 + x_29) : (9.0 + x_32)) > ((13.0 + x_33) > ((4.0 + x_34) > (16.0 + x_35)? (4.0 + x_34) : (16.0 + x_35))? (13.0 + x_33) : ((4.0 + x_34) > (16.0 + x_35)? (4.0 + x_34) : (16.0 + x_35)))? ((2.0 + x_29) > (9.0 + x_32)? (2.0 + x_29) : (9.0 + x_32)) : ((13.0 + x_33) > ((4.0 + x_34) > (16.0 + x_35)? (4.0 + x_34) : (16.0 + x_35))? (13.0 + x_33) : ((4.0 + x_34) > (16.0 + x_35)? (4.0 + x_34) : (16.0 + x_35)))))? ((((17.0 + x_0) > (16.0 + x_2)? (17.0 + x_0) : (16.0 + x_2)) > ((6.0 + x_5) > (11.0 + x_7)? (6.0 + x_5) : (11.0 + x_7))? ((17.0 + x_0) > (16.0 + x_2)? (17.0 + x_0) : (16.0 + x_2)) : ((6.0 + x_5) > (11.0 + x_7)? (6.0 + x_5) : (11.0 + x_7))) > (((2.0 + x_9) > (4.0 + x_11)? (2.0 + x_9) : (4.0 + x_11)) > ((18.0 + x_13) > ((11.0 + x_15) > (16.0 + x_17)? (11.0 + x_15) : (16.0 + x_17))? (18.0 + x_13) : ((11.0 + x_15) > (16.0 + x_17)? (11.0 + x_15) : (16.0 + x_17)))? ((2.0 + x_9) > (4.0 + x_11)? (2.0 + x_9) : (4.0 + x_11)) : ((18.0 + x_13) > ((11.0 + x_15) > (16.0 + x_17)? (11.0 + x_15) : (16.0 + x_17))? (18.0 + x_13) : ((11.0 + x_15) > (16.0 + x_17)? (11.0 + x_15) : (16.0 + x_17))))? (((17.0 + x_0) > (16.0 + x_2)? (17.0 + x_0) : (16.0 + x_2)) > ((6.0 + x_5) > (11.0 + x_7)? (6.0 + x_5) : (11.0 + x_7))? ((17.0 + x_0) > (16.0 + x_2)? (17.0 + x_0) : (16.0 + x_2)) : ((6.0 + x_5) > (11.0 + x_7)? (6.0 + x_5) : (11.0 + x_7))) : (((2.0 + x_9) > (4.0 + x_11)? (2.0 + x_9) : (4.0 + x_11)) > ((18.0 + x_13) > ((11.0 + x_15) > (16.0 + x_17)? (11.0 + x_15) : (16.0 + x_17))? (18.0 + x_13) : ((11.0 + x_15) > (16.0 + x_17)? (11.0 + x_15) : (16.0 + x_17)))? ((2.0 + x_9) > (4.0 + x_11)? (2.0 + x_9) : (4.0 + x_11)) : ((18.0 + x_13) > ((11.0 + x_15) > (16.0 + x_17)? (11.0 + x_15) : (16.0 + x_17))? (18.0 + x_13) : ((11.0 + x_15) > (16.0 + x_17)? (11.0 + x_15) : (16.0 + x_17))))) : ((((15.0 + x_20) > (20.0 + x_21)? (15.0 + x_20) : (20.0 + x_21)) > ((14.0 + x_26) > (14.0 + x_27)? (14.0 + x_26) : (14.0 + x_27))? ((15.0 + x_20) > (20.0 + x_21)? (15.0 + x_20) : (20.0 + x_21)) : ((14.0 + x_26) > (14.0 + x_27)? (14.0 + x_26) : (14.0 + x_27))) > (((2.0 + x_29) > (9.0 + x_32)? (2.0 + x_29) : (9.0 + x_32)) > ((13.0 + x_33) > ((4.0 + x_34) > (16.0 + x_35)? (4.0 + x_34) : (16.0 + x_35))? (13.0 + x_33) : ((4.0 + x_34) > (16.0 + x_35)? (4.0 + x_34) : (16.0 + x_35)))? ((2.0 + x_29) > (9.0 + x_32)? (2.0 + x_29) : (9.0 + x_32)) : ((13.0 + x_33) > ((4.0 + x_34) > (16.0 + x_35)? (4.0 + x_34) : (16.0 + x_35))? (13.0 + x_33) : ((4.0 + x_34) > (16.0 + x_35)? (4.0 + x_34) : (16.0 + x_35))))? (((15.0 + x_20) > (20.0 + x_21)? (15.0 + x_20) : (20.0 + x_21)) > ((14.0 + x_26) > (14.0 + x_27)? (14.0 + x_26) : (14.0 + x_27))? ((15.0 + x_20) > (20.0 + x_21)? (15.0 + x_20) : (20.0 + x_21)) : ((14.0 + x_26) > (14.0 + x_27)? (14.0 + x_26) : (14.0 + x_27))) : (((2.0 + x_29) > (9.0 + x_32)? (2.0 + x_29) : (9.0 + x_32)) > ((13.0 + x_33) > ((4.0 + x_34) > (16.0 + x_35)? (4.0 + x_34) : (16.0 + x_35))? (13.0 + x_33) : ((4.0 + x_34) > (16.0 + x_35)? (4.0 + x_34) : (16.0 + x_35)))? ((2.0 + x_29) > (9.0 + x_32)? (2.0 + x_29) : (9.0 + x_32)) : ((13.0 + x_33) > ((4.0 + x_34) > (16.0 + x_35)? (4.0 + x_34) : (16.0 + x_35))? (13.0 + x_33) : ((4.0 + x_34) > (16.0 + x_35)? (4.0 + x_34) : (16.0 + x_35))))));
x_22_ = (((((6.0 + x_0) > (12.0 + x_1)? (6.0 + x_0) : (12.0 + x_1)) > ((17.0 + x_2) > (14.0 + x_3)? (17.0 + x_2) : (14.0 + x_3))? ((6.0 + x_0) > (12.0 + x_1)? (6.0 + x_0) : (12.0 + x_1)) : ((17.0 + x_2) > (14.0 + x_3)? (17.0 + x_2) : (14.0 + x_3))) > (((17.0 + x_6) > (5.0 + x_7)? (17.0 + x_6) : (5.0 + x_7)) > ((6.0 + x_8) > ((1.0 + x_11) > (1.0 + x_12)? (1.0 + x_11) : (1.0 + x_12))? (6.0 + x_8) : ((1.0 + x_11) > (1.0 + x_12)? (1.0 + x_11) : (1.0 + x_12)))? ((17.0 + x_6) > (5.0 + x_7)? (17.0 + x_6) : (5.0 + x_7)) : ((6.0 + x_8) > ((1.0 + x_11) > (1.0 + x_12)? (1.0 + x_11) : (1.0 + x_12))? (6.0 + x_8) : ((1.0 + x_11) > (1.0 + x_12)? (1.0 + x_11) : (1.0 + x_12))))? (((6.0 + x_0) > (12.0 + x_1)? (6.0 + x_0) : (12.0 + x_1)) > ((17.0 + x_2) > (14.0 + x_3)? (17.0 + x_2) : (14.0 + x_3))? ((6.0 + x_0) > (12.0 + x_1)? (6.0 + x_0) : (12.0 + x_1)) : ((17.0 + x_2) > (14.0 + x_3)? (17.0 + x_2) : (14.0 + x_3))) : (((17.0 + x_6) > (5.0 + x_7)? (17.0 + x_6) : (5.0 + x_7)) > ((6.0 + x_8) > ((1.0 + x_11) > (1.0 + x_12)? (1.0 + x_11) : (1.0 + x_12))? (6.0 + x_8) : ((1.0 + x_11) > (1.0 + x_12)? (1.0 + x_11) : (1.0 + x_12)))? ((17.0 + x_6) > (5.0 + x_7)? (17.0 + x_6) : (5.0 + x_7)) : ((6.0 + x_8) > ((1.0 + x_11) > (1.0 + x_12)? (1.0 + x_11) : (1.0 + x_12))? (6.0 + x_8) : ((1.0 + x_11) > (1.0 + x_12)? (1.0 + x_11) : (1.0 + x_12))))) > ((((3.0 + x_13) > (2.0 + x_14)? (3.0 + x_13) : (2.0 + x_14)) > ((1.0 + x_15) > (16.0 + x_20)? (1.0 + x_15) : (16.0 + x_20))? ((3.0 + x_13) > (2.0 + x_14)? (3.0 + x_13) : (2.0 + x_14)) : ((1.0 + x_15) > (16.0 + x_20)? (1.0 + x_15) : (16.0 + x_20))) > (((7.0 + x_22) > (13.0 + x_25)? (7.0 + x_22) : (13.0 + x_25)) > ((14.0 + x_26) > ((3.0 + x_28) > (10.0 + x_31)? (3.0 + x_28) : (10.0 + x_31))? (14.0 + x_26) : ((3.0 + x_28) > (10.0 + x_31)? (3.0 + x_28) : (10.0 + x_31)))? ((7.0 + x_22) > (13.0 + x_25)? (7.0 + x_22) : (13.0 + x_25)) : ((14.0 + x_26) > ((3.0 + x_28) > (10.0 + x_31)? (3.0 + x_28) : (10.0 + x_31))? (14.0 + x_26) : ((3.0 + x_28) > (10.0 + x_31)? (3.0 + x_28) : (10.0 + x_31))))? (((3.0 + x_13) > (2.0 + x_14)? (3.0 + x_13) : (2.0 + x_14)) > ((1.0 + x_15) > (16.0 + x_20)? (1.0 + x_15) : (16.0 + x_20))? ((3.0 + x_13) > (2.0 + x_14)? (3.0 + x_13) : (2.0 + x_14)) : ((1.0 + x_15) > (16.0 + x_20)? (1.0 + x_15) : (16.0 + x_20))) : (((7.0 + x_22) > (13.0 + x_25)? (7.0 + x_22) : (13.0 + x_25)) > ((14.0 + x_26) > ((3.0 + x_28) > (10.0 + x_31)? (3.0 + x_28) : (10.0 + x_31))? (14.0 + x_26) : ((3.0 + x_28) > (10.0 + x_31)? (3.0 + x_28) : (10.0 + x_31)))? ((7.0 + x_22) > (13.0 + x_25)? (7.0 + x_22) : (13.0 + x_25)) : ((14.0 + x_26) > ((3.0 + x_28) > (10.0 + x_31)? (3.0 + x_28) : (10.0 + x_31))? (14.0 + x_26) : ((3.0 + x_28) > (10.0 + x_31)? (3.0 + x_28) : (10.0 + x_31)))))? ((((6.0 + x_0) > (12.0 + x_1)? (6.0 + x_0) : (12.0 + x_1)) > ((17.0 + x_2) > (14.0 + x_3)? (17.0 + x_2) : (14.0 + x_3))? ((6.0 + x_0) > (12.0 + x_1)? (6.0 + x_0) : (12.0 + x_1)) : ((17.0 + x_2) > (14.0 + x_3)? (17.0 + x_2) : (14.0 + x_3))) > (((17.0 + x_6) > (5.0 + x_7)? (17.0 + x_6) : (5.0 + x_7)) > ((6.0 + x_8) > ((1.0 + x_11) > (1.0 + x_12)? (1.0 + x_11) : (1.0 + x_12))? (6.0 + x_8) : ((1.0 + x_11) > (1.0 + x_12)? (1.0 + x_11) : (1.0 + x_12)))? ((17.0 + x_6) > (5.0 + x_7)? (17.0 + x_6) : (5.0 + x_7)) : ((6.0 + x_8) > ((1.0 + x_11) > (1.0 + x_12)? (1.0 + x_11) : (1.0 + x_12))? (6.0 + x_8) : ((1.0 + x_11) > (1.0 + x_12)? (1.0 + x_11) : (1.0 + x_12))))? (((6.0 + x_0) > (12.0 + x_1)? (6.0 + x_0) : (12.0 + x_1)) > ((17.0 + x_2) > (14.0 + x_3)? (17.0 + x_2) : (14.0 + x_3))? ((6.0 + x_0) > (12.0 + x_1)? (6.0 + x_0) : (12.0 + x_1)) : ((17.0 + x_2) > (14.0 + x_3)? (17.0 + x_2) : (14.0 + x_3))) : (((17.0 + x_6) > (5.0 + x_7)? (17.0 + x_6) : (5.0 + x_7)) > ((6.0 + x_8) > ((1.0 + x_11) > (1.0 + x_12)? (1.0 + x_11) : (1.0 + x_12))? (6.0 + x_8) : ((1.0 + x_11) > (1.0 + x_12)? (1.0 + x_11) : (1.0 + x_12)))? ((17.0 + x_6) > (5.0 + x_7)? (17.0 + x_6) : (5.0 + x_7)) : ((6.0 + x_8) > ((1.0 + x_11) > (1.0 + x_12)? (1.0 + x_11) : (1.0 + x_12))? (6.0 + x_8) : ((1.0 + x_11) > (1.0 + x_12)? (1.0 + x_11) : (1.0 + x_12))))) : ((((3.0 + x_13) > (2.0 + x_14)? (3.0 + x_13) : (2.0 + x_14)) > ((1.0 + x_15) > (16.0 + x_20)? (1.0 + x_15) : (16.0 + x_20))? ((3.0 + x_13) > (2.0 + x_14)? (3.0 + x_13) : (2.0 + x_14)) : ((1.0 + x_15) > (16.0 + x_20)? (1.0 + x_15) : (16.0 + x_20))) > (((7.0 + x_22) > (13.0 + x_25)? (7.0 + x_22) : (13.0 + x_25)) > ((14.0 + x_26) > ((3.0 + x_28) > (10.0 + x_31)? (3.0 + x_28) : (10.0 + x_31))? (14.0 + x_26) : ((3.0 + x_28) > (10.0 + x_31)? (3.0 + x_28) : (10.0 + x_31)))? ((7.0 + x_22) > (13.0 + x_25)? (7.0 + x_22) : (13.0 + x_25)) : ((14.0 + x_26) > ((3.0 + x_28) > (10.0 + x_31)? (3.0 + x_28) : (10.0 + x_31))? (14.0 + x_26) : ((3.0 + x_28) > (10.0 + x_31)? (3.0 + x_28) : (10.0 + x_31))))? (((3.0 + x_13) > (2.0 + x_14)? (3.0 + x_13) : (2.0 + x_14)) > ((1.0 + x_15) > (16.0 + x_20)? (1.0 + x_15) : (16.0 + x_20))? ((3.0 + x_13) > (2.0 + x_14)? (3.0 + x_13) : (2.0 + x_14)) : ((1.0 + x_15) > (16.0 + x_20)? (1.0 + x_15) : (16.0 + x_20))) : (((7.0 + x_22) > (13.0 + x_25)? (7.0 + x_22) : (13.0 + x_25)) > ((14.0 + x_26) > ((3.0 + x_28) > (10.0 + x_31)? (3.0 + x_28) : (10.0 + x_31))? (14.0 + x_26) : ((3.0 + x_28) > (10.0 + x_31)? (3.0 + x_28) : (10.0 + x_31)))? ((7.0 + x_22) > (13.0 + x_25)? (7.0 + x_22) : (13.0 + x_25)) : ((14.0 + x_26) > ((3.0 + x_28) > (10.0 + x_31)? (3.0 + x_28) : (10.0 + x_31))? (14.0 + x_26) : ((3.0 + x_28) > (10.0 + x_31)? (3.0 + x_28) : (10.0 + x_31))))));
x_23_ = (((((9.0 + x_0) > (20.0 + x_2)? (9.0 + x_0) : (20.0 + x_2)) > ((15.0 + x_3) > (18.0 + x_5)? (15.0 + x_3) : (18.0 + x_5))? ((9.0 + x_0) > (20.0 + x_2)? (9.0 + x_0) : (20.0 + x_2)) : ((15.0 + x_3) > (18.0 + x_5)? (15.0 + x_3) : (18.0 + x_5))) > (((2.0 + x_6) > (10.0 + x_7)? (2.0 + x_6) : (10.0 + x_7)) > ((11.0 + x_8) > ((4.0 + x_9) > (15.0 + x_11)? (4.0 + x_9) : (15.0 + x_11))? (11.0 + x_8) : ((4.0 + x_9) > (15.0 + x_11)? (4.0 + x_9) : (15.0 + x_11)))? ((2.0 + x_6) > (10.0 + x_7)? (2.0 + x_6) : (10.0 + x_7)) : ((11.0 + x_8) > ((4.0 + x_9) > (15.0 + x_11)? (4.0 + x_9) : (15.0 + x_11))? (11.0 + x_8) : ((4.0 + x_9) > (15.0 + x_11)? (4.0 + x_9) : (15.0 + x_11))))? (((9.0 + x_0) > (20.0 + x_2)? (9.0 + x_0) : (20.0 + x_2)) > ((15.0 + x_3) > (18.0 + x_5)? (15.0 + x_3) : (18.0 + x_5))? ((9.0 + x_0) > (20.0 + x_2)? (9.0 + x_0) : (20.0 + x_2)) : ((15.0 + x_3) > (18.0 + x_5)? (15.0 + x_3) : (18.0 + x_5))) : (((2.0 + x_6) > (10.0 + x_7)? (2.0 + x_6) : (10.0 + x_7)) > ((11.0 + x_8) > ((4.0 + x_9) > (15.0 + x_11)? (4.0 + x_9) : (15.0 + x_11))? (11.0 + x_8) : ((4.0 + x_9) > (15.0 + x_11)? (4.0 + x_9) : (15.0 + x_11)))? ((2.0 + x_6) > (10.0 + x_7)? (2.0 + x_6) : (10.0 + x_7)) : ((11.0 + x_8) > ((4.0 + x_9) > (15.0 + x_11)? (4.0 + x_9) : (15.0 + x_11))? (11.0 + x_8) : ((4.0 + x_9) > (15.0 + x_11)? (4.0 + x_9) : (15.0 + x_11))))) > ((((10.0 + x_12) > (15.0 + x_17)? (10.0 + x_12) : (15.0 + x_17)) > ((15.0 + x_19) > (5.0 + x_22)? (15.0 + x_19) : (5.0 + x_22))? ((10.0 + x_12) > (15.0 + x_17)? (10.0 + x_12) : (15.0 + x_17)) : ((15.0 + x_19) > (5.0 + x_22)? (15.0 + x_19) : (5.0 + x_22))) > (((18.0 + x_23) > (18.0 + x_30)? (18.0 + x_23) : (18.0 + x_30)) > ((17.0 + x_32) > ((20.0 + x_33) > (15.0 + x_34)? (20.0 + x_33) : (15.0 + x_34))? (17.0 + x_32) : ((20.0 + x_33) > (15.0 + x_34)? (20.0 + x_33) : (15.0 + x_34)))? ((18.0 + x_23) > (18.0 + x_30)? (18.0 + x_23) : (18.0 + x_30)) : ((17.0 + x_32) > ((20.0 + x_33) > (15.0 + x_34)? (20.0 + x_33) : (15.0 + x_34))? (17.0 + x_32) : ((20.0 + x_33) > (15.0 + x_34)? (20.0 + x_33) : (15.0 + x_34))))? (((10.0 + x_12) > (15.0 + x_17)? (10.0 + x_12) : (15.0 + x_17)) > ((15.0 + x_19) > (5.0 + x_22)? (15.0 + x_19) : (5.0 + x_22))? ((10.0 + x_12) > (15.0 + x_17)? (10.0 + x_12) : (15.0 + x_17)) : ((15.0 + x_19) > (5.0 + x_22)? (15.0 + x_19) : (5.0 + x_22))) : (((18.0 + x_23) > (18.0 + x_30)? (18.0 + x_23) : (18.0 + x_30)) > ((17.0 + x_32) > ((20.0 + x_33) > (15.0 + x_34)? (20.0 + x_33) : (15.0 + x_34))? (17.0 + x_32) : ((20.0 + x_33) > (15.0 + x_34)? (20.0 + x_33) : (15.0 + x_34)))? ((18.0 + x_23) > (18.0 + x_30)? (18.0 + x_23) : (18.0 + x_30)) : ((17.0 + x_32) > ((20.0 + x_33) > (15.0 + x_34)? (20.0 + x_33) : (15.0 + x_34))? (17.0 + x_32) : ((20.0 + x_33) > (15.0 + x_34)? (20.0 + x_33) : (15.0 + x_34)))))? ((((9.0 + x_0) > (20.0 + x_2)? (9.0 + x_0) : (20.0 + x_2)) > ((15.0 + x_3) > (18.0 + x_5)? (15.0 + x_3) : (18.0 + x_5))? ((9.0 + x_0) > (20.0 + x_2)? (9.0 + x_0) : (20.0 + x_2)) : ((15.0 + x_3) > (18.0 + x_5)? (15.0 + x_3) : (18.0 + x_5))) > (((2.0 + x_6) > (10.0 + x_7)? (2.0 + x_6) : (10.0 + x_7)) > ((11.0 + x_8) > ((4.0 + x_9) > (15.0 + x_11)? (4.0 + x_9) : (15.0 + x_11))? (11.0 + x_8) : ((4.0 + x_9) > (15.0 + x_11)? (4.0 + x_9) : (15.0 + x_11)))? ((2.0 + x_6) > (10.0 + x_7)? (2.0 + x_6) : (10.0 + x_7)) : ((11.0 + x_8) > ((4.0 + x_9) > (15.0 + x_11)? (4.0 + x_9) : (15.0 + x_11))? (11.0 + x_8) : ((4.0 + x_9) > (15.0 + x_11)? (4.0 + x_9) : (15.0 + x_11))))? (((9.0 + x_0) > (20.0 + x_2)? (9.0 + x_0) : (20.0 + x_2)) > ((15.0 + x_3) > (18.0 + x_5)? (15.0 + x_3) : (18.0 + x_5))? ((9.0 + x_0) > (20.0 + x_2)? (9.0 + x_0) : (20.0 + x_2)) : ((15.0 + x_3) > (18.0 + x_5)? (15.0 + x_3) : (18.0 + x_5))) : (((2.0 + x_6) > (10.0 + x_7)? (2.0 + x_6) : (10.0 + x_7)) > ((11.0 + x_8) > ((4.0 + x_9) > (15.0 + x_11)? (4.0 + x_9) : (15.0 + x_11))? (11.0 + x_8) : ((4.0 + x_9) > (15.0 + x_11)? (4.0 + x_9) : (15.0 + x_11)))? ((2.0 + x_6) > (10.0 + x_7)? (2.0 + x_6) : (10.0 + x_7)) : ((11.0 + x_8) > ((4.0 + x_9) > (15.0 + x_11)? (4.0 + x_9) : (15.0 + x_11))? (11.0 + x_8) : ((4.0 + x_9) > (15.0 + x_11)? (4.0 + x_9) : (15.0 + x_11))))) : ((((10.0 + x_12) > (15.0 + x_17)? (10.0 + x_12) : (15.0 + x_17)) > ((15.0 + x_19) > (5.0 + x_22)? (15.0 + x_19) : (5.0 + x_22))? ((10.0 + x_12) > (15.0 + x_17)? (10.0 + x_12) : (15.0 + x_17)) : ((15.0 + x_19) > (5.0 + x_22)? (15.0 + x_19) : (5.0 + x_22))) > (((18.0 + x_23) > (18.0 + x_30)? (18.0 + x_23) : (18.0 + x_30)) > ((17.0 + x_32) > ((20.0 + x_33) > (15.0 + x_34)? (20.0 + x_33) : (15.0 + x_34))? (17.0 + x_32) : ((20.0 + x_33) > (15.0 + x_34)? (20.0 + x_33) : (15.0 + x_34)))? ((18.0 + x_23) > (18.0 + x_30)? (18.0 + x_23) : (18.0 + x_30)) : ((17.0 + x_32) > ((20.0 + x_33) > (15.0 + x_34)? (20.0 + x_33) : (15.0 + x_34))? (17.0 + x_32) : ((20.0 + x_33) > (15.0 + x_34)? (20.0 + x_33) : (15.0 + x_34))))? (((10.0 + x_12) > (15.0 + x_17)? (10.0 + x_12) : (15.0 + x_17)) > ((15.0 + x_19) > (5.0 + x_22)? (15.0 + x_19) : (5.0 + x_22))? ((10.0 + x_12) > (15.0 + x_17)? (10.0 + x_12) : (15.0 + x_17)) : ((15.0 + x_19) > (5.0 + x_22)? (15.0 + x_19) : (5.0 + x_22))) : (((18.0 + x_23) > (18.0 + x_30)? (18.0 + x_23) : (18.0 + x_30)) > ((17.0 + x_32) > ((20.0 + x_33) > (15.0 + x_34)? (20.0 + x_33) : (15.0 + x_34))? (17.0 + x_32) : ((20.0 + x_33) > (15.0 + x_34)? (20.0 + x_33) : (15.0 + x_34)))? ((18.0 + x_23) > (18.0 + x_30)? (18.0 + x_23) : (18.0 + x_30)) : ((17.0 + x_32) > ((20.0 + x_33) > (15.0 + x_34)? (20.0 + x_33) : (15.0 + x_34))? (17.0 + x_32) : ((20.0 + x_33) > (15.0 + x_34)? (20.0 + x_33) : (15.0 + x_34))))));
x_24_ = (((((12.0 + x_0) > (4.0 + x_1)? (12.0 + x_0) : (4.0 + x_1)) > ((13.0 + x_5) > (3.0 + x_7)? (13.0 + x_5) : (3.0 + x_7))? ((12.0 + x_0) > (4.0 + x_1)? (12.0 + x_0) : (4.0 + x_1)) : ((13.0 + x_5) > (3.0 + x_7)? (13.0 + x_5) : (3.0 + x_7))) > (((9.0 + x_8) > (14.0 + x_11)? (9.0 + x_8) : (14.0 + x_11)) > ((4.0 + x_12) > ((18.0 + x_13) > (8.0 + x_16)? (18.0 + x_13) : (8.0 + x_16))? (4.0 + x_12) : ((18.0 + x_13) > (8.0 + x_16)? (18.0 + x_13) : (8.0 + x_16)))? ((9.0 + x_8) > (14.0 + x_11)? (9.0 + x_8) : (14.0 + x_11)) : ((4.0 + x_12) > ((18.0 + x_13) > (8.0 + x_16)? (18.0 + x_13) : (8.0 + x_16))? (4.0 + x_12) : ((18.0 + x_13) > (8.0 + x_16)? (18.0 + x_13) : (8.0 + x_16))))? (((12.0 + x_0) > (4.0 + x_1)? (12.0 + x_0) : (4.0 + x_1)) > ((13.0 + x_5) > (3.0 + x_7)? (13.0 + x_5) : (3.0 + x_7))? ((12.0 + x_0) > (4.0 + x_1)? (12.0 + x_0) : (4.0 + x_1)) : ((13.0 + x_5) > (3.0 + x_7)? (13.0 + x_5) : (3.0 + x_7))) : (((9.0 + x_8) > (14.0 + x_11)? (9.0 + x_8) : (14.0 + x_11)) > ((4.0 + x_12) > ((18.0 + x_13) > (8.0 + x_16)? (18.0 + x_13) : (8.0 + x_16))? (4.0 + x_12) : ((18.0 + x_13) > (8.0 + x_16)? (18.0 + x_13) : (8.0 + x_16)))? ((9.0 + x_8) > (14.0 + x_11)? (9.0 + x_8) : (14.0 + x_11)) : ((4.0 + x_12) > ((18.0 + x_13) > (8.0 + x_16)? (18.0 + x_13) : (8.0 + x_16))? (4.0 + x_12) : ((18.0 + x_13) > (8.0 + x_16)? (18.0 + x_13) : (8.0 + x_16))))) > ((((11.0 + x_17) > (3.0 + x_20)? (11.0 + x_17) : (3.0 + x_20)) > ((11.0 + x_21) > (5.0 + x_22)? (11.0 + x_21) : (5.0 + x_22))? ((11.0 + x_17) > (3.0 + x_20)? (11.0 + x_17) : (3.0 + x_20)) : ((11.0 + x_21) > (5.0 + x_22)? (11.0 + x_21) : (5.0 + x_22))) > (((1.0 + x_23) > (6.0 + x_24)? (1.0 + x_23) : (6.0 + x_24)) > ((11.0 + x_31) > ((19.0 + x_33) > (12.0 + x_34)? (19.0 + x_33) : (12.0 + x_34))? (11.0 + x_31) : ((19.0 + x_33) > (12.0 + x_34)? (19.0 + x_33) : (12.0 + x_34)))? ((1.0 + x_23) > (6.0 + x_24)? (1.0 + x_23) : (6.0 + x_24)) : ((11.0 + x_31) > ((19.0 + x_33) > (12.0 + x_34)? (19.0 + x_33) : (12.0 + x_34))? (11.0 + x_31) : ((19.0 + x_33) > (12.0 + x_34)? (19.0 + x_33) : (12.0 + x_34))))? (((11.0 + x_17) > (3.0 + x_20)? (11.0 + x_17) : (3.0 + x_20)) > ((11.0 + x_21) > (5.0 + x_22)? (11.0 + x_21) : (5.0 + x_22))? ((11.0 + x_17) > (3.0 + x_20)? (11.0 + x_17) : (3.0 + x_20)) : ((11.0 + x_21) > (5.0 + x_22)? (11.0 + x_21) : (5.0 + x_22))) : (((1.0 + x_23) > (6.0 + x_24)? (1.0 + x_23) : (6.0 + x_24)) > ((11.0 + x_31) > ((19.0 + x_33) > (12.0 + x_34)? (19.0 + x_33) : (12.0 + x_34))? (11.0 + x_31) : ((19.0 + x_33) > (12.0 + x_34)? (19.0 + x_33) : (12.0 + x_34)))? ((1.0 + x_23) > (6.0 + x_24)? (1.0 + x_23) : (6.0 + x_24)) : ((11.0 + x_31) > ((19.0 + x_33) > (12.0 + x_34)? (19.0 + x_33) : (12.0 + x_34))? (11.0 + x_31) : ((19.0 + x_33) > (12.0 + x_34)? (19.0 + x_33) : (12.0 + x_34)))))? ((((12.0 + x_0) > (4.0 + x_1)? (12.0 + x_0) : (4.0 + x_1)) > ((13.0 + x_5) > (3.0 + x_7)? (13.0 + x_5) : (3.0 + x_7))? ((12.0 + x_0) > (4.0 + x_1)? (12.0 + x_0) : (4.0 + x_1)) : ((13.0 + x_5) > (3.0 + x_7)? (13.0 + x_5) : (3.0 + x_7))) > (((9.0 + x_8) > (14.0 + x_11)? (9.0 + x_8) : (14.0 + x_11)) > ((4.0 + x_12) > ((18.0 + x_13) > (8.0 + x_16)? (18.0 + x_13) : (8.0 + x_16))? (4.0 + x_12) : ((18.0 + x_13) > (8.0 + x_16)? (18.0 + x_13) : (8.0 + x_16)))? ((9.0 + x_8) > (14.0 + x_11)? (9.0 + x_8) : (14.0 + x_11)) : ((4.0 + x_12) > ((18.0 + x_13) > (8.0 + x_16)? (18.0 + x_13) : (8.0 + x_16))? (4.0 + x_12) : ((18.0 + x_13) > (8.0 + x_16)? (18.0 + x_13) : (8.0 + x_16))))? (((12.0 + x_0) > (4.0 + x_1)? (12.0 + x_0) : (4.0 + x_1)) > ((13.0 + x_5) > (3.0 + x_7)? (13.0 + x_5) : (3.0 + x_7))? ((12.0 + x_0) > (4.0 + x_1)? (12.0 + x_0) : (4.0 + x_1)) : ((13.0 + x_5) > (3.0 + x_7)? (13.0 + x_5) : (3.0 + x_7))) : (((9.0 + x_8) > (14.0 + x_11)? (9.0 + x_8) : (14.0 + x_11)) > ((4.0 + x_12) > ((18.0 + x_13) > (8.0 + x_16)? (18.0 + x_13) : (8.0 + x_16))? (4.0 + x_12) : ((18.0 + x_13) > (8.0 + x_16)? (18.0 + x_13) : (8.0 + x_16)))? ((9.0 + x_8) > (14.0 + x_11)? (9.0 + x_8) : (14.0 + x_11)) : ((4.0 + x_12) > ((18.0 + x_13) > (8.0 + x_16)? (18.0 + x_13) : (8.0 + x_16))? (4.0 + x_12) : ((18.0 + x_13) > (8.0 + x_16)? (18.0 + x_13) : (8.0 + x_16))))) : ((((11.0 + x_17) > (3.0 + x_20)? (11.0 + x_17) : (3.0 + x_20)) > ((11.0 + x_21) > (5.0 + x_22)? (11.0 + x_21) : (5.0 + x_22))? ((11.0 + x_17) > (3.0 + x_20)? (11.0 + x_17) : (3.0 + x_20)) : ((11.0 + x_21) > (5.0 + x_22)? (11.0 + x_21) : (5.0 + x_22))) > (((1.0 + x_23) > (6.0 + x_24)? (1.0 + x_23) : (6.0 + x_24)) > ((11.0 + x_31) > ((19.0 + x_33) > (12.0 + x_34)? (19.0 + x_33) : (12.0 + x_34))? (11.0 + x_31) : ((19.0 + x_33) > (12.0 + x_34)? (19.0 + x_33) : (12.0 + x_34)))? ((1.0 + x_23) > (6.0 + x_24)? (1.0 + x_23) : (6.0 + x_24)) : ((11.0 + x_31) > ((19.0 + x_33) > (12.0 + x_34)? (19.0 + x_33) : (12.0 + x_34))? (11.0 + x_31) : ((19.0 + x_33) > (12.0 + x_34)? (19.0 + x_33) : (12.0 + x_34))))? (((11.0 + x_17) > (3.0 + x_20)? (11.0 + x_17) : (3.0 + x_20)) > ((11.0 + x_21) > (5.0 + x_22)? (11.0 + x_21) : (5.0 + x_22))? ((11.0 + x_17) > (3.0 + x_20)? (11.0 + x_17) : (3.0 + x_20)) : ((11.0 + x_21) > (5.0 + x_22)? (11.0 + x_21) : (5.0 + x_22))) : (((1.0 + x_23) > (6.0 + x_24)? (1.0 + x_23) : (6.0 + x_24)) > ((11.0 + x_31) > ((19.0 + x_33) > (12.0 + x_34)? (19.0 + x_33) : (12.0 + x_34))? (11.0 + x_31) : ((19.0 + x_33) > (12.0 + x_34)? (19.0 + x_33) : (12.0 + x_34)))? ((1.0 + x_23) > (6.0 + x_24)? (1.0 + x_23) : (6.0 + x_24)) : ((11.0 + x_31) > ((19.0 + x_33) > (12.0 + x_34)? (19.0 + x_33) : (12.0 + x_34))? (11.0 + x_31) : ((19.0 + x_33) > (12.0 + x_34)? (19.0 + x_33) : (12.0 + x_34))))));
x_25_ = (((((11.0 + x_3) > (2.0 + x_5)? (11.0 + x_3) : (2.0 + x_5)) > ((16.0 + x_7) > (13.0 + x_8)? (16.0 + x_7) : (13.0 + x_8))? ((11.0 + x_3) > (2.0 + x_5)? (11.0 + x_3) : (2.0 + x_5)) : ((16.0 + x_7) > (13.0 + x_8)? (16.0 + x_7) : (13.0 + x_8))) > (((6.0 + x_9) > (16.0 + x_10)? (6.0 + x_9) : (16.0 + x_10)) > ((9.0 + x_11) > ((3.0 + x_12) > (7.0 + x_13)? (3.0 + x_12) : (7.0 + x_13))? (9.0 + x_11) : ((3.0 + x_12) > (7.0 + x_13)? (3.0 + x_12) : (7.0 + x_13)))? ((6.0 + x_9) > (16.0 + x_10)? (6.0 + x_9) : (16.0 + x_10)) : ((9.0 + x_11) > ((3.0 + x_12) > (7.0 + x_13)? (3.0 + x_12) : (7.0 + x_13))? (9.0 + x_11) : ((3.0 + x_12) > (7.0 + x_13)? (3.0 + x_12) : (7.0 + x_13))))? (((11.0 + x_3) > (2.0 + x_5)? (11.0 + x_3) : (2.0 + x_5)) > ((16.0 + x_7) > (13.0 + x_8)? (16.0 + x_7) : (13.0 + x_8))? ((11.0 + x_3) > (2.0 + x_5)? (11.0 + x_3) : (2.0 + x_5)) : ((16.0 + x_7) > (13.0 + x_8)? (16.0 + x_7) : (13.0 + x_8))) : (((6.0 + x_9) > (16.0 + x_10)? (6.0 + x_9) : (16.0 + x_10)) > ((9.0 + x_11) > ((3.0 + x_12) > (7.0 + x_13)? (3.0 + x_12) : (7.0 + x_13))? (9.0 + x_11) : ((3.0 + x_12) > (7.0 + x_13)? (3.0 + x_12) : (7.0 + x_13)))? ((6.0 + x_9) > (16.0 + x_10)? (6.0 + x_9) : (16.0 + x_10)) : ((9.0 + x_11) > ((3.0 + x_12) > (7.0 + x_13)? (3.0 + x_12) : (7.0 + x_13))? (9.0 + x_11) : ((3.0 + x_12) > (7.0 + x_13)? (3.0 + x_12) : (7.0 + x_13))))) > ((((8.0 + x_15) > (13.0 + x_20)? (8.0 + x_15) : (13.0 + x_20)) > ((11.0 + x_22) > (19.0 + x_23)? (11.0 + x_22) : (19.0 + x_23))? ((8.0 + x_15) > (13.0 + x_20)? (8.0 + x_15) : (13.0 + x_20)) : ((11.0 + x_22) > (19.0 + x_23)? (11.0 + x_22) : (19.0 + x_23))) > (((2.0 + x_25) > (10.0 + x_26)? (2.0 + x_25) : (10.0 + x_26)) > ((7.0 + x_27) > ((20.0 + x_32) > (14.0 + x_33)? (20.0 + x_32) : (14.0 + x_33))? (7.0 + x_27) : ((20.0 + x_32) > (14.0 + x_33)? (20.0 + x_32) : (14.0 + x_33)))? ((2.0 + x_25) > (10.0 + x_26)? (2.0 + x_25) : (10.0 + x_26)) : ((7.0 + x_27) > ((20.0 + x_32) > (14.0 + x_33)? (20.0 + x_32) : (14.0 + x_33))? (7.0 + x_27) : ((20.0 + x_32) > (14.0 + x_33)? (20.0 + x_32) : (14.0 + x_33))))? (((8.0 + x_15) > (13.0 + x_20)? (8.0 + x_15) : (13.0 + x_20)) > ((11.0 + x_22) > (19.0 + x_23)? (11.0 + x_22) : (19.0 + x_23))? ((8.0 + x_15) > (13.0 + x_20)? (8.0 + x_15) : (13.0 + x_20)) : ((11.0 + x_22) > (19.0 + x_23)? (11.0 + x_22) : (19.0 + x_23))) : (((2.0 + x_25) > (10.0 + x_26)? (2.0 + x_25) : (10.0 + x_26)) > ((7.0 + x_27) > ((20.0 + x_32) > (14.0 + x_33)? (20.0 + x_32) : (14.0 + x_33))? (7.0 + x_27) : ((20.0 + x_32) > (14.0 + x_33)? (20.0 + x_32) : (14.0 + x_33)))? ((2.0 + x_25) > (10.0 + x_26)? (2.0 + x_25) : (10.0 + x_26)) : ((7.0 + x_27) > ((20.0 + x_32) > (14.0 + x_33)? (20.0 + x_32) : (14.0 + x_33))? (7.0 + x_27) : ((20.0 + x_32) > (14.0 + x_33)? (20.0 + x_32) : (14.0 + x_33)))))? ((((11.0 + x_3) > (2.0 + x_5)? (11.0 + x_3) : (2.0 + x_5)) > ((16.0 + x_7) > (13.0 + x_8)? (16.0 + x_7) : (13.0 + x_8))? ((11.0 + x_3) > (2.0 + x_5)? (11.0 + x_3) : (2.0 + x_5)) : ((16.0 + x_7) > (13.0 + x_8)? (16.0 + x_7) : (13.0 + x_8))) > (((6.0 + x_9) > (16.0 + x_10)? (6.0 + x_9) : (16.0 + x_10)) > ((9.0 + x_11) > ((3.0 + x_12) > (7.0 + x_13)? (3.0 + x_12) : (7.0 + x_13))? (9.0 + x_11) : ((3.0 + x_12) > (7.0 + x_13)? (3.0 + x_12) : (7.0 + x_13)))? ((6.0 + x_9) > (16.0 + x_10)? (6.0 + x_9) : (16.0 + x_10)) : ((9.0 + x_11) > ((3.0 + x_12) > (7.0 + x_13)? (3.0 + x_12) : (7.0 + x_13))? (9.0 + x_11) : ((3.0 + x_12) > (7.0 + x_13)? (3.0 + x_12) : (7.0 + x_13))))? (((11.0 + x_3) > (2.0 + x_5)? (11.0 + x_3) : (2.0 + x_5)) > ((16.0 + x_7) > (13.0 + x_8)? (16.0 + x_7) : (13.0 + x_8))? ((11.0 + x_3) > (2.0 + x_5)? (11.0 + x_3) : (2.0 + x_5)) : ((16.0 + x_7) > (13.0 + x_8)? (16.0 + x_7) : (13.0 + x_8))) : (((6.0 + x_9) > (16.0 + x_10)? (6.0 + x_9) : (16.0 + x_10)) > ((9.0 + x_11) > ((3.0 + x_12) > (7.0 + x_13)? (3.0 + x_12) : (7.0 + x_13))? (9.0 + x_11) : ((3.0 + x_12) > (7.0 + x_13)? (3.0 + x_12) : (7.0 + x_13)))? ((6.0 + x_9) > (16.0 + x_10)? (6.0 + x_9) : (16.0 + x_10)) : ((9.0 + x_11) > ((3.0 + x_12) > (7.0 + x_13)? (3.0 + x_12) : (7.0 + x_13))? (9.0 + x_11) : ((3.0 + x_12) > (7.0 + x_13)? (3.0 + x_12) : (7.0 + x_13))))) : ((((8.0 + x_15) > (13.0 + x_20)? (8.0 + x_15) : (13.0 + x_20)) > ((11.0 + x_22) > (19.0 + x_23)? (11.0 + x_22) : (19.0 + x_23))? ((8.0 + x_15) > (13.0 + x_20)? (8.0 + x_15) : (13.0 + x_20)) : ((11.0 + x_22) > (19.0 + x_23)? (11.0 + x_22) : (19.0 + x_23))) > (((2.0 + x_25) > (10.0 + x_26)? (2.0 + x_25) : (10.0 + x_26)) > ((7.0 + x_27) > ((20.0 + x_32) > (14.0 + x_33)? (20.0 + x_32) : (14.0 + x_33))? (7.0 + x_27) : ((20.0 + x_32) > (14.0 + x_33)? (20.0 + x_32) : (14.0 + x_33)))? ((2.0 + x_25) > (10.0 + x_26)? (2.0 + x_25) : (10.0 + x_26)) : ((7.0 + x_27) > ((20.0 + x_32) > (14.0 + x_33)? (20.0 + x_32) : (14.0 + x_33))? (7.0 + x_27) : ((20.0 + x_32) > (14.0 + x_33)? (20.0 + x_32) : (14.0 + x_33))))? (((8.0 + x_15) > (13.0 + x_20)? (8.0 + x_15) : (13.0 + x_20)) > ((11.0 + x_22) > (19.0 + x_23)? (11.0 + x_22) : (19.0 + x_23))? ((8.0 + x_15) > (13.0 + x_20)? (8.0 + x_15) : (13.0 + x_20)) : ((11.0 + x_22) > (19.0 + x_23)? (11.0 + x_22) : (19.0 + x_23))) : (((2.0 + x_25) > (10.0 + x_26)? (2.0 + x_25) : (10.0 + x_26)) > ((7.0 + x_27) > ((20.0 + x_32) > (14.0 + x_33)? (20.0 + x_32) : (14.0 + x_33))? (7.0 + x_27) : ((20.0 + x_32) > (14.0 + x_33)? (20.0 + x_32) : (14.0 + x_33)))? ((2.0 + x_25) > (10.0 + x_26)? (2.0 + x_25) : (10.0 + x_26)) : ((7.0 + x_27) > ((20.0 + x_32) > (14.0 + x_33)? (20.0 + x_32) : (14.0 + x_33))? (7.0 + x_27) : ((20.0 + x_32) > (14.0 + x_33)? (20.0 + x_32) : (14.0 + x_33))))));
x_26_ = (((((8.0 + x_0) > (20.0 + x_1)? (8.0 + x_0) : (20.0 + x_1)) > ((20.0 + x_2) > (3.0 + x_4)? (20.0 + x_2) : (3.0 + x_4))? ((8.0 + x_0) > (20.0 + x_1)? (8.0 + x_0) : (20.0 + x_1)) : ((20.0 + x_2) > (3.0 + x_4)? (20.0 + x_2) : (3.0 + x_4))) > (((20.0 + x_6) > (14.0 + x_7)? (20.0 + x_6) : (14.0 + x_7)) > ((9.0 + x_8) > ((19.0 + x_9) > (20.0 + x_12)? (19.0 + x_9) : (20.0 + x_12))? (9.0 + x_8) : ((19.0 + x_9) > (20.0 + x_12)? (19.0 + x_9) : (20.0 + x_12)))? ((20.0 + x_6) > (14.0 + x_7)? (20.0 + x_6) : (14.0 + x_7)) : ((9.0 + x_8) > ((19.0 + x_9) > (20.0 + x_12)? (19.0 + x_9) : (20.0 + x_12))? (9.0 + x_8) : ((19.0 + x_9) > (20.0 + x_12)? (19.0 + x_9) : (20.0 + x_12))))? (((8.0 + x_0) > (20.0 + x_1)? (8.0 + x_0) : (20.0 + x_1)) > ((20.0 + x_2) > (3.0 + x_4)? (20.0 + x_2) : (3.0 + x_4))? ((8.0 + x_0) > (20.0 + x_1)? (8.0 + x_0) : (20.0 + x_1)) : ((20.0 + x_2) > (3.0 + x_4)? (20.0 + x_2) : (3.0 + x_4))) : (((20.0 + x_6) > (14.0 + x_7)? (20.0 + x_6) : (14.0 + x_7)) > ((9.0 + x_8) > ((19.0 + x_9) > (20.0 + x_12)? (19.0 + x_9) : (20.0 + x_12))? (9.0 + x_8) : ((19.0 + x_9) > (20.0 + x_12)? (19.0 + x_9) : (20.0 + x_12)))? ((20.0 + x_6) > (14.0 + x_7)? (20.0 + x_6) : (14.0 + x_7)) : ((9.0 + x_8) > ((19.0 + x_9) > (20.0 + x_12)? (19.0 + x_9) : (20.0 + x_12))? (9.0 + x_8) : ((19.0 + x_9) > (20.0 + x_12)? (19.0 + x_9) : (20.0 + x_12))))) > ((((8.0 + x_13) > (17.0 + x_14)? (8.0 + x_13) : (17.0 + x_14)) > ((20.0 + x_22) > (6.0 + x_24)? (20.0 + x_22) : (6.0 + x_24))? ((8.0 + x_13) > (17.0 + x_14)? (8.0 + x_13) : (17.0 + x_14)) : ((20.0 + x_22) > (6.0 + x_24)? (20.0 + x_22) : (6.0 + x_24))) > (((8.0 + x_25) > (9.0 + x_28)? (8.0 + x_25) : (9.0 + x_28)) > ((13.0 + x_29) > ((13.0 + x_34) > (18.0 + x_35)? (13.0 + x_34) : (18.0 + x_35))? (13.0 + x_29) : ((13.0 + x_34) > (18.0 + x_35)? (13.0 + x_34) : (18.0 + x_35)))? ((8.0 + x_25) > (9.0 + x_28)? (8.0 + x_25) : (9.0 + x_28)) : ((13.0 + x_29) > ((13.0 + x_34) > (18.0 + x_35)? (13.0 + x_34) : (18.0 + x_35))? (13.0 + x_29) : ((13.0 + x_34) > (18.0 + x_35)? (13.0 + x_34) : (18.0 + x_35))))? (((8.0 + x_13) > (17.0 + x_14)? (8.0 + x_13) : (17.0 + x_14)) > ((20.0 + x_22) > (6.0 + x_24)? (20.0 + x_22) : (6.0 + x_24))? ((8.0 + x_13) > (17.0 + x_14)? (8.0 + x_13) : (17.0 + x_14)) : ((20.0 + x_22) > (6.0 + x_24)? (20.0 + x_22) : (6.0 + x_24))) : (((8.0 + x_25) > (9.0 + x_28)? (8.0 + x_25) : (9.0 + x_28)) > ((13.0 + x_29) > ((13.0 + x_34) > (18.0 + x_35)? (13.0 + x_34) : (18.0 + x_35))? (13.0 + x_29) : ((13.0 + x_34) > (18.0 + x_35)? (13.0 + x_34) : (18.0 + x_35)))? ((8.0 + x_25) > (9.0 + x_28)? (8.0 + x_25) : (9.0 + x_28)) : ((13.0 + x_29) > ((13.0 + x_34) > (18.0 + x_35)? (13.0 + x_34) : (18.0 + x_35))? (13.0 + x_29) : ((13.0 + x_34) > (18.0 + x_35)? (13.0 + x_34) : (18.0 + x_35)))))? ((((8.0 + x_0) > (20.0 + x_1)? (8.0 + x_0) : (20.0 + x_1)) > ((20.0 + x_2) > (3.0 + x_4)? (20.0 + x_2) : (3.0 + x_4))? ((8.0 + x_0) > (20.0 + x_1)? (8.0 + x_0) : (20.0 + x_1)) : ((20.0 + x_2) > (3.0 + x_4)? (20.0 + x_2) : (3.0 + x_4))) > (((20.0 + x_6) > (14.0 + x_7)? (20.0 + x_6) : (14.0 + x_7)) > ((9.0 + x_8) > ((19.0 + x_9) > (20.0 + x_12)? (19.0 + x_9) : (20.0 + x_12))? (9.0 + x_8) : ((19.0 + x_9) > (20.0 + x_12)? (19.0 + x_9) : (20.0 + x_12)))? ((20.0 + x_6) > (14.0 + x_7)? (20.0 + x_6) : (14.0 + x_7)) : ((9.0 + x_8) > ((19.0 + x_9) > (20.0 + x_12)? (19.0 + x_9) : (20.0 + x_12))? (9.0 + x_8) : ((19.0 + x_9) > (20.0 + x_12)? (19.0 + x_9) : (20.0 + x_12))))? (((8.0 + x_0) > (20.0 + x_1)? (8.0 + x_0) : (20.0 + x_1)) > ((20.0 + x_2) > (3.0 + x_4)? (20.0 + x_2) : (3.0 + x_4))? ((8.0 + x_0) > (20.0 + x_1)? (8.0 + x_0) : (20.0 + x_1)) : ((20.0 + x_2) > (3.0 + x_4)? (20.0 + x_2) : (3.0 + x_4))) : (((20.0 + x_6) > (14.0 + x_7)? (20.0 + x_6) : (14.0 + x_7)) > ((9.0 + x_8) > ((19.0 + x_9) > (20.0 + x_12)? (19.0 + x_9) : (20.0 + x_12))? (9.0 + x_8) : ((19.0 + x_9) > (20.0 + x_12)? (19.0 + x_9) : (20.0 + x_12)))? ((20.0 + x_6) > (14.0 + x_7)? (20.0 + x_6) : (14.0 + x_7)) : ((9.0 + x_8) > ((19.0 + x_9) > (20.0 + x_12)? (19.0 + x_9) : (20.0 + x_12))? (9.0 + x_8) : ((19.0 + x_9) > (20.0 + x_12)? (19.0 + x_9) : (20.0 + x_12))))) : ((((8.0 + x_13) > (17.0 + x_14)? (8.0 + x_13) : (17.0 + x_14)) > ((20.0 + x_22) > (6.0 + x_24)? (20.0 + x_22) : (6.0 + x_24))? ((8.0 + x_13) > (17.0 + x_14)? (8.0 + x_13) : (17.0 + x_14)) : ((20.0 + x_22) > (6.0 + x_24)? (20.0 + x_22) : (6.0 + x_24))) > (((8.0 + x_25) > (9.0 + x_28)? (8.0 + x_25) : (9.0 + x_28)) > ((13.0 + x_29) > ((13.0 + x_34) > (18.0 + x_35)? (13.0 + x_34) : (18.0 + x_35))? (13.0 + x_29) : ((13.0 + x_34) > (18.0 + x_35)? (13.0 + x_34) : (18.0 + x_35)))? ((8.0 + x_25) > (9.0 + x_28)? (8.0 + x_25) : (9.0 + x_28)) : ((13.0 + x_29) > ((13.0 + x_34) > (18.0 + x_35)? (13.0 + x_34) : (18.0 + x_35))? (13.0 + x_29) : ((13.0 + x_34) > (18.0 + x_35)? (13.0 + x_34) : (18.0 + x_35))))? (((8.0 + x_13) > (17.0 + x_14)? (8.0 + x_13) : (17.0 + x_14)) > ((20.0 + x_22) > (6.0 + x_24)? (20.0 + x_22) : (6.0 + x_24))? ((8.0 + x_13) > (17.0 + x_14)? (8.0 + x_13) : (17.0 + x_14)) : ((20.0 + x_22) > (6.0 + x_24)? (20.0 + x_22) : (6.0 + x_24))) : (((8.0 + x_25) > (9.0 + x_28)? (8.0 + x_25) : (9.0 + x_28)) > ((13.0 + x_29) > ((13.0 + x_34) > (18.0 + x_35)? (13.0 + x_34) : (18.0 + x_35))? (13.0 + x_29) : ((13.0 + x_34) > (18.0 + x_35)? (13.0 + x_34) : (18.0 + x_35)))? ((8.0 + x_25) > (9.0 + x_28)? (8.0 + x_25) : (9.0 + x_28)) : ((13.0 + x_29) > ((13.0 + x_34) > (18.0 + x_35)? (13.0 + x_34) : (18.0 + x_35))? (13.0 + x_29) : ((13.0 + x_34) > (18.0 + x_35)? (13.0 + x_34) : (18.0 + x_35))))));
x_27_ = (((((2.0 + x_0) > (17.0 + x_3)? (2.0 + x_0) : (17.0 + x_3)) > ((2.0 + x_4) > (6.0 + x_6)? (2.0 + x_4) : (6.0 + x_6))? ((2.0 + x_0) > (17.0 + x_3)? (2.0 + x_0) : (17.0 + x_3)) : ((2.0 + x_4) > (6.0 + x_6)? (2.0 + x_4) : (6.0 + x_6))) > (((6.0 + x_7) > (16.0 + x_8)? (6.0 + x_7) : (16.0 + x_8)) > ((3.0 + x_11) > ((9.0 + x_12) > (10.0 + x_16)? (9.0 + x_12) : (10.0 + x_16))? (3.0 + x_11) : ((9.0 + x_12) > (10.0 + x_16)? (9.0 + x_12) : (10.0 + x_16)))? ((6.0 + x_7) > (16.0 + x_8)? (6.0 + x_7) : (16.0 + x_8)) : ((3.0 + x_11) > ((9.0 + x_12) > (10.0 + x_16)? (9.0 + x_12) : (10.0 + x_16))? (3.0 + x_11) : ((9.0 + x_12) > (10.0 + x_16)? (9.0 + x_12) : (10.0 + x_16))))? (((2.0 + x_0) > (17.0 + x_3)? (2.0 + x_0) : (17.0 + x_3)) > ((2.0 + x_4) > (6.0 + x_6)? (2.0 + x_4) : (6.0 + x_6))? ((2.0 + x_0) > (17.0 + x_3)? (2.0 + x_0) : (17.0 + x_3)) : ((2.0 + x_4) > (6.0 + x_6)? (2.0 + x_4) : (6.0 + x_6))) : (((6.0 + x_7) > (16.0 + x_8)? (6.0 + x_7) : (16.0 + x_8)) > ((3.0 + x_11) > ((9.0 + x_12) > (10.0 + x_16)? (9.0 + x_12) : (10.0 + x_16))? (3.0 + x_11) : ((9.0 + x_12) > (10.0 + x_16)? (9.0 + x_12) : (10.0 + x_16)))? ((6.0 + x_7) > (16.0 + x_8)? (6.0 + x_7) : (16.0 + x_8)) : ((3.0 + x_11) > ((9.0 + x_12) > (10.0 + x_16)? (9.0 + x_12) : (10.0 + x_16))? (3.0 + x_11) : ((9.0 + x_12) > (10.0 + x_16)? (9.0 + x_12) : (10.0 + x_16))))) > ((((3.0 + x_18) > (20.0 + x_19)? (3.0 + x_18) : (20.0 + x_19)) > ((1.0 + x_20) > (17.0 + x_25)? (1.0 + x_20) : (17.0 + x_25))? ((3.0 + x_18) > (20.0 + x_19)? (3.0 + x_18) : (20.0 + x_19)) : ((1.0 + x_20) > (17.0 + x_25)? (1.0 + x_20) : (17.0 + x_25))) > (((9.0 + x_26) > (3.0 + x_28)? (9.0 + x_26) : (3.0 + x_28)) > ((16.0 + x_29) > ((16.0 + x_32) > (15.0 + x_34)? (16.0 + x_32) : (15.0 + x_34))? (16.0 + x_29) : ((16.0 + x_32) > (15.0 + x_34)? (16.0 + x_32) : (15.0 + x_34)))? ((9.0 + x_26) > (3.0 + x_28)? (9.0 + x_26) : (3.0 + x_28)) : ((16.0 + x_29) > ((16.0 + x_32) > (15.0 + x_34)? (16.0 + x_32) : (15.0 + x_34))? (16.0 + x_29) : ((16.0 + x_32) > (15.0 + x_34)? (16.0 + x_32) : (15.0 + x_34))))? (((3.0 + x_18) > (20.0 + x_19)? (3.0 + x_18) : (20.0 + x_19)) > ((1.0 + x_20) > (17.0 + x_25)? (1.0 + x_20) : (17.0 + x_25))? ((3.0 + x_18) > (20.0 + x_19)? (3.0 + x_18) : (20.0 + x_19)) : ((1.0 + x_20) > (17.0 + x_25)? (1.0 + x_20) : (17.0 + x_25))) : (((9.0 + x_26) > (3.0 + x_28)? (9.0 + x_26) : (3.0 + x_28)) > ((16.0 + x_29) > ((16.0 + x_32) > (15.0 + x_34)? (16.0 + x_32) : (15.0 + x_34))? (16.0 + x_29) : ((16.0 + x_32) > (15.0 + x_34)? (16.0 + x_32) : (15.0 + x_34)))? ((9.0 + x_26) > (3.0 + x_28)? (9.0 + x_26) : (3.0 + x_28)) : ((16.0 + x_29) > ((16.0 + x_32) > (15.0 + x_34)? (16.0 + x_32) : (15.0 + x_34))? (16.0 + x_29) : ((16.0 + x_32) > (15.0 + x_34)? (16.0 + x_32) : (15.0 + x_34)))))? ((((2.0 + x_0) > (17.0 + x_3)? (2.0 + x_0) : (17.0 + x_3)) > ((2.0 + x_4) > (6.0 + x_6)? (2.0 + x_4) : (6.0 + x_6))? ((2.0 + x_0) > (17.0 + x_3)? (2.0 + x_0) : (17.0 + x_3)) : ((2.0 + x_4) > (6.0 + x_6)? (2.0 + x_4) : (6.0 + x_6))) > (((6.0 + x_7) > (16.0 + x_8)? (6.0 + x_7) : (16.0 + x_8)) > ((3.0 + x_11) > ((9.0 + x_12) > (10.0 + x_16)? (9.0 + x_12) : (10.0 + x_16))? (3.0 + x_11) : ((9.0 + x_12) > (10.0 + x_16)? (9.0 + x_12) : (10.0 + x_16)))? ((6.0 + x_7) > (16.0 + x_8)? (6.0 + x_7) : (16.0 + x_8)) : ((3.0 + x_11) > ((9.0 + x_12) > (10.0 + x_16)? (9.0 + x_12) : (10.0 + x_16))? (3.0 + x_11) : ((9.0 + x_12) > (10.0 + x_16)? (9.0 + x_12) : (10.0 + x_16))))? (((2.0 + x_0) > (17.0 + x_3)? (2.0 + x_0) : (17.0 + x_3)) > ((2.0 + x_4) > (6.0 + x_6)? (2.0 + x_4) : (6.0 + x_6))? ((2.0 + x_0) > (17.0 + x_3)? (2.0 + x_0) : (17.0 + x_3)) : ((2.0 + x_4) > (6.0 + x_6)? (2.0 + x_4) : (6.0 + x_6))) : (((6.0 + x_7) > (16.0 + x_8)? (6.0 + x_7) : (16.0 + x_8)) > ((3.0 + x_11) > ((9.0 + x_12) > (10.0 + x_16)? (9.0 + x_12) : (10.0 + x_16))? (3.0 + x_11) : ((9.0 + x_12) > (10.0 + x_16)? (9.0 + x_12) : (10.0 + x_16)))? ((6.0 + x_7) > (16.0 + x_8)? (6.0 + x_7) : (16.0 + x_8)) : ((3.0 + x_11) > ((9.0 + x_12) > (10.0 + x_16)? (9.0 + x_12) : (10.0 + x_16))? (3.0 + x_11) : ((9.0 + x_12) > (10.0 + x_16)? (9.0 + x_12) : (10.0 + x_16))))) : ((((3.0 + x_18) > (20.0 + x_19)? (3.0 + x_18) : (20.0 + x_19)) > ((1.0 + x_20) > (17.0 + x_25)? (1.0 + x_20) : (17.0 + x_25))? ((3.0 + x_18) > (20.0 + x_19)? (3.0 + x_18) : (20.0 + x_19)) : ((1.0 + x_20) > (17.0 + x_25)? (1.0 + x_20) : (17.0 + x_25))) > (((9.0 + x_26) > (3.0 + x_28)? (9.0 + x_26) : (3.0 + x_28)) > ((16.0 + x_29) > ((16.0 + x_32) > (15.0 + x_34)? (16.0 + x_32) : (15.0 + x_34))? (16.0 + x_29) : ((16.0 + x_32) > (15.0 + x_34)? (16.0 + x_32) : (15.0 + x_34)))? ((9.0 + x_26) > (3.0 + x_28)? (9.0 + x_26) : (3.0 + x_28)) : ((16.0 + x_29) > ((16.0 + x_32) > (15.0 + x_34)? (16.0 + x_32) : (15.0 + x_34))? (16.0 + x_29) : ((16.0 + x_32) > (15.0 + x_34)? (16.0 + x_32) : (15.0 + x_34))))? (((3.0 + x_18) > (20.0 + x_19)? (3.0 + x_18) : (20.0 + x_19)) > ((1.0 + x_20) > (17.0 + x_25)? (1.0 + x_20) : (17.0 + x_25))? ((3.0 + x_18) > (20.0 + x_19)? (3.0 + x_18) : (20.0 + x_19)) : ((1.0 + x_20) > (17.0 + x_25)? (1.0 + x_20) : (17.0 + x_25))) : (((9.0 + x_26) > (3.0 + x_28)? (9.0 + x_26) : (3.0 + x_28)) > ((16.0 + x_29) > ((16.0 + x_32) > (15.0 + x_34)? (16.0 + x_32) : (15.0 + x_34))? (16.0 + x_29) : ((16.0 + x_32) > (15.0 + x_34)? (16.0 + x_32) : (15.0 + x_34)))? ((9.0 + x_26) > (3.0 + x_28)? (9.0 + x_26) : (3.0 + x_28)) : ((16.0 + x_29) > ((16.0 + x_32) > (15.0 + x_34)? (16.0 + x_32) : (15.0 + x_34))? (16.0 + x_29) : ((16.0 + x_32) > (15.0 + x_34)? (16.0 + x_32) : (15.0 + x_34))))));
x_28_ = (((((19.0 + x_3) > (5.0 + x_4)? (19.0 + x_3) : (5.0 + x_4)) > ((13.0 + x_5) > (19.0 + x_6)? (13.0 + x_5) : (19.0 + x_6))? ((19.0 + x_3) > (5.0 + x_4)? (19.0 + x_3) : (5.0 + x_4)) : ((13.0 + x_5) > (19.0 + x_6)? (13.0 + x_5) : (19.0 + x_6))) > (((19.0 + x_10) > (15.0 + x_11)? (19.0 + x_10) : (15.0 + x_11)) > ((11.0 + x_13) > ((16.0 + x_14) > (17.0 + x_16)? (16.0 + x_14) : (17.0 + x_16))? (11.0 + x_13) : ((16.0 + x_14) > (17.0 + x_16)? (16.0 + x_14) : (17.0 + x_16)))? ((19.0 + x_10) > (15.0 + x_11)? (19.0 + x_10) : (15.0 + x_11)) : ((11.0 + x_13) > ((16.0 + x_14) > (17.0 + x_16)? (16.0 + x_14) : (17.0 + x_16))? (11.0 + x_13) : ((16.0 + x_14) > (17.0 + x_16)? (16.0 + x_14) : (17.0 + x_16))))? (((19.0 + x_3) > (5.0 + x_4)? (19.0 + x_3) : (5.0 + x_4)) > ((13.0 + x_5) > (19.0 + x_6)? (13.0 + x_5) : (19.0 + x_6))? ((19.0 + x_3) > (5.0 + x_4)? (19.0 + x_3) : (5.0 + x_4)) : ((13.0 + x_5) > (19.0 + x_6)? (13.0 + x_5) : (19.0 + x_6))) : (((19.0 + x_10) > (15.0 + x_11)? (19.0 + x_10) : (15.0 + x_11)) > ((11.0 + x_13) > ((16.0 + x_14) > (17.0 + x_16)? (16.0 + x_14) : (17.0 + x_16))? (11.0 + x_13) : ((16.0 + x_14) > (17.0 + x_16)? (16.0 + x_14) : (17.0 + x_16)))? ((19.0 + x_10) > (15.0 + x_11)? (19.0 + x_10) : (15.0 + x_11)) : ((11.0 + x_13) > ((16.0 + x_14) > (17.0 + x_16)? (16.0 + x_14) : (17.0 + x_16))? (11.0 + x_13) : ((16.0 + x_14) > (17.0 + x_16)? (16.0 + x_14) : (17.0 + x_16))))) > ((((12.0 + x_17) > (7.0 + x_18)? (12.0 + x_17) : (7.0 + x_18)) > ((9.0 + x_19) > (6.0 + x_20)? (9.0 + x_19) : (6.0 + x_20))? ((12.0 + x_17) > (7.0 + x_18)? (12.0 + x_17) : (7.0 + x_18)) : ((9.0 + x_19) > (6.0 + x_20)? (9.0 + x_19) : (6.0 + x_20))) > (((18.0 + x_21) > (5.0 + x_24)? (18.0 + x_21) : (5.0 + x_24)) > ((12.0 + x_26) > ((12.0 + x_30) > (9.0 + x_34)? (12.0 + x_30) : (9.0 + x_34))? (12.0 + x_26) : ((12.0 + x_30) > (9.0 + x_34)? (12.0 + x_30) : (9.0 + x_34)))? ((18.0 + x_21) > (5.0 + x_24)? (18.0 + x_21) : (5.0 + x_24)) : ((12.0 + x_26) > ((12.0 + x_30) > (9.0 + x_34)? (12.0 + x_30) : (9.0 + x_34))? (12.0 + x_26) : ((12.0 + x_30) > (9.0 + x_34)? (12.0 + x_30) : (9.0 + x_34))))? (((12.0 + x_17) > (7.0 + x_18)? (12.0 + x_17) : (7.0 + x_18)) > ((9.0 + x_19) > (6.0 + x_20)? (9.0 + x_19) : (6.0 + x_20))? ((12.0 + x_17) > (7.0 + x_18)? (12.0 + x_17) : (7.0 + x_18)) : ((9.0 + x_19) > (6.0 + x_20)? (9.0 + x_19) : (6.0 + x_20))) : (((18.0 + x_21) > (5.0 + x_24)? (18.0 + x_21) : (5.0 + x_24)) > ((12.0 + x_26) > ((12.0 + x_30) > (9.0 + x_34)? (12.0 + x_30) : (9.0 + x_34))? (12.0 + x_26) : ((12.0 + x_30) > (9.0 + x_34)? (12.0 + x_30) : (9.0 + x_34)))? ((18.0 + x_21) > (5.0 + x_24)? (18.0 + x_21) : (5.0 + x_24)) : ((12.0 + x_26) > ((12.0 + x_30) > (9.0 + x_34)? (12.0 + x_30) : (9.0 + x_34))? (12.0 + x_26) : ((12.0 + x_30) > (9.0 + x_34)? (12.0 + x_30) : (9.0 + x_34)))))? ((((19.0 + x_3) > (5.0 + x_4)? (19.0 + x_3) : (5.0 + x_4)) > ((13.0 + x_5) > (19.0 + x_6)? (13.0 + x_5) : (19.0 + x_6))? ((19.0 + x_3) > (5.0 + x_4)? (19.0 + x_3) : (5.0 + x_4)) : ((13.0 + x_5) > (19.0 + x_6)? (13.0 + x_5) : (19.0 + x_6))) > (((19.0 + x_10) > (15.0 + x_11)? (19.0 + x_10) : (15.0 + x_11)) > ((11.0 + x_13) > ((16.0 + x_14) > (17.0 + x_16)? (16.0 + x_14) : (17.0 + x_16))? (11.0 + x_13) : ((16.0 + x_14) > (17.0 + x_16)? (16.0 + x_14) : (17.0 + x_16)))? ((19.0 + x_10) > (15.0 + x_11)? (19.0 + x_10) : (15.0 + x_11)) : ((11.0 + x_13) > ((16.0 + x_14) > (17.0 + x_16)? (16.0 + x_14) : (17.0 + x_16))? (11.0 + x_13) : ((16.0 + x_14) > (17.0 + x_16)? (16.0 + x_14) : (17.0 + x_16))))? (((19.0 + x_3) > (5.0 + x_4)? (19.0 + x_3) : (5.0 + x_4)) > ((13.0 + x_5) > (19.0 + x_6)? (13.0 + x_5) : (19.0 + x_6))? ((19.0 + x_3) > (5.0 + x_4)? (19.0 + x_3) : (5.0 + x_4)) : ((13.0 + x_5) > (19.0 + x_6)? (13.0 + x_5) : (19.0 + x_6))) : (((19.0 + x_10) > (15.0 + x_11)? (19.0 + x_10) : (15.0 + x_11)) > ((11.0 + x_13) > ((16.0 + x_14) > (17.0 + x_16)? (16.0 + x_14) : (17.0 + x_16))? (11.0 + x_13) : ((16.0 + x_14) > (17.0 + x_16)? (16.0 + x_14) : (17.0 + x_16)))? ((19.0 + x_10) > (15.0 + x_11)? (19.0 + x_10) : (15.0 + x_11)) : ((11.0 + x_13) > ((16.0 + x_14) > (17.0 + x_16)? (16.0 + x_14) : (17.0 + x_16))? (11.0 + x_13) : ((16.0 + x_14) > (17.0 + x_16)? (16.0 + x_14) : (17.0 + x_16))))) : ((((12.0 + x_17) > (7.0 + x_18)? (12.0 + x_17) : (7.0 + x_18)) > ((9.0 + x_19) > (6.0 + x_20)? (9.0 + x_19) : (6.0 + x_20))? ((12.0 + x_17) > (7.0 + x_18)? (12.0 + x_17) : (7.0 + x_18)) : ((9.0 + x_19) > (6.0 + x_20)? (9.0 + x_19) : (6.0 + x_20))) > (((18.0 + x_21) > (5.0 + x_24)? (18.0 + x_21) : (5.0 + x_24)) > ((12.0 + x_26) > ((12.0 + x_30) > (9.0 + x_34)? (12.0 + x_30) : (9.0 + x_34))? (12.0 + x_26) : ((12.0 + x_30) > (9.0 + x_34)? (12.0 + x_30) : (9.0 + x_34)))? ((18.0 + x_21) > (5.0 + x_24)? (18.0 + x_21) : (5.0 + x_24)) : ((12.0 + x_26) > ((12.0 + x_30) > (9.0 + x_34)? (12.0 + x_30) : (9.0 + x_34))? (12.0 + x_26) : ((12.0 + x_30) > (9.0 + x_34)? (12.0 + x_30) : (9.0 + x_34))))? (((12.0 + x_17) > (7.0 + x_18)? (12.0 + x_17) : (7.0 + x_18)) > ((9.0 + x_19) > (6.0 + x_20)? (9.0 + x_19) : (6.0 + x_20))? ((12.0 + x_17) > (7.0 + x_18)? (12.0 + x_17) : (7.0 + x_18)) : ((9.0 + x_19) > (6.0 + x_20)? (9.0 + x_19) : (6.0 + x_20))) : (((18.0 + x_21) > (5.0 + x_24)? (18.0 + x_21) : (5.0 + x_24)) > ((12.0 + x_26) > ((12.0 + x_30) > (9.0 + x_34)? (12.0 + x_30) : (9.0 + x_34))? (12.0 + x_26) : ((12.0 + x_30) > (9.0 + x_34)? (12.0 + x_30) : (9.0 + x_34)))? ((18.0 + x_21) > (5.0 + x_24)? (18.0 + x_21) : (5.0 + x_24)) : ((12.0 + x_26) > ((12.0 + x_30) > (9.0 + x_34)? (12.0 + x_30) : (9.0 + x_34))? (12.0 + x_26) : ((12.0 + x_30) > (9.0 + x_34)? (12.0 + x_30) : (9.0 + x_34))))));
x_29_ = (((((2.0 + x_1) > (16.0 + x_4)? (2.0 + x_1) : (16.0 + x_4)) > ((12.0 + x_5) > (19.0 + x_7)? (12.0 + x_5) : (19.0 + x_7))? ((2.0 + x_1) > (16.0 + x_4)? (2.0 + x_1) : (16.0 + x_4)) : ((12.0 + x_5) > (19.0 + x_7)? (12.0 + x_5) : (19.0 + x_7))) > (((2.0 + x_8) > (4.0 + x_10)? (2.0 + x_8) : (4.0 + x_10)) > ((7.0 + x_13) > ((19.0 + x_15) > (17.0 + x_17)? (19.0 + x_15) : (17.0 + x_17))? (7.0 + x_13) : ((19.0 + x_15) > (17.0 + x_17)? (19.0 + x_15) : (17.0 + x_17)))? ((2.0 + x_8) > (4.0 + x_10)? (2.0 + x_8) : (4.0 + x_10)) : ((7.0 + x_13) > ((19.0 + x_15) > (17.0 + x_17)? (19.0 + x_15) : (17.0 + x_17))? (7.0 + x_13) : ((19.0 + x_15) > (17.0 + x_17)? (19.0 + x_15) : (17.0 + x_17))))? (((2.0 + x_1) > (16.0 + x_4)? (2.0 + x_1) : (16.0 + x_4)) > ((12.0 + x_5) > (19.0 + x_7)? (12.0 + x_5) : (19.0 + x_7))? ((2.0 + x_1) > (16.0 + x_4)? (2.0 + x_1) : (16.0 + x_4)) : ((12.0 + x_5) > (19.0 + x_7)? (12.0 + x_5) : (19.0 + x_7))) : (((2.0 + x_8) > (4.0 + x_10)? (2.0 + x_8) : (4.0 + x_10)) > ((7.0 + x_13) > ((19.0 + x_15) > (17.0 + x_17)? (19.0 + x_15) : (17.0 + x_17))? (7.0 + x_13) : ((19.0 + x_15) > (17.0 + x_17)? (19.0 + x_15) : (17.0 + x_17)))? ((2.0 + x_8) > (4.0 + x_10)? (2.0 + x_8) : (4.0 + x_10)) : ((7.0 + x_13) > ((19.0 + x_15) > (17.0 + x_17)? (19.0 + x_15) : (17.0 + x_17))? (7.0 + x_13) : ((19.0 + x_15) > (17.0 + x_17)? (19.0 + x_15) : (17.0 + x_17))))) > ((((12.0 + x_19) > (12.0 + x_20)? (12.0 + x_19) : (12.0 + x_20)) > ((7.0 + x_21) > (9.0 + x_22)? (7.0 + x_21) : (9.0 + x_22))? ((12.0 + x_19) > (12.0 + x_20)? (12.0 + x_19) : (12.0 + x_20)) : ((7.0 + x_21) > (9.0 + x_22)? (7.0 + x_21) : (9.0 + x_22))) > (((14.0 + x_23) > (20.0 + x_24)? (14.0 + x_23) : (20.0 + x_24)) > ((18.0 + x_30) > ((13.0 + x_33) > (12.0 + x_34)? (13.0 + x_33) : (12.0 + x_34))? (18.0 + x_30) : ((13.0 + x_33) > (12.0 + x_34)? (13.0 + x_33) : (12.0 + x_34)))? ((14.0 + x_23) > (20.0 + x_24)? (14.0 + x_23) : (20.0 + x_24)) : ((18.0 + x_30) > ((13.0 + x_33) > (12.0 + x_34)? (13.0 + x_33) : (12.0 + x_34))? (18.0 + x_30) : ((13.0 + x_33) > (12.0 + x_34)? (13.0 + x_33) : (12.0 + x_34))))? (((12.0 + x_19) > (12.0 + x_20)? (12.0 + x_19) : (12.0 + x_20)) > ((7.0 + x_21) > (9.0 + x_22)? (7.0 + x_21) : (9.0 + x_22))? ((12.0 + x_19) > (12.0 + x_20)? (12.0 + x_19) : (12.0 + x_20)) : ((7.0 + x_21) > (9.0 + x_22)? (7.0 + x_21) : (9.0 + x_22))) : (((14.0 + x_23) > (20.0 + x_24)? (14.0 + x_23) : (20.0 + x_24)) > ((18.0 + x_30) > ((13.0 + x_33) > (12.0 + x_34)? (13.0 + x_33) : (12.0 + x_34))? (18.0 + x_30) : ((13.0 + x_33) > (12.0 + x_34)? (13.0 + x_33) : (12.0 + x_34)))? ((14.0 + x_23) > (20.0 + x_24)? (14.0 + x_23) : (20.0 + x_24)) : ((18.0 + x_30) > ((13.0 + x_33) > (12.0 + x_34)? (13.0 + x_33) : (12.0 + x_34))? (18.0 + x_30) : ((13.0 + x_33) > (12.0 + x_34)? (13.0 + x_33) : (12.0 + x_34)))))? ((((2.0 + x_1) > (16.0 + x_4)? (2.0 + x_1) : (16.0 + x_4)) > ((12.0 + x_5) > (19.0 + x_7)? (12.0 + x_5) : (19.0 + x_7))? ((2.0 + x_1) > (16.0 + x_4)? (2.0 + x_1) : (16.0 + x_4)) : ((12.0 + x_5) > (19.0 + x_7)? (12.0 + x_5) : (19.0 + x_7))) > (((2.0 + x_8) > (4.0 + x_10)? (2.0 + x_8) : (4.0 + x_10)) > ((7.0 + x_13) > ((19.0 + x_15) > (17.0 + x_17)? (19.0 + x_15) : (17.0 + x_17))? (7.0 + x_13) : ((19.0 + x_15) > (17.0 + x_17)? (19.0 + x_15) : (17.0 + x_17)))? ((2.0 + x_8) > (4.0 + x_10)? (2.0 + x_8) : (4.0 + x_10)) : ((7.0 + x_13) > ((19.0 + x_15) > (17.0 + x_17)? (19.0 + x_15) : (17.0 + x_17))? (7.0 + x_13) : ((19.0 + x_15) > (17.0 + x_17)? (19.0 + x_15) : (17.0 + x_17))))? (((2.0 + x_1) > (16.0 + x_4)? (2.0 + x_1) : (16.0 + x_4)) > ((12.0 + x_5) > (19.0 + x_7)? (12.0 + x_5) : (19.0 + x_7))? ((2.0 + x_1) > (16.0 + x_4)? (2.0 + x_1) : (16.0 + x_4)) : ((12.0 + x_5) > (19.0 + x_7)? (12.0 + x_5) : (19.0 + x_7))) : (((2.0 + x_8) > (4.0 + x_10)? (2.0 + x_8) : (4.0 + x_10)) > ((7.0 + x_13) > ((19.0 + x_15) > (17.0 + x_17)? (19.0 + x_15) : (17.0 + x_17))? (7.0 + x_13) : ((19.0 + x_15) > (17.0 + x_17)? (19.0 + x_15) : (17.0 + x_17)))? ((2.0 + x_8) > (4.0 + x_10)? (2.0 + x_8) : (4.0 + x_10)) : ((7.0 + x_13) > ((19.0 + x_15) > (17.0 + x_17)? (19.0 + x_15) : (17.0 + x_17))? (7.0 + x_13) : ((19.0 + x_15) > (17.0 + x_17)? (19.0 + x_15) : (17.0 + x_17))))) : ((((12.0 + x_19) > (12.0 + x_20)? (12.0 + x_19) : (12.0 + x_20)) > ((7.0 + x_21) > (9.0 + x_22)? (7.0 + x_21) : (9.0 + x_22))? ((12.0 + x_19) > (12.0 + x_20)? (12.0 + x_19) : (12.0 + x_20)) : ((7.0 + x_21) > (9.0 + x_22)? (7.0 + x_21) : (9.0 + x_22))) > (((14.0 + x_23) > (20.0 + x_24)? (14.0 + x_23) : (20.0 + x_24)) > ((18.0 + x_30) > ((13.0 + x_33) > (12.0 + x_34)? (13.0 + x_33) : (12.0 + x_34))? (18.0 + x_30) : ((13.0 + x_33) > (12.0 + x_34)? (13.0 + x_33) : (12.0 + x_34)))? ((14.0 + x_23) > (20.0 + x_24)? (14.0 + x_23) : (20.0 + x_24)) : ((18.0 + x_30) > ((13.0 + x_33) > (12.0 + x_34)? (13.0 + x_33) : (12.0 + x_34))? (18.0 + x_30) : ((13.0 + x_33) > (12.0 + x_34)? (13.0 + x_33) : (12.0 + x_34))))? (((12.0 + x_19) > (12.0 + x_20)? (12.0 + x_19) : (12.0 + x_20)) > ((7.0 + x_21) > (9.0 + x_22)? (7.0 + x_21) : (9.0 + x_22))? ((12.0 + x_19) > (12.0 + x_20)? (12.0 + x_19) : (12.0 + x_20)) : ((7.0 + x_21) > (9.0 + x_22)? (7.0 + x_21) : (9.0 + x_22))) : (((14.0 + x_23) > (20.0 + x_24)? (14.0 + x_23) : (20.0 + x_24)) > ((18.0 + x_30) > ((13.0 + x_33) > (12.0 + x_34)? (13.0 + x_33) : (12.0 + x_34))? (18.0 + x_30) : ((13.0 + x_33) > (12.0 + x_34)? (13.0 + x_33) : (12.0 + x_34)))? ((14.0 + x_23) > (20.0 + x_24)? (14.0 + x_23) : (20.0 + x_24)) : ((18.0 + x_30) > ((13.0 + x_33) > (12.0 + x_34)? (13.0 + x_33) : (12.0 + x_34))? (18.0 + x_30) : ((13.0 + x_33) > (12.0 + x_34)? (13.0 + x_33) : (12.0 + x_34))))));
x_30_ = (((((8.0 + x_0) > (6.0 + x_2)? (8.0 + x_0) : (6.0 + x_2)) > ((9.0 + x_5) > (12.0 + x_9)? (9.0 + x_5) : (12.0 + x_9))? ((8.0 + x_0) > (6.0 + x_2)? (8.0 + x_0) : (6.0 + x_2)) : ((9.0 + x_5) > (12.0 + x_9)? (9.0 + x_5) : (12.0 + x_9))) > (((7.0 + x_10) > (5.0 + x_15)? (7.0 + x_10) : (5.0 + x_15)) > ((12.0 + x_17) > ((11.0 + x_18) > (18.0 + x_19)? (11.0 + x_18) : (18.0 + x_19))? (12.0 + x_17) : ((11.0 + x_18) > (18.0 + x_19)? (11.0 + x_18) : (18.0 + x_19)))? ((7.0 + x_10) > (5.0 + x_15)? (7.0 + x_10) : (5.0 + x_15)) : ((12.0 + x_17) > ((11.0 + x_18) > (18.0 + x_19)? (11.0 + x_18) : (18.0 + x_19))? (12.0 + x_17) : ((11.0 + x_18) > (18.0 + x_19)? (11.0 + x_18) : (18.0 + x_19))))? (((8.0 + x_0) > (6.0 + x_2)? (8.0 + x_0) : (6.0 + x_2)) > ((9.0 + x_5) > (12.0 + x_9)? (9.0 + x_5) : (12.0 + x_9))? ((8.0 + x_0) > (6.0 + x_2)? (8.0 + x_0) : (6.0 + x_2)) : ((9.0 + x_5) > (12.0 + x_9)? (9.0 + x_5) : (12.0 + x_9))) : (((7.0 + x_10) > (5.0 + x_15)? (7.0 + x_10) : (5.0 + x_15)) > ((12.0 + x_17) > ((11.0 + x_18) > (18.0 + x_19)? (11.0 + x_18) : (18.0 + x_19))? (12.0 + x_17) : ((11.0 + x_18) > (18.0 + x_19)? (11.0 + x_18) : (18.0 + x_19)))? ((7.0 + x_10) > (5.0 + x_15)? (7.0 + x_10) : (5.0 + x_15)) : ((12.0 + x_17) > ((11.0 + x_18) > (18.0 + x_19)? (11.0 + x_18) : (18.0 + x_19))? (12.0 + x_17) : ((11.0 + x_18) > (18.0 + x_19)? (11.0 + x_18) : (18.0 + x_19))))) > ((((4.0 + x_21) > (10.0 + x_22)? (4.0 + x_21) : (10.0 + x_22)) > ((10.0 + x_23) > (19.0 + x_24)? (10.0 + x_23) : (19.0 + x_24))? ((4.0 + x_21) > (10.0 + x_22)? (4.0 + x_21) : (10.0 + x_22)) : ((10.0 + x_23) > (19.0 + x_24)? (10.0 + x_23) : (19.0 + x_24))) > (((3.0 + x_26) > (14.0 + x_27)? (3.0 + x_26) : (14.0 + x_27)) > ((12.0 + x_30) > ((3.0 + x_31) > (16.0 + x_33)? (3.0 + x_31) : (16.0 + x_33))? (12.0 + x_30) : ((3.0 + x_31) > (16.0 + x_33)? (3.0 + x_31) : (16.0 + x_33)))? ((3.0 + x_26) > (14.0 + x_27)? (3.0 + x_26) : (14.0 + x_27)) : ((12.0 + x_30) > ((3.0 + x_31) > (16.0 + x_33)? (3.0 + x_31) : (16.0 + x_33))? (12.0 + x_30) : ((3.0 + x_31) > (16.0 + x_33)? (3.0 + x_31) : (16.0 + x_33))))? (((4.0 + x_21) > (10.0 + x_22)? (4.0 + x_21) : (10.0 + x_22)) > ((10.0 + x_23) > (19.0 + x_24)? (10.0 + x_23) : (19.0 + x_24))? ((4.0 + x_21) > (10.0 + x_22)? (4.0 + x_21) : (10.0 + x_22)) : ((10.0 + x_23) > (19.0 + x_24)? (10.0 + x_23) : (19.0 + x_24))) : (((3.0 + x_26) > (14.0 + x_27)? (3.0 + x_26) : (14.0 + x_27)) > ((12.0 + x_30) > ((3.0 + x_31) > (16.0 + x_33)? (3.0 + x_31) : (16.0 + x_33))? (12.0 + x_30) : ((3.0 + x_31) > (16.0 + x_33)? (3.0 + x_31) : (16.0 + x_33)))? ((3.0 + x_26) > (14.0 + x_27)? (3.0 + x_26) : (14.0 + x_27)) : ((12.0 + x_30) > ((3.0 + x_31) > (16.0 + x_33)? (3.0 + x_31) : (16.0 + x_33))? (12.0 + x_30) : ((3.0 + x_31) > (16.0 + x_33)? (3.0 + x_31) : (16.0 + x_33)))))? ((((8.0 + x_0) > (6.0 + x_2)? (8.0 + x_0) : (6.0 + x_2)) > ((9.0 + x_5) > (12.0 + x_9)? (9.0 + x_5) : (12.0 + x_9))? ((8.0 + x_0) > (6.0 + x_2)? (8.0 + x_0) : (6.0 + x_2)) : ((9.0 + x_5) > (12.0 + x_9)? (9.0 + x_5) : (12.0 + x_9))) > (((7.0 + x_10) > (5.0 + x_15)? (7.0 + x_10) : (5.0 + x_15)) > ((12.0 + x_17) > ((11.0 + x_18) > (18.0 + x_19)? (11.0 + x_18) : (18.0 + x_19))? (12.0 + x_17) : ((11.0 + x_18) > (18.0 + x_19)? (11.0 + x_18) : (18.0 + x_19)))? ((7.0 + x_10) > (5.0 + x_15)? (7.0 + x_10) : (5.0 + x_15)) : ((12.0 + x_17) > ((11.0 + x_18) > (18.0 + x_19)? (11.0 + x_18) : (18.0 + x_19))? (12.0 + x_17) : ((11.0 + x_18) > (18.0 + x_19)? (11.0 + x_18) : (18.0 + x_19))))? (((8.0 + x_0) > (6.0 + x_2)? (8.0 + x_0) : (6.0 + x_2)) > ((9.0 + x_5) > (12.0 + x_9)? (9.0 + x_5) : (12.0 + x_9))? ((8.0 + x_0) > (6.0 + x_2)? (8.0 + x_0) : (6.0 + x_2)) : ((9.0 + x_5) > (12.0 + x_9)? (9.0 + x_5) : (12.0 + x_9))) : (((7.0 + x_10) > (5.0 + x_15)? (7.0 + x_10) : (5.0 + x_15)) > ((12.0 + x_17) > ((11.0 + x_18) > (18.0 + x_19)? (11.0 + x_18) : (18.0 + x_19))? (12.0 + x_17) : ((11.0 + x_18) > (18.0 + x_19)? (11.0 + x_18) : (18.0 + x_19)))? ((7.0 + x_10) > (5.0 + x_15)? (7.0 + x_10) : (5.0 + x_15)) : ((12.0 + x_17) > ((11.0 + x_18) > (18.0 + x_19)? (11.0 + x_18) : (18.0 + x_19))? (12.0 + x_17) : ((11.0 + x_18) > (18.0 + x_19)? (11.0 + x_18) : (18.0 + x_19))))) : ((((4.0 + x_21) > (10.0 + x_22)? (4.0 + x_21) : (10.0 + x_22)) > ((10.0 + x_23) > (19.0 + x_24)? (10.0 + x_23) : (19.0 + x_24))? ((4.0 + x_21) > (10.0 + x_22)? (4.0 + x_21) : (10.0 + x_22)) : ((10.0 + x_23) > (19.0 + x_24)? (10.0 + x_23) : (19.0 + x_24))) > (((3.0 + x_26) > (14.0 + x_27)? (3.0 + x_26) : (14.0 + x_27)) > ((12.0 + x_30) > ((3.0 + x_31) > (16.0 + x_33)? (3.0 + x_31) : (16.0 + x_33))? (12.0 + x_30) : ((3.0 + x_31) > (16.0 + x_33)? (3.0 + x_31) : (16.0 + x_33)))? ((3.0 + x_26) > (14.0 + x_27)? (3.0 + x_26) : (14.0 + x_27)) : ((12.0 + x_30) > ((3.0 + x_31) > (16.0 + x_33)? (3.0 + x_31) : (16.0 + x_33))? (12.0 + x_30) : ((3.0 + x_31) > (16.0 + x_33)? (3.0 + x_31) : (16.0 + x_33))))? (((4.0 + x_21) > (10.0 + x_22)? (4.0 + x_21) : (10.0 + x_22)) > ((10.0 + x_23) > (19.0 + x_24)? (10.0 + x_23) : (19.0 + x_24))? ((4.0 + x_21) > (10.0 + x_22)? (4.0 + x_21) : (10.0 + x_22)) : ((10.0 + x_23) > (19.0 + x_24)? (10.0 + x_23) : (19.0 + x_24))) : (((3.0 + x_26) > (14.0 + x_27)? (3.0 + x_26) : (14.0 + x_27)) > ((12.0 + x_30) > ((3.0 + x_31) > (16.0 + x_33)? (3.0 + x_31) : (16.0 + x_33))? (12.0 + x_30) : ((3.0 + x_31) > (16.0 + x_33)? (3.0 + x_31) : (16.0 + x_33)))? ((3.0 + x_26) > (14.0 + x_27)? (3.0 + x_26) : (14.0 + x_27)) : ((12.0 + x_30) > ((3.0 + x_31) > (16.0 + x_33)? (3.0 + x_31) : (16.0 + x_33))? (12.0 + x_30) : ((3.0 + x_31) > (16.0 + x_33)? (3.0 + x_31) : (16.0 + x_33))))));
x_31_ = (((((17.0 + x_1) > (4.0 + x_3)? (17.0 + x_1) : (4.0 + x_3)) > ((8.0 + x_4) > (11.0 + x_7)? (8.0 + x_4) : (11.0 + x_7))? ((17.0 + x_1) > (4.0 + x_3)? (17.0 + x_1) : (4.0 + x_3)) : ((8.0 + x_4) > (11.0 + x_7)? (8.0 + x_4) : (11.0 + x_7))) > (((9.0 + x_8) > (5.0 + x_9)? (9.0 + x_8) : (5.0 + x_9)) > ((18.0 + x_12) > ((8.0 + x_13) > (13.0 + x_14)? (8.0 + x_13) : (13.0 + x_14))? (18.0 + x_12) : ((8.0 + x_13) > (13.0 + x_14)? (8.0 + x_13) : (13.0 + x_14)))? ((9.0 + x_8) > (5.0 + x_9)? (9.0 + x_8) : (5.0 + x_9)) : ((18.0 + x_12) > ((8.0 + x_13) > (13.0 + x_14)? (8.0 + x_13) : (13.0 + x_14))? (18.0 + x_12) : ((8.0 + x_13) > (13.0 + x_14)? (8.0 + x_13) : (13.0 + x_14))))? (((17.0 + x_1) > (4.0 + x_3)? (17.0 + x_1) : (4.0 + x_3)) > ((8.0 + x_4) > (11.0 + x_7)? (8.0 + x_4) : (11.0 + x_7))? ((17.0 + x_1) > (4.0 + x_3)? (17.0 + x_1) : (4.0 + x_3)) : ((8.0 + x_4) > (11.0 + x_7)? (8.0 + x_4) : (11.0 + x_7))) : (((9.0 + x_8) > (5.0 + x_9)? (9.0 + x_8) : (5.0 + x_9)) > ((18.0 + x_12) > ((8.0 + x_13) > (13.0 + x_14)? (8.0 + x_13) : (13.0 + x_14))? (18.0 + x_12) : ((8.0 + x_13) > (13.0 + x_14)? (8.0 + x_13) : (13.0 + x_14)))? ((9.0 + x_8) > (5.0 + x_9)? (9.0 + x_8) : (5.0 + x_9)) : ((18.0 + x_12) > ((8.0 + x_13) > (13.0 + x_14)? (8.0 + x_13) : (13.0 + x_14))? (18.0 + x_12) : ((8.0 + x_13) > (13.0 + x_14)? (8.0 + x_13) : (13.0 + x_14))))) > ((((13.0 + x_17) > (20.0 + x_19)? (13.0 + x_17) : (20.0 + x_19)) > ((15.0 + x_25) > (4.0 + x_26)? (15.0 + x_25) : (4.0 + x_26))? ((13.0 + x_17) > (20.0 + x_19)? (13.0 + x_17) : (20.0 + x_19)) : ((15.0 + x_25) > (4.0 + x_26)? (15.0 + x_25) : (4.0 + x_26))) > (((20.0 + x_27) > (5.0 + x_29)? (20.0 + x_27) : (5.0 + x_29)) > ((16.0 + x_30) > ((4.0 + x_31) > (13.0 + x_32)? (4.0 + x_31) : (13.0 + x_32))? (16.0 + x_30) : ((4.0 + x_31) > (13.0 + x_32)? (4.0 + x_31) : (13.0 + x_32)))? ((20.0 + x_27) > (5.0 + x_29)? (20.0 + x_27) : (5.0 + x_29)) : ((16.0 + x_30) > ((4.0 + x_31) > (13.0 + x_32)? (4.0 + x_31) : (13.0 + x_32))? (16.0 + x_30) : ((4.0 + x_31) > (13.0 + x_32)? (4.0 + x_31) : (13.0 + x_32))))? (((13.0 + x_17) > (20.0 + x_19)? (13.0 + x_17) : (20.0 + x_19)) > ((15.0 + x_25) > (4.0 + x_26)? (15.0 + x_25) : (4.0 + x_26))? ((13.0 + x_17) > (20.0 + x_19)? (13.0 + x_17) : (20.0 + x_19)) : ((15.0 + x_25) > (4.0 + x_26)? (15.0 + x_25) : (4.0 + x_26))) : (((20.0 + x_27) > (5.0 + x_29)? (20.0 + x_27) : (5.0 + x_29)) > ((16.0 + x_30) > ((4.0 + x_31) > (13.0 + x_32)? (4.0 + x_31) : (13.0 + x_32))? (16.0 + x_30) : ((4.0 + x_31) > (13.0 + x_32)? (4.0 + x_31) : (13.0 + x_32)))? ((20.0 + x_27) > (5.0 + x_29)? (20.0 + x_27) : (5.0 + x_29)) : ((16.0 + x_30) > ((4.0 + x_31) > (13.0 + x_32)? (4.0 + x_31) : (13.0 + x_32))? (16.0 + x_30) : ((4.0 + x_31) > (13.0 + x_32)? (4.0 + x_31) : (13.0 + x_32)))))? ((((17.0 + x_1) > (4.0 + x_3)? (17.0 + x_1) : (4.0 + x_3)) > ((8.0 + x_4) > (11.0 + x_7)? (8.0 + x_4) : (11.0 + x_7))? ((17.0 + x_1) > (4.0 + x_3)? (17.0 + x_1) : (4.0 + x_3)) : ((8.0 + x_4) > (11.0 + x_7)? (8.0 + x_4) : (11.0 + x_7))) > (((9.0 + x_8) > (5.0 + x_9)? (9.0 + x_8) : (5.0 + x_9)) > ((18.0 + x_12) > ((8.0 + x_13) > (13.0 + x_14)? (8.0 + x_13) : (13.0 + x_14))? (18.0 + x_12) : ((8.0 + x_13) > (13.0 + x_14)? (8.0 + x_13) : (13.0 + x_14)))? ((9.0 + x_8) > (5.0 + x_9)? (9.0 + x_8) : (5.0 + x_9)) : ((18.0 + x_12) > ((8.0 + x_13) > (13.0 + x_14)? (8.0 + x_13) : (13.0 + x_14))? (18.0 + x_12) : ((8.0 + x_13) > (13.0 + x_14)? (8.0 + x_13) : (13.0 + x_14))))? (((17.0 + x_1) > (4.0 + x_3)? (17.0 + x_1) : (4.0 + x_3)) > ((8.0 + x_4) > (11.0 + x_7)? (8.0 + x_4) : (11.0 + x_7))? ((17.0 + x_1) > (4.0 + x_3)? (17.0 + x_1) : (4.0 + x_3)) : ((8.0 + x_4) > (11.0 + x_7)? (8.0 + x_4) : (11.0 + x_7))) : (((9.0 + x_8) > (5.0 + x_9)? (9.0 + x_8) : (5.0 + x_9)) > ((18.0 + x_12) > ((8.0 + x_13) > (13.0 + x_14)? (8.0 + x_13) : (13.0 + x_14))? (18.0 + x_12) : ((8.0 + x_13) > (13.0 + x_14)? (8.0 + x_13) : (13.0 + x_14)))? ((9.0 + x_8) > (5.0 + x_9)? (9.0 + x_8) : (5.0 + x_9)) : ((18.0 + x_12) > ((8.0 + x_13) > (13.0 + x_14)? (8.0 + x_13) : (13.0 + x_14))? (18.0 + x_12) : ((8.0 + x_13) > (13.0 + x_14)? (8.0 + x_13) : (13.0 + x_14))))) : ((((13.0 + x_17) > (20.0 + x_19)? (13.0 + x_17) : (20.0 + x_19)) > ((15.0 + x_25) > (4.0 + x_26)? (15.0 + x_25) : (4.0 + x_26))? ((13.0 + x_17) > (20.0 + x_19)? (13.0 + x_17) : (20.0 + x_19)) : ((15.0 + x_25) > (4.0 + x_26)? (15.0 + x_25) : (4.0 + x_26))) > (((20.0 + x_27) > (5.0 + x_29)? (20.0 + x_27) : (5.0 + x_29)) > ((16.0 + x_30) > ((4.0 + x_31) > (13.0 + x_32)? (4.0 + x_31) : (13.0 + x_32))? (16.0 + x_30) : ((4.0 + x_31) > (13.0 + x_32)? (4.0 + x_31) : (13.0 + x_32)))? ((20.0 + x_27) > (5.0 + x_29)? (20.0 + x_27) : (5.0 + x_29)) : ((16.0 + x_30) > ((4.0 + x_31) > (13.0 + x_32)? (4.0 + x_31) : (13.0 + x_32))? (16.0 + x_30) : ((4.0 + x_31) > (13.0 + x_32)? (4.0 + x_31) : (13.0 + x_32))))? (((13.0 + x_17) > (20.0 + x_19)? (13.0 + x_17) : (20.0 + x_19)) > ((15.0 + x_25) > (4.0 + x_26)? (15.0 + x_25) : (4.0 + x_26))? ((13.0 + x_17) > (20.0 + x_19)? (13.0 + x_17) : (20.0 + x_19)) : ((15.0 + x_25) > (4.0 + x_26)? (15.0 + x_25) : (4.0 + x_26))) : (((20.0 + x_27) > (5.0 + x_29)? (20.0 + x_27) : (5.0 + x_29)) > ((16.0 + x_30) > ((4.0 + x_31) > (13.0 + x_32)? (4.0 + x_31) : (13.0 + x_32))? (16.0 + x_30) : ((4.0 + x_31) > (13.0 + x_32)? (4.0 + x_31) : (13.0 + x_32)))? ((20.0 + x_27) > (5.0 + x_29)? (20.0 + x_27) : (5.0 + x_29)) : ((16.0 + x_30) > ((4.0 + x_31) > (13.0 + x_32)? (4.0 + x_31) : (13.0 + x_32))? (16.0 + x_30) : ((4.0 + x_31) > (13.0 + x_32)? (4.0 + x_31) : (13.0 + x_32))))));
x_32_ = (((((14.0 + x_2) > (16.0 + x_8)? (14.0 + x_2) : (16.0 + x_8)) > ((9.0 + x_11) > (5.0 + x_12)? (9.0 + x_11) : (5.0 + x_12))? ((14.0 + x_2) > (16.0 + x_8)? (14.0 + x_2) : (16.0 + x_8)) : ((9.0 + x_11) > (5.0 + x_12)? (9.0 + x_11) : (5.0 + x_12))) > (((7.0 + x_13) > (1.0 + x_15)? (7.0 + x_13) : (1.0 + x_15)) > ((4.0 + x_16) > ((3.0 + x_17) > (3.0 + x_18)? (3.0 + x_17) : (3.0 + x_18))? (4.0 + x_16) : ((3.0 + x_17) > (3.0 + x_18)? (3.0 + x_17) : (3.0 + x_18)))? ((7.0 + x_13) > (1.0 + x_15)? (7.0 + x_13) : (1.0 + x_15)) : ((4.0 + x_16) > ((3.0 + x_17) > (3.0 + x_18)? (3.0 + x_17) : (3.0 + x_18))? (4.0 + x_16) : ((3.0 + x_17) > (3.0 + x_18)? (3.0 + x_17) : (3.0 + x_18))))? (((14.0 + x_2) > (16.0 + x_8)? (14.0 + x_2) : (16.0 + x_8)) > ((9.0 + x_11) > (5.0 + x_12)? (9.0 + x_11) : (5.0 + x_12))? ((14.0 + x_2) > (16.0 + x_8)? (14.0 + x_2) : (16.0 + x_8)) : ((9.0 + x_11) > (5.0 + x_12)? (9.0 + x_11) : (5.0 + x_12))) : (((7.0 + x_13) > (1.0 + x_15)? (7.0 + x_13) : (1.0 + x_15)) > ((4.0 + x_16) > ((3.0 + x_17) > (3.0 + x_18)? (3.0 + x_17) : (3.0 + x_18))? (4.0 + x_16) : ((3.0 + x_17) > (3.0 + x_18)? (3.0 + x_17) : (3.0 + x_18)))? ((7.0 + x_13) > (1.0 + x_15)? (7.0 + x_13) : (1.0 + x_15)) : ((4.0 + x_16) > ((3.0 + x_17) > (3.0 + x_18)? (3.0 + x_17) : (3.0 + x_18))? (4.0 + x_16) : ((3.0 + x_17) > (3.0 + x_18)? (3.0 + x_17) : (3.0 + x_18))))) > ((((3.0 + x_19) > (17.0 + x_20)? (3.0 + x_19) : (17.0 + x_20)) > ((19.0 + x_22) > (12.0 + x_23)? (19.0 + x_22) : (12.0 + x_23))? ((3.0 + x_19) > (17.0 + x_20)? (3.0 + x_19) : (17.0 + x_20)) : ((19.0 + x_22) > (12.0 + x_23)? (19.0 + x_22) : (12.0 + x_23))) > (((15.0 + x_25) > (4.0 + x_26)? (15.0 + x_25) : (4.0 + x_26)) > ((15.0 + x_30) > ((10.0 + x_31) > (5.0 + x_34)? (10.0 + x_31) : (5.0 + x_34))? (15.0 + x_30) : ((10.0 + x_31) > (5.0 + x_34)? (10.0 + x_31) : (5.0 + x_34)))? ((15.0 + x_25) > (4.0 + x_26)? (15.0 + x_25) : (4.0 + x_26)) : ((15.0 + x_30) > ((10.0 + x_31) > (5.0 + x_34)? (10.0 + x_31) : (5.0 + x_34))? (15.0 + x_30) : ((10.0 + x_31) > (5.0 + x_34)? (10.0 + x_31) : (5.0 + x_34))))? (((3.0 + x_19) > (17.0 + x_20)? (3.0 + x_19) : (17.0 + x_20)) > ((19.0 + x_22) > (12.0 + x_23)? (19.0 + x_22) : (12.0 + x_23))? ((3.0 + x_19) > (17.0 + x_20)? (3.0 + x_19) : (17.0 + x_20)) : ((19.0 + x_22) > (12.0 + x_23)? (19.0 + x_22) : (12.0 + x_23))) : (((15.0 + x_25) > (4.0 + x_26)? (15.0 + x_25) : (4.0 + x_26)) > ((15.0 + x_30) > ((10.0 + x_31) > (5.0 + x_34)? (10.0 + x_31) : (5.0 + x_34))? (15.0 + x_30) : ((10.0 + x_31) > (5.0 + x_34)? (10.0 + x_31) : (5.0 + x_34)))? ((15.0 + x_25) > (4.0 + x_26)? (15.0 + x_25) : (4.0 + x_26)) : ((15.0 + x_30) > ((10.0 + x_31) > (5.0 + x_34)? (10.0 + x_31) : (5.0 + x_34))? (15.0 + x_30) : ((10.0 + x_31) > (5.0 + x_34)? (10.0 + x_31) : (5.0 + x_34)))))? ((((14.0 + x_2) > (16.0 + x_8)? (14.0 + x_2) : (16.0 + x_8)) > ((9.0 + x_11) > (5.0 + x_12)? (9.0 + x_11) : (5.0 + x_12))? ((14.0 + x_2) > (16.0 + x_8)? (14.0 + x_2) : (16.0 + x_8)) : ((9.0 + x_11) > (5.0 + x_12)? (9.0 + x_11) : (5.0 + x_12))) > (((7.0 + x_13) > (1.0 + x_15)? (7.0 + x_13) : (1.0 + x_15)) > ((4.0 + x_16) > ((3.0 + x_17) > (3.0 + x_18)? (3.0 + x_17) : (3.0 + x_18))? (4.0 + x_16) : ((3.0 + x_17) > (3.0 + x_18)? (3.0 + x_17) : (3.0 + x_18)))? ((7.0 + x_13) > (1.0 + x_15)? (7.0 + x_13) : (1.0 + x_15)) : ((4.0 + x_16) > ((3.0 + x_17) > (3.0 + x_18)? (3.0 + x_17) : (3.0 + x_18))? (4.0 + x_16) : ((3.0 + x_17) > (3.0 + x_18)? (3.0 + x_17) : (3.0 + x_18))))? (((14.0 + x_2) > (16.0 + x_8)? (14.0 + x_2) : (16.0 + x_8)) > ((9.0 + x_11) > (5.0 + x_12)? (9.0 + x_11) : (5.0 + x_12))? ((14.0 + x_2) > (16.0 + x_8)? (14.0 + x_2) : (16.0 + x_8)) : ((9.0 + x_11) > (5.0 + x_12)? (9.0 + x_11) : (5.0 + x_12))) : (((7.0 + x_13) > (1.0 + x_15)? (7.0 + x_13) : (1.0 + x_15)) > ((4.0 + x_16) > ((3.0 + x_17) > (3.0 + x_18)? (3.0 + x_17) : (3.0 + x_18))? (4.0 + x_16) : ((3.0 + x_17) > (3.0 + x_18)? (3.0 + x_17) : (3.0 + x_18)))? ((7.0 + x_13) > (1.0 + x_15)? (7.0 + x_13) : (1.0 + x_15)) : ((4.0 + x_16) > ((3.0 + x_17) > (3.0 + x_18)? (3.0 + x_17) : (3.0 + x_18))? (4.0 + x_16) : ((3.0 + x_17) > (3.0 + x_18)? (3.0 + x_17) : (3.0 + x_18))))) : ((((3.0 + x_19) > (17.0 + x_20)? (3.0 + x_19) : (17.0 + x_20)) > ((19.0 + x_22) > (12.0 + x_23)? (19.0 + x_22) : (12.0 + x_23))? ((3.0 + x_19) > (17.0 + x_20)? (3.0 + x_19) : (17.0 + x_20)) : ((19.0 + x_22) > (12.0 + x_23)? (19.0 + x_22) : (12.0 + x_23))) > (((15.0 + x_25) > (4.0 + x_26)? (15.0 + x_25) : (4.0 + x_26)) > ((15.0 + x_30) > ((10.0 + x_31) > (5.0 + x_34)? (10.0 + x_31) : (5.0 + x_34))? (15.0 + x_30) : ((10.0 + x_31) > (5.0 + x_34)? (10.0 + x_31) : (5.0 + x_34)))? ((15.0 + x_25) > (4.0 + x_26)? (15.0 + x_25) : (4.0 + x_26)) : ((15.0 + x_30) > ((10.0 + x_31) > (5.0 + x_34)? (10.0 + x_31) : (5.0 + x_34))? (15.0 + x_30) : ((10.0 + x_31) > (5.0 + x_34)? (10.0 + x_31) : (5.0 + x_34))))? (((3.0 + x_19) > (17.0 + x_20)? (3.0 + x_19) : (17.0 + x_20)) > ((19.0 + x_22) > (12.0 + x_23)? (19.0 + x_22) : (12.0 + x_23))? ((3.0 + x_19) > (17.0 + x_20)? (3.0 + x_19) : (17.0 + x_20)) : ((19.0 + x_22) > (12.0 + x_23)? (19.0 + x_22) : (12.0 + x_23))) : (((15.0 + x_25) > (4.0 + x_26)? (15.0 + x_25) : (4.0 + x_26)) > ((15.0 + x_30) > ((10.0 + x_31) > (5.0 + x_34)? (10.0 + x_31) : (5.0 + x_34))? (15.0 + x_30) : ((10.0 + x_31) > (5.0 + x_34)? (10.0 + x_31) : (5.0 + x_34)))? ((15.0 + x_25) > (4.0 + x_26)? (15.0 + x_25) : (4.0 + x_26)) : ((15.0 + x_30) > ((10.0 + x_31) > (5.0 + x_34)? (10.0 + x_31) : (5.0 + x_34))? (15.0 + x_30) : ((10.0 + x_31) > (5.0 + x_34)? (10.0 + x_31) : (5.0 + x_34))))));
x_33_ = (((((14.0 + x_1) > (7.0 + x_3)? (14.0 + x_1) : (7.0 + x_3)) > ((5.0 + x_4) > (1.0 + x_6)? (5.0 + x_4) : (1.0 + x_6))? ((14.0 + x_1) > (7.0 + x_3)? (14.0 + x_1) : (7.0 + x_3)) : ((5.0 + x_4) > (1.0 + x_6)? (5.0 + x_4) : (1.0 + x_6))) > (((11.0 + x_8) > (19.0 + x_11)? (11.0 + x_8) : (19.0 + x_11)) > ((16.0 + x_12) > ((10.0 + x_14) > (6.0 + x_15)? (10.0 + x_14) : (6.0 + x_15))? (16.0 + x_12) : ((10.0 + x_14) > (6.0 + x_15)? (10.0 + x_14) : (6.0 + x_15)))? ((11.0 + x_8) > (19.0 + x_11)? (11.0 + x_8) : (19.0 + x_11)) : ((16.0 + x_12) > ((10.0 + x_14) > (6.0 + x_15)? (10.0 + x_14) : (6.0 + x_15))? (16.0 + x_12) : ((10.0 + x_14) > (6.0 + x_15)? (10.0 + x_14) : (6.0 + x_15))))? (((14.0 + x_1) > (7.0 + x_3)? (14.0 + x_1) : (7.0 + x_3)) > ((5.0 + x_4) > (1.0 + x_6)? (5.0 + x_4) : (1.0 + x_6))? ((14.0 + x_1) > (7.0 + x_3)? (14.0 + x_1) : (7.0 + x_3)) : ((5.0 + x_4) > (1.0 + x_6)? (5.0 + x_4) : (1.0 + x_6))) : (((11.0 + x_8) > (19.0 + x_11)? (11.0 + x_8) : (19.0 + x_11)) > ((16.0 + x_12) > ((10.0 + x_14) > (6.0 + x_15)? (10.0 + x_14) : (6.0 + x_15))? (16.0 + x_12) : ((10.0 + x_14) > (6.0 + x_15)? (10.0 + x_14) : (6.0 + x_15)))? ((11.0 + x_8) > (19.0 + x_11)? (11.0 + x_8) : (19.0 + x_11)) : ((16.0 + x_12) > ((10.0 + x_14) > (6.0 + x_15)? (10.0 + x_14) : (6.0 + x_15))? (16.0 + x_12) : ((10.0 + x_14) > (6.0 + x_15)? (10.0 + x_14) : (6.0 + x_15))))) > ((((17.0 + x_16) > (1.0 + x_19)? (17.0 + x_16) : (1.0 + x_19)) > ((13.0 + x_20) > (3.0 + x_23)? (13.0 + x_20) : (3.0 + x_23))? ((17.0 + x_16) > (1.0 + x_19)? (17.0 + x_16) : (1.0 + x_19)) : ((13.0 + x_20) > (3.0 + x_23)? (13.0 + x_20) : (3.0 + x_23))) > (((9.0 + x_24) > (15.0 + x_25)? (9.0 + x_24) : (15.0 + x_25)) > ((18.0 + x_26) > ((5.0 + x_31) > (15.0 + x_32)? (5.0 + x_31) : (15.0 + x_32))? (18.0 + x_26) : ((5.0 + x_31) > (15.0 + x_32)? (5.0 + x_31) : (15.0 + x_32)))? ((9.0 + x_24) > (15.0 + x_25)? (9.0 + x_24) : (15.0 + x_25)) : ((18.0 + x_26) > ((5.0 + x_31) > (15.0 + x_32)? (5.0 + x_31) : (15.0 + x_32))? (18.0 + x_26) : ((5.0 + x_31) > (15.0 + x_32)? (5.0 + x_31) : (15.0 + x_32))))? (((17.0 + x_16) > (1.0 + x_19)? (17.0 + x_16) : (1.0 + x_19)) > ((13.0 + x_20) > (3.0 + x_23)? (13.0 + x_20) : (3.0 + x_23))? ((17.0 + x_16) > (1.0 + x_19)? (17.0 + x_16) : (1.0 + x_19)) : ((13.0 + x_20) > (3.0 + x_23)? (13.0 + x_20) : (3.0 + x_23))) : (((9.0 + x_24) > (15.0 + x_25)? (9.0 + x_24) : (15.0 + x_25)) > ((18.0 + x_26) > ((5.0 + x_31) > (15.0 + x_32)? (5.0 + x_31) : (15.0 + x_32))? (18.0 + x_26) : ((5.0 + x_31) > (15.0 + x_32)? (5.0 + x_31) : (15.0 + x_32)))? ((9.0 + x_24) > (15.0 + x_25)? (9.0 + x_24) : (15.0 + x_25)) : ((18.0 + x_26) > ((5.0 + x_31) > (15.0 + x_32)? (5.0 + x_31) : (15.0 + x_32))? (18.0 + x_26) : ((5.0 + x_31) > (15.0 + x_32)? (5.0 + x_31) : (15.0 + x_32)))))? ((((14.0 + x_1) > (7.0 + x_3)? (14.0 + x_1) : (7.0 + x_3)) > ((5.0 + x_4) > (1.0 + x_6)? (5.0 + x_4) : (1.0 + x_6))? ((14.0 + x_1) > (7.0 + x_3)? (14.0 + x_1) : (7.0 + x_3)) : ((5.0 + x_4) > (1.0 + x_6)? (5.0 + x_4) : (1.0 + x_6))) > (((11.0 + x_8) > (19.0 + x_11)? (11.0 + x_8) : (19.0 + x_11)) > ((16.0 + x_12) > ((10.0 + x_14) > (6.0 + x_15)? (10.0 + x_14) : (6.0 + x_15))? (16.0 + x_12) : ((10.0 + x_14) > (6.0 + x_15)? (10.0 + x_14) : (6.0 + x_15)))? ((11.0 + x_8) > (19.0 + x_11)? (11.0 + x_8) : (19.0 + x_11)) : ((16.0 + x_12) > ((10.0 + x_14) > (6.0 + x_15)? (10.0 + x_14) : (6.0 + x_15))? (16.0 + x_12) : ((10.0 + x_14) > (6.0 + x_15)? (10.0 + x_14) : (6.0 + x_15))))? (((14.0 + x_1) > (7.0 + x_3)? (14.0 + x_1) : (7.0 + x_3)) > ((5.0 + x_4) > (1.0 + x_6)? (5.0 + x_4) : (1.0 + x_6))? ((14.0 + x_1) > (7.0 + x_3)? (14.0 + x_1) : (7.0 + x_3)) : ((5.0 + x_4) > (1.0 + x_6)? (5.0 + x_4) : (1.0 + x_6))) : (((11.0 + x_8) > (19.0 + x_11)? (11.0 + x_8) : (19.0 + x_11)) > ((16.0 + x_12) > ((10.0 + x_14) > (6.0 + x_15)? (10.0 + x_14) : (6.0 + x_15))? (16.0 + x_12) : ((10.0 + x_14) > (6.0 + x_15)? (10.0 + x_14) : (6.0 + x_15)))? ((11.0 + x_8) > (19.0 + x_11)? (11.0 + x_8) : (19.0 + x_11)) : ((16.0 + x_12) > ((10.0 + x_14) > (6.0 + x_15)? (10.0 + x_14) : (6.0 + x_15))? (16.0 + x_12) : ((10.0 + x_14) > (6.0 + x_15)? (10.0 + x_14) : (6.0 + x_15))))) : ((((17.0 + x_16) > (1.0 + x_19)? (17.0 + x_16) : (1.0 + x_19)) > ((13.0 + x_20) > (3.0 + x_23)? (13.0 + x_20) : (3.0 + x_23))? ((17.0 + x_16) > (1.0 + x_19)? (17.0 + x_16) : (1.0 + x_19)) : ((13.0 + x_20) > (3.0 + x_23)? (13.0 + x_20) : (3.0 + x_23))) > (((9.0 + x_24) > (15.0 + x_25)? (9.0 + x_24) : (15.0 + x_25)) > ((18.0 + x_26) > ((5.0 + x_31) > (15.0 + x_32)? (5.0 + x_31) : (15.0 + x_32))? (18.0 + x_26) : ((5.0 + x_31) > (15.0 + x_32)? (5.0 + x_31) : (15.0 + x_32)))? ((9.0 + x_24) > (15.0 + x_25)? (9.0 + x_24) : (15.0 + x_25)) : ((18.0 + x_26) > ((5.0 + x_31) > (15.0 + x_32)? (5.0 + x_31) : (15.0 + x_32))? (18.0 + x_26) : ((5.0 + x_31) > (15.0 + x_32)? (5.0 + x_31) : (15.0 + x_32))))? (((17.0 + x_16) > (1.0 + x_19)? (17.0 + x_16) : (1.0 + x_19)) > ((13.0 + x_20) > (3.0 + x_23)? (13.0 + x_20) : (3.0 + x_23))? ((17.0 + x_16) > (1.0 + x_19)? (17.0 + x_16) : (1.0 + x_19)) : ((13.0 + x_20) > (3.0 + x_23)? (13.0 + x_20) : (3.0 + x_23))) : (((9.0 + x_24) > (15.0 + x_25)? (9.0 + x_24) : (15.0 + x_25)) > ((18.0 + x_26) > ((5.0 + x_31) > (15.0 + x_32)? (5.0 + x_31) : (15.0 + x_32))? (18.0 + x_26) : ((5.0 + x_31) > (15.0 + x_32)? (5.0 + x_31) : (15.0 + x_32)))? ((9.0 + x_24) > (15.0 + x_25)? (9.0 + x_24) : (15.0 + x_25)) : ((18.0 + x_26) > ((5.0 + x_31) > (15.0 + x_32)? (5.0 + x_31) : (15.0 + x_32))? (18.0 + x_26) : ((5.0 + x_31) > (15.0 + x_32)? (5.0 + x_31) : (15.0 + x_32))))));
x_34_ = (((((20.0 + x_2) > (5.0 + x_4)? (20.0 + x_2) : (5.0 + x_4)) > ((11.0 + x_9) > (18.0 + x_11)? (11.0 + x_9) : (18.0 + x_11))? ((20.0 + x_2) > (5.0 + x_4)? (20.0 + x_2) : (5.0 + x_4)) : ((11.0 + x_9) > (18.0 + x_11)? (11.0 + x_9) : (18.0 + x_11))) > (((20.0 + x_12) > (9.0 + x_14)? (20.0 + x_12) : (9.0 + x_14)) > ((7.0 + x_15) > ((20.0 + x_16) > (6.0 + x_17)? (20.0 + x_16) : (6.0 + x_17))? (7.0 + x_15) : ((20.0 + x_16) > (6.0 + x_17)? (20.0 + x_16) : (6.0 + x_17)))? ((20.0 + x_12) > (9.0 + x_14)? (20.0 + x_12) : (9.0 + x_14)) : ((7.0 + x_15) > ((20.0 + x_16) > (6.0 + x_17)? (20.0 + x_16) : (6.0 + x_17))? (7.0 + x_15) : ((20.0 + x_16) > (6.0 + x_17)? (20.0 + x_16) : (6.0 + x_17))))? (((20.0 + x_2) > (5.0 + x_4)? (20.0 + x_2) : (5.0 + x_4)) > ((11.0 + x_9) > (18.0 + x_11)? (11.0 + x_9) : (18.0 + x_11))? ((20.0 + x_2) > (5.0 + x_4)? (20.0 + x_2) : (5.0 + x_4)) : ((11.0 + x_9) > (18.0 + x_11)? (11.0 + x_9) : (18.0 + x_11))) : (((20.0 + x_12) > (9.0 + x_14)? (20.0 + x_12) : (9.0 + x_14)) > ((7.0 + x_15) > ((20.0 + x_16) > (6.0 + x_17)? (20.0 + x_16) : (6.0 + x_17))? (7.0 + x_15) : ((20.0 + x_16) > (6.0 + x_17)? (20.0 + x_16) : (6.0 + x_17)))? ((20.0 + x_12) > (9.0 + x_14)? (20.0 + x_12) : (9.0 + x_14)) : ((7.0 + x_15) > ((20.0 + x_16) > (6.0 + x_17)? (20.0 + x_16) : (6.0 + x_17))? (7.0 + x_15) : ((20.0 + x_16) > (6.0 + x_17)? (20.0 + x_16) : (6.0 + x_17))))) > ((((8.0 + x_19) > (16.0 + x_20)? (8.0 + x_19) : (16.0 + x_20)) > ((17.0 + x_22) > (17.0 + x_23)? (17.0 + x_22) : (17.0 + x_23))? ((8.0 + x_19) > (16.0 + x_20)? (8.0 + x_19) : (16.0 + x_20)) : ((17.0 + x_22) > (17.0 + x_23)? (17.0 + x_22) : (17.0 + x_23))) > (((18.0 + x_25) > (15.0 + x_27)? (18.0 + x_25) : (15.0 + x_27)) > ((6.0 + x_31) > ((8.0 + x_34) > (18.0 + x_35)? (8.0 + x_34) : (18.0 + x_35))? (6.0 + x_31) : ((8.0 + x_34) > (18.0 + x_35)? (8.0 + x_34) : (18.0 + x_35)))? ((18.0 + x_25) > (15.0 + x_27)? (18.0 + x_25) : (15.0 + x_27)) : ((6.0 + x_31) > ((8.0 + x_34) > (18.0 + x_35)? (8.0 + x_34) : (18.0 + x_35))? (6.0 + x_31) : ((8.0 + x_34) > (18.0 + x_35)? (8.0 + x_34) : (18.0 + x_35))))? (((8.0 + x_19) > (16.0 + x_20)? (8.0 + x_19) : (16.0 + x_20)) > ((17.0 + x_22) > (17.0 + x_23)? (17.0 + x_22) : (17.0 + x_23))? ((8.0 + x_19) > (16.0 + x_20)? (8.0 + x_19) : (16.0 + x_20)) : ((17.0 + x_22) > (17.0 + x_23)? (17.0 + x_22) : (17.0 + x_23))) : (((18.0 + x_25) > (15.0 + x_27)? (18.0 + x_25) : (15.0 + x_27)) > ((6.0 + x_31) > ((8.0 + x_34) > (18.0 + x_35)? (8.0 + x_34) : (18.0 + x_35))? (6.0 + x_31) : ((8.0 + x_34) > (18.0 + x_35)? (8.0 + x_34) : (18.0 + x_35)))? ((18.0 + x_25) > (15.0 + x_27)? (18.0 + x_25) : (15.0 + x_27)) : ((6.0 + x_31) > ((8.0 + x_34) > (18.0 + x_35)? (8.0 + x_34) : (18.0 + x_35))? (6.0 + x_31) : ((8.0 + x_34) > (18.0 + x_35)? (8.0 + x_34) : (18.0 + x_35)))))? ((((20.0 + x_2) > (5.0 + x_4)? (20.0 + x_2) : (5.0 + x_4)) > ((11.0 + x_9) > (18.0 + x_11)? (11.0 + x_9) : (18.0 + x_11))? ((20.0 + x_2) > (5.0 + x_4)? (20.0 + x_2) : (5.0 + x_4)) : ((11.0 + x_9) > (18.0 + x_11)? (11.0 + x_9) : (18.0 + x_11))) > (((20.0 + x_12) > (9.0 + x_14)? (20.0 + x_12) : (9.0 + x_14)) > ((7.0 + x_15) > ((20.0 + x_16) > (6.0 + x_17)? (20.0 + x_16) : (6.0 + x_17))? (7.0 + x_15) : ((20.0 + x_16) > (6.0 + x_17)? (20.0 + x_16) : (6.0 + x_17)))? ((20.0 + x_12) > (9.0 + x_14)? (20.0 + x_12) : (9.0 + x_14)) : ((7.0 + x_15) > ((20.0 + x_16) > (6.0 + x_17)? (20.0 + x_16) : (6.0 + x_17))? (7.0 + x_15) : ((20.0 + x_16) > (6.0 + x_17)? (20.0 + x_16) : (6.0 + x_17))))? (((20.0 + x_2) > (5.0 + x_4)? (20.0 + x_2) : (5.0 + x_4)) > ((11.0 + x_9) > (18.0 + x_11)? (11.0 + x_9) : (18.0 + x_11))? ((20.0 + x_2) > (5.0 + x_4)? (20.0 + x_2) : (5.0 + x_4)) : ((11.0 + x_9) > (18.0 + x_11)? (11.0 + x_9) : (18.0 + x_11))) : (((20.0 + x_12) > (9.0 + x_14)? (20.0 + x_12) : (9.0 + x_14)) > ((7.0 + x_15) > ((20.0 + x_16) > (6.0 + x_17)? (20.0 + x_16) : (6.0 + x_17))? (7.0 + x_15) : ((20.0 + x_16) > (6.0 + x_17)? (20.0 + x_16) : (6.0 + x_17)))? ((20.0 + x_12) > (9.0 + x_14)? (20.0 + x_12) : (9.0 + x_14)) : ((7.0 + x_15) > ((20.0 + x_16) > (6.0 + x_17)? (20.0 + x_16) : (6.0 + x_17))? (7.0 + x_15) : ((20.0 + x_16) > (6.0 + x_17)? (20.0 + x_16) : (6.0 + x_17))))) : ((((8.0 + x_19) > (16.0 + x_20)? (8.0 + x_19) : (16.0 + x_20)) > ((17.0 + x_22) > (17.0 + x_23)? (17.0 + x_22) : (17.0 + x_23))? ((8.0 + x_19) > (16.0 + x_20)? (8.0 + x_19) : (16.0 + x_20)) : ((17.0 + x_22) > (17.0 + x_23)? (17.0 + x_22) : (17.0 + x_23))) > (((18.0 + x_25) > (15.0 + x_27)? (18.0 + x_25) : (15.0 + x_27)) > ((6.0 + x_31) > ((8.0 + x_34) > (18.0 + x_35)? (8.0 + x_34) : (18.0 + x_35))? (6.0 + x_31) : ((8.0 + x_34) > (18.0 + x_35)? (8.0 + x_34) : (18.0 + x_35)))? ((18.0 + x_25) > (15.0 + x_27)? (18.0 + x_25) : (15.0 + x_27)) : ((6.0 + x_31) > ((8.0 + x_34) > (18.0 + x_35)? (8.0 + x_34) : (18.0 + x_35))? (6.0 + x_31) : ((8.0 + x_34) > (18.0 + x_35)? (8.0 + x_34) : (18.0 + x_35))))? (((8.0 + x_19) > (16.0 + x_20)? (8.0 + x_19) : (16.0 + x_20)) > ((17.0 + x_22) > (17.0 + x_23)? (17.0 + x_22) : (17.0 + x_23))? ((8.0 + x_19) > (16.0 + x_20)? (8.0 + x_19) : (16.0 + x_20)) : ((17.0 + x_22) > (17.0 + x_23)? (17.0 + x_22) : (17.0 + x_23))) : (((18.0 + x_25) > (15.0 + x_27)? (18.0 + x_25) : (15.0 + x_27)) > ((6.0 + x_31) > ((8.0 + x_34) > (18.0 + x_35)? (8.0 + x_34) : (18.0 + x_35))? (6.0 + x_31) : ((8.0 + x_34) > (18.0 + x_35)? (8.0 + x_34) : (18.0 + x_35)))? ((18.0 + x_25) > (15.0 + x_27)? (18.0 + x_25) : (15.0 + x_27)) : ((6.0 + x_31) > ((8.0 + x_34) > (18.0 + x_35)? (8.0 + x_34) : (18.0 + x_35))? (6.0 + x_31) : ((8.0 + x_34) > (18.0 + x_35)? (8.0 + x_34) : (18.0 + x_35))))));
x_35_ = (((((9.0 + x_0) > (18.0 + x_3)? (9.0 + x_0) : (18.0 + x_3)) > ((2.0 + x_4) > (6.0 + x_6)? (2.0 + x_4) : (6.0 + x_6))? ((9.0 + x_0) > (18.0 + x_3)? (9.0 + x_0) : (18.0 + x_3)) : ((2.0 + x_4) > (6.0 + x_6)? (2.0 + x_4) : (6.0 + x_6))) > (((11.0 + x_7) > (6.0 + x_9)? (11.0 + x_7) : (6.0 + x_9)) > ((15.0 + x_11) > ((8.0 + x_12) > (2.0 + x_13)? (8.0 + x_12) : (2.0 + x_13))? (15.0 + x_11) : ((8.0 + x_12) > (2.0 + x_13)? (8.0 + x_12) : (2.0 + x_13)))? ((11.0 + x_7) > (6.0 + x_9)? (11.0 + x_7) : (6.0 + x_9)) : ((15.0 + x_11) > ((8.0 + x_12) > (2.0 + x_13)? (8.0 + x_12) : (2.0 + x_13))? (15.0 + x_11) : ((8.0 + x_12) > (2.0 + x_13)? (8.0 + x_12) : (2.0 + x_13))))? (((9.0 + x_0) > (18.0 + x_3)? (9.0 + x_0) : (18.0 + x_3)) > ((2.0 + x_4) > (6.0 + x_6)? (2.0 + x_4) : (6.0 + x_6))? ((9.0 + x_0) > (18.0 + x_3)? (9.0 + x_0) : (18.0 + x_3)) : ((2.0 + x_4) > (6.0 + x_6)? (2.0 + x_4) : (6.0 + x_6))) : (((11.0 + x_7) > (6.0 + x_9)? (11.0 + x_7) : (6.0 + x_9)) > ((15.0 + x_11) > ((8.0 + x_12) > (2.0 + x_13)? (8.0 + x_12) : (2.0 + x_13))? (15.0 + x_11) : ((8.0 + x_12) > (2.0 + x_13)? (8.0 + x_12) : (2.0 + x_13)))? ((11.0 + x_7) > (6.0 + x_9)? (11.0 + x_7) : (6.0 + x_9)) : ((15.0 + x_11) > ((8.0 + x_12) > (2.0 + x_13)? (8.0 + x_12) : (2.0 + x_13))? (15.0 + x_11) : ((8.0 + x_12) > (2.0 + x_13)? (8.0 + x_12) : (2.0 + x_13))))) > ((((5.0 + x_14) > (20.0 + x_19)? (5.0 + x_14) : (20.0 + x_19)) > ((7.0 + x_21) > (6.0 + x_22)? (7.0 + x_21) : (6.0 + x_22))? ((5.0 + x_14) > (20.0 + x_19)? (5.0 + x_14) : (20.0 + x_19)) : ((7.0 + x_21) > (6.0 + x_22)? (7.0 + x_21) : (6.0 + x_22))) > (((13.0 + x_25) > (4.0 + x_26)? (13.0 + x_25) : (4.0 + x_26)) > ((13.0 + x_27) > ((3.0 + x_29) > (1.0 + x_30)? (3.0 + x_29) : (1.0 + x_30))? (13.0 + x_27) : ((3.0 + x_29) > (1.0 + x_30)? (3.0 + x_29) : (1.0 + x_30)))? ((13.0 + x_25) > (4.0 + x_26)? (13.0 + x_25) : (4.0 + x_26)) : ((13.0 + x_27) > ((3.0 + x_29) > (1.0 + x_30)? (3.0 + x_29) : (1.0 + x_30))? (13.0 + x_27) : ((3.0 + x_29) > (1.0 + x_30)? (3.0 + x_29) : (1.0 + x_30))))? (((5.0 + x_14) > (20.0 + x_19)? (5.0 + x_14) : (20.0 + x_19)) > ((7.0 + x_21) > (6.0 + x_22)? (7.0 + x_21) : (6.0 + x_22))? ((5.0 + x_14) > (20.0 + x_19)? (5.0 + x_14) : (20.0 + x_19)) : ((7.0 + x_21) > (6.0 + x_22)? (7.0 + x_21) : (6.0 + x_22))) : (((13.0 + x_25) > (4.0 + x_26)? (13.0 + x_25) : (4.0 + x_26)) > ((13.0 + x_27) > ((3.0 + x_29) > (1.0 + x_30)? (3.0 + x_29) : (1.0 + x_30))? (13.0 + x_27) : ((3.0 + x_29) > (1.0 + x_30)? (3.0 + x_29) : (1.0 + x_30)))? ((13.0 + x_25) > (4.0 + x_26)? (13.0 + x_25) : (4.0 + x_26)) : ((13.0 + x_27) > ((3.0 + x_29) > (1.0 + x_30)? (3.0 + x_29) : (1.0 + x_30))? (13.0 + x_27) : ((3.0 + x_29) > (1.0 + x_30)? (3.0 + x_29) : (1.0 + x_30)))))? ((((9.0 + x_0) > (18.0 + x_3)? (9.0 + x_0) : (18.0 + x_3)) > ((2.0 + x_4) > (6.0 + x_6)? (2.0 + x_4) : (6.0 + x_6))? ((9.0 + x_0) > (18.0 + x_3)? (9.0 + x_0) : (18.0 + x_3)) : ((2.0 + x_4) > (6.0 + x_6)? (2.0 + x_4) : (6.0 + x_6))) > (((11.0 + x_7) > (6.0 + x_9)? (11.0 + x_7) : (6.0 + x_9)) > ((15.0 + x_11) > ((8.0 + x_12) > (2.0 + x_13)? (8.0 + x_12) : (2.0 + x_13))? (15.0 + x_11) : ((8.0 + x_12) > (2.0 + x_13)? (8.0 + x_12) : (2.0 + x_13)))? ((11.0 + x_7) > (6.0 + x_9)? (11.0 + x_7) : (6.0 + x_9)) : ((15.0 + x_11) > ((8.0 + x_12) > (2.0 + x_13)? (8.0 + x_12) : (2.0 + x_13))? (15.0 + x_11) : ((8.0 + x_12) > (2.0 + x_13)? (8.0 + x_12) : (2.0 + x_13))))? (((9.0 + x_0) > (18.0 + x_3)? (9.0 + x_0) : (18.0 + x_3)) > ((2.0 + x_4) > (6.0 + x_6)? (2.0 + x_4) : (6.0 + x_6))? ((9.0 + x_0) > (18.0 + x_3)? (9.0 + x_0) : (18.0 + x_3)) : ((2.0 + x_4) > (6.0 + x_6)? (2.0 + x_4) : (6.0 + x_6))) : (((11.0 + x_7) > (6.0 + x_9)? (11.0 + x_7) : (6.0 + x_9)) > ((15.0 + x_11) > ((8.0 + x_12) > (2.0 + x_13)? (8.0 + x_12) : (2.0 + x_13))? (15.0 + x_11) : ((8.0 + x_12) > (2.0 + x_13)? (8.0 + x_12) : (2.0 + x_13)))? ((11.0 + x_7) > (6.0 + x_9)? (11.0 + x_7) : (6.0 + x_9)) : ((15.0 + x_11) > ((8.0 + x_12) > (2.0 + x_13)? (8.0 + x_12) : (2.0 + x_13))? (15.0 + x_11) : ((8.0 + x_12) > (2.0 + x_13)? (8.0 + x_12) : (2.0 + x_13))))) : ((((5.0 + x_14) > (20.0 + x_19)? (5.0 + x_14) : (20.0 + x_19)) > ((7.0 + x_21) > (6.0 + x_22)? (7.0 + x_21) : (6.0 + x_22))? ((5.0 + x_14) > (20.0 + x_19)? (5.0 + x_14) : (20.0 + x_19)) : ((7.0 + x_21) > (6.0 + x_22)? (7.0 + x_21) : (6.0 + x_22))) > (((13.0 + x_25) > (4.0 + x_26)? (13.0 + x_25) : (4.0 + x_26)) > ((13.0 + x_27) > ((3.0 + x_29) > (1.0 + x_30)? (3.0 + x_29) : (1.0 + x_30))? (13.0 + x_27) : ((3.0 + x_29) > (1.0 + x_30)? (3.0 + x_29) : (1.0 + x_30)))? ((13.0 + x_25) > (4.0 + x_26)? (13.0 + x_25) : (4.0 + x_26)) : ((13.0 + x_27) > ((3.0 + x_29) > (1.0 + x_30)? (3.0 + x_29) : (1.0 + x_30))? (13.0 + x_27) : ((3.0 + x_29) > (1.0 + x_30)? (3.0 + x_29) : (1.0 + x_30))))? (((5.0 + x_14) > (20.0 + x_19)? (5.0 + x_14) : (20.0 + x_19)) > ((7.0 + x_21) > (6.0 + x_22)? (7.0 + x_21) : (6.0 + x_22))? ((5.0 + x_14) > (20.0 + x_19)? (5.0 + x_14) : (20.0 + x_19)) : ((7.0 + x_21) > (6.0 + x_22)? (7.0 + x_21) : (6.0 + x_22))) : (((13.0 + x_25) > (4.0 + x_26)? (13.0 + x_25) : (4.0 + x_26)) > ((13.0 + x_27) > ((3.0 + x_29) > (1.0 + x_30)? (3.0 + x_29) : (1.0 + x_30))? (13.0 + x_27) : ((3.0 + x_29) > (1.0 + x_30)? (3.0 + x_29) : (1.0 + x_30)))? ((13.0 + x_25) > (4.0 + x_26)? (13.0 + x_25) : (4.0 + x_26)) : ((13.0 + x_27) > ((3.0 + x_29) > (1.0 + x_30)? (3.0 + x_29) : (1.0 + x_30))? (13.0 + x_27) : ((3.0 + x_29) > (1.0 + x_30)? (3.0 + x_29) : (1.0 + x_30))))));
x_0 = x_0_;
x_1 = x_1_;
x_2 = x_2_;
x_3 = x_3_;
x_4 = x_4_;
x_5 = x_5_;
x_6 = x_6_;
x_7 = x_7_;
x_8 = x_8_;
x_9 = x_9_;
x_10 = x_10_;
x_11 = x_11_;
x_12 = x_12_;
x_13 = x_13_;
x_14 = x_14_;
x_15 = x_15_;
x_16 = x_16_;
x_17 = x_17_;
x_18 = x_18_;
x_19 = x_19_;
x_20 = x_20_;
x_21 = x_21_;
x_22 = x_22_;
x_23 = x_23_;
x_24 = x_24_;
x_25 = x_25_;
x_26 = x_26_;
x_27 = x_27_;
x_28 = x_28_;
x_29 = x_29_;
x_30 = x_30_;
x_31 = x_31_;
x_32 = x_32_;
x_33 = x_33_;
x_34 = x_34_;
x_35 = x_35_;
}
return 0;
}
|
the_stack_data/152244.c | #include <stdio.h>
int main() {
int i, n;
scanf("%d", &n);
for (i = n; i > 0; i--) {
printf("%d\n", i);
}
return 0;
} |
the_stack_data/193893271.c | #include <stdio.h>
#include <math.h>
void pfactor(int n);
int main(void)
{
int n;
while (scanf("%d", &n) == 1) {
pfactor(n);
}
return 0;
}
void pfactor(int n)
{
int i;
int output = 0;
if (n % 2 == 0) {
n /= 2;
printf("%d", 2);
output = 1;
}
while (n % 2 == 0) {
n /= 2;
}
for (i = 3; i <= sqrt(n); i += 2) {
if (n % i == 0) {
n /= i;
if (output) {
printf(" %d", i);
}
else {
printf("%d", i);
output = 1;
}
}
while (n % i == 0) {
n /= i;
}
}
// n is prime
if (n != 1) {
if (output)
printf(" %d\n", n);
else
printf("%d\n", n);
}
else {
putchar('\n');
}
}
|
the_stack_data/54824125.c | // Intentionally empty. See /users/callum/readme.md.
|
the_stack_data/247018310.c | //@ ltl invariant negative: (<> (X (<> ([] AP(x_0 - x_1 > 3)))));
float x_0;
float x_1;
float x_2;
float x_3;
int main()
{
float x_0_;
float x_1_;
float x_2_;
float x_3_;
while(1) {
x_0_ = ((6.0 + x_0) > (12.0 + x_1)? (6.0 + x_0) : (12.0 + x_1));
x_1_ = ((15.0 + x_1) > (2.0 + x_3)? (15.0 + x_1) : (2.0 + x_3));
x_2_ = ((14.0 + x_0) > (15.0 + x_3)? (14.0 + x_0) : (15.0 + x_3));
x_3_ = ((2.0 + x_1) > (9.0 + x_2)? (2.0 + x_1) : (9.0 + x_2));
x_0 = x_0_;
x_1 = x_1_;
x_2 = x_2_;
x_3 = x_3_;
}
return 0;
}
|
the_stack_data/16561.c | /*
* Copyright (c) Meta Platforms, Inc. and its affiliates.
*
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#define assert(b) \
if (!(b)) \
abort();
int main(int argc, char* argv[]) {
const char* file = "/etc/passwd";
int fd;
for (int i = 0; i < 1000; i++) {
fd = open(file, O_RDONLY);
assert(access(file, O_RDONLY) == 0);
assert(fd >= 0);
close(fd);
}
return 0;
}
|
the_stack_data/139796.c | #include <stdio.h>
/* Exercise 2-9. In a two's complement number system, x &= (x-1) deletes the
rightmost 1-bit in x. Explain why. Use this observation to write a faster ver-
sion of bit count. */
int bitcount(unsigned x)
{
int b;
for (b = 0; x != 0; x &= (x-1))
b++;
return b;
} |
the_stack_data/31227.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
// Definition for a binary tree node.
struct TreeNode
{
int val;
struct TreeNode *left;
struct TreeNode *right;
};
//malloc result
char **mallocRes(char (*data)[100], int dataSize, int *returnSize)
{
*returnSize = dataSize;
char **res = (char **)malloc(sizeof(char *) * (*returnSize));
for (int i = 0; i < *returnSize; ++i)
res[i] = strdup(data[i]);
return res;
}
void addOneResult(char (*staticRes)[100], int *size, char *instance)
{
strcpy(staticRes[(*size)++], instance);
}
void preorder(struct TreeNode *root, char *instance, int instanceSize, char (*staticRes)[100], int *size)
{
if (!root)
return;
char number[20];
if (instanceSize == 0)
sprintf(number, "%d", root->val);
else
sprintf(number, "->%d", root->val);
strcpy(&instance[instanceSize], number);
if (root->left == root->right)
{
addOneResult(staticRes, size, instance);
return;
}
instanceSize += strlen(number);
preorder(root->left, instance, instanceSize, staticRes, size);
preorder(root->right, instance, instanceSize, staticRes, size);
}
/**
* Note: The returned array must be malloced, assume caller calls free().
*/
char **binaryTreePaths(struct TreeNode *root, int *returnSize)
{
static char staticRes[1000][100];
char instance[100] = {0};
*returnSize = 0;
preorder(root, instance, 0, staticRes, returnSize);
return mallocRes(staticRes, *returnSize, returnSize);
} |
the_stack_data/82949559.c | int nums[2];
int *p;
int main() {
nums[1] = 1;
p = &nums[0];
p++;
assert(*p == 1);
}
|
the_stack_data/32950265.c | /*
12171029 KaShouen
*/
#include<stdio.h>
#define PI 3.14
float cal_V(float r,float h);
int main(void)
{
float r,h;
printf("円錐の体積を計算します。\n");
do{
printf("半径?[m]\n");
scanf("%f",&r);
}while(r <= 0);
do{
printf("高さ?[m]\n");
scanf("%f",&h);
}while(h <= 0);
//v=cal_V(r,h);
printf("体積は %.1f [m^3] です。\n",cal_V(r,h));
return 0;
}
float cal_V(float r,float h)
{
float v;
v=PI*r*r*h/3;
return v;
} |
the_stack_data/1962.c | #include <stdio.h>
#include <malloc.h>
#include <unistd.h>
#include <alloca.h>
extern void afunc(void);
extern etext, edata, end;
int bss_var;
int data_var = 42;
#define SHW_ADR(ID,I) printf("the %8s\t is at adr:%8x\n",ID,&I);
int main(int argc, char *argv[]) {
char *p, *b, *nb;
printf("Adr etext:%8x\t Adr edata %8x\t Adr end %8x\t\n", &etext, &edata, &end);
printf("\ntext Location:\n");
SHW_ADR("main", main);
SHW_ADR("afunc", afunc);
printf("\nbss Location:\n");
SHW_ADR("bss_var", bss_var);
printf("\ndata location:\n");
SHW_ADR("data_var", data_var);
printf("\nStack Locations:\n");
afunc();
p = (char *)alloca(32);
if (p != NULL) {
SHW_ADR("start", p);
SHW_ADR("end", p + 31);
}
b = (char *)malloc(32 * sizeof(char));
nb = (char *)malloc(16 * sizeof(char));
printf("\nHeap Locations:\n");
printf("the Heap start: %p\n", b);
printf("the Heap end:%p\n", (nb + 16 * sizeof(char)));
printf("\nb and nb in Stack\n");
SHW_ADR("b", b);
SHW_ADR("nb", nb);
free(b);
free(nb);
}
void afunc(void) {
static int long level = 0;
int stack_var;
if (++level == 5) {
return;
}
printf("stack_var is at:%p\n", &stack_var);
// SHW_ADR("stack_var in stack section",stack_var);
// SHW_ADR("Level in data section",level);
afunc();
}
|
the_stack_data/95451416.c | # include <stdio.h>
# include <stdlib.h>
typedef struct{
char
nome
[
30
];
char
tipo
[
30
];
float
preco
;
}
instrumento
;
typedef
struct
no
{
instrumento
info
;
struct
no
*
prox
;
}
nodo
;
void
AlocarInstrumento
(
nodo
* *
lista
);
void
ImprimeInstrumentos
(
nodo
*
lista
);
int
main
()
{
nodo
*
lista
=
NULL
;
int
quantidade
=
0
;
puts
(
"Quantos instrumentos voce deseja?"
);
scanf
(
"%d"
, &
quantidade
);
// REGISTRA
for
(
int
i
=
0
;
i
<
quantidade
;
i
++)
{
system
(
"cls"
);
printf
(
"Instrumento: %d \n "
,
i
+
1
);
AlocarInstrumento
(&
lista
);
}
// IMPRIME
for
(
int
i
=
0
;
i
<
quantidade
;
i
++)
{
ImprimeInstrumentos
(
lista
);
}
return
0
;
}
void
AlocarInstrumento
(
nodo
* *
lista
)
{
nodo
*
no
= (
nodo
*)
malloc
(
sizeof
(
nodo
));
if
(
no
!=
NULL
)
{
puts
(
"Nome:"
);
fflush
(
stdin
);
gets
(
no
->
info
.
nome
);
puts
(
"Tipo:"
);
fflush
(
stdin
);
gets
(
no
->
info
.
tipo
);
puts
(
"preco:"
);
scanf
(
"%f"
, &
no
->
info
.
preco
);
no
->
prox
=
NULL
;
if
(*
lista
==
NULL
)
{
*
lista
=
no
;
}
else
{
nodo
*
aux
= *
lista
;
while
(
aux
->
prox
!=
NULL
)
{
aux
=
aux
->
prox
;
}
aux
->
prox
=
no
;
}
}
else
{
puts
(
"Erro ao alocar memoria"
);
}
system
(
"cls"
);
}
void
ImprimeInstrumentos
(
nodo
*
lista
)
{
int
countLista
=
0
;
if
(
lista
==
NULL
)
{
puts
(
"[Lista vazia]"
);
}
else
{
while
(
lista
!=
NULL
)
{
puts
(
"----------------------------------------------------"
);
printf
(
"Instrumento: %d \n "
,
countLista
+
1
);
printf
(
" \n Nome: %s"
,
lista
->
info
.
nome
);
printf
(
" \n Tipo: %s"
,
lista
->
info
.
tipo
);
printf
(
" \n Preco: %.2f \n "
,
lista
->
info
.
preco
);
puts
(
""
);
lista
=
lista
->
prox
;
countLista
++;
}
puts
(
"----------------------------------------------------"
);
printf
(
"Quantidade de instrumentos: %d \n\n "
,
countLista
);
}
}
//#include <stdio.h>
//#include <stdlib.h>
//int main()
//{
// typedef struct Livro
// {
// int ano;
// char nome[30];
// char autor[30];
// int numPag;
// } book;
//
// int qtdlivro;
// printf("Informe a quantidade de livros que deseja informar: \n");
// scanf("%d", &qtdlivro);
// book *d;
// d = malloc(qtdlivro * sizeof(book));
// struct Livro biblioteca[qtdlivro];
// int i;
// for (i = 0; i < qtdlivro; i++)
// {
// printf("\n");
// printf("Informe o ano do livro: ");
// scanf("%d", &biblioteca[i].ano);
// printf("\n");
// printf("Informe o nome do livro: ");
// scanf("%s", &biblioteca[i].nome);
// printf("\n");
// printf("Informe o autor: ");
// scanf("%s", &biblioteca[i].autor);
// printf("\n");
// printf("Informe o numero de paginas do livro: ");
// scanf("%d", &biblioteca[i].numPag);
// printf("\n---------------------------------------------------\n");
// }
// for (i = 0; i < qtdlivro; i++)
// {
// printf("\nO Livro do ano de %d, entitulado '%s', do autor %s, possui %d paginas", biblioteca[i].ano, biblioteca[i].nome, biblioteca[i].autor, biblioteca[i].numPag);
// }
//}
//
//
////#include <stdio.h>#include <stdlib.h>
////struct Filme
////{
//// int ano;
//// char nome[30];
//// char categoria[30];
//// int tempo;
////};
////int main()
////{
//// int i, quantidadeDeFilmes;
//// printf("\nQuantidade de filmes: ");
//// scanf("%d", &quantidadeDeFilmes);
//// struct Filme *filmes = (struct Filme*) malloc(quantidadeDeFilmes*sizeof(struct Filme));
//// for(i = 1; i <= quantidadeDeFilmes; i++)
//// {
//// printf("\nFilme numero [%d]: ", i);
//// printf("\nDigite o ano do filme: ");
//// scanf("%d", &filmes[i].ano);
//// fflush(stdin);
//// printf("\nDigite o nome do filme: ");
//// gets(filmes[i].nome);
//// fflush(stdin);
//// printf("\nDigite a categoria do filme: ");
//// gets(filmes[i].categoria);
//// fflush(stdin);
//// printf("\nDigite o tempo do filme em minutos: ");
//// scanf("%d", &filmes[i].tempo);
//// fflush(stdin);
//// }
//// for(i = 1; i <= quantidadeDeFilmes; i++)
//// {
//// printf("\nFilme numero [%d]: ", i);
//// printf("\nAno: %d.", filmes[i].ano);
//// printf("\nNome: %s.", filmes[i].nome);
//// printf("\nCategoria: %s", filmes[i].categoria);
//// printf("\nTempo de filme: %d minutos.", filmes[i].tempo);
//// }
////}
|
the_stack_data/1160301.c | #include <sys/types.h>
#include <sys/ipc.h>
#include <sys/msg.h>
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#define ERR_EXIT(m) do { perror(m); exit(EXIT_FAILURE); } while(0)
int main()
{
//打开消息队列
int msgid = msgget(1234,0);
if(msgid == -1)
ERR_EXIT("msgget");
//定义消息队列状态的变量
struct msqid_ds msg_stat;
//获取消息队列的状态
if((msgctl(msgid,IPC_STAT,&msg_stat) == -1))
ERR_EXIT("msgctl");
//输出消息队列的权限
printf("mode=%o\n",msg_stat.msg_perm.mode);
//输出消息队列中消息的个数
printf("number=%d\n",(int)msg_stat.msg_qnum);
//输出消息队列当前的字节数
printf("bytes=%ld\n",msg_stat.__msg_cbytes);
//输出消息队列能容纳的最大字节数
printf("msgmnb=%d\n",(int)msg_stat.msg_qbytes);
//return 0
return 0;
}
|
the_stack_data/59865.c | /*
Write a program that shows the sign (+, - or 0) of the product of three
real numbers, without calculating it. Use a sequence of if operators.
*/
#include <stdio.h>
#include <stdlib.h>
int main()
{
double first, second, third;
int sign = 0;
printf("Enter 3 numbers: ");
if ((scanf("%lf%lf%lf", &first, &second, &third)) != 3)
{
fprintf(stderr, "Wrong input values!");
exit(EXIT_FAILURE);
}
if (first == 0.0 || second == 0.0 || third == 0.0)
{
printf("0");
}
else
{
if (first < 0.0)
{
sign++;
}
if (second < 0.0)
{
sign++;
}
if (third < 0.0)
{
sign++;
}
switch (sign)
{
case 0:
printf("+");
break;
case 1:
printf("-");
break;
case 2:
printf("+");
break;
default:
printf("-");
}
}
return (EXIT_SUCCESS);
} |
the_stack_data/247019098.c | /*
* Reddit: AssailantLF
* Gitlab/hub: AssailantLF
* Email: [email protected]
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define SAVENAME "daily219todolist.txt"
typedef enum { CATEGORY, NAME } search_type;
typedef enum { false, true } bool;
struct node {
char *todo;
char *category;
struct node *next;
struct node *prev;
};
struct node *first = NULL; /* pointer to first node in linked-list */
struct node *last = NULL; /* pointer to last node */
void print_help(void);
/* Reads input from stream into a dynamically sized, malloc'd string, whose last
* new line is replaced by a null terminator. Returns a pointer to the string. */
char* read_input(FILE *stream);
/* Asks for user input, and then searches the todo list for any strings which
* partially match that input. Returns a pointer to the first matching task, or
* NULL if none match. The type parameter can be CATEGORY or NAME and specifies
* whether or not to search for tasks by name or by category. */
struct node *search(search_type type);
/* Creates a new task. If the input parameter is true, the task's information
* will be filled out by the user, otherwise it will be specified by the name
* and category parameters. */
void insert_task(bool input, const char *name, const char *category);
void modify_task(void);
void change_category(void);
void remove_task(void);
void view_list(void);
void read_from_file(void);
void write_to_file(void);
void free_list(void);
void terminate(const char *message, int status);
int main(void)
{
char code;
printf(" Welcome to your to-do list!\n");
print_help();
read_from_file();
for (;;)
{
printf("\nEnter operation code: ");
scanf(" %c", &code);
while (getchar() != '\n')
; /* skip to EOL */
switch (code)
{
case 'i': insert_task(true, "", "");
break;
case 'm': modify_task();
break;
case 'c': change_category();
break;
case 'r': remove_task();
break;
case 'v': view_list();
break;
case 'q': terminate("Have a good day!\n", EXIT_SUCCESS);
break;
case 'h': print_help();
break;
default: printf("Invalid code\n");
}
}
}
void print_help(void)
{
printf("\n Operation Codes:\n");
printf(" i - insert | r - remove | m - modify\n");
printf(" c - (change | v - view | q - quit\n");
printf(" category) | h - help\n");
}
char* read_input(FILE *stream)
{
int i = 0, max_len = 80;
char c, *in = malloc(max_len + 1);
if (in == NULL)
terminate("Memory allocation error\n", EXIT_FAILURE);
while ((c = fgetc(stream)) != '\n' && c != EOF)
{
if (i >= max_len)
{
in = realloc(in, i + max_len + 1);
if (in == NULL)
terminate("Input too long! Memory error!\n", EXIT_FAILURE);
}
in[i++] = c;
}
in[i] = '\0';
return in;
}
struct node *search(search_type type)
{
struct node *p;
char *needle, *found = NULL;
needle = read_input(stdin);
if (strlen(needle) == 0)
return NULL;
for (p = first; p != NULL; p = p->next)
{
found = strstr(type == CATEGORY ? p->category : p->todo, needle);
if (found != NULL)
{
free(needle);
return p;
}
}
free(needle);
return NULL;
}
void insert_task(bool input, const char *name, const char *category)
{
struct node *new = malloc(sizeof(struct node));
static bool first_time = true;
if (new == NULL)
terminate("Memory allocation error\n", EXIT_FAILURE);
if (input == true)
{
printf("Enter task to add: ");
new->todo = read_input(stdin);
switch (first_time)
{
case true: printf("Enter task's category ");
printf("(leave blank for no category): ");
first_time = false;
break;
case false: printf("Enter task's category: ");
}
new->category = read_input(stdin);
printf("Task added\n");
}
else
{
new->todo = malloc(strlen(name) + 1);
strcpy(new->todo, name);
new->category = malloc(strlen(category) + 1);
strcpy(new->category, category);
}
new->next = NULL;
new->prev = last;
if (last != NULL)
last->next = new;
else
first = new;
last = new;
}
void modify_task(void)
{
char code;
struct node *p;
printf("Enter a task to modify: ");
if ((p = search(NAME)) != NULL)
{
printf("Would you like to modify (n)ame or (c)ategory?: ");
scanf(" %c", &code);
while (getchar() != '\n')
; /* skip to EOL */
if (code == 'n')
{
printf("Enter a name: ");
p->todo = read_input(stdin);
}
else if (code == 'c')
{
printf("Enter a category: ");
p->category = read_input(stdin);
}
else
{
printf("Please enter a valid character\n");
return;
}
printf("Task modified\n");
}
else
printf("Task not found\n");
}
void change_category(void)
{
struct node *p, *c;
char *new_category;
char *old_category;
printf("Enter a category to change: ");
if ((c = search(CATEGORY)) != NULL)
{
old_category = malloc(strlen(c->category) + 1);
strcpy(old_category, c->category);
printf("Enter a new category name: ");
new_category = read_input(stdin);
for (p = first; p != NULL; p = p->next)
if (strcmp(old_category, p->category) == 0)
{
p->category = realloc(p->category, strlen(new_category) + 1);
strcpy(p->category, new_category);
}
free(old_category);
free(new_category);
printf("Category changed\n");
}
else
printf("Category not found\n");
}
void remove_task(void)
{
struct node *p;
printf("Enter a task to remove: ");
if ((p = search(NAME)) != NULL)
{
if (p == first)
first = p->next;
else
p->prev->next = p->next;
if (p == last)
last = p->prev;
else
p->next->prev = p->prev;
free(p->todo);
free(p->category);
free(p);
printf("Task deleted.\n");
return;
}
else
printf("Task not found\n");
}
void view_list(void)
{
char code;
struct node *p, *c;
if (first == NULL)
{
printf("Nothing to do, good job!\n");
return;
}
printf("View by (a)ll or by (c)ategory?: ");
scanf(" %c", &code);
while (getchar() != '\n')
; /* skip to EOL */
if (code == 'a')
{
for (p = first; p != NULL; p = p->next)
printf(" * %s\n", p->todo);
}
else if (code == 'c')
{
printf("Enter a category: ");
if ((c = search(CATEGORY)) != NULL)
{
for (p = first; p != NULL; p = p->next)
if (strcmp(c->category, p->category) == 0)
printf(" * %s\n", p->todo);
}
else
printf("Category not found\n");
}
else
printf("Please enter a valid character\n");
}
void read_from_file(void)
{
char *name, *category;
FILE *list = fopen(SAVENAME, "r");
name = category = NULL;
if (list == NULL)
return;
for(;;)
{
name = read_input(list);
category = read_input(list);
if (feof(list))
break;
insert_task(0, name, category);
free(name);
free(category);
}
fclose(list);
free(name);
free(category);
}
void write_to_file(void)
{
struct node *p;
FILE *list;
remove(SAVENAME);
list = fopen(SAVENAME, "w");
for (p = first; p != NULL; p = p->next)
{
fputs(p->todo, list);
fputc('\n', list);
fputs(p->category, list);
fputc('\n', list);
}
fclose(list);
}
void free_list(void)
{
struct node *p, *prev = NULL;
for (p = first; p != NULL; p = p->next)
{
if (prev != NULL)
{
free(p->prev->todo);
free(p->prev->category);
free(p->prev);
}
prev = p;
}
if (prev != NULL)
free(prev);
}
void terminate(const char *message, int status)
{
printf("%s\n", message);
write_to_file();
free_list();
exit(status);
}
|
the_stack_data/559674.c | /* __lll_timedwait_tid is in lowlevellock.S. */
|
the_stack_data/100141552.c | long double C = 5;
long double U = 1;
long double Y2 = 11;
long double Y1 = 17;
long double X, Y, Z, T, R, S;
main ()
{
X = (C + U) * Y2;
Y = C - U - U;
Z = C + U + U;
T = (C - U) * Y1;
X = X - (Z + U);
R = Y * Y1;
S = Z * Y2;
T = T - Y;
Y = (U - Y) + R;
Z = S - (Z + U + U);
R = (Y2 + U) * Y1;
Y1 = Y2 * Y1;
R = R - Y2;
Y1 = Y1 - 0.5L;
if (Z != 68. || Y != 49. || X != 58. || Y1 != 186.5 || R != 193. || S != 77.
|| T != 65. || Y2 != 11.)
abort ();
exit (0);
}
|
the_stack_data/92325530.c | #include <stdio.h>
int main(void) {
int n, size;
scanf("%d", &n);
size = n + 1;
int arr[size][size];
for (int i = 0; i < size; i++)
for (int j = 0; j < size; j++)
scanf("%d", &arr[i][j]);
for (int i = 0; i < size - 1; i++) {
for (int j = 0; j < size - 1 ; j++)
if ( arr[i][j] + arr[i][j+1] + arr[i+1][j] + arr[i+1][j+1] < 2)
printf("U");
else
printf("S");
printf("\n");
}
return 0;
} |
the_stack_data/232956134.c | // #include <bits/stdc++.h>
// using namespace std;
#include <stdio.h>
#include <string.h>
// #ifdef LOCAL
// #include "/debug.h"
// #else
// #define db(...)
// #endif
#define all(v) v.begin(), v.end()
#define pb push_back
#define ll long long;
const int MOD = 1000000007;
#define NAX 1004
typedef struct event
{
int x1, y1, x2, y2;
} event;
event events[NAX];
int elements[NAX * 4];
int* lb(int *start, int *end, int x)
{
}
void solveCase()
{
int n;
// cin >> A >> B >> C;
scanf("%d", &n);
for (size_t i = 0; i < n; i++)
{
int x1, y1, x2, y2;
scanf("%d %d %d %d", &x1, &y1, &x2, &y2);
events[i].x1 = x1;
events[i].y1 = y1;
events[i].x2 = x2;
events[i].y2 = y2;
elements[4 * i] = x1;
elements[4 * i + 1] = x2;
elements[4 * i + 2] = y1;
elements[4 * i + 3] = y2;
}
qsort(elements, elements + 4 * n);
for (size_t i = 0; i < n; i++)
{
events[i].x1 = lb(elements, elements + 4 * n, events[i].x1) - elements;
events[i].x2 = lb(elements, elements + 4 * n, events[i].x2) - elements;
events[i].y1 = lb(elements, elements + 4 * n, events[i].y1) - elements;
events[i].y2 = lb(elements, elements + 4 * n, events[i].y2) - elements;
}
// db(n, A, B, C);
// printf("%d\n", solve(n));
// cout << 3 * n - solve(0, 0, 0) << '\n';
}
int main()
{
// #ifndef LOCAL
// ios_base::sync_with_stdio(0);
// cin.tie(0);
// #endif
int t = 1;
// cin >> t;
scanf("%d\n", &t);
for (int i = 1; i <= t; ++i)
solveCase();
return 0;
} |
the_stack_data/148579185.c | /* for_wild.c */
#include <stdio.h>
int main(void)
{
int x;
int y = 55;
for (x = 1; y <= 75; y = (++x * 5) + 50)
printf("%10d %10d\n", x, y);
return 0;
}
|
the_stack_data/100214.c | /*BEGIN_LEGAL
Intel Open Source License
Copyright (c) 2002-2017 Intel Corporation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer. Redistributions
in binary form must reproduce the above copyright notice, this list of
conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution. Neither the name of
the Intel Corporation nor the names of its contributors may be used to
endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE INTEL OR
ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
END_LEGAL */
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#ifdef TARGET_WINDOWS
// declare all functions as exported so pin can find them,
// must be all functions since only way to find end of one function is the begining of the next
// Another way is to compile application with debug info (Zi) - pdb file, but that causes probelms
// in the running of the script
#define EXPORT_SYM __declspec( dllexport )
#else
#define EXPORT_SYM
#endif
EXPORT_SYM
void foobar(int a, int b)
{
}
EXPORT_SYM
void baz(int arg1, int arg2, int arg3)
{
printf("Arg1 %x\n",arg1);
printf("Arg2 %x\n",arg2);
printf("Arg3 %x\n",arg3);
if (arg1 != 4
|| arg2 != 5
|| arg3 != 6)
exit(1);
}
EXPORT_SYM
int main()
{
foobar(0x0eadbeef,0x0eedfeed);
baz(1,2,3);
return 0;
}
|
the_stack_data/127552.c | /*
Construa um programa que leia uma sequência de números do teclado até que o usuário digite 0. Sobre
os números lidos, apresente na tela:
a) O menor valor.
b) O maior valor.
c) A soma de todos os valores.
d) A média dos valores.
e) A quantidade de números ímpares.
f) A quantidade de números negativos.
*/
# include <stdio.h>
int main()
{
int menor_valor, maior_valor, impares, negativos, num;
float media, soma, count;
soma = 0;
count = 0;
negativos = 0;
impares = 0;
while (num != 0)
{
printf("Digita um numero ai e seja feliz: ");
scanf("%d", &num);
if (count == 0)
{
menor_valor = num;
maior_valor = num;
}
// Validação do menor e maior valor.
if(menor_valor > num && num != 0)
{
menor_valor = num;
}
else if (maior_valor < num && num != 0)
{
maior_valor = num;
}
// Somatório dos valores.
soma += num;
// Contador de impares.
if (num % 2 == 1 || num % 2 == -1)
{
impares++;
}
if(num < 0)
{
negativos++;
}
count++;
}
media = soma/(count-1);
printf("\nQuantidade de numeros de impares: %d", impares);
printf("\nQuantidade de numeros negativos: %d", negativos);
printf("\nMaior valor: %d", maior_valor);
printf("\nMenor valor: %d", menor_valor);
printf("\nMedia: %.2f", media);
printf("\nSoma: %.0f", soma);
return 0;
}
|
the_stack_data/190769286.c | // RUN: split-file %s %t
// RUN: mlir-clang %t/matmul_signed_cmp.c --function=matmul --raise-scf-to-affine -S | FileCheck %s -check-prefix=GEMMSIGNED
// RUN: mlir-clang %t/matmul_unsigned_cmp.c --function=matmul_unsigned_cmp --raise-scf-to-affine -S | FileCheck %s -check-prefix=GEMMUNSIGNED
//--- matmul_signed_cmp.c
#define N 200
#define M 300
#define K 400
#define DATA_TYPE float
void matmul(DATA_TYPE A[N][K], DATA_TYPE B[K][M], DATA_TYPE C[N][M]) {
int i, j, k;
// GEMMSIGNED: affine.for
for (i = 0; i < N; i++)
// GEMMSIGNED: affine.for
for (j = 0; j < M; j++)
// GEMMSIGNED: affine.for
for (k = 0; k < K; k++)
// GEMMSIGNED: {{.*}} = affine.load %{{.*}}[%{{.*}}, %{{.*}}] : memref<?x400xf32>
// GEMMSIGNED: {{.*}} = affine.load %{{.*}}[%{{.*}}, %{{.*}}] : memref<?x300xf32>
// GEMMSIGNED: {{.*}} = arith.mulf
// GEMMSIGNED: {{.*}} = affine.load %{{.*}}[%{{.*}}, %{{.*}}] : memref<?x300xf32>
// GEMMSIGNED: {{.*}} = arith.addf
// GEMMSIGNED: affine.store {{.*}}, %{{.*}}[%{{.*}}, %{{.*}}] : memref<?x300xf32>
C[i][j] += A[i][k] * B[k][j];
}
//--- matmul_unsigned_cmp.c
void matmul_unsigned_cmp(float A[100][200], float B[200][300], float C[100][300]) {
int i, j, k;
// GEMMUNSIGNED: affine.for
for (i = 0; i < 100; i++) {
// GEMMUNSIGNED: affine.for
for (j = 0; j < 300; j++) {
// GEMMUNSIGNED: affine.store %{{.*}}, %{{.*}}[%{{.*}}, %{{.*}}] : memref<?x300xf32>
C[i][j] = 0;
// GEMMUNSIGNED: affine.for
for (k = 0; k < 200; k++) {
// GEMMUNSIGNED: {{.*}} = affine.load %{{.*}}[%{{.*}}, %{{.*}}] : memref<?x200xf32>
// GEMMUNSIGNED: {{.*}} = affine.load %{{.*}}[%{{.*}}, %{{.*}}] : memref<?x300xf32>
// GEMMUNSIGNED: {{.*}} = arith.mulf
// GEMMUNSIGNED: {{.*}} = affine.load %{{.*}}[%{{.*}}, %{{.*}}] : memref<?x300xf32>
// GEMMUNSIGNED: {{.*}} = arith.addf
// GEMMUNSIGNED: affine.store {{.*}}, %{{.*}}[%{{.*}}, %{{.*}}] : memref<?x300xf32>
C[i][j] += A[i][k] * B[k][j];
}
}
}
}
|
the_stack_data/628259.c | /*
* Considere as equações de movimento para calcular a posição (s) e a velocidade (v)
* de uma partícula em determinado instante t, dado sua aceleração a, posição inicial
* s0 e velocidade inicial v0, de acordo com as fórumulas:
*
* s = s0 + v0t + (at^2)/2
* v = v0 + at
*
* Escreva um programa em C completo que capture os valores de s0, v0, a e t, fornecidos
* pelo usuário via teclado, e calcule e exiba os valores de s e v. Todos os valores
* tratados no programa devem ser números reais (float ou double).
*/
#include <stdio.h>
int main(void)
{
float s0, v0, a, t, s, v;
printf("s0, v0, a, t: ");
scanf("%f %f %f %f", &s0, &v0, &a, &t);
s = s0 + v0 * t + (a * t * t) / 2;
v = v0 + a * t;
printf("s = %f\n", s);
printf("v = %f\n", v);
return 0;
}
|
the_stack_data/46929.c | /*
Nom : Germain
Prenom : Gauthier
https://github.com/ax-IO
L1-MP 2017-2018
TP4 B : Les Fonctions
*/
////////////////////////////////////////
//////////////// HEADER ////////////////
////////////////////////////////////////
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
//#include<string.h>
#define NB_ETU 150
#define LONG_NOM 20
//////DECLARATION DE STRUCTURE////////////
typedef struct point {
float x;
float y;
}POINT;
typedef struct segment {
POINT A;
POINT B;
float longueur;
}SEGMENT;
typedef struct etudiant{
int numeroEtudiant;
char prenom [LONG_NOM];
char nom [LONG_NOM];
float moyenne;
}ETUDIANT;
typedef struct classe{
ETUDIANT etu [NB_ETU];
float moyenne;
}CLASSE;
//////DECLARATION DE FONCTIONS////////////
void choix_ex (int num);
void ex0 (void);
int som5 (int a, int b, int c, int d, int e);
void ex1 (void);
int divise (int a, int b);
void ecrire_division (int a, int b);
int nb_div (int n);
int premier (int n);
void ex2 (void);
void ex3 (void);
float moy_clas (CLASSE cla, int n);
void ex5 (void);
//////////////////////////////////////////
////////////////// MAIN //////////////////
//////////////////////////////////////////
int main (void){
int num;
printf(" TP 04 : Fonctions et Structures\n");
while(1){
printf("Tape le numero de l'exercice voulu (0, 1, 3 ou 5):\n(Tape CTRL+C pour quitter le programme)\n");
scanf("%d", &num);
//Rentre dans les fonctions exercices
choix_ex(num);
printf ("Exercice numero %d fini!\n\n", num);
}
return 0;
}
///////////////////////////////////////
/////////// DEFINITION ////////////////
/////////////// DES ///////////////////
//////////// FONCTIONS ////////////////
///////////////////////////////////////
void choix_ex (int num){
switch (num){
case 0 : ex0(); break;
case 1 : ex1(); break;
case 3 : ex3(); break;
case 5 : ex5(); break;
default : printf("Erreur : Numero exercice inconnu !\n");
}
}
//////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////
void ex0 (void){
int a, b, c, d, e;
printf("donnez 5 entiers !\n");
printf("a= ");
scanf("%d", &a);
printf("b= ");
scanf("%d", &b);
printf("c= ");
scanf("%d", &c);
printf("d= ");
scanf("%d", &d);
printf("e= ");
scanf("%d", &e);
printf("La somme de %d, %d, %d, %d et %d est : %d\n", a, b, c, d, e, som5(a,b,c,d,e));
}
int som5 (int a, int b, int c, int d, int e){
return a+b+c+d+e;
}
//////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////
void ex1 (void){
int a, b;
printf("a= ");
scanf("%d", &a);
printf("b= ");
scanf("%d", &b);
printf("la foction divise renvoie %d lorque a= %d et b=%d\n", divise(a, b), a, b);
printf("Test de la fonction ecrire_division : ");
ecrire_division(a, b);
printf("Test de la fonction nb_div : ");
printf("Le nombre de diviseur de %d est :%d\n", a, nb_div(a));
printf("Test de la fonction premier : ");
printf("%d est premier ? %s\n", a, (premier(a) == 1)?"vrai\n":"faux\n");
//5.
printf("5. fonctions appellees : \n-main \n-divise \n-divise\n-premier\n-nb_div\n");
}
//1.
int divise (int a, int b){
return (a%b == 0)? 1 : 0;
}
//2.
void ecrire_division (int a, int b){
(divise(a,b) == 1)? printf("%d divise %d\n", b, a): printf("%d ne divise pas %d\n", b, a) ;
}
//3.
int nb_div (int n){
int nombre = 0;
for (int i = 1; i<=n; i++){
if (n%i==0){nombre++;}
}
return nombre;
}
//4.
int premier (int n){
return (nb_div(n) > 2)? 0 : 1;
}
//////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////
void ex3 (void){
// Test point
POINT test_point;
printf("abcisse : ");
scanf("%f", &test_point.x);
printf("ordonnee : ");
scanf("%f", &test_point.y);
printf("test abcisse : %0.2f\n", test_point.x);
printf("test ordonee : %0.2f\n", test_point.y);
// Test Segment
POINT point_b;
SEGMENT segment;
printf("\nabcisse point B: ");
scanf("%f", &point_b.x);
printf("ordonnee point B : ");
scanf("%f", &point_b.y);
segment.A = test_point;
segment.B = point_b;
segment.longueur = sqrt((segment.B.x - segment.A.x)*(segment.B.x - segment.A.x) + (segment.B.y - segment.A.y)*(segment.B.y - segment.A.y));
printf("segment = %0.2f\n", segment.longueur);
}
//////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////
void ex5 (void){
int nb_etu;
printf("Combien d'etudiants voulez-vous creer dans votre classe ? ");
scanf("%d", &nb_etu);
while (getchar() != '\n');
CLASSE cla ; // Saisie de n etudiant
for (int i = 0; i < nb_etu; i++){
//NUMERO
cla.etu[i].numeroEtudiant = i + 1;
//PRENOM
printf("\nprenom etudiant numero %d : ", cla.etu[i].numeroEtudiant);
fgets(cla.etu[i].prenom, LONG_NOM, stdin);
//NOM
printf("nom etudiant numero %d : ", cla.etu[i].numeroEtudiant);
fgets(cla.etu[i].nom, LONG_NOM, stdin);
//MOYENNE
printf("Moyenne : ");
scanf("%f", &cla.etu[i].moyenne);
while (getchar() != '\n');
}
printf("\n(Ex 6)\nLa moyenne de la classe est %0.3f \n\n", moy_clas(cla, nb_etu));
}
float moy_clas (CLASSE cla, int n){
cla.moyenne = 0;
for (int i = 0; i < n; i++){
cla.moyenne += cla.etu[i].moyenne;
}
return cla.moyenne/n;
}
//ex 7 et 8 corriges !!
//////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////
|
the_stack_data/73576472.c | #include<stdio.h>
#include<math.h>
float weirdFunction(float alpha, int t) {
switch(t) {
case 0:
case 1:
case 2:
case 3:
return 0.5 * (1 + cos(alpha));
case 4:
case 6:
case 7:
return sqrt(alpha * alpha + 1);
case 8:
return 1 - sin(alpha);
}
};
int isTInRange(int t) {
if(t >= 0 && t <= 3) {
return 1;
} else {
if(t >= 6 && t <= 8) {
return 1;
} else {
return 0;
}
}
};
int main(void) {
float alpha;
int t;
printf("Input alpha and t: ");
scanf("%f %i", &alpha, &t);
isTInRange(t) ? printf("%f\n", weirdFunction(alpha, t)) : printf("parameter t is not in the defined range.\n");
return 0;
} |
the_stack_data/234517685.c | #include<stdio.h>
int main()
{
int m,n,i;
long long x,y,a,z;
scanf("%d %d",&m,&n);
if((n==0)||(n==m)){
printf("1");
return 0;
}
x=m-n;
i=1;
y=1;
z=1;
while(i<=m){
y=y*i;
i=i+1;
}
i=1;
while(i<=n){
z=z*i;
i=i+1;
}
while(x>0){
y=y/x;
x=x-1;
}
a=y/z;
printf("%lld",a);
return 0;
} |
the_stack_data/92327863.c | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalnum.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rsilva <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/02/22 10:27:43 by rsilva #+# #+# */
/* Updated: 2018/02/22 10:27:46 by rsilva ### ########.fr */
/* */
/* ************************************************************************** */
int ft_isalnum(int c)
{
if (c >= '0' && c <= '9')
return (1);
else if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z'))
return (1);
else
return (0);
}
|
the_stack_data/104827373.c | #include <omp.h>
#include <stdio.h>
int alpha[10],beta[10],i;
#pragma omp threadprivate(alpha)
main()
{
/* first parallel region */
#pragma omp parallel private(i,beta)
{ int id ;
id = omp_get_thread_num();
for(i=0;i<10;i++)
alpha[i] = beta[i] = id * i;
}
/* second parallel region */
#pragma omp parallel
printf("I am thread %d :alpha[3] = %d and beta[3] = %d\n", omp_get_thread_num(),alpha[3],beta[3]);
}
|
the_stack_data/50137012.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
int main(int argc, char *argv[])
{
long lc, offs, ofs, len, i, j, c;
FILE *in;
unsigned char buf[16], *s;
in=NULL;
offs=0;
len=-1;
for(i=1;i<argc;i++)if(argv[i][0]=='-')
{
switch(argv[i][1])
{
case 'o':
ofs=atoi(argv[i+1]);
i++;
break;
case 'l':
len=atoi(argv[i+1]);
i++;
break;
default:
break;
}
}else
if(!in)in=fopen(argv[i],"r+b");
if(!in)
{
printf("no input.\n");
exit(-1);
}
#if 0
fcntl(0, F_SETFL, fcntl (0, F_GETFL, 0) & ~FNDELAY);
fcntl(0, F_SETFL, fcntl (0, F_GETFL, 0) | FNDELAY);
#endif
while(1)
{
fseek(in, offs, 0);
ofs=offs;
for(i=0; i<23; i++)
{
lc=fread(&buf, 1, ((16<len)||(len==-1))?16:len, in);
printf("%08X", ofs);
for(j=0;j<lc;j++)
{
if(!(j%4))printf(" ");
printf("%02X ", buf[j]);
}
for(;j<16;j++)
{
if(!(j%4))printf(" ");
printf(" ");
}
for(j=0;j<lc;j++)
{
if(buf[j]<' ')buf[j]='~';
if(buf[j]>='\x7f')buf[j]='~';
printf("%c", buf[j]);
}
ofs+=16;
printf("\n");
if(len>0)
{
len-=lc;
if(len<=0)break;
}
}
l0:
printf(": ");
fgets(buf, 15, stdin);
switch(buf[0])
{
case '\n':
offs+=16*23;
break;
case 'h':
printf("\\n next page\n");
printf("-, w back 16 bytes\n");
printf("s forward 16 bytes\n");
printf("p, a prev page\n");
printf("n, d next page\n");
printf("q quit\n");
printf("g, e <adr> goto addr\n");
printf("t <adr> <val> set val at addr\n");
goto l0;
break;
case '-':
case 'w':
offs-=16;
break;
case 's':
offs+=16;
break;
case 'p':
case 'a':
offs-=16*23;
break;
case 'n':
case 'd':
offs+=16*23;
break;
case 'q':
fclose(in);
exit(0);
break;
case 'g':
case 'e':
s=buf;
s++;
j=0;
while(*s<=' ')s++;
while(*s>' ')
{
j<<=4;
if(*s>='0' && *s<='9')j+=*s-'0';
if(*s>='A' && *s<='F')j+=*s-'A'+10;
if(*s>='a' && *s<='f')j+=*s-'a'+10;
s++;
}
offs=j;
i=strlen(buf)-1;
break;
case 't':
s=buf;
s++;
j=0;
while(*s<=' ')s++;
while(*s>' ')
{
j<<=4;
if(*s>='0' && *s<='9')j+=*s-'0';
if(*s>='A' && *s<='F')j+=*s-'A'+10;
if(*s>='a' && *s<='f')j+=*s-'a'+10;
s++;
}
fseek(in, j, 0);
while(*s<=' ')s++;
while(*s>' ')
{
c=*s;
s++;
if(c=='\\')
{
j=0;
for(c=0; c<2; c++)
{
j<<=4;
if(*s>='0' && *s<='9')j+=*s-'0';
if(*s>='A' && *s<='F')j+=*s-'A'+10;
if(*s>='a' && *s<='f')j+=*s-'a'+10;
s++;
}
c=j;
}
fputc(c, in);
}
i=strlen(buf)-1;
break;
default:
break;
}
}
}
|
the_stack_data/859117.c | #include <stdio.h>
int multicinco(int n, int m){
if(n < m){
return 0;
} else{
if(n%5 == 0){
printf("%d\n", n);
}
multicinco(n-1, m);
}
}
int main(){
int m, n;
scanf("%d" "%d", &n, &m);
multicinco(n, m);
} |
the_stack_data/73574921.c | /* This program illustrates the risk of calling non-re-entrant functions
* in your signal handler. Depending on the platform, the results of
* running this program may differ, but you will see a number of possible
* results:
* - user not found: you accidentally 'skipped' over the entry you were
* looking for
* - return value corrupted: you got back a different struct passwd then
* the one you requested
* - memory fault: FUBAR
*/
#include <err.h>
#include <errno.h>
#include <pwd.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#ifndef USER
#define USER "jschauma"
#endif
static void
my_alarm(int signo) {
struct passwd *rootptr;
(void)signo;
(void)write(STDOUT_FILENO, "SIGALRM\n", 8);
for (int i=0; i<3; i++) {
if ((rootptr = getpwnam("root")) == NULL) {
(void)write(STDERR_FILENO, "no 'root' found!\n", 17);
exit(EXIT_FAILURE);
/* NOTREACHED */
}
}
if (alarm(1) == (unsigned int)-1) {
err(EXIT_FAILURE, "alarm");
/* NOTREACHED */
}
}
int
main(void) {
struct passwd *ptr;
if (signal(SIGALRM, my_alarm) == SIG_ERR) {
fprintf(stderr, "Unable to establish signal handler: %s\n", strerror(errno));
exit(EXIT_FAILURE);
/* NOTREACHED */
}
if (alarm(1) == (unsigned int)-1) {
err(EXIT_FAILURE, "alarm");
/* NOTREACHED */
}
for ( ; ; ) {
if ((ptr = getpwnam(USER)) == NULL) {
fprintf(stderr, "user %s not found!\n", USER);
exit(EXIT_FAILURE);
/* NOTREACHED */
}
if (strcmp(ptr->pw_name, USER) != 0) {
fprintf(stderr, "return value corrupted: pw_name = %s\n",
ptr->pw_name);
abort();
/* NOTREACHED */
}
}
}
|
the_stack_data/162643801.c | /* Ronald Cotton
* Assignment 4 - connect
* Processes - Signal and Pipes
* CS360 - Systems Programming - Instructor: Dick Lang, Ph.D.
*
* compiled with:
* gcc -g -Wall -pedanic -ansi -std=c99
* (will get warnings)
*
* This program demonstrates the use of pipe, forks, signals and kills.
*/
/* includes */
#include <stdio.h> /* for fprintf() */
#include <string.h> /* for strcmp() */
#include <stdlib.h>
#include <signal.h> /* for SIGKILL */
#include <unistd.h> /* for pipe(), dup(), execvp(), kill() */
/* defines
* MINARGS - This is the minimum number of arguments required for the
* program connect. */
#define MINARGS 4
/* STDIN, STDOUT - This is the fd for both, STDERR is not used */
#define STDIN 0
#define STDOUT 1
#define STDERR 2
/* function definitions */
void usageConnect(char *command);
void errorOutput(int e);
/* main.c
* This handles the arguments for connect, the usage only allows
* two elements in the pipe. If one of the processes gets terminated or
* is not valid, it will kill the child process (either the child kills
*/
int main(int argc, char* argv[]) {
if (argc<MINARGS) usageConnect(argv[0]);
int argOneIndex = 1, argTwoIndex; /* index from argv[] */
int colonCount = 0; /* colonCount - program only allows 1 */
for (int i=0; i<argc; ++i) {
if ((strcmp(argv[i],":")) == 0) {
if ((i==0)||(i==argc-1)) usageConnect(argv[0]);
/* ERROR - colon cannot be at beginning of the end */
++colonCount;
if (colonCount>1) usageConnect(argv[0]);
/* ERROR - cannot handle more than one pipe */
argTwoIndex = i+1; /* set the second command */
argv[i]=NULL; /* place a null for the first argument */
} /* end if strcmp */
} /* end for i */
/* child_pid is the childs process id
* pfd is the pipes file descriptors
* returnpipe - used to check if the pipe opened correctly
* dupfd - dup returns the file descriptor that was returned
*/
int child_pid = 0, pfd[2], returnpipe, dupfd;
returnpipe = pipe(pfd); /* pfd[0] - prdr - read end of pipe */
/* pfd[1] - pwtr - write end of pipe */
int prdr = pfd[0], pwtr = pfd[1];
if (returnpipe<0) errorOutput(1);
/* ready to fork */
if ((child_pid = fork())) {
/* parent - parent runs second argument in the pipe */
close(pwtr); /* close the pipes writer for parent */
close(STDIN); /* close the stdin from parents FD */
dupfd=dup(prdr); /* replaces the FD of stdin with reader */
close(prdr); /* close the original reader fd */
execvp(argv[argTwoIndex],&argv[argTwoIndex]);
fprintf(stderr,"%s command failed.\n",argv[argTwoIndex]);
kill(child_pid, SIGKILL);
exit(1);
} else {
/* child - child run the first argument in the pipe */
close(prdr); /* close the pipes reader for child */
close(STDOUT); /* close the stdout from childs FD */
dupfd=dup(pwtr); /* replaces the FD of stdout with writer */
close(pwtr); /* close the original writer fd */
execvp(argv[argOneIndex],&argv[argOneIndex]);
fprintf(stderr,"%s command failed.\n",argv[argOneIndex]);
kill(child_pid, SIGKILL);
exit(1);
} /* end if fork() */
return 0;
} /* end main() */
/* usageConnect()
* Displays at errors
*/
void usageConnect(char* command) {
fprintf(stderr,"USAGE: %s <input stream pipe> : <output stream pipe>\n",command);
fprintf(stderr,"\n\tYou may not place a pipe at the beginning or the end of the connect expression.");
fprintf(stderr,"\n\tIf connect is unable to execute one side of the pipe, connect will 1 all processes.\n");
exit(1);
} /* end usageConnect */
/* errorOutput()
* If unable to create pipes, will print error, this code allows for more
* error entries.
*/
void errorOutput(int e) {
switch(e) {
case 1: fprintf(stderr, "Unable to create pipe.\n"); break;
default: break;
} /* end switch() */
exit(1);
} /* end errorOutput() */
|
the_stack_data/107952603.c | #include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <limits.h>
#include <stdbool.h>
int main(){
int n;
scanf("%d",&n);
int i, j, k;
for(i = 0; i < n; i++){
for(j = n - 1; j > i; j--){
printf(" ");
//printf("i: %d ", i);
//printf("j :%d ", j);
}
for(k = 0; k < i + 1; k++)
{
printf("*");
}
printf("\n");
}
return 0;
}
|
the_stack_data/125801.c | /* C语言标准函数库 stdlib.h time */
#include <time.h>
#include <stdio.h>
char *ctime(const time_t *timer) {
/* 由于某些原因,计算长整数会出错,这个暂时没办法处理 */
static char str[50];
sprintf(str,"this function doesn't work yet. (%u)",timer);
return str;
}
|
the_stack_data/57950696.c | /*
* Written by Alexander Kabaev <[email protected]>
* The file is in public domain.
*
* $FreeBSD: head/lib/libc/secure/stack_protector_compat.c 286760 2015-08-14 03:03:13Z pfg $
*/
void __stack_chk_fail(void);
#ifdef PIC
void
__stack_chk_fail_local(void)
{
__stack_chk_fail();
}
#endif
|
the_stack_data/14832.c | #include <stdio.h>
int mx_toupper(int c) {
if (c >= 97 && c <= 122) {
return c - 32;
}
else {
return c;
}
}
// int main() {
// mx_tolower('B');
// printf("%c", mx_toupper('4'));
// return 0;
// }
|
the_stack_data/70450391.c | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putchar.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: wjohnson <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/04/08 15:13:04 by wjohnson #+# #+# */
/* Updated: 2017/04/09 16:49:07 by wjohnson ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
int ft_putchar(char c)
{
char buf[2];
int size;
buf[0] = c;
buf[1] = '\0';
size = write(1, buf, 1);
if (size == 1)
{
return (c);
}
else
{
return (-1);
}
}
|
the_stack_data/29824164.c | /*
Write an expression that checks if given positive integer number n(n≤ 100) is prime
(i.e. it is divisible without remainder only to itself and 1).
Print true or false
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
void checkInput(int *);
int checkPrime(int);
int main()
{
int number;
int isPrime;
printf("Enter number: ");
checkInput(&number);
isPrime = checkPrime(number);
printf(isPrime ? "true" : "false");
return (EXIT_SUCCESS);
}
void checkInput(int *num)
{
if ((scanf("%d", num)) != 1)
{
if (*num > 100)
{
fprintf(stderr, "Over 100!");
exit(EXIT_FAILURE);
}
fprintf(stderr, "Wrong input values!");
exit(EXIT_FAILURE);
}
}
int checkPrime(int num)
{
int ctr;
if (num > 1)
{
for (ctr = 2; ctr <= num - 1; ctr++)
{
if (num % ctr == 0)
return 0;
}
if (ctr == num)
return 1;
}
return 0;
} |
the_stack_data/70451019.c | int my_getnbr(char const *str)
{
int i;
int negative;
int number;
i = 0;
negative = 0;
number = 0;
while ((str[i] < 48 || str[i] > 57))
i++;
if (str[i] == 45)
negative = 1;
if ((str[i] == 43) || (str[i] == 45))
i++;
while ((str[i] >= 48) && (str[i] <= 57))
{
number *= 10;
number += ((int)str[i] - 48);
i++;
}
if (number == -1342177238 || -number == -1342177238)
return (0);
if (negative == 1)
{
return (-number);
}
else
{
return (number);
}
}
|
the_stack_data/153087.c | /* This testcase is part of GDB, the GNU debugger.
Copyright 2010-2016 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* In python-1.c. */
extern void func1 (void);
extern int func2 (void);
int
main (int argc, char *argv[])
{
func1 ();
func2 (); /* Break at func2 call site. */
return 0; /* Break to end. */
}
|
the_stack_data/3431.c | #include<stdio.h>
int main(){
for(int i=1;i<=5;i++){
for(int j=1;j<=i;j++){
printf("%d ",j);
}
printf("\n");
}
}
|
the_stack_data/34513887.c | /* Code generated from eC source file: BinaryTree.ec */
#if defined(_WIN32)
#define __runtimePlatform 1
#elif defined(__APPLE__)
#define __runtimePlatform 3
#else
#define __runtimePlatform 2
#endif
#if defined(__GNUC__)
typedef long long int64;
typedef unsigned long long uint64;
#ifndef _WIN32
#define __declspec(x)
#endif
#elif defined(__TINYC__)
#include <stdarg.h>
#define __builtin_va_list va_list
#define __builtin_va_start va_start
#define __builtin_va_end va_end
#ifdef _WIN32
#define strcasecmp stricmp
#define strncasecmp strnicmp
#define __declspec(x) __attribute__((x))
#else
#define __declspec(x)
#endif
typedef long long int64;
typedef unsigned long long uint64;
#else
typedef __int64 int64;
typedef unsigned __int64 uint64;
#endif
#ifdef __BIG_ENDIAN__
#define __ENDIAN_PAD(x) (8 - (x))
#else
#define __ENDIAN_PAD(x) 0
#endif
#if defined(_WIN32)
# if defined(__GNUC__) || defined(__TINYC__)
# define ecere_stdcall __attribute__((__stdcall__))
# define ecere_gcc_struct __attribute__((gcc_struct))
# else
# define ecere_stdcall __stdcall
# define ecere_gcc_struct
# endif
#else
# define ecere_stdcall
# define ecere_gcc_struct
#endif
#include <stdint.h>
#include <sys/types.h>
extern struct __ecereNameSpace__ecere__com__Property * __ecereProp___ecereNameSpace__ecere__sys__BTNode_count;
extern struct __ecereNameSpace__ecere__com__Property * __ecereProp___ecereNameSpace__ecere__sys__BTNode_minimum;
extern struct __ecereNameSpace__ecere__com__Property * __ecereProp___ecereNameSpace__ecere__sys__BTNode_maximum;
struct __ecereNameSpace__ecere__sys__OldList
{
void * first;
void * last;
int count;
unsigned int offset;
unsigned int circ;
} ecere_gcc_struct;
struct __ecereNameSpace__ecere__com__DataValue
{
union
{
char c;
unsigned char uc;
short s;
unsigned short us;
int i;
unsigned int ui;
void * p;
float f;
double d;
long long i64;
uint64 ui64;
} ecere_gcc_struct __anon1;
} ecere_gcc_struct;
struct __ecereNameSpace__ecere__com__SerialBuffer
{
unsigned char * _buffer;
unsigned int count;
unsigned int _size;
unsigned int pos;
} ecere_gcc_struct;
extern void * __ecereNameSpace__ecere__com__eSystem_New(unsigned int size);
extern void * __ecereNameSpace__ecere__com__eSystem_New0(unsigned int size);
extern void * __ecereNameSpace__ecere__com__eSystem_Renew(void * memory, unsigned int size);
extern void * __ecereNameSpace__ecere__com__eSystem_Renew0(void * memory, unsigned int size);
extern void __ecereNameSpace__ecere__com__eSystem_Delete(void * memory);
extern int strcmp(const char * , const char * );
struct __ecereNameSpace__ecere__sys__StringBTNode;
void __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_FreeString(char * string)
{
(__ecereNameSpace__ecere__com__eSystem_Delete(string), string = 0);
}
struct __ecereNameSpace__ecere__com__Property;
static __attribute__((unused)) struct __ecereNameSpace__ecere__com__Property * __ecereProp___ecereNameSpace__ecere__sys__BinaryTree_first, * __ecerePropM___ecereNameSpace__ecere__sys__BinaryTree_first;
static __attribute__((unused)) struct __ecereNameSpace__ecere__com__Property * __ecereProp___ecereNameSpace__ecere__sys__BinaryTree_last, * __ecerePropM___ecereNameSpace__ecere__sys__BinaryTree_last;
struct __ecereNameSpace__ecere__sys__BTNode;
struct __ecereNameSpace__ecere__sys__BTNode
{
uintptr_t key;
struct __ecereNameSpace__ecere__sys__BTNode * parent;
struct __ecereNameSpace__ecere__sys__BTNode * left;
struct __ecereNameSpace__ecere__sys__BTNode * right;
int depth;
} ecere_gcc_struct;
int __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_count(struct __ecereNameSpace__ecere__sys__BTNode * this);
void __ecereMethod___ecereNameSpace__ecere__sys__BTNode_Free(struct __ecereNameSpace__ecere__sys__BTNode * this, void (* FreeKey)(void * key));
struct __ecereNameSpace__ecere__sys__BTNode * __ecereMethod___ecereNameSpace__ecere__sys__BTNode_Rebalance();
struct __ecereNameSpace__ecere__sys__BTNode * __ecereMethod___ecereNameSpace__ecere__sys__BTNode_FindString(struct __ecereNameSpace__ecere__sys__BTNode * this, const char * key);
struct __ecereNameSpace__ecere__sys__BTNode * __ecereMethod___ecereNameSpace__ecere__sys__BTNode_FindPrefix(struct __ecereNameSpace__ecere__sys__BTNode * this, const char * key);
struct __ecereNameSpace__ecere__sys__BTNode * __ecereMethod___ecereNameSpace__ecere__sys__BTNode_FindAll(struct __ecereNameSpace__ecere__sys__BTNode * this, uintptr_t key);
struct __ecereNameSpace__ecere__sys__BTNode * __ecereMethod___ecereNameSpace__ecere__sys__BTNode_RemoveSwapRight();
char * __ecereMethod___ecereNameSpace__ecere__sys__BTNode_Print(struct __ecereNameSpace__ecere__sys__BTNode * this, char * output, int tps);
struct __ecereNameSpace__ecere__sys__BTNode * __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_minimum(struct __ecereNameSpace__ecere__sys__BTNode * this);
struct __ecereNameSpace__ecere__sys__BTNode * __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_maximum(struct __ecereNameSpace__ecere__sys__BTNode * this);
struct __ecereNameSpace__ecere__com__Class;
struct __ecereNameSpace__ecere__com__Instance
{
void * * _vTbl;
struct __ecereNameSpace__ecere__com__Class * _class;
int _refCount;
} ecere_gcc_struct;
extern long long __ecereNameSpace__ecere__com__eClass_GetProperty(struct __ecereNameSpace__ecere__com__Class * _class, const char * name);
extern void __ecereNameSpace__ecere__com__eClass_SetProperty(struct __ecereNameSpace__ecere__com__Class * _class, const char * name, long long value);
extern struct __ecereNameSpace__ecere__com__Property * __ecereNameSpace__ecere__com__eClass_AddProperty(struct __ecereNameSpace__ecere__com__Class * _class, const char * name, const char * dataType, void * setStmt, void * getStmt, int declMode);
struct __ecereNameSpace__ecere__com__Property
{
struct __ecereNameSpace__ecere__com__Property * prev;
struct __ecereNameSpace__ecere__com__Property * next;
const char * name;
unsigned int isProperty;
int memberAccess;
int id;
struct __ecereNameSpace__ecere__com__Class * _class;
const char * dataTypeString;
struct __ecereNameSpace__ecere__com__Class * dataTypeClass;
struct __ecereNameSpace__ecere__com__Instance * dataType;
void (* Set)(void * , int);
int (* Get)(void * );
unsigned int (* IsSet)(void * );
void * data;
void * symbol;
int vid;
unsigned int conversion;
unsigned int watcherOffset;
const char * category;
unsigned int compiled;
unsigned int selfWatchable;
unsigned int isWatchable;
} ecere_gcc_struct;
extern void __ecereNameSpace__ecere__com__eInstance_FireSelfWatchers(struct __ecereNameSpace__ecere__com__Instance * instance, struct __ecereNameSpace__ecere__com__Property * _property);
extern void __ecereNameSpace__ecere__com__eInstance_SetMethod(struct __ecereNameSpace__ecere__com__Instance * instance, const char * name, void * function);
extern void __ecereNameSpace__ecere__com__eInstance_IncRef(struct __ecereNameSpace__ecere__com__Instance * instance);
extern void __ecereNameSpace__ecere__com__eInstance_StopWatching(struct __ecereNameSpace__ecere__com__Instance * instance, struct __ecereNameSpace__ecere__com__Property * _property, struct __ecereNameSpace__ecere__com__Instance * object);
extern void __ecereNameSpace__ecere__com__eInstance_Watch(struct __ecereNameSpace__ecere__com__Instance * instance, struct __ecereNameSpace__ecere__com__Property * _property, void * object, void (* callback)(void * , void * ));
extern void __ecereNameSpace__ecere__com__eInstance_FireWatchers(struct __ecereNameSpace__ecere__com__Instance * instance, struct __ecereNameSpace__ecere__com__Property * _property);
void __ecereMethod___ecereNameSpace__ecere__com__IOChannel_Serialize(struct __ecereNameSpace__ecere__com__Instance * this, struct __ecereNameSpace__ecere__com__Class * class, const void * data);
void __ecereMethod___ecereNameSpace__ecere__com__IOChannel_Unserialize(struct __ecereNameSpace__ecere__com__Instance * this, struct __ecereNameSpace__ecere__com__Class * class, void * * data);
struct __ecereNameSpace__ecere__sys__BinaryTree;
struct __ecereNameSpace__ecere__sys__BinaryTree
{
struct __ecereNameSpace__ecere__sys__BTNode * root;
int count;
int (* CompareKey)(struct __ecereNameSpace__ecere__sys__BinaryTree * tree, uintptr_t a, uintptr_t b);
void (* FreeKey)(void * key);
} ecere_gcc_struct;
struct __ecereNameSpace__ecere__sys__StringBinaryTree
{
struct __ecereNameSpace__ecere__sys__BTNode * root;
int count;
int (* CompareKey)(struct __ecereNameSpace__ecere__sys__BinaryTree * tree, uintptr_t a, uintptr_t b);
void (* FreeKey)(void * key);
} ecere_gcc_struct;
__attribute__((unused)) static struct __ecereNameSpace__ecere__sys__BinaryTree __ecereNameSpace__ecere__sys__dummy;
int __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_CompareInt(struct __ecereNameSpace__ecere__sys__BinaryTree * this, uintptr_t a, uintptr_t b)
{
return (a > b) ? 1 : ((a < b) ? -1 : 0);
}
int __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_CompareString(struct __ecereNameSpace__ecere__sys__BinaryTree * this, const char * a, const char * b)
{
return (a && b) ? strcmp(a, b) : -1;
}
void __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Free(struct __ecereNameSpace__ecere__sys__BinaryTree * this)
{
if(this->root)
__ecereMethod___ecereNameSpace__ecere__sys__BTNode_Free(this->root, this->FreeKey);
this->root = (((void *)0));
this->count = 0;
}
struct __ecereNameSpace__ecere__sys__BTNode * __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_FindString(struct __ecereNameSpace__ecere__sys__BinaryTree * this, const char * key)
{
return this->root ? __ecereMethod___ecereNameSpace__ecere__sys__BTNode_FindString(this->root, key) : (((void *)0));
}
struct __ecereNameSpace__ecere__sys__BTNode * __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_FindPrefix(struct __ecereNameSpace__ecere__sys__BinaryTree * this, const char * key)
{
return this->root ? __ecereMethod___ecereNameSpace__ecere__sys__BTNode_FindPrefix(this->root, key) : (((void *)0));
}
struct __ecereNameSpace__ecere__sys__BTNode * __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_FindAll(struct __ecereNameSpace__ecere__sys__BinaryTree * this, uintptr_t key)
{
return this->root ? __ecereMethod___ecereNameSpace__ecere__sys__BTNode_FindAll(this->root, key) : (((void *)0));
}
void __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Remove(struct __ecereNameSpace__ecere__sys__BinaryTree * this, struct __ecereNameSpace__ecere__sys__BTNode * node)
{
struct __ecereNameSpace__ecere__sys__BTNode * parent = node->parent;
if(parent || this->root == node)
{
this->root = __ecereMethod___ecereNameSpace__ecere__sys__BTNode_RemoveSwapRight(node);
this->count--;
node->parent = (((void *)0));
}
}
char * __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Print(struct __ecereNameSpace__ecere__sys__BinaryTree * this, char * output, int tps)
{
output[0] = 0;
if(this->root)
__ecereMethod___ecereNameSpace__ecere__sys__BTNode_Print(this->root, output, tps);
return output;
}
struct __ecereNameSpace__ecere__sys__BTNode * __ecereProp___ecereNameSpace__ecere__sys__BinaryTree_Get_first(struct __ecereNameSpace__ecere__sys__BinaryTree * this)
{
return this->root ? __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_minimum(this->root) : (((void *)0));
}
struct __ecereNameSpace__ecere__sys__BTNode * __ecereProp___ecereNameSpace__ecere__sys__BinaryTree_Get_last(struct __ecereNameSpace__ecere__sys__BinaryTree * this)
{
return this->root ? __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_maximum(this->root) : (((void *)0));
}
unsigned int __ecereMethod___ecereNameSpace__ecere__sys__BTNode_Add(struct __ecereNameSpace__ecere__sys__BTNode * this, struct __ecereNameSpace__ecere__sys__BinaryTree * tree, struct __ecereNameSpace__ecere__sys__BTNode * node);
struct __ecereNameSpace__ecere__sys__BTNode * __ecereMethod___ecereNameSpace__ecere__sys__BTNode_Find(struct __ecereNameSpace__ecere__sys__BTNode * this, struct __ecereNameSpace__ecere__sys__BinaryTree * tree, uintptr_t key);
unsigned int __ecereMethod___ecereNameSpace__ecere__sys__BTNode_Check(struct __ecereNameSpace__ecere__sys__BTNode * this, struct __ecereNameSpace__ecere__sys__BinaryTree * tree);
void __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Delete(struct __ecereNameSpace__ecere__sys__BinaryTree * this, struct __ecereNameSpace__ecere__sys__BTNode * node)
{
void * voidNode = node;
__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Remove(this, node);
(__ecereNameSpace__ecere__com__eSystem_Delete(voidNode), voidNode = 0);
}
unsigned int __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Add(struct __ecereNameSpace__ecere__sys__BinaryTree * this, struct __ecereNameSpace__ecere__sys__BTNode * node)
{
if(!this->CompareKey)
this->CompareKey = (void *)(__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_CompareInt);
if(!this->root)
this->root = node;
else if(__ecereMethod___ecereNameSpace__ecere__sys__BTNode_Add(this->root, this, node))
this->root = __ecereMethod___ecereNameSpace__ecere__sys__BTNode_Rebalance(node);
else
return 0;
this->count++;
return 1;
}
struct __ecereNameSpace__ecere__sys__BTNode * __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Find(struct __ecereNameSpace__ecere__sys__BinaryTree * this, uintptr_t key)
{
if(!this->CompareKey)
this->CompareKey = (void *)(__ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_CompareInt);
return this->root ? __ecereMethod___ecereNameSpace__ecere__sys__BTNode_Find(this->root, this, key) : (((void *)0));
}
unsigned int __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Check(struct __ecereNameSpace__ecere__sys__BinaryTree * this)
{
return this->root ? __ecereMethod___ecereNameSpace__ecere__sys__BTNode_Check(this->root, this) : 1;
}
struct __ecereNameSpace__ecere__com__DataMember;
struct __ecereNameSpace__ecere__com__DataMember
{
struct __ecereNameSpace__ecere__com__DataMember * prev;
struct __ecereNameSpace__ecere__com__DataMember * next;
const char * name;
unsigned int isProperty;
int memberAccess;
int id;
struct __ecereNameSpace__ecere__com__Class * _class;
const char * dataTypeString;
struct __ecereNameSpace__ecere__com__Class * dataTypeClass;
struct __ecereNameSpace__ecere__com__Instance * dataType;
int type;
int offset;
int memberID;
struct __ecereNameSpace__ecere__sys__OldList members;
struct __ecereNameSpace__ecere__sys__BinaryTree membersAlpha;
int memberOffset;
short structAlignment;
short pointerAlignment;
} ecere_gcc_struct;
extern struct __ecereNameSpace__ecere__com__DataMember * __ecereNameSpace__ecere__com__eClass_AddDataMember(struct __ecereNameSpace__ecere__com__Class * _class, const char * name, const char * type, unsigned int size, unsigned int alignment, int declMode);
struct __ecereNameSpace__ecere__com__Method;
struct __ecereNameSpace__ecere__com__ClassTemplateArgument
{
union
{
struct
{
const char * dataTypeString;
struct __ecereNameSpace__ecere__com__Class * dataTypeClass;
} ecere_gcc_struct __anon1;
struct __ecereNameSpace__ecere__com__DataValue expression;
struct
{
const char * memberString;
union
{
struct __ecereNameSpace__ecere__com__DataMember * member;
struct __ecereNameSpace__ecere__com__Property * prop;
struct __ecereNameSpace__ecere__com__Method * method;
} ecere_gcc_struct __anon1;
} ecere_gcc_struct __anon2;
} ecere_gcc_struct __anon1;
} ecere_gcc_struct;
struct __ecereNameSpace__ecere__com__Method
{
const char * name;
struct __ecereNameSpace__ecere__com__Method * parent;
struct __ecereNameSpace__ecere__com__Method * left;
struct __ecereNameSpace__ecere__com__Method * right;
int depth;
int (* function)();
int vid;
int type;
struct __ecereNameSpace__ecere__com__Class * _class;
void * symbol;
const char * dataTypeString;
struct __ecereNameSpace__ecere__com__Instance * dataType;
int memberAccess;
} ecere_gcc_struct;
extern struct __ecereNameSpace__ecere__com__Method * __ecereNameSpace__ecere__com__eClass_AddMethod(struct __ecereNameSpace__ecere__com__Class * _class, const char * name, const char * type, void * function, int declMode);
struct __ecereNameSpace__ecere__com__Module;
extern struct __ecereNameSpace__ecere__com__Class * __ecereNameSpace__ecere__com__eSystem_RegisterClass(int type, const char * name, const char * baseName, int size, int sizeClass, unsigned int (* Constructor)(void * ), void (* Destructor)(void * ), struct __ecereNameSpace__ecere__com__Instance * module, int declMode, int inheritanceAccess);
extern struct __ecereNameSpace__ecere__com__Instance * __thisModule;
struct __ecereNameSpace__ecere__com__NameSpace;
struct __ecereNameSpace__ecere__com__NameSpace
{
const char * name;
struct __ecereNameSpace__ecere__com__NameSpace * btParent;
struct __ecereNameSpace__ecere__com__NameSpace * left;
struct __ecereNameSpace__ecere__com__NameSpace * right;
int depth;
struct __ecereNameSpace__ecere__com__NameSpace * parent;
struct __ecereNameSpace__ecere__sys__BinaryTree nameSpaces;
struct __ecereNameSpace__ecere__sys__BinaryTree classes;
struct __ecereNameSpace__ecere__sys__BinaryTree defines;
struct __ecereNameSpace__ecere__sys__BinaryTree functions;
} ecere_gcc_struct;
struct __ecereNameSpace__ecere__com__Class
{
struct __ecereNameSpace__ecere__com__Class * prev;
struct __ecereNameSpace__ecere__com__Class * next;
const char * name;
int offset;
int structSize;
void * * _vTbl;
int vTblSize;
unsigned int (* Constructor)(void * );
void (* Destructor)(void * );
int offsetClass;
int sizeClass;
struct __ecereNameSpace__ecere__com__Class * base;
struct __ecereNameSpace__ecere__sys__BinaryTree methods;
struct __ecereNameSpace__ecere__sys__BinaryTree members;
struct __ecereNameSpace__ecere__sys__BinaryTree prop;
struct __ecereNameSpace__ecere__sys__OldList membersAndProperties;
struct __ecereNameSpace__ecere__sys__BinaryTree classProperties;
struct __ecereNameSpace__ecere__sys__OldList derivatives;
int memberID;
int startMemberID;
int type;
struct __ecereNameSpace__ecere__com__Instance * module;
struct __ecereNameSpace__ecere__com__NameSpace * nameSpace;
const char * dataTypeString;
struct __ecereNameSpace__ecere__com__Instance * dataType;
int typeSize;
int defaultAlignment;
void (* Initialize)();
int memberOffset;
struct __ecereNameSpace__ecere__sys__OldList selfWatchers;
const char * designerClass;
unsigned int noExpansion;
const char * defaultProperty;
unsigned int comRedefinition;
int count;
int isRemote;
unsigned int internalDecl;
void * data;
unsigned int computeSize;
short structAlignment;
short pointerAlignment;
int destructionWatchOffset;
unsigned int fixed;
struct __ecereNameSpace__ecere__sys__OldList delayedCPValues;
int inheritanceAccess;
const char * fullName;
void * symbol;
struct __ecereNameSpace__ecere__sys__OldList conversions;
struct __ecereNameSpace__ecere__sys__OldList templateParams;
struct __ecereNameSpace__ecere__com__ClassTemplateArgument * templateArgs;
struct __ecereNameSpace__ecere__com__Class * templateClass;
struct __ecereNameSpace__ecere__sys__OldList templatized;
int numParams;
unsigned int isInstanceClass;
unsigned int byValueSystemClass;
void * bindingsClass;
} ecere_gcc_struct;
struct __ecereNameSpace__ecere__com__Application
{
int argc;
const char * * argv;
int exitCode;
unsigned int isGUIApp;
struct __ecereNameSpace__ecere__sys__OldList allModules;
char * parsedCommand;
struct __ecereNameSpace__ecere__com__NameSpace systemNameSpace;
} ecere_gcc_struct;
static struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__BinaryTree;
static struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__StringBinaryTree;
extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__BTNode;
extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__sys__StringBTNode;
extern struct __ecereNameSpace__ecere__com__Class * __ecereClass___ecereNameSpace__ecere__com__Module;
struct __ecereNameSpace__ecere__com__Module
{
struct __ecereNameSpace__ecere__com__Instance * application;
struct __ecereNameSpace__ecere__sys__OldList classes;
struct __ecereNameSpace__ecere__sys__OldList defines;
struct __ecereNameSpace__ecere__sys__OldList functions;
struct __ecereNameSpace__ecere__sys__OldList modules;
struct __ecereNameSpace__ecere__com__Instance * prev;
struct __ecereNameSpace__ecere__com__Instance * next;
const char * name;
void * library;
void * Unload;
int importType;
int origImportType;
struct __ecereNameSpace__ecere__com__NameSpace privateNameSpace;
struct __ecereNameSpace__ecere__com__NameSpace publicNameSpace;
} ecere_gcc_struct;
void __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_OnSerialize(struct __ecereNameSpace__ecere__com__Class * class, struct __ecereNameSpace__ecere__sys__BinaryTree * this, struct __ecereNameSpace__ecere__com__Instance * channel)
{
__ecereMethod___ecereNameSpace__ecere__com__IOChannel_Serialize(channel, __ecereClass___ecereNameSpace__ecere__sys__BTNode, this->root);
}
void __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_OnUnserialize(struct __ecereNameSpace__ecere__com__Class * class, struct __ecereNameSpace__ecere__sys__BinaryTree * this, struct __ecereNameSpace__ecere__com__Instance * channel)
{
__ecereMethod___ecereNameSpace__ecere__com__IOChannel_Unserialize(channel, __ecereClass___ecereNameSpace__ecere__sys__BTNode, (void *)&(*this).root);
(*this).count = (*this).root ? __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_count((*this).root) : 0;
}
void __ecereMethod___ecereNameSpace__ecere__sys__StringBinaryTree_OnSerialize(struct __ecereNameSpace__ecere__com__Class * class, struct __ecereNameSpace__ecere__sys__StringBinaryTree * this, struct __ecereNameSpace__ecere__com__Instance * channel)
{
__ecereMethod___ecereNameSpace__ecere__com__IOChannel_Serialize(channel, __ecereClass___ecereNameSpace__ecere__sys__StringBTNode, (struct __ecereNameSpace__ecere__sys__StringBTNode *)this->root);
}
void __ecereMethod___ecereNameSpace__ecere__sys__StringBinaryTree_OnUnserialize(struct __ecereNameSpace__ecere__com__Class * class, struct __ecereNameSpace__ecere__sys__StringBinaryTree * this, struct __ecereNameSpace__ecere__com__Instance * channel)
{
struct __ecereNameSpace__ecere__sys__StringBTNode * root = (((void *)0));
__ecereMethod___ecereNameSpace__ecere__com__IOChannel_Unserialize(channel, __ecereClass___ecereNameSpace__ecere__sys__StringBTNode, (void *)&root);
(*this).root = (struct __ecereNameSpace__ecere__sys__BTNode *)root;
(*this).count = root ? __ecereProp___ecereNameSpace__ecere__sys__BTNode_Get_count((*this).root) : 0;
}
void __ecereUnregisterModule_BinaryTree(struct __ecereNameSpace__ecere__com__Instance * module)
{
__ecerePropM___ecereNameSpace__ecere__sys__BinaryTree_first = (void *)0;
__ecerePropM___ecereNameSpace__ecere__sys__BinaryTree_last = (void *)0;
}
void __ecereRegisterModule_BinaryTree(struct __ecereNameSpace__ecere__com__Instance * module)
{
struct __ecereNameSpace__ecere__com__Class __attribute__((unused)) * class;
class = __ecereNameSpace__ecere__com__eSystem_RegisterClass(1, "ecere::sys::BinaryTree", 0, sizeof(struct __ecereNameSpace__ecere__sys__BinaryTree), 0, (void *)0, (void *)0, module, 4, 1);
if(((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + sizeof(struct __ecereNameSpace__ecere__com__Instance))))->application == ((struct __ecereNameSpace__ecere__com__Module *)(((char *)__thisModule + sizeof(struct __ecereNameSpace__ecere__com__Instance))))->application && class)
__ecereClass___ecereNameSpace__ecere__sys__BinaryTree = class;
__ecereNameSpace__ecere__com__eClass_AddMethod(class, "OnSerialize", 0, __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_OnSerialize, 1);
__ecereNameSpace__ecere__com__eClass_AddMethod(class, "OnUnserialize", 0, __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_OnUnserialize, 1);
__ecereNameSpace__ecere__com__eClass_AddMethod(class, "Add", "bool Add(ecere::sys::BTNode node)", __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Add, 1);
__ecereNameSpace__ecere__com__eClass_AddMethod(class, "Check", "bool Check()", __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Check, 1);
__ecereNameSpace__ecere__com__eClass_AddMethod(class, "CompareInt", "int CompareInt(uintptr a, uintptr b)", __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_CompareInt, 1);
__ecereNameSpace__ecere__com__eClass_AddMethod(class, "CompareString", "int CompareString(const char * a, const char * b)", __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_CompareString, 1);
__ecereNameSpace__ecere__com__eClass_AddMethod(class, "Delete", "void Delete(ecere::sys::BTNode node)", __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Delete, 1);
__ecereNameSpace__ecere__com__eClass_AddMethod(class, "Find", "ecere::sys::BTNode Find(uintptr key)", __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Find, 1);
__ecereNameSpace__ecere__com__eClass_AddMethod(class, "FindAll", "ecere::sys::BTNode FindAll(uintptr key)", __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_FindAll, 1);
__ecereNameSpace__ecere__com__eClass_AddMethod(class, "FindPrefix", "ecere::sys::BTNode FindPrefix(const char * key)", __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_FindPrefix, 1);
__ecereNameSpace__ecere__com__eClass_AddMethod(class, "FindString", "ecere::sys::BTNode FindString(const char * key)", __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_FindString, 1);
__ecereNameSpace__ecere__com__eClass_AddMethod(class, "Free", "void Free()", __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Free, 1);
__ecereNameSpace__ecere__com__eClass_AddMethod(class, "FreeString", "void ::FreeString(char * string)", __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_FreeString, 1);
__ecereNameSpace__ecere__com__eClass_AddMethod(class, "Print", "char * Print(char * output, ecere::sys::TreePrintStyle tps)", __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Print, 1);
__ecereNameSpace__ecere__com__eClass_AddMethod(class, "Remove", "void Remove(ecere::sys::BTNode node)", __ecereMethod___ecereNameSpace__ecere__sys__BinaryTree_Remove, 1);
__ecereNameSpace__ecere__com__eClass_AddDataMember(class, "root", "ecere::sys::BTNode", sizeof(void *), 0xF000F000, 1);
__ecereNameSpace__ecere__com__eClass_AddDataMember(class, "count", "int", 4, 4, 1);
__ecereNameSpace__ecere__com__eClass_AddDataMember(class, "CompareKey", "int (*)(ecere::sys::BinaryTree tree, uintptr a, uintptr b)", sizeof(void *), 0xF000F000, 1);
__ecereNameSpace__ecere__com__eClass_AddDataMember(class, "FreeKey", "void (*)(void * key)", sizeof(void *), 0xF000F000, 1);
__ecerePropM___ecereNameSpace__ecere__sys__BinaryTree_first = __ecereNameSpace__ecere__com__eClass_AddProperty(class, "first", "ecere::sys::BTNode", 0, __ecereProp___ecereNameSpace__ecere__sys__BinaryTree_Get_first, 1);
if(((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + sizeof(struct __ecereNameSpace__ecere__com__Instance))))->application == ((struct __ecereNameSpace__ecere__com__Module *)(((char *)__thisModule + sizeof(struct __ecereNameSpace__ecere__com__Instance))))->application)
__ecereProp___ecereNameSpace__ecere__sys__BinaryTree_first = __ecerePropM___ecereNameSpace__ecere__sys__BinaryTree_first, __ecerePropM___ecereNameSpace__ecere__sys__BinaryTree_first = (void *)0;
__ecerePropM___ecereNameSpace__ecere__sys__BinaryTree_last = __ecereNameSpace__ecere__com__eClass_AddProperty(class, "last", "ecere::sys::BTNode", 0, __ecereProp___ecereNameSpace__ecere__sys__BinaryTree_Get_last, 1);
if(((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + sizeof(struct __ecereNameSpace__ecere__com__Instance))))->application == ((struct __ecereNameSpace__ecere__com__Module *)(((char *)__thisModule + sizeof(struct __ecereNameSpace__ecere__com__Instance))))->application)
__ecereProp___ecereNameSpace__ecere__sys__BinaryTree_last = __ecerePropM___ecereNameSpace__ecere__sys__BinaryTree_last, __ecerePropM___ecereNameSpace__ecere__sys__BinaryTree_last = (void *)0;
class = __ecereNameSpace__ecere__com__eSystem_RegisterClass(1, "ecere::sys::StringBinaryTree", "ecere::sys::BinaryTree", sizeof(struct __ecereNameSpace__ecere__sys__StringBinaryTree) - sizeof(struct __ecereNameSpace__ecere__sys__BinaryTree), 0, (void *)0, (void *)0, module, 4, 1);
if(((struct __ecereNameSpace__ecere__com__Module *)(((char *)module + sizeof(struct __ecereNameSpace__ecere__com__Instance))))->application == ((struct __ecereNameSpace__ecere__com__Module *)(((char *)__thisModule + sizeof(struct __ecereNameSpace__ecere__com__Instance))))->application && class)
__ecereClass___ecereNameSpace__ecere__sys__StringBinaryTree = class;
__ecereNameSpace__ecere__com__eClass_AddMethod(class, "OnSerialize", 0, __ecereMethod___ecereNameSpace__ecere__sys__StringBinaryTree_OnSerialize, 1);
__ecereNameSpace__ecere__com__eClass_AddMethod(class, "OnUnserialize", 0, __ecereMethod___ecereNameSpace__ecere__sys__StringBinaryTree_OnUnserialize, 1);
}
|
the_stack_data/45449934.c | int main()
{
sleep(1);
return 0;
} |
the_stack_data/218892072.c | /* $Revision: 1.9 $
**
** Do shell-style pattern matching for ?, \, [], and * characters.
** Might not be robust in face of malformed patterns; e.g., "foo[a-"
** could cause a segmentation violation. It is 8bit clean.
**
** Written by Rich $alz, mirror!rs, Wed Nov 26 19:03:17 EST 1986.
** Rich $alz is now <[email protected]>.
** April, 1991: Replaced mutually-recursive calls with in-line code
** for the star character.
**
** Special thanks to Lars Mathiesen <[email protected]> for the ABORT code.
** This can greatly speed up failing wildcard patterns. For example:
** pattern: -*-*-*-*-*-*-12-*-*-*-m-*-*-*
** text 1: -adobe-courier-bold-o-normal--12-120-75-75-m-70-iso8859-1
** text 2: -adobe-courier-bold-o-normal--12-120-75-75-X-70-iso8859-1
** Text 1 matches with 51 calls, while text 2 fails with 54 calls. Without
** the ABORT code, it takes 22310 calls to fail. Ugh. The following
** explanation is from Lars:
** The precondition that must be fulfilled is that DoMatch will consume
** at least one character in text. This is true if *p is neither '*' nor
** '\0'.) The last return has ABORT instead of FALSE to avoid quadratic
** behaviour in cases like pattern "*a*b*c*d" with text "abcxxxxx". With
** FALSE, each star-loop has to run to the end of the text; with ABORT
** only the last one does.
**
** Once the control of one instance of DoMatch enters the star-loop, that
** instance will return either TRUE or ABORT, and any calling instance
** will therefore return immediately after (without calling recursively
** again). In effect, only one star-loop is ever active. It would be
** possible to modify the code to maintain this context explicitly,
** eliminating all recursive calls at the cost of some complication and
** loss of clarity (and the ABORT stuff seems to be unclear enough by
** itself). I think it would be unwise to try to get this into a
** released version unless you have a good test data base to try it out
** on.
*/
#define TRUE 1
#define FALSE 0
#define ABORT -1
/* What character marks an inverted character class? */
#define NEGATE_CLASS '^'
/* Is "*" a common pattern? */
#define OPTIMIZE_JUST_STAR
/* Do tar(1) matching rules, which ignore a trailing slash? */
#undef MATCH_TAR_PATTERN
/*
** Match text and p, return TRUE, FALSE, or ABORT.
*/
static int
DoMatch(text, p)
register char *text;
register char *p;
{
register int last;
register int matched;
register int reverse;
for ( ; *p; text++, p++) {
if (*text == '\0' && *p != '*')
return ABORT;
switch (*p) {
case '\\':
/* Literal match with following character. */
p++;
/* FALLTHROUGH */
default:
if (*text != *p)
return FALSE;
continue;
case '?':
/* Match anything. */
continue;
case '*':
while (*++p == '*')
/* Consecutive stars act just like one. */
continue;
if (*p == '\0')
/* Trailing star matches everything. */
return TRUE;
while (*text)
if ((matched = DoMatch(text++, p)) != FALSE)
return matched;
return ABORT;
case '[':
reverse = p[1] == NEGATE_CLASS ? TRUE : FALSE;
if (reverse)
/* Inverted character class. */
p++;
matched = FALSE;
if (p[1] == ']' || p[1] == '-')
if (*++p == *text)
matched = TRUE;
for (last = *p; *++p && *p != ']'; last = *p)
/* This next line requires a good C compiler. */
if (*p == '-' && p[1] != ']'
? *text <= *++p && *text >= last : *text == *p)
matched = TRUE;
if (matched == reverse)
return FALSE;
continue;
}
}
#ifdef MATCH_TAR_PATTERN
if (*text == '/')
return TRUE;
#endif /* MATCH_TAR_ATTERN */
return *text == '\0';
}
/*
** User-level routine. Returns TRUE or FALSE.
*/
int
wildmat(text, p)
char *text;
char *p;
{
#ifdef OPTIMIZE_JUST_STAR
if (p[0] == '*' && p[1] == '\0')
return TRUE;
#endif /* OPTIMIZE_JUST_STAR */
return DoMatch(text, p) == TRUE;
}
#if defined(TEST)
#include <stdio.h>
/* Yes, we use gets not fgets. Sue me. */
extern char *gets();
int
main()
{
char p[80];
char text[80];
printf("Wildmat tester. Enter pattern, then strings to test.\n");
printf("A blank line gets prompts for a new pattern; a blank pattern\n");
printf("exits the program.\n");
for ( ; ; ) {
printf("\nEnter pattern: ");
(void)fflush(stdout);
if (gets(p) == NULL || p[0] == '\0')
break;
for ( ; ; ) {
printf("Enter text: ");
(void)fflush(stdout);
if (gets(text) == NULL)
exit(0);
if (text[0] == '\0')
/* Blank line; go back and get a new pattern. */
break;
printf(" %s\n", wildmat(text, p) ? "YES" : "NO");
}
}
exit(0);
/* NOTREACHED */
}
#endif /* defined(TEST) */ |
the_stack_data/73266.c | /* memcmp.c - memcmp */
/*------------------------------------------------------------------------
* memcmp - Compare two equal-size blocks of memory. If there are no
* differences, return 0. Otherwise return >0 or <0
* if the first differing byte is greater or less
*------------------------------------------------------------------------
*/
int memcmp(
const void *s1, /* first memory location */
const void *s2, /* second memory location */
int n /* length to compare */
)
{
const unsigned char *c1;
const unsigned char *c2;
for (c1 = s1, c2 = s2; n > 0; n--, c1++, c2++)
{
if (*c1 != *c2)
{
return ((int)*c1) - ((int)*c2);
}
}
return 0;
}
|
the_stack_data/54520.c | /* compress.c -- compress a memory buffer
* Copyright (C) 1995-2005, 2014, 2016 Jean-loup Gailly, Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
*/
/* @(#) $Id$ */
#define ZLIB_INTERNAL
#include "zlib.h"
/* ===========================================================================
Compresses the source buffer into the destination buffer. The level
parameter has the same meaning as in deflateInit. sourceLen is the byte
length of the source buffer. Upon entry, destLen is the total size of the
destination buffer, which must be at least 0.1% larger than sourceLen plus
12 bytes. Upon exit, destLen is the actual size of the compressed buffer.
compress2 returns Z_OK if success, Z_MEM_ERROR if there was not enough
memory, Z_BUF_ERROR if there was not enough room in the output buffer,
Z_STREAM_ERROR if the level parameter is invalid.
*/
int ZEXPORT compress2(dest, destLen, source, sourceLen, level) Bytef* dest;
uLongf* destLen;
const Bytef* source;
uLong sourceLen;
int level;
{
z_stream stream;
int err;
const uInt max = (uInt)-1;
uLong left;
left = *destLen;
*destLen = 0;
stream.zalloc = (alloc_func)0;
stream.zfree = (free_func)0;
stream.opaque = (voidpf)0;
err = deflateInit(&stream, level);
if (err != Z_OK) return err;
stream.next_out = dest;
stream.avail_out = 0;
stream.next_in = (z_const Bytef*)source;
stream.avail_in = 0;
do {
if (stream.avail_out == 0) {
stream.avail_out = left > (uLong)max ? max : (uInt)left;
left -= stream.avail_out;
}
if (stream.avail_in == 0) {
stream.avail_in = sourceLen > (uLong)max ? max : (uInt)sourceLen;
sourceLen -= stream.avail_in;
}
err = deflate(&stream, sourceLen ? Z_NO_FLUSH : Z_FINISH);
} while (err == Z_OK);
*destLen = stream.total_out;
deflateEnd(&stream);
return err == Z_STREAM_END ? Z_OK : err;
}
/* ===========================================================================
*/
int ZEXPORT compress(dest, destLen, source, sourceLen) Bytef* dest;
uLongf* destLen;
const Bytef* source;
uLong sourceLen;
{ return compress2(dest, destLen, source, sourceLen, Z_DEFAULT_COMPRESSION); }
/* ===========================================================================
If the default memLevel or windowBits for deflateInit() is changed, then
this function needs to be updated.
*/
uLong ZEXPORT compressBound(sourceLen) uLong sourceLen;
{ return sourceLen + (sourceLen >> 12) + (sourceLen >> 14) + (sourceLen >> 25) + 13; }
|
the_stack_data/12637198.c | #include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
//Writing to external command
int main()
{
FILE *write_fp;
char buffer[BUFSIZ + 1];
sprintf(buffer, "The quick brown fox jumped over the lazy dog.\n");
write_fp = popen("cat > newfile1.txt", "w");
if (write_fp != NULL)
{
fwrite(buffer, sizeof(char), strlen(buffer), write_fp);
pclose(write_fp);
exit(EXIT_SUCCESS);
}
exit(EXIT_FAILURE);
}
|
the_stack_data/987238.c | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main(void) {
int n;
do {
printf("Upisite n > ");
scanf("%d", &n);
if (!(n >= 3 && n <= 60)) {
printf("Neispravan unos!");
}
} while (n < 3 && n > 60);
srand((unsigned)time(NULL));
int slucajni;
char ascii;
for (int i = 0; i < n; i++) {
slucajni = rand();
ascii = (double)slucajni / (RAND_MAX + 1U) * ('Z' - 'A' + 1) + 'A';
// ili ovako:
// ascii = slucajni % ('Z' - 'A' + 1) + 'A';
printf("%c", ascii);
}
return 0;
} |
the_stack_data/93720.c | // Test floating point operations.
void unaryOps() {
// Unary ops
printf("-%g = %g\n", 1.1, -1.1);
printf("!%g = %d\n", 1.2, !1.2);
printf("!%g = %d\n", 0.0, !0.0);
}
void binaryOps() {
printf("double op double:\n");
printf("%g + %g = %g\n", 1.0, 2.0, 1.0 + 2.0);
printf("%g - %g = %g\n", 1.0, 2.0, 1.0 - 2.0);
printf("%g * %g = %g\n", 1.0, 2.0, 1.0 * 2.0);
printf("%g / %g = %g\n", 1.0, 2.0, 1.0 / 2.0);
printf("float op float:\n");
printf("%g + %g = %g\n", 1.0f, 2.0f, 1.0f + 2.0f);
printf("%g - %g = %g\n", 1.0f, 2.0f, 1.0f - 2.0f);
printf("%g * %g = %g\n", 1.0f, 2.0f, 1.0f * 2.0f);
printf("%g / %g = %g\n", 1.0f, 2.0f, 1.0f / 2.0f);
printf("double op float:\n");
printf("%g + %g = %g\n", 1.0, 2.0f, 1.0 + 2.0f);
printf("%g - %g = %g\n", 1.0, 2.0f, 1.0 - 2.0f);
printf("%g * %g = %g\n", 1.0, 2.0f, 1.0 * 2.0f);
printf("%g / %g = %g\n", 1.0, 2.0f, 1.0 / 2.0f);
printf("double op int:\n");
printf("%g + %d = %g\n", 1.0, 2, 1.0 + 2);
printf("%g - %d = %g\n", 1.0, 2, 1.0 - 2);
printf("%g * %d = %g\n", 1.0, 2, 1.0 * 2);
printf("%g / %d = %g\n", 1.0, 2, 1.0 / 2);
printf("int op double:\n");
printf("%d + %g = %g\n", 1, 2.0, 1 + 2.0);
printf("%d - %g = %g\n", 1, 2.0, 1 - 2.0);
printf("%d * %g = %g\n", 1, 2.0, 1 * 2.0);
printf("%d / %g = %g\n", 1, 2.0, 1 / 2.0);
}
void comparisonTestdd(double a, double b) {
printf("%g op %g: < %d <= %d == %d >= %d > %d != %d\n",
a, b, a < b, a <= b, a == b, a >= b, a > b, a != b);
}
void comparisonOpsdd() {
printf("double op double:\n");
comparisonTestdd(1.0, 2.0);
comparisonTestdd(1.0, 1.0);
comparisonTestdd(2.0, 1.0);
}
void comparisonTestdf(double a, float b) {
printf("%g op %g: < %d <= %d == %d >= %d > %d != %d\n",
a, b, a < b, a <= b, a == b, a >= b, a > b, a != b);
}
void comparisonOpsdf() {
printf("double op float:\n");
comparisonTestdf(1.0, 2.0f);
comparisonTestdf(1.0, 1.0f);
comparisonTestdf(2.0, 1.0f);
}
void comparisonTestff(float a, float b) {
printf("%g op %g: < %d <= %d == %d >= %d > %d != %d\n",
a, b, a < b, a <= b, a == b, a >= b, a > b, a != b);
}
void comparisonOpsff() {
printf("float op float:\n");
comparisonTestff(1.0f, 2.0f);
comparisonTestff(1.0f, 1.0f);
comparisonTestff(2.0f, 1.0f);
}
void comparisonTestid(int a, double b) {
printf("%d op %g: < %d <= %d == %d >= %d > %d != %d\n",
a, b, a < b, a <= b, a == b, a >= b, a > b, a != b);
}
void comparisonOpsid() {
printf("int op double:\n");
comparisonTestid(1, 2.0);
comparisonTestid(1, 1.0);
comparisonTestid(2, 1.0);
}
void comparisonTestdi(double a, int b) {
printf("%g op %d: < %d <= %d == %d >= %d > %d != %d\n",
a, b, a < b, a <= b, a == b, a >= b, a > b, a != b);
}
void comparisonOpsdi() {
printf("double op int:\n");
comparisonTestdi(1.0f, 2);
comparisonTestdi(1.0f, 1);
comparisonTestdi(2.0f, 1);
}
void comparisonOps() {
comparisonOpsdd();
comparisonOpsdf();
comparisonOpsff();
comparisonOpsid();
comparisonOpsdi();
}
int branch(double d) {
if (d) {
return 1;
}
return 0;
}
void testBranching() {
printf("branching: %d %d %d\n", branch(-1.0), branch(0.0), branch(1.0));
}
void testpassi(int a, int b, int c, int d, int e, int f, int g, int h, int i, int j, int k, int l) {
printf("testpassi: %d %d %d %d %d %d %d %d %d %d %d %d\n", a, b, c, d, e, f, g, h, i, j, k, l);
}
void testpassf(float a, float b, float c, float d, float e, float f, float g, float h, float i, float j, float k, float l) {
printf("testpassf: %g %g %g %g %g %g %g %g %g %g %g %g\n", a, b, c, d, e, f, g, h, i, j, k, l);
}
void testpassd(double a, double b, double c, double d, double e, double f, double g, double h, double i, double j, double k, double l) {
printf("testpassd: %g %g %g %g %g %g %g %g %g %g %g %g\n", a, b, c, d, e, f, g, h, i, j, k, l);
}
void testpassidf(int i, double d, float f) {
printf("testpassidf: %d %g %g\n", i, d, f);
}
void testParameterPassing() {
float x;
testpassi(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12);
testpassf(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12);
testpassd(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12);
testpassi(1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f, 10.0f, 11.0f, 12.0f);
testpassf(1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f, 10.0f, 11.0f, 12.0f);
testpassd(1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f, 10.0f, 11.0f, 12.0f);
testpassi(1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0);
testpassf(1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0);
testpassd(1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0);
testpassidf(1, 2.0, 3.0f);
}
int main() {
unaryOps();
binaryOps();
comparisonOps();
testBranching();
testParameterPassing();
return 0;
}
|
the_stack_data/182953812.c | /* PR rtl-optimization/57860 */
extern void abort (void);
int a, *b = &a, c, d, e, *f = &e, g, *h = &d, k[1] = { 1 };
int
foo (int p)
{
for (;; g++)
{
for (; c; c--);
*f = *h = p > ((0x1FFFFFFFFLL ^ a) & *b);
if (k[g])
return 0;
}
}
int
main ()
{
foo (1);
if (d != 1)
abort ();
return 0;
}
|
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.