#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*/ partitionAll(int);
int /*<<< orphan*/ partitionDecreasing(int);
int /*<<< orphan*/ partitionEven(int);
int /*<<< orphan*/ partitionIncreasing(int);
int /*<<< orphan*/ partitionOdd(int);
int /*<<< orphan*/ partitionOddAndEven(int);
int /*<<< orphan*/ partitionPrime(int);
int /*<<< orphan*/ printf(char *);
int main(int argc, char **argv) {
  printf("partitionAll(2) is\n");
  partitionAll(2);
  printf("partitionAll(3) is\n");
  partitionAll(3);
  printf("partitionAll(5) is\n");
  partitionAll(5);
  printf("partitionAll(10) is\n");
  partitionAll(10);
  printf("====================================================================="
         "=\n");
  printf("partitionIncreasing(5) is\n");
  partitionIncreasing(5);
  printf("partitionIncreasing(10) is\n");
  partitionIncreasing(10);
  printf("====================================================================="
         "=\n");
  printf("partitionDecreasing(5) is\n");
  partitionDecreasing(5);
  printf("partitionDecreasing(10) is\n");
  partitionDecreasing(10);
  printf("====================================================================="
         "=\n");
  printf("partitionOdd(5) is\n");
  partitionOdd(5);
  printf("partitionOdd(10) is\n");
  partitionOdd(10);
  printf("====================================================================="
         "=\n");
  printf("partitionEven(5) is\n");
  partitionEven(5);
  printf("partitionEven(10) is\n");
  partitionEven(10);
  printf("====================================================================="
         "=\n");
  printf("partitionOddAndEven(5) is\n");
  partitionOddAndEven(5);
  printf("partitionOddAndEven(10) is\n");
  partitionOddAndEven(10);
  printf("====================================================================="
         "=\n");
  printf("partitionPrime(5) is\n");
  partitionPrime(5);
  printf("partitionPrime(7) is\n");
  partitionPrime(7);
  printf("partitionPrime(10) is\n");
  partitionPrime(10);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xe63(%rip),%rdi
call   1060 <printf@plt>
mov    $0x2,%edi
call   1040 <partitionAll@plt>
lea    0xe61(%rip),%rdi
call   1060 <printf@plt>
mov    $0x3,%edi
call   1040 <partitionAll@plt>
lea    0xe5f(%rip),%rdi
call   1060 <printf@plt>
mov    $0x5,%edi
call   1040 <partitionAll@plt>
lea    0xe5d(%rip),%rdi
call   1060 <printf@plt>
mov    $0xa,%edi
call   1040 <partitionAll@plt>
lea    0xe5c(%rip),%rdi
call   1060 <printf@plt>
lea    0xe98(%rip),%rdi
call   1060 <printf@plt>
mov    $0x5,%edi
call   1050 <partitionIncreasing@plt>
lea    0xe9d(%rip),%rdi
call   1060 <printf@plt>
mov    $0xa,%edi
call   1050 <partitionIncreasing@plt>
lea    0xe24(%rip),%rdi
call   1060 <printf@plt>
lea    0xe97(%rip),%rdi
call   1060 <printf@plt>
mov    $0x5,%edi
call   10a0 <partitionDecreasing@plt>
lea    0xe9c(%rip),%rdi
call   1060 <printf@plt>
mov    $0xa,%edi
call   10a0 <partitionDecreasing@plt>
lea    0xdec(%rip),%rdi
call   1060 <printf@plt>
lea    0xe96(%rip),%rdi
call   1060 <printf@plt>
mov    $0x5,%edi
call   1090 <partitionOdd@plt>
lea    0xe94(%rip),%rdi
call   1060 <printf@plt>
mov    $0xa,%edi
call   1090 <partitionOdd@plt>
lea    0xdb4(%rip),%rdi
call   1060 <printf@plt>
lea    0xe87(%rip),%rdi
call   1060 <printf@plt>
mov    $0x5,%edi
call   1070 <partitionEven@plt>
lea    0xe86(%rip),%rdi
call   1060 <printf@plt>
mov    $0xa,%edi
call   1070 <partitionEven@plt>
lea    0xd7c(%rip),%rdi
call   1060 <printf@plt>
lea    0xe7a(%rip),%rdi
call   1060 <printf@plt>
mov    $0x5,%edi
call   1030 <partitionOddAndEven@plt>
lea    0xe7f(%rip),%rdi
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <partitionOddAndEven@plt>
lea    0xd44(%rip),%rdi
call   1060 <printf@plt>
lea    0xe79(%rip),%rdi
call   1060 <printf@plt>
mov    $0x5,%edi
call   1080 <partitionPrime@plt>
lea    0xe79(%rip),%rdi
call   1060 <printf@plt>
mov    $0x7,%edi
call   1080 <partitionPrime@plt>
lea    0xe79(%rip),%rdi
call   1060 <printf@plt>
mov    $0xa,%edi
call   1080 <partitionPrime@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xe78(%rip),%rdi
call   1040 <puts@plt>
mov    $0x2,%edi
call   1050 <partitionAll@plt>
lea    0xe75(%rip),%rdi
call   1040 <puts@plt>
mov    $0x3,%edi
call   1050 <partitionAll@plt>
lea    0xe72(%rip),%rdi
call   1040 <puts@plt>
mov    $0x5,%edi
call   1050 <partitionAll@plt>
lea    0xe6f(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1050 <partitionAll@plt>
lea    0xf5c(%rip),%rbx
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0xe5e(%rip),%rdi
call   1040 <puts@plt>
mov    $0x5,%edi
call   1060 <partitionIncreasing@plt>
lea    0xe62(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1060 <partitionIncreasing@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0xe5f(%rip),%rdi
call   1040 <puts@plt>
mov    $0x5,%edi
call   10a0 <partitionDecreasing@plt>
lea    0xe63(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   10a0 <partitionDecreasing@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0xe60(%rip),%rdi
call   1040 <puts@plt>
mov    $0x5,%edi
call   1090 <partitionOdd@plt>
lea    0xe5d(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1090 <partitionOdd@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0xe53(%rip),%rdi
call   1040 <puts@plt>
mov    $0x5,%edi
call   1070 <partitionEven@plt>
lea    0xe51(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1070 <partitionEven@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0xe48(%rip),%rdi
call   1040 <puts@plt>
mov    $0x5,%edi
call   1030 <partitionOddAndEven@plt>
lea    0xe4c(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <partitionOddAndEven@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0xe90(%rip),%rdi
call   1040 <puts@plt>
mov    $0x5,%edi
call   1080 <partitionPrime@plt>
lea    0xe8f(%rip),%rdi
call   1040 <puts@plt>
mov    $0x7,%edi
call   1080 <partitionPrime@plt>
lea    0xe8e(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1080 <partitionPrime@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [20 x i8] c"partitionAll(2) is\0A\00"
@.str.1 = [20 x i8] c"partitionAll(3) is\0A\00"
@.str.2 = [20 x i8] c"partitionAll(5) is\0A\00"
@.str.3 = [21 x i8] c"partitionAll(10) is\0A\00"
@.str.4 = [72 x i8] c"======================================================================\0A\00"
@.str.5 = [27 x i8] c"partitionIncreasing(5) is\0A\00"
@.str.6 = [28 x i8] c"partitionIncreasing(10) is\0A\00"
@.str.7 = [27 x i8] c"partitionDecreasing(5) is\0A\00"
@.str.8 = [28 x i8] c"partitionDecreasing(10) is\0A\00"
@.str.9 = [20 x i8] c"partitionOdd(5) is\0A\00"
@.str.10 = [21 x i8] c"partitionOdd(10) is\0A\00"
@.str.11 = [21 x i8] c"partitionEven(5) is\0A\00"
@.str.12 = [22 x i8] c"partitionEven(10) is\0A\00"
@.str.13 = [27 x i8] c"partitionOddAndEven(5) is\0A\00"
@.str.14 = [28 x i8] c"partitionOddAndEven(10) is\0A\00"
@.str.15 = [22 x i8] c"partitionPrime(5) is\0A\00"
@.str.16 = [22 x i8] c"partitionPrime(7) is\0A\00"
@.str.17 = [23 x i8] c"partitionPrime(10) is\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%7 = call i32 @partitionAll(i32 2)
%8 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 @partitionAll(i32 3)
%10 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 @partitionAll(i32 5)
%12 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0))
%13 = call i32 @partitionAll(i32 10)
%14 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.4, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0))
%16 = call i32 @partitionIncreasing(i32 5)
%17 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0))
%18 = call i32 @partitionIncreasing(i32 10)
%19 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.4, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0))
%21 = call i32 @partitionDecreasing(i32 5)
%22 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0))
%23 = call i32 @partitionDecreasing(i32 10)
%24 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.4, i64 0, i64 0))
%25 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0))
%26 = call i32 @partitionOdd(i32 5)
%27 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0))
%28 = call i32 @partitionOdd(i32 10)
%29 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.4, i64 0, i64 0))
%30 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0))
%31 = call i32 @partitionEven(i32 5)
%32 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.12, i64 0, i64 0))
%33 = call i32 @partitionEven(i32 10)
%34 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.4, i64 0, i64 0))
%35 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.13, i64 0, i64 0))
%36 = call i32 @partitionOddAndEven(i32 5)
%37 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.14, i64 0, i64 0))
%38 = call i32 @partitionOddAndEven(i32 10)
%39 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.4, i64 0, i64 0))
%40 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.15, i64 0, i64 0))
%41 = call i32 @partitionPrime(i32 5)
%42 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.16, i64 0, i64 0))
%43 = call i32 @partitionPrime(i32 7)
%44 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.17, i64 0, i64 0))
%45 = call i32 @partitionPrime(i32 10)
ret i32 0
}

