-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from ederc/input-overflow-fix
Input overflow fix
- Loading branch information
Showing
10 changed files
with
106 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
y,x | ||
65519 | ||
x^2+128333*x*y-12*y, | ||
y^2-x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
y,x | ||
31 | ||
x^2+128333*x*y-12*y, | ||
y^2-x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[0, [65519, | ||
2, | ||
4, | ||
['y', 'x'], | ||
[0, 1], | ||
[1, | ||
[[4, | ||
[0, 65375, 599, 21103, 1]], | ||
[0, | ||
[1]], | ||
[ | ||
[[3, | ||
[0, 39978, 62904, 51433]]] | ||
]]]]]: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[0, [31, | ||
2, | ||
4, | ||
['y', 'x'], | ||
[0, 1], | ||
[1, | ||
[[4, | ||
[0, 11, 18, 13, 1]], | ||
[0, | ||
[1]], | ||
[ | ||
[[3, | ||
[0, 14, 21, 5]]] | ||
]]]]]: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
file=input-overflow-16 | ||
|
||
|
||
$(pwd)/msolve -f input_files/$file.ms -o test/diff/$file.res -l 2 | ||
if [ $? -gt 0 ]; then | ||
exit 1 | ||
fi | ||
|
||
diff test/diff/$file.res output_files/$file.res | ||
if [ $? -gt 0 ]; then | ||
exit 2 | ||
fi | ||
|
||
$(pwd)/msolve -f input_files/$file.ms -o test/diff/$file.res -l 44 | ||
if [ $? -gt 0 ]; then | ||
exit 3 | ||
fi | ||
|
||
diff test/diff/$file.res output_files/$file.res | ||
if [ $? -gt 0 ]; then | ||
exit 4 | ||
fi | ||
|
||
rm test/diff/$file.res |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
file=input-overflow-8 | ||
|
||
|
||
$(pwd)/msolve -f input_files/$file.ms -o test/diff/$file.res -l 2 | ||
if [ $? -gt 0 ]; then | ||
exit 1 | ||
fi | ||
|
||
diff test/diff/$file.res output_files/$file.res | ||
if [ $? -gt 0 ]; then | ||
exit 2 | ||
fi | ||
|
||
$(pwd)/msolve -f input_files/$file.ms -o test/diff/$file.res -l 44 | ||
if [ $? -gt 0 ]; then | ||
exit 3 | ||
fi | ||
|
||
diff test/diff/$file.res output_files/$file.res | ||
if [ $? -gt 0 ]; then | ||
exit 4 | ||
fi | ||
|
||
rm test/diff/$file.res |