xunge/DecIR huggingface dataset:
/* Type definitions */
struct task_struct {
  int dummy;
};
struct rq {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ BUG();
void switched_to_stop(struct rq *rq, struct task_struct *p) { BUG(); }


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

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

LLVM IR (-O0):
%struct.rq = type { i32 }
%struct.task_struct = type { i32 }
define void @switched_to_stop(%struct.rq* %0, %struct.task_struct* %1) {
%3 = alloca %struct.rq*
%4 = alloca %struct.task_struct*
store %struct.rq* %0, %struct.rq** %3
store %struct.task_struct* %1, %struct.task_struct** %4
%5 = call i32 (...) @BUG()
ret void
}

LLVM IR (-O2):
%struct.rq = type { i32 }
%struct.task_struct = type { i32 }
define void @switched_to_stop(%struct.rq* nocapture readnone %0, %struct.task_struct* nocapture readnone %1) {
%3 = tail call i32 (...) @BUG()
ret void
}
int restoQuozienteDueNumeri(int numeroA, int numeroB) {
  return (numeroA % numeroB);
}


x86 assembly (clang, -O0):
<restoQuozienteDueNumeri>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
cltd
idivl  -0x8(%rbp)
mov    %edx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<restoQuozienteDueNumeri>:
mov    %edi,%eax
cltd
idiv   %esi
mov    %edx,%eax
ret

LLVM IR (-O0):
define i32 @restoQuozienteDueNumeri(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 = srem i32 %5, %6
ret i32 %7
}

LLVM IR (-O2):
define i32 @restoQuozienteDueNumeri(i32 %0, i32 %1) {
%3 = srem i32 %0, %1
ret i32 %3
}
/* Variables and functions */
unsigned int rnd_rand(int *);
unsigned char salt_prob(int *g_seed) {
  unsigned int random = rnd_rand(g_seed);
  random = random >> 8;
  random = random % 0xFF;
  return (unsigned char)random;
}


x86 assembly (clang, -O0):
<salt_prob>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <rnd_rand@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
shr    $0x8,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    $0xff,%ecx
xor    %edx,%edx
div    %ecx
mov    %edx,-0xc(%rbp)
mov    -0xc(%rbp),%eax
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<salt_prob>:
push   %rax
call   1030 <rnd_rand@plt>
shr    $0x8,%eax
mov    $0x80808081,%ecx
imul   %rax,%rcx
shr    $0x27,%rcx
add    %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
define zeroext i8 @salt_prob(i32* %0) {
%2 = alloca i32*
%3 = alloca i32
store i32* %0, i32** %2
%4 = load i32*, i32** %2
%5 = call i32 @rnd_rand(i32* %4)
store i32 %5, i32* %3
%6 = load i32, i32* %3
%7 = lshr i32 %6, 8
store i32 %7, i32* %3
%8 = load i32, i32* %3
%9 = urem i32 %8, 255
store i32 %9, i32* %3
%10 = load i32, i32* %3
%11 = trunc i32 %10 to i8
ret i8 %11
}

LLVM IR (-O2):
define zeroext i8 @salt_prob(i32* %0) {
%2 = tail call i32 @rnd_rand(i32* %0)
%3 = lshr i32 %2, 8
%4 = urem i32 %3, 255
%5 = trunc i32 %4 to i8
ret i8 %5
}
void *memq_init(void *link, void **head, void **tail) {
  *head = *tail = link;
  return link;
}


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

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

LLVM IR (-O0):
define i8* @memq_init(i8* %0, i8** %1, i8** %2) {
%4 = alloca i8*
%5 = alloca i8**
%6 = alloca i8**
store i8* %0, i8** %4
store i8** %1, i8*** %5
store i8** %2, i8*** %6
%7 = load i8*, i8** %4
%8 = load i8**, i8*** %6
store i8* %7, i8** %8
%9 = load i8**, i8*** %5
store i8* %7, i8** %9
%10 = load i8*, i8** %4
ret i8* %10
}

LLVM IR (-O2):
define i8* @memq_init(i8* returned %0, i8** nocapture writeonly %1, i8** nocapture writeonly %2) {
store i8* %0, i8** %2
store i8* %0, i8** %1
ret i8* %0
}
/* Type definitions */
typedef int uint16_t;

/* Variables and functions */
size_t knot_rdata_size(uint16_t len) {
  return sizeof(uint16_t) + len + (len & 1);
}


x86 assembly (clang, -O0):
<knot_rdata_size>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movslq -0x4(%rbp),%rax
add    $0x4,%rax
mov    -0x4(%rbp),%ecx
and    $0x1,%ecx
movslq %ecx,%rcx
add    %rcx,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<knot_rdata_size>:
movslq %edi,%rax
mov    %eax,%ecx
and    $0x1,%ecx
add    %rcx,%rax
add    $0x4,%rax
ret

LLVM IR (-O0):
define i64 @knot_rdata_size(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = sext i32 %3 to i64
%5 = add i64 4, %4
%6 = load i32, i32* %2
%7 = and i32 %6, 1
%8 = sext i32 %7 to i64
%9 = add i64 %5, %8
ret i64 %9
}

LLVM IR (-O2):
define i64 @knot_rdata_size(i32 %0) {
%2 = sext i32 %0 to i64
%3 = add nsw i64 %2, 4
%4 = and i32 %0, 1
%5 = zext i32 %4 to i64
%6 = add nsw i64 %3, %5
ret i64 %6
}
/* Type definitions */
struct eembed_log {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ eembed_sprintf_append(struct eembed_log *, char *, char);
void eembed_sprintf_append_c(struct eembed_log *log, char c) {
  eembed_sprintf_append(log, "%c", c);
}


x86 assembly (clang, -O0):
<eembed_sprintf_append_c>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %sil,%al
mov    %rdi,-0x8(%rbp)
mov    %al,-0x9(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed3(%rip),%rsi
movsbl -0x9(%rbp),%edx
call   1030 <eembed_sprintf_append@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<eembed_sprintf_append_c>:
mov    %esi,%edx
lea    0xee7(%rip),%rsi
jmp    1030 <eembed_sprintf_append@plt>

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

LLVM IR (-O2):
%struct.eembed_log = type { i32 }
@.str = [3 x i8] c"%c\00"
define void @eembed_sprintf_append_c(%struct.eembed_log* %0, i8 signext %1) {
%3 = tail call i32 @eembed_sprintf_append(%struct.eembed_log* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext %1)
ret void
}
/* Type definitions */
typedef enum nss_status { ____Placeholder_nss_status } nss_status;

/* Variables and functions */
int /*<<< orphan*/ exfiles_trace_msg(char *);
int nss_exfiles_setup();
enum nss_status _nss_exfiles_setgrent(void) {
  exfiles_trace_msg("Entering _nss_exfiles_setgrent");
  return nss_exfiles_setup();
}


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

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

LLVM IR (-O0):
@.str = [31 x i8] c"Entering _nss_exfiles_setgrent\00"
define i32 @_nss_exfiles_setgrent() {
%1 = call i32 @exfiles_trace_msg(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (...) @nss_exfiles_setup()
ret i32 %2
}

LLVM IR (-O2):
@.str = [31 x i8] c"Entering _nss_exfiles_setgrent\00"
define i32 @_nss_exfiles_setgrent() {
%1 = tail call i32 @exfiles_trace_msg(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (...) @nss_exfiles_setup()
ret i32 %2
}
/* Variables and functions */
int mu_precomp(int);
double mu_ij_precomp(int spec_i, int spec_j) {
  return (mu_precomp(spec_i) + mu_precomp(spec_j)) / 2;
}


x86 assembly (clang, -O0):
<mu_ij_precomp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <mu_precomp@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <mu_precomp@plt>
mov    %eax,%ecx
mov    -0xc(%rbp),%eax
add    %ecx,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mu_ij_precomp>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebx
call   1030 <mu_precomp@plt>
mov    %eax,%ebp
mov    %ebx,%edi
call   1030 <mu_precomp@plt>
add    %ebp,%eax
mov    %eax,%ecx
shr    $0x1f,%ecx
add    %eax,%ecx
sar    %ecx
cvtsi2sd %ecx,%xmm0
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define double @mu_ij_precomp(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 = call i32 @mu_precomp(i32 %5)
%7 = load i32, i32* %4
%8 = call i32 @mu_precomp(i32 %7)
%9 = add nsw i32 %6, %8
%10 = sdiv i32 %9, 2
%11 = sitofp i32 %10 to double
ret double %11
}

LLVM IR (-O2):
define double @mu_ij_precomp(i32 %0, i32 %1) {
%3 = tail call i32 @mu_precomp(i32 %0)
%4 = tail call i32 @mu_precomp(i32 %1)
%5 = add nsw i32 %4, %3
%6 = sdiv i32 %5, 2
%7 = sitofp i32 %6 to double
ret double %7
}
/* Type definitions */
typedef int /*<<< orphan*/ mpz_t;

/* Variables and functions */
int /*<<< orphan*/ mpz_add(int /*<<< orphan*/, int /*<<< orphan*/,
                           int /*<<< orphan*/);
void _mpzadd(mpz_t ret, mpz_t a, mpz_t b) { mpz_add(ret, a, b); }


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

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

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

LLVM IR (-O2):
define void @_mpzadd(i32 %0, i32 %1, i32 %2) {
%4 = tail call i32 @mpz_add(i32 %0, i32 %1, i32 %2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ break_function();
void *thread_function(void *arg) {
  break_function();
  return arg;
}


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

x86 assembly (clang, -O2):
<thread_function>:
push   %rbx
mov    %rdi,%rbx
xor    %eax,%eax
call   1030 <break_function@plt>
mov    %rbx,%rax
pop    %rbx
ret

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

LLVM IR (-O2):
define i8* @thread_function(i8* readnone returned %0) {
%2 = tail call i32 (...) @break_function()
ret i8* %0
}
/* Variables and functions */
int atoi(char const *);
char *getenv(char const *);
int redo_getenv_int(const char *k, int def) {
  const char *v = getenv(k);
  return v ? atoi(v) : def;
}


x86 assembly (clang, -O0):
<redo_getenv_int>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     1158 <redo_getenv_int+0x38>
mov    -0x18(%rbp),%rdi
call   1040 <atoi@plt>
mov    %eax,-0x1c(%rbp)
jmp    115e <redo_getenv_int+0x3e>
mov    -0xc(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<redo_getenv_int>:
push   %rbx
mov    %esi,%ebx
call   1030 <getenv@plt>
test   %rax,%rax
je     1136 <redo_getenv_int+0x16>
mov    %rax,%rdi
pop    %rbx
jmp    1040 <atoi@plt>
mov    %ebx,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @redo_getenv_int(i8* nocapture %0, i32 %1) {
%3 = tail call i8* @getenv(i8* %0)
%4 = icmp eq i8* %3, null
br i1 %4, label %7, label %5
5: ; preds = %2
%6 = tail call i32 @atoi(i8* %3)
br label %7
7: ; preds = %2, %5
%8 = phi i32 [ %6, %5 ], [ %1, %2 ]
ret i32 %8
}
char *glp_lib_strspx(char *str) {
  char *s, *t;
  for (s = t = str; *s; s++)
    if (*s != ' ')
      *t++ = *s;
  *t = '\0';
  return str;
}


x86 assembly (clang, -O0):
<glp_lib_strspx>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cmpb   $0x0,(%rax)
je     115e <glp_lib_strspx+0x5e>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
je     1148 <glp_lib_strspx+0x48>
mov    -0x10(%rbp),%rax
mov    (%rax),%cl
mov    -0x18(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x18(%rbp)
mov    %cl,(%rax)
jmp    114d <glp_lib_strspx+0x4d>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1114 <glp_lib_strspx+0x14>
mov    -0x18(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<glp_lib_strspx>:
mov    %rdi,%rax
mov    %rdi,%rdx
mov    %rdi,%rsi
jmp    1114 <glp_lib_strspx+0x14>
nopl   0x0(%rax,%rax,1)
add    $0x1,%rdx
movzbl (%rdx),%ecx
cmp    $0x20,%cl
je     1110 <glp_lib_strspx+0x10>
test   %cl,%cl
je     1128 <glp_lib_strspx+0x28>
mov    %cl,(%rsi)
add    $0x1,%rsi
jmp    1110 <glp_lib_strspx+0x10>
movb   $0x0,(%rsi)
ret

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

LLVM IR (-O2):
define i8* @glp_lib_strspx(i8* returned %0) {
br label %2
2: ; preds = %8, %1
%3 = phi i8* [ %0, %1 ], [ %10, %8 ]
%4 = phi i8* [ %0, %1 ], [ %9, %8 ]
%5 = load i8, i8* %3
switch i8 %5, label %6 [
i8 0, label %11
i8 32, label %8
]
6: ; preds = %2
%7 = getelementptr inbounds i8, i8* %4, i64 1
store i8 %5, i8* %4
br label %8
8: ; preds = %2, %6
%9 = phi i8* [ %7, %6 ], [ %4, %2 ]
%10 = getelementptr inbounds i8, i8* %3, i64 1
br label %2
11: ; preds = %2
store i8 0, i8* %4
ret i8* %0
}
/* Type definitions */
struct llist {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ clear_llist(struct llist *);
int /*<<< orphan*/ free(struct llist *);
void destroy_llist(struct llist *l) {
  clear_llist(l);
  free(l);
}


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

x86 assembly (clang, -O2):
<destroy_llist>:
push   %rbx
mov    %rdi,%rbx
call   1040 <clear_llist@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <free@plt>

LLVM IR (-O0):
%struct.llist = type { i32 }
define void @destroy_llist(%struct.llist* %0) {
%2 = alloca %struct.llist*
store %struct.llist* %0, %struct.llist** %2
%3 = load %struct.llist*, %struct.llist** %2
%4 = call i32 @clear_llist(%struct.llist* %3)
%5 = load %struct.llist*, %struct.llist** %2
%6 = call i32 @free(%struct.llist* %5)
ret void
}

LLVM IR (-O2):
%struct.llist = type { i32 }
define void @destroy_llist(%struct.llist* %0) {
%2 = tail call i32 @clear_llist(%struct.llist* %0)
%3 = tail call i32 @free(%struct.llist* %0)
ret void
}
/* Variables and functions */
scalar_t__ is_token(char const);
char *skip_token(const char *s, int sz) {
  while (sz > 0 && is_token(*s)) {
    s++;
    sz--;
  }
  return (char *)s;
}


x86 assembly (clang, -O0):
<skip_token>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0xc(%rbp)
mov    %al,-0xd(%rbp)
jle    1144 <skip_token+0x34>
mov    -0x8(%rbp),%rax
movsbl (%rax),%edi
call   1030 <is_token@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0xd(%rbp)
mov    -0xd(%rbp),%al
test   $0x1,%al
jne    1154 <skip_token+0x44>
jmp    116e <skip_token+0x5e>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xc(%rbp)
jmp    111f <skip_token+0xf>
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<skip_token>:
push   %rbp
push   %rbx
push   %rax
mov    %rdi,%rbx
test   %esi,%esi
jle    1139 <skip_token+0x29>
mov    %esi,%ebp
add    $0x1,%ebp
nop
movsbl (%rbx),%edi
call   1030 <is_token@plt>
test   %rax,%rax
je     1139 <skip_token+0x29>
add    $0x1,%rbx
add    $0xffffffff,%ebp
cmp    $0x1,%ebp
jg     1120 <skip_token+0x10>
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i8* @skip_token(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
br label %5
5: ; preds = %15, %2
%6 = load i32, i32* %4
%7 = icmp sgt i32 %6, 0
br i1 %7, label %8, label %13
8: ; preds = %5
%9 = load i8*, i8** %3
%10 = load i8, i8* %9
%11 = call i64 @is_token(i8 signext %10)
%12 = icmp ne i64 %11, 0
br label %13
13: ; preds = %8, %5
%14 = phi i1 [ false, %5 ], [ %12, %8 ]
br i1 %14, label %15, label %20
15: ; preds = %13
%16 = load i8*, i8** %3
%17 = getelementptr inbounds i8, i8* %16, i32 1
store i8* %17, i8** %3
%18 = load i32, i32* %4
%19 = add nsw i32 %18, -1
store i32 %19, i32* %4
br label %5
20: ; preds = %13
%21 = load i8*, i8** %3
ret i8* %21
}

LLVM IR (-O2):
define i8* @skip_token(i8* %0, i32 %1) {
%3 = icmp sgt i32 %1, 0
br i1 %3, label %4, label %14
4: ; preds = %2, %10
%5 = phi i32 [ %12, %10 ], [ %1, %2 ]
%6 = phi i8* [ %11, %10 ], [ %0, %2 ]
%7 = load i8, i8* %6
%8 = tail call i64 @is_token(i8 signext %7)
%9 = icmp eq i64 %8, 0
br i1 %9, label %14, label %10
10: ; preds = %4
%11 = getelementptr inbounds i8, i8* %6, i64 1
%12 = add nsw i32 %5, -1
%13 = icmp sgt i32 %5, 1
br i1 %13, label %4, label %14
14: ; preds = %4, %10, %2
%15 = phi i8* [ %0, %2 ], [ %11, %10 ], [ %6, %4 ]
ret i8* %15
}
/* Variables and functions */
float expf(float);
float logf(float);
float from_dB(float gdb) { return (expf(gdb / 10.f * logf(10.f))); }


x86 assembly (clang, -O0):
<from_dB>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
movss  0xec6(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x8(%rbp)
movss  0xeb5(%rip),%xmm0
call   1030 <logf@plt>
movaps %xmm0,%xmm1
movss  -0x8(%rbp),%xmm0
mulss  %xmm1,%xmm0
call   1040 <expf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<from_dB>:
divss  0xee8(%rip),%xmm0
mulss  0xee4(%rip),%xmm0
jmp    1030 <expf@plt>

LLVM IR (-O0):
define float @from_dB(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = fdiv float %3, 1.000000e+01
%5 = call float @logf(float 1.000000e+01)
%6 = fmul float %4, %5
%7 = call float @expf(float %6)
ret float %7
}

LLVM IR (-O2):
define float @from_dB(float %0) {
%2 = fdiv float %0, 1.000000e+01
%3 = fmul float %2, 0x40026BB1C0000000
%4 = tail call float @expf(float %3)
ret float %4
}
int test2(float x) {
  struct S {
    char c;
    float fs[3];
  } s1 = (struct S){'a', .fs[0] = (float){1.4f}};
  return printf("%c, {%f, %f, %f}\n", s1.c, s1.fs[0], s1.fs[1], s1.fs[2]);
}


x86 assembly (clang, -O0):
<test2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x4(%rbp)
mov    0xedc(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xed9(%rip),%rax
mov    %rax,-0x10(%rbp)
movsbl -0x18(%rbp),%esi
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x10(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movss  -0xc(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
lea    0xeb7(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test2>:
lea    0xef1(%rip),%rdi
movsd  0xee1(%rip),%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
mov    $0x61,%esi
mov    $0x3,%al
jmp    1030 <printf@plt>

LLVM IR (-O0):
%struct.S = type { i8, [3 x float] }
@__const.test2.s1 = %struct.S { i8 97, [3 x float] [float 0x3FF6666660000000, float 0.000000e+00, float 0.000000e+00] }
@.str = [18 x i8] c"%c, {%f, %f, %f}\0A\00"
define i32 @test2(float %0) {
%2 = alloca float
%3 = alloca %struct.S
store float %0, float* %2
%4 = bitcast %struct.S* %3 to i8*
%5 = getelementptr inbounds %struct.S, %struct.S* %3, i32 0, i32 0
%6 = load i8, i8* %5
%7 = sext i8 %6 to i32
%8 = getelementptr inbounds %struct.S, %struct.S* %3, i32 0, i32 1
%9 = getelementptr inbounds [3 x float], [3 x float]* %8, i64 0, i64 0
%10 = load float, float* %9
%11 = fpext float %10 to double
%12 = getelementptr inbounds %struct.S, %struct.S* %3, i32 0, i32 1
%13 = getelementptr inbounds [3 x float], [3 x float]* %12, i64 0, i64 1
%14 = load float, float* %13
%15 = fpext float %14 to double
%16 = getelementptr inbounds %struct.S, %struct.S* %3, i32 0, i32 1
%17 = getelementptr inbounds [3 x float], [3 x float]* %16, i64 0, i64 2
%18 = load float, float* %17
%19 = fpext float %18 to double
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %7, double %11, double %15, double %19)
ret i32 %20
}

LLVM IR (-O2):
@.str = [18 x i8] c"%c, {%f, %f, %f}\0A\00"
define i32 @test2(float %0) {
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 97, double 0x3FF6666660000000, double 0.000000e+00, double 0.000000e+00)
ret i32 %2
}
void gtk_text_buffer_insert_child_anchor() {}


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

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

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

LLVM IR (-O2):
define void @gtk_text_buffer_insert_child_anchor() {
ret void
}
long func() { return 0; }


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

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

LLVM IR (-O0):
define i64 @func() {
ret i64 0
}

LLVM IR (-O2):
define i64 @func() {
ret i64 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int pa_idxset_free() {
  printf("NOT IMPLEMENTED:"
         "pa_idxset_free"
         "\n");
}


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

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

LLVM IR (-O0):
@.str = [32 x i8] c"NOT IMPLEMENTED:pa_idxset_free\0A\00"
define i32 @pa_idxset_free() {
%1 = alloca i32
%2 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* %1
ret i32 %3
}

LLVM IR (-O2):
@str = [31 x i8] c"NOT IMPLEMENTED:pa_idxset_free\00"
define i32 @pa_idxset_free() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str, i64 0, i64 0))
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ I2C_SLAVE;
int /*<<< orphan*/ O_RDWR;
int /*<<< orphan*/ ioctl(int, int /*<<< orphan*/, unsigned char);
int open(char const *, int /*<<< orphan*/);
int open_i2c(const char *dev_path, unsigned char addr) {
  int dev;
  dev = open(dev_path, O_RDWR);
  ioctl(dev, I2C_SLAVE, addr & 0x7F);
  return dev;
}


x86 assembly (clang, -O0):
<open_i2c>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %sil,%al
mov    %rdi,-0x8(%rbp)
mov    %al,-0x9(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2eab(%rip),%rax
mov    (%rax),%esi
call   1040 <open@plt>
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%edi
mov    0x2e8f(%rip),%rax
mov    (%rax),%esi
movzbl -0x9(%rbp),%eax
and    $0x7f,%eax
movzbl %al,%edx
call   1030 <ioctl@plt>
mov    -0x10(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<open_i2c>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebx
mov    0x2ebc(%rip),%rax
mov    (%rax),%esi
call   1040 <open@plt>
mov    %eax,%ebp
mov    0x2ea4(%rip),%rax
mov    (%rax),%esi
and    $0x7f,%ebx
mov    %ebp,%edi
mov    %ebx,%edx
call   1030 <ioctl@plt>
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@O_RDWR = global i32 0
@I2C_SLAVE = global i32 0
define i32 @open_i2c(i8* %0, i8 zeroext %1) {
%3 = alloca i8*
%4 = alloca i8
%5 = alloca i32
store i8* %0, i8** %3
store i8 %1, i8* %4
%6 = load i8*, i8** %3
%7 = load i32, i32* @O_RDWR
%8 = call i32 @open(i8* %6, i32 %7)
store i32 %8, i32* %5
%9 = load i32, i32* %5
%10 = load i32, i32* @I2C_SLAVE
%11 = load i8, i8* %4
%12 = zext i8 %11 to i32
%13 = and i32 %12, 127
%14 = trunc i32 %13 to i8
%15 = call i32 @ioctl(i32 %9, i32 %10, i8 zeroext %14)
%16 = load i32, i32* %5
ret i32 %16
}

LLVM IR (-O2):
@O_RDWR = global i32 0
@I2C_SLAVE = global i32 0
define i32 @open_i2c(i8* nocapture %0, i8 zeroext %1) {
%3 = load i32, i32* @O_RDWR
%4 = tail call i32 @open(i8* %0, i32 %3)
%5 = load i32, i32* @I2C_SLAVE
%6 = and i8 %1, 127
%7 = tail call i32 @ioctl(i32 %4, i32 %5, i8 zeroext %6)
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ ft_putchar(char);
void print_num(char a, char b, char c) {
  ft_putchar(a);
  ft_putchar(b);
  ft_putchar(c);
}


x86 assembly (clang, -O0):
<print_num>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dl,%al
mov    %sil,%cl
mov    %dil,%dl
mov    %dl,-0x1(%rbp)
mov    %cl,-0x2(%rbp)
mov    %al,-0x3(%rbp)
movsbl -0x1(%rbp),%edi
call   1030 <ft_putchar@plt>
movsbl -0x2(%rbp),%edi
call   1030 <ft_putchar@plt>
movsbl -0x3(%rbp),%edi
call   1030 <ft_putchar@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_num>:
push   %rbp
push   %rbx
push   %rax
mov    %edx,%ebx
mov    %esi,%ebp
call   1030 <ft_putchar@plt>
mov    %ebp,%edi
call   1030 <ft_putchar@plt>
mov    %ebx,%edi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <ft_putchar@plt>

LLVM IR (-O0):
define void @print_num(i8 signext %0, i8 signext %1, i8 signext %2) {
%4 = alloca i8
%5 = alloca i8
%6 = alloca i8
store i8 %0, i8* %4
store i8 %1, i8* %5
store i8 %2, i8* %6
%7 = load i8, i8* %4
%8 = call i32 @ft_putchar(i8 signext %7)
%9 = load i8, i8* %5
%10 = call i32 @ft_putchar(i8 signext %9)
%11 = load i8, i8* %6
%12 = call i32 @ft_putchar(i8 signext %11)
ret void
}

LLVM IR (-O2):
define void @print_num(i8 signext %0, i8 signext %1, i8 signext %2) {
%4 = tail call i32 @ft_putchar(i8 signext %0)
%5 = tail call i32 @ft_putchar(i8 signext %1)
%6 = tail call i32 @ft_putchar(i8 signext %2)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ outAtividades();
outputTest() { outAtividades(); }


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

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

LLVM IR (-O0):
define i32 @outputTest() {
%1 = alloca i32
%2 = call i32 (...) @outAtividades()
%3 = load i32, i32* %1
ret i32 %3
}

LLVM IR (-O2):
define i32 @outputTest() {
%1 = tail call i32 (...) @outAtividades()
ret i32 undef
}
/* Variables and functions */
int ffun(int);
int hwfun(int n) {
  if (n == ffun(n))
    return 1;
  return 0;
}


x86 assembly (clang, -O0):
<hwfun>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <ffun@plt>
mov    %eax,%ecx
mov    -0xc(%rbp),%eax
cmp    %ecx,%eax
jne    1142 <hwfun+0x32>
movl   $0x1,-0x4(%rbp)
jmp    1149 <hwfun+0x39>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<hwfun>:
push   %rbx
mov    %edi,%ebx
call   1030 <ffun@plt>
xor    %ecx,%ecx
cmp    %ebx,%eax
sete   %cl
mov    %ecx,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @hwfun(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = load i32, i32* %3
%6 = call i32 @ffun(i32 %5)
%7 = icmp eq i32 %4, %6
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 1, i32* %2
br label %10
9: ; preds = %1
store i32 0, i32* %2
br label %10
10: ; preds = %9, %8
%11 = load i32, i32* %2
ret i32 %11
}

LLVM IR (-O2):
define i32 @hwfun(i32 %0) {
%2 = tail call i32 @ffun(i32 %0)
%3 = icmp eq i32 %2, %0
%4 = zext i1 %3 to i32
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ unlinkTempFiles();
void done(int c) {
  unlinkTempFiles();
  exit(c);
}


x86 assembly (clang, -O0):
<done>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    $0x0,%al
call   1040 <unlinkTempFiles@plt>
mov    -0x4(%rbp),%edi
call   1030 <exit@plt>

x86 assembly (clang, -O2):
<done>:
push   %rbx
mov    %edi,%ebx
xor    %eax,%eax
call   1040 <unlinkTempFiles@plt>
mov    %ebx,%edi
call   1030 <exit@plt>

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

LLVM IR (-O2):
define void @done(i32 %0) {
%2 = tail call i32 (...) @unlinkTempFiles()
%3 = tail call i32 @exit(i32 %0)
unreachable
}
double F_blendOnRegion(int index[], int etype, double *L) {
  if (etype == 4) {
    return L[index[0]] * L[index[1]] * L[index[2]];
  } else
    return 0.0;
}


x86 assembly (clang, -O0):
<F_blendOnRegion>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %rdx,-0x20(%rbp)
cmpl   $0x4,-0x14(%rbp)
jne    1155 <F_blendOnRegion+0x55>
mov    -0x20(%rbp),%rax
mov    -0x10(%rbp),%rcx
movslq (%rcx),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x10(%rbp),%rcx
movslq 0x4(%rcx),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x10(%rbp),%rcx
movslq 0x8(%rcx),%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    115d <F_blendOnRegion+0x5d>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<F_blendOnRegion>:
xorpd  %xmm0,%xmm0
cmp    $0x4,%esi
jne    1123 <F_blendOnRegion+0x23>
movslq (%rdi),%rax
movsd  (%rdx,%rax,8),%xmm0
movslq 0x4(%rdi),%rax
mulsd  (%rdx,%rax,8),%xmm0
movslq 0x8(%rdi),%rax
mulsd  (%rdx,%rax,8),%xmm0
ret

LLVM IR (-O0):
define double @F_blendOnRegion(i32* %0, i32 %1, double* %2) {
%4 = alloca double
%5 = alloca i32*
%6 = alloca i32
%7 = alloca double*
store i32* %0, i32** %5
store i32 %1, i32* %6
store double* %2, double** %7
%8 = load i32, i32* %6
%9 = icmp eq i32 %8, 4
br i1 %9, label %10, label %34
10: ; preds = %3
%11 = load double*, double** %7
%12 = load i32*, i32** %5
%13 = getelementptr inbounds i32, i32* %12, i64 0
%14 = load i32, i32* %13
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds double, double* %11, i64 %15
%17 = load double, double* %16
%18 = load double*, double** %7
%19 = load i32*, i32** %5
%20 = getelementptr inbounds i32, i32* %19, i64 1
%21 = load i32, i32* %20
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds double, double* %18, i64 %22
%24 = load double, double* %23
%25 = fmul double %17, %24
%26 = load double*, double** %7
%27 = load i32*, i32** %5
%28 = getelementptr inbounds i32, i32* %27, i64 2
%29 = load i32, i32* %28
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds double, double* %26, i64 %30
%32 = load double, double* %31
%33 = fmul double %25, %32
store double %33, double* %4
br label %35
34: ; preds = %3
store double 0.000000e+00, double* %4
br label %35
35: ; preds = %34, %10
%36 = load double, double* %4
ret double %36
}

LLVM IR (-O2):
define double @F_blendOnRegion(i32* nocapture %0, i32 %1, double* nocapture %2) {
%4 = icmp eq i32 %1, 4
br i1 %4, label %5, label %22
5: ; preds = %3
%6 = load i32, i32* %0
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds double, double* %2, i64 %7
%9 = load double, double* %8
%10 = getelementptr inbounds i32, i32* %0, i64 1
%11 = load i32, i32* %10
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds double, double* %2, i64 %12
%14 = load double, double* %13
%15 = fmul double %9, %14
%16 = getelementptr inbounds i32, i32* %0, i64 2
%17 = load i32, i32* %16
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds double, double* %2, i64 %18
%20 = load double, double* %19
%21 = fmul double %15, %20
br label %22
22: ; preds = %3, %5
%23 = phi double [ %21, %5 ], [ 0.000000e+00, %3 ]
ret double %23
}
/* Variables and functions */
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
void usage(void) {
  char msg[] =
      "pnmratio xratio yratio [--xleft|-xl] [--xcenter|-xc] [--xright|-xr]\n"
      "                       [--ytop|-yt] [--ymiddle|-ym] [--ybottom|-yb]\n"
      "\n"
      "Crop a PNM image to exactly the given ratio, by trimming pixels\n"
      "from the edges. The optional parameters specify where to anchor\n"
      "the cropped image; default is (center,center).\n"
      "\n";
  fputs(msg, stderr);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x140,%rsp
lea    -0x140(%rbp),%rdi
lea    0xec7(%rip),%rsi
mov    $0x13a,%edx
call   1040 <memcpy@plt>
lea    -0x140(%rbp),%rdi
mov    0x2e8f(%rip),%rax
mov    (%rax),%esi
call   1030 <fputs@plt>
add    $0x140,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbx
sub    $0x140,%rsp
lea    0xed1(%rip),%rsi
mov    %rsp,%rbx
mov    $0x13a,%edx
mov    %rbx,%rdi
call   1040 <memcpy@plt>
mov    0x2e9a(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   1030 <fputs@plt>
add    $0x140,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.usage.msg = [314 x i8] c"pnmratio xratio yratio [--xleft|-xl] [--xcenter|-xc] [--xright|-xr]\0A [--ytop|-yt] [--ymiddle|-ym] [--ybottom|-yb]\0A\0ACrop a PNM image to exactly the given ratio, by trimming pixels\0Afrom the edges. The optional parameters specify where to anchor\0Athe cropped image; default is (center,center).\0A\0A\00"
@stderr = global i32 0
define void @usage() {
%1 = alloca [314 x i8]
%2 = bitcast [314 x i8]* %1 to i8*
%3 = getelementptr inbounds [314 x i8], [314 x i8]* %1, i64 0, i64 0
%4 = load i32, i32* @stderr
%5 = call i32 @fputs(i8* %3, i32 %4)
ret void
}

LLVM IR (-O2):
@__const.usage.msg = [314 x i8] c"pnmratio xratio yratio [--xleft|-xl] [--xcenter|-xc] [--xright|-xr]\0A [--ytop|-yt] [--ymiddle|-ym] [--ybottom|-yb]\0A\0ACrop a PNM image to exactly the given ratio, by trimming pixels\0Afrom the edges. The optional parameters specify where to anchor\0Athe cropped image; default is (center,center).\0A\0A\00"
@stderr = global i32 0
define void @usage() {
%1 = alloca [314 x i8]
%2 = getelementptr inbounds [314 x i8], [314 x i8]* %1, i64 0, i64 0
%3 = load i32, i32* @stderr
%4 = call i32 @fputs(i8* %2, i32 %3)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;

/* Variables and functions */
int /*<<< orphan*/ memcpy(int /*<<< orphan*/ *, int /*<<< orphan*/ *, int);
int /*<<< orphan*/ opt_MAC(int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                           int /*<<< orphan*/ *);
void opt_doReaderMAC(uint8_t *cc_nr_p, uint8_t *div_key_p, uint8_t mac[4]) {
  uint8_t dest[] = {0, 0, 0, 0, 0, 0, 0, 0};
  opt_MAC(div_key_p, cc_nr_p, dest);
  memcpy(mac, dest, 4);
  return;
}


x86 assembly (clang, -O0):
<opt_doReaderMAC>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
lea    -0x40(%rbp),%rdi
xor    %esi,%esi
mov    $0x20,%edx
call   1040 <memset@plt>
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
lea    -0x40(%rbp),%rdx
call   1030 <opt_MAC@plt>
mov    -0x18(%rbp),%rdi
lea    -0x40(%rbp),%rsi
mov    $0x4,%edx
call   1050 <memcpy@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<opt_doReaderMAC>:
push   %r14
push   %rbx
sub    $0x28,%rsp
mov    %rdx,%rbx
mov    %rdi,%rax
xorps  %xmm0,%xmm0
movaps %xmm0,0x10(%rsp)
movaps %xmm0,(%rsp)
mov    %rsp,%r14
mov    %rsi,%rdi
mov    %rax,%rsi
mov    %r14,%rdx
call   1030 <opt_MAC@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x4,%edx
call   1040 <memcpy@plt>
add    $0x28,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @opt_doReaderMAC(i32* %0, i32* %1, i32* %2) {
%4 = alloca i32*
%5 = alloca i32*
%6 = alloca i32*
%7 = alloca [8 x i32]
store i32* %0, i32** %4
store i32* %1, i32** %5
store i32* %2, i32** %6
%8 = bitcast [8 x i32]* %7 to i8*
%9 = load i32*, i32** %5
%10 = load i32*, i32** %4
%11 = getelementptr inbounds [8 x i32], [8 x i32]* %7, i64 0, i64 0
%12 = call i32 @opt_MAC(i32* %9, i32* %10, i32* %11)
%13 = load i32*, i32** %6
%14 = getelementptr inbounds [8 x i32], [8 x i32]* %7, i64 0, i64 0
%15 = call i32 @memcpy(i32* %13, i32* %14, i32 4)
ret void
}

LLVM IR (-O2):
define void @opt_doReaderMAC(i32* %0, i32* %1, i32* %2) {
%4 = alloca [8 x i32]
%5 = bitcast [8 x i32]* %4 to i8*
%6 = getelementptr inbounds [8 x i32], [8 x i32]* %4, i64 0, i64 0
%7 = call i32 @opt_MAC(i32* %1, i32* %0, i32* %6)
%8 = call i32 @memcpy(i32* %2, i32* %6, i32 4)
ret void
}
/* Variables and functions */
long long ceilf(float);
void ceil_l_s(float *source, long long *dest) { *dest = ceilf(*source); }


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

x86 assembly (clang, -O2):
<ceil_l_s>:
push   %rbx
mov    %rsi,%rbx
movss  (%rdi),%xmm0
call   1030 <ceilf@plt>
mov    %rax,(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @ceil_l_s(float* %0, i64* %1) {
%3 = alloca float*
%4 = alloca i64*
store float* %0, float** %3
store i64* %1, i64** %4
%5 = load float*, float** %3
%6 = load float, float* %5
%7 = call i64 @ceilf(float %6)
%8 = load i64*, i64** %4
store i64 %7, i64* %8
ret void
}

LLVM IR (-O2):
define void @ceil_l_s(float* nocapture %0, i64* nocapture writeonly %1) {
%3 = load float, float* %0
%4 = tail call i64 @ceilf(float %3)
store i64 %4, i64* %1
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Abort(char *);
table_full() {
  Abort("fatal error: item table overflow [increase ITEMLIMIT in art.c]\n");
}


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

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

LLVM IR (-O0):
@.str = [64 x i8] c"fatal error: item table overflow [increase ITEMLIMIT in art.c]\0A\00"
define i32 @table_full() {
%1 = alloca i32
%2 = call i32 @Abort(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* %1
ret i32 %3
}

LLVM IR (-O2):
@.str = [64 x i8] c"fatal error: item table overflow [increase ITEMLIMIT in art.c]\0A\00"
define i32 @table_full() {
%1 = tail call i32 @Abort(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str, i64 0, i64 0))
ret i32 undef
}
/* Variables and functions */
scalar_t__ floor(float);
float AtLeast(float x, float dx) {
  float xx;
  xx = (float)(floor(x / dx - 0.5) + 1.) * dx;
  if (xx < x)
    xx += dx;
  return xx;
}


x86 assembly (clang, -O0):
<AtLeast>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  -0x4(%rbp),%xmm0
divss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xed0(%rip),%xmm1
subsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
call   1030 <floor@plt>
cvtsi2sd %rax,%xmm0
movsd  0xeae(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mulss  -0x8(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm1
movss  -0x4(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    1186 <AtLeast+0x76>
movss  -0x8(%rbp),%xmm0
addss  -0xc(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<AtLeast>:
sub    $0x28,%rsp
movaps %xmm1,0x10(%rsp)
movss  %xmm0,0xc(%rsp)
divss  %xmm1,%xmm0
addss  0xed5(%rip),%xmm0
call   1030 <floor@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
addsd  0xec8(%rip),%xmm0
xorps  %xmm1,%xmm1
cvtsd2ss %xmm0,%xmm1
movaps 0x10(%rsp),%xmm2
mulss  %xmm2,%xmm1
movaps %xmm1,%xmm0
cmpltss 0xc(%rsp),%xmm0
andps  %xmm0,%xmm2
movaps %xmm2,%xmm3
movss  0xe9c(%rip),%xmm2
andnps %xmm2,%xmm0
orps   %xmm3,%xmm0
addss  %xmm1,%xmm0
add    $0x28,%rsp
ret

LLVM IR (-O0):
define float @AtLeast(float %0, float %1) {
%3 = alloca float
%4 = alloca float
%5 = alloca float
store float %0, float* %3
store float %1, float* %4
%6 = load float, float* %3
%7 = load float, float* %4
%8 = fdiv float %6, %7
%9 = fpext float %8 to double
%10 = fsub double %9, 5.000000e-01
%11 = fptrunc double %10 to float
%12 = call i64 @floor(float %11)
%13 = sitofp i64 %12 to double
%14 = fadd double %13, 1.000000e+00
%15 = fptrunc double %14 to float
%16 = load float, float* %4
%17 = fmul float %15, %16
store float %17, float* %5
%18 = load float, float* %5
%19 = load float, float* %3
%20 = fcmp olt float %18, %19
br i1 %20, label %21, label %25
21: ; preds = %2
%22 = load float, float* %4
%23 = load float, float* %5
%24 = fadd float %23, %22
store float %24, float* %5
br label %25
25: ; preds = %21, %2
%26 = load float, float* %5
ret float %26
}

LLVM IR (-O2):
define float @AtLeast(float %0, float %1) {
%3 = fdiv float %0, %1
%4 = fadd float %3, -5.000000e-01
%5 = tail call i64 @floor(float %4)
%6 = sitofp i64 %5 to double
%7 = fadd double %6, 1.000000e+00
%8 = fptrunc double %7 to float
%9 = fmul float %8, %1
%10 = fcmp olt float %9, %0
%11 = select i1 %10, float %1, float -0.000000e+00
%12 = fadd float %9, %11
ret float %12
}
/* Variables and functions */
int /*<<< orphan*/ acc_present_or_copyin(int *, int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
int main(int argc, char *argv[]) {
  int i;
  acc_present_or_copyin(&i, sizeof i);
  fprintf(stderr, "CheCKpOInT\n");
#pragma acc enter data create(i)
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x14(%rbp),%rdi
mov    $0x4,%esi
call   1040 <acc_present_or_copyin@plt>
mov    0x2e95(%rip),%rax
mov    (%rax),%edi
lea    0xeac(%rip),%rsi
call   1030 <fprintf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0x4(%rsp),%rdi
mov    $0x4,%esi
call   1040 <acc_present_or_copyin@plt>
mov    0x2ea9(%rip),%rax
mov    (%rax),%edi
lea    0xec0(%rip),%rsi
call   1030 <fprintf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [12 x i8] c"CheCKpOInT\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = call i32 @acc_present_or_copyin(i32* %6, i32 4)
%8 = load i32, i32* @stderr
%9 = call i32 @fprintf(i32 %8, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [12 x i8] c"CheCKpOInT\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = bitcast i32* %3 to i8*
%5 = call i32 @acc_present_or_copyin(i32* %3, i32 4)
%6 = load i32, i32* @stderr
%7 = call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ ENOSYS;
int /*<<< orphan*/ __set_errno(int /*<<< orphan*/);
int __getpid() {
  __set_errno(ENOSYS);
  return -1;
}


x86 assembly (clang, -O0):
<__getpid>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ecd(%rip),%rax
mov    (%rax),%edi
call   1030 <__set_errno@plt>
mov    $0xffffffff,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<__getpid>:
push   %rax
mov    0x2ed0(%rip),%rax
mov    (%rax),%edi
call   1030 <__set_errno@plt>
mov    $0xffffffff,%eax
pop    %rcx
ret

LLVM IR (-O0):
@ENOSYS = global i32 0
define i32 @__getpid() {
%1 = load i32, i32* @ENOSYS
%2 = call i32 @__set_errno(i32 %1)
ret i32 -1
}

LLVM IR (-O2):
@ENOSYS = global i32 0
define i32 @__getpid() {
%1 = load i32, i32* @ENOSYS
%2 = tail call i32 @__set_errno(i32 %1)
ret i32 -1
}
int test6(int k, int l) { return (k | l) & k; }


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

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

LLVM IR (-O0):
define i32 @test6(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 = or i32 %5, %6
%8 = load i32, i32* %3
%9 = and i32 %7, %8
ret i32 %9
}

LLVM IR (-O2):
define i32 @test6(i32 returned %0, i32 %1) {
ret i32 %0
}
void EVP_EncryptUpdate(void) {}


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

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

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

LLVM IR (-O2):
define void @EVP_EncryptUpdate() {
ret void
}
/* Type definitions */
struct list_t {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ list_add(struct list_t *, void *);
void list_push(struct list_t *list, void *elem) { list_add(list, elem); }


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

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

LLVM IR (-O0):
%struct.list_t = type { i32 }
define void @list_push(%struct.list_t* %0, i8* %1) {
%3 = alloca %struct.list_t*
%4 = alloca i8*
store %struct.list_t* %0, %struct.list_t** %3
store i8* %1, i8** %4
%5 = load %struct.list_t*, %struct.list_t** %3
%6 = load i8*, i8** %4
%7 = call i32 @list_add(%struct.list_t* %5, i8* %6)
ret void
}

LLVM IR (-O2):
%struct.list_t = type { i32 }
define void @list_push(%struct.list_t* %0, i8* %1) {
%3 = tail call i32 @list_add(%struct.list_t* %0, i8* %1)
ret void
}
void Tracking_UI_setTargetPressed() {}


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

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

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

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