MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / build_model

Function build_model

crates/openshell-prover/src/model.rs:386–394  ·  view source on GitHub ↗

Build a reachability model from the given inputs.

(
    policy: PolicyModel,
    credentials: CredentialSet,
    binary_registry: BinaryRegistry,
)

Source from the content-addressed store, hash-verified

384
385/// Build a reachability model from the given inputs.
386pub fn build_model(
387 policy: PolicyModel,
388 credentials: CredentialSet,
389 binary_registry: BinaryRegistry,
390) -> ReachabilityModel {
391 // Ensure the thread-local Z3 context is initialized
392 let _ctx = Context::thread_local();
393 ReachabilityModel::new(policy, credentials, binary_registry)
394}

Calls

no outgoing calls