#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 /*<<< orphan*/ sclCreate(char *);
int /*<<< orphan*/ tapCreate(char *);
scalar_t__ testExt(char *, char *);
int /*<<< orphan*/ trdCreate(char *);
void create(char *path) {
  if (testExt(path, "tap")) {
    tapCreate(path);
  } else if (testExt(path, "scl")) {
    sclCreate(path);
  } else if (testExt(path, "trd")) {
    trdCreate(path);
  } else {
    printf("Unknown type, use TAP SCL TRD please\n");
  }
}


x86 assembly (clang, -O0):
<create>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xe99(%rip),%rsi
call   1060 <testExt@plt>
cmp    $0x0,%rax
je     1184 <create+0x34>
mov    -0x8(%rbp),%rdi
call   1070 <tapCreate@plt>
jmp    11ea <create+0x9a>
mov    -0x8(%rbp),%rdi
lea    0xe75(%rip),%rsi
call   1060 <testExt@plt>
cmp    $0x0,%rax
je     11ac <create+0x5c>
mov    -0x8(%rbp),%rdi
call   1040 <sclCreate@plt>
jmp    11e5 <create+0x95>
mov    -0x8(%rbp),%rdi
lea    0xe51(%rip),%rsi
call   1060 <testExt@plt>
cmp    $0x0,%rax
je     11d4 <create+0x84>
mov    -0x8(%rbp),%rdi
call   1050 <trdCreate@plt>
jmp    11e0 <create+0x90>
lea    0xe31(%rip),%rdi
call   1030 <printf@plt>
jmp    11e5 <create+0x95>
jmp    11ea <create+0x9a>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<create>:
push   %rbx
mov    %rdi,%rbx
lea    0xea5(%rip),%rsi
call   1060 <testExt@plt>
test   %rax,%rax
je     116e <create+0x1e>
mov    %rbx,%rdi
pop    %rbx
jmp    1070 <tapCreate@plt>
lea    0xe8f(%rip),%rsi
mov    %rbx,%rdi
call   1060 <testExt@plt>
test   %rax,%rax
je     118b <create+0x3b>
mov    %rbx,%rdi
pop    %rbx
jmp    1040 <sclCreate@plt>
lea    0xe76(%rip),%rsi
mov    %rbx,%rdi
call   1060 <testExt@plt>
test   %rax,%rax
je     11a8 <create+0x58>
mov    %rbx,%rdi
pop    %rbx
jmp    1050 <trdCreate@plt>
lea    0xe5d(%rip),%rdi
pop    %rbx
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"tap\00"
@.str.1 = [4 x i8] c"scl\00"
@.str.2 = [4 x i8] c"trd\00"
@.str.3 = [38 x i8] c"Unknown type, use TAP SCL TRD please\0A\00"
define void @create(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i64 @testExt(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i8*, i8** %2
%8 = call i32 @tapCreate(i8* %7)
br label %27
9: ; preds = %1
%10 = load i8*, i8** %2
%11 = call i64 @testExt(i8* %10, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %16
13: ; preds = %9
%14 = load i8*, i8** %2
%15 = call i32 @sclCreate(i8* %14)
br label %26
16: ; preds = %9
%17 = load i8*, i8** %2
%18 = call i64 @testExt(i8* %17, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %16
%21 = load i8*, i8** %2
%22 = call i32 @trdCreate(i8* %21)
br label %25
23: ; preds = %16
%24 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0))
br label %25
25: ; preds = %23, %20
br label %26
26: ; preds = %25, %13
br label %27
27: ; preds = %26, %6
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"tap\00"
@.str.1 = [4 x i8] c"scl\00"
@.str.2 = [4 x i8] c"trd\00"
@str = [37 x i8] c"Unknown type, use TAP SCL TRD please\00"
define void @create(i8* %0) {
%2 = tail call i64 @testExt(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i64 %2, 0
br i1 %3, label %6, label %4
4: ; preds = %1
%5 = tail call i32 @tapCreate(i8* %0)
br label %18
6: ; preds = %1
%7 = tail call i64 @testExt(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%8 = icmp eq i64 %7, 0
br i1 %8, label %11, label %9
9: ; preds = %6
%10 = tail call i32 @sclCreate(i8* %0)
br label %18
11: ; preds = %6
%12 = tail call i64 @testExt(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%13 = icmp eq i64 %12, 0
br i1 %13, label %16, label %14
14: ; preds = %11
%15 = tail call i32 @trdCreate(i8* %0)
br label %18
16: ; preds = %11
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str, i64 0, i64 0))
br label %18
18: ; preds = %9, %16, %14, %4
ret void
}