#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*/ is_fatal(int, char *, char);
scalar_t__ isalpha(char);
scalar_t__ ispunct(char);
scalar_t__ isspace(char);
int /*<<< orphan*/ strcat(char *, char *);
int strlen(char const *);
scalar_t__ xcalloc(int, int);
char *convert_human_time_format(const char *human_timef) {
  char *result, *cin, *cout;
  char prev;
  result = (char *)xcalloc((2 * strlen(human_timef)) + 1, 1);
  cout = result;
  prev = '\0';
  for (cin = (char *)human_timef; *cin; cin++) {
    int okay = 1;
    if (isalpha(*cin)) {
      switch (*cin) {
      case 'S':
      case 's':
        if (prev != 'S') {
          strcat(cout, "%S");
          cout += 2;
          prev = 'S';
        }
        break;
      case 'M':
      case 'm':
        if (prev != 'M') {
          strcat(cout, "%M");
          cout += 2;
          prev = 'M';
        }
        break;
      case 'h':
        if (prev != 'H') {
          strcat(cout, "%l");
          cout += 2;
          prev = 'H';
        } else
          *(cout - 1) = 'I';
        break;
      case 'H':
        if (prev != 'H') {
          strcat(cout, "%k");
          cout += 2;
          prev = 'H';
        } else
          *(cout - 1) = 'H';
        break;
      case 'x':
        if (prev != 'X') {
          strcat(cout, "%P");
          cout += 2;
          prev = 'X';
        } else
          *(cout - 1) = 'P';
        break;
      case 'X':
        if (prev != 'X') {
          strcat(cout, "%p");
          cout += 2;
          prev = 'X';
        } else
          *(cout - 1) = 'p';
        break;
      default:
        okay = 0;
      }
    } else if (ispunct(*cin) || isspace(*cin)) {
      *cout++ = *cin;
      prev = '\0';
    } else
      okay = 0;
    is_fatal(okay == 0, "Invalid character \"%c\" in time format!", *cin);
  }
  return result;
}


