#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 */
int /*<<< orphan*/ FLT_MAX;
int /*<<< orphan*/ ICPrintCharValue(int);
int /*<<< orphan*/ ICPrintDoubleValue(int /*<<< orphan*/);
int /*<<< orphan*/ ICPrintIntValue(int /*<<< orphan*/);
int /*<<< orphan*/ ICPrintStringValue(char *);
int /*<<< orphan*/ INT_MAX;
int /*<<< orphan*/ INT_MIN;
int /*<<< orphan*/ LDBL_MAX;
int /*<<< orphan*/ printf(char *);
int main(int argc, const char *argv[]) {
  printf("Hello, World!\n");
  ICPrintIntValue(INT_MAX);
  ICPrintIntValue(INT_MIN);
  ICPrintCharValue('A');
  ICPrintCharValue(2);
  ICPrintDoubleValue(FLT_MAX);
  ICPrintDoubleValue(LDBL_MAX);
  ICPrintStringValue("Hello, my dear friends!");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xe93(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e6f(%rip),%rax
mov    (%rax),%edi
call   1050 <ICPrintIntValue@plt>
mov    0x2e59(%rip),%rax
mov    (%rax),%edi
call   1050 <ICPrintIntValue@plt>
mov    $0x41,%edi
call   1060 <ICPrintCharValue@plt>
mov    $0x2,%edi
call   1060 <ICPrintCharValue@plt>
mov    0x2e2f(%rip),%rax
mov    (%rax),%edi
call   1070 <ICPrintDoubleValue@plt>
mov    0x2e11(%rip),%rax
mov    (%rax),%edi
call   1070 <ICPrintDoubleValue@plt>
lea    0xe4a(%rip),%rdi
call   1040 <ICPrintStringValue@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xec0(%rip),%rdi
call   1030 <puts@plt>
mov    0x2e84(%rip),%rax
mov    (%rax),%edi
call   1050 <ICPrintIntValue@plt>
mov    0x2e6e(%rip),%rax
mov    (%rax),%edi
call   1050 <ICPrintIntValue@plt>
mov    $0x41,%edi
call   1060 <ICPrintCharValue@plt>
mov    $0x2,%edi
call   1060 <ICPrintCharValue@plt>
mov    0x2e44(%rip),%rax
mov    (%rax),%edi
call   1070 <ICPrintDoubleValue@plt>
mov    0x2e26(%rip),%rax
mov    (%rax),%edi
call   1070 <ICPrintDoubleValue@plt>
lea    0xe50(%rip),%rdi
call   1040 <ICPrintStringValue@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [15 x i8] c"Hello, World!\0A\00"
@INT_MAX = global i32 0
@INT_MIN = global i32 0
@FLT_MAX = global i32 0
@LDBL_MAX = global i32 0
@.str.1 = [24 x i8] c"Hello, my dear friends!\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%7 = load i32, i32* @INT_MAX
%8 = call i32 @ICPrintIntValue(i32 %7)
%9 = load i32, i32* @INT_MIN
%10 = call i32 @ICPrintIntValue(i32 %9)
%11 = call i32 @ICPrintCharValue(i32 65)
%12 = call i32 @ICPrintCharValue(i32 2)
%13 = load i32, i32* @FLT_MAX
%14 = call i32 @ICPrintDoubleValue(i32 %13)
%15 = load i32, i32* @LDBL_MAX
%16 = call i32 @ICPrintDoubleValue(i32 %15)
%17 = call i32 @ICPrintStringValue(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@INT_MAX = global i32 0
@INT_MIN = global i32 0
@FLT_MAX = global i32 0
@LDBL_MAX = global i32 0
@.str.1 = [24 x i8] c"Hello, my dear friends!\00"
@str = [14 x i8] c"Hello, World!\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
%4 = load i32, i32* @INT_MAX
%5 = tail call i32 @ICPrintIntValue(i32 %4)
%6 = load i32, i32* @INT_MIN
%7 = tail call i32 @ICPrintIntValue(i32 %6)
%8 = tail call i32 @ICPrintCharValue(i32 65)
%9 = tail call i32 @ICPrintCharValue(i32 2)
%10 = load i32, i32* @FLT_MAX
%11 = tail call i32 @ICPrintDoubleValue(i32 %10)
%12 = load i32, i32* @LDBL_MAX
%13 = tail call i32 @ICPrintDoubleValue(i32 %12)
%14 = tail call i32 @ICPrintStringValue(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}