#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*/ abort();
__attribute__((no)) void bar(float *pa, float *pb, float *pc) {
  int i;
  for (i = 0; i < 256 / 2; i++) {
    if (pa[i + 1] != (pb[i + 1] * pc[i + 1]))
      abort();
  }
  return;
}


x86 assembly (clang, -O0):
<bar>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0x80,-0x1c(%rbp)
jge    119c <bar+0x8c>
mov    -0x8(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm1
mov    -0x18(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mulss  (%rax,%rcx,4),%xmm1
ucomiss %xmm1,%xmm0
jne    1182 <bar+0x72>
jp     1182 <bar+0x72>
jmp    1189 <bar+0x79>
mov    $0x0,%al
call   1030 <abort@plt>
jmp    118e <bar+0x7e>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    112b <bar+0x1b>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bar>:
push   %rax
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movss  0x4(%rdi,%rax,4),%xmm0
movss  0x4(%rsi,%rax,4),%xmm1
mulss  0x4(%rdx,%rax,4),%xmm1
ucomiss %xmm1,%xmm0
jne    1175 <bar+0x65>
jp     1175 <bar+0x65>
movss  0x8(%rdi,%rax,4),%xmm0
movss  0x8(%rsi,%rax,4),%xmm1
mulss  0x8(%rdx,%rax,4),%xmm1
ucomiss %xmm1,%xmm0
jne    1175 <bar+0x65>
jp     1175 <bar+0x65>
cmp    $0x7e,%rax
je     117c <bar+0x6c>
movss  0xc(%rsi,%rax,4),%xmm0
mulss  0xc(%rdx,%rax,4),%xmm0
movss  0xc(%rdi,%rax,4),%xmm1
add    $0x3,%rax
ucomiss %xmm0,%xmm1
jne    1175 <bar+0x65>
jnp    1120 <bar+0x10>
xor    %eax,%eax
call   1030 <abort@plt>
pop    %rax
ret

LLVM IR (-O0):
define void @bar(float* %0, float* %1, float* %2) {
%4 = alloca float*
%5 = alloca float*
%6 = alloca float*
%7 = alloca i32
store float* %0, float** %4
store float* %1, float** %5
store float* %2, float** %6
store i32 0, i32* %7
br label %8
8: ; preds = %35, %3
%9 = load i32, i32* %7
%10 = icmp slt i32 %9, 128
br i1 %10, label %11, label %38
11: ; preds = %8
%12 = load float*, float** %4
%13 = load i32, i32* %7
%14 = add nsw i32 %13, 1
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds float, float* %12, i64 %15
%17 = load float, float* %16
%18 = load float*, float** %5
%19 = load i32, i32* %7
%20 = add nsw i32 %19, 1
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds float, float* %18, i64 %21
%23 = load float, float* %22
%24 = load float*, float** %6
%25 = load i32, i32* %7
%26 = add nsw i32 %25, 1
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds float, float* %24, i64 %27
%29 = load float, float* %28
%30 = fmul float %23, %29
%31 = fcmp une float %17, %30
br i1 %31, label %32, label %34
32: ; preds = %11
%33 = call i32 (...) @abort()
unreachable
34: ; preds = %11
br label %35
35: ; preds = %34
%36 = load i32, i32* %7
%37 = add nsw i32 %36, 1
store i32 %37, i32* %7
br label %8
38: ; preds = %8
ret void
}

LLVM IR (-O2):
define void @bar(float* nocapture %0, float* nocapture %1, float* nocapture %2) {
br label %4
4: ; preds = %27, %3
%5 = phi i64 [ 0, %3 ], [ %28, %27 ]
%6 = add nuw nsw i64 %5, 1
%7 = getelementptr inbounds float, float* %0, i64 %6
%8 = load float, float* %7
%9 = getelementptr inbounds float, float* %1, i64 %6
%10 = load float, float* %9
%11 = getelementptr inbounds float, float* %2, i64 %6
%12 = load float, float* %11
%13 = fmul float %10, %12
%14 = fcmp une float %8, %13
br i1 %14, label %37, label %15
15: ; preds = %4
%16 = add nuw nsw i64 %5, 2
%17 = getelementptr inbounds float, float* %0, i64 %16
%18 = load float, float* %17
%19 = getelementptr inbounds float, float* %1, i64 %16
%20 = load float, float* %19
%21 = getelementptr inbounds float, float* %2, i64 %16
%22 = load float, float* %21
%23 = fmul float %20, %22
%24 = fcmp une float %18, %23
br i1 %24, label %37, label %25
25: ; preds = %15
%26 = icmp eq i64 %16, 128
br i1 %26, label %39, label %27
27: ; preds = %25
%28 = add nuw nsw i64 %5, 3
%29 = getelementptr inbounds float, float* %0, i64 %28
%30 = load float, float* %29
%31 = getelementptr inbounds float, float* %1, i64 %28
%32 = load float, float* %31
%33 = getelementptr inbounds float, float* %2, i64 %28
%34 = load float, float* %33
%35 = fmul float %32, %34
%36 = fcmp une float %30, %35
br i1 %36, label %37, label %4
37: ; preds = %27, %15, %4
%38 = tail call i32 (...) @abort()
unreachable
39: ; preds = %25
ret void
}