#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*/ EXIT_SUCCESS;
int /*<<< orphan*/ __text_print_all(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int main(int UNUSED_argc __attribute__((__unused__)),
         char **UNUSED_argv __attribute__((__unused__))) {
  __text_print_all(NULL, "Hello", ", ", "World", "!", NULL);
  __text_print_all(NULL, NULL);
  exit(EXIT_SUCCESS);
}


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)
xor    %eax,%eax
mov    %eax,%r9d
lea    0xebe(%rip),%rsi
lea    0xebd(%rip),%rdx
lea    0xeb9(%rip),%rcx
lea    0xeb8(%rip),%r8
mov    %r9,%rdi
mov    $0x0,%al
call   1030 <__text_print_all@plt>
xor    %eax,%eax
mov    %eax,%esi
mov    %rsi,%rdi
mov    $0x0,%al
call   1030 <__text_print_all@plt>
mov    0x2e6a(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rsi
lea    0xed7(%rip),%rdx
lea    0xed3(%rip),%rcx
lea    0xed2(%rip),%r8
xor    %edi,%edi
xor    %r9d,%r9d
xor    %eax,%eax
call   1030 <__text_print_all@plt>
xor    %edi,%edi
xor    %esi,%esi
xor    %eax,%eax
call   1030 <__text_print_all@plt>
mov    0x2e85(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"Hello\00"
@.str.1 = [3 x i8] c", \00"
@.str.2 = [6 x i8] c"World\00"
@.str.3 = [2 x i8] c"!\00"
@EXIT_SUCCESS = global i32 0
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 (i32*, i8*, ...) @__text_print_all(i32* null, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i8* null)
%7 = call i32 (i32*, i8*, ...) @__text_print_all(i32* null, i8* null)
%8 = load i32, i32* @EXIT_SUCCESS
%9 = call i32 @exit(i32 %8)
unreachable
}

LLVM IR (-O2):
@.str = [6 x i8] c"Hello\00"
@.str.1 = [3 x i8] c", \00"
@.str.2 = [6 x i8] c"World\00"
@.str.3 = [2 x i8] c"!\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (i32*, i8*, ...) @__text_print_all(i32* null, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i8* null)
%4 = tail call i32 (i32*, i8*, ...) @__text_print_all(i32* null, i8* null)
%5 = load i32, i32* @EXIT_SUCCESS
%6 = tail call i32 @exit(i32 %5)
unreachable
}