#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 smach(char *);
  double rnd, eps;
  eps = smach("Epsilon");
  sfmin = smach("Safe minimum");
  base = smach("Base");
  prec = smach("Precision");
  t = smach("Number of digits in mantissa");
  rnd = smach("Rounding mode");
  emin = smach("Minnimum exponent");
  rmin = smach("Underflow threshold");
  emax = smach("Largest exponent");
  rmax = smach("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    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xed2(%rip),%rdi
call   1030 <smach@plt>
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
lea    0xec5(%rip),%rdi
call   1030 <smach@plt>
movss  %xmm0,-0x24(%rbp)
lea    0xec1(%rip),%rdi
call   1030 <smach@plt>
movss  %xmm0,-0x8(%rbp)
lea    0xeb5(%rip),%rdi
call   1030 <smach@plt>
movss  %xmm0,-0x10(%rbp)
lea    0xeae(%rip),%rdi
call   1030 <smach@plt>
movss  %xmm0,-0x20(%rbp)
lea    0xeba(%rip),%rdi
call   1030 <smach@plt>
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
lea    0xeb3(%rip),%rdi
call   1030 <smach@plt>
movss  %xmm0,-0xc(%rbp)
lea    0xeb4(%rip),%rdi
call   1030 <smach@plt>
movss  %xmm0,-0x18(%rbp)
lea    0xeb7(%rip),%rdi
call   1030 <smach@plt>
movss  %xmm0,-0x14(%rbp)
lea    0xeb7(%rip),%rdi
call   1030 <smach@plt>
movss  %xmm0,-0x1c(%rbp)
cvttsd2si -0x38(%rbp),%esi
lea    0xeb4(%rip),%rdi
call   1040 <printf@plt>
cvttss2si -0x24(%rbp),%esi
lea    0xec7(%rip),%rdi
call   1040 <printf@plt>
cvttss2si -0x8(%rbp),%esi
lea    0xeda(%rip),%rdi
call   1040 <printf@plt>
cvttss2si -0x10(%rbp),%esi
lea    0xeef(%rip),%rdi
call   1040 <printf@plt>
cvttss2si -0x20(%rbp),%esi
lea    0xf02(%rip),%rdi
call   1040 <printf@plt>
cvttsd2si -0x30(%rbp),%esi
lea    0xf17(%rip),%rdi
call   1040 <printf@plt>
cvttss2si -0xc(%rbp),%esi
lea    0xf2c(%rip),%rdi
call   1040 <printf@plt>
cvttss2si -0x18(%rbp),%esi
lea    0xf41(%rip),%rdi
call   1040 <printf@plt>
cvttss2si -0x14(%rbp),%esi
lea    0xf54(%rip),%rdi
call   1040 <printf@plt>
cvttss2si -0x1c(%rbp),%esi
lea    0xf69(%rip),%rdi
call   1040 <printf@plt>
movss  -0x24(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xd64(%rip),%xmm0
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%esi
lea    0xf68(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x28,%rsp
lea    0xedd(%rip),%rdi
call   1030 <smach@plt>
movss  %xmm0,0x4(%rsp)
lea    0xed3(%rip),%rdi
call   1030 <smach@plt>
movss  %xmm0,(%rsp)
lea    0xecf(%rip),%rdi
call   1030 <smach@plt>
movss  %xmm0,0x8(%rsp)
lea    0xec2(%rip),%rdi
call   1030 <smach@plt>
movss  %xmm0,0xc(%rsp)
lea    0xeba(%rip),%rdi
call   1030 <smach@plt>
movss  %xmm0,0x10(%rsp)
lea    0xec5(%rip),%rdi
call   1030 <smach@plt>
movss  %xmm0,0x14(%rsp)
lea    0xec1(%rip),%rdi
call   1030 <smach@plt>
movss  %xmm0,0x18(%rsp)
lea    0xec1(%rip),%rdi
call   1030 <smach@plt>
movss  %xmm0,0x1c(%rsp)
lea    0xec3(%rip),%rdi
call   1030 <smach@plt>
movss  %xmm0,0x20(%rsp)
lea    0xec2(%rip),%rdi
call   1030 <smach@plt>
movss  %xmm0,0x24(%rsp)
cvttss2si 0x4(%rsp),%esi
lea    0xebd(%rip),%rdi
call   1040 <printf@plt>
cvttss2si (%rsp),%esi
lea    0xed0(%rip),%rdi
call   1040 <printf@plt>
cvttss2si 0x8(%rsp),%esi
lea    0xee2(%rip),%rdi
call   1040 <printf@plt>
cvttss2si 0xc(%rsp),%esi
lea    0xef6(%rip),%rdi
call   1040 <printf@plt>
cvttss2si 0x10(%rsp),%esi
lea    0xf08(%rip),%rdi
call   1040 <printf@plt>
cvttss2si 0x14(%rsp),%esi
lea    0xf1c(%rip),%rdi
call   1040 <printf@plt>
cvttss2si 0x18(%rsp),%esi
lea    0xf30(%rip),%rdi
call   1040 <printf@plt>
cvttss2si 0x1c(%rsp),%esi
lea    0xf44(%rip),%rdi
call   1040 <printf@plt>
cvttss2si 0x20(%rsp),%esi
lea    0xf56(%rip),%rdi
call   1040 <printf@plt>
cvttss2si 0x24(%rsp),%esi
lea    0xf6a(%rip),%rdi
call   1040 <printf@plt>
movss  (%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xd65(%rip),%xmm1
divsd  %xmm0,%xmm1
cvttsd2si %xmm1,%esi
lea    0xf69(%rip),%rdi
call   1040 <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 double
%11 = alloca double
store i32 0, i32* %1
%12 = call float @smach(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%13 = fpext float %12 to double
store double %13, double* %11
%14 = call float @smach(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
store float %14, float* %9
%15 = call float @smach(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
store float %15, float* %2
%16 = call float @smach(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
store float %16, float* %4
%17 = call float @smach(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0))
store float %17, float* %8
%18 = call float @smach(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
%19 = fpext float %18 to double
store double %19, double* %10
%20 = call float @smach(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
store float %20, float* %3
%21 = call float @smach(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
store float %21, float* %6
%22 = call float @smach(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
store float %22, float* %5
%23 = call float @smach(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0))
store float %23, float* %7
%24 = load double, double* %11
%25 = fptosi double %24 to i32
%26 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.10, i64 0, i64 0), i32 %25)
%27 = load float, float* %9
%28 = fptosi float %27 to i32
%29 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.11, i64 0, i64 0), i32 %28)
%30 = load float, float* %2
%31 = fptosi float %30 to i32
%32 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.12, i64 0, i64 0), i32 %31)
%33 = load float, float* %4
%34 = fptosi float %33 to i32
%35 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.13, i64 0, i64 0), i32 %34)
%36 = load float, float* %8
%37 = fptosi float %36 to i32
%38 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.14, i64 0, i64 0), i32 %37)
%39 = load double, double* %10
%40 = fptosi double %39 to i32
%41 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.15, i64 0, i64 0), i32 %40)
%42 = load float, float* %3
%43 = fptosi float %42 to i32
%44 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.16, i64 0, i64 0), i32 %43)
%45 = load float, float* %6
%46 = fptosi float %45 to i32
%47 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.17, i64 0, i64 0), i32 %46)
%48 = load float, float* %5
%49 = fptosi float %48 to i32
%50 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.18, i64 0, i64 0), i32 %49)
%51 = load float, float* %7
%52 = fptosi float %51 to i32
%53 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.19, i64 0, i64 0), i32 %52)
%54 = load float, float* %9
%55 = fpext float %54 to double
%56 = fdiv double 1.000000e+00, %55
%57 = fptosi double %56 to i32
%58 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.20, i64 0, i64 0), i32 %57)
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 @smach(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%2 = tail call float @smach(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call float @smach(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call float @smach(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call float @smach(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call float @smach(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call float @smach(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call float @smach(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call float @smach(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call float @smach(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
}