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

/* Variables and functions */
int lhashtable_del(struct lhashtable *, char const *, int /*<<< orphan*/);
int /*<<< orphan*/ strlen(char const *);
int lhashtable_del_str(struct lhashtable *lht, const char *key) {
  return lhashtable_del(lht, key, strlen(key));
}


x86 assembly (clang, -O0):
<lhashtable_del_str>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x20(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    %eax,%edx
call   1040 <lhashtable_del@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<lhashtable_del_str>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
mov    %rsi,%rdi
call   1030 <strlen@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <lhashtable_del@plt>

LLVM IR (-O0):
%struct.lhashtable = type { i32 }
define i32 @lhashtable_del_str(%struct.lhashtable* %0, i8* %1) {
%3 = alloca %struct.lhashtable*
%4 = alloca i8*
store %struct.lhashtable* %0, %struct.lhashtable** %3
store i8* %1, i8** %4
%5 = load %struct.lhashtable*, %struct.lhashtable** %3
%6 = load i8*, i8** %4
%7 = load i8*, i8** %4
%8 = call i32 @strlen(i8* %7)
%9 = call i32 @lhashtable_del(%struct.lhashtable* %5, i8* %6, i32 %8)
ret i32 %9
}

LLVM IR (-O2):
%struct.lhashtable = type { i32 }
define i32 @lhashtable_del_str(%struct.lhashtable* %0, i8* %1) {
%3 = tail call i32 @strlen(i8* %1)
%4 = tail call i32 @lhashtable_del(%struct.lhashtable* %0, i8* %1, i32 %3)
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ I2C_ReadByte(int, unsigned char, unsigned char *);
void AT24C02_ReadByte(unsigned char regAddr, unsigned char *byte) {
  I2C_ReadByte(0x50, regAddr, byte);
}


x86 assembly (clang, -O0):
<AT24C02_ReadByte>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x1(%rbp),%al
mov    -0x10(%rbp),%rdx
mov    $0x50,%edi
movzbl %al,%esi
call   1030 <I2C_ReadByte@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<AT24C02_ReadByte>:
mov    %rsi,%rdx
mov    %edi,%esi
mov    $0x50,%edi
jmp    1030 <I2C_ReadByte@plt>

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

LLVM IR (-O2):
define void @AT24C02_ReadByte(i8 zeroext %0, i8* %1) {
%3 = tail call i32 @I2C_ReadByte(i32 80, i8 zeroext %0, i8* %1)
ret void
}
/* Variables and functions */
int fac(int);
int /*<<< orphan*/ printf(char *, int, int);
void main() {
  int i;
  for (i = 1; i <= 5; i++) {
    printf("%d! = %d\n", i, fac(i));
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x1,-0x4(%rbp)
cmpl   $0x5,-0x4(%rbp)
jg     1166 <main+0x46>
mov    -0x4(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <fac@plt>
mov    -0x8(%rbp),%esi
mov    %eax,%edx
lea    0xead(%rip),%rdi
call   1040 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    112f <main+0xf>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0x1,%edi
call   1030 <fac@plt>
lea    0xece(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1,%esi
mov    %eax,%edx
call   1040 <printf@plt>
mov    $0x2,%edi
call   1030 <fac@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
mov    %eax,%edx
call   1040 <printf@plt>
mov    $0x3,%edi
call   1030 <fac@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
mov    %eax,%edx
call   1040 <printf@plt>
mov    $0x4,%edi
call   1030 <fac@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
mov    %eax,%edx
call   1040 <printf@plt>
mov    $0x5,%edi
call   1030 <fac@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
mov    %eax,%edx
pop    %rbx
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"%d! = %d\0A\00"
define void @main() {
%1 = alloca i32
store i32 1, i32* %1
br label %2
2: ; preds = %10, %0
%3 = load i32, i32* %1
%4 = icmp sle i32 %3, 5
br i1 %4, label %5, label %13
5: ; preds = %2
%6 = load i32, i32* %1
%7 = load i32, i32* %1
%8 = call i32 @fac(i32 %7)
%9 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %6, i32 %8)
br label %10
10: ; preds = %5
%11 = load i32, i32* %1
%12 = add nsw i32 %11, 1
store i32 %12, i32* %1
br label %2
13: ; preds = %2
ret void
}

LLVM IR (-O2):
@.str = [10 x i8] c"%d! = %d\0A\00"
define void @main() {
%1 = tail call i32 @fac(i32 1)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 1, i32 %1)
%3 = tail call i32 @fac(i32 2)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 2, i32 %3)
%5 = tail call i32 @fac(i32 3)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 3, i32 %5)
%7 = tail call i32 @fac(i32 4)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 4, i32 %7)
%9 = tail call i32 @fac(i32 5)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 5, i32 %9)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ derefA(int *);
void inputNonNullA(int *arg1249) {
  int *p124 = arg1249;
  int *p182 = arg1249 + 1;
  derefA(p124);
  derefA(p182);
  return;
}


x86 assembly (clang, -O0):
<inputNonNullA>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <derefA@plt>
mov    -0x18(%rbp),%rdi
call   1030 <derefA@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<inputNonNullA>:
push   %rbx
lea    0x4(%rdi),%rbx
call   1030 <derefA@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <derefA@plt>

LLVM IR (-O0):
define void @inputNonNullA(i32* %0) {
%2 = alloca i32*
%3 = alloca i32*
%4 = alloca i32*
store i32* %0, i32** %2
%5 = load i32*, i32** %2
store i32* %5, i32** %3
%6 = load i32*, i32** %2
%7 = getelementptr inbounds i32, i32* %6, i64 1
store i32* %7, i32** %4
%8 = load i32*, i32** %3
%9 = call i32 @derefA(i32* %8)
%10 = load i32*, i32** %4
%11 = call i32 @derefA(i32* %10)
ret void
}

LLVM IR (-O2):
define void @inputNonNullA(i32* %0) {
%2 = getelementptr inbounds i32, i32* %0, i64 1
%3 = tail call i32 @derefA(i32* %0)
%4 = tail call i32 @derefA(i32* %2)
ret void
}
struct Reactor *srv_reactor(struct Server *server) {
  return (struct Reactor *)server;
}


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

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

LLVM IR (-O0):
%struct.Reactor = type opaque
%struct.Server = type opaque
define %struct.Reactor* @srv_reactor(%struct.Server* %0) {
%2 = alloca %struct.Server*
store %struct.Server* %0, %struct.Server** %2
%3 = load %struct.Server*, %struct.Server** %2
%4 = bitcast %struct.Server* %3 to %struct.Reactor*
ret %struct.Reactor* %4
}

LLVM IR (-O2):
%struct.Reactor = type opaque
%struct.Server = type opaque
define %struct.Reactor* @srv_reactor(%struct.Server* readnone %0) {
%2 = bitcast %struct.Server* %0 to %struct.Reactor*
ret %struct.Reactor* %2
}
int enablePorts(int errorLevel, unsigned short int base,
                unsigned short int count) {
  return 1;
}


x86 assembly (clang, -O0):
<enablePorts>:
push   %rbp
mov    %rsp,%rbp
mov    %dx,%ax
mov    %si,%cx
mov    %edi,-0x4(%rbp)
mov    %cx,-0x6(%rbp)
mov    %ax,-0x8(%rbp)
mov    $0x1,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @enablePorts(i32 %0, i16 zeroext %1, i16 zeroext %2) {
%4 = alloca i32
%5 = alloca i16
%6 = alloca i16
store i32 %0, i32* %4
store i16 %1, i16* %5
store i16 %2, i16* %6
ret i32 1
}

LLVM IR (-O2):
define i32 @enablePorts(i32 %0, i16 zeroext %1, i16 zeroext %2) {
ret i32 1
}
/* Type definitions */
typedef int /*<<< orphan*/ time_t;
struct tm {
  int dummy;
};
typedef int /*<<< orphan*/ _retval;

/* Variables and functions */
struct tm *gmtime(int /*<<< orphan*/ *);
int /*<<< orphan*/ strftime(char *, int, char *, struct tm *);
int /*<<< orphan*/ time(int /*<<< orphan*/);
char *tklog_get_time(void) {
  struct tm *sTm;
  time_t now = time(0);
  sTm = gmtime(&now);
  static char _retval[9];
  strftime(_retval, sizeof(_retval), "%H:%M:%S", sTm);
  return _retval;
}


x86 assembly (clang, -O0):
<tklog_get_time>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
xor    %edi,%edi
call   1030 <time@plt>
mov    %eax,-0xc(%rbp)
lea    -0xc(%rbp),%rdi
call   1050 <gmtime@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rcx
lea    0x2edf(%rip),%rdi
mov    $0x9,%esi
lea    0xe9a(%rip),%rdx
call   1040 <strftime@plt>
lea    0x2ec7(%rip),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tklog_get_time>:
push   %rbx
sub    $0x10,%rsp
xor    %edi,%edi
call   1030 <time@plt>
mov    %eax,0xc(%rsp)
lea    0xc(%rsp),%rdi
call   1050 <gmtime@plt>
lea    0x2ee8(%rip),%rbx
lea    0xea8(%rip),%rdx
mov    %rbx,%rdi
mov    $0x9,%esi
mov    %rax,%rcx
call   1040 <strftime@plt>
mov    %rbx,%rax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
%struct.tm = type { i32 }
@tklog_get_time._retval = internal global [9 x i8] zeroinitializer
@.str = [9 x i8] c"%H:%M:%S\00"
define i8* @tklog_get_time() {
%1 = alloca %struct.tm*
%2 = alloca i32
%3 = call i32 @time(i32 0)
store i32 %3, i32* %2
%4 = call %struct.tm* @gmtime(i32* %2)
store %struct.tm* %4, %struct.tm** %1
%5 = load %struct.tm*, %struct.tm** %1
%6 = call i32 @strftime(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @tklog_get_time._retval, i64 0, i64 0), i32 9, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), %struct.tm* %5)
ret i8* getelementptr inbounds ([9 x i8], [9 x i8]* @tklog_get_time._retval, i64 0, i64 0)
}

