@@ -25,7 +25,7 @@ abstract class CallableObjectInternal extends ObjectInternal {
2525
2626 override boolean isClass ( ) { result = false }
2727
28- override boolean booleanValue ( ) { result = true }
28+ override boolean booleanValue ( ) { none ( ) }
2929
3030 override ClassDecl getClassDeclaration ( ) { none ( ) }
3131
@@ -75,7 +75,7 @@ class PythonFunctionObjectInternal extends CallableObjectInternal, TPythonFuncti
7575 result = TBuiltinClassObject ( Builtin:: special ( "FunctionType" ) )
7676 }
7777
78- override boolean testableForEquality ( ) { result = true }
78+ override predicate notTestableForEquality ( ) { none ( ) }
7979
8080 override Builtin getBuiltin ( ) {
8181 none ( )
@@ -190,7 +190,7 @@ class BuiltinFunctionObjectInternal extends CallableObjectInternal, TBuiltinFunc
190190 result = TBuiltinClassObject ( this .getBuiltin ( ) .getClass ( ) )
191191 }
192192
193- override boolean testableForEquality ( ) { result = true }
193+ override predicate notTestableForEquality ( ) { none ( ) }
194194
195195 override predicate callResult ( PointsToContext callee , ObjectInternal obj , CfgOrigin origin ) { none ( ) }
196196
@@ -299,7 +299,7 @@ class BuiltinMethodObjectInternal extends CallableObjectInternal, TBuiltinMethod
299299 none ( )
300300 }
301301
302- override boolean testableForEquality ( ) { result = true }
302+ override predicate notTestableForEquality ( ) { none ( ) }
303303
304304 override predicate callResult ( PointsToContext callee , ObjectInternal obj , CfgOrigin origin ) { none ( ) }
305305
@@ -400,7 +400,7 @@ class BoundMethodObjectInternal extends CallableObjectInternal, TBoundMethod {
400400 none ( )
401401 }
402402
403- override boolean testableForEquality ( ) { result = false }
403+ override predicate notTestableForEquality ( ) { any ( ) }
404404
405405 override predicate callResult ( PointsToContext callee , ObjectInternal obj , CfgOrigin origin ) {
406406 this .getFunction ( ) .callResult ( callee , obj , origin )
0 commit comments