anchor.diff:  
   -spec s_msg_count(state()) -> non_neg_integer().
   s_msg_count(State)             -> element(7, State).
  --spec inc_s_msg_count(state()) -> state().
  -inc_s_msg_count(State) -> inc_s_msg_count(State, 1).
   -spec inc_s_msg_count(state(), pos_integer()) -> state().
   inc_s_msg_count(State, N)      -> State2 = setelement(7, State, s_msg_count(State) + N),
                                     inc_s_msg_count_session(State2, N).
   
   -spec r_msg_count(state()) -> non_neg_integer().
   r_msg_count(State)             -> element(8, State).
  --spec inc_r_msg_count(state()) -> state().
  -inc_r_msg_count(State)         -> inc_r_msg_count(State, 1).
   -spec inc_r_msg_count(state(), pos_integer()) -> state().
   inc_r_msg_count(State, N)      -> State2 = setelement(8, State, r_msg_count(State) + N),
                                     inc_r_msg_count_session(State2, N).
  
positive.code: -compile({inline, [dest_ip/1, dest_port/1, local_listen_port/1, channel/1,
                     socket/1, set_socket/2,
                     started/1,
                     s_msg_count/1, inc_s_msg_count/1,
                     r_msg_count/1, inc_r_msg_count/1,
                     msg_queue/1, set_msg_queue/2,
                     msg_queue_len/1, set_msg_queue_len/2,
                     desired_bundle_size/1, set_desired_bundle_size/2,
  
negative.code: -spec get_msg_tag(msg_or_tag()) -> comm:msg_tag() | comm:message().
  get_msg_tag(Msg) ->
      {_Pid, ActualMessage} = Msg,
      ?IIF(?KEEP_MSG_OR_TAG =/= tag,
           util:extint2atom(comm:get_msg_tag(ActualMessage)),
           setelement(1, ActualMessage, util:extint2atom(element(1, ActualMessage)))).
  
  