#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 */
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char const *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ normalize_data(double *, double, double, double);
int /*<<< orphan*/ printf(char *, char const *);
void normalize_dataset(const char *file_name_dataset,
                       const char *file_name_dataset_normalized,
                       double *range) {
  FILE *fd;
  FILE *save_fd;
  int file_found;
  int r, c_input, c_output;
  double min, max, temp;
  int a, b;
  do {
    fd = fopen(file_name_dataset, "r");
    save_fd = fopen(file_name_dataset_normalized, "w");
    if (!fd) {
      printf("File %s Not Found!!\n", file_name_dataset);
      file_found = 1;
      exit(EXIT_FAILURE);
    } else
      file_found = 0;
  } while (file_found);
  fscanf(fd, "%d", &r);
  fprintf(save_fd, "%d ", r);
  fscanf(fd, "%d", &c_input);
  fprintf(save_fd, "%d ", c_input);
  fscanf(fd, "%d", &c_output);
  fprintf(save_fd, "%d ", c_output);
  fscanf(fd, "%lf", &min);
  fprintf(save_fd, "%lf ", normalize_data(range, min, min, max));
  fscanf(fd, "%lf ", &max);
  fprintf(save_fd, "%lf \n", normalize_data(range, max, min, max));
  for (a = 0; a < r; a++) {
    for (b = 0; b < c_input; b++) {
      fscanf(fd, "%lf", &temp);
      fprintf(save_fd, "%lf ", normalize_data(range, temp, min, max));
    }
    for (b = 0; b < c_output; b++) {
      fscanf(fd, "%lf", &temp);
      fprintf(save_fd, "%lf ", normalize_data(range, temp, min, max));
    }
    fprintf(save_fd, "\n");
  }
  fclose(fd);
  fclose(save_fd);
}


