xunge/DecIR huggingface dataset:
float clampPower(float power) {
  if (power > 127) {
    return 127;
  } else if (power < -127) {
    return -127;
  }
  return power;
}


x86 assembly (clang, -O0):
<clampPower>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
movss  0xeea(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    1131 <clampPower+0x31>
movss  0xed9(%rip),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1164 <clampPower+0x64>
movss  0xecb(%rip),%xmm0
ucomiss -0x8(%rbp),%xmm0
jbe    1155 <clampPower+0x55>
movss  0xeb9(%rip),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1164 <clampPower+0x64>
jmp    115a <clampPower+0x5a>
movss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<clampPower>:
movss  0xef8(%rip),%xmm2
maxss  %xmm0,%xmm2
movss  0xef0(%rip),%xmm3
movaps %xmm3,%xmm1
cmpltss %xmm0,%xmm1
movaps %xmm1,%xmm0
andnps %xmm2,%xmm0
andps  %xmm3,%xmm1
orps   %xmm0,%xmm1
movaps %xmm1,%xmm0
ret

LLVM IR (-O0):
define float @clampPower(float %0) {
%2 = alloca float
%3 = alloca float
store float %0, float* %3
%4 = load float, float* %3
%5 = fcmp ogt float %4, 1.270000e+02
br i1 %5, label %6, label %7
6: ; preds = %1
store float 1.270000e+02, float* %2
br label %14
7: ; preds = %1
%8 = load float, float* %3
%9 = fcmp olt float %8, -1.270000e+02
br i1 %9, label %10, label %11
10: ; preds = %7
store float -1.270000e+02, float* %2
br label %14
11: ; preds = %7
br label %12
12: ; preds = %11
%13 = load float, float* %3
store float %13, float* %2
br label %14
14: ; preds = %12, %10, %6
%15 = load float, float* %2
ret float %15
}

LLVM IR (-O2):
define float @clampPower(float %0) {
%2 = fcmp ogt float %0, 1.270000e+02
%3 = fcmp olt float %0, -1.270000e+02
%4 = select i1 %3, float -1.270000e+02, float %0
%5 = select i1 %2, float 1.270000e+02, float %4
ret float %5
}
__attribute__((always_)) const int xispinff(float x) {
  return x == __builtin_inff();
}


x86 assembly (clang, -O0):
<xispinff>:
push   %rbp
mov    %rsp,%rbp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
movss  0xeea(%rip),%xmm1
ucomiss %xmm1,%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<xispinff>:
xor    %eax,%eax
ucomiss 0xef7(%rip),%xmm0
setae  %al
ret

LLVM IR (-O0):
define i32 @xispinff(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = fcmp oeq float %3, 0x7FF0000000000000
%5 = zext i1 %4 to i32
ret i32 %5
}

LLVM IR (-O2):
define i32 @xispinff(float %0) {
%2 = fcmp oeq float %0, 0x7FF0000000000000
%3 = zext i1 %2 to i32
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ sleep(int);
int main(void) {
  sleep(1000);
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x3e8,%edi
call   1030 <sleep@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @sleep(i32 1000)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @sleep(i32 1000)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ console_init();
int /*<<< orphan*/ console_writestr(char *);
void dpx_init() {
  console_init();
  console_writestr("Booting DPX...\n");
  console_writestr("Do pre-init\n");
}


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

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

LLVM IR (-O0):
@.str = [16 x i8] c"Booting DPX...\0A\00"
@.str.1 = [13 x i8] c"Do pre-init\0A\00"
define void @dpx_init() {
%1 = call i32 (...) @console_init()
%2 = call i32 @console_writestr(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @console_writestr(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [16 x i8] c"Booting DPX...\0A\00"
@.str.1 = [13 x i8] c"Do pre-init\0A\00"
define void @dpx_init() {
%1 = tail call i32 (...) @console_init()
%2 = tail call i32 @console_writestr(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @console_writestr(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int EXIT_SUCCESS;
int main(int argc, char **argv) {
  int i, contador;
  int premio[10000];
  for (i = 0; i < 1000; i++) {
    premio[i] = 0;
  }
  premio[2254] = 4000000;
  premio[2569] = 45856;
  premio[1586] = 5000;
  return (EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x9be0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x3e8,-0x14(%rbp)
jge    114a <main+0x4a>
movslq -0x14(%rbp),%rax
movl   $0x0,-0x9c60(%rbp,%rax,4)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1120 <main+0x20>
movl   $0x3d0900,-0x7928(%rbp)
movl   $0xb320,-0x743c(%rbp)
movl   $0x1388,-0x8398(%rbp)
mov    0x2e71(%rip),%rax
mov    (%rax),%eax
add    $0x9be0,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca [10000 x i32]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
br label %9
9: ; preds = %16, %2
%10 = load i32, i32* %6
%11 = icmp slt i32 %10, 1000
br i1 %11, label %12, label %19
12: ; preds = %9
%13 = load i32, i32* %6
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds [10000 x i32], [10000 x i32]* %8, i64 0, i64 %14
store i32 0, i32* %15
br label %16
16: ; preds = %12
%17 = load i32, i32* %6
%18 = add nsw i32 %17, 1
store i32 %18, i32* %6
br label %9
19: ; preds = %9
%20 = getelementptr inbounds [10000 x i32], [10000 x i32]* %8, i64 0, i64 2254
store i32 4000000, i32* %20
%21 = getelementptr inbounds [10000 x i32], [10000 x i32]* %8, i64 0, i64 2569
store i32 45856, i32* %21
%22 = getelementptr inbounds [10000 x i32], [10000 x i32]* %8, i64 0, i64 1586
store i32 5000, i32* %22
%23 = load i32, i32* @EXIT_SUCCESS
ret i32 %23
}

LLVM IR (-O2):
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = load i32, i32* @EXIT_SUCCESS
ret i32 %3
}
void INT_Excep_PERIA_INTA228(void) {}


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

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

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

LLVM IR (-O2):
define void @INT_Excep_PERIA_INTA228() {
ret void
}
/* Type definitions */
struct timeval {
  int tv_sec;
  int tv_usec;
};

/* Variables and functions */
int /*<<< orphan*/ select(int /*<<< orphan*/, int /*<<< orphan*/ *,
                          int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                          struct timeval *);
void spx_periodic_sleep(int sec, int usec) {
  struct timeval timespan;
  timespan.tv_sec = sec;
  timespan.tv_usec = usec;
  select(0, NULL, NULL, NULL, &timespan);
  return;
}


x86 assembly (clang, -O0):
<spx_periodic_sleep>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
xor    %edi,%edi
xor    %eax,%eax
mov    %eax,%ecx
lea    -0x10(%rbp),%r8
mov    %rcx,%rsi
mov    %rcx,%rdx
call   1030 <select@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<spx_periodic_sleep>:
push   %rax
mov    %edi,(%rsp)
mov    %esi,0x4(%rsp)
mov    %rsp,%r8
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1030 <select@plt>
pop    %rax
ret

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

LLVM IR (-O2):
%struct.timeval = type { i32, i32 }
define void @spx_periodic_sleep(i32 %0, i32 %1) {
%3 = alloca %struct.timeval
%4 = bitcast %struct.timeval* %3 to i8*
%5 = getelementptr inbounds %struct.timeval, %struct.timeval* %3, i64 0, i32 0
store i32 %0, i32* %5
%6 = getelementptr inbounds %struct.timeval, %struct.timeval* %3, i64 0, i32 1
store i32 %1, i32* %6
%7 = call i32 @select(i32 0, i32* null, i32* null, i32* null, %struct.timeval* %3)
ret void
}
/* Type definitions */
struct RawData {
  int dummy;
};
struct RadarParm {
  int dummy;
};
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int RawWrite(int /*<<< orphan*/, struct RadarParm *, struct RawData *);
int /*<<< orphan*/ fileno(int /*<<< orphan*/ *);
int RawFwrite(FILE *fp, struct RadarParm *prm, struct RawData *raw) {
  return RawWrite(fileno(fp), prm, raw);
}


x86 assembly (clang, -O0):
<RawFwrite>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <fileno@plt>
mov    %eax,%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1040 <RawWrite@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<RawFwrite>:
push   %r14
push   %rbx
push   %rax
mov    %rdx,%r14
mov    %rsi,%rbx
call   1030 <fileno@plt>
mov    %eax,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <RawWrite@plt>

LLVM IR (-O0):
%struct.RadarParm = type { i32 }
%struct.RawData = type { i32 }
define i32 @RawFwrite(i32* %0, %struct.RadarParm* %1, %struct.RawData* %2) {
%4 = alloca i32*
%5 = alloca %struct.RadarParm*
%6 = alloca %struct.RawData*
store i32* %0, i32** %4
store %struct.RadarParm* %1, %struct.RadarParm** %5
store %struct.RawData* %2, %struct.RawData** %6
%7 = load i32*, i32** %4
%8 = call i32 @fileno(i32* %7)
%9 = load %struct.RadarParm*, %struct.RadarParm** %5
%10 = load %struct.RawData*, %struct.RawData** %6
%11 = call i32 @RawWrite(i32 %8, %struct.RadarParm* %9, %struct.RawData* %10)
ret i32 %11
}

LLVM IR (-O2):
%struct.RadarParm = type { i32 }
%struct.RawData = type { i32 }
define i32 @RawFwrite(i32* nocapture %0, %struct.RadarParm* %1, %struct.RawData* %2) {
%4 = tail call i32 @fileno(i32* %0)
%5 = tail call i32 @RawWrite(i32 %4, %struct.RadarParm* %1, %struct.RawData* %2)
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ puts(char *);
void buzz() { puts("buzz"); }


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

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

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

LLVM IR (-O2):
@.str = [5 x i8] c"buzz\00"
define void @buzz() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
void *malloc(size_t);
int /*<<< orphan*/ perror(char *);
void *x_malloc(size_t size) {
  void *p = malloc(size);
  if (p == NULL) {
    perror("failed to allocate memory");
    exit(EXIT_FAILURE);
  }
  return p;
}


x86 assembly (clang, -O0):
<x_malloc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <malloc@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    116e <x_malloc+0x3e>
lea    0xea5(%rip),%rdi
call   1040 <perror@plt>
mov    0x2e79(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<x_malloc>:
push   %rax
call   1030 <malloc@plt>
test   %rax,%rax
je     113d <x_malloc+0xd>
pop    %rcx
ret
lea    0xebc(%rip),%rdi
call   1040 <perror@plt>
mov    0x2e90(%rip),%rax
mov    (%rax),%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [26 x i8] c"failed to allocate memory\00"
@EXIT_FAILURE = global i32 0
define i8* @x_malloc(i64 %0) {
%2 = alloca i64
%3 = alloca i8*
store i64 %0, i64* %2
%4 = load i64, i64* %2
%5 = call i8* @malloc(i64 %4)
store i8* %5, i8** %3
%6 = load i8*, i8** %3
%7 = icmp eq i8* %6, null
br i1 %7, label %8, label %12
8: ; preds = %1
%9 = call i32 @perror(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%10 = load i32, i32* @EXIT_FAILURE
%11 = call i32 @exit(i32 %10)
unreachable
12: ; preds = %1
%13 = load i8*, i8** %3
ret i8* %13
}

LLVM IR (-O2):
@.str = [26 x i8] c"failed to allocate memory\00"
@EXIT_FAILURE = global i32 0
define noalias i8* @x_malloc(i64 %0) {
%2 = tail call i8* @malloc(i64 %0)
%3 = icmp eq i8* %2, null
br i1 %3, label %4, label %8
4: ; preds = %1
%5 = tail call i32 @perror(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%6 = load i32, i32* @EXIT_FAILURE
%7 = tail call i32 @exit(i32 %6)
unreachable
8: ; preds = %1
ret i8* %2
}
int test_imm_8Dint16_mem(short *val) {
  return ((*val) & (0x8D << 0)) ? -20 : -40;
}


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

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

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

LLVM IR (-O2):
define i32 @test_imm_8Dint16_mem(i16* nocapture %0) {
%2 = load i16, i16* %0
%3 = and i16 %2, 141
%4 = icmp eq i16 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
/* Variables and functions */
uintptr_t ALIGN_UP(uintptr_t, int /*<<< orphan*/);
int /*<<< orphan*/ EXEC_PAGESIZE;
uintptr_t page_above(void *addr) {
  return ALIGN_UP((uintptr_t)addr, EXEC_PAGESIZE);
}


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

x86 assembly (clang, -O2):
<page_above>:
mov    0x2ed1(%rip),%rax
mov    (%rax),%esi
jmp    1030 <ALIGN_UP@plt>

LLVM IR (-O0):
@EXEC_PAGESIZE = global i32 0
define i64 @page_above(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = ptrtoint i8* %3 to i64
%5 = load i32, i32* @EXEC_PAGESIZE
%6 = call i64 @ALIGN_UP(i64 %4, i32 %5)
ret i64 %6
}

LLVM IR (-O2):
@EXEC_PAGESIZE = global i32 0
define i64 @page_above(i8* %0) {
%2 = ptrtoint i8* %0 to i64
%3 = load i32, i32* @EXEC_PAGESIZE
%4 = tail call i64 @ALIGN_UP(i64 %2, i32 %3)
ret i64 %4
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char *, int);
int strlen(char *);
void ldl_displaytextfield(char *defaultdomainp) {
  if (strlen(defaultdomainp) > 0) {
    printf(
        "<input type=\"text\" name=\"logindomain\" value=\"%s\" size=\"%d\">",
        defaultdomainp, strlen(defaultdomainp));
  } else {
  }
}


x86 assembly (clang, -O0):
<ldl_displaytextfield>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
cmp    $0x0,%eax
jle    1166 <ldl_displaytextfield+0x46>
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x10(%rbp),%rsi
mov    %eax,%edx
lea    0xea4(%rip),%rdi
call   1040 <printf@plt>
jmp    116b <ldl_displaytextfield+0x4b>
jmp    116b <ldl_displaytextfield+0x4b>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ldl_displaytextfield>:
push   %rbx
mov    %rdi,%rbx
call   1030 <strlen@plt>
test   %eax,%eax
jle    1147 <ldl_displaytextfield+0x27>
mov    %rbx,%rdi
call   1030 <strlen@plt>
lea    0xec4(%rip),%rdi
mov    %rbx,%rsi
mov    %eax,%edx
pop    %rbx
jmp    1040 <printf@plt>
pop    %rbx
ret

LLVM IR (-O0):
@.str = [60 x i8] c"<input type=\22text\22 name=\22logindomain\22 value=\22%s\22 size=\22%d\22>\00"
define void @ldl_displaytextfield(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @strlen(i8* %3)
%5 = icmp sgt i32 %4, 0
br i1 %5, label %6, label %11
6: ; preds = %1
%7 = load i8*, i8** %2
%8 = load i8*, i8** %2
%9 = call i32 @strlen(i8* %8)
%10 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str, i64 0, i64 0), i8* %7, i32 %9)
br label %12
11: ; preds = %1
br label %12
12: ; preds = %11, %6
ret void
}

LLVM IR (-O2):
@.str = [60 x i8] c"<input type=\22text\22 name=\22logindomain\22 value=\22%s\22 size=\22%d\22>\00"
define void @ldl_displaytextfield(i8* %0) {
%2 = tail call i32 @strlen(i8* %0)
%3 = icmp sgt i32 %2, 0
br i1 %3, label %4, label %7
4: ; preds = %1
%5 = tail call i32 @strlen(i8* %0)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str, i64 0, i64 0), i8* %0, i32 %5)
br label %7
7: ; preds = %1, %4
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int qualityPoints(int);
int /*<<< orphan*/ scanf(char *, int *);
void main(void) {
  int points;
  scanf("%d", &points);
  printf("%d\n", qualityPoints(points));
}


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

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

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

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


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

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

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

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


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

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

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

LLVM IR (-O2):
define void @io_init() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void pair_stuff() {
  printf("Placeholder for a strange file in subdirectory\n");
}


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

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

LLVM IR (-O0):
@.str = [48 x i8] c"Placeholder for a strange file in subdirectory\0A\00"
define void @pair_stuff() {
%1 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [47 x i8] c"Placeholder for a strange file in subdirectory\00"
define void @pair_stuff() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int _spawnvp(int, char const *, char const *const *);
int spawnvp(int pmode, const char *path, const char *const argv[]) {
  return _spawnvp(pmode, path, argv);
}


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

x86 assembly (clang, -O2):
<spawnvp>:
jmp    1030 <_spawnvp@plt>

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

LLVM IR (-O2):
define i32 @spawnvp(i32 %0, i8* %1, i8** %2) {
%4 = tail call i32 @_spawnvp(i32 %0, i8* %1, i8** %2)
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ print_hx4(unsigned char);
void print_hx8(unsigned char u) {
  print_hx4(u >> 4);
  print_hx4(u);
}


x86 assembly (clang, -O0):
<print_hx8>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movzbl -0x1(%rbp),%eax
sar    $0x4,%eax
movzbl %al,%edi
call   1030 <print_hx4@plt>
movzbl -0x1(%rbp),%edi
call   1030 <print_hx4@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_hx8>:
push   %rbx
mov    %edi,%ebx
mov    %ebx,%eax
shr    $0x4,%al
movzbl %al,%edi
call   1030 <print_hx4@plt>
mov    %ebx,%edi
pop    %rbx
jmp    1030 <print_hx4@plt>

LLVM IR (-O0):
define void @print_hx8(i8 zeroext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = zext i8 %3 to i32
%5 = ashr i32 %4, 4
%6 = trunc i32 %5 to i8
%7 = call i32 @print_hx4(i8 zeroext %6)
%8 = load i8, i8* %2
%9 = call i32 @print_hx4(i8 zeroext %8)
ret void
}

LLVM IR (-O2):
define void @print_hx8(i8 zeroext %0) {
%2 = lshr i8 %0, 4
%3 = tail call i32 @print_hx4(i8 zeroext %2)
%4 = tail call i32 @print_hx4(i8 zeroext %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void thankYou(void) { printf("-----Thank you-----"); }


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

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

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

LLVM IR (-O2):
@.str = [20 x i8] c"-----Thank you-----\00"
define void @thankYou() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
ret void
}
int isintchar(const char c) {
  switch (c) {
  case '0':
  case '1':
  case '2':
  case '3':
  case '4':
  case '5':
  case '6':
  case '7':
  case '8':
  case '9':
  case '+':
  case '-':
    return 0;
  }
  return -1;
}


x86 assembly (clang, -O0):
<isintchar>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
mov    %eax,-0xc(%rbp)
sub    $0x2b,%eax
je     1144 <isintchar+0x44>
jmp    111f <isintchar+0x1f>
mov    -0xc(%rbp),%eax
sub    $0x2d,%eax
je     1144 <isintchar+0x44>
jmp    1130 <isintchar+0x30>
mov    -0xc(%rbp),%eax
add    $0xffffffd0,%eax
sub    $0x9,%eax
ja     1150 <isintchar+0x50>
jmp    1144 <isintchar+0x44>
movl   $0x0,-0x4(%rbp)
jmp    1157 <isintchar+0x57>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<isintchar>:
add    $0xffffffd5,%edi
mov    $0xffffffff,%eax
cmp    $0xe,%edi
ja     111a <isintchar+0x1a>
movslq %edi,%rax
lea    0xee9(%rip),%rcx
mov    (%rcx,%rax,4),%eax
ret

LLVM IR (-O0):
define i32 @isintchar(i8 signext %0) {
%2 = alloca i32
%3 = alloca i8
store i8 %0, i8* %3
%4 = load i8, i8* %3
%5 = sext i8 %4 to i32
switch i32 %5, label %7 [
i32 48, label %6
i32 49, label %6
i32 50, label %6
i32 51, label %6
i32 52, label %6
i32 53, label %6
i32 54, label %6
i32 55, label %6
i32 56, label %6
i32 57, label %6
i32 43, label %6
i32 45, label %6
]
6: ; preds = %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1
store i32 0, i32* %2
br label %8
7: ; preds = %1
store i32 -1, i32* %2
br label %8
8: ; preds = %7, %6
%9 = load i32, i32* %2
ret i32 %9
}

LLVM IR (-O2):
@switch.table.isintchar = [15 x i32] [i32 0, i32 -1, i32 0, i32 -1, i32 -1, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 0]
define i32 @isintchar(i8 signext %0) {
%2 = sext i8 %0 to i32
%3 = add nsw i32 %2, -43
%4 = icmp ult i32 %3, 15
br i1 %4, label %5, label %9
5: ; preds = %1
%6 = sext i32 %3 to i64
%7 = getelementptr inbounds [15 x i32], [15 x i32]* @switch.table.isintchar, i64 0, i64 %6
%8 = load i32, i32* %7
br label %9
9: ; preds = %1, %5
%10 = phi i32 [ %8, %5 ], [ -1, %1 ]
ret i32 %10
}
int isatty(int fd) { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @isatty(i32 %0) {
ret i32 0
}
void PWMGenFaultTriggerSet(unsigned long ulBase, unsigned long ulGen,
                           unsigned long ulGroup,
                           unsigned long ulFaultTriggers) {
  ;
  ;
  ;
  ;

  ;
  (*((volatile unsigned long *)(((ulBase) + (ulGen)) + 0x00000034))) =
      ulFaultTriggers;
}


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

x86 assembly (clang, -O2):
<PWMGenFaultTriggerSet>:
mov    %rcx,0x34(%rdi,%rsi,1)
ret

LLVM IR (-O0):
define void @PWMGenFaultTriggerSet(i64 %0, i64 %1, i64 %2, i64 %3) {
%5 = alloca i64
%6 = alloca i64
%7 = alloca i64
%8 = alloca i64
store i64 %0, i64* %5
store i64 %1, i64* %6
store i64 %2, i64* %7
store i64 %3, i64* %8
%9 = load i64, i64* %8
%10 = load i64, i64* %5
%11 = load i64, i64* %6
%12 = add i64 %10, %11
%13 = add i64 %12, 52
%14 = inttoptr i64 %13 to i64*
store volatile i64 %9, i64* %14
ret void
}

LLVM IR (-O2):
define void @PWMGenFaultTriggerSet(i64 %0, i64 %1, i64 %2, i64 %3) {
%5 = add i64 %0, 52
%6 = add i64 %5, %1
%7 = inttoptr i64 %6 to i64*
store volatile i64 %3, i64* %7
ret void
}
/* Variables and functions */
int /*<<< orphan*/ signal(int, void (*)(int));
void os_non_restarting_signal(int sig, void (*handler)(int)) {
  signal(sig, handler);
}


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

x86 assembly (clang, -O2):
<os_non_restarting_signal>:
jmp    1030 <signal@plt>

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

LLVM IR (-O2):
define void @os_non_restarting_signal(i32 %0, void (i32)* %1) {
%3 = tail call i32 @signal(i32 %0, void (i32)* %1)
ret void
}
int seq_utils_wrap(int val, int min, int max) {
  if (val < min) {
    return max;
  }
  if (val > max) {
    return min;
  }
  return val;
}


x86 assembly (clang, -O0):
<seq_utils_wrap>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1124 <seq_utils_wrap+0x24>
mov    -0x10(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1141 <seq_utils_wrap+0x41>
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jle    113b <seq_utils_wrap+0x3b>
mov    -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1141 <seq_utils_wrap+0x41>
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<seq_utils_wrap>:
cmp    %edx,%edi
mov    %edi,%eax
cmovg  %esi,%eax
cmp    %esi,%edi
cmovl  %edx,%eax
ret

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

LLVM IR (-O2):
define i32 @seq_utils_wrap(i32 %0, i32 %1, i32 %2) {
%4 = icmp slt i32 %0, %1
%5 = icmp sgt i32 %0, %2
%6 = select i1 %5, i32 %1, i32 %0
%7 = select i1 %4, i32 %2, i32 %6
ret i32 %7
}
/* Variables and functions */
int atoi(char *);
scalar_t__ memcmp(char *, char *, int);
int /*<<< orphan*/ printf(char *);
int get_ack_seqid(char *buffer) {
  if (memcmp(buffer, "ACK", 3) == 0) {
    return atoi(buffer + 3) - 1;
  } else {
    printf("warning : Corrupt acknowledgement\n");
    return -1;
  }
}


x86 assembly (clang, -O0):
<get_ack_seqid>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xeb9(%rip),%rsi
mov    $0x3,%edx
call   1040 <memcmp@plt>
cmp    $0x0,%rax
jne    1173 <get_ack_seqid+0x43>
mov    -0x10(%rbp),%rdi
add    $0x3,%rdi
call   1050 <atoi@plt>
sub    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1186 <get_ack_seqid+0x56>
lea    0xe8a(%rip),%rdi
call   1030 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_ack_seqid>:
push   %rbx
mov    %rdi,%rbx
lea    0xec5(%rip),%rsi
mov    $0x3,%edx
call   1040 <memcmp@plt>
test   %rax,%rax
je     115d <get_ack_seqid+0x2d>
lea    0xeb3(%rip),%rdi
call   1030 <puts@plt>
mov    $0xffffffff,%eax
pop    %rbx
ret
add    $0x3,%rbx
mov    %rbx,%rdi
call   1050 <atoi@plt>
add    $0xffffffff,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [4 x i8] c"ACK\00"
@.str.1 = [35 x i8] c"warning : Corrupt acknowledgement\0A\00"
define i32 @get_ack_seqid(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = call i64 @memcmp(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 3)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %12
7: ; preds = %1
%8 = load i8*, i8** %3
%9 = getelementptr inbounds i8, i8* %8, i64 3
%10 = call i32 @atoi(i8* %9)
%11 = sub nsw i32 %10, 1
store i32 %11, i32* %2
br label %14
12: ; preds = %1
%13 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i64 0, i64 0))
store i32 -1, i32* %2
br label %14
14: ; preds = %12, %7
%15 = load i32, i32* %2
ret i32 %15
}

LLVM IR (-O2):
@.str = [4 x i8] c"ACK\00"
@str = [34 x i8] c"warning : Corrupt acknowledgement\00"
define i32 @get_ack_seqid(i8* %0) {
%2 = tail call i64 @memcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 3)
%3 = icmp eq i64 %2, 0
br i1 %3, label %4, label %8
4: ; preds = %1
%5 = getelementptr inbounds i8, i8* %0, i64 3
%6 = tail call i32 @atoi(i8* %5)
%7 = add nsw i32 %6, -1
br label %10
8: ; preds = %1
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str, i64 0, i64 0))
br label %10
10: ; preds = %8, %4
%11 = phi i32 [ %7, %4 ], [ -1, %8 ]
ret i32 %11
}
/* Variables and functions */
int /*<<< orphan*/ abort();
int fn_ii_va(int i, ...) {
  (void)i;
  abort();
}


x86 assembly (clang, -O0):
<fn_ii_va>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    $0x0,%al
call   1030 <abort@plt>

x86 assembly (clang, -O2):
<fn_ii_va>:
push   %rax
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define i32 @fn_ii_va(i32 %0, ...) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 (...) @abort()
unreachable
}

LLVM IR (-O2):
define i32 @fn_ii_va(i32 %0, ...) {
%2 = tail call i32 (...) @abort()
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ crypt(int *, int *, int /*<<< orphan*/);
void encrypt(int plaintext[], int key[]) { crypt(plaintext, key, 0); }


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

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

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

LLVM IR (-O2):
define void @encrypt(i32* %0, i32* %1) {
%3 = tail call i32 @crypt(i32* %0, i32* %1, i32 0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ map2check_binop_add(int, int, unsigned int, unsigned int,
                                       char *);
void map2check_binop_sub(int param1, int param2, unsigned line, unsigned scope,
                         char *function_name) {
  map2check_binop_add(param1, -param2, line, scope, function_name);
}


x86 assembly (clang, -O0):
<map2check_binop_sub>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8,-0x18(%rbp)
mov    -0x4(%rbp),%edi
xor    %esi,%esi
sub    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    -0x18(%rbp),%r8
call   1030 <map2check_binop_add@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<map2check_binop_sub>:
neg    %esi
jmp    1030 <map2check_binop_add@plt>

LLVM IR (-O0):
define void @map2check_binop_sub(i32 %0, i32 %1, i32 %2, i32 %3, i8* %4) {
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8*
store i32 %0, i32* %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i8* %4, i8** %10
%11 = load i32, i32* %6
%12 = load i32, i32* %7
%13 = sub nsw i32 0, %12
%14 = load i32, i32* %8
%15 = load i32, i32* %9
%16 = load i8*, i8** %10
%17 = call i32 @map2check_binop_add(i32 %11, i32 %13, i32 %14, i32 %15, i8* %16)
ret void
}

LLVM IR (-O2):
define void @map2check_binop_sub(i32 %0, i32 %1, i32 %2, i32 %3, i8* %4) {
%6 = sub nsw i32 0, %1
%7 = tail call i32 @map2check_binop_add(i32 %0, i32 %6, i32 %2, i32 %3, i8* %4)
ret void
}
/* Variables and functions */
int strlen(char *c) {
  int n = 0;
  while (*c) {
    c++;
    n++;
  }
  return (n);
}


x86 assembly (clang, -O0):
<strlen>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rax
cmpb   $0x0,(%rax)
je     1136 <strlen+0x36>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    110f <strlen+0xf>
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<strlen>:
cmpb   $0x0,(%rdi)
je     111c <strlen+0x1c>
xor    %eax,%eax
nopw   0x0(%rax,%rax,1)
cmpb   $0x0,0x1(%rdi,%rax,1)
lea    0x1(%rax),%rax
jne    1110 <strlen+0x10>
ret
xor    %eax,%eax
ret

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

LLVM IR (-O2):
define i32 @strlen(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %11, label %4
4: ; preds = %1, %4
%5 = phi i32 [ %8, %4 ], [ 0, %1 ]
%6 = phi i8* [ %7, %4 ], [ %0, %1 ]
%7 = getelementptr inbounds i8, i8* %6, i64 1
%8 = add nuw nsw i32 %5, 1
%9 = load i8, i8* %7
%10 = icmp eq i8 %9, 0
br i1 %10, label %11, label %4
11: ; preds = %4, %1
%12 = phi i32 [ 0, %1 ], [ %8, %4 ]
ret i32 %12
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
void print_vec(int *vec, int length) {
  int i;
  for (i = 0; i < length; i++)
    printf("%d ", *(vec + i));
}


x86 assembly (clang, -O0):
<print_vec>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1157 <print_vec+0x47>
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xebc(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1126 <print_vec+0x16>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_vec>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
test   %esi,%esi
jle    1145 <print_vec+0x35>
mov    %rdi,%r15
mov    %esi,%r12d
xor    %ebx,%ebx
lea    0xed5(%rip),%r14
nopl   0x0(%rax,%rax,1)
mov    (%r15,%rbx,4),%esi
mov    %r14,%rdi
call   1030 <printf@plt>
add    $0x1,%rbx
cmp    %rbx,%r12
jne    1130 <print_vec+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

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

LLVM IR (-O2):
@.str = [4 x i8] c"%d \00"
define void @print_vec(i32* nocapture %0, i32 %1) {
%3 = icmp sgt i32 %1, 0
br i1 %3, label %4, label %13
4: ; preds = %2
%5 = zext i32 %1 to i64
br label %6
6: ; preds = %4, %6
%7 = phi i64 [ 0, %4 ], [ %11, %6 ]
%8 = getelementptr inbounds i32, i32* %0, i64 %7
%9 = load i32, i32* %8
%10 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %9)
%11 = add nuw nsw i64 %7, 1
%12 = icmp eq i64 %11, %5
br i1 %12, label %13, label %6
13: ; preds = %6, %2
ret void
}
/* Variables and functions */
int /*<<< orphan*/ ns2svrl(int, float, float, float, float);
void ns2svrl_(int *vrid, float *datamin, float *datamax, float *alphamin,
              float *alphamax) {
  ns2svrl(*vrid, *datamin, *datamax, *alphamin, *alphamax);
}


x86 assembly (clang, -O0):
<ns2svrl_>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
mov    -0x18(%rbp),%rax
movss  (%rax),%xmm1
mov    -0x20(%rbp),%rax
movss  (%rax),%xmm2
mov    -0x28(%rbp),%rax
movss  (%rax),%xmm3
call   1030 <ns2svrl@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ns2svrl_>:
mov    (%rdi),%edi
movss  (%rsi),%xmm0
movss  (%rdx),%xmm1
movss  (%rcx),%xmm2
movss  (%r8),%xmm3
jmp    1030 <ns2svrl@plt>

LLVM IR (-O0):
define void @ns2svrl_(i32* %0, float* %1, float* %2, float* %3, float* %4) {
%6 = alloca i32*
%7 = alloca float*
%8 = alloca float*
%9 = alloca float*
%10 = alloca float*
store i32* %0, i32** %6
store float* %1, float** %7
store float* %2, float** %8
store float* %3, float** %9
store float* %4, float** %10
%11 = load i32*, i32** %6
%12 = load i32, i32* %11
%13 = load float*, float** %7
%14 = load float, float* %13
%15 = load float*, float** %8
%16 = load float, float* %15
%17 = load float*, float** %9
%18 = load float, float* %17
%19 = load float*, float** %10
%20 = load float, float* %19
%21 = call i32 @ns2svrl(i32 %12, float %14, float %16, float %18, float %20)
ret void
}

LLVM IR (-O2):
define void @ns2svrl_(i32* nocapture %0, float* nocapture %1, float* nocapture %2, float* nocapture %3, float* nocapture %4) {
%6 = load i32, i32* %0
%7 = load float, float* %1
%8 = load float, float* %2
%9 = load float, float* %3
%10 = load float, float* %4
%11 = tail call i32 @ns2svrl(i32 %6, float %7, float %8, float %9, float %10)
ret void
}
void XGetSelectionOwner() {}


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

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

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

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


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

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

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

LLVM IR (-O2):
define void @UYVYToI422() {
ret void
}
int test_imm_3Fuint8_reg(unsigned char val) {
  return ((val) & (0x3F << 0)) ? -20 : -40;
}


x86 assembly (clang, -O0):
<test_imm_3Fuint8_reg>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movzbl -0x1(%rbp),%edx
and    $0x3f,%edx
mov    $0xffffffd8,%eax
mov    $0xffffffec,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_imm_3Fuint8_reg>:
test   $0x3f,%dil
mov    $0xffffffd8,%ecx
mov    $0xffffffec,%eax
cmove  %ecx,%eax
ret

LLVM IR (-O0):
define i32 @test_imm_3Fuint8_reg(i8 zeroext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = zext i8 %3 to i32
%5 = and i32 %4, 63
%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_3Fuint8_reg(i8 zeroext %0) {
%2 = and i8 %0, 63
%3 = icmp eq i8 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
void clear_user_return_notifier(struct task_struct *p) {}


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

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

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

LLVM IR (-O2):
%struct.task_struct = type opaque
define void @clear_user_return_notifier(%struct.task_struct* nocapture %0) {
ret void
}
/* Variables and functions */
scalar_t__ isalnum(unsigned char volatile);
int t_isalnum(char ch) {
  volatile char xc = ch;
  volatile unsigned char xuc = ch;
  return isalnum(xc) && isalnum(xuc);
}


x86 assembly (clang, -O0):
<t_isalnum>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    -0x1(%rbp),%al
mov    %al,-0x2(%rbp)
mov    -0x1(%rbp),%al
mov    %al,-0x3(%rbp)
mov    -0x2(%rbp),%al
movzbl %al,%edi
call   1030 <isalnum@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x4(%rbp)
je     115c <t_isalnum+0x4c>
mov    -0x3(%rbp),%al
movzbl %al,%edi
call   1030 <isalnum@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x4(%rbp)
mov    -0x4(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_isalnum>:
push   %rax
mov    %dil,0x7(%rsp)
mov    %dil,0x6(%rsp)
movzbl 0x7(%rsp),%edi
call   1030 <isalnum@plt>
test   %rax,%rax
je     1141 <t_isalnum+0x31>
movzbl 0x6(%rsp),%edi
call   1030 <isalnum@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
setne  %al
pop    %rcx
ret
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @t_isalnum(i8 signext %0) {
%2 = alloca i8
%3 = alloca i8
%4 = alloca i8
store i8 %0, i8* %2
%5 = load i8, i8* %2
store volatile i8 %5, i8* %3
%6 = load i8, i8* %2
store volatile i8 %6, i8* %4
%7 = load volatile i8, i8* %3
%8 = call i64 @isalnum(i8 zeroext %7)
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %14
10: ; preds = %1
%11 = load volatile i8, i8* %4
%12 = call i64 @isalnum(i8 zeroext %11)
%13 = icmp ne i64 %12, 0
br label %14
14: ; preds = %10, %1
%15 = phi i1 [ false, %1 ], [ %13, %10 ]
%16 = zext i1 %15 to i32
ret i32 %16
}

LLVM IR (-O2):
define i32 @t_isalnum(i8 signext %0) {
%2 = alloca i8
%3 = alloca i8
store volatile i8 %0, i8* %2
store volatile i8 %0, i8* %3
%4 = load volatile i8, i8* %2
%5 = tail call i64 @isalnum(i8 zeroext %4)
%6 = icmp eq i64 %5, 0
br i1 %6, label %12, label %7
7: ; preds = %1
%8 = load volatile i8, i8* %3
%9 = tail call i64 @isalnum(i8 zeroext %8)
%10 = icmp ne i64 %9, 0
%11 = zext i1 %10 to i32
br label %12
12: ; preds = %7, %1
%13 = phi i32 [ 0, %1 ], [ %11, %7 ]
ret i32 %13
}
/* Variables and functions */
int getBit(unsigned char *, int *, int);
int parseOTHERdesc(unsigned char *data, unsigned char *tag) {
  int boff = 0;
  int descriptor_tag;
  int descriptor_length;
  descriptor_tag = getBit(data, &boff, 8);
  descriptor_length = getBit(data, &boff, 8);
  if (tag) {
    *tag = descriptor_tag;
  }
  return descriptor_length + 2;
}


x86 assembly (clang, -O0):
<parseOTHERdesc>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0x14(%rbp),%rsi
mov    $0x8,%edx
call   1030 <getBit@plt>
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0x14(%rbp),%rsi
mov    $0x8,%edx
call   1030 <getBit@plt>
mov    %eax,-0x1c(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     1167 <parseOTHERdesc+0x57>
mov    -0x18(%rbp),%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,(%rax)
mov    -0x1c(%rbp),%eax
add    $0x2,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parseOTHERdesc>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%rbp
movl   $0x0,0x4(%rsp)
lea    0x4(%rsp),%r15
mov    %r15,%rsi
mov    $0x8,%edx
call   1030 <getBit@plt>
mov    %eax,%r14d
mov    %rbp,%rdi
mov    %r15,%rsi
mov    $0x8,%edx
call   1030 <getBit@plt>
test   %rbx,%rbx
je     1152 <parseOTHERdesc+0x42>
mov    %r14b,(%rbx)
add    $0x2,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @parseOTHERdesc(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i8* %0, i8** %3
store i8* %1, i8** %4
store i32 0, i32* %5
%8 = load i8*, i8** %3
%9 = call i32 @getBit(i8* %8, i32* %5, i32 8)
store i32 %9, i32* %6
%10 = load i8*, i8** %3
%11 = call i32 @getBit(i8* %10, i32* %5, i32 8)
store i32 %11, i32* %7
%12 = load i8*, i8** %4
%13 = icmp ne i8* %12, null
br i1 %13, label %14, label %18
14: ; preds = %2
%15 = load i32, i32* %6
%16 = trunc i32 %15 to i8
%17 = load i8*, i8** %4
store i8 %16, i8* %17
br label %18
18: ; preds = %14, %2
%19 = load i32, i32* %7
%20 = add nsw i32 %19, 2
ret i32 %20
}

LLVM IR (-O2):
define i32 @parseOTHERdesc(i8* %0, i8* writeonly %1) {
%3 = alloca i32
%4 = bitcast i32* %3 to i8*
store i32 0, i32* %3
%5 = call i32 @getBit(i8* %0, i32* %3, i32 8)
%6 = call i32 @getBit(i8* %0, i32* %3, i32 8)
%7 = icmp eq i8* %1, null
br i1 %7, label %10, label %8
8: ; preds = %2
%9 = trunc i32 %5 to i8
store i8 %9, i8* %1
br label %10
10: ; preds = %8, %2
%11 = add nsw i32 %6, 2
ret i32 %11
}