#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
unsigned int atoi(char *);
int /*<<< orphan*/ errorHandler(char *);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ printf(char *);
scalar_t__ strcmp(char *, char *);
int main(int argc, char *argv[]) {
  FILE *fIn, *fOut, *fTmp;
  char cBuffer[32];
  unsigned int count, i, j, k, N, nrows, ncols;
  double data;
  if (argc == 2 && strcmp(argv[1], "-h") == 0) {
    printf("\n\nSYNTAX\ngplotForm filename N nrows ncols.\n");
    printf("\nDESCRIPTION\n");
    printf("Inserts a blank row every nrows for all ncols in filename");
    printf(" for all N rows in\nthe file. Input file is not altered in ");
    printf("any way. Output file is by default\ncalled 'temp.gnu'.\n\n");
    printf("EXAMPLE\n");
    printf("gplotForm potential.dat 2400 20 5\n\n");
    printf("Prepares a potential data file with a total of 2400 lines for");
    printf(" gnuplot by\ninserting a blank space every 20 rows.\n\n");
    exit(0);
  } else if (argc != 5) {
    printf("\n\nError: Incorrect syntax.\n\nTry: gplotForm filename N nrows "
           "ncols.\n");
    errorHandler("or type 'gplotForm -h' for help.\n");
  }
  fIn = fopen(argv[1], "r");
  N = atoi(argv[2]);
  nrows = atoi(argv[3]);
  ncols = atoi(argv[4]);
  for (i = 0; i < ncols; i++)
    fscanf(fIn, "%s", cBuffer);
  fOut = fopen("temp.gnu", "w");
  count = 0;
  for (j = 0; j < N; j++) {
    for (k = 0; k < ncols; k++) {
      fscanf(fIn, "%le", &data);
      fprintf(fOut, "%le\t", data);
    }
    fprintf(fOut, "\n");
    count++;
    if (count == nrows) {
      count = 0;
      fprintf(fOut, "\n");
    }
  }
  fclose(fOut);
  fclose(fIn);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jne    1244 <main+0xb4>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe3e(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1244 <main+0xb4>
lea    0xe2b(%rip),%rdi
call   1040 <printf@plt>
lea    0xe4b(%rip),%rdi
call   1040 <printf@plt>
lea    0xe4d(%rip),%rdi
call   1040 <printf@plt>
lea    0xe7b(%rip),%rdi
call   1040 <printf@plt>
lea    0xeaa(%rip),%rdi
call   1040 <printf@plt>
lea    0xed6(%rip),%rdi
call   1040 <printf@plt>
lea    0xed3(%rip),%rdi
call   1040 <printf@plt>
lea    0xeeb(%rip),%rdi
call   1040 <printf@plt>
lea    0xf1d(%rip),%rdi
call   1040 <printf@plt>
xor    %edi,%edi
call   10a0 <exit@plt>
cmpl   $0x5,-0x8(%rbp)
je     1266 <main+0xd6>
lea    0xf35(%rip),%rdi
call   1040 <printf@plt>
lea    0xf6d(%rip),%rdi
call   10b0 <errorHandler@plt>
jmp    126b <main+0xdb>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xed9(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1090 <atoi@plt>
mov    %eax,-0x64(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   1090 <atoi@plt>
mov    %eax,-0x68(%rbp)
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rdi
call   1090 <atoi@plt>
mov    %eax,-0x6c(%rbp)
movl   $0x0,-0x58(%rbp)
mov    -0x58(%rbp),%eax
cmp    -0x6c(%rbp),%eax
jae    12ea <main+0x15a>
mov    -0x18(%rbp),%rdi
lea    -0x50(%rbp),%rdx
lea    0xf1b(%rip),%rsi
mov    $0x0,%al
call   1050 <fscanf@plt>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    12ba <main+0x12a>
lea    0xf02(%rip),%rdi
lea    0xf04(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x20(%rbp)
movl   $0x0,-0x54(%rbp)
movl   $0x0,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
cmp    -0x64(%rbp),%eax
jae    13bc <main+0x22c>
movl   $0x0,-0x60(%rbp)
mov    -0x60(%rbp),%eax
cmp    -0x6c(%rbp),%eax
jae    1369 <main+0x1d9>
mov    -0x18(%rbp),%rdi
lea    0xec5(%rip),%rsi
lea    -0x78(%rbp),%rdx
mov    $0x0,%al
call   1050 <fscanf@plt>
mov    -0x20(%rbp),%rdi
movsd  -0x78(%rbp),%xmm0
lea    0xeae(%rip),%rsi
mov    $0x1,%al
call   1070 <fprintf@plt>
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
jmp    1322 <main+0x192>
mov    -0x20(%rbp),%rdi
lea    0xd74(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
mov    -0x54(%rbp),%eax
cmp    -0x68(%rbp),%eax
jne    13a9 <main+0x219>
movl   $0x0,-0x54(%rbp)
mov    -0x20(%rbp),%rdi
lea    0xd46(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
jmp    13ae <main+0x21e>
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    130f <main+0x17f>
mov    -0x20(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x18(%rbp),%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rsi,%rbp
cmp    $0x5,%edi
je     11fc <main+0x4c>
cmp    $0x2,%edi
jne    11e4 <main+0x34>
mov    0x8(%rbp),%rdi
lea    0xe2a(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     1348 <main+0x198>
lea    0xf04(%rip),%rdi
call   1030 <puts@plt>
lea    0xebf(%rip),%rdi
call   10d0 <errorHandler@plt>
mov    0x8(%rbp),%rdi
lea    0xead(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,%rbx
mov    0x10(%rbp),%rdi
call   10b0 <atoi@plt>
mov    %eax,0x8(%rsp)
mov    0x18(%rbp),%rdi
call   10b0 <atoi@plt>
mov    %eax,0xc(%rsp)
mov    0x20(%rbp),%rdi
call   10b0 <atoi@plt>
mov    %eax,0x4(%rsp)
test   %eax,%eax
je     1265 <main+0xb5>
lea    0xe97(%rip),%r14
lea    0x20(%rsp),%r15
mov    0x4(%rsp),%ebp
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1060 <fscanf@plt>
add    $0xffffffff,%ebp
jne    1250 <main+0xa0>
lea    0xe6f(%rip),%rdi
lea    0xe71(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,%rbp
cmpl   $0x0,0x8(%rsp)
je     1327 <main+0x177>
lea    0xe59(%rip),%r13
lea    0x18(%rsp),%r14
lea    0xe51(%rip),%r15
xor    %ecx,%ecx
xor    %eax,%eax
jmp    12ad <main+0xfd>
nop
mov    0x14(%rsp),%eax
add    $0x1,%eax
cmp    0x8(%rsp),%eax
je     1327 <main+0x177>
mov    %ecx,0x10(%rsp)
mov    %eax,0x14(%rsp)
cmpl   $0x0,0x4(%rsp)
je     12f9 <main+0x149>
mov    0x4(%rsp),%r12d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1060 <fscanf@plt>
movsd  0x18(%rsp),%xmm0
mov    %rbp,%rdi
mov    %r15,%rsi
mov    $0x1,%al
call   1090 <fprintf@plt>
add    $0xffffffff,%r12d
jne    12d0 <main+0x120>
mov    $0xa,%edi
mov    %rbp,%rsi
call   1070 <fputc@plt>
mov    0x10(%rsp),%ecx
add    $0x1,%ecx
cmp    0xc(%rsp),%ecx
jne    12a0 <main+0xf0>
mov    $0xa,%edi
mov    %rbp,%rsi
call   1070 <fputc@plt>
xor    %ecx,%ecx
jmp    12a0 <main+0xf0>
mov    %rbp,%rdi
call   1040 <fclose@plt>
mov    %rbx,%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xde3(%rip),%rdi
call   1030 <puts@plt>
lea    0xe02(%rip),%rdi
call   1030 <puts@plt>
lea    0xc9c(%rip),%rdi
call   1050 <printf@plt>
lea    0xcca(%rip),%rdi
call   1050 <printf@plt>
lea    0xdeb(%rip),%rdi
call   1030 <puts@plt>
lea    0xe16(%rip),%rdi
call   1030 <puts@plt>
lea    0xe12(%rip),%rdi
call   1030 <puts@plt>
lea    0xcd5(%rip),%rdi
call   1050 <printf@plt>
lea    0xe1d(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   10c0 <exit@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"-h\00"
@.str.1 = [44 x i8] c"\0A\0ASYNTAX\0AgplotForm filename N nrows ncols.\0A\00"
@.str.2 = [14 x i8] c"\0ADESCRIPTION\0A\00"
@.str.3 = [58 x i8] c"Inserts a blank row every nrows for all ncols in filename\00"
@.str.4 = [59 x i8] c" for all N rows in\0Athe file. Input file is not altered in \00"
@.str.5 = [56 x i8] c"any way. Output file is by default\0Acalled 'temp.gnu'.\0A\0A\00"
@.str.6 = [9 x i8] c"EXAMPLE\0A\00"
@.str.7 = [36 x i8] c"gplotForm potential.dat 2400 20 5\0A\0A\00"
@.str.8 = [62 x i8] c"Prepares a potential data file with a total of 2400 lines for\00"
@.str.9 = [53 x i8] c" gnuplot by\0Ainserting a blank space every 20 rows.\0A\0A\00"
@.str.10 = [68 x i8] c"\0A\0AError: Incorrect syntax.\0A\0ATry: gplotForm filename N nrows ncols.\0A\00"
@.str.11 = [34 x i8] c"or type 'gplotForm -h' for help.\0A\00"
@.str.12 = [2 x i8] c"r\00"
@.str.13 = [3 x i8] c"%s\00"
@.str.14 = [9 x i8] c"temp.gnu\00"
@.str.15 = [2 x i8] c"w\00"
@.str.16 = [4 x i8] c"%le\00"
@.str.17 = [5 x i8] c"%le\09\00"
@.str.18 = [2 x i8] c"\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 [32 x i8]
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca double
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%18 = load i32, i32* %4
%19 = icmp eq i32 %18, 2
br i1 %19, label %20, label %37
20: ; preds = %2
%21 = load i8**, i8*** %5
%22 = getelementptr inbounds i8*, i8** %21, i64 1
%23 = load i8*, i8** %22
%24 = call i64 @strcmp(i8* %23, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %37
26: ; preds = %20
%27 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.1, i64 0, i64 0))
%28 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%29 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.3, i64 0, i64 0))
%30 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.4, i64 0, i64 0))
%31 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.5, i64 0, i64 0))
%32 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
%33 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.7, i64 0, i64 0))
%34 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.8, i64 0, i64 0))
%35 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.9, i64 0, i64 0))
%36 = call i32 @exit(i32 0)
unreachable
37: ; preds = %20, %2
%38 = load i32, i32* %4
%39 = icmp ne i32 %38, 5
br i1 %39, label %40, label %43
40: ; preds = %37
%41 = call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.10, i64 0, i64 0))
%42 = call i32 @errorHandler(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.11, i64 0, i64 0))
br label %43
43: ; preds = %40, %37
br label %44
44: ; preds = %43
%45 = load i8**, i8*** %5
%46 = getelementptr inbounds i8*, i8** %45, i64 1
%47 = load i8*, i8** %46
%48 = call i32* @fopen(i8* %47, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
store i32* %48, i32** %6
%49 = load i8**, i8*** %5
%50 = getelementptr inbounds i8*, i8** %49, i64 2
%51 = load i8*, i8** %50
%52 = call i32 @atoi(i8* %51)
store i32 %52, i32* %14
%53 = load i8**, i8*** %5
%54 = getelementptr inbounds i8*, i8** %53, i64 3
%55 = load i8*, i8** %54
%56 = call i32 @atoi(i8* %55)
store i32 %56, i32* %15
%57 = load i8**, i8*** %5
%58 = getelementptr inbounds i8*, i8** %57, i64 4
%59 = load i8*, i8** %58
%60 = call i32 @atoi(i8* %59)
store i32 %60, i32* %16
store i32 0, i32* %11
br label %61
61: ; preds = %69, %44
%62 = load i32, i32* %11
%63 = load i32, i32* %16
%64 = icmp ult i32 %62, %63
br i1 %64, label %65, label %72
65: ; preds = %61
%66 = load i32*, i32** %6
%67 = getelementptr inbounds [32 x i8], [32 x i8]* %9, i64 0, i64 0
%68 = call i32 (i32*, i8*, ...) @fscanf(i32* %66, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0), i8* %67)
br label %69
69: ; preds = %65
%70 = load i32, i32* %11
%71 = add i32 %70, 1
store i32 %71, i32* %11
br label %61
72: ; preds = %61
%73 = call i32* @fopen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
store i32* %73, i32** %7
store i32 0, i32* %10
store i32 0, i32* %12
br label %74
74: ; preds = %104, %72
%75 = load i32, i32* %12
%76 = load i32, i32* %14
%77 = icmp ult i32 %75, %76
br i1 %77, label %78, label %107
78: ; preds = %74
store i32 0, i32* %13
br label %79
79: ; preds = %89, %78
%80 = load i32, i32* %13
%81 = load i32, i32* %16
%82 = icmp ult i32 %80, %81
br i1 %82, label %83, label %92
83: ; preds = %79
%84 = load i32*, i32** %6
%85 = call i32 (i32*, i8*, ...) @fscanf(i32* %84, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0), double* %17)
%86 = load i32*, i32** %7
%87 = load double, double* %17
%88 = call i32 (i32*, i8*, ...) @fprintf(i32* %86, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0), double %87)
br label %89
89: ; preds = %83
%90 = load i32, i32* %13
%91 = add i32 %90, 1
store i32 %91, i32* %13
br label %79
92: ; preds = %79
%93 = load i32*, i32** %7
%94 = call i32 (i32*, i8*, ...) @fprintf(i32* %93, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.18, i64 0, i64 0))
%95 = load i32, i32* %10
%96 = add i32 %95, 1
store i32 %96, i32* %10
%97 = load i32, i32* %10
%98 = load i32, i32* %15
%99 = icmp eq i32 %97, %98
br i1 %99, label %100, label %103
100: ; preds = %92
store i32 0, i32* %10
%101 = load i32*, i32** %7
%102 = call i32 (i32*, i8*, ...) @fprintf(i32* %101, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.18, i64 0, i64 0))
br label %103
103: ; preds = %100, %92
br label %104
104: ; preds = %103
%105 = load i32, i32* %12
%106 = add i32 %105, 1
store i32 %106, i32* %12
br label %74
107: ; preds = %74
%108 = load i32*, i32** %7
%109 = call i32 @fclose(i32* %108)
%110 = load i32*, i32** %6
%111 = call i32 @fclose(i32* %110)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"-h\00"
@.str.3 = [58 x i8] c"Inserts a blank row every nrows for all ncols in filename\00"
@.str.4 = [59 x i8] c" for all N rows in\0Athe file. Input file is not altered in \00"
@.str.8 = [62 x i8] c"Prepares a potential data file with a total of 2400 lines for\00"
@.str.11 = [34 x i8] c"or type 'gplotForm -h' for help.\0A\00"
@.str.12 = [2 x i8] c"r\00"
@.str.13 = [3 x i8] c"%s\00"
@.str.14 = [9 x i8] c"temp.gnu\00"
@.str.15 = [2 x i8] c"w\00"
@.str.16 = [4 x i8] c"%le\00"
@.str.17 = [5 x i8] c"%le\09\00"
@str = [67 x i8] c"\0A\0AError: Incorrect syntax.\0A\0ATry: gplotForm filename N nrows ncols.\00"
@str.19 = [43 x i8] c"\0A\0ASYNTAX\0AgplotForm filename N nrows ncols.\00"
@str.20 = [13 x i8] c"\0ADESCRIPTION\00"
@str.21 = [55 x i8] c"any way. Output file is by default\0Acalled 'temp.gnu'.\0A\00"
@str.22 = [8 x i8] c"EXAMPLE\00"
@str.23 = [35 x i8] c"gplotForm potential.dat 2400 20 5\0A\00"
@str.24 = [52 x i8] c" gnuplot by\0Ainserting a blank space every 20 rows.\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [32 x i8]
%4 = alloca double
%5 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%6 = bitcast double* %4 to i8*
switch i32 %0, label %23 [
i32 2, label %7
i32 5, label %26
]
7: ; preds = %2
%8 = getelementptr inbounds i8*, i8** %1, i64 1
%9 = load i8*, i8** %8
%10 = tail call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %23
12: ; preds = %7
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.19, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.20, i64 0, i64 0))
%15 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @.str.3, i64 0, i64 0))
%16 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.4, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.21, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.22, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.23, i64 0, i64 0))
%20 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @.str.8, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.24, i64 0, i64 0))
%22 = tail call i32 @exit(i32 0)
unreachable
23: ; preds = %7, %2
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str, i64 0, i64 0))
%25 = tail call i32 @errorHandler(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.11, i64 0, i64 0))
br label %26
26: ; preds = %2, %23
%27 = getelementptr inbounds i8*, i8** %1, i64 1
%28 = load i8*, i8** %27
%29 = tail call i32* @fopen(i8* %28, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
%30 = getelementptr inbounds i8*, i8** %1, i64 2
%31 = load i8*, i8** %30
%32 = tail call i32 @atoi(i8* %31)
%33 = getelementptr inbounds i8*, i8** %1, i64 3
%34 = load i8*, i8** %33
%35 = tail call i32 @atoi(i8* %34)
%36 = getelementptr inbounds i8*, i8** %1, i64 4
%37 = load i8*, i8** %36
%38 = tail call i32 @atoi(i8* %37)
%39 = icmp eq i32 %38, 0
br i1 %39, label %45, label %40
40: ; preds = %26, %40
%41 = phi i32 [ %43, %40 ], [ 0, %26 ]
%42 = call i32 (i32*, i8*, ...) @fscanf(i32* %29, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0), i8* %5)
%43 = add nuw i32 %41, 1
%44 = icmp eq i32 %43, %38
br i1 %44, label %45, label %40
45: ; preds = %40, %26
%46 = call i32* @fopen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
%47 = icmp eq i32 %32, 0
br i1 %47, label %68, label %48
48: ; preds = %45, %64
%49 = phi i32 [ %65, %64 ], [ 0, %45 ]
%50 = phi i32 [ %66, %64 ], [ 0, %45 ]
br i1 %39, label %58, label %51
51: ; preds = %48, %51
%52 = phi i32 [ %56, %51 ], [ 0, %48 ]
%53 = call i32 (i32*, i8*, ...) @fscanf(i32* %29, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0), double* %4)
%54 = load double, double* %4
%55 = call i32 (i32*, i8*, ...) @fprintf(i32* %46, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0), double %54)
%56 = add nuw i32 %52, 1
%57 = icmp eq i32 %56, %38
br i1 %57, label %58, label %51
58: ; preds = %51, %48
%59 = call i32 @fputc(i32 10, i32* %46)
%60 = add i32 %49, 1
%61 = icmp eq i32 %60, %35
br i1 %61, label %62, label %64
62: ; preds = %58
%63 = call i32 @fputc(i32 10, i32* %46)
br label %64
64: ; preds = %58, %62
%65 = phi i32 [ 0, %62 ], [ %60, %58 ]
%66 = add nuw i32 %50, 1
%67 = icmp eq i32 %66, %32
br i1 %67, label %68, label %48
68: ; preds = %64, %45
%69 = call i32 @fclose(i32* %46)
%70 = call i32 @fclose(i32* %29)
ret i32 0
}