-
A composite trace in my case is a sequence of "write request", each entry is:
I tried to use List and Record to represent this but seems not possible because Record requires specifying value so I cannot write List[Record]. List and Tuple is another choice but then it's very hard to remember what field does Tuple._1 maps to. Is it possible to do in Quint? Or am I going in the wrong direction. Please let me know your ideas. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi! I don't think I understand what you mean by "composite trace". You can specify a state variable with type "list of write requests" by writing: var writeRequests: List[{ key: str, value: str, time: int }] Moreover, you can also create a type alias for the write request and use it in the type: type WriteRequest = { key: str, value: str, time: int }
var writeRequests: List[WriteRequest] Does this help with what you are trying to achieve? |
Beta Was this translation helpful? Give feedback.
Hi! I don't think I understand what you mean by "composite trace". You can specify a state variable with type "list of write requests" by writing:
Moreover, you can also create a type alias for the write request and use it in the type:
Does this help with what you are trying to achieve?