#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*/ k;

/* Variables and functions */
int INT_MAX;
int INT_MIN;
int /*<<< orphan*/ printf(char *, ...);
int main() {
  char ch = '$';
  int n = 5;
  unsigned int m = 37;
  long long k = 123456789;
  double t = 3.14159;
  char *str = "now is the time";
  printf("character: %c\n", ch);
  printf("int: %d\n", n);
  printf("unsigned int: %u\n", m);
  printf("long long: %lld\n", k);
  printf("float: %f\n", t);
  printf("string: %s\n", str);
  printf("The size of long long: %d\n", sizeof(k));
  printf("INT_MAX: %d\n", INT_MAX);
  printf("INT_MIN: %d\n", INT_MIN);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movb   $0x24,-0x1(%rbp)
movl   $0x5,-0x8(%rbp)
movl   $0x25,-0xc(%rbp)
movq   $0x75bcd15,-0x18(%rbp)
07
movsd  0xec6(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
lea    0xec2(%rip),%rax
mov    %rax,-0x28(%rbp)
movsbl -0x1(%rbp),%esi
lea    0xec3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
lea    0xec1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%esi
lea    0xeb9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rsi
lea    0xeb9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  -0x20(%rbp),%xmm0
lea    0xeb7(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x28(%rbp),%rsi
lea    0xeb0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeae(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e19(%rip),%rax
mov    (%rax),%esi
lea    0xead(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2dfa(%rip),%rax
mov    (%rax),%esi
lea    0xea3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xf00(%rip),%rdi
mov    $0x24,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xefc(%rip),%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xef2(%rip),%rdi
mov    $0x25,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xef1(%rip),%rdi
mov    $0x75bcd15,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xeef(%rip),%rdi
movsd  0xe94(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xee4(%rip),%rdi
lea    0xe87(%rip),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xedb(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2e46(%rip),%rax
mov    (%rax),%esi
lea    0xeda(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2e27(%rip),%rax
mov    (%rax),%esi
lea    0xed0(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [16 x i8] c"now is the time\00"
@.str.1 = [15 x i8] c"character: %c\0A\00"
@.str.2 = [9 x i8] c"int: %d\0A\00"
@.str.3 = [18 x i8] c"unsigned int: %u\0A\00"
@.str.4 = [17 x i8] c"long long: %lld\0A\00"
@.str.5 = [11 x i8] c"float: %f\0A\00"
@.str.6 = [12 x i8] c"string: %s\0A\00"
@.str.7 = [27 x i8] c"The size of long long: %d\0A\00"
@.str.8 = [13 x i8] c"INT_MAX: %d\0A\00"
@INT_MAX = global i32 0
@.str.9 = [13 x i8] c"INT_MIN: %d\0A\00"
@INT_MIN = global i32 0
define i32 @main() {
%1 = alloca i8
%2 = alloca i32
%3 = alloca i32
%4 = alloca i64
%5 = alloca double
%6 = alloca i8*
store i8 36, i8* %1
store i32 5, i32* %2
store i32 37, i32* %3
store i64 123456789, i64* %4
store double 3.141590e+00, double* %5
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8** %6
%7 = load i8, i8* %1
%8 = sext i8 %7 to i32
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 %8)
%10 = load i32, i32* %2
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32 %10)
%12 = load i32, i32* %3
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %12)
%14 = load i64, i64* %4
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i64 %14)
%16 = load double, double* %5
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), double %16)
%18 = load i8*, i8** %6
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i8* %18)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0), i64 8)
%21 = load i32, i32* @INT_MAX
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0), i32 %21)
%23 = load i32, i32* @INT_MIN
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i32 %23)
ret i32 0
}

LLVM IR (-O2):
@.str = [16 x i8] c"now is the time\00"
@.str.1 = [15 x i8] c"character: %c\0A\00"
@.str.2 = [9 x i8] c"int: %d\0A\00"
@.str.3 = [18 x i8] c"unsigned int: %u\0A\00"
@.str.4 = [17 x i8] c"long long: %lld\0A\00"
@.str.5 = [11 x i8] c"float: %f\0A\00"
@.str.6 = [12 x i8] c"string: %s\0A\00"
@.str.7 = [27 x i8] c"The size of long long: %d\0A\00"
@.str.8 = [13 x i8] c"INT_MAX: %d\0A\00"
@INT_MAX = global i32 0
@.str.9 = [13 x i8] c"INT_MIN: %d\0A\00"
@INT_MIN = global i32 0
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 36)
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32 5)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 37)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i64 123456789)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), double 3.141590e+00)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0), i64 8)
%8 = load i32, i32* @INT_MAX
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0), i32 %8)
%10 = load i32, i32* @INT_MIN
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i32 %10)
ret i32 0
}