#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*/ LC_ALL;
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int /*<<< orphan*/ setlocale(int /*<<< orphan*/, char *);
int /*<<< orphan*/ system(char *);
int main() {
  int codCidade[5], numVeiculos[5], acidentesV[5], i;
  float mediaVeiculos = 0;
  setlocale(LC_ALL, "Portuguese");
  for (i = 1; i <= 5; i++) {
    printf("Digite o código da cidade %d : ", i);
    scanf("%d", &codCidade[i]);
    printf("Número de veículos de passeios %d : ", i);
    scanf("%d", &numVeiculos[i]);
    printf("Número de acidentes(Com vítimas) : ");
    scanf("%d", &acidentesV[i]);
    printf("\n");
  }
  if (acidentesV[1] > acidentesV[2] && acidentesV[1] > acidentesV[3] &&
      acidentesV[1] > acidentesV[4] && acidentesV[1] > acidentesV[5]) {
    printf("O valor maior de acidentes foi : %d\n", acidentesV[1]);
    printf("CIDADE CÓDIGO: %d\n", codCidade[1]);
  } else if (acidentesV[2] > acidentesV[1] && acidentesV[2] > acidentesV[3] &&
             acidentesV[2] > acidentesV[4] && acidentesV[2] > acidentesV[5]) {
    printf("O valor maior de acidentes foi : %d\n", acidentesV[2]);
    printf("CIDADE CÓDIGO: %d\n", codCidade[2]);
  } else if (acidentesV[3] > acidentesV[1] && acidentesV[3] > acidentesV[2] &&
             acidentesV[3] > acidentesV[4] && acidentesV[3] > acidentesV[5]) {
    printf("O valor maior de acidentes foi : %d\n", acidentesV[3]);
    printf("CIDADE CÓDIGO: %d\n", codCidade[3]);
  } else if (acidentesV[4] > acidentesV[1] && acidentesV[4] > acidentesV[3] &&
             acidentesV[4] > acidentesV[2] && acidentesV[4] > acidentesV[5]) {
    printf("O valor maior de acidentes foi : %d\n", acidentesV[4]);
    printf("CIDADE CÓDIGO: %d\n", codCidade[4]);
  } else if (acidentesV[5] > acidentesV[1] && acidentesV[5] > acidentesV[3] &&
             acidentesV[5] > acidentesV[4] && acidentesV[5] > acidentesV[2]) {
    printf("O valor maior de acidentes foi : %d\n", acidentesV[5]);
    printf("CIDADE CÓDIGO: %d\n", codCidade[5]);
  } else {
    printf("Todos os valores são iguais a : %d\n\n", acidentesV[1]);
  }
  mediaVeiculos = (numVeiculos[1] + numVeiculos[2] + numVeiculos[3] +
                   numVeiculos[4] + numVeiculos[5]) /
                  5;
  printf("Média de Carros nas 5 cidade : %f", mediaVeiculos);
  system("pause");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x68(%rbp)
mov    0x2e82(%rip),%rax
mov    (%rax),%edi
lea    0xe99(%rip),%rsi
call   1050 <setlocale@plt>
movl   $0x1,-0x64(%rbp)
cmpl   $0x5,-0x64(%rbp)
jg     121a <main+0xda>
mov    -0x64(%rbp),%esi
lea    0xe84(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movslq -0x64(%rbp),%rax
lea    -0x20(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe88(%rip),%rdi
call   1060 <scanf@plt>
mov    -0x64(%rbp),%esi
lea    0xe7c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movslq -0x64(%rbp),%rax
lea    -0x40(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe5c(%rip),%rdi
call   1060 <scanf@plt>
lea    0xe7a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movslq -0x64(%rbp),%rax
lea    -0x60(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe33(%rip),%rdi
call   1060 <scanf@plt>
lea    0xed4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    1173 <main+0x33>
mov    -0x5c(%rbp),%eax
cmp    -0x58(%rbp),%eax
jle    1271 <main+0x131>
mov    -0x5c(%rbp),%eax
cmp    -0x54(%rbp),%eax
jle    1271 <main+0x131>
mov    -0x5c(%rbp),%eax
cmp    -0x50(%rbp),%eax
jle    1271 <main+0x131>
mov    -0x5c(%rbp),%eax
cmp    -0x4c(%rbp),%eax
jle    1271 <main+0x131>
mov    -0x5c(%rbp),%esi
lea    0xe28(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x1c(%rbp),%esi
lea    0xe3c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13f2 <main+0x2b2>
mov    -0x58(%rbp),%eax
cmp    -0x5c(%rbp),%eax
jle    12c8 <main+0x188>
mov    -0x58(%rbp),%eax
cmp    -0x54(%rbp),%eax
jle    12c8 <main+0x188>
mov    -0x58(%rbp),%eax
cmp    -0x50(%rbp),%eax
jle    12c8 <main+0x188>
mov    -0x58(%rbp),%eax
cmp    -0x4c(%rbp),%eax
jle    12c8 <main+0x188>
mov    -0x58(%rbp),%esi
lea    0xdd1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%esi
lea    0xde5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13ed <main+0x2ad>
mov    -0x54(%rbp),%eax
cmp    -0x5c(%rbp),%eax
jle    131f <main+0x1df>
mov    -0x54(%rbp),%eax
cmp    -0x58(%rbp),%eax
jle    131f <main+0x1df>
mov    -0x54(%rbp),%eax
cmp    -0x50(%rbp),%eax
jle    131f <main+0x1df>
mov    -0x54(%rbp),%eax
cmp    -0x4c(%rbp),%eax
jle    131f <main+0x1df>
mov    -0x54(%rbp),%esi
lea    0xd7a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%esi
lea    0xd8e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13e8 <main+0x2a8>
mov    -0x50(%rbp),%eax
cmp    -0x5c(%rbp),%eax
jle    1376 <main+0x236>
mov    -0x50(%rbp),%eax
cmp    -0x54(%rbp),%eax
jle    1376 <main+0x236>
mov    -0x50(%rbp),%eax
cmp    -0x58(%rbp),%eax
jle    1376 <main+0x236>
mov    -0x50(%rbp),%eax
cmp    -0x4c(%rbp),%eax
jle    1376 <main+0x236>
mov    -0x50(%rbp),%esi
lea    0xd23(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%esi
lea    0xd37(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13e3 <main+0x2a3>
mov    -0x4c(%rbp),%eax
cmp    -0x5c(%rbp),%eax
jle    13cd <main+0x28d>
mov    -0x4c(%rbp),%eax
cmp    -0x54(%rbp),%eax
jle    13cd <main+0x28d>
mov    -0x4c(%rbp),%eax
cmp    -0x50(%rbp),%eax
jle    13cd <main+0x28d>
mov    -0x4c(%rbp),%eax
cmp    -0x58(%rbp),%eax
jle    13cd <main+0x28d>
mov    -0x4c(%rbp),%esi
lea    0xccc(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0xc(%rbp),%esi
lea    0xce0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13de <main+0x29e>
mov    -0x5c(%rbp),%esi
lea    0xcde(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13e3 <main+0x2a3>
jmp    13e8 <main+0x2a8>
jmp    13ed <main+0x2ad>
jmp    13f2 <main+0x2b2>
mov    -0x3c(%rbp),%eax
add    -0x38(%rbp),%eax
add    -0x34(%rbp),%eax
add    -0x30(%rbp),%eax
add    -0x2c(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cvtsi2ss %eax,%xmm0
movss  %xmm0,-0x68(%rbp)
movss  -0x68(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcb9(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xcce(%rip),%rdi
call   1030 <system@plt>
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    0x2e7e(%rip),%rax
mov    (%rax),%edi
lea    0xe95(%rip),%rsi
call   1060 <setlocale@plt>
lea    0xe94(%rip),%r14
mov    %r14,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x24(%rsp),%rsi
lea    0xe9a(%rip),%rbx
mov    %rbx,%rdi
call   1070 <scanf@plt>
lea    0xe8e(%rip),%r15
mov    %r15,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x44(%rsp),%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
lea    0xe92(%rip),%r12
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %r14,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x28(%rsp),%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
mov    %r15,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x48(%rsp),%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %r14,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x2c(%rsp),%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
mov    %r15,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x4c(%rsp),%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %r14,%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x30(%rsp),%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
mov    %r15,%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x50(%rsp),%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %r14,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x34(%rsp),%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
mov    %r15,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x54(%rsp),%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
call   1070 <scanf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x4(%rsp),%esi
mov    0x8(%rsp),%eax
mov    0xc(%rsp),%edx
mov    0x10(%rsp),%ecx
cmp    %eax,%esi
jle    1389 <main+0x239>
cmp    %edx,%esi
jle    1389 <main+0x239>
cmp    %ecx,%esi
jle    1389 <main+0x239>
cmp    0x14(%rsp),%esi
jle    1389 <main+0x239>
lea    0xd0a(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x24(%rsp),%esi
lea    0xd1d(%rip),%rdi
jmp    144f <main+0x2ff>
cmp    %esi,%eax
jle    13bb <main+0x26b>
cmp    %edx,%eax
jle    13bb <main+0x26b>
cmp    %ecx,%eax
jle    13bb <main+0x26b>
cmp    0x14(%rsp),%eax
jle    13bb <main+0x26b>
lea    0xcda(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x28(%rsp),%esi
lea    0xceb(%rip),%rdi
jmp    144f <main+0x2ff>
cmp    %esi,%edx
jle    13ea <main+0x29a>
cmp    %eax,%edx
jle    13ea <main+0x29a>
cmp    %ecx,%edx
jle    13ea <main+0x29a>
cmp    0x14(%rsp),%edx
jle    13ea <main+0x29a>
lea    0xca8(%rip),%rdi
mov    %edx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2c(%rsp),%esi
lea    0xcb9(%rip),%rdi
jmp    144f <main+0x2ff>
mov    0x14(%rsp),%ebx
cmp    %esi,%ecx
jle    141b <main+0x2cb>
cmp    %edx,%ecx
jle    141b <main+0x2cb>
cmp    %eax,%ecx
jle    141b <main+0x2cb>
cmp    %ebx,%ecx
jle    141b <main+0x2cb>
lea    0xc77(%rip),%rdi
mov    %ecx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x30(%rsp),%esi
lea    0xc88(%rip),%rdi
jmp    144f <main+0x2ff>
cmp    %esi,%ebx
jle    1448 <main+0x2f8>
cmp    %edx,%ebx
jle    1448 <main+0x2f8>
cmp    %ecx,%ebx
jle    1448 <main+0x2f8>
cmp    %eax,%ebx
jle    1448 <main+0x2f8>
lea    0xc4a(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x34(%rsp),%esi
lea    0xc5b(%rip),%rdi
jmp    144f <main+0x2ff>
lea    0xc66(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
movdqu 0x44(%rsp),%xmm0
pshufd $0xee,%xmm0,%xmm1
paddd  %xmm0,%xmm1
pshufd $0x55,%xmm1,%xmm0
paddd  %xmm1,%xmm0
movd   %xmm0,%eax
add    0x54(%rsp),%eax
cltq
imul   $0x66666667,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x21,%rax
add    %ecx,%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc3d(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xc52(%rip),%rdi
call   1040 <system@plt>
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@LC_ALL = global i32 0
@.str = [11 x i8] c"Portuguese\00"
@.str.1 = [33 x i8] c"Digite o c\C3\B3digo da cidade %d : \00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [39 x i8] c"N\C3\BAmero de ve\C3\ADculos de passeios %d : \00"
@.str.4 = [38 x i8] c"N\C3\BAmero de acidentes(Com v\C3\ADtimas) : \00"
@.str.5 = [2 x i8] c"\0A\00"
@.str.6 = [37 x i8] c"O valor maior de acidentes foi : %d\0A\00"
@.str.7 = [20 x i8] c"CIDADE C\C3\93DIGO: %d\0A\00"
@.str.8 = [38 x i8] c"Todos os valores s\C3\A3o iguais a : %d\0A\0A\00"
@.str.9 = [35 x i8] c"M\C3\A9dia de Carros nas 5 cidade : %f\00"
@.str.10 = [6 x i8] c"pause\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [5 x i32]
%3 = alloca [5 x i32]
%4 = alloca [5 x i32]
%5 = alloca i32
%6 = alloca float
store i32 0, i32* %1
store float 0.000000e+00, float* %6
%7 = load i32, i32* @LC_ALL
%8 = call i32 @setlocale(i32 %7, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %5
br label %9
9: ; preds = %31, %0
%10 = load i32, i32* %5
%11 = icmp sle i32 %10, 5
br i1 %11, label %12, label %34
12: ; preds = %9
%13 = load i32, i32* %5
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i32 %13)
%15 = load i32, i32* %5
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 %16
%18 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %17)
%19 = load i32, i32* %5
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0), i32 %19)
%21 = load i32, i32* %5
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 %22
%24 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %23)
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0))
%26 = load i32, i32* %5
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 %27
%29 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %28)
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
br label %31
31: ; preds = %12
%32 = load i32, i32* %5
%33 = add nsw i32 %32, 1
store i32 %33, i32* %5
br label %9
34: ; preds = %9
%35 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 1
%36 = load i32, i32* %35
%37 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 2
%38 = load i32, i32* %37
%39 = icmp sgt i32 %36, %38
br i1 %39, label %40, label %65
40: ; preds = %34
%41 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 1
%42 = load i32, i32* %41
%43 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 3
%44 = load i32, i32* %43
%45 = icmp sgt i32 %42, %44
br i1 %45, label %46, label %65
46: ; preds = %40
%47 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 1
%48 = load i32, i32* %47
%49 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 4
%50 = load i32, i32* %49
%51 = icmp sgt i32 %48, %50
br i1 %51, label %52, label %65
52: ; preds = %46
%53 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 1
%54 = load i32, i32* %53
%55 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 5
%56 = load i32, i32* %55
%57 = icmp sgt i32 %54, %56
br i1 %57, label %58, label %65
58: ; preds = %52
%59 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 1
%60 = load i32, i32* %59
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), i32 %60)
%62 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 1
%63 = load i32, i32* %62
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i32 %63)
br label %197
65: ; preds = %52, %46, %40, %34
%66 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 2
%67 = load i32, i32* %66
%68 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 1
%69 = load i32, i32* %68
%70 = icmp sgt i32 %67, %69
br i1 %70, label %71, label %96
71: ; preds = %65
%72 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 2
%73 = load i32, i32* %72
%74 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 3
%75 = load i32, i32* %74
%76 = icmp sgt i32 %73, %75
br i1 %76, label %77, label %96
77: ; preds = %71
%78 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 2
%79 = load i32, i32* %78
%80 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 4
%81 = load i32, i32* %80
%82 = icmp sgt i32 %79, %81
br i1 %82, label %83, label %96
83: ; preds = %77
%84 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 2
%85 = load i32, i32* %84
%86 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 5
%87 = load i32, i32* %86
%88 = icmp sgt i32 %85, %87
br i1 %88, label %89, label %96
89: ; preds = %83
%90 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 2
%91 = load i32, i32* %90
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), i32 %91)
%93 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 2
%94 = load i32, i32* %93
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i32 %94)
br label %196
96: ; preds = %83, %77, %71, %65
%97 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 3
%98 = load i32, i32* %97
%99 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 1
%100 = load i32, i32* %99
%101 = icmp sgt i32 %98, %100
br i1 %101, label %102, label %127
102: ; preds = %96
%103 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 3
%104 = load i32, i32* %103
%105 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 2
%106 = load i32, i32* %105
%107 = icmp sgt i32 %104, %106
br i1 %107, label %108, label %127
108: ; preds = %102
%109 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 3
%110 = load i32, i32* %109
%111 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 4
%112 = load i32, i32* %111
%113 = icmp sgt i32 %110, %112
br i1 %113, label %114, label %127
114: ; preds = %108
%115 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 3
%116 = load i32, i32* %115
%117 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 5
%118 = load i32, i32* %117
%119 = icmp sgt i32 %116, %118
br i1 %119, label %120, label %127
120: ; preds = %114
%121 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 3
%122 = load i32, i32* %121
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), i32 %122)
%124 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 3
%125 = load i32, i32* %124
%126 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i32 %125)
br label %195
127: ; preds = %114, %108, %102, %96
%128 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 4
%129 = load i32, i32* %128
%130 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 1
%131 = load i32, i32* %130
%132 = icmp sgt i32 %129, %131
br i1 %132, label %133, label %158
133: ; preds = %127
%134 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 4
%135 = load i32, i32* %134
%136 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 3
%137 = load i32, i32* %136
%138 = icmp sgt i32 %135, %137
br i1 %138, label %139, label %158
139: ; preds = %133
%140 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 4
%141 = load i32, i32* %140
%142 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 2
%143 = load i32, i32* %142
%144 = icmp sgt i32 %141, %143
br i1 %144, label %145, label %158
145: ; preds = %139
%146 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 4
%147 = load i32, i32* %146
%148 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 5
%149 = load i32, i32* %148
%150 = icmp sgt i32 %147, %149
br i1 %150, label %151, label %158
151: ; preds = %145
%152 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 4
%153 = load i32, i32* %152
%154 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), i32 %153)
%155 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 4
%156 = load i32, i32* %155
%157 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i32 %156)
br label %194
158: ; preds = %145, %139, %133, %127
%159 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 5
%160 = load i32, i32* %159
%161 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 1
%162 = load i32, i32* %161
%163 = icmp sgt i32 %160, %162
br i1 %163, label %164, label %189
164: ; preds = %158
%165 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 5
%166 = load i32, i32* %165
%167 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 3
%168 = load i32, i32* %167
%169 = icmp sgt i32 %166, %168
br i1 %169, label %170, label %189
170: ; preds = %164
%171 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 5
%172 = load i32, i32* %171
%173 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 4
%174 = load i32, i32* %173
%175 = icmp sgt i32 %172, %174
br i1 %175, label %176, label %189
176: ; preds = %170
%177 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 5
%178 = load i32, i32* %177
%179 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 2
%180 = load i32, i32* %179
%181 = icmp sgt i32 %178, %180
br i1 %181, label %182, label %189
182: ; preds = %176
%183 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 5
%184 = load i32, i32* %183
%185 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), i32 %184)
%186 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 5
%187 = load i32, i32* %186
%188 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i32 %187)
br label %193
189: ; preds = %176, %170, %164, %158
%190 = getelementptr inbounds [5 x i32], [5 x i32]* %4, i64 0, i64 1
%191 = load i32, i32* %190
%192 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0), i32 %191)
br label %193
193: ; preds = %189, %182
br label %194
194: ; preds = %193, %151
br label %195
195: ; preds = %194, %120
br label %196
196: ; preds = %195, %89
br label %197
197: ; preds = %196, %58
%198 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 1
%199 = load i32, i32* %198
%200 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 2
%201 = load i32, i32* %200
%202 = add nsw i32 %199, %201
%203 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 3
%204 = load i32, i32* %203
%205 = add nsw i32 %202, %204
%206 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 4
%207 = load i32, i32* %206
%208 = add nsw i32 %205, %207
%209 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 5
%210 = load i32, i32* %209
%211 = add nsw i32 %208, %210
%212 = sdiv i32 %211, 5
%213 = sitofp i32 %212 to float
store float %213, float* %6
%214 = load float, float* %6
%215 = fpext float %214 to double
%216 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.9, i64 0, i64 0), double %215)
%217 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%218 = load i32, i32* %1
ret i32 %218
}

