xunge/DecIR huggingface dataset:
/* Variables and functions */
int M_PI;
double bot_mod2pi_positive(double vin) {
  double q = vin / (2 * M_PI) + 0.5;
  int qi = (int)q;
  return vin - qi * 2 * M_PI;
}


x86 assembly (clang, -O0):
<bot_mod2pi_positive>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    0x2ed3(%rip),%rax
mov    (%rax),%eax
shl    $0x1,%eax
cvtsi2sd %eax,%xmm1
divsd  %xmm1,%xmm0
movsd  0xed6(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
cvttsd2si -0x10(%rbp),%eax
mov    %eax,-0x14(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    -0x14(%rbp),%eax
shl    $0x1,%eax
mov    0x2e9b(%rip),%rcx
imul   (%rcx),%eax
cvtsi2sd %eax,%xmm1
subsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<bot_mod2pi_positive>:
mov    0x2ee1(%rip),%rax
mov    (%rax),%eax
add    %eax,%eax
cvtsi2sd %eax,%xmm1
movapd %xmm0,%xmm2
divsd  %xmm1,%xmm2
addsd  0xee1(%rip),%xmm2
cvttsd2si %xmm2,%ecx
imul   %eax,%ecx
xorps  %xmm1,%xmm1
cvtsi2sd %ecx,%xmm1
subsd  %xmm1,%xmm0
ret

LLVM IR (-O0):
@M_PI = global i32 0
define double @bot_mod2pi_positive(double %0) {
%2 = alloca double
%3 = alloca double
%4 = alloca i32
store double %0, double* %2
%5 = load double, double* %2
%6 = load i32, i32* @M_PI
%7 = mul nsw i32 2, %6
%8 = sitofp i32 %7 to double
%9 = fdiv double %5, %8
%10 = fadd double %9, 5.000000e-01
store double %10, double* %3
%11 = load double, double* %3
%12 = fptosi double %11 to i32
store i32 %12, i32* %4
%13 = load double, double* %2
%14 = load i32, i32* %4
%15 = mul nsw i32 %14, 2
%16 = load i32, i32* @M_PI
%17 = mul nsw i32 %15, %16
%18 = sitofp i32 %17 to double
%19 = fsub double %13, %18
ret double %19
}

LLVM IR (-O2):
@M_PI = global i32 0
define double @bot_mod2pi_positive(double %0) {
%2 = load i32, i32* @M_PI
%3 = shl i32 %2, 1
%4 = sitofp i32 %3 to double
%5 = fdiv double %0, %4
%6 = fadd double %5, 5.000000e-01
%7 = fptosi double %6 to i32
%8 = mul i32 %3, %7
%9 = sitofp i32 %8 to double
%10 = fsub double %0, %9
ret double %10
}
/* Variables and functions */
int /*<<< orphan*/ Assert_real(int, char *, int, char *);
scalar_t__ ispunct(int);
void t_ispunct_0xf9() {
  Assert_real((ispunct(249) == 0),
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/"
              "dg/z88dk/test/suites/ctype/test_ispunct.c",
              1250, ("ispunct should be 0 for 0xf9"));
}


x86 assembly (clang, -O0):
<t_ispunct_0xf9>:
push   %rbp
mov    %rsp,%rbp
mov    $0xf9,%edi
call   1030 <ispunct@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xebf(%rip),%rsi
mov    $0x4e2,%edx
lea    0xf5b(%rip),%rcx
call   1040 <Assert_real@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_ispunct_0xf9>:
push   %rax
mov    $0xf9,%edi
call   1030 <ispunct@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
lea    0xec5(%rip),%rsi
lea    0xf66(%rip),%rcx
mov    $0x4e2,%edx
pop    %rax
jmp    1040 <Assert_real@plt>

LLVM IR (-O0):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_ispunct.c\00"
@.str.1 = [29 x i8] c"ispunct should be 0 for 0xf9\00"
define void @t_ispunct_0xf9() {
%1 = call i64 @ispunct(i32 249)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 1250, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [168 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/bitfixer/bitfixer/refs/heads/master/dg/z88dk/test/suites/ctype/test_ispunct.c\00"
@.str.1 = [29 x i8] c"ispunct should be 0 for 0xf9\00"
define void @t_ispunct_0xf9() {
%1 = tail call i64 @ispunct(i32 249)
%2 = icmp eq i64 %1, 0
%3 = zext i1 %2 to i32
%4 = tail call i32 @Assert_real(i32 %3, i8* getelementptr inbounds ([168 x i8], [168 x i8]* @.str, i64 0, i64 0), i32 1250, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
ret void
}
/* Variables and functions */
int syscall(int, int *, int /*<<< orphan*/);
int wait(int *status) { return syscall(12, status, 0); }


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

x86 assembly (clang, -O2):
<wait>:
mov    %rdi,%rsi
mov    $0xc,%edi
xor    %edx,%edx
jmp    1030 <syscall@plt>

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

LLVM IR (-O2):
define i32 @wait(i32* %0) {
%2 = tail call i32 @syscall(i32 12, i32* %0, i32 0)
ret i32 %2
}
char *RCSid() {
  return RCSid("$Id: scanner.c,v 1.31.2.3 2013/09/07 05:07:32 sfeam Exp $");
}


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

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

LLVM IR (-O0):
@.str = [58 x i8] c"$Id: scanner.c,v 1.31.2.3 2013/09/07 05:07:32 sfeam Exp $\00"
define i8* @RCSid() {
%1 = call i8* (i8*, ...) bitcast (i8* ()* @RCSid to i8* (i8*, ...)*)(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str, i64 0, i64 0))
ret i8* %1
}

LLVM IR (-O2):
define noalias i8* @RCSid() {
br label %1
1: ; preds = %1, %0
br label %1
}
char normalise(char operator) {
  switch (operator) {
  case 'x':
  case '*':
    return '*';
  case '\'':
  case '^':
    return '^';
  default:
    return operator;
  }
}


x86 assembly (clang, -O0):
<normalise>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x2(%rbp)
movsbl -0x2(%rbp),%eax
mov    %eax,-0x8(%rbp)
sub    $0x27,%eax
je     115b <normalise+0x5b>
jmp    111f <normalise+0x1f>
mov    -0x8(%rbp),%eax
sub    $0x2a,%eax
je     1152 <normalise+0x52>
jmp    1130 <normalise+0x30>
mov    -0x8(%rbp),%eax
sub    $0x5e,%eax
je     115b <normalise+0x5b>
jmp    1141 <normalise+0x41>
mov    -0x8(%rbp),%eax
sub    $0x78,%eax
jne    1164 <normalise+0x64>
jmp    1152 <normalise+0x52>
movb   $0x2a,-0x1(%rbp)
jmp    116a <normalise+0x6a>
movb   $0x5e,-0x1(%rbp)
jmp    116a <normalise+0x6a>
mov    -0x2(%rbp),%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<normalise>:
mov    $0x2a,%al
cmp    $0x5d,%edi
jg     1112 <normalise+0x12>
cmp    $0x27,%edi
je     111c <normalise+0x1c>
cmp    $0x2a,%edi
jne    111f <normalise+0x1f>
ret
cmp    $0x78,%edi
je     1111 <normalise+0x11>
cmp    $0x5e,%edi
jne    111f <normalise+0x1f>
mov    $0x5e,%al
ret
mov    %edi,%eax
ret

LLVM IR (-O0):
define signext i8 @normalise(i8 signext %0) {
%2 = alloca i8
%3 = alloca i8
store i8 %0, i8* %3
%4 = load i8, i8* %3
%5 = sext i8 %4 to i32
switch i32 %5, label %8 [
i32 120, label %6
i32 42, label %6
i32 39, label %7
i32 94, label %7
]
6: ; preds = %1, %1
store i8 42, i8* %2
br label %10
7: ; preds = %1, %1
store i8 94, i8* %2
br label %10
8: ; preds = %1
%9 = load i8, i8* %3
store i8 %9, i8* %2
br label %10
10: ; preds = %8, %7, %6
%11 = load i8, i8* %2
ret i8 %11
}

LLVM IR (-O2):
define signext i8 @normalise(i8 signext %0) {
%2 = sext i8 %0 to i32
switch i32 %2, label %4 [
i32 120, label %5
i32 42, label %5
i32 39, label %3
i32 94, label %3
]
3: ; preds = %1, %1
br label %5
4: ; preds = %1
br label %5
5: ; preds = %1, %1, %4, %3
%6 = phi i8 [ %0, %4 ], [ 94, %3 ], [ 42, %1 ], [ 42, %1 ]
ret i8 %6
}
int ieee80211_freq_to_fhss_chan(int freq) {
  if ((freq > 2401) && (freq < 2496))
    return freq - 2400;
  else
    return -1;
}


x86 assembly (clang, -O0):
<ieee80211_freq_to_fhss_chan>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x8(%rbp)
cmpl   $0x961,-0x8(%rbp)
jle    1131 <ieee80211_freq_to_fhss_chan+0x31>
cmpl   $0x9c0,-0x8(%rbp)
jge    1131 <ieee80211_freq_to_fhss_chan+0x31>
mov    -0x8(%rbp),%eax
sub    $0x960,%eax
mov    %eax,-0x4(%rbp)
jmp    1138 <ieee80211_freq_to_fhss_chan+0x38>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ieee80211_freq_to_fhss_chan>:
lea    -0x962(%rdi),%eax
lea    -0x960(%rdi),%ecx
cmp    $0x5e,%eax
mov    $0xffffffff,%eax
cmovb  %ecx,%eax
ret

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

LLVM IR (-O2):
define i32 @ieee80211_freq_to_fhss_chan(i32 %0) {
%2 = add i32 %0, -2402
%3 = icmp ult i32 %2, 94
%4 = add nsw i32 %0, -2400
%5 = select i1 %3, i32 %4, i32 -1
ret i32 %5
}
void g_tree_new_with_data() {}


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

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

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

LLVM IR (-O2):
define void @g_tree_new_with_data() {
ret void
}
unsigned int AlphaNum(char ch) {
  return (((ch >= 'a') && (ch <= 'z')) || ((ch >= 'A') && (ch <= 'Z'))) ||
         ((ch >= '0') && (ch <= '9'));
  __builtin_unreachable();
}


x86 assembly (clang, -O0):
<AlphaNum>:
push   %rbp
mov    %rsp,%rbp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
cmp    $0x61,%eax
jl     1129 <AlphaNum+0x29>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x7a,%ecx
mov    %al,-0x2(%rbp)
jle    116d <AlphaNum+0x6d>
movsbl -0x1(%rbp),%eax
cmp    $0x41,%eax
jl     1148 <AlphaNum+0x48>
movsbl -0x1(%rbp),%ecx
mov    $0x1,%al
cmp    $0x5a,%ecx
mov    %al,-0x2(%rbp)
jle    116d <AlphaNum+0x6d>
movsbl -0x1(%rbp),%ecx
xor    %eax,%eax
cmp    $0x30,%ecx
mov    %al,-0x3(%rbp)
jl     1167 <AlphaNum+0x67>
movsbl -0x1(%rbp),%eax
cmp    $0x39,%eax
setle  %al
mov    %al,-0x3(%rbp)
mov    -0x3(%rbp),%al
mov    %al,-0x2(%rbp)
mov    -0x2(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<AlphaNum>:
mov    %edi,%eax
and    $0xdf,%al
add    $0xbf,%al
cmp    $0x1a,%al
setb   %al
add    $0xd0,%dil
cmp    $0xa,%dil
setb   %cl
or     %al,%cl
movzbl %cl,%eax
ret

LLVM IR (-O0):
define i32 @AlphaNum(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = sext i8 %3 to i32
%5 = icmp sge i32 %4, 97
br i1 %5, label %6, label %10
6: ; preds = %1
%7 = load i8, i8* %2
%8 = sext i8 %7 to i32
%9 = icmp sle i32 %8, 122
br i1 %9, label %28, label %10
10: ; preds = %6, %1
%11 = load i8, i8* %2
%12 = sext i8 %11 to i32
%13 = icmp sge i32 %12, 65
br i1 %13, label %14, label %18
14: ; preds = %10
%15 = load i8, i8* %2
%16 = sext i8 %15 to i32
%17 = icmp sle i32 %16, 90
br i1 %17, label %28, label %18
18: ; preds = %14, %10
%19 = load i8, i8* %2
%20 = sext i8 %19 to i32
%21 = icmp sge i32 %20, 48
br i1 %21, label %22, label %26
22: ; preds = %18
%23 = load i8, i8* %2
%24 = sext i8 %23 to i32
%25 = icmp sle i32 %24, 57
br label %26
26: ; preds = %22, %18
%27 = phi i1 [ false, %18 ], [ %25, %22 ]
br label %28
28: ; preds = %26, %14, %6
%29 = phi i1 [ true, %14 ], [ true, %6 ], [ %27, %26 ]
%30 = zext i1 %29 to i32
ret i32 %30
}

LLVM IR (-O2):
define i32 @AlphaNum(i8 signext %0) {
%2 = and i8 %0, -33
%3 = add i8 %2, -65
%4 = icmp ult i8 %3, 26
%5 = add i8 %0, -48
%6 = icmp ult i8 %5, 10
%7 = or i1 %6, %4
%8 = zext i1 %7 to i32
ret i32 %8
}
void noprintf(char *string, ...) {}


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

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

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

LLVM IR (-O2):
define void @noprintf(i8* nocapture %0, ...) {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void print_usage(void) {
  printf("Usage: wmem [-h] [-l -s -c] -a addr -v value\n");
}


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

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

LLVM IR (-O0):
@.str = [46 x i8] c"Usage: wmem [-h] [-l -s -c] -a addr -v value\0A\00"
define void @print_usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [45 x i8] c"Usage: wmem [-h] [-l -s -c] -a addr -v value\00"
define void @print_usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
scalar_t__ isgreaterequal(long double, long double);
scalar_t__ isnan(long double);
long double __fmaxl(long double x, long double y) {
  return (isgreaterequal(x, y) || isnan(y)) ? x : y;
}


x86 assembly (clang, -O0):
<__fmaxl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
fldt   0x20(%rbp)
fldt   0x10(%rbp)
fstpt  -0x10(%rbp)
fstpt  -0x20(%rbp)
fldt   -0x10(%rbp)
fldt   -0x20(%rbp)
mov    %rsp,%rax
fstpt  0x10(%rax)
fstpt  (%rax)
call   1040 <isgreaterequal@plt>
cmp    $0x0,%rax
jne    1168 <__fmaxl+0x48>
fldt   -0x20(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
call   1030 <isnan@plt>
cmp    $0x0,%rax
je     1173 <__fmaxl+0x53>
fldt   -0x10(%rbp)
fstpt  -0x2c(%rbp)
jmp    1179 <__fmaxl+0x59>
fldt   -0x20(%rbp)
fstpt  -0x2c(%rbp)
fldt   -0x2c(%rbp)
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__fmaxl>:
sub    $0x38,%rsp
fldt   0x50(%rsp)
fldt   0x40(%rsp)
fld    %st(1)
fstpt  0x20(%rsp)
fxch   %st(1)
fstpt  0x10(%rsp)
fld    %st(0)
fstpt  0x2c(%rsp)
fstpt  (%rsp)
call   1040 <isgreaterequal@plt>
test   %rax,%rax
je     1154 <__fmaxl+0x34>
fldt   0x2c(%rsp)
add    $0x38,%rsp
ret
fldt   0x20(%rsp)
fstpt  (%rsp)
call   1030 <isnan@plt>
test   %rax,%rax
fldt   0x2c(%rsp)
fldt   0x20(%rsp)
fxch   %st(1)
fcmove %st(1),%st
fstp   %st(1)
add    $0x38,%rsp
ret

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

LLVM IR (-O2):
define x86_fp80 @__fmaxl(x86_fp80 %0, x86_fp80 %1) {
%3 = tail call i64 @isgreaterequal(x86_fp80 %0, x86_fp80 %1)
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %9
5: ; preds = %2
%6 = tail call i64 @isnan(x86_fp80 %1)
%7 = icmp eq i64 %6, 0
%8 = select i1 %7, x86_fp80 %1, x86_fp80 %0
br label %9
9: ; preds = %5, %2
%10 = phi x86_fp80 [ %0, %2 ], [ %8, %5 ]
ret x86_fp80 %10
}
int f0() {}


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

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

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

LLVM IR (-O2):
define i32 @f0() {
ret i32 undef
}
/* Type definitions */
typedef scalar_t__ uint_fast16_t;

/* Variables and functions */
uint_fast16_t lzs_idx_inc_wrap(uint_fast16_t idx, uint_fast16_t inc,
                               uint_fast16_t array_size) {
  uint_fast16_t new_idx;
  new_idx = idx + inc;
  if (new_idx >= array_size) {
    new_idx -= array_size;
  }
  return new_idx;
}


x86 assembly (clang, -O0):
<lzs_idx_inc_wrap>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rax
add    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
cmp    -0x18(%rbp),%rax
jl     1139 <lzs_idx_inc_wrap+0x39>
mov    -0x18(%rbp),%rcx
mov    -0x20(%rbp),%rax
sub    %rcx,%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<lzs_idx_inc_wrap>:
lea    (%rdi,%rsi,1),%rax
xor    %ecx,%ecx
cmp    %rdx,%rax
cmovge %rdx,%rcx
sub    %rcx,%rax
ret

LLVM IR (-O0):
define i64 @lzs_idx_inc_wrap(i64 %0, i64 %1, i64 %2) {
%4 = alloca i64
%5 = alloca i64
%6 = alloca i64
%7 = alloca i64
store i64 %0, i64* %4
store i64 %1, i64* %5
store i64 %2, i64* %6
%8 = load i64, i64* %4
%9 = load i64, i64* %5
%10 = add nsw i64 %8, %9
store i64 %10, i64* %7
%11 = load i64, i64* %7
%12 = load i64, i64* %6
%13 = icmp sge i64 %11, %12
br i1 %13, label %14, label %18
14: ; preds = %3
%15 = load i64, i64* %6
%16 = load i64, i64* %7
%17 = sub nsw i64 %16, %15
store i64 %17, i64* %7
br label %18
18: ; preds = %14, %3
%19 = load i64, i64* %7
ret i64 %19
}

LLVM IR (-O2):
define i64 @lzs_idx_inc_wrap(i64 %0, i64 %1, i64 %2) {
%4 = add nsw i64 %1, %0
%5 = icmp slt i64 %4, %2
%6 = select i1 %5, i64 0, i64 %2
%7 = sub nsw i64 %4, %6
ret i64 %7
}
/* Variables and functions */
int hash1(int);
int hash2(int);
int function(int condition) {
  int result;
  if (condition) {
    result = hash1(42);
  } else {
    result = hash2(13);
  }
  return result;
}


x86 assembly (clang, -O0):
<function>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     1147 <function+0x27>
mov    $0x2a,%edi
call   1040 <hash1@plt>
mov    %eax,-0x8(%rbp)
jmp    1154 <function+0x34>
mov    $0xd,%edi
call   1030 <hash2@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<function>:
test   %edi,%edi
je     112e <function+0xe>
mov    $0x2a,%edi
jmp    1040 <hash1@plt>
mov    $0xd,%edi
jmp    1030 <hash2@plt>

LLVM IR (-O0):
define i32 @function(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 @hash1(i32 42)
store i32 %7, i32* %3
br label %10
8: ; preds = %1
%9 = call i32 @hash2(i32 13)
store i32 %9, i32* %3
br label %10
10: ; preds = %8, %6
%11 = load i32, i32* %3
ret i32 %11
}

LLVM IR (-O2):
define i32 @function(i32 %0) {
%2 = icmp eq i32 %0, 0
br i1 %2, label %5, label %3
3: ; preds = %1
%4 = tail call i32 @hash1(i32 42)
br label %7
5: ; preds = %1
%6 = tail call i32 @hash2(i32 13)
br label %7
7: ; preds = %5, %3
%8 = phi i32 [ %4, %3 ], [ %6, %5 ]
ret i32 %8
}
/* Variables and functions */
int /*<<< orphan*/ rst(int);
void opcode_df() { rst(0x18); }


x86 assembly (clang, -O0):
<opcode_df>:
push   %rbp
mov    %rsp,%rbp
mov    $0x18,%edi
call   1030 <rst@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<opcode_df>:
mov    $0x18,%edi
jmp    1030 <rst@plt>

LLVM IR (-O0):
define void @opcode_df() {
%1 = call i32 @rst(i32 24)
ret void
}

LLVM IR (-O2):
define void @opcode_df() {
%1 = tail call i32 @rst(i32 24)
ret void
}
/* Type definitions */
typedef int int32_t;

/* Variables and functions */
int32_t pairp(int32_t val) { return ((val & 3) == 1); }


x86 assembly (clang, -O0):
<pairp>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
and    $0x3,%eax
cmp    $0x1,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<pairp>:
and    $0x3,%edi
xor    %eax,%eax
cmp    $0x1,%edi
sete   %al
ret

LLVM IR (-O0):
define i32 @pairp(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = and i32 %3, 3
%5 = icmp eq i32 %4, 1
%6 = zext i1 %5 to i32
ret i32 %6
}

LLVM IR (-O2):
define i32 @pairp(i32 %0) {
%2 = and i32 %0, 3
%3 = icmp eq i32 %2, 1
%4 = zext i1 %3 to i32
ret i32 %4
}
__attribute__((no, noclone)) signed __int128 t140_3sub(unsigned __int128 y) {
  signed __int128 r;
  if (__builtin_sub_overflow(
          (signed __int128)((
              (signed __int128)(((unsigned __int128)1 << (16 * 8 - 1)) - 1))),
          y, &r))
    bar();
  return r;
}


x86 assembly (clang, -O0):
<t140_3sub>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x20(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x20(%rbp),%rax
mov    -0x18(%rbp),%rcx
mov    %rcx,-0x28(%rbp)
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rcx
mov    -0x28(%rbp),%rax
xor    %edx,%edx
mov    %edx,%r9d
movabs $0x7fffffffffffffff,%rdx
ff ff 7f
sub    %rax,%rdx
mov    %r9,%r8
sbb    %r8,%r8
sbb    %r9,%r9
mov    %r8d,%eax
and    $0x1,%eax
mov    %eax,%esi
mov    %rsi,%rax
neg    %rax
mov    %rax,%rdi
xor    %r9,%rdi
xor    %r8,%rax
or     %rdi,%rax
not    %rcx
mov    %rdx,%rdi
shr    $0x3f,%rdi
xor    %rdi,%rsi
or     %rsi,%rax
setne  %al
mov    %rdx,-0x38(%rbp)
mov    %rcx,-0x40(%rbp)
test   $0x1,%al
jne    1195 <t140_3sub+0x85>
jmp    119c <t140_3sub+0x8c>
mov    $0x0,%al
call   1030 <bar@plt>
mov    -0x40(%rbp),%rax
mov    -0x38(%rbp),%rcx
mov    %rcx,-0x8(%rbp)
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x8(%rbp),%rdx
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<t140_3sub>:
mov    %rdi,%rax
movabs $0x7fffffffffffffff,%rdx
ff ff 7f
sub    %rsi,%rdx
not    %rax
ret

LLVM IR (-O0):
define { i64, i64 } @t140_3sub(i64 %0, i64 %1) {
%3 = alloca i128
%4 = alloca i128
%5 = alloca i128
%6 = alloca i128
%7 = bitcast i128* %4 to { i64, i64 }*
%8 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %7, i32 0, i32 0
store i64 %0, i64* %8
%9 = getelementptr inbounds { i64, i64 }, { i64, i64 }* %7, i32 0, i32 1
store i64 %1, i64* %9
%10 = load i128, i128* %4
store i128 %10, i128* %5
%11 = load i128, i128* %5
%12 = zext i128 %11 to i129
%13 = call { i129, i1 } @llvm.ssub.with.overflow.i129(i129 170141183460469231731687303715884105727, i129 %12)
%14 = extractvalue { i129, i1 } %13, 1
%15 = extractvalue { i129, i1 } %13, 0
%16 = trunc i129 %15 to i128
%17 = sext i128 %16 to i129
%18 = icmp ne i129 %15, %17
%19 = or i1 %14, %18
store i128 %16, i128* %6
br i1 %19, label %20, label %22
20: ; preds = %2
%21 = call i32 (...) @bar()
br label %22
22: ; preds = %20, %2
%23 = load i128, i128* %6
store i128 %23, i128* %3
%24 = bitcast i128* %3 to { i64, i64 }*
%25 = load { i64, i64 }, { i64, i64 }* %24
ret { i64, i64 } %25
}

LLVM IR (-O2):
define { i64, i64 } @t140_3sub(i64 %0, i64 %1) {
%3 = zext i64 %1 to i128
%4 = shl nuw i128 %3, 64
%5 = zext i64 %0 to i128
%6 = or i128 %4, %5
%7 = zext i128 %6 to i129
%8 = sub nsw i129 170141183460469231731687303715884105727, %7
%9 = trunc i129 %8 to i64
%10 = lshr i129 %8, 64
%11 = trunc i129 %10 to i64
%12 = insertvalue { i64, i64 } poison, i64 %9, 0
%13 = insertvalue { i64, i64 } %12, i64 %11, 1
ret { i64, i64 } %13
}
/* Variables and functions */
int /*<<< orphan*/ munmap(void *, size_t);
void numa_free(void *mem, size_t size) { munmap(mem, size); }


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

x86 assembly (clang, -O2):
<numa_free>:
jmp    1030 <munmap@plt>

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

LLVM IR (-O2):
define void @numa_free(i8* %0, i64 %1) {
%3 = tail call i32 @munmap(i8* %0, i64 %1)
ret void
}
/* Type definitions */
typedef int int32_t;

/* Variables and functions */
int unlink(char const *);
int32_t mz_os_delete(const char *path) {
  if (unlink(path) == -1)
    return (-107);
  return (0);
}


x86 assembly (clang, -O0):
<mz_os_delete>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <unlink@plt>
cmp    $0xffffffff,%eax
jne    113a <mz_os_delete+0x2a>
movl   $0xffffff95,-0x4(%rbp)
jmp    1141 <mz_os_delete+0x31>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mz_os_delete>:
push   %rax
call   1030 <unlink@plt>
xor    %ecx,%ecx
cmp    $0xffffffff,%eax
mov    $0xffffff95,%eax
cmovne %ecx,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @mz_os_delete(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = call i32 @unlink(i8* %4)
%6 = icmp eq i32 %5, -1
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 -107, i32* %2
br label %9
8: ; preds = %1
store i32 0, i32* %2
br label %9
9: ; preds = %8, %7
%10 = load i32, i32* %2
ret i32 %10
}

LLVM IR (-O2):
define i32 @mz_os_delete(i8* nocapture %0) {
%2 = tail call i32 @unlink(i8* %0)
%3 = icmp eq i32 %2, -1
%4 = select i1 %3, i32 -107, i32 0
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, double const);
void show_array(const double ary[], int len) {
  int i;
  for (i = 0; i < len; i++) {
    printf("ary[%d]=%8.3f \n", i, ary[i]);
  }
}


x86 assembly (clang, -O0):
<show_array>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    115c <show_array+0x4c>
mov    -0x10(%rbp),%esi
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xeb7(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1126 <show_array+0x16>
add    $0x10,%rsp
pop    %rbp
ret

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

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

LLVM IR (-O2):
@.str = [16 x i8] c"ary[%d]=%8.3f \0A\00"
define void @show_array(double* nocapture %0, i32 %1) {
%3 = icmp sgt i32 %1, 0
br i1 %3, label %4, label %14
4: ; preds = %2
%5 = zext i32 %1 to i64
br label %6
6: ; preds = %4, %6
%7 = phi i64 [ 0, %4 ], [ %12, %6 ]
%8 = getelementptr inbounds double, double* %0, i64 %7
%9 = load double, double* %8
%10 = trunc i64 %7 to i32
%11 = tail call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 %10, double %9)
%12 = add nuw nsw i64 %7, 1
%13 = icmp eq i64 %12, %5
br i1 %13, label %14, label %6
14: ; preds = %6, %2
ret void
}
unsigned int bit_ctz(unsigned int v) { return __builtin_ctz(v); }


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

x86 assembly (clang, -O2):
<bit_ctz>:
bsf    %edi,%eax
ret

LLVM IR (-O0):
define i32 @bit_ctz(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @llvm.cttz.i32(i32 %3, i1 true)
ret i32 %4
}

LLVM IR (-O2):
define i32 @bit_ctz(i32 %0) {
%2 = tail call i32 @llvm.cttz.i32(i32 %0, i1 true)
ret i32 %2
}
void atn_mvtToPosition(int duration, short x, short y) {}


x86 assembly (clang, -O0):
<atn_mvtToPosition>:
push   %rbp
mov    %rsp,%rbp
mov    %dx,%ax
mov    %si,%cx
mov    %edi,-0x4(%rbp)
mov    %cx,-0x6(%rbp)
mov    %ax,-0x8(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @atn_mvtToPosition(i32 %0, i16 signext %1, i16 signext %2) {
%4 = alloca i32
%5 = alloca i16
%6 = alloca i16
store i32 %0, i32* %4
store i16 %1, i16* %5
store i16 %2, i16* %6
ret void
}

LLVM IR (-O2):
define void @atn_mvtToPosition(i32 %0, i16 signext %1, i16 signext %2) {
ret void
}
/* Type definitions */
typedef int uint64_t;

/* Variables and functions */
int num2bit(uint64_t num) { return (num % 30) * 8 / 30; }


x86 assembly (clang, -O0):
<num2bit>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    $0x1e,%ecx
cltd
idiv   %ecx
mov    %edx,%eax
shl    $0x3,%eax
mov    $0x1e,%ecx
cltd
idiv   %ecx
pop    %rbp
ret

x86 assembly (clang, -O2):
<num2bit>:
movslq %edi,%rax
imul   $0xffffffff88888889,%rax,%rcx
shr    $0x20,%rcx
add    %eax,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
sar    $0x4,%ecx
add    %edx,%ecx
mov    %ecx,%edx
shl    $0x5,%edx
mov    %ecx,%esi
sub    %edx,%esi
add    %ecx,%esi
add    %eax,%esi
mov    %esi,%eax
shl    $0x3,%eax
cltq
imul   $0xffffffff88888889,%rax,%rax
shr    $0x20,%rax
lea    (%rax,%rsi,8),%eax
mov    %eax,%ecx
shr    $0x1f,%ecx
sar    $0x4,%eax
add    %ecx,%eax
ret

LLVM IR (-O0):
define i32 @num2bit(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = srem i32 %3, 30
%5 = mul nsw i32 %4, 8
%6 = sdiv i32 %5, 30
ret i32 %6
}

LLVM IR (-O2):
define i32 @num2bit(i32 %0) {
%2 = srem i32 %0, 30
%3 = shl nsw i32 %2, 3
%4 = sdiv i32 %3, 30
ret i32 %4
}
/* Variables and functions */
int /*<<< orphan*/ putc(char);
void puts(char *s) {
  while (*s != '\0') {
    putc(*s);
    s++;
  }
}


x86 assembly (clang, -O0):
<puts>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1149 <puts+0x39>
mov    -0x8(%rbp),%rax
movsbl (%rax),%edi
call   1030 <putc@plt>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    111c <puts+0xc>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<puts>:
push   %rbx
mov    (%rdi),%al
test   %al,%al
je     1133 <puts+0x23>
mov    %rdi,%rbx
add    $0x1,%rbx
xchg   %ax,%ax
movsbl %al,%edi
call   1030 <putc@plt>
movzbl (%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    1120 <puts+0x10>
pop    %rbx
ret

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

LLVM IR (-O2):
define void @puts(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 i8 [ %9, %4 ], [ %2, %1 ]
%6 = phi i8* [ %8, %4 ], [ %0, %1 ]
%7 = tail call i32 @putc(i8 signext %5)
%8 = getelementptr inbounds i8, i8* %6, i64 1
%9 = load i8, i8* %8
%10 = icmp eq i8 %9, 0
br i1 %10, label %11, label %4
11: ; preds = %4, %1
ret void
}
/* Variables and functions */
int ebob_bul(int, int);
int /*<<< orphan*/ printf(char *, int, int, int);
void sirala(int birinci, int ikinci) {
  int ebob;
  if (birinci >= ikinci) {
    ebob = ebob_bul(birinci, ikinci);
  } else {
    ebob = ebob_bul(ikinci, birinci);
  }
  printf("%d sayisi ile %d sayisinin ebobu %d \n", birinci, ikinci, ebob);
}


x86 assembly (clang, -O0):
<sirala>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jl     114d <sirala+0x2d>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1030 <ebob_bul@plt>
mov    %eax,-0xc(%rbp)
jmp    115b <sirala+0x3b>
mov    -0x8(%rbp),%edi
mov    -0x4(%rbp),%esi
call   1030 <ebob_bul@plt>
mov    %eax,-0xc(%rbp)
mov    -0x4(%rbp),%esi
mov    -0x8(%rbp),%edx
mov    -0xc(%rbp),%ecx
lea    0xe95(%rip),%rdi
call   1040 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sirala>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebx
mov    %edi,%ebp
cmp    %esi,%edi
jge    1131 <sirala+0x11>
mov    %ebx,%edi
mov    %ebp,%esi
jmp    1135 <sirala+0x15>
mov    %ebp,%edi
mov    %ebx,%esi
call   1030 <ebob_bul@plt>
lea    0xebf(%rip),%rdi
mov    %ebp,%esi
mov    %ebx,%edx
mov    %eax,%ecx
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1040 <printf@plt>

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

LLVM IR (-O2):
@.str = [38 x i8] c"%d sayisi ile %d sayisinin ebobu %d \0A\00"
define void @sirala(i32 %0, i32 %1) {
%3 = icmp slt i32 %0, %1
br i1 %3, label %6, label %4
4: ; preds = %2
%5 = tail call i32 @ebob_bul(i32 %0, i32 %1)
br label %8
6: ; preds = %2
%7 = tail call i32 @ebob_bul(i32 %1, i32 %0)
br label %8
8: ; preds = %6, %4
%9 = phi i32 [ %5, %4 ], [ %7, %6 ]
%10 = tail call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i32 %0, i32 %1, i32 %9)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ stress_set_funccall_method(char *);
void stress_funccall_set_default(void) { stress_set_funccall_method("uint64"); }


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

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

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

LLVM IR (-O2):
@.str = [7 x i8] c"uint64\00"
define void @stress_funccall_set_default() {
%1 = tail call i32 @stress_set_funccall_method(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
ret void
}
double PSItoMMHG(double PSI) {
  double MMHG = 51.7149 * PSI;
  return MMHG;
}


x86 assembly (clang, -O0):
<PSItoMMHG>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  0xeef(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<PSItoMMHG>:
mulsd  0xef8(%rip),%xmm0
ret

LLVM IR (-O0):
define double @PSItoMMHG(double %0) {
%2 = alloca double
%3 = alloca double
store double %0, double* %2
%4 = load double, double* %2
%5 = fmul double 5.171490e+01, %4
store double %5, double* %3
%6 = load double, double* %3
ret double %6
}

LLVM IR (-O2):
define double @PSItoMMHG(double %0) {
%2 = fmul double %0, 5.171490e+01
ret double %2
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
void *malloc(size_t const);
int /*<<< orphan*/ printf(char *);
void *pig_newseg(const size_t ssize) {
  void *seg = NULL;
  if (ssize == 0) {
    return NULL;
  }
  seg = malloc(ssize);
  if (seg == NULL) {
    printf("pig panic: no memory!\n");
    exit(1);
  }
  return seg;
}


x86 assembly (clang, -O0):
<pig_newseg>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    115c <pig_newseg+0x2c>
movq   $0x0,-0x8(%rbp)
jmp    1192 <pig_newseg+0x62>
mov    -0x10(%rbp),%rdi
call   1040 <malloc@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    118a <pig_newseg+0x5a>
lea    0xe85(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>
mov    -0x18(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pig_newseg>:
push   %rax
test   %rdi,%rdi
je     1142 <pig_newseg+0x12>
call   1040 <malloc@plt>
test   %rax,%rax
je     1146 <pig_newseg+0x16>
pop    %rcx
ret
xor    %eax,%eax
pop    %rcx
ret
lea    0xeb3(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [23 x i8] c"pig panic: no memory!\0A\00"
define i8* @pig_newseg(i64 %0) {
%2 = alloca i8*
%3 = alloca i64
%4 = alloca i8*
store i64 %0, i64* %3
store i8* null, i8** %4
%5 = load i64, i64* %3
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %1
store i8* null, i8** %2
br label %18
8: ; preds = %1
%9 = load i64, i64* %3
%10 = call i8* @malloc(i64 %9)
store i8* %10, i8** %4
%11 = load i8*, i8** %4
%12 = icmp eq i8* %11, null
br i1 %12, label %13, label %16
13: ; preds = %8
%14 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%15 = call i32 @exit(i32 1)
unreachable
16: ; preds = %8
%17 = load i8*, i8** %4
store i8* %17, i8** %2
br label %18
18: ; preds = %16, %7
%19 = load i8*, i8** %2
ret i8* %19
}

LLVM IR (-O2):
@str = [22 x i8] c"pig panic: no memory!\00"
define noalias i8* @pig_newseg(i64 %0) {
%2 = icmp eq i64 %0, 0
br i1 %2, label %9, label %3
3: ; preds = %1
%4 = tail call i8* @malloc(i64 %0)
%5 = icmp eq i8* %4, null
br i1 %5, label %6, label %9
6: ; preds = %3
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str, i64 0, i64 0))
%8 = tail call i32 @exit(i32 1)
unreachable
9: ; preds = %3, %1
%10 = phi i8* [ null, %1 ], [ %4, %3 ]
ret i8* %10
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main(int ac, char **av) {
  printf("Hello, world!\n");
  return (0);
}


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

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
@str = [14 x i8] c"Hello, world!\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ loop_read_input_file(char *);
int main(int argc, char *argv[]) {
  loop_read_input_file("/dev/input/event4");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xed3(%rip),%rdi
call   1030 <loop_read_input_file@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <loop_read_input_file@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [18 x i8] c"/dev/input/event4\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 @loop_read_input_file(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [18 x i8] c"/dev/input/event4\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @loop_read_input_file(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
/* Type definitions */
typedef int /*<<< orphan*/ fenv_t;

/* Variables and functions */
int /*<<< orphan*/ FE_ALL_EXCEPT;
int /*<<< orphan*/ feclearexcept(int /*<<< orphan*/);
int /*<<< orphan*/ fegetenv(int /*<<< orphan*/ *);
int feholdexcept(fenv_t *envp) {
  fegetenv(envp);
  feclearexcept(FE_ALL_EXCEPT);
  return 0;
}


x86 assembly (clang, -O0):
<feholdexcept>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <fegetenv@plt>
mov    0x2ea4(%rip),%rax
mov    (%rax),%edi
call   1030 <feclearexcept@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<feholdexcept>:
push   %rax
call   1040 <fegetenv@plt>
mov    0x2eb3(%rip),%rax
mov    (%rax),%edi
call   1030 <feclearexcept@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@FE_ALL_EXCEPT = global i32 0
define i32 @feholdexcept(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call i32 @fegetenv(i32* %3)
%5 = load i32, i32* @FE_ALL_EXCEPT
%6 = call i32 @feclearexcept(i32 %5)
ret i32 0
}

LLVM IR (-O2):
@FE_ALL_EXCEPT = global i32 0
define i32 @feholdexcept(i32* %0) {
%2 = tail call i32 @fegetenv(i32* %0)
%3 = load i32, i32* @FE_ALL_EXCEPT
%4 = tail call i32 @feclearexcept(i32 %3)
ret i32 0
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *, unsigned int);
scalar_t__ syscall(int, unsigned int);
long ledctl(unsigned int mask) {
  printf("%d", mask);
  return (long)syscall(316, mask);
}


x86 assembly (clang, -O0):
<ledctl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xecb(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%esi
mov    $0x13c,%edi
call   1040 <syscall@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ledctl>:
push   %rbx
mov    %edi,%ebx
lea    0xed6(%rip),%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
mov    $0x13c,%edi
mov    %ebx,%esi
pop    %rbx
jmp    1040 <syscall@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
define i64 @ledctl(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = load i32, i32* %2
%6 = call i64 @syscall(i32 316, i32 %5)
ret i64 %6
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define i64 @ledctl(i32 %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %0)
%3 = tail call i64 @syscall(i32 316, i32 %0)
ret i64 %3
}
/* Variables and functions */
int /*<<< orphan*/ array_pass(int, char **);
int print_params(int, char **);
int main(int argc, char *argv[]) {
  if (argc < 2)
    return (0);
  if (argc > 2)
    while (!array_pass(argc, argv))
      continue;
  return (print_params(argc, argv));
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    114c <main+0x2c>
movl   $0x0,-0x4(%rbp)
jmp    1195 <main+0x75>
cmpl   $0x2,-0x8(%rbp)
jle    1186 <main+0x66>
jmp    115b <main+0x3b>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1030 <array_pass@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    117c <main+0x5c>
jmp    1181 <main+0x61>
jmp    115b <main+0x3b>
jmp    1186 <main+0x66>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1040 <print_params@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
cmp    $0x2,%edi
jge    1128 <main+0x8>
xor    %eax,%eax
ret
push   %rbp
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
je     114e <main+0x2e>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %ebp,%edi
mov    %rbx,%rsi
call   1030 <array_pass@plt>
test   %eax,%eax
je     1140 <main+0x20>
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1040 <print_params@plt>

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i32, i32* %4
%7 = icmp slt i32 %6, 2
br i1 %7, label %8, label %9
8: ; preds = %2
store i32 0, i32* %3
br label %25
9: ; preds = %2
%10 = load i32, i32* %4
%11 = icmp sgt i32 %10, 2
br i1 %11, label %12, label %21
12: ; preds = %9
br label %13
13: ; preds = %19, %12
%14 = load i32, i32* %4
%15 = load i8**, i8*** %5
%16 = call i32 @array_pass(i32 %14, i8** %15)
%17 = icmp ne i32 %16, 0
%18 = xor i1 %17, true
br i1 %18, label %19, label %20
19: ; preds = %13
br label %13
20: ; preds = %13
br label %21
21: ; preds = %20, %9
%22 = load i32, i32* %4
%23 = load i8**, i8*** %5
%24 = call i32 @print_params(i32 %22, i8** %23)
store i32 %24, i32* %3
br label %25
25: ; preds = %21, %8
%26 = load i32, i32* %3
ret i32 %26
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** %1) {
%3 = icmp slt i32 %0, 2
br i1 %3, label %11, label %4
4: ; preds = %2
%5 = icmp eq i32 %0, 2
br i1 %5, label %9, label %6
6: ; preds = %4, %6
%7 = tail call i32 @array_pass(i32 %0, i8** %1)
%8 = icmp eq i32 %7, 0
br i1 %8, label %6, label %9
9: ; preds = %6, %4
%10 = tail call i32 @print_params(i32 %0, i8** %1)
br label %11
11: ; preds = %2, %9
%12 = phi i32 [ %10, %9 ], [ 0, %2 ]
ret i32 %12
}
/* Variables and functions */
int EINVAL;
__attribute__((visibility("default"))) int sd_network_monitor_get_fd(void *m) {
  return -EINVAL;
}


x86 assembly (clang, -O0):
<sd_network_monitor_get_fd>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
xor    %eax,%eax
mov    0x2ecf(%rip),%rcx
sub    (%rcx),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<sd_network_monitor_get_fd>:
mov    0x2ed9(%rip),%rcx
xor    %eax,%eax
sub    (%rcx),%eax
ret

LLVM IR (-O0):
@EINVAL = global i32 0
define i32 @sd_network_monitor_get_fd(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @EINVAL
%4 = sub nsw i32 0, %3
ret i32 %4
}

LLVM IR (-O2):
@EINVAL = global i32 0
define i32 @sd_network_monitor_get_fd(i8* nocapture readnone %0) {
%2 = load i32, i32* @EINVAL
%3 = sub nsw i32 0, %2
ret i32 %3
}
int do_845() { return 845; }


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

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

LLVM IR (-O0):
define i32 @do_845() {
ret i32 845
}

LLVM IR (-O2):
define i32 @do_845() {
ret i32 845
}