mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-14 08:50:44 +02:00
* better complexity calculation of tvecnodes
git-svn-id: trunk@47151 -
This commit is contained in:
parent
044133fc87
commit
6fc930a0fc
@ -872,7 +872,17 @@ implementation
|
|||||||
exit;
|
exit;
|
||||||
p := tunarynode(p).left;
|
p := tunarynode(p).left;
|
||||||
end;
|
end;
|
||||||
vecn,
|
vecn:
|
||||||
|
begin
|
||||||
|
inc(result,node_complexity(tbinarynode(p).left));
|
||||||
|
inc(result);
|
||||||
|
if (result >= NODE_COMPLEXITY_INF) then
|
||||||
|
begin
|
||||||
|
result := NODE_COMPLEXITY_INF;
|
||||||
|
exit;
|
||||||
|
end;
|
||||||
|
p := tbinarynode(p).right;
|
||||||
|
end;
|
||||||
statementn:
|
statementn:
|
||||||
begin
|
begin
|
||||||
inc(result,node_complexity(tbinarynode(p).left));
|
inc(result,node_complexity(tbinarynode(p).left));
|
||||||
|
Loading…
Reference in New Issue
Block a user