#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;
  int tm_mon;
  int tm_mday;
  int /*<<< orphan*/ member_5;
  int /*<<< orphan*/ member_4;
  int /*<<< orphan*/ member_3;
  int /*<<< orphan*/ member_2;
  int /*<<< orphan*/ member_1;
  int /*<<< orphan*/ member_0;
};
struct option {
  char *member_0;
  char member_3;
  int /*<<< orphan*/ member_2;
  int /*<<< orphan*/ const member_1;
};

/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int getopt_long(int, char **, char *, struct option *, int *);
char *optarg;
int optind;
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ putchar(char);
#define required_argument 128
int /*<<< orphan*/ sscanf(char *, char *, int *, int *, int *);
int /*<<< orphan*/ strcasecmp(char *, char *);
int /*<<< orphan*/ timegm(struct tm *);
void ParseCmdLineOpt(int argc, char *argv[], time_t *time_start,
                     time_t *time_end, int *model) {
  int c;
  struct tm timeinfo_start = {0, 0, 0, 0, 0, 0};
  struct tm timeinfo_end = {0, 0, 0, 0, 0, 0};
  int year, month, mday;
  while (1) {
    static struct option long_options[] = {{"start", required_argument, 0, 's'},
                                           {"end", required_argument, 0, 'e'},
                                           {"model", required_argument, 0, 'm'},
                                           {0, 0, 0, 0}};
    int option_index = 0;
    c = getopt_long(argc, argv, "a:b:c:d:", long_options, &option_index);
    if (-1 == c) {
      break;
    }
    switch (c) {
    case 's':
      sscanf(optarg, "%d-%d-%d", &year, &month, &mday);
      timeinfo_start.tm_year = year - 1900;
      timeinfo_start.tm_mon = month - 1;
      timeinfo_start.tm_mday = mday;
      *time_start = timegm(&timeinfo_start);
      break;
    case 'e':
      sscanf(optarg, "%d-%d-%d", &year, &month, &mday);
      timeinfo_end.tm_year = year - 1900;
      timeinfo_end.tm_mon = month - 1;
      timeinfo_end.tm_mday = mday;
      *time_end = timegm(&timeinfo_end);
      break;
    case 'm':
      if (strcasecmp("PIHM", optarg) == 0) {
        *model = 0;
      } else if (strcasecmp("CYCLES", optarg) == 0) {
        *model = 1;
      } else {
        printf("Error: Model %s is not recognized.\n", optarg);
        exit(EXIT_FAILURE);
      }
      break;
    case '?':
      break;
    default:
      exit(EXIT_FAILURE);
    }
  }
  if (optind < argc) {
    printf("non-option ARGV-elements: ");
    while (optind < argc) {
      printf("%s ", argv[optind++]);
    }
    putchar('\n');
  }
}


