Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abc
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
abc
Commits
89a5395f
Commit
89a5395f
authored
Sep 13, 2023
by
Catherine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add WASI support in Cnf_RunSolverOnce and Cnf_SplitCnfFile.
parent
6b66b817
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
src/sat/cnf/cnfUtil.c
+8
-0
No files found.
src/sat/cnf/cnfUtil.c
View file @
89a5395f
...
...
@@ -82,7 +82,11 @@ Vec_Int_t *Cnf_RunSolverOnce(int Id, int Rand, int TimeOut, int fVerbose)
FILE
*
pFile
=
fopen
(
FileNameIn
,
"rb"
);
if
(
pFile
!=
NULL
)
{
fclose
(
pFile
);
#if defined(__wasm)
if
(
1
)
{
#else
if
(
system
(
pCommand
)
==
-
1
)
{
#endif
fprintf
(
stdout
,
"Command
\"
%s
\"
did not succeed.
\n
"
,
pCommand
);
return
0
;
}
...
...
@@ -764,7 +768,11 @@ void Cnf_SplitCnfFile(char * pFileName, int nParts, int iVarBeg, int iVarEnd, in
char
Command
[
1000
];
sprintf
(
Command
,
"satelite --verbosity=0 -pre temp.cnf %s"
,
FileName
);
Cnf_DataWriteIntoFile
(
pCnf
,
"temp.cnf"
,
0
,
NULL
,
NULL
);
#if defined(__wasm)
if
(
1
)
{
#else
if
(
system
(
Command
)
==
-
1
)
{
#endif
fprintf
(
stdout
,
"Command
\"
%s
\"
did not succeed. Preprocessing skipped.
\n
"
,
Command
);
Cnf_DataWriteIntoFile
(
pCnf
,
FileName
,
0
,
NULL
,
NULL
);
}
...
...
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