xunge/DecIR huggingface dataset:
int test_imm_24uint64_lowword_mem(unsigned long long *val) {
  return ((*val) & (0x24 << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_24uint64_lowword_mem>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rdx
and    $0x24,%rdx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%rdx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_24uint64_lowword_mem>:
testb  $0x24,(%rdi)
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_imm_24uint64_lowword_mem(i64* %0) {
%2 = alloca i64*
store i64* %0, i64** %2
%3 = load i64*, i64** %2
%4 = load i64, i64* %3
%5 = and i64 %4, 36
%6 = icmp ne i64 %5, 0
%7 = zext i1 %6 to i64
%8 = select i1 %6, i32 -20, i32 -40
ret i32 %8
}

LLVM IR (-O2):
define i32 @test_imm_24uint64_lowword_mem(i64* nocapture %0) {
%2 = load i64, i64* %0
%3 = and i64 %2, 36
%4 = icmp eq i64 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
char EOF;
char fgetc(int /*<<< orphan*/ *);
char ReadChar(FILE *file) {
  char *c;
  while ((*c = fgetc(file)) != EOF) {
    return *c;
  }
  return '\n';
}


x86 assembly (clang, -O0):
<ReadChar>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <fgetc@plt>
mov    -0x18(%rbp),%rcx
mov    %al,(%rcx)
movsbl %al,%eax
mov    0x2eb3(%rip),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
je     114e <ReadChar+0x3e>
mov    -0x18(%rbp),%rax
mov    (%rax),%al
mov    %al,-0x1(%rbp)
jmp    1152 <ReadChar+0x42>
movb   $0xa,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ReadChar>:
push   %rax
call   1030 <fgetc@plt>

LLVM IR (-O0):
@EOF = global i8 0
define signext i8 @ReadChar(i32* %0) {
%2 = alloca i8
%3 = alloca i32*
%4 = alloca i8*
store i32* %0, i32** %3
br label %5
5: ; preds = %1
%6 = load i32*, i32** %3
%7 = call signext i8 @fgetc(i32* %6)
%8 = load i8*, i8** %4
store i8 %7, i8* %8
%9 = sext i8 %7 to i32
%10 = load i8, i8* @EOF
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %9, %11
br i1 %12, label %13, label %16
13: ; preds = %5
%14 = load i8*, i8** %4
%15 = load i8, i8* %14
store i8 %15, i8* %2
br label %17
16: ; preds = %5
store i8 10, i8* %2
br label %17
17: ; preds = %16, %13
%18 = load i8, i8* %2
ret i8 %18
}

LLVM IR (-O2):
@EOF = global i8 0
define signext i8 @ReadChar(i32* nocapture %0) {
%2 = tail call signext i8 @fgetc(i32* %0)
unreachable
}
void td_copy(const double *a, double *b) {
  b[0] = a[0];
  b[1] = a[1];
  b[2] = a[2];
}


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

x86 assembly (clang, -O2):
<td_copy>:
movsd  (%rdi),%xmm0
movsd  %xmm0,(%rsi)
movsd  0x8(%rdi),%xmm0
movsd  %xmm0,0x8(%rsi)
movsd  0x10(%rdi),%xmm0
movsd  %xmm0,0x10(%rsi)
ret

LLVM IR (-O0):
define void @td_copy(double* %0, double* %1) {
%3 = alloca double*
%4 = alloca double*
store double* %0, double** %3
store double* %1, double** %4
%5 = load double*, double** %3
%6 = getelementptr inbounds double, double* %5, i64 0
%7 = load double, double* %6
%8 = load double*, double** %4
%9 = getelementptr inbounds double, double* %8, i64 0
store double %7, double* %9
%10 = load double*, double** %3
%11 = getelementptr inbounds double, double* %10, i64 1
%12 = load double, double* %11
%13 = load double*, double** %4
%14 = getelementptr inbounds double, double* %13, i64 1
store double %12, double* %14
%15 = load double*, double** %3
%16 = getelementptr inbounds double, double* %15, i64 2
%17 = load double, double* %16
%18 = load double*, double** %4
%19 = getelementptr inbounds double, double* %18, i64 2
store double %17, double* %19
ret void
}

LLVM IR (-O2):
define void @td_copy(double* nocapture %0, double* nocapture writeonly %1) {
%3 = load double, double* %0
store double %3, double* %1
%4 = getelementptr inbounds double, double* %0, i64 1
%5 = load double, double* %4
%6 = getelementptr inbounds double, double* %1, i64 1
store double %5, double* %6
%7 = getelementptr inbounds double, double* %0, i64 2
%8 = load double, double* %7
%9 = getelementptr inbounds double, double* %1, i64 2
store double %8, double* %9
ret void
}
/* Variables and functions */
int /*<<< orphan*/ free(void *);
void XXH_free(void *p) { free(p); }


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

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

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

LLVM IR (-O2):
define void @XXH_free(i8* nocapture %0) {
%2 = tail call i32 @free(i8* %0)
ret void
}
unsigned long de16(char *buf) { return (buf[0] << 8) + buf[1]; }


x86 assembly (clang, -O0):
<de16>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
shl    $0x8,%eax
mov    -0x8(%rbp),%rcx
movsbl 0x1(%rcx),%ecx
add    %ecx,%eax
cltq
pop    %rbp
ret

x86 assembly (clang, -O2):
<de16>:
movsbq (%rdi),%rcx
shl    $0x8,%rcx
movsbq 0x1(%rdi),%rax
add    %rcx,%rax
ret

LLVM IR (-O0):
define i64 @de16(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = getelementptr inbounds i8, i8* %3, i64 0
%5 = load i8, i8* %4
%6 = sext i8 %5 to i32
%7 = shl i32 %6, 8
%8 = load i8*, i8** %2
%9 = getelementptr inbounds i8, i8* %8, i64 1
%10 = load i8, i8* %9
%11 = sext i8 %10 to i32
%12 = add nsw i32 %7, %11
%13 = sext i32 %12 to i64
ret i64 %13
}

LLVM IR (-O2):
define i64 @de16(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = sext i8 %2 to i32
%4 = shl nsw i32 %3, 8
%5 = getelementptr inbounds i8, i8* %0, i64 1
%6 = load i8, i8* %5
%7 = sext i8 %6 to i32
%8 = add nsw i32 %4, %7
%9 = sext i32 %8 to i64
ret i64 %9
}
/* Type definitions */
struct twlist_head {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ __twlist_del_entry(struct twlist_head *);
int /*<<< orphan*/ twlist_add_tail(struct twlist_head *, struct twlist_head *);
void twlist_move_tail(struct twlist_head *twlist, struct twlist_head *head) {
  __twlist_del_entry(twlist);
  twlist_add_tail(twlist, head);
}


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

x86 assembly (clang, -O2):
<twlist_move_tail>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
call   1030 <__twlist_del_entry@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <twlist_add_tail@plt>

LLVM IR (-O0):
%struct.twlist_head = type { i32 }
define void @twlist_move_tail(%struct.twlist_head* %0, %struct.twlist_head* %1) {
%3 = alloca %struct.twlist_head*
%4 = alloca %struct.twlist_head*
store %struct.twlist_head* %0, %struct.twlist_head** %3
store %struct.twlist_head* %1, %struct.twlist_head** %4
%5 = load %struct.twlist_head*, %struct.twlist_head** %3
%6 = call i32 @__twlist_del_entry(%struct.twlist_head* %5)
%7 = load %struct.twlist_head*, %struct.twlist_head** %3
%8 = load %struct.twlist_head*, %struct.twlist_head** %4
%9 = call i32 @twlist_add_tail(%struct.twlist_head* %7, %struct.twlist_head* %8)
ret void
}

LLVM IR (-O2):
%struct.twlist_head = type { i32 }
define void @twlist_move_tail(%struct.twlist_head* %0, %struct.twlist_head* %1) {
%3 = tail call i32 @__twlist_del_entry(%struct.twlist_head* %0)
%4 = tail call i32 @twlist_add_tail(%struct.twlist_head* %0, %struct.twlist_head* %1)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ hash_2words(int /*<<< orphan*/, int /*<<< orphan*/);
uint32_t hash_int(uint32_t x, uint32_t basis) { return hash_2words(x, basis); }


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

x86 assembly (clang, -O2):
<hash_int>:
jmp    1030 <hash_2words@plt>

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

LLVM IR (-O2):
define i32 @hash_int(i32 %0, i32 %1) {
%3 = tail call i32 @hash_2words(i32 %0, i32 %1)
ret i32 %3
}
/* Variables and functions */
int write(int, int *, int);
int putchar(int ch) { return write(1, &ch, 1) == 1 ? ch : -1; }


x86 assembly (clang, -O0):
<putchar>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    $0x1,%edx
lea    -0x4(%rbp),%rsi
mov    %edx,%edi
call   1030 <write@plt>
cmp    $0x1,%eax
jne    113f <putchar+0x2f>
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
jmp    114c <putchar+0x3c>
mov    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
jmp    114c <putchar+0x3c>
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<putchar>:
push   %rbx
sub    $0x10,%rsp
mov    %edi,%ebx
mov    %edi,0xc(%rsp)
lea    0xc(%rsp),%rsi
mov    $0x1,%edi
mov    $0x1,%edx
call   1030 <write@plt>
cmp    $0x1,%eax
mov    $0xffffffff,%eax
cmove  %ebx,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define i32 @putchar(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @write(i32 1, i32* %2, i32 1)
%4 = icmp eq i32 %3, 1
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = load i32, i32* %2
br label %8
7: ; preds = %1
br label %8
8: ; preds = %7, %5
%9 = phi i32 [ %6, %5 ], [ -1, %7 ]
ret i32 %9
}

LLVM IR (-O2):
define i32 @putchar(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @write(i32 1, i32* %2, i32 1)
%4 = icmp eq i32 %3, 1
%5 = select i1 %4, i32 %0, i32 -1
ret i32 %5
}
/* Variables and functions */
scalar_t__ isprint(int);
scalar_t__ isspace(int);
int my_isprint(int c) { return isprint(c) || isspace(c); }


x86 assembly (clang, -O0):
<my_isprint>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1040 <isprint@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x5(%rbp)
jne    1157 <my_isprint+0x37>
mov    -0x4(%rbp),%edi
call   1030 <isspace@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<my_isprint>:
push   %rbx
mov    %edi,%ebx
call   1040 <isprint@plt>
mov    %rax,%rcx
mov    $0x1,%eax
test   %rcx,%rcx
je     1137 <my_isprint+0x17>
pop    %rbx
ret
mov    %ebx,%edi
call   1030 <isspace@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
setne  %al
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @my_isprint(i32 %0) {
%2 = tail call i64 @isprint(i32 %0)
%3 = icmp eq i64 %2, 0
br i1 %3, label %4, label %8
4: ; preds = %1
%5 = tail call i64 @isspace(i32 %0)
%6 = icmp ne i64 %5, 0
%7 = zext i1 %6 to i32
br label %8
8: ; preds = %4, %1
%9 = phi i32 [ 1, %1 ], [ %7, %4 ]
ret i32 %9
}
/* Variables and functions */
int random();
int /*<<< orphan*/ srandom(int /*<<< orphan*/);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int get_random_port_numer() {
  srandom(time(NULL));
  return (random() % 10000 + 40000);
}


x86 assembly (clang, -O0):
<get_random_port_numer>:
push   %rbp
mov    %rsp,%rbp
xor    %eax,%eax
mov    %eax,%edi
call   1040 <time@plt>
mov    %eax,%edi
call   1030 <srandom@plt>
mov    $0x0,%al
call   1050 <random@plt>
mov    $0x2710,%ecx
cltd
idiv   %ecx
mov    %edx,%eax
add    $0x9c40,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_random_port_numer>:
push   %rax
xor    %edi,%edi
call   1040 <time@plt>
mov    %eax,%edi
call   1030 <srandom@plt>
xor    %eax,%eax
call   1050 <random@plt>
cltq
imul   $0x68db8bad,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x2c,%rcx
add    %edx,%ecx
imul   $0x2710,%ecx,%ecx
neg    %ecx
add    %ecx,%eax
add    $0x9c40,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @get_random_port_numer() {
%1 = call i32 @time(i32* null)
%2 = call i32 @srandom(i32 %1)
%3 = call i32 (...) @random()
%4 = srem i32 %3, 10000
%5 = add nsw i32 %4, 40000
ret i32 %5
}

LLVM IR (-O2):
define i32 @get_random_port_numer() {
%1 = tail call i32 @time(i32* null)
%2 = tail call i32 @srandom(i32 %1)
%3 = tail call i32 (...) @random()
%4 = srem i32 %3, 10000
%5 = add nsw i32 %4, 40000
ret i32 %5
}
void speex_notify(const char *str) {}


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

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

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

LLVM IR (-O2):
define void @speex_notify(i8* nocapture %0) {
ret void
}
/* Variables and functions */
double exp(float);
float silk_sigmoid(float x) { return (float)(1.0 / (1.0 + exp(-x))); }


x86 assembly (clang, -O0):
<silk_sigmoid>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
call   1030 <exp@plt>
movsd  0xec4(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  0xeb8(%rip),%xmm0
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<silk_sigmoid>:
push   %rax
xorpd  0xee7(%rip),%xmm0
call   1030 <exp@plt>
movsd  0xeea(%rip),%xmm1
addsd  %xmm1,%xmm0
divsd  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
pop    %rax
ret

LLVM IR (-O0):
define float @silk_sigmoid(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = fneg float %3
%5 = call double @exp(float %4)
%6 = fadd double 1.000000e+00, %5
%7 = fdiv double 1.000000e+00, %6
%8 = fptrunc double %7 to float
ret float %8
}

LLVM IR (-O2):
define float @silk_sigmoid(float %0) {
%2 = fneg float %0
%3 = tail call double @exp(float %2)
%4 = fadd double %3, 1.000000e+00
%5 = fdiv double 1.000000e+00, %4
%6 = fptrunc double %5 to float
ret float %6
}
int cmp_fn(const void *a, const void *b) {
  return *(const int *)a - *(const int *)b;
}


x86 assembly (clang, -O0):
<cmp_fn>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    -0x10(%rbp),%rcx
sub    (%rcx),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<cmp_fn>:
mov    (%rdi),%eax
sub    (%rsi),%eax
ret

LLVM IR (-O0):
define i32 @cmp_fn(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 = bitcast i8* %5 to i32*
%7 = load i32, i32* %6
%8 = load i8*, i8** %4
%9 = bitcast i8* %8 to i32*
%10 = load i32, i32* %9
%11 = sub nsw i32 %7, %10
ret i32 %11
}

LLVM IR (-O2):
define i32 @cmp_fn(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %0 to i32*
%4 = load i32, i32* %3
%5 = bitcast i8* %1 to i32*
%6 = load i32, i32* %5
%7 = sub nsw i32 %4, %6
ret i32 %7
}
/* Variables and functions */
scalar_t__ findword(char *);
int /*<<< orphan*/ scotferror(char *);
void efindword(char *s) {
  if (findword(s))
    scotferror(("Unexpected end of file"));
}


x86 assembly (clang, -O0):
<efindword>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <findword@plt>
cmp    $0x0,%rax
je     114b <efindword+0x2b>
lea    0xeba(%rip),%rdi
call   1040 <scotferror@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<efindword>:
push   %rax
call   1030 <findword@plt>
test   %rax,%rax
je     1138 <efindword+0x18>
lea    0xece(%rip),%rdi
pop    %rax
jmp    1040 <scotferror@plt>
pop    %rax
ret

LLVM IR (-O0):
@.str = [23 x i8] c"Unexpected end of file\00"
define void @efindword(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i64 @findword(i8* %3)
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 @scotferror(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
br label %8
8: ; preds = %6, %1
ret void
}

LLVM IR (-O2):
@.str = [23 x i8] c"Unexpected end of file\00"
define void @efindword(i8* %0) {
%2 = tail call i64 @findword(i8* %0)
%3 = icmp eq i64 %2, 0
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 @scotferror(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
br label %6
6: ; preds = %4, %1
ret void
}
/* Type definitions */
struct gengetopt_args_info {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ options_release(struct gengetopt_args_info *);
void options_free(struct gengetopt_args_info *args_info) {
  options_release(args_info);
}


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

x86 assembly (clang, -O2):
<options_free>:
jmp    1030 <options_release@plt>

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

LLVM IR (-O2):
%struct.gengetopt_args_info = type { i32 }
define void @options_free(%struct.gengetopt_args_info* %0) {
%2 = tail call i32 @options_release(%struct.gengetopt_args_info* %0)
ret void
}
int fun() {
  int y = 0;
  for (int x = 0; x < 10; x++) {
    y++;
    for (int x = 0; x < 10; x++) {
      y++;
    }
  }
  return y;
}


x86 assembly (clang, -O0):
<fun>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jge    1160 <fun+0x60>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0xa,-0xc(%rbp)
jge    114d <fun+0x4d>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    112c <fun+0x2c>
jmp    1152 <fun+0x52>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1112 <fun+0x12>
mov    -0x4(%rbp),%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @fun() {
ret i32 110
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int fun7() {
  printf("\nin fun7\n");
  return 8;
}


x86 assembly (clang, -O0):
<fun7>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
mov    $0x8,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [10 x i8] c"\0Ain fun7\0A\00"
define i32 @fun7() {
%1 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
ret i32 8
}

LLVM IR (-O2):
@str = [9 x i8] c"\0Ain fun7\00"
define i32 @fun7() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
ret i32 8
}
/* Variables and functions */
int check_name(char *, int, int);
int check_filename(char *name, int lax) { return check_name(name, 10, lax); }


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

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

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

LLVM IR (-O2):
define i32 @check_filename(i8* %0, i32 %1) {
%3 = tail call i32 @check_name(i8* %0, i32 10, i32 %1)
ret i32 %3
}
/* Type definitions */
typedef int /*<<< orphan*/ set;

/* Variables and functions */
int /*<<< orphan*/ find_power_set(char *, int);
int main() {
  char set[] = {'a', 'b', 'c'};
  find_power_set(set, sizeof(set) / sizeof(set[0]));
  return (0);
}


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

x86 assembly (clang, -O2):
<main>:
push   %rax
movb   $0x63,0x6(%rsp)
movw   $0x6261,0x4(%rsp)
lea    0x4(%rsp),%rdi
mov    $0x3,%esi
call   1030 <find_power_set@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@__const.main.set = [3 x i8] c"abc"
define i32 @main() {
%1 = alloca i32
%2 = alloca [3 x i8]
store i32 0, i32* %1
%3 = bitcast [3 x i8]* %2 to i8*
%4 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%5 = call i32 @find_power_set(i8* %4, i32 3)
ret i32 0
}

LLVM IR (-O2):
@__const.main.set = [3 x i8] c"abc"
define i32 @main() {
%1 = alloca [3 x i8]
%2 = getelementptr inbounds [3 x i8], [3 x i8]* %1, i64 0, i64 0
%3 = call i32 @find_power_set(i8* %2, i32 3)
ret i32 0
}
void foo746() {}


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

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

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

LLVM IR (-O2):
define void @foo746() {
ret void
}
unsigned long inl_p(unsigned short port) {
  unsigned long ret;
  asm volatile("inl (%%dx),%%eax"
               ";outb %%al,$0x80"
               : "=a"(ret)
               : "d"(port));
  return ret;
}


x86 assembly (clang, -O0):
<inl_p>:
push   %rbp
mov    %rsp,%rbp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
mov    -0x2(%rbp),%dx
in     (%dx),%eax
out    %al,$0x80
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<inl_p>:
mov    %edi,%edx
in     (%dx),%eax
out    %al,$0x80
ret

LLVM IR (-O0):
define i64 @inl_p(i16 zeroext %0) {
%2 = alloca i16
%3 = alloca i64
store i16 %0, i16* %2
%4 = load i16, i16* %2
%5 = call i64 asm sideeffect "inl (%dx),%eax;outb %al,$$0x80", "={ax},{dx},~{dirflag},~{fpsr},~{flags}"(i16 %4)
store i64 %5, i64* %3
%6 = load i64, i64* %3
ret i64 %6
}

LLVM IR (-O2):
define i64 @inl_p(i16 zeroext %0) {
%2 = tail call i64 asm sideeffect "inl (%dx),%eax;outb %al,$$0x80", "={ax},{dx},~{dirflag},~{fpsr},~{flags}"(i16 %0)
ret i64 %2
}
/* Variables and functions */
scalar_t__ __builtin_lfloorf(float);
int /*<<< orphan*/ link_failure_builtin_lfloorf();
void test_builtin_lfloorf(float f) {
  if (__builtin_lfloorf(f) != __builtin_lfloorf(f))
    link_failure_builtin_lfloorf();
}


x86 assembly (clang, -O0):
<test_builtin_lfloorf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
call   1030 <__builtin_lfloorf@plt>
mov    %rax,-0x10(%rbp)
movss  -0x4(%rbp),%xmm0
call   1030 <__builtin_lfloorf@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
cmp    %rcx,%rax
je     115c <test_builtin_lfloorf+0x3c>
mov    $0x0,%al
call   1040 <link_failure_builtin_lfloorf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_builtin_lfloorf>:
push   %rbx
sub    $0x10,%rsp
movss  %xmm0,0xc(%rsp)
call   1030 <__builtin_lfloorf@plt>
mov    %rax,%rbx
movss  0xc(%rsp),%xmm0
call   1030 <__builtin_lfloorf@plt>
cmp    %rax,%rbx
jne    1149 <test_builtin_lfloorf+0x29>
add    $0x10,%rsp
pop    %rbx
ret
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
jmp    1040 <link_failure_builtin_lfloorf@plt>

LLVM IR (-O0):
define void @test_builtin_lfloorf(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = call i64 @__builtin_lfloorf(float %3)
%5 = load float, float* %2
%6 = call i64 @__builtin_lfloorf(float %5)
%7 = icmp ne i64 %4, %6
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = call i32 (...) @link_failure_builtin_lfloorf()
br label %10
10: ; preds = %8, %1
ret void
}

LLVM IR (-O2):
define void @test_builtin_lfloorf(float %0) {
%2 = tail call i64 @__builtin_lfloorf(float %0)
%3 = tail call i64 @__builtin_lfloorf(float %0)
%4 = icmp eq i64 %2, %3
br i1 %4, label %7, label %5
5: ; preds = %1
%6 = tail call i32 (...) @link_failure_builtin_lfloorf()
br label %7
7: ; preds = %5, %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ lweslexdestroy();
void lwes_parse_esf_destroy(void) { lweslexdestroy(); }


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

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

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

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

/* Variables and functions */
int /*<<< orphan*/ longjmp(int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ setjmp(int /*<<< orphan*/);
int main(int argc, char **argv) {
  do {
    jmp_buf ex_buf__;
    if (!setjmp(ex_buf__)) {
      {
        printf("In Try Statement\n");
        longjmp(ex_buf__, 1);
        printf("I do not appear\n");
      }
    } else {
      { printf("Got Exception!\n"); }
    }
  } while (0);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x14(%rbp),%edi
call   1040 <setjmp@plt>
cmp    $0x0,%eax
jne    1170 <main+0x40>
lea    0xea2(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%edi
mov    $0x1,%esi
call   1050 <longjmp@plt>
lea    0xe9b(%rip),%rdi
call   1030 <printf@plt>
jmp    1181 <main+0x51>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
call   1040 <setjmp@plt>
test   %eax,%eax
je     114a <main+0x1a>
lea    0xed0(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret
lea    0xeaf(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%esi
call   1050 <longjmp@plt>

LLVM IR (-O0):
@.str = [18 x i8] c"In Try Statement\0A\00"
@.str.1 = [16 x i8] c"Got Exception!\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
br label %7
7: ; preds = %2
%8 = load i32, i32* %6
%9 = call i32 @setjmp(i32 %8)
%10 = icmp ne i32 %9, 0
br i1 %10, label %15, label %11
11: ; preds = %7
%12 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%13 = load i32, i32* %6
%14 = call i32 @longjmp(i32 %13, i32 1)
unreachable
15: ; preds = %7
%16 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
br label %17
17: ; preds = %15
br label %18
18: ; preds = %17
ret i32 0
}

LLVM IR (-O2):
@str = [17 x i8] c"In Try Statement\00"
@str.2 = [15 x i8] c"Got Exception!\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = call i32 @setjmp(i32 undef)
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %2
%6 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str, i64 0, i64 0))
%7 = call i32 @longjmp(i32 undef, i32 1)
unreachable
8: ; preds = %2
%9 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.2, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
char *dlerror();
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *, char *);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int _dlerror(char const *message, int ret) {
  fputs("modems: ", stderr);
  fprintf(stderr, "%s: %s\n", message, dlerror());
  return ret;
}


x86 assembly (clang, -O0):
<_dlerror>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    0x2e9a(%rip),%rax
mov    (%rax),%esi
lea    0xeb1(%rip),%rdi
call   1040 <fputs@plt>
mov    0x2e85(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    $0x0,%al
call   1030 <dlerror@plt>
mov    -0x1c(%rbp),%edi
mov    -0x18(%rbp),%rdx
mov    %rax,%rcx
lea    0xe89(%rip),%rsi
call   1050 <fprintf@plt>
mov    -0xc(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_dlerror>:
push   %rbp
push   %r14
push   %rbx
mov    %esi,%r14d
mov    %rdi,%rbx
mov    0x2e9f(%rip),%rbp
mov    0x0(%rbp),%esi
lea    0xeb5(%rip),%rdi
call   1040 <fputs@plt>
mov    0x0(%rbp),%ebp
xor    %eax,%eax
call   1030 <dlerror@plt>
lea    0xea8(%rip),%rsi
mov    %ebp,%edi
mov    %rbx,%rdx
mov    %rax,%rcx
call   1050 <fprintf@plt>
mov    %r14d,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [9 x i8] c"modems: \00"
@stderr = global i32 0
@.str.1 = [8 x i8] c"%s: %s\0A\00"
define i32 @_dlerror(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 = call i32 @fputs(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @stderr
%8 = load i8*, i8** %3
%9 = call i8* (...) @dlerror()
%10 = call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* %8, i8* %9)
%11 = load i32, i32* %4
ret i32 %11
}

LLVM IR (-O2):
@.str = [9 x i8] c"modems: \00"
@stderr = global i32 0
@.str.1 = [8 x i8] c"%s: %s\0A\00"
define i32 @_dlerror(i8* %0, i32 returned %1) {
%3 = load i32, i32* @stderr
%4 = tail call i32 @fputs(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @stderr
%6 = tail call i8* (...) @dlerror()
%7 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* %0, i8* %6)
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ local_laplacian_internal(float const *const, float *const,
                                            int const, int const, float const,
                                            float const, float const,
                                            float const, int /*<<< orphan*/);
void local_laplacian(const float *const input, float *const out, const int wd,
                     const int ht, const float sigma, const float shadows,
                     const float highlights, const float clarity) {
  local_laplacian_internal(input, out, wd, ht, sigma, shadows, highlights,
                           clarity, 0);
}


x86 assembly (clang, -O0):
<local_laplacian>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
movss  %xmm0,-0x1c(%rbp)
movss  %xmm1,-0x20(%rbp)
movss  %xmm2,-0x24(%rbp)
movss  %xmm3,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
movss  -0x1c(%rbp),%xmm0
movss  -0x20(%rbp),%xmm1
movss  -0x24(%rbp),%xmm2
movss  -0x28(%rbp),%xmm3
xor    %r8d,%r8d
call   1030 <local_laplacian_internal@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<local_laplacian>:
xor    %r8d,%r8d
jmp    1030 <local_laplacian_internal@plt>

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

LLVM IR (-O2):
define void @local_laplacian(float* %0, float* %1, i32 %2, i32 %3, float %4, float %5, float %6, float %7) {
%9 = tail call i32 @local_laplacian_internal(float* %0, float* %1, i32 %2, i32 %3, float %4, float %5, float %6, float %7, i32 0)
ret void
}
struct bwb_line *bwb_DEFINT(struct bwb_line *l) {
  bwx_DEBUG(__FUNCTION__);
  var_defx(l, 1);
  return bwb_zline(l);
}


x86 assembly (clang, -O0):
<bwb_DEFINT>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xebd(%rip),%rdi
mov    $0x0,%al
call   1040 <bwx_DEBUG@plt>
mov    -0x8(%rbp),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1030 <var_defx@plt>
mov    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1050 <bwb_zline@plt>
cltq
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bwb_DEFINT>:
push   %rbx
mov    %rdi,%rbx
lea    0xec5(%rip),%rdi
xor    %eax,%eax
call   1040 <bwx_DEBUG@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <var_defx@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <bwb_zline@plt>
cltq
pop    %rbx
ret

LLVM IR (-O0):
%struct.bwb_line = type opaque
@__FUNCTION__.bwb_DEFINT = [11 x i8] c"bwb_DEFINT\00"
define %struct.bwb_line* @bwb_DEFINT(%struct.bwb_line* %0) {
%2 = alloca %struct.bwb_line*
store %struct.bwb_line* %0, %struct.bwb_line** %2
%3 = call i32 (i8*, ...) bitcast (i32 (...)* @bwx_DEBUG to i32 (i8*, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @__FUNCTION__.bwb_DEFINT, i64 0, i64 0))
%4 = load %struct.bwb_line*, %struct.bwb_line** %2
%5 = call i32 (%struct.bwb_line*, i32, ...) bitcast (i32 (...)* @var_defx to i32 (%struct.bwb_line*, i32, ...)*)(%struct.bwb_line* %4, i32 1)
%6 = load %struct.bwb_line*, %struct.bwb_line** %2
%7 = call i32 (%struct.bwb_line*, ...) bitcast (i32 (...)* @bwb_zline to i32 (%struct.bwb_line*, ...)*)(%struct.bwb_line* %6)
%8 = sext i32 %7 to i64
%9 = inttoptr i64 %8 to %struct.bwb_line*
ret %struct.bwb_line* %9
}

LLVM IR (-O2):
%struct.bwb_line = type opaque
@__FUNCTION__.bwb_DEFINT = [11 x i8] c"bwb_DEFINT\00"
define %struct.bwb_line* @bwb_DEFINT(%struct.bwb_line* %0) {
%2 = tail call i32 (i8*, ...) bitcast (i32 (...)* @bwx_DEBUG to i32 (i8*, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @__FUNCTION__.bwb_DEFINT, i64 0, i64 0))
%3 = tail call i32 (%struct.bwb_line*, i32, ...) bitcast (i32 (...)* @var_defx to i32 (%struct.bwb_line*, i32, ...)*)(%struct.bwb_line* %0, i32 1)
%4 = tail call i32 (%struct.bwb_line*, ...) bitcast (i32 (...)* @bwb_zline to i32 (%struct.bwb_line*, ...)*)(%struct.bwb_line* %0)
%5 = sext i32 %4 to i64
%6 = inttoptr i64 %5 to %struct.bwb_line*
ret %struct.bwb_line* %6
}
/* Variables and functions */
int sv_get_current_signal_level(int, int);
int vox_get_current_signal_level(int slot, int channel) {
  return sv_get_current_signal_level(slot, channel);
}


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

x86 assembly (clang, -O2):
<vox_get_current_signal_level>:
jmp    1030 <sv_get_current_signal_level@plt>

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

LLVM IR (-O2):
define i32 @vox_get_current_signal_level(i32 %0, i32 %1) {
%3 = tail call i32 @sv_get_current_signal_level(i32 %0, i32 %1)
ret i32 %3
}
void SDHostCardErrorMaskSet(unsigned long ulBase, unsigned long ulErrMask) {
  (*((volatile unsigned long *)(ulBase + 0x00000124))) = ulErrMask;
}


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

x86 assembly (clang, -O2):
<SDHostCardErrorMaskSet>:
mov    %rsi,0x124(%rdi)
ret

LLVM IR (-O0):
define void @SDHostCardErrorMaskSet(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%5 = load i64, i64* %4
%6 = load i64, i64* %3
%7 = add i64 %6, 292
%8 = inttoptr i64 %7 to i64*
store volatile i64 %5, i64* %8
ret void
}

LLVM IR (-O2):
define void @SDHostCardErrorMaskSet(i64 %0, i64 %1) {
%3 = add i64 %0, 292
%4 = inttoptr i64 %3 to i64*
store volatile i64 %1, i64* %4
ret void
}
void path_019_expected_4(int a, int b) {
  if (a > 10) {
    while (a) {
      if (b == 1) {
        break;
      }
    }
  }
}


x86 assembly (clang, -O0):
<path_019_expected_4>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
cmpl   $0xa,-0x4(%rbp)
jle    113c <path_019_expected_4+0x3c>
jmp    1119 <path_019_expected_4+0x19>
cmpl   $0x0,-0x4(%rbp)
je     1137 <path_019_expected_4+0x37>
cmpl   $0x1,-0x8(%rbp)
jne    1132 <path_019_expected_4+0x32>
jmp    1137 <path_019_expected_4+0x37>
jmp    1119 <path_019_expected_4+0x19>
jmp    113c <path_019_expected_4+0x3c>
pop    %rbp
ret

x86 assembly (clang, -O2):
<path_019_expected_4>:
cmp    $0xb,%edi
jl     1112 <path_019_expected_4+0x12>
cmp    $0x1,%esi
je     1112 <path_019_expected_4+0x12>
nopw   0x0(%rax,%rax,1)
jmp    1110 <path_019_expected_4+0x10>
ret

LLVM IR (-O0):
define void @path_019_expected_4(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 = icmp sgt i32 %5, 10
br i1 %6, label %7, label %17
7: ; preds = %2
br label %8
8: ; preds = %15, %7
%9 = load i32, i32* %3
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %16
11: ; preds = %8
%12 = load i32, i32* %4
%13 = icmp eq i32 %12, 1
br i1 %13, label %14, label %15
14: ; preds = %11
br label %16
15: ; preds = %11
br label %8
16: ; preds = %14, %8
br label %17
17: ; preds = %16, %2
ret void
}

LLVM IR (-O2):
define void @path_019_expected_4(i32 %0, i32 %1) {
%3 = icmp slt i32 %0, 11
%4 = icmp eq i32 %1, 1
%5 = or i1 %3, %4
br i1 %5, label %7, label %6
6: ; preds = %2, %6
br label %6
7: ; preds = %2
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
void dec_do_bin(int liczba) {
  if (liczba > 0) {
    printf("%d", liczba % 2);
    dec_do_bin(liczba / 2);
  }
}


x86 assembly (clang, -O0):
<dec_do_bin>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jle    1160 <dec_do_bin+0x40>
mov    -0x4(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %edx,%esi
lea    0xeb7(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%edi
call   1040 <dec_do_bin@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dec_do_bin>:
push   %rbp
push   %r14
push   %rbx
test   %edi,%edi
jle    1146 <dec_do_bin+0x36>
mov    %edi,%ebx
lea    0xedf(%rip),%r14
mov    %edi,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %ebx,%esi
and    $0x1,%esi
mov    %r14,%rdi
call   1030 <printf@plt>
shr    %ebp
cmp    $0x1,%ebx
mov    %ebp,%ebx
ja     1130 <dec_do_bin+0x20>
pop    %rbx
pop    %r14
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define void @dec_do_bin(i32 %0) {
%2 = icmp sgt i32 %0, 0
br i1 %2, label %3, label %9
3: ; preds = %1, %3
%4 = phi i32 [ %7, %3 ], [ %0, %1 ]
%5 = and i32 %4, 1
%6 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = lshr i32 %4, 1
%8 = icmp ult i32 %4, 2
br i1 %8, label %9, label %3
9: ; preds = %3, %1
ret void
}
unsigned xrop3_186_1_0(unsigned char s, unsigned char t) {
  unsigned D = 0x00ff;
  unsigned S = ((unsigned)s << 8) | s;
  unsigned T = ((unsigned)t << 8) | t;
  unsigned stk1;
  unsigned stk2;
  unsigned stk3;
  stk3 = ~S;
  stk2 = T & stk3;
  stk1 = D | stk2;
  return (stk1 & (~S)) | (D & S);
}


x86 assembly (clang, -O0):
<xrop3_186_1_0>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %al,-0x2(%rbp)
movl   $0xff,-0x8(%rbp)
movzbl -0x1(%rbp),%eax
shl    $0x8,%eax
movzbl -0x1(%rbp),%ecx
or     %ecx,%eax
mov    %eax,-0xc(%rbp)
movzbl -0x2(%rbp),%eax
shl    $0x8,%eax
movzbl -0x2(%rbp),%ecx
or     %ecx,%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
xor    $0xffffffff,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%eax
and    -0x1c(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%eax
or     -0x18(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    -0xc(%rbp),%ecx
xor    $0xffffffff,%ecx
and    %ecx,%eax
mov    -0x8(%rbp),%ecx
and    -0xc(%rbp),%ecx
or     %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<xrop3_186_1_0>:
shl    $0x8,%edi
shl    $0x8,%esi
not    %edi
and    %esi,%edi
lea    0xff(%rdi),%eax
ret

LLVM IR (-O0):
define i32 @xrop3_186_1_0(i8 zeroext %0, i8 zeroext %1) {
%3 = alloca i8
%4 = alloca i8
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i8 %0, i8* %3
store i8 %1, i8* %4
store i32 255, i32* %5
%11 = load i8, i8* %3
%12 = zext i8 %11 to i32
%13 = shl i32 %12, 8
%14 = load i8, i8* %3
%15 = zext i8 %14 to i32
%16 = or i32 %13, %15
store i32 %16, i32* %6
%17 = load i8, i8* %4
%18 = zext i8 %17 to i32
%19 = shl i32 %18, 8
%20 = load i8, i8* %4
%21 = zext i8 %20 to i32
%22 = or i32 %19, %21
store i32 %22, i32* %7
%23 = load i32, i32* %6
%24 = xor i32 %23, -1
store i32 %24, i32* %10
%25 = load i32, i32* %7
%26 = load i32, i32* %10
%27 = and i32 %25, %26
store i32 %27, i32* %9
%28 = load i32, i32* %5
%29 = load i32, i32* %9
%30 = or i32 %28, %29
store i32 %30, i32* %8
%31 = load i32, i32* %8
%32 = load i32, i32* %6
%33 = xor i32 %32, -1
%34 = and i32 %31, %33
%35 = load i32, i32* %5
%36 = load i32, i32* %6
%37 = and i32 %35, %36
%38 = or i32 %34, %37
ret i32 %38
}

LLVM IR (-O2):
define i32 @xrop3_186_1_0(i8 zeroext %0, i8 zeroext %1) {
%3 = zext i8 %0 to i32
%4 = shl nuw nsw i32 %3, 8
%5 = zext i8 %1 to i32
%6 = shl nuw nsw i32 %5, 8
%7 = xor i32 %4, -1
%8 = and i32 %6, %7
%9 = or i32 %8, 255
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ free(int *);
int *malloc(int);
int /*<<< orphan*/ printf(char *, int, int, int, int);
int main() {
  int n1;
  int n2;
  int *p;
  int *q;
  n1 = 10;
  n2 = 20;
  p = malloc(sizeof(int));
  q = malloc(sizeof(int));
  *p = 30;
  p = q;
  *q = 40;
  printf("n1: %d n2: %d *p: %d *q: %d\n", n1, n2, *p, *q);
  free(p);
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xa,-0x8(%rbp)
movl   $0x14,-0xc(%rbp)
mov    $0x4,%edi
call   1050 <malloc@plt>
mov    %rax,-0x18(%rbp)
mov    $0x4,%edi
call   1050 <malloc@plt>
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rax
movl   $0x1e,(%rax)
mov    -0x20(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x20(%rbp),%rax
movl   $0x28,(%rax)
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x18(%rbp),%rax
mov    (%rax),%ecx
mov    -0x20(%rbp),%rax
mov    (%rax),%r8d
lea    0xe61(%rip),%rdi
call   1040 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0x4,%edi
call   1050 <malloc@plt>
mov    $0x4,%edi
call   1050 <malloc@plt>
mov    %rax,%rbx
movl   $0x28,(%rax)
lea    0xeab(%rip),%rdi
mov    $0xa,%esi
mov    $0x14,%edx
mov    $0x28,%ecx
mov    $0x28,%r8d
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [29 x i8] c"n1: %d n2: %d *p: %d *q: %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32*
%5 = alloca i32*
store i32 0, i32* %1
store i32 10, i32* %2
store i32 20, i32* %3
%6 = call i32* @malloc(i32 4)
store i32* %6, i32** %4
%7 = call i32* @malloc(i32 4)
store i32* %7, i32** %5
%8 = load i32*, i32** %4
store i32 30, i32* %8
%9 = load i32*, i32** %5
store i32* %9, i32** %4
%10 = load i32*, i32** %5
store i32 40, i32* %10
%11 = load i32, i32* %2
%12 = load i32, i32* %3
%13 = load i32*, i32** %4
%14 = load i32, i32* %13
%15 = load i32*, i32** %5
%16 = load i32, i32* %15
%17 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i32 %11, i32 %12, i32 %14, i32 %16)
%18 = load i32*, i32** %4
%19 = call i32 @free(i32* %18)
ret i32 0
}

LLVM IR (-O2):
@.str = [29 x i8] c"n1: %d n2: %d *p: %d *q: %d\0A\00"
define i32 @main() {
%1 = tail call i32* @malloc(i32 4)
%2 = tail call i32* @malloc(i32 4)
store i32 40, i32* %2
%3 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i32 10, i32 20, i32 40, i32 40)
%4 = tail call i32 @free(i32* %2)
ret i32 0
}
/* Variables and functions */
double log(double);
double logBase_fun_double(double a, double b) { return log(b) / log(a); }


x86 assembly (clang, -O0):
<logBase_fun_double>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
call   1030 <log@plt>
movsd  %xmm0,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1030 <log@plt>
movaps %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
divsd  %xmm1,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<logBase_fun_double>:
sub    $0x18,%rsp
movsd  %xmm0,0x10(%rsp)
movaps %xmm1,%xmm0
call   1030 <log@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
call   1030 <log@plt>
movsd  0x8(%rsp),%xmm1
divsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define double @logBase_fun_double(double %0, double %1) {
%3 = alloca double
%4 = alloca double
store double %0, double* %3
store double %1, double* %4
%5 = load double, double* %4
%6 = call double @log(double %5)
%7 = load double, double* %3
%8 = call double @log(double %7)
%9 = fdiv double %6, %8
ret double %9
}

LLVM IR (-O2):
define double @logBase_fun_double(double %0, double %1) {
%3 = tail call double @log(double %1)
%4 = tail call double @log(double %0)
%5 = fdiv double %3, %4
ret double %5
}