#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 time_t;
struct tm {
  int tm_year;
  int tm_mon;
  int tm_mday;
  int tm_hour;
  int tm_min;
  int tm_sec;
  int tm_wday;
  int tm_yday;
};

/* Variables and functions */
struct tm *gmtime_r(int *, struct tm *);
int mktime(struct tm *);
int /*<<< orphan*/ printf(char *, char *, int);
int test_mktime(void) {
  struct tm tm = {
      .tm_year = 112,
      .tm_mon = 11,
      .tm_mday = 16,
      .tm_hour = 21,
      .tm_min = 42,
      .tm_sec = 1,
      .tm_wday = 10,
      .tm_yday = 10,
  };
  struct tm tm2;
  time_t t;
  t = mktime(&tm);
  do {
    if (!(t == 1355694121)) {
      printf("expression '%s' untrue at %d\n", "t == 1355694121", 46);
      return 0;
    }
  } while (0);
  do {
    if (!(tm.tm_wday == 0)) {
      printf("expression '%s' untrue at %d\n", "tm.tm_wday == 0", 47);
      return 0;
    }
  } while (0);
  do {
    if (!(tm.tm_yday == 350)) {
      printf("expression '%s' untrue at %d\n", "tm.tm_yday == 350", 48);
      return 0;
    }
  } while (0);
  do {
    if (!(&tm2 == gmtime_r(&t, &tm2))) {
      printf("expression '%s' untrue at %d\n", "&tm2 == gmtime_r(&t, &tm2)",
             50);
      return 0;
    }
  } while (0);
  do {
    if (!(tm2.tm_year == 112)) {
      printf("expression '%s' untrue at %d\n", "tm2.tm_year == 112", 52);
      return 0;
    }
  } while (0);
  do {
    if (!(tm2.tm_mon == 11)) {
      printf("expression '%s' untrue at %d\n", "tm2.tm_mon == 11", 53);
      return 0;
    }
  } while (0);
  do {
    if (!(tm2.tm_mday == 16)) {
      printf("expression '%s' untrue at %d\n", "tm2.tm_mday == 16", 54);
      return 0;
    }
  } while (0);
  do {
    if (!(tm2.tm_hour == 21)) {
      printf("expression '%s' untrue at %d\n", "tm2.tm_hour == 21", 55);
      return 0;
    }
  } while (0);
  tm.tm_year = 0;
  do {
    if (!(-1 == mktime(&tm))) {
      printf("expression '%s' untrue at %d\n", "-1 == mktime(&tm)", 58);
      return 0;
    }
  } while (0);
  tm.tm_year = 2012;
  do {
    if (!(-1 == mktime(&tm))) {
      printf("expression '%s' untrue at %d\n", "-1 == mktime(&tm)", 61);
      return 0;
    }
  } while (0);
  return 1;
}


