xunge/DecIR huggingface dataset:
/* Variables and functions */
int do_test(char *);
int main(void) {
  int result;
  result = do_test("C");
  result |= do_test("de_DE.ISO-8859-1");
  result |= do_test("de_DE.UTF-8");
  result |= do_test("ja_JP.EUC-JP");
  return result;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
call   1030 <do_test@plt>
mov    %eax,-0x8(%rbp)
lea    0xecd(%rip),%rdi
call   1030 <do_test@plt>
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
lea    0xecc(%rip),%rdi
call   1030 <do_test@plt>
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
lea    0xec6(%rip),%rdi
call   1030 <do_test@plt>
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
lea    0xee6(%rip),%rdi
call   1030 <do_test@plt>
mov    %eax,%ebx
lea    0xeda(%rip),%rdi
call   1030 <do_test@plt>
mov    %eax,%ebp
or     %ebx,%ebp
lea    0xedb(%rip),%rdi
call   1030 <do_test@plt>
mov    %eax,%ebx
lea    0xed9(%rip),%rdi
call   1030 <do_test@plt>
or     %ebx,%eax
or     %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"C\00"
@.str.1 = [17 x i8] c"de_DE.ISO-8859-1\00"
@.str.2 = [12 x i8] c"de_DE.UTF-8\00"
@.str.3 = [13 x i8] c"ja_JP.EUC-JP\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 @do_test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32 %3, i32* %2
%4 = call i32 @do_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* %2
%6 = or i32 %5, %4
store i32 %6, i32* %2
%7 = call i32 @do_test(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%8 = load i32, i32* %2
%9 = or i32 %8, %7
store i32 %9, i32* %2
%10 = call i32 @do_test(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%11 = load i32, i32* %2
%12 = or i32 %11, %10
store i32 %12, i32* %2
%13 = load i32, i32* %2
ret i32 %13
}

LLVM IR (-O2):
@.str = [2 x i8] c"C\00"
@.str.1 = [17 x i8] c"de_DE.ISO-8859-1\00"
@.str.2 = [12 x i8] c"de_DE.UTF-8\00"
@.str.3 = [13 x i8] c"ja_JP.EUC-JP\00"
define i32 @main() {
%1 = tail call i32 @do_test(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @do_test(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%3 = or i32 %2, %1
%4 = tail call i32 @do_test(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%5 = or i32 %3, %4
%6 = tail call i32 @do_test(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0))
%7 = or i32 %5, %6
ret i32 %7
}
int test_imm_C1uint64_highword_reg(unsigned long long val) {
  return ((val >> 32) & (0xC1 << 0)) ? -20 : -40;
}


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

x86 assembly (clang, -O2):
<test_imm_C1uint64_highword_reg>:
movabs $0xc100000000,%rax
test   %rax,%rdi
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @test_imm_C1uint64_highword_reg(i64 %0) {
%2 = and i64 %0, 828928688128
%3 = icmp eq i64 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
int ieee80211_ofdm_chan_to_freq(int s_freq, int channel) {
  if ((channel > 0) && (channel <= 200) && (s_freq >= 4000))
    return s_freq + (channel * 5);
  else
    return -1;
}


x86 assembly (clang, -O0):
<ieee80211_ofdm_chan_to_freq>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jle    113f <ieee80211_ofdm_chan_to_freq+0x3f>
cmpl   $0xc8,-0xc(%rbp)
jg     113f <ieee80211_ofdm_chan_to_freq+0x3f>
cmpl   $0xfa0,-0x8(%rbp)
jl     113f <ieee80211_ofdm_chan_to_freq+0x3f>
mov    -0x8(%rbp),%eax
imul   $0x5,-0xc(%rbp),%ecx
add    %ecx,%eax
mov    %eax,-0x4(%rbp)
jmp    1146 <ieee80211_ofdm_chan_to_freq+0x46>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ieee80211_ofdm_chan_to_freq>:
lea    (%rsi,%rsi,4),%eax
mov    %esi,%ecx
add    $0xffffffff,%ecx
add    %edi,%eax
cmp    $0xc8,%ecx
mov    $0xffffffff,%ecx
cmovae %ecx,%eax
cmp    $0xfa0,%edi
cmovl  %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @ieee80211_ofdm_chan_to_freq(i32 %0, i32 %1) {
%3 = add i32 %1, -1
%4 = icmp ult i32 %3, 200
%5 = icmp sgt i32 %0, 3999
%6 = and i1 %5, %4
%7 = mul nsw i32 %1, 5
%8 = add nsw i32 %7, %0
%9 = select i1 %6, i32 %8, i32 -1
ret i32 %9
}
int car2val(char car) {
  if (car >= 'a' && car <= 'z')
    return car - 'a';
  else if (car >= 'A' && car <= 'Z')
    return car - 'A';
  return -1;
}


x86 assembly (clang, -O0):
<car2val>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
cmp    $0x61,%eax
jl     1133 <car2val+0x33>
movsbl -0x5(%rbp),%eax
cmp    $0x7a,%eax
jg     1133 <car2val+0x33>
movsbl -0x5(%rbp),%eax
sub    $0x61,%eax
mov    %eax,-0x4(%rbp)
jmp    1168 <car2val+0x68>
movsbl -0x5(%rbp),%eax
cmp    $0x41,%eax
jl     115c <car2val+0x5c>
movsbl -0x5(%rbp),%eax
cmp    $0x5a,%eax
jg     115c <car2val+0x5c>
movsbl -0x5(%rbp),%eax
sub    $0x41,%eax
mov    %eax,-0x4(%rbp)
jmp    1168 <car2val+0x68>
jmp    1161 <car2val+0x61>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<car2val>:
mov    %edi,%eax
lea    -0x61(%rax),%ecx
cmp    $0x19,%cl
ja     110e <car2val+0xe>
add    $0xffffff9f,%eax
ret
lea    -0x41(%rax),%ecx
add    $0xffffffbf,%eax
cmp    $0x1a,%cl
mov    $0xffffffff,%ecx
cmovb  %eax,%ecx
mov    %ecx,%eax
ret

LLVM IR (-O0):
define i32 @car2val(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, 97
br i1 %6, label %7, label %15
7: ; preds = %1
%8 = load i8, i8* %3
%9 = sext i8 %8 to i32
%10 = icmp sle i32 %9, 122
br i1 %10, label %11, label %15
11: ; preds = %7
%12 = load i8, i8* %3
%13 = sext i8 %12 to i32
%14 = sub nsw i32 %13, 97
store i32 %14, i32* %2
br label %29
15: ; preds = %7, %1
%16 = load i8, i8* %3
%17 = sext i8 %16 to i32
%18 = icmp sge i32 %17, 65
br i1 %18, label %19, label %27
19: ; preds = %15
%20 = load i8, i8* %3
%21 = sext i8 %20 to i32
%22 = icmp sle i32 %21, 90
br i1 %22, label %23, label %27
23: ; preds = %19
%24 = load i8, i8* %3
%25 = sext i8 %24 to i32
%26 = sub nsw i32 %25, 65
store i32 %26, i32* %2
br label %29
27: ; preds = %19, %15
br label %28
28: ; preds = %27
store i32 -1, i32* %2
br label %29
29: ; preds = %28, %23, %11
%30 = load i32, i32* %2
ret i32 %30
}

LLVM IR (-O2):
define i32 @car2val(i8 signext %0) {
%2 = sext i8 %0 to i32
%3 = add i8 %0, -97
%4 = icmp ult i8 %3, 26
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = add nsw i32 %2, -97
br label %12
7: ; preds = %1
%8 = add i8 %0, -65
%9 = icmp ult i8 %8, 26
%10 = add nsw i32 %2, -65
%11 = select i1 %9, i32 %10, i32 -1
br label %12
12: ; preds = %7, %5
%13 = phi i32 [ %6, %5 ], [ %11, %7 ]
ret i32 %13
}
int is_unc_root(const char *path) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @is_unc_root(i8* nocapture readnone %0) {
ret i32 0
}
void ff_hevc_put_hevc_epel_v12_8_sse4() {}


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

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

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

LLVM IR (-O2):
define void @ff_hevc_put_hevc_epel_v12_8_sse4() {
ret void
}
/* Variables and functions */
int get_field_value(int /*<<< orphan*/, int, char *, char *);
int /*<<< orphan*/ get_text_from_identifier(int);
int get_field_value_from_identifier(int identifier, int no_of_fields,
                                    char *fieldname, char *value) {
  return get_field_value(get_text_from_identifier(identifier), no_of_fields,
                         fieldname, value);
}


x86 assembly (clang, -O0):
<get_field_value_from_identifier>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    -0x4(%rbp),%edi
call   1040 <get_text_from_identifier@plt>
mov    %eax,%edi
mov    -0x8(%rbp),%esi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
call   1030 <get_field_value@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_field_value_from_identifier>:
push   %rbp
push   %r14
push   %rbx
mov    %rcx,%r14
mov    %rdx,%rbx
mov    %esi,%ebp
call   1040 <get_text_from_identifier@plt>
mov    %eax,%edi
mov    %ebp,%esi
mov    %rbx,%rdx
mov    %r14,%rcx
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <get_field_value@plt>

LLVM IR (-O0):
define i32 @get_field_value_from_identifier(i32 %0, i32 %1, i8* %2, i8* %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i8*
store i32 %0, i32* %5
store i32 %1, i32* %6
store i8* %2, i8** %7
store i8* %3, i8** %8
%9 = load i32, i32* %5
%10 = call i32 @get_text_from_identifier(i32 %9)
%11 = load i32, i32* %6
%12 = load i8*, i8** %7
%13 = load i8*, i8** %8
%14 = call i32 @get_field_value(i32 %10, i32 %11, i8* %12, i8* %13)
ret i32 %14
}

LLVM IR (-O2):
define i32 @get_field_value_from_identifier(i32 %0, i32 %1, i8* %2, i8* %3) {
%5 = tail call i32 @get_text_from_identifier(i32 %0)
%6 = tail call i32 @get_field_value(i32 %5, i32 %1, i8* %2, i8* %3)
ret i32 %6
}
int func_not_exported(void) { return 99; }


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

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

LLVM IR (-O0):
define i32 @func_not_exported() {
ret i32 99
}

LLVM IR (-O2):
define i32 @func_not_exported() {
ret i32 99
}
/* Variables and functions */
int __syscall(int, int /*<<< orphan*/, int /*<<< orphan*/, int /*<<< orphan*/,
              int);
int close(int filedes) { return __syscall(filedes, 0, 0, 0, 0x402); }


x86 assembly (clang, -O0):
<close>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
xor    %ecx,%ecx
mov    $0x402,%r8d
mov    %ecx,%esi
mov    %ecx,%edx
call   1030 <__syscall@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<close>:
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
mov    $0x402,%r8d
jmp    1030 <__syscall@plt>

LLVM IR (-O0):
define i32 @close(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @__syscall(i32 %3, i32 0, i32 0, i32 0, i32 1026)
ret i32 %4
}

LLVM IR (-O2):
define i32 @close(i32 %0) {
%2 = tail call i32 @__syscall(i32 %0, i32 0, i32 0, i32 0, i32 1026)
ret i32 %2
}
/* Variables and functions */
int snprintf(char *, size_t, char *, char const *, char const *);
int spx_reporter_full_build_file_name(const char *data_dir, const char *key,
                                      char *file_name, size_t size) {
  return snprintf(file_name, size, "%s/%s.txt.gz", data_dir, key);
}


x86 assembly (clang, -O0):
<spx_reporter_full_build_file_name>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    -0x8(%rbp),%rcx
mov    -0x10(%rbp),%r8
lea    0xec1(%rip),%rdx
call   1030 <snprintf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<spx_reporter_full_build_file_name>:
mov    %rdx,%rax
mov    %rsi,%r8
mov    %rdi,%r9
lea    0xee0(%rip),%rdx
mov    %rax,%rdi
mov    %rcx,%rsi
mov    %r9,%rcx
jmp    1030 <snprintf@plt>

LLVM IR (-O0):
@.str = [13 x i8] c"%s/%s.txt.gz\00"
define i32 @spx_reporter_full_build_file_name(i8* %0, i8* %1, i8* %2, i64 %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i64
store i8* %0, i8** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i64 %3, i64* %8
%9 = load i8*, i8** %7
%10 = load i64, i64* %8
%11 = load i8*, i8** %5
%12 = load i8*, i8** %6
%13 = call i32 @snprintf(i8* %9, i64 %10, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* %11, i8* %12)
ret i32 %13
}

LLVM IR (-O2):
@.str = [13 x i8] c"%s/%s.txt.gz\00"
define i32 @spx_reporter_full_build_file_name(i8* %0, i8* %1, i8* %2, i64 %3) {
%5 = tail call i32 @snprintf(i8* %2, i64 %3, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %1)
ret i32 %5
}
/* Type definitions */
typedef int /*<<< orphan*/ voidpf;

/* Variables and functions */
int /*<<< orphan*/ svz_free(int /*<<< orphan*/);
void zlib_free(voidpf data __attribute__((unused)), voidpf ptr) {
  svz_free(ptr);
}


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

x86 assembly (clang, -O2):
<zlib_free>:
mov    %esi,%edi
jmp    1030 <svz_free@plt>

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

LLVM IR (-O2):
define void @zlib_free(i32 %0, i32 %1) {
%3 = tail call i32 @svz_free(i32 %1)
ret void
}
char *rindex(str, chr)
register char *str, chr;
{
  register char *retptr = 0;
  while (*str)
    if (*str++ == chr)
      retptr = &str[-1];
  return retptr;
}


x86 assembly (clang, -O0):
<rindex>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %rdi,-0x8(%rbp)
mov    %al,-0x9(%rbp)
movq   $0x0,-0x18(%rbp)
mov    -0x8(%rbp),%rax
cmpb   $0x0,(%rax)
je     1152 <rindex+0x52>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movsbl (%rax),%eax
movsbl -0x9(%rbp),%ecx
cmp    %ecx,%eax
jne    114d <rindex+0x4d>
mov    -0x8(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x18(%rbp)
jmp    1116 <rindex+0x16>
mov    -0x18(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<rindex>:
mov    (%rdi),%cl
xor    %eax,%eax
test   %cl,%cl
je     1123 <rindex+0x23>
nopl   0x0(%rax,%rax,1)
cmp    %sil,%cl
cmove  %rdi,%rax
movzbl 0x1(%rdi),%ecx
add    $0x1,%rdi
test   %cl,%cl
jne    1110 <rindex+0x10>
ret

LLVM IR (-O0):
define i8* @rindex(i8* %0, i8 signext %1) {
%3 = alloca i8*
%4 = alloca i8
%5 = alloca i8*
store i8* %0, i8** %3
store i8 %1, i8* %4
store i8* null, i8** %5
br label %6
6: ; preds = %21, %2
%7 = load i8*, i8** %3
%8 = load i8, i8* %7
%9 = icmp ne i8 %8, 0
br i1 %9, label %10, label %22
10: ; preds = %6
%11 = load i8*, i8** %3
%12 = getelementptr inbounds i8, i8* %11, i32 1
store i8* %12, i8** %3
%13 = load i8, i8* %11
%14 = sext i8 %13 to i32
%15 = load i8, i8* %4
%16 = sext i8 %15 to i32
%17 = icmp eq i32 %14, %16
br i1 %17, label %18, label %21
18: ; preds = %10
%19 = load i8*, i8** %3
%20 = getelementptr inbounds i8, i8* %19, i64 -1
store i8* %20, i8** %5
br label %21
21: ; preds = %18, %10
br label %6
22: ; preds = %6
%23 = load i8*, i8** %5
ret i8* %23
}

LLVM IR (-O2):
define i8* @rindex(i8* %0, i8 signext %1) {
%3 = load i8, i8* %0
%4 = icmp eq i8 %3, 0
br i1 %4, label %14, label %5
5: ; preds = %2, %5
%6 = phi i8 [ %12, %5 ], [ %3, %2 ]
%7 = phi i8* [ %11, %5 ], [ null, %2 ]
%8 = phi i8* [ %9, %5 ], [ %0, %2 ]
%9 = getelementptr inbounds i8, i8* %8, i64 1
%10 = icmp eq i8 %6, %1
%11 = select i1 %10, i8* %8, i8* %7
%12 = load i8, i8* %9
%13 = icmp eq i8 %12, 0
br i1 %13, label %14, label %5
14: ; preds = %5, %2
%15 = phi i8* [ null, %2 ], [ %11, %5 ]
ret i8* %15
}
void part_print(struct blk_desc *dev_desc) {}


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

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

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

LLVM IR (-O2):
%struct.blk_desc = type opaque
define void @part_print(%struct.blk_desc* nocapture %0) {
ret void
}
void device_pm_move_before(struct device *deva, struct device *devb) {}


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

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

LLVM IR (-O0):
%struct.device = type opaque
define void @device_pm_move_before(%struct.device* %0, %struct.device* %1) {
%3 = alloca %struct.device*
%4 = alloca %struct.device*
store %struct.device* %0, %struct.device** %3
store %struct.device* %1, %struct.device** %4
ret void
}

LLVM IR (-O2):
%struct.device = type opaque
define void @device_pm_move_before(%struct.device* nocapture %0, %struct.device* nocapture %1) {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int fread(unsigned long long *, int, int, int /*<<< orphan*/ *);
int udev_queue_read_seqnum(FILE *queue_file, unsigned long long int *seqnum) {
  if (fread(seqnum, sizeof(unsigned long long int), 1, queue_file) != 1)
    return -1;
  return 0;
}


x86 assembly (clang, -O0):
<udev_queue_read_seqnum>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x10(%rbp),%rcx
mov    $0x8,%esi
mov    $0x1,%edx
call   1030 <fread@plt>
cmp    $0x1,%eax
je     114c <udev_queue_read_seqnum+0x3c>
movl   $0xffffffff,-0x4(%rbp)
jmp    1153 <udev_queue_read_seqnum+0x43>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<udev_queue_read_seqnum>:
push   %rax
mov    %rdi,%rcx
mov    %rsi,%rdi
mov    $0x8,%esi
mov    $0x1,%edx
call   1030 <fread@plt>
xor    %ecx,%ecx
cmp    $0x1,%eax
setne  %cl
neg    %ecx
mov    %ecx,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @udev_queue_read_seqnum(i32* nocapture %0, i64* nocapture %1) {
%3 = tail call i32 @fread(i64* %1, i32 8, i32 1, i32* %0)
%4 = icmp ne i32 %3, 1
%5 = sext i1 %4 to i32
ret i32 %5
}
/* Variables and functions */
int strcmp(char const *, char const *);
int wrapper(const char *a, const char *b) { return strcmp(a, b); }


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

x86 assembly (clang, -O2):
<wrapper>:
jmp    1030 <strcmp@plt>

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

LLVM IR (-O2):
define i32 @wrapper(i8* nocapture %0, i8* nocapture %1) {
%3 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(1) %1)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ test_case_usage();
int /*<<< orphan*/ test_suite_usage();
int /*<<< orphan*/ test_unit_test();
int /*<<< orphan*/ unit_test_all_success();
int /*<<< orphan*/ unit_test_log_off();
int /*<<< orphan*/ unit_test_log_on(char *);
void simplyc_test(void) {
  unit_test_log_on("simplyc_test_output.txt");
  test_suite_usage();
  test_case_usage();
  test_unit_test();
  (void)unit_test_all_success();
  unit_test_log_off();
}


x86 assembly (clang, -O0):
<simplyc_test>:
push   %rbp
mov    %rsp,%rbp
lea    0xe95(%rip),%rdi
call   1030 <unit_test_log_on@plt>
mov    $0x0,%al
call   1040 <test_suite_usage@plt>
mov    $0x0,%al
call   1050 <test_case_usage@plt>
mov    $0x0,%al
call   1060 <test_unit_test@plt>
mov    $0x0,%al
call   1070 <unit_test_all_success@plt>
mov    $0x0,%al
call   1080 <unit_test_log_off@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<simplyc_test>:
push   %rax
lea    0xe98(%rip),%rdi
call   1030 <unit_test_log_on@plt>
xor    %eax,%eax
call   1040 <test_suite_usage@plt>
xor    %eax,%eax
call   1050 <test_case_usage@plt>
xor    %eax,%eax
call   1060 <test_unit_test@plt>
xor    %eax,%eax
call   1070 <unit_test_all_success@plt>
xor    %eax,%eax
pop    %rcx
jmp    1080 <unit_test_log_off@plt>

LLVM IR (-O0):
@.str = [24 x i8] c"simplyc_test_output.txt\00"
define void @simplyc_test() {
%1 = call i32 @unit_test_log_on(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (...) @test_suite_usage()
%3 = call i32 (...) @test_case_usage()
%4 = call i32 (...) @test_unit_test()
%5 = call i32 (...) @unit_test_all_success()
%6 = call i32 (...) @unit_test_log_off()
ret void
}

LLVM IR (-O2):
@.str = [24 x i8] c"simplyc_test_output.txt\00"
define void @simplyc_test() {
%1 = tail call i32 @unit_test_log_on(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (...) @test_suite_usage()
%3 = tail call i32 (...) @test_case_usage()
%4 = tail call i32 (...) @test_unit_test()
%5 = tail call i32 (...) @unit_test_all_success()
%6 = tail call i32 (...) @unit_test_log_off()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ test_command(int);
void test_read_buffer_size(const void *test_data) { test_command(0x1005); }


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

x86 assembly (clang, -O2):
<test_read_buffer_size>:
mov    $0x1005,%edi
jmp    1030 <test_command@plt>

LLVM IR (-O0):
define void @test_read_buffer_size(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 @test_command(i32 4101)
ret void
}

LLVM IR (-O2):
define void @test_read_buffer_size(i8* nocapture readnone %0) {
%2 = tail call i32 @test_command(i32 4101)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ llib_snb_to_int(char const *, int *, char **, int);
__attribute__((unused)) int atoi(const char *s) {
  int n;
  llib_snb_to_int(s, &n, (char **)(void *)0, 10);
  return n;
}


x86 assembly (clang, -O0):
<atoi>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0xc(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%edx
mov    $0xa,%ecx
call   1030 <llib_snb_to_int@plt>
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<atoi>:
push   %rax
lea    0x4(%rsp),%rsi
xor    %edx,%edx
mov    $0xa,%ecx
call   1030 <llib_snb_to_int@plt>
mov    0x4(%rsp),%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @atoi(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = call i32 @llib_snb_to_int(i8* %4, i32* %3, i8** null, i32 10)
%6 = load i32, i32* %3
ret i32 %6
}

LLVM IR (-O2):
define i32 @atoi(i8* %0) {
%2 = alloca i32
%3 = bitcast i32* %2 to i8*
%4 = call i32 @llib_snb_to_int(i8* %0, i32* %2, i8** null, i32 10)
%5 = load i32, i32* %2
ret i32 %5
}
/* Type definitions */
struct gg_change_info_request {
  int dummy;
};

/* Variables and functions */
struct gg_change_info_request *
gg_change_info_request_new(const char *first_name, const char *last_name,
                           const char *nickname, const char *email, int born,
                           int gender, const char *city) {
  return NULL;
}


x86 assembly (clang, -O0):
<gg_change_info_request_new>:
push   %rbp
mov    %rsp,%rbp
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    %r9d,-0x28(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
%struct.gg_change_info_request = type { i32 }
define %struct.gg_change_info_request* @gg_change_info_request_new(i8* %0, i8* %1, i8* %2, i8* %3, i32 %4, i32 %5, i8* %6) {
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i32
%13 = alloca i32
%14 = alloca i8*
store i8* %0, i8** %8
store i8* %1, i8** %9
store i8* %2, i8** %10
store i8* %3, i8** %11
store i32 %4, i32* %12
store i32 %5, i32* %13
store i8* %6, i8** %14
ret %struct.gg_change_info_request* null
}

LLVM IR (-O2):
%struct.gg_change_info_request = type { i32 }
define noalias %struct.gg_change_info_request* @gg_change_info_request_new(i8* nocapture readnone %0, i8* nocapture readnone %1, i8* nocapture readnone %2, i8* nocapture readnone %3, i32 %4, i32 %5, i8* nocapture readnone %6) {
ret %struct.gg_change_info_request* null
}
void smp_send_all_nop(void) { return; }


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

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

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

LLVM IR (-O2):
define void @smp_send_all_nop() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isascii(int);
void t_isascii_0x86() {
  Assert_real((isascii(134) == 0),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/"
              "dg/z88dk/test/suites/ctype/test_isascii.c",
              675, ("isascii should be 0 for 0x86"));
}


x86 assembly (clang, -O0):
<t_isascii_0x86>:
push   %rbp
mov    %rsp,%rbp
mov    $0x86,%edi
call   1030 <isascii@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xebf(%rip),%rsi
mov    $0x2a3,%edx
lea    0xf5b(%rip),%rcx
call   1040 <Assert_real@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_isascii_0x86>:
push   %rax
mov    $0x86,%edi
call   1030 <isascii@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x2a3,%edx
pop    %rax
jmp    1040 <Assert_real@plt>

LLVM IR (-O0):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isascii.c\00"
@.str.1 = [29 x i8] c"isascii should be 0 for 0x86\00"
define void @t_isascii_0x86() {
%1 = call i64 @isascii(i32 134)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 675, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isascii.c\00"
@.str.1 = [29 x i8] c"isascii should be 0 for 0x86\00"
define void @t_isascii_0x86() {
%1 = tail call i64 @isascii(i32 134)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 675, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}
long core___core__Float___Numeric__to_i(double self) {
  long var;
  long var1;
  var1 = (long)self;
  var = var1;
  goto RET_LABEL;
RET_LABEL:;
  return var;
}


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

x86 assembly (clang, -O2):
<core___core__Float___Numeric__to_i>:
cvttsd2si %xmm0,%rax
ret

LLVM IR (-O0):
define i64 @core___core__Float___Numeric__to_i(double %0) {
%2 = alloca double
%3 = alloca i64
%4 = alloca i64
store double %0, double* %2
%5 = load double, double* %2
%6 = fptosi double %5 to i64
store i64 %6, i64* %4
%7 = load i64, i64* %4
store i64 %7, i64* %3
br label %8
8: ; preds = %1
%9 = load i64, i64* %3
ret i64 %9
}

LLVM IR (-O2):
define i64 @core___core__Float___Numeric__to_i(double %0) {
%2 = fptosi double %0 to i64
ret i64 %2
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int main() {
  printf("Coarse: EG1302A - Spring 2014\n");
  printf("Name: Carlos Sandoval\n");
  printf("Date Created: %d/%d/%d\n", 1, 28, 2014);
  printf("Assignment: Assignment 05\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeeb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef4(%rip),%rdi
mov    $0x1,%esi
mov    $0x1c,%edx
mov    $0x7de,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeef(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xef0(%rip),%rdi
call   1030 <puts@plt>
lea    0xf02(%rip),%rdi
call   1030 <puts@plt>
lea    0xec0(%rip),%rdi
mov    $0x1,%esi
mov    $0x1c,%edx
mov    $0x7de,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeef(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [31 x i8] c"Coarse: EG1302A - Spring 2014\0A\00"
@.str.1 = [23 x i8] c"Name: Carlos Sandoval\0A\00"
@.str.2 = [24 x i8] c"Date Created: %d/%d/%d\0A\00"
@.str.3 = [27 x i8] c"Assignment: Assignment 05\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 1, i32 28, i32 2014)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str.2 = [24 x i8] c"Date Created: %d/%d/%d\0A\00"
@str = [30 x i8] c"Coarse: EG1302A - Spring 2014\00"
@str.4 = [22 x i8] c"Name: Carlos Sandoval\00"
@str.5 = [26 x i8] c"Assignment: Assignment 05\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.4, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 1, i32 28, i32 2014)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.5, i64 0, i64 0))
ret i32 0
}
OP(ed, c7) { illegal_2(); }


x86 assembly (clang, -O0):
<OP>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    $0x0,%al
call   1030 <illegal_2@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @OP(i32 %0, i32 %1) {
%3 = tail call i32 (...) @illegal_2()
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void usage(void) {
  (void)fprintf(stderr, "usage: rev [file ...]\n");
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [23 x i8] c"usage: rev [file ...]\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [23 x i8] c"usage: rev [file ...]\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @exit(i32 1)
unreachable
}
int br_multicast_rcv(struct net_bridge *br, struct net_bridge_port *port,
                     struct sk_buff *skb) {
  return 0;
}


x86 assembly (clang, -O0):
<br_multicast_rcv>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
%struct.net_bridge = type opaque
%struct.net_bridge_port = type opaque
%struct.sk_buff = type opaque
define i32 @br_multicast_rcv(%struct.net_bridge* %0, %struct.net_bridge_port* %1, %struct.sk_buff* %2) {
%4 = alloca %struct.net_bridge*
%5 = alloca %struct.net_bridge_port*
%6 = alloca %struct.sk_buff*
store %struct.net_bridge* %0, %struct.net_bridge** %4
store %struct.net_bridge_port* %1, %struct.net_bridge_port** %5
store %struct.sk_buff* %2, %struct.sk_buff** %6
ret i32 0
}

LLVM IR (-O2):
%struct.net_bridge = type opaque
%struct.net_bridge_port = type opaque
%struct.sk_buff = type opaque
define i32 @br_multicast_rcv(%struct.net_bridge* nocapture readnone %0, %struct.net_bridge_port* nocapture readnone %1, %struct.sk_buff* nocapture readnone %2) {
ret i32 0
}
/* Type definitions */
typedef int int64_t;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, float);
float stdlib_strided_sstdevtk(int, float, float *, int);
int main() {
  float x[] = {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0};
  int64_t N = 4;
  int64_t stride = 2;
  float v = stdlib_strided_sstdevtk(N, 1.0f, x, stride);
  printf("sample standard deviation: %f\n", v);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0xee1(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xede(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xedb(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    0xed8(%rip),%rax
mov    %rax,-0x8(%rbp)
movl   $0x4,-0x24(%rbp)
movl   $0x2,-0x28(%rbp)
mov    -0x24(%rbp),%edi
lea    -0x20(%rbp),%rsi
mov    -0x28(%rbp),%edx
movss  0xe8c(%rip),%xmm0
call   1030 <stdlib_strided_sstdevtk@plt>
movss  %xmm0,-0x2c(%rbp)
movss  -0x2c(%rbp),%xmm0
lea    0xea6(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x28,%rsp
movaps 0xef5(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xed9(%rip),%xmm0
movaps %xmm0,(%rsp)
movss  0xebd(%rip),%xmm0
mov    %rsp,%rsi
mov    $0x4,%edi
mov    $0x2,%edx
call   1030 <stdlib_strided_sstdevtk@plt>
lea    0xed4(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x28,%rsp
ret

LLVM IR (-O0):
@__const.main.x = [8 x float] [float 1.000000e+00, float 2.000000e+00, float 3.000000e+00, float 4.000000e+00, float 5.000000e+00, float 6.000000e+00, float 7.000000e+00, float 8.000000e+00]
@.str = [31 x i8] c"sample standard deviation: %f\0A\00"
define i32 @main() {
%1 = alloca [8 x float]
%2 = alloca i32
%3 = alloca i32
%4 = alloca float
%5 = bitcast [8 x float]* %1 to i8*
store i32 4, i32* %2
store i32 2, i32* %3
%6 = load i32, i32* %2
%7 = getelementptr inbounds [8 x float], [8 x float]* %1, i64 0, i64 0
%8 = load i32, i32* %3
%9 = call float @stdlib_strided_sstdevtk(i32 %6, float 1.000000e+00, float* %7, i32 %8)
store float %9, float* %4
%10 = load float, float* %4
%11 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), float %10)
ret i32 0
}

LLVM IR (-O2):
@__const.main.x = [8 x float] [float 1.000000e+00, float 2.000000e+00, float 3.000000e+00, float 4.000000e+00, float 5.000000e+00, float 6.000000e+00, float 7.000000e+00, float 8.000000e+00]
@.str = [31 x i8] c"sample standard deviation: %f\0A\00"
define i32 @main() {
%1 = alloca [8 x float]
%2 = bitcast [8 x float]* %1 to i8*
%3 = getelementptr inbounds [8 x float], [8 x float]* %1, i64 0, i64 0
%4 = call float @stdlib_strided_sstdevtk(i32 4, float 1.000000e+00, float* %3, i32 2)
%5 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), float %4)
ret i32 0
}
int fun664() { return 664; }


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

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

LLVM IR (-O0):
define i32 @fun664() {
ret i32 664
}

LLVM IR (-O2):
define i32 @fun664() {
ret i32 664
}
/* Variables and functions */
int /*<<< orphan*/ quicksort2(int *, int);
void qsort_web2(int *values, int n) { quicksort2(values, n); }


x86 assembly (clang, -O0):
<qsort_web2>:
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 <quicksort2@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<qsort_web2>:
jmp    1030 <quicksort2@plt>

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

LLVM IR (-O2):
define void @qsort_web2(i32* %0, i32 %1) {
%3 = tail call i32 @quicksort2(i32* %0, i32 %1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ EXIT_SUCCESS;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
void printUsage() {
  printf("Convert .BNK instruments to OPL registers\n"
         "Usage: <BNK file> <OP3 file>\n");
  exit(EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<printUsage>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
mov    0x2ea9(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<printUsage>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
mov    0x2eac(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [72 x i8] c"Convert .BNK instruments to OPL registers\0AUsage: <BNK file> <OP3 file>\0A\00"
@EXIT_SUCCESS = global i32 0
define void @printUsage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str, i64 0, i64 0))
%2 = load i32, i32* @EXIT_SUCCESS
%3 = call i32 @exit(i32 %2)
unreachable
}

LLVM IR (-O2):
@EXIT_SUCCESS = global i32 0
@str = [71 x i8] c"Convert .BNK instruments to OPL registers\0AUsage: <BNK file> <OP3 file>\00"
define void @printUsage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str, i64 0, i64 0))
%2 = load i32, i32* @EXIT_SUCCESS
%3 = tail call i32 @exit(i32 %2)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ assert(int);
int main() {
  int resp, a;
  resp = -a;
  assert(resp == -a);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
xor    %eax,%eax
sub    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
xor    %ecx,%ecx
sub    -0x8(%rbp),%ecx
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = load i32, i32* %2
%4 = sub nsw i32 0, %3
store i32 %4, i32* %1
%5 = load i32, i32* %1
%6 = load i32, i32* %2
%7 = sub nsw i32 0, %6
%8 = icmp eq i32 %5, %7
%9 = zext i1 %8 to i32
%10 = call i32 @assert(i32 %9)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @assert(i32 0)
ret i32 0
}
void lerrif(msg, arg) const char *msg;
int arg;
{
  char errmsg[2048];
  snprintf(errmsg, sizeof(errmsg), msg, arg);
  flexerror(errmsg);
}


x86 assembly (clang, -O0):
<lerrif>:
push   %rbp
mov    %rsp,%rbp
sub    $0x810,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
lea    -0x810(%rbp),%rdi
mov    -0x8(%rbp),%rdx
mov    -0xc(%rbp),%ecx
mov    $0x800,%esi
mov    $0x0,%al
call   1040 <snprintf@plt>
lea    -0x810(%rbp),%rdi
mov    $0x0,%al
call   1030 <flexerror@plt>
add    $0x810,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<lerrif>:
push   %rbx
sub    $0x800,%rsp
mov    %esi,%ecx
mov    %rdi,%rdx
mov    %rsp,%rbx
mov    $0x800,%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <snprintf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <flexerror@plt>
add    $0x800,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define void @lerrif(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = alloca [2048 x i8]
store i8* %0, i8** %3
store i32 %1, i32* %4
%6 = getelementptr inbounds [2048 x i8], [2048 x i8]* %5, i64 0, i64 0
%7 = load i8*, i8** %3
%8 = load i32, i32* %4
%9 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* %6, i64 2048, i8* %7, i32 %8)
%10 = getelementptr inbounds [2048 x i8], [2048 x i8]* %5, i64 0, i64 0
%11 = call i32 (i8*, ...) bitcast (i32 (...)* @flexerror to i32 (i8*, ...)*)(i8* %10)
ret void
}

LLVM IR (-O2):
define void @lerrif(i8* nocapture %0, i32 %1) {
%3 = alloca [2048 x i8]
%4 = getelementptr inbounds [2048 x i8], [2048 x i8]* %3, i64 0, i64 0
%5 = call i32 (i8*, i64, i8*, ...) @snprintf(i8* %4, i64 2048, i8* %0, i32 %1)
%6 = call i32 (i8*, ...) bitcast (i32 (...)* @flexerror to i32 (i8*, ...)*)(i8* %4)
ret void
}
/* Variables and functions */
int open_thread_file(int, int);
int open_thread_files(int processor) {
  int any_thread;
  int has_file;
  int thread;
  any_thread = 0;
  thread = 0;
  do {
    has_file = open_thread_file(processor, thread);
    thread = thread + 1;
    any_thread = any_thread || has_file;
  } while (has_file);
  return any_thread;
}


x86 assembly (clang, -O0):
<open_thread_files>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%esi
call   1030 <open_thread_file@plt>
mov    %eax,-0xc(%rbp)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    $0x1,%al
cmpl   $0x0,-0x8(%rbp)
mov    %al,-0x11(%rbp)
jne    1159 <open_thread_files+0x49>
cmpl   $0x0,-0xc(%rbp)
setne  %al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0xc(%rbp)
jne    1129 <open_thread_files+0x19>
mov    -0x8(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<open_thread_files>:
push   %rbp
push   %r14
push   %rbx
mov    %edi,%r14d
xor    %ebp,%ebp
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
mov    %r14d,%edi
mov    %ebx,%esi
call   1030 <open_thread_file@plt>
add    $0x1,%ebx
or     %eax,%ebp
setne  %cl
mov    $0x0,%ebp
mov    %cl,%bpl
test   %eax,%eax
jne    1120 <open_thread_files+0x10>
mov    %ebp,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @open_thread_files(i32 %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i32 [ 0, %1 ], [ %10, %2 ]
%4 = phi i32 [ 0, %1 ], [ %6, %2 ]
%5 = tail call i32 @open_thread_file(i32 %0, i32 %4)
%6 = add nuw nsw i32 %4, 1
%7 = icmp ne i32 %3, 0
%8 = icmp ne i32 %5, 0
%9 = select i1 %7, i1 true, i1 %8
%10 = zext i1 %9 to i32
br i1 %8, label %2, label %11
11: ; preds = %2
ret i32 %10
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ printflag();
void print_good() {
  printf("Good Job.\n");
  printflag();
  exit(0);
}


x86 assembly (clang, -O0):
<print_good>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <printflag@plt>
xor    %edi,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<print_good>:
push   %rax
lea    0xec8(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <printflag@plt>
xor    %edi,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"Good Job.\0A\00"
define void @print_good() {
%1 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (...) @printflag()
%3 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@str = [10 x i8] c"Good Job.\00"
define void @print_good() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (...) @printflag()
%3 = tail call i32 @exit(i32 0)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ clang_analyzer_eval(int);
scalar_t__ strcmp(char *, char *);
void strcmp_2() {
  char *x = "123";
  char *y = "234";
  clang_analyzer_eval(strcmp(x, y) < 0);
}


x86 assembly (clang, -O0):
<strcmp_2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xed1(%rip),%rax
mov    %rax,-0x8(%rbp)
lea    0xeca(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
setl   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <clang_analyzer_eval@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<strcmp_2>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0xed5(%rip),%rsi
call   1030 <strcmp@plt>
shr    $0x3f,%rax
mov    %eax,%edi
pop    %rax
jmp    1040 <clang_analyzer_eval@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"123\00"
@.str.1 = [4 x i8] c"234\00"
define void @strcmp_2() {
%1 = alloca i8*
%2 = alloca i8*
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8** %1
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8** %2
%3 = load i8*, i8** %1
%4 = load i8*, i8** %2
%5 = call i64 @strcmp(i8* %3, i8* %4)
%6 = icmp slt i64 %5, 0
%7 = zext i1 %6 to i32
%8 = call i32 @clang_analyzer_eval(i32 %7)
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"123\00"
@.str.1 = [4 x i8] c"234\00"
define void @strcmp_2() {
%1 = tail call i64 @strcmp(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%2 = lshr i64 %1, 63
%3 = trunc i64 %2 to i32
%4 = tail call i32 @clang_analyzer_eval(i32 %3)
ret void
}