diff options
author | N. Engelhardt <nak@yosyshq.com> | 2022-10-05 10:59:38 +0200 |
---|---|---|
committer | N. Engelhardt <nak@yosyshq.com> | 2022-10-05 10:59:38 +0200 |
commit | 47e73826e0bf53c514531687dd3a7e1fb7f29a13 (patch) | |
tree | fbbb53920cb63234b8d58614f423015363239bc7 | |
parent | b5d3920bf5441c6d9f83ee5345fbd3ca80adf098 (diff) | |
download | yosys-47e73826e0bf53c514531687dd3a7e1fb7f29a13.tar.gz yosys-47e73826e0bf53c514531687dd3a7e1fb7f29a13.tar.bz2 yosys-47e73826e0bf53c514531687dd3a7e1fb7f29a13.zip |
mutate: warn if less mutations possible than number requested
-rw-r--r-- | passes/sat/mutate.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/passes/sat/mutate.cc b/passes/sat/mutate.cc index 42eb0c6d0..02174be53 100644 --- a/passes/sat/mutate.cc +++ b/passes/sat/mutate.cc @@ -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)); + if (N > GetSize(database)) + log_warning("%d mutations requested but only %d could be created!\n", N, GetSize(database)); if (N != 0) { database_reduce(database, opts, opts.none ? N-1 : N, rng); log("Reduced database size: %d\n", GetSize(database)); |