#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 fn_sq_ch_49_cl_48_57_cl_48_57(char const *);
int fn_sq_ch_50_ch_53_cl_48_53(char const *);
int fn_sq_ch_50_cl_48_52_cl_48_57(char const *);
int fn_sq_cl_48_57(char const *);
int fn_sq_cl_49_57_cl_48_57(char const *);
int fn_al_sq_ch_50_ch_53_cl_48_53_sq_ch_50_cl_48_52_cl_48_57_sq_ch_49_cl_48_57_cl_48_57_sq_cl_49_57_cl_48_57_sq_cl_48_57(
    const char *text) {
  int pos = 0;
  pos = fn_sq_ch_50_ch_53_cl_48_53(text);
  if (pos != -1)
    return pos;
  pos = fn_sq_ch_50_cl_48_52_cl_48_57(text);
  if (pos != -1)
    return pos;
  pos = fn_sq_ch_49_cl_48_57_cl_48_57(text);
  if (pos != -1)
    return pos;
  pos = fn_sq_cl_49_57_cl_48_57(text);
  if (pos != -1)
    return pos;
  pos = fn_sq_cl_48_57(text);
  if (pos != -1)
    return pos;
  return -1;
}


x86 assembly (clang, -O0):
<fn_al_sq_ch_50_ch_53_cl_48_53_sq_ch_50_cl_48_52_cl_48_57_sq_ch_49_cl_48_57_cl_48_57_sq_cl_49_57_cl_48_57_sq_cl_48_57>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x10(%rbp),%rdi
call   1050 <fn_sq_ch_50_ch_53_cl_48_53@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0xffffffff,-0x14(%rbp)
je     1184 <fn_al_sq_ch_50_ch_53_cl_48_53_sq_ch_50_cl_48_52_cl_48_57_sq_ch_49_cl_48_57_cl_48_57_sq_cl_49_57_cl_48_57_sq_cl_48_57+0x34>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    120f <fn_al_sq_ch_50_ch_53_cl_48_53_sq_ch_50_cl_48_52_cl_48_57_sq_ch_49_cl_48_57_cl_48_57_sq_cl_49_57_cl_48_57_sq_cl_48_57+0xbf>
mov    -0x10(%rbp),%rdi
call   1070 <fn_sq_ch_50_cl_48_52_cl_48_57@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0xffffffff,-0x14(%rbp)
je     11a5 <fn_al_sq_ch_50_ch_53_cl_48_53_sq_ch_50_cl_48_52_cl_48_57_sq_ch_49_cl_48_57_cl_48_57_sq_cl_49_57_cl_48_57_sq_cl_48_57+0x55>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    120f <fn_al_sq_ch_50_ch_53_cl_48_53_sq_ch_50_cl_48_52_cl_48_57_sq_ch_49_cl_48_57_cl_48_57_sq_cl_49_57_cl_48_57_sq_cl_48_57+0xbf>
mov    -0x10(%rbp),%rdi
call   1040 <fn_sq_ch_49_cl_48_57_cl_48_57@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0xffffffff,-0x14(%rbp)
je     11c6 <fn_al_sq_ch_50_ch_53_cl_48_53_sq_ch_50_cl_48_52_cl_48_57_sq_ch_49_cl_48_57_cl_48_57_sq_cl_49_57_cl_48_57_sq_cl_48_57+0x76>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    120f <fn_al_sq_ch_50_ch_53_cl_48_53_sq_ch_50_cl_48_52_cl_48_57_sq_ch_49_cl_48_57_cl_48_57_sq_cl_49_57_cl_48_57_sq_cl_48_57+0xbf>
mov    -0x10(%rbp),%rdi
call   1060 <fn_sq_cl_49_57_cl_48_57@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0xffffffff,-0x14(%rbp)
je     11e7 <fn_al_sq_ch_50_ch_53_cl_48_53_sq_ch_50_cl_48_52_cl_48_57_sq_ch_49_cl_48_57_cl_48_57_sq_cl_49_57_cl_48_57_sq_cl_48_57+0x97>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    120f <fn_al_sq_ch_50_ch_53_cl_48_53_sq_ch_50_cl_48_52_cl_48_57_sq_ch_49_cl_48_57_cl_48_57_sq_cl_49_57_cl_48_57_sq_cl_48_57+0xbf>
mov    -0x10(%rbp),%rdi
call   1030 <fn_sq_cl_48_57@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0xffffffff,-0x14(%rbp)
je     1208 <fn_al_sq_ch_50_ch_53_cl_48_53_sq_ch_50_cl_48_52_cl_48_57_sq_ch_49_cl_48_57_cl_48_57_sq_cl_49_57_cl_48_57_sq_cl_48_57+0xb8>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    120f <fn_al_sq_ch_50_ch_53_cl_48_53_sq_ch_50_cl_48_52_cl_48_57_sq_ch_49_cl_48_57_cl_48_57_sq_cl_49_57_cl_48_57_sq_cl_48_57+0xbf>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fn_al_sq_ch_50_ch_53_cl_48_53_sq_ch_50_cl_48_52_cl_48_57_sq_ch_49_cl_48_57_cl_48_57_sq_cl_49_57_cl_48_57_sq_cl_48_57>:
push   %rbx
mov    %rdi,%rbx
call   1050 <fn_sq_ch_50_ch_53_cl_48_53@plt>
cmp    $0xffffffff,%eax
jne    1185 <fn_al_sq_ch_50_ch_53_cl_48_53_sq_ch_50_cl_48_52_cl_48_57_sq_ch_49_cl_48_57_cl_48_57_sq_cl_49_57_cl_48_57_sq_cl_48_57+0x35>
mov    %rbx,%rdi
call   1070 <fn_sq_ch_50_cl_48_52_cl_48_57@plt>
cmp    $0xffffffff,%eax
jne    1185 <fn_al_sq_ch_50_ch_53_cl_48_53_sq_ch_50_cl_48_52_cl_48_57_sq_ch_49_cl_48_57_cl_48_57_sq_cl_49_57_cl_48_57_sq_cl_48_57+0x35>
mov    %rbx,%rdi
call   1040 <fn_sq_ch_49_cl_48_57_cl_48_57@plt>
cmp    $0xffffffff,%eax
jne    1185 <fn_al_sq_ch_50_ch_53_cl_48_53_sq_ch_50_cl_48_52_cl_48_57_sq_ch_49_cl_48_57_cl_48_57_sq_cl_49_57_cl_48_57_sq_cl_48_57+0x35>
mov    %rbx,%rdi
call   1060 <fn_sq_cl_49_57_cl_48_57@plt>
cmp    $0xffffffff,%eax
je     1187 <fn_al_sq_ch_50_ch_53_cl_48_53_sq_ch_50_cl_48_52_cl_48_57_sq_ch_49_cl_48_57_cl_48_57_sq_cl_49_57_cl_48_57_sq_cl_48_57+0x37>
pop    %rbx
ret
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <fn_sq_cl_48_57@plt>

