Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ECE654-A2
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container 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
Alex Cook
ECE654-A2
Commits
99bc5187
Commit
99bc5187
authored
3 months ago
by
Alex Cook
Browse files
Options
Downloads
Patches
Plain Diff
updated readme
parent
873f7b34
Branches
main
No related tags found
No related merge requests found
Pipeline
#128970
passed with stage
in 10 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+31
-1
31 additions, 1 deletion
README.md
src/main/java/SimpleTest.java
+4
-10
4 additions, 10 deletions
src/main/java/SimpleTest.java
src/test/resources/DivisionTest.java
+1
-1
1 addition, 1 deletion
src/test/resources/DivisionTest.java
with
36 additions
and
12 deletions
README.md
+
31
−
1
View file @
99bc5187
placeholder
\ No newline at end of file
# Parity Analysis Tool
## Overview
This project uses the
[
Checker Framework
](
https://checkerframework.org/
)
data analysis API to conduct a parity dataflow analysis
on target methods within Java source files.
## Usage
This project uses the gradle build system. To build use the command:
(Note this command both boths and runs test cases)
```
bash
./gradlew build
```
To run test cases independently:
```
bash
./gradlew
test
```
To run the analysis on a specific file and method:
(Note output is a .dot file)
```
bash
./gradlew run
--args
=
"-i src/main/java/SimpleTest.java -c SimpleTest -m simpleMethod -o ./output"
```
-
`-i`
,
`--inputFile`
: The Java source file to analyze.
-
`-c`
,
`--className`
: The class containing the method.
-
`-m`
,
`--methodName`
: The method to analyze within the specified class.
-
`-o`
,
`--outputDir`
: The output directory for analysis results.
This diff is collapsed.
Click to expand it.
src/main/java/SimpleTest.java
+
4
−
10
View file @
99bc5187
public
class
SimpleTest
{
public
void
simpleMethod
()
{
int
x
=
2
;
// EVEN
int
y
=
3
;
// ODD
int
z
;
if
(
x
>
y
)
{
z
=
x
*
y
+
1
;
}
else
{
z
=
x
/
y
+
1
;
public
void
simpleMethod
(
int
r
)
{
int
x
=
1
;
while
(
x
<=
10
)
{
x
=
x
+
1
;
}
z
=
z
+
1
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/test/resources/DivisionTest.java
+
1
−
1
View file @
99bc5187
public
class
DivisionTest
{
public
void
divideNumbers
()
{
int
z
=
9
;
int
z
=
8
;
z
=
z
/
2
;
}
}
\ 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