#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 *, char *);
void seiza(int month, int day) {
  char *con[] = {"CAPRICORN", "AQUARIUS", "PICES",   "ARIES",
                 "TAURUS",    "GEMINI",   "CANCER",  "LEO",
                 "VIRGO",     "LIBRA",    "ACORPIO", "SAGITTARIUS"};
  int x[] = {19, 18, 20, 19, 20, 21, 22, 22, 22, 23, 21, 21};
  if (x[month - 1] > day)
    month--;
  else if (month == 12)
    month = 0;
  printf("Therefore,your constellation is the %s.\n", con[month]);
}


x86 assembly (clang, -O0):
<seiza>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
lea    -0x70(%rbp),%rdi
lea    0x2c84(%rip),%rsi
mov    $0x60,%edx
call   1040 <memcpy@plt>
lea    -0xa0(%rbp),%rdi
lea    0xf3c(%rip),%rsi
mov    $0x30,%edx
call   1040 <memcpy@plt>
mov    -0x4(%rbp),%eax
sub    $0x1,%eax
cltq
mov    -0xa0(%rbp,%rax,4),%eax
cmp    -0x8(%rbp),%eax
jle    1184 <seiza+0x64>
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x4(%rbp)
jmp    119a <seiza+0x7a>
cmpl   $0xc,-0x4(%rbp)
jne    1195 <seiza+0x75>
movl   $0x0,-0x4(%rbp)
jmp    119a <seiza+0x7a>
movslq -0x4(%rbp),%rax
mov    -0x70(%rbp,%rax,8),%rsi
lea    0xeae(%rip),%rdi
call   1030 <printf@plt>
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<seiza>:
movslq %edi,%rax
add    $0xffffffff,%edi
lea    0xfa3(%rip),%rcx
xor    %edx,%edx
cmp    $0xc,%eax
cmovne %eax,%edx
cmp    %esi,-0x4(%rcx,%rax,4)
cmovg  %edi,%edx
movslq %edx,%rax
lea    0xf5a(%rip),%rcx
movslq (%rcx,%rax,4),%rsi
add    %rcx,%rsi
lea    0xf14(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"CAPRICORN\00"
@.str.1 = [9 x i8] c"AQUARIUS\00"
@.str.2 = [6 x i8] c"PICES\00"
@.str.3 = [6 x i8] c"ARIES\00"
@.str.4 = [7 x i8] c"TAURUS\00"
@.str.5 = [7 x i8] c"GEMINI\00"
@.str.6 = [7 x i8] c"CANCER\00"
@.str.7 = [4 x i8] c"LEO\00"
@.str.8 = [6 x i8] c"VIRGO\00"
@.str.9 = [6 x i8] c"LIBRA\00"
@.str.10 = [8 x i8] c"ACORPIO\00"
@.str.11 = [12 x i8] c"SAGITTARIUS\00"
@__const.seiza.con = [12 x i8*] [i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i32 0, i32 0)]
@__const.seiza.x = [12 x i32] [i32 19, i32 18, i32 20, i32 19, i32 20, i32 21, i32 22, i32 22, i32 22, i32 23, i32 21, i32 21]
@.str.12 = [41 x i8] c"Therefore,your constellation is the %s.\0A\00"
define void @seiza(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca [12 x i8*]
%6 = alloca [12 x i32]
store i32 %0, i32* %3
store i32 %1, i32* %4
%7 = bitcast [12 x i8*]* %5 to i8*
%8 = bitcast [12 x i32]* %6 to i8*
%9 = load i32, i32* %3
%10 = sub nsw i32 %9, 1
%11 = sext i32 %10 to i64
%12 = getelementptr inbounds [12 x i32], [12 x i32]* %6, i64 0, i64 %11
%13 = load i32, i32* %12
%14 = load i32, i32* %4
%15 = icmp sgt i32 %13, %14
br i1 %15, label %16, label %19
16: ; preds = %2
%17 = load i32, i32* %3
%18 = add nsw i32 %17, -1
store i32 %18, i32* %3
br label %24
19: ; preds = %2
%20 = load i32, i32* %3
%21 = icmp eq i32 %20, 12
br i1 %21, label %22, label %23
22: ; preds = %19
store i32 0, i32* %3
br label %23
23: ; preds = %22, %19
br label %24
24: ; preds = %23, %16
%25 = load i32, i32* %3
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [12 x i8*], [12 x i8*]* %5, i64 0, i64 %26
%28 = load i8*, i8** %27
%29 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.12, i64 0, i64 0), i8* %28)
ret void
}

LLVM IR (-O2):
@.str = [10 x i8] c"CAPRICORN\00"
@.str.1 = [9 x i8] c"AQUARIUS\00"
@.str.2 = [6 x i8] c"PICES\00"
@.str.3 = [6 x i8] c"ARIES\00"
@.str.4 = [7 x i8] c"TAURUS\00"
@.str.5 = [7 x i8] c"GEMINI\00"
@.str.6 = [7 x i8] c"CANCER\00"
@.str.7 = [4 x i8] c"LEO\00"
@.str.8 = [6 x i8] c"VIRGO\00"
@.str.9 = [6 x i8] c"LIBRA\00"
@.str.10 = [8 x i8] c"ACORPIO\00"
@.str.11 = [12 x i8] c"SAGITTARIUS\00"
@reltable.seiza = [12 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @.str to i64), i64 ptrtoint ([12 x i32]* @reltable.seiza to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.1 to i64), i64 ptrtoint ([12 x i32]* @reltable.seiza to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @.str.2 to i64), i64 ptrtoint ([12 x i32]* @reltable.seiza to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @.str.3 to i64), i64 ptrtoint ([12 x i32]* @reltable.seiza to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.4 to i64), i64 ptrtoint ([12 x i32]* @reltable.seiza to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.5 to i64), i64 ptrtoint ([12 x i32]* @reltable.seiza to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.6 to i64), i64 ptrtoint ([12 x i32]* @reltable.seiza to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.7 to i64), i64 ptrtoint ([12 x i32]* @reltable.seiza to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @.str.8 to i64), i64 ptrtoint ([12 x i32]* @reltable.seiza to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @.str.9 to i64), i64 ptrtoint ([12 x i32]* @reltable.seiza to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.10 to i64), i64 ptrtoint ([12 x i32]* @reltable.seiza to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([12 x i8]* @.str.11 to i64), i64 ptrtoint ([12 x i32]* @reltable.seiza to i64)) to i32)]
@__const.seiza.x = [12 x i32] [i32 19, i32 18, i32 20, i32 19, i32 20, i32 21, i32 22, i32 22, i32 22, i32 23, i32 21, i32 21]
@.str.12 = [41 x i8] c"Therefore,your constellation is the %s.\0A\00"
define void @seiza(i32 %0, i32 %1) {
%3 = add nsw i32 %0, -1
%4 = sext i32 %3 to i64
%5 = getelementptr inbounds [12 x i32], [12 x i32]* @__const.seiza.x, i64 0, i64 %4
%6 = load i32, i32* %5
%7 = icmp sgt i32 %6, %1
%8 = icmp eq i32 %0, 12
%9 = select i1 %8, i32 0, i32 %0
%10 = select i1 %7, i32 %3, i32 %9
%11 = sext i32 %10 to i64
%12 = shl i64 %11, 2
%13 = call i8* @llvm.load.relative.i64(i8* bitcast ([12 x i32]* @reltable.seiza to i8*), i64 %12)
%14 = tail call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.12, i64 0, i64 0), i8* %13)
ret void
}