Commit d44e85f
committed
Change saw-core tuple representation.
We now have an explicit AST constructor for arbitrary-size tuple values.
Tuple types are formalized as a type constructor that takes a list
of types as an argument:
data TypeList : sort 1 where {
TypeNil : TypeList;
TypeCons : sort 0 -> TypeList -> TypeList;
}
primitive Tuple : TypeList -> sort 0;
Additional primitives allow constructing and deconstructing tuples
in a nested fashion:
primitive headTuple : (t : sort 0) -> (ts : TypeList) -> Tuple (TypeCons t ts) -> t;
primitive tailTuple : (t : sort 0) -> (ts : TypeList) -> Tuple (TypeCons t ts) -> Tuple ts;
primitive consTuple : (t : sort 0) -> (ts : TypeList) -> t -> Tuple ts -> Tuple (TypeCons t ts);1 parent 68d6efc commit d44e85f
File tree
56 files changed
+877
-983
lines changed- crucible-mir-comp/src/Mir/Compositional
- cryptol-saw-core
- saw
- src/CryptolSAWCore
- heapster
- examples
- src/Heapster
- intTests
- test2009
- test2049
- test_llvm_errors
- test_sawcore_prelude
- otherTests/saw-core/Tests
- saw-central/src/SAWCentral
- Crucible
- LLVM
- MIR
- MRSolver
- Prover
- Yosys
- saw-core-aig/src/SAWCoreAIG
- saw-core-coq/src/SAWCoreCoq
- saw-core-sbv/src/SAWCoreSBV
- saw-core-what4/src/SAWCoreWhat4
- saw-core
- prelude
- src/SAWCore
- Parser
- Prelude
- Simulator
- Term
- saw-script/src/SAWScript
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
56 files changed
+877
-983
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
171 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
172 | 173 | | |
173 | 174 | | |
174 | 175 | | |
| |||
191 | 192 | | |
192 | 193 | | |
193 | 194 | | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
208 | 209 | | |
209 | 210 | | |
210 | 211 | | |
| |||
0 commit comments