xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ __VERIFIER_assert(int);
int main() {
  int x, y;
  int a[10];
  x = 1;
  while (x <= 10) {
    y = 10 - x;
    if (y < 0 || y >= 10)
      __VERIFIER_assert(0 == 1);
    a[y] = -1;
    x++;
  }
  return 1;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jg     1170 <main+0x60>
mov    $0xa,%eax
sub    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jl     114f <main+0x3f>
cmpl   $0xa,-0xc(%rbp)
jl     1156 <main+0x46>
xor    %edi,%edi
call   1030 <__VERIFIER_assert@plt>
movslq -0xc(%rbp),%rax
movl   $0xffffffff,-0x40(%rbp,%rax,4)
ff
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1126 <main+0x16>
mov    $0x1,%eax
add    $0x40,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [10 x i32]
store i32 0, i32* %1
store i32 1, i32* %2
br label %5
5: ; preds = %18, %0
%6 = load i32, i32* %2
%7 = icmp sle i32 %6, 10
br i1 %7, label %8, label %24
8: ; preds = %5
%9 = load i32, i32* %2
%10 = sub nsw i32 10, %9
store i32 %10, i32* %3
%11 = load i32, i32* %3
%12 = icmp slt i32 %11, 0
br i1 %12, label %16, label %13
13: ; preds = %8
%14 = load i32, i32* %3
%15 = icmp sge i32 %14, 10
br i1 %15, label %16, label %18
16: ; preds = %13, %8
%17 = call i32 @__VERIFIER_assert(i32 0)
br label %18
18: ; preds = %16, %13
%19 = load i32, i32* %3
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 %20
store i32 -1, i32* %21
%22 = load i32, i32* %2
%23 = add nsw i32 %22, 1
store i32 %23, i32* %2
br label %5
24: ; preds = %5
ret i32 1
}

LLVM IR (-O2):
define i32 @main() {
ret i32 1
}
/* Variables and functions */
int /*<<< orphan*/ foo(void *);
long ilongxor(long x, long y) {
  x ^= 24;
  if (!x)
    foo((void *)0);
  return x;
}


x86 assembly (clang, -O0):
<ilongxor>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
xor    $0x18,%rax
mov    %rax,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    1140 <ilongxor+0x30>
xor    %eax,%eax
mov    %eax,%edi
call   1030 <foo@plt>
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ilongxor>:
push   %rbx
mov    %rdi,%rbx
xor    $0x18,%rbx
jne    1121 <ilongxor+0x11>
xor    %edi,%edi
call   1030 <foo@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define i64 @ilongxor(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%5 = load i64, i64* %3
%6 = xor i64 %5, 24
store i64 %6, i64* %3
%7 = load i64, i64* %3
%8 = icmp ne i64 %7, 0
br i1 %8, label %11, label %9
9: ; preds = %2
%10 = call i32 @foo(i8* null)
br label %11
11: ; preds = %9, %2
%12 = load i64, i64* %3
ret i64 %12
}

LLVM IR (-O2):
define i64 @ilongxor(i64 %0, i64 %1) {
%3 = xor i64 %0, 24
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call i32 @foo(i8* null)
br label %7
7: ; preds = %5, %2
ret i64 %3
}
/* Variables and functions */
int virt_chdir(char const *, int /*<<< orphan*/);
int chdir(const char *path) { return virt_chdir(path, 0); }


x86 assembly (clang, -O0):
<chdir>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
xor    %esi,%esi
call   1030 <virt_chdir@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<chdir>:
xor    %esi,%esi
jmp    1030 <virt_chdir@plt>

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

LLVM IR (-O2):
define i32 @chdir(i8* %0) {
%2 = tail call i32 @virt_chdir(i8* %0, i32 0)
ret i32 %2
}
/* Type definitions */
typedef int uint64_t;
typedef scalar_t__ uint32_t;

