#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*/ n3;
typedef int /*<<< orphan*/ n2;
typedef int /*<<< orphan*/ n;
typedef int /*<<< orphan*/ c;

/* Variables and functions */
int CHAR_MAX;
int CHAR_MIN;
int INT_MAX;
int INT_MIN;
int LONG_MAX;
int LONG_MIN;
int /*<<< orphan*/ printf(char *, int, int, ...);
int main(int argc, char *argv[]) {
  char c;
  short int n;
  int n2;
  long int n3;
  printf(
      "char size: %d\nshort int size: %d\nint size: %d\nlong int size: %d\n\n",
      sizeof(c), sizeof(n), sizeof(n2), sizeof(n3));
  printf("char low limit: %d\nchar up limit:%d\n", CHAR_MIN, CHAR_MAX);
  printf("int low limit: %d\nintt up limit: %d\n", INT_MIN, INT_MAX);
  printf("long min: %ld\nlong max: %ld\n", LONG_MIN, LONG_MAX);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xed3(%rip),%rdi
mov    $0x1,%esi
mov    $0x2,%edx
mov    $0x4,%ecx
mov    $0x8,%r8d
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e90(%rip),%rax
mov    (%rax),%esi
mov    0x2e8f(%rip),%rax
mov    (%rax),%edx
lea    0xee0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e58(%rip),%rax
mov    (%rax),%esi
mov    0x2e5f(%rip),%rax
mov    (%rax),%edx
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e40(%rip),%rax
mov    (%rax),%esi
mov    0x2e1f(%rip),%rax
mov    (%rax),%edx
lea    0xeea(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x4,%ecx
mov    $0x8,%r8d
mov    $0x1,%esi
mov    $0x2,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2ea5(%rip),%rax
mov    (%rax),%esi
mov    0x2ea4(%rip),%rax
mov    (%rax),%edx
lea    0xef5(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2e6d(%rip),%rax
mov    (%rax),%esi
mov    0x2e74(%rip),%rax
mov    (%rax),%edx
lea    0xefa(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2e55(%rip),%rax
mov    (%rax),%esi
mov    0x2e34(%rip),%rax
mov    (%rax),%edx
lea    0xeff(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [66 x i8] c"char size: %d\0Ashort int size: %d\0Aint size: %d\0Along int size: %d\0A\0A\00"
@.str.1 = [37 x i8] c"char low limit: %d\0Achar up limit:%d\0A\00"
@CHAR_MIN = global i32 0
@CHAR_MAX = global i32 0
@.str.2 = [37 x i8] c"int low limit: %d\0Aintt up limit: %d\0A\00"
@INT_MIN = global i32 0
@INT_MAX = global i32 0
@.str.3 = [29 x i8] c"long min: %ld\0Along max: %ld\0A\00"
@LONG_MIN = global i32 0
@LONG_MAX = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8
%7 = alloca i16
%8 = alloca i32
%9 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str, i64 0, i64 0), i32 1, i32 2, i64 4, i64 8)
%11 = load i32, i32* @CHAR_MIN
%12 = load i32, i32* @CHAR_MAX
%13 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0), i32 %11, i32 %12)
%14 = load i32, i32* @INT_MIN
%15 = load i32, i32* @INT_MAX
%16 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0), i32 %14, i32 %15)
%17 = load i32, i32* @LONG_MIN
%18 = load i32, i32* @LONG_MAX
%19 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i32 %17, i32 %18)
ret i32 0
}

LLVM IR (-O2):
@.str = [66 x i8] c"char size: %d\0Ashort int size: %d\0Aint size: %d\0Along int size: %d\0A\0A\00"
@.str.1 = [37 x i8] c"char low limit: %d\0Achar up limit:%d\0A\00"
@CHAR_MIN = global i32 0
@CHAR_MAX = global i32 0
@.str.2 = [37 x i8] c"int low limit: %d\0Aintt up limit: %d\0A\00"
@INT_MIN = global i32 0
@INT_MAX = global i32 0
@.str.3 = [29 x i8] c"long min: %ld\0Along max: %ld\0A\00"
@LONG_MIN = global i32 0
@LONG_MAX = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str, i64 0, i64 0), i32 1, i32 2, i64 4, i64 8)
%4 = load i32, i32* @CHAR_MIN
%5 = load i32, i32* @CHAR_MAX
%6 = tail call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0), i32 %4, i32 %5)
%7 = load i32, i32* @INT_MIN
%8 = load i32, i32* @INT_MAX
%9 = tail call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0), i32 %7, i32 %8)
%10 = load i32, i32* @LONG_MIN
%11 = load i32, i32* @LONG_MAX
%12 = tail call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i32 %10, i32 %11)
ret i32 0
}