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

/* Variables and functions */
int /*<<< orphan*/ mihp_adress(float *, int, int);
int /*<<< orphan*/ mihp_endLoop();
int /*<<< orphan*/ mihp_newIteration();
int /*<<< orphan*/ mihp_newLoop(char *, char *, int);
void vectorisize(float *tabFloat, size_t size) {
  if (tabFloat == NULL || size == 0)
    return;
  int i;
  mihp_newLoop("vectorisize", "main.c", 15);
  for (i = 0; i < size; ++i) {
    tabFloat[i] = 1.0;
    mihp_adress(&tabFloat[i], sizeof(tabFloat[i]), 1);
    if ((i % 4) == 3) {
      tabFloat[i] = tabFloat[i - 3];
      mihp_adress(&tabFloat[i - 3], sizeof(tabFloat[i - 3]), 0);
      mihp_adress(&tabFloat[i], sizeof(tabFloat[i - 3]), 1);
    }
    mihp_newIteration();
  }
  mihp_endLoop();
  i = 4;
  mihp_newLoop("vectorisize", "main.c", 24);
  while (i < size) {
    tabFloat[i] = tabFloat[i - 4];
    mihp_adress(&tabFloat[i - 4], sizeof(tabFloat[i - 4]), 0);
    mihp_adress(&tabFloat[i], sizeof(tabFloat[i]), 0);
    mihp_adress(&tabFloat[i], sizeof(tabFloat[i]), 1);
    ++i;
    mihp_newIteration();
  }
  mihp_endLoop();
}


