#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 */
scalar_t__ check_uneven_dimer(char *, char *, int, int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ reverse_string(char *, char *, int);
int /*<<< orphan*/ sprintf(char *, char *, char *);
int strlen(char *);
int main(int argc, char **argv) {
  char fp1[80], fp2[80], rp1[80], rp2[80];
  int i, f1, r1, f2, r2;
  char flipf1[80], flipf2[80], flipr1[80], flipr2[80];
  if (argc != 5) {
    printf("\nUsage: primer_compat forward_primer_1 reverse_primer_1 "
           "forward_primer_2 reverse_primer_2\n");
    exit(1);
  }
  sprintf(fp1, "%s", argv[1]);
  sprintf(rp1, "%s", argv[2]);
  sprintf(fp2, "%s", argv[3]);
  sprintf(rp2, "%s", argv[4]);
  printf("\nprimer 1 fwd: %s\trev: %s\nprimer 2 fwd: %s\trev: %s\n", fp1, rp1,
         fp2, rp2);
  f1 = strlen(fp1);
  r1 = strlen(rp1);
  f2 = strlen(fp2);
  r2 = strlen(rp2);
  for (i = 0; i < 80; i++)
    flipf1[i] = flipf2[i] = flipr1[i] = flipr2[i] = '\0';
  printf("\n\nlen primer 1 fwd: %d\trev: %d\nlen primer 2 fwd: %d\trev: %d\n",
         f1, r1, f2, r2);
  reverse_string(rp1, flipr1, r1);
  reverse_string(rp2, flipr2, r2);
  reverse_string(fp1, flipf1, f1);
  reverse_string(fp2, flipf2, f2);
  printf("\n\ncomplement of primer 1 fwd: %s\trev: %s\ncomplement of primer 2 "
         "fwd: %s\trev: %s\n",
         flipf1, flipr1, flipf2, flipr2);
  if (check_uneven_dimer(fp1, flipf2, f1, f2))
    printf("\nprimer 1 forward (%s) makes dimer with primer 2 forward (%s)\n",
           fp1, fp2);
  else if (check_uneven_dimer(rp1, flipr2, r1, r2))
    printf("\nprimer 1 reverse (%s) makes dimer with primer 2 reverse (%s)\n",
           rp1, rp2);
  else if (check_uneven_dimer(fp1, flipr2, f1, r2))
    printf("\nprimer 1 forward (%s) makes dimer with primer 2 reverse (%s)\n",
           fp1, rp2);
  else if (check_uneven_dimer(rp1, flipf2, r1, f2))
    printf("\nprimer 1 reverse (%s) makes dimer with primer 2 forward (%s)\n",
           rp1, fp2);
  else
    printf("\nprimer pair 1 and 2 seem compatable.\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2b0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x5,-0x8(%rbp)
je     119b <main+0x3b>
lea    0xe76(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>
lea    -0x60(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xead(%rip),%rsi
call   1070 <sprintf@plt>
lea    -0x100(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdx
lea    0xe92(%rip),%rsi
call   1070 <sprintf@plt>
lea    -0xb0(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdx
lea    0xe77(%rip),%rsi
call   1070 <sprintf@plt>
lea    -0x150(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rdx
lea    0xe5c(%rip),%rsi
call   1070 <sprintf@plt>
lea    -0x60(%rbp),%rsi
lea    -0x100(%rbp),%rdx
lea    -0xb0(%rbp),%rcx
lea    -0x150(%rbp),%r8
lea    0xe3a(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x60(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x158(%rbp)
lea    -0x100(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x15c(%rbp)
lea    -0xb0(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x160(%rbp)
lea    -0x150(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x164(%rbp)
movl   $0x0,-0x154(%rbp)
cmpl   $0x50,-0x154(%rbp)
jge    12d7 <main+0x177>
movslq -0x154(%rbp),%rax
movb   $0x0,-0x2b0(%rbp,%rax,1)
movslq -0x154(%rbp),%rax
movb   $0x0,-0x260(%rbp,%rax,1)
movslq -0x154(%rbp),%rax
movb   $0x0,-0x210(%rbp,%rax,1)
movslq -0x154(%rbp),%rax
movb   $0x0,-0x1c0(%rbp,%rax,1)
mov    -0x154(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x154(%rbp)
jmp    127a <main+0x11a>
mov    -0x158(%rbp),%esi
mov    -0x15c(%rbp),%edx
mov    -0x160(%rbp),%ecx
mov    -0x164(%rbp),%r8d
lea    0xd9b(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x100(%rbp),%rdi
lea    -0x260(%rbp),%rsi
mov    -0x15c(%rbp),%edx
call   1030 <reverse_string@plt>
lea    -0x150(%rbp),%rdi
lea    -0x2b0(%rbp),%rsi
mov    -0x164(%rbp),%edx
call   1030 <reverse_string@plt>
lea    -0x60(%rbp),%rdi
lea    -0x1c0(%rbp),%rsi
mov    -0x158(%rbp),%edx
call   1030 <reverse_string@plt>
lea    -0xb0(%rbp),%rdi
lea    -0x210(%rbp),%rsi
mov    -0x160(%rbp),%edx
call   1030 <reverse_string@plt>
lea    -0x1c0(%rbp),%rsi
lea    -0x260(%rbp),%rdx
lea    -0x210(%rbp),%rcx
lea    -0x2b0(%rbp),%r8
lea    0xd4d(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x60(%rbp),%rdi
lea    -0x210(%rbp),%rsi
mov    -0x158(%rbp),%edx
mov    -0x160(%rbp),%ecx
call   1050 <check_uneven_dimer@plt>
cmp    $0x0,%rax
je     13cd <main+0x26d>
lea    -0x60(%rbp),%rsi
lea    -0xb0(%rbp),%rdx
lea    0xd5f(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    14c2 <main+0x362>
lea    -0x100(%rbp),%rdi
lea    -0x2b0(%rbp),%rsi
mov    -0x15c(%rbp),%edx
mov    -0x164(%rbp),%ecx
call   1050 <check_uneven_dimer@plt>
cmp    $0x0,%rax
je     1417 <main+0x2b7>
lea    -0x100(%rbp),%rsi
lea    -0x150(%rbp),%rdx
lea    0xd54(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    14bd <main+0x35d>
lea    -0x60(%rbp),%rdi
lea    -0x2b0(%rbp),%rsi
mov    -0x158(%rbp),%edx
mov    -0x164(%rbp),%ecx
call   1050 <check_uneven_dimer@plt>
cmp    $0x0,%rax
je     145b <main+0x2fb>
lea    -0x60(%rbp),%rsi
lea    -0x150(%rbp),%rdx
lea    0xd4f(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    14b8 <main+0x358>
lea    -0x100(%rbp),%rdi
lea    -0x210(%rbp),%rsi
mov    -0x15c(%rbp),%edx
mov    -0x160(%rbp),%ecx
call   1050 <check_uneven_dimer@plt>
cmp    $0x0,%rax
je     14a5 <main+0x345>
lea    -0x100(%rbp),%rsi
lea    -0xb0(%rbp),%rdx
lea    0xd44(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    14b3 <main+0x353>
lea    0xd70(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    14b8 <main+0x358>
jmp    14bd <main+0x35d>
jmp    14c2 <main+0x362>
mov    -0x4(%rbp),%eax
add    $0x2b0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x298,%rsp
cmp    $0x5,%edi
jne    1440 <main+0x2d0>
mov    %rsi,%rbx
mov    0x8(%rsi),%rsi
lea    0x1a0(%rsp),%rdi
mov    %rdi,%r14
call   1040 <strcpy@plt>
mov    0x10(%rbx),%rsi
lea    0x150(%rsp),%r13
mov    %r13,%rdi
call   1040 <strcpy@plt>
mov    0x18(%rbx),%rsi
lea    0x1f0(%rsp),%rdi
mov    %rdi,%rbp
call   1040 <strcpy@plt>
mov    0x20(%rbx),%rsi
lea    0x240(%rsp),%r15
mov    %r15,%rdi
call   1040 <strcpy@plt>
lea    0xe1c(%rip),%rdi
mov    %r14,%rsi
mov    %r13,%rdx
mov    %rbp,%rbx
mov    %rbp,%rcx
mov    %r15,%r8
xor    %eax,%eax
call   1080 <printf@plt>
mov    %r14,%rdi
call   1060 <strlen@plt>
mov    %eax,%r12d
mov    %r13,%rdi
call   1060 <strlen@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
call   1060 <strlen@plt>
mov    %eax,%r14d
mov    %r15,%rdi
call   1060 <strlen@plt>
mov    %eax,%ebx
xorps  %xmm0,%xmm0
movaps %xmm0,0x10(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x90(%rsp)
movaps %xmm0,0xa0(%rsp)
movaps %xmm0,0xb0(%rsp)
movaps %xmm0,0xc0(%rsp)
movaps %xmm0,0xd0(%rsp)
movaps %xmm0,0xe0(%rsp)
movaps %xmm0,0xf0(%rsp)
movaps %xmm0,0x100(%rsp)
movaps %xmm0,0x110(%rsp)
movaps %xmm0,0x120(%rsp)
movaps %xmm0,0x130(%rsp)
movaps %xmm0,0x140(%rsp)
lea    0xd7b(%rip),%rdi
mov    %r12d,%esi
mov    %ebp,%edx
mov    %r14d,%ecx
mov    %eax,%r8d
xor    %eax,%eax
call   1080 <printf@plt>
lea    0x60(%rsp),%rsi
mov    %r13,%rdi
mov    %ebp,0x8(%rsp)
mov    %ebp,%edx
call   1030 <reverse_string@plt>
lea    0x10(%rsp),%rbp
mov    %r15,%rdi
mov    %rbp,%rsi
mov    %ebx,0xc(%rsp)
mov    %ebx,%edx
call   1030 <reverse_string@plt>
lea    0x100(%rsp),%rbx
lea    0x1a0(%rsp),%r13
mov    %r13,%rdi
mov    %rbx,%rsi
mov    %r12d,%edx
call   1030 <reverse_string@plt>
lea    0xb0(%rsp),%r15
lea    0x1f0(%rsp),%rdi
mov    %r15,%rsi
mov    %r14d,%edx
call   1030 <reverse_string@plt>
lea    0xd3d(%rip),%rdi
mov    %rbx,%rsi
lea    0x60(%rsp),%rdx
mov    %r15,%rcx
mov    %rbp,%r8
mov    %r12d,%ebp
xor    %eax,%eax
call   1080 <printf@plt>
mov    %r13,%rdi
mov    %r15,%rsi
mov    %r12d,%edx
mov    %r14d,%ecx
call   1070 <check_uneven_dimer@plt>
test   %rax,%rax
je     137b <main+0x20b>
lea    0xd59(%rip),%rdi
lea    0x1a0(%rsp),%rsi
lea    0x1f0(%rsp),%rdx
jmp    13e3 <main+0x273>
lea    0x150(%rsp),%rdi
lea    0x10(%rsp),%rsi
mov    0x8(%rsp),%r12d
mov    %r12d,%edx
mov    0xc(%rsp),%ebx
mov    %ebx,%ecx
call   1070 <check_uneven_dimer@plt>
test   %rax,%rax
je     13b1 <main+0x241>
lea    0xd5a(%rip),%rdi
lea    0x150(%rsp),%rsi
jmp    13db <main+0x26b>
lea    0x1a0(%rsp),%rdi
lea    0x10(%rsp),%rsi
mov    %ebp,%edx
mov    %ebx,%ecx
call   1070 <check_uneven_dimer@plt>
test   %rax,%rax
je     13fe <main+0x28e>
lea    0xd6d(%rip),%rdi
lea    0x1a0(%rsp),%rsi
lea    0x240(%rsp),%rdx
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
add    $0x298,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x150(%rsp),%rdi
lea    0xb0(%rsp),%rsi
mov    %r12d,%edx
mov    %r14d,%ecx
call   1070 <check_uneven_dimer@plt>
test   %rax,%rax
je     1432 <main+0x2c2>
lea    0xd5a(%rip),%rdi
lea    0x150(%rsp),%rsi
jmp    1371 <main+0x201>
lea    0xd85(%rip),%rdi
call   1050 <puts@plt>
jmp    13ea <main+0x27a>
lea    0xd9d(%rip),%rdi
call   1050 <puts@plt>
mov    $0x1,%edi
call   1090 <exit@plt>

LLVM IR (-O0):
@.str = [91 x i8] c"\0AUsage: primer_compat forward_primer_1 reverse_primer_1 forward_primer_2 reverse_primer_2\0A\00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [52 x i8] c"\0Aprimer 1 fwd: %s\09rev: %s\0Aprimer 2 fwd: %s\09rev: %s\0A\00"
@.str.3 = [61 x i8] c"\0A\0Alen primer 1 fwd: %d\09rev: %d\0Alen primer 2 fwd: %d\09rev: %d\0A\00"
@.str.4 = [81 x i8] c"\0A\0Acomplement of primer 1 fwd: %s\09rev: %s\0Acomplement of primer 2 fwd: %s\09rev: %s\0A\00"
@.str.5 = [63 x i8] c"\0Aprimer 1 forward (%s) makes dimer with primer 2 forward (%s)\0A\00"
@.str.6 = [63 x i8] c"\0Aprimer 1 reverse (%s) makes dimer with primer 2 reverse (%s)\0A\00"
@.str.7 = [63 x i8] c"\0Aprimer 1 forward (%s) makes dimer with primer 2 reverse (%s)\0A\00"
@.str.8 = [63 x i8] c"\0Aprimer 1 reverse (%s) makes dimer with primer 2 forward (%s)\0A\00"
@.str.9 = [39 x i8] c"\0Aprimer pair 1 and 2 seem compatable.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [80 x i8]
%7 = alloca [80 x i8]
%8 = alloca [80 x i8]
%9 = alloca [80 x i8]
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca [80 x i8]
%16 = alloca [80 x i8]
%17 = alloca [80 x i8]
%18 = alloca [80 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%19 = load i32, i32* %4
%20 = icmp ne i32 %19, 5
br i1 %20, label %21, label %24
21: ; preds = %2
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str, i64 0, i64 0))
%23 = call i32 @exit(i32 1)
unreachable
24: ; preds = %2
%25 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%26 = load i8**, i8*** %5
%27 = getelementptr inbounds i8*, i8** %26, i64 1
%28 = load i8*, i8** %27
%29 = call i32 @sprintf(i8* %25, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %28)
%30 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 0
%31 = load i8**, i8*** %5
%32 = getelementptr inbounds i8*, i8** %31, i64 2
%33 = load i8*, i8** %32
%34 = call i32 @sprintf(i8* %30, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %33)
%35 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%36 = load i8**, i8*** %5
%37 = getelementptr inbounds i8*, i8** %36, i64 3
%38 = load i8*, i8** %37
%39 = call i32 @sprintf(i8* %35, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %38)
%40 = getelementptr inbounds [80 x i8], [80 x i8]* %9, i64 0, i64 0
%41 = load i8**, i8*** %5
%42 = getelementptr inbounds i8*, i8** %41, i64 4
%43 = load i8*, i8** %42
%44 = call i32 @sprintf(i8* %40, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %43)
%45 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%46 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 0
%47 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%48 = getelementptr inbounds [80 x i8], [80 x i8]* %9, i64 0, i64 0
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.2, i64 0, i64 0), i8* %45, i8* %46, i8* %47, i8* %48)
%50 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%51 = call i32 @strlen(i8* %50)
store i32 %51, i32* %11
%52 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 0
%53 = call i32 @strlen(i8* %52)
store i32 %53, i32* %12
%54 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%55 = call i32 @strlen(i8* %54)
store i32 %55, i32* %13
%56 = getelementptr inbounds [80 x i8], [80 x i8]* %9, i64 0, i64 0
%57 = call i32 @strlen(i8* %56)
store i32 %57, i32* %14
store i32 0, i32* %10
br label %58
58: ; preds = %74, %24
%59 = load i32, i32* %10
%60 = icmp slt i32 %59, 80
br i1 %60, label %61, label %77
61: ; preds = %58
%62 = load i32, i32* %10
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [80 x i8], [80 x i8]* %18, i64 0, i64 %63
store i8 0, i8* %64
%65 = load i32, i32* %10
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [80 x i8], [80 x i8]* %17, i64 0, i64 %66
store i8 0, i8* %67
%68 = load i32, i32* %10
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [80 x i8], [80 x i8]* %16, i64 0, i64 %69
store i8 0, i8* %70
%71 = load i32, i32* %10
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [80 x i8], [80 x i8]* %15, i64 0, i64 %72
store i8 0, i8* %73
br label %74
74: ; preds = %61
%75 = load i32, i32* %10
%76 = add nsw i32 %75, 1
store i32 %76, i32* %10
br label %58
77: ; preds = %58
%78 = load i32, i32* %11
%79 = load i32, i32* %12
%80 = load i32, i32* %13
%81 = load i32, i32* %14
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.3, i64 0, i64 0), i32 %78, i32 %79, i32 %80, i32 %81)
%83 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 0
%84 = getelementptr inbounds [80 x i8], [80 x i8]* %17, i64 0, i64 0
%85 = load i32, i32* %12
%86 = call i32 @reverse_string(i8* %83, i8* %84, i32 %85)
%87 = getelementptr inbounds [80 x i8], [80 x i8]* %9, i64 0, i64 0
%88 = getelementptr inbounds [80 x i8], [80 x i8]* %18, i64 0, i64 0
%89 = load i32, i32* %14
%90 = call i32 @reverse_string(i8* %87, i8* %88, i32 %89)
%91 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%92 = getelementptr inbounds [80 x i8], [80 x i8]* %15, i64 0, i64 0
%93 = load i32, i32* %11
%94 = call i32 @reverse_string(i8* %91, i8* %92, i32 %93)
%95 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%96 = getelementptr inbounds [80 x i8], [80 x i8]* %16, i64 0, i64 0
%97 = load i32, i32* %13
%98 = call i32 @reverse_string(i8* %95, i8* %96, i32 %97)
%99 = getelementptr inbounds [80 x i8], [80 x i8]* %15, i64 0, i64 0
%100 = getelementptr inbounds [80 x i8], [80 x i8]* %17, i64 0, i64 0
%101 = getelementptr inbounds [80 x i8], [80 x i8]* %16, i64 0, i64 0
%102 = getelementptr inbounds [80 x i8], [80 x i8]* %18, i64 0, i64 0
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.4, i64 0, i64 0), i8* %99, i8* %100, i8* %101, i8* %102)
%104 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%105 = getelementptr inbounds [80 x i8], [80 x i8]* %16, i64 0, i64 0
%106 = load i32, i32* %11
%107 = load i32, i32* %13
%108 = call i64 @check_uneven_dimer(i8* %104, i8* %105, i32 %106, i32 %107)
%109 = icmp ne i64 %108, 0
br i1 %109, label %110, label %114
110: ; preds = %77
%111 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%112 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%113 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.5, i64 0, i64 0), i8* %111, i8* %112)
br label %152
114: ; preds = %77
%115 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 0
%116 = getelementptr inbounds [80 x i8], [80 x i8]* %18, i64 0, i64 0
%117 = load i32, i32* %12
%118 = load i32, i32* %14
%119 = call i64 @check_uneven_dimer(i8* %115, i8* %116, i32 %117, i32 %118)
%120 = icmp ne i64 %119, 0
br i1 %120, label %121, label %125
121: ; preds = %114
%122 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 0
%123 = getelementptr inbounds [80 x i8], [80 x i8]* %9, i64 0, i64 0
%124 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.6, i64 0, i64 0), i8* %122, i8* %123)
br label %151
125: ; preds = %114
%126 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%127 = getelementptr inbounds [80 x i8], [80 x i8]* %18, i64 0, i64 0
%128 = load i32, i32* %11
%129 = load i32, i32* %14
%130 = call i64 @check_uneven_dimer(i8* %126, i8* %127, i32 %128, i32 %129)
%131 = icmp ne i64 %130, 0
br i1 %131, label %132, label %136
132: ; preds = %125
%133 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%134 = getelementptr inbounds [80 x i8], [80 x i8]* %9, i64 0, i64 0
%135 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.7, i64 0, i64 0), i8* %133, i8* %134)
br label %150
136: ; preds = %125
%137 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 0
%138 = getelementptr inbounds [80 x i8], [80 x i8]* %16, i64 0, i64 0
%139 = load i32, i32* %12
%140 = load i32, i32* %13
%141 = call i64 @check_uneven_dimer(i8* %137, i8* %138, i32 %139, i32 %140)
%142 = icmp ne i64 %141, 0
br i1 %142, label %143, label %147
143: ; preds = %136
%144 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 0
%145 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%146 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.8, i64 0, i64 0), i8* %144, i8* %145)
br label %149
147: ; preds = %136
%148 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.9, i64 0, i64 0))
br label %149
149: ; preds = %147, %143
br label %150
150: ; preds = %149, %132
br label %151
151: ; preds = %150, %121
br label %152
152: ; preds = %151, %110
%153 = load i32, i32* %3
ret i32 %153
}

LLVM IR (-O2):
@.str.2 = [52 x i8] c"\0Aprimer 1 fwd: %s\09rev: %s\0Aprimer 2 fwd: %s\09rev: %s\0A\00"
@.str.3 = [61 x i8] c"\0A\0Alen primer 1 fwd: %d\09rev: %d\0Alen primer 2 fwd: %d\09rev: %d\0A\00"
@.str.4 = [81 x i8] c"\0A\0Acomplement of primer 1 fwd: %s\09rev: %s\0Acomplement of primer 2 fwd: %s\09rev: %s\0A\00"
@.str.5 = [63 x i8] c"\0Aprimer 1 forward (%s) makes dimer with primer 2 forward (%s)\0A\00"
@.str.6 = [63 x i8] c"\0Aprimer 1 reverse (%s) makes dimer with primer 2 reverse (%s)\0A\00"
@.str.7 = [63 x i8] c"\0Aprimer 1 forward (%s) makes dimer with primer 2 reverse (%s)\0A\00"
@.str.8 = [63 x i8] c"\0Aprimer 1 reverse (%s) makes dimer with primer 2 forward (%s)\0A\00"
@str = [38 x i8] c"\0Aprimer pair 1 and 2 seem compatable.\00"
@str.10 = [90 x i8] c"\0AUsage: primer_compat forward_primer_1 reverse_primer_1 forward_primer_2 reverse_primer_2\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [80 x i8]
%4 = alloca [80 x i8]
%5 = alloca [80 x i8]
%6 = alloca [80 x i8]
%7 = alloca [80 x i8]
%8 = alloca [80 x i8]
%9 = alloca [80 x i8]
%10 = alloca [80 x i8]
%11 = getelementptr inbounds [80 x i8], [80 x i8]* %3, i64 0, i64 0
%12 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 0
%13 = getelementptr inbounds [80 x i8], [80 x i8]* %5, i64 0, i64 0
%14 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
%15 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%16 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 0
%17 = getelementptr inbounds [80 x i8], [80 x i8]* %9, i64 0, i64 0
%18 = getelementptr inbounds [80 x i8], [80 x i8]* %10, i64 0, i64 0
%19 = icmp eq i32 %0, 5
br i1 %19, label %23, label %20
20: ; preds = %2
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([90 x i8], [90 x i8]* @str.10, i64 0, i64 0))
%22 = tail call i32 @exit(i32 1)
unreachable
23: ; preds = %2
%24 = getelementptr inbounds [80 x i8], [80 x i8]* %10, i64 0, i64 0
%25 = getelementptr inbounds [80 x i8], [80 x i8]* %9, i64 0, i64 0
%26 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 0
%27 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
%28 = getelementptr inbounds i8*, i8** %1, i64 1
%29 = load i8*, i8** %28
%30 = call i8* @strcpy(i8* %11, i8* dereferenceable(1) %29)
%31 = getelementptr inbounds i8*, i8** %1, i64 2
%32 = load i8*, i8** %31
%33 = call i8* @strcpy(i8* %13, i8* dereferenceable(1) %32)
%34 = getelementptr inbounds i8*, i8** %1, i64 3
%35 = load i8*, i8** %34
%36 = call i8* @strcpy(i8* %12, i8* dereferenceable(1) %35)
%37 = getelementptr inbounds i8*, i8** %1, i64 4
%38 = load i8*, i8** %37
%39 = call i8* @strcpy(i8* %14, i8* dereferenceable(1) %38)
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @.str.2, i64 0, i64 0), i8* %11, i8* %13, i8* %12, i8* %14)
%41 = call i32 @strlen(i8* %11)
%42 = call i32 @strlen(i8* %13)
%43 = call i32 @strlen(i8* %12)
%44 = call i32 @strlen(i8* %14)
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @.str.3, i64 0, i64 0), i32 %41, i32 %42, i32 %43, i32 %44)
%46 = call i32 @reverse_string(i8* %13, i8* %17, i32 %42)
%47 = call i32 @reverse_string(i8* %14, i8* %18, i32 %44)
%48 = call i32 @reverse_string(i8* %11, i8* %15, i32 %41)
%49 = call i32 @reverse_string(i8* %12, i8* %16, i32 %43)
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @.str.4, i64 0, i64 0), i8* %15, i8* %17, i8* %16, i8* %18)
%51 = call i64 @check_uneven_dimer(i8* %11, i8* %16, i32 %41, i32 %43)
%52 = icmp eq i64 %51, 0
br i1 %52, label %55, label %53
53: ; preds = %23
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @.str.5, i64 0, i64 0), i8* %11, i8* %12)
br label %72
55: ; preds = %23
%56 = call i64 @check_uneven_dimer(i8* %13, i8* %18, i32 %42, i32 %44)
%57 = icmp eq i64 %56, 0
br i1 %57, label %60, label %58
58: ; preds = %55
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @.str.6, i64 0, i64 0), i8* %13, i8* %14)
br label %72
60: ; preds = %55
%61 = call i64 @check_uneven_dimer(i8* %11, i8* %18, i32 %41, i32 %44)
%62 = icmp eq i64 %61, 0
br i1 %62, label %65, label %63
63: ; preds = %60
%64 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @.str.7, i64 0, i64 0), i8* %11, i8* %14)
br label %72
65: ; preds = %60
%66 = call i64 @check_uneven_dimer(i8* %13, i8* %16, i32 %42, i32 %43)
%67 = icmp eq i64 %66, 0
br i1 %67, label %70, label %68
68: ; preds = %65
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @.str.8, i64 0, i64 0), i8* %13, i8* %12)
br label %72
70: ; preds = %65
%71 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str, i64 0, i64 0))
br label %72
72: ; preds = %58, %68, %70, %63, %53
ret i32 0
}