xunge/DecIR huggingface dataset:
adrreg0regx1(r0, r1, x0, x1, p0, p1) short r0, r1;
short *p0, *p1;
{
  if ((p0[10000000]) <= (p1[x1]))
    return 1;
  else
    return 0;
}


x86 assembly (clang, -O0):
<adrreg0regx1>:
push   %rbp
mov    %rsp,%rbp
mov    %esi,%eax
mov    %di,%si
mov    %si,-0x6(%rbp)
mov    %ax,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8,-0x18(%rbp)
mov    %r9,-0x20(%rbp)
mov    -0x18(%rbp),%rax
movswl 0x1312d00(%rax),%eax
mov    -0x20(%rbp),%rcx
movslq -0x10(%rbp),%rdx
movswl (%rcx,%rdx,2),%ecx
cmp    %ecx,%eax
jg     114a <adrreg0regx1+0x4a>
movl   $0x1,-0x4(%rbp)
jmp    1151 <adrreg0regx1+0x51>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<adrreg0regx1>:
movzwl 0x1312d00(%r8),%edx
01
movslq %ecx,%rcx
xor    %eax,%eax
cmp    (%r9,%rcx,2),%dx
setle  %al
ret

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

LLVM IR (-O2):
define i32 @adrreg0regx1(i32 %0, i32 %1, i32 %2, i32 %3, i16* nocapture %4, i16* nocapture %5) {
%7 = getelementptr inbounds i16, i16* %4, i64 10000000
%8 = load i16, i16* %7
%9 = sext i32 %3 to i64
%10 = getelementptr inbounds i16, i16* %5, i64 %9
%11 = load i16, i16* %10
%12 = icmp sle i16 %8, %11
%13 = zext i1 %12 to i32
ret i32 %13
}
void macro(void) {
  do {
    return;
  } while (0);
}


x86 assembly (clang, -O0):
<macro>:
push   %rbp
mov    %rsp,%rbp
jmp    1109 <macro+0x9>
jmp    110e <macro+0xe>
pop    %rbp
ret

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

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

LLVM IR (-O2):
define void @macro() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
extern void letter_clear(int n) {
  int i;
  for (i = 1; i <= n; i++)
    printf("\b \b");
}


x86 assembly (clang, -O0):
<letter_clear>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x4(%rbp),%eax
jg     1148 <letter_clear+0x38>
lea    0xecb(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1122 <letter_clear+0x12>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<letter_clear>:
push   %r14
push   %rbx
push   %rax
test   %edi,%edi
jle    113d <letter_clear+0x2d>
mov    %edi,%ebx
lea    0xedf(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
call   1030 <printf@plt>
add    $0xffffffff,%ebx
jne    1130 <letter_clear+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [4 x i8] c"\08 \08\00"
define void @letter_clear(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
store i32 1, i32* %3
br label %4
4: ; preds = %10, %1
%5 = load i32, i32* %3
%6 = load i32, i32* %2
%7 = icmp sle i32 %5, %6
br i1 %7, label %8, label %13
8: ; preds = %4
%9 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
br label %10
10: ; preds = %8
%11 = load i32, i32* %3
%12 = add nsw i32 %11, 1
store i32 %12, i32* %3
br label %4
13: ; preds = %4
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"\08 \08\00"
define void @letter_clear(i32 %0) {
%2 = icmp slt i32 %0, 1
br i1 %2, label %8, label %3
3: ; preds = %1, %3
%4 = phi i32 [ %6, %3 ], [ 1, %1 ]
%5 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%6 = add nuw i32 %4, 1
%7 = icmp eq i32 %4, %0
br i1 %7, label %8, label %3
8: ; preds = %3, %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ scanf(char *, char *);
int main(void) {
  char s[256];
  scanf("%255s", s);
  printf("%s\n", s);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x110,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x110(%rbp),%rsi
lea    0xec0(%rip),%rdi
call   1040 <scanf@plt>
lea    -0x110(%rbp),%rsi
lea    0xeb3(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x110,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x100,%rsp
lea    0xed1(%rip),%rdi
mov    %rsp,%rbx
mov    %rbx,%rsi
call   1040 <scanf@plt>
lea    0xec5(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x100,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [6 x i8] c"%255s\00"
@.str.1 = [4 x i8] c"%s\0A\00"
define i32 @main() {
%1 = alloca [256 x i8]
%2 = getelementptr inbounds [256 x i8], [256 x i8]* %1, i64 0, i64 0
%3 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %2)
%4 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* %2)
ret i32 0
}
void foo585() {}


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

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

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

LLVM IR (-O2):
define void @foo585() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ shell_output(char *, char *);
int /*<<< orphan*/ shell_prompt(char *);
void shell_start(void) {
  shell_output("uIP command shell", "");
  shell_output("Type '?' and return for help", "");
  shell_prompt("uIP 1.0> ");
}


x86 assembly (clang, -O0):
<shell_start>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
lea    0xf06(%rip),%rsi
call   1040 <shell_output@plt>
lea    0xed4(%rip),%rdi
lea    0xef3(%rip),%rsi
call   1040 <shell_output@plt>
lea    0xede(%rip),%rdi
call   1030 <shell_prompt@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<shell_start>:
push   %rbx
lea    0xed8(%rip),%rdi
lea    0xf09(%rip),%rbx
mov    %rbx,%rsi
call   1040 <shell_output@plt>
lea    0xed4(%rip),%rdi
mov    %rbx,%rsi
call   1040 <shell_output@plt>
lea    0xee2(%rip),%rdi
pop    %rbx
jmp    1030 <shell_prompt@plt>

LLVM IR (-O0):
@.str = [18 x i8] c"uIP command shell\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [29 x i8] c"Type '?' and return for help\00"
@.str.3 = [10 x i8] c"uIP 1.0> \00"
define void @shell_start() {
%1 = call i32 @shell_output(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 @shell_output(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @shell_prompt(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [18 x i8] c"uIP command shell\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [29 x i8] c"Type '?' and return for help\00"
@.str.3 = [10 x i8] c"uIP 1.0> \00"
define void @shell_start() {
%1 = tail call i32 @shell_output(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @shell_output(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @shell_prompt(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ SIG_IGN;
int /*<<< orphan*/ clear();
int /*<<< orphan*/ endwin();
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ refresh();
int /*<<< orphan*/ signal(int, int /*<<< orphan*/);
void die(int sig) {
  signal(sig, SIG_IGN);
  clear();
  refresh();
  endwin();
  exit(0);
}


x86 assembly (clang, -O0):
<die>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    0x2e83(%rip),%rax
mov    (%rax),%esi
call   1030 <signal@plt>
mov    $0x0,%al
call   1070 <clear@plt>
mov    $0x0,%al
call   1040 <refresh@plt>
mov    $0x0,%al
call   1050 <endwin@plt>
xor    %edi,%edi
call   1060 <exit@plt>

x86 assembly (clang, -O2):
<die>:
push   %rax
mov    0x2e90(%rip),%rax
mov    (%rax),%esi
call   1030 <signal@plt>
xor    %eax,%eax
call   1070 <clear@plt>
xor    %eax,%eax
call   1040 <refresh@plt>
xor    %eax,%eax
call   1050 <endwin@plt>
xor    %edi,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@SIG_IGN = global i32 0
define void @die(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = load i32, i32* @SIG_IGN
%5 = call i32 @signal(i32 %3, i32 %4)
%6 = call i32 (...) @clear()
%7 = call i32 (...) @refresh()
%8 = call i32 (...) @endwin()
%9 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@SIG_IGN = global i32 0
define void @die(i32 %0) {
%2 = load i32, i32* @SIG_IGN
%3 = tail call i32 @signal(i32 %0, i32 %2)
%4 = tail call i32 (...) @clear()
%5 = tail call i32 (...) @refresh()
%6 = tail call i32 (...) @endwin()
%7 = tail call i32 @exit(i32 0)
unreachable
}
format(s, d, t) char *s, t;
double d;
{
  int i;
  i = (int)floor(log10(d));
  i = (i > 0) ? 1 : -i + 2;
  sprintf(s, "%%.%d%c", i, t);
}


x86 assembly (clang, -O0):
<format>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %sil,%al
mov    %rdi,-0x10(%rbp)
movsd  %xmm0,-0x18(%rbp)
mov    %al,-0x19(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1030 <log10@plt>
call   1050 <floor@plt>
cvttsd2si %xmm0,%eax
mov    %eax,-0x20(%rbp)
cmpl   $0x0,-0x20(%rbp)
jle    1174 <format+0x44>
mov    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    117f <format+0x4f>
xor    %eax,%eax
sub    -0x20(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%edx
movsbl -0x19(%rbp),%ecx
lea    0xe69(%rip),%rsi
mov    $0x0,%al
call   1040 <sprintf@plt>
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<format>:
push   %r14
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %rdi,%r14
call   1030 <log10@plt>
call   1050 <floor@plt>
cvttsd2si %xmm0,%eax
mov    $0x2,%ecx
sub    %eax,%ecx
test   %eax,%eax
mov    $0x1,%edx
cmovle %ecx,%edx
movsbl %bl,%ecx
lea    0xe9e(%rip),%rsi
mov    %r14,%rdi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <sprintf@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"%%.%d%c\00"
define i32 @format(i8* %0, double %1, i32 %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca double
%7 = alloca i8
%8 = alloca i32
%9 = trunc i32 %2 to i8
store i8* %0, i8** %5
store double %1, double* %6
store i8 %9, i8* %7
%10 = load double, double* %6
%11 = call double @log10(double %10)
%12 = call double @llvm.floor.f64(double %11)
%13 = fptosi double %12 to i32
store i32 %13, i32* %8
%14 = load i32, i32* %8
%15 = icmp sgt i32 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %3
br label %21
17: ; preds = %3
%18 = load i32, i32* %8
%19 = sub nsw i32 0, %18
%20 = add nsw i32 %19, 2
br label %21
21: ; preds = %17, %16
%22 = phi i32 [ 1, %16 ], [ %20, %17 ]
store i32 %22, i32* %8
%23 = load i8*, i8** %5
%24 = load i32, i32* %8
%25 = load i8, i8* %7
%26 = sext i8 %25 to i32
%27 = call i32 (i8*, i8*, ...) @sprintf(i8* %23, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %24, i32 %26)
%28 = load i32, i32* %4
ret i32 %28
}

LLVM IR (-O2):
@.str = [8 x i8] c"%%.%d%c\00"
define i32 @format(i8* nocapture writeonly %0, double %1, i32 %2) {
%4 = tail call double @log10(double %1)
%5 = tail call double @llvm.floor.f64(double %4)
%6 = fptosi double %5 to i32
%7 = sub i32 2, %6
%8 = icmp slt i32 %6, 1
%9 = select i1 %8, i32 %7, i32 1
%10 = shl i32 %2, 24
%11 = ashr exact i32 %10, 24
%12 = tail call i32 (i8*, i8*, ...) @sprintf(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %9, i32 %11)
ret i32 undef
}
void flip_execute(void) {}


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

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

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

LLVM IR (-O2):
define void @flip_execute() {
ret void
}
/* Type definitions */
typedef scalar_t__ uint8_t;
typedef int uint32_t;

/* Variables and functions */
uint32_t byteorder_bebuftohl(const uint8_t *buf) {
  return (((uint32_t)buf[0] << 24) | ((uint32_t)buf[1] << 16) |
          ((uint32_t)buf[2] << 8) | ((uint32_t)buf[3] << 0));
}


x86 assembly (clang, -O0):
<byteorder_bebuftohl>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
shl    $0x18,%eax
mov    -0x8(%rbp),%rcx
mov    0x8(%rcx),%rcx
shl    $0x10,%ecx
or     %ecx,%eax
mov    -0x8(%rbp),%rcx
mov    0x10(%rcx),%rcx
shl    $0x8,%ecx
or     %ecx,%eax
mov    -0x8(%rbp),%rcx
mov    0x18(%rcx),%rcx
shl    $0x0,%ecx
or     %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<byteorder_bebuftohl>:
mov    (%rdi),%eax
mov    0x8(%rdi),%ecx
shl    $0x18,%eax
shl    $0x10,%ecx
or     %eax,%ecx
mov    0x10(%rdi),%eax
shl    $0x8,%eax
or     %ecx,%eax
or     0x18(%rdi),%eax
ret

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

LLVM IR (-O2):
define i32 @byteorder_bebuftohl(i64* nocapture %0) {
%2 = load i64, i64* %0
%3 = trunc i64 %2 to i32
%4 = shl i32 %3, 24
%5 = getelementptr inbounds i64, i64* %0, i64 1
%6 = load i64, i64* %5
%7 = trunc i64 %6 to i32
%8 = shl i32 %7, 16
%9 = or i32 %8, %4
%10 = getelementptr inbounds i64, i64* %0, i64 2
%11 = load i64, i64* %10
%12 = trunc i64 %11 to i32
%13 = shl i32 %12, 8
%14 = or i32 %9, %13
%15 = getelementptr inbounds i64, i64* %0, i64 3
%16 = load i64, i64* %15
%17 = trunc i64 %16 to i32
%18 = or i32 %14, %17
ret i32 %18
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int);
int main(void) {
  int j1 = 1, j2 = 1;
  while (j1 <= 3 && j2 <= 7) {
    printf("j1 %d, j1 %d\n", j1, j2);
    j1++;
    j2++;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
movl   $0x1,-0xc(%rbp)
xor    %eax,%eax
cmpl   $0x3,-0x8(%rbp)
mov    %al,-0xd(%rbp)
jg     1146 <main+0x36>
cmpl   $0x7,-0xc(%rbp)
setle  %al
mov    %al,-0xd(%rbp)
mov    -0xd(%rbp),%al
test   $0x1,%al
jne    1156 <main+0x46>
jmp    117f <main+0x6f>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xe9d(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    112d <main+0x1d>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xee8(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
mov    $0x2,%edx
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
mov    $0x3,%edx
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [14 x i8] c"j1 %d, j1 %d\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 1, i32 1)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 2, i32 2)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 3, i32 3)
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;

/* Variables and functions */
const char *hfp_subevent_number_for_voice_tag_get_number(const uint8_t *event) {
  return (const char *)&event[3];
}


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

x86 assembly (clang, -O2):
<hfp_subevent_number_for_voice_tag_get_number>:
lea    0xc(%rdi),%rax
ret

LLVM IR (-O0):
define i8* @hfp_subevent_number_for_voice_tag_get_number(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = getelementptr inbounds i32, i32* %3, i64 3
%5 = bitcast i32* %4 to i8*
ret i8* %5
}

LLVM IR (-O2):
define i8* @hfp_subevent_number_for_voice_tag_get_number(i32* readnone %0) {
%2 = getelementptr inbounds i32, i32* %0, i64 3
%3 = bitcast i32* %2 to i8*
ret i8* %3
}
/* Type definitions */
struct stat {
  scalar_t__ st_size;
};

/* Variables and functions */
scalar_t__ stat(char const *, struct stat *);
unsigned long get_file_size(const char *filename) {
  struct stat buf;
  if (stat(filename, &buf) < 0) {
    return 0;
  }
  return (unsigned long)buf.st_size;
}


x86 assembly (clang, -O0):
<get_file_size>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x18(%rbp),%rsi
call   1030 <stat@plt>
cmp    $0x0,%rax
jge    1140 <get_file_size+0x30>
movq   $0x0,-0x8(%rbp)
jmp    1148 <get_file_size+0x38>
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_file_size>:
push   %rax
mov    %rsp,%rsi
call   1030 <stat@plt>
test   %rax,%rax
js     1124 <get_file_size+0x14>
mov    (%rsp),%rax
pop    %rcx
ret
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.stat = type { i64 }
define i64 @get_file_size(i8* %0) {
%2 = alloca i64
%3 = alloca i8*
%4 = alloca %struct.stat
store i8* %0, i8** %3
%5 = load i8*, i8** %3
%6 = call i64 @stat(i8* %5, %struct.stat* %4)
%7 = icmp slt i64 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %1
store i64 0, i64* %2
br label %12
9: ; preds = %1
%10 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 0
%11 = load i64, i64* %10
store i64 %11, i64* %2
br label %12
12: ; preds = %9, %8
%13 = load i64, i64* %2
ret i64 %13
}

LLVM IR (-O2):
%struct.stat = type { i64 }
define i64 @get_file_size(i8* %0) {
%2 = alloca %struct.stat
%3 = bitcast %struct.stat* %2 to i8*
%4 = call i64 @stat(i8* %0, %struct.stat* %2)
%5 = icmp slt i64 %4, 0
%6 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 0
%7 = load i64, i64* %6
%8 = select i1 %5, i64 0, i64 %7
ret i64 %8
}
void INT_Excep_CMT1_CMI1(void) {}


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

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

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

LLVM IR (-O2):
define void @INT_Excep_CMT1_CMI1() {
ret void
}
int open_loger(int port) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @open_loger(i32 %0) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ ROT13(char *);
int /*<<< orphan*/ scanf(char *, char *);
void enc(char encr[600]) {
  scanf("%600s", encr);
  ROT13(encr);
}


x86 assembly (clang, -O0):
<enc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xec9(%rip),%rdi
call   1030 <scanf@plt>
mov    -0x8(%rbp),%rdi
call   1040 <ROT13@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<enc>:
push   %rbx
mov    %rdi,%rbx
lea    0xed5(%rip),%rdi
mov    %rbx,%rsi
call   1030 <scanf@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1040 <ROT13@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"%600s\00"
define void @enc(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = load i8*, i8** %2
%6 = call i32 @ROT13(i8* %5)
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"%600s\00"
define void @enc(i8* %0) {
%2 = tail call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @ROT13(i8* %0)
ret void
}
void rop3_238_0_0(unsigned char *D, unsigned char S, unsigned char T) {
  unsigned char stk1;
  stk1 = *D | S;
  *D = stk1;
}


x86 assembly (clang, -O0):
<rop3_238_0_0>:
push   %rbp
mov    %rsp,%rbp
mov    %dl,%al
mov    %sil,%cl
mov    %rdi,-0x8(%rbp)
mov    %cl,-0x9(%rbp)
mov    %al,-0xa(%rbp)
mov    -0x8(%rbp),%rax
movzbl (%rax),%eax
movzbl -0x9(%rbp),%ecx
or     %ecx,%eax
mov    %al,-0xb(%rbp)
mov    -0xb(%rbp),%cl
mov    -0x8(%rbp),%rax
mov    %cl,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<rop3_238_0_0>:
or     %sil,(%rdi)
ret

LLVM IR (-O0):
define void @rop3_238_0_0(i8* %0, i8 zeroext %1, i8 zeroext %2) {
%4 = alloca i8*
%5 = alloca i8
%6 = alloca i8
%7 = alloca i8
store i8* %0, i8** %4
store i8 %1, i8* %5
store i8 %2, i8* %6
%8 = load i8*, i8** %4
%9 = load i8, i8* %8
%10 = zext i8 %9 to i32
%11 = load i8, i8* %5
%12 = zext i8 %11 to i32
%13 = or i32 %10, %12
%14 = trunc i32 %13 to i8
store i8 %14, i8* %7
%15 = load i8, i8* %7
%16 = load i8*, i8** %4
store i8 %15, i8* %16
ret void
}

LLVM IR (-O2):
define void @rop3_238_0_0(i8* nocapture %0, i8 zeroext %1, i8 zeroext %2) {
%4 = load i8, i8* %0
%5 = or i8 %4, %1
store i8 %5, i8* %0
ret void
}
void ff_hevc_put_hevc_bi_w_epel_h12_10_sse4() {}


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

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

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

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

/* Variables and functions */
int /*<<< orphan*/ update_pixels(int /*<<< orphan*/ *);
void update_16x9_pixels(__m256i *sig) {
  update_pixels(&sig[0]);
  update_pixels(&sig[8]);
}


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

x86 assembly (clang, -O2):
<update_16x9_pixels>:
push   %rbx
mov    %rdi,%rbx
call   1030 <update_pixels@plt>
add    $0x20,%rbx
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <update_pixels@plt>

LLVM IR (-O0):
define void @update_16x9_pixels(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = getelementptr inbounds i32, i32* %3, i64 0
%5 = call i32 @update_pixels(i32* %4)
%6 = load i32*, i32** %2
%7 = getelementptr inbounds i32, i32* %6, i64 8
%8 = call i32 @update_pixels(i32* %7)
ret void
}

LLVM IR (-O2):
define void @update_16x9_pixels(i32* %0) {
%2 = tail call i32 @update_pixels(i32* %0)
%3 = getelementptr inbounds i32, i32* %0, i64 8
%4 = tail call i32 @update_pixels(i32* %3)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main() {
  printf("Ola mundo\n");
  return 0;
}


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

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

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

LLVM IR (-O2):
@str = [10 x i8] c"Ola mundo\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str, i64 0, i64 0))
ret i32 0
}
unsigned NI_GPCT_GATE_PIN_GATE_SELECT(unsigned n) { return 0x102 + n; }


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

x86 assembly (clang, -O2):
<NI_GPCT_GATE_PIN_GATE_SELECT>:
lea    0x102(%rdi),%eax
ret

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

LLVM IR (-O2):
define i32 @NI_GPCT_GATE_PIN_GATE_SELECT(i32 %0) {
%2 = add i32 %0, 258
ret i32 %2
}
void ble_rsp_connection_get_status(
    const struct ble_msg_connection_get_status_rsp_t *msg) {}


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

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

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

LLVM IR (-O2):
%struct.ble_msg_connection_get_status_rsp_t = type opaque
define void @ble_rsp_connection_get_status(%struct.ble_msg_connection_get_status_rsp_t* nocapture %0) {
ret void
}
/* Type definitions */
struct mm_struct {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ BUG();
void flush_tlb_range(struct mm_struct *mm, unsigned long start,
                     unsigned long end) {
  BUG();
}


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

x86 assembly (clang, -O2):
<flush_tlb_range>:
xor    %eax,%eax
jmp    1030 <BUG@plt>

LLVM IR (-O0):
%struct.mm_struct = type { i32 }
define void @flush_tlb_range(%struct.mm_struct* %0, i64 %1, i64 %2) {
%4 = alloca %struct.mm_struct*
%5 = alloca i64
%6 = alloca i64
store %struct.mm_struct* %0, %struct.mm_struct** %4
store i64 %1, i64* %5
store i64 %2, i64* %6
%7 = call i32 (...) @BUG()
ret void
}

LLVM IR (-O2):
%struct.mm_struct = type { i32 }
define void @flush_tlb_range(%struct.mm_struct* nocapture readnone %0, i64 %1, i64 %2) {
%4 = tail call i32 (...) @BUG()
ret void
}
/* Variables and functions */
scalar_t__ UP3D_GetParameter(int);
float UP3D_GetFeedBackLength() {
  return ((float)UP3D_GetParameter(0x36)) / 1000;
}


x86 assembly (clang, -O0):
<UP3D_GetFeedBackLength>:
push   %rbp
mov    %rsp,%rbp
mov    $0x36,%edi
call   1030 <UP3D_GetParameter@plt>
cvtsi2ss %rax,%xmm0
movss  0xed5(%rip),%xmm1
divss  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<UP3D_GetFeedBackLength>:
push   %rax
mov    $0x36,%edi
call   1030 <UP3D_GetParameter@plt>
cvtsi2ss %rax,%xmm0
divss  0xed8(%rip),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define float @UP3D_GetFeedBackLength() {
%1 = call i64 @UP3D_GetParameter(i32 54)
%2 = sitofp i64 %1 to float
%3 = fdiv float %2, 1.000000e+03
ret float %3
}

LLVM IR (-O2):
define float @UP3D_GetFeedBackLength() {
%1 = tail call i64 @UP3D_GetParameter(i32 54)
%2 = sitofp i64 %1 to float
%3 = fdiv float %2, 1.000000e+03
ret float %3
}
/* Variables and functions */
scalar_t__ ENOENT;
int /*<<< orphan*/ F_OK;
int access(char *, int /*<<< orphan*/);
scalar_t__ errno;
int om_wifi_power_get() {
  int res = access("/sys/bus/platform/drivers/s3c2440-sdi"
                   "/s3c2440-sdi",
                   F_OK);
  if (res == 0)
    return 1;
  if (errno == ENOENT)
    return 0;
  return res;
}


x86 assembly (clang, -O0):
<om_wifi_power_get>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0x2ea9(%rip),%rax
mov    (%rax),%esi
lea    0xed8(%rip),%rdi
call   1030 <access@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jne    1146 <om_wifi_power_get+0x36>
movl   $0x1,-0x4(%rbp)
jmp    1172 <om_wifi_power_get+0x62>
mov    0x2e93(%rip),%rax
mov    (%rax),%rax
mov    0x2e79(%rip),%rcx
cmp    (%rcx),%rax
jne    116c <om_wifi_power_get+0x5c>
movl   $0x0,-0x4(%rbp)
jmp    1172 <om_wifi_power_get+0x62>
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<om_wifi_power_get>:
push   %rax
mov    0x2eb0(%rip),%rax
mov    (%rax),%esi
lea    0xedf(%rip),%rdi
call   1030 <access@plt>
mov    0x2eb3(%rip),%rcx
mov    (%rcx),%rcx
mov    0x2e99(%rip),%rdx
xor    %esi,%esi
cmp    (%rdx),%rcx
cmovne %eax,%esi
test   %eax,%eax
mov    $0x1,%eax
cmovne %esi,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [50 x i8] c"/sys/bus/platform/drivers/s3c2440-sdi/s3c2440-sdi\00"
@F_OK = global i32 0
@errno = global i64 0
@ENOENT = global i64 0
define i32 @om_wifi_power_get() {
%1 = alloca i32
%2 = alloca i32
%3 = load i32, i32* @F_OK
%4 = call i32 @access(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0), i32 %3)
store i32 %4, i32* %2
%5 = load i32, i32* %2
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %0
store i32 1, i32* %1
br label %15
8: ; preds = %0
%9 = load i64, i64* @errno
%10 = load i64, i64* @ENOENT
%11 = icmp eq i64 %9, %10
br i1 %11, label %12, label %13
12: ; preds = %8
store i32 0, i32* %1
br label %15
13: ; preds = %8
%14 = load i32, i32* %2
store i32 %14, i32* %1
br label %15
15: ; preds = %13, %12, %7
%16 = load i32, i32* %1
ret i32 %16
}

LLVM IR (-O2):
@.str = [50 x i8] c"/sys/bus/platform/drivers/s3c2440-sdi/s3c2440-sdi\00"
@F_OK = global i32 0
@errno = global i64 0
@ENOENT = global i64 0
define i32 @om_wifi_power_get() {
%1 = load i32, i32* @F_OK
%2 = tail call i32 @access(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = icmp eq i32 %2, 0
%4 = load i64, i64* @errno
%5 = load i64, i64* @ENOENT
%6 = icmp eq i64 %4, %5
%7 = select i1 %6, i32 0, i32 %2
%8 = select i1 %3, i32 1, i32 %7
ret i32 %8
}
/* Variables and functions */
int spctype(char const *, char *, char *, char *, char *, char *, char *, int *,
            int /*<<< orphan*/ *);
int spctyp(const char ctypei[9], char stype[], char scode[], char sname[],
           char units[], char *ptype, char *xtype, int *restreq) {
  return spctype(ctypei, stype, scode, sname, units, ptype, xtype, restreq,
                 NULL);
}


x86 assembly (clang, -O0):
<spctyp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x28(%rbp),%r8
mov    -0x30(%rbp),%r9
mov    0x10(%rbp),%r10
mov    0x18(%rbp),%rax
xor    %r11d,%r11d
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
movq   $0x0,0x10(%rsp)
call   1030 <spctype@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<spctyp>:
sub    $0x18,%rsp
movaps 0x20(%rsp),%xmm0
movups %xmm0,(%rsp)
movq   $0x0,0x10(%rsp)
call   1030 <spctype@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
define i32 @spctyp(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5, i8* %6, i32* %7) {
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i32*
store i8* %0, i8** %9
store i8* %1, i8** %10
store i8* %2, i8** %11
store i8* %3, i8** %12
store i8* %4, i8** %13
store i8* %5, i8** %14
store i8* %6, i8** %15
store i32* %7, i32** %16
%17 = load i8*, i8** %9
%18 = load i8*, i8** %10
%19 = load i8*, i8** %11
%20 = load i8*, i8** %12
%21 = load i8*, i8** %13
%22 = load i8*, i8** %14
%23 = load i8*, i8** %15
%24 = load i32*, i32** %16
%25 = call i32 @spctype(i8* %17, i8* %18, i8* %19, i8* %20, i8* %21, i8* %22, i8* %23, i32* %24, i32* null)
ret i32 %25
}

LLVM IR (-O2):
define i32 @spctyp(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5, i8* %6, i32* %7) {
%9 = tail call i32 @spctype(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5, i8* %6, i32* %7, i32* null)
ret i32 %9
}
/* Type definitions */
struct stat {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ _STAT_VER;
int true_lxstat(int /*<<< orphan*/, char const *, struct stat *);
int true_lstat(const char *pathname, struct stat *info) {
  return true_lxstat(_STAT_VER, pathname, info);
}


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

x86 assembly (clang, -O2):
<true_lstat>:
mov    %rsi,%rdx
mov    %rdi,%rsi
mov    0x2ec3(%rip),%rax
mov    (%rax),%edi
jmp    1030 <true_lxstat@plt>

LLVM IR (-O0):
%struct.stat = type { i32 }
@_STAT_VER = global i32 0
define i32 @true_lstat(i8* %0, %struct.stat* %1) {
%3 = alloca i8*
%4 = alloca %struct.stat*
store i8* %0, i8** %3
store %struct.stat* %1, %struct.stat** %4
%5 = load i32, i32* @_STAT_VER
%6 = load i8*, i8** %3
%7 = load %struct.stat*, %struct.stat** %4
%8 = call i32 @true_lxstat(i32 %5, i8* %6, %struct.stat* %7)
ret i32 %8
}

LLVM IR (-O2):
%struct.stat = type { i32 }
@_STAT_VER = global i32 0
define i32 @true_lstat(i8* %0, %struct.stat* %1) {
%3 = load i32, i32* @_STAT_VER
%4 = tail call i32 @true_lxstat(i32 %3, i8* %0, %struct.stat* %1)
ret i32 %4
}
void RTAvlrooGCPtrGetNextEqual(void) {}


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

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

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

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

/* Variables and functions */
int /*<<< orphan*/ dirfd(int /*<<< orphan*/ *);
int fchdir(int /*<<< orphan*/);
int change_to_dir(DIR *dir) { return fchdir(dirfd(dir)); }


x86 assembly (clang, -O0):
<change_to_dir>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <dirfd@plt>
mov    %eax,%edi
call   1040 <fchdir@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<change_to_dir>:
push   %rax
call   1030 <dirfd@plt>
mov    %eax,%edi
pop    %rax
jmp    1040 <fchdir@plt>

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

LLVM IR (-O2):
define i32 @change_to_dir(i32* %0) {
%2 = tail call i32 @dirfd(i32* %0)
%3 = tail call i32 @fchdir(i32 %2)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
void imprimeVetor(int *vetor) {
  int i;
  for (i = 0; i < 100000; i++) {
    printf(" %d |", vetor[i]);
  }
  printf("\n\n");
}


x86 assembly (clang, -O0):
<imprimeVetor>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x186a0,-0xc(%rbp)
jge    1157 <imprimeVetor+0x47>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xebe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1123 <imprimeVetor+0x13>
lea    0xea8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<imprimeVetor>:
push   %r15
push   %r14
push   %rbx
mov    %rdi,%r15
lea    0xed1(%rip),%r14
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    (%r15,%rbx,4),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%rbx
cmp    $0x186a0,%rbx
jne    1140 <imprimeVetor+0x20>
lea    0xea4(%rip),%rdi
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [6 x i8] c" %d |\00"
@.str.1 = [3 x i8] c"\0A\0A\00"
define void @imprimeVetor(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
store i32* %0, i32** %2
store i32 0, i32* %3
br label %4
4: ; preds = %14, %1
%5 = load i32, i32* %3
%6 = icmp slt i32 %5, 100000
br i1 %6, label %7, label %17
7: ; preds = %4
%8 = load i32*, i32** %2
%9 = load i32, i32* %3
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i32, i32* %8, i64 %10
%12 = load i32, i32* %11
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %12)
br label %14
14: ; preds = %7
%15 = load i32, i32* %3
%16 = add nsw i32 %15, 1
store i32 %16, i32* %3
br label %4
17: ; preds = %4
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c" %d |\00"
@str = [2 x i8] c"\0A\00"
define void @imprimeVetor(i32* nocapture %0) {
br label %2
2: ; preds = %1, %2
%3 = phi i64 [ 0, %1 ], [ %7, %2 ]
%4 = getelementptr inbounds i32, i32* %0, i64 %3
%5 = load i32, i32* %4
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = add nuw nsw i64 %3, 1
%8 = icmp eq i64 %7, 100000
br i1 %8, label %9, label %2
9: ; preds = %2
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
ret void
}
double Tween_CubicInOutEasing(double k) {
  k *= 2;
  if (k < 1) {
    return 0.5 * k * k * k;
  }
  k -= 2;
  return 0.5 * (k * k * k + 2);
}


x86 assembly (clang, -O0):
<Tween_CubicInOutEasing>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x10(%rbp)
movsd  0xef7(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xedd(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    114f <Tween_CubicInOutEasing+0x4f>
movsd  0xeda(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1195 <Tween_CubicInOutEasing+0x95>
movsd  -0x10(%rbp),%xmm0
movsd  0xeac(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm1
mulsd  -0x10(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm0
mulsd  %xmm0,%xmm1
movsd  0xe88(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  0xe84(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<Tween_CubicInOutEasing>:
addsd  %xmm0,%xmm0
movsd  0xef4(%rip),%xmm1
ucomisd %xmm0,%xmm1
jbe    112b <Tween_CubicInOutEasing+0x2b>
movsd  0xefe(%rip),%xmm1
mulsd  %xmm0,%xmm1
mulsd  %xmm0,%xmm1
mulsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
ret
addsd  0xed5(%rip),%xmm0
movapd %xmm0,%xmm1
mulsd  %xmm0,%xmm1
mulsd  %xmm0,%xmm1
addsd  0xec9(%rip),%xmm1
mulsd  0xec9(%rip),%xmm1
movapd %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @Tween_CubicInOutEasing(double %0) {
%2 = alloca double
%3 = alloca double
store double %0, double* %3
%4 = load double, double* %3
%5 = fmul double %4, 2.000000e+00
store double %5, double* %3
%6 = load double, double* %3
%7 = fcmp olt double %6, 1.000000e+00
br i1 %7, label %8, label %15
8: ; preds = %1
%9 = load double, double* %3
%10 = fmul double 5.000000e-01, %9
%11 = load double, double* %3
%12 = fmul double %10, %11
%13 = load double, double* %3
%14 = fmul double %12, %13
store double %14, double* %2
br label %24
15: ; preds = %1
%16 = load double, double* %3
%17 = fsub double %16, 2.000000e+00
store double %17, double* %3
%18 = load double, double* %3
%19 = load double, double* %3
%20 = fmul double %18, %19
%21 = load double, double* %3
%22 = call double @llvm.fmuladd.f64(double %20, double %21, double 2.000000e+00)
%23 = fmul double 5.000000e-01, %22
store double %23, double* %2
br label %24
24: ; preds = %15, %8
%25 = load double, double* %2
ret double %25
}

LLVM IR (-O2):
define double @Tween_CubicInOutEasing(double %0) {
%2 = fmul double %0, 2.000000e+00
%3 = fcmp olt double %2, 1.000000e+00
br i1 %3, label %4, label %8
4: ; preds = %1
%5 = fmul double %2, 5.000000e-01
%6 = fmul double %2, %5
%7 = fmul double %2, %6
br label %13
8: ; preds = %1
%9 = fadd double %2, -2.000000e+00
%10 = fmul double %9, %9
%11 = tail call double @llvm.fmuladd.f64(double %10, double %9, double 2.000000e+00)
%12 = fmul double %11, 5.000000e-01
br label %13
13: ; preds = %8, %4
%14 = phi double [ %7, %4 ], [ %12, %8 ]
ret double %14
}
void argv_free(char **argv) {
  free(*argv);
  free(argv);
}


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

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

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

LLVM IR (-O2):
define void @argv_free(i8** nocapture %0) {
%2 = load i8*, i8** %0
tail call void @free(i8* %2)
%3 = bitcast i8** %0 to i8*
tail call void @free(i8* %3)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ mouseMotionWithButtons(int, int);
void mousePopUpMotionFunc(int mousePositionX, int mousePositionY) {
  mouseMotionWithButtons(mousePositionX, mousePositionY);
}


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

x86 assembly (clang, -O2):
<mousePopUpMotionFunc>:
jmp    1030 <mouseMotionWithButtons@plt>

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

LLVM IR (-O2):
define void @mousePopUpMotionFunc(i32 %0, i32 %1) {
%3 = tail call i32 @mouseMotionWithButtons(i32 %0, i32 %1)
ret void
}
void blackout(unsigned char *tab) {
  unsigned int i;
  for (i = 0; i < 200 * 200; i++)
    tab[i] = 0;
}


x86 assembly (clang, -O0):
<blackout>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x9c40,-0xc(%rbp)
jae    1135 <blackout+0x35>
mov    -0x8(%rbp),%rax
mov    -0xc(%rbp),%ecx
movb   $0x0,(%rax,%rcx,1)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    110f <blackout+0xf>
pop    %rbp
ret

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

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

LLVM IR (-O2):
define void @blackout(i8* nocapture writeonly %0) {
ret void
}
void foo144(int p) {}


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

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

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

LLVM IR (-O2):
define void @foo144(i32 %0) {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ time_t;
struct tm {
  int tm_hour;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct tm *);
struct tm *getLocalTime(int /*<<< orphan*/ *);
int getHour() {
  struct tm *mytime;
  int hour = 0;
  mytime = getLocalTime((time_t *)NULL);
  hour = mytime->tm_hour;
  free(mytime);
  return hour;
}


x86 assembly (clang, -O0):
<getHour>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0xc(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1040 <getLocalTime@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getHour>:
push   %rbx
xor    %edi,%edi
call   1040 <getLocalTime@plt>
mov    (%rax),%ebx
mov    %rax,%rdi
call   1030 <free@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
%struct.tm = type { i32 }
define i32 @getHour() {
%1 = alloca %struct.tm*
%2 = alloca i32
store i32 0, i32* %2
%3 = call %struct.tm* @getLocalTime(i32* null)
store %struct.tm* %3, %struct.tm** %1
%4 = load %struct.tm*, %struct.tm** %1
%5 = getelementptr inbounds %struct.tm, %struct.tm* %4, i32 0, i32 0
%6 = load i32, i32* %5
store i32 %6, i32* %2
%7 = load %struct.tm*, %struct.tm** %1
%8 = call i32 @free(%struct.tm* %7)
%9 = load i32, i32* %2
ret i32 %9
}

LLVM IR (-O2):
%struct.tm = type { i32 }
define i32 @getHour() {
%1 = tail call %struct.tm* @getLocalTime(i32* null)
%2 = getelementptr inbounds %struct.tm, %struct.tm* %1, i64 0, i32 0
%3 = load i32, i32* %2
%4 = tail call i32 @free(%struct.tm* %1)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ free(void *);
void free_uvector(unsigned int *v, int nl, int nh) { free((void *)(v + nl)); }


x86 assembly (clang, -O0):
<free_uvector>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0xc(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<free_uvector>:
movslq %esi,%rax
lea    (%rdi,%rax,4),%rdi
jmp    1030 <free@plt>

LLVM IR (-O0):
define void @free_uvector(i32* %0, i32 %1, i32 %2) {
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i32
store i32* %0, i32** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i32*, i32** %4
%8 = load i32, i32* %5
%9 = sext i32 %8 to i64
%10 = getelementptr inbounds i32, i32* %7, i64 %9
%11 = bitcast i32* %10 to i8*
%12 = call i32 @free(i8* %11)
ret void
}

LLVM IR (-O2):
define void @free_uvector(i32* nocapture %0, i32 %1, i32 %2) {
%4 = sext i32 %1 to i64
%5 = getelementptr inbounds i32, i32* %0, i64 %4
%6 = bitcast i32* %5 to i8*
%7 = tail call i32 @free(i8* %6)
ret void
}
void av_read_image_line2() {}


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

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

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

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