@@ -119,7 +119,7 @@ static void parseCheckPoint(string outFileName,vector<string>& ret){
119119 return ;
120120}
121121
122- int MAX_NUM_TRACES_PER_SEED = 128 ;
122+ int MAX_NUM_TRACES_PER_SEED = 512 ;
123123int MAX_NUM_SEEDS_PER_FUNC = 50 ;
124124int MAX_NUM_CALLSITES_PER_CALLER=10 ;
125125int MAX_NUM_CALLERS=10 ;
@@ -194,7 +194,7 @@ bool KSym::runOnModule(Module &m) {
194194 if(std::find(alreadyProcess.begin(),alreadyProcess.end(),funcName) != alreadyProcess.end()){
195195 continue;
196196 }*/
197- string tarFunc (" ch_gstatus " );
197+ string tarFunc (" sys_copyarea " );
198198 // if(funcName != tarFunc ) {
199199 // continue;
200200 // }
@@ -297,16 +297,17 @@ bool KSym::runOnModule(Module &m) {
297297 errs ()<<to_write;
298298 SAHandle* handleInter = new SAHandle (*cur_caller,&(calleeF->getFunc ()),\
299299 mo,fw,user_paras,eachCallerFunc->second ,&calleeF->interPTraces ,taintSum,hop_count);
300- handleInter-> runInter ();
300+ //
301301 /*
302+ handleInter->runInter();
302303 vector<string> new_processed_funcs(processed_funcs.begin(),processed_funcs.end());
303304 new_processed_funcs.push_back(caller_name);
304305 calleeList_next.push_back(make_pair(handleInter,new_processed_funcs));
305306 handleInter->mergeResult(summarized);
306307 */
307308 std::future<void > fut = std::async (std::launch::async,&SAHandle::runInter,handleInter);
308- std::chrono::system_clock::time_point one_hundred_seconds = std::chrono::system_clock::now () + std::chrono::seconds (100 );
309- if (fut.wait_until (one_hundred_seconds ) == std::future_status::ready){
309+ std::chrono::system_clock::time_point timed_out_limit = std::chrono::system_clock::now () + std::chrono::seconds (200 );
310+ if (fut.wait_until (timed_out_limit ) == std::future_status::ready){
310311 vector<string> new_processed_funcs (processed_funcs.begin (),processed_funcs.end ());
311312 new_processed_funcs.push_back (caller_name);
312313 calleeList_next.push_back (make_pair (handleInter,new_processed_funcs));
0 commit comments