#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*/ exit(int);
int longestValidParentheses(char *);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char *argv[]) {
  if (!(longestValidParentheses("") == 0)) {
    printf("assert fail: %s\n", "boundary 0");
    exit(-1);
  };
  if (!(longestValidParentheses("(") == 0)) {
    printf("assert fail: %s\n", "boundary 1 (");
    exit(-1);
  };
  if (!(longestValidParentheses(")") == 0)) {
    printf("assert fail: %s\n", ")");
    exit(-1);
  };
  if (!(longestValidParentheses("()") == 2)) {
    printf("assert fail: %s\n", "()");
    exit(-1);
  };
  if (!(longestValidParentheses("))))") == 0)) {
    printf("assert fail: %s\n", "))))");
    exit(-1);
  };
  if (!(longestValidParentheses("()()") == 4)) {
    printf("assert fail: %s\n", "()()");
    exit(-1);
  };
  if (!(longestValidParentheses("())(") == 2)) {
    printf("assert fail: %s\n", "())(");
    exit(-1);
  };
  if (!(longestValidParentheses("((())") == 4)) {
    printf("assert fail: %s\n", "((())");
    exit(-1);
  };
  if (!(longestValidParentheses("()(((())))") == 10)) {
    printf("assert fail: %s\n", "()(((())))");
    exit(-1);
  };
  if (!(longestValidParentheses(")()(((())))") == 10)) {
    printf("assert fail: %s\n", ")()(((())))");
    exit(-1);
  };
  if (!(longestValidParentheses("()(((())))(") == 10)) {
    printf("assert fail: %s\n", "()(((())))(");
    exit(-1);
  };
  if (!(longestValidParentheses(")()(((())))(") == 10)) {
    printf("assert fail: %s\n", ")()(((())))(");
    exit(-1);
  };
  if (!(longestValidParentheses("(())()(()((") == 6)) {
    printf("assert fail: %s\n", "(())()(()((");
    exit(-1);
  };
  printf("everything is fine!\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xf25(%rip),%rdi
call   1050 <longestValidParentheses@plt>
cmp    $0x0,%eax
je     117a <main+0x4a>
lea    0xe9e(%rip),%rdi
lea    0xea8(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>
lea    0xea6(%rip),%rdi
call   1050 <longestValidParentheses@plt>
cmp    $0x0,%eax
je     11ae <main+0x7e>
lea    0xe6a(%rip),%rdi
lea    0xe7f(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>
lea    0xe77(%rip),%rdi
call   1050 <longestValidParentheses@plt>
cmp    $0x0,%eax
je     11e2 <main+0xb2>
lea    0xe36(%rip),%rdi
lea    0xe5b(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>
lea    0xe42(%rip),%rdi
call   1050 <longestValidParentheses@plt>
cmp    $0x2,%eax
je     1216 <main+0xe6>
lea    0xe02(%rip),%rdi
lea    0xe26(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>
lea    0xe23(%rip),%rdi
call   1050 <longestValidParentheses@plt>
cmp    $0x0,%eax
je     124a <main+0x11a>
lea    0xdce(%rip),%rdi
lea    0xe07(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>
lea    0xdd8(%rip),%rdi
call   1050 <longestValidParentheses@plt>
cmp    $0x4,%eax
je     127e <main+0x14e>
lea    0xd9a(%rip),%rdi
lea    0xdbc(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>
lea    0xda9(%rip),%rdi
call   1050 <longestValidParentheses@plt>
cmp    $0x2,%eax
je     12b2 <main+0x182>
lea    0xd66(%rip),%rdi
lea    0xd8d(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>
lea    0xd7a(%rip),%rdi
call   1050 <longestValidParentheses@plt>
cmp    $0x4,%eax
je     12e6 <main+0x1b6>
lea    0xd32(%rip),%rdi
lea    0xd5e(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>
lea    0xd4d(%rip),%rdi
call   1050 <longestValidParentheses@plt>
cmp    $0xa,%eax
je     131a <main+0x1ea>
lea    0xcfe(%rip),%rdi
lea    0xd31(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>
lea    0xd18(%rip),%rdi
call   1050 <longestValidParentheses@plt>
cmp    $0xa,%eax
je     134e <main+0x21e>
lea    0xcca(%rip),%rdi
lea    0xcfc(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>
lea    0xcf1(%rip),%rdi
call   1050 <longestValidParentheses@plt>
cmp    $0xa,%eax
je     1382 <main+0x252>
lea    0xc96(%rip),%rdi
lea    0xcd5(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>
lea    0xcbc(%rip),%rdi
call   1050 <longestValidParentheses@plt>
cmp    $0xa,%eax
je     13b6 <main+0x286>
lea    0xc62(%rip),%rdi
lea    0xca0(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>
lea    0xc95(%rip),%rdi
call   1050 <longestValidParentheses@plt>
cmp    $0x6,%eax
je     13ea <main+0x2ba>
lea    0xc2e(%rip),%rdi
lea    0xc79(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0xffffffff,%edi
call   1040 <exit@plt>
lea    0xc6d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xec8(%rip),%rdi
call   1060 <longestValidParentheses@plt>
test   %eax,%eax
jne    125e <main+0x11e>
lea    0xecb(%rip),%rdi
call   1060 <longestValidParentheses@plt>
test   %eax,%eax
jne    1271 <main+0x131>
lea    0xebc(%rip),%rdi
call   1060 <longestValidParentheses@plt>
test   %eax,%eax
jne    1284 <main+0x144>
lea    0xea7(%rip),%rdi
call   1060 <longestValidParentheses@plt>
cmp    $0x2,%eax
jne    1297 <main+0x157>
lea    0xea7(%rip),%rdi
call   1060 <longestValidParentheses@plt>
test   %eax,%eax
jne    12aa <main+0x16a>
lea    0xe7c(%rip),%rdi
call   1060 <longestValidParentheses@plt>
cmp    $0x4,%eax
jne    12ba <main+0x17a>
lea    0xe6c(%rip),%rdi
call   1060 <longestValidParentheses@plt>
cmp    $0x2,%eax
jne    12ca <main+0x18a>
lea    0xe5c(%rip),%rdi
call   1060 <longestValidParentheses@plt>
cmp    $0x4,%eax
jne    12da <main+0x19a>
lea    0xe4e(%rip),%rdi
call   1060 <longestValidParentheses@plt>
cmp    $0xa,%eax
jne    12ea <main+0x1aa>
lea    0xe38(%rip),%rdi
call   1060 <longestValidParentheses@plt>
cmp    $0xa,%eax
jne    12fa <main+0x1ba>
lea    0xe30(%rip),%rdi
call   1060 <longestValidParentheses@plt>
cmp    $0xa,%eax
jne    130a <main+0x1ca>
lea    0xe1a(%rip),%rdi
call   1060 <longestValidParentheses@plt>
cmp    $0xa,%eax
jne    131a <main+0x1da>
lea    0xe12(%rip),%rdi
call   1060 <longestValidParentheses@plt>
cmp    $0x6,%eax
jne    132a <main+0x1ea>
lea    0xe09(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret
lea    0xd9b(%rip),%rdi
lea    0xda5(%rip),%rsi
jmp    1338 <main+0x1f8>
lea    0xd88(%rip),%rdi
lea    0xd9d(%rip),%rsi
jmp    1338 <main+0x1f8>
lea    0xd75(%rip),%rdi
lea    0xd9a(%rip),%rsi
jmp    1338 <main+0x1f8>
lea    0xd62(%rip),%rdi
lea    0xd86(%rip),%rsi
jmp    1338 <main+0x1f8>
lea    0xd4f(%rip),%rdi
lea    0xd88(%rip),%rsi
jmp    1338 <main+0x1f8>
lea    0xd3f(%rip),%rdi
lea    0xd61(%rip),%rsi
jmp    1338 <main+0x1f8>
lea    0xd2f(%rip),%rdi
lea    0xd56(%rip),%rsi
jmp    1338 <main+0x1f8>
lea    0xd1f(%rip),%rdi
lea    0xd4b(%rip),%rsi
jmp    1338 <main+0x1f8>
lea    0xd0f(%rip),%rdi
lea    0xd42(%rip),%rsi
jmp    1338 <main+0x1f8>
lea    0xcff(%rip),%rdi
lea    0xd31(%rip),%rsi
jmp    1338 <main+0x1f8>
lea    0xcef(%rip),%rdi
lea    0xd2e(%rip),%rsi
jmp    1338 <main+0x1f8>
lea    0xcdf(%rip),%rdi
lea    0xd1d(%rip),%rsi
jmp    1338 <main+0x1f8>
lea    0xccf(%rip),%rdi
lea    0xd1a(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
@.str.1 = [17 x i8] c"assert fail: %s\0A\00"
@.str.2 = [11 x i8] c"boundary 0\00"
@.str.3 = [2 x i8] c"(\00"
@.str.4 = [13 x i8] c"boundary 1 (\00"
@.str.5 = [2 x i8] c")\00"
@.str.6 = [3 x i8] c"()\00"
@.str.7 = [5 x i8] c"))))\00"
@.str.8 = [5 x i8] c"()()\00"
@.str.9 = [5 x i8] c"())(\00"
@.str.10 = [6 x i8] c"((())\00"
@.str.11 = [11 x i8] c"()(((())))\00"
@.str.12 = [12 x i8] c")()(((())))\00"
@.str.13 = [12 x i8] c"()(((())))(\00"
@.str.14 = [13 x i8] c")()(((())))(\00"
@.str.15 = [12 x i8] c"(())()(()((\00"
@.str.16 = [21 x i8] c"everything is fine!\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 @longestValidParentheses(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%7 = icmp eq i32 %6, 0
br i1 %7, label %11, label %8
8: ; preds = %2
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 @exit(i32 -1)
unreachable
11: ; preds = %2
%12 = call i32 @longestValidParentheses(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%13 = icmp eq i32 %12, 0
br i1 %13, label %17, label %14
14: ; preds = %11
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%16 = call i32 @exit(i32 -1)
unreachable
17: ; preds = %11
%18 = call i32 @longestValidParentheses(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%19 = icmp eq i32 %18, 0
br i1 %19, label %23, label %20
20: ; preds = %17
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%22 = call i32 @exit(i32 -1)
unreachable
23: ; preds = %17
%24 = call i32 @longestValidParentheses(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%25 = icmp eq i32 %24, 2
br i1 %25, label %29, label %26
26: ; preds = %23
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%28 = call i32 @exit(i32 -1)
unreachable
29: ; preds = %23
%30 = call i32 @longestValidParentheses(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%31 = icmp eq i32 %30, 0
br i1 %31, label %35, label %32
32: ; preds = %29
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%34 = call i32 @exit(i32 -1)
unreachable
35: ; preds = %29
%36 = call i32 @longestValidParentheses(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%37 = icmp eq i32 %36, 4
br i1 %37, label %41, label %38
38: ; preds = %35
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%40 = call i32 @exit(i32 -1)
unreachable
41: ; preds = %35
%42 = call i32 @longestValidParentheses(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%43 = icmp eq i32 %42, 2
br i1 %43, label %47, label %44
44: ; preds = %41
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%46 = call i32 @exit(i32 -1)
unreachable
47: ; preds = %41
%48 = call i32 @longestValidParentheses(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%49 = icmp eq i32 %48, 4
br i1 %49, label %53, label %50
50: ; preds = %47
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%52 = call i32 @exit(i32 -1)
unreachable
53: ; preds = %47
%54 = call i32 @longestValidParentheses(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0))
%55 = icmp eq i32 %54, 10
br i1 %55, label %59, label %56
56: ; preds = %53
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0))
%58 = call i32 @exit(i32 -1)
unreachable
59: ; preds = %53
%60 = call i32 @longestValidParentheses(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0))
%61 = icmp eq i32 %60, 10
br i1 %61, label %65, label %62
62: ; preds = %59
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0))
%64 = call i32 @exit(i32 -1)
unreachable
65: ; preds = %59
%66 = call i32 @longestValidParentheses(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0))
%67 = icmp eq i32 %66, 10
br i1 %67, label %71, label %68
68: ; preds = %65
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0))
%70 = call i32 @exit(i32 -1)
unreachable
71: ; preds = %65
%72 = call i32 @longestValidParentheses(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i64 0, i64 0))
%73 = icmp eq i32 %72, 10
br i1 %73, label %77, label %74
74: ; preds = %71
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i64 0, i64 0))
%76 = call i32 @exit(i32 -1)
unreachable
77: ; preds = %71
%78 = call i32 @longestValidParentheses(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0))
%79 = icmp eq i32 %78, 6
br i1 %79, label %83, label %80
80: ; preds = %77
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0))
%82 = call i32 @exit(i32 -1)
unreachable
83: ; preds = %77
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.16, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
@.str.1 = [17 x i8] c"assert fail: %s\0A\00"
@.str.2 = [11 x i8] c"boundary 0\00"
@.str.3 = [2 x i8] c"(\00"
@.str.4 = [13 x i8] c"boundary 1 (\00"
@.str.5 = [2 x i8] c")\00"
@.str.6 = [3 x i8] c"()\00"
@.str.7 = [5 x i8] c"))))\00"
@.str.8 = [5 x i8] c"()()\00"
@.str.9 = [5 x i8] c"())(\00"
@.str.10 = [6 x i8] c"((())\00"
@.str.11 = [11 x i8] c"()(((())))\00"
@.str.12 = [12 x i8] c")()(((())))\00"
@.str.13 = [12 x i8] c"()(((())))(\00"
@.str.14 = [13 x i8] c")()(((())))(\00"
@.str.15 = [12 x i8] c"(())()(()((\00"
@str = [20 x i8] c"everything is fine!\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @longestValidParentheses(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0))
%4 = icmp eq i32 %3, 0
br i1 %4, label %8, label %5
5: ; preds = %2
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%7 = tail call i32 @exit(i32 -1)
unreachable
8: ; preds = %2
%9 = tail call i32 @longestValidParentheses(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%10 = icmp eq i32 %9, 0
br i1 %10, label %14, label %11
11: ; preds = %8
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%13 = tail call i32 @exit(i32 -1)
unreachable
14: ; preds = %8
%15 = tail call i32 @longestValidParentheses(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%16 = icmp eq i32 %15, 0
br i1 %16, label %20, label %17
17: ; preds = %14
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%19 = tail call i32 @exit(i32 -1)
unreachable
20: ; preds = %14
%21 = tail call i32 @longestValidParentheses(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%22 = icmp eq i32 %21, 2
br i1 %22, label %26, label %23
23: ; preds = %20
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%25 = tail call i32 @exit(i32 -1)
unreachable
26: ; preds = %20
%27 = tail call i32 @longestValidParentheses(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%28 = icmp eq i32 %27, 0
br i1 %28, label %32, label %29
29: ; preds = %26
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%31 = tail call i32 @exit(i32 -1)
unreachable
32: ; preds = %26
%33 = tail call i32 @longestValidParentheses(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%34 = icmp eq i32 %33, 4
br i1 %34, label %38, label %35
35: ; preds = %32
%36 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%37 = tail call i32 @exit(i32 -1)
unreachable
38: ; preds = %32
%39 = tail call i32 @longestValidParentheses(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%40 = icmp eq i32 %39, 2
br i1 %40, label %44, label %41
41: ; preds = %38
%42 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%43 = tail call i32 @exit(i32 -1)
unreachable
44: ; preds = %38
%45 = tail call i32 @longestValidParentheses(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%46 = icmp eq i32 %45, 4
br i1 %46, label %50, label %47
47: ; preds = %44
%48 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%49 = tail call i32 @exit(i32 -1)
unreachable
50: ; preds = %44
%51 = tail call i32 @longestValidParentheses(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0))
%52 = icmp eq i32 %51, 10
br i1 %52, label %56, label %53
53: ; preds = %50
%54 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0))
%55 = tail call i32 @exit(i32 -1)
unreachable
56: ; preds = %50
%57 = tail call i32 @longestValidParentheses(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0))
%58 = icmp eq i32 %57, 10
br i1 %58, label %62, label %59
59: ; preds = %56
%60 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0))
%61 = tail call i32 @exit(i32 -1)
unreachable
62: ; preds = %56
%63 = tail call i32 @longestValidParentheses(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0))
%64 = icmp eq i32 %63, 10
br i1 %64, label %68, label %65
65: ; preds = %62
%66 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0))
%67 = tail call i32 @exit(i32 -1)
unreachable
68: ; preds = %62
%69 = tail call i32 @longestValidParentheses(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i64 0, i64 0))
%70 = icmp eq i32 %69, 10
br i1 %70, label %74, label %71
71: ; preds = %68
%72 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i64 0, i64 0))
%73 = tail call i32 @exit(i32 -1)
unreachable
74: ; preds = %68
%75 = tail call i32 @longestValidParentheses(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0))
%76 = icmp eq i32 %75, 6
br i1 %76, label %80, label %77
77: ; preds = %74
%78 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0))
%79 = tail call i32 @exit(i32 -1)
unreachable
80: ; preds = %74
%81 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str, i64 0, i64 0))
ret i32 0
}