Skip to content

Commit 9af568a

Browse files
committed
Adding max time setting to C interface
By Berke Durak thanks!
1 parent f9423e0 commit 9af568a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Diff for: src/cryptominisat_c.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,8 @@ extern "C"
162162
auto temp = wrap(fromc(assumptions), num_assumptions);
163163
return toc(self->simplify(&temp));
164164
} NOEXCEPT_END
165+
166+
DLL_PUBLIC void cmsat_set_max_time(SATSolver* self, double max_time) NOEXCEPT_START {
167+
self->set_max_time(max_time);
168+
} NOEXCEPT_END
165169
}

Diff for: src/cryptominisat_c.h.in

+1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ CMS_DLL_PUBLIC void cmsat_set_no_bva(SATSolver* self) NOEXCEPT;
8080
CMS_DLL_PUBLIC void cmsat_set_no_bve(SATSolver* self) NOEXCEPT;
8181
CMS_DLL_PUBLIC void cmsat_set_yes_comphandler(SATSolver* self) NOEXCEPT;
8282
CMS_DLL_PUBLIC c_lbool cmsat_simplify(SATSolver* self, const c_Lit* assumptions, size_t num_assumptions) NOEXCEPT;
83+
CMS_DLL_PUBLIC void cmsat_set_max_time(SATSolver* self, double max_time) NOEXCEPT;
8384

8485
#ifdef __cplusplus
8586
} // end extern c

0 commit comments

Comments
 (0)