Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swen90006-a2-2020
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
Arman Arethna
swen90006-a2-2020
Commits
07b6335c
Commit
07b6335c
authored
4 years ago
by
ehuang32
Browse files
Options
Downloads
Patches
Plain Diff
removed print statement, can execute max_stack10
parent
04556680
Branches
Branches containing commit
No related tags found
No related merge requests found
Checking pipeline status
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
fuzzer/Fuzzer.java
+3
-3
3 additions, 3 deletions
fuzzer/Fuzzer.java
fuzzer/Instruction.java
+1
-0
1 addition, 0 deletions
fuzzer/Instruction.java
runCount.txt
+1
-1
1 addition, 1 deletion
runCount.txt
with
5 additions
and
4 deletions
fuzzer/Fuzzer.java
+
3
−
3
View file @
07b6335c
...
@@ -52,7 +52,7 @@ public class Fuzzer {
...
@@ -52,7 +52,7 @@ public class Fuzzer {
// Current stack of instructions
// Current stack of instructions
private
static
ArrayList
<
Instruction
>
instructionStack
=
new
ArrayList
<
Instruction
>();
private
static
ArrayList
<
Instruction
>
instructionStack
=
new
ArrayList
<
Instruction
>();
// Max stack of instructions before resetting stack
// Max stack of instructions before resetting stack
private
static
final
int
MAX_STACK
=
2
;
private
static
final
int
MAX_STACK
=
10
;
public
static
void
main
(
String
[]
args
)
throws
IOException
{
public
static
void
main
(
String
[]
args
)
throws
IOException
{
System
.
out
.
println
(
Instruction
.
getBNF
());
System
.
out
.
println
(
Instruction
.
getBNF
());
...
@@ -202,12 +202,12 @@ public class Fuzzer {
...
@@ -202,12 +202,12 @@ public class Fuzzer {
if
(
instructionStack
.
size
()
>=
MAX_STACK
)
{
if
(
instructionStack
.
size
()
>=
MAX_STACK
)
{
instructionStack
.
clear
();
instructionStack
.
clear
();
}
}
System
.
out
.
println
(
"stack: "
+
Arrays
.
toString
(
instructionStack
.
toArray
()));
/*
System.out.println("stack: " + Arrays.toString(instructionStack.toArray()));
for (List<Instruction> list: pathwayProb.keySet()) {
for (List<Instruction> list: pathwayProb.keySet()) {
String key = list.toString();
String key = list.toString();
String value = pathwayProb.get(list).toString();
String value = pathwayProb.get(list).toString();
System.out.println("map: " + key + " " + value);
System.out.println("map: " + key + " " + value);
}
}
*/
}
}
...
...
This diff is collapsed.
Click to expand it.
fuzzer/Instruction.java
+
1
−
0
View file @
07b6335c
...
@@ -86,6 +86,7 @@ public enum Instruction {
...
@@ -86,6 +86,7 @@ public enum Instruction {
Map
<
List
<
Instruction
>,
Integer
>
pathwayProb
)
{
Map
<
List
<
Instruction
>,
Integer
>
pathwayProb
)
{
// Check if cumlative probabilities have been calculated
// Check if cumlative probabilities have been calculated
checkProbability
(
instructionStack
,
pathwayProb
);
checkProbability
(
instructionStack
,
pathwayProb
);
System
.
out
.
println
(
max
);
ArrayList
<
Instruction
>
instructions
;
ArrayList
<
Instruction
>
instructions
;
ArrayList
<
Integer
>
instCumlProbs
;
ArrayList
<
Integer
>
instCumlProbs
;
...
...
This diff is collapsed.
Click to expand it.
runCount.txt
+
1
−
1
View file @
07b6335c
0
6
\ No newline at end of file
\ No newline at end of file
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