x86 assembly (clang, -O0):
<ParseCmdLineOpt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
lea    -0x50(%rbp),%rdi
xor    %esi,%esi
mov    $0x24,%edx
call   1070 <memset@plt>
lea    -0x78(%rbp),%rdi
xor    %esi,%esi
mov    $0x24,%edx
call   1070 <memset@plt>
movl   $0x0,-0x88(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xe3a(%rip),%rdx
lea    0x2e93(%rip),%rcx
lea    -0x88(%rbp),%r8
call   1050 <getopt_long@plt>
mov    %eax,-0x2c(%rbp)
mov    $0xffffffff,%eax
cmp    -0x2c(%rbp),%eax
jne    11ff <ParseCmdLineOpt+0x7f>
jmp    13a6 <ParseCmdLineOpt+0x226>
mov    -0x2c(%rbp),%eax
mov    %eax,-0x8c(%rbp)
sub    $0x3f,%eax
je     138e <ParseCmdLineOpt+0x20e>
jmp    1216 <ParseCmdLineOpt+0x96>
mov    -0x8c(%rbp),%eax
sub    $0x65,%eax
je     12aa <ParseCmdLineOpt+0x12a>
jmp    122a <ParseCmdLineOpt+0xaa>
mov    -0x8c(%rbp),%eax
sub    $0x6d,%eax
je     1302 <ParseCmdLineOpt+0x182>
jmp    123e <ParseCmdLineOpt+0xbe>
mov    -0x8c(%rbp),%eax
sub    $0x73,%eax
jne    1393 <ParseCmdLineOpt+0x213>
jmp    1252 <ParseCmdLineOpt+0xd2>
mov    0x2d9f(%rip),%rax
mov    (%rax),%rdi
lea    0xdb6(%rip),%rsi
lea    -0x7c(%rbp),%rdx
lea    -0x80(%rbp),%rcx
lea    -0x84(%rbp),%r8
call   1080 <sscanf@plt>
mov    -0x7c(%rbp),%eax
sub    $0x76c,%eax
mov    %eax,-0x50(%rbp)
mov    -0x80(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x4c(%rbp)
mov    -0x84(%rbp),%eax
mov    %eax,-0x48(%rbp)
lea    -0x50(%rbp),%rdi
call   1090 <timegm@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
jmp    13a1 <ParseCmdLineOpt+0x221>
mov    0x2d47(%rip),%rax
mov    (%rax),%rdi
lea    0xd5e(%rip),%rsi
lea    -0x7c(%rbp),%rdx
lea    -0x80(%rbp),%rcx
lea    -0x84(%rbp),%r8
call   1080 <sscanf@plt>
mov    -0x7c(%rbp),%eax
sub    $0x76c,%eax
mov    %eax,-0x78(%rbp)
mov    -0x80(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x74(%rbp)
mov    -0x84(%rbp),%eax
mov    %eax,-0x70(%rbp)
lea    -0x78(%rbp),%rdi
call   1090 <timegm@plt>
mov    %eax,%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
jmp    13a1 <ParseCmdLineOpt+0x221>
mov    0x2cef(%rip),%rax
mov    (%rax),%rsi
lea    0xd0f(%rip),%rdi
call   1040 <strcasecmp@plt>
cmp    $0x0,%eax
jne    1330 <ParseCmdLineOpt+0x1b0>
mov    -0x28(%rbp),%rax
movl   $0x0,(%rax)
jmp    1389 <ParseCmdLineOpt+0x209>
mov    0x2cc1(%rip),%rax
mov    (%rax),%rsi
lea    0xce6(%rip),%rdi
call   1040 <strcasecmp@plt>
cmp    $0x0,%eax
jne    135e <ParseCmdLineOpt+0x1de>
mov    -0x28(%rbp),%rax
movl   $0x1,(%rax)
jmp    1384 <ParseCmdLineOpt+0x204>
mov    0x2c93(%rip),%rax
mov    (%rax),%rsi
lea    0xcbf(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    0x2c53(%rip),%rax
mov    (%rax),%edi
call   10a0 <exit@plt>
jmp    1389 <ParseCmdLineOpt+0x209>
jmp    13a1 <ParseCmdLineOpt+0x221>
jmp    13a1 <ParseCmdLineOpt+0x221>
mov    0x2c36(%rip),%rax
mov    (%rax),%edi
call   10a0 <exit@plt>
jmp    11be <ParseCmdLineOpt+0x3e>
mov    0x2c33(%rip),%rax
mov    (%rax),%eax
cmp    -0x4(%rbp),%eax
jge    1417 <ParseCmdLineOpt+0x297>
lea    0xc93(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    0x2c13(%rip),%rax
mov    (%rax),%eax
cmp    -0x4(%rbp),%eax
jge    140d <ParseCmdLineOpt+0x28d>
mov    -0x10(%rbp),%rax
mov    0x2bfd(%rip),%rcx
mov    (%rcx),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    0x2bef(%rip),%rdx
mov    %esi,(%rdx)
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xc6c(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    13c6 <ParseCmdLineOpt+0x246>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ParseCmdLineOpt>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x88,%rsp
mov    %r8,0x18(%rsp)
mov    %rcx,0x28(%rsp)
mov    %rdx,0x20(%rsp)
mov    %rsi,%r13
mov    %edi,%r14d
xorps  %xmm0,%xmm0
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
movl   $0x0,0x80(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movl   $0x0,0x50(%rsp)
lea    0xe49(%rip),%r15
lea    0x2e92(%rip),%rbp
mov    %rsp,%rbx
mov    0x2e20(%rip),%r12
mov    %rsi,0x10(%rsp)
jmp    11f8 <ParseCmdLineOpt+0x88>
mov    0x18(%rsp),%rax
movl   $0x0,(%rax)
mov    %rbx,%r12
mov    %r13,%rbp
mov    0x10(%rsp),%r13
mov    %rsp,%rbx
movl   $0x0,(%rsp)
mov    %r14d,%edi
mov    %r13,%rsi
mov    %r15,%rdx
mov    %rbp,%rcx
mov    %rbx,%r8
call   1050 <getopt_long@plt>
cmp    $0x6c,%eax
jg     1280 <ParseCmdLineOpt+0x110>
cmp    $0x3f,%eax
je     11f8 <ParseCmdLineOpt+0x88>
cmp    $0x65,%eax
jne    133b <ParseCmdLineOpt+0x1cb>
mov    (%r12),%rdi
lea    0xde8(%rip),%rsi
lea    0xc(%rsp),%rdx
lea    0x8(%rsp),%rcx
lea    0x4(%rsp),%r8
call   1070 <sscanf@plt>
mov    0xc(%rsp),%eax
mov    $0xfffff894,%ecx
add    %ecx,%eax
mov    %eax,0x30(%rsp)
mov    0x8(%rsp),%eax
add    $0xffffffff,%eax
mov    %eax,0x34(%rsp)
mov    0x4(%rsp),%eax
mov    %eax,0x38(%rsp)
lea    0x30(%rsp),%rdi
call   1080 <timegm@plt>
mov    0x28(%rsp),%rcx
mov    %eax,(%rcx)
jmp    11f8 <ParseCmdLineOpt+0x88>
nopl   (%rax)
cmp    $0x6d,%eax
je     12f0 <ParseCmdLineOpt+0x180>
cmp    $0x73,%eax
jne    13bc <ParseCmdLineOpt+0x24c>
mov    (%r12),%rdi
lea    0xd80(%rip),%rsi
lea    0xc(%rsp),%rdx
lea    0x8(%rsp),%rcx
lea    0x4(%rsp),%r8
call   1070 <sscanf@plt>
mov    0xc(%rsp),%eax
mov    $0xfffff894,%ecx
add    %ecx,%eax
mov    %eax,0x60(%rsp)
mov    0x8(%rsp),%eax
add    $0xffffffff,%eax
mov    %eax,0x64(%rsp)
mov    0x4(%rsp),%eax
mov    %eax,0x68(%rsp)
lea    0x60(%rsp),%rdi
call   1080 <timegm@plt>
mov    0x20(%rsp),%rcx
mov    %eax,(%rcx)
jmp    11f8 <ParseCmdLineOpt+0x88>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %rbp,%r13
mov    %r12,%rbx
mov    %r12,%rbp
mov    (%r12),%r12
lea    0xd1e(%rip),%rdi
mov    %r12,%rsi
call   1040 <strcasecmp@plt>
test   %eax,%eax
je     11df <ParseCmdLineOpt+0x6f>
lea    0xd0c(%rip),%rdi
mov    %r12,%rsi
call   1040 <strcasecmp@plt>
test   %eax,%eax
jne    13ab <ParseCmdLineOpt+0x23b>
mov    0x18(%rsp),%rax
movl   $0x1,(%rax)
jmp    11ea <ParseCmdLineOpt+0x7a>
cmp    $0xffffffff,%eax
jne    13bc <ParseCmdLineOpt+0x24c>
mov    0x2c95(%rip),%r15
cmp    %r14d,(%r15)
jge    1399 <ParseCmdLineOpt+0x229>
lea    0xcfb(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    (%r15),%eax
cmp    %r14d,%eax
jge    138f <ParseCmdLineOpt+0x21f>
lea    0xd00(%rip),%rbx
nopl   (%rax)
lea    0x1(%rax),%ecx
mov    %ecx,(%r15)
cltq
mov    0x0(%r13,%rax,8),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    (%r15),%eax
cmp    %r14d,%eax
jl     1370 <ParseCmdLineOpt+0x200>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xc7c(%rip),%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x2c0d(%rip),%rax
mov    (%rax),%edi
call   1090 <exit@plt>

LLVM IR (-O0):
%struct.option = type { i8*, i8, i32, i32 }
%struct.tm = type { i32, i32, i32, i32, i32, i32, i32, i32, i32 }
@ParseCmdLineOpt.long_options = internal global [4 x %struct.option] [%struct.option { i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), i8 -128, i32 0, i32 115 }, %struct.option { i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i32 0, i32 0), i8 -128, i32 0, i32 101 }, %struct.option { i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i32 0, i32 0), i8 -128, i32 0, i32 109 }, %struct.option zeroinitializer]
@.str = [6 x i8] c"start\00"
@.str.1 = [4 x i8] c"end\00"
@.str.2 = [6 x i8] c"model\00"
@.str.3 = [9 x i8] c"a:b:c:d:\00"
@optarg = global i8* null
@.str.4 = [9 x i8] c"%d-%d-%d\00"
@.str.5 = [5 x i8] c"PIHM\00"
@.str.6 = [7 x i8] c"CYCLES\00"
@.str.7 = [36 x i8] c"Error: Model %s is not recognized.\0A\00"
@EXIT_FAILURE = global i32 0
@optind = global i32 0
@.str.8 = [27 x i8] c"non-option ARGV-elements: \00"
@.str.9 = [4 x i8] c"%s \00"
define void @ParseCmdLineOpt(i32 %0, i8** %1, i32* %2, i32* %3, i32* %4) {
%6 = alloca i32
%7 = alloca i8**
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca i32*
%11 = alloca i32
%12 = alloca %struct.tm
%13 = alloca %struct.tm
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
store i32 %0, i32* %6
store i8** %1, i8*** %7
store i32* %2, i32** %8
store i32* %3, i32** %9
store i32* %4, i32** %10
%18 = bitcast %struct.tm* %12 to i8*
%19 = bitcast %struct.tm* %13 to i8*
br label %20
20: ; preds = %5, %78
store i32 0, i32* %17
%21 = load i32, i32* %6
%22 = load i8**, i8*** %7
%23 = call i32 @getopt_long(i32 %21, i8** %22, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), %struct.option* getelementptr inbounds ([4 x %struct.option], [4 x %struct.option]* @ParseCmdLineOpt.long_options, i64 0, i64 0), i32* %17)
store i32 %23, i32* %11
%24 = load i32, i32* %11
%25 = icmp eq i32 -1, %24
br i1 %25, label %26, label %27
26: ; preds = %20
br label %79
27: ; preds = %20
%28 = load i32, i32* %11
switch i32 %28, label %75 [
i32 115, label %29
i32 101, label %42
i32 109, label %55
i32 63, label %74
]
29: ; preds = %27
%30 = load i8*, i8** @optarg
%31 = call i32 @sscanf(i8* %30, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32* %14, i32* %15, i32* %16)
%32 = load i32, i32* %14
%33 = sub nsw i32 %32, 1900
%34 = getelementptr inbounds %struct.tm, %struct.tm* %12, i32 0, i32 0
store i32 %33, i32* %34
%35 = load i32, i32* %15
%36 = sub nsw i32 %35, 1
%37 = getelementptr inbounds %struct.tm, %struct.tm* %12, i32 0, i32 1
store i32 %36, i32* %37
%38 = load i32, i32* %16
%39 = getelementptr inbounds %struct.tm, %struct.tm* %12, i32 0, i32 2
store i32 %38, i32* %39
%40 = call i32 @timegm(%struct.tm* %12)
%41 = load i32*, i32** %8
store i32 %40, i32* %41
br label %78
42: ; preds = %27
%43 = load i8*, i8** @optarg
%44 = call i32 @sscanf(i8* %43, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32* %14, i32* %15, i32* %16)
%45 = load i32, i32* %14
%46 = sub nsw i32 %45, 1900
%47 = getelementptr inbounds %struct.tm, %struct.tm* %13, i32 0, i32 0
store i32 %46, i32* %47
%48 = load i32, i32* %15
%49 = sub nsw i32 %48, 1
%50 = getelementptr inbounds %struct.tm, %struct.tm* %13, i32 0, i32 1
store i32 %49, i32* %50
%51 = load i32, i32* %16
%52 = getelementptr inbounds %struct.tm, %struct.tm* %13, i32 0, i32 2
store i32 %51, i32* %52
%53 = call i32 @timegm(%struct.tm* %13)
%54 = load i32*, i32** %9
store i32 %53, i32* %54
br label %78
55: ; preds = %27
%56 = load i8*, i8** @optarg
%57 = call i32 @strcasecmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* %56)
%58 = icmp eq i32 %57, 0
br i1 %58, label %59, label %61
59: ; preds = %55
%60 = load i32*, i32** %10
store i32 0, i32* %60
br label %73
61: ; preds = %55
%62 = load i8*, i8** @optarg
%63 = call i32 @strcasecmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i8* %62)
%64 = icmp eq i32 %63, 0
br i1 %64, label %65, label %67
65: ; preds = %61
%66 = load i32*, i32** %10
store i32 1, i32* %66
br label %72
67: ; preds = %61
%68 = load i8*, i8** @optarg
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.7, i64 0, i64 0), i8* %68)
%70 = load i32, i32* @EXIT_FAILURE
%71 = call i32 @exit(i32 %70)
unreachable
72: ; preds = %65
br label %73
73: ; preds = %72, %59
br label %78
74: ; preds = %27
br label %78
75: ; preds = %27
%76 = load i32, i32* @EXIT_FAILURE
%77 = call i32 @exit(i32 %76)
unreachable
78: ; preds = %74, %73, %42, %29
br label %20
79: ; preds = %26
%80 = load i32, i32* @optind
%81 = load i32, i32* %6
%82 = icmp slt i32 %80, %81
br i1 %82, label %83, label %99
83: ; preds = %79
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0))
br label %85
85: ; preds = %89, %83
%86 = load i32, i32* @optind
%87 = load i32, i32* %6
%88 = icmp slt i32 %86, %87
br i1 %88, label %89, label %97
89: ; preds = %85
%90 = load i8**, i8*** %7
%91 = load i32, i32* @optind
%92 = add nsw i32 %91, 1
store i32 %92, i32* @optind
%93 = sext i32 %91 to i64
%94 = getelementptr inbounds i8*, i8** %90, i64 %93
%95 = load i8*, i8** %94
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i8* %95)
br label %85
97: ; preds = %85
%98 = call i32 @putchar(i8 signext 10)
br label %99
99: ; preds = %97, %79
ret void
}

