#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 */
typedef int uint32_t;

/* Variables and functions */
int /*<<< orphan*/ test_add_subs(int);
int /*<<< orphan*/ test_min_max();
int /*<<< orphan*/ test_opposite(int);
int /*<<< orphan*/ test_powers(int);
int /*<<< orphan*/ test_product(int);
int main(void) {
  uint32_t n;
  test_min_max();
  for (n = 1; n <= 6; n++) {
    test_opposite(n);
  }
  test_opposite(10);
  test_opposite(31);
  test_opposite(32);
  test_opposite(33);
  test_opposite(63);
  test_opposite(64);
  for (n = 1; n <= 6; n++) {
    test_add_subs(n);
  }
  test_add_subs(10);
  test_add_subs(31);
  test_add_subs(32);
  test_add_subs(33);
  test_add_subs(63);
  test_add_subs(64);
  for (n = 1; n <= 6; n++) {
    test_product(n);
  }
  test_product(10);
  test_product(31);
  test_product(32);
  test_product(33);
  test_product(63);
  test_product(64);
  for (n = 1; n <= 6; n++) {
    test_powers(n);
  }
  test_powers(10);
  test_powers(31);
  test_powers(32);
  test_powers(33);
  test_powers(63);
  test_powers(64);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1070 <test_min_max@plt>
movl   $0x1,-0x8(%rbp)
cmpl   $0x6,-0x8(%rbp)
jg     118d <main+0x3d>
mov    -0x8(%rbp),%edi
call   1030 <test_opposite@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    116d <main+0x1d>
mov    $0xa,%edi
call   1030 <test_opposite@plt>
mov    $0x1f,%edi
call   1030 <test_opposite@plt>
mov    $0x20,%edi
call   1030 <test_opposite@plt>
mov    $0x21,%edi
call   1030 <test_opposite@plt>
mov    $0x3f,%edi
call   1030 <test_opposite@plt>
mov    $0x40,%edi
call   1030 <test_opposite@plt>
movl   $0x1,-0x8(%rbp)
cmpl   $0x6,-0x8(%rbp)
jg     11f0 <main+0xa0>
mov    -0x8(%rbp),%edi
call   1050 <test_add_subs@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11d0 <main+0x80>
mov    $0xa,%edi
call   1050 <test_add_subs@plt>
mov    $0x1f,%edi
call   1050 <test_add_subs@plt>
mov    $0x20,%edi
call   1050 <test_add_subs@plt>
mov    $0x21,%edi
call   1050 <test_add_subs@plt>
mov    $0x3f,%edi
call   1050 <test_add_subs@plt>
mov    $0x40,%edi
call   1050 <test_add_subs@plt>
movl   $0x1,-0x8(%rbp)
cmpl   $0x6,-0x8(%rbp)
jg     1253 <main+0x103>
mov    -0x8(%rbp),%edi
call   1040 <test_product@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1233 <main+0xe3>
mov    $0xa,%edi
call   1040 <test_product@plt>
mov    $0x1f,%edi
call   1040 <test_product@plt>
mov    $0x20,%edi
call   1040 <test_product@plt>
mov    $0x21,%edi
call   1040 <test_product@plt>
mov    $0x3f,%edi
call   1040 <test_product@plt>
mov    $0x40,%edi
call   1040 <test_product@plt>
movl   $0x1,-0x8(%rbp)
cmpl   $0x6,-0x8(%rbp)
jg     12b6 <main+0x166>
mov    -0x8(%rbp),%edi
call   1060 <test_powers@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1296 <main+0x146>
mov    $0xa,%edi
call   1060 <test_powers@plt>
mov    $0x1f,%edi
call   1060 <test_powers@plt>
mov    $0x20,%edi
call   1060 <test_powers@plt>
mov    $0x21,%edi
call   1060 <test_powers@plt>
mov    $0x3f,%edi
call   1060 <test_powers@plt>
mov    $0x40,%edi
call   1060 <test_powers@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1070 <test_min_max@plt>
mov    $0x1,%edi
call   1030 <test_opposite@plt>
mov    $0x2,%edi
call   1030 <test_opposite@plt>
mov    $0x3,%edi
call   1030 <test_opposite@plt>
mov    $0x4,%edi
call   1030 <test_opposite@plt>
mov    $0x5,%edi
call   1030 <test_opposite@plt>
mov    $0x6,%edi
call   1030 <test_opposite@plt>
mov    $0xa,%edi
call   1030 <test_opposite@plt>
mov    $0x1f,%edi
call   1030 <test_opposite@plt>
mov    $0x20,%edi
call   1030 <test_opposite@plt>
mov    $0x21,%edi
call   1030 <test_opposite@plt>
mov    $0x3f,%edi
call   1030 <test_opposite@plt>
mov    $0x40,%edi
call   1030 <test_opposite@plt>
mov    $0x1,%edi
call   1050 <test_add_subs@plt>
mov    $0x2,%edi
call   1050 <test_add_subs@plt>
mov    $0x3,%edi
call   1050 <test_add_subs@plt>
mov    $0x4,%edi
call   1050 <test_add_subs@plt>
mov    $0x5,%edi
call   1050 <test_add_subs@plt>
mov    $0x6,%edi
call   1050 <test_add_subs@plt>
mov    $0xa,%edi
call   1050 <test_add_subs@plt>
mov    $0x1f,%edi
call   1050 <test_add_subs@plt>
mov    $0x20,%edi
call   1050 <test_add_subs@plt>
mov    $0x21,%edi
call   1050 <test_add_subs@plt>
mov    $0x3f,%edi
call   1050 <test_add_subs@plt>
mov    $0x40,%edi
call   1050 <test_add_subs@plt>
mov    $0x1,%edi
call   1040 <test_product@plt>
mov    $0x2,%edi
call   1040 <test_product@plt>
mov    $0x3,%edi
call   1040 <test_product@plt>
mov    $0x4,%edi
call   1040 <test_product@plt>
mov    $0x5,%edi
call   1040 <test_product@plt>
mov    $0x6,%edi
call   1040 <test_product@plt>
mov    $0xa,%edi
call   1040 <test_product@plt>
mov    $0x1f,%edi
call   1040 <test_product@plt>
mov    $0x20,%edi
call   1040 <test_product@plt>
mov    $0x21,%edi
call   1040 <test_product@plt>
mov    $0x3f,%edi
call   1040 <test_product@plt>
mov    $0x40,%edi
call   1040 <test_product@plt>
mov    $0x1,%edi
call   1060 <test_powers@plt>
mov    $0x2,%edi
call   1060 <test_powers@plt>
mov    $0x3,%edi
call   1060 <test_powers@plt>
mov    $0x4,%edi
call   1060 <test_powers@plt>
mov    $0x5,%edi
call   1060 <test_powers@plt>
mov    $0x6,%edi
call   1060 <test_powers@plt>
mov    $0xa,%edi
call   1060 <test_powers@plt>
mov    $0x1f,%edi
call   1060 <test_powers@plt>
mov    $0x20,%edi
call   1060 <test_powers@plt>
mov    $0x21,%edi
call   1060 <test_powers@plt>
mov    $0x3f,%edi
call   1060 <test_powers@plt>
mov    $0x40,%edi
call   1060 <test_powers@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 (...) @test_min_max()
store i32 1, i32* %2
br label %4
4: ; preds = %10, %0
%5 = load i32, i32* %2
%6 = icmp sle i32 %5, 6
br i1 %6, label %7, label %13
7: ; preds = %4
%8 = load i32, i32* %2
%9 = call i32 @test_opposite(i32 %8)
br label %10
10: ; preds = %7
%11 = load i32, i32* %2
%12 = add nsw i32 %11, 1
store i32 %12, i32* %2
br label %4
13: ; preds = %4
%14 = call i32 @test_opposite(i32 10)
%15 = call i32 @test_opposite(i32 31)
%16 = call i32 @test_opposite(i32 32)
%17 = call i32 @test_opposite(i32 33)
%18 = call i32 @test_opposite(i32 63)
%19 = call i32 @test_opposite(i32 64)
store i32 1, i32* %2
br label %20
20: ; preds = %26, %13
%21 = load i32, i32* %2
%22 = icmp sle i32 %21, 6
br i1 %22, label %23, label %29
23: ; preds = %20
%24 = load i32, i32* %2
%25 = call i32 @test_add_subs(i32 %24)
br label %26
26: ; preds = %23
%27 = load i32, i32* %2
%28 = add nsw i32 %27, 1
store i32 %28, i32* %2
br label %20
29: ; preds = %20
%30 = call i32 @test_add_subs(i32 10)
%31 = call i32 @test_add_subs(i32 31)
%32 = call i32 @test_add_subs(i32 32)
%33 = call i32 @test_add_subs(i32 33)
%34 = call i32 @test_add_subs(i32 63)
%35 = call i32 @test_add_subs(i32 64)
store i32 1, i32* %2
br label %36
36: ; preds = %42, %29
%37 = load i32, i32* %2
%38 = icmp sle i32 %37, 6
br i1 %38, label %39, label %45
39: ; preds = %36
%40 = load i32, i32* %2
%41 = call i32 @test_product(i32 %40)
br label %42
42: ; preds = %39
%43 = load i32, i32* %2
%44 = add nsw i32 %43, 1
store i32 %44, i32* %2
br label %36
45: ; preds = %36
%46 = call i32 @test_product(i32 10)
%47 = call i32 @test_product(i32 31)
%48 = call i32 @test_product(i32 32)
%49 = call i32 @test_product(i32 33)
%50 = call i32 @test_product(i32 63)
%51 = call i32 @test_product(i32 64)
store i32 1, i32* %2
br label %52
52: ; preds = %58, %45
%53 = load i32, i32* %2
%54 = icmp sle i32 %53, 6
br i1 %54, label %55, label %61
55: ; preds = %52
%56 = load i32, i32* %2
%57 = call i32 @test_powers(i32 %56)
br label %58
58: ; preds = %55
%59 = load i32, i32* %2
%60 = add nsw i32 %59, 1
store i32 %60, i32* %2
br label %52
61: ; preds = %52
%62 = call i32 @test_powers(i32 10)
%63 = call i32 @test_powers(i32 31)
%64 = call i32 @test_powers(i32 32)
%65 = call i32 @test_powers(i32 33)
%66 = call i32 @test_powers(i32 63)
%67 = call i32 @test_powers(i32 64)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @test_min_max()
%2 = tail call i32 @test_opposite(i32 1)
%3 = tail call i32 @test_opposite(i32 2)
%4 = tail call i32 @test_opposite(i32 3)
%5 = tail call i32 @test_opposite(i32 4)
%6 = tail call i32 @test_opposite(i32 5)
%7 = tail call i32 @test_opposite(i32 6)
%8 = tail call i32 @test_opposite(i32 10)
%9 = tail call i32 @test_opposite(i32 31)
%10 = tail call i32 @test_opposite(i32 32)
%11 = tail call i32 @test_opposite(i32 33)
%12 = tail call i32 @test_opposite(i32 63)
%13 = tail call i32 @test_opposite(i32 64)
%14 = tail call i32 @test_add_subs(i32 1)
%15 = tail call i32 @test_add_subs(i32 2)
%16 = tail call i32 @test_add_subs(i32 3)
%17 = tail call i32 @test_add_subs(i32 4)
%18 = tail call i32 @test_add_subs(i32 5)
%19 = tail call i32 @test_add_subs(i32 6)
%20 = tail call i32 @test_add_subs(i32 10)
%21 = tail call i32 @test_add_subs(i32 31)
%22 = tail call i32 @test_add_subs(i32 32)
%23 = tail call i32 @test_add_subs(i32 33)
%24 = tail call i32 @test_add_subs(i32 63)
%25 = tail call i32 @test_add_subs(i32 64)
%26 = tail call i32 @test_product(i32 1)
%27 = tail call i32 @test_product(i32 2)
%28 = tail call i32 @test_product(i32 3)
%29 = tail call i32 @test_product(i32 4)
%30 = tail call i32 @test_product(i32 5)
%31 = tail call i32 @test_product(i32 6)
%32 = tail call i32 @test_product(i32 10)
%33 = tail call i32 @test_product(i32 31)
%34 = tail call i32 @test_product(i32 32)
%35 = tail call i32 @test_product(i32 33)
%36 = tail call i32 @test_product(i32 63)
%37 = tail call i32 @test_product(i32 64)
%38 = tail call i32 @test_powers(i32 1)
%39 = tail call i32 @test_powers(i32 2)
%40 = tail call i32 @test_powers(i32 3)
%41 = tail call i32 @test_powers(i32 4)
%42 = tail call i32 @test_powers(i32 5)
%43 = tail call i32 @test_powers(i32 6)
%44 = tail call i32 @test_powers(i32 10)
%45 = tail call i32 @test_powers(i32 31)
%46 = tail call i32 @test_powers(i32 32)
%47 = tail call i32 @test_powers(i32 33)
%48 = tail call i32 @test_powers(i32 63)
%49 = tail call i32 @test_powers(i32 64)
ret i32 0
}