summaryrefslogtreecommitdiff
path: root/Source/Core/AbsyCmd.ssc
diff options
context:
space:
mode:
authorGravatar mkawa <unknown>2009-12-05 06:31:24 +0000
committerGravatar mkawa <unknown>2009-12-05 06:31:24 +0000
commit786e335fbfe03ca283fd9dd784251802f6a88f19 (patch)
tree6cb619cc83015da3fed3d07948c766fd0370b5ad /Source/Core/AbsyCmd.ssc
parent484464cefdef3c894a2b831e8628b370e3554b90 (diff)
Z3 parameters to help it bail out of fruitless searches faster
print _all_ the attributes of an assert this time add simpletypes to the visitor
Diffstat (limited to 'Source/Core/AbsyCmd.ssc')
-rw-r--r--Source/Core/AbsyCmd.ssc10
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/Core/AbsyCmd.ssc b/Source/Core/AbsyCmd.ssc
index de40c2e8..723b40e3 100644
--- a/Source/Core/AbsyCmd.ssc
+++ b/Source/Core/AbsyCmd.ssc
@@ -2022,11 +2022,17 @@ namespace Microsoft.Boogie
public override void Emit(TokenTextWriter! stream, int level)
{
stream.Write(this, level, "assert ");
- if (this.Attributes != null)
- this.Attributes.Emit(stream);
+ EmitAttributes(stream);
this.Expr.Emit(stream);
stream.WriteLine(";");
}
+ protected void EmitAttributes(TokenTextWriter! stream)
+ {
+ for (QKeyValue kv = this.Attributes; kv != null; kv = kv.Next) {
+ kv.Emit(stream);
+ stream.Write(" ");
+ }
+ }
public override void Typecheck(TypecheckingContext! tc)
{
Expr.Typecheck(tc);