Skip to content

Commit

Permalink
Merge pull request #145 from artagnon/noexcept
Browse files Browse the repository at this point in the history
Clean up some code, improve debug info in fleche
  • Loading branch information
ejgallego committed Jan 5, 2023
2 parents 37cff6b + 001556f commit d0b1f16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions fleche/doc.ml
Original file line number Diff line number Diff line change
Expand Up @@ -469,8 +469,8 @@ let check ~ofmt:_ ~doc ~fb_queue =
| Yes loc -> loc
| Stopped loc -> loc
in
Format.asprintf "done [%.2f]: document fully checked %a" timestamp
Pp.pp_with (Loc.pr loc)
Format.asprintf "done [%.2f]: document fully checked %s" timestamp
(Coq.Ast.pr_loc loc)
in
Io.Log.trace "check" end_msg;
print_stats ();
Expand Down
4 changes: 2 additions & 2 deletions fleche/memo.ml
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@ let interp_command ~st ~fb_queue stm : _ Stats.t =
let stm_loc = Coq.Ast.loc stm |> Option.get in
match in_cache st stm with
| Some (cached_loc, res), time ->
if Debug.cache then Io.Log.trace "coq" "cache hit";
if Debug.cache then Io.Log.trace "memo" "cache hit";
CacheStats.hit ();
let res = adjust_offset ~stm_loc ~cached_loc res in
Stats.make ~cache_hit:true ~time res
| None, time_hash -> (
if Debug.cache then Io.Log.trace "coq" "cache miss";
if Debug.cache then Io.Log.trace "memo" "cache miss";
CacheStats.miss ();
let kind = CS.Kind.Exec in
let res, time_interp =
Expand Down

0 comments on commit d0b1f16

Please sign in to comment.