Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
85e6f3f
make compatible to ocaml 5
PerfectLaugh Apr 9, 2025
2e18fb1
compat with ghidra 11.4
PerfectLaugh Jul 3, 2025
b497ab3
fix doc
PerfectLaugh Jul 29, 2025
b2a28f7
enable ocamlformat
PerfectLaugh Sep 18, 2025
59387eb
format all code
PerfectLaugh Sep 18, 2025
bd1f247
ignore formatting commit in git blame
PerfectLaugh Sep 18, 2025
4b75e4d
fix doc except bap.mli
PerfectLaugh Sep 19, 2025
13741ea
fix doc and fmts
PerfectLaugh Sep 19, 2025
a1342c2
chore(doc): adding line for reference
PerfectLaugh Sep 21, 2025
b911020
chore(build): remove unnecessary dune options
PerfectLaugh Sep 21, 2025
183c91d
fix(build): fix up warnings in ghidra_disasm.cpp
PerfectLaugh Sep 21, 2025
93277c2
chore(build): fix wrong deprecation attributes placement
PerfectLaugh Nov 8, 2025
2578120
fix(build): remove ppx_bitstring version requirement
PerfectLaugh Nov 8, 2025
4d82d8c
chore(docs): fmt
PerfectLaugh Nov 8, 2025
e681c92
chore(git): gitignore *.install files
PerfectLaugh Nov 8, 2025
d184b81
fix(build): build with 5.4.0
PerfectLaugh Nov 8, 2025
5257f12
chore(code): ignore fmt commits in git blame
PerfectLaugh Nov 9, 2025
119e226
fix(powerpc): fix immediate size
PerfectLaugh Nov 9, 2025
0d8443e
use ocamlformat 0.28.1
PerfectLaugh Nov 9, 2025
2ea66c7
ignore fmt commit in git blame
PerfectLaugh Nov 9, 2025
c62361d
disable opam files generation
PerfectLaugh Nov 13, 2025
518488e
chore(deps): remove cmdliner version requirements and misc opts
PerfectLaugh Nov 28, 2025
bb9bb68
fix(build): generate opam files again and fix z3 and bitstring compil…
PerfectLaugh Dec 11, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 10 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# format all code
59387eb56421aca501f92dd99cd147114e8fc19a
# fix doc except bap.mli
4b75e4d20472422cbd8f5e2fd0510ff3ab861dfd
# fix doc and fmts
13741ea5dbbc0d7b52d8d6b5b9db735566d4d9b6
# chore(docs): fmt
4d82d8c4b86e6db178594c55be7691cc6d138140
# use ocamlformat 0.28.1
0d8443eb9283441c393161d8aa6b8eb4e0384e1c
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ OMakefile
/config.status.in
/_opam/
/plugins/api/api_sites.ml
/plugins/stub_resolver/stub_resolver_sites.ml
/plugins/stub_resolver/stub_resolver_sites.ml
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "plugins/primus_symbolic_executor/z3"]
path = plugins/primus_symbolic_executor/z3
url = https://github.com/Z3Prover/z3.git
2 changes: 2 additions & 0 deletions .ocamlformat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
profile = default
version = 0.28.1
5 changes: 3 additions & 2 deletions bap-abi.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ tags: ["bap" "bap-pass" "bap-plugin"]
homepage: "https://github.com/BinaryAnalysisPlatform/bap"
bug-reports: "https://github.com/BinaryAnalysisPlatform/bap/issues"
depends: [
"dune" {>= "3.1"}
"dune" {>= "3.20"}
"bap-main" {= version}
"bap-std" {= version}
"core_kernel" {>= "v0.14" & < "v0.16"}
"core"
"bap-common" {= version}
"ppx_bap" {= version}
"regular" {= version}
Expand All @@ -35,3 +35,4 @@ build: [
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/BinaryAnalysisPlatform/bap.git"
x-maintenance-intent: ["(latest)"]
5 changes: 3 additions & 2 deletions bap-analyze.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ tags: ["bap" "bap-command" "bap-plugin"]
homepage: "https://github.com/BinaryAnalysisPlatform/bap"
bug-reports: "https://github.com/BinaryAnalysisPlatform/bap/issues"
depends: [
"dune" {>= "3.1"}
"dune" {>= "3.20"}
"bap-core-theory" {= version}
"bap-knowledge" {= version}
"bap-main" {= version}
"bap-std" {= version}
"bitvec" {= version}
"core_kernel" {>= "v0.14" & < "v0.16"}
"core"
"linenoise" {>= "1.1.0" & < "2.0.0"}
"monads" {= version}
"bap-common" {= version}
Expand All @@ -39,3 +39,4 @@ build: [
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/BinaryAnalysisPlatform/bap.git"
x-maintenance-intent: ["(latest)"]
5 changes: 3 additions & 2 deletions bap-api.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ tags: ["bap" "bap-plugin" "bap-library"]
homepage: "https://github.com/BinaryAnalysisPlatform/bap"
bug-reports: "https://github.com/BinaryAnalysisPlatform/bap/issues"
depends: [
"dune" {>= "3.1"}
"dune" {>= "3.20"}
"bap-common" {= version}
"bap-main" {= version}
"bap-std" {= version}
"core_kernel" {>= "v0.14" & < "v0.16"}
"core"
"fileutils"
"ppx_bap" {= version}
"regular" {= version}
Expand All @@ -36,3 +36,4 @@ build: [
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/BinaryAnalysisPlatform/bap.git"
x-maintenance-intent: ["(latest)"]
5 changes: 3 additions & 2 deletions bap-arm.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tags: ["bap" "bap-plugin" "bap-library" "arm"]
homepage: "https://github.com/BinaryAnalysisPlatform/bap"
bug-reports: "https://github.com/BinaryAnalysisPlatform/bap/issues"
depends: [
"dune" {>= "3.1"}
"dune" {>= "3.20"}
"bap-abi" {= version}
"bap-api" {= version}
"bap-core-theory" {= version}
Expand All @@ -21,7 +21,7 @@ depends: [
"bap-traces" {= version}
"bitvec-order" {= version}
"bitvec" {= version}
"core_kernel" {>= "v0.14" & < "v0.16"}
"core"
"monads" {= version}
"bap-common" {= version}
"ogre" {= version}
Expand All @@ -46,3 +46,4 @@ build: [
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/BinaryAnalysisPlatform/bap.git"
x-maintenance-intent: ["(latest)"]
5 changes: 3 additions & 2 deletions bap-beagle-strings.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ tags: ["bap" "bap-plugin"]
homepage: "https://github.com/BinaryAnalysisPlatform/bap"
bug-reports: "https://github.com/BinaryAnalysisPlatform/bap/issues"
depends: [
"dune" {>= "3.1"}
"core_kernel" {>= "v0.14" & < "v0.16"}
"dune" {>= "3.20"}
"core"
"bap-common" {= version}
"bap-beagle" {= version}
"ppx_bap" {= version}
Expand All @@ -36,3 +36,4 @@ build: [
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/BinaryAnalysisPlatform/bap.git"
x-maintenance-intent: ["(latest)"]
5 changes: 3 additions & 2 deletions bap-beagle.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ tags: ["bap" "bap-plugin"]
homepage: "https://github.com/BinaryAnalysisPlatform/bap"
bug-reports: "https://github.com/BinaryAnalysisPlatform/bap/issues"
depends: [
"dune" {>= "3.1"}
"dune" {>= "3.20"}
"bap-future" {= version}
"bap-microx" {= version}
"bap-primus" {= version}
"bap-std" {= version}
"bap-strings" {= version}
"core_kernel" {>= "v0.14" & < "v0.16"}
"core"
"monads" {= version}
"bap-common" {= version}
"ppx_bap" {= version}
Expand All @@ -39,3 +39,4 @@ build: [
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/BinaryAnalysisPlatform/bap.git"
x-maintenance-intent: ["(latest)"]
5 changes: 3 additions & 2 deletions bap-bil.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ tags: ["bap" "bap-plugin"]
homepage: "https://github.com/BinaryAnalysisPlatform/bap"
bug-reports: "https://github.com/BinaryAnalysisPlatform/bap/issues"
depends: [
"dune" {>= "3.1"}
"dune" {>= "3.20"}
"bap-core-theory" {= version}
"bap-future" {= version}
"bap-knowledge" {= version}
"bap-main" {= version}
"bap-std" {= version}
"bitvec-order" {= version}
"bitvec" {= version}
"core_kernel" {>= "v0.14" & < "v0.16"}
"core"
"monads" {= version}
"bap-common" {= version}
"ogre" {= version}
Expand All @@ -41,3 +41,4 @@ build: [
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/BinaryAnalysisPlatform/bap.git"
x-maintenance-intent: ["(latest)"]
5 changes: 3 additions & 2 deletions bap-bml.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ tags: ["bap" "bap-library"]
homepage: "https://github.com/BinaryAnalysisPlatform/bap"
bug-reports: "https://github.com/BinaryAnalysisPlatform/bap/issues"
depends: [
"dune" {>= "3.1"}
"dune" {>= "3.20"}
"bap-std" {= version}
"core_kernel" {>= "v0.14" & < "v0.16"}
"core"
"bap-common" {= version}
"ppx_bap" {= version}
"odoc" {with-doc}
Expand All @@ -33,3 +33,4 @@ build: [
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/BinaryAnalysisPlatform/bap.git"
x-maintenance-intent: ["(latest)"]
7 changes: 3 additions & 4 deletions bap-build.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ tags: ["bap" "bap-tool" "ocamlbuild"]
homepage: "https://github.com/BinaryAnalysisPlatform/bap"
bug-reports: "https://github.com/BinaryAnalysisPlatform/bap/issues"
depends: [
"dune" {>= "3.1"}
"core_kernel" {>= "v0.14" & < "v0.16"}
"dune" {>= "3.20"}
"core"
"bap-common" {= version}
"ocamlbuild"
"ocamlfind"
"ppx_bap" {= version}
"odoc" {with-doc}
]
Expand All @@ -34,3 +32,4 @@ build: [
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/BinaryAnalysisPlatform/bap.git"
x-maintenance-intent: ["(latest)"]
8 changes: 5 additions & 3 deletions bap-bundle.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ tags: ["bap" "bap-tool"]
homepage: "https://github.com/BinaryAnalysisPlatform/bap"
bug-reports: "https://github.com/BinaryAnalysisPlatform/bap/issues"
depends: [
"dune" {>= "3.1"}
"camlzip" {>= "1.0" & < "2.0"}
"core_kernel" {>= "v0.14" & < "v0.16"}
"dune" {>= "3.20"}
"camlzip"
"core"
"core_kernel"
"fileutils"
"bap-common" {= version}
"ppx_bap" {= version}
Expand All @@ -35,3 +36,4 @@ build: [
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/BinaryAnalysisPlatform/bap.git"
x-maintenance-intent: ["(latest)"]
7 changes: 4 additions & 3 deletions bap-byteweight-frontend.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ tags: ["bap" "bap-frontend" "bap-command"]
homepage: "https://github.com/BinaryAnalysisPlatform/bap"
bug-reports: "https://github.com/BinaryAnalysisPlatform/bap/issues"
depends: [
"dune" {>= "3.1"}
"dune" {>= "3.20"}
"bap-byteweight" {= version}
"bap-std" {= version}
"cmdliner" {>= "1.0" & < "2.0"}
"core_kernel" {>= "v0.14" & < "v0.16"}
"cmdliner"
"core"
"fileutils"
"bap-common" {= version}
"ocurl" {>= "0.9.0"}
Expand All @@ -38,3 +38,4 @@ build: [
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/BinaryAnalysisPlatform/bap.git"
x-maintenance-intent: ["(latest)"]
5 changes: 3 additions & 2 deletions bap-byteweight.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ tags: ["bap" "bap-library" "bap-plugin"]
homepage: "https://github.com/BinaryAnalysisPlatform/bap"
bug-reports: "https://github.com/BinaryAnalysisPlatform/bap/issues"
depends: [
"dune" {>= "3.1"}
"dune" {>= "3.20"}
"bap-signatures" {= version}
"bap-std" {= version}
"camlzip" {>= "1.0" & < "2.0"}
"core_kernel" {>= "v0.14" & < "v0.16"}
"core"
"bap-common" {= version}
"ppx_bap" {= version}
"regular" {= version}
Expand All @@ -37,3 +37,4 @@ build: [
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/BinaryAnalysisPlatform/bap.git"
x-maintenance-intent: ["(latest)"]
5 changes: 3 additions & 2 deletions bap-c.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ tags: ["bap" "bap-library" "c"]
homepage: "https://github.com/BinaryAnalysisPlatform/bap"
bug-reports: "https://github.com/BinaryAnalysisPlatform/bap/issues"
depends: [
"dune" {>= "3.1"}
"dune" {>= "3.20"}
"bap-abi" {= version}
"bap-api" {= version}
"bap-core-theory" {= version}
"bap-knowledge" {= version}
"bap-std" {= version}
"core_kernel" {>= "v0.14" & < "v0.16"}
"core"
"bap-common" {= version}
"ppx_bap" {= version}
"odoc" {with-doc}
Expand All @@ -37,3 +37,4 @@ build: [
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/BinaryAnalysisPlatform/bap.git"
x-maintenance-intent: ["(latest)"]
5 changes: 3 additions & 2 deletions bap-cache.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ tags: ["bap" "bap-plugin"]
homepage: "https://github.com/BinaryAnalysisPlatform/bap"
bug-reports: "https://github.com/BinaryAnalysisPlatform/bap/issues"
depends: [
"dune" {>= "3.1"}
"dune" {>= "3.20"}
"bap-main" {= version}
"bap-std" {= version}
"core_kernel" {>= "v0.14" & < "v0.16"}
"core"
"fileutils"
"mmap"
"bap-common" {= version}
Expand All @@ -38,3 +38,4 @@ build: [
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/BinaryAnalysisPlatform/bap.git"
x-maintenance-intent: ["(latest)"]
5 changes: 3 additions & 2 deletions bap-callgraph-collator.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ tags: ["bap" "bap-analysis"]
homepage: "https://github.com/BinaryAnalysisPlatform/bap"
bug-reports: "https://github.com/BinaryAnalysisPlatform/bap/issues"
depends: [
"dune" {>= "3.1"}
"dune" {>= "3.20"}
"bap-main" {= version}
"bap-std" {= version}
"core_kernel" {>= "v0.14" & < "v0.16"}
"core"
"graphlib" {= version}
"bap-common" {= version}
"ppx_bap" {= version}
Expand All @@ -37,3 +37,4 @@ build: [
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/BinaryAnalysisPlatform/bap.git"
x-maintenance-intent: ["(latest)"]
5 changes: 3 additions & 2 deletions bap-callsites.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ tags: ["bap" "bap-plugin" "bap-pass"]
homepage: "https://github.com/BinaryAnalysisPlatform/bap"
bug-reports: "https://github.com/BinaryAnalysisPlatform/bap/issues"
depends: [
"dune" {>= "3.1"}
"dune" {>= "3.20"}
"bap-std" {= version}
"core_kernel" {>= "v0.14" & < "v0.16"}
"core"
"bap-common" {= version}
"odoc" {with-doc}
]
Expand All @@ -32,3 +32,4 @@ build: [
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/BinaryAnalysisPlatform/bap.git"
x-maintenance-intent: ["(latest)"]
7 changes: 2 additions & 5 deletions bap-common.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,8 @@ tags: ["bap" "meta"]
homepage: "https://github.com/BinaryAnalysisPlatform/bap"
bug-reports: "https://github.com/BinaryAnalysisPlatform/bap/issues"
depends: [
"base" {>= "v0.14" & < "v0.16"}
"dune" {>= "3.1"}
"dune-configurator"
"dune" {>= "3.20"}
"dune-site"
"ocaml" {> "4.08.0"}
"stdio" {>= "v0.14" & < "v0.16"}
"odoc" {with-doc}
]
build: [
Expand All @@ -34,3 +30,4 @@ build: [
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/BinaryAnalysisPlatform/bap.git"
x-maintenance-intent: ["(latest)"]
5 changes: 3 additions & 2 deletions bap-constant-tracker.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ tags: ["bap" "bap-analysis" "bap-plugin" "bap-primus"]
homepage: "https://github.com/BinaryAnalysisPlatform/bap"
bug-reports: "https://github.com/BinaryAnalysisPlatform/bap/issues"
depends: [
"dune" {>= "3.1"}
"dune" {>= "3.20"}
"bap-primus" {= version}
"bap-std" {= version}
"core_kernel" {>= "v0.14" & < "v0.16"}
"core"
"bap-common" {= version}
"odoc" {with-doc}
]
Expand All @@ -33,3 +33,4 @@ build: [
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/BinaryAnalysisPlatform/bap.git"
x-maintenance-intent: ["(latest)"]
5 changes: 3 additions & 2 deletions bap-core-theory.opam
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ tags: ["bap" "bap-library"]
homepage: "https://github.com/BinaryAnalysisPlatform/bap"
bug-reports: "https://github.com/BinaryAnalysisPlatform/bap/issues"
depends: [
"dune" {>= "3.1"}
"dune" {>= "3.20"}
"bap-knowledge" {= version}
"bap-main" {= version}
"bitvec" {= version}
"bitvec-binprot" {= version}
"bitvec-order" {= version}
"bitvec-sexp" {= version}
"core_kernel" {>= "v0.14" & < "v0.16"}
"core"
"bap-common" {= version}
"ppx_bap" {= version}
"odoc" {with-doc}
Expand All @@ -40,3 +40,4 @@ build: [
["dune" "install" "-p" name "--create-install-files" name]
]
dev-repo: "git+https://github.com/BinaryAnalysisPlatform/bap.git"
x-maintenance-intent: ["(latest)"]
Loading