#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 nc_close(int);
int nc_create(char *, int, int *);
int nc_def_dim(int, char *, long, int *);
int nc_def_var(int, char *, int, int, int *, int *);
int nc_put_vars_double(int, int, size_t *, size_t *, int /*<<< orphan*/ *,
                       double *);
int /*<<< orphan*/ printf(char *, int);
int main(int argc, char *argv[]) {
  int ret;
  int ncid;
  int dim1id, dim2id;
  int var1id, var2id;
  size_t start = 0;
  size_t count = 5;
  double vals[] = {1.0, 2.0, 3.0, 4.0, 5.0};
  if ((ret = nc_create("tst_put_vars_two_unlim_dim.nc", 0x1000 | 0x0000,
                       &ncid))) {
    printf("nc_create(...): error code = %d\n", ret);
    return -1;
  }
  if ((ret = nc_def_dim(ncid, "dim1", 0L, &dim1id))) {
    printf("nc_def_dim(...\"dim1\"...): error code = %d\n", ret);
    nc_close(ncid);
    return -1;
  }
  if ((ret = nc_def_dim(ncid, "dim2", 0L, &dim2id))) {
    printf("nc_def_dim(...\"dim1\"...): error code = %d\n", ret);
    nc_close(ncid);
    return -1;
  }
  if ((ret = nc_def_var(ncid, "var1", 6, 1, &dim1id, &var1id))) {
    printf("nc_def_var(...\"var1\"...): error code = %d\n", ret);
    nc_close(ncid);
    return -1;
  }
  if ((ret = nc_def_var(ncid, "var2", 6, 1, &dim2id, &var2id))) {
    printf("nc_def_var(...\"var2\"...): error code = %d\n", ret);
    nc_close(ncid);
    return -1;
  }
  if ((ret =
           nc_put_vars_double(ncid, var1id, &start, &count, NULL, &vals[0]))) {
    printf("nc_put_var_double(...var1id...): error code = %d\n", ret);
    nc_close(ncid);
    return -1;
  }
  if ((ret =
           nc_put_vars_double(ncid, var2id, &start, &count, NULL, &vals[0]))) {
    printf("nc_put_var_double(...var2id...): error code = %d\n", ret);
    nc_close(ncid);
    return -1;
  }
  if ((ret = nc_close(ncid))) {
    printf("nc_close(...): error code = %d\n", ret);
    return -1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x30(%rbp)
movq   $0x5,-0x38(%rbp)
lea    -0x60(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1050 <memset@plt>
movsd  0xe72(%rip),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0xe5d(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xe48(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xe33(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xe1e(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
lea    0xe3a(%rip),%rdi
mov    $0x1000,%esi
lea    -0x18(%rbp),%rdx
call   1060 <nc_create@plt>
mov    %eax,-0x14(%rbp)
cmp    $0x0,%eax
je     1223 <main+0xb3>
mov    -0x14(%rbp),%esi
lea    0xe34(%rip),%rdi
call   1040 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    141b <main+0x2ab>
mov    -0x18(%rbp),%edi
lea    0xe3a(%rip),%rsi
xor    %eax,%eax
mov    %eax,%edx
lea    -0x1c(%rbp),%rcx
call   1080 <nc_def_dim@plt>
mov    %eax,-0x14(%rbp)
cmp    $0x0,%eax
je     1269 <main+0xf9>
mov    -0x14(%rbp),%esi
lea    0xe1c(%rip),%rdi
call   1040 <printf@plt>
mov    -0x18(%rbp),%edi
call   1030 <nc_close@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    141b <main+0x2ab>
mov    -0x18(%rbp),%edi
lea    0xe24(%rip),%rsi
xor    %eax,%eax
mov    %eax,%edx
lea    -0x20(%rbp),%rcx
call   1080 <nc_def_dim@plt>
mov    %eax,-0x14(%rbp)
cmp    $0x0,%eax
je     12af <main+0x13f>
mov    -0x14(%rbp),%esi
lea    0xdd6(%rip),%rdi
call   1040 <printf@plt>
mov    -0x18(%rbp),%edi
call   1030 <nc_close@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    141b <main+0x2ab>
mov    -0x18(%rbp),%edi
lea    0xde3(%rip),%rsi
mov    $0x6,%edx
mov    $0x1,%ecx
lea    -0x1c(%rbp),%r8
lea    -0x24(%rbp),%r9
call   1070 <nc_def_var@plt>
mov    %eax,-0x14(%rbp)
cmp    $0x0,%eax
je     12ff <main+0x18f>
mov    -0x14(%rbp),%esi
lea    0xdbb(%rip),%rdi
call   1040 <printf@plt>
mov    -0x18(%rbp),%edi
call   1030 <nc_close@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    141b <main+0x2ab>
mov    -0x18(%rbp),%edi
lea    0xdc3(%rip),%rsi
mov    $0x6,%edx
mov    $0x1,%ecx
lea    -0x20(%rbp),%r8
lea    -0x28(%rbp),%r9
call   1070 <nc_def_var@plt>
mov    %eax,-0x14(%rbp)
cmp    $0x0,%eax
je     134f <main+0x1df>
mov    -0x14(%rbp),%esi
lea    0xd9b(%rip),%rdi
call   1040 <printf@plt>
mov    -0x18(%rbp),%edi
call   1030 <nc_close@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    141b <main+0x2ab>
mov    -0x18(%rbp),%edi
mov    -0x24(%rbp),%esi
lea    -0x60(%rbp),%r9
lea    -0x30(%rbp),%rdx
lea    -0x38(%rbp),%rcx
xor    %eax,%eax
mov    %eax,%r8d
call   1090 <nc_put_vars_double@plt>
mov    %eax,-0x14(%rbp)
cmp    $0x0,%eax
je     139a <main+0x22a>
mov    -0x14(%rbp),%esi
lea    0xd7b(%rip),%rdi
call   1040 <printf@plt>
mov    -0x18(%rbp),%edi
call   1030 <nc_close@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    141b <main+0x2ab>
mov    -0x18(%rbp),%edi
mov    -0x28(%rbp),%esi
lea    -0x60(%rbp),%r9
lea    -0x30(%rbp),%rdx
lea    -0x38(%rbp),%rcx
xor    %eax,%eax
mov    %eax,%r8d
call   1090 <nc_put_vars_double@plt>
mov    %eax,-0x14(%rbp)
cmp    $0x0,%eax
je     13e5 <main+0x275>
mov    -0x14(%rbp),%esi
lea    0xd62(%rip),%rdi
call   1040 <printf@plt>
mov    -0x18(%rbp),%edi
call   1030 <nc_close@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    141b <main+0x2ab>
mov    -0x18(%rbp),%edi
call   1030 <nc_close@plt>
mov    %eax,-0x14(%rbp)
cmp    $0x0,%eax
je     1414 <main+0x2a4>
mov    -0x14(%rbp),%esi
lea    0xd5d(%rip),%rdi
call   1040 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    141b <main+0x2ab>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x60,%rsp
movq   $0x0,0x28(%rsp)
movq   $0x5,0x20(%rsp)
movaps 0xe82(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xe86(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movabs $0x4014000000000000,%rax
mov    %rax,0x50(%rsp)
lea    0xe7b(%rip),%rdi
lea    0xc(%rsp),%rdx
mov    $0x1000,%esi
call   1050 <nc_create@plt>
test   %eax,%eax
je     11c8 <main+0x68>
lea    0xe7f(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
jmp    1215 <main+0xb5>
mov    0xc(%rsp),%edi
lea    0xe8c(%rip),%rsi
lea    0x1c(%rsp),%rcx
xor    %edx,%edx
call   1070 <nc_def_dim@plt>
test   %eax,%eax
jne    11fe <main+0x9e>
mov    0xc(%rsp),%edi
lea    0xea1(%rip),%rsi
lea    0x18(%rsp),%rcx
xor    %edx,%edx
call   1070 <nc_def_dim@plt>
test   %eax,%eax
je     1222 <main+0xc2>
lea    0xe5f(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
mov    0xc(%rsp),%edi
call   1030 <nc_close@plt>
mov    $0xffffffff,%ebx
mov    %ebx,%eax
add    $0x60,%rsp
pop    %rbx
ret
mov    0xc(%rsp),%edi
lea    0xe67(%rip),%rsi
lea    0x1c(%rsp),%r8
lea    0x14(%rsp),%r9
mov    $0x6,%edx
mov    $0x1,%ecx
call   1060 <nc_def_var@plt>
test   %eax,%eax
je     1253 <main+0xf3>
lea    0xe48(%rip),%rdi
jmp    1205 <main+0xa5>
mov    0xc(%rsp),%edi
lea    0xe66(%rip),%rsi
lea    0x18(%rsp),%r8
lea    0x10(%rsp),%r9
mov    $0x6,%edx
mov    $0x1,%ecx
call   1060 <nc_def_var@plt>
test   %eax,%eax
je     1284 <main+0x124>
lea    0xe47(%rip),%rdi
jmp    1205 <main+0xa5>
mov    0xc(%rsp),%edi
mov    0x14(%rsp),%esi
lea    0x28(%rsp),%rdx
lea    0x20(%rsp),%rcx
lea    0x30(%rsp),%r9
xor    %r8d,%r8d
call   1080 <nc_put_vars_double@plt>
test   %eax,%eax
je     12b3 <main+0x153>
lea    0xe46(%rip),%rdi
jmp    1205 <main+0xa5>
mov    0xc(%rsp),%edi
mov    0x10(%rsp),%esi
xor    %ebx,%ebx
lea    0x28(%rsp),%rdx
lea    0x20(%rsp),%rcx
lea    0x30(%rsp),%r9
xor    %r8d,%r8d
call   1080 <nc_put_vars_double@plt>
test   %eax,%eax
je     12e4 <main+0x184>
lea    0xe47(%rip),%rdi
jmp    1205 <main+0xa5>
mov    0xc(%rsp),%edi
call   1030 <nc_close@plt>
test   %eax,%eax
je     121a <main+0xba>
lea    0xe5c(%rip),%rdi
jmp    11bf <main+0x5f>

LLVM IR (-O0):
@.str = [30 x i8] c"tst_put_vars_two_unlim_dim.nc\00"
@.str.1 = [33 x i8] c"nc_create(...): error code = %d\0A\00"
@.str.2 = [5 x i8] c"dim1\00"
@.str.3 = [43 x i8] c"nc_def_dim(...\22dim1\22...): error code = %d\0A\00"
@.str.4 = [5 x i8] c"dim2\00"
@.str.5 = [5 x i8] c"var1\00"
@.str.6 = [43 x i8] c"nc_def_var(...\22var1\22...): error code = %d\0A\00"
@.str.7 = [5 x i8] c"var2\00"
@.str.8 = [43 x i8] c"nc_def_var(...\22var2\22...): error code = %d\0A\00"
@.str.9 = [50 x i8] c"nc_put_var_double(...var1id...): error code = %d\0A\00"
@.str.10 = [50 x i8] c"nc_put_var_double(...var2id...): error code = %d\0A\00"
@.str.11 = [32 x i8] c"nc_close(...): error code = %d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i64
%13 = alloca i64
%14 = alloca [5 x double]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i64 0, i64* %12
store i64 5, i64* %13
%15 = bitcast [5 x double]* %14 to i8*
%16 = bitcast i8* %15 to [5 x double]*
%17 = getelementptr inbounds [5 x double], [5 x double]* %16, i32 0, i32 0
store double 1.000000e+00, double* %17
%18 = getelementptr inbounds [5 x double], [5 x double]* %16, i32 0, i32 1
store double 2.000000e+00, double* %18
%19 = getelementptr inbounds [5 x double], [5 x double]* %16, i32 0, i32 2
store double 3.000000e+00, double* %19
%20 = getelementptr inbounds [5 x double], [5 x double]* %16, i32 0, i32 3
store double 4.000000e+00, double* %20
%21 = getelementptr inbounds [5 x double], [5 x double]* %16, i32 0, i32 4
store double 5.000000e+00, double* %21
%22 = call i32 @nc_create(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i32 4096, i32* %7)
store i32 %22, i32* %6
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %2
%25 = load i32, i32* %6
%26 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i32 %25)
store i32 -1, i32* %3
br label %93
27: ; preds = %2
%28 = load i32, i32* %7
%29 = call i32 @nc_def_dim(i32 %28, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i64 0, i32* %8)
store i32 %29, i32* %6
%30 = icmp ne i32 %29, 0
br i1 %30, label %31, label %36
31: ; preds = %27
%32 = load i32, i32* %6
%33 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.3, i64 0, i64 0), i32 %32)
%34 = load i32, i32* %7
%35 = call i32 @nc_close(i32 %34)
store i32 -1, i32* %3
br label %93
36: ; preds = %27
%37 = load i32, i32* %7
%38 = call i32 @nc_def_dim(i32 %37, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i64 0, i32* %9)
store i32 %38, i32* %6
%39 = icmp ne i32 %38, 0
br i1 %39, label %40, label %45
40: ; preds = %36
%41 = load i32, i32* %6
%42 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.3, i64 0, i64 0), i32 %41)
%43 = load i32, i32* %7
%44 = call i32 @nc_close(i32 %43)
store i32 -1, i32* %3
br label %93
45: ; preds = %36
%46 = load i32, i32* %7
%47 = call i32 @nc_def_var(i32 %46, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 6, i32 1, i32* %8, i32* %10)
store i32 %47, i32* %6
%48 = icmp ne i32 %47, 0
br i1 %48, label %49, label %54
49: ; preds = %45
%50 = load i32, i32* %6
%51 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.6, i64 0, i64 0), i32 %50)
%52 = load i32, i32* %7
%53 = call i32 @nc_close(i32 %52)
store i32 -1, i32* %3
br label %93
54: ; preds = %45
%55 = load i32, i32* %7
%56 = call i32 @nc_def_var(i32 %55, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 6, i32 1, i32* %9, i32* %11)
store i32 %56, i32* %6
%57 = icmp ne i32 %56, 0
br i1 %57, label %58, label %63
58: ; preds = %54
%59 = load i32, i32* %6
%60 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.8, i64 0, i64 0), i32 %59)
%61 = load i32, i32* %7
%62 = call i32 @nc_close(i32 %61)
store i32 -1, i32* %3
br label %93
63: ; preds = %54
%64 = load i32, i32* %7
%65 = load i32, i32* %10
%66 = getelementptr inbounds [5 x double], [5 x double]* %14, i64 0, i64 0
%67 = call i32 @nc_put_vars_double(i32 %64, i32 %65, i64* %12, i64* %13, i32* null, double* %66)
store i32 %67, i32* %6
%68 = icmp ne i32 %67, 0
br i1 %68, label %69, label %74
69: ; preds = %63
%70 = load i32, i32* %6
%71 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.9, i64 0, i64 0), i32 %70)
%72 = load i32, i32* %7
%73 = call i32 @nc_close(i32 %72)
store i32 -1, i32* %3
br label %93
74: ; preds = %63
%75 = load i32, i32* %7
%76 = load i32, i32* %11
%77 = getelementptr inbounds [5 x double], [5 x double]* %14, i64 0, i64 0
%78 = call i32 @nc_put_vars_double(i32 %75, i32 %76, i64* %12, i64* %13, i32* null, double* %77)
store i32 %78, i32* %6
%79 = icmp ne i32 %78, 0
br i1 %79, label %80, label %85
80: ; preds = %74
%81 = load i32, i32* %6
%82 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.10, i64 0, i64 0), i32 %81)
%83 = load i32, i32* %7
%84 = call i32 @nc_close(i32 %83)
store i32 -1, i32* %3
br label %93
85: ; preds = %74
%86 = load i32, i32* %7
%87 = call i32 @nc_close(i32 %86)
store i32 %87, i32* %6
%88 = icmp ne i32 %87, 0
br i1 %88, label %89, label %92
89: ; preds = %85
%90 = load i32, i32* %6
%91 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0), i32 %90)
store i32 -1, i32* %3
br label %93
92: ; preds = %85
store i32 0, i32* %3
br label %93
93: ; preds = %92, %89, %80, %69, %58, %49, %40, %31, %24
%94 = load i32, i32* %3
ret i32 %94
}

