#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, ...);
int main() {
  int n, i, r1_r2, r3_r4, k;
  float r1, r2, r3, r4, V, R1ol, R2ol;
  r1_r2 = 0;
  r3_r4 = 0;
  R1ol = 0;
  R2ol = 0;
  k = 1;
  do {
    printf("Give r1: ");
    scanf("%f", &r1);
    printf("Give r2: ");
    scanf("%f", &r2);
    printf("Give r3: ");
    scanf("%f", &r3);
    printf("Give r4: ");
    scanf("%f", &r4);
    if (r1 >= r3) {
      printf("Must r1<r3\n");
    }
    if (r2 >= r4) {
      printf("Must r2<r4\n");
    }
  } while (r1 >= r3 || r2 >= r4);
  do {
    printf("Enter n: ");
    scanf("%d", &n);
    if (n <= 0) {
      printf("n must be positive!\n");
    }
  } while (n <= 0);
  printf("Enter V: ");
  scanf("%f", &V);
  if ((r3 - r2) <= 0) {
    for (i = 1; i <= n; i++) {
      float R, i_max, i_ant;
      do {
        printf("Enter value of resistor: ");
        scanf("%f", &R);
        if (R < r1 || R > r4) {
          printf("Value of resistor must be at (%f , %f)U(%f , %f)\n", r1, r2,
                 r3, r4);
        }
      } while (R < r1 || R > r4);
      printf("Give maximum intensity: ");
      scanf("%f", &i_max);
      i_ant = (V / R);
      if (i_ant < i_max) {
        if (R >= r3 && R <= r2) {
          if (k % 2) {
            r1_r2++;
            R1ol += R;
            k++;
          } else {
            r3_r4++;
            R2ol += (1 / R);
            k++;
          }
        }
      } else if (R > r2 && R <= r4) {
        r3_r4++;
        R2ol += (1 / R);
      } else {
        r1_r2++;
        R1ol += R;
      }
    }
  } else {
    for (i = 1; i <= n; i++) {
      float R, i_max, i_ant;
      int k = 1;
      do {
        printf("Enter value of resistor: ");
        scanf("%f", &R);
        if (R < r1 || R > r4) {
          printf("Value must be at (%f , %f)U(%f , %f)\n", r1, r2, r3, r4);
        }
      } while (R < r1 || R > r4);
      printf("Give maximum intensity: ");
      scanf("%f", &i_max);
      i_ant = V / R;
      if (i_ant < i_max) {
        if (R >= r1 && R <= r2) {
          r1_r2++;
          R1ol += R;
        } else {
          r3_r4++;
          R2ol += (1 / R);
        }
      }
    }
  }
  printf("Team 1 has %d resistors.\n", r1_r2);
  printf("Team 2 has %d resistors.\n", r3_r4);
  printf("Total resistor of team 1 is:%f Ohm\n", R1ol);
  if (R2ol != 0)
    printf("Total resistor of team 2 is:%f Ohm\n\n", (1 / R2ol));
  else
    printf("Total resistor of team 2 is:0 Ohm\n\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x30(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x34(%rbp)
movl   $0x1,-0x18(%rbp)
lea    0xea9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xea5(%rip),%rdi
lea    -0x1c(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xe96(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe85(%rip),%rdi
lea    -0x20(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xe80(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe65(%rip),%rdi
lea    -0x24(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xe6a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe45(%rip),%rdi
lea    -0x28(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
movss  -0x1c(%rbp),%xmm0
ucomiss -0x24(%rbp),%xmm0
jb     11f1 <main+0xd1>
lea    0xe45(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x20(%rbp),%xmm0
ucomiss -0x28(%rbp),%xmm0
jb     120e <main+0xee>
lea    0xe34(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1213 <main+0xf3>
movss  -0x1c(%rbp),%xmm0
mov    $0x1,%al
ucomiss -0x24(%rbp),%xmm0
mov    %al,-0x51(%rbp)
jae    1236 <main+0x116>
movss  -0x20(%rbp),%xmm0
ucomiss -0x28(%rbp),%xmm0
setae  %al
mov    %al,-0x51(%rbp)
mov    -0x51(%rbp),%al
test   $0x1,%al
jne    1154 <main+0x34>
jmp    1246 <main+0x126>
lea    0xdfa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdf6(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
cmpl   $0x0,-0x8(%rbp)
jg     127e <main+0x15e>
lea    0xddd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1283 <main+0x163>
cmpl   $0x0,-0x8(%rbp)
jle    1246 <main+0x126>
lea    0xdd5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd6c(%rip),%rdi
lea    -0x2c(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
movss  -0x24(%rbp),%xmm1
subss  -0x20(%rbp),%xmm1
xorps  %xmm0,%xmm0
ucomiss %xmm1,%xmm0
jb     14d3 <main+0x3b3>
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     14ce <main+0x3ae>
jmp    12db <main+0x1bb>
lea    0xd91(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd1e(%rip),%rdi
lea    -0x38(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
movss  -0x38(%rbp),%xmm1
movss  -0x1c(%rbp),%xmm0
ucomiss %xmm1,%xmm0
ja     131d <main+0x1fd>
movss  -0x38(%rbp),%xmm0
ucomiss -0x28(%rbp),%xmm0
jbe    134f <main+0x22f>
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x20(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movss  -0x24(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
movss  -0x28(%rbp),%xmm3
cvtss2sd %xmm3,%xmm3
lea    0xd45(%rip),%rdi
mov    $0x4,%al
call   1030 <printf@plt>
jmp    1354 <main+0x234>
movss  -0x38(%rbp),%xmm1
movss  -0x1c(%rbp),%xmm0
mov    $0x1,%al
ucomiss %xmm1,%xmm0
mov    %al,-0x52(%rbp)
ja     137b <main+0x25b>
movss  -0x38(%rbp),%xmm0
ucomiss -0x28(%rbp),%xmm0
seta   %al
mov    %al,-0x52(%rbp)
mov    -0x52(%rbp),%al
test   $0x1,%al
jne    12db <main+0x1bb>
lea    0xd32(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc73(%rip),%rdi
lea    -0x3c(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
movss  -0x2c(%rbp),%xmm0
divss  -0x38(%rbp),%xmm0
movss  %xmm0,-0x40(%rbp)
movss  -0x40(%rbp),%xmm1
movss  -0x3c(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    1457 <main+0x337>
movss  -0x38(%rbp),%xmm0
ucomiss -0x24(%rbp),%xmm0
jb     1452 <main+0x332>
movss  -0x38(%rbp),%xmm1
movss  -0x20(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jb     1452 <main+0x332>
mov    -0x18(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     1424 <main+0x304>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
movss  -0x38(%rbp),%xmm0
addss  -0x30(%rbp),%xmm0
movss  %xmm0,-0x30(%rbp)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    144d <main+0x32d>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
movss  0xbcb(%rip),%xmm0
divss  -0x38(%rbp),%xmm0
addss  -0x34(%rbp),%xmm0
movss  %xmm0,-0x34(%rbp)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1452 <main+0x332>
jmp    14bb <main+0x39b>
movss  -0x38(%rbp),%xmm0
ucomiss -0x20(%rbp),%xmm0
jbe    149e <main+0x37e>
movss  -0x38(%rbp),%xmm1
movss  -0x28(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jb     149e <main+0x37e>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
movss  0xb76(%rip),%xmm0
divss  -0x38(%rbp),%xmm0
addss  -0x34(%rbp),%xmm0
movss  %xmm0,-0x34(%rbp)
jmp    14b6 <main+0x396>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
movss  -0x38(%rbp),%xmm0
addss  -0x30(%rbp),%xmm0
movss  %xmm0,-0x30(%rbp)
jmp    14bb <main+0x39b>
jmp    14c0 <main+0x3a0>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    12ca <main+0x1aa>
jmp    1656 <main+0x536>
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     1651 <main+0x531>
movl   $0x1,-0x50(%rbp)
lea    0xb7f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xb0c(%rip),%rdi
lea    -0x44(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
movss  -0x44(%rbp),%xmm1
movss  -0x1c(%rbp),%xmm0
ucomiss %xmm1,%xmm0
ja     152f <main+0x40f>
movss  -0x44(%rbp),%xmm0
ucomiss -0x28(%rbp),%xmm0
jbe    1561 <main+0x441>
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x20(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movss  -0x24(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
movss  -0x28(%rbp),%xmm3
cvtss2sd %xmm3,%xmm3
lea    0xb7e(%rip),%rdi
mov    $0x4,%al
call   1030 <printf@plt>
jmp    1566 <main+0x446>
movss  -0x44(%rbp),%xmm1
movss  -0x1c(%rbp),%xmm0
mov    $0x1,%al
ucomiss %xmm1,%xmm0
mov    %al,-0x53(%rbp)
ja     158d <main+0x46d>
movss  -0x44(%rbp),%xmm0
ucomiss -0x28(%rbp),%xmm0
seta   %al
mov    %al,-0x53(%rbp)
mov    -0x53(%rbp),%al
test   $0x1,%al
jne    14ed <main+0x3cd>
lea    0xb20(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xa61(%rip),%rdi
lea    -0x48(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
movss  -0x2c(%rbp),%xmm0
divss  -0x44(%rbp),%xmm0
movss  %xmm0,-0x4c(%rbp)
movss  -0x4c(%rbp),%xmm1
movss  -0x48(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    163e <main+0x51e>
movss  -0x44(%rbp),%xmm0
ucomiss -0x1c(%rbp),%xmm0
jb     1619 <main+0x4f9>
movss  -0x44(%rbp),%xmm1
movss  -0x20(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jb     1619 <main+0x4f9>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
movss  -0x44(%rbp),%xmm0
addss  -0x30(%rbp),%xmm0
movss  %xmm0,-0x30(%rbp)
jmp    1639 <main+0x519>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
movss  0x9d6(%rip),%xmm0
divss  -0x44(%rbp),%xmm0
addss  -0x34(%rbp),%xmm0
movss  %xmm0,-0x34(%rbp)
jmp    163e <main+0x51e>
jmp    1643 <main+0x523>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    14da <main+0x3ba>
jmp    1656 <main+0x536>
mov    -0x10(%rbp),%esi
lea    0xa9e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
lea    0xaa7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x30(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xaaa(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x34(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    16ab <main+0x58b>
jp     16ab <main+0x58b>
jmp    16cf <main+0x5af>
movss  0x94d(%rip),%xmm0
divss  -0x34(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xa93(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    16dd <main+0x5bd>
lea    0xaa5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
lea    0xec9(%rip),%rbp
lea    0x10(%rsp),%r13
lea    0xeca(%rip),%rbx
lea    0x24(%rsp),%r14
lea    0xec8(%rip),%r15
lea    0x1c(%rsp),%r12
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    0xe8d(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rdi
lea    0x20(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
lea    0xe7d(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
movss  0x20(%rsp),%xmm0
ucomiss 0x24(%rsp),%xmm0
jb     11ef <main+0xbf>
lea    0xfa6(%rip),%rdi
call   1030 <puts@plt>
movss  0x10(%rsp),%xmm0
movss  0x1c(%rsp),%xmm1
ucomiss %xmm1,%xmm0
jb     1218 <main+0xe8>
lea    0xf7e(%rip),%rdi
call   1030 <puts@plt>
movss  0x10(%rsp),%xmm0
movss  0x1c(%rsp),%xmm1
movss  0x20(%rsp),%xmm2
ucomiss 0x24(%rsp),%xmm2
jae    1170 <main+0x40>
ucomiss %xmm1,%xmm0
jae    1170 <main+0x40>
lea    0xdf6(%rip),%r14
lea    0xdf9(%rip),%r15
lea    0x28(%rsp),%rbx
lea    0xf25(%rip),%rbp
nopl   0x0(%rax)
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
cmpl   $0x0,0x28(%rsp)
jg     127d <main+0x14d>
mov    %rbp,%rdi
call   1030 <puts@plt>
cmpl   $0x0,0x28(%rsp)
jle    1250 <main+0x120>
lea    0xdb8(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd7c(%rip),%rdi
lea    0x34(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
movss  0x24(%rsp),%xmm0
subss  0x10(%rsp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm0,%xmm1
mov    0x28(%rsp),%eax
xorps  %xmm0,%xmm0
jae    1452 <main+0x322>
movss  %xmm0,0xc(%rsp)
movl   $0x0,0x14(%rsp)
xorps  %xmm0,%xmm0
mov    $0x0,%r15d
test   %eax,%eax
jle    166a <main+0x53a>
xorps  %xmm0,%xmm0
mov    $0x1,%r14d
lea    0xd5a(%rip),%r12
lea    0xd1b(%rip),%rbp
lea    0x18(%rsp),%rbx
lea    0xdac(%rip),%r13
xor    %r15d,%r15d
movl   $0x0,0x14(%rsp)
xorps  %xmm1,%xmm1
movss  %xmm1,0xc(%rsp)
jmp    134c <main+0x21c>
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%r15d
movss  0xc(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0xc(%rsp)
movss  0x8(%rsp),%xmm0
lea    0x1(%r14),%eax
cmp    0x28(%rsp),%r14d
mov    %eax,%r14d
jge    166a <main+0x53a>
movss  %xmm0,0x8(%rsp)
jmp    13a5 <main+0x275>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
movss  0x10(%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
movss  0x24(%rsp),%xmm2
cvtss2sd %xmm2,%xmm2
cvtss2sd %xmm3,%xmm3
mov    %r13,%rdi
mov    $0x4,%al
call   1040 <printf@plt>
movss  0x18(%rsp),%xmm0
movss  0x20(%rsp),%xmm1
movss  0x1c(%rsp),%xmm3
ucomiss %xmm0,%xmm1
ja     13a5 <main+0x275>
ucomiss %xmm3,%xmm0
jbe    13e0 <main+0x2b0>
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
movss  0x18(%rsp),%xmm0
movss  0x20(%rsp),%xmm1
ucomiss %xmm0,%xmm1
movss  0x1c(%rsp),%xmm3
ja     1360 <main+0x230>
ucomiss %xmm3,%xmm0
ja     1360 <main+0x230>
ucomiss %xmm0,%xmm1
jbe    13a0 <main+0x270>
jmp    13a5 <main+0x275>
nop
lea    0xcab(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rdi
lea    0x30(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
movss  0x34(%rsp),%xmm1
movss  0x18(%rsp),%xmm0
divss  %xmm0,%xmm1
movss  0x30(%rsp),%xmm2
ucomiss %xmm1,%xmm2
jbe    1334 <main+0x204>
ucomiss 0x20(%rsp),%xmm0
jb     1432 <main+0x302>
movss  0x10(%rsp),%xmm1
ucomiss %xmm0,%xmm1
jae    1320 <main+0x1f0>
addl   $0x1,0x14(%rsp)
movss  0xbc1(%rip),%xmm1
divss  %xmm0,%xmm1
movss  0x8(%rsp),%xmm0
addss  %xmm1,%xmm0
jmp    133a <main+0x20a>
movss  %xmm0,0xc(%rsp)
movl   $0x0,0x14(%rsp)
xorps  %xmm0,%xmm0
mov    $0x0,%r15d
test   %eax,%eax
jle    166a <main+0x53a>
xorps  %xmm0,%xmm0
mov    $0x1,%r14d
lea    0xbc5(%rip),%r12
lea    0xb86(%rip),%rbp
lea    0x18(%rsp),%rbx
lea    0xbcc(%rip),%r13
xor    %r15d,%r15d
movl   $0x0,0x14(%rsp)
xorps  %xmm1,%xmm1
movss  %xmm1,0xc(%rsp)
movl   $0x1,0x2c(%rsp)
jmp    14ec <main+0x3bc>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x1,%r15d
movss  0xc(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0xc(%rsp)
movss  0x8(%rsp),%xmm0
lea    0x1(%r14),%eax
cmp    0x28(%rsp),%r14d
mov    %eax,%r14d
jge    166a <main+0x53a>
movss  %xmm0,0x8(%rsp)
jmp    1545 <main+0x415>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
movss  0x10(%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
movss  0x24(%rsp),%xmm2
cvtss2sd %xmm2,%xmm2
cvtss2sd %xmm3,%xmm3
mov    %r13,%rdi
mov    $0x4,%al
call   1040 <printf@plt>
movss  0x18(%rsp),%xmm0
movss  0x20(%rsp),%xmm1
movss  0x1c(%rsp),%xmm3
ucomiss %xmm0,%xmm1
ja     1545 <main+0x415>
ucomiss %xmm3,%xmm0
jbe    1580 <main+0x450>
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
movss  0x18(%rsp),%xmm0
movss  0x20(%rsp),%xmm1
ucomiss %xmm0,%xmm1
movss  0x1c(%rsp),%xmm3
ja     1500 <main+0x3d0>
ucomiss %xmm3,%xmm0
ja     1500 <main+0x3d0>
ucomiss %xmm0,%xmm1
jbe    1540 <main+0x410>
jmp    1545 <main+0x415>
nop
lea    0xb0b(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rdi
lea    0x30(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
movss  0x34(%rsp),%xmm1
movss  0x18(%rsp),%xmm0
divss  %xmm0,%xmm1
movss  0x30(%rsp),%xmm2
ucomiss %xmm1,%xmm2
jbe    1610 <main+0x4e0>
ucomiss 0x24(%rsp),%xmm0
mov    0x2c(%rsp),%eax
jb     14d4 <main+0x3a4>
movss  0x10(%rsp),%xmm1
ucomiss %xmm0,%xmm1
jb     14d4 <main+0x3a4>
test   $0x1,%al
jne    164a <main+0x51a>
addl   $0x1,0x14(%rsp)
movss  0xa19(%rip),%xmm1
divss  %xmm0,%xmm1
movss  0x8(%rsp),%xmm0
addss  %xmm1,%xmm0
add    $0x1,%eax
mov    %eax,0x2c(%rsp)
jmp    14da <main+0x3aa>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
ucomiss 0x10(%rsp),%xmm0
jbe    14c0 <main+0x390>
movss  0x1c(%rsp),%xmm1
ucomiss %xmm0,%xmm1
jb     14c0 <main+0x390>
addl   $0x1,0x14(%rsp)
movss  0x9c9(%rip),%xmm1
divss  %xmm0,%xmm1
movss  0x8(%rsp),%xmm0
addss  %xmm1,%xmm0
jmp    14da <main+0x3aa>
add    $0x1,%r15d
movss  0xc(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0xc(%rsp)
add    $0x1,%eax
mov    %eax,0x2c(%rsp)
jmp    14d4 <main+0x3a4>
movss  %xmm0,0x8(%rsp)
lea    0xa5a(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xa63(%rip),%rdi
mov    0x14(%rsp),%esi
xor    %eax,%eax
call   1040 <printf@plt>
movss  0xc(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xa61(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x8(%rsp),%xmm1
xorps  %xmm0,%xmm0
ucomiss %xmm0,%xmm1
jne    16bb <main+0x58b>
jnp    16db <main+0x5ab>
movss  0x93d(%rip),%xmm0
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xa57(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    16e7 <main+0x5b7>
lea    0xa6c(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [10 x i8] c"Give r1: \00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [10 x i8] c"Give r2: \00"
@.str.3 = [10 x i8] c"Give r3: \00"
@.str.4 = [10 x i8] c"Give r4: \00"
@.str.5 = [12 x i8] c"Must r1<r3\0A\00"
@.str.6 = [12 x i8] c"Must r2<r4\0A\00"
@.str.7 = [10 x i8] c"Enter n: \00"
@.str.8 = [3 x i8] c"%d\00"
@.str.9 = [21 x i8] c"n must be positive!\0A\00"
@.str.10 = [10 x i8] c"Enter V: \00"
@.str.11 = [26 x i8] c"Enter value of resistor: \00"
@.str.12 = [50 x i8] c"Value of resistor must be at (%f , %f)U(%f , %f)\0A\00"
@.str.13 = [25 x i8] c"Give maximum intensity: \00"
@.str.14 = [38 x i8] c"Value must be at (%f , %f)U(%f , %f)\0A\00"
@.str.15 = [26 x i8] c"Team 1 has %d resistors.\0A\00"
@.str.16 = [26 x i8] c"Team 2 has %d resistors.\0A\00"
@.str.17 = [36 x i8] c"Total resistor of team 1 is:%f Ohm\0A\00"
@.str.18 = [37 x i8] c"Total resistor of team 2 is:%f Ohm\0A\0A\00"
@.str.19 = [36 x i8] c"Total resistor of team 2 is:0 Ohm\0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
%12 = alloca float
%13 = alloca float
%14 = alloca float
%15 = alloca float
%16 = alloca float
%17 = alloca float
%18 = alloca float
%19 = alloca float
%20 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %4
store i32 0, i32* %5
store float 0.000000e+00, float* %12
store float 0.000000e+00, float* %13
store i32 1, i32* %6
br label %21
21: ; preds = %50, %0
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%23 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %7)
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%25 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %8)
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%27 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %9)
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%29 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %10)
%30 = load float, float* %7
%31 = load float, float* %9
%32 = fcmp oge float %30, %31
br i1 %32, label %33, label %35
33: ; preds = %21
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
br label %35
35: ; preds = %33, %21
%36 = load float, float* %8
%37 = load float, float* %10
%38 = fcmp oge float %36, %37
br i1 %38, label %39, label %41
39: ; preds = %35
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
br label %41
41: ; preds = %39, %35
br label %42
42: ; preds = %41
%43 = load float, float* %7
%44 = load float, float* %9
%45 = fcmp oge float %43, %44
br i1 %45, label %50, label %46
46: ; preds = %42
%47 = load float, float* %8
%48 = load float, float* %10
%49 = fcmp oge float %47, %48
br label %50
50: ; preds = %46, %42
%51 = phi i1 [ true, %42 ], [ %49, %46 ]
br i1 %51, label %21, label %52
52: ; preds = %50
br label %53
53: ; preds = %61, %52
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
%55 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32* %2)
%56 = load i32, i32* %2
%57 = icmp sle i32 %56, 0
br i1 %57, label %58, label %60
58: ; preds = %53
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0))
br label %60
60: ; preds = %58, %53
br label %61
61: ; preds = %60
%62 = load i32, i32* %2
%63 = icmp sle i32 %62, 0
br i1 %63, label %53, label %64
64: ; preds = %61
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0))
%66 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %11)
%67 = load float, float* %9
%68 = load float, float* %8
%69 = fsub float %67, %68
%70 = fcmp ole float %69, 0.000000e+00
br i1 %70, label %71, label %175
71: ; preds = %64
store i32 1, i32* %3
br label %72
72: ; preds = %171, %71
%73 = load i32, i32* %3
%74 = load i32, i32* %2
%75 = icmp sle i32 %73, %74
br i1 %75, label %76, label %174
76: ; preds = %72
br label %77
77: ; preds = %106, %76
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.11, i64 0, i64 0))
%79 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %14)
%80 = load float, float* %14
%81 = load float, float* %7
%82 = fcmp olt float %80, %81
br i1 %82, label %87, label %83
83: ; preds = %77
%84 = load float, float* %14
%85 = load float, float* %10
%86 = fcmp ogt float %84, %85
br i1 %86, label %87, label %97
87: ; preds = %83, %77
%88 = load float, float* %7
%89 = fpext float %88 to double
%90 = load float, float* %8
%91 = fpext float %90 to double
%92 = load float, float* %9
%93 = fpext float %92 to double
%94 = load float, float* %10
%95 = fpext float %94 to double
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.12, i64 0, i64 0), double %89, double %91, double %93, double %95)
br label %97
97: ; preds = %87, %83
br label %98
98: ; preds = %97
%99 = load float, float* %14
%100 = load float, float* %7
%101 = fcmp olt float %99, %100
br i1 %101, label %106, label %102
102: ; preds = %98
%103 = load float, float* %14
%104 = load float, float* %10
%105 = fcmp ogt float %103, %104
br label %106
106: ; preds = %102, %98
%107 = phi i1 [ true, %98 ], [ %105, %102 ]
br i1 %107, label %77, label %108
108: ; preds = %106
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.13, i64 0, i64 0))
%110 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %15)
%111 = load float, float* %11
%112 = load float, float* %14
%113 = fdiv float %111, %112
store float %113, float* %16
%114 = load float, float* %16
%115 = load float, float* %15
%116 = fcmp olt float %114, %115
br i1 %116, label %117, label %148
117: ; preds = %108
%118 = load float, float* %14
%119 = load float, float* %9
%120 = fcmp oge float %118, %119
br i1 %120, label %121, label %147
121: ; preds = %117
%122 = load float, float* %14
%123 = load float, float* %8
%124 = fcmp ole float %122, %123
br i1 %124, label %125, label %147
125: ; preds = %121
%126 = load i32, i32* %6
%127 = srem i32 %126, 2
%128 = icmp ne i32 %127, 0
br i1 %128, label %129, label %137
129: ; preds = %125
%130 = load i32, i32* %4
%131 = add nsw i32 %130, 1
store i32 %131, i32* %4
%132 = load float, float* %14
%133 = load float, float* %12
%134 = fadd float %133, %132
store float %134, float* %12
%135 = load i32, i32* %6
%136 = add nsw i32 %135, 1
store i32 %136, i32* %6
br label %146
137: ; preds = %125
%138 = load i32, i32* %5
%139 = add nsw i32 %138, 1
store i32 %139, i32* %5
%140 = load float, float* %14
%141 = fdiv float 1.000000e+00, %140
%142 = load float, float* %13
%143 = fadd float %142, %141
store float %143, float* %13
%144 = load i32, i32* %6
%145 = add nsw i32 %144, 1
store i32 %145, i32* %6
br label %146
146: ; preds = %137, %129
br label %147
147: ; preds = %146, %121, %117
br label %170
148: ; preds = %108
%149 = load float, float* %14
%150 = load float, float* %8
%151 = fcmp ogt float %149, %150
br i1 %151, label %152, label %163
152: ; preds = %148
%153 = load float, float* %14
%154 = load float, float* %10
%155 = fcmp ole float %153, %154
br i1 %155, label %156, label %163
156: ; preds = %152
%157 = load i32, i32* %5
%158 = add nsw i32 %157, 1
store i32 %158, i32* %5
%159 = load float, float* %14
%160 = fdiv float 1.000000e+00, %159
%161 = load float, float* %13
%162 = fadd float %161, %160
store float %162, float* %13
br label %169
163: ; preds = %152, %148
%164 = load i32, i32* %4
%165 = add nsw i32 %164, 1
store i32 %165, i32* %4
%166 = load float, float* %14
%167 = load float, float* %12
%168 = fadd float %167, %166
store float %168, float* %12
br label %169
169: ; preds = %163, %156
br label %170
170: ; preds = %169, %147
br label %171
171: ; preds = %170
%172 = load i32, i32* %3
%173 = add nsw i32 %172, 1
store i32 %173, i32* %3
br label %72
174: ; preds = %72
br label %248
175: ; preds = %64
store i32 1, i32* %3
br label %176
176: ; preds = %244, %175
%177 = load i32, i32* %3
%178 = load i32, i32* %2
%179 = icmp sle i32 %177, %178
br i1 %179, label %180, label %247
180: ; preds = %176
store i32 1, i32* %20
br label %181
181: ; preds = %210, %180
%182 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.11, i64 0, i64 0))
%183 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %17)
%184 = load float, float* %17
%185 = load float, float* %7
%186 = fcmp olt float %184, %185
br i1 %186, label %191, label %187
187: ; preds = %181
%188 = load float, float* %17
%189 = load float, float* %10
%190 = fcmp ogt float %188, %189
br i1 %190, label %191, label %201
191: ; preds = %187, %181
%192 = load float, float* %7
%193 = fpext float %192 to double
%194 = load float, float* %8
%195 = fpext float %194 to double
%196 = load float, float* %9
%197 = fpext float %196 to double
%198 = load float, float* %10
%199 = fpext float %198 to double
%200 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.14, i64 0, i64 0), double %193, double %195, double %197, double %199)
br label %201
201: ; preds = %191, %187
br label %202
202: ; preds = %201
%203 = load float, float* %17
%204 = load float, float* %7
%205 = fcmp olt float %203, %204
br i1 %205, label %210, label %206
206: ; preds = %202
%207 = load float, float* %17
%208 = load float, float* %10
%209 = fcmp ogt float %207, %208
br label %210
210: ; preds = %206, %202
%211 = phi i1 [ true, %202 ], [ %209, %206 ]
br i1 %211, label %181, label %212
212: ; preds = %210
%213 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.13, i64 0, i64 0))
%214 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %18)
%215 = load float, float* %11
%216 = load float, float* %17
%217 = fdiv float %215, %216
store float %217, float* %19
%218 = load float, float* %19
%219 = load float, float* %18
%220 = fcmp olt float %218, %219
br i1 %220, label %221, label %243
221: ; preds = %212
%222 = load float, float* %17
%223 = load float, float* %7
%224 = fcmp oge float %222, %223
br i1 %224, label %225, label %235
225: ; preds = %221
%226 = load float, float* %17
%227 = load float, float* %8
%228 = fcmp ole float %226, %227
br i1 %228, label %229, label %235
229: ; preds = %225
%230 = load i32, i32* %4
%231 = add nsw i32 %230, 1
store i32 %231, i32* %4
%232 = load float, float* %17
%233 = load float, float* %12
%234 = fadd float %233, %232
store float %234, float* %12
br label %242
235: ; preds = %225, %221
%236 = load i32, i32* %5
%237 = add nsw i32 %236, 1
store i32 %237, i32* %5
%238 = load float, float* %17
%239 = fdiv float 1.000000e+00, %238
%240 = load float, float* %13
%241 = fadd float %240, %239
store float %241, float* %13
br label %242
242: ; preds = %235, %229
br label %243
243: ; preds = %242, %212
br label %244
244: ; preds = %243
%245 = load i32, i32* %3
%246 = add nsw i32 %245, 1
store i32 %246, i32* %3
br label %176
247: ; preds = %176
br label %248
248: ; preds = %247, %174
%249 = load i32, i32* %4
%250 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.15, i64 0, i64 0), i32 %249)
%251 = load i32, i32* %5
%252 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.16, i64 0, i64 0), i32 %251)
%253 = load float, float* %12
%254 = fpext float %253 to double
%255 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.17, i64 0, i64 0), double %254)
%256 = load float, float* %13
%257 = fcmp une float %256, 0.000000e+00
br i1 %257, label %258, label %263
258: ; preds = %248
%259 = load float, float* %13
%260 = fdiv float 1.000000e+00, %259
%261 = fpext float %260 to double
%262 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.18, i64 0, i64 0), double %261)
br label %265
263: ; preds = %248
%264 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.19, i64 0, i64 0))
br label %265
265: ; preds = %263, %258
ret i32 0
}

LLVM IR (-O2):
@.str = [10 x i8] c"Give r1: \00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [10 x i8] c"Give r2: \00"
@.str.3 = [10 x i8] c"Give r3: \00"
@.str.4 = [10 x i8] c"Give r4: \00"
@.str.7 = [10 x i8] c"Enter n: \00"
@.str.8 = [3 x i8] c"%d\00"
@.str.10 = [10 x i8] c"Enter V: \00"
@.str.11 = [26 x i8] c"Enter value of resistor: \00"
@.str.12 = [50 x i8] c"Value of resistor must be at (%f , %f)U(%f , %f)\0A\00"
@.str.13 = [25 x i8] c"Give maximum intensity: \00"
@.str.14 = [38 x i8] c"Value must be at (%f , %f)U(%f , %f)\0A\00"
@.str.15 = [26 x i8] c"Team 1 has %d resistors.\0A\00"
@.str.16 = [26 x i8] c"Team 2 has %d resistors.\0A\00"
@.str.17 = [36 x i8] c"Total resistor of team 1 is:%f Ohm\0A\00"
@.str.18 = [37 x i8] c"Total resistor of team 2 is:%f Ohm\0A\0A\00"
@str = [35 x i8] c"Total resistor of team 2 is:0 Ohm\0A\00"
@str.20 = [20 x i8] c"n must be positive!\00"
@str.21 = [11 x i8] c"Must r2<r4\00"
@str.22 = [11 x i8] c"Must r1<r3\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = bitcast i32* %1 to i8*
%12 = bitcast float* %2 to i8*
%13 = bitcast float* %3 to i8*
%14 = bitcast float* %4 to i8*
%15 = bitcast float* %5 to i8*
%16 = bitcast float* %6 to i8*
br label %17
17: ; preds = %39, %0
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%19 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %2)
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%21 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %3)
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%23 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %4)
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%25 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %5)
%26 = load float, float* %2
%27 = load float, float* %4
%28 = fcmp ult float %26, %27
br i1 %28, label %31, label %29
29: ; preds = %17
%30 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.22, i64 0, i64 0))
br label %31
31: ; preds = %29, %17
%32 = load float, float* %3
%33 = load float, float* %5
%34 = fcmp ult float %32, %33
br i1 %34, label %39, label %35
35: ; preds = %31
%36 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.21, i64 0, i64 0))
%37 = load float, float* %3
%38 = load float, float* %5
br label %39
39: ; preds = %31, %35
%40 = phi float [ %33, %31 ], [ %38, %35 ]
%41 = phi float [ %32, %31 ], [ %37, %35 ]
%42 = load float, float* %2
%43 = load float, float* %4
%44 = fcmp oge float %42, %43
%45 = fcmp oge float %41, %40
%46 = select i1 %44, i1 true, i1 %45
br i1 %46, label %17, label %47
47: ; preds = %39, %52
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
%49 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32* %1)
%50 = load i32, i32* %1
%51 = icmp slt i32 %50, 1
br i1 %51, label %52, label %56
52: ; preds = %47
%53 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.20, i64 0, i64 0))
%54 = load i32, i32* %1
%55 = icmp slt i32 %54, 1
br i1 %55, label %47, label %56
56: ; preds = %47, %52
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0))
%58 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %6)
%59 = load float, float* %4
%60 = load float, float* %3
%61 = fsub float %59, %60
%62 = fcmp ugt float %61, 0.000000e+00
%63 = load i32, i32* %1
%64 = icmp slt i32 %63, 1
br i1 %62, label %69, label %65
65: ; preds = %56
br i1 %64, label %217, label %66
66: ; preds = %65
%67 = bitcast float* %7 to i8*
%68 = bitcast float* %8 to i8*
br label %73
69: ; preds = %56
br i1 %64, label %217, label %70
70: ; preds = %69
%71 = bitcast float* %9 to i8*
%72 = bitcast float* %10 to i8*
br label %155
73: ; preds = %66, %146
%74 = phi i32 [ 1, %66 ], [ %152, %146 ]
%75 = phi i32 [ 0, %66 ], [ %151, %146 ]
%76 = phi i32 [ 0, %66 ], [ %150, %146 ]
%77 = phi float [ 0.000000e+00, %66 ], [ %149, %146 ]
%78 = phi float [ 0.000000e+00, %66 ], [ %148, %146 ]
%79 = phi i32 [ 1, %66 ], [ %147, %146 ]
br label %80
80: ; preds = %100, %73
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.11, i64 0, i64 0))
%82 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %7)
%83 = load float, float* %7
%84 = load float, float* %2
%85 = fcmp olt float %83, %84
%86 = load float, float* %5
%87 = fcmp ogt float %83, %86
%88 = select i1 %85, i1 true, i1 %87
br i1 %88, label %89, label %100
89: ; preds = %80
%90 = fpext float %84 to double
%91 = load float, float* %3
%92 = fpext float %91 to double
%93 = load float, float* %4
%94 = fpext float %93 to double
%95 = fpext float %86 to double
%96 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.12, i64 0, i64 0), double %90, double %92, double %94, double %95)
%97 = load float, float* %7
%98 = load float, float* %2
%99 = load float, float* %5
br label %100
100: ; preds = %80, %89
%101 = phi float [ %86, %80 ], [ %99, %89 ]
%102 = phi float [ %84, %80 ], [ %98, %89 ]
%103 = phi float [ %83, %80 ], [ %97, %89 ]
%104 = fcmp olt float %103, %102
%105 = fcmp ogt float %103, %101
%106 = select i1 %104, i1 true, i1 %105
br i1 %106, label %80, label %107
107: ; preds = %100
%108 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.13, i64 0, i64 0))
%109 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %8)
%110 = load float, float* %6
%111 = load float, float* %7
%112 = fdiv float %110, %111
%113 = load float, float* %8
%114 = fcmp olt float %112, %113
br i1 %114, label %115, label %133
115: ; preds = %107
%116 = load float, float* %4
%117 = fcmp ult float %111, %116
%118 = load float, float* %3
%119 = fcmp ugt float %111, %118
%120 = select i1 %117, i1 true, i1 %119
br i1 %120, label %146, label %121
121: ; preds = %115
%122 = and i32 %79, 1
%123 = icmp eq i32 %122, 0
br i1 %123, label %128, label %124
124: ; preds = %121
%125 = add nsw i32 %75, 1
%126 = fadd float %78, %111
%127 = add nsw i32 %79, 1
br label %146
128: ; preds = %121
%129 = add nsw i32 %76, 1
%130 = fdiv float 1.000000e+00, %111
%131 = fadd float %77, %130
%132 = add nuw nsw i32 %79, 1
br label %146
133: ; preds = %107
%134 = load float, float* %3
%135 = fcmp ule float %111, %134
%136 = load float, float* %5
%137 = fcmp ugt float %111, %136
%138 = select i1 %135, i1 true, i1 %137
br i1 %138, label %143, label %139
139: ; preds = %133
%140 = add nsw i32 %76, 1
%141 = fdiv float 1.000000e+00, %111
%142 = fadd float %77, %141
br label %146
143: ; preds = %133
%144 = add nsw i32 %75, 1
%145 = fadd float %78, %111
br label %146
146: ; preds = %139, %143, %115, %128, %124
%147 = phi i32 [ %127, %124 ], [ %132, %128 ], [ %79, %115 ], [ %79, %139 ], [ %79, %143 ]
%148 = phi float [ %126, %124 ], [ %78, %128 ], [ %78, %115 ], [ %78, %139 ], [ %145, %143 ]
%149 = phi float [ %77, %124 ], [ %131, %128 ], [ %77, %115 ], [ %142, %139 ], [ %77, %143 ]
%150 = phi i32 [ %76, %124 ], [ %129, %128 ], [ %76, %115 ], [ %140, %139 ], [ %76, %143 ]
%151 = phi i32 [ %125, %124 ], [ %75, %128 ], [ %75, %115 ], [ %75, %139 ], [ %144, %143 ]
%152 = add nuw nsw i32 %74, 1
%153 = load i32, i32* %1
%154 = icmp slt i32 %74, %153
br i1 %154, label %73, label %217
155: ; preds = %70, %209
%156 = phi i32 [ 1, %70 ], [ %214, %209 ]
%157 = phi i32 [ 0, %70 ], [ %213, %209 ]
%158 = phi i32 [ 0, %70 ], [ %212, %209 ]
%159 = phi float [ 0.000000e+00, %70 ], [ %211, %209 ]
%160 = phi float [ 0.000000e+00, %70 ], [ %210, %209 ]
br label %161
161: ; preds = %181, %155
%162 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.11, i64 0, i64 0))
%163 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %9)
%164 = load float, float* %9
%165 = load float, float* %2
%166 = fcmp olt float %164, %165
%167 = load float, float* %5
%168 = fcmp ogt float %164, %167
%169 = select i1 %166, i1 true, i1 %168
br i1 %169, label %170, label %181
170: ; preds = %161
%171 = fpext float %165 to double
%172 = load float, float* %3
%173 = fpext float %172 to double
%174 = load float, float* %4
%175 = fpext float %174 to double
%176 = fpext float %167 to double
%177 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.14, i64 0, i64 0), double %171, double %173, double %175, double %176)
%178 = load float, float* %9
%179 = load float, float* %2
%180 = load float, float* %5
br label %181
181: ; preds = %161, %170
%182 = phi float [ %167, %161 ], [ %180, %170 ]
%183 = phi float [ %165, %161 ], [ %179, %170 ]
%184 = phi float [ %164, %161 ], [ %178, %170 ]
%185 = fcmp olt float %184, %183
%186 = fcmp ogt float %184, %182
%187 = select i1 %185, i1 true, i1 %186
br i1 %187, label %161, label %188
188: ; preds = %181
%189 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.13, i64 0, i64 0))
%190 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %10)
%191 = load float, float* %6
%192 = load float, float* %9
%193 = fdiv float %191, %192
%194 = load float, float* %10
%195 = fcmp olt float %193, %194
br i1 %195, label %196, label %209
196: ; preds = %188
%197 = load float, float* %2
%198 = fcmp ult float %192, %197
%199 = load float, float* %3
%200 = fcmp ugt float %192, %199
%201 = select i1 %198, i1 true, i1 %200
br i1 %201, label %205, label %202
202: ; preds = %196
%203 = add nsw i32 %157, 1
%204 = fadd float %160, %192
br label %209
205: ; preds = %196
%206 = add nsw i32 %158, 1
%207 = fdiv float 1.000000e+00, %192
%208 = fadd float %159, %207
br label %209
209: ; preds = %202, %205, %188
%210 = phi float [ %204, %202 ], [ %160, %205 ], [ %160, %188 ]
%211 = phi float [ %159, %202 ], [ %208, %205 ], [ %159, %188 ]
%212 = phi i32 [ %158, %202 ], [ %206, %205 ], [ %158, %188 ]
%213 = phi i32 [ %203, %202 ], [ %157, %205 ], [ %157, %188 ]
%214 = add nuw nsw i32 %156, 1
%215 = load i32, i32* %1
%216 = icmp slt i32 %156, %215
br i1 %216, label %155, label %217
217: ; preds = %146, %209, %65, %69
%218 = phi float [ 0.000000e+00, %69 ], [ 0.000000e+00, %65 ], [ %210, %209 ], [ %148, %146 ]
%219 = phi float [ 0.000000e+00, %69 ], [ 0.000000e+00, %65 ], [ %211, %209 ], [ %149, %146 ]
%220 = phi i32 [ 0, %69 ], [ 0, %65 ], [ %212, %209 ], [ %150, %146 ]
%221 = phi i32 [ 0, %69 ], [ 0, %65 ], [ %213, %209 ], [ %151, %146 ]
%222 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.15, i64 0, i64 0), i32 %221)
%223 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.16, i64 0, i64 0), i32 %220)
%224 = fpext float %218 to double
%225 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.17, i64 0, i64 0), double %224)
%226 = fcmp une float %219, 0.000000e+00
br i1 %226, label %227, label %231
227: ; preds = %217
%228 = fdiv float 1.000000e+00, %219
%229 = fpext float %228 to double
%230 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.18, i64 0, i64 0), double %229)
br label %233
231: ; preds = %217
%232 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str, i64 0, i64 0))
br label %233
233: ; preds = %231, %227
ret i32 0
}