x86 assembly (clang, -O0):
<test_mktime>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0xec1(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xebe(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xebb(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xeb8(%rip),%rax
mov    %rax,-0x10(%rbp)
lea    -0x28(%rbp),%rdi
call   1050 <mktime@plt>
mov    %eax,-0x4c(%rbp)
cmpl   $0x50ce4029,-0x4c(%rbp)
je     11a1 <test_mktime+0x71>
lea    0xe9c(%rip),%rdi
lea    0xeb3(%rip),%rsi
mov    $0x2e,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13db <test_mktime+0x2ab>
jmp    11a6 <test_mktime+0x76>
jmp    11ab <test_mktime+0x7b>
cmpl   $0x0,-0x10(%rbp)
je     11d9 <test_mktime+0xa9>
lea    0xe64(%rip),%rdi
lea    0xe8b(%rip),%rsi
mov    $0x2f,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13db <test_mktime+0x2ab>
jmp    11de <test_mktime+0xae>
jmp    11e3 <test_mktime+0xb3>
cmpl   $0x15e,-0xc(%rbp)
je     1214 <test_mktime+0xe4>
lea    0xe29(%rip),%rdi
lea    0xe60(%rip),%rsi
mov    $0x30,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13db <test_mktime+0x2ab>
jmp    1219 <test_mktime+0xe9>
jmp    121e <test_mktime+0xee>
lea    -0x4c(%rbp),%rdi
lea    -0x48(%rbp),%rsi
call   1040 <gmtime_r@plt>
mov    %rax,%rcx
lea    -0x48(%rbp),%rax
cmp    %rcx,%rax
je     125f <test_mktime+0x12f>
lea    0xdde(%rip),%rdi
lea    0xe27(%rip),%rsi
mov    $0x32,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13db <test_mktime+0x2ab>
jmp    1264 <test_mktime+0x134>
jmp    1269 <test_mktime+0x139>
cmpl   $0x70,-0x48(%rbp)
je     1297 <test_mktime+0x167>
lea    0xda6(%rip),%rdi
lea    0xe0a(%rip),%rsi
mov    $0x34,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13db <test_mktime+0x2ab>
jmp    129c <test_mktime+0x16c>
jmp    12a1 <test_mktime+0x171>
cmpl   $0xb,-0x44(%rbp)
je     12cf <test_mktime+0x19f>
lea    0xd6e(%rip),%rdi
lea    0xde5(%rip),%rsi
mov    $0x35,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13db <test_mktime+0x2ab>
jmp    12d4 <test_mktime+0x1a4>
jmp    12d9 <test_mktime+0x1a9>
cmpl   $0x10,-0x40(%rbp)
je     1307 <test_mktime+0x1d7>
lea    0xd36(%rip),%rdi
lea    0xdbe(%rip),%rsi
mov    $0x36,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13db <test_mktime+0x2ab>
jmp    130c <test_mktime+0x1dc>
jmp    1311 <test_mktime+0x1e1>
cmpl   $0x15,-0x3c(%rbp)
je     133f <test_mktime+0x20f>
lea    0xcfe(%rip),%rdi
lea    0xd98(%rip),%rsi
mov    $0x37,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13db <test_mktime+0x2ab>
jmp    1344 <test_mktime+0x214>
movl   $0x0,-0x28(%rbp)
lea    -0x28(%rbp),%rdi
call   1050 <mktime@plt>
mov    %eax,%ecx
mov    $0xffffffff,%eax
cmp    %ecx,%eax
je     1387 <test_mktime+0x257>
lea    0xcb6(%rip),%rdi
lea    0xd62(%rip),%rsi
mov    $0x3a,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13db <test_mktime+0x2ab>
jmp    138c <test_mktime+0x25c>
movl   $0x7dc,-0x28(%rbp)
lea    -0x28(%rbp),%rdi
call   1050 <mktime@plt>
mov    %eax,%ecx
mov    $0xffffffff,%eax
cmp    %ecx,%eax
je     13cf <test_mktime+0x29f>
lea    0xc6e(%rip),%rdi
lea    0xd1a(%rip),%rsi
mov    $0x3d,%edx
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13db <test_mktime+0x2ab>
jmp    13d4 <test_mktime+0x2a4>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_mktime>:
push   %rbx
sub    $0x50,%rsp
movups 0xed4(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movups 0xeb8(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
lea    0x10(%rsp),%rdi
call   1050 <mktime@plt>
mov    %eax,0xc(%rsp)
cmp    $0x50ce4029,%eax
jne    117e <test_mktime+0x4e>
cmpl   $0x0,0x28(%rsp)
je     119e <test_mktime+0x6e>
lea    0xeb0(%rip),%rdi
lea    0xed7(%rip),%rsi
mov    $0x2f,%edx
jmp    1191 <test_mktime+0x61>
lea    0xe9b(%rip),%rdi
lea    0xeb2(%rip),%rsi
mov    $0x2e,%edx
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbx
ret
cmpl   $0x15e,0x2c(%rsp)
jne    11d4 <test_mktime+0xa4>
lea    0xc(%rsp),%rdi
lea    0x30(%rsp),%rbx
mov    %rbx,%rsi
call   1040 <gmtime_r@plt>
cmp    %rax,%rbx
je     11e9 <test_mktime+0xb9>
lea    0xe5a(%rip),%rdi
lea    0xea3(%rip),%rsi
mov    $0x32,%edx
jmp    1191 <test_mktime+0x61>
lea    0xe45(%rip),%rdi
lea    0xe7c(%rip),%rsi
mov    $0x30,%edx
jmp    1191 <test_mktime+0x61>
cmpl   $0x70,0x30(%rsp)
jne    1234 <test_mktime+0x104>
cmpl   $0xb,0x34(%rsp)
jne    124c <test_mktime+0x11c>
cmpl   $0x10,0x38(%rsp)
jne    1264 <test_mktime+0x134>
cmpl   $0x15,0x3c(%rsp)
jne    127c <test_mktime+0x14c>
movl   $0x0,0x10(%rsp)
lea    0x10(%rsp),%rdi
call   1050 <mktime@plt>
cmp    $0xffffffff,%eax
je     1294 <test_mktime+0x164>
lea    0xdfd(%rip),%rdi
lea    0xea9(%rip),%rsi
mov    $0x3a,%edx
jmp    1191 <test_mktime+0x61>
lea    0xde5(%rip),%rdi
lea    0xe49(%rip),%rsi
mov    $0x34,%edx
jmp    1191 <test_mktime+0x61>
lea    0xdcd(%rip),%rdi
lea    0xe44(%rip),%rsi
mov    $0x35,%edx
jmp    1191 <test_mktime+0x61>
lea    0xdb5(%rip),%rdi
lea    0xe3d(%rip),%rsi
mov    $0x36,%edx
jmp    1191 <test_mktime+0x61>
lea    0xd9d(%rip),%rdi
lea    0xe37(%rip),%rsi
mov    $0x37,%edx
jmp    1191 <test_mktime+0x61>
movl   $0x7dc,0x10(%rsp)
lea    0x10(%rsp),%rdi
call   1050 <mktime@plt>
cmp    $0xffffffff,%eax
je     12c3 <test_mktime+0x193>
lea    0xd6e(%rip),%rdi
lea    0xe1a(%rip),%rsi
mov    $0x3d,%edx
jmp    1191 <test_mktime+0x61>
mov    $0x1,%eax
jmp    1198 <test_mktime+0x68>

LLVM IR (-O0):
%struct.tm = type { i32, i32, i32, i32, i32, i32, i32, i32 }
@__const.test_mktime.tm = %struct.tm { i32 112, i32 11, i32 16, i32 21, i32 42, i32 1, i32 10, i32 10 }
@.str = [30 x i8] c"expression '%s' untrue at %d\0A\00"
@.str.1 = [16 x i8] c"t == 1355694121\00"
@.str.2 = [16 x i8] c"tm.tm_wday == 0\00"
@.str.3 = [18 x i8] c"tm.tm_yday == 350\00"
@.str.4 = [27 x i8] c"&tm2 == gmtime_r(&t, &tm2)\00"
@.str.5 = [19 x i8] c"tm2.tm_year == 112\00"
@.str.6 = [17 x i8] c"tm2.tm_mon == 11\00"
@.str.7 = [18 x i8] c"tm2.tm_mday == 16\00"
@.str.8 = [18 x i8] c"tm2.tm_hour == 21\00"
@.str.9 = [18 x i8] c"-1 == mktime(&tm)\00"
define i32 @test_mktime() {
%1 = alloca i32
%2 = alloca %struct.tm
%3 = alloca %struct.tm
%4 = alloca i32
%5 = bitcast %struct.tm* %2 to i8*
%6 = call i32 @mktime(%struct.tm* %2)
store i32 %6, i32* %4
br label %7
7: ; preds = %0
%8 = load i32, i32* %4
%9 = icmp eq i32 %8, 1355694121
br i1 %9, label %12, label %10
10: ; preds = %7
%11 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 46)
store i32 0, i32* %1
br label %85
12: ; preds = %7
br label %13
13: ; preds = %12
br label %14
14: ; preds = %13
%15 = getelementptr inbounds %struct.tm, %struct.tm* %2, i32 0, i32 6
%16 = load i32, i32* %15
%17 = icmp eq i32 %16, 0
br i1 %17, label %20, label %18
18: ; preds = %14
%19 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 47)
store i32 0, i32* %1
br label %85
20: ; preds = %14
br label %21
21: ; preds = %20
br label %22
22: ; preds = %21
%23 = getelementptr inbounds %struct.tm, %struct.tm* %2, i32 0, i32 7
%24 = load i32, i32* %23
%25 = icmp eq i32 %24, 350
br i1 %25, label %28, label %26
26: ; preds = %22
%27 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 48)
store i32 0, i32* %1
br label %85
28: ; preds = %22
br label %29
29: ; preds = %28
br label %30
30: ; preds = %29
%31 = call %struct.tm* @gmtime_r(i32* %4, %struct.tm* %3)
%32 = icmp eq %struct.tm* %3, %31
br i1 %32, label %35, label %33
33: ; preds = %30
%34 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), i32 50)
store i32 0, i32* %1
br label %85
35: ; preds = %30
br label %36
36: ; preds = %35
br label %37
37: ; preds = %36
%38 = getelementptr inbounds %struct.tm, %struct.tm* %3, i32 0, i32 0
%39 = load i32, i32* %38
%40 = icmp eq i32 %39, 112
br i1 %40, label %43, label %41
41: ; preds = %37
%42 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i32 52)
store i32 0, i32* %1
br label %85
43: ; preds = %37
br label %44
44: ; preds = %43
br label %45
45: ; preds = %44
%46 = getelementptr inbounds %struct.tm, %struct.tm* %3, i32 0, i32 1
%47 = load i32, i32* %46
%48 = icmp eq i32 %47, 11
br i1 %48, label %51, label %49
49: ; preds = %45
%50 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i32 53)
store i32 0, i32* %1
br label %85
51: ; preds = %45
br label %52
52: ; preds = %51
br label %53
53: ; preds = %52
%54 = getelementptr inbounds %struct.tm, %struct.tm* %3, i32 0, i32 2
%55 = load i32, i32* %54
%56 = icmp eq i32 %55, 16
br i1 %56, label %59, label %57
57: ; preds = %53
%58 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0), i32 54)
store i32 0, i32* %1
br label %85
59: ; preds = %53
br label %60
60: ; preds = %59
br label %61
61: ; preds = %60
%62 = getelementptr inbounds %struct.tm, %struct.tm* %3, i32 0, i32 3
%63 = load i32, i32* %62
%64 = icmp eq i32 %63, 21
br i1 %64, label %67, label %65
65: ; preds = %61
%66 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), i32 55)
store i32 0, i32* %1
br label %85
67: ; preds = %61
br label %68
68: ; preds = %67
%69 = getelementptr inbounds %struct.tm, %struct.tm* %2, i32 0, i32 0
store i32 0, i32* %69
br label %70
70: ; preds = %68
%71 = call i32 @mktime(%struct.tm* %2)
%72 = icmp eq i32 -1, %71
br i1 %72, label %75, label %73
73: ; preds = %70
%74 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0), i32 58)
store i32 0, i32* %1
br label %85
75: ; preds = %70
br label %76
76: ; preds = %75
%77 = getelementptr inbounds %struct.tm, %struct.tm* %2, i32 0, i32 0
store i32 2012, i32* %77
br label %78
78: ; preds = %76
%79 = call i32 @mktime(%struct.tm* %2)
%80 = icmp eq i32 -1, %79
br i1 %80, label %83, label %81
81: ; preds = %78
%82 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0), i32 61)
store i32 0, i32* %1
br label %85
83: ; preds = %78
br label %84
84: ; preds = %83
store i32 1, i32* %1
br label %85
85: ; preds = %84, %81, %73, %65, %57, %49, %41, %33, %26, %18, %10
%86 = load i32, i32* %1
ret i32 %86
}

