#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*/ getchar();
int /*<<< orphan*/ printf(char *, float);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ scanf(char *, ...);
void formula1() {
  int option1;
  float V, l, w, h;
  while (1) {
    puts("\n\t Formula 1: ");
    puts(" V = length * width * height\n");
    puts("\t Menu:");
    puts(" 1: Solve for V");
    puts(" 2: Solve for length");
    puts(" 3: Solve for width");
    puts(" 4: Solve for height");
    puts(" 5: Return to main menu");
    scanf("%d", &option1);
    if (option1 == 1) {
      puts("length = ");
      scanf("%f", &l);
      puts("width = ");
      scanf("%f", &w);
      puts("height = ");
      scanf("%f", &h);
      V = l * w * h;
      printf("The volume is %0.2f.", V);
    } else if (option1 == 2) {
      puts("Volume = ");
      scanf("%f", &V);
      puts("width = ");
      scanf("%f", &w);
      puts("height = ");
      scanf("%f", &h);
      l = V / (w * h);
      printf("The length is %0.2f.", l);
    } else if (option1 == 3) {
      puts("Volume = ");
      scanf("%f", &V);
      puts("length = ");
      scanf("%f", &l);
      puts("height = ");
      scanf("%f", &h);
      w = V / (l * h);
      printf("The width is %0.2f.", w);
    } else if (option1 == 4) {
      puts("Volume = ");
      scanf("%f", &V);
      puts("width = ");
      scanf("%f", &w);
      puts("length = ");
      scanf("%f", &l);
      h = V / (l * w);
      printf("The height is %0.2f.", h);
    } else if (option1 == 5) {
      break;
    } else {
      puts("Invalid Input!");
    }
    getchar();
  }
}


