xunge/DecIR huggingface dataset:
/* Variables and functions */
double abs(const double value) {
  double rvalue = -value;
  if (value > 0)
    return value;
  return rvalue;
}


x86 assembly (clang, -O0):
<abs>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    114b <abs+0x4b>
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    1155 <abs+0x55>
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<abs>:
movapd 0xef8(%rip),%xmm1
xorpd  %xmm0,%xmm1
xorpd  %xmm2,%xmm2
cmpltsd %xmm0,%xmm2
andpd  %xmm2,%xmm0
andnpd %xmm1,%xmm2
orpd   %xmm2,%xmm0
ret

LLVM IR (-O0):
define double @abs(double %0) {
%2 = alloca double
%3 = alloca double
%4 = alloca double
store double %0, double* %3
%5 = load double, double* %3
%6 = fneg double %5
store double %6, double* %4
%7 = load double, double* %3
%8 = fcmp ogt double %7, 0.000000e+00
br i1 %8, label %9, label %11
9: ; preds = %1
%10 = load double, double* %3
store double %10, double* %2
br label %13
11: ; preds = %1
%12 = load double, double* %4
store double %12, double* %2
br label %13
13: ; preds = %11, %9
%14 = load double, double* %2
ret double %14
}

LLVM IR (-O2):
define double @abs(double %0) {
%2 = fcmp ogt double %0, 0.000000e+00
%3 = fneg double %0
%4 = select i1 %2, double %0, double %3
ret double %4
}
void fill(int x, int y) {}


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

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

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

LLVM IR (-O2):
define void @fill(i32 %0, i32 %1) {
ret void
}
int m_lower(c)
int c;
{
  if (c >= 'A' && c <= 'Z')
    c += 'a' - 'A';
  return (c);
}


x86 assembly (clang, -O0):
<m_lower>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
cmpl   $0x41,-0x4(%rbp)
jl     1124 <m_lower+0x24>
cmpl   $0x5a,-0x4(%rbp)
jg     1124 <m_lower+0x24>
mov    -0x4(%rbp),%eax
add    $0x20,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<m_lower>:
lea    -0x41(%rdi),%ecx
lea    0x20(%rdi),%eax
cmp    $0x1a,%ecx
cmovae %edi,%eax
ret

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

LLVM IR (-O2):
define i32 @m_lower(i32 %0) {
%2 = add i32 %0, -65
%3 = icmp ult i32 %2, 26
%4 = add nsw i32 %0, 32
%5 = select i1 %3, i32 %4, i32 %0
ret i32 %5
}
void memset_soc(void *s, char c, int count) {
  char *xs = (char *)s;
  while (count--)
    *xs++ = c;
}


