#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);
int main() {
  double base, emin, prec, emax, rmin, rmax, t, sfmin;
  extern double dlamch_(char *);
  double rnd, eps;
  eps = dlamch_("Epsilon");
  sfmin = dlamch_("Safe minimum");
  base = dlamch_("Base");
  prec = dlamch_("Precision");
  t = dlamch_("Number of digits in mantissa");
  rnd = dlamch_("Rounding mode");
  emin = dlamch_("Minnimum exponent");
  rmin = dlamch_("Underflow threshold");
  emax = dlamch_("Largest exponent");
  rmax = dlamch_("Overflow threshold");
  printf(" Epsilon                      = %e\n", eps);
  printf(" Safe minimum                 = %e\n", sfmin);
  printf(" Base                         = %.0f\n", base);
  printf(" Precision                    = %e\n", prec);
  printf(" Number of digits in mantissa = %.0f\n", t);
  printf(" Rounding mode                = %.0f\n", rnd);
  printf(" Minimum exponent             = %.0f\n", emin);
  printf(" Underflow threshold          = %e\n", rmin);
  printf(" Largest exponent             = %.0f\n", emax);
  printf(" Overflow threshold           = %e\n", rmax);
  printf(" Reciprocal of safe minimum   = %e\n", 1. / sfmin);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xed2(%rip),%rdi
call   1040 <dlamch_@plt>
movsd  %xmm0,-0x58(%rbp)
lea    0xec9(%rip),%rdi
call   1040 <dlamch_@plt>
movsd  %xmm0,-0x48(%rbp)
lea    0xec5(%rip),%rdi
call   1040 <dlamch_@plt>
movsd  %xmm0,-0x10(%rbp)
lea    0xeb9(%rip),%rdi
call   1040 <dlamch_@plt>
movsd  %xmm0,-0x20(%rbp)
lea    0xeb2(%rip),%rdi
call   1040 <dlamch_@plt>
movsd  %xmm0,-0x40(%rbp)
lea    0xebe(%rip),%rdi
call   1040 <dlamch_@plt>
movsd  %xmm0,-0x50(%rbp)
lea    0xebb(%rip),%rdi
call   1040 <dlamch_@plt>
movsd  %xmm0,-0x18(%rbp)
lea    0xebc(%rip),%rdi
call   1040 <dlamch_@plt>
movsd  %xmm0,-0x30(%rbp)
lea    0xebf(%rip),%rdi
call   1040 <dlamch_@plt>
movsd  %xmm0,-0x28(%rbp)
lea    0xebf(%rip),%rdi
call   1040 <dlamch_@plt>
movsd  %xmm0,-0x38(%rbp)
cvttsd2si -0x58(%rbp),%esi
lea    0xebc(%rip),%rdi
call   1030 <printf@plt>
cvttsd2si -0x48(%rbp),%esi
lea    0xecf(%rip),%rdi
call   1030 <printf@plt>
cvttsd2si -0x10(%rbp),%esi
lea    0xee2(%rip),%rdi
call   1030 <printf@plt>
cvttsd2si -0x20(%rbp),%esi
lea    0xef7(%rip),%rdi
call   1030 <printf@plt>
cvttsd2si -0x40(%rbp),%esi
lea    0xf0a(%rip),%rdi
call   1030 <printf@plt>
cvttsd2si -0x50(%rbp),%esi
lea    0xf1f(%rip),%rdi
call   1030 <printf@plt>
cvttsd2si -0x18(%rbp),%esi
lea    0xf34(%rip),%rdi
call   1030 <printf@plt>
cvttsd2si -0x30(%rbp),%esi
lea    0xf49(%rip),%rdi
call   1030 <printf@plt>
cvttsd2si -0x28(%rbp),%esi
lea    0xf5c(%rip),%rdi
call   1030 <printf@plt>
cvttsd2si -0x38(%rbp),%esi
lea    0xf71(%rip),%rdi
call   1030 <printf@plt>
movsd  0xd75(%rip),%xmm0
divsd  -0x48(%rbp),%xmm0
cvttsd2si %xmm0,%esi
lea    0xf78(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x58,%rsp
lea    0xedd(%rip),%rdi
call   1040 <dlamch_@plt>
movsd  %xmm0,0x10(%rsp)
lea    0xed3(%rip),%rdi
call   1040 <dlamch_@plt>
movsd  %xmm0,0x8(%rsp)
lea    0xece(%rip),%rdi
call   1040 <dlamch_@plt>
movsd  %xmm0,0x18(%rsp)
lea    0xec1(%rip),%rdi
call   1040 <dlamch_@plt>
movsd  %xmm0,0x20(%rsp)
lea    0xeb9(%rip),%rdi
call   1040 <dlamch_@plt>
movsd  %xmm0,0x28(%rsp)
lea    0xec4(%rip),%rdi
call   1040 <dlamch_@plt>
movsd  %xmm0,0x30(%rsp)
lea    0xec0(%rip),%rdi
call   1040 <dlamch_@plt>
movsd  %xmm0,0x38(%rsp)
lea    0xec0(%rip),%rdi
call   1040 <dlamch_@plt>
movsd  %xmm0,0x40(%rsp)
lea    0xec2(%rip),%rdi
call   1040 <dlamch_@plt>
movsd  %xmm0,0x48(%rsp)
lea    0xec1(%rip),%rdi
call   1040 <dlamch_@plt>
movsd  %xmm0,0x50(%rsp)
cvttsd2si 0x10(%rsp),%esi
lea    0xebc(%rip),%rdi
call   1030 <printf@plt>
cvttsd2si 0x8(%rsp),%esi
lea    0xece(%rip),%rdi
call   1030 <printf@plt>
cvttsd2si 0x18(%rsp),%esi
lea    0xee0(%rip),%rdi
call   1030 <printf@plt>
cvttsd2si 0x20(%rsp),%esi
lea    0xef4(%rip),%rdi
call   1030 <printf@plt>
cvttsd2si 0x28(%rsp),%esi
lea    0xf06(%rip),%rdi
call   1030 <printf@plt>
cvttsd2si 0x30(%rsp),%esi
lea    0xf1a(%rip),%rdi
call   1030 <printf@plt>
cvttsd2si 0x38(%rsp),%esi
lea    0xf2e(%rip),%rdi
call   1030 <printf@plt>
cvttsd2si 0x40(%rsp),%esi
lea    0xf42(%rip),%rdi
call   1030 <printf@plt>
cvttsd2si 0x48(%rsp),%esi
lea    0xf54(%rip),%rdi
call   1030 <printf@plt>
cvttsd2si 0x50(%rsp),%esi
lea    0xf68(%rip),%rdi
call   1030 <printf@plt>
movsd  0xd6c(%rip),%xmm0
divsd  0x8(%rsp),%xmm0
cvttsd2si %xmm0,%esi
lea    0xf6e(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x58,%rsp
ret

LLVM IR (-O0):
@.str = [8 x i8] c"Epsilon\00"
@.str.1 = [13 x i8] c"Safe minimum\00"
@.str.2 = [5 x i8] c"Base\00"
@.str.3 = [10 x i8] c"Precision\00"
@.str.4 = [29 x i8] c"Number of digits in mantissa\00"
@.str.5 = [14 x i8] c"Rounding mode\00"
@.str.6 = [18 x i8] c"Minnimum exponent\00"
@.str.7 = [20 x i8] c"Underflow threshold\00"
@.str.8 = [17 x i8] c"Largest exponent\00"
@.str.9 = [19 x i8] c"Overflow threshold\00"
@.str.10 = [36 x i8] c" Epsilon = %e\0A\00"
@.str.11 = [36 x i8] c" Safe minimum = %e\0A\00"
@.str.12 = [38 x i8] c" Base = %.0f\0A\00"
@.str.13 = [36 x i8] c" Precision = %e\0A\00"
@.str.14 = [38 x i8] c" Number of digits in mantissa = %.0f\0A\00"
@.str.15 = [38 x i8] c" Rounding mode = %.0f\0A\00"
@.str.16 = [38 x i8] c" Minimum exponent = %.0f\0A\00"
@.str.17 = [36 x i8] c" Underflow threshold = %e\0A\00"
@.str.18 = [38 x i8] c" Largest exponent = %.0f\0A\00"
@.str.19 = [36 x i8] c" Overflow threshold = %e\0A\00"
@.str.20 = [36 x i8] c" Reciprocal of safe minimum = %e\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
store i32 0, i32* %1
%12 = call double @dlamch_(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
store double %12, double* %11
%13 = call double @dlamch_(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
store double %13, double* %9
%14 = call double @dlamch_(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
store double %14, double* %2
%15 = call double @dlamch_(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
store double %15, double* %4
%16 = call double @dlamch_(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0))
store double %16, double* %8
%17 = call double @dlamch_(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
store double %17, double* %10
%18 = call double @dlamch_(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
store double %18, double* %3
%19 = call double @dlamch_(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
store double %19, double* %6
%20 = call double @dlamch_(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
store double %20, double* %5
%21 = call double @dlamch_(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0))
store double %21, double* %7
%22 = load double, double* %11
%23 = fptosi double %22 to i32
%24 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.10, i64 0, i64 0), i32 %23)
%25 = load double, double* %9
%26 = fptosi double %25 to i32
%27 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.11, i64 0, i64 0), i32 %26)
%28 = load double, double* %2
%29 = fptosi double %28 to i32
%30 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.12, i64 0, i64 0), i32 %29)
%31 = load double, double* %4
%32 = fptosi double %31 to i32
%33 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.13, i64 0, i64 0), i32 %32)
%34 = load double, double* %8
%35 = fptosi double %34 to i32
%36 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.14, i64 0, i64 0), i32 %35)
%37 = load double, double* %10
%38 = fptosi double %37 to i32
%39 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.15, i64 0, i64 0), i32 %38)
%40 = load double, double* %3
%41 = fptosi double %40 to i32
%42 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.16, i64 0, i64 0), i32 %41)
%43 = load double, double* %6
%44 = fptosi double %43 to i32
%45 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.17, i64 0, i64 0), i32 %44)
%46 = load double, double* %5
%47 = fptosi double %46 to i32
%48 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.18, i64 0, i64 0), i32 %47)
%49 = load double, double* %7
%50 = fptosi double %49 to i32
%51 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.19, i64 0, i64 0), i32 %50)
%52 = load double, double* %9
%53 = fdiv double 1.000000e+00, %52
%54 = fptosi double %53 to i32
%55 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.20, i64 0, i64 0), i32 %54)
ret i32 0
}

