xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ assert(int);
scalar_t__ f1(unsigned char, unsigned char);
scalar_t__ f2(unsigned char, unsigned char);
unsigned char nondet_uchar();
int main() {
  unsigned char a, b;
  a = nondet_uchar();
  b = nondet_uchar();
  assert(f1(a, b) == f2(a, b));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <nondet_uchar@plt>
mov    %al,-0x5(%rbp)
mov    $0x0,%al
call   1040 <nondet_uchar@plt>
mov    %al,-0x6(%rbp)
mov    -0x5(%rbp),%al
movzbl %al,%edi
movzbl -0x6(%rbp),%esi
call   1060 <f1@plt>
mov    %rax,-0x10(%rbp)
mov    -0x5(%rbp),%al
movzbl %al,%edi
movzbl -0x6(%rbp),%esi
call   1030 <f2@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
xor    %eax,%eax
call   1040 <nondet_uchar@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1040 <nondet_uchar@plt>
movzbl %bl,%ebx
movzbl %al,%ebp
mov    %ebx,%edi
mov    %ebp,%esi
call   1060 <f1@plt>
mov    %rax,%r14
mov    %ebx,%edi
mov    %ebp,%esi
call   1030 <f2@plt>
xor    %edi,%edi
cmp    %rax,%r14
sete   %dil
call   1050 <assert@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i8
store i32 0, i32* %1
%4 = call zeroext i8 (...) @nondet_uchar()
store i8 %4, i8* %2
%5 = call zeroext i8 (...) @nondet_uchar()
store i8 %5, i8* %3
%6 = load i8, i8* %2
%7 = load i8, i8* %3
%8 = call i64 @f1(i8 zeroext %6, i8 zeroext %7)
%9 = load i8, i8* %2
%10 = load i8, i8* %3
%11 = call i64 @f2(i8 zeroext %9, i8 zeroext %10)
%12 = icmp eq i64 %8, %11
%13 = zext i1 %12 to i32
%14 = call i32 @assert(i32 %13)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call zeroext i8 (...) @nondet_uchar()
%2 = tail call zeroext i8 (...) @nondet_uchar()
%3 = tail call i64 @f1(i8 zeroext %1, i8 zeroext %2)
%4 = tail call i64 @f2(i8 zeroext %1, i8 zeroext %2)
%5 = icmp eq i64 %3, %4
%6 = zext i1 %5 to i32
%7 = tail call i32 @assert(i32 %6)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ free(void *);
void do_free(void *ptr, size_t size) {
  ;
  free(ptr);
}


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

x86 assembly (clang, -O2):
<do_free>:
jmp    1030 <free@plt>

LLVM IR (-O0):
define void @do_free(i8* %0, i64 %1) {
%3 = alloca i8*
%4 = alloca i64
store i8* %0, i8** %3
store i64 %1, i64* %4
%5 = load i8*, i8** %3
%6 = call i32 @free(i8* %5)
ret void
}

LLVM IR (-O2):
define void @do_free(i8* nocapture %0, i64 %1) {
%3 = tail call i32 @free(i8* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ testAppendConversation();
int /*<<< orphan*/ testNewConversation();
void testConversation() {
  testNewConversation();
  testAppendConversation();
}


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

x86 assembly (clang, -O2):
<testConversation>:
push   %rax
xor    %eax,%eax
call   1030 <testNewConversation@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <testAppendConversation@plt>

LLVM IR (-O0):
define void @testConversation() {
%1 = call i32 (...) @testNewConversation()
%2 = call i32 (...) @testAppendConversation()
ret void
}

LLVM IR (-O2):
define void @testConversation() {
%1 = tail call i32 (...) @testNewConversation()
%2 = tail call i32 (...) @testAppendConversation()
ret void
}
/* Variables and functions */
void *compare_mempos_context(void) { return NULL; }


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

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

LLVM IR (-O0):
define i8* @compare_mempos_context() {
ret i8* null
}

LLVM IR (-O2):
define noalias i8* @compare_mempos_context() {
ret i8* null
}
/* Type definitions */
struct list {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ list_add(struct list *, int);
struct list *list_create();
int /*<<< orphan*/ list_dispose(struct list *);
int list_remove(struct list *);
int main(void) {
  int i;
  struct list *l = list_create();
  list_add(l, 1);
  list_add(l, 2);
  list_add(l, 3);
  i = list_remove(l);
  list_dispose(l);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <list_create@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x1,%esi
call   1050 <list_add@plt>
mov    -0x10(%rbp),%rdi
mov    $0x2,%esi
call   1050 <list_add@plt>
mov    -0x10(%rbp),%rdi
mov    $0x3,%esi
call   1050 <list_add@plt>
mov    -0x10(%rbp),%rdi
call   1060 <list_remove@plt>
mov    %eax,-0x8(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <list_dispose@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1040 <list_create@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    $0x1,%esi
call   1050 <list_add@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
call   1050 <list_add@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
call   1050 <list_add@plt>
mov    %rbx,%rdi
call   1060 <list_remove@plt>
mov    %rbx,%rdi
call   1030 <list_dispose@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
%struct.list = type { i32 }
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca %struct.list*
store i32 0, i32* %1
%4 = call %struct.list* (...) @list_create()
store %struct.list* %4, %struct.list** %3
%5 = load %struct.list*, %struct.list** %3
%6 = call i32 @list_add(%struct.list* %5, i32 1)
%7 = load %struct.list*, %struct.list** %3
%8 = call i32 @list_add(%struct.list* %7, i32 2)
%9 = load %struct.list*, %struct.list** %3
%10 = call i32 @list_add(%struct.list* %9, i32 3)
%11 = load %struct.list*, %struct.list** %3
%12 = call i32 @list_remove(%struct.list* %11)
store i32 %12, i32* %2
%13 = load %struct.list*, %struct.list** %3
%14 = call i32 @list_dispose(%struct.list* %13)
ret i32 0
}

LLVM IR (-O2):
%struct.list = type { i32 }
define i32 @main() {
%1 = tail call %struct.list* (...) @list_create()
%2 = tail call i32 @list_add(%struct.list* %1, i32 1)
%3 = tail call i32 @list_add(%struct.list* %1, i32 2)
%4 = tail call i32 @list_add(%struct.list* %1, i32 3)
%5 = tail call i32 @list_remove(%struct.list* %1)
%6 = tail call i32 @list_dispose(%struct.list* %1)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ system(char *);
void term_nocbne() { system("stty -cbreak echo"); }


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

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

LLVM IR (-O0):
@.str = [18 x i8] c"stty -cbreak echo\00"
define void @term_nocbne() {
%1 = call i32 @system(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [18 x i8] c"stty -cbreak echo\00"
define void @term_nocbne() {
%1 = tail call i32 @system(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ pmu_reg_write(int, int);
void pmu_adc_reset_setting() {
  pmu_reg_write(0x3C, ((1 << 0) | (1 << 1) | (1 << 2) | (1 << 3) | (1 << 4) |
                       (1 << 5) | (1 << 6) | (1 << 7) | (1 << 8) | (1 << 9) |
                       (1 << 10) | (0 << 11) | (0 << 12) | (0 << 13) |
                       (1 << 14) | (1 << 15) | (1 << 16) | (1 << 17) |
                       (1 << 18) | (0 << 19) | (1 << 20)));
}


x86 assembly (clang, -O0):
<pmu_adc_reset_setting>:
push   %rbp
mov    %rsp,%rbp
mov    $0x3c,%edi
mov    $0x17c7ff,%esi
call   1030 <pmu_reg_write@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<pmu_adc_reset_setting>:
mov    $0x3c,%edi
mov    $0x17c7ff,%esi
jmp    1030 <pmu_reg_write@plt>

LLVM IR (-O0):
define void @pmu_adc_reset_setting() {
%1 = call i32 @pmu_reg_write(i32 60, i32 1558527)
ret void
}

LLVM IR (-O2):
define void @pmu_adc_reset_setting() {
%1 = tail call i32 @pmu_reg_write(i32 60, i32 1558527)
ret void
}
void fc187(int n) {
a : {
  typedef int(*b)[n];
  {
    typedef int(*c)[n];
    0;
  }
  {
    typedef int(*d)[n];
    0;
  };
  typedef int(*e)[n];
  0;
};
  {
    typedef int(*f)[n];
    {
      typedef int(*g)[n];
      0;
    };
    {
      typedef int(*h)[n];
      goto a;
      0;
    };
    ;
    typedef int(*i)[n];
    0;
  };
  ;
  typedef int(*j)[n];
  0;
}


x86 assembly (clang, -O0):
<fc187>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
jmp    1107 <fc187+0x7>

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

LLVM IR (-O0):
define void @fc187(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
br label %3
3: ; preds = %3, %1
%4 = load i32, i32* %2
%5 = zext i32 %4 to i64
%6 = load i32, i32* %2
%7 = zext i32 %6 to i64
%8 = load i32, i32* %2
%9 = zext i32 %8 to i64
%10 = load i32, i32* %2
%11 = zext i32 %10 to i64
%12 = load i32, i32* %2
%13 = zext i32 %12 to i64
%14 = load i32, i32* %2
%15 = zext i32 %14 to i64
%16 = load i32, i32* %2
%17 = zext i32 %16 to i64
br label %3
18: ; No predecessors!
%19 = load i32, i32* %2
%20 = zext i32 %19 to i64
%21 = load i32, i32* %2
%22 = zext i32 %21 to i64
ret void
}

LLVM IR (-O2):
define void @fc187(i32 %0) {
br label %2
2: ; preds = %2, %1
br label %2
}
/* Variables and functions */
int vdb_flush();
int /*<<< orphan*/ vdb_printf(char *);
__attribute__((weak)) int vdb_frame() {
  vdb_printf("f\n");
  return vdb_flush();
}


x86 assembly (clang, -O0):
<vdb_frame>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <vdb_printf@plt>
mov    $0x0,%al
call   1040 <vdb_flush@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<vdb_frame>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <vdb_printf@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <vdb_flush@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"f\0A\00"
define weak i32 @vdb_frame() {
%1 = call i32 @vdb_printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (...) @vdb_flush()
ret i32 %2
}

LLVM IR (-O2):
@.str = [3 x i8] c"f\0A\00"
define weak i32 @vdb_frame() {
%1 = tail call i32 @vdb_printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (...) @vdb_flush()
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isalpha(int);
void t_isalpha_0xbf() {
  Assert_real((isalpha(191) == 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_isalpha.c",
              960, ("isalpha should be 0 for 0xbf"));
}


x86 assembly (clang, -O0):
<t_isalpha_0xbf>:
push   %rbp
mov    %rsp,%rbp
mov    $0xbf,%edi
call   1030 <isalpha@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xebf(%rip),%rsi
mov    $0x3c0,%edx
lea    0xf5b(%rip),%rcx
call   1040 <Assert_real@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_isalpha_0xbf>:
push   %rax
mov    $0xbf,%edi
call   1030 <isalpha@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x3c0,%edx
pop    %rax
jmp    1040 <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_isalpha.c\00"
@.str.1 = [29 x i8] c"isalpha should be 0 for 0xbf\00"
define void @t_isalpha_0xbf() {
%1 = call i64 @isalpha(i32 191)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 960, 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_isalpha.c\00"
@.str.1 = [29 x i8] c"isalpha should be 0 for 0xbf\00"
define void @t_isalpha_0xbf() {
%1 = tail call i64 @isalpha(i32 191)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 960, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
int main() {
  struct {
    int *arr;
  } mystr;
  int localarr[16];
  mystr.arr = localarr;
#pragma acc enter data copyin(mystr, localarr [0:16])
#pragma acc data attach(mystr.arr)
  {
#pragma acc exit data detach(mystr.arr)
    fprintf(stderr, "CheCKpOInT1\n");
  }
  fprintf(stderr, "CheCKpOInT2\n");
#pragma acc exit data copyout(mystr, localarr [0:16])
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x50(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    0x2eb2(%rip),%rax
mov    (%rax),%edi
lea    0xec9(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e9d(%rip),%rax
mov    (%rax),%edi
lea    0xec1(%rip),%rsi
call   1030 <fprintf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    0x2ec8(%rip),%rbx
mov    (%rbx),%edi
lea    0xedf(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xede(%rip),%rsi
call   1030 <fprintf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
%struct.anon = type { i32* }
@stderr = global i32 0
@.str = [13 x i8] c"CheCKpOInT1\0A\00"
@.str.1 = [13 x i8] c"CheCKpOInT2\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca %struct.anon
%3 = alloca [16 x i32]
store i32 0, i32* %1
%4 = getelementptr inbounds [16 x i32], [16 x i32]* %3, i64 0, i64 0
%5 = getelementptr inbounds %struct.anon, %struct.anon* %2, i32 0, i32 0
store i32* %4, i32** %5
%6 = load i32, i32* @stderr
%7 = call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%8 = load i32, i32* @stderr
%9 = call i32 @fprintf(i32 %8, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [13 x i8] c"CheCKpOInT1\0A\00"
@.str.1 = [13 x i8] c"CheCKpOInT2\0A\00"
define i32 @main() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ clang_analyzer_warnIfReached();
void avoidInfeasibleConstraintforLT(int a, int b) {
  int c = b - a;
  if (c >= 0)
    return;
  if (a != b) {
    clang_analyzer_warnIfReached();
    return;
  }
  clang_analyzer_warnIfReached();
  if (c < 0)
    ;
}


x86 assembly (clang, -O0):
<avoidInfeasibleConstraintforLT>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
sub    -0x4(%rbp),%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jl     1136 <avoidInfeasibleConstraintforLT+0x26>
jmp    1164 <avoidInfeasibleConstraintforLT+0x54>
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
je     114e <avoidInfeasibleConstraintforLT+0x3e>
mov    $0x0,%al
call   1030 <clang_analyzer_warnIfReached@plt>
jmp    1164 <avoidInfeasibleConstraintforLT+0x54>
mov    $0x0,%al
call   1030 <clang_analyzer_warnIfReached@plt>
cmpl   $0x0,-0xc(%rbp)
jge    1164 <avoidInfeasibleConstraintforLT+0x54>
jmp    1164 <avoidInfeasibleConstraintforLT+0x54>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<avoidInfeasibleConstraintforLT>:
cmp    %edi,%esi
jge    111b <avoidInfeasibleConstraintforLT+0xb>
xor    %eax,%eax
jmp    1030 <clang_analyzer_warnIfReached@plt>
ret

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

LLVM IR (-O2):
define void @avoidInfeasibleConstraintforLT(i32 %0, i32 %1) {
%3 = icmp slt i32 %1, %0
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = tail call i32 (...) @clang_analyzer_warnIfReached()
br label %6
6: ; preds = %2, %4
ret void
}
void ScaleRowDown38_3_Box_NEON() {}


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

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

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

LLVM IR (-O2):
define void @ScaleRowDown38_3_Box_NEON() {
ret void
}
double _f(const long n, const long m, const double omega,
          const double vertices_omegas[4]) {
  return ((omega - vertices_omegas[m]) /
          (vertices_omegas[n] - vertices_omegas[m]));
}


x86 assembly (clang, -O0):
<_f>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movsd  %xmm0,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
movsd  -0x18(%rbp),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x10(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x8(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x20(%rbp),%rax
mov    -0x10(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm1
divsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<_f>:
movsd  (%rdx,%rsi,8),%xmm1
subsd  %xmm1,%xmm0
movsd  (%rdx,%rdi,8),%xmm2
subsd  %xmm1,%xmm2
divsd  %xmm2,%xmm0
ret

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

LLVM IR (-O2):
define double @_f(i64 %0, i64 %1, double %2, double* nocapture %3) {
%5 = getelementptr inbounds double, double* %3, i64 %1
%6 = load double, double* %5
%7 = fsub double %2, %6
%8 = getelementptr inbounds double, double* %3, i64 %0
%9 = load double, double* %8
%10 = fsub double %9, %6
%11 = fdiv double %7, %10
ret double %11
}
void f5(char a, short b) {}


x86 assembly (clang, -O0):
<f5>:
push   %rbp
mov    %rsp,%rbp
mov    %si,%ax
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %ax,-0x4(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @f5(i8 signext %0, i16 signext %1) {
%3 = alloca i8
%4 = alloca i16
store i8 %0, i8* %3
store i16 %1, i16* %4
ret void
}

LLVM IR (-O2):
define void @f5(i8 signext %0, i16 signext %1) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int rightrot(int, int);
int main() {
  printf("%u %u\n", rightrot(10, 2));
  printf("%u %u\n", rightrot(45, 4));
  printf("%u %u\n", rightrot(450, 7));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0xa,%edi
mov    $0x2,%esi
call   1040 <rightrot@plt>
mov    %eax,%esi
lea    0xeb9(%rip),%rdi
call   1030 <printf@plt>
mov    $0x2d,%edi
mov    $0x4,%esi
call   1040 <rightrot@plt>
mov    %eax,%esi
lea    0xe9c(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1c2,%edi
mov    $0x7,%esi
call   1040 <rightrot@plt>
mov    %eax,%esi
lea    0xe7f(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0xa,%edi
mov    $0x2,%esi
call   1040 <rightrot@plt>
lea    0xec9(%rip),%rbx
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x2d,%edi
mov    $0x4,%esi
call   1040 <rightrot@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x1c2,%edi
mov    $0x7,%esi
call   1040 <rightrot@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [7 x i8] c"%u %u\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @rightrot(i32 10, i32 2)
%3 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %2)
%4 = call i32 @rightrot(i32 45, i32 4)
%5 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %4)
%6 = call i32 @rightrot(i32 450, i32 7)
%7 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %6)
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c"%u %u\0A\00"
define i32 @main() {
%1 = tail call i32 @rightrot(i32 10, i32 2)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = tail call i32 @rightrot(i32 45, i32 4)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = tail call i32 @rightrot(i32 450, i32 7)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 %5)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ syscall(int, char *, unsigned int);
long mysyscall(char *name_buf, unsigned int pid) {
  syscall(317, name_buf, pid);
}


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

x86 assembly (clang, -O2):
<mysyscall>:
mov    %esi,%edx
mov    %rdi,%rsi
mov    $0x13d,%edi
jmp    1030 <syscall@plt>

LLVM IR (-O0):
define i64 @mysyscall(i8* %0, i32 %1) {
%3 = alloca i64
%4 = alloca i8*
%5 = alloca i32
store i8* %0, i8** %4
store i32 %1, i32* %5
%6 = load i8*, i8** %4
%7 = load i32, i32* %5
%8 = call i32 @syscall(i32 317, i8* %6, i32 %7)
%9 = load i64, i64* %3
ret i64 %9
}

LLVM IR (-O2):
define i64 @mysyscall(i8* %0, i32 %1) {
%3 = tail call i32 @syscall(i32 317, i8* %0, i32 %1)
ret i64 undef
}
/* Type definitions */
struct Cyc_Lexing_lexbuf {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ Cyc_Lex_wstrng_next_rec(struct Cyc_Lexing_lexbuf *, int);
int Cyc_Lex_wstrng_next(struct Cyc_Lexing_lexbuf *lexbuf) {
  return ({ Cyc_Lex_wstrng_next_rec(lexbuf, 4); });
}


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

x86 assembly (clang, -O2):
<Cyc_Lex_wstrng_next>:
mov    $0x4,%esi
jmp    1030 <Cyc_Lex_wstrng_next_rec@plt>

LLVM IR (-O0):
%struct.Cyc_Lexing_lexbuf = type { i32 }
define i32 @Cyc_Lex_wstrng_next(%struct.Cyc_Lexing_lexbuf* %0) {
%2 = alloca %struct.Cyc_Lexing_lexbuf*
%3 = alloca i32
store %struct.Cyc_Lexing_lexbuf* %0, %struct.Cyc_Lexing_lexbuf** %2
%4 = load %struct.Cyc_Lexing_lexbuf*, %struct.Cyc_Lexing_lexbuf** %2
%5 = call i32 @Cyc_Lex_wstrng_next_rec(%struct.Cyc_Lexing_lexbuf* %4, i32 4)
store i32 %5, i32* %3
%6 = load i32, i32* %3
ret i32 %6
}

LLVM IR (-O2):
%struct.Cyc_Lexing_lexbuf = type { i32 }
define i32 @Cyc_Lex_wstrng_next(%struct.Cyc_Lexing_lexbuf* %0) {
%2 = tail call i32 @Cyc_Lex_wstrng_next_rec(%struct.Cyc_Lexing_lexbuf* %0, i32 4)
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ enter_menu();
int /*<<< orphan*/ print_win();
int /*<<< orphan*/ win_sound();
void snake_win() {
  print_win();
  win_sound();
  enter_menu();
}


x86 assembly (clang, -O0):
<snake_win>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1050 <print_win@plt>
mov    $0x0,%al
call   1030 <win_sound@plt>
mov    $0x0,%al
call   1040 <enter_menu@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<snake_win>:
push   %rax
xor    %eax,%eax
call   1050 <print_win@plt>
xor    %eax,%eax
call   1030 <win_sound@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <enter_menu@plt>

LLVM IR (-O0):
define void @snake_win() {
%1 = call i32 (...) @print_win()
%2 = call i32 (...) @win_sound()
%3 = call i32 (...) @enter_menu()
ret void
}

LLVM IR (-O2):
define void @snake_win() {
%1 = tail call i32 (...) @print_win()
%2 = tail call i32 (...) @win_sound()
%3 = tail call i32 (...) @enter_menu()
ret void
}
int get_xpos(void) { return 1; }


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

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

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

LLVM IR (-O2):
define i32 @get_xpos() {
ret i32 1
}
int child1() {
  int a = 0;
  int ii;
  for (ii = 0; ii < 2; ++ii)
    a += ii;
  return a;
}


x86 assembly (clang, -O0):
<child1>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    1133 <child1+0x33>
mov    -0x8(%rbp),%eax
add    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1112 <child1+0x12>
mov    -0x4(%rbp),%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @child1() {
ret i32 1
}
/* Type definitions */
struct hdr_histogram {
  int dummy;
};
typedef int /*<<< orphan*/ int64_t;

/* Variables and functions */
int /*<<< orphan*/ lowest_equivalent_value(struct hdr_histogram const *,
                                           int /*<<< orphan*/);
int64_t hdr_lowest_equivalent_value(const struct hdr_histogram *h,
                                    int64_t value) {
  return lowest_equivalent_value(h, value);
}


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

x86 assembly (clang, -O2):
<hdr_lowest_equivalent_value>:
jmp    1030 <lowest_equivalent_value@plt>

LLVM IR (-O0):
%struct.hdr_histogram = type { i32 }
define i32 @hdr_lowest_equivalent_value(%struct.hdr_histogram* %0, i32 %1) {
%3 = alloca %struct.hdr_histogram*
%4 = alloca i32
store %struct.hdr_histogram* %0, %struct.hdr_histogram** %3
store i32 %1, i32* %4
%5 = load %struct.hdr_histogram*, %struct.hdr_histogram** %3
%6 = load i32, i32* %4
%7 = call i32 @lowest_equivalent_value(%struct.hdr_histogram* %5, i32 %6)
ret i32 %7
}

LLVM IR (-O2):
%struct.hdr_histogram = type { i32 }
define i32 @hdr_lowest_equivalent_value(%struct.hdr_histogram* %0, i32 %1) {
%3 = tail call i32 @lowest_equivalent_value(%struct.hdr_histogram* %0, i32 %1)
ret i32 %3
}
/* Variables and functions */
scalar_t__ malloc(size_t);
int /*<<< orphan*/ memcpy(char *, char const *, size_t);
int strlen(char const *);
char *strdup_(const char *s) {
  size_t len = strlen(s) + 1;
  char *t = (char *)malloc(len);
  memcpy(t, s, len);
  return t;
}


x86 assembly (clang, -O0):
<strdup_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
add    $0x1,%eax
cltq
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1050 <malloc@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
call   1040 <memcpy@plt>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<strdup_>:
push   %r15
push   %r14
push   %rbx
mov    %rdi,%r14
call   1030 <strlen@plt>
add    $0x1,%eax
movslq %eax,%r15
mov    %r15,%rdi
call   1050 <malloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
call   1040 <memcpy@plt>
mov    %rbx,%rax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i8* @strdup_(i8* %0) {
%2 = alloca i8*
%3 = alloca i64
%4 = alloca i8*
store i8* %0, i8** %2
%5 = load i8*, i8** %2
%6 = call i32 @strlen(i8* %5)
%7 = add nsw i32 %6, 1
%8 = sext i32 %7 to i64
store i64 %8, i64* %3
%9 = load i64, i64* %3
%10 = call i64 @malloc(i64 %9)
%11 = inttoptr i64 %10 to i8*
store i8* %11, i8** %4
%12 = load i8*, i8** %4
%13 = load i8*, i8** %2
%14 = load i64, i64* %3
%15 = call i32 @memcpy(i8* %12, i8* %13, i64 %14)
%16 = load i8*, i8** %4
ret i8* %16
}

LLVM IR (-O2):
define i8* @strdup_(i8* %0) {
%2 = tail call i32 @strlen(i8* %0)
%3 = add nsw i32 %2, 1
%4 = sext i32 %3 to i64
%5 = tail call i64 @malloc(i64 %4)
%6 = inttoptr i64 %5 to i8*
%7 = tail call i32 @memcpy(i8* %6, i8* %0, i64 %4)
ret i8* %6
}
/* Type definitions */
typedef int uint16_t;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
void leaf_int(uint16_t number) { printf("Int: %d\n", number); }


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

x86 assembly (clang, -O2):
<leaf_int>:
mov    %edi,%esi
lea    0xee7(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"Int: %d\0A\00"
define void @leaf_int(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %3)
ret void
}

LLVM IR (-O2):
@.str = [9 x i8] c"Int: %d\0A\00"
define void @leaf_int(i32 %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %0)
ret void
}
__attribute__((no, noclone)) signed __int128 t169_5sub(unsigned __int128 x) {
  signed __int128 r;
  if (__builtin_sub_overflow(
          x,
          (unsigned __int128)((unsigned __int128)((
                                  signed __int128)(((unsigned __int128)1
                                                    << (16 * 8 - 1)) -
                                                   1)) +
                              1),
          &r))
    bar();
  return r;
}


x86 assembly (clang, -O0):
<t169_5sub>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x20(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x20(%rbp),%rax
mov    -0x18(%rbp),%rcx
mov    %rcx,-0x28(%rbp)
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rdx
mov    -0x28(%rbp),%rcx
xor    %eax,%eax
movabs $0x8000000000000000,%rsi
add    %rsi,%rcx
mov    %eax,%r9d
mov    %r9,%r8
adc    $0xffffffffffffffff,%r8
adc    $0xffffffffffffffff,%r9
mov    %r8d,%eax
and    $0x1,%eax
mov    %eax,%esi
mov    %rsi,%rax
neg    %rax
mov    %rax,%rdi
xor    %r9,%rdi
xor    %r8,%rax
or     %rdi,%rax
mov    %rcx,%rdi
shr    $0x3f,%rdi
xor    %rdi,%rsi
or     %rsi,%rax
setne  %al
mov    %rdx,-0x40(%rbp)
mov    %rcx,-0x38(%rbp)
test   $0x1,%al
jne    1194 <t169_5sub+0x84>
jmp    119b <t169_5sub+0x8b>
mov    $0x0,%al
call   1030 <bar@plt>
mov    -0x40(%rbp),%rax
mov    -0x38(%rbp),%rcx
mov    %rcx,-0x8(%rbp)
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x8(%rbp),%rdx
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<t169_5sub>:
mov    %rdi,%rax
movabs $0x8000000000000000,%rdx
add    %rsi,%rdx
ret

LLVM IR (-O0):
define { i64, i64 } @t169_5sub(i64 %0, i64 %1) {
%3 = alloca i128
%4 = alloca i128
%5 = alloca i128
%6 = alloca i128
%7 = bitcast i128* %4 to { i64, i64 }*
%8 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %7, i32 0, i32 0
store i64 %0, i64* %8
%9 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %7, i32 0, i32 1
store i64 %1, i64* %9
%10 = load i128, i128* %4
store i128 %10, i128* %5
%11 = load i128, i128* %5
%12 = zext i128 %11 to i129
%13 = call { i129, i1 } @llvm.ssub.with.overflow.i129(i129 %12, i129 170141183460469231731687303715884105728)
%14 = extractvalue { i129, i1 } %13, 1
%15 = extractvalue { i129, i1 } %13, 0
%16 = trunc i129 %15 to i128
%17 = sext i128 %16 to i129
%18 = icmp ne i129 %15, %17
%19 = or i1 %14, %18
store i128 %16, i128* %6
br i1 %19, label %20, label %22
20: ; preds = %2
%21 = call i32 (...) @bar()
br label %22
22: ; preds = %20, %2
%23 = load i128, i128* %6
store i128 %23, i128* %3
%24 = bitcast i128* %3 to { i64, i64 }*
%25 = load { i64, i64 }, { i64, i64 }* %24
ret { i64, i64 } %25
}

LLVM IR (-O2):
define { i64, i64 } @t169_5sub(i64 %0, i64 %1) {
%3 = zext i64 %1 to i128
%4 = shl nuw i128 %3, 64
%5 = zext i64 %0 to i128
%6 = or i128 %4, %5
%7 = zext i128 %6 to i129
%8 = add nsw i129 %7, -170141183460469231731687303715884105728
%9 = trunc i129 %8 to i64
%10 = lshr i129 %8, 64
%11 = trunc i129 %10 to i64
%12 = insertvalue { i64, i64 } poison, i64 %9, 0
%13 = insertvalue { i64, i64 } %12, i64 %11, 1
ret { i64, i64 } %13
}
int is_delim(char ch) {
  switch (ch) {
  case ' ':
  case '\t':
  case '\n':
  case '\r':
  case '<':
  case '>':
  case '&':
    return 1;
    break;
  default:
    return 0;
  }
}


x86 assembly (clang, -O0):
<is_delim>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
mov    %eax,-0xc(%rbp)
add    $0xfffffff7,%eax
sub    $0x2,%eax
jb     1177 <is_delim+0x77>
jmp    1122 <is_delim+0x22>
mov    -0xc(%rbp),%eax
sub    $0xd,%eax
je     1177 <is_delim+0x77>
jmp    1133 <is_delim+0x33>
mov    -0xc(%rbp),%eax
sub    $0x20,%eax
je     1177 <is_delim+0x77>
jmp    1144 <is_delim+0x44>
mov    -0xc(%rbp),%eax
sub    $0x26,%eax
je     1177 <is_delim+0x77>
jmp    1155 <is_delim+0x55>
mov    -0xc(%rbp),%eax
sub    $0x3c,%eax
je     1177 <is_delim+0x77>
jmp    1166 <is_delim+0x66>
mov    -0xc(%rbp),%eax
sub    $0x3e,%eax
jne    1183 <is_delim+0x83>
jmp    1177 <is_delim+0x77>
movl   $0x1,-0x4(%rbp)
jmp    118a <is_delim+0x8a>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_delim>:
cmp    $0x3e,%edi
ja     111d <is_delim+0x1d>
mov    $0x1,%eax
mov    %edi,%ecx
movabs $0x5000004100002600,%rdx
bt     %rcx,%rdx
jae    111d <is_delim+0x1d>
ret
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @is_delim(i8 signext %0) {
%2 = alloca i32
%3 = alloca i8
store i8 %0, i8* %3
%4 = load i8, i8* %3
%5 = sext i8 %4 to i32
switch i32 %5, label %7 [
i32 32, label %6
i32 9, label %6
i32 10, label %6
i32 13, label %6
i32 60, label %6
i32 62, label %6
i32 38, label %6
]
6: ; preds = %1, %1, %1, %1, %1, %1, %1
store i32 1, i32* %2
br label %8
7: ; preds = %1
store i32 0, i32* %2
br label %8
8: ; preds = %7, %6
%9 = load i32, i32* %2
ret i32 %9
}

LLVM IR (-O2):
define i32 @is_delim(i8 signext %0) {
%2 = sext i8 %0 to i32
switch i32 %2, label %3 [
i32 32, label %4
i32 9, label %4
i32 10, label %4
i32 13, label %4
i32 60, label %4
i32 62, label %4
i32 38, label %4
]
3: ; preds = %1
br label %4
4: ; preds = %1, %1, %1, %1, %1, %1, %1, %3
%5 = phi i32 [ 0, %3 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ]
ret i32 %5
}
int void_edit(void) { return 2; }


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

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

LLVM IR (-O0):
define i32 @void_edit() {
ret i32 2
}

LLVM IR (-O2):
define i32 @void_edit() {
ret i32 2
}
int test_imm_E4uint64_lowword_reg(unsigned long long val) {
  return ((val) & (0xE4 << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_E4uint64_lowword_reg>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdx
and    $0xe4,%rdx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%rdx
cmovne %ecx,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @test_imm_E4uint64_lowword_reg(i64 %0) {
%2 = and i64 %0, 228
%3 = icmp eq i64 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ atoi(char const *);
scalar_t__ number(char const *);
int /*<<< orphan*/ skip_whitespace(char const **);
int truestr(const char *buf) {
  skip_whitespace(&buf);
  if (!*buf || (number(buf) && !atoi(buf)))
    return 0;
  return 1;
}


x86 assembly (clang, -O0):
<truestr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
lea    -0x10(%rbp),%rdi
call   1030 <skip_whitespace@plt>
mov    -0x10(%rbp),%rax
cmpb   $0x0,(%rax)
je     1177 <truestr+0x47>
mov    -0x10(%rbp),%rdi
call   1040 <number@plt>
cmp    $0x0,%rax
je     1183 <truestr+0x53>
mov    -0x10(%rbp),%rdi
call   1050 <atoi@plt>
cmp    $0x0,%eax
jne    1183 <truestr+0x53>
movl   $0x0,-0x4(%rbp)
jmp    118a <truestr+0x5a>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<truestr>:
push   %rbx
sub    $0x10,%rsp
mov    %rdi,0x8(%rsp)
lea    0x8(%rsp),%rdi
call   1030 <skip_whitespace@plt>
mov    0x8(%rsp),%rdi
xor    %ebx,%ebx
cmpb   $0x0,(%rdi)
je     116d <truestr+0x3d>
call   1040 <number@plt>
test   %rax,%rax
je     1168 <truestr+0x38>
mov    0x8(%rsp),%rdi
call   1050 <atoi@plt>
test   %eax,%eax
je     116d <truestr+0x3d>
mov    $0x1,%ebx
mov    %ebx,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define i32 @truestr(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = call i32 @skip_whitespace(i8** %3)
%5 = load i8*, i8** %3
%6 = load i8, i8* %5
%7 = icmp ne i8 %6, 0
br i1 %7, label %8, label %16
8: ; preds = %1
%9 = load i8*, i8** %3
%10 = call i64 @number(i8* %9)
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %17
12: ; preds = %8
%13 = load i8*, i8** %3
%14 = call i32 @atoi(i8* %13)
%15 = icmp ne i32 %14, 0
br i1 %15, label %17, label %16
16: ; preds = %12, %1
store i32 0, i32* %2
br label %18
17: ; preds = %12, %8
store i32 1, i32* %2
br label %18
18: ; preds = %17, %16
%19 = load i32, i32* %2
ret i32 %19
}

LLVM IR (-O2):
define i32 @truestr(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 @skip_whitespace(i8** %2)
%4 = load i8*, i8** %2
%5 = load i8, i8* %4
%6 = icmp eq i8 %5, 0
br i1 %6, label %15, label %7
7: ; preds = %1
%8 = call i64 @number(i8* %4)
%9 = icmp eq i64 %8, 0
br i1 %9, label %14, label %10
10: ; preds = %7
%11 = load i8*, i8** %2
%12 = call i32 @atoi(i8* %11)
%13 = icmp eq i32 %12, 0
br i1 %13, label %15, label %14
14: ; preds = %10, %7
br label %15
15: ; preds = %1, %10, %14
%16 = phi i32 [ 1, %14 ], [ 0, %10 ], [ 0, %1 ]
ret i32 %16
}
/* Type definitions */
struct packit_args_info {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ clear_args(struct packit_args_info *);
int /*<<< orphan*/ clear_given(struct packit_args_info *);
int /*<<< orphan*/ init_args_info(struct packit_args_info *);
void cmdline_packit_parser_init(struct packit_args_info *args_info) {
  clear_given(args_info);
  clear_args(args_info);
  init_args_info(args_info);
}


x86 assembly (clang, -O0):
<cmdline_packit_parser_init>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <clear_given@plt>
mov    -0x8(%rbp),%rdi
call   1030 <clear_args@plt>
mov    -0x8(%rbp),%rdi
call   1050 <init_args_info@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cmdline_packit_parser_init>:
push   %rbx
mov    %rdi,%rbx
call   1040 <clear_given@plt>
mov    %rbx,%rdi
call   1030 <clear_args@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1050 <init_args_info@plt>

LLVM IR (-O0):
%struct.packit_args_info = type { i32 }
define void @cmdline_packit_parser_init(%struct.packit_args_info* %0) {
%2 = alloca %struct.packit_args_info*
store %struct.packit_args_info* %0, %struct.packit_args_info** %2
%3 = load %struct.packit_args_info*, %struct.packit_args_info** %2
%4 = call i32 @clear_given(%struct.packit_args_info* %3)
%5 = load %struct.packit_args_info*, %struct.packit_args_info** %2
%6 = call i32 @clear_args(%struct.packit_args_info* %5)
%7 = load %struct.packit_args_info*, %struct.packit_args_info** %2
%8 = call i32 @init_args_info(%struct.packit_args_info* %7)
ret void
}

LLVM IR (-O2):
%struct.packit_args_info = type { i32 }
define void @cmdline_packit_parser_init(%struct.packit_args_info* %0) {
%2 = tail call i32 @clear_given(%struct.packit_args_info* %0)
%3 = tail call i32 @clear_args(%struct.packit_args_info* %0)
%4 = tail call i32 @init_args_info(%struct.packit_args_info* %0)
ret void
}
void __attribute__((weak)) fpu_isr() { debug_handler(__FUNCTION__); }


x86 assembly (clang, -O0):
<fpu_isr>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1030 <debug_handler@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<fpu_isr>:
lea    0xee9(%rip),%rdi
xor    %eax,%eax
jmp    1030 <debug_handler@plt>

LLVM IR (-O0):
@__FUNCTION__.fpu_isr = [8 x i8] c"fpu_isr\00"
define weak void @fpu_isr() {
%1 = call i32 (i8*, ...) bitcast (i32 (...)* @debug_handler to i32 (i8*, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @__FUNCTION__.fpu_isr, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@__FUNCTION__.fpu_isr = [8 x i8] c"fpu_isr\00"
define weak void @fpu_isr() {
%1 = tail call i32 (i8*, ...) bitcast (i32 (...)* @debug_handler to i32 (i8*, ...)*)(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @__FUNCTION__.fpu_isr, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ PositionActualHandle();
int /*<<< orphan*/ UAVObjRequestUpdate(int /*<<< orphan*/);
void PositionActualRequestUpdate() {
  UAVObjRequestUpdate(PositionActualHandle());
}


x86 assembly (clang, -O0):
<PositionActualRequestUpdate>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <PositionActualHandle@plt>
mov    %eax,%edi
call   1040 <UAVObjRequestUpdate@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<PositionActualRequestUpdate>:
push   %rax
xor    %eax,%eax
call   1030 <PositionActualHandle@plt>
mov    %eax,%edi
pop    %rax
jmp    1040 <UAVObjRequestUpdate@plt>

LLVM IR (-O0):
define void @PositionActualRequestUpdate() {
%1 = call i32 (...) @PositionActualHandle()
%2 = call i32 @UAVObjRequestUpdate(i32 %1)
ret void
}

LLVM IR (-O2):
define void @PositionActualRequestUpdate() {
%1 = tail call i32 (...) @PositionActualHandle()
%2 = tail call i32 @UAVObjRequestUpdate(i32 %1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void usage(void) {
  fprintf(stderr, "usage: nandfs [lssnap | mksnap | rmsnap <snap>] "
                  "node\n");
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [54 x i8] c"usage: nandfs [lssnap | mksnap | rmsnap <snap>] node\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [54 x i8] c"usage: nandfs [lssnap | mksnap | rmsnap <snap>] node\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @exit(i32 1)
unreachable
}
int condition_n(char c) { return c == 'n'; }


x86 assembly (clang, -O0):
<condition_n>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
cmp    $0x6e,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<condition_n>:
xor    %eax,%eax
cmp    $0x6e,%dil
sete   %al
ret

LLVM IR (-O0):
define i32 @condition_n(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = sext i8 %3 to i32
%5 = icmp eq i32 %4, 110
%6 = zext i1 %5 to i32
ret i32 %6
}

LLVM IR (-O2):
define i32 @condition_n(i8 signext %0) {
%2 = icmp eq i8 %0, 110
%3 = zext i1 %2 to i32
ret i32 %3
}
/* Type definitions */
struct szl_obj {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ szl_unref(struct szl_obj *);
void szl_ffi_address_del(void *priv) { szl_unref((struct szl_obj *)priv); }


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

x86 assembly (clang, -O2):
<szl_ffi_address_del>:
jmp    1030 <szl_unref@plt>

LLVM IR (-O0):
%struct.szl_obj = type { i32 }
define void @szl_ffi_address_del(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = bitcast i8* %3 to %struct.szl_obj*
%5 = call i32 @szl_unref(%struct.szl_obj* %4)
ret void
}

LLVM IR (-O2):
%struct.szl_obj = type { i32 }
define void @szl_ffi_address_del(i8* %0) {
%2 = bitcast i8* %0 to %struct.szl_obj*
%3 = tail call i32 @szl_unref(%struct.szl_obj* %2)
ret void
}
int bothNonZero_3(int x, int y) { return x && y; }


x86 assembly (clang, -O0):
<bothNonZero_3>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x4(%rbp)
mov    %al,-0x9(%rbp)
je     1123 <bothNonZero_3+0x23>
cmpl   $0x0,-0x8(%rbp)
setne  %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<bothNonZero_3>:
test   %edi,%edi
setne  %al
test   %esi,%esi
setne  %cl
and    %al,%cl
movzbl %cl,%eax
ret

LLVM IR (-O0):
define i32 @bothNonZero_3(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 = icmp ne i32 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %2
%8 = load i32, i32* %4
%9 = icmp ne i32 %8, 0
br label %10
10: ; preds = %7, %2
%11 = phi i1 [ false, %2 ], [ %9, %7 ]
%12 = zext i1 %11 to i32
ret i32 %12
}

LLVM IR (-O2):
define i32 @bothNonZero_3(i32 %0, i32 %1) {
%3 = icmp ne i32 %0, 0
%4 = icmp ne i32 %1, 0
%5 = and i1 %3, %4
%6 = zext i1 %5 to i32
ret i32 %6
}
void ExttBlockAuxTable(void) {}


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

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

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

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