#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 */
scalar_t__ EOF;
int /*<<< orphan*/ F_OK;
int access(char *, int /*<<< orphan*/);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ memset(int *, int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ sscanf(char *, char *, int *);
int /*<<< orphan*/ strcat(char *, char *);
char *strtok(char *, char *);
int proceed(char *in_file, int vector_len) {
  int data[vector_len];
  memset(data, 0, vector_len);
  int buffer_len = 80;
  char line[buffer_len];
  FILE *in, *out;
  char out_file[80] = "";
  strcat(out_file, in_file);
  strcat(out_file, ".out");
  if (access(in_file, F_OK) != -1) {
    printf("%s file in exists\n", in_file);
    in = fopen(in_file, "rt");
  } else {
    printf("%s file in not exists\n", in_file);
    return 1;
  }
  printf("out file: %s\n", out_file);
  out = fopen(out_file, "wt");
  int i = 0;
  char *pch;
  while (fgets(line, buffer_len, in) != NULL) {
    pch = strtok(line, " ");
    while (pch != NULL) {
      if (i > vector_len) {
        printf("File size mismatch with array size\n");
        return 1;
      }
      if (sscanf(pch, "%i", &data[i++]) == EOF) {
        printf("Error with parse error\n");
        return 1;
      }
      pch = strtok(NULL, " ");
    }
  }
  fclose(in);
  for (i = 0; i < vector_len; i++) {
    printf("%d ", data[i]);
  }
  printf("\n");
  int j;
  for (i = 0; i < vector_len; i++) {
    for (j = 0; j < vector_len; j++) {
      fprintf(out, "%d ", data[i] * data[j]);
    }
    fprintf(out, "\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<proceed>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x20(%rbp)
lea    0xf(,%rax,4),%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rdi
sub    %rcx,%rdi
mov    %rdi,-0xc8(%rbp)
mov    %rdi,%rsp
mov    %rax,-0x28(%rbp)
mov    -0x14(%rbp),%edx
xor    %esi,%esi
call   1050 <memset@plt>
movl   $0x50,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0xc0(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x38(%rbp)
lea    -0xa0(%rbp),%rdi
xor    %esi,%esi
mov    $0x50,%edx
call   1050 <memset@plt>
lea    -0xa0(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   10c0 <strcat@plt>
lea    -0xa0(%rbp),%rdi
lea    0xdc0(%rip),%rsi
call   10c0 <strcat@plt>
mov    -0x10(%rbp),%rdi
mov    0x2d80(%rip),%rax
mov    (%rax),%esi
call   1090 <access@plt>
cmp    $0xffffffff,%eax
je     128b <proceed+0xeb>
mov    -0x10(%rbp),%rsi
lea    0xd9a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
lea    0xd9b(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x40(%rbp)
jmp    12b3 <proceed+0x113>
mov    -0x10(%rbp),%rsi
lea    0xd85(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x1,-0x4(%rbp)
movl   $0x1,-0xa4(%rbp)
jmp    14f8 <proceed+0x358>
lea    -0xa0(%rbp),%rsi
lea    0xd71(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0xa0(%rbp),%rdi
lea    0xd6a(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x48(%rbp)
movl   $0x0,-0xa8(%rbp)
mov    -0xc0(%rbp),%rdi
mov    -0x2c(%rbp),%esi
mov    -0x40(%rbp),%rdx
call   1060 <fgets@plt>
cmp    $0x0,%rax
je     13ea <proceed+0x24a>
mov    -0xc0(%rbp),%rdi
lea    0xd70(%rip),%rsi
call   10b0 <strtok@plt>
mov    %rax,-0xb0(%rbp)
cmpq   $0x0,-0xb0(%rbp)
je     13e5 <proceed+0x245>
mov    -0xa8(%rbp),%eax
cmp    -0x14(%rbp),%eax
jle    1361 <proceed+0x1c1>
lea    0xcff(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x1,-0x4(%rbp)
movl   $0x1,-0xa4(%rbp)
jmp    14f8 <proceed+0x358>
mov    -0xc8(%rbp),%rdx
mov    -0xb0(%rbp),%rdi
mov    -0xa8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0xa8(%rbp)
cltq
shl    $0x2,%rax
add    %rax,%rdx
lea    0xcd7(%rip),%rsi
call   1080 <sscanf@plt>
mov    0x2c4c(%rip),%rcx
cmp    (%rcx),%rax
jne    13c9 <proceed+0x229>
lea    0xcbe(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x1,-0x4(%rbp)
movl   $0x1,-0xa4(%rbp)
jmp    14f8 <proceed+0x358>
xor    %eax,%eax
mov    %eax,%edi
lea    0xcb0(%rip),%rsi
call   10b0 <strtok@plt>
mov    %rax,-0xb0(%rbp)
jmp    1320 <proceed+0x180>
jmp    12e9 <proceed+0x149>
mov    -0x40(%rbp),%rdi
call   1030 <fclose@plt>
movl   $0x0,-0xa8(%rbp)
mov    -0xa8(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    143f <proceed+0x29f>
mov    -0xc8(%rbp),%rax
movslq -0xa8(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xc5e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0xa8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa8(%rbp)
jmp    13fd <proceed+0x25d>
lea    0xc1f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0xa8(%rbp)
mov    -0xa8(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    14e7 <proceed+0x347>
movl   $0x0,-0xb4(%rbp)
mov    -0xb4(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    14c1 <proceed+0x321>
mov    -0xc8(%rbp),%rax
mov    -0x48(%rbp),%rdi
movslq -0xa8(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
movslq -0xb4(%rbp),%rcx
imul   (%rax,%rcx,4),%edx
lea    0xbdc(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0xb4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xb4(%rbp)
jmp    1470 <proceed+0x2d0>
mov    -0x48(%rbp),%rdi
lea    0xb99(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0xa8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa8(%rbp)
jmp    1457 <proceed+0x2b7>
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0xa4(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<proceed>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xc8,%rsp
mov    %esi,%edx
mov    %rdi,%r15
mov    %esi,%r13d
mov    %rsp,%r12
lea    0xf(,%r13,4),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r12
mov    %r12,%rsp
mov    %r12,%rdi
xor    %esi,%esi
mov    %edx,-0x2c(%rbp)
call   1070 <memset@plt>
xorps  %xmm0,%xmm0
movaps %xmm0,-0x60(%rbp)
movaps %xmm0,-0x70(%rbp)
movaps %xmm0,-0x80(%rbp)
movaps %xmm0,-0x90(%rbp)
movaps %xmm0,-0xa0(%rbp)
lea    -0xa0(%rbp),%rbx
mov    %rbx,%rdi
mov    %r15,%rsi
call   10f0 <strcat@plt>
lea    0xdbc(%rip),%rsi
mov    %rbx,%rdi
call   10f0 <strcat@plt>
mov    0x2d7d(%rip),%rax
mov    (%rax),%esi
mov    %r15,%rdi
call   10c0 <access@plt>
cmp    $0xffffffff,%eax
je     1388 <proceed+0x1b8>
lea    0xd98(%rip),%rdi
xor    %ebx,%ebx
mov    %r15,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xd98(%rip),%rsi
mov    %r15,%rdi
call   10d0 <fopen@plt>
mov    %rax,%r15
lea    0xda0(%rip),%rdi
lea    -0xa0(%rbp),%r14
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xd96(%rip),%rsi
mov    %r14,%rdi
call   10d0 <fopen@plt>
mov    %rax,-0x40(%rbp)
lea    -0xf0(%rbp),%rdi
mov    $0x50,%esi
mov    %r15,-0x38(%rbp)
mov    %r15,%rdx
call   1090 <fgets@plt>
test   %rax,%rax
mov    -0x2c(%rbp),%r14d
je     13a3 <proceed+0x1d3>
movslq %r14d,%rax
mov    %rax,-0x48(%rbp)
lea    0xd5f(%rip),%rsi
lea    -0xf0(%rbp),%rdi
jmp    1327 <proceed+0x157>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    -0x38(%rbp),%rdx
lea    -0xf0(%rbp),%r14
mov    %r14,%rdi
mov    $0x50,%esi
call   1090 <fgets@plt>
test   %rax,%rax
mov    %r14,%rdi
mov    %r15,%rsi
mov    -0x2c(%rbp),%r14d
je     13a3 <proceed+0x1d3>
mov    %rsi,%r15
call   10e0 <strtok@plt>
test   %rax,%rax
je     1300 <proceed+0x130>
movslq %ebx,%rbx
lea    (%r12,%rbx,4),%r14
nopl   0x0(%rax,%rax,1)
cmp    -0x48(%rbp),%rbx
jg     144e <proceed+0x27e>
mov    %rax,%rdi
lea    0xcef(%rip),%rsi
mov    %r14,%rdx
call   10b0 <sscanf@plt>
mov    0x2c85(%rip),%rcx
cmp    (%rcx),%rax
je     1457 <proceed+0x287>
add    $0x1,%rbx
xor    %edi,%edi
mov    %r15,%rsi
call   10e0 <strtok@plt>
add    $0x4,%r14
test   %rax,%rax
jne    1340 <proceed+0x170>
jmp    1300 <proceed+0x130>
lea    0xc8c(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x1,%eax
jmp    1476 <proceed+0x2a6>
mov    -0x38(%rbp),%rdi
call   1050 <fclose@plt>
test   %r14d,%r14d
jle    146a <proceed+0x29a>
mov    %r14d,%r15d
lea    0xc87(%rip),%r14
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    (%r12,%rbx,4),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
add    $0x1,%rbx
cmp    %rbx,%r13
jne    13d0 <proceed+0x200>
mov    $0xa,%edi
call   1030 <putchar@plt>
test   %r15d,%r15d
jle    1474 <proceed+0x2a4>
lea    0xc49(%rip),%r14
xor    %ebx,%ebx
nop
mov    %r13,%r15
xor    %r13d,%r13d
mov    -0x40(%rbp),%rax
nopw   0x0(%rax,%rax,1)
mov    (%r12,%r13,4),%edx
imul   (%r12,%rbx,4),%edx
mov    %rax,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   10a0 <fprintf@plt>
mov    -0x40(%rbp),%rax
add    $0x1,%r13
cmp    %r13,%r15
jne    1410 <proceed+0x240>
mov    $0xa,%edi
mov    %rax,%rsi
call   1080 <fputc@plt>
add    $0x1,%rbx
cmp    %r15,%rbx
mov    %r15,%r13
jne    1400 <proceed+0x230>
jmp    1474 <proceed+0x2a4>
lea    0xc0c(%rip),%rdi
jmp    145e <proceed+0x28e>
lea    0xbec(%rip),%rdi
call   1040 <puts@plt>
mov    $0x1,%eax
jmp    1476 <proceed+0x2a6>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [5 x i8] c".out\00"
@F_OK = global i32 0
@.str.1 = [19 x i8] c"%s file in exists\0A\00"
@.str.2 = [3 x i8] c"rt\00"
@.str.3 = [23 x i8] c"%s file in not exists\0A\00"
@.str.4 = [14 x i8] c"out file: %s\0A\00"
@.str.5 = [3 x i8] c"wt\00"
@.str.6 = [2 x i8] c" \00"
@.str.7 = [36 x i8] c"File size mismatch with array size\0A\00"
@.str.8 = [3 x i8] c"%i\00"
@EOF = global i64 0
@.str.9 = [24 x i8] c"Error with parse error\0A\00"
@.str.10 = [4 x i8] c"%d \00"
@.str.11 = [2 x i8] c"\0A\00"
define i32 @proceed(i8* %0, i32 %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i64
%8 = alloca i32
%9 = alloca i64
%10 = alloca i32*
%11 = alloca i32*
%12 = alloca [80 x i8]
%13 = alloca i32
%14 = alloca i32
%15 = alloca i8*
%16 = alloca i32
store i8* %0, i8** %4
store i32 %1, i32* %5
%17 = load i32, i32* %5
%18 = zext i32 %17 to i64
%19 = call i8* @llvm.stacksave()
store i8* %19, i8** %6
%20 = alloca i32, i64 %18
store i64 %18, i64* %7
%21 = load i32, i32* %5
%22 = call i32 @memset(i32* %20, i32 0, i32 %21)
store i32 80, i32* %8
%23 = load i32, i32* %8
%24 = zext i32 %23 to i64
%25 = alloca i8, i64 %24
store i64 %24, i64* %9
%26 = bitcast [80 x i8]* %12 to i8*
%27 = getelementptr inbounds [80 x i8], [80 x i8]* %12, i64 0, i64 0
%28 = load i8*, i8** %4
%29 = call i32 @strcat(i8* %27, i8* %28)
%30 = getelementptr inbounds [80 x i8], [80 x i8]* %12, i64 0, i64 0
%31 = call i32 @strcat(i8* %30, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%32 = load i8*, i8** %4
%33 = load i32, i32* @F_OK
%34 = call i32 @access(i8* %32, i32 %33)
%35 = icmp ne i32 %34, -1
br i1 %35, label %36, label %41
36: ; preds = %2
%37 = load i8*, i8** %4
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* %37)
%39 = load i8*, i8** %4
%40 = call i32* @fopen(i8* %39, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
store i32* %40, i32** %10
br label %44
41: ; preds = %2
%42 = load i8*, i8** %4
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i8* %42)
store i32 1, i32* %3
store i32 1, i32* %13
br label %128
44: ; preds = %36
%45 = getelementptr inbounds [80 x i8], [80 x i8]* %12, i64 0, i64 0
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* %45)
%47 = getelementptr inbounds [80 x i8], [80 x i8]* %12, i64 0, i64 0
%48 = call i32* @fopen(i8* %47, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
store i32* %48, i32** %11
store i32 0, i32* %14
br label %49
49: ; preds = %78, %44
%50 = load i32, i32* %8
%51 = load i32*, i32** %10
%52 = call i32* @fgets(i8* %25, i32 %50, i32* %51)
%53 = icmp ne i32* %52, null
br i1 %53, label %54, label %79
54: ; preds = %49
%55 = call i8* @strtok(i8* %25, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
store i8* %55, i8** %15
br label %56
56: ; preds = %76, %54
%57 = load i8*, i8** %15
%58 = icmp ne i8* %57, null
br i1 %58, label %59, label %78
59: ; preds = %56
%60 = load i32, i32* %14
%61 = load i32, i32* %5
%62 = icmp sgt i32 %60, %61
br i1 %62, label %63, label %65
63: ; preds = %59
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.7, i64 0, i64 0))
store i32 1, i32* %3
store i32 1, i32* %13
br label %128
65: ; preds = %59
%66 = load i8*, i8** %15
%67 = load i32, i32* %14
%68 = add nsw i32 %67, 1
store i32 %68, i32* %14
%69 = sext i32 %67 to i64
%70 = getelementptr inbounds i32, i32* %20, i64 %69
%71 = call i64 @sscanf(i8* %66, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32* %70)
%72 = load i64, i64* @EOF
%73 = icmp eq i64 %71, %72
br i1 %73, label %74, label %76
74: ; preds = %65
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0))
store i32 1, i32* %3
store i32 1, i32* %13
br label %128
76: ; preds = %65
%77 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
store i8* %77, i8** %15
br label %56
78: ; preds = %56
br label %49
79: ; preds = %49
%80 = load i32*, i32** %10
%81 = call i32 @fclose(i32* %80)
store i32 0, i32* %14
br label %82
82: ; preds = %92, %79
%83 = load i32, i32* %14
%84 = load i32, i32* %5
%85 = icmp slt i32 %83, %84
br i1 %85, label %86, label %95
86: ; preds = %82
%87 = load i32, i32* %14
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i32, i32* %20, i64 %88
%90 = load i32, i32* %89
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i32 %90)
br label %92
92: ; preds = %86
%93 = load i32, i32* %14
%94 = add nsw i32 %93, 1
store i32 %94, i32* %14
br label %82
95: ; preds = %82
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
store i32 0, i32* %14
br label %97
97: ; preds = %124, %95
%98 = load i32, i32* %14
%99 = load i32, i32* %5
%100 = icmp slt i32 %98, %99
br i1 %100, label %101, label %127
101: ; preds = %97
store i32 0, i32* %16
br label %102
102: ; preds = %118, %101
%103 = load i32, i32* %16
%104 = load i32, i32* %5
%105 = icmp slt i32 %103, %104
br i1 %105, label %106, label %121
106: ; preds = %102
%107 = load i32*, i32** %11
%108 = load i32, i32* %14
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds i32, i32* %20, i64 %109
%111 = load i32, i32* %110
%112 = load i32, i32* %16
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds i32, i32* %20, i64 %113
%115 = load i32, i32* %114
%116 = mul nsw i32 %111, %115
%117 = call i32 (i32*, i8*, ...) @fprintf(i32* %107, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i32 %116)
br label %118
118: ; preds = %106
%119 = load i32, i32* %16
%120 = add nsw i32 %119, 1
store i32 %120, i32* %16
br label %102
121: ; preds = %102
%122 = load i32*, i32** %11
%123 = call i32 (i32*, i8*, ...) @fprintf(i32* %122, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
br label %124
124: ; preds = %121
%125 = load i32, i32* %14
%126 = add nsw i32 %125, 1
store i32 %126, i32* %14
br label %97
127: ; preds = %97
store i32 0, i32* %3
store i32 1, i32* %13
br label %128
128: ; preds = %127, %74, %63, %41
%129 = load i8*, i8** %6
%130 = load i32, i32* %3
ret i32 %130
}

LLVM IR (-O2):
@.str = [5 x i8] c".out\00"
@F_OK = global i32 0
@.str.1 = [19 x i8] c"%s file in exists\0A\00"
@.str.2 = [3 x i8] c"rt\00"
@.str.3 = [23 x i8] c"%s file in not exists\0A\00"
@.str.4 = [14 x i8] c"out file: %s\0A\00"
@.str.5 = [3 x i8] c"wt\00"
@.str.6 = [2 x i8] c" \00"
@.str.8 = [3 x i8] c"%i\00"
@EOF = global i64 0
@.str.10 = [4 x i8] c"%d \00"
@str = [23 x i8] c"Error with parse error\00"
@str.12 = [35 x i8] c"File size mismatch with array size\00"
define i32 @proceed(i8* %0, i32 %1) {
%3 = alloca [80 x i8]
%4 = zext i32 %1 to i64
%5 = alloca i32, i64 %4
%6 = call i32 @memset(i32* %5, i32 0, i32 %1)
%7 = alloca [80 x i8]
%8 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%9 = getelementptr inbounds [80 x i8], [80 x i8]* %3, i64 0, i64 0
%10 = call i32 @strcat(i8* %9, i8* %0)
%11 = call i32 @strcat(i8* %9, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%12 = load i32, i32* @F_OK
%13 = call i32 @access(i8* %0, i32 %12)
%14 = icmp eq i32 %13, -1
br i1 %14, label %24, label %15
15: ; preds = %2
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%17 = call i32* @fopen(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i8* %9)
%19 = call i32* @fopen(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%20 = call i32* @fgets(i8* %8, i32 80, i32* %17)
%21 = icmp eq i32* %20, null
br i1 %21, label %55, label %22
22: ; preds = %15
%23 = sext i32 %1 to i64
br label %32
24: ; preds = %2
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i8* %0)
br label %85
26: ; preds = %51
%27 = trunc i64 %52 to i32
br label %28
28: ; preds = %26, %32
%29 = phi i32 [ %33, %32 ], [ %27, %26 ]
%30 = call i32* @fgets(i8* %8, i32 80, i32* %17)
%31 = icmp eq i32* %30, null
br i1 %31, label %55, label %32
32: ; preds = %22, %28
%33 = phi i32 [ %29, %28 ], [ 0, %22 ]
%34 = call i8* @strtok(i8* %8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%35 = icmp eq i8* %34, null
br i1 %35, label %28, label %36
36: ; preds = %32
%37 = sext i32 %33 to i64
br label %38
38: ; preds = %36, %51
%39 = phi i64 [ %37, %36 ], [ %52, %51 ]
%40 = phi i8* [ %34, %36 ], [ %53, %51 ]
%41 = icmp sgt i64 %39, %23
br i1 %41, label %42, label %44
42: ; preds = %38
%43 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.12, i64 0, i64 0))
br label %85
44: ; preds = %38
%45 = getelementptr inbounds i32, i32* %5, i64 %39
%46 = call i64 @sscanf(i8* %40, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32* %45)
%47 = load i64, i64* @EOF
%48 = icmp eq i64 %46, %47
br i1 %48, label %49, label %51
49: ; preds = %44
%50 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0))
br label %85
51: ; preds = %44
%52 = add i64 %39, 1
%53 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%54 = icmp eq i8* %53, null
br i1 %54, label %26, label %38
55: ; preds = %28, %15
%56 = call i32 @fclose(i32* %17)
%57 = icmp sgt i32 %1, 0
br i1 %57, label %60, label %58
58: ; preds = %55
%59 = call i32 @putchar(i32 10)
br label %85
60: ; preds = %55, %60
%61 = phi i64 [ %65, %60 ], [ 0, %55 ]
%62 = getelementptr inbounds i32, i32* %5, i64 %61
%63 = load i32, i32* %62
%64 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i32 %63)
%65 = add nuw nsw i64 %61, 1
%66 = icmp eq i64 %65, %4
br i1 %66, label %67, label %60
67: ; preds = %60
%68 = call i32 @putchar(i32 10)
br i1 %57, label %69, label %85
69: ; preds = %67, %81
%70 = phi i64 [ %83, %81 ], [ 0, %67 ]
%71 = getelementptr inbounds i32, i32* %5, i64 %70
br label %72
72: ; preds = %69, %72
%73 = phi i64 [ 0, %69 ], [ %79, %72 ]
%74 = load i32, i32* %71
%75 = getelementptr inbounds i32, i32* %5, i64 %73
%76 = load i32, i32* %75
%77 = mul nsw i32 %76, %74
%78 = call i32 (i32*, i8*, ...) @fprintf(i32* %19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i32 %77)
%79 = add nuw nsw i64 %73, 1
%80 = icmp eq i64 %79, %4
br i1 %80, label %81, label %72
81: ; preds = %72
%82 = call i32 @fputc(i32 10, i32* %19)
%83 = add nuw nsw i64 %70, 1
%84 = icmp eq i64 %83, %4
br i1 %84, label %85, label %69
85: ; preds = %81, %58, %67, %42, %49, %24
%86 = phi i32 [ 1, %24 ], [ 1, %42 ], [ 1, %49 ], [ 0, %67 ], [ 0, %58 ], [ 0, %81 ]
ret i32 %86
}