Skip to content

Commit

Permalink
Refactor the Z3 solver backend (ocaml#4878)
Browse files Browse the repository at this point in the history
  • Loading branch information
AltGr authored Nov 11, 2021
1 parent f3b6c47 commit d812c59
Show file tree
Hide file tree
Showing 6 changed files with 244 additions and 146 deletions.
1 change: 1 addition & 0 deletions master_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ users)
## Solver
* [BUG] Remove z3 debug output [#4723 @rjbou - fix #4717] [2.1.0~rc2 #4720]
* Fix and improve the Z3 solver backend [#4880 @altgr]
* Refactored, fixed, improved and optimised the z3 solver backend [#4878 @altgr]

## Client
*
Expand Down
9 changes: 3 additions & 6 deletions src/core/opamConsole.ml
Original file line number Diff line number Diff line change
Expand Up @@ -506,12 +506,9 @@ let print_message =

let timestamp () =
let time = Unix.gettimeofday () -. global_start_time in
let tm = Unix.gmtime time in
let msec = time -. (floor time) in
Printf.ksprintf (colorise `blue) "%.2d:%.2d.%.3d"
(tm.Unix.tm_hour * 60 + tm.Unix.tm_min)
tm.Unix.tm_sec
(int_of_float (1000.0 *. msec))
Printf.ksprintf (colorise `blue) "%02.0f:%06.3f"
(time /. 60.)
(mod_float time 60.)

let log_formatter, finalise_output =
if Sys.win32 then
Expand Down
Loading

0 comments on commit d812c59

Please sign in to comment.