Skip to content

Commit

Permalink
Dune fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
chambart committed Apr 27, 2024
1 parent 5c502e2 commit 453b325
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
9 changes: 7 additions & 2 deletions src/cmd/cmd_conc.ml
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,13 @@ let add_trace tree trace = add_trace [] tree trace
let run_once tree link_state modules_to_run forced_values =
let result = run_modules_to_run link_state modules_to_run in
let ( ( result
, Choice.{ pc; symbols = _; symbols_value; shared = _; preallocated_values = _ } )
as r ) =
, Choice.
{ pc
; symbols = _
; symbols_value
; shared = _
; preallocated_values = _
} ) as r ) =
let forced_values =
match forced_values with None -> Hashtbl.create 0 | Some v -> v
in
Expand Down
9 changes: 5 additions & 4 deletions src/concolic/concolic.ml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ module P = struct
let orig_table = Link_env.get_table env id in
let f (t : thread) : Table.t =
let sym_table =
Symbolic_table.get_table (Link_env.id env) orig_table t.shared.tables id
Symbolic_table.get_table (Link_env.id env) orig_table t.shared.tables
id
in
{ c = orig_table; s = sym_table }
in
Expand All @@ -213,7 +214,8 @@ module P = struct
let orig_global = Link_env.get_global env id in
let f (t : thread) : Global.t =
let sym_global =
Symbolic_global.get_global (Link_env.id env) orig_global t.shared.globals id
Symbolic_global.get_global (Link_env.id env) orig_global
t.shared.globals id
in
{ c = orig_global; s = sym_global }
in
Expand Down Expand Up @@ -244,5 +246,4 @@ end
module P' : Interpret_intf.P = P

let convert_module_to_run (m : 'f Link.module_to_run) =
P.Module_to_run.
{ modul = m.modul; env = m.env; to_run = m.to_run }
P.Module_to_run.{ modul = m.modul; env = m.env; to_run = m.to_run }
3 changes: 2 additions & 1 deletion src/concolic/concolic_choice.ml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ let run preallocated_values (M v) : _ run_result =
let shared =
{ memories = Symbolic_memory.init ()
; tables = Symbolic_table.init ()
; globals = Symbolic_global.init () }
; globals = Symbolic_global.init ()
}
in
v (init_thread preallocated_values shared)

Expand Down

0 comments on commit 453b325

Please sign in to comment.