xunge/DecIR huggingface dataset:
void process_php(char *path) {}


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

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

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

LLVM IR (-O2):
define void @process_php(i8* nocapture %0) {
ret void
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
void ADCSequenceDisable(uint32_t ui32Base, uint32_t ui32SequenceNum) {
  ;
  ;
  (*((volatile uint32_t *)(ui32Base + 0x00000000))) &= ~(1 << ui32SequenceNum);
}


x86 assembly (clang, -O0):
<ADCSequenceDisable>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x8(%rbp),%ecx
mov    $0x1,%edx
shl    %cl,%edx
xor    $0xffffffff,%edx
mov    -0x4(%rbp),%eax
add    $0x0,%eax
cltq
mov    (%rax),%ecx
and    %edx,%ecx
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<ADCSequenceDisable>:
mov    %esi,%ecx
mov    $0xfffffffe,%eax
rol    %cl,%eax
movslq %edi,%rcx
and    %eax,(%rcx)
ret

LLVM IR (-O0):
define void @ADCSequenceDisable(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 = shl i32 1, %5
%7 = xor i32 %6, -1
%8 = load i32, i32* %3
%9 = add nsw i32 %8, 0
%10 = sext i32 %9 to i64
%11 = inttoptr i64 %10 to i32*
%12 = load volatile i32, i32* %11
%13 = and i32 %12, %7
store volatile i32 %13, i32* %11
ret void
}

LLVM IR (-O2):
define void @ADCSequenceDisable(i32 %0, i32 %1) {
%3 = shl nuw i32 1, %1
%4 = xor i32 %3, -1
%5 = sext i32 %0 to i64
%6 = inttoptr i64 %5 to i32*
%7 = load volatile i32, i32* %6
%8 = and i32 %7, %4
store volatile i32 %8, i32* %6
ret void
}
/* Type definitions */
typedef int uint64_t;

/* Variables and functions */
uint64_t rotate_r(uint64_t x, int d) { return (x >> d) | (x << (64 - d)); }


x86 assembly (clang, -O0):
<rotate_r>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x8(%rbp),%ecx
sar    %cl,%eax
mov    -0x4(%rbp),%edx
mov    $0x40,%ecx
sub    -0x8(%rbp),%ecx
shl    %cl,%edx
mov    %edx,%ecx
or     %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<rotate_r>:
mov    %esi,%ecx
mov    %edi,%eax
sar    %cl,%eax
neg    %cl
shl    %cl,%edi
or     %edi,%eax
ret

LLVM IR (-O0):
define i32 @rotate_r(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 = ashr i32 %5, %6
%8 = load i32, i32* %3
%9 = load i32, i32* %4
%10 = sub nsw i32 64, %9
%11 = shl i32 %8, %10
%12 = or i32 %7, %11
ret i32 %12
}

LLVM IR (-O2):
define i32 @rotate_r(i32 %0, i32 %1) {
%3 = ashr i32 %0, %1
%4 = sub nsw i32 64, %1
%5 = shl i32 %0, %4
%6 = or i32 %5, %3
ret i32 %6
}
/* Type definitions */
struct sigaction {
  void (*sa_handler)(int);
};
typedef int /*<<< orphan*/ action;

/* Variables and functions */
int /*<<< orphan*/ memset(struct sigaction *, int /*<<< orphan*/, int);
int sigaction(int, struct sigaction *, int /*<<< orphan*/ *);
int register_signal(int sig, void (*handler)(int)) {
  struct sigaction action;
  memset(&action, 0, sizeof(action));
  action.sa_handler = handler;
  return sigaction(sig, &action, NULL);
}


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

x86 assembly (clang, -O2):
<register_signal>:
push   %rbp
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
lea    0x8(%rsp),%r14
mov    %r14,%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1040 <memset@plt>
mov    %rbx,0x8(%rsp)
mov    %ebp,%edi
mov    %r14,%rsi
xor    %edx,%edx
call   1030 <sigaction@plt>
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
%struct.sigaction = type { void (i32)* }
define i32 @register_signal(i32 %0, void (i32)* %1) {
%3 = alloca i32
%4 = alloca void (i32)*
%5 = alloca %struct.sigaction
store i32 %0, i32* %3
store void (i32)* %1, void (i32)** %4
%6 = call i32 @memset(%struct.sigaction* %5, i32 0, i32 8)
%7 = load void (i32)*, void (i32)** %4
%8 = getelementptr inbounds %struct.sigaction, %struct.sigaction* %5, i32 0, i32 0
store void (i32)* %7, void (i32)** %8
%9 = load i32, i32* %3
%10 = call i32 @sigaction(i32 %9, %struct.sigaction* %5, i32* null)
ret i32 %10
}

LLVM IR (-O2):
%struct.sigaction = type { void (i32)* }
define i32 @register_signal(i32 %0, void (i32)* %1) {
%3 = alloca %struct.sigaction
%4 = bitcast %struct.sigaction* %3 to i8*
%5 = call i32 @memset(%struct.sigaction* %3, i32 0, i32 8)
%6 = getelementptr inbounds %struct.sigaction, %struct.sigaction* %3, i64 0, i32 0
store void (i32)* %1, void (i32)** %6
%7 = call i32 @sigaction(i32 %0, %struct.sigaction* %3, i32* null)
ret i32 %7
}
/* Variables and functions */
int /*<<< orphan*/ assert(int);
int /*<<< orphan*/ printf(char *);
int main() {
  printf("assert test");
  assert(1 == 0);
}


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

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

LLVM IR (-O0):
@.str = [12 x i8] c"assert test\00"
define i32 @main() {
%1 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @assert(i32 0)
ret i32 0
}

LLVM IR (-O2):
@.str = [12 x i8] c"assert test\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @assert(i32 0)
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ uid_t;

/* Variables and functions */
int /*<<< orphan*/ getresuid(int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                             int /*<<< orphan*/ *);
uid_t getresuid_uid(void) {
  uid_t ruid, euid, suid;
  getresuid(&ruid, &euid, &suid);
  return suid;
}


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

x86 assembly (clang, -O2):
<getresuid_uid>:
sub    $0x18,%rsp
lea    0x14(%rsp),%rdi
lea    0x10(%rsp),%rsi
lea    0xc(%rsp),%rdx
call   1030 <getresuid@plt>
mov    0xc(%rsp),%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
define i32 @getresuid_uid() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = call i32 @getresuid(i32* %1, i32* %2, i32* %3)
%5 = load i32, i32* %3
ret i32 %5
}