x86 assembly (clang, -O0):
<vectorisize>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1166 <vectorisize+0x26>
cmpq   $0x0,-0x10(%rbp)
jne    116b <vectorisize+0x2b>
jmp    1317 <vectorisize+0x1d7>
lea    0xe92(%rip),%rdi
lea    0xe97(%rip),%rsi
mov    $0xf,%edx
call   1060 <mihp_newLoop@plt>
movl   $0x0,-0x14(%rbp)
movslq -0x14(%rbp),%rax
cmp    -0x10(%rbp),%rax
jae    1250 <vectorisize+0x110>
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
movss  0xe58(%rip),%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0x8(%rbp),%rdi
movslq -0x14(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
call   1040 <mihp_adress@plt>
mov    -0x14(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
cmp    $0x3,%edx
jne    123b <vectorisize+0xfb>
mov    -0x8(%rbp),%rax
mov    -0x14(%rbp),%ecx
sub    $0x3,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x8(%rbp),%rdi
mov    -0x14(%rbp),%eax
sub    $0x3,%eax
cltq
shl    $0x2,%rax
add    %rax,%rdi
mov    $0x4,%esi
xor    %edx,%edx
call   1040 <mihp_adress@plt>
mov    -0x8(%rbp),%rdi
movslq -0x14(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
call   1040 <mihp_adress@plt>
mov    $0x0,%al
call   1030 <mihp_newIteration@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    118a <vectorisize+0x4a>
mov    $0x0,%al
call   1050 <mihp_endLoop@plt>
movl   $0x4,-0x14(%rbp)
lea    0xd9f(%rip),%rdi
lea    0xda4(%rip),%rsi
mov    $0x18,%edx
call   1060 <mihp_newLoop@plt>
movslq -0x14(%rbp),%rax
cmp    -0x10(%rbp),%rax
jae    1310 <vectorisize+0x1d0>
mov    -0x8(%rbp),%rax
mov    -0x14(%rbp),%ecx
sub    $0x4,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x8(%rbp),%rdi
mov    -0x14(%rbp),%eax
sub    $0x4,%eax
cltq
shl    $0x2,%rax
add    %rax,%rdi
mov    $0x4,%esi
xor    %edx,%edx
call   1040 <mihp_adress@plt>
mov    -0x8(%rbp),%rdi
movslq -0x14(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdi
mov    $0x4,%esi
xor    %edx,%edx
call   1040 <mihp_adress@plt>
mov    -0x8(%rbp),%rdi
movslq -0x14(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
call   1040 <mihp_adress@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1030 <mihp_newIteration@plt>
jmp    1276 <vectorisize+0x136>
mov    $0x0,%al
call   1050 <mihp_endLoop@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<vectorisize>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
test   %rdi,%rdi
je     11e2 <vectorisize+0xa2>
mov    %rsi,%r14
test   %rsi,%rsi
je     11e2 <vectorisize+0xa2>
mov    %rdi,%r15
lea    0xe99(%rip),%rdi
lea    0xe9e(%rip),%rsi
mov    $0xf,%edx
call   1060 <mihp_newLoop@plt>
mov    %r15,%rbx
xor    %r12d,%r12d
jmp    1194 <vectorisize+0x54>
xor    %eax,%eax
call   1030 <mihp_newIteration@plt>
add    $0x1,%r12
add    $0x4,%rbx
cmp    %r12,%r14
je     11ee <vectorisize+0xae>
movl   $0x3f800000,(%rbx)
mov    %rbx,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
call   1040 <mihp_adress@plt>
mov    %r12d,%eax
not    %eax
test   $0x3,%al
jne    1180 <vectorisize+0x40>
lea    -0xc(%rbx),%rdi
movss  -0xc(%rbx),%xmm0
movss  %xmm0,(%rbx)
mov    $0x4,%esi
xor    %edx,%edx
call   1040 <mihp_adress@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
call   1040 <mihp_adress@plt>
jmp    1180 <vectorisize+0x40>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret
xor    %eax,%eax
call   1050 <mihp_endLoop@plt>
lea    0xe04(%rip),%rdi
lea    0xe09(%rip),%rsi
mov    $0x18,%edx
call   1060 <mihp_newLoop@plt>
cmp    $0x5,%r14
jb     126d <vectorisize+0x12d>
add    $0x10,%r15
add    $0xfffffffffffffffc,%r14
nopl   0x0(%rax,%rax,1)
lea    -0x10(%r15),%rdi
movss  -0x10(%r15),%xmm0
movss  %xmm0,(%r15)
mov    $0x4,%esi
xor    %edx,%edx
call   1040 <mihp_adress@plt>
mov    %r15,%rdi
mov    $0x4,%esi
xor    %edx,%edx
call   1040 <mihp_adress@plt>
mov    %r15,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
call   1040 <mihp_adress@plt>
xor    %eax,%eax
call   1030 <mihp_newIteration@plt>
add    $0x4,%r15
add    $0xffffffffffffffff,%r14
jne    1220 <vectorisize+0xe0>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
jmp    1050 <mihp_endLoop@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"vectorisize\00"
@.str.1 = [7 x i8] c"main.c\00"
define void @vectorisize(float* %0, i64 %1) {
%3 = alloca float*
%4 = alloca i64
%5 = alloca i32
store float* %0, float** %3
store i64 %1, i64* %4
%6 = load float*, float** %3
%7 = icmp eq float* %6, null
br i1 %7, label %11, label %8
8: ; preds = %2
%9 = load i64, i64* %4
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %8, %2
br label %99
12: ; preds = %8
%13 = call i32 @mihp_newLoop(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 15)
store i32 0, i32* %5
br label %14
14: ; preds = %56, %12
%15 = load i32, i32* %5
%16 = sext i32 %15 to i64
%17 = load i64, i64* %4
%18 = icmp ult i64 %16, %17
br i1 %18, label %19, label %59
19: ; preds = %14
%20 = load float*, float** %3
%21 = load i32, i32* %5
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds float, float* %20, i64 %22
store float 1.000000e+00, float* %23
%24 = load float*, float** %3
%25 = load i32, i32* %5
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds float, float* %24, i64 %26
%28 = call i32 @mihp_adress(float* %27, i32 4, i32 1)
%29 = load i32, i32* %5
%30 = srem i32 %29, 4
%31 = icmp eq i32 %30, 3
br i1 %31, label %32, label %54
32: ; preds = %19
%33 = load float*, float** %3
%34 = load i32, i32* %5
%35 = sub nsw i32 %34, 3
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds float, float* %33, i64 %36
%38 = load float, float* %37
%39 = load float*, float** %3
%40 = load i32, i32* %5
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds float, float* %39, i64 %41
store float %38, float* %42
%43 = load float*, float** %3
%44 = load i32, i32* %5
%45 = sub nsw i32 %44, 3
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds float, float* %43, i64 %46
%48 = call i32 @mihp_adress(float* %47, i32 4, i32 0)
%49 = load float*, float** %3
%50 = load i32, i32* %5
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds float, float* %49, i64 %51
%53 = call i32 @mihp_adress(float* %52, i32 4, i32 1)
br label %54
54: ; preds = %32, %19
%55 = call i32 (...) @mihp_newIteration()
br label %56
56: ; preds = %54
%57 = load i32, i32* %5
%58 = add nsw i32 %57, 1
store i32 %58, i32* %5
br label %14
59: ; preds = %14
%60 = call i32 (...) @mihp_endLoop()
store i32 4, i32* %5
%61 = call i32 @mihp_newLoop(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 24)
br label %62
62: ; preds = %67, %59
%63 = load i32, i32* %5
%64 = sext i32 %63 to i64
%65 = load i64, i64* %4
%66 = icmp ult i64 %64, %65
br i1 %66, label %67, label %97
67: ; preds = %62
%68 = load float*, float** %3
%69 = load i32, i32* %5
%70 = sub nsw i32 %69, 4
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds float, float* %68, i64 %71
%73 = load float, float* %72
%74 = load float*, float** %3
%75 = load i32, i32* %5
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds float, float* %74, i64 %76
store float %73, float* %77
%78 = load float*, float** %3
%79 = load i32, i32* %5
%80 = sub nsw i32 %79, 4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds float, float* %78, i64 %81
%83 = call i32 @mihp_adress(float* %82, i32 4, i32 0)
%84 = load float*, float** %3
%85 = load i32, i32* %5
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds float, float* %84, i64 %86
%88 = call i32 @mihp_adress(float* %87, i32 4, i32 0)
%89 = load float*, float** %3
%90 = load i32, i32* %5
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds float, float* %89, i64 %91
%93 = call i32 @mihp_adress(float* %92, i32 4, i32 1)
%94 = load i32, i32* %5
%95 = add nsw i32 %94, 1
store i32 %95, i32* %5
%96 = call i32 (...) @mihp_newIteration()
br label %62
97: ; preds = %62
%98 = call i32 (...) @mihp_endLoop()
br label %99
99: ; preds = %97, %11
ret void
}

LLVM IR (-O2):
@.str = [12 x i8] c"vectorisize\00"
@.str.1 = [7 x i8] c"main.c\00"
define void @vectorisize(float* %0, i64 %1) {
%3 = icmp eq float* %0, null
%4 = icmp eq i64 %1, 0
%5 = or i1 %3, %4
br i1 %5, label %42, label %6
6: ; preds = %2
%7 = tail call i32 @mihp_newLoop(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 15)
br label %8
8: ; preds = %6, %20
%9 = phi i64 [ 0, %6 ], [ %22, %20 ]
%10 = getelementptr inbounds float, float* %0, i64 %9
store float 1.000000e+00, float* %10
%11 = tail call i32 @mihp_adress(float* %10, i32 4, i32 1)
%12 = and i64 %9, 3
%13 = icmp eq i64 %12, 3
br i1 %13, label %14, label %20
14: ; preds = %8
%15 = add nsw i64 %9, -3
%16 = getelementptr inbounds float, float* %0, i64 %15
%17 = load float, float* %16
store float %17, float* %10
%18 = tail call i32 @mihp_adress(float* %16, i32 4, i32 0)
%19 = tail call i32 @mihp_adress(float* %10, i32 4, i32 1)
br label %20
20: ; preds = %14, %8
%21 = tail call i32 (...) @mihp_newIteration()
%22 = add nuw i64 %9, 1
%23 = icmp eq i64 %22, %1
br i1 %23, label %24, label %8
24: ; preds = %20
%25 = tail call i32 (...) @mihp_endLoop()
%26 = tail call i32 @mihp_newLoop(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 24)
%27 = icmp ugt i64 %1, 4
br i1 %27, label %28, label %40
28: ; preds = %24, %28
%29 = phi i64 [ %37, %28 ], [ 4, %24 ]
%30 = add nsw i64 %29, -4
%31 = getelementptr inbounds float, float* %0, i64 %30
%32 = load float, float* %31
%33 = getelementptr inbounds float, float* %0, i64 %29
store float %32, float* %33
%34 = tail call i32 @mihp_adress(float* %31, i32 4, i32 0)
%35 = tail call i32 @mihp_adress(float* %33, i32 4, i32 0)
%36 = tail call i32 @mihp_adress(float* %33, i32 4, i32 1)
%37 = add nuw i64 %29, 1
%38 = tail call i32 (...) @mihp_newIteration()
%39 = icmp eq i64 %37, %1
br i1 %39, label %40, label %28
40: ; preds = %28, %24
%41 = tail call i32 (...) @mihp_endLoop()
br label %42
42: ; preds = %2, %40
ret void
}