Skip to content

Commit

Permalink
GUI: Add indication of available condition traces in node description.
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-carciofini committed Jan 20, 2025
1 parent d3854ac commit 72e1df9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pate_binja/pate.py
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,18 @@ def pprint_node_contents(self, pre: str = '', out: IO = sys.stdout, show_ce_trac
elif self.exit_meta_data.get(n, {}).get('event_trace'):
pprint_node_event_trace(self.exit_meta_data[n]['event_trace'], 'Witness Trace', pre + ' ', out)

# Indicate if there are conditions traces
conditionTraceTypes = []
if self.equivalenceConditionTrace:
conditionTraceTypes.append('equivalence')
if self.assertedConditionTrace:
conditionTraceTypes.append('asserted')
if self.assumedConditionTrace:
conditionTraceTypes.append('assumed')
if conditionTraceTypes:
out.write('Condition traces for: ')
out.write(', '.join(conditionTraceTypes))

def pprint_node_domain(self, pre: str = '', out: IO = sys.stdout,
show_ce_trace: bool = False):
if self.predomain:
Expand Down

0 comments on commit 72e1df9

Please sign in to comment.