xunge/DecIR huggingface dataset:
/* Type definitions */
struct test_sleep_data {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ mocktime_enable_mocking();
void __attribute__((weak)) test_sleep_setup(struct test_sleep_data *data) {
  mocktime_enable_mocking();
}


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

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

LLVM IR (-O0):
%struct.test_sleep_data = type { i32 }
define weak void @test_sleep_setup(%struct.test_sleep_data* %0) {
%2 = alloca %struct.test_sleep_data*
store %struct.test_sleep_data* %0, %struct.test_sleep_data** %2
%3 = call i32 (...) @mocktime_enable_mocking()
ret void
}

LLVM IR (-O2):
%struct.test_sleep_data = type { i32 }
define weak void @test_sleep_setup(%struct.test_sleep_data* %0) {
%2 = tail call i32 (...) @mocktime_enable_mocking()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ xio_redraw_input_cursor(int /*<<< orphan*/);
void xio_cellize_cursor(void) { xio_redraw_input_cursor(0); }


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

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

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

LLVM IR (-O2):
define void @xio_cellize_cursor() {
%1 = tail call i32 @xio_redraw_input_cursor(i32 0)
ret void
}
unsigned char LIB_Utils_HexToInt(unsigned char ubyCh) {
  return ubyCh - (ubyCh >= 'a'
                      ? 'a' - 10
                      : (ubyCh >= 'A' ? 'A' - 10 : (ubyCh <= '9' ? '0' : 0)));
}


x86 assembly (clang, -O0):
<LIB_Utils_HexToInt>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movzbl -0x1(%rbp),%eax
mov    %eax,-0x8(%rbp)
movzbl -0x1(%rbp),%eax
cmp    $0x61,%eax
jl     112b <LIB_Utils_HexToInt+0x2b>
mov    $0x57,%eax
mov    %eax,-0xc(%rbp)
jmp    115f <LIB_Utils_HexToInt+0x5f>
movzbl -0x1(%rbp),%eax
cmp    $0x41,%eax
jl     1145 <LIB_Utils_HexToInt+0x45>
mov    $0x37,%eax
mov    %eax,-0x10(%rbp)
jmp    1159 <LIB_Utils_HexToInt+0x59>
movzbl -0x1(%rbp),%edx
xor    %eax,%eax
mov    $0x30,%ecx
cmp    $0x39,%edx
cmovle %ecx,%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%eax
mov    -0xc(%rbp),%ecx
sub    %ecx,%eax
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<LIB_Utils_HexToInt>:
mov    $0xa9,%al
cmp    $0x60,%dil
ja     111e <LIB_Utils_HexToInt+0x1e>
mov    $0xc9,%al
cmp    $0x40,%dil
ja     111e <LIB_Utils_HexToInt+0x1e>
xor    %ecx,%ecx
cmp    $0x3a,%dil
mov    $0xd0,%eax
cmovae %ecx,%eax
add    %dil,%al
ret

LLVM IR (-O0):
define zeroext i8 @LIB_Utils_HexToInt(i8 zeroext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = zext i8 %3 to i32
%5 = load i8, i8* %2
%6 = zext i8 %5 to i32
%7 = icmp sge i32 %6, 97
br i1 %7, label %8, label %9
8: ; preds = %1
br label %22
9: ; preds = %1
%10 = load i8, i8* %2
%11 = zext i8 %10 to i32
%12 = icmp sge i32 %11, 65
br i1 %12, label %13, label %14
13: ; preds = %9
br label %20
14: ; preds = %9
%15 = load i8, i8* %2
%16 = zext i8 %15 to i32
%17 = icmp sle i32 %16, 57
%18 = zext i1 %17 to i64
%19 = select i1 %17, i32 48, i32 0
br label %20
20: ; preds = %14, %13
%21 = phi i32 [ 55, %13 ], [ %19, %14 ]
br label %22
22: ; preds = %20, %8
%23 = phi i32 [ 87, %8 ], [ %21, %20 ]
%24 = sub nsw i32 %4, %23
%25 = trunc i32 %24 to i8
ret i8 %25
}

LLVM IR (-O2):
define zeroext i8 @LIB_Utils_HexToInt(i8 zeroext %0) {
%2 = icmp ugt i8 %0, 96
br i1 %2, label %8, label %3
3: ; preds = %1
%4 = icmp ugt i8 %0, 64
br i1 %4, label %8, label %5
5: ; preds = %3
%6 = icmp ult i8 %0, 58
%7 = select i1 %6, i8 -48, i8 0
br label %8
8: ; preds = %5, %3, %1
%9 = phi i8 [ -87, %1 ], [ %7, %5 ], [ -55, %3 ]
%10 = add i8 %9, %0
ret i8 %10
}
int isNameTChar(int c) {
  return (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c == '_');
}


x86 assembly (clang, -O0):
<isNameTChar>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
cmpl   $0x41,-0x4(%rbp)
jl     1120 <isNameTChar+0x20>
mov    $0x1,%al
cmpl   $0x5a,-0x4(%rbp)
mov    %al,-0x5(%rbp)
jle    1143 <isNameTChar+0x43>
cmpl   $0x61,-0x4(%rbp)
jl     1139 <isNameTChar+0x39>
mov    $0x1,%al
cmpl   $0x7a,-0x4(%rbp)
mov    %al,-0x5(%rbp)
jle    1143 <isNameTChar+0x43>
cmpl   $0x5f,-0x4(%rbp)
sete   %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<isNameTChar>:
mov    %edi,%eax
and    $0xffffffdf,%eax
add    $0xffffffbf,%eax
cmp    $0x1a,%eax
setb   %al
cmp    $0x5f,%edi
sete   %cl
or     %al,%cl
movzbl %cl,%eax
ret

LLVM IR (-O0):
define i32 @isNameTChar(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp sge i32 %3, 65
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, i32* %2
%7 = icmp sle i32 %6, 90
br i1 %7, label %17, label %8
8: ; preds = %5, %1
%9 = load i32, i32* %2
%10 = icmp sge i32 %9, 97
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = load i32, i32* %2
%13 = icmp sle i32 %12, 122
br i1 %13, label %17, label %14
14: ; preds = %11, %8
%15 = load i32, i32* %2
%16 = icmp eq i32 %15, 95
br label %17
17: ; preds = %14, %11, %5
%18 = phi i1 [ true, %11 ], [ true, %5 ], [ %16, %14 ]
%19 = zext i1 %18 to i32
ret i32 %19
}

LLVM IR (-O2):
define i32 @isNameTChar(i32 %0) {
%2 = and i32 %0, -33
%3 = add i32 %2, -65
%4 = icmp ult i32 %3, 26
%5 = icmp eq i32 %0, 95
%6 = or i1 %5, %4
%7 = zext i1 %6 to i32
ret i32 %7
}
/* Variables and functions */
int S_IRUSR;
int S_IWUSR;
int __gen_tempname(char *, int, int /*<<< orphan*/, int /*<<< orphan*/, int);
int mkstemp64(char *template) {
  return __gen_tempname(template, 1, 0, 0, S_IRUSR | S_IWUSR);
}


x86 assembly (clang, -O0):
<mkstemp64>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2eb1(%rip),%rax
mov    (%rax),%r8d
mov    0x2eb7(%rip),%rax
or     (%rax),%r8d
mov    $0x1,%esi
xor    %ecx,%ecx
mov    %ecx,%edx
call   1030 <__gen_tempname@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mkstemp64>:
mov    0x2ec1(%rip),%rax
mov    0x2eca(%rip),%rcx
mov    (%rcx),%r8d
or     (%rax),%r8d
mov    $0x1,%esi
xor    %edx,%edx
xor    %ecx,%ecx
jmp    1030 <__gen_tempname@plt>

LLVM IR (-O0):
@S_IRUSR = global i32 0
@S_IWUSR = global i32 0
define i32 @mkstemp64(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = load i32, i32* @S_IRUSR
%5 = load i32, i32* @S_IWUSR
%6 = or i32 %4, %5
%7 = call i32 @__gen_tempname(i8* %3, i32 1, i32 0, i32 0, i32 %6)
ret i32 %7
}

LLVM IR (-O2):
@S_IRUSR = global i32 0
@S_IWUSR = global i32 0
define i32 @mkstemp64(i8* %0) {
%2 = load i32, i32* @S_IRUSR
%3 = load i32, i32* @S_IWUSR
%4 = or i32 %3, %2
%5 = tail call i32 @__gen_tempname(i8* %0, i32 1, i32 0, i32 0, i32 %4)
ret i32 %5
}
/* Type definitions */
typedef scalar_t__ uint8_t;
typedef int uint16_t;

/* Variables and functions */
__attribute__((unused)) void to_tpm_uint16(uint8_t *buffer, uint16_t x) {
  buffer[0] = (uint8_t)(x >> 8);
  buffer[1] = (uint8_t)(x & 0xff);
}


x86 assembly (clang, -O0):
<to_tpm_uint16>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
sar    $0x8,%eax
movslq %eax,%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,(%rax)
mov    -0xc(%rbp),%eax
and    $0xff,%eax
movslq %eax,%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,0x8(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<to_tpm_uint16>:
movzbl %sil,%eax
sar    $0x8,%esi
movslq %esi,%rcx
mov    %rcx,(%rdi)
mov    %rax,0x8(%rdi)
ret

LLVM IR (-O0):
define void @to_tpm_uint16(i64* %0, i32 %1) {
%3 = alloca i64*
%4 = alloca i32
store i64* %0, i64** %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = ashr i32 %5, 8
%7 = sext i32 %6 to i64
%8 = load i64*, i64** %3
%9 = getelementptr inbounds i64, i64* %8, i64 0
store i64 %7, i64* %9
%10 = load i32, i32* %4
%11 = and i32 %10, 255
%12 = sext i32 %11 to i64
%13 = load i64*, i64** %3
%14 = getelementptr inbounds i64, i64* %13, i64 1
store i64 %12, i64* %14
ret void
}

LLVM IR (-O2):
define void @to_tpm_uint16(i64* nocapture writeonly %0, i32 %1) {
%3 = ashr i32 %1, 8
%4 = sext i32 %3 to i64
store i64 %4, i64* %0
%5 = and i32 %1, 255
%6 = zext i32 %5 to i64
%7 = getelementptr inbounds i64, i64* %0, i64 1
store i64 %6, i64* %7
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
void res(int i) {
  if (i <= 0) {
    printf("%d", i);
    return;
  }
  printf("%d", i);
  res(i - 5);
  printf("%d", i);
}


x86 assembly (clang, -O0):
<res>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jg     1149 <res+0x29>
mov    -0x4(%rbp),%esi
lea    0xec1(%rip),%rdi
call   1030 <printf@plt>
jmp    1172 <res+0x52>
mov    -0x4(%rbp),%esi
lea    0xead(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%edi
sub    $0x5,%edi
call   1040 <res@plt>
mov    -0x4(%rbp),%esi
lea    0xe93(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<res>:
push   %rbx
mov    %edi,%ebx
lea    0xed6(%rip),%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
test   %ebx,%ebx
jle    114c <res+0x2c>
lea    -0x5(%rbx),%edi
call   1040 <res@plt>
lea    0xebc(%rip),%rdi
mov    %ebx,%esi
pop    %rbx
jmp    1030 <printf@plt>
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define void @res(i32 %0) {
%2 = icmp slt i32 %0, 1
%3 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %0)
br i1 %2, label %4, label %5
4: ; preds = %1, %5
ret void
5: ; preds = %1
%6 = add nsw i32 %0, -5
tail call void @res(i32 %6)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %0)
br label %4
}
void foo132() {}


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

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

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

LLVM IR (-O2):
define void @foo132() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int, int, int, int, int, int, int, int,
                          int, int, int, int, int, int);
void t_b(void) {
  printf("    %c%c%c%c%c%c%c%c%c%c%c%c%c%c%c\n", -61, -60, -59, -60, -59, -60,
         -59, -60, -59, -60, -59, -60, -59, -60, -76);
}


x86 assembly (clang, -O0):
<t_b>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
lea    0xee1(%rip),%rdi
mov    $0xffffffc3,%esi
mov    $0xffffffc4,%r8d
mov    $0xffffffc5,%r9d
mov    %r8d,%edx
mov    %r9d,%ecx
movl   $0xffffffc4,(%rsp)
movl   $0xffffffc5,0x8(%rsp)
ff
movl   $0xffffffc4,0x10(%rsp)
ff
movl   $0xffffffc5,0x18(%rsp)
ff
movl   $0xffffffc4,0x20(%rsp)
ff
movl   $0xffffffc5,0x28(%rsp)
ff
movl   $0xffffffc4,0x30(%rsp)
ff
movl   $0xffffffc5,0x38(%rsp)
ff
movl   $0xffffffc4,0x40(%rsp)
ff
movl   $0xffffffb4,0x48(%rsp)
ff
call   1030 <printf@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_b>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0xffffffc3,%esi
mov    $0xffffffc4,%edx
mov    $0xffffffc5,%ecx
mov    $0xffffffc4,%r8d
mov    $0xffffffc5,%r9d
push   $0xffffffffffffffb4
push   $0xffffffffffffffc4
push   $0xffffffffffffffc5
push   $0xffffffffffffffc4
push   $0xffffffffffffffc5
push   $0xffffffffffffffc4
push   $0xffffffffffffffc5
push   $0xffffffffffffffc4
push   $0xffffffffffffffc5
push   $0xffffffffffffffc4
call   1030 <printf@plt>
add    $0x50,%rsp
pop    %rax
ret

LLVM IR (-O0):
@.str = [36 x i8] c" %c%c%c%c%c%c%c%c%c%c%c%c%c%c%c\0A\00"
define void @t_b() {
%1 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i32 -61, i32 -60, i32 -59, i32 -60, i32 -59, i32 -60, i32 -59, i32 -60, i32 -59, i32 -60, i32 -59, i32 -60, i32 -59, i32 -60, i32 -76)
ret void
}

LLVM IR (-O2):
@.str = [36 x i8] c" %c%c%c%c%c%c%c%c%c%c%c%c%c%c%c\0A\00"
define void @t_b() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i32 -61, i32 -60, i32 -59, i32 -60, i32 -59, i32 -60, i32 -59, i32 -60, i32 -59, i32 -60, i32 -59, i32 -60, i32 -59, i32 -60, i32 -76)
ret void
}
void BitReset(void *Data, unsigned Bit) {
  unsigned char *D = Data;
  D[Bit / 8] &= ~(0x01 << (Bit % 8));
}


x86 assembly (clang, -O0):
<BitReset>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0xc(%rbp),%ecx
and    $0x7,%ecx
mov    $0x1,%esi
shl    %cl,%esi
xor    $0xffffffff,%esi
mov    -0x18(%rbp),%rax
mov    -0xc(%rbp),%ecx
shr    $0x3,%ecx
mov    %ecx,%ecx
movzbl (%rax,%rcx,1),%edx
and    %esi,%edx
mov    %dl,(%rax,%rcx,1)
pop    %rbp
ret

x86 assembly (clang, -O2):
<BitReset>:
mov    %esi,%eax
mov    %esi,%ecx
and    $0x7,%cl
mov    $0x1,%edx
shl    %cl,%edx
shr    $0x3,%rax
not    %dl
and    %dl,(%rdi,%rax,1)
ret

LLVM IR (-O0):
define void @BitReset(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i8*
store i8* %0, i8** %3
store i32 %1, i32* %4
%6 = load i8*, i8** %3
store i8* %6, i8** %5
%7 = load i32, i32* %4
%8 = urem i32 %7, 8
%9 = shl i32 1, %8
%10 = xor i32 %9, -1
%11 = load i8*, i8** %5
%12 = load i32, i32* %4
%13 = udiv i32 %12, 8
%14 = zext i32 %13 to i64
%15 = getelementptr inbounds i8, i8* %11, i64 %14
%16 = load i8, i8* %15
%17 = zext i8 %16 to i32
%18 = and i32 %17, %10
%19 = trunc i32 %18 to i8
store i8 %19, i8* %15
ret void
}

