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

/* Variables and functions */
int LDBL_MAX;
int LONG_MAX;
int /*<<< orphan*/ printf(char *, int);
int main() {
  long L[18];
  printf("long: sur %zu octets\n", sizeof(L));
  printf("min -%ld\n", LONG_MAX);
  long double Ld[12];
  printf("long double: sur %zu octets\n", sizeof(Ld));
  printf("max %Le\n", LDBL_MAX);
  printf("max %Lf\n", LDBL_MAX);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x150,%rsp
lea    0xede(%rip),%rdi
mov    $0x90,%esi
call   1030 <printf@plt>
mov    0x2ea5(%rip),%rax
mov    (%rax),%esi
lea    0xeda(%rip),%rdi
call   1030 <printf@plt>
lea    0xed8(%rip),%rdi
mov    $0xc0,%esi
call   1030 <printf@plt>
mov    0x2e87(%rip),%rax
mov    (%rax),%esi
lea    0xedb(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e72(%rip),%rax
mov    (%rax),%esi
lea    0xecf(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x150,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xee8(%rip),%rdi
mov    $0x90,%esi
call   1030 <printf@plt>
mov    0x2eaf(%rip),%rax
mov    (%rax),%esi
lea    0xee4(%rip),%rdi
call   1030 <printf@plt>
lea    0xee2(%rip),%rdi
mov    $0xc0,%esi
call   1030 <printf@plt>
mov    0x2e91(%rip),%rbx
mov    (%rbx),%esi
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
mov    (%rbx),%esi
lea    0xee0(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [22 x i8] c"long: sur %zu octets\0A\00"
@.str.1 = [10 x i8] c"min -%ld\0A\00"
@LONG_MAX = global i32 0
@.str.2 = [29 x i8] c"long double: sur %zu octets\0A\00"
@.str.3 = [9 x i8] c"max %Le\0A\00"
@LDBL_MAX = global i32 0
@.str.4 = [9 x i8] c"max %Lf\0A\00"
define i32 @main() {
%1 = alloca [18 x i64]
%2 = alloca [12 x x86_fp80]
%3 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 144)
%4 = load i32, i32* @LONG_MAX
%5 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %4)
%6 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i32 192)
%7 = load i32, i32* @LDBL_MAX
%8 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @LDBL_MAX
%10 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32 %9)
ret i32 0
}

LLVM IR (-O2):
@.str = [22 x i8] c"long: sur %zu octets\0A\00"
@.str.1 = [10 x i8] c"min -%ld\0A\00"
@LONG_MAX = global i32 0
@.str.2 = [29 x i8] c"long double: sur %zu octets\0A\00"
@.str.3 = [9 x i8] c"max %Le\0A\00"
@LDBL_MAX = global i32 0
@.str.4 = [9 x i8] c"max %Lf\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 144)
%2 = load i32, i32* @LONG_MAX
%3 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %2)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i32 192)
%5 = load i32, i32* @LDBL_MAX
%6 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @LDBL_MAX
%8 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32 %7)
ret i32 0
}