xunge/DecIR huggingface dataset:
/* Variables and functions */
void m2mp_client_init_channels_array(char **array) {
  int i = 0;
  for (i = 0; i < 256; i++) {
    array[i] = NULL;
  }
}


x86 assembly (clang, -O0):
<m2mp_client_init_channels_array>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x100,-0xc(%rbp)
jge    1141 <m2mp_client_init_channels_array+0x41>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movq   $0x0,(%rax,%rcx,8)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1116 <m2mp_client_init_channels_array+0x16>
pop    %rbp
ret

x86 assembly (clang, -O2):
<m2mp_client_init_channels_array>:
push   %rax
mov    $0x800,%edx
xor    %esi,%esi
call   1030 <memset@plt>
pop    %rax
ret

LLVM IR (-O0):
define void @m2mp_client_init_channels_array(i8** %0) {
%2 = alloca i8**
%3 = alloca i32
store i8** %0, i8*** %2
store i32 0, i32* %3
store i32 0, i32* %3
br label %4
4: ; preds = %12, %1
%5 = load i32, i32* %3
%6 = icmp slt i32 %5, 256
br i1 %6, label %7, label %15
7: ; preds = %4
%8 = load i8**, i8*** %2
%9 = load i32, i32* %3
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds i8*, i8** %8, i64 %10
store i8* null, i8** %11
br label %12
12: ; preds = %7
%13 = load i32, i32* %3
%14 = add nsw i32 %13, 1
store i32 %14, i32* %3
br label %4
15: ; preds = %4
ret void
}

LLVM IR (-O2):
define void @m2mp_client_init_channels_array(i8** nocapture writeonly %0) {
%2 = bitcast i8** %0 to i8*
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Bar13(int, int, int, int, int, int, int, int, int, int, int,
                         int);
int main() {
  Bar13(6, -2, 4, 1111111111, -2222222222, 3333333333, -7, 1, 3, -4444444444,
        5555555555, 6666666666);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x6,%edi
mov    $0xfffffffe,%esi
mov    $0x4,%edx
mov    $0x423a35c7,%ecx
mov    $0x7b8b9472,%r8d
mov    $0xc6aea155,%r9d
movl   $0xfffffff9,(%rsp)
movl   $0x1,0x8(%rsp)
movl   $0x3,0x10(%rsp)
movl   $0xf71728e4,0x18(%rsp)
f7
movl   $0x4b230ce3,0x20(%rsp)
4b
movl   $0x8d5d42aa,0x28(%rsp)
8d
call   1030 <Bar13@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x6,%edi
mov    $0xfffffffe,%esi
mov    $0x4,%edx
mov    $0x423a35c7,%ecx
mov    $0x7b8b9472,%r8d
mov    $0xc6aea155,%r9d
push   $0xffffffff8d5d42aa
push   $0x4b230ce3
push   $0xfffffffff71728e4
push   $0x3
push   $0x1
push   $0xfffffffffffffff9
call   1030 <Bar13@plt>
add    $0x30,%rsp
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @Bar13(i32 6, i32 -2, i32 4, i32 1111111111, i32 2072745074, i32 -961633963, i32 -7, i32 1, i32 3, i32 -149477148, i32 1260588259, i32 -1923267926)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @Bar13(i32 6, i32 -2, i32 4, i32 1111111111, i32 2072745074, i32 -961633963, i32 -7, i32 1, i32 3, i32 -149477148, i32 1260588259, i32 -1923267926)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ exit(unsigned long);
int /*<<< orphan*/ printf(char *, int, unsigned long);
__attribute__((__noreturn__)) void exitfunc16(int status, void *arg) {
  printf("Executing exitfunc"
         "16"
         " (status=%d, arg=%lu)\n",
         status, (unsigned long)arg);
  exit((unsigned long)arg);
}


x86 assembly (clang, -O0):
<exitfunc16>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x10(%rbp),%rdx
lea    0xec3(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<exitfunc16>:
push   %rbx
mov    %rsi,%rbx
mov    %edi,%esi
lea    0xed3(%rip),%rdi
mov    %rbx,%rdx
call   1030 <printf@plt>
mov    %rbx,%rdi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [43 x i8] c"Executing exitfunc16 (status=%d, arg=%lu)\0A\00"
define void @exitfunc16(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
store i32 %0, i32* %3
store i8* %1, i8** %4
%5 = load i32, i32* %3
%6 = load i8*, i8** %4
%7 = ptrtoint i8* %6 to i64
%8 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0), i32 %5, i64 %7)
%9 = load i8*, i8** %4
%10 = ptrtoint i8* %9 to i64
%11 = call i32 @exit(i64 %10)
unreachable
}

LLVM IR (-O2):
@.str = [43 x i8] c"Executing exitfunc16 (status=%d, arg=%lu)\0A\00"
define void @exitfunc16(i32 %0, i8* %1) {
%3 = ptrtoint i8* %1 to i64
%4 = tail call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0), i32 %0, i64 %3)
%5 = tail call i32 @exit(i64 %3)
unreachable
}
int test_imm_4Fint64_lowword_mem(long long *val) {
  return ((*val) & (0x4F << 0)) ? -20 : -40;
}


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

