Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
filipeom committed Aug 25, 2024
1 parent c48b592 commit 7df878b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 11 deletions.
6 changes: 3 additions & 3 deletions src/btree.ml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ open Interpreter.Types
open Interpreter.Values

let print_b_tree_keys (mem : memory) (n_keys : int) (max_keys : int)
(node_addr : int) =
(node_addr : int) =
Printf.printf "[node: %s; keys: { " (string_of_int node_addr);
for i = 0 to n_keys - 1 do
let v, sym =
Expand Down Expand Up @@ -82,10 +82,10 @@ let print_b_tree (mem : memory) =
let value, _ =
load_value mem
(Int64.of_int
(int_of_string (string_of_value root_addr)
( int_of_string (string_of_value root_addr)
+ 8
+ (4 * (int_of_string (string_of_value t) - 1))
+ (4 * i)))
+ (4 * i) ) )
0l I32Type
in
children := !children @ [ int_of_string (string_of_value value) ]
Expand Down
3 changes: 1 addition & 2 deletions src/concolic/store.ml
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,7 @@ let rec eval (env : t) (e : Expr.t) : Value.t =
| Extract (e', h, l) when h - l = 1 ->
let v = int64_of_value (eval env e') in
Num (I64 Int64.(logand (shift_right v (8 * l)) 0xffL))
| Extract (_, _, _) ->
assert false
| Extract (_, _, _) -> assert false
| Concat (e1, e2) -> (
let v1 = int64_of_value (eval env e1) in
let v2 = int64_of_value (eval env e2) in
Expand Down
1 change: 1 addition & 0 deletions src/std.ml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module Let_syntax = struct
module Result = struct
let ( let* ) = Result.bind

let ( let+ ) v f = Result.map f v
end
end
4 changes: 1 addition & 3 deletions tests/failing/dune
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
(cram
(deps
%{bin:wasp}
test1.wast))
(deps %{bin:wasp} test1.wast))
4 changes: 1 addition & 3 deletions tests/passing/dune
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
(cram
(deps
%{bin:wasp}
test1.wast))
(deps %{bin:wasp} test1.wast))

0 comments on commit 7df878b

Please sign in to comment.