xunge/DecIR huggingface dataset:
void call_mikey_func() {
  int i, j, k;
  for (i = 0; i < 10000; i++) {
    if (i % 2 == 0) {
      j--;
      for (k = 0; k < 1000; k++) {
        if (k % 2 == 0) {
          j++;
        }
      }
    } else {
      j++;
    }
  }
}


x86 assembly (clang, -O0):
<call_mikey_func>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
cmpl   $0x2710,-0x4(%rbp)
jge    119a <call_mikey_func+0x9a>
mov    -0x4(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    117e <call_mikey_func+0x7e>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x3e8,-0xc(%rbp)
jge    1179 <call_mikey_func+0x79>
mov    -0xc(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1166 <call_mikey_func+0x66>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    116b <call_mikey_func+0x6b>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    113c <call_mikey_func+0x3c>
jmp    1187 <call_mikey_func+0x87>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    118c <call_mikey_func+0x8c>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    110b <call_mikey_func+0xb>
pop    %rbp
ret

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

LLVM IR (-O0):
define void @call_mikey_func() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
br label %4
4: ; preds = %33, %0
%5 = load i32, i32* %1
%6 = icmp slt i32 %5, 10000
br i1 %6, label %7, label %36
7: ; preds = %4
%8 = load i32, i32* %1
%9 = srem i32 %8, 2
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %29
11: ; preds = %7
%12 = load i32, i32* %2
%13 = add nsw i32 %12, -1
store i32 %13, i32* %2
store i32 0, i32* %3
br label %14
14: ; preds = %25, %11
%15 = load i32, i32* %3
%16 = icmp slt i32 %15, 1000
br i1 %16, label %17, label %28
17: ; preds = %14
%18 = load i32, i32* %3
%19 = srem i32 %18, 2
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %17
%22 = load i32, i32* %2
%23 = add nsw i32 %22, 1
store i32 %23, i32* %2
br label %24
24: ; preds = %21, %17
br label %25
25: ; preds = %24
%26 = load i32, i32* %3
%27 = add nsw i32 %26, 1
store i32 %27, i32* %3
br label %14
28: ; preds = %14
br label %32
29: ; preds = %7
%30 = load i32, i32* %2
%31 = add nsw i32 %30, 1
store i32 %31, i32* %2
br label %32
32: ; preds = %29, %28
br label %33
33: ; preds = %32
%34 = load i32, i32* %1
%35 = add nsw i32 %34, 1
store i32 %35, i32* %1
br label %4
36: ; preds = %4
ret void
}

LLVM IR (-O2):
define void @call_mikey_func() {
ret void
}
int count_digits(int n) {
  int count = 1;
  while (n /= 10) {
    count++;
  }
  return count;
}


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

x86 assembly (clang, -O2):
<count_digits>:
lea    0x9(%rdi),%ecx
mov    $0x1,%eax
cmp    $0x13,%ecx
jb     1145 <count_digits+0x45>
mov    $0x1,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movslq %edi,%rcx
imul   $0x66666667,%rcx,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x22,%rcx
lea    (%rcx,%rdx,1),%edi
add    $0x1,%eax
add    %edx,%ecx
add    $0x9,%ecx
cmp    $0x12,%ecx
ja     1120 <count_digits+0x20>
ret

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

LLVM IR (-O2):
define i32 @count_digits(i32 %0) {
%2 = add i32 %0, 9
%3 = icmp ult i32 %2, 19
br i1 %3, label %11, label %4
4: ; preds = %1, %4
%5 = phi i32 [ %8, %4 ], [ 1, %1 ]
%6 = phi i32 [ %7, %4 ], [ %0, %1 ]
%7 = sdiv i32 %6, 10
%8 = add nuw nsw i32 %5, 1
%9 = add nsw i32 %7, 9
%10 = icmp ult i32 %9, 19
br i1 %10, label %11, label %4
11: ; preds = %4, %1
%12 = phi i32 [ 1, %1 ], [ %8, %4 ]
ret i32 %12
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int);
int /*<<< orphan*/ stdout;
int main() {
  int i = 0;
  for (i = 0; i < 400; i++)
    fprintf(stdout, "%03d", i);
  while (1)
    ;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x190,-0x8(%rbp)
jge    1160 <main+0x50>
mov    0x2e9f(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%edx
lea    0xeb3(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    112d <main+0x1d>
jmp    1165 <main+0x55>
jmp    1165 <main+0x55>

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
xor    %ebx,%ebx
mov    0x2ec2(%rip),%r15
lea    0xedb(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nop
mov    (%r15),%edi
mov    %r14,%rsi
mov    %ebx,%edx
call   1030 <fprintf@plt>
add    $0x1,%ebx
cmp    $0x190,%ebx
jne    1130 <main+0x20>
nopl   0x0(%rax,%rax,1)
jmp    1150 <main+0x40>

LLVM IR (-O0):
@stdout = global i32 0
@.str = [5 x i8] c"%03d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
store i32 0, i32* %2
br label %3
3: ; preds = %10, %0
%4 = load i32, i32* %2
%5 = icmp slt i32 %4, 400
br i1 %5, label %6, label %13
6: ; preds = %3
%7 = load i32, i32* @stdout
%8 = load i32, i32* %2
%9 = call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %8)
br label %10
10: ; preds = %6
%11 = load i32, i32* %2
%12 = add nsw i32 %11, 1
store i32 %12, i32* %2
br label %3
13: ; preds = %3
br label %14
14: ; preds = %13, %14
br label %14
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [5 x i8] c"%03d\00"
define i32 @main() {
br label %1
1: ; preds = %0, %1
%2 = phi i32 [ 0, %0 ], [ %5, %1 ]
%3 = load i32, i32* @stdout
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 %2)
%5 = add nuw nsw i32 %2, 1
%6 = icmp eq i32 %5, 400
br i1 %6, label %7, label %1
7: ; preds = %1, %7
br label %7
}
/* Variables and functions */
int /*<<< orphan*/ ft_putchar(char);
void print_num_b(char a, char b, char c, char d) {
  ft_putchar(a);
  ft_putchar(b);
  ft_putchar(' ');
  ft_putchar(c);
  ft_putchar(d);
  ft_putchar(',');
  ft_putchar(' ');
}


x86 assembly (clang, -O0):
<print_num_b>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %cl,%al
mov    %dl,%cl
mov    %sil,%dl
mov    %dil,%sil
mov    %sil,-0x1(%rbp)
mov    %dl,-0x2(%rbp)
mov    %cl,-0x3(%rbp)
mov    %al,-0x4(%rbp)
movsbl -0x1(%rbp),%edi
call   1030 <ft_putchar@plt>
movsbl -0x2(%rbp),%edi
call   1030 <ft_putchar@plt>
mov    $0x20,%edi
call   1030 <ft_putchar@plt>
movsbl -0x3(%rbp),%edi
call   1030 <ft_putchar@plt>
movsbl -0x4(%rbp),%edi
call   1030 <ft_putchar@plt>
mov    $0x2c,%edi
call   1030 <ft_putchar@plt>
mov    $0x20,%edi
call   1030 <ft_putchar@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_num_b>:
push   %rbp
push   %r14
push   %rbx
mov    %ecx,%r14d
mov    %edx,%ebp
mov    %esi,%ebx
call   1030 <ft_putchar@plt>
mov    %ebx,%edi
call   1030 <ft_putchar@plt>
mov    $0x20,%edi
call   1030 <ft_putchar@plt>
mov    %ebp,%edi
call   1030 <ft_putchar@plt>
mov    %r14d,%edi
call   1030 <ft_putchar@plt>
mov    $0x2c,%edi
call   1030 <ft_putchar@plt>
mov    $0x20,%edi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <ft_putchar@plt>

LLVM IR (-O0):
define void @print_num_b(i8 signext %0, i8 signext %1, i8 signext %2, i8 signext %3) {
%5 = alloca i8
%6 = alloca i8
%7 = alloca i8
%8 = alloca i8
store i8 %0, i8* %5
store i8 %1, i8* %6
store i8 %2, i8* %7
store i8 %3, i8* %8
%9 = load i8, i8* %5
%10 = call i32 @ft_putchar(i8 signext %9)
%11 = load i8, i8* %6
%12 = call i32 @ft_putchar(i8 signext %11)
%13 = call i32 @ft_putchar(i8 signext 32)
%14 = load i8, i8* %7
%15 = call i32 @ft_putchar(i8 signext %14)
%16 = load i8, i8* %8
%17 = call i32 @ft_putchar(i8 signext %16)
%18 = call i32 @ft_putchar(i8 signext 44)
%19 = call i32 @ft_putchar(i8 signext 32)
ret void
}

LLVM IR (-O2):
define void @print_num_b(i8 signext %0, i8 signext %1, i8 signext %2, i8 signext %3) {
%5 = tail call i32 @ft_putchar(i8 signext %0)
%6 = tail call i32 @ft_putchar(i8 signext %1)
%7 = tail call i32 @ft_putchar(i8 signext 32)
%8 = tail call i32 @ft_putchar(i8 signext %2)
%9 = tail call i32 @ft_putchar(i8 signext %3)
%10 = tail call i32 @ft_putchar(i8 signext 44)
%11 = tail call i32 @ft_putchar(i8 signext 32)
ret void
}
/* Type definitions */
typedef scalar_t__ uint32_t;

/* Variables and functions */
scalar_t__ UINT32_MAX;
scalar_t__ get_gcode_word_integer(char);
uint32_t get_gcode_word_integer_default(char word, uint32_t defVal) {
  uint32_t tmp = get_gcode_word_integer(word);
  if (tmp == UINT32_MAX)
    return defVal;
  else
    return tmp;
}


x86 assembly (clang, -O0):
<get_gcode_word_integer_default>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %dil,%al
mov    %al,-0x9(%rbp)
mov    %rsi,-0x18(%rbp)
movsbl -0x9(%rbp),%edi
call   1030 <get_gcode_word_integer@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
mov    0x2ebe(%rip),%rcx
cmp    (%rcx),%rax
jne    1150 <get_gcode_word_integer_default+0x40>
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    1158 <get_gcode_word_integer_default+0x48>
mov    -0x20(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_gcode_word_integer_default>:
push   %rbx
mov    %rsi,%rbx
call   1030 <get_gcode_word_integer@plt>
mov    0x2ed8(%rip),%rcx
cmp    (%rcx),%rax
cmove  %rbx,%rax
pop    %rbx
ret

LLVM IR (-O0):
@UINT32_MAX = global i64 0
define i64 @get_gcode_word_integer_default(i8 signext %0, i64 %1) {
%3 = alloca i64
%4 = alloca i8
%5 = alloca i64
%6 = alloca i64
store i8 %0, i8* %4
store i64 %1, i64* %5
%7 = load i8, i8* %4
%8 = call i64 @get_gcode_word_integer(i8 signext %7)
store i64 %8, i64* %6
%9 = load i64, i64* %6
%10 = load i64, i64* @UINT32_MAX
%11 = icmp eq i64 %9, %10
br i1 %11, label %12, label %14
12: ; preds = %2
%13 = load i64, i64* %5
store i64 %13, i64* %3
br label %16
14: ; preds = %2
%15 = load i64, i64* %6
store i64 %15, i64* %3
br label %16
16: ; preds = %14, %12
%17 = load i64, i64* %3
ret i64 %17
}

LLVM IR (-O2):
@UINT32_MAX = global i64 0
define i64 @get_gcode_word_integer_default(i8 signext %0, i64 %1) {
%3 = tail call i64 @get_gcode_word_integer(i8 signext %0)
%4 = load i64, i64* @UINT32_MAX
%5 = icmp eq i64 %3, %4
%6 = select i1 %5, i64 %1, i64 %3
ret i64 %6
}
/* Type definitions */
typedef int uint;

/* Variables and functions */
uint zeros(uint k) { return ~0 << k; }


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

x86 assembly (clang, -O2):
<zeros>:
mov    %edi,%ecx
mov    $0xffffffff,%eax
shl    %cl,%eax
ret

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

LLVM IR (-O2):
define i32 @zeros(i32 %0) {
%2 = shl nsw i32 -1, %0
ret i32 %2
}
/* Variables and functions */
char tolower(char);
int is_hex_char(char c) {
  c = tolower(c);
  if ((c >= '0') && (c <= '9')) {
    return 1;
  }
  if ((c >= 'a') && (c <= 'f')) {
    return 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<is_hex_char>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%edi
call   1030 <tolower@plt>
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
cmp    $0x30,%eax
jl     1150 <is_hex_char+0x40>
movsbl -0x5(%rbp),%eax
cmp    $0x39,%eax
jg     1150 <is_hex_char+0x40>
movl   $0x1,-0x4(%rbp)
jmp    117d <is_hex_char+0x6d>
movsbl -0x5(%rbp),%eax
cmp    $0x61,%eax
jl     1176 <is_hex_char+0x66>
movsbl -0x5(%rbp),%eax
cmp    $0x66,%eax
jg     1176 <is_hex_char+0x66>
movl   $0x1,-0x4(%rbp)
jmp    117d <is_hex_char+0x6d>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_hex_char>:
push   %rax
call   1030 <tolower@plt>
lea    -0x30(%rax),%ecx
cmp    $0xa,%cl
setb   %cl
add    $0x9f,%al
cmp    $0x6,%al
setb   %al
or     %cl,%al
movzbl %al,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @is_hex_char(i8 signext %0) {
%2 = alloca i32
%3 = alloca i8
store i8 %0, i8* %3
%4 = load i8, i8* %3
%5 = call signext i8 @tolower(i8 signext %4)
store i8 %5, i8* %3
%6 = load i8, i8* %3
%7 = sext i8 %6 to i32
%8 = icmp sge i32 %7, 48
br i1 %8, label %9, label %14
9: ; preds = %1
%10 = load i8, i8* %3
%11 = sext i8 %10 to i32
%12 = icmp sle i32 %11, 57
br i1 %12, label %13, label %14
13: ; preds = %9
store i32 1, i32* %2
br label %24
14: ; preds = %9, %1
%15 = load i8, i8* %3
%16 = sext i8 %15 to i32
%17 = icmp sge i32 %16, 97
br i1 %17, label %18, label %23
18: ; preds = %14
%19 = load i8, i8* %3
%20 = sext i8 %19 to i32
%21 = icmp sle i32 %20, 102
br i1 %21, label %22, label %23
22: ; preds = %18
store i32 1, i32* %2
br label %24
23: ; preds = %18, %14
store i32 0, i32* %2
br label %24
24: ; preds = %23, %22, %13
%25 = load i32, i32* %2
ret i32 %25
}

LLVM IR (-O2):
define i32 @is_hex_char(i8 signext %0) {
%2 = tail call signext i8 @tolower(i8 signext %0)
%3 = add i8 %2, -48
%4 = icmp ult i8 %3, 10
%5 = add i8 %2, -97
%6 = icmp ult i8 %5, 6
%7 = or i1 %4, %6
%8 = zext i1 %7 to i32
ret i32 %8
}
/* Variables and functions */
char tolower(char);
char asymbol_1(char t) { return tolower(t); }


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

x86 assembly (clang, -O2):
<asymbol_1>:
jmp    1030 <tolower@plt>

LLVM IR (-O0):
define signext i8 @asymbol_1(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = call signext i8 @tolower(i8 signext %3)
ret i8 %4
}

LLVM IR (-O2):
define signext i8 @asymbol_1(i8 signext %0) {
%2 = tail call signext i8 @tolower(i8 signext %0)
ret i8 %2
}
float width(void) { return 0.0f; }


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

x86 assembly (clang, -O2):
<width>:
xorps  %xmm0,%xmm0
ret

LLVM IR (-O0):
define float @width() {
ret float 0.000000e+00
}

LLVM IR (-O2):
define float @width() {
ret float 0.000000e+00
}
void i2d_SXNET(void) {}


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

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

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

LLVM IR (-O2):
define void @i2d_SXNET() {
ret void
}
int test_imm_F6int16_reg(short val) {
  return ((val) & (0xF6 << 0)) ? -20 : -40;
}


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

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

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

LLVM IR (-O2):
define i32 @test_imm_F6int16_reg(i16 signext %0) {
%2 = and i16 %0, 246
%3 = icmp eq i16 %2, 0
%4 = select i1 %3, i32 -40, i32 -20
ret i32 %4
}
/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
extern int pcoproc_close(FILE *fp) { return 1; }


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

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

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

LLVM IR (-O2):
define i32 @pcoproc_close(i32* nocapture readnone %0) {
ret i32 1
}
void gtk_label_get_width_chars() {}


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

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

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

LLVM IR (-O2):
define void @gtk_label_get_width_chars() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ DMARefreshChannel(unsigned int);
void DMARefresh(void) {
  unsigned int i;
  for (i = 0; i < 4; ++i)
    DMARefreshChannel(i);
}


x86 assembly (clang, -O0):
<DMARefresh>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
cmpl   $0x4,-0x4(%rbp)
jae    113f <DMARefresh+0x2f>
mov    -0x4(%rbp),%edi
call   1030 <DMARefreshChannel@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    111f <DMARefresh+0xf>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DMARefresh>:
push   %rax
xor    %edi,%edi
call   1030 <DMARefreshChannel@plt>
mov    $0x1,%edi
call   1030 <DMARefreshChannel@plt>
mov    $0x2,%edi
call   1030 <DMARefreshChannel@plt>
mov    $0x3,%edi
pop    %rax
jmp    1030 <DMARefreshChannel@plt>

LLVM IR (-O0):
define void @DMARefresh() {
%1 = alloca i32
store i32 0, i32* %1
br label %2
2: ; preds = %8, %0
%3 = load i32, i32* %1
%4 = icmp ult i32 %3, 4
br i1 %4, label %5, label %11
5: ; preds = %2
%6 = load i32, i32* %1
%7 = call i32 @DMARefreshChannel(i32 %6)
br label %8
8: ; preds = %5
%9 = load i32, i32* %1
%10 = add i32 %9, 1
store i32 %10, i32* %1
br label %2
11: ; preds = %2
ret void
}

LLVM IR (-O2):
define void @DMARefresh() {
%1 = tail call i32 @DMARefreshChannel(i32 0)
%2 = tail call i32 @DMARefreshChannel(i32 1)
%3 = tail call i32 @DMARefreshChannel(i32 2)
%4 = tail call i32 @DMARefreshChannel(i32 3)
ret void
}
void metostr(buf, val) char buf[];
int val;
{
  if (val)
    z2dtostr(buf, val);
}


x86 assembly (clang, -O0):
<metostr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
je     1137 <metostr+0x27>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    $0x0,%al
call   1030 <z2dtostr@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<metostr>:
test   %esi,%esi
je     111b <metostr+0xb>
xor    %eax,%eax
jmp    1030 <z2dtostr@plt>
ret

LLVM IR (-O0):
define void @metostr(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %11
7: ; preds = %2
%8 = load i8*, i8** %3
%9 = load i32, i32* %4
%10 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @z2dtostr to i32 (i8*, i32, ...)*)(i8* %8, i32 %9)
br label %11
11: ; preds = %7, %2
ret void
}

LLVM IR (-O2):
define void @metostr(i8* %0, i32 %1) {
%3 = icmp eq i32 %1, 0
br i1 %3, label %6, label %4
4: ; preds = %2
%5 = tail call i32 (i8*, i32, ...) bitcast (i32 (...)* @z2dtostr to i32 (i8*, i32, ...)*)(i8* %0, i32 %1)
br label %6
6: ; preds = %4, %2
ret void
}
int call_me(int x, char *p[]) {
  char *a = p[x];
  char *orig_a = a;
  while (*a)
    ++a;
  return (int)a - (int)orig_a;
}


x86 assembly (clang, -O0):
<call_me>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x4(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rax
cmpb   $0x0,(%rax)
je     1141 <call_me+0x41>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1123 <call_me+0x23>
mov    -0x18(%rbp),%rax
mov    -0x20(%rbp),%rcx
sub    %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<call_me>:
movslq %edi,%rax
mov    (%rsi,%rax,8),%rcx
mov    $0xffffffff,%eax
nopl   0x0(%rax)
add    $0x1,%eax
cmpb   $0x0,(%rcx)
lea    0x1(%rcx),%rcx
jne    1110 <call_me+0x10>
ret

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

LLVM IR (-O2):
define i32 @call_me(i32 %0, i8** nocapture %1) {
%3 = sext i32 %0 to i64
%4 = getelementptr inbounds i8*, i8** %1, i64 %3
%5 = load i8*, i8** %4
br label %6
6: ; preds = %6, %2
%7 = phi i8* [ %5, %2 ], [ %10, %6 ]
%8 = load i8, i8* %7
%9 = icmp eq i8 %8, 0
%10 = getelementptr inbounds i8, i8* %7, i64 1
br i1 %9, label %11, label %6
11: ; preds = %6
%12 = ptrtoint i8* %7 to i64
%13 = trunc i64 %12 to i32
%14 = ptrtoint i8* %5 to i64
%15 = trunc i64 %14 to i32
%16 = sub nsw i32 %13, %15
ret i32 %16
}
/* Forward declarations */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
struct TYPE_2__ {
  int line_width;
};
typedef TYPE_1__ XGCValues;

/* Variables and functions */
void set_XGCValues_line_width(void *_p, int _v) {
  ((XGCValues *)_p)->line_width = (int)_v;
}


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

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

LLVM IR (-O0):
%struct.TYPE_2__ = type { i32 }
define void @set_XGCValues_line_width(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%5 = load i32, i32* %4
%6 = load i8*, i8** %3
%7 = bitcast i8* %6 to %struct.TYPE_2__*
%8 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %7, i32 0, i32 0
store i32 %5, i32* %8
ret void
}

LLVM IR (-O2):
define void @set_XGCValues_line_width(i8* nocapture writeonly %0, i32 %1) {
%3 = bitcast i8* %0 to i32*
store i32 %1, i32* %3
ret void
}
int capture_u(const char *carg, void *pvar) {
  int *p = pvar;
  if (!p)
    return 1;
  *p = 'u';
  return 0;
}


x86 assembly (clang, -O0):
<capture_u>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    112b <capture_u+0x2b>
movl   $0x1,-0x4(%rbp)
jmp    113c <capture_u+0x3c>
mov    -0x20(%rbp),%rax
movl   $0x75,(%rax)
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<capture_u>:
test   %rsi,%rsi
je     110e <capture_u+0xe>
movl   $0x75,(%rsi)
xor    %eax,%eax
ret
mov    $0x1,%eax
ret

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

LLVM IR (-O2):
define i32 @capture_u(i8* nocapture readnone %0, i8* writeonly %1) {
%3 = icmp eq i8* %1, null
br i1 %3, label %6, label %4
4: ; preds = %2
%5 = bitcast i8* %1 to i32*
store i32 117, i32* %5
br label %6
6: ; preds = %2, %4
%7 = phi i32 [ 0, %4 ], [ 1, %2 ]
ret i32 %7
}
/* Variables and functions */
int /*<<< orphan*/ CPUwfi();
void PRCMDeepSleepEnter() {
  (*((volatile unsigned long *)(0x4402F000 + 0x000000C0))) = 0x1;
  (*((volatile unsigned long *)(0xE000ED10))) |= 1 << 2;
  CPUwfi();
  (*((volatile unsigned long *)(0xE000ED10))) &= ~(1 << 2);
}


x86 assembly (clang, -O0):
<PRCMDeepSleepEnter>:
push   %rbp
mov    %rsp,%rbp
mov    $0x4402f0c0,%eax
movq   $0x1,(%rax)
mov    $0xe000ed10,%eax
mov    (%rax),%rcx
or     $0x4,%rcx
mov    $0xe000ed10,%eax
mov    %rcx,(%rax)
mov    $0x0,%al
call   1030 <CPUwfi@plt>
mov    $0xe000ed10,%eax
mov    (%rax),%rcx
and    $0xfffffffffffffffb,%rcx
mov    $0xe000ed10,%eax
mov    %rcx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<PRCMDeepSleepEnter>:
push   %rbx
movq   $0x1,0x4402f0c0
mov    $0xe000ed10,%ebx
orq    $0x4,(%rbx)
xor    %eax,%eax
call   1030 <CPUwfi@plt>
andq   $0xfffffffffffffffb,(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define void @PRCMDeepSleepEnter() {
store volatile i64 1, i64* inttoptr (i64 1141043392 to i64*)
%1 = load volatile i64, i64* inttoptr (i64 3758157072 to i64*)
%2 = or i64 %1, 4
store volatile i64 %2, i64* inttoptr (i64 3758157072 to i64*)
%3 = call i32 (...) @CPUwfi()
%4 = load volatile i64, i64* inttoptr (i64 3758157072 to i64*)
%5 = and i64 %4, -5
store volatile i64 %5, i64* inttoptr (i64 3758157072 to i64*)
ret void
}

LLVM IR (-O2):
define void @PRCMDeepSleepEnter() {
store volatile i64 1, i64* inttoptr (i64 1141043392 to i64*)
%1 = load volatile i64, i64* inttoptr (i64 3758157072 to i64*)
%2 = or i64 %1, 4
store volatile i64 %2, i64* inttoptr (i64 3758157072 to i64*)
%3 = tail call i32 (...) @CPUwfi()
%4 = load volatile i64, i64* inttoptr (i64 3758157072 to i64*)
%5 = and i64 %4, -5
store volatile i64 %5, i64* inttoptr (i64 3758157072 to i64*)
ret void
}
/* Variables and functions */
int strlen(char *string) {
  unsigned int i = 0;
  while (*string++)
    i++;
  return i;
}


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

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

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

LLVM IR (-O2):
define i32 @strlen(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %11, label %4
4: ; preds = %1, %4
%5 = phi i32 [ %8, %4 ], [ 0, %1 ]
%6 = phi i8* [ %7, %4 ], [ %0, %1 ]
%7 = getelementptr inbounds i8, i8* %6, i64 1
%8 = add i32 %5, 1
%9 = load i8, i8* %7
%10 = icmp eq i8 %9, 0
br i1 %10, label %11, label %4
11: ; preds = %4, %1
%12 = phi i32 [ 0, %1 ], [ %8, %4 ]
ret i32 %12
}
/* Variables and functions */
int /*<<< orphan*/ O_RDONLY;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int open(char *, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int GetFileDescriptorRead(char *FileName) {
  int ReturnVal = open(FileName, O_RDONLY);
  if (ReturnVal == -1)
    fprintf(stderr, "Unable to open file, %s\n", FileName);
  return ReturnVal;
}


x86 assembly (clang, -O0):
<GetFileDescriptorRead>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x2eb1(%rip),%rax
mov    (%rax),%esi
call   1040 <open@plt>
mov    %eax,-0xc(%rbp)
cmpl   $0xffffffff,-0xc(%rbp)
jne    1164 <GetFileDescriptorRead+0x44>
mov    0x2e86(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xea1(%rip),%rsi
call   1030 <fprintf@plt>
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GetFileDescriptorRead>:
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    1153 <GetFileDescriptorRead+0x33>
mov    0x2e96(%rip),%rax
mov    (%rax),%edi
lea    0xeb5(%rip),%rsi
mov    %rbx,%rdx
call   1030 <fprintf@plt>
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@O_RDONLY = global i32 0
@stderr = global i32 0
@.str = [25 x i8] c"Unable to open file, %s\0A\00"
define i32 @GetFileDescriptorRead(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = load i32, i32* @O_RDONLY
%6 = call i32 @open(i8* %4, i32 %5)
store i32 %6, i32* %3
%7 = load i32, i32* %3
%8 = icmp eq i32 %7, -1
br i1 %8, label %9, label %13
9: ; preds = %1
%10 = load i32, i32* @stderr
%11 = load i8*, i8** %2
%12 = call i32 @fprintf(i32 %10, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i8* %11)
br label %13
13: ; preds = %9, %1
%14 = load i32, i32* %3
ret i32 %14
}

LLVM IR (-O2):
@O_RDONLY = global i32 0
@stderr = global i32 0
@.str = [25 x i8] c"Unable to open file, %s\0A\00"
define i32 @GetFileDescriptorRead(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 %8
5: ; preds = %1
%6 = load i32, i32* @stderr
%7 = tail call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i8* %0)
br label %8
8: ; preds = %5, %1
ret i32 %3
}
void option_set_unit2MODIF_MULTILINE() {}


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

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

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

LLVM IR (-O2):
define void @option_set_unit2MODIF_MULTILINE() {
ret void
}
void spi_enable_clock(void) {}


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

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

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

LLVM IR (-O2):
define void @spi_enable_clock() {
ret void
}
int check_val_VSTREAM_CTLint(int v) { return v; }


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

x86 assembly (clang, -O2):
<check_val_VSTREAM_CTLint>:
mov    %edi,%eax
ret

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

LLVM IR (-O2):
define i32 @check_val_VSTREAM_CTLint(i32 returned %0) {
ret i32 %0
}
long long GetSubmission(long long playernum) { return 1LL; }


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

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

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

LLVM IR (-O2):
define i64 @GetSubmission(i64 %0) {
ret i64 1
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int rate(long long, int /*<<< orphan*/);
int /*<<< orphan*/ scanf(char *, long long *);
void alter_query() {
  long long t;
  scanf("%lld", &t);
  printf("%d\n", rate(t, 0));
}


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

x86 assembly (clang, -O2):
<alter_query>:
push   %rax
lea    0xec8(%rip),%rdi
mov    %rsp,%rsi
call   1050 <scanf@plt>
mov    (%rsp),%rdi
xor    %esi,%esi
call   1030 <rate@plt>
lea    0xeb3(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
pop    %rax
ret

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

LLVM IR (-O2):
@.str = [5 x i8] c"%lld\00"
@.str.1 = [4 x i8] c"%d\0A\00"
define void @alter_query() {
%1 = alloca i64
%2 = bitcast i64* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64* %1)
%4 = load i64, i64* %1
%5 = call i32 @rate(i64 %4, i32 0)
%6 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %5)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
char *getprogname();
int /*<<< orphan*/ stderr;
void usage(void) {
  (void)fprintf(stderr,
                "Usage: %s [-ktz] [-b <num-retry>] "
                "[-d <domainname>] <key> ... <mapname>\n",
                getprogname());
  (void)fprintf(stderr, "       %s -x\n", getprogname());
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    0x2ea1(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1030 <getprogname@plt>
mov    -0x8(%rbp),%edi
mov    %rax,%rdx
lea    0xea8(%rip),%rsi
call   1040 <fprintf@plt>
mov    0x2e7c(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1030 <getprogname@plt>
mov    -0x4(%rbp),%edi
mov    %rax,%rdx
lea    0xecc(%rip),%rsi
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %r14
push   %rbx
push   %rax
mov    0x2ea5(%rip),%r14
mov    (%r14),%ebx
xor    %eax,%eax
call   1030 <getprogname@plt>
lea    0xeb4(%rip),%rsi
mov    %ebx,%edi
mov    %rax,%rdx
call   1040 <fprintf@plt>
mov    (%r14),%ebx
xor    %eax,%eax
call   1030 <getprogname@plt>
lea    0xee2(%rip),%rsi
mov    %ebx,%edi
mov    %rax,%rdx
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [73 x i8] c"Usage: %s [-ktz] [-b <num-retry>] [-d <domainname>] <key> ... <mapname>\0A\00"
@.str.1 = [14 x i8] c" %s -x\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i8* (...) @getprogname()
%3 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str, i64 0, i64 0), i8* %2)
%4 = load i32, i32* @stderr
%5 = call i8* (...) @getprogname()
%6 = call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* %5)
%7 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [73 x i8] c"Usage: %s [-ktz] [-b <num-retry>] [-d <domainname>] <key> ... <mapname>\0A\00"
@.str.1 = [14 x i8] c" %s -x\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i8* (...) @getprogname()
%3 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str, i64 0, i64 0), i8* %2)
%4 = load i32, i32* @stderr
%5 = tail call i8* (...) @getprogname()
%6 = tail call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* %5)
%7 = tail call i32 @exit(i32 1)
unreachable
}
/* Variables and functions */
int /*<<< orphan*/ ADC_ETC_IRQ1_DriverIRQHandler();
__attribute__((weak)) void ADC_ETC_IRQ1_IRQHandler(void) {
  ADC_ETC_IRQ1_DriverIRQHandler();
}


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

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

LLVM IR (-O0):
define weak void @ADC_ETC_IRQ1_IRQHandler() {
%1 = call i32 (...) @ADC_ETC_IRQ1_DriverIRQHandler()
ret void
}

LLVM IR (-O2):
define weak void @ADC_ETC_IRQ1_IRQHandler() {
%1 = tail call i32 (...) @ADC_ETC_IRQ1_DriverIRQHandler()
ret void
}
/* Variables and functions */
char *strcasestr(char const *, char const *);
char *strstr(char const *, char const *);
char *_strstr(const char *haystack, const char *needle, int anycase) {
  return anycase ? strcasestr(haystack, needle) : strstr(haystack, needle);
}


x86 assembly (clang, -O0):
<_strstr>:
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     1153 <_strstr+0x33>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <strcasestr@plt>
mov    %rax,-0x20(%rbp)
jmp    1164 <_strstr+0x44>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <strstr@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_strstr>:
test   %edx,%edx
je     1129 <_strstr+0x9>
jmp    1030 <strcasestr@plt>
jmp    1040 <strstr@plt>

LLVM IR (-O0):
define i8* @_strstr(i8* %0, i8* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
store i8* %0, i8** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%7 = load i32, i32* %6
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %3
%10 = load i8*, i8** %4
%11 = load i8*, i8** %5
%12 = call i8* @strcasestr(i8* %10, i8* %11)
br label %17
13: ; preds = %3
%14 = load i8*, i8** %4
%15 = load i8*, i8** %5
%16 = call i8* @strstr(i8* %14, i8* %15)
br label %17
17: ; preds = %13, %9
%18 = phi i8* [ %12, %9 ], [ %16, %13 ]
ret i8* %18
}

LLVM IR (-O2):
define i8* @_strstr(i8* %0, i8* %1, i32 %2) {
%4 = icmp eq i32 %2, 0
br i1 %4, label %7, label %5
5: ; preds = %3
%6 = tail call i8* @strcasestr(i8* %0, i8* %1)
br label %9
7: ; preds = %3
%8 = tail call i8* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) %1)
br label %9
9: ; preds = %7, %5
%10 = phi i8* [ %6, %5 ], [ %8, %7 ]
ret i8* %10
}
/* Variables and functions */
int /*<<< orphan*/ delay(int);
int /*<<< orphan*/ disp_int(int /*<<< orphan*/);
int /*<<< orphan*/ disp_str(char *);
void test_a() {
  int i = 0;
  while (1) {
    disp_str("w");
    disp_int(i++);
    disp_str(".");
    delay(1);
  }
}


x86 assembly (clang, -O0):
<test_a>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
call   1030 <disp_str@plt>
mov    -0x4(%rbp),%edi
mov    %edi,%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    %eax,-0x4(%rbp)
call   1050 <disp_int@plt>
lea    0xe9d(%rip),%rdi
call   1030 <disp_str@plt>
mov    $0x1,%edi
call   1040 <delay@plt>
jmp    113f <test_a+0xf>

x86 assembly (clang, -O2):
<test_a>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
xor    %ebx,%ebx
lea    0xec0(%rip),%r14
lea    0xebb(%rip),%r15
nopw   0x0(%rax,%rax,1)
mov    %r14,%rdi
call   1030 <disp_str@plt>
lea    0x1(%rbx),%ebp
mov    %ebx,%edi
call   1050 <disp_int@plt>
mov    %r15,%rdi
call   1030 <disp_str@plt>
mov    $0x1,%edi
call   1040 <delay@plt>
mov    %ebp,%ebx
jmp    1150 <test_a+0x20>

LLVM IR (-O0):
@.str = [2 x i8] c"w\00"
@.str.1 = [2 x i8] c".\00"
define void @test_a() {
%1 = alloca i32
store i32 0, i32* %1
br label %2
2: ; preds = %0, %2
%3 = call i32 @disp_str(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%4 = load i32, i32* %1
%5 = add nsw i32 %4, 1
store i32 %5, i32* %1
%6 = call i32 @disp_int(i32 %4)
%7 = call i32 @disp_str(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 @delay(i32 1)
br label %2
}

LLVM IR (-O2):
@.str = [2 x i8] c"w\00"
@.str.1 = [2 x i8] c".\00"
define void @test_a() {
br label %1
1: ; preds = %1, %0
%2 = phi i32 [ 0, %0 ], [ %4, %1 ]
%3 = tail call i32 @disp_str(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%4 = add nuw nsw i32 %2, 1
%5 = tail call i32 @disp_int(i32 %2)
%6 = tail call i32 @disp_str(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%7 = tail call i32 @delay(i32 1)
br label %1
}
/* Variables and functions */
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/);
int is_valid_ucn(char *);
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ stdin;
int main() {
  char ucn[12];
  fgets(ucn, 13, stdin);
  printf("%d", is_valid_ucn(ucn));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x10(%rbp),%rdi
mov    0x2e9e(%rip),%rax
mov    (%rax),%edx
mov    $0xd,%esi
call   1040 <fgets@plt>
lea    -0x10(%rbp),%rdi
call   1050 <is_valid_ucn@plt>
mov    %eax,%esi
lea    0xe98(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
mov    0x2eac(%rip),%rax
mov    (%rax),%edx
lea    0x4(%rsp),%rbx
mov    %rbx,%rdi
mov    $0xd,%esi
call   1040 <fgets@plt>
mov    %rbx,%rdi
call   1050 <is_valid_ucn@plt>
lea    0xea1(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

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

LLVM IR (-O2):
@stdin = global i32 0
@.str = [3 x i8] c"%d\00"
define i32 @main() {
%1 = alloca [12 x i8]
%2 = getelementptr inbounds [12 x i8], [12 x i8]* %1, i64 0, i64 0
%3 = load i32, i32* @stdin
%4 = call i32 @fgets(i8* %2, i32 13, i32 %3)
%5 = call i32 @is_valid_ucn(i8* %2)
%6 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %5)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ foo07();
void bar07() { foo07(); }


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

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

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

LLVM IR (-O2):
define void @bar07() {
%1 = tail call i32 (...) @foo07()
ret void
}
/* Variables and functions */
int /*<<< orphan*/ color_fdisable(int /*<<< orphan*/);
int /*<<< orphan*/ stdout;
void color_disable(void) { color_fdisable(stdout); }


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

x86 assembly (clang, -O2):
<color_disable>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%edi
jmp    1030 <color_fdisable@plt>

LLVM IR (-O0):
@stdout = global i32 0
define void @color_disable() {
%1 = load i32, i32* @stdout
%2 = call i32 @color_fdisable(i32 %1)
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
define void @color_disable() {
%1 = load i32, i32* @stdout
%2 = tail call i32 @color_fdisable(i32 %1)
ret void
}
void f(void) {
#pragma hlt unroll(11)
  for (int i = 0; i < 100; i++) {
  }
}


x86 assembly (clang, -O0):
<f>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
cmpl   $0x64,-0x4(%rbp)
jge    1128 <f+0x28>
jmp    111a <f+0x1a>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    110b <f+0xb>
pop    %rbp
ret

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

LLVM IR (-O0):
define void @f() {
%1 = alloca i32
store i32 0, i32* %1
br label %2
2: ; preds = %6, %0
%3 = load i32, i32* %1
%4 = icmp slt i32 %3, 100
br i1 %4, label %5, label %9
5: ; preds = %2
br label %6
6: ; preds = %5
%7 = load i32, i32* %1
%8 = add nsw i32 %7, 1
store i32 %8, i32* %1
br label %2
9: ; preds = %2
ret void
}

LLVM IR (-O2):
define void @f() {
ret void
}
char *langRomTypeSnatcher() { return "Snatcher"; }


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

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

LLVM IR (-O0):
@.str = [9 x i8] c"Snatcher\00"
define i8* @langRomTypeSnatcher() {
ret i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [9 x i8] c"Snatcher\00"
define i8* @langRomTypeSnatcher() {
ret i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0)
}
char *easy_string_toupper(char *str) {
  char *p = str;
  while (*p) {
    if ((*p) >= 'a' && (*p) <= 'z')
      (*p) -= 32;
    p++;
  }
  return str;
}


x86 assembly (clang, -O0):
<easy_string_toupper>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cmpb   $0x0,(%rax)
je     115a <easy_string_toupper+0x5a>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x61,%eax
jl     1149 <easy_string_toupper+0x49>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x7a,%eax
jg     1149 <easy_string_toupper+0x49>
mov    -0x10(%rbp),%rax
movsbl (%rax),%ecx
sub    $0x20,%ecx
mov    %cl,(%rax)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1110 <easy_string_toupper+0x10>
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<easy_string_toupper>:
mov    %rdi,%rax
mov    (%rdi),%cl
test   %cl,%cl
je     112c <easy_string_toupper+0x2c>
lea    0x1(%rax),%rdx
jmp    111b <easy_string_toupper+0x1b>
nop
movzbl (%rdx),%ecx
add    $0x1,%rdx
test   %cl,%cl
je     112c <easy_string_toupper+0x2c>
lea    -0x61(%rcx),%esi
cmp    $0x19,%sil
ja     1110 <easy_string_toupper+0x10>
add    $0xe0,%cl
mov    %cl,-0x1(%rdx)
jmp    1110 <easy_string_toupper+0x10>
ret

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

LLVM IR (-O2):
define i8* @easy_string_toupper(i8* returned %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %15, label %4
4: ; preds = %1, %11
%5 = phi i8 [ %13, %11 ], [ %2, %1 ]
%6 = phi i8* [ %12, %11 ], [ %0, %1 ]
%7 = add i8 %5, -97
%8 = icmp ult i8 %7, 26
br i1 %8, label %9, label %11
9: ; preds = %4
%10 = add nsw i8 %5, -32
store i8 %10, i8* %6
br label %11
11: ; preds = %9, %4
%12 = getelementptr inbounds i8, i8* %6, i64 1
%13 = load i8, i8* %12
%14 = icmp eq i8 %13, 0
br i1 %14, label %15, label %4
15: ; preds = %11, %1
ret i8* %0
}