def infer_int(node, context=None):
call = arguments.CallSite.from_call(node)<EOL>if call.keyword_arguments:<EOL><INDENT>raise UseInferenceDefault("<STR_LIT>")<EOL><DEDENT>if call.positional_arguments:<EOL><INDENT>try:<EOL><INDENT>first_value = next(call.positional_arguments[<NUM_LIT:0>].infer(context=context))<EOL><DEDENT>except InferenceError as exc:<EOL><INDENT>raise UseInferenceDefault(str(exc)) from exc<EOL><DEDENT>if first_value is util.Uninferable:<EOL><INDENT>raise UseInferenceDefault<EOL><DEDENT>if isinstance(first_value, nodes.Const) and isinstance(<EOL>first_value.value, (int, str)<EOL>):<EOL><INDENT>try:<EOL><INDENT>actual_value = int(first_value.value)<EOL><DEDENT>except ValueError:<EOL><INDENT>return nodes.Const(<NUM_LIT:0>)<EOL><DEDENT>return nodes.Const(actual_value)<EOL><DEDENT><DEDENT>return nodes.Const(<NUM_LIT:0>)<EOL>
Infer int() calls

    :param nodes.Call node: int() call to infer
    :param context.InferenceContext: node context
    :rtype nodes.Const: a Const containing the integer value of the int() call