#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 */
typedef int /*<<< orphan*/ time_t;
struct tm {
  int tm_year;
};
struct option {
  char *member_0;
  int member_1;
  int *member_2;
  char member_3;
};

/* Variables and functions */
int EXIT_SUCCESS;
int /*<<< orphan*/ abort();
int atoi(int /*<<< orphan*/);
int /*<<< orphan*/ check_arg(char *, int, int, int *);
int /*<<< orphan*/ check_year(int, int, int);
int getopt_long(int, char **, char const *const, struct option const *,
                int /*<<< orphan*/ *);
int /*<<< orphan*/ help(int /*<<< orphan*/, int /*<<< orphan*/);
struct tm *localtime(int /*<<< orphan*/ *);
int /*<<< orphan*/ optarg;
int optind;
int /*<<< orphan*/ print_easter(int, int, int, int, int, int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdout;
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int /*<<< orphan*/ usage(int /*<<< orphan*/, int);
int /*<<< orphan*/ version(int /*<<< orphan*/, int /*<<< orphan*/);
int main(int argc, char *argv[]) {
  time_t t = time(NULL);
  struct tm *locp = localtime(&t);
  struct tm loc = *locp;
  int y;
  int west = 0;
  int orth = 0;
  int jul = 0;
  int header = 0;
  int a = 0;
  int b = 0;
  int intarg;
  int next_option;
  const char *const short_options = "hvywojH13A:B:";
  const struct option long_options[] = {
      {"help", 0, NULL, 'h'},    {"version", 0, NULL, 'v'},
      {"western", 0, NULL, 'w'}, {"orthodox", 0, NULL, 'o'},
      {"julian", 0, NULL, 'j'},  {"header", 0, NULL, 'H'},
      {NULL, 2, &y, 'y'},        {NULL, 0, NULL, '1'},
      {NULL, 0, NULL, '3'},      {NULL, 1, NULL, 'A'},
      {NULL, 1, NULL, 'B'},      {NULL, 0, NULL, 0}};
  do {
    next_option = getopt_long(argc, argv, short_options, long_options, NULL);
    switch (next_option) {
    case 'h':
      help(stdout, 0);
      break;
    case 'v':
      version(stdout, 0);
      break;
    case 'y':
      break;
    case 'w':
      west = 1;
      break;
    case 'o':
      orth = 1;
      break;
    case 'j':
      jul = 1;
      break;
    case 'H':
      header = 1;
      break;
    case '1':
      b = 0;
      a = 0;
      break;
    case '3':
      b = 1;
      a = 1;
      break;
    case 'A':
      if ((intarg = atoi(optarg)) > 0) {
        a += intarg;
      } else {
        b += -intarg;
      }
      break;
    case 'B':
      if ((intarg = atoi(optarg)) > 0) {
        b += intarg;
      } else {
        a += -intarg;
      }
      break;
    case '?':
      usage(stderr, 1);
    case -1:
      break;
    default:
      abort();
    }
  } while (next_option != -1);
  if ((orth == 0) && (jul == 0))
    west = 1;
  if (header) {
    if (jul)
      printf("Julian\t\t");
    if (west)
      printf("Western\t\t");
    if (orth)
      printf("Eastern");
    printf("\n");
  }
  if (optind == argc) {
    y = 1900 + loc.tm_year;
    check_year(y, b, a);
    print_easter(jul, west, orth, y, b, a);
  } else {
    while (optind < argc) {
      check_arg(argv[optind++], b, a, &y);
      print_easter(jul, west, orth, y, b, a);
    }
  }
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1f0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1090 <time@plt>
mov    %eax,-0x14(%rbp)
lea    -0x14(%rbp),%rdi
call   1030 <localtime@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x28(%rbp)
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
movl   $0x0,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
movl   $0x0,-0x40(%rbp)
movl   $0x0,-0x44(%rbp)
lea    0xfb0(%rip),%rax
mov    %rax,-0x58(%rbp)
lea    -0x1e0(%rbp),%rdi
xor    %esi,%esi
mov    $0x180,%edx
call   1080 <memset@plt>
lea    0xfa0(%rip),%rax
mov    %rax,-0x1e0(%rbp)
movb   $0x68,-0x1c8(%rbp)
lea    0xf90(%rip),%rax
mov    %rax,-0x1c0(%rbp)
movb   $0x76,-0x1a8(%rbp)
lea    0xf83(%rip),%rax
mov    %rax,-0x1a0(%rbp)
movb   $0x77,-0x188(%rbp)
lea    0xf76(%rip),%rax
mov    %rax,-0x180(%rbp)
movb   $0x6f,-0x168(%rbp)
lea    0xf6a(%rip),%rax
mov    %rax,-0x160(%rbp)
movb   $0x6a,-0x148(%rbp)
lea    0xf5c(%rip),%rax
mov    %rax,-0x140(%rbp)
movb   $0x48,-0x128(%rbp)
movl   $0x2,-0x118(%rbp)
lea    -0x2c(%rbp),%rax
mov    %rax,-0x110(%rbp)
movb   $0x79,-0x108(%rbp)
movb   $0x31,-0xe8(%rbp)
movb   $0x33,-0xc8(%rbp)
movl   $0x1,-0xb8(%rbp)
movb   $0x41,-0xa8(%rbp)
movl   $0x1,-0x98(%rbp)
movb   $0x42,-0x88(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xec1(%rip),%rdx
xor    %eax,%eax
mov    %eax,%r8d
lea    -0x1e0(%rbp),%rcx
call   1050 <getopt_long@plt>
mov    %eax,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,%ecx
mov    %rcx,-0x1e8(%rbp)
sub    $0x7a,%eax
ja     147b <main+0x2ab>
mov    -0x1e8(%rbp),%rax
lea    0xc9b(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    0x2c53(%rip),%rax
mov    (%rax),%edi
xor    %esi,%esi
call   10d0 <help@plt>
jmp    1482 <main+0x2b2>
mov    0x2c3e(%rip),%rax
mov    (%rax),%edi
xor    %esi,%esi
call   10a0 <version@plt>
jmp    1482 <main+0x2b2>
jmp    1482 <main+0x2b2>
movl   $0x1,-0x30(%rbp)
jmp    1482 <main+0x2b2>
movl   $0x1,-0x34(%rbp)
jmp    1482 <main+0x2b2>
movl   $0x1,-0x38(%rbp)
jmp    1482 <main+0x2b2>
movl   $0x1,-0x3c(%rbp)
jmp    1482 <main+0x2b2>
movl   $0x0,-0x44(%rbp)
movl   $0x0,-0x40(%rbp)
jmp    1482 <main+0x2b2>
movl   $0x1,-0x44(%rbp)
movl   $0x1,-0x40(%rbp)
jmp    1482 <main+0x2b2>
mov    0x2bfe(%rip),%rax
mov    (%rax),%edi
call   10e0 <atoi@plt>
mov    %eax,-0x48(%rbp)
cmp    $0x0,%eax
jle    141b <main+0x24b>
mov    -0x48(%rbp),%eax
add    -0x40(%rbp),%eax
mov    %eax,-0x40(%rbp)
jmp    1426 <main+0x256>
xor    %eax,%eax
sub    -0x48(%rbp),%eax
add    -0x44(%rbp),%eax
mov    %eax,-0x44(%rbp)
jmp    1482 <main+0x2b2>
mov    0x2bc6(%rip),%rax
mov    (%rax),%edi
call   10e0 <atoi@plt>
mov    %eax,-0x48(%rbp)
cmp    $0x0,%eax
jle    1453 <main+0x283>
mov    -0x48(%rbp),%eax
add    -0x44(%rbp),%eax
mov    %eax,-0x44(%rbp)
jmp    145e <main+0x28e>
xor    %eax,%eax
sub    -0x48(%rbp),%eax
add    -0x40(%rbp),%eax
mov    %eax,-0x40(%rbp)
jmp    1482 <main+0x2b2>
mov    0x2b66(%rip),%rax
mov    (%rax),%edi
mov    $0x1,%esi
call   10c0 <usage@plt>
jmp    1482 <main+0x2b2>
mov    $0x0,%al
call   1040 <abort@plt>
jmp    1487 <main+0x2b7>
cmpl   $0xffffffff,-0x4c(%rbp)
jne    131d <main+0x14d>
cmpl   $0x0,-0x34(%rbp)
jne    14ac <main+0x2dc>
cmpl   $0x0,-0x38(%rbp)
jne    14ac <main+0x2dc>
movl   $0x1,-0x30(%rbp)
cmpl   $0x0,-0x3c(%rbp)
je     1504 <main+0x334>
cmpl   $0x0,-0x38(%rbp)
je     14cc <main+0x2fc>
lea    0xd5f(%rip),%rdi
call   1060 <printf@plt>
cmpl   $0x0,-0x30(%rbp)
je     14e2 <main+0x312>
lea    0xd52(%rip),%rdi
call   1060 <printf@plt>
cmpl   $0x0,-0x34(%rbp)
je     14f8 <main+0x328>
lea    0xd46(%rip),%rdi
call   1060 <printf@plt>
lea    0xd42(%rip),%rdi
call   1060 <printf@plt>
mov    0x2ad5(%rip),%rax
mov    (%rax),%eax
cmp    -0x8(%rbp),%eax
jne    154d <main+0x37d>
mov    -0x28(%rbp),%eax
add    $0x76c,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x44(%rbp),%esi
mov    -0x40(%rbp),%edx
call   1070 <check_year@plt>
mov    -0x38(%rbp),%edi
mov    -0x30(%rbp),%esi
mov    -0x34(%rbp),%edx
mov    -0x2c(%rbp),%ecx
mov    -0x44(%rbp),%r8d
mov    -0x40(%rbp),%r9d
call   10f0 <print_easter@plt>
jmp    15b8 <main+0x3e8>
jmp    1552 <main+0x382>
mov    0x2a87(%rip),%rax
mov    (%rax),%eax
cmp    -0x8(%rbp),%eax
jge    15b3 <main+0x3e3>
mov    -0x10(%rbp),%rax
mov    0x2a71(%rip),%rcx
mov    (%rcx),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    0x2a63(%rip),%rdx
mov    %esi,(%rdx)
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
mov    -0x44(%rbp),%esi
mov    -0x40(%rbp),%edx
lea    -0x2c(%rbp),%rcx
call   10b0 <check_arg@plt>
mov    -0x38(%rbp),%edi
mov    -0x30(%rbp),%esi
mov    -0x34(%rbp),%edx
mov    -0x2c(%rbp),%ecx
mov    -0x44(%rbp),%r8d
mov    -0x40(%rbp),%r9d
call   10f0 <print_easter@plt>
jmp    1552 <main+0x382>
jmp    15b8 <main+0x3e8>
mov    0x2a01(%rip),%rax
mov    (%rax),%eax
add    $0x1f0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1b8,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
xor    %eax,%eax
mov    %rax,0x20(%rsp)
xor    %edi,%edi
call   10a0 <time@plt>
mov    %eax,0x2c(%rsp)
lea    0x2c(%rsp),%rdi
call   1040 <localtime@plt>
mov    (%rax),%eax
mov    %eax,0x28(%rsp)
lea    0x30(%rsp),%r13
mov    $0x180,%edx
mov    %r13,%rdi
xor    %esi,%esi
call   1090 <memset@plt>
lea    0xeff(%rip),%rax
mov    %rax,0x30(%rsp)
movb   $0x68,0x48(%rsp)
lea    0xef3(%rip),%rax
mov    %rax,0x50(%rsp)
movb   $0x76,0x68(%rsp)
lea    0xeea(%rip),%rax
mov    %rax,0x70(%rsp)
movb   $0x77,0x88(%rsp)
77
lea    0xede(%rip),%rax
mov    %rax,0x90(%rsp)
movb   $0x6f,0xa8(%rsp)
6f
lea    0xed0(%rip),%rax
mov    %rax,0xb0(%rsp)
movb   $0x6a,0xc8(%rsp)
6a
lea    0xec0(%rip),%rax
mov    %rax,0xd0(%rsp)
movb   $0x48,0xe8(%rsp)
48
movl   $0x2,0xf8(%rsp)
lea    0x1c(%rsp),%rax
mov    %rax,0x100(%rsp)
movb   $0x79,0x108(%rsp)
79
movb   $0x31,0x128(%rsp)
31
movb   $0x33,0x148(%rsp)
33
movl   $0x1,0x158(%rsp)
movb   $0x41,0x168(%rsp)
41
movl   $0x1,0x178(%rsp)
movb   $0x42,0x188(%rsp)
42
lea    0xe20(%rip),%r15
xor    %r14d,%r14d
movl   $0x0,0x14(%rsp)
movl   $0x0,0x10(%rsp)
movl   $0x0,0x18(%rsp)
movl   $0x0,0xc(%rsp)
jmp    134a <main+0x16a>
movl   $0x1,0x14(%rsp)
movl   $0x1,0x10(%rsp)
nopl   0x0(%rax)
cmp    $0xffffffff,%r12d
je     1458 <main+0x278>
mov    %r14d,%eax
mov    %eax,%r14d
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %r15,%rdx
mov    %r13,%rcx
xor    %r8d,%r8d
call   1060 <getopt_long@plt>
mov    %eax,%r12d
mov    $0x1,%eax
cmp    $0x48,%r12d
je     134d <main+0x16d>
lea    -0x31(%r12),%eax
cmp    $0x48,%eax
ja     139d <main+0x1bd>
lea    0xc7e(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0x0,0x14(%rsp)
movl   $0x0,0x10(%rsp)
jmp    1340 <main+0x160>
cmp    $0xffffffff,%r12d
je     1340 <main+0x160>
jmp    1578 <main+0x398>
mov    0x2c21(%rip),%rax
mov    (%rax),%edi
mov    $0x1,%esi
call   10d0 <usage@plt>
jmp    1340 <main+0x160>
mov    0x2c34(%rip),%rax
mov    (%rax),%edi
call   10f0 <atoi@plt>
test   %eax,%eax
jle    1446 <main+0x266>
add    %eax,0x14(%rsp)
jmp    1340 <main+0x160>
mov    0x2c19(%rip),%rax
mov    (%rax),%edi
call   10f0 <atoi@plt>
test   %eax,%eax
jle    144f <main+0x26f>
add    %eax,0x10(%rsp)
jmp    1340 <main+0x160>
mov    0x2bce(%rip),%rax
mov    (%rax),%edi
xor    %esi,%esi
call   10e0 <help@plt>
jmp    1340 <main+0x160>
mov    $0x1,%eax
mov    %rax,0x20(%rsp)
jmp    1340 <main+0x160>
movl   $0x1,0x18(%rsp)
jmp    1340 <main+0x160>
mov    0x2b9d(%rip),%rax
mov    (%rax),%edi
xor    %esi,%esi
call   10b0 <version@plt>
jmp    1340 <main+0x160>
movl   $0x1,0xc(%rsp)
jmp    1340 <main+0x160>
sub    %eax,0x10(%rsp)
jmp    1340 <main+0x160>
sub    %eax,0x14(%rsp)
jmp    1340 <main+0x160>
mov    0x18(%rsp),%r15d
mov    %r15d,%eax
mov    0x20(%rsp),%rdx
or     %edx,%eax
mov    $0x1,%eax
mov    0xc(%rsp),%ecx
cmove  %eax,%ecx
mov    %ecx,0xc(%rsp)
test   %r14d,%r14d
mov    0x14(%rsp),%r13d
mov    0x10(%rsp),%r12d
mov    %rdx,0x20(%rsp)
je     14c9 <main+0x2e9>
test   %edx,%edx
je     149b <main+0x2bb>
lea    0xcc8(%rip),%rdi
call   1070 <printf@plt>
cmpl   $0x0,0xc(%rsp)
je     14ae <main+0x2ce>
lea    0xcbe(%rip),%rdi
call   1070 <printf@plt>
test   %r15d,%r15d
je     14bf <main+0x2df>
lea    0xcb7(%rip),%rdi
call   1070 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x2b10(%rip),%r14
mov    (%r14),%eax
cmp    %ebp,%eax
jne    150d <main+0x32d>
mov    0x28(%rsp),%edi
add    $0x76c,%edi
mov    %edi,0x1c(%rsp)
mov    %r12d,%esi
mov    %r13d,%edx
call   1080 <check_year@plt>
mov    0x1c(%rsp),%ecx
mov    0x20(%rsp),%rdi
mov    0xc(%rsp),%esi
mov    %r15d,%edx
mov    %r12d,%r8d
mov    %r13d,%r9d
call   1100 <print_easter@plt>
jmp    155d <main+0x37d>
mov    %r15d,0x18(%rsp)
mov    0x20(%rsp),%r15
jge    155d <main+0x37d>
nopl   0x0(%rax)
lea    0x1(%rax),%ecx
mov    %ecx,(%r14)
cltq
mov    (%rbx,%rax,8),%rdi
mov    %r12d,%esi
mov    %r13d,%edx
lea    0x1c(%rsp),%rcx
call   10c0 <check_arg@plt>
mov    0x1c(%rsp),%ecx
mov    %r15d,%edi
mov    0xc(%rsp),%esi
mov    0x18(%rsp),%edx
mov    %r12d,%r8d
mov    %r13d,%r9d
call   1100 <print_easter@plt>
mov    (%r14),%eax
cmp    %ebp,%eax
jl     1520 <main+0x340>
mov    0x2a5c(%rip),%rax
mov    (%rax),%eax
add    $0x1b8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %eax,%eax
call   1050 <abort@plt>

LLVM IR (-O0):
%struct.tm = type { i32 }
%struct.option = type { i8*, i32, i32*, i8 }
@.str = [14 x i8] c"hvywojH13A:B:\00"
@.str.1 = [5 x i8] c"help\00"
@.str.2 = [8 x i8] c"version\00"
@.str.3 = [8 x i8] c"western\00"
@.str.4 = [9 x i8] c"orthodox\00"
@.str.5 = [7 x i8] c"julian\00"
@.str.6 = [7 x i8] c"header\00"
@stdout = global i32 0
@optarg = global i32 0
@stderr = global i32 0
@.str.7 = [9 x i8] c"Julian\09\09\00"
@.str.8 = [10 x i8] c"Western\09\09\00"
@.str.9 = [8 x i8] c"Eastern\00"
@.str.10 = [2 x i8] c"\0A\00"
@optind = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca %struct.tm*
%8 = alloca %struct.tm
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i8*
%19 = alloca [12 x %struct.option]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%20 = call i32 @time(i32* null)
store i32 %20, i32* %6
%21 = call %struct.tm* @localtime(i32* %6)
store %struct.tm* %21, %struct.tm** %7
%22 = load %struct.tm*, %struct.tm** %7
%23 = bitcast %struct.tm* %8 to i8*
%24 = bitcast %struct.tm* %22 to i8*
store i32 0, i32* %10
store i32 0, i32* %11
store i32 0, i32* %12
store i32 0, i32* %13
store i32 0, i32* %14
store i32 0, i32* %15
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8** %18
%25 = bitcast [12 x %struct.option]* %19 to i8*
%26 = getelementptr inbounds [12 x %struct.option], [12 x %struct.option]* %19, i64 0, i64 0
%27 = getelementptr inbounds %struct.option, %struct.option* %26, i32 0, i32 0
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8** %27
%28 = getelementptr inbounds %struct.option, %struct.option* %26, i32 0, i32 3
store i8 104, i8* %28
%29 = getelementptr inbounds %struct.option, %struct.option* %26, i64 1
%30 = getelementptr inbounds %struct.option, %struct.option* %29, i32 0, i32 0
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8** %30
%31 = getelementptr inbounds %struct.option, %struct.option* %29, i32 0, i32 3
store i8 118, i8* %31
%32 = getelementptr inbounds %struct.option, %struct.option* %29, i64 1
%33 = getelementptr inbounds %struct.option, %struct.option* %32, i32 0, i32 0
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8** %33
%34 = getelementptr inbounds %struct.option, %struct.option* %32, i32 0, i32 3
store i8 119, i8* %34
%35 = getelementptr inbounds %struct.option, %struct.option* %32, i64 1
%36 = getelementptr inbounds %struct.option, %struct.option* %35, i32 0, i32 0
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8** %36
%37 = getelementptr inbounds %struct.option, %struct.option* %35, i32 0, i32 3
store i8 111, i8* %37
%38 = getelementptr inbounds %struct.option, %struct.option* %35, i64 1
%39 = getelementptr inbounds %struct.option, %struct.option* %38, i32 0, i32 0
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8** %39
%40 = getelementptr inbounds %struct.option, %struct.option* %38, i32 0, i32 3
store i8 106, i8* %40
%41 = getelementptr inbounds %struct.option, %struct.option* %38, i64 1
%42 = getelementptr inbounds %struct.option, %struct.option* %41, i32 0, i32 0
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i8** %42
%43 = getelementptr inbounds %struct.option, %struct.option* %41, i32 0, i32 3
store i8 72, i8* %43
%44 = getelementptr inbounds %struct.option, %struct.option* %41, i64 1
%45 = getelementptr inbounds %struct.option, %struct.option* %44, i32 0, i32 1
store i32 2, i32* %45
%46 = getelementptr inbounds %struct.option, %struct.option* %44, i32 0, i32 2
store i32* %9, i32** %46
%47 = getelementptr inbounds %struct.option, %struct.option* %44, i32 0, i32 3
store i8 121, i8* %47
%48 = getelementptr inbounds %struct.option, %struct.option* %44, i64 1
%49 = getelementptr inbounds %struct.option, %struct.option* %48, i32 0, i32 3
store i8 49, i8* %49
%50 = getelementptr inbounds %struct.option, %struct.option* %48, i64 1
%51 = getelementptr inbounds %struct.option, %struct.option* %50, i32 0, i32 3
store i8 51, i8* %51
%52 = getelementptr inbounds %struct.option, %struct.option* %50, i64 1
%53 = getelementptr inbounds %struct.option, %struct.option* %52, i32 0, i32 1
store i32 1, i32* %53
%54 = getelementptr inbounds %struct.option, %struct.option* %52, i32 0, i32 3
store i8 65, i8* %54
%55 = getelementptr inbounds %struct.option, %struct.option* %52, i64 1
%56 = getelementptr inbounds %struct.option, %struct.option* %55, i32 0, i32 1
store i32 1, i32* %56
%57 = getelementptr inbounds %struct.option, %struct.option* %55, i32 0, i32 3
store i8 66, i8* %57
%58 = getelementptr inbounds %struct.option, %struct.option* %55, i64 1
br label %59
59: ; preds = %113, %2
%60 = load i32, i32* %4
%61 = load i8**, i8*** %5
%62 = getelementptr inbounds [12 x %struct.option], [12 x %struct.option]* %19, i64 0, i64 0
%63 = call i32 @getopt_long(i32 %60, i8** %61, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i32 0, i32 0), %struct.option* %62, i32* null)
store i32 %63, i32* %17
%64 = load i32, i32* %17
switch i32 %64, label %110 [
i32 104, label %65
i32 118, label %68
i32 121, label %71
i32 119, label %72
i32 111, label %73
i32 106, label %74
i32 72, label %75
i32 49, label %76
i32 51, label %77
i32 65, label %78
i32 66, label %92
i32 63, label %106
i32 -1, label %109
]
65: ; preds = %59
%66 = load i32, i32* @stdout
%67 = call i32 @help(i32 %66, i32 0)
br label %112
68: ; preds = %59
%69 = load i32, i32* @stdout
%70 = call i32 @version(i32 %69, i32 0)
br label %112
71: ; preds = %59
br label %112
72: ; preds = %59
store i32 1, i32* %10
br label %112
73: ; preds = %59
store i32 1, i32* %11
br label %112
74: ; preds = %59
store i32 1, i32* %12
br label %112
75: ; preds = %59
store i32 1, i32* %13
br label %112
76: ; preds = %59
store i32 0, i32* %15
store i32 0, i32* %14
br label %112
77: ; preds = %59
store i32 1, i32* %15
store i32 1, i32* %14
br label %112
78: ; preds = %59
%79 = load i32, i32* @optarg
%80 = call i32 @atoi(i32 %79)
store i32 %80, i32* %16
%81 = icmp sgt i32 %80, 0
br i1 %81, label %82, label %86
82: ; preds = %78
%83 = load i32, i32* %16
%84 = load i32, i32* %14
%85 = add nsw i32 %84, %83
store i32 %85, i32* %14
br label %91
86: ; preds = %78
%87 = load i32, i32* %16
%88 = sub nsw i32 0, %87
%89 = load i32, i32* %15
%90 = add nsw i32 %89, %88
store i32 %90, i32* %15
br label %91
91: ; preds = %86, %82
br label %112
92: ; preds = %59
%93 = load i32, i32* @optarg
%94 = call i32 @atoi(i32 %93)
store i32 %94, i32* %16
%95 = icmp sgt i32 %94, 0
br i1 %95, label %96, label %100
96: ; preds = %92
%97 = load i32, i32* %16
%98 = load i32, i32* %15
%99 = add nsw i32 %98, %97
store i32 %99, i32* %15
br label %105
100: ; preds = %92
%101 = load i32, i32* %16
%102 = sub nsw i32 0, %101
%103 = load i32, i32* %14
%104 = add nsw i32 %103, %102
store i32 %104, i32* %14
br label %105
105: ; preds = %100, %96
br label %112
106: ; preds = %59
%107 = load i32, i32* @stderr
%108 = call i32 @usage(i32 %107, i32 1)
br label %109
109: ; preds = %59, %106
br label %112
110: ; preds = %59
%111 = call i32 (...) @abort()
unreachable
112: ; preds = %109, %105, %91, %77, %76, %75, %74, %73, %72, %71, %68, %65
br label %113
113: ; preds = %112
%114 = load i32, i32* %17
%115 = icmp ne i32 %114, -1
br i1 %115, label %59, label %116
116: ; preds = %113
%117 = load i32, i32* %11
%118 = icmp eq i32 %117, 0
br i1 %118, label %119, label %123
119: ; preds = %116
%120 = load i32, i32* %12
%121 = icmp eq i32 %120, 0
br i1 %121, label %122, label %123
122: ; preds = %119
store i32 1, i32* %10
br label %123
123: ; preds = %122, %119, %116
%124 = load i32, i32* %13
%125 = icmp ne i32 %124, 0
br i1 %125, label %126, label %143
126: ; preds = %123
%127 = load i32, i32* %12
%128 = icmp ne i32 %127, 0
br i1 %128, label %129, label %131
129: ; preds = %126
%130 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
br label %131
131: ; preds = %129, %126
%132 = load i32, i32* %10
%133 = icmp ne i32 %132, 0
br i1 %133, label %134, label %136
134: ; preds = %131
%135 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0))
br label %136
136: ; preds = %134, %131
%137 = load i32, i32* %11
%138 = icmp ne i32 %137, 0
br i1 %138, label %139, label %141
139: ; preds = %136
%140 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
br label %141
141: ; preds = %139, %136
%142 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
br label %143
143: ; preds = %141, %123
%144 = load i32, i32* @optind
%145 = load i32, i32* %4
%146 = icmp eq i32 %144, %145
br i1 %146, label %147, label %162
147: ; preds = %143
%148 = getelementptr inbounds %struct.tm, %struct.tm* %8, i32 0, i32 0
%149 = load i32, i32* %148
%150 = add nsw i32 1900, %149
store i32 %150, i32* %9
%151 = load i32, i32* %9
%152 = load i32, i32* %15
%153 = load i32, i32* %14
%154 = call i32 @check_year(i32 %151, i32 %152, i32 %153)
%155 = load i32, i32* %12
%156 = load i32, i32* %10
%157 = load i32, i32* %11
%158 = load i32, i32* %9
%159 = load i32, i32* %15
%160 = load i32, i32* %14
%161 = call i32 @print_easter(i32 %155, i32 %156, i32 %157, i32 %158, i32 %159, i32 %160)
br label %185
162: ; preds = %143
br label %163
163: ; preds = %167, %162
%164 = load i32, i32* @optind
%165 = load i32, i32* %4
%166 = icmp slt i32 %164, %165
br i1 %166, label %167, label %184
167: ; preds = %163
%168 = load i8**, i8*** %5
%169 = load i32, i32* @optind
%170 = add nsw i32 %169, 1
store i32 %170, i32* @optind
%171 = sext i32 %169 to i64
%172 = getelementptr inbounds i8*, i8** %168, i64 %171
%173 = load i8*, i8** %172
%174 = load i32, i32* %15
%175 = load i32, i32* %14
%176 = call i32 @check_arg(i8* %173, i32 %174, i32 %175, i32* %9)
%177 = load i32, i32* %12
%178 = load i32, i32* %10
%179 = load i32, i32* %11
%180 = load i32, i32* %9
%181 = load i32, i32* %15
%182 = load i32, i32* %14
%183 = call i32 @print_easter(i32 %177, i32 %178, i32 %179, i32 %180, i32 %181, i32 %182)
br label %163
184: ; preds = %163
br label %185
185: ; preds = %184, %147
%186 = load i32, i32* @EXIT_SUCCESS
ret i32 %186
}

LLVM IR (-O2):
%struct.option = type { i8*, i32, i32*, i8 }
%struct.tm = type { i32 }
@.str = [14 x i8] c"hvywojH13A:B:\00"
@.str.1 = [5 x i8] c"help\00"
@.str.2 = [8 x i8] c"version\00"
@.str.3 = [8 x i8] c"western\00"
@.str.4 = [9 x i8] c"orthodox\00"
@.str.5 = [7 x i8] c"julian\00"
@.str.6 = [7 x i8] c"header\00"
@stdout = global i32 0
@optarg = global i32 0
@stderr = global i32 0
@.str.7 = [9 x i8] c"Julian\09\09\00"
@.str.8 = [10 x i8] c"Western\09\09\00"
@.str.9 = [8 x i8] c"Eastern\00"
@optind = global i32 0
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca [12 x %struct.option]
%6 = bitcast i32* %3 to i8*
%7 = tail call i32 @time(i32* null)
store i32 %7, i32* %3
%8 = call %struct.tm* @localtime(i32* %3)
%9 = getelementptr inbounds %struct.tm, %struct.tm* %8, i64 0, i32 0
%10 = load i32, i32* %9
%11 = bitcast i32* %4 to i8*
%12 = bitcast [12 x %struct.option]* %5 to i8*
%13 = getelementptr inbounds [12 x %struct.option], [12 x %struct.option]* %5, i64 0, i64 0
%14 = getelementptr inbounds [12 x %struct.option], [12 x %struct.option]* %5, i64 0, i64 0, i32 0
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8** %14
%15 = getelementptr inbounds [12 x %struct.option], [12 x %struct.option]* %5, i64 0, i64 0, i32 3
store i8 104, i8* %15
%16 = getelementptr inbounds [12 x %struct.option], [12 x %struct.option]* %5, i64 0, i64 1, i32 0
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8** %16
%17 = getelementptr inbounds [12 x %struct.option], [12 x %struct.option]* %5, i64 0, i64 1, i32 3
store i8 118, i8* %17
%18 = getelementptr inbounds [12 x %struct.option], [12 x %struct.option]* %5, i64 0, i64 2, i32 0
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8** %18
%19 = getelementptr inbounds [12 x %struct.option], [12 x %struct.option]* %5, i64 0, i64 2, i32 3
store i8 119, i8* %19
%20 = getelementptr inbounds [12 x %struct.option], [12 x %struct.option]* %5, i64 0, i64 3, i32 0
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8** %20
%21 = getelementptr inbounds [12 x %struct.option], [12 x %struct.option]* %5, i64 0, i64 3, i32 3
store i8 111, i8* %21
%22 = getelementptr inbounds [12 x %struct.option], [12 x %struct.option]* %5, i64 0, i64 4, i32 0
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8** %22
%23 = getelementptr inbounds [12 x %struct.option], [12 x %struct.option]* %5, i64 0, i64 4, i32 3
store i8 106, i8* %23
%24 = getelementptr inbounds [12 x %struct.option], [12 x %struct.option]* %5, i64 0, i64 5, i32 0
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i8** %24
%25 = getelementptr inbounds [12 x %struct.option], [12 x %struct.option]* %5, i64 0, i64 5, i32 3
store i8 72, i8* %25
%26 = getelementptr inbounds [12 x %struct.option], [12 x %struct.option]* %5, i64 0, i64 6, i32 1
store i32 2, i32* %26
%27 = getelementptr inbounds [12 x %struct.option], [12 x %struct.option]* %5, i64 0, i64 6, i32 2
store i32* %4, i32** %27
%28 = getelementptr inbounds [12 x %struct.option], [12 x %struct.option]* %5, i64 0, i64 6, i32 3
store i8 121, i8* %28
%29 = getelementptr inbounds [12 x %struct.option], [12 x %struct.option]* %5, i64 0, i64 7, i32 3
store i8 49, i8* %29
%30 = getelementptr inbounds [12 x %struct.option], [12 x %struct.option]* %5, i64 0, i64 8, i32 3
store i8 51, i8* %30
%31 = getelementptr inbounds [12 x %struct.option], [12 x %struct.option]* %5, i64 0, i64 9, i32 1
store i32 1, i32* %31
%32 = getelementptr inbounds [12 x %struct.option], [12 x %struct.option]* %5, i64 0, i64 9, i32 3
store i8 65, i8* %32
%33 = getelementptr inbounds [12 x %struct.option], [12 x %struct.option]* %5, i64 0, i64 10, i32 1
store i32 1, i32* %33
%34 = getelementptr inbounds [12 x %struct.option], [12 x %struct.option]* %5, i64 0, i64 10, i32 3
store i8 66, i8* %34
br label %35
35: ; preds = %77, %2
%36 = phi i32 [ %78, %77 ], [ 0, %2 ]
%37 = phi i32 [ %43, %77 ], [ 0, %2 ]
%38 = phi i32 [ %79, %77 ], [ 0, %2 ]
%39 = phi i32 [ %80, %77 ], [ 0, %2 ]
%40 = phi i32 [ %81, %77 ], [ 0, %2 ]
%41 = phi i32 [ %82, %77 ], [ 0, %2 ]
br label %42
42: ; preds = %35, %42
%43 = phi i32 [ 1, %42 ], [ %37, %35 ]
%44 = call i32 @getopt_long(i32 %0, i8** %1, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), %struct.option* %13, i32* null)
switch i32 %44, label %70 [
i32 104, label %45
i32 118, label %48
i32 121, label %72
i32 119, label %73
i32 111, label %74
i32 106, label %75
i32 72, label %42
i32 49, label %76
i32 51, label %77
i32 65, label %51
i32 66, label %59
i32 63, label %67
i32 -1, label %72
]
45: ; preds = %42
%46 = load i32, i32* @stdout
%47 = call i32 @help(i32 %46, i32 0)
br label %77
48: ; preds = %42
%49 = load i32, i32* @stdout
%50 = call i32 @version(i32 %49, i32 0)
br label %77
51: ; preds = %42
%52 = load i32, i32* @optarg
%53 = call i32 @atoi(i32 %52)
%54 = icmp sgt i32 %53, 0
br i1 %54, label %55, label %57
55: ; preds = %51
%56 = add nsw i32 %53, %38
br label %77
57: ; preds = %51
%58 = sub i32 %39, %53
br label %77
59: ; preds = %42
%60 = load i32, i32* @optarg
%61 = call i32 @atoi(i32 %60)
%62 = icmp sgt i32 %61, 0
br i1 %62, label %63, label %65
63: ; preds = %59
%64 = add nsw i32 %61, %39
br label %77
65: ; preds = %59
%66 = sub i32 %38, %61
br label %77
67: ; preds = %42
%68 = load i32, i32* @stderr
%69 = call i32 @usage(i32 %68, i32 1)
br label %77
70: ; preds = %42
%71 = call i32 (...) @abort()
unreachable
72: ; preds = %42, %42
br label %77
73: ; preds = %42
br label %77
74: ; preds = %42
br label %77
75: ; preds = %42
br label %77
76: ; preds = %42
br label %77
77: ; preds = %42, %76, %75, %74, %73, %72, %45, %48, %67, %57, %55, %65, %63
%78 = phi i32 [ %36, %67 ], [ %36, %63 ], [ %36, %65 ], [ %36, %55 ], [ %36, %57 ], [ %36, %48 ], [ %36, %45 ], [ %36, %72 ], [ %36, %73 ], [ %36, %74 ], [ 1, %75 ], [ %36, %76 ], [ %36, %42 ]
%79 = phi i32 [ %38, %67 ], [ %38, %63 ], [ %66, %65 ], [ %56, %55 ], [ %38, %57 ], [ %38, %48 ], [ %38, %45 ], [ %38, %72 ], [ %38, %73 ], [ %38, %74 ], [ %38, %75 ], [ 0, %76 ], [ 1, %42 ]
%80 = phi i32 [ %39, %67 ], [ %64, %63 ], [ %39, %65 ], [ %39, %55 ], [ %58, %57 ], [ %39, %48 ], [ %39, %45 ], [ %39, %72 ], [ %39, %73 ], [ %39, %74 ], [ %39, %75 ], [ 0, %76 ], [ 1, %42 ]
%81 = phi i32 [ %40, %67 ], [ %40, %63 ], [ %40, %65 ], [ %40, %55 ], [ %40, %57 ], [ %40, %48 ], [ %40, %45 ], [ %40, %72 ], [ %40, %73 ], [ 1, %74 ], [ %40, %75 ], [ %40, %76 ], [ %40, %42 ]
%82 = phi i32 [ %41, %67 ], [ %41, %63 ], [ %41, %65 ], [ %41, %55 ], [ %41, %57 ], [ %41, %48 ], [ %41, %45 ], [ %41, %72 ], [ 1, %73 ], [ %41, %74 ], [ %41, %75 ], [ %41, %76 ], [ %41, %42 ]
%83 = icmp eq i32 %44, -1
br i1 %83, label %84, label %35
84: ; preds = %77
%85 = icmp eq i32 %81, 0
%86 = icmp eq i32 %78, 0
%87 = select i1 %85, i1 %86, i1 false
%88 = select i1 %87, i32 1, i32 %82
%89 = icmp eq i32 %43, 0
br i1 %89, label %102, label %90
90: ; preds = %84
br i1 %86, label %93, label %91
91: ; preds = %90
%92 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
br label %93
93: ; preds = %91, %90
%94 = icmp eq i32 %88, 0
br i1 %94, label %97, label %95
95: ; preds = %93
%96 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0))
br label %97
97: ; preds = %95, %93
br i1 %85, label %100, label %98
98: ; preds = %97
%99 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
br label %100
100: ; preds = %98, %97
%101 = call i32 @putchar(i32 10)
br label %102
102: ; preds = %100, %84
%103 = load i32, i32* @optind
%104 = icmp eq i32 %103, %0
br i1 %104, label %107, label %105
105: ; preds = %102
%106 = icmp slt i32 %103, %0
br i1 %106, label %112, label %123
107: ; preds = %102
%108 = add nsw i32 %10, 1900
store i32 %108, i32* %4
%109 = call i32 @check_year(i32 %108, i32 %80, i32 %79)
%110 = load i32, i32* %4
%111 = call i32 @print_easter(i32 %78, i32 %88, i32 %81, i32 %110, i32 %80, i32 %79)
br label %123
112: ; preds = %105, %112
%113 = phi i32 [ %121, %112 ], [ %103, %105 ]
%114 = add nsw i32 %113, 1
store i32 %114, i32* @optind
%115 = sext i32 %113 to i64
%116 = getelementptr inbounds i8*, i8** %1, i64 %115
%117 = load i8*, i8** %116
%118 = call i32 @check_arg(i8* %117, i32 %80, i32 %79, i32* %4)
%119 = load i32, i32* %4
%120 = call i32 @print_easter(i32 %78, i32 %88, i32 %81, i32 %119, i32 %80, i32 %79)
%121 = load i32, i32* @optind
%122 = icmp slt i32 %121, %0
br i1 %122, label %112, label %123
123: ; preds = %112, %105, %107
%124 = load i32, i32* @EXIT_SUCCESS
ret i32 %124
}