LLVM IR (-O2):
@.str = [8 x i8] c"Epsilon\00"
@.str.1 = [13 x i8] c"Safe minimum\00"
@.str.2 = [5 x i8] c"Base\00"
@.str.3 = [10 x i8] c"Precision\00"
@.str.4 = [29 x i8] c"Number of digits in mantissa\00"
@.str.5 = [14 x i8] c"Rounding mode\00"
@.str.6 = [18 x i8] c"Minnimum exponent\00"
@.str.7 = [20 x i8] c"Underflow threshold\00"
@.str.8 = [17 x i8] c"Largest exponent\00"
@.str.9 = [19 x i8] c"Overflow threshold\00"
@.str.10 = [36 x i8] c" Epsilon = %e\0A\00"
@.str.11 = [36 x i8] c" Safe minimum = %e\0A\00"
@.str.12 = [38 x i8] c" Base = %.0f\0A\00"
@.str.13 = [36 x i8] c" Precision = %e\0A\00"
@.str.14 = [38 x i8] c" Number of digits in mantissa = %.0f\0A\00"
@.str.15 = [38 x i8] c" Rounding mode = %.0f\0A\00"
@.str.16 = [38 x i8] c" Minimum exponent = %.0f\0A\00"
@.str.17 = [36 x i8] c" Underflow threshold = %e\0A\00"
@.str.18 = [38 x i8] c" Largest exponent = %.0f\0A\00"
@.str.19 = [36 x i8] c" Overflow threshold = %e\0A\00"
@.str.20 = [36 x i8] c" Reciprocal of safe minimum = %e\0A\00"
define i32 @main() {
%1 = tail call double @dlamch_(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%2 = tail call double @dlamch_(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call double @dlamch_(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call double @dlamch_(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call double @dlamch_(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call double @dlamch_(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call double @dlamch_(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call double @dlamch_(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call double @dlamch_(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call double @dlamch_(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0))
%11 = fptosi double %1 to i32
%12 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.10, i64 0, i64 0), i32 %11)
%13 = fptosi double %2 to i32
%14 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.11, i64 0, i64 0), i32 %13)
%15 = fptosi double %3 to i32
%16 = tail call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.12, i64 0, i64 0), i32 %15)
%17 = fptosi double %4 to i32
%18 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.13, i64 0, i64 0), i32 %17)
%19 = fptosi double %5 to i32
%20 = tail call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.14, i64 0, i64 0), i32 %19)
%21 = fptosi double %6 to i32
%22 = tail call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.15, i64 0, i64 0), i32 %21)
%23 = fptosi double %7 to i32
%24 = tail call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.16, i64 0, i64 0), i32 %23)
%25 = fptosi double %8 to i32
%26 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.17, i64 0, i64 0), i32 %25)
%27 = fptosi double %9 to i32
%28 = tail call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.18, i64 0, i64 0), i32 %27)
%29 = fptosi double %10 to i32
%30 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.19, i64 0, i64 0), i32 %29)
%31 = fdiv double 1.000000e+00, %2
%32 = fptosi double %31 to i32
%33 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.20, i64 0, i64 0), i32 %32)
ret i32 0
}