This is a static copy of a profile reportHome
find_open_down_bond (11 calls, 5.453 sec)
Generated 15-Mar-2007 12:01:47 using real time.
M-function in file c:\mind07\find_open_down_bond.m
[Copy to new window for comparing multiple runs]
Parents (calling functions)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
11 | load c:\mind_data06 | 11 | 5.453 s | 100.0% |  |
30 | for i=1:n | 8 | 0.000 s | 0.0% |  |
15 | h=content(i,1);g=content(i,2);... | 37 | 0.000 s | 0.0% |  |
16 | arity=mod_omegas(modal); | 37 | 0.000 s | 0.0% |  |
28 | if isempty(connector)|(arity==... | 8 | 0.000 s | 0.0% |  |
Other lines & overhead | | | 0 s | 0% |  |
Totals | | | 5.453 s | 100% | |
Children (called functions)
No childrenM-Lint results
Line number | Message |
5 | The value assigned here to variable 'not_found' might never be used. |
17 | Use && instead of & as the AND operator in (scalar) conditional statements. |
18 | The value assigned here to variable 'm' might never be used. |
28 | Use || instead of | as the OR operator in (scalar) conditional statements. |
35 | The value assigned here to variable 'omega' might never be used. |
Coverage results
[ Show coverage for parent directory ]
Total lines in file | 39 |
Non-code lines (comments, blank lines) | 7 |
Code lines (lines that can run) | 32 |
Code lines that did run | 28 |
Code lines that did not run | 4 |
Coverage (did run/can run) | 87.50 % |
Function listing
time calls line
1 function [i,h,omega,found]=find_open_down_bond(content,connector)
2 %prepares for completing the given thought expressed as content,connectorn
3 %by searching for open down bond
11 4 if isempty(content)
5 i=1;h=1;omega=1;found=0;not_found=1;
6 %'EMPTY THOUGHT'
7 return
8 end
9
10 %find"down" open down-bonds
5.45 11 11 load c:\mind_data06
11 12 n=length(content(:,1));found=0;
13
11 14 for i=1:n
< 0.01 37 15 h=content(i,1);g=content(i,2);modal=g_mod(g);
< 0.01 37 16 arity=mod_omegas(modal);
37 17 if (arity >0) & (~isempty(connector))
8 18 m=length(connector(:,1));
8 19 for omega=1:arity
14 20 v=(connector(:,1)==h)&(connector(:,3)==omega);
14 21 if all(v==0)
< 0.01 3 22 found=1;
< 0.01 3 23 return
24 end
11 25 end
5 26 end
34 27 end
< 0.01 8 28 if isempty(connector)|(arity==0)
< 0.01 8 29 omega=1;
< 0.01 8 30 for i=1:n
< 0.01 27 31 h=content(i,1);g=content(i,2);modal=g_mod(g);
< 0.01 27 32 arity=mod_omegas(modal);
< 0.01 27 33 if arity>0
< 0.01 5 34 found=1;
< 0.01 5 35 omega=1;
5 36 end
< 0.01 27 37 omega=1;
< 0.01 27 38 end
< 0.01 8 39 end