add_inner_inputs_to_op_aux(conjunct(A,B),Ids,conjunct(NA,NB)) :- !,
add_inner_inputs_to_op(A,AIds,NA),
add_inner_inputs_to_op(B,BIds,NB),
append(AIds,BIds,Ids).
add_inner_inputs_to_op_aux(disjunct(A,B),Ids,disjunct(NA,NB)) :- !,
add_inner_inputs_to_op(A,AIds,NA),
add_inner_inputs_to_op(B,BIds,NB),
append(AIds,BIds,Ids).
add_inner_inputs_to_op_aux(member(A,B),[InputId],conjunct(b(member(A,B),pred,[]),Eq)) :- !,
get_texpr_type(A,Type),
unique_typed_id("_ic3_pi",Type,InputId),
safe_create_texpr(equal(A,InputId),pred,Eq).
add_inner_inputs_to_op_aux(equal(A,B),[],equal(A,B)) :- !.