#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*/ ninety(int /*<<< orphan*/);
int /*<<< orphan*/ reflect(char *);
int /*<<< orphan*/ strcmp(int /*<<< orphan*/, char *);
int isreflect(char *a, char *b) {
  return (!strcmp(reflect(a), b) || !strcmp(ninety(reflect(a)), b) ||
          !strcmp(ninety(ninety(reflect(a))), b) ||
          !strcmp(ninety(ninety(ninety(reflect(a)))), b));
}


x86 assembly (clang, -O0):
<isreflect>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <reflect@plt>
mov    %eax,%edi
mov    -0x10(%rbp),%rsi
call   1050 <strcmp@plt>
mov    %eax,%ecx
mov    $0x1,%al
cmp    $0x0,%ecx
mov    %al,-0x11(%rbp)
je     11f5 <isreflect+0xc5>
mov    -0x8(%rbp),%rdi
call   1030 <reflect@plt>
mov    %eax,%edi
call   1040 <ninety@plt>
mov    %eax,%edi
mov    -0x10(%rbp),%rsi
call   1050 <strcmp@plt>
mov    %eax,%ecx
mov    $0x1,%al
cmp    $0x0,%ecx
mov    %al,-0x11(%rbp)
je     11f5 <isreflect+0xc5>
mov    -0x8(%rbp),%rdi
call   1030 <reflect@plt>
mov    %eax,%edi
call   1040 <ninety@plt>
mov    %eax,%edi
call   1040 <ninety@plt>
mov    %eax,%edi
mov    -0x10(%rbp),%rsi
call   1050 <strcmp@plt>
mov    %eax,%ecx
mov    $0x1,%al
cmp    $0x0,%ecx
mov    %al,-0x11(%rbp)
je     11f5 <isreflect+0xc5>
mov    -0x8(%rbp),%rdi
call   1030 <reflect@plt>
mov    %eax,%edi
call   1040 <ninety@plt>
mov    %eax,%edi
call   1040 <ninety@plt>
mov    %eax,%edi
call   1040 <ninety@plt>
mov    %eax,%edi
mov    -0x10(%rbp),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<isreflect>:
push   %rbp
push   %r14
push   %rbx
mov    %rsi,%r14
mov    %rdi,%rbx
call   1030 <reflect@plt>
mov    %eax,%edi
mov    %r14,%rsi
call   1050 <strcmp@plt>
mov    $0x1,%ebp
test   %eax,%eax
je     11c2 <isreflect+0x92>
mov    %rbx,%rdi
call   1030 <reflect@plt>
mov    %eax,%edi
call   1040 <ninety@plt>
mov    %eax,%edi
mov    %r14,%rsi
call   1050 <strcmp@plt>
test   %eax,%eax
je     11c2 <isreflect+0x92>
mov    %rbx,%rdi
call   1030 <reflect@plt>
mov    %eax,%edi
call   1040 <ninety@plt>
mov    %eax,%edi
call   1040 <ninety@plt>
mov    %eax,%edi
mov    %r14,%rsi
call   1050 <strcmp@plt>
test   %eax,%eax
je     11c2 <isreflect+0x92>
mov    %rbx,%rdi
call   1030 <reflect@plt>
mov    %eax,%edi
call   1040 <ninety@plt>
mov    %eax,%edi
call   1040 <ninety@plt>
mov    %eax,%edi
call   1040 <ninety@plt>
mov    %eax,%edi
mov    %r14,%rsi
call   1050 <strcmp@plt>
xor    %ebp,%ebp
test   %eax,%eax
sete   %bpl
mov    %ebp,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i32 @isreflect(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %3
%6 = call i32 @reflect(i8* %5)
%7 = load i8*, i8** %4
%8 = call i32 @strcmp(i32 %6, i8* %7)
%9 = icmp ne i32 %8, 0
br i1 %9, label %10, label %35
10: ; preds = %2
%11 = load i8*, i8** %3
%12 = call i32 @reflect(i8* %11)
%13 = call i32 @ninety(i32 %12)
%14 = load i8*, i8** %4
%15 = call i32 @strcmp(i32 %13, i8* %14)
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %35
17: ; preds = %10
%18 = load i8*, i8** %3
%19 = call i32 @reflect(i8* %18)
%20 = call i32 @ninety(i32 %19)
%21 = call i32 @ninety(i32 %20)
%22 = load i8*, i8** %4
%23 = call i32 @strcmp(i32 %21, i8* %22)
%24 = icmp ne i32 %23, 0
br i1 %24, label %25, label %35
25: ; preds = %17
%26 = load i8*, i8** %3
%27 = call i32 @reflect(i8* %26)
%28 = call i32 @ninety(i32 %27)
%29 = call i32 @ninety(i32 %28)
%30 = call i32 @ninety(i32 %29)
%31 = load i8*, i8** %4
%32 = call i32 @strcmp(i32 %30, i8* %31)
%33 = icmp ne i32 %32, 0
%34 = xor i1 %33, true
br label %35
35: ; preds = %25, %17, %10, %2
%36 = phi i1 [ true, %17 ], [ true, %10 ], [ true, %2 ], [ %34, %25 ]
%37 = zext i1 %36 to i32
ret i32 %37
}

LLVM IR (-O2):
define i32 @isreflect(i8* %0, i8* %1) {
%3 = tail call i32 @reflect(i8* %0)
%4 = tail call i32 @strcmp(i32 %3, i8* %1)
%5 = icmp eq i32 %4, 0
br i1 %5, label %25, label %6
6: ; preds = %2
%7 = tail call i32 @reflect(i8* %0)
%8 = tail call i32 @ninety(i32 %7)
%9 = tail call i32 @strcmp(i32 %8, i8* %1)
%10 = icmp eq i32 %9, 0
br i1 %10, label %25, label %11
11: ; preds = %6
%12 = tail call i32 @reflect(i8* %0)
%13 = tail call i32 @ninety(i32 %12)
%14 = tail call i32 @ninety(i32 %13)
%15 = tail call i32 @strcmp(i32 %14, i8* %1)
%16 = icmp eq i32 %15, 0
br i1 %16, label %25, label %17
17: ; preds = %11
%18 = tail call i32 @reflect(i8* %0)
%19 = tail call i32 @ninety(i32 %18)
%20 = tail call i32 @ninety(i32 %19)
%21 = tail call i32 @ninety(i32 %20)
%22 = tail call i32 @strcmp(i32 %21, i8* %1)
%23 = icmp eq i32 %22, 0
%24 = zext i1 %23 to i32
br label %25
25: ; preds = %17, %11, %6, %2
%26 = phi i32 [ 1, %11 ], [ 1, %6 ], [ 1, %2 ], [ %24, %17 ]
ret i32 %26
}