#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*/ strsearch(char *, char *);
int main() {
  char str1[] = "abababacabababaccabababacabaababacababc";
  char str2[] = "ababaca";
  strsearch(str1, str2);
  char str3[] = "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15";
  char str4[] = ",";
  strsearch(str3, str4);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
lea    -0x30(%rbp),%rdi
lea    0xecd(%rip),%rsi
mov    $0x28,%edx
call   1030 <memcpy@plt>
mov    0xf12(%rip),%rax
mov    %rax,-0x38(%rbp)
lea    -0x30(%rbp),%rdi
lea    -0x38(%rbp),%rsi
call   1040 <strsearch@plt>
lea    -0x60(%rbp),%rdi
lea    0xed0(%rip),%rsi
mov    $0x26,%edx
call   1030 <memcpy@plt>
mov    0xeed(%rip),%ax
mov    %ax,-0x62(%rbp)
lea    -0x60(%rbp),%rdi
lea    -0x62(%rbp),%rsi
call   1040 <strsearch@plt>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x68,%rsp
movaps 0xef5(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xed9(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movabs $0x63626162616361,%rax
mov    %rax,0x60(%rsp)
movabs $0x61636162616261,%rax
mov    %rax,0x8(%rsp)
lea    0x40(%rsp),%rdi
lea    0x8(%rsp),%rsi
call   1030 <strsearch@plt>
movaps 0xee0(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xec4(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movabs $0x35312c34312c33,%rax
mov    %rax,0x2e(%rsp)
movw   $0x2c,0x6(%rsp)
lea    0x10(%rsp),%rdi
lea    0x6(%rsp),%rsi
call   1030 <strsearch@plt>
xor    %eax,%eax
add    $0x68,%rsp
ret

LLVM IR (-O0):
@__const.main.str1 = [40 x i8] c"abababacabababaccabababacabaababacababc\00"
@__const.main.str2 = [8 x i8] c"ababaca\00"
@__const.main.str3 = [38 x i8] c"0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15\00"
@__const.main.str4 = [2 x i8] c",\00"
define i32 @main() {
%1 = alloca [40 x i8]
%2 = alloca [8 x i8]
%3 = alloca [38 x i8]
%4 = alloca [2 x i8]
%5 = bitcast [40 x i8]* %1 to i8*
%6 = bitcast [8 x i8]* %2 to i8*
%7 = getelementptr inbounds [40 x i8], [40 x i8]* %1, i64 0, i64 0
%8 = getelementptr inbounds [8 x i8], [8 x i8]* %2, i64 0, i64 0
%9 = call i32 @strsearch(i8* %7, i8* %8)
%10 = bitcast [38 x i8]* %3 to i8*
%11 = bitcast [2 x i8]* %4 to i8*
%12 = getelementptr inbounds [38 x i8], [38 x i8]* %3, i64 0, i64 0
%13 = getelementptr inbounds [2 x i8], [2 x i8]* %4, i64 0, i64 0
%14 = call i32 @strsearch(i8* %12, i8* %13)
ret i32 0
}

LLVM IR (-O2):
@__const.main.str1 = [40 x i8] c"abababacabababaccabababacabaababacababc\00"
@__const.main.str3 = [38 x i8] c"0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15\00"
define i32 @main() {
%1 = alloca [40 x i8]
%2 = alloca i64
%3 = alloca [38 x i8]
%4 = alloca i16
%5 = getelementptr inbounds [40 x i8], [40 x i8]* %1, i64 0, i64 0
%6 = bitcast i64* %2 to i8*
store i64 27412342654460513, i64* %2
%7 = call i32 @strsearch(i8* %5, i8* %6)
%8 = getelementptr inbounds [38 x i8], [38 x i8]* %3, i64 0, i64 0
%9 = bitcast i16* %4 to i8*
store i16 44, i16* %4
%10 = call i32 @strsearch(i8* %8, i8* %9)
ret i32 0
}