xunge/DecIR huggingface dataset:
/* Variables and functions */
double gregorian_to_jd(int, int, int, int, int, double);
double gregorian_to_mjd(int year, int month, int day, int hour, int min,
                        double sec) {
  return gregorian_to_jd(year, month, day, hour, min, sec) - 2400000.5;
}


x86 assembly (clang, -O0):
<gregorian_to_mjd>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
movsd  %xmm0,-0x20(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    -0x14(%rbp),%r8d
movsd  -0x20(%rbp),%xmm0
call   1030 <gregorian_to_jd@plt>
movsd  0xeb1(%rip),%xmm1
subsd  %xmm1,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gregorian_to_mjd>:
push   %rax
call   1030 <gregorian_to_jd@plt>
addsd  0xee2(%rip),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @gregorian_to_mjd(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, double %5) {
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca double
store i32 %0, i32* %7
store i32 %1, i32* %8
store i32 %2, i32* %9
store i32 %3, i32* %10
store i32 %4, i32* %11
store double %5, double* %12
%13 = load i32, i32* %7
%14 = load i32, i32* %8
%15 = load i32, i32* %9
%16 = load i32, i32* %10
%17 = load i32, i32* %11
%18 = load double, double* %12
%19 = call double @gregorian_to_jd(i32 %13, i32 %14, i32 %15, i32 %16, i32 %17, double %18)
%20 = fsub double %19, 0x41424F8040000000
ret double %20
}

LLVM IR (-O2):
define double @gregorian_to_mjd(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, double %5) {
%7 = tail call double @gregorian_to_jd(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, double %5)
%8 = fadd double %7, 0xC1424F8040000000
ret double %8
}
/* Variables and functions */
int /*<<< orphan*/ plcvm_get_u32(int /*<<< orphan*/);
int /*<<< orphan*/ plcvm_pop();
int /*<<< orphan*/ plcvm_push(int /*<<< orphan*/);
void cb_ldm_s4_s(void) { plcvm_push(plcvm_get_u32(plcvm_pop())); }


x86 assembly (clang, -O0):
<cb_ldm_s4_s>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <plcvm_pop@plt>
mov    %eax,%edi
call   1040 <plcvm_get_u32@plt>
mov    %eax,%edi
call   1050 <plcvm_push@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<cb_ldm_s4_s>:
push   %rax
xor    %eax,%eax
call   1030 <plcvm_pop@plt>
mov    %eax,%edi
call   1040 <plcvm_get_u32@plt>
mov    %eax,%edi
pop    %rax
jmp    1050 <plcvm_push@plt>

LLVM IR (-O0):
define void @cb_ldm_s4_s() {
%1 = call i32 (...) @plcvm_pop()
%2 = call i32 @plcvm_get_u32(i32 %1)
%3 = call i32 @plcvm_push(i32 %2)
ret void
}

LLVM IR (-O2):
define void @cb_ldm_s4_s() {
%1 = tail call i32 (...) @plcvm_pop()
%2 = tail call i32 @plcvm_get_u32(i32 %1)
%3 = tail call i32 @plcvm_push(i32 %2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ TestShuffle();
int /*<<< orphan*/ srand(unsigned int);
scalar_t__ time(int /*<<< orphan*/ *);
int main(int argc, char **argv) {
  srand((unsigned int)time(NULL));
  if (!TestShuffle())
    return 1;
  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)
xor    %eax,%eax
mov    %eax,%edi
call   1040 <time@plt>
mov    %eax,%edi
call   1030 <srand@plt>
mov    $0x0,%al
call   1050 <TestShuffle@plt>
cmp    $0x0,%eax
jne    1172 <main+0x42>
movl   $0x1,-0x4(%rbp)
jmp    1179 <main+0x49>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
call   1040 <time@plt>
mov    %eax,%edi
call   1030 <srand@plt>
xor    %eax,%eax
call   1050 <TestShuffle@plt>
xor    %ecx,%ecx
test   %eax,%eax
sete   %cl
mov    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
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 i64 @time(i32* null)
%7 = trunc i64 %6 to i32
%8 = call i32 @srand(i32 %7)
%9 = call i32 (...) @TestShuffle()
%10 = icmp ne i32 %9, 0
br i1 %10, label %12, label %11
11: ; preds = %2
store i32 1, i32* %3
br label %13
12: ; preds = %2
store i32 0, i32* %3
br label %13
13: ; preds = %12, %11
%14 = load i32, i32* %3
ret i32 %14
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i64 @time(i32* null)
%4 = trunc i64 %3 to i32
%5 = tail call i32 @srand(i32 %4)
%6 = tail call i32 (...) @TestShuffle()
%7 = icmp eq i32 %6, 0
%8 = zext i1 %7 to i32
ret i32 %8
}
int isOperand(char C) {
  if (C >= '0' && C <= '9')
    return 1;
  if (C >= 'a' && C <= 'z')
    return 1;
  if (C >= 'A' && C <= 'Z')
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<isOperand>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
cmp    $0x30,%eax
jl     1130 <isOperand+0x30>
movsbl -0x5(%rbp),%eax
cmp    $0x39,%eax
jg     1130 <isOperand+0x30>
movl   $0x1,-0x4(%rbp)
jmp    1183 <isOperand+0x83>
movsbl -0x5(%rbp),%eax
cmp    $0x61,%eax
jl     1156 <isOperand+0x56>
movsbl -0x5(%rbp),%eax
cmp    $0x7a,%eax
jg     1156 <isOperand+0x56>
movl   $0x1,-0x4(%rbp)
jmp    1183 <isOperand+0x83>
movsbl -0x5(%rbp),%eax
cmp    $0x41,%eax
jl     117c <isOperand+0x7c>
movsbl -0x5(%rbp),%eax
cmp    $0x5a,%eax
jg     117c <isOperand+0x7c>
movl   $0x1,-0x4(%rbp)
jmp    1183 <isOperand+0x83>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<isOperand>:
lea    -0x30(%rdi),%eax
cmp    $0xa,%al
setb   %al
and    $0xdf,%dil
add    $0xbf,%dil
cmp    $0x1a,%dil
setb   %cl
or     %al,%cl
movzbl %cl,%eax
ret

LLVM IR (-O0):
define i32 @isOperand(i8 signext %0) {
%2 = alloca i32
%3 = alloca i8
store i8 %0, i8* %3
%4 = load i8, i8* %3
%5 = sext i8 %4 to i32
%6 = icmp sge i32 %5, 48
br i1 %6, label %7, label %12
7: ; preds = %1
%8 = load i8, i8* %3
%9 = sext i8 %8 to i32
%10 = icmp sle i32 %9, 57
br i1 %10, label %11, label %12
11: ; preds = %7
store i32 1, i32* %2
br label %31
12: ; preds = %7, %1
%13 = load i8, i8* %3
%14 = sext i8 %13 to i32
%15 = icmp sge i32 %14, 97
br i1 %15, label %16, label %21
16: ; preds = %12
%17 = load i8, i8* %3
%18 = sext i8 %17 to i32
%19 = icmp sle i32 %18, 122
br i1 %19, label %20, label %21
20: ; preds = %16
store i32 1, i32* %2
br label %31
21: ; preds = %16, %12
%22 = load i8, i8* %3
%23 = sext i8 %22 to i32
%24 = icmp sge i32 %23, 65
br i1 %24, label %25, label %30
25: ; preds = %21
%26 = load i8, i8* %3
%27 = sext i8 %26 to i32
%28 = icmp sle i32 %27, 90
br i1 %28, label %29, label %30
29: ; preds = %25
store i32 1, i32* %2
br label %31
30: ; preds = %25, %21
store i32 0, i32* %2
br label %31
31: ; preds = %30, %29, %20, %11
%32 = load i32, i32* %2
ret i32 %32
}

LLVM IR (-O2):
define i32 @isOperand(i8 signext %0) {
%2 = add i8 %0, -48
%3 = icmp ult i8 %2, 10
%4 = and i8 %0, -33
%5 = add i8 %4, -65
%6 = icmp ult i8 %5, 26
%7 = or i1 %3, %6
%8 = zext i1 %7 to i32
ret i32 %8
}
/* Type definitions */
typedef int /*<<< orphan*/ HMAC_CTX;

/* Variables and functions */
int /*<<< orphan*/ HMAC_CTX_cleanup(int /*<<< orphan*/ *);
int /*<<< orphan*/ free(int /*<<< orphan*/ *);
void HMAC_CTX_free(HMAC_CTX *ctx) {
  if (ctx == NULL)
    return;
  HMAC_CTX_cleanup(ctx);
  free(ctx);
}


x86 assembly (clang, -O0):
<HMAC_CTX_free>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    113c <HMAC_CTX_free+0x1c>
jmp    114e <HMAC_CTX_free+0x2e>
mov    -0x8(%rbp),%rdi
call   1040 <HMAC_CTX_cleanup@plt>
mov    -0x8(%rbp),%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define void @HMAC_CTX_free(i32* %0) {
%2 = icmp eq i32* %0, null
br i1 %2, label %6, label %3
3: ; preds = %1
%4 = tail call i32 @HMAC_CTX_cleanup(i32* %0)
%5 = tail call i32 @free(i32* %0)
br label %6
6: ; preds = %1, %3
ret void
}
/* Variables and functions */
int /*<<< orphan*/ return_struct_1();
int /*<<< orphan*/ take_struct_1(int /*<<< orphan*/);
void test_struct_1() { take_struct_1(return_struct_1()); }


x86 assembly (clang, -O0):
<test_struct_1>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <return_struct_1@plt>
mov    %eax,%edi
call   1040 <take_struct_1@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_struct_1>:
push   %rax
xor    %eax,%eax
call   1030 <return_struct_1@plt>
mov    %eax,%edi
pop    %rax
jmp    1040 <take_struct_1@plt>

LLVM IR (-O0):
define void @test_struct_1() {
%1 = call i32 (...) @return_struct_1()
%2 = call i32 @take_struct_1(i32 %1)
ret void
}

LLVM IR (-O2):
define void @test_struct_1() {
%1 = tail call i32 (...) @return_struct_1()
%2 = tail call i32 @take_struct_1(i32 %1)
ret void
}
int is_a_nulls(const struct hlist_nulls_node *ptr) {
  return ((unsigned long)ptr & 1);
}


x86 assembly (clang, -O0):
<is_a_nulls>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
and    $0x1,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_a_nulls>:
mov    %rdi,%rax
and    $0x1,%eax
ret

LLVM IR (-O0):
%struct.hlist_nulls_node = type opaque
define i32 @is_a_nulls(%struct.hlist_nulls_node* %0) {
%2 = alloca %struct.hlist_nulls_node*
store %struct.hlist_nulls_node* %0, %struct.hlist_nulls_node** %2
%3 = load %struct.hlist_nulls_node*, %struct.hlist_nulls_node** %2
%4 = ptrtoint %struct.hlist_nulls_node* %3 to i64
%5 = and i64 %4, 1
%6 = trunc i64 %5 to i32
ret i32 %6
}

LLVM IR (-O2):
%struct.hlist_nulls_node = type opaque
define i32 @is_a_nulls(%struct.hlist_nulls_node* %0) {
%2 = ptrtoint %struct.hlist_nulls_node* %0 to i64
%3 = trunc i64 %2 to i32
%4 = and i32 %3, 1
ret i32 %4
}
/* Variables and functions */
int yaffs_setxattr_reldir(int /*<<< orphan*/, char const *, char const *,
                          void const *, int, int);
int yaffs_setxattr(const char *path, const char *name, const void *data,
                   int size, int flags) {
  return yaffs_setxattr_reldir((0), path, name, data, size, flags);
}


x86 assembly (clang, -O0):
<yaffs_setxattr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8d,-0x20(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
mov    -0x1c(%rbp),%r8d
mov    -0x20(%rbp),%r9d
xor    %edi,%edi
call   1030 <yaffs_setxattr_reldir@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<yaffs_setxattr>:
mov    %r8d,%r9d
mov    %ecx,%r8d
mov    %rdx,%rcx
mov    %rsi,%rdx
mov    %rdi,%rsi
xor    %edi,%edi
jmp    1030 <yaffs_setxattr_reldir@plt>

LLVM IR (-O0):
define i32 @yaffs_setxattr(i8* %0, i8* %1, i8* %2, i32 %3, i32 %4) {
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32
store i8* %0, i8** %6
store i8* %1, i8** %7
store i8* %2, i8** %8
store i32 %3, i32* %9
store i32 %4, i32* %10
%11 = load i8*, i8** %6
%12 = load i8*, i8** %7
%13 = load i8*, i8** %8
%14 = load i32, i32* %9
%15 = load i32, i32* %10
%16 = call i32 @yaffs_setxattr_reldir(i32 0, i8* %11, i8* %12, i8* %13, i32 %14, i32 %15)
ret i32 %16
}

LLVM IR (-O2):
define i32 @yaffs_setxattr(i8* %0, i8* %1, i8* %2, i32 %3, i32 %4) {
%6 = tail call i32 @yaffs_setxattr_reldir(i32 0, i8* %0, i8* %1, i8* %2, i32 %3, i32 %4)
ret i32 %6
}
void u_disable_interrupts(struct Jelly *jelly) {}


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

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

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

LLVM IR (-O2):
%struct.Jelly = type opaque
define void @u_disable_interrupts(%struct.Jelly* nocapture %0) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ stderr;
int die(char *msg) {
  fprintf(stderr, "Error: %s\n", msg);
  exit(1);
  return 1;
}


x86 assembly (clang, -O0):
<die>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ead(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xec0(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<die>:
push   %rax
mov    %rdi,%rdx
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [11 x i8] c"Error: %s\0A\00"
define i32 @die(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [11 x i8] c"Error: %s\0A\00"
define i32 @die(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* %0)
%4 = tail call i32 @exit(i32 1)
unreachable
}
int g_DUMMY_scrollbar_retrieve(int win_id, int cc_id) {
  win_id = win_id;
  cc_id = cc_id;
  return -1;
}


x86 assembly (clang, -O0):
<g_DUMMY_scrollbar_retrieve>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    $0xffffffff,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @g_DUMMY_scrollbar_retrieve(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
store i32 %5, i32* %3
%6 = load i32, i32* %4
store i32 %6, i32* %4
ret i32 -1
}

LLVM IR (-O2):
define i32 @g_DUMMY_scrollbar_retrieve(i32 %0, i32 %1) {
ret i32 -1
}
void isr_ignore() {}


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

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

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

LLVM IR (-O2):
define void @isr_ignore() {
ret void
}
imm0regx1(r0, r1, x0, x1, p0, p1) double r0, r1;
double *p0, *p1;
{
  if (22 <= (p1[x1]))
    return 1;
  else
    return 0;
}


x86 assembly (clang, -O0):
<imm0regx1>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
mov    %edi,-0x1c(%rbp)
mov    %esi,-0x20(%rbp)
mov    %rdx,-0x28(%rbp)
mov    %rcx,-0x30(%rbp)
mov    -0x30(%rbp),%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  0xecf(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     1147 <imm0regx1+0x47>
movl   $0x1,-0x4(%rbp)
jmp    114e <imm0regx1+0x4e>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<imm0regx1>:
movslq %esi,%rax
movsd  (%rcx,%rax,8),%xmm0
xor    %eax,%eax
ucomisd 0xeee(%rip),%xmm0
setae  %al
ret

LLVM IR (-O0):
define i32 @imm0regx1(double %0, double %1, i32 %2, i32 %3, double* %4, double* %5) {
%7 = alloca i32
%8 = alloca double
%9 = alloca double
%10 = alloca i32
%11 = alloca i32
%12 = alloca double*
%13 = alloca double*
store double %0, double* %8
store double %1, double* %9
store i32 %2, i32* %10
store i32 %3, i32* %11
store double* %4, double** %12
store double* %5, double** %13
%14 = load double*, double** %13
%15 = load i32, i32* %11
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds double, double* %14, i64 %16
%18 = load double, double* %17
%19 = fcmp ole double 2.200000e+01, %18
br i1 %19, label %20, label %21
20: ; preds = %6
store i32 1, i32* %7
br label %22
21: ; preds = %6
store i32 0, i32* %7
br label %22
22: ; preds = %21, %20
%23 = load i32, i32* %7
ret i32 %23
}

LLVM IR (-O2):
define i32 @imm0regx1(double %0, double %1, i32 %2, i32 %3, double* nocapture readnone %4, double* nocapture %5) {
%7 = sext i32 %3 to i64
%8 = getelementptr inbounds double, double* %5, i64 %7
%9 = load double, double* %8
%10 = fcmp oge double %9, 2.200000e+01
%11 = zext i1 %10 to i32
ret i32 %11
}
int test_imm_B3uint32_mem(unsigned int *val) {
  return ((*val) & (0xB3 << 0)) ? -20 : -40;
}


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

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

LLVM IR (-O0):
define i32 @test_imm_B3uint32_mem(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = load i32, i32* %3
%5 = and i32 %4, 179
%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_B3uint32_mem(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = and i32 %2, 179
%4 = icmp eq i32 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
void g_get_language_names() {}


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

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

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

LLVM IR (-O2):
define void @g_get_language_names() {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ sigset_t;

/* Variables and functions */
int __SIGSUSPEND(int /*<<< orphan*/);
int /*<<< orphan*/ sigemptyset(int /*<<< orphan*/ *);
int sigsuspend(const sigset_t *sigmask_p) {
  sigset_t mask;
  if (sigmask_p) {
    mask = *sigmask_p;
  } else {
    sigemptyset(&mask);
  }
  return __SIGSUSPEND(mask);
}


x86 assembly (clang, -O0):
<sigsuspend>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1145 <sigsuspend+0x25>
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0xc(%rbp)
jmp    114e <sigsuspend+0x2e>
lea    -0xc(%rbp),%rdi
call   1040 <sigemptyset@plt>
mov    -0xc(%rbp),%edi
call   1030 <__SIGSUSPEND@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sigsuspend>:
push   %rax
test   %rdi,%rdi
je     112e <sigsuspend+0xe>
mov    (%rdi),%edi
mov    %edi,0x4(%rsp)
jmp    113c <sigsuspend+0x1c>
lea    0x4(%rsp),%rdi
call   1040 <sigemptyset@plt>
mov    0x4(%rsp),%edi
call   1030 <__SIGSUSPEND@plt>
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @sigsuspend(i32* %0) {
%2 = alloca i32
%3 = bitcast i32* %2 to i8*
%4 = icmp eq i32* %0, null
br i1 %4, label %7, label %5
5: ; preds = %1
%6 = load i32, i32* %0
store i32 %6, i32* %2
br label %10
7: ; preds = %1
%8 = call i32 @sigemptyset(i32* %2)
%9 = load i32, i32* %2
br label %10
10: ; preds = %7, %5
%11 = phi i32 [ %9, %7 ], [ %6, %5 ]
%12 = call i32 @__SIGSUSPEND(i32 %11)
ret i32 %12
}
/* Variables and functions */
int up_custom_madd(int, int, int, int, int, int);
int main() {
  int a, b, c, d, e, f, z;
  a = 10;
  b = 11;
  c = 12;
  d = 13;
  e = 14;
  f = 15;
  z = up_custom_madd(a, b, c, d, e, f);
  *(volatile int *)0x80000000 = z;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xa,-0x8(%rbp)
movl   $0xb,-0xc(%rbp)
movl   $0xc,-0x10(%rbp)
movl   $0xd,-0x14(%rbp)
movl   $0xe,-0x18(%rbp)
movl   $0xf,-0x1c(%rbp)
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
mov    -0x18(%rbp),%r8d
mov    -0x1c(%rbp),%r9d
call   1030 <up_custom_madd@plt>
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%ecx
mov    $0x80000000,%eax
mov    %ecx,(%rax)
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0xa,%edi
mov    $0xb,%esi
mov    $0xc,%edx
mov    $0xd,%ecx
mov    $0xe,%r8d
mov    $0xf,%r9d
call   1030 <up_custom_madd@plt>
mov    $0x80000000,%ecx
mov    %eax,(%rcx)
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %1
store i32 10, i32* %2
store i32 11, i32* %3
store i32 12, i32* %4
store i32 13, i32* %5
store i32 14, i32* %6
store i32 15, i32* %7
%9 = load i32, i32* %2
%10 = load i32, i32* %3
%11 = load i32, i32* %4
%12 = load i32, i32* %5
%13 = load i32, i32* %6
%14 = load i32, i32* %7
%15 = call i32 @up_custom_madd(i32 %9, i32 %10, i32 %11, i32 %12, i32 %13, i32 %14)
store i32 %15, i32* %8
%16 = load i32, i32* %8
store volatile i32 %16, i32* inttoptr (i64 2147483648 to i32*)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @up_custom_madd(i32 10, i32 11, i32 12, i32 13, i32 14, i32 15)
store volatile i32 %1, i32* inttoptr (i64 2147483648 to i32*)
ret i32 0
}
float gammaf(float __d) {
  signed int __local_signgam = 0;
  float return_value_lgammaf_r$1;
  return_value_lgammaf_r$1 = lgammaf_r(__d, &__local_signgam);
  return return_value_lgammaf_r$1;
}


x86 assembly (clang, -O0):
<gammaf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    -0x8(%rbp),%rdi
mov    $0x1,%al
call   1030 <lgammaf_r@plt>
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gammaf>:
push   %rax
movl   $0x0,0x4(%rsp)
cvtss2sd %xmm0,%xmm0
lea    0x4(%rsp),%rdi
mov    $0x1,%al
call   1030 <lgammaf_r@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
pop    %rax
ret

LLVM IR (-O0):
define float @gammaf(float %0) {
%2 = alloca float
%3 = alloca i32
%4 = alloca float
store float %0, float* %2
store i32 0, i32* %3
%5 = load float, float* %2
%6 = fpext float %5 to double
%7 = call i32 (double, i32*, ...) bitcast (i32 (...)* @lgammaf_r to i32 (double, i32*, ...)*)(double %6, i32* %3)
%8 = sitofp i32 %7 to float
store float %8, float* %4
%9 = load float, float* %4
ret float %9
}

LLVM IR (-O2):
define float @gammaf(float %0) {
%2 = alloca i32
%3 = bitcast i32* %2 to i8*
store i32 0, i32* %2
%4 = fpext float %0 to double
%5 = call i32 (double, i32*, ...) bitcast (i32 (...)* @lgammaf_r to i32 (double, i32*, ...)*)(double %4, i32* %2)
%6 = sitofp i32 %5 to float
ret float %6
}
/* Variables and functions */
int /*<<< orphan*/ problem37();
int main(int argc, char **argv) {
  problem37();
  return 1;
}


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)
mov    $0x0,%al
call   1030 <problem37@plt>
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
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 (...) @problem37()
ret i32 1
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @problem37()
ret i32 1
}
int LZ4_versionNumber(void) { return (1 * 100 * 100 + 7 * 100 + 4); }


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

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

LLVM IR (-O0):
define i32 @LZ4_versionNumber() {
ret i32 10704
}

LLVM IR (-O2):
define i32 @LZ4_versionNumber() {
ret i32 10704
}
/* Variables and functions */
scalar_t__ __VERIFIER_nondet_int();
void main_test() {
  int x = 0;
  int y = 0;
  int z = 0;
  int w = 0;
  while (__VERIFIER_nondet_int()) {
    if (0) {
      x = 4;
      y = 400;
    } else if (1) {
      if (x >= 4) {
        x = x + 1;
        y = y + 1;
      }
    } else if (y > 10 * w)
      if (z >= 100 * x) {
        y = -y;
      }
    w = w + 1;
    z = z + 10;
  }
}


x86 assembly (clang, -O0):
<main_test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
cmp    $0x0,%rax
je     1178 <main_test+0x68>
cmpl   $0x4,-0x4(%rbp)
jl     1161 <main_test+0x51>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
add    $0xa,%eax
mov    %eax,-0xc(%rbp)
jmp    1134 <main_test+0x24>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main_test>:
push   %rax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
test   %rax,%rax
jne    1120 <main_test+0x10>
pop    %rax
ret

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

LLVM IR (-O2):
define void @main_test() {
br label %1
1: ; preds = %1, %0
%2 = tail call i64 (...) @__VERIFIER_nondet_int()
%3 = icmp eq i64 %2, 0
br i1 %3, label %4, label %1
4: ; preds = %1
ret void
}
/* Variables and functions */
scalar_t__ islower(int);
scalar_t__ isupper(int);
int isalpha(int c) { return (isupper(c) || islower(c)); }


x86 assembly (clang, -O0):
<isalpha>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1040 <isupper@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x5(%rbp)
jne    1157 <isalpha+0x37>
mov    -0x4(%rbp),%edi
call   1030 <islower@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):
<isalpha>:
push   %rbx
mov    %edi,%ebx
call   1040 <isupper@plt>
mov    %rax,%rcx
mov    $0x1,%eax
test   %rcx,%rcx
je     1137 <isalpha+0x17>
pop    %rbx
ret
mov    %ebx,%edi
call   1030 <islower@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
setne  %al
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @isalpha(i32 %0) {
%2 = tail call i64 @isupper(i32 %0)
%3 = icmp eq i64 %2, 0
br i1 %3, label %4, label %8
4: ; preds = %1
%5 = tail call i64 @islower(i32 %0)
%6 = icmp ne i64 %5, 0
%7 = zext i1 %6 to i32
br label %8
8: ; preds = %4, %1
%9 = phi i32 [ 1, %1 ], [ %7, %4 ]
ret i32 %9
}
/* Type definitions */
typedef int uint8_t;

/* Variables and functions */
int /*<<< orphan*/ putchar(char);
void print(uint8_t v, int bits) {
  int pos;
  for (pos = 0; pos != bits; pos++)
    putchar(v & (1 << pos) ? '1' : '0');
}


x86 assembly (clang, -O0):
<print>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
je     1166 <print+0x56>
mov    -0x4(%rbp),%edx
mov    -0xc(%rbp),%ecx
mov    $0x1,%eax
shl    %cl,%eax
and    %eax,%edx
mov    $0x30,%eax
mov    $0x31,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
movsbl %al,%edi
call   1030 <putchar@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1125 <print+0x15>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print>:
push   %rbp
push   %r14
push   %rbx
test   %esi,%esi
je     1138 <print+0x28>
mov    %esi,%ebx
mov    %edi,%r14d
xor    %ebp,%ebp
nop
bt     %ebp,%r14d
mov    $0x31,%edi
adc    $0xffffffff,%edi
call   1030 <putchar@plt>
add    $0x1,%ebp
cmp    %ebp,%ebx
jne    1120 <print+0x10>
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define void @print(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
store i32 0, i32* %5
br label %6
6: ; preds = %20, %2
%7 = load i32, i32* %5
%8 = load i32, i32* %4
%9 = icmp ne i32 %7, %8
br i1 %9, label %10, label %23
10: ; preds = %6
%11 = load i32, i32* %3
%12 = load i32, i32* %5
%13 = shl i32 1, %12
%14 = and i32 %11, %13
%15 = icmp ne i32 %14, 0
%16 = zext i1 %15 to i64
%17 = select i1 %15, i32 49, i32 48
%18 = trunc i32 %17 to i8
%19 = call i32 @putchar(i8 signext %18)
br label %20
20: ; preds = %10
%21 = load i32, i32* %5
%22 = add nsw i32 %21, 1
store i32 %22, i32* %5
br label %6
23: ; preds = %6
ret void
}

LLVM IR (-O2):
define void @print(i32 %0, i32 %1) {
%3 = icmp eq i32 %1, 0
br i1 %3, label %13, label %4
4: ; preds = %2, %4
%5 = phi i32 [ %11, %4 ], [ 0, %2 ]
%6 = shl nuw i32 1, %5
%7 = and i32 %6, %0
%8 = icmp eq i32 %7, 0
%9 = select i1 %8, i8 48, i8 49
%10 = tail call i32 @putchar(i8 signext %9)
%11 = add nuw nsw i32 %5, 1
%12 = icmp eq i32 %11, %1
br i1 %12, label %13, label %4
13: ; preds = %4, %2
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exp(int /*<<< orphan*/);
int /*<<< orphan*/ wPopNumber();
int /*<<< orphan*/ wPushNumber(int /*<<< orphan*/);
void wBasExp() { wPushNumber(exp(wPopNumber())); }


x86 assembly (clang, -O0):
<wBasExp>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <wPopNumber@plt>
mov    %eax,%edi
call   1050 <exp@plt>
mov    %eax,%edi
call   1030 <wPushNumber@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<wBasExp>:
push   %rax
xor    %eax,%eax
call   1040 <wPopNumber@plt>
mov    %eax,%edi
call   1050 <exp@plt>
mov    %eax,%edi
pop    %rax
jmp    1030 <wPushNumber@plt>

LLVM IR (-O0):
define void @wBasExp() {
%1 = call i32 (...) @wPopNumber()
%2 = call i32 @exp(i32 %1)
%3 = call i32 @wPushNumber(i32 %2)
ret void
}

LLVM IR (-O2):
define void @wBasExp() {
%1 = tail call i32 (...) @wPopNumber()
%2 = tail call i32 @exp(i32 %1)
%3 = tail call i32 @wPushNumber(i32 %2)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int fclose(FILE *stream) { return (0); }


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

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

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

LLVM IR (-O2):
define i32 @fclose(i32* nocapture readnone %0) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ midi_clock_tap_tempo();
void seq_ctrl_tap_tempo(void) { midi_clock_tap_tempo(); }


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

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

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

LLVM IR (-O2):
define void @seq_ctrl_tap_tempo() {
%1 = tail call i32 (...) @midi_clock_tap_tempo()
ret void
}
/* Variables and functions */
scalar_t__ j1(double);
int /*<<< orphan*/ link_failure_j1();
void test_j1(double d) {
  if (j1(d) != j1(d))
    link_failure_j1();
}


x86 assembly (clang, -O0):
<test_j1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1030 <j1@plt>
mov    %rax,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1030 <j1@plt>
mov    %rax,%rcx
mov    -0x10(%rbp),%rax
cmp    %rcx,%rax
je     115c <test_j1+0x3c>
mov    $0x0,%al
call   1040 <link_failure_j1@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_j1>:
push   %rbx
sub    $0x10,%rsp
movsd  %xmm0,0x8(%rsp)
call   1030 <j1@plt>
mov    %rax,%rbx
movsd  0x8(%rsp),%xmm0
call   1030 <j1@plt>
cmp    %rax,%rbx
jne    1149 <test_j1+0x29>
add    $0x10,%rsp
pop    %rbx
ret
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
jmp    1040 <link_failure_j1@plt>

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

LLVM IR (-O2):
define void @test_j1(double %0) {
%2 = tail call i64 @j1(double %0)
%3 = tail call i64 @j1(double %0)
%4 = icmp eq i64 %2, %3
br i1 %4, label %7, label %5
5: ; preds = %1
%6 = tail call i32 (...) @link_failure_j1()
br label %7
7: ; preds = %5, %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ clear_void(unsigned int *, unsigned int);
void clear_uints(unsigned int *uints, unsigned int numUInts) {
  clear_void(uints, numUInts * sizeof(unsigned int));
}


x86 assembly (clang, -O0):
<clear_uints>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%eax
shl    $0x2,%rax
mov    %eax,%esi
call   1030 <clear_void@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<clear_uints>:
shl    $0x2,%esi
jmp    1030 <clear_void@plt>

LLVM IR (-O0):
define void @clear_uints(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 = zext i32 %6 to i64
%8 = mul i64 %7, 4
%9 = trunc i64 %8 to i32
%10 = call i32 @clear_void(i32* %5, i32 %9)
ret void
}

LLVM IR (-O2):
define void @clear_uints(i32* %0, i32 %1) {
%3 = shl i32 %1, 2
%4 = tail call i32 @clear_void(i32* %0, i32 %3)
ret void
}
unsigned kol_skin_height() { asm volatile("int $0x40" ::"a"(48), "b"(4)); }


x86 assembly (clang, -O0):
<kol_skin_height>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
mov    $0x30,%eax
mov    $0x4,%ebx
int    $0x40
mov    -0xc(%rbp),%eax
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<kol_skin_height>:
push   %rbx
mov    $0x30,%eax
mov    $0x4,%ebx
int    $0x40
pop    %rbx
ret

LLVM IR (-O0):
define i32 @kol_skin_height() {
%1 = alloca i32
%2 = load i32, i32* %1
ret i32 %2
}

LLVM IR (-O2):
define i32 @kol_skin_height() {
tail call void asm sideeffect "int $$0x40", "{ax},{bx},~{dirflag},~{fpsr},~{flags}"(i32 48, i32 4)
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ console_tx_hex8(unsigned char);
void print_info_hex8(unsigned char value) { console_tx_hex8(value); }


x86 assembly (clang, -O0):
<print_info_hex8>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movzbl -0x1(%rbp),%edi
call   1030 <console_tx_hex8@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_info_hex8>:
jmp    1030 <console_tx_hex8@plt>

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

LLVM IR (-O2):
define void @print_info_hex8(i8 zeroext %0) {
%2 = tail call i32 @console_tx_hex8(i8 zeroext %0)
ret void
}
/* Type definitions */
typedef scalar_t__ uint8_t;
typedef int /*<<< orphan*/ int8_t;

/* Variables and functions */
scalar_t__ nrf_802154_rssi_sample_corrected_get(scalar_t__);
scalar_t__ nrf_radio_rssi_sample_get();
int8_t nrf_802154_rssi_last_get(void) {
  uint8_t negative_dbm = nrf_radio_rssi_sample_get();
  negative_dbm = nrf_802154_rssi_sample_corrected_get(negative_dbm);
  return -(int8_t)negative_dbm;
}


x86 assembly (clang, -O0):
<nrf_802154_rssi_last_get>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <nrf_radio_rssi_sample_get@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <nrf_802154_rssi_sample_corrected_get@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %eax,%ecx
xor    %eax,%eax
sub    %ecx,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<nrf_802154_rssi_last_get>:
push   %rax
xor    %eax,%eax
call   1030 <nrf_radio_rssi_sample_get@plt>
mov    %rax,%rdi
call   1040 <nrf_802154_rssi_sample_corrected_get@plt>
neg    %eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @nrf_802154_rssi_last_get() {
%1 = alloca i64
%2 = call i64 (...) @nrf_radio_rssi_sample_get()
store i64 %2, i64* %1
%3 = load i64, i64* %1
%4 = call i64 @nrf_802154_rssi_sample_corrected_get(i64 %3)
store i64 %4, i64* %1
%5 = load i64, i64* %1
%6 = trunc i64 %5 to i32
%7 = sub nsw i32 0, %6
ret i32 %7
}

LLVM IR (-O2):
define i32 @nrf_802154_rssi_last_get() {
%1 = tail call i64 (...) @nrf_radio_rssi_sample_get()
%2 = tail call i64 @nrf_802154_rssi_sample_corrected_get(i64 %1)
%3 = trunc i64 %2 to i32
%4 = sub nsw i32 0, %3
ret i32 %4
}
/* Variables and functions */
int iposix_mkdir(char const *, unsigned int);
int install_mkdir(const char *dir, unsigned int mode) {
  return iposix_mkdir(dir, mode);
}


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

x86 assembly (clang, -O2):
<install_mkdir>:
jmp    1030 <iposix_mkdir@plt>

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

LLVM IR (-O2):
define i32 @install_mkdir(i8* %0, i32 %1) {
%3 = tail call i32 @iposix_mkdir(i8* %0, i32 %1)
ret i32 %3
}
int http_async_req_status(void *ctx) { return 1; }


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

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

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

LLVM IR (-O2):
define i32 @http_async_req_status(i8* nocapture readnone %0) {
ret i32 1
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
void usage(char *prgname) {
  printf("Usage : %s [OPTION] FILE > HEADER\n"
         "\n"
         "options:\n"
         "  -a <address> image flash address\n"
         "  -e <address> entry point memory address\n"
         "  -l <address> load memory address\n",
         prgname);
}


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

x86 assembly (clang, -O2):
<usage>:
mov    %rdi,%rsi
lea    0xee6(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [157 x i8] c"Usage : %s [OPTION] FILE > HEADER\0A\0Aoptions:\0A -a <address> image flash address\0A -e <address> entry point memory address\0A -l <address> load memory address\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @printf(i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str, i64 0, i64 0), i8* %3)
ret void
}

LLVM IR (-O2):
@.str = [157 x i8] c"Usage : %s [OPTION] FILE > HEADER\0A\0Aoptions:\0A -a <address> image flash address\0A -e <address> entry point memory address\0A -l <address> load memory address\0A\00"
define void @usage(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
/* Variables and functions */
scalar_t__ errno_interrupted();
int write(int, void const *, int);
int robust_write(int fd, const void *buffer, int length) {
  int rc;
  do {
    rc = write(fd, buffer, length);
  } while (rc < 0 && errno_interrupted());
  return rc;
}


x86 assembly (clang, -O0):
<robust_write>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1030 <write@plt>
mov    %eax,-0x18(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x18(%rbp)
mov    %al,-0x19(%rbp)
jge    1164 <robust_write+0x44>
mov    $0x0,%al
call   1040 <errno_interrupted@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x19(%rbp)
mov    -0x19(%rbp),%al
test   $0x1,%al
jne    1132 <robust_write+0x12>
mov    -0x18(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<robust_write>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %edx,%r14d
mov    %rsi,%r15
mov    %edi,%ebp
nop
mov    %ebp,%edi
mov    %r15,%rsi
mov    %r14d,%edx
call   1030 <write@plt>
mov    %eax,%ebx
test   %eax,%eax
jns    114f <robust_write+0x2f>
xor    %eax,%eax
call   1040 <errno_interrupted@plt>
test   %rax,%rax
jne    1130 <robust_write+0x10>
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @robust_write(i32 %0, i8* %1, i32 %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
store i32 %0, i32* %4
store i8* %1, i8** %5
store i32 %2, i32* %6
br label %8
8: ; preds = %19, %3
%9 = load i32, i32* %4
%10 = load i8*, i8** %5
%11 = load i32, i32* %6
%12 = call i32 @write(i32 %9, i8* %10, i32 %11)
store i32 %12, i32* %7
br label %13
13: ; preds = %8
%14 = load i32, i32* %7
%15 = icmp slt i32 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %13
%17 = call i64 (...) @errno_interrupted()
%18 = icmp ne i64 %17, 0
br label %19
19: ; preds = %16, %13
%20 = phi i1 [ false, %13 ], [ %18, %16 ]
br i1 %20, label %8, label %21
21: ; preds = %19
%22 = load i32, i32* %7
ret i32 %22
}

LLVM IR (-O2):
define i32 @robust_write(i32 %0, i8* nocapture %1, i32 %2) {
br label %4
4: ; preds = %7, %3
%5 = tail call i32 @write(i32 %0, i8* %1, i32 %2)
%6 = icmp slt i32 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %4
%8 = tail call i64 (...) @errno_interrupted()
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %4
10: ; preds = %4, %7
ret i32 %5
}
int sysButton2() {}


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

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

LLVM IR (-O0):
define i32 @sysButton2() {
%1 = alloca i32
%2 = load i32, i32* %1
ret i32 %2
}

LLVM IR (-O2):
define i32 @sysButton2() {
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ WriteInstruction(char *);
void CR_SpriteRight(void) { WriteInstruction("inc (ix+9)"); }


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

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

LLVM IR (-O0):
@.str = [11 x i8] c"inc (ix+9)\00"
define void @CR_SpriteRight() {
%1 = call i32 @WriteInstruction(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"inc (ix+9)\00"
define void @CR_SpriteRight() {
%1 = tail call i32 @WriteInstruction(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
ret void
}
int byte_row_uhc_1(int byte) {
  if (byte >= 0x81 && byte < 0xa1)
    return byte - 0x81;
  else
    return -1;
}


x86 assembly (clang, -O0):
<byte_row_uhc_1>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0x81,-0x8(%rbp)
jl     1131 <byte_row_uhc_1+0x31>
cmpl   $0xa1,-0x8(%rbp)
jge    1131 <byte_row_uhc_1+0x31>
mov    -0x8(%rbp),%eax
sub    $0x81,%eax
mov    %eax,-0x4(%rbp)
jmp    1138 <byte_row_uhc_1+0x38>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<byte_row_uhc_1>:
lea    -0x81(%rdi),%ecx
cmp    $0x20,%ecx
mov    $0xffffffff,%eax
cmovb  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @byte_row_uhc_1(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp sge i32 %4, 129
br i1 %5, label %6, label %12
6: ; preds = %1
%7 = load i32, i32* %3
%8 = icmp slt i32 %7, 161
br i1 %8, label %9, label %12
9: ; preds = %6
%10 = load i32, i32* %3
%11 = sub nsw i32 %10, 129
store i32 %11, i32* %2
br label %13
12: ; preds = %6, %1
store i32 -1, i32* %2
br label %13
13: ; preds = %12, %9
%14 = load i32, i32* %2
ret i32 %14
}

LLVM IR (-O2):
define i32 @byte_row_uhc_1(i32 %0) {
%2 = add i32 %0, -129
%3 = icmp ult i32 %2, 32
%4 = select i1 %3, i32 %2, i32 -1
ret i32 %4
}
int filterCallback(int index) { return index == 'A' || index == 'B'; }


x86 assembly (clang, -O0):
<filterCallback>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    $0x1,%al
cmpl   $0x41,-0x4(%rbp)
mov    %al,-0x5(%rbp)
je     1120 <filterCallback+0x20>
cmpl   $0x42,-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):
<filterCallback>:
add    $0xffffffbf,%edi
xor    %eax,%eax
cmp    $0x2,%edi
setb   %al
ret

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

LLVM IR (-O2):
define i32 @filterCallback(i32 %0) {
%2 = add i32 %0, -65
%3 = icmp ult i32 %2, 2
%4 = zext i1 %3 to i32
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ unlink(char const *);
void os_daemonize_terminate(const char *pid_file) {
  if (pid_file)
    unlink(pid_file);
}


x86 assembly (clang, -O0):
<os_daemonize_terminate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1130 <os_daemonize_terminate+0x20>
mov    -0x8(%rbp),%rdi
call   1030 <unlink@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<os_daemonize_terminate>:
test   %rdi,%rdi
je     111a <os_daemonize_terminate+0xa>
jmp    1030 <unlink@plt>
ret

LLVM IR (-O0):
define void @os_daemonize_terminate(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = icmp ne i8* %3, null
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i8*, i8** %2
%7 = call i32 @unlink(i8* %6)
br label %8
8: ; preds = %5, %1
ret void
}

LLVM IR (-O2):
define void @os_daemonize_terminate(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %5, label %3
3: ; preds = %1
%4 = tail call i32 @unlink(i8* %0)
br label %5
5: ; preds = %3, %1
ret void
}