#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 */
scalar_t__ DBL_DIG;
int /*<<< orphan*/ DBL_EPSILON;
int /*<<< orphan*/ DBL_MAX;
int /*<<< orphan*/ DBL_MIN;
scalar_t__ FLT_DIG;
double FLT_EPSILON;
double FLT_MAX;
double FLT_MIN;
int INT_MAX;
int /*<<< orphan*/ LDBL_EPSILON;
int /*<<< orphan*/ LDBL_MAX;
int /*<<< orphan*/ LDBL_MIN;
int /*<<< orphan*/ LLONG_MAX;
int /*<<< orphan*/ LLONG_MIN;
int /*<<< orphan*/ LONG_MAX;
int /*<<< orphan*/ LONG_MIN;
int SHRT_MAX;
int SHRT_MIN;
int /*<<< orphan*/ printf(char *, ...);
int main() {
  printf("\n\n");
  printf("typ        \tdolna wartość          gorna wartosc          ziarno    "
         "    precyzja       deskryptor formatu\n");
  printf("short       %22d %22d                                 %%i\n",
         SHRT_MIN, SHRT_MAX);
  printf("int         %22d %22d                                 %%i\n",
         SHRT_MIN, INT_MAX);
  printf("long        %22ld %22ld                                 %%li\n",
         LONG_MIN, LONG_MAX);
  printf("long long   %22lld %22lld                                 %%lli\n",
         LLONG_MIN, LLONG_MAX);
  printf("float       %22e %22e %14e \t%d    \t  %%f lub %%e\n", FLT_MIN,
         FLT_MAX, FLT_EPSILON, (int)FLT_DIG);
  printf("double      %22le %22le %14le \t%d    \t  %%lf lub %%le\n", DBL_MIN,
         DBL_MAX, DBL_EPSILON, (int)DBL_DIG);
  printf("long double %22LE %22Le %14Le \t%d    \t  %%Lf lub %%Le\n", LDBL_MIN,
         LDBL_MAX, LDBL_EPSILON, (int)DBL_DIG);
  printf("\n\n");
  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>
lea    0xecf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e3e(%rip),%rax
mov    (%rax),%esi
mov    0x2e2d(%rip),%rax
mov    (%rax),%edx
lea    0xf1c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e1e(%rip),%rax
mov    (%rax),%esi
mov    0x2e65(%rip),%rax
mov    (%rax),%edx
lea    0xf37(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e46(%rip),%rax
mov    (%rax),%esi
mov    0x2dfd(%rip),%rax
mov    (%rax),%edx
lea    0xf52(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2dfe(%rip),%rax
mov    (%rax),%esi
mov    0x2e0d(%rip),%rax
mov    (%rax),%edx
lea    0xf70(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e16(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2de3(%rip),%rax
movsd  (%rax),%xmm1
mov    0x2dc0(%rip),%rax
movsd  (%rax),%xmm2
mov    0x2e15(%rip),%rax
mov    (%rax),%rax
mov    %eax,%esi
lea    0xf76(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
mov    0x2d6b(%rip),%rax
mov    (%rax),%esi
mov    0x2d5a(%rip),%rax
mov    (%rax),%edx
mov    0x2dd1(%rip),%rax
mov    (%rax),%ecx
mov    0x2da8(%rip),%rax
mov    (%rax),%rax
mov    %eax,%r8d
lea    0xf72(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2d3d(%rip),%rax
mov    (%rax),%esi
mov    0x2d54(%rip),%rax
mov    (%rax),%edx
mov    0x2d0b(%rip),%rax
mov    (%rax),%ecx
mov    0x2d72(%rip),%rax
mov    (%rax),%rax
mov    %eax,%r8d
lea    0xf73(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd97(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xffa(%rip),%r14
mov    %r14,%rdi
call   1030 <puts@plt>
lea    0x105b(%rip),%rdi
call   1030 <puts@plt>
mov    0x2e3a(%rip),%rbx
mov    (%rbx),%esi
mov    0x2e29(%rip),%rax
mov    (%rax),%edx
lea    0xea8(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rbx),%esi
mov    0x2e68(%rip),%rax
mov    (%rax),%edx
lea    0xeca(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e49(%rip),%rax
mov    (%rax),%esi
mov    0x2e00(%rip),%rax
mov    (%rax),%edx
lea    0xee5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e01(%rip),%rax
mov    (%rax),%esi
mov    0x2e10(%rip),%rax
mov    (%rax),%edx
lea    0xf03(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e19(%rip),%rax
movsd  (%rax),%xmm0
mov    0x2de6(%rip),%rax
movsd  (%rax),%xmm1
mov    0x2dc3(%rip),%rax
movsd  (%rax),%xmm2
mov    0x2e18(%rip),%rax
mov    (%rax),%esi
lea    0xf0c(%rip),%rdi
mov    $0x3,%al
call   1040 <printf@plt>
mov    0x2d71(%rip),%rax
mov    (%rax),%esi
mov    0x2d60(%rip),%rax
mov    (%rax),%edx
mov    0x2dd7(%rip),%rax
mov    (%rax),%ecx
mov    0x2dae(%rip),%rbx
mov    (%rbx),%r8d
lea    0xf0b(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2d46(%rip),%rax
mov    (%rax),%esi
mov    0x2d5d(%rip),%rax
mov    (%rax),%edx
mov    0x2d14(%rip),%rax
mov    (%rax),%ecx
mov    (%rbx),%r8d
lea    0xf16(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [3 x i8] c"\0A\0A\00"
@.str.1 = [109 x i8] c"typ \09dolna warto\C5\9B\C4\87 gorna wartosc ziarno precyzja deskryptor formatu\0A\00"
@.str.2 = [59 x i8] c"short %22d %22d %%i\0A\00"
@SHRT_MIN = global i32 0
@SHRT_MAX = global i32 0
@.str.3 = [59 x i8] c"int %22d %22d %%i\0A\00"
@INT_MAX = global i32 0
@.str.4 = [62 x i8] c"long %22ld %22ld %%li\0A\00"
@LONG_MIN = global i32 0
@LONG_MAX = global i32 0
@.str.5 = [65 x i8] c"long long %22lld %22lld %%lli\0A\00"
@LLONG_MIN = global i32 0
@LLONG_MAX = global i32 0
@.str.6 = [50 x i8] c"float %22e %22e %14e \09%d \09 %%f lub %%e\0A\00"
@FLT_MIN = global double 0.000000e+00
@FLT_MAX = global double 0.000000e+00
@FLT_EPSILON = global double 0.000000e+00
@FLT_DIG = global i64 0
@.str.7 = [55 x i8] c"double %22le %22le %14le \09%d \09 %%lf lub %%le\0A\00"
@DBL_MIN = global i32 0
@DBL_MAX = global i32 0
@DBL_EPSILON = global i32 0
@DBL_DIG = global i64 0
@.str.8 = [55 x i8] c"long double %22LE %22Le %14Le \09%d \09 %%Lf lub %%Le\0A\00"
@LDBL_MIN = global i32 0
@LDBL_MAX = global i32 0
@LDBL_EPSILON = global i32 0
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([109 x i8], [109 x i8]* @.str.1, i64 0, i64 0))
%4 = load i32, i32* @SHRT_MIN
%5 = load i32, i32* @SHRT_MAX
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.2, i64 0, i64 0), i32 %4, i32 %5)
%7 = load i32, i32* @SHRT_MIN
%8 = load i32, i32* @INT_MAX
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.3, i64 0, i64 0), i32 %7, i32 %8)
%10 = load i32, i32* @LONG_MIN
%11 = load i32, i32* @LONG_MAX
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.4, i64 0, i64 0), i32 %10, i32 %11)
%13 = load i32, i32* @LLONG_MIN
%14 = load i32, i32* @LLONG_MAX
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.5, i64 0, i64 0), i32 %13, i32 %14)
%16 = load double, double* @FLT_MIN
%17 = load double, double* @FLT_MAX
%18 = load double, double* @FLT_EPSILON
%19 = load i64, i64* @FLT_DIG
%20 = trunc i64 %19 to i32
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.6, i64 0, i64 0), double %16, double %17, double %18, i32 %20)
%22 = load i32, i32* @DBL_MIN
%23 = load i32, i32* @DBL_MAX
%24 = load i32, i32* @DBL_EPSILON
%25 = load i64, i64* @DBL_DIG
%26 = trunc i64 %25 to i32
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.7, i64 0, i64 0), i32 %22, i32 %23, i32 %24, i32 %26)
%28 = load i32, i32* @LDBL_MIN
%29 = load i32, i32* @LDBL_MAX
%30 = load i32, i32* @LDBL_EPSILON
%31 = load i64, i64* @DBL_DIG
%32 = trunc i64 %31 to i32
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.8, i64 0, i64 0), i32 %28, i32 %29, i32 %30, i32 %32)
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str.2 = [59 x i8] c"short %22d %22d %%i\0A\00"
@SHRT_MIN = global i32 0
@SHRT_MAX = global i32 0
@.str.3 = [59 x i8] c"int %22d %22d %%i\0A\00"
@INT_MAX = global i32 0
@.str.4 = [62 x i8] c"long %22ld %22ld %%li\0A\00"
@LONG_MIN = global i32 0
@LONG_MAX = global i32 0
@.str.5 = [65 x i8] c"long long %22lld %22lld %%lli\0A\00"
@LLONG_MIN = global i32 0
@LLONG_MAX = global i32 0
@.str.6 = [50 x i8] c"float %22e %22e %14e \09%d \09 %%f lub %%e\0A\00"
@FLT_MIN = global double 0.000000e+00
@FLT_MAX = global double 0.000000e+00
@FLT_EPSILON = global double 0.000000e+00
@FLT_DIG = global i64 0
@.str.7 = [55 x i8] c"double %22le %22le %14le \09%d \09 %%lf lub %%le\0A\00"
@DBL_MIN = global i32 0
@DBL_MAX = global i32 0
@DBL_EPSILON = global i32 0
@DBL_DIG = global i64 0
@.str.8 = [55 x i8] c"long double %22LE %22Le %14Le \09%d \09 %%Lf lub %%Le\0A\00"
@LDBL_MIN = global i32 0
@LDBL_MAX = global i32 0
@LDBL_EPSILON = global i32 0
@str.9 = [108 x i8] c"typ \09dolna warto\C5\9B\C4\87 gorna wartosc ziarno precyzja deskryptor formatu\00"
@str.10 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.10, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([108 x i8], [108 x i8]* @str.9, i64 0, i64 0))
%3 = load i32, i32* @SHRT_MIN
%4 = load i32, i32* @SHRT_MAX
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.2, i64 0, i64 0), i32 %3, i32 %4)
%6 = load i32, i32* @SHRT_MIN
%7 = load i32, i32* @INT_MAX
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.3, i64 0, i64 0), i32 %6, i32 %7)
%9 = load i32, i32* @LONG_MIN
%10 = load i32, i32* @LONG_MAX
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @.str.4, i64 0, i64 0), i32 %9, i32 %10)
%12 = load i32, i32* @LLONG_MIN
%13 = load i32, i32* @LLONG_MAX
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @.str.5, i64 0, i64 0), i32 %12, i32 %13)
%15 = load double, double* @FLT_MIN
%16 = load double, double* @FLT_MAX
%17 = load double, double* @FLT_EPSILON
%18 = load i64, i64* @FLT_DIG
%19 = trunc i64 %18 to i32
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.6, i64 0, i64 0), double %15, double %16, double %17, i32 %19)
%21 = load i32, i32* @DBL_MIN
%22 = load i32, i32* @DBL_MAX
%23 = load i32, i32* @DBL_EPSILON
%24 = load i64, i64* @DBL_DIG
%25 = trunc i64 %24 to i32
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @.str.7, i64 0, i64 0), i32 %21, i32 %22, i32 %23, i32 %25)
%27 = load i32, i32* @LDBL_MIN
%28 = load i32, i32* @LDBL_MAX
%29 = load i32, i32* @LDBL_EPSILON
%30 = load i64, i64* @DBL_DIG
%31 = trunc i64 %30 to i32
%32 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @.str.8, i64 0, i64 0), i32 %27, i32 %28, i32 %29, i32 %31)
%33 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.10, i64 0, i64 0))
ret i32 0
}