LLVM IR (-O2):
define i32 @getresuid_uid() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = bitcast i32* %3 to i8*
%7 = call i32 @getresuid(i32* %1, i32* %2, i32* %3)
%8 = load i32, i32* %3
ret i32 %8
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
void disp_prime(int a) { printf("%d ", a); }


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

x86 assembly (clang, -O2):
<disp_prime>:
mov    %edi,%esi
lea    0xee7(%rip),%rdi
jmp    1030 <printf@plt>

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

LLVM IR (-O2):
@.str = [4 x i8] c"%d \00"
define void @disp_prime(i32 %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %0)
ret void
}
/* Type definitions */
typedef int uint64_t;
typedef int int8_t;

/* Variables and functions */
__attribute__((always_)) uint64_t rotl64(uint64_t x, int8_t r) {
  return (x << r) | (x >> (64 - r));
}


x86 assembly (clang, -O0):
<rotl64>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x8(%rbp),%ecx
shl    %cl,%eax
mov    -0x4(%rbp),%edx
mov    $0x40,%ecx
sub    -0x8(%rbp),%ecx
sar    %cl,%edx
mov    %edx,%ecx
or     %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<rotl64>:
mov    %esi,%ecx
mov    %edi,%eax
shl    %cl,%eax
neg    %cl
sar    %cl,%edi
or     %edi,%eax
ret

LLVM IR (-O0):
define i32 @rotl64(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 = shl i32 %5, %6
%8 = load i32, i32* %3
%9 = load i32, i32* %4
%10 = sub nsw i32 64, %9
%11 = ashr i32 %8, %10
%12 = or i32 %7, %11
ret i32 %12
}

LLVM IR (-O2):
define i32 @rotl64(i32 %0, i32 %1) {
%3 = shl i32 %0, %1
%4 = sub nsw i32 64, %1
%5 = ashr i32 %0, %4
%6 = or i32 %5, %3
ret i32 %6
}
void gtk_text_iter_backward_find_char() {}


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

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

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

LLVM IR (-O2):
define void @gtk_text_iter_backward_find_char() {
ret void
}
/* Variables and functions */
size_t strlen(const char *str) {
  size_t size;
  for (size = 0; str[size] != 0; size++)
    ;
  return size;
}


