2135 |
unsigned long c,len,pos; |
unsigned long c,len,pos; |
2136 |
unsigned long n_inputs; |
unsigned long n_inputs; |
2137 |
|
|
2138 |
CONSOLE_DEBUG("CREATING BLACK BOX RELATION"); |
/* CONSOLE_DEBUG("CREATING BLACK BOX RELATION"); */ |
2139 |
|
|
2140 |
n_inputs = gl_length(inputs); |
n_inputs = gl_length(inputs); |
2141 |
len = n_inputs + 1; /* an extra for the output variable. */ |
len = n_inputs + 1; /* an extra for the output variable. */ |
2151 |
|
|
2152 |
for (c=1;c<=n_inputs;c++) { |
for (c=1;c<=n_inputs;c++) { |
2153 |
var = (struct Instance *)gl_fetch(inputs,c); |
var = (struct Instance *)gl_fetch(inputs,c); |
2154 |
CONSOLE_DEBUG("ADDING INPUT '%p' TO INCIDENCE",var); |
/* CONSOLE_DEBUG("ADDING INPUT '%p' TO INCIDENCE",var); */ |
2155 |
|
|
2156 |
pos = gl_search(newlist,var,(CmpFunc)CmpP); |
pos = gl_search(newlist,var,(CmpFunc)CmpP); |
2157 |
if (pos) { |
if (pos) { |
2171 |
I think that this means the output variable. -- JP |
I think that this means the output variable. -- JP |
2172 |
*/ |
*/ |
2173 |
pos = gl_search(newlist,subject,(CmpFunc)CmpP); |
pos = gl_search(newlist,subject,(CmpFunc)CmpP); |
2174 |
CONSOLE_DEBUG("ADDING OUTPUT INSTANCE %p TO INCIDENCE",subject); |
/* CONSOLE_DEBUG("ADDING OUTPUT INSTANCE %p TO INCIDENCE",subject); */ |
2175 |
if(pos){ |
if(pos){ |
2176 |
FPRINTF(ASCERR,"An input and output variable are the same !!\n"); |
FPRINTF(ASCERR,"An input and output variable are the same !!\n"); |
2177 |
*args++ = (int)pos; |
*args++ = (int)pos; |