#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 addRange(int, int);
int factorial(int);
int fib(int);
int gcd(int, int);
int /*<<< orphan*/ multiplicationTable(int);
int /*<<< orphan*/ outputRange(int, int);
int prime(int);
int /*<<< orphan*/ printf(char *, ...);
int main() {
  printf("outputRange(3, 7)\n");
  outputRange(3, 7);
  printf("outputRange(7, 3)\n");
  outputRange(7, 3);
  printf("\n");
  printf("addRange(a, b)\n");
  printf("%u\n", addRange(3, 7));
  printf("factorial(n)\n");
  printf("%u\n", factorial(0));
  printf("%u\n", factorial(1));
  printf("%u\n", factorial(2));
  printf("%u\n", factorial(3));
  printf("%u\n", factorial(4));
  printf("fib(n)\n");
  printf("%u\n", fib(0));
  printf("%u\n", fib(1));
  printf("%u\n", fib(2));
  printf("%u\n", fib(3));
  printf("%u\n", fib(4));
  printf("%u\n", fib(5));
  printf("%u\n", fib(6));
  printf("----------\n");
  printf("%u\n", fib(7));
  printf("%u\n", fib(5) + fib(6));
  printf("prime(n)\n");
  printf("2 is %i prime.\n", prime(2));
  printf("3 is %i prime.\n", prime(3));
  printf("5 is %i prime.\n", prime(5));
  printf("7 is %i prime.\n", prime(7));
  printf("11 is %i prime.\n", prime(11));
  printf("----------\n");
  printf("1 is %i prime.\n", prime(1));
  printf("4 is %i prime.\n", prime(4));
  printf("9 is %i prime.\n", prime(9));
  printf("gcd(a, b)\n");
  printf("GCD of 6 and 6 is %u.\n", gcd(6, 6));
  printf("GCD of 3 and 9 is %u.\n", gcd(3, 9));
  printf("GCD of 9 and 3 is %u.\n", gcd(9, 3));
  printf("GCD of 300 and 110 is %u.\n", gcd(300, 110));
  printf("GCD of 2 and 21 is %u.\n", gcd(2, 21));
  printf("multiplicationTable(18)\n");
  multiplicationTable(18);
  printf("----------\n");
  multiplicationTable(0);
  printf("----------\n");
  multiplicationTable(1);
  printf("----------\n");
  multiplicationTable(12);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe6a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x3,%edi
mov    $0x7,%esi
call   1060 <outputRange@plt>
lea    0xe60(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x7,%edi
mov    $0x3,%esi
call   1060 <outputRange@plt>
lea    0xe54(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe48(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x3,%edi
mov    $0x7,%esi
call   1070 <addRange@plt>
mov    %eax,%esi
lea    0xe39(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe2f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   1030 <factorial@plt>
mov    %eax,%esi
lea    0xe14(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x1,%edi
call   1030 <factorial@plt>
mov    %eax,%esi
lea    0xdfa(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x2,%edi
call   1030 <factorial@plt>
mov    %eax,%esi
lea    0xde0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x3,%edi
call   1030 <factorial@plt>
mov    %eax,%esi
lea    0xdc6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x4,%edi
call   1030 <factorial@plt>
mov    %eax,%esi
lea    0xdac(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xdb0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   1080 <fib@plt>
mov    %eax,%esi
lea    0xd87(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x1,%edi
call   1080 <fib@plt>
mov    %eax,%esi
lea    0xd6d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x2,%edi
call   1080 <fib@plt>
mov    %eax,%esi
lea    0xd53(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x3,%edi
call   1080 <fib@plt>
mov    %eax,%esi
lea    0xd39(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x4,%edi
call   1080 <fib@plt>
mov    %eax,%esi
lea    0xd1f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x5,%edi
call   1080 <fib@plt>
mov    %eax,%esi
lea    0xd05(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x6,%edi
call   1080 <fib@plt>
mov    %eax,%esi
lea    0xceb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xcf7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x7,%edi
call   1080 <fib@plt>
mov    %eax,%esi
lea    0xcc3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x5,%edi
call   1080 <fib@plt>
mov    %eax,-0x8(%rbp)
mov    $0x6,%edi
call   1080 <fib@plt>
mov    -0x8(%rbp),%esi
add    %eax,%esi
lea    0xc99(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xcb1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x2,%edi
call   1090 <prime@plt>
mov    %eax,%esi
lea    0xca1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x3,%edi
call   1090 <prime@plt>
mov    %eax,%esi
lea    0xc97(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x5,%edi
call   1090 <prime@plt>
mov    %eax,%esi
lea    0xc8d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x7,%edi
call   1090 <prime@plt>
mov    %eax,%esi
lea    0xc83(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xb,%edi
call   1090 <prime@plt>
mov    %eax,%esi
lea    0xc79(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xc15(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x1,%edi
call   1090 <prime@plt>
mov    %eax,%esi
lea    0xc52(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x4,%edi
call   1090 <prime@plt>
mov    %eax,%esi
lea    0xc48(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x9,%edi
call   1090 <prime@plt>
mov    %eax,%esi
lea    0xc3e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xc40(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x6,%esi
mov    %esi,%edi
call   10a0 <gcd@plt>
mov    %eax,%esi
lea    0xc2f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x3,%edi
mov    $0x9,%esi
call   10a0 <gcd@plt>
mov    %eax,%esi
lea    0xc27(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x9,%edi
mov    $0x3,%esi
call   10a0 <gcd@plt>
mov    %eax,%esi
lea    0xc1f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x12c,%edi
mov    $0x6e,%esi
call   10a0 <gcd@plt>
mov    %eax,%esi
lea    0xc17(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x2,%edi
mov    $0x15,%esi
call   10a0 <gcd@plt>
mov    %eax,%esi
lea    0xc13(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xc1d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x12,%edi
call   1050 <multiplicationTable@plt>
lea    0xafb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   1050 <multiplicationTable@plt>
lea    0xae6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x1,%edi
call   1050 <multiplicationTable@plt>
lea    0xace(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xc,%edi
call   1050 <multiplicationTable@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
lea    0xf42(%rip),%rdi
call   1040 <puts@plt>
mov    $0x3,%edi
mov    $0x7,%esi
call   1080 <outputRange@plt>
lea    0xf39(%rip),%rdi
call   1040 <puts@plt>
mov    $0x7,%edi
mov    $0x3,%esi
call   1080 <outputRange@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf26(%rip),%rdi
call   1040 <puts@plt>
mov    $0x3,%edi
mov    $0x7,%esi
call   1090 <addRange@plt>
lea    0xdfa(%rip),%rbx
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xf07(%rip),%rdi
call   1040 <puts@plt>
xor    %edi,%edi
call   1050 <factorial@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x1,%edi
call   1050 <factorial@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x2,%edi
call   1050 <factorial@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x3,%edi
call   1050 <factorial@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x4,%edi
call   1050 <factorial@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe9d(%rip),%rdi
call   1040 <puts@plt>
xor    %edi,%edi
call   10a0 <fib@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x1,%edi
call   10a0 <fib@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x2,%edi
call   10a0 <fib@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x3,%edi
call   10a0 <fib@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x4,%edi
call   10a0 <fib@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x5,%edi
call   10a0 <fib@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x6,%edi
call   10a0 <fib@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe2c(%rip),%r14
mov    %r14,%rdi
call   1040 <puts@plt>
mov    $0x7,%edi
call   10a0 <fib@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x5,%edi
call   10a0 <fib@plt>
mov    %eax,%ebp
mov    $0x6,%edi
call   10a0 <fib@plt>
add    %eax,%ebp
mov    %rbx,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xdb8(%rip),%rdi
call   1040 <puts@plt>
mov    $0x2,%edi
call   10b0 <prime@plt>
lea    0xc72(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x3,%edi
call   10b0 <prime@plt>
lea    0xc68(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x5,%edi
call   10b0 <prime@plt>
lea    0xc5e(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x7,%edi
call   10b0 <prime@plt>
lea    0xc54(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xb,%edi
call   10b0 <prime@plt>
lea    0xc4a(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
mov    $0x1,%edi
call   10b0 <prime@plt>
lea    0xc29(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x4,%edi
call   10b0 <prime@plt>
lea    0xc1f(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x9,%edi
call   10b0 <prime@plt>
lea    0xc15(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xcdd(%rip),%rdi
call   1040 <puts@plt>
mov    $0x6,%edi
mov    $0x6,%esi
call   10c0 <gcd@plt>
lea    0xbfa(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x3,%edi
mov    $0x9,%esi
call   10c0 <gcd@plt>
lea    0xbf2(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x9,%edi
mov    $0x3,%esi
call   10c0 <gcd@plt>
lea    0xbea(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x12c,%edi
mov    $0x6e,%esi
call   10c0 <gcd@plt>
lea    0xbe2(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x2,%edi
mov    $0x15,%esi
call   10c0 <gcd@plt>
lea    0xbde(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xc40(%rip),%rdi
call   1040 <puts@plt>
mov    $0x12,%edi
call   1070 <multiplicationTable@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
xor    %edi,%edi
call   1070 <multiplicationTable@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
mov    $0x1,%edi
call   1070 <multiplicationTable@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
mov    $0xc,%edi
call   1070 <multiplicationTable@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [19 x i8] c"outputRange(3, 7)\0A\00"
@.str.1 = [19 x i8] c"outputRange(7, 3)\0A\00"
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [16 x i8] c"addRange(a, b)\0A\00"
@.str.4 = [4 x i8] c"%u\0A\00"
@.str.5 = [14 x i8] c"factorial(n)\0A\00"
@.str.6 = [8 x i8] c"fib(n)\0A\00"
@.str.7 = [12 x i8] c"----------\0A\00"
@.str.8 = [10 x i8] c"prime(n)\0A\00"
@.str.9 = [16 x i8] c"2 is %i prime.\0A\00"
@.str.10 = [16 x i8] c"3 is %i prime.\0A\00"
@.str.11 = [16 x i8] c"5 is %i prime.\0A\00"
@.str.12 = [16 x i8] c"7 is %i prime.\0A\00"
@.str.13 = [17 x i8] c"11 is %i prime.\0A\00"
@.str.14 = [16 x i8] c"1 is %i prime.\0A\00"
@.str.15 = [16 x i8] c"4 is %i prime.\0A\00"
@.str.16 = [16 x i8] c"9 is %i prime.\0A\00"
@.str.17 = [11 x i8] c"gcd(a, b)\0A\00"
@.str.18 = [23 x i8] c"GCD of 6 and 6 is %u.\0A\00"
@.str.19 = [23 x i8] c"GCD of 3 and 9 is %u.\0A\00"
@.str.20 = [23 x i8] c"GCD of 9 and 3 is %u.\0A\00"
@.str.21 = [27 x i8] c"GCD of 300 and 110 is %u.\0A\00"
@.str.22 = [24 x i8] c"GCD of 2 and 21 is %u.\0A\00"
@.str.23 = [25 x i8] c"multiplicationTable(18)\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @outputRange(i32 3, i32 7)
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @outputRange(i32 7, i32 3)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 @addRange(i32 3, i32 7)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %8)
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
%11 = call i32 @factorial(i32 0)
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %11)
%13 = call i32 @factorial(i32 1)
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %13)
%15 = call i32 @factorial(i32 2)
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %15)
%17 = call i32 @factorial(i32 3)
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %17)
%19 = call i32 @factorial(i32 4)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %19)
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
%22 = call i32 @fib(i32 0)
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %22)
%24 = call i32 @fib(i32 1)
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %24)
%26 = call i32 @fib(i32 2)
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %26)
%28 = call i32 @fib(i32 3)
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %28)
%30 = call i32 @fib(i32 4)
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %30)
%32 = call i32 @fib(i32 5)
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %32)
%34 = call i32 @fib(i32 6)
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %34)
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0))
%37 = call i32 @fib(i32 7)
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %37)
%39 = call i32 @fib(i32 5)
%40 = call i32 @fib(i32 6)
%41 = add nsw i32 %39, %40
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %41)
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0))
%44 = call i32 @prime(i32 2)
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), i32 %44)
%46 = call i32 @prime(i32 3)
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), i32 %46)
%48 = call i32 @prime(i32 5)
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.11, i64 0, i64 0), i32 %48)
%50 = call i32 @prime(i32 7)
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.12, i64 0, i64 0), i32 %50)
%52 = call i32 @prime(i32 11)
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.13, i64 0, i64 0), i32 %52)
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0))
%55 = call i32 @prime(i32 1)
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.14, i64 0, i64 0), i32 %55)
%57 = call i32 @prime(i32 4)
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.15, i64 0, i64 0), i32 %57)
%59 = call i32 @prime(i32 9)
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.16, i64 0, i64 0), i32 %59)
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.17, i64 0, i64 0))
%62 = call i32 @gcd(i32 6, i32 6)
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.18, i64 0, i64 0), i32 %62)
%64 = call i32 @gcd(i32 3, i32 9)
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.19, i64 0, i64 0), i32 %64)
%66 = call i32 @gcd(i32 9, i32 3)
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.20, i64 0, i64 0), i32 %66)
%68 = call i32 @gcd(i32 300, i32 110)
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.21, i64 0, i64 0), i32 %68)
%70 = call i32 @gcd(i32 2, i32 21)
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.22, i64 0, i64 0), i32 %70)
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.23, i64 0, i64 0))
%73 = call i32 @multiplicationTable(i32 18)
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0))
%75 = call i32 @multiplicationTable(i32 0)
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0))
%77 = call i32 @multiplicationTable(i32 1)
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0))
%79 = call i32 @multiplicationTable(i32 12)
ret i32 0
}

