xunge/DecIR huggingface dataset:
/* Variables and functions */
int /*<<< orphan*/ Com_Printf(char *);
int /*<<< orphan*/ Cvar_Serverinfo();
int /*<<< orphan*/ Info_Print(int /*<<< orphan*/);
void SV_Serverinfo_f(void) {
  Com_Printf("Server info settings:\n");
  Info_Print(Cvar_Serverinfo());
}


x86 assembly (clang, -O0):
<SV_Serverinfo_f>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
call   1040 <Com_Printf@plt>
mov    $0x0,%al
call   1030 <Cvar_Serverinfo@plt>
mov    %eax,%edi
call   1050 <Info_Print@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<SV_Serverinfo_f>:
push   %rax
lea    0xec8(%rip),%rdi
call   1040 <Com_Printf@plt>
xor    %eax,%eax
call   1030 <Cvar_Serverinfo@plt>
mov    %eax,%edi
pop    %rax
jmp    1050 <Info_Print@plt>

LLVM IR (-O0):
@.str = [23 x i8] c"Server info settings:\0A\00"
define void @SV_Serverinfo_f() {
%1 = call i32 @Com_Printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (...) @Cvar_Serverinfo()
%3 = call i32 @Info_Print(i32 %2)
ret void
}

LLVM IR (-O2):
@.str = [23 x i8] c"Server info settings:\0A\00"
define void @SV_Serverinfo_f() {
%1 = tail call i32 @Com_Printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (...) @Cvar_Serverinfo()
%3 = tail call i32 @Info_Print(i32 %2)
ret void
}
/* Variables and functions */
int nbElementsCommande(char *commande[]) {
  int i = 0;
  while (commande[i] != NULL)
    i++;
  return i;
}


