view src/putdown_lforkImpl.cbc @ 0:67e6ca3c7e6c

model checking
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 27 Apr 2021 14:25:56 +0900
parents
children
line wrap: on
line source

__code putdown_lforkPhilsImpl(struct Context *context,
	struct PhilsImpl* phils, enum Code next) {
    struct AtomicT_int* left_fork = phils->Leftfork;
    Gearef(context, AtomicT_int)->atomicT_int = (union Data*) left_fork;
    Gearef(context, AtomicT_int)->newData = -1;
    Gearef(context, AtomicT_int)->next = C_thinkingPhilsImpl;
    goto mcMeta(context, left_fork->set);
}