#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() {
  printf("#######################################");
  printf("\n           ANÁLISE DE FICHAS");
  printf("\n#######################################");
  int contaMulher = 0;
  float maiorAltura = 0, menorAltura = 999, somaMulher = 0, somaAltura = 0;
  for (int i = 0; i < 4; i++) {
    printf(
        "\n "
        "------------------------------------------------------------------");
    printf("\n (%d) - Qual seu gênero (1 - Masculino / 2 - Feminino): ", i + 1);
    int genero;
    scanf("%d", &genero);
    printf("\n (%d) - Insira sua altura: ", i + 1);
    float altura;
    scanf("%f", &altura);
    somaAltura += altura;
    if (genero == 2) {
      somaMulher += altura;
      contaMulher++;
    }
    if (altura > maiorAltura)
      maiorAltura = altura;
    if (altura < menorAltura)
      menorAltura = altura;
  }
  printf("\n****************************************************");
  printf("\n               R E S U L T A D O S");
  printf("\n****************************************************");
  printf("\n A média de altura das mulheres é: %0.1f",
         somaMulher / contaMulher);
  printf("\n A maior altura da turma é: %0.1f", maiorAltura);
  printf("\n A menor altura da turma é: %0.1f", menorAltura);
  printf("\n A média de altura da turma é: %0.1f", somaAltura / 4);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xef2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0xc(%rbp)
