#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 */
double acosh(double);
double asinh(double);
double atanh(double);
double cosh(double);
int /*<<< orphan*/ printf(char *, ...);
double sinh(double);
double tanh(double);
int main() {
  double i;
  for (i = -10; i < 10; i += 0.125) {
    printf("i: %g\n", i);
    printf("sinh: %g\n", sinh(i));
    printf("cosh: %g\n", cosh(i));
    printf("tanh: %g\n", tanh(i));
    printf("asinh: %g\n", asinh(i));
    printf("acosh: %g\n", acosh(i));
    printf("atanh: %g\n", atanh(i));
    printf("\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movsd  0xe79(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xe74(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    1267 <main+0xf7>
movsd  -0x10(%rbp),%xmm0
lea    0xe6d(%rip),%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movsd  -0x10(%rbp),%xmm0
call   1030 <sinh@plt>
lea    0xe5d(%rip),%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movsd  -0x10(%rbp),%xmm0
call   1060 <cosh@plt>
lea    0xe50(%rip),%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movsd  -0x10(%rbp),%xmm0
call   1040 <tanh@plt>
lea    0xe43(%rip),%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movsd  -0x10(%rbp),%xmm0
call   1090 <asinh@plt>
lea    0xe14(%rip),%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movsd  -0x10(%rbp),%xmm0
call   1080 <acosh@plt>
lea    0xe07(%rip),%rdi
mov    $0x1,%al
call   1070 <printf@plt>
movsd  -0x10(%rbp),%xmm0
call   1050 <atanh@plt>
lea    0xdfa(%rip),%rdi
mov    $0x1,%al
call   1070 <printf@plt>
lea    0xdf5(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movsd  0xdb8(%rip),%xmm0
addsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
jmp    118c <main+0x1c>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
movsd  0xe6d(%rip),%xmm0
lea    0xe86(%rip),%r15
lea    0xe8a(%rip),%r12
lea    0xe8e(%rip),%r13
lea    0xe70(%rip),%rbx
lea    0xe74(%rip),%rbp
lea    0xe78(%rip),%r14
nopl   (%rax)
movsd  %xmm0,(%rsp)
lea    0xe4c(%rip),%rdi
movsd  (%rsp),%xmm0
mov    $0x1,%al
call   1080 <printf@plt>
movsd  (%rsp),%xmm0
call   1040 <sinh@plt>
mov    %r15,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
movsd  (%rsp),%xmm0
call   1070 <cosh@plt>
mov    %r12,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
movsd  (%rsp),%xmm0
call   1050 <tanh@plt>
mov    %r13,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
movsd  (%rsp),%xmm0
call   10a0 <asinh@plt>
mov    %rbx,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
movsd  (%rsp),%xmm0
call   1090 <acosh@plt>
mov    %rbp,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
movsd  (%rsp),%xmm0
call   1060 <atanh@plt>
mov    %r14,%rdi
mov    $0x1,%al
call   1080 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movsd  (%rsp),%xmm0
addsd  0xda1(%rip),%xmm0
movsd  0xda1(%rip),%xmm1
ucomisd %xmm0,%xmm1
ja     11c0 <main+0x40>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [7 x i8] c"i: %g\0A\00"
@.str.1 = [10 x i8] c"sinh: %g\0A\00"
@.str.2 = [10 x i8] c"cosh: %g\0A\00"
@.str.3 = [10 x i8] c"tanh: %g\0A\00"
@.str.4 = [11 x i8] c"asinh: %g\0A\00"
@.str.5 = [11 x i8] c"acosh: %g\0A\00"
@.str.6 = [11 x i8] c"atanh: %g\0A\00"
@.str.7 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
store i32 0, i32* %1
store double -1.000000e+01, double* %2
br label %3
3: ; preds = %28, %0
%4 = load double, double* %2
%5 = fcmp olt double %4, 1.000000e+01
br i1 %5, label %6, label %31
6: ; preds = %3
%7 = load double, double* %2
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), double %7)
%9 = load double, double* %2
%10 = call double @sinh(double %9)
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), double %10)
%12 = load double, double* %2
%13 = call double @cosh(double %12)
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), double %13)
%15 = load double, double* %2
%16 = call double @tanh(double %15)
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), double %16)
%18 = load double, double* %2
%19 = call double @asinh(double %18)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), double %19)
%21 = load double, double* %2
%22 = call double @acosh(double %21)
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), double %22)
%24 = load double, double* %2
%25 = call double @atanh(double %24)
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), double %25)
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
br label %28
28: ; preds = %6
%29 = load double, double* %2
%30 = fadd double %29, 1.250000e-01
store double %30, double* %2
br label %3
31: ; preds = %3
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c"i: %g\0A\00"
@.str.1 = [10 x i8] c"sinh: %g\0A\00"
@.str.2 = [10 x i8] c"cosh: %g\0A\00"
@.str.3 = [10 x i8] c"tanh: %g\0A\00"
@.str.4 = [11 x i8] c"asinh: %g\0A\00"
@.str.5 = [11 x i8] c"acosh: %g\0A\00"
@.str.6 = [11 x i8] c"atanh: %g\0A\00"
define i32 @main() {
br label %1
1: ; preds = %0, %1
%2 = phi double [ -1.000000e+01, %0 ], [ %17, %1 ]
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), double %2)
%4 = tail call double @sinh(double %2)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), double %4)
%6 = tail call double @cosh(double %2)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), double %6)
%8 = tail call double @tanh(double %2)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), double %8)
%10 = tail call double @asinh(double %2)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), double %10)
%12 = tail call double @acosh(double %2)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), double %12)
%14 = tail call double @atanh(double %2)
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), double %14)
%16 = tail call i32 @putchar(i32 10)
%17 = fadd double %2, 1.250000e-01
%18 = fcmp olt double %17, 1.000000e+01
br i1 %18, label %1, label %19
19: ; preds = %1
ret i32 0
}