-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Abstract debugger (+ WPST debugging) (#261)
* Allow CI to be triggered manually * Fix batteries version, add memtrace * Add index to SpecExec branch case * Tweak goto branching and reduction error handling * Add fresh, assert and assume to WISL, tweak while * Introduce abstract debugger * Tweak confcont and formatting * Tweak ConfCont, remove new_branches * Simplify LAction branch case * Ignore branch cases when not debugging * Update some GIL compilations in sampleWorkspace * Update debug extension for WPST debugging * Bump Z3 timeout * Fix docker build CI * Simplify branch cases from spec proc calls * Un-bump Z3 timeout
- Loading branch information
1 parent
5e15c33
commit 87af2a8
Showing
59 changed files
with
2,655 additions
and
1,916 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,3 +94,6 @@ javert-test262 | |
# Built docs | ||
_docs/odoc | ||
_docs/sphinx | ||
|
||
# Memtraces | ||
*.ctf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
open Cmdliner | ||
|
||
module Make (PC : ParserAndCompiler.S) (Debug_adapter : Debug_adapter.S) : | ||
Console.S = struct | ||
module Common_args = Common_args.Make (PC) | ||
|
||
let debug_wpst_info = | ||
let doc = | ||
"Starts Gillian in debugging mode for whole-program symbolic testing" | ||
in | ||
let man = | ||
[ | ||
`S Manpage.s_description; | ||
`P | ||
"Starts Gillian in debugging mode for whole-program symbolic \ | ||
testing, which communicates via the Debug Adapter Protocol"; | ||
] | ||
in | ||
Cmd.info "debugwpst" ~doc ~man | ||
|
||
let start_debug_adapter () = | ||
Config.current_exec_mode := Utils.Exec_mode.Symbolic; | ||
Lwt_main.run (Debug_adapter.start Lwt_io.stdin Lwt_io.stdout) | ||
|
||
let debug_wpst_t = Common_args.use Term.(const start_debug_adapter) | ||
let debug_wpst_cmd = Cmd.v debug_wpst_info debug_wpst_t | ||
let cmds = [ debug_wpst_cmd ] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.