mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #3500 from nakengelhardt/mutate_warn_not_enough
mutate: warn if less mutations possible than number requested
This commit is contained in:
commit
11203815a8
|
@ -527,6 +527,8 @@ void mutate_list(Design *design, const mutate_opts_t &opts, const string &filena
|
||||||
}
|
}
|
||||||
|
|
||||||
log("Raw database size: %d\n", GetSize(database));
|
log("Raw database size: %d\n", GetSize(database));
|
||||||
|
if (N > GetSize(database))
|
||||||
|
log_warning("%d mutations requested but only %d could be created!\n", N, GetSize(database));
|
||||||
if (N != 0) {
|
if (N != 0) {
|
||||||
database_reduce(database, opts, opts.none ? N-1 : N, rng);
|
database_reduce(database, opts, opts.none ? N-1 : N, rng);
|
||||||
log("Reduced database size: %d\n", GetSize(database));
|
log("Reduced database size: %d\n", GetSize(database));
|
||||||
|
|
Loading…
Reference in New Issue