const char *retourDelimiteur(char c) {
  int taille = 24;
  char *tab[] = {"\n", " ", "\t", "(", ")", "[", "]", "{",  "}", "=", "<", ">",
                 "\"", ",", "@",  ";", "+", "-", "*", "\\", "/", "%", ";", "."};
  char tab1[] = {'\n', ' ', '\t', '(', ')', '[', ']', '{',  '}', '=', '<', '>',
                 '\"', ',', '@',  ';', '+', '-', '*', '\\', '/', '%', ';', '.'};
  int v = 0;
  for (int i = 0; i < 24; i++)
    if (c == tab1[i])
      v = i;
  return &tab[v][0];
}


x86 assembly (clang, -O0):
<retourDelimiteur>:
push   %rbp
mov    %rsp,%rbp
sub    $0x100,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movl   $0x18,-0x8(%rbp)
lea    -0xd0(%rbp),%rdi
lea    0x2c2a(%rip),%rsi
mov    $0xc0,%edx
call   1030 <memcpy@plt>
mov    0xee9(%rip),%rax
mov    %rax,-0xf0(%rbp)
mov    0xee3(%rip),%rax
mov    %rax,-0xe8(%rbp)
mov    0xedd(%rip),%rax
mov    %rax,-0xe0(%rbp)
movl   $0x0,-0xf4(%rbp)
movl   $0x0,-0xf8(%rbp)
cmpl   $0x18,-0xf8(%rbp)
jge    11cb <retourDelimiteur+0xbb>
movsbl -0x1(%rbp),%eax
movslq -0xf8(%rbp),%rcx
movsbl -0xf0(%rbp,%rcx,1),%ecx
ff
cmp    %ecx,%eax
jne    11b2 <retourDelimiteur+0xa2>
mov    -0xf8(%rbp),%eax
mov    %eax,-0xf4(%rbp)
jmp    11b7 <retourDelimiteur+0xa7>
mov    -0xf8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xf8(%rbp)
jmp    117e <retourDelimiteur+0x6e>
movslq -0xf4(%rbp),%rax
mov    -0xd0(%rbp,%rax,8),%rax
ff
add    $0x100,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<retourDelimiteur>:
xor    %eax,%eax
cmp    $0x20,%dil
sete   %al
cmp    $0x9,%dil
mov    $0x2,%ecx
cmovne %rax,%rcx
cmp    $0x28,%dil
mov    $0x3,%eax
cmovne %rcx,%rax
cmp    $0x29,%dil
mov    $0x4,%ecx
cmovne %rax,%rcx
cmp    $0x5b,%dil
mov    $0x5,%eax
cmovne %rcx,%rax
cmp    $0x5d,%dil
mov    $0x6,%ecx
cmovne %rax,%rcx
cmp    $0x7b,%dil
mov    $0x7,%eax
cmovne %rcx,%rax
cmp    $0x7d,%dil
mov    $0x8,%ecx
cmovne %rax,%rcx
cmp    $0x3d,%dil
mov    $0x9,%eax
cmovne %rcx,%rax
cmp    $0x3c,%dil
mov    $0xa,%ecx
cmovne %rax,%rcx
cmp    $0x3e,%dil
mov    $0xb,%eax
cmovne %rcx,%rax
cmp    $0x22,%dil
mov    $0xc,%ecx
cmovne %rax,%rcx
cmp    $0x2c,%dil
mov    $0xd,%eax
cmovne %rcx,%rax
cmp    $0x40,%dil
mov    $0xe,%ecx
cmovne %rax,%rcx
cmp    $0x3b,%dil
mov    $0xf,%eax
cmovne %rcx,%rax
cmp    $0x2b,%dil
mov    $0x10,%ecx
cmovne %rax,%rcx
cmp    $0x2d,%dil
mov    $0x11,%eax
cmovne %rcx,%rax
cmp    $0x2a,%dil
mov    $0x12,%ecx
cmovne %rax,%rcx
cmp    $0x5c,%dil
mov    $0x13,%eax
cmovne %rcx,%rax
cmp    $0x2f,%dil
mov    $0x14,%ecx
cmovne %rax,%rcx
cmp    $0x25,%dil
mov    $0x15,%eax
cmovne %rcx,%rax
cmp    $0x3b,%dil
mov    $0x16,%ecx
cmovne %rax,%rcx
cmp    $0x2e,%dil
mov    $0x17,%eax
cmovne %rcx,%rax
lea    0xe02(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
ret

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [2 x i8] c" \00"
@.str.2 = [2 x i8] c"\09\00"
@.str.3 = [2 x i8] c"(\00"
@.str.4 = [2 x i8] c")\00"
@.str.5 = [2 x i8] c"[\00"
@.str.6 = [2 x i8] c"]\00"
@.str.7 = [2 x i8] c"{\00"
@.str.8 = [2 x i8] c"}\00"
@.str.9 = [2 x i8] c"=\00"
@.str.10 = [2 x i8] c"<\00"
@.str.11 = [2 x i8] c">\00"
@.str.12 = [2 x i8] c"\22\00"
@.str.13 = [2 x i8] c",\00"
@.str.14 = [2 x i8] c"@\00"
@.str.15 = [2 x i8] c";\00"
@.str.16 = [2 x i8] c"+\00"
@.str.17 = [2 x i8] c"-\00"
@.str.18 = [2 x i8] c"*\00"
@.str.19 = [2 x i8] c"\\\00"
@.str.20 = [2 x i8] c"/\00"
@.str.21 = [2 x i8] c"%\00"
@.str.22 = [2 x i8] c".\00"
@__const.retourDelimiteur.tab = [24 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i32 0, i32 0)]
@__const.retourDelimiteur.tab1 = [24 x i8] c"\0A \09()[]{}=<>\22,@;+-*\\/%;."
define i8* @retourDelimiteur(i8 signext %0) {
%2 = alloca i8
%3 = alloca i32
%4 = alloca [24 x i8*]
%5 = alloca [24 x i8]
%6 = alloca i32
%7 = alloca i32
store i8 %0, i8* %2
store i32 24, i32* %3
%8 = bitcast [24 x i8*]* %4 to i8*
%9 = bitcast [24 x i8]* %5 to i8*
store i32 0, i32* %6
store i32 0, i32* %7
br label %10
10: ; preds = %25, %1
%11 = load i32, i32* %7
%12 = icmp slt i32 %11, 24
br i1 %12, label %13, label %28
13: ; preds = %10
%14 = load i8, i8* %2
%15 = sext i8 %14 to i32
%16 = load i32, i32* %7
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [24 x i8], [24 x i8]* %5, i64 0, i64 %17
%19 = load i8, i8* %18
%20 = sext i8 %19 to i32
%21 = icmp eq i32 %15, %20
br i1 %21, label %22, label %24
22: ; preds = %13
%23 = load i32, i32* %7
store i32 %23, i32* %6
br label %24
24: ; preds = %22, %13
br label %25
25: ; preds = %24
%26 = load i32, i32* %7
%27 = add nsw i32 %26, 1
store i32 %27, i32* %7
br label %10
28: ; preds = %10
%29 = load i32, i32* %6
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [24 x i8*], [24 x i8*]* %4, i64 0, i64 %30
%32 = load i8*, i8** %31
%33 = getelementptr inbounds i8, i8* %32, i64 0
ret i8* %33
}

