xunge/DecIR huggingface dataset:
/* Variables and functions */
scalar_t__ findAddressIndex(int *, void *);
int /*<<< orphan*/ removeAddressEntry(int);
void unsetAddressName(void *address) {
  int index;
  if (findAddressIndex(&index, address)) {
    removeAddressEntry(index);
  }
}


x86 assembly (clang, -O0):
<unsetAddressName>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdi
call   1030 <findAddressIndex@plt>
cmp    $0x0,%rax
je     114b <unsetAddressName+0x2b>
mov    -0xc(%rbp),%edi
call   1040 <removeAddressEntry@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<unsetAddressName>:
push   %rax
mov    %rdi,%rsi
lea    0x4(%rsp),%rdi
call   1030 <findAddressIndex@plt>
test   %rax,%rax
je     113c <unsetAddressName+0x1c>
mov    0x4(%rsp),%edi
call   1040 <removeAddressEntry@plt>
pop    %rax
ret

LLVM IR (-O0):
define void @unsetAddressName(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = call i64 @findAddressIndex(i32* %3, i8* %4)
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = load i32, i32* %3
%9 = call i32 @removeAddressEntry(i32 %8)
br label %10
10: ; preds = %7, %1
ret void
}

LLVM IR (-O2):
define void @unsetAddressName(i8* %0) {
%2 = alloca i32
%3 = bitcast i32* %2 to i8*
%4 = call i64 @findAddressIndex(i32* %2, i8* %0)
%5 = icmp eq i64 %4, 0
br i1 %5, label %9, label %6
6: ; preds = %1
%7 = load i32, i32* %2
%8 = call i32 @removeAddressEntry(i32 %7)
br label %9
9: ; preds = %6, %1
ret void
}
/* Variables and functions */
float quadratic_io(float, float, float);
float quadratic_f_io(float step, float max_steps, float max_val) {
  return quadratic_io(step, max_steps, max_val);
}


