#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*/ *strchr(char *, char);
int lehena_pasa(char *dena) {
  int zenbat = 0;
  while (strchr("\x0E\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D"
                "\x1E^~#@$&*+=`|'.'','' "
                "''\t''\n'{};:><?/()%![]-_\x96\x98\x99\x9C\x9D'\"''\''",
                dena[zenbat++]) != NULL)
    ;
  zenbat--;
  while (strchr("\x0E\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D"
                "\x1E^~#@$&*+=`|'.'','' "
                "''\t''\n'{};:><?/()%![]-_\x96\x98\x99\x9C\x9D'\"''\''",
                dena[zenbat++]) == NULL)
    ;
  zenbat--;
  while (strchr("\x0E\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D"
                "\x1E^~#@$&*+=`|'.'','' "
                "''\t''\n'{};:><?/()%![]-_\x96\x98\x99\x9C\x9D'\"''\''",
                dena[zenbat++]) != NULL)
    ;
  dena[zenbat] = '\0';
  return (zenbat);
}


x86 assembly (clang, -O0):
<lehena_pasa>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
lea    0xec4(%rip),%rdi
movsbl (%rax,%rcx,1),%esi
call   1030 <strchr@plt>
cmp    $0x0,%rax
je     1154 <lehena_pasa+0x44>
jmp    1123 <lehena_pasa+0x13>
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
lea    0xe8a(%rip),%rdi
movsbl (%rax,%rcx,1),%esi
call   1030 <strchr@plt>
cmp    $0x0,%rax
jne    118e <lehena_pasa+0x7e>
jmp    115d <lehena_pasa+0x4d>
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%rax
mov    -0xc(%rbp),%ecx
mov    %ecx,%edx
add    $0x1,%edx
mov    %edx,-0xc(%rbp)
movslq %ecx,%rcx
lea    0xe50(%rip),%rdi
movsbl (%rax,%rcx,1),%esi
call   1030 <strchr@plt>
cmp    $0x0,%rax
je     11c8 <lehena_pasa+0xb8>
jmp    1197 <lehena_pasa+0x87>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movb   $0x0,(%rax,%rcx,1)
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<lehena_pasa>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
mov    $0xffffffff,%ebp
lea    0xeda(%rip),%r15
mov    %rdi,%rbx
nopl   0x0(%rax)
movsbl (%rbx),%esi
mov    %r15,%rdi
call   1030 <strchr@plt>
add    $0x1,%ebp
add    $0x1,%rbx
test   %rax,%rax
jne    1130 <lehena_pasa+0x20>
mov    %ebp,%ebp
add    $0xffffffffffffffff,%rbp
lea    0xeac(%rip),%rbx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsbl 0x1(%r14,%rbp,1),%esi
mov    %rbx,%rdi
call   1030 <strchr@plt>
add    $0x1,%rbp
test   %rax,%rax
je     1160 <lehena_pasa+0x50>
mov    %ebp,%ebx
lea    0xe80(%rip),%r15
movsbl (%r14,%rbx,1),%esi
add    $0x1,%rbx
mov    %r15,%rdi
call   1030 <strchr@plt>
test   %rax,%rax
jne    1180 <lehena_pasa+0x70>
mov    %ebx,%eax
movb   $0x0,(%r14,%rax,1)
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [70 x i8] c"\0E\10\11\12\13\14\15\16\17\18\19\1A\1B\1C\1D\1E^~#@$&*+=`|'.'','' ''\09''\0A'{};:><?/()%![]-_\96\98\99\9C\9D'\22''''\00"
define i32 @lehena_pasa(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
store i8* %0, i8** %2
store i32 0, i32* %3
br label %4
4: ; preds = %13, %1
%5 = load i8*, i8** %2
%6 = load i32, i32* %3
%7 = add nsw i32 %6, 1
store i32 %7, i32* %3
%8 = sext i32 %6 to i64
%9 = getelementptr inbounds i8, i8* %5, i64 %8
%10 = load i8, i8* %9
%11 = call i32* @strchr(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str, i64 0, i64 0), i8 signext %10)
%12 = icmp ne i32* %11, null
br i1 %12, label %13, label %14
13: ; preds = %4
br label %4
14: ; preds = %4
%15 = load i32, i32* %3
%16 = add nsw i32 %15, -1
store i32 %16, i32* %3
br label %17
17: ; preds = %26, %14
%18 = load i8*, i8** %2
%19 = load i32, i32* %3
%20 = add nsw i32 %19, 1
store i32 %20, i32* %3
%21 = sext i32 %19 to i64
%22 = getelementptr inbounds i8, i8* %18, i64 %21
%23 = load i8, i8* %22
%24 = call i32* @strchr(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str, i64 0, i64 0), i8 signext %23)
%25 = icmp eq i32* %24, null
br i1 %25, label %26, label %27
26: ; preds = %17
br label %17
27: ; preds = %17
%28 = load i32, i32* %3
%29 = add nsw i32 %28, -1
store i32 %29, i32* %3
br label %30
30: ; preds = %39, %27
%31 = load i8*, i8** %2
%32 = load i32, i32* %3
%33 = add nsw i32 %32, 1
store i32 %33, i32* %3
%34 = sext i32 %32 to i64
%35 = getelementptr inbounds i8, i8* %31, i64 %34
%36 = load i8, i8* %35
%37 = call i32* @strchr(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str, i64 0, i64 0), i8 signext %36)
%38 = icmp ne i32* %37, null
br i1 %38, label %39, label %40
39: ; preds = %30
br label %30
40: ; preds = %30
%41 = load i8*, i8** %2
%42 = load i32, i32* %3
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, i8* %41, i64 %43
store i8 0, i8* %44
%45 = load i32, i32* %3
ret i32 %45
}

LLVM IR (-O2):
@.str = [70 x i8] c"\0E\10\11\12\13\14\15\16\17\18\19\1A\1B\1C\1D\1E^~#@$&*+=`|'.'','' ''\09''\0A'{};:><?/()%![]-_\96\98\99\9C\9D'\22''''\00"
define i32 @lehena_pasa(i8* nocapture %0) {
br label %2
2: ; preds = %2, %1
%3 = phi i64 [ %4, %2 ], [ 0, %1 ]
%4 = add nuw i64 %3, 1
%5 = getelementptr inbounds i8, i8* %0, i64 %3
%6 = load i8, i8* %5
%7 = tail call i32* @strchr(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str, i64 0, i64 0), i8 signext %6)
%8 = icmp eq i32* %7, null
br i1 %8, label %9, label %2
9: ; preds = %2
%10 = and i64 %3, 4294967295
br label %11
11: ; preds = %9, %11
%12 = phi i64 [ %10, %9 ], [ %13, %11 ]
%13 = add nuw i64 %12, 1
%14 = getelementptr inbounds i8, i8* %0, i64 %12
%15 = load i8, i8* %14
%16 = tail call i32* @strchr(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str, i64 0, i64 0), i8 signext %15)
%17 = icmp eq i32* %16, null
br i1 %17, label %11, label %18
18: ; preds = %11
%19 = and i64 %12, 4294967295
br label %20
20: ; preds = %18, %20
%21 = phi i64 [ %19, %18 ], [ %22, %20 ]
%22 = add nuw i64 %21, 1
%23 = getelementptr inbounds i8, i8* %0, i64 %21
%24 = load i8, i8* %23
%25 = tail call i32* @strchr(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str, i64 0, i64 0), i8 signext %24)
%26 = icmp eq i32* %25, null
br i1 %26, label %27, label %20
27: ; preds = %20
%28 = trunc i64 %22 to i32
%29 = and i64 %22, 4294967295
%30 = getelementptr inbounds i8, i8* %0, i64 %29
store i8 0, i8* %30
ret i32 %28
}