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

/* Variables and functions */
int atoi(char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ fread(float *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ fwrite(float *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ sprintf(char *, char *, char *);
int /*<<< orphan*/ stderr;
main(int argc, char *argv[]) {
  int tamanno = 512;
  FILE *fp1, *fp2;
  char nombre1[256], nombre2[256];
  int i, j, k;
  float valor = 0.0;
  float paso;
  if (argc < 2) {
    fprintf(stderr, "Usar: creamatriz fichero [tamanno]\n");
    exit(-1);
  }
  sprintf(nombre1, "%s1.flt", argv[1]);
  sprintf(nombre2, "%s2.flt", argv[1]);
  if (argc == 3)
    tamanno = atoi(argv[2]);
  paso = (1.0 - 0.0) / (2.0 * (float)tamanno * (float)tamanno);
  printf("Se crearán los ficheros %s y %s con tamaño %dx%d\n", nombre1, nombre2,
         tamanno, tamanno);
  fp1 = fopen(nombre1, "w");
  if (fp1 == NULL) {
    perror("Fichero 1 para escribir");
    exit(-1);
  }
  fp2 = fopen(nombre2, "w");
  if (fp2 == NULL) {
    perror("Fichero 2 para escribir");
    exit(-1);
  }
  for (i = 0; i < tamanno; i++)
    for (j = 0; j < tamanno; j++) {
      if (j == i)
        valor = 1.0;
      else
        valor = 0.0;
      fwrite(&valor, sizeof(valor), 1, fp1);
    }
  valor = 0;
  for (i = 0; i < tamanno; i++)
    for (j = 0; j < tamanno; j++) {
      fwrite(&valor, sizeof(valor), 1, fp2);
      valor = valor + paso;
    }
  fclose(fp1);
  fclose(fp2);
  printf("Matrices creadas.");
  if ('N' != 'S') {
    printf("\n");
    exit(0);
  }
  printf("Son estas:\n");
  fp1 = fopen(nombre1, "r");
  if (fp1 == NULL) {
    perror("Fichero 1 para leer");
    exit(-1);
  }
  for (i = 0; i < tamanno; i++) {
    for (j = 0; j < tamanno; j++) {
      fread(&valor, sizeof(valor), 1, fp1);
      printf("%.4f ", valor);
    }
    printf("\n");
  }
  printf("\n\n*\n\n");
  fclose(fp1);
  fp2 = fopen(nombre2, "r");
  if (fp2 == NULL) {
    perror("Fichero 2 para leer");
    exit(-1);
  }
  for (i = 0; i < tamanno; i++) {
    for (j = 0; j < tamanno; j++) {
      fread(&valor, sizeof(valor), 1, fp2);
      printf("%.4f ", valor);
    }
    printf("\n");
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x250,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x200,-0x14(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x240(%rbp)
ff
cmpl   $0x2,-0x8(%rbp)
jge    11e4 <main+0x54>
mov    0x2e14(%rip),%rax
mov    (%rax),%edi
lea    0xe3f(%rip),%rsi
call   1050 <fprintf@plt>
mov    $0xffffffff,%edi
call   10a0 <exit@plt>
lea    -0x130(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xe3e(%rip),%rsi
call   1090 <sprintf@plt>
lea    -0x230(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xe2b(%rip),%rsi
call   1090 <sprintf@plt>
cmpl   $0x3,-0x8(%rbp)
jne    1234 <main+0xa4>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1080 <atoi@plt>
mov    %eax,-0x14(%rbp)
cvtsi2ssl -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xdc3(%rip),%xmm1
mulsd  %xmm0,%xmm1
cvtsi2ssl -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
mulsd  %xmm0,%xmm1
movsd  0xda2(%rip),%xmm0
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x244(%rbp)
ff
lea    -0x130(%rbp),%rsi
lea    -0x230(%rbp),%rdx
mov    -0x14(%rbp),%ecx
mov    -0x14(%rbp),%r8d
lea    0xdbe(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x130(%rbp),%rdi
lea    0xddd(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    12c9 <main+0x139>
lea    0xdc4(%rip),%rdi
call   1070 <perror@plt>
mov    $0xffffffff,%edi
call   10a0 <exit@plt>
lea    -0x230(%rbp),%rdi
lea    0xda5(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    1301 <main+0x171>
lea    0xda4(%rip),%rdi
call   1070 <perror@plt>
mov    $0xffffffff,%edi
call   10a0 <exit@plt>
movl   $0x0,-0x234(%rbp)
mov    -0x234(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    13ac <main+0x21c>
movl   $0x0,-0x238(%rbp)
mov    -0x238(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1393 <main+0x203>
mov    -0x238(%rbp),%eax
cmp    -0x234(%rbp),%eax
jne    135a <main+0x1ca>
movss  0xcc3(%rip),%xmm0
movss  %xmm0,-0x240(%rbp)
ff
jmp    1365 <main+0x1d5>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x240(%rbp)
ff
mov    -0x20(%rbp),%rcx
lea    -0x240(%rbp),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
call   10b0 <fwrite@plt>
mov    -0x238(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x238(%rbp)
jmp    1324 <main+0x194>
jmp    1398 <main+0x208>
mov    -0x234(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x234(%rbp)
jmp    130b <main+0x17b>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x240(%rbp)
ff
movl   $0x0,-0x234(%rbp)
mov    -0x234(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1448 <main+0x2b8>
movl   $0x0,-0x238(%rbp)
mov    -0x238(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    142f <main+0x29f>
mov    -0x28(%rbp),%rcx
lea    -0x240(%rbp),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
call   10b0 <fwrite@plt>
movss  -0x240(%rbp),%xmm0
ff
addss  -0x244(%rbp),%xmm0
ff
movss  %xmm0,-0x240(%rbp)
ff
mov    -0x238(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x238(%rbp)
jmp    13da <main+0x24a>
jmp    1434 <main+0x2a4>
mov    -0x234(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x234(%rbp)
jmp    13c1 <main+0x231>
mov    -0x20(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x28(%rbp),%rdi
call   1030 <fclose@plt>
lea    0xc4d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xbc7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   10a0 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x218,%rsp
cmp    $0x1,%edi
jg     11d5 <main+0x35>
mov    0x2e23(%rip),%rax
mov    (%rax),%edi
lea    0xe46(%rip),%rsi
call   1060 <fprintf@plt>
mov    $0xffffffff,%edi
call   10b0 <exit@plt>
mov    %rsi,%rbx
mov    %edi,%ebp
mov    0x8(%rsi),%rdx
lea    0xe4b(%rip),%rsi
lea    0x110(%rsp),%rdi
call   10a0 <sprintf@plt>
mov    0x8(%rbx),%rdx
lea    0xe3b(%rip),%rsi
lea    0x10(%rsp),%rdi
call   10a0 <sprintf@plt>
mov    $0x200,%r15d
cmp    $0x3,%ebp
jne    121e <main+0x7e>
mov    0x10(%rbx),%rdi
call   1090 <atoi@plt>
mov    %eax,%r15d
lea    0xe1b(%rip),%rdi
lea    0x110(%rsp),%rbx
lea    0x10(%rsp),%rdx
mov    %rbx,%rsi
mov    %r15d,%ecx
mov    %r15d,%r8d
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe2b(%rip),%rsi
mov    %rbx,%rdi
call   1070 <fopen@plt>
test   %rax,%rax
jne    125f <main+0xbf>
lea    0xe19(%rip),%rdi
jmp    127f <main+0xdf>
mov    %rax,%r12
lea    0xe0b(%rip),%rsi
lea    0x10(%rsp),%rdi
call   1070 <fopen@plt>
test   %rax,%rax
jne    128e <main+0xee>
lea    0xe0f(%rip),%rdi
call   1080 <perror@plt>
mov    $0xffffffff,%edi
call   10b0 <exit@plt>
mov    %rax,%r14
test   %r15d,%r15d
jle    1314 <main+0x174>
cvtsi2ss %r15d,%xmm0
cvtss2sd %xmm0,%xmm0
movaps %xmm0,%xmm1
addsd  %xmm0,%xmm1
mulsd  %xmm0,%xmm1
movsd  0xd4e(%rip),%xmm0
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0xc(%rsp)
xor    %ebx,%ebx
lea    0x8(%rsp),%r13
jmp    12d8 <main+0x138>
nopl   0x0(%rax)
add    $0x1,%ebx
cmp    %r15d,%ebx
je     131e <main+0x17e>
xor    %ebp,%ebp
jmp    1303 <main+0x163>
nopl   0x0(%rax)
movss  %xmm0,0x8(%rsp)
mov    %r13,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %r12,%rcx
call   10c0 <fwrite@plt>
add    $0x1,%ebp
cmp    %ebp,%r15d
je     12d0 <main+0x130>
movss  0xcfd(%rip),%xmm0
cmp    %ebp,%ebx
je     12e0 <main+0x140>
xorps  %xmm0,%xmm0
jmp    12e0 <main+0x140>
movl   $0x0,0x8(%rsp)
jmp    1385 <main+0x1e5>
movl   $0x0,0x8(%rsp)
test   %r15d,%r15d
jle    1385 <main+0x1e5>
xor    %r13d,%r13d
lea    0x8(%rsp),%rbp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r15d,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rbp,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   10c0 <fwrite@plt>
movss  0x8(%rsp),%xmm0
addss  0xc(%rsp),%xmm0
movss  %xmm0,0x8(%rsp)
add    $0xffffffff,%ebx
jne    1350 <main+0x1b0>
add    $0x1,%r13d
cmp    %r15d,%r13d
jne    1340 <main+0x1a0>
mov    %r12,%rdi
call   1040 <fclose@plt>
mov    %r14,%rdi
call   1040 <fclose@plt>
lea    0xd0a(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   10b0 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [36 x i8] c"Usar: creamatriz fichero [tamanno]\0A\00"
@.str.1 = [8 x i8] c"%s1.flt\00"
@.str.2 = [8 x i8] c"%s2.flt\00"
@.str.3 = [52 x i8] c"Se crear\C3\A1n los ficheros %s y %s con tama\C3\B1o %dx%d\0A\00"
@.str.4 = [2 x i8] c"w\00"
@.str.5 = [24 x i8] c"Fichero 1 para escribir\00"
@.str.6 = [24 x i8] c"Fichero 2 para escribir\00"
@.str.7 = [18 x i8] c"Matrices creadas.\00"
@.str.8 = [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 [256 x i8]
%10 = alloca [256 x i8]
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca float
%15 = alloca float
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 512, i32* %6
store float 0.000000e+00, float* %14
%16 = load i32, i32* %4
%17 = icmp slt i32 %16, 2
br i1 %17, label %18, label %22
18: ; preds = %2
%19 = load i32, i32* @stderr
%20 = call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
%21 = call i32 @exit(i32 -1)
unreachable
22: ; preds = %2
%23 = getelementptr inbounds [256 x i8], [256 x i8]* %9, i64 0, i64 0
%24 = load i8**, i8*** %5
%25 = getelementptr inbounds i8*, i8** %24, i64 1
%26 = load i8*, i8** %25
%27 = call i32 @sprintf(i8* %23, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* %26)
%28 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%29 = load i8**, i8*** %5
%30 = getelementptr inbounds i8*, i8** %29, i64 1
%31 = load i8*, i8** %30
%32 = call i32 @sprintf(i8* %28, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* %31)
%33 = load i32, i32* %4
%34 = icmp eq i32 %33, 3
br i1 %34, label %35, label %40
35: ; preds = %22
%36 = load i8**, i8*** %5
%37 = getelementptr inbounds i8*, i8** %36, i64 2
%38 = load i8*, i8** %37
%39 = call i32 @atoi(i8* %38)
store i32 %39, i32* %6
br label %40
40: ; preds = %35, %22
%41 = load i32, i32* %6
%42 = sitofp i32 %41 to float
%43 = fpext float %42 to double
%44 = fmul double 2.000000e+00, %43
%45 = load i32, i32* %6
%46 = sitofp i32 %45 to float
%47 = fpext float %46 to double
%48 = fmul double %44, %47
%49 = fdiv double 1.000000e+00, %48
%50 = fptrunc double %49 to float
store float %50, float* %15
%51 = getelementptr inbounds [256 x i8], [256 x i8]* %9, i64 0, i64 0
%52 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%53 = load i32, i32* %6
%54 = load i32, i32* %6
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.3, i64 0, i64 0), i8* %51, i8* %52, i32 %53, i32 %54)
%56 = getelementptr inbounds [256 x i8], [256 x i8]* %9, i64 0, i64 0
%57 = call i32* @fopen(i8* %56, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i32* %57, i32** %7
%58 = load i32*, i32** %7
%59 = icmp eq i32* %58, null
br i1 %59, label %60, label %63
60: ; preds = %40
%61 = call i32 @perror(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0))
%62 = call i32 @exit(i32 -1)
unreachable
63: ; preds = %40
%64 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%65 = call i32* @fopen(i8* %64, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i32* %65, i32** %8
%66 = load i32*, i32** %8
%67 = icmp eq i32* %66, null
br i1 %67, label %68, label %71
68: ; preds = %63
%69 = call i32 @perror(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0))
%70 = call i32 @exit(i32 -1)
unreachable
71: ; preds = %63
store i32 0, i32* %11
br label %72
72: ; preds = %94, %71
%73 = load i32, i32* %11
%74 = load i32, i32* %6
%75 = icmp slt i32 %73, %74
br i1 %75, label %76, label %97
76: ; preds = %72
store i32 0, i32* %12
br label %77
77: ; preds = %90, %76
%78 = load i32, i32* %12
%79 = load i32, i32* %6
%80 = icmp slt i32 %78, %79
br i1 %80, label %81, label %93
81: ; preds = %77
%82 = load i32, i32* %12
%83 = load i32, i32* %11
%84 = icmp eq i32 %82, %83
br i1 %84, label %85, label %86
85: ; preds = %81
store float 1.000000e+00, float* %14
br label %87
86: ; preds = %81
store float 0.000000e+00, float* %14
br label %87
87: ; preds = %86, %85
%88 = load i32*, i32** %7
%89 = call i32 @fwrite(float* %14, i32 4, i32 1, i32* %88)
br label %90
90: ; preds = %87
%91 = load i32, i32* %12
%92 = add nsw i32 %91, 1
store i32 %92, i32* %12
br label %77
93: ; preds = %77
br label %94
94: ; preds = %93
%95 = load i32, i32* %11
%96 = add nsw i32 %95, 1
store i32 %96, i32* %11
br label %72
97: ; preds = %72
store float 0.000000e+00, float* %14
store i32 0, i32* %11
br label %98
98: ; preds = %117, %97
%99 = load i32, i32* %11
%100 = load i32, i32* %6
%101 = icmp slt i32 %99, %100
br i1 %101, label %102, label %120
102: ; preds = %98
store i32 0, i32* %12
br label %103
103: ; preds = %113, %102
%104 = load i32, i32* %12
%105 = load i32, i32* %6
%106 = icmp slt i32 %104, %105
br i1 %106, label %107, label %116
107: ; preds = %103
%108 = load i32*, i32** %8
%109 = call i32 @fwrite(float* %14, i32 4, i32 1, i32* %108)
%110 = load float, float* %14
%111 = load float, float* %15
%112 = fadd float %110, %111
store float %112, float* %14
br label %113
113: ; preds = %107
%114 = load i32, i32* %12
%115 = add nsw i32 %114, 1
store i32 %115, i32* %12
br label %103
116: ; preds = %103
br label %117
117: ; preds = %116
%118 = load i32, i32* %11
%119 = add nsw i32 %118, 1
store i32 %119, i32* %11
br label %98
120: ; preds = %98
%121 = load i32*, i32** %7
%122 = call i32 @fclose(i32* %121)
%123 = load i32*, i32** %8
%124 = call i32 @fclose(i32* %123)
%125 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0))
%126 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%127 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [36 x i8] c"Usar: creamatriz fichero [tamanno]\0A\00"
@.str.1 = [8 x i8] c"%s1.flt\00"
@.str.2 = [8 x i8] c"%s2.flt\00"
@.str.3 = [52 x i8] c"Se crear\C3\A1n los ficheros %s y %s con tama\C3\B1o %dx%d\0A\00"
@.str.4 = [2 x i8] c"w\00"
@.str.5 = [24 x i8] c"Fichero 1 para escribir\00"
@.str.6 = [24 x i8] c"Fichero 2 para escribir\00"
@.str.7 = [18 x i8] c"Matrices creadas.\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [256 x i8]
%4 = alloca [256 x i8]
%5 = alloca float
%6 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%7 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
%8 = bitcast float* %5 to i8*
%9 = icmp slt i32 %0, 2
br i1 %9, label %10, label %14
10: ; preds = %2
%11 = load i32, i32* @stderr
%12 = tail call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
%13 = tail call i32 @exit(i32 -1)
unreachable
14: ; preds = %2
%15 = getelementptr inbounds i8*, i8** %1, i64 1
%16 = load i8*, i8** %15
%17 = call i32 @sprintf(i8* %6, i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* %16)
%18 = load i8*, i8** %15
%19 = call i32 @sprintf(i8* %7, i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* %18)
%20 = icmp eq i32 %0, 3
br i1 %20, label %21, label %25
21: ; preds = %14
%22 = getelementptr inbounds i8*, i8** %1, i64 2
%23 = load i8*, i8** %22
%24 = tail call i32 @atoi(i8* %23)
br label %25
25: ; preds = %21, %14
%26 = phi i32 [ %24, %21 ], [ 512, %14 ]
%27 = sitofp i32 %26 to float
%28 = fpext float %27 to double
%29 = fmul double %28, 2.000000e+00
%30 = fmul double %29, %28
%31 = fdiv double 1.000000e+00, %30
%32 = fptrunc double %31 to float
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @.str.3, i64 0, i64 0), i8* %6, i8* %7, i32 %26, i32 %26)
%34 = call i32* @fopen(i8* %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%35 = icmp eq i32* %34, null
br i1 %35, label %36, label %39
36: ; preds = %25
%37 = call i32 @perror(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0))
%38 = call i32 @exit(i32 -1)
unreachable
39: ; preds = %25
%40 = call i32* @fopen(i8* %7, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%41 = icmp eq i32* %40, null
br i1 %41, label %45, label %42
42: ; preds = %39
%43 = icmp sgt i32 %26, 0
br i1 %43, label %48, label %44
44: ; preds = %42
store float 0.000000e+00, float* %5
br label %73
45: ; preds = %39
%46 = call i32 @perror(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0))
%47 = call i32 @exit(i32 -1)
unreachable
48: ; preds = %42, %57
%49 = phi i32 [ %58, %57 ], [ 0, %42 ]
br label %50
50: ; preds = %48, %50
%51 = phi i32 [ %55, %50 ], [ 0, %48 ]
%52 = icmp eq i32 %51, %49
%53 = select i1 %52, float 1.000000e+00, float 0.000000e+00
store float %53, float* %5
%54 = call i32 @fwrite(float* %5, i32 4, i32 1, i32* %34)
%55 = add nuw nsw i32 %51, 1
%56 = icmp eq i32 %55, %26
br i1 %56, label %57, label %50
57: ; preds = %50
%58 = add nuw nsw i32 %49, 1
%59 = icmp eq i32 %58, %26
br i1 %59, label %60, label %48
60: ; preds = %57
store float 0.000000e+00, float* %5
br i1 %43, label %61, label %73
61: ; preds = %60, %70
%62 = phi i32 [ %71, %70 ], [ 0, %60 ]
br label %63
63: ; preds = %61, %63
%64 = phi i32 [ %68, %63 ], [ 0, %61 ]
%65 = call i32 @fwrite(float* %5, i32 4, i32 1, i32* %40)
%66 = load float, float* %5
%67 = fadd float %66, %32
store float %67, float* %5
%68 = add nuw nsw i32 %64, 1
%69 = icmp eq i32 %68, %26
br i1 %69, label %70, label %63
70: ; preds = %63
%71 = add nuw nsw i32 %62, 1
%72 = icmp eq i32 %71, %26
br i1 %72, label %73, label %61
73: ; preds = %70, %44, %60
%74 = call i32 @fclose(i32* %34)
%75 = call i32 @fclose(i32* %40)
%76 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0))
%77 = call i32 @putchar(i32 10)
%78 = call i32 @exit(i32 0)
unreachable
}