LLVM IR (-O2):
%struct.tm = type { i32 }
@tklog_get_time._retval = internal global [9 x i8] zeroinitializer
@.str = [9 x i8] c"%H:%M:%S\00"
define i8* @tklog_get_time() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 @time(i32 0)
store i32 %3, i32* %1
%4 = call %struct.tm* @gmtime(i32* %1)
%5 = call i32 @strftime(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @tklog_get_time._retval, i64 0, i64 0), i32 9, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), %struct.tm* %4)
ret i8* getelementptr inbounds ([9 x i8], [9 x i8]* @tklog_get_time._retval, i64 0, i64 0)
}
void gdk_window_raise() {}


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

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

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

LLVM IR (-O2):
define void @gdk_window_raise() {
ret void
}
void unget_token(char **current) {
  (*current)--;
  while ((*(*current - 1)) & 0x80)
    (*current)--;
}


x86 assembly (clang, -O0):
<unget_token>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rcx
add    $0xffffffffffffffff,%rcx
mov    %rcx,(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
movsbl -0x1(%rax),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     1142 <unget_token+0x42>
mov    -0x8(%rbp),%rax
mov    (%rax),%rcx
add    $0xffffffffffffffff,%rcx
mov    %rcx,(%rax)
jmp    1116 <unget_token+0x16>
pop    %rbp
ret

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

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

LLVM IR (-O2):
define void @unget_token(i8** nocapture %0) {
%2 = load i8*, i8** %0
br label %3
3: ; preds = %3, %1
%4 = phi i8* [ %2, %1 ], [ %5, %3 ]
%5 = getelementptr inbounds i8, i8* %4, i64 -1
store i8* %5, i8** %0
%6 = getelementptr inbounds i8, i8* %4, i64 -2
%7 = load i8, i8* %6
%8 = icmp sgt i8 %7, -1
br i1 %8, label %9, label %3
9: ; preds = %3
ret void
}
int msm_xo_init(void) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @msm_xo_init() {
ret i32 0
}
/* Forward declarations */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  int /*<<< orphan*/ *display;
};
typedef TYPE_1__ XResizeRequestEvent;
typedef int /*<<< orphan*/ Display;

