-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
uc-crux-llvm: New type for function postconditions
The Postcondition module declares a type that approximates a specification of a function's postconditions. This is used in Classify to infer such postconditions on return values, in the future it may be used to infer information about clobbered memory. This module supersedes the "Clobber" specs that were part of the Skip override machinery. These weren't amenable to use-cases such as inference. Also implement some additional pretty-printing machinery.
- Loading branch information
1 parent
108a6e2
commit c970b60
Showing
18 changed files
with
979 additions
and
480 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{- | ||
Module : UCCrux.LLVM.FullType.PP | ||
Description : Pretty-printing 'FullTypeRepr' | ||
Copyright : (c) Galois, Inc 2022 | ||
License : BSD3 | ||
Maintainer : Langston Barrett <langston@galois.com> | ||
Stability : provisional | ||
-} | ||
|
||
module UCCrux.LLVM.FullType.PP | ||
( ppFullTypeRepr, | ||
ppPartTypeRepr | ||
) | ||
where | ||
|
||
import Prettyprinter (Doc) | ||
|
||
import Lang.Crucible.LLVM.MemType (ppMemType, ppSymType) | ||
|
||
import UCCrux.LLVM.FullType.MemType (toMemType, toSymType) | ||
import UCCrux.LLVM.FullType.Type (FullTypeRepr, PartTypeRepr) | ||
|
||
ppFullTypeRepr :: FullTypeRepr m ft -> Doc ann | ||
ppFullTypeRepr = ppMemType . toMemType | ||
|
||
ppPartTypeRepr :: PartTypeRepr m ft -> Doc ann | ||
ppPartTypeRepr = ppSymType . toSymType |
Oops, something went wrong.