xunge/DecIR huggingface dataset:
__typeof__(fscanf(1, 1)) test_fscanf_219(void) { return fscanf(1, 1); }


x86 assembly (clang, -O0):
<test_fscanf_219>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1,%esi
mov    %esi,%edi
mov    $0x0,%al
call   1030 <fscanf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_fscanf_219>:
mov    $0x1,%edi
mov    $0x1,%esi
xor    %eax,%eax
jmp    1030 <fscanf@plt>

LLVM IR (-O0):
define i32 @test_fscanf_219() {
%1 = call i32 (i32, i32, ...) bitcast (i32 (...)* @fscanf to i32 (i32, i32, ...)*)(i32 1, i32 1)
ret i32 %1
}

LLVM IR (-O2):
define i32 @test_fscanf_219() {
%1 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @fscanf to i32 (i32, i32, ...)*)(i32 1, i32 1)
ret i32 %1
}
void bship_logic_notification(int pid, int state, void *data, int success) {}


x86 assembly (clang, -O0):
<bship_logic_notification>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
pop    %rbp
ret

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

LLVM IR (-O0):
define void @bship_logic_notification(i32 %0, i32 %1, i8* %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store i8* %2, i8** %7
store i32 %3, i32* %8
ret void
}

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


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

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

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

LLVM IR (-O2):
define void @gtk_tree_view_expand_row() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ verify32();
int main() {
  verify32();
  puts("All OK");
  return 0;
}


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

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

LLVM IR (-O0):
@.str = [7 x i8] c"All OK\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (...) @verify32()
%3 = call i32 @puts(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c"All OK\00"
define i32 @main() {
%1 = tail call i32 (...) @verify32()
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
ret i32 0
}
/* Variables and functions */
unsigned int get_val(int);
int /*<<< orphan*/ set_val(int, unsigned int);
unsigned add_one(int idx) {
  unsigned value = get_val(idx);
  if (value >= 2) {
    return 1;
  } else {
    set_val(idx, value + 1);
    return 0;
  }
}


x86 assembly (clang, -O0):
<add_one>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <get_val@plt>
mov    %eax,-0xc(%rbp)
cmpl   $0x2,-0xc(%rbp)
jb     114c <add_one+0x2c>
movl   $0x1,-0x4(%rbp)
jmp    1161 <add_one+0x41>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
add    $0x1,%esi
call   1040 <set_val@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<add_one>:
push   %rbx
mov    %edi,%ebx
call   1030 <get_val@plt>
mov    $0x1,%ecx
cmp    $0x1,%eax
ja     1140 <add_one+0x20>
add    $0x1,%eax
mov    %ebx,%edi
mov    %eax,%esi
call   1040 <set_val@plt>
xor    %ecx,%ecx
mov    %ecx,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @add_one(i32 %0) {
%2 = tail call i32 @get_val(i32 %0)
%3 = icmp ugt i32 %2, 1
br i1 %3, label %7, label %4
4: ; preds = %1
%5 = add nuw nsw i32 %2, 1
%6 = tail call i32 @set_val(i32 %0, i32 %5)
br label %7
7: ; preds = %1, %4
%8 = phi i32 [ 0, %4 ], [ 1, %1 ]
ret i32 %8
}
/* Variables and functions */
int /*<<< orphan*/ free(void *);
void MemFree(void *p) {
  free(p);
  p = 0;
}


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

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

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

LLVM IR (-O2):
define void @MemFree(i8* nocapture %0) {
%2 = tail call i32 @free(i8* %0)
ret void
}
double JHKeyframeAnimationFunctionEaseOutQuint(double t, double b, double c,
                                               double d) {
  return c * ((t = t / d - 1) * t * t * t * t + 1) + b;
}


x86 assembly (clang, -O0):
<JHKeyframeAnimationFunctionEaseOutQuint>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  -0x8(%rbp),%xmm2
divsd  -0x20(%rbp),%xmm2
movsd  0xed1(%rip),%xmm1
subsd  %xmm1,%xmm2
movsd  %xmm2,-0x8(%rbp)
mulsd  -0x8(%rbp),%xmm2
mulsd  -0x8(%rbp),%xmm2
mulsd  -0x8(%rbp),%xmm2
movsd  -0x8(%rbp),%xmm1
mulsd  %xmm1,%xmm2
movsd  0xea8(%rip),%xmm1
addsd  %xmm1,%xmm2
movsd  -0x10(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<JHKeyframeAnimationFunctionEaseOutQuint>:
divsd  %xmm3,%xmm0
addsd  0xef4(%rip),%xmm0
movapd %xmm0,%xmm3
mulsd  %xmm0,%xmm3
mulsd  %xmm0,%xmm3
mulsd  %xmm0,%xmm3
mulsd  %xmm3,%xmm0
addsd  0xee0(%rip),%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
ret

LLVM IR (-O0):
define double @JHKeyframeAnimationFunctionEaseOutQuint(double %0, double %1, double %2, double %3) {
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
store double %0, double* %5
store double %1, double* %6
store double %2, double* %7
store double %3, double* %8
%9 = load double, double* %7
%10 = load double, double* %5
%11 = load double, double* %8
%12 = fdiv double %10, %11
%13 = fsub double %12, 1.000000e+00
store double %13, double* %5
%14 = load double, double* %5
%15 = fmul double %13, %14
%16 = load double, double* %5
%17 = fmul double %15, %16
%18 = load double, double* %5
%19 = fmul double %17, %18
%20 = load double, double* %5
%21 = call double @llvm.fmuladd.f64(double %19, double %20, double 1.000000e+00)
%22 = load double, double* %6
%23 = call double @llvm.fmuladd.f64(double %9, double %21, double %22)
ret double %23
}

LLVM IR (-O2):
define double @JHKeyframeAnimationFunctionEaseOutQuint(double %0, double %1, double %2, double %3) {
%5 = fdiv double %0, %3
%6 = fadd double %5, -1.000000e+00
%7 = fmul double %6, %6
%8 = fmul double %6, %7
%9 = fmul double %6, %8
%10 = tail call double @llvm.fmuladd.f64(double %9, double %6, double 1.000000e+00)
%11 = tail call double @llvm.fmuladd.f64(double %2, double %10, double %1)
ret double %11
}
/* Variables and functions */
int /*<<< orphan*/ CalulateCRC(unsigned char *, int, unsigned char *);
unsigned char MFRC522_ToCard(int, unsigned char *, int, unsigned char *,
                             unsigned int *);
void MFRC522_Halt(void) {
  unsigned char status;
  unsigned int unLen;
  unsigned char buff[4];
  buff[0] = 0x50;
  buff[1] = 0;
  CalulateCRC(buff, 2, &buff[2]);
  status = MFRC522_ToCard(0x0C, buff, 4, buff, &unLen);
}


x86 assembly (clang, -O0):
<MFRC522_Halt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movb   $0x50,-0xc(%rbp)
movb   $0x0,-0xb(%rbp)
lea    -0xc(%rbp),%rdi
lea    -0xc(%rbp),%rdx
add    $0x2,%rdx
mov    $0x2,%esi
call   1040 <CalulateCRC@plt>
lea    -0xc(%rbp),%rsi
lea    -0xc(%rbp),%rcx
mov    $0xc,%edi
mov    $0x4,%edx
lea    -0x8(%rbp),%r8
call   1030 <MFRC522_ToCard@plt>
mov    %al,-0x1(%rbp)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<MFRC522_Halt>:
push   %rbx
sub    $0x10,%rsp
movw   $0x50,0x8(%rsp)
lea    0xa(%rsp),%rdx
lea    0x8(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x2,%esi
call   1040 <CalulateCRC@plt>
lea    0xc(%rsp),%r8
mov    $0xc,%edi
mov    %rbx,%rsi
mov    $0x4,%edx
mov    %rbx,%rcx
call   1030 <MFRC522_ToCard@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define void @MFRC522_Halt() {
%1 = alloca i8
%2 = alloca i32
%3 = alloca [4 x i8]
%4 = getelementptr inbounds [4 x i8], [4 x i8]* %3, i64 0, i64 0
store i8 80, i8* %4
%5 = getelementptr inbounds [4 x i8], [4 x i8]* %3, i64 0, i64 1
store i8 0, i8* %5
%6 = getelementptr inbounds [4 x i8], [4 x i8]* %3, i64 0, i64 0
%7 = getelementptr inbounds [4 x i8], [4 x i8]* %3, i64 0, i64 2
%8 = call i32 @CalulateCRC(i8* %6, i32 2, i8* %7)
%9 = getelementptr inbounds [4 x i8], [4 x i8]* %3, i64 0, i64 0
%10 = getelementptr inbounds [4 x i8], [4 x i8]* %3, i64 0, i64 0
%11 = call zeroext i8 @MFRC522_ToCard(i32 12, i8* %9, i32 4, i8* %10, i32* %2)
store i8 %11, i8* %1
ret void
}

LLVM IR (-O2):
define void @MFRC522_Halt() {
%1 = alloca i32
%2 = alloca [4 x i8]
%3 = bitcast i32* %1 to i8*
%4 = getelementptr inbounds [4 x i8], [4 x i8]* %2, i64 0, i64 0
store i8 80, i8* %4
%5 = getelementptr inbounds [4 x i8], [4 x i8]* %2, i64 0, i64 1
store i8 0, i8* %5
%6 = getelementptr inbounds [4 x i8], [4 x i8]* %2, i64 0, i64 2
%7 = call i32 @CalulateCRC(i8* %4, i32 2, i8* %6)
%8 = call zeroext i8 @MFRC522_ToCard(i32 12, i8* %4, i32 4, i8* %4, i32* %1)
ret void
}
int sgn3(int x) { return (x >> 31) - (-x >> 31); }


x86 assembly (clang, -O0):
<sgn3>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
sar    $0x1f,%eax
xor    %ecx,%ecx
sub    -0x4(%rbp),%ecx
sar    $0x1f,%ecx
sub    %ecx,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<sgn3>:
mov    %edi,%ecx
sar    $0x1f,%ecx
xor    %eax,%eax
test   %edi,%edi
setg   %al
add    %ecx,%eax
ret

LLVM IR (-O0):
define i32 @sgn3(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = ashr i32 %3, 31
%5 = load i32, i32* %2
%6 = sub nsw i32 0, %5
%7 = ashr i32 %6, 31
%8 = sub nsw i32 %4, %7
ret i32 %8
}

LLVM IR (-O2):
define i32 @sgn3(i32 %0) {
%2 = ashr i32 %0, 31
%3 = icmp sgt i32 %0, 0
%4 = zext i1 %3 to i32
%5 = add nsw i32 %2, %4
ret i32 %5
}
/* Variables and functions */
int write(int, char *, int);
int test_send(char *test_data, int len, int fd) {
  int ret;
  ret = write(fd, test_data, len);
  return 0;
}


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

x86 assembly (clang, -O2):
<test_send>:
push   %rax
mov    %edx,%eax
mov    %esi,%edx
mov    %rdi,%rsi
mov    %eax,%edi
call   1030 <write@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @test_send(i8* %0, i32 %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i8* %0, i8** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%8 = load i32, i32* %6
%9 = load i8*, i8** %4
%10 = load i32, i32* %5
%11 = call i32 @write(i32 %8, i8* %9, i32 %10)
store i32 %11, i32* %7
ret i32 0
}

LLVM IR (-O2):
define i32 @test_send(i8* nocapture %0, i32 %1, i32 %2) {
%4 = tail call i32 @write(i32 %2, i8* %0, i32 %1)
ret i32 0
}
/* Variables and functions */
int interact_with_port(char *, char, char);
int activate_master_solenoid(char *port_id, char off_on) {
  return interact_with_port(port_id, 'W', off_on);
}


x86 assembly (clang, -O0):
<activate_master_solenoid>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %sil,%al
mov    %rdi,-0x8(%rbp)
mov    %al,-0x9(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x57,%esi
movsbl -0x9(%rbp),%edx
call   1030 <interact_with_port@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<activate_master_solenoid>:
mov    %esi,%edx
mov    $0x57,%esi
jmp    1030 <interact_with_port@plt>

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

LLVM IR (-O2):
define i32 @activate_master_solenoid(i8* %0, i8 signext %1) {
%3 = tail call i32 @interact_with_port(i8* %0, i8 signext 87, i8 signext %1)
ret i32 %3
}
/* Type definitions */
struct prior_s {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ free(struct prior_s *);
void FreePrior(struct prior_s *prior) { free(prior); }


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

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

LLVM IR (-O0):
%struct.prior_s = type { i32 }
define void @FreePrior(%struct.prior_s* %0) {
%2 = alloca %struct.prior_s*
store %struct.prior_s* %0, %struct.prior_s** %2
%3 = load %struct.prior_s*, %struct.prior_s** %2
%4 = call i32 @free(%struct.prior_s* %3)
ret void
}

LLVM IR (-O2):
%struct.prior_s = type { i32 }
define void @FreePrior(%struct.prior_s* nocapture %0) {
%2 = tail call i32 @free(%struct.prior_s* %0)
ret void
}
__attribute__((always_)) const char *hostmask_skip_nick(const char *h) {
  const char *p = h;
  while (*p && *p != '!') {
    ++p;
  }
  return p;
}


x86 assembly (clang, -O0):
<hostmask_skip_nick>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x11(%rbp)
je     1135 <hostmask_skip_nick+0x35>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x21,%eax
setne  %al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%al
test   $0x1,%al
jne    1145 <hostmask_skip_nick+0x45>
jmp    1156 <hostmask_skip_nick+0x56>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
jmp    1110 <hostmask_skip_nick+0x10>
mov    -0x10(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<hostmask_skip_nick>:
mov    %rdi,%rax
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movzbl (%rax),%ecx
test   %cl,%cl
je     1122 <hostmask_skip_nick+0x22>
cmp    $0x21,%cl
je     1122 <hostmask_skip_nick+0x22>
add    $0x1,%rax
jmp    1110 <hostmask_skip_nick+0x10>
ret

LLVM IR (-O0):
define i8* @hostmask_skip_nick(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 = %17, %1
%6 = load i8*, i8** %3
%7 = load i8, i8* %6
%8 = sext i8 %7 to i32
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %15
10: ; preds = %5
%11 = load i8*, i8** %3
%12 = load i8, i8* %11
%13 = sext i8 %12 to i32
%14 = icmp ne i32 %13, 33
br label %15
15: ; preds = %10, %5
%16 = phi i1 [ false, %5 ], [ %14, %10 ]
br i1 %16, label %17, label %20
17: ; preds = %15
%18 = load i8*, i8** %3
%19 = getelementptr inbounds i8, i8* %18, i32 1
store i8* %19, i8** %3
br label %5
20: ; preds = %15
%21 = load i8*, i8** %3
ret i8* %21
}

LLVM IR (-O2):
define i8* @hostmask_skip_nick(i8* %0) {
br label %2
2: ; preds = %5, %1
%3 = phi i8* [ %0, %1 ], [ %6, %5 ]
%4 = load i8, i8* %3
switch i8 %4, label %5 [
i8 0, label %7
i8 33, label %7
]
5: ; preds = %2
%6 = getelementptr inbounds i8, i8* %3, i64 1
br label %2
7: ; preds = %2, %2
ret i8* %3
}
int func3(void) {
  auto x;
  return x;
}


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

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

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

LLVM IR (-O2):
define i32 @func3() {
ret i32 undef
}
/* Variables and functions */
int /*<<< orphan*/ printPgmString(char *);
void report_grbl_help() {
  printPgmString("$$ (view Grbl settings)\r\n"
                 "$# (view # parameters)\r\n"
                 "$G (view parser state)\r\n"
                 "$N (view startup blocks)\r\n"
                 "$x=value (save Grbl setting)\r\n"
                 "$Nx=line (save startup block)\r\n"
                 "$C (check gcode mode)\r\n"
                 "$X (kill alarm lock)\r\n"
                 "$H (run homing cycle)\r\n"
                 "~ (cycle start)\r\n"
                 "! (feed hold)\r\n"
                 "? (current status)\r\n"
                 "ctrl-x (reset Grbl)\r\n");
}


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

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

LLVM IR (-O0):
@.str = [302 x i8] c"$$ (view Grbl settings)\0D\0A$# (view # parameters)\0D\0A$G (view parser state)\0D\0A$N (view startup blocks)\0D\0A$x=value (save Grbl setting)\0D\0A$Nx=line (save startup block)\0D\0A$C (check gcode mode)\0D\0A$X (kill alarm lock)\0D\0A$H (run homing cycle)\0D\0A~ (cycle start)\0D\0A! (feed hold)\0D\0A? (current status)\0D\0Actrl-x (reset Grbl)\0D\0A\00"
define void @report_grbl_help() {
%1 = call i32 @printPgmString(i8* getelementptr inbounds ([302 x i8], [302 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [302 x i8] c"$$ (view Grbl settings)\0D\0A$# (view # parameters)\0D\0A$G (view parser state)\0D\0A$N (view startup blocks)\0D\0A$x=value (save Grbl setting)\0D\0A$Nx=line (save startup block)\0D\0A$C (check gcode mode)\0D\0A$X (kill alarm lock)\0D\0A$H (run homing cycle)\0D\0A~ (cycle start)\0D\0A! (feed hold)\0D\0A? (current status)\0D\0Actrl-x (reset Grbl)\0D\0A\00"
define void @report_grbl_help() {
%1 = tail call i32 @printPgmString(i8* getelementptr inbounds ([302 x i8], [302 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *,
                           char const *);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int _error(char const *message, char const *error, int ret) {
  fputs("modems: ", stderr);
  fprintf(stderr, "%s: %s\n", message, error);
  return ret;
}


x86 assembly (clang, -O0):
<_error>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    0x2ea6(%rip),%rax
mov    (%rax),%esi
lea    0xebd(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e91(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
mov    -0x10(%rbp),%rcx
lea    0xea9(%rip),%rsi
call   1040 <fprintf@plt>
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_error>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %edx,%r14d
mov    %rsi,%rbx
mov    %rdi,%rbp
mov    0x2ea9(%rip),%r15
mov    (%r15),%esi
lea    0xebf(%rip),%rdi
call   1030 <fputs@plt>
mov    (%r15),%edi
lea    0xeb9(%rip),%rsi
mov    %rbp,%rdx
mov    %rbx,%rcx
call   1040 <fprintf@plt>
mov    %r14d,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [9 x i8] c"modems: \00"
@stderr = global i32 0
@.str.1 = [8 x i8] c"%s: %s\0A\00"
define i32 @_error(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* @stderr
%8 = call i32 @fputs(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @stderr
%10 = load i8*, i8** %4
%11 = load i8*, i8** %5
%12 = call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* %10, i8* %11)
%13 = load i32, i32* %6
ret i32 %13
}

LLVM IR (-O2):
@.str = [9 x i8] c"modems: \00"
@stderr = global i32 0
@.str.1 = [8 x i8] c"%s: %s\0A\00"
define i32 @_error(i8* %0, i8* %1, i32 returned %2) {
%4 = load i32, i32* @stderr
%5 = tail call i32 @fputs(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %4)
%6 = load i32, i32* @stderr
%7 = tail call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* %0, i8* %1)
ret i32 %2
}
void gtk_tree_view_column_get_type() {}


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

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

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

LLVM IR (-O2):
define void @gtk_tree_view_column_get_type() {
ret void
}
/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void __attribute__((weak)) bar(void) { printf("weak library bar\n"); }


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

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

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

LLVM IR (-O2):
@str = [17 x i8] c"weak library bar\00"
define weak void @bar() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str, i64 0, i64 0))
ret void
}
/* Variables and functions */
char *malloc(int);
int /*<<< orphan*/ memcpy(char *, char const *, int);
char *strdup_len(const char *str, int len) {
  char *p = malloc(len + 1);
  memcpy(p, str, len);
  p[len] = '\0';
  return p;
}


x86 assembly (clang, -O0):
<strdup_len>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%edi
add    $0x1,%edi
call   1040 <malloc@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
call   1030 <memcpy@plt>
mov    -0x18(%rbp),%rax
movslq -0xc(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<strdup_len>:
push   %r15
push   %r14
push   %rbx
mov    %esi,%r15d
mov    %rdi,%r14
lea    0x1(%r15),%edi
call   1040 <malloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %r14,%rsi
mov    %r15d,%edx
call   1030 <memcpy@plt>
movslq %r15d,%rax
movb   $0x0,(%rbx,%rax,1)
mov    %rbx,%rax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i8* @strdup_len(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i8*
store i8* %0, i8** %3
store i32 %1, i32* %4
%6 = load i32, i32* %4
%7 = add nsw i32 %6, 1
%8 = call i8* @malloc(i32 %7)
store i8* %8, i8** %5
%9 = load i8*, i8** %5
%10 = load i8*, i8** %3
%11 = load i32, i32* %4
%12 = call i32 @memcpy(i8* %9, i8* %10, i32 %11)
%13 = load i8*, i8** %5
%14 = load i32, i32* %4
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds i8, i8* %13, i64 %15
store i8 0, i8* %16
%17 = load i8*, i8** %5
ret i8* %17
}

LLVM IR (-O2):
define i8* @strdup_len(i8* %0, i32 %1) {
%3 = add nsw i32 %1, 1
%4 = tail call i8* @malloc(i32 %3)
%5 = tail call i32 @memcpy(i8* %4, i8* %0, i32 %1)
%6 = sext i32 %1 to i64
%7 = getelementptr inbounds i8, i8* %4, i64 %6
store i8 0, i8* %7
ret i8* %4
}
void sws_getGaussianVec() {}


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

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

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

LLVM IR (-O2):
define void @sws_getGaussianVec() {
ret void
}
/* Type definitions */
struct timeval {
  double tv_sec;
  double tv_usec;
};

/* Variables and functions */
int /*<<< orphan*/ gettimeofday(struct timeval *, void *);
double time_stamp() {
  struct timeval t;
  double time;
  gettimeofday(&t, ((void *)0));
  time = t.tv_sec + 1.0e-6 * t.tv_usec;
  return time;
}


x86 assembly (clang, -O0):
<time_stamp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
lea    -0x10(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <gettimeofday@plt>
movsd  -0x10(%rbp),%xmm1
movsd  -0x8(%rbp),%xmm0
movsd  0xec9(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<time_stamp>:
sub    $0x18,%rsp
lea    0x8(%rsp),%rdi
xor    %esi,%esi
call   1030 <gettimeofday@plt>
movsd  0x10(%rsp),%xmm0
mulsd  0xed2(%rip),%xmm0
addsd  0x8(%rsp),%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
%struct.timeval = type { double, double }
define double @time_stamp() {
%1 = alloca %struct.timeval
%2 = alloca double
%3 = call i32 @gettimeofday(%struct.timeval* %1, i8* null)
%4 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i32 0, i32 0
%5 = load double, double* %4
%6 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i32 0, i32 1
%7 = load double, double* %6
%8 = call double @llvm.fmuladd.f64(double 0x3EB0C6F7A0B5ED8D, double %7, double %5)
store double %8, double* %2
%9 = load double, double* %2
ret double %9
}

LLVM IR (-O2):
%struct.timeval = type { double, double }
define double @time_stamp() {
%1 = alloca %struct.timeval
%2 = bitcast %struct.timeval* %1 to i8*
%3 = call i32 @gettimeofday(%struct.timeval* %1, i8* null)
%4 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 0
%5 = load double, double* %4
%6 = getelementptr inbounds %struct.timeval, %struct.timeval* %1, i64 0, i32 1
%7 = load double, double* %6
%8 = tail call double @llvm.fmuladd.f64(double %7, double 0x3EB0C6F7A0B5ED8D, double %5)
ret double %8
}
void fun1(void) {
#pragma acc parallel deviceptr(u)
  ;
#pragma acc kernels deviceptr(u [0:4])
  ;
#pragma acc data deviceptr(fun1)
  ;
#pragma acc parallel deviceptr(fun1 [2:5])
  ;
  int i;
#pragma acc kernels deviceptr(i)
  ;
#pragma acc data deviceptr(i [0:4])
  ;
  float fa[10];
#pragma acc parallel deviceptr(fa)
  ;
#pragma acc kernels deviceptr(fa [1:5])
  ;
  float *fp;
#pragma acc data deviceptr(fp)
  ;
#pragma acc parallel deviceptr(fp [0:4])
  ;
}


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

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

LLVM IR (-O0):
define void @fun1() {
%1 = alloca i32
%2 = alloca [10 x float]
%3 = alloca float*
ret void
}

LLVM IR (-O2):
define void @fun1() {
ret void
}
/* Variables and functions */
float tan(float);
float _tan(float s) { return tan(s); }


x86 assembly (clang, -O0):
<_tan>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
call   1030 <tan@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_tan>:
jmp    1030 <tan@plt>

LLVM IR (-O0):
define float @_tan(float %0) {
%2 = alloca float
store float %0, float* %2
%3 = load float, float* %2
%4 = call float @tan(float %3)
ret float %4
}

LLVM IR (-O2):
define float @_tan(float %0) {
%2 = tail call float @tan(float %0)
ret float %2
}
/* Variables and functions */
char *strdup(char const *);
char *com_strdup(const char *cid) { return strdup(cid); }


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

x86 assembly (clang, -O2):
<com_strdup>:
jmp    1030 <strdup@plt>

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

LLVM IR (-O2):
define noalias i8* @com_strdup(i8* nocapture %0) {
%2 = tail call i8* @strdup(i8* %0)
ret i8* %2
}
/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ puts(char *);
void help() {
  puts("prog file sse4|libc|verify iter-count string");
  puts("* iter-count > 0");
  exit(1);
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <puts@plt>
lea    0xef6(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<help>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
lea    0xef9(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [45 x i8] c"prog file sse4|libc|verify iter-count string\00"
@.str.1 = [17 x i8] c"* iter-count > 0\00"
define void @help() {
%1 = call i32 @puts(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @puts(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [45 x i8] c"prog file sse4|libc|verify iter-count string\00"
@.str.1 = [17 x i8] c"* iter-count > 0\00"
define void @help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @exit(i32 1)
unreachable
}
const char *stress_2_get_description(void) {
  return "Create a file named stress_2_test_file. "
         "Open it, delete it while holding the open file descriptor, "
         "then fill it with random data. "
         "Repeated re-write the file some number of times. "
         "The repeat count is given by the -n or --repeat option, "
         "otherwise it defaults to 10. "
         "The file size is given by the -z or --size option, "
         "otherwise it defaults to 1000000.";
}


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

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

LLVM IR (-O0):
@.str = [349 x i8] c"Create a file named stress_2_test_file. Open it, delete it while holding the open file descriptor, then fill it with random data. Repeated re-write the file some number of times. The repeat count is given by the -n or --repeat option, otherwise it defaults to 10. The file size is given by the -z or --size option, otherwise it defaults to 1000000.\00"
define i8* @stress_2_get_description() {
ret i8* getelementptr inbounds ([349 x i8], [349 x i8]* @.str, i64 0, i64 0)
}

LLVM IR (-O2):
@.str = [349 x i8] c"Create a file named stress_2_test_file. Open it, delete it while holding the open file descriptor, then fill it with random data. Repeated re-write the file some number of times. The repeat count is given by the -n or --repeat option, otherwise it defaults to 10. The file size is given by the -z or --size option, otherwise it defaults to 1000000.\00"
define i8* @stress_2_get_description() {
ret i8* getelementptr inbounds ([349 x i8], [349 x i8]* @.str, i64 0, i64 0)
}
double abs_inverse(double x, double y, const char *ys) {
  ;
  return (y >= 0 ? x : -x);
}


x86 assembly (clang, -O0):
<abs_inverse>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
mov    %rdi,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     1133 <abs_inverse+0x33>
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
jmp    1154 <abs_inverse+0x54>
movsd  -0x8(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
pop    %rbp
ret

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

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

LLVM IR (-O2):
define double @abs_inverse(double %0, double %1, i8* nocapture readnone %2) {
%4 = fcmp oge double %1, 0.000000e+00
%5 = fneg double %0
%6 = select i1 %4, double %0, double %5
ret double %6
}
int dup(int fd) {}


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

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

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

LLVM IR (-O2):
define i32 @dup(i32 %0) {
ret i32 undef
}
void XQueryTextExtents() {}


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

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

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

LLVM IR (-O2):
define void @XQueryTextExtents() {
ret void
}
void M106Reset(void) {}


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

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

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

LLVM IR (-O2):
define void @M106Reset() {
ret void
}
void free_fiblist_vector(v, nl, nh) long nh, nl;
struct fiblist **v;
{
  free((char *)(v + nl - 1));
}


x86 assembly (clang, -O0):
<free_fiblist_vector>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdi
add    $0xfffffffffffffff8,%rdi
call   1030 <free@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<free_fiblist_vector>:
lea    (%rdi,%rsi,8),%rdi
add    $0xfffffffffffffff8,%rdi
jmp    1030 <free@plt>

LLVM IR (-O0):
%struct.fiblist = type opaque
define void @free_fiblist_vector(%struct.fiblist** %0, i64 %1, i64 %2) {
%4 = alloca %struct.fiblist**
%5 = alloca i64
%6 = alloca i64
store %struct.fiblist** %0, %struct.fiblist*** %4
store i64 %1, i64* %5
store i64 %2, i64* %6
%7 = load %struct.fiblist**, %struct.fiblist*** %4
%8 = load i64, i64* %5
%9 = getelementptr inbounds %struct.fiblist*, %struct.fiblist** %7, i64 %8
%10 = getelementptr inbounds %struct.fiblist*, %struct.fiblist** %9, i64 -1
%11 = bitcast %struct.fiblist** %10 to i8*
ret void
}

LLVM IR (-O2):
%struct.fiblist = type opaque
define void @free_fiblist_vector(%struct.fiblist** nocapture %0, i64 %1, i64 %2) {
%4 = getelementptr inbounds %struct.fiblist*, %struct.fiblist** %0, i64 %1
%5 = getelementptr inbounds %struct.fiblist*, %struct.fiblist** %4, i64 -1
%6 = bitcast %struct.fiblist** %5 to i8*
tail call void @free(i8* %6)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ write(int, char *, int);
void ft_putstr(char *str) {
  int i;
  i = 0;
  while (str[i] != '\0')
    i++;
  write(1, str, i);
}


x86 assembly (clang, -O0):
<ft_putstr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x0,%eax
je     1146 <ft_putstr+0x36>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1123 <ft_putstr+0x13>
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%edx
mov    $0x1,%edi
call   1030 <write@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_putstr>:
mov    %rdi,%rsi
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
nop
cmpb   $0x0,(%rsi,%rdx,1)
lea    0x1(%rdx),%rdx
jne    1120 <ft_putstr+0x10>
add    $0xffffffff,%edx
mov    $0x1,%edi
jmp    1030 <write@plt>

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

LLVM IR (-O2):
define void @ft_putstr(i8* nocapture %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i64 [ %7, %2 ], [ 0, %1 ]
%4 = getelementptr inbounds i8, i8* %0, i64 %3
%5 = load i8, i8* %4
%6 = icmp eq i8 %5, 0
%7 = add nuw i64 %3, 1
br i1 %6, label %8, label %2
8: ; preds = %2
%9 = trunc i64 %3 to i32
%10 = tail call i32 @write(i32 1, i8* %0, i32 %9)
ret void
}
/* Variables and functions */
int /*<<< orphan*/ abort();
int foo();
int main(int argc, char *argv[]) {
  int result = 666;
#pragma omp task out(result)
  result = foo();
#pragma omp taskwait on(result)
  if (result != 999)
    abort();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x29a,-0x14(%rbp)
mov    $0x0,%al
call   1040 <foo@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x3e7,-0x14(%rbp)
je     115b <main+0x3b>
mov    $0x0,%al
call   1030 <abort@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <foo@plt>
cmp    $0x3e7,%eax
jne    1133 <main+0x13>
xor    %eax,%eax
pop    %rcx
ret
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 666, i32* %6
%7 = call i32 (...) @foo()
store i32 %7, i32* %6
%8 = load i32, i32* %6
%9 = icmp ne i32 %8, 999
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = call i32 (...) @abort()
unreachable
12: ; preds = %2
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (...) @foo()
%4 = icmp eq i32 %3, 999
br i1 %4, label %7, label %5
5: ; preds = %2
%6 = tail call i32 (...) @abort()
unreachable
7: ; preds = %2
ret i32 0
}
/* Variables and functions */
void *_talloc_steal(void const *, void const *);
void *_talloc_move(const void *new_ctx, const void *_pptr) {
  const void **pptr = ((const void **)(_pptr));
  void *ret = _talloc_steal(new_ctx, *pptr);
  (*pptr) = NULL;
  return ret;
}


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

x86 assembly (clang, -O2):
<_talloc_move>:
push   %rbx
mov    %rsi,%rbx
mov    (%rsi),%rsi
call   1030 <_talloc_steal@plt>
movq   $0x0,(%rbx)
pop    %rbx
ret

LLVM IR (-O0):
define i8* @_talloc_move(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8**
%6 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%7 = load i8*, i8** %4
%8 = bitcast i8* %7 to i8**
store i8** %8, i8*** %5
%9 = load i8*, i8** %3
%10 = load i8**, i8*** %5
%11 = load i8*, i8** %10
%12 = call i8* @_talloc_steal(i8* %9, i8* %11)
store i8* %12, i8** %6
%13 = load i8**, i8*** %5
store i8* null, i8** %13
%14 = load i8*, i8** %6
ret i8* %14
}

LLVM IR (-O2):
define i8* @_talloc_move(i8* %0, i8* nocapture %1) {
%3 = bitcast i8* %1 to i8**
%4 = load i8*, i8** %3
%5 = tail call i8* @_talloc_steal(i8* %0, i8* %4)
store i8* null, i8** %3
ret i8* %5
}
/* Variables and functions */
char getTexChar();
char getNonSpace(void) {
  char c;
  while ((c = getTexChar()) && c == ' ') {
  }
  return c;
}


x86 assembly (clang, -O0):
<getNonSpace>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <getTexChar@plt>
mov    %al,-0x1(%rbp)
movsbl %al,%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x2(%rbp)
je     1140 <getNonSpace+0x30>
movsbl -0x1(%rbp),%eax
cmp    $0x20,%eax
sete   %al
mov    %al,-0x2(%rbp)
mov    -0x2(%rbp),%al
test   $0x1,%al
jne    1150 <getNonSpace+0x40>
jmp    1155 <getNonSpace+0x45>
jmp    1118 <getNonSpace+0x8>
movsbl -0x1(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getNonSpace>:
push   %rax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1030 <getTexChar@plt>
cmp    $0x20,%al
je     1120 <getNonSpace+0x10>
pop    %rcx
ret

LLVM IR (-O0):
define signext i8 @getNonSpace() {
%1 = alloca i8
br label %2
2: ; preds = %12, %0
%3 = call signext i8 (...) @getTexChar()
store i8 %3, i8* %1
%4 = sext i8 %3 to i32
%5 = icmp ne i32 %4, 0
br i1 %5, label %6, label %10
6: ; preds = %2
%7 = load i8, i8* %1
%8 = sext i8 %7 to i32
%9 = icmp eq i32 %8, 32
br label %10
10: ; preds = %6, %2
%11 = phi i1 [ false, %2 ], [ %9, %6 ]
br i1 %11, label %12, label %13
12: ; preds = %10
br label %2
13: ; preds = %10
%14 = load i8, i8* %1
ret i8 %14
}

LLVM IR (-O2):
define signext i8 @getNonSpace() {
br label %1
1: ; preds = %1, %0
%2 = tail call signext i8 (...) @getTexChar()
%3 = icmp eq i8 %2, 32
br i1 %3, label %1, label %4
4: ; preds = %1
ret i8 %2
}
void test_A(int *p) { asm volatile("" ::"A"(*p)); }


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

x86 assembly (clang, -O2):
<test_A>:
mov    (%rdi),%eax
ret

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

LLVM IR (-O2):
define void @test_A(i32* nocapture %0) {
%2 = load i32, i32* %0
tail call void asm sideeffect "", "A,~{dirflag},~{fpsr},~{flags}"(i32 %2)
ret void
}
unsigned long long rotateL_fun_ullong(unsigned long long x, int i) {
  if ((i %= 64) == 0)
    return x;
  return (x << i) | (x >> (64 - i));
}


x86 assembly (clang, -O0):
<rotateL_fun_ullong>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    $0x40,%ecx
cltd
idiv   %ecx
mov    %edx,-0x14(%rbp)
cmp    $0x0,%edx
jne    112f <rotateL_fun_ullong+0x2f>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    1154 <rotateL_fun_ullong+0x54>
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
shl    %cl,%rax
mov    -0x10(%rbp),%rdx
mov    $0x40,%ecx
sub    -0x14(%rbp),%ecx
mov    %ecx,%ecx
shr    %cl,%rdx
mov    %rdx,%rcx
or     %rcx,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<rotateL_fun_ullong>:
mov    %esi,%ecx
mov    %rdi,%rax
rol    %cl,%rax
ret

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

LLVM IR (-O2):
define i64 @rotateL_fun_ullong(i64 %0, i32 %1) {
%3 = zext i32 %1 to i64
%4 = tail call i64 @llvm.fshl.i64(i64 %0, i64 %0, i64 %3)
ret i64 %4
}
/* Variables and functions */
int /*<<< orphan*/ bzero(char *, int);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
void prepareBufferWithValue(char *buffer, char *value, int size) {
  bzero(buffer, 512);
  strcpy(buffer, value);
  strcat(buffer, "\n");
}


x86 assembly (clang, -O0):
<prepareBufferWithValue>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x200,%esi
call   1040 <bzero@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <strcpy@plt>
mov    -0x8(%rbp),%rdi
lea    0xe97(%rip),%rsi
call   1050 <strcat@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<prepareBufferWithValue>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
mov    $0x200,%esi
call   1040 <bzero@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <strcpy@plt>
lea    0xeaa(%rip),%rsi
mov    %rbx,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1050 <strcat@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
define void @prepareBufferWithValue(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 i8*, i8** %4
%8 = call i32 @bzero(i8* %7, i32 512)
%9 = load i8*, i8** %4
%10 = load i8*, i8** %5
%11 = call i32 @strcpy(i8* %9, i8* %10)
%12 = load i8*, i8** %4
%13 = call i32 @strcat(i8* %12, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"\0A\00"
define void @prepareBufferWithValue(i8* %0, i8* %1, i32 %2) {
%4 = tail call i32 @bzero(i8* %0, i32 512)
%5 = tail call i32 @strcpy(i8* %0, i8* %1)
%6 = tail call i32 @strcat(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
ret void
}
/* Variables and functions */
int /*<<< orphan*/ CONSOL_SendChar(char);
void CONSOL_SendCh(char bData) {
  if (bData == '\n') {
    CONSOL_SendChar('\r');
  }
  CONSOL_SendChar(bData);
}


x86 assembly (clang, -O0):
<CONSOL_SendCh>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
cmp    $0xa,%eax
jne    1135 <CONSOL_SendCh+0x25>
mov    $0xd,%edi
call   1030 <CONSOL_SendChar@plt>
movsbl -0x1(%rbp),%edi
call   1030 <CONSOL_SendChar@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CONSOL_SendCh>:
push   %rbx
mov    %edi,%ebx
cmp    $0xa,%bl
jne    1122 <CONSOL_SendCh+0x12>
mov    $0xd,%edi
call   1030 <CONSOL_SendChar@plt>
movsbl %bl,%edi
pop    %rbx
jmp    1030 <CONSOL_SendChar@plt>

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

LLVM IR (-O2):
define void @CONSOL_SendCh(i8 signext %0) {
%2 = icmp eq i8 %0, 10
br i1 %2, label %3, label %5
3: ; preds = %1
%4 = tail call i32 @CONSOL_SendChar(i8 signext 13)
br label %5
5: ; preds = %3, %1
%6 = tail call i32 @CONSOL_SendChar(i8 signext %0)
ret void
}
/* Type definitions */
struct mq_attr {
  int dummy;
};
typedef int /*<<< orphan*/ mqd_t;

/* Variables and functions */
int /*<<< orphan*/ ENOSYS;
int /*<<< orphan*/ __set_errno(int /*<<< orphan*/);
int mq_getattr(mqd_t mqdes, struct mq_attr *mqstat) {
  __set_errno(ENOSYS);
  return -1;
}


x86 assembly (clang, -O0):
<mq_getattr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2ec2(%rip),%rax
mov    (%rax),%edi
call   1030 <__set_errno@plt>
mov    $0xffffffff,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<mq_getattr>:
push   %rax
mov    0x2ed0(%rip),%rax
mov    (%rax),%edi
call   1030 <__set_errno@plt>
mov    $0xffffffff,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.mq_attr = type { i32 }
@ENOSYS = global i32 0
define i32 @mq_getattr(i32 %0, %struct.mq_attr* %1) {
%3 = alloca i32
%4 = alloca %struct.mq_attr*
store i32 %0, i32* %3
store %struct.mq_attr* %1, %struct.mq_attr** %4
%5 = load i32, i32* @ENOSYS
%6 = call i32 @__set_errno(i32 %5)
ret i32 -1
}

LLVM IR (-O2):
%struct.mq_attr = type { i32 }
@ENOSYS = global i32 0
define i32 @mq_getattr(i32 %0, %struct.mq_attr* nocapture readnone %1) {
%3 = load i32, i32* @ENOSYS
%4 = tail call i32 @__set_errno(i32 %3)
ret i32 -1
}
void release_return(int *lock) { return __sync_lock_release(lock); }


x86 assembly (clang, -O0):
<release_return>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movl   $0x0,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<release_return>:
movl   $0x0,(%rdi)
ret

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

LLVM IR (-O2):
define void @release_return(i32* nocapture writeonly %0) {
store atomic i32 0, i32* %0 release
ret void
}