Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/core/cname.ml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ let unslugify (str : string) : t option =
else
name, true
in
let hash = String.sub str (i + 1) (String.length str - i - 2) in
let hash = String.sub str (i + 1) (String.length str - i - 1) in
(match Chash.unslugify hash with
| chash -> Some { name; chash; is_key }
| exception Invalid_argument _ -> None)
Expand Down
10 changes: 5 additions & 5 deletions src/prelude/imandrax_api_prelude.ml
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,11 @@ module List = struct
" Partial function to access the tail of the list. This function will fail\n when applied to the empty list {b NOTE} it is recommended to rely on\n pattern matching instead "]
[@@builtin.logic_core "mk_list_tl"]
let head_opt l = match l with | [] -> None | x::_ -> Some x
let rec append l1 l2 =
match l1 with | [] -> l2 | x::l1' -> x :: (append l1' l2)[@@ocaml.doc
" List append / concatenation. [append l1 l2] returns a list composed of all\n elements of [l1], followed by all elements of [l2] "]
let rec (@) l1 l2 = match l1 with | [] -> l2 | x::l1' -> x :: (l1' @ l2)
[@@adm l1]
let append l1 l2 = l1 @ l2[@@ocaml.doc
" List append / concatenation. [append l1 l2] returns a list composed of all\n elements of [l1], followed by all elements of [l2] "]
[@@macro ]
let append_to_nil x = (append x []) = x[@@imandra_theorem ][@@by
induct
~on_vars:
Expand Down Expand Up @@ -473,8 +474,7 @@ module List = struct
let ( let* ) = (>>=)[@@macro ]
let ( and* ) = monoid_product[@@macro ]
end
let (@) = List.append[@@ocaml.doc " Infix alias to {!List.append} "][@@macro
]
let (@) = List.(@)[@@ocaml.doc " Infix alias to {!List.append} "][@@macro ]
let (--) = List.(--)[@@ocaml.doc " Alias to {!List.(--)} "][@@macro ]
module Int = struct
type t = int[@@deriving (to_iml, of_mir)]
Expand Down
Loading