x86 assembly (clang, -O0):
<memset_soc>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %rdi,-0x8(%rbp)
mov    %al,-0x9(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x10(%rbp)
cmp    $0x0,%eax
je     1146 <memset_soc+0x46>
mov    -0x9(%rbp),%cl
mov    -0x18(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x18(%rbp)
mov    %cl,(%rax)
jmp    1119 <memset_soc+0x19>
pop    %rbp
ret

x86 assembly (clang, -O2):
<memset_soc>:
test   %edx,%edx
je     1124 <memset_soc+0x14>
push   %rax
mov    %edx,%edx
movzbl %sil,%esi
call   1030 <memset@plt>
add    $0x8,%rsp
ret

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

LLVM IR (-O2):
define void @memset_soc(i8* nocapture writeonly %0, i8 signext %1, i32 %2) {
%4 = icmp eq i32 %2, 0
br i1 %4, label %7, label %5
5: ; preds = %3
%6 = zext i32 %2 to i64
br label %7
7: ; preds = %5, %3
ret void
}
/* Variables and functions */
int EXIT_FAILURE;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int ordenar(char const *);
int /*<<< orphan*/ stderr;
int main(int argc, char const *argv[]) {
  if (argc != 2) {
    fprintf(stderr, "Nome base do arquivo nao especificado!\n");
    return EXIT_FAILURE;
  }
  return ordenar(argv[1]);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     1166 <main+0x46>
mov    0x2e99(%rip),%rax
mov    (%rax),%edi
lea    0xeb0(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e7c(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1176 <main+0x56>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1040 <ordenar@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
cmp    $0x2,%edi
jne    1130 <main+0x10>
mov    0x8(%rsi),%rdi
pop    %rax
jmp    1040 <ordenar@plt>
mov    0x2ea9(%rip),%rax
mov    (%rax),%edi
lea    0xec0(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e8c(%rip),%rax
mov    (%rax),%eax
pop    %rcx
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [40 x i8] c"Nome base do arquivo nao especificado!\0A\00"
@EXIT_FAILURE = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i32, i32* %4
%7 = icmp ne i32 %6, 2
br i1 %7, label %8, label %12
8: ; preds = %2
%9 = load i32, i32* @stderr
%10 = call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%11 = load i32, i32* @EXIT_FAILURE
store i32 %11, i32* %3
br label %17
12: ; preds = %2
%13 = load i8**, i8*** %5
%14 = getelementptr inbounds i8*, i8** %13, i64 1
%15 = load i8*, i8** %14
%16 = call i32 @ordenar(i8* %15)
store i32 %16, i32* %3
br label %17
17: ; preds = %12, %8
%18 = load i32, i32* %3
ret i32 %18
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [40 x i8] c"Nome base do arquivo nao especificado!\0A\00"
@EXIT_FAILURE = global i32 0
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 2
br i1 %3, label %8, label %4
4: ; preds = %2
%5 = load i32, i32* @stderr
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%7 = load i32, i32* @EXIT_FAILURE
br label %12
8: ; preds = %2
%9 = getelementptr inbounds i8*, i8** %1, i64 1
%10 = load i8*, i8** %9
%11 = tail call i32 @ordenar(i8* %10)
br label %12
12: ; preds = %8, %4
%13 = phi i32 [ %7, %4 ], [ %11, %8 ]
ret i32 %13
}
int main(int argc, const char **argv) { return 1; }


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x1,%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
ret i32 1
}
unsigned xrop3_198_0_1(unsigned char s, unsigned char t) {
  unsigned D = 0x00ff;
  unsigned S = ((unsigned)s << 8) | s;
  unsigned T = ((unsigned)t << 8) | t;
  unsigned stk1;
  unsigned stk2;
  unsigned stk3;
  stk3 = ~T;
  stk2 = D & stk3;
  stk1 = S ^ stk2;
  return (stk1 & S) | (stk1 & (~T)) | (T & (~S) & D);
}


x86 assembly (clang, -O0):
<xrop3_198_0_1>:
push   %rbp
mov    %rsp,%rbp
mov    %sil,%al
mov    %dil,%cl
mov    %cl,-0x1(%rbp)
mov    %al,-0x2(%rbp)
movl   $0xff,-0x8(%rbp)
movzbl -0x1(%rbp),%eax
shl    $0x8,%eax
movzbl -0x1(%rbp),%ecx
or     %ecx,%eax
mov    %eax,-0xc(%rbp)
movzbl -0x2(%rbp),%eax
shl    $0x8,%eax
movzbl -0x2(%rbp),%ecx
or     %ecx,%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
xor    $0xffffffff,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%eax
and    -0x1c(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0xc(%rbp),%eax
xor    -0x18(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
and    -0xc(%rbp),%eax
mov    -0x14(%rbp),%ecx
mov    -0x10(%rbp),%edx
xor    $0xffffffff,%edx
and    %edx,%ecx
or     %ecx,%eax
mov    -0x10(%rbp),%ecx
mov    -0xc(%rbp),%edx
xor    $0xffffffff,%edx
and    %edx,%ecx
and    -0x8(%rbp),%ecx
or     %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<xrop3_198_0_1>:
mov    %edi,%eax
shl    $0x8,%eax
or     %edi,%eax
mov    %esi,%ecx
shl    $0x8,%ecx
or     %esi,%ecx
not    %ecx
mov    %eax,%edx
xor    %esi,%edx
xor    $0xff,%edx
or     %eax,%ecx
and    %edx,%ecx
not    %eax
and    %esi,%eax
or     %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @xrop3_198_0_1(i8 zeroext %0, i8 zeroext %1) {
%3 = zext i8 %0 to i32
%4 = mul nuw nsw i32 %3, 257
%5 = zext i8 %1 to i32
%6 = mul nuw nsw i32 %5, 257
%7 = xor i32 %6, -1
%8 = xor i32 %4, %5
%9 = xor i32 %8, 255
%10 = or i32 %4, %7
%11 = and i32 %10, %9
%12 = xor i32 %4, -1
%13 = and i32 %12, %5
%14 = or i32 %11, %13
ret i32 %14
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void fun(void) { printf("Weak defined\n"); }


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

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

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

LLVM IR (-O2):
@str = [13 x i8] c"Weak defined\00"
define void @fun() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str, i64 0, i64 0))
ret void
}
unsigned long reverseBits_fun_ulong(unsigned long x) {
  unsigned long r = x;
  int i = 39;
  while (x >>= 1) {
    r = (r << 1) | (x & 1);
    --i;
  }
  return r << i;
}


x86 assembly (clang, -O0):
<reverseBits_fun_ulong>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
movl   $0x27,-0x14(%rbp)
mov    -0x8(%rbp),%rax
shr    $0x1,%rax
mov    %rax,-0x8(%rbp)
cmp    $0x0,%rax
je     1152 <reverseBits_fun_ulong+0x52>
mov    -0x10(%rbp),%rax
shl    $0x1,%rax
mov    -0x8(%rbp),%rcx
and    $0x1,%rcx
or     %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x14(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x14(%rbp)
jmp    1117 <reverseBits_fun_ulong+0x17>
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
shl    %cl,%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<reverseBits_fun_ulong>:
mov    $0x27,%ecx
cmp    $0x2,%rdi
jae    1112 <reverseBits_fun_ulong+0x12>
mov    %rdi,%rax
shl    %cl,%rax
ret
mov    $0x27,%ecx
mov    %rdi,%rax
mov    %rdi,%rdx
nopl   (%rax)
shr    %rdx
mov    %edx,%esi
and    $0x1,%esi
lea    (%rsi,%rax,2),%rax
add    $0xffffffff,%ecx
cmp    $0x3,%rdi
mov    %rdx,%rdi
ja     1120 <reverseBits_fun_ulong+0x20>
mov    %ecx,%ecx
shl    %cl,%rax
ret

LLVM IR (-O0):
define i64 @reverseBits_fun_ulong(i64 %0) {
%2 = alloca i64
%3 = alloca i64
%4 = alloca i32
store i64 %0, i64* %2
%5 = load i64, i64* %2
store i64 %5, i64* %3
store i32 39, i32* %4
br label %6
6: ; preds = %10, %1
%7 = load i64, i64* %2
%8 = lshr i64 %7, 1
store i64 %8, i64* %2
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %18
10: ; preds = %6
%11 = load i64, i64* %3
%12 = shl i64 %11, 1
%13 = load i64, i64* %2
%14 = and i64 %13, 1
%15 = or i64 %12, %14
store i64 %15, i64* %3
%16 = load i32, i32* %4
%17 = add nsw i32 %16, -1
store i32 %17, i32* %4
br label %6
18: ; preds = %6
%19 = load i64, i64* %3
%20 = load i32, i32* %4
%21 = zext i32 %20 to i64
%22 = shl i64 %19, %21
ret i64 %22
}

LLVM IR (-O2):
define i64 @reverseBits_fun_ulong(i64 %0) {
%2 = icmp ult i64 %0, 2
br i1 %2, label %15, label %3
3: ; preds = %1, %3
%4 = phi i64 [ %7, %3 ], [ %0, %1 ]
%5 = phi i32 [ %11, %3 ], [ 39, %1 ]
%6 = phi i64 [ %10, %3 ], [ %0, %1 ]
%7 = lshr i64 %4, 1
%8 = shl i64 %6, 1
%9 = and i64 %7, 1
%10 = or i64 %8, %9
%11 = add nsw i32 %5, -1
%12 = icmp ult i64 %4, 4
br i1 %12, label %13, label %3
13: ; preds = %3
%14 = zext i32 %11 to i64
br label %15
15: ; preds = %13, %1
%16 = phi i64 [ %0, %1 ], [ %10, %13 ]
%17 = phi i64 [ 39, %1 ], [ %14, %13 ]
%18 = shl i64 %16, %17
ret i64 %18
}
/* Variables and functions */
int /*<<< orphan*/ ClearWinSock();
int /*<<< orphan*/ ErrorHandler(char *);
int /*<<< orphan*/ close(int);
scalar_t__ listen(int, int);
int setSocketInAscolto(int serverSocket) {
  int esito = 0;
  if (listen(serverSocket, 6) < 0) {
    ErrorHandler("listen() failed.\n");
    close(serverSocket);
    ClearWinSock();
    esito = 1;
  }
  return (esito);
}


x86 assembly (clang, -O0):
<setSocketInAscolto>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x6,%esi
call   1060 <listen@plt>
cmp    $0x0,%rax
jge    118b <setSocketInAscolto+0x4b>
lea    0xe90(%rip),%rdi
call   1050 <ErrorHandler@plt>
mov    -0x4(%rbp),%edi
call   1030 <close@plt>
mov    $0x0,%al
call   1040 <ClearWinSock@plt>
movl   $0x1,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<setSocketInAscolto>:
push   %rbx
mov    %edi,%ebx
mov    $0x6,%esi
call   1060 <listen@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
js     1159 <setSocketInAscolto+0x19>
pop    %rbx
ret
lea    0xea0(%rip),%rdi
call   1050 <ErrorHandler@plt>
mov    %ebx,%edi
call   1030 <close@plt>
xor    %eax,%eax
call   1040 <ClearWinSock@plt>
mov    $0x1,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [18 x i8] c"listen() failed.\0A\00"
define i32 @setSocketInAscolto(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
store i32 0, i32* %3
%4 = load i32, i32* %2
%5 = call i64 @listen(i32 %4, i32 6)
%6 = icmp slt i64 %5, 0
br i1 %6, label %7, label %12
7: ; preds = %1
%8 = call i32 @ErrorHandler(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%9 = load i32, i32* %2
%10 = call i32 @close(i32 %9)
%11 = call i32 (...) @ClearWinSock()
store i32 1, i32* %3
br label %12
12: ; preds = %7, %1
%13 = load i32, i32* %3
ret i32 %13
}

LLVM IR (-O2):
@.str = [18 x i8] c"listen() failed.\0A\00"
define i32 @setSocketInAscolto(i32 %0) {
%2 = tail call i64 @listen(i32 %0, i32 6)
%3 = icmp slt i64 %2, 0
br i1 %3, label %4, label %8
4: ; preds = %1
%5 = tail call i32 @ErrorHandler(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%6 = tail call i32 @close(i32 %0)
%7 = tail call i32 (...) @ClearWinSock()
br label %8
8: ; preds = %4, %1
%9 = phi i32 [ 1, %4 ], [ 0, %1 ]
ret i32 %9
}
void RTReqSubmit(void) {}


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

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

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

LLVM IR (-O2):
define void @RTReqSubmit() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ BackTrack(int);
int atoi(char *);
int /*<<< orphan*/ printf(char *, int, char *);
int main(int argc, char **argv) {
  int n = 8;
  printf("%d -%s- \n", argc, argv[1]);
  if (argc > 1) {
    n = atoi(argv[1]);
  }
  BackTrack(n);
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x8,-0x14(%rbp)
mov    -0x8(%rbp),%esi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xea1(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x1,-0x8(%rbp)
jle    117e <main+0x4e>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1050 <atoi@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
call   1040 <BackTrack@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
mov    0x8(%rsi),%rdx
lea    0xebd(%rip),%rdi
mov    %ebp,%esi
call   1030 <printf@plt>
mov    $0x8,%edi
cmp    $0x2,%ebp
jl     115f <main+0x2f>
mov    0x8(%rbx),%rdi
call   1050 <atoi@plt>
mov    %eax,%edi
call   1040 <BackTrack@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [10 x i8] c"%d -%s- \0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = getelementptr inbounds i8*, i8** %1, i64 1
%4 = load i8*, i8** %3
%5 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %0, i8* %4)
%6 = icmp sgt i32 %0, 1
br i1 %6, label %7, label %10
7: ; preds = %2
%8 = load i8*, i8** %3
%9 = tail call i32 @atoi(i8* %8)
br label %10
10: ; preds = %7, %2
%11 = phi i32 [ %9, %7 ], [ 8, %2 ]
%12 = tail call i32 @BackTrack(i32 %11)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main() {
  int i;
  i = 1 * 2 * 3 * 4 * 5 * 6 * 7 * 8 * 9 * 10;
  printf("10!=%d /n", i);
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x375f00,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xed0(%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
mov    $0x375f00,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [10 x i8] c"10!=%d /n\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 3628800, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %3)
ret i32 0
}

LLVM IR (-O2):
@.str = [10 x i8] c"10!=%d /n\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 3628800)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ atoi(char *);
int /*<<< orphan*/ imm(int /*<<< orphan*/);
int /*<<< orphan*/ push(int /*<<< orphan*/);
void immediate(char *token) { push(imm(atoi(token + 2))); }


x86 assembly (clang, -O0):
<immediate>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
add    $0x2,%rdi
call   1050 <atoi@plt>
mov    %eax,%edi
call   1030 <imm@plt>
mov    %eax,%edi
call   1040 <push@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<immediate>:
push   %rax
add    $0x2,%rdi
call   1050 <atoi@plt>
mov    %eax,%edi
call   1030 <imm@plt>
mov    %eax,%edi
pop    %rax
jmp    1040 <push@plt>

LLVM IR (-O0):
define void @immediate(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = getelementptr inbounds i8, i8* %3, i64 2
%5 = call i32 @atoi(i8* %4)
%6 = call i32 @imm(i32 %5)
%7 = call i32 @push(i32 %6)
ret void
}

LLVM IR (-O2):
define void @immediate(i8* nocapture %0) {
%2 = getelementptr inbounds i8, i8* %0, i64 2
%3 = tail call i32 @atoi(i8* %2)
%4 = tail call i32 @imm(i32 %3)
%5 = tail call i32 @push(i32 %4)
ret void
}
void disable_smartreflex(int srid) {}


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

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

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

LLVM IR (-O2):
define void @disable_smartreflex(i32 %0) {
ret void
}
int maximum(int a, int b) {
  if (a > b)
    return a;
  else
    return b;
}


x86 assembly (clang, -O0):
<maximum>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jle    1121 <maximum+0x21>
mov    -0x8(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1127 <maximum+0x27>
mov    -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

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

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

LLVM IR (-O2):
define i32 @maximum(i32 %0, i32 %1) {
%3 = icmp sgt i32 %0, %1
%4 = select i1 %3, i32 %0, i32 %1
ret i32 %4
}
/* Variables and functions */
int getpid();
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ wait(int *);
void sig_child(int signo) {
  int status;
  wait(&status);
  printf("in sig_child:pid = %d\n", getpid());
}


x86 assembly (clang, -O0):
<sig_child>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
lea    -0x8(%rbp),%rdi
call   1050 <wait@plt>
mov    $0x0,%al
call   1030 <getpid@plt>
mov    %eax,%esi
lea    0xeac(%rip),%rdi
call   1040 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sig_child>:
push   %rax
lea    0x4(%rsp),%rdi
call   1050 <wait@plt>
xor    %eax,%eax
call   1030 <getpid@plt>
lea    0xeb7(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
pop    %rax
ret

LLVM IR (-O0):
@.str = [23 x i8] c"in sig_child:pid = %d\0A\00"
define void @sig_child(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = call i32 @wait(i32* %3)
%5 = call i32 (...) @getpid()
%6 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %5)
ret void
}

LLVM IR (-O2):
@.str = [23 x i8] c"in sig_child:pid = %d\0A\00"
define void @sig_child(i32 %0) {
%2 = alloca i32
%3 = bitcast i32* %2 to i8*
%4 = call i32 @wait(i32* %2)
%5 = call i32 (...) @getpid()
%6 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %5)
ret void
}
void ScaleARGBCols_SSE2() {}


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

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

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

LLVM IR (-O2):
define void @ScaleARGBCols_SSE2() {
ret void
}
/* Variables and functions */
int majorityElement(int *, int);
int /*<<< orphan*/ printf(char *, int);
int main() {
  int nums1[5] = {6, 6, 6, 7, 7};
  printf("%d\n", majorityElement(nums1, 5));
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    0xed1(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xece(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xecc(%rip),%eax
mov    %eax,-0x10(%rbp)
lea    -0x20(%rbp),%rdi
mov    $0x5,%esi
call   1040 <majorityElement@plt>
mov    %eax,%esi
lea    0xeb6(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
mov    0xee6(%rip),%eax
mov    %eax,0x10(%rsp)
movaps 0xecb(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rdi
mov    $0x5,%esi
call   1040 <majorityElement@plt>
lea    0xec7(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

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

LLVM IR (-O2):
@__const.main.nums1 = [5 x i32] [i32 6, i32 6, i32 6, i32 7, i32 7]
@.str = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca [5 x i32]
%2 = bitcast [5 x i32]* %1 to i8*
%3 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 0
%4 = call i32 @majorityElement(i32* %3, i32 5)
%5 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %4)
ret i32 0
}
/* Variables and functions */
int _ada_use_c2phc4c(int, int *, int *, double *, int /*<<< orphan*/);
int syscon_clear_standard_Laurent_system(void) {
  int *a, *b, fail;
  double *c;
  fail = _ada_use_c2phc4c(127, a, b, c, 0);
  return fail;
}


x86 assembly (clang, -O0):
<syscon_clear_standard_Laurent_system>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    $0x7f,%edi
xor    %r8d,%r8d
call   1030 <_ada_use_c2phc4c@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<syscon_clear_standard_Laurent_system>:
mov    $0x7f,%edi
xor    %r8d,%r8d
jmp    1030 <_ada_use_c2phc4c@plt>

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

LLVM IR (-O2):
define i32 @syscon_clear_standard_Laurent_system() {
%1 = tail call i32 @_ada_use_c2phc4c(i32 127, i32* undef, i32* undef, double* undef, i32 0)
ret i32 %1
}
/* Variables and functions */
int /*<<< orphan*/ outdent();
void on_dict_end(void *ctx, const char *code, const char *name) { outdent(); }


x86 assembly (clang, -O0):
<on_dict_end>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    $0x0,%al
call   1030 <outdent@plt>
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define void @on_dict_end(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%7 = call i32 (...) @outdent()
ret void
}

LLVM IR (-O2):
define void @on_dict_end(i8* nocapture readnone %0, i8* nocapture readnone %1, i8* nocapture readnone %2) {
%4 = tail call i32 (...) @outdent()
ret void
}
int spawnve(mode, cmdname, argv, envp)
int mode;
const char *cmdname;
char **argv;
const char *const *envp;
{ _spawnve(mode, cmdname, fix_argv(argv), envp); }


x86 assembly (clang, -O0):
<spawnve>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x18(%rbp),%rdi
mov    $0x0,%al
call   1040 <fix_argv@plt>
mov    -0x2c(%rbp),%edi
mov    -0x28(%rbp),%rsi
mov    %eax,%edx
mov    -0x20(%rbp),%rcx
mov    $0x0,%al
call   1030 <_spawnve@plt>
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<spawnve>:
push   %rbp
push   %r14
push   %rbx
mov    %rcx,%r14
mov    %rsi,%rbx
mov    %edi,%ebp
mov    %rdx,%rdi
xor    %eax,%eax
call   1040 <fix_argv@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %eax,%edx
mov    %r14,%rcx
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <_spawnve@plt>

LLVM IR (-O0):
define i32 @spawnve(i32 %0, i8* %1, i8** %2, i8** %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i8**
%9 = alloca i8**
store i32 %0, i32* %6
store i8* %1, i8** %7
store i8** %2, i8*** %8
store i8** %3, i8*** %9
%10 = load i32, i32* %6
%11 = load i8*, i8** %7
%12 = load i8**, i8*** %8
%13 = call i32 (i8**, ...) bitcast (i32 (...)* @fix_argv to i32 (i8**, ...)*)(i8** %12)
%14 = load i8**, i8*** %9
%15 = call i32 (i32, i8*, i32, i8**, ...) bitcast (i32 (...)* @_spawnve to i32 (i32, i8*, i32, i8**, ...)*)(i32 %10, i8* %11, i32 %13, i8** %14)
%16 = load i32, i32* %5
ret i32 %16
}

LLVM IR (-O2):
define i32 @spawnve(i32 %0, i8* %1, i8** %2, i8** %3) {
%5 = tail call i32 (i8**, ...) bitcast (i32 (...)* @fix_argv to i32 (i8**, ...)*)(i8** %2)
%6 = tail call i32 (i32, i8*, i32, i8**, ...) bitcast (i32 (...)* @_spawnve to i32 (i32, i8*, i32, i8**, ...)*)(i32 %0, i8* %1, i32 %5, i8** %3)
ret i32 undef
}
/* Variables and functions */
size_t get_data_tag_in_Stipulations(size_t __tag) {
  (void)__tag;
  return 0;
}


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

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

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

LLVM IR (-O2):
define i64 @get_data_tag_in_Stipulations(i64 %0) {
ret i64 0
}
/* Variables and functions */
int /*<<< orphan*/ free(void *);
void free_dbhandle(void *dbhandle) { free(dbhandle); }


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

x86 assembly (clang, -O2):
<free_dbhandle>:
jmp    1030 <free@plt>

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

LLVM IR (-O2):
define void @free_dbhandle(i8* nocapture %0) {
%2 = tail call i32 @free(i8* %0)
ret void
}
void gpio_setup(void) {
  *((volatile unsigned long *)(0x10000000 + 0x80)) = 0x00000000;
  *((volatile unsigned short *)(0x10000000 + 0x84)) = 0x7E80;
  *((volatile unsigned long *)(0x10000000 + 0x88)) = 0x55554155;
  *((volatile unsigned short *)(0x10000000 + 0x8C)) = 0x0000;
}


x86 assembly (clang, -O0):
<gpio_setup>:
push   %rbp
mov    %rsp,%rbp
mov    $0x10000080,%eax
movq   $0x0,(%rax)
mov    $0x10000084,%eax
movw   $0x7e80,(%rax)
mov    $0x10000088,%eax
movq   $0x55554155,(%rax)
mov    $0x1000008c,%eax
movw   $0x0,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<gpio_setup>:
movq   $0x0,0x10000080
movw   $0x7e80,0x10000084
10 80 7e
movq   $0x55554155,0x10000088
10 55 41 55 55
movw   $0x0,0x1000008c
ret

LLVM IR (-O0):
define void @gpio_setup() {
store volatile i64 0, i64* inttoptr (i64 268435584 to i64*)
store volatile i16 32384, i16* inttoptr (i64 268435588 to i16*)
store volatile i64 1431650645, i64* inttoptr (i64 268435592 to i64*)
store volatile i16 0, i16* inttoptr (i64 268435596 to i16*)
ret void
}

LLVM IR (-O2):
define void @gpio_setup() {
store volatile i64 0, i64* inttoptr (i64 268435584 to i64*)
store volatile i16 32384, i16* inttoptr (i64 268435588 to i16*)
store volatile i64 1431650645, i64* inttoptr (i64 268435592 to i64*)
store volatile i16 0, i16* inttoptr (i64 268435596 to i16*)
ret void
}
void L4_KDB_PrintString(char *arg) {
  __asm__ __volatile__("/* L4_KDB_"
                       "PrintString"
                       "() */		\n"
                       "	int	$3		\n"
                       "	cmpb	%1, %%al	\n"
                       :
                       : "a"(arg), "i"(0x01));
}


x86 assembly (clang, -O0):
<L4_KDB_PrintString>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
int3
cmp    $0x1,%al
pop    %rbp
ret

x86 assembly (clang, -O2):
<L4_KDB_PrintString>:
mov    %rdi,%rax
int3
cmp    $0x1,%al
ret

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

LLVM IR (-O2):
define void @L4_KDB_PrintString(i8* %0) {
tail call void asm sideeffect "/* L4_KDB_PrintString() */\09\09\0A\09int\09$$3\09\09\0A\09cmpb\09$1, %al\09\0A", "{ax},i,~{dirflag},~{fpsr},~{flags}"(i8* %0, i32 1)
ret void
}
void foo(int n, int i) {
  int A[n];
#pragma omp parallel private(A)
  { A[i] = 0; }
}


x86 assembly (clang, -O0):
<foo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,%ecx
mov    %rsp,%rax
mov    %rax,-0x10(%rbp)
lea    0xf(,%rcx,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rax
sub    %rdx,%rax
mov    %rax,%rsp
mov    %rcx,-0x18(%rbp)
movslq -0x8(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
mov    -0x10(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
define void @foo(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i64
store i32 %0, i32* %3
store i32 %1, i32* %4
%7 = load i32, i32* %3
%8 = zext i32 %7 to i64
%9 = call i8* @llvm.stacksave()
store i8* %9, i8** %5
%10 = alloca i32, i64 %8
store i64 %8, i64* %6
%11 = load i32, i32* %4
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds i32, i32* %10, i64 %12
store i32 0, i32* %13
%14 = load i8*, i8** %5
ret void
}

LLVM IR (-O2):
define void @foo(i32 %0, i32 %1) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ free(void *);
void sn_free(void *ptr) { free(ptr); }


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

x86 assembly (clang, -O2):
<sn_free>:
jmp    1030 <free@plt>

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

LLVM IR (-O2):
define void @sn_free(i8* nocapture %0) {
%2 = tail call i32 @free(i8* %0)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ g_time3();
int /*<<< orphan*/ g_write(char *, int /*<<< orphan*/);
int /*<<< orphan*/ g_writeln(char *);
int scard_pcsc_init();
int scard_init(void) {
  {
    if (0 < 1) {
      g_write("xrdp-chansrv [%10.10u]: ", g_time3());
      g_writeln("scard_init:");
    }
  };
  return scard_pcsc_init();
}


x86 assembly (clang, -O0):
<scard_init>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <g_time3@plt>
mov    %eax,%esi
lea    0xeac(%rip),%rdi
call   1050 <g_write@plt>
lea    0xeb9(%rip),%rdi
call   1040 <g_writeln@plt>
mov    $0x0,%al
call   1060 <scard_pcsc_init@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<scard_init>:
push   %rax
xor    %eax,%eax
call   1030 <g_time3@plt>
lea    0xeb1(%rip),%rdi
mov    %eax,%esi
call   1050 <g_write@plt>
lea    0xebc(%rip),%rdi
call   1040 <g_writeln@plt>
xor    %eax,%eax
pop    %rcx
jmp    1060 <scard_pcsc_init@plt>

LLVM IR (-O0):
@.str = [25 x i8] c"xrdp-chansrv [%10.10u]: \00"
@.str.1 = [12 x i8] c"scard_init:\00"
define i32 @scard_init() {
%1 = call i32 (...) @g_time3()
%2 = call i32 @g_write(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = call i32 @g_writeln(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 (...) @scard_pcsc_init()
ret i32 %4
}

LLVM IR (-O2):
@.str = [25 x i8] c"xrdp-chansrv [%10.10u]: \00"
@.str.1 = [12 x i8] c"scard_init:\00"
define i32 @scard_init() {
%1 = tail call i32 (...) @g_time3()
%2 = tail call i32 @g_write(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = tail call i32 @g_writeln(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 (...) @scard_pcsc_init()
ret i32 %4
}
void gtk_tree_selection_get_tree_view() {}


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

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

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

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

/* Variables and functions */
int /*<<< orphan*/ translate_T1(int /*<<< orphan*/ *, int /*<<< orphan*/ *);
int /*<<< orphan*/ translate_V(int /*<<< orphan*/ *, int /*<<< orphan*/ *);
void translate_T(FILE *src, FILE *out) {
  translate_V(src, out);
  translate_T1(src, out);
}


x86 assembly (clang, -O0):
<translate_T>:
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   1040 <translate_V@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <translate_T1@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<translate_T>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
call   1040 <translate_V@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <translate_T1@plt>

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

LLVM IR (-O2):
define void @translate_T(i32* %0, i32* %1) {
%3 = tail call i32 @translate_V(i32* %0, i32* %1)
%4 = tail call i32 @translate_T1(i32* %0, i32* %1)
ret void
}
void debugf(const char *fmt, ...) {}


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

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

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

LLVM IR (-O2):
define void @debugf(i8* nocapture %0, ...) {
ret void
}
/* Type definitions */
typedef int uint16_t;

/* Variables and functions */
uint16_t valueAOut_E1608(double volts) {
  if (volts >= 10.0) {
    return 0xffff;
  } else if (volts <= -10.00) {
    return 0x0;
  } else {
    return (uint16_t)(volts * 32768 / 10. + 0x8000);
  }
}


x86 assembly (clang, -O0):
<valueAOut_E1608>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xeea(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     112c <valueAOut_E1608+0x2c>
movl   $0xffff,-0x4(%rbp)
jmp    1177 <valueAOut_E1608+0x77>
movsd  0xed4(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jb     114b <valueAOut_E1608+0x4b>
movl   $0x0,-0x4(%rbp)
jmp    1177 <valueAOut_E1608+0x77>
movsd  0xebd(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  0xea0(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0xea4(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<valueAOut_E1608>:
mov    $0xffff,%eax
ucomisd 0xef3(%rip),%xmm0
jae    113b <valueAOut_E1608+0x3b>
xor    %eax,%eax
movsd  0xeef(%rip),%xmm1
ucomisd %xmm0,%xmm1
jae    113b <valueAOut_E1608+0x3b>
movsd  0xee9(%rip),%xmm1
mulsd  %xmm1,%xmm0
divsd  0xecd(%rip),%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
ret

LLVM IR (-O0):
define i32 @valueAOut_E1608(double %0) {
%2 = alloca i32
%3 = alloca double
store double %0, double* %3
%4 = load double, double* %3
%5 = fcmp oge double %4, 1.000000e+01
br i1 %5, label %6, label %7
6: ; preds = %1
store i32 65535, i32* %2
br label %17
7: ; preds = %1
%8 = load double, double* %3
%9 = fcmp ole double %8, -1.000000e+01
br i1 %9, label %10, label %11
10: ; preds = %7
store i32 0, i32* %2
br label %17
11: ; preds = %7
%12 = load double, double* %3
%13 = fmul double %12, 3.276800e+04
%14 = fdiv double %13, 1.000000e+01
%15 = fadd double %14, 3.276800e+04
%16 = fptosi double %15 to i32
store i32 %16, i32* %2
br label %17
17: ; preds = %11, %10, %6
%18 = load i32, i32* %2
ret i32 %18
}

LLVM IR (-O2):
define i32 @valueAOut_E1608(double %0) {
%2 = fcmp ult double %0, 1.000000e+01
br i1 %2, label %3, label %10
3: ; preds = %1
%4 = fcmp ugt double %0, -1.000000e+01
br i1 %4, label %5, label %10
5: ; preds = %3
%6 = fmul double %0, 3.276800e+04
%7 = fdiv double %6, 1.000000e+01
%8 = fadd double %7, 3.276800e+04
%9 = fptosi double %8 to i32
br label %10
10: ; preds = %3, %1, %5
%11 = phi i32 [ %9, %5 ], [ 65535, %1 ], [ 0, %3 ]
ret i32 %11
}
/* Variables and functions */
int /*<<< orphan*/ O_RDONLY;
int open(char *, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, char *);
int open_file(char *filename) {
  int fd;
  if ((fd = open(filename, O_RDONLY)) == -1) {
    printf("Can't open %s for reading\n", filename);
    return -1;
  }
  return fd;
}


x86 assembly (clang, -O0):
<open_file>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    0x2eb1(%rip),%rax
mov    (%rax),%esi
call   1040 <open@plt>
mov    %eax,-0x14(%rbp)
cmp    $0xffffffff,%eax
jne    1166 <open_file+0x46>
mov    -0x10(%rbp),%rsi
lea    0xeab(%rip),%rdi
call   1030 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    116c <open_file+0x4c>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<open_file>:
push   %rbp
push   %rbx
push   %rax
mov    %rdi,%rbx
mov    0x2ebb(%rip),%rax
mov    (%rax),%esi
call   1040 <open@plt>
mov    %eax,%ebp
cmp    $0xffffffff,%eax
jne    114a <open_file+0x2a>
lea    0xebe(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@O_RDONLY = global i32 0
@.str = [27 x i8] c"Can't open %s for reading\0A\00"
define i32 @open_file(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
%5 = load i8*, i8** %3
%6 = load i32, i32* @O_RDONLY
%7 = call i32 @open(i8* %5, i32 %6)
store i32 %7, i32* %4
%8 = icmp eq i32 %7, -1
br i1 %8, label %9, label %12
9: ; preds = %1
%10 = load i8*, i8** %3
%11 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* %10)
store i32 -1, i32* %2
br label %14
12: ; preds = %1
%13 = load i32, i32* %4
store i32 %13, i32* %2
br label %14
14: ; preds = %12, %9
%15 = load i32, i32* %2
ret i32 %15
}

LLVM IR (-O2):
@O_RDONLY = global i32 0
@.str = [27 x i8] c"Can't open %s for reading\0A\00"
define i32 @open_file(i8* %0) {
%2 = load i32, i32* @O_RDONLY
%3 = tail call i32 @open(i8* %0, i32 %2)
%4 = icmp eq i32 %3, -1
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* %0)
br label %7
7: ; preds = %1, %5
ret i32 %3
}
/* Variables and functions */
int /*<<< orphan*/ assert(int /*<<< orphan*/);
void kunmap_atomic(void *addr) { assert(0); }


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

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

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

LLVM IR (-O2):
define void @kunmap_atomic(i8* nocapture readnone %0) {
%2 = tail call i32 @assert(i32 0)
ret void
}
/* Variables and functions */
int COORD_XY(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ FILE_FLIP(int /*<<< orphan*/);
int /*<<< orphan*/ FILE_X(int);
int /*<<< orphan*/ RANK_Y(int);
int MIRROR_SQUARE(int sq) {
  return COORD_XY(FILE_FLIP(FILE_X(sq)), RANK_Y(sq));
}


x86 assembly (clang, -O0):
<MIRROR_SQUARE>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1060 <FILE_X@plt>
mov    %eax,%edi
call   1050 <FILE_FLIP@plt>
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%edi
call   1030 <RANK_Y@plt>
mov    -0x8(%rbp),%edi
mov    %eax,%esi
call   1040 <COORD_XY@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<MIRROR_SQUARE>:
push   %rbp
push   %rbx
push   %rax
mov    %edi,%ebx
call   1060 <FILE_X@plt>
mov    %eax,%edi
call   1050 <FILE_FLIP@plt>
mov    %eax,%ebp
mov    %ebx,%edi
call   1030 <RANK_Y@plt>
mov    %ebp,%edi
mov    %eax,%esi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1040 <COORD_XY@plt>

LLVM IR (-O0):
define i32 @MIRROR_SQUARE(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @FILE_X(i32 %3)
%5 = call i32 @FILE_FLIP(i32 %4)
%6 = load i32, i32* %2
%7 = call i32 @RANK_Y(i32 %6)
%8 = call i32 @COORD_XY(i32 %5, i32 %7)
ret i32 %8
}

LLVM IR (-O2):
define i32 @MIRROR_SQUARE(i32 %0) {
%2 = tail call i32 @FILE_X(i32 %0)
%3 = tail call i32 @FILE_FLIP(i32 %2)
%4 = tail call i32 @RANK_Y(i32 %0)
%5 = tail call i32 @COORD_XY(i32 %3, i32 %4)
ret i32 %5
}
/* Type definitions */
typedef int /*<<< orphan*/ uint32_t;
struct wl_region {
  int dummy;
};
struct wl_proxy {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ wl_proxy_get_version(struct wl_proxy *);
uint32_t wl_region_get_version(struct wl_region *wl_region) {
  return wl_proxy_get_version((struct wl_proxy *)wl_region);
}


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

x86 assembly (clang, -O2):
<wl_region_get_version>:
jmp    1030 <wl_proxy_get_version@plt>

LLVM IR (-O0):
%struct.wl_region = type { i32 }
%struct.wl_proxy = type { i32 }
define i32 @wl_region_get_version(%struct.wl_region* %0) {
%2 = alloca %struct.wl_region*
store %struct.wl_region* %0, %struct.wl_region** %2
%3 = load %struct.wl_region*, %struct.wl_region** %2
%4 = bitcast %struct.wl_region* %3 to %struct.wl_proxy*
%5 = call i32 @wl_proxy_get_version(%struct.wl_proxy* %4)
ret i32 %5
}

LLVM IR (-O2):
%struct.wl_region = type { i32 }
%struct.wl_proxy = type { i32 }
define i32 @wl_region_get_version(%struct.wl_region* %0) {
%2 = bitcast %struct.wl_region* %0 to %struct.wl_proxy*
%3 = tail call i32 @wl_proxy_get_version(%struct.wl_proxy* %2)
ret i32 %3
}