x86 assembly (clang, -O2):
<test_imm_4Fint64_lowword_mem>:
testb  $0x4f,(%rdi)
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @test_imm_4Fint64_lowword_mem(i64* nocapture %0) {
%2 = load i64, i64* %0
%3 = and i64 %2, 79
%4 = icmp eq i64 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
/* Variables and functions */
unsigned int __sw32(int);
extern void out_le32(volatile unsigned *addr, int val) { *addr = __sw32(val); }


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

x86 assembly (clang, -O2):
<out_le32>:
push   %rbx
mov    %rdi,%rbx
mov    %esi,%edi
call   1030 <__sw32@plt>
mov    %eax,(%rbx)
pop    %rbx
ret

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

LLVM IR (-O2):
define void @out_le32(i32* %0, i32 %1) {
%3 = tail call i32 @__sw32(i32 %1)
store volatile i32 %3, i32* %0
ret void
}
/* Variables and functions */
int /*<<< orphan*/ scopy_(int *, float *, int *, float *, int *);
void SCOPY(int ntot, float *copy_from, int inc1, float *copy_to, int inc2) {
  scopy_(&ntot, copy_from, &inc1, copy_to, &inc2);
}


x86 assembly (clang, -O0):
<SCOPY>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    -0x10(%rbp),%rsi
mov    -0x20(%rbp),%rcx
lea    -0x4(%rbp),%rdi
lea    -0x14(%rbp),%rdx
lea    -0x24(%rbp),%r8
call   1030 <scopy_@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SCOPY>:
sub    $0x18,%rsp
mov    %edi,0x14(%rsp)
mov    %edx,0x10(%rsp)
mov    %r8d,0xc(%rsp)
lea    0x14(%rsp),%rdi
lea    0x10(%rsp),%rdx
lea    0xc(%rsp),%r8
call   1030 <scopy_@plt>
add    $0x18,%rsp
ret

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

LLVM IR (-O2):
define void @SCOPY(i32 %0, float* %1, i32 %2, float* %3, i32 %4) {
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %6
store i32 %2, i32* %7
store i32 %4, i32* %8
%9 = call i32 @scopy_(i32* %6, float* %1, i32* %7, float* %3, i32* %8)
ret void
}
/* Type definitions */
struct list_ {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ listinsert(struct list_ *, struct list_ *, struct list_ *);
int listpush(struct list_ *h, struct list_ *e) {
  listinsert(h, h, e);
  return 0;
}


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

x86 assembly (clang, -O2):
<listpush>:
push   %rax
mov    %rsi,%rdx
mov    %rdi,%rsi
call   1030 <listinsert@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
%struct.list_ = type { i32 }
define i32 @listpush(%struct.list_* %0, %struct.list_* %1) {
%3 = tail call i32 @listinsert(%struct.list_* %0, %struct.list_* %0, %struct.list_* %1)
ret i32 0
}
/* Variables and functions */
int EXIT_FAILURE;
int main() { return EXIT_FAILURE; }


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
mov    0x2ece(%rip),%rax
mov    (%rax),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
mov    0x2ed9(%rip),%rax
mov    (%rax),%eax
ret

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

LLVM IR (-O2):
@EXIT_FAILURE = global i32 0
define i32 @main() {
%1 = load i32, i32* @EXIT_FAILURE
ret i32 %1
}
char *f1(void) { return "Testing, 1, 2, 3... \n"; }


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

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

LLVM IR (-O0):
@.str = [22 x i8] c"Testing, 1, 2, 3... \0A\00"
define i8* @f1() {
ret i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [22 x i8] c"Testing, 1, 2, 3... \0A\00"
define i8* @f1() {
ret i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0)
}
/* Variables and functions */
int exact_square(int);
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int num;
  scanf("%d", &num);
  printf("%d", exact_square(num));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
mov    -0x8(%rbp),%edi
call   1040 <exact_square@plt>
mov    %eax,%esi
lea    0xea0(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xec4(%rip),%rbx
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
mov    0xc(%rsp),%edi
call   1040 <exact_square@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
%5 = call i32 @exact_square(i32 %4)
%6 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %5)
ret i32 0
}
int ft_isprint(int c) {
  if (c >= ' ' && c <= '~')
    return (1);
  else
    return (0);
}


x86 assembly (clang, -O0):
<ft_isprint>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0x20,-0x8(%rbp)
jl     1127 <ft_isprint+0x27>
cmpl   $0x7e,-0x8(%rbp)
jg     1127 <ft_isprint+0x27>
movl   $0x1,-0x4(%rbp)
jmp    112e <ft_isprint+0x2e>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_isprint>:
add    $0xffffffe0,%edi
xor    %eax,%eax
cmp    $0x5f,%edi
setb   %al
ret

LLVM IR (-O0):
define i32 @ft_isprint(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp sge i32 %4, 32
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load i32, i32* %3
%8 = icmp sle i32 %7, 126
br i1 %8, label %9, label %10
9: ; preds = %6
store i32 1, i32* %2
br label %11
10: ; preds = %6, %1
store i32 0, i32* %2
br label %11
11: ; preds = %10, %9
%12 = load i32, i32* %2
ret i32 %12
}

LLVM IR (-O2):
define i32 @ft_isprint(i32 %0) {
%2 = add i32 %0, -32
%3 = icmp ult i32 %2, 95
%4 = zext i1 %3 to i32
ret i32 %4
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int putc(int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *stdout;
int putchar(int c) {
  FILE *so = stdout;
  return (putc(c, so));
}


x86 assembly (clang, -O0):
<putchar>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    0x2ebe(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x10(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1030 <putc@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<putchar>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%rsi
jmp    1030 <putc@plt>

LLVM IR (-O0):
@stdout = global i32* null
define i32 @putchar(i32 %0) {
%2 = alloca i32
%3 = alloca i32*
store i32 %0, i32* %2
%4 = load i32*, i32** @stdout
store i32* %4, i32** %3
%5 = load i32, i32* %2
%6 = load i32*, i32** %3
%7 = call i32 @putc(i32 %5, i32* %6)
ret i32 %7
}

LLVM IR (-O2):
@stdout = global i32* null
define i32 @putchar(i32 %0) {
%2 = load i32*, i32** @stdout
%3 = tail call i32 @putc(i32 %0, i32* %2)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ EBADF;
#define STDERR_FILENO 130
#define STDIN_FILENO 129
#define STDOUT_FILENO 128
int /*<<< orphan*/ errno;
__attribute__((weak)) int _isatty(int file) {
  switch (file) {
  case STDOUT_FILENO:
  case STDERR_FILENO:
  case STDIN_FILENO:
    return 1;
  default:
    errno = EBADF;
    return 0;
  }
}


x86 assembly (clang, -O0):
<_isatty>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0xffffff80,%eax
sub    $0x2,%eax
ja     1127 <_isatty+0x27>
jmp    111b <_isatty+0x1b>
movl   $0x1,-0x4(%rbp)
jmp    1140 <_isatty+0x40>
mov    0x2eaa(%rip),%rax
mov    (%rax),%ecx
mov    0x2ea9(%rip),%rax
mov    %ecx,(%rax)
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<_isatty>:
add    $0xffffff80,%edi
mov    $0x1,%eax
cmp    $0x3,%edi
jb     1121 <_isatty+0x21>
mov    0x2ec4(%rip),%rax
mov    (%rax),%eax
mov    0x2ec3(%rip),%rcx
mov    %eax,(%rcx)
xor    %eax,%eax
ret

LLVM IR (-O0):
@EBADF = global i32 0
@errno = global i32 0
define weak i32 @_isatty(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %6 [
i32 128, label %5
i32 130, label %5
i32 129, label %5
]
5: ; preds = %1, %1, %1
store i32 1, i32* %2
br label %8
6: ; preds = %1
%7 = load i32, i32* @EBADF
store i32 %7, i32* @errno
store i32 0, i32* %2
br label %8
8: ; preds = %6, %5
%9 = load i32, i32* %2
ret i32 %9
}

LLVM IR (-O2):
@EBADF = global i32 0
@errno = global i32 0
define weak i32 @_isatty(i32 %0) {
%2 = add i32 %0, -128
%3 = icmp ult i32 %2, 3
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = load i32, i32* @EBADF
store i32 %5, i32* @errno
br label %6
6: ; preds = %1, %4
%7 = phi i32 [ 0, %4 ], [ 1, %1 ]
ret i32 %7
}
void answer_pause(void) {}


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

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

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

LLVM IR (-O2):
define void @answer_pause() {
ret void
}
/* Type definitions */
struct timeval {
  int tv_sec;
  int tv_usec;
};

/* Variables and functions */
int /*<<< orphan*/ gettimeofday(struct timeval *, int /*<<< orphan*/ *);
long get_msec(void) {
  long msec;
  struct timeval tv;
  gettimeofday(&tv, NULL);
  msec = (long)(tv.tv_sec * 1000 + (tv.tv_usec / 1000));
  return msec;
}


x86 assembly (clang, -O0):
<get_msec>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
lea    -0x10(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <gettimeofday@plt>
imul   $0x3e8,-0x10(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x3e8,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x14(%rbp),%eax
add    %ecx,%eax
cltq
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_msec>:
push   %rax
mov    %rsp,%rdi
xor    %esi,%esi
call   1030 <gettimeofday@plt>
movslq (%rsp),%rax
imul   $0x3e8,%rax,%rcx
movslq 0x4(%rsp),%rax
imul   $0x10624dd3,%rax,%rax
mov    %rax,%rdx
shr    $0x3f,%rdx
sar    $0x26,%rax
add    %edx,%eax
cltq
add    %rcx,%rax
pop    %rcx
ret

LLVM IR (-O0):
%struct.timeval = type { i32, i32 }
define i64 @get_msec() {
%1 = alloca i64
%2 = alloca %struct.timeval
%3 = call i32 @gettimeofday(%struct.timeval* %2, i32* null)
%4 = getelementptr inbounds %struct.timeval, %struct.timeval* %2, i32 0, i32 0
%5 = load i32, i32* %4
%6 = mul nsw i32 %5, 1000
%7 = getelementptr inbounds %struct.timeval, %struct.timeval* %2, i32 0, i32 1
%8 = load i32, i32* %7
%9 = sdiv i32 %8, 1000
%10 = add nsw i32 %6, %9
%11 = sext i32 %10 to i64
store i64 %11, i64* %1
%12 = load i64, i64* %1
ret i64 %12
}

LLVM IR (-O2):
%struct.timeval = type { i32, i32 }
define i64 @get_msec() {
%1 = alloca %struct.timeval
%2 = bitcast %struct.timeval* %1 to i8*
%3 = call i32 @gettimeofday(%struct.timeval* %1, i32* null)
%4 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 0
%5 = load i32, i32* %4
%6 = mul nsw i32 %5, 1000
%7 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 1
%8 = load i32, i32* %7
%9 = sdiv i32 %8, 1000
%10 = add nsw i32 %9, %6
%11 = sext i32 %10 to i64
ret i64 %11
}
int Cyc_RemoveLabels_visit_label_f1(struct Cyc_RemoveLabels_LabelBin *lb,
                                    struct Cyc_Absyn_Exp *e) {
  return 1;
}


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

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

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

LLVM IR (-O2):
%struct.Cyc_RemoveLabels_LabelBin = type opaque
%struct.Cyc_Absyn_Exp = type opaque
define i32 @Cyc_RemoveLabels_visit_label_f1(%struct.Cyc_RemoveLabels_LabelBin* nocapture readnone %0, %struct.Cyc_Absyn_Exp* nocapture readnone %1) {
ret i32 1
}
void f() {
  char a;
  int b;
  void *data = &a;
  b = *(int *)(data);
}


x86 assembly (clang, -O0):
<f>:
push   %rbp
mov    %rsp,%rbp
lea    -0x1(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x8(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @f() {
%1 = alloca i8
%2 = alloca i32
%3 = alloca i8*
store i8* %1, i8** %3
%4 = load i8*, i8** %3
%5 = bitcast i8* %4 to i32*
%6 = load i32, i32* %5
store i32 %6, i32* %2
ret void
}

LLVM IR (-O2):
define void @f() {
ret void
}
int test_imm_B5uint64_highword_mem(unsigned long long *val) {
  return ((*val >> 32) & (0xB5 << 0)) ? -20 : -40;
}


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

x86 assembly (clang, -O2):
<test_imm_B5uint64_highword_mem>:
testb  $0xb5,0x4(%rdi)
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @test_imm_B5uint64_highword_mem(i64* nocapture %0) {
%2 = load i64, i64* %0
%3 = and i64 %2, 777389080576
%4 = icmp eq i64 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ ntohl(int /*<<< orphan*/);
const char *unpack_u32(uint32_t *data, const char *buffer) {
  *data = ntohl(*((uint32_t *)buffer));
  return buffer + sizeof(*data);
}


x86 assembly (clang, -O0):
<unpack_u32>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%edi
call   1030 <ntohl@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x10(%rbp),%rax
add    $0x4,%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<unpack_u32>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
mov    (%rsi),%edi
call   1030 <ntohl@plt>
mov    %eax,(%r14)
add    $0x4,%rbx
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i8* @unpack_u32(i32* %0, i8* %1) {
%3 = alloca i32*
%4 = alloca i8*
store i32* %0, i32** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %4
%6 = bitcast i8* %5 to i32*
%7 = load i32, i32* %6
%8 = call i32 @ntohl(i32 %7)
%9 = load i32*, i32** %3
store i32 %8, i32* %9
%10 = load i8*, i8** %4
%11 = getelementptr inbounds i8, i8* %10, i64 4
ret i8* %11
}

LLVM IR (-O2):
define i8* @unpack_u32(i32* nocapture writeonly %0, i8* %1) {
%3 = bitcast i8* %1 to i32*
%4 = load i32, i32* %3
%5 = tail call i32 @ntohl(i32 %4)
store i32 %5, i32* %0
%6 = getelementptr inbounds i8, i8* %1, i64 4
ret i8* %6
}
/* Variables and functions */
long double __qacos(long double);
long double intr_wrap_003(long double p1) { return __qacos(p1); }


x86 assembly (clang, -O0):
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
fldt   0x10(%rbp)
fstpt  -0x10(%rbp)
fldt   -0x10(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
call   1030 <__qacos@plt>
fld    %st(0)
fstp   %st(0)
add    $0x20,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define x86_fp80 @intr_wrap_003(x86_fp80 %0) {
%2 = tail call x86_fp80 @__qacos(x86_fp80 %0)
ret x86_fp80 %2
}
/* Variables and functions */
int __VERIFIER_nondet_int();
int main() {
  int i;
  i = __VERIFIER_nondet_int();
  while (i != 0) {
    if (i > 5) {
      i = i + 1;
    } else {
      if (i < -5) {
        i = i - 1;
      } else {
        i = 0;
      }
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
je     1174 <main+0x64>
cmpl   $0x5,-0x8(%rbp)
jle    114b <main+0x3b>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    116f <main+0x5f>
cmpl   $0xfffffffb,-0x8(%rbp)
jge    1163 <main+0x53>
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    116a <main+0x5a>
movl   $0x0,-0x8(%rbp)
jmp    116f <main+0x5f>
jmp    1129 <main+0x19>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
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
store i32 0, i32* %1
%3 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %3, i32* %2
br label %4
4: ; preds = %21, %0
%5 = load i32, i32* %2
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %22
7: ; preds = %4
%8 = load i32, i32* %2
%9 = icmp sgt i32 %8, 5
br i1 %9, label %10, label %13
10: ; preds = %7
%11 = load i32, i32* %2
%12 = add nsw i32 %11, 1
store i32 %12, i32* %2
br label %21
13: ; preds = %7
%14 = load i32, i32* %2
%15 = icmp slt i32 %14, -5
br i1 %15, label %16, label %19
16: ; preds = %13
%17 = load i32, i32* %2
%18 = sub nsw i32 %17, 1
store i32 %18, i32* %2
br label %20
19: ; preds = %13
store i32 0, i32* %2
br label %20
20: ; preds = %19, %16
br label %21
21: ; preds = %20, %10
br label %4
22: ; preds = %4
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @__VERIFIER_nondet_int()
ret i32 0
}
/* Variables and functions */
int ph_rpc2(char const *, scalar_t__);
scalar_t__ strlen(char const *);
int ph_rpc(const char *req) { return ph_rpc2(req, strlen(req) + 1); }


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

x86 assembly (clang, -O2):
<ph_rpc>:
push   %rbx
mov    %rdi,%rbx
call   1030 <strlen@plt>
lea    0x1(%rax),%rsi
mov    %rbx,%rdi
pop    %rbx
jmp    1040 <ph_rpc2@plt>

LLVM IR (-O0):
define i32 @ph_rpc(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = load i8*, i8** %2
%5 = call i64 @strlen(i8* %4)
%6 = add nsw i64 %5, 1
%7 = call i32 @ph_rpc2(i8* %3, i64 %6)
ret i32 %7
}

LLVM IR (-O2):
define i32 @ph_rpc(i8* %0) {
%2 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%3 = add nsw i64 %2, 1
%4 = tail call i32 @ph_rpc2(i8* %0, i64 %3)
ret i32 %4
}
float floatTest(float value) { return value; }


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

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

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

LLVM IR (-O2):
define float @floatTest(float returned %0) {
ret float %0
}
/* Variables and functions */
int /*<<< orphan*/ get_filename_from_path(char *);
int /*<<< orphan*/ populate_blacklist(char *);
scalar_t__ strcmp(char *, int /*<<< orphan*/);
void handle_file(char *name, char *full_path) {
  if (strcmp(name, get_filename_from_path(full_path)) == 0) {
    populate_blacklist(full_path);
  }
}


x86 assembly (clang, -O0):
<handle_file>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <get_filename_from_path@plt>
mov    -0x18(%rbp),%rdi
mov    %eax,%esi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    116f <handle_file+0x3f>
mov    -0x10(%rbp),%rdi
call   1040 <populate_blacklist@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<handle_file>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
mov    %rsi,%rdi
call   1030 <get_filename_from_path@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1159 <handle_file+0x29>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
mov    %r14,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <populate_blacklist@plt>

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

LLVM IR (-O2):
define void @handle_file(i8* %0, i8* %1) {
%3 = tail call i32 @get_filename_from_path(i8* %1)
%4 = tail call i64 @strcmp(i8* %0, i32 %3)
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %2
%7 = tail call i32 @populate_blacklist(i8* %1)
br label %8
8: ; preds = %6, %2
ret void
}
void SumSquareError_C() {}


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

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

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

LLVM IR (-O2):
define void @SumSquareError_C() {
ret void
}
unsigned int mii_nway_result(unsigned int negotiated) {
  unsigned int ret;
  if (negotiated & 0x0100)
    ret = 0x0100;
  else if (negotiated & 0x0200)
    ret = 0x0200;
  else if (negotiated & 0x0080)
    ret = 0x0080;
  else if (negotiated & 0x0040)
    ret = 0x0040;
  else
    ret = 0x0020;
  return ret;
}


x86 assembly (clang, -O0):
<mii_nway_result>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0x100,%eax
cmp    $0x0,%eax
je     1124 <mii_nway_result+0x24>
movl   $0x100,-0x8(%rbp)
jmp    118f <mii_nway_result+0x8f>
mov    -0x4(%rbp),%eax
and    $0x200,%eax
cmp    $0x0,%eax
je     1141 <mii_nway_result+0x41>
movl   $0x200,-0x8(%rbp)
jmp    118a <mii_nway_result+0x8a>
mov    -0x4(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     115e <mii_nway_result+0x5e>
movl   $0x80,-0x8(%rbp)
jmp    1185 <mii_nway_result+0x85>
mov    -0x4(%rbp),%eax
and    $0x40,%eax
cmp    $0x0,%eax
je     1179 <mii_nway_result+0x79>
movl   $0x40,-0x8(%rbp)
jmp    1180 <mii_nway_result+0x80>
movl   $0x20,-0x8(%rbp)
jmp    1185 <mii_nway_result+0x85>
jmp    118a <mii_nway_result+0x8a>
jmp    118f <mii_nway_result+0x8f>
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<mii_nway_result>:
mov    $0x100,%eax
test   $0x100,%edi
jne    112f <mii_nway_result+0x2f>
mov    $0x200,%eax
test   $0x200,%edi
jne    112f <mii_nway_result+0x2f>
mov    $0x80,%eax
test   $0x80,%dil
jne    112f <mii_nway_result+0x2f>
and    $0x40,%edi
shr    %edi
add    $0x20,%edi
mov    %edi,%eax
ret

LLVM IR (-O0):
define i32 @mii_nway_result(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = and i32 %4, 256
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 256, i32* %3
br label %27
8: ; preds = %1
%9 = load i32, i32* %2
%10 = and i32 %9, 512
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %8
store i32 512, i32* %3
br label %26
13: ; preds = %8
%14 = load i32, i32* %2
%15 = and i32 %14, 128
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %13
store i32 128, i32* %3
br label %25
18: ; preds = %13
%19 = load i32, i32* %2
%20 = and i32 %19, 64
%21 = icmp ne i32 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %18
store i32 64, i32* %3
br label %24
23: ; preds = %18
store i32 32, i32* %3
br label %24
24: ; preds = %23, %22
br label %25
25: ; preds = %24, %17
br label %26
26: ; preds = %25, %12
br label %27
27: ; preds = %26, %7
%28 = load i32, i32* %3
ret i32 %28
}

LLVM IR (-O2):
define i32 @mii_nway_result(i32 %0) {
%2 = and i32 %0, 256
%3 = icmp eq i32 %2, 0
br i1 %3, label %4, label %14
4: ; preds = %1
%5 = and i32 %0, 512
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %14
7: ; preds = %4
%8 = and i32 %0, 128
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %7
%11 = and i32 %0, 64
%12 = icmp eq i32 %11, 0
%13 = select i1 %12, i32 32, i32 64
br label %14
14: ; preds = %10, %7, %4, %1
%15 = phi i32 [ 256, %1 ], [ 512, %4 ], [ 128, %7 ], [ %13, %10 ]
ret i32 %15
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void banner_stars(void) {
  printf("                ***************************************\n");
}


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

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

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

LLVM IR (-O2):
@str = [56 x i8] c" ***************************************\00"
define void @banner_stars() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str, i64 0, i64 0))
ret void
}
void gtk_handle_box_set_shadow_type() {}


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

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

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

LLVM IR (-O2):
define void @gtk_handle_box_set_shadow_type() {
ret void
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
uint32_t s1(uint32_t w) {
  return (((w) >> (17)) | ((w) << (32 - (17)))) ^
         (((w) >> (19)) | ((w) << (32 - (19)))) ^ (w >> 10);
}


x86 assembly (clang, -O0):
<s1>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
sar    $0x11,%eax
mov    -0x4(%rbp),%ecx
shl    $0xf,%ecx
or     %ecx,%eax
mov    -0x4(%rbp),%ecx
sar    $0x13,%ecx
mov    -0x4(%rbp),%edx
shl    $0xd,%edx
or     %edx,%ecx
xor    %ecx,%eax
mov    -0x4(%rbp),%ecx
sar    $0xa,%ecx
xor    %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<s1>:
mov    %edi,%eax
sar    $0x11,%eax
mov    %edi,%ecx
shl    $0xf,%ecx
or     %eax,%ecx
mov    %edi,%edx
sar    $0x13,%edx
mov    %edi,%eax
shl    $0xd,%eax
or     %edx,%eax
sar    $0xa,%edi
xor    %edi,%eax
xor    %ecx,%eax
ret

LLVM IR (-O0):
define i32 @s1(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = ashr i32 %3, 17
%5 = load i32, i32* %2
%6 = shl i32 %5, 15
%7 = or i32 %4, %6
%8 = load i32, i32* %2
%9 = ashr i32 %8, 19
%10 = load i32, i32* %2
%11 = shl i32 %10, 13
%12 = or i32 %9, %11
%13 = xor i32 %7, %12
%14 = load i32, i32* %2
%15 = ashr i32 %14, 10
%16 = xor i32 %13, %15
ret i32 %16
}

LLVM IR (-O2):
define i32 @s1(i32 %0) {
%2 = ashr i32 %0, 17
%3 = shl i32 %0, 15
%4 = or i32 %2, %3
%5 = ashr i32 %0, 19
%6 = shl i32 %0, 13
%7 = or i32 %5, %6
%8 = ashr i32 %0, 10
%9 = xor i32 %7, %8
%10 = xor i32 %9, %4
ret i32 %10
}
/* Variables and functions */
int /*<<< orphan*/ secFree(char **);
void freeSortedPath(char **cpp_path, int i_num_folders) {
  for (int i_current_folder = 0; i_current_folder < i_num_folders;
       i_current_folder++)
    secFree(&(cpp_path[i_current_folder]));
  secFree(cpp_path);
}


x86 assembly (clang, -O0):
<freeSortedPath>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1154 <freeSortedPath+0x44>
mov    -0x8(%rbp),%rdi
movslq -0x10(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdi
call   1030 <secFree@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1126 <freeSortedPath+0x16>
mov    -0x8(%rbp),%rdi
call   1030 <secFree@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<freeSortedPath>:
push   %r15
push   %r14
push   %rbx
mov    %rdi,%r14
test   %esi,%esi
jle    1142 <freeSortedPath+0x32>
mov    %esi,%r15d
mov    %r14,%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %rbx,%rdi
call   1030 <secFree@plt>
add    $0x8,%rbx
add    $0xffffffffffffffff,%r15
jne    1130 <freeSortedPath+0x20>
mov    %r14,%rdi
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <secFree@plt>

LLVM IR (-O0):
define void @freeSortedPath(i8** %0, i32 %1) {
%3 = alloca i8**
%4 = alloca i32
%5 = alloca i32
store i8** %0, i8*** %3
store i32 %1, i32* %4
store i32 0, i32* %5
br label %6
6: ; preds = %16, %2
%7 = load i32, i32* %5
%8 = load i32, i32* %4
%9 = icmp slt i32 %7, %8
br i1 %9, label %10, label %19
10: ; preds = %6
%11 = load i8**, i8*** %3
%12 = load i32, i32* %5
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds i8*, i8** %11, i64 %13
%15 = call i32 @secFree(i8** %14)
br label %16
16: ; preds = %10
%17 = load i32, i32* %5
%18 = add nsw i32 %17, 1
store i32 %18, i32* %5
br label %6
19: ; preds = %6
%20 = load i8**, i8*** %3
%21 = call i32 @secFree(i8** %20)
ret void
}

LLVM IR (-O2):
define void @freeSortedPath(i8** %0, i32 %1) {
%3 = icmp sgt i32 %1, 0
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = zext i32 %1 to i64
br label %8
6: ; preds = %8, %2
%7 = tail call i32 @secFree(i8** %0)
ret void
8: ; preds = %4, %8
%9 = phi i64 [ 0, %4 ], [ %12, %8 ]
%10 = getelementptr inbounds i8*, i8** %0, i64 %9
%11 = tail call i32 @secFree(i8** %10)
%12 = add nuw nsw i64 %9, 1
%13 = icmp eq i64 %12, %5
br i1 %13, label %6, label %8
}
int ft_indexof(char *str, char c) {
  int i;
  i = 0;
  while (str[i] != '\0') {
    if (str[i] == c)
      return (i);
    ++i;
  }
  return (-1);
}


x86 assembly (clang, -O0):
<ft_indexof>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %rdi,-0x10(%rbp)
mov    %al,-0x11(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
je     115b <ft_indexof+0x5b>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
movsbl -0x11(%rbp),%ecx
cmp    %ecx,%eax
jne    114d <ft_indexof+0x4d>
mov    -0x18(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1162 <ft_indexof+0x62>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1115 <ft_indexof+0x15>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_indexof>:
mov    (%rdi),%dl
mov    $0xffffffff,%eax
test   %dl,%dl
je     1122 <ft_indexof+0x22>
xor    %ecx,%ecx
nopl   (%rax)
cmp    %sil,%dl
je     1123 <ft_indexof+0x23>
movzbl 0x1(%rdi,%rcx,1),%edx
add    $0x1,%rcx
test   %dl,%dl
jne    1110 <ft_indexof+0x10>
ret
mov    %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @ft_indexof(i8* nocapture %0, i8 signext %1) {
%3 = load i8, i8* %0
%4 = icmp eq i8 %3, 0
br i1 %4, label %16, label %5
5: ; preds = %2, %9
%6 = phi i64 [ %10, %9 ], [ 0, %2 ]
%7 = phi i8 [ %12, %9 ], [ %3, %2 ]
%8 = icmp eq i8 %7, %1
br i1 %8, label %14, label %9
9: ; preds = %5
%10 = add nuw i64 %6, 1
%11 = getelementptr inbounds i8, i8* %0, i64 %10
%12 = load i8, i8* %11
%13 = icmp eq i8 %12, 0
br i1 %13, label %16, label %5
14: ; preds = %5
%15 = trunc i64 %6 to i32
br label %16
16: ; preds = %9, %14, %2
%17 = phi i32 [ -1, %2 ], [ %15, %14 ], [ -1, %9 ]
ret i32 %17
}
/* Variables and functions */
int /*<<< orphan*/ ERR_print_errors_fp(int /*<<< orphan*/);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ stderr;
void handleErrors() {
  ERR_print_errors_fp(stderr);
  exit(1);
}


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

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

LLVM IR (-O0):
@stderr = global i32 0
define void @handleErrors() {
%1 = load i32, i32* @stderr
%2 = call i32 @ERR_print_errors_fp(i32 %1)
%3 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
define void @handleErrors() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @ERR_print_errors_fp(i32 %1)
%3 = tail call i32 @exit(i32 1)
unreachable
}
/* Type definitions */
typedef int /*<<< orphan*/ va_list;

/* Variables and functions */
int vprintf(char const *, int /*<<< orphan*/);
int sarvprintf_std(const char *format, va_list args) {
  return vprintf(format, args);
}


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

x86 assembly (clang, -O2):
<sarvprintf_std>:
jmp    1030 <vprintf@plt>

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

LLVM IR (-O2):
define i32 @sarvprintf_std(i8* nocapture %0, i32 %1) {
%3 = tail call i32 @vprintf(i8* %0, i32 %1)
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ fb_write_cell(int /*<<< orphan*/, char, int, int);
void fb_write_test() { fb_write_cell(0, 'A', 2, 8); }


x86 assembly (clang, -O0):
<fb_write_test>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
mov    $0x41,%esi
mov    $0x2,%edx
mov    $0x8,%ecx
call   1030 <fb_write_cell@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<fb_write_test>:
xor    %edi,%edi
mov    $0x41,%esi
mov    $0x2,%edx
mov    $0x8,%ecx
jmp    1030 <fb_write_cell@plt>

LLVM IR (-O0):
define void @fb_write_test() {
%1 = call i32 @fb_write_cell(i32 0, i8 signext 65, i32 2, i32 8)
ret void
}

LLVM IR (-O2):
define void @fb_write_test() {
%1 = tail call i32 @fb_write_cell(i32 0, i8 signext 65, i32 2, i32 8)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
scalar_t__ EOF;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
scalar_t__ fputs(char *, int /*<<< orphan*/ *);
int /*<<< orphan*/ stderr;
int output_rules(FILE *pOutput) {
  int iRetval = 0;
  if (EOF == fputs("\n"
                   "!if \"$(MANIFEST_LEVEL)\"==\"RULES\""
                   "\n",
                   pOutput)) {
    fprintf(stderr, "MANTOMAK:  Error writing to file....\n");
    iRetval = 1;
  }
  return (iRetval);
}


x86 assembly (clang, -O0):
<output_rules>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    0x2eae(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xeb4(%rip),%rdi
call   1030 <fputs@plt>
mov    %rax,%rcx
mov    -0x18(%rbp),%rax
cmp    %rcx,%rax
jne    117d <output_rules+0x5d>
mov    0x2e70(%rip),%rax
mov    (%rax),%edi
lea    0xeb2(%rip),%rsi
call   1040 <fprintf@plt>
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<output_rules>:
push   %rbx
mov    %rdi,%rsi
mov    0x2ebd(%rip),%rax
mov    (%rax),%rbx
lea    0xecb(%rip),%rdi
call   1030 <fputs@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    %rcx,%rbx
jne    115e <output_rules+0x3e>
mov    0x2e8d(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
call   1040 <fprintf@plt>
mov    $0x1,%eax
pop    %rbx
ret

LLVM IR (-O0):
@EOF = global i64 0
@.str = [35 x i8] c"\0A!if \22$(MANIFEST_LEVEL)\22==\22RULES\22\0A\00"
@stderr = global i32 0
@.str.1 = [38 x i8] c"MANTOMAK: Error writing to file....\0A\00"
define i32 @output_rules(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
store i32* %0, i32** %2
store i32 0, i32* %3
%4 = load i64, i64* @EOF
%5 = load i32*, i32** %2
%6 = call i64 @fputs(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32* %5)
%7 = icmp eq i64 %4, %6
br i1 %7, label %8, label %11
8: ; preds = %1
%9 = load i32, i32* @stderr
%10 = call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %3
br label %11
11: ; preds = %8, %1
%12 = load i32, i32* %3
ret i32 %12
}

LLVM IR (-O2):
@EOF = global i64 0
@.str = [35 x i8] c"\0A!if \22$(MANIFEST_LEVEL)\22==\22RULES\22\0A\00"
@stderr = global i32 0
@.str.1 = [38 x i8] c"MANTOMAK: Error writing to file....\0A\00"
define i32 @output_rules(i32* nocapture %0) {
%2 = load i64, i64* @EOF
%3 = tail call i64 @fputs(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32* %0)
%4 = icmp eq i64 %2, %3
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, i32* @stderr
%7 = tail call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
br label %8
8: ; preds = %5, %1
%9 = phi i32 [ 1, %5 ], [ 0, %1 ]
ret i32 %9
}
int compute_mantissa_size_final(int mant_cnt[5]) {
  int bits = (mant_cnt[1] / 3) * 5;
  bits += ((mant_cnt[2] / 3) + (mant_cnt[4] >> 1)) * 7;
  bits += mant_cnt[3] * 3;
  return bits;
}


x86 assembly (clang, -O0):
<compute_mantissa_size_final>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    0x4(%rax),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
imul   $0x5,%eax,%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    -0x8(%rbp),%rcx
mov    0x10(%rcx),%ecx
sar    $0x1,%ecx
add    %ecx,%eax
imul   $0x7,%eax,%eax
add    -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rax
imul   $0x3,0xc(%rax),%eax
add    -0xc(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<compute_mantissa_size_final>:
movslq 0x4(%rdi),%rax
imul   $0x55555556,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
shr    $0x20,%rax
add    %ecx,%eax
lea    (%rax,%rax,4),%ecx
movslq 0x8(%rdi),%rax
imul   $0x55555556,%rax,%rax
mov    %rax,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rax
add    %edx,%eax
mov    0xc(%rdi),%edx
mov    0x10(%rdi),%esi
sar    %esi
add    %eax,%esi
lea    0x0(,%rsi,8),%edi
sub    %esi,%edi
lea    (%rdx,%rdx,2),%eax
add    %ecx,%eax
add    %edi,%eax
ret

LLVM IR (-O0):
define i32 @compute_mantissa_size_final(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
store i32* %0, i32** %2
%4 = load i32*, i32** %2
%5 = getelementptr inbounds i32, i32* %4, i64 1
%6 = load i32, i32* %5
%7 = sdiv i32 %6, 3
%8 = mul nsw i32 %7, 5
store i32 %8, i32* %3
%9 = load i32*, i32** %2
%10 = getelementptr inbounds i32, i32* %9, i64 2
%11 = load i32, i32* %10
%12 = sdiv i32 %11, 3
%13 = load i32*, i32** %2
%14 = getelementptr inbounds i32, i32* %13, i64 4
%15 = load i32, i32* %14
%16 = ashr i32 %15, 1
%17 = add nsw i32 %12, %16
%18 = mul nsw i32 %17, 7
%19 = load i32, i32* %3
%20 = add nsw i32 %19, %18
store i32 %20, i32* %3
%21 = load i32*, i32** %2
%22 = getelementptr inbounds i32, i32* %21, i64 3
%23 = load i32, i32* %22
%24 = mul nsw i32 %23, 3
%25 = load i32, i32* %3
%26 = add nsw i32 %25, %24
store i32 %26, i32* %3
%27 = load i32, i32* %3
ret i32 %27
}

LLVM IR (-O2):
define i32 @compute_mantissa_size_final(i32* nocapture %0) {
%2 = getelementptr inbounds i32, i32* %0, i64 1
%3 = load i32, i32* %2
%4 = sdiv i32 %3, 3
%5 = mul nsw i32 %4, 5
%6 = getelementptr inbounds i32, i32* %0, i64 2
%7 = load i32, i32* %6
%8 = sdiv i32 %7, 3
%9 = getelementptr inbounds i32, i32* %0, i64 4
%10 = load i32, i32* %9
%11 = ashr i32 %10, 1
%12 = add nsw i32 %11, %8
%13 = mul nsw i32 %12, 7
%14 = getelementptr inbounds i32, i32* %0, i64 3
%15 = load i32, i32* %14
%16 = mul nsw i32 %15, 3
%17 = add i32 %16, %5
%18 = add i32 %17, %13
ret i32 %18
}