#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*/ islower(char);
int strlen(char *);
void CratyleCase(char *strMot, int *PremiereLettre, int *FauxTout) {
  *PremiereLettre = 0;
  *FauxTout = 0;
  if (!islower(strMot[0]))
    *PremiereLettre = 1;
  if (strlen(strMot) > 1 && !islower(strMot[1]))
    *FauxTout = 1;
}


x86 assembly (clang, -O0):
<CratyleCase>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x18(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x8(%rbp),%rax
movsbl (%rax),%edi
call   1030 <islower@plt>
cmp    $0x0,%eax
jne    1167 <CratyleCase+0x47>
mov    -0x10(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
cmp    $0x1,%eax
jle    1199 <CratyleCase+0x79>
mov    -0x8(%rbp),%rax
movsbl 0x1(%rax),%edi
call   1030 <islower@plt>
cmp    $0x0,%eax
jne    1199 <CratyleCase+0x79>
mov    -0x18(%rbp),%rax
movl   $0x1,(%rax)
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CratyleCase>:
push   %r15
push   %r14
push   %rbx
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%rbx
movl   $0x0,(%rsi)
movl   $0x0,(%rdx)
movsbl (%rdi),%edi
call   1030 <islower@plt>
test   %eax,%eax
jne    114d <CratyleCase+0x2d>
movl   $0x1,(%r15)
mov    %rbx,%rdi
call   1040 <strlen@plt>
cmp    $0x2,%eax
jl     116e <CratyleCase+0x4e>
movsbl 0x1(%rbx),%edi
call   1030 <islower@plt>
test   %eax,%eax
jne    116e <CratyleCase+0x4e>
movl   $0x1,(%r14)
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define void @CratyleCase(i8* %0, i32* %1, i32* %2) {
%4 = alloca i8*
%5 = alloca i32*
%6 = alloca i32*
store i8* %0, i8** %4
store i32* %1, i32** %5
store i32* %2, i32** %6
%7 = load i32*, i32** %5
store i32 0, i32* %7
%8 = load i32*, i32** %6
store i32 0, i32* %8
%9 = load i8*, i8** %4
%10 = getelementptr inbounds i8, i8* %9, i64 0
%11 = load i8, i8* %10
%12 = call i32 @islower(i8 signext %11)
%13 = icmp ne i32 %12, 0
br i1 %13, label %16, label %14
14: ; preds = %3
%15 = load i32*, i32** %5
store i32 1, i32* %15
br label %16
16: ; preds = %14, %3
%17 = load i8*, i8** %4
%18 = call i32 @strlen(i8* %17)
%19 = icmp sgt i32 %18, 1
br i1 %19, label %20, label %28
20: ; preds = %16
%21 = load i8*, i8** %4
%22 = getelementptr inbounds i8, i8* %21, i64 1
%23 = load i8, i8* %22
%24 = call i32 @islower(i8 signext %23)
%25 = icmp ne i32 %24, 0
br i1 %25, label %28, label %26
26: ; preds = %20
%27 = load i32*, i32** %6
store i32 1, i32* %27
br label %28
28: ; preds = %26, %20, %16
ret void
}

LLVM IR (-O2):
define void @CratyleCase(i8* %0, i32* nocapture writeonly %1, i32* nocapture writeonly %2) {
store i32 0, i32* %1
store i32 0, i32* %2
%4 = load i8, i8* %0
%5 = tail call i32 @islower(i8 signext %4)
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %3
store i32 1, i32* %1
br label %8
8: ; preds = %7, %3
%9 = tail call i32 @strlen(i8* %0)
%10 = icmp sgt i32 %9, 1
br i1 %10, label %11, label %17
11: ; preds = %8
%12 = getelementptr inbounds i8, i8* %0, i64 1
%13 = load i8, i8* %12
%14 = tail call i32 @islower(i8 signext %13)
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %11
store i32 1, i32* %2
br label %17
17: ; preds = %16, %11, %8
ret void
}