xunge/DecIR huggingface dataset:
extern void TakeStringCallback(void (*cb)(char *)) { cb("lorem ipsum"); }


x86 assembly (clang, -O0):
<TakeStringCallback>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xeed(%rip),%rdi
call   *-0x8(%rbp)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<TakeStringCallback>:
mov    %rdi,%rax
lea    0xef6(%rip),%rdi
jmp    *%rax

LLVM IR (-O0):
@.str = [12 x i8] c"lorem ipsum\00"
define void @TakeStringCallback(void (i8*)* %0) {
%2 = alloca void (i8*)*
store void (i8*)* %0, void (i8*)** %2
%3 = load void (i8*)*, void (i8*)** %2
ret void
}

LLVM IR (-O2):
@.str = [12 x i8] c"lorem ipsum\00"
define void @TakeStringCallback(void (i8*)* nocapture %0) {
tail call void %0(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
void *f(void *arg) { return NULL; }


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

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

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

LLVM IR (-O2):
define noalias i8* @f(i8* nocapture readnone %0) {
ret i8* null
}
/* Variables and functions */
char *strdup(char const *);
char *copy_string(const char *s) { return (s && *s) ? strdup(s) : NULL; }


x86 assembly (clang, -O0):
<copy_string>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1149 <copy_string+0x39>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1149 <copy_string+0x39>
mov    -0x8(%rbp),%rdi
call   1030 <strdup@plt>
mov    %rax,-0x10(%rbp)
jmp    1154 <copy_string+0x44>
xor    %eax,%eax
mov    %rax,-0x10(%rbp)
jmp    1154 <copy_string+0x44>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<copy_string>:
test   %rdi,%rdi
je     111f <copy_string+0xf>
cmpb   $0x0,(%rdi)
je     111f <copy_string+0xf>
jmp    1030 <strdup@plt>
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define noalias i8* @copy_string(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %8, label %3
3: ; preds = %1
%4 = load i8, i8* %0
%5 = icmp eq i8 %4, 0
br i1 %5, label %8, label %6
6: ; preds = %3
%7 = tail call i8* @strdup(i8* %0)
br label %8
8: ; preds = %1, %3, %6
%9 = phi i8* [ %7, %6 ], [ null, %3 ], [ null, %1 ]
ret i8* %9
}
int default_mpgdecoder_decode_frame(void *ctx, unsigned char *buf, int len,
                                    unsigned char *prev_buf, int prev_len,
                                    unsigned char **pcm_buf, int *pcm_buf_len,
                                    int *bsbytes) {
  return -1;
}


x86 assembly (clang, -O0):
<default_mpgdecoder_decode_frame>:
push   %rbp
mov    %rsp,%rbp
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    %r9,-0x30(%rbp)
mov    $0xffffffff,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @default_mpgdecoder_decode_frame(i8* %0, i8* %1, i32 %2, i8* %3, i32 %4, i8** %5, i32* %6, i32* %7) {
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i32
%12 = alloca i8*
%13 = alloca i32
%14 = alloca i8**
%15 = alloca i32*
%16 = alloca i32*
store i8* %0, i8** %9
store i8* %1, i8** %10
store i32 %2, i32* %11
store i8* %3, i8** %12
store i32 %4, i32* %13
store i8** %5, i8*** %14
store i32* %6, i32** %15
store i32* %7, i32** %16
ret i32 -1
}

LLVM IR (-O2):
define i32 @default_mpgdecoder_decode_frame(i8* nocapture readnone %0, i8* nocapture readnone %1, i32 %2, i8* nocapture readnone %3, i32 %4, i8** nocapture readnone %5, i32* nocapture readnone %6, i32* nocapture readnone %7) {
ret i32 -1
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
void timer_handler(int signal_number) {
  static int count = 0;
  printf("timer expired %d times\n", ++count);
}


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

x86 assembly (clang, -O2):
<timer_handler>:
mov    0x2f16(%rip),%esi
add    $0x1,%esi
mov    %esi,0x2f0d(%rip)
lea    0xeda(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@timer_handler.count = internal global i32 0
@.str = [24 x i8] c"timer expired %d times\0A\00"
define void @timer_handler(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* @timer_handler.count
%4 = add nsw i32 %3, 1
store i32 %4, i32* @timer_handler.count
%5 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 %4)
ret void
}

LLVM IR (-O2):
@timer_handler.count = internal unnamed_addr global i32 0
@.str = [24 x i8] c"timer expired %d times\0A\00"
define void @timer_handler(i32 %0) {
%2 = load i32, i32* @timer_handler.count
%3 = add nsw i32 %2, 1
store i32 %3, i32* @timer_handler.count
%4 = tail call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 %3)
ret void
}
int dsc(const void *a, const void *b) { return *(int *)b - *(int *)a; }


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

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

LLVM IR (-O0):
define i32 @dsc(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 i32, i32* %6
%8 = load i8*, i8** %3
%9 = bitcast i8* %8 to i32*
%10 = load i32, i32* %9
%11 = sub nsw i32 %7, %10
ret i32 %11
}

LLVM IR (-O2):
define i32 @dsc(i8* nocapture %0, i8* nocapture %1) {
%3 = bitcast i8* %1 to i32*
%4 = load i32, i32* %3
%5 = bitcast i8* %0 to i32*
%6 = load i32, i32* %5
%7 = sub nsw i32 %4, %6
ret i32 %7
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *);
char *subString(char *, int /*<<< orphan*/, int);
int main(int argc, const char *argv[]) {
  char a[] = "A brown fox jumps over the lazy dog";
  printf("%s\n", subString(a, 0, 10));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x40(%rbp),%rdi
lea    0xeaf(%rip),%rsi
mov    $0x24,%edx
call   1040 <memcpy@plt>
lea    -0x40(%rbp),%rdi
xor    %esi,%esi
mov    $0xa,%edx
call   1050 <subString@plt>
mov    %rax,%rsi
lea    0xeaf(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x28,%rsp
movaps 0xee5(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xec9(%rip),%xmm0
movaps %xmm0,(%rsp)
movl   $0x676f64,0x20(%rsp)
mov    %rsp,%rdi
xor    %esi,%esi
mov    $0xa,%edx
call   1040 <subString@plt>
lea    0xecb(%rip),%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x28,%rsp
ret

LLVM IR (-O0):
@__const.main.a = [36 x i8] c"A brown fox jumps over the lazy dog\00"
@.str = [4 x i8] c"%s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [36 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = bitcast [36 x i8]* %6 to i8*
%8 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 0
%9 = call i8* @subString(i8* %8, i32 0, i32 10)
%10 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %9)
ret i32 0
}

LLVM IR (-O2):
@__const.main.a = [36 x i8] c"A brown fox jumps over the lazy dog\00"
@.str = [4 x i8] c"%s\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [36 x i8]
%4 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 0
%5 = call i8* @subString(i8* %4, i32 0, i32 10)
%6 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %5)
ret i32 0
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
int /*<<< orphan*/ ASSERT(int /*<<< orphan*/);
int /*<<< orphan*/ _SSIBaseValid(int);
void SSIEnable(uint32_t ui32Base) {
  ASSERT(_SSIBaseValid(ui32Base));
  (*((volatile uint32_t *)(ui32Base + 0x00000004))) |= 0x00000002;
}


x86 assembly (clang, -O0):
<SSIEnable>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <_SSIBaseValid@plt>
mov    %eax,%edi
call   1040 <ASSERT@plt>
mov    -0x4(%rbp),%eax
add    $0x4,%eax
cltq
mov    (%rax),%ecx
or     $0x2,%ecx
mov    %ecx,(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SSIEnable>:
push   %rbx
mov    %edi,%ebx
call   1030 <_SSIBaseValid@plt>
mov    %eax,%edi
call   1040 <ASSERT@plt>
movslq %ebx,%rax
orl    $0x2,0x4(%rax)
pop    %rbx
ret

LLVM IR (-O0):
define void @SSIEnable(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @_SSIBaseValid(i32 %3)
%5 = call i32 @ASSERT(i32 %4)
%6 = load i32, i32* %2
%7 = add nsw i32 %6, 4
%8 = sext i32 %7 to i64
%9 = inttoptr i64 %8 to i32*
%10 = load volatile i32, i32* %9
%11 = or i32 %10, 2
store volatile i32 %11, i32* %9
ret void
}

LLVM IR (-O2):
define void @SSIEnable(i32 %0) {
%2 = tail call i32 @_SSIBaseValid(i32 %0)
%3 = tail call i32 @ASSERT(i32 %2)
%4 = add nsw i32 %0, 4
%5 = sext i32 %4 to i64
%6 = inttoptr i64 %5 to i32*
%7 = load volatile i32, i32* %6
%8 = or i32 %7, 2
store volatile i32 %8, i32* %6
ret void
}
int((tns_transmit))(struct ss7 *ss7, struct isup_call *c, int messagetype,
                    unsigned char *parm, int len) {
  return 0;
}


x86 assembly (clang, -O0):
<tns_transmit>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
%struct.ss7 = type opaque
%struct.isup_call = type opaque
define i32 @tns_transmit(%struct.ss7* %0, %struct.isup_call* %1, i32 %2, i8* %3, i32 %4) {
%6 = alloca %struct.ss7*
%7 = alloca %struct.isup_call*
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i32
store %struct.ss7* %0, %struct.ss7** %6
store %struct.isup_call* %1, %struct.isup_call** %7
store i32 %2, i32* %8
store i8* %3, i8** %9
store i32 %4, i32* %10
ret i32 0
}

LLVM IR (-O2):
%struct.ss7 = type opaque
%struct.isup_call = type opaque
define i32 @tns_transmit(%struct.ss7* nocapture readnone %0, %struct.isup_call* nocapture readnone %1, i32 %2, i8* nocapture readnone %3, i32 %4) {
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ time_t;
struct timeval {
  int /*<<< orphan*/ tv_sec;
};

/* Variables and functions */
int /*<<< orphan*/ ctime(int /*<<< orphan*/ *);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, char *, int, int, int /*<<< orphan*/);
int /*<<< orphan*/ stdout;
void print_time_in_secs(struct timeval *t, char *label) {
  time_t abst = t->tv_sec;
  printf("%s%*.*s\n", label, 24, 24, ctime(&abst));
  fflush(stdout);
}


x86 assembly (clang, -O0):
<print_time_in_secs>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
lea    -0x14(%rbp),%rdi
call   1030 <ctime@plt>
mov    -0x20(%rbp),%rsi
mov    %eax,%r8d
lea    0xe98(%rip),%rdi
mov    $0x18,%ecx
mov    %ecx,%edx
call   1040 <printf@plt>
mov    0x2e65(%rip),%rax
mov    (%rax),%edi
call   1050 <fflush@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_time_in_secs>:
push   %rbx
sub    $0x10,%rsp
mov    %rsi,%rbx
mov    (%rdi),%eax
mov    %eax,0xc(%rsp)
lea    0xc(%rsp),%rdi
call   1030 <ctime@plt>
lea    0xeb1(%rip),%rdi
mov    %rbx,%rsi
mov    $0x18,%edx
mov    $0x18,%ecx
mov    %eax,%r8d
call   1040 <printf@plt>
mov    0x2e75(%rip),%rax
mov    (%rax),%edi
call   1050 <fflush@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
%struct.timeval = type { i32 }
@.str = [9 x i8] c"%s%*.*s\0A\00"
@stdout = global i32 0
define void @print_time_in_secs(%struct.timeval* %0, i8* %1) {
%3 = alloca %struct.timeval*
%4 = alloca i8*
%5 = alloca i32
store %struct.timeval* %0, %struct.timeval** %3
store i8* %1, i8** %4
%6 = load %struct.timeval*, %struct.timeval** %3
%7 = getelementptr inbounds %struct.timeval, %struct.timeval* %6, i32 0, i32 0
%8 = load i32, i32* %7
store i32 %8, i32* %5
%9 = load i8*, i8** %4
%10 = call i32 @ctime(i32* %5)
%11 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* %9, i32 24, i32 24, i32 %10)
%12 = load i32, i32* @stdout
%13 = call i32 @fflush(i32 %12)
ret void
}

LLVM IR (-O2):
%struct.timeval = type { i32 }
@.str = [9 x i8] c"%s%*.*s\0A\00"
@stdout = global i32 0
define void @print_time_in_secs(%struct.timeval* nocapture %0, i8* %1) {
%3 = alloca i32
%4 = bitcast i32* %3 to i8*
%5 = getelementptr inbounds %struct.timeval, %struct.timeval* %0, i64 0, i32 0
%6 = load i32, i32* %5
store i32 %6, i32* %3
%7 = call i32 @ctime(i32* %3)
%8 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* %1, i32 24, i32 24, i32 %7)
%9 = load i32, i32* @stdout
%10 = call i32 @fflush(i32 %9)
ret void
}
long fn8(void) { return 0x800000000; }


x86 assembly (clang, -O0):
<fn8>:
push   %rbp
mov    %rsp,%rbp
movabs $0x800000000,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<fn8>:
movabs $0x800000000,%rax
ret

LLVM IR (-O0):
define i64 @fn8() {
ret i64 34359738368
}

LLVM IR (-O2):
define i64 @fn8() {
ret i64 34359738368
}
/* Variables and functions */
int /*<<< orphan*/ strcpy(char *, char const *);
char swapcase(char);
void swcasefirst(const char *pw, char *ret) {
  strcpy(ret, pw);
  ret[0] = swapcase(ret[0]);
}


x86 assembly (clang, -O0):
<swcasefirst>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x10(%rbp),%rax
movsbl (%rax),%edi
call   1040 <swapcase@plt>
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<swcasefirst>:
push   %rbx
mov    %rsi,%rbx
mov    %rdi,%rsi
mov    %rbx,%rdi
call   1030 <strcpy@plt>
movsbl (%rbx),%edi
call   1040 <swapcase@plt>
mov    %al,(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @swcasefirst(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 = load i8*, i8** %3
%7 = call i32 @strcpy(i8* %5, i8* %6)
%8 = load i8*, i8** %4
%9 = getelementptr inbounds i8, i8* %8, i64 0
%10 = load i8, i8* %9
%11 = call signext i8 @swapcase(i8 signext %10)
%12 = load i8*, i8** %4
%13 = getelementptr inbounds i8, i8* %12, i64 0
store i8 %11, i8* %13
ret void
}

LLVM IR (-O2):
define void @swcasefirst(i8* %0, i8* %1) {
%3 = tail call i32 @strcpy(i8* %1, i8* %0)
%4 = load i8, i8* %1
%5 = tail call signext i8 @swapcase(i8 signext %4)
store i8 %5, i8* %1
ret void
}
/* Variables and functions */
long double sqrtl(long double);
long double hypotl(long double x, long double y) {
  return sqrtl(x * x + y * y);
}


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

x86 assembly (clang, -O2):
<hypotl>:
sub    $0x18,%rsp
fldt   0x20(%rsp)
fldt   0x30(%rsp)
fmul   %st,%st(0)
fxch   %st(1)
fmul   %st,%st(0)
faddp  %st,%st(1)
fstpt  (%rsp)
call   1030 <sqrtl@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
define x86_fp80 @hypotl(x86_fp80 %0, x86_fp80 %1) {
%3 = alloca x86_fp80
%4 = alloca x86_fp80
store x86_fp80 %0, x86_fp80* %3
store x86_fp80 %1, x86_fp80* %4
%5 = load x86_fp80, x86_fp80* %3
%6 = load x86_fp80, x86_fp80* %3
%7 = load x86_fp80, x86_fp80* %4
%8 = load x86_fp80, x86_fp80* %4
%9 = fmul x86_fp80 %7, %8
%10 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %5, x86_fp80 %6, x86_fp80 %9)
%11 = call x86_fp80 @sqrtl(x86_fp80 %10)
ret x86_fp80 %11
}

LLVM IR (-O2):
define x86_fp80 @hypotl(x86_fp80 %0, x86_fp80 %1) {
%3 = fmul x86_fp80 %1, %1
%4 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %0, x86_fp80 %0, x86_fp80 %3)
%5 = tail call x86_fp80 @sqrtl(x86_fp80 %4)
ret x86_fp80 %5
}
int i2c_bulkwrite(void *handle, unsigned char chip, unsigned short addr,
                  unsigned char *data, unsigned short length) {
  return 0;
}