x86 assembly (clang, -O0):
<nbElementsCommande>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
cmpq   $0x0,(%rax,%rcx,8)
je     1130 <nbElementsCommande+0x30>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    110f <nbElementsCommande+0xf>
mov    -0xc(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<nbElementsCommande>:
mov    $0xffffffff,%eax
cs nopw 0x0(%rax,%rax,1)
nop
add    $0x1,%eax
cmpq   $0x0,(%rdi)
lea    0x8(%rdi),%rdi
jne    1110 <nbElementsCommande+0x10>
ret

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

LLVM IR (-O2):
define i32 @nbElementsCommande(i8** nocapture %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i64 [ %7, %2 ], [ 0, %1 ]
%4 = getelementptr inbounds i8*, i8** %0, i64 %3
%5 = load i8*, i8** %4
%6 = icmp eq i8* %5, null
%7 = add nuw i64 %3, 1
br i1 %6, label %8, label %2
8: ; preds = %2
%9 = trunc i64 %3 to i32
ret i32 %9
}
long long sw64(long long v) {
  return ((v & 0xFF) << 56) | ((v & 0xFF00) << 40) | ((v & 0xFF0000) << 24) |
         ((v & 0xFF000000) << 8) | ((v >> 8) & 0xFF000000) |
         ((v >> 24) & 0xFF0000) | ((v >> 40) & 0xFF00) | ((v >> 56) & 0xFF);
}


x86 assembly (clang, -O0):
<sw64>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
and    $0xff,%rax
shl    $0x38,%rax
mov    -0x8(%rbp),%rcx
and    $0xff00,%rcx
shl    $0x28,%rcx
or     %rcx,%rax
mov    -0x8(%rbp),%rcx
and    $0xff0000,%rcx
shl    $0x18,%rcx
or     %rcx,%rax
movabs $0xff000000,%rcx
and    -0x8(%rbp),%rcx
shl    $0x8,%rcx
or     %rcx,%rax
mov    -0x8(%rbp),%rcx
sar    $0x8,%rcx
movabs $0xff000000,%rdx
and    %rdx,%rcx
or     %rcx,%rax
mov    -0x8(%rbp),%rcx
sar    $0x18,%rcx
and    $0xff0000,%rcx
or     %rcx,%rax
mov    -0x8(%rbp),%rcx
sar    $0x28,%rcx
and    $0xff00,%rcx
or     %rcx,%rax
mov    -0x8(%rbp),%rcx
sar    $0x38,%rcx
and    $0xff,%rcx
or     %rcx,%rax
pop    %rbp
ret

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

LLVM IR (-O0):
define i64 @sw64(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = and i64 %3, 255
%5 = shl i64 %4, 56
%6 = load i64, i64* %2
%7 = and i64 %6, 65280
%8 = shl i64 %7, 40
%9 = or i64 %5, %8
%10 = load i64, i64* %2
%11 = and i64 %10, 16711680
%12 = shl i64 %11, 24
%13 = or i64 %9, %12
%14 = load i64, i64* %2
%15 = and i64 %14, 4278190080
%16 = shl i64 %15, 8
%17 = or i64 %13, %16
%18 = load i64, i64* %2
%19 = ashr i64 %18, 8
%20 = and i64 %19, 4278190080
%21 = or i64 %17, %20
%22 = load i64, i64* %2
%23 = ashr i64 %22, 24
%24 = and i64 %23, 16711680
%25 = or i64 %21, %24
%26 = load i64, i64* %2
%27 = ashr i64 %26, 40
%28 = and i64 %27, 65280
%29 = or i64 %25, %28
%30 = load i64, i64* %2
%31 = ashr i64 %30, 56
%32 = and i64 %31, 255
%33 = or i64 %29, %32
ret i64 %33
}

LLVM IR (-O2):
define i64 @sw64(i64 %0) {
%2 = tail call i64 @llvm.bswap.i64(i64 %0)
ret i64 %2
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main(void) {
  printf("Hola Mundo Cruel y Despiadado\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%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 = [31 x i8] c"Hola Mundo Cruel y Despiadado\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [30 x i8] c"Hola Mundo Cruel y Despiadado\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str, i64 0, i64 0))
ret i32 0
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
uint32_t intrev(uint32_t i) {
  uint32_t rev = 0;
  while (i) {
    rev *= 10;
    rev += (i % 10);
    i /= 10;
  }
  return rev;
}


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

x86 assembly (clang, -O2):
<intrev>:
xor    %eax,%eax
test   %edi,%edi
je     113f <intrev+0x3f>
cs nopw 0x0(%rax,%rax,1)
lea    (%rax,%rax,4),%eax
movslq %edi,%rcx
imul   $0x66666667,%rcx,%rdi
mov    %rdi,%rdx
shr    $0x3f,%rdx
sar    $0x22,%rdi
add    %edx,%edi
lea    (%rdi,%rdi,1),%edx
lea    (%rdx,%rdx,4),%edx
mov    %ecx,%esi
sub    %edx,%esi
lea    (%rsi,%rax,2),%eax
add    $0x9,%ecx
cmp    $0x12,%ecx
ja     1110 <intrev+0x10>
ret

LLVM IR (-O0):
define i32 @intrev(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 %16
7: ; preds = %4
%8 = load i32, i32* %3
%9 = mul nsw i32 %8, 10
store i32 %9, i32* %3
%10 = load i32, i32* %2
%11 = srem i32 %10, 10
%12 = load i32, i32* %3
%13 = add nsw i32 %12, %11
store i32 %13, i32* %3
%14 = load i32, i32* %2
%15 = sdiv i32 %14, 10
store i32 %15, i32* %2
br label %4
16: ; preds = %4
%17 = load i32, i32* %3
ret i32 %17
}

LLVM IR (-O2):
define i32 @intrev(i32 %0) {
%2 = icmp eq i32 %0, 0
br i1 %2, label %12, label %3
3: ; preds = %1, %3
%4 = phi i32 [ %8, %3 ], [ 0, %1 ]
%5 = phi i32 [ %9, %3 ], [ %0, %1 ]
%6 = mul nsw i32 %4, 10
%7 = srem i32 %5, 10
%8 = add nsw i32 %6, %7
%9 = sdiv i32 %5, 10
%10 = add i32 %5, 9
%11 = icmp ult i32 %10, 19
br i1 %11, label %12, label %3
12: ; preds = %3, %1
%13 = phi i32 [ 0, %1 ], [ %8, %3 ]
ret i32 %13
}
/* Variables and functions */
int /*<<< orphan*/ DEBUG_ASSERT(int);
void I2STxDisable(unsigned long ulBase) {
  DEBUG_ASSERT(ulBase == 0x40054000);
  (*((volatile unsigned long *)(ulBase + 0x00000C00))) &= ~0x00000001;
}


x86 assembly (clang, -O0):
<I2STxDisable>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x40054000,-0x8(%rbp)
40
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <DEBUG_ASSERT@plt>
mov    -0x8(%rbp),%rax
mov    0xc00(%rax),%rcx
and    $0xfffffffffffffffe,%rcx
mov    %rcx,0xc00(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<I2STxDisable>:
push   %rbx
mov    %rdi,%rbx
xor    %edi,%edi
cmp    $0x40054000,%rbx
sete   %dil
call   1030 <DEBUG_ASSERT@plt>
andq   $0xfffffffffffffffe,0xc00(%rbx)
fe
pop    %rbx
ret

LLVM IR (-O0):
define void @I2STxDisable(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = icmp eq i64 %3, 1074085888
%5 = zext i1 %4 to i32
%6 = call i32 @DEBUG_ASSERT(i32 %5)
%7 = load i64, i64* %2
%8 = add i64 %7, 3072
%9 = inttoptr i64 %8 to i64*
%10 = load volatile i64, i64* %9
%11 = and i64 %10, -2
store volatile i64 %11, i64* %9
ret void
}

LLVM IR (-O2):
define void @I2STxDisable(i64 %0) {
%2 = icmp eq i64 %0, 1074085888
%3 = zext i1 %2 to i32
%4 = tail call i32 @DEBUG_ASSERT(i32 %3)
%5 = add i64 %0, 3072
%6 = inttoptr i64 %5 to i64*
%7 = load volatile i64, i64* %6
%8 = and i64 %7, -2
store volatile i64 %8, i64* %6
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;

/* Variables and functions */
int /*<<< orphan*/ get_port(int /*<<< orphan*/, int /*<<< orphan*/, int, int);
uint8_t get_interrupt_type(uint8_t address, uint8_t port) {
  return get_port(address, port, 0x08, 0x09);
}


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

x86 assembly (clang, -O2):
<get_interrupt_type>:
mov    $0x8,%edx
mov    $0x9,%ecx
jmp    1030 <get_port@plt>

LLVM IR (-O0):
define i32 @get_interrupt_type(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 @get_port(i32 %5, i32 %6, i32 8, i32 9)
ret i32 %7
}

LLVM IR (-O2):
define i32 @get_interrupt_type(i32 %0, i32 %1) {
%3 = tail call i32 @get_port(i32 %0, i32 %1, i32 8, i32 9)
ret i32 %3
}
const char *evdns_err_to_string(int err) {
  if (err == 0)
    return "no error";
  if (err == 3)
    return "name does not exist";
  return "[Unknown error code]";
}


x86 assembly (clang, -O0):
<evdns_err_to_string>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jne    1121 <evdns_err_to_string+0x21>
lea    0xee8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1146 <evdns_err_to_string+0x46>
cmpl   $0x3,-0xc(%rbp)
jne    113b <evdns_err_to_string+0x3b>
lea    0xed7(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1146 <evdns_err_to_string+0x46>
lea    0xedb(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<evdns_err_to_string>:
cmp    $0x3,%edi
lea    0xeff(%rip),%rax
lea    0xf0c(%rip),%rcx
cmove  %rax,%rcx
test   %edi,%edi
lea    0xee2(%rip),%rax
cmovne %rcx,%rax
ret

LLVM IR (-O0):
@.str = [9 x i8] c"no error\00"
@.str.1 = [20 x i8] c"name does not exist\00"
@.str.2 = [21 x i8] c"[Unknown error code]\00"
define i8* @evdns_err_to_string(i32 %0) {
%2 = alloca i8*
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %7
6: ; preds = %1
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8** %2
br label %12
7: ; preds = %1
%8 = load i32, i32* %3
%9 = icmp eq i32 %8, 3
br i1 %9, label %10, label %11
10: ; preds = %7
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %12
11: ; preds = %7
store i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i8** %2
br label %12
12: ; preds = %11, %10, %6
%13 = load i8*, i8** %2
ret i8* %13
}

LLVM IR (-O2):
@.str = [9 x i8] c"no error\00"
@.str.1 = [20 x i8] c"name does not exist\00"
@.str.2 = [21 x i8] c"[Unknown error code]\00"
define i8* @evdns_err_to_string(i32 %0) {
%2 = icmp eq i32 %0, 3
%3 = select i1 %2, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0)
%4 = icmp eq i32 %0, 0
%5 = select i1 %4, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* %3
ret i8* %5
}
/* Variables and functions */
int /*<<< orphan*/ japi_fillpolygon(int, int, int *, int *);
void j_fillpolygon(int arg0, int arg1, int *arg2, int *arg3) {
  japi_fillpolygon(arg0, arg1, arg2, arg3);
}


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

x86 assembly (clang, -O2):
<j_fillpolygon>:
jmp    1030 <japi_fillpolygon@plt>

LLVM IR (-O0):
define void @j_fillpolygon(i32 %0, i32 %1, i32* %2, i32* %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32*
%8 = alloca i32*
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32* %2, i32** %7
store i32* %3, i32** %8
%9 = load i32, i32* %5
%10 = load i32, i32* %6
%11 = load i32*, i32** %7
%12 = load i32*, i32** %8
%13 = call i32 @japi_fillpolygon(i32 %9, i32 %10, i32* %11, i32* %12)
ret void
}

LLVM IR (-O2):
define void @j_fillpolygon(i32 %0, i32 %1, i32* %2, i32* %3) {
%5 = tail call i32 @japi_fillpolygon(i32 %0, i32 %1, i32* %2, i32* %3)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ close(int);
void listener_free_socket(void *argument) {
  int *sock = (int *)argument;
  close(*sock);
}


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

x86 assembly (clang, -O2):
<listener_free_socket>:
mov    (%rdi),%edi
jmp    1030 <close@plt>

LLVM IR (-O0):
define void @listener_free_socket(i8* %0) {
%2 = alloca i8*
%3 = alloca i32*
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = bitcast i8* %4 to i32*
store i32* %5, i32** %3
%6 = load i32*, i32** %3
%7 = load i32, i32* %6
%8 = call i32 @close(i32 %7)
ret void
}

LLVM IR (-O2):
define void @listener_free_socket(i8* nocapture %0) {
%2 = bitcast i8* %0 to i32*
%3 = load i32, i32* %2
%4 = tail call i32 @close(i32 %3)
ret void
}
void EC_POINTs_make_affine(void) {}


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

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

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

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

/* Variables and functions */
int /*<<< orphan*/ _mm_sub_pi16(int /*<<< orphan*/, int /*<<< orphan*/);
__m64 test42(__m64 a, __m64 b) { return _mm_sub_pi16(a, b); }


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

x86 assembly (clang, -O2):
<test42>:
jmp    1030 <_mm_sub_pi16@plt>

LLVM IR (-O0):
define i32 @test42(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 @_mm_sub_pi16(i32 %5, i32 %6)
ret i32 %7
}

LLVM IR (-O2):
define i32 @test42(i32 %0, i32 %1) {
%3 = tail call i32 @_mm_sub_pi16(i32 %0, i32 %1)
ret i32 %3
}
void f1(void) {
#pragma omp task depend(iterator, in : a)
  ;
#pragma omp task depend(iterator(for = 0 : 2), in : a)
  ;
#pragma omp task depend(iterator(5 = 0 : 2), in : a)
  ;
#pragma omp task depend(iterator(i : 0 : 2), in : a)
  ;
#pragma omp task depend(iterator(i = 0, 1 : 2), in : a)
  ;
#pragma omp task depend(iterator(i = (0, 1) : 2), in : a)
  ;
#pragma omp task depend(iterator(i = 0 : 1 : 2 : 3), in : a)
  ;
#pragma omp task depend(iterator(i = 0 : 2, 3), in : a)
  ;
#pragma omp task depend(iterator(i = 0 : 10 : 2, 3), in : a)
  ;
#pragma omp task depend(iterator(i = 0 : 1), iterator(j = 0 : 1), in : a)
  ;
#pragma omp task depend(iterator(i = 0 : 32), in : b [i * 2:2])
  ;
#pragma omp task depend(iterator(struct S i = 0 : 1), in : a)
  ;
#pragma omp task depend(iterator(void i = 0 : 1), in : a)
  ;
#pragma omp task depend(iterator(float f = 0.2 : 0.4), in : a)
  ;
#pragma omp task depend(iterator(struct S *p = d:e : 2), in : a)
  ;
#pragma omp task depend(iterator(struct T *p = f : g), in : a)
  ;
#pragma omp task depend(iterator(                                              \
                            int i = 0 : 4,                                     \
                            struct U {                                         \
                              int(*p)[i + 2];                                  \
                            } *p = 0 : 2),                                     \
                        in                                                     \
                        : a)
  ;
#pragma omp task depend(iterator(i = 0 : 4, j = i : 16), in : a)
  ;
#pragma omp task depend(iterator(i = 0 : 4, j = 2 : i : 1), in : a)
  ;
#pragma omp task depend(iterator(i = 0 : 4, j = 2 : 8 : i), in : a)
  ;
#pragma omp task depend(iterator(i = *d : 2), in : a)
  ;
#pragma omp task depend(iterator(i = 2 : *d : 2), in : a)
  ;
#pragma omp task depend(iterator(i = 2 : 4 : *d), in : a)
  ;
#pragma omp task depend(iterator(i = 1.25 : 2.5 : 3), in : a)
  ;
#pragma omp task depend(iterator(i = 1 : 2 : 3.5), in : a)
  ;
#pragma omp task depend(iterator(int *p = 23 : h), in : a)
  ;
#pragma omp task depend(iterator(short i = 1 : 3 : 0), in : a)
  ;
#pragma omp task depend(iterator(i = 1 : 3 : 3 - 3), in : a)
  ;
#pragma omp task depend(iterator(int *p = &b[6] : &b[9] : 4 - 4), in : a)
  ;
#pragma omp task depend(iterator(const int i = 0 : 2), in : a)
  ;
#pragma omp task depend(iterator(const long long unsigned i = 0 : 2), in : a)
  ;
#pragma omp task depend(iterator(_Atomic unsigned i = 0 : 2), in : a)
  ;
}


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

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

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

LLVM IR (-O2):
define void @f1() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ tp6801_send_cmd(int, int /*<<< orphan*/, int, int,
                                   int /*<<< orphan*/ *, int /*<<< orphan*/);
void eeprom_erase_block(int fd, int offset) {
  tp6801_send_cmd(fd, 0, 0xc6, offset, NULL, 0);
}


x86 assembly (clang, -O0):
<eeprom_erase_block>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%ecx
xor    %r9d,%r9d
mov    $0xc6,%edx
xor    %eax,%eax
mov    %eax,%r8d
mov    %r9d,%esi
call   1030 <tp6801_send_cmd@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<eeprom_erase_block>:
mov    %esi,%ecx
xor    %esi,%esi
mov    $0xc6,%edx
xor    %r8d,%r8d
xor    %r9d,%r9d
jmp    1030 <tp6801_send_cmd@plt>

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

LLVM IR (-O2):
define void @eeprom_erase_block(i32 %0, i32 %1) {
%3 = tail call i32 @tp6801_send_cmd(i32 %0, i32 0, i32 198, i32 %1, i32* null, i32 0)
ret void
}
int pm2xxx_ddbg_init(struct pm2xxx_charger *pm2) { return 0; }


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

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

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

LLVM IR (-O2):
%struct.pm2xxx_charger = type opaque
define i32 @pm2xxx_ddbg_init(%struct.pm2xxx_charger* nocapture readnone %0) {
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ motion_set(int);
void stop(void) { motion_set(0x00); }


x86 assembly (clang, -O0):
<stop>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
call   1030 <motion_set@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<stop>:
xor    %edi,%edi
jmp    1030 <motion_set@plt>

LLVM IR (-O0):
define void @stop() {
%1 = call i32 @motion_set(i32 0)
ret void
}

LLVM IR (-O2):
define void @stop() {
%1 = tail call i32 @motion_set(i32 0)
ret void
}
int cairo_code_draw_powerbg_get_height() { return 317; }


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

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

LLVM IR (-O0):
define i32 @cairo_code_draw_powerbg_get_height() {
ret i32 317
}

LLVM IR (-O2):
define i32 @cairo_code_draw_powerbg_get_height() {
ret i32 317
}
/* Variables and functions */
int now_us();
long now_ms() { return now_us() / 1000; }


x86 assembly (clang, -O0):
<now_ms>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <now_us@plt>
mov    $0x3e8,%ecx
cltd
idiv   %ecx
cltq
pop    %rbp
ret

x86 assembly (clang, -O2):
<now_ms>:
push   %rax
xor    %eax,%eax
call   1030 <now_us@plt>
cltq
imul   $0x10624dd3,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x26,%rax
add    %ecx,%eax
cltq
pop    %rcx
ret

LLVM IR (-O0):
define i64 @now_ms() {
%1 = call i32 (...) @now_us()
%2 = sdiv i32 %1, 1000
%3 = sext i32 %2 to i64
ret i64 %3
}

LLVM IR (-O2):
define i64 @now_ms() {
%1 = tail call i32 (...) @now_us()
%2 = sdiv i32 %1, 1000
%3 = sext i32 %2 to i64
ret i64 %3
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, char const *);
void osd_break_into_debugger(const char *message) {
  printf("Ignoring MAME exception: %s\n", message);
}


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

x86 assembly (clang, -O2):
<osd_break_into_debugger>:
mov    %rdi,%rsi
lea    0xee6(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [29 x i8] c"Ignoring MAME exception: %s\0A\00"
define void @osd_break_into_debugger(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8* %3)
ret void
}

LLVM IR (-O2):
@.str = [29 x i8] c"Ignoring MAME exception: %s\0A\00"
define void @osd_break_into_debugger(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}
/* Variables and functions */
int error(int, char *);
int b_umask(int argc, char *argv[]) {
  if (argc > 1)
    return error(1, argv[0]);
  return error(49, argv[0]);
}


x86 assembly (clang, -O0):
<b_umask>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x1,-0x8(%rbp)
jle    1142 <b_umask+0x32>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
mov    $0x1,%edi
call   1030 <error@plt>
mov    %eax,-0x4(%rbp)
jmp    1156 <b_umask+0x46>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
mov    $0x31,%edi
call   1030 <error@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<b_umask>:
cmp    $0x2,%edi
mov    (%rsi),%rsi
mov    $0x1,%eax
mov    $0x31,%edi
cmovge %eax,%edi
jmp    1030 <error@plt>

LLVM IR (-O0):
define i32 @b_umask(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 sgt i32 %6, 1
br i1 %7, label %8, label %13
8: ; preds = %2
%9 = load i8**, i8*** %5
%10 = getelementptr inbounds i8*, i8** %9, i64 0
%11 = load i8*, i8** %10
%12 = call i32 @error(i32 1, i8* %11)
store i32 %12, i32* %3
br label %18
13: ; preds = %2
%14 = load i8**, i8*** %5
%15 = getelementptr inbounds i8*, i8** %14, i64 0
%16 = load i8*, i8** %15
%17 = call i32 @error(i32 49, i8* %16)
store i32 %17, i32* %3
br label %18
18: ; preds = %13, %8
%19 = load i32, i32* %3
ret i32 %19
}

LLVM IR (-O2):
define i32 @b_umask(i32 %0, i8** nocapture %1) {
%3 = icmp sgt i32 %0, 1
%4 = load i8*, i8** %1
%5 = select i1 %3, i32 1, i32 49
%6 = tail call i32 @error(i32 %5, i8* %4)
ret i32 %6
}
/* Type definitions */
typedef int /*<<< orphan*/ pid_t;

/* Variables and functions */
int /*<<< orphan*/ __NR_gettid;
int /*<<< orphan*/ syscall(int /*<<< orphan*/);
__attribute__((always_)) pid_t _syscall_gettid(void) {
  return syscall(__NR_gettid);
}


x86 assembly (clang, -O0):
<_syscall_gettid>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ecd(%rip),%rax
mov    (%rax),%edi
call   1030 <syscall@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<_syscall_gettid>:
mov    0x2ed1(%rip),%rax
mov    (%rax),%edi
jmp    1030 <syscall@plt>

LLVM IR (-O0):
@__NR_gettid = global i32 0
define i32 @_syscall_gettid() {
%1 = load i32, i32* @__NR_gettid
%2 = call i32 @syscall(i32 %1)
ret i32 %2
}

LLVM IR (-O2):
@__NR_gettid = global i32 0
define i32 @_syscall_gettid() {
%1 = load i32, i32* @__NR_gettid
%2 = tail call i32 @syscall(i32 %1)
ret i32 %2
}
signed char base64_decode_value(char value_in) {
  static const char decoding[] = {
      62, -1, -1, -1, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1,
      -1, -1, -2, -1, -1, -1, 0,  1,  2,  3,  4,  5,  6,  7,  8,  9,
      10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25,
      -1, -1, -1, -1, -1, -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35,
      36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51};
  static const unsigned char decoding_size = sizeof(decoding);
  value_in -= 43;
  if (value_in < 0 || value_in > decoding_size)
    return -1;
  return decoding[(int)value_in];
}


x86 assembly (clang, -O0):
<base64_decode_value>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x2(%rbp)
movsbl -0x2(%rbp),%eax
sub    $0x2b,%eax
mov    %al,-0x2(%rbp)
movsbl -0x2(%rbp),%eax
cmp    $0x0,%eax
jl     112e <base64_decode_value+0x2e>
movsbl -0x2(%rbp),%eax
cmp    $0x50,%eax
jle    1137 <base64_decode_value+0x37>
movb   $0xff,-0x1(%rbp)
jmp    114b <base64_decode_value+0x4b>
movsbl -0x2(%rbp),%eax
movslq %eax,%rcx
lea    0xebb(%rip),%rax
mov    (%rax,%rcx,1),%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<base64_decode_value>:
add    $0xd5,%dil
mov    $0xff,%al
cmp    $0x50,%dil
ja     111a <base64_decode_value+0x1a>
movzbl %dil,%eax
lea    0xee9(%rip),%rcx
mov    (%rax,%rcx,1),%al
ret

LLVM IR (-O0):
@base64_decode_value.decoding = internal constant [80 x i8] c">\FF\FF\FF?456789:;<=\FF\FF\FF\FE\FF\FF\FF\00\01\02\03\04\05\06\07\08\09\0A\0B\0C\0D\0E\0F\10\11\12\13\14\15\16\17\18\19\FF\FF\FF\FF\FF\FF\1A\1B\1C\1D\1E\1F !\22#$%&'()*+,-./0123"
@base64_decode_value.decoding_size = internal constant i8 80
define signext i8 @base64_decode_value(i8 signext %0) {
%2 = alloca i8
%3 = alloca i8
store i8 %0, i8* %3
%4 = load i8, i8* %3
%5 = sext i8 %4 to i32
%6 = sub nsw i32 %5, 43
%7 = trunc i32 %6 to i8
store i8 %7, i8* %3
%8 = load i8, i8* %3
%9 = sext i8 %8 to i32
%10 = icmp slt i32 %9, 0
br i1 %10, label %15, label %11
11: ; preds = %1
%12 = load i8, i8* %3
%13 = sext i8 %12 to i32
%14 = icmp sgt i32 %13, 80
br i1 %14, label %15, label %16
15: ; preds = %11, %1
store i8 -1, i8* %2
br label %22
16: ; preds = %11
%17 = load i8, i8* %3
%18 = sext i8 %17 to i32
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [80 x i8], [80 x i8]* @base64_decode_value.decoding, i64 0, i64 %19
%21 = load i8, i8* %20
store i8 %21, i8* %2
br label %22
22: ; preds = %16, %15
%23 = load i8, i8* %2
ret i8 %23
}

LLVM IR (-O2):
@base64_decode_value.decoding = internal unnamed_addr constant [80 x i8] c">\FF\FF\FF?456789:;<=\FF\FF\FF\FE\FF\FF\FF\00\01\02\03\04\05\06\07\08\09\0A\0B\0C\0D\0E\0F\10\11\12\13\14\15\16\17\18\19\FF\FF\FF\FF\FF\FF\1A\1B\1C\1D\1E\1F !\22#$%&'()*+,-./0123"
define signext i8 @base64_decode_value(i8 signext %0) {
%2 = add i8 %0, -43
%3 = icmp ugt i8 %2, 80
br i1 %3, label %8, label %4
4: ; preds = %1
%5 = zext i8 %2 to i64
%6 = getelementptr inbounds [80 x i8], [80 x i8]* @base64_decode_value.decoding, i64 0, i64 %5
%7 = load i8, i8* %6
br label %8
8: ; preds = %1, %4
%9 = phi i8 [ %7, %4 ], [ -1, %1 ]
ret i8 %9
}
int f() {
  if (!('\0'))
    ;
}


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

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

LLVM IR (-O0):
define i32 @f() {
%1 = alloca i32
%2 = load i32, i32* %1
ret i32 %2
}

LLVM IR (-O2):
define i32 @f() {
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ __stdio_exit();
void __flush_on_exit() { __stdio_exit(); }


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

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

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

LLVM IR (-O2):
define void @__flush_on_exit() {
%1 = tail call i32 (...) @__stdio_exit()
ret void
}
void prefetch(void *p) {}


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

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

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

LLVM IR (-O2):
define void @prefetch(i8* nocapture %0) {
ret void
}
int gt_ht_ptr_cmp(void *a, void *b) { return (int)(a > b) - (int)(a < b); }


x86 assembly (clang, -O0):
<gt_ht_ptr_cmp>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
cmp    -0x10(%rbp),%rax
seta   %al
and    $0x1,%al
movzbl %al,%eax
mov    -0x8(%rbp),%rcx
cmp    -0x10(%rbp),%rcx
setb   %cl
and    $0x1,%cl
movzbl %cl,%ecx
sub    %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<gt_ht_ptr_cmp>:
xor    %eax,%eax
cmp    %rsi,%rdi
seta   %al
sbb    $0x0,%eax
ret

LLVM IR (-O0):
define i32 @gt_ht_ptr_cmp(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %3
%6 = load i8*, i8** %4
%7 = icmp ugt i8* %5, %6
%8 = zext i1 %7 to i32
%9 = load i8*, i8** %3
%10 = load i8*, i8** %4
%11 = icmp ult i8* %9, %10
%12 = zext i1 %11 to i32
%13 = sub nsw i32 %8, %12
ret i32 %13
}

LLVM IR (-O2):
define i32 @gt_ht_ptr_cmp(i8* readnone %0, i8* readnone %1) {
%3 = icmp ugt i8* %0, %1
%4 = zext i1 %3 to i32
%5 = icmp ult i8* %0, %1
%6 = sext i1 %5 to i32
%7 = add nsw i32 %6, %4
ret i32 %7
}
/* Type definitions */
typedef int /*<<< orphan*/ ASN1_VALUE;
typedef int /*<<< orphan*/ ASN1_TIME;

/* Variables and functions */
int /*<<< orphan*/ ASN1_TIME_it;
int ASN1_item_i2d(int /*<<< orphan*/ *, unsigned char **, int /*<<< orphan*/ *);
int i2d_ASN1_TIME(ASN1_TIME *a, unsigned char **out) {
  return ASN1_item_i2d((ASN1_VALUE *)a, out, &ASN1_TIME_it);
}


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

x86 assembly (clang, -O2):
<i2d_ASN1_TIME>:
mov    0x2ec9(%rip),%rdx
jmp    1030 <ASN1_item_i2d@plt>

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

LLVM IR (-O2):
@ASN1_TIME_it = global i32 0
define i32 @i2d_ASN1_TIME(i32* %0, i8** %1) {
%3 = tail call i32 @ASN1_item_i2d(i32* %0, i8** %1, i32* @ASN1_TIME_it)
ret i32 %3
}
int test_imm_71int32_mem(int *val) {
  return ((*val) & (0x71 << 0)) ? -20 : -40;
}


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

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

LLVM IR (-O0):
define i32 @test_imm_71int32_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, 113
%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_71int32_mem(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = and i32 %2, 113
%4 = icmp eq i32 %3, 0
%5 = select i1 %4, i32 -40, i32 -20
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ swap();
int main() {
  swap();
  return 0;
}


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

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <swap@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @swap()
ret i32 0
}
int nxtd_usb_scan() { return 0; }


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

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

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

LLVM IR (-O2):
define i32 @nxtd_usb_scan() {
ret i32 0
}
int _compare(const char *a, const char *b, int len) {
  while (len--) {
    if (*a++ != *b++) {
      return 1;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<_compare>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x1c(%rbp)
cmp    $0x0,%eax
je     1160 <_compare+0x60>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
movsbl (%rax),%eax
mov    -0x18(%rbp),%rcx
mov    %rcx,%rdx
add    $0x1,%rdx
mov    %rdx,-0x18(%rbp)
movsbl (%rcx),%ecx
cmp    %ecx,%eax
je     115b <_compare+0x5b>
movl   $0x1,-0x4(%rbp)
jmp    1167 <_compare+0x67>
jmp    110f <_compare+0xf>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<_compare>:
mov    %edx,%r8d
xor    %eax,%eax
xor    %edx,%edx
nopw   0x0(%rax,%rax,1)
cmp    %edx,%r8d
je     112c <_compare+0x2c>
movzbl (%rdi,%rdx,1),%r9d
lea    0x1(%rdx),%rcx
cmp    (%rsi,%rdx,1),%r9b
mov    %rcx,%rdx
je     1110 <_compare+0x10>
mov    $0x1,%eax
ret

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

LLVM IR (-O2):
define i32 @_compare(i8* nocapture %0, i8* nocapture %1, i32 %2) {
br label %4
4: ; preds = %9, %3
%5 = phi i8* [ %0, %3 ], [ %11, %9 ]
%6 = phi i8* [ %1, %3 ], [ %13, %9 ]
%7 = phi i32 [ %2, %3 ], [ %10, %9 ]
%8 = icmp eq i32 %7, 0
br i1 %8, label %16, label %9
9: ; preds = %4
%10 = add nsw i32 %7, -1
%11 = getelementptr inbounds i8, i8* %5, i64 1
%12 = load i8, i8* %5
%13 = getelementptr inbounds i8, i8* %6, i64 1
%14 = load i8, i8* %6
%15 = icmp eq i8 %12, %14
br i1 %15, label %4, label %16
16: ; preds = %4, %9
%17 = phi i32 [ 1, %9 ], [ 0, %4 ]
ret i32 %17
}
/* Variables and functions */
unsigned long long betterfib(int, unsigned long long *);
scalar_t__ calloc(int, int);
int /*<<< orphan*/ printf(char *, int, unsigned long long);
int main() {
  int fibTerm = 92;
  unsigned long long int result = 0;
  unsigned long long int *arr =
      (unsigned long long int *)calloc(fibTerm, sizeof(unsigned long long int));
  result = betterfib(fibTerm, arr);
  printf("\n The %dth term of the fibonacci series is %llu \n ", fibTerm,
         result);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x5c,-0x8(%rbp)
movq   $0x0,-0x10(%rbp)
mov    -0x8(%rbp),%edi
mov    $0x8,%esi
call   1040 <calloc@plt>
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x18(%rbp),%rsi
call   1050 <betterfib@plt>
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%esi
mov    -0x10(%rbp),%rdx
lea    0xe83(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x5c,%edi
mov    $0x8,%esi
call   1040 <calloc@plt>
mov    $0x5c,%edi
mov    %rax,%rsi
call   1050 <betterfib@plt>
lea    0xeac(%rip),%rdi
mov    $0x5c,%esi
mov    %rax,%rdx
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [51 x i8] c"\0A The %dth term of the fibonacci series is %llu \0A \00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i64
%4 = alloca i64*
store i32 0, i32* %1
store i32 92, i32* %2
store i64 0, i64* %3
%5 = load i32, i32* %2
%6 = call i64 @calloc(i32 %5, i32 8)
%7 = inttoptr i64 %6 to i64*
store i64* %7, i64** %4
%8 = load i32, i32* %2
%9 = load i64*, i64** %4
%10 = call i64 @betterfib(i32 %8, i64* %9)
store i64 %10, i64* %3
%11 = load i32, i32* %2
%12 = load i64, i64* %3
%13 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str, i64 0, i64 0), i32 %11, i64 %12)
ret i32 0
}

LLVM IR (-O2):
@.str = [51 x i8] c"\0A The %dth term of the fibonacci series is %llu \0A \00"
define i32 @main() {
%1 = tail call i64 @calloc(i32 92, i32 8)
%2 = inttoptr i64 %1 to i64*
%3 = tail call i64 @betterfib(i32 92, i64* %2)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str, i64 0, i64 0), i32 92, i64 %3)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void htmlHeaderRefresh() {
  printf("<meta http-equiv=\"Refresh\" content=\"0\">\n");
}


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

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

LLVM IR (-O0):
@.str = [41 x i8] c"<meta http-equiv=\22Refresh\22 content=\220\22>\0A\00"
define void @htmlHeaderRefresh() {
%1 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [40 x i8] c"<meta http-equiv=\22Refresh\22 content=\220\22>\00"
define void @htmlHeaderRefresh() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
char *uname_get_host_name(char *, char *);
char *get_host_name(char *hostname, char *domain) {
  return uname_get_host_name(hostname, domain);
}


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

x86 assembly (clang, -O2):
<get_host_name>:
jmp    1030 <uname_get_host_name@plt>

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

LLVM IR (-O2):
define i8* @get_host_name(i8* %0, i8* %1) {
%3 = tail call i8* @uname_get_host_name(i8* %0, i8* %1)
ret i8* %3
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
void arreglo(void) {
  int numero[5] = {200, 150, 100, -50, 300};
  int suma;
  suma = numero[0] + numero[1] + numero[2] + numero[3] + numero[4];
  printf("Su suma es %d\n", suma);
}


x86 assembly (clang, -O0):
<arreglo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0xee1(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xede(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xedc(%rip),%eax
mov    %eax,-0x10(%rbp)
mov    -0x20(%rbp),%eax
add    -0x1c(%rbp),%eax
add    -0x18(%rbp),%eax
add    -0x14(%rbp),%eax
add    -0x10(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%esi
lea    0xec1(%rip),%rdi
call   1030 <printf@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<arreglo>:
lea    0xee9(%rip),%rdi
mov    $0x2bc,%esi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@__const.arreglo.numero = [5 x i32] [i32 200, i32 150, i32 100, i32 -50, i32 300]
@.str = [15 x i8] c"Su suma es %d\0A\00"
define void @arreglo() {
%1 = alloca [5 x i32]
%2 = alloca i32
%3 = bitcast [5 x i32]* %1 to i8*
%4 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 0
%5 = load i32, i32* %4
%6 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 1
%7 = load i32, i32* %6
%8 = add nsw i32 %5, %7
%9 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 2
%10 = load i32, i32* %9
%11 = add nsw i32 %8, %10
%12 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 3
%13 = load i32, i32* %12
%14 = add nsw i32 %11, %13
%15 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 4
%16 = load i32, i32* %15
%17 = add nsw i32 %14, %16
store i32 %17, i32* %2
%18 = load i32, i32* %2
%19 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 %18)
ret void
}

LLVM IR (-O2):
@.str = [15 x i8] c"Su suma es %d\0A\00"
define void @arreglo() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 700)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint8_t;
typedef int /*<<< orphan*/ uint64_t;

/* Variables and functions */
int /*<<< orphan*/ libcperciva_le64dec(int /*<<< orphan*/ *);
uint64_t integerify(uint8_t *B, size_t r) {
  uint8_t *X = &B[(2 * r - 1) * 64];
  return (libcperciva_le64dec(X));
}


x86 assembly (clang, -O0):
<integerify>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rcx
shl    $0x1,%rcx
sub    $0x1,%rcx
shl    $0x6,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1030 <libcperciva_le64dec@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<integerify>:
shl    $0x9,%rsi
add    %rsi,%rdi
add    $0xffffffffffffff00,%rdi
jmp    1030 <libcperciva_le64dec@plt>

LLVM IR (-O0):
define i32 @integerify(i32* %0, i64 %1) {
%3 = alloca i32*
%4 = alloca i64
%5 = alloca i32*
store i32* %0, i32** %3
store i64 %1, i64* %4
%6 = load i32*, i32** %3
%7 = load i64, i64* %4
%8 = mul i64 2, %7
%9 = sub i64 %8, 1
%10 = mul i64 %9, 64
%11 = getelementptr inbounds i32, i32* %6, i64 %10
store i32* %11, i32** %5
%12 = load i32*, i32** %5
%13 = call i32 @libcperciva_le64dec(i32* %12)
ret i32 %13
}

LLVM IR (-O2):
define i32 @integerify(i32* %0, i64 %1) {
%3 = shl i64 %1, 7
%4 = add i64 %3, -64
%5 = getelementptr inbounds i32, i32* %0, i64 %4
%6 = tail call i32 @libcperciva_le64dec(i32* %5)
ret i32 %6
}
int ELF32_ST_INFO(int b, int t) { return (b << 4) + (t & 0xf); }


x86 assembly (clang, -O0):
<ELF32_ST_INFO>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
shl    $0x4,%eax
mov    -0x8(%rbp),%ecx
and    $0xf,%ecx
add    %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ELF32_ST_INFO>:
shl    $0x4,%edi
and    $0xf,%esi
lea    (%rsi,%rdi,1),%eax
ret

LLVM IR (-O0):
define i32 @ELF32_ST_INFO(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 = shl i32 %5, 4
%7 = load i32, i32* %4
%8 = and i32 %7, 15
%9 = add nsw i32 %6, %8
ret i32 %9
}

LLVM IR (-O2):
define i32 @ELF32_ST_INFO(i32 %0, i32 %1) {
%3 = shl i32 %0, 4
%4 = and i32 %1, 15
%5 = or i32 %4, %3
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ e(int /*<<< orphan*/);
void g(void) { e(0); }


x86 assembly (clang, -O0):
<g>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
call   1030 <e@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<g>:
xor    %edi,%edi
jmp    1030 <e@plt>

LLVM IR (-O0):
define void @g() {
%1 = call i32 @e(i32 0)
ret void
}

LLVM IR (-O2):
define void @g() {
%1 = tail call i32 @e(i32 0)
ret void
}
/* Variables and functions */
scalar_t__ exp(float);
scalar_t__ floor(scalar_t__);
float bico(int n, int k) {
  float factln(int n);
  return (float)floor(0.5 + exp(factln(n) - factln(k) - factln(n - k)));
}


x86 assembly (clang, -O0):
<bico>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <factln@plt>
movss  %xmm0,-0x10(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <factln@plt>
movaps %xmm0,%xmm1
movss  -0x10(%rbp),%xmm0
subss  %xmm1,%xmm0
movss  %xmm0,-0xc(%rbp)
mov    -0x4(%rbp),%edi
sub    -0x8(%rbp),%edi
call   1030 <factln@plt>
movaps %xmm0,%xmm1
movss  -0xc(%rbp),%xmm0
subss  %xmm1,%xmm0
call   1040 <exp@plt>
cvtsi2sd %rax,%xmm1
movsd  0xe73(%rip),%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%rdi
call   1050 <floor@plt>
cvtsi2ss %rax,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bico>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %edi,%ebp
call   1030 <factln@plt>
movss  %xmm0,0x4(%rsp)
mov    %ebx,%edi
call   1030 <factln@plt>
movss  0x4(%rsp),%xmm1
subss  %xmm0,%xmm1
movss  %xmm1,0x4(%rsp)
sub    %ebx,%ebp
mov    %ebp,%edi
call   1030 <factln@plt>
movss  0x4(%rsp),%xmm1
subss  %xmm0,%xmm1
movaps %xmm1,%xmm0
call   1040 <exp@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
addsd  0xe7c(%rip),%xmm0
cvttsd2si %xmm0,%rdi
call   1050 <floor@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define float @bico(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 = call float @factln(i32 %5)
%7 = load i32, i32* %4
%8 = call float @factln(i32 %7)
%9 = fsub float %6, %8
%10 = load i32, i32* %3
%11 = load i32, i32* %4
%12 = sub nsw i32 %10, %11
%13 = call float @factln(i32 %12)
%14 = fsub float %9, %13
%15 = call i64 @exp(float %14)
%16 = sitofp i64 %15 to double
%17 = fadd double 5.000000e-01, %16
%18 = fptosi double %17 to i64
%19 = call i64 @floor(i64 %18)
%20 = sitofp i64 %19 to float
ret float %20
}

LLVM IR (-O2):
define float @bico(i32 %0, i32 %1) {
%3 = tail call float @factln(i32 %0)
%4 = tail call float @factln(i32 %1)
%5 = fsub float %3, %4
%6 = sub nsw i32 %0, %1
%7 = tail call float @factln(i32 %6)
%8 = fsub float %5, %7
%9 = tail call i64 @exp(float %8)
%10 = sitofp i64 %9 to double
%11 = fadd double %10, 5.000000e-01
%12 = fptosi double %11 to i64
%13 = tail call i64 @floor(i64 %12)
%14 = sitofp i64 %13 to float
ret float %14
}
void send_role_swap_message(void *data, int cmd) {}


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

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

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

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