#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, int *, int *, int *,
                          int *);
char *getenv(char *);
int /*<<< orphan*/ hits(int *, int *, int *, int *);
int /*<<< orphan*/ pclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *popen(char *, char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ sprintf(char *, char *, char *, ...);
int /*<<< orphan*/ stderr;
scalar_t__ system(char *);
int main(int argc, char *argv[]) {
  if (argc < 3) {
    fprintf(stderr, "\n[ERROR]: No input provided. Please provide the "
                    "reference file followed by the query file\n\n.");
    printf("\nThis program is designed to help outmated BLAST execution of "
           "query sequences.\n");
    printf("\nSpecifically, it's intended for use with deletion mutants. This "
           "program will help you find whether your deletion fragment is "
           "present in your mutant candidate sequence.\n");
    printf("\nExecution Example:\n$ muta organism_sequence.fasta "
           "mutant_sequence.fasta\n\n");
    return 0;
  }
  char BLAST[250];
  char *pwd;
  char *outfmt;
  char blastout[50];
  pwd = getenv("PWD");
  outfmt = "\"6 qseqid sseqid pident sstart send length qlen evalue\"";
  sprintf(blastout, "%s.blastout", argv[2]);
  sprintf(BLAST, "blastn -db %s -query %s -outfmt %s -out %s", argv[1], argv[2],
          outfmt, blastout);
  system(BLAST);
  if (system(BLAST) == 0) {
    printf("\n");
    printf("\n**********************************************************\n");
    printf("* BLAST was successful!\n");
    printf("* Output file < %s > created", blastout);
    printf("\n**********************************************************\n");
    printf("\n");
    printf("These are the BLAST hits for your sequence...\n\n");
    FILE *blastf;
    int a, b, c, d;
    char CUT[150];
    sprintf(CUT, "for i in 4 5; do cut -f$i %s ;done", blastout);
    system(CUT);
    blastf = popen(CUT, "r");
    if (blastf == NULL) {
      printf("Could not open/find BLAST output file %s", blastout);
      return 0;
    }
    fscanf(blastf, "%d %d %d %d", &a, &c, &b, &d);
    pclose(blastf);
    hits(&a, &b, &c, &d);
  } else {
    printf("\n\n**********************************************************\n");
    printf("* Sorry, BLAST was UNSUCCESSFUL :( \n");
    printf("* Please re-run program");
    printf("\n**********************************************************\n\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x210,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x3,-0x8(%rbp)
jge    11fe <main+0x6e>
mov    0x2e26(%rip),%rax
mov    (%rax),%edi
lea    0xe3d(%rip),%rsi
call   1080 <fprintf@plt>
lea    0xe8e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xed0(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xf6c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    140b <main+0x27b>
lea    0xf9d(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x118(%rbp)
lea    0xf8e(%rip),%rax
mov    %rax,-0x120(%rbp)
lea    -0x160(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdx
lea    0xfa9(%rip),%rsi
mov    $0x0,%al
call   10b0 <sprintf@plt>
lea    -0x110(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rcx
mov    -0x120(%rbp),%r8
lea    -0x160(%rbp),%r9
lea    0xf82(%rip),%rsi
mov    $0x0,%al
call   10b0 <sprintf@plt>
lea    -0x110(%rbp),%rdi
call   1040 <system@plt>
lea    -0x110(%rbp),%rdi
call   1040 <system@plt>
cmp    $0x0,%rax
jne    13cc <main+0x23c>
lea    0x10f4(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0x1030(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xf61(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x160(%rbp),%rsi
lea    0xf65(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xfff(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0x10a7(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xf58(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x210(%rbp),%rdi
lea    -0x160(%rbp),%rdx
lea    0xf6c(%rip),%rsi
mov    $0x0,%al
call   10b0 <sprintf@plt>
lea    -0x210(%rbp),%rdi
call   1040 <system@plt>
lea    -0x210(%rbp),%rdi
lea    0xf6e(%rip),%rsi
call   10a0 <popen@plt>
mov    %rax,-0x168(%rbp)
cmpq   $0x0,-0x168(%rbp)
jne    136b <main+0x1db>
lea    -0x160(%rbp),%rsi
lea    0xf48(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    140b <main+0x27b>
mov    -0x168(%rbp),%rdi
lea    0xf50(%rip),%rsi
lea    -0x16c(%rbp),%rdx
lea    -0x174(%rbp),%rcx
lea    -0x170(%rbp),%r8
lea    -0x178(%rbp),%r9
call   1070 <fscanf@plt>
mov    -0x168(%rbp),%rdi
call   1060 <pclose@plt>
lea    -0x16c(%rbp),%rdi
lea    -0x170(%rbp),%rsi
lea    -0x174(%rbp),%rdx
lea    -0x178(%rbp),%rcx
call   1090 <hits@plt>
jmp    1404 <main+0x274>
lea    0xf02(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xf32(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xf49(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xf53(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x210,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1f0,%rsp
cmp    $0x2,%edi
jg     11fe <main+0x4e>
mov    0x2e14(%rip),%rax
mov    (%rax),%edi
lea    0xe2b(%rip),%rsi
call   10a0 <fprintf@plt>
lea    0x1063(%rip),%rdi
call   1050 <puts@plt>
lea    0x10a6(%rip),%rdi
call   1050 <puts@plt>
lea    0x1143(%rip),%rdi
jmp    1294 <main+0xe4>
mov    %rsi,%rbx
lea    0xe55(%rip),%rdi
call   1030 <getenv@plt>
mov    0x10(%rbx),%rdx
lea    0xe81(%rip),%rsi
lea    0x10(%rsp),%r14
mov    %r14,%rdi
xor    %eax,%eax
call   10d0 <sprintf@plt>
mov    0x8(%rbx),%rdx
mov    0x10(%rbx),%rcx
lea    0xe6f(%rip),%rsi
lea    0xe24(%rip),%r8
lea    0xf0(%rsp),%rbx
mov    %rbx,%rdi
mov    %r14,%r9
xor    %eax,%eax
call   10d0 <sprintf@plt>
mov    %rbx,%rdi
call   1060 <system@plt>
mov    %rbx,%rdi
call   1060 <system@plt>
test   %rax,%rax
je     12ac <main+0xfc>
lea    0xef1(%rip),%rdi
call   1050 <puts@plt>
lea    0xf22(%rip),%rdi
call   1050 <puts@plt>
lea    0xec1(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0xf2c(%rip),%rdi
call   1050 <puts@plt>
xor    %eax,%eax
add    $0x1f0,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret
mov    $0xa,%edi
call   1040 <putchar@plt>
lea    0xea3(%rip),%rbx
mov    %rbx,%rdi
call   1050 <puts@plt>
lea    0xf31(%rip),%rdi
call   1050 <puts@plt>
lea    0xdf8(%rip),%rdi
lea    0x10(%rsp),%r14
mov    %r14,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
mov    %rbx,%rdi
call   1050 <puts@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
lea    0xf15(%rip),%rdi
call   1050 <puts@plt>
lea    0xde1(%rip),%rsi
lea    0x50(%rsp),%rbx
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   10d0 <sprintf@plt>
mov    %rbx,%rdi
call   1060 <system@plt>
lea    0xde3(%rip),%rsi
mov    %rbx,%rdi
call   10c0 <popen@plt>
test   %rax,%rax
je     1388 <main+0x1d8>
mov    %rax,%rbx
lea    0xdf7(%rip),%rsi
lea    0xc(%rsp),%r14
lea    0x4(%rsp),%r15
lea    0x8(%rsp),%r12
mov    %rsp,%r13
mov    %rax,%rdi
mov    %r14,%rdx
mov    %r15,%rcx
mov    %r12,%r8
mov    %r13,%r9
call   1090 <fscanf@plt>
mov    %rbx,%rdi
call   1080 <pclose@plt>
mov    %r14,%rdi
mov    %r12,%rsi
mov    %r15,%rdx
mov    %r13,%rcx
call   10b0 <hits@plt>
jmp    1299 <main+0xe9>
lea    0xd83(%rip),%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   1070 <printf@plt>
jmp    1299 <main+0xe9>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [93 x i8] c"\0A[ERROR]: No input provided. Please provide the reference file followed by the query file\0A\0A.\00"
@.str.1 = [80 x i8] c"\0AThis program is designed to help outmated BLAST execution of query sequences.\0A\00"
@.str.2 = [170 x i8] c"\0ASpecifically, it's intended for use with deletion mutants. This program will help you find whether your deletion fragment is present in your mutant candidate sequence.\0A\00"
@.str.3 = [75 x i8] c"\0AExecution Example:\0A$ muta organism_sequence.fasta mutant_sequence.fasta\0A\0A\00"
@.str.4 = [4 x i8] c"PWD\00"
@.str.5 = [56 x i8] c"\226 qseqid sseqid pident sstart send length qlen evalue\22\00"
@.str.6 = [12 x i8] c"%s.blastout\00"
@.str.7 = [43 x i8] c"blastn -db %s -query %s -outfmt %s -out %s\00"
@.str.8 = [2 x i8] c"\0A\00"
@.str.9 = [61 x i8] c"\0A**********************************************************\0A\00"
@.str.10 = [25 x i8] c"* BLAST was successful!\0A\00"
@.str.11 = [29 x i8] c"* Output file < %s > created\00"
@.str.12 = [48 x i8] c"These are the BLAST hits for your sequence...\0A\0A\00"
@.str.13 = [35 x i8] c"for i in 4 5; do cut -f$i %s ;done\00"
@.str.14 = [2 x i8] c"r\00"
@.str.15 = [41 x i8] c"Could not open/find BLAST output file %s\00"
@.str.16 = [12 x i8] c"%d %d %d %d\00"
@.str.17 = [62 x i8] c"\0A\0A**********************************************************\0A\00"
@.str.18 = [37 x i8] c"* Sorry, BLAST was UNSUCCESSFUL :( \0A\00"
@.str.19 = [24 x i8] c"* Please re-run program\00"
@.str.20 = [62 x i8] c"\0A**********************************************************\0A\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [250 x i8]
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca [50 x i8]
%10 = alloca i32*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca [150 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%16 = load i32, i32* %4
%17 = icmp slt i32 %16, 3
br i1 %17, label %18, label %24
18: ; preds = %2
%19 = load i32, i32* @stderr
%20 = call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([93 x i8], [93 x i8]* @.str, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.1, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([170 x i8], [170 x i8]* @.str.2, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %3
br label %79
24: ; preds = %2
%25 = call i8* @getenv(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
store i8* %25, i8** %7
store i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.5, i64 0, i64 0), i8** %8
%26 = getelementptr inbounds [50 x i8], [50 x i8]* %9, i64 0, i64 0
%27 = load i8**, i8*** %5
%28 = getelementptr inbounds i8*, i8** %27, i64 2
%29 = load i8*, i8** %28
%30 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %26, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i8* %29)
%31 = getelementptr inbounds [250 x i8], [250 x i8]* %6, i64 0, i64 0
%32 = load i8**, i8*** %5
%33 = getelementptr inbounds i8*, i8** %32, i64 1
%34 = load i8*, i8** %33
%35 = load i8**, i8*** %5
%36 = getelementptr inbounds i8*, i8** %35, i64 2
%37 = load i8*, i8** %36
%38 = load i8*, i8** %8
%39 = getelementptr inbounds [50 x i8], [50 x i8]* %9, i64 0, i64 0
%40 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %31, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.7, i64 0, i64 0), i8* %34, i8* %37, i8* %38, i8* %39)
%41 = getelementptr inbounds [250 x i8], [250 x i8]* %6, i64 0, i64 0
%42 = call i64 @system(i8* %41)
%43 = getelementptr inbounds [250 x i8], [250 x i8]* %6, i64 0, i64 0
%44 = call i64 @system(i8* %43)
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %73
46: ; preds = %24
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.9, i64 0, i64 0))
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.10, i64 0, i64 0))
%50 = getelementptr inbounds [50 x i8], [50 x i8]* %9, i64 0, i64 0
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.11, i64 0, i64 0), i8* %50)
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.9, i64 0, i64 0))
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.12, i64 0, i64 0))
%55 = getelementptr inbounds [150 x i8], [150 x i8]* %15, i64 0, i64 0
%56 = getelementptr inbounds [50 x i8], [50 x i8]* %9, i64 0, i64 0
%57 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %55, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.13, i64 0, i64 0), i8* %56)
%58 = getelementptr inbounds [150 x i8], [150 x i8]* %15, i64 0, i64 0
%59 = call i64 @system(i8* %58)
%60 = getelementptr inbounds [150 x i8], [150 x i8]* %15, i64 0, i64 0
%61 = call i32* @popen(i8* %60, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
store i32* %61, i32** %10
%62 = load i32*, i32** %10
%63 = icmp eq i32* %62, null
br i1 %63, label %64, label %67
64: ; preds = %46
%65 = getelementptr inbounds [50 x i8], [50 x i8]* %9, i64 0, i64 0
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.15, i64 0, i64 0), i8* %65)
store i32 0, i32* %3
br label %79
67: ; preds = %46
%68 = load i32*, i32** %10
%69 = call i32 @fscanf(i32* %68, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.16, i64 0, i64 0), i32* %11, i32* %13, i32* %12, i32* %14)
%70 = load i32*, i32** %10
%71 = call i32 @pclose(i32* %70)
%72 = call i32 @hits(i32* %11, i32* %12, i32* %13, i32* %14)
br label %78
73: ; preds = %24
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.17, i64 0, i64 0))
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.18, i64 0, i64 0))
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.19, i64 0, i64 0))
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.20, i64 0, i64 0))
br label %78
78: ; preds = %73, %67
store i32 0, i32* %3
br label %79
79: ; preds = %78, %64, %18
%80 = load i32, i32* %3
ret i32 %80
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [93 x i8] c"\0A[ERROR]: No input provided. Please provide the reference file followed by the query file\0A\0A.\00"
@.str.4 = [4 x i8] c"PWD\00"
@.str.5 = [56 x i8] c"\226 qseqid sseqid pident sstart send length qlen evalue\22\00"
@.str.6 = [12 x i8] c"%s.blastout\00"
@.str.7 = [43 x i8] c"blastn -db %s -query %s -outfmt %s -out %s\00"
@.str.11 = [29 x i8] c"* Output file < %s > created\00"
@.str.13 = [35 x i8] c"for i in 4 5; do cut -f$i %s ;done\00"
@.str.14 = [2 x i8] c"r\00"
@.str.15 = [41 x i8] c"Could not open/find BLAST output file %s\00"
@.str.16 = [12 x i8] c"%d %d %d %d\00"
@.str.19 = [24 x i8] c"* Please re-run program\00"
@str = [61 x i8] c"\0A\0A**********************************************************\00"
@str.21 = [36 x i8] c"* Sorry, BLAST was UNSUCCESSFUL :( \00"
@str.22 = [61 x i8] c"\0A**********************************************************\0A\00"
@str.24 = [24 x i8] c"* BLAST was successful!\00"
@str.25 = [60 x i8] c"\0A**********************************************************\00"
@str.26 = [47 x i8] c"These are the BLAST hits for your sequence...\0A\00"
@str.27 = [79 x i8] c"\0AThis program is designed to help outmated BLAST execution of query sequences.\00"
@str.28 = [169 x i8] c"\0ASpecifically, it's intended for use with deletion mutants. This program will help you find whether your deletion fragment is present in your mutant candidate sequence.\00"
@str.29 = [74 x i8] c"\0AExecution Example:\0A$ muta organism_sequence.fasta mutant_sequence.fasta\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [250 x i8]
%4 = alloca [50 x i8]
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca [150 x i8]
%10 = icmp slt i32 %0, 3
br i1 %10, label %11, label %17
11: ; preds = %2
%12 = load i32, i32* @stderr
%13 = tail call i32 @fprintf(i32 %12, i8* getelementptr inbounds ([93 x i8], [93 x i8]* @.str, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.27, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([169 x i8], [169 x i8]* @str.28, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.29, i64 0, i64 0))
br label %61
17: ; preds = %2
%18 = getelementptr inbounds [250 x i8], [250 x i8]* %3, i64 0, i64 0
%19 = getelementptr inbounds [50 x i8], [50 x i8]* %4, i64 0, i64 0
%20 = tail call i8* @getenv(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%21 = getelementptr inbounds i8*, i8** %1, i64 2
%22 = load i8*, i8** %21
%23 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %19, i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0), i8* %22)
%24 = getelementptr inbounds i8*, i8** %1, i64 1
%25 = load i8*, i8** %24
%26 = load i8*, i8** %21
%27 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %18, i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.7, i64 0, i64 0), i8* %25, i8* %26, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.5, i64 0, i64 0), i8* %19)
%28 = call i64 @system(i8* %18)
%29 = call i64 @system(i8* %18)
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %55
31: ; preds = %17
%32 = call i32 @putchar(i32 10)
%33 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.25, i64 0, i64 0))
%34 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.24, i64 0, i64 0))
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.11, i64 0, i64 0), i8* %19)
%36 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.25, i64 0, i64 0))
%37 = call i32 @putchar(i32 10)
%38 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.26, i64 0, i64 0))
%39 = bitcast i32* %5 to i8*
%40 = bitcast i32* %6 to i8*
%41 = bitcast i32* %7 to i8*
%42 = bitcast i32* %8 to i8*
%43 = getelementptr inbounds [150 x i8], [150 x i8]* %9, i64 0, i64 0
%44 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %43, i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.13, i64 0, i64 0), i8* %19)
%45 = call i64 @system(i8* %43)
%46 = call i32* @popen(i8* %43, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
%47 = icmp eq i32* %46, null
br i1 %47, label %48, label %50
48: ; preds = %31
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.15, i64 0, i64 0), i8* %19)
br label %54
50: ; preds = %31
%51 = call i32 @fscanf(i32* %46, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.16, i64 0, i64 0), i32* %5, i32* %7, i32* %6, i32* %8)
%52 = call i32 @pclose(i32* %46)
%53 = call i32 @hits(i32* %5, i32* %6, i32* %7, i32* %8)
br label %54
54: ; preds = %50, %48
br label %60
55: ; preds = %17
%56 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str, i64 0, i64 0))
%57 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.21, i64 0, i64 0))
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.19, i64 0, i64 0))
%59 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.22, i64 0, i64 0))
br label %60
60: ; preds = %54, %55
br label %61
61: ; preds = %60, %11
ret i32 0
}