Skip to content
Snippets Groups Projects
Commit 65f59d72 authored by Jason Hiser's avatar Jason Hiser :tractor:
Browse files

attributes

Former-commit-id: cb1cc96aab532951c8029679608c3429d4a43a88
parent 8e4a1e61
No related branches found
No related tags found
No related merge requests found
#!/bin/bash -x
#!/bin/bash
analyze_file()
{
......@@ -42,6 +42,13 @@ analyze_file()
exit 2
fi
funcs=$(grep -e "FUNC GLOBAL" -e "FUNC LOCAL" a.ncexe.annot |wc -l)
namedFuncs=$(grep -e "FUNC GLOBAL" -e "FUNC LOCAL" a.ncexe.annot |grep -v "sub_" |wc -l )
unnamedFuncs=$(grep -e "FUNC GLOBAL" -e "FUNC LOCAL" a.ncexe.annot |grep "sub_" |wc -l )
echo "#ATTRIBUTE functions=$funcs"
echo "#ATTRIBUTE named_functions=$namedFuncs"
echo "#ATTRIBUTE unnamed_functions=$unnamedFuncs"
}
if [[ ! -z $1 ]]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment