Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SAT4J
sat4j
Commits
6ce76619
Commit
6ce76619
authored
Sep 20, 2021
by
Blomme Anthony
Browse files
handling other file formats
parent
c19d473a
Pipeline
#15925
passed with stages
in 42 minutes and 42 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
org.sat4j.pb/src/main/java/org/sat4j/pb/tools/VERIPBSearchListener.java
View file @
6ce76619
...
...
@@ -18,12 +18,20 @@ public class VERIPBSearchListener implements PBSearchListener<ISolverService> {
private
StringBuilder
conflict
;
private
StringBuilder
reason
;
private
final
String
filename
;
private
String
filename
;
private
int
nConstraints
;
private
boolean
foundContradiction
;
public
VERIPBSearchListener
(
String
problemname
)
{
this
.
filename
=
problemname
.
replace
(
".opb"
,
".pbp"
);
int
positionDot
;
if
(!(
problemname
.
endsWith
(
".opb"
)))
{
positionDot
=
problemname
.
lastIndexOf
(
'.'
);
this
.
filename
=
problemname
.
substring
(
0
,
positionDot
);
}
else
{
this
.
filename
=
problemname
;
}
assert
this
.
filename
.
endsWith
(
".opb"
);
this
.
filename
=
this
.
filename
.
replace
(
".opb"
,
".pbp"
);
File
f
=
new
File
(
filename
);
if
(
f
.
exists
())
{
f
.
delete
();
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment