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

/* Variables and functions */
int height(struct btree *);
int /*<<< orphan*/ printLevel(struct btree *, int);
levelOrder(struct btree *a) {
  for (int h = 1; h < height(a); h++)
    printLevel(a, h);
}


x86 assembly (clang, -O0):
<levelOrder>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <height@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%eax
cmp    %ecx,%eax
jge    1169 <levelOrder+0x49>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
call   1030 <printLevel@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1133 <levelOrder+0x13>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<levelOrder>:
push   %rbp
push   %rbx
push   %rax
mov    %rdi,%rbx
call   1040 <height@plt>
cmp    $0x2,%eax
jl     1159 <levelOrder+0x39>
mov    $0x1,%ebp
cs nopw 0x0(%rax,%rax,1)
nop
mov    %rbx,%rdi
mov    %ebp,%esi
call   1030 <printLevel@plt>
add    $0x1,%ebp
mov    %rbx,%rdi
call   1040 <height@plt>
cmp    %eax,%ebp
jl     1140 <levelOrder+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
%struct.btree = type { i32 }
define i32 @levelOrder(%struct.btree* %0) {
%2 = alloca i32
%3 = alloca %struct.btree*
%4 = alloca i32
store %struct.btree* %0, %struct.btree** %3
store i32 1, i32* %4
br label %5
5: ; preds = %14, %1
%6 = load i32, i32* %4
%7 = load %struct.btree*, %struct.btree** %3
%8 = call i32 @height(%struct.btree* %7)
%9 = icmp slt i32 %6, %8
br i1 %9, label %10, label %17
10: ; preds = %5
%11 = load %struct.btree*, %struct.btree** %3
%12 = load i32, i32* %4
%13 = call i32 @printLevel(%struct.btree* %11, i32 %12)
br label %14
14: ; preds = %10
%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):
%struct.btree = type { i32 }
define i32 @levelOrder(%struct.btree* %0) {
%2 = tail call i32 @height(%struct.btree* %0)
%3 = icmp sgt i32 %2, 1
br i1 %3, label %5, label %4
4: ; preds = %5, %1
ret i32 undef
5: ; preds = %1, %5
%6 = phi i32 [ %8, %5 ], [ 1, %1 ]
%7 = tail call i32 @printLevel(%struct.btree* %0, i32 %6)
%8 = add nuw nsw i32 %6, 1
%9 = tail call i32 @height(%struct.btree* %0)
%10 = icmp slt i32 %8, %9
br i1 %10, label %5, label %4
}
void trap_remove_handler(unsigned trap_number) {}


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

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

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

