xunge/DecIR huggingface dataset:
int intel_mid_pmic_set_pdata(const char *name, void *data, int len) {
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @intel_mid_pmic_set_pdata(i8* nocapture readnone %0, i8* nocapture readnone %1, i32 %2) {
ret i32 0
}
/* Variables and functions */
char *U_WMRCORENONE_set(char *);
char *U_WMR75_set(void) { return U_WMRCORENONE_set("U_WMR75"); }


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

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

LLVM IR (-O0):
@.str = [8 x i8] c"U_WMR75\00"
define i8* @U_WMR75_set() {
%1 = call i8* @U_WMRCORENONE_set(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
ret i8* %1
}

LLVM IR (-O2):
@.str = [8 x i8] c"U_WMR75\00"
define i8* @U_WMR75_set() {
%1 = tail call i8* @U_WMRCORENONE_set(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
ret i8* %1
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void create_html_body_end(void) {
  printf("</body>\n");
  printf("</html>\n");
}


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

x86 assembly (clang, -O2):
<create_html_body_end>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xee4(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"</body>\0A\00"
@.str.1 = [9 x i8] c"</html>\0A\00"
define void @create_html_body_end() {
%1 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [8 x i8] c"</body>\00"
@str.2 = [8 x i8] c"</html>\00"
define void @create_html_body_end() {
%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 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.2, i64 0, i64 0))
ret void
}
/* Variables and functions */
unsigned long os_get_top_address(unsigned long shift) { return 0x7fc0000000; }


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

x86 assembly (clang, -O2):
<os_get_top_address>:
movabs $0x7fc0000000,%rax
ret

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

LLVM IR (-O2):
define i64 @os_get_top_address(i64 %0) {
ret i64 548682072064
}
/* Variables and functions */
int /*<<< orphan*/ read_test();
int /*<<< orphan*/ read_test2();
int /*<<< orphan*/ write_test();
main() {
  write_test();
  read_test();
  read_test2();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <write_test@plt>
mov    $0x0,%al
call   1030 <read_test@plt>
mov    $0x0,%al
call   1050 <read_test2@plt>
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main() {
%1 = call i32 (...) @write_test()
%2 = call i32 (...) @read_test()
%3 = call i32 (...) @read_test2()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @write_test()
%2 = tail call i32 (...) @read_test()
%3 = tail call i32 (...) @read_test2()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ puts(char *);
int testExtern();
int main() {
  puts("Test extern");
  printf("%d\n", testExtern());
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
call   1030 <puts@plt>
mov    $0x0,%al
call   1050 <testExtern@plt>
mov    %eax,%esi
lea    0xeb1(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xec8(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1050 <testExtern@plt>
lea    0xec1(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [12 x i8] c"Test extern\00"
@.str.1 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @puts(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%3 = call i32 (...) @testExtern()
%4 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %3)
ret i32 0
}

LLVM IR (-O2):
@.str = [12 x i8] c"Test extern\00"
@.str.1 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (...) @testExtern()
%3 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %2)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *);
int /*<<< orphan*/ stderr;
void usage(const char *progname) {
  fprintf(stderr, "Usage: %s [-v] file ...\n", progname);
  exit(1);
}


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

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

LLVM IR (-O0):
@stderr = global i32 0
@.str = [25 x i8] c"Usage: %s [-v] file ...\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [25 x i8] c"Usage: %s [-v] file ...\0A\00"
define void @usage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i8* %0)
%4 = tail call i32 @exit(i32 1)
unreachable
}
double fibo_rec(int n) {
  if (n == 0)
    return 0;
  if (n == 1 || n == 2)
    return 1;
  else
    return fibo_rec(n - 1) + fibo_rec(n - 2);
}


x86 assembly (clang, -O0):
<fibo_rec>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jne    1132 <fibo_rec+0x22>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1184 <fibo_rec+0x74>
cmpl   $0x1,-0xc(%rbp)
je     1146 <fibo_rec+0x36>
cmpl   $0x2,-0xc(%rbp)
jne    1158 <fibo_rec+0x48>
movsd  0xeb2(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1184 <fibo_rec+0x74>
mov    -0xc(%rbp),%edi
sub    $0x1,%edi
call   1030 <fibo_rec@plt>
movsd  %xmm0,-0x18(%rbp)
mov    -0xc(%rbp),%edi
sub    $0x2,%edi
call   1030 <fibo_rec@plt>
movaps %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fibo_rec>:
push   %rbx
sub    $0x10,%rsp
test   %edi,%edi
je     112d <fibo_rec+0x1d>
mov    %edi,%ebx
lea    -0x1(%rbx),%edi
cmp    $0x1,%edi
ja     1133 <fibo_rec+0x23>
movsd  0xed5(%rip),%xmm0
jmp    114e <fibo_rec+0x3e>
xorpd  %xmm0,%xmm0
jmp    114e <fibo_rec+0x3e>
call   1030 <fibo_rec@plt>
movsd  %xmm0,0x8(%rsp)
add    $0xfffffffe,%ebx
mov    %ebx,%edi
call   1030 <fibo_rec@plt>
addsd  0x8(%rsp),%xmm0
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define double @fibo_rec(i32 %0) {
%2 = alloca double
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %1
store double 0.000000e+00, double* %2
br label %22
7: ; preds = %1
%8 = load i32, i32* %3
%9 = icmp eq i32 %8, 1
br i1 %9, label %13, label %10
10: ; preds = %7
%11 = load i32, i32* %3
%12 = icmp eq i32 %11, 2
br i1 %12, label %13, label %14
13: ; preds = %10, %7
store double 1.000000e+00, double* %2
br label %22
14: ; preds = %10
%15 = load i32, i32* %3
%16 = sub nsw i32 %15, 1
%17 = call double @fibo_rec(i32 %16)
%18 = load i32, i32* %3
%19 = sub nsw i32 %18, 2
%20 = call double @fibo_rec(i32 %19)
%21 = fadd double %17, %20
store double %21, double* %2
br label %22
22: ; preds = %14, %13, %6
%23 = load double, double* %2
ret double %23
}

LLVM IR (-O2):
define double @fibo_rec(i32 %0) {
%2 = icmp eq i32 %0, 0
br i1 %2, label %6, label %3
3: ; preds = %1
%4 = add i32 %0, -1
%5 = icmp ult i32 %4, 2
br i1 %5, label %6, label %8
6: ; preds = %1, %3, %8
%7 = phi double [ %12, %8 ], [ 0.000000e+00, %1 ], [ 1.000000e+00, %3 ]
ret double %7
8: ; preds = %3
%9 = tail call double @fibo_rec(i32 %4)
%10 = add nsw i32 %0, -2
%11 = tail call double @fibo_rec(i32 %10)
%12 = fadd double %9, %11
br label %6
}
/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, char const *, char const *);
void matched(const char *type, const char *z) {
  printf("Found .%s inside %s\n", z, type);
  exit(EXIT_FAILURE);
}


x86 assembly (clang, -O0):
<matched>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
mov    -0x8(%rbp),%rdx
lea    0xec1(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e95(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<matched>:
push   %rax
mov    %rdi,%rdx
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
mov    0x2ea9(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [21 x i8] c"Found .%s inside %s\0A\00"
@EXIT_FAILURE = global i32 0
define void @matched(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %4
%6 = load i8*, i8** %3
%7 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* %5, i8* %6)
%8 = load i32, i32* @EXIT_FAILURE
%9 = call i32 @exit(i32 %8)
unreachable
}

LLVM IR (-O2):
@.str = [21 x i8] c"Found .%s inside %s\0A\00"
@EXIT_FAILURE = global i32 0
define void @matched(i8* %0, i8* %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* %1, i8* %0)
%4 = load i32, i32* @EXIT_FAILURE
%5 = tail call i32 @exit(i32 %4)
unreachable
}
double fmax2(double d1, double d2) { return (d1 > d2) ? d1 : d2; }


x86 assembly (clang, -O0):
<fmax2>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    112d <fmax2+0x2d>
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
jmp    1137 <fmax2+0x37>
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<fmax2>:
maxsd  %xmm1,%xmm0
ret

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

LLVM IR (-O2):
define double @fmax2(double %0, double %1) {
%3 = fcmp ogt double %0, %1
%4 = select i1 %3, double %0, double %1
ret double %4
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main() {
#pragma xmp task on p0(1) nocomm
  { printf("Skipped\n"); }
}


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

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@str = [8 x i8] c"Skipped\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))
ret i32 0
}
/* Variables and functions */
scalar_t__ ceil(double);
double log(double);
int calc_bits(int dim, int res) {
  return (int)ceil(log((double)res) * (double)dim / log(2.0) - 1e-14);
}


x86 assembly (clang, -O0):
<calc_bits>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
cvtsi2sdl -0x8(%rbp),%xmm0
call   1040 <log@plt>
cvtsi2sdl -0x4(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xeba(%rip),%xmm0
call   1040 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x10(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  0xe99(%rip),%xmm1
subsd  %xmm1,%xmm0
call   1030 <ceil@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<calc_bits>:
push   %rbx
mov    %edi,%ebx
cvtsi2sd %esi,%xmm0
call   1040 <log@plt>
cvtsi2sd %ebx,%xmm1
mulsd  %xmm1,%xmm0
divsd  0xec4(%rip),%xmm0
addsd  0xec4(%rip),%xmm0
pop    %rbx
jmp    1030 <ceil@plt>

LLVM IR (-O0):
define i32 @calc_bits(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = sitofp i32 %5 to double
%7 = call double @log(double %6)
%8 = load i32, i32* %3
%9 = sitofp i32 %8 to double
%10 = fmul double %7, %9
%11 = call double @log(double 2.000000e+00)
%12 = fdiv double %10, %11
%13 = fsub double %12, 0x3D06849B86A12B9B
%14 = call i64 @ceil(double %13)
%15 = trunc i64 %14 to i32
ret i32 %15
}

LLVM IR (-O2):
define i32 @calc_bits(i32 %0, i32 %1) {
%3 = sitofp i32 %1 to double
%4 = tail call double @log(double %3)
%5 = sitofp i32 %0 to double
%6 = fmul double %4, %5
%7 = fdiv double %6, 0x3FE62E42FEFA39EF
%8 = fadd double %7, 0xBD06849B86A12B9B
%9 = tail call i64 @ceil(double %8)
%10 = trunc i64 %9 to i32
ret i32 %10
}
/* Variables and functions */
int /*<<< orphan*/ Thrd_Flush_Buffer32(int);
unsigned int Thrd_Show_Bits(int, int);
unsigned int Thrd_Get_Bits32(int t) {
  unsigned int l;
  {
    l = Thrd_Show_Bits(t, 32);
    Thrd_Flush_Buffer32(t);
    return (l);
  }
}


x86 assembly (clang, -O0):
<Thrd_Get_Bits32>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x20,%esi
call   1030 <Thrd_Show_Bits@plt>
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%edi
call   1040 <Thrd_Flush_Buffer32@plt>
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Thrd_Get_Bits32>:
push   %rbp
push   %rbx
push   %rax
mov    %edi,%ebx
mov    $0x20,%esi
call   1030 <Thrd_Show_Bits@plt>
mov    %eax,%ebp
mov    %ebx,%edi
call   1040 <Thrd_Flush_Buffer32@plt>
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @Thrd_Get_Bits32(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = call i32 @Thrd_Show_Bits(i32 %4, i32 32)
store i32 %5, i32* %3
%6 = load i32, i32* %2
%7 = call i32 @Thrd_Flush_Buffer32(i32 %6)
%8 = load i32, i32* %3
ret i32 %8
}

LLVM IR (-O2):
define i32 @Thrd_Get_Bits32(i32 %0) {
%2 = tail call i32 @Thrd_Show_Bits(i32 %0, i32 32)
%3 = tail call i32 @Thrd_Flush_Buffer32(i32 %0)
ret i32 %2
}
/* Variables and functions */
char *extra_default_config_filename();
int /*<<< orphan*/ params_parse(int, char **);
int /*<<< orphan*/ printf(char *, char *);
int main(int argc, char *argv[]) {
  params_parse(argc, argv);
  printf("%s\n", extra_default_config_filename());
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1030 <params_parse@plt>
mov    $0x0,%al
call   1050 <extra_default_config_filename@plt>
mov    %rax,%rsi
lea    0xe9d(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
call   1030 <params_parse@plt>
xor    %eax,%eax
call   1050 <extra_default_config_filename@plt>
lea    0xebc(%rip),%rdi
mov    %rax,%rsi
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [4 x i8] c"%s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i32 @params_parse(i32 %0, i8** %1)
%4 = tail call i8* (...) @extra_default_config_filename()
%5 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %4)
ret i32 0
}
int TE3D_Console_MoveCursor(int x, int y) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @TE3D_Console_MoveCursor(i32 %0, i32 %1) {
ret i32 0
}
/* Variables and functions */
bool UT8_MUL_OVFCHK(unsigned char a, unsigned char b) {
  return (a > 0 && b > 0 && a > 0xFFU / b);
}


x86 assembly (clang, -O0):
<UT8_MUL_OVFCHK>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %al,-0x2(%rbp)
movzbl -0x1(%rbp),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x3(%rbp)
jle    1155 <UT8_MUL_OVFCHK+0x55>
movzbl -0x2(%rbp),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x3(%rbp)
jle    1155 <UT8_MUL_OVFCHK+0x55>
movzbl -0x1(%rbp),%eax
mov    %eax,-0x8(%rbp)
movzbl -0x2(%rbp),%ecx
mov    $0xff,%eax
xor    %edx,%edx
div    %ecx
mov    %eax,%ecx
mov    -0x8(%rbp),%eax
cmp    %ecx,%eax
seta   %al
mov    %al,-0x3(%rbp)
mov    -0x3(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<UT8_MUL_OVFCHK>:
mov    %esi,%eax
xor    %ecx,%ecx
mul    %dil
seto   %cl
mov    %ecx,%eax
ret

LLVM IR (-O0):
define i32 @UT8_MUL_OVFCHK(i8 zeroext %0, i8 zeroext %1) {
%3 = alloca i8
%4 = alloca i8
store i8 %0, i8* %3
store i8 %1, i8* %4
%5 = load i8, i8* %3
%6 = zext i8 %5 to i32
%7 = icmp sgt i32 %6, 0
br i1 %7, label %8, label %19
8: ; preds = %2
%9 = load i8, i8* %4
%10 = zext i8 %9 to i32
%11 = icmp sgt i32 %10, 0
br i1 %11, label %12, label %19
12: ; preds = %8
%13 = load i8, i8* %3
%14 = zext i8 %13 to i32
%15 = load i8, i8* %4
%16 = zext i8 %15 to i32
%17 = udiv i32 255, %16
%18 = icmp ugt i32 %14, %17
br label %19
19: ; preds = %12, %8, %2
%20 = phi i1 [ false, %8 ], [ false, %2 ], [ %18, %12 ]
%21 = zext i1 %20 to i32
ret i32 %21
}

LLVM IR (-O2):
define i32 @UT8_MUL_OVFCHK(i8 zeroext %0, i8 zeroext %1) {
%3 = tail call { i8, i1 } @llvm.umul.with.overflow.i8(i8 %1, i8 %0)
%4 = extractvalue { i8, i1 } %3, 1
%5 = zext i1 %4 to i32
ret i32 %5
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
bool handle_dsform(uint32_t insn, unsigned long *gprs, unsigned long *addr) {
  if ((((insn) >> (32 - (11) - (5))) & ((1 << (5)) - 1)) != 0)
    *addr = gprs[(((insn) >> (32 - (11) - (5))) & ((1 << (5)) - 1))];
  *addr +=
      ((((unsigned long)((((insn) >> (32 - (16) - (14))) & ((1 << (14)) - 1))) &
         (((unsigned long)1 << (14)) - 1)) ^
        ((unsigned long)1 << ((14) - 1))) -
       ((unsigned long)1 << ((14) - 1)))
      << 2;
  return true;
}


x86 assembly (clang, -O0):
<handle_dsform>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x4(%rbp),%eax
sar    $0x10,%eax
and    $0x1f,%eax
cmp    $0x0,%eax
je     113c <handle_dsform+0x3c>
mov    -0x10(%rbp),%rax
mov    -0x4(%rbp),%ecx
sar    $0x10,%ecx
and    $0x1f,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x4(%rbp),%eax
sar    $0x2,%eax
and    $0x3fff,%eax
movslq %eax,%rcx
and    $0x3fff,%rcx
xor    $0x2000,%rcx
sub    $0x2000,%rcx
shl    $0x2,%rcx
mov    -0x18(%rbp),%rax
add    (%rax),%rcx
mov    %rcx,(%rax)
mov    $0x1,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<handle_dsform>:
mov    %edi,%eax
shr    $0x10,%eax
and    $0x1f,%eax
lea    (%rsi,%rax,8),%rax
cmove  %rdx,%rax
mov    (%rax),%rax
and    $0xfffc,%edi
xor    $0x8000,%edi
add    %rdi,%rax
add    $0xffffffffffff8000,%rax
mov    %rax,(%rdx)
mov    $0x1,%eax
ret

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

LLVM IR (-O2):
define i32 @handle_dsform(i32 %0, i64* nocapture %1, i64* nocapture %2) {
%4 = lshr i32 %0, 16
%5 = and i32 %4, 31
%6 = icmp eq i32 %5, 0
%7 = zext i32 %5 to i64
%8 = getelementptr inbounds i64, i64* %1, i64 %7
%9 = select i1 %6, i64* %2, i64* %8
%10 = load i64, i64* %9
%11 = and i32 %0, 65532
%12 = xor i32 %11, 32768
%13 = zext i32 %12 to i64
%14 = add nsw i64 %13, -32768
%15 = add i64 %14, %10
store i64 %15, i64* %2
ret i32 1
}
sysput(string) {
  syspot(string);
  delete (string);
}


x86 assembly (clang, -O0):
<sysput>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%edi
mov    $0x0,%al
call   1030 <syspot@plt>
mov    -0x8(%rbp),%edi
mov    $0x0,%al
call   1040 <delete@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sysput>:
push   %rbx
mov    %edi,%ebx
xor    %eax,%eax
call   1030 <syspot@plt>
mov    %ebx,%edi
xor    %eax,%eax
pop    %rbx
jmp    1040 <delete@plt>

LLVM IR (-O0):
define i32 @sysput(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = call i32 (i32, ...) bitcast (i32 (...)* @syspot to i32 (i32, ...)*)(i32 %4)
%6 = load i32, i32* %3
%7 = call i32 (i32, ...) bitcast (i32 (...)* @delete to i32 (i32, ...)*)(i32 %6)
%8 = load i32, i32* %2
ret i32 %8
}

LLVM IR (-O2):
define i32 @sysput(i32 %0) {
%2 = tail call i32 (i32, ...) bitcast (i32 (...)* @syspot to i32 (i32, ...)*)(i32 %0)
%3 = tail call i32 (i32, ...) bitcast (i32 (...)* @delete to i32 (i32, ...)*)(i32 %0)
ret i32 undef
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ htonl(int /*<<< orphan*/ const);
int /*<<< orphan*/ memcpy(int /*<<< orphan*/ *, int /*<<< orphan*/ *, int);
void serial_uint32(uint8_t **const ptr, const uint32_t v) {
  uint32_t vo = htonl(v);
  memcpy(*ptr, &vo, sizeof vo);
  *ptr += sizeof vo;
}


x86 assembly (clang, -O0):
<serial_uint32>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%edi
call   1030 <htonl@plt>
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x4,%edx
call   1040 <memcpy@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%rcx
add    $0x10,%rcx
mov    %rcx,(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<serial_uint32>:
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
mov    %esi,%edi
call   1030 <htonl@plt>
mov    %eax,0xc(%rsp)
mov    (%rbx),%rdi
lea    0xc(%rsp),%rsi
mov    $0x4,%edx
call   1040 <memcpy@plt>
addq   $0x10,(%rbx)
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define void @serial_uint32(i32** %0, i32 %1) {
%3 = alloca i32**
%4 = alloca i32
%5 = alloca i32
store i32** %0, i32*** %3
store i32 %1, i32* %4
%6 = load i32, i32* %4
%7 = call i32 @htonl(i32 %6)
store i32 %7, i32* %5
%8 = load i32**, i32*** %3
%9 = load i32*, i32** %8
%10 = call i32 @memcpy(i32* %9, i32* %5, i32 4)
%11 = load i32**, i32*** %3
%12 = load i32*, i32** %11
%13 = getelementptr inbounds i32, i32* %12, i64 4
store i32* %13, i32** %11
ret void
}

LLVM IR (-O2):
define void @serial_uint32(i32** nocapture %0, i32 %1) {
%3 = alloca i32
%4 = bitcast i32* %3 to i8*
%5 = tail call i32 @htonl(i32 %1)
store i32 %5, i32* %3
%6 = load i32*, i32** %0
%7 = call i32 @memcpy(i32* %6, i32* %3, i32 4)
%8 = load i32*, i32** %0
%9 = getelementptr inbounds i32, i32* %8, i64 4
store i32* %9, i32** %0
ret void
}
void gtk_style_get_type() {}


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

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

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

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


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

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

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

LLVM IR (-O2):
define void @YUY2ToARGBRow_AVX2() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ bar();
int foo() {
  bar();
  int a = 5;
  int b = a;
  a = b;
  return a;
}


x86 assembly (clang, -O0):
<foo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <bar@plt>
movl   $0x5,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<foo>:
push   %rax
xor    %eax,%eax
call   1030 <bar@plt>
mov    $0x5,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @foo() {
%1 = alloca i32
%2 = alloca i32
%3 = call i32 (...) @bar()
store i32 5, i32* %1
%4 = load i32, i32* %1
store i32 %4, i32* %2
%5 = load i32, i32* %2
store i32 %5, i32* %1
%6 = load i32, i32* %1
ret i32 %6
}

LLVM IR (-O2):
define i32 @foo() {
%1 = tail call i32 (...) @bar()
ret i32 5
}
int is_paren_open(char c) { return (c == '(') ? 1 : 0; }


x86 assembly (clang, -O0):
<is_paren_open>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%edx
xor    %eax,%eax
mov    $0x1,%ecx
cmp    $0x28,%edx
cmove  %ecx,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @is_paren_open(i8 signext %0) {
%2 = icmp eq i8 %0, 40
%3 = zext i1 %2 to i32
ret i32 %3
}
void av_packet_split_side_data() {}


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

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

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

LLVM IR (-O2):
define void @av_packet_split_side_data() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ getch();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ system(char *);
void halp() {
  printf(" \n TicTac ver:V5a-10D8M17Y \n");
  printf(" copyright SergioEduP 2017\n");
  printf(" Press Enter to Continue..\n");
  printf("\nhalp@tic_tac\\sources\\menu.c:~$ ");
  getch();
  system("cls");
}


x86 assembly (clang, -O0):
<halp>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
call   1040 <printf@plt>
lea    0xed6(%rip),%rdi
call   1040 <printf@plt>
lea    0xee6(%rip),%rdi
call   1040 <printf@plt>
lea    0xef6(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <getch@plt>
lea    0xf04(%rip),%rdi
call   1030 <system@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<halp>:
push   %rax
lea    0xedd(%rip),%rdi
call   1030 <puts@plt>
lea    0xeed(%rip),%rdi
call   1030 <puts@plt>
lea    0xefc(%rip),%rdi
call   1030 <puts@plt>
lea    0xe94(%rip),%rdi
call   1050 <printf@plt>
xor    %eax,%eax
call   1060 <getch@plt>
lea    0xea2(%rip),%rdi
pop    %rax
jmp    1040 <system@plt>

LLVM IR (-O0):
@.str = [29 x i8] c" \0A TicTac ver:V5a-10D8M17Y \0A\00"
@.str.1 = [28 x i8] c" copyright SergioEduP 2017\0A\00"
@.str.2 = [28 x i8] c" Press Enter to Continue..\0A\00"
@.str.3 = [33 x i8] c"\0Ahalp@tic_tac\\sources\\menu.c:~$ \00"
@.str.4 = [4 x i8] c"cls\00"
define void @halp() {
%1 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 (...) @getch()
%6 = call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.3 = [33 x i8] c"\0Ahalp@tic_tac\\sources\\menu.c:~$ \00"
@.str.4 = [4 x i8] c"cls\00"
@str = [28 x i8] c" \0A TicTac ver:V5a-10D8M17Y \00"
@str.5 = [27 x i8] c" copyright SergioEduP 2017\00"
@str.6 = [27 x i8] c" Press Enter to Continue..\00"
define void @halp() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.5, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.6, i64 0, i64 0))
%4 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 (...) @getch()
%6 = tail call i32 @system(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
ret void
}
int ISORegexp__identifier_char(int c) {
  if ((c == '_') || (c == ':') || ((c >= 'A') && (c <= 'Z')) ||
      ((c >= 'a') && (c <= 'z')) || ((c >= '0') && (c <= '9')))
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<ISORegexp__identifier_char>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0x5f,-0x8(%rbp)
je     1157 <ISORegexp__identifier_char+0x57>
cmpl   $0x3a,-0x8(%rbp)
je     1157 <ISORegexp__identifier_char+0x57>
cmpl   $0x41,-0x8(%rbp)
jl     112f <ISORegexp__identifier_char+0x2f>
cmpl   $0x5a,-0x8(%rbp)
jle    1157 <ISORegexp__identifier_char+0x57>
cmpl   $0x61,-0x8(%rbp)
jl     1143 <ISORegexp__identifier_char+0x43>
cmpl   $0x7a,-0x8(%rbp)
jle    1157 <ISORegexp__identifier_char+0x57>
cmpl   $0x30,-0x8(%rbp)
jl     1163 <ISORegexp__identifier_char+0x63>
cmpl   $0x39,-0x8(%rbp)
jg     1163 <ISORegexp__identifier_char+0x63>
movl   $0x1,-0x4(%rbp)
jmp    116a <ISORegexp__identifier_char+0x6a>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ISORegexp__identifier_char>:
mov    $0x1,%eax
cmp    $0x3a,%edi
je     110f <ISORegexp__identifier_char+0xf>
cmp    $0x5f,%edi
jne    1110 <ISORegexp__identifier_char+0x10>
ret
mov    %edi,%eax
and    $0xffffffdf,%eax
add    $0xffffffbf,%eax
cmp    $0x1a,%eax
setb   %al
add    $0xffffffd0,%edi
cmp    $0xa,%edi
setb   %cl
or     %al,%cl
movzbl %cl,%eax
ret

LLVM IR (-O0):
define i32 @ISORegexp__identifier_char(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp eq i32 %4, 95
br i1 %5, label %27, label %6
6: ; preds = %1
%7 = load i32, i32* %3
%8 = icmp eq i32 %7, 58
br i1 %8, label %27, label %9
9: ; preds = %6
%10 = load i32, i32* %3
%11 = icmp sge i32 %10, 65
br i1 %11, label %12, label %15
12: ; preds = %9
%13 = load i32, i32* %3
%14 = icmp sle i32 %13, 90
br i1 %14, label %27, label %15
15: ; preds = %12, %9
%16 = load i32, i32* %3
%17 = icmp sge i32 %16, 97
br i1 %17, label %18, label %21
18: ; preds = %15
%19 = load i32, i32* %3
%20 = icmp sle i32 %19, 122
br i1 %20, label %27, label %21
21: ; preds = %18, %15
%22 = load i32, i32* %3
%23 = icmp sge i32 %22, 48
br i1 %23, label %24, label %28
24: ; preds = %21
%25 = load i32, i32* %3
%26 = icmp sle i32 %25, 57
br i1 %26, label %27, label %28
27: ; preds = %24, %18, %12, %6, %1
store i32 1, i32* %2
br label %29
28: ; preds = %24, %21
store i32 0, i32* %2
br label %29
29: ; preds = %28, %27
%30 = load i32, i32* %2
ret i32 %30
}

LLVM IR (-O2):
define i32 @ISORegexp__identifier_char(i32 %0) {
switch i32 %0, label %2 [
i32 95, label %10
i32 58, label %10
]
2: ; preds = %1
%3 = and i32 %0, -33
%4 = add i32 %3, -65
%5 = icmp ult i32 %4, 26
%6 = add i32 %0, -48
%7 = icmp ult i32 %6, 10
%8 = or i1 %7, %5
%9 = zext i1 %8 to i32
br label %10
10: ; preds = %2, %1, %1
%11 = phi i32 [ 1, %1 ], [ 1, %1 ], [ %9, %2 ]
ret i32 %11
}
int dynarray_assoc(void **pp, int n, int key) {
  int i;
  for (i = 0; i < n; ++i, ++pp)
    if (key == **(int **)pp)
      return i;
  return -1;
}


x86 assembly (clang, -O0):
<dynarray_assoc>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %edx,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    115d <dynarray_assoc+0x5d>
mov    -0x18(%rbp),%eax
mov    -0x10(%rbp),%rcx
mov    (%rcx),%rcx
cmp    (%rcx),%eax
jne    113e <dynarray_assoc+0x3e>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1164 <dynarray_assoc+0x64>
jmp    1143 <dynarray_assoc+0x43>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x10(%rbp)
jmp    1115 <dynarray_assoc+0x15>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<dynarray_assoc>:
mov    $0xffffffff,%eax
test   %esi,%esi
jle    1121 <dynarray_assoc+0x21>
mov    %esi,%r8d
xor    %ecx,%ecx
xchg   %ax,%ax
mov    (%rdi,%rcx,8),%rsi
cmp    %edx,(%rsi)
je     1122 <dynarray_assoc+0x22>
add    $0x1,%rcx
cmp    %ecx,%r8d
jne    1110 <dynarray_assoc+0x10>
ret
mov    %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @dynarray_assoc(i8** nocapture %0, i32 %1, i32 %2) {
%4 = icmp sgt i32 %1, 0
br i1 %4, label %5, label %16
5: ; preds = %3, %12
%6 = phi i32 [ %13, %12 ], [ 0, %3 ]
%7 = phi i8** [ %14, %12 ], [ %0, %3 ]
%8 = bitcast i8** %7 to i32**
%9 = load i32*, i32** %8
%10 = load i32, i32* %9
%11 = icmp eq i32 %10, %2
br i1 %11, label %16, label %12
12: ; preds = %5
%13 = add nuw nsw i32 %6, 1
%14 = getelementptr inbounds i8*, i8** %7, i64 1
%15 = icmp eq i32 %13, %1
br i1 %15, label %16, label %5
16: ; preds = %5, %12, %3
%17 = phi i32 [ -1, %3 ], [ -1, %12 ], [ %6, %5 ]
ret i32 %17
}
void debug_puts(const char *str) {
  const char *c;
  for (c = str; *c; c++)
    (*((volatile char *)0x52)) = *c;
}


x86 assembly (clang, -O0):
<debug_puts>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cmpb   $0x0,(%rax)
je     113b <debug_puts+0x3b>
mov    -0x10(%rbp),%rax
mov    (%rax),%cl
mov    $0x52,%eax
mov    %cl,(%rax)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1110 <debug_puts+0x10>
pop    %rbp
ret

x86 assembly (clang, -O2):
<debug_puts>:
mov    (%rdi),%al
test   %al,%al
je     1122 <debug_puts+0x22>
add    $0x1,%rdi
nopw   0x0(%rax,%rax,1)
mov    %al,0x52
movzbl (%rdi),%eax
add    $0x1,%rdi
test   %al,%al
jne    1110 <debug_puts+0x10>
ret

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

LLVM IR (-O2):
define void @debug_puts(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %10, label %4
4: ; preds = %1, %4
%5 = phi i8 [ %8, %4 ], [ %2, %1 ]
%6 = phi i8* [ %7, %4 ], [ %0, %1 ]
store volatile i8 %5, i8* inttoptr (i64 82 to i8*)
%7 = getelementptr inbounds i8, i8* %6, i64 1
%8 = load i8, i8* %7
%9 = icmp eq i8 %8, 0
br i1 %9, label %10, label %4
10: ; preds = %4, %1
ret void
}
/* Variables and functions */
float smith_waterman_similarity_custom(char const *, char const *,
                                       int /*<<< orphan*/);
int /*<<< orphan*/ sub_cost_1_min_2();
float smith_waterman_similarity(const char *str1, const char *str2) {
  return (smith_waterman_similarity_custom(str1, str2, sub_cost_1_min_2()));
}


x86 assembly (clang, -O0):
<smith_waterman_similarity>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    $0x0,%al
call   1030 <sub_cost_1_min_2@plt>
mov    -0x20(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    %eax,%edx
call   1040 <smith_waterman_similarity_custom@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<smith_waterman_similarity>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
xor    %eax,%eax
call   1030 <sub_cost_1_min_2@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %eax,%edx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <smith_waterman_similarity_custom@plt>

LLVM IR (-O0):
define float @smith_waterman_similarity(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %3
%6 = load i8*, i8** %4
%7 = call i32 (...) @sub_cost_1_min_2()
%8 = call float @smith_waterman_similarity_custom(i8* %5, i8* %6, i32 %7)
ret float %8
}

LLVM IR (-O2):
define float @smith_waterman_similarity(i8* %0, i8* %1) {
%3 = tail call i32 (...) @sub_cost_1_min_2()
%4 = tail call float @smith_waterman_similarity_custom(i8* %0, i8* %1, i32 %3)
ret float %4
}
/* Variables and functions */
char *strchr(char const *, int /*<<< orphan*/);
char *tcc_basename(const char *name) {
  char *p = strchr(name, 0);
  while (p > name && !(p[-1] == '/'))
    --p;
  return p;
}


x86 assembly (clang, -O0):
<tcc_basename>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
xor    %esi,%esi
call   1030 <strchr@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rcx
xor    %eax,%eax
cmp    -0x8(%rbp),%rcx
mov    %al,-0x11(%rbp)
jbe    1151 <tcc_basename+0x41>
mov    -0x10(%rbp),%rax
movsbl -0x1(%rax),%eax
cmp    $0x2f,%eax
sete   %al
xor    $0xff,%al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%al
test   $0x1,%al
jne    1161 <tcc_basename+0x51>
jmp    1172 <tcc_basename+0x62>
mov    -0x10(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x10(%rbp)
jmp    112b <tcc_basename+0x1b>
mov    -0x10(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tcc_basename>:
push   %rbx
mov    %rdi,%rbx
call   1030 <strlen@plt>
mov    %rax,%rcx
add    %rbx,%rcx
nop
mov    %rcx,%rax
cmp    %rbx,%rcx
jbe    1132 <tcc_basename+0x22>
lea    -0x1(%rax),%rcx
cmpb   $0x2f,-0x1(%rax)
jne    1120 <tcc_basename+0x10>
pop    %rbx
ret

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

LLVM IR (-O2):
define i8* @tcc_basename(i8* %0) {
%2 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%3 = getelementptr i8, i8* %0, i64 %2
br label %4
4: ; preds = %7, %1
%5 = phi i8* [ %3, %1 ], [ %8, %7 ]
%6 = icmp ugt i8* %5, %0
br i1 %6, label %7, label %11
7: ; preds = %4
%8 = getelementptr inbounds i8, i8* %5, i64 -1
%9 = load i8, i8* %8
%10 = icmp eq i8 %9, 47
br i1 %10, label %11, label %4
11: ; preds = %4, %7
ret i8* %5
}
/* Variables and functions */
int __VERIFIER_nondet_int();
int main() {
  int x, y, z;
  x = __VERIFIER_nondet_int();
  y = __VERIFIER_nondet_int();
  z = __VERIFIER_nondet_int();
  if (2 * y >= z) {
    while (x >= 0 && z == 1) {
      x = x - 2 * y + 1;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0xc(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
shl    $0x1,%eax
cmp    -0x10(%rbp),%eax
jl     1195 <main+0x85>
jmp    1151 <main+0x41>
xor    %eax,%eax
cmpl   $0x0,-0x8(%rbp)
mov    %al,-0x11(%rbp)
jl     116a <main+0x5a>
cmpl   $0x1,-0x10(%rbp)
sete   %al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%al
test   $0x1,%al
jne    117a <main+0x6a>
jmp    1190 <main+0x80>
mov    -0x8(%rbp),%eax
mov    -0xc(%rbp),%ecx
shl    $0x1,%ecx
sub    %ecx,%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1151 <main+0x41>
jmp    1195 <main+0x85>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %5, i32* %2
%6 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %6, i32* %3
%7 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %7, i32* %4
%8 = load i32, i32* %3
%9 = mul nsw i32 2, %8
%10 = load i32, i32* %4
%11 = icmp sge i32 %9, %10
br i1 %11, label %12, label %28
12: ; preds = %0
br label %13
13: ; preds = %21, %12
%14 = load i32, i32* %2
%15 = icmp sge i32 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %13
%17 = load i32, i32* %4
%18 = icmp eq i32 %17, 1
br label %19
19: ; preds = %16, %13
%20 = phi i1 [ false, %13 ], [ %18, %16 ]
br i1 %20, label %21, label %27
21: ; preds = %19
%22 = load i32, i32* %2
%23 = load i32, i32* %3
%24 = mul nsw i32 2, %23
%25 = sub nsw i32 %22, %24
%26 = add nsw i32 %25, 1
store i32 %26, i32* %2
br label %13
27: ; preds = %19
br label %28
28: ; preds = %27, %0
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @__VERIFIER_nondet_int()
%2 = tail call i32 (...) @__VERIFIER_nondet_int()
%3 = tail call i32 (...) @__VERIFIER_nondet_int()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ UAVObjUpdated(int /*<<< orphan*/);
int /*<<< orphan*/ VelocityActualHandle();
void VelocityActualUpdated() { UAVObjUpdated(VelocityActualHandle()); }


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

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

LLVM IR (-O0):
define void @VelocityActualUpdated() {
%1 = call i32 (...) @VelocityActualHandle()
%2 = call i32 @UAVObjUpdated(i32 %1)
ret void
}

LLVM IR (-O2):
define void @VelocityActualUpdated() {
%1 = tail call i32 (...) @VelocityActualHandle()
%2 = tail call i32 @UAVObjUpdated(i32 %1)
ret void
}
double zero(double x) { return 0; }


x86 assembly (clang, -O0):
<zero>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
xorps  %xmm0,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<zero>:
xorps  %xmm0,%xmm0
ret

LLVM IR (-O0):
define double @zero(double %0) {
%2 = alloca double
store double %0, double* %2
ret double 0.000000e+00
}

LLVM IR (-O2):
define double @zero(double %0) {
ret double 0.000000e+00
}