Fixes issue with logger. Fixes issue where we weren't get the minimum value SATed.

This commit is contained in:
Peter Goodman
2017-11-21 13:01:32 -05:00
parent 5f36822021
commit 29f2465ebf
2 changed files with 7 additions and 3 deletions

View File

@@ -12,9 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import logging
logging.basicConfig()
import argparse
import collections
import logging
import md5
import os
import struct

View File

@@ -13,8 +13,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import collections
import logging
logging.basicConfig()
import collections
import manticore
import multiprocessing
import sys
@@ -99,7 +101,7 @@ class DeepManticore(DeepState):
def concretize_min(self, val, constrain=False):
if isinstance(val, (int, long)):
return val
concrete_val = self.state.solve_n(val)
concrete_val = min(self.state.concretize(val, policy='MINMAX'))
if constrain:
self.add_constraint(val == concrete_val)
return concrete_val