diff options
author | mikebarnett <unknown> | 2011-03-07 05:15:14 +0000 |
---|---|---|
committer | mikebarnett <unknown> | 2011-03-07 05:15:14 +0000 |
commit | 241de8264a32285d371a53d8d91a219625d76922 (patch) | |
tree | bde7c8c1dead587fc23a131810cf32779d7e9c8f /Source/VCExpr/SimplifyLikeLineariser.cs | |
parent | 0cd15d2b78a68bcdc566b31d53287f63625560e7 (diff) |
Fix contracts so runtime checking can be turned on.
Diffstat (limited to 'Source/VCExpr/SimplifyLikeLineariser.cs')
-rw-r--r-- | Source/VCExpr/SimplifyLikeLineariser.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/VCExpr/SimplifyLikeLineariser.cs b/Source/VCExpr/SimplifyLikeLineariser.cs index 45eeda43..c907bd9f 100644 --- a/Source/VCExpr/SimplifyLikeLineariser.cs +++ b/Source/VCExpr/SimplifyLikeLineariser.cs @@ -335,14 +335,14 @@ namespace Microsoft.Boogie.VCExprAST { public static string StoreOpName(VCExprNAry node) {
Contract.Requires(node != null);
- Contract.Requires((node.Op is VCExprStoreOp));
+ Contract.Requires((node.Op is VCExprSelectOp) || (node.Op is VCExprStoreOp));
Contract.Ensures(Contract.Result<string>() != null);
return "Store_" + TypeToString(node[0].Type);
}
public static string SelectOpName(VCExprNAry node) {
Contract.Requires(node != null);
- Contract.Requires((node.Op is VCExprSelectOp));
+ Contract.Requires((node.Op is VCExprSelectOp) || (node.Op is VCExprStoreOp));
Contract.Ensures(Contract.Result<string>() != null);
return "Select_" + TypeToString(node[0].Type);
}
|