#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 */
char getCharacter(char **);
scalar_t__ parse_S(char **);
int parse_literal(char **, char);
int parse_XMLDecl(char **xml) {
  if (parse_literal(xml, '<') != 0)
    return 1;
  if (parse_literal(xml, '?') != 0)
    return 1;
  if (parse_literal(xml, 'x') != 0)
    return 1;
  if (parse_literal(xml, 'm') != 0)
    return 1;
  if (parse_literal(xml, 'l') != 0)
    return 1;
  if (parse_S(xml))
    return 1;
  while (getCharacter(xml) != '?') {
  };
  if (parse_literal(xml, '>') == 1)
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<parse_XMLDecl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x3c,%esi
call   1040 <parse_literal@plt>
cmp    $0x0,%eax
je     115f <parse_XMLDecl+0x2f>
movl   $0x1,-0x4(%rbp)
jmp    1253 <parse_XMLDecl+0x123>
mov    -0x10(%rbp),%rdi
mov    $0x3f,%esi
call   1040 <parse_literal@plt>
cmp    $0x0,%eax
je     1182 <parse_XMLDecl+0x52>
movl   $0x1,-0x4(%rbp)
jmp    1253 <parse_XMLDecl+0x123>
mov    -0x10(%rbp),%rdi
mov    $0x78,%esi
call   1040 <parse_literal@plt>
cmp    $0x0,%eax
je     11a5 <parse_XMLDecl+0x75>
movl   $0x1,-0x4(%rbp)
jmp    1253 <parse_XMLDecl+0x123>
mov    -0x10(%rbp),%rdi
mov    $0x6d,%esi
call   1040 <parse_literal@plt>
cmp    $0x0,%eax
je     11c8 <parse_XMLDecl+0x98>
movl   $0x1,-0x4(%rbp)
jmp    1253 <parse_XMLDecl+0x123>
mov    -0x10(%rbp),%rdi
mov    $0x6c,%esi
call   1040 <parse_literal@plt>
cmp    $0x0,%eax
je     11eb <parse_XMLDecl+0xbb>
movl   $0x1,-0x4(%rbp)
jmp    1253 <parse_XMLDecl+0x123>
mov    -0x10(%rbp),%rdi
call   1030 <parse_S@plt>
cmp    $0x0,%rax
je     120a <parse_XMLDecl+0xda>
movl   $0x1,-0x4(%rbp)
jmp    1253 <parse_XMLDecl+0x123>
jmp    120f <parse_XMLDecl+0xdf>
mov    -0x10(%rbp),%rdi
call   1050 <getCharacter@plt>
movsbl %al,%eax
cmp    $0x3f,%eax
je     1229 <parse_XMLDecl+0xf9>
jmp    120f <parse_XMLDecl+0xdf>
mov    -0x10(%rbp),%rdi
mov    $0x3e,%esi
call   1040 <parse_literal@plt>
cmp    $0x1,%eax
jne    124c <parse_XMLDecl+0x11c>
movl   $0x1,-0x4(%rbp)
jmp    1253 <parse_XMLDecl+0x123>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parse_XMLDecl>:
push   %rbp
push   %rbx
push   %rax
mov    %rdi,%rbx
mov    $0x3c,%esi
call   1040 <parse_literal@plt>
mov    $0x1,%ebp
test   %eax,%eax
jne    11bc <parse_XMLDecl+0x8c>
mov    %rbx,%rdi
mov    $0x3f,%esi
call   1040 <parse_literal@plt>
test   %eax,%eax
jne    11bc <parse_XMLDecl+0x8c>
mov    %rbx,%rdi
mov    $0x78,%esi
call   1040 <parse_literal@plt>
test   %eax,%eax
jne    11bc <parse_XMLDecl+0x8c>
mov    %rbx,%rdi
mov    $0x6d,%esi
call   1040 <parse_literal@plt>
test   %eax,%eax
jne    11bc <parse_XMLDecl+0x8c>
mov    %rbx,%rdi
mov    $0x6c,%esi
call   1040 <parse_literal@plt>
test   %eax,%eax
jne    11bc <parse_XMLDecl+0x8c>
mov    %rbx,%rdi
call   1030 <parse_S@plt>
test   %rax,%rax
jne    11bc <parse_XMLDecl+0x8c>
mov    %rbx,%rdi
call   1050 <getCharacter@plt>
cmp    $0x3f,%al
jne    119a <parse_XMLDecl+0x6a>
mov    %rbx,%rdi
mov    $0x3e,%esi
call   1040 <parse_literal@plt>
xor    %ebp,%ebp
cmp    $0x1,%eax
sete   %bpl
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @parse_XMLDecl(i8** %0) {
%2 = alloca i32
%3 = alloca i8**
store i8** %0, i8*** %3
%4 = load i8**, i8*** %3
%5 = call i32 @parse_literal(i8** %4, i8 signext 60)
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 1, i32* %2
br label %46
8: ; preds = %1
%9 = load i8**, i8*** %3
%10 = call i32 @parse_literal(i8** %9, i8 signext 63)
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %8
store i32 1, i32* %2
br label %46
13: ; preds = %8
%14 = load i8**, i8*** %3
%15 = call i32 @parse_literal(i8** %14, i8 signext 120)
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %13
store i32 1, i32* %2
br label %46
18: ; preds = %13
%19 = load i8**, i8*** %3
%20 = call i32 @parse_literal(i8** %19, i8 signext 109)
%21 = icmp ne i32 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %18
store i32 1, i32* %2
br label %46
23: ; preds = %18
%24 = load i8**, i8*** %3
%25 = call i32 @parse_literal(i8** %24, i8 signext 108)
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %23
store i32 1, i32* %2
br label %46
28: ; preds = %23
%29 = load i8**, i8*** %3
%30 = call i64 @parse_S(i8** %29)
%31 = icmp ne i64 %30, 0
br i1 %31, label %32, label %33
32: ; preds = %28
store i32 1, i32* %2
br label %46
33: ; preds = %28
br label %34
34: ; preds = %39, %33
%35 = load i8**, i8*** %3
%36 = call signext i8 @getCharacter(i8** %35)
%37 = sext i8 %36 to i32
%38 = icmp ne i32 %37, 63
br i1 %38, label %39, label %40
39: ; preds = %34
br label %34
40: ; preds = %34
%41 = load i8**, i8*** %3
%42 = call i32 @parse_literal(i8** %41, i8 signext 62)
%43 = icmp eq i32 %42, 1
br i1 %43, label %44, label %45
44: ; preds = %40
store i32 1, i32* %2
br label %46
45: ; preds = %40
store i32 0, i32* %2
br label %46
46: ; preds = %45, %44, %32, %27, %22, %17, %12, %7
%47 = load i32, i32* %2
ret i32 %47
}

LLVM IR (-O2):
define i32 @parse_XMLDecl(i8** %0) {
%2 = tail call i32 @parse_literal(i8** %0, i8 signext 60)
%3 = icmp eq i32 %2, 0
br i1 %3, label %4, label %26
4: ; preds = %1
%5 = tail call i32 @parse_literal(i8** %0, i8 signext 63)
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %26
7: ; preds = %4
%8 = tail call i32 @parse_literal(i8** %0, i8 signext 120)
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %26
10: ; preds = %7
%11 = tail call i32 @parse_literal(i8** %0, i8 signext 109)
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %26
13: ; preds = %10
%14 = tail call i32 @parse_literal(i8** %0, i8 signext 108)
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %26
16: ; preds = %13
%17 = tail call i64 @parse_S(i8** %0)
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %26
19: ; preds = %16, %19
%20 = tail call signext i8 @getCharacter(i8** %0)
%21 = icmp eq i8 %20, 63
br i1 %21, label %22, label %19
22: ; preds = %19
%23 = tail call i32 @parse_literal(i8** %0, i8 signext 62)
%24 = icmp eq i32 %23, 1
%25 = zext i1 %24 to i32
br label %26
26: ; preds = %22, %16, %13, %10, %7, %4, %1
%27 = phi i32 [ 1, %1 ], [ 1, %4 ], [ 1, %7 ], [ 1, %10 ], [ 1, %13 ], [ 1, %16 ], [ %25, %22 ]
ret i32 %27
}