/* Variables and functions */
void set_XResizeRequestEvent_display(void *_p, void *_v) {
  ((XResizeRequestEvent *)_p)->display = (Display *)_v;
}


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

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

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

LLVM IR (-O2):
define void @set_XResizeRequestEvent_display(i8* nocapture writeonly %0, i8* %1) {
%3 = bitcast i8* %0 to i8**
store i8* %1, i8** %3
ret void
}
/* Variables and functions */
double momrand_genrand_int32();
double momrand_genrand_real1(void) {
  return momrand_genrand_int32() * (1.0 / 4294967295.0);
}


x86 assembly (clang, -O0):
<momrand_genrand_real1>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <momrand_genrand_int32@plt>
movsd  0xedd(%rip),%xmm1
mulsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<momrand_genrand_real1>:
push   %rax
xor    %eax,%eax
call   1030 <momrand_genrand_int32@plt>
mulsd  0xee0(%rip),%xmm0
pop    %rax
ret

LLVM IR (-O0):
define double @momrand_genrand_real1() {
%1 = call double (...) @momrand_genrand_int32()
%2 = fmul double %1, 0x3DF0000000100000
ret double %2
}

LLVM IR (-O2):
define double @momrand_genrand_real1() {
%1 = tail call double (...) @momrand_genrand_int32()
%2 = fmul double %1, 0x3DF0000000100000
ret double %2
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ isodigit(int);
void t_isodigit_0x26() {
  Assert_real((isodigit(38) == 0),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/"
              "dg/z88dk/test/suites/ctype/test_isodigit.c",
              195, ("isodigit should be 0 for &"));
}


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

x86 assembly (clang, -O2):
<t_isodigit_0x26>:
push   %rax
mov    $0x26,%edi
call   1040 <isodigit@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf67(%rip),%rcx
mov    $0xc3,%edx
pop    %rax
jmp    1030 <Assert_real@plt>

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

LLVM IR (-O2):
@.str = [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_isodigit.c\00"
@.str.1 = [27 x i8] c"isodigit should be 0 for &\00"
define void @t_isodigit_0x26() {
%1 = tail call i64 @isodigit(i32 38)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str, i64 0, i64 0), i32 195, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
ret void
}
int spl_debug_mark_buffer(char *text) { return (0); }


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

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

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

LLVM IR (-O2):
define i32 @spl_debug_mark_buffer(i8* nocapture readnone %0) {
ret i32 0
}
int netif_set_real_num_rx_queues(struct net_device *dev, unsigned int rxq) {
  return 0;
}


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

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

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

LLVM IR (-O2):
%struct.net_device = type opaque
define i32 @netif_set_real_num_rx_queues(%struct.net_device* nocapture readnone %0, i32 %1) {
ret i32 0
}
void xen_iommu_init(void) {}


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

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

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

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

/* Variables and functions */
int /*<<< orphan*/ update_speakers(struct hda_codec *);
void alc260_hp_master_update(struct hda_codec *codec) {
  update_speakers(codec);
}


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

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

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

LLVM IR (-O2):
%struct.hda_codec = type { i32 }
define void @alc260_hp_master_update(%struct.hda_codec* %0) {
%2 = tail call i32 @update_speakers(%struct.hda_codec* %0)
ret void
}
int cairo_code_draw_casMasterLabel_get_height() { return 10; }


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

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

LLVM IR (-O0):
define i32 @cairo_code_draw_casMasterLabel_get_height() {
ret i32 10
}

LLVM IR (-O2):
define i32 @cairo_code_draw_casMasterLabel_get_height() {
ret i32 10
}
volatile char *test_00(volatile char *x) {
  int xx = *x++;
  return x;
}


x86 assembly (clang, -O0):
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
mov    (%rax),%al
movsbl %al,%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
mov    (%rdi),%al
lea    0x1(%rdi),%rax
ret

LLVM IR (-O0):
define i8* @test_00(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = getelementptr inbounds i8, i8* %4, i32 1
store i8* %5, i8** %2
%6 = load volatile i8, i8* %4
%7 = sext i8 %6 to i32
store i32 %7, i32* %3
%8 = load i8*, i8** %2
ret i8* %8
}

LLVM IR (-O2):
define i8* @test_00(i8* %0) {
%2 = getelementptr inbounds i8, i8* %0, i64 1
%3 = load volatile i8, i8* %0
ret i8* %2
}
/* Variables and functions */
int _ada_use_c2phc4c(int, int *, int *, double *, int /*<<< orphan*/);
int dobldobl_diagonal_Laurent_homotopy(int a, int b) {
  int fail;
  double *c;
  fail = _ada_use_c2phc4c(811, &a, &b, c, 0);
  return fail;
}


x86 assembly (clang, -O0):
<dobldobl_diagonal_Laurent_homotopy>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x18(%rbp),%rcx
mov    $0x32b,%edi
lea    -0x4(%rbp),%rsi
lea    -0x8(%rbp),%rdx
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc4c@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dobldobl_diagonal_Laurent_homotopy>:
push   %rax
mov    %edi,0x4(%rsp)
mov    %esi,(%rsp)
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
mov    $0x32b,%edi
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc4c@plt>
pop    %rcx
ret

LLVM IR (-O0):
define i32 @dobldobl_diagonal_Laurent_homotopy(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca double*
store i32 %0, i32* %3
store i32 %1, i32* %4
%7 = load double*, double** %6
%8 = call i32 @_ada_use_c2phc4c(i32 811, i32* %3, i32* %4, double* %7, i32 0)
store i32 %8, i32* %5
%9 = load i32, i32* %5
ret i32 %9
}

LLVM IR (-O2):
define i32 @dobldobl_diagonal_Laurent_homotopy(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = call i32 @_ada_use_c2phc4c(i32 811, i32* %3, i32* %4, double* undef, i32 0)
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ fork();
int /*<<< orphan*/ printf(char *);
main() {
  printf("Hello 1\n");
  fork();
  printf("Hello 2\n");
  fork();
  printf("Hello 3\n");
  fork();
  printf("Hello 4\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <fork@plt>
lea    0xecb(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <fork@plt>
lea    0xec1(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <fork@plt>
lea    0xeb7(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <fork@plt>
lea    0xecd(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <fork@plt>
lea    0xec2(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1040 <fork@plt>
lea    0xeb7(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [9 x i8] c"Hello 1\0A\00"
@.str.1 = [9 x i8] c"Hello 2\0A\00"
@.str.2 = [9 x i8] c"Hello 3\0A\00"
@.str.3 = [9 x i8] c"Hello 4\0A\00"
define i32 @main() {
%1 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (...) @fork()
%3 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 (...) @fork()
%5 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 (...) @fork()
%7 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [8 x i8] c"Hello 1\00"
@str.4 = [8 x i8] c"Hello 2\00"
@str.5 = [8 x i8] c"Hello 3\00"
@str.6 = [8 x i8] c"Hello 4\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (...) @fork()
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.4, i64 0, i64 0))
%4 = tail call i32 (...) @fork()
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.5, i64 0, i64 0))
%6 = tail call i32 (...) @fork()
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.6, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ errno;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ message(char *);
char *strerror(int /*<<< orphan*/);
void abortm(char *m) {
  message(m);
  message("Errno = ");
  message(strerror(errno));
  message("\n");
  exit(1);
}


x86 assembly (clang, -O0):
<abortm>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <message@plt>
lea    0xeb4(%rip),%rdi
call   1030 <message@plt>
mov    0x2e88(%rip),%rax
mov    (%rax),%edi
call   1050 <strerror@plt>
mov    %rax,%rdi
call   1030 <message@plt>
lea    0xe9b(%rip),%rdi
call   1030 <message@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<abortm>:
push   %rax
call   1030 <message@plt>
lea    0xec3(%rip),%rdi
call   1030 <message@plt>
mov    0x2e97(%rip),%rax
mov    (%rax),%edi
call   1050 <strerror@plt>
mov    %rax,%rdi
call   1030 <message@plt>
lea    0xeaa(%rip),%rdi
call   1030 <message@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"Errno = \00"
@errno = global i32 0
@.str.1 = [2 x i8] c"\0A\00"
define void @abortm(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @message(i8* %3)
%5 = call i32 @message(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%6 = load i32, i32* @errno
%7 = call i8* @strerror(i32 %6)
%8 = call i32 @message(i8* %7)
%9 = call i32 @message(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%10 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [9 x i8] c"Errno = \00"
@errno = global i32 0
@.str.1 = [2 x i8] c"\0A\00"
define void @abortm(i8* %0) {
%2 = tail call i32 @message(i8* %0)
%3 = tail call i32 @message(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%4 = load i32, i32* @errno
%5 = tail call i8* @strerror(i32 %4)
%6 = tail call i32 @message(i8* %5)
%7 = tail call i32 @message(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%8 = tail call i32 @exit(i32 1)
unreachable
}
void stress_alarm_handler(int sig) { (void)sig; }


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

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

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

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

/* Variables and functions */
int i2c_write_leuint08(int, int, int, int);
int BoardIO(int bus, int chip_addr, uint8_t port, uint8_t Value) {
  switch (port) {
  case 0x02:
    return i2c_write_leuint08(bus, chip_addr, 0x00, Value);
  case 0x01:
    return i2c_write_leuint08(bus, chip_addr, 0x01, Value);
  }
}


x86 assembly (clang, -O0):
<BoardIO>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x18(%rbp)
sub    $0x1,%eax
je     1161 <BoardIO+0x51>
jmp    1138 <BoardIO+0x28>
mov    -0x18(%rbp),%eax
sub    $0x2,%eax
jne    1177 <BoardIO+0x67>
jmp    1149 <BoardIO+0x39>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x14(%rbp),%ecx
xor    %edx,%edx
call   1030 <i2c_write_leuint08@plt>
mov    %eax,-0x4(%rbp)
jmp    1177 <BoardIO+0x67>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x14(%rbp),%ecx
mov    $0x1,%edx
call   1030 <i2c_write_leuint08@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<BoardIO>:
cmp    $0x2,%edx
je     1124 <BoardIO+0x14>
cmp    $0x1,%edx
jne    112b <BoardIO+0x1b>
mov    $0x1,%edx
jmp    1030 <i2c_write_leuint08@plt>
xor    %edx,%edx
jmp    1030 <i2c_write_leuint08@plt>
ret

LLVM IR (-O0):
define i32 @BoardIO(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 %0, i32* %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32 %3, i32* %9
%10 = load i32, i32* %8
switch i32 %10, label %21 [
i32 2, label %11
i32 1, label %16
]
11: ; preds = %4
%12 = load i32, i32* %6
%13 = load i32, i32* %7
%14 = load i32, i32* %9
%15 = call i32 @i2c_write_leuint08(i32 %12, i32 %13, i32 0, i32 %14)
store i32 %15, i32* %5
br label %21
16: ; preds = %4
%17 = load i32, i32* %6
%18 = load i32, i32* %7
%19 = load i32, i32* %9
%20 = call i32 @i2c_write_leuint08(i32 %17, i32 %18, i32 1, i32 %19)
store i32 %20, i32* %5
br label %21
21: ; preds = %11, %16, %4
%22 = load i32, i32* %5
ret i32 %22
}

LLVM IR (-O2):
define i32 @BoardIO(i32 %0, i32 %1, i32 %2, i32 %3) {
switch i32 %2, label %9 [
i32 2, label %6
i32 1, label %5
]
5: ; preds = %4
br label %6
6: ; preds = %4, %5
%7 = phi i32 [ 1, %5 ], [ 0, %4 ]
%8 = tail call i32 @i2c_write_leuint08(i32 %0, i32 %1, i32 %7, i32 %3)
br label %9
9: ; preds = %6, %4
%10 = phi i32 [ undef, %4 ], [ %8, %6 ]
ret i32 %10
}
int xor7(int i, int j) { return (((i * j) % 3 + (i + j) % 2) % 2) ? 0 : 1; }


x86 assembly (clang, -O0):
<xor7>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
imul   -0x8(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    %edx,-0xc(%rbp)
mov    -0x4(%rbp),%eax
add    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    -0xc(%rbp),%eax
add    %edx,%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    $0x1,%eax
xor    %ecx,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<xor7>:
lea    (%rsi,%rdi,1),%ecx
mov    %esi,%eax
imul   %edi,%eax
cltq
imul   $0x55555556,%rax,%rdx
mov    %rdx,%rsi
shr    $0x3f,%rsi
shr    $0x20,%rdx
add    %esi,%edx
add    %edx,%eax
add    %ecx,%eax
not    %eax
and    $0x1,%eax
ret

LLVM IR (-O0):
define i32 @xor7(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 = mul nsw i32 %5, %6
%8 = srem i32 %7, 3
%9 = load i32, i32* %3
%10 = load i32, i32* %4
%11 = add nsw i32 %9, %10
%12 = srem i32 %11, 2
%13 = add nsw i32 %8, %12
%14 = srem i32 %13, 2
%15 = icmp ne i32 %14, 0
%16 = zext i1 %15 to i64
%17 = select i1 %15, i32 0, i32 1
ret i32 %17
}

LLVM IR (-O2):
define i32 @xor7(i32 %0, i32 %1) {
%3 = mul nsw i32 %1, %0
%4 = srem i32 %3, 3
%5 = add nsw i32 %1, %0
%6 = add i32 %5, %4
%7 = and i32 %6, 1
%8 = xor i32 %7, 1
ret i32 %8
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ add_header(int /*<<< orphan*/ *, int /*<<< orphan*/,
                              int /*<<< orphan*/);
void convert_track_mode_0_2336(uint8_t *sector, uint32_t adr) {
  add_header(sector, adr, 0);
}


x86 assembly (clang, -O0):
<convert_track_mode_0_2336>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
xor    %edx,%edx
call   1030 <add_header@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<convert_track_mode_0_2336>:
xor    %edx,%edx
jmp    1030 <add_header@plt>

LLVM IR (-O0):
define void @convert_track_mode_0_2336(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 @add_header(i32* %5, i32 %6, i32 0)
ret void
}

LLVM IR (-O2):
define void @convert_track_mode_0_2336(i32* %0, i32 %1) {
%3 = tail call i32 @add_header(i32* %0, i32 %1, i32 0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ xfree(void *);
void redtree_ripper_free(void *p) { xfree(p); }


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

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

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

LLVM IR (-O2):
define void @redtree_ripper_free(i8* %0) {
%2 = tail call i32 @xfree(i8* %0)
ret void
}
void ExttGroupAuxTable(void) {}


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

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

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

LLVM IR (-O2):
define void @ExttGroupAuxTable() {
ret void
}
/* Variables and functions */
int resist_mini_app(int, char **);
int main(int argc, char *argv[]) { return resist_mini_app(argc, argv); }


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1030 <resist_mini_app@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i32 @resist_mini_app(i32 %0, i8** %1)
ret i32 %3
}
/* Type definitions */
typedef scalar_t__ off_t;

/* Variables and functions */
int /*<<< orphan*/ SEEK_END;
scalar_t__ lseek(int, int /*<<< orphan*/, int /*<<< orphan*/);
long long get_current_end_offset_from_fd(int fd) {
  off_t size;
  size = lseek(fd, 0, SEEK_END);
  if (size < 0) {
    return -1;
  }
  return size;
}


x86 assembly (clang, -O0):
<get_current_end_offset_from_fd>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0xc(%rbp)
mov    -0xc(%rbp),%edi
mov    0x2ec3(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1030 <lseek@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jge    114a <get_current_end_offset_from_fd+0x3a>
movq   $0xffffffffffffffff,-0x8(%rbp)
ff
jmp    1152 <get_current_end_offset_from_fd+0x42>
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_current_end_offset_from_fd>:
push   %rax
mov    0x2ed0(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1030 <lseek@plt>
test   %rax,%rax
mov    $0xffffffffffffffff,%rcx
cmovs  %rcx,%rax
pop    %rcx
ret

LLVM IR (-O0):
@SEEK_END = global i32 0
define i64 @get_current_end_offset_from_fd(i32 %0) {
%2 = alloca i64
%3 = alloca i32
%4 = alloca i64
store i32 %0, i32* %3
%5 = load i32, i32* %3
%6 = load i32, i32* @SEEK_END
%7 = call i64 @lseek(i32 %5, i32 0, i32 %6)
store i64 %7, i64* %4
%8 = load i64, i64* %4
%9 = icmp slt i64 %8, 0
br i1 %9, label %10, label %11
10: ; preds = %1
store i64 -1, i64* %2
br label %13
11: ; preds = %1
%12 = load i64, i64* %4
store i64 %12, i64* %2
br label %13
13: ; preds = %11, %10
%14 = load i64, i64* %2
ret i64 %14
}

LLVM IR (-O2):
@SEEK_END = global i32 0
define i64 @get_current_end_offset_from_fd(i32 %0) {
%2 = load i32, i32* @SEEK_END
%3 = tail call i64 @lseek(i32 %0, i32 0, i32 %2)
%4 = icmp sgt i64 %3, -1
%5 = select i1 %4, i64 %3, i64 -1
ret i64 %5
}
/* Type definitions */
typedef int /*<<< orphan*/ mpz_t;

/* Variables and functions */
int /*<<< orphan*/ mpz_abs(int /*<<< orphan*/, int /*<<< orphan*/);
void gmpint_absz(mpz_t *rop, mpz_t *op) { mpz_abs(*rop, *op); }


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

x86 assembly (clang, -O2):
<gmpint_absz>:
mov    (%rdi),%edi
mov    (%rsi),%esi
jmp    1030 <mpz_abs@plt>

LLVM IR (-O0):
define void @gmpint_absz(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* %5
%7 = load i32*, i32** %4
%8 = load i32, i32* %7
%9 = call i32 @mpz_abs(i32 %6, i32 %8)
ret void
}

LLVM IR (-O2):
define void @gmpint_absz(i32* nocapture %0, i32* nocapture %1) {
%3 = load i32, i32* %0
%4 = load i32, i32* %1
%5 = tail call i32 @mpz_abs(i32 %3, i32 %4)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ srand(int);
int /*<<< orphan*/ verifica01(int, int);
int main() {
  srand(2017);
  for (int i = 10; i < 1000; i += i / 5)
    verifica01(i, 2000 + 10 * i);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x7e1,%edi
call   1030 <srand@plt>
movl   $0xa,-0x8(%rbp)
cmpl   $0x3e8,-0x8(%rbp)
jge    1175 <main+0x55>
mov    -0x8(%rbp),%edi
imul   $0xa,-0x8(%rbp),%esi
add    $0x7d0,%esi
call   1040 <verifica01@plt>
mov    -0x8(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
add    -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
jmp    1140 <main+0x20>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0x7e1,%edi
call   1030 <srand@plt>
mov    $0xa,%ebx
lea    (%rbx,%rbx,4),%eax
lea    (%rax,%rax,1),%esi
add    $0x7d0,%esi
mov    %ebx,%edi
call   1040 <verifica01@plt>
movslq %ebx,%rbx
imul   $0x66666667,%rbx,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x21,%rax
add    %ecx,%eax
add    %eax,%ebx
cmp    $0x3e8,%ebx
jl     1130 <main+0x10>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 @srand(i32 2017)
store i32 10, i32* %2
br label %4
4: ; preds = %13, %0
%5 = load i32, i32* %2
%6 = icmp slt i32 %5, 1000
br i1 %6, label %7, label %18
7: ; preds = %4
%8 = load i32, i32* %2
%9 = load i32, i32* %2
%10 = mul nsw i32 10, %9
%11 = add nsw i32 2000, %10
%12 = call i32 @verifica01(i32 %8, i32 %11)
br label %13
13: ; preds = %7
%14 = load i32, i32* %2
%15 = sdiv i32 %14, 5
%16 = load i32, i32* %2
%17 = add nsw i32 %16, %15
store i32 %17, i32* %2
br label %4
18: ; preds = %4
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @srand(i32 2017)
br label %3
2: ; preds = %3
ret i32 0
3: ; preds = %0, %3
%4 = phi i32 [ 10, %0 ], [ %9, %3 ]
%5 = mul nsw i32 %4, 10
%6 = add nsw i32 %5, 2000
%7 = tail call i32 @verifica01(i32 %4, i32 %6)
%8 = sdiv i32 %4, 5
%9 = add nsw i32 %8, %4
%10 = icmp slt i32 %9, 1000
br i1 %10, label %3, label %2
}
int is_valid_pubkey_algo(const int algo) {
  if (algo >= 100 && algo <= 110)
    return 1;
  switch (algo) {
  case 1:
  case 2:
  case 3:
  case 16:
  case 17:
  case 18:
  case 19:
  case 20:
  case 21:
    return 1;
  default:
    return 0;
  }
}


x86 assembly (clang, -O0):
<is_valid_pubkey_algo>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0x64,-0x8(%rbp)
jl     1127 <is_valid_pubkey_algo+0x27>
cmpl   $0x6e,-0x8(%rbp)
jg     1127 <is_valid_pubkey_algo+0x27>
movl   $0x1,-0x4(%rbp)
jmp    1165 <is_valid_pubkey_algo+0x65>
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
add    $0xffffffff,%eax
sub    $0x3,%eax
jb     1152 <is_valid_pubkey_algo+0x52>
jmp    113e <is_valid_pubkey_algo+0x3e>
mov    -0xc(%rbp),%eax
add    $0xfffffff0,%eax
sub    $0x5,%eax
ja     115e <is_valid_pubkey_algo+0x5e>
jmp    1152 <is_valid_pubkey_algo+0x52>
movl   $0x1,-0x4(%rbp)
jmp    1165 <is_valid_pubkey_algo+0x65>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_valid_pubkey_algo>:
lea    -0x64(%rdi),%ecx
mov    $0x1,%eax
cmp    $0xb,%ecx
jb     1124 <is_valid_pubkey_algo+0x24>
add    $0xffffffff,%edi
xor    %eax,%eax
cmp    $0x14,%edi
ja     1124 <is_valid_pubkey_algo+0x24>
movslq %edi,%rax
lea    0xedf(%rip),%rcx
mov    (%rcx,%rax,4),%eax
ret

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

LLVM IR (-O2):
@switch.table.is_valid_pubkey_algo = [21 x i32] [i32 1, i32 1, i32 1, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1]
define i32 @is_valid_pubkey_algo(i32 %0) {
%2 = add i32 %0, -100
%3 = icmp ult i32 %2, 11
br i1 %3, label %11, label %4
4: ; preds = %1
%5 = add i32 %0, -1
%6 = icmp ult i32 %5, 21
br i1 %6, label %7, label %11
7: ; preds = %4
%8 = sext i32 %5 to i64
%9 = getelementptr inbounds [21 x i32], [21 x i32]* @switch.table.is_valid_pubkey_algo, i64 0, i64 %8
%10 = load i32, i32* %9
br label %11
11: ; preds = %4, %7, %1
%12 = phi i32 [ 1, %1 ], [ %10, %7 ], [ 0, %4 ]
ret i32 %12
}
/* Type definitions */
struct rq_term {
  int dummy;
};

/* Variables and functions */
double rq_term_get_annualized_period(struct rq_term *);
double rq_term_diff(struct rq_term *termBase, struct rq_term *termDiff) {
  double diff = rq_term_get_annualized_period(termBase) -
                rq_term_get_annualized_period(termDiff);
  return diff;
}


x86 assembly (clang, -O0):
<rq_term_diff>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <rq_term_get_annualized_period@plt>
movsd  %xmm0,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <rq_term_get_annualized_period@plt>
movaps %xmm0,%xmm1
movsd  -0x20(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rq_term_diff>:
push   %rbx
sub    $0x10,%rsp
mov    %rsi,%rbx
call   1030 <rq_term_get_annualized_period@plt>
movsd  %xmm0,0x8(%rsp)
mov    %rbx,%rdi
call   1030 <rq_term_get_annualized_period@plt>
movsd  0x8(%rsp),%xmm1
subsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
%struct.rq_term = type { i32 }
define double @rq_term_diff(%struct.rq_term* %0, %struct.rq_term* %1) {
%3 = alloca %struct.rq_term*
%4 = alloca %struct.rq_term*
%5 = alloca double
store %struct.rq_term* %0, %struct.rq_term** %3
store %struct.rq_term* %1, %struct.rq_term** %4
%6 = load %struct.rq_term*, %struct.rq_term** %3
%7 = call double @rq_term_get_annualized_period(%struct.rq_term* %6)
%8 = load %struct.rq_term*, %struct.rq_term** %4
%9 = call double @rq_term_get_annualized_period(%struct.rq_term* %8)
%10 = fsub double %7, %9
store double %10, double* %5
%11 = load double, double* %5
ret double %11
}

LLVM IR (-O2):
%struct.rq_term = type { i32 }
define double @rq_term_diff(%struct.rq_term* %0, %struct.rq_term* %1) {
%3 = tail call double @rq_term_get_annualized_period(%struct.rq_term* %0)
%4 = tail call double @rq_term_get_annualized_period(%struct.rq_term* %1)
%5 = fsub double %3, %4
ret double %5
}
/* Forward declarations */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  unsigned long window;
};
typedef TYPE_1__ XUnmapEvent;

/* Variables and functions */
void set_XUnmapEvent_window(void *_p, unsigned long _v) {
  ((XUnmapEvent *)_p)->window = (unsigned long)_v;
}


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

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

LLVM IR (-O0):
%struct.TYPE_2__ = type { i64 }
define void @set_XUnmapEvent_window(i8* %0, i64 %1) {
%3 = alloca i8*
%4 = alloca i64
store i8* %0, i8** %3
store i64 %1, i64* %4
%5 = load i64, i64* %4
%6 = load i8*, i8** %3
%7 = bitcast i8* %6 to %struct.TYPE_2__*
%8 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %7, i32 0, i32 0
store i64 %5, i64* %8
ret void
}

LLVM IR (-O2):
define void @set_XUnmapEvent_window(i8* nocapture writeonly %0, i64 %1) {
%3 = bitcast i8* %0 to i64*
store i64 %1, i64* %3
ret void
}
/* Variables and functions */
int tunemu_close(int);
int tun_close(int fd, char *dev) { return tunemu_close(fd); }


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

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

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

LLVM IR (-O2):
define i32 @tun_close(i32 %0, i8* nocapture readnone %1) {
%3 = tail call i32 @tunemu_close(i32 %0)
ret i32 %3
}
/* Type definitions */
struct dirent {
  int /*<<< orphan*/ d_name;
};

/* Variables and functions */
int strcmp(int /*<<< orphan*/, int /*<<< orphan*/);
int cramsort(const struct dirent **a, const struct dirent **b) {
  return strcmp((*a)->d_name, (*b)->d_name);
}


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

x86 assembly (clang, -O2):
<cramsort>:
mov    (%rdi),%rax
mov    (%rax),%edi
mov    (%rsi),%rax
mov    (%rax),%esi
jmp    1030 <strcmp@plt>

LLVM IR (-O0):
%struct.dirent = type { i32 }
define i32 @cramsort(%struct.dirent** %0, %struct.dirent** %1) {
%3 = alloca %struct.dirent**
%4 = alloca %struct.dirent**
store %struct.dirent** %0, %struct.dirent*** %3
store %struct.dirent** %1, %struct.dirent*** %4
%5 = load %struct.dirent**, %struct.dirent*** %3
%6 = load %struct.dirent*, %struct.dirent** %5
%7 = getelementptr inbounds %struct.dirent, %struct.dirent* %6, i32 0, i32 0
%8 = load i32, i32* %7
%9 = load %struct.dirent**, %struct.dirent*** %4
%10 = load %struct.dirent*, %struct.dirent** %9
%11 = getelementptr inbounds %struct.dirent, %struct.dirent* %10, i32 0, i32 0
%12 = load i32, i32* %11
%13 = call i32 @strcmp(i32 %8, i32 %12)
ret i32 %13
}

LLVM IR (-O2):
%struct.dirent = type { i32 }
define i32 @cramsort(%struct.dirent** nocapture %0, %struct.dirent** nocapture %1) {
%3 = load %struct.dirent*, %struct.dirent** %0
%4 = getelementptr inbounds %struct.dirent, %struct.dirent* %3, i64 0, i32 0
%5 = load i32, i32* %4
%6 = load %struct.dirent*, %struct.dirent** %1
%7 = getelementptr inbounds %struct.dirent, %struct.dirent* %6, i64 0, i32 0
%8 = load i32, i32* %7
%9 = tail call i32 @strcmp(i32 %5, i32 %8)
ret i32 %9
}