LLVM IR (-O2):
@LC_ALL = global i32 0
@.str = [11 x i8] c"Portuguese\00"
@.str.1 = [33 x i8] c"Digite o c\C3\B3digo da cidade %d : \00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [39 x i8] c"N\C3\BAmero de ve\C3\ADculos de passeios %d : \00"
@.str.4 = [38 x i8] c"N\C3\BAmero de acidentes(Com v\C3\ADtimas) : \00"
@.str.6 = [37 x i8] c"O valor maior de acidentes foi : %d\0A\00"
@.str.7 = [20 x i8] c"CIDADE C\C3\93DIGO: %d\0A\00"
@.str.8 = [38 x i8] c"Todos os valores s\C3\A3o iguais a : %d\0A\0A\00"
@.str.9 = [35 x i8] c"M\C3\A9dia de Carros nas 5 cidade : %f\00"
@.str.10 = [6 x i8] c"pause\00"
define i32 @main() {
%1 = alloca [5 x i32]
%2 = alloca [5 x i32]
%3 = alloca [5 x i32]
%4 = bitcast [5 x i32]* %1 to i8*
%5 = bitcast [5 x i32]* %2 to i8*
%6 = bitcast [5 x i32]* %3 to i8*
%7 = load i32, i32* @LC_ALL
%8 = tail call i32 @setlocale(i32 %7, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i32 1)
%10 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 1
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %10)
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0), i32 1)
%13 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 1
%14 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %13)
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0))
%16 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 1
%17 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %16)
%18 = call i32 @putchar(i32 10)
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i32 2)
%20 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 2
%21 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %20)
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0), i32 2)
%23 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 2
%24 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %23)
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0))
%26 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 2
%27 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %26)
%28 = call i32 @putchar(i32 10)
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i32 3)
%30 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 3
%31 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %30)
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0), i32 3)
%33 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 3
%34 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %33)
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0))
%36 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 3
%37 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %36)
%38 = call i32 @putchar(i32 10)
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i32 4)
%40 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 4
%41 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %40)
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0), i32 4)
%43 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 4
%44 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %43)
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0))
%46 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 4
%47 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %46)
%48 = call i32 @putchar(i32 10)
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i32 5)
%50 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 5
%51 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %50)
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0), i32 5)
%53 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 5
%54 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %53)
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0))
%56 = getelementptr inbounds [5 x i32], [5 x i32]* %3, i64 0, i64 5
%57 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %56)
%58 = call i32 @putchar(i32 10)
%59 = load i32, i32* %16
%60 = load i32, i32* %26
%61 = icmp sgt i32 %59, %60
%62 = load i32, i32* %36
%63 = icmp sgt i32 %59, %62
%64 = select i1 %61, i1 %63, i1 false
%65 = load i32, i32* %46
%66 = icmp sgt i32 %59, %65
%67 = select i1 %64, i1 %66, i1 false
br i1 %67, label %68, label %75
68: ; preds = %0
%69 = load i32, i32* %56
%70 = icmp sgt i32 %59, %69
br i1 %70, label %71, label %75
71: ; preds = %68
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), i32 %59)
%73 = load i32, i32* %10
%74 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i32 %73)
br label %128
75: ; preds = %68, %0
%76 = icmp sgt i32 %60, %59
%77 = icmp sgt i32 %60, %62
%78 = select i1 %76, i1 %77, i1 false
%79 = icmp sgt i32 %60, %65
%80 = select i1 %78, i1 %79, i1 false
br i1 %80, label %81, label %88
81: ; preds = %75
%82 = load i32, i32* %56
%83 = icmp sgt i32 %60, %82
br i1 %83, label %84, label %88
84: ; preds = %81
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), i32 %60)
%86 = load i32, i32* %20
%87 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i32 %86)
br label %128
88: ; preds = %81, %75
%89 = icmp sgt i32 %62, %59
%90 = icmp sgt i32 %62, %60
%91 = select i1 %89, i1 %90, i1 false
%92 = icmp sgt i32 %62, %65
%93 = select i1 %91, i1 %92, i1 false
br i1 %93, label %94, label %101
94: ; preds = %88
%95 = load i32, i32* %56
%96 = icmp sgt i32 %62, %95
br i1 %96, label %97, label %101
97: ; preds = %94
%98 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), i32 %62)
%99 = load i32, i32* %30
%100 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i32 %99)
br label %128
101: ; preds = %94, %88
%102 = icmp sgt i32 %65, %59
%103 = icmp sgt i32 %65, %62
%104 = select i1 %102, i1 %103, i1 false
%105 = icmp sgt i32 %65, %60
%106 = select i1 %104, i1 %105, i1 false
%107 = load i32, i32* %56
%108 = icmp sgt i32 %65, %107
%109 = select i1 %106, i1 %108, i1 false
br i1 %109, label %110, label %114
110: ; preds = %101
%111 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), i32 %65)
%112 = load i32, i32* %40
%113 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i32 %112)
br label %128
114: ; preds = %101
%115 = icmp sgt i32 %107, %59
%116 = icmp sgt i32 %107, %62
%117 = select i1 %115, i1 %116, i1 false
%118 = icmp sgt i32 %107, %65
%119 = select i1 %117, i1 %118, i1 false
%120 = icmp sgt i32 %107, %60
%121 = select i1 %119, i1 %120, i1 false
br i1 %121, label %122, label %126
122: ; preds = %114
%123 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), i32 %107)
%124 = load i32, i32* %50
%125 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i32 %124)
br label %128
126: ; preds = %114
%127 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0), i32 %59)
br label %128
128: ; preds = %84, %110, %126, %122, %97, %71
%129 = bitcast i32* %13 to <4 x i32>*
%130 = load <4 x i32>, <4 x i32>* %129
%131 = load i32, i32* %53
%132 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %130)
%133 = add nsw i32 %132, %131
%134 = sdiv i32 %133, 5
%135 = sitofp i32 %134 to float
%136 = fpext float %135 to double
%137 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.9, i64 0, i64 0), double %136)
%138 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
ret i32 0
}