LLVM IR (-O0):
define i32 @fn_al_sq_ch_50_ch_53_cl_48_53_sq_ch_50_cl_48_52_cl_48_57_sq_ch_49_cl_48_57_cl_48_57_sq_cl_49_57_cl_48_57_sq_cl_48_57(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i32
store i8* %0, i8** %3
store i32 0, i32* %4
%5 = load i8*, i8** %3
%6 = call i32 @fn_sq_ch_50_ch_53_cl_48_53(i8* %5)
store i32 %6, i32* %4
%7 = load i32, i32* %4
%8 = icmp ne i32 %7, -1
br i1 %8, label %9, label %11
9: ; preds = %1
%10 = load i32, i32* %4
store i32 %10, i32* %2
br label %40
11: ; preds = %1
%12 = load i8*, i8** %3
%13 = call i32 @fn_sq_ch_50_cl_48_52_cl_48_57(i8* %12)
store i32 %13, i32* %4
%14 = load i32, i32* %4
%15 = icmp ne i32 %14, -1
br i1 %15, label %16, label %18
16: ; preds = %11
%17 = load i32, i32* %4
store i32 %17, i32* %2
br label %40
18: ; preds = %11
%19 = load i8*, i8** %3
%20 = call i32 @fn_sq_ch_49_cl_48_57_cl_48_57(i8* %19)
store i32 %20, i32* %4
%21 = load i32, i32* %4
%22 = icmp ne i32 %21, -1
br i1 %22, label %23, label %25
23: ; preds = %18
%24 = load i32, i32* %4
store i32 %24, i32* %2
br label %40
25: ; preds = %18
%26 = load i8*, i8** %3
%27 = call i32 @fn_sq_cl_49_57_cl_48_57(i8* %26)
store i32 %27, i32* %4
%28 = load i32, i32* %4
%29 = icmp ne i32 %28, -1
br i1 %29, label %30, label %32
30: ; preds = %25
%31 = load i32, i32* %4
store i32 %31, i32* %2
br label %40
32: ; preds = %25
%33 = load i8*, i8** %3
%34 = call i32 @fn_sq_cl_48_57(i8* %33)
store i32 %34, i32* %4
%35 = load i32, i32* %4
%36 = icmp ne i32 %35, -1
br i1 %36, label %37, label %39
37: ; preds = %32
%38 = load i32, i32* %4
store i32 %38, i32* %2
br label %40
39: ; preds = %32
store i32 -1, i32* %2
br label %40
40: ; preds = %39, %37, %30, %23, %16, %9
%41 = load i32, i32* %2
ret i32 %41
}

LLVM IR (-O2):
define i32 @fn_al_sq_ch_50_ch_53_cl_48_53_sq_ch_50_cl_48_52_cl_48_57_sq_ch_49_cl_48_57_cl_48_57_sq_cl_49_57_cl_48_57_sq_cl_48_57(i8* %0) {
%2 = tail call i32 @fn_sq_ch_50_ch_53_cl_48_53(i8* %0)
%3 = icmp eq i32 %2, -1
br i1 %3, label %4, label %15
4: ; preds = %1
%5 = tail call i32 @fn_sq_ch_50_cl_48_52_cl_48_57(i8* %0)
%6 = icmp eq i32 %5, -1
br i1 %6, label %7, label %15
7: ; preds = %4
%8 = tail call i32 @fn_sq_ch_49_cl_48_57_cl_48_57(i8* %0)
%9 = icmp eq i32 %8, -1
br i1 %9, label %10, label %15
10: ; preds = %7
%11 = tail call i32 @fn_sq_cl_49_57_cl_48_57(i8* %0)
%12 = icmp eq i32 %11, -1
br i1 %12, label %13, label %15
13: ; preds = %10
%14 = tail call i32 @fn_sq_cl_48_57(i8* %0)
br label %15
15: ; preds = %13, %10, %7, %4, %1
%16 = phi i32 [ %2, %1 ], [ %5, %4 ], [ %8, %7 ], [ %11, %10 ], [ %14, %13 ]
ret i32 %16
}