LLVM IR (-O2):
@str = [19 x i8] c"partitionAll(2) is\00"
@str.18 = [19 x i8] c"partitionAll(3) is\00"
@str.19 = [19 x i8] c"partitionAll(5) is\00"
@str.20 = [20 x i8] c"partitionAll(10) is\00"
@str.22 = [26 x i8] c"partitionIncreasing(5) is\00"
@str.23 = [27 x i8] c"partitionIncreasing(10) is\00"
@str.25 = [26 x i8] c"partitionDecreasing(5) is\00"
@str.26 = [27 x i8] c"partitionDecreasing(10) is\00"
@str.28 = [19 x i8] c"partitionOdd(5) is\00"
@str.29 = [20 x i8] c"partitionOdd(10) is\00"
@str.31 = [20 x i8] c"partitionEven(5) is\00"
@str.32 = [21 x i8] c"partitionEven(10) is\00"
@str.34 = [26 x i8] c"partitionOddAndEven(5) is\00"
@str.35 = [27 x i8] c"partitionOddAndEven(10) is\00"
@str.36 = [71 x i8] c"======================================================================\00"
@str.37 = [21 x i8] c"partitionPrime(5) is\00"
@str.38 = [21 x i8] c"partitionPrime(7) is\00"
@str.39 = [22 x i8] c"partitionPrime(10) is\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @partitionAll(i32 2)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.18, i64 0, i64 0))
%6 = tail call i32 @partitionAll(i32 3)
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.19, i64 0, i64 0))
%8 = tail call i32 @partitionAll(i32 5)
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.20, i64 0, i64 0))
%10 = tail call i32 @partitionAll(i32 10)
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.36, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.22, i64 0, i64 0))
%13 = tail call i32 @partitionIncreasing(i32 5)
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.23, i64 0, i64 0))
%15 = tail call i32 @partitionIncreasing(i32 10)
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.36, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.25, i64 0, i64 0))
%18 = tail call i32 @partitionDecreasing(i32 5)
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.26, i64 0, i64 0))
%20 = tail call i32 @partitionDecreasing(i32 10)
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.36, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.28, i64 0, i64 0))
%23 = tail call i32 @partitionOdd(i32 5)
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.29, i64 0, i64 0))
%25 = tail call i32 @partitionOdd(i32 10)
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.36, i64 0, i64 0))
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.31, i64 0, i64 0))
%28 = tail call i32 @partitionEven(i32 5)
%29 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.32, i64 0, i64 0))
%30 = tail call i32 @partitionEven(i32 10)
%31 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.36, i64 0, i64 0))
%32 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.34, i64 0, i64 0))
%33 = tail call i32 @partitionOddAndEven(i32 5)
%34 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.35, i64 0, i64 0))
%35 = tail call i32 @partitionOddAndEven(i32 10)
%36 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.36, i64 0, i64 0))
%37 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.37, i64 0, i64 0))
%38 = tail call i32 @partitionPrime(i32 5)
%39 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.38, i64 0, i64 0))
%40 = tail call i32 @partitionPrime(i32 7)
%41 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.39, i64 0, i64 0))
%42 = tail call i32 @partitionPrime(i32 10)
ret i32 0
}