#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 */
char *test_decimal_construction();
char *test_decimal_shift();
char *test_decimal_shift_identity();
char *test_divide();
char *test_mod();
char *test_mul();
char *test_power();
char *all_tests() {
  do {
    char *run_test_msg = test_mod();
    if (run_test_msg)
      return run_test_msg;
  } while (0);
  do {
    char *run_test_msg = test_divide();
    if (run_test_msg)
      return run_test_msg;
  } while (0);
  do {
    char *run_test_msg = test_decimal_shift_identity();
    if (run_test_msg)
      return run_test_msg;
  } while (0);
  do {
    char *run_test_msg = test_decimal_shift();
    if (run_test_msg)
      return run_test_msg;
  } while (0);
  do {
    char *run_test_msg = test_decimal_construction();
    if (run_test_msg)
      return run_test_msg;
  } while (0);
  do {
    char *run_test_msg = test_mul();
    if (run_test_msg)
      return run_test_msg;
  } while (0);
  do {
    char *run_test_msg = test_power();
    if (run_test_msg)
      return run_test_msg;
  } while (0);
  return 0;
}


x86 assembly (clang, -O0):
<all_tests>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    $0x0,%al
call   1040 <test_mod@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     119b <all_tests+0x2b>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    12b6 <all_tests+0x146>
jmp    11a0 <all_tests+0x30>
jmp    11a5 <all_tests+0x35>
mov    $0x0,%al
call   1080 <test_divide@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     11c8 <all_tests+0x58>
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    12b6 <all_tests+0x146>
jmp    11cd <all_tests+0x5d>
jmp    11d2 <all_tests+0x62>
mov    $0x0,%al
call   1090 <test_decimal_shift_identity@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     11f5 <all_tests+0x85>
mov    -0x20(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    12b6 <all_tests+0x146>
jmp    11fa <all_tests+0x8a>
jmp    11ff <all_tests+0x8f>
mov    $0x0,%al
call   1060 <test_decimal_shift@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
je     1222 <all_tests+0xb2>
mov    -0x28(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    12b6 <all_tests+0x146>
jmp    1227 <all_tests+0xb7>
jmp    122c <all_tests+0xbc>
mov    $0x0,%al
call   1070 <test_decimal_construction@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
je     124f <all_tests+0xdf>
mov    -0x30(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    12b6 <all_tests+0x146>
jmp    1254 <all_tests+0xe4>
jmp    1259 <all_tests+0xe9>
mov    $0x0,%al
call   1030 <test_mul@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
je     127c <all_tests+0x10c>
mov    -0x38(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    12b6 <all_tests+0x146>
jmp    1281 <all_tests+0x111>
jmp    1286 <all_tests+0x116>
mov    $0x0,%al
call   1050 <test_power@plt>
mov    %rax,-0x40(%rbp)
cmpq   $0x0,-0x40(%rbp)
je     12a9 <all_tests+0x139>
mov    -0x40(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    12b6 <all_tests+0x146>
jmp    12ae <all_tests+0x13e>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<all_tests>:
push   %rax
xor    %eax,%eax
call   1040 <test_mod@plt>
test   %rax,%rax
jne    11b9 <all_tests+0x49>
xor    %eax,%eax
call   1080 <test_divide@plt>
test   %rax,%rax
jne    11b9 <all_tests+0x49>
xor    %eax,%eax
call   1090 <test_decimal_shift_identity@plt>
test   %rax,%rax
jne    11b9 <all_tests+0x49>
xor    %eax,%eax
call   1060 <test_decimal_shift@plt>
test   %rax,%rax
jne    11b9 <all_tests+0x49>
xor    %eax,%eax
call   1070 <test_decimal_construction@plt>
test   %rax,%rax
jne    11b9 <all_tests+0x49>
xor    %eax,%eax
call   1030 <test_mul@plt>
test   %rax,%rax
je     11bb <all_tests+0x4b>
pop    %rcx
ret
xor    %eax,%eax
pop    %rcx
jmp    1050 <test_power@plt>

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

LLVM IR (-O2):
define i8* @all_tests() {
%1 = tail call i8* (...) @test_mod()
%2 = icmp eq i8* %1, null
br i1 %2, label %3, label %20
3: ; preds = %0
%4 = tail call i8* (...) @test_divide()
%5 = icmp eq i8* %4, null
br i1 %5, label %6, label %20
6: ; preds = %3
%7 = tail call i8* (...) @test_decimal_shift_identity()
%8 = icmp eq i8* %7, null
br i1 %8, label %9, label %20
9: ; preds = %6
%10 = tail call i8* (...) @test_decimal_shift()
%11 = icmp eq i8* %10, null
br i1 %11, label %12, label %20
12: ; preds = %9
%13 = tail call i8* (...) @test_decimal_construction()
%14 = icmp eq i8* %13, null
br i1 %14, label %15, label %20
15: ; preds = %12
%16 = tail call i8* (...) @test_mul()
%17 = icmp eq i8* %16, null
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = tail call i8* (...) @test_power()
br label %20
20: ; preds = %18, %15, %12, %9, %6, %3, %0
%21 = phi i8* [ %1, %0 ], [ %4, %3 ], [ %7, %6 ], [ %10, %9 ], [ %13, %12 ], [ %16, %15 ], [ %19, %18 ]
ret i8* %21
}