#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*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int sscanf(char *, char *, int *);
char *strchr(char *, char);
void writeParagraph(const char *scan, FILE *out, int codeMode) {
  int refState = 0;
  int emphState = 0;
  for (; *scan != 0; scan++) {
    if (*scan == '&') {
      fprintf(out, "&amp;");
    } else if (*scan == '<') {
      fprintf(out, "&lt;");
    } else if (*scan == '>') {
      fprintf(out, "&gt;");
    } else if ((*scan == '[') && (!codeMode)) {
      char buffer[1024];
      scan++;
      char *put = buffer;
      while (*scan != ']') {
        *put++ = *scan++;
      };
      *put = 0;
      char *dot = strchr(buffer, '.');
      if (dot == NULL)
        continue;
      *dot = 0;
      int chapter;
      if (sscanf(dot + 1, "%d", &chapter) != 1)
        continue;
      fprintf(out, "<a href=\"%s.%d.html\">%s(%d)</a>", buffer, chapter, buffer,
              chapter);
    } else if (*scan == '\'') {
      refState = !refState;
      if (refState) {
        fprintf(out, "<span class=\"ref\">");
      } else {
        fprintf(out, "</span>");
      };
    } else if ((*scan == '*') && (!codeMode)) {
      emphState = !emphState;
      if (emphState) {
        fprintf(out, "<span class=\"emph\">");
      } else {
        fprintf(out, "</span>");
      };
    } else if (*scan == '\\') {
      scan++;
      fprintf(out, "%c", *scan);
    } else {
      fprintf(out, "%c", *scan);
    };
  };
}


