#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 /*<<< orphan*/ printf(char *, ...);
int process(char *, char *);
int /*<<< orphan*/ scanf(char *, ...);
int main(int argc, char *argv[]) {
  int n, i, aluno, pontos, lol;
  char gabarito[30];
  char resp[30];
  printf("Digite o numero de alunos:\n");
  scanf("%d", &n);
  printf("Obs.:o gabarito deverá ser constituido das letras: a,b,c,d,e\n");
  printf("Digite a letra das questões do gabarito da prova:\n");
  for (i = 0; i < 30; i++)
    scanf(" %c", &gabarito[i]);
  for (aluno = 1; aluno <= n; aluno++) {
    pontos = 0;
    printf("Obs.:o gabarito deverá ser constituido das letras: a,b,c,d,e\n");
    printf("Digite as letras correspondentes as respostas do aluno %d:\n ",
           aluno);
    for (i = 0; i < 30; i++) {
      scanf(" %c", &resp[i]);
    }
    lol = process(resp, gabarito);
    printf("gabarito da prova:\tgabarito do aluno:\n");
    for (i = 0; i < 30; ++i) {
      printf("\t\t%c\n\t\t\t%c\n", gabarito[i], resp[i]);
    }
    printf("\tO aluno %d fez %d pontos\n", aluno, lol);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xeb3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec1(%rip),%rdi
lea    -0x14(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
lea    0xeb2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x18(%rbp)
cmpl   $0x1e,-0x18(%rbp)
jge    11ba <main+0x8a>
movslq -0x18(%rbp),%rax
lea    -0x50(%rbp),%rsi
add    %rax,%rsi
lea    0xeed(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1189 <main+0x59>
movl   $0x1,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jg     12aa <main+0x17a>
movl   $0x0,-0x20(%rbp)
lea    0xe44(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%esi
lea    0xeaa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x18(%rbp)
cmpl   $0x1e,-0x18(%rbp)
jge    122b <main+0xfb>
movslq -0x18(%rbp),%rax
lea    -0x70(%rbp),%rsi
add    %rax,%rsi
lea    0xe7c(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11fa <main+0xca>
lea    -0x70(%rbp),%rdi
lea    -0x50(%rbp),%rsi
call   1040 <process@plt>
mov    %eax,-0x24(%rbp)
lea    0xe91(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x18(%rbp)
cmpl   $0x1e,-0x18(%rbp)
jge    1288 <main+0x158>
movslq -0x18(%rbp),%rax
movsbl -0x50(%rbp,%rax,1),%esi
movslq -0x18(%rbp),%rax
movsbl -0x70(%rbp,%rax,1),%edx
lea    0xe87(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1250 <main+0x120>
mov    -0x1c(%rbp),%esi
mov    -0x24(%rbp),%edx
lea    0xe71(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11c1 <main+0x91>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
lea    0xf16(%rip),%rdi
call   1030 <puts@plt>
lea    0xe9f(%rip),%rdi
lea    0x44(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xf45(%rip),%rdi
call   1030 <puts@plt>
lea    0xf06(%rip),%rdi
call   1030 <puts@plt>
lea    0xe77(%rip),%rbx
mov    %rsp,%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0x1(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0x2(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0x3(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0x5(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0x6(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0x7(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0x9(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xa(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xb(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xd(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xe(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xf(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0x11(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0x12(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0x13(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0x15(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0x16(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0x17(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0x18(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0x19(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0x1a(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0x1b(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0x1c(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0x1d(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <scanf@plt>
cmpl   $0x0,0x44(%rsp)
jle    15af <main+0x46f>
mov    $0x1,%ebp
lea    0xca0(%rip),%r12
lea    0x20(%rsp),%r13
lea    0xcd5(%rip),%r15
nop
lea    0xd42(%rip),%rdi
call   1030 <puts@plt>
lea    0xc84(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %r12,%rdi
lea    0x21(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %r12,%rdi
lea    0x22(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %r12,%rdi
lea    0x23(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %r12,%rdi
lea    0x24(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %r12,%rdi
lea    0x25(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %r12,%rdi
lea    0x26(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %r12,%rdi
lea    0x27(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %r12,%rdi
lea    0x28(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %r12,%rdi
lea    0x29(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %r12,%rdi
lea    0x2a(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %r12,%rdi
lea    0x2b(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %r12,%rdi
lea    0x2c(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %r12,%rdi
lea    0x2d(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %r12,%rdi
lea    0x2e(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %r12,%rdi
lea    0x2f(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %r12,%rdi
lea    0x30(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %r12,%rdi
lea    0x31(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %r12,%rdi
lea    0x32(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %r12,%rdi
lea    0x33(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %r12,%rdi
lea    0x34(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %r12,%rdi
lea    0x35(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %r12,%rdi
lea    0x36(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %r12,%rdi
lea    0x37(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %r12,%rdi
lea    0x38(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %r12,%rdi
lea    0x39(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %r12,%rdi
lea    0x3a(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %r12,%rdi
lea    0x3b(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %r12,%rdi
lea    0x3c(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %r12,%rdi
lea    0x3d(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    %r13,%rdi
mov    %rsp,%rsi
call   1050 <process@plt>
mov    %eax,%r14d
lea    0xb96(%rip),%rdi
call   1030 <puts@plt>
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
movsbl (%rsp,%rbx,1),%esi
movsbl 0x20(%rsp,%rbx,1),%edx
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%rbx
cmp    $0x1e,%rbx
jne    1570 <main+0x430>
lea    0xabc(%rip),%rdi
mov    %ebp,%esi
mov    %r14d,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1(%rbp),%eax
cmp    0x44(%rsp),%ebp
mov    %eax,%ebp
jl     1370 <main+0x230>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [28 x i8] c"Digite o numero de alunos:\0A\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [63 x i8] c"Obs.:o gabarito dever\C3\A1 ser constituido das letras: a,b,c,d,e\0A\00"
@.str.3 = [52 x i8] c"Digite a letra das quest\C3\B5es do gabarito da prova:\0A\00"
@.str.4 = [4 x i8] c" %c\00"
@.str.5 = [61 x i8] c"Digite as letras correspondentes as respostas do aluno %d:\0A \00"
@.str.6 = [39 x i8] c"gabarito da prova:\09gabarito do aluno:\0A\00"
@.str.7 = [12 x i8] c"\09\09%c\0A\09\09\09%c\0A\00"
@.str.8 = [27 x i8] c"\09O aluno %d fez %d pontos\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 i32
%10 = alloca i32
%11 = alloca [30 x i8]
%12 = alloca [30 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
%14 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %6)
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.2, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %7
br label %17
17: ; preds = %25, %2
%18 = load i32, i32* %7
%19 = icmp slt i32 %18, 30
br i1 %19, label %20, label %28
20: ; preds = %17
%21 = load i32, i32* %7
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [30 x i8], [30 x i8]* %11, i64 0, i64 %22
%24 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %23)
br label %25
25: ; preds = %20
%26 = load i32, i32* %7
%27 = add nsw i32 %26, 1
store i32 %27, i32* %7
br label %17
28: ; preds = %17
store i32 1, i32* %8
br label %29
29: ; preds = %75, %28
%30 = load i32, i32* %8
%31 = load i32, i32* %6
%32 = icmp sle i32 %30, %31
br i1 %32, label %33, label %78
33: ; preds = %29
store i32 0, i32* %9
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.2, i64 0, i64 0))
%35 = load i32, i32* %8
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.5, i64 0, i64 0), i32 %35)
store i32 0, i32* %7
br label %37
37: ; preds = %45, %33
%38 = load i32, i32* %7
%39 = icmp slt i32 %38, 30
br i1 %39, label %40, label %48
40: ; preds = %37
%41 = load i32, i32* %7
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [30 x i8], [30 x i8]* %12, i64 0, i64 %42
%44 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %43)
br label %45
45: ; preds = %40
%46 = load i32, i32* %7
%47 = add nsw i32 %46, 1
store i32 %47, i32* %7
br label %37
48: ; preds = %37
%49 = getelementptr inbounds [30 x i8], [30 x i8]* %12, i64 0, i64 0
%50 = getelementptr inbounds [30 x i8], [30 x i8]* %11, i64 0, i64 0
%51 = call i32 @process(i8* %49, i8* %50)
store i32 %51, i32* %10
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %7
br label %53
53: ; preds = %68, %48
%54 = load i32, i32* %7
%55 = icmp slt i32 %54, 30
br i1 %55, label %56, label %71
56: ; preds = %53
%57 = load i32, i32* %7
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [30 x i8], [30 x i8]* %11, i64 0, i64 %58
%60 = load i8, i8* %59
%61 = sext i8 %60 to i32
%62 = load i32, i32* %7
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [30 x i8], [30 x i8]* %12, i64 0, i64 %63
%65 = load i8, i8* %64
%66 = sext i8 %65 to i32
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i32 %61, i32 %66)
br label %68
68: ; preds = %56
%69 = load i32, i32* %7
%70 = add nsw i32 %69, 1
store i32 %70, i32* %7
br label %53
71: ; preds = %53
%72 = load i32, i32* %8
%73 = load i32, i32* %10
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0), i32 %72, i32 %73)
br label %75
75: ; preds = %71
%76 = load i32, i32* %8
%77 = add nsw i32 %76, 1
store i32 %77, i32* %8
br label %29
78: ; preds = %29
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%d\00"
@.str.4 = [4 x i8] c" %c\00"
@.str.5 = [61 x i8] c"Digite as letras correspondentes as respostas do aluno %d:\0A \00"
@.str.7 = [12 x i8] c"\09\09%c\0A\09\09\09%c\0A\00"
@.str.8 = [27 x i8] c"\09O aluno %d fez %d pontos\0A\00"
@str = [27 x i8] c"Digite o numero de alunos:\00"
@str.10 = [51 x i8] c"Digite a letra das quest\C3\B5es do gabarito da prova:\00"
@str.11 = [62 x i8] c"Obs.:o gabarito dever\C3\A1 ser constituido das letras: a,b,c,d,e\00"
@str.12 = [38 x i8] c"gabarito da prova:\09gabarito do aluno:\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = alloca [30 x i8]
%5 = alloca [30 x i8]
%6 = bitcast i32* %3 to i8*
%7 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 0
%8 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 0
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str, i64 0, i64 0))
%10 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%11 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.11, i64 0, i64 0))
%12 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.10, i64 0, i64 0))
%13 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %7)
%14 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 1
%15 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %14)
%16 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 2
%17 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %16)
%18 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 3
%19 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %18)
%20 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 4
%21 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %20)
%22 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 5
%23 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %22)
%24 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 6
%25 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %24)
%26 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 7
%27 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %26)
%28 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 8
%29 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %28)
%30 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 9
%31 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %30)
%32 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 10
%33 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %32)
%34 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 11
%35 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %34)
%36 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 12
%37 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %36)
%38 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 13
%39 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %38)
%40 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 14
%41 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %40)
%42 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 15
%43 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %42)
%44 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 16
%45 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %44)
%46 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 17
%47 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %46)
%48 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 18
%49 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %48)
%50 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 19
%51 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %50)
%52 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 20
%53 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %52)
%54 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 21
%55 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %54)
%56 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 22
%57 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %56)
%58 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 23
%59 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %58)
%60 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 24
%61 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %60)
%62 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 25
%63 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %62)
%64 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 26
%65 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %64)
%66 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 27
%67 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %66)
%68 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 28
%69 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %68)
%70 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 29
%71 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %70)
%72 = load i32, i32* %3
%73 = icmp slt i32 %72, 1
br i1 %73, label %156, label %74
74: ; preds = %2
%75 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 1
%76 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 2
%77 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 3
%78 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 4
%79 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 5
%80 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 6
%81 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 7
%82 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 8
%83 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 9
%84 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 10
%85 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 11
%86 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 12
%87 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 13
%88 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 14
%89 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 15
%90 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 16
%91 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 17
%92 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 18
%93 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 19
%94 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 20
%95 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 21
%96 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 22
%97 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 23
%98 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 24
%99 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 25
%100 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 26
%101 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 27
%102 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 28
%103 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 29
br label %104
104: ; preds = %74, %151
%105 = phi i32 [ %153, %151 ], [ 1, %74 ]
%106 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.11, i64 0, i64 0))
%107 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @.str.5, i64 0, i64 0), i32 %105)
%108 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %8)
%109 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %75)
%110 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %76)
%111 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %77)
%112 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %78)
%113 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %79)
%114 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %80)
%115 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %81)
%116 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %82)
%117 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %83)
%118 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %84)
%119 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %85)
%120 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %86)
%121 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %87)
%122 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %88)
%123 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %89)
%124 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %90)
%125 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %91)
%126 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %92)
%127 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %93)
%128 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %94)
%129 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %95)
%130 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %96)
%131 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %97)
%132 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %98)
%133 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %99)
%134 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %100)
%135 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %101)
%136 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %102)
%137 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %103)
%138 = call i32 @process(i8* %8, i8* %7)
%139 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.12, i64 0, i64 0))
br label %140
140: ; preds = %104, %140
%141 = phi i64 [ 0, %104 ], [ %149, %140 ]
%142 = getelementptr inbounds [30 x i8], [30 x i8]* %4, i64 0, i64 %141
%143 = load i8, i8* %142
%144 = sext i8 %143 to i32
%145 = getelementptr inbounds [30 x i8], [30 x i8]* %5, i64 0, i64 %141
%146 = load i8, i8* %145
%147 = sext i8 %146 to i32
%148 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i32 %144, i32 %147)
%149 = add nuw nsw i64 %141, 1
%150 = icmp eq i64 %149, 30
br i1 %150, label %151, label %140
151: ; preds = %140
%152 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0), i32 %105, i32 %138)
%153 = add nuw nsw i32 %105, 1
%154 = load i32, i32* %3
%155 = icmp slt i32 %105, %154
br i1 %155, label %104, label %156
156: ; preds = %151, %2
ret i32 0
}