xunge/DecIR huggingface dataset:
int au_br_writable(int brperm) { return brperm & 1; }


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

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

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

LLVM IR (-O2):
define i32 @au_br_writable(i32 %0) {
%2 = and i32 %0, 1
ret i32 %2
}
/* Type definitions */
typedef scalar_t__ uint8_t;

/* Variables and functions */
size_t id3_v2_get_size(uint8_t *data) {
  int i;
  int size = 0;
  for (i = 0; i < 4; ++i) {
    size *= 128;
    size += data[i];
  }
  return size;
}


x86 assembly (clang, -O0):
<id3_v2_get_size>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x4,-0xc(%rbp)
jge    114d <id3_v2_get_size+0x4d>
mov    -0x10(%rbp),%eax
shl    $0x7,%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,8),%rcx
movslq -0x10(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1116 <id3_v2_get_size+0x16>
movslq -0x10(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<id3_v2_get_size>:
mov    (%rdi),%eax
shl    $0x7,%eax
add    0x8(%rdi),%eax
shl    $0x7,%eax
add    0x10(%rdi),%eax
shl    $0x7,%eax
add    0x18(%rdi),%eax
cltq
ret

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

LLVM IR (-O2):
define i64 @id3_v2_get_size(i64* nocapture %0) {
%2 = load i64, i64* %0
%3 = trunc i64 %2 to i32
%4 = shl nsw i32 %3, 7
%5 = getelementptr inbounds i64, i64* %0, i64 1
%6 = load i64, i64* %5
%7 = trunc i64 %6 to i32
%8 = add i32 %4, %7
%9 = shl nsw i32 %8, 7
%10 = getelementptr inbounds i64, i64* %0, i64 2
%11 = load i64, i64* %10
%12 = trunc i64 %11 to i32
%13 = add i32 %9, %12
%14 = shl nsw i32 %13, 7
%15 = getelementptr inbounds i64, i64* %0, i64 3
%16 = load i64, i64* %15
%17 = trunc i64 %16 to i32
%18 = add i32 %14, %17
%19 = sext i32 %18 to i64
ret i64 %19
}
/* Variables and functions */
int /*<<< orphan*/ abort();
int /*<<< orphan*/ printf(char *);
void _Unwind_Resume(void *x __attribute__((unused))) {
  printf("Call to _Unwind_Resume ... how are you using pthreads?\n");
  abort();
}


x86 assembly (clang, -O0):
<_Unwind_Resume>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xecd(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1030 <abort@plt>

x86 assembly (clang, -O2):
<_Unwind_Resume>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
@.str = [56 x i8] c"Call to _Unwind_Resume ... how are you using pthreads?\0A\00"
define void @_Unwind_Resume(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0))
%4 = call i32 (...) @abort()
unreachable
}

LLVM IR (-O2):
@str = [55 x i8] c"Call to _Unwind_Resume ... how are you using pthreads?\00"
define void @_Unwind_Resume(i8* nocapture readnone %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 (...) @abort()
unreachable
}
void pm_dev_idle(struct pm_dev *dev) {}


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

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

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

LLVM IR (-O2):
%struct.pm_dev = type opaque
define void @pm_dev_idle(%struct.pm_dev* nocapture %0) {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint64_t;
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ rgph_u32x3_jenkins2v_data64(int /*<<< orphan*/ const *,
                                               size_t, uintptr_t,
                                               int /*<<< orphan*/ *);
void rgph_u32x3_jenkins2v_u64a(const uint64_t *key, size_t len, uintptr_t seed,
                               uint32_t *h) {
  rgph_u32x3_jenkins2v_data64(key, len, seed, h);
}


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

x86 assembly (clang, -O2):
<rgph_u32x3_jenkins2v_u64a>:
jmp    1030 <rgph_u32x3_jenkins2v_data64@plt>

LLVM IR (-O0):
define void @rgph_u32x3_jenkins2v_u64a(i32* %0, i64 %1, i64 %2, i32* %3) {
%5 = alloca i32*
%6 = alloca i64
%7 = alloca i64
%8 = alloca i32*
store i32* %0, i32** %5
store i64 %1, i64* %6
store i64 %2, i64* %7
store i32* %3, i32** %8
%9 = load i32*, i32** %5
%10 = load i64, i64* %6
%11 = load i64, i64* %7
%12 = load i32*, i32** %8
%13 = call i32 @rgph_u32x3_jenkins2v_data64(i32* %9, i64 %10, i64 %11, i32* %12)
ret void
}

LLVM IR (-O2):
define void @rgph_u32x3_jenkins2v_u64a(i32* %0, i64 %1, i64 %2, i32* %3) {
%5 = tail call i32 @rgph_u32x3_jenkins2v_data64(i32* %0, i64 %1, i64 %2, i32* %3)
ret void
}
/* Type definitions */
struct instrument {
  int dummy;
};

/* Variables and functions */
int inst_qryint(struct instrument *, char *);
int inst_488_2_sre(struct instrument *gd) { return inst_qryint(gd, "*SRE?\n"); }


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

x86 assembly (clang, -O2):
<inst_488_2_sre>:
lea    0xee9(%rip),%rsi
jmp    1030 <inst_qryint@plt>

LLVM IR (-O0):
%struct.instrument = type { i32 }
@.str = [7 x i8] c"*SRE?\0A\00"
define i32 @inst_488_2_sre(%struct.instrument* %0) {
%2 = alloca %struct.instrument*
store %struct.instrument* %0, %struct.instrument** %2
%3 = load %struct.instrument*, %struct.instrument** %2
%4 = call i32 @inst_qryint(%struct.instrument* %3, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
ret i32 %4
}

LLVM IR (-O2):
%struct.instrument = type { i32 }
@.str = [7 x i8] c"*SRE?\0A\00"
define i32 @inst_488_2_sre(%struct.instrument* %0) {
%2 = tail call i32 @inst_qryint(%struct.instrument* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ EX_USAGE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
void emit_help(void) {
  fputs("Usage: llcount [-x] [file|-]\n", stderr);
  exit(EX_USAGE);
}


x86 assembly (clang, -O0):
<emit_help>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ead(%rip),%rax
mov    (%rax),%esi
lea    0xecc(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2ea8(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<emit_help>:
push   %rax
mov    0x2eb0(%rip),%rax
mov    (%rax),%esi
lea    0xecf(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2eab(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [30 x i8] c"Usage: llcount [-x] [file|-]\0A\00"
@stderr = global i32 0
@EX_USAGE = global i32 0
define void @emit_help() {
%1 = load i32, i32* @stderr
%2 = call i32 @fputs(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = load i32, i32* @EX_USAGE
%4 = call i32 @exit(i32 %3)
unreachable
}

LLVM IR (-O2):
@.str = [30 x i8] c"Usage: llcount [-x] [file|-]\0A\00"
@stderr = global i32 0
@EX_USAGE = global i32 0
define void @emit_help() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fputs(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = load i32, i32* @EX_USAGE
%4 = tail call i32 @exit(i32 %3)
unreachable
}
/* Variables and functions */
int islands(int **);
int /*<<< orphan*/ printf(char *, int);
void main() {
  int a[][5] = {{1, 0, 0, 0, 1},
                {1, 1, 0, 1, 0},
                {0, 0, 0, 0, 0},
                {1, 0, 1, 1, 0},
                {0, 0, 1, 1, 0}};
  int res = islands(a);
  printf("Number of islands is %d", res);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
lea    -0x70(%rbp),%rdi
lea    0xeba(%rip),%rsi
mov    $0x64,%edx
call   1050 <memcpy@plt>
lea    -0x70(%rbp),%rdi
call   1030 <islands@plt>
mov    %eax,-0x74(%rbp)
mov    -0x74(%rbp),%esi
lea    0xefe(%rip),%rdi
call   1040 <printf@plt>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x68,%rsp
mov    0xf36(%rip),%eax
mov    %eax,0x60(%rsp)
movaps 0xf1b(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xeff(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xee3(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xec7(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xeab(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xe8f(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rdi
call   1030 <islands@plt>
lea    0xee0(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
add    $0x68,%rsp
ret

LLVM IR (-O0):
@__const.main.a = [5 x [5 x i32]] [[5 x i32] [i32 1, i32 0, i32 0, i32 0, i32 1], [5 x i32] [i32 1, i32 1, i32 0, i32 1, i32 0], [5 x i32] zeroinitializer, [5 x i32] [i32 1, i32 0, i32 1, i32 1, i32 0], [5 x i32] [i32 0, i32 0, i32 1, i32 1, i32 0]]
@.str = [24 x i8] c"Number of islands is %d\00"
define void @main() {
%1 = alloca [5 x [5 x i32]]
%2 = alloca i32
%3 = bitcast [5 x [5 x i32]]* %1 to i8*
%4 = getelementptr inbounds [5 x [5 x i32]], [5 x [5 x i32]]* %1, i64 0, i64 0
%5 = bitcast [5 x i32]* %4 to i32**
%6 = call i32 @islands(i32** %5)
store i32 %6, i32* %2
%7 = load i32, i32* %2
%8 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 %7)
ret void
}

LLVM IR (-O2):
@__const.main.a = [5 x [5 x i32]] [[5 x i32] [i32 1, i32 0, i32 0, i32 0, i32 1], [5 x i32] [i32 1, i32 1, i32 0, i32 1, i32 0], [5 x i32] zeroinitializer, [5 x i32] [i32 1, i32 0, i32 1, i32 1, i32 0], [5 x i32] [i32 0, i32 0, i32 1, i32 1, i32 0]]
@.str = [24 x i8] c"Number of islands is %d\00"
define void @main() {
%1 = alloca [5 x [5 x i32]]
%2 = bitcast [5 x [5 x i32]]* %1 to i8*
%3 = bitcast [5 x [5 x i32]]* %1 to i32**
%4 = call i32 @islands(i32** %3)
%5 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 %4)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main() {
  int count = 0;
  while (count++ < 200)
    ;
  printf("count=%d\n", count);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x8(%rbp)
cmp    $0xc8,%eax
jge    1141 <main+0x31>
jmp    1126 <main+0x16>
mov    -0x8(%rbp),%esi
lea    0xeb5(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
@.str = [10 x i8] c"count=%d\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 201)
ret i32 0
}
int seq(int i) {
  int count;
  count = 0;
  while (i != 1) {
    count = count + 1;
    if (i % 2 == 0)
      i = i / 2;
    else
      i = i * 3 + 1;
  }
  return count;
}


x86 assembly (clang, -O0):
<seq>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x1,-0x4(%rbp)
je     1157 <seq+0x57>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1148 <seq+0x48>
mov    -0x4(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x4(%rbp)
jmp    1152 <seq+0x52>
imul   $0x3,-0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    110e <seq+0xe>
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<seq>:
xor    %eax,%eax
cmp    $0x1,%edi
jne    1108 <seq+0x8>
ret
xor    %eax,%eax
jmp    111e <seq+0x1e>
nopl   0x0(%rax)
lea    (%rdi,%rdi,2),%edi
add    $0x1,%edi
add    $0x1,%eax
cmp    $0x1,%edi
je     1107 <seq+0x7>
test   $0x1,%dil
jne    1110 <seq+0x10>
mov    %edi,%ecx
shr    $0x1f,%ecx
add    %edi,%ecx
sar    %ecx
mov    %ecx,%edi
jmp    1116 <seq+0x16>

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

LLVM IR (-O2):
define i32 @seq(i32 %0) {
%2 = icmp eq i32 %0, 1
br i1 %2, label %17, label %3
3: ; preds = %1, %14
%4 = phi i32 [ %6, %14 ], [ 0, %1 ]
%5 = phi i32 [ %15, %14 ], [ %0, %1 ]
%6 = add nuw nsw i32 %4, 1
%7 = and i32 %5, 1
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %3
%10 = sdiv i32 %5, 2
br label %14
11: ; preds = %3
%12 = mul nsw i32 %5, 3
%13 = add nsw i32 %12, 1
br label %14
14: ; preds = %11, %9
%15 = phi i32 [ %10, %9 ], [ %13, %11 ]
%16 = icmp eq i32 %15, 1
br i1 %16, label %17, label %3
17: ; preds = %14, %1
%18 = phi i32 [ 0, %1 ], [ %6, %14 ]
ret i32 %18
}
void getFromBoxId(int boxId, int *x, int *y) {
  *x = boxId % 3;
  *y = boxId / 3;
}


x86 assembly (clang, -O0):
<getFromBoxId>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    -0x10(%rbp),%rax
mov    %edx,(%rax)
mov    -0x4(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<getFromBoxId>:
movslq %edi,%rax
imul   $0x55555556,%rax,%rcx
mov    %rcx,%rdi
shr    $0x3f,%rdi
shr    $0x20,%rcx
add    %edi,%ecx
lea    (%rcx,%rcx,2),%edi
sub    %edi,%eax
mov    %eax,(%rsi)
mov    %ecx,(%rdx)
ret

LLVM IR (-O0):
define void @getFromBoxId(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 = srem i32 %7, 3
%9 = load i32*, i32** %5
store i32 %8, i32* %9
%10 = load i32, i32* %4
%11 = sdiv i32 %10, 3
%12 = load i32*, i32** %6
store i32 %11, i32* %12
ret void
}

LLVM IR (-O2):
define void @getFromBoxId(i32 %0, i32* nocapture writeonly %1, i32* nocapture writeonly %2) {
%4 = srem i32 %0, 3
store i32 %4, i32* %1
%5 = sdiv i32 %0, 3
store i32 %5, i32* %2
ret void
}
/* Variables and functions */
scalar_t__ errno;
double pow(int, double);
double foo(int x, double y) {
  double yy = 0;
  errno = 0;
  yy = pow(x, y * y);
  return yy;
}


x86 assembly (clang, -O0):
<foo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
movsd  %xmm0,-0x10(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x18(%rbp)
mov    0x2eb1(%rip),%rax
movq   $0x0,(%rax)
mov    -0x4(%rbp),%edi
movsd  -0x10(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
call   1030 <pow@plt>
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<foo>:
mov    0x2ec9(%rip),%rax
movq   $0x0,(%rax)
mulsd  %xmm0,%xmm0
jmp    1030 <pow@plt>

LLVM IR (-O0):
@errno = global i64 0
define double @foo(i32 %0, double %1) {
%3 = alloca i32
%4 = alloca double
%5 = alloca double
store i32 %0, i32* %3
store double %1, double* %4
store double 0.000000e+00, double* %5
store i64 0, i64* @errno
%6 = load i32, i32* %3
%7 = load double, double* %4
%8 = load double, double* %4
%9 = fmul double %7, %8
%10 = call double @pow(i32 %6, double %9)
store double %10, double* %5
%11 = load double, double* %5
ret double %11
}

LLVM IR (-O2):
@errno = global i64 0
define double @foo(i32 %0, double %1) {
store i64 0, i64* @errno
%3 = fmul double %1, %1
%4 = tail call double @pow(i32 %0, double %3)
ret double %4
}
unsigned long ucmp(unsigned long a, unsigned long b) {
  return (a > b) - (a < b);
}


x86 assembly (clang, -O0):
<ucmp>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
cmp    -0x10(%rbp),%rax
seta   %al
and    $0x1,%al
movzbl %al,%eax
mov    -0x8(%rbp),%rcx
cmp    -0x10(%rbp),%rcx
setb   %cl
and    $0x1,%cl
movzbl %cl,%ecx
sub    %ecx,%eax
cltq
pop    %rbp
ret

x86 assembly (clang, -O2):
<ucmp>:
xor    %eax,%eax
cmp    %rsi,%rdi
seta   %al
sbb    $0x0,%rax
ret

LLVM IR (-O0):
define i64 @ucmp(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%5 = load i64, i64* %3
%6 = load i64, i64* %4
%7 = icmp ugt i64 %5, %6
%8 = zext i1 %7 to i32
%9 = load i64, i64* %3
%10 = load i64, i64* %4
%11 = icmp ult i64 %9, %10
%12 = zext i1 %11 to i32
%13 = sub nsw i32 %8, %12
%14 = sext i32 %13 to i64
ret i64 %14
}

LLVM IR (-O2):
define i64 @ucmp(i64 %0, i64 %1) {
%3 = icmp ugt i64 %0, %1
%4 = zext i1 %3 to i64
%5 = icmp ult i64 %0, %1
%6 = sext i1 %5 to i64
%7 = add nsw i64 %6, %4
ret i64 %7
}
/* Type definitions */
typedef int uint8_t;
typedef int /*<<< orphan*/ uint16_t;

/* Variables and functions */
void stuffPacketByte(uint8_t value, uint8_t **buffer, uint16_t *count) {
  if (value <= 0x04) {
    **buffer = 0x04;
    (*buffer)++;
    (*count)++;
  }
  **buffer = value;
  (*buffer)++;
  (*count)++;
}


x86 assembly (clang, -O0):
<stuffPacketByte>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
cmpl   $0x4,-0x4(%rbp)
jg     113f <stuffPacketByte+0x3f>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movl   $0x4,(%rax)
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
add    $0x4,%rcx
mov    %rcx,(%rax)
mov    -0x18(%rbp),%rax
mov    (%rax),%ecx
add    $0x1,%ecx
mov    %ecx,(%rax)
mov    -0x4(%rbp),%ecx
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %ecx,(%rax)
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
add    $0x4,%rcx
mov    %rcx,(%rax)
mov    -0x18(%rbp),%rax
mov    (%rax),%ecx
add    $0x1,%ecx
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<stuffPacketByte>:
mov    (%rsi),%rax
cmp    $0x4,%edi
jg     1115 <stuffPacketByte+0x15>
movl   $0x4,(%rax)
add    $0x4,%rax
addl   $0x1,(%rdx)
mov    %edi,(%rax)
add    $0x4,%rax
mov    %rax,(%rsi)
addl   $0x1,(%rdx)
ret

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

LLVM IR (-O2):
define void @stuffPacketByte(i32 %0, i32** nocapture %1, i32* nocapture %2) {
%4 = icmp slt i32 %0, 5
%5 = load i32*, i32** %1
br i1 %4, label %6, label %10
6: ; preds = %3
store i32 4, i32* %5
%7 = getelementptr inbounds i32, i32* %5, i64 1
%8 = load i32, i32* %2
%9 = add nsw i32 %8, 1
store i32 %9, i32* %2
br label %10
10: ; preds = %3, %6
%11 = phi i32* [ %7, %6 ], [ %5, %3 ]
store i32 %0, i32* %11
%12 = getelementptr inbounds i32, i32* %11, i64 1
store i32* %12, i32** %1
%13 = load i32, i32* %2
%14 = add nsw i32 %13, 1
store i32 %14, i32* %2
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ va_list;

/* Variables and functions */
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ vfprintf(int /*<<< orphan*/, char const *,
                            int /*<<< orphan*/);
void println_stderr(const char *str, va_list vl) {
  vfprintf(stderr, str, vl);
  fputs("\n", stderr);
}


x86 assembly (clang, -O0):
<println_stderr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    0x2eaa(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
call   1040 <vfprintf@plt>
mov    0x2e95(%rip),%rax
mov    (%rax),%esi
lea    0xeac(%rip),%rdi
call   1030 <fputs@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<println_stderr>:
push   %rbx
mov    %esi,%edx
mov    %rdi,%rsi
mov    0x2eb3(%rip),%rbx
mov    (%rbx),%edi
call   1040 <vfprintf@plt>
mov    (%rbx),%esi
lea    0xec3(%rip),%rdi
pop    %rbx
jmp    1030 <fputs@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [2 x i8] c"\0A\00"
define void @println_stderr(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i32, i32* @stderr
%6 = load i8*, i8** %3
%7 = load i32, i32* %4
%8 = call i32 @vfprintf(i32 %5, i8* %6, i32 %7)
%9 = load i32, i32* @stderr
%10 = call i32 @fputs(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 %9)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [2 x i8] c"\0A\00"
define void @println_stderr(i8* %0, i32 %1) {
%3 = load i32, i32* @stderr
%4 = tail call i32 @vfprintf(i32 %3, i8* %0, i32 %1)
%5 = load i32, i32* @stderr
%6 = tail call i32 @fputs(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 %5)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ sendBlink(int, int, int, int);
int /*<<< orphan*/ sendConf(int, int);
void setRedBlink(int sockfd, int timeOn, int period) {
  sendConf(sockfd, (1 << 7) | (3 << 3) | (3 << 1));
  sendBlink(sockfd, 0x11, timeOn, period);
  sendBlink(sockfd, 0x13, 0, 0);
}


x86 assembly (clang, -O0):
<setRedBlink>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x9e,%esi
call   1040 <sendConf@plt>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%edx
mov    -0xc(%rbp),%ecx
mov    $0x11,%esi
call   1030 <sendBlink@plt>
mov    -0x4(%rbp),%edi
mov    $0x13,%esi
xor    %ecx,%ecx
mov    %ecx,%edx
call   1030 <sendBlink@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<setRedBlink>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%r14d
mov    %esi,%ebp
mov    %edi,%ebx
mov    $0x9e,%esi
call   1040 <sendConf@plt>
mov    %ebx,%edi
mov    $0x11,%esi
mov    %ebp,%edx
mov    %r14d,%ecx
call   1030 <sendBlink@plt>
mov    %ebx,%edi
mov    $0x13,%esi
xor    %edx,%edx
xor    %ecx,%ecx
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <sendBlink@plt>

LLVM IR (-O0):
define void @setRedBlink(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 = call i32 @sendConf(i32 %7, i32 158)
%9 = load i32, i32* %4
%10 = load i32, i32* %5
%11 = load i32, i32* %6
%12 = call i32 @sendBlink(i32 %9, i32 17, i32 %10, i32 %11)
%13 = load i32, i32* %4
%14 = call i32 @sendBlink(i32 %13, i32 19, i32 0, i32 0)
ret void
}

LLVM IR (-O2):
define void @setRedBlink(i32 %0, i32 %1, i32 %2) {
%4 = tail call i32 @sendConf(i32 %0, i32 158)
%5 = tail call i32 @sendBlink(i32 %0, i32 17, i32 %1, i32 %2)
%6 = tail call i32 @sendBlink(i32 %0, i32 19, i32 0, i32 0)
ret void
}
/* Variables and functions */
double sqrt(double);
__attribute__((__weak__, __always___)) double softboundmpx_sqrt(double x) {
  return sqrt(x);
}


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

x86 assembly (clang, -O2):
<softboundmpx_sqrt>:
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     111f <softboundmpx_sqrt+0xf>
sqrtsd %xmm0,%xmm0
ret
jmp    1030 <sqrt@plt>

LLVM IR (-O0):
define weak double @softboundmpx_sqrt(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = call double @sqrt(double %3)
ret double %4
}

LLVM IR (-O2):
define weak double @softboundmpx_sqrt(double %0) {
%2 = tail call double @sqrt(double %0)
ret double %2
}
/* Variables and functions */
scalar_t__ strtol(char const *, char **, int);
int GO_atoi(const char *s) { return (int)strtol(s, (char **)NULL, 10); }


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

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

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

LLVM IR (-O2):
define i32 @GO_atoi(i8* nocapture %0) {
%2 = tail call i64 @strtol(i8* nocapture %0, i8** null, i32 10)
%3 = trunc i64 %2 to i32
ret i32 %3
}
/* Variables and functions */
scalar_t__ string_nocase_compare(char *, char *);
int string_nocase_equal(void *string1, void *string2) {
  return string_nocase_compare((char *)string1, (char *)string2) == 0;
}


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

x86 assembly (clang, -O2):
<string_nocase_equal>:
push   %rax
call   1030 <string_nocase_compare@plt>
xor    %ecx,%ecx
test   %rax,%rax
sete   %cl
mov    %ecx,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @string_nocase_equal(i8* %0, i8* %1) {
%3 = tail call i64 @string_nocase_compare(i8* %0, i8* %1)
%4 = icmp eq i64 %3, 0
%5 = zext i1 %4 to i32
ret i32 %5
}
void CL_HTTP_Update(void) {}


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

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

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

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


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

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

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

LLVM IR (-O2):
define void @function_empty_urole() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fatal(char *);
void *realloc(void *, size_t);
void *safe_malloc(size_t);
void *safe_realloc(void *oldbuf, size_t nbytes) {
  void *newbuf;
  if (oldbuf == NULL)
    return safe_malloc(nbytes);
  if ((newbuf = realloc(oldbuf, nbytes)) == NULL)
    fatal("Out of memory");
  return newbuf;
}


x86 assembly (clang, -O0):
<safe_realloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    115d <safe_realloc+0x2d>
mov    -0x18(%rbp),%rdi
call   1030 <safe_malloc@plt>
mov    %rax,-0x8(%rbp)
jmp    118c <safe_realloc+0x5c>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1040 <realloc@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
jne    1184 <safe_realloc+0x54>
lea    0xe81(%rip),%rdi
call   1050 <fatal@plt>
mov    -0x20(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<safe_realloc>:
test   %rdi,%rdi
je     1142 <safe_realloc+0x12>
push   %rax
call   1040 <realloc@plt>
test   %rax,%rax
je     114a <safe_realloc+0x1a>
pop    %rcx
ret
mov    %rsi,%rdi
jmp    1030 <safe_malloc@plt>
lea    0xeaf(%rip),%rdi
call   1050 <fatal@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [14 x i8] c"Out of memory\00"
define i8* @safe_realloc(i8* %0, i64 %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i64
%6 = alloca i8*
store i8* %0, i8** %4
store i64 %1, i64* %5
%7 = load i8*, i8** %4
%8 = icmp eq i8* %7, null
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load i64, i64* %5
%11 = call i8* @safe_malloc(i64 %10)
store i8* %11, i8** %3
br label %21
12: ; preds = %2
%13 = load i8*, i8** %4
%14 = load i64, i64* %5
%15 = call i8* @realloc(i8* %13, i64 %14)
store i8* %15, i8** %6
%16 = icmp eq i8* %15, null
br i1 %16, label %17, label %19
17: ; preds = %12
%18 = call i32 @fatal(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
br label %19
19: ; preds = %17, %12
%20 = load i8*, i8** %6
store i8* %20, i8** %3
br label %21
21: ; preds = %19, %9
%22 = load i8*, i8** %3
ret i8* %22
}

LLVM IR (-O2):
@.str = [14 x i8] c"Out of memory\00"
define i8* @safe_realloc(i8* %0, i64 %1) {
%3 = icmp eq i8* %0, null
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = tail call i8* @safe_malloc(i64 %1)
br label %11
6: ; preds = %2
%7 = tail call i8* @realloc(i8* %0, i64 %1)
%8 = icmp eq i8* %7, null
br i1 %8, label %9, label %11
9: ; preds = %6
%10 = tail call i32 @fatal(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
br label %11
11: ; preds = %6, %9, %4
%12 = phi i8* [ %5, %4 ], [ null, %9 ], [ %7, %6 ]
ret i8* %12
}
void nop_proc(void) {}


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

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

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

LLVM IR (-O2):
define void @nop_proc() {
ret void
}
void _M2_IO_finish(__attribute__((unused)) int argc,
                   __attribute__((unused)) char *argv[]) {}


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

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

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

LLVM IR (-O2):
define void @_M2_IO_finish(i32 %0, i8** nocapture %1) {
ret void
}
/* Type definitions */
typedef scalar_t__ uint32_t;

/* Variables and functions */
__attribute__((always_, pure)) int bigint_is_zero_raw(const uint32_t *value0,
                                                      unsigned int size) {
  const uint32_t *value = value0;
  uint32_t value_i;
  do {
    value_i = *(value++);
    if (value_i)
      break;
  } while (--size);
  return (value_i == 0);
}


x86 assembly (clang, -O0):
<bigint_is_zero_raw>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x18(%rbp)
mov    (%rax),%rax
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     1139 <bigint_is_zero_raw+0x39>
jmp    1150 <bigint_is_zero_raw+0x50>
jmp    113e <bigint_is_zero_raw+0x3e>
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xc(%rbp)
cmp    $0x0,%eax
jne    1113 <bigint_is_zero_raw+0x13>
cmpq   $0x0,-0x20(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<bigint_is_zero_raw>:
add    $0xffffffff,%esi
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nop
mov    (%rdi,%rax,8),%rcx
test   %rcx,%rcx
jne    1124 <bigint_is_zero_raw+0x24>
lea    0x1(%rax),%rdx
cmp    %eax,%esi
mov    %rdx,%rax
jne    1110 <bigint_is_zero_raw+0x10>
xor    %eax,%eax
test   %rcx,%rcx
sete   %al
ret

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

LLVM IR (-O2):
define i32 @bigint_is_zero_raw(i64* nocapture %0, i32 %1) {
br label %3
3: ; preds = %3, %2
%4 = phi i64* [ %0, %2 ], [ %8, %3 ]
%5 = phi i32 [ %1, %2 ], [ %9, %3 ]
%6 = load i64, i64* %4
%7 = icmp ne i64 %6, 0
%8 = getelementptr inbounds i64, i64* %4, i64 1
%9 = add i32 %5, -1
%10 = icmp eq i32 %9, 0
%11 = select i1 %7, i1 true, i1 %10
br i1 %11, label %12, label %3
12: ; preds = %3
%13 = icmp eq i64 %6, 0
%14 = zext i1 %13 to i32
ret i32 %14
}
void f0(a, b, c, d) int a, b, c, d;
{}


x86 assembly (clang, -O0):
<f0>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @f0(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
ret void
}

LLVM IR (-O2):
define void @f0(i32 %0, i32 %1, i32 %2, i32 %3) {
ret void
}
/* Variables and functions */
scalar_t__ genrand_int32(unsigned long *, unsigned long *);
double genrand_real3(unsigned long mt[], unsigned long *mtiPtr) {
  return (((double)genrand_int32(mt, mtiPtr)) + 0.5) * (1.0 / 4294967296.0);
}


x86 assembly (clang, -O0):
<genrand_real3>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <genrand_int32@plt>
cvtsi2sd %rax,%xmm0
movsd  0xece(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  0xeba(%rip),%xmm1
mulsd  %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<genrand_real3>:
push   %rax
call   1030 <genrand_int32@plt>
cvtsi2sd %rax,%xmm0
addsd  0xedd(%rip),%xmm0
mulsd  0xedd(%rip),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @genrand_real3(i64* %0, i64* %1) {
%3 = alloca i64*
%4 = alloca i64*
store i64* %0, i64** %3
store i64* %1, i64** %4
%5 = load i64*, i64** %3
%6 = load i64*, i64** %4
%7 = call i64 @genrand_int32(i64* %5, i64* %6)
%8 = sitofp i64 %7 to double
%9 = fadd double %8, 5.000000e-01
%10 = fmul double %9, 0x3DF0000000000000
ret double %10
}

LLVM IR (-O2):
define double @genrand_real3(i64* %0, i64* %1) {
%3 = tail call i64 @genrand_int32(i64* %0, i64* %1)
%4 = sitofp i64 %3 to double
%5 = fadd double %4, 5.000000e-01
%6 = fmul double %5, 0x3DF0000000000000
ret double %6
}
/* Variables and functions */
int /*<<< orphan*/ Msp430UsartShareP__0__RawInterrupts__txDone();
void HplMsp430Usart0P__Interrupts__txDone(void) {
  Msp430UsartShareP__0__RawInterrupts__txDone();
}


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

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

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

LLVM IR (-O2):
define void @HplMsp430Usart0P__Interrupts__txDone() {
%1 = tail call i32 (...) @Msp430UsartShareP__0__RawInterrupts__txDone()
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fputs(char const *, int /*<<< orphan*/ *);
int /*<<< orphan*/ *stdout;
void uninitvar_fputs(void) {
  const char *s;
  FILE *fp;
  fputs("a", stdout);
  fputs(s, stdout);
  fputs("a", fp);
}


x86 assembly (clang, -O0):
<uninitvar_fputs>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0x2ec1(%rip),%rax
mov    (%rax),%rsi
lea    0xed7(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rdi
mov    0x2ea7(%rip),%rax
mov    (%rax),%rsi
call   1030 <fputs@plt>
mov    -0x10(%rbp),%rsi
lea    0xeb4(%rip),%rdi
call   1030 <fputs@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<uninitvar_fputs>:
push   %rbx
mov    0x2eb8(%rip),%rbx
mov    (%rbx),%rsi
mov    $0x61,%edi
call   1040 <fputc@plt>
mov    (%rbx),%rsi
call   1030 <fputs@plt>
mov    $0x61,%edi
pop    %rbx
jmp    1040 <fputc@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"a\00"
@stdout = global i32* null
define void @uninitvar_fputs() {
%1 = alloca i8*
%2 = alloca i32*
%3 = load i32*, i32** @stdout
%4 = call i32 @fputs(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32* %3)
%5 = load i8*, i8** %1
%6 = load i32*, i32** @stdout
%7 = call i32 @fputs(i8* %5, i32* %6)
%8 = load i32*, i32** %2
%9 = call i32 @fputs(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32* %8)
ret void
}

LLVM IR (-O2):
@stdout = global i32* null
define void @uninitvar_fputs() {
%1 = load i32*, i32** @stdout
%2 = tail call i32 @fputc(i32 97, i32* %1)
%3 = load i32*, i32** @stdout
%4 = tail call i32 @fputs(i8* undef, i32* %3)
%5 = tail call i32 @fputc(i32 97, i32* undef)
ret void
}
/* Variables and functions */
int test1(int);
int test2(int);
int test() {
  if (test1(1) != 3)
    return 1;
  if (test2(2) != 4)
    return 2;
  return 0;
}


x86 assembly (clang, -O0):
<test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x1,%edi
call   1030 <test1@plt>
cmp    $0x3,%eax
je     1147 <test+0x27>
movl   $0x1,-0x4(%rbp)
jmp    116d <test+0x4d>
mov    $0x2,%edi
call   1040 <test2@plt>
cmp    $0x4,%eax
je     1166 <test+0x46>
movl   $0x2,-0x4(%rbp)
jmp    116d <test+0x4d>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test>:
push   %rbx
mov    $0x1,%ebx
mov    $0x1,%edi
call   1030 <test1@plt>
cmp    $0x3,%eax
jne    1149 <test+0x29>
mov    $0x2,%edi
call   1040 <test2@plt>
xor    %ebx,%ebx
cmp    $0x4,%eax
setne  %bl
add    %ebx,%ebx
mov    %ebx,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @test() {
%1 = tail call i32 @test1(i32 1)
%2 = icmp eq i32 %1, 3
br i1 %2, label %3, label %7
3: ; preds = %0
%4 = tail call i32 @test2(i32 2)
%5 = icmp eq i32 %4, 4
%6 = select i1 %5, i32 0, i32 2
br label %7
7: ; preds = %3, %0
%8 = phi i32 [ 1, %0 ], [ %6, %3 ]
ret i32 %8
}
/* Variables and functions */
int /*<<< orphan*/ bbm_write(void *, int, int);
signed int fci_i2c_deinit(void *handle) {
  bbm_write(handle, 0x0032, 0x00);
  return 0;
}


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

x86 assembly (clang, -O2):
<fci_i2c_deinit>:
push   %rax
mov    $0x32,%esi
xor    %edx,%edx
call   1030 <bbm_write@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @fci_i2c_deinit(i8* %0) {
%2 = tail call i32 @bbm_write(i8* %0, i32 50, i32 0)
ret i32 0
}
void *_Locale_monetary_create(const char *__DUMMY_PAR) { return 0; }


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

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

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

LLVM IR (-O2):
define noalias i8* @_Locale_monetary_create(i8* nocapture readnone %0) {
ret i8* null
}
/* Variables and functions */
int /*<<< orphan*/ __NR_futex;
int syscall(int /*<<< orphan*/, int *, int, int, int /*<<< orphan*/ *);
int futex(int *futex, int op, int val) {
  return syscall(__NR_futex, futex, op, val, NULL);
}


x86 assembly (clang, -O0):
<futex>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    0x2ebf(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
xor    %eax,%eax
mov    %eax,%r8d
call   1030 <syscall@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<futex>:
mov    %edx,%ecx
mov    %esi,%edx
mov    %rdi,%rsi
mov    0x2eca(%rip),%rax
mov    (%rax),%edi
xor    %r8d,%r8d
jmp    1030 <syscall@plt>

LLVM IR (-O0):
@__NR_futex = global i32 0
define i32 @futex(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* @__NR_futex
%8 = load i32*, i32** %4
%9 = load i32, i32* %5
%10 = load i32, i32* %6
%11 = call i32 @syscall(i32 %7, i32* %8, i32 %9, i32 %10, i32* null)
ret i32 %11
}

LLVM IR (-O2):
@__NR_futex = global i32 0
define i32 @futex(i32* %0, i32 %1, i32 %2) {
%4 = load i32, i32* @__NR_futex
%5 = tail call i32 @syscall(i32 %4, i32* %0, i32 %1, i32 %2, i32* null)
ret i32 %5
}
/* Variables and functions */
char *U_WMRCORENONE_set(char *);
char *U_WMRBF_set(void) { return U_WMRCORENONE_set("U_WMRBF"); }


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

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

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

LLVM IR (-O2):
@.str = [8 x i8] c"U_WMRBF\00"
define i8* @U_WMRBF_set() {
%1 = tail call i8* @U_WMRCORENONE_set(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
ret i8* %1
}
/* Type definitions */
struct timeval {
  int dummy;
};
typedef int /*<<< orphan*/ fd_set;

/* Variables and functions */
int /*<<< orphan*/ ENOSYS;
int /*<<< orphan*/ __set_errno(int /*<<< orphan*/);
int select(int __nfds, fd_set *__restrict __readfds,
           fd_set *__restrict __writefds, fd_set *__restrict __exceptfds,
           struct timeval *__restrict __timeout) {
  __set_errno(ENOSYS);
  return -1;
}


x86 assembly (clang, -O0):
<select>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    0x2eb6(%rip),%rax
mov    (%rax),%edi
call   1030 <__set_errno@plt>
mov    $0xffffffff,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<select>:
push   %rax
mov    0x2ed0(%rip),%rax
mov    (%rax),%edi
call   1030 <__set_errno@plt>
mov    $0xffffffff,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.timeval = type { i32 }
@ENOSYS = global i32 0
define i32 @select(i32 %0, i32* noalias %1, i32* noalias %2, i32* noalias %3, %struct.timeval* noalias %4) {
%6 = alloca i32
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca %struct.timeval*
store i32 %0, i32* %6
store i32* %1, i32** %7
store i32* %2, i32** %8
store i32* %3, i32** %9
store %struct.timeval* %4, %struct.timeval** %10
%11 = load i32, i32* @ENOSYS
%12 = call i32 @__set_errno(i32 %11)
ret i32 -1
}

LLVM IR (-O2):
%struct.timeval = type { i32 }
@ENOSYS = global i32 0
define i32 @select(i32 %0, i32* noalias nocapture readnone %1, i32* noalias nocapture readnone %2, i32* noalias nocapture readnone %3, %struct.timeval* noalias nocapture readnone %4) {
%6 = load i32, i32* @ENOSYS
%7 = tail call i32 @__set_errno(i32 %6)
ret i32 -1
}
desbind(f, n) { return (buildlist(1, "")); }


x86 assembly (clang, -O0):
<desbind>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    $0x1,%edi
lea    0xed6(%rip),%rsi
mov    $0x0,%al
call   1030 <buildlist@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<desbind>:
lea    0xee9(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
jmp    1030 <buildlist@plt>

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
define i32 @desbind(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = call i32 (i32, i8*, ...) bitcast (i32 (...)* @buildlist to i32 (i32, i8*, ...)*)(i32 1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
ret i32 %5
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
define i32 @desbind(i32 %0, i32 %1) {
%3 = tail call i32 (i32, i8*, ...) bitcast (i32 (...)* @buildlist to i32 (i32, i8*, ...)*)(i32 1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
ret i32 %3
}