#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*/ sprintf(char *, char *, char *, char *, char *, char *);
char *des_options() {
  static int init = 1;
  static char buf[32];
  if (init) {
    char *ptr, *unroll, *risc, *size;
    init = 0;
    ptr = "idx";
    risc = "cisc";
    unroll = "4";
    if (sizeof(unsigned long) != sizeof(long))
      size = "int";
    else
      size = "long";
    sprintf(buf, "des(%s,%s,%s,%s)", ptr, risc, unroll, size);
  }
  return (buf);
}


x86 assembly (clang, -O0):
<des_options>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
cmpl   $0x0,0x2f09(%rip)
je     117e <des_options+0x6e>
movl   $0x0,0x2ef9(%rip)
lea    0xeca(%rip),%rax
mov    %rax,-0x8(%rbp)
lea    0xec3(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    0xebd(%rip),%rax
mov    %rax,-0x10(%rbp)
lea    0xeb4(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%rdx
mov    -0x18(%rbp),%rcx
mov    -0x10(%rbp),%r8
mov    -0x20(%rbp),%r9
lea    0x2ece(%rip),%rdi
lea    0xe97(%rip),%rsi
call   1030 <sprintf@plt>
lea    0x2ebb(%rip),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<des_options>:
push   %rax
cmpb   $0x0,0x2f28(%rip)
jne    1150 <des_options+0x40>
movb   $0x1,0x2f1f(%rip)
lea    0x2f28(%rip),%rdi
lea    0xee1(%rip),%rsi
lea    0xeca(%rip),%rdx
lea    0xec7(%rip),%rcx
lea    0xec5(%rip),%r8
lea    0xec0(%rip),%r9
call   1030 <sprintf@plt>
lea    0x2ef9(%rip),%rax
pop    %rcx
ret

LLVM IR (-O0):
@des_options.init = internal global i32 1
@des_options.buf = internal global [32 x i8] zeroinitializer
@.str = [4 x i8] c"idx\00"
@.str.1 = [5 x i8] c"cisc\00"
@.str.2 = [2 x i8] c"4\00"
@.str.3 = [5 x i8] c"long\00"
@.str.4 = [17 x i8] c"des(%s,%s,%s,%s)\00"
define i8* @des_options() {
%1 = alloca i8*
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i8*
%5 = load i32, i32* @des_options.init
%6 = icmp ne i32 %5, 0
br i1 %6, label %7, label %13
7: ; preds = %0
store i32 0, i32* @des_options.init
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8** %1
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8** %3
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8** %2
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8** %4
%8 = load i8*, i8** %1
%9 = load i8*, i8** %3
%10 = load i8*, i8** %2
%11 = load i8*, i8** %4
%12 = call i32 @sprintf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @des_options.buf, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i8* %8, i8* %9, i8* %10, i8* %11)
br label %13
13: ; preds = %7, %0
ret i8* getelementptr inbounds ([32 x i8], [32 x i8]* @des_options.buf, i64 0, i64 0)
}

LLVM IR (-O2):
@des_options.init = internal unnamed_addr global i1 false
@des_options.buf = internal global [32 x i8] zeroinitializer
@.str = [4 x i8] c"idx\00"
@.str.1 = [5 x i8] c"cisc\00"
@.str.2 = [2 x i8] c"4\00"
@.str.3 = [5 x i8] c"long\00"
@.str.4 = [17 x i8] c"des(%s,%s,%s,%s)\00"
define i8* @des_options() {
%1 = load i1, i1* @des_options.init
br i1 %1, label %4, label %2
2: ; preds = %0
store i1 true, i1* @des_options.init
%3 = tail call i32 @sprintf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @des_options.buf, i64 0, i64 0), i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
br label %4
4: ; preds = %2, %0
ret i8* getelementptr inbounds ([32 x i8], [32 x i8]* @des_options.buf, i64 0, i64 0)
}