Skip to content

Commit 850f24b

Browse files
authored
renames the core-theory package to just core (#1307)
The `theory` part is excessive and only makes it harder to read the knowledge base. The new name will also make more sense when we will add more theories.
1 parent 8915677 commit 850f24b

10 files changed

+15
-15
lines changed

lib/bap/bap_project.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -874,12 +874,12 @@ module Analysis = struct
874874
let program =
875875
argument "<label>"
876876
~parse:(parse_object Theory.Program.cls)
877-
~desc:(sprintf "an object of the core-theory:program class")
877+
~desc:(sprintf "an object of the core:program class")
878878

879879
let unit =
880880
argument "<unit>"
881881
~parse:(parse_object Theory.Unit.cls)
882-
~desc:(sprintf "an object of the core-theory:unit class")
882+
~desc:(sprintf "an object of the core:unit class")
883883

884884
let parse_bitvec ~fail str =
885885
try !!(Bitvec.of_string str)

lib/bap_core_theory/bap_core_theory_IEEE754.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ let binary = function
9292
| k -> binary k
9393

9494
module Sort = struct
95-
let ieee754 = Sort.Name.declare ~package:"core-theory" "IEEE754"
95+
let ieee754 = Sort.Name.declare ~package:"core" "IEEE754"
9696
let format {base; w; t=x; k} = Float.Format.define
9797
Sort.(int base @-> int w @-> int x @-> sym ieee754)
9898
(Bitv.define k)

lib/bap_core_theory/bap_core_theory_definition.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ type label = program Knowledge.Object.t
3333

3434
type theory_cls
3535
let theory : (theory_cls,unit) Knowledge.cls =
36-
Knowledge.Class.declare ~package:"core-theory" "theory" ()
36+
Knowledge.Class.declare ~package:"core" "theory" ()
3737
~public:true
3838
~desc:"the class of Core Theory instances"
3939

lib/bap_core_theory/bap_core_theory_effect.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module KB = Knowledge
55

66
type cls = Effects
77

8-
let package = "core-theory"
8+
let package = "core"
99

1010
module Sort = struct
1111
type effects = Top | Set of Set.M(KB.Name).t

lib/bap_core_theory/bap_core_theory_empty.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module Core : Core = struct
1414

1515
let name =
1616
KB.Symbol.intern "empty" theory
17-
~package:"core-theory"
17+
~package:"core"
1818
~public:true
1919
~desc:"The empty theory."
2020

lib/bap_core_theory/bap_core_theory_manager.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ let features = Set.of_list (module String)
2828
let names = Set.of_list (module Name)
2929

3030
module Empty = struct
31-
let name = Name.create ~package:"core-theory" "empty"
31+
let name = Name.create ~package:"core" "empty"
3232
let requires = ["empty"]
3333
let provides = [Name.show name]
3434
module Self = Bap_core_theory_empty.Core
@@ -308,7 +308,7 @@ let domain = Knowledge.Domain.define "theory"
308308
~order
309309

310310
let slot = Knowledge.Class.property theory "instance" domain
311-
~package:"core-theory"
311+
~package:"core"
312312
~desc:"The theory structure"
313313

314314

@@ -352,7 +352,7 @@ let theory_for_id id =
352352
let sym = sprintf "'%s" @@
353353
List.to_string (Set.to_list id) ~f:Name.show in
354354
Knowledge.Symbol.intern sym theory
355-
~package:"core-theory-internal"
355+
~package:"core-internal"
356356

357357
let is_instantiated id =
358358
Knowledge.collect slot id >>| fun t ->

lib/bap_core_theory/bap_core_theory_program.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ open Core_kernel
22
open Bitvec_order.Comparators
33
open Bap_knowledge
44

5-
let package = "core-theory"
5+
let package = "core"
66
module Value = Bap_core_theory_value
77
module Effect = Bap_core_theory_effect
88
module Target = Bap_core_theory_target

lib/bap_core_theory/bap_core_theory_value.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ open Caml.Format
44
open Bap_knowledge
55
module KB = Knowledge
66

7-
let package = "core-theory"
7+
let package = "core"
88

99

1010
module Sort : sig
@@ -57,7 +57,7 @@ end
5757
let names = Hash_set.create (module KB.Name)
5858
let short_names = Hashtbl.create (module String)
5959

60-
let cls = KB.Class.declare ~package:"core-theory" "value" ()
60+
let cls = KB.Class.declare ~package:"core" "value" ()
6161
~public:true
6262
~desc:"the denotation of an expression"
6363

lib/bap_core_theory/bap_core_theory_var.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ open Knowledge.Syntax
77

88
module Value = Knowledge.Value
99

10-
let package = "core-theory"
10+
let package = "core"
1111

1212
type const = Const [@@deriving bin_io, compare, sexp]
1313
type mut = Mut [@@deriving bin_io, compare, sexp]

plugins/systemz/systemz_lifter.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ end
8181
8282
The only input parameter is a label that denotes a program
8383
location, aka a knowledge base object of type
84-
core-theory:program. The label is like a generalized address - it
84+
core:program. The label is like a generalized address - it
8585
uniquely identifies a program location, even across modules.
8686
8787
To build the semantics the lifter can access various properties of
@@ -93,7 +93,7 @@ end
9393
function with other lifters (itself included, of course).
9494
9595
The list of properties of that class can be obtained using the
96-
following command: `bap list classes -f core-theory:program`.
96+
following command: `bap list classes -f core:program`.
9797
9898
The return type [unit Theory.eff] is the denotation of effects that
9999
the instruction performs. The ['a Theory.eff] type is an

0 commit comments

Comments
 (0)