xunge/DecIR huggingface dataset:
signed char IsPreprocDecoderRule(char rule_type) {
  if ((rule_type == 1) || (rule_type == 2))
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<IsPreprocDecoderRule>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x2(%rbp)
movsbl -0x2(%rbp),%eax
cmp    $0x1,%eax
je     1124 <IsPreprocDecoderRule+0x24>
movsbl -0x2(%rbp),%eax
cmp    $0x2,%eax
jne    112d <IsPreprocDecoderRule+0x2d>
movb   $0x1,-0x1(%rbp)
jmp    1131 <IsPreprocDecoderRule+0x31>
movb   $0x0,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<IsPreprocDecoderRule>:
add    $0xff,%dil
cmp    $0x2,%dil
setb   %al
ret

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

LLVM IR (-O2):
define signext i8 @IsPreprocDecoderRule(i8 signext %0) {
%2 = add i8 %0, -1
%3 = icmp ult i8 %2, 2
%4 = zext i1 %3 to i8
ret i8 %4
}
/* Type definitions */
typedef int /*<<< orphan*/ mode_t;
typedef int /*<<< orphan*/ dev_t;

/* Variables and functions */
int O_CREAT;
int O_EXCL;
int /*<<< orphan*/ close(int);
int open(char const *, int, int /*<<< orphan*/);
int mknod(const char *path, mode_t mode, dev_t dev) {
  int tmpfd;
  if ((tmpfd = open(path, O_CREAT | O_EXCL, mode)) == -1) {
    return (-1);
  }
  (void)close(tmpfd);
  return (0);
}


x86 assembly (clang, -O0):
<mknod>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %edx,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
mov    0x2ebb(%rip),%rax
mov    (%rax),%esi
mov    0x2e92(%rip),%rax
or     (%rax),%esi
mov    -0x14(%rbp),%edx
call   1040 <open@plt>
mov    %eax,-0x1c(%rbp)
cmp    $0xffffffff,%eax
jne    1168 <mknod+0x48>
movl   $0xffffffff,-0x4(%rbp)
jmp    1177 <mknod+0x57>
mov    -0x1c(%rbp),%edi
call   1030 <close@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mknod>:
push   %rax
mov    %esi,%edx
mov    0x2ece(%rip),%rax
mov    0x2ea7(%rip),%rcx
mov    (%rcx),%esi
or     (%rax),%esi
call   1040 <open@plt>
cmp    $0xffffffff,%eax
je     114a <mknod+0x2a>
mov    %eax,%edi
call   1030 <close@plt>
xor    %eax,%eax
pop    %rcx
ret
mov    $0xffffffff,%eax
pop    %rcx
ret

LLVM IR (-O0):
@O_CREAT = global i32 0
@O_EXCL = global i32 0
define i32 @mknod(i8* %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i8* %0, i8** %5
store i32 %1, i32* %6
store i32 %2, i32* %7
%9 = load i8*, i8** %5
%10 = load i32, i32* @O_CREAT
%11 = load i32, i32* @O_EXCL
%12 = or i32 %10, %11
%13 = load i32, i32* %6
%14 = call i32 @open(i8* %9, i32 %12, i32 %13)
store i32 %14, i32* %8
%15 = icmp eq i32 %14, -1
br i1 %15, label %16, label %17
16: ; preds = %3
store i32 -1, i32* %4
br label %20
17: ; preds = %3
%18 = load i32, i32* %8
%19 = call i32 @close(i32 %18)
store i32 0, i32* %4
br label %20
20: ; preds = %17, %16
%21 = load i32, i32* %4
ret i32 %21
}

LLVM IR (-O2):
@O_CREAT = global i32 0
@O_EXCL = global i32 0
define i32 @mknod(i8* nocapture %0, i32 %1, i32 %2) {
%4 = load i32, i32* @O_CREAT
%5 = load i32, i32* @O_EXCL
%6 = or i32 %5, %4
%7 = tail call i32 @open(i8* %0, i32 %6, i32 %1)
%8 = icmp eq i32 %7, -1
br i1 %8, label %11, label %9
9: ; preds = %3
%10 = tail call i32 @close(i32 %7)
br label %11
11: ; preds = %3, %9
%12 = phi i32 [ 0, %9 ], [ -1, %3 ]
ret i32 %12
}
/* Variables and functions */
int INT_MAX;
int /*<<< orphan*/ this_comparison_is_not_decidable();
void bla4ge(int var) {
  if (var - 10 >= INT_MAX - 10)
    this_comparison_is_not_decidable();
}


x86 assembly (clang, -O0):
<bla4ge>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
sub    $0xa,%eax
mov    0x2ec0(%rip),%rcx
mov    (%rcx),%ecx
sub    $0xa,%ecx
cmp    %ecx,%eax
jl     113c <bla4ge+0x2c>
mov    $0x0,%al
call   1030 <this_comparison_is_not_decidable@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bla4ge>:
mov    0x2ed1(%rip),%rax
cmp    %edi,(%rax)
jle    111c <bla4ge+0xc>
ret
xor    %eax,%eax
jmp    1030 <this_comparison_is_not_decidable@plt>

LLVM IR (-O0):
@INT_MAX = global i32 0
define void @bla4ge(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = sub nsw i32 %3, 10
%5 = load i32, i32* @INT_MAX
%6 = sub nsw i32 %5, 10
%7 = icmp sge i32 %4, %6
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = call i32 (...) @this_comparison_is_not_decidable()
br label %10
10: ; preds = %8, %1
ret void
}

LLVM IR (-O2):
@INT_MAX = global i32 0
define void @bla4ge(i32 %0) {
%2 = load i32, i32* @INT_MAX
%3 = icmp sgt i32 %2, %0
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 (...) @this_comparison_is_not_decidable()
br label %6
6: ; preds = %4, %1
ret void
}
int main() { return sizeof(unsigned int); }


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

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

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

LLVM IR (-O2):
define i32 @main() {
ret i32 4
}
/* Variables and functions */
int /*<<< orphan*/ Scl_ConGetInSlew(int);
float Scl_Int2Flt(int /*<<< orphan*/);
float Scl_ConGetInSlewFloat(int i) { return Scl_Int2Flt(Scl_ConGetInSlew(i)); }


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

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

LLVM IR (-O0):
define float @Scl_ConGetInSlewFloat(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @Scl_ConGetInSlew(i32 %3)
%5 = call float @Scl_Int2Flt(i32 %4)
ret float %5
}

LLVM IR (-O2):
define float @Scl_ConGetInSlewFloat(i32 %0) {
%2 = tail call i32 @Scl_ConGetInSlew(i32 %0)
%3 = tail call float @Scl_Int2Flt(i32 %2)
ret float %3
}
void reset_vec(double *a, int n) {
  register int i;
  for (i = 0; i < n; i++)
    a[i] = 0.0;
}


x86 assembly (clang, -O0):
<reset_vec>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    113c <reset_vec+0x3c>
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1112 <reset_vec+0x12>
pop    %rbp
ret

x86 assembly (clang, -O2):
<reset_vec>:
test   %esi,%esi
jle    1126 <reset_vec+0x16>
push   %rax
mov    %esi,%edx
shl    $0x3,%rdx
xor    %esi,%esi
call   1030 <memset@plt>
add    $0x8,%rsp
ret

LLVM IR (-O0):
define void @reset_vec(double* %0, i32 %1) {
%3 = alloca double*
%4 = alloca i32
%5 = alloca i32
store double* %0, double** %3
store i32 %1, i32* %4
store i32 0, i32* %5
br label %6
6: ; preds = %15, %2
%7 = load i32, i32* %5
%8 = load i32, i32* %4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %18
10: ; preds = %6
%11 = load double*, double** %3
%12 = load i32, i32* %5
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds double, double* %11, i64 %13
store double 0.000000e+00, double* %14
br label %15
15: ; preds = %10
%16 = load i32, i32* %5
%17 = add nsw i32 %16, 1
store i32 %17, i32* %5
br label %6
18: ; preds = %6
ret void
}

LLVM IR (-O2):
define void @reset_vec(double* nocapture writeonly %0, i32 %1) {
%3 = icmp sgt i32 %1, 0
br i1 %3, label %4, label %8
4: ; preds = %2
%5 = bitcast double* %0 to i8*
%6 = zext i32 %1 to i64
%7 = shl nuw nsw i64 %6, 3
br label %8
8: ; preds = %4, %2
ret void
}
int isASCIIcompat_char(char char_val) {
  return (char_val == 0x09 || char_val == 0x0A || char_val == 0x0D ||
          (0x20 <= char_val && char_val <= 0x7F));
}


x86 assembly (clang, -O0):
<isASCIIcompat_char>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x9,%ecx
mov    %al,-0x2(%rbp)
je     1169 <isASCIIcompat_char+0x69>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0xa,%ecx
mov    %al,-0x2(%rbp)
je     1169 <isASCIIcompat_char+0x69>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0xd,%ecx
mov    %al,-0x2(%rbp)
je     1169 <isASCIIcompat_char+0x69>
movsbl -0x1(%rbp),%edx
xor    %eax,%eax
mov    $0x20,%ecx
cmp    %edx,%ecx
mov    %al,-0x3(%rbp)
jg     1163 <isASCIIcompat_char+0x63>
movsbl -0x1(%rbp),%eax
cmp    $0x7f,%eax
setle  %al
mov    %al,-0x3(%rbp)
mov    -0x3(%rbp),%al
mov    %al,-0x2(%rbp)
mov    -0x2(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<isASCIIcompat_char>:
cmp    $0xd,%dil
ja     111b <isASCIIcompat_char+0x1b>
mov    $0x1,%eax
movzbl %dil,%ecx
mov    $0x2600,%edx
bt     %rcx,%rdx
jae    111b <isASCIIcompat_char+0x1b>
ret
xor    %eax,%eax
cmp    $0x20,%dil
setge  %al
ret

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

LLVM IR (-O2):
define i32 @isASCIIcompat_char(i8 signext %0) {
switch i8 %0, label %2 [
i8 13, label %5
i8 10, label %5
i8 9, label %5
]
2: ; preds = %1
%3 = icmp sgt i8 %0, 31
%4 = zext i1 %3 to i32
br label %5
5: ; preds = %1, %1, %1, %2
%6 = phi i32 [ 1, %1 ], [ %4, %2 ], [ 1, %1 ], [ 1, %1 ]
ret i32 %6
}
unsigned long PL_lpc_base_address(void) { return 0xA000; }


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

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

LLVM IR (-O0):
define i64 @PL_lpc_base_address() {
ret i64 40960
}

LLVM IR (-O2):
define i64 @PL_lpc_base_address() {
ret i64 40960
}
free_array(array) char **array;
{
  while (*array)
    free(*array++);
}


x86 assembly (clang, -O0):
<free_array>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cmpq   $0x0,(%rax)
je     1146 <free_array+0x36>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x10(%rbp)
mov    (%rax),%rdi
call   1030 <free@plt>
jmp    111c <free_array+0xc>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<free_array>:
push   %rbx
mov    %rdi,%rbx
mov    (%rdi),%rdi
test   %rdi,%rdi
je     1131 <free_array+0x21>
add    $0x8,%rbx
call   1030 <free@plt>
mov    (%rbx),%rdi
add    $0x8,%rbx
test   %rdi,%rdi
jne    1120 <free_array+0x10>
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @free_array(i8** nocapture %0) {
%2 = load i8*, i8** %0
%3 = icmp eq i8* %2, null
br i1 %3, label %10, label %4
4: ; preds = %1, %4
%5 = phi i8* [ %8, %4 ], [ %2, %1 ]
%6 = phi i8** [ %7, %4 ], [ %0, %1 ]
%7 = getelementptr inbounds i8*, i8** %6, i64 1
tail call void @free(i8* %5)
%8 = load i8*, i8** %7
%9 = icmp eq i8* %8, null
br i1 %9, label %10, label %4
10: ; preds = %4, %1
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ init_sin_of_distance();
void init_cached_geometry() { init_sin_of_distance(); }


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

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

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

LLVM IR (-O2):
define void @init_cached_geometry() {
%1 = tail call i32 (...) @init_sin_of_distance()
ret void
}
/* Variables and functions */
int write(int, char *, int);
int sendack(int sock) {
  int bsent;
  bsent = write(sock, "ACK", sizeof("ACK"));
  if (bsent < sizeof("ACK"))
    return (-1);
  return 0;
}


x86 assembly (clang, -O0):
<sendack>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%edi
lea    0xedb(%rip),%rsi
mov    $0x4,%edx
call   1030 <write@plt>
mov    %eax,-0xc(%rbp)
movslq -0xc(%rbp),%rax
cmp    $0x4,%rax
jae    114c <sendack+0x3c>
movl   $0xffffffff,-0x4(%rbp)
jmp    1153 <sendack+0x43>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sendack>:
push   %rax
lea    0xee8(%rip),%rsi
mov    $0x4,%edx
call   1030 <write@plt>
cmp    $0x4,%eax
sbb    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [4 x i8] c"ACK\00"
define i32 @sendack(i32 %0) {
%2 = tail call i32 @write(i32 %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 4)
%3 = icmp ult i32 %2, 4
%4 = sext i1 %3 to i32
ret i32 %4
}
_Complex long double pass_complex_longdouble(_Complex long double arg) {
  return arg;
}


x86 assembly (clang, -O0):
<pass_complex_longdouble>:
push   %rbp
mov    %rsp,%rbp
lea    0x10(%rbp),%rax
fldt   (%rax)
fldt   0x10(%rax)
fxch   %st(1)
fstpt  -0x20(%rbp)
fstpt  -0x10(%rbp)
fldt   -0x10(%rbp)
fldt   -0x20(%rbp)
pop    %rbp
ret

x86 assembly (clang, -O2):
<pass_complex_longdouble>:
fldt   0x8(%rsp)
fldt   0x18(%rsp)
fxch   %st(1)
ret

LLVM IR (-O0):
define { x86_fp80, x86_fp80 } @pass_complex_longdouble({ x86_fp80, x86_fp80 }* byval({ x86_fp80, x86_fp80 }) align 16 %0) {
%2 = alloca { x86_fp80, x86_fp80 }
%3 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %0, i32 0, i32 0
%4 = load x86_fp80, x86_fp80* %3
%5 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %0, i32 0, i32 1
%6 = load x86_fp80, x86_fp80* %5
%7 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %2, i32 0, i32 0
%8 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %2, i32 0, i32 1
store x86_fp80 %4, x86_fp80* %7
store x86_fp80 %6, x86_fp80* %8
%9 = load { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %2
ret { x86_fp80, x86_fp80 } %9
}

LLVM IR (-O2):
define { x86_fp80, x86_fp80 } @pass_complex_longdouble({ x86_fp80, x86_fp80 }* nocapture byval({ x86_fp80, x86_fp80 }) align 16 %0) {
%2 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %0, i64 0, i32 0
%3 = load x86_fp80, x86_fp80* %2
%4 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %0, i64 0, i32 1
%5 = load x86_fp80, x86_fp80* %4
%6 = insertvalue { x86_fp80, x86_fp80 } poison, x86_fp80 %3, 0
%7 = insertvalue { x86_fp80, x86_fp80 } %6, x86_fp80 %5, 1
ret { x86_fp80, x86_fp80 } %7
}
void ARGBToUVRow_C() {}


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

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

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

LLVM IR (-O2):
define void @ARGBToUVRow_C() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int, float, double);
main() {
  int var;
  int Var;
  float this_is_float_var;
  double ThisIsDoubleVar;
  var = 10;
  Var = 20;
  this_is_float_var = 3.14;
  ThisIsDoubleVar = 123456789.1234;
  printf("var = %d, %d, %f, %f\n", var, Var, this_is_float_var,
         ThisIsDoubleVar);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0xa,-0x4(%rbp)
movl   $0x14,-0x8(%rbp)
movss  0xeda(%rip),%xmm0
movss  %xmm0,-0xc(%rbp)
movsd  0xec5(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x8(%rbp),%edx
movss  -0xc(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
lea    0xeb5(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xef8(%rip),%rdi
movss  0xee0(%rip),%xmm0
movsd  0xee0(%rip),%xmm1
mov    $0xa,%esi
mov    $0x14,%edx
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [22 x i8] c"var = %d, %d, %f, %f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca float
%4 = alloca double
store i32 10, i32* %1
store i32 20, i32* %2
store float 0x40091EB860000000, float* %3
store double 0x419D6F34547E5C92, double* %4
%5 = load i32, i32* %1
%6 = load i32, i32* %2
%7 = load float, float* %3
%8 = load double, double* %4
%9 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %5, i32 %6, float %7, double %8)
ret i32 0
}

LLVM IR (-O2):
@.str = [22 x i8] c"var = %d, %d, %f, %f\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 10, i32 20, float 0x40091EB860000000, double 0x419D6F34547E5C92)
ret i32 0
}
void scale2x_mmx_emms(void) { __asm__ __volatile__("emms"); }


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

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

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

LLVM IR (-O2):
define void @scale2x_mmx_emms() {
tail call void asm sideeffect "emms", "~{dirflag},~{fpsr},~{flags}"()
ret void
}
/* Variables and functions */
int nvidia_mcp_gpio_set(int, int /*<<< orphan*/);
int nvidia_mcp_gpio4_lower(void) { return nvidia_mcp_gpio_set(0x04, 0); }


x86 assembly (clang, -O0):
<nvidia_mcp_gpio4_lower>:
push   %rbp
mov    %rsp,%rbp
mov    $0x4,%edi
xor    %esi,%esi
call   1030 <nvidia_mcp_gpio_set@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<nvidia_mcp_gpio4_lower>:
mov    $0x4,%edi
xor    %esi,%esi
jmp    1030 <nvidia_mcp_gpio_set@plt>

LLVM IR (-O0):
define i32 @nvidia_mcp_gpio4_lower() {
%1 = call i32 @nvidia_mcp_gpio_set(i32 4, i32 0)
ret i32 %1
}

LLVM IR (-O2):
define i32 @nvidia_mcp_gpio4_lower() {
%1 = tail call i32 @nvidia_mcp_gpio_set(i32 4, i32 0)
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
void print_int(void *d) {
  int a = *((int *)d);
  printf("El entero vale %i\n", a);
}


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

x86 assembly (clang, -O2):
<print_int>:
mov    (%rdi),%esi
lea    0xee7(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [19 x i8] c"El entero vale %i\0A\00"
define void @print_int(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = bitcast i8* %4 to i32*
%6 = load i32, i32* %5
store i32 %6, i32* %3
%7 = load i32, i32* %3
%8 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i32 %7)
ret void
}

LLVM IR (-O2):
@.str = [19 x i8] c"El entero vale %i\0A\00"
define void @print_int(i8* nocapture %0) {
%2 = bitcast i8* %0 to i32*
%3 = load i32, i32* %2
%4 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i32 %3)
ret void
}
/* Variables and functions */
int fdt_next_node(void const *, int, int *);
int fdt_first_subnode(const void *fdt, int offset) {
  int depth = 0;
  offset = fdt_next_node(fdt, offset, &depth);
  if (offset < 0 || depth != 1)
    return -1;
  return offset;
}


x86 assembly (clang, -O0):
<fdt_first_subnode>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
lea    -0x18(%rbp),%rdx
call   1030 <fdt_next_node@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jl     114d <fdt_first_subnode+0x3d>
cmpl   $0x1,-0x18(%rbp)
je     1159 <fdt_first_subnode+0x49>
movl   $0xffffffff,-0x4(%rbp)
jmp    115f <fdt_first_subnode+0x4f>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fdt_first_subnode>:
push   %rax
movl   $0x0,0x4(%rsp)
lea    0x4(%rsp),%rdx
call   1030 <fdt_next_node@plt>
cmpl   $0x1,0x4(%rsp)
mov    $0xffffffff,%edx
mov    %eax,%ecx
cmovne %edx,%ecx
test   %eax,%eax
cmovs  %edx,%ecx
mov    %ecx,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @fdt_first_subnode(i8* %0, i32 %1) {
%3 = alloca i32
%4 = bitcast i32* %3 to i8*
store i32 0, i32* %3
%5 = call i32 @fdt_next_node(i8* %0, i32 %1, i32* %3)
%6 = icmp slt i32 %5, 0
%7 = load i32, i32* %3
%8 = icmp ne i32 %7, 1
%9 = select i1 %6, i1 true, i1 %8
%10 = select i1 %9, i32 -1, i32 %5
ret i32 %10
}
int tosInt32_order(int x, int y) { return x < y ? -1 : x > y ? 1 : 0; }


x86 assembly (clang, -O0):
<tosInt32_order>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1123 <tosInt32_order+0x23>
mov    $0xffffffff,%eax
mov    %eax,-0xc(%rbp)
jmp    1138 <tosInt32_order+0x38>
mov    -0x4(%rbp),%edx
mov    -0x8(%rbp),%esi
xor    %eax,%eax
mov    $0x1,%ecx
cmp    %esi,%edx
cmovg  %ecx,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<tosInt32_order>:
xor    %ecx,%ecx
cmp    %esi,%edi
setg   %cl
mov    $0xffffffff,%eax
cmovge %ecx,%eax
ret

LLVM IR (-O0):
define i32 @tosInt32_order(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = load i32, i32* %4
%7 = icmp slt i32 %5, %6
br i1 %7, label %8, label %9
8: ; preds = %2
br label %15
9: ; preds = %2
%10 = load i32, i32* %3
%11 = load i32, i32* %4
%12 = icmp sgt i32 %10, %11
%13 = zext i1 %12 to i64
%14 = select i1 %12, i32 1, i32 0
br label %15
15: ; preds = %9, %8
%16 = phi i32 [ -1, %8 ], [ %14, %9 ]
ret i32 %16
}

LLVM IR (-O2):
define i32 @tosInt32_order(i32 %0, i32 %1) {
%3 = icmp slt i32 %0, %1
%4 = icmp sgt i32 %0, %1
%5 = zext i1 %4 to i32
%6 = select i1 %3, i32 -1, i32 %5
ret i32 %6
}
int fun164() { return 164; }


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

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

LLVM IR (-O0):
define i32 @fun164() {
ret i32 164
}

LLVM IR (-O2):
define i32 @fun164() {
ret i32 164
}
int drm_debugfs_crtc_crc_add(struct drm_crtc *crtc) { return 0; }


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

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

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

LLVM IR (-O2):
%struct.drm_crtc = type opaque
define i32 @drm_debugfs_crtc_crc_add(%struct.drm_crtc* nocapture readnone %0) {
ret i32 0
}
void OSInitHookEnd(void) {}


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

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

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

LLVM IR (-O2):
define void @OSInitHookEnd() {
ret void
}
void pass_int(int *p) {}


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

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

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

LLVM IR (-O2):
define void @pass_int(i32* nocapture %0) {
ret void
}
double dAUX1bp5b(double x) { return 0.0; }


x86 assembly (clang, -O0):
<dAUX1bp5b>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
xorps  %xmm0,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<dAUX1bp5b>:
xorps  %xmm0,%xmm0
ret

LLVM IR (-O0):
define double @dAUX1bp5b(double %0) {
%2 = alloca double
store double %0, double* %2
ret double 0.000000e+00
}

LLVM IR (-O2):
define double @dAUX1bp5b(double %0) {
ret double 0.000000e+00
}
/* Variables and functions */
double atan(double);
int /*<<< orphan*/ ln_rad_to_deg(double);
double ln_range_degrees(int /*<<< orphan*/);
double ln_solve_barker(double, double);
double ln_get_par_true_anomaly(double q, double t) {
  double v, s;
  s = ln_solve_barker(q, t);
  v = 2.0 * atan(s);
  return ln_range_degrees(ln_rad_to_deg(v));
}


x86 assembly (clang, -O0):
<ln_get_par_true_anomaly>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
call   1060 <ln_solve_barker@plt>
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
call   1040 <atan@plt>
movaps %xmm0,%xmm1
movsd  0xe85(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1050 <ln_rad_to_deg@plt>
mov    %eax,%edi
call   1030 <ln_range_degrees@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ln_get_par_true_anomaly>:
push   %rax
call   1060 <ln_solve_barker@plt>
call   1040 <atan@plt>
addsd  %xmm0,%xmm0
call   1050 <ln_rad_to_deg@plt>
mov    %eax,%edi
pop    %rax
jmp    1030 <ln_range_degrees@plt>

LLVM IR (-O0):
define double @ln_get_par_true_anomaly(double %0, double %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
store double %0, double* %3
store double %1, double* %4
%7 = load double, double* %3
%8 = load double, double* %4
%9 = call double @ln_solve_barker(double %7, double %8)
store double %9, double* %6
%10 = load double, double* %6
%11 = call double @atan(double %10)
%12 = fmul double 2.000000e+00, %11
store double %12, double* %5
%13 = load double, double* %5
%14 = call i32 @ln_rad_to_deg(double %13)
%15 = call double @ln_range_degrees(i32 %14)
ret double %15
}

LLVM IR (-O2):
define double @ln_get_par_true_anomaly(double %0, double %1) {
%3 = tail call double @ln_solve_barker(double %0, double %1)
%4 = tail call double @atan(double %3)
%5 = fmul double %4, 2.000000e+00
%6 = tail call i32 @ln_rad_to_deg(double %5)
%7 = tail call double @ln_range_degrees(i32 %6)
ret double %7
}
void rop3_231_1_1(unsigned char *D, unsigned char S, unsigned char T) {
  unsigned char stk1;
  unsigned char stk2;
  stk1 = S ^ T;
  stk2 = T ^ *D;
  stk1 = stk1 & stk2;
  stk1 = ~stk1;
  *D = (stk1 & (~S) & (~T)) | (*D & S) | (*D & T);
}


x86 assembly (clang, -O0):
<rop3_231_1_1>:
push   %rbp
mov    %rsp,%rbp
mov    %dl,%al
mov    %sil,%cl
mov    %rdi,-0x8(%rbp)
mov    %cl,-0x9(%rbp)
mov    %al,-0xa(%rbp)
movzbl -0x9(%rbp),%eax
movzbl -0xa(%rbp),%ecx
xor    %ecx,%eax
mov    %al,-0xb(%rbp)
movzbl -0xa(%rbp),%eax
mov    -0x8(%rbp),%rcx
movzbl (%rcx),%ecx
xor    %ecx,%eax
mov    %al,-0xc(%rbp)
movzbl -0xb(%rbp),%eax
movzbl -0xc(%rbp),%ecx
and    %ecx,%eax
mov    %al,-0xb(%rbp)
movzbl -0xb(%rbp),%eax
xor    $0xffffffff,%eax
mov    %al,-0xb(%rbp)
movzbl -0xb(%rbp),%eax
movzbl -0x9(%rbp),%ecx
xor    $0xffffffff,%ecx
and    %ecx,%eax
movzbl -0xa(%rbp),%ecx
xor    $0xffffffff,%ecx
and    %ecx,%eax
mov    -0x8(%rbp),%rcx
movzbl (%rcx),%ecx
movzbl -0x9(%rbp),%edx
and    %edx,%ecx
or     %ecx,%eax
mov    -0x8(%rbp),%rcx
movzbl (%rcx),%ecx
movzbl -0xa(%rbp),%edx
and    %edx,%ecx
or     %ecx,%eax
mov    %al,%cl
mov    -0x8(%rbp),%rax
mov    %cl,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<rop3_231_1_1>:
mov    (%rdi),%al
mov    %edx,%ecx
or     %sil,%cl
not    %cl
and    %al,%sil
or     %cl,%sil
and    %dl,%al
or     %sil,%al
mov    %al,(%rdi)
ret

LLVM IR (-O0):
define void @rop3_231_1_1(i8* %0, i8 zeroext %1, i8 zeroext %2) {
%4 = alloca i8*
%5 = alloca i8
%6 = alloca i8
%7 = alloca i8
%8 = alloca i8
store i8* %0, i8** %4
store i8 %1, i8* %5
store i8 %2, i8* %6
%9 = load i8, i8* %5
%10 = zext i8 %9 to i32
%11 = load i8, i8* %6
%12 = zext i8 %11 to i32
%13 = xor i32 %10, %12
%14 = trunc i32 %13 to i8
store i8 %14, i8* %7
%15 = load i8, i8* %6
%16 = zext i8 %15 to i32
%17 = load i8*, i8** %4
%18 = load i8, i8* %17
%19 = zext i8 %18 to i32
%20 = xor i32 %16, %19
%21 = trunc i32 %20 to i8
store i8 %21, i8* %8
%22 = load i8, i8* %7
%23 = zext i8 %22 to i32
%24 = load i8, i8* %8
%25 = zext i8 %24 to i32
%26 = and i32 %23, %25
%27 = trunc i32 %26 to i8
store i8 %27, i8* %7
%28 = load i8, i8* %7
%29 = zext i8 %28 to i32
%30 = xor i32 %29, -1
%31 = trunc i32 %30 to i8
store i8 %31, i8* %7
%32 = load i8, i8* %7
%33 = zext i8 %32 to i32
%34 = load i8, i8* %5
%35 = zext i8 %34 to i32
%36 = xor i32 %35, -1
%37 = and i32 %33, %36
%38 = load i8, i8* %6
%39 = zext i8 %38 to i32
%40 = xor i32 %39, -1
%41 = and i32 %37, %40
%42 = load i8*, i8** %4
%43 = load i8, i8* %42
%44 = zext i8 %43 to i32
%45 = load i8, i8* %5
%46 = zext i8 %45 to i32
%47 = and i32 %44, %46
%48 = or i32 %41, %47
%49 = load i8*, i8** %4
%50 = load i8, i8* %49
%51 = zext i8 %50 to i32
%52 = load i8, i8* %6
%53 = zext i8 %52 to i32
%54 = and i32 %51, %53
%55 = or i32 %48, %54
%56 = trunc i32 %55 to i8
%57 = load i8*, i8** %4
store i8 %56, i8* %57
ret void
}

LLVM IR (-O2):
define void @rop3_231_1_1(i8* nocapture %0, i8 zeroext %1, i8 zeroext %2) {
%4 = load i8, i8* %0
%5 = or i8 %2, %1
%6 = xor i8 %5, -1
%7 = and i8 %4, %1
%8 = or i8 %7, %6
%9 = and i8 %4, %2
%10 = or i8 %8, %9
store i8 %10, i8* %0
ret void
}
/* Variables and functions */
int /*<<< orphan*/ write(int, char *, int);
int main() {
  char *buf = "\033c";
  write(1, buf, 3);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xee1(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
mov    $0x1,%edi
mov    $0x3,%edx
call   1030 <write@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rsi
mov    $0x1,%edi
mov    $0x3,%edx
call   1030 <write@plt>
xor    %eax,%eax
pop    %rcx
ret

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

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

/* Variables and functions */
void aesWriteByte(uint32_t offset, uint8_t val8) {
  void (*p_aesWriteByte)(uint32_t offset, uint8_t val8);
  p_aesWriteByte = (void (*)(uint32_t offset, uint8_t val8))0x03001175U;
  p_aesWriteByte(offset, val8);
}


x86 assembly (clang, -O0):
<aesWriteByte>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    $0x3001175,%eax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   *%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<aesWriteByte>:
mov    $0x3001175,%eax
jmp    *%rax

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

LLVM IR (-O2):
define void @aesWriteByte(i32 %0, i32 %1) {
tail call void inttoptr (i64 50336117 to void (i32, i32)*)(i32 %0, i32 %1)
ret void
}
/* Variables and functions */
scalar_t__ realloc(char *, int);
char *strcat(char *, char *);
int strlen(char *);
char *str_cat(char *s1, char *s2) {
  s1 = (char *)realloc(s1, sizeof(char) * (strlen(s1) + strlen(s2) + 1));
  s1 = strcat(s1, s2);
  return s1;
}


x86 assembly (clang, -O0):
<str_cat>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x20(%rbp),%rdi
mov    %eax,%ecx
mov    -0x14(%rbp),%eax
add    %ecx,%eax
add    $0x1,%eax
cltq
shl    $0x0,%rax
mov    %eax,%esi
call   1040 <realloc@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1050 <strcat@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<str_cat>:
push   %r15
push   %r14
push   %rbx
mov    %rsi,%r14
mov    %rdi,%rbx
call   1030 <strlen@plt>
mov    %eax,%r15d
mov    %r14,%rdi
call   1030 <strlen@plt>
lea    (%r15,%rax,1),%esi
add    $0x1,%esi
mov    %rbx,%rdi
call   1040 <realloc@plt>
mov    %rax,%rdi
mov    %r14,%rsi
pop    %rbx
pop    %r14
pop    %r15
jmp    1050 <strcat@plt>

LLVM IR (-O0):
define i8* @str_cat(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** %3
%7 = call i32 @strlen(i8* %6)
%8 = load i8*, i8** %4
%9 = call i32 @strlen(i8* %8)
%10 = add nsw i32 %7, %9
%11 = add nsw i32 %10, 1
%12 = sext i32 %11 to i64
%13 = mul i64 1, %12
%14 = trunc i64 %13 to i32
%15 = call i64 @realloc(i8* %5, i32 %14)
%16 = inttoptr i64 %15 to i8*
store i8* %16, i8** %3
%17 = load i8*, i8** %3
%18 = load i8*, i8** %4
%19 = call i8* @strcat(i8* %17, i8* %18)
store i8* %19, i8** %3
%20 = load i8*, i8** %3
ret i8* %20
}

LLVM IR (-O2):
define i8* @str_cat(i8* %0, i8* %1) {
%3 = tail call i32 @strlen(i8* %0)
%4 = tail call i32 @strlen(i8* %1)
%5 = add i32 %3, 1
%6 = add i32 %5, %4
%7 = tail call i64 @realloc(i8* %0, i32 %6)
%8 = inttoptr i64 %7 to i8*
%9 = tail call i8* @strcat(i8* dereferenceable(1) %8, i8* dereferenceable(1) %1)
ret i8* %8
}
const char *SteamAPI_ISteamUserStats_GetAchievementDisplayAttribute(
    void *self, const char *pchName, const char *pchKey) {
  xlogf("%s(self = %p, pchName = %s, pchKey = %s)\n", __func__, self, pchName,
        pchKey);
  return "";
}


x86 assembly (clang, -O0):
<SteamAPI_ISteamUserStats_GetAchievementDisplayAttribute>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdx
mov    -0x10(%rbp),%rcx
mov    -0x18(%rbp),%r8
lea    0xec9(%rip),%rdi
lea    0xeec(%rip),%rsi
mov    $0x0,%al
call   1030 <xlogf@plt>
lea    0xedd(%rip),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SteamAPI_ISteamUserStats_GetAchievementDisplayAttribute>:
push   %rax
mov    %rdx,%r8
mov    %rsi,%rcx
mov    %rdi,%rdx
lea    0xedf(%rip),%rdi
lea    0xf02(%rip),%rsi
xor    %eax,%eax
call   1030 <xlogf@plt>
lea    0xef3(%rip),%rax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [42 x i8] c"%s(self = %p, pchName = %s, pchKey = %s)\0A\00"
@__func__.SteamAPI_ISteamUserStats_GetAchievementDisplayAttribute = [56 x i8] c"SteamAPI_ISteamUserStats_GetAchievementDisplayAttribute\00"
@.str.1 = [1 x i8] zeroinitializer
define i8* @SteamAPI_ISteamUserStats_GetAchievementDisplayAttribute(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%7 = load i8*, i8** %4
%8 = load i8*, i8** %5
%9 = load i8*, i8** %6
%10 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) bitcast (i32 (...)* @xlogf to i32 (i8*, i8*, i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([56 x i8], [56 x i8]* @__func__.SteamAPI_ISteamUserStats_GetAchievementDisplayAttribute, i64 0, i64 0), i8* %7, i8* %8, i8* %9)
ret i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [42 x i8] c"%s(self = %p, pchName = %s, pchKey = %s)\0A\00"
@__func__.SteamAPI_ISteamUserStats_GetAchievementDisplayAttribute = [56 x i8] c"SteamAPI_ISteamUserStats_GetAchievementDisplayAttribute\00"
@.str.1 = [1 x i8] zeroinitializer
define i8* @SteamAPI_ISteamUserStats_GetAchievementDisplayAttribute(i8* %0, i8* %1, i8* %2) {
%4 = tail call i32 (i8*, i8*, i8*, i8*, i8*, ...) bitcast (i32 (...)* @xlogf to i32 (i8*, i8*, i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([56 x i8], [56 x i8]* @__func__.SteamAPI_ISteamUserStats_GetAchievementDisplayAttribute, i64 0, i64 0), i8* %0, i8* %1, i8* %2)
ret i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0)
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void usage() { printf("\nusage: df\n\n"); }


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

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

LLVM IR (-O0):
@.str = [13 x i8] c"\0Ausage: df\0A\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [12 x i8] c"\0Ausage: df\0A\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ AF_INET;
int /*<<< orphan*/ SOCK_STREAM;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ mensagem_exit();
int /*<<< orphan*/ perror(char *);
int socket(int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/);
int cria_socket() {
  int sock;
  if ((sock = socket(AF_INET, SOCK_STREAM, 0)) == -1) {
    perror("socket :(\n");
    mensagem_exit();
    exit(2);
  }
  return sock;
}


x86 assembly (clang, -O0):
<cria_socket>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0x2e99(%rip),%rax
mov    (%rax),%edi
mov    0x2e80(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1060 <socket@plt>
mov    %eax,-0x4(%rbp)
cmp    $0xffffffff,%eax
jne    118a <cria_socket+0x4a>
lea    0xe8c(%rip),%rdi
call   1040 <perror@plt>
mov    $0x0,%al
call   1030 <mensagem_exit@plt>
mov    $0x2,%edi
call   1050 <exit@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cria_socket>:
push   %rax
mov    0x2ea0(%rip),%rax
mov    (%rax),%edi
mov    0x2e87(%rip),%rax
mov    (%rax),%esi
xor    %edx,%edx
call   1060 <socket@plt>
cmp    $0xffffffff,%eax
je     1161 <cria_socket+0x21>
pop    %rcx
ret
lea    0xe98(%rip),%rdi
call   1040 <perror@plt>
xor    %eax,%eax
call   1030 <mensagem_exit@plt>
mov    $0x2,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str = [11 x i8] c"socket :(\0A\00"
define i32 @cria_socket() {
%1 = alloca i32
%2 = load i32, i32* @AF_INET
%3 = load i32, i32* @SOCK_STREAM
%4 = call i32 @socket(i32 %2, i32 %3, i32 0)
store i32 %4, i32* %1
%5 = icmp eq i32 %4, -1
br i1 %5, label %6, label %10
6: ; preds = %0
%7 = call i32 @perror(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%8 = call i32 (...) @mensagem_exit()
%9 = call i32 @exit(i32 2)
unreachable
10: ; preds = %0
%11 = load i32, i32* %1
ret i32 %11
}

LLVM IR (-O2):
@AF_INET = global i32 0
@SOCK_STREAM = global i32 0
@.str = [11 x i8] c"socket :(\0A\00"
define i32 @cria_socket() {
%1 = load i32, i32* @AF_INET
%2 = load i32, i32* @SOCK_STREAM
%3 = tail call i32 @socket(i32 %1, i32 %2, i32 0)
%4 = icmp eq i32 %3, -1
br i1 %4, label %5, label %9
5: ; preds = %0
%6 = tail call i32 @perror(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%7 = tail call i32 (...) @mensagem_exit()
%8 = tail call i32 @exit(i32 2)
unreachable
9: ; preds = %0
ret i32 %3
}
int execute_set_robust_list() { return 0; }


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

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

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

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

/* Variables and functions */
int EINVAL;
__attribute__((visibility("default"))) int
sd_uid_is_on_seat(uid_t uid, int require_active, const char *seat) {
  return -EINVAL;
}


x86 assembly (clang, -O0):
<sd_uid_is_on_seat>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
xor    %eax,%eax
mov    0x2ec9(%rip),%rcx
sub    (%rcx),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<sd_uid_is_on_seat>:
mov    0x2ed9(%rip),%rcx
xor    %eax,%eax
sub    (%rcx),%eax
ret

LLVM IR (-O0):
@EINVAL = global i32 0
define i32 @sd_uid_is_on_seat(i32 %0, i32 %1, i8* %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8*
store i32 %0, i32* %4
store i32 %1, i32* %5
store i8* %2, i8** %6
%7 = load i32, i32* @EINVAL
%8 = sub nsw i32 0, %7
ret i32 %8
}

LLVM IR (-O2):
@EINVAL = global i32 0
define i32 @sd_uid_is_on_seat(i32 %0, i32 %1, i8* nocapture readnone %2) {
%4 = load i32, i32* @EINVAL
%5 = sub nsw i32 0, %4
ret i32 %5
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, unsigned char);
void fprint_orl_atRi(FILE *stream, unsigned char i) {
  fprintf(stream, "ORL   A, @R%X                    ", i);
}


x86 assembly (clang, -O0):
<fprint_orl_atRi>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %sil,%al
mov    %rdi,-0x8(%rbp)
mov    %al,-0x9(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed3(%rip),%rsi
movzbl -0x9(%rbp),%edx
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fprint_orl_atRi>:
mov    %esi,%edx
lea    0xee7(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@.str = [34 x i8] c"ORL A, @R%X \00"
define void @fprint_orl_atRi(i32* %0, i8 zeroext %1) {
%3 = alloca i32*
%4 = alloca i8
store i32* %0, i32** %3
store i8 %1, i8* %4
%5 = load i32*, i32** %3
%6 = load i8, i8* %4
%7 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8 zeroext %6)
ret void
}

LLVM IR (-O2):
@.str = [34 x i8] c"ORL A, @R%X \00"
define void @fprint_orl_atRi(i32* nocapture %0, i8 zeroext %1) {
%3 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i8 zeroext %1)
ret void
}
const char *aeron_driver_tool_usage() {
  return "    -P            Print PID only without anything else.\n"
         "    -T            Request driver to terminate.\n"
         "    -d basePath   Base Path to shared memory. Default: "
         "/dev/shm/aeron-[user]\n"
         "    -h            Displays help information.\n"
         "    -t timeout    Number of milliseconds to wait to see if the "
         "driver metadata is available. Default: 1000\n";
}


x86 assembly (clang, -O0):
<aeron_driver_tool_usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xef5(%rip),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<aeron_driver_tool_usage>:
lea    0xef9(%rip),%rax
ret

LLVM IR (-O0):
@.str = [333 x i8] c" -P Print PID only without anything else.\0A -T Request driver to terminate.\0A -d basePath Base Path to shared memory. Default: /dev/shm/aeron-[user]\0A -h Displays help information.\0A -t timeout Number of milliseconds to wait to see if the driver metadata is available. Default: 1000\0A\00"
define i8* @aeron_driver_tool_usage() {
ret i8* getelementptr inbounds ([333 x i8], [333 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [333 x i8] c" -P Print PID only without anything else.\0A -T Request driver to terminate.\0A -d basePath Base Path to shared memory. Default: /dev/shm/aeron-[user]\0A -h Displays help information.\0A -t timeout Number of milliseconds to wait to see if the driver metadata is available. Default: 1000\0A\00"
define i8* @aeron_driver_tool_usage() {
ret i8* getelementptr inbounds ([333 x i8], [333 x i8]* @.str, i64 0, i64 0)
}
/* Variables and functions */
scalar_t__ malloc(int);
int strlen(char *);
int /*<<< orphan*/ strncpy(char *, char *, int);
char *chop(char *str) {
  char *new;
  int len = strlen(str);
  new = (char *)malloc(len);
  strncpy(new, str, (len - 1));
  new[len - 1] = '\0';
  return new;
}


x86 assembly (clang, -O0):
<chop>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
call   1050 <malloc@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0x14(%rbp),%edx
sub    $0x1,%edx
call   1030 <strncpy@plt>
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x10(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<chop>:
push   %rbp
push   %r14
push   %rbx
mov    %rdi,%r14
call   1040 <strlen@plt>
mov    %eax,%ebp
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,%rbx
movslq %ebp,%rbp
lea    -0x1(%rbp),%rdx
mov    %rax,%rdi
mov    %r14,%rsi
call   1030 <strncpy@plt>
movb   $0x0,-0x1(%rbx,%rbp,1)
mov    %rbx,%rax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i8* @chop(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %2
%5 = load i8*, i8** %2
%6 = call i32 @strlen(i8* %5)
store i32 %6, i32* %4
%7 = load i32, i32* %4
%8 = call i64 @malloc(i32 %7)
%9 = inttoptr i64 %8 to i8*
store i8* %9, i8** %3
%10 = load i8*, i8** %3
%11 = load i8*, i8** %2
%12 = load i32, i32* %4
%13 = sub nsw i32 %12, 1
%14 = call i32 @strncpy(i8* %10, i8* %11, i32 %13)
%15 = load i8*, i8** %3
%16 = load i32, i32* %4
%17 = sub nsw i32 %16, 1
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, i8* %15, i64 %18
store i8 0, i8* %19
%20 = load i8*, i8** %3
ret i8* %20
}

LLVM IR (-O2):
define i8* @chop(i8* %0) {
%2 = tail call i32 @strlen(i8* %0)
%3 = tail call i64 @malloc(i32 %2)
%4 = inttoptr i64 %3 to i8*
%5 = add nsw i32 %2, -1
%6 = tail call i32 @strncpy(i8* %4, i8* %0, i32 %5)
%7 = sext i32 %5 to i64
%8 = getelementptr inbounds i8, i8* %4, i64 %7
store i8 0, i8* %8
ret i8* %4
}