#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_axes();
int /*<<< orphan*/ test_inf();
int /*<<< orphan*/ test_large();
int /*<<< orphan*/ test_nan();
int /*<<< orphan*/ test_small();
int /*<<< orphan*/ test_zero();
int main(int argc, char *argv[]) {
  printf("1..6\n");
  test_zero();
  printf("ok 1 - invctrig zero\n");
  test_nan();
  printf("ok 2 - invctrig nan\n");
  test_inf();
  printf("ok 3 - invctrig inf\n");
  test_axes();
  printf("ok 4 - invctrig axes\n");
  test_small();
  printf("ok 5 - invctrig small\n");
  test_large();
  printf("ok 6 - invctrig 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    0xe73(%rip),%rdi
call   1060 <printf@plt>
mov    $0x0,%al
call   1090 <test_zero@plt>
lea    0xe66(%rip),%rdi
call   1060 <printf@plt>
mov    $0x0,%al
call   1080 <test_nan@plt>
lea    0xe69(%rip),%rdi
call   1060 <printf@plt>
mov    $0x0,%al
call   1070 <test_inf@plt>
lea    0xe6b(%rip),%rdi
call   1060 <printf@plt>
mov    $0x0,%al
call   1050 <test_axes@plt>
lea    0xe6d(%rip),%rdi
call   1060 <printf@plt>
mov    $0x0,%al
call   1030 <test_small@plt>
lea    0xe70(%rip),%rdi
call   1060 <printf@plt>
mov    $0x0,%al
call   1040 <test_large@plt>
lea    0xe74(%rip),%rdi
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xe88(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1090 <test_zero@plt>
lea    0xe7a(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1080 <test_nan@plt>
lea    0xe7c(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1070 <test_inf@plt>
lea    0xe7d(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1060 <test_axes@plt>
lea    0xe7e(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1030 <test_small@plt>
lea    0xe80(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1050 <test_large@plt>
lea    0xe83(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"1..6\0A\00"
@.str.1 = [22 x i8] c"ok 1 - invctrig zero\0A\00"
@.str.2 = [21 x i8] c"ok 2 - invctrig nan\0A\00"
@.str.3 = [21 x i8] c"ok 3 - invctrig inf\0A\00"
@.str.4 = [22 x i8] c"ok 4 - invctrig axes\0A\00"
@.str.5 = [23 x i8] c"ok 5 - invctrig small\0A\00"
@.str.6 = [23 x i8] c"ok 6 - invctrig 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 ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 (...) @test_nan()
%10 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 (...) @test_inf()
%12 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.3, i64 0, i64 0))
%13 = call i32 (...) @test_axes()
%14 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0))
%15 = call i32 (...) @test_small()
%16 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0))
%17 = call i32 (...) @test_large()
%18 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [5 x i8] c"1..6\00"
@str.7 = [21 x i8] c"ok 1 - invctrig zero\00"
@str.8 = [20 x i8] c"ok 2 - invctrig nan\00"
@str.9 = [20 x i8] c"ok 3 - invctrig inf\00"
@str.10 = [21 x i8] c"ok 4 - invctrig axes\00"
@str.11 = [22 x i8] c"ok 5 - invctrig small\00"
@str.12 = [22 x i8] c"ok 6 - invctrig 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 ([21 x i8], [21 x i8]* @str.7, i64 0, i64 0))
%6 = tail call i32 (...) @test_nan()
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.8, i64 0, i64 0))
%8 = tail call i32 (...) @test_inf()
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.9, i64 0, i64 0))
%10 = tail call i32 (...) @test_axes()
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.10, i64 0, i64 0))
%12 = tail call i32 (...) @test_small()
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.11, i64 0, i64 0))
%14 = tail call i32 (...) @test_large()
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.12, i64 0, i64 0))
ret i32 0
}