std::string str = p;
int strsz = str.size();
if (strsz > 0 && str[strsz-1] == ';') {
+ int num_semikolon = 0;
while (strsz > 0 && str[strsz-1] == ';')
- strsz--;
+ strsz--, num_semikolon++;
if (strsz > 0)
args.push_back(str.substr(0, strsz));
call(design, args);
args.clear();
+ if (num_semikolon == 2)
+ call(design, "clean");
} else
args.push_back(str);
}
log("\n");
log("This is identical to opt_clean, but less verbose.\n");
log("\n");
+ log("When commands are seperated using the ';;' token, this command will be executed\n");
+ log("between the commands.\n");
+ log("\n");
}
virtual void execute(std::vector<std::string> args, RTLIL::Design *design)
{