LLVM IR (-O2):
@.str = [30 x i8] c"tst_put_vars_two_unlim_dim.nc\00"
@.str.1 = [33 x i8] c"nc_create(...): error code = %d\0A\00"
@.str.2 = [5 x i8] c"dim1\00"
@.str.3 = [43 x i8] c"nc_def_dim(...\22dim1\22...): error code = %d\0A\00"
@.str.4 = [5 x i8] c"dim2\00"
@.str.5 = [5 x i8] c"var1\00"
@.str.6 = [43 x i8] c"nc_def_var(...\22var1\22...): error code = %d\0A\00"
@.str.7 = [5 x i8] c"var2\00"
@.str.8 = [43 x i8] c"nc_def_var(...\22var2\22...): error code = %d\0A\00"
@.str.9 = [50 x i8] c"nc_put_var_double(...var1id...): error code = %d\0A\00"
@.str.10 = [50 x i8] c"nc_put_var_double(...var2id...): error code = %d\0A\00"
@.str.11 = [32 x i8] c"nc_close(...): error code = %d\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i64
%9 = alloca i64
%10 = alloca [5 x double]
%11 = bitcast i32* %3 to i8*
%12 = bitcast i32* %4 to i8*
%13 = bitcast i32* %5 to i8*
%14 = bitcast i32* %6 to i8*
%15 = bitcast i32* %7 to i8*
%16 = bitcast i64* %8 to i8*
store i64 0, i64* %8
%17 = bitcast i64* %9 to i8*
store i64 5, i64* %9
%18 = bitcast [5 x double]* %10 to i8*
%19 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 0
%20 = bitcast [5 x double]* %10 to <2 x double>*
store <2 x double> <double 1.000000e+00, double 2.000000e+00>, <2 x double>* %20
%21 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 2
%22 = bitcast double* %21 to <2 x double>*
store <2 x double> <double 3.000000e+00, double 4.000000e+00>, <2 x double>* %22
%23 = getelementptr inbounds [5 x double], [5 x double]* %10, i64 0, i64 4
store double 5.000000e+00, double* %23
%24 = call i32 @nc_create(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i32 4096, i32* %3)
%25 = icmp eq i32 %24, 0
br i1 %25, label %28, label %26
26: ; preds = %2
%27 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i32 %24)
br label %84
28: ; preds = %2
%29 = load i32, i32* %3
%30 = call i32 @nc_def_dim(i32 %29, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i64 0, i32* %4)
%31 = icmp eq i32 %30, 0
br i1 %31, label %36, label %32
32: ; preds = %28
%33 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.3, i64 0, i64 0), i32 %30)
%34 = load i32, i32* %3
%35 = call i32 @nc_close(i32 %34)
br label %84
36: ; preds = %28
%37 = load i32, i32* %3
%38 = call i32 @nc_def_dim(i32 %37, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i64 0, i32* %5)
%39 = icmp eq i32 %38, 0
br i1 %39, label %44, label %40
40: ; preds = %36
%41 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.3, i64 0, i64 0), i32 %38)
%42 = load i32, i32* %3
%43 = call i32 @nc_close(i32 %42)
br label %84
44: ; preds = %36
%45 = load i32, i32* %3
%46 = call i32 @nc_def_var(i32 %45, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 6, i32 1, i32* %4, i32* %6)
%47 = icmp eq i32 %46, 0
br i1 %47, label %52, label %48
48: ; preds = %44
%49 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.6, i64 0, i64 0), i32 %46)
%50 = load i32, i32* %3
%51 = call i32 @nc_close(i32 %50)
br label %84
52: ; preds = %44
%53 = load i32, i32* %3
%54 = call i32 @nc_def_var(i32 %53, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 6, i32 1, i32* %5, i32* %7)
%55 = icmp eq i32 %54, 0
br i1 %55, label %60, label %56
56: ; preds = %52
%57 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.8, i64 0, i64 0), i32 %54)
%58 = load i32, i32* %3
%59 = call i32 @nc_close(i32 %58)
br label %84
60: ; preds = %52
%61 = load i32, i32* %3
%62 = load i32, i32* %6
%63 = call i32 @nc_put_vars_double(i32 %61, i32 %62, i64* %8, i64* %9, i32* null, double* %19)
%64 = icmp eq i32 %63, 0
br i1 %64, label %69, label %65
65: ; preds = %60
%66 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.9, i64 0, i64 0), i32 %63)
%67 = load i32, i32* %3
%68 = call i32 @nc_close(i32 %67)
br label %84
69: ; preds = %60
%70 = load i32, i32* %3
%71 = load i32, i32* %7
%72 = call i32 @nc_put_vars_double(i32 %70, i32 %71, i64* %8, i64* %9, i32* null, double* %19)
%73 = icmp eq i32 %72, 0
br i1 %73, label %78, label %74
74: ; preds = %69
%75 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.10, i64 0, i64 0), i32 %72)
%76 = load i32, i32* %3
%77 = call i32 @nc_close(i32 %76)
br label %84
78: ; preds = %69
%79 = load i32, i32* %3
%80 = call i32 @nc_close(i32 %79)
%81 = icmp eq i32 %80, 0
br i1 %81, label %84, label %82
82: ; preds = %78
%83 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0), i32 %80)
br label %84
84: ; preds = %78, %82, %74, %65, %56, %48, %40, %32, %26
%85 = phi i32 [ -1, %26 ], [ -1, %32 ], [ -1, %40 ], [ -1, %48 ], [ -1, %56 ], [ -1, %65 ], [ -1, %74 ], [ -1, %82 ], [ 0, %78 ]
ret i32 %85
}