#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 /*<<< orphan*/ html_armor_to_file_nbsp(int /*<<< orphan*/ *,
                                           unsigned char const *, int);
scalar_t__ isspace(unsigned char const);
void text_table_number_lines(FILE *out_f, const unsigned char *intxt,
                             size_t insize, const unsigned char *tr_attr,
                             const unsigned char *td_attr) {
  int beg = 0, cur, end;
  int line = 1, lines;
  if (!tr_attr)
    tr_attr = "";
  if (!td_attr)
    td_attr = "";
  for (cur = 0, lines = 0; cur < insize; ++cur)
    if (intxt[cur] == '\n')
      ++lines;
  if (insize > 0 && intxt[insize - 1] != '\n')
    ++lines;
  fprintf(out_f, "<tr%s><td valign=\"top\"%s>", tr_attr, td_attr);
  for (line = 0; line < lines; ++line)
    fprintf(out_f, "<span onclick=\"markLine(%d)\"><tt>[%d]</tt></span><br/>\n",
            line + 1, line + 1);
  fprintf(out_f, "</td><td valign=\"top\"%s>", td_attr);
  for (cur = 0; cur < insize; ++cur) {
    if (intxt[cur] != '\n')
      continue;
    end = cur - 1;
    while (end >= beg && isspace(intxt[end]))
      --end;
    ++end;
    fprintf(out_f, "<span><tt>");
    html_armor_to_file_nbsp(out_f, intxt + beg, end - beg);
    fprintf(out_f, "</tt></span><br/>\n");
    beg = cur + 1;
  }
  if (beg != cur) {
    end = cur - 1;
    while (end >= beg && isspace(intxt[end]))
      --end;
    ++end;
    fprintf(out_f, "<span><tt>");
    html_armor_to_file_nbsp(out_f, intxt + beg, end - beg);
    fprintf(out_f, "</tt></span></br>\n");
  }
  fprintf(out_f, "</td></tr>");
}


