xunge/DecIR huggingface dataset:
char *convert(char *s, int numRows) {
  char *result;
  return result;
}


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

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

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

LLVM IR (-O2):
define noalias i8* @convert(i8* nocapture readnone %0, i32 %1) {
ret i8* undef
}
int enable_dumpable(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @enable_dumpable() {
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
typedef int uint32_t;

/* Variables and functions */
int __simplePNG_get_crc(int, int /*<<< orphan*/ const *, size_t);
uint32_t __simplePNG_start_crc(uint8_t const *data, size_t size) {
  uint32_t crc = 0xffffffff;
  crc = __simplePNG_get_crc(crc, data, size);
  return crc;
}


x86 assembly (clang, -O0):
<__simplePNG_start_crc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0xffffffff,-0x14(%rbp)
mov    -0x14(%rbp),%edi
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
call   1030 <__simplePNG_get_crc@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__simplePNG_start_crc>:
mov    %rsi,%rdx
mov    %rdi,%rsi
mov    $0xffffffff,%edi
jmp    1030 <__simplePNG_get_crc@plt>

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

LLVM IR (-O2):
define i32 @__simplePNG_start_crc(i32* %0, i64 %1) {
%3 = tail call i32 @__simplePNG_get_crc(i32 -1, i32* %0, i64 %1)
ret i32 %3
}
/* Variables and functions */
int labs(long);
long randm(int);
long expr_armor_add_ac(long lev) { return (randm(labs(lev) / 20 + 1)); }


x86 assembly (clang, -O0):
<expr_armor_add_ac>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <labs@plt>
mov    $0x14,%ecx
cltd
idiv   %ecx
mov    %eax,%edi
add    $0x1,%edi
call   1040 <randm@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<expr_armor_add_ac>:
push   %rax
call   1030 <labs@plt>
cltq
imul   $0x66666667,%rax,%rax
mov    %rax,%rcx
sar    $0x23,%rcx
shr    $0x3f,%rax
lea    (%rcx,%rax,1),%edi
add    $0x1,%edi
pop    %rax
jmp    1040 <randm@plt>

LLVM IR (-O0):
define i64 @expr_armor_add_ac(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = call i32 @labs(i64 %3)
%5 = sdiv i32 %4, 20
%6 = add nsw i32 %5, 1
%7 = call i64 @randm(i32 %6)
ret i64 %7
}

LLVM IR (-O2):
define i64 @expr_armor_add_ac(i64 %0) {
%2 = tail call i32 @labs(i64 %0)
%3 = sdiv i32 %2, 20
%4 = add nsw i32 %3, 1
%5 = tail call i64 @randm(i32 %4)
ret i64 %5
}
/* Variables and functions */
int /*<<< orphan*/ srand(int /*<<< orphan*/);
void seed() { srand(0); }


x86 assembly (clang, -O0):
<seed>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
call   1030 <srand@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<seed>:
xor    %edi,%edi
jmp    1030 <srand@plt>

LLVM IR (-O0):
define void @seed() {
%1 = call i32 @srand(i32 0)
ret void
}

LLVM IR (-O2):
define void @seed() {
%1 = tail call i32 @srand(i32 0)
ret void
}
void sysfs_remove_group(struct kobject *x, struct attribute_group const *y) {
  return;
}


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

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

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

LLVM IR (-O2):
%struct.kobject = type opaque
%struct.attribute_group = type opaque
define void @sysfs_remove_group(%struct.kobject* nocapture %0, %struct.attribute_group* nocapture %1) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ subseqLex(int);
int main(void) {
  int n = 10;
  subseqLex(n);
}


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

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @subseqLex(i32 10)
ret i32 0
}
int minInt(int int1, int int2) { return (int1 < int2 ? int1 : int2); }


x86 assembly (clang, -O0):
<minInt>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1121 <minInt+0x21>
mov    -0x4(%rbp),%eax
mov    %eax,-0xc(%rbp)
jmp    1127 <minInt+0x27>
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<minInt>:
mov    %esi,%eax
cmp    %esi,%edi
cmovl  %edi,%eax
ret

LLVM IR (-O0):
define i32 @minInt(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 = icmp slt i32 %5, %6
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = load i32, i32* %3
br label %12
10: ; preds = %2
%11 = load i32, i32* %4
br label %12
12: ; preds = %10, %8
%13 = phi i32 [ %9, %8 ], [ %11, %10 ]
ret i32 %13
}

LLVM IR (-O2):
define i32 @minInt(i32 %0, i32 %1) {
%3 = icmp slt i32 %0, %1
%4 = select i1 %3, i32 %0, i32 %1
ret i32 %4
}
/* Type definitions */
typedef int /*<<< orphan*/ wchar_t;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int __infer_nondet_int();
int fwprintf(FILE *stream, const wchar_t *format, ...) {
  int res;
  res = __infer_nondet_int();
  if (res < 0)
    while (1)
      ;
  return res;
}


x86 assembly (clang, -O0):
<fwprintf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1030 <__infer_nondet_int@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    113e <fwprintf+0x2e>
jmp    1139 <fwprintf+0x29>
jmp    1139 <fwprintf+0x29>
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fwprintf>:
push   %rax
xor    %eax,%eax
call   1030 <__infer_nondet_int@plt>
test   %eax,%eax
js     1120 <fwprintf+0x10>
pop    %rcx
ret
xchg   %ax,%ax
jmp    1120 <fwprintf+0x10>

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

LLVM IR (-O2):
define i32 @fwprintf(i32* nocapture readnone %0, i32* nocapture readnone %1, ...) {
%3 = tail call i32 (...) @__infer_nondet_int()
%4 = icmp slt i32 %3, 0
br i1 %4, label %5, label %6
5: ; preds = %2, %5
br label %5
6: ; preds = %2
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int close_term(int consolefd) {
  if (consolefd > 0) {
    printf("Invalid console fd to close:%d\n", consolefd);
    return -1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<close_term>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jle    1140 <close_term+0x30>
mov    -0x8(%rbp),%esi
lea    0xed1(%rip),%rdi
call   1030 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1147 <close_term+0x37>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<close_term>:
test   %edi,%edi
jle    112d <close_term+0x1d>
push   %rax
mov    %edi,%esi
lea    0xee2(%rip),%rdi
call   1030 <printf@plt>
mov    $0xffffffff,%eax
add    $0x8,%rsp
ret
xor    %eax,%eax
ret

LLVM IR (-O0):
@.str = [32 x i8] c"Invalid console fd to close:%d\0A\00"
define i32 @close_term(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp sgt i32 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i32, i32* %3
%8 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i32 %7)
store i32 -1, i32* %2
br label %10
9: ; preds = %1
store i32 0, i32* %2
br label %10
10: ; preds = %9, %6
%11 = load i32, i32* %2
ret i32 %11
}

LLVM IR (-O2):
@.str = [32 x i8] c"Invalid console fd to close:%d\0A\00"
define i32 @close_term(i32 %0) {
%2 = icmp sgt i32 %0, 0
br i1 %2, label %3, label %5
3: ; preds = %1
%4 = tail call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i32 %0)
br label %5
5: ; preds = %1, %3
%6 = phi i32 [ -1, %3 ], [ 0, %1 ]
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ strlen(char const *);
scalar_t__ strncmp(char const *, char const *, int /*<<< orphan*/);
int str_starts_with(const char *str, const char *prefix) {
  return strncmp(str, prefix, strlen(prefix)) == 0;
}


x86 assembly (clang, -O0):
<str_starts_with>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x20(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    %eax,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<str_starts_with>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
mov    %rsi,%rdi
call   1040 <strlen@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1030 <strncmp@plt>
xor    %ecx,%ecx
test   %rax,%rax
sete   %cl
mov    %ecx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i32 @str_starts_with(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %3
%6 = load i8*, i8** %4
%7 = load i8*, i8** %4
%8 = call i32 @strlen(i8* %7)
%9 = call i64 @strncmp(i8* %5, i8* %6, i32 %8)
%10 = icmp eq i64 %9, 0
%11 = zext i1 %10 to i32
ret i32 %11
}

LLVM IR (-O2):
define i32 @str_starts_with(i8* %0, i8* %1) {
%3 = tail call i32 @strlen(i8* %1)
%4 = tail call i64 @strncmp(i8* %0, i8* %1, i32 %3)
%5 = icmp eq i64 %4, 0
%6 = zext i1 %5 to i32
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ bar();
int /*<<< orphan*/ foo();
void baz_1(int a, int b, int c) {
  if (a && b)
    foo();
  if (!b && c)
    bar();
}


x86 assembly (clang, -O0):
<baz_1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     114c <baz_1+0x2c>
cmpl   $0x0,-0x8(%rbp)
je     114c <baz_1+0x2c>
mov    $0x0,%al
call   1040 <foo@plt>
cmpl   $0x0,-0x8(%rbp)
jne    1167 <baz_1+0x47>
cmpl   $0x0,-0xc(%rbp)
je     1167 <baz_1+0x47>
mov    $0x0,%al
call   1030 <bar@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<baz_1>:
test   %edi,%edi
je     112f <baz_1+0xf>
test   %esi,%esi
je     112f <baz_1+0xf>
xor    %eax,%eax
jmp    1040 <foo@plt>
test   %esi,%esi
jne    113e <baz_1+0x1e>
test   %edx,%edx
je     113e <baz_1+0x1e>
xor    %eax,%eax
jmp    1030 <bar@plt>
ret

LLVM IR (-O0):
define void @baz_1(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 = icmp ne i32 %7, 0
br i1 %8, label %9, label %14
9: ; preds = %3
%10 = load i32, i32* %5
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %9
%13 = call i32 (...) @foo()
br label %14
14: ; preds = %12, %9, %3
%15 = load i32, i32* %5
%16 = icmp ne i32 %15, 0
br i1 %16, label %22, label %17
17: ; preds = %14
%18 = load i32, i32* %6
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %17
%21 = call i32 (...) @bar()
br label %22
22: ; preds = %20, %17, %14
ret void
}

LLVM IR (-O2):
define void @baz_1(i32 %0, i32 %1, i32 %2) {
%4 = icmp ne i32 %0, 0
%5 = icmp ne i32 %1, 0
%6 = and i1 %4, %5
br i1 %6, label %7, label %9
7: ; preds = %3
%8 = tail call i32 (...) @foo()
br label %15
9: ; preds = %3
%10 = icmp eq i32 %1, 0
%11 = icmp ne i32 %2, 0
%12 = and i1 %10, %11
br i1 %12, label %13, label %15
13: ; preds = %9
%14 = tail call i32 (...) @bar()
br label %15
15: ; preds = %7, %13, %9
ret void
}
/* Variables and functions */
int /*<<< orphan*/ assert_int_equal(int, int /*<<< orphan*/);
int /*<<< orphan*/ pawn_capture_targets(int, int, int);
void pawn_capture_targets_test(void **state) {
  assert_int_equal(
      0x0000000C00000000ul,
      pawn_capture_targets(0x000000001C000000ul, 0x0000100C00000000ul, 0));
  assert_int_equal(
      0x000000001C000000ul,
      pawn_capture_targets(0x0000100C00000000ul, 0x000000001C000000ul, 1));
}


x86 assembly (clang, -O0):
<pawn_capture_targets_test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x1c000000,%edi
xor    %edx,%edx
mov    %edx,%esi
call   1030 <pawn_capture_targets@plt>
mov    %eax,%esi
xor    %edi,%edi
call   1040 <assert_int_equal@plt>
xor    %edi,%edi
mov    $0x1c000000,%esi
mov    $0x1,%edx
call   1030 <pawn_capture_targets@plt>
mov    %eax,%esi
mov    $0x1c000000,%edi
call   1040 <assert_int_equal@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pawn_capture_targets_test>:
push   %rax
mov    $0x1c000000,%edi
xor    %esi,%esi
xor    %edx,%edx
call   1030 <pawn_capture_targets@plt>
xor    %edi,%edi
mov    %eax,%esi
call   1040 <assert_int_equal@plt>
xor    %edi,%edi
mov    $0x1c000000,%esi
mov    $0x1,%edx
call   1030 <pawn_capture_targets@plt>
mov    $0x1c000000,%edi
mov    %eax,%esi
pop    %rax
jmp    1040 <assert_int_equal@plt>

LLVM IR (-O0):
define void @pawn_capture_targets_test(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
%3 = call i32 @pawn_capture_targets(i32 469762048, i32 0, i32 0)
%4 = call i32 @assert_int_equal(i32 0, i32 %3)
%5 = call i32 @pawn_capture_targets(i32 0, i32 469762048, i32 1)
%6 = call i32 @assert_int_equal(i32 469762048, i32 %5)
ret void
}

LLVM IR (-O2):
define void @pawn_capture_targets_test(i8** nocapture readnone %0) {
%2 = tail call i32 @pawn_capture_targets(i32 469762048, i32 0, i32 0)
%3 = tail call i32 @assert_int_equal(i32 0, i32 %2)
%4 = tail call i32 @pawn_capture_targets(i32 0, i32 469762048, i32 1)
%5 = tail call i32 @assert_int_equal(i32 469762048, i32 %4)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ newFunction_(char *);
int main(int argc, char **argv) {
  char str[50];
  newFunction_(str);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x50(%rbp),%rdi
call   1030 <newFunction_@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x38,%rsp
mov    %rsp,%rdi
call   1030 <newFunction_@plt>
xor    %eax,%eax
add    $0x38,%rsp
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = alloca [50 x i8]
store i32 %0, i32* %3
store i8** %1, i8*** %4
%6 = getelementptr inbounds [50 x i8], [50 x i8]* %5, i64 0, i64 0
%7 = call i32 @newFunction_(i8* %6)
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [50 x i8]
%4 = getelementptr inbounds [50 x i8], [50 x i8]* %3, i64 0, i64 0
%5 = call i32 @newFunction_(i8* %4)
ret i32 0
}
/* Type definitions */
struct stat {
  int /*<<< orphan*/ st_mode;
};

/* Variables and functions */
scalar_t__ S_ISDIR(int /*<<< orphan*/);
scalar_t__ stat(char const *, struct stat *);
int _dr_path_is_dir(const char *pathname) {
  struct stat statbuf;
  if (stat(pathname, &statbuf) < 0)
    return 0;
  return S_ISDIR(statbuf.st_mode) != 0;
}


x86 assembly (clang, -O0):
<_dr_path_is_dir>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x18(%rbp),%rsi
call   1040 <stat@plt>
cmp    $0x0,%rax
jge    114f <_dr_path_is_dir+0x2f>
movl   $0x0,-0x4(%rbp)
jmp    1166 <_dr_path_is_dir+0x46>
mov    -0x18(%rbp),%edi
call   1030 <S_ISDIR@plt>
cmp    $0x0,%rax
setne  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_dr_path_is_dir>:
push   %rax
mov    %rsp,%rsi
call   1040 <stat@plt>
test   %rax,%rax
js     1143 <_dr_path_is_dir+0x23>
mov    (%rsp),%edi
call   1030 <S_ISDIR@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
setne  %al
pop    %rcx
ret
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.stat = type { i32 }
define i32 @_dr_path_is_dir(i8* %0) {
%2 = alloca i32
%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 i32 0, i32* %2
br label %15
9: ; preds = %1
%10 = getelementptr inbounds %struct.stat, %struct.stat* %4, i32 0, i32 0
%11 = load i32, i32* %10
%12 = call i64 @S_ISDIR(i32 %11)
%13 = icmp ne i64 %12, 0
%14 = zext i1 %13 to i32
store i32 %14, i32* %2
br label %15
15: ; preds = %9, %8
%16 = load i32, i32* %2
ret i32 %16
}

LLVM IR (-O2):
%struct.stat = type { i32 }
define i32 @_dr_path_is_dir(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
br i1 %5, label %12, label %6
6: ; preds = %1
%7 = getelementptr inbounds %struct.stat, %struct.stat* %2, i64 0, i32 0
%8 = load i32, i32* %7
%9 = call i64 @S_ISDIR(i32 %8)
%10 = icmp ne i64 %9, 0
%11 = zext i1 %10 to i32
br label %12
12: ; preds = %1, %6
%13 = phi i32 [ %11, %6 ], [ 0, %1 ]
ret i32 %13
}
void bar(int foo[3]) {
  int *x = foo;
  printf("size of foo from bar: %lu\n", sizeof(x));
}


x86 assembly (clang, -O0):
<bar>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
lea    0xed5(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bar>:
lea    0xee9(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [27 x i8] c"size of foo from bar: %lu\0A\00"
define void @bar(i32* %0) {
%2 = alloca i32*
%3 = alloca i32*
store i32* %0, i32** %2
%4 = load i32*, i32** %2
store i32* %4, i32** %3
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i64 8)
ret void
}

LLVM IR (-O2):
@.str = [27 x i8] c"size of foo from bar: %lu\0A\00"
define void @bar(i32* nocapture readnone %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i64 8)
ret void
}
void vgSetPaint(VGPaint, VGbitfield) {}


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

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

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

LLVM IR (-O2):
define void @vgSetPaint(i32 %0, i32 %1) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ my_malloc_and_free(void **);
void *test_double_action_call() {
  void *buf;
  my_malloc_and_free(&buf);
  return buf;
}


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

x86 assembly (clang, -O2):
<test_double_action_call>:
push   %rax
mov    %rsp,%rdi
call   1030 <my_malloc_and_free@plt>
mov    (%rsp),%rax
pop    %rcx
ret

LLVM IR (-O0):
define i8* @test_double_action_call() {
%1 = alloca i8*
%2 = call i32 @my_malloc_and_free(i8** %1)
%3 = load i8*, i8** %1
ret i8* %3
}

LLVM IR (-O2):
define i8* @test_double_action_call() {
%1 = alloca i8*
%2 = bitcast i8** %1 to i8*
%3 = call i32 @my_malloc_and_free(i8** %1)
%4 = load i8*, i8** %1
ret i8* %4
}
/* Variables and functions */
int /*<<< orphan*/ detab(char *, char *);
int my_getline(char *, int);
int /*<<< orphan*/ printf(char *, char *);
int main() {
  int len;
  char line[1000];
  char line_detabbed[1000];
  while ((len = my_getline(line, 1000)) > 0) {
    detab(line, line_detabbed);
    printf("%s", line_detabbed);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x7e0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x3f0(%rbp),%rdi
mov    $0x3e8,%esi
call   1050 <my_getline@plt>
mov    %eax,-0x8(%rbp)
cmp    $0x0,%eax
jle    118a <main+0x5a>
lea    -0x3f0(%rbp),%rdi
lea    -0x7e0(%rbp),%rsi
call   1030 <detab@plt>
lea    -0x7e0(%rbp),%rsi
lea    0xe80(%rip),%rdi
call   1040 <printf@plt>
jmp    1142 <main+0x12>
xor    %eax,%eax
add    $0x7e0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x7e0,%rsp
mov    %rsp,%rdi
mov    $0x3e8,%esi
call   1050 <my_getline@plt>
test   %eax,%eax
jle    1187 <main+0x57>
mov    %rsp,%r14
lea    0x3f0(%rsp),%rbx
lea    0xea1(%rip),%r15
nop
mov    %r14,%rdi
mov    %rbx,%rsi
call   1030 <detab@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
mov    %r14,%rdi
mov    $0x3e8,%esi
call   1050 <my_getline@plt>
test   %eax,%eax
jg     1160 <main+0x30>
xor    %eax,%eax
add    $0x7e0,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%s\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [1000 x i8]
%4 = alloca [1000 x i8]
store i32 0, i32* %1
br label %5
5: ; preds = %9, %0
%6 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%7 = call i32 @my_getline(i8* %6, i32 1000)
store i32 %7, i32* %2
%8 = icmp sgt i32 %7, 0
br i1 %8, label %9, label %15
9: ; preds = %5
%10 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
%11 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%12 = call i32 @detab(i8* %10, i8* %11)
%13 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%14 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %13)
br label %5
15: ; preds = %5
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
define i32 @main() {
%1 = alloca [1000 x i8]
%2 = alloca [1000 x i8]
%3 = getelementptr inbounds [1000 x i8], [1000 x i8]* %1, i64 0, i64 0
%4 = getelementptr inbounds [1000 x i8], [1000 x i8]* %2, i64 0, i64 0
%5 = call i32 @my_getline(i8* %3, i32 1000)
%6 = icmp sgt i32 %5, 0
br i1 %6, label %7, label %12
7: ; preds = %0, %7
%8 = call i32 @detab(i8* %3, i8* %4)
%9 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %4)
%10 = call i32 @my_getline(i8* %3, i32 1000)
%11 = icmp sgt i32 %10, 0
br i1 %11, label %7, label %12
12: ; preds = %7, %0
ret i32 0
}
char *strcat2(char *dst, const char *src) {
  int c;
  char *dstSave = dst;
  while (*dst)
    ++dst;
  do {
    c = *dst++ = *src++;
  } while (c);
  return dstSave;
}


x86 assembly (clang, -O0):
<strcat2>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%rax
cmpb   $0x0,(%rax)
je     1132 <strcat2+0x32>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    1114 <strcat2+0x14>
jmp    1137 <strcat2+0x37>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
mov    (%rax),%al
mov    -0x8(%rbp),%rcx
mov    %rcx,%rdx
add    $0x1,%rdx
mov    %rdx,-0x8(%rbp)
mov    %al,(%rcx)
movsbl %al,%eax
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jne    1137 <strcat2+0x37>
mov    -0x20(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<strcat2>:
mov    %rdi,%rax
mov    %rdi,%rcx
cs nopw 0x0(%rax,%rax,1)
cmpb   $0x0,(%rcx)
lea    0x1(%rcx),%rcx
jne    1110 <strcat2+0x10>
xor    %edx,%edx
nopl   0x0(%rax,%rax,1)
movzbl (%rsi,%rdx,1),%edi
mov    %dil,-0x1(%rcx,%rdx,1)
add    $0x1,%rdx
test   %dil,%dil
jne    1120 <strcat2+0x20>
ret

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

LLVM IR (-O2):
define i8* @strcat2(i8* returned %0, i8* nocapture %1) {
br label %3
3: ; preds = %3, %2
%4 = phi i8* [ %0, %2 ], [ %7, %3 ]
%5 = load i8, i8* %4
%6 = icmp eq i8 %5, 0
%7 = getelementptr inbounds i8, i8* %4, i64 1
br i1 %6, label %8, label %3
8: ; preds = %3, %8
%9 = phi i8* [ %11, %8 ], [ %1, %3 ]
%10 = phi i8* [ %13, %8 ], [ %4, %3 ]
%11 = getelementptr inbounds i8, i8* %9, i64 1
%12 = load i8, i8* %9
%13 = getelementptr inbounds i8, i8* %10, i64 1
store i8 %12, i8* %10
%14 = icmp eq i8 %12, 0
br i1 %14, label %15, label %8
15: ; preds = %8
ret i8* %0
}
/* Variables and functions */
int /*<<< orphan*/ LedsP__Leds__led0Toggle();
void BaseStationUartC__Leds__led0Toggle(void) { LedsP__Leds__led0Toggle(); }


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

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

LLVM IR (-O0):
define void @BaseStationUartC__Leds__led0Toggle() {
%1 = call i32 (...) @LedsP__Leds__led0Toggle()
ret void
}

LLVM IR (-O2):
define void @BaseStationUartC__Leds__led0Toggle() {
%1 = tail call i32 (...) @LedsP__Leds__led0Toggle()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ cdoWarning(char *);
int cdf_openread(const char *filename) {
  int fileID = -1;
  cdoWarning("netCDF support not compiled in!");
  return (fileID);
}


x86 assembly (clang, -O0):
<cdf_openread>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0xffffffff,-0xc(%rbp)
lea    0xed6(%rip),%rdi
call   1030 <cdoWarning@plt>
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cdf_openread>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <cdoWarning@plt>
mov    $0xffffffff,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [32 x i8] c"netCDF support not compiled in!\00"
define i32 @cdf_openread(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
store i8* %0, i8** %2
store i32 -1, i32* %3
%4 = call i32 @cdoWarning(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%5 = load i32, i32* %3
ret i32 %5
}

LLVM IR (-O2):
@.str = [32 x i8] c"netCDF support not compiled in!\00"
define i32 @cdf_openread(i8* nocapture readnone %0) {
%2 = tail call i32 @cdoWarning(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
ret i32 -1
}
/* Variables and functions */
int lgamma(double);
double alhood(double a, double ss, int D, int K) {
  return (D * (lgamma(K * a) - K * lgamma(a)) + (a - 1) * ss);
}


x86 assembly (clang, -O0):
<alhood>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
mov    %edi,-0x14(%rbp)
mov    %esi,-0x18(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x1c(%rbp)
cvtsi2sdl -0x18(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
call   1030 <lgamma@plt>
mov    %eax,-0x20(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x24(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1030 <lgamma@plt>
mov    -0x24(%rbp),%edx
mov    -0x20(%rbp),%ecx
mov    %eax,%esi
mov    -0x1c(%rbp),%eax
imul   %esi,%edx
sub    %edx,%ecx
imul   %ecx,%eax
cvtsi2sd %eax,%xmm1
movsd  -0x8(%rbp),%xmm0
movsd  0xe8c(%rip),%xmm2
subsd  %xmm2,%xmm0
movsd  -0x10(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<alhood>:
push   %rbp
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    %esi,%ebx
mov    %edi,%r14d
movsd  %xmm1,0x8(%rsp)
movapd %xmm0,%xmm1
movsd  %xmm0,(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sd %esi,%xmm0
mulsd  %xmm1,%xmm0
call   1030 <lgamma@plt>
mov    %eax,%ebp
movsd  (%rsp),%xmm0
call   1030 <lgamma@plt>
imul   %ebx,%eax
sub    %eax,%ebp
imul   %r14d,%ebp
xorps  %xmm1,%xmm1
cvtsi2sd %ebp,%xmm1
movsd  (%rsp),%xmm0
addsd  0xe9b(%rip),%xmm0
mulsd  0x8(%rsp),%xmm0
addsd  %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define double @alhood(double %0, double %1, i32 %2, i32 %3) {
%5 = alloca double
%6 = alloca double
%7 = alloca i32
%8 = alloca i32
store double %0, double* %5
store double %1, double* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = load i32, i32* %7
%10 = load i32, i32* %8
%11 = sitofp i32 %10 to double
%12 = load double, double* %5
%13 = fmul double %11, %12
%14 = call i32 @lgamma(double %13)
%15 = load i32, i32* %8
%16 = load double, double* %5
%17 = call i32 @lgamma(double %16)
%18 = mul nsw i32 %15, %17
%19 = sub nsw i32 %14, %18
%20 = mul nsw i32 %9, %19
%21 = sitofp i32 %20 to double
%22 = load double, double* %5
%23 = fsub double %22, 1.000000e+00
%24 = load double, double* %6
%25 = call double @llvm.fmuladd.f64(double %23, double %24, double %21)
ret double %25
}

LLVM IR (-O2):
define double @alhood(double %0, double %1, i32 %2, i32 %3) {
%5 = sitofp i32 %3 to double
%6 = fmul double %5, %0
%7 = tail call i32 @lgamma(double %6)
%8 = tail call i32 @lgamma(double %0)
%9 = mul nsw i32 %8, %3
%10 = sub nsw i32 %7, %9
%11 = mul nsw i32 %10, %2
%12 = sitofp i32 %11 to double
%13 = fadd double %0, -1.000000e+00
%14 = tail call double @llvm.fmuladd.f64(double %13, double %1, double %12)
ret double %14
}
/* Variables and functions */
int /*<<< orphan*/ recurser_void1(int);
int /*<<< orphan*/ track(int);
void __attribute__((no)) recurser_void2(int n) {
  if (n == 0 || n == 7 || n == 8)
    track(n);
  if (n == 10)
    return;
  recurser_void1(n + 1);
}


x86 assembly (clang, -O0):
<recurser_void2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     1149 <recurser_void2+0x29>
cmpl   $0x7,-0x4(%rbp)
je     1149 <recurser_void2+0x29>
cmpl   $0x8,-0x4(%rbp)
jne    1151 <recurser_void2+0x31>
mov    -0x4(%rbp),%edi
call   1040 <track@plt>
cmpl   $0xa,-0x4(%rbp)
jne    1160 <recurser_void2+0x40>
jmp    116b <recurser_void2+0x4b>
mov    -0x4(%rbp),%edi
add    $0x1,%edi
call   1030 <recurser_void1@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<recurser_void2>:
push   %rbx
mov    %edi,%ebx
lea    -0x7(%rbx),%eax
cmp    $0x2,%eax
jb     1134 <recurser_void2+0x14>
cmp    $0xa,%ebx
je     1146 <recurser_void2+0x26>
test   %ebx,%ebx
jne    113b <recurser_void2+0x1b>
mov    %ebx,%edi
call   1040 <track@plt>
add    $0x1,%ebx
mov    %ebx,%edi
pop    %rbx
jmp    1030 <recurser_void1@plt>
pop    %rbx
ret

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

LLVM IR (-O2):
define void @recurser_void2(i32 %0) {
switch i32 %0, label %4 [
i32 8, label %2
i32 7, label %2
i32 0, label %2
i32 10, label %7
]
2: ; preds = %1, %1, %1
%3 = tail call i32 @track(i32 %0)
br label %4
4: ; preds = %2, %1
%5 = add nsw i32 %0, 1
%6 = tail call i32 @recurser_void1(i32 %5)
br label %7
7: ; preds = %1, %4
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int EXIT_SUCCESS;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char const *);
int /*<<< orphan*/ *stderr;
int /*<<< orphan*/ *stdout;
void helpAndLeave(const char *progname, int status) {
  FILE *stream = stderr;
  if (status == EXIT_SUCCESS)
    stream = stdout;
  fprintf(stream, "Usage: %s <line> <name> <host> [wtmp_file]\n", progname);
  exit(status);
}


x86 assembly (clang, -O0):
<helpAndLeave>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    0x2eaa(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0xc(%rbp),%eax
mov    0x2e89(%rip),%rcx
cmp    (%rcx),%eax
jne    115d <helpAndLeave+0x3d>
mov    0x2e82(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%rdx
lea    0xe94(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0xc(%rbp),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<helpAndLeave>:
push   %rbx
mov    %esi,%ebx
mov    %rdi,%rdx
mov    0x2ea3(%rip),%rax
cmp    %esi,(%rax)
jne    113a <helpAndLeave+0x1a>
mov    0x2ea0(%rip),%rax
jmp    1141 <helpAndLeave+0x21>
mov    0x2e9f(%rip),%rax
mov    (%rax),%rdi
lea    0xeb5(%rip),%rsi
call   1030 <fprintf@plt>
mov    %ebx,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32* null
@EXIT_SUCCESS = global i32 0
@stdout = global i32* null
@.str = [44 x i8] c"Usage: %s <line> <name> <host> [wtmp_file]\0A\00"
define void @helpAndLeave(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i32*
store i8* %0, i8** %3
store i32 %1, i32* %4
%6 = load i32*, i32** @stderr
store i32* %6, i32** %5
%7 = load i32, i32* %4
%8 = load i32, i32* @EXIT_SUCCESS
%9 = icmp eq i32 %7, %8
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = load i32*, i32** @stdout
store i32* %11, i32** %5
br label %12
12: ; preds = %10, %2
%13 = load i32*, i32** %5
%14 = load i8*, i8** %3
%15 = call i32 @fprintf(i32* %13, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), i8* %14)
%16 = load i32, i32* %4
%17 = call i32 @exit(i32 %16)
unreachable
}

LLVM IR (-O2):
@stderr = global i32* null
@EXIT_SUCCESS = global i32 0
@stdout = global i32* null
@.str = [44 x i8] c"Usage: %s <line> <name> <host> [wtmp_file]\0A\00"
define void @helpAndLeave(i8* %0, i32 %1) {
%3 = load i32, i32* @EXIT_SUCCESS
%4 = icmp eq i32 %3, %1
%5 = load i32*, i32** @stdout
%6 = load i32*, i32** @stderr
%7 = select i1 %4, i32* %5, i32* %6
%8 = tail call i32 @fprintf(i32* %7, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), i8* %0)
%9 = tail call i32 @exit(i32 %1)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ jhc_print_profile();
int /*<<< orphan*/ stdout;
void __attribute__((noreturn)) __attribute__((unused)) jhc_exit(int n) {
  fflush(stdout);
  jhc_print_profile();
  exit(n);
}


x86 assembly (clang, -O0):
<jhc_exit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    0x2e9e(%rip),%rax
mov    (%rax),%edi
call   1030 <fflush@plt>
mov    $0x0,%al
call   1040 <jhc_print_profile@plt>
mov    -0x4(%rbp),%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<jhc_exit>:
push   %rbx
mov    %edi,%ebx
mov    0x2ea6(%rip),%rax
mov    (%rax),%edi
call   1030 <fflush@plt>
xor    %eax,%eax
call   1040 <jhc_print_profile@plt>
mov    %ebx,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@stdout = global i32 0
define void @jhc_exit(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* @stdout
%4 = call i32 @fflush(i32 %3)
%5 = call i32 (...) @jhc_print_profile()
%6 = load i32, i32* %2
%7 = call i32 @exit(i32 %6)
unreachable
}

LLVM IR (-O2):
@stdout = global i32 0
define void @jhc_exit(i32 %0) {
%2 = load i32, i32* @stdout
%3 = tail call i32 @fflush(i32 %2)
%4 = tail call i32 (...) @jhc_print_profile()
%5 = tail call i32 @exit(i32 %0)
unreachable
}
/* Variables and functions */
unsigned int nraise0(unsigned int, int);
unsigned int nraise(unsigned int k) { return nraise0(k, 1); }


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

x86 assembly (clang, -O2):
<nraise>:
mov    $0x1,%esi
jmp    1030 <nraise0@plt>

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

LLVM IR (-O2):
define i32 @nraise(i32 %0) {
%2 = tail call i32 @nraise0(i32 %0, i32 1)
ret i32 %2
}
int IsSpace(char C) {
  return (C == ' ' || C == '\n' || C == '\r' || C == '\t' || C == '\v' ||
          C == '\f');
}


x86 assembly (clang, -O0):
<IsSpace>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x20,%ecx
mov    %al,-0x2(%rbp)
je     1171 <IsSpace+0x71>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0xa,%ecx
mov    %al,-0x2(%rbp)
je     1171 <IsSpace+0x71>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0xd,%ecx
mov    %al,-0x2(%rbp)
je     1171 <IsSpace+0x71>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x9,%ecx
mov    %al,-0x2(%rbp)
je     1171 <IsSpace+0x71>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0xb,%ecx
mov    %al,-0x2(%rbp)
je     1171 <IsSpace+0x71>
movsbl -0x1(%rbp),%eax
cmp    $0xc,%eax
sete   %al
mov    %al,-0x2(%rbp)
mov    -0x2(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<IsSpace>:
cmp    $0x20,%dil
ja     1120 <IsSpace+0x20>
mov    $0x1,%eax
movzbl %dil,%ecx
movabs $0x100002e00,%rdx
bt     %rcx,%rdx
jae    1120 <IsSpace+0x20>
ret
xor    %eax,%eax
cmp    $0xc,%dil
sete   %al
ret

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

LLVM IR (-O2):
define i32 @IsSpace(i8 signext %0) {
switch i8 %0, label %2 [
i8 32, label %5
i8 13, label %5
i8 11, label %5
i8 10, label %5
i8 9, label %5
]
2: ; preds = %1
%3 = icmp eq i8 %0, 12
%4 = zext i1 %3 to i32
br label %5
5: ; preds = %1, %1, %1, %1, %1, %2
%6 = phi i32 [ 1, %1 ], [ %4, %2 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ]
ret i32 %6
}
int foo(long int i) { return ((int)((unsigned long)(i + 1) * 4)) / 4; }


x86 assembly (clang, -O0):
<foo>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x1,%rax
shl    $0x2,%rax
mov    $0x4,%ecx
cltd
idiv   %ecx
pop    %rbp
ret

x86 assembly (clang, -O2):
<foo>:
lea    0x4(,%rdi,4),%ecx
lea    0x7(,%rdi,4),%eax
test   %ecx,%ecx
cmovns %ecx,%eax
sar    $0x2,%eax
ret

LLVM IR (-O0):
define i32 @foo(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = add nsw i64 %3, 1
%5 = mul i64 %4, 4
%6 = trunc i64 %5 to i32
%7 = sdiv i32 %6, 4
ret i32 %7
}

LLVM IR (-O2):
define i32 @foo(i64 %0) {
%2 = trunc i64 %0 to i32
%3 = shl i32 %2, 2
%4 = add i32 %3, 4
%5 = sdiv i32 %4, 4
ret i32 %5
}
/* Type definitions */
typedef int /*<<< orphan*/ file_short;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int fread(char *, int, int, int /*<<< orphan*/ *);
int read_short(unsigned short *shortp, FILE *file) {
  unsigned char file_short[2];
  if (fread((char *)file_short, (int)sizeof(file_short), 1, file) != 1)
    return 0;
  *shortp = file_short[0] * 256 + file_short[1];
  return 1;
}


x86 assembly (clang, -O0):
<read_short>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
lea    -0x1a(%rbp),%rdi
mov    -0x18(%rbp),%rcx
mov    $0x2,%esi
mov    $0x1,%edx
call   1030 <fread@plt>
cmp    $0x1,%eax
je     114c <read_short+0x3c>
movl   $0x0,-0x4(%rbp)
jmp    116a <read_short+0x5a>
movzbl -0x1a(%rbp),%eax
shl    $0x8,%eax
movzbl -0x19(%rbp),%ecx
add    %ecx,%eax
mov    %ax,%cx
mov    -0x10(%rbp),%rax
mov    %cx,(%rax)
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<read_short>:
push   %rbx
sub    $0x10,%rsp
mov    %rsi,%rcx
mov    %rdi,%rbx
lea    0xe(%rsp),%rdi
mov    $0x2,%esi
mov    $0x1,%edx
call   1030 <fread@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0x1,%ecx
jne    1149 <read_short+0x39>
movzwl 0xe(%rsp),%eax
rol    $0x8,%ax
mov    %ax,(%rbx)
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define i32 @read_short(i16* %0, i32* %1) {
%3 = alloca i32
%4 = alloca i16*
%5 = alloca i32*
%6 = alloca [2 x i8]
store i16* %0, i16** %4
store i32* %1, i32** %5
%7 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 0
%8 = load i32*, i32** %5
%9 = call i32 @fread(i8* %7, i32 2, i32 1, i32* %8)
%10 = icmp ne i32 %9, 1
br i1 %10, label %11, label %12
11: ; preds = %2
store i32 0, i32* %3
br label %23
12: ; preds = %2
%13 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 0
%14 = load i8, i8* %13
%15 = zext i8 %14 to i32
%16 = mul nsw i32 %15, 256
%17 = getelementptr inbounds [2 x i8], [2 x i8]* %6, i64 0, i64 1
%18 = load i8, i8* %17
%19 = zext i8 %18 to i32
%20 = add nsw i32 %16, %19
%21 = trunc i32 %20 to i16
%22 = load i16*, i16** %4
store i16 %21, i16* %22
store i32 1, i32* %3
br label %23
23: ; preds = %12, %11
%24 = load i32, i32* %3
ret i32 %24
}

LLVM IR (-O2):
define i32 @read_short(i16* nocapture writeonly %0, i32* nocapture %1) {
%3 = alloca [2 x i8]
%4 = getelementptr inbounds [2 x i8], [2 x i8]* %3, i64 0, i64 0
%5 = call i32 @fread(i8* %4, i32 2, i32 1, i32* %1)
%6 = icmp eq i32 %5, 1
br i1 %6, label %7, label %15
7: ; preds = %2
%8 = load i8, i8* %4
%9 = zext i8 %8 to i16
%10 = shl nuw i16 %9, 8
%11 = getelementptr inbounds [2 x i8], [2 x i8]* %3, i64 0, i64 1
%12 = load i8, i8* %11
%13 = zext i8 %12 to i16
%14 = or i16 %10, %13
store i16 %14, i16* %0
br label %15
15: ; preds = %2, %7
%16 = phi i32 [ 1, %7 ], [ 0, %2 ]
ret i32 %16
}
/* Variables and functions */
int /*<<< orphan*/ test_normal_queue();
int main() {
  test_normal_queue();
  return 0;
}


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

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

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @test_normal_queue()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @test_normal_queue()
ret i32 0
}
unsigned addval_330(unsigned x) { return x + 3281043849U; }


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

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

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

LLVM IR (-O2):
define i32 @addval_330(i32 %0) {
%2 = add i32 %0, -1013923447
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ set_word_value(int /*<<< orphan*/, int);
int /*<<< orphan*/ vector_pi(int *, int);
void vector_set(int *vec, int i, int val) {
  set_word_value(vector_pi(vec, i), val);
}


x86 assembly (clang, -O0):
<vector_set>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
call   1030 <vector_pi@plt>
mov    %eax,%edi
mov    -0x10(%rbp),%esi
call   1040 <set_word_value@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<vector_set>:
push   %rbx
mov    %edx,%ebx
call   1030 <vector_pi@plt>
mov    %eax,%edi
mov    %ebx,%esi
pop    %rbx
jmp    1040 <set_word_value@plt>

LLVM IR (-O0):
define void @vector_set(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 = call i32 @vector_pi(i32* %7, i32 %8)
%10 = load i32, i32* %6
%11 = call i32 @set_word_value(i32 %9, i32 %10)
ret void
}

LLVM IR (-O2):
define void @vector_set(i32* %0, i32 %1, i32 %2) {
%4 = tail call i32 @vector_pi(i32* %0, i32 %1)
%5 = tail call i32 @set_word_value(i32 %4, i32 %2)
ret void
}
void __dummy__(void) {}


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

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

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

LLVM IR (-O2):
define void @__dummy__() {
ret void
}
int sfx_pcm_available() { return 1; }


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

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

LLVM IR (-O0):
define i32 @sfx_pcm_available() {
ret i32 1
}

LLVM IR (-O2):
define i32 @sfx_pcm_available() {
ret i32 1
}