[#5] Fix loop condition in countInstructions
Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
This commit is contained in:
parent
66bd0dc9d6
commit
dc3d5566cd
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ func isValidDocument(iDocToCheck int, docs []int) bool {
|
||||||
|
|
||||||
// countInstructions finds for every instruction a corresponding sequence point and sets IsCovered flag to true.
|
// countInstructions finds for every instruction a corresponding sequence point and sets IsCovered flag to true.
|
||||||
func countInstructions(cov []coverline, codes []InstrHash) {
|
func countInstructions(cov []coverline, codes []InstrHash) {
|
||||||
for i := 0; i < len(cov); i++ {
|
for i := range cov {
|
||||||
for _, code := range codes {
|
for _, code := range codes {
|
||||||
if code.Offset == cov[i].Opcode {
|
if code.Offset == cov[i].Opcode {
|
||||||
cov[i].IsCovered = true
|
cov[i].IsCovered = true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue