#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*/ dropTrSuite();
scalar_t__ fctExists(char *);
int /*<<< orphan*/ helpShow(char *);
int /*<<< orphan*/ printf(char *, char *);
void helpStd(char *L) {
  dropTrSuite();
  if (fctExists(L) == 0) {
    printf("%s is not a User System function !\n", L);
    return;
  }
  if (*L == '_') {
    printf("%s :\n", L);
    printf("The same as '%s', but with all displays in the log file.\n", L + 1);
    L++;
  }
  helpShow(L);
}


x86 assembly (clang, -O0):
<helpStd>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x0,%al
call   1060 <dropTrSuite@plt>
mov    -0x8(%rbp),%rdi
call   1040 <fctExists@plt>
cmp    $0x0,%rax
jne    117b <helpStd+0x3b>
mov    -0x8(%rbp),%rsi
lea    0xe8f(%rip),%rdi
call   1050 <printf@plt>
jmp    11c4 <helpStd+0x84>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5f,%eax
jne    11bb <helpStd+0x7b>
mov    -0x8(%rbp),%rsi
lea    0xe8e(%rip),%rdi
call   1050 <printf@plt>
mov    -0x8(%rbp),%rsi
add    $0x1,%rsi
lea    0xe80(%rip),%rdi
call   1050 <printf@plt>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <helpShow@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<helpStd>:
push   %rbx
mov    %rdi,%rbx
xor    %eax,%eax
call   1060 <dropTrSuite@plt>
mov    %rbx,%rdi
call   1040 <fctExists@plt>
test   %rax,%rax
je     1188 <helpStd+0x48>
cmpb   $0x5f,(%rbx)
jne    117f <helpStd+0x3f>
lea    0xec0(%rip),%rdi
mov    %rbx,%rsi
call   1050 <printf@plt>
add    $0x1,%rbx
lea    0xeb3(%rip),%rdi
mov    %rbx,%rsi
call   1050 <printf@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <helpShow@plt>
lea    0xe71(%rip),%rdi
mov    %rbx,%rsi
pop    %rbx
jmp    1050 <printf@plt>

LLVM IR (-O0):
@.str = [36 x i8] c"%s is not a User System function !\0A\00"
@.str.1 = [6 x i8] c"%s :\0A\00"
@.str.2 = [58 x i8] c"The same as '%s', but with all displays in the log file.\0A\00"
define void @helpStd(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 (...) @dropTrSuite()
%4 = load i8*, i8** %2
%5 = call i64 @fctExists(i8* %4)
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = load i8*, i8** %2
%9 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i8* %8)
br label %26
10: ; preds = %1
%11 = load i8*, i8** %2
%12 = load i8, i8* %11
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %13, 95
br i1 %14, label %15, label %23
15: ; preds = %10
%16 = load i8*, i8** %2
%17 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %16)
%18 = load i8*, i8** %2
%19 = getelementptr inbounds i8, i8* %18, i64 1
%20 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.2, i64 0, i64 0), i8* %19)
%21 = load i8*, i8** %2
%22 = getelementptr inbounds i8, i8* %21, i32 1
store i8* %22, i8** %2
br label %23
23: ; preds = %15, %10
%24 = load i8*, i8** %2
%25 = call i32 @helpShow(i8* %24)
br label %26
26: ; preds = %23, %7
ret void
}

LLVM IR (-O2):
@.str = [36 x i8] c"%s is not a User System function !\0A\00"
@.str.1 = [6 x i8] c"%s :\0A\00"
@.str.2 = [58 x i8] c"The same as '%s', but with all displays in the log file.\0A\00"
define void @helpStd(i8* %0) {
%2 = tail call i32 (...) @dropTrSuite()
%3 = tail call i64 @fctExists(i8* %0)
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i8* %0)
br label %17
7: ; preds = %1
%8 = load i8, i8* %0
%9 = icmp eq i8 %8, 95
br i1 %9, label %10, label %14
10: ; preds = %7
%11 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%12 = getelementptr inbounds i8, i8* %0, i64 1
%13 = tail call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.2, i64 0, i64 0), i8* %12)
br label %14
14: ; preds = %10, %7
%15 = phi i8* [ %12, %10 ], [ %0, %7 ]
%16 = tail call i32 @helpShow(i8* %15)
br label %17
17: ; preds = %14, %5
ret void
}