#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*/ getchar();
int /*<<< orphan*/ putchar(char);
int main() {
  getchar();
  putchar('h');
  putchar('o');
  putchar('l');
  putchar('a');
  putchar(32);
  putchar('c');
  putchar('l');
  putchar('a');
  putchar('s');
  putchar('e');
  putchar('\n');
  getchar();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <getchar@plt>
mov    $0x68,%edi
call   1030 <putchar@plt>
mov    $0x6f,%edi
call   1030 <putchar@plt>
mov    $0x6c,%edi
call   1030 <putchar@plt>
mov    $0x61,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    $0x63,%edi
call   1030 <putchar@plt>
mov    $0x6c,%edi
call   1030 <putchar@plt>
mov    $0x61,%edi
call   1030 <putchar@plt>
mov    $0x73,%edi
call   1030 <putchar@plt>
mov    $0x65,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x0,%al
call   1040 <getchar@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <getchar@plt>
mov    $0x68,%edi
call   1030 <putchar@plt>
mov    $0x6f,%edi
call   1030 <putchar@plt>
mov    $0x6c,%edi
call   1030 <putchar@plt>
mov    $0x61,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    $0x63,%edi
call   1030 <putchar@plt>
mov    $0x6c,%edi
call   1030 <putchar@plt>
mov    $0x61,%edi
call   1030 <putchar@plt>
mov    $0x73,%edi
call   1030 <putchar@plt>
mov    $0x65,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
call   1040 <getchar@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @getchar()
%3 = call i32 @putchar(i8 signext 104)
%4 = call i32 @putchar(i8 signext 111)
%5 = call i32 @putchar(i8 signext 108)
%6 = call i32 @putchar(i8 signext 97)
%7 = call i32 @putchar(i8 signext 32)
%8 = call i32 @putchar(i8 signext 99)
%9 = call i32 @putchar(i8 signext 108)
%10 = call i32 @putchar(i8 signext 97)
%11 = call i32 @putchar(i8 signext 115)
%12 = call i32 @putchar(i8 signext 101)
%13 = call i32 @putchar(i8 signext 10)
%14 = call i32 (...) @getchar()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @getchar()
%2 = tail call i32 @putchar(i8 signext 104)
%3 = tail call i32 @putchar(i8 signext 111)
%4 = tail call i32 @putchar(i8 signext 108)
%5 = tail call i32 @putchar(i8 signext 97)
%6 = tail call i32 @putchar(i8 signext 32)
%7 = tail call i32 @putchar(i8 signext 99)
%8 = tail call i32 @putchar(i8 signext 108)
%9 = tail call i32 @putchar(i8 signext 97)
%10 = tail call i32 @putchar(i8 signext 115)
%11 = tail call i32 @putchar(i8 signext 101)
%12 = tail call i32 @putchar(i8 signext 10)
%13 = tail call i32 (...) @getchar()
ret i32 0
}