def buildComponentConstraints(component: str, inst: int, startVM: int, Clist: list = []):
    """
    Returns the list of constraints for setting the FV script
    for a specific component.

    Args:
        component (str): The name of the component
        inst      (int): The number of instances for that component
        startVM (int): The first machine to be assigned.
        Clist (list, optional): A list of components in conflict with the current component. Defaults to [].

    Returns:
        constraints (list): A list of constraints to be added
        endVM (int): The first machine free of assignment
    """

    endVM = startVM + inst
    constraints = []

    for i in range (inst):
        constraint = f"constraint AssignmentMatrix[{component},{startVM+i+1}] = 1;\n"
        constraints.append(constraint)

    for i in range(inst):
        for c in Clist:
            if component != c:
                constraints.append(f"constraint AssignmentMatrix[{c}, {startVM+i+1}] = 0;\n")

    return constraints, endVM