#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 *);
int main(int argc, char const *argv[]) {
  int a, b;
  scanf("%d %d", &a, &b);
  switch (b) {
  case 1:
    printf("VERAO");
    break;
  case 2:
    printf("VERAO");
    break;
  case 3:
    a <= 20 ? printf("VERAO") : printf("OUTONO");
    break;
  case 4:
    printf("OUTONO");
    break;
  case 5:
    printf("OUTONO");
    break;
  case 6:
    a <= 20 ? printf("OUTONO") : printf("INVERNO");
    break;
  case 7:
    printf("INVERNO");
    break;
  case 8:
    printf("INVERNO");
    break;
  case 9:
    a <= 20 ? printf("INVERNO") : printf("PRIMAVERA");
    break;
  case 10:
    printf("PRIMAVERA");
    break;
  case 11:
    printf("PRIMAVERA");
    break;
  case 12:
    a <= 20 ? printf("PRIMAVERA") : printf("VERAO");
    break;
  default:
    printf("SEM RESPOSTA");
    break;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xef3(%rip),%rdi
lea    -0x14(%rbp),%rsi
lea    -0x18(%rbp),%rdx
call   1040 <scanf@plt>
mov    -0x18(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x20(%rbp)
sub    $0xb,%eax
ja     12ab <main+0x18b>
mov    -0x20(%rbp),%rax
lea    0xe96(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xebc(%rip),%rdi
call   1030 <printf@plt>
jmp    12b7 <main+0x197>
lea    0xeab(%rip),%rdi
call   1030 <printf@plt>
jmp    12b7 <main+0x197>
cmpl   $0x14,-0x14(%rbp)
jg     11b0 <main+0x90>
lea    0xe90(%rip),%rdi
call   1030 <printf@plt>
jmp    11bc <main+0x9c>
lea    0xe85(%rip),%rdi
call   1030 <printf@plt>
jmp    12b7 <main+0x197>
lea    0xe74(%rip),%rdi
call   1030 <printf@plt>
jmp    12b7 <main+0x197>
lea    0xe63(%rip),%rdi
call   1030 <printf@plt>
jmp    12b7 <main+0x197>
cmpl   $0x14,-0x14(%rbp)
jg     11fe <main+0xde>
lea    0xe48(%rip),%rdi
call   1030 <printf@plt>
jmp    120a <main+0xea>
lea    0xe3e(%rip),%rdi
call   1030 <printf@plt>
jmp    12b7 <main+0x197>
lea    0xe2d(%rip),%rdi
call   1030 <printf@plt>
jmp    12b7 <main+0x197>
lea    0xe1c(%rip),%rdi
call   1030 <printf@plt>
jmp    12b7 <main+0x197>
cmpl   $0x14,-0x14(%rbp)
jg     124c <main+0x12c>
lea    0xe01(%rip),%rdi
call   1030 <printf@plt>
jmp    1258 <main+0x138>
lea    0xdf8(%rip),%rdi
call   1030 <printf@plt>
jmp    12b7 <main+0x197>
lea    0xde7(%rip),%rdi
call   1030 <printf@plt>
jmp    12b7 <main+0x197>
lea    0xdd6(%rip),%rdi
call   1030 <printf@plt>
jmp    12b7 <main+0x197>
cmpl   $0x14,-0x14(%rbp)
jg     129a <main+0x17a>
lea    0xdbb(%rip),%rdi
call   1030 <printf@plt>
jmp    12a6 <main+0x186>
lea    0xd95(%rip),%rdi
call   1030 <printf@plt>
jmp    12b7 <main+0x197>
lea    0xda3(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xf08(%rip),%rdi
mov    %rsp,%rsi
lea    0x4(%rsp),%rdx
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
add    $0xffffffff,%eax
cmp    $0xb,%eax
ja     11d7 <main+0xb7>
lea    0xeea(%rip),%rdi
lea    0xead(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xed9(%rip),%rdi
jmp    11de <main+0xbe>
lea    0xed7(%rip),%rdi
jmp    11de <main+0xbe>
lea    0xed6(%rip),%rdi
jmp    11de <main+0xbe>
cmpl   $0x15,(%rsp)
lea    0xeb4(%rip),%rax
lea    0xeb3(%rip),%rdi
cmovl  %rax,%rdi
jmp    11de <main+0xbe>
cmpl   $0x15,(%rsp)
lea    0xea2(%rip),%rax
lea    0xea2(%rip),%rdi
cmovl  %rax,%rdi
jmp    11de <main+0xbe>
cmpl   $0x15,(%rsp)
lea    0xe91(%rip),%rax
lea    0xe92(%rip),%rdi
cmovl  %rax,%rdi
jmp    11de <main+0xbe>
cmpl   $0x15,(%rsp)
lea    0xe81(%rip),%rax
lea    0xe65(%rip),%rdi
cmovl  %rax,%rdi
jmp    11de <main+0xbe>
lea    0xe77(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"%d %d\00"
@.str.1 = [6 x i8] c"VERAO\00"
@.str.2 = [7 x i8] c"OUTONO\00"
@.str.3 = [8 x i8] c"INVERNO\00"
@.str.4 = [10 x i8] c"PRIMAVERA\00"
@.str.5 = [13 x i8] c"SEM RESPOSTA\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %6, i32* %7)
%9 = load i32, i32* %7
switch i32 %9, label %62 [
i32 1, label %10
i32 2, label %12
i32 3, label %14
i32 4, label %23
i32 5, label %25
i32 6, label %27
i32 7, label %36
i32 8, label %38
i32 9, label %40
i32 10, label %49
i32 11, label %51
i32 12, label %53
]
10: ; preds = %2
%11 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %64
12: ; preds = %2
%13 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %64
14: ; preds = %2
%15 = load i32, i32* %6
%16 = icmp sle i32 %15, 20
br i1 %16, label %17, label %19
17: ; preds = %14
%18 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %21
19: ; preds = %14
%20 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %21
21: ; preds = %19, %17
%22 = phi i32 [ %18, %17 ], [ %20, %19 ]
br label %64
23: ; preds = %2
%24 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %64
25: ; preds = %2
%26 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %64
27: ; preds = %2
%28 = load i32, i32* %6
%29 = icmp sle i32 %28, 20
br i1 %29, label %30, label %32
30: ; preds = %27
%31 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %34
32: ; preds = %27
%33 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
br label %34
34: ; preds = %32, %30
%35 = phi i32 [ %31, %30 ], [ %33, %32 ]
br label %64
36: ; preds = %2
%37 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
br label %64
38: ; preds = %2
%39 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
br label %64
40: ; preds = %2
%41 = load i32, i32* %6
%42 = icmp sle i32 %41, 20
br i1 %42, label %43, label %45
43: ; preds = %40
%44 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
br label %47
45: ; preds = %40
%46 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
br label %47
47: ; preds = %45, %43
%48 = phi i32 [ %44, %43 ], [ %46, %45 ]
br label %64
49: ; preds = %2
%50 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
br label %64
51: ; preds = %2
%52 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
br label %64
53: ; preds = %2
%54 = load i32, i32* %6
%55 = icmp sle i32 %54, 20
br i1 %55, label %56, label %58
56: ; preds = %53
%57 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
br label %60
58: ; preds = %53
%59 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %60
60: ; preds = %58, %56
%61 = phi i32 [ %57, %56 ], [ %59, %58 ]
br label %64
62: ; preds = %2
%63 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
br label %64
64: ; preds = %62, %60, %51, %49, %47, %38, %36, %34, %25, %23, %21, %12, %10
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"%d %d\00"
@.str.1 = [6 x i8] c"VERAO\00"
@.str.2 = [7 x i8] c"OUTONO\00"
@.str.3 = [8 x i8] c"INVERNO\00"
@.str.4 = [10 x i8] c"PRIMAVERA\00"
@.str.5 = [13 x i8] c"SEM RESPOSTA\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = alloca i32
%5 = bitcast i32* %3 to i8*
%6 = bitcast i32* %4 to i8*
%7 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32* %3, i32* %4)
%8 = load i32, i32* %4
switch i32 %8, label %31 [
i32 1, label %32
i32 2, label %32
i32 3, label %9
i32 4, label %13
i32 5, label %14
i32 6, label %15
i32 7, label %19
i32 8, label %20
i32 9, label %21
i32 10, label %25
i32 11, label %26
i32 12, label %27
]
9: ; preds = %2
%10 = load i32, i32* %3
%11 = icmp slt i32 %10, 21
%12 = select i1 %11, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0)
br label %32
13: ; preds = %2
br label %32
14: ; preds = %2
br label %32
15: ; preds = %2
%16 = load i32, i32* %3
%17 = icmp slt i32 %16, 21
%18 = select i1 %17, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0)
br label %32
19: ; preds = %2
br label %32
20: ; preds = %2
br label %32
21: ; preds = %2
%22 = load i32, i32* %3
%23 = icmp slt i32 %22, 21
%24 = select i1 %23, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0)
br label %32
25: ; preds = %2
br label %32
26: ; preds = %2
br label %32
27: ; preds = %2
%28 = load i32, i32* %3
%29 = icmp slt i32 %28, 21
%30 = select i1 %29, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0)
br label %32
31: ; preds = %2
br label %32
32: ; preds = %27, %21, %15, %9, %2, %2, %31, %26, %25, %20, %19, %14, %13
%33 = phi i8* [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), %31 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), %26 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), %25 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), %20 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), %19 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), %14 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), %13 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), %2 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), %2 ], [ %12, %9 ], [ %18, %15 ], [ %24, %21 ], [ %30, %27 ]
%34 = call i32 @printf(i8* dereferenceable(1) %33)
ret i32 0
}