Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
af3
AF3
Commits
34d7096e
Commit
34d7096e
authored
Aug 02, 2012
by
Sebastian Voss
Browse files
adapted YicesTextGenerator, w.r.t to quantifiers
parent
f6775458
Changes
1
Hide whitespace changes
Inline
Side-by-side
org.fortiss.af3.tools/trunk/src/org/fortiss/af3/tools/yices/textgen/YicesTextGenerator.java
View file @
34d7096e
...
...
@@ -66,7 +66,7 @@ import org.fortiss.af3.tools.yices.model.types.YicesTypeBase;
* @author ratiu
* @author $Author: hoelzl $
* @version $Rev: 18709 $
* @ConQAT.Rating GREEN Hash:
3821093B26C7FCA05BAD69FA1A4F326B
* @ConQAT.Rating GREEN Hash:
798C4ED603A0B219119F22E36AC5B0A2
*/
public
class
YicesTextGenerator
implements
ITextGenerator
<
YicesFile
>
{
...
...
@@ -266,7 +266,11 @@ public class YicesTextGenerator implements ITextGenerator<YicesFile> {
private
void
generateText
(
Writer
w
,
Assert
assertCommand
)
throws
IOException
,
UnknownLanguageFragmentException
{
w
.
append
(
"(assert "
);
w
.
append
(
convertExpressionToString
(
assertCommand
.
getExpression
()));
if
(!(
assertCommand
.
getExpression
()
instanceof
Forall
))
{
w
.
append
(
convertExpressionToString
(
assertCommand
.
getExpression
()));
}
else
{
generateText
(
w
,
(
Forall
)
assertCommand
.
getExpression
());
}
w
.
append
(
")\n"
);
}
...
...
@@ -326,10 +330,9 @@ public class YicesTextGenerator implements ITextGenerator<YicesFile> {
}
else
if
(
term
instanceof
SelectTerm
)
{
StringBuffer
sb
=
new
StringBuffer
(
"(select ("
);
SelectTerm
st
=
(
SelectTerm
)
term
;
sb
.
append
(
st
.
getIdentifier
()
+
") "
+
st
.
getField
()
+
")"
);
return
sb
.
toString
();
}
else
if
(
term
instanceof
Function
)
{
StringBuffer
sb
=
new
StringBuffer
(
"("
);
Function
function
=
(
Function
)
term
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment