int main(void) {
  char str[] = "123.456";
  double x, h, li, lr, a, lrr;
  printf("pow(12.0, 2.0) == %f\n", pow(12.0, 2.0));
  printf("pow(10.0, 3.0) == %f\n", pow(10.0, 3.0));
  printf("pow(10.0, -3.0) == %f\n", pow(10.0, -3.0));
  printf("str: %s\n", str);
  x = (double)atoi(str);
  printf("x: %f\n", x);
  printf("str: %s\n", str);
  x = atof(str);
  printf("x: %f\n", x);
  printf("str: %s\n", str);
  x = atof(str);
  printf("x: %f\n", x);
  printf("%g %f %d %g\n", x, x, (int)x, pow(10.0, 3.0));
  x = sinh(2.0);
  printf("sinh(2.0) = %g\n", x);
  x = sinh(3.0);
  printf("sinh(3.0) = %g\n", x);
  h = hypot(2.0, 3.0);
  printf("h=%g\n", h);
  a = atan2(3.0, 2.0);
  printf("atan2(3,2) = %g\n", a);
  lr = pow(h, 4.0);
  printf("pow(%g,4.0) = %g\n", h, lr);
  lrr = lr;
  li = 4.0 * a;
  lr = lr / exp(a * 5.0);
  printf("%g / exp(%g * 5) = %g\n", lrr, a, lr);
  lrr = li;
  li += 5.0 * log(h);
  printf("%g + 5*log(%g) = %g\n", lrr, h, li);
  printf("cos(%g) = %g,  sin(%g) = %g\n", li, cos(li), li, sin(li));
  printf("x%8.6gx\n", .5);
  printf("x%-8.6gx\n", .5);
  printf("x%6.6gx\n", .5);
  {
    double x = atof("-1e-17-");
    printf("%g %c= %g %s!\n", x, x == -1e-17 ? '=' : '!', -1e-17,
           fabs(x - -1e-17) < 0.000000001 ? "Worked" : "Failed");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xe97(%rip),%rax
mov    %rax,-0xc(%rbp)
movsd  0xe73(%rip),%xmm0
movsd  0xe53(%rip),%xmm1
call   10c0 <pow@plt>
lea    0xe7f(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0xe40(%rip),%xmm0
movsd  0xe28(%rip),%xmm1
call   10c0 <pow@plt>
lea    0xe72(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0xe1d(%rip),%xmm0
movsd  0xe1d(%rip),%xmm1
call   10c0 <pow@plt>
lea    0xe65(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
lea    -0xc(%rbp),%rsi
lea    0xe6a(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0xc(%rbp),%rdi
mov    $0x0,%al
call   10d0 <atoi@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
lea    0xe4c(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
lea    -0xc(%rbp),%rsi
lea    0xe31(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0xc(%rbp),%rdi
mov    $0x0,%al
call   1040 <atof@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
lea    0xe13(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
lea    -0xc(%rbp),%rsi
lea    0xdf8(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0xc(%rbp),%rdi
mov    $0x0,%al
call   1040 <atof@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
lea    0xdda(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
cvttsd2si -0x18(%rbp),%eax
mov    %eax,-0x74(%rbp)
movsd  0xd33(%rip),%xmm0
movsd  0xd1b(%rip),%xmm1
call   10c0 <pow@plt>
movsd  -0x80(%rbp),%xmm1
mov    -0x74(%rbp),%esi
movaps %xmm0,%xmm2
movsd  -0x70(%rbp),%xmm0
lea    0xd92(%rip),%rdi
mov    $0x3,%al
call   1060 <printf@plt>
movsd  0xcf8(%rip),%xmm0
call   1030 <sinh@plt>
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
lea    0xd7a(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0xccb(%rip),%xmm0
call   1030 <sinh@plt>
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
lea    0xd65(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0xcae(%rip),%xmm0
movsd  0xc9e(%rip),%xmm1
call   1080 <hypot@plt>
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
lea    0xd48(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0xc79(%rip),%xmm0
movsd  0xc79(%rip),%xmm1
call   1050 <atan2@plt>
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm0
lea    0xd21(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
movsd  -0x20(%rbp),%xmm0
movsd  0xc3f(%rip),%xmm1
call   10c0 <pow@plt>
movsd  %xmm0,-0x30(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm1
lea    0xd03(%rip),%rdi
mov    $0x2,%al
call   1060 <printf@plt>
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xc0b(%rip),%xmm0
mulsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  0xbe7(%rip),%xmm0
mulsd  -0x38(%rbp),%xmm0
call   1090 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x68(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm2
lea    0xcaf(%rip),%rdi
mov    $0x3,%al
call   1060 <printf@plt>
movsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x20(%rbp),%xmm0
call   10b0 <log@plt>
movsd  -0x28(%rbp),%xmm1
movsd  0xb8e(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  -0x20(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm2
lea    0xc7b(%rip),%rdi
mov    $0x3,%al
call   1060 <printf@plt>
movsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x28(%rbp),%xmm0
call   10a0 <cos@plt>
movsd  %xmm0,-0x60(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x28(%rbp),%xmm0
call   1070 <sin@plt>
movsd  -0x60(%rbp),%xmm1
movsd  -0x58(%rbp),%xmm2
movaps %xmm0,%xmm3
movsd  -0x50(%rbp),%xmm0
lea    0xc43(%rip),%rdi
mov    $0x4,%al
call   1060 <printf@plt>
lea    0xc52(%rip),%rdi
movsd  0xb00(%rip),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xc45(%rip),%rdi
movsd  0xaea(%rip),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xc39(%rip),%rdi
movsd  0xad4(%rip),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
lea    0xc2c(%rip),%rdi
mov    $0x0,%al
call   1040 <atof@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
movsd  0xa94(%rip),%xmm2
mov    $0x21,%esi
mov    $0x3d,%eax
ucomisd %xmm2,%xmm1
setnp  %dl
sete   %cl
test   %dl,%cl
cmovne %eax,%esi
movsd  -0x48(%rbp),%xmm2
movsd  0xa6e(%rip),%xmm1
subsd  %xmm1,%xmm2
movaps 0xab3(%rip),%xmm1
pand   %xmm1,%xmm2
movsd  0xa5f(%rip),%xmm1
lea    0xbe4(%rip),%rdx
lea    0xbd6(%rip),%rax
ucomisd %xmm2,%xmm1
cmova  %rax,%rdx
lea    0xbb8(%rip),%rdi
movsd  0xa32(%rip),%xmm1
mov    $0x2,%al
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x20,%rsp
movabs $0x3635342e333231,%rax
mov    %rax,0x18(%rsp)
lea    0xee1(%rip),%rdi
movsd  0xe49(%rip),%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xee1(%rip),%rdi
movsd  0xe3b(%rip),%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xee1(%rip),%rdi
movsd  0xe2d(%rip),%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xee2(%rip),%r14
lea    0x18(%rsp),%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   10b0 <atoi@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
lea    0xec1(%rip),%r15
mov    %r15,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <atof@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mov    %r15,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <atof@plt>
mov    %eax,%ebx
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x8(%rsp)
mov    %r15,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xe5f(%rip),%rdi
movsd  0x8(%rsp),%xmm0
movaps %xmm0,%xmm1
mov    %ebx,%esi
movsd  0xd71(%rip),%xmm2
mov    $0x3,%al
call   1050 <printf@plt>
lea    0xe4b(%rip),%rdi
movsd  0xd6b(%rip),%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xe45(%rip),%rdi
movsd  0xd5d(%rip),%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
movsd  0xd56(%rip),%xmm0
movsd  0xd56(%rip),%xmm1
call   1070 <hypot@plt>
movsd  %xmm0,0x8(%rsp)
lea    0xe24(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  0xd35(%rip),%xmm0
movsd  0xd25(%rip),%xmm1
call   1040 <atan2@plt>
lea    0xe07(%rip),%rdi
movsd  0xd21(%rip),%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
movsd  0xd1a(%rip),%xmm1
movsd  0x8(%rsp),%xmm0
call   10a0 <pow@plt>
movaps %xmm0,%xmm1
movsd  %xmm0,0x10(%rsp)
lea    0xde6(%rip),%rdi
movsd  0x8(%rsp),%xmm0
mov    $0x2,%al
call   1050 <printf@plt>
movsd  0x10(%rsp),%xmm0
movapd %xmm0,%xmm2
divsd  0xce8(%rip),%xmm2
lea    0xdd2(%rip),%rdi
movsd  0xcc9(%rip),%xmm1
mov    $0x3,%al
call   1050 <printf@plt>
movsd  0x8(%rsp),%xmm0
call   1090 <log@plt>
movapd %xmm0,%xmm2
mulsd  0xcc3(%rip),%xmm2
movsd  0xcc3(%rip),%xmm0
addsd  %xmm0,%xmm2
movsd  %xmm2,0x10(%rsp)
lea    0xdaa(%rip),%rdi
movsd  0x8(%rsp),%xmm1
mov    $0x3,%al
call   1050 <printf@plt>
movsd  0x10(%rsp),%xmm0
call   1080 <cos@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
call   1060 <sin@plt>
movaps %xmm0,%xmm3
lea    0xd8c(%rip),%rdi
movsd  0x10(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
movaps %xmm0,%xmm2
mov    $0x4,%al
call   1050 <printf@plt>
lea    0xd8c(%rip),%rdi
movsd  0xc62(%rip),%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xd7f(%rip),%rdi
movsd  0xc4c(%rip),%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xd73(%rip),%rdi
movsd  0xc36(%rip),%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xd66(%rip),%rdi
xor    %eax,%eax
call   1030 <atof@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0xc1a(%rip),%xmm1
addsd  %xmm0,%xmm1
andpd  0xc26(%rip),%xmm1
movsd  0xc0e(%rip),%xmm2
ucomisd %xmm1,%xmm2
lea    0xd48(%rip),%rax
lea    0xd48(%rip),%rdx
cmova  %rax,%rdx
lea    0xd27(%rip),%rdi
movsd  0xbf1(%rip),%xmm1
mov    $0x21,%esi
mov    $0x2,%al
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.main.str = [8 x i8] c"123.456\00"
@.str = [22 x i8] c"pow(12.0, 2.0) == %f\0A\00"
@.str.1 = [22 x i8] c"pow(10.0, 3.0) == %f\0A\00"
@.str.2 = [23 x i8] c"pow(10.0, -3.0) == %f\0A\00"
@.str.3 = [9 x i8] c"str: %s\0A\00"
@.str.4 = [7 x i8] c"x: %f\0A\00"
@.str.5 = [13 x i8] c"%g %f %d %g\0A\00"
@.str.6 = [16 x i8] c"sinh(2.0) = %g\0A\00"
@.str.7 = [16 x i8] c"sinh(3.0) = %g\0A\00"
@.str.8 = [6 x i8] c"h=%g\0A\00"
@.str.9 = [17 x i8] c"atan2(3,2) = %g\0A\00"
@.str.10 = [18 x i8] c"pow(%g,4.0) = %g\0A\00"
@.str.11 = [23 x i8] c"%g / exp(%g * 5) = %g\0A\00"
@.str.12 = [21 x i8] c"%g + 5*log(%g) = %g\0A\00"
@.str.13 = [29 x i8] c"cos(%g) = %g, sin(%g) = %g\0A\00"
@.str.14 = [9 x i8] c"x%8.6gx\0A\00"
@.str.15 = [10 x i8] c"x%-8.6gx\0A\00"
@.str.16 = [9 x i8] c"x%6.6gx\0A\00"
@.str.17 = [8 x i8] c"-1e-17-\00"
@.str.18 = [15 x i8] c"%g %c= %g %s!\0A\00"
@.str.19 = [7 x i8] c"Worked\00"
@.str.20 = [7 x i8] c"Failed\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [8 x i8]
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
store i32 0, i32* %1
%10 = bitcast [8 x i8]* %2 to i8*
%11 = call double @pow(double 1.200000e+01, double 2.000000e+00)
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), double %11)
%13 = call double @pow(double 1.000000e+01, double 3.000000e+00)
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), double %13)
%15 = call double @pow(double 1.000000e+01, double -3.000000e+00)
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), double %15)
%17 = getelementptr inbounds [8 x i8], [8 x i8]* %2, i64 0, i64 0
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* %17)
%19 = getelementptr inbounds [8 x i8], [8 x i8]* %2, i64 0, i64 0
%20 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %19)
%21 = sitofp i32 %20 to double
store double %21, double* %3
%22 = load double, double* %3
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %22)
%24 = getelementptr inbounds [8 x i8], [8 x i8]* %2, i64 0, i64 0
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* %24)
%26 = getelementptr inbounds [8 x i8], [8 x i8]* %2, i64 0, i64 0
%27 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* %26)
%28 = sitofp i32 %27 to double
store double %28, double* %3
%29 = load double, double* %3
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %29)
%31 = getelementptr inbounds [8 x i8], [8 x i8]* %2, i64 0, i64 0
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* %31)
%33 = getelementptr inbounds [8 x i8], [8 x i8]* %2, i64 0, i64 0
%34 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* %33)
%35 = sitofp i32 %34 to double
store double %35, double* %3
%36 = load double, double* %3
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %36)
%38 = load double, double* %3
%39 = load double, double* %3
%40 = load double, double* %3
%41 = fptosi double %40 to i32
%42 = call double @pow(double 1.000000e+01, double 3.000000e+00)
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), double %38, double %39, i32 %41, double %42)
%44 = call double @sinh(double 2.000000e+00)
store double %44, double* %3
%45 = load double, double* %3
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0), double %45)
%47 = call double @sinh(double 3.000000e+00)
store double %47, double* %3
%48 = load double, double* %3
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), double %48)
%50 = call double @hypot(double 2.000000e+00, double 3.000000e+00)
store double %50, double* %4
%51 = load double, double* %4
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), double %51)
%53 = call double @atan2(double 3.000000e+00, double 2.000000e+00)
store double %53, double* %7
%54 = load double, double* %7
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0), double %54)
%56 = load double, double* %4
%57 = call double @pow(double %56, double 4.000000e+00)
store double %57, double* %6
%58 = load double, double* %4
%59 = load double, double* %6
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.10, i64 0, i64 0), double %58, double %59)
%61 = load double, double* %6
store double %61, double* %8
%62 = load double, double* %7
%63 = fmul double 4.000000e+00, %62
store double %63, double* %5
%64 = load double, double* %6
%65 = load double, double* %7
%66 = fmul double %65, 5.000000e+00
%67 = call double @exp(double %66)
%68 = fdiv double %64, %67
store double %68, double* %6
%69 = load double, double* %8
%70 = load double, double* %7
%71 = load double, double* %6
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.11, i64 0, i64 0), double %69, double %70, double %71)
%73 = load double, double* %5
store double %73, double* %8
%74 = load double, double* %4
%75 = call double @log(double %74)
%76 = load double, double* %5
%77 = call double @llvm.fmuladd.f64(double 5.000000e+00, double %75, double %76)
store double %77, double* %5
%78 = load double, double* %8
%79 = load double, double* %4
%80 = load double, double* %5
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.12, i64 0, i64 0), double %78, double %79, double %80)
%82 = load double, double* %5
%83 = load double, double* %5
%84 = call double @cos(double %83)
%85 = load double, double* %5
%86 = load double, double* %5
%87 = call double @sin(double %86)
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.13, i64 0, i64 0), double %82, double %84, double %85, double %87)
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i64 0, i64 0), double 5.000000e-01)
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0), double 5.000000e-01)
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.16, i64 0, i64 0), double 5.000000e-01)
%92 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0))
%93 = sitofp i32 %92 to double
store double %93, double* %9
%94 = load double, double* %9
%95 = load double, double* %9
%96 = fcmp oeq double %95, -1.000000e-17
%97 = zext i1 %96 to i64
%98 = select i1 %96, i32 61, i32 33
%99 = load double, double* %9
%100 = fsub double %99, -1.000000e-17
%101 = call double @llvm.fabs.f64(double %100)
%102 = fcmp olt double %101, 1.000000e-09
%103 = zext i1 %102 to i64
%104 = select i1 %102, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.20, i64 0, i64 0)
%105 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.18, i64 0, i64 0), double %94, i32 %98, double -1.000000e-17, i8* %104)
ret i32 0
}

