cycled_v2.adot 635 Bytes
Newer Older
1
digraph CYCLIC {
2 3 4 5 6 7 8
    // Селектор для узла LOOP
    SEL_LOOP [module="selectors", entry_func="check_iterations"]

    // Объявление функций
    FUNC [module=test_funcs.simplest, entry_func=decrement_a_edge]
    PRED [module=test_funcs.simplest, entry_func=true_predicate]
    MORPH_LOOP [predicate=PRED, function=FUNC]
9 10
    MORPH_EXIT [function=INC]

11 12 13
    LOOP [selector=SEL_LOOP]  # Привязка селектора к узлу

    // Топология
14 15 16 17
    __BEGIN__ -> LOOP [edge_index=0]
    LOOP -> LOOP [morphism=MORPH_LOOP, edge_index=1]
    LOOP -> __END__ [morphism=MORPH_EXIT, edge_index=2]
}