xunge/DecIR huggingface dataset:
long long gll5(long long j, unsigned int *b, long long i) { return j + b[i]; }


x86 assembly (clang, -O0):
<gll5>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rcx
mov    -0x18(%rbp),%rdx
mov    (%rcx,%rdx,4),%ecx
add    %rcx,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<gll5>:
mov    (%rsi,%rdx,4),%eax
add    %rdi,%rax
ret

LLVM IR (-O0):
define i64 @gll5(i64 %0, i32* %1, i64 %2) {
%4 = alloca i64
%5 = alloca i32*
%6 = alloca i64
store i64 %0, i64* %4
store i32* %1, i32** %5
store i64 %2, i64* %6
%7 = load i64, i64* %4
%8 = load i32*, i32** %5
%9 = load i64, i64* %6
%10 = getelementptr inbounds i32, i32* %8, i64 %9
%11 = load i32, i32* %10
%12 = zext i32 %11 to i64
%13 = add nsw i64 %7, %12
ret i64 %13
}

LLVM IR (-O2):
define i64 @gll5(i64 %0, i32* nocapture %1, i64 %2) {
%4 = getelementptr inbounds i32, i32* %1, i64 %2
%5 = load i32, i32* %4
%6 = zext i32 %5 to i64
%7 = add nsw i64 %6, %0
ret i64 %7
}
/* Type definitions */
struct target_ops {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ noprocess();
void tdefault_kill(struct target_ops *self) { noprocess(); }


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

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

LLVM IR (-O0):
%struct.target_ops = type { i32 }
define void @tdefault_kill(%struct.target_ops* %0) {
%2 = alloca %struct.target_ops*
store %struct.target_ops* %0, %struct.target_ops** %2
%3 = call i32 (...) @noprocess()
ret void
}

LLVM IR (-O2):
%struct.target_ops = type { i32 }
define void @tdefault_kill(%struct.target_ops* nocapture readnone %0) {
%2 = tail call i32 (...) @noprocess()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ abort();
int foo(int);
int main() {
  if (foo(0) != 0 || foo(1) != 1)
    abort();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
xor    %edi,%edi
call   1040 <foo@plt>
cmp    $0x0,%eax
jne    1152 <main+0x32>
mov    $0x1,%edi
call   1040 <foo@plt>
cmp    $0x1,%eax
je     1159 <main+0x39>
mov    $0x0,%al
call   1030 <abort@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
call   1040 <foo@plt>
test   %eax,%eax
jne    113f <main+0x1f>
mov    $0x1,%edi
call   1040 <foo@plt>
cmp    $0x1,%eax
jne    113f <main+0x1f>
xor    %eax,%eax
pop    %rcx
ret
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @foo(i32 0)
%3 = icmp ne i32 %2, 0
br i1 %3, label %7, label %4
4: ; preds = %0
%5 = call i32 @foo(i32 1)
%6 = icmp ne i32 %5, 1
br i1 %6, label %7, label %9
7: ; preds = %4, %0
%8 = call i32 (...) @abort()
unreachable
9: ; preds = %4
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @foo(i32 0)
%2 = icmp eq i32 %1, 0
br i1 %2, label %3, label %6
3: ; preds = %0
%4 = tail call i32 @foo(i32 1)
%5 = icmp eq i32 %4, 1
br i1 %5, label %8, label %6
6: ; preds = %3, %0
%7 = tail call i32 (...) @abort()
unreachable
8: ; preds = %3
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ i_can_be_propagated_fully(int *);
int i_can_be_propagated_fully2(int *a) {
  i_can_be_propagated_fully(a);
  i_can_be_propagated_fully(a);
  i_can_be_propagated_fully(a);
}


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

x86 assembly (clang, -O2):
<i_can_be_propagated_fully2>:
push   %rbx
mov    %rdi,%rbx
call   1030 <i_can_be_propagated_fully@plt>
mov    %rbx,%rdi
call   1030 <i_can_be_propagated_fully@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <i_can_be_propagated_fully@plt>

LLVM IR (-O0):
define i32 @i_can_be_propagated_fully2(i32* %0) {
%2 = alloca i32
%3 = alloca i32*
store i32* %0, i32** %3
%4 = load i32*, i32** %3
%5 = call i32 @i_can_be_propagated_fully(i32* %4)
%6 = load i32*, i32** %3
%7 = call i32 @i_can_be_propagated_fully(i32* %6)
%8 = load i32*, i32** %3
%9 = call i32 @i_can_be_propagated_fully(i32* %8)
%10 = load i32, i32* %2
ret i32 %10
}

LLVM IR (-O2):
define i32 @i_can_be_propagated_fully2(i32* %0) {
%2 = tail call i32 @i_can_be_propagated_fully(i32* %0)
%3 = tail call i32 @i_can_be_propagated_fully(i32* %0)
%4 = tail call i32 @i_can_be_propagated_fully(i32* %0)
ret i32 undef
}
/* Variables and functions */
int __simc(int, int, int, int, int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ wmb();
int simc_ioctl(int fd, int request, void *arg) {
  wmb();
  return __simc(31, fd, request, (int)arg, 0, 0);
}


x86 assembly (clang, -O0):
<simc_ioctl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    $0x0,%al
call   1030 <wmb@plt>
mov    -0x4(%rbp),%esi
mov    -0x8(%rbp),%edx
mov    -0x10(%rbp),%rax
mov    %eax,%ecx
mov    $0x1f,%edi
xor    %r9d,%r9d
mov    %r9d,%r8d
call   1040 <__simc@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<simc_ioctl>:
push   %rbp
push   %r14
push   %rbx
mov    %rdx,%r14
mov    %esi,%ebp
mov    %edi,%ebx
xor    %eax,%eax
call   1030 <wmb@plt>
mov    $0x1f,%edi
mov    %ebx,%esi
mov    %ebp,%edx
mov    %r14d,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
pop    %rbx
pop    %r14
pop    %rbp
jmp    1040 <__simc@plt>

LLVM IR (-O0):
define i32 @simc_ioctl(i32 %0, i32 %1, i8* %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8*
store i32 %0, i32* %4
store i32 %1, i32* %5
store i8* %2, i8** %6
%7 = call i32 (...) @wmb()
%8 = load i32, i32* %4
%9 = load i32, i32* %5
%10 = load i8*, i8** %6
%11 = ptrtoint i8* %10 to i32
%12 = call i32 @__simc(i32 31, i32 %8, i32 %9, i32 %11, i32 0, i32 0)
ret i32 %12
}

LLVM IR (-O2):
define i32 @simc_ioctl(i32 %0, i32 %1, i8* %2) {
%4 = tail call i32 (...) @wmb()
%5 = ptrtoint i8* %2 to i64
%6 = trunc i64 %5 to i32
%7 = tail call i32 @__simc(i32 31, i32 %0, i32 %1, i32 %6, i32 0, i32 0)
ret i32 %7
}
/* Type definitions */
struct MSG {
  int dummy;
};

/* Variables and functions */
int api1(int, int);
int get_message(struct MSG *msg) { return api1(200, (int)msg); }


x86 assembly (clang, -O0):
<get_message>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %eax,%esi
mov    $0xc8,%edi
call   1030 <api1@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_message>:
mov    %rdi,%rsi
mov    $0xc8,%edi
jmp    1030 <api1@plt>

LLVM IR (-O0):
%struct.MSG = type { i32 }
define i32 @get_message(%struct.MSG* %0) {
%2 = alloca %struct.MSG*
store %struct.MSG* %0, %struct.MSG** %2
%3 = load %struct.MSG*, %struct.MSG** %2
%4 = ptrtoint %struct.MSG* %3 to i32
%5 = call i32 @api1(i32 200, i32 %4)
ret i32 %5
}

LLVM IR (-O2):
%struct.MSG = type { i32 }
define i32 @get_message(%struct.MSG* %0) {
%2 = ptrtoint %struct.MSG* %0 to i64
%3 = trunc i64 %2 to i32
%4 = tail call i32 @api1(i32 200, i32 %3)
ret i32 %4
}
int scale(int a, int b, int c) { return (a * b + c / 2) / c; }


x86 assembly (clang, -O0):
<scale>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    -0x4(%rbp),%eax
imul   -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x10(%rbp),%eax
add    %ecx,%eax
cltd
idivl  -0xc(%rbp)
pop    %rbp
ret

x86 assembly (clang, -O2):
<scale>:
mov    %edx,%ecx
imul   %esi,%edi
mov    %edx,%eax
shr    $0x1f,%eax
add    %edx,%eax
sar    %eax
add    %edi,%eax
cltd
idiv   %ecx
ret

LLVM IR (-O0):
define i32 @scale(i32 %0, i32 %1, i32 %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i32, i32* %4
%8 = load i32, i32* %5
%9 = mul nsw i32 %7, %8
%10 = load i32, i32* %6
%11 = sdiv i32 %10, 2
%12 = add nsw i32 %9, %11
%13 = load i32, i32* %6
%14 = sdiv i32 %12, %13
ret i32 %14
}

LLVM IR (-O2):
define i32 @scale(i32 %0, i32 %1, i32 %2) {
%4 = mul nsw i32 %1, %0
%5 = sdiv i32 %2, 2
%6 = add nsw i32 %5, %4
%7 = sdiv i32 %6, %2
ret i32 %7
}
const char *f_engine_name() { return "Open Surge Engine"; }


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

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

LLVM IR (-O0):
@.str = [18 x i8] c"Open Surge Engine\00"
define i8* @f_engine_name() {
ret i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [18 x i8] c"Open Surge Engine\00"
define i8* @f_engine_name() {
ret i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0)
}
int linearSearch(int *arr, int size, int key) {
  int i = 0;
  for (i = 0; arr[i] != key; i++)
    ;
  if (i == size)
    return -1;
  else
    return i + 1;
}


x86 assembly (clang, -O0):
<linearSearch>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %edx,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
cmp    -0x18(%rbp),%eax
je     1143 <linearSearch+0x43>
jmp    1135 <linearSearch+0x35>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    111c <linearSearch+0x1c>
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jne    115b <linearSearch+0x5b>
movl   $0xffffffff,-0x4(%rbp)
jmp    1164 <linearSearch+0x64>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<linearSearch>:
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %rcx,%rax
add    $0x1,%rcx
cmp    %edx,(%rdi,%rax,4)
jne    1110 <linearSearch+0x10>
add    $0x1,%esi
cmp    %ecx,%esi
mov    $0xffffffff,%eax
cmovne %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @linearSearch(i32* nocapture %0, i32 %1, i32 %2) {
br label %4
4: ; preds = %4, %3
%5 = phi i64 [ %9, %4 ], [ 0, %3 ]
%6 = getelementptr inbounds i32, i32* %0, i64 %5
%7 = load i32, i32* %6
%8 = icmp eq i32 %7, %2
%9 = add nuw i64 %5, 1
br i1 %8, label %10, label %4
10: ; preds = %4
%11 = trunc i64 %5 to i32
%12 = icmp eq i32 %11, %1
%13 = add nuw nsw i32 %11, 1
%14 = select i1 %12, i32 -1, i32 %13
ret i32 %14
}
/* Variables and functions */
scalar_t__ constant_time_eq(unsigned int, unsigned int);
unsigned char constant_time_eq_8(unsigned int a, unsigned int b) {
  return (unsigned char)(constant_time_eq(a, b));
}


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

x86 assembly (clang, -O2):
<constant_time_eq_8>:
push   %rax
call   1030 <constant_time_eq@plt>
pop    %rcx
ret

LLVM IR (-O0):
define zeroext i8 @constant_time_eq_8(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 i64 @constant_time_eq(i32 %5, i32 %6)
%8 = trunc i64 %7 to i8
ret i8 %8
}

LLVM IR (-O2):
define zeroext i8 @constant_time_eq_8(i32 %0, i32 %1) {
%3 = tail call i64 @constant_time_eq(i32 %0, i32 %1)
%4 = trunc i64 %3 to i8
ret i8 %4
}
long double __addtf3(long double a __attribute__((unused)),
                     long double b __attribute__((unused))) {
  return 0.0;
}


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

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

LLVM IR (-O0):
define x86_fp80 @__addtf3(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 x86_fp80 0xK00000000000000000000
}

LLVM IR (-O2):
define x86_fp80 @__addtf3(x86_fp80 %0, x86_fp80 %1) {
ret x86_fp80 0xK00000000000000000000
}
int vga_switcheroo_register_audio_client(
    struct pci_dev *pdev, const struct vga_switcheroo_client_ops *ops,
    struct pci_dev *vga_dev) {
  return 0;
}


x86 assembly (clang, -O0):
<vga_switcheroo_register_audio_client>:
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):
<vga_switcheroo_register_audio_client>:
xor    %eax,%eax
ret

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

LLVM IR (-O2):
%struct.vga_switcheroo_client_ops = type opaque
%struct.pci_dev = type opaque
define i32 @vga_switcheroo_register_audio_client(%struct.pci_dev* nocapture readnone %0, %struct.vga_switcheroo_client_ops* nocapture readnone %1, %struct.pci_dev* nocapture readnone %2) {
ret i32 0
}
void AYUVToUVRow_Any_NEON() {}


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

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

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

LLVM IR (-O2):
define void @AYUVToUVRow_Any_NEON() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char **argv) {
  if (argc == 1) {
    printf("Usage: <me> <gibberish>\n");
  } else {
    printf("argc = %d\n", argc);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x1,-0x8(%rbp)
jne    1143 <main+0x33>
lea    0xec9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1154 <main+0x44>
mov    -0x8(%rbp),%esi
lea    0xecc(%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
cmp    $0x1,%edi
jne    1134 <main+0x14>
lea    0xede(%rip),%rdi
call   1030 <puts@plt>
jmp    1144 <main+0x24>
mov    %edi,%esi
lea    0xec3(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [25 x i8] c"Usage: <me> <gibberish>\0A\00"
@.str.1 = [11 x i8] c"argc = %d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i32, i32* %4
%7 = icmp eq i32 %6, 1
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
br label %13
10: ; preds = %2
%11 = load i32, i32* %4
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 %11)
br label %13
13: ; preds = %10, %8
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [11 x i8] c"argc = %d\0A\00"
@str = [24 x i8] c"Usage: <me> <gibberish>\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = icmp eq i32 %0, 1
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str, i64 0, i64 0))
br label %8
6: ; preds = %2
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 %0)
br label %8
8: ; preds = %6, %4
ret i32 0
}
void SteamAPI_ISteamHTMLSurface_LoadURL(void *self) {
  xlogf("%s(self = %p)\n", __func__, self);
}


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

x86 assembly (clang, -O2):
<SteamAPI_ISteamHTMLSurface_LoadURL>:
mov    %rdi,%rdx
lea    0xee6(%rip),%rdi
lea    0xeee(%rip),%rsi
xor    %eax,%eax
jmp    1030 <xlogf@plt>

LLVM IR (-O0):
@.str = [15 x i8] c"%s(self = %p)\0A\00"
@__func__.SteamAPI_ISteamHTMLSurface_LoadURL = [35 x i8] c"SteamAPI_ISteamHTMLSurface_LoadURL\00"
define void @SteamAPI_ISteamHTMLSurface_LoadURL(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @xlogf to i32 (i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @__func__.SteamAPI_ISteamHTMLSurface_LoadURL, i64 0, i64 0), i8* %3)
ret void
}

