anchor.diff:  %
   % This source code is licensed under the MIT license found in the
   % LICENSE file in the root directory of this source tree.
  -%
  -%
   
   usage() ->
       Usage =
  
positive.code:     ScriptDir = filename:dirname(escript:script_name()),
      ParseTransformDir = filename:join(ScriptDir, "infer_parse_transform"),
      case run("rebar3 compile", ParseTransformDir) of
          0 ->
              ok;
          ExitStatus ->
              io:format("error: `rebar3 compile` in `~s` returned exit code ~p~n", [
                  ParseTransformDir,
                  ExitStatus
              ]),
              halt(1)
      end,
      CompiledListPath = mktemp(".list"),
  
negative.code: run(Command, Dir) ->
      Port = erlang:open_port(
          {spawn, Command},
          [exit_status, {cd, Dir}, use_stdio, stream, stderr_to_stdout]
      ),
      run_manager(Port, []).
  
  run_manager(Port, Output) ->
      receive
          {Port, {data, Line}} -> run_manager(Port, [Line | Output]);
          {Port, {exit_status, Status}} -> {Status, lists:reverse(Output)}
      end.
  
  mktemp(Suffix) ->
  