#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*/ needwun(char *, char *, char *, char *);
void pe(char *seqA, char *seqB, char *alignedA, char *alignedB) {
#pragma HLS inline off
  for (unsigned i = 0; i < 256 / 2; i++) {
    needwun(seqA + i * 128, seqB + i * 128, alignedA + i * (128 + 128),
            alignedB + i * (128 + 128));
  }
}


x86 assembly (clang, -O0):
<pe>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
cmpl   $0x80,-0x24(%rbp)
jae    118b <pe+0x7b>
mov    -0x8(%rbp),%rdi
mov    -0x24(%rbp),%eax
shl    $0x7,%eax
mov    %eax,%eax
add    %rax,%rdi
mov    -0x10(%rbp),%rsi
mov    -0x24(%rbp),%eax
shl    $0x7,%eax
mov    %eax,%eax
add    %rax,%rsi
mov    -0x18(%rbp),%rdx
mov    -0x24(%rbp),%eax
shl    $0x8,%eax
mov    %eax,%eax
add    %rax,%rdx
mov    -0x20(%rbp),%rcx
mov    -0x24(%rbp),%eax
shl    $0x8,%eax
mov    %eax,%eax
add    %rax,%rcx
call   1030 <needwun@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    112f <pe+0x1f>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pe>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %rcx,%r14
mov    %rdx,%r13
mov    %rsi,%r15
mov    %rdi,%r12
xor    %ebx,%ebx
nopw   0x0(%rax,%rax,1)
lea    (%r12,%rbx,1),%rdi
lea    (%r15,%rbx,1),%rsi
mov    %r13,%rdx
mov    %r14,%rcx
call   1030 <needwun@plt>
sub    $0xffffffffffffff80,%rbx
add    $0x100,%r13
add    $0x100,%r14
cmp    $0x4000,%rbx
jne    1130 <pe+0x20>
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @pe(i8* %0, i8* %1, i8* %2, i8* %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i32
store i8* %0, i8** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i8* %3, i8** %8
store i32 0, i32* %9
br label %10
10: ; preds = %35, %4
%11 = load i32, i32* %9
%12 = icmp ult i32 %11, 128
br i1 %12, label %13, label %38
13: ; preds = %10
%14 = load i8*, i8** %5
%15 = load i32, i32* %9
%16 = mul i32 %15, 128
%17 = zext i32 %16 to i64
%18 = getelementptr inbounds i8, i8* %14, i64 %17
%19 = load i8*, i8** %6
%20 = load i32, i32* %9
%21 = mul i32 %20, 128
%22 = zext i32 %21 to i64
%23 = getelementptr inbounds i8, i8* %19, i64 %22
%24 = load i8*, i8** %7
%25 = load i32, i32* %9
%26 = mul i32 %25, 256
%27 = zext i32 %26 to i64
%28 = getelementptr inbounds i8, i8* %24, i64 %27
%29 = load i8*, i8** %8
%30 = load i32, i32* %9
%31 = mul i32 %30, 256
%32 = zext i32 %31 to i64
%33 = getelementptr inbounds i8, i8* %29, i64 %32
%34 = call i32 @needwun(i8* %18, i8* %23, i8* %28, i8* %33)
br label %35
35: ; preds = %13
%36 = load i32, i32* %9
%37 = add i32 %36, 1
store i32 %37, i32* %9
br label %10
38: ; preds = %10
ret void
}

LLVM IR (-O2):
define void @pe(i8* %0, i8* %1, i8* %2, i8* %3) {
br label %6
5: ; preds = %6
ret void
6: ; preds = %4, %6
%7 = phi i64 [ 0, %4 ], [ %15, %6 ]
%8 = shl nuw nsw i64 %7, 7
%9 = getelementptr inbounds i8, i8* %0, i64 %8
%10 = getelementptr inbounds i8, i8* %1, i64 %8
%11 = shl nuw nsw i64 %7, 8
%12 = getelementptr inbounds i8, i8* %2, i64 %11
%13 = getelementptr inbounds i8, i8* %3, i64 %11
%14 = tail call i32 @needwun(i8* %9, i8* %10, i8* %12, i8* %13)
%15 = add nuw nsw i64 %7, 1
%16 = icmp eq i64 %15, 128
br i1 %16, label %5, label %6
}