LLVM IR (-O2):
@.str = [15 x i8] c"%s(self = %p)\0A\00"
@__func__.SteamAPI_ISteamHTMLSurface_LoadURL = [35 x i8] c"SteamAPI_ISteamHTMLSurface_LoadURL\00"
define void @SteamAPI_ISteamHTMLSurface_LoadURL(i8* %0) {
%2 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @xlogf to i32 (i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @__func__.SteamAPI_ISteamHTMLSurface_LoadURL, i64 0, i64 0), i8* %0)
ret void
}
unsigned xrop3_167_0_0(unsigned char s, unsigned char t) {
  unsigned D = 0x00ff;
  unsigned S = ((unsigned)s << 8) | s;
  unsigned T = ((unsigned)t << 8) | t;
  unsigned stk1;
  unsigned stk2;
  unsigned stk3;
  stk3 = S | T;
  stk2 = D & stk3;
  stk1 = T ^ stk2;
  stk1 = ~stk1;
  return stk1;
}


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

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

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

LLVM IR (-O2):
define i32 @xrop3_167_0_0(i8 zeroext %0, i8 zeroext %1) {
%3 = zext i8 %1 to i32
%4 = mul nuw nsw i32 %3, 257
%5 = or i8 %1, %0
%6 = zext i8 %5 to i32
%7 = xor i32 %4, %6
%8 = xor i32 %7, -1
ret i32 %8
}
/* Variables and functions */
unsigned long long __udivmoddi4(unsigned long long, unsigned long long,
                                int /*<<< orphan*/);
unsigned long long __udivdi3(unsigned long long u, unsigned long long v) {
  return __udivmoddi4(u, v, 0);
}


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

x86 assembly (clang, -O2):
<__udivdi3>:
xor    %edx,%edx
jmp    1030 <__udivmoddi4@plt>

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

LLVM IR (-O2):
define i64 @__udivdi3(i64 %0, i64 %1) {
%3 = tail call i64 @__udivmoddi4(i64 %0, i64 %1, i32 0)
ret i64 %3
}
/* Variables and functions */
char const *gnu_escapePath(char const *);
scalar_t__ prj_is_buildaction(char *);
int /*<<< orphan*/ prj_select_file(char const *);
const char *listContentFiles(const char *name) {
  prj_select_file(name);
  if (prj_is_buildaction("Content"))
    return gnu_escapePath(name);
  else
    return NULL;
}


x86 assembly (clang, -O0):
<listContentFiles>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <prj_select_file@plt>
lea    0xeb4(%rip),%rdi
call   1050 <prj_is_buildaction@plt>
cmp    $0x0,%rax
je     116d <listContentFiles+0x3d>
mov    -0x10(%rbp),%rdi
call   1030 <gnu_escapePath@plt>
mov    %rax,-0x8(%rbp)
jmp    1175 <listContentFiles+0x45>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<listContentFiles>:
push   %rbx
mov    %rdi,%rbx
call   1040 <prj_select_file@plt>
lea    0xec0(%rip),%rdi
call   1050 <prj_is_buildaction@plt>
test   %rax,%rax
je     1153 <listContentFiles+0x23>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <gnu_escapePath@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [8 x i8] c"Content\00"
define i8* @listContentFiles(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = call i32 @prj_select_file(i8* %4)
%6 = call i64 @prj_is_buildaction(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%7 = icmp ne i64 %6, 0
br i1 %7, label %8, label %11
8: ; preds = %1
%9 = load i8*, i8** %3
%10 = call i8* @gnu_escapePath(i8* %9)
store i8* %10, i8** %2
br label %12
11: ; preds = %1
store i8* null, i8** %2
br label %12
12: ; preds = %11, %8
%13 = load i8*, i8** %2
ret i8* %13
}

LLVM IR (-O2):
@.str = [8 x i8] c"Content\00"
define i8* @listContentFiles(i8* %0) {
%2 = tail call i32 @prj_select_file(i8* %0)
%3 = tail call i64 @prj_is_buildaction(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%4 = icmp eq i64 %3, 0
br i1 %4, label %7, label %5
5: ; preds = %1
%6 = tail call i8* @gnu_escapePath(i8* %0)
br label %7
7: ; preds = %1, %5
%8 = phi i8* [ %6, %5 ], [ null, %1 ]
ret i8* %8
}
void fa135(void) {
P0A:
  goto P0A;
  ({
    P01A:
      goto P01A;
      ({
        P012A:
          goto P012A;
          0;
      });
    P01B:
      goto P01B;
      ({
        P013A:
          goto P013A;
          0;
      });
    P01C:
      goto P01C;
      0;
  });
P0B:
  goto P0B;
  ({
    P02A:
      goto P02A;
      ({
        P024A:
          goto P024A;
          0;
      });
    p02B:
      goto p02B;
      goto a;
    a:
      ({
        P025A:
          goto P025A;
          0;
      });
    P02C:
      goto P02C;
      0;
  });
P0C:
  goto P0C;
  0;
P0D:
  goto P0D;
}


x86 assembly (clang, -O0):
<fa135>:
push   %rbp
mov    %rsp,%rbp
jmp    1104 <fa135+0x4>

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

LLVM IR (-O0):
define void @fa135() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
br label %7
7: ; preds = %7, %0
br label %7
8: ; No predecessors!
br label %9
9: ; preds = %9, %8
br label %9
10: ; No predecessors!
br label %11
11: ; preds = %11, %10
br label %11
12: ; preds = %12
br label %12
13: ; No predecessors!
br label %14
14: ; preds = %14, %13
br label %14
15: ; preds = %15
br label %15
16: ; preds = %16
br label %16
17: ; No predecessors!
br label %18
18: ; preds = %18, %17
br label %18
19: ; No predecessors!
br label %20
20: ; preds = %20, %19
br label %20
21: ; preds = %21
br label %21
22: ; No predecessors!
br label %23
23: ; preds = %23, %22
br label %23
24: ; preds = %24
br label %24
25: ; preds = %25
br label %25
26: ; preds = %26
br label %26
}

LLVM IR (-O2):
define void @fa135() {
br label %1
1: ; preds = %1, %0
br label %1
}
/* Type definitions */
typedef scalar_t__ clock_t;

/* Variables and functions */
double CLOCKS_PER_SEC;
scalar_t__ clock();
double sinh(double);
double stdDuration(double x, double *y) {
  clock_t start = clock();
  *y = sinh(x);
  clock_t stop = clock();
  return (double)(stop - start) / CLOCKS_PER_SEC * 1000;
}


x86 assembly (clang, -O0):
<stdDuration>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
mov    %rdi,-0x10(%rbp)
mov    $0x0,%al
call   1040 <clock@plt>
mov    %rax,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm0
call   1030 <sinh@plt>
mov    -0x10(%rbp),%rax
movsd  %xmm0,(%rax)
mov    $0x0,%al
call   1040 <clock@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
sub    -0x18(%rbp),%rax
cvtsi2sd %rax,%xmm0
mov    0x2e7b(%rip),%rax
divsd  (%rax),%xmm0
movsd  0xe87(%rip),%xmm1
mulsd  %xmm1,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<stdDuration>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
movsd  %xmm0,(%rsp)
xor    %eax,%eax
call   1040 <clock@plt>
mov    %rax,%rbx
movsd  (%rsp),%xmm0
call   1030 <sinh@plt>
movsd  %xmm0,(%r14)
xor    %eax,%eax
call   1040 <clock@plt>
sub    %rbx,%rax
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
mov    0x2e8a(%rip),%rax
divsd  (%rax),%xmm0
mulsd  0xe96(%rip),%xmm0
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@CLOCKS_PER_SEC = global double 0.000000e+00
define double @stdDuration(double %0, double* %1) {
%3 = alloca double
%4 = alloca double*
%5 = alloca i64
%6 = alloca i64
store double %0, double* %3
store double* %1, double** %4
%7 = call i64 (...) @clock()
store i64 %7, i64* %5
%8 = load double, double* %3
%9 = call double @sinh(double %8)
%10 = load double*, double** %4
store double %9, double* %10
%11 = call i64 (...) @clock()
store i64 %11, i64* %6
%12 = load i64, i64* %6
%13 = load i64, i64* %5
%14 = sub nsw i64 %12, %13
%15 = sitofp i64 %14 to double
%16 = load double, double* @CLOCKS_PER_SEC
%17 = fdiv double %15, %16
%18 = fmul double %17, 1.000000e+03
ret double %18
}

LLVM IR (-O2):
@CLOCKS_PER_SEC = global double 0.000000e+00
define double @stdDuration(double %0, double* nocapture writeonly %1) {
%3 = tail call i64 (...) @clock()
%4 = tail call double @sinh(double %0)
store double %4, double* %1
%5 = tail call i64 (...) @clock()
%6 = sub nsw i64 %5, %3
%7 = sitofp i64 %6 to double
%8 = load double, double* @CLOCKS_PER_SEC
%9 = fdiv double %7, %8
%10 = fmul double %9, 1.000000e+03
ret double %10
}
/* Variables and functions */
long strtol(char const *, char **, int);
long atol(const char *p) { return (strtol(p, (char **)NULL, 10)); }


x86 assembly (clang, -O0):
<atol>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xa,%edx
call   1030 <strtol@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<atol>:
xor    %esi,%esi
mov    $0xa,%edx
jmp    1030 <strtol@plt>

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

LLVM IR (-O2):
define i64 @atol(i8* nocapture %0) {
%2 = tail call i64 @strtol(i8* nocapture %0, i8** null, i32 10)
ret i64 %2
}
/* Variables and functions */
scalar_t__ COND_EQ();
int /*<<< orphan*/ EA_AY_DI_8();
int /*<<< orphan*/ m68ki_write_8(int /*<<< orphan*/, int);
void m68k_op_seq_8_di(void) {
  m68ki_write_8(EA_AY_DI_8(), COND_EQ() ? 0xff : 0);
}


x86 assembly (clang, -O0):
<m68k_op_seq_8_di>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <EA_AY_DI_8@plt>
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1040 <COND_EQ@plt>
mov    -0x4(%rbp),%edi
mov    %rax,%rcx
xor    %esi,%esi
mov    $0xff,%eax
cmp    $0x0,%rcx
cmovne %eax,%esi
call   1050 <m68ki_write_8@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<m68k_op_seq_8_di>:
push   %rbp
push   %rbx
push   %rax
xor    %ebp,%ebp
xor    %eax,%eax
call   1030 <EA_AY_DI_8@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1040 <COND_EQ@plt>
test   %rax,%rax
mov    $0xff,%esi
cmove  %ebp,%esi
mov    %ebx,%edi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1050 <m68ki_write_8@plt>

LLVM IR (-O0):
define void @m68k_op_seq_8_di() {
%1 = call i32 (...) @EA_AY_DI_8()
%2 = call i64 (...) @COND_EQ()
%3 = icmp ne i64 %2, 0
%4 = zext i1 %3 to i64
%5 = select i1 %3, i32 255, i32 0
%6 = call i32 @m68ki_write_8(i32 %1, i32 %5)
ret void
}

LLVM IR (-O2):
define void @m68k_op_seq_8_di() {
%1 = tail call i32 (...) @EA_AY_DI_8()
%2 = tail call i64 (...) @COND_EQ()
%3 = icmp eq i64 %2, 0
%4 = select i1 %3, i32 0, i32 255
%5 = tail call i32 @m68ki_write_8(i32 %1, i32 %4)
ret void
}
/* Variables and functions */
unsigned char *copro_mem_reset(int);
int /*<<< orphan*/ copy_test_programs(unsigned char *);
unsigned char *copro_65tube_poweron_reset(void) {
  unsigned char *mpu_memory;
  mpu_memory = copro_mem_reset(0xF800);
  copy_test_programs(mpu_memory);
  return mpu_memory;
}


x86 assembly (clang, -O0):
<copro_65tube_poweron_reset>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0xf800,%edi
call   1040 <copro_mem_reset@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <copy_test_programs@plt>
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<copro_65tube_poweron_reset>:
push   %rbx
mov    $0xf800,%edi
call   1040 <copro_mem_reset@plt>
mov    %rax,%rbx
mov    %rax,%rdi
call   1030 <copy_test_programs@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define i8* @copro_65tube_poweron_reset() {
%1 = alloca i8*
%2 = call i8* @copro_mem_reset(i32 63488)
store i8* %2, i8** %1
%3 = load i8*, i8** %1
%4 = call i32 @copy_test_programs(i8* %3)
%5 = load i8*, i8** %1
ret i8* %5
}

LLVM IR (-O2):
define i8* @copro_65tube_poweron_reset() {
%1 = tail call i8* @copro_mem_reset(i32 63488)
%2 = tail call i32 @copy_test_programs(i8* %1)
ret i8* %1
}
/* Variables and functions */
int /*<<< orphan*/ assert(int);
int evaluate_postfix(char *);
void test_subtraction() { assert(evaluate_postfix("2 3 -") == -1); }


x86 assembly (clang, -O0):
<test_subtraction>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <evaluate_postfix@plt>
cmp    $0xffffffff,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_subtraction>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <evaluate_postfix@plt>
xor    %edi,%edi
cmp    $0xffffffff,%eax
sete   %dil
pop    %rax
jmp    1040 <assert@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"2 3 -\00"
define void @test_subtraction() {
%1 = call i32 @evaluate_postfix(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%2 = icmp eq i32 %1, -1
%3 = zext i1 %2 to i32
%4 = call i32 @assert(i32 %3)
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"2 3 -\00"
define void @test_subtraction() {
%1 = tail call i32 @evaluate_postfix(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%2 = icmp eq i32 %1, -1
%3 = zext i1 %2 to i32
%4 = tail call i32 @assert(i32 %3)
ret void
}
char *RCSid() {
  return RCSid("$Id: graphics.c,v 1.379.2.24 2013/10/01 03:00:06 sfeam Exp $");
}


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

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

LLVM IR (-O0):
@.str = [61 x i8] c"$Id: graphics.c,v 1.379.2.24 2013/10/01 03:00:06 sfeam Exp $\00"
define i8* @RCSid() {
%1 = call i8* (i8*, ...) bitcast (i8* ()* @RCSid to i8* (i8*, ...)*)(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str, i64 0, i64 0))
ret i8* %1
}

LLVM IR (-O2):
define noalias i8* @RCSid() {
br label %1
1: ; preds = %1, %0
br label %1
}
/* Variables and functions */
int /*<<< orphan*/ __rcu_read_unlock_bh();
void rcu_read_unlock_bh(void) {
  do {
  } while (0);
  (void)0;
  __rcu_read_unlock_bh();
}


x86 assembly (clang, -O0):
<rcu_read_unlock_bh>:
push   %rbp
mov    %rsp,%rbp
jmp    1119 <rcu_read_unlock_bh+0x9>
jmp    111e <rcu_read_unlock_bh+0xe>
mov    $0x0,%al
call   1030 <__rcu_read_unlock_bh@plt>
pop    %rbp
ret

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

LLVM IR (-O0):
define void @rcu_read_unlock_bh() {
br label %1
1: ; preds = %0
br label %2
2: ; preds = %1
%3 = call i32 (...) @__rcu_read_unlock_bh()
ret void
}

LLVM IR (-O2):
define void @rcu_read_unlock_bh() {
%1 = tail call i32 (...) @__rcu_read_unlock_bh()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int kafka_show_help() {
  printf("--engine-opt=hostname[;topic]\n"
         "hostlist   : Hostname for kafka broke\n"
         "topic      : kafka topic\n");
  return 0;
}


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

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

LLVM IR (-O0):
@.str = [94 x i8] c"--engine-opt=hostname[;topic]\0Ahostlist : Hostname for kafka broke\0Atopic : kafka topic\0A\00"
define i32 @kafka_show_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [93 x i8] c"--engine-opt=hostname[;topic]\0Ahostlist : Hostname for kafka broke\0Atopic : kafka topic\00"
define i32 @kafka_show_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([93 x i8], [93 x i8]* @str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int SerialAPI_request(unsigned char *, int);
int ZW_GetControllerCapability() {
  unsigned char buf[255];
  buf[0] = 0x00;
  buf[1] = 0x5;
  return SerialAPI_request(buf, 2);
}


x86 assembly (clang, -O0):
<ZW_GetControllerCapability>:
push   %rbp
mov    %rsp,%rbp
sub    $0x100,%rsp
movb   $0x0,-0x100(%rbp)
movb   $0x5,-0xff(%rbp)
lea    -0x100(%rbp),%rdi
mov    $0x2,%esi
call   1030 <SerialAPI_request@plt>
add    $0x100,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ZW_GetControllerCapability>:
sub    $0x108,%rsp
movw   $0x500,(%rsp)
mov    %rsp,%rdi
mov    $0x2,%esi
call   1030 <SerialAPI_request@plt>
add    $0x108,%rsp
ret

LLVM IR (-O0):
define i32 @ZW_GetControllerCapability() {
%1 = alloca [255 x i8]
%2 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
store i8 0, i8* %2
%3 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 1
store i8 5, i8* %3
%4 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%5 = call i32 @SerialAPI_request(i8* %4, i32 2)
ret i32 %5
}

LLVM IR (-O2):
define i32 @ZW_GetControllerCapability() {
%1 = alloca [255 x i8]
%2 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
store i8 0, i8* %2
%3 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 1
store i8 5, i8* %3
%4 = call i32 @SerialAPI_request(i8* %2, i32 2)
ret i32 %4
}
void ff_hevc_put_hevc_bi_qpel_h4_10_sse4() {}


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

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

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

LLVM IR (-O2):
define void @ff_hevc_put_hevc_bi_qpel_h4_10_sse4() {
ret void
}
/* Variables and functions */
size_t strlen(char *);
int /*<<< orphan*/ strncat(char *, char *, size_t);
int strndcat(char *dest, char *src, size_t *left) {
  size_t ss = strlen(src);
  if (ss > ((*left) - 1))
    ss = ((*left) - 1);
  strncat(dest, src, ss);
  *left -= ss;
  return 0;
}


x86 assembly (clang, -O0):
<strndcat>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
mov    -0x18(%rbp),%rcx
mov    (%rcx),%rcx
sub    $0x1,%rcx
cmp    %rcx,%rax
jbe    1168 <strndcat+0x48>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
sub    $0x1,%rax
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x20(%rbp),%rdx
call   1040 <strncat@plt>
mov    -0x20(%rbp),%rdx
mov    -0x18(%rbp),%rax
mov    (%rax),%rcx
sub    %rdx,%rcx
mov    %rcx,(%rax)
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<strndcat>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rdx,%r14
mov    %rsi,%r12
mov    %rdi,%r15
mov    %rsi,%rdi
call   1030 <strlen@plt>
mov    (%r14),%rbx
add    $0xffffffffffffffff,%rbx
cmp    %rbx,%rax
cmovbe %rax,%rbx
mov    %r15,%rdi
mov    %r12,%rsi
mov    %rbx,%rdx
call   1040 <strncat@plt>
sub    %rbx,(%r14)
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i32 @strndcat(i8* %0, i8* %1, i64* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i64*
%7 = alloca i64
store i8* %0, i8** %4
store i8* %1, i8** %5
store i64* %2, i64** %6
%8 = load i8*, i8** %5
%9 = call i64 @strlen(i8* %8)
store i64 %9, i64* %7
%10 = load i64, i64* %7
%11 = load i64*, i64** %6
%12 = load i64, i64* %11
%13 = sub i64 %12, 1
%14 = icmp ugt i64 %10, %13
br i1 %14, label %15, label %19
15: ; preds = %3
%16 = load i64*, i64** %6
%17 = load i64, i64* %16
%18 = sub i64 %17, 1
store i64 %18, i64* %7
br label %19
19: ; preds = %15, %3
%20 = load i8*, i8** %4
%21 = load i8*, i8** %5
%22 = load i64, i64* %7
%23 = call i32 @strncat(i8* %20, i8* %21, i64 %22)
%24 = load i64, i64* %7
%25 = load i64*, i64** %6
%26 = load i64, i64* %25
%27 = sub i64 %26, %24
store i64 %27, i64* %25
ret i32 0
}

LLVM IR (-O2):
define i32 @strndcat(i8* %0, i8* %1, i64* nocapture %2) {
%4 = tail call i64 @strlen(i8* dereferenceable(1) %1)
%5 = load i64, i64* %2
%6 = add i64 %5, -1
%7 = icmp ugt i64 %4, %6
%8 = select i1 %7, i64 %6, i64 %4
%9 = tail call i32 @strncat(i8* %0, i8* %1, i64 %8)
%10 = load i64, i64* %2
%11 = sub i64 %10, %8
store i64 %11, i64* %2
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char const *);
void printcb(void *handle, const char str[]) { printf("%s", str); }


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

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

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

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
define void @printcb(i8* nocapture readnone %0, i8* %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %1)
ret void
}
unsigned long long int
unsignedlonglongint_ignoring_unsignedlongint(unsigned long long int x,
                                             unsigned long int y) {
  return x;
}


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

x86 assembly (clang, -O2):
<unsignedlonglongint_ignoring_unsignedlongint>:
mov    %rdi,%rax
ret

LLVM IR (-O0):
define i64 @unsignedlonglongint_ignoring_unsignedlongint(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%5 = load i64, i64* %3
ret i64 %5
}

LLVM IR (-O2):
define i64 @unsignedlonglongint_ignoring_unsignedlongint(i64 returned %0, i64 %1) {
ret i64 %0
}
unsigned short RdFwVr(void) {
  unsigned short UsVerVal;
  UsVerVal = (unsigned short)((0x06 << 8) | 0x03);
  return (UsVerVal);
}


x86 assembly (clang, -O0):
<RdFwVr>:
push   %rbp
mov    %rsp,%rbp
movw   $0x603,-0x2(%rbp)
movzwl -0x2(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<RdFwVr>:
mov    $0x603,%ax
ret

LLVM IR (-O0):
define zeroext i16 @RdFwVr() {
%1 = alloca i16
store i16 1539, i16* %1
%2 = load i16, i16* %1
ret i16 %2
}

LLVM IR (-O2):
define zeroext i16 @RdFwVr() {
ret i16 1539
}
float nsvg__clampf(float a, float mn, float mx) {
  return a < mn ? mn : (a > mx ? mx : a);
}


x86 assembly (clang, -O0):
<nsvg__clampf>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  -0x4(%rbp),%xmm1
movss  -0x8(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    1135 <nsvg__clampf+0x35>
movss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x10(%rbp)
jmp    1167 <nsvg__clampf+0x67>
movss  -0x4(%rbp),%xmm0
ucomiss -0xc(%rbp),%xmm0
jbe    1153 <nsvg__clampf+0x53>
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
jmp    115d <nsvg__clampf+0x5d>
movss  -0x4(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0x10(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<nsvg__clampf>:
minss  %xmm0,%xmm2
cmpltss %xmm1,%xmm0
movaps %xmm0,%xmm3
andnps %xmm2,%xmm3
andps  %xmm1,%xmm0
orps   %xmm3,%xmm0
ret

LLVM IR (-O0):
define float @nsvg__clampf(float %0, float %1, float %2) {
%4 = alloca float
%5 = alloca float
%6 = alloca float
store float %0, float* %4
store float %1, float* %5
store float %2, float* %6
%7 = load float, float* %4
%8 = load float, float* %5
%9 = fcmp olt float %7, %8
br i1 %9, label %10, label %12
10: ; preds = %3
%11 = load float, float* %5
br label %22
12: ; preds = %3
%13 = load float, float* %4
%14 = load float, float* %6
%15 = fcmp ogt float %13, %14
br i1 %15, label %16, label %18
16: ; preds = %12
%17 = load float, float* %6
br label %20
18: ; preds = %12
%19 = load float, float* %4
br label %20
20: ; preds = %18, %16
%21 = phi float [ %17, %16 ], [ %19, %18 ]
br label %22
22: ; preds = %20, %10
%23 = phi float [ %11, %10 ], [ %21, %20 ]
ret float %23
}

LLVM IR (-O2):
define float @nsvg__clampf(float %0, float %1, float %2) {
%4 = fcmp olt float %0, %1
%5 = fcmp ogt float %0, %2
%6 = select i1 %5, float %2, float %0
%7 = select i1 %4, float %1, float %6
ret float %7
}
/* Variables and functions */
int /*<<< orphan*/ callee3();
int /*<<< orphan*/ scc1();
void scc3() {
  scc1();
  callee3();
}


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

x86 assembly (clang, -O2):
<scc3>:
push   %rax
xor    %eax,%eax
call   1040 <scc1@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <callee3@plt>

LLVM IR (-O0):
define void @scc3() {
%1 = call i32 (...) @scc1()
%2 = call i32 (...) @callee3()
ret void
}

LLVM IR (-O2):
define void @scc3() {
%1 = tail call i32 (...) @scc1()
%2 = tail call i32 (...) @callee3()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ db(int);
void aad() {
  db(0xD5);
  db(0x0A);
}


x86 assembly (clang, -O0):
<aad>:
push   %rbp
mov    %rsp,%rbp
mov    $0xd5,%edi
call   1030 <db@plt>
mov    $0xa,%edi
call   1030 <db@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<aad>:
push   %rax
mov    $0xd5,%edi
call   1030 <db@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <db@plt>

LLVM IR (-O0):
define void @aad() {
%1 = call i32 @db(i32 213)
%2 = call i32 @db(i32 10)
ret void
}

LLVM IR (-O2):
define void @aad() {
%1 = tail call i32 @db(i32 213)
%2 = tail call i32 @db(i32 10)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
void show_version(void) { printf("exfatprogs version : %s\n", "1.1.2"); }


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

x86 assembly (clang, -O2):
<show_version>:
lea    0xee9(%rip),%rdi
lea    0xefb(%rip),%rsi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [25 x i8] c"exfatprogs version : %s\0A\00"
@.str.1 = [6 x i8] c"1.1.2\00"
define void @show_version() {
%1 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [25 x i8] c"exfatprogs version : %s\0A\00"
@.str.1 = [6 x i8] c"1.1.2\00"
define void @show_version() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
ret void
}
int ishexdigit(unsigned char ch) {
  if (((ch >= '0') && (ch <= '9')) || ((ch >= 'a') && (ch <= 'f')) ||
      ((ch >= 'A') && (ch <= 'F')))
    return 0x1;
  else
    return 0x0;
}


x86 assembly (clang, -O0):
<ishexdigit>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x5(%rbp)
movzbl -0x5(%rbp),%eax
cmp    $0x30,%eax
jl     1124 <ishexdigit+0x24>
movzbl -0x5(%rbp),%eax
cmp    $0x39,%eax
jle    1158 <ishexdigit+0x58>
movzbl -0x5(%rbp),%eax
cmp    $0x61,%eax
jl     113e <ishexdigit+0x3e>
movzbl -0x5(%rbp),%eax
cmp    $0x66,%eax
jle    1158 <ishexdigit+0x58>
movzbl -0x5(%rbp),%eax
cmp    $0x41,%eax
jl     1164 <ishexdigit+0x64>
movzbl -0x5(%rbp),%eax
cmp    $0x46,%eax
jg     1164 <ishexdigit+0x64>
movl   $0x1,-0x4(%rbp)
jmp    116b <ishexdigit+0x6b>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @ishexdigit(i8 zeroext %0) {
%2 = add i8 %0, -48
%3 = icmp ult i8 %2, 10
%4 = and i8 %0, -33
%5 = add i8 %4, -65
%6 = icmp ult i8 %5, 6
%7 = or i1 %3, %6
%8 = zext i1 %7 to i32
ret i32 %8
}
int arch_init(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @arch_init() {
ret i32 0
}