Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Spot
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
117
Issues
117
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Spot
Spot
Commits
7078ab0a
Commit
7078ab0a
authored
Feb 16, 2016
by
Alexandre Duret-Lutz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
satsolver: use precise fstream class for input or output
* spot/misc/satsolver.cc: Here.
parent
22af7aef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
spot/misc/satsolver.cc
spot/misc/satsolver.cc
+5
-6
No files found.
spot/misc/satsolver.cc
View file @
7078ab0a
// -*- coding: utf-8 -*-
// Copyright (C) 2013, 2014, 2015
Laboratoire de Recherche et Développemen
t
// de l'Epita.
// Copyright (C) 2013, 2014, 2015
, 2016 Laboratoire de Recherche e
t
//
Développement
de l'Epita.
//
// This file is part of Spot, a model checking library.
//
...
...
@@ -91,7 +91,7 @@ namespace spot
if
(
filename
[
0
]
==
'-'
&&
filename
[
1
]
==
0
)
in
=
&
std
::
cin
;
else
in
=
new
std
::
fstream
(
filename
,
std
::
ios_base
::
in
);
in
=
new
std
::
ifstream
(
filename
);
int
c
;
while
((
c
=
in
->
get
())
!=
EOF
)
...
...
@@ -131,9 +131,8 @@ namespace spot
void
satsolver
::
start
()
{
cnf_tmp_
=
create_tmpfile
(
"sat-"
,
".cnf"
);
cnf_stream_
=
new
std
::
fstream
(
cnf_tmp_
->
name
(),
std
::
ios_base
::
trunc
|
std
::
ios_base
::
out
);
cnf_stream_
->
exceptions
(
std
::
ifstream
::
failbit
|
std
::
ifstream
::
badbit
);
cnf_stream_
=
new
std
::
ofstream
(
cnf_tmp_
->
name
(),
std
::
ios_base
::
trunc
);
cnf_stream_
->
exceptions
(
std
::
ofstream
::
failbit
|
std
::
ofstream
::
badbit
);
}
satsolver
::~
satsolver
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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