#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*/ error(int);
int /*<<< orphan*/ free(char *);
char *malloc(scalar_t__);
int sscanf(char const *, char *, char *, char *, ...);
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
scalar_t__ strcspn(char *, char *);
scalar_t__ strlen(char const *);
bool parse(const char *line, char *abs_path, char *query) {
  char *method = malloc(strlen(line + 1));
  char *requestTarget = malloc(strlen(line + 1));
  char *httpVersion = malloc(strlen(line + 1));
  char *tmpAbsPath = malloc(strlen(line + 1));
  char *tmpQuery = malloc(strlen(line + 1));
  char *whitespace = malloc(strlen(line + 1));
  char *moreWhitespace = malloc(strlen(line + 1));
  int errorCode = 0;
  if (sscanf(line, "%s%[ ]%s%[ ]%s", method, whitespace, requestTarget,
             moreWhitespace, httpVersion) != 5)
    errorCode = 400;
  else if (requestTarget[0] != '/')
    errorCode = 501;
  else if (whitespace[1] == ' ' || moreWhitespace[1] == ' ')
    errorCode = 400;
  if (errorCode == 0) {
    if (sscanf(requestTarget, "%[^?] ? %s", tmpAbsPath, tmpQuery) < 2)
      strcpy(tmpQuery, "\0");
    if (strcspn(requestTarget, "\"") != strlen(requestTarget))
      errorCode = 400;
    else if (strcmp(method, "GET") != 0)
      errorCode = 405;
    else if (strcmp(httpVersion, "HTTP/1.1") != 0)
      errorCode = 505;
  }
  if (errorCode == 0) {
    strcpy(abs_path, tmpAbsPath);
    strcpy(query, tmpQuery);
  }
  free(method);
  free(requestTarget);
  free(httpVersion);
  free(tmpAbsPath);
  free(tmpQuery);
  free(whitespace);
  free(moreWhitespace);
  if (errorCode != 0) {
    error(errorCode);
    return false;
  } else
    return true;
}


