def get_placesWithMissingTokens(t, net, marking):
    """
    Get places with missing tokens

    Parameters
    ----------
    t
        Transition to enable
    net
        Petri net
    marking
        Current marking
    """
    placesWithMissing = set()
    for a in t.in_arcs:
        if marking[a.source] < a.weight:
            placesWithMissing.add(a.source)
    return placesWithMissing