Skip to content

Commit

Permalink
Merge pull request #127 from GaloisInc/sc/cn-b9daa22
Browse files Browse the repository at this point in the history
CN server: update Cerberus/CN dependencies
  • Loading branch information
samcowger authored Nov 4, 2024
2 parents a258e83 + 146aab2 commit ccd67a0
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 28 deletions.
18 changes: 9 additions & 9 deletions cn-lsp/server/cnlsp.opam
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ depends: [
"dune" {>= "3.12"}
"ocaml" {>= "4.14.1" & < "6.0.0"}
"base" {>= "v0.16.3" & < "v0.18"}
"cerberus" {= "f1f118b26"}
"cerberus-lib" {= "f1f118b26"}
"cn" {= "f1f118b26"}
"cerberus" {= "b9daa22"}
"cerberus-lib" {= "b9daa22"}
"cn" {= "b9daa22"}
"jsonrpc" {>= "1.17.0" & < "2.0.0"}
"linol" {>= "0.6" & < "1.0"}
"linol-lwt" {>= "0.6" & < "1.0"}
Expand All @@ -34,15 +34,15 @@ build: [
]
pin-depends: [
[
"cerberus.f1f118b26"
"git+https://github.com/rems-project/cerberus.git#f1f118b26"
"cerberus.b9daa22"
"git+https://github.com/rems-project/cerberus.git#b9daa22"
]
[
"cerberus-lib.f1f118b26"
"git+https://github.com/rems-project/cerberus.git#f1f118b26"
"cerberus-lib.b9daa22"
"git+https://github.com/rems-project/cerberus.git#b9daa22"
]
[
"cn.f1f118b26"
"git+https://github.com/rems-project/cerberus.git#f1f118b26"
"cn.b9daa22"
"git+https://github.com/rems-project/cerberus.git#b9daa22"
]
]
18 changes: 9 additions & 9 deletions cn-lsp/server/cnlsp.opam.locked
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ depends: [
"base-bytes" {= "base"}
"base-threads" {= "base"}
"base-unix" {= "base"}
"cerberus" {= "f1f118b26"}
"cerberus-lib" {= "f1f118b26"}
"cerberus" {= "b9daa22"}
"cerberus-lib" {= "b9daa22"}
"cmdliner" {= "1.3.0"}
"cn" {= "f1f118b26"}
"cn" {= "b9daa22"}
"conf-bash" {= "1"}
"conf-c++" {= "1.0"}
"conf-findutils" {= "1"}
Expand Down Expand Up @@ -84,15 +84,15 @@ build: [
]
pin-depends: [
[
"cerberus.f1f118b26"
"git+https://github.com/rems-project/cerberus.git#f1f118b26"
"cerberus.b9daa22"
"git+https://github.com/rems-project/cerberus.git#b9daa22"
]
[
"cerberus-lib.f1f118b26"
"git+https://github.com/rems-project/cerberus.git#f1f118b26"
"cerberus-lib.b9daa22"
"git+https://github.com/rems-project/cerberus.git#b9daa22"
]
[
"cn.f1f118b26"
"git+https://github.com/rems-project/cerberus.git#f1f118b26"
"cn.b9daa22"
"git+https://github.com/rems-project/cerberus.git#b9daa22"
]
]
12 changes: 6 additions & 6 deletions cn-lsp/server/cnlsp.opam.template
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
pin-depends: [
[
"cerberus.f1f118b26"
"git+https://github.com/rems-project/cerberus.git#f1f118b26"
"cerberus.b9daa22"
"git+https://github.com/rems-project/cerberus.git#b9daa22"
]
[
"cerberus-lib.f1f118b26"
"git+https://github.com/rems-project/cerberus.git#f1f118b26"
"cerberus-lib.b9daa22"
"git+https://github.com/rems-project/cerberus.git#b9daa22"
]
[
"cn.f1f118b26"
"git+https://github.com/rems-project/cerberus.git#f1f118b26"
"cn.b9daa22"
"git+https://github.com/rems-project/cerberus.git#b9daa22"
]
]
6 changes: 3 additions & 3 deletions cn-lsp/server/dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
(>= v0.16.3)
(< v0.18)))
(cerberus
(= "f1f118b26"))
(= "b9daa22"))
(cerberus-lib
(= "f1f118b26"))
(= "b9daa22"))
(cn
(= "f1f118b26"))
(= "b9daa22"))
(jsonrpc
(and
(>= 1.17.0)
Expand Down
9 changes: 8 additions & 1 deletion cn-lsp/server/lib/lspCn.ml
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,16 @@ module Cerb = struct
;;

let frontend ((conf, impl, stdlib) : env) (filename : string) =
let cn_init_scope : CF.Cn_desugaring.init_scope =
{ predicates = [ Cn.Alloc.Predicate.(str, sym, Some loc) ]
; functions =
List.map Cn.Builtins.cn_builtin_fun_names ~f:(fun (str, sym) -> str, sym, None)
; idents = [ Cn.Alloc.History.(str, sym, Some loc) ]
}
in
let* _, ail_prog_opt, prog0 =
CB.Pipeline.c_frontend_and_elaboration
~cnnames:Cn.Builtins.cn_builtin_fun_names
~cn_init_scope
(conf, Cn.Setup.io)
(stdlib, impl)
~filename
Expand Down

0 comments on commit ccd67a0

Please sign in to comment.