#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 */
typedef int /*<<< orphan*/ version;
typedef int /*<<< orphan*/ noun;
typedef int /*<<< orphan*/ adj;

/* Variables and functions */
size_t rand_uint32_max(int);
int /*<<< orphan*/ strcat(char *, char *);
void product_create_name(char *buf) {
  char *adj[] = {
      "Super", "Sentient", "Cloud", "Extreme", "Mobile-Centric",
  };
  char *noun[] = {
      "Computer", "Framework", "Marketplace", "Enabler", "Chip",
  };
  char *version[] = {
      "V4", "900", "1.2", "0.0.1", "Beta",
  };
  buf[0] = '\0';
  strcat(buf, adj[rand_uint32_max((sizeof(adj) / sizeof((adj)[0])))]);
  strcat(buf, " ");
  strcat(buf, noun[rand_uint32_max((sizeof(noun) / sizeof((noun)[0])))]);
  strcat(buf, " ");
  strcat(buf,
         version[rand_uint32_max((sizeof(version) / sizeof((version)[0])))]);
}


x86 assembly (clang, -O0):
<product_create_name>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1040 <memset@plt>
lea    0xeaa(%rip),%rax
mov    %rax,-0x30(%rbp)
lea    0xea5(%rip),%rax
mov    %rax,-0x28(%rbp)
lea    0xea3(%rip),%rax
mov    %rax,-0x20(%rbp)
lea    0xe9e(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    0xe9b(%rip),%rax
mov    %rax,-0x10(%rbp)
lea    -0x60(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1040 <memset@plt>
lea    0xe8f(%rip),%rax
mov    %rax,-0x60(%rbp)
lea    0xe8d(%rip),%rax
mov    %rax,-0x58(%rbp)
lea    0xe8c(%rip),%rax
mov    %rax,-0x50(%rbp)
lea    0xe8d(%rip),%rax
mov    %rax,-0x48(%rbp)
lea    0xe8a(%rip),%rax
mov    %rax,-0x40(%rbp)
lea    -0x90(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1040 <memset@plt>
lea    0xe71(%rip),%rax
mov    %rax,-0x90(%rbp)
lea    0xe66(%rip),%rax
mov    %rax,-0x88(%rbp)
lea    0xe5c(%rip),%rax
mov    %rax,-0x80(%rbp)
lea    0xe55(%rip),%rax
mov    %rax,-0x78(%rbp)
lea    0xe50(%rip),%rax
mov    %rax,-0x70(%rbp)
mov    -0x8(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x8(%rbp),%rax
mov    %rax,-0xa8(%rbp)
mov    $0x5,%edi
call   1030 <rand_uint32_max@plt>
mov    -0xa8(%rbp),%rdi
mov    -0x30(%rbp,%rax,8),%rsi
call   1050 <strcat@plt>
mov    -0x8(%rbp),%rdi
lea    0xe19(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0xa0(%rbp)
mov    $0x5,%edi
call   1030 <rand_uint32_max@plt>
mov    -0xa0(%rbp),%rdi
mov    -0x60(%rbp,%rax,8),%rsi
call   1050 <strcat@plt>
mov    -0x8(%rbp),%rdi
lea    0xde3(%rip),%rsi
call   1050 <strcat@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x98(%rbp)
mov    $0x5,%edi
call   1030 <rand_uint32_max@plt>
mov    -0x98(%rbp),%rdi
mov    -0x90(%rbp,%rax,8),%rsi
ff
call   1050 <strcat@plt>
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<product_create_name>:
push   %r14
push   %rbx
sub    $0x88,%rsp
mov    %rdi,%rbx
lea    0xecc(%rip),%rax
mov    %rax,0x60(%rsp)
lea    0xec6(%rip),%rax
mov    %rax,0x68(%rsp)
lea    0xec3(%rip),%rax
mov    %rax,0x70(%rsp)
lea    0xebd(%rip),%rax
mov    %rax,0x78(%rsp)
lea    0xeb9(%rip),%rax
mov    %rax,0x80(%rsp)
lea    0xeb9(%rip),%rax
mov    %rax,0x30(%rsp)
lea    0xeb6(%rip),%rax
mov    %rax,0x38(%rsp)
lea    0xeb4(%rip),%rax
mov    %rax,0x40(%rsp)
lea    0xeb4(%rip),%rax
mov    %rax,0x48(%rsp)
lea    0xeb0(%rip),%rax
mov    %rax,0x50(%rsp)
lea    0xea9(%rip),%rax
mov    %rax,(%rsp)
lea    0xea1(%rip),%rax
mov    %rax,0x8(%rsp)
lea    0xe99(%rip),%rax
mov    %rax,0x10(%rsp)
lea    0xe91(%rip),%rax
mov    %rax,0x18(%rsp)
lea    0xe8b(%rip),%rax
mov    %rax,0x20(%rsp)
movb   $0x0,(%rdi)
mov    $0x5,%edi
call   1030 <rand_uint32_max@plt>
mov    0x60(%rsp,%rax,8),%rsi
mov    %rbx,%rdi
call   1040 <strcat@plt>
lea    0xe6a(%rip),%r14
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <strcat@plt>
mov    $0x5,%edi
call   1030 <rand_uint32_max@plt>
mov    0x30(%rsp,%rax,8),%rsi
mov    %rbx,%rdi
call   1040 <strcat@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <strcat@plt>
mov    $0x5,%edi
call   1030 <rand_uint32_max@plt>
mov    (%rsp,%rax,8),%rsi
mov    %rbx,%rdi
add    $0x88,%rsp
pop    %rbx
pop    %r14
jmp    1040 <strcat@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"Super\00"
@.str.1 = [9 x i8] c"Sentient\00"
@.str.2 = [6 x i8] c"Cloud\00"
@.str.3 = [8 x i8] c"Extreme\00"
@.str.4 = [15 x i8] c"Mobile-Centric\00"
@.str.5 = [9 x i8] c"Computer\00"
@.str.6 = [10 x i8] c"Framework\00"
@.str.7 = [12 x i8] c"Marketplace\00"
@.str.8 = [8 x i8] c"Enabler\00"
@.str.9 = [5 x i8] c"Chip\00"
@.str.10 = [3 x i8] c"V4\00"
@.str.11 = [4 x i8] c"900\00"
@.str.12 = [4 x i8] c"1.2\00"
@.str.13 = [6 x i8] c"0.0.1\00"
@.str.14 = [5 x i8] c"Beta\00"
@.str.15 = [2 x i8] c" \00"
define void @product_create_name(i8* %0) {
%2 = alloca i8*
%3 = alloca [5 x i8*]
%4 = alloca [5 x i8*]
%5 = alloca [5 x i8*]
store i8* %0, i8** %2
%6 = bitcast [5 x i8*]* %3 to i8*
%7 = bitcast i8* %6 to [5 x i8*]*
%8 = getelementptr inbounds [5 x i8*], [5 x i8*]* %7, i32 0, i32 0
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), i8** %8
%9 = getelementptr inbounds [5 x i8*], [5 x i8*]* %7, i32 0, i32 1
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i32 0, i32 0), i8** %9
%10 = getelementptr inbounds [5 x i8*], [5 x i8*]* %7, i32 0, i32 2
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i32 0, i32 0), i8** %10
%11 = getelementptr inbounds [5 x i8*], [5 x i8*]* %7, i32 0, i32 3
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i32 0, i32 0), i8** %11
%12 = getelementptr inbounds [5 x i8*], [5 x i8*]* %7, i32 0, i32 4
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i32 0, i32 0), i8** %12
%13 = bitcast [5 x i8*]* %4 to i8*
%14 = bitcast i8* %13 to [5 x i8*]*
%15 = getelementptr inbounds [5 x i8*], [5 x i8*]* %14, i32 0, i32 0
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i32 0, i32 0), i8** %15
%16 = getelementptr inbounds [5 x i8*], [5 x i8*]* %14, i32 0, i32 1
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i32 0, i32 0), i8** %16
%17 = getelementptr inbounds [5 x i8*], [5 x i8*]* %14, i32 0, i32 2
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i32 0, i32 0), i8** %17
%18 = getelementptr inbounds [5 x i8*], [5 x i8*]* %14, i32 0, i32 3
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i32 0, i32 0), i8** %18
%19 = getelementptr inbounds [5 x i8*], [5 x i8*]* %14, i32 0, i32 4
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i32 0, i32 0), i8** %19
%20 = bitcast [5 x i8*]* %5 to i8*
%21 = bitcast i8* %20 to [5 x i8*]*
%22 = getelementptr inbounds [5 x i8*], [5 x i8*]* %21, i32 0, i32 0
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i32 0, i32 0), i8** %22
%23 = getelementptr inbounds [5 x i8*], [5 x i8*]* %21, i32 0, i32 1
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i32 0, i32 0), i8** %23
%24 = getelementptr inbounds [5 x i8*], [5 x i8*]* %21, i32 0, i32 2
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i32 0, i32 0), i8** %24
%25 = getelementptr inbounds [5 x i8*], [5 x i8*]* %21, i32 0, i32 3
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i32 0, i32 0), i8** %25
%26 = getelementptr inbounds [5 x i8*], [5 x i8*]* %21, i32 0, i32 4
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i32 0, i32 0), i8** %26
%27 = load i8*, i8** %2
%28 = getelementptr inbounds i8, i8* %27, i64 0
store i8 0, i8* %28
%29 = load i8*, i8** %2
%30 = call i64 @rand_uint32_max(i32 5)
%31 = getelementptr inbounds [5 x i8*], [5 x i8*]* %3, i64 0, i64 %30
%32 = load i8*, i8** %31
%33 = call i32 @strcat(i8* %29, i8* %32)
%34 = load i8*, i8** %2
%35 = call i32 @strcat(i8* %34, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
%36 = load i8*, i8** %2
%37 = call i64 @rand_uint32_max(i32 5)
%38 = getelementptr inbounds [5 x i8*], [5 x i8*]* %4, i64 0, i64 %37
%39 = load i8*, i8** %38
%40 = call i32 @strcat(i8* %36, i8* %39)
%41 = load i8*, i8** %2
%42 = call i32 @strcat(i8* %41, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
%43 = load i8*, i8** %2
%44 = call i64 @rand_uint32_max(i32 5)
%45 = getelementptr inbounds [5 x i8*], [5 x i8*]* %5, i64 0, i64 %44
%46 = load i8*, i8** %45
%47 = call i32 @strcat(i8* %43, i8* %46)
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"Super\00"
@.str.1 = [9 x i8] c"Sentient\00"
@.str.2 = [6 x i8] c"Cloud\00"
@.str.3 = [8 x i8] c"Extreme\00"
@.str.4 = [15 x i8] c"Mobile-Centric\00"
@.str.5 = [9 x i8] c"Computer\00"
@.str.6 = [10 x i8] c"Framework\00"
@.str.7 = [12 x i8] c"Marketplace\00"
@.str.8 = [8 x i8] c"Enabler\00"
@.str.9 = [5 x i8] c"Chip\00"
@.str.10 = [3 x i8] c"V4\00"
@.str.11 = [4 x i8] c"900\00"
@.str.12 = [4 x i8] c"1.2\00"
@.str.13 = [6 x i8] c"0.0.1\00"
@.str.14 = [5 x i8] c"Beta\00"
@.str.15 = [2 x i8] c" \00"
define void @product_create_name(i8* %0) {
%2 = alloca [5 x i8*]
%3 = alloca [5 x i8*]
%4 = alloca [5 x i8*]
%5 = bitcast [5 x i8*]* %2 to i8*
%6 = getelementptr inbounds [5 x i8*], [5 x i8*]* %2, i64 0, i64 0
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8** %6
%7 = getelementptr inbounds [5 x i8*], [5 x i8*]* %2, i64 0, i64 1
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8** %7
%8 = getelementptr inbounds [5 x i8*], [5 x i8*]* %2, i64 0, i64 2
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8** %8
%9 = getelementptr inbounds [5 x i8*], [5 x i8*]* %2, i64 0, i64 3
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8** %9
%10 = getelementptr inbounds [5 x i8*], [5 x i8*]* %2, i64 0, i64 4
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8** %10
%11 = bitcast [5 x i8*]* %3 to i8*
%12 = getelementptr inbounds [5 x i8*], [5 x i8*]* %3, i64 0, i64 0
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8** %12
%13 = getelementptr inbounds [5 x i8*], [5 x i8*]* %3, i64 0, i64 1
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8** %13
%14 = getelementptr inbounds [5 x i8*], [5 x i8*]* %3, i64 0, i64 2
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i8** %14
%15 = getelementptr inbounds [5 x i8*], [5 x i8*]* %3, i64 0, i64 3
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i8** %15
%16 = getelementptr inbounds [5 x i8*], [5 x i8*]* %3, i64 0, i64 4
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8** %16
%17 = bitcast [5 x i8*]* %4 to i8*
%18 = getelementptr inbounds [5 x i8*], [5 x i8*]* %4, i64 0, i64 0
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i8** %18
%19 = getelementptr inbounds [5 x i8*], [5 x i8*]* %4, i64 0, i64 1
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i8** %19
%20 = getelementptr inbounds [5 x i8*], [5 x i8*]* %4, i64 0, i64 2
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), i8** %20
%21 = getelementptr inbounds [5 x i8*], [5 x i8*]* %4, i64 0, i64 3
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), i8** %21
%22 = getelementptr inbounds [5 x i8*], [5 x i8*]* %4, i64 0, i64 4
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0), i8** %22
store i8 0, i8* %0
%23 = tail call i64 @rand_uint32_max(i32 5)
%24 = getelementptr inbounds [5 x i8*], [5 x i8*]* %2, i64 0, i64 %23
%25 = load i8*, i8** %24
%26 = tail call i32 @strcat(i8* %0, i8* %25)
%27 = tail call i32 @strcat(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
%28 = tail call i64 @rand_uint32_max(i32 5)
%29 = getelementptr inbounds [5 x i8*], [5 x i8*]* %3, i64 0, i64 %28
%30 = load i8*, i8** %29
%31 = tail call i32 @strcat(i8* %0, i8* %30)
%32 = tail call i32 @strcat(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
%33 = tail call i64 @rand_uint32_max(i32 5)
%34 = getelementptr inbounds [5 x i8*], [5 x i8*]* %4, i64 0, i64 %33
%35 = load i8*, i8** %34
%36 = tail call i32 @strcat(i8* %0, i8* %35)
ret void
}