#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 */

/* Variables and functions */
int findFaiures(int *, char **, int, char **, double *, int *);
scalar_t__ malloc(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, char *, int *, char *, int *, char *, int *,
                         char *, int *, char *, int *, char *, int *);
int validateData(int *, char **, int);
int main(void) {
  int i, size = 6, number_of_failed_students = 0;
  char *names[size], *failed[size];
  int grades[size];
  double avg;
  double *average = &avg;
  int max;
  int *maximal = &max;
  for (i = 0; i < size; i++) {
    names[i] = (char *)malloc(100 * sizeof(char));
    if (names[i] == NULL) {
      printf("Memory allocation failed.\n");
      return 1;
    }
  }
  for (i = 0; i < size; i++) {
    failed[i] = (char *)malloc(100 * sizeof(char));
    if (failed[i] == NULL) {
      printf("Memory allocation failed.\n");
      return 1;
    }
  }
  printf("Please enter the names and grades of 6 students.\n");
  scanf("%s %d %s %d %s %d %s %d %s %d %s %d", names[0], &grades[0], names[1],
        &grades[1], names[2], &grades[2], names[3], &grades[3], names[4],
        &grades[4], names[5], &grades[5]);
  size = validateData(grades, names, size);
  number_of_failed_students =
      findFaiures(grades, names, size, failed, average, maximal);
  printf("\nAverage grade : %lf\n", avg);
  printf("\nMaximal grade : %d\n", max);
  printf("\n%d students failed:\n", number_of_failed_students);
  for (i = 0; i < number_of_failed_students; i++) {
    printf("%s\n", failed[i]);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x70,%rsp
movl   $0x0,-0x24(%rbp)
movl   $0x6,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
mov    -0x2c(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x38(%rbp)
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x90(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x40(%rbp)
mov    -0x2c(%rbp),%eax
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x88(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x48(%rbp)
mov    -0x2c(%rbp),%eax
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x80(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x50(%rbp)
lea    -0x58(%rbp),%rax
mov    %rax,-0x60(%rbp)
lea    -0x64(%rbp),%rax
mov    %rax,-0x70(%rbp)
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    1263 <main+0x113>
mov    $0x64,%edi
call   1060 <malloc@plt>
mov    %rax,%rdx
mov    -0x90(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
movslq -0x28(%rbp),%rcx
cmpq   $0x0,(%rax,%rcx,8)
jne    1250 <main+0x100>
lea    0xdca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x24(%rbp)
movl   $0x1,-0x74(%rbp)
jmp    141a <main+0x2ca>
jmp    1255 <main+0x105>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    11f8 <main+0xa8>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    12d5 <main+0x185>
mov    $0x64,%edi
call   1060 <malloc@plt>
mov    %rax,%rdx
mov    -0x88(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
movslq -0x28(%rbp),%rcx
cmpq   $0x0,(%rax,%rcx,8)
jne    12c2 <main+0x172>
lea    0xd58(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x24(%rbp)
movl   $0x1,-0x74(%rbp)
jmp    141a <main+0x2ca>
jmp    12c7 <main+0x177>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    126a <main+0x11a>
lea    0xd3f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x80(%rbp),%rdx
mov    -0x90(%rbp),%rax
mov    (%rax),%rsi
mov    0x8(%rax),%rcx
mov    %rdx,%r8
add    $0x4,%r8
mov    0x10(%rax),%r9
mov    %rdx,%r12
add    $0x8,%r12
mov    0x18(%rax),%r15
mov    %rdx,%r14
add    $0xc,%r14
mov    0x20(%rax),%rbx
mov    %rdx,%r11
add    $0x10,%r11
mov    0x28(%rax),%r10
mov    %rdx,%rax
add    $0x14,%rax
lea    0xd1e(%rip),%rdi
sub    $0x40,%rsp
mov    %r12,(%rsp)
mov    %r15,0x8(%rsp)
mov    %r14,0x10(%rsp)
mov    %rbx,0x18(%rsp)
mov    %r11,0x20(%rsp)
mov    %r10,0x28(%rsp)
mov    %rax,0x30(%rsp)
call   1070 <scanf@plt>
mov    -0x80(%rbp),%rdi
mov    -0x90(%rbp),%rsi
add    $0x40,%rsp
mov    -0x2c(%rbp),%edx
call   1050 <validateData@plt>
mov    -0x80(%rbp),%rdi
mov    -0x90(%rbp),%rsi
mov    -0x88(%rbp),%rcx
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%edx
mov    -0x60(%rbp),%r8
mov    -0x70(%rbp),%r9
call   1040 <findFaiures@plt>
mov    %eax,-0x30(%rbp)
movsd  -0x58(%rbp),%xmm0
lea    0xccc(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x64(%rbp),%esi
lea    0xcd1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%esi
lea    0xcd5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x30(%rbp),%eax
jge    140c <main+0x2bc>
mov    -0x88(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xcbb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    13d5 <main+0x285>
movl   $0x0,-0x24(%rbp)
movl   $0x1,-0x74(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,%rsp
mov    -0x24(%rbp),%eax
lea    -0x20(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
mov    $0x64,%edi
call   1070 <malloc@plt>
mov    %rax,0x60(%rsp)
test   %rax,%rax
je     138b <main+0x22b>
mov    %rax,%rbx
mov    $0x64,%edi
call   1070 <malloc@plt>
mov    %rax,0x68(%rsp)
test   %rax,%rax
je     138b <main+0x22b>
mov    %rax,%r14
mov    $0x64,%edi
call   1070 <malloc@plt>
mov    %rax,0x70(%rsp)
test   %rax,%rax
je     138b <main+0x22b>
mov    %rax,%r15
mov    $0x64,%edi
call   1070 <malloc@plt>
mov    %rax,0x78(%rsp)
test   %rax,%rax
je     138b <main+0x22b>
mov    %rax,%r12
mov    $0x64,%edi
call   1070 <malloc@plt>
mov    %rax,0x80(%rsp)
test   %rax,%rax
je     138b <main+0x22b>
mov    %rax,%r13
mov    $0x64,%edi
call   1070 <malloc@plt>
mov    %rax,0x88(%rsp)
test   %rax,%rax
je     138b <main+0x22b>
mov    %rax,%rbp
mov    $0x64,%edi
call   1070 <malloc@plt>
mov    %rax,0x30(%rsp)
test   %rax,%rax
je     138b <main+0x22b>
mov    $0x64,%edi
call   1070 <malloc@plt>
mov    %rax,0x38(%rsp)
test   %rax,%rax
je     138b <main+0x22b>
mov    $0x64,%edi
call   1070 <malloc@plt>
mov    %rax,0x40(%rsp)
test   %rax,%rax
je     138b <main+0x22b>
mov    $0x64,%edi
call   1070 <malloc@plt>
mov    %rax,0x48(%rsp)
test   %rax,%rax
je     138b <main+0x22b>
mov    $0x64,%edi
call   1070 <malloc@plt>
mov    %rax,0x50(%rsp)
test   %rax,%rax
je     138b <main+0x22b>
mov    $0x64,%edi
call   1070 <malloc@plt>
mov    %rax,0x58(%rsp)
test   %rax,%rax
je     138b <main+0x22b>
lea    0xdb5(%rip),%rdi
call   1030 <puts@plt>
lea    0x14(%rsp),%r8
lea    0x1c(%rsp),%r11
lea    0x20(%rsp),%rax
lea    0x24(%rsp),%r10
sub    $0x8,%rsp
lea    0xd2c(%rip),%rdi
lea    0x18(%rsp),%rdx
mov    %rbx,%rsi
mov    %r14,%rcx
mov    %r15,%r9
push   %r10
push   %rbp
push   %rax
push   %r13
push   %r11
push   %r12
lea    0x50(%rsp),%rax
push   %rax
call   1080 <scanf@plt>
add    $0x40,%rsp
lea    0x60(%rsp),%rbx
lea    0x10(%rsp),%rbp
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    $0x6,%edx
call   1060 <validateData@plt>
lea    0x30(%rsp),%rcx
lea    0x28(%rsp),%r8
lea    0xc(%rsp),%r9
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1050 <findFaiures@plt>
mov    %eax,%ebp
movsd  0x28(%rsp),%xmm0
lea    0xce4(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    0xc(%rsp),%esi
lea    0xce8(%rip),%rdi
xor    %ebx,%ebx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xced(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
test   %ebp,%ebp
jle    139c <main+0x23c>
mov    %ebp,%r14d
xor    %ebx,%ebx
xor    %ebp,%ebp
mov    0x30(%rsp,%rbp,8),%rdi
call   1030 <puts@plt>
add    $0x1,%rbp
cmp    %rbp,%r14
jne    1376 <main+0x216>
jmp    139c <main+0x23c>
lea    0xd04(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%ebx
mov    %ebx,%eax
add    $0x98,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [27 x i8] c"Memory allocation failed.\0A\00"
@.str.1 = [50 x i8] c"Please enter the names and grades of 6 students.\0A\00"
@.str.2 = [36 x i8] c"%s %d %s %d %s %d %s %d %s %d %s %d\00"
@.str.3 = [22 x i8] c"\0AAverage grade : %lf\0A\00"
@.str.4 = [21 x i8] c"\0AMaximal grade : %d\0A\00"
@.str.5 = [22 x i8] c"\0A%d students failed:\0A\00"
@.str.6 = [4 x i8] c"%s\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i64
%7 = alloca i64
%8 = alloca i64
%9 = alloca double
%10 = alloca double*
%11 = alloca i32
%12 = alloca i32*
%13 = alloca i32
store i32 0, i32* %1
store i32 6, i32* %3
store i32 0, i32* %4
%14 = load i32, i32* %3
%15 = zext i32 %14 to i64
%16 = call i8* @llvm.stacksave()
store i8* %16, i8** %5
%17 = alloca i8*, i64 %15
store i64 %15, i64* %6
%18 = load i32, i32* %3
%19 = zext i32 %18 to i64
%20 = alloca i8*, i64 %19
store i64 %19, i64* %7
%21 = load i32, i32* %3
%22 = zext i32 %21 to i64
%23 = alloca i32, i64 %22
store i64 %22, i64* %8
store double* %9, double** %10
store i32* %11, i32** %12
store i32 0, i32* %2
br label %24
24: ; preds = %42, %0
%25 = load i32, i32* %2
%26 = load i32, i32* %3
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %45
28: ; preds = %24
%29 = call i64 @malloc(i32 100)
%30 = inttoptr i64 %29 to i8*
%31 = load i32, i32* %2
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8*, i8** %17, i64 %32
store i8* %30, i8** %33
%34 = load i32, i32* %2
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8*, i8** %17, i64 %35
%37 = load i8*, i8** %36
%38 = icmp eq i8* %37, null
br i1 %38, label %39, label %41
39: ; preds = %28
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %1
store i32 1, i32* %13
br label %114
41: ; preds = %28
br label %42
42: ; preds = %41
%43 = load i32, i32* %2
%44 = add nsw i32 %43, 1
store i32 %44, i32* %2
br label %24
45: ; preds = %24
store i32 0, i32* %2
br label %46
46: ; preds = %64, %45
%47 = load i32, i32* %2
%48 = load i32, i32* %3
%49 = icmp slt i32 %47, %48
br i1 %49, label %50, label %67
50: ; preds = %46
%51 = call i64 @malloc(i32 100)
%52 = inttoptr i64 %51 to i8*
%53 = load i32, i32* %2
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8*, i8** %20, i64 %54
store i8* %52, i8** %55
%56 = load i32, i32* %2
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i8*, i8** %20, i64 %57
%59 = load i8*, i8** %58
%60 = icmp eq i8* %59, null
br i1 %60, label %61, label %63
61: ; preds = %50
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %1
store i32 1, i32* %13
br label %114
63: ; preds = %50
br label %64
64: ; preds = %63
%65 = load i32, i32* %2
%66 = add nsw i32 %65, 1
store i32 %66, i32* %2
br label %46
67: ; preds = %46
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.1, i64 0, i64 0))
%69 = getelementptr inbounds i8*, i8** %17, i64 0
%70 = load i8*, i8** %69
%71 = getelementptr inbounds i32, i32* %23, i64 0
%72 = getelementptr inbounds i8*, i8** %17, i64 1
%73 = load i8*, i8** %72
%74 = getelementptr inbounds i32, i32* %23, i64 1
%75 = getelementptr inbounds i8*, i8** %17, i64 2
%76 = load i8*, i8** %75
%77 = getelementptr inbounds i32, i32* %23, i64 2
%78 = getelementptr inbounds i8*, i8** %17, i64 3
%79 = load i8*, i8** %78
%80 = getelementptr inbounds i32, i32* %23, i64 3
%81 = getelementptr inbounds i8*, i8** %17, i64 4
%82 = load i8*, i8** %81
%83 = getelementptr inbounds i32, i32* %23, i64 4
%84 = getelementptr inbounds i8*, i8** %17, i64 5
%85 = load i8*, i8** %84
%86 = getelementptr inbounds i32, i32* %23, i64 5
%87 = call i32 @scanf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i8* %70, i32* %71, i8* %73, i32* %74, i8* %76, i32* %77, i8* %79, i32* %80, i8* %82, i32* %83, i8* %85, i32* %86)
%88 = load i32, i32* %3
%89 = call i32 @validateData(i32* %23, i8** %17, i32 %88)
store i32 %89, i32* %3
%90 = load i32, i32* %3
%91 = load double*, double** %10
%92 = load i32*, i32** %12
%93 = call i32 @findFaiures(i32* %23, i8** %17, i32 %90, i8** %20, double* %91, i32* %92)
store i32 %93, i32* %4
%94 = load double, double* %9
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), double %94)
%96 = load i32, i32* %11
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i32 %96)
%98 = load i32, i32* %4
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), i32 %98)
store i32 0, i32* %2
br label %100
100: ; preds = %110, %67
%101 = load i32, i32* %2
%102 = load i32, i32* %4
%103 = icmp slt i32 %101, %102
br i1 %103, label %104, label %113
104: ; preds = %100
%105 = load i32, i32* %2
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds i8*, i8** %20, i64 %106
%108 = load i8*, i8** %107
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8* %108)
br label %110
110: ; preds = %104
%111 = load i32, i32* %2
%112 = add nsw i32 %111, 1
store i32 %112, i32* %2
br label %100
113: ; preds = %100
store i32 0, i32* %1
store i32 1, i32* %13
br label %114
114: ; preds = %113, %61, %39
%115 = load i8*, i8** %5
%116 = load i32, i32* %1
ret i32 %116
}

LLVM IR (-O2):
@.str.2 = [36 x i8] c"%s %d %s %d %s %d %s %d %s %d %s %d\00"
@.str.3 = [22 x i8] c"\0AAverage grade : %lf\0A\00"
@.str.4 = [21 x i8] c"\0AMaximal grade : %d\0A\00"
@.str.5 = [22 x i8] c"\0A%d students failed:\0A\00"
@str = [49 x i8] c"Please enter the names and grades of 6 students.\00"
@str.8 = [26 x i8] c"Memory allocation failed.\00"
define i32 @main() {
%1 = alloca double
%2 = alloca i32
%3 = alloca [6 x i8*]
%4 = alloca [6 x i8*]
%5 = alloca [6 x i32]
%6 = getelementptr inbounds [6 x i32], [6 x i32]* %5, i64 0, i64 0
%7 = getelementptr inbounds [6 x i8*], [6 x i8*]* %4, i64 0, i64 0
%8 = getelementptr inbounds [6 x i8*], [6 x i8*]* %3, i64 0, i64 0
%9 = bitcast double* %1 to i8*
%10 = bitcast i32* %2 to i8*
%11 = tail call i64 @malloc(i32 100)
%12 = inttoptr i64 %11 to i8*
store i8* %12, i8** %8
%13 = icmp eq i64 %11, 0
br i1 %13, label %93, label %14
14: ; preds = %0
%15 = tail call i64 @malloc(i32 100)
%16 = inttoptr i64 %15 to i8*
%17 = getelementptr inbounds [6 x i8*], [6 x i8*]* %3, i64 0, i64 1
store i8* %16, i8** %17
%18 = icmp eq i64 %15, 0
br i1 %18, label %93, label %19
19: ; preds = %14
%20 = tail call i64 @malloc(i32 100)
%21 = inttoptr i64 %20 to i8*
%22 = getelementptr inbounds [6 x i8*], [6 x i8*]* %3, i64 0, i64 2
store i8* %21, i8** %22
%23 = icmp eq i64 %20, 0
br i1 %23, label %93, label %24
24: ; preds = %19
%25 = tail call i64 @malloc(i32 100)
%26 = inttoptr i64 %25 to i8*
%27 = getelementptr inbounds [6 x i8*], [6 x i8*]* %3, i64 0, i64 3
store i8* %26, i8** %27
%28 = icmp eq i64 %25, 0
br i1 %28, label %93, label %29
29: ; preds = %24
%30 = tail call i64 @malloc(i32 100)
%31 = inttoptr i64 %30 to i8*
%32 = getelementptr inbounds [6 x i8*], [6 x i8*]* %3, i64 0, i64 4
store i8* %31, i8** %32
%33 = icmp eq i64 %30, 0
br i1 %33, label %93, label %34
34: ; preds = %29
%35 = tail call i64 @malloc(i32 100)
%36 = inttoptr i64 %35 to i8*
%37 = getelementptr inbounds [6 x i8*], [6 x i8*]* %3, i64 0, i64 5
store i8* %36, i8** %37
%38 = icmp eq i64 %35, 0
br i1 %38, label %93, label %39
39: ; preds = %34
%40 = tail call i64 @malloc(i32 100)
%41 = inttoptr i64 %40 to i8*
store i8* %41, i8** %7
%42 = icmp eq i64 %40, 0
br i1 %42, label %93, label %43
43: ; preds = %39
%44 = tail call i64 @malloc(i32 100)
%45 = inttoptr i64 %44 to i8*
%46 = getelementptr inbounds [6 x i8*], [6 x i8*]* %4, i64 0, i64 1
store i8* %45, i8** %46
%47 = icmp eq i64 %44, 0
br i1 %47, label %93, label %48
48: ; preds = %43
%49 = tail call i64 @malloc(i32 100)
%50 = inttoptr i64 %49 to i8*
%51 = getelementptr inbounds [6 x i8*], [6 x i8*]* %4, i64 0, i64 2
store i8* %50, i8** %51
%52 = icmp eq i64 %49, 0
br i1 %52, label %93, label %53
53: ; preds = %48
%54 = tail call i64 @malloc(i32 100)
%55 = inttoptr i64 %54 to i8*
%56 = getelementptr inbounds [6 x i8*], [6 x i8*]* %4, i64 0, i64 3
store i8* %55, i8** %56
%57 = icmp eq i64 %54, 0
br i1 %57, label %93, label %58
58: ; preds = %53
%59 = tail call i64 @malloc(i32 100)
%60 = inttoptr i64 %59 to i8*
%61 = getelementptr inbounds [6 x i8*], [6 x i8*]* %4, i64 0, i64 4
store i8* %60, i8** %61
%62 = icmp eq i64 %59, 0
br i1 %62, label %93, label %63
63: ; preds = %58
%64 = tail call i64 @malloc(i32 100)
%65 = inttoptr i64 %64 to i8*
%66 = getelementptr inbounds [6 x i8*], [6 x i8*]* %4, i64 0, i64 5
store i8* %65, i8** %66
%67 = icmp eq i64 %64, 0
br i1 %67, label %93, label %68
68: ; preds = %63
%69 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str, i64 0, i64 0))
%70 = getelementptr inbounds [6 x i32], [6 x i32]* %5, i64 0, i64 1
%71 = getelementptr inbounds [6 x i32], [6 x i32]* %5, i64 0, i64 2
%72 = getelementptr inbounds [6 x i32], [6 x i32]* %5, i64 0, i64 3
%73 = getelementptr inbounds [6 x i32], [6 x i32]* %5, i64 0, i64 4
%74 = getelementptr inbounds [6 x i32], [6 x i32]* %5, i64 0, i64 5
%75 = call i32 @scanf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i8* %12, i32* %6, i8* %16, i32* %70, i8* %21, i32* %71, i8* %26, i32* %72, i8* %31, i32* %73, i8* %36, i32* %74)
%76 = call i32 @validateData(i32* %6, i8** %8, i32 6)
%77 = call i32 @findFaiures(i32* %6, i8** %8, i32 %76, i8** %7, double* %1, i32* %2)
%78 = load double, double* %1
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), double %78)
%80 = load i32, i32* %2
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i32 %80)
%82 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), i32 %77)
%83 = icmp sgt i32 %77, 0
br i1 %83, label %84, label %96
84: ; preds = %68
%85 = zext i32 %77 to i64
br label %86
86: ; preds = %84, %86
%87 = phi i64 [ 0, %84 ], [ %91, %86 ]
%88 = getelementptr inbounds [6 x i8*], [6 x i8*]* %4, i64 0, i64 %87
%89 = load i8*, i8** %88
%90 = call i32 @puts(i8* dereferenceable(1) %89)
%91 = add nuw nsw i64 %87, 1
%92 = icmp eq i64 %91, %85
br i1 %92, label %96, label %86
93: ; preds = %39, %43, %48, %53, %58, %63, %0, %14, %19, %24, %29, %34
%94 = phi i8* [ getelementptr inbounds ([26 x i8], [26 x i8]* @str.8, i64 0, i64 0), %34 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @str.8, i64 0, i64 0), %29 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @str.8, i64 0, i64 0), %24 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @str.8, i64 0, i64 0), %19 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @str.8, i64 0, i64 0), %14 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @str.8, i64 0, i64 0), %0 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @str.8, i64 0, i64 0), %63 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @str.8, i64 0, i64 0), %58 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @str.8, i64 0, i64 0), %53 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @str.8, i64 0, i64 0), %48 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @str.8, i64 0, i64 0), %43 ], [ getelementptr inbounds ([26 x i8], [26 x i8]* @str.8, i64 0, i64 0), %39 ]
%95 = tail call i32 @puts(i8* dereferenceable(1) %94)
br label %96
96: ; preds = %86, %93, %68
%97 = phi i32 [ 0, %68 ], [ 1, %93 ], [ 0, %86 ]
ret i32 %97
}