aboutsummaryrefslogtreecommitdiffstats
path: root/passes/sat
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2022-08-08 20:30:50 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2022-08-08 20:30:50 +0200
commitf4a1906721507c512050f62080a999c4147d92d6 (patch)
tree092fb5c922a6b87f5aa72be3b55d8d48142e611a /passes/sat
parent6c65ca4e50cc6712d9293b9630afdf67af89ef61 (diff)
downloadyosys-f4a1906721507c512050f62080a999c4147d92d6.tar.gz
yosys-f4a1906721507c512050f62080a999c4147d92d6.tar.bz2
yosys-f4a1906721507c512050f62080a999c4147d92d6.zip
support file locations containing spaces
Diffstat (limited to 'passes/sat')
-rw-r--r--passes/sat/qbfsat.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/passes/sat/qbfsat.cc b/passes/sat/qbfsat.cc
index 864d6f05d..1302b3383 100644
--- a/passes/sat/qbfsat.cc
+++ b/passes/sat/qbfsat.cc
@@ -216,7 +216,7 @@ QbfSolutionType call_qbf_solver(RTLIL::Module *mod, const QbfSolveOptions &opt,
QbfSolutionType ret;
const std::string yosys_smtbmc_exe = proc_self_dirname() + "yosys-smtbmc";
const std::string smtbmc_warning = "z3: WARNING:";
- const std::string smtbmc_cmd = stringf("%s -s %s %s -t 1 -g --binary %s %s/problem%d.smt2 2>&1",
+ const std::string smtbmc_cmd = stringf("\"%s\" -s %s %s -t 1 -g --binary %s %s/problem%d.smt2 2>&1",
yosys_smtbmc_exe.c_str(), opt.get_solver_name().c_str(),
(opt.timeout != 0? stringf("--timeout %d", opt.timeout) : "").c_str(),
(opt.dump_final_smt2? "--dump-smt2 " + opt.dump_final_smt2_file : "").c_str(),