x86 assembly (clang, -O0):
<text_table_number_lines>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x1,-0x38(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    1170 <text_table_number_lines+0x40>
lea    0xee5(%rip),%rax
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    1186 <text_table_number_lines+0x56>
lea    0xecf(%rip),%rax
mov    %rax,-0x28(%rbp)
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x3c(%rbp)
movslq -0x30(%rbp),%rax
cmp    -0x18(%rbp),%rax
jae    11d3 <text_table_number_lines+0xa3>
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
cmp    $0xa,%eax
jne    11c0 <text_table_number_lines+0x90>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    11c5 <text_table_number_lines+0x95>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1194 <text_table_number_lines+0x64>
cmpq   $0x0,-0x18(%rbp)
jbe    1200 <text_table_number_lines+0xd0>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rcx
sub    $0x1,%rcx
movzbl (%rax,%rcx,1),%eax
cmp    $0xa,%eax
je     1200 <text_table_number_lines+0xd0>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x20(%rbp),%rdx
mov    -0x28(%rbp),%rcx
lea    0xded(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x3c(%rbp),%eax
jge    1259 <text_table_number_lines+0x129>
mov    -0x8(%rbp),%rdi
mov    -0x38(%rbp),%edx
add    $0x1,%edx
mov    -0x38(%rbp),%ecx
add    $0x1,%ecx
lea    0xdd6(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1221 <text_table_number_lines+0xf1>
mov    -0x8(%rbp),%rdi
mov    -0x28(%rbp),%rdx
lea    0xdea(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
movl   $0x0,-0x30(%rbp)
movslq -0x30(%rbp),%rax
cmp    -0x18(%rbp),%rax
jae    134f <text_table_number_lines+0x21f>
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
movzbl (%rax,%rcx,1),%eax
cmp    $0xa,%eax
je     129e <text_table_number_lines+0x16e>
jmp    1341 <text_table_number_lines+0x211>
mov    -0x30(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%ecx
xor    %eax,%eax
cmp    -0x2c(%rbp),%ecx
mov    %al,-0x3d(%rbp)
jl     12d3 <text_table_number_lines+0x1a3>
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movzbl (%rax,%rcx,1),%edi
call   1030 <isspace@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x3d(%rbp)
mov    -0x3d(%rbp),%al
test   $0x1,%al
jne    12e3 <text_table_number_lines+0x1b3>
jmp    12f1 <text_table_number_lines+0x1c1>
mov    -0x34(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x34(%rbp)
jmp    12a7 <text_table_number_lines+0x177>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xd66(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
movslq -0x2c(%rbp),%rax
add    %rax,%rsi
mov    -0x34(%rbp),%edx
sub    -0x2c(%rbp),%edx
call   1050 <html_armor_to_file_nbsp@plt>
mov    -0x8(%rbp),%rdi
lea    0xd0e(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1276 <text_table_number_lines+0x146>
mov    -0x2c(%rbp),%eax
cmp    -0x30(%rbp),%eax
je     13f5 <text_table_number_lines+0x2c5>
mov    -0x30(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%ecx
xor    %eax,%eax
cmp    -0x2c(%rbp),%ecx
mov    %al,-0x3e(%rbp)
jl     1390 <text_table_number_lines+0x260>
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movzbl (%rax,%rcx,1),%edi
call   1030 <isspace@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x3e(%rbp)
mov    -0x3e(%rbp),%al
test   $0x1,%al
jne    13a0 <text_table_number_lines+0x270>
jmp    13ae <text_table_number_lines+0x27e>
mov    -0x34(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x34(%rbp)
jmp    1364 <text_table_number_lines+0x234>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xca9(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
movslq -0x2c(%rbp),%rax
add    %rax,%rsi
mov    -0x34(%rbp),%edx
sub    -0x2c(%rbp),%edx
call   1050 <html_armor_to_file_nbsp@plt>
mov    -0x8(%rbp),%rdi
lea    0xc88(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xc89(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<text_table_number_lines>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %r8,%rbp
mov    %rdi,%r12
test   %rcx,%rcx
lea    0xf13(%rip),%rax
cmove  %rax,%rcx
test   %r8,%r8
cmove  %rax,%rbp
test   %rdx,%rdx
je     1183 <text_table_number_lines+0x43>
mov    %rdx,%r15
mov    %rsi,%r14
cmp    $0x8,%rdx
jae    11b3 <text_table_number_lines+0x73>
xor    %eax,%eax
xor    %ebx,%ebx
jmp    12e0 <text_table_number_lines+0x1a0>
lea    0xe96(%rip),%rsi
mov    %r12,%rdi
mov    %rcx,%rdx
mov    %rbp,%rcx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xed1(%rip),%rsi
mov    %r12,%rdi
mov    %rbp,%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
jmp    14e7 <text_table_number_lines+0x3a7>
mov    %r15,%rax
and    $0xfffffffffffffff8,%rax
lea    -0x8(%rax),%rsi
mov    %rsi,%rdx
shr    $0x3,%rdx
add    $0x1,%rdx
test   %rsi,%rsi
je     147e <text_table_number_lines+0x33e>
mov    %rdx,%rdi
and    $0xfffffffffffffffe,%rdi
pxor   %xmm0,%xmm0
xor    %esi,%esi
movdqa 0xe19(%rip),%xmm2
movdqa 0xe21(%rip),%xmm3
pxor   %xmm1,%xmm1
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movd   (%r14,%rsi,1),%xmm5
movd   0x4(%r14,%rsi,1),%xmm4
pcmpeqb %xmm2,%xmm5
punpcklbw %xmm5,%xmm5
punpcklwd %xmm5,%xmm5
pand   %xmm3,%xmm5
paddd  %xmm0,%xmm5
pcmpeqb %xmm2,%xmm4
punpcklbw %xmm4,%xmm4
punpcklwd %xmm4,%xmm4
pand   %xmm3,%xmm4
paddd  %xmm1,%xmm4
movd   0x8(%r14,%rsi,1),%xmm0
movd   0xc(%r14,%rsi,1),%xmm1
pcmpeqb %xmm2,%xmm0
punpcklbw %xmm0,%xmm0
punpcklwd %xmm0,%xmm0
pand   %xmm3,%xmm0
paddd  %xmm5,%xmm0
pcmpeqb %xmm2,%xmm1
punpcklbw %xmm1,%xmm1
punpcklwd %xmm1,%xmm1
pand   %xmm3,%xmm1
paddd  %xmm4,%xmm1
add    $0x10,%rsi
add    $0xfffffffffffffffe,%rdi
jne    1200 <text_table_number_lines+0xc0>
test   $0x1,%dl
je     12bf <text_table_number_lines+0x17f>
movd   (%r14,%rsi,1),%xmm2
movd   0x4(%r14,%rsi,1),%xmm3
movdqa 0xd71(%rip),%xmm4
pcmpeqb %xmm4,%xmm2
punpcklbw %xmm2,%xmm2
punpcklwd %xmm2,%xmm2
movdqa 0xd6d(%rip),%xmm5
pand   %xmm5,%xmm2
paddd  %xmm2,%xmm0
pcmpeqb %xmm4,%xmm3
punpcklbw %xmm3,%xmm3
punpcklwd %xmm3,%xmm3
pand   %xmm5,%xmm3
paddd  %xmm3,%xmm1
paddd  %xmm1,%xmm0
pshufd $0xee,%xmm0,%xmm1
paddd  %xmm0,%xmm1
pshufd $0x55,%xmm1,%xmm0
paddd  %xmm1,%xmm0
movd   %xmm0,%ebx
cmp    %r15,%rax
je     12f5 <text_table_number_lines+0x1b5>
xchg   %ax,%ax
xor    %edx,%edx
cmpb   $0xa,(%r14,%rax,1)
sete   %dl
add    %edx,%ebx
add    $0x1,%rax
cmp    %rax,%r15
jne    12e0 <text_table_number_lines+0x1a0>
test   %r15,%r15
je     1307 <text_table_number_lines+0x1c7>
xor    %eax,%eax
cmpb   $0xa,-0x1(%r15,%r14,1)
setne  %al
add    %eax,%ebx
lea    0xd12(%rip),%rsi
mov    %r12,%rdi
mov    %rcx,%rdx
mov    %rbp,0x8(%rsp)
mov    %rbp,%rcx
xor    %eax,%eax
call   1040 <fprintf@plt>
test   %ebx,%ebx
jle    1363 <text_table_number_lines+0x223>
neg    %ebx
mov    $0x1,%ebp
lea    0xd05(%rip),%r13
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r12,%rdi
mov    %r13,%rsi
mov    %ebp,%edx
mov    %ebp,%ecx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    (%rbx,%rbp,1),%eax
add    $0x1,%eax
mov    %ebp,%ecx
add    $0x1,%ecx
mov    %ecx,%ebp
cmp    $0x1,%eax
jne    1340 <text_table_number_lines+0x200>
lea    0xd08(%rip),%rsi
xor    %r13d,%r13d
mov    %r12,%rdi
mov    0x8(%rsp),%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
test   %r15,%r15
je     14e7 <text_table_number_lines+0x3a7>
mov    %r12,0x8(%rsp)
xor    %r12d,%r12d
jmp    139d <text_table_number_lines+0x25d>
nop
add    $0x1,%r12
cmp    %r15,%r12
je     1438 <text_table_number_lines+0x2f8>
cmpb   $0xa,(%r14,%r12,1)
jne    1390 <text_table_number_lines+0x250>
movslq %r13d,%rbp
cmp    %r12d,%ebp
mov    %r12d,%r13d
cmovl  %ebp,%r13d
mov    %r12,%rbx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
cmp    %rbp,%rbx
jle    13df <text_table_number_lines+0x29f>
movzbl -0x1(%r14,%rbx,1),%edi
call   1030 <isspace@plt>
add    $0xffffffffffffffff,%rbx
test   %rax,%rax
jne    13c0 <text_table_number_lines+0x280>
add    $0x1,%ebx
mov    %ebx,%r13d
mov    $0xa,%esi
mov    $0x1,%edx
lea    0xc9b(%rip),%rdi
mov    0x8(%rsp),%rbx
mov    %rbx,%rcx
call   1060 <fwrite@plt>
lea    (%r14,%rbp,1),%rsi
sub    %ebp,%r13d
mov    %rbx,%rdi
mov    %r13d,%edx
call   1050 <html_armor_to_file_nbsp@plt>
mov    $0x12,%esi
mov    $0x1,%edx
lea    0xc3f(%rip),%rdi
mov    %rbx,%rcx
call   1060 <fwrite@plt>
add    $0x1,%r12
mov    %r12d,%r13d
cmp    %r15,%r12
jne    139d <text_table_number_lines+0x25d>
cmp    %r15d,%r13d
mov    0x8(%rsp),%r12
je     14e7 <text_table_number_lines+0x3a7>
movslq %r15d,%rbx
movslq %r13d,%r12
mov    %r15d,%eax
cmovl  %r13d,%eax
mov    %eax,0x14(%rsp)
lea    0x1(%r15),%ebp
nopl   0x0(%rax,%rax,1)
cmp    %r12,%rbx
jle    1496 <text_table_number_lines+0x356>
movzbl -0x1(%r14,%rbx,1),%edi
call   1030 <isspace@plt>
add    $0xffffffff,%ebp
add    $0xffffffffffffffff,%rbx
test   %rax,%rax
jne    1460 <text_table_number_lines+0x320>
jmp    149a <text_table_number_lines+0x35a>
pxor   %xmm0,%xmm0
xor    %esi,%esi
pxor   %xmm1,%xmm1
test   $0x1,%dl
jne    127a <text_table_number_lines+0x13a>
jmp    12bf <text_table_number_lines+0x17f>
mov    0x14(%rsp),%ebp
lea    0xbea(%rip),%rdi
mov    $0xa,%esi
mov    $0x1,%edx
mov    0x8(%rsp),%rbx
mov    %rbx,%rcx
call   1060 <fwrite@plt>
add    %r12,%r14
mov    %rbx,%r12
sub    %r13d,%ebp
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %ebp,%edx
call   1050 <html_armor_to_file_nbsp@plt>
lea    0xbc1(%rip),%rdi
mov    $0x12,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1060 <fwrite@plt>
lea    0xbbb(%rip),%rdi
mov    $0xa,%esi
mov    $0x1,%edx
mov    %r12,%rcx
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1060 <fwrite@plt>

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
@.str.1 = [26 x i8] c"<tr%s><td valign=\22top\22%s>\00"
@.str.2 = [56 x i8] c"<span onclick=\22markLine(%d)\22><tt>[%d]</tt></span><br/>\0A\00"
@.str.3 = [25 x i8] c"</td><td valign=\22top\22%s>\00"
@.str.4 = [11 x i8] c"<span><tt>\00"
@.str.5 = [19 x i8] c"</tt></span><br/>\0A\00"
@.str.6 = [19 x i8] c"</tt></span></br>\0A\00"
@.str.7 = [11 x i8] c"</td></tr>\00"
define void @text_table_number_lines(i32* %0, i8* %1, i64 %2, i8* %3, i8* %4) {
%6 = alloca i32*
%7 = alloca i8*
%8 = alloca i64
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
store i32* %0, i32** %6
store i8* %1, i8** %7
store i64 %2, i64* %8
store i8* %3, i8** %9
store i8* %4, i8** %10
store i32 0, i32* %11
store i32 1, i32* %14
%16 = load i8*, i8** %9
%17 = icmp ne i8* %16, null
br i1 %17, label %19, label %18
18: ; preds = %5
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8** %9
br label %19
19: ; preds = %18, %5
%20 = load i8*, i8** %10
%21 = icmp ne i8* %20, null
br i1 %21, label %23, label %22
22: ; preds = %19
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8** %10
br label %23
23: ; preds = %22, %19
store i32 0, i32* %12
store i32 0, i32* %15
br label %24
24: ; preds = %41, %23
%25 = load i32, i32* %12
%26 = sext i32 %25 to i64
%27 = load i64, i64* %8
%28 = icmp ult i64 %26, %27
br i1 %28, label %29, label %44
29: ; preds = %24
%30 = load i8*, i8** %7
%31 = load i32, i32* %12
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8, i8* %30, i64 %32
%34 = load i8, i8* %33
%35 = zext i8 %34 to i32
%36 = icmp eq i32 %35, 10
br i1 %36, label %37, label %40
37: ; preds = %29
%38 = load i32, i32* %15
%39 = add nsw i32 %38, 1
store i32 %39, i32* %15
br label %40
40: ; preds = %37, %29
br label %41
41: ; preds = %40
%42 = load i32, i32* %12
%43 = add nsw i32 %42, 1
store i32 %43, i32* %12
br label %24
44: ; preds = %24
%45 = load i64, i64* %8
%46 = icmp ugt i64 %45, 0
br i1 %46, label %47, label %58
47: ; preds = %44
%48 = load i8*, i8** %7
%49 = load i64, i64* %8
%50 = sub i64 %49, 1
%51 = getelementptr inbounds i8, i8* %48, i64 %50
%52 = load i8, i8* %51
%53 = zext i8 %52 to i32
%54 = icmp ne i32 %53, 10
br i1 %54, label %55, label %58
55: ; preds = %47
%56 = load i32, i32* %15
%57 = add nsw i32 %56, 1
store i32 %57, i32* %15
br label %58
58: ; preds = %55, %47, %44
%59 = load i32*, i32** %6
%60 = load i8*, i8** %9
%61 = load i8*, i8** %10
%62 = call i32 (i32*, i8*, ...) @fprintf(i32* %59, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0), i8* %60, i8* %61)
store i32 0, i32* %14
br label %63
63: ; preds = %74, %58
%64 = load i32, i32* %14
%65 = load i32, i32* %15
%66 = icmp slt i32 %64, %65
br i1 %66, label %67, label %77
67: ; preds = %63
%68 = load i32*, i32** %6
%69 = load i32, i32* %14
%70 = add nsw i32 %69, 1
%71 = load i32, i32* %14
%72 = add nsw i32 %71, 1
%73 = call i32 (i32*, i8*, ...) @fprintf(i32* %68, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.2, i64 0, i64 0), i32 %70, i32 %72)
br label %74
74: ; preds = %67
%75 = load i32, i32* %14
%76 = add nsw i32 %75, 1
store i32 %76, i32* %14
br label %63
77: ; preds = %63
%78 = load i32*, i32** %6
%79 = load i8*, i8** %10
%80 = call i32 (i32*, i8*, ...) @fprintf(i32* %78, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i8* %79)
store i32 0, i32* %12
br label %81
81: ; preds = %133, %77
%82 = load i32, i32* %12
%83 = sext i32 %82 to i64
%84 = load i64, i64* %8
%85 = icmp ult i64 %83, %84
br i1 %85, label %86, label %136
86: ; preds = %81
%87 = load i8*, i8** %7
%88 = load i32, i32* %12
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i8, i8* %87, i64 %89
%91 = load i8, i8* %90
%92 = zext i8 %91 to i32
%93 = icmp ne i32 %92, 10
br i1 %93, label %94, label %95
94: ; preds = %86
br label %133
95: ; preds = %86
%96 = load i32, i32* %12
%97 = sub nsw i32 %96, 1
store i32 %97, i32* %13
br label %98
98: ; preds = %112, %95
%99 = load i32, i32* %13
%100 = load i32, i32* %11
%101 = icmp sge i32 %99, %100
br i1 %101, label %102, label %110
102: ; preds = %98
%103 = load i8*, i8** %7
%104 = load i32, i32* %13
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds i8, i8* %103, i64 %105
%107 = load i8, i8* %106
%108 = call i64 @isspace(i8 zeroext %107)
%109 = icmp ne i64 %108, 0
br label %110
110: ; preds = %102, %98
%111 = phi i1 [ false, %98 ], [ %109, %102 ]
br i1 %111, label %112, label %115
112: ; preds = %110
%113 = load i32, i32* %13
%114 = add nsw i32 %113, -1
store i32 %114, i32* %13
br label %98
115: ; preds = %110
%116 = load i32, i32* %13
%117 = add nsw i32 %116, 1
store i32 %117, i32* %13
%118 = load i32*, i32** %6
%119 = call i32 (i32*, i8*, ...) @fprintf(i32* %118, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
%120 = load i32*, i32** %6
%121 = load i8*, i8** %7
%122 = load i32, i32* %11
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds i8, i8* %121, i64 %123
%125 = load i32, i32* %13
%126 = load i32, i32* %11
%127 = sub nsw i32 %125, %126
%128 = call i32 @html_armor_to_file_nbsp(i32* %120, i8* %124, i32 %127)
%129 = load i32*, i32** %6
%130 = call i32 (i32*, i8*, ...) @fprintf(i32* %129, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
%131 = load i32, i32* %12
%132 = add nsw i32 %131, 1
store i32 %132, i32* %11
br label %133
133: ; preds = %115, %94
%134 = load i32, i32* %12
%135 = add nsw i32 %134, 1
store i32 %135, i32* %12
br label %81
136: ; preds = %81
%137 = load i32, i32* %11
%138 = load i32, i32* %12
%139 = icmp ne i32 %137, %138
br i1 %139, label %140, label %176
140: ; preds = %136
%141 = load i32, i32* %12
%142 = sub nsw i32 %141, 1
store i32 %142, i32* %13
br label %143
143: ; preds = %157, %140
%144 = load i32, i32* %13
%145 = load i32, i32* %11
%146 = icmp sge i32 %144, %145
br i1 %146, label %147, label %155
147: ; preds = %143
%148 = load i8*, i8** %7
%149 = load i32, i32* %13
%150 = sext i32 %149 to i64
%151 = getelementptr inbounds i8, i8* %148, i64 %150
%152 = load i8, i8* %151
%153 = call i64 @isspace(i8 zeroext %152)
%154 = icmp ne i64 %153, 0
br label %155
155: ; preds = %147, %143
%156 = phi i1 [ false, %143 ], [ %154, %147 ]
br i1 %156, label %157, label %160
157: ; preds = %155
%158 = load i32, i32* %13
%159 = add nsw i32 %158, -1
store i32 %159, i32* %13
br label %143
160: ; preds = %155
%161 = load i32, i32* %13
%162 = add nsw i32 %161, 1
store i32 %162, i32* %13
%163 = load i32*, i32** %6
%164 = call i32 (i32*, i8*, ...) @fprintf(i32* %163, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
%165 = load i32*, i32** %6
%166 = load i8*, i8** %7
%167 = load i32, i32* %11
%168 = sext i32 %167 to i64
%169 = getelementptr inbounds i8, i8* %166, i64 %168
%170 = load i32, i32* %13
%171 = load i32, i32* %11
%172 = sub nsw i32 %170, %171
%173 = call i32 @html_armor_to_file_nbsp(i32* %165, i8* %169, i32 %172)
%174 = load i32*, i32** %6
%175 = call i32 (i32*, i8*, ...) @fprintf(i32* %174, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0))
br label %176
176: ; preds = %160, %136
%177 = load i32*, i32** %6
%178 = call i32 (i32*, i8*, ...) @fprintf(i32* %177, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
@.str.1 = [26 x i8] c"<tr%s><td valign=\22top\22%s>\00"
@.str.2 = [56 x i8] c"<span onclick=\22markLine(%d)\22><tt>[%d]</tt></span><br/>\0A\00"
@.str.3 = [25 x i8] c"</td><td valign=\22top\22%s>\00"
@.str.4 = [11 x i8] c"<span><tt>\00"
@.str.5 = [19 x i8] c"</tt></span><br/>\0A\00"
@.str.6 = [19 x i8] c"</tt></span></br>\0A\00"
@.str.7 = [11 x i8] c"</td></tr>\00"
define void @text_table_number_lines(i32* %0, i8* %1, i64 %2, i8* %3, i8* %4) {
%6 = icmp eq i8* %3, null
%7 = select i1 %6, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* %3
%8 = icmp eq i8* %4, null
%9 = select i1 %8, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* %4
%10 = icmp eq i64 %2, 0
br i1 %10, label %84, label %11
11: ; preds = %5
%12 = icmp ult i64 %2, 8
br i1 %12, label %81, label %13
13: ; preds = %11
%14 = and i64 %2, -8
%15 = add i64 %14, -8
%16 = lshr exact i64 %15, 3
%17 = add nuw nsw i64 %16, 1
%18 = and i64 %17, 1
%19 = icmp eq i64 %15, 0
br i1 %19, label %55, label %20
20: ; preds = %13
%21 = and i64 %17, 4611686018427387902
br label %22
22: ; preds = %22, %20
%23 = phi i64 [ 0, %20 ], [ %52, %22 ]
%24 = phi <4 x i32> [ zeroinitializer, %20 ], [ %50, %22 ]
%25 = phi <4 x i32> [ zeroinitializer, %20 ], [ %51, %22 ]
%26 = phi i64 [ 0, %20 ], [ %53, %22 ]
%27 = getelementptr inbounds i8, i8* %1, i64 %23
%28 = bitcast i8* %27 to <4 x i8>*
%29 = load <4 x i8>, <4 x i8>* %28
%30 = getelementptr inbounds i8, i8* %27, i64 4
%31 = bitcast i8* %30 to <4 x i8>*
%32 = load <4 x i8>, <4 x i8>* %31
%33 = icmp eq <4 x i8> %29, <i8 10, i8 10, i8 10, i8 10>
%34 = icmp eq <4 x i8> %32, <i8 10, i8 10, i8 10, i8 10>
%35 = zext <4 x i1> %33 to <4 x i32>
%36 = zext <4 x i1> %34 to <4 x i32>
%37 = add <4 x i32> %24, %35
%38 = add <4 x i32> %25, %36
%39 = or i64 %23, 8
%40 = getelementptr inbounds i8, i8* %1, i64 %39
%41 = bitcast i8* %40 to <4 x i8>*
%42 = load <4 x i8>, <4 x i8>* %41
%43 = getelementptr inbounds i8, i8* %40, i64 4
%44 = bitcast i8* %43 to <4 x i8>*
%45 = load <4 x i8>, <4 x i8>* %44
%46 = icmp eq <4 x i8> %42, <i8 10, i8 10, i8 10, i8 10>
%47 = icmp eq <4 x i8> %45, <i8 10, i8 10, i8 10, i8 10>
%48 = zext <4 x i1> %46 to <4 x i32>
%49 = zext <4 x i1> %47 to <4 x i32>
%50 = add <4 x i32> %37, %48
%51 = add <4 x i32> %38, %49
%52 = add nuw i64 %23, 16
%53 = add i64 %26, 2
%54 = icmp eq i64 %53, %21
br i1 %54, label %55, label %22
55: ; preds = %22, %13
%56 = phi <4 x i32> [ undef, %13 ], [ %50, %22 ]
%57 = phi <4 x i32> [ undef, %13 ], [ %51, %22 ]
%58 = phi i64 [ 0, %13 ], [ %52, %22 ]
%59 = phi <4 x i32> [ zeroinitializer, %13 ], [ %50, %22 ]
%60 = phi <4 x i32> [ zeroinitializer, %13 ], [ %51, %22 ]
%61 = icmp eq i64 %18, 0
br i1 %61, label %75, label %62
62: ; preds = %55
%63 = getelementptr inbounds i8, i8* %1, i64 %58
%64 = bitcast i8* %63 to <4 x i8>*
%65 = load <4 x i8>, <4 x i8>* %64
%66 = getelementptr inbounds i8, i8* %63, i64 4
%67 = bitcast i8* %66 to <4 x i8>*
%68 = load <4 x i8>, <4 x i8>* %67
%69 = icmp eq <4 x i8> %65, <i8 10, i8 10, i8 10, i8 10>
%70 = icmp eq <4 x i8> %68, <i8 10, i8 10, i8 10, i8 10>
%71 = zext <4 x i1> %69 to <4 x i32>
%72 = zext <4 x i1> %70 to <4 x i32>
%73 = add <4 x i32> %59, %71
%74 = add <4 x i32> %60, %72
br label %75
75: ; preds = %55, %62
%76 = phi <4 x i32> [ %56, %55 ], [ %73, %62 ]
%77 = phi <4 x i32> [ %57, %55 ], [ %74, %62 ]
%78 = add <4 x i32> %77, %76
%79 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %78)
%80 = icmp eq i64 %14, %2
br i1 %80, label %97, label %81
81: ; preds = %11, %75
%82 = phi i64 [ 0, %11 ], [ %14, %75 ]
%83 = phi i32 [ 0, %11 ], [ %79, %75 ]
br label %87
84: ; preds = %5
%85 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0), i8* %7, i8* %9)
%86 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i8* %9)
br label %179
87: ; preds = %81, %87
%88 = phi i64 [ %95, %87 ], [ %82, %81 ]
%89 = phi i32 [ %94, %87 ], [ %83, %81 ]
%90 = getelementptr inbounds i8, i8* %1, i64 %88
%91 = load i8, i8* %90
%92 = icmp eq i8 %91, 10
%93 = zext i1 %92 to i32
%94 = add nuw nsw i32 %89, %93
%95 = add nuw nsw i64 %88, 1
%96 = icmp eq i64 %95, %2
br i1 %96, label %97, label %87
97: ; preds = %87, %75
%98 = phi i32 [ %79, %75 ], [ %94, %87 ]
br i1 %10, label %106, label %99
99: ; preds = %97
%100 = add i64 %2, -1
%101 = getelementptr inbounds i8, i8* %1, i64 %100
%102 = load i8, i8* %101
%103 = icmp ne i8 %102, 10
%104 = zext i1 %103 to i32
%105 = add nuw nsw i32 %98, %104
br label %106
106: ; preds = %99, %97
%107 = phi i32 [ %98, %97 ], [ %105, %99 ]
%108 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0), i8* %7, i8* %9)
%109 = icmp sgt i32 %107, 0
br i1 %109, label %110, label %115
110: ; preds = %106, %110
%111 = phi i32 [ %112, %110 ], [ 0, %106 ]
%112 = add nuw nsw i32 %111, 1
%113 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.2, i64 0, i64 0), i32 %112, i32 %112)
%114 = icmp eq i32 %112, %107
br i1 %114, label %115, label %110
115: ; preds = %110, %106
%116 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i8* %9)
br i1 %10, label %179, label %117
117: ; preds = %115, %149
%118 = phi i64 [ %150, %149 ], [ 0, %115 ]
%119 = phi i32 [ %151, %149 ], [ 0, %115 ]
%120 = getelementptr inbounds i8, i8* %1, i64 %118
%121 = load i8, i8* %120
%122 = icmp eq i8 %121, 10
br i1 %122, label %125, label %123
123: ; preds = %117
%124 = add nuw i64 %118, 1
br label %149
125: ; preds = %117
%126 = sext i32 %119 to i64
%127 = trunc i64 %118 to i32
%128 = call i32 @llvm.smin.i32(i32 %119, i32 %127)
br label %129
129: ; preds = %125, %133
%130 = phi i64 [ %118, %125 ], [ %131, %133 ]
%131 = add nsw i64 %130, -1
%132 = icmp sgt i64 %130, %126
br i1 %132, label %133, label %140
133: ; preds = %129
%134 = getelementptr inbounds i8, i8* %1, i64 %131
%135 = load i8, i8* %134
%136 = tail call i64 @isspace(i8 zeroext %135)
%137 = icmp eq i64 %136, 0
br i1 %137, label %138, label %129
138: ; preds = %133
%139 = trunc i64 %130 to i32
br label %140
140: ; preds = %129, %138
%141 = phi i32 [ %139, %138 ], [ %128, %129 ]
%142 = tail call i64 @fwrite(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i64 10, i64 1, i32* %0)
%143 = getelementptr inbounds i8, i8* %1, i64 %126
%144 = sub nsw i32 %141, %119
%145 = tail call i32 @html_armor_to_file_nbsp(i32* %0, i8* %143, i32 %144)
%146 = tail call i64 @fwrite(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i64 18, i64 1, i32* %0)
%147 = add nuw i64 %118, 1
%148 = trunc i64 %147 to i32
br label %149
149: ; preds = %123, %140
%150 = phi i64 [ %124, %123 ], [ %147, %140 ]
%151 = phi i32 [ %119, %123 ], [ %148, %140 ]
%152 = icmp eq i64 %150, %2
br i1 %152, label %153, label %117
153: ; preds = %149
%154 = trunc i64 %2 to i32
%155 = icmp eq i32 %151, %154
br i1 %155, label %179, label %156
156: ; preds = %153
%157 = shl i64 %2, 32
%158 = ashr exact i64 %157, 32
%159 = sext i32 %151 to i64
%160 = call i32 @llvm.smin.i32(i32 %151, i32 %154)
br label %161
161: ; preds = %156, %165
%162 = phi i64 [ %158, %156 ], [ %163, %165 ]
%163 = add nsw i64 %162, -1
%164 = icmp sgt i64 %162, %159
br i1 %164, label %165, label %172
165: ; preds = %161
%166 = getelementptr inbounds i8, i8* %1, i64 %163
%167 = load i8, i8* %166
%168 = tail call i64 @isspace(i8 zeroext %167)
%169 = icmp eq i64 %168, 0
br i1 %169, label %170, label %161
170: ; preds = %165
%171 = trunc i64 %162 to i32
br label %172
172: ; preds = %161, %170
%173 = phi i32 [ %171, %170 ], [ %160, %161 ]
%174 = tail call i64 @fwrite(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i64 10, i64 1, i32* %0)
%175 = getelementptr inbounds i8, i8* %1, i64 %159
%176 = sub nsw i32 %173, %151
%177 = tail call i32 @html_armor_to_file_nbsp(i32* %0, i8* %175, i32 %176)
%178 = tail call i64 @fwrite(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0), i64 18, i64 1, i32* %0)
br label %179
179: ; preds = %84, %115, %172, %153
%180 = tail call i64 @fwrite(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i64 10, i64 1, i32* %0)
ret void
}