x86 assembly (clang, -O0):
<formula1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
lea    0xeb1(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb4(%rip),%rdi
call   1030 <puts@plt>
lea    0xec6(%rip),%rdi
call   1030 <puts@plt>
lea    0xec2(%rip),%rdi
call   1030 <puts@plt>
lea    0xec6(%rip),%rdi
call   1030 <puts@plt>
lea    0xecf(%rip),%rdi
call   1030 <puts@plt>
lea    0xed7(%rip),%rdi
call   1030 <puts@plt>
lea    0xee0(%rip),%rdi
call   1030 <puts@plt>
lea    0xeec(%rip),%rdi
lea    -0x4(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
cmpl   $0x1,-0x4(%rbp)
jne    1248 <formula1+0x108>
lea    0xed3(%rip),%rdi
call   1030 <puts@plt>
lea    0xed1(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
lea    0xec2(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb3(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
lea    0xead(%rip),%rdi
call   1030 <puts@plt>
lea    0xe95(%rip),%rdi
lea    -0x14(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
movss  -0xc(%rbp),%xmm0
mulss  -0x10(%rbp),%xmm0
mulss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
lea    0xe80(%rip),%rdi
call   1040 <printf@plt>
jmp    142d <formula1+0x2ed>
cmpl   $0x2,-0x4(%rbp)
jne    12da <formula1+0x19a>
lea    0xe7a(%rip),%rdi
call   1030 <puts@plt>
lea    0xe43(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
lea    0xe34(%rip),%rdi
call   1030 <puts@plt>
lea    0xe25(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
lea    0xe1f(%rip),%rdi
call   1030 <puts@plt>
lea    0xe07(%rip),%rdi
lea    -0x14(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
movss  -0x8(%rbp),%xmm0
movss  -0x10(%rbp),%xmm1
mulss  -0x14(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
lea    0xe0d(%rip),%rdi
call   1040 <printf@plt>
jmp    1428 <formula1+0x2e8>
cmpl   $0x3,-0x4(%rbp)
jne    136c <formula1+0x22c>
lea    0xde8(%rip),%rdi
call   1030 <puts@plt>
lea    0xdb1(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
lea    0xd95(%rip),%rdi
call   1030 <puts@plt>
lea    0xd93(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
lea    0xd8d(%rip),%rdi
call   1030 <puts@plt>
lea    0xd75(%rip),%rdi
lea    -0x14(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
movss  -0x8(%rbp),%xmm0
movss  -0xc(%rbp),%xmm1
mulss  -0x14(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0x10(%rbp),%xmm0
lea    0xd90(%rip),%rdi
call   1040 <printf@plt>
jmp    1423 <formula1+0x2e3>
cmpl   $0x4,-0x4(%rbp)
jne    13fe <formula1+0x2be>
lea    0xd56(%rip),%rdi
call   1030 <puts@plt>
lea    0xd1f(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
lea    0xd10(%rip),%rdi
call   1030 <puts@plt>
lea    0xd01(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
lea    0xce5(%rip),%rdi
call   1030 <puts@plt>
lea    0xce3(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
movss  -0x8(%rbp),%xmm0
movss  -0xc(%rbp),%xmm1
mulss  -0x10(%rbp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x14(%rbp),%xmm0
lea    0xd12(%rip),%rdi
call   1040 <printf@plt>
jmp    141e <formula1+0x2de>
cmpl   $0x5,-0x4(%rbp)
jne    140d <formula1+0x2cd>
jmp    1439 <formula1+0x2f9>
lea    0xd07(%rip),%rdi
call   1030 <puts@plt>
jmp    141e <formula1+0x2de>
jmp    1423 <formula1+0x2e3>
jmp    1428 <formula1+0x2e8>
jmp    142d <formula1+0x2ed>
mov    $0x0,%al
call   1050 <getchar@plt>
jmp    1148 <formula1+0x8>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<formula1>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0xf2d(%rip),%r14
lea    0xf3b(%rip),%r15
lea    0xf4c(%rip),%r12
lea    0x14(%rsp),%r13
lea    0xe91(%rip),%rbp
lea    0xf46(%rip),%rbx
jmp    1197 <formula1+0x57>
lea    0xfb0(%rip),%rdi
call   1030 <puts@plt>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
xor    %eax,%eax
call   1050 <getchar@plt>
lea    0xe76(%rip),%rdi
call   1030 <puts@plt>
lea    0xe79(%rip),%rdi
call   1030 <puts@plt>
lea    0xe8b(%rip),%rdi
call   1030 <puts@plt>
lea    0xe87(%rip),%rdi
call   1030 <puts@plt>
lea    0xe8b(%rip),%rdi
call   1030 <puts@plt>
lea    0xe94(%rip),%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
mov    %r15,%rdi
call   1030 <puts@plt>
mov    %r12,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    0x14(%rsp),%eax
add    $0xffffffff,%eax
cmp    $0x4,%eax
ja     1178 <formula1+0x38>
movslq 0x0(%rbp,%rax,4),%rax
add    %rbp,%rax
jmp    *%rax
lea    0xe95(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xe87(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
lea    0x8(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xe75(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
movss  0xc(%rsp),%xmm0
mulss  0x8(%rsp),%xmm0
mulss  0x4(%rsp),%xmm0
movss  %xmm0,0x10(%rsp)
lea    0xe4c(%rip),%rdi
call   1040 <printf@plt>
jmp    1190 <formula1+0x50>
lea    0xe50(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xe0d(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
lea    0x8(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xdfb(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
movss  0x10(%rsp),%xmm0
movss  0x8(%rsp),%xmm1
mulss  0x4(%rsp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,0xc(%rsp)
lea    0xded(%rip),%rdi
call   1040 <printf@plt>
jmp    1190 <formula1+0x50>
lea    0xdd2(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xd82(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xd7d(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
movss  0x10(%rsp),%xmm0
movss  0xc(%rsp),%xmm1
mulss  0x4(%rsp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,0x8(%rsp)
lea    0xd84(%rip),%rdi
call   1040 <printf@plt>
jmp    1190 <formula1+0x50>
lea    0xd54(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xd11(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
lea    0x8(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xce9(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
movss  0x10(%rsp),%xmm0
movss  0xc(%rsp),%xmm1
mulss  0x8(%rsp),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,0x4(%rsp)
lea    0xd1a(%rip),%rdi
call   1040 <printf@plt>
jmp    1190 <formula1+0x50>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [15 x i8] c"\0A\09 Formula 1: \00"
@.str.1 = [30 x i8] c" V = length * width * height\0A\00"
@.str.2 = [8 x i8] c"\09 Menu:\00"
@.str.3 = [16 x i8] c" 1: Solve for V\00"
@.str.4 = [21 x i8] c" 2: Solve for length\00"
@.str.5 = [20 x i8] c" 3: Solve for width\00"
@.str.6 = [21 x i8] c" 4: Solve for height\00"
@.str.7 = [24 x i8] c" 5: Return to main menu\00"
@.str.8 = [3 x i8] c"%d\00"
@.str.9 = [10 x i8] c"length = \00"
@.str.10 = [3 x i8] c"%f\00"
@.str.11 = [9 x i8] c"width = \00"
@.str.12 = [10 x i8] c"height = \00"
@.str.13 = [21 x i8] c"The volume is %0.2f.\00"
@.str.14 = [10 x i8] c"Volume = \00"
@.str.15 = [21 x i8] c"The length is %0.2f.\00"
@.str.16 = [20 x i8] c"The width is %0.2f.\00"
@.str.17 = [21 x i8] c"The height is %0.2f.\00"
@.str.18 = [15 x i8] c"Invalid Input!\00"
define void @formula1() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca float
br label %6
6: ; preds = %0, %93
%7 = call i32 @puts(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @puts(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 @puts(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 @puts(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
%11 = call i32 @puts(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
%12 = call i32 @puts(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
%13 = call i32 @puts(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0))
%14 = call i32 @puts(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0))
%15 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32* %1)
%16 = load i32, i32* %1
%17 = icmp eq i32 %16, 1
br i1 %17, label %18, label %32
18: ; preds = %6
%19 = call i32 @puts(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0))
%20 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), float* %3)
%21 = call i32 @puts(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0))
%22 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), float* %4)
%23 = call i32 @puts(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0))
%24 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), float* %5)
%25 = load float, float* %3
%26 = load float, float* %4
%27 = fmul float %25, %26
%28 = load float, float* %5
%29 = fmul float %27, %28
store float %29, float* %2
%30 = load float, float* %2
%31 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), float %30)
br label %93
32: ; preds = %6
%33 = load i32, i32* %1
%34 = icmp eq i32 %33, 2
br i1 %34, label %35, label %49
35: ; preds = %32
%36 = call i32 @puts(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0))
%37 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), float* %2)
%38 = call i32 @puts(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0))
%39 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), float* %4)
%40 = call i32 @puts(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0))
%41 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), float* %5)
%42 = load float, float* %2
%43 = load float, float* %4
%44 = load float, float* %5
%45 = fmul float %43, %44
%46 = fdiv float %42, %45
store float %46, float* %3
%47 = load float, float* %3
%48 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.15, i64 0, i64 0), float %47)
br label %92
49: ; preds = %32
%50 = load i32, i32* %1
%51 = icmp eq i32 %50, 3
br i1 %51, label %52, label %66
52: ; preds = %49
%53 = call i32 @puts(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0))
%54 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), float* %2)
%55 = call i32 @puts(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0))
%56 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), float* %3)
%57 = call i32 @puts(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0))
%58 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), float* %5)
%59 = load float, float* %2
%60 = load float, float* %3
%61 = load float, float* %5
%62 = fmul float %60, %61
%63 = fdiv float %59, %62
store float %63, float* %4
%64 = load float, float* %4
%65 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.16, i64 0, i64 0), float %64)
br label %91
66: ; preds = %49
%67 = load i32, i32* %1
%68 = icmp eq i32 %67, 4
br i1 %68, label %69, label %83
69: ; preds = %66
%70 = call i32 @puts(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0))
%71 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), float* %2)
%72 = call i32 @puts(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0))
%73 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), float* %4)
%74 = call i32 @puts(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0))
%75 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), float* %3)
%76 = load float, float* %2
%77 = load float, float* %3
%78 = load float, float* %4
%79 = fmul float %77, %78
%80 = fdiv float %76, %79
store float %80, float* %5
%81 = load float, float* %5
%82 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.17, i64 0, i64 0), float %81)
br label %90
83: ; preds = %66
%84 = load i32, i32* %1
%85 = icmp eq i32 %84, 5
br i1 %85, label %86, label %87
86: ; preds = %83
br label %95
87: ; preds = %83
%88 = call i32 @puts(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.18, i64 0, i64 0))
br label %89
89: ; preds = %87
br label %90
90: ; preds = %89, %69
br label %91
91: ; preds = %90, %52
br label %92
92: ; preds = %91, %35
br label %93
93: ; preds = %92, %18
%94 = call i32 (...) @getchar()
br label %6
95: ; preds = %86
ret void
}

