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
5c938505
Commit
5c938505
authored
Oct 21, 2014
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compiler problems.
parent
c49f3583
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
src/base/abci/abc.c
+5
-1
src/sat/bsat2/Vec.h
+1
-1
No files found.
src/base/abci/abc.c
View file @
5c938505
...
...
@@ -66,7 +66,7 @@ ABC_NAMESPACE_IMPL_START
/// DECLARATIONS ///
////////////////////////////////////////////////////////////////////////
//
#define USE_MINISAT22
#define USE_MINISAT22
static
int
Abc_CommandPrintStats
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandPrintExdc
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
...
...
@@ -13272,6 +13272,8 @@ int Abc_CommandMinisat( Abc_Frame_t * pAbc, int argc, char ** argv )
#ifdef USE_MINISAT22
extern
int
MainSat
(
int
argc
,
char
**
argv
);
MainSat
(
argc
,
argv
);
#else
printf
(
"This command is currently disabled.
\n
"
);
#endif
return
1
;
}
...
...
@@ -13280,6 +13282,8 @@ int Abc_CommandMinisimp( Abc_Frame_t * pAbc, int argc, char ** argv )
#ifdef USE_MINISAT22
extern
int
MainSimp
(
int
argc
,
char
**
argv
);
MainSimp
(
argc
,
argv
);
#else
printf
(
"This command is currently disabled.
\n
"
);
#endif
return
1
;
}
src/sat/bsat2/Vec.h
View file @
5c938505
...
...
@@ -96,7 +96,7 @@ template<class T>
void
vec
<
T
>::
capacity
(
int
min_cap
)
{
if
(
cap
>=
min_cap
)
return
;
int
add
=
imax
((
min_cap
-
cap
+
1
)
&
~
1
,
((
cap
>>
1
)
+
2
)
&
~
1
);
// NOTE: grow by approximately 3/2
if
(
add
>
INT_MAX
-
cap
||
((
data
=
(
T
*
)
::
realloc
(
data
,
(
cap
+=
add
)
*
sizeof
(
T
)))
==
NULL
)
&&
errno
==
ENOMEM
)
if
(
add
>
INT_MAX
-
cap
||
((
(
data
=
(
T
*
)
::
realloc
(
data
,
(
cap
+=
add
)
*
sizeof
(
T
)))
==
NULL
)
&&
errno
==
ENOMEM
)
)
throw
OutOfMemoryException
();
}
...
...
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