movss  0xe90(%rip),%xmm0
movss  %xmm0,-0x10(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x14(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0x4,-0x1c(%rbp)
jge    126a <main+0x14a>
lea    0xeb3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%esi
add    $0x1,%esi
lea    0xee4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf11(%rip),%rdi
lea    -0x20(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0x1c(%rbp),%esi
add    $0x1,%esi
lea    0xefc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf0b(%rip),%rdi
lea    -0x24(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
movss  -0x24(%rbp),%xmm0
addss  -0x18(%rbp),%xmm0
movss  %xmm0,-0x18(%rbp)
cmpl   $0x2,-0x20(%rbp)
jne    1221 <main+0x101>
movss  -0x24(%rbp),%xmm0
addss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
movss  -0x24(%rbp),%xmm0
ucomiss -0xc(%rbp),%xmm0
jbe    123a <main+0x11a>
movss  -0x24(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0x24(%rbp),%xmm1
movss  -0x10(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    1257 <main+0x137>
movss  -0x24(%rbp),%xmm0
movss  %xmm0,-0x10(%rbp)
jmp    125c <main+0x13c>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    118c <main+0x6c>
lea    0xe82(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeaa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe66(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x14(%rbp),%xmm0
cvtsi2ssl -0x8(%rbp),%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xea0(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xeb5(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xec2(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0x18(%rbp),%xmm0
movss  0xd15(%rip),%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xec3(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0xef7(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xec9(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xeda(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xef5(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf2c(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf54(%rip),%r13
lea    0x14(%rsp),%r12
mov    %r13,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
lea    0xf3e(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf45(%rip),%rbp
lea    0x10(%rsp),%r14
mov    %rbp,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
movss  0x10(%rsp),%xmm2
xorps  %xmm0,%xmm0
movaps %xmm2,%xmm1
addss  %xmm0,%xmm1
xor    %r15d,%r15d
cmpl   $0x2,0x14(%rsp)
sete   %al
movss  %xmm1,0xc(%rsp)
movss  %xmm1,(%rsp)
je     11f1 <main+0xd1>
xorps  %xmm1,%xmm1
movss  %xmm1,(%rsp)
mov    %al,%r15b
movaps %xmm2,%xmm1
maxss  %xmm0,%xmm1
movss  %xmm1,0x4(%rsp)
minss  0xdf7(%rip),%xmm2
movss  %xmm2,0x8(%rsp)
lea    0xe3e(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe75(%rip),%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r13,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbp,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
movss  0x10(%rsp),%xmm2
movss  0xc(%rsp),%xmm0
addss  %xmm2,%xmm0
movss  %xmm0,0xc(%rsp)
xor    %eax,%eax
cmpl   $0x2,0x14(%rsp)
sete   %al
movaps %xmm2,%xmm0
je     1286 <main+0x166>
movss  0xd7e(%rip),%xmm0
movss  (%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,(%rsp)
add    %eax,%r15d
movaps %xmm2,%xmm0
maxss  0x4(%rsp),%xmm0
movss  %xmm0,0x4(%rsp)
minss  0x8(%rsp),%xmm2
movss  %xmm2,0x8(%rsp)
lea    0xd9b(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xdd2(%rip),%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r13,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbp,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
movss  0x10(%rsp),%xmm2
movss  0xc(%rsp),%xmm0
addss  %xmm2,%xmm0
movss  %xmm0,0xc(%rsp)
xor    %eax,%eax
cmpl   $0x2,0x14(%rsp)
sete   %al
movaps %xmm2,%xmm0
je     1329 <main+0x209>
movss  0xcdb(%rip),%xmm0
movss  (%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,(%rsp)
add    %eax,%r15d
movaps %xmm2,%xmm0
maxss  0x4(%rsp),%xmm0
movss  %xmm0,0x4(%rsp)
minss  0x8(%rsp),%xmm2
movss  %xmm2,0x8(%rsp)
lea    0xcf8(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xd2f(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r13,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbp,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
movss  0x10(%rsp),%xmm1
movss  0xc(%rsp),%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,0xc(%rsp)
xor    %eax,%eax
cmpl   $0x2,0x14(%rsp)
sete   %al
movaps %xmm1,%xmm0
je     13cc <main+0x2ac>
movss  0xc38(%rip),%xmm0
movss  (%rsp),%xmm2
addss  %xmm0,%xmm2
movss  %xmm2,(%rsp)
add    %eax,%r15d
movaps %xmm1,%xmm0
maxss  0x4(%rsp),%xmm0
movss  %xmm0,0x4(%rsp)
minss  0x8(%rsp),%xmm1
movss  %xmm1,0x8(%rsp)
lea    0xcf8(%rip),%rbx
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xd1d(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %r15d,%xmm0
movss  (%rsp),%xmm1
divss  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
lea    0xd11(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  0x4(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd25(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd31(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  0xc(%rsp),%xmm0
mulss  0xb83(%rip),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd35(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [40 x i8] c"#######################################\00"
@.str.1 = [31 x i8] c"\0A AN\C3\81LISE DE FICHAS\00"
@.str.2 = [41 x i8] c"\0A#######################################\00"
@.str.3 = [69 x i8] c"\0A ------------------------------------------------------------------\00"
@.str.4 = [59 x i8] c"\0A (%d) - Qual seu g\C3\AAnero (1 - Masculino / 2 - Feminino): \00"
@.str.5 = [3 x i8] c"%d\00"
@.str.6 = [29 x i8] c"\0A (%d) - Insira sua altura: \00"
@.str.7 = [3 x i8] c"%f\00"
@.str.8 = [54 x i8] c"\0A****************************************************\00"
@.str.9 = [36 x i8] c"\0A R E S U L T A D O S\00"
@.str.10 = [44 x i8] c"\0A A m\C3\A9dia de altura das mulheres \C3\A9: %0.1f\00"
@.str.11 = [36 x i8] c"\0A A maior altura da turma \C3\A9: %0.1f\00"
@.str.12 = [36 x i8] c"\0A A menor altura da turma \C3\A9: %0.1f\00"
@.str.13 = [40 x i8] c"\0A A m\C3\A9dia de altura da turma \C3\A9: %0.1f\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca i32
%8 = alloca i32
%9 = alloca float
store i32 0, i32* %1
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %2
store float 0.000000e+00, float* %3
store float 9.990000e+02, float* %4
store float 0.000000e+00, float* %5
store float 0.000000e+00, float* %6
store i32 0, i32* %7
br label %13
13: ; preds = %50, %0
%14 = load i32, i32* %7
%15 = icmp slt i32 %14, 4
br i1 %15, label %16, label %53
16: ; preds = %13
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.3, i64 0, i64 0))
%18 = load i32, i32* %7
%19 = add nsw i32 %18, 1
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.4, i64 0, i64 0), i32 %19)
%21 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32* %8)
%22 = load i32, i32* %7
%23 = add nsw i32 %22, 1
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0), i32 %23)
%25 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), float* %9)
%26 = load float, float* %9
%27 = load float, float* %6
%28 = fadd float %27, %26
store float %28, float* %6
%29 = load i32, i32* %8
%30 = icmp eq i32 %29, 2
br i1 %30, label %31, label %37
31: ; preds = %16
%32 = load float, float* %9
%33 = load float, float* %5
%34 = fadd float %33, %32
store float %34, float* %5
%35 = load i32, i32* %2
%36 = add nsw i32 %35, 1
store i32 %36, i32* %2
br label %37
37: ; preds = %31, %16
%38 = load float, float* %9
%39 = load float, float* %3
%40 = fcmp ogt float %38, %39
br i1 %40, label %41, label %43
41: ; preds = %37
%42 = load float, float* %9
store float %42, float* %3
br label %43
43: ; preds = %41, %37
%44 = load float, float* %9
%45 = load float, float* %4
%46 = fcmp olt float %44, %45
br i1 %46, label %47, label %49
47: ; preds = %43
%48 = load float, float* %9
store float %48, float* %4
br label %49
49: ; preds = %47, %43
br label %50
50: ; preds = %49
%51 = load i32, i32* %7
%52 = add nsw i32 %51, 1
store i32 %52, i32* %7
br label %13
53: ; preds = %13
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.8, i64 0, i64 0))
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.9, i64 0, i64 0))
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.8, i64 0, i64 0))
%57 = load float, float* %5
%58 = load i32, i32* %2
%59 = sitofp i32 %58 to float
%60 = fdiv float %57, %59
%61 = fpext float %60 to double
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.10, i64 0, i64 0), double %61)
%63 = load float, float* %3
%64 = fpext float %63 to double
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.11, i64 0, i64 0), double %64)
%66 = load float, float* %4
%67 = fpext float %66 to double
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.12, i64 0, i64 0), double %67)
%69 = load float, float* %6
%70 = fdiv float %69, 4.000000e+00
%71 = fpext float %70 to double
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.13, i64 0, i64 0), double %71)
%73 = load i32, i32* %1
ret i32 %73
}

LLVM IR (-O2):
@.str = [40 x i8] c"#######################################\00"
@.str.1 = [31 x i8] c"\0A AN\C3\81LISE DE FICHAS\00"
@.str.2 = [41 x i8] c"\0A#######################################\00"
@.str.3 = [69 x i8] c"\0A ------------------------------------------------------------------\00"
@.str.4 = [59 x i8] c"\0A (%d) - Qual seu g\C3\AAnero (1 - Masculino / 2 - Feminino): \00"
@.str.5 = [3 x i8] c"%d\00"
@.str.6 = [29 x i8] c"\0A (%d) - Insira sua altura: \00"
@.str.7 = [3 x i8] c"%f\00"
@.str.8 = [54 x i8] c"\0A****************************************************\00"
@.str.9 = [36 x i8] c"\0A R E S U L T A D O S\00"
@.str.10 = [44 x i8] c"\0A A m\C3\A9dia de altura das mulheres \C3\A9: %0.1f\00"
@.str.11 = [36 x i8] c"\0A A maior altura da turma \C3\A9: %0.1f\00"
@.str.12 = [36 x i8] c"\0A A menor altura da turma \C3\A9: %0.1f\00"
@.str.13 = [40 x i8] c"\0A A m\C3\A9dia de altura da turma \C3\A9: %0.1f\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0))
%6 = bitcast i32* %1 to i8*
%7 = bitcast float* %2 to i8*
%8 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.3, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.4, i64 0, i64 0), i32 1)
%10 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32* %1)
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0), i32 1)
%12 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), float* %2)
%13 = load float, float* %2
%14 = fadd float %13, 0.000000e+00
%15 = load i32, i32* %1
%16 = icmp eq i32 %15, 2
%17 = zext i1 %16 to i32
%18 = fadd float %13, 0.000000e+00
%19 = select i1 %16, float %18, float 0.000000e+00
%20 = fcmp ogt float %13, 0.000000e+00
%21 = select i1 %20, float %13, float 0.000000e+00
%22 = fcmp olt float %13, 9.990000e+02
%23 = select i1 %22, float %13, float 9.990000e+02
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.3, i64 0, i64 0))
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.4, i64 0, i64 0), i32 2)
%26 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32* %1)
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0), i32 2)
%28 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), float* %2)
%29 = load float, float* %2
%30 = fadd float %14, %29
%31 = load i32, i32* %1
%32 = icmp eq i32 %31, 2
%33 = zext i1 %32 to i32
%34 = add nuw nsw i32 %17, %33
%35 = select i1 %32, float %29, float -0.000000e+00
%36 = fadd float %19, %35
%37 = fcmp ogt float %29, %21
%38 = select i1 %37, float %29, float %21
%39 = fcmp olt float %29, %23
%40 = select i1 %39, float %29, float %23
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.3, i64 0, i64 0))
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.4, i64 0, i64 0), i32 3)
%43 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32* %1)
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0), i32 3)
%45 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), float* %2)
%46 = load float, float* %2
%47 = fadd float %30, %46
%48 = load i32, i32* %1
%49 = icmp eq i32 %48, 2
%50 = zext i1 %49 to i32
%51 = add nuw nsw i32 %34, %50
%52 = select i1 %49, float %46, float -0.000000e+00
%53 = fadd float %36, %52
%54 = fcmp ogt float %46, %38
%55 = select i1 %54, float %46, float %38
%56 = fcmp olt float %46, %40
%57 = select i1 %56, float %46, float %40
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @.str.3, i64 0, i64 0))
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.4, i64 0, i64 0), i32 4)
%60 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32* %1)
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0), i32 4)
%62 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), float* %2)
%63 = load float, float* %2
%64 = fadd float %47, %63
%65 = load i32, i32* %1
%66 = icmp eq i32 %65, 2
%67 = zext i1 %66 to i32
%68 = add nuw nsw i32 %51, %67
%69 = select i1 %66, float %63, float -0.000000e+00
%70 = fadd float %53, %69
%71 = fcmp ogt float %63, %55
%72 = select i1 %71, float %63, float %55
%73 = fcmp olt float %63, %57
%74 = select i1 %73, float %63, float %57
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.8, i64 0, i64 0))
%76 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.9, i64 0, i64 0))
%77 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.8, i64 0, i64 0))
%78 = sitofp i32 %68 to float
%79 = fdiv float %70, %78
%80 = fpext float %79 to double
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.10, i64 0, i64 0), double %80)
%82 = fpext float %72 to double
%83 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.11, i64 0, i64 0), double %82)
%84 = fpext float %74 to double
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.12, i64 0, i64 0), double %84)
%86 = fmul float %64, 2.500000e-01
%87 = fpext float %86 to double
%88 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.13, i64 0, i64 0), double %87)
ret i32 0
}