#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*/ printf(char *, ...);
scalar_t__ ucaseMatch(char, char);
void htmlPrintJointAlignmentLine(char *seq1, char *seq2, int start, int end) {
  int i;
  printf("<tt>");
  for (i = start; i < end; i++)
    printf("%c", seq1[i]);
  printf("<br>");
  for (i = start; i < end; i++) {
    if (ucaseMatch(seq1[i], seq2[i]))
      printf("|");
    else
      printf("&nbsp;");
  }
  printf("<br>");
  for (i = start; i < end; i++)
    printf("%c", seq2[i]);
  printf("</tt>");
  printf("<br><br>");
}


x86 assembly (clang, -O0):
<htmlPrintJointAlignmentLine>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
lea    0xec3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    117e <htmlPrintJointAlignmentLine+0x5e>
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsbl (%rax,%rcx,1),%esi
lea    0xe9c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    114a <htmlPrintJointAlignmentLine+0x2a>
lea    0xe96(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    11fb <htmlPrintJointAlignmentLine+0xdb>
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,1),%dl
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsbl %dl,%edi
movsbl (%rax,%rcx,1),%esi
call   1030 <ucaseMatch@plt>
cmp    $0x0,%rax
je     11da <htmlPrintJointAlignmentLine+0xba>
lea    0xe3a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    11e8 <htmlPrintJointAlignmentLine+0xc8>
lea    0xe29(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    11ed <htmlPrintJointAlignmentLine+0xcd>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1192 <htmlPrintJointAlignmentLine+0x72>
lea    0xe19(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1243 <htmlPrintJointAlignmentLine+0x123>
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movsbl (%rax,%rcx,1),%esi
lea    0xdd7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    120f <htmlPrintJointAlignmentLine+0xef>
lea    0xdc7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xdbf(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<htmlPrintJointAlignmentLine>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %ecx,%ebx
mov    %edx,%r15d
mov    %rsi,%r13
mov    %rdi,%rbp
lea    0xeb3(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    %ebx,%r15d
jge    11e5 <htmlPrintJointAlignmentLine+0xb5>
movslq %r15d,%r14
add    %r14,%rbp
mov    %ebx,0x4(%rsp)
mov    %ebx,%r12d
sub    %r15d,%r12d
xor    %ebx,%ebx
nop
movsbl 0x0(%rbp,%rbx,1),%edi
call   1030 <putchar@plt>
add    $0x1,%rbx
cmp    %ebx,%r12d
jne    1170 <htmlPrintJointAlignmentLine+0x40>
lea    0xe8c(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    0x4(%rsp),%r15d
jge    11f3 <htmlPrintJointAlignmentLine+0xc3>
add    %r14,%r13
lea    0xe63(%rip),%rbx
xor    %r14d,%r14d
jmp    11c3 <htmlPrintJointAlignmentLine+0x93>
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%r14
cmp    %r14d,%r12d
je     122b <htmlPrintJointAlignmentLine+0xfb>
movsbl 0x0(%rbp,%r14,1),%edi
movsbl 0x0(%r13,%r14,1),%esi
call   1040 <ucaseMatch@plt>
test   %rax,%rax
je     11b0 <htmlPrintJointAlignmentLine+0x80>
mov    $0x7c,%edi
call   1030 <putchar@plt>
jmp    11ba <htmlPrintJointAlignmentLine+0x8a>
lea    0xe2a(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe1c(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe04(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xdfc(%rip),%rdi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <printf@plt>
lea    0xde4(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmp    0x4(%rsp),%r15d
jge    1201 <htmlPrintJointAlignmentLine+0xd1>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsbl 0x0(%r13,%rbx,1),%edi
call   1030 <putchar@plt>
add    $0x1,%rbx
cmp    %ebx,%r12d
jne    1250 <htmlPrintJointAlignmentLine+0x120>
jmp    1201 <htmlPrintJointAlignmentLine+0xd1>

LLVM IR (-O0):
@.str = [5 x i8] c"<tt>\00"
@.str.1 = [3 x i8] c"%c\00"
@.str.2 = [5 x i8] c"<br>\00"
@.str.3 = [2 x i8] c"|\00"
@.str.4 = [7 x i8] c"&nbsp;\00"
@.str.5 = [6 x i8] c"</tt>\00"
@.str.6 = [9 x i8] c"<br><br>\00"
define void @htmlPrintJointAlignmentLine(i8* %0, i8* %1, i32 %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i8* %0, i8** %5
store i8* %1, i8** %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%11 = load i32, i32* %7
store i32 %11, i32* %9
br label %12
12: ; preds = %24, %4
%13 = load i32, i32* %9
%14 = load i32, i32* %8
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %27
16: ; preds = %12
%17 = load i8*, i8** %5
%18 = load i32, i32* %9
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, i8* %17, i64 %19
%21 = load i8, i8* %20
%22 = sext i8 %21 to i32
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %22)
br label %24
24: ; preds = %16
%25 = load i32, i32* %9
%26 = add nsw i32 %25, 1
store i32 %26, i32* %9
br label %12
27: ; preds = %12
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%29 = load i32, i32* %7
store i32 %29, i32* %9
br label %30
30: ; preds = %52, %27
%31 = load i32, i32* %9
%32 = load i32, i32* %8
%33 = icmp slt i32 %31, %32
br i1 %33, label %34, label %55
34: ; preds = %30
%35 = load i8*, i8** %5
%36 = load i32, i32* %9
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, i8* %35, i64 %37
%39 = load i8, i8* %38
%40 = load i8*, i8** %6
%41 = load i32, i32* %9
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, i8* %40, i64 %42
%44 = load i8, i8* %43
%45 = call i64 @ucaseMatch(i8 signext %39, i8 signext %44)
%46 = icmp ne i64 %45, 0
br i1 %46, label %47, label %49
47: ; preds = %34
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %51
49: ; preds = %34
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
br label %51
51: ; preds = %49, %47
br label %52
52: ; preds = %51
%53 = load i32, i32* %9
%54 = add nsw i32 %53, 1
store i32 %54, i32* %9
br label %30
55: ; preds = %30
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%57 = load i32, i32* %7
store i32 %57, i32* %9
br label %58
58: ; preds = %70, %55
%59 = load i32, i32* %9
%60 = load i32, i32* %8
%61 = icmp slt i32 %59, %60
br i1 %61, label %62, label %73
62: ; preds = %58
%63 = load i8*, i8** %6
%64 = load i32, i32* %9
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i8, i8* %63, i64 %65
%67 = load i8, i8* %66
%68 = sext i8 %67 to i32
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %68)
br label %70
70: ; preds = %62
%71 = load i32, i32* %9
%72 = add nsw i32 %71, 1
store i32 %72, i32* %9
br label %58
73: ; preds = %58
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"<tt>\00"
@.str.2 = [5 x i8] c"<br>\00"
@.str.4 = [7 x i8] c"&nbsp;\00"
@.str.5 = [6 x i8] c"</tt>\00"
@.str.6 = [9 x i8] c"<br><br>\00"
define void @htmlPrintJointAlignmentLine(i8* nocapture %0, i8* nocapture %1, i32 %2, i32 %3) {
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%6 = icmp slt i32 %2, %3
br i1 %6, label %9, label %7
7: ; preds = %4
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %40
9: ; preds = %4
%10 = sext i32 %2 to i64
br label %11
11: ; preds = %9, %11
%12 = phi i64 [ %10, %9 ], [ %17, %11 ]
%13 = getelementptr inbounds i8, i8* %0, i64 %12
%14 = load i8, i8* %13
%15 = sext i8 %14 to i32
%16 = tail call i32 @putchar(i32 %15)
%17 = add nsw i64 %12, 1
%18 = trunc i64 %17 to i32
%19 = icmp eq i32 %18, %3
br i1 %19, label %20, label %11
20: ; preds = %11
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br i1 %6, label %22, label %40
22: ; preds = %20
%23 = sext i32 %2 to i64
br label %24
24: ; preds = %22, %36
%25 = phi i64 [ %23, %22 ], [ %37, %36 ]
%26 = getelementptr inbounds i8, i8* %0, i64 %25
%27 = load i8, i8* %26
%28 = getelementptr inbounds i8, i8* %1, i64 %25
%29 = load i8, i8* %28
%30 = tail call i64 @ucaseMatch(i8 signext %27, i8 signext %29)
%31 = icmp eq i64 %30, 0
br i1 %31, label %34, label %32
32: ; preds = %24
%33 = tail call i32 @putchar(i32 124)
br label %36
34: ; preds = %24
%35 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
br label %36
36: ; preds = %32, %34
%37 = add nsw i64 %25, 1
%38 = trunc i64 %37 to i32
%39 = icmp eq i32 %38, %3
br i1 %39, label %42, label %24
40: ; preds = %7, %20
%41 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %55
42: ; preds = %36
%43 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br i1 %6, label %44, label %55
44: ; preds = %42
%45 = sext i32 %2 to i64
br label %46
46: ; preds = %44, %46
%47 = phi i64 [ %45, %44 ], [ %52, %46 ]
%48 = getelementptr inbounds i8, i8* %1, i64 %47
%49 = load i8, i8* %48
%50 = sext i8 %49 to i32
%51 = tail call i32 @putchar(i32 %50)
%52 = add nsw i64 %47, 1
%53 = trunc i64 %52 to i32
%54 = icmp eq i32 %53, %3
br i1 %54, label %55, label %46
55: ; preds = %46, %40, %42
%56 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%57 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
ret void
}