x86 assembly (clang, -O0):
<convert_human_time_format>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%edi
shl    $0x1,%edi
add    $0x1,%edi
mov    $0x1,%esi
call   1090 <xcalloc@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
movb   $0x0,-0x21(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
cmpb   $0x0,(%rax)
je     13fa <convert_human_time_format+0x28a>
movl   $0x1,-0x28(%rbp)
mov    -0x18(%rbp),%rax
movsbl (%rax),%edi
call   1070 <isalpha@plt>
cmp    $0x0,%rax
je     1372 <convert_human_time_format+0x202>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
add    $0xffffffb8,%eax
mov    %eax,%ecx
mov    %rcx,-0x30(%rbp)
sub    $0x30,%eax
ja     1366 <convert_human_time_format+0x1f6>
mov    -0x30(%rbp),%rax
lea    0xe03(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movsbl -0x21(%rbp),%eax
cmp    $0x53,%eax
je     1233 <convert_human_time_format+0xc3>
mov    -0x20(%rbp),%rdi
lea    0xea6(%rip),%rsi
call   1080 <strcat@plt>
mov    -0x20(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x20(%rbp)
movb   $0x53,-0x21(%rbp)
jmp    136d <convert_human_time_format+0x1fd>
movsbl -0x21(%rbp),%eax
cmp    $0x4d,%eax
je     1265 <convert_human_time_format+0xf5>
mov    -0x20(%rbp),%rdi
lea    0xe77(%rip),%rsi
call   1080 <strcat@plt>
mov    -0x20(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x20(%rbp)
movb   $0x4d,-0x21(%rbp)
jmp    136d <convert_human_time_format+0x1fd>
movsbl -0x21(%rbp),%eax
cmp    $0x48,%eax
je     129c <convert_human_time_format+0x12c>
mov    -0x20(%rbp),%rdi
lea    0xe48(%rip),%rsi
call   1080 <strcat@plt>
mov    -0x20(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x20(%rbp)
movb   $0x48,-0x21(%rbp)
jmp    12a4 <convert_human_time_format+0x134>
mov    -0x20(%rbp),%rax
movb   $0x49,-0x1(%rax)
jmp    136d <convert_human_time_format+0x1fd>
movsbl -0x21(%rbp),%eax
cmp    $0x48,%eax
je     12db <convert_human_time_format+0x16b>
mov    -0x20(%rbp),%rdi
lea    0xe0c(%rip),%rsi
call   1080 <strcat@plt>
mov    -0x20(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x20(%rbp)
movb   $0x48,-0x21(%rbp)
jmp    12e3 <convert_human_time_format+0x173>
mov    -0x20(%rbp),%rax
movb   $0x48,-0x1(%rax)
jmp    136d <convert_human_time_format+0x1fd>
movsbl -0x21(%rbp),%eax
cmp    $0x58,%eax
je     131a <convert_human_time_format+0x1aa>
mov    -0x20(%rbp),%rdi
lea    0xdd0(%rip),%rsi
call   1080 <strcat@plt>
mov    -0x20(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x20(%rbp)
movb   $0x58,-0x21(%rbp)
jmp    1322 <convert_human_time_format+0x1b2>
mov    -0x20(%rbp),%rax
movb   $0x50,-0x1(%rax)
jmp    136d <convert_human_time_format+0x1fd>
movsbl -0x21(%rbp),%eax
cmp    $0x58,%eax
je     1359 <convert_human_time_format+0x1e9>
mov    -0x20(%rbp),%rdi
lea    0xd94(%rip),%rsi
call   1080 <strcat@plt>
mov    -0x20(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x20(%rbp)
movb   $0x58,-0x21(%rbp)
jmp    1361 <convert_human_time_format+0x1f1>
mov    -0x20(%rbp),%rax
movb   $0x70,-0x1(%rax)
jmp    136d <convert_human_time_format+0x1fd>
movl   $0x0,-0x28(%rbp)
jmp    13ca <convert_human_time_format+0x25a>
mov    -0x18(%rbp),%rax
movsbl (%rax),%edi
call   1040 <ispunct@plt>
cmp    $0x0,%rax
jne    139e <convert_human_time_format+0x22e>
mov    -0x18(%rbp),%rax
movsbl (%rax),%edi
call   1050 <isspace@plt>
cmp    $0x0,%rax
je     13be <convert_human_time_format+0x24e>
mov    -0x18(%rbp),%rax
mov    (%rax),%cl
mov    -0x20(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x20(%rbp)
mov    %cl,(%rax)
movb   $0x0,-0x21(%rbp)
jmp    13c5 <convert_human_time_format+0x255>
movl   $0x0,-0x28(%rbp)
jmp    13ca <convert_human_time_format+0x25a>
cmpl   $0x0,-0x28(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
mov    -0x18(%rbp),%rax
lea    0xcf5(%rip),%rsi
movsbl (%rax),%edx
call   1060 <is_fatal@plt>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    11af <convert_human_time_format+0x3f>
mov    -0x10(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<convert_human_time_format>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rdi,%rbx
call   1030 <strlen@plt>
lea    (%rax,%rax,1),%edi
add    $0x1,%edi
mov    $0x1,%esi
call   1090 <xcalloc@plt>
mov    %rax,(%rsp)
mov    (%rbx),%al
test   %al,%al
je     1315 <convert_human_time_format+0x1a5>
xor    %r12d,%r12d
lea    0xf2b(%rip),%r15
lea    0xe4e(%rip),%rbp
mov    (%rsp),%r14
jmp    11f8 <convert_human_time_format+0x88>
nopl   0x0(%rax,%rax,1)
call   1040 <ispunct@plt>
test   %rax,%rax
je     122e <convert_human_time_format+0xbe>
movzbl (%rbx),%eax
mov    %al,(%r14)
add    $0x1,%r14
xor    %r12d,%r12d
xor    %r13d,%r13d
movsbl (%rbx),%edx
mov    %r13d,%edi
mov    %r15,%rsi
call   1060 <is_fatal@plt>
movzbl 0x1(%rbx),%eax
add    $0x1,%rbx
test   %al,%al
je     1315 <convert_human_time_format+0x1a5>
movsbl %al,%edi
call   1070 <isalpha@plt>
movsbl (%rbx),%edi
test   %rax,%rax
je     11c0 <convert_human_time_format+0x50>
mov    $0x1,%r13d
add    $0xffffffb8,%edi
cmp    $0x30,%edi
ja     11da <convert_human_time_format+0x6a>
movslq 0x0(%rbp,%rdi,4),%rax
add    %rbp,%rax
jmp    *%rax
xor    %r13d,%r13d
cmp    $0x4d,%r12b
jne    128b <convert_human_time_format+0x11b>
mov    $0x4d,%r12b
jmp    11da <convert_human_time_format+0x6a>
movsbl (%rbx),%edi
call   1050 <isspace@plt>
test   %rax,%rax
jne    11ca <convert_human_time_format+0x5a>
mov    $0x1,%r13d
jmp    11da <convert_human_time_format+0x6a>
xor    %r13d,%r13d
cmp    $0x53,%r12b
jne    12a6 <convert_human_time_format+0x136>
mov    $0x53,%r12b
jmp    11da <convert_human_time_format+0x6a>
cmp    $0x48,%r12b
jne    12c1 <convert_human_time_format+0x151>
movb   $0x48,-0x1(%r14)
jmp    12ec <convert_human_time_format+0x17c>
cmp    $0x58,%r12b
jne    12cd <convert_human_time_format+0x15d>
movb   $0x70,-0x1(%r14)
jmp    130a <convert_human_time_format+0x19a>
cmp    $0x48,%r12b
jne    12d9 <convert_human_time_format+0x169>
movb   $0x49,-0x1(%r14)
jmp    12ec <convert_human_time_format+0x17c>
cmp    $0x58,%r12b
jne    12f7 <convert_human_time_format+0x187>
movb   $0x50,-0x1(%r14)
jmp    130a <convert_human_time_format+0x19a>
mov    %r14,%rdi
lea    0xe32(%rip),%rsi
call   1080 <strcat@plt>
add    $0x2,%r14
mov    $0x4d,%r12b
jmp    11da <convert_human_time_format+0x6a>
mov    %r14,%rdi
lea    0xe14(%rip),%rsi
call   1080 <strcat@plt>
add    $0x2,%r14
mov    $0x53,%r12b
jmp    11da <convert_human_time_format+0x6a>
mov    %r14,%rdi
lea    0xe02(%rip),%rsi
jmp    12e3 <convert_human_time_format+0x173>
mov    %r14,%rdi
lea    0xdfc(%rip),%rsi
jmp    1301 <convert_human_time_format+0x191>
mov    %r14,%rdi
lea    0xde7(%rip),%rsi
call   1080 <strcat@plt>
add    $0x2,%r14
xor    %r13d,%r13d
mov    $0x48,%r12b
jmp    11da <convert_human_time_format+0x6a>
mov    %r14,%rdi
lea    0xdcf(%rip),%rsi
call   1080 <strcat@plt>
add    $0x2,%r14
xor    %r13d,%r13d
mov    $0x58,%r12b
jmp    11da <convert_human_time_format+0x6a>
mov    (%rsp),%rax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%S\00"
@.str.1 = [3 x i8] c"%M\00"
@.str.2 = [3 x i8] c"%l\00"
@.str.3 = [3 x i8] c"%k\00"
@.str.4 = [3 x i8] c"%P\00"
@.str.5 = [3 x i8] c"%p\00"
@.str.6 = [39 x i8] c"Invalid character \22%c\22 in time format!\00"
define i8* @convert_human_time_format(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8
%7 = alloca i32
store i8* %0, i8** %2
%8 = load i8*, i8** %2
%9 = call i32 @strlen(i8* %8)
%10 = mul nsw i32 2, %9
%11 = add nsw i32 %10, 1
%12 = call i64 @xcalloc(i32 %11, i32 1)
%13 = inttoptr i64 %12 to i8*
store i8* %13, i8** %3
%14 = load i8*, i8** %3
store i8* %14, i8** %5
store i8 0, i8* %6
%15 = load i8*, i8** %2
store i8* %15, i8** %4
br label %16
16: ; preds = %127, %1
%17 = load i8*, i8** %4
%18 = load i8, i8* %17
%19 = icmp ne i8 %18, 0
br i1 %19, label %20, label %130
20: ; preds = %16
store i32 1, i32* %7
%21 = load i8*, i8** %4
%22 = load i8, i8* %21
%23 = call i64 @isalpha(i8 signext %22)
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %103
25: ; preds = %20
%26 = load i8*, i8** %4
%27 = load i8, i8* %26
%28 = sext i8 %27 to i32
switch i32 %28, label %101 [
i32 83, label %29
i32 115, label %29
i32 77, label %39
i32 109, label %39
i32 104, label %49
i32 72, label %62
i32 120, label %75
i32 88, label %88
]
29: ; preds = %25, %25
%30 = load i8, i8* %6
%31 = sext i8 %30 to i32
%32 = icmp ne i32 %31, 83
br i1 %32, label %33, label %38
33: ; preds = %29
%34 = load i8*, i8** %5
%35 = call i32 @strcat(i8* %34, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%36 = load i8*, i8** %5
%37 = getelementptr inbounds i8, i8* %36, i64 2
store i8* %37, i8** %5
store i8 83, i8* %6
br label %38
38: ; preds = %33, %29
br label %102
39: ; preds = %25, %25
%40 = load i8, i8* %6
%41 = sext i8 %40 to i32
%42 = icmp ne i32 %41, 77
br i1 %42, label %43, label %48
43: ; preds = %39
%44 = load i8*, i8** %5
%45 = call i32 @strcat(i8* %44, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%46 = load i8*, i8** %5
%47 = getelementptr inbounds i8, i8* %46, i64 2
store i8* %47, i8** %5
store i8 77, i8* %6
br label %48
48: ; preds = %43, %39
br label %102
49: ; preds = %25
%50 = load i8, i8* %6
%51 = sext i8 %50 to i32
%52 = icmp ne i32 %51, 72
br i1 %52, label %53, label %58
53: ; preds = %49
%54 = load i8*, i8** %5
%55 = call i32 @strcat(i8* %54, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%56 = load i8*, i8** %5
%57 = getelementptr inbounds i8, i8* %56, i64 2
store i8* %57, i8** %5
store i8 72, i8* %6
br label %61
58: ; preds = %49
%59 = load i8*, i8** %5
%60 = getelementptr inbounds i8, i8* %59, i64 -1
store i8 73, i8* %60
br label %61
61: ; preds = %58, %53
br label %102
62: ; preds = %25
%63 = load i8, i8* %6
%64 = sext i8 %63 to i32
%65 = icmp ne i32 %64, 72
br i1 %65, label %66, label %71
66: ; preds = %62
%67 = load i8*, i8** %5
%68 = call i32 @strcat(i8* %67, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%69 = load i8*, i8** %5
%70 = getelementptr inbounds i8, i8* %69, i64 2
store i8* %70, i8** %5
store i8 72, i8* %6
br label %74
71: ; preds = %62
%72 = load i8*, i8** %5
%73 = getelementptr inbounds i8, i8* %72, i64 -1
store i8 72, i8* %73
br label %74
74: ; preds = %71, %66
br label %102
75: ; preds = %25
%76 = load i8, i8* %6
%77 = sext i8 %76 to i32
%78 = icmp ne i32 %77, 88
br i1 %78, label %79, label %84
79: ; preds = %75
%80 = load i8*, i8** %5
%81 = call i32 @strcat(i8* %80, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%82 = load i8*, i8** %5
%83 = getelementptr inbounds i8, i8* %82, i64 2
store i8* %83, i8** %5
store i8 88, i8* %6
br label %87
84: ; preds = %75
%85 = load i8*, i8** %5
%86 = getelementptr inbounds i8, i8* %85, i64 -1
store i8 80, i8* %86
br label %87
87: ; preds = %84, %79
br label %102
88: ; preds = %25
%89 = load i8, i8* %6
%90 = sext i8 %89 to i32
%91 = icmp ne i32 %90, 88
br i1 %91, label %92, label %97
92: ; preds = %88
%93 = load i8*, i8** %5
%94 = call i32 @strcat(i8* %93, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%95 = load i8*, i8** %5
%96 = getelementptr inbounds i8, i8* %95, i64 2
store i8* %96, i8** %5
store i8 88, i8* %6
br label %100
97: ; preds = %88
%98 = load i8*, i8** %5
%99 = getelementptr inbounds i8, i8* %98, i64 -1
store i8 112, i8* %99
br label %100
100: ; preds = %97, %92
br label %102
101: ; preds = %25
store i32 0, i32* %7
br label %102
102: ; preds = %101, %100, %87, %74, %61, %48, %38
br label %120
103: ; preds = %20
%104 = load i8*, i8** %4
%105 = load i8, i8* %104
%106 = call i64 @ispunct(i8 signext %105)
%107 = icmp ne i64 %106, 0
br i1 %107, label %113, label %108
108: ; preds = %103
%109 = load i8*, i8** %4
%110 = load i8, i8* %109
%111 = call i64 @isspace(i8 signext %110)
%112 = icmp ne i64 %111, 0
br i1 %112, label %113, label %118
113: ; preds = %108, %103
%114 = load i8*, i8** %4
%115 = load i8, i8* %114
%116 = load i8*, i8** %5
%117 = getelementptr inbounds i8, i8* %116, i32 1
store i8* %117, i8** %5
store i8 %115, i8* %116
store i8 0, i8* %6
br label %119
118: ; preds = %108
store i32 0, i32* %7
br label %119
119: ; preds = %118, %113
br label %120
120: ; preds = %119, %102
%121 = load i32, i32* %7
%122 = icmp eq i32 %121, 0
%123 = zext i1 %122 to i32
%124 = load i8*, i8** %4
%125 = load i8, i8* %124
%126 = call i32 @is_fatal(i32 %123, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0), i8 signext %125)
br label %127
127: ; preds = %120
%128 = load i8*, i8** %4
%129 = getelementptr inbounds i8, i8* %128, i32 1
store i8* %129, i8** %4
br label %16
130: ; preds = %16
%131 = load i8*, i8** %3
ret i8* %131
}

LLVM IR (-O2):
@.str = [3 x i8] c"%S\00"
@.str.1 = [3 x i8] c"%M\00"
@.str.2 = [3 x i8] c"%l\00"
@.str.3 = [3 x i8] c"%k\00"
@.str.4 = [3 x i8] c"%P\00"
@.str.5 = [3 x i8] c"%p\00"
@.str.6 = [39 x i8] c"Invalid character \22%c\22 in time format!\00"
define i8* @convert_human_time_format(i8* %0) {
%2 = tail call i32 @strlen(i8* %0)
%3 = shl nsw i32 %2, 1
%4 = or i32 %3, 1
%5 = tail call i64 @xcalloc(i32 %4, i32 1)
%6 = inttoptr i64 %5 to i8*
%7 = load i8, i8* %0
%8 = icmp eq i8 %7, 0
br i1 %8, label %76, label %9
9: ; preds = %1, %67
%10 = phi i8 [ %74, %67 ], [ %7, %1 ]
%11 = phi i8 [ %69, %67 ], [ 0, %1 ]
%12 = phi i8* [ %68, %67 ], [ %6, %1 ]
%13 = phi i8* [ %73, %67 ], [ %0, %1 ]
%14 = tail call i64 @isalpha(i8 signext %10)
%15 = icmp eq i64 %14, 0
%16 = load i8, i8* %13
br i1 %15, label %57, label %17
17: ; preds = %9
%18 = sext i8 %16 to i32
switch i32 %18, label %67 [
i32 83, label %19
i32 115, label %19
i32 77, label %24
i32 109, label %24
i32 104, label %29
i32 72, label %36
i32 120, label %43
i32 88, label %50
]
19: ; preds = %17, %17
%20 = icmp eq i8 %11, 83
br i1 %20, label %67, label %21
21: ; preds = %19
%22 = tail call i32 @strcat(i8* %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%23 = getelementptr inbounds i8, i8* %12, i64 2
br label %67
24: ; preds = %17, %17
%25 = icmp eq i8 %11, 77
br i1 %25, label %67, label %26
26: ; preds = %24
%27 = tail call i32 @strcat(i8* %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%28 = getelementptr inbounds i8, i8* %12, i64 2
br label %67
29: ; preds = %17
%30 = icmp eq i8 %11, 72
br i1 %30, label %34, label %31
31: ; preds = %29
%32 = tail call i32 @strcat(i8* %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%33 = getelementptr inbounds i8, i8* %12, i64 2
br label %67
34: ; preds = %29
%35 = getelementptr inbounds i8, i8* %12, i64 -1
store i8 73, i8* %35
br label %67
36: ; preds = %17
%37 = icmp eq i8 %11, 72
br i1 %37, label %41, label %38
38: ; preds = %36
%39 = tail call i32 @strcat(i8* %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%40 = getelementptr inbounds i8, i8* %12, i64 2
br label %67
41: ; preds = %36
%42 = getelementptr inbounds i8, i8* %12, i64 -1
store i8 72, i8* %42
br label %67
43: ; preds = %17
%44 = icmp eq i8 %11, 88
br i1 %44, label %48, label %45
45: ; preds = %43
%46 = tail call i32 @strcat(i8* %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%47 = getelementptr inbounds i8, i8* %12, i64 2
br label %67
48: ; preds = %43
%49 = getelementptr inbounds i8, i8* %12, i64 -1
store i8 80, i8* %49
br label %67
50: ; preds = %17
%51 = icmp eq i8 %11, 88
br i1 %51, label %55, label %52
52: ; preds = %50
%53 = tail call i32 @strcat(i8* %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%54 = getelementptr inbounds i8, i8* %12, i64 2
br label %67
55: ; preds = %50
%56 = getelementptr inbounds i8, i8* %12, i64 -1
store i8 112, i8* %56
br label %67
57: ; preds = %9
%58 = tail call i64 @ispunct(i8 signext %16)
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %64
60: ; preds = %57
%61 = load i8, i8* %13
%62 = tail call i64 @isspace(i8 signext %61)
%63 = icmp eq i64 %62, 0
br i1 %63, label %67, label %64
64: ; preds = %60, %57
%65 = load i8, i8* %13
%66 = getelementptr inbounds i8, i8* %12, i64 1
store i8 %65, i8* %12
br label %67
67: ; preds = %60, %17, %64, %21, %19, %26, %24, %34, %31, %41, %38, %48, %45, %55, %52
%68 = phi i8* [ %54, %52 ], [ %12, %55 ], [ %47, %45 ], [ %12, %48 ], [ %40, %38 ], [ %12, %41 ], [ %33, %31 ], [ %12, %34 ], [ %28, %26 ], [ %12, %24 ], [ %23, %21 ], [ %12, %19 ], [ %66, %64 ], [ %12, %17 ], [ %12, %60 ]
%69 = phi i8 [ 88, %52 ], [ 88, %55 ], [ 88, %45 ], [ 88, %48 ], [ 72, %38 ], [ 72, %41 ], [ 72, %31 ], [ 72, %34 ], [ 77, %26 ], [ 77, %24 ], [ 83, %21 ], [ 83, %19 ], [ 0, %64 ], [ %11, %17 ], [ %11, %60 ]
%70 = phi i32 [ 0, %52 ], [ 0, %55 ], [ 0, %45 ], [ 0, %48 ], [ 0, %38 ], [ 0, %41 ], [ 0, %31 ], [ 0, %34 ], [ 0, %26 ], [ 0, %24 ], [ 0, %21 ], [ 0, %19 ], [ 0, %64 ], [ 1, %17 ], [ 1, %60 ]
%71 = load i8, i8* %13
%72 = tail call i32 @is_fatal(i32 %70, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i64 0, i64 0), i8 signext %71)
%73 = getelementptr inbounds i8, i8* %13, i64 1
%74 = load i8, i8* %73
%75 = icmp eq i8 %74, 0
br i1 %75, label %76, label %9
76: ; preds = %67, %1
ret i8* %6
}