#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(void) {
  int month;
  printf("请输入月份: ");
  scanf("%d", &month);
  switch (month) {
  case 1:
  case 2:
  case 12:
    printf("%d月是冬季\n", month);
    break;
  case 3:
  case 4:
  case 5:
    printf("%d月是春季\n", month);
  case 6:
  case 7:
  case 8:
    printf("%d月是夏季\n", month);
    break;
  case 9:
  case 10:
  case 11:
    printf("%d月是秋季\n", month);
    break;
  default:
    printf("%d月不存在!!\n", month);
    break;
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xefa(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xefe(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0xb,%eax
ja     11c9 <main+0xa9>
mov    -0x10(%rbp),%rax
lea    0xe93(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x8(%rbp),%esi
lea    0xec5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11da <main+0xba>
mov    -0x8(%rbp),%esi
lea    0xebf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
lea    0xebe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11da <main+0xba>
mov    -0x8(%rbp),%esi
lea    0xeb8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11da <main+0xba>
mov    -0x8(%rbp),%esi
lea    0xeb2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xf08(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf0c(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%esi
lea    -0x1(%rsi),%eax
cmp    $0xb,%eax
ja     1189 <main+0x69>
lea    0xead(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xee2(%rip),%rdi
jmp    1190 <main+0x70>
lea    0xee9(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x4(%rsp),%esi
lea    0xee7(%rip),%rdi
jmp    1190 <main+0x70>
lea    0xeee(%rip),%rdi
jmp    1190 <main+0x70>
lea    0xef5(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [18 x i8] c"\E8\AF\B7\E8\BE\93\E5\85\A5\E6\9C\88\E4\BB\BD: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [16 x i8] c"%d\E6\9C\88\E6\98\AF\E5\86\AC\E5\AD\A3\0A\00"
@.str.3 = [16 x i8] c"%d\E6\9C\88\E6\98\AF\E6\98\A5\E5\AD\A3\0A\00"
@.str.4 = [16 x i8] c"%d\E6\9C\88\E6\98\AF\E5\A4\8F\E5\AD\A3\0A\00"
@.str.5 = [16 x i8] c"%d\E6\9C\88\E6\98\AF\E7\A7\8B\E5\AD\A3\0A\00"
@.str.6 = [18 x i8] c"%d\E6\9C\88\E4\B8\8D\E5\AD\98\E5\9C\A8!!\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%5 = load i32, i32* %2
switch i32 %5, label %18 [
i32 1, label %6
i32 2, label %6
i32 12, label %6
i32 3, label %9
i32 4, label %9
i32 5, label %9
i32 6, label %12
i32 7, label %12
i32 8, label %12
i32 9, label %15
i32 10, label %15
i32 11, label %15
]
6: ; preds = %0, %0, %0
%7 = load i32, i32* %2
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 %7)
br label %21
9: ; preds = %0, %0, %0
%10 = load i32, i32* %2
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 %10)
br label %12
12: ; preds = %0, %0, %0, %9
%13 = load i32, i32* %2
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i32 %13)
br label %21
15: ; preds = %0, %0, %0
%16 = load i32, i32* %2
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i32 %16)
br label %21
18: ; preds = %0
%19 = load i32, i32* %2
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i32 %19)
br label %21
21: ; preds = %18, %15, %12, %6
%22 = load i32, i32* %1
ret i32 %22
}

LLVM IR (-O2):
@.str = [18 x i8] c"\E8\AF\B7\E8\BE\93\E5\85\A5\E6\9C\88\E4\BB\BD: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [16 x i8] c"%d\E6\9C\88\E6\98\AF\E5\86\AC\E5\AD\A3\0A\00"
@.str.3 = [16 x i8] c"%d\E6\9C\88\E6\98\AF\E6\98\A5\E5\AD\A3\0A\00"
@.str.4 = [16 x i8] c"%d\E6\9C\88\E6\98\AF\E5\A4\8F\E5\AD\A3\0A\00"
@.str.5 = [16 x i8] c"%d\E6\9C\88\E6\98\AF\E7\A7\8B\E5\AD\A3\0A\00"
@.str.6 = [18 x i8] c"%d\E6\9C\88\E4\B8\8D\E5\AD\98\E5\9C\A8!!\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%5 = load i32, i32* %1
switch i32 %5, label %16 [
i32 1, label %6
i32 2, label %6
i32 12, label %6
i32 3, label %8
i32 4, label %8
i32 5, label %8
i32 6, label %11
i32 7, label %11
i32 8, label %11
i32 9, label %14
i32 10, label %14
i32 11, label %14
]
6: ; preds = %0, %0, %0
%7 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 %5)
br label %18
8: ; preds = %0, %0, %0
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i32 %5)
%10 = load i32, i32* %1
br label %11
11: ; preds = %0, %0, %0, %8
%12 = phi i32 [ %5, %0 ], [ %5, %0 ], [ %5, %0 ], [ %10, %8 ]
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i32 %12)
br label %18
14: ; preds = %0, %0, %0
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i32 %5)
br label %18
16: ; preds = %0
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i32 %5)
br label %18
18: ; preds = %16, %14, %11, %6
ret i32 0
}