x86 assembly (clang, -O0):
<writeParagraph>:
push   %rbp
mov    %rsp,%rbp
sub    $0x440,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     142a <writeParagraph+0x2fa>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x26,%eax
jne    118b <writeParagraph+0x5b>
mov    -0x10(%rbp),%rdi
lea    0xe81(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
jmp    1414 <writeParagraph+0x2e4>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3c,%eax
jne    11b2 <writeParagraph+0x82>
mov    -0x10(%rbp),%rdi
lea    0xe60(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
jmp    140f <writeParagraph+0x2df>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x3e,%eax
jne    11d9 <writeParagraph+0xa9>
mov    -0x10(%rbp),%rdi
lea    0xe3e(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
jmp    140a <writeParagraph+0x2da>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5b,%eax
jne    12e7 <writeParagraph+0x1b7>
cmpl   $0x0,-0x14(%rbp)
jne    12e7 <writeParagraph+0x1b7>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
lea    -0x420(%rbp),%rax
mov    %rax,-0x428(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5d,%eax
je     124a <writeParagraph+0x11a>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
mov    (%rax),%cl
mov    -0x428(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x428(%rbp)
mov    %cl,(%rax)
jmp    120d <writeParagraph+0xdd>
mov    -0x428(%rbp),%rax
movb   $0x0,(%rax)
lea    -0x420(%rbp),%rdi
mov    $0x2e,%esi
call   1030 <strchr@plt>
mov    %rax,-0x430(%rbp)
cmpq   $0x0,-0x430(%rbp)
jne    127f <writeParagraph+0x14f>
jmp    1419 <writeParagraph+0x2e9>
mov    -0x430(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x430(%rbp),%rdi
add    $0x1,%rdi
lea    0xd75(%rip),%rsi
lea    -0x434(%rbp),%rdx
call   1050 <sscanf@plt>
cmp    $0x1,%eax
je     12b5 <writeParagraph+0x185>
jmp    1419 <writeParagraph+0x2e9>
mov    -0x10(%rbp),%rdi
lea    -0x420(%rbp),%rdx
mov    -0x434(%rbp),%ecx
lea    -0x420(%rbp),%r8
mov    -0x434(%rbp),%r9d
lea    0xd38(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
jmp    1405 <writeParagraph+0x2d5>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x27,%eax
jne    1340 <writeParagraph+0x210>
cmpl   $0x0,-0x18(%rbp)
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
je     1329 <writeParagraph+0x1f9>
mov    -0x10(%rbp),%rdi
lea    0xd16(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
jmp    133b <writeParagraph+0x20b>
mov    -0x10(%rbp),%rdi
lea    0xd12(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
jmp    1400 <writeParagraph+0x2d0>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2a,%eax
jne    13a3 <writeParagraph+0x273>
cmpl   $0x0,-0x14(%rbp)
jne    13a3 <writeParagraph+0x273>
cmpl   $0x0,-0x1c(%rbp)
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
je     138c <writeParagraph+0x25c>
mov    -0x10(%rbp),%rdi
lea    0xcce(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
jmp    139e <writeParagraph+0x26e>
mov    -0x10(%rbp),%rdi
lea    0xcaf(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
jmp    13fb <writeParagraph+0x2cb>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5c,%eax
jne    13dd <writeParagraph+0x2ad>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rax
movsbl (%rax),%edx
lea    0xc91(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
jmp    13f6 <writeParagraph+0x2c6>
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rax
movsbl (%rax),%edx
lea    0xc73(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
jmp    13fb <writeParagraph+0x2cb>
jmp    1400 <writeParagraph+0x2d0>
jmp    1405 <writeParagraph+0x2d5>
jmp    140a <writeParagraph+0x2da>
jmp    140f <writeParagraph+0x2df>
jmp    1414 <writeParagraph+0x2e4>
jmp    1419 <writeParagraph+0x2e9>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    1154 <writeParagraph+0x24>
add    $0x440,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<writeParagraph>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x418,%rsp
mov    %edx,%r14d
mov    %rsi,%rbx
mov    %rdi,%rbp
lea    0x10(%rsp),%r12
lea    0xe95(%rip),%r15
xor    %r13d,%r13d
jmp    119d <writeParagraph+0x4d>
nopl   0x0(%rax,%rax,1)
mov    $0x7,%esi
mov    $0x1,%edx
lea    0xeb5(%rip),%rdi
mov    %rbx,%rcx
call   1070 <fwrite@plt>
add    $0x1,%rbp
movl   $0x0,0x8(%rsp)
jmp    11cd <writeParagraph+0x7d>
nopw   0x0(%rax,%rax,1)
mov    $0x4,%esi
mov    $0x1,%edx
lea    0xe45(%rip),%rdi
mov    %rbx,%rcx
call   1070 <fwrite@plt>
add    $0x1,%rbp
movsbl 0x0(%rbp),%edi
cmp    $0x3b,%edi
jle    1200 <writeParagraph+0xb0>
cmp    $0x3c,%dil
je     11b0 <writeParagraph+0x60>
cmp    $0x3e,%dil
jne    1222 <writeParagraph+0xd2>
mov    $0x4,%esi
mov    $0x1,%edx
mov    %r15,%rdi
jmp    11c1 <writeParagraph+0x71>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
cmp    $0x26,%dil
jne    1219 <writeParagraph+0xc9>
mov    $0x5,%esi
mov    $0x1,%edx
lea    0xde9(%rip),%rdi
jmp    11c1 <writeParagraph+0x71>
test   %dil,%dil
je     1376 <writeParagraph+0x226>
test   %r14d,%r14d
jne    12bf <writeParagraph+0x16f>
cmp    $0x5b,%dil
jne    12bf <writeParagraph+0x16f>
mov    0x1(%rbp),%cl
add    $0x1,%rbp
mov    %r12,%rax
cmp    $0x5d,%cl
je     1263 <writeParagraph+0x113>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %cl,(%rax)
add    $0x1,%rax
movzbl 0x1(%rbp),%ecx
add    $0x1,%rbp
cmp    $0x5d,%cl
jne    1250 <writeParagraph+0x100>
movb   $0x0,(%rax)
mov    %r12,%rdi
mov    $0x2e,%esi
call   1030 <strchr@plt>
test   %rax,%rax
je     12b6 <writeParagraph+0x166>
movb   $0x0,(%rax)
add    $0x1,%rax
mov    %rax,%rdi
lea    0xd87(%rip),%rsi
lea    0xc(%rsp),%rdx
call   1060 <sscanf@plt>
cmp    $0x1,%eax
jne    12b6 <writeParagraph+0x166>
mov    0xc(%rsp),%ecx
mov    %rbx,%rdi
lea    0xd6d(%rip),%rsi
mov    %r12,%rdx
mov    %r12,%r8
mov    %ecx,%r9d
xor    %eax,%eax
call   1050 <fprintf@plt>
add    $0x1,%rbp
jmp    11cd <writeParagraph+0x7d>
cmp    $0x27,%dil
jne    12f2 <writeParagraph+0x1a2>
test   %r13d,%r13d
jne    1332 <writeParagraph+0x1e2>
mov    $0x12,%esi
mov    $0x1,%edx
lea    0xd58(%rip),%rdi
mov    %rbx,%rcx
call   1070 <fwrite@plt>
mov    $0x1,%r13d
add    $0x1,%rbp
jmp    11cd <writeParagraph+0x7d>
test   %r14d,%r14d
jne    1357 <writeParagraph+0x207>
cmp    $0x2a,%dil
jne    1357 <writeParagraph+0x207>
cmpl   $0x0,0x8(%rsp)
jne    1180 <writeParagraph+0x30>
mov    $0x13,%esi
mov    $0x1,%edx
lea    0xd35(%rip),%rdi
mov    %rbx,%rcx
call   1070 <fwrite@plt>
movl   $0x1,0x8(%rsp)
add    $0x1,%rbp
jmp    11cd <writeParagraph+0x7d>
mov    $0x7,%esi
mov    $0x1,%edx
lea    0xd03(%rip),%rdi
mov    %rbx,%rcx
call   1070 <fwrite@plt>
add    $0x1,%rbp
xor    %r13d,%r13d
jmp    11cd <writeParagraph+0x7d>
cmp    $0x5c,%dil
jne    1365 <writeParagraph+0x215>
movsbl 0x1(%rbp),%edi
add    $0x1,%rbp
mov    %rbx,%rsi
call   1040 <fputc@plt>
add    $0x1,%rbp
jmp    11cd <writeParagraph+0x7d>
add    $0x418,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"&amp;\00"
@.str.1 = [5 x i8] c"&lt;\00"
@.str.2 = [5 x i8] c"&gt;\00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [32 x i8] c"<a href=\22%s.%d.html\22>%s(%d)</a>\00"
@.str.5 = [19 x i8] c"<span class=\22ref\22>\00"
@.str.6 = [8 x i8] c"</span>\00"
@.str.7 = [20 x i8] c"<span class=\22emph\22>\00"
@.str.8 = [3 x i8] c"%c\00"
define void @writeParagraph(i8* %0, i32* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i32*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca [1024 x i8]
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i32
store i8* %0, i8** %4
store i32* %1, i32** %5
store i32 %2, i32* %6
store i32 0, i32* %7
store i32 0, i32* %8
br label %13
13: ; preds = %153, %3
%14 = load i8*, i8** %4
%15 = load i8, i8* %14
%16 = sext i8 %15 to i32
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %156
18: ; preds = %13
%19 = load i8*, i8** %4
%20 = load i8, i8* %19
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %21, 38
br i1 %22, label %23, label %26
23: ; preds = %18
%24 = load i32*, i32** %5
%25 = call i32 (i32*, i8*, ...) @fprintf(i32* %24, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
br label %152
26: ; preds = %18
%27 = load i8*, i8** %4
%28 = load i8, i8* %27
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 60
br i1 %30, label %31, label %34
31: ; preds = %26
%32 = load i32*, i32** %5
%33 = call i32 (i32*, i8*, ...) @fprintf(i32* %32, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %151
34: ; preds = %26
%35 = load i8*, i8** %4
%36 = load i8, i8* %35
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 62
br i1 %38, label %39, label %42
39: ; preds = %34
%40 = load i32*, i32** %5
%41 = call i32 (i32*, i8*, ...) @fprintf(i32* %40, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %150
42: ; preds = %34
%43 = load i8*, i8** %4
%44 = load i8, i8* %43
%45 = sext i8 %44 to i32
%46 = icmp eq i32 %45, 91
br i1 %46, label %47, label %86
47: ; preds = %42
%48 = load i32, i32* %6
%49 = icmp ne i32 %48, 0
br i1 %49, label %86, label %50
50: ; preds = %47
%51 = load i8*, i8** %4
%52 = getelementptr inbounds i8, i8* %51, i32 1
store i8* %52, i8** %4
%53 = getelementptr inbounds [1024 x i8], [1024 x i8]* %9, i64 0, i64 0
store i8* %53, i8** %10
br label %54
54: ; preds = %59, %50
%55 = load i8*, i8** %4
%56 = load i8, i8* %55
%57 = sext i8 %56 to i32
%58 = icmp ne i32 %57, 93
br i1 %58, label %59, label %65
59: ; preds = %54
%60 = load i8*, i8** %4
%61 = getelementptr inbounds i8, i8* %60, i32 1
store i8* %61, i8** %4
%62 = load i8, i8* %60
%63 = load i8*, i8** %10
%64 = getelementptr inbounds i8, i8* %63, i32 1
store i8* %64, i8** %10
store i8 %62, i8* %63
br label %54
65: ; preds = %54
%66 = load i8*, i8** %10
store i8 0, i8* %66
%67 = getelementptr inbounds [1024 x i8], [1024 x i8]* %9, i64 0, i64 0
%68 = call i8* @strchr(i8* %67, i8 signext 46)
store i8* %68, i8** %11
%69 = load i8*, i8** %11
%70 = icmp eq i8* %69, null
br i1 %70, label %71, label %72
71: ; preds = %65
br label %153
72: ; preds = %65
%73 = load i8*, i8** %11
store i8 0, i8* %73
%74 = load i8*, i8** %11
%75 = getelementptr inbounds i8, i8* %74, i64 1
%76 = call i32 @sscanf(i8* %75, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %12)
%77 = icmp ne i32 %76, 1
br i1 %77, label %78, label %79
78: ; preds = %72
br label %153
79: ; preds = %72
%80 = load i32*, i32** %5
%81 = getelementptr inbounds [1024 x i8], [1024 x i8]* %9, i64 0, i64 0
%82 = load i32, i32* %12
%83 = getelementptr inbounds [1024 x i8], [1024 x i8]* %9, i64 0, i64 0
%84 = load i32, i32* %12
%85 = call i32 (i32*, i8*, ...) @fprintf(i32* %80, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i8* %81, i32 %82, i8* %83, i32 %84)
br label %149
86: ; preds = %47, %42
%87 = load i8*, i8** %4
%88 = load i8, i8* %87
%89 = sext i8 %88 to i32
%90 = icmp eq i32 %89, 39
br i1 %90, label %91, label %105
91: ; preds = %86
%92 = load i32, i32* %7
%93 = icmp ne i32 %92, 0
%94 = xor i1 %93, true
%95 = zext i1 %94 to i32
store i32 %95, i32* %7
%96 = load i32, i32* %7
%97 = icmp ne i32 %96, 0
br i1 %97, label %98, label %101
98: ; preds = %91
%99 = load i32*, i32** %5
%100 = call i32 (i32*, i8*, ...) @fprintf(i32* %99, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
br label %104
101: ; preds = %91
%102 = load i32*, i32** %5
%103 = call i32 (i32*, i8*, ...) @fprintf(i32* %102, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
br label %104
104: ; preds = %101, %98
br label %148
105: ; preds = %86
%106 = load i8*, i8** %4
%107 = load i8, i8* %106
%108 = sext i8 %107 to i32
%109 = icmp eq i32 %108, 42
br i1 %109, label %110, label %127
110: ; preds = %105
%111 = load i32, i32* %6
%112 = icmp ne i32 %111, 0
br i1 %112, label %127, label %113
113: ; preds = %110
%114 = load i32, i32* %8
%115 = icmp ne i32 %114, 0
%116 = xor i1 %115, true
%117 = zext i1 %116 to i32
store i32 %117, i32* %8
%118 = load i32, i32* %8
%119 = icmp ne i32 %118, 0
br i1 %119, label %120, label %123
120: ; preds = %113
%121 = load i32*, i32** %5
%122 = call i32 (i32*, i8*, ...) @fprintf(i32* %121, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
br label %126
123: ; preds = %113
%124 = load i32*, i32** %5
%125 = call i32 (i32*, i8*, ...) @fprintf(i32* %124, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
br label %126
126: ; preds = %123, %120
br label %147
127: ; preds = %110, %105
%128 = load i8*, i8** %4
%129 = load i8, i8* %128
%130 = sext i8 %129 to i32
%131 = icmp eq i32 %130, 92
br i1 %131, label %132, label %140
132: ; preds = %127
%133 = load i8*, i8** %4
%134 = getelementptr inbounds i8, i8* %133, i32 1
store i8* %134, i8** %4
%135 = load i32*, i32** %5
%136 = load i8*, i8** %4
%137 = load i8, i8* %136
%138 = sext i8 %137 to i32
%139 = call i32 (i32*, i8*, ...) @fprintf(i32* %135, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 %138)
br label %146
140: ; preds = %127
%141 = load i32*, i32** %5
%142 = load i8*, i8** %4
%143 = load i8, i8* %142
%144 = sext i8 %143 to i32
%145 = call i32 (i32*, i8*, ...) @fprintf(i32* %141, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 %144)
br label %146
146: ; preds = %140, %132
br label %147
147: ; preds = %146, %126
br label %148
148: ; preds = %147, %104
br label %149
149: ; preds = %148, %79
br label %150
150: ; preds = %149, %39
br label %151
151: ; preds = %150, %31
br label %152
152: ; preds = %151, %23
br label %153
153: ; preds = %152, %78, %71
%154 = load i8*, i8** %4
%155 = getelementptr inbounds i8, i8* %154, i32 1
store i8* %155, i8** %4
br label %13
156: ; preds = %13
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"&amp;\00"
@.str.1 = [5 x i8] c"&lt;\00"
@.str.2 = [5 x i8] c"&gt;\00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [32 x i8] c"<a href=\22%s.%d.html\22>%s(%d)</a>\00"
@.str.5 = [19 x i8] c"<span class=\22ref\22>\00"
@.str.6 = [8 x i8] c"</span>\00"
@.str.7 = [20 x i8] c"<span class=\22emph\22>\00"
define void @writeParagraph(i8* nocapture %0, i32* nocapture %1, i32 %2) {
%4 = alloca [1024 x i8]
%5 = alloca i32
%6 = icmp ne i32 %2, 0
%7 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%8 = bitcast i32* %5 to i8*
br label %9
9: ; preds = %76, %3
%10 = phi i32 [ 0, %3 ], [ %77, %76 ]
%11 = phi i32 [ 0, %3 ], [ %78, %76 ]
%12 = phi i8* [ %0, %3 ], [ %80, %76 ]
%13 = load i8, i8* %12
%14 = sext i8 %13 to i32
switch i8 %13, label %21 [
i8 0, label %81
i8 38, label %15
i8 60, label %17
i8 62, label %19
]
15: ; preds = %9
%16 = call i64 @fwrite(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i64 5, i64 1, i32* %1)
br label %76
17: ; preds = %9
%18 = call i64 @fwrite(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i64 4, i64 1, i32* %1)
br label %76
19: ; preds = %9
%20 = call i64 @fwrite(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i64 4, i64 1, i32* %1)
br label %76
21: ; preds = %9
%22 = icmp ne i8 %13, 91
%23 = or i1 %6, %22
br i1 %23, label %50, label %24
24: ; preds = %21
%25 = getelementptr inbounds i8, i8* %12, i64 1
%26 = load i8, i8* %25
%27 = icmp eq i8 %26, 93
br i1 %27, label %36, label %28
28: ; preds = %24, %28
%29 = phi i8 [ %34, %28 ], [ %26, %24 ]
%30 = phi i8* [ %33, %28 ], [ %25, %24 ]
%31 = phi i8* [ %32, %28 ], [ %7, %24 ]
%32 = getelementptr inbounds i8, i8* %31, i64 1
store i8 %29, i8* %31
%33 = getelementptr inbounds i8, i8* %30, i64 1
%34 = load i8, i8* %33
%35 = icmp eq i8 %34, 93
br i1 %35, label %36, label %28
36: ; preds = %28, %24
%37 = phi i8* [ %7, %24 ], [ %32, %28 ]
%38 = phi i8* [ %25, %24 ], [ %33, %28 ]
store i8 0, i8* %37
%39 = call i8* @strchr(i8* %7, i8 signext 46)
%40 = icmp eq i8* %39, null
br i1 %40, label %49, label %41
41: ; preds = %36
store i8 0, i8* %39
%42 = getelementptr inbounds i8, i8* %39, i64 1
%43 = call i32 @sscanf(i8* %42, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %5)
%44 = icmp eq i32 %43, 1
br i1 %44, label %45, label %48
45: ; preds = %41
%46 = load i32, i32* %5
%47 = call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i8* %7, i32 %46, i8* %7, i32 %46)
br label %48
48: ; preds = %41, %45
br label %49
49: ; preds = %36, %48
br label %76
50: ; preds = %21
%51 = icmp eq i8 %13, 39
br i1 %51, label %52, label %58
52: ; preds = %50
%53 = icmp eq i32 %10, 0
br i1 %53, label %54, label %56
54: ; preds = %52
%55 = call i64 @fwrite(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i64 18, i64 1, i32* %1)
br label %76
56: ; preds = %52
%57 = call i64 @fwrite(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i64 7, i64 1, i32* %1)
br label %76
58: ; preds = %50
%59 = icmp ne i8 %13, 42
%60 = or i1 %6, %59
br i1 %60, label %67, label %61
61: ; preds = %58
%62 = icmp eq i32 %11, 0
br i1 %62, label %63, label %65
63: ; preds = %61
%64 = call i64 @fwrite(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i64 19, i64 1, i32* %1)
br label %76
65: ; preds = %61
%66 = call i64 @fwrite(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i64 7, i64 1, i32* %1)
br label %76
67: ; preds = %58
%68 = icmp eq i8 %13, 92
br i1 %68, label %69, label %74
69: ; preds = %67
%70 = getelementptr inbounds i8, i8* %12, i64 1
%71 = load i8, i8* %70
%72 = sext i8 %71 to i32
%73 = call i32 @fputc(i32 %72, i32* %1)
br label %76
74: ; preds = %67
%75 = call i32 @fputc(i32 %14, i32* %1)
br label %76
76: ; preds = %49, %15, %19, %56, %54, %69, %74, %63, %65, %17
%77 = phi i32 [ %10, %15 ], [ %10, %17 ], [ %10, %19 ], [ 1, %54 ], [ 0, %56 ], [ %10, %69 ], [ %10, %74 ], [ %10, %63 ], [ %10, %65 ], [ %10, %49 ]
%78 = phi i32 [ %11, %15 ], [ %11, %17 ], [ %11, %19 ], [ %11, %54 ], [ %11, %56 ], [ %11, %69 ], [ %11, %74 ], [ 1, %63 ], [ 0, %65 ], [ %11, %49 ]
%79 = phi i8* [ %12, %15 ], [ %12, %17 ], [ %12, %19 ], [ %12, %54 ], [ %12, %56 ], [ %70, %69 ], [ %12, %74 ], [ %12, %63 ], [ %12, %65 ], [ %38, %49 ]
%80 = getelementptr inbounds i8, i8* %79, i64 1
br label %9
81: ; preds = %9
ret void
}