Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
SWEN90006-A1-2018
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Linyuan Zhao
SWEN90006-A1-2018
Commits
ab1a3446
Commit
ab1a3446
authored
6 years ago
by
Linyuan Zhao
Browse files
Options
Downloads
Patches
Plain Diff
Update Machine.java
parent
2d3eb377
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
mutants/mutant-5/swen90006/machine/Machine.java
+3
-0
3 additions, 0 deletions
mutants/mutant-5/swen90006/machine/Machine.java
with
3 additions
and
0 deletions
mutants/mutant-5/swen90006/machine/Machine.java
+
3
−
0
View file @
ab1a3446
...
@@ -235,6 +235,9 @@ public class Machine
...
@@ -235,6 +235,9 @@ public class Machine
int
rs2
=
parseReg
(
toks
[
3
]);
int
rs2
=
parseReg
(
toks
[
3
]);
do_div
(
rd
,
rs1
,
rs2
);
do_div
(
rd
,
rs1
,
rs2
);
}
else
if
(
toks
[
0
].
equals
(
INSTRUCTION_RETURN
)){
}
else
if
(
toks
[
0
].
equals
(
INSTRUCTION_RETURN
)){
if
(
toks
.
length
!=
2
){
throw
new
InvalidInstructionException
();
}
int
rs
=
parseReg
(
toks
[
1
]);
int
rs
=
parseReg
(
toks
[
1
]);
count
++;
count
++;
return
regs
[
rs
];
return
regs
[
rs
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment