diff options
author | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2013-05-27 13:22:32 +0000 |
---|---|---|
committer | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2013-05-27 13:22:32 +0000 |
commit | 85c3c92d4ea73393ee67da8f3b811d221b4e06f5 (patch) | |
tree | 9484e5cff6f4fc1f36cc16351fd1d3808f6b167c /backend/PrintLTL.ml | |
parent | ff63a02431cb601eee8987730891ed036517e5a9 (diff) |
Hunting stack overflows again:
PrintLTL: List.map -> List.rev_map
IRC: @ -> List.rev_append + don't maintain "extra" lists on precolored nodes.
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@2262 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'backend/PrintLTL.ml')
-rw-r--r-- | backend/PrintLTL.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/PrintLTL.ml b/backend/PrintLTL.ml index 1149dd0..702c213 100644 --- a/backend/PrintLTL.ml +++ b/backend/PrintLTL.ml @@ -117,7 +117,7 @@ let print_function pp id f = let instrs = List.sort (fun (pc1, _) (pc2, _) -> Pervasives.compare pc2 pc1) - (List.map + (List.rev_map (fun (pc, i) -> (P.to_int32 pc, i)) (PTree.elements f.fn_code)) in print_succ pp f.fn_entrypoint |