#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*/ assert(int);
double **createVars(int, int);
int /*<<< orphan*/ destroyVars(double **);
int /*<<< orphan*/ readNcFile(char *, double **, int, int);
int /*<<< orphan*/ submitCdoCommand(char *);
int /*<<< orphan*/ writeNcFile(char *, double const *, int);
void testEcaSu() {
  const double array[] = {-9.0E33,           -9.0E33,
                          ((26.0) + 273.15), ((24.0) + 273.15),
                          ((26.0) + 273.15), ((24.0) + 273.15)};
  int nvars = 1;
  int nts = 1;
  double **vars = createVars(nvars, nts);
  writeNcFile("in.nc", array, 2);
  submitCdoCommand("eca_su in.nc out.nc");
  readNcFile("out.nc", vars, nvars, nts);
  assert((
      ((vars[0][0]) != (vars[0][0])) || ((-9.0E33) != (-9.0E33))
          ? (((vars[0][0]) != (vars[0][0])) && ((-9.0E33) != (-9.0E33)) ? 1 : 0)
          : !(vars[0][0] < -9.0E33 || -9.0E33 < vars[0][0])));
  writeNcFile("in.nc", array, 6);
  submitCdoCommand("eca_su in.nc out.nc");
  readNcFile("out.nc", vars, nvars, nts);
  assert((((vars[0][0]) != (vars[0][0])) || ((2.) != (2.))
              ? (((vars[0][0]) != (vars[0][0])) && ((2.) != (2.)) ? 1 : 0)
              : !(vars[0][0] < 2. || 2. < vars[0][0])));
  submitCdoCommand("eca_su,20.0 in.nc out.nc");
  readNcFile("out.nc", vars, nvars, nts);
  assert((((vars[0][0]) != (vars[0][0])) || ((4.) != (4.))
              ? (((vars[0][0]) != (vars[0][0])) && ((4.) != (4.)) ? 1 : 0)
              : !(vars[0][0] < 4. || 4. < vars[0][0])));
  submitCdoCommand("eca_su,30.0 in.nc out.nc");
  readNcFile("out.nc", vars, nvars, nts);
  assert((((vars[0][0]) != (vars[0][0])) || ((0.) != (0.))
              ? (((vars[0][0]) != (vars[0][0])) && ((0.) != (0.)) ? 1 : 0)
              : !(vars[0][0] < 0. || 0. < vars[0][0])));
  destroyVars(vars);
}


x86 assembly (clang, -O0):
<testEcaSu>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
mov    $0x30,%edx
call   1050 <memset@plt>
movsd  0xe80(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xe73(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xe5e(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xe49(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xe44(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xe2f(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
movl   $0x1,-0x34(%rbp)
movl   $0x1,-0x38(%rbp)
mov    -0x34(%rbp),%edi
mov    -0x38(%rbp),%esi
call   1030 <createVars@plt>
mov    %rax,-0x40(%rbp)
lea    -0x30(%rbp),%rsi
lea    0xe2a(%rip),%rdi
mov    $0x2,%edx
call   1080 <writeNcFile@plt>
lea    0xe1f(%rip),%rdi
call   1070 <submitCdoCommand@plt>
mov    -0x40(%rbp),%rsi
mov    -0x34(%rbp),%edx
mov    -0x38(%rbp),%ecx
lea    0xe2f(%rip),%rdi
call   1090 <readNcFile@plt>
mov    -0x40(%rbp),%rax
mov    (%rax),%rax
movsd  (%rax),%xmm0
mov    -0x40(%rbp),%rax
mov    (%rax),%rax
ucomisd (%rax),%xmm0
jne    1251 <testEcaSu+0xe1>
jp     1251 <testEcaSu+0xe1>
jmp    129f <testEcaSu+0x12f>
mov    -0x40(%rbp),%rax
mov    (%rax),%rax
movsd  (%rax),%xmm0
mov    -0x40(%rbp),%rax
mov    (%rax),%rcx
xor    %eax,%eax
ucomisd (%rcx),%xmm0
mov    %al,-0x41(%rbp)
jne    127d <testEcaSu+0x10d>
jp     127d <testEcaSu+0x10d>
jmp    1287 <testEcaSu+0x117>
xor    %eax,%eax
mov    %al,-0x41(%rbp)
jmp    1287 <testEcaSu+0x117>
mov    -0x41(%rbp),%dl
xor    %eax,%eax
mov    $0x1,%ecx
test   $0x1,%dl
cmovne %ecx,%eax
mov    %eax,-0x48(%rbp)
jmp    12e7 <testEcaSu+0x177>
mov    -0x40(%rbp),%rax
mov    (%rax),%rcx
mov    $0x1,%al
movsd  0xd60(%rip),%xmm0
ucomisd (%rcx),%xmm0
mov    %al,-0x49(%rbp)
ja     12da <testEcaSu+0x16a>
mov    -0x40(%rbp),%rax
mov    (%rax),%rax
movsd  (%rax),%xmm0
movsd  0xd40(%rip),%xmm1
ucomisd %xmm1,%xmm0
seta   %al
mov    %al,-0x49(%rbp)
mov    -0x49(%rbp),%al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x48(%rbp)
mov    -0x48(%rbp),%edi
call   1060 <assert@plt>
lea    -0x30(%rbp),%rsi
lea    0xd2e(%rip),%rdi
mov    $0x6,%edx
call   1080 <writeNcFile@plt>
lea    0xd23(%rip),%rdi
call   1070 <submitCdoCommand@plt>
mov    -0x40(%rbp),%rsi
mov    -0x34(%rbp),%edx
mov    -0x38(%rbp),%ecx
lea    0xd33(%rip),%rdi
call   1090 <readNcFile@plt>
mov    -0x40(%rbp),%rax
mov    (%rax),%rax
movsd  (%rax),%xmm0
mov    -0x40(%rbp),%rax
mov    (%rax),%rax
ucomisd (%rax),%xmm0
jne    134d <testEcaSu+0x1dd>
jp     134d <testEcaSu+0x1dd>
jmp    139b <testEcaSu+0x22b>
mov    -0x40(%rbp),%rax
mov    (%rax),%rax
movsd  (%rax),%xmm0
mov    -0x40(%rbp),%rax
mov    (%rax),%rcx
xor    %eax,%eax
ucomisd (%rcx),%xmm0
mov    %al,-0x4a(%rbp)
jne    1379 <testEcaSu+0x209>
jp     1379 <testEcaSu+0x209>
jmp    1383 <testEcaSu+0x213>
xor    %eax,%eax
mov    %al,-0x4a(%rbp)
jmp    1383 <testEcaSu+0x213>
mov    -0x4a(%rbp),%dl
xor    %eax,%eax
mov    $0x1,%ecx
test   $0x1,%dl
cmovne %ecx,%eax
mov    %eax,-0x50(%rbp)
jmp    13e3 <testEcaSu+0x273>
mov    -0x40(%rbp),%rax
mov    (%rax),%rcx
mov    $0x1,%al
movsd  0xc6c(%rip),%xmm0
ucomisd (%rcx),%xmm0
mov    %al,-0x51(%rbp)
ja     13d6 <testEcaSu+0x266>
mov    -0x40(%rbp),%rax
mov    (%rax),%rax
movsd  (%rax),%xmm0
movsd  0xc4c(%rip),%xmm1
ucomisd %xmm1,%xmm0
seta   %al
mov    %al,-0x51(%rbp)
mov    -0x51(%rbp),%al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x50(%rbp)
mov    -0x50(%rbp),%edi
call   1060 <assert@plt>
lea    0xc50(%rip),%rdi
call   1070 <submitCdoCommand@plt>
mov    -0x40(%rbp),%rsi
mov    -0x34(%rbp),%edx
mov    -0x38(%rbp),%ecx
lea    0xc4c(%rip),%rdi
call   1090 <readNcFile@plt>
mov    -0x40(%rbp),%rax
mov    (%rax),%rax
movsd  (%rax),%xmm0
mov    -0x40(%rbp),%rax
mov    (%rax),%rax
ucomisd (%rax),%xmm0
jne    1434 <testEcaSu+0x2c4>
jp     1434 <testEcaSu+0x2c4>
jmp    1482 <testEcaSu+0x312>
mov    -0x40(%rbp),%rax
mov    (%rax),%rax
movsd  (%rax),%xmm0
mov    -0x40(%rbp),%rax
mov    (%rax),%rcx
xor    %eax,%eax
ucomisd (%rcx),%xmm0
mov    %al,-0x52(%rbp)
jne    1460 <testEcaSu+0x2f0>
jp     1460 <testEcaSu+0x2f0>
jmp    146a <testEcaSu+0x2fa>
xor    %eax,%eax
mov    %al,-0x52(%rbp)
jmp    146a <testEcaSu+0x2fa>
mov    -0x52(%rbp),%dl
xor    %eax,%eax
mov    $0x1,%ecx
test   $0x1,%dl
cmovne %ecx,%eax
mov    %eax,-0x58(%rbp)
jmp    14ca <testEcaSu+0x35a>
mov    -0x40(%rbp),%rax
mov    (%rax),%rcx
mov    $0x1,%al
movsd  0xb8d(%rip),%xmm0
ucomisd (%rcx),%xmm0
mov    %al,-0x59(%rbp)
ja     14bd <testEcaSu+0x34d>
mov    -0x40(%rbp),%rax
mov    (%rax),%rax
movsd  (%rax),%xmm0
movsd  0xb6d(%rip),%xmm1
ucomisd %xmm1,%xmm0
seta   %al
mov    %al,-0x59(%rbp)
mov    -0x59(%rbp),%al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x58(%rbp)
mov    -0x58(%rbp),%edi
call   1060 <assert@plt>
lea    0xb82(%rip),%rdi
call   1070 <submitCdoCommand@plt>
mov    -0x40(%rbp),%rsi
mov    -0x34(%rbp),%edx
mov    -0x38(%rbp),%ecx
lea    0xb65(%rip),%rdi
call   1090 <readNcFile@plt>
mov    -0x40(%rbp),%rax
mov    (%rax),%rax
movsd  (%rax),%xmm0
mov    -0x40(%rbp),%rax
mov    (%rax),%rax
ucomisd (%rax),%xmm0
jne    151b <testEcaSu+0x3ab>
jp     151b <testEcaSu+0x3ab>
jmp    1569 <testEcaSu+0x3f9>
mov    -0x40(%rbp),%rax
mov    (%rax),%rax
movsd  (%rax),%xmm0
mov    -0x40(%rbp),%rax
mov    (%rax),%rcx
xor    %eax,%eax
ucomisd (%rcx),%xmm0
mov    %al,-0x5a(%rbp)
jne    1547 <testEcaSu+0x3d7>
jp     1547 <testEcaSu+0x3d7>
jmp    1551 <testEcaSu+0x3e1>
xor    %eax,%eax
mov    %al,-0x5a(%rbp)
jmp    1551 <testEcaSu+0x3e1>
mov    -0x5a(%rbp),%dl
xor    %eax,%eax
mov    $0x1,%ecx
test   $0x1,%dl
cmovne %ecx,%eax
mov    %eax,-0x60(%rbp)
jmp    15a7 <testEcaSu+0x437>
mov    -0x40(%rbp),%rax
mov    (%rax),%rcx
mov    $0x1,%al
xorps  %xmm0,%xmm0
ucomisd (%rcx),%xmm0
mov    %al,-0x61(%rbp)
ja     159a <testEcaSu+0x42a>
mov    -0x40(%rbp),%rax
mov    (%rax),%rax
movsd  (%rax),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
seta   %al
mov    %al,-0x61(%rbp)
mov    -0x61(%rbp),%al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x60(%rbp)
mov    -0x60(%rbp),%edi
call   1060 <assert@plt>
mov    -0x40(%rbp),%rdi
call   1040 <destroyVars@plt>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<testEcaSu>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x30,%rsp
movaps 0xe8c(%rip),%xmm0
movaps %xmm0,(%rsp)
movaps 0xe91(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps %xmm0,0x20(%rsp)
mov    $0x1,%edi
mov    $0x1,%esi
call   1030 <createVars@plt>
mov    %rax,%rbx
lea    0xe96(%rip),%r15
mov    %rsp,%r12
mov    %r15,%rdi
mov    %r12,%rsi
mov    $0x2,%edx
call   1070 <writeNcFile@plt>
lea    0xe82(%rip),%r13
mov    %r13,%rdi
call   1060 <submitCdoCommand@plt>
lea    0xe99(%rip),%r14
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x1,%edx
mov    $0x1,%ecx
call   1080 <readNcFile@plt>
mov    (%rbx),%rax
movsd  (%rax),%xmm0
ucomisd %xmm0,%xmm0
setnp  %al
movsd  0xe2a(%rip),%xmm1
ucomisd %xmm0,%xmm1
sete   %cl
and    %al,%cl
movzbl %cl,%edi
call   1050 <assert@plt>
mov    %r15,%rdi
mov    %r12,%rsi
mov    $0x6,%edx
call   1070 <writeNcFile@plt>
mov    %r13,%rdi
call   1060 <submitCdoCommand@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x1,%edx
mov    $0x1,%ecx
call   1080 <readNcFile@plt>
mov    (%rbx),%rax
movsd  (%rax),%xmm0
ucomisd %xmm0,%xmm0
setnp  %al
movsd  0xdde(%rip),%xmm1
ucomisd %xmm0,%xmm1
sete   %cl
and    %al,%cl
movzbl %cl,%edi
call   1050 <assert@plt>
lea    0xdf0(%rip),%rdi
call   1060 <submitCdoCommand@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x1,%edx
mov    $0x1,%ecx
call   1080 <readNcFile@plt>
mov    (%rbx),%rax
movsd  (%rax),%xmm0
ucomisd %xmm0,%xmm0
setnp  %al
movsd  0xd9e(%rip),%xmm1
ucomisd %xmm0,%xmm1
sete   %cl
and    %al,%cl
movzbl %cl,%edi
call   1050 <assert@plt>
lea    0xdc1(%rip),%rdi
call   1060 <submitCdoCommand@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x1,%edx
mov    $0x1,%ecx
call   1080 <readNcFile@plt>
mov    (%rbx),%rax
xorpd  %xmm0,%xmm0
cmpeqsd (%rax),%xmm0
movq   %xmm0,%rdi
and    $0x1,%edi
call   1050 <assert@plt>
mov    %rbx,%rdi
call   1040 <destroyVars@plt>
add    $0x30,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [6 x i8] c"in.nc\00"
@.str.1 = [20 x i8] c"eca_su in.nc out.nc\00"
@.str.2 = [7 x i8] c"out.nc\00"
@.str.3 = [25 x i8] c"eca_su,20.0 in.nc out.nc\00"
@.str.4 = [25 x i8] c"eca_su,30.0 in.nc out.nc\00"
define void @testEcaSu() {
%1 = alloca [6 x double]
%2 = alloca i32
%3 = alloca i32
%4 = alloca double**
%5 = bitcast [6 x double]* %1 to i8*
%6 = bitcast i8* %5 to [6 x double]*
%7 = getelementptr inbounds [6 x double], [6 x double]* %6, i32 0, i32 0
store double -9.000000e+33, double* %7
%8 = getelementptr inbounds [6 x double], [6 x double]* %6, i32 0, i32 1
store double -9.000000e+33, double* %8
%9 = getelementptr inbounds [6 x double], [6 x double]* %6, i32 0, i32 2
store double 2.991500e+02, double* %9
%10 = getelementptr inbounds [6 x double], [6 x double]* %6, i32 0, i32 3
store double 2.971500e+02, double* %10
%11 = getelementptr inbounds [6 x double], [6 x double]* %6, i32 0, i32 4
store double 2.991500e+02, double* %11
%12 = getelementptr inbounds [6 x double], [6 x double]* %6, i32 0, i32 5
store double 2.971500e+02, double* %12
store i32 1, i32* %2
store i32 1, i32* %3
%13 = load i32, i32* %2
%14 = load i32, i32* %3
%15 = call double** @createVars(i32 %13, i32 %14)
store double** %15, double*** %4
%16 = getelementptr inbounds [6 x double], [6 x double]* %1, i64 0, i64 0
%17 = call i32 @writeNcFile(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), double* %16, i32 2)
%18 = call i32 @submitCdoCommand(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%19 = load double**, double*** %4
%20 = load i32, i32* %2
%21 = load i32, i32* %3
%22 = call i32 @readNcFile(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double** %19, i32 %20, i32 %21)
%23 = load double**, double*** %4
%24 = getelementptr inbounds double*, double** %23, i64 0
%25 = load double*, double** %24
%26 = getelementptr inbounds double, double* %25, i64 0
%27 = load double, double* %26
%28 = load double**, double*** %4
%29 = getelementptr inbounds double*, double** %28, i64 0
%30 = load double*, double** %29
%31 = getelementptr inbounds double, double* %30, i64 0
%32 = load double, double* %31
%33 = fcmp une double %27, %32
br i1 %33, label %34, label %51
34: ; preds = %0
%35 = load double**, double*** %4
%36 = getelementptr inbounds double*, double** %35, i64 0
%37 = load double*, double** %36
%38 = getelementptr inbounds double, double* %37, i64 0
%39 = load double, double* %38
%40 = load double**, double*** %4
%41 = getelementptr inbounds double*, double** %40, i64 0
%42 = load double*, double** %41
%43 = getelementptr inbounds double, double* %42, i64 0
%44 = load double, double* %43
%45 = fcmp une double %39, %44
br i1 %45, label %46, label %47
46: ; preds = %34
br label %47
47: ; preds = %46, %34
%48 = phi i1 [ false, %34 ], [ false, %46 ]
%49 = zext i1 %48 to i64
%50 = select i1 %48, i32 1, i32 0
br label %69
51: ; preds = %0
%52 = load double**, double*** %4
%53 = getelementptr inbounds double*, double** %52, i64 0
%54 = load double*, double** %53
%55 = getelementptr inbounds double, double* %54, i64 0
%56 = load double, double* %55
%57 = fcmp olt double %56, -9.000000e+33
br i1 %57, label %65, label %58
58: ; preds = %51
%59 = load double**, double*** %4
%60 = getelementptr inbounds double*, double** %59, i64 0
%61 = load double*, double** %60
%62 = getelementptr inbounds double, double* %61, i64 0
%63 = load double, double* %62
%64 = fcmp olt double -9.000000e+33, %63
br label %65
65: ; preds = %58, %51
%66 = phi i1 [ true, %51 ], [ %64, %58 ]
%67 = xor i1 %66, true
%68 = zext i1 %67 to i32
br label %69
69: ; preds = %65, %47
%70 = phi i32 [ %50, %47 ], [ %68, %65 ]
%71 = call i32 @assert(i32 %70)
%72 = getelementptr inbounds [6 x double], [6 x double]* %1, i64 0, i64 0
%73 = call i32 @writeNcFile(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), double* %72, i32 6)
%74 = call i32 @submitCdoCommand(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%75 = load double**, double*** %4
%76 = load i32, i32* %2
%77 = load i32, i32* %3
%78 = call i32 @readNcFile(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double** %75, i32 %76, i32 %77)
%79 = load double**, double*** %4
%80 = getelementptr inbounds double*, double** %79, i64 0
%81 = load double*, double** %80
%82 = getelementptr inbounds double, double* %81, i64 0
%83 = load double, double* %82
%84 = load double**, double*** %4
%85 = getelementptr inbounds double*, double** %84, i64 0
%86 = load double*, double** %85
%87 = getelementptr inbounds double, double* %86, i64 0
%88 = load double, double* %87
%89 = fcmp une double %83, %88
br i1 %89, label %90, label %107
90: ; preds = %69
%91 = load double**, double*** %4
%92 = getelementptr inbounds double*, double** %91, i64 0
%93 = load double*, double** %92
%94 = getelementptr inbounds double, double* %93, i64 0
%95 = load double, double* %94
%96 = load double**, double*** %4
%97 = getelementptr inbounds double*, double** %96, i64 0
%98 = load double*, double** %97
%99 = getelementptr inbounds double, double* %98, i64 0
%100 = load double, double* %99
%101 = fcmp une double %95, %100
br i1 %101, label %102, label %103
102: ; preds = %90
br label %103
103: ; preds = %102, %90
%104 = phi i1 [ false, %90 ], [ false, %102 ]
%105 = zext i1 %104 to i64
%106 = select i1 %104, i32 1, i32 0
br label %125
107: ; preds = %69
%108 = load double**, double*** %4
%109 = getelementptr inbounds double*, double** %108, i64 0
%110 = load double*, double** %109
%111 = getelementptr inbounds double, double* %110, i64 0
%112 = load double, double* %111
%113 = fcmp olt double %112, 2.000000e+00
br i1 %113, label %121, label %114
114: ; preds = %107
%115 = load double**, double*** %4
%116 = getelementptr inbounds double*, double** %115, i64 0
%117 = load double*, double** %116
%118 = getelementptr inbounds double, double* %117, i64 0
%119 = load double, double* %118
%120 = fcmp olt double 2.000000e+00, %119
br label %121
121: ; preds = %114, %107
%122 = phi i1 [ true, %107 ], [ %120, %114 ]
%123 = xor i1 %122, true
%124 = zext i1 %123 to i32
br label %125
125: ; preds = %121, %103
%126 = phi i32 [ %106, %103 ], [ %124, %121 ]
%127 = call i32 @assert(i32 %126)
%128 = call i32 @submitCdoCommand(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0))
%129 = load double**, double*** %4
%130 = load i32, i32* %2
%131 = load i32, i32* %3
%132 = call i32 @readNcFile(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double** %129, i32 %130, i32 %131)
%133 = load double**, double*** %4
%134 = getelementptr inbounds double*, double** %133, i64 0
%135 = load double*, double** %134
%136 = getelementptr inbounds double, double* %135, i64 0
%137 = load double, double* %136
%138 = load double**, double*** %4
%139 = getelementptr inbounds double*, double** %138, i64 0
%140 = load double*, double** %139
%141 = getelementptr inbounds double, double* %140, i64 0
%142 = load double, double* %141
%143 = fcmp une double %137, %142
br i1 %143, label %144, label %161
144: ; preds = %125
%145 = load double**, double*** %4
%146 = getelementptr inbounds double*, double** %145, i64 0
%147 = load double*, double** %146
%148 = getelementptr inbounds double, double* %147, i64 0
%149 = load double, double* %148
%150 = load double**, double*** %4
%151 = getelementptr inbounds double*, double** %150, i64 0
%152 = load double*, double** %151
%153 = getelementptr inbounds double, double* %152, i64 0
%154 = load double, double* %153
%155 = fcmp une double %149, %154
br i1 %155, label %156, label %157
156: ; preds = %144
br label %157
157: ; preds = %156, %144
%158 = phi i1 [ false, %144 ], [ false, %156 ]
%159 = zext i1 %158 to i64
%160 = select i1 %158, i32 1, i32 0
br label %179
161: ; preds = %125
%162 = load double**, double*** %4
%163 = getelementptr inbounds double*, double** %162, i64 0
%164 = load double*, double** %163
%165 = getelementptr inbounds double, double* %164, i64 0
%166 = load double, double* %165
%167 = fcmp olt double %166, 4.000000e+00
br i1 %167, label %175, label %168
168: ; preds = %161
%169 = load double**, double*** %4
%170 = getelementptr inbounds double*, double** %169, i64 0
%171 = load double*, double** %170
%172 = getelementptr inbounds double, double* %171, i64 0
%173 = load double, double* %172
%174 = fcmp olt double 4.000000e+00, %173
br label %175
175: ; preds = %168, %161
%176 = phi i1 [ true, %161 ], [ %174, %168 ]
%177 = xor i1 %176, true
%178 = zext i1 %177 to i32
br label %179
179: ; preds = %175, %157
%180 = phi i32 [ %160, %157 ], [ %178, %175 ]
%181 = call i32 @assert(i32 %180)
%182 = call i32 @submitCdoCommand(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0))
%183 = load double**, double*** %4
%184 = load i32, i32* %2
%185 = load i32, i32* %3
%186 = call i32 @readNcFile(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double** %183, i32 %184, i32 %185)
%187 = load double**, double*** %4
%188 = getelementptr inbounds double*, double** %187, i64 0
%189 = load double*, double** %188
%190 = getelementptr inbounds double, double* %189, i64 0
%191 = load double, double* %190
%192 = load double**, double*** %4
%193 = getelementptr inbounds double*, double** %192, i64 0
%194 = load double*, double** %193
%195 = getelementptr inbounds double, double* %194, i64 0
%196 = load double, double* %195
%197 = fcmp une double %191, %196
br i1 %197, label %198, label %215
198: ; preds = %179
%199 = load double**, double*** %4
%200 = getelementptr inbounds double*, double** %199, i64 0
%201 = load double*, double** %200
%202 = getelementptr inbounds double, double* %201, i64 0
%203 = load double, double* %202
%204 = load double**, double*** %4
%205 = getelementptr inbounds double*, double** %204, i64 0
%206 = load double*, double** %205
%207 = getelementptr inbounds double, double* %206, i64 0
%208 = load double, double* %207
%209 = fcmp une double %203, %208
br i1 %209, label %210, label %211
210: ; preds = %198
br label %211
211: ; preds = %210, %198
%212 = phi i1 [ false, %198 ], [ false, %210 ]
%213 = zext i1 %212 to i64
%214 = select i1 %212, i32 1, i32 0
br label %233
215: ; preds = %179
%216 = load double**, double*** %4
%217 = getelementptr inbounds double*, double** %216, i64 0
%218 = load double*, double** %217
%219 = getelementptr inbounds double, double* %218, i64 0
%220 = load double, double* %219
%221 = fcmp olt double %220, 0.000000e+00
br i1 %221, label %229, label %222
222: ; preds = %215
%223 = load double**, double*** %4
%224 = getelementptr inbounds double*, double** %223, i64 0
%225 = load double*, double** %224
%226 = getelementptr inbounds double, double* %225, i64 0
%227 = load double, double* %226
%228 = fcmp olt double 0.000000e+00, %227
br label %229
229: ; preds = %222, %215
%230 = phi i1 [ true, %215 ], [ %228, %222 ]
%231 = xor i1 %230, true
%232 = zext i1 %231 to i32
br label %233
233: ; preds = %229, %211
%234 = phi i32 [ %214, %211 ], [ %232, %229 ]
%235 = call i32 @assert(i32 %234)
%236 = load double**, double*** %4
%237 = call i32 @destroyVars(double** %236)
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"in.nc\00"
@.str.1 = [20 x i8] c"eca_su in.nc out.nc\00"
@.str.2 = [7 x i8] c"out.nc\00"
@.str.3 = [25 x i8] c"eca_su,20.0 in.nc out.nc\00"
@.str.4 = [25 x i8] c"eca_su,30.0 in.nc out.nc\00"
define void @testEcaSu() {
%1 = alloca [6 x double]
%2 = bitcast [6 x double]* %1 to i8*
%3 = getelementptr inbounds [6 x double], [6 x double]* %1, i64 0, i64 0
%4 = bitcast [6 x double]* %1 to <2 x double>*
store <2 x double> <double -9.000000e+33, double -9.000000e+33>, <2 x double>* %4
%5 = getelementptr inbounds [6 x double], [6 x double]* %1, i64 0, i64 2
%6 = bitcast double* %5 to <2 x double>*
store <2 x double> <double 2.991500e+02, double 2.971500e+02>, <2 x double>* %6
%7 = getelementptr inbounds [6 x double], [6 x double]* %1, i64 0, i64 4
%8 = bitcast double* %7 to <2 x double>*
store <2 x double> <double 2.991500e+02, double 2.971500e+02>, <2 x double>* %8
%9 = tail call double** @createVars(i32 1, i32 1)
%10 = call i32 @writeNcFile(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), double* %3, i32 2)
%11 = call i32 @submitCdoCommand(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%12 = call i32 @readNcFile(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double** %9, i32 1, i32 1)
%13 = load double*, double** %9
%14 = load double, double* %13
%15 = fcmp ord double %14, 0.000000e+00
%16 = fcmp ueq double %14, -9.000000e+33
%17 = and i1 %15, %16
%18 = zext i1 %17 to i32
%19 = call i32 @assert(i32 %18)
%20 = call i32 @writeNcFile(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), double* %3, i32 6)
%21 = call i32 @submitCdoCommand(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%22 = call i32 @readNcFile(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double** %9, i32 1, i32 1)
%23 = load double*, double** %9
%24 = load double, double* %23
%25 = fcmp ord double %24, 0.000000e+00
%26 = fcmp ueq double %24, 2.000000e+00
%27 = and i1 %25, %26
%28 = zext i1 %27 to i32
%29 = call i32 @assert(i32 %28)
%30 = call i32 @submitCdoCommand(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0))
%31 = call i32 @readNcFile(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double** %9, i32 1, i32 1)
%32 = load double*, double** %9
%33 = load double, double* %32
%34 = fcmp ord double %33, 0.000000e+00
%35 = fcmp ueq double %33, 4.000000e+00
%36 = and i1 %34, %35
%37 = zext i1 %36 to i32
%38 = call i32 @assert(i32 %37)
%39 = call i32 @submitCdoCommand(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0))
%40 = call i32 @readNcFile(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double** %9, i32 1, i32 1)
%41 = load double*, double** %9
%42 = load double, double* %41
%43 = fcmp oeq double %42, 0.000000e+00
%44 = zext i1 %43 to i32
%45 = call i32 @assert(i32 %44)
%46 = call i32 @destroyVars(double** %9)
ret void
}