xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, float *);
int main(void) {
  float fahrenheit, celsius;
  printf("Enter Fahrenheit temperature: ");
  scanf("%f", &fahrenheit);
  celsius = (fahrenheit - 32.0f) * (5.0f / 9.0f);
  printf("Celsius equivalent: %.1f\n", celsius);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xed2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee3(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0x8(%rbp),%xmm0
movss  0xeaa(%rip),%xmm1
subss  %xmm1,%xmm0
movss  0xe9a(%rip),%xmm1
mulss  %xmm1,%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xeab(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee0(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xef1(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
movss  0x4(%rsp),%xmm0
addss  0xeb2(%rip),%xmm0
mulss  0xeae(%rip),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xec9(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [31 x i8] c"Enter Fahrenheit temperature: \00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [26 x i8] c"Celsius equivalent: %.1f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
store i32 0, i32* %1
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %2)
%6 = load float, float* %2
%7 = fsub float %6, 3.200000e+01
%8 = fmul float %7, 0x3FE1C71C80000000
store float %8, float* %3
%9 = load float, float* %3
%10 = fpext float %9 to double
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), double %10)
ret i32 0
}

LLVM IR (-O2):
@.str = [31 x i8] c"Enter Fahrenheit temperature: \00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [26 x i8] c"Celsius equivalent: %.1f\0A\00"
define i32 @main() {
%1 = alloca float
%2 = bitcast float* %1 to i8*
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %1)
%5 = load float, float* %1
%6 = fadd float %5, -3.200000e+01
%7 = fmul float %6, 0x3FE1C71C80000000
%8 = fpext float %7 to double
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), double %8)
ret i32 0
}
void default_prg_end(void) { return; }


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

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

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

LLVM IR (-O2):
define void @default_prg_end() {
ret void
}
/* Type definitions */
struct __sk_buff {
  int len;
};

/* Variables and functions */
__attribute__((section("sk_skb1"), used)) int bpf_prog1(struct __sk_buff *skb) {
  return skb->len;
}


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

x86 assembly (clang, -O2):
<bpf_prog1>:
mov    (%rdi),%eax
ret

LLVM IR (-O0):
%struct.__sk_buff = type { i32 }
@llvm.compiler.used = appending global [1 x i8*] [i8* bitcast (i32 (%struct.__sk_buff*)* @bpf_prog1 to i8*)], section "llvm.metadata"
define i32 @bpf_prog1(%struct.__sk_buff* %0) section "sk_skb1" {
%2 = alloca %struct.__sk_buff*
store %struct.__sk_buff* %0, %struct.__sk_buff** %2
%3 = load %struct.__sk_buff*, %struct.__sk_buff** %2
%4 = getelementptr inbounds %struct.__sk_buff, %struct.__sk_buff* %3, i32 0, i32 0
%5 = load i32, i32* %4
ret i32 %5
}

LLVM IR (-O2):
%struct.__sk_buff = type { i32 }
@llvm.compiler.used = appending global [1 x i8*] [i8* bitcast (i32 (%struct.__sk_buff*)* @bpf_prog1 to i8*)], section "llvm.metadata"
define i32 @bpf_prog1(%struct.__sk_buff* nocapture %0) section "sk_skb1" {
%2 = getelementptr inbounds %struct.__sk_buff, %struct.__sk_buff* %0, i64 0, i32 0
%3 = load i32, i32* %2
ret i32 %3
}
void do_nothing(void) { ; }


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

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

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

LLVM IR (-O2):
define void @do_nothing() {
ret void
}
void foo() {
  char bufa[] = "fubar";
  char bufb[] = {"fubar"};
}


x86 assembly (clang, -O0):
<foo>:
push   %rbp
mov    %rsp,%rbp
mov    0xef6(%rip),%eax
mov    %eax,-0x6(%rbp)
mov    0xef0(%rip),%ax
mov    %ax,-0x2(%rbp)
mov    0xee2(%rip),%eax
mov    %eax,-0xc(%rbp)
mov    0xedc(%rip),%ax
mov    %ax,-0x8(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
@__const.foo.bufa = [6 x i8] c"fubar\00"
@__const.foo.bufb = [6 x i8] c"fubar\00"
define void @foo() {
%1 = alloca [6 x i8]
%2 = alloca [6 x i8]
%3 = bitcast [6 x i8]* %1 to i8*
%4 = bitcast [6 x i8]* %2 to i8*
ret void
}

LLVM IR (-O2):
define void @foo() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ puts(char *);
void die(char *msg) {
  puts(msg);
  exit(1);
}


x86 assembly (clang, -O0):
<die>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<die>:
push   %rax
call   1030 <puts@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
define void @die(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @puts(i8* %3)
%5 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
define void @die(i8* nocapture %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) %0)
%3 = tail call i32 @exit(i32 1)
unreachable
}
const char *vedis_lib_copyright(void) {
  return "Copyright (C) Symisc Systems, S.U.A.R.L [Mrad Chems Eddine "
         "<chm@symisc.net>] 2013, http://vedis.symisc.net/";
}


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

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

