#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int CHAR_BIT;
double DBL_MAX;
double DBL_MIN;
double FLT_MAX;
double FLT_MIN;
int INT_MAX;
int INT_MIN;
int /*<<< orphan*/ LDBL_MAX;
int /*<<< orphan*/ LDBL_MIN;
int /*<<< orphan*/ LLONG_MAX;
int /*<<< orphan*/ LONG_MAX;
int /*<<< orphan*/ LONG_MIN;
int SCHAR_MAX;
int SCHAR_MIN;
int /*<<< orphan*/ SHRT_MAX;
int /*<<< orphan*/ SHRT_MIN;
int UCHAR_MAX;
int UINT_MAX;
int /*<<< orphan*/ ULLONG_MAX;
int /*<<< orphan*/ ULONG_MAX;
int /*<<< orphan*/ USHRT_MAX;
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int main(void) {
  FILE *out;
  out = fopen("limits.dat", "a");
  fprintf(out, "the integer types:\n");
  fprintf(out, "width of char type in bits is %d\n", CHAR_BIT);
  fprintf(out, "min value of signed char is %d\n", SCHAR_MIN);
  fprintf(out, "max value of signed char is %d\n", SCHAR_MAX);
  fprintf(out, "max value of unsigned char is %d\n", UCHAR_MAX);
  fprintf(out, "min value of unsigned char is 0\n");
  fprintf(out, "min value of short int is %hd\n", SHRT_MIN);
  fprintf(out, "max value of short int is %hd\n", SHRT_MAX);
  fprintf(out, "max value of unsigned short is %hd\n", USHRT_MAX);
  fprintf(out, "min value of unsigned short is 0\n");
  fprintf(out, "min value of int is %d\n", INT_MIN);
  fprintf(out, "max value of int is %d\n", INT_MAX);
  fprintf(out, "max value of unsigned int is %u\n", UINT_MAX);
  fprintf(out, "min value of unsigned int is 0\n");
  fprintf(out, "min value of long is %ld\n", LONG_MIN);
  fprintf(out, "max value of long is %ld\n", LONG_MAX);
  fprintf(out, "max value of unsigned long is %lu\n", ULONG_MAX);
  fprintf(out, "min value of unsigned long is 0\n");
  fprintf(out, "min value of long long is %lld\n", LLONG_MAX);
  fprintf(out, "max value of long long is %lld\n", LLONG_MAX);
  fprintf(out, "max value of unsigned long long is %llu\n", ULLONG_MAX);
  fprintf(out, "min value of unsigned long long is 0\n");
  fprintf(out, "Floating-point types:\n");
  fprintf(out, "min value of float is %g\n", FLT_MIN);
  fprintf(out, "max value of float is %g\n", FLT_MAX);
  fprintf(out, "min value of double is %g\n", DBL_MIN);
  fprintf(out, "max value of double is %g\n", DBL_MAX);
  fprintf(out, "min value of long double is %Le\n", LDBL_MIN);
  fprintf(out, "max value of long double is %Le\n", LDBL_MAX);
  fprintf(out,
          "\n\n=========================================================\n\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    0xece(%rip),%rsi
call   1040 <fopen@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xebc(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    0x2e1d(%rip),%rax
mov    (%rax),%edx
lea    0xeb5(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    0x2e12(%rip),%rax
mov    (%rax),%edx
lea    0xebc(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    0x2def(%rip),%rax
mov    (%rax),%edx
lea    0xec1(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    0x2e3c(%rip),%rax
mov    (%rax),%edx
lea    0xec6(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xed6(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    0x2d87(%rip),%rax
mov    (%rax),%edx
lea    0xedc(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    0x2d64(%rip),%rax
mov    (%rax),%edx
lea    0xee0(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    0x2db9(%rip),%rax
mov    (%rax),%edx
lea    0xee4(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xef6(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    0x2d6c(%rip),%rax
mov    (%rax),%edx
lea    0xefd(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    0x2d69(%rip),%rax
mov    (%rax),%edx
lea    0xefa(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    0x2d46(%rip),%rax
mov    (%rax),%edx
lea    0xef7(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xf06(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    0x2d11(%rip),%rax
mov    (%rax),%edx
lea    0xf0b(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    0x2cae(%rip),%rax
mov    (%rax),%edx
lea    0xf0a(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    0x2c5b(%rip),%rax
mov    (%rax),%edx
lea    0xf09(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xf1a(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    0x2c9e(%rip),%rax
mov    (%rax),%edx
lea    0xf20(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    0x2c83(%rip),%rax
mov    (%rax),%edx
lea    0xf25(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    0x2c98(%rip),%rax
mov    (%rax),%edx
lea    0xf2a(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xf41(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xf55(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    0x2c61(%rip),%rax
movsd  (%rax),%xmm0
lea    0xf4f(%rip),%rsi
mov    $0x1,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    0x2c04(%rip),%rax
movsd  (%rax),%xmm0
lea    0xf4c(%rip),%rsi
mov    $0x1,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    0x2b97(%rip),%rax
movsd  (%rax),%xmm0
lea    0xf49(%rip),%rsi
mov    $0x1,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    0x2b72(%rip),%rax
movsd  (%rax),%xmm0
lea    0xf47(%rip),%rsi
mov    $0x1,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    0x2b65(%rip),%rax
mov    (%rax),%edx
lea    0xf47(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
mov    0x2b6a(%rip),%rax
mov    (%rax),%edx
lea    0xf4d(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rdi
lea    0xf5c(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xec5(%rip),%rdi
lea    0xec9(%rip),%rsi
call   1040 <fopen@plt>
mov    %rax,%rbx
lea    0xebc(%rip),%rdi
mov    $0x13,%esi
mov    $0x1,%edx
mov    %rax,%rcx
call   1050 <fwrite@plt>
mov    0x2e16(%rip),%rax
mov    (%rax),%edx
lea    0xeae(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x2e0c(%rip),%rax
mov    (%rax),%edx
lea    0xeb6(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x2dea(%rip),%rax
mov    (%rax),%edx
lea    0xebc(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x2e38(%rip),%rax
mov    (%rax),%edx
lea    0xec2(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xed3(%rip),%rdi
mov    $0x20,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
mov    0x2d7d(%rip),%rax
mov    (%rax),%edx
lea    0xed2(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x2d5b(%rip),%rax
mov    (%rax),%edx
lea    0xed7(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x2db1(%rip),%rax
mov    (%rax),%edx
lea    0xedc(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xeef(%rip),%rdi
mov    $0x21,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
mov    0x2d5e(%rip),%rax
mov    (%rax),%edx
lea    0xeef(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x2d5c(%rip),%rax
mov    (%rax),%edx
lea    0xeed(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x2d3a(%rip),%rax
mov    (%rax),%edx
lea    0xeeb(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xefb(%rip),%rdi
mov    $0x1f,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
mov    0x2cff(%rip),%rax
mov    (%rax),%edx
lea    0xef9(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x2c9d(%rip),%rax
mov    (%rax),%edx
lea    0xef9(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x2c4b(%rip),%rax
mov    (%rax),%edx
lea    0xef9(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xf0b(%rip),%rdi
mov    $0x20,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
mov    0x2c88(%rip),%r14
mov    (%r14),%edx
lea    0xf09(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r14),%edx
lea    0xf15(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x2c89(%rip),%rax
mov    (%rax),%edx
lea    0xf1b(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xf33(%rip),%rdi
mov    $0x25,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
lea    0xf40(%rip),%rdi
mov    $0x16,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
mov    0x2c45(%rip),%rax
movsd  (%rax),%xmm0
lea    0xf33(%rip),%rsi
mov    %rbx,%rdi
mov    $0x1,%al
call   1030 <fprintf@plt>
mov    0x2be9(%rip),%rax
movsd  (%rax),%xmm0
lea    0xf31(%rip),%rsi
mov    %rbx,%rdi
mov    $0x1,%al
call   1030 <fprintf@plt>
mov    0x2b7d(%rip),%rax
movsd  (%rax),%xmm0
lea    0xf2f(%rip),%rsi
mov    %rbx,%rdi
mov    $0x1,%al
call   1030 <fprintf@plt>
mov    0x2b59(%rip),%rax
movsd  (%rax),%xmm0
lea    0xf2e(%rip),%rsi
mov    %rbx,%rdi
mov    $0x1,%al
call   1030 <fprintf@plt>
mov    0x2b4d(%rip),%rax
mov    (%rax),%edx
lea    0xf2f(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x2b53(%rip),%rax
mov    (%rax),%edx
lea    0xf36(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xf46(%rip),%rdi
mov    $0x3d,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [11 x i8] c"limits.dat\00"
@.str.1 = [2 x i8] c"a\00"
@.str.2 = [20 x i8] c"the integer types:\0A\00"
@.str.3 = [34 x i8] c"width of char type in bits is %d\0A\00"
@CHAR_BIT = global i32 0
@.str.4 = [32 x i8] c"min value of signed char is %d\0A\00"
@SCHAR_MIN = global i32 0
@.str.5 = [32 x i8] c"max value of signed char is %d\0A\00"
@SCHAR_MAX = global i32 0
@.str.6 = [34 x i8] c"max value of unsigned char is %d\0A\00"
@UCHAR_MAX = global i32 0
@.str.7 = [33 x i8] c"min value of unsigned char is 0\0A\00"
@.str.8 = [31 x i8] c"min value of short int is %hd\0A\00"
@SHRT_MIN = global i32 0
@.str.9 = [31 x i8] c"max value of short int is %hd\0A\00"
@SHRT_MAX = global i32 0
@.str.10 = [36 x i8] c"max value of unsigned short is %hd\0A\00"
@USHRT_MAX = global i32 0
@.str.11 = [34 x i8] c"min value of unsigned short is 0\0A\00"
@.str.12 = [24 x i8] c"min value of int is %d\0A\00"
@INT_MIN = global i32 0
@.str.13 = [24 x i8] c"max value of int is %d\0A\00"
@INT_MAX = global i32 0
@.str.14 = [33 x i8] c"max value of unsigned int is %u\0A\00"
@UINT_MAX = global i32 0
@.str.15 = [32 x i8] c"min value of unsigned int is 0\0A\00"
@.str.16 = [26 x i8] c"min value of long is %ld\0A\00"
@LONG_MIN = global i32 0
@.str.17 = [26 x i8] c"max value of long is %ld\0A\00"
@LONG_MAX = global i32 0
@.str.18 = [35 x i8] c"max value of unsigned long is %lu\0A\00"
@ULONG_MAX = global i32 0
@.str.19 = [33 x i8] c"min value of unsigned long is 0\0A\00"
@.str.20 = [32 x i8] c"min value of long long is %lld\0A\00"
@LLONG_MAX = global i32 0
@.str.21 = [32 x i8] c"max value of long long is %lld\0A\00"
@.str.22 = [41 x i8] c"max value of unsigned long long is %llu\0A\00"
@ULLONG_MAX = global i32 0
@.str.23 = [38 x i8] c"min value of unsigned long long is 0\0A\00"
@.str.24 = [23 x i8] c"Floating-point types:\0A\00"
@.str.25 = [26 x i8] c"min value of float is %g\0A\00"
@FLT_MIN = global double 0.000000e+00
@.str.26 = [26 x i8] c"max value of float is %g\0A\00"
@FLT_MAX = global double 0.000000e+00
@.str.27 = [27 x i8] c"min value of double is %g\0A\00"
@DBL_MIN = global double 0.000000e+00
@.str.28 = [27 x i8] c"max value of double is %g\0A\00"
@DBL_MAX = global double 0.000000e+00
@.str.29 = [33 x i8] c"min value of long double is %Le\0A\00"
@LDBL_MIN = global i32 0
@.str.30 = [33 x i8] c"max value of long double is %Le\0A\00"
@LDBL_MAX = global i32 0
@.str.31 = [62 x i8] c"\0A\0A=========================================================\0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
store i32 0, i32* %1
%3 = call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %3, i32** %2
%4 = load i32*, i32** %2
%5 = call i32 (i32*, i8*, ...) @fprintf(i32* %4, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
%6 = load i32*, i32** %2
%7 = load i32, i32* @CHAR_BIT
%8 = call i32 (i32*, i8*, ...) @fprintf(i32* %6, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = load i32*, i32** %2
%10 = load i32, i32* @SCHAR_MIN
%11 = call i32 (i32*, i8*, ...) @fprintf(i32* %9, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i32 %10)
%12 = load i32*, i32** %2
%13 = load i32, i32* @SCHAR_MAX
%14 = call i32 (i32*, i8*, ...) @fprintf(i32* %12, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0), i32 %13)
%15 = load i32*, i32** %2
%16 = load i32, i32* @UCHAR_MAX
%17 = call i32 (i32*, i8*, ...) @fprintf(i32* %15, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0), i32 %16)
%18 = load i32*, i32** %2
%19 = call i32 (i32*, i8*, ...) @fprintf(i32* %18, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0))
%20 = load i32*, i32** %2
%21 = load i32, i32* @SHRT_MIN
%22 = call i32 (i32*, i8*, ...) @fprintf(i32* %20, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.8, i64 0, i64 0), i32 %21)
%23 = load i32*, i32** %2
%24 = load i32, i32* @SHRT_MAX
%25 = call i32 (i32*, i8*, ...) @fprintf(i32* %23, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0), i32 %24)
%26 = load i32*, i32** %2
%27 = load i32, i32* @USHRT_MAX
%28 = call i32 (i32*, i8*, ...) @fprintf(i32* %26, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.10, i64 0, i64 0), i32 %27)
%29 = load i32*, i32** %2
%30 = call i32 (i32*, i8*, ...) @fprintf(i32* %29, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.11, i64 0, i64 0))
%31 = load i32*, i32** %2
%32 = load i32, i32* @INT_MIN
%33 = call i32 (i32*, i8*, ...) @fprintf(i32* %31, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0), i32 %32)
%34 = load i32*, i32** %2
%35 = load i32, i32* @INT_MAX
%36 = call i32 (i32*, i8*, ...) @fprintf(i32* %34, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.13, i64 0, i64 0), i32 %35)
%37 = load i32*, i32** %2
%38 = load i32, i32* @UINT_MAX
%39 = call i32 (i32*, i8*, ...) @fprintf(i32* %37, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.14, i64 0, i64 0), i32 %38)
%40 = load i32*, i32** %2
%41 = call i32 (i32*, i8*, ...) @fprintf(i32* %40, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.15, i64 0, i64 0))
%42 = load i32*, i32** %2
%43 = load i32, i32* @LONG_MIN
%44 = call i32 (i32*, i8*, ...) @fprintf(i32* %42, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.16, i64 0, i64 0), i32 %43)
%45 = load i32*, i32** %2
%46 = load i32, i32* @LONG_MAX
%47 = call i32 (i32*, i8*, ...) @fprintf(i32* %45, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.17, i64 0, i64 0), i32 %46)
%48 = load i32*, i32** %2
%49 = load i32, i32* @ULONG_MAX
%50 = call i32 (i32*, i8*, ...) @fprintf(i32* %48, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.18, i64 0, i64 0), i32 %49)
%51 = load i32*, i32** %2
%52 = call i32 (i32*, i8*, ...) @fprintf(i32* %51, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.19, i64 0, i64 0))
%53 = load i32*, i32** %2
%54 = load i32, i32* @LLONG_MAX
%55 = call i32 (i32*, i8*, ...) @fprintf(i32* %53, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.20, i64 0, i64 0), i32 %54)
%56 = load i32*, i32** %2
%57 = load i32, i32* @LLONG_MAX
%58 = call i32 (i32*, i8*, ...) @fprintf(i32* %56, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.21, i64 0, i64 0), i32 %57)
%59 = load i32*, i32** %2
%60 = load i32, i32* @ULLONG_MAX
%61 = call i32 (i32*, i8*, ...) @fprintf(i32* %59, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.22, i64 0, i64 0), i32 %60)
%62 = load i32*, i32** %2
%63 = call i32 (i32*, i8*, ...) @fprintf(i32* %62, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.23, i64 0, i64 0))
%64 = load i32*, i32** %2
%65 = call i32 (i32*, i8*, ...) @fprintf(i32* %64, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.24, i64 0, i64 0))
%66 = load i32*, i32** %2
%67 = load double, double* @FLT_MIN
%68 = call i32 (i32*, i8*, ...) @fprintf(i32* %66, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.25, i64 0, i64 0), double %67)
%69 = load i32*, i32** %2
%70 = load double, double* @FLT_MAX
%71 = call i32 (i32*, i8*, ...) @fprintf(i32* %69, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.26, i64 0, i64 0), double %70)
%72 = load i32*, i32** %2
%73 = load double, double* @DBL_MIN
%74 = call i32 (i32*, i8*, ...) @fprintf(i32* %72, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.27, i64 0, i64 0), double %73)
%75 = load i32*, i32** %2
%76 = load double, double* @DBL_MAX
%77 = call i32 (i32*, i8*, ...) @fprintf(i32* %75, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.28, i64 0, i64 0), double %76)
%78 = load i32*, i32** %2
%79 = load i32, i32* @LDBL_MIN
%80 = call i32 (i32*, i8*, ...) @fprintf(i32* %78, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.29, i64 0, i64 0), i32 %79)
%81 = load i32*, i32** %2
%82 = load i32, i32* @LDBL_MAX
%83 = call i32 (i32*, i8*, ...) @fprintf(i32* %81, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.30, i64 0, i64 0), i32 %82)
%84 = load i32*, i32** %2
%85 = call i32 (i32*, i8*, ...) @fprintf(i32* %84, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.31, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [11 x i8] c"limits.dat\00"
@.str.1 = [2 x i8] c"a\00"
@.str.2 = [20 x i8] c"the integer types:\0A\00"
@.str.3 = [34 x i8] c"width of char type in bits is %d\0A\00"
@CHAR_BIT = global i32 0
@.str.4 = [32 x i8] c"min value of signed char is %d\0A\00"
@SCHAR_MIN = global i32 0
@.str.5 = [32 x i8] c"max value of signed char is %d\0A\00"
@SCHAR_MAX = global i32 0
@.str.6 = [34 x i8] c"max value of unsigned char is %d\0A\00"
@UCHAR_MAX = global i32 0
@.str.7 = [33 x i8] c"min value of unsigned char is 0\0A\00"
@.str.8 = [31 x i8] c"min value of short int is %hd\0A\00"
@SHRT_MIN = global i32 0
@.str.9 = [31 x i8] c"max value of short int is %hd\0A\00"
@SHRT_MAX = global i32 0
@.str.10 = [36 x i8] c"max value of unsigned short is %hd\0A\00"
@USHRT_MAX = global i32 0
@.str.11 = [34 x i8] c"min value of unsigned short is 0\0A\00"
@.str.12 = [24 x i8] c"min value of int is %d\0A\00"
@INT_MIN = global i32 0
@.str.13 = [24 x i8] c"max value of int is %d\0A\00"
@INT_MAX = global i32 0
@.str.14 = [33 x i8] c"max value of unsigned int is %u\0A\00"
@UINT_MAX = global i32 0
@.str.15 = [32 x i8] c"min value of unsigned int is 0\0A\00"
@.str.16 = [26 x i8] c"min value of long is %ld\0A\00"
@LONG_MIN = global i32 0
@.str.17 = [26 x i8] c"max value of long is %ld\0A\00"
@LONG_MAX = global i32 0
@.str.18 = [35 x i8] c"max value of unsigned long is %lu\0A\00"
@ULONG_MAX = global i32 0
@.str.19 = [33 x i8] c"min value of unsigned long is 0\0A\00"
@.str.20 = [32 x i8] c"min value of long long is %lld\0A\00"
@LLONG_MAX = global i32 0
@.str.21 = [32 x i8] c"max value of long long is %lld\0A\00"
@.str.22 = [41 x i8] c"max value of unsigned long long is %llu\0A\00"
@ULLONG_MAX = global i32 0
@.str.23 = [38 x i8] c"min value of unsigned long long is 0\0A\00"
@.str.24 = [23 x i8] c"Floating-point types:\0A\00"
@.str.25 = [26 x i8] c"min value of float is %g\0A\00"
@FLT_MIN = global double 0.000000e+00
@.str.26 = [26 x i8] c"max value of float is %g\0A\00"
@FLT_MAX = global double 0.000000e+00
@.str.27 = [27 x i8] c"min value of double is %g\0A\00"
@DBL_MIN = global double 0.000000e+00
@.str.28 = [27 x i8] c"max value of double is %g\0A\00"
@DBL_MAX = global double 0.000000e+00
@.str.29 = [33 x i8] c"min value of long double is %Le\0A\00"
@LDBL_MIN = global i32 0
@.str.30 = [33 x i8] c"max value of long double is %Le\0A\00"
@LDBL_MAX = global i32 0
@.str.31 = [62 x i8] c"\0A\0A=========================================================\0A\0A\00"
define i32 @main() {
%1 = tail call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i64 @fwrite(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i64 19, i64 1, i32* %1)
%3 = load i32, i32* @CHAR_BIT
%4 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @SCHAR_MIN
%6 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @SCHAR_MAX
%8 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @UCHAR_MAX
%10 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0), i32 %9)
%11 = tail call i64 @fwrite(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.7, i64 0, i64 0), i64 32, i64 1, i32* %1)
%12 = load i32, i32* @SHRT_MIN
%13 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.8, i64 0, i64 0), i32 %12)
%14 = load i32, i32* @SHRT_MAX
%15 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.9, i64 0, i64 0), i32 %14)
%16 = load i32, i32* @USHRT_MAX
%17 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.10, i64 0, i64 0), i32 %16)
%18 = tail call i64 @fwrite(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.11, i64 0, i64 0), i64 33, i64 1, i32* %1)
%19 = load i32, i32* @INT_MIN
%20 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.12, i64 0, i64 0), i32 %19)
%21 = load i32, i32* @INT_MAX
%22 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.13, i64 0, i64 0), i32 %21)
%23 = load i32, i32* @UINT_MAX
%24 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.14, i64 0, i64 0), i32 %23)
%25 = tail call i64 @fwrite(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.15, i64 0, i64 0), i64 31, i64 1, i32* %1)
%26 = load i32, i32* @LONG_MIN
%27 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.16, i64 0, i64 0), i32 %26)
%28 = load i32, i32* @LONG_MAX
%29 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.17, i64 0, i64 0), i32 %28)
%30 = load i32, i32* @ULONG_MAX
%31 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.18, i64 0, i64 0), i32 %30)
%32 = tail call i64 @fwrite(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.19, i64 0, i64 0), i64 32, i64 1, i32* %1)
%33 = load i32, i32* @LLONG_MAX
%34 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.20, i64 0, i64 0), i32 %33)
%35 = load i32, i32* @LLONG_MAX
%36 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.21, i64 0, i64 0), i32 %35)
%37 = load i32, i32* @ULLONG_MAX
%38 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.22, i64 0, i64 0), i32 %37)
%39 = tail call i64 @fwrite(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.23, i64 0, i64 0), i64 37, i64 1, i32* %1)
%40 = tail call i64 @fwrite(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.24, i64 0, i64 0), i64 22, i64 1, i32* %1)
%41 = load double, double* @FLT_MIN
%42 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.25, i64 0, i64 0), double %41)
%43 = load double, double* @FLT_MAX
%44 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.26, i64 0, i64 0), double %43)
%45 = load double, double* @DBL_MIN
%46 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.27, i64 0, i64 0), double %45)
%47 = load double, double* @DBL_MAX
%48 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.28, i64 0, i64 0), double %47)
%49 = load i32, i32* @LDBL_MIN
%50 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.29, i64 0, i64 0), i32 %49)
%51 = load i32, i32* @LDBL_MAX
%52 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.30, i64 0, i64 0), i32 %51)
%53 = tail call i64 @fwrite(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.31, i64 0, i64 0), i64 61, i64 1, i32* %1)
ret i32 0
}