LLVM IR (-O2):
define void @BitReset(i8* nocapture %0, i32 %1) {
%3 = and i32 %1, 7
%4 = shl nuw nsw i32 1, %3
%5 = lshr i32 %1, 3
%6 = zext i32 %5 to i64
%7 = getelementptr inbounds i8, i8* %0, i64 %6
%8 = load i8, i8* %7
%9 = trunc i32 %4 to i8
%10 = xor i8 %9, -1
%11 = and i8 %8, %10
store i8 %11, i8* %7
ret void
}
void fn_SYSCALL3(void) {}


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

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

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

LLVM IR (-O2):
define void @fn_SYSCALL3() {
ret void
}
int do_210() { return 210; }


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

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

LLVM IR (-O0):
define i32 @do_210() {
ret i32 210
}

LLVM IR (-O2):
define i32 @do_210() {
ret i32 210
}
/* Type definitions */
typedef int /*<<< orphan*/ EVP_CIPHER;

/* Variables and functions */
int /*<<< orphan*/ OBJ_NAME_TYPE_CIPHER_METH;
scalar_t__ OBJ_NAME_get(char const *, int /*<<< orphan*/);
int /*<<< orphan*/ OPENSSL_init_crypto(int /*<<< orphan*/,
                                       int /*<<< orphan*/ *);
const EVP_CIPHER *EVP_get_cipherbyname(const char *name) {
  const EVP_CIPHER *cp;
  if (!OPENSSL_init_crypto(0, NULL))
    return NULL;
  cp = (const EVP_CIPHER *)OBJ_NAME_get(name, OBJ_NAME_TYPE_CIPHER_METH);
  return (cp);
}


x86 assembly (clang, -O0):
<EVP_get_cipherbyname>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
xor    %edi,%edi
xor    %eax,%eax
mov    %eax,%esi
call   1040 <OPENSSL_init_crypto@plt>
cmp    $0x0,%eax
jne    114d <EVP_get_cipherbyname+0x2d>
movq   $0x0,-0x8(%rbp)
jmp    116b <EVP_get_cipherbyname+0x4b>
mov    -0x10(%rbp),%rdi
mov    0x2e88(%rip),%rax
mov    (%rax),%esi
call   1030 <OBJ_NAME_get@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<EVP_get_cipherbyname>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
xor    %ebx,%ebx
xor    %edi,%edi
xor    %esi,%esi
call   1040 <OPENSSL_init_crypto@plt>
test   %eax,%eax
je     114a <EVP_get_cipherbyname+0x2a>
mov    0x2ea3(%rip),%rax
mov    (%rax),%esi
mov    %r14,%rdi
call   1030 <OBJ_NAME_get@plt>
mov    %rax,%rbx
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@OBJ_NAME_TYPE_CIPHER_METH = global i32 0
define i32* @EVP_get_cipherbyname(i8* %0) {
%2 = alloca i32*
%3 = alloca i8*
%4 = alloca i32*
store i8* %0, i8** %3
%5 = call i32 @OPENSSL_init_crypto(i32 0, i32* null)
%6 = icmp ne i32 %5, 0
br i1 %6, label %8, label %7
7: ; preds = %1
store i32* null, i32** %2
br label %14
8: ; preds = %1
%9 = load i8*, i8** %3
%10 = load i32, i32* @OBJ_NAME_TYPE_CIPHER_METH
%11 = call i64 @OBJ_NAME_get(i8* %9, i32 %10)
%12 = inttoptr i64 %11 to i32*
store i32* %12, i32** %4
%13 = load i32*, i32** %4
store i32* %13, i32** %2
br label %14
14: ; preds = %8, %7
%15 = load i32*, i32** %2
ret i32* %15
}

LLVM IR (-O2):
@OBJ_NAME_TYPE_CIPHER_METH = global i32 0
define i32* @EVP_get_cipherbyname(i8* %0) {
%2 = tail call i32 @OPENSSL_init_crypto(i32 0, i32* null)
%3 = icmp eq i32 %2, 0
br i1 %3, label %8, label %4
4: ; preds = %1
%5 = load i32, i32* @OBJ_NAME_TYPE_CIPHER_METH
%6 = tail call i64 @OBJ_NAME_get(i8* %0, i32 %5)
%7 = inttoptr i64 %6 to i32*
br label %8
8: ; preds = %1, %4
%9 = phi i32* [ %7, %4 ], [ null, %1 ]
ret i32* %9
}
/* Variables and functions */
int /*<<< orphan*/ test2(int);
test(int a) {
  int i;
  for (i = 0; i < a; i++) {
    test2(a);
    test2(a);
  }
}


x86 assembly (clang, -O0):
<test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    114c <test+0x3c>
mov    -0x8(%rbp),%edi
call   1030 <test2@plt>
mov    -0x8(%rbp),%edi
call   1030 <test2@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1122 <test+0x12>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test>:
push   %rbp
push   %rbx
push   %rax
test   %edi,%edi
jle    1133 <test+0x23>
mov    %edi,%ebx
mov    %edi,%ebp
nopl   0x0(%rax,%rax,1)
mov    %ebx,%edi
call   1030 <test2@plt>
mov    %ebx,%edi
call   1030 <test2@plt>
add    $0xffffffff,%ebp
jne    1120 <test+0x10>
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @test(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 = tail call i32 @test2(i32 %0)
%6 = tail call i32 @test2(i32 %0)
%7 = add nuw nsw i32 %4, 1
%8 = icmp eq i32 %7, %0
br i1 %8, label %9, label %3
9: ; preds = %3, %1
ret i32 undef
}
double Acre2Hectare(double A) {
  double H;
  H = A * .4047;
  return H;
}