LLVM IR (-O0):
@.str = [108 x i8] c"Copyright (C) Symisc Systems, S.U.A.R.L [Mrad Chems Eddine <chm@symisc.net>] 2013, http://vedis.symisc.net/\00"
define i8* @vedis_lib_copyright() {
ret i8* getelementptr inbounds ([108 x i8], [108 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [108 x i8] c"Copyright (C) Symisc Systems, S.U.A.R.L [Mrad Chems Eddine <chm@symisc.net>] 2013, http://vedis.symisc.net/\00"
define i8* @vedis_lib_copyright() {
ret i8* getelementptr inbounds ([108 x i8], [108 x i8]* @.str, i64 0, i64 0)
}
/* Variables and functions */
int /*<<< orphan*/ wdt_disable();
void watchdog_disable(void) { wdt_disable(); }


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

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

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

LLVM IR (-O2):
define void @watchdog_disable() {
%1 = tail call i32 (...) @wdt_disable()
ret void
}
/* Variables and functions */
unsigned char si475xAMRX_get_rssi();
unsigned char si47xxAMRX_get_rssi(void) { return si475xAMRX_get_rssi(); }


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

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

LLVM IR (-O0):
define zeroext i8 @si47xxAMRX_get_rssi() {
%1 = call zeroext i8 (...) @si475xAMRX_get_rssi()
ret i8 %1
}

LLVM IR (-O2):
define zeroext i8 @si47xxAMRX_get_rssi() {
%1 = tail call zeroext i8 (...) @si475xAMRX_get_rssi()
ret i8 %1
}
void gtk_range_set_range() {}


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

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

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

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


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

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

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

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

/* Variables and functions */
int /*<<< orphan*/ delwin(int /*<<< orphan*/ *);
int /*<<< orphan*/ endwin();
int /*<<< orphan*/ refresh();
void quit(WINDOW *window) {
  delwin(window);
  endwin();
  refresh();
}


x86 assembly (clang, -O0):
<quit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <delwin@plt>
mov    $0x0,%al
call   1050 <endwin@plt>
mov    $0x0,%al
call   1040 <refresh@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<quit>:
push   %rax
call   1030 <delwin@plt>
xor    %eax,%eax
call   1050 <endwin@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <refresh@plt>

LLVM IR (-O0):
define void @quit(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call i32 @delwin(i32* %3)
%5 = call i32 (...) @endwin()
%6 = call i32 (...) @refresh()
ret void
}

LLVM IR (-O2):
define void @quit(i32* %0) {
%2 = tail call i32 @delwin(i32* %0)
%3 = tail call i32 (...) @endwin()
%4 = tail call i32 (...) @refresh()
ret void
}
/* Type definitions */
typedef int __u8;
typedef int __u32;

/* Variables and functions */
__u32 scsi_to_u32(__u8 *ptr) {
  return (ptr[0] << 24) + (ptr[1] << 16) + (ptr[2] << 8) + ptr[3];
}


x86 assembly (clang, -O0):
<scsi_to_u32>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
shl    $0x18,%eax
mov    -0x8(%rbp),%rcx
mov    0x4(%rcx),%ecx
shl    $0x10,%ecx
add    %ecx,%eax
mov    -0x8(%rbp),%rcx
mov    0x8(%rcx),%ecx
shl    $0x8,%ecx
add    %ecx,%eax
mov    -0x8(%rbp),%rcx
add    0xc(%rcx),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<scsi_to_u32>:
mov    (%rdi),%eax
mov    0x4(%rdi),%ecx
shl    $0x18,%eax
shl    $0x10,%ecx
add    %eax,%ecx
mov    0x8(%rdi),%eax
shl    $0x8,%eax
add    %ecx,%eax
add    0xc(%rdi),%eax
ret

LLVM IR (-O0):
define i32 @scsi_to_u32(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = getelementptr inbounds i32, i32* %3, i64 0
%5 = load i32, i32* %4
%6 = shl i32 %5, 24
%7 = load i32*, i32** %2
%8 = getelementptr inbounds i32, i32* %7, i64 1
%9 = load i32, i32* %8
%10 = shl i32 %9, 16
%11 = add nsw i32 %6, %10
%12 = load i32*, i32** %2
%13 = getelementptr inbounds i32, i32* %12, i64 2
%14 = load i32, i32* %13
%15 = shl i32 %14, 8
%16 = add nsw i32 %11, %15
%17 = load i32*, i32** %2
%18 = getelementptr inbounds i32, i32* %17, i64 3
%19 = load i32, i32* %18
%20 = add nsw i32 %16, %19
ret i32 %20
}

LLVM IR (-O2):
define i32 @scsi_to_u32(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = shl i32 %2, 24
%4 = getelementptr inbounds i32, i32* %0, i64 1
%5 = load i32, i32* %4
%6 = shl i32 %5, 16
%7 = add nsw i32 %6, %3
%8 = getelementptr inbounds i32, i32* %0, i64 2
%9 = load i32, i32* %8
%10 = shl i32 %9, 8
%11 = add nsw i32 %7, %10
%12 = getelementptr inbounds i32, i32* %0, i64 3
%13 = load i32, i32* %12
%14 = add nsw i32 %11, %13
ret i32 %14
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ printf(char *);
FILE *fopen(const char *path, const char *mode) {
  printf("Always failing fopen\n");
  return NULL;
}


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

x86 assembly (clang, -O2):
<fopen>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [22 x i8] c"Always failing fopen\0A\00"
define i32* @fopen(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
ret i32* null
}

LLVM IR (-O2):
@str = [21 x i8] c"Always failing fopen\00"
define noalias i32* @fopen(i8* nocapture readnone %0, i8* nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str, i64 0, i64 0))
ret i32* null
}
unsigned xrop3_63_0_0(unsigned char s, unsigned char t) {
  unsigned S = ((unsigned)s << 8) | s;
  unsigned T = ((unsigned)t << 8) | t;
  unsigned stk1;
  stk1 = T & S;
  stk1 = ~stk1;
  return stk1;
}


x86 assembly (clang, -O0):
<xrop3_63_0_0>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %al,-0x2(%rbp)
movzbl -0x1(%rbp),%eax
shl    $0x8,%eax
movzbl -0x1(%rbp),%ecx
or     %ecx,%eax
mov    %eax,-0x8(%rbp)
movzbl -0x2(%rbp),%eax
shl    $0x8,%eax
movzbl -0x2(%rbp),%ecx
or     %ecx,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
and    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
xor    $0xffffffff,%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<xrop3_63_0_0>:
mov    %edi,%ecx
shl    $0x8,%ecx
or     %edi,%ecx
mov    %esi,%eax
shl    $0x8,%eax
or     %esi,%eax
and    %ecx,%eax
not    %eax
ret

LLVM IR (-O0):
define i32 @xrop3_63_0_0(i8 zeroext %0, i8 zeroext %1) {
%3 = alloca i8
%4 = alloca i8
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i8 %0, i8* %3
store i8 %1, i8* %4
%8 = load i8, i8* %3
%9 = zext i8 %8 to i32
%10 = shl i32 %9, 8
%11 = load i8, i8* %3
%12 = zext i8 %11 to i32
%13 = or i32 %10, %12
store i32 %13, i32* %5
%14 = load i8, i8* %4
%15 = zext i8 %14 to i32
%16 = shl i32 %15, 8
%17 = load i8, i8* %4
%18 = zext i8 %17 to i32
%19 = or i32 %16, %18
store i32 %19, i32* %6
%20 = load i32, i32* %6
%21 = load i32, i32* %5
%22 = and i32 %20, %21
store i32 %22, i32* %7
%23 = load i32, i32* %7
%24 = xor i32 %23, -1
store i32 %24, i32* %7
%25 = load i32, i32* %7
ret i32 %25
}

LLVM IR (-O2):
define i32 @xrop3_63_0_0(i8 zeroext %0, i8 zeroext %1) {
%3 = zext i8 %0 to i32
%4 = mul nuw nsw i32 %3, 257
%5 = zext i8 %1 to i32
%6 = mul nuw nsw i32 %5, 257
%7 = and i32 %6, %4
%8 = xor i32 %7, -1
ret i32 %8
}
void foo700(int p) {}


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

x86 assembly (clang, -O2):
ret

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

LLVM IR (-O2):
define void @foo700(i32 %0) {
ret void
}
void test_0(char *x, unsigned int y) {
  x[0] &= 0xFE;
  x[1] = y & ~(1 << 1);
  x[2] &= 0xFE;
  x[65000] &= 0xFE;
}


x86 assembly (clang, -O0):
<test_0>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
and    $0xfe,%ecx
mov    %cl,(%rax)
mov    -0xc(%rbp),%eax
and    $0xfffffffd,%eax
mov    %al,%cl
mov    -0x8(%rbp),%rax
mov    %cl,0x1(%rax)
mov    -0x8(%rbp),%rax
movsbl 0x2(%rax),%ecx
and    $0xfe,%ecx
mov    %cl,0x2(%rax)
mov    -0x8(%rbp),%rax
movsbl 0xfde8(%rax),%ecx
and    $0xfe,%ecx
mov    %cl,0xfde8(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_0>:
andb   $0xfe,(%rdi)
and    $0xfd,%sil
mov    %sil,0x1(%rdi)
andb   $0xfe,0x2(%rdi)
andb   $0xfe,0xfde8(%rdi)
ret

LLVM IR (-O0):
define void @test_0(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 = getelementptr inbounds i8, i8* %5, i64 0
%7 = load i8, i8* %6
%8 = sext i8 %7 to i32
%9 = and i32 %8, 254
%10 = trunc i32 %9 to i8
store i8 %10, i8* %6
%11 = load i32, i32* %4
%12 = and i32 %11, -3
%13 = trunc i32 %12 to i8
%14 = load i8*, i8** %3
%15 = getelementptr inbounds i8, i8* %14, i64 1
store i8 %13, i8* %15
%16 = load i8*, i8** %3
%17 = getelementptr inbounds i8, i8* %16, i64 2
%18 = load i8, i8* %17
%19 = sext i8 %18 to i32
%20 = and i32 %19, 254
%21 = trunc i32 %20 to i8
store i8 %21, i8* %17
%22 = load i8*, i8** %3
%23 = getelementptr inbounds i8, i8* %22, i64 65000
%24 = load i8, i8* %23
%25 = sext i8 %24 to i32
%26 = and i32 %25, 254
%27 = trunc i32 %26 to i8
store i8 %27, i8* %23
ret void
}

LLVM IR (-O2):
define void @test_0(i8* nocapture %0, i32 %1) {
%3 = load i8, i8* %0
%4 = and i8 %3, -2
store i8 %4, i8* %0
%5 = trunc i32 %1 to i8
%6 = and i8 %5, -3
%7 = getelementptr inbounds i8, i8* %0, i64 1
store i8 %6, i8* %7
%8 = getelementptr inbounds i8, i8* %0, i64 2
%9 = load i8, i8* %8
%10 = and i8 %9, -2
store i8 %10, i8* %8
%11 = getelementptr inbounds i8, i8* %0, i64 65000
%12 = load i8, i8* %11
%13 = and i8 %12, -2
store i8 %13, i8* %11
ret void
}
void hugo_closefiles() {}


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

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

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

LLVM IR (-O2):
define void @hugo_closefiles() {
ret void
}
/* Variables and functions */
int ls_cost_nm2_f0(double const **, double **, int *, double *, int);
int ls_cost_nm2(const double **arg, double **res, int *iw, double *w, int mem) {
  return ls_cost_nm2_f0(arg, res, iw, w, mem);
}


x86 assembly (clang, -O0):
<ls_cost_nm2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x24(%rbp),%r8d
call   1030 <ls_cost_nm2_f0@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ls_cost_nm2>:
jmp    1030 <ls_cost_nm2_f0@plt>

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

LLVM IR (-O2):
define i32 @ls_cost_nm2(double** %0, double** %1, i32* %2, double* %3, i32 %4) {
%6 = tail call i32 @ls_cost_nm2_f0(double** %0, double** %1, i32* %2, double* %3, i32 %4)
ret i32 %6
}
/* Type definitions */
union i2c_smbus_data {
  int byte;
};

/* Variables and functions */
int /*<<< orphan*/ I2C_SMBUS_BYTE_DATA;
int /*<<< orphan*/ I2C_SMBUS_READ;
scalar_t__ i2c_smbus_access(int, int /*<<< orphan*/, int, int /*<<< orphan*/,
                            union i2c_smbus_data *);
int wiringPiI2CReadReg8(int fd, int reg) {
  union i2c_smbus_data data;
  if (i2c_smbus_access(fd, I2C_SMBUS_READ, reg, I2C_SMBUS_BYTE_DATA, &data))
    return -1;
  else
    return data.byte & 0xFF;
}


x86 assembly (clang, -O0):
<wiringPiI2CReadReg8>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%edi
mov    0x2ec0(%rip),%rax
mov    (%rax),%esi
mov    -0xc(%rbp),%edx
mov    0x2eac(%rip),%rax
mov    (%rax),%ecx
lea    -0x10(%rbp),%r8
call   1030 <i2c_smbus_access@plt>
cmp    $0x0,%rax
je     1155 <wiringPiI2CReadReg8+0x45>
movl   $0xffffffff,-0x4(%rbp)
jmp    1160 <wiringPiI2CReadReg8+0x50>
mov    -0x10(%rbp),%eax
and    $0xff,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<wiringPiI2CReadReg8>:
push   %rax
mov    %esi,%edx
mov    0x2ece(%rip),%rax
mov    (%rax),%esi
mov    0x2ebd(%rip),%rax
mov    (%rax),%ecx
mov    %rsp,%r8
call   1030 <i2c_smbus_access@plt>
movzbl (%rsp),%ecx
neg    %rax
sbb    %eax,%eax
or     %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
%union.i2c_smbus_data = type { i32 }
@I2C_SMBUS_READ = global i32 0
@I2C_SMBUS_BYTE_DATA = global i32 0
define i32 @wiringPiI2CReadReg8(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca %union.i2c_smbus_data
store i32 %0, i32* %4
store i32 %1, i32* %5
%7 = load i32, i32* %4
%8 = load i32, i32* @I2C_SMBUS_READ
%9 = load i32, i32* %5
%10 = load i32, i32* @I2C_SMBUS_BYTE_DATA
%11 = call i64 @i2c_smbus_access(i32 %7, i32 %8, i32 %9, i32 %10, %union.i2c_smbus_data* %6)
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %2
store i32 -1, i32* %3
br label %18
14: ; preds = %2
%15 = bitcast %union.i2c_smbus_data* %6 to i32*
%16 = load i32, i32* %15
%17 = and i32 %16, 255
store i32 %17, i32* %3
br label %18
18: ; preds = %14, %13
%19 = load i32, i32* %3
ret i32 %19
}

LLVM IR (-O2):
%union.i2c_smbus_data = type { i32 }
@I2C_SMBUS_READ = global i32 0
@I2C_SMBUS_BYTE_DATA = global i32 0
define i32 @wiringPiI2CReadReg8(i32 %0, i32 %1) {
%3 = alloca %union.i2c_smbus_data
%4 = bitcast %union.i2c_smbus_data* %3 to i8*
%5 = load i32, i32* @I2C_SMBUS_READ
%6 = load i32, i32* @I2C_SMBUS_BYTE_DATA
%7 = call i64 @i2c_smbus_access(i32 %0, i32 %5, i32 %1, i32 %6, %union.i2c_smbus_data* %3)
%8 = icmp eq i64 %7, 0
%9 = getelementptr inbounds %union.i2c_smbus_data, %union.i2c_smbus_data* %3, i64 0, i32 0
%10 = load i32, i32* %9
%11 = and i32 %10, 255
%12 = select i1 %8, i32 %11, i32 -1
ret i32 %12
}
/* Variables and functions */
char *shex2(char *, char *, int);
char *shex8(char *buf, char *end, int val) {
  buf = shex2(buf, end, val >> 24);
  buf = shex2(buf, end, val >> 16);
  buf = shex2(buf, end, val >> 8);
  return shex2(buf, end, val);
}


x86 assembly (clang, -O0):
<shex8>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
sar    $0x18,%edx
call   1030 <shex2@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
sar    $0x10,%edx
call   1030 <shex2@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
sar    $0x8,%edx
call   1030 <shex2@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1030 <shex2@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<shex8>:
push   %rbp
push   %rbx
push   %rax
mov    %edx,%ebp
mov    %rsi,%rbx
sar    $0x18,%edx
call   1030 <shex2@plt>
mov    %ebp,%edx
sar    $0x10,%edx
mov    %rax,%rdi
mov    %rbx,%rsi
call   1030 <shex2@plt>
mov    %ebp,%edx
sar    $0x8,%edx
mov    %rax,%rdi
mov    %rbx,%rsi
call   1030 <shex2@plt>
mov    %rax,%rdi
mov    %rbx,%rsi
mov    %ebp,%edx
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <shex2@plt>

LLVM IR (-O0):
define i8* @shex8(i8* %0, i8* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
store i8* %0, i8** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%7 = load i8*, i8** %4
%8 = load i8*, i8** %5
%9 = load i32, i32* %6
%10 = ashr i32 %9, 24
%11 = call i8* @shex2(i8* %7, i8* %8, i32 %10)
store i8* %11, i8** %4
%12 = load i8*, i8** %4
%13 = load i8*, i8** %5
%14 = load i32, i32* %6
%15 = ashr i32 %14, 16
%16 = call i8* @shex2(i8* %12, i8* %13, i32 %15)
store i8* %16, i8** %4
%17 = load i8*, i8** %4
%18 = load i8*, i8** %5
%19 = load i32, i32* %6
%20 = ashr i32 %19, 8
%21 = call i8* @shex2(i8* %17, i8* %18, i32 %20)
store i8* %21, i8** %4
%22 = load i8*, i8** %4
%23 = load i8*, i8** %5
%24 = load i32, i32* %6
%25 = call i8* @shex2(i8* %22, i8* %23, i32 %24)
ret i8* %25
}

LLVM IR (-O2):
define i8* @shex8(i8* %0, i8* %1, i32 %2) {
%4 = ashr i32 %2, 24
%5 = tail call i8* @shex2(i8* %0, i8* %1, i32 %4)
%6 = ashr i32 %2, 16
%7 = tail call i8* @shex2(i8* %5, i8* %1, i32 %6)
%8 = ashr i32 %2, 8
%9 = tail call i8* @shex2(i8* %7, i8* %1, i32 %8)
%10 = tail call i8* @shex2(i8* %9, i8* %1, i32 %2)
ret i8* %10
}
int compare(p, q) const void *p, *q;
{ return (strcmp(*(char **)p, *(char **)q)); }


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

x86 assembly (clang, -O2):
<compare>:
mov    (%rdi),%rdi
mov    (%rsi),%rsi
jmp    1030 <strcmp@plt>

LLVM IR (-O0):
define i32 @compare(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 = bitcast i8* %5 to i8**
%7 = load i8*, i8** %6
%8 = load i8*, i8** %4
%9 = bitcast i8* %8 to i8**
%10 = load i8*, i8** %9
%11 = call i32 @strcmp(i8* %7, i8* %10)
ret i32 %11
}

LLVM IR (-O2):
define i32 @compare(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %0 to i8**
%4 = load i8*, i8** %3
%5 = bitcast i8* %1 to i8**
%6 = load i8*, i8** %5
%7 = tail call i32 @strcmp(i8* dereferenceable(1) %4, i8* dereferenceable(1) %6)
ret i32 %7
}
/* Variables and functions */
int /*<<< orphan*/ removeFileDesc(int);
int CloseFile(int fileDesc) {
  removeFileDesc(fileDesc);
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @CloseFile(i32 %0) {
%2 = tail call i32 @removeFileDesc(i32 %0)
ret i32 0
}
void **get_stack(int *size) { return 0; }


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

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

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

LLVM IR (-O2):
define noalias i8** @get_stack(i32* nocapture readnone %0) {
ret i8** null
}
/* Type definitions */
typedef int pid_t;

/* Variables and functions */
pid_t _getpid(void) { return 1; }


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

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

LLVM IR (-O0):
define i32 @_getpid() {
ret i32 1
}

LLVM IR (-O2):
define i32 @_getpid() {
ret i32 1
}
int ck_cc_popcount(unsigned int x) {
  unsigned int acc;
  for (acc = 0; x != 0; x >>= 1)
    acc += x & 1;
  return acc;
}


x86 assembly (clang, -O0):
<ck_cc_popcount>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     1132 <ck_cc_popcount+0x32>
mov    -0x4(%rbp),%eax
and    $0x1,%eax
add    -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%eax
shr    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    110e <ck_cc_popcount+0xe>
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ck_cc_popcount>:
xor    %eax,%eax
test   %edi,%edi
je     1120 <ck_cc_popcount+0x20>
mov    %edi,%ecx
nopl   0x0(%rax,%rax,1)
mov    %edi,%edx
and    $0x1,%edx
add    %edx,%eax
shr    %ecx
cmp    $0x1,%edi
mov    %ecx,%edi
ja     1110 <ck_cc_popcount+0x10>
ret

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

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


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

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

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

LLVM IR (-O2):
define void @ARGBMultiplyRow_Any_SSE2() {
ret void
}
f(double d) { f((double)d); }


x86 assembly (clang, -O0):
<f>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
call   1030 <f@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<f>:
jmp    1100 <f>

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

LLVM IR (-O2):
define i32 @f(double %0) {
br label %2
2: ; preds = %2, %1
br label %2
}
/* Variables and functions */
int /*<<< orphan*/ __exit(long);
void _exit(int status) { __exit((long)status); }


x86 assembly (clang, -O0):
<_exit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movslq -0x4(%rbp),%rdi
call   1030 <__exit@plt>

x86 assembly (clang, -O2):
<_exit>:
push   %rax
movslq %edi,%rdi
call   1030 <__exit@plt>

LLVM IR (-O0):
define void @_exit(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = sext i32 %3 to i64
%5 = call i32 @__exit(i64 %4)
unreachable
}

LLVM IR (-O2):
define void @_exit(i32 %0) {
%2 = sext i32 %0 to i64
%3 = tail call i32 @__exit(i64 %2)
unreachable
}
/* Type definitions */
struct mono_time {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ mono_time_add_usecs(struct mono_time *, long);
void mono_time_add_msecs(struct mono_time *mt, long ms) {
  mono_time_add_usecs(mt, ms * (1000000 / 1000));
}


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

x86 assembly (clang, -O2):
<mono_time_add_msecs>:
imul   $0x3e8,%rsi,%rsi
jmp    1030 <mono_time_add_usecs@plt>

LLVM IR (-O0):
%struct.mono_time = type { i32 }
define void @mono_time_add_msecs(%struct.mono_time* %0, i64 %1) {
%3 = alloca %struct.mono_time*
%4 = alloca i64
store %struct.mono_time* %0, %struct.mono_time** %3
store i64 %1, i64* %4
%5 = load %struct.mono_time*, %struct.mono_time** %3
%6 = load i64, i64* %4
%7 = mul nsw i64 %6, 1000
%8 = call i32 @mono_time_add_usecs(%struct.mono_time* %5, i64 %7)
ret void
}

LLVM IR (-O2):
%struct.mono_time = type { i32 }
define void @mono_time_add_msecs(%struct.mono_time* %0, i64 %1) {
%3 = mul nsw i64 %1, 1000
%4 = tail call i32 @mono_time_add_usecs(%struct.mono_time* %0, i64 %3)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *);
int /*<<< orphan*/ stderr;
void msg(const char *str) { (void)fprintf(stderr, "rlogin: %s\r\n", str); }


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

x86 assembly (clang, -O2):
<msg>:
mov    %rdi,%rdx
mov    0x2ec6(%rip),%rax
mov    (%rax),%edi
lea    0xedd(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [13 x i8] c"rlogin: %s\0D\0A\00"
define void @msg(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 ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* %4)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [13 x i8] c"rlogin: %s\0D\0A\00"
define void @msg(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
void oil_test_get_arg_post_n(void) {}


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

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

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

LLVM IR (-O2):
define void @oil_test_get_arg_post_n() {
ret void
}
/* Variables and functions */
int EXIT_FAILURE;
int EXIT_SUCCESS;
scalar_t__ parse_args(int, char *const *);
scalar_t__ query_if_list();
int main(int argc, char *const argv[]) {
  if (parse_args(argc, argv))
    return EXIT_FAILURE;
  if (query_if_list())
    return EXIT_FAILURE;
  return EXIT_SUCCESS;
}


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    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1030 <parse_args@plt>
cmp    $0x0,%rax
je     115d <main+0x3d>
mov    0x2e8d(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    118b <main+0x6b>
mov    $0x0,%al
call   1040 <query_if_list@plt>
cmp    $0x0,%rax
je     117f <main+0x5f>
mov    0x2e6b(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    118b <main+0x6b>
mov    0x2e52(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
call   1030 <parse_args@plt>
test   %rax,%rax
jne    1140 <main+0x20>
xor    %eax,%eax
call   1040 <query_if_list@plt>
test   %rax,%rax
jne    1140 <main+0x20>
mov    0x2e9a(%rip),%rax
jmp    1147 <main+0x27>
mov    0x2e99(%rip),%rax
mov    (%rax),%eax
pop    %rcx
ret

LLVM IR (-O0):
@EXIT_FAILURE = global i32 0
@EXIT_SUCCESS = global i32 0
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 = load i32, i32* %4
%7 = load i8**, i8*** %5
%8 = call i64 @parse_args(i32 %6, i8** %7)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = load i32, i32* @EXIT_FAILURE
store i32 %11, i32* %3
br label %19
12: ; preds = %2
%13 = call i64 (...) @query_if_list()
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = load i32, i32* @EXIT_FAILURE
store i32 %16, i32* %3
br label %19
17: ; preds = %12
%18 = load i32, i32* @EXIT_SUCCESS
store i32 %18, i32* %3
br label %19
19: ; preds = %17, %15, %10
%20 = load i32, i32* %3
ret i32 %20
}

LLVM IR (-O2):
@EXIT_FAILURE = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i64 @parse_args(i32 %0, i8** %1)
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %9
5: ; preds = %2
%6 = tail call i64 (...) @query_if_list()
%7 = icmp eq i64 %6, 0
%8 = select i1 %7, i32* @EXIT_SUCCESS, i32* @EXIT_FAILURE
br label %9
9: ; preds = %5, %2
%10 = phi i32* [ @EXIT_FAILURE, %2 ], [ %8, %5 ]
%11 = load i32, i32* %10
ret i32 %11
}
/* Type definitions */
typedef int /*<<< orphan*/ __m128i;

/* Variables and functions */
int /*<<< orphan*/ _mm_store_si128(int /*<<< orphan*/ *, int /*<<< orphan*/);
void test_mm_store_si128(__m128i *A, __m128i B) { _mm_store_si128(A, B); }


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

x86 assembly (clang, -O2):
<test_mm_store_si128>:
jmp    1030 <_mm_store_si128@plt>

LLVM IR (-O0):
define void @test_mm_store_si128(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 @_mm_store_si128(i32* %5, i32 %6)
ret void
}

LLVM IR (-O2):
define void @test_mm_store_si128(i32* %0, i32 %1) {
%3 = tail call i32 @_mm_store_si128(i32* %0, i32 %1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ serial_close(int /*<<< orphan*/);
void PIC16F1788_stop(void) {
  serial_close(0);
  ;
}


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

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

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

LLVM IR (-O2):
define void @PIC16F1788_stop() {
%1 = tail call i32 @serial_close(i32 0)
ret void
}
/* Variables and functions */
unsigned long xstrtoull(char const *, int);
__attribute__((always_)) unsigned long xstrtoul(const char *str, int b) {
  return xstrtoull(str, b);
}


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

x86 assembly (clang, -O2):
<xstrtoul>:
jmp    1030 <xstrtoull@plt>

LLVM IR (-O0):
define i64 @xstrtoul(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 i64 @xstrtoull(i8* %5, i32 %6)
ret i64 %7
}

LLVM IR (-O2):
define i64 @xstrtoul(i8* %0, i32 %1) {
%3 = tail call i64 @xstrtoull(i8* %0, i32 %1)
ret i64 %3
}
/* Variables and functions */
int /*<<< orphan*/ mp_msg(int, int /*<<< orphan*/, char *);
int draw_slice(unsigned char *src[], int stride[], int w, int h, int x, int y) {
  ((void)(src));
  ((void)(stride));
  ((void)(w));
  ((void)(h));
  ((void)(x));
  ((void)(y));
  mp_msg(3, 0, "xover error: didn't used sub vo draw_slice!\n");
  return 1;
}


x86 assembly (clang, -O0):
<draw_slice>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
mov    %r9d,-0x20(%rbp)
mov    $0x3,%edi
xor    %esi,%esi
lea    0xec4(%rip),%rdx
call   1030 <mp_msg@plt>
mov    $0x1,%eax
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [45 x i8] c"xover error: didn't used sub vo draw_slice!\0A\00"
define i32 @draw_slice(i8** %0, i32* %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = alloca i8**
%8 = alloca i32*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
store i8** %0, i8*** %7
store i32* %1, i32** %8
store i32 %2, i32* %9
store i32 %3, i32* %10
store i32 %4, i32* %11
store i32 %5, i32* %12
%13 = load i8**, i8*** %7
%14 = load i32*, i32** %8
%15 = load i32, i32* %9
%16 = load i32, i32* %10
%17 = load i32, i32* %11
%18 = load i32, i32* %12
%19 = call i32 @mp_msg(i32 3, i32 0, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0))
ret i32 1
}

LLVM IR (-O2):
@.str = [45 x i8] c"xover error: didn't used sub vo draw_slice!\0A\00"
define i32 @draw_slice(i8** nocapture readnone %0, i32* nocapture readnone %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = tail call i32 @mp_msg(i32 3, i32 0, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0))
ret i32 1
}
/* Type definitions */
typedef int /*<<< orphan*/ va_list;

/* Variables and functions */
int task_vfprint(int, char *, int /*<<< orphan*/);
int task_vprint(char *fmt, va_list arg) { return task_vfprint(1, fmt, arg); }


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

x86 assembly (clang, -O2):
<task_vprint>:
mov    %esi,%edx
mov    %rdi,%rsi
mov    $0x1,%edi
jmp    1030 <task_vfprint@plt>

LLVM IR (-O0):
define i32 @task_vprint(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 @task_vfprint(i32 1, i8* %5, i32 %6)
ret i32 %7
}

LLVM IR (-O2):
define i32 @task_vprint(i8* %0, i32 %1) {
%3 = tail call i32 @task_vfprint(i32 1, i8* %0, i32 %1)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isalnum(int);
void t_isalnum_0x20() {
  Assert_real((isalnum(32) == 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_isalnum.c",
              165, ("isalnum should be 0 for  "));
}


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

x86 assembly (clang, -O2):
<t_isalnum_0x20>:
push   %rax
mov    $0x20,%edi
call   1030 <isalnum@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0xa5,%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_isalnum.c\00"
@.str.1 = [26 x i8] c"isalnum should be 0 for \00"
define void @t_isalnum_0x20() {
%1 = call i64 @isalnum(i32 32)
%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 165, i8* getelementptr inbounds ([26 x i8], [26 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_isalnum.c\00"
@.str.1 = [26 x i8] c"isalnum should be 0 for \00"
define void @t_isalnum_0x20() {
%1 = tail call i64 @isalnum(i32 32)
%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 165, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ get_file(char *, int);
void retrieve_index(char *word) { get_file(word, 1); }


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

x86 assembly (clang, -O2):
<retrieve_index>:
mov    $0x1,%esi
jmp    1030 <get_file@plt>

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

LLVM IR (-O2):
define void @retrieve_index(i8* %0) {
%2 = tail call i32 @get_file(i8* %0, i32 1)
ret void
}
int open_tcpip_server(int port) {}


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

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

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

LLVM IR (-O2):
define i32 @open_tcpip_server(i32 %0) {
ret i32 undef
}
double paraboloide(int a, int b, float x, float y) {
  float resultado;
  resultado = ((x * x / a * a) - (y * y / b * b));
  return resultado;
}


x86 assembly (clang, -O0):
<paraboloide>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
movss  %xmm0,-0xc(%rbp)
movss  %xmm1,-0x10(%rbp)
movss  -0xc(%rbp),%xmm0
mulss  -0xc(%rbp),%xmm0
cvtsi2ssl -0x4(%rbp),%xmm1
divss  %xmm1,%xmm0
cvtsi2ssl -0x4(%rbp),%xmm2
movss  -0x10(%rbp),%xmm1
mulss  -0x10(%rbp),%xmm1
cvtsi2ssl -0x8(%rbp),%xmm3
divss  %xmm3,%xmm1
cvtsi2ssl -0x8(%rbp),%xmm3
mulss  %xmm3,%xmm1
movd   %xmm1,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<paraboloide>:
cvtsi2ss %edi,%xmm2
cvtsi2ss %esi,%xmm3
mulss  %xmm0,%xmm0
divss  %xmm2,%xmm0
mulss  %xmm1,%xmm1
divss  %xmm3,%xmm1
mulss  %xmm3,%xmm1
mulss  %xmm2,%xmm0
subss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
ret

LLVM IR (-O0):
define double @paraboloide(i32 %0, i32 %1, float %2, float %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca float
%8 = alloca float
%9 = alloca float
store i32 %0, i32* %5
store i32 %1, i32* %6
store float %2, float* %7
store float %3, float* %8
%10 = load float, float* %7
%11 = load float, float* %7
%12 = fmul float %10, %11
%13 = load i32, i32* %5
%14 = sitofp i32 %13 to float
%15 = fdiv float %12, %14
%16 = load i32, i32* %5
%17 = sitofp i32 %16 to float
%18 = load float, float* %8
%19 = load float, float* %8
%20 = fmul float %18, %19
%21 = load i32, i32* %6
%22 = sitofp i32 %21 to float
%23 = fdiv float %20, %22
%24 = load i32, i32* %6
%25 = sitofp i32 %24 to float
%26 = fmul float %23, %25
%27 = fneg float %26
%28 = call float @llvm.fmuladd.f32(float %15, float %17, float %27)
store float %28, float* %9
%29 = load float, float* %9
%30 = fpext float %29 to double
ret double %30
}

LLVM IR (-O2):
define double @paraboloide(i32 %0, i32 %1, float %2, float %3) {
%5 = fmul float %2, %2
%6 = sitofp i32 %0 to float
%7 = fdiv float %5, %6
%8 = sitofp i32 %1 to float
%9 = fneg float %3
%10 = fmul float %9, %3
%11 = fdiv float %10, %8
%12 = fmul float %11, %8
%13 = tail call float @llvm.fmuladd.f32(float %7, float %6, float %12)
%14 = fpext float %13 to double
ret double %14
}
/* Variables and functions */
int /*<<< orphan*/ assert(char *);
scalar_t__ malloc(size_t);
void *mb_malloc(size_t s) {
  char *ret = NULL;
  size_t rs = s;
  ret = (char *)malloc(rs);
  do {
    ((void)(ret));
    assert(ret);
  } while (0);
  return (void *)ret;
}


x86 assembly (clang, -O0):
<mb_malloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
movq   $0x0,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1040 <malloc@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <assert@plt>
mov    -0x10(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mb_malloc>:
push   %rbx
call   1040 <malloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
call   1030 <assert@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define i8* @mb_malloc(i64 %0) {
%2 = alloca i64
%3 = alloca i8*
%4 = alloca i64
store i64 %0, i64* %2
store i8* null, i8** %3
%5 = load i64, i64* %2
store i64 %5, i64* %4
%6 = load i64, i64* %4
%7 = call i64 @malloc(i64 %6)
%8 = inttoptr i64 %7 to i8*
store i8* %8, i8** %3
br label %9
9: ; preds = %1
%10 = load i8*, i8** %3
%11 = load i8*, i8** %3
%12 = call i32 @assert(i8* %11)
br label %13
13: ; preds = %9
%14 = load i8*, i8** %3
ret i8* %14
}

LLVM IR (-O2):
define i8* @mb_malloc(i64 %0) {
%2 = tail call i64 @malloc(i64 %0)
%3 = inttoptr i64 %2 to i8*
%4 = tail call i32 @assert(i8* %3)
ret i8* %3
}
int fun914() { return 914; }


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

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

LLVM IR (-O0):
define i32 @fun914() {
ret i32 914
}

LLVM IR (-O2):
define i32 @fun914() {
ret i32 914
}
int __lttf2(long double a __attribute__((unused)),
            long double b __attribute__((unused))) {
  return 0;
}


x86 assembly (clang, -O0):
<__lttf2>:
push   %rbp
mov    %rsp,%rbp
fldt   0x20(%rbp)
fldt   0x10(%rbp)
fstpt  -0x10(%rbp)
fstpt  -0x20(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @__lttf2(x86_fp80 %0, x86_fp80 %1) {
ret i32 0
}