#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++) {
      fwrite(&valor, sizeof(valor), 1, fp1);
      valor = valor + paso;
    }
  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    0xe3b(%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    0xe3a(%rip),%rsi
call   1090 <sprintf@plt>
lea    -0x230(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xe27(%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    0xdba(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x130(%rbp),%rdi
lea    0xdd9(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    12c9 <main+0x139>
lea    0xdc0(%rip),%rdi
call   1070 <perror@plt>
mov    $0xffffffff,%edi
call   10a0 <exit@plt>
lea    -0x230(%rbp),%rdi
lea    0xda1(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    1301 <main+0x171>
lea    0xda0(%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    1392 <main+0x202>
movl   $0x0,-0x238(%rbp)
mov    -0x238(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1379 <main+0x1e9>
mov    -0x20(%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    1324 <main+0x194>
jmp    137e <main+0x1ee>
mov    -0x234(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x234(%rbp)
jmp    130b <main+0x17b>
movl   $0x0,-0x234(%rbp)
mov    -0x234(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1423 <main+0x293>
movl   $0x0,-0x238(%rbp)
mov    -0x238(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    140a <main+0x27a>
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    13b5 <main+0x225>
jmp    140f <main+0x27f>
mov    -0x234(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x234(%rbp)
jmp    139c <main+0x20c>
mov    -0x20(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x28(%rbp),%rdi
call   1030 <fclose@plt>
lea    0xc6e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xbe8(%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
movl   $0x0,0x8(%rsp)
cmp    $0x1,%edi
jg     11dd <main+0x3d>
mov    0x2e1b(%rip),%rax
mov    (%rax),%edi
lea    0xe3a(%rip),%rsi
call   1060 <fprintf@plt>
mov    $0xffffffff,%edi
call   10b0 <exit@plt>
mov    %rsi,%rbx
mov    %edi,%ebp
mov    0x8(%rsi),%rdx
lea    0xe3f(%rip),%rsi
lea    0x110(%rsp),%rdi
call   10a0 <sprintf@plt>
mov    0x8(%rbx),%rdx
lea    0xe2f(%rip),%rsi
lea    0x10(%rsp),%rdi
call   10a0 <sprintf@plt>
mov    $0x200,%r14d
cmp    $0x3,%ebp
jne    1226 <main+0x86>
mov    0x10(%rbx),%rdi
call   1090 <atoi@plt>
mov    %eax,%r14d
lea    0xe0f(%rip),%rdi
lea    0x110(%rsp),%rbx
lea    0x10(%rsp),%rdx
mov    %rbx,%rsi
mov    %r14d,%ecx
mov    %r14d,%r8d
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe1f(%rip),%rsi
mov    %rbx,%rdi
call   1070 <fopen@plt>
test   %rax,%rax
jne    1267 <main+0xc7>
lea    0xe0d(%rip),%rdi
jmp    1287 <main+0xe7>
mov    %rax,%r13
lea    0xdff(%rip),%rsi
lea    0x10(%rsp),%rdi
call   1070 <fopen@plt>
test   %rax,%rax
jne    1296 <main+0xf6>
lea    0xe03(%rip),%rdi
call   1080 <perror@plt>
mov    $0xffffffff,%edi
call   10b0 <exit@plt>
mov    %rax,%r15
test   %r14d,%r14d
jle    1385 <main+0x1e5>
cvtsi2ss %r14d,%xmm0
cvtss2sd %xmm0,%xmm0
movaps %xmm0,%xmm1
addsd  %xmm0,%xmm1
mulsd  %xmm0,%xmm1
movsd  0xd42(%rip),%xmm0
divsd  %xmm1,%xmm0
xorps  %xmm1,%xmm1
cvtsd2ss %xmm0,%xmm1
xor    %r12d,%r12d
lea    0x8(%rsp),%rbp
movss  %xmm1,0xc(%rsp)
nopw   0x0(%rax,%rax,1)
mov    %r14d,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rbp,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %r13,%rcx
call   10c0 <fwrite@plt>
movss  0xc(%rsp),%xmm1
movss  0x8(%rsp),%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,0x8(%rsp)
add    $0xffffffff,%ebx
jne    12f0 <main+0x150>
add    $0x1,%r12d
cmp    %r14d,%r12d
jne    12e0 <main+0x140>
test   %r14d,%r14d
jle    1385 <main+0x1e5>
xor    %r12d,%r12d
lea    0x8(%rsp),%rbp
cs nopw 0x0(%rax,%rax,1)
mov    %r14d,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rbp,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %r15,%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,%r12d
cmp    %r14d,%r12d
jne    1340 <main+0x1a0>
mov    %r13,%rdi
call   1040 <fclose@plt>
mov    %r15,%rdi
call   1040 <fclose@plt>
lea    0xd06(%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 = %91, %71
%73 = load i32, i32* %11
%74 = load i32, i32* %6
%75 = icmp slt i32 %73, %74
br i1 %75, label %76, label %94
76: ; preds = %72
store i32 0, i32* %12
br label %77
77: ; preds = %87, %76
%78 = load i32, i32* %12
%79 = load i32, i32* %6
%80 = icmp slt i32 %78, %79
br i1 %80, label %81, label %90
81: ; preds = %77
%82 = load i32*, i32** %7
%83 = call i32 @fwrite(float* %14, i32 4, i32 1, i32* %82)
%84 = load float, float* %14
%85 = load float, float* %15
%86 = fadd float %84, %85
store float %86, float* %14
br label %87
87: ; preds = %81
%88 = load i32, i32* %12
%89 = add nsw i32 %88, 1
store i32 %89, i32* %12
br label %77
90: ; preds = %77
br label %91
91: ; preds = %90
%92 = load i32, i32* %11
%93 = add nsw i32 %92, 1
store i32 %93, i32* %11
br label %72
94: ; preds = %72
store i32 0, i32* %11
br label %95
95: ; preds = %114, %94
%96 = load i32, i32* %11
%97 = load i32, i32* %6
%98 = icmp slt i32 %96, %97
br i1 %98, label %99, label %117
99: ; preds = %95
store i32 0, i32* %12
br label %100
100: ; preds = %110, %99
%101 = load i32, i32* %12
%102 = load i32, i32* %6
%103 = icmp slt i32 %101, %102
br i1 %103, label %104, label %113
104: ; preds = %100
%105 = load i32*, i32** %8
%106 = call i32 @fwrite(float* %14, i32 4, i32 1, i32* %105)
%107 = load float, float* %14
%108 = load float, float* %15
%109 = fadd float %107, %108
store float %109, float* %14
br label %110
110: ; preds = %104
%111 = load i32, i32* %12
%112 = add nsw i32 %111, 1
store i32 %112, i32* %12
br label %100
113: ; preds = %100
br label %114
114: ; preds = %113
%115 = load i32, i32* %11
%116 = add nsw i32 %115, 1
store i32 %116, i32* %11
br label %95
117: ; preds = %95
%118 = load i32*, i32** %7
%119 = call i32 @fclose(i32* %118)
%120 = load i32*, i32** %8
%121 = call i32 @fclose(i32* %120)
%122 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0))
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%124 = 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*
store float 0.000000e+00, float* %5
%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 %44, label %42
42: ; preds = %39
%43 = icmp sgt i32 %26, 0
br i1 %43, label %47, label %72
44: ; preds = %39
%45 = call i32 @perror(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0))
%46 = call i32 @exit(i32 -1)
unreachable
47: ; preds = %42, %57
%48 = phi i32 [ %58, %57 ], [ 0, %42 ]
br label %50
49: ; preds = %57
br i1 %43, label %60, label %72
50: ; preds = %47, %50
%51 = phi i32 [ %55, %50 ], [ 0, %47 ]
%52 = call i32 @fwrite(float* %5, i32 4, i32 1, i32* %34)
%53 = load float, float* %5
%54 = fadd float %53, %32
store float %54, float* %5
%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 %48, 1
%59 = icmp eq i32 %58, %26
br i1 %59, label %49, label %47
60: ; preds = %49, %69
%61 = phi i32 [ %70, %69 ], [ 0, %49 ]
br label %62
62: ; preds = %60, %62
%63 = phi i32 [ %67, %62 ], [ 0, %60 ]
%64 = call i32 @fwrite(float* %5, i32 4, i32 1, i32* %40)
%65 = load float, float* %5
%66 = fadd float %65, %32
store float %66, float* %5
%67 = add nuw nsw i32 %63, 1
%68 = icmp eq i32 %67, %26
br i1 %68, label %69, label %62
69: ; preds = %62
%70 = add nuw nsw i32 %61, 1
%71 = icmp eq i32 %70, %26
br i1 %71, label %72, label %60
72: ; preds = %69, %42, %49
%73 = call i32 @fclose(i32* %34)
%74 = call i32 @fclose(i32* %40)
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0))
%76 = call i32 @putchar(i32 10)
%77 = call i32 @exit(i32 0)
unreachable
}