from typing import OrderedDict


def process_odin_args(args):
    """
    Finds arguments needed in the ODIN stage of the flow
    """
    odin_args = OrderedDict()
    odin_args["adder_type"] = args.adder_type

    if args.adder_cin_global:
        odin_args["adder_cin_global"] = True

    if args.disable_odin_xml:
        odin_args["disable_odin_xml"] = True

    if args.use_odin_simulation:
        odin_args["use_odin_simulation"] = True

    return odin_args