#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 blosc_get_complib_info(char *, char **, char **);
char *blosc_list_compressors();
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char *argv[]) {
  char *name = NULL, *version = NULL;
  int ret;
  printf("Blosc version: %s (%s)\n", "1.4.4", "$Date:: 2015-05-05 #$");
  printf("List of supported compressors in this build: %s\n",
         blosc_list_compressors());
  printf("Supported compression libraries:\n");
  ret = blosc_get_complib_info("blosclz", &name, &version);
  if (ret >= 0)
    printf("  %s: %s\n", name, version);
  ret = blosc_get_complib_info("lz4", &name, &version);
  if (ret >= 0)
    printf("  %s: %s\n", name, version);
  ret = blosc_get_complib_info("snappy", &name, &version);
  if (ret >= 0)
    printf("  %s: %s\n", name, version);
  ret = blosc_get_complib_info("zlib", &name, &version);
  if (ret >= 0)
    printf("  %s: %s\n", name, version);
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
lea    0xea3(%rip),%rdi
lea    0xeb4(%rip),%rsi
lea    0xeb3(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1050 <blosc_list_compressors@plt>
mov    %rax,%rsi
lea    0xeb1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee8(%rip),%rdi
lea    -0x18(%rbp),%rsi
lea    -0x20(%rbp),%rdx
call   1040 <blosc_get_complib_info@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jl     11cf <main+0x9f>
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
lea    0xec7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec3(%rip),%rdi
lea    -0x18(%rbp),%rsi
lea    -0x20(%rbp),%rdx
call   1040 <blosc_get_complib_info@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jl     1206 <main+0xd6>
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
lea    0xe90(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe90(%rip),%rdi
lea    -0x18(%rbp),%rsi
lea    -0x20(%rbp),%rdx
call   1040 <blosc_get_complib_info@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jl     123d <main+0x10d>
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
lea    0xe59(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe60(%rip),%rdi
lea    -0x18(%rbp),%rsi
lea    -0x20(%rbp),%rdx
call   1040 <blosc_get_complib_info@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jl     1274 <main+0x144>
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
lea    0xe22(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
movq   $0x0,0x10(%rsp)
movq   $0x0,0x8(%rsp)
lea    0xea3(%rip),%rdi
lea    0xeb4(%rip),%rsi
lea    0xeb3(%rip),%rdx
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1060 <blosc_list_compressors@plt>
lea    0xeb4(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xef6(%rip),%rdi
call   1030 <puts@plt>
lea    0xec8(%rip),%rdi
lea    0x10(%rsp),%rsi
lea    0x8(%rsp),%rdx
call   1050 <blosc_get_complib_info@plt>
test   %eax,%eax
js     11c8 <main+0x88>
mov    0x10(%rsp),%rsi
mov    0x8(%rsp),%rdx
lea    0xeac(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xea8(%rip),%rdi
lea    0x10(%rsp),%rsi
lea    0x8(%rsp),%rdx
call   1050 <blosc_get_complib_info@plt>
test   %eax,%eax
js     11fa <main+0xba>
mov    0x10(%rsp),%rsi
mov    0x8(%rsp),%rdx
lea    0xe7a(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe7a(%rip),%rdi
lea    0x10(%rsp),%rsi
lea    0x8(%rsp),%rdx
call   1050 <blosc_get_complib_info@plt>
test   %eax,%eax
js     122c <main+0xec>
mov    0x10(%rsp),%rsi
mov    0x8(%rsp),%rdx
lea    0xe48(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe4f(%rip),%rdi
lea    0x10(%rsp),%rsi
lea    0x8(%rsp),%rdx
call   1050 <blosc_get_complib_info@plt>
test   %eax,%eax
js     125e <main+0x11e>
mov    0x10(%rsp),%rsi
mov    0x8(%rsp),%rdx
lea    0xe16(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [24 x i8] c"Blosc version: %s (%s)\0A\00"
@.str.1 = [6 x i8] c"1.4.4\00"
@.str.2 = [22 x i8] c"$Date:: 2015-05-05 #$\00"
@.str.3 = [49 x i8] c"List of supported compressors in this build: %s\0A\00"
@.str.4 = [34 x i8] c"Supported compression libraries:\0A\00"
@.str.5 = [8 x i8] c"blosclz\00"
@.str.6 = [10 x i8] c" %s: %s\0A\00"
@.str.7 = [4 x i8] c"lz4\00"
@.str.8 = [7 x i8] c"snappy\00"
@.str.9 = [5 x i8] c"zlib\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8* null, i8** %6
store i8* null, i8** %7
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
%10 = call i8* (...) @blosc_list_compressors()
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.3, i64 0, i64 0), i8* %10)
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0))
%13 = call i32 @blosc_get_complib_info(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i8** %6, i8** %7)
store i32 %13, i32* %8
%14 = load i32, i32* %8
%15 = icmp sge i32 %14, 0
br i1 %15, label %16, label %20
16: ; preds = %2
%17 = load i8*, i8** %6
%18 = load i8*, i8** %7
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8* %17, i8* %18)
br label %20
20: ; preds = %16, %2
%21 = call i32 @blosc_get_complib_info(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8** %6, i8** %7)
store i32 %21, i32* %8
%22 = load i32, i32* %8
%23 = icmp sge i32 %22, 0
br i1 %23, label %24, label %28
24: ; preds = %20
%25 = load i8*, i8** %6
%26 = load i8*, i8** %7
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8* %25, i8* %26)
br label %28
28: ; preds = %24, %20
%29 = call i32 @blosc_get_complib_info(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i8** %6, i8** %7)
store i32 %29, i32* %8
%30 = load i32, i32* %8
%31 = icmp sge i32 %30, 0
br i1 %31, label %32, label %36
32: ; preds = %28
%33 = load i8*, i8** %6
%34 = load i8*, i8** %7
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8* %33, i8* %34)
br label %36
36: ; preds = %32, %28
%37 = call i32 @blosc_get_complib_info(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8** %6, i8** %7)
store i32 %37, i32* %8
%38 = load i32, i32* %8
%39 = icmp sge i32 %38, 0
br i1 %39, label %40, label %44
40: ; preds = %36
%41 = load i8*, i8** %6
%42 = load i8*, i8** %7
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8* %41, i8* %42)
br label %44
44: ; preds = %40, %36
ret i32 0
}

LLVM IR (-O2):
@.str = [24 x i8] c"Blosc version: %s (%s)\0A\00"
@.str.1 = [6 x i8] c"1.4.4\00"
@.str.2 = [22 x i8] c"$Date:: 2015-05-05 #$\00"
@.str.3 = [49 x i8] c"List of supported compressors in this build: %s\0A\00"
@.str.5 = [8 x i8] c"blosclz\00"
@.str.6 = [10 x i8] c" %s: %s\0A\00"
@.str.7 = [4 x i8] c"lz4\00"
@.str.8 = [7 x i8] c"snappy\00"
@.str.9 = [5 x i8] c"zlib\00"
@str = [33 x i8] c"Supported compression libraries:\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i8*
%4 = alloca i8*
%5 = bitcast i8** %3 to i8*
store i8* null, i8** %3
%6 = bitcast i8** %4 to i8*
store i8* null, i8** %4
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
%8 = tail call i8* (...) @blosc_list_compressors()
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.3, i64 0, i64 0), i8* %8)
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str, i64 0, i64 0))
%11 = call i32 @blosc_get_complib_info(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i8** %3, i8** %4)
%12 = icmp sgt i32 %11, -1
br i1 %12, label %13, label %17
13: ; preds = %2
%14 = load i8*, i8** %3
%15 = load i8*, i8** %4
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8* %14, i8* %15)
br label %17
17: ; preds = %13, %2
%18 = call i32 @blosc_get_complib_info(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8** %3, i8** %4)
%19 = icmp sgt i32 %18, -1
br i1 %19, label %20, label %24
20: ; preds = %17
%21 = load i8*, i8** %3
%22 = load i8*, i8** %4
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8* %21, i8* %22)
br label %24
24: ; preds = %20, %17
%25 = call i32 @blosc_get_complib_info(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i8** %3, i8** %4)
%26 = icmp sgt i32 %25, -1
br i1 %26, label %27, label %31
27: ; preds = %24
%28 = load i8*, i8** %3
%29 = load i8*, i8** %4
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8* %28, i8* %29)
br label %31
31: ; preds = %27, %24
%32 = call i32 @blosc_get_complib_info(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8** %3, i8** %4)
%33 = icmp sgt i32 %32, -1
br i1 %33, label %34, label %38
34: ; preds = %31
%35 = load i8*, i8** %3
%36 = load i8*, i8** %4
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i8* %35, i8* %36)
br label %38
38: ; preds = %34, %31
ret i32 0
}