x86 assembly (clang, -O0):
<Acre2Hectare>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  0xeef(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<Acre2Hectare>:
mulsd  0xef8(%rip),%xmm0
ret

LLVM IR (-O0):
define double @Acre2Hectare(double %0) {
%2 = alloca double
%3 = alloca double
store double %0, double* %2
%4 = load double, double* %2
%5 = fmul double %4, 4.047000e-01
store double %5, double* %3
%6 = load double, double* %3
ret double %6
}

LLVM IR (-O2):
define double @Acre2Hectare(double %0) {
%2 = fmul double %0, 4.047000e-01
ret double %2
}
putstr(s) char *s;
{
  while (*s)
    write(2, s++, 1);
}


x86 assembly (clang, -O0):
<putstr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cmpb   $0x0,(%rax)
je     114e <putstr+0x3e>
mov    -0x10(%rbp),%rsi
mov    %rsi,%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
mov    $0x2,%edi
mov    $0x1,%edx
mov    $0x0,%al
call   1030 <write@plt>
jmp    111c <putstr+0xc>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<putstr>:
push   %r14
push   %rbx
push   %rax
cmpb   $0x0,(%rdi)
je     1141 <putstr+0x31>
mov    %rdi,%rbx
nopl   0x0(%rax)
lea    0x1(%rbx),%r14
mov    $0x2,%edi
mov    %rbx,%rsi
mov    $0x1,%edx
xor    %eax,%eax
call   1030 <write@plt>
cmpb   $0x0,0x1(%rbx)
mov    %r14,%rbx
jne    1120 <putstr+0x10>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i32 @putstr(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, 0
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 = call i32 (i32, i8*, i32, ...) bitcast (i32 (...)* @write to i32 (i32, i8*, i32, ...)*)(i32 2, i8* %9, i32 1)
br label %4
12: ; preds = %4
%13 = load i32, i32* %2
ret i32 %13
}

LLVM IR (-O2):
define i32 @putstr(i8* %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %10, label %4
4: ; preds = %1, %4
%5 = phi i8* [ %6, %4 ], [ %0, %1 ]
%6 = getelementptr inbounds i8, i8* %5, i64 1
%7 = tail call i32 (i32, i8*, i32, ...) bitcast (i32 (...)* @write to i32 (i32, i8*, i32, ...)*)(i32 2, i8* %5, i32 1)
%8 = load i8, i8* %6
%9 = icmp eq i8 %8, 0
br i1 %9, label %10, label %4
10: ; preds = %4, %1
ret i32 undef
}
void fatal(m) char const *m;
{
  print_message_queue();
  diff_error("%s", m, 0);
  DIFF_ABORT(2);
}


x86 assembly (clang, -O0):
<fatal>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x0,%al
call   1040 <print_message_queue@plt>
mov    -0x8(%rbp),%rsi
lea    0xeb2(%rip),%rdi
xor    %edx,%edx
mov    $0x0,%al
call   1050 <diff_error@plt>
mov    $0x2,%edi
mov    $0x0,%al
call   1030 <DIFF_ABORT@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fatal>:
push   %rbx
mov    %rdi,%rbx
xor    %eax,%eax
call   1040 <print_message_queue@plt>
lea    0xebe(%rip),%rdi
mov    %rbx,%rsi
xor    %edx,%edx
xor    %eax,%eax
call   1050 <diff_error@plt>
mov    $0x2,%edi
xor    %eax,%eax
pop    %rbx
jmp    1030 <DIFF_ABORT@plt>

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

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
define void @fatal(i8* %0) {
%2 = tail call i32 (...) @print_message_queue()
%3 = tail call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @diff_error to i32 (i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %0, i32 0)
%4 = tail call i32 (i32, ...) bitcast (i32 (...)* @DIFF_ABORT to i32 (i32, ...)*)(i32 2)
ret void
}
int test_imm_BAint16_reg(short val) {
  return ((val) & (0xBA << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_BAint16_reg>:
push   %rbp
mov    %rsp,%rbp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
movswl -0x2(%rbp),%edx
and    $0xba,%edx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_BAint16_reg>:
test   $0xba,%dil
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_imm_BAint16_reg(i16 signext %0) {
%2 = alloca i16
store i16 %0, i16* %2
%3 = load i16, i16* %2
%4 = sext i16 %3 to i32
%5 = and i32 %4, 186
%6 = icmp ne i32 %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_BAint16_reg(i16 signext %0) {
%2 = and i16 %0, 186
%3 = icmp eq i16 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ myPrintHello();
int main() {
  myPrintHello();
  return (0);
}


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

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @myPrintHello()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ OQS_MEM_cleanse(void *, size_t);
int /*<<< orphan*/ free(void *);
void OQS_MEM_secure_free(void *ptr, size_t len) {
  if (ptr != NULL) {
    OQS_MEM_cleanse(ptr, len);
    free(ptr);
  }
}


x86 assembly (clang, -O0):
<OQS_MEM_secure_free>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1151 <OQS_MEM_secure_free+0x31>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <OQS_MEM_cleanse@plt>
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<OQS_MEM_secure_free>:
test   %rdi,%rdi
je     1137 <OQS_MEM_secure_free+0x17>
push   %rbx
mov    %rdi,%rbx
call   1040 <OQS_MEM_cleanse@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <free@plt>
ret

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

LLVM IR (-O2):
define void @OQS_MEM_secure_free(i8* %0, i64 %1) {
%3 = icmp eq i8* %0, null
br i1 %3, label %7, label %4
4: ; preds = %2
%5 = tail call i32 @OQS_MEM_cleanse(i8* %0, i64 %1)
%6 = tail call i32 @free(i8* %0)
br label %7
7: ; preds = %4, %2
ret void
}
/* Type definitions */
typedef scalar_t__ iconv_t;

/* Variables and functions */
int /*<<< orphan*/ err(int, char *);
scalar_t__ iconv_open(char const *, char const *);
iconv_t xiconv_open(const char *to, const char *from) {
  iconv_t ret = iconv_open(to, from);
  if (ret == (iconv_t)-1)
    err(1, "Could not get iconv state");
  return ret;
}


x86 assembly (clang, -O0):
<xiconv_open>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <iconv_open@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0xffffffffffffffff,-0x18(%rbp)
jne    115d <xiconv_open+0x3d>
mov    $0x1,%edi
lea    0xea8(%rip),%rsi
call   1030 <err@plt>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xiconv_open>:
push   %rbx
call   1040 <iconv_open@plt>
mov    %rax,%rbx
cmp    $0xffffffffffffffff,%rax
jne    1140 <xiconv_open+0x20>
lea    0xeca(%rip),%rsi
mov    $0x1,%edi
call   1030 <err@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [26 x i8] c"Could not get iconv state\00"
define i64 @xiconv_open(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i64
store i8* %0, i8** %3
store i8* %1, i8** %4
%6 = load i8*, i8** %3
%7 = load i8*, i8** %4
%8 = call i64 @iconv_open(i8* %6, i8* %7)
store i64 %8, i64* %5
%9 = load i64, i64* %5
%10 = icmp eq i64 %9, -1
br i1 %10, label %11, label %13
11: ; preds = %2
%12 = call i32 @err(i32 1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
br label %13
13: ; preds = %11, %2
%14 = load i64, i64* %5
ret i64 %14
}

LLVM IR (-O2):
@.str = [26 x i8] c"Could not get iconv state\00"
define i64 @xiconv_open(i8* %0, i8* %1) {
%3 = tail call i64 @iconv_open(i8* %0, i8* %1)
%4 = icmp eq i64 %3, -1
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = tail call i32 @err(i32 1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
br label %7
7: ; preds = %5, %2
ret i64 %3
}
void XtCallbackNone() {}


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

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

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

LLVM IR (-O2):
define void @XtCallbackNone() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ system(char *);
int main(int argc, char *argv[]) {
  system("ls -lah");
  perror("system");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xec3(%rip),%rdi
call   1030 <system@plt>
lea    0xebf(%rip),%rdi
call   1040 <perror@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [8 x i8] c"ls -lah\00"
@.str.1 = [7 x i8] c"system\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 @system(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%7 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [8 x i8] c"ls -lah\00"
@.str.1 = [7 x i8] c"system\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @system(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}
void test3(void) {
  switch (0)
    ;
}


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

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

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

LLVM IR (-O2):
define void @test3() {
ret void
}
void fa133(int n) {
  {
    int b[n];
    {
      int c[n];
      0;
    }
    {
      int d[n];
      0;
    };
    int e[n];
    0;
  };
  goto a;
  {
    int f[n];
    {
      int g[n];
      0;
    };
    {
      int h[n];
      0;
    };
    ;
    int i[n];
    0;
  };
a:;
  int j[n];
  0;
}


x86 assembly (clang, -O0):
<fa133>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x10(%rbp)
mov    %rax,-0x18(%rbp)
mov    -0x4(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x20(%rbp)
mov    %rax,-0x28(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x30(%rbp)
mov    %rax,-0x38(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rax,-0x40(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x80(%rbp)
mov    %rax,-0x88(%rbp)
mov    -0x80(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define void @fa133(i32 %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i64
%5 = alloca i8*
%6 = alloca i64
%7 = alloca i8*
%8 = alloca i64
%9 = alloca i64
%10 = alloca i8*
%11 = alloca i64
%12 = alloca i8*
%13 = alloca i64
%14 = alloca i8*
%15 = alloca i64
%16 = alloca i64
%17 = alloca i8*
%18 = alloca i64
store i32 %0, i32* %2
%19 = load i32, i32* %2
%20 = zext i32 %19 to i64
%21 = call i8* @llvm.stacksave()
store i8* %21, i8** %3
%22 = alloca i32, i64 %20
store i64 %20, i64* %4
%23 = load i32, i32* %2
%24 = zext i32 %23 to i64
%25 = call i8* @llvm.stacksave()
store i8* %25, i8** %5
%26 = alloca i32, i64 %24
store i64 %24, i64* %6
%27 = load i8*, i8** %5
%28 = load i32, i32* %2
%29 = zext i32 %28 to i64
%30 = call i8* @llvm.stacksave()
store i8* %30, i8** %7
%31 = alloca i32, i64 %29
store i64 %29, i64* %8
%32 = load i8*, i8** %7
%33 = load i32, i32* %2
%34 = zext i32 %33 to i64
%35 = alloca i32, i64 %34
store i64 %34, i64* %9
%36 = load i8*, i8** %3
br label %56
37: ; No predecessors!
%38 = load i32, i32* %2
%39 = zext i32 %38 to i64
%40 = call i8* @llvm.stacksave()
store i8* %40, i8** %10
%41 = alloca i32, i64 %39
store i64 %39, i64* %11
%42 = load i32, i32* %2
%43 = zext i32 %42 to i64
%44 = call i8* @llvm.stacksave()
store i8* %44, i8** %12
%45 = alloca i32, i64 %43
store i64 %43, i64* %13
%46 = load i8*, i8** %12
%47 = load i32, i32* %2
%48 = zext i32 %47 to i64
%49 = call i8* @llvm.stacksave()
store i8* %49, i8** %14
%50 = alloca i32, i64 %48
store i64 %48, i64* %15
%51 = load i8*, i8** %14
%52 = load i32, i32* %2
%53 = zext i32 %52 to i64
%54 = alloca i32, i64 %53
store i64 %53, i64* %16
%55 = load i8*, i8** %10
br label %56
56: ; preds = %37, %1
%57 = load i32, i32* %2
%58 = zext i32 %57 to i64
%59 = call i8* @llvm.stacksave()
store i8* %59, i8** %17
%60 = alloca i32, i64 %58
store i64 %58, i64* %18
%61 = load i8*, i8** %17
ret void
}

LLVM IR (-O2):
define void @fa133(i32 %0) {
ret void
}
void task_semaphore_wait(void) {}


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

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

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

LLVM IR (-O2):
define void @task_semaphore_wait() {
ret void
}
/* Variables and functions */
unsigned char *generate_command_packet(int, unsigned char, int /*<<< orphan*/,
                                       int /*<<< orphan*/ *,
                                       int /*<<< orphan*/);
unsigned char *op_random() {
  unsigned char USE_MODE = 0x00;
  return generate_command_packet(0x1B, USE_MODE, 0, NULL, 0);
}


x86 assembly (clang, -O0):
<op_random>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movb   $0x0,-0x1(%rbp)
mov    $0x1b,%edi
xor    %r8d,%r8d
xor    %eax,%eax
mov    %eax,%ecx
movzbl -0x1(%rbp),%esi
mov    %r8d,%edx
call   1030 <generate_command_packet@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<op_random>:
mov    $0x1b,%edi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
jmp    1030 <generate_command_packet@plt>

LLVM IR (-O0):
define i8* @op_random() {
%1 = alloca i8
store i8 0, i8* %1
%2 = load i8, i8* %1
%3 = call i8* @generate_command_packet(i32 27, i8 zeroext %2, i32 0, i32* null, i32 0)
ret i8* %3
}

LLVM IR (-O2):
define i8* @op_random() {
%1 = tail call i8* @generate_command_packet(i32 27, i8 zeroext 0, i32 0, i32* null, i32 0)
ret i8* %1
}
/* Variables and functions */
int /*<<< orphan*/ pickmsg(int /*<<< orphan*/);
void op_errmsg() { pickmsg(0); }


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

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

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

LLVM IR (-O2):
define void @op_errmsg() {
%1 = tail call i32 @pickmsg(i32 0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ puts(char *);
char *snapchat_request_token(char const *const, int);
int main(int argc, char *argv[]) {
  const char *const static_token = "m198sOkJEn37DjqZ32lpRu76xmw288xSQ9";
  char *token = snapchat_request_token(static_token, 1373209025);
  puts(token);
  free(token);
  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)
lea    0xeb3(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    0xea8(%rip),%rdi
mov    $0x51d981c1,%esi
call   1050 <snapchat_request_token@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
call   1040 <puts@plt>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xec8(%rip),%rdi
mov    $0x51d981c1,%esi
call   1050 <snapchat_request_token@plt>
mov    %rax,%rbx
mov    %rax,%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [35 x i8] c"m198sOkJEn37DjqZ32lpRu76xmw288xSQ9\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i8** %6
%8 = call i8* @snapchat_request_token(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i32 0, i32 0), i32 1373209025)
store i8* %8, i8** %7
%9 = load i8*, i8** %7
%10 = call i32 @puts(i8* %9)
%11 = load i8*, i8** %7
%12 = call i32 @free(i8* %11)
ret i32 0
}

LLVM IR (-O2):
@.str = [35 x i8] c"m198sOkJEn37DjqZ32lpRu76xmw288xSQ9\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i8* @snapchat_request_token(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 1373209025)
%4 = tail call i32 @puts(i8* dereferenceable(1) %3)
%5 = tail call i32 @free(i8* %3)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ set_io_bit(int, int);
void TOSH_SET_INT3_PIN() { set_io_bit(0x43, 3); }


x86 assembly (clang, -O0):
<TOSH_SET_INT3_PIN>:
push   %rbp
mov    %rsp,%rbp
mov    $0x43,%edi
mov    $0x3,%esi
call   1030 <set_io_bit@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<TOSH_SET_INT3_PIN>:
mov    $0x43,%edi
mov    $0x3,%esi
jmp    1030 <set_io_bit@plt>

LLVM IR (-O0):
define void @TOSH_SET_INT3_PIN() {
%1 = call i32 @set_io_bit(i32 67, i32 3)
ret void
}

LLVM IR (-O2):
define void @TOSH_SET_INT3_PIN() {
%1 = tail call i32 @set_io_bit(i32 67, i32 3)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ text;

/* Variables and functions */
int /*<<< orphan*/ trap_SP_GetStringTextString(int /*<<< orphan*/, char *, int);
int /*<<< orphan*/ va(char *, char const *, char const *);
const char *UI_GetStripEdString(const char *refSection, const char *refName) {
  static char text[1024] = {0};
  trap_SP_GetStringTextString(va("%s_%s", refSection, refName), text,
                              sizeof(text));
  return text;
}


x86 assembly (clang, -O0):
<UI_GetStripEdString>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
lea    0xec1(%rip),%rdi
call   1040 <va@plt>
mov    %eax,%edi
lea    0x2ef3(%rip),%rsi
mov    $0x400,%edx
call   1030 <trap_SP_GetStringTextString@plt>
lea    0x2ee2(%rip),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<UI_GetStripEdString>:
push   %rbx
mov    %rsi,%rdx
mov    %rdi,%rsi
lea    0xed2(%rip),%rdi
call   1040 <va@plt>
lea    0x2f06(%rip),%rbx
mov    %eax,%edi
mov    %rbx,%rsi
mov    $0x400,%edx
call   1030 <trap_SP_GetStringTextString@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
@UI_GetStripEdString.text = internal global [1024 x i8] zeroinitializer
@.str = [6 x i8] c"%s_%s\00"
define i8* @UI_GetStripEdString(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %3
%6 = load i8*, i8** %4
%7 = call i32 @va(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %5, i8* %6)
%8 = call i32 @trap_SP_GetStringTextString(i32 %7, i8* getelementptr inbounds ([1024 x i8], [1024 x i8]* @UI_GetStripEdString.text, i64 0, i64 0), i32 1024)
ret i8* getelementptr inbounds ([1024 x i8], [1024 x i8]* @UI_GetStripEdString.text, i64 0, i64 0)
}

LLVM IR (-O2):
@UI_GetStripEdString.text = internal global [1024 x i8] zeroinitializer
@.str = [6 x i8] c"%s_%s\00"
define i8* @UI_GetStripEdString(i8* %0, i8* %1) {
%3 = tail call i32 @va(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %1)
%4 = tail call i32 @trap_SP_GetStringTextString(i32 %3, i8* getelementptr inbounds ([1024 x i8], [1024 x i8]* @UI_GetStripEdString.text, i64 0, i64 0), i32 1024)
ret i8* getelementptr inbounds ([1024 x i8], [1024 x i8]* @UI_GetStripEdString.text, i64 0, i64 0)
}
unsigned myhexlen(unsigned u) {
  if (u == 0)
    return 1;
  unsigned d;
  for (d = 0; u; d++)
    u >>= 4;
  return d;
}


x86 assembly (clang, -O0):
<myhexlen>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jne    111d <myhexlen+0x1d>
movl   $0x1,-0x4(%rbp)
jmp    114b <myhexlen+0x4b>
movl   $0x0,-0xc(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     1145 <myhexlen+0x45>
mov    -0x8(%rbp),%eax
shr    $0x4,%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1124 <myhexlen+0x24>
mov    -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<myhexlen>:
test   %edi,%edi
je     111e <myhexlen+0x1e>
xor    %eax,%eax
mov    %edi,%ecx
nopl   0x0(%rax,%rax,1)
shr    $0x4,%ecx
add    $0x1,%eax
cmp    $0xf,%edi
mov    %ecx,%edi
ja     1110 <myhexlen+0x10>
ret
mov    $0x1,%eax
ret

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

LLVM IR (-O2):
define i32 @myhexlen(i32 %0) {
%2 = icmp eq i32 %0, 0
br i1 %2, label %9, label %3
3: ; preds = %1, %3
%4 = phi i32 [ %7, %3 ], [ 0, %1 ]
%5 = phi i32 [ %6, %3 ], [ %0, %1 ]
%6 = lshr i32 %5, 4
%7 = add nuw nsw i32 %4, 1
%8 = icmp ult i32 %5, 16
br i1 %8, label %9, label %3
9: ; preds = %3, %1
%10 = phi i32 [ 1, %1 ], [ %7, %3 ]
ret i32 %10
}
void test_b() {}


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

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

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

LLVM IR (-O2):
define void @test_b() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
void *malloc(size_t);
int /*<<< orphan*/ stderr;
void *safe_malloc(size_t size) {
  void *val = malloc(size);
  if (val == NULL) {
    fprintf(stderr, "ERROR: MALLOC FAILURE!\n");
    exit(1);
  }
  return val;
}


x86 assembly (clang, -O0):
<safe_malloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <malloc@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1173 <safe_malloc+0x43>
mov    0x2e85(%rip),%rax
mov    (%rax),%edi
lea    0xe9c(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<safe_malloc>:
push   %rax
call   1040 <malloc@plt>
test   %rax,%rax
je     113d <safe_malloc+0xd>
pop    %rcx
ret
mov    0x2e9c(%rip),%rax
mov    (%rax),%edi
lea    0xeb3(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [24 x i8] c"ERROR: MALLOC FAILURE!\0A\00"
define i8* @safe_malloc(i64 %0) {
%2 = alloca i64
%3 = alloca i8*
store i64 %0, i64* %2
%4 = load i64, i64* %2
%5 = call i8* @malloc(i64 %4)
store i8* %5, i8** %3
%6 = load i8*, i8** %3
%7 = icmp eq i8* %6, null
br i1 %7, label %8, label %12
8: ; preds = %1
%9 = load i32, i32* @stderr
%10 = call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%11 = call i32 @exit(i32 1)
unreachable
12: ; preds = %1
%13 = load i8*, i8** %3
ret i8* %13
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [24 x i8] c"ERROR: MALLOC FAILURE!\0A\00"
define noalias i8* @safe_malloc(i64 %0) {
%2 = tail call i8* @malloc(i64 %0)
%3 = icmp eq i8* %2, null
br i1 %3, label %4, label %8
4: ; preds = %1
%5 = load i32, i32* @stderr
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%7 = tail call i32 @exit(i32 1)
unreachable
8: ; preds = %1
ret i8* %2
}
void delayacct_freepages_end(void) {}


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

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

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

LLVM IR (-O2):
define void @delayacct_freepages_end() {
ret void
}
/* Forward declarations */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  int /*<<< orphan*/ *display;
};
typedef TYPE_1__ XExposeEvent;
typedef int /*<<< orphan*/ Display;

/* Variables and functions */
void set_XExposeEvent_display(void *_p, void *_v) {
  ((XExposeEvent *)_p)->display = (Display *)_v;
}


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

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

LLVM IR (-O0):
%struct.TYPE_2__ = type { i32* }
define void @set_XExposeEvent_display(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %4
%6 = bitcast i8* %5 to i32*
%7 = load i8*, i8** %3
%8 = bitcast i8* %7 to %struct.TYPE_2__*
%9 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %8, i32 0, i32 0
store i32* %6, i32** %9
ret void
}

LLVM IR (-O2):
define void @set_XExposeEvent_display(i8* nocapture writeonly %0, i8* %1) {
%3 = bitcast i8* %0 to i8**
store i8* %1, i8** %3
ret void
}
int f1(int y, int x) { return x & (y | (~x)); }


x86 assembly (clang, -O0):
<f1>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    -0x4(%rbp),%ecx
mov    -0x8(%rbp),%edx
xor    $0xffffffff,%edx
or     %edx,%ecx
and    %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<f1>:
mov    %edi,%eax
and    %esi,%eax
ret

LLVM IR (-O0):
define i32 @f1(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = load i32, i32* %3
%7 = load i32, i32* %4
%8 = xor i32 %7, -1
%9 = or i32 %6, %8
%10 = and i32 %5, %9
ret i32 %10
}

LLVM IR (-O2):
define i32 @f1(i32 %0, i32 %1) {
%3 = and i32 %1, %0
ret i32 %3
}
int func_anonym(double input) {
  (void)input;
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @func_anonym(double %0) {
ret i32 0
}
void ARGBMirrorRow_NEON() {}


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

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

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

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