#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*/ arc_length();
int /*<<< orphan*/ circle_area();
int /*<<< orphan*/ circumference();
int /*<<< orphan*/ cylinder_surface_area();
int /*<<< orphan*/ cylinder_volume();
int /*<<< orphan*/ degree_to_radian();
int /*<<< orphan*/ parallelogram_area();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ programs();
int /*<<< orphan*/ quadratic_formula();
int /*<<< orphan*/ radian_to_degree();
int /*<<< orphan*/ scanf(char *, char *);
int /*<<< orphan*/ sector_area();
int /*<<< orphan*/ sphere_surface_area();
int /*<<< orphan*/ sphere_volume();
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ trapezoid_area();
int /*<<< orphan*/ triangle_area();
int main() {
  char program[3];
  while (strcmp(program, "q") != 0) {
    printf("Select a program: ");
    scanf("%4s", program);
    if (strcmp(program, "p") == 0) {
      programs();
    } else if (strcmp(program, "q") == 0) {
      printf("quitting...\n");
    } else if (strcmp(program, "d2r") == 0) {
      degree_to_radian();
    } else if (strcmp(program, "r2d") == 0) {
      radian_to_degree();
    } else if (strcmp(program, "ca") == 0) {
      circle_area();
    } else if (strcmp(program, "ta") == 0) {
      trapezoid_area();
    } else if (strcmp(program, "pa") == 0) {
      parallelogram_area();
    } else if (strcmp(program, "tea") == 0) {
      triangle_area();
    } else if (strcmp(program, "csa") == 0) {
      cylinder_surface_area();
    } else if (strcmp(program, "cv") == 0) {
      cylinder_volume();
    } else if (strcmp(program, "ssa") == 0) {
      sphere_surface_area();
    } else if (strcmp(program, "sv") == 0) {
      sphere_volume();
    } else if (strcmp(program, "c") == 0) {
      circumference();
    } else if (strcmp(program, "al") == 0) {
      arc_length();
    } else if (strcmp(program, "sa") == 0) {
      sector_area();
    } else if (strcmp(program, "qf") == 0) {
      quadratic_formula();
    } else {
      printf("That's not a program, type \"p\" for a list\n");
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x7(%rbp),%rdi
lea    0xdc6(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%rax
je     1526 <main+0x306>
lea    0xdb2(%rip),%rdi
call   1070 <printf@plt>
lea    -0x7(%rbp),%rsi
lea    0xdb5(%rip),%rdi
call   1100 <scanf@plt>
lea    -0x7(%rbp),%rdi
lea    0xda9(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%rax
jne    128b <main+0x6b>
mov    $0x0,%al
call   1040 <programs@plt>
jmp    1521 <main+0x301>
lea    -0x7(%rbp),%rdi
lea    0xd6a(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%rax
jne    12b6 <main+0x96>
lea    0xd6f(%rip),%rdi
call   1070 <printf@plt>
jmp    151c <main+0x2fc>
lea    -0x7(%rbp),%rdi
lea    0xd67(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%rax
jne    12dc <main+0xbc>
mov    $0x0,%al
call   1090 <degree_to_radian@plt>
jmp    1517 <main+0x2f7>
lea    -0x7(%rbp),%rdi
lea    0xd45(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%rax
jne    1302 <main+0xe2>
mov    $0x0,%al
call   10b0 <radian_to_degree@plt>
jmp    1512 <main+0x2f2>
lea    -0x7(%rbp),%rdi
lea    0xd23(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%rax
jne    1328 <main+0x108>
mov    $0x0,%al
call   10d0 <circle_area@plt>
jmp    150d <main+0x2ed>
lea    -0x7(%rbp),%rdi
lea    0xd00(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%rax
jne    134e <main+0x12e>
mov    $0x0,%al
call   1110 <trapezoid_area@plt>
jmp    1508 <main+0x2e8>
lea    -0x7(%rbp),%rdi
lea    0xcdd(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%rax
jne    1374 <main+0x154>
mov    $0x0,%al
call   1030 <parallelogram_area@plt>
jmp    1503 <main+0x2e3>
lea    -0x7(%rbp),%rdi
lea    0xcba(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%rax
jne    139a <main+0x17a>
mov    $0x0,%al
call   1060 <triangle_area@plt>
jmp    14fe <main+0x2de>
lea    -0x7(%rbp),%rdi
lea    0xc98(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%rax
jne    13c0 <main+0x1a0>
mov    $0x0,%al
call   10e0 <cylinder_surface_area@plt>
jmp    14f9 <main+0x2d9>
lea    -0x7(%rbp),%rdi
lea    0xc76(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%rax
jne    13e6 <main+0x1c6>
mov    $0x0,%al
call   1120 <cylinder_volume@plt>
jmp    14f4 <main+0x2d4>
lea    -0x7(%rbp),%rdi
lea    0xc53(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%rax
jne    140c <main+0x1ec>
mov    $0x0,%al
call   1130 <sphere_surface_area@plt>
jmp    14ef <main+0x2cf>
lea    -0x7(%rbp),%rdi
lea    0xc31(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%rax
jne    1432 <main+0x212>
mov    $0x0,%al
call   10a0 <sphere_volume@plt>
jmp    14ea <main+0x2ca>
lea    -0x7(%rbp),%rdi
lea    0xc0e(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%rax
jne    1458 <main+0x238>
mov    $0x0,%al
call   1140 <circumference@plt>
jmp    14e5 <main+0x2c5>
lea    -0x7(%rbp),%rdi
lea    0xbea(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%rax
jne    147e <main+0x25e>
mov    $0x0,%al
call   1050 <arc_length@plt>
jmp    14e0 <main+0x2c0>
lea    -0x7(%rbp),%rdi
lea    0xbb5(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%rax
jne    14a4 <main+0x284>
mov    $0x0,%al
call   1080 <sector_area@plt>
jmp    14db <main+0x2bb>
lea    -0x7(%rbp),%rdi
lea    0xba1(%rip),%rsi
call   10c0 <strcmp@plt>
cmp    $0x0,%rax
jne    14ca <main+0x2aa>
mov    $0x0,%al
call   10f0 <quadratic_formula@plt>
jmp    14d6 <main+0x2b6>
lea    0xb82(%rip),%rdi
call   1070 <printf@plt>
jmp    14db <main+0x2bb>
jmp    14e0 <main+0x2c0>
jmp    14e5 <main+0x2c5>
jmp    14ea <main+0x2ca>
jmp    14ef <main+0x2cf>
jmp    14f4 <main+0x2d4>
jmp    14f9 <main+0x2d9>
jmp    14fe <main+0x2de>
jmp    1503 <main+0x2e3>
jmp    1508 <main+0x2e8>
jmp    150d <main+0x2ed>
jmp    1512 <main+0x2f2>
jmp    1517 <main+0x2f7>
jmp    151c <main+0x2fc>
jmp    1521 <main+0x301>
jmp    122f <main+0xf>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xdbe(%rip),%rsi
lea    0x5(%rsp),%rdi
call   10d0 <strcmp@plt>
test   %rax,%rax
je     14e9 <main+0x2b9>
lea    0xda6(%rip),%r14
lea    0xdb2(%rip),%r15
lea    0x5(%rsp),%rbx
lea    0xdaa(%rip),%r12
lea    0xd8a(%rip),%r13
lea    0xd9e(%rip),%rbp
jmp    129b <main+0x6b>
nop
xor    %eax,%eax
call   1040 <programs@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
call   10d0 <strcmp@plt>
test   %rax,%rax
je     14e9 <main+0x2b9>
mov    %r14,%rdi
call   1080 <printf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1110 <scanf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   10d0 <strcmp@plt>
test   %rax,%rax
je     1280 <main+0x50>
mov    %rbx,%rdi
mov    %r13,%rsi
call   10d0 <strcmp@plt>
test   %rax,%rax
je     1430 <main+0x200>
mov    %rbx,%rdi
mov    %rbp,%rsi
call   10d0 <strcmp@plt>
test   %rax,%rax
je     1441 <main+0x211>
mov    %rbx,%rdi
lea    0xd2f(%rip),%rsi
call   10d0 <strcmp@plt>
test   %rax,%rax
je     144d <main+0x21d>
mov    %rbx,%rdi
lea    0xd1b(%rip),%rsi
call   10d0 <strcmp@plt>
test   %rax,%rax
je     1459 <main+0x229>
mov    %rbx,%rdi
lea    0xd06(%rip),%rsi
call   10d0 <strcmp@plt>
test   %rax,%rax
je     1465 <main+0x235>
mov    %rbx,%rdi
lea    0xcf1(%rip),%rsi
call   10d0 <strcmp@plt>
test   %rax,%rax
je     1471 <main+0x241>
mov    %rbx,%rdi
lea    0xcdc(%rip),%rsi
call   10d0 <strcmp@plt>
test   %rax,%rax
je     147d <main+0x24d>
mov    %rbx,%rdi
lea    0xcc8(%rip),%rsi
call   10d0 <strcmp@plt>
test   %rax,%rax
je     1489 <main+0x259>
mov    %rbx,%rdi
lea    0xcb4(%rip),%rsi
call   10d0 <strcmp@plt>
test   %rax,%rax
je     1495 <main+0x265>
mov    %rbx,%rdi
lea    0xc9f(%rip),%rsi
call   10d0 <strcmp@plt>
test   %rax,%rax
je     14a1 <main+0x271>
mov    %rbx,%rdi
lea    0xc8b(%rip),%rsi
call   10d0 <strcmp@plt>
test   %rax,%rax
je     14ad <main+0x27d>
mov    %rbx,%rdi
lea    0xc76(%rip),%rsi
call   10d0 <strcmp@plt>
test   %rax,%rax
je     14b9 <main+0x289>
mov    %rbx,%rdi
lea    0xc60(%rip),%rsi
call   10d0 <strcmp@plt>
test   %rax,%rax
je     14c5 <main+0x295>
mov    %rbx,%rdi
lea    0xc39(%rip),%rsi
call   10d0 <strcmp@plt>
test   %rax,%rax
je     14d1 <main+0x2a1>
mov    %rbx,%rdi
lea    0xc33(%rip),%rsi
call   10d0 <strcmp@plt>
test   %rax,%rax
je     14dd <main+0x2ad>
lea    0xc21(%rip),%rdi
jmp    1437 <main+0x207>
nopw   0x0(%rax,%rax,1)
lea    0xc39(%rip),%rdi
call   1050 <puts@plt>
jmp    1287 <main+0x57>
xor    %eax,%eax
call   10a0 <degree_to_radian@plt>
jmp    1287 <main+0x57>
xor    %eax,%eax
call   10c0 <radian_to_degree@plt>
jmp    1287 <main+0x57>
xor    %eax,%eax
call   10e0 <circle_area@plt>
jmp    1287 <main+0x57>
xor    %eax,%eax
call   1120 <trapezoid_area@plt>
jmp    1287 <main+0x57>
xor    %eax,%eax
call   1030 <parallelogram_area@plt>
jmp    1287 <main+0x57>
xor    %eax,%eax
call   1070 <triangle_area@plt>
jmp    1287 <main+0x57>
xor    %eax,%eax
call   10f0 <cylinder_surface_area@plt>
jmp    1287 <main+0x57>
xor    %eax,%eax
call   1130 <cylinder_volume@plt>
jmp    1287 <main+0x57>
xor    %eax,%eax
call   1140 <sphere_surface_area@plt>
jmp    1287 <main+0x57>
xor    %eax,%eax
call   10b0 <sphere_volume@plt>
jmp    1287 <main+0x57>
xor    %eax,%eax
call   1150 <circumference@plt>
jmp    1287 <main+0x57>
xor    %eax,%eax
call   1060 <arc_length@plt>
jmp    1287 <main+0x57>
xor    %eax,%eax
call   1090 <sector_area@plt>
jmp    1287 <main+0x57>
xor    %eax,%eax
call   1100 <quadratic_formula@plt>
jmp    1287 <main+0x57>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"q\00"
@.str.1 = [19 x i8] c"Select a program: \00"
@.str.2 = [4 x i8] c"%4s\00"
@.str.3 = [2 x i8] c"p\00"
@.str.4 = [13 x i8] c"quitting...\0A\00"
@.str.5 = [4 x i8] c"d2r\00"
@.str.6 = [4 x i8] c"r2d\00"
@.str.7 = [3 x i8] c"ca\00"
@.str.8 = [3 x i8] c"ta\00"
@.str.9 = [3 x i8] c"pa\00"
@.str.10 = [4 x i8] c"tea\00"
@.str.11 = [4 x i8] c"csa\00"
@.str.12 = [3 x i8] c"cv\00"
@.str.13 = [4 x i8] c"ssa\00"
@.str.14 = [3 x i8] c"sv\00"
@.str.15 = [2 x i8] c"c\00"
@.str.16 = [3 x i8] c"al\00"
@.str.17 = [3 x i8] c"sa\00"
@.str.18 = [3 x i8] c"qf\00"
@.str.19 = [43 x i8] c"That's not a program, type \22p\22 for a list\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [3 x i8]
store i32 0, i32* %1
br label %3
3: ; preds = %123, %0
%4 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%5 = call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %124
7: ; preds = %3
%8 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
%9 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%10 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %9)
%11 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%12 = call i64 @strcmp(i8* %11, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %7
%15 = call i32 (...) @programs()
br label %123
16: ; preds = %7
%17 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%18 = call i64 @strcmp(i8* %17, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %16
%21 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
br label %122
22: ; preds = %16
%23 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%24 = call i64 @strcmp(i8* %23, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %22
%27 = call i32 (...) @degree_to_radian()
br label %121
28: ; preds = %22
%29 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%30 = call i64 @strcmp(i8* %29, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %28
%33 = call i32 (...) @radian_to_degree()
br label %120
34: ; preds = %28
%35 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%36 = call i64 @strcmp(i8* %35, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%37 = icmp eq i64 %36, 0
br i1 %37, label %38, label %40
38: ; preds = %34
%39 = call i32 (...) @circle_area()
br label %119
40: ; preds = %34
%41 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%42 = call i64 @strcmp(i8* %41, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%43 = icmp eq i64 %42, 0
br i1 %43, label %44, label %46
44: ; preds = %40
%45 = call i32 (...) @trapezoid_area()
br label %118
46: ; preds = %40
%47 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%48 = call i64 @strcmp(i8* %47, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%49 = icmp eq i64 %48, 0
br i1 %49, label %50, label %52
50: ; preds = %46
%51 = call i32 (...) @parallelogram_area()
br label %117
52: ; preds = %46
%53 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%54 = call i64 @strcmp(i8* %53, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
%55 = icmp eq i64 %54, 0
br i1 %55, label %56, label %58
56: ; preds = %52
%57 = call i32 (...) @triangle_area()
br label %116
58: ; preds = %52
%59 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%60 = call i64 @strcmp(i8* %59, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
%61 = icmp eq i64 %60, 0
br i1 %61, label %62, label %64
62: ; preds = %58
%63 = call i32 (...) @cylinder_surface_area()
br label %115
64: ; preds = %58
%65 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%66 = call i64 @strcmp(i8* %65, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0))
%67 = icmp eq i64 %66, 0
br i1 %67, label %68, label %70
68: ; preds = %64
%69 = call i32 (...) @cylinder_volume()
br label %114
70: ; preds = %64
%71 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%72 = call i64 @strcmp(i8* %71, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0))
%73 = icmp eq i64 %72, 0
br i1 %73, label %74, label %76
74: ; preds = %70
%75 = call i32 (...) @sphere_surface_area()
br label %113
76: ; preds = %70
%77 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%78 = call i64 @strcmp(i8* %77, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0))
%79 = icmp eq i64 %78, 0
br i1 %79, label %80, label %82
80: ; preds = %76
%81 = call i32 (...) @sphere_volume()
br label %112
82: ; preds = %76
%83 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%84 = call i64 @strcmp(i8* %83, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
%85 = icmp eq i64 %84, 0
br i1 %85, label %86, label %88
86: ; preds = %82
%87 = call i32 (...) @circumference()
br label %111
88: ; preds = %82
%89 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%90 = call i64 @strcmp(i8* %89, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0))
%91 = icmp eq i64 %90, 0
br i1 %91, label %92, label %94
92: ; preds = %88
%93 = call i32 (...) @arc_length()
br label %110
94: ; preds = %88
%95 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%96 = call i64 @strcmp(i8* %95, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0))
%97 = icmp eq i64 %96, 0
br i1 %97, label %98, label %100
98: ; preds = %94
%99 = call i32 (...) @sector_area()
br label %109
100: ; preds = %94
%101 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%102 = call i64 @strcmp(i8* %101, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0))
%103 = icmp eq i64 %102, 0
br i1 %103, label %104, label %106
104: ; preds = %100
%105 = call i32 (...) @quadratic_formula()
br label %108
106: ; preds = %100
%107 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.19, i64 0, i64 0))
br label %108
108: ; preds = %106, %104
br label %109
109: ; preds = %108, %98
br label %110
110: ; preds = %109, %92
br label %111
111: ; preds = %110, %86
br label %112
112: ; preds = %111, %80
br label %113
113: ; preds = %112, %74
br label %114
114: ; preds = %113, %68
br label %115
115: ; preds = %114, %62
br label %116
116: ; preds = %115, %56
br label %117
117: ; preds = %116, %50
br label %118
118: ; preds = %117, %44
br label %119
119: ; preds = %118, %38
br label %120
120: ; preds = %119, %32
br label %121
121: ; preds = %120, %26
br label %122
122: ; preds = %121, %20
br label %123
123: ; preds = %122, %14
br label %3
124: ; preds = %3
ret i32 0
}

LLVM IR (-O2):
@.str = [2 x i8] c"q\00"
@.str.1 = [19 x i8] c"Select a program: \00"
@.str.2 = [4 x i8] c"%4s\00"
@.str.3 = [2 x i8] c"p\00"
@.str.5 = [4 x i8] c"d2r\00"
@.str.6 = [4 x i8] c"r2d\00"
@.str.7 = [3 x i8] c"ca\00"
@.str.8 = [3 x i8] c"ta\00"
@.str.9 = [3 x i8] c"pa\00"
@.str.10 = [4 x i8] c"tea\00"
@.str.11 = [4 x i8] c"csa\00"
@.str.12 = [3 x i8] c"cv\00"
@.str.13 = [4 x i8] c"ssa\00"
@.str.14 = [3 x i8] c"sv\00"
@.str.15 = [2 x i8] c"c\00"
@.str.16 = [3 x i8] c"al\00"
@.str.17 = [3 x i8] c"sa\00"
@.str.18 = [3 x i8] c"qf\00"
@str = [42 x i8] c"That's not a program, type \22p\22 for a list\00"
@str.20 = [12 x i8] c"quitting...\00"
define i32 @main() {
%1 = alloca [3 x i8]
%2 = getelementptr inbounds [3 x i8], [3 x i8]* %1, i64 0, i64 0
%3 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%4 = icmp eq i64 %3, 0
br i1 %4, label %92, label %5
5: ; preds = %0, %89
%6 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %2)
%8 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %5
%11 = call i32 (...) @programs()
br label %89
12: ; preds = %5
%13 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.20, i64 0, i64 0))
br label %89
17: ; preds = %12
%18 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %17
%21 = call i32 (...) @degree_to_radian()
br label %89
22: ; preds = %17
%23 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %22
%26 = call i32 (...) @radian_to_degree()
br label %89
27: ; preds = %22
%28 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %27
%31 = call i32 (...) @circle_area()
br label %89
32: ; preds = %27
%33 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %32
%36 = call i32 (...) @trapezoid_area()
br label %89
37: ; preds = %32
%38 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%39 = icmp eq i64 %38, 0
br i1 %39, label %40, label %42
40: ; preds = %37
%41 = call i32 (...) @parallelogram_area()
br label %89
42: ; preds = %37
%43 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
%44 = icmp eq i64 %43, 0
br i1 %44, label %45, label %47
45: ; preds = %42
%46 = call i32 (...) @triangle_area()
br label %89
47: ; preds = %42
%48 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
%49 = icmp eq i64 %48, 0
br i1 %49, label %50, label %52
50: ; preds = %47
%51 = call i32 (...) @cylinder_surface_area()
br label %89
52: ; preds = %47
%53 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0))
%54 = icmp eq i64 %53, 0
br i1 %54, label %55, label %57
55: ; preds = %52
%56 = call i32 (...) @cylinder_volume()
br label %89
57: ; preds = %52
%58 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0))
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %62
60: ; preds = %57
%61 = call i32 (...) @sphere_surface_area()
br label %89
62: ; preds = %57
%63 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0))
%64 = icmp eq i64 %63, 0
br i1 %64, label %65, label %67
65: ; preds = %62
%66 = call i32 (...) @sphere_volume()
br label %89
67: ; preds = %62
%68 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
%69 = icmp eq i64 %68, 0
br i1 %69, label %70, label %72
70: ; preds = %67
%71 = call i32 (...) @circumference()
br label %89
72: ; preds = %67
%73 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0))
%74 = icmp eq i64 %73, 0
br i1 %74, label %75, label %77
75: ; preds = %72
%76 = call i32 (...) @arc_length()
br label %89
77: ; preds = %72
%78 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0))
%79 = icmp eq i64 %78, 0
br i1 %79, label %80, label %82
80: ; preds = %77
%81 = call i32 (...) @sector_area()
br label %89
82: ; preds = %77
%83 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0))
%84 = icmp eq i64 %83, 0
br i1 %84, label %85, label %87
85: ; preds = %82
%86 = call i32 (...) @quadratic_formula()
br label %89
87: ; preds = %82
%88 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str, i64 0, i64 0))
br label %89
89: ; preds = %15, %25, %35, %45, %55, %65, %75, %85, %87, %80, %70, %60, %50, %40, %30, %20, %10
%90 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%91 = icmp eq i64 %90, 0
br i1 %91, label %92, label %5
92: ; preds = %89, %0
ret i32 0
}