LLVM IR (-O2):
%struct.tm = type { i32, i32, i32, i32, i32, i32, i32, i32 }
@__const.test_mktime.tm = %struct.tm { i32 112, i32 11, i32 16, i32 21, i32 42, i32 1, i32 10, i32 10 }
@.str = [30 x i8] c"expression '%s' untrue at %d\0A\00"
@.str.1 = [16 x i8] c"t == 1355694121\00"
@.str.2 = [16 x i8] c"tm.tm_wday == 0\00"
@.str.3 = [18 x i8] c"tm.tm_yday == 350\00"
@.str.4 = [27 x i8] c"&tm2 == gmtime_r(&t, &tm2)\00"
@.str.5 = [19 x i8] c"tm2.tm_year == 112\00"
@.str.6 = [17 x i8] c"tm2.tm_mon == 11\00"
@.str.7 = [18 x i8] c"tm2.tm_mday == 16\00"
@.str.8 = [18 x i8] c"tm2.tm_hour == 21\00"
@.str.9 = [18 x i8] c"-1 == mktime(&tm)\00"
define i32 @test_mktime() {
%1 = alloca %struct.tm
%2 = alloca %struct.tm
%3 = alloca i32
%4 = bitcast %struct.tm* %1 to i8*
%5 = bitcast %struct.tm* %2 to i8*
%6 = bitcast i32* %3 to i8*
%7 = call i32 @mktime(%struct.tm* %1)
store i32 %7, i32* %3
%8 = icmp eq i32 %7, 1355694121
br i1 %8, label %11, label %9
9: ; preds = %0
%10 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 46)
br label %63
11: ; preds = %0
%12 = getelementptr inbounds %struct.tm, %struct.tm* %1, i64 0, i32 6
%13 = load i32, i32* %12
%14 = icmp eq i32 %13, 0
br i1 %14, label %17, label %15
15: ; preds = %11
%16 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i32 47)
br label %63
17: ; preds = %11
%18 = getelementptr inbounds %struct.tm, %struct.tm* %1, i64 0, i32 7
%19 = load i32, i32* %18
%20 = icmp eq i32 %19, 350
br i1 %20, label %23, label %21
21: ; preds = %17
%22 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 48)
br label %63
23: ; preds = %17
%24 = call %struct.tm* @gmtime_r(i32* %3, %struct.tm* %2)
%25 = icmp eq %struct.tm* %2, %24
br i1 %25, label %28, label %26
26: ; preds = %23
%27 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), i32 50)
br label %63
28: ; preds = %23
%29 = getelementptr inbounds %struct.tm, %struct.tm* %2, i64 0, i32 0
%30 = load i32, i32* %29
%31 = icmp eq i32 %30, 112
br i1 %31, label %34, label %32
32: ; preds = %28
%33 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i32 52)
br label %63
34: ; preds = %28
%35 = getelementptr inbounds %struct.tm, %struct.tm* %2, i64 0, i32 1
%36 = load i32, i32* %35
%37 = icmp eq i32 %36, 11
br i1 %37, label %40, label %38
38: ; preds = %34
%39 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i32 53)
br label %63
40: ; preds = %34
%41 = getelementptr inbounds %struct.tm, %struct.tm* %2, i64 0, i32 2
%42 = load i32, i32* %41
%43 = icmp eq i32 %42, 16
br i1 %43, label %46, label %44
44: ; preds = %40
%45 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.7, i64 0, i64 0), i32 54)
br label %63
46: ; preds = %40
%47 = getelementptr inbounds %struct.tm, %struct.tm* %2, i64 0, i32 3
%48 = load i32, i32* %47
%49 = icmp eq i32 %48, 21
br i1 %49, label %52, label %50
50: ; preds = %46
%51 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), i32 55)
br label %63
52: ; preds = %46
%53 = getelementptr inbounds %struct.tm, %struct.tm* %1, i64 0, i32 0
store i32 0, i32* %53
%54 = call i32 @mktime(%struct.tm* %1)
%55 = icmp eq i32 %54, -1
br i1 %55, label %58, label %56
56: ; preds = %52
%57 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0), i32 58)
br label %63
58: ; preds = %52
store i32 2012, i32* %53
%59 = call i32 @mktime(%struct.tm* %1)
%60 = icmp eq i32 %59, -1
br i1 %60, label %63, label %61
61: ; preds = %58
%62 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0), i32 61)
br label %63
63: ; preds = %58, %61, %56, %50, %44, %38, %32, %26, %21, %15, %9
%64 = phi i32 [ 0, %61 ], [ 0, %56 ], [ 0, %50 ], [ 0, %44 ], [ 0, %38 ], [ 0, %32 ], [ 0, %26 ], [ 0, %21 ], [ 0, %15 ], [ 0, %9 ], [ 1, %58 ]
ret i32 %64
}