

def computeExpression(self, constraint_collection):
    value = self.getValue()
    if (value is not None):
        truth_value = self.getValue().getTruthValue()
        if (truth_value is not None):
            result = wrapExpressionWithNodeSideEffects(new_node=makeConstantReplacementNode(constant=truth_value, node=self), old_node=self.getValue())
            return (result, 'new_constant', 'Predicted truth value of built-in bool argument')
    return ExpressionBuiltinTypeBase.computeExpression(self, constraint_collection)

dataset/ETHPy150Open kayhayen/Nuitka/nuitka/nodes/BuiltinTypeNodes.py ExpressionBuiltinBool.computeExpression/original