LLVM IR (-O2):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [2 x i8] c" \00"
@.str.2 = [2 x i8] c"\09\00"
@.str.3 = [2 x i8] c"(\00"
@.str.4 = [2 x i8] c")\00"
@.str.5 = [2 x i8] c"[\00"
@.str.6 = [2 x i8] c"]\00"
@.str.7 = [2 x i8] c"{\00"
@.str.8 = [2 x i8] c"}\00"
@.str.9 = [2 x i8] c"=\00"
@.str.10 = [2 x i8] c"<\00"
@.str.11 = [2 x i8] c">\00"
@.str.12 = [2 x i8] c"\22\00"
@.str.13 = [2 x i8] c",\00"
@.str.14 = [2 x i8] c"@\00"
@.str.15 = [2 x i8] c";\00"
@.str.16 = [2 x i8] c"+\00"
@.str.17 = [2 x i8] c"-\00"
@.str.18 = [2 x i8] c"*\00"
@.str.19 = [2 x i8] c"\\\00"
@.str.20 = [2 x i8] c"/\00"
@.str.21 = [2 x i8] c"%\00"
@.str.22 = [2 x i8] c".\00"
@reltable.retourDelimiteur = [24 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str to i64), i64 ptrtoint ([24 x i32]* @reltable.retourDelimiteur to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.1 to i64), i64 ptrtoint ([24 x i32]* @reltable.retourDelimiteur to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.2 to i64), i64 ptrtoint ([24 x i32]* @reltable.retourDelimiteur to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.3 to i64), i64 ptrtoint ([24 x i32]* @reltable.retourDelimiteur to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.4 to i64), i64 ptrtoint ([24 x i32]* @reltable.retourDelimiteur to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.5 to i64), i64 ptrtoint ([24 x i32]* @reltable.retourDelimiteur to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.6 to i64), i64 ptrtoint ([24 x i32]* @reltable.retourDelimiteur to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.7 to i64), i64 ptrtoint ([24 x i32]* @reltable.retourDelimiteur to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.8 to i64), i64 ptrtoint ([24 x i32]* @reltable.retourDelimiteur to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.9 to i64), i64 ptrtoint ([24 x i32]* @reltable.retourDelimiteur to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.10 to i64), i64 ptrtoint ([24 x i32]* @reltable.retourDelimiteur to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.11 to i64), i64 ptrtoint ([24 x i32]* @reltable.retourDelimiteur to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.12 to i64), i64 ptrtoint ([24 x i32]* @reltable.retourDelimiteur to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.13 to i64), i64 ptrtoint ([24 x i32]* @reltable.retourDelimiteur to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.14 to i64), i64 ptrtoint ([24 x i32]* @reltable.retourDelimiteur to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.15 to i64), i64 ptrtoint ([24 x i32]* @reltable.retourDelimiteur to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.16 to i64), i64 ptrtoint ([24 x i32]* @reltable.retourDelimiteur to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.17 to i64), i64 ptrtoint ([24 x i32]* @reltable.retourDelimiteur to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.18 to i64), i64 ptrtoint ([24 x i32]* @reltable.retourDelimiteur to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.19 to i64), i64 ptrtoint ([24 x i32]* @reltable.retourDelimiteur to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.20 to i64), i64 ptrtoint ([24 x i32]* @reltable.retourDelimiteur to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.21 to i64), i64 ptrtoint ([24 x i32]* @reltable.retourDelimiteur to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.15 to i64), i64 ptrtoint ([24 x i32]* @reltable.retourDelimiteur to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.22 to i64), i64 ptrtoint ([24 x i32]* @reltable.retourDelimiteur to i64)) to i32)]
define i8* @retourDelimiteur(i8 signext %0) {
%2 = icmp eq i8 %0, 32
%3 = icmp eq i8 %0, 9
%4 = icmp eq i8 %0, 40
%5 = icmp eq i8 %0, 41
%6 = icmp eq i8 %0, 91
%7 = icmp eq i8 %0, 93
%8 = icmp eq i8 %0, 123
%9 = icmp eq i8 %0, 125
%10 = icmp eq i8 %0, 61
%11 = icmp eq i8 %0, 60
%12 = icmp eq i8 %0, 62
%13 = icmp eq i8 %0, 34
%14 = icmp eq i8 %0, 44
%15 = icmp eq i8 %0, 64
%16 = icmp eq i8 %0, 59
%17 = icmp eq i8 %0, 43
%18 = icmp eq i8 %0, 45
%19 = icmp eq i8 %0, 42
%20 = icmp eq i8 %0, 92
%21 = icmp eq i8 %0, 47
%22 = icmp eq i8 %0, 37
%23 = icmp eq i8 %0, 46
%24 = zext i1 %2 to i64
%25 = select i1 %3, i64 2, i64 %24
%26 = select i1 %4, i64 3, i64 %25
%27 = select i1 %5, i64 4, i64 %26
%28 = select i1 %6, i64 5, i64 %27
%29 = select i1 %7, i64 6, i64 %28
%30 = select i1 %8, i64 7, i64 %29
%31 = select i1 %9, i64 8, i64 %30
%32 = select i1 %10, i64 9, i64 %31
%33 = select i1 %11, i64 10, i64 %32
%34 = select i1 %12, i64 11, i64 %33
%35 = select i1 %13, i64 12, i64 %34
%36 = select i1 %14, i64 13, i64 %35
%37 = select i1 %15, i64 14, i64 %36
%38 = select i1 %16, i64 15, i64 %37
%39 = select i1 %17, i64 16, i64 %38
%40 = select i1 %18, i64 17, i64 %39
%41 = select i1 %19, i64 18, i64 %40
%42 = select i1 %20, i64 19, i64 %41
%43 = select i1 %21, i64 20, i64 %42
%44 = select i1 %22, i64 21, i64 %43
%45 = select i1 %16, i64 22, i64 %44
%46 = select i1 %23, i64 23, i64 %45
%47 = shl i64 %46, 2
%48 = call i8* @llvm.load.relative.i64(i8* bitcast ([24 x i32]* @reltable.retourDelimiteur to i8*), i64 %47)
ret i8* %48
}