xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ op_write1(int);
void op_enc_dec_e(void) { op_write1(0x1d); }


x86 assembly (clang, -O0):
<op_enc_dec_e>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1d,%edi
call   1030 <op_write1@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<op_enc_dec_e>:
mov    $0x1d,%edi
jmp    1030 <op_write1@plt>

LLVM IR (-O0):
define void @op_enc_dec_e() {
%1 = call i32 @op_write1(i32 29)
ret void
}

LLVM IR (-O2):
define void @op_enc_dec_e() {
%1 = tail call i32 @op_write1(i32 29)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main(void) {
  printf("MBEDTLS_BIGNUM_C and/or MBEDTLS_ENTROPY_C and/or "
         "MBEDTLS_SSL_TLS_C and/or MBEDTLS_SSL_CLI_C and/or "
         "MBEDTLS_NET_C and/or MBEDTLS_RSA_C and/or "
         "MBEDTLS_CTR_DRBG_C and/or MBEDTLS_X509_CRT_PARSE_C "
         "not defined.\n");
  return (0);
}


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

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

LLVM IR (-O0):
@.str = [206 x i8] c"MBEDTLS_BIGNUM_C and/or MBEDTLS_ENTROPY_C and/or MBEDTLS_SSL_TLS_C and/or MBEDTLS_SSL_CLI_C and/or MBEDTLS_NET_C and/or MBEDTLS_RSA_C and/or MBEDTLS_CTR_DRBG_C and/or MBEDTLS_X509_CRT_PARSE_C not defined.\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([206 x i8], [206 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [205 x i8] c"MBEDTLS_BIGNUM_C and/or MBEDTLS_ENTROPY_C and/or MBEDTLS_SSL_TLS_C and/or MBEDTLS_SSL_CLI_C and/or MBEDTLS_NET_C and/or MBEDTLS_RSA_C and/or MBEDTLS_CTR_DRBG_C and/or MBEDTLS_X509_CRT_PARSE_C not defined.\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([205 x i8], [205 x i8]* @str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ sched_yield();
void *thread(void *ignored) {
  while (1)
    sched_yield();
  return NULL;
}


x86 assembly (clang, -O0):
<thread>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x0,%al
call   1030 <sched_yield@plt>
jmp    111c <thread+0xc>

x86 assembly (clang, -O2):
<thread>:
push   %rax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1030 <sched_yield@plt>
jmp    1120 <thread+0x10>

LLVM IR (-O0):
define i8* @thread(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
br label %3
3: ; preds = %1, %3
%4 = call i32 (...) @sched_yield()
br label %3
}

LLVM IR (-O2):
define noalias i8* @thread(i8* nocapture readnone %0) {
br label %2
2: ; preds = %1, %2
%3 = tail call i32 (...) @sched_yield()
br label %2
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
typedef int /*<<< orphan*/ uint32_t;
typedef int /*<<< orphan*/ uint16_t;

/* Variables and functions */
int /*<<< orphan*/ fd_binary_unpack_uint16(int /*<<< orphan*/ *);
int /*<<< orphan*/ fd_nrf8001_hardware_error_event(int /*<<< orphan*/, char *);
void fd_nrf8001_decode_hardware_error_event(uint8_t *buffer, uint32_t length
                                            __attribute__((unused))) {
  uint16_t line = fd_binary_unpack_uint16(&buffer[1]);
  char *filename = (char *)&buffer[3];
  fd_nrf8001_hardware_error_event(line, filename);
}


x86 assembly (clang, -O0):
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
add    $0x4,%rdi
call   1030 <fd_binary_unpack_uint16@plt>
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
add    $0xc,%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%edi
mov    -0x18(%rbp),%rsi
call   1040 <fd_nrf8001_hardware_error_event@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
push   %rbx
mov    %rdi,%rbx
add    $0x4,%rdi
call   1030 <fd_binary_unpack_uint16@plt>
add    $0xc,%rbx
mov    %eax,%edi
mov    %rbx,%rsi
pop    %rbx
jmp    1040 <fd_nrf8001_hardware_error_event@plt>

LLVM IR (-O0):
define void @fd_nrf8001_decode_hardware_error_event(i32* %0, i32 %1) {
%3 = alloca i32*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8*
store i32* %0, i32** %3
store i32 %1, i32* %4
%7 = load i32*, i32** %3
%8 = getelementptr inbounds i32, i32* %7, i64 1
%9 = call i32 @fd_binary_unpack_uint16(i32* %8)
store i32 %9, i32* %5
%10 = load i32*, i32** %3
%11 = getelementptr inbounds i32, i32* %10, i64 3
%12 = bitcast i32* %11 to i8*
store i8* %12, i8** %6
%13 = load i32, i32* %5
%14 = load i8*, i8** %6
%15 = call i32 @fd_nrf8001_hardware_error_event(i32 %13, i8* %14)
ret void
}

LLVM IR (-O2):
define void @fd_nrf8001_decode_hardware_error_event(i32* %0, i32 %1) {
%3 = getelementptr inbounds i32, i32* %0, i64 1
%4 = tail call i32 @fd_binary_unpack_uint16(i32* %3)
%5 = getelementptr inbounds i32, i32* %0, i64 3
%6 = bitcast i32* %5 to i8*
%7 = tail call i32 @fd_nrf8001_hardware_error_event(i32 %4, i8* %6)
ret void
}
call6g(uc, us, ui, ul) unsigned char uc;
unsigned short us;
unsigned int ui;
unsigned long ul;
{
  uc = uc;
  call6h(us, ui, ul);
}


x86 assembly (clang, -O0):
<call6g>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %esi,%eax
mov    %dil,%sil
mov    %sil,-0x5(%rbp)
mov    %ax,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %rcx,-0x18(%rbp)
mov    -0x5(%rbp),%al
mov    %al,-0x5(%rbp)
movzwl -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x18(%rbp),%rdx
mov    $0x0,%al
call   1030 <call6h@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<call6g>:
movzwl %si,%edi
mov    %edx,%esi
mov    %rcx,%rdx
xor    %eax,%eax
jmp    1030 <call6h@plt>

LLVM IR (-O0):
define i32 @call6g(i32 %0, i32 %1, i32 %2, i64 %3) {
%5 = alloca i32
%6 = alloca i8
%7 = alloca i16
%8 = alloca i32
%9 = alloca i64
%10 = trunc i32 %0 to i8
%11 = trunc i32 %1 to i16
store i8 %10, i8* %6
store i16 %11, i16* %7
store i32 %2, i32* %8
store i64 %3, i64* %9
%12 = load i8, i8* %6
store i8 %12, i8* %6
%13 = load i16, i16* %7
%14 = zext i16 %13 to i32
%15 = load i32, i32* %8
%16 = load i64, i64* %9
%17 = call i32 (i32, i32, i64, ...) bitcast (i32 (...)* @call6h to i32 (i32, i32, i64, ...)*)(i32 %14, i32 %15, i64 %16)
%18 = load i32, i32* %5
ret i32 %18
}

LLVM IR (-O2):
define i32 @call6g(i32 %0, i32 %1, i32 %2, i64 %3) {
%5 = and i32 %1, 65535
%6 = tail call i32 (i32, i32, i64, ...) bitcast (i32 (...)* @call6h to i32 (i32, i32, i64, ...)*)(i32 %5, i32 %2, i64 %3)
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ error(char *);
void usage() {
  error("usage: tm [-n] [-b] [-v|-vv] <tm-file>\n"
        "\n"
        "-n   don't read input string\n"
        "-b   encode input and output strings in base 2\n"
        "-v   show progress occasionally\n"
        "-vv  show each step\n");
}


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

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

LLVM IR (-O0):
@.str = [169 x i8] c"usage: tm [-n] [-b] [-v|-vv] <tm-file>\0A\0A-n don't read input string\0A-b encode input and output strings in base 2\0A-v show progress occasionally\0A-vv show each step\0A\00"
define void @usage() {
%1 = call i32 @error(i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [169 x i8] c"usage: tm [-n] [-b] [-v|-vv] <tm-file>\0A\0A-n don't read input string\0A-b encode input and output strings in base 2\0A-v show progress occasionally\0A-vv show each step\0A\00"
define void @usage() {
%1 = tail call i32 @error(i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0))
ret void
}
char symbol(int i) { return 'A' + i; }


x86 assembly (clang, -O0):
<symbol>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x41,%eax
movsbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<symbol>:
lea    0x41(%rdi),%eax
ret

LLVM IR (-O0):
define signext i8 @symbol(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = add nsw i32 65, %3
%5 = trunc i32 %4 to i8
ret i8 %5
}

LLVM IR (-O2):
define signext i8 @symbol(i32 %0) {
%2 = trunc i32 %0 to i8
%3 = add i8 %2, 65
ret i8 %3
}
/* Variables and functions */
int EOF;
int getchar();
int /*<<< orphan*/ putchar(int);
int main() {
  int c, last;
  last = '0';
  while ((c = getchar()) != EOF) {
    if (c == ' ' && last == ' ') {
      last = c;
      continue;
    }
    putchar(c);
    last = c;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x30,-0xc(%rbp)
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %eax,-0x8(%rbp)
mov    0x2ea1(%rip),%rcx
cmp    (%rcx),%eax
je     1181 <main+0x61>
cmpl   $0x20,-0x8(%rbp)
jne    116e <main+0x4e>
cmpl   $0x20,-0xc(%rbp)
jne    116e <main+0x4e>
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
jmp    1136 <main+0x16>
mov    -0x8(%rbp),%edi
call   1030 <putchar@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
jmp    1136 <main+0x16>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
xor    %eax,%eax
call   1040 <getchar@plt>
mov    0x2eb6(%rip),%r14
cmp    (%r14),%eax
jne    1141 <main+0x21>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
mov    $0x30,%ebx
jmp    1163 <main+0x43>
nopl   0x0(%rax,%rax,1)
mov    %ebx,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
call   1040 <getchar@plt>
cmp    (%r14),%eax
je     1137 <main+0x17>
mov    %ebx,%ecx
mov    %eax,%ebx
cmp    $0x20,%ecx
jne    1150 <main+0x30>
cmp    $0x20,%ebx
je     1157 <main+0x37>
jmp    1150 <main+0x30>

LLVM IR (-O0):
@EOF = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 48, i32* %3
br label %4
4: ; preds = %16, %14, %0
%5 = call i32 (...) @getchar()
store i32 %5, i32* %2
%6 = load i32, i32* @EOF
%7 = icmp ne i32 %5, %6
br i1 %7, label %8, label %20
8: ; preds = %4
%9 = load i32, i32* %2
%10 = icmp eq i32 %9, 32
br i1 %10, label %11, label %16
11: ; preds = %8
%12 = load i32, i32* %3
%13 = icmp eq i32 %12, 32
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = load i32, i32* %2
store i32 %15, i32* %3
br label %4
16: ; preds = %11, %8
%17 = load i32, i32* %2
%18 = call i32 @putchar(i32 %17)
%19 = load i32, i32* %2
store i32 %19, i32* %3
br label %4
20: ; preds = %4
ret i32 0
}

LLVM IR (-O2):
@EOF = global i32 0
define i32 @main() {
%1 = tail call i32 (...) @getchar()
%2 = load i32, i32* @EOF
%3 = icmp eq i32 %1, %2
br i1 %3, label %16, label %4
4: ; preds = %0, %12
%5 = phi i32 [ %13, %12 ], [ %1, %0 ]
%6 = phi i32 [ %5, %12 ], [ 48, %0 ]
%7 = icmp eq i32 %5, 32
%8 = icmp eq i32 %6, 32
%9 = and i1 %8, %7
br i1 %9, label %12, label %10
10: ; preds = %4
%11 = tail call i32 @putchar(i32 %5)
br label %12
12: ; preds = %10, %4
%13 = tail call i32 (...) @getchar()
%14 = load i32, i32* @EOF
%15 = icmp eq i32 %13, %14
br i1 %15, label %16, label %4
16: ; preds = %12, %0
ret i32 0
}
/* Variables and functions */
int utf8_strnwidth(char const *, int, int /*<<< orphan*/);
int utf8_strwidth(const char *string) { return utf8_strnwidth(string, -1, 0); }


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

x86 assembly (clang, -O2):
<utf8_strwidth>:
mov    $0xffffffff,%esi
xor    %edx,%edx
jmp    1030 <utf8_strnwidth@plt>

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

LLVM IR (-O2):
define i32 @utf8_strwidth(i8* %0) {
%2 = tail call i32 @utf8_strnwidth(i8* %0, i32 -1, i32 0)
ret i32 %2
}
void conn_deinit(void) {}


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

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

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

LLVM IR (-O2):
define void @conn_deinit() {
ret void
}
int test_imm_4Auint8_reg(unsigned char val) {
  return ((val) & (-0x4A << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_4Auint8_reg>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movzbl -0x1(%rbp),%edx
and    $0xffffffb6,%edx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_4Auint8_reg>:
test   $0xb6,%dil
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @test_imm_4Auint8_reg(i8 zeroext %0) {
%2 = and i8 %0, -74
%3 = icmp eq i8 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
int main() {
  int x;
  x = 5555;
  --x;
  return x;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
movl   $0x15b3,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 5555, i32* %2
%3 = load i32, i32* %2
%4 = add nsw i32 %3, -1
store i32 %4, i32* %2
%5 = load i32, i32* %2
ret i32 %5
}

LLVM IR (-O2):
define i32 @main() {
ret i32 5554
}
void test_28_1(short *mem) { __atomic_and_fetch(mem, 1, 4); }


x86 assembly (clang, -O0):
<test_28_1>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
movw   $0x1,-0xa(%rbp)
mov    -0xa(%rbp),%cx
mov    %cx,-0x10(%rbp)
mov    (%rax),%ax
mov    %ax,-0xe(%rbp)
mov    -0xe(%rbp),%ax
mov    -0x18(%rbp),%rcx
mov    -0x10(%rbp),%dx
mov    %dx,%si
mov    %ax,%dx
mov    %edx,-0x24(%rbp)
and    %esi,%edx
mov    %edx,-0x20(%rbp)
lock cmpxchg %dx,(%rcx)
sete   %cl
mov    %ax,-0x1a(%rbp)
test   $0x1,%cl
mov    %ax,-0xe(%rbp)
jne    115d <test_28_1+0x5d>
jmp    1125 <test_28_1+0x25>
mov    -0x10(%rbp),%cx
mov    -0x1a(%rbp),%ax
and    %cx,%ax
mov    %ax,-0xc(%rbp)
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_28_1>:
lock andw $0x1,(%rdi)
ret

LLVM IR (-O0):
define void @test_28_1(i16* %0) {
%2 = alloca i16*
%3 = alloca i16
%4 = alloca i16
store i16* %0, i16** %2
%5 = load i16*, i16** %2
store i16 1, i16* %3
%6 = load i16, i16* %3
%7 = atomicrmw and i16* %5, i16 %6 acq_rel
%8 = and i16 %7, %6
store i16 %8, i16* %4
%9 = load i16, i16* %4
ret void
}

LLVM IR (-O2):
define void @test_28_1(i16* nocapture %0) {
%2 = atomicrmw and i16* %0, i16 1 acq_rel
ret void
}
/* Variables and functions */
int /*<<< orphan*/ gen(char *);
int /*<<< orphan*/ ngen(char *, char *, int);
void cgunscaleby(int v) {
  ngen("%s\t$%d,%%ecx", "movl", v);
  gen("xorl\t%edx,%edx");
  gen("divl\t%ecx");
}


x86 assembly (clang, -O0):
<cgunscaleby>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edx
lea    0xecb(%rip),%rdi
lea    0xed1(%rip),%rsi
call   1030 <ngen@plt>
lea    0xeca(%rip),%rdi
call   1040 <gen@plt>
lea    0xecd(%rip),%rdi
call   1040 <gen@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cgunscaleby>:
push   %rax
mov    %edi,%edx
lea    0xed6(%rip),%rdi
lea    0xedc(%rip),%rsi
call   1030 <ngen@plt>
lea    0xed5(%rip),%rdi
call   1040 <gen@plt>
lea    0xed8(%rip),%rdi
pop    %rax
jmp    1040 <gen@plt>

LLVM IR (-O0):
@.str = [13 x i8] c"%s\09$%d,%%ecx\00"
@.str.1 = [5 x i8] c"movl\00"
@.str.2 = [15 x i8] c"xorl\09%edx,%edx\00"
@.str.3 = [10 x i8] c"divl\09%ecx\00"
define void @cgunscaleby(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @ngen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = call i32 @gen(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 @gen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [13 x i8] c"%s\09$%d,%%ecx\00"
@.str.1 = [5 x i8] c"movl\00"
@.str.2 = [15 x i8] c"xorl\09%edx,%edx\00"
@.str.3 = [10 x i8] c"divl\09%ecx\00"
define void @cgunscaleby(i32 %0) {
%2 = tail call i32 @ngen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %0)
%3 = tail call i32 @gen(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @gen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
ret void
}
double fclamp(double x) {
  if (x < 0) {
    return 0.0;
  }
  if (x > 1) {
    return 1.0;
  }
  return x;
}


x86 assembly (clang, -O0):
<fclamp>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x10(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    1124 <fclamp+0x24>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1157 <fclamp+0x57>
movsd  -0x10(%rbp),%xmm0
movsd  0xecf(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    114d <fclamp+0x4d>
movsd  0xebd(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1157 <fclamp+0x57>
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<fclamp>:
movsd  0xef8(%rip),%xmm1
minsd  %xmm0,%xmm1
xorpd  %xmm2,%xmm2
cmpltsd %xmm2,%xmm0
andnpd %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @fclamp(double %0) {
%2 = alloca double
%3 = alloca double
store double %0, double* %3
%4 = load double, double* %3
%5 = fcmp olt double %4, 0.000000e+00
br i1 %5, label %6, label %7
6: ; preds = %1
store double 0.000000e+00, double* %2
br label %13
7: ; preds = %1
%8 = load double, double* %3
%9 = fcmp ogt double %8, 1.000000e+00
br i1 %9, label %10, label %11
10: ; preds = %7
store double 1.000000e+00, double* %2
br label %13
11: ; preds = %7
%12 = load double, double* %3
store double %12, double* %2
br label %13
13: ; preds = %11, %10, %6
%14 = load double, double* %2
ret double %14
}

LLVM IR (-O2):
define double @fclamp(double %0) {
%2 = fcmp olt double %0, 0.000000e+00
%3 = fcmp ogt double %0, 1.000000e+00
%4 = select i1 %3, double 1.000000e+00, double %0
%5 = select i1 %2, double 0.000000e+00, double %4
ret double %5
}
/* Type definitions */
typedef int /*<<< orphan*/ buf0;

/* Variables and functions */
int /*<<< orphan*/ fgets(char **, int, int /*<<< orphan*/);
int /*<<< orphan*/ stdin;
void nothing() {
  char *buf0[50];
  fgets(buf0, sizeof(buf0), stdin);
}


x86 assembly (clang, -O0):
<nothing>:
push   %rbp
mov    %rsp,%rbp
sub    $0x190,%rsp
lea    -0x190(%rbp),%rdi
mov    0x2ebf(%rip),%rax
mov    (%rax),%edx
mov    $0x190,%esi
call   1030 <fgets@plt>
add    $0x190,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<nothing>:
sub    $0x198,%rsp
mov    0x2eca(%rip),%rax
mov    (%rax),%edx
mov    %rsp,%rdi
mov    $0x190,%esi
call   1030 <fgets@plt>
add    $0x198,%rsp
ret

LLVM IR (-O0):
@stdin = global i32 0
define void @nothing() {
%1 = alloca [50 x i8*]
%2 = getelementptr inbounds [50 x i8*], [50 x i8*]* %1, i64 0, i64 0
%3 = load i32, i32* @stdin
%4 = call i32 @fgets(i8** %2, i32 400, i32 %3)
ret void
}

LLVM IR (-O2):
@stdin = global i32 0
define void @nothing() {
%1 = alloca [50 x i8*]
%2 = bitcast [50 x i8*]* %1 to i8*
%3 = getelementptr inbounds [50 x i8*], [50 x i8*]* %1, i64 0, i64 0
%4 = load i32, i32* @stdin
%5 = call i32 @fgets(i8** %3, i32 400, i32 %4)
ret void
}
int leastBitPos(int n) { return n & -n; }


x86 assembly (clang, -O0):
<leastBitPos>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
xor    %ecx,%ecx
sub    -0x4(%rbp),%ecx
and    %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<leastBitPos>:
mov    %edi,%eax
neg    %eax
and    %edi,%eax
ret

LLVM IR (-O0):
define i32 @leastBitPos(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = load i32, i32* %2
%5 = sub nsw i32 0, %4
%6 = and i32 %3, %5
ret i32 %6
}

LLVM IR (-O2):
define i32 @leastBitPos(i32 %0) {
%2 = sub nsw i32 0, %0
%3 = and i32 %2, %0
ret i32 %3
}
/* Variables and functions */
int capturePositiveValue();
int /*<<< orphan*/ printf(char *);
int getWidth() {
  printf("\nEnter number of characters to print in each row");
  printf("\n(must be greater than or equal to 3): ");
  return capturePositiveValue();
}


x86 assembly (clang, -O0):
<getWidth>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xefa(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <capturePositiveValue@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<getWidth>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <printf@plt>
lea    0xefd(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <capturePositiveValue@plt>

LLVM IR (-O0):
@.str = [49 x i8] c"\0AEnter number of characters to print in each row\00"
@.str.1 = [40 x i8] c"\0A(must be greater than or equal to 3): \00"
define i32 @getWidth() {
%1 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (...) @capturePositiveValue()
ret i32 %3
}

LLVM IR (-O2):
@.str = [49 x i8] c"\0AEnter number of characters to print in each row\00"
@.str.1 = [40 x i8] c"\0A(must be greater than or equal to 3): \00"
define i32 @getWidth() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 (...) @capturePositiveValue()
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ foo();
int /*<<< orphan*/ test16_Mod_bar__I();
int /*<<< orphan*/ test16_Mod_foo__I();
void test16_Test_pollen__run__E() {
  test16_Mod_bar__I();
  foo();
  test16_Mod_foo__I();
  test16_Mod_foo__I();
  test16_Mod_bar__I();
}


x86 assembly (clang, -O0):
<test16_Test_pollen__run__E>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1050 <test16_Mod_bar__I@plt>
mov    $0x0,%al
call   1030 <foo@plt>
mov    $0x0,%al
call   1040 <test16_Mod_foo__I@plt>
mov    $0x0,%al
call   1040 <test16_Mod_foo__I@plt>
mov    $0x0,%al
call   1050 <test16_Mod_bar__I@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test16_Test_pollen__run__E>:
push   %rax
xor    %eax,%eax
call   1050 <test16_Mod_bar__I@plt>
xor    %eax,%eax
call   1030 <foo@plt>
xor    %eax,%eax
call   1040 <test16_Mod_foo__I@plt>
xor    %eax,%eax
call   1040 <test16_Mod_foo__I@plt>
xor    %eax,%eax
pop    %rcx
jmp    1050 <test16_Mod_bar__I@plt>

LLVM IR (-O0):
define void @test16_Test_pollen__run__E() {
%1 = call i32 (...) @test16_Mod_bar__I()
%2 = call i32 (...) @foo()
%3 = call i32 (...) @test16_Mod_foo__I()
%4 = call i32 (...) @test16_Mod_foo__I()
%5 = call i32 (...) @test16_Mod_bar__I()
ret void
}

LLVM IR (-O2):
define void @test16_Test_pollen__run__E() {
%1 = tail call i32 (...) @test16_Mod_bar__I()
%2 = tail call i32 (...) @foo()
%3 = tail call i32 (...) @test16_Mod_foo__I()
%4 = tail call i32 (...) @test16_Mod_foo__I()
%5 = tail call i32 (...) @test16_Mod_bar__I()
ret void
}
int fibonacci(int n) {
  const int testcon = 1;
  char testc;
  if (n == 1)
    return (1);
  if (n != 2)
    return (+fibonacci(n + -1) + fibonacci(n - 2) + 0);
  return (1);
}


x86 assembly (clang, -O0):
<fibonacci>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x8(%rbp)
movl   $0x1,-0xc(%rbp)
cmpl   $0x1,-0x8(%rbp)
jne    1138 <fibonacci+0x28>
movl   $0x1,-0x4(%rbp)
jmp    1174 <fibonacci+0x64>
cmpl   $0x2,-0x8(%rbp)
je     116d <fibonacci+0x5d>
mov    -0x8(%rbp),%edi
add    $0xffffffff,%edi
call   1030 <fibonacci@plt>
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%edi
sub    $0x2,%edi
call   1030 <fibonacci@plt>
mov    %eax,%ecx
mov    -0x14(%rbp),%eax
add    %ecx,%eax
add    $0x0,%eax
mov    %eax,-0x4(%rbp)
jmp    1174 <fibonacci+0x64>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fibonacci>:
push   %rbp
push   %rbx
push   %rax
mov    %edi,%ebp
add    $0xffffffff,%ebp
mov    $0x1,%ebx
cmp    $0x2,%ebp
jb     1144 <fibonacci+0x34>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %ebp,%edi
call   1030 <fibonacci@plt>
add    %eax,%ebx
add    $0xfffffffe,%ebp
cmp    $0x1,%ebp
ja     1130 <fibonacci+0x20>
add    $0x1,%ebx
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @fibonacci(i32 %0) {
%2 = add i32 %0, -1
%3 = icmp ult i32 %2, 2
br i1 %3, label %15, label %4
4: ; preds = %1, %4
%5 = phi i32 [ %11, %4 ], [ %2, %1 ]
%6 = phi i32 [ %9, %4 ], [ %0, %1 ]
%7 = phi i32 [ %10, %4 ], [ 0, %1 ]
%8 = tail call i32 @fibonacci(i32 %5)
%9 = add nsw i32 %6, -2
%10 = add nsw i32 %8, %7
%11 = add i32 %6, -3
%12 = icmp ult i32 %11, 2
br i1 %12, label %13, label %4
13: ; preds = %4
%14 = add i32 %10, 1
br label %15
15: ; preds = %13, %1
%16 = phi i32 [ 1, %1 ], [ %14, %13 ]
ret i32 %16
}
/* Type definitions */
typedef int /*<<< orphan*/ PKCS8_PRIV_KEY_INFO;
typedef int /*<<< orphan*/ EVP_PKEY;

/* Variables and functions */
int /*<<< orphan*/ PKCS8_pkey_get0(int /*<<< orphan*/ *, unsigned char const **,
                                   int *, int /*<<< orphan*/ *,
                                   int /*<<< orphan*/ *);
int old_rsa_priv_decode(int /*<<< orphan*/ *, unsigned char const **, int);
int rsa_priv_decode(EVP_PKEY *pkey, PKCS8_PRIV_KEY_INFO *p8) {
  const unsigned char *p;
  int pklen;
  if (!PKCS8_pkey_get0(NULL, &p, &pklen, NULL, p8))
    return 0;
  return old_rsa_priv_decode(pkey, &p, pklen);
}


x86 assembly (clang, -O0):
<rsa_priv_decode>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x18(%rbp),%r8
xor    %eax,%eax
mov    %eax,%ecx
lea    -0x20(%rbp),%rsi
lea    -0x24(%rbp),%rdx
mov    %rcx,%rdi
call   1030 <PKCS8_pkey_get0@plt>
cmp    $0x0,%eax
jne    115d <rsa_priv_decode+0x3d>
movl   $0x0,-0x4(%rbp)
jmp    1170 <rsa_priv_decode+0x50>
mov    -0x10(%rbp),%rdi
mov    -0x24(%rbp),%edx
lea    -0x20(%rbp),%rsi
call   1040 <old_rsa_priv_decode@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rsa_priv_decode>:
push   %r14
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%r8
mov    %rdi,%r14
xor    %ebx,%ebx
lea    0x10(%rsp),%rsi
lea    0xc(%rsp),%rdx
xor    %edi,%edi
xor    %ecx,%ecx
call   1030 <PKCS8_pkey_get0@plt>
test   %eax,%eax
je     1159 <rsa_priv_decode+0x39>
mov    0xc(%rsp),%edx
lea    0x10(%rsp),%rsi
mov    %r14,%rdi
call   1040 <old_rsa_priv_decode@plt>
mov    %eax,%ebx
mov    %ebx,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define i32 @rsa_priv_decode(i32* %0, i32* %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = bitcast i8** %3 to i8*
%6 = bitcast i32* %4 to i8*
%7 = call i32 @PKCS8_pkey_get0(i32* null, i8** %3, i32* %4, i32* null, i32* %1)
%8 = icmp eq i32 %7, 0
br i1 %8, label %12, label %9
9: ; preds = %2
%10 = load i32, i32* %4
%11 = call i32 @old_rsa_priv_decode(i32* %0, i8** %3, i32 %10)
br label %12
12: ; preds = %2, %9
%13 = phi i32 [ %11, %9 ], [ 0, %2 ]
ret i32 %13
}
void ble_evt_sm_bonding_fail(const struct ble_msg_sm_bonding_fail_evt_t *msg) {}


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

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

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

LLVM IR (-O2):
%struct.ble_msg_sm_bonding_fail_evt_t = type opaque
define void @ble_evt_sm_bonding_fail(%struct.ble_msg_sm_bonding_fail_evt_t* nocapture %0) {
ret void
}
int main(int argc, char **argv) {
  int r;
#pragma omp target enter data
#pragma omp target enter data map(r)
#pragma omp target enter data map(tofrom : r)
#pragma omp target enter data map(always, to : r)
#pragma omp target enter data map(always, alloc : r)
#pragma omp target enter data map(always, from : r)
#pragma omp target enter data map(release : r)
#pragma omp target enter data map(delete : r)
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
ret i32 0
}
double fabs(arg)
double arg;
{
  if (arg < 0.)
    arg = -arg;
  return (arg);
}


x86 assembly (clang, -O0):
<fabs>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x8(%rbp),%xmm0
jbe    1138 <fabs+0x38>
movsd  -0x8(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<fabs>:
movapd 0xef8(%rip),%xmm2
xorpd  %xmm0,%xmm2
xorpd  %xmm3,%xmm3
movapd %xmm0,%xmm1
cmpltsd %xmm3,%xmm1
andpd  %xmm1,%xmm2
andnpd %xmm0,%xmm1
orpd   %xmm2,%xmm1
movapd %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @fabs(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = fcmp olt double %3, 0.000000e+00
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load double, double* %2
%7 = fneg double %6
store double %7, double* %2
br label %8
8: ; preds = %5, %1
%9 = load double, double* %2
ret double %9
}

LLVM IR (-O2):
define double @fabs(double %0) {
%2 = fcmp olt double %0, 0.000000e+00
%3 = fneg double %0
%4 = select i1 %2, double %3, double %0
ret double %4
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ ntohl(int /*<<< orphan*/);
uint32_t NtoHL(uint32_t netlong) { return ntohl(netlong); }


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

x86 assembly (clang, -O2):
<NtoHL>:
jmp    1030 <ntohl@plt>

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

LLVM IR (-O2):
define i32 @NtoHL(i32 %0) {
%2 = tail call i32 @ntohl(i32 %0)
ret i32 %2
}
void main_handler(int signum) {}


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

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

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

LLVM IR (-O2):
define void @main_handler(i32 %0) {
ret void
}
/* Variables and functions */
scalar_t__ strcasecmp(char const *const, char const *const);
unsigned short xmlrpc_strcaseeq(const char *const a, const char *const b) {
  return (strcasecmp(a, b) == 0);
}


x86 assembly (clang, -O0):
<xmlrpc_strcaseeq>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
movzwl %ax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<xmlrpc_strcaseeq>:
push   %rax
call   1030 <strcasecmp@plt>
xor    %ecx,%ecx
test   %rax,%rax
sete   %cl
mov    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
define zeroext i16 @xmlrpc_strcaseeq(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %3
%6 = load i8*, i8** %4
%7 = call i64 @strcasecmp(i8* %5, i8* %6)
%8 = icmp eq i64 %7, 0
%9 = zext i1 %8 to i32
%10 = trunc i32 %9 to i16
ret i16 %10
}

LLVM IR (-O2):
define zeroext i16 @xmlrpc_strcaseeq(i8* nocapture %0, i8* nocapture %1) {
%3 = tail call i64 @strcasecmp(i8* %0, i8* %1)
%4 = icmp eq i64 %3, 0
%5 = zext i1 %4 to i16
ret i16 %5
}
int test(char *C) {
  return C != ((void *)0);
  return C != (void *)0;
  return C != 0;
  return C != 1;
}


x86 assembly (clang, -O0):
<test>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test>:
xor    %eax,%eax
test   %rdi,%rdi
setne  %al
ret

LLVM IR (-O0):
define i32 @test(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = icmp ne i8* %3, null
%5 = zext i1 %4 to i32
ret i32 %5
}

LLVM IR (-O2):
define i32 @test(i8* readnone %0) {
%2 = icmp ne i8* %0, null
%3 = zext i1 %2 to i32
ret i32 %3
}
/* Type definitions */
typedef int /*<<< orphan*/ uint64_t;
struct perf_event_header {
  int dummy;
};

/* Variables and functions */
uint64_t *perf_hdr_payload(struct perf_event_header *hdr) {
  return (uint64_t *)(hdr + 1);
}


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

x86 assembly (clang, -O2):
<perf_hdr_payload>:
lea    0x4(%rdi),%rax
ret

LLVM IR (-O0):
%struct.perf_event_header = type { i32 }
define i32* @perf_hdr_payload(%struct.perf_event_header* %0) {
%2 = alloca %struct.perf_event_header*
store %struct.perf_event_header* %0, %struct.perf_event_header** %2
%3 = load %struct.perf_event_header*, %struct.perf_event_header** %2
%4 = getelementptr inbounds %struct.perf_event_header, %struct.perf_event_header* %3, i64 1
%5 = bitcast %struct.perf_event_header* %4 to i32*
ret i32* %5
}

LLVM IR (-O2):
%struct.perf_event_header = type { i32 }
define i32* @perf_hdr_payload(%struct.perf_event_header* readnone %0) {
%2 = getelementptr inbounds %struct.perf_event_header, %struct.perf_event_header* %0, i64 1, i32 0
ret i32* %2
}
double BStrawhat(double b) {
  return 5 * b * b * b - 15 * b + 10 * 1.0 - 2 * 1.0 * 1.0 * 1.0;
}


x86 assembly (clang, -O0):
<BStrawhat>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  0xf07(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  -0x8(%rbp),%xmm2
movsd  0xee8(%rip),%xmm1
mulsd  -0x8(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xeb4(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  0xea0(%rip),%xmm1
subsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<BStrawhat>:
movsd  0xef8(%rip),%xmm1
mulsd  %xmm0,%xmm1
mulsd  %xmm0,%xmm1
mulsd  %xmm0,%xmm1
mulsd  0xeec(%rip),%xmm0
addsd  %xmm1,%xmm0
addsd  0xee8(%rip),%xmm0
addsd  0xee8(%rip),%xmm0
ret

LLVM IR (-O0):
define double @BStrawhat(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = fmul double 5.000000e+00, %3
%5 = load double, double* %2
%6 = fmul double %4, %5
%7 = load double, double* %2
%8 = load double, double* %2
%9 = fmul double 1.500000e+01, %8
%10 = fneg double %9
%11 = call double @llvm.fmuladd.f64(double %6, double %7, double %10)
%12 = fadd double %11, 1.000000e+01
%13 = fsub double %12, 2.000000e+00
ret double %13
}

LLVM IR (-O2):
define double @BStrawhat(double %0) {
%2 = fmul double %0, 5.000000e+00
%3 = fmul double %2, %0
%4 = fmul double %0, -1.500000e+01
%5 = tail call double @llvm.fmuladd.f64(double %3, double %0, double %4)
%6 = fadd double %5, 1.000000e+01
%7 = fadd double %6, -2.000000e+00
ret double %7
}
__attribute__((no)) int char_(float f) {
  char c = f;
  if (c) {
    return c;
  }
  return 23;
}


x86 assembly (clang, -O0):
<char_>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
cvttss2si %xmm0,%eax
mov    %al,-0x9(%rbp)
cmpb   $0x0,-0x9(%rbp)
je     112b <char_+0x2b>
movsbl -0x9(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1132 <char_+0x32>
movl   $0x17,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<char_>:
cvttss2si %xmm0,%eax
test   %al,%al
mov    $0x17,%ecx
cmovne %eax,%ecx
movsbl %cl,%eax
ret

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

LLVM IR (-O2):
define i32 @char_(float %0) {
%2 = fptosi float %0 to i8
%3 = icmp eq i8 %2, 0
%4 = select i1 %3, i8 23, i8 %2
%5 = sext i8 %4 to i32
ret i32 %5
}
/* Type definitions */
struct sk_buff {
  int dummy;
};

/* Variables and functions */
struct sk_buff *pskb_copy(struct sk_buff *, int);
struct sk_buff *skb_clone(struct sk_buff *skb, int gfp_mask) {
  return pskb_copy(skb, gfp_mask);
}


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

x86 assembly (clang, -O2):
<skb_clone>:
jmp    1030 <pskb_copy@plt>

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

LLVM IR (-O2):
%struct.sk_buff = type { i32 }
define %struct.sk_buff* @skb_clone(%struct.sk_buff* %0, i32 %1) {
%3 = tail call %struct.sk_buff* @pskb_copy(%struct.sk_buff* %0, i32 %1)
ret %struct.sk_buff* %3
}
unsigned int pace(unsigned char pos[]) {
  int sixteenths = ((pos[1] & 0xf0) << 2) + pos[0];
  return sixteenths * 600.0 / 16.0;
}


x86 assembly (clang, -O0):
<pace>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movzbl 0x1(%rax),%edx
and    $0xfffffff0,%edx
movzbl (%rax),%ecx
mov    %ecx,%eax
mov    %edx,%ecx
lea    (%rax,%rcx,4),%eax
mov    %eax,-0xc(%rbp)
cvtsi2sdl -0xc(%rbp),%xmm0
movsd  0xed3(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xecf(%rip),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<pace>:
movzbl 0x1(%rdi),%eax
and    $0xfffffff0,%eax
movzbl (%rdi),%ecx
lea    (%rcx,%rax,4),%eax
cvtsi2sd %eax,%xmm0
mulsd  0xee7(%rip),%xmm0
mulsd  0xee7(%rip),%xmm0
cvttsd2si %xmm0,%rax
ret

LLVM IR (-O0):
define i32 @pace(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = getelementptr inbounds i8, i8* %4, i64 1
%6 = load i8, i8* %5
%7 = zext i8 %6 to i32
%8 = and i32 %7, 240
%9 = shl i32 %8, 2
%10 = load i8*, i8** %2
%11 = getelementptr inbounds i8, i8* %10, i64 0
%12 = load i8, i8* %11
%13 = zext i8 %12 to i32
%14 = add nsw i32 %9, %13
store i32 %14, i32* %3
%15 = load i32, i32* %3
%16 = sitofp i32 %15 to double
%17 = fmul double %16, 6.000000e+02
%18 = fdiv double %17, 1.600000e+01
%19 = fptoui double %18 to i32
ret i32 %19
}

LLVM IR (-O2):
define i32 @pace(i8* nocapture %0) {
%2 = getelementptr inbounds i8, i8* %0, i64 1
%3 = load i8, i8* %2
%4 = and i8 %3, -16
%5 = zext i8 %4 to i32
%6 = shl nuw nsw i32 %5, 2
%7 = load i8, i8* %0
%8 = zext i8 %7 to i32
%9 = add nuw nsw i32 %6, %8
%10 = sitofp i32 %9 to double
%11 = fmul double %10, 6.000000e+02
%12 = fmul double %11, 6.250000e-02
%13 = fptoui double %12 to i32
ret i32 %13
}
float ConvertToFahrenheit(float celsiusTemperature) {
  return celsiusTemperature * ((212.0 - 32.0) / 100.0) + 32.0;
}


x86 assembly (clang, -O0):
<ConvertToFahrenheit>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xee6(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xee2(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<ConvertToFahrenheit>:
cvtss2sd %xmm0,%xmm0
mulsd  0xef4(%rip),%xmm0
addsd  0xef4(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
ret

LLVM IR (-O0):
define float @ConvertToFahrenheit(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = fpext float %3 to double
%5 = call double @llvm.fmuladd.f64(double %4, double 1.800000e+00, double 3.200000e+01)
%6 = fptrunc double %5 to float
ret float %6
}

LLVM IR (-O2):
define float @ConvertToFahrenheit(float %0) {
%2 = fpext float %0 to double
%3 = tail call double @llvm.fmuladd.f64(double %2, double 1.800000e+00, double 3.200000e+01)
%4 = fptrunc double %3 to float
ret float %4
}
/* Type definitions */
typedef int /*<<< orphan*/ KeySym;

/* Variables and functions */
int IsPFKey(int /*<<< orphan*/);
int x11_extras_IsPFKey(KeySym keysym) { return IsPFKey(keysym); }


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

x86 assembly (clang, -O2):
<x11_extras_IsPFKey>:
jmp    1030 <IsPFKey@plt>

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

LLVM IR (-O2):
define i32 @x11_extras_IsPFKey(i32 %0) {
%2 = tail call i32 @IsPFKey(i32 %0)
ret i32 %2
}
/* Type definitions */
typedef int /*<<< orphan*/ mpz_t;

/* Variables and functions */
unsigned int mpz_getlimbn(int /*<<< orphan*/, int);
unsigned short int getlimb(mpz_t n, int i) {
  unsigned int aux = mpz_getlimbn(n, i / 2);
  if (i % 2 == 0)
    return (unsigned short int)(aux & 0xffff);
  return (unsigned short int)(aux >> 16);
}


x86 assembly (clang, -O0):
<getlimb>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%esi
call   1030 <mpz_getlimbn@plt>
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    115b <getlimb+0x4b>
mov    -0x10(%rbp),%eax
and    $0xffff,%eax
mov    %ax,-0x2(%rbp)
jmp    1165 <getlimb+0x55>
mov    -0x10(%rbp),%eax
shr    $0x10,%eax
mov    %ax,-0x2(%rbp)
movzwl -0x2(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getlimb>:
push   %rbx
mov    %esi,%ebx
shr    $0x1f,%esi
add    %ebx,%esi
sar    %esi
call   1030 <mpz_getlimbn@plt>
mov    %eax,%ecx
shr    $0x10,%ecx
test   $0x1,%bl
cmovne %ecx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define zeroext i16 @getlimb(i32 %0, i32 %1) {
%3 = alloca i16
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
%7 = load i32, i32* %4
%8 = load i32, i32* %5
%9 = sdiv i32 %8, 2
%10 = call i32 @mpz_getlimbn(i32 %7, i32 %9)
store i32 %10, i32* %6
%11 = load i32, i32* %5
%12 = srem i32 %11, 2
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %18
14: ; preds = %2
%15 = load i32, i32* %6
%16 = and i32 %15, 65535
%17 = trunc i32 %16 to i16
store i16 %17, i16* %3
br label %22
18: ; preds = %2
%19 = load i32, i32* %6
%20 = lshr i32 %19, 16
%21 = trunc i32 %20 to i16
store i16 %21, i16* %3
br label %22
22: ; preds = %18, %14
%23 = load i16, i16* %3
ret i16 %23
}

LLVM IR (-O2):
define zeroext i16 @getlimb(i32 %0, i32 %1) {
%3 = sdiv i32 %1, 2
%4 = tail call i32 @mpz_getlimbn(i32 %0, i32 %3)
%5 = and i32 %1, 1
%6 = icmp eq i32 %5, 0
%7 = lshr i32 %4, 16
%8 = select i1 %6, i32 %4, i32 %7
%9 = trunc i32 %8 to i16
ret i16 %9
}
__attribute__((always_)) unsigned int get_sysctl_timer_migration(void) {
  return 1;
}


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

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

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

LLVM IR (-O2):
define i32 @get_sysctl_timer_migration() {
ret i32 1
}
void apr_bucket_destroy_noop(void *data) {
  { return; }
}


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

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

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

LLVM IR (-O2):
define void @apr_bucket_destroy_noop(i8* nocapture %0) {
ret void
}
double l_x(unsigned int i, unsigned int len) {
  return (2 * i + 1) / (double)len - 1;
}


x86 assembly (clang, -O0):
<l_x>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%ecx
mov    %ecx,%eax
lea    0x1(%rax,%rax,1),%eax
cvtsi2sd %rax,%xmm0
mov    -0x8(%rbp),%eax
cvtsi2sd %rax,%xmm1
divsd  %xmm1,%xmm0
movsd  0xed4(%rip),%xmm1
subsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<l_x>:
lea    (%rdi,%rdi,1),%eax
add    $0x1,%eax
cvtsi2sd %rax,%xmm0
mov    %esi,%eax
cvtsi2sd %rax,%xmm1
divsd  %xmm1,%xmm0
addsd  0xee2(%rip),%xmm0
ret

LLVM IR (-O0):
define double @l_x(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 = mul i32 2, %5
%7 = add i32 %6, 1
%8 = uitofp i32 %7 to double
%9 = load i32, i32* %4
%10 = uitofp i32 %9 to double
%11 = fdiv double %8, %10
%12 = fsub double %11, 1.000000e+00
ret double %12
}

LLVM IR (-O2):
define double @l_x(i32 %0, i32 %1) {
%3 = shl i32 %0, 1
%4 = or i32 %3, 1
%5 = uitofp i32 %4 to double
%6 = uitofp i32 %1 to double
%7 = fdiv double %5, %6
%8 = fadd double %7, -1.000000e+00
ret double %8
}
void RTFileQueryInfo(void) {}


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

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

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

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

/* Variables and functions */
int /*<<< orphan*/ le16_to_cpu(int /*<<< orphan*/ const);
uint16_t le16_to_cpup(const uint16_t *p) { return le16_to_cpu(*p); }


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

x86 assembly (clang, -O2):
<le16_to_cpup>:
mov    (%rdi),%edi
jmp    1030 <le16_to_cpu@plt>

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

LLVM IR (-O2):
define i32 @le16_to_cpup(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = tail call i32 @le16_to_cpu(i32 %2)
ret i32 %3
}