x86 assembly (clang, -O0):
<parse>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x10(%rbp),%rdi
add    $0x1,%rdi
call   1050 <strlen@plt>
mov    %rax,%rdi
call   1080 <malloc@plt>
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rdi
add    $0x1,%rdi
call   1050 <strlen@plt>
mov    %rax,%rdi
call   1080 <malloc@plt>
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rdi
add    $0x1,%rdi
call   1050 <strlen@plt>
mov    %rax,%rdi
call   1080 <malloc@plt>
mov    %rax,-0x38(%rbp)
mov    -0x10(%rbp),%rdi
add    $0x1,%rdi
call   1050 <strlen@plt>
mov    %rax,%rdi
call   1080 <malloc@plt>
mov    %rax,-0x40(%rbp)
mov    -0x10(%rbp),%rdi
add    $0x1,%rdi
call   1050 <strlen@plt>
mov    %rax,%rdi
call   1080 <malloc@plt>
mov    %rax,-0x48(%rbp)
mov    -0x10(%rbp),%rdi
add    $0x1,%rdi
call   1050 <strlen@plt>
mov    %rax,%rdi
call   1080 <malloc@plt>
mov    %rax,-0x50(%rbp)
mov    -0x10(%rbp),%rdi
add    $0x1,%rdi
call   1050 <strlen@plt>
mov    %rax,%rdi
call   1080 <malloc@plt>
mov    %rax,-0x58(%rbp)
movl   $0x0,-0x5c(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x28(%rbp),%rdx
mov    -0x50(%rbp),%rcx
mov    -0x30(%rbp),%r8
mov    -0x58(%rbp),%r9
mov    -0x38(%rbp),%rax
lea    0xd97(%rip),%rsi
mov    %rax,(%rsp)
mov    $0x0,%al
call   1090 <sscanf@plt>
cmp    $0x5,%eax
je     1289 <parse+0x109>
movl   $0x190,-0x5c(%rbp)
jmp    12d8 <parse+0x158>
mov    -0x30(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2f,%eax
je     12a5 <parse+0x125>
movl   $0x1f5,-0x5c(%rbp)
jmp    12d3 <parse+0x153>
mov    -0x50(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x20,%eax
je     12c7 <parse+0x147>
mov    -0x58(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x20,%eax
jne    12ce <parse+0x14e>
movl   $0x190,-0x5c(%rbp)
jmp    12d3 <parse+0x153>
jmp    12d8 <parse+0x158>
cmpl   $0x0,-0x5c(%rbp)
jne    13a4 <parse+0x224>
mov    -0x30(%rbp),%rdi
mov    -0x40(%rbp),%rdx
mov    -0x48(%rbp),%rcx
lea    0xd1a(%rip),%rsi
mov    $0x0,%al
call   1090 <sscanf@plt>
cmp    $0x2,%eax
jge    1315 <parse+0x195>
mov    -0x48(%rbp),%rdi
lea    0xd19(%rip),%rsi
call   1040 <strcpy@plt>
mov    -0x30(%rbp),%rdi
lea    0xcfa(%rip),%rsi
call   1060 <strcspn@plt>
mov    %rax,-0x68(%rbp)
mov    -0x30(%rbp),%rdi
call   1050 <strlen@plt>
mov    %rax,%rcx
mov    -0x68(%rbp),%rax
cmp    %rcx,%rax
je     134e <parse+0x1ce>
movl   $0x190,-0x5c(%rbp)
jmp    139f <parse+0x21f>
mov    -0x28(%rbp),%rdi
lea    0xcc3(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
je     1374 <parse+0x1f4>
movl   $0x195,-0x5c(%rbp)
jmp    139a <parse+0x21a>
mov    -0x38(%rbp),%rdi
lea    0xca1(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
je     1395 <parse+0x215>
movl   $0x1f9,-0x5c(%rbp)
jmp    139a <parse+0x21a>
jmp    139f <parse+0x21f>
jmp    13a4 <parse+0x224>
cmpl   $0x0,-0x5c(%rbp)
jne    13c8 <parse+0x248>
mov    -0x18(%rbp),%rdi
mov    -0x40(%rbp),%rsi
call   1040 <strcpy@plt>
mov    -0x20(%rbp),%rdi
mov    -0x48(%rbp),%rsi
call   1040 <strcpy@plt>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
mov    -0x48(%rbp),%rdi
call   1030 <free@plt>
mov    -0x50(%rbp),%rdi
call   1030 <free@plt>
mov    -0x58(%rbp),%rdi
call   1030 <free@plt>
cmpl   $0x0,-0x5c(%rbp)
je     1425 <parse+0x2a5>
mov    -0x5c(%rbp),%edi
call   10a0 <error@plt>
movl   $0x0,-0x4(%rbp)
jmp    142c <parse+0x2ac>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parse>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rdx,0x38(%rsp)
mov    %rsi,0x30(%rsp)
mov    %rdi,%r15
add    $0x1,%rdi
call   1050 <strlen@plt>
mov    %rax,%rbx
mov    %rax,%rdi
call   1080 <malloc@plt>
mov    %rax,%rbp
mov    %rbx,%rdi
call   1080 <malloc@plt>
mov    %rax,0x40(%rsp)
mov    %rbx,%rdi
call   1080 <malloc@plt>
mov    %rax,%r12
mov    %rbx,%rdi
call   1080 <malloc@plt>
mov    %rax,0x18(%rsp)
mov    %rbx,%rdi
call   1080 <malloc@plt>
mov    %rax,0x10(%rsp)
mov    %rbx,%rdi
call   1080 <malloc@plt>
mov    %rax,%r14
mov    %rbx,%rdi
call   1080 <malloc@plt>
mov    %r12,%r13
mov    %r12,(%rsp)
mov    %r14,%r12
lea    0xdf8(%rip),%rsi
xor    %ebx,%ebx
mov    %r15,%rdi
mov    0x40(%rsp),%r15
mov    %rbp,0x20(%rsp)
mov    %rbp,%rdx
mov    %r14,%rcx
mov    %r15,%r8
mov    %rax,0x28(%rsp)
mov    %rax,%r9
xor    %eax,%eax
call   1090 <sscanf@plt>
cmp    $0x5,%eax
jne    1265 <parse+0xe5>
cmpb   $0x2f,(%r15)
mov    0x18(%rsp),%rbp
mov    0x10(%rsp),%r14
jne    1279 <parse+0xf9>
cmpb   $0x20,0x1(%r12)
je     125b <parse+0xdb>
mov    0x28(%rsp),%rax
cmpb   $0x20,0x1(%rax)
jne    12e2 <parse+0x162>
movl   $0x190,0xc(%rsp)
jmp    1281 <parse+0x101>
movl   $0x190,0xc(%rsp)
mov    0x18(%rsp),%rbp
mov    0x10(%rsp),%r14
jmp    1283 <parse+0x103>
movl   $0x1f5,0xc(%rsp)
xor    %ebx,%ebx
mov    0x20(%rsp),%rdi
call   1030 <free@plt>
mov    %r15,%rdi
call   1030 <free@plt>
mov    %r13,%rdi
call   1030 <free@plt>
mov    %rbp,%rdi
call   1030 <free@plt>
mov    %r14,%rdi
call   1030 <free@plt>
mov    %r12,%rdi
call   1030 <free@plt>
mov    0x28(%rsp),%rdi
call   1030 <free@plt>
mov    $0x1,%eax
test   %bl,%bl
jne    12d3 <parse+0x153>
mov    0xc(%rsp),%edi
call   10a0 <error@plt>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
movl   $0x190,0xc(%rsp)
lea    0xd1e(%rip),%rsi
mov    %r15,%rdi
mov    %rbp,%rdx
mov    %r14,%rcx
xor    %eax,%eax
call   1090 <sscanf@plt>
cmp    $0x1,%eax
jg     1315 <parse+0x195>
lea    0xd1c(%rip),%rsi
mov    %r14,%rdi
call   1040 <strcpy@plt>
lea    0xcfe(%rip),%rsi
mov    %r15,%rdi
call   1060 <strcspn@plt>
mov    %rax,%rbx
mov    %r15,%rdi
call   1050 <strlen@plt>
cmp    %rax,%rbx
jne    1281 <parse+0x101>
lea    0xcdd(%rip),%rsi
mov    0x20(%rsp),%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     135b <parse+0x1db>
movl   $0x195,0xc(%rsp)
jmp    1281 <parse+0x101>
lea    0xcbe(%rip),%rsi
mov    %r13,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     137c <parse+0x1fc>
movl   $0x1f9,0xc(%rsp)
jmp    1281 <parse+0x101>
movl   $0x0,0xc(%rsp)
mov    0x30(%rsp),%rdi
mov    %rbp,%rsi
call   1040 <strcpy@plt>
mov    0x38(%rsp),%rdi
mov    %r14,%rsi
call   1040 <strcpy@plt>
mov    $0x1,%bl
jmp    1283 <parse+0x103>

LLVM IR (-O0):
@.str = [15 x i8] c"%s%[ ]%s%[ ]%s\00"
@.str.1 = [11 x i8] c"%[^?] ? %s\00"
@.str.2 = [2 x i8] zeroinitializer
@.str.3 = [2 x i8] c"\22\00"
@.str.4 = [4 x i8] c"GET\00"
@.str.5 = [9 x i8] c"HTTP/1.1\00"
define i32 @parse(i8* %0, i8* %1, i8* %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i32
store i8* %0, i8** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
%16 = load i8*, i8** %5
%17 = getelementptr inbounds i8, i8* %16, i64 1
%18 = call i64 @strlen(i8* %17)
%19 = call i8* @malloc(i64 %18)
store i8* %19, i8** %8
%20 = load i8*, i8** %5
%21 = getelementptr inbounds i8, i8* %20, i64 1
%22 = call i64 @strlen(i8* %21)
%23 = call i8* @malloc(i64 %22)
store i8* %23, i8** %9
%24 = load i8*, i8** %5
%25 = getelementptr inbounds i8, i8* %24, i64 1
%26 = call i64 @strlen(i8* %25)
%27 = call i8* @malloc(i64 %26)
store i8* %27, i8** %10
%28 = load i8*, i8** %5
%29 = getelementptr inbounds i8, i8* %28, i64 1
%30 = call i64 @strlen(i8* %29)
%31 = call i8* @malloc(i64 %30)
store i8* %31, i8** %11
%32 = load i8*, i8** %5
%33 = getelementptr inbounds i8, i8* %32, i64 1
%34 = call i64 @strlen(i8* %33)
%35 = call i8* @malloc(i64 %34)
store i8* %35, i8** %12
%36 = load i8*, i8** %5
%37 = getelementptr inbounds i8, i8* %36, i64 1
%38 = call i64 @strlen(i8* %37)
%39 = call i8* @malloc(i64 %38)
store i8* %39, i8** %13
%40 = load i8*, i8** %5
%41 = getelementptr inbounds i8, i8* %40, i64 1
%42 = call i64 @strlen(i8* %41)
%43 = call i8* @malloc(i64 %42)
store i8* %43, i8** %14
store i32 0, i32* %15
%44 = load i8*, i8** %5
%45 = load i8*, i8** %8
%46 = load i8*, i8** %13
%47 = load i8*, i8** %9
%48 = load i8*, i8** %14
%49 = load i8*, i8** %10
%50 = call i32 (i8*, i8*, i8*, i8*, ...) @sscanf(i8* %44, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* %45, i8* %46, i8* %47, i8* %48, i8* %49)
%51 = icmp ne i32 %50, 5
br i1 %51, label %52, label %53
52: ; preds = %3
store i32 400, i32* %15
br label %75
53: ; preds = %3
%54 = load i8*, i8** %9
%55 = getelementptr inbounds i8, i8* %54, i64 0
%56 = load i8, i8* %55
%57 = sext i8 %56 to i32
%58 = icmp ne i32 %57, 47
br i1 %58, label %59, label %60
59: ; preds = %53
store i32 501, i32* %15
br label %74
60: ; preds = %53
%61 = load i8*, i8** %13
%62 = getelementptr inbounds i8, i8* %61, i64 1
%63 = load i8, i8* %62
%64 = sext i8 %63 to i32
%65 = icmp eq i32 %64, 32
br i1 %65, label %72, label %66
66: ; preds = %60
%67 = load i8*, i8** %14
%68 = getelementptr inbounds i8, i8* %67, i64 1
%69 = load i8, i8* %68
%70 = sext i8 %69 to i32
%71 = icmp eq i32 %70, 32
br i1 %71, label %72, label %73
72: ; preds = %66, %60
store i32 400, i32* %15
br label %73
73: ; preds = %72, %66
br label %74
74: ; preds = %73, %59
br label %75
75: ; preds = %74, %52
%76 = load i32, i32* %15
%77 = icmp eq i32 %76, 0
br i1 %77, label %78, label %107
78: ; preds = %75
%79 = load i8*, i8** %9
%80 = load i8*, i8** %11
%81 = load i8*, i8** %12
%82 = call i32 (i8*, i8*, i8*, i8*, ...) @sscanf(i8* %79, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* %80, i8* %81)
%83 = icmp slt i32 %82, 2
br i1 %83, label %84, label %87
84: ; preds = %78
%85 = load i8*, i8** %12
%86 = call i32 @strcpy(i8* %85, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %87
87: ; preds = %84, %78
%88 = load i8*, i8** %9
%89 = call i64 @strcspn(i8* %88, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%90 = load i8*, i8** %9
%91 = call i64 @strlen(i8* %90)
%92 = icmp ne i64 %89, %91
br i1 %92, label %93, label %94
93: ; preds = %87
store i32 400, i32* %15
br label %106
94: ; preds = %87
%95 = load i8*, i8** %8
%96 = call i64 @strcmp(i8* %95, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%97 = icmp ne i64 %96, 0
br i1 %97, label %98, label %99
98: ; preds = %94
store i32 405, i32* %15
br label %105
99: ; preds = %94
%100 = load i8*, i8** %10
%101 = call i64 @strcmp(i8* %100, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
%102 = icmp ne i64 %101, 0
br i1 %102, label %103, label %104
103: ; preds = %99
store i32 505, i32* %15
br label %104
104: ; preds = %103, %99
br label %105
105: ; preds = %104, %98
br label %106
106: ; preds = %105, %93
br label %107
107: ; preds = %106, %75
%108 = load i32, i32* %15
%109 = icmp eq i32 %108, 0
br i1 %109, label %110, label %117
110: ; preds = %107
%111 = load i8*, i8** %6
%112 = load i8*, i8** %11
%113 = call i32 @strcpy(i8* %111, i8* %112)
%114 = load i8*, i8** %7
%115 = load i8*, i8** %12
%116 = call i32 @strcpy(i8* %114, i8* %115)
br label %117
117: ; preds = %110, %107
%118 = load i8*, i8** %8
%119 = call i32 @free(i8* %118)
%120 = load i8*, i8** %9
%121 = call i32 @free(i8* %120)
%122 = load i8*, i8** %10
%123 = call i32 @free(i8* %122)
%124 = load i8*, i8** %11
%125 = call i32 @free(i8* %124)
%126 = load i8*, i8** %12
%127 = call i32 @free(i8* %126)
%128 = load i8*, i8** %13
%129 = call i32 @free(i8* %128)
%130 = load i8*, i8** %14
%131 = call i32 @free(i8* %130)
%132 = load i32, i32* %15
%133 = icmp ne i32 %132, 0
br i1 %133, label %134, label %137
134: ; preds = %117
%135 = load i32, i32* %15
%136 = call i32 @error(i32 %135)
store i32 0, i32* %4
br label %138
137: ; preds = %117
store i32 1, i32* %4
br label %138
138: ; preds = %137, %134
%139 = load i32, i32* %4
ret i32 %139
}

LLVM IR (-O2):
@.str = [15 x i8] c"%s%[ ]%s%[ ]%s\00"
@.str.1 = [11 x i8] c"%[^?] ? %s\00"
@.str.2 = [2 x i8] zeroinitializer
@.str.3 = [2 x i8] c"\22\00"
@.str.4 = [4 x i8] c"GET\00"
@.str.5 = [9 x i8] c"HTTP/1.1\00"
define i32 @parse(i8* nocapture %0, i8* %1, i8* %2) {
%4 = getelementptr inbounds i8, i8* %0, i64 1
%5 = tail call i64 @strlen(i8* %4)
%6 = tail call i8* @malloc(i64 %5)
%7 = tail call i8* @malloc(i64 %5)
%8 = tail call i8* @malloc(i64 %5)
%9 = tail call i8* @malloc(i64 %5)
%10 = tail call i8* @malloc(i64 %5)
%11 = tail call i8* @malloc(i64 %5)
%12 = tail call i8* @malloc(i64 %5)
%13 = tail call i32 (i8*, i8*, i8*, i8*, ...) @sscanf(i8* %0, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* %6, i8* %11, i8* %7, i8* %12, i8* %8)
%14 = icmp eq i32 %13, 5
br i1 %14, label %15, label %44
15: ; preds = %3
%16 = load i8, i8* %7
%17 = icmp eq i8 %16, 47
br i1 %17, label %18, label %44
18: ; preds = %15
%19 = getelementptr inbounds i8, i8* %11, i64 1
%20 = load i8, i8* %19
%21 = icmp eq i8 %20, 32
br i1 %21, label %44, label %22
22: ; preds = %18
%23 = getelementptr inbounds i8, i8* %12, i64 1
%24 = load i8, i8* %23
%25 = icmp eq i8 %24, 32
br i1 %25, label %44, label %26
26: ; preds = %22
%27 = tail call i32 (i8*, i8*, i8*, i8*, ...) @sscanf(i8* %7, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* %9, i8* %10)
%28 = icmp slt i32 %27, 2
br i1 %28, label %29, label %31
29: ; preds = %26
%30 = tail call i32 @strcpy(i8* %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %31
31: ; preds = %29, %26
%32 = tail call i64 @strcspn(i8* %7, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%33 = tail call i64 @strlen(i8* dereferenceable(1) %7)
%34 = icmp eq i64 %32, %33
br i1 %34, label %35, label %44
35: ; preds = %31
%36 = tail call i64 @strcmp(i8* %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%37 = icmp eq i64 %36, 0
br i1 %37, label %38, label %44
38: ; preds = %35
%39 = tail call i64 @strcmp(i8* %8, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %44
41: ; preds = %38
%42 = tail call i32 @strcpy(i8* %1, i8* %9)
%43 = tail call i32 @strcpy(i8* %2, i8* %10)
br label %44
44: ; preds = %18, %22, %15, %3, %38, %35, %31, %41
%45 = phi i1 [ true, %41 ], [ false, %31 ], [ false, %35 ], [ false, %38 ], [ false, %3 ], [ false, %15 ], [ false, %22 ], [ false, %18 ]
%46 = phi i32 [ 0, %41 ], [ 400, %31 ], [ 405, %35 ], [ 505, %38 ], [ 400, %3 ], [ 501, %15 ], [ 400, %22 ], [ 400, %18 ]
%47 = tail call i32 @free(i8* %6)
%48 = tail call i32 @free(i8* %7)
%49 = tail call i32 @free(i8* %8)
%50 = tail call i32 @free(i8* %9)
%51 = tail call i32 @free(i8* %10)
%52 = tail call i32 @free(i8* %11)
%53 = tail call i32 @free(i8* %12)
br i1 %45, label %56, label %54
54: ; preds = %44
%55 = tail call i32 @error(i32 %46)
br label %56
56: ; preds = %44, %54
%57 = phi i32 [ 0, %54 ], [ 1, %44 ]
ret i32 %57
}