commit 5622d4b9060e6fa0cad2345ad1b184cbbad73477 Author: aboelhamd Date: Mon Aug 19 18:53:15 2019 +0200 One random ambiguity (coverage) in a sentenece modification. diff --git a/src/YasmetFormatter.cpp b/src/YasmetFormatter.cpp index 2d9f038..4a2a3c2 100644 --- a/src/YasmetFormatter.cpp +++ b/src/YasmetFormatter.cpp @@ -216,10 +216,18 @@ int main(int argc, char **argv) { // make a directory if not found mkdir(datasetsPath.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH); + srand(time(NULL)); + int random = rand() % ambigInfo.size(); + unsigned weigInd = 0; for (unsigned i = 0; i < ambigInfo.size(); i++) { RuleExecution::AmbigInfo* ambig = ambigInfo[i]; + if (i != random) { + weigInd += ambig->combinations.size(); + continue; + } + // name of the file is the concatenation of rules ids string rulesNums; for (unsigned x = 0; x < ambig->combinations.size(); x++) {