xunge/DecIR huggingface dataset:
/* Type definitions */
typedef char wint_t;

/* Variables and functions */
wint_t towlower(wint_t c) {
  if ((unsigned int)(c - 'A') < 26u)
    c += 'a' - 'A';
  return c;
}


x86 assembly (clang, -O0):
<towlower>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
sub    $0x41,%eax
cmp    $0x1a,%eax
jae    1124 <towlower+0x24>
movsbl -0x1(%rbp),%eax
add    $0x20,%eax
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<towlower>:
lea    -0x41(%rdi),%eax
lea    0x20(%rdi),%ecx
cmp    $0x1a,%eax
movzbl %cl,%eax
cmovae %edi,%eax
ret

LLVM IR (-O0):
define signext i8 @towlower(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = sext i8 %3 to i32
%5 = sub nsw i32 %4, 65
%6 = icmp ult i32 %5, 26
br i1 %6, label %7, label %12
7: ; preds = %1
%8 = load i8, i8* %2
%9 = sext i8 %8 to i32
%10 = add nsw i32 %9, 32
%11 = trunc i32 %10 to i8
store i8 %11, i8* %2
br label %12
12: ; preds = %7, %1
%13 = load i8, i8* %2
ret i8 %13
}

LLVM IR (-O2):
define signext i8 @towlower(i8 signext %0) {
%2 = sext i8 %0 to i32
%3 = add nsw i32 %2, -65
%4 = icmp ult i32 %3, 26
%5 = add i8 %0, 32
%6 = select i1 %4, i8 %5, i8 %0
ret i8 %6
}
/* Variables and functions */
int /*<<< orphan*/ exgcd(long long, long long, long long *, long long *);
long long inverse(long long num, long long mod) {
  long long x, y;
  exgcd(num, mod, &x, &y);
  while (x < 0)
    x += mod, y -= num;
  return x;
}


