#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);
main() {
  float base, emin, prec, emax, rmin, rmax, t, sfmin;
  extern double slamch_(char *);
  float rnd, eps;
  eps = slamch_("Epsilon");
  sfmin = slamch_("Safe minimum");
  base = slamch_("Base");
  prec = slamch_("Precision");
  t = slamch_("Number of digits in mantissa");
  rnd = slamch_("Rounding mode");
  emin = slamch_("Minnimum exponent");
  rmin = slamch_("Underflow threshold");
  emax = slamch_("Largest exponent");
  rmax = slamch_("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    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xed2(%rip),%rdi
call   1040 <slamch_@plt>
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x2c(%rbp)
lea    0xec5(%rip),%rdi
call   1040 <slamch_@plt>
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x24(%rbp)
lea    0xebd(%rip),%rdi
call   1040 <slamch_@plt>
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x8(%rbp)
lea    0xead(%rip),%rdi
call   1040 <slamch_@plt>
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x10(%rbp)
lea    0xea2(%rip),%rdi
call   1040 <slamch_@plt>
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x20(%rbp)
lea    0xeaa(%rip),%rdi
call   1040 <slamch_@plt>
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x28(%rbp)
lea    0xea3(%rip),%rdi
call   1040 <slamch_@plt>
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xc(%rbp)
lea    0xea0(%rip),%rdi
call   1040 <slamch_@plt>
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x18(%rbp)
lea    0xe9f(%rip),%rdi
call   1040 <slamch_@plt>
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x14(%rbp)
lea    0xe9b(%rip),%rdi
call   1040 <slamch_@plt>
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x1c(%rbp)
cvttss2si -0x2c(%rbp),%esi
lea    0xe94(%rip),%rdi
call   1030 <printf@plt>
cvttss2si -0x24(%rbp),%esi
lea    0xea7(%rip),%rdi
call   1030 <printf@plt>
cvttss2si -0x8(%rbp),%esi
lea    0xeba(%rip),%rdi
call   1030 <printf@plt>
cvttss2si -0x10(%rbp),%esi
lea    0xecf(%rip),%rdi
call   1030 <printf@plt>
cvttss2si -0x20(%rbp),%esi
lea    0xee2(%rip),%rdi
call   1030 <printf@plt>
cvttss2si -0x28(%rbp),%esi
lea    0xef7(%rip),%rdi
call   1030 <printf@plt>
cvttss2si -0xc(%rbp),%esi
lea    0xf0c(%rip),%rdi
call   1030 <printf@plt>
cvttss2si -0x18(%rbp),%esi
lea    0xf21(%rip),%rdi
call   1030 <printf@plt>
cvttss2si -0x14(%rbp),%esi
lea    0xf34(%rip),%rdi
call   1030 <printf@plt>
cvttss2si -0x1c(%rbp),%esi
lea    0xf49(%rip),%rdi
call   1030 <printf@plt>
movss  -0x24(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xd44(%rip),%xmm0
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%esi
lea    0xf48(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x28,%rsp
lea    0xedd(%rip),%rdi
call   1040 <slamch_@plt>
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x24(%rsp)
lea    0xecf(%rip),%rdi
call   1040 <slamch_@plt>
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,(%rsp)
lea    0xec7(%rip),%rdi
call   1040 <slamch_@plt>
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x20(%rsp)
lea    0xeb6(%rip),%rdi
call   1040 <slamch_@plt>
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x1c(%rsp)
lea    0xeaa(%rip),%rdi
call   1040 <slamch_@plt>
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x18(%rsp)
lea    0xeb1(%rip),%rdi
call   1040 <slamch_@plt>
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x14(%rsp)
lea    0xea9(%rip),%rdi
call   1040 <slamch_@plt>
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x10(%rsp)
lea    0xea5(%rip),%rdi
call   1040 <slamch_@plt>
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0xc(%rsp)
lea    0xea3(%rip),%rdi
call   1040 <slamch_@plt>
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x8(%rsp)
lea    0xe9e(%rip),%rdi
call   1040 <slamch_@plt>
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x4(%rsp)
cvttss2si 0x24(%rsp),%esi
lea    0xe95(%rip),%rdi
call   1030 <printf@plt>
cvttss2si (%rsp),%esi
lea    0xea8(%rip),%rdi
call   1030 <printf@plt>
cvttss2si 0x20(%rsp),%esi
lea    0xeba(%rip),%rdi
call   1030 <printf@plt>
cvttss2si 0x1c(%rsp),%esi
lea    0xece(%rip),%rdi
call   1030 <printf@plt>
cvttss2si 0x18(%rsp),%esi
lea    0xee0(%rip),%rdi
call   1030 <printf@plt>
cvttss2si 0x14(%rsp),%esi
lea    0xef4(%rip),%rdi
call   1030 <printf@plt>
cvttss2si 0x10(%rsp),%esi
lea    0xf08(%rip),%rdi
call   1030 <printf@plt>
cvttss2si 0xc(%rsp),%esi
lea    0xf1c(%rip),%rdi
call   1030 <printf@plt>
cvttss2si 0x8(%rsp),%esi
lea    0xf2e(%rip),%rdi
call   1030 <printf@plt>
cvttss2si 0x4(%rsp),%esi
lea    0xf42(%rip),%rdi
call   1030 <printf@plt>
movss  (%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xd3d(%rip),%xmm1
divsd  %xmm0,%xmm1
cvttsd2si %xmm1,%esi
lea    0xf41(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x28,%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 float
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
store i32 0, i32* %1
%12 = call double @slamch_(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%13 = fptrunc double %12 to float
store float %13, float* %11
%14 = call double @slamch_(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%15 = fptrunc double %14 to float
store float %15, float* %9
%16 = call double @slamch_(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%17 = fptrunc double %16 to float
store float %17, float* %2
%18 = call double @slamch_(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%19 = fptrunc double %18 to float
store float %19, float* %4
%20 = call double @slamch_(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0))
%21 = fptrunc double %20 to float
store float %21, float* %8
%22 = call double @slamch_(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
%23 = fptrunc double %22 to float
store float %23, float* %10
%24 = call double @slamch_(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%25 = fptrunc double %24 to float
store float %25, float* %3
%26 = call double @slamch_(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
%27 = fptrunc double %26 to float
store float %27, float* %6
%28 = call double @slamch_(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%29 = fptrunc double %28 to float
store float %29, float* %5
%30 = call double @slamch_(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0))
%31 = fptrunc double %30 to float
store float %31, float* %7
%32 = load float, float* %11
%33 = fptosi float %32 to i32
%34 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.10, i64 0, i64 0), i32 %33)
%35 = load float, float* %9
%36 = fptosi float %35 to i32
%37 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.11, i64 0, i64 0), i32 %36)
%38 = load float, float* %2
%39 = fptosi float %38 to i32
%40 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.12, i64 0, i64 0), i32 %39)
%41 = load float, float* %4
%42 = fptosi float %41 to i32
%43 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.13, i64 0, i64 0), i32 %42)
%44 = load float, float* %8
%45 = fptosi float %44 to i32
%46 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.14, i64 0, i64 0), i32 %45)
%47 = load float, float* %10
%48 = fptosi float %47 to i32
%49 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.15, i64 0, i64 0), i32 %48)
%50 = load float, float* %3
%51 = fptosi float %50 to i32
%52 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.16, i64 0, i64 0), i32 %51)
%53 = load float, float* %6
%54 = fptosi float %53 to i32
%55 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.17, i64 0, i64 0), i32 %54)
%56 = load float, float* %5
%57 = fptosi float %56 to i32
%58 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.18, i64 0, i64 0), i32 %57)
%59 = load float, float* %7
%60 = fptosi float %59 to i32
%61 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.19, i64 0, i64 0), i32 %60)
%62 = load float, float* %9
%63 = fpext float %62 to double
%64 = fdiv double 1.000000e+00, %63
%65 = fptosi double %64 to i32
%66 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.20, i64 0, i64 0), i32 %65)
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 @slamch_(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%2 = fptrunc double %1 to float
%3 = tail call double @slamch_(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%4 = fptrunc double %3 to float
%5 = tail call double @slamch_(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%6 = fptrunc double %5 to float
%7 = tail call double @slamch_(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%8 = fptrunc double %7 to float
%9 = tail call double @slamch_(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0))
%10 = fptrunc double %9 to float
%11 = tail call double @slamch_(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
%12 = fptrunc double %11 to float
%13 = tail call double @slamch_(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%14 = fptrunc double %13 to float
%15 = tail call double @slamch_(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
%16 = fptrunc double %15 to float
%17 = tail call double @slamch_(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%18 = fptrunc double %17 to float
%19 = tail call double @slamch_(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0))
%20 = fptrunc double %19 to float
%21 = fptosi float %2 to i32
%22 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.10, i64 0, i64 0), i32 %21)
%23 = fptosi float %4 to i32
%24 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.11, i64 0, i64 0), i32 %23)
%25 = fptosi float %6 to i32
%26 = tail call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.12, i64 0, i64 0), i32 %25)
%27 = fptosi float %8 to i32
%28 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.13, i64 0, i64 0), i32 %27)
%29 = fptosi float %10 to i32
%30 = tail call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.14, i64 0, i64 0), i32 %29)
%31 = fptosi float %12 to i32
%32 = tail call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.15, i64 0, i64 0), i32 %31)
%33 = fptosi float %14 to i32
%34 = tail call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.16, i64 0, i64 0), i32 %33)
%35 = fptosi float %16 to i32
%36 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.17, i64 0, i64 0), i32 %35)
%37 = fptosi float %18 to i32
%38 = tail call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.18, i64 0, i64 0), i32 %37)
%39 = fptosi float %20 to i32
%40 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.19, i64 0, i64 0), i32 %39)
%41 = fpext float %4 to double
%42 = fdiv double 1.000000e+00, %41
%43 = fptosi double %42 to i32
%44 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.20, i64 0, i64 0), i32 %43)
ret i32 0
}