#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*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
void write_block(FILE *f, char *tex, float minx, float miny, float minz,
                 float maxx, float maxy, float maxz) {
  fprintf(f, " {\n");
  fprintf(f, "  ( %f %f %f ) ( %f %f %f ) ( %f %f %f ) %s 0 0 0 1 1\n", minx,
          miny, maxz, maxx, maxy, maxz, maxx, miny, maxz, tex);
  fprintf(f, "  ( %f %f %f ) ( %f %f %f ) ( %f %f %f ) %s 0 0 0 1 1\n", maxx,
          maxy, minz, minx, miny, minz, maxx, miny, minz, tex);
  fprintf(f, "  ( %f %f %f ) ( %f %f %f ) ( %f %f %f ) %s 0 0 0 1 1\n", minx,
          miny, minz, minx, miny, maxz, maxx, miny, minz, tex);
  fprintf(f, "  ( %f %f %f ) ( %f %f %f ) ( %f %f %f ) %s 0 0 0 1 1\n", minx,
          maxy, maxz, minx, maxy, minz, maxx, maxy, minz, tex);
  fprintf(f, "  ( %f %f %f ) ( %f %f %f ) ( %f %f %f ) %s 0 0 0 1 1\n", minx,
          miny, minz, minx, maxy, maxz, minx, miny, maxz, tex);
  fprintf(f, "  ( %f %f %f ) ( %f %f %f ) ( %f %f %f ) %s 0 0 0 1 1\n", maxx,
          maxy, maxz, maxx, miny, minz, maxx, miny, maxz, tex);
  fprintf(f, " }\n");
}


