#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*/ printf(char *);
int verifCaract(char *caract) {
  if ((*caract >= 97) && (*caract <= 122)) {
    *caract = *caract - 32;
  }
  if ((*caract < 65) || (*caract > 90)) {
    printf("\nSeul les caract\x8Are minuscules ou les majuscules sont "
           "autoris\x82 pour saisir une lettre");
    printf("\n	- Pas d'accent\n	- Pas de caract\x8Are speciaux");
    return 0;
  }
  return 1;
}


x86 assembly (clang, -O0):
<verifCaract>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x61,%eax
jl     114e <verifCaract+0x3e>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x7a,%eax
jg     114e <verifCaract+0x3e>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
sub    $0x20,%eax
mov    %al,%cl
mov    -0x10(%rbp),%rax
mov    %cl,(%rax)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x41,%eax
jl     116e <verifCaract+0x5e>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5a,%eax
jle    1192 <verifCaract+0x82>
lea    0xe8b(%rip),%rdi
call   1030 <printf@plt>
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1199 <verifCaract+0x89>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<verifCaract>:
push   %rax
mov    (%rdi),%cl
lea    -0x61(%rcx),%eax
cmp    $0x19,%al
ja     111f <verifCaract+0xf>
add    $0xe0,%cl
mov    %cl,(%rdi)
add    $0xa5,%cl
mov    $0x1,%eax
cmp    $0xe5,%cl
ja     1146 <verifCaract+0x36>
lea    0xecd(%rip),%rdi
call   1030 <printf@plt>
lea    0xf17(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [86 x i8] c"\0ASeul les caract\8Are minuscules ou les majuscules sont autoris\82 pour saisir une lettre\00"
@.str.1 = [46 x i8] c"\0A\09- Pas d'accent\0A\09- Pas de caract\8Are speciaux\00"
define i32 @verifCaract(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = load i8, i8* %4
%6 = sext i8 %5 to i32
%7 = icmp sge i32 %6, 97
br i1 %7, label %8, label %20
8: ; preds = %1
%9 = load i8*, i8** %3
%10 = load i8, i8* %9
%11 = sext i8 %10 to i32
%12 = icmp sle i32 %11, 122
br i1 %12, label %13, label %20
13: ; preds = %8
%14 = load i8*, i8** %3
%15 = load i8, i8* %14
%16 = sext i8 %15 to i32
%17 = sub nsw i32 %16, 32
%18 = trunc i32 %17 to i8
%19 = load i8*, i8** %3
store i8 %18, i8* %19
br label %20
20: ; preds = %13, %8, %1
%21 = load i8*, i8** %3
%22 = load i8, i8* %21
%23 = sext i8 %22 to i32
%24 = icmp slt i32 %23, 65
br i1 %24, label %30, label %25
25: ; preds = %20
%26 = load i8*, i8** %3
%27 = load i8, i8* %26
%28 = sext i8 %27 to i32
%29 = icmp sgt i32 %28, 90
br i1 %29, label %30, label %33
30: ; preds = %25, %20
%31 = call i32 @printf(i8* getelementptr inbounds ([86 x i8], [86 x i8]* @.str, i64 0, i64 0))
%32 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %2
br label %34
33: ; preds = %25
store i32 1, i32* %2
br label %34
34: ; preds = %33, %30
%35 = load i32, i32* %2
ret i32 %35
}

LLVM IR (-O2):
@.str = [86 x i8] c"\0ASeul les caract\8Are minuscules ou les majuscules sont autoris\82 pour saisir une lettre\00"
@.str.1 = [46 x i8] c"\0A\09- Pas d'accent\0A\09- Pas de caract\8Are speciaux\00"
define i32 @verifCaract(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = add i8 %2, -97
%4 = icmp ult i8 %3, 26
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = add nsw i8 %2, -32
store i8 %6, i8* %0
br label %7
7: ; preds = %5, %1
%8 = phi i8 [ %6, %5 ], [ %2, %1 ]
%9 = add i8 %8, -91
%10 = icmp ult i8 %9, -26
br i1 %10, label %11, label %14
11: ; preds = %7
%12 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([86 x i8], [86 x i8]* @.str, i64 0, i64 0))
%13 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str.1, i64 0, i64 0))
br label %14
14: ; preds = %7, %11
%15 = phi i32 [ 0, %11 ], [ 1, %7 ]
ret i32 %15
}