#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ printf(char *);
lv(double *in, double *out, int nin, int nout, double *var, double *con) {
  if (con[2] < .5)
    printf("Here ya go \n");
  out[0] = -in[0];
  con[2] = 1;
}


x86 assembly (clang, -O0):
<lv>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    %ecx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x30(%rbp),%rax
movsd  0xec6(%rip),%xmm0
ucomisd 0x10(%rax),%xmm0
jbe    1151 <lv+0x41>
lea    0xec4(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x30(%rbp),%rax
movsd  0xe84(%rip),%xmm0
movsd  %xmm0,0x10(%rax)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<lv>:
push   %r15
push   %r14
push   %rbx
mov    %r9,%rbx
mov    %rsi,%r14
mov    %rdi,%r15
movsd  0xeda(%rip),%xmm0
ucomisd 0x10(%r9),%xmm0
jbe    113a <lv+0x2a>
lea    0xeeb(%rip),%rdi
call   1030 <puts@plt>
movsd  (%r15),%xmm0
xorps  0xeca(%rip),%xmm0
movlps %xmm0,(%r14)
movabs $0x3ff0000000000000,%rax
mov    %rax,0x10(%rbx)
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [13 x i8] c"Here ya go \0A\00"
define i32 @lv(double* %0, double* %1, i32 %2, i32 %3, double* %4, double* %5) {
%7 = alloca i32
%8 = alloca double*
%9 = alloca double*
%10 = alloca i32
%11 = alloca i32
%12 = alloca double*
%13 = alloca double*
store double* %0, double** %8
store double* %1, double** %9
store i32 %2, i32* %10
store i32 %3, i32* %11
store double* %4, double** %12
store double* %5, double** %13
%14 = load double*, double** %13
%15 = getelementptr inbounds double, double* %14, i64 2
%16 = load double, double* %15
%17 = fcmp olt double %16, 5.000000e-01
br i1 %17, label %18, label %20
18: ; preds = %6
%19 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
br label %20
20: ; preds = %18, %6
%21 = load double*, double** %8
%22 = getelementptr inbounds double, double* %21, i64 0
%23 = load double, double* %22
%24 = fneg double %23
%25 = load double*, double** %9
%26 = getelementptr inbounds double, double* %25, i64 0
store double %24, double* %26
%27 = load double*, double** %13
%28 = getelementptr inbounds double, double* %27, i64 2
store double 1.000000e+00, double* %28
%29 = load i32, i32* %7
ret i32 %29
}

LLVM IR (-O2):
@str = [12 x i8] c"Here ya go \00"
define i32 @lv(double* nocapture %0, double* nocapture writeonly %1, i32 %2, i32 %3, double* nocapture readnone %4, double* nocapture %5) {
%7 = getelementptr inbounds double, double* %5, i64 2
%8 = load double, double* %7
%9 = fcmp olt double %8, 5.000000e-01
br i1 %9, label %10, label %12
10: ; preds = %6
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
br label %12
12: ; preds = %10, %6
%13 = load double, double* %0
%14 = fneg double %13
store double %14, double* %1
store double 1.000000e+00, double* %7
ret i32 undef
}