xunge/DecIR huggingface dataset:
/* Variables and functions */
char *getsp(char *);
char *nonsp(char *);
char *col(int n, char *p) {
  p = nonsp(p);
  while (n > 0) {
    p = nonsp(getsp(p));
    n--;
  }
  return p;
}


x86 assembly (clang, -O0):
<col>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1040 <nonsp@plt>
mov    %rax,-0x10(%rbp)
cmpl   $0x0,-0x4(%rbp)
jle    1169 <col+0x49>
mov    -0x10(%rbp),%rdi
call   1030 <getsp@plt>
mov    %rax,%rdi
call   1040 <nonsp@plt>
mov    %rax,-0x10(%rbp)
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x4(%rbp)
jmp    113c <col+0x1c>
mov    -0x10(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<col>:
push   %rbx
mov    %edi,%ebx
mov    %rsi,%rdi
call   1040 <nonsp@plt>
test   %ebx,%ebx
jle    1158 <col+0x38>
add    $0x1,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %rax,%rdi
call   1030 <getsp@plt>
mov    %rax,%rdi
call   1040 <nonsp@plt>
add    $0xffffffff,%ebx
cmp    $0x1,%ebx
ja     1140 <col+0x20>
pop    %rbx
ret

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

LLVM IR (-O2):
define i8* @col(i32 %0, i8* %1) {
%3 = tail call i8* @nonsp(i8* %1)
%4 = icmp sgt i32 %0, 0
br i1 %4, label %5, label %12
5: ; preds = %2, %5
%6 = phi i8* [ %9, %5 ], [ %3, %2 ]
%7 = phi i32 [ %10, %5 ], [ %0, %2 ]
%8 = tail call i8* @getsp(i8* %6)
%9 = tail call i8* @nonsp(i8* %8)
%10 = add nsw i32 %7, -1
%11 = icmp ugt i32 %7, 1
br i1 %11, label %5, label %12
12: ; preds = %5, %2
%13 = phi i8* [ %3, %2 ], [ %9, %5 ]
ret i8* %13
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int test(int, int);
int main() {
  int result;
  result = test(1, 2);
  printf("result is %d\n", result);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x1,%edi
mov    $0x2,%esi
call   1040 <test@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xeb5(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x1,%edi
mov    $0x2,%esi
call   1040 <test@plt>
lea    0xec9(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@.str = [14 x i8] c"result is %d\0A\00"
define i32 @main() {
%1 = tail call i32 @test(i32 1, i32 2)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %1)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ outb_p(int, int);
void init(void) {
  outb_p(0x87, 0x2E);
  outb_p(0x87, 0x2E);
  outb_p(0x07, 0x2E);
  outb_p(0x07, 0x2F);
}


x86 assembly (clang, -O0):
<init>:
push   %rbp
mov    %rsp,%rbp
mov    $0x87,%edi
mov    $0x2e,%esi
call   1030 <outb_p@plt>
mov    $0x87,%edi
mov    $0x2e,%esi
call   1030 <outb_p@plt>
mov    $0x7,%edi
mov    $0x2e,%esi
call   1030 <outb_p@plt>
mov    $0x7,%edi
mov    $0x2f,%esi
call   1030 <outb_p@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<init>:
push   %rax
mov    $0x87,%edi
mov    $0x2e,%esi
call   1030 <outb_p@plt>
mov    $0x87,%edi
mov    $0x2e,%esi
call   1030 <outb_p@plt>
mov    $0x7,%edi
mov    $0x2e,%esi
call   1030 <outb_p@plt>
mov    $0x7,%edi
mov    $0x2f,%esi
pop    %rax
jmp    1030 <outb_p@plt>

LLVM IR (-O0):
define void @init() {
%1 = call i32 @outb_p(i32 135, i32 46)
%2 = call i32 @outb_p(i32 135, i32 46)
%3 = call i32 @outb_p(i32 7, i32 46)
%4 = call i32 @outb_p(i32 7, i32 47)
ret void
}

LLVM IR (-O2):
define void @init() {
%1 = tail call i32 @outb_p(i32 135, i32 46)
%2 = tail call i32 @outb_p(i32 135, i32 46)
%3 = tail call i32 @outb_p(i32 7, i32 46)
%4 = tail call i32 @outb_p(i32 7, i32 47)
ret void
}
void fc16(int n) {
a:
  goto a;
  {
    typedef int(*b)[n];
    {
      typedef int(*c)[n];
      0;
    }
    {
      typedef int(*d)[n];
      0;
    };
    typedef int(*e)[n];
    0;
  };
  {
    typedef int(*f)[n];
    {
      typedef int(*g)[n];
      0;
    };
    {
      typedef int(*h)[n];
      0;
    };
    ;
    typedef int(*i)[n];
    0;
  };
  ;
  typedef int(*j)[n];
  0;
}


x86 assembly (clang, -O0):
<fc16>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
jmp    1107 <fc16+0x7>

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

LLVM IR (-O0):
define void @fc16(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
br label %3
3: ; preds = %3, %1
br label %3
4: ; No predecessors!
%5 = load i32, i32* %2
%6 = zext i32 %5 to i64
%7 = load i32, i32* %2
%8 = zext i32 %7 to i64
%9 = load i32, i32* %2
%10 = zext i32 %9 to i64
%11 = load i32, i32* %2
%12 = zext i32 %11 to i64
%13 = load i32, i32* %2
%14 = zext i32 %13 to i64
%15 = load i32, i32* %2
%16 = zext i32 %15 to i64
%17 = load i32, i32* %2
%18 = zext i32 %17 to i64
%19 = load i32, i32* %2
%20 = zext i32 %19 to i64
%21 = load i32, i32* %2
%22 = zext i32 %21 to i64
ret void
}

LLVM IR (-O2):
define void @fc16(i32 %0) {
br label %2
2: ; preds = %2, %1
br label %2
}
/* Type definitions */
typedef int uint32_t;

/* Variables and functions */
uint32_t rc_direct_price(const uint32_t bits) { return bits << 4; }


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

x86 assembly (clang, -O2):
<rc_direct_price>:
mov    %edi,%eax
shl    $0x4,%eax
ret

LLVM IR (-O0):
define i32 @rc_direct_price(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = shl i32 %3, 4
ret i32 %4
}

LLVM IR (-O2):
define i32 @rc_direct_price(i32 %0) {
%2 = shl i32 %0, 4
ret i32 %2
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main() {
  int a;
  for (a = 0; a <= 100; a++)
    if ((a < 50 || a > 70) && a % 2 == 0)
      printf("%d\n", a);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x64,-0x8(%rbp)
jg     117a <main+0x6a>
cmpl   $0x32,-0x8(%rbp)
jl     1144 <main+0x34>
cmpl   $0x46,-0x8(%rbp)
jle    1167 <main+0x57>
mov    -0x8(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1167 <main+0x57>
mov    -0x8(%rbp),%esi
lea    0xe9e(%rip),%rdi
call   1030 <printf@plt>
jmp    116c <main+0x5c>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1126 <main+0x16>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
xor    %ebx,%ebx
lea    0xee3(%rip),%r14
jmp    1128 <main+0x18>
nop
add    $0x1,%ebx
cmp    $0x65,%ebx
je     1143 <main+0x33>
lea    -0x47(%rbx),%eax
cmp    $0xffffffea,%eax
ja     1120 <main+0x10>
mov    %ebx,%eax
and    $0x1,%eax
jne    1120 <main+0x10>
mov    %r14,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
jmp    1120 <main+0x10>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
define i32 @main() {
br label %1
1: ; preds = %0, %10
%2 = phi i32 [ 0, %0 ], [ %11, %10 ]
%3 = add nsw i32 %2, -71
%4 = icmp ult i32 %3, -21
%5 = and i32 %2, 1
%6 = icmp eq i32 %5, 0
%7 = and i1 %4, %6
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %2)
br label %10
10: ; preds = %8, %1
%11 = add nuw nsw i32 %2, 1
%12 = icmp eq i32 %11, 101
br i1 %12, label %13, label %1
13: ; preds = %10
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, double);
int /*<<< orphan*/ scanf(char *, int *, int *, double *);
int main() {
  int employNumber, hoursOfWork;
  double amountPerHour, salary;
  scanf("%d %d %lf", &employNumber, &hoursOfWork, &amountPerHour);
  salary = hoursOfWork * amountPerHour;
  printf("NUMBER = %d\nSALARY = U$ %.2lf\n", employNumber, salary);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x18(%rbp),%rcx
call   1040 <scanf@plt>
cvtsi2sdl -0xc(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%esi
movsd  -0x20(%rbp),%xmm0
lea    0xea5(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xed5(%rip),%rdi
lea    0xc(%rsp),%rsi
lea    0x8(%rsp),%rdx
lea    0x10(%rsp),%rcx
call   1040 <scanf@plt>
cvtsi2sdl 0x8(%rsp),%xmm0
mulsd  0x10(%rsp),%xmm0
mov    0xc(%rsp),%esi
lea    0xeb4(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [10 x i8] c"%d %d %lf\00"
@.str.1 = [31 x i8] c"NUMBER = %d\0ASALARY = U$ %.2lf\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca double
%5 = alloca double
store i32 0, i32* %1
%6 = call i32 @scanf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3, double* %4)
%7 = load i32, i32* %3
%8 = sitofp i32 %7 to double
%9 = load double, double* %4
%10 = fmul double %8, %9
store double %10, double* %5
%11 = load i32, i32* %2
%12 = load double, double* %5
%13 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0), i32 %11, double %12)
ret i32 0
}

LLVM IR (-O2):
@.str = [10 x i8] c"%d %d %lf\00"
@.str.1 = [31 x i8] c"NUMBER = %d\0ASALARY = U$ %.2lf\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca double
%4 = bitcast i32* %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = bitcast double* %3 to i8*
%7 = call i32 @scanf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2, double* %3)
%8 = load i32, i32* %2
%9 = sitofp i32 %8 to double
%10 = load double, double* %3
%11 = fmul double %10, %9
%12 = load i32, i32* %1
%13 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0), i32 %12, double %11)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ RegReadA_lc898122_sharp(int, unsigned char *);
unsigned char TriSts_lc898122_sharp(void) {
  unsigned char UcRsltSts = 0;
  unsigned char UcVal;
  RegReadA_lc898122_sharp(0x0129, &UcVal);
  if (UcVal & 0x03) {
    RegReadA_lc898122_sharp(0x01F4, &UcVal);
    UcRsltSts = UcVal & 0x11;
    UcRsltSts |= 0x80;
  }
  return (UcRsltSts);
}


x86 assembly (clang, -O0):
<TriSts_lc898122_sharp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movb   $0x0,-0x1(%rbp)
mov    $0x129,%edi
lea    -0x2(%rbp),%rsi
call   1030 <RegReadA_lc898122_sharp@plt>
movzbl -0x2(%rbp),%eax
and    $0x3,%eax
cmp    $0x0,%eax
je     115e <TriSts_lc898122_sharp+0x4e>
mov    $0x1f4,%edi
lea    -0x2(%rbp),%rsi
call   1030 <RegReadA_lc898122_sharp@plt>
movzbl -0x2(%rbp),%eax
and    $0x11,%eax
mov    %al,-0x1(%rbp)
movzbl -0x1(%rbp),%eax
or     $0x80,%eax
mov    %al,-0x1(%rbp)
movzbl -0x1(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<TriSts_lc898122_sharp>:
push   %rax
lea    0x7(%rsp),%rsi
mov    $0x129,%edi
call   1030 <RegReadA_lc898122_sharp@plt>
testb  $0x3,0x7(%rsp)
je     1140 <TriSts_lc898122_sharp+0x30>
lea    0x7(%rsp),%rsi
mov    $0x1f4,%edi
call   1030 <RegReadA_lc898122_sharp@plt>
mov    0x7(%rsp),%al
and    $0x11,%al
or     $0x80,%al
pop    %rcx
ret
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define zeroext i8 @TriSts_lc898122_sharp() {
%1 = alloca i8
%2 = alloca i8
store i8 0, i8* %1
%3 = call i32 @RegReadA_lc898122_sharp(i32 297, i8* %2)
%4 = load i8, i8* %2
%5 = zext i8 %4 to i32
%6 = and i32 %5, 3
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %18
8: ; preds = %0
%9 = call i32 @RegReadA_lc898122_sharp(i32 500, i8* %2)
%10 = load i8, i8* %2
%11 = zext i8 %10 to i32
%12 = and i32 %11, 17
%13 = trunc i32 %12 to i8
store i8 %13, i8* %1
%14 = load i8, i8* %1
%15 = zext i8 %14 to i32
%16 = or i32 %15, 128
%17 = trunc i32 %16 to i8
store i8 %17, i8* %1
br label %18
18: ; preds = %8, %0
%19 = load i8, i8* %1
ret i8 %19
}

LLVM IR (-O2):
define zeroext i8 @TriSts_lc898122_sharp() {
%1 = alloca i8
%2 = call i32 @RegReadA_lc898122_sharp(i32 297, i8* %1)
%3 = load i8, i8* %1
%4 = and i8 %3, 3
%5 = icmp eq i8 %4, 0
br i1 %5, label %11, label %6
6: ; preds = %0
%7 = call i32 @RegReadA_lc898122_sharp(i32 500, i8* %1)
%8 = load i8, i8* %1
%9 = and i8 %8, 17
%10 = or i8 %9, -128
br label %11
11: ; preds = %6, %0
%12 = phi i8 [ %10, %6 ], [ 0, %0 ]
ret i8 %12
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int, int);
void intro(void) {
  printf("Mugwump Hunt\n-----------\n"
         "You are hunting Mugwumps using a state of the art radar system. "
         "There are\n"
         "%d mugwumps hidden hiding in a %d,%d grid. After every guess you "
         "will be\n"
         "told how close the remaining Mugwumps are to your guess.\n"
         "Input the your guess by typing the x and y location seperated by a "
         "comma\n"
         "(IE \"5,5\" or \"3,10\")\n"
         "(Mugwumps only hide whole number locations.)\n\n",
         5, 20, 20);
}


x86 assembly (clang, -O0):
<intro>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x5,%esi
mov    $0x14,%ecx
mov    %ecx,%edx
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<intro>:
lea    0xee9(%rip),%rdi
mov    $0x5,%esi
mov    $0x14,%edx
mov    $0x14,%ecx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [370 x i8] c"Mugwump Hunt\0A-----------\0AYou are hunting Mugwumps using a state of the art radar system. There are\0A%d mugwumps hidden hiding in a %d,%d grid. After every guess you will be\0Atold how close the remaining Mugwumps are to your guess.\0AInput the your guess by typing the x and y location seperated by a comma\0A(IE \225,5\22 or \223,10\22)\0A(Mugwumps only hide whole number locations.)\0A\0A\00"
define void @intro() {
%1 = call i32 @printf(i8* getelementptr inbounds ([370 x i8], [370 x i8]* @.str, i64 0, i64 0), i32 5, i32 20, i32 20)
ret void
}

LLVM IR (-O2):
@.str = [370 x i8] c"Mugwump Hunt\0A-----------\0AYou are hunting Mugwumps using a state of the art radar system. There are\0A%d mugwumps hidden hiding in a %d,%d grid. After every guess you will be\0Atold how close the remaining Mugwumps are to your guess.\0AInput the your guess by typing the x and y location seperated by a comma\0A(IE \225,5\22 or \223,10\22)\0A(Mugwumps only hide whole number locations.)\0A\0A\00"
define void @intro() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([370 x i8], [370 x i8]* @.str, i64 0, i64 0), i32 5, i32 20, i32 20)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ BIO;

/* Variables and functions */
int /*<<< orphan*/ assert(int /*<<< orphan*/);
int dwrap_gets(BIO *b, char *buf, int size) {
  assert(0);
  return 0;
}


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

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

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

LLVM IR (-O2):
define i32 @dwrap_gets(i32* nocapture readnone %0, i8* nocapture readnone %1, i32 %2) {
%4 = tail call i32 @assert(i32 0)
ret i32 0
}
void ScaleARGBRowDownEvenBox_SSE2() {}


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

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

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

LLVM IR (-O2):
define void @ScaleARGBRowDownEvenBox_SSE2() {
ret void
}
_Bool and1(unsigned x, unsigned y) { return x > y && x == 0; }


x86 assembly (clang, -O0):
<and1>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%ecx
xor    %eax,%eax
cmp    -0x8(%rbp),%ecx
mov    %al,-0x9(%rbp)
jbe    1125 <and1+0x25>
cmpl   $0x0,-0x4(%rbp)
sete   %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define zeroext i1 @and1(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 = icmp ugt i32 %5, %6
br i1 %7, label %8, label %11
8: ; preds = %2
%9 = load i32, i32* %3
%10 = icmp eq i32 %9, 0
br label %11
11: ; preds = %8, %2
%12 = phi i1 [ false, %2 ], [ %10, %8 ]
ret i1 %12
}

LLVM IR (-O2):
define zeroext i1 @and1(i32 %0, i32 %1) {
ret i1 false
}
void lm_display_close(void) {}


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

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

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

LLVM IR (-O2):
define void @lm_display_close() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ memset(char *, char, int);
scalar_t__ wMalloc(unsigned int);
scalar_t__ wPopNumber();
int /*<<< orphan*/ wPushString(char *);
void wBasSpace() {
  char *string;
  int n;
  n = (int)wPopNumber();
  if (n < 0) {
    n = 0;
  }
  string = (char *)wMalloc((unsigned int)n + 1);
  memset(string, ' ', n);
  string[n] = '\0';
  wPushString(string);
}


x86 assembly (clang, -O0):
<wBasSpace>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1040 <wPopNumber@plt>
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jge    1163 <wBasSpace+0x23>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%edi
add    $0x1,%edi
call   1050 <wMalloc@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%edx
mov    $0x20,%esi
call   1030 <memset@plt>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x8(%rbp),%rdi
call   1060 <wPushString@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<wBasSpace>:
push   %r14
push   %rbx
push   %rax
xor    %ebx,%ebx
xor    %eax,%eax
call   1040 <wPopNumber@plt>
test   %eax,%eax
cmovns %eax,%ebx
lea    0x1(%rbx),%edi
call   1050 <wMalloc@plt>
mov    %rax,%r14
mov    %rax,%rdi
mov    $0x20,%esi
mov    %ebx,%edx
call   1030 <memset@plt>
movb   $0x0,(%r14,%rbx,1)
mov    %r14,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1060 <wPushString@plt>

LLVM IR (-O0):
define void @wBasSpace() {
%1 = alloca i8*
%2 = alloca i32
%3 = call i64 (...) @wPopNumber()
%4 = trunc i64 %3 to i32
store i32 %4, i32* %2
%5 = load i32, i32* %2
%6 = icmp slt i32 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %0
store i32 0, i32* %2
br label %8
8: ; preds = %7, %0
%9 = load i32, i32* %2
%10 = add i32 %9, 1
%11 = call i64 @wMalloc(i32 %10)
%12 = inttoptr i64 %11 to i8*
store i8* %12, i8** %1
%13 = load i8*, i8** %1
%14 = load i32, i32* %2
%15 = call i32 @memset(i8* %13, i8 signext 32, i32 %14)
%16 = load i8*, i8** %1
%17 = load i32, i32* %2
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, i8* %16, i64 %18
store i8 0, i8* %19
%20 = load i8*, i8** %1
%21 = call i32 @wPushString(i8* %20)
ret void
}

LLVM IR (-O2):
define void @wBasSpace() {
%1 = tail call i64 (...) @wPopNumber()
%2 = trunc i64 %1 to i32
%3 = icmp sgt i32 %2, 0
%4 = select i1 %3, i32 %2, i32 0
%5 = add nuw i32 %4, 1
%6 = tail call i64 @wMalloc(i32 %5)
%7 = inttoptr i64 %6 to i8*
%8 = tail call i32 @memset(i8* %7, i8 signext 32, i32 %4)
%9 = zext i32 %4 to i64
%10 = getelementptr inbounds i8, i8* %7, i64 %9
store i8 0, i8* %10
%11 = tail call i32 @wPushString(i8* %7)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ __free_cf(void *);
void CGDataConsumerRelease(void *item) { __free_cf(item); }


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

x86 assembly (clang, -O2):
<CGDataConsumerRelease>:
jmp    1030 <__free_cf@plt>

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

LLVM IR (-O2):
define void @CGDataConsumerRelease(i8* %0) {
%2 = tail call i32 @__free_cf(i8* %0)
ret void
}
void xuk_switch(void *switch_to, void **switched_from) {
  __asm__ volatile("mov %%rsp, %%rcx;"
                   "pushq $0x10;"
                   "pushq %%rcx;"
                   "pushfq;"
                   "pushq $0x08;"
                   "callq _switch_top"
                   :
                   : "a"(switch_to), "d"(switched_from)
                   : "ecx", "memory");
}


x86 assembly (clang, -O0):
<xuk_switch>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rdx
mov    %rsp,%rcx
push   $0x10
push   %rcx
pushf
push   $0x8
call   1030 <_switch_top@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<xuk_switch>:
mov    %rsi,%rdx
mov    %rdi,%rax
mov    %rsp,%rcx
push   $0x10
push   %rcx
pushf
push   $0x8
call   1030 <_switch_top@plt>
ret

LLVM IR (-O0):
define void @xuk_switch(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
ret void
}

LLVM IR (-O2):
define void @xuk_switch(i8* %0, i8** %1) {
tail call void asm sideeffect "mov %rsp, %rcx;pushq $$0x10;pushq %rcx;pushfq;pushq $$0x08;callq _switch_top", "{ax},{dx},~{ecx},~{memory},~{dirflag},~{fpsr},~{flags}"(i8* %0, i8** %1)
ret void
}
/* Type definitions */
typedef int /*<<< orphan*/ uint64_t;

/* Variables and functions */
int /*<<< orphan*/ internal_fiat_p448_carry_square(uintptr_t, uintptr_t);
void fiat_p448_carry_square(uint64_t out1[8], const uint64_t arg1[8]) {
  internal_fiat_p448_carry_square((uintptr_t)out1, (uintptr_t)arg1);
}


x86 assembly (clang, -O0):
<fiat_p448_carry_square>:
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 <internal_fiat_p448_carry_square@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fiat_p448_carry_square>:
jmp    1030 <internal_fiat_p448_carry_square@plt>

LLVM IR (-O0):
define void @fiat_p448_carry_square(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 = ptrtoint i32* %5 to i64
%7 = load i32*, i32** %4
%8 = ptrtoint i32* %7 to i64
%9 = call i32 @internal_fiat_p448_carry_square(i64 %6, i64 %8)
ret void
}

LLVM IR (-O2):
define void @fiat_p448_carry_square(i32* %0, i32* %1) {
%3 = ptrtoint i32* %0 to i64
%4 = ptrtoint i32* %1 to i64
%5 = tail call i32 @internal_fiat_p448_carry_square(i64 %3, i64 %4)
ret void
}
int strcmp(const char *a, const char *b) {
  while (*a && *a == *b) {
    ++a;
    ++b;
  }
  return *a - *b;
}


x86 assembly (clang, -O0):
<strcmp>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x11(%rbp)
je     1137 <strcmp+0x37>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
mov    -0x10(%rbp),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
sete   %al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%al
test   $0x1,%al
jne    1147 <strcmp+0x47>
jmp    1164 <strcmp+0x64>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    110c <strcmp+0xc>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
mov    -0x10(%rbp),%rcx
movsbl (%rcx),%ecx
sub    %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<strcmp>:
mov    (%rdi),%al
test   %al,%al
je     1123 <strcmp+0x23>
add    $0x1,%rdi
nopw   0x0(%rax,%rax,1)
cmp    (%rsi),%al
jne    1125 <strcmp+0x25>
add    $0x1,%rsi
movzbl (%rdi),%eax
add    $0x1,%rdi
test   %al,%al
jne    1110 <strcmp+0x10>
xor    %eax,%eax
movsbl %al,%eax
movsbl (%rsi),%ecx
sub    %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @strcmp(i8* nocapture %0, i8* nocapture %1) {
%3 = load i8, i8* %0
%4 = icmp eq i8 %3, 0
br i1 %4, label %16, label %5
5: ; preds = %2, %11
%6 = phi i8 [ %14, %11 ], [ %3, %2 ]
%7 = phi i8* [ %13, %11 ], [ %1, %2 ]
%8 = phi i8* [ %12, %11 ], [ %0, %2 ]
%9 = load i8, i8* %7
%10 = icmp eq i8 %6, %9
br i1 %10, label %11, label %16
11: ; preds = %5
%12 = getelementptr inbounds i8, i8* %8, i64 1
%13 = getelementptr inbounds i8, i8* %7, i64 1
%14 = load i8, i8* %12
%15 = icmp eq i8 %14, 0
br i1 %15, label %16, label %5
16: ; preds = %5, %11, %2
%17 = phi i8* [ %1, %2 ], [ %13, %11 ], [ %7, %5 ]
%18 = phi i8 [ 0, %2 ], [ 0, %11 ], [ %6, %5 ]
%19 = sext i8 %18 to i32
%20 = load i8, i8* %17
%21 = sext i8 %20 to i32
%22 = sub nsw i32 %19, %21
ret i32 %22
}
/* Variables and functions */
int rom_present(char *);
int xtide_at_available() { return rom_present("ide_at.bin"); }


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

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

LLVM IR (-O0):
@.str = [11 x i8] c"ide_at.bin\00"
define i32 @xtide_at_available() {
%1 = call i32 @rom_present(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
ret i32 %1
}

LLVM IR (-O2):
@.str = [11 x i8] c"ide_at.bin\00"
define i32 @xtide_at_available() {
%1 = tail call i32 @rom_present(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
ret i32 %1
}
int do_534() { return 534; }


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

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

LLVM IR (-O0):
define i32 @do_534() {
ret i32 534
}

LLVM IR (-O2):
define i32 @do_534() {
ret i32 534
}
void random_place(struct map *self, int player) {
  if (player = 0) {
    for (int i = 0; i < 5; i++) {
      for (int j = 0; j < 10; j++) {
      }
    }
  } else {
    for (int i = 6; i < 10; i++) {
      for (int j = 0; j < 10; j++) {
      }
    }
  }
}


x86 assembly (clang, -O0):
<random_place>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0xc(%rbp)
xor    %eax,%eax
test   $0x1,%al
jne    1121 <random_place+0x21>
jmp    116e <random_place+0x6e>
movl   $0x0,-0x10(%rbp)
cmpl   $0x5,-0x10(%rbp)
jge    1169 <random_place+0x69>
movl   $0x0,-0x14(%rbp)
cmpl   $0xa,-0x14(%rbp)
jge    1156 <random_place+0x56>
jmp    1148 <random_place+0x48>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1139 <random_place+0x39>
jmp    115b <random_place+0x5b>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1128 <random_place+0x28>
jmp    11bb <random_place+0xbb>
movl   $0x6,-0x18(%rbp)
cmpl   $0xa,-0x18(%rbp)
jge    11b6 <random_place+0xb6>
movl   $0x0,-0x1c(%rbp)
cmpl   $0xa,-0x1c(%rbp)
jge    11a3 <random_place+0xa3>
jmp    1195 <random_place+0x95>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1186 <random_place+0x86>
jmp    11a8 <random_place+0xa8>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1175 <random_place+0x75>
jmp    11bb <random_place+0xbb>
pop    %rbp
ret

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

LLVM IR (-O0):
%struct.map = type opaque
define void @random_place(%struct.map* %0, i32 %1) {
%3 = alloca %struct.map*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store %struct.map* %0, %struct.map** %3
store i32 %1, i32* %4
store i32 0, i32* %4
br i1 false, label %9, label %26
9: ; preds = %2
store i32 0, i32* %5
br label %10
10: ; preds = %22, %9
%11 = load i32, i32* %5
%12 = icmp slt i32 %11, 5
br i1 %12, label %13, label %25
13: ; preds = %10
store i32 0, i32* %6
br label %14
14: ; preds = %18, %13
%15 = load i32, i32* %6
%16 = icmp slt i32 %15, 10
br i1 %16, label %17, label %21
17: ; preds = %14
br label %18
18: ; preds = %17
%19 = load i32, i32* %6
%20 = add nsw i32 %19, 1
store i32 %20, i32* %6
br label %14
21: ; preds = %14
br label %22
22: ; preds = %21
%23 = load i32, i32* %5
%24 = add nsw i32 %23, 1
store i32 %24, i32* %5
br label %10
25: ; preds = %10
br label %43
26: ; preds = %2
store i32 6, i32* %7
br label %27
27: ; preds = %39, %26
%28 = load i32, i32* %7
%29 = icmp slt i32 %28, 10
br i1 %29, label %30, label %42
30: ; preds = %27
store i32 0, i32* %8
br label %31
31: ; preds = %35, %30
%32 = load i32, i32* %8
%33 = icmp slt i32 %32, 10
br i1 %33, label %34, label %38
34: ; preds = %31
br label %35
35: ; preds = %34
%36 = load i32, i32* %8
%37 = add nsw i32 %36, 1
store i32 %37, i32* %8
br label %31
38: ; preds = %31
br label %39
39: ; preds = %38
%40 = load i32, i32* %7
%41 = add nsw i32 %40, 1
store i32 %41, i32* %7
br label %27
42: ; preds = %27
br label %43
43: ; preds = %42, %25
ret void
}

LLVM IR (-O2):
%struct.map = type opaque
define void @random_place(%struct.map* nocapture %0, i32 %1) {
ret void
}
/* Variables and functions */
void *PtrMap_Find(void *ptrMap, void *key) { return NULL; }


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

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

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

LLVM IR (-O2):
define noalias i8* @PtrMap_Find(i8* nocapture readnone %0, i8* nocapture readnone %1) {
ret i8* null
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
extern int shmem_int_cswap(int *target, int cond, int value, int pe) {
  printf("\nOpenSHMEM Analyzer\n");
}


x86 assembly (clang, -O0):
<shmem_int_cswap>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %edx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
lea    0xed4(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

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

LLVM IR (-O0):
@.str = [21 x i8] c"\0AOpenSHMEM Analyzer\0A\00"
define i32 @shmem_int_cswap(i32* %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32* %0, i32** %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32 %3, i32* %9
%10 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%11 = load i32, i32* %5
ret i32 %11
}

LLVM IR (-O2):
@str = [20 x i8] c"\0AOpenSHMEM Analyzer\00"
define i32 @shmem_int_cswap(i32* nocapture readnone %0, i32 %1, i32 %2, i32 %3) {
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0))
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ write(int, char *, int);
void out_char(int fd, char c) { write(fd, &c, 1); }


x86 assembly (clang, -O0):
<out_char>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %sil,%al
mov    %edi,-0x4(%rbp)
mov    %al,-0x5(%rbp)
mov    -0x4(%rbp),%edi
lea    -0x5(%rbp),%rsi
mov    $0x1,%edx
call   1030 <write@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<out_char>:
push   %rax
mov    %sil,0x7(%rsp)
lea    0x7(%rsp),%rsi
mov    $0x1,%edx
call   1030 <write@plt>
pop    %rax
ret

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

LLVM IR (-O2):
define void @out_char(i32 %0, i8 signext %1) {
%3 = alloca i8
store i8 %1, i8* %3
%4 = call i32 @write(i32 %0, i8* %3, i32 1)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ close(int);
void close_flv_file(int fd) {
  if (fd > 0) {
    close(fd);
  }
}


x86 assembly (clang, -O0):
<close_flv_file>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jle    112d <close_flv_file+0x1d>
mov    -0x4(%rbp),%edi
call   1030 <close@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<close_flv_file>:
test   %edi,%edi
jle    1119 <close_flv_file+0x9>
jmp    1030 <close@plt>
ret

LLVM IR (-O0):
define void @close_flv_file(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp sgt i32 %3, 0
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i32, i32* %2
%7 = call i32 @close(i32 %6)
br label %8
8: ; preds = %5, %1
ret void
}

LLVM IR (-O2):
define void @close_flv_file(i32 %0) {
%2 = icmp sgt i32 %0, 0
br i1 %2, label %3, label %5
3: ; preds = %1
%4 = tail call i32 @close(i32 %0)
br label %5
5: ; preds = %3, %1
ret void
}
unsigned gf32_mod(unsigned long long r, int high_bit) {
  int j = high_bit;
  for (j = high_bit; j >= 32; j--) {
    if ((1ULL << j) & r) {
      r ^= 0x04C11DB7ULL << (j - 32);
    }
  }
  return (unsigned)r;
}


x86 assembly (clang, -O0):
<gf32_mod>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
cmpl   $0x20,-0x10(%rbp)
jl     1169 <gf32_mod+0x69>
mov    -0x10(%rbp),%eax
mov    %eax,%ecx
mov    $0x1,%eax
shl    %cl,%rax
and    -0x8(%rbp),%rax
cmp    $0x0,%rax
je     1156 <gf32_mod+0x56>
mov    -0x10(%rbp),%eax
sub    $0x20,%eax
mov    %eax,%eax
mov    %eax,%ecx
mov    $0x4c11db7,%eax
shl    %cl,%rax
xor    -0x8(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    115b <gf32_mod+0x5b>
mov    -0x10(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x10(%rbp)
jmp    1117 <gf32_mod+0x17>
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<gf32_mod>:
mov    %rdi,%rax
cmp    $0x20,%esi
jl     1133 <gf32_mod+0x33>
mov    %esi,%edx
xor    %esi,%esi
nopl   0x0(%rax)
lea    -0x20(%rdx),%ecx
mov    $0x4c11db7,%edi
shl    %cl,%rdi
bt     %rdx,%rax
cmovae %rsi,%rdi
xor    %rdi,%rax
lea    -0x1(%rdx),%rcx
cmp    $0x20,%rdx
mov    %rcx,%rdx
ja     1110 <gf32_mod+0x10>
ret

LLVM IR (-O0):
define i32 @gf32_mod(i64 %0, i32 %1) {
%3 = alloca i64
%4 = alloca i32
%5 = alloca i32
store i64 %0, i64* %3
store i32 %1, i32* %4
%6 = load i32, i32* %4
store i32 %6, i32* %5
%7 = load i32, i32* %4
store i32 %7, i32* %5
br label %8
8: ; preds = %26, %2
%9 = load i32, i32* %5
%10 = icmp sge i32 %9, 32
br i1 %10, label %11, label %29
11: ; preds = %8
%12 = load i32, i32* %5
%13 = zext i32 %12 to i64
%14 = shl i64 1, %13
%15 = load i64, i64* %3
%16 = and i64 %14, %15
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %25
18: ; preds = %11
%19 = load i32, i32* %5
%20 = sub nsw i32 %19, 32
%21 = zext i32 %20 to i64
%22 = shl i64 79764919, %21
%23 = load i64, i64* %3
%24 = xor i64 %23, %22
store i64 %24, i64* %3
br label %25
25: ; preds = %18, %11
br label %26
26: ; preds = %25
%27 = load i32, i32* %5
%28 = add nsw i32 %27, -1
store i32 %28, i32* %5
br label %8
29: ; preds = %8
%30 = load i64, i64* %3
%31 = trunc i64 %30 to i32
ret i32 %31
}

LLVM IR (-O2):
define i32 @gf32_mod(i64 %0, i32 %1) {
%3 = icmp sgt i32 %1, 31
br i1 %3, label %4, label %19
4: ; preds = %2
%5 = zext i32 %1 to i64
br label %6
6: ; preds = %4, %6
%7 = phi i64 [ %5, %4 ], [ %17, %6 ]
%8 = phi i64 [ %0, %4 ], [ %16, %6 ]
%9 = shl nuw i64 1, %7
%10 = and i64 %9, %8
%11 = icmp eq i64 %10, 0
%12 = add nuw i64 %7, 4294967264
%13 = and i64 %12, 4294967295
%14 = shl i64 79764919, %13
%15 = select i1 %11, i64 0, i64 %14
%16 = xor i64 %15, %8
%17 = add nsw i64 %7, -1
%18 = icmp ugt i64 %7, 32
br i1 %18, label %6, label %19
19: ; preds = %6, %2
%20 = phi i64 [ %0, %2 ], [ %16, %6 ]
%21 = trunc i64 %20 to i32
ret i32 %21
}
void __sulong_fp80_sub(long double *out, long double *x, long double *y) {
  *out = *x - *y;
}


x86 assembly (clang, -O0):
<__sulong_fp80_sub>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x10(%rbp),%rax
fldt   (%rax)
mov    -0x18(%rbp),%rax
fldt   (%rax)
fsubrp %st,%st(1)
mov    -0x8(%rbp),%rax
fstpt  (%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<__sulong_fp80_sub>:
fldt   (%rsi)
fldt   (%rdx)
fsubrp %st,%st(1)
fstpt  (%rdi)
ret

LLVM IR (-O0):
define void @__sulong_fp80_sub(x86_fp80* %0, x86_fp80* %1, x86_fp80* %2) {
%4 = alloca x86_fp80*
%5 = alloca x86_fp80*
%6 = alloca x86_fp80*
store x86_fp80* %0, x86_fp80** %4
store x86_fp80* %1, x86_fp80** %5
store x86_fp80* %2, x86_fp80** %6
%7 = load x86_fp80*, x86_fp80** %5
%8 = load x86_fp80, x86_fp80* %7
%9 = load x86_fp80*, x86_fp80** %6
%10 = load x86_fp80, x86_fp80* %9
%11 = fsub x86_fp80 %8, %10
%12 = load x86_fp80*, x86_fp80** %4
store x86_fp80 %11, x86_fp80* %12
ret void
}

LLVM IR (-O2):
define void @__sulong_fp80_sub(x86_fp80* nocapture writeonly %0, x86_fp80* nocapture %1, x86_fp80* nocapture %2) {
%4 = load x86_fp80, x86_fp80* %1
%5 = load x86_fp80, x86_fp80* %2
%6 = fsub x86_fp80 %4, %5
store x86_fp80 %6, x86_fp80* %0
ret void
}
/* Variables and functions */
int /*<<< orphan*/ bitarray_alloc(int /*<<< orphan*/);
int /*<<< orphan*/ bitarray_calloc(int /*<<< orphan*/);
int /*<<< orphan*/ bitarray_change_bit(int /*<<< orphan*/ *,
                                       int /*<<< orphan*/);
int /*<<< orphan*/ bitarray_clear_bit(int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ bitarray_clear_bits(int /*<<< orphan*/ *,
                                       int /*<<< orphan*/);
int /*<<< orphan*/ bitarray_free(int /*<<< orphan*/ *);
int /*<<< orphan*/ bitarray_num_bits(int /*<<< orphan*/ *);
void wno_unused_function_simple_bitarray_h(void) {
  (void)bitarray_num_bits(NULL);
  (void)bitarray_change_bit(NULL, 0);
  (void)bitarray_clear_bit(NULL, 0);
  (void)bitarray_clear_bits(NULL, 0);
  (void)bitarray_alloc(0);
  (void)bitarray_calloc(0);
  (void)bitarray_free(NULL);
  return;
}


x86 assembly (clang, -O0):
<wno_unused_function_simple_bitarray_h>:
push   %rbp
mov    %rsp,%rbp
xor    %eax,%eax
mov    %eax,%edi
call   1090 <bitarray_num_bits@plt>
xor    %eax,%eax
mov    %eax,%edi
xor    %esi,%esi
call   1030 <bitarray_change_bit@plt>
xor    %eax,%eax
mov    %eax,%edi
xor    %esi,%esi
call   1060 <bitarray_clear_bit@plt>
xor    %eax,%eax
mov    %eax,%edi
xor    %esi,%esi
call   1040 <bitarray_clear_bits@plt>
xor    %edi,%edi
call   1070 <bitarray_alloc@plt>
xor    %edi,%edi
call   1050 <bitarray_calloc@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1080 <bitarray_free@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<wno_unused_function_simple_bitarray_h>:
push   %rax
xor    %edi,%edi
call   1090 <bitarray_num_bits@plt>
xor    %edi,%edi
xor    %esi,%esi
call   1030 <bitarray_change_bit@plt>
xor    %edi,%edi
xor    %esi,%esi
call   1060 <bitarray_clear_bit@plt>
xor    %edi,%edi
xor    %esi,%esi
call   1040 <bitarray_clear_bits@plt>
xor    %edi,%edi
call   1070 <bitarray_alloc@plt>
xor    %edi,%edi
call   1050 <bitarray_calloc@plt>
xor    %edi,%edi
pop    %rax
jmp    1080 <bitarray_free@plt>

LLVM IR (-O0):
define void @wno_unused_function_simple_bitarray_h() {
%1 = call i32 @bitarray_num_bits(i32* null)
%2 = call i32 @bitarray_change_bit(i32* null, i32 0)
%3 = call i32 @bitarray_clear_bit(i32* null, i32 0)
%4 = call i32 @bitarray_clear_bits(i32* null, i32 0)
%5 = call i32 @bitarray_alloc(i32 0)
%6 = call i32 @bitarray_calloc(i32 0)
%7 = call i32 @bitarray_free(i32* null)
ret void
}

LLVM IR (-O2):
define void @wno_unused_function_simple_bitarray_h() {
%1 = tail call i32 @bitarray_num_bits(i32* null)
%2 = tail call i32 @bitarray_change_bit(i32* null, i32 0)
%3 = tail call i32 @bitarray_clear_bit(i32* null, i32 0)
%4 = tail call i32 @bitarray_clear_bits(i32* null, i32 0)
%5 = tail call i32 @bitarray_alloc(i32 0)
%6 = tail call i32 @bitarray_calloc(i32 0)
%7 = tail call i32 @bitarray_free(i32* null)
ret void
}
void XDisplayCells() {}


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

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

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

LLVM IR (-O2):
define void @XDisplayCells() {
ret void
}
int hputl(hstring, keyword, lval)
char *hstring;
const char *keyword;
const int lval;
{
  char value[8];
  if (lval)
    strcpy(value, "T");
  else
    strcpy(value, "F");
  return (hputc(hstring, keyword, value));
}


x86 assembly (clang, -O0):
<hputl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     1152 <hputl+0x32>
lea    -0x1c(%rbp),%rdi
lea    0xeb8(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1162 <hputl+0x42>
lea    -0x1c(%rbp),%rdi
lea    0xea5(%rip),%rsi
call   1030 <strcpy@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    -0x1c(%rbp),%rdx
mov    $0x0,%al
call   1040 <hputc@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<hputl>:
push   %rax
test   %edx,%edx
mov    $0x46,%eax
mov    $0x54,%ecx
cmove  %eax,%ecx
mov    %cx,(%rsp)
mov    %rsp,%rdx
xor    %eax,%eax
call   1030 <hputc@plt>
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @hputl(i8* %0, i8* %1, i32 %2) {
%4 = alloca [8 x i8]
%5 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 0
%6 = icmp eq i32 %2, 0
%7 = select i1 %6, i16 70, i16 84
%8 = bitcast [8 x i8]* %4 to i16*
store i16 %7, i16* %8
%9 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @hputc to i32 (i8*, i8*, i8*, ...)*)(i8* %0, i8* %1, i8* %5)
ret i32 %9
}
int buzzlex_isquote(char c) { return (c == '\'') || (c == '"'); }


x86 assembly (clang, -O0):
<buzzlex_isquote>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x27,%ecx
mov    %al,-0x2(%rbp)
je     1129 <buzzlex_isquote+0x29>
movsbl -0x1(%rbp),%eax
cmp    $0x22,%eax
sete   %al
mov    %al,-0x2(%rbp)
mov    -0x2(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<buzzlex_isquote>:
cmp    $0x27,%dil
sete   %al
cmp    $0x22,%dil
sete   %cl
or     %al,%cl
movzbl %cl,%eax
ret

LLVM IR (-O0):
define i32 @buzzlex_isquote(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = sext i8 %3 to i32
%5 = icmp eq i32 %4, 39
br i1 %5, label %10, label %6
6: ; preds = %1
%7 = load i8, i8* %2
%8 = sext i8 %7 to i32
%9 = icmp eq i32 %8, 34
br label %10
10: ; preds = %6, %1
%11 = phi i1 [ true, %1 ], [ %9, %6 ]
%12 = zext i1 %11 to i32
ret i32 %12
}

LLVM IR (-O2):
define i32 @buzzlex_isquote(i8 signext %0) {
%2 = icmp eq i8 %0, 39
%3 = icmp eq i8 %0, 34
%4 = or i1 %2, %3
%5 = zext i1 %4 to i32
ret i32 %5
}
/* Variables and functions */
int /*<<< orphan*/ WARN(int, char *);
int sci_adc_get_value(unsigned int channel, int scale) {
  WARN(1, "Not implement\n");
  return 0;
}


x86 assembly (clang, -O0):
<sci_adc_get_value>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    $0x1,%edi
lea    0xed6(%rip),%rsi
call   1030 <WARN@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sci_adc_get_value>:
push   %rax
lea    0xee8(%rip),%rsi
mov    $0x1,%edi
call   1030 <WARN@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [15 x i8] c"Not implement\0A\00"
define i32 @sci_adc_get_value(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = call i32 @WARN(i32 1, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [15 x i8] c"Not implement\0A\00"
define i32 @sci_adc_get_value(i32 %0, i32 %1) {
%3 = tail call i32 @WARN(i32 1, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
ret i32 0
}