anchor.diff:  %%% Internal functions
   %%%===================================================================
   
  +-spec new_state(qry_fsm_name()) -> #state{}.
  +new_state(Name) ->
  +    #state{name = Name}.
  +
   -spec handle_req({atom(), term()}, #state{}) ->
                           {ok | {ok | error, term()},
                            list(), #state{}}.
  
positive.code: handle_req({fetch, QId}, State = #state{qid    = QId,
                                          status = finished,
                                          result = Result}) ->
      {{ok, Result}, [], State#state{ status = void, qry = none, ddl = undefined }};
  
  handle_req(_Request, State) ->
      {ok, ?NO_SIDEEFFECTS, State}.
  
negative.code: -spec init([qry_fsm_name()]) -> {ok, #state{}}.
  %% @private
  init([Name]) ->
      {ok, new_state(Name)}.
  
  -spec handle_call(term(), {pid(), term()}, #state{}) ->
                           {reply, Reply::ok | {error, atom()} | list(), #state{}}.
  