model_server/dd/src/dd_smt_util.cxx
//boris: get aname of ddRoot of app_head
//       returns    -1    if no app_head
//                   1    if no ddRoot
//                   0    success
get aname of ddRoot of app_head
returns    -1    if no app_head
1    if no ddRoot
0    success
get aname of ddRoot of app_head returns - 1 if no app_head 1 if no ddRoot 0 success
int dd_get_aname (app *ah, genString& aname)
{
    Initialize(dd_get_aname__app*__genString&);
    int res = -1;
    if (ah) {
	ah->get_root();
	ddElement *dd = checked_cast(ddElement, get_relation(dd_of_appHeader, ah));
	if (dd) {
	    aname = dd->get_assembler_name();
            res = 0;
        } else
            res = 1;
    }
    return res;
}
int dd_get_aname ( app * ah , genString & aname ) { Initialize ( dd_get_aname__app * __genString & ) ; int res = -1 ; if ( ah ) { ah -> get_root ( ) ; ddElement * dd = checked_cast ( ddElement , get_relation ( dd_of_appHeader , ah ) ) ; if ( dd ) { aname = dd -> get_assembler_name ( ) ; res = 0 ; } else res = 1 ; } return res ; }
boris: get aname of ddRoot of app_head
returns    -1    if no app_head
1    if no ddRoot
0    success
boris : get aname of ddRoot of app_head returns - 1 if no app_head 1 if no ddRoot 0 success
// return if no ddroot