x86 assembly (clang, -O0):
<write_block>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movss  %xmm0,-0x14(%rbp)
movss  %xmm1,-0x18(%rbp)
movss  %xmm2,-0x1c(%rbp)
movss  %xmm3,-0x20(%rbp)
movss  %xmm4,-0x24(%rbp)
movss  %xmm5,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xeb7(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x18(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movss  -0x28(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
movss  -0x20(%rbp),%xmm3
cvtss2sd %xmm3,%xmm3
movss  -0x24(%rbp),%xmm4
cvtss2sd %xmm4,%xmm4
movss  -0x28(%rbp),%xmm5
cvtss2sd %xmm5,%xmm5
movss  -0x20(%rbp),%xmm6
cvtss2sd %xmm6,%xmm6
movss  -0x18(%rbp),%xmm7
cvtss2sd %xmm7,%xmm7
movss  -0x28(%rbp),%xmm8
cvtss2sd %xmm8,%xmm8
mov    -0x10(%rbp),%rdx
lea    0xe52(%rip),%rsi
movsd  %xmm8,(%rsp)
mov    $0x8,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
movss  -0x20(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x24(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movss  -0x1c(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
movss  -0x14(%rbp),%xmm3
cvtss2sd %xmm3,%xmm3
movss  -0x18(%rbp),%xmm4
cvtss2sd %xmm4,%xmm4
movss  -0x1c(%rbp),%xmm5
cvtss2sd %xmm5,%xmm5
movss  -0x20(%rbp),%xmm6
cvtss2sd %xmm6,%xmm6
movss  -0x18(%rbp),%xmm7
cvtss2sd %xmm7,%xmm7
movss  -0x1c(%rbp),%xmm8
cvtss2sd %xmm8,%xmm8
mov    -0x10(%rbp),%rdx
lea    0xde3(%rip),%rsi
movsd  %xmm8,(%rsp)
mov    $0x8,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x18(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movss  -0x1c(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
movss  -0x14(%rbp),%xmm3
cvtss2sd %xmm3,%xmm3
movss  -0x18(%rbp),%xmm4
cvtss2sd %xmm4,%xmm4
movss  -0x28(%rbp),%xmm5
cvtss2sd %xmm5,%xmm5
movss  -0x20(%rbp),%xmm6
cvtss2sd %xmm6,%xmm6
movss  -0x18(%rbp),%xmm7
cvtss2sd %xmm7,%xmm7
movss  -0x1c(%rbp),%xmm8
cvtss2sd %xmm8,%xmm8
mov    -0x10(%rbp),%rdx
lea    0xd74(%rip),%rsi
movsd  %xmm8,(%rsp)
mov    $0x8,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x24(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movss  -0x28(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
movss  -0x14(%rbp),%xmm3
cvtss2sd %xmm3,%xmm3
movss  -0x24(%rbp),%xmm4
cvtss2sd %xmm4,%xmm4
movss  -0x1c(%rbp),%xmm5
cvtss2sd %xmm5,%xmm5
movss  -0x20(%rbp),%xmm6
cvtss2sd %xmm6,%xmm6
movss  -0x24(%rbp),%xmm7
cvtss2sd %xmm7,%xmm7
movss  -0x1c(%rbp),%xmm8
cvtss2sd %xmm8,%xmm8
mov    -0x10(%rbp),%rdx
lea    0xd05(%rip),%rsi
movsd  %xmm8,(%rsp)
mov    $0x8,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x18(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movss  -0x1c(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
movss  -0x14(%rbp),%xmm3
cvtss2sd %xmm3,%xmm3
movss  -0x24(%rbp),%xmm4
cvtss2sd %xmm4,%xmm4
movss  -0x28(%rbp),%xmm5
cvtss2sd %xmm5,%xmm5
movss  -0x14(%rbp),%xmm6
cvtss2sd %xmm6,%xmm6
movss  -0x18(%rbp),%xmm7
cvtss2sd %xmm7,%xmm7
movss  -0x28(%rbp),%xmm8
cvtss2sd %xmm8,%xmm8
mov    -0x10(%rbp),%rdx
lea    0xc96(%rip),%rsi
movsd  %xmm8,(%rsp)
mov    $0x8,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
movss  -0x20(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x24(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movss  -0x28(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
movss  -0x20(%rbp),%xmm3
cvtss2sd %xmm3,%xmm3
movss  -0x18(%rbp),%xmm4
cvtss2sd %xmm4,%xmm4
movss  -0x1c(%rbp),%xmm5
cvtss2sd %xmm5,%xmm5
movss  -0x20(%rbp),%xmm6
cvtss2sd %xmm6,%xmm6
movss  -0x18(%rbp),%xmm7
cvtss2sd %xmm7,%xmm7
movss  -0x28(%rbp),%xmm8
cvtss2sd %xmm8,%xmm8
mov    -0x10(%rbp),%rdx
lea    0xc27(%rip),%rsi
movsd  %xmm8,(%rsp)
mov    $0x8,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xc46(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<write_block>:
push   %r15
push   %r14
push   %rbx
sub    $0x40,%rsp
movss  %xmm5,0x28(%rsp)
movss  %xmm4,0x18(%rsp)
movss  %xmm3,0x3c(%rsp)
movss  %xmm2,0x8(%rsp)
movss  %xmm1,0x20(%rsp)
movss  %xmm0,0x10(%rsp)
mov    %rsi,%r14
mov    %rdi,%rbx
lea    0xea6(%rip),%rdi
mov    $0x3,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1040 <fwrite@plt>
movss  0x10(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x10(%rsp)
movss  0x20(%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
movsd  %xmm1,0x30(%rsp)
movss  0x28(%rsp),%xmm2
cvtss2sd %xmm2,%xmm2
movsd  %xmm2,0x20(%rsp)
movss  0x3c(%rsp),%xmm3
cvtss2sd %xmm3,%xmm3
movsd  %xmm3,0x28(%rsp)
movss  0x18(%rsp),%xmm4
cvtss2sd %xmm4,%xmm4
movsd  %xmm4,0x18(%rsp)
movsd  %xmm2,(%rsp)
lea    0xe3c(%rip),%r15
mov    %rbx,%rdi
mov    %r15,%rsi
movaps %xmm2,%xmm5
movaps %xmm3,%xmm6
movaps %xmm1,%xmm7
mov    %r14,%rdx
mov    $0x8,%al
call   1030 <fprintf@plt>
movss  0x8(%rsp),%xmm0
xorps  %xmm2,%xmm2
cvtss2sd %xmm0,%xmm2
movsd  %xmm2,0x8(%rsp)
movsd  %xmm2,(%rsp)
mov    %rbx,%rdi
mov    %r15,%rsi
movsd  0x28(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
movsd  0x10(%rsp),%xmm3
movsd  0x30(%rsp),%xmm4
movaps %xmm2,%xmm5
movaps %xmm0,%xmm6
movaps %xmm4,%xmm7
mov    %r14,%rdx
mov    $0x8,%al
call   1030 <fprintf@plt>
movsd  0x8(%rsp),%xmm2
movsd  %xmm2,(%rsp)
mov    %rbx,%rdi
mov    %r15,%rsi
movsd  0x10(%rsp),%xmm0
movsd  0x30(%rsp),%xmm1
movaps %xmm0,%xmm3
movaps %xmm1,%xmm4
movsd  0x20(%rsp),%xmm5
movsd  0x28(%rsp),%xmm6
movaps %xmm1,%xmm7
mov    %r14,%rdx
mov    $0x8,%al
call   1030 <fprintf@plt>
movsd  0x8(%rsp),%xmm5
movsd  %xmm5,(%rsp)
mov    %rbx,%rdi
mov    %r15,%rsi
movsd  0x10(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
movsd  0x20(%rsp),%xmm2
movaps %xmm0,%xmm3
movaps %xmm1,%xmm4
movsd  0x28(%rsp),%xmm6
movaps %xmm1,%xmm7
mov    %r14,%rdx
mov    $0x8,%al
call   1030 <fprintf@plt>
movsd  0x20(%rsp),%xmm5
movsd  %xmm5,(%rsp)
mov    %rbx,%rdi
mov    %r15,%rsi
movsd  0x10(%rsp),%xmm0
movsd  0x30(%rsp),%xmm1
movsd  0x8(%rsp),%xmm2
movaps %xmm0,%xmm3
movaps %xmm0,%xmm6
movsd  0x18(%rsp),%xmm4
movaps %xmm1,%xmm7
mov    %r14,%rdx
mov    $0x8,%al
call   1030 <fprintf@plt>
movsd  0x20(%rsp),%xmm2
movsd  %xmm2,(%rsp)
mov    %rbx,%rdi
mov    %r15,%rsi
movsd  0x28(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
movaps %xmm0,%xmm3
movaps %xmm0,%xmm6
movsd  0x30(%rsp),%xmm4
movsd  0x8(%rsp),%xmm5
movaps %xmm4,%xmm7
mov    %r14,%rdx
mov    $0x8,%al
call   1030 <fprintf@plt>
lea    0xd1a(%rip),%rdi
mov    $0x3,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
add    $0x40,%rsp
pop    %rbx
pop    %r14
pop    %r15
jmp    1040 <fwrite@plt>

LLVM IR (-O0):
@.str = [4 x i8] c" {\0A\00"
@.str.1 = [55 x i8] c" ( %f %f %f ) ( %f %f %f ) ( %f %f %f ) %s 0 0 0 1 1\0A\00"
@.str.2 = [4 x i8] c" }\0A\00"
define void @write_block(i32* %0, i8* %1, float %2, float %3, float %4, float %5, float %6, float %7) {
%9 = alloca i32*
%10 = alloca i8*
%11 = alloca float
%12 = alloca float
%13 = alloca float
%14 = alloca float
%15 = alloca float
%16 = alloca float
store i32* %0, i32** %9
store i8* %1, i8** %10
store float %2, float* %11
store float %3, float* %12
store float %4, float* %13
store float %5, float* %14
store float %6, float* %15
store float %7, float* %16
%17 = load i32*, i32** %9
%18 = call i32 (i32*, i8*, ...) @fprintf(i32* %17, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%19 = load i32*, i32** %9
%20 = load float, float* %11
%21 = fpext float %20 to double
%22 = load float, float* %12
%23 = fpext float %22 to double
%24 = load float, float* %16
%25 = fpext float %24 to double
%26 = load float, float* %14
%27 = fpext float %26 to double
%28 = load float, float* %15
%29 = fpext float %28 to double
%30 = load float, float* %16
%31 = fpext float %30 to double
%32 = load float, float* %14
%33 = fpext float %32 to double
%34 = load float, float* %12
%35 = fpext float %34 to double
%36 = load float, float* %16
%37 = fpext float %36 to double
%38 = load i8*, i8** %10
%39 = call i32 (i32*, i8*, ...) @fprintf(i32* %19, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i64 0, i64 0), double %21, double %23, double %25, double %27, double %29, double %31, double %33, double %35, double %37, i8* %38)
%40 = load i32*, i32** %9
%41 = load float, float* %14
%42 = fpext float %41 to double
%43 = load float, float* %15
%44 = fpext float %43 to double
%45 = load float, float* %13
%46 = fpext float %45 to double
%47 = load float, float* %11
%48 = fpext float %47 to double
%49 = load float, float* %12
%50 = fpext float %49 to double
%51 = load float, float* %13
%52 = fpext float %51 to double
%53 = load float, float* %14
%54 = fpext float %53 to double
%55 = load float, float* %12
%56 = fpext float %55 to double
%57 = load float, float* %13
%58 = fpext float %57 to double
%59 = load i8*, i8** %10
%60 = call i32 (i32*, i8*, ...) @fprintf(i32* %40, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i64 0, i64 0), double %42, double %44, double %46, double %48, double %50, double %52, double %54, double %56, double %58, i8* %59)
%61 = load i32*, i32** %9
%62 = load float, float* %11
%63 = fpext float %62 to double
%64 = load float, float* %12
%65 = fpext float %64 to double
%66 = load float, float* %13
%67 = fpext float %66 to double
%68 = load float, float* %11
%69 = fpext float %68 to double
%70 = load float, float* %12
%71 = fpext float %70 to double
%72 = load float, float* %16
%73 = fpext float %72 to double
%74 = load float, float* %14
%75 = fpext float %74 to double
%76 = load float, float* %12
%77 = fpext float %76 to double
%78 = load float, float* %13
%79 = fpext float %78 to double
%80 = load i8*, i8** %10
%81 = call i32 (i32*, i8*, ...) @fprintf(i32* %61, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i64 0, i64 0), double %63, double %65, double %67, double %69, double %71, double %73, double %75, double %77, double %79, i8* %80)
%82 = load i32*, i32** %9
%83 = load float, float* %11
%84 = fpext float %83 to double
%85 = load float, float* %15
%86 = fpext float %85 to double
%87 = load float, float* %16
%88 = fpext float %87 to double
%89 = load float, float* %11
%90 = fpext float %89 to double
%91 = load float, float* %15
%92 = fpext float %91 to double
%93 = load float, float* %13
%94 = fpext float %93 to double
%95 = load float, float* %14
%96 = fpext float %95 to double
%97 = load float, float* %15
%98 = fpext float %97 to double
%99 = load float, float* %13
%100 = fpext float %99 to double
%101 = load i8*, i8** %10
%102 = call i32 (i32*, i8*, ...) @fprintf(i32* %82, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i64 0, i64 0), double %84, double %86, double %88, double %90, double %92, double %94, double %96, double %98, double %100, i8* %101)
%103 = load i32*, i32** %9
%104 = load float, float* %11
%105 = fpext float %104 to double
%106 = load float, float* %12
%107 = fpext float %106 to double
%108 = load float, float* %13
%109 = fpext float %108 to double
%110 = load float, float* %11
%111 = fpext float %110 to double
%112 = load float, float* %15
%113 = fpext float %112 to double
%114 = load float, float* %16
%115 = fpext float %114 to double
%116 = load float, float* %11
%117 = fpext float %116 to double
%118 = load float, float* %12
%119 = fpext float %118 to double
%120 = load float, float* %16
%121 = fpext float %120 to double
%122 = load i8*, i8** %10
%123 = call i32 (i32*, i8*, ...) @fprintf(i32* %103, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i64 0, i64 0), double %105, double %107, double %109, double %111, double %113, double %115, double %117, double %119, double %121, i8* %122)
%124 = load i32*, i32** %9
%125 = load float, float* %14
%126 = fpext float %125 to double
%127 = load float, float* %15
%128 = fpext float %127 to double
%129 = load float, float* %16
%130 = fpext float %129 to double
%131 = load float, float* %14
%132 = fpext float %131 to double
%133 = load float, float* %12
%134 = fpext float %133 to double
%135 = load float, float* %13
%136 = fpext float %135 to double
%137 = load float, float* %14
%138 = fpext float %137 to double
%139 = load float, float* %12
%140 = fpext float %139 to double
%141 = load float, float* %16
%142 = fpext float %141 to double
%143 = load i8*, i8** %10
%144 = call i32 (i32*, i8*, ...) @fprintf(i32* %124, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i64 0, i64 0), double %126, double %128, double %130, double %132, double %134, double %136, double %138, double %140, double %142, i8* %143)
%145 = load i32*, i32** %9
%146 = call i32 (i32*, i8*, ...) @fprintf(i32* %145, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c" {\0A\00"
@.str.1 = [55 x i8] c" ( %f %f %f ) ( %f %f %f ) ( %f %f %f ) %s 0 0 0 1 1\0A\00"
@.str.2 = [4 x i8] c" }\0A\00"
define void @write_block(i32* nocapture %0, i8* %1, float %2, float %3, float %4, float %5, float %6, float %7) {
%9 = tail call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64 3, i64 1, i32* %0)
%10 = fpext float %2 to double
%11 = fpext float %3 to double
%12 = fpext float %7 to double
%13 = fpext float %5 to double
%14 = fpext float %6 to double
%15 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i64 0, i64 0), double %10, double %11, double %12, double %13, double %14, double %12, double %13, double %11, double %12, i8* %1)
%16 = fpext float %4 to double
%17 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i64 0, i64 0), double %13, double %14, double %16, double %10, double %11, double %16, double %13, double %11, double %16, i8* %1)
%18 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i64 0, i64 0), double %10, double %11, double %16, double %10, double %11, double %12, double %13, double %11, double %16, i8* %1)
%19 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i64 0, i64 0), double %10, double %14, double %12, double %10, double %14, double %16, double %13, double %14, double %16, i8* %1)
%20 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i64 0, i64 0), double %10, double %11, double %16, double %10, double %14, double %12, double %10, double %11, double %12, i8* %1)
%21 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i64 0, i64 0), double %13, double %14, double %12, double %13, double %11, double %16, double %13, double %11, double %12, i8* %1)
%22 = tail call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i64 3, i64 1, i32* %0)
ret void
}