#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 EOF;
int getopt(int, char **, char *);
int nwalign(char *, char *, char *, char *, char *);
int /*<<< orphan*/ optarg;
int /*<<< orphan*/ print_align(char *, char *, char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ readseq(char *, char *);
int /*<<< orphan*/ strcpy(char *, int /*<<< orphan*/);
int /*<<< orphan*/ upper(char *);
int /*<<< orphan*/ usage();
int main(int argc, char *argv[]) {
  char seq1[100];
  char seq2[100];
  char bts1[100];
  char bts2[100];
  char aln[100];
  int nwas;
  int c;
  char infile1[256];
  char infile2[256];
  int format;
  while ((c = getopt(argc, argv, "ha:b:i:j:srf")) != EOF)
    switch (c) {
    case 'h':
      usage();
      break;
    case 'a':
      strcpy(seq1, optarg);
      break;
    case 'b':
      strcpy(seq2, optarg);
      break;
    case 'i':
      strcpy(infile1, optarg);
      break;
    case 'j':
      strcpy(infile2, optarg);
      break;
    case 's':
      format = 1;
      break;
    case 'r':
      format = 2;
      break;
    case 'f':
      format = 3;
      break;
    }
  if (argc == 1) {
    usage();
  }
  if ((infile1[0] != '\0') && (infile2[0] != '\0')) {
    readseq(infile1, seq1);
    readseq(infile2, seq2);
  }
  if ((seq1[0] == '\0') || (seq2[0] == '\0')) {
    printf("Error: insufficent input sequences found!\n");
    usage();
  }
  upper(seq1);
  upper(seq2);
  nwas = nwalign(seq1, seq2, bts1, bts2, aln);
  if (format == 1) {
    printf("%d", nwas);
  } else if (format == 2) {
    printf("%d\n", nwas);
    puts(bts1);
    puts(aln);
    puts(bts2);
  } else if (format == 3) {
    printf("Needleman-Wunsch Alignment:\n\n");
    printf("Score:\t%d\n\n", nwas);
    print_align(bts1, bts2, aln);
  } else {
    printf("Unknown output format!\n\n");
    usage();
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x460,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xe95(%rip),%rdx
call   10a0 <getopt@plt>
mov    %eax,-0x248(%rbp)
mov    0x2e17(%rip),%rcx
cmp    (%rcx),%eax
je     12a1 <main+0x111>
mov    -0x248(%rbp),%eax
add    $0xffffff9f,%eax
mov    %eax,%ecx
mov    %rcx,-0x460(%rbp)
sub    $0x12,%eax
ja     129c <main+0x10c>
mov    -0x460(%rbp),%rax
lea    0xe06(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    $0x0,%al
call   1090 <usage@plt>
jmp    129c <main+0x10c>
lea    -0x80(%rbp),%rdi
mov    0x2dde(%rip),%rax
mov    (%rax),%esi
call   1030 <strcpy@plt>
jmp    129c <main+0x10c>
lea    -0xf0(%rbp),%rdi
mov    0x2dc4(%rip),%rax
mov    (%rax),%esi
call   1030 <strcpy@plt>
jmp    129c <main+0x10c>
lea    -0x350(%rbp),%rdi
mov    0x2daa(%rip),%rax
mov    (%rax),%esi
call   1030 <strcpy@plt>
jmp    129c <main+0x10c>
lea    -0x450(%rbp),%rdi
mov    0x2d90(%rip),%rax
mov    (%rax),%esi
call   1030 <strcpy@plt>
jmp    129c <main+0x10c>
movl   $0x1,-0x454(%rbp)
jmp    129c <main+0x10c>
movl   $0x2,-0x454(%rbp)
jmp    129c <main+0x10c>
movl   $0x3,-0x454(%rbp)
jmp    11a9 <main+0x19>
cmpl   $0x1,-0x8(%rbp)
jne    12b2 <main+0x122>
mov    $0x0,%al
call   1090 <usage@plt>
movsbl -0x350(%rbp),%eax
cmp    $0x0,%eax
je     12f5 <main+0x165>
movsbl -0x450(%rbp),%eax
cmp    $0x0,%eax
je     12f5 <main+0x165>
lea    -0x350(%rbp),%rdi
lea    -0x80(%rbp),%rsi
call   1060 <readseq@plt>
lea    -0x450(%rbp),%rdi
lea    -0xf0(%rbp),%rsi
call   1060 <readseq@plt>
movsbl -0x80(%rbp),%eax
cmp    $0x0,%eax
je     1312 <main+0x182>
movsbl -0xf0(%rbp),%eax
cmp    $0x0,%eax
jne    1327 <main+0x197>
lea    0xd40(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1090 <usage@plt>
lea    -0x80(%rbp),%rdi
call   1080 <upper@plt>
lea    -0xf0(%rbp),%rdi
call   1080 <upper@plt>
lea    -0x80(%rbp),%rdi
lea    -0xf0(%rbp),%rsi
lea    -0x160(%rbp),%rdx
lea    -0x1d0(%rbp),%rcx
lea    -0x240(%rbp),%r8
call   10b0 <nwalign@plt>
mov    %eax,-0x244(%rbp)
cmpl   $0x1,-0x454(%rbp)
jne    138d <main+0x1fd>
mov    -0x244(%rbp),%esi
lea    0xd03(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1444 <main+0x2b4>
cmpl   $0x2,-0x454(%rbp)
jne    13d7 <main+0x247>
mov    -0x244(%rbp),%esi
lea    0xce0(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x160(%rbp),%rdi
call   1040 <puts@plt>
lea    -0x240(%rbp),%rdi
call   1040 <puts@plt>
lea    -0x1d0(%rbp),%rdi
call   1040 <puts@plt>
jmp    143f <main+0x2af>
cmpl   $0x3,-0x454(%rbp)
jne    1425 <main+0x295>
lea    0xca0(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x244(%rbp),%esi
lea    0xcaa(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x160(%rbp),%rdi
lea    -0x1d0(%rbp),%rsi
lea    -0x240(%rbp),%rdx
call   1070 <print_align@plt>
jmp    143a <main+0x2aa>
lea    0xc89(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1090 <usage@plt>
jmp    143f <main+0x2af>
jmp    1444 <main+0x2b4>
mov    -0x4(%rbp),%eax
add    $0x460,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x438,%rsp
mov    %rsi,%r14
mov    %edi,%ebx
lea    0xe9f(%rip),%rdx
call   10a0 <getopt@plt>
mov    0x2e27(%rip),%rbp
cmp    0x0(%rbp),%eax
jne    1294 <main+0x104>
cmp    $0x1,%ebx
jne    11ce <main+0x3e>
xor    %eax,%eax
call   1090 <usage@plt>
cmpb   $0x0,0x330(%rsp)
je     1204 <main+0x74>
cmpb   $0x0,0x230(%rsp)
je     1204 <main+0x74>
lea    0x330(%rsp),%rdi
lea    0x70(%rsp),%rsi
call   1060 <readseq@plt>
lea    0x230(%rsp),%rdi
mov    %rsp,%rsi
call   1060 <readseq@plt>
cmpb   $0x0,0x70(%rsp)
je     1211 <main+0x81>
cmpb   $0x0,(%rsp)
jne    1224 <main+0x94>
lea    0xe89(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1090 <usage@plt>
lea    0x70(%rsp),%rbx
mov    %rbx,%rdi
call   1080 <upper@plt>
mov    %rsp,%rbp
mov    %rbp,%rdi
call   1080 <upper@plt>
lea    0x1c0(%rsp),%rdx
lea    0x150(%rsp),%rcx
lea    0xe0(%rsp),%r8
mov    %rbx,%rdi
mov    %rbp,%rsi
call   10b0 <nwalign@plt>
mov    %eax,%ebx
cmp    $0x3,%r13d
je     1351 <main+0x1c1>
cmp    $0x2,%r13d
je     138c <main+0x1fc>
cmp    $0x1,%r13d
jne    13c5 <main+0x235>
lea    0xdd3(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    13d8 <main+0x248>
lea    0xdb1(%rip),%r15
lea    0xd5e(%rip),%r12
jmp    12c6 <main+0x136>
mov    $0x3,%r13d
nopw   0x0(%rax,%rax,1)
mov    %ebx,%edi
mov    %r14,%rsi
mov    %r15,%rdx
call   10a0 <getopt@plt>
cmp    0x0(%rbp),%eax
je     11c2 <main+0x32>
add    $0xffffff9f,%eax
cmp    $0x12,%eax
ja     12b0 <main+0x120>
movslq (%r12,%rax,4),%rax
add    %r12,%rax
jmp    *%rax
mov    0x2d1a(%rip),%rax
mov    (%rax),%esi
lea    0x70(%rsp),%rdi
call   1030 <strcpy@plt>
jmp    12b0 <main+0x120>
mov    0x2d05(%rip),%rax
mov    (%rax),%esi
mov    %rsp,%rdi
call   1030 <strcpy@plt>
jmp    12b0 <main+0x120>
xor    %eax,%eax
call   1090 <usage@plt>
jmp    12b0 <main+0x120>
mov    0x2ce9(%rip),%rax
mov    (%rax),%esi
lea    0x330(%rsp),%rdi
call   1030 <strcpy@plt>
jmp    12b0 <main+0x120>
mov    0x2cd1(%rip),%rax
mov    (%rax),%esi
lea    0x230(%rsp),%rdi
call   1030 <strcpy@plt>
jmp    12b0 <main+0x120>
mov    $0x2,%r13d
jmp    12b0 <main+0x120>
mov    $0x1,%r13d
jmp    12b0 <main+0x120>
lea    0xd2c(%rip),%rdi
call   1040 <puts@plt>
lea    0xcfc(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x1c0(%rsp),%rdi
lea    0x150(%rsp),%rsi
lea    0xe0(%rsp),%rdx
call   1070 <print_align@plt>
jmp    13d8 <main+0x248>
lea    0xcc9(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x1c0(%rsp),%rdi
call   1040 <puts@plt>
lea    0xe0(%rsp),%rdi
call   1040 <puts@plt>
lea    0x150(%rsp),%rdi
call   1040 <puts@plt>
jmp    13d8 <main+0x248>
lea    0xca0(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1090 <usage@plt>
xor    %eax,%eax
add    $0x438,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [13 x i8] c"ha:b:i:j:srf\00"
@EOF = global i32 0
@optarg = global i32 0
@.str.1 = [43 x i8] c"Error: insufficent input sequences found!\0A\00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [4 x i8] c"%d\0A\00"
@.str.4 = [30 x i8] c"Needleman-Wunsch Alignment:\0A\0A\00"
@.str.5 = [12 x i8] c"Score:\09%d\0A\0A\00"
@.str.6 = [25 x i8] c"Unknown output format!\0A\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [100 x i8]
%7 = alloca [100 x i8]
%8 = alloca [100 x i8]
%9 = alloca [100 x i8]
%10 = alloca [100 x i8]
%11 = alloca i32
%12 = alloca i32
%13 = alloca [256 x i8]
%14 = alloca [256 x i8]
%15 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
br label %16
16: ; preds = %45, %2
%17 = load i32, i32* %4
%18 = load i8**, i8*** %5
%19 = call i32 @getopt(i32 %17, i8** %18, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
store i32 %19, i32* %12
%20 = load i32, i32* @EOF
%21 = icmp ne i32 %19, %20
br i1 %21, label %22, label %46
22: ; preds = %16
%23 = load i32, i32* %12
switch i32 %23, label %45 [
i32 104, label %24
i32 97, label %26
i32 98, label %30
i32 105, label %34
i32 106, label %38
i32 115, label %42
i32 114, label %43
i32 102, label %44
]
24: ; preds = %22
%25 = call i32 (...) @usage()
br label %45
26: ; preds = %22
%27 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%28 = load i32, i32* @optarg
%29 = call i32 @strcpy(i8* %27, i32 %28)
br label %45
30: ; preds = %22
%31 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 0
%32 = load i32, i32* @optarg
%33 = call i32 @strcpy(i8* %31, i32 %32)
br label %45
34: ; preds = %22
%35 = getelementptr inbounds [256 x i8], [256 x i8]* %13, i64 0, i64 0
%36 = load i32, i32* @optarg
%37 = call i32 @strcpy(i8* %35, i32 %36)
br label %45
38: ; preds = %22
%39 = getelementptr inbounds [256 x i8], [256 x i8]* %14, i64 0, i64 0
%40 = load i32, i32* @optarg
%41 = call i32 @strcpy(i8* %39, i32 %40)
br label %45
42: ; preds = %22
store i32 1, i32* %15
br label %45
43: ; preds = %22
store i32 2, i32* %15
br label %45
44: ; preds = %22
store i32 3, i32* %15
br label %45
45: ; preds = %22, %44, %43, %42, %38, %34, %30, %26, %24
br label %16
46: ; preds = %16
%47 = load i32, i32* %4
%48 = icmp eq i32 %47, 1
br i1 %48, label %49, label %51
49: ; preds = %46
%50 = call i32 (...) @usage()
br label %51
51: ; preds = %49, %46
%52 = getelementptr inbounds [256 x i8], [256 x i8]* %13, i64 0, i64 0
%53 = load i8, i8* %52
%54 = sext i8 %53 to i32
%55 = icmp ne i32 %54, 0
br i1 %55, label %56, label %68
56: ; preds = %51
%57 = getelementptr inbounds [256 x i8], [256 x i8]* %14, i64 0, i64 0
%58 = load i8, i8* %57
%59 = sext i8 %58 to i32
%60 = icmp ne i32 %59, 0
br i1 %60, label %61, label %68
61: ; preds = %56
%62 = getelementptr inbounds [256 x i8], [256 x i8]* %13, i64 0, i64 0
%63 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%64 = call i32 @readseq(i8* %62, i8* %63)
%65 = getelementptr inbounds [256 x i8], [256 x i8]* %14, i64 0, i64 0
%66 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 0
%67 = call i32 @readseq(i8* %65, i8* %66)
br label %68
68: ; preds = %61, %56, %51
%69 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%70 = load i8, i8* %69
%71 = sext i8 %70 to i32
%72 = icmp eq i32 %71, 0
br i1 %72, label %78, label %73
73: ; preds = %68
%74 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 0
%75 = load i8, i8* %74
%76 = sext i8 %75 to i32
%77 = icmp eq i32 %76, 0
br i1 %77, label %78, label %81
78: ; preds = %73, %68
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.1, i64 0, i64 0))
%80 = call i32 (...) @usage()
br label %81
81: ; preds = %78, %73
%82 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%83 = call i32 @upper(i8* %82)
%84 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 0
%85 = call i32 @upper(i8* %84)
%86 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%87 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 0
%88 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 0
%89 = getelementptr inbounds [100 x i8], [100 x i8]* %9, i64 0, i64 0
%90 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 0
%91 = call i32 @nwalign(i8* %86, i8* %87, i8* %88, i8* %89, i8* %90)
store i32 %91, i32* %11
%92 = load i32, i32* %15
%93 = icmp eq i32 %92, 1
br i1 %93, label %94, label %97
94: ; preds = %81
%95 = load i32, i32* %11
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %95)
br label %125
97: ; preds = %81
%98 = load i32, i32* %15
%99 = icmp eq i32 %98, 2
br i1 %99, label %100, label %109
100: ; preds = %97
%101 = load i32, i32* %11
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %101)
%103 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 0
%104 = call i32 @puts(i8* %103)
%105 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 0
%106 = call i32 @puts(i8* %105)
%107 = getelementptr inbounds [100 x i8], [100 x i8]* %9, i64 0, i64 0
%108 = call i32 @puts(i8* %107)
br label %124
109: ; preds = %97
%110 = load i32, i32* %15
%111 = icmp eq i32 %110, 3
br i1 %111, label %112, label %120
112: ; preds = %109
%113 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0))
%114 = load i32, i32* %11
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i32 %114)
%116 = getelementptr inbounds [100 x i8], [100 x i8]* %8, i64 0, i64 0
%117 = getelementptr inbounds [100 x i8], [100 x i8]* %9, i64 0, i64 0
%118 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 0
%119 = call i32 @print_align(i8* %116, i8* %117, i8* %118)
br label %123
120: ; preds = %109
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
%122 = call i32 (...) @usage()
br label %123
123: ; preds = %120, %112
br label %124
124: ; preds = %123, %100
br label %125
125: ; preds = %124, %94
%126 = load i32, i32* %3
ret i32 %126
}

LLVM IR (-O2):
@.str = [13 x i8] c"ha:b:i:j:srf\00"
@EOF = global i32 0
@optarg = global i32 0
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [4 x i8] c"%d\0A\00"
@.str.5 = [12 x i8] c"Score:\09%d\0A\0A\00"
@str = [24 x i8] c"Unknown output format!\0A\00"
@str.7 = [29 x i8] c"Needleman-Wunsch Alignment:\0A\00"
@str.8 = [42 x i8] c"Error: insufficent input sequences found!\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca [100 x i8]
%4 = alloca [100 x i8]
%5 = alloca [100 x i8]
%6 = alloca [100 x i8]
%7 = alloca [100 x i8]
%8 = alloca [256 x i8]
%9 = alloca [256 x i8]
%10 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%11 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%12 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%13 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
%14 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 0
%15 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%16 = getelementptr inbounds [256 x i8], [256 x i8]* %9, i64 0, i64 0
%17 = call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%18 = load i32, i32* @EOF
%19 = icmp eq i32 %17, %18
br i1 %19, label %45, label %20
20: ; preds = %2, %40
%21 = phi i32 [ %42, %40 ], [ %17, %2 ]
%22 = phi i32 [ %41, %40 ], [ undef, %2 ]
switch i32 %21, label %40 [
i32 104, label %23
i32 97, label %25
i32 98, label %28
i32 105, label %31
i32 106, label %34
i32 115, label %37
i32 114, label %38
i32 102, label %39
]
23: ; preds = %20
%24 = call i32 (...) @usage()
br label %40
25: ; preds = %20
%26 = load i32, i32* @optarg
%27 = call i32 @strcpy(i8* %10, i32 %26)
br label %40
28: ; preds = %20
%29 = load i32, i32* @optarg
%30 = call i32 @strcpy(i8* %11, i32 %29)
br label %40
31: ; preds = %20
%32 = load i32, i32* @optarg
%33 = call i32 @strcpy(i8* %15, i32 %32)
br label %40
34: ; preds = %20
%35 = load i32, i32* @optarg
%36 = call i32 @strcpy(i8* %16, i32 %35)
br label %40
37: ; preds = %20
br label %40
38: ; preds = %20
br label %40
39: ; preds = %20
br label %40
40: ; preds = %20, %39, %38, %37, %34, %31, %28, %25, %23
%41 = phi i32 [ %22, %20 ], [ 3, %39 ], [ 2, %38 ], [ 1, %37 ], [ %22, %34 ], [ %22, %31 ], [ %22, %28 ], [ %22, %25 ], [ %22, %23 ]
%42 = call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%43 = load i32, i32* @EOF
%44 = icmp eq i32 %42, %43
br i1 %44, label %45, label %20
45: ; preds = %40, %2
%46 = phi i32 [ undef, %2 ], [ %41, %40 ]
%47 = icmp eq i32 %0, 1
br i1 %47, label %48, label %50
48: ; preds = %45
%49 = call i32 (...) @usage()
br label %50
50: ; preds = %48, %45
%51 = load i8, i8* %15
%52 = icmp ne i8 %51, 0
%53 = load i8, i8* %16
%54 = icmp ne i8 %53, 0
%55 = select i1 %52, i1 %54, i1 false
br i1 %55, label %56, label %59
56: ; preds = %50
%57 = call i32 @readseq(i8* %15, i8* %10)
%58 = call i32 @readseq(i8* %16, i8* %11)
br label %59
59: ; preds = %56, %50
%60 = load i8, i8* %10
%61 = icmp eq i8 %60, 0
%62 = load i8, i8* %11
%63 = icmp eq i8 %62, 0
%64 = select i1 %61, i1 true, i1 %63
br i1 %64, label %65, label %68
65: ; preds = %59
%66 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.8, i64 0, i64 0))
%67 = call i32 (...) @usage()
br label %68
68: ; preds = %59, %65
%69 = call i32 @upper(i8* %10)
%70 = call i32 @upper(i8* %11)
%71 = call i32 @nwalign(i8* %10, i8* %11, i8* %12, i8* %13, i8* %14)
switch i32 %46, label %83 [
i32 1, label %72
i32 2, label %74
i32 3, label %79
]
72: ; preds = %68
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %71)
br label %86
74: ; preds = %68
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %71)
%76 = call i32 @puts(i8* %12)
%77 = call i32 @puts(i8* %14)
%78 = call i32 @puts(i8* %13)
br label %86
79: ; preds = %68
%80 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.7, i64 0, i64 0))
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i32 %71)
%82 = call i32 @print_align(i8* %12, i8* %13, i8* %14)
br label %86
83: ; preds = %68
%84 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str, i64 0, i64 0))
%85 = call i32 (...) @usage()
br label %86
86: ; preds = %74, %83, %79, %72
ret i32 0
}