#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 CHAR_BIT;
double DBL_MAX;
int FLT_DIG;
double FLT_EPSILON;
int FLT_MANT_DIG;
double FLT_MIN;
int INT_MAX;
int INT_MIN;
double LLONG_MIN;
int /*<<< orphan*/ printf(char *, ...);
int main(void) {
  printf("Some number limits on this system:\n");
  printf("Max int: %d\n", INT_MAX);
  printf("Min int: %d\n", INT_MIN);
  printf("Smallest long long: %lld\n", LLONG_MIN);
  printf("One byte = %d bits on this system.\n", CHAR_BIT);
  printf("Largest double: %e\n", DBL_MAX);
  printf("Smallest normal float: %e\n", FLT_MIN);
  printf("Float significant digits: %d\n", FLT_DIG);
  printf("Float mantissa bits: %d\n", FLT_MANT_DIG);
  printf("Float epsilon: %e\n", FLT_EPSILON);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2ea4(%rip),%rax
mov    (%rax),%esi
lea    0xee7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e85(%rip),%rax
mov    (%rax),%esi
lea    0xedd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e5e(%rip),%rax
movsd  (%rax),%xmm0
lea    0xed1(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    0x2e35(%rip),%rax
mov    (%rax),%esi
lea    0xed4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e0e(%rip),%rax
movsd  (%rax),%xmm0
lea    0xedf(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    0x2e35(%rip),%rax
movsd  (%rax),%xmm0
lea    0xeda(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    0x2e34(%rip),%rax
mov    (%rax),%esi
lea    0xede(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2dcd(%rip),%rax
mov    (%rax),%esi
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2dc6(%rip),%rax
movsd  (%rax),%xmm0
lea    0xee5(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xfa9(%rip),%rdi
call   1030 <puts@plt>
mov    0x2ea4(%rip),%rax
mov    (%rax),%esi
lea    0xec3(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e85(%rip),%rax
mov    (%rax),%esi
lea    0xeb9(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e5e(%rip),%rax
movsd  (%rax),%xmm0
lea    0xead(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    0x2e35(%rip),%rax
mov    (%rax),%esi
lea    0xeb0(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e0e(%rip),%rax
movsd  (%rax),%xmm0
lea    0xebb(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    0x2e35(%rip),%rax
movsd  (%rax),%xmm0
lea    0xeb6(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    0x2e34(%rip),%rax
mov    (%rax),%esi
lea    0xeba(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2dcd(%rip),%rax
mov    (%rax),%esi
lea    0xec1(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2dc6(%rip),%rax
movsd  (%rax),%xmm0
lea    0xec1(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [36 x i8] c"Some number limits on this system:\0A\00"
@.str.1 = [13 x i8] c"Max int: %d\0A\00"
@INT_MAX = global i32 0
@.str.2 = [13 x i8] c"Min int: %d\0A\00"
@INT_MIN = global i32 0
@.str.3 = [26 x i8] c"Smallest long long: %lld\0A\00"
@LLONG_MIN = global double 0.000000e+00
@.str.4 = [36 x i8] c"One byte = %d bits on this system.\0A\00"
@CHAR_BIT = global i32 0
@.str.5 = [20 x i8] c"Largest double: %e\0A\00"
@DBL_MAX = global double 0.000000e+00
@.str.6 = [27 x i8] c"Smallest normal float: %e\0A\00"
@FLT_MIN = global double 0.000000e+00
@.str.7 = [30 x i8] c"Float significant digits: %d\0A\00"
@FLT_DIG = global i32 0
@.str.8 = [25 x i8] c"Float mantissa bits: %d\0A\00"
@FLT_MANT_DIG = global i32 0
@.str.9 = [19 x i8] c"Float epsilon: %e\0A\00"
@FLT_EPSILON = global double 0.000000e+00
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @INT_MAX
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @INT_MIN
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = load double, double* @LLONG_MIN
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), double %7)
%9 = load i32, i32* @CHAR_BIT
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = load double, double* @DBL_MAX
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), double %11)
%13 = load double, double* @FLT_MIN
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0), double %13)
%15 = load i32, i32* @FLT_DIG
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0), i32 %15)
%17 = load i32, i32* @FLT_MANT_DIG
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0), i32 %17)
%19 = load double, double* @FLT_EPSILON
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0), double %19)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [13 x i8] c"Max int: %d\0A\00"
@INT_MAX = global i32 0
@.str.2 = [13 x i8] c"Min int: %d\0A\00"
@INT_MIN = global i32 0
@.str.3 = [26 x i8] c"Smallest long long: %lld\0A\00"
@LLONG_MIN = global double 0.000000e+00
@.str.4 = [36 x i8] c"One byte = %d bits on this system.\0A\00"
@CHAR_BIT = global i32 0
@.str.5 = [20 x i8] c"Largest double: %e\0A\00"
@DBL_MAX = global double 0.000000e+00
@.str.6 = [27 x i8] c"Smallest normal float: %e\0A\00"
@FLT_MIN = global double 0.000000e+00
@.str.7 = [30 x i8] c"Float significant digits: %d\0A\00"
@FLT_DIG = global i32 0
@.str.8 = [25 x i8] c"Float mantissa bits: %d\0A\00"
@FLT_MANT_DIG = global i32 0
@.str.9 = [19 x i8] c"Float epsilon: %e\0A\00"
@FLT_EPSILON = global double 0.000000e+00
@str = [35 x i8] c"Some number limits on this system:\00"
define i32 @main() {
%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* @INT_MAX
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i32 %2)
%4 = load i32, i32* @INT_MIN
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32 %4)
%6 = load double, double* @LLONG_MIN
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), double %6)
%8 = load i32, i32* @CHAR_BIT
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0), i32 %8)
%10 = load double, double* @DBL_MAX
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), double %10)
%12 = load double, double* @FLT_MIN
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0), double %12)
%14 = load i32, i32* @FLT_DIG
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0), i32 %14)
%16 = load i32, i32* @FLT_MANT_DIG
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0), i32 %16)
%18 = load double, double* @FLT_EPSILON
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0), double %18)
ret i32 0
}