| 1 |
#include <stdlib.h> |
| 2 |
#include "tree-vect.h" |
| 3 |
|
| 4 |
typedef struct { |
| 5 |
short I; |
| 6 |
int W; |
| 7 |
int X; |
| 8 |
int V; |
| 9 |
int U; |
| 10 |
int P; |
| 11 |
int Q; |
| 12 |
int R; |
| 13 |
} __attribute__((packed)) f1_neuron; |
| 14 |
|
| 15 |
f1_neuron *f1_layer; |
| 16 |
|
| 17 |
int numf1s = 1000; |
| 18 |
|
| 19 |
void __attribute__((noinline,noclone)) |
| 20 |
reset_nodes() |
| 21 |
{ |
| 22 |
int i; |
| 23 |
|
| 24 |
for (i=0;i<numf1s;i++) |
| 25 |
{ |
| 26 |
f1_layer[i].W = 0; |
| 27 |
f1_layer[i].X = 0; |
| 28 |
f1_layer[i].V = 0; |
| 29 |
f1_layer[i].U = 0; |
| 30 |
f1_layer[i].P = 0; |
| 31 |
f1_layer[i].Q = 0; |
| 32 |
f1_layer[i].R = 0; |
| 33 |
} |
| 34 |
} |
| 35 |
|
| 36 |
int main () |
| 37 |
{ |
| 38 |
int i; |
| 39 |
check_vect (); |
| 40 |
f1_layer = (f1_neuron *)malloc (numf1s * sizeof (f1_neuron)); |
| 41 |
for (i = 0; i < numf1s; i++) |
| 42 |
f1_layer[i].I = -1; |
| 43 |
reset_nodes (); |
| 44 |
#pragma GCC novector |
| 45 |
for (i = 0; i < numf1s; i++) |
| 46 |
if (f1_layer[i].I != -1) |
| 47 |
abort (); |
| 48 |
return 0; |
| 49 |
} |