LLVM IR (-O2):
@.str = [22 x i8] c"pow(12.0, 2.0) == %f\0A\00"
@.str.1 = [22 x i8] c"pow(10.0, 3.0) == %f\0A\00"
@.str.2 = [23 x i8] c"pow(10.0, -3.0) == %f\0A\00"
@.str.3 = [9 x i8] c"str: %s\0A\00"
@.str.4 = [7 x i8] c"x: %f\0A\00"
@.str.5 = [13 x i8] c"%g %f %d %g\0A\00"
@.str.6 = [16 x i8] c"sinh(2.0) = %g\0A\00"
@.str.7 = [16 x i8] c"sinh(3.0) = %g\0A\00"
@.str.8 = [6 x i8] c"h=%g\0A\00"
@.str.9 = [17 x i8] c"atan2(3,2) = %g\0A\00"
@.str.10 = [18 x i8] c"pow(%g,4.0) = %g\0A\00"
@.str.11 = [23 x i8] c"%g / exp(%g * 5) = %g\0A\00"
@.str.12 = [21 x i8] c"%g + 5*log(%g) = %g\0A\00"
@.str.13 = [29 x i8] c"cos(%g) = %g, sin(%g) = %g\0A\00"
@.str.14 = [9 x i8] c"x%8.6gx\0A\00"
@.str.15 = [10 x i8] c"x%-8.6gx\0A\00"
@.str.16 = [9 x i8] c"x%6.6gx\0A\00"
@.str.17 = [8 x i8] c"-1e-17-\00"
@.str.18 = [15 x i8] c"%g %c= %g %s!\0A\00"
@.str.19 = [7 x i8] c"Worked\00"
@.str.20 = [7 x i8] c"Failed\00"
define i32 @main() {
%1 = alloca i64
%2 = bitcast i64* %1 to i8*
store i64 15258146972054065, i64* %1
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), double 1.440000e+02)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), double 1.000000e+03)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), double 1.000000e-03)
%6 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i64* %1)
%7 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %2)
%8 = sitofp i32 %7 to double
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %8)
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i64* %1)
%11 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* %2)
%12 = sitofp i32 %11 to double
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %12)
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i64* %1)
%15 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* %2)
%16 = sitofp i32 %15 to double
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), double %16)
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), double %16, double %16, i32 %15, double 1.000000e+03)
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0), double 0x400D03CF63B6E1A0)
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), double 0x40240926E70949AE)
%21 = call double @hypot(double 2.000000e+00, double 3.000000e+00)
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), double %21)
%23 = call double @atan2(double 3.000000e+00, double 2.000000e+00)
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0), double 0x3FEF730BD281F69B)
%25 = call double @pow(double %21, double 4.000000e+00)
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.10, i64 0, i64 0), double %21, double %25)
%27 = fdiv double %25, 0x406105B89AD11457
%28 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.11, i64 0, i64 0), double %25, double 0x3FEF730BD281F69B, double %27)
%29 = call double @log(double %21)
%30 = call double @llvm.fmuladd.f64(double %29, double 5.000000e+00, double 0x400F730BD281F69B)
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.12, i64 0, i64 0), double 0x400F730BD281F69B, double %21, double %30)
%32 = call double @cos(double %30)
%33 = call double @sin(double %30)
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.13, i64 0, i64 0), double %30, double %32, double %30, double %33)
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i64 0, i64 0), double 5.000000e-01)
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0), double 5.000000e-01)
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.16, i64 0, i64 0), double 5.000000e-01)
%38 = call i32 (i8*, ...) bitcast (i32 (...)* @atof to i32 (i8*, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0))
%39 = sitofp i32 %38 to double
%40 = fadd double %39, 1.000000e-17
%41 = call double @llvm.fabs.f64(double %40)
%42 = fcmp olt double %41, 1.000000e-09
%43 = select i1 %42, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.20, i64 0, i64 0)
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.18, i64 0, i64 0), double %39, i32 33, double -1.000000e-17, i8* %43)
ret i32 0
}