#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 DECIMAL_DIG;
int FLT_DIG;
double FLT_EPSILON;
int FLT_EVAL_METHOD;
int FLT_HAS_SUBNORM;
int FLT_MANT_DIG;
double FLT_MAX;
int FLT_MAX_10_EXP;
int FLT_MAX_EXP;
double FLT_MIN;
int FLT_MIN_10_EXP;
int FLT_MIN_EXP;
int FLT_RADIX;
int FLT_ROUNDS;
int /*<<< orphan*/ printf(char *, ...);
void show_floating_point_type_limits() {
  printf("## Limits of floating point types:\n");
  printf("FLT_RADIX    = %d\n", FLT_RADIX);
  printf("DECIMAL_DIG  = %d\n", DECIMAL_DIG);
  printf("FLT_MIN      = %e\n", FLT_MIN);
  printf("FLT_MAX      = %e\n", FLT_MAX);
  printf("FLT_EPSILON  = %e\n", FLT_EPSILON);
  printf("FLT_DIG      = %d\n", FLT_DIG);
  printf("FLT_MANT_DIG = %d\n", FLT_MANT_DIG);
  printf("FLT_MIN_EXP  = %d\n", FLT_MIN_EXP);
  printf("FLT_MIN_10_EXP  = %d\n", FLT_MIN_10_EXP);
  printf("FLT_MAX_EXP     = %d\n", FLT_MAX_EXP);
  printf("FLT_MAX_10_EXP  = %d\n", FLT_MAX_10_EXP);
  printf("FLT_ROUNDS      = %d\n", FLT_ROUNDS);
  printf("FLT_EVAL_METHOD = %d\n", FLT_EVAL_METHOD);
  printf("FLT_HAS_SUBNORM = %d\n", FLT_HAS_SUBNORM);
  printf("\n");
}


