#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 isMatch(char *, char *);
int /*<<< orphan*/ puts(char *);
int main() {
  int answer9 = isMatch("c", ".*b");
  int answer10 = isMatch("aaaaaaaaaaaaab", "a*a*a*a*a*a*a*a*a*a*c");
  puts(answer9 ? "TRUE" : "FALSE");
  puts(answer10 ? "TRUE" : "FALSE");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xef1(%rip),%rdi
lea    0xec3(%rip),%rsi
call   1040 <isMatch@plt>
mov    %eax,-0x8(%rbp)
lea    0xeb8(%rip),%rdi
lea    0xec0(%rip),%rsi
call   1040 <isMatch@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%ecx
lea    0xec9(%rip),%rdi
lea    0xebd(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rdi
call   1030 <puts@plt>
mov    -0xc(%rbp),%ecx
lea    0xeac(%rip),%rdi
lea    0xea0(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
lea    0xefc(%rip),%rdi
lea    0xece(%rip),%rsi
call   1040 <isMatch@plt>
mov    %eax,%ebx
lea    0xec4(%rip),%rdi
lea    0xecc(%rip),%rsi
call   1040 <isMatch@plt>
mov    %eax,%ebp
test   %ebx,%ebx
lea    0xed7(%rip),%r14
lea    0xecb(%rip),%rbx
mov    %rbx,%rdi
cmove  %r14,%rdi
call   1030 <puts@plt>
test   %ebp,%ebp
cmove  %r14,%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"c\00"
@.str.1 = [4 x i8] c".*b\00"
@.str.2 = [15 x i8] c"aaaaaaaaaaaaab\00"
@.str.3 = [22 x i8] c"a*a*a*a*a*a*a*a*a*a*c\00"
@.str.4 = [5 x i8] c"TRUE\00"
@.str.5 = [6 x i8] c"FALSE\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
%4 = call i32 @isMatch(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
store i32 %4, i32* %2
%5 = call i32 @isMatch(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
store i32 %5, i32* %3
%6 = load i32, i32* %2
%7 = icmp ne i32 %6, 0
%8 = zext i1 %7 to i64
%9 = select i1 %7, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0)
%10 = call i32 @puts(i8* %9)
%11 = load i32, i32* %3
%12 = icmp ne i32 %11, 0
%13 = zext i1 %12 to i64
%14 = select i1 %12, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0)
%15 = call i32 @puts(i8* %14)
ret i32 0
}

LLVM IR (-O2):
@.str = [2 x i8] c"c\00"
@.str.1 = [4 x i8] c".*b\00"
@.str.2 = [15 x i8] c"aaaaaaaaaaaaab\00"
@.str.3 = [22 x i8] c"a*a*a*a*a*a*a*a*a*a*c\00"
@.str.4 = [5 x i8] c"TRUE\00"
@.str.5 = [6 x i8] c"FALSE\00"
define i32 @main() {
%1 = tail call i32 @isMatch(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @isMatch(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%3 = icmp eq i32 %1, 0
%4 = select i1 %3, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0)
%5 = tail call i32 @puts(i8* dereferenceable(1) %4)
%6 = icmp eq i32 %2, 0
%7 = select i1 %6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0)
%8 = tail call i32 @puts(i8* dereferenceable(1) %7)
ret i32 0
}