#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*/ printf(char *);
int /*<<< orphan*/ test_imaginaries();
int /*<<< orphan*/ test_inf();
int /*<<< orphan*/ test_large();
int /*<<< orphan*/ test_nan();
int /*<<< orphan*/ test_reals();
int /*<<< orphan*/ test_small();
int /*<<< orphan*/ test_zero();
int main(int argc, char *argv[]) {
  printf("1..7\n");
  test_zero();
  printf("ok 1 - cexp zero\n");
  test_nan();
  printf("ok 2 - cexp nan\n");
  test_inf();
  printf("ok 3 - cexp inf\n");
  test_reals();
  printf("ok 4 - cexp reals\n");
  test_imaginaries();
  printf("ok 5 - cexp imaginaries\n");
  test_small();
  printf("ok 6 - cexp small\n");
  test_large();
  printf("ok 7 - cexp large\n");
  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   1050 <printf@plt>
mov    $0x0,%al
call   10a0 <test_zero@plt>
lea    0xe56(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1090 <test_nan@plt>
lea    0xe55(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1070 <test_inf@plt>
lea    0xe53(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1060 <test_reals@plt>
lea    0xe51(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1080 <test_imaginaries@plt>
lea    0xe51(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1030 <test_small@plt>
lea    0xe57(%rip),%rdi
call   1050 <printf@plt>
mov    $0x0,%al
call   1040 <test_large@plt>
lea    0xe57(%rip),%rdi
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xe78(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   10a0 <test_zero@plt>
lea    0xe6a(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1090 <test_nan@plt>
lea    0xe68(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1070 <test_inf@plt>
lea    0xe65(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1060 <test_reals@plt>
lea    0xe62(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1080 <test_imaginaries@plt>
lea    0xe61(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1030 <test_small@plt>
lea    0xe66(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1050 <test_large@plt>
lea    0xe65(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"1..7\0A\00"
@.str.1 = [18 x i8] c"ok 1 - cexp zero\0A\00"
@.str.2 = [17 x i8] c"ok 2 - cexp nan\0A\00"
@.str.3 = [17 x i8] c"ok 3 - cexp inf\0A\00"
@.str.4 = [19 x i8] c"ok 4 - cexp reals\0A\00"
@.str.5 = [25 x i8] c"ok 5 - cexp imaginaries\0A\00"
@.str.6 = [19 x i8] c"ok 6 - cexp small\0A\00"
@.str.7 = [19 x i8] c"ok 7 - cexp large\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 ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%7 = call i32 (...) @test_zero()
%8 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 (...) @test_nan()
%10 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 (...) @test_inf()
%12 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
%13 = call i32 (...) @test_reals()
%14 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
%15 = call i32 (...) @test_imaginaries()
%16 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0))
%17 = call i32 (...) @test_small()
%18 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0))
%19 = call i32 (...) @test_large()
%20 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [5 x i8] c"1..7\00"
@str.8 = [17 x i8] c"ok 1 - cexp zero\00"
@str.9 = [16 x i8] c"ok 2 - cexp nan\00"
@str.10 = [16 x i8] c"ok 3 - cexp inf\00"
@str.11 = [18 x i8] c"ok 4 - cexp reals\00"
@str.12 = [24 x i8] c"ok 5 - cexp imaginaries\00"
@str.13 = [18 x i8] c"ok 6 - cexp small\00"
@str.14 = [18 x i8] c"ok 7 - cexp large\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 (...) @test_zero()
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.8, i64 0, i64 0))
%6 = tail call i32 (...) @test_nan()
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.9, i64 0, i64 0))
%8 = tail call i32 (...) @test_inf()
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.10, i64 0, i64 0))
%10 = tail call i32 (...) @test_reals()
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.11, i64 0, i64 0))
%12 = tail call i32 (...) @test_imaginaries()
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.12, i64 0, i64 0))
%14 = tail call i32 (...) @test_small()
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.13, i64 0, i64 0))
%16 = tail call i32 (...) @test_large()
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.14, i64 0, i64 0))
ret i32 0
}