xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ creerPile();
int depiler();
int /*<<< orphan*/ empiler(int);
int main(void) {
  creerPile();
  empiler(42);
  empiler(9);
  int retour = depiler();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <creerPile@plt>
mov    $0x2a,%edi
call   1040 <empiler@plt>
mov    $0x9,%edi
call   1040 <empiler@plt>
mov    $0x0,%al
call   1050 <depiler@plt>
mov    %eax,-0x8(%rbp)
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <creerPile@plt>
mov    $0x2a,%edi
call   1040 <empiler@plt>
mov    $0x9,%edi
call   1040 <empiler@plt>
xor    %eax,%eax
call   1050 <depiler@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 (...) @creerPile()
%4 = call i32 @empiler(i32 42)
%5 = call i32 @empiler(i32 9)
%6 = call i32 (...) @depiler()
store i32 %6, i32* %2
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @creerPile()
%2 = tail call i32 @empiler(i32 42)
%3 = tail call i32 @empiler(i32 9)
%4 = tail call i32 (...) @depiler()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ abort();
char *dlerror();
void *dlsym(void *, char const *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *, char *);
int /*<<< orphan*/ stderr;
void *dlsym_fatal(void *handle, const char *sym) {
  void *addr = dlsym(handle, sym);
  if (!addr) {
    fprintf(stderr, "Failed to lookup symbol %s (ELF): %s\n", sym, dlerror());
    abort();
  }
  return addr;
}


x86 assembly (clang, -O0):
<dlsym_fatal>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1060 <dlsym@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    11a4 <dlsym_fatal+0x64>
mov    0x2e6d(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    $0x0,%al
call   1030 <dlerror@plt>
mov    -0x24(%rbp),%edi
mov    -0x20(%rbp),%rdx
mov    %rax,%rcx
lea    0xe68(%rip),%rsi
call   1050 <fprintf@plt>
mov    $0x0,%al
call   1040 <abort@plt>
mov    -0x18(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dlsym_fatal>:
push   %rbp
push   %rbx
push   %rax
mov    %rsi,%rbx
call   1060 <dlsym@plt>
test   %rax,%rax
je     1157 <dlsym_fatal+0x17>
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret
mov    0x2e82(%rip),%rax
mov    (%rax),%ebp
xor    %eax,%eax
call   1030 <dlerror@plt>
lea    0xe92(%rip),%rsi
mov    %ebp,%edi
mov    %rbx,%rdx
mov    %rax,%rcx
call   1050 <fprintf@plt>
xor    %eax,%eax
call   1040 <abort@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [38 x i8] c"Failed to lookup symbol %s (ELF): %s\0A\00"
define i8* @dlsym_fatal(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%6 = load i8*, i8** %3
%7 = load i8*, i8** %4
%8 = call i8* @dlsym(i8* %6, i8* %7)
store i8* %8, i8** %5
%9 = load i8*, i8** %5
%10 = icmp ne i8* %9, null
br i1 %10, label %17, label %11
11: ; preds = %2
%12 = load i32, i32* @stderr
%13 = load i8*, i8** %4
%14 = call i8* (...) @dlerror()
%15 = call i32 @fprintf(i32 %12, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i8* %13, i8* %14)
%16 = call i32 (...) @abort()
unreachable
17: ; preds = %2
%18 = load i8*, i8** %5
ret i8* %18
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [38 x i8] c"Failed to lookup symbol %s (ELF): %s\0A\00"
define i8* @dlsym_fatal(i8* %0, i8* %1) {
%3 = tail call i8* @dlsym(i8* %0, i8* %1)
%4 = icmp eq i8* %3, null
br i1 %4, label %5, label %10
5: ; preds = %2
%6 = load i32, i32* @stderr
%7 = tail call i8* (...) @dlerror()
%8 = tail call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i8* %1, i8* %7)
%9 = tail call i32 (...) @abort()
unreachable
10: ; preds = %2
ret i8* %3
}
void topline(int d, char *p) {
  *p++ = ' ';
  switch (d) {
  case 0:
  case 2:
  case 3:
  case 5:
  case 7:
  case 8:
  case 9:
    *p++ = '_';
    break;
  default:
    *p++ = ' ';
  }
  *p++ = ' ';
}


x86 assembly (clang, -O0):
<topline>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
movb   $0x20,(%rax)
mov    -0x4(%rbp),%eax
mov    %eax,-0x14(%rbp)
test   %eax,%eax
je     1169 <topline+0x69>
jmp    1130 <topline+0x30>
mov    -0x14(%rbp),%eax
add    $0xfffffffe,%eax
sub    $0x2,%eax
jb     1169 <topline+0x69>
jmp    1144 <topline+0x44>
mov    -0x14(%rbp),%eax
sub    $0x5,%eax
je     1169 <topline+0x69>
jmp    1155 <topline+0x55>
mov    -0x14(%rbp),%eax
add    $0xfffffff9,%eax
sub    $0x2,%eax
ja     1180 <topline+0x80>
jmp    1169 <topline+0x69>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
movb   $0x5f,(%rax)
jmp    1192 <topline+0x92>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
movb   $0x20,(%rax)
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
movb   $0x20,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<topline>:
movb   $0x20,(%rsi)
mov    $0x20,%al
cmp    $0x9,%edi
ja     1117 <topline+0x17>
movslq %edi,%rax
lea    0xeec(%rip),%rcx
mov    (%rax,%rcx,1),%al
mov    %al,0x1(%rsi)
movb   $0x20,0x2(%rsi)
ret

LLVM IR (-O0):
define void @topline(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
store i32 %0, i32* %3
store i8* %1, i8** %4
%5 = load i8*, i8** %4
%6 = getelementptr inbounds i8, i8* %5, i32 1
store i8* %6, i8** %4
store i8 32, i8* %5
%7 = load i32, i32* %3
switch i32 %7, label %11 [
i32 0, label %8
i32 2, label %8
i32 3, label %8
i32 5, label %8
i32 7, label %8
i32 8, label %8
i32 9, label %8
]
8: ; preds = %2, %2, %2, %2, %2, %2, %2
%9 = load i8*, i8** %4
%10 = getelementptr inbounds i8, i8* %9, i32 1
store i8* %10, i8** %4
store i8 95, i8* %9
br label %14
11: ; preds = %2
%12 = load i8*, i8** %4
%13 = getelementptr inbounds i8, i8* %12, i32 1
store i8* %13, i8** %4
store i8 32, i8* %12
br label %14
14: ; preds = %11, %8
%15 = load i8*, i8** %4
%16 = getelementptr inbounds i8, i8* %15, i32 1
store i8* %16, i8** %4
store i8 32, i8* %15
ret void
}

LLVM IR (-O2):
@switch.table.topline = [10 x i8] c"_ __ _ ___"
define void @topline(i32 %0, i8* nocapture writeonly %1) {
store i8 32, i8* %1
%3 = icmp ult i32 %0, 10
br i1 %3, label %4, label %8
4: ; preds = %2
%5 = sext i32 %0 to i64
%6 = getelementptr inbounds [10 x i8], [10 x i8]* @switch.table.topline, i64 0, i64 %5
%7 = load i8, i8* %6
br label %8
8: ; preds = %2, %4
%9 = phi i8 [ %7, %4 ], [ 32, %2 ]
%10 = getelementptr inbounds i8, i8* %1, i64 2
%11 = getelementptr inbounds i8, i8* %1, i64 1
store i8 %9, i8* %11
store i8 32, i8* %10
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int /*<<< orphan*/, char *, int, char *);
int /*<<< orphan*/ isupper(int);
void t_isupper_0x4f() {
  Assert_real((isupper(79)),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/"
              "dg/z88dk/test/suites/ctype/test_isupper.c",
              400, ("isupper should be 1 for O"));
}


x86 assembly (clang, -O0):
<t_isupper_0x4f>:
push   %rbp
mov    %rsp,%rbp
mov    $0x4f,%edi
call   1030 <isupper@plt>
mov    %eax,%edi
lea    0xec9(%rip),%rsi
mov    $0x190,%edx
lea    0xf65(%rip),%rcx
call   1040 <Assert_real@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_isupper_0x4f>:
push   %rax
mov    $0x4f,%edi
call   1030 <isupper@plt>
lea    0xece(%rip),%rsi
lea    0xf6f(%rip),%rcx
mov    %eax,%edi
mov    $0x190,%edx
pop    %rax
jmp    1040 <Assert_real@plt>

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

LLVM IR (-O2):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isupper.c\00"
@.str.1 = [26 x i8] c"isupper should be 1 for O\00"
define void @t_isupper_0x4f() {
%1 = tail call i32 @isupper(i32 79)
%2 = tail call i32 @Assert_real(i32 %1, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 400, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
ret void
}
__attribute__((noipa)) int f6(int x) {
  return __builtin_clz(x) != sizeof(int) * 8 - 1;
}


x86 assembly (clang, -O0):
<f6>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
bsr    %eax,%eax
xor    $0x1f,%eax
cltq
cmp    $0x1f,%rax
setne  %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<f6>:
xor    %eax,%eax
cmp    $0x1,%edi
setne  %al
ret

LLVM IR (-O0):
define i32 @f6(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @llvm.ctlz.i32(i32 %3, i1 true)
%5 = sext i32 %4 to i64
%6 = icmp ne i64 %5, 31
%7 = zext i1 %6 to i32
ret i32 %7
}

LLVM IR (-O2):
define i32 @f6(i32 %0) {
%2 = icmp ne i32 %0, 1
%3 = zext i1 %2 to i32
ret i32 %3
}
/* Variables and functions */
int omp_get_num_threads();
int omp_get_thread_num();
int /*<<< orphan*/ printf(char *, int, int);
int /*<<< orphan*/ sleep(int);
int main(int argc, char **argv) {
#pragma omp parallel num_threads(6)
  {
    printf("Hello, multithreaded world: thread %d of %d\n",
           omp_get_thread_num(), omp_get_num_threads());
    sleep(30);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1030 <omp_get_thread_num@plt>
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1050 <omp_get_num_threads@plt>
mov    -0x14(%rbp),%esi
mov    %eax,%edx
lea    0xe8d(%rip),%rdi
call   1040 <printf@plt>
mov    $0x1e,%edi
call   1060 <sleep@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1030 <omp_get_thread_num@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1050 <omp_get_num_threads@plt>
lea    0xea8(%rip),%rdi
mov    %ebx,%esi
mov    %eax,%edx
call   1040 <printf@plt>
mov    $0x1e,%edi
call   1060 <sleep@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [45 x i8] c"Hello, multithreaded world: thread %d of %d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 (...) @omp_get_thread_num()
%7 = call i32 (...) @omp_get_num_threads()
%8 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0), i32 %6, i32 %7)
%9 = call i32 @sleep(i32 30)
ret i32 0
}

LLVM IR (-O2):
@.str = [45 x i8] c"Hello, multithreaded world: thread %d of %d\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @omp_get_thread_num()
%4 = tail call i32 (...) @omp_get_num_threads()
%5 = tail call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0), i32 %3, i32 %4)
%6 = tail call i32 @sleep(i32 30)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ m33mulf(void *, void const *, void const *);
void update(void *dest, void const *child, void const *parent) {
  (void)m33mulf(dest, parent, child);
}


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

x86 assembly (clang, -O2):
<update>:
mov    %rsi,%rax
mov    %rdx,%rsi
mov    %rax,%rdx
jmp    1030 <m33mulf@plt>

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

LLVM IR (-O2):
define void @update(i8* %0, i8* %1, i8* %2) {
%4 = tail call i32 @m33mulf(i8* %0, i8* %2, i8* %1)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint_fast8_t;

/* Variables and functions */
void SHAREMIND_MAP_KEY_FREE_uint_fast8_t(uint_fast8_t *const dest) {
  (void)dest;
}


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

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

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

LLVM IR (-O2):
define void @SHAREMIND_MAP_KEY_FREE_uint_fast8_t(i32* nocapture %0) {
ret void
}
/* Variables and functions */
double randNormalize();
double randReal(double izq, double der) {
  return (randNormalize() * (der - izq) + izq);
}


x86 assembly (clang, -O0):
<randReal>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
mov    $0x0,%al
call   1030 <randNormalize@plt>
movsd  -0x10(%rbp),%xmm2
subsd  -0x8(%rbp),%xmm2
movsd  -0x8(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<randReal>:
sub    $0x18,%rsp
movsd  %xmm1,0x10(%rsp)
movsd  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   1030 <randNormalize@plt>
movsd  0x8(%rsp),%xmm1
movsd  0x10(%rsp),%xmm2
subsd  %xmm1,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define double @randReal(double %0, double %1) {
%3 = alloca double
%4 = alloca double
store double %0, double* %3
store double %1, double* %4
%5 = call double (...) @randNormalize()
%6 = load double, double* %4
%7 = load double, double* %3
%8 = fsub double %6, %7
%9 = load double, double* %3
%10 = call double @llvm.fmuladd.f64(double %5, double %8, double %9)
ret double %10
}

LLVM IR (-O2):
define double @randReal(double %0, double %1) {
%3 = tail call double (...) @randNormalize()
%4 = fsub double %1, %0
%5 = tail call double @llvm.fmuladd.f64(double %3, double %4, double %0)
ret double %5
}
/* Variables and functions */
unsigned char *fromFPtr(int (*fptr)(int, int, int)) {
  size_t i;
  unsigned char *p = (unsigned char *)&fptr;
  unsigned char out[sizeof fptr];
  for (i = 0; i < sizeof fptr; i++) {
    out[i] = p[i];
  }
  return out;
}


x86 assembly (clang, -O0):
<fromFPtr>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
lea    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
movq   $0x0,-0x10(%rbp)
cmpq   $0x8,-0x10(%rbp)
jae    1147 <fromFPtr+0x47>
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    (%rax,%rcx,1),%cl
mov    -0x10(%rbp),%rax
mov    %cl,-0x20(%rbp,%rax,1)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1118 <fromFPtr+0x18>
lea    -0x20(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<fromFPtr>:
lea    -0x8(%rsp),%rax
ret

LLVM IR (-O0):
define i8* @fromFPtr(i32 (i32, i32, i32)* %0) {
%2 = alloca i32 (i32, i32, i32)*
%3 = alloca i64
%4 = alloca i8*
%5 = alloca [8 x i8]
store i32 (i32, i32, i32)* %0, i32 (i32, i32, i32)** %2
%6 = bitcast i32 (i32, i32, i32)** %2 to i8*
store i8* %6, i8** %4
store i64 0, i64* %3
br label %7
7: ; preds = %17, %1
%8 = load i64, i64* %3
%9 = icmp ult i64 %8, 8
br i1 %9, label %10, label %20
10: ; preds = %7
%11 = load i8*, i8** %4
%12 = load i64, i64* %3
%13 = getelementptr inbounds i8, i8* %11, i64 %12
%14 = load i8, i8* %13
%15 = load i64, i64* %3
%16 = getelementptr inbounds [8 x i8], [8 x i8]* %5, i64 0, i64 %15
store i8 %14, i8* %16
br label %17
17: ; preds = %10
%18 = load i64, i64* %3
%19 = add i64 %18, 1
store i64 %19, i64* %3
br label %7
20: ; preds = %7
%21 = getelementptr inbounds [8 x i8], [8 x i8]* %5, i64 0, i64 0
ret i8* %21
}

LLVM IR (-O2):
define noalias i8* @fromFPtr(i32 (i32, i32, i32)* %0) {
%2 = alloca i32 (i32, i32, i32)*
%3 = bitcast i32 (i32, i32, i32)** %2 to i8*
ret i8* %3
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fputc(char const, int /*<<< orphan*/ *);
void std_char_str(const void *restrict self, const char *restrict format,
                  FILE *restrict stream) {
  (void)format;
  if (self)
    fputc(*(const char *)self, stream);
}


x86 assembly (clang, -O0):
<std_char_str>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1141 <std_char_str+0x31>
mov    -0x8(%rbp),%rax
mov    (%rax),%al
mov    -0x18(%rbp),%rsi
movsbl %al,%edi
call   1030 <fputc@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<std_char_str>:
test   %rdi,%rdi
je     1120 <std_char_str+0x10>
movsbl (%rdi),%edi
mov    %rdx,%rsi
jmp    1030 <fputc@plt>
ret

LLVM IR (-O0):
define void @std_char_str(i8* noalias %0, i8* noalias %1, i32* noalias %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
%7 = load i8*, i8** %5
%8 = load i8*, i8** %4
%9 = icmp ne i8* %8, null
br i1 %9, label %10, label %15
10: ; preds = %3
%11 = load i8*, i8** %4
%12 = load i8, i8* %11
%13 = load i32*, i32** %6
%14 = call i32 @fputc(i8 signext %12, i32* %13)
br label %15
15: ; preds = %10, %3
ret void
}

LLVM IR (-O2):
define void @std_char_str(i8* noalias %0, i8* noalias nocapture readnone %1, i32* noalias nocapture %2) {
%4 = icmp eq i8* %0, null
br i1 %4, label %8, label %5
5: ; preds = %3
%6 = load i8, i8* %0
%7 = tail call i32 @fputc(i8 signext %6, i32* %2)
br label %8
8: ; preds = %5, %3
ret void
}
void av_frame_remove_side_data() {}


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

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

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

LLVM IR (-O2):
define void @av_frame_remove_side_data() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ assert(int);
int main() {
  int i;
  if (!(i >= 0 && i <= 200))
    return 0;
  while (i > 0) {
    i--;
  }
  assert(i >= 0);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
cmpl   $0x0,-0x8(%rbp)
jl     1136 <main+0x26>
cmpl   $0xc8,-0x8(%rbp)
jle    1142 <main+0x32>
movl   $0x0,-0x4(%rbp)
jmp    1177 <main+0x67>
jmp    1147 <main+0x37>
cmpl   $0x0,-0x8(%rbp)
jle    115f <main+0x4f>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
jmp    1147 <main+0x37>
cmpl   $0x0,-0x8(%rbp)
setge  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @assert(i32 0)
ret i32 0
}
void Cyc_BansheeIf_reset_local_cvar(void *cvar) { ; }


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

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

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

LLVM IR (-O2):
define void @Cyc_BansheeIf_reset_local_cvar(i8* nocapture %0) {
ret void
}
int xmlUCSIsDeseret(int code) {
  return (((code >= 0x10400) && (code <= 0x1044F)));
}


x86 assembly (clang, -O0):
<xmlUCSIsDeseret>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
xor    %eax,%eax
cmpl   $0x10400,-0x4(%rbp)
mov    %al,-0x5(%rbp)
jl     1126 <xmlUCSIsDeseret+0x26>
cmpl   $0x1044f,-0x4(%rbp)
setle  %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<xmlUCSIsDeseret>:
add    $0xfffefc00,%edi
xor    %eax,%eax
cmp    $0x50,%edi
setb   %al
ret

LLVM IR (-O0):
define i32 @xmlUCSIsDeseret(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp sge i32 %3, 66560
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, i32* %2
%7 = icmp sle i32 %6, 66639
br label %8
8: ; preds = %5, %1
%9 = phi i1 [ false, %1 ], [ %7, %5 ]
%10 = zext i1 %9 to i32
ret i32 %10
}

LLVM IR (-O2):
define i32 @xmlUCSIsDeseret(i32 %0) {
%2 = add i32 %0, -66560
%3 = icmp ult i32 %2, 80
%4 = zext i1 %3 to i32
ret i32 %4
}
void _TFC4Blog4Postg10identifierSS() {}


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

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

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

LLVM IR (-O2):
define void @_TFC4Blog4Postg10identifierSS() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ MoveMouseWin251(long, long);
void movemousewin(long x, long y) { MoveMouseWin251(x, y); }


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

x86 assembly (clang, -O2):
<movemousewin>:
jmp    1030 <MoveMouseWin251@plt>

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

LLVM IR (-O2):
define void @movemousewin(i64 %0, i64 %1) {
%3 = tail call i32 @MoveMouseWin251(i64 %0, i64 %1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ getpid();
int /*<<< orphan*/ pr(char *, int, int /*<<< orphan*/);
void cHldHandler(int signo) { pr("%d caught SIGCHLD: %d\n", signo, getpid()); }


x86 assembly (clang, -O0):
<cHldHandler>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1030 <getpid@plt>
mov    -0x8(%rbp),%esi
mov    %eax,%edx
lea    0xebc(%rip),%rdi
call   1040 <pr@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cHldHandler>:
push   %rbx
mov    %edi,%ebx
xor    %eax,%eax
call   1030 <getpid@plt>
lea    0xecf(%rip),%rdi
mov    %ebx,%esi
mov    %eax,%edx
pop    %rbx
jmp    1040 <pr@plt>

LLVM IR (-O0):
@.str = [23 x i8] c"%d caught SIGCHLD: %d\0A\00"
define void @cHldHandler(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 (...) @getpid()
%5 = call i32 @pr(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %3, i32 %4)
ret void
}

LLVM IR (-O2):
@.str = [23 x i8] c"%d caught SIGCHLD: %d\0A\00"
define void @cHldHandler(i32 %0) {
%2 = tail call i32 (...) @getpid()
%3 = tail call i32 @pr(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %0, i32 %2)
ret void
}
void smp_switch_to_ipl_cpu(void (*func)(void *), void *data) { func(data); }


x86 assembly (clang, -O0):
<smp_switch_to_ipl_cpu>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rdi
call   *%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<smp_switch_to_ipl_cpu>:
mov    %rdi,%rax
mov    %rsi,%rdi
jmp    *%rax

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

LLVM IR (-O2):
define void @smp_switch_to_ipl_cpu(void (i8*)* nocapture %0, i8* %1) {
tail call void %0(i8* %1)
ret void
}
unsigned int my_int_hash(void *key) { return ((unsigned int)key); }


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

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

LLVM IR (-O0):
define i32 @my_int_hash(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = ptrtoint i8* %3 to i32
ret i32 %4
}

LLVM IR (-O2):
define i32 @my_int_hash(i8* %0) {
%2 = ptrtoint i8* %0 to i64
%3 = trunc i64 %2 to i32
ret i32 %3
}
/* Type definitions */
struct timeval {
  long tv_sec;
  long tv_usec;
};

/* Variables and functions */
int /*<<< orphan*/ select(int /*<<< orphan*/, int /*<<< orphan*/ *,
                          int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                          struct timeval *);
void delay(long microsec) {
  struct timeval timeout;
  timeout.tv_sec = microsec / 1000000L;
  timeout.tv_usec = microsec % 1000000L;
  select(0, NULL, NULL, NULL, &timeout);
}


x86 assembly (clang, -O0):
<delay>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    $0xf4240,%ecx
cqto
idiv   %rcx
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    $0xf4240,%ecx
cqto
idiv   %rcx
mov    %rdx,-0x10(%rbp)
xor    %edi,%edi
xor    %eax,%eax
mov    %eax,%ecx
lea    -0x18(%rbp),%r8
mov    %rcx,%rsi
mov    %rcx,%rdx
call   1030 <select@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<delay>:
sub    $0x18,%rsp
movabs $0x431bde82d7b634db,%rcx
de 1b 43
mov    %rdi,%rax
imul   %rcx
mov    %rdx,%rax
shr    $0x3f,%rax
sar    $0x12,%rdx
add    %rax,%rdx
mov    %rdx,0x8(%rsp)
imul   $0xf4240,%rdx,%rax
sub    %rax,%rdi
mov    %rdi,0x10(%rsp)
lea    0x8(%rsp),%r8
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1030 <select@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
%struct.timeval = type { i64, i64 }
define void @delay(i64 %0) {
%2 = alloca i64
%3 = alloca %struct.timeval
store i64 %0, i64* %2
%4 = load i64, i64* %2
%5 = sdiv i64 %4, 1000000
%6 = getelementptr inbounds %struct.timeval, %struct.timeval* %3, i32 0, i32 0
store i64 %5, i64* %6
%7 = load i64, i64* %2
%8 = srem i64 %7, 1000000
%9 = getelementptr inbounds %struct.timeval, %struct.timeval* %3, i32 0, i32 1
store i64 %8, i64* %9
%10 = call i32 @select(i32 0, i32* null, i32* null, i32* null, %struct.timeval* %3)
ret void
}

LLVM IR (-O2):
%struct.timeval = type { i64, i64 }
define void @delay(i64 %0) {
%2 = alloca %struct.timeval
%3 = bitcast %struct.timeval* %2 to i8*
%4 = sdiv i64 %0, 1000000
%5 = getelementptr inbounds %struct.timeval, %struct.timeval* %2, i64 0, i32 0
store i64 %4, i64* %5
%6 = srem i64 %0, 1000000
%7 = getelementptr inbounds %struct.timeval, %struct.timeval* %2, i64 0, i32 1
store i64 %6, i64* %7
%8 = call i32 @select(i32 0, i32* null, i32* null, i32* null, %struct.timeval* %2)
ret void
}
char *skiptoeoln(char *ptr) {
  while (*ptr && *ptr != '\n') {
    ++ptr;
  }
  if (*ptr) {
    ++ptr;
  }
  return ptr;
}


x86 assembly (clang, -O0):
<skiptoeoln>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x9(%rbp)
je     112d <skiptoeoln+0x2d>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0xa,%eax
setne  %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
test   $0x1,%al
jne    113d <skiptoeoln+0x3d>
jmp    114e <skiptoeoln+0x4e>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    1108 <skiptoeoln+0x8>
mov    -0x8(%rbp),%rax
cmpb   $0x0,(%rax)
je     1167 <skiptoeoln+0x67>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<skiptoeoln>:
mov    %rdi,%rax
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movzbl (%rax),%ecx
test   %cl,%cl
je     1122 <skiptoeoln+0x22>
cmp    $0xa,%cl
je     1122 <skiptoeoln+0x22>
add    $0x1,%rax
jmp    1110 <skiptoeoln+0x10>
cmp    $0x1,%cl
sbb    $0xffffffffffffffff,%rax
ret

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

LLVM IR (-O2):
define i8* @skiptoeoln(i8* %0) {
br label %2
2: ; preds = %5, %1
%3 = phi i8* [ %0, %1 ], [ %6, %5 ]
%4 = load i8, i8* %3
switch i8 %4, label %5 [
i8 0, label %7
i8 10, label %7
]
5: ; preds = %2
%6 = getelementptr inbounds i8, i8* %3, i64 1
br label %2
7: ; preds = %2, %2
%8 = icmp ne i8 %4, 0
%9 = zext i1 %8 to i64
%10 = getelementptr i8, i8* %3, i64 %9
ret i8* %10
}
int ne_check_file_version(int exoid) { return (0); }


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

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

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

LLVM IR (-O2):
define i32 @ne_check_file_version(i32 %0) {
ret i32 0
}
double ls_cost_nm5_sq(double x) { return x * x; }


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

x86 assembly (clang, -O2):
<ls_cost_nm5_sq>:
mulsd  %xmm0,%xmm0
ret

LLVM IR (-O0):
define double @ls_cost_nm5_sq(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = load double, double* %2
%5 = fmul double %3, %4
ret double %5
}

LLVM IR (-O2):
define double @ls_cost_nm5_sq(double %0) {
%2 = fmul double %0, %0
ret double %2
}
/* Type definitions */
struct rcps_problem {
  int dummy;
};

/* Variables and functions */
int check_dependencies(struct rcps_problem *);
int /*<<< orphan*/ printf(char *, char *);
char *rcps_error(int);
int rcps_check(struct rcps_problem *p) {
  int result = 0;
  result = check_dependencies(p);
  printf("rcps_check: result='%s'\n", rcps_error(result));
  return result;
}


x86 assembly (clang, -O0):
<rcps_check>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <check_dependencies@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%edi
call   1050 <rcps_error@plt>
mov    %rax,%rsi
lea    0xe9f(%rip),%rdi
call   1040 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rcps_check>:
push   %rbx
call   1030 <check_dependencies@plt>
mov    %eax,%ebx
mov    %eax,%edi
call   1050 <rcps_error@plt>
lea    0xeba(%rip),%rdi
mov    %rax,%rsi
call   1040 <printf@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
%struct.rcps_problem = type { i32 }
@.str = [25 x i8] c"rcps_check: result='%s'\0A\00"
define i32 @rcps_check(%struct.rcps_problem* %0) {
%2 = alloca %struct.rcps_problem*
%3 = alloca i32
store %struct.rcps_problem* %0, %struct.rcps_problem** %2
store i32 0, i32* %3
%4 = load %struct.rcps_problem*, %struct.rcps_problem** %2
%5 = call i32 @check_dependencies(%struct.rcps_problem* %4)
store i32 %5, i32* %3
%6 = load i32, i32* %3
%7 = call i8* @rcps_error(i32 %6)
%8 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i8* %7)
%9 = load i32, i32* %3
ret i32 %9
}

LLVM IR (-O2):
%struct.rcps_problem = type { i32 }
@.str = [25 x i8] c"rcps_check: result='%s'\0A\00"
define i32 @rcps_check(%struct.rcps_problem* %0) {
%2 = tail call i32 @check_dependencies(%struct.rcps_problem* %0)
%3 = tail call i8* @rcps_error(i32 %2)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i8* %3)
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ memcpy(unsigned char *, unsigned char *, int);
void int96_copyle(unsigned char *d, unsigned char *x, int len) {
  memcpy(d, x, len);
}


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

x86 assembly (clang, -O2):
<int96_copyle>:
jmp    1030 <memcpy@plt>

LLVM IR (-O0):
define void @int96_copyle(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
%7 = load i8*, i8** %4
%8 = load i8*, i8** %5
%9 = load i32, i32* %6
%10 = call i32 @memcpy(i8* %7, i8* %8, i32 %9)
ret void
}

LLVM IR (-O2):
define void @int96_copyle(i8* %0, i8* %1, i32 %2) {
%4 = tail call i32 @memcpy(i8* %0, i8* %1, i32 %2)
ret void
}
/* Type definitions */
typedef scalar_t__ uint8_t;
typedef scalar_t__ uint32_t;

/* Variables and functions */
void gpio_pdr(uint32_t *port, uint8_t pins, uint8_t state) {
  if (state)
    port[0x514 / 4] |= pins;
  else
    port[0x514 / 4] &= ~((uint32_t)pins);
}


x86 assembly (clang, -O0):
<gpio_pdr>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     1136 <gpio_pdr+0x36>
mov    -0x10(%rbp),%rcx
mov    -0x8(%rbp),%rax
or     0xa28(%rax),%rcx
mov    %rcx,0xa28(%rax)
jmp    1150 <gpio_pdr+0x50>
mov    -0x10(%rbp),%rcx
xor    $0xffffffffffffffff,%rcx
mov    -0x8(%rbp),%rax
and    0xa28(%rax),%rcx
mov    %rcx,0xa28(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<gpio_pdr>:
test   %rdx,%rdx
je     110d <gpio_pdr+0xd>
or     %rsi,0xa28(%rdi)
ret
not    %rsi
and    %rsi,0xa28(%rdi)
ret

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

LLVM IR (-O2):
define void @gpio_pdr(i64* nocapture %0, i64 %1, i64 %2) {
%4 = icmp eq i64 %2, 0
br i1 %4, label %9, label %5
5: ; preds = %3
%6 = getelementptr inbounds i64, i64* %0, i64 325
%7 = load i64, i64* %6
%8 = or i64 %7, %1
store i64 %8, i64* %6
br label %14
9: ; preds = %3
%10 = xor i64 %1, -1
%11 = getelementptr inbounds i64, i64* %0, i64 325
%12 = load i64, i64* %11
%13 = and i64 %12, %10
store i64 %13, i64* %11
br label %14
14: ; preds = %9, %5
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ ssize_t;

/* Variables and functions */
int /*<<< orphan*/ read(int, char *, size_t);
ssize_t usart_get(int fd, char *buffer, size_t size) {
  return read(fd, buffer, size);
}


x86 assembly (clang, -O0):
<usart_get>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1030 <read@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usart_get>:
jmp    1030 <read@plt>

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

LLVM IR (-O2):
define i32 @usart_get(i32 %0, i8* nocapture %1, i64 %2) {
%4 = tail call i32 @read(i32 %0, i8* %1, i64 %2)
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ swap(int, int);
int main() {
  int girls = 12;
  int boys = 11;
  swap(girls, boys);
  return 0;
}


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

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

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 12, i32* %2
store i32 11, i32* %3
%4 = load i32, i32* %2
%5 = load i32, i32* %3
%6 = call i32 @swap(i32 %4, i32 %5)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @swap(i32 12, i32 11)
ret i32 0
}
/* Variables and functions */
int inb(int);
extern int timer2_running(void) { return ((inb(0x61) & 0x20) == 0); }


x86 assembly (clang, -O0):
<timer2_running>:
push   %rbp
mov    %rsp,%rbp
mov    $0x61,%edi
call   1030 <inb@plt>
and    $0x20,%eax
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<timer2_running>:
push   %rax
mov    $0x61,%edi
call   1030 <inb@plt>
xor    %ecx,%ecx
test   $0x20,%al
sete   %cl
mov    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @timer2_running() {
%1 = call i32 @inb(i32 97)
%2 = and i32 %1, 32
%3 = icmp eq i32 %2, 0
%4 = zext i1 %3 to i32
ret i32 %4
}

LLVM IR (-O2):
define i32 @timer2_running() {
%1 = tail call i32 @inb(i32 97)
%2 = lshr i32 %1, 5
%3 = and i32 %2, 1
%4 = xor i32 %3, 1
ret i32 %4
}
/* Variables and functions */
char *chomp(char *);
char *ltrim(char *);
char *rtrim(char *);
char *trim(char *str) {
  char *string;
  string = chomp(str);
  string = ltrim(string);
  return rtrim(string);
}


x86 assembly (clang, -O0):
<trim>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <chomp@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <ltrim@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <rtrim@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<trim>:
push   %rax
call   1050 <chomp@plt>
mov    %rax,%rdi
call   1040 <ltrim@plt>
mov    %rax,%rdi
pop    %rax
jmp    1030 <rtrim@plt>

LLVM IR (-O0):
define i8* @trim(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = call i8* @chomp(i8* %4)
store i8* %5, i8** %3
%6 = load i8*, i8** %3
%7 = call i8* @ltrim(i8* %6)
store i8* %7, i8** %3
%8 = load i8*, i8** %3
%9 = call i8* @rtrim(i8* %8)
ret i8* %9
}

LLVM IR (-O2):
define i8* @trim(i8* %0) {
%2 = tail call i8* @chomp(i8* %0)
%3 = tail call i8* @ltrim(i8* %2)
%4 = tail call i8* @rtrim(i8* %3)
ret i8* %4
}
/* Variables and functions */
void __sanitizer_cov_pcs_init(const uintptr_t *pcs_beg __attribute__((unused)),
                              const uintptr_t *pcs_end
                              __attribute__((unused))) {}


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

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

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

LLVM IR (-O2):
define void @__sanitizer_cov_pcs_init(i64* nocapture %0, i64* nocapture %1) {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
typedef int /*<<< orphan*/ uint16_t;

/* Variables and functions */
int /*<<< orphan*/ little_endian_read_16(int /*<<< orphan*/ const *, int);
uint16_t l2cap_event_can_send_now_get_local_cid(const uint8_t *event) {
  return little_endian_read_16(event, 2);
}


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

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

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

LLVM IR (-O2):
define i32 @l2cap_event_can_send_now_get_local_cid(i32* %0) {
%2 = tail call i32 @little_endian_read_16(i32* %0, i32 2)
ret i32 %2
}
void strcat_(char *s, char *t) {
  while (*s != '\0') {
    s++;
  }
  while (*t != '\0') {
    *s++ = *t++;
  }
  *s = '\0';
}


x86 assembly (clang, -O0):
<strcat_>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     112d <strcat_+0x2d>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    110c <strcat_+0xc>
jmp    1132 <strcat_+0x32>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1169 <strcat_+0x69>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
mov    (%rax),%cl
mov    -0x8(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x8(%rbp)
mov    %cl,(%rax)
jmp    1132 <strcat_+0x32>
mov    -0x8(%rbp),%rax
movb   $0x0,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<strcat_>:
mov    %rdi,%rcx
add    $0x1,%rdi
cmpb   $0x0,(%rcx)
jne    1100 <strcat_>
mov    (%rsi),%al
test   %al,%al
je     1136 <strcat_+0x36>
mov    $0xffffffffffffffff,%rcx
nopl   0x0(%rax)
mov    %al,(%rdi,%rcx,1)
movzbl 0x2(%rsi,%rcx,1),%eax
add    $0x1,%rcx
test   %al,%al
jne    1120 <strcat_+0x20>
add    %rcx,%rdi
mov    %rdi,%rcx
movb   $0x0,(%rcx)
ret

LLVM IR (-O0):
define void @strcat_(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** %3
%7 = load i8, i8* %6
%8 = sext i8 %7 to i32
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %5
%11 = load i8*, i8** %3
%12 = getelementptr inbounds i8, i8* %11, i32 1
store i8* %12, i8** %3
br label %5
13: ; preds = %5
br label %14
14: ; preds = %19, %13
%15 = load i8*, i8** %4
%16 = load i8, i8* %15
%17 = sext i8 %16 to i32
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %25
19: ; preds = %14
%20 = load i8*, i8** %4
%21 = getelementptr inbounds i8, i8* %20, i32 1
store i8* %21, i8** %4
%22 = load i8, i8* %20
%23 = load i8*, i8** %3
%24 = getelementptr inbounds i8, i8* %23, i32 1
store i8* %24, i8** %3
store i8 %22, i8* %23
br label %14
25: ; preds = %14
%26 = load i8*, i8** %3
store i8 0, i8* %26
ret void
}

LLVM IR (-O2):
define void @strcat_(i8* nocapture %0, i8* nocapture %1) {
br label %3
3: ; preds = %3, %2
%4 = phi i8* [ %0, %2 ], [ %7, %3 ]
%5 = load i8, i8* %4
%6 = icmp eq i8 %5, 0
%7 = getelementptr inbounds i8, i8* %4, i64 1
br i1 %6, label %8, label %3
8: ; preds = %3
%9 = load i8, i8* %1
%10 = icmp eq i8 %9, 0
br i1 %10, label %19, label %11
11: ; preds = %8, %11
%12 = phi i8 [ %17, %11 ], [ %9, %8 ]
%13 = phi i8* [ %15, %11 ], [ %1, %8 ]
%14 = phi i8* [ %16, %11 ], [ %4, %8 ]
%15 = getelementptr inbounds i8, i8* %13, i64 1
%16 = getelementptr inbounds i8, i8* %14, i64 1
store i8 %12, i8* %14
%17 = load i8, i8* %15
%18 = icmp eq i8 %17, 0
br i1 %18, label %19, label %11
19: ; preds = %11, %8
%20 = phi i8* [ %4, %8 ], [ %16, %11 ]
store i8 0, i8* %20
ret void
}
unsigned int di_ff_get_unused_bits_num(void) { return (5); }


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

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

LLVM IR (-O0):
define i32 @di_ff_get_unused_bits_num() {
ret i32 5
}

LLVM IR (-O2):
define i32 @di_ff_get_unused_bits_num() {
ret i32 5
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, unsigned long long);
int /*<<< orphan*/ sscanf(char *, char *, unsigned long long *);
int main(void) {
  unsigned long long val = -1;
  void *ptr = (void *)-1;
  printf("%p\n", ptr);
  sscanf("123456789", "%Lx", &val);
  printf("val = %Lx\n", val);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0xffffffffffffffff,-0x10(%rbp)
ff
mov    $0xffffffffffffffff,%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rsi
lea    0xeb3(%rip),%rdi
call   1030 <printf@plt>
lea    0xeab(%rip),%rdi
lea    0xeae(%rip),%rsi
lea    -0x10(%rbp),%rdx
call   1040 <sscanf@plt>
mov    -0x10(%rbp),%rsi
lea    0xe9e(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
movq   $0xffffffffffffffff,(%rsp)
ff
lea    0xed0(%rip),%rdi
mov    $0xffffffffffffffff,%rsi
call   1030 <printf@plt>
lea    0xec1(%rip),%rdi
lea    0xec4(%rip),%rsi
mov    %rsp,%rdx
call   1040 <sscanf@plt>
mov    (%rsp),%rsi
lea    0xeb5(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [4 x i8] c"%p\0A\00"
@.str.1 = [10 x i8] c"123456789\00"
@.str.2 = [4 x i8] c"%Lx\00"
@.str.3 = [11 x i8] c"val = %Lx\0A\00"
define i32 @main() {
%1 = alloca i64
%2 = bitcast i64* %1 to i8*
store i64 -1, i64* %1
%3 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64 -1)
%4 = call i32 @sscanf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i64* %1)
%5 = load i64, i64* %1
%6 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i64 %5)
ret i32 0
}