x86 assembly (clang, -O0):
<show_floating_point_type_limits>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2eb7(%rip),%rax
mov    (%rax),%esi
lea    0xef2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e48(%rip),%rax
mov    (%rax),%esi
lea    0xeee(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e71(%rip),%rax
movsd  (%rax),%xmm0
lea    0xee8(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    0x2e38(%rip),%rax
movsd  (%rax),%xmm0
lea    0xee2(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    0x2e0f(%rip),%rax
movsd  (%rax),%xmm0
lea    0xedc(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    0x2e56(%rip),%rax
mov    (%rax),%esi
lea    0xed8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2dd7(%rip),%rax
mov    (%rax),%esi
lea    0xed4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2de8(%rip),%rax
mov    (%rax),%esi
lea    0xed0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2dc9(%rip),%rax
mov    (%rax),%esi
lea    0xecc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2dc2(%rip),%rax
mov    (%rax),%esi
lea    0xecb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2d63(%rip),%rax
mov    (%rax),%esi
lea    0xeca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2dac(%rip),%rax
mov    (%rax),%esi
lea    0xec9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2d3d(%rip),%rax
mov    (%rax),%esi
lea    0xec8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2d76(%rip),%rax
mov    (%rax),%esi
lea    0xec7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdb1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_floating_point_type_limits>:
push   %rax
lea    0xfe4(%rip),%rdi
call   1040 <puts@plt>
mov    0x2e9c(%rip),%rax
mov    (%rax),%esi
lea    0xeb3(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2e2d(%rip),%rax
mov    (%rax),%esi
lea    0xeaf(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2e56(%rip),%rax
movsd  (%rax),%xmm0
lea    0xea9(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    0x2e1d(%rip),%rax
movsd  (%rax),%xmm0
lea    0xea3(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    0x2df4(%rip),%rax
movsd  (%rax),%xmm0
lea    0xe9d(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    0x2e3b(%rip),%rax
mov    (%rax),%esi
lea    0xe99(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2dbc(%rip),%rax
mov    (%rax),%esi
lea    0xe95(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2dcd(%rip),%rax
mov    (%rax),%esi
lea    0xe91(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2dae(%rip),%rax
mov    (%rax),%esi
lea    0xe8d(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2da7(%rip),%rax
mov    (%rax),%esi
lea    0xe8c(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2d48(%rip),%rax
mov    (%rax),%esi
lea    0xe8b(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2d91(%rip),%rax
mov    (%rax),%esi
lea    0xe8a(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2d22(%rip),%rax
mov    (%rax),%esi
lea    0xe89(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2d5b(%rip),%rax
mov    (%rax),%esi
lea    0xe88(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [36 x i8] c"## Limits of floating point types:\0A\00"
@.str.1 = [19 x i8] c"FLT_RADIX = %d\0A\00"
@FLT_RADIX = global i32 0
@.str.2 = [19 x i8] c"DECIMAL_DIG = %d\0A\00"
@DECIMAL_DIG = global i32 0
@.str.3 = [19 x i8] c"FLT_MIN = %e\0A\00"
@FLT_MIN = global double 0.000000e+00
@.str.4 = [19 x i8] c"FLT_MAX = %e\0A\00"
@FLT_MAX = global double 0.000000e+00
@.str.5 = [19 x i8] c"FLT_EPSILON = %e\0A\00"
@FLT_EPSILON = global double 0.000000e+00
@.str.6 = [19 x i8] c"FLT_DIG = %d\0A\00"
@FLT_DIG = global i32 0
@.str.7 = [19 x i8] c"FLT_MANT_DIG = %d\0A\00"
@FLT_MANT_DIG = global i32 0
@.str.8 = [19 x i8] c"FLT_MIN_EXP = %d\0A\00"
@FLT_MIN_EXP = global i32 0
@.str.9 = [22 x i8] c"FLT_MIN_10_EXP = %d\0A\00"
@FLT_MIN_10_EXP = global i32 0
@.str.10 = [22 x i8] c"FLT_MAX_EXP = %d\0A\00"
@FLT_MAX_EXP = global i32 0
@.str.11 = [22 x i8] c"FLT_MAX_10_EXP = %d\0A\00"
@FLT_MAX_10_EXP = global i32 0
@.str.12 = [22 x i8] c"FLT_ROUNDS = %d\0A\00"
@FLT_ROUNDS = global i32 0
@.str.13 = [22 x i8] c"FLT_EVAL_METHOD = %d\0A\00"
@FLT_EVAL_METHOD = global i32 0
@.str.14 = [22 x i8] c"FLT_HAS_SUBNORM = %d\0A\00"
@FLT_HAS_SUBNORM = global i32 0
@.str.15 = [2 x i8] c"\0A\00"
define void @show_floating_point_type_limits() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
%2 = load i32, i32* @FLT_RADIX
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 %2)
%4 = load i32, i32* @DECIMAL_DIG
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i32 %4)
%6 = load double, double* @FLT_MIN
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), double %6)
%8 = load double, double* @FLT_MAX
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), double %8)
%10 = load double, double* @FLT_EPSILON
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), double %10)
%12 = load i32, i32* @FLT_DIG
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0), i32 %12)
%14 = load i32, i32* @FLT_MANT_DIG
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0), i32 %14)
%16 = load i32, i32* @FLT_MIN_EXP
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i32 %16)
%18 = load i32, i32* @FLT_MIN_10_EXP
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0), i32 %18)
%20 = load i32, i32* @FLT_MAX_EXP
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.10, i64 0, i64 0), i32 %20)
%22 = load i32, i32* @FLT_MAX_10_EXP
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0), i32 %22)
%24 = load i32, i32* @FLT_ROUNDS
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.12, i64 0, i64 0), i32 %24)
%26 = load i32, i32* @FLT_EVAL_METHOD
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.13, i64 0, i64 0), i32 %26)
%28 = load i32, i32* @FLT_HAS_SUBNORM
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.14, i64 0, i64 0), i32 %28)
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [19 x i8] c"FLT_RADIX = %d\0A\00"
@FLT_RADIX = global i32 0
@.str.2 = [19 x i8] c"DECIMAL_DIG = %d\0A\00"
@DECIMAL_DIG = global i32 0
@.str.3 = [19 x i8] c"FLT_MIN = %e\0A\00"
@FLT_MIN = global double 0.000000e+00
@.str.4 = [19 x i8] c"FLT_MAX = %e\0A\00"
@FLT_MAX = global double 0.000000e+00
@.str.5 = [19 x i8] c"FLT_EPSILON = %e\0A\00"
@FLT_EPSILON = global double 0.000000e+00
@.str.6 = [19 x i8] c"FLT_DIG = %d\0A\00"
@FLT_DIG = global i32 0
@.str.7 = [19 x i8] c"FLT_MANT_DIG = %d\0A\00"
@FLT_MANT_DIG = global i32 0
@.str.8 = [19 x i8] c"FLT_MIN_EXP = %d\0A\00"
@FLT_MIN_EXP = global i32 0
@.str.9 = [22 x i8] c"FLT_MIN_10_EXP = %d\0A\00"
@FLT_MIN_10_EXP = global i32 0
@.str.10 = [22 x i8] c"FLT_MAX_EXP = %d\0A\00"
@FLT_MAX_EXP = global i32 0
@.str.11 = [22 x i8] c"FLT_MAX_10_EXP = %d\0A\00"
@FLT_MAX_10_EXP = global i32 0
@.str.12 = [22 x i8] c"FLT_ROUNDS = %d\0A\00"
@FLT_ROUNDS = global i32 0
@.str.13 = [22 x i8] c"FLT_EVAL_METHOD = %d\0A\00"
@FLT_EVAL_METHOD = global i32 0
@.str.14 = [22 x i8] c"FLT_HAS_SUBNORM = %d\0A\00"
@FLT_HAS_SUBNORM = global i32 0
@str = [35 x i8] c"## Limits of floating point types:\00"
define void @show_floating_point_type_limits() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str, i64 0, i64 0))
%2 = load i32, i32* @FLT_RADIX
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 %2)
%4 = load i32, i32* @DECIMAL_DIG
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0), i32 %4)
%6 = load double, double* @FLT_MIN
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), double %6)
%8 = load double, double* @FLT_MAX
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), double %8)
%10 = load double, double* @FLT_EPSILON
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), double %10)
%12 = load i32, i32* @FLT_DIG
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0), i32 %12)
%14 = load i32, i32* @FLT_MANT_DIG
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0), i32 %14)
%16 = load i32, i32* @FLT_MIN_EXP
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i32 %16)
%18 = load i32, i32* @FLT_MIN_10_EXP
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0), i32 %18)
%20 = load i32, i32* @FLT_MAX_EXP
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.10, i64 0, i64 0), i32 %20)
%22 = load i32, i32* @FLT_MAX_10_EXP
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0), i32 %22)
%24 = load i32, i32* @FLT_ROUNDS
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.12, i64 0, i64 0), i32 %24)
%26 = load i32, i32* @FLT_EVAL_METHOD
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.13, i64 0, i64 0), i32 %26)
%28 = load i32, i32* @FLT_HAS_SUBNORM
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.14, i64 0, i64 0), i32 %28)
%30 = tail call i32 @putchar(i32 10)
ret void
}