#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*/ htmlPrintJointAlignmentLine(char *, char *, int, int);
int strlen(char *);
int /*<<< orphan*/ validateSeqs(char *, char *);
void htmlPrintJointAlignment(char *seq1, char *seq2, int columnNum, int start,
                             int end, char *strand) {
  int i;
  validateSeqs(seq1, seq2);
  for (i = 0; i < strlen(seq1); i += columnNum)
    htmlPrintJointAlignmentLine(
        seq1, seq2, i,
        ((i + columnNum) < (strlen(seq1)) ? (i + columnNum) : (strlen(seq1))));
}


x86 assembly (clang, -O0):
<htmlPrintJointAlignment>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
mov    %r9,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1050 <validateSeqs@plt>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x30(%rbp),%eax
cmp    %ecx,%eax
jge    11ee <htmlPrintJointAlignment+0xbe>
mov    -0x8(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x2c(%rbp),%eax
add    -0x14(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x34(%rbp),%eax
cmp    %ecx,%eax
jge    11c1 <htmlPrintJointAlignment+0x91>
mov    -0x2c(%rbp),%eax
add    -0x14(%rbp),%eax
mov    %eax,-0x4c(%rbp)
jmp    11cd <htmlPrintJointAlignment+0x9d>
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x4c(%rbp)
mov    -0x38(%rbp),%edx
mov    -0x40(%rbp),%rsi
mov    -0x48(%rbp),%rdi
mov    -0x4c(%rbp),%ecx
call   1030 <htmlPrintJointAlignmentLine@plt>
mov    -0x14(%rbp),%eax
add    -0x2c(%rbp),%eax
mov    %eax,-0x2c(%rbp)
jmp    1162 <htmlPrintJointAlignment+0x32>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<htmlPrintJointAlignment>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %edx,%r14d
mov    %rsi,%r15
mov    %rdi,%r12
call   1050 <validateSeqs@plt>
mov    %r12,%rdi
call   1040 <strlen@plt>
test   %eax,%eax
jle    1199 <htmlPrintJointAlignment+0x69>
xor    %ebx,%ebx
jmp    117b <htmlPrintJointAlignment+0x4b>
cs nopw 0x0(%rax,%rax,1)
mov    %r12,%rdi
mov    %r15,%rsi
mov    %ebx,%edx
call   1030 <htmlPrintJointAlignmentLine@plt>
mov    %r12,%rdi
call   1040 <strlen@plt>
mov    %ebp,%ebx
cmp    %eax,%ebp
jge    1199 <htmlPrintJointAlignment+0x69>
lea    (%rbx,%r14,1),%ebp
mov    %r12,%rdi
call   1040 <strlen@plt>
mov    %ebp,%ecx
cmp    %eax,%ebp
jl     1160 <htmlPrintJointAlignment+0x30>
mov    %r12,%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
jmp    1160 <htmlPrintJointAlignment+0x30>
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @htmlPrintJointAlignment(i8* %0, i8* %1, i32 %2, i32 %3, i32 %4, i8* %5) {
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i8*
%13 = alloca i32
store i8* %0, i8** %7
store i8* %1, i8** %8
store i32 %2, i32* %9
store i32 %3, i32* %10
store i32 %4, i32* %11
store i8* %5, i8** %12
%14 = load i8*, i8** %7
%15 = load i8*, i8** %8
%16 = call i32 @validateSeqs(i8* %14, i8* %15)
store i32 0, i32* %13
br label %17
17: ; preds = %42, %6
%18 = load i32, i32* %13
%19 = load i8*, i8** %7
%20 = call i32 @strlen(i8* %19)
%21 = icmp slt i32 %18, %20
br i1 %21, label %22, label %46
22: ; preds = %17
%23 = load i8*, i8** %7
%24 = load i8*, i8** %8
%25 = load i32, i32* %13
%26 = load i32, i32* %13
%27 = load i32, i32* %9
%28 = add nsw i32 %26, %27
%29 = load i8*, i8** %7
%30 = call i32 @strlen(i8* %29)
%31 = icmp slt i32 %28, %30
br i1 %31, label %32, label %36
32: ; preds = %22
%33 = load i32, i32* %13
%34 = load i32, i32* %9
%35 = add nsw i32 %33, %34
br label %39
36: ; preds = %22
%37 = load i8*, i8** %7
%38 = call i32 @strlen(i8* %37)
br label %39
39: ; preds = %36, %32
%40 = phi i32 [ %35, %32 ], [ %38, %36 ]
%41 = call i32 @htmlPrintJointAlignmentLine(i8* %23, i8* %24, i32 %25, i32 %40)
br label %42
42: ; preds = %39
%43 = load i32, i32* %9
%44 = load i32, i32* %13
%45 = add nsw i32 %44, %43
store i32 %45, i32* %13
br label %17
46: ; preds = %17
ret void
}

LLVM IR (-O2):
define void @htmlPrintJointAlignment(i8* %0, i8* %1, i32 %2, i32 %3, i32 %4, i8* nocapture readnone %5) {
%7 = tail call i32 @validateSeqs(i8* %0, i8* %1)
%8 = tail call i32 @strlen(i8* %0)
%9 = icmp sgt i32 %8, 0
br i1 %9, label %10, label %22
10: ; preds = %6, %17
%11 = phi i32 [ %12, %17 ], [ 0, %6 ]
%12 = add nsw i32 %11, %2
%13 = tail call i32 @strlen(i8* %0)
%14 = icmp slt i32 %12, %13
br i1 %14, label %17, label %15
15: ; preds = %10
%16 = tail call i32 @strlen(i8* %0)
br label %17
17: ; preds = %10, %15
%18 = phi i32 [ %16, %15 ], [ %12, %10 ]
%19 = tail call i32 @htmlPrintJointAlignmentLine(i8* %0, i8* %1, i32 %11, i32 %18)
%20 = tail call i32 @strlen(i8* %0)
%21 = icmp slt i32 %12, %20
br i1 %21, label %10, label %22
22: ; preds = %17, %6
ret void
}