x86 assembly (clang, -O0):
<inverse>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    -0x18(%rbp),%rdx
lea    -0x20(%rbp),%rcx
call   1030 <exgcd@plt>
cmpq   $0x0,-0x18(%rbp)
jge    1160 <inverse+0x50>
mov    -0x10(%rbp),%rax
add    -0x18(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rcx
mov    -0x20(%rbp),%rax
sub    %rcx,%rax
mov    %rax,-0x20(%rbp)
jmp    1135 <inverse+0x25>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<inverse>:
push   %rbx
sub    $0x10,%rsp
mov    %rsi,%rbx
mov    %rsp,%rdx
lea    0x8(%rsp),%rcx
call   1030 <exgcd@plt>
mov    (%rsp),%rax
test   %rax,%rax
jns    1135 <inverse+0x25>
xchg   %ax,%ax
add    %rbx,%rax
js     1130 <inverse+0x20>
add    $0x10,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
define i64 @inverse(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
%5 = bitcast i64* %3 to i8*
%6 = bitcast i64* %4 to i8*
%7 = call i32 @exgcd(i64 %0, i64 %1, i64* %3, i64* %4)
%8 = load i64, i64* %3
%9 = icmp slt i64 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %2, %10
%11 = phi i64 [ %12, %10 ], [ %8, %2 ]
%12 = add nsw i64 %11, %1
%13 = icmp slt i64 %12, 0
br i1 %13, label %10, label %14
14: ; preds = %10, %2
%15 = phi i64 [ %8, %2 ], [ %12, %10 ]
ret i64 %15
}
void my_to_lower(char *ch) {
  for (; *ch; ch++)
    if (*ch >= 'A' && *ch <= 'Z')
      *ch += 32;
}


x86 assembly (clang, -O0):
<my_to_lower>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
cmpb   $0x0,(%rax)
je     1157 <my_to_lower+0x57>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x41,%eax
jl     1141 <my_to_lower+0x41>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5a,%eax
jg     1141 <my_to_lower+0x41>
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
add    $0x20,%ecx
mov    %cl,(%rax)
jmp    1146 <my_to_lower+0x46>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    1108 <my_to_lower+0x8>
pop    %rbp
ret

x86 assembly (clang, -O2):
<my_to_lower>:
mov    (%rdi),%al
test   %al,%al
je     112a <my_to_lower+0x2a>
add    $0x1,%rdi
jmp    111b <my_to_lower+0x1b>
nopl   0x0(%rax)
movzbl (%rdi),%eax
add    $0x1,%rdi
test   %al,%al
je     112a <my_to_lower+0x2a>
lea    -0x41(%rax),%ecx
cmp    $0x19,%cl
ja     1110 <my_to_lower+0x10>
add    $0x20,%al
mov    %al,-0x1(%rdi)
jmp    1110 <my_to_lower+0x10>
ret

LLVM IR (-O0):
define void @my_to_lower(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
br label %3
3: ; preds = %24, %1
%4 = load i8*, i8** %2
%5 = load i8, i8* %4
%6 = icmp ne i8 %5, 0
br i1 %6, label %7, label %27
7: ; preds = %3
%8 = load i8*, i8** %2
%9 = load i8, i8* %8
%10 = sext i8 %9 to i32
%11 = icmp sge i32 %10, 65
br i1 %11, label %12, label %23
12: ; preds = %7
%13 = load i8*, i8** %2
%14 = load i8, i8* %13
%15 = sext i8 %14 to i32
%16 = icmp sle i32 %15, 90
br i1 %16, label %17, label %23
17: ; preds = %12
%18 = load i8*, i8** %2
%19 = load i8, i8* %18
%20 = sext i8 %19 to i32
%21 = add nsw i32 %20, 32
%22 = trunc i32 %21 to i8
store i8 %22, i8* %18
br label %23
23: ; preds = %17, %12, %7
br label %24
24: ; preds = %23
%25 = load i8*, i8** %2
%26 = getelementptr inbounds i8, i8* %25, i32 1
store i8* %26, i8** %2
br label %3
27: ; preds = %3
ret void
}

LLVM IR (-O2):
define void @my_to_lower(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %15, label %4
4: ; preds = %1, %11
%5 = phi i8 [ %13, %11 ], [ %2, %1 ]
%6 = phi i8* [ %12, %11 ], [ %0, %1 ]
%7 = add i8 %5, -65
%8 = icmp ult i8 %7, 26
br i1 %8, label %9, label %11
9: ; preds = %4
%10 = add nuw nsw i8 %5, 32
store i8 %10, i8* %6
br label %11
11: ; preds = %4, %9
%12 = getelementptr inbounds i8, i8* %6, i64 1
%13 = load i8, i8* %12
%14 = icmp eq i8 %13, 0
br i1 %14, label %15, label %4
15: ; preds = %11, %1
ret void
}
/* Variables and functions */
size_t strcspn(const char *s, const char *reject) { return 0; }


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

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

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

LLVM IR (-O2):
define i64 @strcspn(i8* nocapture readnone %0, i8* nocapture readnone %1) {
ret i64 0
}
/* Variables and functions */
int /*<<< orphan*/ fillCharacter(int, char);
int main() {
  fillCharacter(5, '#');
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x5,%edi
mov    $0x23,%esi
call   1030 <fillCharacter@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @fillCharacter(i32 5, i8 signext 35)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @fillCharacter(i32 5, i8 signext 35)
ret i32 0
}
/* Type definitions */
struct ListNode {
  int dummy;
};

/* Variables and functions */
struct ListNode *reverseKGroup(struct ListNode *, int);
struct ListNode *swapPairs(struct ListNode *head) {
  return reverseKGroup(head, 2);
}


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

x86 assembly (clang, -O2):
<swapPairs>:
mov    $0x2,%esi
jmp    1030 <reverseKGroup@plt>

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

LLVM IR (-O2):
%struct.ListNode = type { i32 }
define %struct.ListNode* @swapPairs(%struct.ListNode* %0) {
%2 = tail call %struct.ListNode* @reverseKGroup(%struct.ListNode* %0, i32 2)
ret %struct.ListNode* %2
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void schneids14() {
  printf("schneids14 like metals with lots of nickel and copper.\n");
}


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

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

LLVM IR (-O0):
@.str = [56 x i8] c"schneids14 like metals with lots of nickel and copper.\0A\00"
define void @schneids14() {
%1 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [55 x i8] c"schneids14 like metals with lots of nickel and copper.\00"
define void @schneids14() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
double cos(double);
double toz(double lat, double lon) {
  return (cos(lon * (3.14159265 / 180.0f)) * cos(lat * (3.14159265 / 180.0f)));
}


x86 assembly (clang, -O0):
<toz>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  0xed6(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
call   1030 <cos@plt>
movsd  %xmm0,-0x18(%rbp)
movsd  0xebf(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
call   1030 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
mulsd  %xmm1,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<toz>:
sub    $0x18,%rsp
movsd  %xmm0,0x10(%rsp)
mulsd  0xede(%rip),%xmm1
movapd %xmm1,%xmm0
call   1030 <cos@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
mulsd  0xec1(%rip),%xmm0
call   1030 <cos@plt>
mulsd  0x8(%rsp),%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define double @toz(double %0, double %1) {
%3 = alloca double
%4 = alloca double
store double %0, double* %3
store double %1, double* %4
%5 = load double, double* %4
%6 = fmul double %5, 0x3F91DF46A1FAE712
%7 = call double @cos(double %6)
%8 = load double, double* %3
%9 = fmul double %8, 0x3F91DF46A1FAE712
%10 = call double @cos(double %9)
%11 = fmul double %7, %10
ret double %11
}

LLVM IR (-O2):
define double @toz(double %0, double %1) {
%3 = fmul double %1, 0x3F91DF46A1FAE712
%4 = tail call double @cos(double %3)
%5 = fmul double %0, 0x3F91DF46A1FAE712
%6 = tail call double @cos(double %5)
%7 = fmul double %4, %6
ret double %7
}
/* Type definitions */
typedef int /*<<< orphan*/ __u_char;

/* Variables and functions */
int /*<<< orphan*/ _IO(int, int);
int /*<<< orphan*/ ioctl(int, int /*<<< orphan*/);
__u_char cbm_pp_read(int f) { return ioctl(f, _IO(0xcb, 10)); }


x86 assembly (clang, -O0):
<cbm_pp_read>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    $0xcb,%edi
mov    $0xa,%esi
call   1030 <_IO@plt>
mov    -0x8(%rbp),%edi
mov    %eax,%esi
call   1040 <ioctl@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cbm_pp_read>:
push   %rbx
mov    %edi,%ebx
mov    $0xcb,%edi
mov    $0xa,%esi
call   1030 <_IO@plt>
mov    %ebx,%edi
mov    %eax,%esi
pop    %rbx
jmp    1040 <ioctl@plt>

LLVM IR (-O0):
define i32 @cbm_pp_read(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @_IO(i32 203, i32 10)
%5 = call i32 @ioctl(i32 %3, i32 %4)
ret i32 %5
}

LLVM IR (-O2):
define i32 @cbm_pp_read(i32 %0) {
%2 = tail call i32 @_IO(i32 203, i32 10)
%3 = tail call i32 @ioctl(i32 %0, i32 %2)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ system(char *);
void INSTALL_FLASH(void) {
  char install_flash[] = "apt-get install flashplugin-nonfree";
  system(install_flash);
}


x86 assembly (clang, -O0):
<INSTALL_FLASH>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
lea    -0x30(%rbp),%rdi
lea    0xecd(%rip),%rsi
mov    $0x24,%edx
call   1040 <memcpy@plt>
lea    -0x30(%rbp),%rdi
call   1030 <system@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<INSTALL_FLASH>:
sub    $0x28,%rsp
movaps 0xef5(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xed9(%rip),%xmm0
movaps %xmm0,(%rsp)
movl   $0x656572,0x20(%rsp)
mov    %rsp,%rdi
call   1030 <system@plt>
add    $0x28,%rsp
ret

LLVM IR (-O0):
@__const.INSTALL_FLASH.install_flash = [36 x i8] c"apt-get install flashplugin-nonfree\00"
define void @INSTALL_FLASH() {
%1 = alloca [36 x i8]
%2 = bitcast [36 x i8]* %1 to i8*
%3 = getelementptr inbounds [36 x i8], [36 x i8]* %1, i64 0, i64 0
%4 = call i32 @system(i8* %3)
ret void
}

LLVM IR (-O2):
@__const.INSTALL_FLASH.install_flash = [36 x i8] c"apt-get install flashplugin-nonfree\00"
define void @INSTALL_FLASH() {
%1 = alloca [36 x i8]
%2 = getelementptr inbounds [36 x i8], [36 x i8]* %1, i64 0, i64 0
%3 = call i32 @system(i8* %2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int pa_smoother_resume() {
  printf("NOT IMPLEMENTED:"
         "pa_smoother_resume"
         "\n");
}


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

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

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

LLVM IR (-O2):
@str = [35 x i8] c"NOT IMPLEMENTED:pa_smoother_resume\00"
define i32 @pa_smoother_resume() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str, i64 0, i64 0))
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, char *);
int /*<<< orphan*/ stderr;
void help(char *prgname) {
  fprintf(stderr,
          "%s: use "
          "\"%s <device> <addr> [<value>] [+<nbytes>]\"\n"
          "     <device> is a file name, all others are hex numbers\n"
          "     bursts of \"nbytes\" use stdin/stdout (value ignored)\n",
          prgname, prgname);
  exit(1);
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ead(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
mov    -0x8(%rbp),%rcx
lea    0xebc(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<help>:
push   %rax
mov    %rdi,%rcx
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
mov    %rcx,%rdx
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [166 x i8] c"%s: use \22%s <device> <addr> [<value>] [+<nbytes>]\22\0A <device> is a file name, all others are hex numbers\0A bursts of \22nbytes\22 use stdin/stdout (value ignored)\0A\00"
define void @help(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = load i8*, i8** %2
%6 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([166 x i8], [166 x i8]* @.str, i64 0, i64 0), i8* %4, i8* %5)
%7 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [166 x i8] c"%s: use \22%s <device> <addr> [<value>] [+<nbytes>]\22\0A <device> is a file name, all others are hex numbers\0A bursts of \22nbytes\22 use stdin/stdout (value ignored)\0A\00"
define void @help(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([166 x i8], [166 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %0)
%4 = tail call i32 @exit(i32 1)
unreachable
}
int se(char *s1, char *s2) {
  char c1, c2;
  do {
    if ((c1 = *s1++) != (c2 = *s2++)) {
      return (c1 - c2);
    }
  } while (0 != c1);
  return (0);
}


x86 assembly (clang, -O0):
<se>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
mov    (%rax),%al
mov    %al,-0x19(%rbp)
movsbl %al,%eax
mov    -0x18(%rbp),%rcx
mov    %rcx,%rdx
add    $0x1,%rdx
mov    %rdx,-0x18(%rbp)
mov    (%rcx),%cl
mov    %cl,-0x1a(%rbp)
movsbl %cl,%ecx
cmp    %ecx,%eax
je     1154 <se+0x54>
movsbl -0x19(%rbp),%eax
movsbl -0x1a(%rbp),%ecx
sub    %ecx,%eax
mov    %eax,-0x4(%rbp)
jmp    116e <se+0x6e>
jmp    1159 <se+0x59>
movsbl -0x19(%rbp),%ecx
xor    %eax,%eax
cmp    %ecx,%eax
jne    110c <se+0xc>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<se>:
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsbl (%rdi,%rcx,1),%eax
movsbl (%rsi,%rcx,1),%edx
cmp    %dl,%al
jne    1127 <se+0x27>
add    $0x1,%rcx
test   %al,%al
jne    1110 <se+0x10>
xor    %eax,%eax
ret
sub    %edx,%eax
ret

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

LLVM IR (-O2):
define i32 @se(i8* nocapture %0, i8* nocapture %1) {
br label %3
3: ; preds = %13, %2
%4 = phi i8* [ %1, %2 ], [ %14, %13 ]
%5 = phi i8* [ %0, %2 ], [ %15, %13 ]
%6 = load i8, i8* %5
%7 = load i8, i8* %4
%8 = icmp eq i8 %6, %7
br i1 %8, label %13, label %9
9: ; preds = %3
%10 = sext i8 %6 to i32
%11 = sext i8 %7 to i32
%12 = sub nsw i32 %10, %11
br label %17
13: ; preds = %3
%14 = getelementptr inbounds i8, i8* %4, i64 1
%15 = getelementptr inbounds i8, i8* %5, i64 1
%16 = icmp eq i8 %6, 0
br i1 %16, label %17, label %3
17: ; preds = %13, %9
%18 = phi i32 [ %12, %9 ], [ 0, %13 ]
ret i32 %18
}
/* Variables and functions */
unsigned int get_cpu_vdsop(unsigned int *, int /*<<< orphan*/ *,
                           int /*<<< orphan*/ *);
int getcpu_vdso(void) {
  unsigned int c, s;
  s = get_cpu_vdsop(&c, NULL, NULL);
  return (s == -1) ? s : c;
}


x86 assembly (clang, -O0):
<getcpu_vdso>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    -0x4(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%edx
mov    %rdx,%rsi
call   1030 <get_cpu_vdsop@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0xffffffff,-0x8(%rbp)
jne    1140 <getcpu_vdso+0x30>
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
jmp    1146 <getcpu_vdso+0x36>
mov    -0x4(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getcpu_vdso>:
push   %rax
lea    0x4(%rsp),%rdi
xor    %esi,%esi
xor    %edx,%edx
call   1030 <get_cpu_vdsop@plt>
cmp    $0xffffffff,%eax
je     1128 <getcpu_vdso+0x18>
mov    0x4(%rsp),%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @getcpu_vdso() {
%1 = alloca i32
%2 = alloca i32
%3 = call i32 @get_cpu_vdsop(i32* %1, i32* null, i32* null)
store i32 %3, i32* %2
%4 = load i32, i32* %2
%5 = icmp eq i32 %4, -1
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = load i32, i32* %2
br label %10
8: ; preds = %0
%9 = load i32, i32* %1
br label %10
10: ; preds = %8, %6
%11 = phi i32 [ %7, %6 ], [ %9, %8 ]
ret i32 %11
}

LLVM IR (-O2):
define i32 @getcpu_vdso() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @get_cpu_vdsop(i32* %1, i32* null, i32* null)
%4 = icmp eq i32 %3, -1
%5 = load i32, i32* %1
%6 = select i1 %4, i32 -1, i32 %5
ret i32 %6
}
const char *ccnl_suite2str(int suite) { return "?"; }


x86 assembly (clang, -O0):
<ccnl_suite2str>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
lea    0xef2(%rip),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ccnl_suite2str>:
lea    0xef9(%rip),%rax
ret

LLVM IR (-O0):
@.str = [2 x i8] c"?\00"
define i8* @ccnl_suite2str(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
ret i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [2 x i8] c"?\00"
define i8* @ccnl_suite2str(i32 %0) {
ret i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0)
}
/* Variables and functions */
int /*<<< orphan*/ GC_free(unsigned char *);
void Cyc_Core_ufree(unsigned char *ptr) {
  if (ptr == NULL)
    return;
  else {
    GC_free(ptr);
  }
}


x86 assembly (clang, -O0):
<Cyc_Core_ufree>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    112c <Cyc_Core_ufree+0x1c>
jmp    1135 <Cyc_Core_ufree+0x25>
mov    -0x8(%rbp),%rdi
call   1030 <GC_free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Cyc_Core_ufree>:
test   %rdi,%rdi
je     111a <Cyc_Core_ufree+0xa>
jmp    1030 <GC_free@plt>
ret

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

LLVM IR (-O2):
define void @Cyc_Core_ufree(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %5, label %3
3: ; preds = %1
%4 = tail call i32 @GC_free(i8* %0)
br label %5
5: ; preds = %1, %3
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void unknown_symbol(void) { printf("unknown symbol in borlndmm called\n"); }


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

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

LLVM IR (-O0):
@.str = [35 x i8] c"unknown symbol in borlndmm called\0A\00"
define void @unknown_symbol() {
%1 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [34 x i8] c"unknown symbol in borlndmm called\00"
define void @unknown_symbol() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
unsigned int crc32partial(unsigned char *, int, unsigned int, unsigned int *);
unsigned int crc32(unsigned char *cp, int nsize, unsigned int polynomial) {
  unsigned int crc = 0;
  return crc32partial(cp, nsize, polynomial, &crc);
}


x86 assembly (clang, -O0):
<crc32>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
lea    -0x14(%rbp),%rcx
call   1030 <crc32partial@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<crc32>:
push   %rax
movl   $0x0,0x4(%rsp)
lea    0x4(%rsp),%rcx
call   1030 <crc32partial@plt>
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @crc32(i8* %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = bitcast i32* %4 to i8*
store i32 0, i32* %4
%6 = call i32 @crc32partial(i8* %0, i32 %1, i32 %2, i32* %4)
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ assert(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
int panic(void) {
  printf("Kernel PANIC\n");
  assert(0);
}


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

x86 assembly (clang, -O2):
<panic>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
pop    %rax
jmp    1040 <assert@plt>

LLVM IR (-O0):
@.str = [14 x i8] c"Kernel PANIC\0A\00"
define i32 @panic() {
%1 = alloca i32
%2 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @assert(i32 0)
%4 = load i32, i32* %1
ret i32 %4
}

LLVM IR (-O2):
@str = [13 x i8] c"Kernel PANIC\00"
define i32 @panic() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @assert(i32 0)
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ __free_cf(void *);
void CGLayerRelease(void *item) { __free_cf(item); }


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

x86 assembly (clang, -O2):
<CGLayerRelease>:
jmp    1030 <__free_cf@plt>

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

LLVM IR (-O2):
define void @CGLayerRelease(i8* %0) {
%2 = tail call i32 @__free_cf(i8* %0)
ret void
}
int inb(int c) { return 0; }


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

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

LLVM IR (-O0):
define i32 @inb(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
ret i32 0
}

LLVM IR (-O2):
define i32 @inb(i32 %0) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
void usage(char *cmdname) {
  printf("Warning : This program will work only on Valleyview\n");
  printf("Usage: %s [addr] [val]\n", cmdname);
  printf("\t addr : in 0xXXXX format\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xedd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xf00(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf0a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %rdi,%rbx
lea    0xeed(%rip),%rdi
call   1030 <puts@plt>
lea    0xec9(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf04(%rip),%rdi
pop    %rbx
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [53 x i8] c"Warning : This program will work only on Valleyview\0A\00"
@.str.1 = [24 x i8] c"Usage: %s [addr] [val]\0A\00"
@.str.2 = [27 x i8] c"\09 addr : in 0xXXXX format\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0))
%4 = load i8*, i8** %2
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [24 x i8] c"Usage: %s [addr] [val]\0A\00"
@str = [52 x i8] c"Warning : This program will work only on Valleyview\00"
@str.3 = [26 x i8] c"\09 addr : in 0xXXXX format\00"
define void @usage(i8* %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.3, i64 0, i64 0))
ret void
}
void insertAtEnd(int **queue, int queueRowSize, int maxRowSize, int currHeight,
                 int currCount) {
  queue[queueRowSize + 1][0] = currHeight;
  queue[queueRowSize + 1][1] = currCount;
  return;
}


x86 assembly (clang, -O0):
<insertAtEnd>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8d,-0x18(%rbp)
mov    -0x14(%rbp),%ecx
mov    -0x8(%rbp),%rax
mov    -0xc(%rbp),%edx
add    $0x1,%edx
movslq %edx,%rdx
mov    (%rax,%rdx,8),%rax
mov    %ecx,(%rax)
mov    -0x18(%rbp),%ecx
mov    -0x8(%rbp),%rax
mov    -0xc(%rbp),%edx
add    $0x1,%edx
movslq %edx,%rdx
mov    (%rax,%rdx,8),%rax
mov    %ecx,0x4(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<insertAtEnd>:
movslq %esi,%rax
mov    0x8(%rdi,%rax,8),%rax
mov    %ecx,(%rax)
mov    %r8d,0x4(%rax)
ret

LLVM IR (-O0):
define void @insertAtEnd(i32** %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = alloca i32**
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i32** %0, i32*** %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i32 %4, i32* %10
%11 = load i32, i32* %9
%12 = load i32**, i32*** %6
%13 = load i32, i32* %7
%14 = add nsw i32 %13, 1
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i32*, i32** %12, i64 %15
%17 = load i32*, i32** %16
%18 = getelementptr inbounds i32, i32* %17, i64 0
store i32 %11, i32* %18
%19 = load i32, i32* %10
%20 = load i32**, i32*** %6
%21 = load i32, i32* %7
%22 = add nsw i32 %21, 1
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds i32*, i32** %20, i64 %23
%25 = load i32*, i32** %24
%26 = getelementptr inbounds i32, i32* %25, i64 1
store i32 %19, i32* %26
ret void
}

LLVM IR (-O2):
define void @insertAtEnd(i32** nocapture %0, i32 %1, i32 %2, i32 %3, i32 %4) {
%6 = add nsw i32 %1, 1
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds i32*, i32** %0, i64 %7
%9 = load i32*, i32** %8
store i32 %3, i32* %9
%10 = getelementptr inbounds i32, i32* %9, i64 1
store i32 %4, i32* %10
ret void
}
/* Variables and functions */
int Cyc_Atts_attribute_cmp(void *, void *);
int Cyc_Atts_equal_att(void *a1, void *a2) {
  int _T0;
  int _T1;
  _T0 = Cyc_Atts_attribute_cmp(a1, a2);
  _T1 = _T0 == 0;
  return _T1;
}


x86 assembly (clang, -O0):
<Cyc_Atts_equal_att>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <Cyc_Atts_attribute_cmp@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Cyc_Atts_equal_att>:
push   %rax
call   1030 <Cyc_Atts_attribute_cmp@plt>
xor    %ecx,%ecx
test   %eax,%eax
sete   %cl
mov    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @Cyc_Atts_equal_att(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
store i8* %0, i8** %3
store i8* %1, i8** %4
%7 = load i8*, i8** %3
%8 = load i8*, i8** %4
%9 = call i32 @Cyc_Atts_attribute_cmp(i8* %7, i8* %8)
store i32 %9, i32* %5
%10 = load i32, i32* %5
%11 = icmp eq i32 %10, 0
%12 = zext i1 %11 to i32
store i32 %12, i32* %6
%13 = load i32, i32* %6
ret i32 %13
}

LLVM IR (-O2):
define i32 @Cyc_Atts_equal_att(i8* %0, i8* %1) {
%3 = tail call i32 @Cyc_Atts_attribute_cmp(i8* %0, i8* %1)
%4 = icmp eq i32 %3, 0
%5 = zext i1 %4 to i32
ret i32 %5
}
int test_imm_C4uint16_reg(unsigned short val) {
  return ((val) & (-0xC4 << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_C4uint16_reg>:
push   %rbp
mov    %rsp,%rbp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
movzwl -0x2(%rbp),%edx
and    $0xffffff3c,%edx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_C4uint16_reg>:
test   $0xff3c,%edi
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_imm_C4uint16_reg(i16 zeroext %0) {
%2 = alloca i16
store i16 %0, i16* %2
%3 = load i16, i16* %2
%4 = zext i16 %3 to i32
%5 = and i32 %4, -196
%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_C4uint16_reg(i16 zeroext %0) {
%2 = and i16 %0, -196
%3 = icmp eq i16 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
void clean_block(float Dst[32][32]) {
  int i, j;
  for (i = 0; i < 32; i++)
    for (j = 0; j < 32; j++)
      Dst[i][j] = 0.0;
}


x86 assembly (clang, -O0):
<clean_block>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x20,-0xc(%rbp)
jge    1166 <clean_block+0x66>
movl   $0x0,-0x10(%rbp)
cmpl   $0x20,-0x10(%rbp)
jge    1153 <clean_block+0x53>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
shl    $0x7,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1120 <clean_block+0x20>
jmp    1158 <clean_block+0x58>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    110f <clean_block+0xf>
pop    %rbp
ret

x86 assembly (clang, -O2):
<clean_block>:
push   %rax
mov    $0x1000,%edx
xor    %esi,%esi
call   1030 <memset@plt>
pop    %rax
ret

LLVM IR (-O0):
define void @clean_block([32 x float]* %0) {
%2 = alloca [32 x float]*
%3 = alloca i32
%4 = alloca i32
store [32 x float]* %0, [32 x float]** %2
store i32 0, i32* %3
br label %5
5: ; preds = %24, %1
%6 = load i32, i32* %3
%7 = icmp slt i32 %6, 32
br i1 %7, label %8, label %27
8: ; preds = %5
store i32 0, i32* %4
br label %9
9: ; preds = %20, %8
%10 = load i32, i32* %4
%11 = icmp slt i32 %10, 32
br i1 %11, label %12, label %23
12: ; preds = %9
%13 = load [32 x float]*, [32 x float]** %2
%14 = load i32, i32* %3
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [32 x float], [32 x float]* %13, i64 %15
%17 = load i32, i32* %4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [32 x float], [32 x float]* %16, i64 0, i64 %18
store float 0.000000e+00, float* %19
br label %20
20: ; preds = %12
%21 = load i32, i32* %4
%22 = add nsw i32 %21, 1
store i32 %22, i32* %4
br label %9
23: ; preds = %9
br label %24
24: ; preds = %23
%25 = load i32, i32* %3
%26 = add nsw i32 %25, 1
store i32 %26, i32* %3
br label %5
27: ; preds = %5
ret void
}

LLVM IR (-O2):
define void @clean_block([32 x float]* nocapture writeonly %0) {
%2 = bitcast [32 x float]* %0 to i8*
ret void
}
void other_func() {
  printf("[%s] from [%s] is be called.\n", __func__,
         "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
         "2022-01-22/02-19-57/repos/WeiqiChenCN/symbol_test/refs/heads/master/"
         "sample1/a.c");
}


x86 assembly (clang, -O0):
<other_func>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xefc(%rip),%rsi
lea    0xf00(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<other_func>:
lea    0xee9(%rip),%rdi
lea    0xf00(%rip),%rsi
lea    0xf04(%rip),%rdx
xor    %eax,%eax
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [30 x i8] c"[%s] from [%s] is be called.\0A\00"
@__func__.other_func = [11 x i8] c"other_func\00"
@.str.1 = [144 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/WeiqiChenCN/symbol_test/refs/heads/master/sample1/a.c\00"
define void @other_func() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @__func__.other_func, i64 0, i64 0), i8* getelementptr inbounds ([144 x i8], [144 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [30 x i8] c"[%s] from [%s] is be called.\0A\00"
@__func__.other_func = [11 x i8] c"other_func\00"
@.str.1 = [144 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/WeiqiChenCN/symbol_test/refs/heads/master/sample1/a.c\00"
define void @other_func() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @__func__.other_func, i64 0, i64 0), i8* getelementptr inbounds ([144 x i8], [144 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
int usage() {
  fprintf(stderr, "Usage:\nbijouc [options] file\n"
                  "-o\tSpecify an output file (default is 'b.out')\n"
                  "-v\tOutput version and exit\n"
                  "-p\tParse only, don't generate output\n"
                  "-d\tDebug, display some extra information\n"
                  "-h\tDisplay this help message\n");
  return 1;
}


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

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

LLVM IR (-O0):
@stderr = global i32 0
@.str = [211 x i8] c"Usage:\0Abijouc [options] file\0A-o\09Specify an output file (default is 'b.out')\0A-v\09Output version and exit\0A-p\09Parse only, don't generate output\0A-d\09Debug, display some extra information\0A-h\09Display this help message\0A\00"
define i32 @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([211 x i8], [211 x i8]* @.str, i64 0, i64 0))
ret i32 1
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [211 x i8] c"Usage:\0Abijouc [options] file\0A-o\09Specify an output file (default is 'b.out')\0A-v\09Output version and exit\0A-p\09Parse only, don't generate output\0A-d\09Debug, display some extra information\0A-h\09Display this help message\0A\00"
define i32 @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([211 x i8], [211 x i8]* @.str, i64 0, i64 0))
ret i32 1
}
void pmem() {}


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

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

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

LLVM IR (-O2):
define void @pmem() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ PKCS5_PBKDF2_HMAC_SHA1(char const *, int /*<<< orphan*/,
                                          unsigned char *, int, int, int,
                                          unsigned char *);
int /*<<< orphan*/ strlen(char const *);
void hash_proto_pbkdf2(const char *pass, unsigned char *salt, int saltlen,
                       int iter, int keylen, unsigned char *out) {
  (void)PKCS5_PBKDF2_HMAC_SHA1(pass, strlen(pass), salt, saltlen, iter, keylen,
                               out);
}


x86 assembly (clang, -O0):
<hash_proto_pbkdf2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
mov    %r9,-0x28(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x30(%rbp),%rdi
mov    %eax,%esi
mov    -0x10(%rbp),%rdx
mov    -0x14(%rbp),%ecx
mov    -0x18(%rbp),%r8d
mov    -0x1c(%rbp),%r9d
mov    -0x28(%rbp),%rax
mov    %rax,(%rsp)
call   1040 <PKCS5_PBKDF2_HMAC_SHA1@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<hash_proto_pbkdf2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9,%r13
mov    %r8d,%r14d
mov    %ecx,%r15d
mov    %edx,%r12d
mov    %rsi,%rbp
mov    %rdi,%rbx
call   1030 <strlen@plt>
mov    %r13,(%rsp)
mov    %rbx,%rdi
mov    %eax,%esi
mov    %rbp,%rdx
mov    %r12d,%ecx
mov    %r15d,%r8d
mov    %r14d,%r9d
call   1040 <PKCS5_PBKDF2_HMAC_SHA1@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @hash_proto_pbkdf2(i8* %0, i8* %1, i32 %2, i32 %3, i32 %4, i8* %5) {
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i8*
store i8* %0, i8** %7
store i8* %1, i8** %8
store i32 %2, i32* %9
store i32 %3, i32* %10
store i32 %4, i32* %11
store i8* %5, i8** %12
%13 = load i8*, i8** %7
%14 = load i8*, i8** %7
%15 = call i32 @strlen(i8* %14)
%16 = load i8*, i8** %8
%17 = load i32, i32* %9
%18 = load i32, i32* %10
%19 = load i32, i32* %11
%20 = load i8*, i8** %12
%21 = call i32 @PKCS5_PBKDF2_HMAC_SHA1(i8* %13, i32 %15, i8* %16, i32 %17, i32 %18, i32 %19, i8* %20)
ret void
}

LLVM IR (-O2):
define void @hash_proto_pbkdf2(i8* %0, i8* %1, i32 %2, i32 %3, i32 %4, i8* %5) {
%7 = tail call i32 @strlen(i8* %0)
%8 = tail call i32 @PKCS5_PBKDF2_HMAC_SHA1(i8* %0, i32 %7, i8* %1, i32 %2, i32 %3, i32 %4, i8* %5)
ret void
}
void av_packet_new_side_data() {}


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

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

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

LLVM IR (-O2):
define void @av_packet_new_side_data() {
ret void
}
gtlbl(token) char *token;
{
  return (1);
  token = token;
}


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

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

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

LLVM IR (-O2):
define i32 @gtlbl(i8* nocapture readnone %0) {
ret i32 1
}
mykeysig(sf, mi) int sf, mi;
{
  prtime();
  printf("KeySig %d %s\n", (sf > 127 ? sf - 256 : sf),
         (mi ? "minor" : "major"));
}


x86 assembly (clang, -O0):
<mykeysig>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    $0x0,%al
call   1040 <prtime@plt>
cmpl   $0x7f,-0x8(%rbp)
jle    114f <mykeysig+0x2f>
mov    -0x8(%rbp),%eax
sub    $0x100,%eax
mov    %eax,-0x10(%rbp)
jmp    1155 <mykeysig+0x35>
mov    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%esi
mov    -0xc(%rbp),%ecx
lea    0xeb2(%rip),%rdx
lea    0xea5(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rdx
lea    0xe89(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mykeysig>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebp
mov    %edi,%ebx
xor    %eax,%eax
call   1040 <prtime@plt>
lea    -0x100(%rbx),%esi
cmp    $0x7f,%ebx
cmovle %ebx,%esi
test   %ebp,%ebp
lea    0xed1(%rip),%rax
lea    0xec4(%rip),%rdx
cmove  %rax,%rdx
lea    0xeab(%rip),%rdi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [14 x i8] c"KeySig %d %s\0A\00"
@.str.1 = [6 x i8] c"minor\00"
@.str.2 = [6 x i8] c"major\00"
define i32 @mykeysig(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
%6 = call i32 (...) @prtime()
%7 = load i32, i32* %4
%8 = icmp sgt i32 %7, 127
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load i32, i32* %4
%11 = sub nsw i32 %10, 256
br label %14
12: ; preds = %2
%13 = load i32, i32* %4
br label %14
14: ; preds = %12, %9
%15 = phi i32 [ %11, %9 ], [ %13, %12 ]
%16 = load i32, i32* %5
%17 = icmp ne i32 %16, 0
%18 = zext i1 %17 to i64
%19 = select i1 %17, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %15, i8* %19)
%21 = load i32, i32* %3
ret i32 %21
}

LLVM IR (-O2):
@.str = [14 x i8] c"KeySig %d %s\0A\00"
@.str.1 = [6 x i8] c"minor\00"
@.str.2 = [6 x i8] c"major\00"
define i32 @mykeysig(i32 %0, i32 %1) {
%3 = tail call i32 (...) @prtime()
%4 = icmp sgt i32 %0, 127
%5 = add nsw i32 %0, -256
%6 = select i1 %4, i32 %5, i32 %0
%7 = icmp eq i32 %1, 0
%8 = select i1 %7, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %6, i8* %8)
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ set_key_wait_vtime(int);
void set_key_wait_unix(void) { set_key_wait_vtime(1); }


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

x86 assembly (clang, -O2):
<set_key_wait_unix>:
mov    $0x1,%edi
jmp    1030 <set_key_wait_vtime@plt>

LLVM IR (-O0):
define void @set_key_wait_unix() {
%1 = call i32 @set_key_wait_vtime(i32 1)
ret void
}

LLVM IR (-O2):
define void @set_key_wait_unix() {
%1 = tail call i32 @set_key_wait_vtime(i32 1)
ret void
}
int gdt_compare_uchar(const void *p1, const void *p2) {
  unsigned char c1 = *((unsigned char *)p1);
  unsigned char c2 = *((unsigned char *)p2);
  if (c1 < c2) {
    return -1;
  } else if (c1 > c2) {
    return 1;
  } else {
    return 0;
  }
}


x86 assembly (clang, -O0):
<gdt_compare_uchar>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x19(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x1a(%rbp)
movzbl -0x19(%rbp),%eax
movzbl -0x1a(%rbp),%ecx
cmp    %ecx,%eax
jge    113a <gdt_compare_uchar+0x3a>
movl   $0xffffffff,-0x4(%rbp)
jmp    115d <gdt_compare_uchar+0x5d>
movzbl -0x19(%rbp),%eax
movzbl -0x1a(%rbp),%ecx
cmp    %ecx,%eax
jle    1156 <gdt_compare_uchar+0x56>
movl   $0x1,-0x4(%rbp)
jmp    115d <gdt_compare_uchar+0x5d>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<gdt_compare_uchar>:
mov    (%rdi),%al
xor    %ecx,%ecx
cmp    (%rsi),%al
seta   %cl
mov    $0xffffffff,%eax
cmovae %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @gdt_compare_uchar(i8* nocapture %0, i8* nocapture %1) {
%3 = load i8, i8* %0
%4 = load i8, i8* %1
%5 = icmp ult i8 %3, %4
%6 = icmp ugt i8 %3, %4
%7 = zext i1 %6 to i32
%8 = select i1 %5, i32 -1, i32 %7
ret i32 %8
}
/* Variables and functions */
float sinf(float);
float __ocl_half_sin_float(float src) { return sinf(src); }


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

x86 assembly (clang, -O2):
<__ocl_half_sin_float>:
jmp    1030 <sinf@plt>

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

LLVM IR (-O2):
define float @__ocl_half_sin_float(float %0) {
%2 = tail call float @sinf(float %0)
ret float %2
}
/* Variables and functions */
int /*<<< orphan*/ imprime_nombre(char *);
void main() { imprime_nombre("Alvaro"); }


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

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

LLVM IR (-O0):
@.str = [7 x i8] c"Alvaro\00"
define void @main() {
%1 = call i32 @imprime_nombre(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"Alvaro\00"
define void @main() {
%1 = tail call i32 @imprime_nombre(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
ret void
}