Skip to content

Commit

Permalink
debugging sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
lyg1597 committed Feb 14, 2024
1 parent 3f42f53 commit cb7f5b4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions sense.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ def __init__(self, id, code=None, file_name=None):
traces_veri = scenario.verify(30, 0.01)


fig = go.Figure()
fig = simulation_tree(traces_simu, None, fig, 1, 2, [0, 1], "lines", "trace")
fig.show()
# fig = go.Figure()
# fig = simulation_tree(traces_simu, None, fig, 1, 2, [0, 1], "lines", "trace")
# fig.show()


fig = go.Figure()
Expand Down
8 changes: 6 additions & 2 deletions verse/analysis/verifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -789,11 +789,15 @@ def get_transition_verify_opt(
guard_hits = []
guard_hit = False
reduction_rate = 10
reduction_queue = [(0, trace_length, trace_length)]
# reduction_queue = [(0, trace_length, trace_length)]
# Create a fake reduction queue for debug purpose
reduction_queue = []
for i in range(trace_length-1):
reduction_queue.append((i,i+1,1))
# for idx, end_idx,combine_len in reduction_queue:
hits = []
while reduction_queue:
idx, end_idx, combine_len = reduction_queue.pop()
idx, end_idx, combine_len = reduction_queue.pop(0)
reduction_needed = False
# print((idx, combine_len))
any_contained = False
Expand Down

0 comments on commit cb7f5b4

Please sign in to comment.