LLVM IR (-O2):
@.str.4 = [4 x i8] c"%u\0A\00"
@.str.9 = [16 x i8] c"2 is %i prime.\0A\00"
@.str.10 = [16 x i8] c"3 is %i prime.\0A\00"
@.str.11 = [16 x i8] c"5 is %i prime.\0A\00"
@.str.12 = [16 x i8] c"7 is %i prime.\0A\00"
@.str.13 = [17 x i8] c"11 is %i prime.\0A\00"
@.str.14 = [16 x i8] c"1 is %i prime.\0A\00"
@.str.15 = [16 x i8] c"4 is %i prime.\0A\00"
@.str.16 = [16 x i8] c"9 is %i prime.\0A\00"
@.str.18 = [23 x i8] c"GCD of 6 and 6 is %u.\0A\00"
@.str.19 = [23 x i8] c"GCD of 3 and 9 is %u.\0A\00"
@.str.20 = [23 x i8] c"GCD of 9 and 3 is %u.\0A\00"
@.str.21 = [27 x i8] c"GCD of 300 and 110 is %u.\0A\00"
@.str.22 = [24 x i8] c"GCD of 2 and 21 is %u.\0A\00"
@str = [18 x i8] c"outputRange(3, 7)\00"
@str.24 = [18 x i8] c"outputRange(7, 3)\00"
@str.25 = [15 x i8] c"addRange(a, b)\00"
@str.26 = [13 x i8] c"factorial(n)\00"
@str.27 = [7 x i8] c"fib(n)\00"
@str.29 = [9 x i8] c"prime(n)\00"
@str.31 = [10 x i8] c"gcd(a, b)\00"
@str.32 = [24 x i8] c"multiplicationTable(18)\00"
@str.35 = [11 x i8] c"----------\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @outputRange(i32 3, i32 7)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.24, i64 0, i64 0))
%4 = tail call i32 @outputRange(i32 7, i32 3)
%5 = tail call i32 @putchar(i32 10)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.25, i64 0, i64 0))
%7 = tail call i32 @addRange(i32 3, i32 7)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %7)
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.26, i64 0, i64 0))
%10 = tail call i32 @factorial(i32 0)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %10)
%12 = tail call i32 @factorial(i32 1)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %12)
%14 = tail call i32 @factorial(i32 2)
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %14)
%16 = tail call i32 @factorial(i32 3)
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %16)
%18 = tail call i32 @factorial(i32 4)
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %18)
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.27, i64 0, i64 0))
%21 = tail call i32 @fib(i32 0)
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %21)
%23 = tail call i32 @fib(i32 1)
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %23)
%25 = tail call i32 @fib(i32 2)
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %25)
%27 = tail call i32 @fib(i32 3)
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %27)
%29 = tail call i32 @fib(i32 4)
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %29)
%31 = tail call i32 @fib(i32 5)
%32 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %31)
%33 = tail call i32 @fib(i32 6)
%34 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %33)
%35 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.35, i64 0, i64 0))
%36 = tail call i32 @fib(i32 7)
%37 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %36)
%38 = tail call i32 @fib(i32 5)
%39 = tail call i32 @fib(i32 6)
%40 = add nsw i32 %39, %38
%41 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %40)
%42 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.29, i64 0, i64 0))
%43 = tail call i32 @prime(i32 2)
%44 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), i32 %43)
%45 = tail call i32 @prime(i32 3)
%46 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), i32 %45)
%47 = tail call i32 @prime(i32 5)
%48 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.11, i64 0, i64 0), i32 %47)
%49 = tail call i32 @prime(i32 7)
%50 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.12, i64 0, i64 0), i32 %49)
%51 = tail call i32 @prime(i32 11)
%52 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.13, i64 0, i64 0), i32 %51)
%53 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.35, i64 0, i64 0))
%54 = tail call i32 @prime(i32 1)
%55 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.14, i64 0, i64 0), i32 %54)
%56 = tail call i32 @prime(i32 4)
%57 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.15, i64 0, i64 0), i32 %56)
%58 = tail call i32 @prime(i32 9)
%59 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.16, i64 0, i64 0), i32 %58)
%60 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.31, i64 0, i64 0))
%61 = tail call i32 @gcd(i32 6, i32 6)
%62 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.18, i64 0, i64 0), i32 %61)
%63 = tail call i32 @gcd(i32 3, i32 9)
%64 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.19, i64 0, i64 0), i32 %63)
%65 = tail call i32 @gcd(i32 9, i32 3)
%66 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.20, i64 0, i64 0), i32 %65)
%67 = tail call i32 @gcd(i32 300, i32 110)
%68 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.21, i64 0, i64 0), i32 %67)
%69 = tail call i32 @gcd(i32 2, i32 21)
%70 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.22, i64 0, i64 0), i32 %69)
%71 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.32, i64 0, i64 0))
%72 = tail call i32 @multiplicationTable(i32 18)
%73 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.35, i64 0, i64 0))
%74 = tail call i32 @multiplicationTable(i32 0)
%75 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.35, i64 0, i64 0))
%76 = tail call i32 @multiplicationTable(i32 1)
%77 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.35, i64 0, i64 0))
%78 = tail call i32 @multiplicationTable(i32 12)
ret i32 0
}