Skip to content

Commit

Permalink
fix issue 3787
Browse files Browse the repository at this point in the history
  • Loading branch information
carolynzech committed Feb 13, 2025
1 parent 475ea5e commit 3e33eea
Show file tree
Hide file tree
Showing 2 changed files with 349 additions and 84 deletions.
10 changes: 9 additions & 1 deletion kani-driver/src/cbmc_output_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,12 +296,20 @@ pub struct TraceItem {
/// Struct that represents a trace value.
///
/// Note: this struct can have a lot of different fields depending on the value type.
/// The fields included right now are relevant to primitive types.
/// The fields included right now are relevant to primitive types and arrays.
#[derive(Clone, Debug, Deserialize)]
pub struct TraceValue {
pub binary: Option<String>,
pub data: Option<TraceData>,
pub width: Option<u32>,
// Invariant: elements is Some iff binary, data, and width are None.
pub elements: Option<Vec<TraceArrayValue>>,
}

/// Struct that represents an element of an array in a trace.
#[derive(Clone, Debug, Deserialize)]
pub struct TraceArrayValue {
pub value: TraceValue,
}

/// Enum that represents a trace data item.
Expand Down
Loading

0 comments on commit 3e33eea

Please # to comment.