#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() {
  float base, emin, prec, emax, rmin, rmax, t, sfmin;
  extern float 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>
movss  %xmm0,-0x2c(%rbp)
lea    0xec9(%rip),%rdi
call   1040 <slamch_@plt>
movss  %xmm0,-0x24(%rbp)
lea    0xec5(%rip),%rdi
call   1040 <slamch_@plt>
movss  %xmm0,-0x8(%rbp)
lea    0xeb9(%rip),%rdi
call   1040 <slamch_@plt>
movss  %xmm0,-0x10(%rbp)
lea    0xeb2(%rip),%rdi
call   1040 <slamch_@plt>
movss  %xmm0,-0x20(%rbp)
lea    0xebe(%rip),%rdi
call   1040 <slamch_@plt>
movss  %xmm0,-0x28(%rbp)
lea    0xebb(%rip),%rdi
call   1040 <slamch_@plt>
movss  %xmm0,-0xc(%rbp)
lea    0xebc(%rip),%rdi
call   1040 <slamch_@plt>
movss  %xmm0,-0x18(%rbp)
lea    0xebf(%rip),%rdi
call   1040 <slamch_@plt>
movss  %xmm0,-0x14(%rbp)
lea    0xebf(%rip),%rdi
call   1040 <slamch_@plt>
movss  %xmm0,-0x1c(%rbp)
cvttss2si -0x2c(%rbp),%esi
lea    0xebc(%rip),%rdi
call   1030 <printf@plt>
cvttss2si -0x24(%rbp),%esi
lea    0xecf(%rip),%rdi
call   1030 <printf@plt>
cvttss2si -0x8(%rbp),%esi
lea    0xee2(%rip),%rdi
call   1030 <printf@plt>
cvttss2si -0x10(%rbp),%esi
lea    0xef7(%rip),%rdi
call   1030 <printf@plt>
cvttss2si -0x20(%rbp),%esi
lea    0xf0a(%rip),%rdi
call   1030 <printf@plt>
cvttss2si -0x28(%rbp),%esi
lea    0xf1f(%rip),%rdi
call   1030 <printf@plt>
cvttss2si -0xc(%rbp),%esi
lea    0xf34(%rip),%rdi
call   1030 <printf@plt>
cvttss2si -0x18(%rbp),%esi
lea    0xf49(%rip),%rdi
call   1030 <printf@plt>
cvttss2si -0x14(%rbp),%esi
lea    0xf5c(%rip),%rdi
call   1030 <printf@plt>
cvttss2si -0x1c(%rbp),%esi
lea    0xf71(%rip),%rdi
call   1030 <printf@plt>
movss  -0x24(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xd6c(%rip),%xmm0
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%esi
lea    0xf70(%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>
movss  %xmm0,0x4(%rsp)
lea    0xed3(%rip),%rdi
call   1040 <slamch_@plt>
movss  %xmm0,(%rsp)
lea    0xecf(%rip),%rdi
call   1040 <slamch_@plt>
movss  %xmm0,0x8(%rsp)
lea    0xec2(%rip),%rdi
call   1040 <slamch_@plt>
movss  %xmm0,0xc(%rsp)
lea    0xeba(%rip),%rdi
call   1040 <slamch_@plt>
movss  %xmm0,0x10(%rsp)
lea    0xec5(%rip),%rdi
call   1040 <slamch_@plt>
movss  %xmm0,0x14(%rsp)
lea    0xec1(%rip),%rdi
call   1040 <slamch_@plt>
movss  %xmm0,0x18(%rsp)
lea    0xec1(%rip),%rdi
call   1040 <slamch_@plt>
movss  %xmm0,0x1c(%rsp)
lea    0xec3(%rip),%rdi
call   1040 <slamch_@plt>
movss  %xmm0,0x20(%rsp)
lea    0xec2(%rip),%rdi
call   1040 <slamch_@plt>
movss  %xmm0,0x24(%rsp)
cvttss2si 0x4(%rsp),%esi
lea    0xebd(%rip),%rdi
call   1030 <printf@plt>
cvttss2si (%rsp),%esi
lea    0xed0(%rip),%rdi
call   1030 <printf@plt>
cvttss2si 0x8(%rsp),%esi
lea    0xee2(%rip),%rdi
call   1030 <printf@plt>
cvttss2si 0xc(%rsp),%esi
lea    0xef6(%rip),%rdi
call   1030 <printf@plt>
cvttss2si 0x10(%rsp),%esi
lea    0xf08(%rip),%rdi
call   1030 <printf@plt>
cvttss2si 0x14(%rsp),%esi
lea    0xf1c(%rip),%rdi
call   1030 <printf@plt>
cvttss2si 0x18(%rsp),%esi
lea    0xf30(%rip),%rdi
call   1030 <printf@plt>
cvttss2si 0x1c(%rsp),%esi
lea    0xf44(%rip),%rdi
call   1030 <printf@plt>
cvttss2si 0x20(%rsp),%esi
lea    0xf56(%rip),%rdi
call   1030 <printf@plt>
cvttss2si 0x24(%rsp),%esi
lea    0xf6a(%rip),%rdi
call   1030 <printf@plt>
movss  (%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xd65(%rip),%xmm1
divsd  %xmm0,%xmm1
cvttsd2si %xmm1,%esi
lea    0xf69(%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 float @slamch_(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
store float %12, float* %11
%13 = call float @slamch_(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
store float %13, float* %9
%14 = call float @slamch_(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
store float %14, float* %2
%15 = call float @slamch_(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
store float %15, float* %4
%16 = call float @slamch_(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0))
store float %16, float* %8
%17 = call float @slamch_(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
store float %17, float* %10
%18 = call float @slamch_(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
store float %18, float* %3
%19 = call float @slamch_(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
store float %19, float* %6
%20 = call float @slamch_(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
store float %20, float* %5
%21 = call float @slamch_(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0))
store float %21, float* %7
%22 = load float, float* %11
%23 = fptosi float %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 float, float* %9
%26 = fptosi float %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 float, float* %2
%29 = fptosi float %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 float, float* %4
%32 = fptosi float %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 float, float* %8
%35 = fptosi float %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 float, float* %10
%38 = fptosi float %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 float, float* %3
%41 = fptosi float %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 float, float* %6
%44 = fptosi float %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 float, float* %5
%47 = fptosi float %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 float, float* %7
%50 = fptosi float %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 float, float* %9
%53 = fpext float %52 to double
%54 = fdiv double 1.000000e+00, %53
%55 = fptosi double %54 to i32
%56 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.20, i64 0, i64 0), i32 %55)
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 float @slamch_(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%2 = tail call float @slamch_(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call float @slamch_(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call float @slamch_(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call float @slamch_(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call float @slamch_(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call float @slamch_(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call float @slamch_(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call float @slamch_(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call float @slamch_(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0))
%11 = fptosi float %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 float %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 float %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 float %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 float %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 float %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 float %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 float %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 float %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 float %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 = fpext float %2 to double
%32 = fdiv double 1.000000e+00, %31
%33 = fptosi double %32 to i32
%34 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.20, i64 0, i64 0), i32 %33)
ret i32 0
}