#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;
double FLT_MIN;
int INT_MAX;
double LLONG_MIN;
int /*<<< orphan*/ printf(char *, ...);
int main(void) {
  printf("Some number limits for this system: \n");
  printf("Biggest int: %d\n", INT_MAX);
  printf("Smallest unsigned long: %lld\n", LLONG_MIN);
  printf("One byte = %d bits on this syste.\n", CHAR_BIT);
  printf("Largest double: %e\n", DBL_MAX);
  printf("Smallest normal float: %e\n", FLT_MIN);
  printf("float precision = %d digits\n", FLT_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    0xee9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e7d(%rip),%rax
movsd  (%rax),%xmm0
lea    0xee1(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    0x2e54(%rip),%rax
mov    (%rax),%esi
lea    0xee8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e35(%rip),%rax
movsd  (%rax),%xmm0
lea    0xef2(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    0x2e4c(%rip),%rax
movsd  (%rax),%xmm0
lea    0xeed(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    0x2e4b(%rip),%rax
mov    (%rax),%esi
lea    0xef1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2dfc(%rip),%rax
movsd  (%rax),%xmm0
lea    0xef5(%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    0xf8a(%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    0x2e7d(%rip),%rax
movsd  (%rax),%xmm0
lea    0xebb(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    0x2e54(%rip),%rax
mov    (%rax),%esi
lea    0xec2(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e35(%rip),%rax
movsd  (%rax),%xmm0
lea    0xecc(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    0x2e4c(%rip),%rax
movsd  (%rax),%xmm0
lea    0xec7(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    0x2e4b(%rip),%rax
mov    (%rax),%esi
lea    0xecb(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2dfc(%rip),%rax
movsd  (%rax),%xmm0
lea    0xecf(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [38 x i8] c"Some number limits for this system: \0A\00"
@.str.1 = [17 x i8] c"Biggest int: %d\0A\00"
@INT_MAX = global i32 0
@.str.2 = [30 x i8] c"Smallest unsigned long: %lld\0A\00"
@LLONG_MIN = global double 0.000000e+00
@.str.3 = [35 x i8] c"One byte = %d bits on this syste.\0A\00"
@CHAR_BIT = global i32 0
@.str.4 = [20 x i8] c"Largest double: %e\0A\00"
@DBL_MAX = global double 0.000000e+00
@.str.5 = [27 x i8] c"Smallest normal float: %e\0A\00"
@FLT_MIN = global double 0.000000e+00
@.str.6 = [29 x i8] c"float precision = %d digits\0A\00"
@FLT_DIG = global i32 0
@.str.7 = [20 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 ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @INT_MAX
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = load double, double* @LLONG_MIN
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), double %5)
%7 = load i32, i32* @CHAR_BIT
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = load double, double* @DBL_MAX
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), double %9)
%11 = load double, double* @FLT_MIN
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0), double %11)
%13 = load i32, i32* @FLT_DIG
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0), i32 %13)
%15 = load double, double* @FLT_EPSILON
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), double %15)
ret i32 0
}

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