x86 assembly (clang, -O0):
<strlen>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movq   $0x0,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
je     113b <strlen+0x3b>
jmp    112a <strlen+0x2a>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1110 <strlen+0x10>
mov    -0x10(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<strlen>:
mov    $0xffffffffffffffff,%rax
nopw   0x0(%rax,%rax,1)
cmpb   $0x0,0x1(%rdi,%rax,1)
lea    0x1(%rax),%rax
jne    1110 <strlen+0x10>
ret

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

LLVM IR (-O2):
define i64 @strlen(i8* nocapture %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i64 [ 0, %1 ], [ %7, %2 ]
%4 = getelementptr inbounds i8, i8* %0, i64 %3
%5 = load i8, i8* %4
%6 = icmp eq i8 %5, 0
%7 = add i64 %3, 1
br i1 %6, label %8, label %2
8: ; preds = %2
ret i64 %3
}
/* Variables and functions */
int /*<<< orphan*/ unsigned_prune_zero1_Good(int /*<<< orphan*/);
void call_unsigned_prune_zero1_Good() { unsigned_prune_zero1_Good(0); }


x86 assembly (clang, -O0):
<call_unsigned_prune_zero1_Good>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
call   1030 <unsigned_prune_zero1_Good@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<call_unsigned_prune_zero1_Good>:
xor    %edi,%edi
jmp    1030 <unsigned_prune_zero1_Good@plt>

LLVM IR (-O0):
define void @call_unsigned_prune_zero1_Good() {
%1 = call i32 @unsigned_prune_zero1_Good(i32 0)
ret void
}

LLVM IR (-O2):
define void @call_unsigned_prune_zero1_Good() {
%1 = tail call i32 @unsigned_prune_zero1_Good(i32 0)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint64_t;

/* Variables and functions */
int /*<<< orphan*/ be64toh(int /*<<< orphan*/);
void unaligned_write_be64(void *_u, uint64_t a) {
  struct __attribute__((__packed__, __may_alias__)) {
    uint64_t x;
  } *u = _u;
  u->x = be64toh(a);
}


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

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

LLVM IR (-O0):
%struct.anon = type { i32 }
define void @unaligned_write_be64(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = alloca %struct.anon*
store i8* %0, i8** %3
store i32 %1, i32* %4
%6 = load i8*, i8** %3
%7 = bitcast i8* %6 to %struct.anon*
store %struct.anon* %7, %struct.anon** %5
%8 = load i32, i32* %4
%9 = call i32 @be64toh(i32 %8)
%10 = load %struct.anon*, %struct.anon** %5
%11 = getelementptr inbounds %struct.anon, %struct.anon* %10, i32 0, i32 0
store i32 %9, i32* %11
ret void
}

LLVM IR (-O2):
define void @unaligned_write_be64(i8* nocapture writeonly %0, i32 %1) {
%3 = tail call i32 @be64toh(i32 %1)
%4 = bitcast i8* %0 to i32*
store i32 %3, i32* %4
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int, char *);
void print_err(int num, int lineno, char *message) {
  printf("Error Type %d at Line %d: %s\n", num, lineno, message);
}


x86 assembly (clang, -O0):
<print_err>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x8(%rbp),%edx
mov    -0x10(%rbp),%rcx
lea    0xecd(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_err>:
mov    %rdx,%rcx
mov    %esi,%edx
mov    %edi,%esi
lea    0xee2(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [30 x i8] c"Error Type %d at Line %d: %s\0A\00"
define void @print_err(i32 %0, i32 %1, i8* %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8*
store i32 %0, i32* %4
store i32 %1, i32* %5
store i8* %2, i8** %6
%7 = load i32, i32* %4
%8 = load i32, i32* %5
%9 = load i8*, i8** %6
%10 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i32 %7, i32 %8, i8* %9)
ret void
}

LLVM IR (-O2):
@.str = [30 x i8] c"Error Type %d at Line %d: %s\0A\00"
define void @print_err(i32 %0, i32 %1, i8* %2) {
%4 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i32 %0, i32 %1, i8* %2)
ret void
}
/* Type definitions */
struct t_relay_client {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ relay_weechat_unhook_signals(struct t_relay_client *);
void relay_weechat_close_connection(struct t_relay_client *client) {
  relay_weechat_unhook_signals(client);
}


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

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

LLVM IR (-O0):
%struct.t_relay_client = type { i32 }
define void @relay_weechat_close_connection(%struct.t_relay_client* %0) {
%2 = alloca %struct.t_relay_client*
store %struct.t_relay_client* %0, %struct.t_relay_client** %2
%3 = load %struct.t_relay_client*, %struct.t_relay_client** %2
%4 = call i32 @relay_weechat_unhook_signals(%struct.t_relay_client* %3)
ret void
}

LLVM IR (-O2):
%struct.t_relay_client = type { i32 }
define void @relay_weechat_close_connection(%struct.t_relay_client* %0) {
%2 = tail call i32 @relay_weechat_unhook_signals(%struct.t_relay_client* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *);
int /*<<< orphan*/ stderr;
void usage(const char *name) {
  fprintf(stderr, "Usage: %s [-r] <symfile> <binfile> <loadfile (out)>\n",
          name);
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ead(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xec0(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    %rdi,%rdx
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [53 x i8] c"Usage: %s [-r] <symfile> <binfile> <loadfile (out)>\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [53 x i8] c"Usage: %s [-r] <symfile> <binfile> <loadfile (out)>\0A\00"
define void @usage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0), i8* %0)
%4 = tail call i32 @exit(i32 1)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ function1();
int /*<<< orphan*/ function2();
int /*<<< orphan*/ printf(char *);
int main(void) {
  printf("Hello from program.c\n");
  function1();
  function2();
  return 0;
}


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

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

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

LLVM IR (-O2):
@str = [21 x i8] c"Hello from program.c\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (...) @function1()
%3 = tail call i32 (...) @function2()
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int i;
  do {
    printf("entre com um valor entre 0 e 9: ");
    scanf("%d", &i);
  } while (i > 9 || i < 0);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
call   1030 <printf@plt>
lea    0xedf(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
mov    $0x1,%al
cmpl   $0x9,-0x8(%rbp)
mov    %al,-0x9(%rbp)
jg     1164 <main+0x44>
cmpl   $0x0,-0x8(%rbp)
setl   %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
test   $0x1,%al
jne    112f <main+0xf>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
lea    0xed0(%rip),%r14
lea    0xeea(%rip),%r15
lea    0xc(%rsp),%rbx
nopl   0x0(%rax)
mov    %r14,%rdi
call   1030 <printf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1040 <scanf@plt>
cmpl   $0x9,0xc(%rsp)
ja     1140 <main+0x20>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [33 x i8] c"entre com um valor entre 0 e 9: \00"
@.str.1 = [3 x i8] c"%d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
br label %3
3: ; preds = %12, %0
%4 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
br label %6
6: ; preds = %3
%7 = load i32, i32* %2
%8 = icmp sgt i32 %7, 9
br i1 %8, label %12, label %9
9: ; preds = %6
%10 = load i32, i32* %2
%11 = icmp slt i32 %10, 0
br label %12
12: ; preds = %9, %6
%13 = phi i1 [ true, %6 ], [ %11, %9 ]
br i1 %13, label %3, label %14
14: ; preds = %12
ret i32 0
}

LLVM IR (-O2):
@.str = [33 x i8] c"entre com um valor entre 0 e 9: \00"
@.str.1 = [3 x i8] c"%d\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
br label %3
3: ; preds = %3, %0
%4 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%6 = load i32, i32* %1
%7 = icmp ugt i32 %6, 9
br i1 %7, label %3, label %8
8: ; preds = %3
ret i32 0
}
/* Type definitions */
typedef int uint8_t;

/* Variables and functions */
uint8_t h264nal_get_ref(const uint8_t *p_h264nal) {
  return (p_h264nal[3] & 0x60) >> 5;
}


x86 assembly (clang, -O0):
<h264nal_get_ref>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    0xc(%rax),%eax
and    $0x60,%eax
sar    $0x5,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<h264nal_get_ref>:
mov    0xc(%rdi),%eax
shr    $0x5,%eax
and    $0x3,%eax
ret

LLVM IR (-O0):
define i32 @h264nal_get_ref(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = getelementptr inbounds i32, i32* %3, i64 3
%5 = load i32, i32* %4
%6 = and i32 %5, 96
%7 = ashr i32 %6, 5
ret i32 %7
}

LLVM IR (-O2):
define i32 @h264nal_get_ref(i32* nocapture %0) {
%2 = getelementptr inbounds i32, i32* %0, i64 3
%3 = load i32, i32* %2
%4 = lshr i32 %3, 5
%5 = and i32 %4, 3
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ _message(char const *, int /*<<< orphan*/,
                            int /*<<< orphan*/);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ stderr;
void fatal(const char *msg) {
  _message(msg, 0, stderr);
  exit(1);
}


x86 assembly (clang, -O0):
<fatal>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2ea9(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1030 <_message@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<fatal>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1030 <_message@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
define void @fatal(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = load i32, i32* @stderr
%5 = call i32 @_message(i8* %3, i32 0, i32 %4)
%6 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
define void @fatal(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @_message(i8* %0, i32 0, i32 %2)
%4 = tail call i32 @exit(i32 1)
unreachable
}
void YUY2ToARGBRow_Any_NEON() {}


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

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

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

LLVM IR (-O2):
define void @YUY2ToARGBRow_Any_NEON() {
ret void
}
/* Variables and functions */
int xml_init();
int module_xml_init(void) { return xml_init(); }


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

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

LLVM IR (-O0):
define i32 @module_xml_init() {
%1 = call i32 (...) @xml_init()
ret i32 %1
}

LLVM IR (-O2):
define i32 @module_xml_init() {
%1 = tail call i32 (...) @xml_init()
ret i32 %1
}
/* Type definitions */
typedef int /*<<< orphan*/ pem_password_cb;
typedef int /*<<< orphan*/ d2i_of_void;
typedef int /*<<< orphan*/ X509_REQ;
typedef int /*<<< orphan*/ BIO;

/* Variables and functions */
int /*<<< orphan*/ *PEM_ASN1_read_bio(int /*<<< orphan*/ *, int /*<<< orphan*/,
                                      int /*<<< orphan*/ *, void **,
                                      int /*<<< orphan*/ *, void *);
int /*<<< orphan*/ PEM_STRING_X509_REQ;
scalar_t__ d2i_X509_REQ;
X509_REQ *PEM_read_bio_X509_REQ(BIO *bp, X509_REQ **x, pem_password_cb *cb,
                                void *u) {
  return PEM_ASN1_read_bio((d2i_of_void *)d2i_X509_REQ, PEM_STRING_X509_REQ, bp,
                           (void **)x, cb, u);
}


x86 assembly (clang, -O0):
<PEM_read_bio_X509_REQ>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    0x2ea9(%rip),%rax
mov    (%rax),%rdi
mov    0x2eaf(%rip),%rax
mov    (%rax),%esi
mov    -0x8(%rbp),%rdx
mov    -0x10(%rbp),%rcx
mov    -0x18(%rbp),%r8
mov    -0x20(%rbp),%r9
call   1030 <PEM_ASN1_read_bio@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PEM_read_bio_X509_REQ>:
mov    %rcx,%r9
mov    %rdx,%r8
mov    %rsi,%rcx
mov    %rdi,%rdx
mov    0x2eb5(%rip),%rax
mov    (%rax),%rdi
mov    0x2ebb(%rip),%rax
mov    (%rax),%esi
jmp    1030 <PEM_ASN1_read_bio@plt>

LLVM IR (-O0):
@d2i_X509_REQ = global i64 0
@PEM_STRING_X509_REQ = global i32 0
define i32* @PEM_read_bio_X509_REQ(i32* %0, i32** %1, i32* %2, i8* %3) {
%5 = alloca i32*
%6 = alloca i32**
%7 = alloca i32*
%8 = alloca i8*
store i32* %0, i32** %5
store i32** %1, i32*** %6
store i32* %2, i32** %7
store i8* %3, i8** %8
%9 = load i64, i64* @d2i_X509_REQ
%10 = inttoptr i64 %9 to i32*
%11 = load i32, i32* @PEM_STRING_X509_REQ
%12 = load i32*, i32** %5
%13 = load i32**, i32*** %6
%14 = bitcast i32** %13 to i8**
%15 = load i32*, i32** %7
%16 = load i8*, i8** %8
%17 = call i32* @PEM_ASN1_read_bio(i32* %10, i32 %11, i32* %12, i8** %14, i32* %15, i8* %16)
ret i32* %17
}

LLVM IR (-O2):
@d2i_X509_REQ = global i64 0
@PEM_STRING_X509_REQ = global i32 0
define i32* @PEM_read_bio_X509_REQ(i32* %0, i32** %1, i32* %2, i8* %3) {
%5 = load i64, i64* @d2i_X509_REQ
%6 = inttoptr i64 %5 to i32*
%7 = load i32, i32* @PEM_STRING_X509_REQ
%8 = bitcast i32** %1 to i8**
%9 = tail call i32* @PEM_ASN1_read_bio(i32* %6, i32 %7, i32* %0, i8** %8, i32* %2, i8* %3)
ret i32* %9
}
/* Variables and functions */
int /*<<< orphan*/ memccpy(char *, char const *, int /*<<< orphan*/, size_t);
size_t strlen(char *);
size_t strxfrm(char *dest, const char *src, size_t n) {
  memccpy(dest, src, 0, n);
  return strlen(dest);
}


x86 assembly (clang, -O0):
<strxfrm>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rcx
xor    %edx,%edx
call   1040 <memccpy@plt>
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<strxfrm>:
push   %rbx
mov    %rdx,%rcx
mov    %rdi,%rbx
xor    %edx,%edx
call   1040 <memccpy@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <strlen@plt>

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

LLVM IR (-O2):
define i64 @strxfrm(i8* %0, i8* nocapture %1, i64 %2) {
%4 = tail call i32 @memccpy(i8* %0, i8* %1, i32 0, i64 %2)
%5 = tail call i64 @strlen(i8* dereferenceable(1) %0)
ret i64 %5
}
/* Variables and functions */
int /*<<< orphan*/ assert(int);
char Abc_TtPrintDigit(int Digit) {
  assert(Digit >= 0 && Digit < 16);
  if (Digit < 10)
    return '0' + Digit;
  return 'A' + Digit - 10;
}


x86 assembly (clang, -O0):
<Abc_TtPrintDigit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x8(%rbp)
mov    %al,-0x9(%rbp)
jl     1134 <Abc_TtPrintDigit+0x24>
cmpl   $0x10,-0x8(%rbp)
setl   %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0xa,-0x8(%rbp)
jge    1159 <Abc_TtPrintDigit+0x49>
mov    -0x8(%rbp),%eax
add    $0x30,%eax
mov    %al,-0x1(%rbp)
jmp    1165 <Abc_TtPrintDigit+0x55>
mov    -0x8(%rbp),%eax
add    $0x41,%eax
sub    $0xa,%eax
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Abc_TtPrintDigit>:
push   %rbx
mov    %edi,%ebx
xor    %edi,%edi
cmp    $0x10,%ebx
setb   %dil
call   1030 <assert@plt>
cmp    $0xa,%ebx
mov    $0x30,%ecx
mov    $0x37,%eax
cmovl  %ecx,%eax
add    %bl,%al
pop    %rbx
ret

LLVM IR (-O0):
define signext i8 @Abc_TtPrintDigit(i32 %0) {
%2 = alloca i8
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp sge i32 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i32, i32* %3
%8 = icmp slt i32 %7, 16
br label %9
9: ; preds = %6, %1
%10 = phi i1 [ false, %1 ], [ %8, %6 ]
%11 = zext i1 %10 to i32
%12 = call i32 @assert(i32 %11)
%13 = load i32, i32* %3
%14 = icmp slt i32 %13, 10
br i1 %14, label %15, label %19
15: ; preds = %9
%16 = load i32, i32* %3
%17 = add nsw i32 48, %16
%18 = trunc i32 %17 to i8
store i8 %18, i8* %2
br label %24
19: ; preds = %9
%20 = load i32, i32* %3
%21 = add nsw i32 65, %20
%22 = sub nsw i32 %21, 10
%23 = trunc i32 %22 to i8
store i8 %23, i8* %2
br label %24
24: ; preds = %19, %15
%25 = load i8, i8* %2
ret i8 %25
}

LLVM IR (-O2):
define signext i8 @Abc_TtPrintDigit(i32 %0) {
%2 = icmp ult i32 %0, 16
%3 = zext i1 %2 to i32
%4 = tail call i32 @assert(i32 %3)
%5 = icmp slt i32 %0, 10
%6 = trunc i32 %0 to i8
%7 = select i1 %5, i8 48, i8 55
%8 = add i8 %7, %6
ret i8 %8
}
void f() { int a; }


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

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

LLVM IR (-O0):
define void @f() {
%1 = alloca i32
ret void
}

LLVM IR (-O2):
define void @f() {
ret void
}
/* Type definitions */
typedef char *uint64_t;

/* Variables and functions */
uint64_t ROL64_63(uint64_t x) {
  __asm__("rolq $63, %0" : "=r"(x) : "0"(x));
  return x;
}


x86 assembly (clang, -O0):
<ROL64_63>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
rol    $0x3f,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ROL64_63>:
mov    %rdi,%rax
rol    $0x3f,%rax
ret

LLVM IR (-O0):
define i8* @ROL64_63(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i8* asm "rolq $$63, $0", "=r,0,~{dirflag},~{fpsr},~{flags}"(i8* %3)
store i8* %4, i8** %2
%5 = load i8*, i8** %2
ret i8* %5
}

LLVM IR (-O2):
define i8* @ROL64_63(i8* readnone %0) {
%2 = tail call i8* asm "rolq $$63, $0", "=r,0,~{dirflag},~{fpsr},~{flags}"(i8* %0)
ret i8* %2
}
double horner_i(double x, int n, double *a) {
  double y = 0;
  return y;
}


x86 assembly (clang, -O0):
<horner_i>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
mov    %edi,-0xc(%rbp)
mov    %rsi,-0x18(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<horner_i>:
xorps  %xmm0,%xmm0
ret

LLVM IR (-O0):
define double @horner_i(double %0, i32 %1, double* %2) {
%4 = alloca double
%5 = alloca i32
%6 = alloca double*
%7 = alloca double
store double %0, double* %4
store i32 %1, i32* %5
store double* %2, double** %6
store double 0.000000e+00, double* %7
%8 = load double, double* %7
ret double %8
}

LLVM IR (-O2):
define double @horner_i(double %0, i32 %1, double* nocapture readnone %2) {
ret double 0.000000e+00
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int n;
  printf("Enter a two-digit number: ");
  scanf("%d", &n);
  printf("The reversal is: %d%d\n", n % 10, n / 10);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed7(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,%esi
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,%edx
lea    0xeb0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee5(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
movslq 0x4(%rsp),%rsi
imul   $0x66666667,%rsi,%rdx
mov    %rdx,%rax
shr    $0x3f,%rax
sar    $0x22,%rdx
add    %eax,%edx
lea    (%rdx,%rdx,1),%eax
lea    (%rax,%rax,4),%eax
sub    %eax,%esi
lea    0xeb6(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [27 x i8] c"Enter a two-digit number: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [23 x i8] c"The reversal is: %d%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%5 = load i32, i32* %2
%6 = srem i32 %5, 10
%7 = load i32, i32* %2
%8 = sdiv i32 %7, 10
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32 %6, i32 %8)
ret i32 0
}

LLVM IR (-O2):
@.str = [27 x i8] c"Enter a two-digit number: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [23 x i8] c"The reversal is: %d%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%5 = load i32, i32* %1
%6 = srem i32 %5, 10
%7 = sdiv i32 %5, 10
%8 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32 %6, i32 %7)
ret i32 0
}
int igets_(iterm, string, length)
int iterm;
char *string;
int length;
{ return (get_string(string, length)); }


x86 assembly (clang, -O0):
<igets_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    $0x0,%al
call   1030 <get_string@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<igets_>:
mov    %rsi,%rdi
mov    %edx,%esi
xor    %eax,%eax
jmp    1030 <get_string@plt>

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

LLVM IR (-O2):
define i32 @igets_(i32 %0, i8* %1, i32 %2) {
%4 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @get_string to i32 (i8*, i32, ...)*)(i8* %1, i32 %2)
ret i32 %4
}
short clearBit_fun_short(short x, unsigned i) { return x & ~(1 << i); }


x86 assembly (clang, -O0):
<clearBit_fun_short>:
push   %rbp
mov    %rsp,%rbp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
mov    %esi,-0x8(%rbp)
movswl -0x2(%rbp),%eax
mov    -0x8(%rbp),%ecx
mov    $0x1,%edx
shl    %cl,%edx
mov    %edx,%ecx
xor    $0xffffffff,%ecx
and    %ecx,%eax
cwtl
pop    %rbp
ret

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

LLVM IR (-O0):
define signext i16 @clearBit_fun_short(i16 signext %0, i32 %1) {
%3 = alloca i16
%4 = alloca i32
store i16 %0, i16* %3
store i32 %1, i32* %4
%5 = load i16, i16* %3
%6 = sext i16 %5 to i32
%7 = load i32, i32* %4
%8 = shl i32 1, %7
%9 = xor i32 %8, -1
%10 = and i32 %6, %9
%11 = trunc i32 %10 to i16
ret i16 %11
}

LLVM IR (-O2):
define signext i16 @clearBit_fun_short(i16 signext %0, i32 %1) {
%3 = shl nuw i32 1, %1
%4 = trunc i32 %3 to i16
%5 = xor i16 %4, -1
%6 = and i16 %5, %0
ret i16 %6
}
char *rand3lvl(void) { return "3rd Level Spell"; }


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

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

LLVM IR (-O0):
@.str = [16 x i8] c"3rd Level Spell\00"
define i8* @rand3lvl() {
ret i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [16 x i8] c"3rd Level Spell\00"
define i8* @rand3lvl() {
ret i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0)
}
/* Variables and functions */
int nepim_str_split(char, char *, int, char **);
int nepim_str_split_at(char *buf, int buf_size, char **next) {
  return nepim_str_split('@', buf, buf_size, next);
}


x86 assembly (clang, -O0):
<nepim_str_split_at>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
mov    -0x18(%rbp),%rcx
mov    $0x40,%edi
call   1030 <nepim_str_split@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<nepim_str_split_at>:
mov    %rdx,%rcx
mov    %esi,%edx
mov    %rdi,%rsi
mov    $0x40,%edi
jmp    1030 <nepim_str_split@plt>

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

LLVM IR (-O2):
define i32 @nepim_str_split_at(i8* %0, i32 %1, i8** %2) {
%4 = tail call i32 @nepim_str_split(i8 signext 64, i8* %0, i32 %1, i8** %2)
ret i32 %4
}
void circs_(x, y, radius) short *x, *y, *radius;
{ circs(*x, *y, *radius); }


x86 assembly (clang, -O0):
<circs_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rax
movswl (%rax),%edi
mov    -0x10(%rbp),%rax
movswl (%rax),%esi
mov    -0x18(%rbp),%rax
movswl (%rax),%edx
mov    $0x0,%al
call   1030 <circs@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<circs_>:
movswl (%rdi),%edi
movswl (%rsi),%esi
movswl (%rdx),%edx
xor    %eax,%eax
jmp    1030 <circs@plt>

LLVM IR (-O0):
define void @circs_(i16* %0, i16* %1, i16* %2) {
%4 = alloca i16*
%5 = alloca i16*
%6 = alloca i16*
store i16* %0, i16** %4
store i16* %1, i16** %5
store i16* %2, i16** %6
%7 = load i16*, i16** %4
%8 = load i16, i16* %7
%9 = sext i16 %8 to i32
%10 = load i16*, i16** %5
%11 = load i16, i16* %10
%12 = sext i16 %11 to i32
%13 = load i16*, i16** %6
%14 = load i16, i16* %13
%15 = sext i16 %14 to i32
%16 = call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @circs to i32 (i32, i32, i32, ...)*)(i32 %9, i32 %12, i32 %15)
ret void
}

LLVM IR (-O2):
define void @circs_(i16* nocapture %0, i16* nocapture %1, i16* nocapture %2) {
%4 = load i16, i16* %0
%5 = sext i16 %4 to i32
%6 = load i16, i16* %1
%7 = sext i16 %6 to i32
%8 = load i16, i16* %2
%9 = sext i16 %8 to i32
%10 = tail call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @circs to i32 (i32, i32, i32, ...)*)(i32 %5, i32 %7, i32 %9)
ret void
}
/* Variables and functions */
int R_OK;
int octave_access_r_ok(void) { return R_OK; }


x86 assembly (clang, -O0):
<octave_access_r_ok>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ed5(%rip),%rax
mov    (%rax),%eax
pop    %rbp
ret

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

LLVM IR (-O0):
@R_OK = global i32 0
define i32 @octave_access_r_ok() {
%1 = load i32, i32* @R_OK
ret i32 %1
}

LLVM IR (-O2):
@R_OK = global i32 0
define i32 @octave_access_r_ok() {
%1 = load i32, i32* @R_OK
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ atomic_noop();
void test_acquire() {
  { atomic_noop(); }
}


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

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

LLVM IR (-O0):
define void @test_acquire() {
%1 = call i32 (...) @atomic_noop()
ret void
}

LLVM IR (-O2):
define void @test_acquire() {
%1 = tail call i32 (...) @atomic_noop()
ret void
}
void av_aes_ctr_get_iv() {}


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

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

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

LLVM IR (-O2):
define void @av_aes_ctr_get_iv() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ pthread_exit(int /*<<< orphan*/ *);
void *__attribute__((noreturn))
mthread_exit(void __attribute__((unused)) * args) {
  pthread_exit(NULL);
}


x86 assembly (clang, -O0):
<mthread_exit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1030 <pthread_exit@plt>

x86 assembly (clang, -O2):
<mthread_exit>:
push   %rax
xor    %edi,%edi
call   1030 <pthread_exit@plt>

LLVM IR (-O0):
define i8* @mthread_exit(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 @pthread_exit(i32* null)
unreachable
}

LLVM IR (-O2):
define noalias i8* @mthread_exit(i8* nocapture readnone %0) {
%2 = tail call i32 @pthread_exit(i32* null)
unreachable
}
void g_string_chunk_insert() {}


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

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

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

LLVM IR (-O2):
define void @g_string_chunk_insert() {
ret void
}
/* Variables and functions */
float get_intra_energy(int);
float get_shell_rot_energy(int);
float get_total_energy(int idx) {
  return get_intra_energy(idx) + get_shell_rot_energy(idx);
}


x86 assembly (clang, -O0):
<get_total_energy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1040 <get_intra_energy@plt>
movss  %xmm0,-0x8(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <get_shell_rot_energy@plt>
movaps %xmm0,%xmm1
movss  -0x8(%rbp),%xmm0
addss  %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_total_energy>:
push   %rbx
sub    $0x10,%rsp
mov    %edi,%ebx
call   1040 <get_intra_energy@plt>
movss  %xmm0,0xc(%rsp)
mov    %ebx,%edi
call   1030 <get_shell_rot_energy@plt>
addss  0xc(%rsp),%xmm0
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define float @get_total_energy(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call float @get_intra_energy(i32 %3)
%5 = load i32, i32* %2
%6 = call float @get_shell_rot_energy(i32 %5)
%7 = fadd float %4, %6
ret float %7
}

LLVM IR (-O2):
define float @get_total_energy(i32 %0) {
%2 = tail call float @get_intra_energy(i32 %0)
%3 = tail call float @get_shell_rot_energy(i32 %0)
%4 = fadd float %2, %3
ret float %4
}
_Ispce(c) char c;
{
  switch (c) {
  case ' ':
  case '\n':
  case '\t':
    return (1);
  }
  return (0);
}


x86 assembly (clang, -O0):
<_Ispce>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
mov    %eax,-0xc(%rbp)
add    $0xfffffff7,%eax
sub    $0x2,%eax
jb     1133 <_Ispce+0x33>
jmp    1122 <_Ispce+0x22>
mov    -0xc(%rbp),%eax
sub    $0x20,%eax
jne    113f <_Ispce+0x3f>
jmp    1133 <_Ispce+0x33>
movl   $0x1,-0x4(%rbp)
jmp    1146 <_Ispce+0x46>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<_Ispce>:
movsbl %dil,%ecx
cmp    $0x20,%ecx
ja     111f <_Ispce+0x1f>
mov    $0x1,%eax
movabs $0x100000600,%rdx
bt     %rcx,%rdx
jae    111f <_Ispce+0x1f>
ret
xor    %eax,%eax
ret

LLVM IR (-O0):
define i32 @_Ispce(i32 %0) {
%2 = alloca i32
%3 = alloca i8
%4 = trunc i32 %0 to i8
store i8 %4, i8* %3
%5 = load i8, i8* %3
%6 = sext i8 %5 to i32
switch i32 %6, label %8 [
i32 32, label %7
i32 10, label %7
i32 9, label %7
]
7: ; preds = %1, %1, %1
store i32 1, i32* %2
br label %9
8: ; preds = %1
store i32 0, i32* %2
br label %9
9: ; preds = %8, %7
%10 = load i32, i32* %2
ret i32 %10
}

LLVM IR (-O2):
define i32 @_Ispce(i32 %0) {
%2 = shl i32 %0, 24
%3 = ashr exact i32 %2, 24
switch i32 %3, label %4 [
i32 32, label %5
i32 10, label %5
i32 9, label %5
]
4: ; preds = %1
br label %5
5: ; preds = %1, %1, %1, %4
%6 = phi i32 [ 0, %4 ], [ 1, %1 ], [ 1, %1 ], [ 1, %1 ]
ret i32 %6
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int aldl_finish() {
  exit(1);
  return 0;
}


x86 assembly (clang, -O0):
<aldl_finish>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1,%edi
call   1030 <exit@plt>

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

LLVM IR (-O0):
define i32 @aldl_finish() {
%1 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
define i32 @aldl_finish() {
%1 = tail call i32 @exit(i32 1)
unreachable
}
/* Variables and functions */
char *strrchr(char *, char);
char *find_strip_path(char *path) {
  char *c = strrchr(path, '/');
  if (c)
    return &c[1];
  else
    return path;
}


x86 assembly (clang, -O0):
<find_strip_path>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x2f,%esi
call   1030 <strrchr@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     114a <find_strip_path+0x3a>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    1152 <find_strip_path+0x42>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<find_strip_path>:
push   %rbx
mov    %rdi,%rbx
mov    $0x2f,%esi
call   1030 <strrchr@plt>
lea    0x1(%rax),%rcx
test   %rax,%rax
cmove  %rbx,%rcx
mov    %rcx,%rax
pop    %rbx
ret

LLVM IR (-O0):
define i8* @find_strip_path(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
%5 = load i8*, i8** %3
%6 = call i8* @strrchr(i8* %5, i8 signext 47)
store i8* %6, i8** %4
%7 = load i8*, i8** %4
%8 = icmp ne i8* %7, null
br i1 %8, label %9, label %12
9: ; preds = %1
%10 = load i8*, i8** %4
%11 = getelementptr inbounds i8, i8* %10, i64 1
store i8* %11, i8** %2
br label %14
12: ; preds = %1
%13 = load i8*, i8** %3
store i8* %13, i8** %2
br label %14
14: ; preds = %12, %9
%15 = load i8*, i8** %2
ret i8* %15
}

LLVM IR (-O2):
define i8* @find_strip_path(i8* %0) {
%2 = tail call i8* @strrchr(i8* dereferenceable(1) %0, i8 signext 47)
%3 = icmp eq i8* %2, null
%4 = getelementptr inbounds i8, i8* %2, i64 1
%5 = select i1 %3, i8* %0, i8* %4
ret i8* %5
}