#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*/ output_buffer;
typedef int /*<<< orphan*/ input_buffer;

/* Variables and functions */
int /*<<< orphan*/ O_RDONLY;
int /*<<< orphan*/ O_WRONLY;
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ mkfifo(char const *, int);
int open(char const *, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
int read(int, float *, int);
int /*<<< orphan*/ remove(char *);
int /*<<< orphan*/ unlink(char const *);
int write(int, float *, int);
int main() {
  printf("Ready...\n");
  int fd_i;
  int fd_o;
  remove("/tmp/input_fifo");
  remove("/tmp/output_fifo");
  const char *input_fifo = "/tmp/input_fifo";
  const char *output_fifo = "/tmp/output_fifo";
  mkfifo(input_fifo, 0666);
  mkfifo(output_fifo, 0666);
  fd_i = open(input_fifo, O_RDONLY);
  fd_o = open(output_fifo, O_WRONLY);
  float input_buffer[1 * 6];
  float v_x_;
  float v_y_;
  float x_;
  float y_;
  float a_x;
  float a_y;
  float output_buffer[1 * 4];
  float v_x;
  float v_y;
  float x;
  float y;
  while (1) {
    float input_buffer[1 * 6];
    int n_r = read(fd_i, input_buffer, sizeof(input_buffer));
    int i_ptr = 0;
    int o_ptr = 0;
    for (int b = 0; b < 1; b++) {
      v_x_ = input_buffer[i_ptr++];
      v_y_ = input_buffer[i_ptr++];
      x_ = input_buffer[i_ptr++];
      y_ = input_buffer[i_ptr++];
      a_x = input_buffer[i_ptr++];
      a_y = input_buffer[i_ptr++];
      v_x = v_x_ + 0.15 * a_x;
      v_y = v_y_ + 0.15 * a_y;
      v_x = (v_x > 0.5) ? 0.5 : (v_x < -0.5) ? -0.5 : v_x;
      v_y = (v_y > 0.5) ? 0.5 : (v_y < -0.5) ? -0.5 : v_y;
      x = x_ + 0.15 * v_x;
      y = y_ + 0.15 * v_y;
      output_buffer[o_ptr++] = v_x;
      output_buffer[o_ptr++] = v_y;
      output_buffer[o_ptr++] = x;
      output_buffer[o_ptr++] = y;
    }
    int n_w = write(fd_o, output_buffer, sizeof(output_buffer));
  }
  close(fd_i);
  close(fd_o);
  unlink(input_fifo);
  unlink(output_fifo);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe9f(%rip),%rdi
call   1050 <printf@plt>
lea    0xe9d(%rip),%rdi
call   1030 <remove@plt>
lea    0xea1(%rip),%rdi
call   1030 <remove@plt>
lea    0xe85(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    0xe8a(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rdi
mov    $0x1b6,%esi
call   1070 <mkfifo@plt>
mov    -0x20(%rbp),%rdi
mov    $0x1b6,%esi
call   1070 <mkfifo@plt>
mov    -0x18(%rbp),%rdi
mov    0x2e15(%rip),%rax
mov    (%rax),%esi
call   1080 <open@plt>
mov    %eax,-0x8(%rbp)
mov    -0x20(%rbp),%rdi
mov    0x2de8(%rip),%rax
mov    (%rax),%esi
call   1080 <open@plt>
mov    %eax,-0xc(%rbp)
mov    -0x8(%rbp),%edi
lea    -0xa0(%rbp),%rsi
mov    $0x18,%edx
call   1060 <read@plt>
mov    %eax,-0xa4(%rbp)
movl   $0x0,-0xa8(%rbp)
movl   $0x0,-0xac(%rbp)
movl   $0x0,-0xb0(%rbp)
cmpl   $0x1,-0xb0(%rbp)
jge    1559 <main+0x3f9>
mov    -0xa8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0xa8(%rbp)
cltq
movss  -0xa0(%rbp,%rax,4),%xmm0
ff ff
movss  %xmm0,-0x44(%rbp)
mov    -0xa8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0xa8(%rbp)
cltq
movss  -0xa0(%rbp,%rax,4),%xmm0
ff ff
movss  %xmm0,-0x48(%rbp)
mov    -0xa8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0xa8(%rbp)
cltq
movss  -0xa0(%rbp,%rax,4),%xmm0
ff ff
movss  %xmm0,-0x4c(%rbp)
mov    -0xa8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0xa8(%rbp)
cltq
movss  -0xa0(%rbp,%rax,4),%xmm0
ff ff
movss  %xmm0,-0x50(%rbp)
mov    -0xa8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0xa8(%rbp)
cltq
movss  -0xa0(%rbp,%rax,4),%xmm0
ff ff
movss  %xmm0,-0x54(%rbp)
mov    -0xa8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0xa8(%rbp)
cltq
movss  -0xa0(%rbp,%rax,4),%xmm0
ff ff
movss  %xmm0,-0x58(%rbp)
movss  -0x44(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movss  -0x54(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xcf1(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x74(%rbp)
movss  -0x48(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movss  -0x58(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xcc6(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x78(%rbp)
movss  -0x74(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xc9c(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1383 <main+0x223>
movsd  0xc8a(%rip),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
jmp    13d4 <main+0x274>
movss  -0x74(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xc7c(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    13b3 <main+0x253>
movsd  0xc6a(%rip),%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
jmp    13c4 <main+0x264>
movss  -0x74(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0xc8(%rbp),%xmm0
ff
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0xc0(%rbp),%xmm0
ff
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x74(%rbp)
movss  -0x78(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xc0a(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1415 <main+0x2b5>
movsd  0xbf8(%rip),%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
jmp    1466 <main+0x306>
movss  -0x78(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xbea(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    1445 <main+0x2e5>
movsd  0xbd8(%rip),%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
jmp    1456 <main+0x2f6>
movss  -0x78(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0xd8(%rbp),%xmm0
ff
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0xd0(%rbp),%xmm0
ff
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x78(%rbp)
movss  -0x4c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movss  -0x74(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xb77(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x7c(%rbp)
movss  -0x50(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movss  -0x78(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xb4c(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x80(%rbp)
movss  -0x74(%rbp),%xmm0
mov    -0xac(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0xac(%rbp)
cltq
movss  %xmm0,-0x70(%rbp,%rax,4)
movss  -0x78(%rbp),%xmm0
mov    -0xac(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0xac(%rbp)
cltq
movss  %xmm0,-0x70(%rbp,%rax,4)
movss  -0x7c(%rbp),%xmm0
mov    -0xac(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0xac(%rbp)
cltq
movss  %xmm0,-0x70(%rbp,%rax,4)
movss  -0x80(%rbp),%xmm0
mov    -0xac(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0xac(%rbp)
cltq
movss  %xmm0,-0x70(%rbp,%rax,4)
mov    -0xb0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xb0(%rbp)
jmp    122a <main+0xca>
mov    -0xc(%rbp),%edi
lea    -0x70(%rbp),%rsi
mov    $0x10,%edx
call   1040 <write@plt>
mov    %eax,-0xb4(%rbp)
jmp    11f2 <main+0x92>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x28,%rsp
lea    0xee0(%rip),%rdi
call   1040 <puts@plt>
lea    0xeb3(%rip),%rbx
mov    %rbx,%rdi
call   1030 <remove@plt>
lea    0xeb4(%rip),%rbp
mov    %rbp,%rdi
call   1030 <remove@plt>
mov    %rbx,%rdi
mov    $0x1b6,%esi
call   1070 <mkfifo@plt>
mov    %rbp,%rdi
mov    $0x1b6,%esi
call   1070 <mkfifo@plt>
mov    0x2e33(%rip),%rax
mov    (%rax),%esi
mov    %rbx,%rdi
call   1080 <open@plt>
mov    %eax,%ebx
mov    0x2e08(%rip),%rax
mov    (%rax),%esi
mov    %rbp,%rdi
call   1080 <open@plt>
mov    %eax,%ebp
lea    0x10(%rsp),%r14
mov    %rsp,%r15
jmp    1242 <main+0xe2>
xchg   %ax,%ax
cvtss2sd %xmm1,%xmm1
xorps  %xmm3,%xmm3
cvtss2sd %xmm2,%xmm3
movsd  0xe35(%rip),%xmm5
mulsd  %xmm5,%xmm3
addsd  %xmm1,%xmm3
xorps  %xmm1,%xmm1
cvtsd2ss %xmm3,%xmm1
cvtss2sd %xmm0,%xmm0
xorps  %xmm3,%xmm3
cvtss2sd %xmm4,%xmm3
mulsd  %xmm5,%xmm3
addsd  %xmm0,%xmm3
xorps  %xmm0,%xmm0
cvtsd2ss %xmm3,%xmm0
movss  %xmm2,(%rsp)
movss  %xmm4,0x4(%rsp)
movss  %xmm1,0x8(%rsp)
movss  %xmm0,0xc(%rsp)
mov    %ebp,%edi
mov    %r15,%rsi
mov    $0x10,%edx
call   1050 <write@plt>
mov    %ebx,%edi
mov    %r14,%rsi
mov    $0x18,%edx
call   1060 <read@plt>
movss  0x18(%rsp),%xmm1
movss  0x1c(%rsp),%xmm0
cvtps2pd 0x10(%rsp),%xmm2
cvtps2pd 0x20(%rsp),%xmm3
mulpd  0xd91(%rip),%xmm3
addpd  %xmm2,%xmm3
cvtpd2ps %xmm3,%xmm3
movaps 0xd92(%rip),%xmm2
cmpltps %xmm3,%xmm2
unpcklps %xmm2,%xmm2
movmskpd %xmm2,%eax
movss  0xd93(%rip),%xmm2
test   $0x1,%al
jne    12a1 <main+0x141>
movss  0xd83(%rip),%xmm2
maxss  %xmm3,%xmm2
movss  0xd7b(%rip),%xmm4
test   $0x2,%al
jne    11e0 <main+0x80>
shufps $0x55,%xmm3,%xmm3
movss  0xd63(%rip),%xmm4
maxss  %xmm3,%xmm4
jmp    11e0 <main+0x80>

LLVM IR (-O0):
@.str = [10 x i8] c"Ready...\0A\00"
@.str.1 = [16 x i8] c"/tmp/input_fifo\00"
@.str.2 = [17 x i8] c"/tmp/output_fifo\00"
@O_RDONLY = global i32 0
@O_WRONLY = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca [6 x float]
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
%12 = alloca float
%13 = alloca [4 x float]
%14 = alloca float
%15 = alloca float
%16 = alloca float
%17 = alloca float
%18 = alloca [6 x float]
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
store i32 0, i32* %1
%24 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%25 = call i32 @remove(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
%26 = call i32 @remove(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i8** %4
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8** %5
%27 = load i8*, i8** %4
%28 = call i32 @mkfifo(i8* %27, i32 438)
%29 = load i8*, i8** %5
%30 = call i32 @mkfifo(i8* %29, i32 438)
%31 = load i8*, i8** %4
%32 = load i32, i32* @O_RDONLY
%33 = call i32 @open(i8* %31, i32 %32)
store i32 %33, i32* %2
%34 = load i8*, i8** %5
%35 = load i32, i32* @O_WRONLY
%36 = call i32 @open(i8* %34, i32 %35)
store i32 %36, i32* %3
br label %37
37: ; preds = %0, %156
%38 = load i32, i32* %2
%39 = getelementptr inbounds [6 x float], [6 x float]* %18, i64 0, i64 0
%40 = call i32 @read(i32 %38, float* %39, i32 24)
store i32 %40, i32* %19
store i32 0, i32* %20
store i32 0, i32* %21
store i32 0, i32* %22
br label %41
41: ; preds = %153, %37
%42 = load i32, i32* %22
%43 = icmp slt i32 %42, 1
br i1 %43, label %44, label %156
44: ; preds = %41
%45 = load i32, i32* %20
%46 = add nsw i32 %45, 1
store i32 %46, i32* %20
%47 = sext i32 %45 to i64
%48 = getelementptr inbounds [6 x float], [6 x float]* %18, i64 0, i64 %47
%49 = load float, float* %48
store float %49, float* %7
%50 = load i32, i32* %20
%51 = add nsw i32 %50, 1
store i32 %51, i32* %20
%52 = sext i32 %50 to i64
%53 = getelementptr inbounds [6 x float], [6 x float]* %18, i64 0, i64 %52
%54 = load float, float* %53
store float %54, float* %8
%55 = load i32, i32* %20
%56 = add nsw i32 %55, 1
store i32 %56, i32* %20
%57 = sext i32 %55 to i64
%58 = getelementptr inbounds [6 x float], [6 x float]* %18, i64 0, i64 %57
%59 = load float, float* %58
store float %59, float* %9
%60 = load i32, i32* %20
%61 = add nsw i32 %60, 1
store i32 %61, i32* %20
%62 = sext i32 %60 to i64
%63 = getelementptr inbounds [6 x float], [6 x float]* %18, i64 0, i64 %62
%64 = load float, float* %63
store float %64, float* %10
%65 = load i32, i32* %20
%66 = add nsw i32 %65, 1
store i32 %66, i32* %20
%67 = sext i32 %65 to i64
%68 = getelementptr inbounds [6 x float], [6 x float]* %18, i64 0, i64 %67
%69 = load float, float* %68
store float %69, float* %11
%70 = load i32, i32* %20
%71 = add nsw i32 %70, 1
store i32 %71, i32* %20
%72 = sext i32 %70 to i64
%73 = getelementptr inbounds [6 x float], [6 x float]* %18, i64 0, i64 %72
%74 = load float, float* %73
store float %74, float* %12
%75 = load float, float* %7
%76 = fpext float %75 to double
%77 = load float, float* %11
%78 = fpext float %77 to double
%79 = call double @llvm.fmuladd.f64(double 1.500000e-01, double %78, double %76)
%80 = fptrunc double %79 to float
store float %80, float* %14
%81 = load float, float* %8
%82 = fpext float %81 to double
%83 = load float, float* %12
%84 = fpext float %83 to double
%85 = call double @llvm.fmuladd.f64(double 1.500000e-01, double %84, double %82)
%86 = fptrunc double %85 to float
store float %86, float* %15
%87 = load float, float* %14
%88 = fpext float %87 to double
%89 = fcmp ogt double %88, 5.000000e-01
br i1 %89, label %90, label %91
90: ; preds = %44
br label %101
91: ; preds = %44
%92 = load float, float* %14
%93 = fpext float %92 to double
%94 = fcmp olt double %93, -5.000000e-01
br i1 %94, label %95, label %96
95: ; preds = %91
br label %99
96: ; preds = %91
%97 = load float, float* %14
%98 = fpext float %97 to double
br label %99
99: ; preds = %96, %95
%100 = phi double [ -5.000000e-01, %95 ], [ %98, %96 ]
br label %101
101: ; preds = %99, %90
%102 = phi double [ 5.000000e-01, %90 ], [ %100, %99 ]
%103 = fptrunc double %102 to float
store float %103, float* %14
%104 = load float, float* %15
%105 = fpext float %104 to double
%106 = fcmp ogt double %105, 5.000000e-01
br i1 %106, label %107, label %108
107: ; preds = %101
br label %118
108: ; preds = %101
%109 = load float, float* %15
%110 = fpext float %109 to double
%111 = fcmp olt double %110, -5.000000e-01
br i1 %111, label %112, label %113
112: ; preds = %108
br label %116
113: ; preds = %108
%114 = load float, float* %15
%115 = fpext float %114 to double
br label %116
116: ; preds = %113, %112
%117 = phi double [ -5.000000e-01, %112 ], [ %115, %113 ]
br label %118
118: ; preds = %116, %107
%119 = phi double [ 5.000000e-01, %107 ], [ %117, %116 ]
%120 = fptrunc double %119 to float
store float %120, float* %15
%121 = load float, float* %9
%122 = fpext float %121 to double
%123 = load float, float* %14
%124 = fpext float %123 to double
%125 = call double @llvm.fmuladd.f64(double 1.500000e-01, double %124, double %122)
%126 = fptrunc double %125 to float
store float %126, float* %16
%127 = load float, float* %10
%128 = fpext float %127 to double
%129 = load float, float* %15
%130 = fpext float %129 to double
%131 = call double @llvm.fmuladd.f64(double 1.500000e-01, double %130, double %128)
%132 = fptrunc double %131 to float
store float %132, float* %17
%133 = load float, float* %14
%134 = load i32, i32* %21
%135 = add nsw i32 %134, 1
store i32 %135, i32* %21
%136 = sext i32 %134 to i64
%137 = getelementptr inbounds [4 x float], [4 x float]* %13, i64 0, i64 %136
store float %133, float* %137
%138 = load float, float* %15
%139 = load i32, i32* %21
%140 = add nsw i32 %139, 1
store i32 %140, i32* %21
%141 = sext i32 %139 to i64
%142 = getelementptr inbounds [4 x float], [4 x float]* %13, i64 0, i64 %141
store float %138, float* %142
%143 = load float, float* %16
%144 = load i32, i32* %21
%145 = add nsw i32 %144, 1
store i32 %145, i32* %21
%146 = sext i32 %144 to i64
%147 = getelementptr inbounds [4 x float], [4 x float]* %13, i64 0, i64 %146
store float %143, float* %147
%148 = load float, float* %17
%149 = load i32, i32* %21
%150 = add nsw i32 %149, 1
store i32 %150, i32* %21
%151 = sext i32 %149 to i64
%152 = getelementptr inbounds [4 x float], [4 x float]* %13, i64 0, i64 %151
store float %148, float* %152
br label %153
153: ; preds = %118
%154 = load i32, i32* %22
%155 = add nsw i32 %154, 1
store i32 %155, i32* %22
br label %41
156: ; preds = %41
%157 = load i32, i32* %3
%158 = getelementptr inbounds [4 x float], [4 x float]* %13, i64 0, i64 0
%159 = call i32 @write(i32 %157, float* %158, i32 16)
store i32 %159, i32* %23
br label %37
}

LLVM IR (-O2):
@.str.1 = [16 x i8] c"/tmp/input_fifo\00"
@.str.2 = [17 x i8] c"/tmp/output_fifo\00"
@O_RDONLY = global i32 0
@O_WRONLY = global i32 0
@str = [9 x i8] c"Ready...\00"
define i32 @main() {
%1 = alloca [4 x float]
%2 = alloca [6 x float]
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @remove(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @remove(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 @mkfifo(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 438)
%7 = tail call i32 @mkfifo(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32 438)
%8 = load i32, i32* @O_RDONLY
%9 = tail call i32 @open(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 %8)
%10 = load i32, i32* @O_WRONLY
%11 = tail call i32 @open(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32 %10)
%12 = bitcast [4 x float]* %1 to i8*
%13 = bitcast [6 x float]* %2 to i8*
%14 = getelementptr inbounds [6 x float], [6 x float]* %2, i64 0, i64 0
%15 = getelementptr inbounds [4 x float], [4 x float]* %1, i64 0, i64 0
%16 = getelementptr inbounds [6 x float], [6 x float]* %2, i64 0, i64 2
%17 = getelementptr inbounds [6 x float], [6 x float]* %2, i64 0, i64 3
%18 = getelementptr inbounds [6 x float], [6 x float]* %2, i64 0, i64 4
%19 = getelementptr inbounds [4 x float], [4 x float]* %1, i64 0, i64 1
%20 = getelementptr inbounds [4 x float], [4 x float]* %1, i64 0, i64 2
%21 = getelementptr inbounds [4 x float], [4 x float]* %1, i64 0, i64 3
%22 = bitcast [6 x float]* %2 to <2 x float>*
%23 = bitcast float* %18 to <2 x float>*
br label %24
24: ; preds = %24, %0
%25 = call i32 @read(i32 %9, float* %14, i32 24)
%26 = load <2 x float>, <2 x float>* %22
%27 = load float, float* %16
%28 = load float, float* %17
%29 = load <2 x float>, <2 x float>* %23
%30 = fpext <2 x float> %26 to <2 x double>
%31 = fpext <2 x float> %29 to <2 x double>
%32 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %31, <2 x double> <double 1.500000e-01, double 1.500000e-01>, <2 x double> %30)
%33 = fptrunc <2 x double> %32 to <2 x float>
%34 = extractelement <2 x float> %33, i64 0
%35 = fcmp olt float %34, -5.000000e-01
%36 = select i1 %35, float -5.000000e-01, float %34
%37 = fcmp ogt <2 x float> %33, <float 5.000000e-01, float 5.000000e-01>
%38 = extractelement <2 x i1> %37, i64 0
%39 = select i1 %38, float 5.000000e-01, float %36
%40 = extractelement <2 x float> %33, i64 1
%41 = fcmp olt float %40, -5.000000e-01
%42 = select i1 %41, float -5.000000e-01, float %40
%43 = extractelement <2 x i1> %37, i64 1
%44 = select i1 %43, float 5.000000e-01, float %42
%45 = fpext float %27 to double
%46 = fpext float %39 to double
%47 = tail call double @llvm.fmuladd.f64(double %46, double 1.500000e-01, double %45)
%48 = fptrunc double %47 to float
%49 = fpext float %28 to double
%50 = fpext float %44 to double
%51 = tail call double @llvm.fmuladd.f64(double %50, double 1.500000e-01, double %49)
%52 = fptrunc double %51 to float
store float %39, float* %15
store float %44, float* %19
store float %48, float* %20
store float %52, float* %21
%53 = call i32 @write(i32 %11, float* %15, i32 16)
br label %24
}