#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 */
double circle(float);
int /*<<< orphan*/ printf(char *, ...);
double rectangle(float, float);
int /*<<< orphan*/ scanf(char *, float *);
double square(float);
double triangle(float, float);
int main() {
  float shape;
  float x;
  float y;
  while (1) {
    printf("Parakalw pieste 1 gia tetragwno, 2 gia parallhlogramo, 3 gia "
           "trigwno h 4 gia kuklo kai pieste [ENTER]:\n");
    scanf(" %f", &shape);
    if (shape == 0) {
      printf("*********Kleisimo arithmomhxanhs*********");
      return 0;
    }
    if (shape < 1 || shape > 4) {
      printf("\n\nLathos epilogh, prospatheiste ksana!\n\n");
      continue;
    }
    if (shape == 1) {
      printf("dwste to mhkos (se ekatosta) ths mias plevras tou tetragwnou:\n");
      scanf(" %f", &x);
      printf("H perimetros tou tetragwnou me plevra %f einai %f!\n\n", x,
             square(x));
    } else if (shape == 2) {
      printf("dwste to mhkos (se ekatosta) parallhlogramou:\n");
      scanf(" %f", &x);
      printf("dwste to ypsos (se ekatosta) parallhlogramou:\n");
      scanf(" %f", &y);
      printf(
          "H perimetros tou parallhlogramou me diastaseis %fx%f einai %f!\n\n",
          x, y, rectangle(x, y));
      if (x == y)
        printf("(BTW, ayto einai tetragwno :p)\n\n");
    } else if (shape == 3) {
      printf("dwste to mhkos (se ekatosta) ths prwths katheths plevras tou "
             "trigwnou:\n");
      scanf(" %f", &x);
      printf("dwste to ypsos (se ekatosta) ths deyterhs katheths plevras tou "
             "trigwnou:\n");
      scanf(" %f", &y);
      printf("H perimetros tou orthogwniou trigwnou me kathetes plevres %f kai "
             "%f cm antistoixa einai %f!\n\n",
             x, y, triangle(x, y));
    } else if (shape == 4) {
      printf("dwste to mhkos (se ekatosta) ths aktinas tou kuklou:\n");
      scanf(" %f", &x);
      printf("H perimetros tou kuklou me aktina %f einai %f!\n\n", x,
             circle(x));
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe9a(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xef4(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1080 <scanf@plt>
movss  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    11ba <main+0x5a>
jp     11ba <main+0x5a>
lea    0xed1(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret
movss  0xe3e(%rip),%xmm0
ucomiss -0x8(%rbp),%xmm0
ja     11e2 <main+0x82>
movss  -0x8(%rbp),%xmm0
movss  0xe2b(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    11f5 <main+0x95>
lea    0xebd(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    116f <main+0xf>
movss  -0x8(%rbp),%xmm0
movss  0xdfe(%rip),%xmm1
ucomiss %xmm1,%xmm0
jne    1262 <main+0x102>
jp     1262 <main+0x102>
lea    0xeb7(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xe52(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1080 <scanf@plt>
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x18(%rbp)
movss  -0xc(%rbp),%xmm0
call   1040 <square@plt>
movaps %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
lea    0xeb8(%rip),%rdi
mov    $0x2,%al
call   1060 <printf@plt>
jmp    1442 <main+0x2e2>
movss  -0x8(%rbp),%xmm0
movss  0xd99(%rip),%xmm1
ucomiss %xmm1,%xmm0
jne    1328 <main+0x1c8>
jp     1328 <main+0x1c8>
lea    0xebe(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xde5(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1080 <scanf@plt>
lea    0xecf(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xdc7(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1080 <scanf@plt>
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x20(%rbp)
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x28(%rbp)
movss  -0xc(%rbp),%xmm0
movss  -0x10(%rbp),%xmm1
call   1030 <rectangle@plt>
movsd  -0x28(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x20(%rbp),%xmm0
lea    0xea8(%rip),%rdi
mov    $0x3,%al
call   1060 <printf@plt>
movss  -0xc(%rbp),%xmm0
ucomiss -0x10(%rbp),%xmm0
jne    1323 <main+0x1c3>
jp     1323 <main+0x1c3>
lea    0xec6(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    143d <main+0x2dd>
movss  -0x8(%rbp),%xmm0
movss  0xcd7(%rip),%xmm1
ucomiss %xmm1,%xmm0
jne    13cb <main+0x26b>
jp     13cb <main+0x26b>
lea    0xeb8(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xd1f(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1080 <scanf@plt>
lea    0xee2(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xd01(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1080 <scanf@plt>
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
movss  -0xc(%rbp),%xmm0
movss  -0x10(%rbp),%xmm1
call   1050 <triangle@plt>
movsd  -0x38(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x30(%rbp),%xmm0
lea    0xed6(%rip),%rdi
mov    $0x3,%al
call   1060 <printf@plt>
jmp    1438 <main+0x2d8>
movss  -0x8(%rbp),%xmm0
movss  0xc2c(%rip),%xmm1
ucomiss %xmm1,%xmm0
jne    1433 <main+0x2d3>
jp     1433 <main+0x2d3>
lea    0xf05(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xc7c(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1080 <scanf@plt>
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
movss  -0xc(%rbp),%xmm0
call   1070 <circle@plt>
movaps %xmm0,%xmm1
movsd  -0x40(%rbp),%xmm0
lea    0xefd(%rip),%rdi
mov    $0x2,%al
call   1060 <printf@plt>
jmp    1438 <main+0x2d8>
jmp    143d <main+0x2dd>
jmp    1442 <main+0x2e2>
jmp    116f <main+0xf>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
lea    0xfc2(%rip),%rdi
call   1030 <puts@plt>
lea    0xe83(%rip),%rdi
lea    0x1c(%rsp),%rsi
call   1090 <scanf@plt>
movss  0x1c(%rsp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    11ca <main+0x5a>
jp     11ca <main+0x5a>
lea    0xe66(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x115c(%rip),%r14
lea    0xf6f(%rip),%r15
lea    0xe35(%rip),%rbx
lea    0x1c(%rsp),%r12
lea    0x8(%rsp),%rbp
lea    0xe52(%rip),%r13
jmp    1230 <main+0xc0>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r14,%rdi
call   1030 <puts@plt>
mov    %r15,%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1090 <scanf@plt>
movss  0x1c(%rsp),%xmm0
ucomiss 0xde8(%rip),%xmm0
jne    1230 <main+0xc0>
jnp    11ab <main+0x3b>
movss  0xdc8(%rip),%xmm1
ucomiss %xmm0,%xmm1
ja     1200 <main+0x90>
ucomiss 0xdc0(%rip),%xmm0
ja     1200 <main+0x90>
ucomiss 0xdb3(%rip),%xmm0
jne    1298 <main+0x128>
jp     1298 <main+0x128>
lea    0x1097(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1090 <scanf@plt>
movss  0x8(%rsp),%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
call   1050 <square@plt>
movaps %xmm0,%xmm1
mov    %r13,%rdi
movsd  0x10(%rsp),%xmm0
mov    $0x2,%al
call   1070 <printf@plt>
jmp    1208 <main+0x98>
ucomiss 0xd69(%rip),%xmm0
jne    1346 <main+0x1d6>
jp     1346 <main+0x1d6>
lea    0xfc1(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1090 <scanf@plt>
lea    0xfd8(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
lea    0xc(%rsp),%rsi
call   1090 <scanf@plt>
movss  0x8(%rsp),%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
movss  0xc(%rsp),%xmm1
xorps  %xmm2,%xmm2
cvtss2sd %xmm1,%xmm2
movsd  %xmm2,0x20(%rsp)
call   1040 <rectangle@plt>
movaps %xmm0,%xmm2
lea    0xd67(%rip),%rdi
movsd  0x10(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
mov    $0x3,%al
call   1070 <printf@plt>
movss  0x8(%rsp),%xmm0
ucomiss 0xc(%rsp),%xmm0
jne    1208 <main+0x98>
jp     1208 <main+0x98>
lea    0xf8e(%rip),%rdi
jmp    1203 <main+0x93>
ucomiss 0xcbf(%rip),%xmm0
jne    13ce <main+0x25e>
jp     13ce <main+0x25e>
lea    0xe8b(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1090 <scanf@plt>
lea    0xebb(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
lea    0xc(%rsp),%rsi
call   1090 <scanf@plt>
movss  0x8(%rsp),%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
movss  0xc(%rsp),%xmm1
xorps  %xmm2,%xmm2
cvtss2sd %xmm1,%xmm2
movsd  %xmm2,0x20(%rsp)
call   1060 <triangle@plt>
movaps %xmm0,%xmm2
lea    0xd02(%rip),%rdi
movsd  0x10(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
mov    $0x3,%al
call   1070 <printf@plt>
jmp    1208 <main+0x98>
ucomiss 0xc2f(%rip),%xmm0
jne    1208 <main+0x98>
jp     1208 <main+0x98>
lea    0xdc6(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1090 <scanf@plt>
movss  0x8(%rsp),%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
call   1080 <circle@plt>
movaps %xmm0,%xmm1
lea    0xcfc(%rip),%rdi
jmp    1286 <main+0x116>

LLVM IR (-O0):
@.str = [104 x i8] c"Parakalw pieste 1 gia tetragwno, 2 gia parallhlogramo, 3 gia trigwno h 4 gia kuklo kai pieste [ENTER]:\0A\00"
@.str.1 = [4 x i8] c" %f\00"
@.str.2 = [42 x i8] c"*********Kleisimo arithmomhxanhs*********\00"
@.str.3 = [41 x i8] c"\0A\0ALathos epilogh, prospatheiste ksana!\0A\0A\00"
@.str.4 = [63 x i8] c"dwste to mhkos (se ekatosta) ths mias plevras tou tetragwnou:\0A\00"
@.str.5 = [53 x i8] c"H perimetros tou tetragwnou me plevra %f einai %f!\0A\0A\00"
@.str.6 = [47 x i8] c"dwste to mhkos (se ekatosta) parallhlogramou:\0A\00"
@.str.7 = [47 x i8] c"dwste to ypsos (se ekatosta) parallhlogramou:\0A\00"
@.str.8 = [65 x i8] c"H perimetros tou parallhlogramou me diastaseis %fx%f einai %f!\0A\0A\00"
@.str.9 = [33 x i8] c"(BTW, ayto einai tetragwno :p)\0A\0A\00"
@.str.10 = [72 x i8] c"dwste to mhkos (se ekatosta) ths prwths katheths plevras tou trigwnou:\0A\00"
@.str.11 = [74 x i8] c"dwste to ypsos (se ekatosta) ths deyterhs katheths plevras tou trigwnou:\0A\00"
@.str.12 = [94 x i8] c"H perimetros tou orthogwniou trigwnou me kathetes plevres %f kai %f cm antistoixa einai %f!\0A\0A\00"
@.str.13 = [54 x i8] c"dwste to mhkos (se ekatosta) ths aktinas tou kuklou:\0A\00"
@.str.14 = [49 x i8] c"H perimetros tou kuklou me aktina %f einai %f!\0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
store i32 0, i32* %1
br label %5
5: ; preds = %0, %18, %83
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([104 x i8], [104 x i8]* @.str, i64 0, i64 0))
%7 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), float* %2)
%8 = load float, float* %2
%9 = fcmp oeq float %8, 0.000000e+00
br i1 %9, label %10, label %12
10: ; preds = %5
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0))
ret i32 0
12: ; preds = %5
%13 = load float, float* %2
%14 = fcmp olt float %13, 1.000000e+00
br i1 %14, label %18, label %15
15: ; preds = %12
%16 = load float, float* %2
%17 = fcmp ogt float %16, 4.000000e+00
br i1 %17, label %18, label %20
18: ; preds = %15, %12
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0))
br label %5
20: ; preds = %15
%21 = load float, float* %2
%22 = fcmp oeq float %21, 1.000000e+00
br i1 %22, label %23, label %31
23: ; preds = %20
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.4, i64 0, i64 0))
%25 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), float* %3)
%26 = load float, float* %3
%27 = fpext float %26 to double
%28 = load float, float* %3
%29 = call double @square(float %28)
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.5, i64 0, i64 0), double %27, double %29)
br label %83
31: ; preds = %20
%32 = load float, float* %2
%33 = fcmp oeq float %32, 2.000000e+00
br i1 %33, label %34, label %53
34: ; preds = %31
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.6, i64 0, i64 0))
%36 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), float* %3)
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0))
%38 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), float* %4)
%39 = load float, float* %3
%40 = fpext float %39 to double
%41 = load float, float* %4
%42 = fpext float %41 to double
%43 = load float, float* %3
%44 = load float, float* %4
%45 = call double @rectangle(float %43, float %44)
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.8, i64 0, i64 0), double %40, double %42, double %45)
%47 = load float, float* %3
%48 = load float, float* %4
%49 = fcmp oeq float %47, %48
br i1 %49, label %50, label %52
50: ; preds = %34
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0))
br label %52
52: ; preds = %50, %34
br label %82
53: ; preds = %31
%54 = load float, float* %2
%55 = fcmp oeq float %54, 3.000000e+00
br i1 %55, label %56, label %69
56: ; preds = %53
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.10, i64 0, i64 0))
%58 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), float* %3)
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.11, i64 0, i64 0))
%60 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), float* %4)
%61 = load float, float* %3
%62 = fpext float %61 to double
%63 = load float, float* %4
%64 = fpext float %63 to double
%65 = load float, float* %3
%66 = load float, float* %4
%67 = call double @triangle(float %65, float %66)
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str.12, i64 0, i64 0), double %62, double %64, double %67)
br label %81
69: ; preds = %53
%70 = load float, float* %2
%71 = fcmp oeq float %70, 4.000000e+00
br i1 %71, label %72, label %80
72: ; preds = %69
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.13, i64 0, i64 0))
%74 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), float* %3)
%75 = load float, float* %3
%76 = fpext float %75 to double
%77 = load float, float* %3
%78 = call double @circle(float %77)
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.14, i64 0, i64 0), double %76, double %78)
br label %80
80: ; preds = %72, %69
br label %81
81: ; preds = %80, %56
br label %82
82: ; preds = %81, %52
br label %83
83: ; preds = %82, %23
br label %5
}

