@@ -1713,31 +1713,31 @@ def is_satisfied_node(interpretations, comp, na, minimized_predicates):
17131713 # This is to prevent a key error in case the label is a specific label
17141714 try :
17151715 world = interpretations [comp ]
1716- print ('--- is_satisfied_node ---' )
1717- print (' node:' , comp )
1718- print (' checking label:' , na [0 ].get_value ())
1719- print (' clause bound: [' , float_to_str (na [1 ].l ), ',' , float_to_str (na [1 ].u ), ']' )
1720- print (' world keys:' )
1721- for k in world .world .keys ():
1722- print (' ' , k .get_value (), '= [' , float_to_str (world .world [k ].l ), ',' , float_to_str (world .world [k ].u ), ']' )
1716+ # print('--- is_satisfied_node ---')
1717+ # print(' node:', comp)
1718+ # print(' checking label:', na[0].get_value())
1719+ # print(' clause bound: [', float_to_str(na[1].l), ',', float_to_str(na[1].u), ']')
1720+ # print(' world keys:')
1721+ # for k in world.world.keys():
1722+ # print(' ', k.get_value(), '= [', float_to_str(world.world[k].l), ',', float_to_str(world.world[k].u), ']')
17231723 # Minimized predicate check
17241724 if na [0 ] in minimized_predicates :
17251725 if na [0 ] not in world .world :
17261726 # Label not in world — missing = unknown [0,1] = treat as [0,0]
1727- print (' MINIMIZED (label not in world): treating as [0,0]' )
1727+ # print(' MINIMIZED (label not in world): treating as [0,0]')
17281728 result = interval .closed (0 , 0 ) in na [1 ]
1729- print (' result:' , result )
1729+ # print(' result:', result)
17301730 return result
17311731 world_bnd = world .world [na [0 ]]
17321732 if world_bnd .lower == 0.0 and world_bnd .upper == 1.0 :
1733- print (' MINIMIZED: world bound [0,1] -> treating as [0,0]' )
1733+ # print(' MINIMIZED: world bound [0,1] -> treating as [0,0]')
17341734 result = interval .closed (0 , 0 ) in na [1 ]
1735- print (' result:' , result )
1735+ # print(' result:', result)
17361736 return result
17371737 result = world .is_satisfied (na [0 ], na [1 ])
1738- print (' result:' , result )
1738+ # print(' result:', result)
17391739 except Exception :
1740- print (' EXCEPTION (label not in world) -> False' )
1740+ # print(' EXCEPTION (label not in world) -> False')
17411741 result = False
17421742 else :
17431743 result = True
@@ -1786,31 +1786,31 @@ def is_satisfied_edge(interpretations, comp, na, minimized_predicates):
17861786 # This is to prevent a key error in case the label is a specific label
17871787 try :
17881788 world = interpretations [comp ]
1789- print ('--- is_satisfied_edge ---' )
1790- print (' edge:' , comp [0 ], '->' , comp [1 ])
1791- print (' checking label:' , na [0 ].get_value ())
1792- print (' clause bound: [' , float_to_str (na [1 ].l ), ',' , float_to_str (na [1 ].u ), ']' )
1793- print (' world keys:' )
1794- for k in world .world .keys ():
1795- print (' ' , k .get_value (), '= [' , float_to_str (world .world [k ].l ), ',' , float_to_str (world .world [k ].u ), ']' )
1789+ # print('--- is_satisfied_edge ---')
1790+ # print(' edge:', comp[0], '->', comp[1])
1791+ # print(' checking label:', na[0].get_value())
1792+ # print(' clause bound: [', float_to_str(na[1].l), ',', float_to_str(na[1].u), ']')
1793+ # print(' world keys:')
1794+ # for k in world.world.keys():
1795+ # print(' ', k.get_value(), '= [', float_to_str(world.world[k].l), ',', float_to_str(world.world[k].u), ']')
17961796 # Minimized predicate check
17971797 if na [0 ] in minimized_predicates :
17981798 if na [0 ] not in world .world :
17991799 # Label not in world — missing = unknown [0,1] = treat as [0,0]
1800- print (' MINIMIZED (label not in world): treating as [0,0]' )
1800+ # print(' MINIMIZED (label not in world): treating as [0,0]')
18011801 result = interval .closed (0 , 0 ) in na [1 ]
1802- print (' result:' , result )
1802+ # print(' result:', result)
18031803 return result
18041804 world_bnd = world .world [na [0 ]]
18051805 if world_bnd .lower == 0.0 and world_bnd .upper == 1.0 :
1806- print (' MINIMIZED: world bound [0,1] -> treating as [0,0]' )
1806+ # print(' MINIMIZED: world bound [0,1] -> treating as [0,0]')
18071807 result = interval .closed (0 , 0 ) in na [1 ]
1808- print (' result:' , result )
1808+ # print(' result:', result)
18091809 return result
18101810 result = world .is_satisfied (na [0 ], na [1 ])
1811- print (' result:' , result )
1811+ # print(' result:', result)
18121812 except Exception :
1813- print (' EXCEPTION (label not in world) -> False' )
1813+ # print(' EXCEPTION (label not in world) -> False')
18141814 result = False
18151815 else :
18161816 result = True
0 commit comments