xunge/DecIR huggingface dataset:
int main(int argc, char *argv[]) {
  printf("%s:%u "
         "%s %u\n"
         "%s",
         __PRETTY_FUNCTION__, 15, "haha", 107,
         "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
         "2022-01-22/02-19-57/repos/cuiwm/choe_lib/refs/heads/master/test/"
         "func_line.c");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xed3(%rip),%rdi
lea    0xedb(%rip),%rsi
mov    $0xf,%edx
lea    0xee6(%rip),%rcx
mov    $0x6b,%r8d
lea    0xede(%rip),%r9
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
lea    0xef0(%rip),%rsi
lea    0xf00(%rip),%rcx
lea    0xefe(%rip),%r9
mov    $0xf,%edx
mov    $0x6b,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [15 x i8] c"%s:%u %s %u\0A%s\00"
@__PRETTY_FUNCTION__.main = [23 x i8] c"int main(int, char **)\00"
@.str.1 = [5 x i8] c"haha\00"
@.str.2 = [140 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/cuiwm/choe_lib/refs/heads/master/test/func_line.c\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @__PRETTY_FUNCTION__.main, i64 0, i64 0), i32 15, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 107, i8* getelementptr inbounds ([140 x i8], [140 x i8]* @.str.2, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [15 x i8] c"%s:%u %s %u\0A%s\00"
@__PRETTY_FUNCTION__.main = [23 x i8] c"int main(int, char **)\00"
@.str.1 = [5 x i8] c"haha\00"
@.str.2 = [140 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/cuiwm/choe_lib/refs/heads/master/test/func_line.c\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @__PRETTY_FUNCTION__.main, i64 0, i64 0), i32 15, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 107, i8* getelementptr inbounds ([140 x i8], [140 x i8]* @.str.2, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
scalar_t__ isdigit(unsigned char);
int isnumber(const char *string) {
  while (isdigit((unsigned char)*string))
    string++;
  return *string == '\0';
}


x86 assembly (clang, -O0):
<isnumber>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movzbl (%rax),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     1143 <isnumber+0x33>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    111c <isnumber+0xc>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<isnumber>:
push   %rbx
mov    %rdi,%rbx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movzbl (%rbx),%edi
call   1030 <isdigit@plt>
add    $0x1,%rbx
test   %rax,%rax
jne    1120 <isnumber+0x10>
xor    %eax,%eax
cmpb   $0x0,-0x1(%rbx)
sete   %al
pop    %rbx
ret

LLVM IR (-O0):
define i32 @isnumber(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
br label %3
3: ; preds = %8, %1
%4 = load i8*, i8** %2
%5 = load i8, i8* %4
%6 = call i64 @isdigit(i8 zeroext %5)
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %3
%9 = load i8*, i8** %2
%10 = getelementptr inbounds i8, i8* %9, i32 1
store i8* %10, i8** %2
br label %3
11: ; preds = %3
%12 = load i8*, i8** %2
%13 = load i8, i8* %12
%14 = sext i8 %13 to i32
%15 = icmp eq i32 %14, 0
%16 = zext i1 %15 to i32
ret i32 %16
}

LLVM IR (-O2):
define i32 @isnumber(i8* nocapture %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i8* [ %0, %1 ], [ %7, %2 ]
%4 = load i8, i8* %3
%5 = tail call i64 @isdigit(i8 zeroext %4)
%6 = icmp eq i64 %5, 0
%7 = getelementptr inbounds i8, i8* %3, i64 1
br i1 %6, label %8, label %2
8: ; preds = %2
%9 = load i8, i8* %3
%10 = icmp eq i8 %9, 0
%11 = zext i1 %10 to i32
ret i32 %11
}
void GUI_Strlwr(char *str) {
  do {
    if (*str >= 'A' && *str <= 'Z')
      *str += 32;
  } while (*str++);
}


x86 assembly (clang, -O0):
<GUI_Strlwr>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x41,%eax
jl     1134 <GUI_Strlwr+0x34>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5a,%eax
jg     1134 <GUI_Strlwr+0x34>
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
add    $0x20,%ecx
mov    %cl,(%rax)
jmp    1139 <GUI_Strlwr+0x39>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
cmpb   $0x0,(%rax)
jne    1108 <GUI_Strlwr+0x8>
pop    %rbp
ret

x86 assembly (clang, -O2):
<GUI_Strlwr>:
jmp    1118 <GUI_Strlwr+0x18>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x1,%rdi
test   %al,%al
je     1129 <GUI_Strlwr+0x29>
movzbl (%rdi),%eax
lea    -0x41(%rax),%ecx
cmp    $0x19,%cl
ja     1110 <GUI_Strlwr+0x10>
add    $0x20,%al
mov    %al,(%rdi)
jmp    1110 <GUI_Strlwr+0x10>
ret

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

LLVM IR (-O2):
define void @GUI_Strlwr(i8* nocapture %0) {
br label %2
2: ; preds = %9, %1
%3 = phi i8* [ %0, %1 ], [ %11, %9 ]
%4 = load i8, i8* %3
%5 = add i8 %4, -65
%6 = icmp ult i8 %5, 26
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = add nuw nsw i8 %4, 32
store i8 %8, i8* %3
br label %9
9: ; preds = %2, %7
%10 = phi i8 [ %4, %2 ], [ %8, %7 ]
%11 = getelementptr inbounds i8, i8* %3, i64 1
%12 = icmp eq i8 %10, 0
br i1 %12, label %13, label %2
13: ; preds = %9
ret void
}
/* Variables and functions */
int /*<<< orphan*/ f2();
int /*<<< orphan*/ printf(char *, ...);
void f1(int i, int j, int k, int l) {
  printf("in f1():\n");
  printf("autoval = %d, regival = %d, volaval = %d, statval = %d\n", i, j, k,
         j);
  f2();
}


x86 assembly (clang, -O0):
<f1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
lea    0xec5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x4(%rbp),%esi
mov    -0x8(%rbp),%edx
mov    -0xc(%rbp),%ecx
mov    -0x8(%rbp),%r8d
lea    0xeb4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1030 <f2@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<f1>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%r14d
mov    %esi,%ebp
mov    %edi,%ebx
lea    0xef6(%rip),%rdi
call   1040 <puts@plt>
lea    0xeb2(%rip),%rdi
mov    %ebx,%esi
mov    %ebp,%edx
mov    %r14d,%ecx
mov    %ebp,%r8d
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <f2@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"in f1():\0A\00"
@.str.1 = [56 x i8] c"autoval = %d, regival = %d, volaval = %d, statval = %d\0A\00"
define void @f1(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%10 = load i32, i32* %5
%11 = load i32, i32* %6
%12 = load i32, i32* %7
%13 = load i32, i32* %6
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.1, i64 0, i64 0), i32 %10, i32 %11, i32 %12, i32 %13)
%15 = call i32 (...) @f2()
ret void
}

LLVM IR (-O2):
@.str.1 = [56 x i8] c"autoval = %d, regival = %d, volaval = %d, statval = %d\0A\00"
@str = [9 x i8] c"in f1():\00"
define void @f1(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.1, i64 0, i64 0), i32 %0, i32 %1, i32 %2, i32 %1)
%7 = tail call i32 (...) @f2()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int);
int /*<<< orphan*/ scanf(char *, int *, int *);
int main() {
  int a, b, t;
  scanf("%d%d", &a, &b);
  t = a;
  a = b;
  b = t;
  printf("%d %d\n", a, b);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xea3(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
call   1040 <scanf@plt>
mov    0x4(%rsp),%edx
mov    (%rsp),%esi
mov    %esi,0x4(%rsp)
mov    %edx,(%rsp)
lea    0xebb(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [5 x i8] c"%d%d\00"
@.str.1 = [7 x i8] c"%d %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%6 = load i32, i32* %1
%7 = load i32, i32* %2
store i32 %7, i32* %1
store i32 %6, i32* %2
%8 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %7, i32 %6)
ret i32 0
}
int cQuitGame(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @cQuitGame() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ mat3d_mult_vec3d_new(double *, double const *, double *);
void mat3d_mult_vec3d(double vector[3], const double matrix[9]) {
  mat3d_mult_vec3d_new(vector, matrix, vector);
}


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

x86 assembly (clang, -O2):
<mat3d_mult_vec3d>:
mov    %rdi,%rdx
jmp    1030 <mat3d_mult_vec3d_new@plt>

LLVM IR (-O0):
define void @mat3d_mult_vec3d(double* %0, double* %1) {
%3 = alloca double*
%4 = alloca double*
store double* %0, double** %3
store double* %1, double** %4
%5 = load double*, double** %3
%6 = load double*, double** %4
%7 = load double*, double** %3
%8 = call i32 @mat3d_mult_vec3d_new(double* %5, double* %6, double* %7)
ret void
}

LLVM IR (-O2):
define void @mat3d_mult_vec3d(double* %0, double* %1) {
%3 = tail call i32 @mat3d_mult_vec3d_new(double* %0, double* %1, double* %0)
ret void
}
void U210ToAR30() {}


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

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

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

LLVM IR (-O2):
define void @U210ToAR30() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ draw_msg_at_color(int, int, int, int);
void draw_msg_at(int x, int y) { draw_msg_at_color(x, y, 86, 80); }


x86 assembly (clang, -O0):
<draw_msg_at>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    $0x56,%edx
mov    $0x50,%ecx
call   1030 <draw_msg_at_color@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<draw_msg_at>:
mov    $0x56,%edx
mov    $0x50,%ecx
jmp    1030 <draw_msg_at_color@plt>

LLVM IR (-O0):
define void @draw_msg_at(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = load i32, i32* %4
%7 = call i32 @draw_msg_at_color(i32 %5, i32 %6, i32 86, i32 80)
ret void
}

LLVM IR (-O2):
define void @draw_msg_at(i32 %0, i32 %1) {
%3 = tail call i32 @draw_msg_at_color(i32 %0, i32 %1, i32 86, i32 80)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ do_something_usefull();
int /*<<< orphan*/ doublesubcycle1();
void doublesubcycle3(void) {
  doublesubcycle1();
  do_something_usefull();
}


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

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

LLVM IR (-O0):
define void @doublesubcycle3() {
%1 = call i32 (...) @doublesubcycle1()
%2 = call i32 (...) @do_something_usefull()
ret void
}

LLVM IR (-O2):
define void @doublesubcycle3() {
%1 = tail call i32 (...) @doublesubcycle1()
%2 = tail call i32 (...) @do_something_usefull()
ret void
}
int __attribute__((target("no-mmx"))) qq(int a) { return 40; }


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

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

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

LLVM IR (-O2):
define i32 @qq(i32 %0) {
ret i32 40
}
/* Variables and functions */
int /*<<< orphan*/ bar(long long);
void foo(void) { bar((long long)1); }


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

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

LLVM IR (-O0):
define void @foo() {
%1 = call i32 @bar(i64 1)
ret void
}

LLVM IR (-O2):
define void @foo() {
%1 = tail call i32 @bar(i64 1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Sys_Mkdir(char *);
void FS_CreatePath(char *path) {
  char *ofs;
  for (ofs = path + 1; *ofs; ofs++) {
    if (*ofs == '/') {
      *ofs = 0;
      Sys_Mkdir(path);
      *ofs = '/';
    }
  }
}


x86 assembly (clang, -O0):
<FS_CreatePath>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cmpb   $0x0,(%rax)
je     1172 <FS_CreatePath+0x62>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2f,%eax
jne    115c <FS_CreatePath+0x4c>
mov    -0x10(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x8(%rbp),%rdi
call   1030 <Sys_Mkdir@plt>
mov    -0x10(%rbp),%rax
movb   $0x2f,(%rax)
jmp    1161 <FS_CreatePath+0x51>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1128 <FS_CreatePath+0x18>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<FS_CreatePath>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
lea    0x1(%rdi),%rbx
jmp    1132 <FS_CreatePath+0x22>
nopl   (%rax)
movb   $0x0,(%rbx)
mov    %r14,%rdi
call   1030 <Sys_Mkdir@plt>
movb   $0x2f,(%rbx)
add    $0x1,%rbx
movzbl (%rbx),%eax
cmp    $0x2f,%al
je     1120 <FS_CreatePath+0x10>
test   %al,%al
je     1143 <FS_CreatePath+0x33>
add    $0x1,%rbx
jmp    1132 <FS_CreatePath+0x22>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define void @FS_CreatePath(i8* %0) {
br label %2
2: ; preds = %6, %1
%3 = phi i8* [ %0, %1 ], [ %4, %6 ]
%4 = getelementptr inbounds i8, i8* %3, i64 1
%5 = load i8, i8* %4
switch i8 %5, label %6 [
i8 0, label %9
i8 47, label %7
]
6: ; preds = %2, %7
br label %2
7: ; preds = %2
store i8 0, i8* %4
%8 = tail call i32 @Sys_Mkdir(i8* %0)
store i8 47, i8* %4
br label %6
9: ; preds = %2
ret void
}
/* Type definitions */
struct programmer_t {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ buspirate_bb_setpin_internal(struct programmer_t *, int,
                                                int /*<<< orphan*/);
void buspirate_bb_powerdown(struct programmer_t *pgm) {
  buspirate_bb_setpin_internal(pgm, 7, 0);
}


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

x86 assembly (clang, -O2):
<buspirate_bb_powerdown>:
mov    $0x7,%esi
xor    %edx,%edx
jmp    1030 <buspirate_bb_setpin_internal@plt>

LLVM IR (-O0):
%struct.programmer_t = type { i32 }
define void @buspirate_bb_powerdown(%struct.programmer_t* %0) {
%2 = alloca %struct.programmer_t*
store %struct.programmer_t* %0, %struct.programmer_t** %2
%3 = load %struct.programmer_t*, %struct.programmer_t** %2
%4 = call i32 @buspirate_bb_setpin_internal(%struct.programmer_t* %3, i32 7, i32 0)
ret void
}

LLVM IR (-O2):
%struct.programmer_t = type { i32 }
define void @buspirate_bb_powerdown(%struct.programmer_t* %0) {
%2 = tail call i32 @buspirate_bb_setpin_internal(%struct.programmer_t* %0, i32 7, i32 0)
ret void
}
int also_after(void) { return 2; }


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

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

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

LLVM IR (-O2):
define i32 @also_after() {
ret i32 2
}
/* Variables and functions */
int /*<<< orphan*/ assert(int);
void main() {
  int x, a = 0;
  if (x > -1000 && x < 1000) {
    if (2 * x == 3) {
      a = 1;
    }
    assert(a == 0);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x8(%rbp)
cmpl   $0xfffffc18,-0x4(%rbp)
jle    1160 <main+0x50>
cmpl   $0x3e8,-0x4(%rbp)
jge    1160 <main+0x50>
mov    -0x4(%rbp),%eax
shl    $0x1,%eax
cmp    $0x3,%eax
jne    114f <main+0x3f>
movl   $0x1,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define void @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %2
%3 = load i32, i32* %1
%4 = icmp sgt i32 %3, -1000
br i1 %4, label %5, label %18
5: ; preds = %0
%6 = load i32, i32* %1
%7 = icmp slt i32 %6, 1000
br i1 %7, label %8, label %18
8: ; preds = %5
%9 = load i32, i32* %1
%10 = mul nsw i32 2, %9
%11 = icmp eq i32 %10, 3
br i1 %11, label %12, label %13
12: ; preds = %8
store i32 1, i32* %2
br label %13
13: ; preds = %12, %8
%14 = load i32, i32* %2
%15 = icmp eq i32 %14, 0
%16 = zext i1 %15 to i32
%17 = call i32 @assert(i32 %16)
br label %18
18: ; preds = %13, %5, %0
ret void
}

LLVM IR (-O2):
define void @main() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ ketama_md5_digest(char const *, unsigned char *);
unsigned int ketama_hashi(const char *inString) {
  unsigned char digest[16], ret;
  ketama_md5_digest(inString, digest);
  ret = (digest[3] << 24) | (digest[2] << 16) | (digest[1] << 8) | digest[0];
  return ret;
}


x86 assembly (clang, -O0):
<ketama_hashi>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0x20(%rbp),%rsi
call   1030 <ketama_md5_digest@plt>
movzbl -0x1d(%rbp),%eax
shl    $0x18,%eax
movzbl -0x1e(%rbp),%ecx
shl    $0x10,%ecx
or     %ecx,%eax
movzbl -0x1f(%rbp),%ecx
shl    $0x8,%ecx
or     %ecx,%eax
movzbl -0x20(%rbp),%ecx
or     %ecx,%eax
mov    %al,-0x21(%rbp)
movzbl -0x21(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ketama_hashi>:
sub    $0x18,%rsp
mov    %rsp,%rsi
call   1030 <ketama_md5_digest@plt>
movzbl (%rsp),%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
define i32 @ketama_hashi(i8* %0) {
%2 = alloca i8*
%3 = alloca [16 x i8]
%4 = alloca i8
store i8* %0, i8** %2
%5 = load i8*, i8** %2
%6 = getelementptr inbounds [16 x i8], [16 x i8]* %3, i64 0, i64 0
%7 = call i32 @ketama_md5_digest(i8* %5, i8* %6)
%8 = getelementptr inbounds [16 x i8], [16 x i8]* %3, i64 0, i64 3
%9 = load i8, i8* %8
%10 = zext i8 %9 to i32
%11 = shl i32 %10, 24
%12 = getelementptr inbounds [16 x i8], [16 x i8]* %3, i64 0, i64 2
%13 = load i8, i8* %12
%14 = zext i8 %13 to i32
%15 = shl i32 %14, 16
%16 = or i32 %11, %15
%17 = getelementptr inbounds [16 x i8], [16 x i8]* %3, i64 0, i64 1
%18 = load i8, i8* %17
%19 = zext i8 %18 to i32
%20 = shl i32 %19, 8
%21 = or i32 %16, %20
%22 = getelementptr inbounds [16 x i8], [16 x i8]* %3, i64 0, i64 0
%23 = load i8, i8* %22
%24 = zext i8 %23 to i32
%25 = or i32 %21, %24
%26 = trunc i32 %25 to i8
store i8 %26, i8* %4
%27 = load i8, i8* %4
%28 = zext i8 %27 to i32
ret i32 %28
}

LLVM IR (-O2):
define i32 @ketama_hashi(i8* %0) {
%2 = alloca [16 x i8]
%3 = getelementptr inbounds [16 x i8], [16 x i8]* %2, i64 0, i64 0
%4 = call i32 @ketama_md5_digest(i8* %0, i8* %3)
%5 = load i8, i8* %3
%6 = zext i8 %5 to i32
ret i32 %6
}
char *k_strpcpy(char *dest, const char *src) {
  do
    (*dest++ = *src);
  while (*src++ != '\0');
  return dest - 1;
}


x86 assembly (clang, -O0):
<k_strpcpy>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%cl
mov    -0x8(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x8(%rbp)
mov    %cl,(%rax)
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    110c <k_strpcpy+0xc>
mov    -0x8(%rbp),%rax
add    $0xffffffffffffffff,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<k_strpcpy>:
mov    %rdi,%rax
add    $0xffffffffffffffff,%rax
nopw   0x0(%rax,%rax,1)
movzbl (%rsi),%ecx
mov    %cl,0x1(%rax)
add    $0x1,%rax
cmpb   $0x0,(%rsi)
lea    0x1(%rsi),%rsi
jne    1110 <k_strpcpy+0x10>
ret

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

LLVM IR (-O2):
define i8* @k_strpcpy(i8* writeonly %0, i8* nocapture %1) {
br label %3
3: ; preds = %3, %2
%4 = phi i8* [ %0, %2 ], [ %7, %3 ]
%5 = phi i8* [ %1, %2 ], [ %8, %3 ]
%6 = load i8, i8* %5
%7 = getelementptr inbounds i8, i8* %4, i64 1
store i8 %6, i8* %4
%8 = getelementptr inbounds i8, i8* %5, i64 1
%9 = load i8, i8* %5
%10 = icmp eq i8 %9, 0
br i1 %10, label %11, label %3
11: ; preds = %3
ret i8* %4
}
/* Type definitions */
struct List {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct List *);
int /*<<< orphan*/ list_clear(struct List *);
void list_destroy(struct List *list) {
  list_clear(list);
  free(list);
}


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

x86 assembly (clang, -O2):
<list_destroy>:
push   %rbx
mov    %rdi,%rbx
call   1040 <list_clear@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <free@plt>

LLVM IR (-O0):
%struct.List = type { i32 }
define void @list_destroy(%struct.List* %0) {
%2 = alloca %struct.List*
store %struct.List* %0, %struct.List** %2
%3 = load %struct.List*, %struct.List** %2
%4 = call i32 @list_clear(%struct.List* %3)
%5 = load %struct.List*, %struct.List** %2
%6 = call i32 @free(%struct.List* %5)
ret void
}

LLVM IR (-O2):
%struct.List = type { i32 }
define void @list_destroy(%struct.List* %0) {
%2 = tail call i32 @list_clear(%struct.List* %0)
%3 = tail call i32 @free(%struct.List* %0)
ret void
}
int test_imm_E1int8_reg(signed char val) {
  return ((val) & (-0xE1 << 0)) ? -20 : -40;
}


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

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

LLVM IR (-O0):
define i32 @test_imm_E1int8_reg(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = sext i8 %3 to i32
%5 = and i32 %4, -225
%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_E1int8_reg(i8 signext %0) {
%2 = sext i8 %0 to i32
%3 = and i32 %2, -225
%4 = icmp eq i32 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
void av_opt_child_next() {}


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

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

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

LLVM IR (-O2):
define void @av_opt_child_next() {
ret void
}
void yy_1_XmlCharRefChoice(char *yytext, int yyleng) {
  ;
  ;
}


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

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

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

LLVM IR (-O2):
define void @yy_1_XmlCharRefChoice(i8* nocapture %0, i32 %1) {
ret void
}
void SVC_Handler(void) {
  while (1)
    ;
}


x86 assembly (clang, -O0):
<SVC_Handler>:
push   %rbp
mov    %rsp,%rbp
jmp    1109 <SVC_Handler+0x9>
jmp    1109 <SVC_Handler+0x9>

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

LLVM IR (-O0):
define void @SVC_Handler() {
br label %1
1: ; preds = %0, %1
br label %1
}

LLVM IR (-O2):
define void @SVC_Handler() {
br label %1
1: ; preds = %0, %1
br label %1
}
/* Variables and functions */
int /*<<< orphan*/ fb_move_cursor(int /*<<< orphan*/);
int /*<<< orphan*/ fb_set_bg_color(int /*<<< orphan*/);
int /*<<< orphan*/ fb_set_fg_color(int);
int /*<<< orphan*/ fb_show_cursor();
void init_fb() {
  fb_set_fg_color(15);
  fb_set_bg_color(0);
  fb_show_cursor();
  fb_move_cursor(0);
}


x86 assembly (clang, -O0):
<init_fb>:
push   %rbp
mov    %rsp,%rbp
mov    $0xf,%edi
call   1050 <fb_set_fg_color@plt>
xor    %edi,%edi
call   1060 <fb_set_bg_color@plt>
mov    $0x0,%al
call   1040 <fb_show_cursor@plt>
xor    %edi,%edi
call   1030 <fb_move_cursor@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_fb>:
push   %rax
mov    $0xf,%edi
call   1050 <fb_set_fg_color@plt>
xor    %edi,%edi
call   1060 <fb_set_bg_color@plt>
xor    %eax,%eax
call   1040 <fb_show_cursor@plt>
xor    %edi,%edi
pop    %rax
jmp    1030 <fb_move_cursor@plt>

LLVM IR (-O0):
define void @init_fb() {
%1 = call i32 @fb_set_fg_color(i32 15)
%2 = call i32 @fb_set_bg_color(i32 0)
%3 = call i32 (...) @fb_show_cursor()
%4 = call i32 @fb_move_cursor(i32 0)
ret void
}

LLVM IR (-O2):
define void @init_fb() {
%1 = tail call i32 @fb_set_fg_color(i32 15)
%2 = tail call i32 @fb_set_bg_color(i32 0)
%3 = tail call i32 (...) @fb_show_cursor()
%4 = tail call i32 @fb_move_cursor(i32 0)
ret void
}
__attribute__((always_)) const float fminfk(float x, float y) {
  return x < y ? x : y;
}


x86 assembly (clang, -O0):
<fminfk>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  -0x4(%rbp),%xmm1
movss  -0x8(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    1130 <fminfk+0x30>
movss  -0x4(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
jmp    113a <fminfk+0x3a>
movss  -0x8(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<fminfk>:
minss  %xmm1,%xmm0
ret

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

LLVM IR (-O2):
define float @fminfk(float %0, float %1) {
%3 = fcmp olt float %0, %1
%4 = select i1 %3, float %0, float %1
ret float %4
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
int main() {
  int a;
  int b __attribute__((myattribute(a == a)));
  b = 5;
  {
    printf("Success\n");
    exit(0);
  };
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x5,-0xc(%rbp)
lea    0xec3(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

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

LLVM IR (-O0):
@.str = [9 x i8] c"Success\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 5, i32* %3
%4 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%5 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@str = [8 x i8] c"Success\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @exit(i32 0)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ doStuff_arrayOfConstInt(int *);
void f_10(void) {
  int a[6];
  doStuff_arrayOfConstInt(a);
}


x86 assembly (clang, -O0):
<f_10>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
lea    -0x20(%rbp),%rdi
call   1030 <doStuff_arrayOfConstInt@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<f_10>:
sub    $0x18,%rsp
mov    %rsp,%rdi
call   1030 <doStuff_arrayOfConstInt@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
define void @f_10() {
%1 = alloca [6 x i32]
%2 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 0
%3 = call i32 @doStuff_arrayOfConstInt(i32* %2)
ret void
}

LLVM IR (-O2):
define void @f_10() {
%1 = alloca [6 x i32]
%2 = bitcast [6 x i32]* %1 to i8*
%3 = getelementptr inbounds [6 x i32], [6 x i32]* %1, i64 0, i64 0
%4 = call i32 @doStuff_arrayOfConstInt(i32* %3)
ret void
}
void ft_striteri(char *s, void (*f)(unsigned int, char *)) {
  int i;
  i = 0;
  if (s && f)
    while (*s)
      f(i++, s++);
}


x86 assembly (clang, -O0):
<ft_striteri>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1169 <ft_striteri+0x69>
cmpq   $0x0,-0x10(%rbp)
je     1169 <ft_striteri+0x69>
jmp    1132 <ft_striteri+0x32>
mov    -0x8(%rbp),%rax
cmpb   $0x0,(%rax)
je     1164 <ft_striteri+0x64>
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%edi
mov    %edi,%ecx
add    $0x1,%ecx
mov    %ecx,-0x14(%rbp)
mov    -0x8(%rbp),%rsi
mov    %rsi,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
call   *%rax
jmp    1132 <ft_striteri+0x32>
jmp    1169 <ft_striteri+0x69>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_striteri>:
push   %r15
push   %r14
push   %rbx
test   %rdi,%rdi
je     1135 <ft_striteri+0x35>
mov    %rsi,%r14
test   %rsi,%rsi
je     1135 <ft_striteri+0x35>
mov    %rdi,%r15
cmpb   $0x0,(%rdi)
je     1135 <ft_striteri+0x35>
xor    %ebx,%ebx
nopl   0x0(%rax)
lea    (%r15,%rbx,1),%rsi
mov    %ebx,%edi
call   *%r14
cmpb   $0x0,0x1(%r15,%rbx,1)
lea    0x1(%rbx),%rbx
jne    1120 <ft_striteri+0x20>
pop    %rbx
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
define void @ft_striteri(i8* %0, void (i32, i8*)* %1) {
%3 = icmp ne i8* %0, null
%4 = icmp ne void (i32, i8*)* %1, null
%5 = and i1 %3, %4
br i1 %5, label %6, label %16
6: ; preds = %2
%7 = load i8, i8* %0
%8 = icmp eq i8 %7, 0
br i1 %8, label %16, label %9
9: ; preds = %6, %9
%10 = phi i32 [ %12, %9 ], [ 0, %6 ]
%11 = phi i8* [ %13, %9 ], [ %0, %6 ]
%12 = add nuw nsw i32 %10, 1
%13 = getelementptr inbounds i8, i8* %11, i64 1
tail call void %1(i32 %10, i8* %11)
%14 = load i8, i8* %13
%15 = icmp eq i8 %14, 0
br i1 %15, label %16, label %9
16: ; preds = %9, %6, %2
ret void
}
int _dl_getegid(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @_dl_getegid() {
ret i32 0
}
void border_ne_ext_diagonal_special_sand_long_vert(unsigned char *pic,
                                                   unsigned char *mirr) {
  *pic = 0x2F;
  *mirr = 0x02;
}


x86 assembly (clang, -O0):
<border_ne_ext_diagonal_special_sand_long_vert>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movb   $0x2f,(%rax)
mov    -0x10(%rbp),%rax
movb   $0x2,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<border_ne_ext_diagonal_special_sand_long_vert>:
movb   $0x2f,(%rdi)
movb   $0x2,(%rsi)
ret

LLVM IR (-O0):
define void @border_ne_ext_diagonal_special_sand_long_vert(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %3
store i8 47, i8* %5
%6 = load i8*, i8** %4
store i8 2, i8* %6
ret void
}

LLVM IR (-O2):
define void @border_ne_ext_diagonal_special_sand_long_vert(i8* nocapture writeonly %0, i8* nocapture writeonly %1) {
store i8 47, i8* %0
store i8 2, i8* %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ stderr;
void printUsage(char *appname) {
  char *usage =
      "%s usage:\n\n"
      "\t-h				  Print help\n"
      "\t-d <device name>	  Serial port device (default: /dev/ttyS0)\n"
      "\t-a <address>		  IP address (default: 127.0.0.1)\n"
      "\t-p <port>		  UDP port (default: 9999)\n";
  fprintf(stderr, usage, appname);
}


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

x86 assembly (clang, -O2):
<printUsage>:
mov    %rdi,%rdx
mov    0x2ec6(%rip),%rax
mov    (%rax),%edi
lea    0xedd(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@.str = [181 x i8] c"%s usage:\0A\0A\09-h\09\09\09\09 Print help\0A\09-d <device name>\09 Serial port device (default: /dev/ttyS0)\0A\09-a <address>\09\09 IP address (default: 127.0.0.1)\0A\09-p <port>\09\09 UDP port (default: 9999)\0A\00"
@stderr = global i32 0
define void @printUsage(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %2
store i8* getelementptr inbounds ([181 x i8], [181 x i8]* @.str, i64 0, i64 0), i8** %3
%4 = load i32, i32* @stderr
%5 = load i8*, i8** %3
%6 = load i8*, i8** %2
%7 = call i32 @fprintf(i32 %4, i8* %5, i8* %6)
ret void
}

LLVM IR (-O2):
@.str = [181 x i8] c"%s usage:\0A\0A\09-h\09\09\09\09 Print help\0A\09-d <device name>\09 Serial port device (default: /dev/ttyS0)\0A\09-a <address>\09\09 IP address (default: 127.0.0.1)\0A\09-p <port>\09\09 UDP port (default: 9999)\0A\00"
@stderr = global i32 0
define void @printUsage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([181 x i8], [181 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ puts(char *);
int builtin_echo(size_t argc, char **argv) {
  for (size_t i = 1; i < argc; i++) {
    printf("%s ", argv[i]);
  }
  puts("");
  return 0;
}


x86 assembly (clang, -O0):
<builtin_echo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x1,-0x18(%rbp)
mov    -0x18(%rbp),%rax
cmp    -0x8(%rbp),%rax
jae    116f <builtin_echo+0x4f>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xea7(%rip),%rdi
call   1040 <printf@plt>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1138 <builtin_echo+0x18>
lea    0xe8d(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<builtin_echo>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
cmp    $0x2,%rdi
jb     1155 <builtin_echo+0x35>
mov    %rsi,%r14
mov    %rdi,%r12
mov    $0x1,%ebx
lea    0xec0(%rip),%r15
mov    (%r14,%rbx,8),%rsi
mov    %r15,%rdi
call   1040 <printf@plt>
add    $0x1,%rbx
cmp    %rbx,%r12
jne    1140 <builtin_echo+0x20>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%s \00"
@.str.1 = [1 x i8] zeroinitializer
define i32 @builtin_echo(i64 %0, i8** %1) {
%3 = alloca i64
%4 = alloca i8**
%5 = alloca i64
store i64 %0, i64* %3
store i8** %1, i8*** %4
store i64 1, i64* %5
br label %6
6: ; preds = %16, %2
%7 = load i64, i64* %5
%8 = load i64, i64* %3
%9 = icmp ult i64 %7, %8
br i1 %9, label %10, label %19
10: ; preds = %6
%11 = load i8**, i8*** %4
%12 = load i64, i64* %5
%13 = getelementptr inbounds i8*, i8** %11, i64 %12
%14 = load i8*, i8** %13
%15 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %14)
br label %16
16: ; preds = %10
%17 = load i64, i64* %5
%18 = add i64 %17, 1
store i64 %18, i64* %5
br label %6
19: ; preds = %6
%20 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%s \00"
define i32 @builtin_echo(i64 %0, i8** nocapture %1) {
%3 = icmp ugt i64 %0, 1
br i1 %3, label %6, label %4
4: ; preds = %6, %2
%5 = tail call i32 @putchar(i32 10)
ret i32 0
6: ; preds = %2, %6
%7 = phi i64 [ %11, %6 ], [ 1, %2 ]
%8 = getelementptr inbounds i8*, i8** %1, i64 %7
%9 = load i8*, i8** %8
%10 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %9)
%11 = add nuw i64 %7, 1
%12 = icmp eq i64 %11, %0
br i1 %12, label %4, label %6
}
void batadv_mcast_mla_update(struct batadv_priv *bat_priv) {}


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

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

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

LLVM IR (-O2):
%struct.batadv_priv = type opaque
define void @batadv_mcast_mla_update(%struct.batadv_priv* nocapture %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ free(void *);
void free_complex(void *ptr) {
  free(*(void **)ptr);
  free(ptr);
}


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

x86 assembly (clang, -O2):
<free_complex>:
push   %rbx
mov    %rdi,%rbx
mov    (%rdi),%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <free@plt>

LLVM IR (-O0):
define void @free_complex(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = bitcast i8* %3 to i8**
%5 = load i8*, i8** %4
%6 = call i32 @free(i8* %5)
%7 = load i8*, i8** %2
%8 = call i32 @free(i8* %7)
ret void
}

LLVM IR (-O2):
define void @free_complex(i8* nocapture %0) {
%2 = bitcast i8* %0 to i8**
%3 = load i8*, i8** %2
%4 = tail call i32 @free(i8* %3)
%5 = tail call i32 @free(i8* %0)
ret void
}
int test_030(int a, int b, int c, int d) { return a + b + c + ((d >> 31) & 1); }


x86 assembly (clang, -O0):
<test_030>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    -0x4(%rbp),%eax
add    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
mov    -0x10(%rbp),%ecx
sar    $0x1f,%ecx
and    $0x1,%ecx
add    %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_030>:
lea    (%rdi,%rsi,1),%eax
add    %edx,%eax
shr    $0x1f,%ecx
add    %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_030(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = load i32, i32* %5
%10 = load i32, i32* %6
%11 = add nsw i32 %9, %10
%12 = load i32, i32* %7
%13 = add nsw i32 %11, %12
%14 = load i32, i32* %8
%15 = ashr i32 %14, 31
%16 = and i32 %15, 1
%17 = add nsw i32 %13, %16
ret i32 %17
}

LLVM IR (-O2):
define i32 @test_030(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = add nsw i32 %1, %0
%6 = add nsw i32 %5, %2
%7 = lshr i32 %3, 31
%8 = add nsw i32 %6, %7
ret i32 %8
}
int iscntrl(int c) { return (c >= 0 && c <= 0x1f) || (c == 0x7f); }


x86 assembly (clang, -O0):
<iscntrl>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jl     1120 <iscntrl+0x20>
mov    $0x1,%al
cmpl   $0x1f,-0x4(%rbp)
mov    %al,-0x5(%rbp)
jle    112a <iscntrl+0x2a>
cmpl   $0x7f,-0x4(%rbp)
sete   %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<iscntrl>:
cmp    $0x20,%edi
setb   %al
cmp    $0x7f,%edi
sete   %cl
or     %al,%cl
movzbl %cl,%eax
ret

LLVM IR (-O0):
define i32 @iscntrl(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp sge i32 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, i32* %2
%7 = icmp sle i32 %6, 31
br i1 %7, label %11, label %8
8: ; preds = %5, %1
%9 = load i32, i32* %2
%10 = icmp eq i32 %9, 127
br label %11
11: ; preds = %8, %5
%12 = phi i1 [ true, %5 ], [ %10, %8 ]
%13 = zext i1 %12 to i32
ret i32 %13
}

LLVM IR (-O2):
define i32 @iscntrl(i32 %0) {
%2 = icmp ult i32 %0, 32
%3 = icmp eq i32 %0, 127
%4 = or i1 %2, %3
%5 = zext i1 %4 to i32
ret i32 %5
}
/* Type definitions */
typedef float wchar_t;

/* Variables and functions */
wchar_t test12(void) { return L'\f'; }


x86 assembly (clang, -O0):
<test12>:
push   %rbp
mov    %rsp,%rbp
movss  0xef4(%rip),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<test12>:
movss  0xef8(%rip),%xmm0
ret

LLVM IR (-O0):
define float @test12() {
ret float 1.200000e+01
}

LLVM IR (-O2):
define float @test12() {
ret float 1.200000e+01
}
/* Variables and functions */
int /*<<< orphan*/ put32(unsigned long);
int /*<<< orphan*/ put8(int);
void mov_preg32preg32pimm32_reg8(int reg1, int reg2, unsigned long imm32,
                                 int reg8) {
  put8(0x88);
  put8(0x84 | (reg8 << 3));
  put8((reg2 << 3) | reg1);
  put32(imm32);
}


x86 assembly (clang, -O0):
<mov_preg32preg32pimm32_reg8>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    $0x88,%edi
call   1030 <put8@plt>
mov    -0x14(%rbp),%edi
shl    $0x3,%edi
or     $0x84,%edi
call   1030 <put8@plt>
mov    -0x8(%rbp),%edi
shl    $0x3,%edi
or     -0x4(%rbp),%edi
call   1030 <put8@plt>
mov    -0x10(%rbp),%rdi
call   1040 <put32@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mov_preg32preg32pimm32_reg8>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %ecx,%ebx
mov    %rdx,%r14
mov    %esi,%ebp
mov    %edi,%r15d
mov    $0x88,%edi
call   1030 <put8@plt>
shl    $0x3,%ebx
or     $0x84,%ebx
mov    %ebx,%edi
call   1030 <put8@plt>
shl    $0x3,%ebp
or     %r15d,%ebp
mov    %ebp,%edi
call   1030 <put8@plt>
mov    %r14,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <put32@plt>

LLVM IR (-O0):
define void @mov_preg32preg32pimm32_reg8(i32 %0, i32 %1, i64 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i64
%8 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store i64 %2, i64* %7
store i32 %3, i32* %8
%9 = call i32 @put8(i32 136)
%10 = load i32, i32* %8
%11 = shl i32 %10, 3
%12 = or i32 132, %11
%13 = call i32 @put8(i32 %12)
%14 = load i32, i32* %6
%15 = shl i32 %14, 3
%16 = load i32, i32* %5
%17 = or i32 %15, %16
%18 = call i32 @put8(i32 %17)
%19 = load i64, i64* %7
%20 = call i32 @put32(i64 %19)
ret void
}

LLVM IR (-O2):
define void @mov_preg32preg32pimm32_reg8(i32 %0, i32 %1, i64 %2, i32 %3) {
%5 = tail call i32 @put8(i32 136)
%6 = shl i32 %3, 3
%7 = or i32 %6, 132
%8 = tail call i32 @put8(i32 %7)
%9 = shl i32 %1, 3
%10 = or i32 %9, %0
%11 = tail call i32 @put8(i32 %10)
%12 = tail call i32 @put32(i64 %2)
ret void
}
char GetEncoding3() { return 0x56; }


x86 assembly (clang, -O0):
<GetEncoding3>:
push   %rbp
mov    %rsp,%rbp
mov    $0x56,%al
movsbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<GetEncoding3>:
mov    $0x56,%al
ret

LLVM IR (-O0):
define signext i8 @GetEncoding3() {
ret i8 86
}

LLVM IR (-O2):
define signext i8 @GetEncoding3() {
ret i8 86
}