x86 assembly (clang, -O0):
<normalize_dataset>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xe6e(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xe5c(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    11df <normalize_dataset+0x6f>
mov    -0x8(%rbp),%rsi
lea    0xe3f(%rip),%rdi
call   1050 <printf@plt>
movl   $0x1,-0x2c(%rbp)
mov    0x2e08(%rip),%rax
mov    (%rax),%edi
call   1090 <exit@plt>
movl   $0x0,-0x2c(%rbp)
jmp    11eb <normalize_dataset+0x7b>
cmpl   $0x0,-0x2c(%rbp)
jne    1187 <normalize_dataset+0x17>
mov    -0x20(%rbp),%rdi
lea    0xe19(%rip),%rsi
lea    -0x30(%rbp),%rdx
mov    $0x0,%al
call   1060 <fscanf@plt>
mov    -0x28(%rbp),%rdi
mov    -0x30(%rbp),%edx
lea    0xe03(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xdee(%rip),%rsi
lea    -0x34(%rbp),%rdx
mov    $0x0,%al
call   1060 <fscanf@plt>
mov    -0x28(%rbp),%rdi
mov    -0x34(%rbp),%edx
lea    0xdd8(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xdc3(%rip),%rsi
lea    -0x38(%rbp),%rdx
mov    $0x0,%al
call   1060 <fscanf@plt>
mov    -0x28(%rbp),%rdi
mov    -0x38(%rbp),%edx
lea    0xdad(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xd9f(%rip),%rsi
lea    -0x40(%rbp),%rdx
mov    $0x0,%al
call   1060 <fscanf@plt>
mov    -0x28(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    -0x18(%rbp),%rdi
movsd  -0x40(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  -0x48(%rbp),%xmm2
call   1030 <normalize_data@plt>
mov    -0x68(%rbp),%rdi
mov    %eax,%edx
lea    0xd6b(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xd59(%rip),%rsi
lea    -0x48(%rbp),%rdx
mov    $0x0,%al
call   1060 <fscanf@plt>
mov    -0x28(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x18(%rbp),%rdi
movsd  -0x48(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  -0x48(%rbp),%xmm2
call   1030 <normalize_data@plt>
mov    -0x60(%rbp),%rdi
mov    %eax,%edx
lea    0xd26(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movl   $0x0,-0x54(%rbp)
mov    -0x54(%rbp),%eax
cmp    -0x30(%rbp),%eax
jge    1413 <normalize_dataset+0x2a3>
movl   $0x0,-0x58(%rbp)
mov    -0x58(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    1388 <normalize_dataset+0x218>
mov    -0x20(%rbp),%rdi
lea    0xce5(%rip),%rsi
lea    -0x50(%rbp),%rdx
mov    $0x0,%al
call   1060 <fscanf@plt>
mov    -0x28(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x18(%rbp),%rdi
movsd  -0x50(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  -0x48(%rbp),%xmm2
call   1030 <normalize_data@plt>
mov    -0x70(%rbp),%rdi
mov    %eax,%edx
lea    0xcb1(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    1324 <normalize_dataset+0x1b4>
movl   $0x0,-0x58(%rbp)
mov    -0x58(%rbp),%eax
cmp    -0x38(%rbp),%eax
jge    13f3 <normalize_dataset+0x283>
mov    -0x20(%rbp),%rdi
lea    0xc7a(%rip),%rsi
lea    -0x50(%rbp),%rdx
mov    $0x0,%al
call   1060 <fscanf@plt>
mov    -0x28(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x18(%rbp),%rdi
movsd  -0x50(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  -0x48(%rbp),%xmm2
call   1030 <normalize_data@plt>
mov    -0x78(%rbp),%rdi
mov    %eax,%edx
lea    0xc46(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    138f <normalize_dataset+0x21f>
mov    -0x28(%rbp),%rdi
lea    0xc2f(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    1311 <normalize_dataset+0x1a1>
mov    -0x20(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x28(%rbp),%rdi
call   1040 <fclose@plt>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<normalize_dataset>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rdx,%r14
mov    %rsi,%rbx
mov    %rdi,%r15
lea    0xe62(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%rbp
lea    0xe55(%rip),%rsi
mov    %rbx,%rdi
call   1090 <fopen@plt>
test   %rbp,%rbp
je     13ec <normalize_dataset+0x26c>
mov    %rax,%r12
lea    0xe51(%rip),%r15
lea    0xc(%rsp),%rdx
mov    %rbp,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1060 <fscanf@plt>
mov    0xc(%rsp),%edx
lea    0xe37(%rip),%rbx
mov    %r12,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
lea    0x8(%rsp),%rdx
mov    %rbp,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1060 <fscanf@plt>
mov    0x8(%rsp),%edx
mov    %r12,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
lea    0x4(%rsp),%rdx
mov    %rbp,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1060 <fscanf@plt>
mov    0x4(%rsp),%edx
mov    %r12,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
lea    0xde1(%rip),%rsi
lea    0x10(%rsp),%rdx
mov    %rbp,%rdi
xor    %eax,%eax
call   1060 <fscanf@plt>
movsd  0x10(%rsp),%xmm0
mov    %r14,%rdi
movaps %xmm0,%xmm1
call   1030 <normalize_data@plt>
lea    0xdbe(%rip),%rbx
mov    %r12,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1080 <fprintf@plt>
lea    0x18(%rsp),%rdx
mov    %rbp,0x28(%rsp)
mov    %rbp,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <fscanf@plt>
movsd  0x18(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
mov    %r14,%rbx
mov    %r14,%rdi
movaps %xmm0,%xmm2
call   1030 <normalize_data@plt>
lea    0xd7c(%rip),%rsi
mov    %r12,%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1080 <fprintf@plt>
cmpl   $0x0,0xc(%rsp)
jle    13cb <normalize_dataset+0x24b>
lea    0xd55(%rip),%r13
xor    %eax,%eax
jmp    12f4 <normalize_dataset+0x174>
nop
mov    $0xa,%edi
mov    %r15,%rsi
call   1070 <fputc@plt>
mov    0x24(%rsp),%eax
add    $0x1,%eax
cmp    0xc(%rsp),%eax
mov    %r14,%r13
mov    %r15,%r12
jge    13cb <normalize_dataset+0x24b>
mov    %eax,0x24(%rsp)
cmpl   $0x0,0x8(%rsp)
mov    %rbx,%rbp
lea    0x30(%rsp),%rbx
mov    %r12,%r15
mov    0x28(%rsp),%r12
jle    1368 <normalize_dataset+0x1e8>
xor    %r14d,%r14d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r12,%rdi
mov    %r13,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1060 <fscanf@plt>
movsd  0x30(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
movsd  0x18(%rsp),%xmm2
mov    %rbp,%rdi
call   1030 <normalize_data@plt>
mov    %r15,%rdi
lea    0xcd0(%rip),%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1080 <fprintf@plt>
add    $0x1,%r14d
cmp    0x8(%rsp),%r14d
jl     1320 <normalize_dataset+0x1a0>
cmpl   $0x0,0x4(%rsp)
mov    %r13,%r14
mov    %rbx,%r13
mov    %rbp,%rbx
jle    12d0 <normalize_dataset+0x150>
xor    %ebp,%ebp
xchg   %ax,%ax
mov    %r12,%rdi
mov    %r14,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1060 <fscanf@plt>
movsd  0x30(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
movsd  0x18(%rsp),%xmm2
mov    %rbx,%rdi
call   1030 <normalize_data@plt>
mov    %r15,%rdi
lea    0xc70(%rip),%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1080 <fprintf@plt>
add    $0x1,%ebp
cmp    0x4(%rsp),%ebp
jl     1380 <normalize_dataset+0x200>
jmp    12d0 <normalize_dataset+0x150>
mov    0x28(%rsp),%rdi
call   1040 <fclose@plt>
mov    %r12,%rdi
call   1040 <fclose@plt>
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xc11(%rip),%rdi
mov    %r15,%rsi
call   1050 <printf@plt>
mov    0x2bde(%rip),%rax
mov    (%rax),%edi
call   10a0 <exit@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"r\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [21 x i8] c"File %s Not Found!!\0A\00"
@EXIT_FAILURE = global i32 0
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [4 x i8] c"%d \00"
@.str.5 = [4 x i8] c"%lf\00"
@.str.6 = [5 x i8] c"%lf \00"
@.str.7 = [6 x i8] c"%lf \0A\00"
@.str.8 = [2 x i8] c"\0A\00"
define void @normalize_dataset(i8* %0, i8* %1, double* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca double*
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca i32
%17 = alloca i32
store i8* %0, i8** %4
store i8* %1, i8** %5
store double* %2, double** %6
br label %18
18: ; preds = %32, %3
%19 = load i8*, i8** %4
%20 = call i32* @fopen(i8* %19, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %20, i32** %7
%21 = load i8*, i8** %5
%22 = call i32* @fopen(i8* %21, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %22, i32** %8
%23 = load i32*, i32** %7
%24 = icmp ne i32* %23, null
br i1 %24, label %30, label %25
25: ; preds = %18
%26 = load i8*, i8** %4
%27 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i8* %26)
store i32 1, i32* %9
%28 = load i32, i32* @EXIT_FAILURE
%29 = call i32 @exit(i32 %28)
unreachable
30: ; preds = %18
store i32 0, i32* %9
br label %31
31: ; preds = %30
br label %32
32: ; preds = %31
%33 = load i32, i32* %9
%34 = icmp ne i32 %33, 0
br i1 %34, label %18, label %35
35: ; preds = %32
%36 = load i32*, i32** %7
%37 = call i32 (i32*, i8*, ...) @fscanf(i32* %36, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %10)
%38 = load i32*, i32** %8
%39 = load i32, i32* %10
%40 = call i32 (i32*, i8*, ...) @fprintf(i32* %38, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %39)
%41 = load i32*, i32** %7
%42 = call i32 (i32*, i8*, ...) @fscanf(i32* %41, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %11)
%43 = load i32*, i32** %8
%44 = load i32, i32* %11
%45 = call i32 (i32*, i8*, ...) @fprintf(i32* %43, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %44)
%46 = load i32*, i32** %7
%47 = call i32 (i32*, i8*, ...) @fscanf(i32* %46, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %12)
%48 = load i32*, i32** %8
%49 = load i32, i32* %12
%50 = call i32 (i32*, i8*, ...) @fprintf(i32* %48, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %49)
%51 = load i32*, i32** %7
%52 = call i32 (i32*, i8*, ...) @fscanf(i32* %51, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), double* %13)
%53 = load i32*, i32** %8
%54 = load double*, double** %6
%55 = load double, double* %13
%56 = load double, double* %13
%57 = load double, double* %14
%58 = call i32 @normalize_data(double* %54, double %55, double %56, double %57)
%59 = call i32 (i32*, i8*, ...) @fprintf(i32* %53, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %58)
%60 = load i32*, i32** %7
%61 = call i32 (i32*, i8*, ...) @fscanf(i32* %60, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), double* %14)
%62 = load i32*, i32** %8
%63 = load double*, double** %6
%64 = load double, double* %14
%65 = load double, double* %13
%66 = load double, double* %14
%67 = call i32 @normalize_data(double* %63, double %64, double %65, double %66)
%68 = call i32 (i32*, i8*, ...) @fprintf(i32* %62, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %67)
store i32 0, i32* %16
br label %69
69: ; preds = %112, %35
%70 = load i32, i32* %16
%71 = load i32, i32* %10
%72 = icmp slt i32 %70, %71
br i1 %72, label %73, label %115
73: ; preds = %69
store i32 0, i32* %17
br label %74
74: ; preds = %88, %73
%75 = load i32, i32* %17
%76 = load i32, i32* %11
%77 = icmp slt i32 %75, %76
br i1 %77, label %78, label %91
78: ; preds = %74
%79 = load i32*, i32** %7
%80 = call i32 (i32*, i8*, ...) @fscanf(i32* %79, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), double* %15)
%81 = load i32*, i32** %8
%82 = load double*, double** %6
%83 = load double, double* %15
%84 = load double, double* %13
%85 = load double, double* %14
%86 = call i32 @normalize_data(double* %82, double %83, double %84, double %85)
%87 = call i32 (i32*, i8*, ...) @fprintf(i32* %81, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %86)
br label %88
88: ; preds = %78
%89 = load i32, i32* %17
%90 = add nsw i32 %89, 1
store i32 %90, i32* %17
br label %74
91: ; preds = %74
store i32 0, i32* %17
br label %92
92: ; preds = %106, %91
%93 = load i32, i32* %17
%94 = load i32, i32* %12
%95 = icmp slt i32 %93, %94
br i1 %95, label %96, label %109
96: ; preds = %92
%97 = load i32*, i32** %7
%98 = call i32 (i32*, i8*, ...) @fscanf(i32* %97, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), double* %15)
%99 = load i32*, i32** %8
%100 = load double*, double** %6
%101 = load double, double* %15
%102 = load double, double* %13
%103 = load double, double* %14
%104 = call i32 @normalize_data(double* %100, double %101, double %102, double %103)
%105 = call i32 (i32*, i8*, ...) @fprintf(i32* %99, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %104)
br label %106
106: ; preds = %96
%107 = load i32, i32* %17
%108 = add nsw i32 %107, 1
store i32 %108, i32* %17
br label %92
109: ; preds = %92
%110 = load i32*, i32** %8
%111 = call i32 (i32*, i8*, ...) @fprintf(i32* %110, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
br label %112
112: ; preds = %109
%113 = load i32, i32* %16
%114 = add nsw i32 %113, 1
store i32 %114, i32* %16
br label %69
115: ; preds = %69
%116 = load i32*, i32** %7
%117 = call i32 @fclose(i32* %116)
%118 = load i32*, i32** %8
%119 = call i32 @fclose(i32* %118)
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"r\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [21 x i8] c"File %s Not Found!!\0A\00"
@EXIT_FAILURE = global i32 0
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [4 x i8] c"%d \00"
@.str.5 = [4 x i8] c"%lf\00"
@.str.6 = [5 x i8] c"%lf \00"
@.str.7 = [6 x i8] c"%lf \0A\00"
define void @normalize_dataset(i8* %0, i8* nocapture %1, double* %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = bitcast i32* %4 to i8*
%11 = bitcast i32* %5 to i8*
%12 = bitcast i32* %6 to i8*
%13 = bitcast double* %7 to i8*
%14 = bitcast double* %8 to i8*
%15 = bitcast double* %9 to i8*
%16 = tail call i32* @fopen(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%17 = tail call i32* @fopen(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%18 = icmp eq i32* %16, null
br i1 %18, label %19, label %23
19: ; preds = %3
%20 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i8* %0)
%21 = load i32, i32* @EXIT_FAILURE
%22 = tail call i32 @exit(i32 %21)
unreachable
23: ; preds = %3
%24 = call i32 (i32*, i8*, ...) @fscanf(i32* %16, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %4)
%25 = load i32, i32* %4
%26 = call i32 (i32*, i8*, ...) @fprintf(i32* %17, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %25)
%27 = call i32 (i32*, i8*, ...) @fscanf(i32* %16, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %5)
%28 = load i32, i32* %5
%29 = call i32 (i32*, i8*, ...) @fprintf(i32* %17, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %28)
%30 = call i32 (i32*, i8*, ...) @fscanf(i32* %16, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %6)
%31 = load i32, i32* %6
%32 = call i32 (i32*, i8*, ...) @fprintf(i32* %17, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %31)
%33 = call i32 (i32*, i8*, ...) @fscanf(i32* %16, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), double* %7)
%34 = load double, double* %7
%35 = call i32 @normalize_data(double* %2, double %34, double %34, double undef)
%36 = call i32 (i32*, i8*, ...) @fprintf(i32* %17, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %35)
%37 = call i32 (i32*, i8*, ...) @fscanf(i32* %16, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), double* %8)
%38 = load double, double* %8
%39 = load double, double* %7
%40 = call i32 @normalize_data(double* %2, double %38, double %39, double %38)
%41 = call i32 (i32*, i8*, ...) @fprintf(i32* %17, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %40)
%42 = load i32, i32* %4
%43 = icmp sgt i32 %42, 0
br i1 %43, label %44, label %78
44: ; preds = %23, %73
%45 = phi i32 [ %75, %73 ], [ 0, %23 ]
%46 = load i32, i32* %5
%47 = icmp sgt i32 %46, 0
br i1 %47, label %51, label %48
48: ; preds = %51, %44
%49 = load i32, i32* %6
%50 = icmp sgt i32 %49, 0
br i1 %50, label %62, label %73
51: ; preds = %44, %51
%52 = phi i32 [ %59, %51 ], [ 0, %44 ]
%53 = call i32 (i32*, i8*, ...) @fscanf(i32* %16, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), double* %9)
%54 = load double, double* %9
%55 = load double, double* %7
%56 = load double, double* %8
%57 = call i32 @normalize_data(double* %2, double %54, double %55, double %56)
%58 = call i32 (i32*, i8*, ...) @fprintf(i32* %17, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %57)
%59 = add nuw nsw i32 %52, 1
%60 = load i32, i32* %5
%61 = icmp slt i32 %59, %60
br i1 %61, label %51, label %48
62: ; preds = %48, %62
%63 = phi i32 [ %70, %62 ], [ 0, %48 ]
%64 = call i32 (i32*, i8*, ...) @fscanf(i32* %16, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), double* %9)
%65 = load double, double* %9
%66 = load double, double* %7
%67 = load double, double* %8
%68 = call i32 @normalize_data(double* %2, double %65, double %66, double %67)
%69 = call i32 (i32*, i8*, ...) @fprintf(i32* %17, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %68)
%70 = add nuw nsw i32 %63, 1
%71 = load i32, i32* %6
%72 = icmp slt i32 %70, %71
br i1 %72, label %62, label %73
73: ; preds = %62, %48
%74 = call i32 @fputc(i32 10, i32* %17)
%75 = add nuw nsw i32 %45, 1
%76 = load i32, i32* %4
%77 = icmp slt i32 %75, %76
br i1 %77, label %44, label %78
78: ; preds = %73, %23
%79 = call i32 @fclose(i32* %16)
%80 = call i32 @fclose(i32* %17)
ret void
}