Created
March 6, 2013 04:45
-
-
Save liuyix/5096778 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cout <<"edit distance for t1 & t2:"; | |
| long long total_it_ed = 0; | |
| for( i = 0; i < it_ed.size(); i++) | |
| { | |
| cout << it_ed[i] << "," ; | |
| total_it_ed += it_ed[i]; | |
| } | |
| cout << endl; | |
| cout <<"edit distance for c1 & c2:"; | |
| long long total_ct_ed = 0; | |
| for( i = 0; i < ct_ed.size(); i++) | |
| { | |
| cout << ct_ed[i] << "," ; | |
| total_ct_ed += ct_ed[i]; | |
| } | |
| cout << endl; | |
| cout <<"info t1: inst. num=" << total_it1 << ",call num=" << total_ct1 << ",max seg.=" << gem5_max_seg << endl; | |
| cout <<"info t2: inst. num=" << total_it2 << ",call num=" << total_ct2 << ",max seg.=" << pin_max_seg << endl; | |
| cout <<"call sim.=" << 100 - total_ct_ed * 1.0 / (total_ct2 > total_ct1 ? total_ct2:total_ct1) * 100 << "%" << endl; | |
| cout <<"inst sim.=" << 100 - total_it_ed * 1.0 / (total_it2 > total_it1 ? total_it2:total_it1) * 100 << "%" << endl; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment