xunge/DecIR huggingface dataset:
void gs_pos(long display, long *x, long *y) {}


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

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

LLVM IR (-O0):
define void @gs_pos(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
ret void
}

LLVM IR (-O2):
define void @gs_pos(i64 %0, i64* nocapture %1, i64* nocapture %2) {
ret void
}
int fun850() { return 850; }


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

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

LLVM IR (-O0):
define i32 @fun850() {
ret i32 850
}

LLVM IR (-O2):
define i32 @fun850() {
ret i32 850
}
/* Variables and functions */
int /*<<< orphan*/ gpio_set(int, int);
void set_47_inv(const int on) { gpio_set(47, !on); }


x86 assembly (clang, -O0):
<set_47_inv>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%esi
mov    $0x2f,%edi
call   1030 <gpio_set@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_47_inv>:
xor    %esi,%esi
test   %edi,%edi
sete   %sil
mov    $0x2f,%edi
jmp    1030 <gpio_set@plt>

LLVM IR (-O0):
define void @set_47_inv(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp ne i32 %3, 0
%5 = xor i1 %4, true
%6 = zext i1 %5 to i32
%7 = call i32 @gpio_set(i32 47, i32 %6)
ret void
}

LLVM IR (-O2):
define void @set_47_inv(i32 %0) {
%2 = icmp eq i32 %0, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @gpio_set(i32 47, i32 %3)
ret void
}
int waitForOutput(int fd) {
  int ret = 0;
  ret = 1;
  return ret;
}


x86 assembly (clang, -O0):
<waitForOutput>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x1,-0x8(%rbp)
mov    -0x8(%rbp),%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @waitForOutput(i32 %0) {
ret i32 1
}
/* Variables and functions */
int isPalindrome(int);
int /*<<< orphan*/ printf(char *, int, int);
int main(int argc, char **argv) {
  printf("input:%d output:%d \n", 12312321, isPalindrome(12312321));
  ;
  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    $0xbbdf01,%edi
call   1040 <isPalindrome@plt>
mov    %eax,%edx
lea    0xeb7(%rip),%rdi
mov    $0xbbdf01,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0xbbdf01,%edi
call   1040 <isPalindrome@plt>
lea    0xece(%rip),%rdi
mov    $0xbbdf01,%esi
mov    %eax,%edx
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [21 x i8] c"input:%d output:%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 @isPalindrome(i32 12312321)
%7 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 12312321, i32 %6)
ret i32 0
}

LLVM IR (-O2):
@.str = [21 x i8] c"input:%d output:%d \0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @isPalindrome(i32 12312321)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i32 12312321, i32 %3)
ret i32 0
}
/* Variables and functions */
void *obs_source_get_weak_source(void *);
void *weak_source_ref(void *ref) { return obs_source_get_weak_source(ref); }


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

x86 assembly (clang, -O2):
<weak_source_ref>:
jmp    1030 <obs_source_get_weak_source@plt>

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

LLVM IR (-O2):
define i8* @weak_source_ref(i8* %0) {
%2 = tail call i8* @obs_source_get_weak_source(i8* %0)
ret i8* %2
}
/* Variables and functions */
scalar_t__ isdigit(char);
int isnum_int(char c) { return ((isdigit(c) || (c == '-'))); }


