#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 *, char, ...);
void PrintCellAligment(int i, int j, char *secuence1, char *secuence2,
                       int gap_up, int gap_left) {
  if (gap_up == 1)
    printf("_  %c\n", secuence2[i]);
  else if (gap_left == 1)
    printf("%c  _\n", secuence1[j]);
  else
    printf("%c  %c\n", secuence1[j], secuence2[i]);
}


x86 assembly (clang, -O0):
<PrintCellAligment>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
mov    %r9d,-0x20(%rbp)
cmpl   $0x1,-0x1c(%rbp)
jne    1157 <PrintCellAligment+0x47>
mov    -0x18(%rbp),%rax
movslq -0x4(%rbp),%rcx
lea    0xeb9(%rip),%rdi
movsbl (%rax,%rcx,1),%esi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11ad <PrintCellAligment+0x9d>
cmpl   $0x1,-0x20(%rbp)
jne    1180 <PrintCellAligment+0x70>
mov    -0x10(%rbp),%rax
movslq -0x8(%rbp),%rcx
lea    0xe97(%rip),%rdi
movsbl (%rax,%rcx,1),%esi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11a8 <PrintCellAligment+0x98>
mov    -0x10(%rbp),%rax
movslq -0x8(%rbp),%rcx
mov    (%rax,%rcx,1),%al
mov    -0x18(%rbp),%rcx
movslq -0x4(%rbp),%rdx
movsbl (%rcx,%rdx,1),%edx
lea    0xe70(%rip),%rdi
movsbl %al,%esi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11ad <PrintCellAligment+0x9d>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PrintCellAligment>:
cmp    $0x1,%r8d
jne    112b <PrintCellAligment+0x1b>
movslq %edi,%rax
movsbl (%rcx,%rax,1),%esi
lea    0xedc(%rip),%rdi
xor    %eax,%eax
jmp    1030 <printf@plt>
movslq %esi,%rax
mov    (%rdx,%rax,1),%al
cmp    $0x1,%r9d
jne    1148 <PrintCellAligment+0x38>
movsbl %al,%esi
lea    0xec6(%rip),%rdi
xor    %eax,%eax
jmp    1030 <printf@plt>
movslq %edi,%rdx
movsbl (%rcx,%rdx,1),%edx
movsbl %al,%esi
lea    0xeb5(%rip),%rdi
xor    %eax,%eax
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"_ %c\0A\00"
@.str.1 = [7 x i8] c"%c _\0A\00"
@.str.2 = [8 x i8] c"%c %c\0A\00"
define void @PrintCellAligment(i32 %0, i32 %1, i8* %2, i8* %3, i32 %4, i32 %5) {
%7 = alloca i32
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i32
%12 = alloca i32
store i32 %0, i32* %7
store i32 %1, i32* %8
store i8* %2, i8** %9
store i8* %3, i8** %10
store i32 %4, i32* %11
store i32 %5, i32* %12
%13 = load i32, i32* %11
%14 = icmp eq i32 %13, 1
br i1 %14, label %15, label %22
15: ; preds = %6
%16 = load i8*, i8** %10
%17 = load i32, i32* %7
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i8, i8* %16, i64 %18
%20 = load i8, i8* %19
%21 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8 signext %20)
br label %46
22: ; preds = %6
%23 = load i32, i32* %12
%24 = icmp eq i32 %23, 1
br i1 %24, label %25, label %32
25: ; preds = %22
%26 = load i8*, i8** %9
%27 = load i32, i32* %8
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds i8, i8* %26, i64 %28
%30 = load i8, i8* %29
%31 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8 signext %30)
br label %45
32: ; preds = %22
%33 = load i8*, i8** %9
%34 = load i32, i32* %8
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8, i8* %33, i64 %35
%37 = load i8, i8* %36
%38 = load i8*, i8** %10
%39 = load i32, i32* %7
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8, i8* %38, i64 %40
%42 = load i8, i8* %41
%43 = sext i8 %42 to i32
%44 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8 signext %37, i32 %43)
br label %45
45: ; preds = %32, %25
br label %46
46: ; preds = %45, %15
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"_ %c\0A\00"
@.str.1 = [7 x i8] c"%c _\0A\00"
@.str.2 = [8 x i8] c"%c %c\0A\00"
define void @PrintCellAligment(i32 %0, i32 %1, i8* nocapture %2, i8* nocapture %3, i32 %4, i32 %5) {
%7 = icmp eq i32 %4, 1
br i1 %7, label %8, label %13
8: ; preds = %6
%9 = sext i32 %0 to i64
%10 = getelementptr inbounds i8, i8* %3, i64 %9
%11 = load i8, i8* %10
%12 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8 signext %11)
br label %26
13: ; preds = %6
%14 = icmp eq i32 %5, 1
%15 = sext i32 %1 to i64
%16 = getelementptr inbounds i8, i8* %2, i64 %15
%17 = load i8, i8* %16
br i1 %14, label %18, label %20
18: ; preds = %13
%19 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8 signext %17)
br label %26
20: ; preds = %13
%21 = sext i32 %0 to i64
%22 = getelementptr inbounds i8, i8* %3, i64 %21
%23 = load i8, i8* %22
%24 = sext i8 %23 to i32
%25 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8 signext %17, i32 %24)
br label %26
26: ; preds = %18, %20, %8
ret void
}