LLVM IR (-O2):
@.str = [15 x i8] c"\0A\09 Formula 1: \00"
@.str.1 = [30 x i8] c" V = length * width * height\0A\00"
@.str.2 = [8 x i8] c"\09 Menu:\00"
@.str.3 = [16 x i8] c" 1: Solve for V\00"
@.str.4 = [21 x i8] c" 2: Solve for length\00"
@.str.5 = [20 x i8] c" 3: Solve for width\00"
@.str.6 = [21 x i8] c" 4: Solve for height\00"
@.str.7 = [24 x i8] c" 5: Return to main menu\00"
@.str.8 = [3 x i8] c"%d\00"
@.str.9 = [10 x i8] c"length = \00"
@.str.10 = [3 x i8] c"%f\00"
@.str.11 = [9 x i8] c"width = \00"
@.str.12 = [10 x i8] c"height = \00"
@.str.13 = [21 x i8] c"The volume is %0.2f.\00"
@.str.14 = [10 x i8] c"Volume = \00"
@.str.15 = [21 x i8] c"The length is %0.2f.\00"
@.str.16 = [20 x i8] c"The width is %0.2f.\00"
@.str.17 = [21 x i8] c"The height is %0.2f.\00"
@.str.18 = [15 x i8] c"Invalid Input!\00"
define void @formula1() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = bitcast i32* %1 to i8*
%7 = bitcast float* %2 to i8*
%8 = bitcast float* %3 to i8*
%9 = bitcast float* %4 to i8*
%10 = bitcast float* %5 to i8*
br label %11
11: ; preds = %76, %0
%12 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%13 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
%14 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%15 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
%16 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
%17 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
%18 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0))
%19 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0))
%20 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32* %1)
%21 = load i32, i32* %1
switch i32 %21, label %74 [
i32 1, label %22
i32 2, label %35
i32 3, label %48
i32 4, label %61
i32 5, label %78
]
22: ; preds = %11
%23 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0))
%24 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), float* %3)
%25 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0))
%26 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), float* %4)
%27 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0))
%28 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), float* %5)
%29 = load float, float* %3
%30 = load float, float* %4
%31 = fmul float %29, %30
%32 = load float, float* %5
%33 = fmul float %31, %32
store float %33, float* %2
%34 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), float %33)
br label %76
35: ; preds = %11
%36 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0))
%37 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), float* %2)
%38 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0))
%39 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), float* %4)
%40 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0))
%41 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), float* %5)
%42 = load float, float* %2
%43 = load float, float* %4
%44 = load float, float* %5
%45 = fmul float %43, %44
%46 = fdiv float %42, %45
store float %46, float* %3
%47 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.15, i64 0, i64 0), float %46)
br label %76
48: ; preds = %11
%49 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0))
%50 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), float* %2)
%51 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0))
%52 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), float* %3)
%53 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0))
%54 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), float* %5)
%55 = load float, float* %2
%56 = load float, float* %3
%57 = load float, float* %5
%58 = fmul float %56, %57
%59 = fdiv float %55, %58
store float %59, float* %4
%60 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.16, i64 0, i64 0), float %59)
br label %76
61: ; preds = %11
%62 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0))
%63 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), float* %2)
%64 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0))
%65 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), float* %4)
%66 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0))
%67 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), float* %3)
%68 = load float, float* %2
%69 = load float, float* %3
%70 = load float, float* %4
%71 = fmul float %69, %70
%72 = fdiv float %68, %71
store float %72, float* %5
%73 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.17, i64 0, i64 0), float %72)
br label %76
74: ; preds = %11
%75 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.18, i64 0, i64 0))
br label %76
76: ; preds = %35, %61, %74, %48, %22
%77 = call i32 (...) @getchar()
br label %11
78: ; preds = %11
ret void
}