x86 assembly (clang, -O0):
<isnum_int>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%edi
call   1030 <isdigit@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x2(%rbp)
jne    1146 <isnum_int+0x36>
movsbl -0x1(%rbp),%eax
cmp    $0x2d,%eax
sete   %al
mov    %al,-0x2(%rbp)
mov    -0x2(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<isnum_int>:
push   %rbx
mov    %edi,%ebx
call   1030 <isdigit@plt>
test   %rax,%rax
setne  %al
cmp    $0x2d,%bl
sete   %cl
or     %al,%cl
movzbl %cl,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @isnum_int(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = call i64 @isdigit(i8 signext %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %10, label %6
6: ; preds = %1
%7 = load i8, i8* %2
%8 = sext i8 %7 to i32
%9 = icmp eq i32 %8, 45
br label %10
10: ; preds = %6, %1
%11 = phi i1 [ true, %1 ], [ %9, %6 ]
%12 = zext i1 %11 to i32
ret i32 %12
}

LLVM IR (-O2):
define i32 @isnum_int(i8 signext %0) {
%2 = tail call i64 @isdigit(i8 signext %0)
%3 = icmp ne i64 %2, 0
%4 = icmp eq i8 %0, 45
%5 = or i1 %4, %3
%6 = zext i1 %5 to i32
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ alloc(int);
void t2(int align) { alloc(8); }


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

x86 assembly (clang, -O2):
<t2>:
mov    $0x8,%edi
jmp    1030 <alloc@plt>

LLVM IR (-O0):
define void @t2(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @alloc(i32 8)
ret void
}

LLVM IR (-O2):
define void @t2(i32 %0) {
%2 = tail call i32 @alloc(i32 8)
ret void
}
/* Variables and functions */
unsigned int util_log2(unsigned int);
unsigned int CalcUnitHeight_elt(unsigned int bit_cnt) {
  unsigned int bpp = util_log2(bit_cnt);
  unsigned int idx = (bit_cnt > 8) ? (bpp - 3) : 0;
  return (1 << ((8 - idx) / 2));
}


x86 assembly (clang, -O0):
<CalcUnitHeight_elt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <util_log2@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x8,-0x4(%rbp)
jbe    113e <CalcUnitHeight_elt+0x2e>
mov    -0x8(%rbp),%eax
sub    $0x3,%eax
mov    %eax,-0x10(%rbp)
jmp    1148 <CalcUnitHeight_elt+0x38>
xor    %eax,%eax
mov    %eax,-0x10(%rbp)
jmp    1148 <CalcUnitHeight_elt+0x38>
mov    -0x10(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    $0x8,%ecx
sub    -0xc(%rbp),%ecx
shr    $0x1,%ecx
mov    $0x1,%eax
shl    %cl,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CalcUnitHeight_elt>:
push   %rbx
mov    %edi,%ebx
call   1030 <util_log2@plt>
mov    $0xb,%ecx
sub    %eax,%ecx
shr    %ecx
mov    $0x1,%edx
shl    %cl,%edx
cmp    $0x9,%ebx
mov    $0x10,%eax
cmovae %edx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @CalcUnitHeight_elt(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %2
%5 = load i32, i32* %2
%6 = call i32 @util_log2(i32 %5)
store i32 %6, i32* %3
%7 = load i32, i32* %2
%8 = icmp ugt i32 %7, 8
br i1 %8, label %9, label %12
9: ; preds = %1
%10 = load i32, i32* %3
%11 = sub i32 %10, 3
br label %13
12: ; preds = %1
br label %13
13: ; preds = %12, %9
%14 = phi i32 [ %11, %9 ], [ 0, %12 ]
store i32 %14, i32* %4
%15 = load i32, i32* %4
%16 = sub i32 8, %15
%17 = udiv i32 %16, 2
%18 = shl i32 1, %17
ret i32 %18
}

LLVM IR (-O2):
define i32 @CalcUnitHeight_elt(i32 %0) {
%2 = tail call i32 @util_log2(i32 %0)
%3 = icmp ugt i32 %0, 8
%4 = sub i32 11, %2
%5 = lshr i32 %4, 1
%6 = shl nuw i32 1, %5
%7 = select i1 %3, i32 %6, i32 16
ret i32 %7
}
/* Type definitions */
struct bint_chunk {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct bint_chunk *);
__attribute__((weak)) void bint_chunk_free(struct bint_chunk *c) { free(c); }


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

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

LLVM IR (-O0):
%struct.bint_chunk = type { i32 }
define weak void @bint_chunk_free(%struct.bint_chunk* %0) {
%2 = alloca %struct.bint_chunk*
store %struct.bint_chunk* %0, %struct.bint_chunk** %2
%3 = load %struct.bint_chunk*, %struct.bint_chunk** %2
%4 = call i32 @free(%struct.bint_chunk* %3)
ret void
}

LLVM IR (-O2):
%struct.bint_chunk = type { i32 }
define weak void @bint_chunk_free(%struct.bint_chunk* %0) {
%2 = tail call i32 @free(%struct.bint_chunk* %0)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uid_t;

/* Variables and functions */
int _setuid(int /*<<< orphan*/);
int setuid(uid_t uid) { return _setuid(uid); }


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

x86 assembly (clang, -O2):
<setuid>:
jmp    1030 <_setuid@plt>

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

LLVM IR (-O2):
define i32 @setuid(i32 %0) {
%2 = tail call i32 @_setuid(i32 %0)
ret i32 %2
}
double fader(double tx) {
  double tx2 = tx * tx;
  return tx2 / (1.0 + tx2 * tx2);
}


x86 assembly (clang, -O0):
<fader>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm2
mulsd  %xmm2,%xmm1
movsd  0xecd(%rip),%xmm2
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<fader>:
mulsd  %xmm0,%xmm0
movapd %xmm0,%xmm1
mulsd  %xmm0,%xmm1
addsd  0xeec(%rip),%xmm1
divsd  %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @fader(double %0) {
%2 = alloca double
%3 = alloca double
store double %0, double* %2
%4 = load double, double* %2
%5 = load double, double* %2
%6 = fmul double %4, %5
store double %6, double* %3
%7 = load double, double* %3
%8 = load double, double* %3
%9 = load double, double* %3
%10 = call double @llvm.fmuladd.f64(double %8, double %9, double 1.000000e+00)
%11 = fdiv double %7, %10
ret double %11
}

LLVM IR (-O2):
define double @fader(double %0) {
%2 = fmul double %0, %0
%3 = tail call double @llvm.fmuladd.f64(double %2, double %2, double 1.000000e+00)
%4 = fdiv double %2, %3
ret double %4
}
/* Type definitions */
struct ic_string {
  int dummy;
};

/* Variables and functions */
unsigned int ic_string_init(struct ic_string *, char *, int /*<<< orphan*/);
unsigned int ic_string_init_empty(struct ic_string *string) {
  return ic_string_init(string, "", 0);
}


x86 assembly (clang, -O0):
<ic_string_init_empty>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed9(%rip),%rsi
xor    %edx,%edx
call   1030 <ic_string_init@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ic_string_init_empty>:
lea    0xee9(%rip),%rsi
xor    %edx,%edx
jmp    1030 <ic_string_init@plt>

LLVM IR (-O0):
%struct.ic_string = type { i32 }
@.str = [1 x i8] zeroinitializer
define i32 @ic_string_init_empty(%struct.ic_string* %0) {
%2 = alloca %struct.ic_string*
store %struct.ic_string* %0, %struct.ic_string** %2
%3 = load %struct.ic_string*, %struct.ic_string** %2
%4 = call i32 @ic_string_init(%struct.ic_string* %3, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i32 0)
ret i32 %4
}

LLVM IR (-O2):
%struct.ic_string = type { i32 }
@.str = [1 x i8] zeroinitializer
define i32 @ic_string_init_empty(%struct.ic_string* %0) {
%2 = tail call i32 @ic_string_init(%struct.ic_string* %0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i32 0)
ret i32 %2
}
/* Variables and functions */
void *square(void *a) {
  size_t n = (size_t)a;
  return (void *)(n * n);
}


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

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

LLVM IR (-O0):
define i8* @square(i8* %0) {
%2 = alloca i8*
%3 = alloca i64
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = ptrtoint i8* %4 to i64
store i64 %5, i64* %3
%6 = load i64, i64* %3
%7 = load i64, i64* %3
%8 = mul i64 %6, %7
%9 = inttoptr i64 %8 to i8*
ret i8* %9
}

LLVM IR (-O2):
define i8* @square(i8* %0) {
%2 = ptrtoint i8* %0 to i64
%3 = mul i64 %2, %2
%4 = inttoptr i64 %3 to i8*
ret i8* %4
}
/* Variables and functions */
char *calloc(unsigned int, int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, unsigned int);
void init_empty_tape(char **tape, unsigned int length) {
  *tape = calloc(length, sizeof(char));
  if (*tape == NULL) {
    perror("Error allocating data tape");
    exit(-1);
  }
  printf("Initialized empty tape with size %u\n", length);
}


x86 assembly (clang, -O0):
<init_empty_tape>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%edi
mov    $0x1,%esi
call   1040 <calloc@plt>
mov    %rax,%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x8(%rbp),%rax
cmpq   $0x0,(%rax)
jne    118a <init_empty_tape+0x4a>
lea    0xe85(%rip),%rdi
call   1050 <perror@plt>
mov    $0xffffffff,%edi
call   1060 <exit@plt>
mov    -0xc(%rbp),%esi
lea    0xe87(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_empty_tape>:
push   %r14
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %rdi,%r14
mov    %esi,%edi
mov    $0x1,%esi
call   1040 <calloc@plt>
mov    %rax,(%r14)
test   %rax,%rax
je     1172 <init_empty_tape+0x32>
lea    0xeb7(%rip),%rdi
mov    %ebx,%esi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <printf@plt>
lea    0xe87(%rip),%rdi
call   1050 <perror@plt>
mov    $0xffffffff,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@.str = [27 x i8] c"Error allocating data tape\00"
@.str.1 = [37 x i8] c"Initialized empty tape with size %u\0A\00"
define void @init_empty_tape(i8** %0, i32 %1) {
%3 = alloca i8**
%4 = alloca i32
store i8** %0, i8*** %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = call i8* @calloc(i32 %5, i32 1)
%7 = load i8**, i8*** %3
store i8* %6, i8** %7
%8 = load i8**, i8*** %3
%9 = load i8*, i8** %8
%10 = icmp eq i8* %9, null
br i1 %10, label %11, label %14
11: ; preds = %2
%12 = call i32 @perror(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%13 = call i32 @exit(i32 -1)
unreachable
14: ; preds = %2
%15 = load i32, i32* %4
%16 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0), i32 %15)
ret void
}

LLVM IR (-O2):
@.str = [27 x i8] c"Error allocating data tape\00"
@.str.1 = [37 x i8] c"Initialized empty tape with size %u\0A\00"
define void @init_empty_tape(i8** nocapture writeonly %0, i32 %1) {
%3 = tail call i8* @calloc(i32 %1, i32 1)
store i8* %3, i8** %0
%4 = icmp eq i8* %3, null
br i1 %4, label %5, label %8
5: ; preds = %2
%6 = tail call i32 @perror(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%7 = tail call i32 @exit(i32 -1)
unreachable
8: ; preds = %2
%9 = tail call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0), i32 %1)
ret void
}
void MlmeInvalidAction(struct rt_rtmp_adapter *pAd,
                       struct rt_mlme_queue_elem *Elem) {}


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

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

LLVM IR (-O0):
%struct.rt_rtmp_adapter = type opaque
%struct.rt_mlme_queue_elem = type opaque
define void @MlmeInvalidAction(%struct.rt_rtmp_adapter* %0, %struct.rt_mlme_queue_elem* %1) {
%3 = alloca %struct.rt_rtmp_adapter*
%4 = alloca %struct.rt_mlme_queue_elem*
store %struct.rt_rtmp_adapter* %0, %struct.rt_rtmp_adapter** %3
store %struct.rt_mlme_queue_elem* %1, %struct.rt_mlme_queue_elem** %4
ret void
}

LLVM IR (-O2):
%struct.rt_rtmp_adapter = type opaque
%struct.rt_mlme_queue_elem = type opaque
define void @MlmeInvalidAction(%struct.rt_rtmp_adapter* nocapture %0, %struct.rt_mlme_queue_elem* nocapture %1) {
ret void
}
int mga_modctx(struct inode *inode, struct file *filp, unsigned int cmd,
               unsigned long arg) {
  return 0;
}


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

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

LLVM IR (-O0):
%struct.inode = type opaque
%struct.file = type opaque
define i32 @mga_modctx(%struct.inode* %0, %struct.file* %1, i32 %2, i64 %3) {
%5 = alloca %struct.inode*
%6 = alloca %struct.file*
%7 = alloca i32
%8 = alloca i64
store %struct.inode* %0, %struct.inode** %5
store %struct.file* %1, %struct.file** %6
store i32 %2, i32* %7
store i64 %3, i64* %8
ret i32 0
}

LLVM IR (-O2):
%struct.inode = type opaque
%struct.file = type opaque
define i32 @mga_modctx(%struct.inode* nocapture readnone %0, %struct.file* nocapture readnone %1, i32 %2, i64 %3) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ meat_time_align_range_to_week(long const, long const,
                                                 long *const, long *const);
void meat_time_single_week_range(signed long int const i_now,
                                 signed long int *const pi_begin,
                                 signed long int *const pi_end) {
  meat_time_align_range_to_week(i_now, i_now, pi_begin, pi_end);
}


x86 assembly (clang, -O0):
<meat_time_single_week_range>:
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    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
call   1030 <meat_time_align_range_to_week@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<meat_time_single_week_range>:
mov    %rdx,%rcx
mov    %rsi,%rdx
mov    %rdi,%rsi
jmp    1030 <meat_time_align_range_to_week@plt>

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

LLVM IR (-O2):
define void @meat_time_single_week_range(i64 %0, i64* %1, i64* %2) {
%4 = tail call i32 @meat_time_align_range_to_week(i64 %0, i64 %0, i64* %1, i64* %2)
ret void
}
/* Variables and functions */
int testSendNotification();
int testSendNotification2();
int testVerifyAPIKey();
int main(void) {
  int i;
  i = testVerifyAPIKey();
  if (!i) {
    i = testSendNotification();
  }
  if (!i) {
    i = testSendNotification2();
  }
  return i;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1050 <testVerifyAPIKey@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jne    115d <main+0x2d>
mov    $0x0,%al
call   1030 <testSendNotification@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jne    1171 <main+0x41>
mov    $0x0,%al
call   1040 <testSendNotification2@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1050 <testVerifyAPIKey@plt>
test   %eax,%eax
jne    1147 <main+0x17>
xor    %eax,%eax
call   1030 <testSendNotification@plt>
test   %eax,%eax
je     1149 <main+0x19>
pop    %rcx
ret
xor    %eax,%eax
pop    %rcx
jmp    1040 <testSendNotification2@plt>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 (...) @testVerifyAPIKey()
store i32 %3, i32* %2
%4 = load i32, i32* %2
%5 = icmp ne i32 %4, 0
br i1 %5, label %8, label %6
6: ; preds = %0
%7 = call i32 (...) @testSendNotification()
store i32 %7, i32* %2
br label %8
8: ; preds = %6, %0
%9 = load i32, i32* %2
%10 = icmp ne i32 %9, 0
br i1 %10, label %13, label %11
11: ; preds = %8
%12 = call i32 (...) @testSendNotification2()
store i32 %12, i32* %2
br label %13
13: ; preds = %11, %8
%14 = load i32, i32* %2
ret i32 %14
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @testVerifyAPIKey()
%2 = icmp eq i32 %1, 0
br i1 %2, label %3, label %8
3: ; preds = %0
%4 = tail call i32 (...) @testSendNotification()
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %3
%7 = tail call i32 (...) @testSendNotification2()
br label %8
8: ; preds = %0, %6, %3
%9 = phi i32 [ %4, %3 ], [ %7, %6 ], [ %1, %0 ]
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ cmt_cooperate();
int /*<<< orphan*/ printf(char *, ...);
void Process_LoopEach(void *data) {
  int i;
  printf("<W: %p>", &i);
  while (1) {
    if (data) {
      printf("[%s]", (char *)data);
    }
    cmt_cooperate();
  }
  printf("[W: end]");
}


x86 assembly (clang, -O0):
<Process_LoopEach>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xecd(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
cmpq   $0x0,-0x8(%rbp)
je     115b <Process_LoopEach+0x3b>
mov    -0x8(%rbp),%rsi
lea    0xeb4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1030 <cmt_cooperate@plt>
jmp    113e <Process_LoopEach+0x1e>

x86 assembly (clang, -O2):
<Process_LoopEach>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xed2(%rip),%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec7(%rip),%r14
jmp    1157 <Process_LoopEach+0x37>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
xor    %eax,%eax
call   1030 <cmt_cooperate@plt>
test   %rbx,%rbx
je     1150 <Process_LoopEach+0x30>
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1150 <Process_LoopEach+0x30>

LLVM IR (-O0):
@.str = [8 x i8] c"<W: %p>\00"
@.str.1 = [5 x i8] c"[%s]\00"
define void @Process_LoopEach(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
store i8* %0, i8** %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32* %3)
br label %5
5: ; preds = %1, %11
%6 = load i8*, i8** %2
%7 = icmp ne i8* %6, null
br i1 %7, label %8, label %11
8: ; preds = %5
%9 = load i8*, i8** %2
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* %9)
br label %11
11: ; preds = %8, %5
%12 = call i32 (...) @cmt_cooperate()
br label %5
}

LLVM IR (-O2):
@.str = [8 x i8] c"<W: %p>\00"
@.str.1 = [5 x i8] c"[%s]\00"
define void @Process_LoopEach(i8* %0) {
%2 = alloca i32
%3 = bitcast i32* %2 to i8*
%4 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32* %2)
%5 = icmp eq i8* %0, null
br label %6
6: ; preds = %9, %1
br i1 %5, label %9, label %7
7: ; preds = %6
%8 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* %0)
br label %9
9: ; preds = %7, %6
%10 = call i32 (...) @cmt_cooperate()
br label %6
}
/* Variables and functions */
int /*<<< orphan*/ f();
int /*<<< orphan*/ g();
int /*<<< orphan*/ h();
int main() {
  int tmp, a, b;
  f();
  while (a) {
    g();
    tmp = 0;
  }
  while (b) {
    h();
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <f@plt>
cmpl   $0x0,-0xc(%rbp)
je     1163 <main+0x33>
mov    $0x0,%al
call   1050 <g@plt>
movl   $0x0,-0x8(%rbp)
jmp    1146 <main+0x16>
jmp    1168 <main+0x38>
cmpl   $0x0,-0x10(%rbp)
je     117e <main+0x4e>
mov    $0x0,%al
call   1030 <h@plt>
jmp    1168 <main+0x38>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <f@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 (...) @f()
br label %6
6: ; preds = %9, %0
%7 = load i32, i32* %3
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %6
%10 = call i32 (...) @g()
store i32 0, i32* %2
br label %6
11: ; preds = %6
br label %12
12: ; preds = %15, %11
%13 = load i32, i32* %4
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = call i32 (...) @h()
br label %12
17: ; preds = %12
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @f()
ret i32 0
}
void ff_hevc_put_hevc_bi_qpel_v48_10_avx2() {}


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

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

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

LLVM IR (-O2):
define void @ff_hevc_put_hevc_bi_qpel_v48_10_avx2() {
ret void
}
char *skip_whitespace(char *s) {
  while (*s == ' ') {
    ++s;
  }
  return s;
}


x86 assembly (clang, -O0):
<skip_whitespace>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
jne    1129 <skip_whitespace+0x29>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    1108 <skip_whitespace+0x8>
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<skip_whitespace>:
mov    %rdi,%rax
add    $0xffffffffffffffff,%rax
nopw   0x0(%rax,%rax,1)
cmpb   $0x20,0x1(%rax)
lea    0x1(%rax),%rax
je     1110 <skip_whitespace+0x10>
ret

LLVM IR (-O0):
define i8* @skip_whitespace(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
br label %3
3: ; preds = %8, %1
%4 = load i8*, i8** %2
%5 = load i8, i8* %4
%6 = sext i8 %5 to i32
%7 = icmp eq i32 %6, 32
br i1 %7, label %8, label %11
8: ; preds = %3
%9 = load i8*, i8** %2
%10 = getelementptr inbounds i8, i8* %9, i32 1
store i8* %10, i8** %2
br label %3
11: ; preds = %3
%12 = load i8*, i8** %2
ret i8* %12
}

LLVM IR (-O2):
define i8* @skip_whitespace(i8* %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i8* [ %0, %1 ], [ %6, %2 ]
%4 = load i8, i8* %3
%5 = icmp eq i8 %4, 32
%6 = getelementptr inbounds i8, i8* %3, i64 1
br i1 %5, label %2, label %7
7: ; preds = %2
ret i8* %3
}
/* Variables and functions */
void *(Memento_adjustRef)(void *a, int adjust) { return a; }


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

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

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

LLVM IR (-O2):
define i8* @Memento_adjustRef(i8* readnone returned %0, i32 %1) {
ret i8* %0
}
const char *type_name(short t) {
  if (t)
    return "SHRT";
  else
    return "short";
}


x86 assembly (clang, -O0):
<type_name>:
push   %rbp
mov    %rsp,%rbp
mov    %di,%ax
mov    %ax,-0xa(%rbp)
cmpw   $0x0,-0xa(%rbp)
je     1126 <type_name+0x26>
lea    0xee3(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1131 <type_name+0x31>
lea    0xed8(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<type_name>:
test   %di,%di
lea    0xefb(%rip),%rcx
lea    0xeef(%rip),%rax
cmove  %rcx,%rax
ret

LLVM IR (-O0):
@.str = [5 x i8] c"SHRT\00"
@.str.1 = [6 x i8] c"short\00"
define i8* @type_name(i16 signext %0) {
%2 = alloca i8*
%3 = alloca i16
store i16 %0, i16* %3
%4 = load i16, i16* %3
%5 = icmp ne i16 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %1
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8** %2
br label %8
7: ; preds = %1
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %8
8: ; preds = %7, %6
%9 = load i8*, i8** %2
ret i8* %9
}

LLVM IR (-O2):
@.str = [5 x i8] c"SHRT\00"
@.str.1 = [6 x i8] c"short\00"
define i8* @type_name(i16 signext %0) {
%2 = icmp eq i16 %0, 0
%3 = select i1 %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0)
ret i8* %3
}
/* Variables and functions */
char *strrchr(char *, char);
void _of_remove_filename(char *path) {
  char *ptr;
  ptr = strrchr(path, '/');
  *(ptr + 1) = '\0';
}


x86 assembly (clang, -O0):
<_of_remove_filename>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x2f,%esi
call   1030 <strrchr@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movb   $0x0,0x1(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_of_remove_filename>:
push   %rax
mov    $0x2f,%esi
call   1030 <strrchr@plt>
movb   $0x0,0x1(%rax)
pop    %rax
ret

LLVM IR (-O0):
define void @_of_remove_filename(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = call i8* @strrchr(i8* %4, i8 signext 47)
store i8* %5, i8** %3
%6 = load i8*, i8** %3
%7 = getelementptr inbounds i8, i8* %6, i64 1
store i8 0, i8* %7
ret void
}

LLVM IR (-O2):
define void @_of_remove_filename(i8* %0) {
%2 = tail call i8* @strrchr(i8* dereferenceable(1) %0, i8 signext 47)
%3 = getelementptr inbounds i8, i8* %2, i64 1
store i8 0, i8* %3
ret void
}
void fcn7(int y) { y = ((long)&y) * (y + 7) * 7; }


x86 assembly (clang, -O0):
<fcn7>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
lea    -0x4(%rbp),%rax
mov    -0x4(%rbp),%ecx
add    $0x7,%ecx
movslq %ecx,%rcx
imul   %rcx,%rax
imul   $0x7,%rax,%rax
mov    %eax,-0x4(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @fcn7(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = ptrtoint i32* %2 to i64
%4 = load i32, i32* %2
%5 = add nsw i32 %4, 7
%6 = sext i32 %5 to i64
%7 = mul nsw i64 %3, %6
%8 = mul nsw i64 %7, 7
%9 = trunc i64 %8 to i32
store i32 %9, i32* %2
ret void
}

LLVM IR (-O2):
define void @fcn7(i32 %0) {
ret void
}
void initializeRobot() { return; }


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

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

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

LLVM IR (-O2):
define void @initializeRobot() {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int fputs(char *, int /*<<< orphan*/ *);
void _cgo_caf82c637269_Cfunc_fputs(void *v) {
  struct {
    char *p0;
    FILE *p1;
    int r;
  } __attribute__((__packed__)) *a = v;
  a->r = fputs(a->p0, a->p1);
}


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

x86 assembly (clang, -O2):
<_cgo_caf82c637269_Cfunc_fputs>:
push   %rbx
mov    %rdi,%rbx
mov    (%rdi),%rdi
mov    0x8(%rbx),%rsi
call   1030 <fputs@plt>
mov    %eax,0x10(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
%struct.anon = type <{ i8*, i32*, i32 }>
define void @_cgo_caf82c637269_Cfunc_fputs(i8* %0) {
%2 = alloca i8*
%3 = alloca %struct.anon*
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = bitcast i8* %4 to %struct.anon*
store %struct.anon* %5, %struct.anon** %3
%6 = load %struct.anon*, %struct.anon** %3
%7 = getelementptr inbounds %struct.anon, %struct.anon* %6, i32 0, i32 0
%8 = load i8*, i8** %7
%9 = load %struct.anon*, %struct.anon** %3
%10 = getelementptr inbounds %struct.anon, %struct.anon* %9, i32 0, i32 1
%11 = load i32*, i32** %10
%12 = call i32 @fputs(i8* %8, i32* %11)
%13 = load %struct.anon*, %struct.anon** %3
%14 = getelementptr inbounds %struct.anon, %struct.anon* %13, i32 0, i32 2
store i32 %12, i32* %14
ret void
}

LLVM IR (-O2):
define void @_cgo_caf82c637269_Cfunc_fputs(i8* nocapture %0) {
%2 = bitcast i8* %0 to i8**
%3 = load i8*, i8** %2
%4 = getelementptr inbounds i8, i8* %0, i64 8
%5 = bitcast i8* %4 to i32**
%6 = load i32*, i32** %5
%7 = tail call i32 @fputs(i8* %3, i32* %6)
%8 = getelementptr inbounds i8, i8* %0, i64 16
%9 = bitcast i8* %8 to i32*
store i32 %7, i32* %9
ret void
}
int man_ign_pre(const struct man_meta *m, const struct man_node *n,
                struct mhtml *mh, struct html *h) {
  return (0);
}


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

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

LLVM IR (-O0):
%struct.man_meta = type opaque
%struct.man_node = type opaque
%struct.mhtml = type opaque
%struct.html = type opaque
define i32 @man_ign_pre(%struct.man_meta* %0, %struct.man_node* %1, %struct.mhtml* %2, %struct.html* %3) {
%5 = alloca %struct.man_meta*
%6 = alloca %struct.man_node*
%7 = alloca %struct.mhtml*
%8 = alloca %struct.html*
store %struct.man_meta* %0, %struct.man_meta** %5
store %struct.man_node* %1, %struct.man_node** %6
store %struct.mhtml* %2, %struct.mhtml** %7
store %struct.html* %3, %struct.html** %8
ret i32 0
}

LLVM IR (-O2):
%struct.man_meta = type opaque
%struct.man_node = type opaque
%struct.mhtml = type opaque
%struct.html = type opaque
define i32 @man_ign_pre(%struct.man_meta* nocapture readnone %0, %struct.man_node* nocapture readnone %1, %struct.mhtml* nocapture readnone %2, %struct.html* nocapture readnone %3) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ random(int, int);
int /*<<< orphan*/ swap(int *, int, int /*<<< orphan*/);
void shuffle(int A[], int length) {
  int position;
  for (position = 0; position < length; position++) {
    swap(A, position, random(position, length - 1));
  }
}


x86 assembly (clang, -O0):
<shuffle>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    117a <shuffle+0x5a>
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%edi
mov    -0xc(%rbp),%esi
sub    $0x1,%esi
call   1030 <random@plt>
mov    -0x20(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    %eax,%edx
call   1040 <swap@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1136 <shuffle+0x16>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<shuffle>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
test   %esi,%esi
jle    115d <shuffle+0x3d>
mov    %esi,%r15d
mov    %rdi,%r14
lea    -0x1(%r15),%ebp
xor    %ebx,%ebx
nopw   0x0(%rax,%rax,1)
mov    %ebx,%edi
mov    %ebp,%esi
call   1030 <random@plt>
mov    %r14,%rdi
mov    %ebx,%esi
mov    %eax,%edx
call   1040 <swap@plt>
add    $0x1,%ebx
cmp    %ebx,%r15d
jne    1140 <shuffle+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @shuffle(i32* %0, i32 %1) {
%3 = icmp sgt i32 %1, 0
br i1 %3, label %4, label %12
4: ; preds = %2
%5 = add nsw i32 %1, -1
br label %6
6: ; preds = %4, %6
%7 = phi i32 [ 0, %4 ], [ %10, %6 ]
%8 = tail call i32 @random(i32 %7, i32 %5)
%9 = tail call i32 @swap(i32* %0, i32 %7, i32 %8)
%10 = add nuw nsw i32 %7, 1
%11 = icmp eq i32 %10, %1
br i1 %11, label %12, label %6
12: ; preds = %6, %2
ret void
}
/* Variables and functions */
long long strtoll(char const *, char **, int);
long long atoll(const char *str) { return (strtoll(str, (char **)NULL, 10)); }


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

x86 assembly (clang, -O2):
<atoll>:
xor    %esi,%esi
mov    $0xa,%edx
jmp    1030 <strtoll@plt>

LLVM IR (-O0):
define i64 @atoll(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i64 @strtoll(i8* %3, i8** null, i32 10)
ret i64 %4
}

LLVM IR (-O2):
define i64 @atoll(i8* nocapture %0) {
%2 = tail call i64 @strtoll(i8* nocapture %0, i8** null, i32 10)
ret i64 %2
}
unsigned long bit_rotate_right(unsigned long value, unsigned long shift) {
  return (value >> shift) | (value << (sizeof(value) * 8 - shift));
}


x86 assembly (clang, -O0):
<bit_rotate_right>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rcx
shr    %cl,%rax
mov    -0x8(%rbp),%rdx
mov    $0x40,%ecx
sub    -0x10(%rbp),%rcx
shl    %cl,%rdx
mov    %rdx,%rcx
or     %rcx,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<bit_rotate_right>:
mov    %rsi,%rcx
mov    %rdi,%rax
ror    %cl,%rax
ret

LLVM IR (-O0):
define i64 @bit_rotate_right(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 = lshr i64 %5, %6
%8 = load i64, i64* %3
%9 = load i64, i64* %4
%10 = sub i64 64, %9
%11 = shl i64 %8, %10
%12 = or i64 %7, %11
ret i64 %12
}

LLVM IR (-O2):
define i64 @bit_rotate_right(i64 %0, i64 %1) {
%3 = lshr i64 %0, %1
%4 = sub i64 64, %1
%5 = shl i64 %0, %4
%6 = or i64 %5, %3
ret i64 %6
}
/* Variables and functions */
char toupper(unsigned char);
void ctu(char *s) {
  while (*s != '\0') {
    *s = toupper((unsigned char)*s);
    s++;
  }
}


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

x86 assembly (clang, -O2):
<ctu>:
push   %rbx
mov    (%rdi),%al
test   %al,%al
je     1136 <ctu+0x26>
mov    %rdi,%rbx
add    $0x1,%rbx
xchg   %ax,%ax
movzbl %al,%edi
call   1030 <toupper@plt>
mov    %al,-0x1(%rbx)
movzbl (%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    1120 <ctu+0x10>
pop    %rbx
ret

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

LLVM IR (-O2):
define void @ctu(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %11, label %4
4: ; preds = %1, %4
%5 = phi i8 [ %9, %4 ], [ %2, %1 ]
%6 = phi i8* [ %8, %4 ], [ %0, %1 ]
%7 = tail call signext i8 @toupper(i8 zeroext %5)
store i8 %7, i8* %6
%8 = getelementptr inbounds i8, i8* %6, i64 1
%9 = load i8, i8* %8
%10 = icmp eq i8 %9, 0
br i1 %10, label %11, label %4
11: ; preds = %4, %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ vec4f_scalarDiv_new(float *, float *, float const);
void vec4f_scalarDiv(float v[4], const float scalar) {
  vec4f_scalarDiv_new(v, v, scalar);
}


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

x86 assembly (clang, -O2):
<vec4f_scalarDiv>:
mov    %rdi,%rsi
jmp    1030 <vec4f_scalarDiv_new@plt>

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

LLVM IR (-O2):
define void @vec4f_scalarDiv(float* %0, float %1) {
%3 = tail call i32 @vec4f_scalarDiv_new(float* %0, float* %0, float %1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *, ...);
void usage(char *cmd) {
  printf("Usage: %s [-m] [-s] <filename>\n\n", cmd);
  printf("  -m Prints Morse Code style output ('.' and '-') DEFAULT: 01\n");
  printf("  -s Prints streaming output DEFAULT: 8-byte columns\n");
  exit(-1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xec9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf0d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    %rdi,%rsi
lea    0xec5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf0a(%rip),%rdi
call   1030 <puts@plt>
mov    $0xffffffff,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [33 x i8] c"Usage: %s [-m] [-s] <filename>\0A\0A\00"
@.str.1 = [63 x i8] c" -m Prints Morse Code style output ('.' and '-') DEFAULT: 01\0A\00"
@.str.2 = [54 x i8] c" -s Prints streaming output DEFAULT: 8-byte columns\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 @exit(i32 -1)
unreachable
}

LLVM IR (-O2):
@.str = [33 x i8] c"Usage: %s [-m] [-s] <filename>\0A\0A\00"
@str = [62 x i8] c" -m Prints Morse Code style output ('.' and '-') DEFAULT: 01\00"
@str.3 = [53 x i8] c" -s Prints streaming output DEFAULT: 8-byte columns\00"
define void @usage(i8* %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.3, i64 0, i64 0))
%5 = tail call i32 @exit(i32 -1)
unreachable
}
int main() {
  int sum = 0;
  int x = 4;
  {
    sum += x;
    int x = 3;
    {
      sum += x;
      int x = 2;
      sum += x;
    }
  }
  sum += x;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
movl   $0x4,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
movl   $0x3,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
movl   $0x2,-0x10(%rbp)
mov    -0x10(%rbp),%eax
add    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x8(%rbp),%eax
add    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}
int fn(char s1[], char s2[]) {
  if (s1[1] == s2[1] && s1[2] == s2[2] && s1[3] == s2[3] && s1[4] == s2[4])
    return 1;
}


x86 assembly (clang, -O0):
<fn>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movsbl 0x1(%rax),%eax
mov    -0x18(%rbp),%rcx
movsbl 0x1(%rcx),%ecx
cmp    %ecx,%eax
jne    1173 <fn+0x73>
mov    -0x10(%rbp),%rax
movsbl 0x2(%rax),%eax
mov    -0x18(%rbp),%rcx
movsbl 0x2(%rcx),%ecx
cmp    %ecx,%eax
jne    1173 <fn+0x73>
mov    -0x10(%rbp),%rax
movsbl 0x3(%rax),%eax
mov    -0x18(%rbp),%rcx
movsbl 0x3(%rcx),%ecx
cmp    %ecx,%eax
jne    1173 <fn+0x73>
mov    -0x10(%rbp),%rax
movsbl 0x4(%rax),%eax
mov    -0x18(%rbp),%rcx
movsbl 0x4(%rcx),%ecx
cmp    %ecx,%eax
jne    1173 <fn+0x73>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @fn(i8* %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
%6 = load i8*, i8** %4
%7 = getelementptr inbounds i8, i8* %6, i64 1
%8 = load i8, i8* %7
%9 = sext i8 %8 to i32
%10 = load i8*, i8** %5
%11 = getelementptr inbounds i8, i8* %10, i64 1
%12 = load i8, i8* %11
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %9, %13
br i1 %14, label %15, label %46
15: ; preds = %2
%16 = load i8*, i8** %4
%17 = getelementptr inbounds i8, i8* %16, i64 2
%18 = load i8, i8* %17
%19 = sext i8 %18 to i32
%20 = load i8*, i8** %5
%21 = getelementptr inbounds i8, i8* %20, i64 2
%22 = load i8, i8* %21
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %19, %23
br i1 %24, label %25, label %46
25: ; preds = %15
%26 = load i8*, i8** %4
%27 = getelementptr inbounds i8, i8* %26, i64 3
%28 = load i8, i8* %27
%29 = sext i8 %28 to i32
%30 = load i8*, i8** %5
%31 = getelementptr inbounds i8, i8* %30, i64 3
%32 = load i8, i8* %31
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %29, %33
br i1 %34, label %35, label %46
35: ; preds = %25
%36 = load i8*, i8** %4
%37 = getelementptr inbounds i8, i8* %36, i64 4
%38 = load i8, i8* %37
%39 = sext i8 %38 to i32
%40 = load i8*, i8** %5
%41 = getelementptr inbounds i8, i8* %40, i64 4
%42 = load i8, i8* %41
%43 = sext i8 %42 to i32
%44 = icmp eq i32 %39, %43
br i1 %44, label %45, label %46
45: ; preds = %35
store i32 1, i32* %3
br label %46
46: ; preds = %45, %35, %25, %15, %2
%47 = load i32, i32* %3
ret i32 %47
}

LLVM IR (-O2):
define i32 @fn(i8* nocapture %0, i8* nocapture %1) {
ret i32 1
}