xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void isStillLocked(void) { printf("That is locked.\n"); }


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

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

LLVM IR (-O0):
@.str = [17 x i8] c"That is locked.\0A\00"
define void @isStillLocked() {
%1 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [16 x i8] c"That is locked.\00"
define void @isStillLocked() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ ssh_err(int);
int /*<<< orphan*/ ssh_fatal(char *, char const *, int /*<<< orphan*/);
void fatal_on_fatal_errors(int r, const char *func, int extra_fatal) {
  if (r == -1 || r == -2 || (extra_fatal != 0 && r == extra_fatal))
    ssh_fatal("%s: %s", func, ssh_err(r));
}


x86 assembly (clang, -O0):
<fatal_on_fatal_errors>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
cmpl   $0xffffffff,-0x4(%rbp)
je     115c <fatal_on_fatal_errors+0x3c>
cmpl   $0xfffffffe,-0x4(%rbp)
je     115c <fatal_on_fatal_errors+0x3c>
cmpl   $0x0,-0x14(%rbp)
je     117e <fatal_on_fatal_errors+0x5e>
mov    -0x4(%rbp),%eax
cmp    -0x14(%rbp),%eax
jne    117e <fatal_on_fatal_errors+0x5e>
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <ssh_err@plt>
mov    -0x20(%rbp),%rsi
mov    %eax,%edx
lea    0xe87(%rip),%rdi
call   1040 <ssh_fatal@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fatal_on_fatal_errors>:
push   %rbx
mov    %rsi,%rbx
cmp    $0xfffffffd,%edi
ja     1131 <fatal_on_fatal_errors+0x11>
test   %edx,%edx
je     1148 <fatal_on_fatal_errors+0x28>
cmp    %edx,%edi
jne    1148 <fatal_on_fatal_errors+0x28>
call   1030 <ssh_err@plt>
lea    0xec3(%rip),%rdi
mov    %rbx,%rsi
mov    %eax,%edx
pop    %rbx
jmp    1040 <ssh_fatal@plt>
pop    %rbx
ret

LLVM IR (-O0):
@.str = [7 x i8] c"%s: %s\00"
define void @fatal_on_fatal_errors(i32 %0, i8* %1, i32 %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i32
store i32 %0, i32* %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%7 = load i32, i32* %4
%8 = icmp eq i32 %7, -1
br i1 %8, label %19, label %9
9: ; preds = %3
%10 = load i32, i32* %4
%11 = icmp eq i32 %10, -2
br i1 %11, label %19, label %12
12: ; preds = %9
%13 = load i32, i32* %6
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %24
15: ; preds = %12
%16 = load i32, i32* %4
%17 = load i32, i32* %6
%18 = icmp eq i32 %16, %17
br i1 %18, label %19, label %24
19: ; preds = %15, %9, %3
%20 = load i8*, i8** %5
%21 = load i32, i32* %4
%22 = call i32 @ssh_err(i32 %21)
%23 = call i32 @ssh_fatal(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %20, i32 %22)
br label %24
24: ; preds = %19, %15, %12
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"%s: %s\00"
define void @fatal_on_fatal_errors(i32 %0, i8* %1, i32 %2) {
%4 = icmp ugt i32 %0, -3
br i1 %4, label %9, label %5
5: ; preds = %3
%6 = icmp ne i32 %2, 0
%7 = icmp eq i32 %0, %2
%8 = and i1 %6, %7
br i1 %8, label %9, label %12
9: ; preds = %5, %3
%10 = tail call i32 @ssh_err(i32 %0)
%11 = tail call i32 @ssh_fatal(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %1, i32 %10)
br label %12
12: ; preds = %9, %5
ret void
}
void pmksa_cache_flush(struct rsn_pmksa_cache *pmksa, void *network_ctx) {}


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

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

LLVM IR (-O0):
%struct.rsn_pmksa_cache = type opaque
define void @pmksa_cache_flush(%struct.rsn_pmksa_cache* %0, i8* %1) {
%3 = alloca %struct.rsn_pmksa_cache*
%4 = alloca i8*
store %struct.rsn_pmksa_cache* %0, %struct.rsn_pmksa_cache** %3
store i8* %1, i8** %4
ret void
}

LLVM IR (-O2):
%struct.rsn_pmksa_cache = type opaque
define void @pmksa_cache_flush(%struct.rsn_pmksa_cache* nocapture %0, i8* nocapture %1) {
ret void
}
/* Variables and functions */
int fprintf(int /*<<< orphan*/, char const *const);
int /*<<< orphan*/ stderr;
int help_print_global() {
  const char *const msg =
      "Usage: contacts [GLOBAL_OPTS...] [CMD] [CMD_OPTS...]\n"
      "\n"
      "Global Options:\n"
      "  -h            Show this help\n"
      "  -v            Enable verbose output\n"
      "\n"
      "Commands and Command Options:\n"
      "  check         Check a contacts list for consistency\n"
      "    -h          Show `check` command help\n"
      "    -f FILE     Check vcard FILE data for consistency\n";
  return fprintf(stderr, msg);
}


x86 assembly (clang, -O0):
<help_print_global>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xee1(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    0x2eb6(%rip),%rax
mov    (%rax),%edi
lea    0xecd(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<help_print_global>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%edi
lea    0xee0(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@.str = [321 x i8] c"Usage: contacts [GLOBAL_OPTS...] [CMD] [CMD_OPTS...]\0A\0AGlobal Options:\0A -h Show this help\0A -v Enable verbose output\0A\0ACommands and Command Options:\0A check Check a contacts list for consistency\0A -h Show `check` command help\0A -f FILE Check vcard FILE data for consistency\0A\00"
@stderr = global i32 0
define i32 @help_print_global() {
%1 = alloca i8*
store i8* getelementptr inbounds ([321 x i8], [321 x i8]* @.str, i64 0, i64 0), i8** %1
%2 = load i32, i32* @stderr
%3 = call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([321 x i8], [321 x i8]* @.str, i32 0, i32 0))
ret i32 %3
}

LLVM IR (-O2):
@.str = [321 x i8] c"Usage: contacts [GLOBAL_OPTS...] [CMD] [CMD_OPTS...]\0A\0AGlobal Options:\0A -h Show this help\0A -v Enable verbose output\0A\0ACommands and Command Options:\0A check Check a contacts list for consistency\0A -h Show `check` command help\0A -f FILE Check vcard FILE data for consistency\0A\00"
@stderr = global i32 0
define i32 @help_print_global() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([321 x i8], [321 x i8]* @.str, i64 0, i64 0))
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ printk(char *);
void longjmp(void *env, int val) { printk("Write longjmp()\n"); }


x86 assembly (clang, -O0):
<longjmp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
lea    0xeda(%rip),%rdi
call   1030 <printk@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [17 x i8] c"Write longjmp()\0A\00"
define void @longjmp(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = call i32 @printk(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [17 x i8] c"Write longjmp()\0A\00"
define void @longjmp(i8* nocapture readnone %0, i32 %1) {
%3 = tail call i32 @printk(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
ret void
}
void machine_term(void) {}


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

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

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

LLVM IR (-O2):
define void @machine_term() {
ret void
}
void ff_hevc_put_hevc_uni_epel_hv8_12_sse4() {}


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

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

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

LLVM IR (-O2):
define void @ff_hevc_put_hevc_uni_epel_hv8_12_sse4() {
ret void
}
char *malloc(n)
unsigned n;
{ return ((char *)MemAlloc((int)n)); }


x86 assembly (clang, -O0):
<malloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x0,%al
call   1030 <MemAlloc@plt>
cltq
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i8* @malloc(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 (i32, ...) bitcast (i32 (...)* @MemAlloc to i32 (i32, ...)*)(i32 %3)
%5 = sext i32 %4 to i64
%6 = inttoptr i64 %5 to i8*
ret i8* %6
}

LLVM IR (-O2):
define i8* @malloc(i32 %0) {
%2 = tail call i32 (i32, ...) bitcast (i32 (...)* @MemAlloc to i32 (i32, ...)*)(i32 %0)
%3 = sext i32 %2 to i64
%4 = inttoptr i64 %3 to i8*
ret i8* %4
}
/* Variables and functions */
int settings_get_n(char const *, int, char const **, int *, void **, int *);
int settings_get_ascii(const char *path, const char *name, char *value,
                       int value_size) {
  int types = 1;
  return settings_get_n(path, 1, &name, &types, (void **)value, &value_size);
}


x86 assembly (clang, -O0):
<settings_get_ascii>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
movl   $0x1,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%r8
mov    $0x1,%esi
lea    -0x10(%rbp),%rdx
lea    -0x20(%rbp),%rcx
lea    -0x1c(%rbp),%r9
call   1030 <settings_get_n@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<settings_get_ascii>:
sub    $0x18,%rsp
mov    %rdx,%r8
mov    %rsi,0x10(%rsp)
mov    %ecx,0xc(%rsp)
movl   $0x1,0x8(%rsp)
lea    0x10(%rsp),%rdx
lea    0x8(%rsp),%rcx
lea    0xc(%rsp),%r9
mov    $0x1,%esi
call   1030 <settings_get_n@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
define i32 @settings_get_ascii(i8* %0, i8* %1, i8* %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i32
store i8* %0, i8** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i32 %3, i32* %8
store i32 1, i32* %9
%10 = load i8*, i8** %5
%11 = load i8*, i8** %7
%12 = bitcast i8* %11 to i8**
%13 = call i32 @settings_get_n(i8* %10, i32 1, i8** %6, i32* %9, i8** %12, i32* %8)
ret i32 %13
}

LLVM IR (-O2):
define i32 @settings_get_ascii(i8* %0, i8* %1, i8* %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
store i8* %1, i8** %5
store i32 %3, i32* %6
%8 = bitcast i32* %7 to i8*
store i32 1, i32* %7
%9 = bitcast i8* %2 to i8**
%10 = call i32 @settings_get_n(i8* %0, i32 1, i8** %5, i32* %7, i8** %9, i32* %6)
ret i32 %10
}
/* Variables and functions */
double gaussLeg(int);
int /*<<< orphan*/ printf(char *, double);
int main(int argc, char const *argv[]) {
  printf("%.20f\n", gaussLeg(3));
  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    $0x3,%edi
call   1040 <gaussLeg@plt>
lea    0xeb9(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x3,%edi
call   1040 <gaussLeg@plt>
lea    0xece(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [7 x i8] c"%.20f\0A\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 = call double @gaussLeg(i32 3)
%7 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), double %6)
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c"%.20f\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call double @gaussLeg(i32 3)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), double %3)
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int safe_atou(char const *, unsigned int *);
int safe_atou32(const char *s, uint32_t *ret_u) {
  do {
    switch (0) {
    case 0:
    case !!(sizeof(uint32_t) == sizeof(unsigned)):;
    }
  } while (false);
  return safe_atou(s, (unsigned *)ret_u);
}


x86 assembly (clang, -O0):
<safe_atou32>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
jmp    1125 <safe_atou32+0x15>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <safe_atou@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<safe_atou32>:
jmp    1030 <safe_atou@plt>

LLVM IR (-O0):
define i32 @safe_atou32(i8* %0, i32* %1) {
%3 = alloca i8*
%4 = alloca i32*
store i8* %0, i8** %3
store i32* %1, i32** %4
br label %5
5: ; preds = %2
br label %6
6: ; preds = %5
%7 = load i8*, i8** %3
%8 = load i32*, i32** %4
%9 = call i32 @safe_atou(i8* %7, i32* %8)
ret i32 %9
}

LLVM IR (-O2):
define i32 @safe_atou32(i8* %0, i32* %1) {
%3 = tail call i32 @safe_atou(i8* %0, i32* %1)
ret i32 %3
}
/* Variables and functions */
size_t modulo_signed(int, unsigned int);
void modulo_call_Bad_FN(unsigned int len, int i) {
  char arr[len];
  arr[modulo_signed(i, len)] = 123;
}


x86 assembly (clang, -O0):
<modulo_call_Bad_FN>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x10(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x20(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x4(%rbp),%esi
call   1030 <modulo_signed@plt>
mov    %rax,%rcx
mov    -0x20(%rbp),%rax
movb   $0x7b,(%rax,%rcx,1)
mov    -0x10(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<modulo_call_Bad_FN>:
mov    %edi,%eax
mov    %esi,%edi
mov    %eax,%esi
jmp    1030 <modulo_signed@plt>

LLVM IR (-O0):
define void @modulo_call_Bad_FN(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i64
store i32 %0, i32* %3
store i32 %1, i32* %4
%7 = load i32, i32* %3
%8 = zext i32 %7 to i64
%9 = call i8* @llvm.stacksave()
store i8* %9, i8** %5
%10 = alloca i8, i64 %8
store i64 %8, i64* %6
%11 = load i32, i32* %4
%12 = load i32, i32* %3
%13 = call i64 @modulo_signed(i32 %11, i32 %12)
%14 = getelementptr inbounds i8, i8* %10, i64 %13
store i8 123, i8* %14
%15 = load i8*, i8** %5
ret void
}

LLVM IR (-O2):
define void @modulo_call_Bad_FN(i32 %0, i32 %1) {
%3 = tail call i64 @modulo_signed(i32 %1, i32 %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int /*<<< orphan*/, char *, int, char *);
int /*<<< orphan*/ isascii(int /*<<< orphan*/);
void t_isascii_0x00() {
  Assert_real((isascii(0)),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/"
              "dg/z88dk/test/suites/ctype/test_isascii.c",
              5, ("isascii should be 1 for 0x00"));
}


x86 assembly (clang, -O0):
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
call   1030 <isascii@plt>
mov    %eax,%edi
lea    0xecc(%rip),%rsi
mov    $0x5,%edx
lea    0xf68(%rip),%rcx
call   1040 <Assert_real@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
lea    0xee9(%rip),%rsi
lea    0xf8a(%rip),%rcx
mov    $0x1,%edi
mov    $0x5,%edx
jmp    1030 <Assert_real@plt>

LLVM IR (-O0):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isascii.c\00"
@.str.1 = [29 x i8] c"isascii should be 1 for 0x00\00"
define void @t_isascii_0x00() {
%1 = call i32 @isascii(i32 0)
%2 = call i32 @Assert_real(i32 %1, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 5, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isascii.c\00"
@.str.1 = [29 x i8] c"isascii should be 1 for 0x00\00"
define void @t_isascii_0x00() {
%1 = tail call i32 @Assert_real(i32 1, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 5, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Type definitions */
struct page {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ set_page_node(struct page *, unsigned long);
int /*<<< orphan*/ set_page_section(struct page *, unsigned long);
int /*<<< orphan*/ set_page_zone(struct page *, unsigned long);
__attribute__((always_)) void set_page_links(struct page *page,
                                             unsigned long zone,
                                             unsigned long node,
                                             unsigned long pfn) {
  set_page_zone(page, zone);
  set_page_node(page, node);
  set_page_section(page, ((pfn) >> 0));
}


x86 assembly (clang, -O0):
<set_page_links>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <set_page_zone@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1040 <set_page_node@plt>
mov    -0x8(%rbp),%rdi
mov    -0x20(%rbp),%rsi
shr    $0x0,%rsi
call   1050 <set_page_section@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_page_links>:
push   %r15
push   %r14
push   %rbx
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rdi,%rbx
call   1030 <set_page_zone@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1040 <set_page_node@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
pop    %rbx
pop    %r14
pop    %r15
jmp    1050 <set_page_section@plt>

LLVM IR (-O0):
%struct.page = type { i32 }
define void @set_page_links(%struct.page* %0, i64 %1, i64 %2, i64 %3) {
%5 = alloca %struct.page*
%6 = alloca i64
%7 = alloca i64
%8 = alloca i64
store %struct.page* %0, %struct.page** %5
store i64 %1, i64* %6
store i64 %2, i64* %7
store i64 %3, i64* %8
%9 = load %struct.page*, %struct.page** %5
%10 = load i64, i64* %6
%11 = call i32 @set_page_zone(%struct.page* %9, i64 %10)
%12 = load %struct.page*, %struct.page** %5
%13 = load i64, i64* %7
%14 = call i32 @set_page_node(%struct.page* %12, i64 %13)
%15 = load %struct.page*, %struct.page** %5
%16 = load i64, i64* %8
%17 = lshr i64 %16, 0
%18 = call i32 @set_page_section(%struct.page* %15, i64 %17)
ret void
}

LLVM IR (-O2):
%struct.page = type { i32 }
define void @set_page_links(%struct.page* %0, i64 %1, i64 %2, i64 %3) {
%5 = tail call i32 @set_page_zone(%struct.page* %0, i64 %1)
%6 = tail call i32 @set_page_node(%struct.page* %0, i64 %2)
%7 = tail call i32 @set_page_section(%struct.page* %0, i64 %3)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
void print_strings(char *p[], int n) {
  int count;
  for (count = 0; count < n; count++)
    printf("%s ", p[count]);
  printf("\n");
}


x86 assembly (clang, -O0):
<print_strings>:
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    115a <print_strings+0x4a>
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xebb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1126 <print_strings+0x16>
lea    0xea3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_strings>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
test   %esi,%esi
jle    1157 <print_strings+0x37>
mov    %rdi,%r15
mov    %esi,%r12d
lea    0xec7(%rip),%r14
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
mov    (%r15,%rbx,8),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%rbx
cmp    %rbx,%r12
jne    1140 <print_strings+0x20>
mov    $0xa,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"%s \00"
@.str.1 = [2 x i8] c"\0A\00"
define void @print_strings(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 = %17, %2
%7 = load i32, i32* %5
%8 = load i32, i32* %4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %20
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
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %15)
br label %17
17: ; preds = %10
%18 = load i32, i32* %5
%19 = add nsw i32 %18, 1
store i32 %19, i32* %5
br label %6
20: ; preds = %6
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"%s \00"
define void @print_strings(i8** nocapture %0, i32 %1) {
%3 = icmp sgt i32 %1, 0
br i1 %3, label %4, label %13
4: ; preds = %2
%5 = zext i32 %1 to i64
br label %6
6: ; preds = %4, %6
%7 = phi i64 [ 0, %4 ], [ %11, %6 ]
%8 = getelementptr inbounds i8*, i8** %0, i64 %7
%9 = load i8*, i8** %8
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %9)
%11 = add nuw nsw i64 %7, 1
%12 = icmp eq i64 %11, %5
br i1 %12, label %13, label %6
13: ; preds = %6, %2
%14 = tail call i32 @putchar(i32 10)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ sprintf(char *, char *, char *);
char *compilator_name() {
  static char _CompilatorName[512];
  _CompilatorName[0] = 0;
  sprintf(&_CompilatorName[0], ": target Linux, compiled by GCC %s", "9.4.0");
  return _CompilatorName;
}


x86 assembly (clang, -O0):
<compilator_name>:
push   %rbp
mov    %rsp,%rbp
movb   $0x0,0x2f25(%rip)
lea    0x2f1e(%rip),%rdi
lea    0xed7(%rip),%rsi
lea    0xef3(%rip),%rdx
call   1030 <sprintf@plt>
lea    0x2f04(%rip),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<compilator_name>:
push   %rbx
movb   $0x0,0x2f28(%rip)
lea    0x2f21(%rip),%rbx
lea    0xeda(%rip),%rsi
lea    0xef6(%rip),%rdx
mov    %rbx,%rdi
call   1030 <sprintf@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
@compilator_name._CompilatorName = internal global [512 x i8] zeroinitializer
@.str = [35 x i8] c": target Linux, compiled by GCC %s\00"
@.str.1 = [6 x i8] c"9.4.0\00"
define i8* @compilator_name() {
store i8 0, i8* getelementptr inbounds ([512 x i8], [512 x i8]* @compilator_name._CompilatorName, i64 0, i64 0)
%1 = call i32 @sprintf(i8* getelementptr inbounds ([512 x i8], [512 x i8]* @compilator_name._CompilatorName, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
ret i8* getelementptr inbounds ([512 x i8], [512 x i8]* @compilator_name._CompilatorName, i64 0, i64 0)
}

LLVM IR (-O2):
@compilator_name._CompilatorName = internal global [512 x i8] zeroinitializer
@.str = [35 x i8] c": target Linux, compiled by GCC %s\00"
@.str.1 = [6 x i8] c"9.4.0\00"
define i8* @compilator_name() {
store i8 0, i8* getelementptr inbounds ([512 x i8], [512 x i8]* @compilator_name._CompilatorName, i64 0, i64 0)
%1 = tail call i32 @sprintf(i8* dereferenceable(1) getelementptr inbounds ([512 x i8], [512 x i8]* @compilator_name._CompilatorName, i64 0, i64 0), i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
ret i8* getelementptr inbounds ([512 x i8], [512 x i8]* @compilator_name._CompilatorName, i64 0, i64 0)
}
int adis16060_initialize_ring(struct iio_ring_buffer *ring) { return 0; }


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

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

LLVM IR (-O0):
%struct.iio_ring_buffer = type opaque
define i32 @adis16060_initialize_ring(%struct.iio_ring_buffer* %0) {
%2 = alloca %struct.iio_ring_buffer*
store %struct.iio_ring_buffer* %0, %struct.iio_ring_buffer** %2
ret i32 0
}

LLVM IR (-O2):
%struct.iio_ring_buffer = type opaque
define i32 @adis16060_initialize_ring(%struct.iio_ring_buffer* nocapture readnone %0) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ CodeTable();
int /*<<< orphan*/ DecoderTables();
int /*<<< orphan*/ SizeTable();
void MakeDecoderHuffman() {
  static char RoutineName[] = "MakeDecoderHuffman";
  SizeTable();
  CodeTable();
  DecoderTables();
}


x86 assembly (clang, -O0):
<MakeDecoderHuffman>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <SizeTable@plt>
mov    $0x0,%al
call   1050 <CodeTable@plt>
mov    $0x0,%al
call   1040 <DecoderTables@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<MakeDecoderHuffman>:
push   %rax
xor    %eax,%eax
call   1030 <SizeTable@plt>
xor    %eax,%eax
call   1050 <CodeTable@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <DecoderTables@plt>

LLVM IR (-O0):
@MakeDecoderHuffman.RoutineName = internal global [19 x i8] c"MakeDecoderHuffman\00"
define void @MakeDecoderHuffman() {
%1 = call i32 (...) @SizeTable()
%2 = call i32 (...) @CodeTable()
%3 = call i32 (...) @DecoderTables()
ret void
}

LLVM IR (-O2):
define void @MakeDecoderHuffman() {
%1 = tail call i32 (...) @SizeTable()
%2 = tail call i32 (...) @CodeTable()
%3 = tail call i32 (...) @DecoderTables()
ret void
}
int ck_curpos(row, col) { return (-1); }


x86 assembly (clang, -O0):
<ck_curpos>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    $0xffffffff,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @ck_curpos(i32 %0, i32 %1) {
ret i32 -1
}
/* Variables and functions */
float __ocml_log2_f32(float);
float __log2f(float x) { return __ocml_log2_f32(x); }


x86 assembly (clang, -O0):
<__log2f>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
call   1030 <__ocml_log2_f32@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__log2f>:
jmp    1030 <__ocml_log2_f32@plt>

LLVM IR (-O0):
define float @__log2f(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = call float @__ocml_log2_f32(float %3)
ret float %4
}

LLVM IR (-O2):
define float @__log2f(float %0) {
%2 = tail call float @__ocml_log2_f32(float %0)
ret float %2
}
/* Variables and functions */
int /*<<< orphan*/ fcntl(int /*<<< orphan*/, int, int);
void test_tag_expresssion(int b) {
  fcntl(0, b ? 10 : 20, 10);
  fcntl(0, b + 10, 10);
  fcntl(0, (b, 10), 10);
}


x86 assembly (clang, -O0):
<test_tag_expresssion>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%ecx
mov    $0x14,%esi
mov    $0xa,%eax
cmp    $0x0,%ecx
cmovne %eax,%esi
xor    %edi,%edi
mov    $0xa,%edx
call   1030 <fcntl@plt>
mov    -0x4(%rbp),%esi
add    $0xa,%esi
xor    %edi,%edi
mov    $0xa,%edx
call   1030 <fcntl@plt>
xor    %edi,%edi
mov    $0xa,%edx
mov    %edx,%esi
call   1030 <fcntl@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_tag_expresssion>:
push   %rbx
mov    %edi,%ebx
test   %edi,%edi
mov    $0x14,%esi
mov    $0xa,%eax
cmovne %eax,%esi
xor    %edi,%edi
mov    $0xa,%edx
call   1030 <fcntl@plt>
add    $0xa,%ebx
xor    %edi,%edi
mov    %ebx,%esi
mov    $0xa,%edx
call   1030 <fcntl@plt>
xor    %edi,%edi
mov    $0xa,%esi
mov    $0xa,%edx
pop    %rbx
jmp    1030 <fcntl@plt>

LLVM IR (-O0):
define void @test_tag_expresssion(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp ne i32 %3, 0
%5 = zext i1 %4 to i64
%6 = select i1 %4, i32 10, i32 20
%7 = call i32 @fcntl(i32 0, i32 %6, i32 10)
%8 = load i32, i32* %2
%9 = add nsw i32 %8, 10
%10 = call i32 @fcntl(i32 0, i32 %9, i32 10)
%11 = load i32, i32* %2
%12 = call i32 @fcntl(i32 0, i32 10, i32 10)
ret void
}

LLVM IR (-O2):
define void @test_tag_expresssion(i32 %0) {
%2 = icmp eq i32 %0, 0
%3 = select i1 %2, i32 20, i32 10
%4 = tail call i32 @fcntl(i32 0, i32 %3, i32 10)
%5 = add nsw i32 %0, 10
%6 = tail call i32 @fcntl(i32 0, i32 %5, i32 10)
%7 = tail call i32 @fcntl(i32 0, i32 10, i32 10)
ret void
}
void EVP_set_pw_prompt(void) {}


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

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

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

LLVM IR (-O2):
define void @EVP_set_pw_prompt() {
ret void
}
char *stack_next_frame(char *bp) {
  char *nbp = *((char **)(bp) + 3);
  if (nbp < bp)
    return 0;
  return nbp;
}


x86 assembly (clang, -O0):
<stack_next_frame>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
cmp    -0x10(%rbp),%rax
jae    112f <stack_next_frame+0x2f>
movq   $0x0,-0x8(%rbp)
jmp    1137 <stack_next_frame+0x37>
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<stack_next_frame>:
mov    0x18(%rdi),%rcx
xor    %eax,%eax
cmp    %rdi,%rcx
cmovae %rcx,%rax
ret

LLVM IR (-O0):
define i8* @stack_next_frame(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
%5 = load i8*, i8** %3
%6 = bitcast i8* %5 to i8**
%7 = getelementptr inbounds i8*, i8** %6, i64 3
%8 = load i8*, i8** %7
store i8* %8, i8** %4
%9 = load i8*, i8** %4
%10 = load i8*, i8** %3
%11 = icmp ult i8* %9, %10
br i1 %11, label %12, label %13
12: ; preds = %1
store i8* null, i8** %2
br label %15
13: ; preds = %1
%14 = load i8*, i8** %4
store i8* %14, i8** %2
br label %15
15: ; preds = %13, %12
%16 = load i8*, i8** %2
ret i8* %16
}

LLVM IR (-O2):
define i8* @stack_next_frame(i8* %0) {
%2 = getelementptr inbounds i8, i8* %0, i64 24
%3 = bitcast i8* %2 to i8**
%4 = load i8*, i8** %3
%5 = icmp ult i8* %4, %0
%6 = select i1 %5, i8* null, i8* %4
ret i8* %6
}
/* Variables and functions */
int f31(int *);
int f32(int *p) { return f31(p); }


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

x86 assembly (clang, -O2):
<f32>:
jmp    1030 <f31@plt>

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

LLVM IR (-O2):
define i32 @f32(i32* %0) {
%2 = tail call i32 @f31(i32* %0)
ret i32 %2
}
double fac(int i) {
  double ret = i;
  while (--i > 0)
    ret *= i;
  return ret;
}


x86 assembly (clang, -O0):
<fac>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
cvtsi2sdl -0x4(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x4(%rbp)
cmp    $0x0,%eax
jle    1137 <fac+0x37>
cvtsi2sdl -0x4(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
jmp    1111 <fac+0x11>
movsd  -0x10(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<fac>:
cvtsi2sd %edi,%xmm0
cmp    $0x2,%edi
jl     1126 <fac+0x26>
add    $0x1,%edi
nopl   0x0(%rax)
lea    -0x2(%rdi),%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
add    $0xffffffff,%edi
cmp    $0x2,%edi
ja     1110 <fac+0x10>
ret

LLVM IR (-O0):
define double @fac(i32 %0) {
%2 = alloca i32
%3 = alloca double
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = sitofp i32 %4 to double
store double %5, double* %3
br label %6
6: ; preds = %10, %1
%7 = load i32, i32* %2
%8 = add nsw i32 %7, -1
store i32 %8, i32* %2
%9 = icmp sgt i32 %8, 0
br i1 %9, label %10, label %15
10: ; preds = %6
%11 = load i32, i32* %2
%12 = sitofp i32 %11 to double
%13 = load double, double* %3
%14 = fmul double %13, %12
store double %14, double* %3
br label %6
15: ; preds = %6
%16 = load double, double* %3
ret double %16
}

LLVM IR (-O2):
define double @fac(i32 %0) {
%2 = sitofp i32 %0 to double
%3 = icmp sgt i32 %0, 1
br i1 %3, label %4, label %11
4: ; preds = %1, %4
%5 = phi i32 [ %7, %4 ], [ %0, %1 ]
%6 = phi double [ %9, %4 ], [ %2, %1 ]
%7 = add nsw i32 %5, -1
%8 = sitofp i32 %7 to double
%9 = fmul double %6, %8
%10 = icmp ugt i32 %5, 2
br i1 %10, label %4, label %11
11: ; preds = %4, %1
%12 = phi double [ %2, %1 ], [ %9, %4 ]
ret double %12
}
struct _intel_dri_share_buffer_object *
intel_dri_share_buffer_object(void *user_data) {
  return (struct _intel_dri_share_buffer_object *)user_data;
}


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

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

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

LLVM IR (-O2):
%struct._intel_dri_share_buffer_object = type opaque
define %struct._intel_dri_share_buffer_object* @intel_dri_share_buffer_object(i8* readnone %0) {
%2 = bitcast i8* %0 to %struct._intel_dri_share_buffer_object*
ret %struct._intel_dri_share_buffer_object* %2
}
/* Variables and functions */
int /*<<< orphan*/ srcopy(int);
void cmd_srwrite() { srcopy(0x80); }


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

x86 assembly (clang, -O2):
<cmd_srwrite>:
mov    $0x80,%edi
jmp    1030 <srcopy@plt>

LLVM IR (-O0):
define void @cmd_srwrite() {
%1 = call i32 @srcopy(i32 128)
ret void
}

LLVM IR (-O2):
define void @cmd_srwrite() {
%1 = tail call i32 @srcopy(i32 128)
ret void
}
/* Type definitions */
typedef int uint8_t;
typedef int uint32_t;
struct can_frame {
  scalar_t__ *data;
};

/* Variables and functions */
uint8_t data8(struct can_frame frame) { return (uint32_t)frame.data[4] << 0; }


x86 assembly (clang, -O0):
<data8>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    0x20(%rax),%rax
shl    $0x0,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
%struct.can_frame = type { i64* }
define i32 @data8(i64* %0) {
%2 = alloca %struct.can_frame
%3 = getelementptr inbounds %struct.can_frame, %struct.can_frame* %2, i32 0, i32 0
store i64* %0, i64** %3
%4 = getelementptr inbounds %struct.can_frame, %struct.can_frame* %2, i32 0, i32 0
%5 = load i64*, i64** %4
%6 = getelementptr inbounds i64, i64* %5, i64 4
%7 = load i64, i64* %6
%8 = trunc i64 %7 to i32
%9 = shl i32 %8, 0
ret i32 %9
}

LLVM IR (-O2):
define i32 @data8(i64* nocapture %0) {
%2 = getelementptr inbounds i64, i64* %0, i64 4
%3 = load i64, i64* %2
%4 = trunc i64 %3 to i32
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ abort();
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int f();
main() {
  if (f() != 498)
    abort();
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <f@plt>
cmp    $0x1f2,%eax
je     1158 <main+0x28>
mov    $0x0,%al
call   1030 <abort@plt>
xor    %edi,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <f@plt>
cmp    $0x1f2,%eax
jne    1146 <main+0x16>
xor    %edi,%edi
call   1050 <exit@plt>
xor    %eax,%eax
call   1030 <abort@plt>

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @f()
%2 = icmp eq i32 %1, 498
br i1 %2, label %5, label %3
3: ; preds = %0
%4 = tail call i32 (...) @abort()
unreachable
5: ; preds = %0
%6 = tail call i32 @exit(i32 0)
unreachable
}
void f97(void) {
  ({
    ({ 0; });
    ({ 0; });
    0;
  });
a:
  goto a;
  ({
    ({ 0; });
    ({ 0; });
    0;
  });
  0;
}


x86 assembly (clang, -O0):
<f97>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
jmp    1119 <f97+0x19>

x86 assembly (clang, -O2):
<f97>:
jmp    1100 <f97>

LLVM IR (-O0):
define void @f97() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
%4 = load i32, i32* %1
store i32 0, i32* %2
%5 = load i32, i32* %2
store i32 0, i32* %3
%6 = load i32, i32* %3
br label %7
7: ; preds = %7, %0
br label %7
}

LLVM IR (-O2):
define void @f97() {
br label %1
1: ; preds = %1, %0
br label %1
}
/* Variables and functions */
void const *GppcFinfoV1();
const void *pg_finfo_boolfunc(void) { return GppcFinfoV1(); }


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

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

LLVM IR (-O0):
define i8* @pg_finfo_boolfunc() {
%1 = call i8* (...) @GppcFinfoV1()
ret i8* %1
}

LLVM IR (-O2):
define i8* @pg_finfo_boolfunc() {
%1 = tail call i8* (...) @GppcFinfoV1()
ret i8* %1
}
/* Variables and functions */
int /*<<< orphan*/ HplMsp430GeneralIOP__29__IO__makeOutput();
void Msp430GpioC__6__HplGeneralIO__makeOutput(void) {
  HplMsp430GeneralIOP__29__IO__makeOutput();
}


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

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

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

LLVM IR (-O2):
define void @Msp430GpioC__6__HplGeneralIO__makeOutput() {
%1 = tail call i32 (...) @HplMsp430GeneralIOP__29__IO__makeOutput()
ret void
}
unsigned int get_InitMn(unsigned char *pds) { return pds[16]; }


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

x86 assembly (clang, -O2):
<get_InitMn>:
movzbl 0x10(%rdi),%eax
ret

LLVM IR (-O0):
define i32 @get_InitMn(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = getelementptr inbounds i8, i8* %3, i64 16
%5 = load i8, i8* %4
%6 = zext i8 %5 to i32
ret i32 %6
}

LLVM IR (-O2):
define i32 @get_InitMn(i8* nocapture %0) {
%2 = getelementptr inbounds i8, i8* %0, i64 16
%3 = load i8, i8* %2
%4 = zext i8 %3 to i32
ret i32 %4
}
/* Variables and functions */
int atoi(char *);
int /*<<< orphan*/ read_line(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ stdin;
int get_integer_input() {
  int choice = 666;
  char buff[5];
  read_line(buff, sizeof(char) * 5, stdin);
  choice = atoi(buff);
  return choice;
}


x86 assembly (clang, -O0):
<get_integer_input>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x29a,-0x4(%rbp)
lea    -0x9(%rbp),%rdi
mov    0x2eae(%rip),%rax
mov    (%rax),%edx
mov    $0x5,%esi
call   1030 <read_line@plt>
lea    -0x9(%rbp),%rdi
call   1040 <atoi@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_integer_input>:
push   %rbx
sub    $0x10,%rsp
mov    0x2ebc(%rip),%rax
mov    (%rax),%edx
lea    0xb(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x5,%esi
call   1030 <read_line@plt>
mov    %rbx,%rdi
call   1040 <atoi@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@stdin = global i32 0
define i32 @get_integer_input() {
%1 = alloca i32
%2 = alloca [5 x i8]
store i32 666, i32* %1
%3 = getelementptr inbounds [5 x i8], [5 x i8]* %2, i64 0, i64 0
%4 = load i32, i32* @stdin
%5 = call i32 @read_line(i8* %3, i32 5, i32 %4)
%6 = getelementptr inbounds [5 x i8], [5 x i8]* %2, i64 0, i64 0
%7 = call i32 @atoi(i8* %6)
store i32 %7, i32* %1
%8 = load i32, i32* %1
ret i32 %8
}

LLVM IR (-O2):
@stdin = global i32 0
define i32 @get_integer_input() {
%1 = alloca [5 x i8]
%2 = getelementptr inbounds [5 x i8], [5 x i8]* %1, i64 0, i64 0
%3 = load i32, i32* @stdin
%4 = call i32 @read_line(i8* %2, i32 5, i32 %3)
%5 = call i32 @atoi(i8* %2)
ret i32 %5
}
int prime(int i) {
  int j;
  if (i == 1)
    return 0;
  for (j = 2; j <= i / 2; j++)
    if (i % j == 0) {
      return 0;
    }
  return 1;
}


x86 assembly (clang, -O0):
<prime>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0x1,-0x8(%rbp)
jne    111d <prime+0x1d>
movl   $0x0,-0x4(%rbp)
jmp    1178 <prime+0x78>
movl   $0x2,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x10(%rbp),%eax
cmp    %ecx,%eax
jg     1171 <prime+0x71>
mov    -0x8(%rbp),%eax
cltd
idivl  -0xc(%rbp)
cmp    $0x0,%edx
jne    115e <prime+0x5e>
movl   $0x0,-0x4(%rbp)
jmp    1178 <prime+0x78>
jmp    1163 <prime+0x63>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1124 <prime+0x24>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<prime>:
xor    %r8d,%r8d
cmp    $0x1,%edi
jne    110c <prime+0xc>
mov    %r8d,%eax
ret
cmp    $0x4,%edi
jge    1117 <prime+0x17>
mov    $0x1,%eax
ret
mov    %edi,%esi
shr    %esi
neg    %esi
mov    $0x2,%ecx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %edi,%eax
cltd
idiv   %ecx
test   %edx,%edx
je     1108 <prime+0x8>
lea    (%rsi,%rcx,1),%eax
add    $0x1,%eax
add    $0x1,%ecx
cmp    $0x1,%eax
jne    1130 <prime+0x30>
mov    $0x1,%eax
ret

LLVM IR (-O0):
define i32 @prime(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
%5 = load i32, i32* %3
%6 = icmp eq i32 %5, 1
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 0, i32* %2
br label %25
8: ; preds = %1
store i32 2, i32* %4
br label %9
9: ; preds = %21, %8
%10 = load i32, i32* %4
%11 = load i32, i32* %3
%12 = sdiv i32 %11, 2
%13 = icmp sle i32 %10, %12
br i1 %13, label %14, label %24
14: ; preds = %9
%15 = load i32, i32* %3
%16 = load i32, i32* %4
%17 = srem i32 %15, %16
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %14
store i32 0, i32* %2
br label %25
20: ; preds = %14
br label %21
21: ; preds = %20
%22 = load i32, i32* %4
%23 = add nsw i32 %22, 1
store i32 %23, i32* %4
br label %9
24: ; preds = %9
store i32 1, i32* %2
br label %25
25: ; preds = %24, %19, %7
%26 = load i32, i32* %2
ret i32 %26
}

LLVM IR (-O2):
define i32 @prime(i32 %0) {
%2 = icmp eq i32 %0, 1
br i1 %2, label %14, label %3
3: ; preds = %1
%4 = icmp slt i32 %0, 4
br i1 %4, label %14, label %5
5: ; preds = %3
%6 = lshr i32 %0, 1
br label %10
7: ; preds = %10
%8 = add nuw nsw i32 %11, 1
%9 = icmp eq i32 %11, %6
br i1 %9, label %14, label %10
10: ; preds = %5, %7
%11 = phi i32 [ %8, %7 ], [ 2, %5 ]
%12 = srem i32 %0, %11
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %7
14: ; preds = %10, %7, %3, %1
%15 = phi i32 [ 0, %1 ], [ 1, %3 ], [ 0, %10 ], [ 1, %7 ]
ret i32 %15
}
void gtk_clipboard_get_for_display() {}


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

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

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

LLVM IR (-O2):
define void @gtk_clipboard_get_for_display() {
ret void
}
int chmod(s, m)
char *s;
{ return (0); }


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

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

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

LLVM IR (-O2):
define i32 @chmod(i8* nocapture readnone %0, i32 %1) {
ret i32 0
}
int test_imm_62int8_reg(signed char val) {
  return ((val) & (-0x62 << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_62int8_reg>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%edx
and    $0xffffff9e,%edx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_62int8_reg>:
test   $0x9e,%dil
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_imm_62int8_reg(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = sext i8 %3 to i32
%5 = and i32 %4, -98
%6 = icmp ne i32 %5, 0
%7 = zext i1 %6 to i64
%8 = select i1 %6, i32 -20, i32 -40
ret i32 %8
}

LLVM IR (-O2):
define i32 @test_imm_62int8_reg(i8 signext %0) {
%2 = and i8 %0, -98
%3 = icmp eq i8 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
/* Variables and functions */
int _tfsopen(char *, long, char *);
int /*<<< orphan*/ monLock();
int /*<<< orphan*/ monUnlock();
int mon_tfsopen(char *file, long flagmode, char *buf) {
  int ret;
  monLock();
  ret = _tfsopen(file, flagmode, buf);
  monUnlock();
  return (ret);
}


x86 assembly (clang, -O0):
<mon_tfsopen>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    $0x0,%al
call   1040 <monLock@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1030 <_tfsopen@plt>
mov    %eax,-0x1c(%rbp)
mov    $0x0,%al
call   1050 <monUnlock@plt>
mov    -0x1c(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mon_tfsopen>:
push   %r15
push   %r14
push   %rbx
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%rbx
xor    %eax,%eax
call   1040 <monLock@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
call   1030 <_tfsopen@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1050 <monUnlock@plt>
mov    %ebx,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i32 @mon_tfsopen(i8* %0, i64 %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i64
%6 = alloca i8*
%7 = alloca i32
store i8* %0, i8** %4
store i64 %1, i64* %5
store i8* %2, i8** %6
%8 = call i32 (...) @monLock()
%9 = load i8*, i8** %4
%10 = load i64, i64* %5
%11 = load i8*, i8** %6
%12 = call i32 @_tfsopen(i8* %9, i64 %10, i8* %11)
store i32 %12, i32* %7
%13 = call i32 (...) @monUnlock()
%14 = load i32, i32* %7
ret i32 %14
}

LLVM IR (-O2):
define i32 @mon_tfsopen(i8* %0, i64 %1, i8* %2) {
%4 = tail call i32 (...) @monLock()
%5 = tail call i32 @_tfsopen(i8* %0, i64 %1, i8* %2)
%6 = tail call i32 (...) @monUnlock()
ret i32 %5
}