#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*/ IF_execFct(char *);
int /*<<< orphan*/ free(void *);
char *getString();
void *makeFunction(char *);
int /*<<< orphan*/ rmLastFct();
scalar_t__ strlen(char *);
void IF_ExecCSf(void) {
  char *f;
  void *C;
  f = getString();
  if (f != NULL) {
    C = ((void *)NULL);
    if (strlen(f) > 0)
      C = makeFunction(f);
    free((void *)f);
    if (C != ((void *)NULL)) {
      IF_execFct("_f");
      rmLastFct();
    }
  }
}


x86 assembly (clang, -O0):
<IF_ExecCSf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <getString@plt>
mov    %rax,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     11d2 <IF_ExecCSf+0x72>
movq   $0x0,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1060 <strlen@plt>
cmp    $0x0,%rax
jle    11a6 <IF_ExecCSf+0x46>
mov    -0x8(%rbp),%rdi
call   1080 <makeFunction@plt>
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <free@plt>
cmpq   $0x0,-0x10(%rbp)
je     11cd <IF_ExecCSf+0x6d>
lea    0xe3f(%rip),%rdi
call   1050 <IF_execFct@plt>
mov    $0x0,%al
call   1070 <rmLastFct@plt>
jmp    11d2 <IF_ExecCSf+0x72>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<IF_ExecCSf>:
push   %r14
push   %rbx
push   %rax
xor    %eax,%eax
call   1030 <getString@plt>
test   %rax,%rax
je     11b2 <IF_ExecCSf+0x52>
mov    %rax,%rbx
mov    %rax,%rdi
call   1060 <strlen@plt>
test   %rax,%rax
jle    11ba <IF_ExecCSf+0x5a>
mov    %rbx,%rdi
call   1080 <makeFunction@plt>
mov    %rax,%r14
mov    %rbx,%rdi
call   1040 <free@plt>
test   %r14,%r14
je     11b2 <IF_ExecCSf+0x52>
lea    0xe61(%rip),%rdi
call   1050 <IF_execFct@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1070 <rmLastFct@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
mov    %rbx,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <free@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"_f\00"
define void @IF_ExecCSf() {
%1 = alloca i8*
%2 = alloca i8*
%3 = call i8* (...) @getString()
store i8* %3, i8** %1
%4 = load i8*, i8** %1
%5 = icmp ne i8* %4, null
br i1 %5, label %6, label %22
6: ; preds = %0
store i8* null, i8** %2
%7 = load i8*, i8** %1
%8 = call i64 @strlen(i8* %7)
%9 = icmp sgt i64 %8, 0
br i1 %9, label %10, label %13
10: ; preds = %6
%11 = load i8*, i8** %1
%12 = call i8* @makeFunction(i8* %11)
store i8* %12, i8** %2
br label %13
13: ; preds = %10, %6
%14 = load i8*, i8** %1
%15 = call i32 @free(i8* %14)
%16 = load i8*, i8** %2
%17 = icmp ne i8* %16, null
br i1 %17, label %18, label %21
18: ; preds = %13
%19 = call i32 @IF_execFct(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%20 = call i32 (...) @rmLastFct()
br label %21
21: ; preds = %18, %13
br label %22
22: ; preds = %21, %0
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"_f\00"
define void @IF_ExecCSf() {
%1 = tail call i8* (...) @getString()
%2 = icmp eq i8* %1, null
br i1 %2, label %15, label %3
3: ; preds = %0
%4 = tail call i64 @strlen(i8* %1)
%5 = icmp sgt i64 %4, 0
br i1 %5, label %6, label %13
6: ; preds = %3
%7 = tail call i8* @makeFunction(i8* %1)
%8 = icmp eq i8* %7, null
%9 = tail call i32 @free(i8* %1)
br i1 %8, label %15, label %10
10: ; preds = %6
%11 = tail call i32 @IF_execFct(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%12 = tail call i32 (...) @rmLastFct()
br label %15
13: ; preds = %3
%14 = tail call i32 @free(i8* %1)
br label %15
15: ; preds = %13, %6, %10, %0
ret void
}