void initConditions(double **PAR, double **TAir, double **VPD, double **Precip,
                    double **CO2) {
  if (**PAR < -900)
    **PAR = 5;
  if (**TAir < -900)
    **TAir = 0;
  if (**VPD < 0 || **VPD > 6)
    **VPD = 0.5;
  if (**Precip < 0)
    **Precip = 0;
  if (**CO2 < 0.1)
    **CO2 = 380;
}


x86 assembly (clang, -O0):
<initConditions>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
movsd  0xed9(%rip),%xmm0
ucomisd (%rax),%xmm0
jbe    1144 <initConditions+0x44>
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
movsd  0xec8(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movsd  0xead(%rip),%xmm0
ucomisd (%rax),%xmm0
jbe    116b <initConditions+0x6b>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
xorps  %xmm0,%xmm0
ucomisd (%rax),%xmm0
ja     119c <initConditions+0x9c>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
movsd  (%rax),%xmm0
movsd  0xe7e(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    11af <initConditions+0xaf>
mov    -0x18(%rbp),%rax
mov    (%rax),%rax
movsd  0xe6d(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
mov    (%rax),%rax
xorps  %xmm0,%xmm0
ucomisd (%rax),%xmm0
jbe    11d1 <initConditions+0xd1>
mov    -0x20(%rbp),%rax
mov    (%rax),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    -0x28(%rbp),%rax
mov    (%rax),%rax
movsd  0xe40(%rip),%xmm0
ucomisd (%rax),%xmm0
jbe    11fd <initConditions+0xfd>
mov    -0x28(%rbp),%rax
mov    (%rax),%rax
movsd  0xe2f(%rip),%xmm0
movsd  %xmm0,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<initConditions>:
mov    (%rdi),%rax
movsd  0xef5(%rip),%xmm0
ucomisd (%rax),%xmm0
jbe    111e <initConditions+0x1e>
movabs $0x4014000000000000,%rdi
mov    %rdi,(%rax)
mov    (%rsi),%rax
ucomisd (%rax),%xmm0
jbe    112e <initConditions+0x2e>
movq   $0x0,(%rax)
mov    (%rdx),%rax
movsd  (%rax),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm0,%xmm1
ja     1149 <initConditions+0x49>
ucomisd 0xec1(%rip),%xmm0
jbe    1156 <initConditions+0x56>
movabs $0x3fe0000000000000,%rdx
mov    %rdx,(%rax)
mov    (%rcx),%rax
xorpd  %xmm0,%xmm0
ucomisd (%rax),%xmm0
jbe    116a <initConditions+0x6a>
movq   $0x0,(%rax)
mov    (%r8),%rax
movsd  0xe9b(%rip),%xmm0
ucomisd (%rax),%xmm0
jbe    1188 <initConditions+0x88>
movabs $0x4077c00000000000,%rcx
c0 77 40
mov    %rcx,(%rax)
ret

LLVM IR (-O0):
define void @initConditions(double** %0, double** %1, double** %2, double** %3, double** %4) {
%6 = alloca double**
%7 = alloca double**
%8 = alloca double**
%9 = alloca double**
%10 = alloca double**
store double** %0, double*** %6
store double** %1, double*** %7
store double** %2, double*** %8
store double** %3, double*** %9
store double** %4, double*** %10
%11 = load double**, double*** %6
%12 = load double*, double** %11
%13 = load double, double* %12
%14 = fcmp olt double %13, -9.000000e+02
br i1 %14, label %15, label %18
15: ; preds = %5
%16 = load double**, double*** %6
%17 = load double*, double** %16
store double 5.000000e+00, double* %17
br label %18
18: ; preds = %15, %5
%19 = load double**, double*** %7
%20 = load double*, double** %19
%21 = load double, double* %20
%22 = fcmp olt double %21, -9.000000e+02
br i1 %22, label %23, label %26
23: ; preds = %18
%24 = load double**, double*** %7
%25 = load double*, double** %24
store double 0.000000e+00, double* %25
br label %26
26: ; preds = %23, %18
%27 = load double**, double*** %8
%28 = load double*, double** %27
%29 = load double, double* %28
%30 = fcmp olt double %29, 0.000000e+00
br i1 %30, label %36, label %31
31: ; preds = %26
%32 = load double**, double*** %8
%33 = load double*, double** %32
%34 = load double, double* %33
%35 = fcmp ogt double %34, 6.000000e+00
br i1 %35, label %36, label %39
36: ; preds = %31, %26
%37 = load double**, double*** %8
%38 = load double*, double** %37
store double 5.000000e-01, double* %38
br label %39
39: ; preds = %36, %31
%40 = load double**, double*** %9
%41 = load double*, double** %40
%42 = load double, double* %41
%43 = fcmp olt double %42, 0.000000e+00
br i1 %43, label %44, label %47
44: ; preds = %39
%45 = load double**, double*** %9
%46 = load double*, double** %45
store double 0.000000e+00, double* %46
br label %47
47: ; preds = %44, %39
%48 = load double**, double*** %10
%49 = load double*, double** %48
%50 = load double, double* %49
%51 = fcmp olt double %50, 1.000000e-01
br i1 %51, label %52, label %55
52: ; preds = %47
%53 = load double**, double*** %10
%54 = load double*, double** %53
store double 3.800000e+02, double* %54
br label %55
55: ; preds = %52, %47
ret void
}

LLVM IR (-O2):
define void @initConditions(double** nocapture %0, double** nocapture %1, double** nocapture %2, double** nocapture %3, double** nocapture %4) {
%6 = load double*, double** %0
%7 = load double, double* %6
%8 = fcmp olt double %7, -9.000000e+02
br i1 %8, label %9, label %10
9: ; preds = %5
store double 5.000000e+00, double* %6
br label %10
10: ; preds = %9, %5
%11 = load double*, double** %1
%12 = load double, double* %11
%13 = fcmp olt double %12, -9.000000e+02
br i1 %13, label %14, label %15
14: ; preds = %10
store double 0.000000e+00, double* %11
br label %15
15: ; preds = %14, %10
%16 = load double*, double** %2
%17 = load double, double* %16
%18 = fcmp olt double %17, 0.000000e+00
%19 = fcmp ogt double %17, 6.000000e+00
%20 = or i1 %18, %19
br i1 %20, label %21, label %22
21: ; preds = %15
store double 5.000000e-01, double* %16
br label %22
22: ; preds = %15, %21
%23 = load double*, double** %3
%24 = load double, double* %23
%25 = fcmp olt double %24, 0.000000e+00
br i1 %25, label %26, label %27
26: ; preds = %22
store double 0.000000e+00, double* %23
br label %27
27: ; preds = %26, %22
%28 = load double*, double** %4
%29 = load double, double* %28
%30 = fcmp olt double %29, 1.000000e-01
br i1 %30, label %31, label %32
31: ; preds = %27
store double 3.800000e+02, double* %28
br label %32
32: ; preds = %31, %27
ret void
}