#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 *, ...);
void printf_stg(float *B) {
  printf("> Statistical Geometry.\n");
  printf("> %d (sequence length)\n", (int)B[0]);
  printf("> AAAA\n");
  printf("  %7.5f\n", B[1]);
  printf("> BAAA        ABAA        AABA        AAAB\n");
  printf("  %7.5f    %7.5f     %7.5f     %7.5f\n", B[2], B[3], B[4], B[5]);
  printf("> AABB        ABAB        ABBA\n");
  printf("  %7.5f    %7.5f     %7.5f\n", B[6], B[7], B[8]);
  printf(
      "> AABC        ABAC        ABCA        BAAC        BACA        BCAA\n");
  printf("  %7.5f    %7.5f     %7.5f     %7.5f    %7.5f    %7.5f\n", B[9],
         B[10], B[11], B[12], B[13], B[14]);
  printf("> ABCD\n");
  printf("  %7.5f\n", B[15]);
}


x86 assembly (clang, -O0):
<printf_stg>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xedd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
cvttss2si (%rax),%esi
lea    0xee0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeea(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
movss  0x4(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xf20(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xec9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
movss  0x8(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x8(%rbp),%rax
movss  0xc(%rax),%xmm1
cvtss2sd %xmm1,%xmm1
mov    -0x8(%rbp),%rax
movss  0x10(%rax),%xmm2
cvtss2sd %xmm2,%xmm2
mov    -0x8(%rbp),%rax
movss  0x14(%rax),%xmm3
cvtss2sd %xmm3,%xmm3
lea    0xeb3(%rip),%rdi
mov    $0x4,%al
call   1030 <printf@plt>
lea    0xecb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
movss  0x18(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x8(%rbp),%rax
movss  0x1c(%rax),%xmm1
cvtss2sd %xmm1,%xmm1
mov    -0x8(%rbp),%rax
movss  0x20(%rax),%xmm2
cvtss2sd %xmm2,%xmm2
lea    0xeb6(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
lea    0xec4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
movss  0x24(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
mov    -0x8(%rbp),%rax
movss  0x28(%rax),%xmm1
cvtss2sd %xmm1,%xmm1
mov    -0x8(%rbp),%rax
movss  0x2c(%rax),%xmm2
cvtss2sd %xmm2,%xmm2
mov    -0x8(%rbp),%rax
movss  0x30(%rax),%xmm3
cvtss2sd %xmm3,%xmm3
mov    -0x8(%rbp),%rax
movss  0x34(%rax),%xmm4
cvtss2sd %xmm4,%xmm4
mov    -0x8(%rbp),%rax
movss  0x38(%rax),%xmm5
cvtss2sd %xmm5,%xmm5
lea    0xeac(%rip),%rdi
mov    $0x6,%al
call   1030 <printf@plt>
lea    0xed6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
movss  0x3c(%rax),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdfa(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printf_stg>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xf64(%rip),%rdi
call   1030 <puts@plt>
cvttss2si (%rbx),%esi
lea    0xec2(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf5e(%rip),%rdi
call   1030 <puts@plt>
movss  0x4(%rbx),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xed4(%rip),%r14
mov    %r14,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xf3f(%rip),%rdi
call   1030 <puts@plt>
movss  0x8(%rbx),%xmm0
movss  0xc(%rbx),%xmm1
cvtss2sd %xmm0,%xmm0
cvtss2sd %xmm1,%xmm1
movss  0x10(%rbx),%xmm2
cvtss2sd %xmm2,%xmm2
movss  0x14(%rbx),%xmm3
cvtss2sd %xmm3,%xmm3
lea    0xe76(%rip),%rdi
mov    $0x4,%al
call   1040 <printf@plt>
lea    0xf2c(%rip),%rdi
call   1030 <puts@plt>
movss  0x18(%rbx),%xmm0
movss  0x1c(%rbx),%xmm1
cvtss2sd %xmm0,%xmm0
cvtss2sd %xmm1,%xmm1
movss  0x20(%rbx),%xmm2
cvtss2sd %xmm2,%xmm2
lea    0xe67(%rip),%rdi
mov    $0x3,%al
call   1040 <printf@plt>
lea    0xf16(%rip),%rdi
call   1030 <puts@plt>
movss  0x24(%rbx),%xmm0
movss  0x28(%rbx),%xmm1
cvtss2sd %xmm0,%xmm0
cvtss2sd %xmm1,%xmm1
movss  0x2c(%rbx),%xmm2
cvtss2sd %xmm2,%xmm2
movss  0x30(%rbx),%xmm3
cvtss2sd %xmm3,%xmm3
movss  0x34(%rbx),%xmm4
cvtss2sd %xmm4,%xmm4
movss  0x38(%rbx),%xmm5
cvtss2sd %xmm5,%xmm5
lea    0xe33(%rip),%rdi
mov    $0x6,%al
call   1040 <printf@plt>
lea    0xf09(%rip),%rdi
call   1030 <puts@plt>
movss  0x3c(%rbx),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x1,%al
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [25 x i8] c"> Statistical Geometry.\0A\00"
@.str.1 = [24 x i8] c"> %d (sequence length)\0A\00"
@.str.2 = [8 x i8] c"> AAAA\0A\00"
@.str.3 = [9 x i8] c" %7.5f\0A\00"
@.str.4 = [44 x i8] c"> BAAA ABAA AABA AAAB\0A\00"
@.str.5 = [38 x i8] c" %7.5f %7.5f %7.5f %7.5f\0A\00"
@.str.6 = [32 x i8] c"> AABB ABAB ABBA\0A\00"
@.str.7 = [28 x i8] c" %7.5f %7.5f %7.5f\0A\00"
@.str.8 = [68 x i8] c"> AABC ABAC ABCA BAAC BACA BCAA\0A\00"
@.str.9 = [56 x i8] c" %7.5f %7.5f %7.5f %7.5f %7.5f %7.5f\0A\00"
@.str.10 = [8 x i8] c"> ABCD\0A\00"
define void @printf_stg(float* %0) {
%2 = alloca float*
store float* %0, float** %2
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%4 = load float*, float** %2
%5 = getelementptr inbounds float, float* %4, i64 0
%6 = load float, float* %5
%7 = fptosi float %6 to i32
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %7)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%10 = load float*, float** %2
%11 = getelementptr inbounds float, float* %10, i64 1
%12 = load float, float* %11
%13 = fpext float %12 to double
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), double %13)
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0))
%16 = load float*, float** %2
%17 = getelementptr inbounds float, float* %16, i64 2
%18 = load float, float* %17
%19 = fpext float %18 to double
%20 = load float*, float** %2
%21 = getelementptr inbounds float, float* %20, i64 3
%22 = load float, float* %21
%23 = fpext float %22 to double
%24 = load float*, float** %2
%25 = getelementptr inbounds float, float* %24, i64 4
%26 = load float, float* %25
%27 = fpext float %26 to double
%28 = load float*, float** %2
%29 = getelementptr inbounds float, float* %28, i64 5
%30 = load float, float* %29
%31 = fpext float %30 to double
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), double %19, double %23, double %27, double %31)
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0))
%34 = load float*, float** %2
%35 = getelementptr inbounds float, float* %34, i64 6
%36 = load float, float* %35
%37 = fpext float %36 to double
%38 = load float*, float** %2
%39 = getelementptr inbounds float, float* %38, i64 7
%40 = load float, float* %39
%41 = fpext float %40 to double
%42 = load float*, float** %2
%43 = getelementptr inbounds float, float* %42, i64 8
%44 = load float, float* %43
%45 = fpext float %44 to double
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.7, i64 0, i64 0), double %37, double %41, double %45)
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.8, i64 0, i64 0))
%48 = load float*, float** %2
%49 = getelementptr inbounds float, float* %48, i64 9
%50 = load float, float* %49
%51 = fpext float %50 to double
%52 = load float*, float** %2
%53 = getelementptr inbounds float, float* %52, i64 10
%54 = load float, float* %53
%55 = fpext float %54 to double
%56 = load float*, float** %2
%57 = getelementptr inbounds float, float* %56, i64 11
%58 = load float, float* %57
%59 = fpext float %58 to double
%60 = load float*, float** %2
%61 = getelementptr inbounds float, float* %60, i64 12
%62 = load float, float* %61
%63 = fpext float %62 to double
%64 = load float*, float** %2
%65 = getelementptr inbounds float, float* %64, i64 13
%66 = load float, float* %65
%67 = fpext float %66 to double
%68 = load float*, float** %2
%69 = getelementptr inbounds float, float* %68, i64 14
%70 = load float, float* %69
%71 = fpext float %70 to double
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.9, i64 0, i64 0), double %51, double %55, double %59, double %63, double %67, double %71)
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
%74 = load float*, float** %2
%75 = getelementptr inbounds float, float* %74, i64 15
%76 = load float, float* %75
%77 = fpext float %76 to double
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), double %77)
ret void
}

LLVM IR (-O2):
@.str.1 = [24 x i8] c"> %d (sequence length)\0A\00"
@.str.3 = [9 x i8] c" %7.5f\0A\00"
@.str.5 = [38 x i8] c" %7.5f %7.5f %7.5f %7.5f\0A\00"
@.str.7 = [28 x i8] c" %7.5f %7.5f %7.5f\0A\00"
@.str.9 = [56 x i8] c" %7.5f %7.5f %7.5f %7.5f %7.5f %7.5f\0A\00"
@str = [24 x i8] c"> Statistical Geometry.\00"
@str.11 = [7 x i8] c"> AAAA\00"
@str.12 = [43 x i8] c"> BAAA ABAA AABA AAAB\00"
@str.13 = [31 x i8] c"> AABB ABAB ABBA\00"
@str.14 = [67 x i8] c"> AABC ABAC ABCA BAAC BACA BCAA\00"
@str.15 = [7 x i8] c"> ABCD\00"
define void @printf_stg(float* nocapture %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str, i64 0, i64 0))
%3 = load float, float* %0
%4 = fptosi float %3 to i32
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 %4)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.11, i64 0, i64 0))
%7 = getelementptr inbounds float, float* %0, i64 1
%8 = load float, float* %7
%9 = fpext float %8 to double
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), double %9)
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.12, i64 0, i64 0))
%12 = getelementptr inbounds float, float* %0, i64 2
%13 = load float, float* %12
%14 = fpext float %13 to double
%15 = getelementptr inbounds float, float* %0, i64 3
%16 = load float, float* %15
%17 = fpext float %16 to double
%18 = getelementptr inbounds float, float* %0, i64 4
%19 = load float, float* %18
%20 = fpext float %19 to double
%21 = getelementptr inbounds float, float* %0, i64 5
%22 = load float, float* %21
%23 = fpext float %22 to double
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), double %14, double %17, double %20, double %23)
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.13, i64 0, i64 0))
%26 = getelementptr inbounds float, float* %0, i64 6
%27 = load float, float* %26
%28 = fpext float %27 to double
%29 = getelementptr inbounds float, float* %0, i64 7
%30 = load float, float* %29
%31 = fpext float %30 to double
%32 = getelementptr inbounds float, float* %0, i64 8
%33 = load float, float* %32
%34 = fpext float %33 to double
%35 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.7, i64 0, i64 0), double %28, double %31, double %34)
%36 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.14, i64 0, i64 0))
%37 = getelementptr inbounds float, float* %0, i64 9
%38 = load float, float* %37
%39 = fpext float %38 to double
%40 = getelementptr inbounds float, float* %0, i64 10
%41 = load float, float* %40
%42 = fpext float %41 to double
%43 = getelementptr inbounds float, float* %0, i64 11
%44 = load float, float* %43
%45 = fpext float %44 to double
%46 = getelementptr inbounds float, float* %0, i64 12
%47 = load float, float* %46
%48 = fpext float %47 to double
%49 = getelementptr inbounds float, float* %0, i64 13
%50 = load float, float* %49
%51 = fpext float %50 to double
%52 = getelementptr inbounds float, float* %0, i64 14
%53 = load float, float* %52
%54 = fpext float %53 to double
%55 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.9, i64 0, i64 0), double %39, double %42, double %45, double %48, double %51, double %54)
%56 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.15, i64 0, i64 0))
%57 = getelementptr inbounds float, float* %0, i64 15
%58 = load float, float* %57
%59 = fpext float %58 to double
%60 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), double %59)
ret void
}