diff options
| author | Cyril Cohen | 2019-04-02 17:02:43 +0200 |
|---|---|---|
| committer | Cyril Cohen | 2019-04-02 17:02:43 +0200 |
| commit | beb5b00f4f35859f48f12a6e0dd9e86d65609822 (patch) | |
| tree | be611c81c257d984a1ce82dd1f037ebf22d6bb1e | |
| parent | 562da0c4beec2525db4867e56867576aaf6c0bd8 (diff) | |
speedup in hierarchy_test.py
| -rw-r--r-- | etc/utils/hierarchy_test.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/etc/utils/hierarchy_test.py b/etc/utils/hierarchy_test.py index bc90c55..30de3e6 100644 --- a/etc/utils/hierarchy_test.py +++ b/etc/utils/hierarchy_test.py @@ -17,7 +17,7 @@ def common_children(G): result = set() for x in G.nodes(): for y in G.nodes(): - if children(G,x).intersection(children(G,y)) != set(): + if x < y and children(G,x).intersection(children(G,y)) != set(): result.add((x,y)) return result @@ -31,8 +31,7 @@ def print_common_children_coq_check(G): print ("Local Notation \"" + x + ".type\" := (" + x + ".type _).") print ("") for (x, y) in common_children(G): - if x < y: - print ("Check erefl : (_ : " + x + ".type) = (_ : " + y + ".type) :> Type.") + print ("Check erefl : (_ : " + x + ".type) = (_ : " + y + ".type) :> Type.") def main(): parser = argparse.ArgumentParser(description='Generate a check .v file \ |
