%%%%% CONFIGURATION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% :- module(extend, [mem/4,program_order/1,if_pair/1,lock_pair/1,synchro_order/1]). mem(i1,t1,cr,c(o1,[(x,0),(y,0)])). mem(i2,t1,wr,f). mem(i3,t1,cr,v(3)). mem(i4,t1,wr,a(f,x)). mem(i5,t1,cr,v(4)). mem(i6,t1,wr,a(f,y)). mem(i7,t2,re,a(f,x)). mem(i8,t2,wr,i). mem(i9,t2,re,a(f,y)). mem(i10,t2,wr,j). program_order([i1,i2,i3,i4,i5,i6]). program_order([i7,i8,i9,i10]). if_pair([]). lock_pair([]). synchro_order([]). %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%