#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 additional(int, int);
double average(int);
double combinations(int, int);
double division(float, float);
int divisionRemain(int, int);
double factorial(int);
int /*<<< orphan*/ getchar();
int modulo(int, int);
int multiply(int, int);
double power(int, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, ...);
int subtraction(int, int);
int sum(int);
int main(void) {
  int x, y;
  char sign;
  float numerator, denominator;
  do {
    printf("> ");
    scanf("%c", &sign);
    switch (sign) {
    case '+':
      scanf("%d%d", &x, &y);
      printf("# %d\n", additional(x, y));
      break;
    case '-':
      scanf("%d%d", &x, &y);
      printf("# %d\n", subtraction(x, y));
      break;
    case '/':
      scanf("%f%f", &numerator, &denominator);
      printf("# %.2f\n", division(numerator, denominator));
      break;
    case 'd':
      scanf("%d%d", &x, &y);
      printf("# %d\n", divisionRemain(x, y));
      break;
    case 'm':
      scanf("%d%d", &x, &y);
      printf("# %d\n", modulo(x, y));
      break;
    case '*':
      scanf("%d%d", &x, &y);
      printf("# %d\n", multiply(x, y));
      break;
    case '^':
      scanf("%d%d", &x, &y);
      printf("# %ld\n", power(x, y));
      break;
    case '!':
      scanf("%d", &x);
      printf("# %lld\n", factorial(x));
      break;
    case 's':
      scanf("%d", &x);
      printf("# %d\n", sum(x));
      break;
    case 'a':
      scanf("%d", &x);
      printf("# %.2f\n", average(x));
      break;
    case 'c':
      scanf("%d%d", &x, &y);
      printf("# %lld\n", combinations(x, y));
      break;
    }
    getchar();
  } while (sign != 'q');
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xf56(%rip),%rdi
xor    %eax,%eax
mov    %al,-0x21(%rbp)
call   1070 <printf@plt>
mov    -0x21(%rbp),%al
lea    0xf45(%rip),%rdi
lea    -0xd(%rbp),%rsi
call   1100 <scanf@plt>
movsbl -0xd(%rbp),%eax
add    $0xffffffdf,%eax
mov    %eax,%ecx
mov    %rcx,-0x20(%rbp)
sub    $0x52,%eax
ja     146f <main+0x28f>
mov    -0x20(%rbp),%rax
lea    0xdcc(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf0e(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
mov    $0x0,%al
call   1100 <scanf@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1080 <additional@plt>
mov    %eax,%esi
lea    0xef0(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    146f <main+0x28f>
lea    0xed8(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
mov    $0x0,%al
call   1100 <scanf@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   10f0 <subtraction@plt>
mov    %eax,%esi
lea    0xeba(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    146f <main+0x28f>
lea    0xead(%rip),%rdi
lea    -0x14(%rbp),%rsi
lea    -0x18(%rbp),%rdx
mov    $0x0,%al
call   1100 <scanf@plt>
movss  -0x14(%rbp),%xmm0
movss  -0x18(%rbp),%xmm1
call   1090 <division@plt>
lea    0xe8d(%rip),%rdi
mov    $0x1,%al
call   1070 <printf@plt>
jmp    146f <main+0x28f>
lea    0xe6a(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
mov    $0x0,%al
call   1100 <scanf@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   10d0 <divisionRemain@plt>
mov    %eax,%esi
lea    0xe4c(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    146f <main+0x28f>
lea    0xe34(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
mov    $0x0,%al
call   1100 <scanf@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   10b0 <modulo@plt>
mov    %eax,%esi
lea    0xe16(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    146f <main+0x28f>
lea    0xdfe(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
mov    $0x0,%al
call   1100 <scanf@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1040 <multiply@plt>
mov    %eax,%esi
lea    0xde0(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    146f <main+0x28f>
lea    0xdc8(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
mov    $0x0,%al
call   1100 <scanf@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1030 <power@plt>
lea    0xdbf(%rip),%rdi
mov    $0x1,%al
call   1070 <printf@plt>
jmp    146f <main+0x28f>
lea    0xd96(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1100 <scanf@plt>
mov    -0x8(%rbp),%edi
call   1050 <factorial@plt>
lea    0xd99(%rip),%rdi
mov    $0x1,%al
call   1070 <printf@plt>
jmp    146f <main+0x28f>
lea    0xd69(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1100 <scanf@plt>
mov    -0x8(%rbp),%edi
call   10c0 <sum@plt>
mov    %eax,%esi
lea    0xd50(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
jmp    146f <main+0x28f>
lea    0xd3a(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1100 <scanf@plt>
mov    -0x8(%rbp),%edi
call   10e0 <average@plt>
lea    0xd2e(%rip),%rdi
mov    $0x1,%al
call   1070 <printf@plt>
jmp    146f <main+0x28f>
lea    0xd0b(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
mov    $0x0,%al
call   1100 <scanf@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1060 <combinations@plt>
lea    0xd09(%rip),%rdi
mov    $0x1,%al
call   1070 <printf@plt>
mov    $0x0,%al
call   10a0 <getchar@plt>
movsbl -0xd(%rbp),%eax
cmp    $0x71,%eax
jne    11ef <main+0xf>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0xf57(%rip),%r14
lea    0xf53(%rip),%r15
lea    0x7(%rsp),%rbx
lea    0xdf8(%rip),%rbp
lea    0x8(%rsp),%r13
lea    0xc(%rsp),%r12
jmp    1252 <main+0x72>
lea    0xf39(%rip),%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1100 <scanf@plt>
mov    0x8(%rsp),%edi
call   10c0 <sum@plt>
xchg   %ax,%ax
lea    0xf20(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1070 <printf@plt>
xor    %eax,%eax
call   10a0 <getchar@plt>
cmpb   $0x71,0x7(%rsp)
je     1410 <main+0x230>
mov    %r14,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1100 <scanf@plt>
movsbl 0x7(%rsp),%eax
add    $0xffffffdf,%eax
cmp    $0x52,%eax
ja     1240 <main+0x60>
movslq 0x0(%rbp,%rax,4),%rax
add    %rbp,%rax
jmp    *%rax
lea    0xecd(%rip),%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1100 <scanf@plt>
mov    0x8(%rsp),%edi
call   1050 <factorial@plt>
jmp    13b1 <main+0x1d1>
lea    0xeac(%rip),%rdi
mov    %r13,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   1100 <scanf@plt>
mov    0x8(%rsp),%edi
mov    0xc(%rsp),%esi
call   1040 <multiply@plt>
jmp    1230 <main+0x50>
lea    0xe86(%rip),%rdi
mov    %r13,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   1100 <scanf@plt>
mov    0x8(%rsp),%edi
mov    0xc(%rsp),%esi
call   1080 <additional@plt>
jmp    1230 <main+0x50>
lea    0xe60(%rip),%rdi
mov    %r13,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   1100 <scanf@plt>
mov    0x8(%rsp),%edi
mov    0xc(%rsp),%esi
call   10f0 <subtraction@plt>
jmp    1230 <main+0x50>
lea    0xe45(%rip),%rdi
lea    0x14(%rsp),%rsi
lea    0x10(%rsp),%rdx
xor    %eax,%eax
call   1100 <scanf@plt>
movss  0x14(%rsp),%xmm0
movss  0x10(%rsp),%xmm1
call   1090 <division@plt>
lea    0xe21(%rip),%rdi
jmp    13b8 <main+0x1d8>
lea    0xe08(%rip),%rdi
mov    %r13,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   1100 <scanf@plt>
mov    0x8(%rsp),%edi
mov    0xc(%rsp),%esi
call   1030 <power@plt>
lea    0xdff(%rip),%rdi
jmp    13b8 <main+0x1d8>
lea    0xde0(%rip),%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1100 <scanf@plt>
mov    0x8(%rsp),%edi
call   10e0 <average@plt>
lea    0xdd4(%rip),%rdi
jmp    13b8 <main+0x1d8>
lea    0xdbb(%rip),%rdi
mov    %r13,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   1100 <scanf@plt>
mov    0x8(%rsp),%edi
mov    0xc(%rsp),%esi
call   1060 <combinations@plt>
lea    0xdb9(%rip),%rdi
mov    $0x1,%al
call   1070 <printf@plt>
jmp    1240 <main+0x60>
lea    0xd87(%rip),%rdi
mov    %r13,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   1100 <scanf@plt>
mov    0x8(%rsp),%edi
mov    0xc(%rsp),%esi
call   10d0 <divisionRemain@plt>
jmp    1230 <main+0x50>
lea    0xd61(%rip),%rdi
mov    %r13,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   1100 <scanf@plt>
mov    0x8(%rsp),%edi
mov    0xc(%rsp),%esi
call   10b0 <modulo@plt>
jmp    1230 <main+0x50>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"> \00"
@.str.1 = [3 x i8] c"%c\00"
@.str.2 = [5 x i8] c"%d%d\00"
@.str.3 = [6 x i8] c"# %d\0A\00"
@.str.4 = [5 x i8] c"%f%f\00"
@.str.5 = [8 x i8] c"# %.2f\0A\00"
@.str.6 = [7 x i8] c"# %ld\0A\00"
@.str.7 = [3 x i8] c"%d\00"
@.str.8 = [8 x i8] c"# %lld\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i8
%5 = alloca float
%6 = alloca float
store i32 0, i32* %1
br label %7
7: ; preds = %77, %0
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%9 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%10 = load i8, i8* %4
%11 = sext i8 %10 to i32
switch i32 %11, label %75 [
i32 43, label %12
i32 45, label %18
i32 47, label %24
i32 100, label %30
i32 109, label %36
i32 42, label %42
i32 94, label %48
i32 33, label %54
i32 115, label %59
i32 97, label %64
i32 99, label %69
]
12: ; preds = %7
%13 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32* %2, i32* %3)
%14 = load i32, i32* %2
%15 = load i32, i32* %3
%16 = call i32 @additional(i32 %14, i32 %15)
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 %16)
br label %75
18: ; preds = %7
%19 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32* %2, i32* %3)
%20 = load i32, i32* %2
%21 = load i32, i32* %3
%22 = call i32 @subtraction(i32 %20, i32 %21)
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 %22)
br label %75
24: ; preds = %7
%25 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), float* %5, float* %6)
%26 = load float, float* %5
%27 = load float, float* %6
%28 = call double @division(float %26, float %27)
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), double %28)
br label %75
30: ; preds = %7
%31 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32* %2, i32* %3)
%32 = load i32, i32* %2
%33 = load i32, i32* %3
%34 = call i32 @divisionRemain(i32 %32, i32 %33)
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 %34)
br label %75
36: ; preds = %7
%37 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32* %2, i32* %3)
%38 = load i32, i32* %2
%39 = load i32, i32* %3
%40 = call i32 @modulo(i32 %38, i32 %39)
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 %40)
br label %75
42: ; preds = %7
%43 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32* %2, i32* %3)
%44 = load i32, i32* %2
%45 = load i32, i32* %3
%46 = call i32 @multiply(i32 %44, i32 %45)
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 %46)
br label %75
48: ; preds = %7
%49 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32* %2, i32* %3)
%50 = load i32, i32* %2
%51 = load i32, i32* %3
%52 = call double @power(i32 %50, i32 %51)
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), double %52)
br label %75
54: ; preds = %7
%55 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %2)
%56 = load i32, i32* %2
%57 = call double @factorial(i32 %56)
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), double %57)
br label %75
59: ; preds = %7
%60 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %2)
%61 = load i32, i32* %2
%62 = call i32 @sum(i32 %61)
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 %62)
br label %75
64: ; preds = %7
%65 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %2)
%66 = load i32, i32* %2
%67 = call double @average(i32 %66)
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), double %67)
br label %75
69: ; preds = %7
%70 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32* %2, i32* %3)
%71 = load i32, i32* %2
%72 = load i32, i32* %3
%73 = call double @combinations(i32 %71, i32 %72)
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), double %73)
br label %75
75: ; preds = %7, %69, %64, %59, %54, %48, %42, %36, %30, %24, %18, %12
%76 = call i32 (...) @getchar()
br label %77
77: ; preds = %75
%78 = load i8, i8* %4
%79 = sext i8 %78 to i32
%80 = icmp ne i32 %79, 113
br i1 %80, label %7, label %81
81: ; preds = %77
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"> \00"
@.str.1 = [3 x i8] c"%c\00"
@.str.2 = [5 x i8] c"%d%d\00"
@.str.3 = [6 x i8] c"# %d\0A\00"
@.str.4 = [5 x i8] c"%f%f\00"
@.str.5 = [8 x i8] c"# %.2f\0A\00"
@.str.6 = [7 x i8] c"# %ld\0A\00"
@.str.7 = [3 x i8] c"%d\00"
@.str.8 = [8 x i8] c"# %lld\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i8
%4 = alloca float
%5 = alloca float
%6 = bitcast i32* %1 to i8*
%7 = bitcast i32* %2 to i8*
%8 = bitcast float* %4 to i8*
%9 = bitcast float* %5 to i8*
br label %10
10: ; preds = %78, %0
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%12 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %3)
%13 = load i8, i8* %3
%14 = sext i8 %13 to i32
switch i32 %14, label %78 [
i32 43, label %15
i32 45, label %21
i32 47, label %27
i32 100, label %33
i32 109, label %39
i32 42, label %45
i32 94, label %51
i32 33, label %57
i32 115, label %62
i32 97, label %67
i32 99, label %72
]
15: ; preds = %10
%16 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32* %1, i32* %2)
%17 = load i32, i32* %1
%18 = load i32, i32* %2
%19 = call i32 @additional(i32 %17, i32 %18)
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 %19)
br label %78
21: ; preds = %10
%22 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32* %1, i32* %2)
%23 = load i32, i32* %1
%24 = load i32, i32* %2
%25 = call i32 @subtraction(i32 %23, i32 %24)
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 %25)
br label %78
27: ; preds = %10
%28 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), float* %4, float* %5)
%29 = load float, float* %4
%30 = load float, float* %5
%31 = call double @division(float %29, float %30)
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), double %31)
br label %78
33: ; preds = %10
%34 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32* %1, i32* %2)
%35 = load i32, i32* %1
%36 = load i32, i32* %2
%37 = call i32 @divisionRemain(i32 %35, i32 %36)
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 %37)
br label %78
39: ; preds = %10
%40 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32* %1, i32* %2)
%41 = load i32, i32* %1
%42 = load i32, i32* %2
%43 = call i32 @modulo(i32 %41, i32 %42)
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 %43)
br label %78
45: ; preds = %10
%46 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32* %1, i32* %2)
%47 = load i32, i32* %1
%48 = load i32, i32* %2
%49 = call i32 @multiply(i32 %47, i32 %48)
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 %49)
br label %78
51: ; preds = %10
%52 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32* %1, i32* %2)
%53 = load i32, i32* %1
%54 = load i32, i32* %2
%55 = call double @power(i32 %53, i32 %54)
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), double %55)
br label %78
57: ; preds = %10
%58 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %1)
%59 = load i32, i32* %1
%60 = call double @factorial(i32 %59)
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), double %60)
br label %78
62: ; preds = %10
%63 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %1)
%64 = load i32, i32* %1
%65 = call i32 @sum(i32 %64)
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 %65)
br label %78
67: ; preds = %10
%68 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %1)
%69 = load i32, i32* %1
%70 = call double @average(i32 %69)
%71 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), double %70)
br label %78
72: ; preds = %10
%73 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32* %1, i32* %2)
%74 = load i32, i32* %1
%75 = load i32, i32* %2
%76 = call double @combinations(i32 %74, i32 %75)
%77 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), double %76)
br label %78
78: ; preds = %10, %72, %67, %62, %57, %51, %45, %39, %33, %27, %21, %15
%79 = call i32 (...) @getchar()
%80 = load i8, i8* %3
%81 = icmp eq i8 %80, 113
br i1 %81, label %82, label %10
82: ; preds = %78
ret i32 0
}