#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() {
  float peso, salario;
  char sexo;
  int i;
  float media_peso, soma_peso = 0;
  float media_sal_h, soma_sal_h = 0;
  int i_peso = 0, i_sal_h = 0;
  for (i = 1; i <= 4; i++) {
    printf("\n Entre com Peso:");
    scanf("%f", &peso);
    printf("\n Entre com salario:");
    scanf("%f", &salario);
    printf("\n Entre com sexo:");
    scanf(" %c", &sexo);
    if (sexo == 'm') {
      if ((salario >= 1000) && (salario <= 3000)) {
        soma_sal_h = soma_sal_h + salario;
        i_sal_h++;
      }
    } else {
      if (peso > 50) {
        soma_peso = soma_peso + salario;
        i_peso++;
      }
    }
  }
  printf("\n media_sal_h = %f", (float)soma_sal_h / i_sal_h);
  printf("\n soma_peso = %f", (float)soma_peso / i_peso);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x1c(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x1,-0x14(%rbp)
cmpl   $0x4,-0x14(%rbp)
jg     1256 <main+0x136>
lea    0xea7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee6(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xe99(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec6(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xe8e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe92(%rip),%rdi
lea    -0xd(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
movsbl -0xd(%rbp),%eax
cmp    $0x6d,%eax
jne    1210 <main+0xf0>
movss  -0xc(%rbp),%xmm0
movss  0xe2c(%rip),%xmm1
ucomiss %xmm1,%xmm0
jb     120b <main+0xeb>
movss  0xe1f(%rip),%xmm0
ucomiss -0xc(%rbp),%xmm0
jb     120b <main+0xeb>
movss  -0x24(%rbp),%xmm0
addss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x24(%rbp)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1243 <main+0x123>
movss  -0x8(%rbp),%xmm0
movss  0xde3(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    123e <main+0x11e>
movss  -0x1c(%rbp),%xmm0
addss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x1c(%rbp)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1243 <main+0x123>
jmp    1248 <main+0x128>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1154 <main+0x34>
movss  -0x24(%rbp),%xmm0
cvtsi2ssl -0x2c(%rbp),%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdda(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x1c(%rbp),%xmm0
cvtsi2ssl -0x28(%rbp),%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdcd(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x20,%rsp
lea    0xedd(%rip),%rdi
xor    %ebp,%ebp
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf1a(%rip),%rbx
lea    0x1c(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <scanf@plt>
lea    0xec9(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <scanf@plt>
lea    0xec1(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xec5(%rip),%rdi
lea    0xf(%rsp),%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
cmpb   $0x6d,0xf(%rsp)
jne    11c9 <main+0xa9>
movss  0x14(%rsp),%xmm2
ucomiss 0xe64(%rip),%xmm2
setae  %cl
movss  0xe5d(%rip),%xmm0
ucomiss %xmm2,%xmm0
setae  %al
xorps  %xmm0,%xmm0
and    %cl,%al
movss  %xmm0,0x18(%rsp)
jne    11fc <main+0xdc>
xorps  %xmm0,%xmm0
movss  %xmm0,0x10(%rsp)
jmp    1206 <main+0xe6>
movss  0x1c(%rsp),%xmm0
ucomiss 0xe2a(%rip),%xmm0
jbe    120b <main+0xeb>
xorps  %xmm2,%xmm2
movss  0x14(%rsp),%xmm0
xorps  %xmm1,%xmm1
movss  %xmm1,0x10(%rsp)
addss  %xmm2,%xmm0
movss  %xmm0,0x18(%rsp)
mov    $0x1,%r14d
jmp    1220 <main+0x100>
addss  %xmm0,%xmm2
movss  %xmm2,0x10(%rsp)
movzbl %al,%ebp
jmp    121d <main+0xfd>
xorps  %xmm0,%xmm0
movss  %xmm0,0x18(%rsp)
xorps  %xmm0,%xmm0
movss  %xmm0,0x10(%rsp)
xor    %r14d,%r14d
lea    0xde5(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe24(%rip),%rbx
lea    0x1c(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <scanf@plt>
lea    0xdd3(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <scanf@plt>
lea    0xdcb(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xdcf(%rip),%rdi
lea    0xf(%rsp),%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
cmpb   $0x6d,0xf(%rsp)
jne    12ba <main+0x19a>
movss  0x14(%rsp),%xmm0
ucomiss 0xd6e(%rip),%xmm0
jb     12df <main+0x1bf>
movss  0xd68(%rip),%xmm1
ucomiss %xmm0,%xmm1
jb     12df <main+0x1bf>
movss  0x10(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0x10(%rsp)
add    $0x1,%ebp
jmp    12df <main+0x1bf>
movss  0x1c(%rsp),%xmm0
ucomiss 0xd39(%rip),%xmm0
jbe    12df <main+0x1bf>
movss  0x18(%rsp),%xmm0
addss  0x14(%rsp),%xmm0
movss  %xmm0,0x18(%rsp)
add    $0x1,%r14d
lea    0xd26(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xd65(%rip),%rbx
lea    0x1c(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <scanf@plt>
lea    0xd14(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <scanf@plt>
lea    0xd0c(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xd10(%rip),%rdi
lea    0xf(%rsp),%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
cmpb   $0x6d,0xf(%rsp)
jne    1379 <main+0x259>
movss  0x14(%rsp),%xmm0
ucomiss 0xcaf(%rip),%xmm0
jb     139e <main+0x27e>
movss  0xca9(%rip),%xmm1
ucomiss %xmm0,%xmm1
jb     139e <main+0x27e>
movss  0x10(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0x10(%rsp)
add    $0x1,%ebp
jmp    139e <main+0x27e>
movss  0x1c(%rsp),%xmm0
ucomiss 0xc7a(%rip),%xmm0
jbe    139e <main+0x27e>
movss  0x18(%rsp),%xmm0
addss  0x14(%rsp),%xmm0
movss  %xmm0,0x18(%rsp)
add    $0x1,%r14d
lea    0xc67(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xca6(%rip),%rbx
lea    0x1c(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <scanf@plt>
lea    0xc55(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <scanf@plt>
lea    0xc4d(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xc51(%rip),%rdi
lea    0xf(%rsp),%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
cmpb   $0x6d,0xf(%rsp)
jne    1432 <main+0x312>
movss  0x14(%rsp),%xmm0
ucomiss 0xbf0(%rip),%xmm0
jb     1457 <main+0x337>
movss  0xbea(%rip),%xmm1
ucomiss %xmm0,%xmm1
movss  0x10(%rsp),%xmm1
jb     145d <main+0x33d>
addss  %xmm0,%xmm1
add    $0x1,%ebp
jmp    145d <main+0x33d>
movss  0x1c(%rsp),%xmm0
ucomiss 0xbc1(%rip),%xmm0
jbe    1457 <main+0x337>
movss  0x18(%rsp),%xmm0
addss  0x14(%rsp),%xmm0
movss  %xmm0,0x18(%rsp)
add    $0x1,%r14d
movss  0x10(%rsp),%xmm1
xorps  %xmm0,%xmm0
cvtsi2ss %ebp,%xmm0
divss  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
lea    0xbd3(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %r14d,%xmm0
movss  0x18(%rsp),%xmm1
divss  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
lea    0xbbf(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [18 x i8] c"\0A Entre com Peso:\00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [21 x i8] c"\0A Entre com salario:\00"
@.str.3 = [18 x i8] c"\0A Entre com sexo:\00"
@.str.4 = [4 x i8] c" %c\00"
@.str.5 = [19 x i8] c"\0A media_sal_h = %f\00"
@.str.6 = [17 x i8] c"\0A soma_peso = %f\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca i8
%5 = alloca i32
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca i32
%11 = alloca i32
store i32 0, i32* %1
store float 0.000000e+00, float* %7
store float 0.000000e+00, float* %9
store i32 0, i32* %10
store i32 0, i32* %11
store i32 1, i32* %5
br label %12
12: ; preds = %49, %0
%13 = load i32, i32* %5
%14 = icmp sle i32 %13, 4
br i1 %14, label %15, label %52
15: ; preds = %12
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%17 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %2)
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, 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* %3)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%21 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %4)
%22 = load i8, i8* %4
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 109
br i1 %24, label %25, label %38
25: ; preds = %15
%26 = load float, float* %3
%27 = fcmp oge float %26, 1.000000e+03
br i1 %27, label %28, label %37
28: ; preds = %25
%29 = load float, float* %3
%30 = fcmp ole float %29, 3.000000e+03
br i1 %30, label %31, label %37
31: ; preds = %28
%32 = load float, float* %9
%33 = load float, float* %3
%34 = fadd float %32, %33
store float %34, float* %9
%35 = load i32, i32* %11
%36 = add nsw i32 %35, 1
store i32 %36, i32* %11
br label %37
37: ; preds = %31, %28, %25
br label %48
38: ; preds = %15
%39 = load float, float* %2
%40 = fcmp ogt float %39, 5.000000e+01
br i1 %40, label %41, label %47
41: ; preds = %38
%42 = load float, float* %7
%43 = load float, float* %3
%44 = fadd float %42, %43
store float %44, float* %7
%45 = load i32, i32* %10
%46 = add nsw i32 %45, 1
store i32 %46, i32* %10
br label %47
47: ; preds = %41, %38
br label %48
48: ; preds = %47, %37
br label %49
49: ; preds = %48
%50 = load i32, i32* %5
%51 = add nsw i32 %50, 1
store i32 %51, i32* %5
br label %12
52: ; preds = %12
%53 = load float, float* %9
%54 = load i32, i32* %11
%55 = sitofp i32 %54 to float
%56 = fdiv float %53, %55
%57 = fpext float %56 to double
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), double %57)
%59 = load float, float* %7
%60 = load i32, i32* %10
%61 = sitofp i32 %60 to float
%62 = fdiv float %59, %61
%63 = fpext float %62 to double
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), double %63)
ret i32 0
}

LLVM IR (-O2):
@.str = [18 x i8] c"\0A Entre com Peso:\00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [21 x i8] c"\0A Entre com salario:\00"
@.str.3 = [18 x i8] c"\0A Entre com sexo:\00"
@.str.4 = [4 x i8] c" %c\00"
@.str.5 = [19 x i8] c"\0A media_sal_h = %f\00"
@.str.6 = [17 x i8] c"\0A soma_peso = %f\00"
define i32 @main() {
%1 = alloca float
%2 = alloca float
%3 = alloca i8
%4 = bitcast float* %1 to i8*
%5 = bitcast float* %2 to i8*
%6 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%7 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %1)
%8 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
%9 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %2)
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%11 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %3)
%12 = load i8, i8* %3
%13 = icmp eq i8 %12, 109
br i1 %13, label %14, label %22
14: ; preds = %0
%15 = load float, float* %2
%16 = fcmp oge float %15, 1.000000e+03
%17 = fcmp ole float %15, 3.000000e+03
%18 = and i1 %16, %17
%19 = fadd float %15, 0.000000e+00
%20 = select i1 %18, float %19, float 0.000000e+00
%21 = zext i1 %18 to i32
br label %28
22: ; preds = %0
%23 = load float, float* %1
%24 = fcmp ogt float %23, 5.000000e+01
br i1 %24, label %25, label %28
25: ; preds = %22
%26 = load float, float* %2
%27 = fadd float %26, 0.000000e+00
br label %28
28: ; preds = %14, %25, %22
%29 = phi float [ %27, %25 ], [ 0.000000e+00, %22 ], [ 0.000000e+00, %14 ]
%30 = phi float [ 0.000000e+00, %25 ], [ 0.000000e+00, %22 ], [ %20, %14 ]
%31 = phi i32 [ 1, %25 ], [ 0, %22 ], [ 0, %14 ]
%32 = phi i32 [ 0, %25 ], [ 0, %22 ], [ %21, %14 ]
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%34 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %1)
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
%36 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %2)
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%38 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %3)
%39 = load i8, i8* %3
%40 = icmp eq i8 %39, 109
br i1 %40, label %48, label %41
41: ; preds = %28
%42 = load float, float* %1
%43 = fcmp ogt float %42, 5.000000e+01
br i1 %43, label %44, label %56
44: ; preds = %41
%45 = load float, float* %2
%46 = fadd float %29, %45
%47 = add nuw nsw i32 %31, 1
br label %56
48: ; preds = %28
%49 = load float, float* %2
%50 = fcmp oge float %49, 1.000000e+03
%51 = fcmp ole float %49, 3.000000e+03
%52 = and i1 %50, %51
br i1 %52, label %53, label %56
53: ; preds = %48
%54 = fadd float %30, %49
%55 = add nuw nsw i32 %32, 1
br label %56
56: ; preds = %53, %48, %44, %41
%57 = phi float [ %29, %53 ], [ %29, %48 ], [ %46, %44 ], [ %29, %41 ]
%58 = phi float [ %54, %53 ], [ %30, %48 ], [ %30, %44 ], [ %30, %41 ]
%59 = phi i32 [ %31, %53 ], [ %31, %48 ], [ %47, %44 ], [ %31, %41 ]
%60 = phi i32 [ %55, %53 ], [ %32, %48 ], [ %32, %44 ], [ %32, %41 ]
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%62 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %1)
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
%64 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %2)
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%66 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %3)
%67 = load i8, i8* %3
%68 = icmp eq i8 %67, 109
br i1 %68, label %76, label %69
69: ; preds = %56
%70 = load float, float* %1
%71 = fcmp ogt float %70, 5.000000e+01
br i1 %71, label %72, label %84
72: ; preds = %69
%73 = load float, float* %2
%74 = fadd float %57, %73
%75 = add nuw nsw i32 %59, 1
br label %84
76: ; preds = %56
%77 = load float, float* %2
%78 = fcmp oge float %77, 1.000000e+03
%79 = fcmp ole float %77, 3.000000e+03
%80 = and i1 %78, %79
br i1 %80, label %81, label %84
81: ; preds = %76
%82 = fadd float %58, %77
%83 = add nuw nsw i32 %60, 1
br label %84
84: ; preds = %81, %76, %72, %69
%85 = phi float [ %57, %81 ], [ %57, %76 ], [ %74, %72 ], [ %57, %69 ]
%86 = phi float [ %82, %81 ], [ %58, %76 ], [ %58, %72 ], [ %58, %69 ]
%87 = phi i32 [ %59, %81 ], [ %59, %76 ], [ %75, %72 ], [ %59, %69 ]
%88 = phi i32 [ %83, %81 ], [ %60, %76 ], [ %60, %72 ], [ %60, %69 ]
%89 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%90 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %1)
%91 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
%92 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %2)
%93 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%94 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %3)
%95 = load i8, i8* %3
%96 = icmp eq i8 %95, 109
br i1 %96, label %104, label %97
97: ; preds = %84
%98 = load float, float* %1
%99 = fcmp ogt float %98, 5.000000e+01
br i1 %99, label %100, label %112
100: ; preds = %97
%101 = load float, float* %2
%102 = fadd float %85, %101
%103 = add nuw nsw i32 %87, 1
br label %112
104: ; preds = %84
%105 = load float, float* %2
%106 = fcmp oge float %105, 1.000000e+03
%107 = fcmp ole float %105, 3.000000e+03
%108 = and i1 %106, %107
br i1 %108, label %109, label %112
109: ; preds = %104
%110 = fadd float %86, %105
%111 = add nuw nsw i32 %88, 1
br label %112
112: ; preds = %109, %104, %100, %97
%113 = phi float [ %85, %109 ], [ %85, %104 ], [ %102, %100 ], [ %85, %97 ]
%114 = phi float [ %110, %109 ], [ %86, %104 ], [ %86, %100 ], [ %86, %97 ]
%115 = phi i32 [ %87, %109 ], [ %87, %104 ], [ %103, %100 ], [ %87, %97 ]
%116 = phi i32 [ %111, %109 ], [ %88, %104 ], [ %88, %100 ], [ %88, %97 ]
%117 = sitofp i32 %116 to float
%118 = fdiv float %114, %117
%119 = fpext float %118 to double
%120 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), double %119)
%121 = sitofp i32 %115 to float
%122 = fdiv float %113, %121
%123 = fpext float %122 to double
%124 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), double %123)
ret i32 0
}