From 6da35f6e7bd21594e38280b11ff1ccbf76f1fe98 Mon Sep 17 00:00:00 2001 From: Vitor Santos Costa Date: Fri, 22 Jan 2010 22:29:40 +0000 Subject: [PATCH] count the number of alternatives left plus the actual choicepoint!! --- OPTYap/or.macros.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OPTYap/or.macros.h b/OPTYap/or.macros.h index e9d9a74b3..2329be1ff 100644 --- a/OPTYap/or.macros.h +++ b/OPTYap/or.macros.h @@ -81,8 +81,8 @@ STD_PROTO(static inline qg_sol_fr_ptr CUT_prune_solution_frames, (qg_sol_fr_ptr, #define YAMOP_CUT(INST) (((INST)->u.Otapl.or_arg) & YAMOP_CUT_FLAG) #define YAMOP_FLAGS(INST) (((INST)->u.Otapl.or_arg) & YAMOP_FLAGS_BITS) -#define INIT_YAMOP_LTT(INST, LTT) (INST)->u.Otapl.or_arg = LTT -#define PUT_YAMOP_LTT(INST, LTT) (INST)->u.Otapl.or_arg = YAMOP_FLAGS(INST) | (LTT) +#define INIT_YAMOP_LTT(INST, LTT) ((INST)->u.Otapl.or_arg = LTT+1) +#define PUT_YAMOP_LTT(INST, LTT) (INST)->u.Otapl.or_arg = YAMOP_FLAGS(INST) | (LTT+1) #define PUT_YAMOP_SEQ(INST) (INST)->u.Otapl.or_arg |= YAMOP_SEQ_FLAG #define PUT_YAMOP_CUT(INST) (INST)->u.Otapl.or_arg |= YAMOP_CUT_FLAG