File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ pub mod cprover_api {
24
24
}
25
25
}
26
26
27
+ /// Module containing utility functions for translating between types across
28
+ /// the FFI boundary.
27
29
pub mod ffi_util {
28
30
use crate :: cprover_api:: _translate_vector_of_string;
29
31
use cxx:: CxxString ;
@@ -38,10 +40,10 @@ pub mod ffi_util {
38
40
. collect ( )
39
41
}
40
42
41
- /// This is a utility function, whose aim is to simplify direct printing of the messages
42
- /// that we get from CBMC's C++ API. Underneath, it's using translate_response_buffer
43
- /// to translate the C++ types into Rust types and then prints out the strings contained
44
- /// in the resultant rust vector.
43
+ /// This function aims to simplify direct printing of the messages that we get
44
+ /// from CBMC's C++ API. Underneath, it's using [translate_cpp_vector_to_rust]
45
+ /// to translate the C++ types into Rust types and then prints out the strings
46
+ /// contained in the resultant Rust vector.
45
47
pub fn print_response ( vec : & CxxVector < CxxString > ) {
46
48
let vec: Vec < String > = translate_response_buffer ( vec) ;
47
49
@@ -59,7 +61,7 @@ pub mod ffi_util {
59
61
60
62
// To test run "CBMC_LIB_DIR=<path_to_build/libs> SAT_IMPL=minisat2 cargo test -- --test-threads=1 --nocapture"
61
63
#[ cfg( test) ]
62
- mod tests {
64
+ mod tests
63
65
use super :: * ;
64
66
use cxx:: let_cxx_string;
65
67
use std:: process;
You can’t perform that action at this time.
0 commit comments