Closed zsabbagh closed 1 year ago
One thing. If we encounter if-statements without else sections, I think we need to add the else section to keep track of those branches. For example:
if pattern[i] == pattern[j]:
branches.add(3)
j += 1
pi[i] = j
else:
branches.add(4)
Agree?
One thing. If we encounter if-statements without else sections, I think we need to add the else section to keep track of those branches. For example:
if pattern[i] == pattern[j]: branches.add(3) j += 1 pi[i] = j else: branches.add(4)
Agree?
TA said it was necessary to add the else section.
Manual instrumentation of branch coverage for the following functions. This is done by writing to the file
data/branch-coverage
with'a'
(append) flag enabled. See structure intests/__init__.py
. Each time testing is run, the file is truncated.maximum_flow_bfs
- Zakariadelete_fixup
- Zakariaedmonds_karp
- Einarfix_insert
- Glaciersort_diagonally
- Glacierknuth_morris_pratt
- Einar