Traceback (most recent call last):
File ".../crosshair/libimpl/builtinslib.py", line 900, in __abs__
return self._unary_op(lambda v: z3.If(v < 0, -v, v))
File ".../crosshair/libimpl/builtinslib.py", line 319, in _unary_op
return self.__class__(op(self.var), self.python_type)
File ".../crosshair/libimpl/builtinslib.py", line 900, in <lambda>
return self._unary_op(lambda v: z3.If(v < 0, -v, v))
TypeError: '<' not supported between instances of 'BoolRef' and 'int'
whereas in Python issubclass(bool, int) and so you can indeed compare them.
whereas in Python
issubclass(bool, int)
and so you can indeed compare them.Originally posted by @Zac-HD in https://github.com/HypothesisWorks/hypothesis/issues/4034#issuecomment-2243950206