#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*/ strcat(char *, char *);
char *blosc_list_compressors(void) {
  static int compressors_list_done = 0;
  static char ret[256];
  if (compressors_list_done)
    return ret;
  ret[0] = '\0';
  strcat(ret, "blosclz");
  compressors_list_done = 1;
  return ret;
}


x86 assembly (clang, -O0):
<blosc_list_compressors>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
cmpl   $0x0,0x2f21(%rip)
je     1135 <blosc_list_compressors+0x25>
lea    0x2f24(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1164 <blosc_list_compressors+0x54>
movb   $0x0,0x2f14(%rip)
lea    0x2f0d(%rip),%rdi
lea    0xeb6(%rip),%rsi
call   1030 <strcat@plt>
movl   $0x1,0x2ee7(%rip)
lea    0x2ef0(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<blosc_list_compressors>:
push   %rax
cmpb   $0x0,0x2f28(%rip)
jne    113b <blosc_list_compressors+0x2b>
movb   $0x0,0x2f2f(%rip)
lea    0x2f28(%rip),%rdi
lea    0xed1(%rip),%rsi
call   1030 <strcat@plt>
movb   $0x1,0x2f05(%rip)
lea    0x2f0e(%rip),%rax
pop    %rcx
ret

LLVM IR (-O0):
@blosc_list_compressors.compressors_list_done = internal global i32 0
@blosc_list_compressors.ret = internal global [256 x i8] zeroinitializer
@.str = [8 x i8] c"blosclz\00"
define i8* @blosc_list_compressors() {
%1 = alloca i8*
%2 = load i32, i32* @blosc_list_compressors.compressors_list_done
%3 = icmp ne i32 %2, 0
br i1 %3, label %4, label %5
4: ; preds = %0
store i8* getelementptr inbounds ([256 x i8], [256 x i8]* @blosc_list_compressors.ret, i64 0, i64 0), i8** %1
br label %7
5: ; preds = %0
store i8 0, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @blosc_list_compressors.ret, i64 0, i64 0)
%6 = call i32 @strcat(i8* getelementptr inbounds ([256 x i8], [256 x i8]* @blosc_list_compressors.ret, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* @blosc_list_compressors.compressors_list_done
store i8* getelementptr inbounds ([256 x i8], [256 x i8]* @blosc_list_compressors.ret, i64 0, i64 0), i8** %1
br label %7
7: ; preds = %5, %4
%8 = load i8*, i8** %1
ret i8* %8
}

LLVM IR (-O2):
@blosc_list_compressors.compressors_list_done = internal unnamed_addr global i1 false
@blosc_list_compressors.ret = internal global [256 x i8] zeroinitializer
@.str = [8 x i8] c"blosclz\00"
define i8* @blosc_list_compressors() {
%1 = load i1, i1* @blosc_list_compressors.compressors_list_done
br i1 %1, label %4, label %2
2: ; preds = %0
store i8 0, i8* getelementptr inbounds ([256 x i8], [256 x i8]* @blosc_list_compressors.ret, i64 0, i64 0)
%3 = tail call i32 @strcat(i8* getelementptr inbounds ([256 x i8], [256 x i8]* @blosc_list_compressors.ret, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
store i1 true, i1* @blosc_list_compressors.compressors_list_done
br label %4
4: ; preds = %0, %2
ret i8* getelementptr inbounds ([256 x i8], [256 x i8]* @blosc_list_compressors.ret, i64 0, i64 0)
}