#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*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, ...);
int main() {
  int option;
  float n1, n2, n3, p1, p2, p3, media;
  printf("---------------------------------\n");
  printf("Please, choose an option:\n");
  printf("* 1 = Arithmetic Average;\n");
  printf("* 2 = Weighted Average;\n");
  printf("* 0 = Exit\n");
  printf("---------------------------------\n");
  scanf("%d", &option);
  if (option == 0) {
    printf("\nEXIT \n \n");
    exit(0);
  }
  if ((option != 1) && (option != 2)) {
    printf("\nOption not found \n");
    exit(0);
  }
  switch (option) {
  case 1:
    printf("Please, insert the value of primary note:\n");
    scanf("%f", &n1);
    printf("Please, insert the value of secondary note:\n");
    scanf("%f", &n2);
    media = ((n1 + n2) / 2);
    printf("The arithmetic average of notes is: %.2f\n", media);
    break;
  case 2:
    printf("Please, insert the value of primary note:  \n");
    scanf("%f", &n1);
    printf("Please, insert the value of weight for primary note:  \n");
    scanf("%f", &p1);
    printf("Please, insert the value of secondary note: \n");
    scanf("%f", &n2);
    printf("Please, insert the value of weight for secondary note: \n");
    scanf("%f", &p2);
    printf("Please, insert the value of third note:\n");
    scanf("%f", &n3);
    printf("Please, insert the value of weight for third note:\n");
    scanf("%f", &p3);
    media = ((n1 * p1 + n2 * p2 + n3 * p3) / (p1 + p2 + p3));
    printf("The weighted average of notes is: %.2f \n", media);
    break;
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xebe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeed(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe78(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee8(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
cmpl   $0x0,-0x8(%rbp)
jne    11c4 <main+0x94>
lea    0xecf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   1050 <exit@plt>
cmpl   $0x1,-0x8(%rbp)
je     11ed <main+0xbd>
cmpl   $0x2,-0x8(%rbp)
je     11ed <main+0xbd>
lea    0xeb0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %edi,%edi
call   1050 <exit@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0x28(%rbp)
sub    $0x1,%eax
je     1212 <main+0xe2>
jmp    1201 <main+0xd1>
mov    -0x28(%rbp),%eax
sub    $0x2,%eax
je     1289 <main+0x159>
jmp    13a6 <main+0x276>
lea    0xe8a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xea7(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xe98(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe87(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
movss  -0xc(%rbp),%xmm0
addss  -0x10(%rbp),%xmm0
movss  0xd9c(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0x24(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe81(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    13a6 <main+0x276>
lea    0xe98(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe30(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xea5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe10(%rip),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xebd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdf0(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xecb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdd0(%rip),%rdi
lea    -0x1c(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xee4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdb0(%rip),%rdi
lea    -0x14(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xeed(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd90(%rip),%rdi
lea    -0x20(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
movss  -0xc(%rbp),%xmm1
movss  -0x18(%rbp),%xmm2
movss  -0x10(%rbp),%xmm0
mulss  -0x1c(%rbp),%xmm0
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x14(%rbp),%xmm0
movss  -0x20(%rbp),%xmm2
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  -0x18(%rbp),%xmm1
addss  -0x1c(%rbp),%xmm1
addss  -0x20(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0x24(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xeb2(%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   %rbx
sub    $0x20,%rsp
lea    0xf68(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xf02(%rip),%rdi
call   1030 <puts@plt>
lea    0xf10(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2a(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xe71(%rip),%rdi
lea    0x1c(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
mov    0x1c(%rsp),%eax
test   %eax,%eax
je     1329 <main+0x1e9>
lea    -0x3(%rax),%ecx
cmp    $0xfffffffd,%ecx
jbe    1332 <main+0x1f2>
cmp    $0x2,%eax
je     1222 <main+0xe2>
cmp    $0x1,%eax
jne    1321 <main+0x1e1>
lea    0x102d(%rip),%rdi
call   1030 <puts@plt>
lea    0xe2f(%rip),%rbx
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
lea    0x1035(%rip),%rdi
call   1030 <puts@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
movss  0x8(%rsp),%xmm0
addss  0x4(%rsp),%xmm0
mulss  0xdea(%rip),%xmm0
lea    0xded(%rip),%rdi
jmp    1316 <main+0x1d6>
lea    0xead(%rip),%rdi
call   1030 <puts@plt>
lea    0xdd2(%rip),%rbx
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
lea    0xeb7(%rip),%rdi
call   1030 <puts@plt>
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
lea    0xed3(%rip),%rdi
call   1030 <puts@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
lea    0xee5(%rip),%rdi
call   1030 <puts@plt>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
lea    0xf02(%rip),%rdi
call   1030 <puts@plt>
lea    0x18(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
lea    0xf0f(%rip),%rdi
call   1030 <puts@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <scanf@plt>
movss  0x14(%rsp),%xmm1
movss  0x10(%rsp),%xmm2
movss  0x4(%rsp),%xmm0
mulss  %xmm2,%xmm0
movss  0x8(%rsp),%xmm3
mulss  %xmm1,%xmm3
addss  %xmm0,%xmm3
movss  0xc(%rsp),%xmm4
movss  0x18(%rsp),%xmm0
mulss  %xmm4,%xmm0
addss  %xmm3,%xmm0
addss  %xmm2,%xmm1
addss  %xmm4,%xmm1
divss  %xmm1,%xmm0
lea    0xd1e(%rip),%rdi
cvtss2sd %xmm0,%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
ret
lea    0xf32(%rip),%rdi
jmp    1339 <main+0x1f9>
lea    0xf16(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@.str = [35 x i8] c"---------------------------------\0A\00"
@.str.1 = [27 x i8] c"Please, choose an option:\0A\00"
@.str.2 = [27 x i8] c"* 1 = Arithmetic Average;\0A\00"
@.str.3 = [25 x i8] c"* 2 = Weighted Average;\0A\00"
@.str.4 = [12 x i8] c"* 0 = Exit\0A\00"
@.str.5 = [3 x i8] c"%d\00"
@.str.6 = [10 x i8] c"\0AEXIT \0A \0A\00"
@.str.7 = [20 x i8] c"\0AOption not found \0A\00"
@.str.8 = [43 x i8] c"Please, insert the value of primary note:\0A\00"
@.str.9 = [3 x i8] c"%f\00"
@.str.10 = [45 x i8] c"Please, insert the value of secondary note:\0A\00"
@.str.11 = [42 x i8] c"The arithmetic average of notes is: %.2f\0A\00"
@.str.12 = [45 x i8] c"Please, insert the value of primary note: \0A\00"
@.str.13 = [56 x i8] c"Please, insert the value of weight for primary note: \0A\00"
@.str.14 = [46 x i8] c"Please, insert the value of secondary note: \0A\00"
@.str.15 = [57 x i8] c"Please, insert the value of weight for secondary note: \0A\00"
@.str.16 = [41 x i8] c"Please, insert the value of third note:\0A\00"
@.str.17 = [52 x i8] c"Please, insert the value of weight for third note:\0A\00"
@.str.18 = [41 x i8] c"The weighted average of notes is: %.2f \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
store i32 0, i32* %1
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0))
%16 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32* %2)
%17 = load i32, i32* %2
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %0
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
%21 = call i32 @exit(i32 0)
unreachable
22: ; preds = %0
%23 = load i32, i32* %2
%24 = icmp ne i32 %23, 1
br i1 %24, label %25, label %31
25: ; preds = %22
%26 = load i32, i32* %2
%27 = icmp ne i32 %26, 2
br i1 %27, label %28, label %31
28: ; preds = %25
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
%30 = call i32 @exit(i32 0)
unreachable
31: ; preds = %25, %22
%32 = load i32, i32* %2
switch i32 %32, label %76 [
i32 1, label %33
i32 2, label %45
]
33: ; preds = %31
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.8, i64 0, i64 0))
%35 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), float* %3)
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.10, i64 0, i64 0))
%37 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), float* %4)
%38 = load float, float* %3
%39 = load float, float* %4
%40 = fadd float %38, %39
%41 = fdiv float %40, 2.000000e+00
store float %41, float* %9
%42 = load float, float* %9
%43 = fpext float %42 to double
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.11, i64 0, i64 0), double %43)
br label %76
45: ; preds = %31
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.12, i64 0, i64 0))
%47 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), float* %3)
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.13, i64 0, i64 0))
%49 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), float* %6)
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.14, i64 0, i64 0))
%51 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), float* %4)
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.15, i64 0, i64 0))
%53 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), float* %7)
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.16, i64 0, i64 0))
%55 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), float* %5)
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.17, i64 0, i64 0))
%57 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), float* %8)
%58 = load float, float* %3
%59 = load float, float* %6
%60 = load float, float* %4
%61 = load float, float* %7
%62 = fmul float %60, %61
%63 = call float @llvm.fmuladd.f32(float %58, float %59, float %62)
%64 = load float, float* %5
%65 = load float, float* %8
%66 = call float @llvm.fmuladd.f32(float %64, float %65, float %63)
%67 = load float, float* %6
%68 = load float, float* %7
%69 = fadd float %67, %68
%70 = load float, float* %8
%71 = fadd float %69, %70
%72 = fdiv float %66, %71
store float %72, float* %9
%73 = load float, float* %9
%74 = fpext float %73 to double
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.18, i64 0, i64 0), double %74)
br label %76
76: ; preds = %31, %45, %33
%77 = load i32, i32* %1
ret i32 %77
}

