mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-08-28 17:14:11 +02:00
Fix reduce_or
This commit is contained in:
committed by
Emily Schmidt
parent
b98210d8ac
commit
94ddbc9577
@@ -152,7 +152,10 @@ struct SmtPrintVisitor {
|
||||
}
|
||||
|
||||
std::string reduce_or(Node, Node a, int) {
|
||||
return format("(distinct %0 #b0)", np(a));
|
||||
std::stringstream ss;
|
||||
// We use ite to set the result to bit vector, to ensure appropriate type
|
||||
ss << "(ite (= " << np(a) << " #b" << std::string(a.width(), '0') << ") #b0 #b1)";
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
std::string reduce_xor(Node, Node a, int) {
|
||||
|
||||
Reference in New Issue
Block a user