xunge/DecIR huggingface dataset:
int ft_ii(int nb) {
  int i;
  i = 0;
  while (nb) {
    nb = nb / 10;
    i++;
  }
  return (i);
}


x86 assembly (clang, -O0):
<ft_ii>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     1134 <ft_ii+0x34>
mov    -0x4(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x4(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    110e <ft_ii+0xe>
mov    -0x8(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_ii>:
xor    %eax,%eax
test   %edi,%edi
je     1132 <ft_ii+0x32>
cs nopw 0x0(%rax,%rax,1)
movslq %edi,%rcx
imul   $0x66666667,%rcx,%rdi
mov    %rdi,%rdx
shr    $0x3f,%rdx
sar    $0x22,%rdi
add    %edx,%edi
add    $0x1,%eax
add    $0x9,%ecx
cmp    $0x12,%ecx
ja     1110 <ft_ii+0x10>
ret

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

LLVM IR (-O2):
define i32 @ft_ii(i32 %0) {
%2 = icmp eq i32 %0, 0
br i1 %2, label %10, label %3
3: ; preds = %1, %3
%4 = phi i32 [ %7, %3 ], [ 0, %1 ]
%5 = phi i32 [ %6, %3 ], [ %0, %1 ]
%6 = sdiv i32 %5, 10
%7 = add nuw nsw i32 %4, 1
%8 = add i32 %5, 9
%9 = icmp ult i32 %8, 19
br i1 %9, label %10, label %3
10: ; preds = %3, %1
%11 = phi i32 [ 0, %1 ], [ %7, %3 ]
ret i32 %11
}
/* Type definitions */
typedef int uint16_t;

/* Variables and functions */
void A(uint16_t *l, uint16_t *r) {
  (*l) = ((((*l)) << 9) | (((*l)) >> (16 - (9))));
  (*l) += (*r);
  (*r) = ((((*r)) << 2) | (((*r)) >> (16 - (2))));
  (*r) ^= (*l);
}


x86 assembly (clang, -O0):
<A>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%ecx
shl    $0x9,%ecx
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
sar    $0x7,%eax
or     %eax,%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x10(%rbp),%rax
mov    (%rax),%ecx
mov    -0x8(%rbp),%rax
add    (%rax),%ecx
mov    %ecx,(%rax)
mov    -0x10(%rbp),%rax
mov    (%rax),%ecx
shl    $0x2,%ecx
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
sar    $0xe,%eax
or     %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x8(%rbp),%rax
mov    (%rax),%ecx
mov    -0x10(%rbp),%rax
xor    (%rax),%ecx
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<A>:
mov    (%rdi),%eax
mov    %eax,%ecx
shl    $0x9,%ecx
sar    $0x7,%eax
or     %ecx,%eax
mov    %eax,(%rdi)
add    (%rsi),%eax
mov    %eax,(%rdi)
mov    (%rsi),%eax
lea    0x0(,%rax,4),%ecx
sar    $0xe,%eax
or     %ecx,%eax
mov    %eax,(%rsi)
xor    (%rdi),%eax
mov    %eax,(%rsi)
ret

LLVM IR (-O0):
define void @A(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 = shl i32 %6, 9
%8 = load i32*, i32** %3
%9 = load i32, i32* %8
%10 = ashr i32 %9, 7
%11 = or i32 %7, %10
%12 = load i32*, i32** %3
store i32 %11, i32* %12
%13 = load i32*, i32** %4
%14 = load i32, i32* %13
%15 = load i32*, i32** %3
%16 = load i32, i32* %15
%17 = add nsw i32 %16, %14
store i32 %17, i32* %15
%18 = load i32*, i32** %4
%19 = load i32, i32* %18
%20 = shl i32 %19, 2
%21 = load i32*, i32** %4
%22 = load i32, i32* %21
%23 = ashr i32 %22, 14
%24 = or i32 %20, %23
%25 = load i32*, i32** %4
store i32 %24, i32* %25
%26 = load i32*, i32** %3
%27 = load i32, i32* %26
%28 = load i32*, i32** %4
%29 = load i32, i32* %28
%30 = xor i32 %29, %27
store i32 %30, i32* %28
ret void
}

LLVM IR (-O2):
define void @A(i32* nocapture %0, i32* nocapture %1) {
%3 = load i32, i32* %0
%4 = shl i32 %3, 9
%5 = ashr i32 %3, 7
%6 = or i32 %4, %5
store i32 %6, i32* %0
%7 = load i32, i32* %1
%8 = add nsw i32 %6, %7
store i32 %8, i32* %0
%9 = load i32, i32* %1
%10 = shl i32 %9, 2
%11 = ashr i32 %9, 14
%12 = or i32 %10, %11
store i32 %12, i32* %1
%13 = load i32, i32* %0
%14 = xor i32 %12, %13
store i32 %14, i32* %1
ret void
}
void _Jv__mprec_bigtens(void) {}


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

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

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

LLVM IR (-O2):
define void @_Jv__mprec_bigtens() {
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;

/* Variables and functions */
void h264avcc_set_profile(uint8_t *p, uint8_t val) { p[1] = val; }


x86 assembly (clang, -O0):
<h264avcc_set_profile>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%ecx
mov    -0x8(%rbp),%rax
mov    %ecx,0x4(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<h264avcc_set_profile>:
mov    %esi,0x4(%rdi)
ret

LLVM IR (-O0):
define void @h264avcc_set_profile(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 = load i32*, i32** %3
%7 = getelementptr inbounds i32, i32* %6, i64 1
store i32 %5, i32* %7
ret void
}

LLVM IR (-O2):
define void @h264avcc_set_profile(i32* nocapture writeonly %0, i32 %1) {
%3 = getelementptr inbounds i32, i32* %0, i64 1
store i32 %1, i32* %3
ret void
}
/* Variables and functions */
char *getenv(char *);
int /*<<< orphan*/ printf(char *, char *);
int main() {
  printf("path=%s\n", getenv("PATH"));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xed3(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,%rsi
lea    0xebb(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee1(%rip),%rdi
call   1030 <getenv@plt>
lea    0xecc(%rip),%rdi
mov    %rax,%rsi
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [9 x i8] c"path=%s\0A\00"
@.str.1 = [5 x i8] c"PATH\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i8* @getenv(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* %2)
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"path=%s\0A\00"
@.str.1 = [5 x i8] c"PATH\00"
define i32 @main() {
%1 = tail call i8* @getenv(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* %1)
ret i32 0
}
/* Type definitions */
typedef int uint8_t;
typedef int /*<<< orphan*/ uint16_t;

/* Variables and functions */
int /*<<< orphan*/ chr2setBank0(int);
int /*<<< orphan*/ chr2setBank1(int);
void m193setParams6000(uint16_t addr, uint8_t val) {
  (void)addr;
  chr2setBank0(((val >> 1) & 0xFE) << 11);
  chr2setBank1(((val >> 1) | 0x01) << 11);
}


x86 assembly (clang, -O0):
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x8(%rbp),%edi
sar    $0x1,%edi
and    $0xfe,%edi
shl    $0xb,%edi
call   1030 <chr2setBank0@plt>
mov    -0x8(%rbp),%edi
sar    $0x1,%edi
or     $0x1,%edi
shl    $0xb,%edi
call   1040 <chr2setBank1@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
push   %rbx
mov    %esi,%edi
shl    $0xa,%edi
mov    %edi,%ebx
and    $0xfffff000,%ebx
and    $0x7f000,%edi
call   1030 <chr2setBank0@plt>
or     $0x800,%ebx
mov    %ebx,%edi
pop    %rbx
jmp    1040 <chr2setBank1@plt>

LLVM IR (-O0):
define void @m193setParams6000(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = load i32, i32* %4
%7 = ashr i32 %6, 1
%8 = and i32 %7, 254
%9 = shl i32 %8, 11
%10 = call i32 @chr2setBank0(i32 %9)
%11 = load i32, i32* %4
%12 = ashr i32 %11, 1
%13 = or i32 %12, 1
%14 = shl i32 %13, 11
%15 = call i32 @chr2setBank1(i32 %14)
ret void
}

LLVM IR (-O2):
define void @m193setParams6000(i32 %0, i32 %1) {
%3 = shl i32 %1, 10
%4 = and i32 %3, -4096
%5 = and i32 %3, 520192
%6 = tail call i32 @chr2setBank0(i32 %5)
%7 = or i32 %4, 2048
%8 = tail call i32 @chr2setBank1(i32 %7)
ret void
}
void __attribute__((noreturn)) cstart(void) {
  while (1)
    ;
}


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

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

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

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


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

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

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

LLVM IR (-O2):
define void @ff_hevc_put_hevc_bi_qpel_h64_12_sse4() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ Fail(char *);
void FailCommand(void) { Fail("FailCommand ..."); }


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

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

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

LLVM IR (-O2):
@.str = [16 x i8] c"FailCommand ...\00"
define void @FailCommand() {
%1 = tail call i32 @Fail(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
ret void
}
unsigned short int Hash_ID_valor(double *ID) { return ((int)*ID) % 65521; }


x86 assembly (clang, -O0):
<Hash_ID_valor>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
cvttsd2si (%rax),%eax
mov    $0xfff1,%ecx
cltd
idiv   %ecx
mov    %dx,%ax
movzwl %ax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<Hash_ID_valor>:
cvttsd2si (%rdi),%eax
cltq
imul   $0xffffffff80078071,%rax,%rcx
shr    $0x20,%rcx
add    %eax,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
shr    $0xf,%ecx
add    %edx,%ecx
imul   $0xfff1,%ecx,%ecx
sub    %ecx,%eax
ret

LLVM IR (-O0):
define zeroext i16 @Hash_ID_valor(double* %0) {
%2 = alloca double*
store double* %0, double** %2
%3 = load double*, double** %2
%4 = load double, double* %3
%5 = fptosi double %4 to i32
%6 = srem i32 %5, 65521
%7 = trunc i32 %6 to i16
ret i16 %7
}

LLVM IR (-O2):
define zeroext i16 @Hash_ID_valor(double* nocapture %0) {
%2 = load double, double* %0
%3 = fptosi double %2 to i32
%4 = srem i32 %3, 65521
%5 = trunc i32 %4 to i16
ret i16 %5
}
/* Type definitions */
typedef int /*<<< orphan*/ PKCS7_SIGNER_INFO;
typedef int /*<<< orphan*/ ASN1_VALUE;

/* Variables and functions */
int /*<<< orphan*/ ASN1_item_free(int /*<<< orphan*/ *, int /*<<< orphan*/ *);
int /*<<< orphan*/ PKCS7_SIGNER_INFO_it;
void PKCS7_SIGNER_INFO_free(PKCS7_SIGNER_INFO *a) {
  ASN1_item_free((ASN1_VALUE *)a, &PKCS7_SIGNER_INFO_it);
}


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

x86 assembly (clang, -O2):
<PKCS7_SIGNER_INFO_free>:
mov    0x2ed1(%rip),%rsi
jmp    1030 <ASN1_item_free@plt>

LLVM IR (-O0):
@PKCS7_SIGNER_INFO_it = global i32 0
define void @PKCS7_SIGNER_INFO_free(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call i32 @ASN1_item_free(i32* %3, i32* @PKCS7_SIGNER_INFO_it)
ret void
}

LLVM IR (-O2):
@PKCS7_SIGNER_INFO_it = global i32 0
define void @PKCS7_SIGNER_INFO_free(i32* %0) {
%2 = tail call i32 @ASN1_item_free(i32* %0, i32* @PKCS7_SIGNER_INFO_it)
ret void
}
/* Variables and functions */
int aim(char *);
int main(int argc, char **argv) { return aim("/dev/usb/hiddev0"); }


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)
lea    0xed3(%rip),%rdi
call   1030 <aim@plt>
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [17 x i8] c"/dev/usb/hiddev0\00"
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 = call i32 @aim(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
ret i32 %6
}

LLVM IR (-O2):
@.str = [17 x i8] c"/dev/usb/hiddev0\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @aim(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ closelog();
void log_syslog_close(void) { closelog(); }


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

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

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

LLVM IR (-O2):
define void @log_syslog_close() {
%1 = tail call i32 (...) @closelog()
ret void
}
/* Variables and functions */
int __builtin_mips_cabs_f_s(float, float);
int test0(float a, float b) { return __builtin_mips_cabs_f_s(a, b); }


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

x86 assembly (clang, -O2):
<test0>:
jmp    1030 <__builtin_mips_cabs_f_s@plt>

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

LLVM IR (-O2):
define i32 @test0(float %0, float %1) {
%3 = tail call i32 @__builtin_mips_cabs_f_s(float %0, float %1)
ret i32 %3
}
int test_imm_2Cint16_reg(short val) {
  return ((val) & (-0x2C << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_2Cint16_reg>:
push   %rbp
mov    %rsp,%rbp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
movswl -0x2(%rbp),%edx
and    $0xffffffd4,%edx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_2Cint16_reg>:
test   $0xffd4,%edi
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_imm_2Cint16_reg(i16 signext %0) {
%2 = alloca i16
store i16 %0, i16* %2
%3 = load i16, i16* %2
%4 = sext i16 %3 to i32
%5 = and i32 %4, -44
%6 = icmp ne i32 %5, 0
%7 = zext i1 %6 to i64
%8 = select i1 %6, i32 -20, i32 -40
ret i32 %8
}

LLVM IR (-O2):
define i32 @test_imm_2Cint16_reg(i16 signext %0) {
%2 = and i16 %0, -44
%3 = icmp eq i16 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
/* Variables and functions */
scalar_t__ declare_arrayN(int, int, int, int);
char **declare_char(int first, int second) {
  return (char **)declare_arrayN(2, sizeof(char), first, second);
}


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

x86 assembly (clang, -O2):
<declare_char>:
mov    %esi,%ecx
mov    %edi,%edx
mov    $0x2,%edi
mov    $0x1,%esi
jmp    1030 <declare_arrayN@plt>

LLVM IR (-O0):
define i8** @declare_char(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 i64 @declare_arrayN(i32 2, i32 1, i32 %5, i32 %6)
%8 = inttoptr i64 %7 to i8**
ret i8** %8
}

LLVM IR (-O2):
define i8** @declare_char(i32 %0, i32 %1) {
%3 = tail call i64 @declare_arrayN(i32 2, i32 1, i32 %0, i32 %1)
%4 = inttoptr i64 %3 to i8**
ret i8** %4
}
/* Variables and functions */
long long mm_round_down(long long);
long long mm_round_up(long long seq) { return mm_round_down(seq + (1 << 26)); }


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

x86 assembly (clang, -O2):
<mm_round_up>:
add    $0x4000000,%rdi
jmp    1030 <mm_round_down@plt>

LLVM IR (-O0):
define i64 @mm_round_up(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = add nsw i64 %3, 67108864
%5 = call i64 @mm_round_down(i64 %4)
ret i64 %5
}

LLVM IR (-O2):
define i64 @mm_round_up(i64 %0) {
%2 = add nsw i64 %0, 67108864
%3 = tail call i64 @mm_round_down(i64 %2)
ret i64 %3
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
int /*<<< orphan*/ memcpy(int /*<<< orphan*/ *, int /*<<< orphan*/ const *,
                          int);
int /*<<< orphan*/ memset(int /*<<< orphan*/ *, int /*<<< orphan*/, int);
__attribute__((always_)) void bigint_grow_raw(const uint32_t *source0,
                                              unsigned int source_size,
                                              uint32_t *dest0,
                                              unsigned int dest_size) {
  unsigned int pad_size = (dest_size - source_size);
  memcpy(dest0, source0, sizeof(bigint_t(source_size)));
  memset((dest0 + source_size), 0, sizeof(bigint_t(pad_size)));
}


x86 assembly (clang, -O0):
<bigint_grow_raw>:
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    -0x1c(%rbp),%eax
sub    -0xc(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    $0x4,%edx
call   1040 <memcpy@plt>
mov    -0x18(%rbp),%rdi
mov    -0xc(%rbp),%eax
shl    $0x2,%rax
add    %rax,%rdi
xor    %esi,%esi
mov    $0x4,%edx
call   1030 <memset@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bigint_grow_raw>:
push   %rbp
push   %rbx
push   %rax
mov    %rdx,%rbx
mov    %esi,%ebp
mov    %rdi,%rsi
mov    %rdx,%rdi
mov    $0x4,%edx
call   1040 <memcpy@plt>
mov    %ebp,%eax
lea    (%rbx,%rax,4),%rdi
xor    %esi,%esi
mov    $0x4,%edx
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <memset@plt>

LLVM IR (-O0):
define void @bigint_grow_raw(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** %5
store i32 %1, i32* %6
store i32* %2, i32** %7
store i32 %3, i32* %8
%10 = load i32, i32* %8
%11 = load i32, i32* %6
%12 = sub i32 %10, %11
store i32 %12, i32* %9
%13 = load i32*, i32** %7
%14 = load i32*, i32** %5
%15 = call i32 @memcpy(i32* %13, i32* %14, i32 4)
%16 = load i32*, i32** %7
%17 = load i32, i32* %6
%18 = zext i32 %17 to i64
%19 = getelementptr inbounds i32, i32* %16, i64 %18
%20 = call i32 @memset(i32* %19, i32 0, i32 4)
ret void
}

LLVM IR (-O2):
define void @bigint_grow_raw(i32* %0, i32 %1, i32* %2, i32 %3) {
%5 = tail call i32 @memcpy(i32* %2, i32* %0, i32 4)
%6 = zext i32 %1 to i64
%7 = getelementptr inbounds i32, i32* %2, i64 %6
%8 = tail call i32 @memset(i32* %7, i32 0, i32 4)
ret void
}
void mkPrintable(char *buf) {
  for (; *buf; buf++) {
    if (*buf <= ' ' || *buf >= 0x7f) {
      *buf = '@';
    }
  }
}


x86 assembly (clang, -O0):
<mkPrintable>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
cmpb   $0x0,(%rax)
je     1152 <mkPrintable+0x52>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
jle    1135 <mkPrintable+0x35>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x7f,%eax
jl     113c <mkPrintable+0x3c>
mov    -0x8(%rbp),%rax
movb   $0x40,(%rax)
jmp    1141 <mkPrintable+0x41>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    1108 <mkPrintable+0x8>
pop    %rbp
ret

x86 assembly (clang, -O2):
<mkPrintable>:
mov    (%rdi),%al
test   %al,%al
je     1127 <mkPrintable+0x27>
add    $0x1,%rdi
jmp    111b <mkPrintable+0x1b>
nopl   0x0(%rax)
movzbl (%rdi),%eax
add    $0x1,%rdi
test   %al,%al
je     1127 <mkPrintable+0x27>
add    $0x81,%al
cmp    $0xa1,%al
ja     1110 <mkPrintable+0x10>
movb   $0x40,-0x1(%rdi)
jmp    1110 <mkPrintable+0x10>
ret

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

LLVM IR (-O2):
define void @mkPrintable(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %14, label %4
4: ; preds = %1, %10
%5 = phi i8 [ %12, %10 ], [ %2, %1 ]
%6 = phi i8* [ %11, %10 ], [ %0, %1 ]
%7 = add i8 %5, -127
%8 = icmp ult i8 %7, -94
br i1 %8, label %9, label %10
9: ; preds = %4
store i8 64, i8* %6
br label %10
10: ; preds = %4, %9
%11 = getelementptr inbounds i8, i8* %6, i64 1
%12 = load i8, i8* %11
%13 = icmp eq i8 %12, 0
br i1 %13, label %14, label %4
14: ; preds = %10, %1
ret void
}
/* Type definitions */
typedef int uint8_t;
typedef int uint16_t;

/* Variables and functions */
uint8_t rdd08sdp_get_a(const uint16_t *p_rdd08, uint8_t n) {
  return p_rdd08[4 + n] & 0xff;
}


x86 assembly (clang, -O0):
<rdd08sdp_get_a>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    -0xc(%rbp),%ecx
add    $0x4,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
and    $0xff,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<rdd08sdp_get_a>:
movslq %esi,%rax
movzbl 0x10(%rdi,%rax,4),%eax
ret

LLVM IR (-O0):
define i32 @rdd08sdp_get_a(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 = add nsw i32 4, %6
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds i32, i32* %5, i64 %8
%10 = load i32, i32* %9
%11 = and i32 %10, 255
ret i32 %11
}

LLVM IR (-O2):
define i32 @rdd08sdp_get_a(i32* nocapture %0, i32 %1) {
%3 = add nsw i32 %1, 4
%4 = sext i32 %3 to i64
%5 = getelementptr inbounds i32, i32* %0, i64 %4
%6 = load i32, i32* %5
%7 = and i32 %6, 255
ret i32 %7
}
void MT_WrReg(unsigned long unit, unsigned long reg, unsigned long data) {
  (*((volatile unsigned long *)((unsigned long)unit | (unsigned long)reg))) =
      data;
}


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

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

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

LLVM IR (-O2):
define void @MT_WrReg(i64 %0, i64 %1, i64 %2) {
%4 = or i64 %1, %0
%5 = inttoptr i64 %4 to i64*
store volatile i64 %2, i64* %5
ret void
}
/* Variables and functions */
int mbin(int, int);
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ scanf(char *, int *, int *);
int main() {
  int m, n;
  scanf("%d%d", &m, &n);
  printf("%d", mbin(m, n));
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xec1(%rip),%rdi
lea    -0x4(%rbp),%rsi
lea    -0x8(%rbp),%rdx
call   1040 <scanf@plt>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1050 <mbin@plt>
mov    %eax,%esi
lea    0xea2(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xec8(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
call   1040 <scanf@plt>
mov    0x4(%rsp),%edi
mov    (%rsp),%esi
call   1050 <mbin@plt>
lea    0xeaa(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [5 x i8] c"%d%d\00"
@.str.1 = [3 x i8] c"%d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2)
%6 = load i32, i32* %1
%7 = load i32, i32* %2
%8 = call i32 @mbin(i32 %6, i32 %7)
%9 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %8)
ret i32 0
}
int test_imm_D7int32_mem(int *val) {
  return ((*val) & (0xD7 << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_D7int32_mem>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%edx
and    $0xd7,%edx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_D7int32_mem>:
testb  $0xd7,(%rdi)
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_imm_D7int32_mem(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = load i32, i32* %3
%5 = and i32 %4, 215
%6 = icmp ne i32 %5, 0
%7 = zext i1 %6 to i64
%8 = select i1 %6, i32 -20, i32 -40
ret i32 %8
}

LLVM IR (-O2):
define i32 @test_imm_D7int32_mem(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = and i32 %2, 215
%4 = icmp eq i32 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
double ts2jd(tsec)
double tsec;
{ return (2433282.5 + (tsec / 86400.0)); }


x86 assembly (clang, -O0):
<ts2jd>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  0xef2(%rip),%xmm0
divsd  %xmm0,%xmm1
movsd  0xede(%rip),%xmm0
addsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<ts2jd>:
divsd  0xef8(%rip),%xmm0
addsd  0xef8(%rip),%xmm0
ret

LLVM IR (-O0):
define double @ts2jd(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = fdiv double %3, 8.640000e+04
%5 = fadd double 0x4142908140000000, %4
ret double %5
}

LLVM IR (-O2):
define double @ts2jd(double %0) {
%2 = fdiv double %0, 8.640000e+04
%3 = fadd double %2, 0x4142908140000000
ret double %3
}
int security_task_getpgid(struct task_struct *p) { return 0; }


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

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

LLVM IR (-O0):
%struct.task_struct = type opaque
define i32 @security_task_getpgid(%struct.task_struct* %0) {
%2 = alloca %struct.task_struct*
store %struct.task_struct* %0, %struct.task_struct** %2
ret i32 0
}

LLVM IR (-O2):
%struct.task_struct = type opaque
define i32 @security_task_getpgid(%struct.task_struct* nocapture readnone %0) {
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ __m128i;

/* Variables and functions */
int /*<<< orphan*/ _mm_setzero_si128();
int /*<<< orphan*/ _mm_store_si128(int /*<<< orphan*/ *, int /*<<< orphan*/);
void chgemm_c_loc_clear_sse4_u8s8(void *c, size_t size) {
  int i;
  __m128i xmm0 = _mm_setzero_si128();
  for (i = 0; i < size; i += 16) {
    _mm_store_si128((__m128i *)(c + i), xmm0);
  }
}


x86 assembly (clang, -O0):
<chgemm_c_loc_clear_sse4_u8s8>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   1030 <_mm_setzero_si128@plt>
mov    %eax,-0x18(%rbp)
movl   $0x0,-0x14(%rbp)
movslq -0x14(%rbp),%rax
cmp    -0x10(%rbp),%rax
jae    1170 <chgemm_c_loc_clear_sse4_u8s8+0x50>
mov    -0x8(%rbp),%rdi
movslq -0x14(%rbp),%rax
add    %rax,%rdi
mov    -0x18(%rbp),%esi
call   1040 <_mm_store_si128@plt>
mov    -0x14(%rbp),%eax
add    $0x10,%eax
mov    %eax,-0x14(%rbp)
jmp    1141 <chgemm_c_loc_clear_sse4_u8s8+0x21>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<chgemm_c_loc_clear_sse4_u8s8>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r15
mov    %rdi,%r14
xor    %eax,%eax
call   1030 <_mm_setzero_si128@plt>
test   %r15,%r15
je     1154 <chgemm_c_loc_clear_sse4_u8s8+0x34>
mov    %eax,%ebp
xor    %ebx,%ebx
nopl   (%rax)
lea    (%r14,%rbx,1),%rdi
mov    %ebp,%esi
call   1040 <_mm_store_si128@plt>
add    $0x10,%rbx
cmp    %r15,%rbx
jb     1140 <chgemm_c_loc_clear_sse4_u8s8+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @chgemm_c_loc_clear_sse4_u8s8(i8* %0, i64 %1) {
%3 = alloca i8*
%4 = alloca i64
%5 = alloca i32
%6 = alloca i32
store i8* %0, i8** %3
store i64 %1, i64* %4
%7 = call i32 (...) @_mm_setzero_si128()
store i32 %7, i32* %6
store i32 0, i32* %5
br label %8
8: ; preds = %21, %2
%9 = load i32, i32* %5
%10 = sext i32 %9 to i64
%11 = load i64, i64* %4
%12 = icmp ult i64 %10, %11
br i1 %12, label %13, label %24
13: ; preds = %8
%14 = load i8*, i8** %3
%15 = load i32, i32* %5
%16 = sext i32 %15 to i64
%17 = getelementptr i8, i8* %14, i64 %16
%18 = bitcast i8* %17 to i32*
%19 = load i32, i32* %6
%20 = call i32 @_mm_store_si128(i32* %18, i32 %19)
br label %21
21: ; preds = %13
%22 = load i32, i32* %5
%23 = add nsw i32 %22, 16
store i32 %23, i32* %5
br label %8
24: ; preds = %8
ret void
}

LLVM IR (-O2):
define void @chgemm_c_loc_clear_sse4_u8s8(i8* %0, i64 %1) {
%3 = tail call i32 (...) @_mm_setzero_si128()
%4 = icmp eq i64 %1, 0
br i1 %4, label %12, label %5
5: ; preds = %2, %5
%6 = phi i64 [ %10, %5 ], [ 0, %2 ]
%7 = getelementptr i8, i8* %0, i64 %6
%8 = bitcast i8* %7 to i32*
%9 = tail call i32 @_mm_store_si128(i32* %8, i32 %3)
%10 = add nuw i64 %6, 16
%11 = icmp ult i64 %10, %1
br i1 %11, label %5, label %12
12: ; preds = %5, %2
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void func_sigint(int signo) {
  printf("INFO: Catching SIGINT\n");
  return;
}


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

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

LLVM IR (-O0):
@.str = [23 x i8] c"INFO: Catching SIGINT\0A\00"
define void @func_sigint(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [22 x i8] c"INFO: Catching SIGINT\00"
define void @func_sigint(i32 %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int alarm(int);
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ sleep(int);
int main(int argc, char *argv[]) {
  int ret = 0;
  ret = alarm(5);
  printf("the time left %d\n", ret);
  sleep(2);
  ret = alarm(1);
  printf("the time left %d\n", ret);
  while (1)
    ;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    $0x5,%edi
call   1040 <alarm@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%esi
lea    0xe9c(%rip),%rdi
call   1030 <printf@plt>
mov    $0x2,%edi
call   1050 <sleep@plt>
mov    $0x1,%edi
call   1040 <alarm@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%esi
lea    0xe76(%rip),%rdi
call   1030 <printf@plt>
jmp    118f <main+0x5f>

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0x5,%edi
call   1040 <alarm@plt>
lea    0xebe(%rip),%rbx
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x2,%edi
call   1050 <sleep@plt>
mov    $0x1,%edi
call   1040 <alarm@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
nopw   0x0(%rax,%rax,1)
jmp    1170 <main+0x40>

LLVM IR (-O0):
@.str = [18 x i8] c"the time left %d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
%7 = call i32 @alarm(i32 5)
store i32 %7, i32* %6
%8 = load i32, i32* %6
%9 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %8)
%10 = call i32 @sleep(i32 2)
%11 = call i32 @alarm(i32 1)
store i32 %11, i32* %6
%12 = load i32, i32* %6
%13 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %12)
br label %14
14: ; preds = %2, %14
br label %14
}

LLVM IR (-O2):
@.str = [18 x i8] c"the time left %d\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @alarm(i32 5)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = tail call i32 @sleep(i32 2)
%6 = tail call i32 @alarm(i32 1)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %6)
br label %8
8: ; preds = %8, %2
br label %8
}
/* Variables and functions */
scalar_t__ Com_CharIsOneOfCharset(char, char *);
char *Com_SkipCharset(char *s, char *sep) {
  char *p = s;
  while (p) {
    if (Com_CharIsOneOfCharset(*p, sep)) {
      p++;
    } else {
      break;
    }
  }
  return p;
}


x86 assembly (clang, -O0):
<Com_SkipCharset>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     116a <Com_SkipCharset+0x5a>
mov    -0x18(%rbp),%rax
mov    (%rax),%al
mov    -0x10(%rbp),%rsi
movsbl %al,%edi
call   1030 <Com_CharIsOneOfCharset@plt>
cmp    $0x0,%rax
je     1160 <Com_SkipCharset+0x50>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1165 <Com_SkipCharset+0x55>
jmp    116a <Com_SkipCharset+0x5a>
jmp    1128 <Com_SkipCharset+0x18>
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Com_SkipCharset>:
push   %r14
push   %rbx
push   %rax
test   %rdi,%rdi
je     1147 <Com_SkipCharset+0x37>
mov    %rsi,%r14
mov    %rdi,%rbx
add    $0xffffffffffffffff,%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsbl 0x1(%rbx),%edi
add    $0x1,%rbx
mov    %r14,%rsi
call   1030 <Com_CharIsOneOfCharset@plt>
test   %rax,%rax
jne    1130 <Com_SkipCharset+0x20>
jmp    1149 <Com_SkipCharset+0x39>
xor    %ebx,%ebx
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define i8* @Com_SkipCharset(i8* %0, i8* %1) {
%3 = icmp eq i8* %0, null
br i1 %3, label %10, label %4
4: ; preds = %2, %4
%5 = phi i8* [ %9, %4 ], [ %0, %2 ]
%6 = load i8, i8* %5
%7 = tail call i64 @Com_CharIsOneOfCharset(i8 signext %6, i8* %1)
%8 = icmp eq i64 %7, 0
%9 = getelementptr inbounds i8, i8* %5, i64 1
br i1 %8, label %10, label %4
10: ; preds = %4, %2
%11 = phi i8* [ null, %2 ], [ %5, %4 ]
ret i8* %11
}
void ARGBExtractAlphaRow_Any_NEON() {}


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

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

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

LLVM IR (-O2):
define void @ARGBExtractAlphaRow_Any_NEON() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ print_version();
int /*<<< orphan*/ printf(char *);
void print_help() {
  print_version();
  printf("\n"
         "Usage: cesar <fasta file>\n"
         "             -c/--clade <human|mouse>\n"
         "             -m/--matrix <matrix file>\n"
         "             -p/--profiles <acc profile> <do profile>\n"
         "             -i/--split_codon_emissions <acc split codon emissions> "
         "<do split codon emissions>\n"
         "             -f/--firstexon\n"
         "             -l/--lastexon\n"
         "             -x/--max-memory\n"
         "             -v/--verbosity <0 .. 2>\n"
         "             -V/--version\n"
         "             -s/--set name1=value1 .. nameN=valueN\n"
         "             -S/--sanityChecks  (error-exit if sanity checks fail)\n"
         "             -h/--help\n");
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <print_version@plt>
lea    0xece(%rip),%rdi
call   1040 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_help>:
push   %rax
xor    %eax,%eax
call   1040 <print_version@plt>
lea    0xed1(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [542 x i8] c"\0AUsage: cesar <fasta file>\0A -c/--clade <human|mouse>\0A -m/--matrix <matrix file>\0A -p/--profiles <acc profile> <do profile>\0A -i/--split_codon_emissions <acc split codon emissions> <do split codon emissions>\0A -f/--firstexon\0A -l/--lastexon\0A -x/--max-memory\0A -v/--verbosity <0 .. 2>\0A -V/--version\0A -s/--set name1=value1 .. nameN=valueN\0A -S/--sanityChecks (error-exit if sanity checks fail)\0A -h/--help\0A\00"
define void @print_help() {
%1 = call i32 (...) @print_version()
%2 = call i32 @printf(i8* getelementptr inbounds ([542 x i8], [542 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [541 x i8] c"\0AUsage: cesar <fasta file>\0A -c/--clade <human|mouse>\0A -m/--matrix <matrix file>\0A -p/--profiles <acc profile> <do profile>\0A -i/--split_codon_emissions <acc split codon emissions> <do split codon emissions>\0A -f/--firstexon\0A -l/--lastexon\0A -x/--max-memory\0A -v/--verbosity <0 .. 2>\0A -V/--version\0A -s/--set name1=value1 .. nameN=valueN\0A -S/--sanityChecks (error-exit if sanity checks fail)\0A -h/--help\00"
define void @print_help() {
%1 = tail call i32 (...) @print_version()
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([541 x i8], [541 x i8]* @str, i64 0, i64 0))
ret void
}
int write_UInt8Number(unsigned int d, char *p) {
  if (d > 255)
    return 1;
  ((unsigned char *)p)[0] = (unsigned char)d;
  return 0;
}


x86 assembly (clang, -O0):
<write_UInt8Number>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0xff,-0x8(%rbp)
jbe    1124 <write_UInt8Number+0x24>
movl   $0x1,-0x4(%rbp)
jmp    1136 <write_UInt8Number+0x36>
mov    -0x8(%rbp),%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,(%rax)
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<write_UInt8Number>:
mov    $0x1,%eax
cmp    $0xff,%edi
ja     1112 <write_UInt8Number+0x12>
mov    %dil,(%rsi)
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i32 @write_UInt8Number(i32 %0, i8* nocapture writeonly %1) {
%3 = icmp ugt i32 %0, 255
br i1 %3, label %6, label %4
4: ; preds = %2
%5 = trunc i32 %0 to i8
store i8 %5, i8* %1
br label %6
6: ; preds = %2, %4
%7 = phi i32 [ 0, %4 ], [ 1, %2 ]
ret i32 %7
}
char *ck_errstr() { return (""); }


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

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

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
define i8* @ck_errstr() {
ret i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
define i8* @ck_errstr() {
ret i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0)
}
char *get_arch(void) {
  return "x64/AMD64";
  return "unknown";
}


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

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

LLVM IR (-O0):
@.str = [10 x i8] c"x64/AMD64\00"
define i8* @get_arch() {
ret i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [10 x i8] c"x64/AMD64\00"
define i8* @get_arch() {
ret i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0)
}
/* Variables and functions */
int /*<<< orphan*/ EXIT_SUCCESS;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ generate_tables();
int /*<<< orphan*/ print_tables();
int main(void) {
  generate_tables();
  print_tables();
  exit(EXIT_SUCCESS);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <generate_tables@plt>
mov    $0x0,%al
call   1030 <print_tables@plt>
mov    0x2e8c(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <generate_tables@plt>
xor    %eax,%eax
call   1030 <print_tables@plt>
mov    0x2e9a(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @generate_tables()
%3 = call i32 (...) @print_tables()
%4 = load i32, i32* @EXIT_SUCCESS
%5 = call i32 @exit(i32 %4)
unreachable
}

LLVM IR (-O2):
@EXIT_SUCCESS = global i32 0
define i32 @main() {
%1 = tail call i32 (...) @generate_tables()
%2 = tail call i32 (...) @print_tables()
%3 = load i32, i32* @EXIT_SUCCESS
%4 = tail call i32 @exit(i32 %3)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ fatserror(char *);
volatile void editEndsPrematurely() {
  fatserror("edit script ends prematurely");
}


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

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

LLVM IR (-O0):
@.str = [29 x i8] c"edit script ends prematurely\00"
define void @editEndsPrematurely() {
%1 = call i32 @fatserror(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [29 x i8] c"edit script ends prematurely\00"
define void @editEndsPrematurely() {
%1 = tail call i32 @fatserror(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main() {
  int x = 1;
  if (x == 1) {
    printf("x is equal to one.\n");
  } else {
    printf("x is not equal to one.\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
cmpl   $0x1,-0x8(%rbp)
jne    1141 <main+0x31>
lea    0xec9(%rip),%rdi
call   1030 <printf@plt>
jmp    114d <main+0x3d>
lea    0xecc(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [20 x i8] c"x is equal to one.\0A\00"
@.str.1 = [24 x i8] c"x is not equal to one.\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 1, i32* %2
%3 = load i32, i32* %2
%4 = icmp eq i32 %3, 1
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
br label %9
7: ; preds = %0
%8 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0))
br label %9
9: ; preds = %7, %5
ret i32 0
}

LLVM IR (-O2):
@str = [19 x i8] c"x is equal to one.\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ print(char *);
void idt_int8(void) { print("!! Double Fault "); }


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

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

LLVM IR (-O0):
@.str = [17 x i8] c"!! Double Fault \00"
define void @idt_int8() {
%1 = call i32 @print(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [17 x i8] c"!! Double Fault \00"
define void @idt_int8() {
%1 = tail call i32 @print(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
ret void
}