read_aiger: discard LUT inputs with nodeID == 0; not < 2
authorEddie Hung <eddie@fpgeh.com>
Tue, 21 Jan 2020 19:56:01 +0000 (11:56 -0800)
committerEddie Hung <eddie@fpgeh.com>
Tue, 21 Jan 2020 19:56:30 +0000 (11:56 -0800)
frontends/aiger/aigerparse.cc

index 52bcfa0b6b13207097d0a333a3c73fbf50685681..e7478c3164cd79f5f0a6a20b2c920948bcddaf3b 100644 (file)
@@ -414,7 +414,7 @@ void AigerReader::parse_xaiger()
                                for (unsigned j = 0; j < cutLeavesM; ++j) {
                                        nodeID = parse_xaiger_literal(f);
                                        log_debug2("\t%u\n", nodeID);
-                                       if (nodeID < 2) {
+                                       if (nodeID == 0) {
                                                log_debug("\tLUT '$lut$aiger%d$%d' input %d is constant!\n", aiger_autoidx, rootNodeID, cutLeavesM);
                                                continue;
                                        }