xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ japi_fillarc(int, int, int, int, int, int, int);
void j_fillarc(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5,
               int arg6) {
  japi_fillarc(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
}


x86 assembly (clang, -O0):
<j_fillarc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    0x10(%rbp),%eax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
mov    %r9d,-0x18(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    -0x14(%rbp),%r8d
mov    -0x18(%rbp),%r9d
mov    0x10(%rbp),%eax
mov    %eax,(%rsp)
call   1030 <japi_fillarc@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<j_fillarc>:
jmp    1030 <japi_fillarc@plt>

LLVM IR (-O0):
define void @j_fillarc(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6) {
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
store i32 %0, i32* %8
store i32 %1, i32* %9
store i32 %2, i32* %10
store i32 %3, i32* %11
store i32 %4, i32* %12
store i32 %5, i32* %13
store i32 %6, i32* %14
%15 = load i32, i32* %8
%16 = load i32, i32* %9
%17 = load i32, i32* %10
%18 = load i32, i32* %11
%19 = load i32, i32* %12
%20 = load i32, i32* %13
%21 = load i32, i32* %14
%22 = call i32 @japi_fillarc(i32 %15, i32 %16, i32 %17, i32 %18, i32 %19, i32 %20, i32 %21)
ret void
}

LLVM IR (-O2):
define void @j_fillarc(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6) {
%8 = tail call i32 @japi_fillarc(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6)
ret void
}
/* Variables and functions */
int EXIT_SUCCESS;
int /*<<< orphan*/ compile_input();
int /*<<< orphan*/ parse_args(int, char **);
int main(int argc, char **argv) {
  parse_args(argc, argv);
  compile_input();
  return (EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1030 <parse_args@plt>
mov    $0x0,%al
call   1040 <compile_input@plt>
mov    0x2e90(%rip),%rax
mov    (%rax),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
call   1030 <parse_args@plt>
xor    %eax,%eax
call   1040 <compile_input@plt>
mov    0x2eac(%rip),%rax
mov    (%rax),%eax
pop    %rcx
ret

LLVM IR (-O0):
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i32, i32* %4
%7 = load i8**, i8*** %5
%8 = call i32 @parse_args(i32 %6, i8** %7)
%9 = call i32 (...) @compile_input()
%10 = load i32, i32* @EXIT_SUCCESS
ret i32 %10
}

LLVM IR (-O2):
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i32 @parse_args(i32 %0, i8** %1)
%4 = tail call i32 (...) @compile_input()
%5 = load i32, i32* @EXIT_SUCCESS
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ *transaction_stack();
int _stm_transaction_stack_empty() { return (transaction_stack() == NULL); }


x86 assembly (clang, -O0):
<_stm_transaction_stack_empty>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <transaction_stack@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @_stm_transaction_stack_empty() {
%1 = call i32* (...) @transaction_stack()
%2 = icmp eq i32* %1, null
%3 = zext i1 %2 to i32
ret i32 %3
}

LLVM IR (-O2):
define i32 @_stm_transaction_stack_empty() {
%1 = tail call i32* (...) @transaction_stack()
%2 = icmp eq i32* %1, null
%3 = zext i1 %2 to i32
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ configurePatchLrm();
int /*<<< orphan*/ enterCpePatchLrm();
int /*<<< orphan*/ enterSysPatchLrm();
void rf_patch_cpe_lrm(void) {
  enterSysPatchLrm();
  enterCpePatchLrm();
  configurePatchLrm();
}


x86 assembly (clang, -O0):
<rf_patch_cpe_lrm>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <enterSysPatchLrm@plt>
mov    $0x0,%al
call   1050 <enterCpePatchLrm@plt>
mov    $0x0,%al
call   1040 <configurePatchLrm@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<rf_patch_cpe_lrm>:
push   %rax
xor    %eax,%eax
call   1030 <enterSysPatchLrm@plt>
xor    %eax,%eax
call   1050 <enterCpePatchLrm@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <configurePatchLrm@plt>

LLVM IR (-O0):
define void @rf_patch_cpe_lrm() {
%1 = call i32 (...) @enterSysPatchLrm()
%2 = call i32 (...) @enterCpePatchLrm()
%3 = call i32 (...) @configurePatchLrm()
ret void
}

LLVM IR (-O2):
define void @rf_patch_cpe_lrm() {
%1 = tail call i32 (...) @enterSysPatchLrm()
%2 = tail call i32 (...) @enterCpePatchLrm()
%3 = tail call i32 (...) @configurePatchLrm()
ret void
}
void WriteChunkType(unsigned char **addrPtr, unsigned long cktyp) {
  unsigned char *addr = *addrPtr;
  *addr++ = (unsigned char)(cktyp >> 24);
  *addr++ = (unsigned char)(cktyp >> 16);
  *addr++ = (unsigned char)(cktyp >> 8);
  *addr++ = (unsigned char)cktyp;
  *addrPtr = addr;
}


x86 assembly (clang, -O0):
<WriteChunkType>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
shr    $0x18,%rax
mov    %al,%cl
mov    -0x18(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x18(%rbp)
mov    %cl,(%rax)
mov    -0x10(%rbp),%rax
shr    $0x10,%rax
mov    %al,%cl
mov    -0x18(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x18(%rbp)
mov    %cl,(%rax)
mov    -0x10(%rbp),%rax
shr    $0x8,%rax
mov    %al,%cl
mov    -0x18(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x18(%rbp)
mov    %cl,(%rax)
mov    -0x10(%rbp),%rax
mov    %al,%cl
mov    -0x18(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x18(%rbp)
mov    %cl,(%rax)
mov    -0x18(%rbp),%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<WriteChunkType>:
mov    (%rdi),%rax
bswap  %esi
mov    %esi,(%rax)
add    $0x4,%rax
mov    %rax,(%rdi)
ret

LLVM IR (-O0):
define void @WriteChunkType(i8** %0, i64 %1) {
%3 = alloca i8**
%4 = alloca i64
%5 = alloca i8*
store i8** %0, i8*** %3
store i64 %1, i64* %4
%6 = load i8**, i8*** %3
%7 = load i8*, i8** %6
store i8* %7, i8** %5
%8 = load i64, i64* %4
%9 = lshr i64 %8, 24
%10 = trunc i64 %9 to i8
%11 = load i8*, i8** %5
%12 = getelementptr inbounds i8, i8* %11, i32 1
store i8* %12, i8** %5
store i8 %10, i8* %11
%13 = load i64, i64* %4
%14 = lshr i64 %13, 16
%15 = trunc i64 %14 to i8
%16 = load i8*, i8** %5
%17 = getelementptr inbounds i8, i8* %16, i32 1
store i8* %17, i8** %5
store i8 %15, i8* %16
%18 = load i64, i64* %4
%19 = lshr i64 %18, 8
%20 = trunc i64 %19 to i8
%21 = load i8*, i8** %5
%22 = getelementptr inbounds i8, i8* %21, i32 1
store i8* %22, i8** %5
store i8 %20, i8* %21
%23 = load i64, i64* %4
%24 = trunc i64 %23 to i8
%25 = load i8*, i8** %5
%26 = getelementptr inbounds i8, i8* %25, i32 1
store i8* %26, i8** %5
store i8 %24, i8* %25
%27 = load i8*, i8** %5
%28 = load i8**, i8*** %3
store i8* %27, i8** %28
ret void
}

LLVM IR (-O2):
define void @WriteChunkType(i8** nocapture %0, i64 %1) {
%3 = load i8*, i8** %0
%4 = lshr i64 %1, 24
%5 = trunc i64 %4 to i8
%6 = getelementptr inbounds i8, i8* %3, i64 1
store i8 %5, i8* %3
%7 = lshr i64 %1, 16
%8 = trunc i64 %7 to i8
%9 = getelementptr inbounds i8, i8* %3, i64 2
store i8 %8, i8* %6
%10 = lshr i64 %1, 8
%11 = trunc i64 %10 to i8
%12 = getelementptr inbounds i8, i8* %3, i64 3
store i8 %11, i8* %9
%13 = trunc i64 %1 to i8
%14 = getelementptr inbounds i8, i8* %3, i64 4
store i8 %13, i8* %12
store i8* %14, i8** %0
ret void
}
/* Variables and functions */
char *alloca(size_t);
char volatile *mem;
volatile char *allocate_and_test(char *target) {
  volatile char *mem = (char *)&mem;
  mem = alloca((size_t)(mem - target));
  *mem = 42;
  return mem;
}


x86 assembly (clang, -O0):
<allocate_and_test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0x10(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rax
sub    %rax,%rdi
call   1030 <alloca@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movb   $0x2a,(%rax)
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<allocate_and_test>:
push   %rax
mov    %rsp,%rax
mov    %rax,(%rsp)
sub    %rdi,%rax
mov    %rax,%rdi
call   1030 <alloca@plt>
mov    %rax,(%rsp)
movb   $0x2a,(%rax)
mov    (%rsp),%rax
pop    %rcx
ret

LLVM IR (-O0):
@mem = global i8* null
define i8* @allocate_and_test(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %2
%4 = bitcast i8** %3 to i8*
store i8* %4, i8** %3
%5 = load i8*, i8** %3
%6 = load i8*, i8** %2
%7 = ptrtoint i8* %5 to i64
%8 = ptrtoint i8* %6 to i64
%9 = sub i64 %7, %8
%10 = call i8* @alloca(i64 %9)
store i8* %10, i8** %3
%11 = load i8*, i8** %3
store volatile i8 42, i8* %11
%12 = load i8*, i8** %3
ret i8* %12
}

LLVM IR (-O2):
@mem = global i8* null
define i8* @allocate_and_test(i8* %0) {
%2 = alloca i8*
%3 = bitcast i8** %2 to i8*
%4 = bitcast i8** %2 to i8***
store i8** %2, i8*** %4
%5 = ptrtoint i8** %2 to i64
%6 = ptrtoint i8* %0 to i64
%7 = sub i64 %5, %6
%8 = call i8* @alloca(i64 %7)
store i8* %8, i8** %2
store volatile i8 42, i8* %8
%9 = load i8*, i8** %2
ret i8* %9
}
/* Type definitions */
struct udcFile {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ udcFileClose(struct udcFile **);
void udcFileCloseWrap(void *pFile) { udcFileClose((struct udcFile **)pFile); }


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

x86 assembly (clang, -O2):
<udcFileCloseWrap>:
jmp    1030 <udcFileClose@plt>

LLVM IR (-O0):
%struct.udcFile = type { i32 }
define void @udcFileCloseWrap(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = bitcast i8* %3 to %struct.udcFile**
%5 = call i32 @udcFileClose(%struct.udcFile** %4)
ret void
}

LLVM IR (-O2):
%struct.udcFile = type { i32 }
define void @udcFileCloseWrap(i8* %0) {
%2 = bitcast i8* %0 to %struct.udcFile**
%3 = tail call i32 @udcFileClose(%struct.udcFile** %2)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
unsigned char *haval128_file(unsigned char *, int /*<<< orphan*/ *);
unsigned char *hash_file_haval128(unsigned char *out, FILE *fp) {
  return haval128_file(out, fp);
}


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

x86 assembly (clang, -O2):
<hash_file_haval128>:
jmp    1030 <haval128_file@plt>

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

LLVM IR (-O2):
define i8* @hash_file_haval128(i8* %0, i32* %1) {
%3 = tail call i8* @haval128_file(i8* %0, i32* %1)
ret i8* %3
}
/* Variables and functions */
int /*<<< orphan*/ ENOENT;
int _stub(int /*<<< orphan*/);
int __wrap_unlink(const char *name) { return _stub(ENOENT); }


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

x86 assembly (clang, -O2):
<__wrap_unlink>:
mov    0x2ec1(%rip),%rax
mov    (%rax),%edi
jmp    1030 <_stub@plt>

LLVM IR (-O0):
@ENOENT = global i32 0
define i32 @__wrap_unlink(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @ENOENT
%4 = call i32 @_stub(i32 %3)
ret i32 %4
}

LLVM IR (-O2):
@ENOENT = global i32 0
define i32 @__wrap_unlink(i8* nocapture readnone %0) {
%2 = load i32, i32* @ENOENT
%3 = tail call i32 @_stub(i32 %2)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isupper(int);
void t_isupper_0x2c() {
  Assert_real((isupper(44) == 0),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/"
              "dg/z88dk/test/suites/ctype/test_isupper.c",
              225, ("isupper should be 0 for ,"));
}


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

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

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

LLVM IR (-O2):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isupper.c\00"
@.str.1 = [26 x i8] c"isupper should be 0 for ,\00"
define void @t_isupper_0x2c() {
%1 = tail call i64 @isupper(i32 44)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 225, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ EIO;
int /*<<< orphan*/ errno;
int close(int fildes) {
  errno = EIO;
  return -1;
}


x86 assembly (clang, -O0):
<close>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    0x2ed2(%rip),%rax
mov    (%rax),%ecx
mov    0x2ec1(%rip),%rax
mov    %ecx,(%rax)
mov    $0xffffffff,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<close>:
mov    0x2ed9(%rip),%rax
mov    (%rax),%eax
mov    0x2ec8(%rip),%rcx
mov    %eax,(%rcx)
mov    $0xffffffff,%eax
ret

LLVM IR (-O0):
@EIO = global i32 0
@errno = global i32 0
define i32 @close(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* @EIO
store i32 %3, i32* @errno
ret i32 -1
}

LLVM IR (-O2):
@EIO = global i32 0
@errno = global i32 0
define i32 @close(i32 %0) {
%2 = load i32, i32* @EIO
store i32 %2, i32* @errno
ret i32 -1
}
void gtk_key_snooper_remove() {}


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

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

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

LLVM IR (-O2):
define void @gtk_key_snooper_remove() {
ret void
}
int f(unsigned number_of_digits_to_use) {
  if (number_of_digits_to_use > 1294)
    return 0;
  return (number_of_digits_to_use * 3321928 / 1000000 + 1) / 16;
}


x86 assembly (clang, -O0):
<f>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0x50e,-0x8(%rbp)
jbe    1120 <f+0x20>
movl   $0x0,-0x4(%rbp)
jmp    1139 <f+0x39>
imul   $0x32b048,-0x8(%rbp),%eax
mov    $0xf4240,%ecx
xor    %edx,%edx
div    %ecx
add    $0x1,%eax
shr    $0x4,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<f>:
xor    %eax,%eax
cmp    $0x50e,%edi
ja     1121 <f+0x21>
imul   $0x32b048,%edi,%eax
imul   $0x431bde83,%rax,%rax
shr    $0x32,%rax
add    $0x1,%eax
shr    $0x4,%eax
ret

LLVM IR (-O0):
define i32 @f(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp ugt i32 %4, 1294
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 0, i32* %2
br label %13
7: ; preds = %1
%8 = load i32, i32* %3
%9 = mul i32 %8, 3321928
%10 = udiv i32 %9, 1000000
%11 = add i32 %10, 1
%12 = udiv i32 %11, 16
store i32 %12, i32* %2
br label %13
13: ; preds = %7, %6
%14 = load i32, i32* %2
ret i32 %14
}

LLVM IR (-O2):
define i32 @f(i32 %0) {
%2 = icmp ugt i32 %0, 1294
br i1 %2, label %8, label %3
3: ; preds = %1
%4 = mul i32 %0, 3321928
%5 = udiv i32 %4, 1000000
%6 = add nuw nsw i32 %5, 1
%7 = lshr i32 %6, 4
br label %8
8: ; preds = %1, %3
%9 = phi i32 [ %7, %3 ], [ 0, %1 ]
ret i32 %9
}
/* Variables and functions */
int __VERIFIER_nondet_int();
int main() {
  int x = __VERIFIER_nondet_int();
  int y = __VERIFIER_nondet_int();
  int z = __VERIFIER_nondet_int();
  while (x + y >= 0 && x <= z) {
    x = 2 * x + y;
    y++;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0xc(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%ecx
add    -0xc(%rbp),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x11(%rbp)
jl     115d <main+0x4d>
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
setle  %al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%al
test   $0x1,%al
jne    116d <main+0x5d>
jmp    1187 <main+0x77>
mov    -0x8(%rbp),%eax
shl    $0x1,%eax
add    -0xc(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    113d <main+0x2d>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %5, i32* %2
%6 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %6, i32* %3
%7 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %7, i32* %4
br label %8
8: ; preds = %19, %0
%9 = load i32, i32* %2
%10 = load i32, i32* %3
%11 = add nsw i32 %9, %10
%12 = icmp sge i32 %11, 0
br i1 %12, label %13, label %17
13: ; preds = %8
%14 = load i32, i32* %2
%15 = load i32, i32* %4
%16 = icmp sle i32 %14, %15
br label %17
17: ; preds = %13, %8
%18 = phi i1 [ false, %8 ], [ %16, %13 ]
br i1 %18, label %19, label %26
19: ; preds = %17
%20 = load i32, i32* %2
%21 = mul nsw i32 2, %20
%22 = load i32, i32* %3
%23 = add nsw i32 %21, %22
store i32 %23, i32* %2
%24 = load i32, i32* %3
%25 = add nsw i32 %24, 1
store i32 %25, i32* %3
br label %8
26: ; preds = %17
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @__VERIFIER_nondet_int()
%2 = tail call i32 (...) @__VERIFIER_nondet_int()
%3 = tail call i32 (...) @__VERIFIER_nondet_int()
ret i32 0
}
/* Variables and functions */
void PrintUsedMemorySize(void) {}


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

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

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

LLVM IR (-O2):
define void @PrintUsedMemorySize() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int dec, rem, quot;
  int i = 1, j, temp;
  char hex[100];
  printf("Enter a decimal number: ");
  scanf("%d", &dec);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x14(%rbp)
lea    0xec0(%rip),%rdi
call   1030 <printf@plt>
lea    0xecd(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
xor    %eax,%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <printf@plt>
lea    0xee5(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [25 x i8] c"Enter a decimal number: \00"
@.str.1 = [3 x i8] c"%d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca [100 x i8]
store i32 0, i32* %1
store i32 1, i32* %5
%9 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
ret i32 0
}

LLVM IR (-O2):
@.str = [25 x i8] c"Enter a decimal number: \00"
@.str.1 = [3 x i8] c"%d\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
ret i32 0
}
void __cxa_finalize(void) {}


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

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

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

LLVM IR (-O2):
define void @__cxa_finalize() {
ret void
}
void os_finish_with_sample(int number) {}


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

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

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

LLVM IR (-O2):
define void @os_finish_with_sample(i32 %0) {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;

/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void do_DrDM(uint8_t *p, uint8_t *max, int is_up) {
  printf("RDPDR: Devicelist Remove\n");
}


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

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

LLVM IR (-O0):
@.str = [26 x i8] c"RDPDR: Devicelist Remove\0A\00"
define void @do_DrDM(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 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [25 x i8] c"RDPDR: Devicelist Remove\00"
define void @do_DrDM(i32* nocapture readnone %0, i32* nocapture readnone %1, i32 %2) {
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str, i64 0, i64 0))
ret void
}
int _m_put(int ln, const char *fn, const char *fun, int h, const void *d) {
  _mlsdb_caller(__FUNCTION__, ln, fn, fun, 5, h, 0, d);
  return m_put(h, d);
}


x86 assembly (clang, -O0):
<_m_put>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
mov    -0x1c(%rbp),%r9d
mov    -0x28(%rbp),%rax
lea    0xeac(%rip),%rdi
mov    $0x5,%r8d
xor    %r10d,%r10d
movl   $0x0,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1030 <_mlsdb_caller@plt>
mov    -0x1c(%rbp),%edi
mov    -0x28(%rbp),%rsi
mov    $0x0,%al
call   1040 <m_put@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_m_put>:
push   %rbp
push   %rbx
push   %rax
mov    %r8,%rbx
mov    %ecx,%ebp
mov    %rdx,%rcx
mov    %rsi,%rdx
mov    %edi,%esi
lea    0xec9(%rip),%rdi
mov    $0x5,%r8d
mov    %ebp,%r9d
xor    %eax,%eax
push   %rbx
push   $0x0
call   1030 <_mlsdb_caller@plt>
add    $0x10,%rsp
mov    %ebp,%edi
mov    %rbx,%rsi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1040 <m_put@plt>

LLVM IR (-O0):
@__FUNCTION__._m_put = [7 x i8] c"_m_put\00"
define i32 @_m_put(i32 %0, i8* %1, i8* %2, i32 %3, i8* %4) {
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i8*
store i32 %0, i32* %6
store i8* %1, i8** %7
store i8* %2, i8** %8
store i32 %3, i32* %9
store i8* %4, i8** %10
%11 = load i32, i32* %6
%12 = load i8*, i8** %7
%13 = load i8*, i8** %8
%14 = load i32, i32* %9
%15 = load i8*, i8** %10
%16 = call i32 (i8*, i32, i8*, i8*, i32, i32, i32, i8*, ...) bitcast (i32 (...)* @_mlsdb_caller to i32 (i8*, i32, i8*, i8*, i32, i32, i32, i8*, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @__FUNCTION__._m_put, i64 0, i64 0), i32 %11, i8* %12, i8* %13, i32 5, i32 %14, i32 0, i8* %15)
%17 = load i32, i32* %9
%18 = load i8*, i8** %10
%19 = call i32 (i32, i8*, ...) bitcast (i32 (...)* @m_put to i32 (i32, i8*, ...)*)(i32 %17, i8* %18)
ret i32 %19
}

LLVM IR (-O2):
@__FUNCTION__._m_put = [7 x i8] c"_m_put\00"
define i32 @_m_put(i32 %0, i8* %1, i8* %2, i32 %3, i8* %4) {
%6 = tail call i32 (i8*, i32, i8*, i8*, i32, i32, i32, i8*, ...) bitcast (i32 (...)* @_mlsdb_caller to i32 (i8*, i32, i8*, i8*, i32, i32, i32, i8*, ...)*)(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @__FUNCTION__._m_put, i64 0, i64 0), i32 %0, i8* %1, i8* %2, i32 5, i32 %3, i32 0, i8* %4)
%7 = tail call i32 (i32, i8*, ...) bitcast (i32 (...)* @m_put to i32 (i32, i8*, ...)*)(i32 %3, i8* %4)
ret i32 %7
}
/* Variables and functions */
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ dup2(int, int);
void movefd(int from, int to) {
  ;
  ;
  if (from != to) {
    dup2(from, to);
    close(from);
  }
}


x86 assembly (clang, -O0):
<movefd>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
je     114d <movefd+0x2d>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1030 <dup2@plt>
mov    -0x4(%rbp),%edi
call   1040 <close@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<movefd>:
cmp    %esi,%edi
jne    1125 <movefd+0x5>
ret
push   %rbx
mov    %edi,%ebx
call   1030 <dup2@plt>
mov    %ebx,%edi
pop    %rbx
jmp    1040 <close@plt>

LLVM IR (-O0):
define void @movefd(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 = icmp ne i32 %5, %6
br i1 %7, label %8, label %14
8: ; preds = %2
%9 = load i32, i32* %3
%10 = load i32, i32* %4
%11 = call i32 @dup2(i32 %9, i32 %10)
%12 = load i32, i32* %3
%13 = call i32 @close(i32 %12)
br label %14
14: ; preds = %8, %2
ret void
}

LLVM IR (-O2):
define void @movefd(i32 %0, i32 %1) {
%3 = icmp eq i32 %0, %1
br i1 %3, label %7, label %4
4: ; preds = %2
%5 = tail call i32 @dup2(i32 %0, i32 %1)
%6 = tail call i32 @close(i32 %0)
br label %7
7: ; preds = %4, %2
ret void
}
cbuf12(f, n) int f, n;
{ cbuf(f, n, 12); }


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

x86 assembly (clang, -O2):
<cbuf12>:
mov    $0xc,%edx
xor    %eax,%eax
jmp    1030 <cbuf@plt>

LLVM IR (-O0):
define i32 @cbuf12(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
%6 = load i32, i32* %4
%7 = load i32, i32* %5
%8 = call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @cbuf to i32 (i32, i32, i32, ...)*)(i32 %6, i32 %7, i32 12)
%9 = load i32, i32* %3
ret i32 %9
}

LLVM IR (-O2):
define i32 @cbuf12(i32 %0, i32 %1) {
%3 = tail call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @cbuf to i32 (i32, i32, i32, ...)*)(i32 %0, i32 %1, i32 12)
ret i32 undef
}
int hitWayTest() { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @hitWayTest() {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ initgui_(int *, int *, int *, int *, int *);
void INITGUI(int *model, int *debug, int *lats, int *mrpid, int *mrnum) {
  initgui_(model, debug, lats, mrpid, mrnum);
}


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

x86 assembly (clang, -O2):
<INITGUI>:
jmp    1030 <initgui_@plt>

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

LLVM IR (-O2):
define void @INITGUI(i32* %0, i32* %1, i32* %2, i32* %3, i32* %4) {
%6 = tail call i32 @initgui_(i32* %0, i32* %1, i32* %2, i32* %3, i32* %4)
ret void
}
void alsa_close_audio(void) {}


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

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

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

LLVM IR (-O2):
define void @alsa_close_audio() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ backtrace_print();
int /*<<< orphan*/ printf(char *, unsigned int);
int main(void) {
  printf("BACKTRACE_SIZE: %u\n", (4U));
  backtrace_print();
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1040 <backtrace_print@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [20 x i8] c"BACKTRACE_SIZE: %u\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 4)
%3 = call i32 (...) @backtrace_print()
ret i32 0
}

LLVM IR (-O2):
@.str = [20 x i8] c"BACKTRACE_SIZE: %u\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 4)
%2 = tail call i32 (...) @backtrace_print()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ system(char *);
void Clear(void) { system("clear"); }


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

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

LLVM IR (-O0):
@.str = [6 x i8] c"clear\00"
define void @Clear() {
%1 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"clear\00"
define void @Clear() {
%1 = tail call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
ret void
}
void ff_hevc_put_hevc_bi_pel_pixels12_8_sse4() {}


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

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

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

LLVM IR (-O2):
define void @ff_hevc_put_hevc_bi_pel_pixels12_8_sse4() {
ret void
}
comp(a, b) char *a, *b;
{
  a--;
  b--;
  while (*++a == *++b) {
    if (*a == '\0')
      return (1);
  }
  return (0);
}


x86 assembly (clang, -O0):
<comp>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x10(%rbp)
mov    -0x18(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
movsbl 0x1(%rax),%eax
mov    -0x18(%rbp),%rcx
mov    %rcx,%rdx
add    $0x1,%rdx
mov    %rdx,-0x18(%rbp)
movsbl 0x1(%rcx),%ecx
cmp    %ecx,%eax
jne    1173 <comp+0x73>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    116e <comp+0x6e>
movl   $0x1,-0x4(%rbp)
jmp    117a <comp+0x7a>
jmp    1124 <comp+0x24>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<comp>:
xor    %eax,%eax
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movzbl (%rdi,%rcx,1),%edx
cmp    (%rsi,%rcx,1),%dl
jne    1126 <comp+0x26>
add    $0x1,%rcx
test   %dl,%dl
jne    1110 <comp+0x10>
mov    $0x1,%eax
ret

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

LLVM IR (-O2):
define i32 @comp(i8* nocapture %0, i8* nocapture %1) {
%3 = getelementptr inbounds i8, i8* %0, i64 -1
%4 = getelementptr inbounds i8, i8* %1, i64 -1
br label %5
5: ; preds = %13, %2
%6 = phi i8* [ %3, %2 ], [ %8, %13 ]
%7 = phi i8* [ %4, %2 ], [ %10, %13 ]
%8 = getelementptr inbounds i8, i8* %6, i64 1
%9 = load i8, i8* %8
%10 = getelementptr inbounds i8, i8* %7, i64 1
%11 = load i8, i8* %10
%12 = icmp eq i8 %9, %11
br i1 %12, label %13, label %15
13: ; preds = %5
%14 = icmp eq i8 %9, 0
br i1 %14, label %15, label %5
15: ; preds = %5, %13
%16 = phi i32 [ 1, %13 ], [ 0, %5 ]
ret i32 %16
}
long double _Complex fun_long_double_complex(void) { return 4.5 + 5.5i; }


x86 assembly (clang, -O0):
<fun_long_double_complex>:
push   %rbp
mov    %rsp,%rbp
flds   0xef6(%rip)
fstpt  -0x20(%rbp)
flds   0xef1(%rip)
fstpt  -0x10(%rbp)
fldt   -0x10(%rbp)
fldt   -0x20(%rbp)
pop    %rbp
ret

x86 assembly (clang, -O2):
<fun_long_double_complex>:
flds   0xefa(%rip)
flds   0xef8(%rip)
ret

LLVM IR (-O0):
define { x86_fp80, x86_fp80 } @fun_long_double_complex() {
%1 = alloca { x86_fp80, x86_fp80 }
%2 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %1, i32 0, i32 0
%3 = getelementptr inbounds { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %1, i32 0, i32 1
store x86_fp80 0xK40019000000000000000, x86_fp80* %2
store x86_fp80 0xK4001B000000000000000, x86_fp80* %3
%4 = load { x86_fp80, x86_fp80 }, { x86_fp80, x86_fp80 }* %1
ret { x86_fp80, x86_fp80 } %4
}

LLVM IR (-O2):
define { x86_fp80, x86_fp80 } @fun_long_double_complex() {
ret { x86_fp80, x86_fp80 } { x86_fp80 0xK40019000000000000000, x86_fp80 0xK4001B000000000000000 }
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ stderr;
void errormsg(char *msg) { fprintf(stderr, "%s\n", msg); }


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

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

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

LLVM IR (-O2):
@stderr = global i32 0
@.str = [4 x i8] c"%s\0A\00"
define void @errormsg(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ int32_t;

/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ perror(char *);
int read(int, int /*<<< orphan*/ *, int);
int32_t read_header(int f) {
  int32_t pos;
  int len = sizeof(int32_t);
  if (read(f, &pos, len) != len) {
    perror("unable to read first byte from rand");
    exit(0);
  }
  return pos;
}


x86 assembly (clang, -O0):
<read_header>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movl   $0x4,-0xc(%rbp)
mov    -0x4(%rbp),%edi
mov    -0xc(%rbp),%edx
lea    -0x8(%rbp),%rsi
call   1030 <read@plt>
cmp    -0xc(%rbp),%eax
je     116d <read_header+0x3d>
lea    0xe9f(%rip),%rdi
call   1040 <perror@plt>
xor    %edi,%edi
call   1050 <exit@plt>
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<read_header>:
push   %rax
lea    0x4(%rsp),%rsi
mov    $0x4,%edx
call   1030 <read@plt>
cmp    $0x4,%eax
jne    114b <read_header+0x1b>
mov    0x4(%rsp),%eax
pop    %rcx
ret
lea    0xeae(%rip),%rdi
call   1040 <perror@plt>
xor    %edi,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [36 x i8] c"unable to read first byte from rand\00"
define i32 @read_header(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %2
store i32 4, i32* %4
%5 = load i32, i32* %2
%6 = load i32, i32* %4
%7 = call i32 @read(i32 %5, i32* %3, i32 %6)
%8 = load i32, i32* %4
%9 = icmp ne i32 %7, %8
br i1 %9, label %10, label %13
10: ; preds = %1
%11 = call i32 @perror(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
%12 = call i32 @exit(i32 0)
unreachable
13: ; preds = %1
%14 = load i32, i32* %3
ret i32 %14
}

LLVM IR (-O2):
@.str = [36 x i8] c"unable to read first byte from rand\00"
define i32 @read_header(i32 %0) {
%2 = alloca i32
%3 = bitcast i32* %2 to i8*
%4 = call i32 @read(i32 %0, i32* %2, i32 4)
%5 = icmp eq i32 %4, 4
br i1 %5, label %9, label %6
6: ; preds = %1
%7 = tail call i32 @perror(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
%8 = tail call i32 @exit(i32 0)
unreachable
9: ; preds = %1
%10 = load i32, i32* %2
ret i32 %10
}
/* Type definitions */
typedef int /*<<< orphan*/ cm_buf;

/* Variables and functions */
int sock_sync_data(int, int, int, char *, char *);
int sock_sync_ready(int sock_fd, int is_daemon) {
  char cm_buf = 'a';
  return sock_sync_data(sock_fd, is_daemon, sizeof(cm_buf), &cm_buf, &cm_buf);
}


x86 assembly (clang, -O0):
<sock_sync_ready>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
movb   $0x61,-0x9(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    $0x1,%edx
lea    -0x9(%rbp),%r8
mov    %r8,%rcx
call   1030 <sock_sync_data@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sock_sync_ready>:
push   %rax
movb   $0x61,0x7(%rsp)
lea    0x7(%rsp),%rcx
mov    $0x1,%edx
mov    %rcx,%r8
call   1030 <sock_sync_data@plt>
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @sock_sync_ready(i32 %0, i32 %1) {
%3 = alloca i8
store i8 97, i8* %3
%4 = call i32 @sock_sync_data(i32 %0, i32 %1, i32 1, i8* %3, i8* %3)
ret i32 %4
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fread(unsigned char *, int, int, int /*<<< orphan*/ *);
int read8(FILE *in) {
  unsigned char q[1];
  fread(q, 1, 1, in);
  return q[0];
}


x86 assembly (clang, -O0):
<read8>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0x9(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    $0x1,%edx
mov    %edx,%esi
call   1030 <fread@plt>
movzbl -0x9(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<read8>:
push   %rax
mov    %rdi,%rcx
lea    0x7(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1030 <fread@plt>
movzbl 0x7(%rsp),%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @read8(i32* %0) {
%2 = alloca i32*
%3 = alloca [1 x i8]
store i32* %0, i32** %2
%4 = getelementptr inbounds [1 x i8], [1 x i8]* %3, i64 0, i64 0
%5 = load i32*, i32** %2
%6 = call i32 @fread(i8* %4, i32 1, i32 1, i32* %5)
%7 = getelementptr inbounds [1 x i8], [1 x i8]* %3, i64 0, i64 0
%8 = load i8, i8* %7
%9 = zext i8 %8 to i32
ret i32 %9
}

LLVM IR (-O2):
define i32 @read8(i32* nocapture %0) {
%2 = alloca [1 x i8]
%3 = getelementptr inbounds [1 x i8], [1 x i8]* %2, i64 0, i64 0
%4 = call i32 @fread(i8* %3, i32 1, i32 1, i32* %0)
%5 = load i8, i8* %3
%6 = zext i8 %5 to i32
ret i32 %6
}
int ispunct(int c) {
  return (c >= 0x21 && c <= 0x2f) || (c >= 0x3a && c <= 0x3f) || c == '@' ||
         (c >= 0x5b && c <= 0x60) || (c >= 0x7b && c <= 0x7e);
}


x86 assembly (clang, -O0):
<ispunct>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
cmpl   $0x21,-0x4(%rbp)
jl     1120 <ispunct+0x20>
mov    $0x1,%al
cmpl   $0x2f,-0x4(%rbp)
mov    %al,-0x5(%rbp)
jle    1180 <ispunct+0x80>
cmpl   $0x3a,-0x4(%rbp)
jl     1139 <ispunct+0x39>
mov    $0x1,%al
cmpl   $0x3f,-0x4(%rbp)
mov    %al,-0x5(%rbp)
jle    1180 <ispunct+0x80>
mov    $0x1,%al
cmpl   $0x40,-0x4(%rbp)
mov    %al,-0x5(%rbp)
je     1180 <ispunct+0x80>
cmpl   $0x5b,-0x4(%rbp)
jl     1161 <ispunct+0x61>
mov    $0x1,%al
cmpl   $0x60,-0x4(%rbp)
mov    %al,-0x5(%rbp)
jle    1180 <ispunct+0x80>
xor    %eax,%eax
cmpl   $0x7b,-0x4(%rbp)
mov    %al,-0x6(%rbp)
jl     117a <ispunct+0x7a>
cmpl   $0x7e,-0x4(%rbp)
setle  %al
mov    %al,-0x6(%rbp)
mov    -0x6(%rbp),%al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ispunct>:
movd   %edi,%xmm0
pshufd $0x0,%xmm0,%xmm0
paddd  0xeef(%rip),%xmm0
pxor   0xef7(%rip),%xmm0
movdqa 0xeff(%rip),%xmm1
pcmpgtd %xmm0,%xmm1
movmskps %xmm1,%ecx
xor    %eax,%eax
test   %ecx,%ecx
setne  %al
ret

LLVM IR (-O0):
define i32 @ispunct(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp sge i32 %3, 33
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, i32* %2
%7 = icmp sle i32 %6, 47
br i1 %7, label %31, label %8
8: ; preds = %5, %1
%9 = load i32, i32* %2
%10 = icmp sge i32 %9, 58
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = load i32, i32* %2
%13 = icmp sle i32 %12, 63
br i1 %13, label %31, label %14
14: ; preds = %11, %8
%15 = load i32, i32* %2
%16 = icmp eq i32 %15, 64
br i1 %16, label %31, label %17
17: ; preds = %14
%18 = load i32, i32* %2
%19 = icmp sge i32 %18, 91
br i1 %19, label %20, label %23
20: ; preds = %17
%21 = load i32, i32* %2
%22 = icmp sle i32 %21, 96
br i1 %22, label %31, label %23
23: ; preds = %20, %17
%24 = load i32, i32* %2
%25 = icmp sge i32 %24, 123
br i1 %25, label %26, label %29
26: ; preds = %23
%27 = load i32, i32* %2
%28 = icmp sle i32 %27, 126
br label %29
29: ; preds = %26, %23
%30 = phi i1 [ false, %23 ], [ %28, %26 ]
br label %31
31: ; preds = %29, %20, %14, %11, %5
%32 = phi i1 [ true, %20 ], [ true, %14 ], [ true, %11 ], [ true, %5 ], [ %30, %29 ]
%33 = zext i1 %32 to i32
ret i32 %33
}

LLVM IR (-O2):
define i32 @ispunct(i32 %0) {
%2 = insertelement <4 x i32> poison, i32 %0, i64 0
%3 = shufflevector <4 x i32> %2, <4 x i32> poison, <4 x i32> zeroinitializer
%4 = add <4 x i32> %3, <i32 -123, i32 -91, i32 -33, i32 -58>
%5 = icmp ult <4 x i32> %4, <i32 4, i32 6, i32 15, i32 7>
%6 = bitcast <4 x i1> %5 to i4
%7 = icmp ne i4 %6, 0
%8 = zext i1 %7 to i32
ret i32 %8
}
void exynos_drm_fbdev_restore_mode(struct drm_device *dev) {}


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

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

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

LLVM IR (-O2):
%struct.drm_device = type opaque
define void @exynos_drm_fbdev_restore_mode(%struct.drm_device* nocapture %0) {
ret void
}
int security_socket_shutdown(struct socket *sock, int how) { return 0; }


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

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

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

LLVM IR (-O2):
%struct.socket = type opaque
define i32 @security_socket_shutdown(%struct.socket* nocapture readnone %0, i32 %1) {
ret i32 0
}
void Phase_conflict_init(short phc1, short phc2, short conflictstable[],
                         short phases_count, short clearingtime) {
  conflictstable[phc1 + phc2 * phases_count] = clearingtime;
}


x86 assembly (clang, -O0):
<Phase_conflict_init>:
push   %rbp
mov    %rsp,%rbp
mov    %r8w,%ax
mov    %di,-0x2(%rbp)
mov    %si,-0x4(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %cx,-0x12(%rbp)
mov    %ax,-0x14(%rbp)
mov    -0x14(%rbp),%dx
mov    -0x10(%rbp),%rax
movswl -0x2(%rbp),%ecx
movswl -0x4(%rbp),%esi
movswl -0x12(%rbp),%edi
imul   %edi,%esi
add    %esi,%ecx
movslq %ecx,%rcx
mov    %dx,(%rax,%rcx,2)
pop    %rbp
ret

x86 assembly (clang, -O2):
<Phase_conflict_init>:
movslq %edi,%rax
movslq %esi,%rsi
movslq %ecx,%rcx
imul   %rsi,%rcx
add    %rax,%rcx
mov    %r8w,(%rdx,%rcx,2)
ret

LLVM IR (-O0):
define void @Phase_conflict_init(i16 signext %0, i16 signext %1, i16* %2, i16 signext %3, i16 signext %4) {
%6 = alloca i16
%7 = alloca i16
%8 = alloca i16*
%9 = alloca i16
%10 = alloca i16
store i16 %0, i16* %6
store i16 %1, i16* %7
store i16* %2, i16** %8
store i16 %3, i16* %9
store i16 %4, i16* %10
%11 = load i16, i16* %10
%12 = load i16*, i16** %8
%13 = load i16, i16* %6
%14 = sext i16 %13 to i32
%15 = load i16, i16* %7
%16 = sext i16 %15 to i32
%17 = load i16, i16* %9
%18 = sext i16 %17 to i32
%19 = mul nsw i32 %16, %18
%20 = add nsw i32 %14, %19
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i16, i16* %12, i64 %21
store i16 %11, i16* %22
ret void
}

LLVM IR (-O2):
define void @Phase_conflict_init(i16 signext %0, i16 signext %1, i16* nocapture writeonly %2, i16 signext %3, i16 signext %4) {
%6 = sext i16 %0 to i64
%7 = sext i16 %1 to i64
%8 = sext i16 %3 to i64
%9 = mul nsw i64 %8, %7
%10 = add nsw i64 %9, %6
%11 = getelementptr inbounds i16, i16* %2, i64 %10
store i16 %4, i16* %11
ret void
}