diff --git a/cfg_utils.py b/cfg_utils.py index 49e809328e5880e2b4a5a793048f0dc86e399c78..cd4e16107bfd1458786dbc6e0697ebc37560fc3e 100644 --- a/cfg_utils.py +++ b/cfg_utils.py @@ -102,7 +102,7 @@ def indexes_to_item(tree, location): def random_leaf_random_rule(tree, leafcache, ruleset): - for x in range(256): + for x in range(16): proband_cache_index = random.randrange(len(leafcache)) location = leafcache[proband_cache_index] @@ -185,7 +185,7 @@ walk_the_tree(test_tree) leafcache = [[]] def the_tree_farm(): - for x in range(10): + for x in range(16): selected = random_leaf_random_rule(test_tree, leafcache, rules) if (selected == None): # we have achieved what we need! all leaves are terminal items