mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
40ecee6482
When we compare StackAnalysis test results, the order in which things appear in the JSON is relevant. However, the output was non-deterministic due to a `std::map` using a pointer as key. This commit improves the situation by sorting the elements by name before dumping them in JSON.
16 lines
248 B
JSON
16 lines
248 B
JSON
[
|
|
{
|
|
"entry_point" : "bb.push_pop",
|
|
"slots" : [
|
|
{
|
|
"return_value" : "Maybe",
|
|
"slot" : "rax"
|
|
},
|
|
{
|
|
"argument" : "Maybe",
|
|
"slot" : "rdx"
|
|
}
|
|
]
|
|
}
|
|
]
|