3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 01:25:31 +00:00

improve comments for scoped_weakness

This commit is contained in:
Arie Gurfinkel 2017-09-06 17:39:13 -04:00
parent 890bc0f7c9
commit 321cad70d6

View file

@ -144,9 +144,11 @@ public:
public:
scoped_weakness(prop_solver &ps, unsigned solver_id, unsigned weakness) :
m_params(*ps.m_fparams[solver_id == 0 ? 0 : 0 /*1*/]) {
// save current values
m_arith_ignore_int = m_params.m_arith_ignore_int;
m_array_weak = m_params.m_array_weak;
// set values based on weakness score
m_params.m_arith_ignore_int = weakness < 1;
m_params.m_array_weak = weakness < 2;
}