LLVM IR (-O2):
%struct.option = type { i8*, i8, i32, i32 }
%struct.tm = type { i32, i32, i32, i32, i32, i32, i32, i32, i32 }
@ParseCmdLineOpt.long_options = internal global [4 x %struct.option] [%struct.option { i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), i8 -128, i32 0, i32 115 }, %struct.option { i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i32 0, i32 0), i8 -128, i32 0, i32 101 }, %struct.option { i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i32 0, i32 0), i8 -128, i32 0, i32 109 }, %struct.option zeroinitializer]
@.str = [6 x i8] c"start\00"
@.str.1 = [4 x i8] c"end\00"
@.str.2 = [6 x i8] c"model\00"
@.str.3 = [9 x i8] c"a:b:c:d:\00"
@optarg = global i8* null
@.str.4 = [9 x i8] c"%d-%d-%d\00"
@.str.5 = [5 x i8] c"PIHM\00"
@.str.6 = [7 x i8] c"CYCLES\00"
@.str.7 = [36 x i8] c"Error: Model %s is not recognized.\0A\00"
@EXIT_FAILURE = global i32 0
@optind = global i32 0
@.str.8 = [27 x i8] c"non-option ARGV-elements: \00"
@.str.9 = [4 x i8] c"%s \00"
define void @ParseCmdLineOpt(i32 %0, i8** %1, i32* nocapture writeonly %2, i32* nocapture writeonly %3, i32* nocapture writeonly %4) {
%6 = alloca %struct.tm
%7 = alloca %struct.tm
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = bitcast %struct.tm* %6 to i8*
%13 = bitcast %struct.tm* %7 to i8*
%14 = bitcast i32* %8 to i8*
%15 = bitcast i32* %9 to i8*
%16 = bitcast i32* %10 to i8*
%17 = bitcast i32* %11 to i8*
%18 = getelementptr inbounds %struct.tm, %struct.tm* %7, i64 0, i32 0
%19 = getelementptr inbounds %struct.tm, %struct.tm* %7, i64 0, i32 1
%20 = getelementptr inbounds %struct.tm, %struct.tm* %7, i64 0, i32 2
%21 = getelementptr inbounds %struct.tm, %struct.tm* %6, i64 0, i32 0
%22 = getelementptr inbounds %struct.tm, %struct.tm* %6, i64 0, i32 1
%23 = getelementptr inbounds %struct.tm, %struct.tm* %6, i64 0, i32 2
br label %24
24: ; preds = %60, %5
store i32 0, i32* %11
%25 = call i32 @getopt_long(i32 %0, i8** %1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), %struct.option* getelementptr inbounds ([4 x %struct.option], [4 x %struct.option]* @ParseCmdLineOpt.long_options, i64 0, i64 0), i32* %11)
switch i32 %25, label %57 [
i32 -1, label %61
i32 115, label %26
i32 101, label %35
i32 109, label %44
i32 63, label %60
]
26: ; preds = %24
%27 = load i8*, i8** @optarg
%28 = call i32 @sscanf(i8* %27, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32* %8, i32* %9, i32* %10)
%29 = load i32, i32* %8
%30 = add nsw i32 %29, -1900
store i32 %30, i32* %21
%31 = load i32, i32* %9
%32 = add nsw i32 %31, -1
store i32 %32, i32* %22
%33 = load i32, i32* %10
store i32 %33, i32* %23
%34 = call i32 @timegm(%struct.tm* %6)
store i32 %34, i32* %2
br label %60
35: ; preds = %24
%36 = load i8*, i8** @optarg
%37 = call i32 @sscanf(i8* %36, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32* %8, i32* %9, i32* %10)
%38 = load i32, i32* %8
%39 = add nsw i32 %38, -1900
store i32 %39, i32* %18
%40 = load i32, i32* %9
%41 = add nsw i32 %40, -1
store i32 %41, i32* %19
%42 = load i32, i32* %10
store i32 %42, i32* %20
%43 = call i32 @timegm(%struct.tm* %7)
store i32 %43, i32* %3
br label %60
44: ; preds = %24
%45 = load i8*, i8** @optarg
%46 = call i32 @strcasecmp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* %45)
%47 = icmp eq i32 %46, 0
br i1 %47, label %48, label %49
48: ; preds = %44
store i32 0, i32* %4
br label %60
49: ; preds = %44
%50 = call i32 @strcasecmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i8* %45)
%51 = icmp eq i32 %50, 0
br i1 %51, label %52, label %53
52: ; preds = %49
store i32 1, i32* %4
br label %60
53: ; preds = %49
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.7, i64 0, i64 0), i8* %45)
%55 = load i32, i32* @EXIT_FAILURE
%56 = call i32 @exit(i32 %55)
unreachable
57: ; preds = %24
%58 = load i32, i32* @EXIT_FAILURE
%59 = call i32 @exit(i32 %58)
unreachable
60: ; preds = %26, %35, %52, %48, %24
br label %24
61: ; preds = %24
%62 = load i32, i32* @optind
%63 = icmp slt i32 %62, %0
br i1 %63, label %64, label %79
64: ; preds = %61
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0))
%66 = load i32, i32* @optind
%67 = icmp slt i32 %66, %0
br i1 %67, label %68, label %77
68: ; preds = %64, %68
%69 = phi i32 [ %75, %68 ], [ %66, %64 ]
%70 = add nsw i32 %69, 1
store i32 %70, i32* @optind
%71 = sext i32 %69 to i64
%72 = getelementptr inbounds i8*, i8** %1, i64 %71
%73 = load i8*, i8** %72
%74 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i8* %73)
%75 = load i32, i32* @optind
%76 = icmp slt i32 %75, %0
br i1 %76, label %68, label %77
77: ; preds = %68, %64
%78 = call i32 @putchar(i8 signext 10)
br label %79
79: ; preds = %77, %61
ret void
}