xunge/DecIR huggingface dataset:
/* Variables and functions */
int __VERIFIER_nondet_int();
int main() {
  int x;
  int y;
  x = __VERIFIER_nondet_int();
  y = __VERIFIER_nondet_int();
  if (x + y >= 0) {
    while (x > 0) {
      x = x + x + y;
      y = y + 1;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
cmp    $0x0,%eax
jl     1170 <main+0x60>
jmp    1147 <main+0x37>
cmpl   $0x0,-0x8(%rbp)
jle    116b <main+0x5b>
mov    -0x8(%rbp),%eax
add    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1147 <main+0x37>
jmp    1170 <main+0x60>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
test   %ebx,%ebx
jle    1145 <main+0x35>
mov    %eax,%ecx
add    %ebx,%ecx
js     1145 <main+0x35>
mov    %eax,%ecx
add    $0xffffffff,%ecx
lea    (%rcx,%rbx,2),%edx
add    $0x1,%edx
lea    (%rax,%rbx,2),%esi
add    $0x1,%eax
add    $0x1,%ecx
mov    %esi,%ebx
test   %edx,%edx
jg     1130 <main+0x20>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
%4 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %4, i32* %2
%5 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %5, i32* %3
%6 = load i32, i32* %2
%7 = load i32, i32* %3
%8 = add nsw i32 %6, %7
%9 = icmp sge i32 %8, 0
br i1 %9, label %10, label %23
10: ; preds = %0
br label %11
11: ; preds = %14, %10
%12 = load i32, i32* %2
%13 = icmp sgt i32 %12, 0
br i1 %13, label %14, label %22
14: ; preds = %11
%15 = load i32, i32* %2
%16 = load i32, i32* %2
%17 = add nsw i32 %15, %16
%18 = load i32, i32* %3
%19 = add nsw i32 %17, %18
store i32 %19, i32* %2
%20 = load i32, i32* %3
%21 = add nsw i32 %20, 1
store i32 %21, i32* %3
br label %11
22: ; preds = %11
br label %23
23: ; preds = %22, %0
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @__VERIFIER_nondet_int()
%2 = tail call i32 (...) @__VERIFIER_nondet_int()
%3 = add nsw i32 %2, %1
%4 = icmp sgt i32 %3, -1
%5 = icmp sgt i32 %1, 0
%6 = and i1 %5, %4
br i1 %6, label %7, label %14
7: ; preds = %0, %7
%8 = phi i32 [ %11, %7 ], [ %1, %0 ]
%9 = phi i32 [ %12, %7 ], [ %2, %0 ]
%10 = shl nuw nsw i32 %8, 1
%11 = add nsw i32 %10, %9
%12 = add nsw i32 %9, 1
%13 = icmp sgt i32 %11, 0
br i1 %13, label %7, label %14
14: ; preds = %7, %0
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ int64_t;

/* Variables and functions */
int /*<<< orphan*/ htole64(int /*<<< orphan*/);
void st_i64_le(void *x, int64_t i) { ((int64_t *)x)[0] = htole64(i); }


x86 assembly (clang, -O0):
<st_i64_le>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <htole64@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<st_i64_le>:
push   %rbx
mov    %rdi,%rbx
mov    %esi,%edi
call   1030 <htole64@plt>
mov    %eax,(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @st_i64_le(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = call i32 @htole64(i32 %5)
%7 = load i8*, i8** %3
%8 = bitcast i8* %7 to i32*
%9 = getelementptr inbounds i32, i32* %8, i64 0
store i32 %6, i32* %9
ret void
}

LLVM IR (-O2):
define void @st_i64_le(i8* nocapture writeonly %0, i32 %1) {
%3 = tail call i32 @htole64(i32 %1)
%4 = bitcast i8* %0 to i32*
store i32 %3, i32* %4
ret void
}
/* Variables and functions */
int /*<<< orphan*/ foo1();
void foo0(void) { foo1(); }


x86 assembly (clang, -O0):
<foo0>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <foo1@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<foo0>:
xor    %eax,%eax
jmp    1030 <foo1@plt>

LLVM IR (-O0):
define void @foo0() {
%1 = call i32 (...) @foo1()
ret void
}

LLVM IR (-O2):
define void @foo0() {
%1 = tail call i32 (...) @foo1()
ret void
}
/* Type definitions */
struct soap {
  int dummy;
};

/* Variables and functions */
int soap_send(struct soap *, char *);
int soap_envelope_end_out(struct soap *soap) {
  return soap_send(soap, "</SOAP-ENV:Envelope>");
}


x86 assembly (clang, -O0):
<soap_envelope_end_out>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed9(%rip),%rsi
call   1030 <soap_send@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<soap_envelope_end_out>:
lea    0xee9(%rip),%rsi
jmp    1030 <soap_send@plt>

LLVM IR (-O0):
%struct.soap = type { i32 }
@.str = [21 x i8] c"</SOAP-ENV:Envelope>\00"
define i32 @soap_envelope_end_out(%struct.soap* %0) {
%2 = alloca %struct.soap*
store %struct.soap* %0, %struct.soap** %2
%3 = load %struct.soap*, %struct.soap** %2
%4 = call i32 @soap_send(%struct.soap* %3, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
ret i32 %4
}

LLVM IR (-O2):
%struct.soap = type { i32 }
@.str = [21 x i8] c"</SOAP-ENV:Envelope>\00"
define i32 @soap_envelope_end_out(%struct.soap* %0) {
%2 = tail call i32 @soap_send(%struct.soap* %0, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
ret i32 %2
}
int getValue(void) { return 1; }


x86 assembly (clang, -O0):
<getValue>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<getValue>:
mov    $0x1,%eax
ret

LLVM IR (-O0):
define i32 @getValue() {
ret i32 1
}

LLVM IR (-O2):
define i32 @getValue() {
ret i32 1
}
/* Variables and functions */
int /*<<< orphan*/ assert(int);
int /*<<< orphan*/ strcpy(char *, char const *);
int strlen(char const *);
char toupper(char);
const char *Cap(const char *word) {
  static char buffer[100];
  assert(strlen(word) < sizeof buffer);
  strcpy(buffer, word);
  buffer[0] = toupper(buffer[0]);
  return buffer;
}


x86 assembly (clang, -O0):
<Cap>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <strlen@plt>
cltq
cmp    $0x64,%rax
setb   %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
mov    -0x8(%rbp),%rsi
lea    0x2edd(%rip),%rdi
call   1030 <strcpy@plt>
movsbl 0x2ed1(%rip),%edi
call   1040 <toupper@plt>
mov    %al,0x2ec6(%rip)
lea    0x2ebf(%rip),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Cap>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
call   1050 <strlen@plt>
xor    %edi,%edi
cmp    $0x64,%eax
setb   %dil
call   1060 <assert@plt>
lea    0x2eef(%rip),%r14
mov    %r14,%rdi
mov    %rbx,%rsi
call   1030 <strcpy@plt>
movsbl 0x2edd(%rip),%edi
call   1040 <toupper@plt>
mov    %al,0x2ed2(%rip)
mov    %r14,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@Cap.buffer = internal global [100 x i8] zeroinitializer
define i8* @Cap(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @strlen(i8* %3)
%5 = sext i32 %4 to i64
%6 = icmp ult i64 %5, 100
%7 = zext i1 %6 to i32
%8 = call i32 @assert(i32 %7)
%9 = load i8*, i8** %2
%10 = call i32 @strcpy(i8* getelementptr inbounds ([100 x i8], [100 x i8]* @Cap.buffer, i64 0, i64 0), i8* %9)
%11 = load i8, i8* getelementptr inbounds ([100 x i8], [100 x i8]* @Cap.buffer, i64 0, i64 0)
%12 = call signext i8 @toupper(i8 signext %11)
store i8 %12, i8* getelementptr inbounds ([100 x i8], [100 x i8]* @Cap.buffer, i64 0, i64 0)
ret i8* getelementptr inbounds ([100 x i8], [100 x i8]* @Cap.buffer, i64 0, i64 0)
}

LLVM IR (-O2):
@Cap.buffer = internal global [100 x i8] zeroinitializer
define i8* @Cap(i8* %0) {
%2 = tail call i32 @strlen(i8* %0)
%3 = icmp ult i32 %2, 100
%4 = zext i1 %3 to i32
%5 = tail call i32 @assert(i32 %4)
%6 = tail call i32 @strcpy(i8* getelementptr inbounds ([100 x i8], [100 x i8]* @Cap.buffer, i64 0, i64 0), i8* %0)
%7 = load i8, i8* getelementptr inbounds ([100 x i8], [100 x i8]* @Cap.buffer, i64 0, i64 0)
%8 = tail call signext i8 @toupper(i8 signext %7)
store i8 %8, i8* getelementptr inbounds ([100 x i8], [100 x i8]* @Cap.buffer, i64 0, i64 0)
ret i8* getelementptr inbounds ([100 x i8], [100 x i8]* @Cap.buffer, i64 0, i64 0)
}
/* Variables and functions */
scalar_t__ strchr(char *, char);
int is_mark(char in) {
  if (strchr("-_.!~*'()", in))
    return 1;
  else
    return 0;
}


x86 assembly (clang, -O0):
<is_mark>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x5(%rbp)
lea    0xedb(%rip),%rdi
movsbl -0x5(%rbp),%esi
call   1030 <strchr@plt>
cmp    $0x0,%rax
je     1144 <is_mark+0x34>
movl   $0x1,-0x4(%rbp)
jmp    114b <is_mark+0x3b>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_mark>:
push   %rax
mov    %edi,%esi
lea    0xee6(%rip),%rdi
call   1030 <strchr@plt>
xor    %ecx,%ecx
test   %rax,%rax
setne  %cl
mov    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [10 x i8] c"-_.!~*'()\00"
define i32 @is_mark(i8 signext %0) {
%2 = alloca i32
%3 = alloca i8
store i8 %0, i8* %3
%4 = load i8, i8* %3
%5 = call i64 @strchr(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8 signext %4)
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 1, i32* %2
br label %9
8: ; preds = %1
store i32 0, i32* %2
br label %9
9: ; preds = %8, %7
%10 = load i32, i32* %2
ret i32 %10
}

LLVM IR (-O2):
@.str = [10 x i8] c"-_.!~*'()\00"
define i32 @is_mark(i8 signext %0) {
%2 = tail call i64 @strchr(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8 signext %0)
%3 = icmp ne i64 %2, 0
%4 = zext i1 %3 to i32
ret i32 %4
}
int a(int *p) {
  int y = *p;
  return y;
}


x86 assembly (clang, -O0):
<a>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<a>:
mov    (%rdi),%eax
ret

LLVM IR (-O0):
define i32 @a(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
store i32* %0, i32** %2
%4 = load i32*, i32** %2
%5 = load i32, i32* %4
store i32 %5, i32* %3
%6 = load i32, i32* %3
ret i32 %6
}

LLVM IR (-O2):
define i32 @a(i32* nocapture %0) {
%2 = load i32, i32* %0
ret i32 %2
}
void put1w(w, fd) int fd, w;
{
  if (write(fd, &w, sizeof(int)) != sizeof(int))
    ;
}


x86 assembly (clang, -O0):
<put1w>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x8(%rbp),%edi
lea    -0x4(%rbp),%rsi
mov    $0x4,%edx
mov    $0x0,%al
call   1030 <write@plt>
cltq
cmp    $0x4,%rax
je     1142 <put1w+0x32>
jmp    1142 <put1w+0x32>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<put1w>:
push   %rax
mov    %esi,%eax
mov    %edi,0x4(%rsp)
lea    0x4(%rsp),%rsi
mov    $0x4,%edx
mov    %eax,%edi
xor    %eax,%eax
call   1030 <write@plt>
pop    %rax
ret

LLVM IR (-O0):
define void @put1w(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = call i32 (i32, i32*, i64, ...) bitcast (i32 (...)* @write to i32 (i32, i32*, i64, ...)*)(i32 %5, i32* %3, i64 4)
%7 = sext i32 %6 to i64
%8 = icmp ne i64 %7, 4
br i1 %8, label %9, label %10
9: ; preds = %2
br label %10
10: ; preds = %9, %2
ret void
}

LLVM IR (-O2):
define void @put1w(i32 %0, i32 %1) {
%3 = alloca i32
store i32 %0, i32* %3
%4 = call i32 (i32, i32*, i64, ...) bitcast (i32 (...)* @write to i32 (i32, i32*, i64, ...)*)(i32 %1, i32* %3, i64 4)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ command_loop();
int main(int argc, char **argv) {
  command_loop();
  return 0;
}


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)
mov    $0x0,%al
call   1030 <command_loop@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <command_loop@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
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 (...) @command_loop()
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @command_loop()
ret i32 0
}
int DFQ(int *b, int num) {
  for (; *b; b++)
    if (*b == num || num > 33 || num == 0)
      return 0;
  return 1;
}


x86 assembly (clang, -O0):
<DFQ>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    -0x10(%rbp),%rax
cmpl   $0x0,(%rax)
je     115d <DFQ+0x5d>
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
cmp    -0x14(%rbp),%eax
je     113b <DFQ+0x3b>
cmpl   $0x21,-0x14(%rbp)
jg     113b <DFQ+0x3b>
cmpl   $0x0,-0x14(%rbp)
jne    1147 <DFQ+0x47>
movl   $0x0,-0x4(%rbp)
jmp    1164 <DFQ+0x64>
jmp    114c <DFQ+0x4c>
mov    -0x10(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x10(%rbp)
jmp    110b <DFQ+0xb>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<DFQ>:
mov    (%rdi),%ecx
mov    $0x1,%eax
test   %ecx,%ecx
je     112e <DFQ+0x2e>
test   %esi,%esi
je     112f <DFQ+0x2f>
cmp    $0x21,%esi
jg     112f <DFQ+0x2f>
add    $0x4,%rdi
nopl   0x0(%rax,%rax,1)
cmp    %esi,%ecx
je     112f <DFQ+0x2f>
mov    (%rdi),%ecx
add    $0x4,%rdi
test   %ecx,%ecx
jne    1120 <DFQ+0x20>
ret
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @DFQ(i32* %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32*
%5 = alloca i32
store i32* %0, i32** %4
store i32 %1, i32* %5
br label %6
6: ; preds = %23, %2
%7 = load i32*, i32** %4
%8 = load i32, i32* %7
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %26
10: ; preds = %6
%11 = load i32*, i32** %4
%12 = load i32, i32* %11
%13 = load i32, i32* %5
%14 = icmp eq i32 %12, %13
br i1 %14, label %21, label %15
15: ; preds = %10
%16 = load i32, i32* %5
%17 = icmp sgt i32 %16, 33
br i1 %17, label %21, label %18
18: ; preds = %15
%19 = load i32, i32* %5
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %18, %15, %10
store i32 0, i32* %3
br label %27
22: ; preds = %18
br label %23
23: ; preds = %22
%24 = load i32*, i32** %4
%25 = getelementptr inbounds i32, i32* %24, i32 1
store i32* %25, i32** %4
br label %6
26: ; preds = %6
store i32 1, i32* %3
br label %27
27: ; preds = %26, %21
%28 = load i32, i32* %3
ret i32 %28
}

LLVM IR (-O2):
define i32 @DFQ(i32* nocapture %0, i32 %1) {
%3 = load i32, i32* %0
%4 = icmp eq i32 %3, 0
br i1 %4, label %17, label %5
5: ; preds = %2
%6 = icmp sgt i32 %1, 33
%7 = icmp eq i32 %1, 0
%8 = or i1 %7, %6
br i1 %8, label %17, label %12
9: ; preds = %12
%10 = load i32, i32* %16
%11 = icmp eq i32 %10, 0
br i1 %11, label %17, label %12
12: ; preds = %5, %9
%13 = phi i32 [ %10, %9 ], [ %3, %5 ]
%14 = phi i32* [ %16, %9 ], [ %0, %5 ]
%15 = icmp eq i32 %13, %1
%16 = getelementptr inbounds i32, i32* %14, i64 1
br i1 %15, label %17, label %9
17: ; preds = %12, %9, %5, %2
%18 = phi i32 [ 1, %2 ], [ 0, %5 ], [ 1, %9 ], [ 0, %12 ]
ret i32 %18
}
/* Type definitions */
struct hardlink_entry {
  int dummy;
};
typedef int /*<<< orphan*/ ino_t;
typedef int /*<<< orphan*/ dev_t;

/* Variables and functions */
int memcmp(struct hardlink_entry const *const,
           struct hardlink_entry const *const, int);
int hardlink_entry_pcmp_src(const void *a, const void *b) {
  const struct hardlink_entry *const *hla = a;
  const struct hardlink_entry *const *hlb = b;
  return memcmp(*hla, *hlb, sizeof(dev_t) + sizeof(ino_t));
}


x86 assembly (clang, -O0):
<hardlink_entry_pcmp_src>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
mov    -0x20(%rbp),%rax
mov    (%rax),%rsi
mov    $0x8,%edx
call   1030 <memcmp@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<hardlink_entry_pcmp_src>:
mov    (%rdi),%rdi
mov    (%rsi),%rsi
mov    $0x8,%edx
jmp    1030 <memcmp@plt>

LLVM IR (-O0):
%struct.hardlink_entry = type { i32 }
define i32 @hardlink_entry_pcmp_src(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca %struct.hardlink_entry**
%6 = alloca %struct.hardlink_entry**
store i8* %0, i8** %3
store i8* %1, i8** %4
%7 = load i8*, i8** %3
%8 = bitcast i8* %7 to %struct.hardlink_entry**
store %struct.hardlink_entry** %8, %struct.hardlink_entry*** %5
%9 = load i8*, i8** %4
%10 = bitcast i8* %9 to %struct.hardlink_entry**
store %struct.hardlink_entry** %10, %struct.hardlink_entry*** %6
%11 = load %struct.hardlink_entry**, %struct.hardlink_entry*** %5
%12 = load %struct.hardlink_entry*, %struct.hardlink_entry** %11
%13 = load %struct.hardlink_entry**, %struct.hardlink_entry*** %6
%14 = load %struct.hardlink_entry*, %struct.hardlink_entry** %13
%15 = call i32 @memcmp(%struct.hardlink_entry* %12, %struct.hardlink_entry* %14, i32 8)
ret i32 %15
}

LLVM IR (-O2):
%struct.hardlink_entry = type { i32 }
define i32 @hardlink_entry_pcmp_src(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %0 to %struct.hardlink_entry**
%4 = bitcast i8* %1 to %struct.hardlink_entry**
%5 = load %struct.hardlink_entry*, %struct.hardlink_entry** %3
%6 = load %struct.hardlink_entry*, %struct.hardlink_entry** %4
%7 = tail call i32 @memcmp(%struct.hardlink_entry* %5, %struct.hardlink_entry* %6, i32 8)
ret i32 %7
}
unsigned int __attribute__((target("rdrnd"))) __x86_rdrand(void) {
  unsigned int retries = 100;
  unsigned int val;
  while (__builtin_ia32_rdrand32_step(&val) == 0)
    if (--retries == 0)
      return 0;
  return val;
}


x86 assembly (clang, -O0):
<__x86_rdrand>:
push   %rbp
mov    %rsp,%rbp
movl   $0x64,-0x8(%rbp)
rdrand %ecx
mov    $0x1,%edx
mov    %ecx,%eax
cmovb  %edx,%eax
mov    %ecx,-0xc(%rbp)
cmp    $0x0,%eax
jne    1147 <__x86_rdrand+0x47>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
cmp    $0x0,%eax
jne    1142 <__x86_rdrand+0x42>
movl   $0x0,-0x4(%rbp)
jmp    114d <__x86_rdrand+0x4d>
jmp    110b <__x86_rdrand+0xb>
mov    -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<__x86_rdrand>:
mov    $0xffffff9c,%ecx
cs nopw 0x0(%rax,%rax,1)
nop
rdrand %eax
jb     1130 <__x86_rdrand+0x30>
rdrand %eax
jb     1130 <__x86_rdrand+0x30>
rdrand %eax
jb     1130 <__x86_rdrand+0x30>
rdrand %eax
jb     1130 <__x86_rdrand+0x30>
rdrand %eax
jb     1130 <__x86_rdrand+0x30>
add    $0x5,%ecx
jne    1110 <__x86_rdrand+0x10>
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @__x86_rdrand() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 100, i32* %2
br label %4
4: ; preds = %14, %0
%5 = call { i32, i32 } @llvm.x86.rdrand.32()
%6 = extractvalue { i32, i32 } %5, 0
store i32 %6, i32* %3
%7 = extractvalue { i32, i32 } %5, 1
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %15
9: ; preds = %4
%10 = load i32, i32* %2
%11 = add i32 %10, -1
store i32 %11, i32* %2
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %9
store i32 0, i32* %1
br label %17
14: ; preds = %9
br label %4
15: ; preds = %4
%16 = load i32, i32* %3
store i32 %16, i32* %1
br label %17
17: ; preds = %15, %13
%18 = load i32, i32* %1
ret i32 %18
}

LLVM IR (-O2):
define i32 @__x86_rdrand() {
br label %1
1: ; preds = %22, %0
%2 = phi i32 [ 100, %0 ], [ %23, %22 ]
%3 = tail call { i32, i32 } @llvm.x86.rdrand.32()
%4 = extractvalue { i32, i32 } %3, 1
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %25
6: ; preds = %1
%7 = tail call { i32, i32 } @llvm.x86.rdrand.32()
%8 = extractvalue { i32, i32 } %7, 1
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %25
10: ; preds = %6
%11 = tail call { i32, i32 } @llvm.x86.rdrand.32()
%12 = extractvalue { i32, i32 } %11, 1
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %25
14: ; preds = %10
%15 = tail call { i32, i32 } @llvm.x86.rdrand.32()
%16 = extractvalue { i32, i32 } %15, 1
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %25
18: ; preds = %14
%19 = tail call { i32, i32 } @llvm.x86.rdrand.32()
%20 = extractvalue { i32, i32 } %19, 1
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %18
%23 = add nsw i32 %2, -5
%24 = icmp eq i32 %23, 0
br i1 %24, label %28, label %1
25: ; preds = %18, %14, %10, %6, %1
%26 = phi { i32, i32 } [ %3, %1 ], [ %7, %6 ], [ %11, %10 ], [ %15, %14 ], [ %19, %18 ]
%27 = extractvalue { i32, i32 } %26, 0
br label %28
28: ; preds = %22, %25
%29 = phi i32 [ %27, %25 ], [ 0, %22 ]
ret i32 %29
}
/* Type definitions */
struct timeval {
  scalar_t__ tv_usec;
  scalar_t__ tv_sec;
};

/* Variables and functions */
int /*<<< orphan*/ gettimeofday(struct timeval *, int /*<<< orphan*/ *);
double get_ms_time() {
  struct timeval t;
  gettimeofday(&t, NULL);
  return (double)t.tv_sec * 1000 + (double)t.tv_usec / 1000;
}


x86 assembly (clang, -O0):
<get_ms_time>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    -0x10(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <gettimeofday@plt>
cvtsi2sdq -0x8(%rbp),%xmm0
cvtsi2sdq -0x10(%rbp),%xmm1
movsd  0xec7(%rip),%xmm2
divsd  %xmm2,%xmm1
movsd  0xebb(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_ms_time>:
sub    $0x18,%rsp
lea    0x8(%rsp),%rdi
xor    %esi,%esi
call   1030 <gettimeofday@plt>
cvtsi2sdq 0x10(%rsp),%xmm0
cvtsi2sdq 0x8(%rsp),%xmm1
movsd  0xeca(%rip),%xmm2
divsd  %xmm2,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
%struct.timeval = type { i64, i64 }
define double @get_ms_time() {
%1 = alloca %struct.timeval
%2 = call i32 @gettimeofday(%struct.timeval* %1, i32* null)
%3 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i32 0, i32 1
%4 = load i64, i64* %3
%5 = sitofp i64 %4 to double
%6 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i32 0, i32 0
%7 = load i64, i64* %6
%8 = sitofp i64 %7 to double
%9 = fdiv double %8, 1.000000e+03
%10 = call double @llvm.fmuladd.f64(double %5, double 1.000000e+03, double %9)
ret double %10
}

LLVM IR (-O2):
%struct.timeval = type { i64, i64 }
define double @get_ms_time() {
%1 = alloca %struct.timeval
%2 = bitcast %struct.timeval* %1 to i8*
%3 = call i32 @gettimeofday(%struct.timeval* %1, i32* null)
%4 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 1
%5 = load i64, i64* %4
%6 = sitofp i64 %5 to double
%7 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 0
%8 = load i64, i64* %7
%9 = sitofp i64 %8 to double
%10 = fdiv double %9, 1.000000e+03
%11 = tail call double @llvm.fmuladd.f64(double %6, double 1.000000e+03, double %10)
ret double %11
}
/* Variables and functions */
int /*<<< orphan*/ puts(char *);
void version() { puts("itrace - version dev"); }


x86 assembly (clang, -O0):
<version>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <puts@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<version>:
lea    0xee9(%rip),%rdi
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [21 x i8] c"itrace - version dev\00"
define void @version() {
%1 = call i32 @puts(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [21 x i8] c"itrace - version dev\00"
define void @version() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ puts(char const *);
void ___help() {
  const char h[] = ""
                   "--h                print this help\r\n"
                   "--t                test mode\r\n"
                   "--c config_file    continue load config\r\n"
                   "--o key=value      update config\r\n"
                   "--chdir path       change work path\r\n"
                   "--chroot path      change root\r\n"
                   "--chuser user      change root\r\n"
                   "--module name\r\n";
  puts(h);
}


x86 assembly (clang, -O0):
<___help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x110,%rsp
lea    -0x110(%rbp),%rdi
lea    0xec7(%rip),%rsi
mov    $0x102,%edx
call   1040 <memcpy@plt>
lea    -0x110(%rbp),%rdi
call   1030 <puts@plt>
add    $0x110,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<___help>:
push   %rbx
sub    $0x110,%rsp
lea    0xed1(%rip),%rsi
mov    %rsp,%rbx
mov    $0x102,%edx
mov    %rbx,%rdi
call   1040 <memcpy@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
add    $0x110,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.___help.h = [258 x i8] c"--h print this help\0D\0A--t test mode\0D\0A--c config_file continue load config\0D\0A--o key=value update config\0D\0A--chdir path change work path\0D\0A--chroot path change root\0D\0A--chuser user change root\0D\0A--module name\0D\0A\00"
define void @___help() {
%1 = alloca [258 x i8]
%2 = bitcast [258 x i8]* %1 to i8*
%3 = getelementptr inbounds [258 x i8], [258 x i8]* %1, i64 0, i64 0
%4 = call i32 @puts(i8* %3)
ret void
}

LLVM IR (-O2):
@__const.___help.h = [258 x i8] c"--h print this help\0D\0A--t test mode\0D\0A--c config_file continue load config\0D\0A--o key=value update config\0D\0A--chdir path change work path\0D\0A--chroot path change root\0D\0A--chuser user change root\0D\0A--module name\0D\0A\00"
define void @___help() {
%1 = alloca [258 x i8]
%2 = getelementptr inbounds [258 x i8], [258 x i8]* %1, i64 0, i64 0
%3 = call i32 @puts(i8* %2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
int usage(void) {
  fprintf(stderr, "usage: syren [r/w] [REGNAME | page:addr] (value)\n");
  return 1;
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    0x2ec8(%rip),%rax
mov    (%rax),%edi
lea    0xedf(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [50 x i8] c"usage: syren [r/w] [REGNAME | page:addr] (value)\0A\00"
define i32 @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0))
ret i32 1
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [50 x i8] c"usage: syren [r/w] [REGNAME | page:addr] (value)\0A\00"
define i32 @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0))
ret i32 1
}
/* Variables and functions */
int EXIT_SUCCESS;
int /*<<< orphan*/ printf(char *);
int reset(int argc, char *argv[]) {
  printf("RESET NOT SUPPORTED ON ARM\n");
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<reset>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xeda(%rip),%rdi
call   1030 <printf@plt>
mov    0x2eae(%rip),%rax
mov    (%rax),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<reset>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
mov    0x2ebc(%rip),%rax
mov    (%rax),%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [28 x i8] c"RESET NOT SUPPORTED ON ARM\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @reset(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
%6 = load i32, i32* @EXIT_SUCCESS
ret i32 %6
}

LLVM IR (-O2):
@EXIT_SUCCESS = global i32 0
@str = [27 x i8] c"RESET NOT SUPPORTED ON ARM\00"
define i32 @reset(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str, i64 0, i64 0))
%4 = load i32, i32* @EXIT_SUCCESS
ret i32 %4
}
/* Type definitions */
typedef int /*<<< orphan*/ int32_t;

/* Variables and functions */
void *Get_Addr(int /*<<< orphan*/ *, int /*<<< orphan*/);
void *Abs_Get_Addr(int32_t address) { return Get_Addr(NULL, address); }


x86 assembly (clang, -O0):
<Abs_Get_Addr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%esi
xor    %eax,%eax
mov    %eax,%edi
call   1030 <Get_Addr@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Abs_Get_Addr>:
mov    %edi,%esi
xor    %edi,%edi
jmp    1030 <Get_Addr@plt>

LLVM IR (-O0):
define i8* @Abs_Get_Addr(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i8* @Get_Addr(i32* null, i32 %3)
ret i8* %4
}

LLVM IR (-O2):
define i8* @Abs_Get_Addr(i32 %0) {
%2 = tail call i8* @Get_Addr(i32* null, i32 %0)
ret i8* %2
}
void PIRAmplifierStage1_RestoreConfig(void) {}


x86 assembly (clang, -O0):
<PIRAmplifierStage1_RestoreConfig>:
push   %rbp
mov    %rsp,%rbp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PIRAmplifierStage1_RestoreConfig>:
ret

LLVM IR (-O0):
define void @PIRAmplifierStage1_RestoreConfig() {
ret void
}

LLVM IR (-O2):
define void @PIRAmplifierStage1_RestoreConfig() {
ret void
}
/* Variables and functions */
scalar_t__ is_crlf(int);
int is_crlfcrlf(int bytes) {
  int result = is_crlf(bytes) && is_crlf(bytes >> 16);
  return result;
}


x86 assembly (clang, -O0):
<is_crlfcrlf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <is_crlf@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x9(%rbp)
je     114a <is_crlfcrlf+0x3a>
mov    -0x4(%rbp),%edi
sar    $0x10,%edi
call   1030 <is_crlf@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_crlfcrlf>:
push   %rbx
mov    %edi,%ebx
call   1030 <is_crlf@plt>
test   %rax,%rax
je     1134 <is_crlfcrlf+0x24>
sar    $0x10,%ebx
mov    %ebx,%edi
call   1030 <is_crlf@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
setne  %al
pop    %rbx
ret
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @is_crlfcrlf(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = call i64 @is_crlf(i32 %4)
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %12
7: ; preds = %1
%8 = load i32, i32* %2
%9 = ashr i32 %8, 16
%10 = call i64 @is_crlf(i32 %9)
%11 = icmp ne i64 %10, 0
br label %12
12: ; preds = %7, %1
%13 = phi i1 [ false, %1 ], [ %11, %7 ]
%14 = zext i1 %13 to i32
store i32 %14, i32* %3
%15 = load i32, i32* %3
ret i32 %15
}

LLVM IR (-O2):
define i32 @is_crlfcrlf(i32 %0) {
%2 = tail call i64 @is_crlf(i32 %0)
%3 = icmp eq i64 %2, 0
br i1 %3, label %9, label %4
4: ; preds = %1
%5 = ashr i32 %0, 16
%6 = tail call i64 @is_crlf(i32 %5)
%7 = icmp ne i64 %6, 0
%8 = zext i1 %7 to i32
br label %9
9: ; preds = %4, %1
%10 = phi i32 [ 0, %1 ], [ %8, %4 ]
ret i32 %10
}
/* Type definitions */
typedef int /*<<< orphan*/ wint_t;
typedef int /*<<< orphan*/ locale_t;

/* Variables and functions */
int iswpunct(int /*<<< orphan*/);
int __iswpunct_l(wint_t c, locale_t l) { return iswpunct(c); }


x86 assembly (clang, -O0):
<__iswpunct_l>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <iswpunct@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__iswpunct_l>:
jmp    1030 <iswpunct@plt>

LLVM IR (-O0):
define i32 @__iswpunct_l(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = call i32 @iswpunct(i32 %5)
ret i32 %6
}

LLVM IR (-O2):
define i32 @__iswpunct_l(i32 %0, i32 %1) {
%3 = tail call i32 @iswpunct(i32 %0)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main(int argc, char *argv[]) {
  if (argc > 2) {
    printf("This is a triangle");
  }
  return 0;
}


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)
cmpl   $0x2,-0x8(%rbp)
jle    113c <main+0x2c>
lea    0xec9(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
cmp    $0x3,%edi
jl     1126 <main+0x16>
push   %rax
lea    0xee3(%rip),%rdi
call   1030 <printf@plt>
add    $0x8,%rsp
xor    %eax,%eax
ret

LLVM IR (-O0):
@.str = [19 x i8] c"This is a triangle\00"
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 = load i32, i32* %4
%7 = icmp sgt i32 %6, 2
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
br label %10
10: ; preds = %8, %2
ret i32 0
}

LLVM IR (-O2):
@.str = [19 x i8] c"This is a triangle\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = icmp sgt i32 %0, 2
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
br label %6
6: ; preds = %4, %2
ret i32 0
}
void R_StoreGLSLPrecacheList(void) {}


x86 assembly (clang, -O0):
<R_StoreGLSLPrecacheList>:
push   %rbp
mov    %rsp,%rbp
pop    %rbp
ret

x86 assembly (clang, -O2):
<R_StoreGLSLPrecacheList>:
ret

LLVM IR (-O0):
define void @R_StoreGLSLPrecacheList() {
ret void
}

LLVM IR (-O2):
define void @R_StoreGLSLPrecacheList() {
ret void
}
void XGetFontPath() {}


x86 assembly (clang, -O0):
<XGetFontPath>:
push   %rbp
mov    %rsp,%rbp
pop    %rbp
ret

x86 assembly (clang, -O2):
<XGetFontPath>:
ret

LLVM IR (-O0):
define void @XGetFontPath() {
ret void
}

LLVM IR (-O2):
define void @XGetFontPath() {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ __u32;

/* Variables and functions */
int /*<<< orphan*/ crush_hash32_rjenkins1_4(int /*<<< orphan*/,
                                            int /*<<< orphan*/,
                                            int /*<<< orphan*/,
                                            int /*<<< orphan*/);
__u32 crush_hash32_4(int type, __u32 a, __u32 b, __u32 c, __u32 d) {
  switch (type) {
  case 0:
    return crush_hash32_rjenkins1_4(a, b, c, d);
  default:
    return 0;
  }
}


x86 assembly (clang, -O0):
<crush_hash32_4>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8d,-0x18(%rbp)
mov    -0x8(%rbp),%eax
test   %eax,%eax
jne    1151 <crush_hash32_4+0x41>
jmp    1138 <crush_hash32_4+0x28>
mov    -0xc(%rbp),%edi
mov    -0x10(%rbp),%esi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
call   1030 <crush_hash32_rjenkins1_4@plt>
mov    %eax,-0x4(%rbp)
jmp    1158 <crush_hash32_4+0x48>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<crush_hash32_4>:
test   %edi,%edi
je     1117 <crush_hash32_4+0x7>
xor    %eax,%eax
ret
mov    %esi,%edi
mov    %edx,%esi
mov    %ecx,%edx
mov    %r8d,%ecx
jmp    1030 <crush_hash32_rjenkins1_4@plt>

LLVM IR (-O0):
define i32 @crush_hash32_4(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
store i32 %0, i32* %7
store i32 %1, i32* %8
store i32 %2, i32* %9
store i32 %3, i32* %10
store i32 %4, i32* %11
%12 = load i32, i32* %7
switch i32 %12, label %19 [
i32 0, label %13
]
13: ; preds = %5
%14 = load i32, i32* %8
%15 = load i32, i32* %9
%16 = load i32, i32* %10
%17 = load i32, i32* %11
%18 = call i32 @crush_hash32_rjenkins1_4(i32 %14, i32 %15, i32 %16, i32 %17)
store i32 %18, i32* %6
br label %20
19: ; preds = %5
store i32 0, i32* %6
br label %20
20: ; preds = %19, %13
%21 = load i32, i32* %6
ret i32 %21
}

LLVM IR (-O2):
define i32 @crush_hash32_4(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = icmp eq i32 %0, 0
br i1 %6, label %7, label %9
7: ; preds = %5
%8 = tail call i32 @crush_hash32_rjenkins1_4(i32 %1, i32 %2, i32 %3, i32 %4)
br label %9
9: ; preds = %5, %7
%10 = phi i32 [ %8, %7 ], [ 0, %5 ]
ret i32 %10
}
/* Variables and functions */
int /*<<< orphan*/ arm_int(int, int);
void t16_svc() { arm_int(0x08, 0b10011); }


x86 assembly (clang, -O0):
<t16_svc>:
push   %rbp
mov    %rsp,%rbp
mov    $0x8,%edi
mov    $0x13,%esi
call   1030 <arm_int@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<t16_svc>:
mov    $0x8,%edi
mov    $0x13,%esi
jmp    1030 <arm_int@plt>

LLVM IR (-O0):
define void @t16_svc() {
%1 = call i32 @arm_int(i32 8, i32 19)
ret void
}

LLVM IR (-O2):
define void @t16_svc() {
%1 = tail call i32 @arm_int(i32 8, i32 19)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ addbyte(int);
void OR_HOST_REG_L(int dst_reg, int src_reg) {
  addbyte(0x09);
  addbyte(0xc0 | dst_reg | (src_reg << 3));
}


x86 assembly (clang, -O0):
<OR_HOST_REG_L>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    $0x9,%edi
call   1030 <addbyte@plt>
mov    -0x4(%rbp),%edi
or     $0xc0,%edi
mov    -0x8(%rbp),%eax
shl    $0x3,%eax
or     %eax,%edi
call   1030 <addbyte@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<OR_HOST_REG_L>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %edi,%ebp
mov    $0x9,%edi
call   1030 <addbyte@plt>
shl    $0x3,%ebx
or     %ebp,%ebx
or     $0xc0,%ebx
mov    %ebx,%edi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <addbyte@plt>

LLVM IR (-O0):
define void @OR_HOST_REG_L(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = call i32 @addbyte(i32 9)
%6 = load i32, i32* %3
%7 = or i32 192, %6
%8 = load i32, i32* %4
%9 = shl i32 %8, 3
%10 = or i32 %7, %9
%11 = call i32 @addbyte(i32 %10)
ret void
}

LLVM IR (-O2):
define void @OR_HOST_REG_L(i32 %0, i32 %1) {
%3 = tail call i32 @addbyte(i32 9)
%4 = shl i32 %1, 3
%5 = or i32 %4, %0
%6 = or i32 %5, 192
%7 = tail call i32 @addbyte(i32 %6)
ret void
}
/* Variables and functions */
float atan2(float const, float const);
void floats_mat44_to_xyt(const float M[16], float xyt[3]) {
  xyt[0] = M[3];
  xyt[1] = M[7];
  xyt[2] = atan2(M[4], M[0]);
}


x86 assembly (clang, -O0):
<floats_mat44_to_xyt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movss  0xc(%rax),%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
movss  0x1c(%rax),%xmm0
mov    -0x10(%rbp),%rax
movss  %xmm0,0x4(%rax)
mov    -0x8(%rbp),%rax
movss  0x10(%rax),%xmm0
mov    -0x8(%rbp),%rax
movss  (%rax),%xmm1
call   1030 <atan2@plt>
mov    -0x10(%rbp),%rax
movss  %xmm0,0x8(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<floats_mat44_to_xyt>:
push   %rbx
mov    %rsi,%rbx
movss  0xc(%rdi),%xmm0
movss  %xmm0,(%rsi)
movss  0x1c(%rdi),%xmm0
movss  %xmm0,0x4(%rsi)
movss  (%rdi),%xmm1
movss  0x10(%rdi),%xmm0
call   1030 <atan2@plt>
movss  %xmm0,0x8(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @floats_mat44_to_xyt(float* %0, float* %1) {
%3 = alloca float*
%4 = alloca float*
store float* %0, float** %3
store float* %1, float** %4
%5 = load float*, float** %3
%6 = getelementptr inbounds float, float* %5, i64 3
%7 = load float, float* %6
%8 = load float*, float** %4
%9 = getelementptr inbounds float, float* %8, i64 0
store float %7, float* %9
%10 = load float*, float** %3
%11 = getelementptr inbounds float, float* %10, i64 7
%12 = load float, float* %11
%13 = load float*, float** %4
%14 = getelementptr inbounds float, float* %13, i64 1
store float %12, float* %14
%15 = load float*, float** %3
%16 = getelementptr inbounds float, float* %15, i64 4
%17 = load float, float* %16
%18 = load float*, float** %3
%19 = getelementptr inbounds float, float* %18, i64 0
%20 = load float, float* %19
%21 = call float @atan2(float %17, float %20)
%22 = load float*, float** %4
%23 = getelementptr inbounds float, float* %22, i64 2
store float %21, float* %23
ret void
}

LLVM IR (-O2):
define void @floats_mat44_to_xyt(float* nocapture %0, float* nocapture writeonly %1) {
%3 = getelementptr inbounds float, float* %0, i64 3
%4 = load float, float* %3
store float %4, float* %1
%5 = getelementptr inbounds float, float* %0, i64 7
%6 = load float, float* %5
%7 = getelementptr inbounds float, float* %1, i64 1
store float %6, float* %7
%8 = getelementptr inbounds float, float* %0, i64 4
%9 = load float, float* %8
%10 = load float, float* %0
%11 = tail call float @atan2(float %9, float %10)
%12 = getelementptr inbounds float, float* %1, i64 2
store float %11, float* %12
ret void
}
int genscript_main(int argc, char **argv) { return 0; }


x86 assembly (clang, -O0):
<genscript_main>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<genscript_main>:
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @genscript_main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
ret i32 0
}

LLVM IR (-O2):
define i32 @genscript_main(i32 %0, i8** nocapture readnone %1) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ genIdentityMatrix(float *);
void genTranslateMatrix(float x, float y, float z, float matrix[16]) {
  genIdentityMatrix(matrix);
  matrix[12] = x;
  matrix[13] = y;
  matrix[14] = z;
}


x86 assembly (clang, -O0):
<genTranslateMatrix>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
mov    %rdi,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1030 <genIdentityMatrix@plt>
movss  -0x4(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movss  %xmm0,0x30(%rax)
movss  -0x8(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movss  %xmm0,0x34(%rax)
movss  -0xc(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movss  %xmm0,0x38(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<genTranslateMatrix>:
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
movss  %xmm2,0xc(%rsp)
movss  %xmm1,0x8(%rsp)
movss  %xmm0,0x4(%rsp)
call   1030 <genIdentityMatrix@plt>
movss  0x4(%rsp),%xmm0
movss  %xmm0,0x30(%rbx)
movss  0x8(%rsp),%xmm0
movss  %xmm0,0x34(%rbx)
movss  0xc(%rsp),%xmm0
movss  %xmm0,0x38(%rbx)
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define void @genTranslateMatrix(float %0, float %1, float %2, float* %3) {
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float*
store float %0, float* %5
store float %1, float* %6
store float %2, float* %7
store float* %3, float** %8
%9 = load float*, float** %8
%10 = call i32 @genIdentityMatrix(float* %9)
%11 = load float, float* %5
%12 = load float*, float** %8
%13 = getelementptr inbounds float, float* %12, i64 12
store float %11, float* %13
%14 = load float, float* %6
%15 = load float*, float** %8
%16 = getelementptr inbounds float, float* %15, i64 13
store float %14, float* %16
%17 = load float, float* %7
%18 = load float*, float** %8
%19 = getelementptr inbounds float, float* %18, i64 14
store float %17, float* %19
ret void
}

LLVM IR (-O2):
define void @genTranslateMatrix(float %0, float %1, float %2, float* %3) {
%5 = tail call i32 @genIdentityMatrix(float* %3)
%6 = getelementptr inbounds float, float* %3, i64 12
store float %0, float* %6
%7 = getelementptr inbounds float, float* %3, i64 13
store float %1, float* %7
%8 = getelementptr inbounds float, float* %3, i64 14
store float %2, float* %8
ret void
}
/* Variables and functions */
int /*<<< orphan*/ step_hash(int);
int func_60(unsigned p_61, short p_62) {
  unsigned char l_73 = 0UL;
  step_hash(10);
  l_73 = p_61;
  step_hash(11);
  return p_61;
}


x86 assembly (clang, -O0):
<func_60>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %si,%ax
mov    %edi,-0x4(%rbp)
mov    %ax,-0x6(%rbp)
movb   $0x0,-0x7(%rbp)
mov    $0xa,%edi
call   1030 <step_hash@plt>
mov    -0x4(%rbp),%eax
mov    %al,-0x7(%rbp)
mov    $0xb,%edi
call   1030 <step_hash@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<func_60>:
push   %rbx
mov    %edi,%ebx
mov    $0xa,%edi
call   1030 <step_hash@plt>
mov    $0xb,%edi
call   1030 <step_hash@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @func_60(i32 %0, i16 signext %1) {
%3 = alloca i32
%4 = alloca i16
%5 = alloca i8
store i32 %0, i32* %3
store i16 %1, i16* %4
store i8 0, i8* %5
%6 = call i32 @step_hash(i32 10)
%7 = load i32, i32* %3
%8 = trunc i32 %7 to i8
store i8 %8, i8* %5
%9 = call i32 @step_hash(i32 11)
%10 = load i32, i32* %3
ret i32 %10
}

LLVM IR (-O2):
define i32 @func_60(i32 returned %0, i16 signext %1) {
%3 = tail call i32 @step_hash(i32 10)
%4 = tail call i32 @step_hash(i32 11)
ret i32 %0
}
void gtk_file_chooser_get_type() {}


x86 assembly (clang, -O0):
<gtk_file_chooser_get_type>:
push   %rbp
mov    %rsp,%rbp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gtk_file_chooser_get_type>:
ret

LLVM IR (-O0):
define void @gtk_file_chooser_get_type() {
ret void
}

LLVM IR (-O2):
define void @gtk_file_chooser_get_type() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void characterset_test() { printf("HelloÍÛ£¬·¹ÒÑOKÁË£¬ÏÂÀ´¤á¤·°É£¡\n"); }


x86 assembly (clang, -O0):
<characterset_test>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<characterset_test>:
lea    0xee9(%rip),%rdi
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [57 x i8] c"Hello\C3\8D\C3\9B\C2\A3\C2\AC\C2\B7\C2\B9\C3\92\C3\91OK\C3\81\C3\8B\C2\A3\C2\AC\C3\8F\C3\82\C3\80\C2\B4\C2\A4\C3\A1\C2\A4\C2\B7\C2\B0\C3\89\C2\A3\C2\A1\0A\00"
define void @characterset_test() {
%1 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [56 x i8] c"Hello\C3\8D\C3\9B\C2\A3\C2\AC\C2\B7\C2\B9\C3\92\C3\91OK\C3\81\C3\8B\C2\A3\C2\AC\C3\8F\C3\82\C3\80\C2\B4\C2\A4\C3\A1\C2\A4\C2\B7\C2\B0\C3\89\C2\A3\C2\A1\00"
define void @characterset_test() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
scalar_t__ create_file_via_path(char *, char);
int /*<<< orphan*/ printf(char *, char *);
int mkdir(char *path) {
  if (create_file_via_path(path, 'd') == 0)
    return 0;
  printf("Mkdir succeeded: %s\n", path);
  return 1;
}


x86 assembly (clang, -O0):
<mkdir>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x64,%esi
call   1040 <create_file_via_path@plt>
cmp    $0x0,%rax
jne    1150 <mkdir+0x30>
movl   $0x0,-0x4(%rbp)
jmp    1167 <mkdir+0x47>
mov    -0x10(%rbp),%rsi
lea    0xea5(%rip),%rdi
call   1030 <printf@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mkdir>:
push   %rbx
mov    %rdi,%rbx
mov    $0x64,%esi
call   1040 <create_file_via_path@plt>
test   %rax,%rax
je     1149 <mkdir+0x29>
lea    0xec6(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
mov    $0x1,%eax
pop    %rbx
ret
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [21 x i8] c"Mkdir succeeded: %s\0A\00"
define i32 @mkdir(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = call i64 @create_file_via_path(i8* %4, i8 signext 100)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 0, i32* %2
br label %11
8: ; preds = %1
%9 = load i8*, i8** %3
%10 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* %9)
store i32 1, i32* %2
br label %11
11: ; preds = %8, %7
%12 = load i32, i32* %2
ret i32 %12
}

LLVM IR (-O2):
@.str = [21 x i8] c"Mkdir succeeded: %s\0A\00"
define i32 @mkdir(i8* %0) {
%2 = tail call i64 @create_file_via_path(i8* %0, i8 signext 100)
%3 = icmp eq i64 %2, 0
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* %0)
br label %6
6: ; preds = %1, %4
%7 = phi i32 [ 1, %4 ], [ 0, %1 ]
ret i32 %7
}