Fix check logic in extract_fa
authorMiodrag Milanovic <mmicko@gmail.com>
Tue, 16 Jul 2019 08:35:18 +0000 (10:35 +0200)
committerMiodrag Milanovic <mmicko@gmail.com>
Tue, 16 Jul 2019 08:35:18 +0000 (10:35 +0200)
passes/techmap/extract_fa.cc

index 8de57e769091be7b1c2281f452a5774b24b3e6e3..591bc43dd5651ee4cfcbf076706f27a4f88b5647 100644 (file)
@@ -174,7 +174,7 @@ struct ExtractFaWorker
 
                                SigSpec sig = root;
 
-                               if (ce.eval(sig)) {
+                               if (!ce.eval(sig)) {
                                        ce.pop();
                                        return;
                                }
@@ -216,7 +216,7 @@ struct ExtractFaWorker
 
                                SigSpec sig = root;
 
-                               if (ce.eval(sig)) {
+                               if (!ce.eval(sig)) {
                                        ce.pop();
                                        return;
                                }