13 unstable releases (5 breaking)

0.11.1 Aug 31, 2023
0.10.1 May 24, 2023
0.9.0 Jan 31, 2023
0.8.2 Oct 12, 2022
0.1.2 Aug 23, 2021

#262 in Embedded development

Download history 9/week @ 2024-02-23 7/week @ 2024-03-01 12/week @ 2024-03-29 47/week @ 2024-04-05

59 downloads per month


58K SLoC

SymCC Concolic Tracing Runtime Rust Bindings

This crate allows you to build custom runtimes for SymCC. See the documentation for details.


SymCC Runtime Bindings

This crate contains bindings to the SymCC runtime interface to be used from Rust. A SymCC runtime can be used with either SymCC or SymQEMU to trace the execution of a target program.

How to use

On a high level, users of this crate can implement the Runtime trait and export the runtime interface as a cdylib using the export_runtime macro. On a technical level, a SymCC runtime is a dynamic library (/shared object) that exposes a set of symbols that the instrumentation layer of SymCC calls into during execution of the target. Therefore, to create a runtime, a separate crate for the runtime is required, because this is the only way to create a separate dynamic library using cargo.


To facilitate common use cases, this crate also contains some pre-built functionality in the form of a tracing::TracingRuntime that traces the execution to a shared memory region. It also contains a separate abstraction to easily filter the expressions that make up such a trace in the filter module. For example, it contains a filter::NoFloat filter that concretizes all floating point operations in the trace, because those are usually more difficult to handle than discrete constraints.

Crate setup

Your runtime crate should have the following keys set in its Cargo.toml:

# this is somewhat important to ensure the runtime does not unwind into the target program.
panic = "abort"
panic = "abort"

# this is required for the output to be a shared object (.so file)
crate-type   = ["cdylib"]
# SymCC and SymQEMU expect to runtime file to be called `libSymRuntime.so`. Setting the name to `SymRuntime` achieves this.
name = "SymRuntime"


~586K SLoC