Skip to content

Commit 4eb8a8f

Browse files
committed
Handle vsa simplifiers returning None
1 parent 2752cde commit 4eb8a8f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

claripy/vsa_simplifications.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -188,4 +188,7 @@ def simplify_bvset(bvset: BVSet) -> BVSet:
188188
if bvset.op not in vsa_simplifications:
189189
return bvset
190190

191-
return vsa_simplifications[bvset.op](*bvset.args)
191+
simplified = vsa_simplifications[bvset.op](*bvset.args)
192+
if simplified is not None:
193+
return simplified
194+
return bvset

0 commit comments

Comments
 (0)