#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*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int /*<<< orphan*/ stdin;
int main() {
  struct pessoas {
    int codTC;
    int num;
    float kwh;
  };
  struct pessoas consumidor[16];
  float total, consumo1, consumo2;
  int i = 0;
  printf("Exercício desenvolvido considerando a tarifa do CIP - Contribuição "
         "Municipal\n");
  do {
    printf("\nDigite o numero do consumidor: ");
    scanf("%i", &consumidor[i].num);
    if (consumidor[i].num == 0)
      break;
    printf("\nTipo de consumidor, digite:\n1 - Residencial\n2 - Comercial\n3 - "
           "Industrial: ");
    scanf("%i", &consumidor[i].codTC);
    printf("\nDigite a quantidade de kWh consumidos durante o mes: ");
    scanf("%f", &consumidor[i].kwh);
    fflush(stdin);
    if (consumidor[i].codTC == 1) {
      printf("\nResidencial");
      total = consumidor[i].kwh * 0.3;
      consumo1 = consumidor[i].kwh;
    } else if (consumidor[i].codTC == 2) {
      printf("\nComercial");
      total = consumidor[i].kwh * 0.5;
      consumo2 = consumidor[i].kwh;
    } else if (consumidor[i].codTC == 3) {
      printf("\nIndustrial");
      total = consumidor[i].kwh * 0.7;
    }
    float totalT = total + 5.17;
    float media = consumo1 + consumo2 / 2;
    printf("\nO total de consumo e %.2f\n", total);
    printf("\nO custo total e %.2f\n", totalT);
    printf("\nA media de consumo dos consumidores 1 e 2 e %.2f\n", media);
    i++;
  } while (i == 16);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0xe0(%rbp)
lea    0xed1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf14(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0xe0(%rbp),%rax
lea    -0xd0(%rbp),%rsi
imul   $0xc,%rax,%rax
add    %rax,%rsi
add    $0x4,%rsi
lea    0xf0e(%rip),%rdi
call   1050 <scanf@plt>
movslq -0xe0(%rbp),%rcx
lea    -0xd0(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
cmpl   $0x0,0x4(%rax)
jne    11b1 <main+0x81>
jmp    1455 <main+0x325>
lea    0xee1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0xe0(%rbp),%rax
lea    -0xd0(%rbp),%rsi
imul   $0xc,%rax,%rax
add    %rax,%rsi
lea    0xebb(%rip),%rdi
call   1050 <scanf@plt>
lea    0xefe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0xe0(%rbp),%rax
lea    -0xd0(%rbp),%rsi
imul   $0xc,%rax,%rax
add    %rax,%rsi
add    $0x8,%rsi
lea    0xf0e(%rip),%rdi
call   1050 <scanf@plt>
mov    0x2dce(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
movslq -0xe0(%rbp),%rcx
lea    -0xd0(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
cmpl   $0x1,(%rax)
jne    12aa <main+0x17a>
lea    0xed9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0xe0(%rbp),%rcx
lea    -0xd0(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
movss  0x8(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xd9d(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xd4(%rbp)
ff
movslq -0xe0(%rbp),%rcx
lea    -0xd0(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
movss  0x8(%rax),%xmm0
movss  %xmm0,-0xd8(%rbp)
ff
jmp    139f <main+0x26f>
movslq -0xe0(%rbp),%rcx
lea    -0xd0(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
cmpl   $0x2,(%rax)
jne    1333 <main+0x203>
lea    0xe5d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0xe0(%rbp),%rcx
lea    -0xd0(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
movss  0x8(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xd0c(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xd4(%rbp)
ff
movslq -0xe0(%rbp),%rcx
lea    -0xd0(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
movss  0x8(%rax),%xmm0
movss  %xmm0,-0xdc(%rbp)
ff
jmp    139a <main+0x26a>
movslq -0xe0(%rbp),%rcx
lea    -0xd0(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
cmpl   $0x3,(%rax)
jne    1395 <main+0x265>
lea    0xddf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0xe0(%rbp),%rcx
lea    -0xd0(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
movss  0x8(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xc7b(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xd4(%rbp)
ff
jmp    139a <main+0x26a>
jmp    139f <main+0x26f>
movss  -0xd4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
movsd  0xc65(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xe4(%rbp)
ff
movss  -0xd8(%rbp),%xmm0
ff
movss  -0xdc(%rbp),%xmm1
ff
movss  0xc45(%rip),%xmm2
divss  %xmm2,%xmm1
addss  %xmm1,%xmm0
movss  %xmm0,-0xe8(%rbp)
ff
movss  -0xd4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xd45(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0xe4(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xd47(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  -0xe8(%rbp),%xmm0
ff
cvtss2sd %xmm0,%xmm0
lea    0xd44(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0xe0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xe0(%rbp)
cmpl   $0x10,-0xe0(%rbp)
je     115a <main+0x2a>
mov    -0x4(%rbp),%eax
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0xd8,%rsp
lea    0x1006(%rip),%rdi
call   1030 <puts@plt>
lea    0xec6(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x14(%rsp),%rsi
lea    0xed4(%rip),%rdi
call   1060 <scanf@plt>
cmpl   $0x0,0x14(%rsp)
je     12cb <main+0x18b>
lea    0xec0(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeaf(%rip),%rdi
lea    0x10(%rsp),%rsi
call   1060 <scanf@plt>
lea    0xeed(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x18(%rsp),%rsi
lea    0xf11(%rip),%rdi
call   1060 <scanf@plt>
mov    0x2e26(%rip),%rax
mov    (%rax),%edi
call   1050 <fflush@plt>
movss  0xe2f(%rip),%xmm0
mov    0x10(%rsp),%eax
cmp    $0x3,%eax
je     1210 <main+0xd0>
cmp    $0x2,%eax
je     123c <main+0xfc>
movss  %xmm0,0x8(%rsp)
cmp    $0x1,%eax
jne    1260 <main+0x120>
lea    0xed9(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movss  0x18(%rsp),%xmm0
cvtss2sd %xmm0,%xmm1
mulsd  0xe06(%rip),%xmm1
cvtsd2ss %xmm1,%xmm1
jmp    1260 <main+0x120>
movss  %xmm0,0x8(%rsp)
lea    0xec5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movss  0x18(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mulsd  0xdd2(%rip),%xmm0
cvtsd2ss %xmm0,%xmm1
jmp    1260 <main+0x120>
lea    0xe94(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movss  0x18(%rsp),%xmm1
mulss  0xdac(%rip),%xmm1
movss  %xmm1,0x8(%rsp)
jmp    1260 <main+0x120>
movss  0x8(%rsp),%xmm2
addss  %xmm0,%xmm2
movss  %xmm2,0x8(%rsp)
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
movsd  0xd99(%rip),%xmm1
addsd  %xmm0,%xmm1
cvtsd2ss %xmm1,%xmm1
movss  %xmm1,0xc(%rsp)
lea    0xe5a(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0xc(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe5e(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe5d(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0xd8,%rsp
ret

LLVM IR (-O0):
%struct.pessoas = type { i32, i32, float }
@.str = [81 x i8] c"Exerc\C3\ADcio desenvolvido considerando a tarifa do CIP - Contribui\C3\A7\C3\A3o Municipal\0A\00"
@.str.1 = [33 x i8] c"\0ADigite o numero do consumidor: \00"
@.str.2 = [3 x i8] c"%i\00"
@.str.3 = [76 x i8] c"\0ATipo de consumidor, digite:\0A1 - Residencial\0A2 - Comercial\0A3 - Industrial: \00"
@.str.4 = [55 x i8] c"\0ADigite a quantidade de kWh consumidos durante o mes: \00"
@.str.5 = [3 x i8] c"%f\00"
@stdin = global i32 0
@.str.6 = [13 x i8] c"\0AResidencial\00"
@.str.7 = [11 x i8] c"\0AComercial\00"
@.str.8 = [12 x i8] c"\0AIndustrial\00"
@.str.9 = [28 x i8] c"\0AO total de consumo e %.2f\0A\00"
@.str.10 = [23 x i8] c"\0AO custo total e %.2f\0A\00"
@.str.11 = [51 x i8] c"\0AA media de consumo dos consumidores 1 e 2 e %.2f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [16 x %struct.pessoas]
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca i32
%7 = alloca float
%8 = alloca float
store i32 0, i32* %1
store i32 0, i32* %6
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str, i64 0, i64 0))
br label %10
10: ; preds = %122, %0
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0))
%12 = load i32, i32* %6
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [16 x %struct.pessoas], [16 x %struct.pessoas]* %2, i64 0, i64 %13
%15 = getelementptr inbounds %struct.pessoas, %struct.pessoas* %14, i32 0, i32 1
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %15)
%17 = load i32, i32* %6
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [16 x %struct.pessoas], [16 x %struct.pessoas]* %2, i64 0, i64 %18
%20 = getelementptr inbounds %struct.pessoas, %struct.pessoas* %19, i32 0, i32 1
%21 = load i32, i32* %20
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %10
br label %125
24: ; preds = %10
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.3, i64 0, i64 0))
%26 = load i32, i32* %6
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [16 x %struct.pessoas], [16 x %struct.pessoas]* %2, i64 0, i64 %27
%29 = getelementptr inbounds %struct.pessoas, %struct.pessoas* %28, i32 0, i32 0
%30 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %29)
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.4, i64 0, i64 0))
%32 = load i32, i32* %6
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [16 x %struct.pessoas], [16 x %struct.pessoas]* %2, i64 0, i64 %33
%35 = getelementptr inbounds %struct.pessoas, %struct.pessoas* %34, i32 0, i32 2
%36 = bitcast float* %35 to i32*
%37 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32* %36)
%38 = load i32, i32* @stdin
%39 = call i32 @fflush(i32 %38)
%40 = load i32, i32* %6
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [16 x %struct.pessoas], [16 x %struct.pessoas]* %2, i64 0, i64 %41
%43 = getelementptr inbounds %struct.pessoas, %struct.pessoas* %42, i32 0, i32 0
%44 = load i32, i32* %43
%45 = icmp eq i32 %44, 1
br i1 %45, label %46, label %61
46: ; preds = %24
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0))
%48 = load i32, i32* %6
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [16 x %struct.pessoas], [16 x %struct.pessoas]* %2, i64 0, i64 %49
%51 = getelementptr inbounds %struct.pessoas, %struct.pessoas* %50, i32 0, i32 2
%52 = load float, float* %51
%53 = fpext float %52 to double
%54 = fmul double %53, 3.000000e-01
%55 = fptrunc double %54 to float
store float %55, float* %3
%56 = load i32, i32* %6
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [16 x %struct.pessoas], [16 x %struct.pessoas]* %2, i64 0, i64 %57
%59 = getelementptr inbounds %struct.pessoas, %struct.pessoas* %58, i32 0, i32 2
%60 = load float, float* %59
store float %60, float* %4
br label %102
61: ; preds = %24
%62 = load i32, i32* %6
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [16 x %struct.pessoas], [16 x %struct.pessoas]* %2, i64 0, i64 %63
%65 = getelementptr inbounds %struct.pessoas, %struct.pessoas* %64, i32 0, i32 0
%66 = load i32, i32* %65
%67 = icmp eq i32 %66, 2
br i1 %67, label %68, label %83
68: ; preds = %61
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
%70 = load i32, i32* %6
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [16 x %struct.pessoas], [16 x %struct.pessoas]* %2, i64 0, i64 %71
%73 = getelementptr inbounds %struct.pessoas, %struct.pessoas* %72, i32 0, i32 2
%74 = load float, float* %73
%75 = fpext float %74 to double
%76 = fmul double %75, 5.000000e-01
%77 = fptrunc double %76 to float
store float %77, float* %3
%78 = load i32, i32* %6
%79 = sext i32 %78 to i64
%80 = getelementptr inbounds [16 x %struct.pessoas], [16 x %struct.pessoas]* %2, i64 0, i64 %79
%81 = getelementptr inbounds %struct.pessoas, %struct.pessoas* %80, i32 0, i32 2
%82 = load float, float* %81
store float %82, float* %5
br label %101
83: ; preds = %61
%84 = load i32, i32* %6
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [16 x %struct.pessoas], [16 x %struct.pessoas]* %2, i64 0, i64 %85
%87 = getelementptr inbounds %struct.pessoas, %struct.pessoas* %86, i32 0, i32 0
%88 = load i32, i32* %87
%89 = icmp eq i32 %88, 3
br i1 %89, label %90, label %100
90: ; preds = %83
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0))
%92 = load i32, i32* %6
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [16 x %struct.pessoas], [16 x %struct.pessoas]* %2, i64 0, i64 %93
%95 = getelementptr inbounds %struct.pessoas, %struct.pessoas* %94, i32 0, i32 2
%96 = load float, float* %95
%97 = fpext float %96 to double
%98 = fmul double %97, 0x3FE6666666666666
%99 = fptrunc double %98 to float
store float %99, float* %3
br label %100
100: ; preds = %90, %83
br label %101
101: ; preds = %100, %68
br label %102
102: ; preds = %101, %46
%103 = load float, float* %3
%104 = fpext float %103 to double
%105 = fadd double %104, 5.170000e+00
%106 = fptrunc double %105 to float
store float %106, float* %7
%107 = load float, float* %4
%108 = load float, float* %5
%109 = fdiv float %108, 2.000000e+00
%110 = fadd float %107, %109
store float %110, float* %8
%111 = load float, float* %3
%112 = fpext float %111 to double
%113 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0), double %112)
%114 = load float, float* %7
%115 = fpext float %114 to double
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0), double %115)
%117 = load float, float* %8
%118 = fpext float %117 to double
%119 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.11, i64 0, i64 0), double %118)
%120 = load i32, i32* %6
%121 = add nsw i32 %120, 1
store i32 %121, i32* %6
br label %122
122: ; preds = %102
%123 = load i32, i32* %6
%124 = icmp eq i32 %123, 16
br i1 %124, label %10, label %125
125: ; preds = %122, %23
%126 = load i32, i32* %1
ret i32 %126
}

LLVM IR (-O2):
%struct.pessoas = type { i32, i32, float }
@.str.1 = [33 x i8] c"\0ADigite o numero do consumidor: \00"
@.str.2 = [3 x i8] c"%i\00"
@.str.3 = [76 x i8] c"\0ATipo de consumidor, digite:\0A1 - Residencial\0A2 - Comercial\0A3 - Industrial: \00"
@.str.4 = [55 x i8] c"\0ADigite a quantidade de kWh consumidos durante o mes: \00"
@.str.5 = [3 x i8] c"%f\00"
@stdin = global i32 0
@.str.6 = [13 x i8] c"\0AResidencial\00"
@.str.7 = [11 x i8] c"\0AComercial\00"
@.str.8 = [12 x i8] c"\0AIndustrial\00"
@.str.9 = [28 x i8] c"\0AO total de consumo e %.2f\0A\00"
@.str.10 = [23 x i8] c"\0AO custo total e %.2f\0A\00"
@.str.11 = [51 x i8] c"\0AA media de consumo dos consumidores 1 e 2 e %.2f\0A\00"
@str = [80 x i8] c"Exerc\C3\ADcio desenvolvido considerando a tarifa do CIP - Contribui\C3\A7\C3\A3o Municipal\00"
define i32 @main() {
%1 = alloca [16 x %struct.pessoas]
%2 = bitcast [16 x %struct.pessoas]* %1 to i8*
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0))
%5 = getelementptr inbounds [16 x %struct.pessoas], [16 x %struct.pessoas]* %1, i64 0, i64 0, i32 1
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %5)
%7 = load i32, i32* %5
%8 = icmp eq i32 %7, 0
br i1 %8, label %49, label %9
9: ; preds = %0
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @.str.3, i64 0, i64 0))
%11 = getelementptr inbounds [16 x %struct.pessoas], [16 x %struct.pessoas]* %1, i64 0, i64 0, i32 0
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %11)
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @.str.4, i64 0, i64 0))
%14 = getelementptr inbounds [16 x %struct.pessoas], [16 x %struct.pessoas]* %1, i64 0, i64 0, i32 2
%15 = bitcast float* %14 to i32*
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32* %15)
%17 = load i32, i32* @stdin
%18 = call i32 @fflush(i32 %17)
%19 = load i32, i32* %11
switch i32 %19, label %36 [
i32 1, label %20
i32 2, label %26
i32 3, label %30
]
20: ; preds = %9
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0))
%22 = load float, float* %14
%23 = fpext float %22 to double
%24 = fmul double %23, 3.000000e-01
%25 = fptrunc double %24 to float
br label %36
26: ; preds = %9
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
%28 = load float, float* %14
%29 = fmul float %28, 5.000000e-01
br label %36
30: ; preds = %9
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0))
%32 = load float, float* %14
%33 = fpext float %32 to double
%34 = fmul double %33, 0x3FE6666666666666
%35 = fptrunc double %34 to float
br label %36
36: ; preds = %9, %26, %30, %20
%37 = phi float [ 0x7FF8000000000000, %20 ], [ %29, %26 ], [ 0x7FF8000000000000, %30 ], [ 0x7FF8000000000000, %9 ]
%38 = phi float [ %22, %20 ], [ undef, %26 ], [ undef, %30 ], [ undef, %9 ]
%39 = phi float [ %25, %20 ], [ %29, %26 ], [ %35, %30 ], [ undef, %9 ]
%40 = fpext float %39 to double
%41 = fadd double %40, 5.170000e+00
%42 = fptrunc double %41 to float
%43 = fadd float %37, %38
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0), double %40)
%45 = fpext float %42 to double
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0), double %45)
%47 = fpext float %43 to double
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str.11, i64 0, i64 0), double %47)
br label %49
49: ; preds = %36, %0
ret i32 0
}