#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 /*<<< orphan*/ setlocale(int /*<<< orphan*/, char *);
char toupper(char);
int main() {
  setlocale(LC_ALL, "Portuguese");
  int crianca_pizza = 0, adulto_dengue = 0, homem_18a25_desempregado = 0,
      feminino_mais28 = 0;
  int idade, horario;
  char gosta_pizza;
  char dengue;
  char desempregado;
  char sexo;
  while (1) {
    printf("Horas:");
    scanf("%d", &horario);
    if (horario < 8 || horario > 18) {
      break;
    }
    printf("Idade:");
    scanf("%d", &idade);
    if (idade <= 0) {
      break;
    }
    printf("Sexo:");
    scanf(" %c", &sexo);
    printf("Dengue? ");
    scanf(" %c", &dengue);
    printf("Desempregado? ");
    scanf(" %c", &desempregado);
    printf("Gosta de pizza?");
    scanf(" %c", &gosta_pizza);
    if (toupper(sexo) == 'F' && idade > 28) {
      feminino_mais28++;
    }
    if (idade > 0 && idade <= 12 && toupper(gosta_pizza) == 'S') {
      crianca_pizza++;
    }
    if (idade >= 18 && toupper(dengue) == 'S') {
      adulto_dengue++;
    }
    if (toupper(sexo) == 'M' && idade >= 18 && idade <= 25 &&
        toupper(desempregado) == 'S') {
      homem_18a25_desempregado++;
    }
  }
  printf("Sexo feminino maiores de 28 anos:%d\n", feminino_mais28);
  printf("Crianças que gostam de pizza:%d\n", crianca_pizza);
  printf("Adulto com dengue:%d\n", adulto_dengue);
  printf("Homem entre 18 e 25 anos desempregado:%d\n",
         homem_18a25_desempregado);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e8a(%rip),%rax
mov    (%rax),%edi
lea    0xea1(%rip),%rsi
call   1050 <setlocale@plt>
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
lea    0xe84(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe7d(%rip),%rdi
lea    -0x1c(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
cmpl   $0x8,-0x1c(%rbp)
jl     11b4 <main+0x74>
cmpl   $0x12,-0x1c(%rbp)
jle    11b9 <main+0x79>
jmp    1336 <main+0x1f6>
lea    0xe55(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe44(%rip),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
cmpl   $0x0,-0x18(%rbp)
jg     11e8 <main+0xa8>
jmp    1336 <main+0x1f6>
lea    0xe2d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe25(%rip),%rdi
lea    -0x20(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
lea    0xe17(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe05(%rip),%rdi
lea    -0x1e(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
lea    0xe00(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xde5(%rip),%rdi
lea    -0x1f(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
lea    0xdef(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xdc5(%rip),%rdi
lea    -0x1d(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
movsbl -0x20(%rbp),%edi
call   1030 <toupper@plt>
movsbl %al,%eax
cmp    $0x46,%eax
jne    1290 <main+0x150>
cmpl   $0x1c,-0x18(%rbp)
jle    1290 <main+0x150>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x18(%rbp)
jle    12c2 <main+0x182>
cmpl   $0xc,-0x18(%rbp)
jg     12c2 <main+0x182>
movsbl -0x1d(%rbp),%edi
call   1030 <toupper@plt>
movsbl %al,%eax
cmp    $0x53,%eax
jne    12c2 <main+0x182>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x12,-0x18(%rbp)
jl     12ea <main+0x1aa>
movsbl -0x1e(%rbp),%edi
call   1030 <toupper@plt>
movsbl %al,%eax
cmp    $0x53,%eax
jne    12ea <main+0x1aa>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
movsbl -0x20(%rbp),%edi
call   1030 <toupper@plt>
movsbl %al,%eax
cmp    $0x4d,%eax
jne    1331 <main+0x1f1>
cmpl   $0x12,-0x18(%rbp)
jl     1331 <main+0x1f1>
cmpl   $0x19,-0x18(%rbp)
jg     1331 <main+0x1f1>
movsbl -0x1f(%rbp),%edi
call   1030 <toupper@plt>
movsbl %al,%eax
cmp    $0x53,%eax
jne    1331 <main+0x1f1>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1180 <main+0x40>
mov    -0x14(%rbp),%esi
lea    0xd0e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%esi
lea    0xd22(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0xc(%rbp),%esi
lea    0xd33(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%esi
lea    0xd38(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    0x2e8b(%rip),%rax
mov    (%rax),%edi
lea    0xea2(%rip),%rsi
call   1050 <setlocale@plt>
lea    0xea1(%rip),%rdi
movl   $0x0,0x10(%rsp)
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe92(%rip),%rdi
lea    0x14(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    0x14(%rsp),%eax
add    $0xffffffed,%eax
mov    $0x0,%r15d
movl   $0x0,0xc(%rsp)
mov    $0x0,%ebp
cmp    $0xfffffff5,%eax
jae    1201 <main+0xc1>
lea    0xe9c(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeb1(%rip),%rdi
mov    0x10(%rsp),%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec1(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec6(%rip),%rdi
mov    0xc(%rsp),%esi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xe0a(%rip),%rbx
lea    0xe13(%rip),%r12
xor    %ebp,%ebp
movl   $0x0,0xc(%rsp)
xor    %r15d,%r15d
movl   $0x0,0x10(%rsp)
jmp    1263 <main+0x123>
cs nopw 0x0(%rax,%rax,1)
movzbl %r13b,%eax
add    %eax,%ebp
lea    0xdce(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
lea    0x14(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    0x14(%rsp),%eax
add    $0xffffffed,%eax
cmp    $0xfffffff4,%eax
jbe    11ab <main+0x6b>
lea    0xdab(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
lea    0x8(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
cmpl   $0x0,0x8(%rsp)
jle    11ab <main+0x6b>
lea    0xd8a(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xd77(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
lea    0x6(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xd63(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
lea    0x5(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xd55(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
lea    0x7(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
movsbl 0x4(%rsp),%edi
call   1030 <toupper@plt>
cmp    $0x46,%al
sete   %r13b
mov    0x8(%rsp),%eax
cmp    $0x1d,%eax
setge  %r14b
lea    -0x1(%rax),%ecx
cmp    $0xb,%ecx
ja     133b <main+0x1fb>
movsbl 0x7(%rsp),%edi
call   1030 <toupper@plt>
xor    %ecx,%ecx
cmp    $0x53,%al
sete   %cl
add    %ecx,0x10(%rsp)
mov    0x8(%rsp),%eax
cmp    $0x12,%eax
jl     1354 <main+0x214>
movsbl 0x6(%rsp),%edi
call   1030 <toupper@plt>
xor    %ecx,%ecx
cmp    $0x53,%al
sete   %cl
add    %ecx,%r15d
and    %r14b,%r13b
movsbl 0x4(%rsp),%edi
call   1030 <toupper@plt>
cmp    $0x4d,%al
jne    1230 <main+0xf0>
mov    0x8(%rsp),%eax
cmp    $0x12,%eax
jl     1230 <main+0xf0>
cmp    $0x19,%eax
jg     1230 <main+0xf0>
movsbl 0x5(%rsp),%edi
call   1030 <toupper@plt>
xor    %ecx,%ecx
cmp    $0x53,%al
sete   %cl
add    %ecx,0xc(%rsp)
jmp    1230 <main+0xf0>

LLVM IR (-O0):
@LC_ALL = global i32 0
@.str = [11 x i8] c"Portuguese\00"
@.str.1 = [7 x i8] c"Horas:\00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [7 x i8] c"Idade:\00"
@.str.4 = [6 x i8] c"Sexo:\00"
@.str.5 = [4 x i8] c" %c\00"
@.str.6 = [9 x i8] c"Dengue? \00"
@.str.7 = [15 x i8] c"Desempregado? \00"
@.str.8 = [16 x i8] c"Gosta de pizza?\00"
@.str.9 = [37 x i8] c"Sexo feminino maiores de 28 anos:%d\0A\00"
@.str.10 = [34 x i8] c"Crian\C3\A7as que gostam de pizza:%d\0A\00"
@.str.11 = [22 x i8] c"Adulto com dengue:%d\0A\00"
@.str.12 = [42 x i8] c"Homem entre 18 e 25 anos desempregado:%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8
%9 = alloca i8
%10 = alloca i8
%11 = alloca i8
store i32 0, i32* %1
%12 = load i32, i32* @LC_ALL
%13 = call i32 @setlocale(i32 %12, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %2
store i32 0, i32* %3
store i32 0, i32* %4
store i32 0, i32* %5
br label %14
14: ; preds = %0, %92
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%16 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %7)
%17 = load i32, i32* %7
%18 = icmp slt i32 %17, 8
br i1 %18, label %22, label %19
19: ; preds = %14
%20 = load i32, i32* %7
%21 = icmp sgt i32 %20, 18
br i1 %21, label %22, label %23
22: ; preds = %19, %14
br label %93
23: ; preds = %19
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%25 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %6)
%26 = load i32, i32* %6
%27 = icmp sle i32 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %23
br label %93
29: ; preds = %23
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%31 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* %11)
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
%33 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* %9)
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0))
%35 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* %10)
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0))
%37 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* %8)
%38 = load i8, i8* %11
%39 = call signext i8 @toupper(i8 signext %38)
%40 = sext i8 %39 to i32
%41 = icmp eq i32 %40, 70
br i1 %41, label %42, label %48
42: ; preds = %29
%43 = load i32, i32* %6
%44 = icmp sgt i32 %43, 28
br i1 %44, label %45, label %48
45: ; preds = %42
%46 = load i32, i32* %5
%47 = add nsw i32 %46, 1
store i32 %47, i32* %5
br label %48
48: ; preds = %45, %42, %29
%49 = load i32, i32* %6
%50 = icmp sgt i32 %49, 0
br i1 %50, label %51, label %62
51: ; preds = %48
%52 = load i32, i32* %6
%53 = icmp sle i32 %52, 12
br i1 %53, label %54, label %62
54: ; preds = %51
%55 = load i8, i8* %8
%56 = call signext i8 @toupper(i8 signext %55)
%57 = sext i8 %56 to i32
%58 = icmp eq i32 %57, 83
br i1 %58, label %59, label %62
59: ; preds = %54
%60 = load i32, i32* %2
%61 = add nsw i32 %60, 1
store i32 %61, i32* %2
br label %62
62: ; preds = %59, %54, %51, %48
%63 = load i32, i32* %6
%64 = icmp sge i32 %63, 18
br i1 %64, label %65, label %73
65: ; preds = %62
%66 = load i8, i8* %9
%67 = call signext i8 @toupper(i8 signext %66)
%68 = sext i8 %67 to i32
%69 = icmp eq i32 %68, 83
br i1 %69, label %70, label %73
70: ; preds = %65
%71 = load i32, i32* %3
%72 = add nsw i32 %71, 1
store i32 %72, i32* %3
br label %73
73: ; preds = %70, %65, %62
%74 = load i8, i8* %11
%75 = call signext i8 @toupper(i8 signext %74)
%76 = sext i8 %75 to i32
%77 = icmp eq i32 %76, 77
br i1 %77, label %78, label %92
78: ; preds = %73
%79 = load i32, i32* %6
%80 = icmp sge i32 %79, 18
br i1 %80, label %81, label %92
81: ; preds = %78
%82 = load i32, i32* %6
%83 = icmp sle i32 %82, 25
br i1 %83, label %84, label %92
84: ; preds = %81
%85 = load i8, i8* %10
%86 = call signext i8 @toupper(i8 signext %85)
%87 = sext i8 %86 to i32
%88 = icmp eq i32 %87, 83
br i1 %88, label %89, label %92
89: ; preds = %84
%90 = load i32, i32* %4
%91 = add nsw i32 %90, 1
store i32 %91, i32* %4
br label %92
92: ; preds = %89, %84, %81, %78, %73
br label %14
93: ; preds = %28, %22
%94 = load i32, i32* %5
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.9, i64 0, i64 0), i32 %94)
%96 = load i32, i32* %2
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.10, i64 0, i64 0), i32 %96)
%98 = load i32, i32* %3
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0), i32 %98)
%100 = load i32, i32* %4
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.12, i64 0, i64 0), i32 %100)
ret i32 0
}

LLVM IR (-O2):
@LC_ALL = global i32 0
@.str = [11 x i8] c"Portuguese\00"
@.str.1 = [7 x i8] c"Horas:\00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [7 x i8] c"Idade:\00"
@.str.4 = [6 x i8] c"Sexo:\00"
@.str.5 = [4 x i8] c" %c\00"
@.str.6 = [9 x i8] c"Dengue? \00"
@.str.7 = [15 x i8] c"Desempregado? \00"
@.str.8 = [16 x i8] c"Gosta de pizza?\00"
@.str.9 = [37 x i8] c"Sexo feminino maiores de 28 anos:%d\0A\00"
@.str.10 = [34 x i8] c"Crian\C3\A7as que gostam de pizza:%d\0A\00"
@.str.11 = [22 x i8] c"Adulto com dengue:%d\0A\00"
@.str.12 = [42 x i8] c"Homem entre 18 e 25 anos desempregado:%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i8
%4 = alloca i8
%5 = alloca i8
%6 = alloca 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 = bitcast i32* %1 to i8*
%10 = bitcast i32* %2 to i8*
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%12 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %2)
%13 = load i32, i32* %2
%14 = add i32 %13, -19
%15 = icmp ult i32 %14, -11
br i1 %15, label %84, label %16
16: ; preds = %0, %77
%17 = phi i32 [ %41, %77 ], [ 0, %0 ]
%18 = phi i32 [ %78, %77 ], [ 0, %0 ]
%19 = phi i32 [ %62, %77 ], [ 0, %0 ]
%20 = phi i32 [ %53, %77 ], [ 0, %0 ]
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%22 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %1)
%23 = load i32, i32* %1
%24 = icmp slt i32 %23, 1
br i1 %24, label %84, label %25
25: ; preds = %16
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%27 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* %6)
%28 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
%29 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* %4)
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0))
%31 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* %5)
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0))
%33 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* %3)
%34 = load i8, i8* %6
%35 = call signext i8 @toupper(i8 signext %34)
%36 = icmp eq i8 %35, 70
%37 = load i32, i32* %1
%38 = icmp sgt i32 %37, 28
%39 = select i1 %36, i1 %38, i1 false
%40 = zext i1 %39 to i32
%41 = add nuw nsw i32 %17, %40
%42 = add i32 %37, -1
%43 = icmp ult i32 %42, 12
br i1 %43, label %44, label %51
44: ; preds = %25
%45 = load i8, i8* %3
%46 = call signext i8 @toupper(i8 signext %45)
%47 = icmp eq i8 %46, 83
%48 = zext i1 %47 to i32
%49 = add nsw i32 %20, %48
%50 = load i32, i32* %1
br label %51
51: ; preds = %44, %25
%52 = phi i32 [ %37, %25 ], [ %50, %44 ]
%53 = phi i32 [ %20, %25 ], [ %49, %44 ]
%54 = icmp sgt i32 %52, 17
br i1 %54, label %55, label %61
55: ; preds = %51
%56 = load i8, i8* %4
%57 = call signext i8 @toupper(i8 signext %56)
%58 = icmp eq i8 %57, 83
%59 = zext i1 %58 to i32
%60 = add nsw i32 %19, %59
br label %61
61: ; preds = %55, %51
%62 = phi i32 [ %19, %51 ], [ %60, %55 ]
%63 = load i8, i8* %6
%64 = call signext i8 @toupper(i8 signext %63)
%65 = icmp eq i8 %64, 77
%66 = load i32, i32* %1
%67 = icmp sgt i32 %66, 17
%68 = select i1 %65, i1 %67, i1 false
%69 = icmp slt i32 %66, 26
%70 = select i1 %68, i1 %69, i1 false
br i1 %70, label %71, label %77
71: ; preds = %61
%72 = load i8, i8* %5
%73 = call signext i8 @toupper(i8 signext %72)
%74 = icmp eq i8 %73, 83
%75 = zext i1 %74 to i32
%76 = add nsw i32 %18, %75
br label %77
77: ; preds = %71, %61
%78 = phi i32 [ %18, %61 ], [ %76, %71 ]
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%80 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %2)
%81 = load i32, i32* %2
%82 = add i32 %81, -19
%83 = icmp ult i32 %82, -11
br i1 %83, label %84, label %16
84: ; preds = %77, %16, %0
%85 = phi i32 [ 0, %0 ], [ %20, %16 ], [ %53, %77 ]
%86 = phi i32 [ 0, %0 ], [ %19, %16 ], [ %62, %77 ]
%87 = phi i32 [ 0, %0 ], [ %18, %16 ], [ %78, %77 ]
%88 = phi i32 [ 0, %0 ], [ %17, %16 ], [ %41, %77 ]
%89 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.9, i64 0, i64 0), i32 %88)
%90 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.10, i64 0, i64 0), i32 %85)
%91 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0), i32 %86)
%92 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.12, i64 0, i64 0), i32 %87)
ret i32 0
}