#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*/ INNER();
int /*<<< orphan*/ TAG();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ skip(char *);
int XML() {
  printf("<XML>");
  skip("<");
  TAG();
  skip(">");
  INNER();
  skip("</");
  TAG();
  skip(">");
  printf("</XML>");
}


x86 assembly (clang, -O0):
<XML>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xeb1(%rip),%rdi
call   1060 <printf@plt>
lea    0xeab(%rip),%rdi
call   1030 <skip@plt>
mov    $0x0,%al
call   1050 <TAG@plt>
lea    0xea2(%rip),%rdi
call   1030 <skip@plt>
mov    $0x0,%al
call   1040 <INNER@plt>
lea    0xe87(%rip),%rdi
call   1030 <skip@plt>
mov    $0x0,%al
call   1050 <TAG@plt>
lea    0xe7c(%rip),%rdi
call   1030 <skip@plt>
lea    0xe6b(%rip),%rdi
call   1060 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<XML>:
push   %rbx
lea    0xeb8(%rip),%rdi
call   1060 <printf@plt>
lea    0xeb2(%rip),%rdi
call   1030 <skip@plt>
xor    %eax,%eax
call   1050 <TAG@plt>
lea    0xea9(%rip),%rbx
mov    %rbx,%rdi
call   1030 <skip@plt>
xor    %eax,%eax
call   1040 <INNER@plt>
lea    0xe8b(%rip),%rdi
call   1030 <skip@plt>
xor    %eax,%eax
call   1050 <TAG@plt>
mov    %rbx,%rdi
call   1030 <skip@plt>
lea    0xe73(%rip),%rdi
pop    %rbx
jmp    1060 <printf@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"<XML>\00"
@.str.1 = [2 x i8] c"<\00"
@.str.2 = [2 x i8] c">\00"
@.str.3 = [3 x i8] c"</\00"
@.str.4 = [7 x i8] c"</XML>\00"
define i32 @XML() {
%1 = alloca i32
%2 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @skip(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 (...) @TAG()
%5 = call i32 @skip(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 (...) @INNER()
%7 = call i32 @skip(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 (...) @TAG()
%9 = call i32 @skip(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%11 = load i32, i32* %1
ret i32 %11
}

LLVM IR (-O2):
@.str = [6 x i8] c"<XML>\00"
@.str.1 = [2 x i8] c"<\00"
@.str.2 = [2 x i8] c">\00"
@.str.3 = [3 x i8] c"</\00"
@.str.4 = [7 x i8] c"</XML>\00"
define i32 @XML() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @skip(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 (...) @TAG()
%4 = tail call i32 @skip(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 (...) @INNER()
%6 = tail call i32 @skip(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i32 (...) @TAG()
%8 = tail call i32 @skip(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%9 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
ret i32 undef
}