LLVM IR (-O2):
@.str.1 = [4 x i8] c" %f\00"
@.str.2 = [42 x i8] c"*********Kleisimo arithmomhxanhs*********\00"
@.str.5 = [53 x i8] c"H perimetros tou tetragwnou me plevra %f einai %f!\0A\0A\00"
@.str.8 = [65 x i8] c"H perimetros tou parallhlogramou me diastaseis %fx%f einai %f!\0A\0A\00"
@.str.12 = [94 x i8] c"H perimetros tou orthogwniou trigwnou me kathetes plevres %f kai %f cm antistoixa einai %f!\0A\0A\00"
@.str.14 = [49 x i8] c"H perimetros tou kuklou me aktina %f einai %f!\0A\0A\00"
@str = [103 x i8] c"Parakalw pieste 1 gia tetragwno, 2 gia parallhlogramo, 3 gia trigwno h 4 gia kuklo kai pieste [ENTER]:\00"
@str.15 = [53 x i8] c"dwste to mhkos (se ekatosta) ths aktinas tou kuklou:\00"
@str.16 = [71 x i8] c"dwste to mhkos (se ekatosta) ths prwths katheths plevras tou trigwnou:\00"
@str.17 = [73 x i8] c"dwste to ypsos (se ekatosta) ths deyterhs katheths plevras tou trigwnou:\00"
@str.18 = [46 x i8] c"dwste to mhkos (se ekatosta) parallhlogramou:\00"
@str.19 = [46 x i8] c"dwste to ypsos (se ekatosta) parallhlogramou:\00"
@str.20 = [32 x i8] c"(BTW, ayto einai tetragwno :p)\0A\00"
@str.21 = [62 x i8] c"dwste to mhkos (se ekatosta) ths mias plevras tou tetragwnou:\00"
@str.22 = [40 x i8] c"\0A\0ALathos epilogh, prospatheiste ksana!\0A\00"
define i32 @main() {
%1 = alloca float
%2 = alloca float
%3 = alloca float
%4 = bitcast float* %1 to i8*
%5 = bitcast float* %2 to i8*
%6 = bitcast float* %3 to i8*
%7 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([103 x i8], [103 x i8]* @str, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), float* %1)
%9 = load float, float* %1
%10 = fcmp oeq float %9, 0.000000e+00
br i1 %10, label %11, label %13
11: ; preds = %20, %0
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0))
ret i32 0
13: ; preds = %0, %20
%14 = phi float [ %23, %20 ], [ %9, %0 ]
%15 = fcmp olt float %14, 1.000000e+00
%16 = fcmp ogt float %14, 4.000000e+00
%17 = or i1 %15, %16
br i1 %17, label %18, label %25
18: ; preds = %13
%19 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.22, i64 0, i64 0))
br label %20
20: ; preds = %27, %54, %67, %65, %36, %50, %18
%21 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([103 x i8], [103 x i8]* @str, i64 0, i64 0))
%22 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), float* %1)
%23 = load float, float* %1
%24 = fcmp oeq float %23, 0.000000e+00
br i1 %24, label %11, label %13
25: ; preds = %13
%26 = fcmp oeq float %14, 1.000000e+00
br i1 %26, label %27, label %34
27: ; preds = %25
%28 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.21, i64 0, i64 0))
%29 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), float* %2)
%30 = load float, float* %2
%31 = fpext float %30 to double
%32 = call double @square(float %30)
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.5, i64 0, i64 0), double %31, double %32)
br label %20
34: ; preds = %25
%35 = fcmp oeq float %14, 2.000000e+00
br i1 %35, label %36, label %52
36: ; preds = %34
%37 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.18, i64 0, i64 0))
%38 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), float* %2)
%39 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.19, i64 0, i64 0))
%40 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), float* %3)
%41 = load float, float* %2
%42 = fpext float %41 to double
%43 = load float, float* %3
%44 = fpext float %43 to double
%45 = call double @rectangle(float %41, float %43)
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @.str.8, i64 0, i64 0), double %42, double %44, double %45)
%47 = load float, float* %2
%48 = load float, float* %3
%49 = fcmp oeq float %47, %48
br i1 %49, label %50, label %20
50: ; preds = %36
%51 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.20, i64 0, i64 0))
br label %20
52: ; preds = %34
%53 = fcmp oeq float %14, 3.000000e+00
br i1 %53, label %54, label %65
54: ; preds = %52
%55 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.16, i64 0, i64 0))
%56 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), float* %2)
%57 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.17, i64 0, i64 0))
%58 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), float* %3)
%59 = load float, float* %2
%60 = fpext float %59 to double
%61 = load float, float* %3
%62 = fpext float %61 to double
%63 = call double @triangle(float %59, float %61)
%64 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([94 x i8], [94 x i8]* @.str.12, i64 0, i64 0), double %60, double %62, double %63)
br label %20
65: ; preds = %52
%66 = fcmp oeq float %14, 4.000000e+00
br i1 %66, label %67, label %20
67: ; preds = %65
%68 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.15, i64 0, i64 0))
%69 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), float* %2)
%70 = load float, float* %2
%71 = fpext float %70 to double
%72 = call double @circle(float %70)
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.14, i64 0, i64 0), double %71, double %72)
br label %20
}