LLVM IR (-O2):
define void @trap_remove_handler(i32 %0) {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ u_int16_t;
typedef int /*<<< orphan*/ u_char;

/* Variables and functions */
int /*<<< orphan*/ __get_unaligned_le16(int /*<<< orphan*/ const *);
u_int16_t get_unaligned_le16(const void *p) {
  return __get_unaligned_le16((const u_char *)p);
}


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

x86 assembly (clang, -O2):
<get_unaligned_le16>:
jmp    1030 <__get_unaligned_le16@plt>

LLVM IR (-O0):
define i32 @get_unaligned_le16(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = bitcast i8* %3 to i32*
%5 = call i32 @__get_unaligned_le16(i32* %4)
ret i32 %5
}

LLVM IR (-O2):
define i32 @get_unaligned_le16(i8* %0) {
%2 = bitcast i8* %0 to i32*
%3 = tail call i32 @__get_unaligned_le16(i32* %2)
ret i32 %3
}
/* Variables and functions */
void *__mingw_aligned_offset_realloc(void *, size_t, size_t,
                                     int /*<<< orphan*/);
void *__mingw_aligned_realloc(void *memblock, size_t size, size_t alignment) {
  return __mingw_aligned_offset_realloc(memblock, size, alignment, 0);
}


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

x86 assembly (clang, -O2):
<__mingw_aligned_realloc>:
xor    %ecx,%ecx
jmp    1030 <__mingw_aligned_offset_realloc@plt>

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

LLVM IR (-O2):
define i8* @__mingw_aligned_realloc(i8* %0, i64 %1, i64 %2) {
%4 = tail call i8* @__mingw_aligned_offset_realloc(i8* %0, i64 %1, i64 %2, i32 0)
ret i8* %4
}
/* Variables and functions */
int /*<<< orphan*/ scanChar(unsigned char *, int);
char getChar() {
  unsigned char c = 0;
  do {
    scanChar(&c, 1);
  } while (c == 0);
  return c;
}


x86 assembly (clang, -O0):
<getChar>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movb   $0x0,-0x1(%rbp)
lea    -0x1(%rbp),%rdi
mov    $0x1,%esi
call   1030 <scanChar@plt>
movzbl -0x1(%rbp),%eax
cmp    $0x0,%eax
je     111c <getChar+0xc>
movsbl -0x1(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getChar>:
push   %rbx
sub    $0x10,%rsp
movb   $0x0,0xf(%rsp)
lea    0xf(%rsp),%rbx
nop
mov    %rbx,%rdi
mov    $0x1,%esi
call   1030 <scanChar@plt>
movzbl 0xf(%rsp),%eax
test   %al,%al
je     1120 <getChar+0x10>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define signext i8 @getChar() {
%1 = alloca i8
store i8 0, i8* %1
br label %2
2: ; preds = %4, %0
%3 = call i32 @scanChar(i8* %1, i32 1)
br label %4
4: ; preds = %2
%5 = load i8, i8* %1
%6 = zext i8 %5 to i32
%7 = icmp eq i32 %6, 0
br i1 %7, label %2, label %8
8: ; preds = %4
%9 = load i8, i8* %1
ret i8 %9
}

LLVM IR (-O2):
define signext i8 @getChar() {
%1 = alloca i8
store i8 0, i8* %1
br label %2
2: ; preds = %2, %0
%3 = call i32 @scanChar(i8* %1, i32 1)
%4 = load i8, i8* %1
%5 = icmp eq i8 %4, 0
br i1 %5, label %2, label %6
6: ; preds = %2
ret i8 %4
}
int NoSoundDrv_GetError(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @NoSoundDrv_GetError() {
ret i32 0
}
/* Type definitions */
struct feed_suggest_list {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ feed_suggest_list_clear(struct feed_suggest_list *const);
void feed_suggest_list_cleanup(struct feed_suggest_list *const p_suggest_list) {
  feed_suggest_list_clear(p_suggest_list);
}


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

x86 assembly (clang, -O2):
<feed_suggest_list_cleanup>:
jmp    1030 <feed_suggest_list_clear@plt>

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

LLVM IR (-O2):
%struct.feed_suggest_list = type { i32 }
define void @feed_suggest_list_cleanup(%struct.feed_suggest_list* %0) {
%2 = tail call i32 @feed_suggest_list_clear(%struct.feed_suggest_list* %0)
ret void
}
/* Variables and functions */
int FE_ALL_EXCEPT;
int get_fpc();
int /*<<< orphan*/ set_fpc(int);
int feraiseexcept(int mask) {
  mask &= FE_ALL_EXCEPT;
  set_fpc(get_fpc() | mask);
  return 0;
}


x86 assembly (clang, -O0):
<feraiseexcept>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    0x2eae(%rip),%rax
mov    (%rax),%eax
and    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1040 <get_fpc@plt>
mov    %eax,%edi
or     -0x4(%rbp),%edi
call   1030 <set_fpc@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<feraiseexcept>:
push   %rbx
mov    %edi,%ebx
mov    0x2eb6(%rip),%rax
and    (%rax),%ebx
xor    %eax,%eax
call   1040 <get_fpc@plt>
or     %eax,%ebx
mov    %ebx,%edi
call   1030 <set_fpc@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@FE_ALL_EXCEPT = global i32 0
define i32 @feraiseexcept(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* @FE_ALL_EXCEPT
%4 = load i32, i32* %2
%5 = and i32 %4, %3
store i32 %5, i32* %2
%6 = call i32 (...) @get_fpc()
%7 = load i32, i32* %2
%8 = or i32 %6, %7
%9 = call i32 @set_fpc(i32 %8)
ret i32 0
}

LLVM IR (-O2):
@FE_ALL_EXCEPT = global i32 0
define i32 @feraiseexcept(i32 %0) {
%2 = load i32, i32* @FE_ALL_EXCEPT
%3 = and i32 %2, %0
%4 = tail call i32 (...) @get_fpc()
%5 = or i32 %4, %3
%6 = tail call i32 @set_fpc(i32 %5)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ LOG_DEBUG;
int /*<<< orphan*/ syslog(int /*<<< orphan*/, char const *);
void debug(const char *message, ...) { syslog(LOG_DEBUG, message); }


x86 assembly (clang, -O0):
<debug>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ebd(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rsi
call   1030 <syslog@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<debug>:
mov    %rdi,%rsi
mov    0x2ec6(%rip),%rax
mov    (%rax),%edi
jmp    1030 <syslog@plt>

LLVM IR (-O0):
@LOG_DEBUG = global i32 0
define void @debug(i8* %0, ...) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @LOG_DEBUG
%4 = load i8*, i8** %2
%5 = call i32 @syslog(i32 %3, i8* %4)
ret void
}

LLVM IR (-O2):
@LOG_DEBUG = global i32 0
define void @debug(i8* %0, ...) {
%2 = load i32, i32* @LOG_DEBUG
%3 = tail call i32 @syslog(i32 %2, i8* %0)
ret void
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
uint32_t pi_reg(uint32_t address) { return (address & 0xffff) >> 2; }


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

x86 assembly (clang, -O2):
<pi_reg>:
mov    %edi,%eax
shr    $0x2,%eax
and    $0x3fff,%eax
ret

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

LLVM IR (-O2):
define i32 @pi_reg(i32 %0) {
%2 = lshr i32 %0, 2
%3 = and i32 %2, 16383
ret i32 %3
}
void ExttRuleAuxTable(void) {}


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

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

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

LLVM IR (-O2):
define void @ExttRuleAuxTable() {
ret void
}
/* Variables and functions */
float ceil(float);
float floor(float);
__attribute__((always_)) float roundf(float x) {
  return (x > 0) ? floor(x + 0.5) : ceil(x - 0.5);
}


x86 assembly (clang, -O0):
<roundf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jbe    1166 <roundf+0x46>
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xeb1(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
call   1040 <floor@plt>
movss  %xmm0,-0x8(%rbp)
jmp    1189 <roundf+0x69>
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe89(%rip),%xmm1
subsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
call   1030 <ceil@plt>
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<roundf>:
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jbe    1135 <roundf+0x15>
addss  0xed4(%rip),%xmm0
jmp    1030 <floorf@plt>
addss  0xec3(%rip),%xmm0
jmp    1040 <ceilf@plt>

LLVM IR (-O0):
define float @roundf(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = fcmp ogt float %3, 0.000000e+00
br i1 %4, label %5, label %11
5: ; preds = %1
%6 = load float, float* %2
%7 = fpext float %6 to double
%8 = fadd double %7, 5.000000e-01
%9 = fptrunc double %8 to float
%10 = call float @floor(float %9)
br label %17
11: ; preds = %1
%12 = load float, float* %2
%13 = fpext float %12 to double
%14 = fsub double %13, 5.000000e-01
%15 = fptrunc double %14 to float
%16 = call float @ceil(float %15)
br label %17
17: ; preds = %11, %5
%18 = phi float [ %10, %5 ], [ %16, %11 ]
ret float %18
}

LLVM IR (-O2):
define float @roundf(float %0) {
%2 = fcmp ogt float %0, 0.000000e+00
br i1 %2, label %3, label %6
3: ; preds = %1
%4 = fadd float %0, 5.000000e-01
%5 = tail call float @llvm.floor.f32(float %4)
br label %9
6: ; preds = %1
%7 = fadd float %0, -5.000000e-01
%8 = tail call float @llvm.ceil.f32(float %7)
br label %9
9: ; preds = %6, %3
%10 = phi float [ %5, %3 ], [ %8, %6 ]
ret float %10
}
void unix_stop_timer(struct qemu_alarm_timer *t) {}


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

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

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

LLVM IR (-O2):
%struct.qemu_alarm_timer = type opaque
define void @unix_stop_timer(%struct.qemu_alarm_timer* nocapture %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ print(int /*<<< orphan*/);
int /*<<< orphan*/ sqrt(int);
void main(int n) { print(sqrt(n)); }


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

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

LLVM IR (-O0):
define void @main(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @sqrt(i32 %3)
%5 = call i32 @print(i32 %4)
ret void
}

LLVM IR (-O2):
define void @main(i32 %0) {
%2 = tail call i32 @sqrt(i32 %0)
%3 = tail call i32 @print(i32 %2)
ret void
}
void bl_memusage() {}


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

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

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

LLVM IR (-O2):
define void @bl_memusage() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int _clear_usage(void) {
  fputs("Usage: "
        "clear"
        "\n",
        stderr);
  return 1;
}


x86 assembly (clang, -O0):
<_clear_usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%esi
lea    0xedc(%rip),%rdi
call   1030 <fputs@plt>
mov    $0x1,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<_clear_usage>:
push   %rax
mov    0x2ec8(%rip),%rax
mov    (%rax),%esi
lea    0xedf(%rip),%rdi
call   1030 <fputs@plt>
mov    $0x1,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [14 x i8] c"Usage: clear\0A\00"
@stderr = global i32 0
define i32 @_clear_usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fputs(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %1)
ret i32 1
}

LLVM IR (-O2):
@.str = [14 x i8] c"Usage: clear\0A\00"
@stderr = global i32 0
define i32 @_clear_usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fputs(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %1)
ret i32 1
}
/* Variables and functions */
scalar_t__ is_category_Lt(unsigned int);
scalar_t__ is_property_lowercase(unsigned int);
scalar_t__ is_property_uppercase(unsigned int);
bool is_cased(unsigned int ch) {
  return (is_property_lowercase(ch) || is_property_uppercase(ch) ||
          is_category_Lt(ch));
}


x86 assembly (clang, -O0):
<is_cased>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1050 <is_property_lowercase@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x5(%rbp)
jne    1181 <is_cased+0x51>
mov    -0x4(%rbp),%edi
call   1030 <is_property_uppercase@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x5(%rbp)
jne    1181 <is_cased+0x51>
mov    -0x4(%rbp),%edi
call   1040 <is_category_Lt@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_cased>:
push   %rbp
push   %rbx
push   %rax
mov    %edi,%ebp
call   1050 <is_property_lowercase@plt>
mov    $0x1,%ebx
test   %rax,%rax
jne    115f <is_cased+0x2f>
mov    %ebp,%edi
call   1030 <is_property_uppercase@plt>
test   %rax,%rax
jne    115f <is_cased+0x2f>
mov    %ebp,%edi
call   1040 <is_category_Lt@plt>
xor    %ebx,%ebx
test   %rax,%rax
setne  %bl
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @is_cased(i32 %0) {
%2 = tail call i64 @is_property_lowercase(i32 %0)
%3 = icmp eq i64 %2, 0
br i1 %3, label %4, label %11
4: ; preds = %1
%5 = tail call i64 @is_property_uppercase(i32 %0)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %11
7: ; preds = %4
%8 = tail call i64 @is_category_Lt(i32 %0)
%9 = icmp ne i64 %8, 0
%10 = zext i1 %9 to i32
br label %11
11: ; preds = %7, %4, %1
%12 = phi i32 [ 1, %4 ], [ 1, %1 ], [ %10, %7 ]
ret i32 %12
}
/* Type definitions */
struct libusb_transfer {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ libusb_free_transfer(struct libusb_transfer *);
void usb_callback(struct libusb_transfer *t) {
  libusb_free_transfer(t);
  return;
}


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

x86 assembly (clang, -O2):
<usb_callback>:
jmp    1030 <libusb_free_transfer@plt>

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

LLVM IR (-O2):
%struct.libusb_transfer = type { i32 }
define void @usb_callback(%struct.libusb_transfer* %0) {
%2 = tail call i32 @libusb_free_transfer(%struct.libusb_transfer* %0)
ret void
}
/* Variables and functions */
scalar_t__ isTrue(char const *);
long strtol(char const *, int /*<<< orphan*/ *, int /*<<< orphan*/);
long parseInteger(const char *value) {
  if (isTrue(value))
    return (1);
  return (strtol(value, NULL, 0));
}


x86 assembly (clang, -O0):
<parseInteger>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <isTrue@plt>
cmp    $0x0,%rax
je     114c <parseInteger+0x2c>
movq   $0x1,-0x8(%rbp)
jmp    115f <parseInteger+0x3f>
mov    -0x10(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
call   1040 <strtol@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parseInteger>:
push   %rbx
mov    %rdi,%rbx
call   1030 <isTrue@plt>
test   %rax,%rax
je     1135 <parseInteger+0x15>
mov    $0x1,%eax
pop    %rbx
ret
mov    %rbx,%rdi
xor    %esi,%esi
xor    %edx,%edx
pop    %rbx
jmp    1040 <strtol@plt>

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

LLVM IR (-O2):
define i64 @parseInteger(i8* %0) {
%2 = tail call i64 @isTrue(i8* %0)
%3 = icmp eq i64 %2, 0
br i1 %3, label %4, label %6
4: ; preds = %1
%5 = tail call i64 @strtol(i8* nocapture %0, i32* null, i32 0)
br label %6
6: ; preds = %1, %4
%7 = phi i64 [ %5, %4 ], [ 1, %1 ]
ret i64 %7
}
/* Type definitions */
typedef int /*<<< orphan*/ va_list;

/* Variables and functions */
int /*<<< orphan*/ stdout;
int /*<<< orphan*/ vfprintf(int /*<<< orphan*/, char const *,
                            int /*<<< orphan*/);
void dprintnv(const char *format, va_list args) {
  vfprintf(stdout, format, args);
}


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

x86 assembly (clang, -O2):
<dprintnv>:
mov    %esi,%edx
mov    %rdi,%rsi
mov    0x2ec4(%rip),%rax
mov    (%rax),%edi
jmp    1030 <vfprintf@plt>

LLVM IR (-O0):
@stdout = global i32 0
define void @dprintnv(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i32, i32* @stdout
%6 = load i8*, i8** %3
%7 = load i32, i32* %4
%8 = call i32 @vfprintf(i32 %5, i8* %6, i32 %7)
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
define void @dprintnv(i8* %0, i32 %1) {
%3 = load i32, i32* @stdout
%4 = tail call i32 @vfprintf(i32 %3, i8* %0, i32 %1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ assert(int);
int myload(char *recp, int recsize, char const *buf, char const *udata,
           int uleng) {
  (void)recp, (void)buf, (void)udata, (void)uleng;
  int ret = 0;
  assert(ret >= 0);
  assert(ret <= recsize);
  return ret;
}


x86 assembly (clang, -O0):
<myload>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
cmpl   $0x0,-0x28(%rbp)
setge  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x28(%rbp),%eax
cmp    -0xc(%rbp),%eax
setle  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x28(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<myload>:
push   %rbx
mov    %esi,%ebx
mov    $0x1,%edi
call   1030 <assert@plt>
not    %ebx
shr    $0x1f,%ebx
mov    %ebx,%edi
call   1030 <assert@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @myload(i8* %0, i32 %1, i8* %2, i8* %3, i32 %4) {
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i32
%11 = alloca i32
store i8* %0, i8** %6
store i32 %1, i32* %7
store i8* %2, i8** %8
store i8* %3, i8** %9
store i32 %4, i32* %10
%12 = load i8*, i8** %6
%13 = load i8*, i8** %8
%14 = load i8*, i8** %9
%15 = load i32, i32* %10
store i32 0, i32* %11
%16 = load i32, i32* %11
%17 = icmp sge i32 %16, 0
%18 = zext i1 %17 to i32
%19 = call i32 @assert(i32 %18)
%20 = load i32, i32* %11
%21 = load i32, i32* %7
%22 = icmp sle i32 %20, %21
%23 = zext i1 %22 to i32
%24 = call i32 @assert(i32 %23)
%25 = load i32, i32* %11
ret i32 %25
}

LLVM IR (-O2):
define i32 @myload(i8* nocapture readnone %0, i32 %1, i8* nocapture readnone %2, i8* nocapture readnone %3, i32 %4) {
%6 = tail call i32 @assert(i32 1)
%7 = xor i32 %1, -1
%8 = lshr i32 %7, 31
%9 = tail call i32 @assert(i32 %8)
ret i32 0
}
void rop3_43_0_0(unsigned char *D, unsigned char S, unsigned char T) {
  unsigned char stk1;
  unsigned char stk2;
  unsigned char stk3;
  stk2 = S ^ T;
  stk3 = T ^ *D;
  stk2 = stk2 & stk3;
  stk1 = S ^ stk2;
  stk1 = ~stk1;
  *D = stk1;
}


x86 assembly (clang, -O0):
<rop3_43_0_0>:
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,-0xc(%rbp)
movzbl -0xa(%rbp),%eax
mov    -0x8(%rbp),%rcx
movzbl (%rcx),%ecx
xor    %ecx,%eax
mov    %al,-0xd(%rbp)
movzbl -0xc(%rbp),%eax
movzbl -0xd(%rbp),%ecx
and    %ecx,%eax
mov    %al,-0xc(%rbp)
movzbl -0x9(%rbp),%eax
movzbl -0xc(%rbp),%ecx
xor    %ecx,%eax
mov    %al,-0xb(%rbp)
movzbl -0xb(%rbp),%eax
xor    $0xffffffff,%eax
mov    %al,-0xb(%rbp)
mov    -0xb(%rbp),%cl
mov    -0x8(%rbp),%rax
mov    %cl,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<rop3_43_0_0>:
mov    %edx,%eax
xor    %sil,%al
xor    (%rdi),%dl
and    %al,%dl
xor    %sil,%dl
not    %dl
mov    %dl,(%rdi)
ret

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

LLVM IR (-O2):
define void @rop3_43_0_0(i8* nocapture %0, i8 zeroext %1, i8 zeroext %2) {
%4 = xor i8 %2, %1
%5 = load i8, i8* %0
%6 = xor i8 %5, %2
%7 = and i8 %6, %4
%8 = xor i8 %7, %1
%9 = xor i8 %8, -1
store i8 %9, i8* %0
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int main() {
  char string[50];
  strcpy(string, "Terminal de Informacao");
  printf("String: \" %s \" ", string);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x40(%rbp),%rdi
lea    0xec6(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0x40(%rbp),%rsi
lea    0xecd(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x40,%rsp
lea    0xed4(%rip),%rsi
mov    %rsp,%rbx
mov    %rbx,%rdi
call   1030 <strcpy@plt>
lea    0xed9(%rip),%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [23 x i8] c"Terminal de Informacao\00"
@.str.1 = [16 x i8] c"String: \22 %s \22 \00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [50 x i8]
store i32 0, i32* %1
%3 = getelementptr inbounds [50 x i8], [50 x i8]* %2, i64 0, i64 0
%4 = call i32 @strcpy(i8* %3, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%5 = getelementptr inbounds [50 x i8], [50 x i8]* %2, i64 0, i64 0
%6 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i8* %5)
ret i32 0
}

LLVM IR (-O2):
@.str = [23 x i8] c"Terminal de Informacao\00"
@.str.1 = [16 x i8] c"String: \22 %s \22 \00"
define i32 @main() {
%1 = alloca [50 x i8]
%2 = getelementptr inbounds [50 x i8], [50 x i8]* %1, i64 0, i64 0
%3 = call i32 @strcpy(i8* %2, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i8* %2)
ret i32 0
}
int empty_init(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @empty_init() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ fillellipse(int, int, int, int);
int popNumber();
int /*<<< orphan*/ pushNumber(int /*<<< orphan*/);
void basFillEllipse() {
  int x, y, rx, ry;
  ry = popNumber();
  rx = popNumber();
  y = popNumber();
  x = popNumber();
  pushNumber(fillellipse(x, y, rx, ry));
}


x86 assembly (clang, -O0):
<basFillEllipse>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1050 <popNumber@plt>
mov    %eax,-0x10(%rbp)
mov    $0x0,%al
call   1050 <popNumber@plt>
mov    %eax,-0xc(%rbp)
mov    $0x0,%al
call   1050 <popNumber@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1050 <popNumber@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
call   1030 <fillellipse@plt>
mov    %eax,%edi
call   1040 <pushNumber@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<basFillEllipse>:
push   %rbp
push   %r14
push   %rbx
xor    %eax,%eax
call   1050 <popNumber@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   1050 <popNumber@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1050 <popNumber@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1050 <popNumber@plt>
mov    %eax,%edi
mov    %ebx,%esi
mov    %ebp,%edx
mov    %r14d,%ecx
call   1030 <fillellipse@plt>
mov    %eax,%edi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1040 <pushNumber@plt>

LLVM IR (-O0):
define void @basFillEllipse() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = call i32 (...) @popNumber()
store i32 %5, i32* %4
%6 = call i32 (...) @popNumber()
store i32 %6, i32* %3
%7 = call i32 (...) @popNumber()
store i32 %7, i32* %2
%8 = call i32 (...) @popNumber()
store i32 %8, i32* %1
%9 = load i32, i32* %1
%10 = load i32, i32* %2
%11 = load i32, i32* %3
%12 = load i32, i32* %4
%13 = call i32 @fillellipse(i32 %9, i32 %10, i32 %11, i32 %12)
%14 = call i32 @pushNumber(i32 %13)
ret void
}

LLVM IR (-O2):
define void @basFillEllipse() {
%1 = tail call i32 (...) @popNumber()
%2 = tail call i32 (...) @popNumber()
%3 = tail call i32 (...) @popNumber()
%4 = tail call i32 (...) @popNumber()
%5 = tail call i32 @fillellipse(i32 %4, i32 %3, i32 %2, i32 %1)
%6 = tail call i32 @pushNumber(i32 %5)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ diminuto_dump_general(int /*<<< orphan*/ *, void const *,
                                         size_t, int /*<<< orphan*/, char,
                                         int /*<<< orphan*/, int /*<<< orphan*/,
                                         int /*<<< orphan*/);
void diminuto_dump(FILE *fp, const void *data, size_t length) {
  diminuto_dump_general(fp, data, length, 0, '.', 0, 0, 0);
}


x86 assembly (clang, -O0):
<diminuto_dump>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
xor    %r9d,%r9d
mov    $0x2e,%r8d
mov    %r9d,%ecx
movl   $0x0,(%rsp)
movl   $0x0,0x8(%rsp)
call   1030 <diminuto_dump_general@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<diminuto_dump>:
push   %rax
xor    %ecx,%ecx
mov    $0x2e,%r8d
xor    %r9d,%r9d
push   $0x0
push   $0x0
call   1030 <diminuto_dump_general@plt>
add    $0x10,%rsp
pop    %rax
ret

LLVM IR (-O0):
define void @diminuto_dump(i32* %0, i8* %1, i64 %2) {
%4 = alloca i32*
%5 = alloca i8*
%6 = alloca i64
store i32* %0, i32** %4
store i8* %1, i8** %5
store i64 %2, i64* %6
%7 = load i32*, i32** %4
%8 = load i8*, i8** %5
%9 = load i64, i64* %6
%10 = call i32 @diminuto_dump_general(i32* %7, i8* %8, i64 %9, i32 0, i8 signext 46, i32 0, i32 0, i32 0)
ret void
}

LLVM IR (-O2):
define void @diminuto_dump(i32* %0, i8* %1, i64 %2) {
%4 = tail call i32 @diminuto_dump_general(i32* %0, i8* %1, i64 %2, i32 0, i8 signext 46, i32 0, i32 0, i32 0)
ret void
}
/* Type definitions */
struct __test_metadata {
  int dummy;
};
struct __fixture_variant_metadata {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ epoll52(struct __test_metadata *);
void wrapper_epoll52(struct __test_metadata *_metadata,
                     struct __fixture_variant_metadata *variant) {
  epoll52(_metadata);
}


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

x86 assembly (clang, -O2):
<wrapper_epoll52>:
jmp    1030 <epoll52@plt>

LLVM IR (-O0):
%struct.__test_metadata = type { i32 }
%struct.__fixture_variant_metadata = type { i32 }
define void @wrapper_epoll52(%struct.__test_metadata* %0, %struct.__fixture_variant_metadata* %1) {
%3 = alloca %struct.__test_metadata*
%4 = alloca %struct.__fixture_variant_metadata*
store %struct.__test_metadata* %0, %struct.__test_metadata** %3
store %struct.__fixture_variant_metadata* %1, %struct.__fixture_variant_metadata** %4
%5 = load %struct.__test_metadata*, %struct.__test_metadata** %3
%6 = call i32 @epoll52(%struct.__test_metadata* %5)
ret void
}

LLVM IR (-O2):
%struct.__test_metadata = type { i32 }
%struct.__fixture_variant_metadata = type { i32 }
define void @wrapper_epoll52(%struct.__test_metadata* %0, %struct.__fixture_variant_metadata* nocapture readnone %1) {
%3 = tail call i32 @epoll52(%struct.__test_metadata* %0)
ret void
}
/* Type definitions */
typedef scalar_t__ ptrdiff_t;

/* Variables and functions */
unsigned char *dasma_(unsigned char *cp, ptrdiff_t x) {
  if (sizeof(ptrdiff_t) == 8)
    do {
      *((unsigned long long *)cp) = (unsigned long long)((unsigned long long)x);
      cp += 8;
    } while (0);
  else
    do {
      *((unsigned int *)cp) = (unsigned int)((unsigned int)x);
      cp += 4;
    } while (0);
  return cp;
}


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

x86 assembly (clang, -O2):
<dasma_>:
mov    %rsi,(%rdi)
lea    0x8(%rdi),%rax
ret

LLVM IR (-O0):
define i8* @dasma_(i8* %0, i64 %1) {
%3 = alloca i8*
%4 = alloca i64
store i8* %0, i8** %3
store i64 %1, i64* %4
br label %5
5: ; preds = %2
%6 = load i64, i64* %4
%7 = load i8*, i8** %3
%8 = bitcast i8* %7 to i64*
store i64 %6, i64* %8
%9 = load i8*, i8** %3
%10 = getelementptr inbounds i8, i8* %9, i64 8
store i8* %10, i8** %3
br label %11
11: ; preds = %5
%12 = load i8*, i8** %3
ret i8* %12
}

LLVM IR (-O2):
define i8* @dasma_(i8* writeonly %0, i64 %1) {
%3 = bitcast i8* %0 to i64*
store i64 %1, i64* %3
%4 = getelementptr inbounds i8, i8* %0, i64 8
ret i8* %4
}
/* Variables and functions */
int /*<<< orphan*/ putchar(int /*<<< orphan*/);
void puts(const char *str) {
  while (*str)
    putchar(*str++);
}


x86 assembly (clang, -O0):
<puts>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
cmpb   $0x0,(%rax)
je     1145 <puts+0x35>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movsbl (%rax),%edi
call   1030 <putchar@plt>
jmp    111c <puts+0xc>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<puts>:
push   %rbx
mov    (%rdi),%al
test   %al,%al
je     1133 <puts+0x23>
mov    %rdi,%rbx
add    $0x1,%rbx
xchg   %ax,%ax
movsbl %al,%edi
call   1030 <putchar@plt>
movzbl (%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    1120 <puts+0x10>
pop    %rbx
ret

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

LLVM IR (-O2):
define void @puts(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %12, label %4
4: ; preds = %1, %4
%5 = phi i8 [ %10, %4 ], [ %2, %1 ]
%6 = phi i8* [ %7, %4 ], [ %0, %1 ]
%7 = getelementptr inbounds i8, i8* %6, i64 1
%8 = sext i8 %5 to i32
%9 = tail call i32 @putchar(i32 %8)
%10 = load i8, i8* %7
%11 = icmp eq i8 %10, 0
br i1 %11, label %12, label %4
12: ; preds = %4, %1
ret void
}
double d5(a1, a2, a3)
double a1, a2, a3;
{ return fabs(a1 - a2) + fabs(a1 - a3); }


x86 assembly (clang, -O0):
<d5>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm0
subsd  -0x10(%rbp),%xmm0
movaps 0xedc(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  -0x8(%rbp),%xmm1
subsd  -0x18(%rbp),%xmm1
movaps 0xec7(%rip),%xmm2
pand   %xmm2,%xmm1
addsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<d5>:
unpcklpd %xmm0,%xmm0
unpcklpd %xmm2,%xmm1
subpd  %xmm1,%xmm0
andpd  0xeec(%rip),%xmm0
pshufd $0xee,%xmm0,%xmm1
addsd  %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @d5(double %0, double %1, double %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca double
store double %0, double* %4
store double %1, double* %5
store double %2, double* %6
%7 = load double, double* %4
%8 = load double, double* %5
%9 = fsub double %7, %8
%10 = call double @llvm.fabs.f64(double %9)
%11 = load double, double* %4
%12 = load double, double* %6
%13 = fsub double %11, %12
%14 = call double @llvm.fabs.f64(double %13)
%15 = fadd double %10, %14
ret double %15
}

LLVM IR (-O2):
define double @d5(double %0, double %1, double %2) {
%4 = insertelement <2 x double> poison, double %0, i64 0
%5 = shufflevector <2 x double> %4, <2 x double> poison, <2 x i32> zeroinitializer
%6 = insertelement <2 x double> poison, double %1, i64 0
%7 = insertelement <2 x double> %6, double %2, i64 1
%8 = fsub <2 x double> %5, %7
%9 = call <2 x double> @llvm.fabs.v2f64(<2 x double> %8)
%10 = shufflevector <2 x double> %9, <2 x double> poison, <2 x i32> <i32 1, i32 undef>
%11 = fadd <2 x double> %9, %10
%12 = extractelement <2 x double> %11, i64 0
ret double %12
}
void NOR_SPI_RestoreConfig(void) {}


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

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

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

LLVM IR (-O2):
define void @NOR_SPI_RestoreConfig() {
ret void
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
int bit_get(const uint32_t *bitmap, int bit) {
  return (bitmap[bit / 32] >> (bit & 31)) & 1;
}


x86 assembly (clang, -O0):
<bit_get>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x20,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
mov    -0xc(%rbp),%ecx
and    $0x1f,%ecx
sar    %cl,%eax
and    $0x1,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<bit_get>:
mov    %esi,%ecx
lea    0x1f(%rcx),%eax
test   %esi,%esi
cmovns %esi,%eax
sar    $0x5,%eax
cltq
mov    (%rdi,%rax,4),%eax
shr    %cl,%eax
and    $0x1,%eax
ret

LLVM IR (-O0):
define i32 @bit_get(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 = sdiv i32 %6, 32
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds i32, i32* %5, i64 %8
%10 = load i32, i32* %9
%11 = load i32, i32* %4
%12 = and i32 %11, 31
%13 = ashr i32 %10, %12
%14 = and i32 %13, 1
ret i32 %14
}

LLVM IR (-O2):
define i32 @bit_get(i32* nocapture %0, i32 %1) {
%3 = sdiv i32 %1, 32
%4 = sext i32 %3 to i64
%5 = getelementptr inbounds i32, i32* %0, i64 %4
%6 = load i32, i32* %5
%7 = and i32 %1, 31
%8 = lshr i32 %6, %7
%9 = and i32 %8, 1
ret i32 %9
}
/* Variables and functions */
int /*<<< orphan*/ sleep(int);
int main(void) {
  sleep(3);
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @sleep(i32 3)
ret i32 0
}
/* Type definitions */
struct buffer {
  int dummy;
};

/* Variables and functions */
int add_int_data(struct buffer *, int, unsigned int);
int add_rxspeed_avp(struct buffer *buf, unsigned int speed) {
  return add_int_data(buf, 38, speed);
}


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

x86 assembly (clang, -O2):
<add_rxspeed_avp>:
mov    %esi,%edx
mov    $0x26,%esi
jmp    1030 <add_int_data@plt>

LLVM IR (-O0):
%struct.buffer = type { i32 }
define i32 @add_rxspeed_avp(%struct.buffer* %0, i32 %1) {
%3 = alloca %struct.buffer*
%4 = alloca i32
store %struct.buffer* %0, %struct.buffer** %3
store i32 %1, i32* %4
%5 = load %struct.buffer*, %struct.buffer** %3
%6 = load i32, i32* %4
%7 = call i32 @add_int_data(%struct.buffer* %5, i32 38, i32 %6)
ret i32 %7
}

LLVM IR (-O2):
%struct.buffer = type { i32 }
define i32 @add_rxspeed_avp(%struct.buffer* %0, i32 %1) {
%3 = tail call i32 @add_int_data(%struct.buffer* %0, i32 38, i32 %1)
ret i32 %3
}
/* Variables and functions */
int getRAM(int);
int /*<<< orphan*/ int_video();
void interrupt() {
  switch (getRAM(0xFFFF)) {
  default:
    break;
  case 0x01:
    int_video();
    break;
  }
}


x86 assembly (clang, -O0):
<interrupt>:
push   %rbp
mov    %rsp,%rbp
mov    $0xffff,%edi
call   1030 <getRAM@plt>
sub    $0x1,%eax
je     1141 <interrupt+0x21>
jmp    113c <interrupt+0x1c>
jmp    1148 <interrupt+0x28>
mov    $0x0,%al
call   1040 <int_video@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<interrupt>:
push   %rax
mov    $0xffff,%edi
call   1030 <getRAM@plt>
cmp    $0x1,%eax
jne    1138 <interrupt+0x18>
xor    %eax,%eax
pop    %rcx
jmp    1040 <int_video@plt>
pop    %rax
ret

LLVM IR (-O0):
define void @interrupt() {
%1 = call i32 @getRAM(i32 65535)
switch i32 %1, label %2 [
i32 1, label %3
]
2: ; preds = %0
br label %5
3: ; preds = %0
%4 = call i32 (...) @int_video()
br label %5
5: ; preds = %3, %2
ret void
}

LLVM IR (-O2):
define void @interrupt() {
%1 = tail call i32 @getRAM(i32 65535)
%2 = icmp eq i32 %1, 1
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = tail call i32 (...) @int_video()
br label %5
5: ; preds = %0, %3
ret void
}
/* Variables and functions */
int /*<<< orphan*/ assert(int);
int /*<<< orphan*/ printf(char *);
int main(int argc, char *argv[]) {
  int a = 12;
  int b = 24;
  assert(a > b);
  printf("a is larger than b!");
  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)
movl   $0xc,-0x14(%rbp)
movl   $0x18,-0x18(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
setg   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
lea    0xea2(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
call   1040 <assert@plt>
lea    0xed1(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [20 x i8] c"a is larger than b!\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 12, i32* %6
store i32 24, i32* %7
%8 = load i32, i32* %6
%9 = load i32, i32* %7
%10 = icmp sgt i32 %8, %9
%11 = zext i1 %10 to i32
%12 = call i32 @assert(i32 %11)
%13 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [20 x i8] c"a is larger than b!\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @assert(i32 0)
%4 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ ptrdiff_t;

/* Variables and functions */
scalar_t__ syscall(int, int /*<<< orphan*/);
void *sbrk(ptrdiff_t inc) { return (void *)syscall(45, syscall(45, 0) + inc); }


x86 assembly (clang, -O0):
<sbrk>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    $0x2d,%edi
xor    %esi,%esi
call   1030 <syscall@plt>
movslq -0x4(%rbp),%rcx
add    %rcx,%rax
mov    %eax,%esi
mov    $0x2d,%edi
call   1030 <syscall@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sbrk>:
push   %rbx
mov    %edi,%ebx
mov    $0x2d,%edi
xor    %esi,%esi
call   1030 <syscall@plt>
add    %eax,%ebx
mov    $0x2d,%edi
mov    %ebx,%esi
pop    %rbx
jmp    1030 <syscall@plt>

LLVM IR (-O0):
define i8* @sbrk(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i64 @syscall(i32 45, i32 0)
%4 = load i32, i32* %2
%5 = sext i32 %4 to i64
%6 = add nsw i64 %3, %5
%7 = trunc i64 %6 to i32
%8 = call i64 @syscall(i32 45, i32 %7)
%9 = inttoptr i64 %8 to i8*
ret i8* %9
}

LLVM IR (-O2):
define i8* @sbrk(i32 %0) {
%2 = tail call i64 @syscall(i32 45, i32 0)
%3 = trunc i64 %2 to i32
%4 = add i32 %3, %0
%5 = tail call i64 @syscall(i32 45, i32 %4)
%6 = inttoptr i64 %5 to i8*
ret i8* %6
}
void CFilterFactoryDestroy(void *arg) {}


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

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

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

LLVM IR (-O2):
define void @CFilterFactoryDestroy(i8* nocapture %0) {
ret void
}