mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
tighten ghost vertex checks
This commit is contained in:
parent
0749f7c06d
commit
1e5fcd5e80
@ -380,15 +380,19 @@ bool sameGhostProperties(const RoseBuildImpl &build, RoseVertex a,
|
||||
ghost_b.push_back(e.first);
|
||||
}
|
||||
}
|
||||
if (!ghost_a.empty() || !ghost_a.empty()) {
|
||||
DEBUG_PRINTF("ghost map targets\n");
|
||||
if (build.g[a].literals != build.g[b].literals) {
|
||||
DEBUG_PRINTF("diff literals\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (ghost_a.empty() && ghost_b.empty()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return true;
|
||||
if (ghost_a.empty() || ghost_b.empty()) {
|
||||
DEBUG_PRINTF("only one is a ghost vertex\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
// Both are ghost vertices: it is only safe to merge them if their literals
|
||||
// are the same.
|
||||
return build.g[a].literals == build.g[b].literals;
|
||||
}
|
||||
|
||||
static
|
||||
|
Loading…
x
Reference in New Issue
Block a user