x86 assembly (clang, -O0):
<i2c_bulkwrite>:
push   %rbp
mov    %rsp,%rbp
mov    %r8w,%ax
mov    %rdi,-0x8(%rbp)
mov    %sil,-0x9(%rbp)
mov    %dx,-0xc(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %ax,-0x1a(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @i2c_bulkwrite(i8* %0, i8 zeroext %1, i16 zeroext %2, i8* %3, i16 zeroext %4) {
%6 = alloca i8*
%7 = alloca i8
%8 = alloca i16
%9 = alloca i8*
%10 = alloca i16
store i8* %0, i8** %6
store i8 %1, i8* %7
store i16 %2, i16* %8
store i8* %3, i8** %9
store i16 %4, i16* %10
ret i32 0
}

LLVM IR (-O2):
define i32 @i2c_bulkwrite(i8* nocapture readnone %0, i8 zeroext %1, i16 zeroext %2, i8* nocapture readnone %3, i16 zeroext %4) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void urecursiveboehmregistersoftware() {
  printf("urecursiveboehmregistersoftware\n");
}


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

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

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

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


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

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

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

LLVM IR (-O2):
define void @av_packet_pack_dictionary() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ res_hl(int);
void opcb_ae() { res_hl(5); }


x86 assembly (clang, -O0):
<opcb_ae>:
push   %rbp
mov    %rsp,%rbp
mov    $0x5,%edi
call   1030 <res_hl@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<opcb_ae>:
mov    $0x5,%edi
jmp    1030 <res_hl@plt>

LLVM IR (-O0):
define void @opcb_ae() {
%1 = call i32 @res_hl(i32 5)
ret void
}

LLVM IR (-O2):
define void @opcb_ae() {
%1 = tail call i32 @res_hl(i32 5)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ memcpy(void *, void const *, unsigned int);
void strncpy_s(void *dst, unsigned dst_len, const void *src, unsigned src_len) {
  unsigned n = dst_len - 1;
  if (n > src_len)
    n = src_len;
  memcpy(dst, src, n);
  ((unsigned char *)dst)[n] = '\0';
}


x86 assembly (clang, -O0):
<strncpy_s>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    -0xc(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jbe    1141 <strncpy_s+0x31>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   1030 <memcpy@plt>
mov    -0x8(%rbp),%rax
mov    -0x20(%rbp),%ecx
movb   $0x0,(%rax,%rcx,1)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<strncpy_s>:
push   %r14
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %rdi,%r14
add    $0xffffffff,%ebx
cmp    %ecx,%ebx
cmova  %ecx,%ebx
mov    %rdx,%rsi
mov    %ebx,%edx
call   1030 <memcpy@plt>
movb   $0x0,(%r14,%rbx,1)
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define void @strncpy_s(i8* %0, i32 %1, i8* %2, i32 %3) {
%5 = add i32 %1, -1
%6 = icmp ugt i32 %5, %3
%7 = select i1 %6, i32 %3, i32 %5
%8 = tail call i32 @memcpy(i8* %0, i8* %2, i32 %7)
%9 = zext i32 %7 to i64
%10 = getelementptr inbounds i8, i8* %0, i64 %9
store i8 0, i8* %10
ret void
}
void task_idle() {
  while (1) {
    asm("hlt");
    cli();
    sched();
    sti();
  }
}


x86 assembly (clang, -O0):
<task_idle>:
push   %rbp
mov    %rsp,%rbp
jmp    1139 <task_idle+0x9>
hlt
mov    $0x0,%al
call   1040 <cli@plt>
mov    $0x0,%al
call   1050 <sched@plt>
mov    $0x0,%al
call   1030 <sti@plt>
jmp    1139 <task_idle+0x9>

x86 assembly (clang, -O2):
<task_idle>:
push   %rax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
hlt
xor    %eax,%eax
call   1040 <cli@plt>
xor    %eax,%eax
call   1050 <sched@plt>
xor    %eax,%eax
call   1030 <sti@plt>
jmp    1140 <task_idle+0x10>

LLVM IR (-O0):
define void @task_idle() {
br label %1
1: ; preds = %0, %1
%2 = call i32 (...) @cli()
%3 = call i32 (...) @sched()
%4 = call i32 (...) @sti()
br label %1
}

LLVM IR (-O2):
define void @task_idle() {
br label %1
1: ; preds = %0, %1
tail call void asm sideeffect "hlt", "~{dirflag},~{fpsr},~{flags}"()
%2 = tail call i32 (...) @cli()
%3 = tail call i32 (...) @sched()
%4 = tail call i32 (...) @sti()
br label %1
}
/* Variables and functions */
long long acceptInteger();
long long findScore(long long);
int /*<<< orphan*/ printResult(long long, long long);
int main() {
  long long int num = 0;
  long long int orig_num = 0;
  orig_num = acceptInteger();
  num = findScore(orig_num);
  printResult(orig_num, num);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x0,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
mov    $0x0,%al
call   1050 <acceptInteger@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1040 <findScore@plt>
mov    %rax,-0x10(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <printResult@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1050 <acceptInteger@plt>
mov    %rax,%rbx
mov    %rax,%rdi
call   1040 <findScore@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
call   1030 <printResult@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i64
%3 = alloca i64
store i32 0, i32* %1
store i64 0, i64* %2
store i64 0, i64* %3
%4 = call i64 (...) @acceptInteger()
store i64 %4, i64* %3
%5 = load i64, i64* %3
%6 = call i64 @findScore(i64 %5)
store i64 %6, i64* %2
%7 = load i64, i64* %3
%8 = load i64, i64* %2
%9 = call i32 @printResult(i64 %7, i64 %8)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i64 (...) @acceptInteger()
%2 = tail call i64 @findScore(i64 %1)
%3 = tail call i32 @printResult(i64 %1, i64 %2)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ SetFontHeight106(unsigned long);
void setfontheight(unsigned long h) { SetFontHeight106(h); }


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

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

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

LLVM IR (-O2):
define void @setfontheight(i64 %0) {
%2 = tail call i32 @SetFontHeight106(i64 %0)
ret void
}
int LZ4_sizeofState() { return 1 << 14; }


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

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

LLVM IR (-O0):
define i32 @LZ4_sizeofState() {
ret i32 16384
}

LLVM IR (-O2):
define i32 @LZ4_sizeofState() {
ret i32 16384
}
/* Variables and functions */
int /*<<< orphan*/ C67_asm(char *, int, int, int /*<<< orphan*/);
void C67_LDW_PTR_PRE_INC(int r, int r2) { C67_asm("LDW.D +*", r, r2, 0); }


x86 assembly (clang, -O0):
<C67_LDW_PTR_PRE_INC>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x8(%rbp),%edx
lea    0xed5(%rip),%rdi
xor    %ecx,%ecx
call   1030 <C67_asm@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<C67_LDW_PTR_PRE_INC>:
mov    %esi,%edx
mov    %edi,%esi
lea    0xee5(%rip),%rdi
xor    %ecx,%ecx
jmp    1030 <C67_asm@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"LDW.D +*\00"
define void @C67_LDW_PTR_PRE_INC(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 @C67_asm(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %5, i32 %6, i32 0)
ret void
}

LLVM IR (-O2):
@.str = [9 x i8] c"LDW.D +*\00"
define void @C67_LDW_PTR_PRE_INC(i32 %0, i32 %1) {
%3 = tail call i32 @C67_asm(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %0, i32 %1, i32 0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ assert(int);
int suzerain_inorder_wavenumber(const int N, const int i) {
  assert(0 <= i && i < N);
  return (i < N / 2 + 1) ? i : -N + i;
}


x86 assembly (clang, -O0):
<suzerain_inorder_wavenumber>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
xor    %eax,%eax
xor    %ecx,%ecx
cmp    -0x8(%rbp),%ecx
mov    %al,-0x9(%rbp)
jg     113a <suzerain_inorder_wavenumber+0x2a>
mov    -0x8(%rbp),%eax
cmp    -0x4(%rbp),%eax
setl   %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0x10(%rbp),%eax
add    $0x1,%ecx
cmp    %ecx,%eax
jge    1173 <suzerain_inorder_wavenumber+0x63>
mov    -0x8(%rbp),%eax
mov    %eax,-0x14(%rbp)
jmp    117e <suzerain_inorder_wavenumber+0x6e>
xor    %eax,%eax
sub    -0x4(%rbp),%eax
add    -0x8(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<suzerain_inorder_wavenumber>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %edi,%ebp
test   %esi,%esi
setns  %al
cmp    %edi,%esi
setl   %cl
and    %al,%cl
movzbl %cl,%edi
call   1030 <assert@plt>
mov    %ebp,%eax
shr    $0x1f,%eax
add    %ebp,%eax
sar    %eax
xor    %ecx,%ecx
cmp    %ebx,%eax
cmovl  %ebp,%ecx
sub    %ecx,%ebx
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @suzerain_inorder_wavenumber(i32 %0, i32 %1) {
%3 = icmp sgt i32 %1, -1
%4 = icmp slt i32 %1, %0
%5 = and i1 %3, %4
%6 = zext i1 %5 to i32
%7 = tail call i32 @assert(i32 %6)
%8 = sdiv i32 %0, 2
%9 = icmp slt i32 %8, %1
%10 = select i1 %9, i32 %0, i32 0
%11 = sub i32 %1, %10
ret i32 %11
}
int xmlUCSIsSpacingModifierLetters(int code) {
  return (((code >= 0x02B0) && (code <= 0x02FF)));
}


x86 assembly (clang, -O0):
<xmlUCSIsSpacingModifierLetters>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
xor    %eax,%eax
cmpl   $0x2b0,-0x4(%rbp)
mov    %al,-0x5(%rbp)
jl     1126 <xmlUCSIsSpacingModifierLetters+0x26>
cmpl   $0x2ff,-0x4(%rbp)
setle  %al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<xmlUCSIsSpacingModifierLetters>:
add    $0xfffffd50,%edi
xor    %eax,%eax
cmp    $0x50,%edi
setb   %al
ret

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

LLVM IR (-O2):
define i32 @xmlUCSIsSpacingModifierLetters(i32 %0) {
%2 = add i32 %0, -688
%3 = icmp ult i32 %2, 80
%4 = zext i1 %3 to i32
ret i32 %4
}
/* Type definitions */
typedef int /*<<< orphan*/ time_t;
typedef int /*<<< orphan*/ p;

/* Variables and functions */
int /*<<< orphan*/ localtime(int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ strftime(char *, int, char *, int /*<<< orphan*/);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
void handle() {
  time_t t;
  char p[32];
  time(&t);
  strftime(p, sizeof(p), "%T", localtime(&t));
  printf("time is %s\n", p);
}


x86 assembly (clang, -O0):
<handle>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
lea    -0x4(%rbp),%rdi
call   1050 <time@plt>
lea    -0x30(%rbp),%rax
mov    %rax,-0x38(%rbp)
lea    -0x4(%rbp),%rdi
call   1030 <localtime@plt>
mov    -0x38(%rbp),%rdi
mov    %eax,%ecx
mov    $0x20,%esi
lea    0xe8c(%rip),%rdx
call   1060 <strftime@plt>
lea    -0x30(%rbp),%rsi
lea    0xe7f(%rip),%rdi
call   1040 <printf@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<handle>:
push   %rbx
sub    $0x30,%rsp
lea    0xc(%rsp),%rbx
mov    %rbx,%rdi
call   1050 <time@plt>
mov    %rbx,%rdi
call   1030 <localtime@plt>
lea    0xe9f(%rip),%rdx
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x20,%esi
mov    %eax,%ecx
call   1060 <strftime@plt>
lea    0xe87(%rip),%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
add    $0x30,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%T\00"
@.str.1 = [12 x i8] c"time is %s\0A\00"
define void @handle() {
%1 = alloca i32
%2 = alloca [32 x i8]
%3 = call i32 @time(i32* %1)
%4 = getelementptr inbounds [32 x i8], [32 x i8]* %2, i64 0, i64 0
%5 = call i32 @localtime(i32* %1)
%6 = call i32 @strftime(i8* %4, i32 32, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = getelementptr inbounds [32 x i8], [32 x i8]* %2, i64 0, i64 0
%8 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8* %7)
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"%T\00"
@.str.1 = [12 x i8] c"time is %s\0A\00"
define void @handle() {
%1 = alloca i32
%2 = alloca [32 x i8]
%3 = bitcast i32* %1 to i8*
%4 = getelementptr inbounds [32 x i8], [32 x i8]* %2, i64 0, i64 0
%5 = call i32 @time(i32* %1)
%6 = call i32 @localtime(i32* %1)
%7 = call i32 @strftime(i8* %4, i32 32, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %6)
%8 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8* %4)
ret void
}
/* Variables and functions */
int check_primo(int);
int /*<<< orphan*/ printf(char *, int);
int main() {
  int i, primo;
  for (i = 2; i <= 100; i++) {
    primo = check_primo(i);
    if (!(primo == 1))
      printf("\nEl numero %d es primo\n", primo);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x2,-0x8(%rbp)
cmpl   $0x64,-0x8(%rbp)
jg     1177 <main+0x57>
mov    -0x8(%rbp),%edi
call   1030 <check_primo@plt>
mov    %eax,-0xc(%rbp)
cmpl   $0x1,-0xc(%rbp)
je     1164 <main+0x44>
mov    -0xc(%rbp),%esi
lea    0xea1(%rip),%rdi
call   1040 <printf@plt>
jmp    1169 <main+0x49>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1136 <main+0x16>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
mov    $0x2,%ebx
lea    0xed0(%rip),%r14
jmp    1148 <main+0x28>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x1,%ebx
cmp    $0x65,%ebx
je     1160 <main+0x40>
mov    %ebx,%edi
call   1030 <check_primo@plt>
cmp    $0x1,%eax
je     1140 <main+0x20>
mov    %r14,%rdi
mov    %eax,%esi
call   1040 <printf@plt>
jmp    1140 <main+0x20>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [24 x i8] c"\0AEl numero %d es primo\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 2, i32* %2
br label %4
4: ; preds = %16, %0
%5 = load i32, i32* %2
%6 = icmp sle i32 %5, 100
br i1 %6, label %7, label %19
7: ; preds = %4
%8 = load i32, i32* %2
%9 = call i32 @check_primo(i32 %8)
store i32 %9, i32* %3
%10 = load i32, i32* %3
%11 = icmp eq i32 %10, 1
br i1 %11, label %15, label %12
12: ; preds = %7
%13 = load i32, i32* %3
%14 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 %13)
br label %15
15: ; preds = %12, %7
br label %16
16: ; preds = %15
%17 = load i32, i32* %2
%18 = add nsw i32 %17, 1
store i32 %18, i32* %2
br label %4
19: ; preds = %4
ret i32 0
}

LLVM IR (-O2):
@.str = [24 x i8] c"\0AEl numero %d es primo\0A\00"
define i32 @main() {
br label %1
1: ; preds = %0, %7
%2 = phi i32 [ 2, %0 ], [ %8, %7 ]
%3 = tail call i32 @check_primo(i32 %2)
%4 = icmp eq i32 %3, 1
br i1 %4, label %7, label %5
5: ; preds = %1
%6 = tail call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 %3)
br label %7
7: ; preds = %1, %5
%8 = add nuw nsw i32 %2, 1
%9 = icmp eq i32 %8, 101
br i1 %9, label %10, label %1
10: ; preds = %7
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ stdout;
void SendInit(char *botname) {
  printf("%s\n", botname);
  fflush(stdout);
}


x86 assembly (clang, -O0):
<SendInit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xec9(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e9d(%rip),%rax
mov    (%rax),%edi
call   1040 <fflush@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SendInit>:
push   %rax
mov    %rdi,%rsi
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
mov    0x2ea9(%rip),%rax
mov    (%rax),%edi
pop    %rax
jmp    1040 <fflush@plt>

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

LLVM IR (-O2):
@.str = [4 x i8] c"%s\0A\00"
@stdout = global i32 0
define void @SendInit(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = load i32, i32* @stdout
%4 = tail call i32 @fflush(i32 %3)
ret void
}
/* Variables and functions */
size_t FSE_compressBound(size_t size) { return (size + (size >> 7) + 512); }


x86 assembly (clang, -O0):
<FSE_compressBound>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x8(%rbp),%rcx
shr    $0x7,%rcx
add    %rcx,%rax
add    $0x200,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<FSE_compressBound>:
mov    %rdi,%rax
shr    $0x7,%rax
add    %rdi,%rax
add    $0x200,%rax
ret

LLVM IR (-O0):
define i64 @FSE_compressBound(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = load i64, i64* %2
%5 = lshr i64 %4, 7
%6 = add i64 %3, %5
%7 = add i64 %6, 512
ret i64 %7
}

LLVM IR (-O2):
define i64 @FSE_compressBound(i64 %0) {
%2 = lshr i64 %0, 7
%3 = add i64 %0, 512
%4 = add i64 %3, %2
ret i64 %4
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int err_calloc() {
  printf("Error allocating memory.\nExitting.\n");
  return 1;
}


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

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

LLVM IR (-O0):
@.str = [36 x i8] c"Error allocating memory.\0AExitting.\0A\00"
define i32 @err_calloc() {
%1 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
ret i32 1
}

LLVM IR (-O2):
@str = [35 x i8] c"Error allocating memory.\0AExitting.\00"
define i32 @err_calloc() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str, i64 0, i64 0))
ret i32 1
}
void TimerOC1NPolarityConfigure(unsigned long ulBase,
                                unsigned long ulPolarity) {
  unsigned long ulTempccer = 0;

  ;

  ;
  ulTempccer = (*((volatile unsigned long *)(ulBase + 0x00000020)));
  ulTempccer &= ~0x00000008;
  ulTempccer |= ulPolarity;
  (*((volatile unsigned long *)(ulBase + 0x00000020))) = ulTempccer;
}


x86 assembly (clang, -O0):
<TimerOC1NPolarityConfigure>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    0x20(%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
and    $0xfffffffffffffff7,%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
or     -0x18(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rcx
mov    -0x8(%rbp),%rax
mov    %rcx,0x20(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<TimerOC1NPolarityConfigure>:
mov    0x20(%rdi),%rax
and    $0xfffffffffffffff7,%rax
or     %rsi,%rax
mov    %rax,0x20(%rdi)
ret

LLVM IR (-O0):
define void @TimerOC1NPolarityConfigure(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
%5 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
store i64 0, i64* %5
%6 = load i64, i64* %3
%7 = add i64 %6, 32
%8 = inttoptr i64 %7 to i64*
%9 = load volatile i64, i64* %8
store i64 %9, i64* %5
%10 = load i64, i64* %5
%11 = and i64 %10, -9
store i64 %11, i64* %5
%12 = load i64, i64* %4
%13 = load i64, i64* %5
%14 = or i64 %13, %12
store i64 %14, i64* %5
%15 = load i64, i64* %5
%16 = load i64, i64* %3
%17 = add i64 %16, 32
%18 = inttoptr i64 %17 to i64*
store volatile i64 %15, i64* %18
ret void
}

LLVM IR (-O2):
define void @TimerOC1NPolarityConfigure(i64 %0, i64 %1) {
%3 = add i64 %0, 32
%4 = inttoptr i64 %3 to i64*
%5 = load volatile i64, i64* %4
%6 = and i64 %5, -9
%7 = or i64 %6, %1
store volatile i64 %7, i64* %4
ret void
}
/* Variables and functions */
int /*<<< orphan*/ ManualControlSettingsHandle();
int /*<<< orphan*/ UAVObjUpdated(int /*<<< orphan*/);
void ManualControlSettingsUpdated() {
  UAVObjUpdated(ManualControlSettingsHandle());
}


x86 assembly (clang, -O0):
<ManualControlSettingsUpdated>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <ManualControlSettingsHandle@plt>
mov    %eax,%edi
call   1040 <UAVObjUpdated@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<ManualControlSettingsUpdated>:
push   %rax
xor    %eax,%eax
call   1030 <ManualControlSettingsHandle@plt>
mov    %eax,%edi
pop    %rax
jmp    1040 <UAVObjUpdated@plt>

LLVM IR (-O0):
define void @ManualControlSettingsUpdated() {
%1 = call i32 (...) @ManualControlSettingsHandle()
%2 = call i32 @UAVObjUpdated(i32 %1)
ret void
}

LLVM IR (-O2):
define void @ManualControlSettingsUpdated() {
%1 = tail call i32 (...) @ManualControlSettingsHandle()
%2 = tail call i32 @UAVObjUpdated(i32 %1)
ret void
}
/* Type definitions */
typedef scalar_t__ int64_t;

/* Variables and functions */
double sqrt(double);
double stdlib_strided_dvariancetk(scalar_t__ const, double const,
                                  double const *, scalar_t__ const);
double stdlib_strided_dsemtk(const int64_t N, const double correction,
                             const double *X, const int64_t stride) {
  return sqrt(stdlib_strided_dvariancetk(N, correction, X, stride) / (double)N);
}


x86 assembly (clang, -O0):
<stdlib_strided_dsemtk>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
movsd  %xmm0,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
movsd  -0x10(%rbp),%xmm0
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
call   1030 <stdlib_strided_dvariancetk@plt>
cvtsi2sdq -0x8(%rbp),%xmm1
divsd  %xmm1,%xmm0
call   1040 <sqrt@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<stdlib_strided_dsemtk>:
push   %rbx
mov    %rdi,%rbx
call   1030 <stdlib_strided_dvariancetk@plt>
cvtsi2sd %rbx,%xmm1
divsd  %xmm1,%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     1142 <stdlib_strided_dsemtk+0x22>
sqrtsd %xmm0,%xmm0
pop    %rbx
ret
pop    %rbx
jmp    1040 <sqrt@plt>

LLVM IR (-O0):
define double @stdlib_strided_dsemtk(i64 %0, double %1, double* %2, i64 %3) {
%5 = alloca i64
%6 = alloca double
%7 = alloca double*
%8 = alloca i64
store i64 %0, i64* %5
store double %1, double* %6
store double* %2, double** %7
store i64 %3, i64* %8
%9 = load i64, i64* %5
%10 = load double, double* %6
%11 = load double*, double** %7
%12 = load i64, i64* %8
%13 = call double @stdlib_strided_dvariancetk(i64 %9, double %10, double* %11, i64 %12)
%14 = load i64, i64* %5
%15 = sitofp i64 %14 to double
%16 = fdiv double %13, %15
%17 = call double @sqrt(double %16)
ret double %17
}

LLVM IR (-O2):
define double @stdlib_strided_dsemtk(i64 %0, double %1, double* %2, i64 %3) {
%5 = tail call double @stdlib_strided_dvariancetk(i64 %0, double %1, double* %2, i64 %3)
%6 = sitofp i64 %0 to double
%7 = fdiv double %5, %6
%8 = tail call double @sqrt(double %7)
ret double %8
}
void rop3_78_1_0(unsigned char *D, unsigned char S, unsigned char T) {
  unsigned char stk1;
  unsigned char stk2;
  unsigned char stk3;
  stk3 = S ^ T;
  stk2 = *D | stk3;
  stk1 = T ^ stk2;
  *D = (stk1 & (~S)) | (*D & S);
}


x86 assembly (clang, -O0):
<rop3_78_1_0>:
push   %rbp
mov    %rsp,%rbp
mov    %dl,%al
mov    %sil,%cl
mov    %rdi,-0x8(%rbp)
mov    %cl,-0x9(%rbp)
mov    %al,-0xa(%rbp)
movzbl -0x9(%rbp),%eax
movzbl -0xa(%rbp),%ecx
xor    %ecx,%eax
mov    %al,-0xd(%rbp)
mov    -0x8(%rbp),%rax
movzbl (%rax),%eax
movzbl -0xd(%rbp),%ecx
or     %ecx,%eax
mov    %al,-0xc(%rbp)
movzbl -0xa(%rbp),%eax
movzbl -0xc(%rbp),%ecx
xor    %ecx,%eax
mov    %al,-0xb(%rbp)
movzbl -0xb(%rbp),%eax
movzbl -0x9(%rbp),%ecx
xor    $0xffffffff,%ecx
and    %ecx,%eax
mov    -0x8(%rbp),%rcx
movzbl (%rcx),%ecx
movzbl -0x9(%rbp),%edx
and    %edx,%ecx
or     %ecx,%eax
mov    %al,%cl
mov    -0x8(%rbp),%rax
mov    %cl,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<rop3_78_1_0>:
mov    %edx,%eax
xor    %sil,%al
mov    (%rdi),%cl
or     %cl,%al
xor    %dl,%al
xor    %al,%cl
and    %sil,%cl
xor    %al,%cl
mov    %cl,(%rdi)
ret

LLVM IR (-O0):
define void @rop3_78_1_0(i8* %0, i8 zeroext %1, i8 zeroext %2) {
%4 = alloca i8*
%5 = alloca i8
%6 = alloca i8
%7 = alloca i8
%8 = alloca i8
%9 = alloca i8
store i8* %0, i8** %4
store i8 %1, i8* %5
store i8 %2, i8* %6
%10 = load i8, i8* %5
%11 = zext i8 %10 to i32
%12 = load i8, i8* %6
%13 = zext i8 %12 to i32
%14 = xor i32 %11, %13
%15 = trunc i32 %14 to i8
store i8 %15, i8* %9
%16 = load i8*, i8** %4
%17 = load i8, i8* %16
%18 = zext i8 %17 to i32
%19 = load i8, i8* %9
%20 = zext i8 %19 to i32
%21 = or i32 %18, %20
%22 = trunc i32 %21 to i8
store i8 %22, i8* %8
%23 = load i8, i8* %6
%24 = zext i8 %23 to i32
%25 = load i8, i8* %8
%26 = zext i8 %25 to i32
%27 = xor i32 %24, %26
%28 = trunc i32 %27 to i8
store i8 %28, i8* %7
%29 = load i8, i8* %7
%30 = zext i8 %29 to i32
%31 = load i8, i8* %5
%32 = zext i8 %31 to i32
%33 = xor i32 %32, -1
%34 = and i32 %30, %33
%35 = load i8*, i8** %4
%36 = load i8, i8* %35
%37 = zext i8 %36 to i32
%38 = load i8, i8* %5
%39 = zext i8 %38 to i32
%40 = and i32 %37, %39
%41 = or i32 %34, %40
%42 = trunc i32 %41 to i8
%43 = load i8*, i8** %4
store i8 %42, i8* %43
ret void
}

LLVM IR (-O2):
define void @rop3_78_1_0(i8* nocapture %0, i8 zeroext %1, i8 zeroext %2) {
%4 = xor i8 %2, %1
%5 = load i8, i8* %0
%6 = or i8 %5, %4
%7 = xor i8 %6, %2
%8 = xor i8 %1, -1
%9 = and i8 %7, %8
%10 = and i8 %5, %1
%11 = or i8 %9, %10
store i8 %11, i8* %0
ret void
}
void setBitAt(unsigned int *bitmap, int i, int bitValue) {
  unsigned int *number = bitmap;
  unsigned int mask = 1 << i;
  if (bitValue == 1) {
    *number = *bitmap | mask;
  }
  if (bitValue == 0) {
    *number = *bitmap & ~mask;
  }
}


x86 assembly (clang, -O0):
<setBitAt>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0xc(%rbp),%ecx
mov    $0x1,%eax
shl    %cl,%eax
mov    %eax,-0x1c(%rbp)
cmpl   $0x1,-0x10(%rbp)
jne    113c <setBitAt+0x3c>
mov    -0x8(%rbp),%rax
mov    (%rax),%ecx
or     -0x1c(%rbp),%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
cmpl   $0x0,-0x10(%rbp)
jne    115a <setBitAt+0x5a>
mov    -0x8(%rbp),%rax
mov    (%rax),%ecx
mov    -0x1c(%rbp),%eax
xor    $0xffffffff,%eax
and    %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<setBitAt>:
mov    %esi,%ecx
mov    $0x1,%eax
shl    %cl,%eax
test   %edx,%edx
je     1116 <setBitAt+0x16>
cmp    $0x1,%edx
jne    111c <setBitAt+0x1c>
or     (%rdi),%eax
jmp    111a <setBitAt+0x1a>
not    %eax
and    (%rdi),%eax
mov    %eax,(%rdi)
ret

LLVM IR (-O0):
define void @setBitAt(i32* %0, i32 %1, i32 %2) {
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32*
%8 = alloca i32
store i32* %0, i32** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%9 = load i32*, i32** %4
store i32* %9, i32** %7
%10 = load i32, i32* %5
%11 = shl i32 1, %10
store i32 %11, i32* %8
%12 = load i32, i32* %6
%13 = icmp eq i32 %12, 1
br i1 %13, label %14, label %20
14: ; preds = %3
%15 = load i32*, i32** %4
%16 = load i32, i32* %15
%17 = load i32, i32* %8
%18 = or i32 %16, %17
%19 = load i32*, i32** %7
store i32 %18, i32* %19
br label %20
20: ; preds = %14, %3
%21 = load i32, i32* %6
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %30
23: ; preds = %20
%24 = load i32*, i32** %4
%25 = load i32, i32* %24
%26 = load i32, i32* %8
%27 = xor i32 %26, -1
%28 = and i32 %25, %27
%29 = load i32*, i32** %7
store i32 %28, i32* %29
br label %30
30: ; preds = %23, %20
ret void
}

LLVM IR (-O2):
define void @setBitAt(i32* nocapture %0, i32 %1, i32 %2) {
%4 = shl nuw i32 1, %1
switch i32 %2, label %14 [
i32 1, label %5
i32 0, label %8
]
5: ; preds = %3
%6 = load i32, i32* %0
%7 = or i32 %6, %4
br label %12
8: ; preds = %3
%9 = load i32, i32* %0
%10 = xor i32 %4, -1
%11 = and i32 %9, %10
br label %12
12: ; preds = %8, %5
%13 = phi i32 [ %7, %5 ], [ %11, %8 ]
store i32 %13, i32* %0
br label %14
14: ; preds = %12, %3
ret void
}
void vis_json_postamble(void) {}


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

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

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

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