#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*/ putchar(char);
int main(int argc, char *argv[]) {
  char a[12] = "Hola Mundo!";
  char *b, *c;
  c = a;
  putchar(*c);
  b = ++c;
  putchar(*b);
  b = (a + 2);
  putchar(*b);
  b = (*c) + 2;
  putchar(*b);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0xed3(%rip),%rax
mov    %rax,-0x1c(%rbp)
mov    0xed1(%rip),%eax
mov    %eax,-0x14(%rbp)
lea    -0x1c(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
movsbl (%rax),%edi
call   1030 <putchar@plt>
mov    -0x30(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x30(%rbp)
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
movsbl (%rax),%edi
call   1030 <putchar@plt>
lea    -0x1c(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
movsbl (%rax),%edi
call   1030 <putchar@plt>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
add    $0x2,%eax
cltq
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
movsbl (%rax),%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x48,%edi
call   1030 <putchar@plt>
mov    $0x6f,%edi
call   1030 <putchar@plt>
mov    $0x6c,%edi
call   1030 <putchar@plt>
movsbl 0x71,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@__const.main.a = [12 x i8] c"Hola Mundo!\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [12 x i8]
%7 = alloca i8*
%8 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%9 = bitcast [12 x i8]* %6 to i8*
%10 = getelementptr inbounds [12 x i8], [12 x i8]* %6, i64 0, i64 0
store i8* %10, i8** %8
%11 = load i8*, i8** %8
%12 = load i8, i8* %11
%13 = call i32 @putchar(i8 signext %12)
%14 = load i8*, i8** %8
%15 = getelementptr inbounds i8, i8* %14, i32 1
store i8* %15, i8** %8
store i8* %15, i8** %7
%16 = load i8*, i8** %7
%17 = load i8, i8* %16
%18 = call i32 @putchar(i8 signext %17)
%19 = getelementptr inbounds [12 x i8], [12 x i8]* %6, i64 0, i64 0
%20 = getelementptr inbounds i8, i8* %19, i64 2
store i8* %20, i8** %7
%21 = load i8*, i8** %7
%22 = load i8, i8* %21
%23 = call i32 @putchar(i8 signext %22)
%24 = load i8*, i8** %8
%25 = load i8, i8* %24
%26 = sext i8 %25 to i32
%27 = add nsw i32 %26, 2
%28 = sext i32 %27 to i64
%29 = inttoptr i64 %28 to i8*
store i8* %29, i8** %7
%30 = load i8*, i8** %7
%31 = load i8, i8* %30
%32 = call i32 @putchar(i8 signext %31)
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @putchar(i8 signext 72)
%4 = tail call i32 @putchar(i8 signext 111)
%5 = tail call i32 @putchar(i8 signext 108)
%6 = load i8, i8* inttoptr (i64 113 to i8*)
%7 = tail call i32 @putchar(i8 signext %6)
ret i32 0
}