/* Variables and functions */
uintptr_t search_rsdp(uint32_t start_addr, uint32_t end_addr) {
  uint64_t *rsdp_p;
  for (rsdp_p = (uint64_t *)start_addr; rsdp_p < (uint64_t *)end_addr;
       rsdp_p += 2) {
    if (*rsdp_p == 0x2052545020445352LL) {
      return (uintptr_t)rsdp_p;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<search_rsdp>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
mov    -0x18(%rbp),%rcx
cmp    %rcx,%rax
jae    1162 <search_rsdp+0x62>
mov    -0x20(%rbp),%rax
movslq (%rax),%rax
movabs $0x2052545020445352,%rcx
54 52 20
cmp    %rcx,%rax
jne    114c <search_rsdp+0x4c>
mov    -0x20(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    116a <search_rsdp+0x6a>
jmp    1151 <search_rsdp+0x51>
mov    -0x20(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x20(%rbp)
jmp    1114 <search_rsdp+0x14>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i64 @search_rsdp(i64 %0, i64 %1) {
ret i64 0
}
void gtk_ui_manager_get_ui() {}


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

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

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

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

/* Variables and functions */
int fseeko(int /*<<< orphan*/ *, long, int);
int fseek(FILE *stream, long offset, int whence) {
  return fseeko(stream, offset, whence);
}


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

x86 assembly (clang, -O2):
<fseek>:
jmp    1030 <fseeko@plt>

LLVM IR (-O0):
define i32 @fseek(i32* %0, i64 %1, i32 %2) {
%4 = alloca i32*
%5 = alloca i64
%6 = alloca i32
store i32* %0, i32** %4
store i64 %1, i64* %5
store i32 %2, i32* %6
%7 = load i32*, i32** %4
%8 = load i64, i64* %5
%9 = load i32, i32* %6
%10 = call i32 @fseeko(i32* %7, i64 %8, i32 %9)
ret i32 %10
}

LLVM IR (-O2):
define i32 @fseek(i32* nocapture %0, i64 %1, i32 %2) {
%4 = tail call i32 @fseeko(i32* %0, i64 %1, i32 %2)
ret i32 %4
}
unsigned xrop3_150_0_0(unsigned char s, unsigned char t) {
  unsigned D = 0x00ff;
  unsigned S = ((unsigned)s << 8) | s;
  unsigned T = ((unsigned)t << 8) | t;
  unsigned stk1;
  unsigned stk2;
  stk2 = T ^ S;
  stk1 = D ^ stk2;
  return stk1;
}


x86 assembly (clang, -O0):
<xrop3_150_0_0>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %al,-0x2(%rbp)
movl   $0xff,-0x8(%rbp)
movzbl -0x1(%rbp),%eax
shl    $0x8,%eax
movzbl -0x1(%rbp),%ecx
or     %ecx,%eax
mov    %eax,-0xc(%rbp)
movzbl -0x2(%rbp),%eax
shl    $0x8,%eax
movzbl -0x2(%rbp),%ecx
or     %ecx,%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
xor    -0xc(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%eax
xor    -0x18(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<xrop3_150_0_0>:
mov    %edi,%ecx
shl    $0x8,%ecx
or     %edi,%ecx
mov    %esi,%eax
shl    $0x8,%eax
or     %esi,%eax
xor    %ecx,%eax
xor    $0xff,%eax
ret

LLVM IR (-O0):
define i32 @xrop3_150_0_0(i8 zeroext %0, i8 zeroext %1) {
%3 = alloca i8
%4 = alloca i8
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i8 %0, i8* %3
store i8 %1, i8* %4
store i32 255, i32* %5
%10 = load i8, i8* %3
%11 = zext i8 %10 to i32
%12 = shl i32 %11, 8
%13 = load i8, i8* %3
%14 = zext i8 %13 to i32
%15 = or i32 %12, %14
store i32 %15, i32* %6
%16 = load i8, i8* %4
%17 = zext i8 %16 to i32
%18 = shl i32 %17, 8
%19 = load i8, i8* %4
%20 = zext i8 %19 to i32
%21 = or i32 %18, %20
store i32 %21, i32* %7
%22 = load i32, i32* %7
%23 = load i32, i32* %6
%24 = xor i32 %22, %23
store i32 %24, i32* %9
%25 = load i32, i32* %5
%26 = load i32, i32* %9
%27 = xor i32 %25, %26
store i32 %27, i32* %8
%28 = load i32, i32* %8
ret i32 %28
}

LLVM IR (-O2):
define i32 @xrop3_150_0_0(i8 zeroext %0, i8 zeroext %1) {
%3 = zext i8 %0 to i32
%4 = mul nuw nsw i32 %3, 257
%5 = zext i8 %1 to i32
%6 = mul nuw nsw i32 %5, 257
%7 = xor i32 %4, %6
%8 = xor i32 %7, 255
ret i32 %8
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ hash_int_impl(int /*<<< orphan*/);
uint32_t ref_hash(const void *ref) {
  uint32_t integer = (uint32_t)ref;
  return hash_int_impl(integer);
}


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

x86 assembly (clang, -O2):
<ref_hash>:
jmp    1030 <hash_int_impl@plt>

LLVM IR (-O0):
define i32 @ref_hash(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = ptrtoint i8* %4 to i32
store i32 %5, i32* %3
%6 = load i32, i32* %3
%7 = call i32 @hash_int_impl(i32 %6)
ret i32 %7
}

LLVM IR (-O2):
define i32 @ref_hash(i8* %0) {
%2 = ptrtoint i8* %0 to i64
%3 = trunc i64 %2 to i32
%4 = tail call i32 @hash_int_impl(i32 %3)
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ LOG_ERR;
int /*<<< orphan*/ errno;
int /*<<< orphan*/ report(int /*<<< orphan*/, char *, int /*<<< orphan*/,
                          int /*<<< orphan*/);
int /*<<< orphan*/ strerror(int /*<<< orphan*/);
int /*<<< orphan*/ strsignal(int);
void log_signal(int sig) {
  report(LOG_ERR, "Unable to setup signal handler for \"%s\": %s",
         strsignal(sig), strerror(errno));
}


x86 assembly (clang, -O0):
<log_signal>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    0x2e8e(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0xc(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <strsignal@plt>
mov    %eax,-0x8(%rbp)
mov    0x2e87(%rip),%rax
mov    (%rax),%edi
call   1050 <strerror@plt>
mov    -0xc(%rbp),%edi
mov    -0x8(%rbp),%edx
mov    %eax,%ecx
lea    0xe91(%rip),%rsi
call   1040 <report@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<log_signal>:
push   %rbp
push   %rbx
push   %rax
mov    0x2e96(%rip),%rax
mov    (%rax),%ebx
call   1030 <strsignal@plt>
mov    %eax,%ebp
mov    0x2e96(%rip),%rax
mov    (%rax),%edi
call   1050 <strerror@plt>
lea    0xea8(%rip),%rsi
mov    %ebx,%edi
mov    %ebp,%edx
mov    %eax,%ecx
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1040 <report@plt>

LLVM IR (-O0):
@LOG_ERR = global i32 0
@.str = [44 x i8] c"Unable to setup signal handler for \22%s\22: %s\00"
@errno = global i32 0
define void @log_signal(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* @LOG_ERR
%4 = load i32, i32* %2
%5 = call i32 @strsignal(i32 %4)
%6 = load i32, i32* @errno
%7 = call i32 @strerror(i32 %6)
%8 = call i32 @report(i32 %3, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), i32 %5, i32 %7)
ret void
}

LLVM IR (-O2):
@LOG_ERR = global i32 0
@.str = [44 x i8] c"Unable to setup signal handler for \22%s\22: %s\00"
@errno = global i32 0
define void @log_signal(i32 %0) {
%2 = load i32, i32* @LOG_ERR
%3 = tail call i32 @strsignal(i32 %0)
%4 = load i32, i32* @errno
%5 = tail call i32 @strerror(i32 %4)
%6 = tail call i32 @report(i32 %2, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), i32 %3, i32 %5)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ foo_foo_();
int /*<<< orphan*/ gen_elg_types();
int main() {
  gen_elg_types();
  foo_foo_();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <gen_elg_types@plt>
mov    $0x0,%al
call   1030 <foo_foo_@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @gen_elg_types()
%3 = call i32 (...) @foo_foo_()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @gen_elg_types()
%2 = tail call i32 (...) @foo_foo_()
ret i32 0
}
int cmp_int(const void *ptr1, const void *ptr2) {
  return (*(int *)ptr1 - *(int *)ptr2);
}


x86 assembly (clang, -O0):
<cmp_int>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    -0x10(%rbp),%rcx
sub    (%rcx),%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @cmp_int(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %3
%6 = bitcast i8* %5 to i32*
%7 = load i32, i32* %6
%8 = load i8*, i8** %4
%9 = bitcast i8* %8 to i32*
%10 = load i32, i32* %9
%11 = sub nsw i32 %7, %10
ret i32 %11
}

LLVM IR (-O2):
define i32 @cmp_int(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %0 to i32*
%4 = load i32, i32* %3
%5 = bitcast i8* %1 to i32*
%6 = load i32, i32* %5
%7 = sub nsw i32 %4, %6
ret i32 %7
}
void free_dumped_params(char **dumped_params, int nr_params) {
  int i;
  for (i = 0; i < nr_params; i++) {
    free(dumped_params[i]);
  }
  free(dumped_params);
}


x86 assembly (clang, -O0):
<free_dumped_params>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1151 <free_dumped_params+0x41>
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1030 <free@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1126 <free_dumped_params+0x16>
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<free_dumped_params>:
push   %r15
push   %r14
push   %rbx
mov    %rdi,%r14
test   %esi,%esi
jle    1142 <free_dumped_params+0x32>
mov    %esi,%r15d
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    (%r14,%rbx,8),%rdi
call   1030 <free@plt>
add    $0x1,%rbx
cmp    %rbx,%r15
jne    1130 <free_dumped_params+0x20>
mov    %r14,%rdi
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <free@plt>

LLVM IR (-O0):
define void @free_dumped_params(i8** %0, i32 %1) {
%3 = alloca i8**
%4 = alloca i32
%5 = alloca i32
store i8** %0, i8*** %3
store i32 %1, i32* %4
store i32 0, i32* %5
br label %6
6: ; preds = %16, %2
%7 = load i32, i32* %5
%8 = load i32, i32* %4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %19
10: ; preds = %6
%11 = load i8**, i8*** %3
%12 = load i32, i32* %5
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8*, i8** %11, i64 %13
%15 = load i8*, i8** %14
br label %16
16: ; preds = %10
%17 = load i32, i32* %5
%18 = add nsw i32 %17, 1
store i32 %18, i32* %5
br label %6
19: ; preds = %6
%20 = load i8**, i8*** %3
%21 = bitcast i8** %20 to i8*
ret void
}

LLVM IR (-O2):
define void @free_dumped_params(i8** nocapture %0, i32 %1) {
%3 = icmp sgt i32 %1, 0
br i1 %3, label %4, label %12
4: ; preds = %2
%5 = zext i32 %1 to i64
br label %6
6: ; preds = %4, %6
%7 = phi i64 [ 0, %4 ], [ %10, %6 ]
%8 = getelementptr inbounds i8*, i8** %0, i64 %7
%9 = load i8*, i8** %8
tail call void @free(i8* %9)
%10 = add nuw nsw i64 %7, 1
%11 = icmp eq i64 %10, %5
br i1 %11, label %12, label %6
12: ; preds = %6, %2
%13 = bitcast i8** %0 to i8*
tail call void @free(i8* %13)
ret void
}
unsigned int unknown_handler(void) { return 0; }


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

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

LLVM IR (-O0):
define i32 @unknown_handler() {
ret i32 0
}

LLVM IR (-O2):
define i32 @unknown_handler() {
ret i32 0
}
void gtk_radio_button_new_from_widget() {}


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

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

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

LLVM IR (-O2):
define void @gtk_radio_button_new_from_widget() {
ret void
}
struct _intel_dri_share_image_region *
intel_dri_share_image_region(void *user_data) {
  return (struct _intel_dri_share_image_region *)user_data;
}


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

x86 assembly (clang, -O2):
<intel_dri_share_image_region>:
mov    %rdi,%rax
ret

LLVM IR (-O0):
%struct._intel_dri_share_image_region = type opaque
define %struct._intel_dri_share_image_region* @intel_dri_share_image_region(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = bitcast i8* %3 to %struct._intel_dri_share_image_region*
ret %struct._intel_dri_share_image_region* %4
}

LLVM IR (-O2):
%struct._intel_dri_share_image_region = type opaque
define %struct._intel_dri_share_image_region* @intel_dri_share_image_region(i8* readnone %0) {
%2 = bitcast i8* %0 to %struct._intel_dri_share_image_region*
ret %struct._intel_dri_share_image_region* %2
}
void GPS_UART_ScbModeStop(void) {}


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

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

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

LLVM IR (-O2):
define void @GPS_UART_ScbModeStop() {
ret void
}
int trailingZeroes0(int n) {
  int count = 0;
  while (n)
    count += (n /= 5);
  return count;
}


x86 assembly (clang, -O0):
<trailingZeroes0>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     1131 <trailingZeroes0+0x31>
mov    -0x4(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
mov    %eax,-0x4(%rbp)
add    -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
jmp    110e <trailingZeroes0+0xe>
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<trailingZeroes0>:
xor    %eax,%eax
test   %edi,%edi
je     1131 <trailingZeroes0+0x31>
cs nopw 0x0(%rax,%rax,1)
movslq %edi,%rcx
imul   $0x66666667,%rcx,%rdi
mov    %rdi,%rdx
shr    $0x3f,%rdx
sar    $0x21,%rdi
add    %edx,%edi
add    %edi,%eax
add    $0x4,%ecx
cmp    $0x8,%ecx
ja     1110 <trailingZeroes0+0x10>
ret

LLVM IR (-O0):
define i32 @trailingZeroes0(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
store i32 0, i32* %3
br label %4
4: ; preds = %7, %1
%5 = load i32, i32* %2
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %12
7: ; preds = %4
%8 = load i32, i32* %2
%9 = sdiv i32 %8, 5
store i32 %9, i32* %2
%10 = load i32, i32* %3
%11 = add nsw i32 %10, %9
store i32 %11, i32* %3
br label %4
12: ; preds = %4
%13 = load i32, i32* %3
ret i32 %13
}

LLVM IR (-O2):
define i32 @trailingZeroes0(i32 %0) {
%2 = icmp eq i32 %0, 0
br i1 %2, label %10, label %3
3: ; preds = %1, %3
%4 = phi i32 [ %7, %3 ], [ 0, %1 ]
%5 = phi i32 [ %6, %3 ], [ %0, %1 ]
%6 = sdiv i32 %5, 5
%7 = add nsw i32 %4, %6
%8 = add i32 %5, 4
%9 = icmp ult i32 %8, 9
br i1 %9, label %10, label %3
10: ; preds = %3, %1
%11 = phi i32 [ 0, %1 ], [ %7, %3 ]
ret i32 %11
}
__attribute__((no, noclone)) unsigned __int128 t110_5sub(unsigned char x) {
  unsigned __int128 r;
  if (__builtin_sub_overflow(x, (unsigned char)((unsigned char)0x7f + 4), &r))
    bar();
  return r;
}


x86 assembly (clang, -O0):
<t110_5sub>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %dil,%al
mov    %al,-0x11(%rbp)
movzbl -0x11(%rbp),%eax
mov    %eax,%edx
xor    %eax,%eax
mov    %eax,%ecx
sub    $0x83,%rdx
sbb    %rcx,%rcx
setb   %al
mov    %rdx,-0x30(%rbp)
mov    %rcx,-0x28(%rbp)
test   $0x1,%al
jne    114a <t110_5sub+0x3a>
jmp    1151 <t110_5sub+0x41>
mov    $0x0,%al
call   1030 <bar@plt>
mov    -0x30(%rbp),%rax
mov    -0x28(%rbp),%rcx
mov    %rcx,-0x8(%rbp)
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x8(%rbp),%rdx
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<t110_5sub>:
push   %r14
push   %rbx
push   %rax
mov    %edi,%r14d
xor    %ebx,%ebx
sub    $0x83,%r14
sbb    %rbx,%rbx
jae    112c <t110_5sub+0x1c>
xor    %eax,%eax
call   1030 <bar@plt>
mov    %r14,%rax
mov    %rbx,%rdx
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define { i64, i64 } @t110_5sub(i8 zeroext %0) {
%2 = alloca i128
%3 = alloca i8
%4 = alloca i128
store i8 %0, i8* %3
%5 = load i8, i8* %3
%6 = zext i8 %5 to i128
%7 = call { i128, i1 } @llvm.usub.with.overflow.i128(i128 %6, i128 131)
%8 = extractvalue { i128, i1 } %7, 1
%9 = extractvalue { i128, i1 } %7, 0
store i128 %9, i128* %4
br i1 %8, label %10, label %12
10: ; preds = %1
%11 = call i32 (...) @bar()
br label %12
12: ; preds = %10, %1
%13 = load i128, i128* %4
store i128 %13, i128* %2
%14 = bitcast i128* %2 to { i64, i64 }*
%15 = load { i64, i64 }, { i64, i64 }* %14
ret { i64, i64 } %15
}

LLVM IR (-O2):
define { i64, i64 } @t110_5sub(i8 zeroext %0) {
%2 = zext i8 %0 to i128
%3 = tail call { i128, i1 } @llvm.usub.with.overflow.i128(i128 %2, i128 131)
%4 = extractvalue { i128, i1 } %3, 1
%5 = extractvalue { i128, i1 } %3, 0
br i1 %4, label %6, label %8
6: ; preds = %1
%7 = tail call i32 (...) @bar()
br label %8
8: ; preds = %6, %1
%9 = trunc i128 %5 to i64
%10 = lshr i128 %5, 64
%11 = trunc i128 %10 to i64
%12 = insertvalue { i64, i64 } poison, i64 %9, 0
%13 = insertvalue { i64, i64 } %12, i64 %11, 1
ret { i64, i64 } %13
}
void *null_audio_init(const char *device, unsigned rate, unsigned latency) {
  (void)device;
  (void)rate;
  (void)latency;
  return (void *)-1;
}


x86 assembly (clang, -O0):
<null_audio_init>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    $0xffffffffffffffff,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<null_audio_init>:
mov    $0xffffffffffffffff,%rax
ret

LLVM IR (-O0):
define i8* @null_audio_init(i8* %0, i32 %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
store i8* %0, i8** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i8*, i8** %4
%8 = load i32, i32* %5
%9 = load i32, i32* %6
ret i8* inttoptr (i64 -1 to i8*)
}

LLVM IR (-O2):
define i8* @null_audio_init(i8* nocapture readnone %0, i32 %1, i32 %2) {
ret i8* inttoptr (i64 -1 to i8*)
}
double dmin(double a, double b) { return a < b ? a : b; }


x86 assembly (clang, -O0):
<dmin>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1131 <dmin+0x31>
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
jmp    113b <dmin+0x3b>
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<dmin>:
minsd  %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @dmin(double %0, double %1) {
%3 = alloca double
%4 = alloca double
store double %0, double* %3
store double %1, double* %4
%5 = load double, double* %3
%6 = load double, double* %4
%7 = fcmp olt double %5, %6
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = load double, double* %3
br label %12
10: ; preds = %2
%11 = load double, double* %4
br label %12
12: ; preds = %10, %8
%13 = phi double [ %9, %8 ], [ %11, %10 ]
ret double %13
}

LLVM IR (-O2):
define double @dmin(double %0, double %1) {
%3 = fcmp olt double %0, %1
%4 = select i1 %3, double %0, double %1
ret double %4
}
int sys_set_led(void) { return 0; }


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

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

LLVM IR (-O0):
define i32 @sys_set_led() {
ret i32 0
}

LLVM IR (-O2):
define i32 @sys_set_led() {
ret i32 0
}
/* Variables and functions */
scalar_t__ strcmp(char const *, char *);
int is_special_dir(const char *path) {
  return strcmp(path, ".") == 0 || strcmp(path, "..") == 0;
}


x86 assembly (clang, -O0):
<is_special_dir>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xeda(%rip),%rsi
call   1030 <strcmp@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x9(%rbp)
je     1158 <is_special_dir+0x48>
mov    -0x8(%rbp),%rdi
lea    0xeb7(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_special_dir>:
push   %rbx
mov    %rdi,%rbx
lea    0xee6(%rip),%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1141 <is_special_dir+0x31>
lea    0xed4(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
sete   %al
pop    %rbx
ret
mov    $0x1,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [2 x i8] c".\00"
@.str.1 = [3 x i8] c"..\00"
define i32 @is_special_dir(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%5 = icmp eq i64 %4, 0
br i1 %5, label %10, label %6
6: ; preds = %1
%7 = load i8*, i8** %2
%8 = call i64 @strcmp(i8* %7, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%9 = icmp eq i64 %8, 0
br label %10
10: ; preds = %6, %1
%11 = phi i1 [ true, %1 ], [ %9, %6 ]
%12 = zext i1 %11 to i32
ret i32 %12
}

LLVM IR (-O2):
@.str = [2 x i8] c".\00"
@.str.1 = [3 x i8] c"..\00"
define i32 @is_special_dir(i8* %0) {
%2 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i64 %2, 0
br i1 %3, label %8, label %4
4: ; preds = %1
%5 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%6 = icmp eq i64 %5, 0
%7 = zext i1 %6 to i32
br label %8
8: ; preds = %4, %1
%9 = phi i32 [ 1, %1 ], [ %7, %4 ]
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ ol(char *);
gaslint() { ol("asl.l\t&2,%d0"); }


x86 assembly (clang, -O0):
<gaslint>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xee1(%rip),%rdi
call   1030 <ol@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [13 x i8] c"asl.l\09&2,%d0\00"
define i32 @gaslint() {
%1 = alloca i32
%2 = call i32 @ol(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* %1
ret i32 %3
}

LLVM IR (-O2):
@.str = [13 x i8] c"asl.l\09&2,%d0\00"
define i32 @gaslint() {
%1 = tail call i32 @ol(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
ret i32 undef
}
int mDB_create(fn, flds) { return mDBi_msg('c', fn, 0, 0, 0, 0, flds, 0); }


x86 assembly (clang, -O0):
<mDB_create>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x8(%rbp),%eax
mov    $0x63,%edi
xor    %r9d,%r9d
mov    %r9d,%edx
mov    %r9d,%ecx
mov    %r9d,%r8d
mov    %eax,(%rsp)
movl   $0x0,0x8(%rsp)
mov    $0x0,%al
call   1030 <mDBi_msg@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mDB_create>:
push   %rax
mov    %esi,%r10d
mov    %edi,%esi
mov    $0x63,%edi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
xor    %eax,%eax
push   $0x0
push   %r10
call   1030 <mDBi_msg@plt>
add    $0x10,%rsp
pop    %rcx
ret

LLVM IR (-O0):
define i32 @mDB_create(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 = load i32, i32* %4
%7 = call i32 (i32, i32, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @mDBi_msg to i32 (i32, i32, i32, i32, i32, i32, i32, i32, ...)*)(i32 99, i32 %5, i32 0, i32 0, i32 0, i32 0, i32 %6, i32 0)
ret i32 %7
}

LLVM IR (-O2):
define i32 @mDB_create(i32 %0, i32 %1) {
%3 = tail call i32 (i32, i32, i32, i32, i32, i32, i32, i32, ...) bitcast (i32 (...)* @mDBi_msg to i32 (i32, i32, i32, i32, i32, i32, i32, i32, ...)*)(i32 99, i32 %0, i32 0, i32 0, i32 0, i32 0, i32 %1, i32 0)
ret i32 %3
}
/* Type definitions */
struct event {
  int dummy;
};

/* Variables and functions */
int event_del(struct event *);
int AMCEvent_Del(struct event *event) { return event_del(event); }


x86 assembly (clang, -O0):
<AMCEvent_Del>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <event_del@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<AMCEvent_Del>:
jmp    1030 <event_del@plt>

LLVM IR (-O0):
%struct.event = type { i32 }
define i32 @AMCEvent_Del(%struct.event* %0) {
%2 = alloca %struct.event*
store %struct.event* %0, %struct.event** %2
%3 = load %struct.event*, %struct.event** %2
%4 = call i32 @event_del(%struct.event* %3)
ret i32 %4
}

LLVM IR (-O2):
%struct.event = type { i32 }
define i32 @AMCEvent_Del(%struct.event* %0) {
%2 = tail call i32 @event_del(%struct.event* %0)
ret i32 %2
}
/* Type definitions */
typedef int uint8_t;
typedef int /*<<< orphan*/ uint16_t;

/* Variables and functions */
int /*<<< orphan*/ sprintf(char *, char *, int const);
int dir(uint16_t pc, const uint8_t *ram, char *buffer) {
  sprintf(buffer, "%02x", *ram);
  return 1;
}


x86 assembly (clang, -O0):
<dir>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    (%rax),%edx
lea    0xecc(%rip),%rsi
call   1030 <sprintf@plt>
mov    $0x1,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dir>:
push   %rax
mov    %rdx,%rdi
mov    (%rsi),%edx
lea    0xee3(%rip),%rsi
call   1030 <sprintf@plt>
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%02x\00"
define i32 @dir(i32 %0, i32* %1, i8* %2) {
%4 = alloca i32
%5 = alloca i32*
%6 = alloca i8*
store i32 %0, i32* %4
store i32* %1, i32** %5
store i8* %2, i8** %6
%7 = load i8*, i8** %6
%8 = load i32*, i32** %5
%9 = load i32, i32* %8
%10 = call i32 @sprintf(i8* %7, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %9)
ret i32 1
}

LLVM IR (-O2):
@.str = [5 x i8] c"%02x\00"
define i32 @dir(i32 %0, i32* nocapture %1, i8* nocapture writeonly %2) {
%4 = load i32, i32* %1
%5 = tail call i32 @sprintf(i8* dereferenceable(1) %2, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %4)
ret i32 1
}
unsigned char inb(int port) {
  return (*((unsigned char *)(((unsigned long)0x80000000) + port)));
}


x86 assembly (clang, -O0):
<inb>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movslq -0x4(%rbp),%rax
movabs $0x80000000,%rcx
add    %rcx,%rax
movzbl (%rax),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<inb>:
movslq %edi,%rax
mov    $0x80000000,%ecx
mov    (%rax,%rcx,1),%al
ret

LLVM IR (-O0):
define zeroext i8 @inb(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = sext i32 %3 to i64
%5 = add i64 2147483648, %4
%6 = inttoptr i64 %5 to i8*
%7 = load i8, i8* %6
ret i8 %7
}

LLVM IR (-O2):
define zeroext i8 @inb(i32 %0) {
%2 = sext i32 %0 to i64
%3 = add nsw i64 %2, 2147483648
%4 = inttoptr i64 %3 to i8*
%5 = load i8, i8* %4
ret i8 %5
}
int Bematech_FI_NumeroSubstituicoesProprietario(Var, Retorno) {
  return Formata("\x1b|35|11|\x1b", Var, Retorno);
}


x86 assembly (clang, -O0):
<Bematech_FI_NumeroSubstituicoesProprietario>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x8(%rbp),%edx
lea    0xed5(%rip),%rdi
mov    $0x0,%al
call   1030 <Formata@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Bematech_FI_NumeroSubstituicoesProprietario>:
mov    %esi,%edx
mov    %edi,%esi
lea    0xee5(%rip),%rdi
xor    %eax,%eax
jmp    1030 <Formata@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"\1B|35|11|\1B\00"
define i32 @Bematech_FI_NumeroSubstituicoesProprietario(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 = load i32, i32* %4
%7 = call i32 (i8*, i32, i32, ...) bitcast (i32 (...)* @Formata to i32 (i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %5, i32 %6)
ret i32 %7
}

LLVM IR (-O2):
@.str = [10 x i8] c"\1B|35|11|\1B\00"
define i32 @Bematech_FI_NumeroSubstituicoesProprietario(i32 %0, i32 %1) {
%3 = tail call i32 (i8*, i32, i32, ...) bitcast (i32 (...)* @Formata to i32 (i8*, i32, i32, ...)*)(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %0, i32 %1)
ret i32 %3
}
/* Variables and functions */
char TOSH_READ_GIO3_PIN();
char HUMIDITY_GET_DATA() { return TOSH_READ_GIO3_PIN(); }


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

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

LLVM IR (-O0):
define signext i8 @HUMIDITY_GET_DATA() {
%1 = call signext i8 (...) @TOSH_READ_GIO3_PIN()
ret i8 %1
}

LLVM IR (-O2):
define signext i8 @HUMIDITY_GET_DATA() {
%1 = tail call signext i8 (...) @TOSH_READ_GIO3_PIN()
ret i8 %1
}
/* Variables and functions */
int /*<<< orphan*/ emit_token(char *);
int /*<<< orphan*/ push_cstag(int, int /*<<< orphan*/);
void emit_case(void) {
  push_cstag(0xC57Aca5e, 0);
  emit_token("b(case)");
}


x86 assembly (clang, -O0):
<emit_case>:
push   %rbp
mov    %rsp,%rbp
mov    $0xc57aca5e,%edi
xor    %esi,%esi
call   1040 <push_cstag@plt>
lea    0xec9(%rip),%rdi
call   1030 <emit_token@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<emit_case>:
push   %rax
mov    $0xc57aca5e,%edi
xor    %esi,%esi
call   1040 <push_cstag@plt>
lea    0xecc(%rip),%rdi
pop    %rax
jmp    1030 <emit_token@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"b(case)\00"
define void @emit_case() {
%1 = call i32 @push_cstag(i32 -981808546, i32 0)
%2 = call i32 @emit_token(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"b(case)\00"
define void @emit_case() {
%1 = tail call i32 @push_cstag(i32 -981808546, i32 0)
%2 = tail call i32 @emit_token(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ abort();
void die_unless(int t) {
  if (!t)
    abort();
}


x86 assembly (clang, -O0):
<die_unless>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    112c <die_unless+0x1c>
mov    $0x0,%al
call   1030 <abort@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<die_unless>:
test   %edi,%edi
je     1115 <die_unless+0x5>
ret
push   %rax
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define void @die_unless(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp ne i32 %3, 0
br i1 %4, label %7, label %5
5: ; preds = %1
%6 = call i32 (...) @abort()
unreachable
7: ; preds = %1
ret void
}

LLVM IR (-O2):
define void @die_unless(i32 %0) {
%2 = icmp eq i32 %0, 0
br i1 %2, label %3, label %5
3: ; preds = %1
%4 = tail call i32 (...) @abort()
unreachable
5: ; preds = %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ cli_putc(int);
void nessie_send_alive(void) { cli_putc(0x06); }


x86 assembly (clang, -O0):
<nessie_send_alive>:
push   %rbp
mov    %rsp,%rbp
mov    $0x6,%edi
call   1030 <cli_putc@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<nessie_send_alive>:
mov    $0x6,%edi
jmp    1030 <cli_putc@plt>

LLVM IR (-O0):
define void @nessie_send_alive() {
%1 = call i32 @cli_putc(i32 6)
ret void
}

LLVM IR (-O2):
define void @nessie_send_alive() {
%1 = tail call i32 @cli_putc(i32 6)
ret void
}
void free_matrix(m, nrl, nrh, ncl, nch) float **m;
long nch, ncl, nrh, nrl;
{
  free((char *)(m[nrl] + ncl - 1));
  free((char *)(m + nrl - 1));
}


x86 assembly (clang, -O0):
<free_matrix>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    -0x20(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdi
add    $0xfffffffffffffffc,%rdi
call   1030 <free@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdi
add    $0xfffffffffffffff8,%rdi
call   1030 <free@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<free_matrix>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
mov    (%rdi,%rsi,8),%rax
lea    (%rax,%rcx,4),%rdi
add    $0xfffffffffffffffc,%rdi
call   1030 <free@plt>
lea    (%rbx,%r14,8),%rdi
add    $0xfffffffffffffff8,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <free@plt>

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

LLVM IR (-O2):
define void @free_matrix(float** nocapture %0, i64 %1, i64 %2, i64 %3, i64 %4) {
%6 = getelementptr inbounds float*, float** %0, i64 %1
%7 = load float*, float** %6
%8 = getelementptr inbounds float, float* %7, i64 %3
%9 = getelementptr inbounds float, float* %8, i64 -1
%10 = bitcast float* %9 to i8*
tail call void @free(i8* %10)
%11 = getelementptr inbounds float*, float** %6, i64 -1
%12 = bitcast float** %11 to i8*
tail call void @free(i8* %12)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char *);
void element_javascript_filename_output(FILE *output_file, char *filename) {
  fprintf(output_file,
          "<script type=\"text/javascript\" src=\"%s\"> </script>\n", filename);
}


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

x86 assembly (clang, -O2):
<element_javascript_filename_output>:
mov    %rsi,%rdx
lea    0xee6(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@.str = [52 x i8] c"<script type=\22text/javascript\22 src=\22%s\22> </script>\0A\00"
define void @element_javascript_filename_output(i32* %0, i8* %1) {
%3 = alloca i32*
%4 = alloca i8*
store i32* %0, i32** %3
store i8* %1, i8** %4
%5 = load i32*, i32** %3
%6 = load i8*, i8** %4
%7 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str, i64 0, i64 0), i8* %6)
ret void
}

LLVM IR (-O2):
@.str = [52 x i8] c"<script type=\22text/javascript\22 src=\22%s\22> </script>\0A\00"
define void @element_javascript_filename_output(i32* nocapture %0, i8* %1) {
%3 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str, i64 0, i64 0), i8* %1)
ret void
}
/* Type definitions */
typedef int uint8_t;

/* Variables and functions */
unsigned int mget4b(const uint8_t *data) {
  return data[3] | (data[2] * 0x0100) | (data[1] * 0x010000) |
         (data[0] * 0x01000000);
}


x86 assembly (clang, -O0):
<mget4b>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    0xc(%rax),%eax
mov    -0x8(%rbp),%rcx
mov    0x8(%rcx),%ecx
shl    $0x8,%ecx
or     %ecx,%eax
mov    -0x8(%rbp),%rcx
mov    0x4(%rcx),%ecx
shl    $0x10,%ecx
or     %ecx,%eax
mov    -0x8(%rbp),%rcx
mov    (%rcx),%ecx
shl    $0x18,%ecx
or     %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<mget4b>:
mov    0x8(%rdi),%ecx
shl    $0x8,%ecx
or     0xc(%rdi),%ecx
mov    (%rdi),%eax
mov    0x4(%rdi),%edx
shl    $0x10,%edx
shl    $0x18,%eax
or     %edx,%eax
or     %ecx,%eax
ret

LLVM IR (-O0):
define i32 @mget4b(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = getelementptr inbounds i32, i32* %3, i64 3
%5 = load i32, i32* %4
%6 = load i32*, i32** %2
%7 = getelementptr inbounds i32, i32* %6, i64 2
%8 = load i32, i32* %7
%9 = mul nsw i32 %8, 256
%10 = or i32 %5, %9
%11 = load i32*, i32** %2
%12 = getelementptr inbounds i32, i32* %11, i64 1
%13 = load i32, i32* %12
%14 = mul nsw i32 %13, 65536
%15 = or i32 %10, %14
%16 = load i32*, i32** %2
%17 = getelementptr inbounds i32, i32* %16, i64 0
%18 = load i32, i32* %17
%19 = mul nsw i32 %18, 16777216
%20 = or i32 %15, %19
ret i32 %20
}

LLVM IR (-O2):
define i32 @mget4b(i32* nocapture %0) {
%2 = getelementptr inbounds i32, i32* %0, i64 3
%3 = load i32, i32* %2
%4 = getelementptr inbounds i32, i32* %0, i64 2
%5 = load i32, i32* %4
%6 = shl nsw i32 %5, 8
%7 = or i32 %6, %3
%8 = getelementptr inbounds i32, i32* %0, i64 1
%9 = load i32, i32* %8
%10 = shl nsw i32 %9, 16
%11 = or i32 %7, %10
%12 = load i32, i32* %0
%13 = shl nsw i32 %12, 24
%14 = or i32 %11, %13
ret i32 %14
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int pa_log_set_skip_backtrace() {
  printf("NOT IMPLEMENTED:"
         "pa_log_set_skip_backtrace"
         "\n");
}


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

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

LLVM IR (-O0):
@.str = [43 x i8] c"NOT IMPLEMENTED:pa_log_set_skip_backtrace\0A\00"
define i32 @pa_log_set_skip_backtrace() {
%1 = alloca i32
%2 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* %1
ret i32 %3
}

LLVM IR (-O2):
@str = [42 x i8] c"NOT IMPLEMENTED:pa_log_set_skip_backtrace\00"
define i32 @pa_log_set_skip_backtrace() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str, i64 0, i64 0))
ret i32 undef
}
void genbc1t_idle() {}


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

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

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

LLVM IR (-O2):
define void @genbc1t_idle() {
ret void
}
int update_count(int old_count, int card_val) {
  if ((card_val > 2) && (card_val < 7)) {
    old_count++;
  } else if (card_val == 10) {
    old_count--;
  }
  return old_count;
}


x86 assembly (clang, -O0):
<update_count>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
cmpl   $0x2,-0x8(%rbp)
jle    112c <update_count+0x2c>
cmpl   $0x7,-0x8(%rbp)
jge    112c <update_count+0x2c>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1144 <update_count+0x44>
cmpl   $0xa,-0x8(%rbp)
jne    113f <update_count+0x3f>
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x4(%rbp)
jmp    1144 <update_count+0x44>
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<update_count>:
lea    -0x3(%rsi),%eax
xor    %ecx,%ecx
cmp    $0xa,%esi
sete   %cl
neg    %ecx
cmp    $0x4,%eax
mov    $0x1,%eax
cmovae %ecx,%eax
add    %edi,%eax
ret

LLVM IR (-O0):
define i32 @update_count(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 = icmp sgt i32 %5, 2
br i1 %6, label %7, label %13
7: ; preds = %2
%8 = load i32, i32* %4
%9 = icmp slt i32 %8, 7
br i1 %9, label %10, label %13
10: ; preds = %7
%11 = load i32, i32* %3
%12 = add nsw i32 %11, 1
store i32 %12, i32* %3
br label %20
13: ; preds = %7, %2
%14 = load i32, i32* %4
%15 = icmp eq i32 %14, 10
br i1 %15, label %16, label %19
16: ; preds = %13
%17 = load i32, i32* %3
%18 = add nsw i32 %17, -1
store i32 %18, i32* %3
br label %19
19: ; preds = %16, %13
br label %20
20: ; preds = %19, %10
%21 = load i32, i32* %3
ret i32 %21
}

LLVM IR (-O2):
define i32 @update_count(i32 %0, i32 %1) {
%3 = add i32 %1, -3
%4 = icmp ult i32 %3, 4
%5 = icmp eq i32 %1, 10
%6 = sext i1 %5 to i32
%7 = select i1 %4, i32 1, i32 %6
%8 = add nsw i32 %7, %0
ret i32 %8
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ *stdout;
void c_stdout_(FILE **fp) { *fp = stdout; }


x86 assembly (clang, -O0):
<c_stdout_>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    0x2ed1(%rip),%rax
mov    (%rax),%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<c_stdout_>:
mov    0x2ed9(%rip),%rax
mov    (%rax),%rax
mov    %rax,(%rdi)
ret

LLVM IR (-O0):
@stdout = global i32* null
define void @c_stdout_(i32** %0) {
%2 = alloca i32**
store i32** %0, i32*** %2
%3 = load i32*, i32** @stdout
%4 = load i32**, i32*** %2
store i32* %3, i32** %4
ret void
}

LLVM IR (-O2):
@stdout = global i32* null
define void @c_stdout_(i32** nocapture writeonly %0) {
%2 = load i32*, i32** @stdout
store i32* %2, i32** %0
ret void
}
char *strchrnul(register const char *s, int c) {
  --s;
  while (*++s && (*s != ((char)c)))
    ;
  return (char *)s;
}


x86 assembly (clang, -O0):
<strchrnul>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movsbl 0x1(%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0xd(%rbp)
je     114d <strchrnul+0x4d>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
mov    -0xc(%rbp),%ecx
movsbl %cl,%ecx
cmp    %ecx,%eax
setne  %al
mov    %al,-0xd(%rbp)
mov    -0xd(%rbp),%al
test   $0x1,%al
jne    115d <strchrnul+0x5d>
jmp    1162 <strchrnul+0x62>
jmp    1117 <strchrnul+0x17>
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<strchrnul>:
mov    %rdi,%rax
add    $0xffffffffffffffff,%rax
movsbl %sil,%ecx
nopl   0x0(%rax,%rax,1)
movsbl 0x1(%rax),%edx
add    $0x1,%rax
test   %edx,%edx
je     1120 <strchrnul+0x20>
cmp    %edx,%ecx
jne    1110 <strchrnul+0x10>
ret

LLVM IR (-O0):
define i8* @strchrnul(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i8*, i8** %3
%6 = getelementptr inbounds i8, i8* %5, i32 -1
store i8* %6, i8** %3
br label %7
7: ; preds = %23, %2
%8 = load i8*, i8** %3
%9 = getelementptr inbounds i8, i8* %8, i32 1
store i8* %9, i8** %3
%10 = load i8, i8* %9
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %21
13: ; preds = %7
%14 = load i8*, i8** %3
%15 = load i8, i8* %14
%16 = sext i8 %15 to i32
%17 = load i32, i32* %4
%18 = trunc i32 %17 to i8
%19 = sext i8 %18 to i32
%20 = icmp ne i32 %16, %19
br label %21
21: ; preds = %13, %7
%22 = phi i1 [ false, %7 ], [ %20, %13 ]
br i1 %22, label %23, label %24
23: ; preds = %21
br label %7
24: ; preds = %21
%25 = load i8*, i8** %3
ret i8* %25
}

LLVM IR (-O2):
define i8* @strchrnul(i8* %0, i32 %1) {
%3 = getelementptr inbounds i8, i8* %0, i64 -1
%4 = shl i32 %1, 24
%5 = ashr exact i32 %4, 24
br label %6
6: ; preds = %6, %2
%7 = phi i8* [ %3, %2 ], [ %8, %6 ]
%8 = getelementptr inbounds i8, i8* %7, i64 1
%9 = load i8, i8* %8
%10 = icmp eq i8 %9, 0
%11 = sext i8 %9 to i32
%12 = icmp eq i32 %5, %11
%13 = select i1 %10, i1 true, i1 %12
br i1 %13, label %14, label %6
14: ; preds = %6
ret i8* %8
}