Skip to content
Snippets Groups Projects
Commit 0dc49af3 authored by Emily Marshall's avatar Emily Marshall
Browse files

Update Machine.java

parent d7c8df12
No related branches found
No related tags found
No related merge requests found
// this mutant edits a branch deep in the program, which takes advantage
//of the fact that this branch will be reached by less test cases than
//others. killed by BVA test case @ EC17
package swen90006.machine; package swen90006.machine;
import java.util.Arrays; import java.util.Arrays;
...@@ -276,7 +280,10 @@ public class Machine ...@@ -276,7 +280,10 @@ public class Machine
int ra = parseReg(toks[1]); int ra = parseReg(toks[1]);
int offs = parseOffset(toks[2]); int offs = parseOffset(toks[2]);
if (regs[ra] == 0){ if (regs[ra] == 0){
pc = pc + offs; pc = pc + offs + 1;
// this mutant edits a branch deep in the program, which takes advantage
//of the fact that this branch will be reached by less test cases than
//others. killed by BVA test case @ EC17
}else{ }else{
pc = pc + 1; pc = pc + 1;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment