#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 /*<<< orphan*/ scanf(char *, int *);
int main() {
  int p, a, aposta[8], v, v2 = 0, numeroscerto[5],
                          apostacerta[] = {06, 07, 13, 14, 26};
  for (p = 0; p < 2; p++) {
    v = 0;
    for (a = 0; a <= 7; a++) {
      printf("digite o %d numero de 1 a 80\n", a);
      scanf("%d", &aposta[a]);
    }
    for (a = 0; a <= 7; a++) {
      if ((aposta[a] <= 0) || (aposta[a] > 80)) {
        v++;
      }
    }
    for (p = 0; p <= 7; p++) {
      for (a = p + 1; a <= 7; a++) {
        if (aposta[p] == aposta[a]) {
          v2++;
        }
      }
    }
    if ((v == 0) && (v2 == 0)) {
      printf("aposta valida\n");
      printf("numeros acertados : \n");
      for (p = 0; p <= 7; p++) {
        for (a = 0; a < 5; a++) {
          if (aposta[p] == apostacerta[a]) {
            printf("%d\n", aposta[p]);
          }
        }
      }
    } else {
      printf("aposta invalida");
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x38(%rbp)
mov    0xec3(%rip),%rax
mov    %rax,-0x70(%rbp)
mov    0xec0(%rip),%rax
mov    %rax,-0x68(%rbp)
mov    0xebe(%rip),%eax
mov    %eax,-0x60(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    1336 <main+0x216>
movl   $0x0,-0x34(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x7,-0xc(%rbp)
jg     11b8 <main+0x98>
mov    -0xc(%rbp),%esi
lea    0xe8c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0xc(%rbp),%rax
lea    -0x30(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe8d(%rip),%rdi
call   1040 <scanf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1174 <main+0x54>
movl   $0x0,-0xc(%rbp)
cmpl   $0x7,-0xc(%rbp)
jg     1203 <main+0xe3>
movslq -0xc(%rbp),%rax
cmpl   $0x0,-0x30(%rbp,%rax,4)
jle    11e7 <main+0xc7>
movslq -0xc(%rbp),%rax
cmpl   $0x50,-0x30(%rbp,%rax,4)
jle    11f0 <main+0xd0>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11f5 <main+0xd5>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11bf <main+0x9f>
movl   $0x0,-0x8(%rbp)
cmpl   $0x7,-0x8(%rbp)
jg     126c <main+0x14c>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x7,-0xc(%rbp)
jg     1259 <main+0x139>
movslq -0x8(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%eax
movslq -0xc(%rbp),%rcx
cmp    -0x30(%rbp,%rcx,4),%eax
jne    1246 <main+0x126>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    124b <main+0x12b>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    121d <main+0xfd>
jmp    125e <main+0x13e>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    120a <main+0xea>
cmpl   $0x0,-0x34(%rbp)
jne    1315 <main+0x1f5>
cmpl   $0x0,-0x38(%rbp)
jne    1315 <main+0x1f5>
lea    0xdae(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdaf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0x7,-0x8(%rbp)
jg     1310 <main+0x1f0>
movl   $0x0,-0xc(%rbp)
cmpl   $0x5,-0xc(%rbp)
jge    12fd <main+0x1dd>
movslq -0x8(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%eax
movslq -0xc(%rbp),%rcx
cmp    -0x70(%rbp,%rcx,4),%eax
jne    12ea <main+0x1ca>
movslq -0x8(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%esi
lea    0xd77(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12ef <main+0x1cf>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    12b4 <main+0x194>
jmp    1302 <main+0x1e2>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    12a3 <main+0x183>
jmp    1323 <main+0x203>
lea    0xd42(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1328 <main+0x208>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    115c <main+0x3c>
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    0xeeb(%rip),%r14
mov    %r14,%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xef6(%rip),%rbx
lea    0x20(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
mov    %r14,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x24(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
mov    %r14,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x28(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
mov    %r14,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x2c(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
mov    %r14,%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x30(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
mov    %r14,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x34(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
mov    %r14,%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x38(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
mov    %r14,%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x3c(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
movdqa 0x20(%rsp),%xmm0
mov    0x30(%rsp),%edx
mov    0x34(%rsp),%esi
mov    0x38(%rsp),%ebp
mov    0x3c(%rsp),%edi
lea    -0x51(%rdi),%eax
cmp    $0xffffffb0,%eax
sbb    %eax,%eax
mov    %eax,0x1c(%rsp)
movd   %xmm0,%ecx
pshufd $0x55,%xmm0,%xmm1
movd   %xmm1,%ebx
cmp    %ebx,%ecx
sete   0x14(%rsp)
pshufd $0xee,%xmm0,%xmm1
movd   %xmm1,%eax
cmp    %eax,%ecx
sete   0x1(%rsp)
cmp    %edx,%ecx
sete   0x2(%rsp)
cmp    %esi,%ecx
sete   0x3(%rsp)
cmp    %ebp,%ecx
sete   0x4(%rsp)
cmp    %edi,%ecx
sete   (%rsp)
cmp    %edx,%ebx
sete   0x5(%rsp)
cmp    %esi,%ebx
sete   0x7(%rsp)
cmp    %ebp,%ebx
sete   0x6(%rsp)
cmp    %edi,%ebx
sete   0x18(%rsp)
cmp    %edx,%eax
sete   0x8(%rsp)
cmp    %esi,%eax
sete   0x9(%rsp)
cmp    %ebp,%eax
sete   0xa(%rsp)
cmp    %edi,%eax
pshufd $0xff,%xmm0,%xmm1
sete   0xb(%rsp)
movd   %xmm1,%eax
cmp    %edx,%eax
sete   0xc(%rsp)
cmp    %esi,%eax
sete   0xd(%rsp)
cmp    %ebp,%eax
sete   0xe(%rsp)
cmp    %edi,%eax
sete   0xf(%rsp)
cmp    %esi,%edx
sete   0x10(%rsp)
cmp    %ebp,%edx
sete   0x11(%rsp)
cmp    %edi,%edx
sete   0x12(%rsp)
cmp    %ebp,%esi
sete   0x13(%rsp)
cmp    %edi,%esi
sete   %al
cmp    %edi,%ebp
movdqa 0xcee(%rip),%xmm1
paddd  %xmm0,%xmm1
pxor   0xcf2(%rip),%xmm1
movdqa 0xcfa(%rip),%xmm2
pcmpgtd %xmm1,%xmm2
movmskps %xmm2,%ecx
sete   %dil
mov    %ecx,%ebx
shr    %bl
and    $0x5,%bl
sub    %bl,%cl
mov    %ecx,%ebx
and    $0x33,%bl
shr    $0x2,%cl
and    $0x33,%cl
add    %bl,%cl
mov    %ecx,%ebx
shr    $0x4,%bl
add    %cl,%bl
and    $0xf,%bl
movzbl %bl,%ecx
add    $0xffffffaf,%edx
cmp    $0xffffffb0,%edx
lea    -0x51(%rsi),%edx
adc    $0x0,%ecx
cmp    $0xffffffb0,%edx
lea    -0x51(%rbp),%edx
adc    $0x0,%ecx
cmp    $0xffffffb0,%edx
adc    $0x0,%ecx
cmp    0x1c(%rsp),%ecx
jne    15c8 <main+0x498>
mov    %al,0x1c(%rsp)
xor    %eax,%eax
mov    0x14(%rsp),%cl
mov    %cl,%al
mov    %eax,0x14(%rsp)
xor    %ebp,%ebp
mov    0x1(%rsp),%cl
mov    %cl,%bpl
pshufd $0x16,%xmm0,%xmm1
pshufd $0xef,%xmm0,%xmm0
pcmpeqd %xmm1,%xmm0
xor    %r9d,%r9d
xor    %r10d,%r10d
xor    %r11d,%r11d
xor    %r14d,%r14d
xor    %r15d,%r15d
xor    %r12d,%r12d
xor    %r13d,%r13d
xor    %eax,%eax
movmskps %xmm0,%r8d
mov    %r8d,%ecx
shr    $0x3,%cl
movzbl %cl,%ecx
mov    0x2(%rsp),%dl
mov    %dl,%r9b
mov    0x3(%rsp),%dl
mov    %dl,%r10b
mov    0x4(%rsp),%dl
mov    %dl,%r14b
mov    (%rsp),%dl
mov    %dl,%al
mov    %r8d,%ebx
and    $0x4,%bl
shr    $0x2,%bl
movzbl %bl,%esi
mov    %r8d,%ebx
and    $0x2,%bl
shr    %bl
mov    %dil,(%rsp)
movzbl %bl,%edi
mov    0x5(%rsp),%dl
mov    %dl,%r13b
add    0x14(%rsp),%ebp
add    %ebp,%ecx
add    %ecx,%r9d
add    %r9d,%r10d
add    %r10d,%r14d
add    %r14d,%eax
add    %eax,%esi
add    %esi,%edi
add    %edi,%r13d
mov    0x7(%rsp),%al
mov    %al,%r12b
add    %r13d,%r12d
mov    0x6(%rsp),%al
mov    %al,%r15b
add    %r12d,%r15d
mov    0x18(%rsp),%al
mov    %al,%r11b
add    %r15d,%r11d
and    $0x1,%r8d
add    %r11d,%r8d
mov    %r8d,0x18(%rsp)
xor    %r8d,%r8d
mov    0x8(%rsp),%al
mov    %al,%r8b
xor    %r9d,%r9d
mov    0x9(%rsp),%al
mov    %al,%r9b
xor    %r10d,%r10d
mov    0xa(%rsp),%al
mov    %al,%r10b
xor    %r11d,%r11d
mov    0xb(%rsp),%al
mov    %al,%r11b
xor    %r14d,%r14d
mov    0xc(%rsp),%al
mov    %al,%r14b
xor    %edi,%edi
xor    %ebp,%ebp
xor    %ebx,%ebx
xor    %r15d,%r15d
xor    %r12d,%r12d
xor    %r13d,%r13d
xor    %eax,%eax
mov    0xd(%rsp),%cl
mov    %cl,%al
xor    %ecx,%ecx
mov    0xe(%rsp),%dl
mov    %dl,%cl
xor    %esi,%esi
mov    0xf(%rsp),%dl
mov    %dl,%sil
mov    0x10(%rsp),%dl
mov    %dl,%dil
mov    0x11(%rsp),%dl
mov    %dl,%bpl
mov    0x12(%rsp),%dl
mov    %dl,%bl
mov    0x13(%rsp),%dl
mov    %dl,%r15b
mov    0x1c(%rsp),%dl
mov    %dl,%r12b
mov    (%rsp),%dl
mov    %dl,%r13b
add    0x18(%rsp),%r8d
add    %r8d,%r9d
add    %r9d,%r10d
add    %r10d,%r11d
add    %r11d,%r14d
add    %r14d,%eax
add    %eax,%ecx
add    %ecx,%esi
add    %esi,%edi
add    %edi,%ebp
add    %ebp,%ebx
add    %ebx,%r15d
add    %r15d,%r12d
neg    %r13d
cmp    %r13d,%r12d
jne    15c8 <main+0x498>
lea    0xb69(%rip),%rdi
call   1030 <puts@plt>
lea    0xb6b(%rip),%rdi
call   1030 <puts@plt>
lea    0xb3d(%rip),%rbx
xor    %ebp,%ebp
jmp    152e <main+0x3fe>
nopl   0x0(%rax,%rax,1)
add    $0x1,%rbp
cmp    $0x8,%rbp
je     15d6 <main+0x4a6>
mov    0x20(%rsp,%rbp,4),%eax
cmp    $0x6,%eax
je     1550 <main+0x420>
cmp    $0x7,%eax
je     1568 <main+0x438>
cmp    $0xd,%eax
je     1580 <main+0x450>
cmp    $0xe,%eax
je     1598 <main+0x468>
cmp    $0x1a,%eax
jne    1520 <main+0x3f0>
jmp    15b4 <main+0x484>
nopl   (%rax)
mov    %rbx,%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x20(%rsp,%rbp,4),%eax
cmp    $0x7,%eax
jne    153c <main+0x40c>
mov    %rbx,%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x20(%rsp,%rbp,4),%eax
cmp    $0xd,%eax
jne    1541 <main+0x411>
mov    %rbx,%rdi
mov    $0xd,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x20(%rsp,%rbp,4),%eax
cmp    $0xe,%eax
jne    1546 <main+0x416>
mov    %rbx,%rdi
mov    $0xe,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x20(%rsp,%rbp,4),%eax
cmp    $0x1a,%eax
jne    1520 <main+0x3f0>
mov    %rbx,%rdi
mov    $0x1a,%esi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1520 <main+0x3f0>
lea    0xa86(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.apostacerta = [5 x i32] [i32 6, i32 7, i32 13, i32 14, i32 26]
@.str = [30 x i8] c"digite o %d numero de 1 a 80\0A\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [15 x i8] c"aposta valida\0A\00"
@.str.3 = [22 x i8] c"numeros acertados : \0A\00"
@.str.4 = [4 x i8] c"%d\0A\00"
@.str.5 = [16 x i8] c"aposta invalida\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [8 x i32]
%5 = alloca i32
%6 = alloca i32
%7 = alloca [5 x i32]
%8 = alloca [5 x i32]
store i32 0, i32* %1
store i32 0, i32* %6
%9 = bitcast [5 x i32]* %8 to i8*
store i32 0, i32* %2
br label %10
10: ; preds = %125, %0
%11 = load i32, i32* %2
%12 = icmp slt i32 %11, 2
br i1 %12, label %13, label %128
13: ; preds = %10
store i32 0, i32* %5
store i32 0, i32* %3
br label %14
14: ; preds = %24, %13
%15 = load i32, i32* %3
%16 = icmp sle i32 %15, 7
br i1 %16, label %17, label %27
17: ; preds = %14
%18 = load i32, i32* %3
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i32 %18)
%20 = load i32, i32* %3
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [8 x i32], [8 x i32]* %4, i64 0, i64 %21
%23 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %22)
br label %24
24: ; preds = %17
%25 = load i32, i32* %3
%26 = add nsw i32 %25, 1
store i32 %26, i32* %3
br label %14
27: ; preds = %14
store i32 0, i32* %3
br label %28
28: ; preds = %47, %27
%29 = load i32, i32* %3
%30 = icmp sle i32 %29, 7
br i1 %30, label %31, label %50
31: ; preds = %28
%32 = load i32, i32* %3
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [8 x i32], [8 x i32]* %4, i64 0, i64 %33
%35 = load i32, i32* %34
%36 = icmp sle i32 %35, 0
br i1 %36, label %43, label %37
37: ; preds = %31
%38 = load i32, i32* %3
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [8 x i32], [8 x i32]* %4, i64 0, i64 %39
%41 = load i32, i32* %40
%42 = icmp sgt i32 %41, 80
br i1 %42, label %43, label %46
43: ; preds = %37, %31
%44 = load i32, i32* %5
%45 = add nsw i32 %44, 1
store i32 %45, i32* %5
br label %46
46: ; preds = %43, %37
br label %47
47: ; preds = %46
%48 = load i32, i32* %3
%49 = add nsw i32 %48, 1
store i32 %49, i32* %3
br label %28
50: ; preds = %28
store i32 0, i32* %2
br label %51
51: ; preds = %78, %50
%52 = load i32, i32* %2
%53 = icmp sle i32 %52, 7
br i1 %53, label %54, label %81
54: ; preds = %51
%55 = load i32, i32* %2
%56 = add nsw i32 %55, 1
store i32 %56, i32* %3
br label %57
57: ; preds = %74, %54
%58 = load i32, i32* %3
%59 = icmp sle i32 %58, 7
br i1 %59, label %60, label %77
60: ; preds = %57
%61 = load i32, i32* %2
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [8 x i32], [8 x i32]* %4, i64 0, i64 %62
%64 = load i32, i32* %63
%65 = load i32, i32* %3
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [8 x i32], [8 x i32]* %4, i64 0, i64 %66
%68 = load i32, i32* %67
%69 = icmp eq i32 %64, %68
br i1 %69, label %70, label %73
70: ; preds = %60
%71 = load i32, i32* %6
%72 = add nsw i32 %71, 1
store i32 %72, i32* %6
br label %73
73: ; preds = %70, %60
br label %74
74: ; preds = %73
%75 = load i32, i32* %3
%76 = add nsw i32 %75, 1
store i32 %76, i32* %3
br label %57
77: ; preds = %57
br label %78
78: ; preds = %77
%79 = load i32, i32* %2
%80 = add nsw i32 %79, 1
store i32 %80, i32* %2
br label %51
81: ; preds = %51
%82 = load i32, i32* %5
%83 = icmp eq i32 %82, 0
br i1 %83, label %84, label %122
84: ; preds = %81
%85 = load i32, i32* %6
%86 = icmp eq i32 %85, 0
br i1 %86, label %87, label %122
87: ; preds = %84
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %2
br label %90
90: ; preds = %118, %87
%91 = load i32, i32* %2
%92 = icmp sle i32 %91, 7
br i1 %92, label %93, label %121
93: ; preds = %90
store i32 0, i32* %3
br label %94
94: ; preds = %114, %93
%95 = load i32, i32* %3
%96 = icmp slt i32 %95, 5
br i1 %96, label %97, label %117
97: ; preds = %94
%98 = load i32, i32* %2
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds [8 x i32], [8 x i32]* %4, i64 0, i64 %99
%101 = load i32, i32* %100
%102 = load i32, i32* %3
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds [5 x i32], [5 x i32]* %8, i64 0, i64 %103
%105 = load i32, i32* %104
%106 = icmp eq i32 %101, %105
br i1 %106, label %107, label %113
107: ; preds = %97
%108 = load i32, i32* %2
%109 = sext i32 %108 to i64
%110 = getelementptr inbounds [8 x i32], [8 x i32]* %4, i64 0, i64 %109
%111 = load i32, i32* %110
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %111)
br label %113
113: ; preds = %107, %97
br label %114
114: ; preds = %113
%115 = load i32, i32* %3
%116 = add nsw i32 %115, 1
store i32 %116, i32* %3
br label %94
117: ; preds = %94
br label %118
118: ; preds = %117
%119 = load i32, i32* %2
%120 = add nsw i32 %119, 1
store i32 %120, i32* %2
br label %90
121: ; preds = %90
br label %124
122: ; preds = %84, %81
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
br label %124
124: ; preds = %122, %121
br label %125
125: ; preds = %124
%126 = load i32, i32* %2
%127 = add nsw i32 %126, 1
store i32 %127, i32* %2
br label %10
128: ; preds = %10
ret i32 0
}

LLVM IR (-O2):
@.str = [30 x i8] c"digite o %d numero de 1 a 80\0A\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.4 = [4 x i8] c"%d\0A\00"
@.str.5 = [16 x i8] c"aposta invalida\00"
@str = [14 x i8] c"aposta valida\00"
@str.6 = [21 x i8] c"numeros acertados : \00"
define i32 @main() {
%1 = alloca [8 x i32]
%2 = bitcast [8 x i32]* %1 to i8*
%3 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i32 0)
%4 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 0
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%6 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i32 1)
%7 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 1
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %7)
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i32 2)
%10 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 2
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %10)
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i32 3)
%13 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 3
%14 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %13)
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i32 4)
%16 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 4
%17 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %16)
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i32 5)
%19 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 5
%20 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %19)
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i32 6)
%22 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 6
%23 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %22)
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i32 7)
%25 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 7
%26 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %25)
%27 = bitcast [8 x i32]* %1 to <4 x i32>*
%28 = load <4 x i32>, <4 x i32>* %27
%29 = add <4 x i32> %28, <i32 -81, i32 -81, i32 -81, i32 -81>
%30 = icmp ult <4 x i32> %29, <i32 -80, i32 -80, i32 -80, i32 -80>
%31 = load i32, i32* %16
%32 = add i32 %31, -81
%33 = icmp ult i32 %32, -80
%34 = zext i1 %33 to i32
%35 = load i32, i32* %19
%36 = add i32 %35, -81
%37 = icmp ult i32 %36, -80
%38 = zext i1 %37 to i32
%39 = load i32, i32* %22
%40 = add i32 %39, -81
%41 = icmp ult i32 %40, -80
%42 = zext i1 %41 to i32
%43 = load i32, i32* %25
%44 = add i32 %43, -81
%45 = icmp ult i32 %44, -80
%46 = sext i1 %45 to i32
%47 = extractelement <4 x i32> %28, i64 0
%48 = extractelement <4 x i32> %28, i64 1
%49 = icmp eq i32 %47, %48
%50 = zext i1 %49 to i32
%51 = extractelement <4 x i32> %28, i64 2
%52 = icmp eq i32 %47, %51
%53 = zext i1 %52 to i32
%54 = add nuw nsw i32 %50, %53
%55 = extractelement <4 x i32> %28, i64 3
%56 = shufflevector <4 x i32> %28, <4 x i32> undef, <4 x i32> <i32 2, i32 1, i32 1, i32 0>
%57 = shufflevector <4 x i32> %28, <4 x i32> undef, <4 x i32> <i32 3, i32 3, i32 2, i32 3>
%58 = icmp eq <4 x i32> %56, %57
%59 = extractelement <4 x i1> %58, i64 3
%60 = zext i1 %59 to i32
%61 = add nuw nsw i32 %54, %60
%62 = icmp eq i32 %47, %31
%63 = zext i1 %62 to i32
%64 = add nuw nsw i32 %61, %63
%65 = icmp eq i32 %47, %35
%66 = zext i1 %65 to i32
%67 = add nuw nsw i32 %64, %66
%68 = icmp eq i32 %47, %39
%69 = zext i1 %68 to i32
%70 = add nuw nsw i32 %67, %69
%71 = icmp eq i32 %47, %43
%72 = zext i1 %71 to i32
%73 = add nuw nsw i32 %70, %72
%74 = extractelement <4 x i1> %58, i64 2
%75 = zext i1 %74 to i32
%76 = add nuw nsw i32 %73, %75
%77 = extractelement <4 x i1> %58, i64 1
%78 = zext i1 %77 to i32
%79 = add nuw nsw i32 %76, %78
%80 = icmp eq i32 %48, %31
%81 = zext i1 %80 to i32
%82 = add nuw nsw i32 %79, %81
%83 = icmp eq i32 %48, %35
%84 = zext i1 %83 to i32
%85 = add nuw nsw i32 %82, %84
%86 = icmp eq i32 %48, %39
%87 = zext i1 %86 to i32
%88 = add nuw nsw i32 %85, %87
%89 = icmp eq i32 %48, %43
%90 = zext i1 %89 to i32
%91 = add nuw nsw i32 %88, %90
%92 = extractelement <4 x i1> %58, i64 0
%93 = zext i1 %92 to i32
%94 = add nuw nsw i32 %91, %93
%95 = icmp eq i32 %51, %31
%96 = zext i1 %95 to i32
%97 = add nuw nsw i32 %94, %96
%98 = icmp eq i32 %51, %35
%99 = zext i1 %98 to i32
%100 = add nuw nsw i32 %97, %99
%101 = icmp eq i32 %51, %39
%102 = zext i1 %101 to i32
%103 = add nuw nsw i32 %100, %102
%104 = icmp eq i32 %51, %43
%105 = zext i1 %104 to i32
%106 = add nuw nsw i32 %103, %105
%107 = icmp eq i32 %55, %31
%108 = zext i1 %107 to i32
%109 = add nuw nsw i32 %106, %108
%110 = icmp eq i32 %55, %35
%111 = zext i1 %110 to i32
%112 = add nuw nsw i32 %109, %111
%113 = icmp eq i32 %55, %39
%114 = zext i1 %113 to i32
%115 = add nuw nsw i32 %112, %114
%116 = icmp eq i32 %55, %43
%117 = zext i1 %116 to i32
%118 = add nuw nsw i32 %115, %117
%119 = icmp eq i32 %31, %35
%120 = zext i1 %119 to i32
%121 = add nuw nsw i32 %118, %120
%122 = icmp eq i32 %31, %39
%123 = zext i1 %122 to i32
%124 = add nuw nsw i32 %121, %123
%125 = icmp eq i32 %31, %43
%126 = zext i1 %125 to i32
%127 = add nuw nsw i32 %124, %126
%128 = icmp eq i32 %35, %39
%129 = zext i1 %128 to i32
%130 = add nuw nsw i32 %127, %129
%131 = icmp eq i32 %35, %43
%132 = zext i1 %131 to i32
%133 = add nuw nsw i32 %130, %132
%134 = icmp eq i32 %39, %43
%135 = sext i1 %134 to i32
%136 = bitcast <4 x i1> %30 to i4
%137 = call i4 @llvm.ctpop.i4(i4 %136)
%138 = zext i4 %137 to i32
%139 = add nuw nsw i32 %138, %34
%140 = add nuw nsw i32 %139, %38
%141 = add nuw nsw i32 %140, %42
%142 = icmp eq i32 %141, %46
%143 = icmp eq i32 %133, %135
%144 = select i1 %142, i1 %143, i1 false
br i1 %144, label %145, label %182
145: ; preds = %0
%146 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
%147 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.6, i64 0, i64 0))
br label %148
148: ; preds = %145, %179
%149 = phi i64 [ 0, %145 ], [ %180, %179 ]
%150 = getelementptr inbounds [8 x i32], [8 x i32]* %1, i64 0, i64 %149
%151 = load i32, i32* %150
%152 = icmp eq i32 %151, 6
br i1 %152, label %153, label %156
153: ; preds = %148
%154 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 6)
%155 = load i32, i32* %150
br label %156
156: ; preds = %148, %153
%157 = phi i32 [ %151, %148 ], [ %155, %153 ]
%158 = icmp eq i32 %157, 7
br i1 %158, label %159, label %162
159: ; preds = %156
%160 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 7)
%161 = load i32, i32* %150
br label %162
162: ; preds = %159, %156
%163 = phi i32 [ %161, %159 ], [ %157, %156 ]
%164 = icmp eq i32 %163, 13
br i1 %164, label %165, label %168
165: ; preds = %162
%166 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 13)
%167 = load i32, i32* %150
br label %168
168: ; preds = %165, %162
%169 = phi i32 [ %167, %165 ], [ %163, %162 ]
%170 = icmp eq i32 %169, 14
br i1 %170, label %171, label %174
171: ; preds = %168
%172 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 14)
%173 = load i32, i32* %150
br label %174
174: ; preds = %171, %168
%175 = phi i32 [ %173, %171 ], [ %169, %168 ]
%176 = icmp eq i32 %175, 26
br i1 %176, label %177, label %179
177: ; preds = %174
%178 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 26)
br label %179
179: ; preds = %177, %174
%180 = add nuw nsw i64 %149, 1
%181 = icmp eq i64 %180, 8
br i1 %181, label %184, label %148
182: ; preds = %0
%183 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
br label %184
184: ; preds = %179, %182
ret i32 0
}