LLVM IR (-O2):
@.str.5 = [3 x i8] c"%d\00"
@.str.9 = [3 x i8] c"%f\00"
@.str.11 = [42 x i8] c"The arithmetic average of notes is: %.2f\0A\00"
@.str.18 = [41 x i8] c"The weighted average of notes is: %.2f \0A\00"
@str.19 = [26 x i8] c"Please, choose an option:\00"
@str.20 = [26 x i8] c"* 1 = Arithmetic Average;\00"
@str.21 = [24 x i8] c"* 2 = Weighted Average;\00"
@str.22 = [11 x i8] c"* 0 = Exit\00"
@str.23 = [34 x i8] c"---------------------------------\00"
@str.24 = [44 x i8] c"Please, insert the value of primary note: \00"
@str.25 = [55 x i8] c"Please, insert the value of weight for primary note: \00"
@str.26 = [45 x i8] c"Please, insert the value of secondary note: \00"
@str.27 = [56 x i8] c"Please, insert the value of weight for secondary note: \00"
@str.28 = [40 x i8] c"Please, insert the value of third note:\00"
@str.29 = [51 x i8] c"Please, insert the value of weight for third note:\00"
@str.30 = [42 x i8] c"Please, insert the value of primary note:\00"
@str.31 = [44 x i8] c"Please, insert the value of secondary note:\00"
@str.32 = [19 x i8] c"\0AOption not found \00"
@str.33 = [9 x i8] c"\0AEXIT \0A \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 = bitcast i32* %1 to i8*
%9 = bitcast float* %2 to i8*
%10 = bitcast float* %3 to i8*
%11 = bitcast float* %4 to i8*
%12 = bitcast float* %5 to i8*
%13 = bitcast float* %6 to i8*
%14 = bitcast float* %7 to i8*
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.23, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.19, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.20, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.21, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.22, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.23, i64 0, i64 0))
%21 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32* %1)
%22 = load i32, i32* %1
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %0
%25 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.33, i64 0, i64 0))
%26 = call i32 @exit(i32 0)
unreachable
27: ; preds = %0
%28 = add i32 %22, -3
%29 = icmp ult i32 %28, -2
br i1 %29, label %30, label %33
30: ; preds = %27
%31 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.32, i64 0, i64 0))
%32 = call i32 @exit(i32 0)
unreachable
33: ; preds = %27
switch i32 %22, label %73 [
i32 1, label %34
i32 2, label %43
]
34: ; preds = %33
%35 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.30, i64 0, i64 0))
%36 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), float* %2)
%37 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.31, i64 0, i64 0))
%38 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), float* %3)
%39 = load float, float* %2
%40 = load float, float* %3
%41 = fadd float %39, %40
%42 = fmul float %41, 5.000000e-01
br label %68
43: ; preds = %33
%44 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.24, i64 0, i64 0))
%45 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), float* %2)
%46 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.25, i64 0, i64 0))
%47 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), float* %5)
%48 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.26, i64 0, i64 0))
%49 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), float* %3)
%50 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.27, i64 0, i64 0))
%51 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), float* %6)
%52 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.28, i64 0, i64 0))
%53 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), float* %4)
%54 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.29, i64 0, i64 0))
%55 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), float* %7)
%56 = load float, float* %2
%57 = load float, float* %5
%58 = load float, float* %3
%59 = load float, float* %6
%60 = fmul float %58, %59
%61 = call float @llvm.fmuladd.f32(float %56, float %57, float %60)
%62 = load float, float* %4
%63 = load float, float* %7
%64 = call float @llvm.fmuladd.f32(float %62, float %63, float %61)
%65 = fadd float %57, %59
%66 = fadd float %65, %63
%67 = fdiv float %64, %66
br label %68
68: ; preds = %34, %43
%69 = phi float [ %67, %43 ], [ %42, %34 ]
%70 = phi i8* [ getelementptr inbounds ([41 x i8], [41 x i8]* @.str.18, i64 0, i64 0), %43 ], [ getelementptr inbounds ([42 x i8], [42 x i8]* @.str.11, i64 0, i64 0), %34 ]
%71 = fpext float %69 to double
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %70, double %71)
br label %73
73: ; preds = %68, %33
ret i32 0
}