x86 assembly (clang, -O0):
<quadratic_f_io>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  -0x4(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
movss  -0xc(%rbp),%xmm2
call   1030 <quadratic_io@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define float @quadratic_f_io(float %0, float %1, float %2) {
%4 = tail call float @quadratic_io(float %0, float %1, float %2)
ret float %4
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ snprintf(char *, int, char *, char *);
int /*<<< orphan*/ system(char *);
void screen_irssi_kill(char nickname[]) {
  char chaine[100] = {0};
  snprintf(chaine, 100, "su --command='screen -S irc_logger -X quit' %s\n",
           nickname);
  printf("%s", chaine);
  system(chaine);
}


x86 assembly (clang, -O0):
<screen_irssi_kill>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0x70(%rbp),%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1060 <memset@plt>
lea    -0x70(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    $0x64,%esi
lea    0xe90(%rip),%rdx
call   1050 <snprintf@plt>
lea    -0x70(%rbp),%rsi
lea    0xeb0(%rip),%rdi
call   1040 <printf@plt>
lea    -0x70(%rbp),%rdi
call   1030 <system@plt>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<screen_irssi_kill>:
push   %rbx
sub    $0x70,%rsp
mov    %rdi,%rcx
xorps  %xmm0,%xmm0
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movaps %xmm0,(%rsp)
movl   $0x0,0x60(%rsp)
lea    0xe99(%rip),%rdx
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0x64,%esi
call   1050 <snprintf@plt>
lea    0xeb2(%rip),%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1030 <system@plt>
add    $0x70,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [48 x i8] c"su --command='screen -S irc_logger -X quit' %s\0A\00"
@.str.1 = [3 x i8] c"%s\00"
define void @screen_irssi_kill(i8* %0) {
%2 = alloca i8*
%3 = alloca [100 x i8]
store i8* %0, i8** %2
%4 = bitcast [100 x i8]* %3 to i8*
%5 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%6 = load i8*, i8** %2
%7 = call i32 @snprintf(i8* %5, i32 100, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i8* %6)
%8 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%9 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %8)
%10 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%11 = call i32 @system(i8* %10)
ret void
}

LLVM IR (-O2):
@.str = [48 x i8] c"su --command='screen -S irc_logger -X quit' %s\0A\00"
@.str.1 = [3 x i8] c"%s\00"
define void @screen_irssi_kill(i8* %0) {
%2 = alloca [100 x i8]
%3 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%4 = call i32 @snprintf(i8* %3, i32 100, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i8* %0)
%5 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %3)
%6 = call i32 @system(i8* %3)
ret void
}
/* Variables and functions */
int OK;
int PDC_print(int cmd, int byte, int port) { return (OK); }


x86 assembly (clang, -O0):
<PDC_print>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    0x2ecc(%rip),%rax
mov    (%rax),%eax
pop    %rbp
ret

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

LLVM IR (-O0):
@OK = global i32 0
define i32 @PDC_print(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* @OK
ret i32 %7
}

LLVM IR (-O2):
@OK = global i32 0
define i32 @PDC_print(i32 %0, i32 %1, i32 %2) {
%4 = load i32, i32* @OK
ret i32 %4
}
/* Type definitions */
typedef int /*<<< orphan*/ size;

/* Variables and functions */
int /*<<< orphan*/ SOL_SOCKET;
int /*<<< orphan*/ SO_SNDBUF;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ perror(char *);
int setsockopt(int, int /*<<< orphan*/, int /*<<< orphan*/, unsigned int *,
               int);
void set_sndbuf(int fd, unsigned int size) {
  int err;
  err = setsockopt(fd, SOL_SOCKET, SO_SNDBUF, &size, sizeof(size));
  if (err) {
    perror("set SO_SNDBUF");
    exit(1);
  }
}


x86 assembly (clang, -O0):
<set_sndbuf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    0x2ea0(%rip),%rax
mov    (%rax),%esi
mov    0x2e8f(%rip),%rax
mov    (%rax),%edx
lea    -0x8(%rbp),%rcx
mov    $0x4,%r8d
call   1030 <setsockopt@plt>
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
je     1185 <set_sndbuf+0x55>
lea    0xe8a(%rip),%rdi
call   1040 <perror@plt>
mov    $0x1,%edi
call   1050 <exit@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_sndbuf>:
push   %rax
mov    %esi,0x4(%rsp)
mov    0x2eac(%rip),%rax
mov    (%rax),%esi
mov    0x2e9b(%rip),%rax
mov    (%rax),%edx
lea    0x4(%rsp),%rcx
mov    $0x4,%r8d
call   1030 <setsockopt@plt>
test   %eax,%eax
jne    115d <set_sndbuf+0x2d>
pop    %rax
ret
lea    0xe9c(%rip),%rdi
call   1040 <perror@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@SOL_SOCKET = global i32 0
@SO_SNDBUF = global i32 0
@.str = [14 x i8] c"set SO_SNDBUF\00"
define void @set_sndbuf(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%6 = load i32, i32* %3
%7 = load i32, i32* @SOL_SOCKET
%8 = load i32, i32* @SO_SNDBUF
%9 = call i32 @setsockopt(i32 %6, i32 %7, i32 %8, i32* %4, i32 4)
store i32 %9, i32* %5
%10 = load i32, i32* %5
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = call i32 @perror(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%14 = call i32 @exit(i32 1)
unreachable
15: ; preds = %2
ret void
}

LLVM IR (-O2):
@SOL_SOCKET = global i32 0
@SO_SNDBUF = global i32 0
@.str = [14 x i8] c"set SO_SNDBUF\00"
define void @set_sndbuf(i32 %0, i32 %1) {
%3 = alloca i32
store i32 %1, i32* %3
%4 = load i32, i32* @SOL_SOCKET
%5 = load i32, i32* @SO_SNDBUF
%6 = call i32 @setsockopt(i32 %0, i32 %4, i32 %5, i32* %3, i32 4)
%7 = icmp eq i32 %6, 0
br i1 %7, label %11, label %8
8: ; preds = %2
%9 = call i32 @perror(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%10 = call i32 @exit(i32 1)
unreachable
11: ; preds = %2
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fatal(char *);
void *malloc(size_t);
void *ec_malloc(size_t size) {
  void *ptr;
  ptr = malloc(size);
  if (ptr == NULL) {
    fatal("in ec_malloc() on memory allocation.\n");
  }
  return ptr;
}


x86 assembly (clang, -O0):
<ec_malloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <malloc@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1150 <ec_malloc+0x30>
lea    0xeb5(%rip),%rdi
call   1040 <fatal@plt>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ec_malloc>:
push   %rbx
call   1030 <malloc@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    113a <ec_malloc+0x1a>
lea    0xecb(%rip),%rdi
call   1040 <fatal@plt>
mov    %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [38 x i8] c"in ec_malloc() on memory allocation.\0A\00"
define i8* @ec_malloc(i64 %0) {
%2 = alloca i64
%3 = alloca i8*
store i64 %0, i64* %2
%4 = load i64, i64* %2
%5 = call i8* @malloc(i64 %4)
store i8* %5, i8** %3
%6 = load i8*, i8** %3
%7 = icmp eq i8* %6, null
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = call i32 @fatal(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
br label %10
10: ; preds = %8, %1
%11 = load i8*, i8** %3
ret i8* %11
}

LLVM IR (-O2):
@.str = [38 x i8] c"in ec_malloc() on memory allocation.\0A\00"
define noalias i8* @ec_malloc(i64 %0) {
%2 = tail call i8* @malloc(i64 %0)
%3 = icmp eq i8* %2, null
br i1 %3, label %4, label %6
4: ; preds = %1
%5 = tail call i32 @fatal(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
br label %6
6: ; preds = %4, %1
ret i8* %2
}
/* Type definitions */
typedef int /*<<< orphan*/ uid_t;
struct passwd {
  int dummy;
};

/* Variables and functions */
struct passwd *getpwuid(int /*<<< orphan*/ const);
struct passwd *getPasswdInfo(const uid_t queryUID) {
  return getpwuid(queryUID);
}


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

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

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

LLVM IR (-O2):
%struct.passwd = type { i32 }
define %struct.passwd* @getPasswdInfo(i32 %0) {
%2 = tail call %struct.passwd* @getpwuid(i32 %0)
ret %struct.passwd* %2
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void print_full_usage(void) {
  printf("usage: beeuniq [options] <string>\n\n");
  printf("options:\n\n");
  printf(
      "  -d | --delimiter <char>  specify the outputdelimiter character\n\n");
}


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

x86 assembly (clang, -O2):
<print_full_usage>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xeff(%rip),%rdi
call   1030 <puts@plt>
lea    0xefd(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [36 x i8] c"usage: beeuniq [options] <string>\0A\0A\00"
@.str.1 = [11 x i8] c"options:\0A\0A\00"
@.str.2 = [67 x i8] c" -d | --delimiter <char> specify the outputdelimiter character\0A\0A\00"
define void @print_full_usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [35 x i8] c"usage: beeuniq [options] <string>\0A\00"
@str.3 = [10 x i8] c"options:\0A\00"
@str.4 = [66 x i8] c" -d | --delimiter <char> specify the outputdelimiter character\0A\00"
define void @print_full_usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.3, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.4, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ ceil(double);
int /*<<< orphan*/ ceilf(float);
int /*<<< orphan*/ ceill(long double);
void uninitvar_ceil(void) {
  float f;
  (void)ceilf(f);
  double d;
  (void)ceil(d);
  long double ld;
  (void)ceill(ld);
}


x86 assembly (clang, -O0):
<uninitvar_ceil>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movss  -0x4(%rbp),%xmm0
call   1050 <ceilf@plt>
movsd  -0x10(%rbp),%xmm0
call   1030 <ceil@plt>
fldt   -0x20(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
call   1040 <ceill@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<uninitvar_ceil>:
sub    $0x18,%rsp
call   1050 <ceilf@plt>
call   1030 <ceil@plt>
call   1040 <ceill@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
define void @uninitvar_ceil() {
%1 = alloca float
%2 = alloca double
%3 = alloca x86_fp80
%4 = load float, float* %1
%5 = call i32 @ceilf(float %4)
%6 = load double, double* %2
%7 = call i32 @ceil(double %6)
%8 = load x86_fp80, x86_fp80* %3
%9 = call i32 @ceill(x86_fp80 %8)
ret void
}

LLVM IR (-O2):
define void @uninitvar_ceil() {
%1 = tail call i32 @ceilf(float undef)
%2 = tail call i32 @ceil(double undef)
%3 = tail call i32 @ceill(x86_fp80 undef)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ console_putchar(char);
int console_write(int unit, const void *buffer, int length, int offset) {
  char *cbuffer = (char *)buffer;
  while (length > 0) {
    console_putchar(*cbuffer);
    cbuffer++;
    length--;
  }
  return 1;
}


x86 assembly (clang, -O0):
<console_write>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
cmpl   $0x0,-0x14(%rbp)
jle    115d <console_write+0x4d>
mov    -0x20(%rbp),%rax
movsbl (%rax),%edi
call   1030 <console_putchar@plt>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
mov    -0x14(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x14(%rbp)
jmp    112d <console_write+0x1d>
mov    $0x1,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<console_write>:
push   %rbp
push   %rbx
push   %rax
test   %edx,%edx
jle    1134 <console_write+0x24>
mov    %edx,%ebp
mov    %rsi,%rbx
add    $0x1,%ebp
nop
movsbl (%rbx),%edi
call   1030 <console_putchar@plt>
add    $0x1,%rbx
add    $0xffffffff,%ebp
cmp    $0x1,%ebp
ja     1120 <console_write+0x10>
mov    $0x1,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @console_write(i32 %0, i8* nocapture %1, i32 %2, i32 %3) {
%5 = icmp sgt i32 %2, 0
br i1 %5, label %6, label %14
6: ; preds = %4, %6
%7 = phi i8* [ %11, %6 ], [ %1, %4 ]
%8 = phi i32 [ %12, %6 ], [ %2, %4 ]
%9 = load i8, i8* %7
%10 = tail call i32 @console_putchar(i8 signext %9)
%11 = getelementptr inbounds i8, i8* %7, i64 1
%12 = add nsw i32 %8, -1
%13 = icmp ugt i32 %8, 1
br i1 %13, label %6, label %14
14: ; preds = %6, %4
ret i32 1
}
void LPCIRQSend(unsigned long ulBase) {
  ;
  (*((volatile unsigned long *)(ulBase + 0x00000008))) |= 0x00000001;
}


x86 assembly (clang, -O0):
<LPCIRQSend>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%rcx
or     $0x1,%rcx
mov    %rcx,0x8(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<LPCIRQSend>:
orq    $0x1,0x8(%rdi)
ret

LLVM IR (-O0):
define void @LPCIRQSend(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = add i64 %3, 8
%5 = inttoptr i64 %4 to i64*
%6 = load volatile i64, i64* %5
%7 = or i64 %6, 1
store volatile i64 %7, i64* %5
ret void
}

LLVM IR (-O2):
define void @LPCIRQSend(i64 %0) {
%2 = add i64 %0, 8
%3 = inttoptr i64 %2 to i64*
%4 = load volatile i64, i64* %3
%5 = or i64 %4, 1
store volatile i64 %5, i64* %3
ret void
}
__attribute__((weak)) int LLVMFuzzerInitialize(int *argc
                                               __attribute__((unused)),
                                               char ***argv
                                               __attribute__((unused))) {
  return 1;
}


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

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

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

LLVM IR (-O2):
define weak i32 @LLVMFuzzerInitialize(i32* %0, i8*** %1) {
ret i32 1
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main(void) {
  printf("not define number\n");
  printf("R is not 0\n");
}


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

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

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

LLVM IR (-O2):
@str = [18 x i8] c"not define number\00"
@str.2 = [11 x i8] c"R is not 0\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.2, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
char *until_wordend(char *);
char *split_word(char *s) {
  s = until_wordend(s);
  if (*s == '\0')
    return s;
  *s = '\0';
  s++;
  return s;
}


x86 assembly (clang, -O0):
<split_word>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <until_wordend@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    1146 <split_word+0x36>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    1161 <split_word+0x51>
mov    -0x10(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<split_word>:
push   %rax
call   1030 <until_wordend@plt>
cmpb   $0x0,(%rax)
je     1122 <split_word+0x12>
movb   $0x0,(%rax)
add    $0x1,%rax
pop    %rcx
ret

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

LLVM IR (-O2):
define i8* @split_word(i8* %0) {
%2 = tail call i8* @until_wordend(i8* %0)
%3 = load i8, i8* %2
%4 = icmp eq i8 %3, 0
br i1 %4, label %7, label %5
5: ; preds = %1
store i8 0, i8* %2
%6 = getelementptr inbounds i8, i8* %2, i64 1
br label %7
7: ; preds = %1, %5
%8 = phi i8* [ %6, %5 ], [ %2, %1 ]
ret i8* %8
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ __hash32(int /*<<< orphan*/, int);
uint32_t hash32(uint32_t val) { return __hash32(val, 10); }


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

x86 assembly (clang, -O2):
<hash32>:
mov    $0xa,%esi
jmp    1030 <__hash32@plt>

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

LLVM IR (-O2):
define i32 @hash32(i32 %0) {
%2 = tail call i32 @__hash32(i32 %0, i32 10)
ret i32 %2
}
/* Variables and functions */
int SIGALRM;
int /*<<< orphan*/ printf(char *, int);
void signal_handler(int signum) {
  if (signum == SIGALRM) {
    printf("Hello, SIGALRM signal(%d).\n", SIGALRM);
  }
}


x86 assembly (clang, -O0):
<signal_handler>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    0x2ec3(%rip),%rcx
cmp    (%rcx),%eax
jne    1142 <signal_handler+0x32>
mov    0x2eb4(%rip),%rax
mov    (%rax),%esi
lea    0xec3(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<signal_handler>:
mov    0x2ed1(%rip),%rax
cmp    %edi,(%rax)
jne    1129 <signal_handler+0x19>
mov    %edi,%esi
lea    0xedc(%rip),%rdi
jmp    1030 <printf@plt>
ret

LLVM IR (-O0):
@SIGALRM = global i32 0
@.str = [28 x i8] c"Hello, SIGALRM signal(%d).\0A\00"
define void @signal_handler(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = load i32, i32* @SIGALRM
%5 = icmp eq i32 %3, %4
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i32, i32* @SIGALRM
%8 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i32 %7)
br label %9
9: ; preds = %6, %1
ret void
}

LLVM IR (-O2):
@SIGALRM = global i32 0
@.str = [28 x i8] c"Hello, SIGALRM signal(%d).\0A\00"
define void @signal_handler(i32 %0) {
%2 = load i32, i32* @SIGALRM
%3 = icmp eq i32 %2, %0
br i1 %3, label %4, label %6
4: ; preds = %1
%5 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i32 %0)
br label %6
6: ; preds = %4, %1
ret void
}
void foo049() {}


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

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

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

LLVM IR (-O2):
define void @foo049() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ imp(int, char *);
void picture_temporal_scalable_extension() {
  imp(4, "temporal scalability not supported\n");
}


x86 assembly (clang, -O0):
<picture_temporal_scalable_extension>:
push   %rbp
mov    %rsp,%rbp
mov    $0x4,%edi
lea    0xee0(%rip),%rsi
call   1030 <imp@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<picture_temporal_scalable_extension>:
lea    0xee9(%rip),%rsi
mov    $0x4,%edi
jmp    1030 <imp@plt>

LLVM IR (-O0):
@.str = [36 x i8] c"temporal scalability not supported\0A\00"
define void @picture_temporal_scalable_extension() {
%1 = call i32 @imp(i32 4, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [36 x i8] c"temporal scalability not supported\0A\00"
define void @picture_temporal_scalable_extension() {
%1 = tail call i32 @imp(i32 4, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
ret void
}
void I2C2_Handler(void) {
  while (1) {
  }
}


x86 assembly (clang, -O0):
<I2C2_Handler>:
push   %rbp
mov    %rsp,%rbp
jmp    1109 <I2C2_Handler+0x9>
jmp    1109 <I2C2_Handler+0x9>

x86 assembly (clang, -O2):
<I2C2_Handler>:
jmp    1100 <I2C2_Handler>

LLVM IR (-O0):
define void @I2C2_Handler() {
br label %1
1: ; preds = %0, %1
br label %1
}

LLVM IR (-O2):
define void @I2C2_Handler() {
br label %1
1: ; preds = %0, %1
br label %1
}
/* Variables and functions */
scalar_t__ read_buf(char *, char const *, char *);
int /*<<< orphan*/ sscanf(char *, char *, int *);
void read_int(char *buf, const char *key, int *value) {
  char buf2[1024];
  if (read_buf(buf, key, buf2)) {
    sscanf(buf2, "%d", value);
  }
}


x86 assembly (clang, -O0):
<read_int>:
push   %rbp
mov    %rsp,%rbp
sub    $0x420,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    -0x420(%rbp),%rdx
call   1030 <read_buf@plt>
cmp    $0x0,%rax
je     116c <read_int+0x4c>
lea    -0x420(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xe99(%rip),%rsi
call   1040 <sscanf@plt>
add    $0x420,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<read_int>:
push   %rbx
sub    $0x400,%rsp
mov    %rdx,%rbx
mov    %rsp,%rdx
call   1030 <read_buf@plt>
test   %rax,%rax
je     114a <read_int+0x2a>
lea    0xec1(%rip),%rsi
mov    %rsp,%rdi
mov    %rbx,%rdx
call   1040 <sscanf@plt>
add    $0x400,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
define void @read_int(i8* %0, i8* %1, i32* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32*
%7 = alloca [1024 x i8]
store i8* %0, i8** %4
store i8* %1, i8** %5
store i32* %2, i32** %6
%8 = load i8*, i8** %4
%9 = load i8*, i8** %5
%10 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%11 = call i64 @read_buf(i8* %8, i8* %9, i8* %10)
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %17
13: ; preds = %3
%14 = getelementptr inbounds [1024 x i8], [1024 x i8]* %7, i64 0, i64 0
%15 = load i32*, i32** %6
%16 = call i32 @sscanf(i8* %14, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %15)
br label %17
17: ; preds = %13, %3
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define void @read_int(i8* %0, i8* %1, i32* %2) {
%4 = alloca [1024 x i8]
%5 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%6 = call i64 @read_buf(i8* %0, i8* %1, i8* %5)
%7 = icmp eq i64 %6, 0
br i1 %7, label %10, label %8
8: ; preds = %3
%9 = call i32 @sscanf(i8* %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
br label %10
10: ; preds = %8, %3
ret void
}
/* Type definitions */
struct sockaddr_in {
  int dummy;
};
struct sockaddr {
  int dummy;
};
typedef int /*<<< orphan*/ peer_addr;

/* Variables and functions */
int accept(int, struct sockaddr *, unsigned int *);
int accept_socket(int sockfd) {
  struct sockaddr_in peer_addr;
  unsigned int sin_size = sizeof(peer_addr);
  int new_fd = accept(sockfd, (struct sockaddr *)&peer_addr, &sin_size);
  return new_fd;
}


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

x86 assembly (clang, -O2):
<accept_socket>:
sub    $0x18,%rsp
movl   $0x4,0xc(%rsp)
lea    0x10(%rsp),%rsi
lea    0xc(%rsp),%rdx
call   1030 <accept@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
%struct.sockaddr_in = type { i32 }
%struct.sockaddr = type { i32 }
define i32 @accept_socket(i32 %0) {
%2 = alloca i32
%3 = alloca %struct.sockaddr_in
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %2
store i32 4, i32* %4
%6 = load i32, i32* %2
%7 = bitcast %struct.sockaddr_in* %3 to %struct.sockaddr*
%8 = call i32 @accept(i32 %6, %struct.sockaddr* %7, i32* %4)
store i32 %8, i32* %5
%9 = load i32, i32* %5
ret i32 %9
}

LLVM IR (-O2):
%struct.sockaddr_in = type { i32 }
%struct.sockaddr = type { i32 }
define i32 @accept_socket(i32 %0) {
%2 = alloca %struct.sockaddr_in
%3 = alloca i32
%4 = bitcast %struct.sockaddr_in* %2 to i8*
%5 = bitcast i32* %3 to i8*
store i32 4, i32* %3
%6 = bitcast %struct.sockaddr_in* %2 to %struct.sockaddr*
%7 = call i32 @accept(i32 %0, %struct.sockaddr* %6, i32* %3)
ret i32 %7
}
/* Variables and functions */
unsigned long GetAudioPos303(unsigned long);
unsigned long getaudiopos(unsigned long id) { return GetAudioPos303(id); }


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

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

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

LLVM IR (-O2):
define i64 @getaudiopos(i64 %0) {
%2 = tail call i64 @GetAudioPos303(i64 %0)
ret i64 %2
}
int divideby(int M, int d) {
  while (M % d == 0) {
    M = M / d;
  }
  if (M == 1) {
    return 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<divideby>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%eax
cltd
idivl  -0xc(%rbp)
cmp    $0x0,%edx
jne    1129 <divideby+0x29>
mov    -0x8(%rbp),%eax
cltd
idivl  -0xc(%rbp)
mov    %eax,-0x8(%rbp)
jmp    110a <divideby+0xa>
cmpl   $0x1,-0x8(%rbp)
jne    113f <divideby+0x3f>
movl   $0x1,-0x4(%rbp)
jmp    1146 <divideby+0x46>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<divideby>:
mov    %edi,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
cltd
idiv   %esi
test   %edx,%edx
jne    1120 <divideby+0x20>
mov    %edi,%eax
cltd
idiv   %esi
mov    %eax,%edi
jmp    1110 <divideby+0x10>
xor    %eax,%eax
cmp    $0x1,%edi
sete   %al
ret

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

LLVM IR (-O2):
define i32 @divideby(i32 %0, i32 %1) {
%3 = srem i32 %0, %1
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %10
5: ; preds = %2, %5
%6 = phi i32 [ %7, %5 ], [ %0, %2 ]
%7 = sdiv i32 %6, %1
%8 = srem i32 %7, %1
%9 = icmp eq i32 %8, 0
br i1 %9, label %5, label %10
10: ; preds = %5, %2
%11 = phi i32 [ %0, %2 ], [ %7, %5 ]
%12 = icmp eq i32 %11, 1
%13 = zext i1 %12 to i32
ret i32 %13
}
int bitcount(unsigned x) {
  int b = 0;
  while (x > 0) {
    x &= (x - 1);
    b++;
  }
  return b;
}


x86 assembly (clang, -O0):
<bitcount>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x0,-0x4(%rbp)
jbe    1132 <bitcount+0x32>
mov    -0x4(%rbp),%eax
sub    $0x1,%eax
and    -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    110e <bitcount+0xe>
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<bitcount>:
xor    %eax,%eax
test   %edi,%edi
je     111c <bitcount+0x1c>
cs nopw 0x0(%rax,%rax,1)
lea    -0x1(%rdi),%ecx
add    $0x1,%eax
and    %edi,%ecx
mov    %ecx,%edi
jne    1110 <bitcount+0x10>
ret

LLVM IR (-O0):
define i32 @bitcount(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
store i32 0, i32* %3
br label %4
4: ; preds = %7, %1
%5 = load i32, i32* %2
%6 = icmp ugt i32 %5, 0
br i1 %6, label %7, label %14
7: ; preds = %4
%8 = load i32, i32* %2
%9 = sub i32 %8, 1
%10 = load i32, i32* %2
%11 = and i32 %10, %9
store i32 %11, i32* %2
%12 = load i32, i32* %3
%13 = add nsw i32 %12, 1
store i32 %13, i32* %3
br label %4
14: ; preds = %4
%15 = load i32, i32* %3
ret i32 %15
}

LLVM IR (-O2):
define i32 @bitcount(i32 %0) {
%2 = icmp eq i32 %0, 0
br i1 %2, label %10, label %3
3: ; preds = %1, %3
%4 = phi i32 [ %8, %3 ], [ 0, %1 ]
%5 = phi i32 [ %7, %3 ], [ %0, %1 ]
%6 = add i32 %5, -1
%7 = and i32 %6, %5
%8 = add nuw nsw i32 %4, 1
%9 = icmp eq i32 %7, 0
br i1 %9, label %10, label %3
10: ; preds = %3, %1
%11 = phi i32 [ 0, %1 ], [ %8, %3 ]
ret i32 %11
}
/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
void Teclado(unsigned char key, int x, int y) {
  if (key == 27)
    exit(0);
}


x86 assembly (clang, -O0):
<Teclado>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
movzbl -0x1(%rbp),%eax
cmp    $0x1b,%eax
jne    1138 <Teclado+0x28>
xor    %edi,%edi
call   1030 <exit@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Teclado>:
cmp    $0x1b,%dil
je     1117 <Teclado+0x7>
ret
push   %rax
xor    %edi,%edi
call   1030 <exit@plt>

LLVM IR (-O0):
define void @Teclado(i8 zeroext %0, i32 %1, i32 %2) {
%4 = alloca i8
%5 = alloca i32
%6 = alloca i32
store i8 %0, i8* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i8, i8* %4
%8 = zext i8 %7 to i32
%9 = icmp eq i32 %8, 27
br i1 %9, label %10, label %12
10: ; preds = %3
%11 = call i32 @exit(i32 0)
unreachable
12: ; preds = %3
ret void
}

LLVM IR (-O2):
define void @Teclado(i8 zeroext %0, i32 %1, i32 %2) {
%4 = icmp eq i8 %0, 27
br i1 %4, label %5, label %7
5: ; preds = %3
%6 = tail call i32 @exit(i32 0)
unreachable
7: ; preds = %3
ret void
}
int do_378() { return 378; }


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

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

LLVM IR (-O0):
define i32 @do_378() {
ret i32 378
}

LLVM IR (-O2):
define i32 @do_378() {
ret i32 378
}
void rt_warn(char *mesg, ...) { return; }


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

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

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

LLVM IR (-O2):
define void @rt_warn(i8* nocapture %0, ...) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ glEnd();
void finishlines(void) { glEnd(); }


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

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

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

LLVM IR (-O2):
define void @finishlines() {
%1 = tail call i32 (...) @glEnd()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ test_append();
int /*<<< orphan*/ test_get();
int /*<<< orphan*/ test_length();
int /*<<< orphan*/ test_list();
int /*<<< orphan*/ test_prepend();
int main(void) {
  test_length();
  test_get();
  test_append();
  test_prepend();
  test_list();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1060 <test_length@plt>
mov    $0x0,%al
call   1030 <test_get@plt>
mov    $0x0,%al
call   1070 <test_append@plt>
mov    $0x0,%al
call   1050 <test_prepend@plt>
mov    $0x0,%al
call   1040 <test_list@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1060 <test_length@plt>
xor    %eax,%eax
call   1030 <test_get@plt>
xor    %eax,%eax
call   1070 <test_append@plt>
xor    %eax,%eax
call   1050 <test_prepend@plt>
xor    %eax,%eax
call   1040 <test_list@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @test_length()
%3 = call i32 (...) @test_get()
%4 = call i32 (...) @test_append()
%5 = call i32 (...) @test_prepend()
%6 = call i32 (...) @test_list()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @test_length()
%2 = tail call i32 (...) @test_get()
%3 = tail call i32 (...) @test_append()
%4 = tail call i32 (...) @test_prepend()
%5 = tail call i32 (...) @test_list()
ret i32 0
}
/* Type definitions */
struct intel_stat {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct intel_stat *);
void intel_stat_destroy(struct intel_stat *is) { free(is); }


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

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

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

LLVM IR (-O2):
%struct.intel_stat = type { i32 }
define void @intel_stat_destroy(%struct.intel_stat* nocapture %0) {
%2 = tail call i32 @free(%struct.intel_stat* %0)
ret void
}
void gtk_widget_set_default_colormap() {}


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

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

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

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

/* Variables and functions */
int Bits_popCountx64(uint64_t number) {
  int out = 0;
  for (int i = 0; i < 64; i++) {
    out += ((number >> i) & 1);
  }
  return out;
}


x86 assembly (clang, -O0):
<Bits_popCountx64>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x40,-0xc(%rbp)
jge    113e <Bits_popCountx64+0x3e>
mov    -0x4(%rbp),%eax
mov    -0xc(%rbp),%ecx
sar    %cl,%eax
and    $0x1,%eax
add    -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1115 <Bits_popCountx64+0x15>
mov    -0x8(%rbp),%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @Bits_popCountx64(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %2
store i32 0, i32* %3
store i32 0, i32* %4
br label %5
5: ; preds = %15, %1
%6 = load i32, i32* %4
%7 = icmp slt i32 %6, 64
br i1 %7, label %8, label %18
8: ; preds = %5
%9 = load i32, i32* %2
%10 = load i32, i32* %4
%11 = ashr i32 %9, %10
%12 = and i32 %11, 1
%13 = load i32, i32* %3
%14 = add nsw i32 %13, %12
store i32 %14, i32* %3
br label %15
15: ; preds = %8
%16 = load i32, i32* %4
%17 = add nsw i32 %16, 1
store i32 %17, i32* %4
br label %5
18: ; preds = %5
%19 = load i32, i32* %3
ret i32 %19
}

LLVM IR (-O2):
define i32 @Bits_popCountx64(i32 %0) {
ret i32 poison
}
/* Variables and functions */
int /*<<< orphan*/ closeServFile();
int /*<<< orphan*/ closeSpecialServFile();
void onStopPlugin() {
  closeServFile();
  closeSpecialServFile();
}


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

x86 assembly (clang, -O2):
<onStopPlugin>:
push   %rax
xor    %eax,%eax
call   1040 <closeServFile@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <closeSpecialServFile@plt>

LLVM IR (-O0):
define void @onStopPlugin() {
%1 = call i32 (...) @closeServFile()
%2 = call i32 (...) @closeSpecialServFile()
ret void
}

LLVM IR (-O2):
define void @onStopPlugin() {
%1 = tail call i32 (...) @closeServFile()
%2 = tail call i32 (...) @closeSpecialServFile()
ret void
}
void omp_set_num_threads(int t) {}


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

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

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

LLVM IR (-O2):
define void @omp_set_num_threads(i32 %0) {
ret void
}
/* Variables and functions */
size_t MIN(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ strlen(char const *);
int /*<<< orphan*/ strncasecmp(char const *, char const *, size_t);
int string_match(const char *a, const char *b) {
  size_t min = MIN(strlen(a), strlen(b));
  return !strncasecmp(a, b, min);
}


x86 assembly (clang, -O0):
<string_match>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x1c(%rbp),%edi
mov    %eax,%esi
call   1030 <MIN@plt>
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1050 <strncasecmp@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<string_match>:
push   %rbp
push   %r14
push   %rbx
mov    %rsi,%r14
mov    %rdi,%rbx
call   1040 <strlen@plt>
mov    %eax,%ebp
mov    %r14,%rdi
call   1040 <strlen@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1030 <MIN@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %rax,%rdx
call   1050 <strncasecmp@plt>
xor    %ecx,%ecx
test   %eax,%eax
sete   %cl
mov    %ecx,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i32 @string_match(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i64
store i8* %0, i8** %3
store i8* %1, i8** %4
%6 = load i8*, i8** %3
%7 = call i32 @strlen(i8* %6)
%8 = load i8*, i8** %4
%9 = call i32 @strlen(i8* %8)
%10 = call i64 @MIN(i32 %7, i32 %9)
store i64 %10, i64* %5
%11 = load i8*, i8** %3
%12 = load i8*, i8** %4
%13 = load i64, i64* %5
%14 = call i32 @strncasecmp(i8* %11, i8* %12, i64 %13)
%15 = icmp ne i32 %14, 0
%16 = xor i1 %15, true
%17 = zext i1 %16 to i32
ret i32 %17
}

LLVM IR (-O2):
define i32 @string_match(i8* %0, i8* %1) {
%3 = tail call i32 @strlen(i8* %0)
%4 = tail call i32 @strlen(i8* %1)
%5 = tail call i64 @MIN(i32 %3, i32 %4)
%6 = tail call i32 @strncasecmp(i8* %0, i8* %1, i64 %5)
%7 = icmp eq i32 %6, 0
%8 = zext i1 %7 to i32
ret i32 %8
}
int digit(char c) { return (c >= '0' && c <= '9'); }


x86 assembly (clang, -O0):
<digit>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%ecx
xor    %eax,%eax
cmp    $0x30,%ecx
mov    %al,-0x2(%rbp)
jl     1129 <digit+0x29>
movsbl -0x1(%rbp),%eax
cmp    $0x39,%eax
setle  %al
mov    %al,-0x2(%rbp)
mov    -0x2(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<digit>:
add    $0xd0,%dil
xor    %eax,%eax
cmp    $0xa,%dil
setb   %al
ret

LLVM IR (-O0):
define i32 @digit(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = sext i8 %3 to i32
%5 = icmp sge i32 %4, 48
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load i8, i8* %2
%8 = sext i8 %7 to i32
%9 = icmp sle i32 %8, 57
br label %10
10: ; preds = %6, %1
%11 = phi i1 [ false, %1 ], [ %9, %6 ]
%12 = zext i1 %11 to i32
ret i32 %12
}

LLVM IR (-O2):
define i32 @digit(i8 signext %0) {
%2 = add i8 %0, -48
%3 = icmp ult i8 %2, 10
%4 = zext i1 %3 to i32
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void foo() { printf("foo(), line 5\n"); }


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

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

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

LLVM IR (-O2):
@str = [14 x i8] c"foo(), line 5\00"
define void @foo() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ __m256i;

/* Variables and functions */
int /*<<< orphan*/ _mm256_permute2x128_si256(int /*<<< orphan*/,
                                             int /*<<< orphan*/, int);
__attribute__((always_)) __m256i _mm256_unpacklo_epi128(__m256i a, __m256i b) {
  return _mm256_permute2x128_si256(a, b, 0x20);
}


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

x86 assembly (clang, -O2):
<_mm256_unpacklo_epi128>:
mov    $0x20,%edx
jmp    1030 <_mm256_permute2x128_si256@plt>

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

LLVM IR (-O2):
define i32 @_mm256_unpacklo_epi128(i32 %0, i32 %1) {
%3 = tail call i32 @_mm256_permute2x128_si256(i32 %0, i32 %1, i32 32)
ret i32 %3
}
int op_imp(char *operand, char **filename) { return 1; }


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

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

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

LLVM IR (-O2):
define i32 @op_imp(i8* nocapture readnone %0, i8** nocapture readnone %1) {
ret i32 1
}