#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*/ Cratylation(char *, char *, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, char *);
void TestSalopeDeCigale() {
  char strSalopeDeCigale[255] = "salope de cigale", strCratyle[255] = "";
  int j;
  for (j = 0; j++ < 100;) {
    Cratylation(strSalopeDeCigale, strCratyle, 0);
    printf("%s ", strCratyle);
  }
}


x86 assembly (clang, -O0):
<TestSalopeDeCigale>:
push   %rbp
mov    %rsp,%rbp
sub    $0x210,%rsp
lea    -0x100(%rbp),%rdi
lea    0xea7(%rip),%rsi
mov    $0xff,%edx
call   1050 <memcpy@plt>
lea    -0x200(%rbp),%rdi
xor    %esi,%esi
mov    $0xff,%edx
call   1040 <memset@plt>
movl   $0x0,-0x204(%rbp)
mov    -0x204(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x204(%rbp)
cmp    $0x64,%eax
jge    11c7 <TestSalopeDeCigale+0x87>
lea    -0x100(%rbp),%rdi
lea    -0x200(%rbp),%rsi
xor    %edx,%edx
call   1060 <Cratylation@plt>
lea    -0x200(%rbp),%rsi
lea    0xf42(%rip),%rdi
call   1030 <printf@plt>
jmp    1180 <TestSalopeDeCigale+0x40>
add    $0x210,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<TestSalopeDeCigale>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x208,%rsp
lea    0xebc(%rip),%rsi
lea    0x100(%rsp),%r14
mov    $0xff,%edx
mov    %r14,%rdi
call   1040 <memcpy@plt>
xorps  %xmm0,%xmm0
movups %xmm0,0xef(%rsp)
movaps %xmm0,0xe0(%rsp)
movaps %xmm0,0xd0(%rsp)
movaps %xmm0,0xc0(%rsp)
movaps %xmm0,0xb0(%rsp)
movaps %xmm0,0xa0(%rsp)
movaps %xmm0,0x90(%rsp)
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movaps %xmm0,(%rsp)
mov    $0x64,%ebp
mov    %rsp,%rbx
lea    0xf2d(%rip),%r15
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %edx,%edx
call   1050 <Cratylation@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
add    $0xffffffff,%ebp
jne    11e0 <TestSalopeDeCigale+0xb0>
add    $0x208,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.TestSalopeDeCigale.strSalopeDeCigale = [255 x i8] c"salope de cigale\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@.str = [4 x i8] c"%s \00"
define void @TestSalopeDeCigale() {
%1 = alloca [255 x i8]
%2 = alloca [255 x i8]
%3 = alloca i32
%4 = bitcast [255 x i8]* %1 to i8*
%5 = bitcast [255 x i8]* %2 to i8*
store i32 0, i32* %3
br label %6
6: ; preds = %10, %0
%7 = load i32, i32* %3
%8 = add nsw i32 %7, 1
store i32 %8, i32* %3
%9 = icmp slt i32 %7, 100
br i1 %9, label %10, label %16
10: ; preds = %6
%11 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%12 = getelementptr inbounds [255 x i8], [255 x i8]* %2, i64 0, i64 0
%13 = call i32 @Cratylation(i8* %11, i8* %12, i32 0)
%14 = getelementptr inbounds [255 x i8], [255 x i8]* %2, i64 0, i64 0
%15 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %14)
br label %6
16: ; preds = %6
ret void
}

LLVM IR (-O2):
@__const.TestSalopeDeCigale.strSalopeDeCigale = [255 x i8] c"salope de cigale\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@.str = [4 x i8] c"%s \00"
define void @TestSalopeDeCigale() {
%1 = alloca [255 x i8]
%2 = alloca [255 x i8]
%3 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%4 = getelementptr inbounds [255 x i8], [255 x i8]* %2, i64 0, i64 0
br label %5
5: ; preds = %0, %5
%6 = phi i32 [ 0, %0 ], [ %7, %5 ]
%7 = add nuw nsw i32 %6, 1
%8 = call i32 @Cratylation(i8* %3, i8* %4, i32 0)
%9 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %4)
%10 = icmp eq i32 %7, 100
br i1 %10, label %11, label %5
11: ; preds = %5
ret void
}