diff options
author | wuestholz <unknown> | 2014-12-28 14:28:50 +0100 |
---|---|---|
committer | wuestholz <unknown> | 2014-12-28 14:28:50 +0100 |
commit | d3662f29ba04d5d36cce49bd90b937c0d3d29a44 (patch) | |
tree | 64ab5ae16a44c43866797754464b8d949d97ec4e /Source/Core/AbsyCmd.cs | |
parent | e0d28208a911c851d0f043311c3c3119f4b530d3 (diff) |
Worked on more native support for partially-verified assertions.
Diffstat (limited to 'Source/Core/AbsyCmd.cs')
-rw-r--r-- | Source/Core/AbsyCmd.cs | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/Source/Core/AbsyCmd.cs b/Source/Core/AbsyCmd.cs index 231ae272..746e70c0 100644 --- a/Source/Core/AbsyCmd.cs +++ b/Source/Core/AbsyCmd.cs @@ -2664,11 +2664,6 @@ namespace Microsoft.Boogie { {
result = LiteralExpr.And(result, c);
result.Type = Type.Bool;
- var nAryExpr = result as NAryExpr;
- if (nAryExpr != null)
- {
- nAryExpr.TypeParameters = SimpleTypeParamInstantiation.EMPTY;
- }
}
else
{
@@ -2757,6 +2752,26 @@ namespace Microsoft.Boogie { public Expr OrigExpr;
public Dictionary<Variable, Expr> IncarnationMap;
+ Expr verifiedUnder;
+ public Expr VerifiedUnder
+ {
+ get
+ {
+ if (verifiedUnder != null)
+ {
+ return verifiedUnder;
+ }
+ verifiedUnder = QKeyValue.FindExprAttribute(Attributes, "verified_under");
+ return verifiedUnder;
+ }
+ }
+
+ public void MarkAsVerifiedUnder(Expr expr)
+ {
+ Attributes = new QKeyValue(tok, "verified_under", new List<object> { expr }, Attributes);
+ verifiedUnder = expr;
+ }
+
// TODO: convert to use generics
private object errorData;
public object ErrorData {
|