Java Doc for SimplifyTranslation.java in  » Testing » KeY » de » uka » ilkd » key » proof » decproc » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Testing » KeY » de.uka.ilkd.key.proof.decproc 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   de.uka.ilkd.key.proof.decproc.DecProcTranslation
      de.uka.ilkd.key.proof.decproc.SimplifyTranslation

SimplifyTranslation
public class SimplifyTranslation extends DecProcTranslation (Code)

author:
   daniels
author:
   The class responsible for converting a sequent into the Simplify input language.
author:
   It is public because ASM-KeY inherits form it to provide a version suppporting
author:
   asm operators.


Field Summary
static  Loggerlogger
    

Constructor Summary
public  SimplifyTranslation(Sequent sequent, ConstraintSet cs, SetOfMetavariable localmv, Services services, boolean lightWeight)
     Just a constructor which starts the conversion to Simplify syntax.
public  SimplifyTranslation(Sequent sequent, ConstraintSet cs, SetOfMetavariable localmv, Services services)
    
public  SimplifyTranslation(Services s)
     For translating only terms and not complete sequents.

Method Summary
final protected  voidaddPredicate(String name, int arity)
     Adds a predicate to the internal set and adds a line to declare the predicate to the declarator stringbuffer.
final protected  StringBuffergetUniqueVariableName(Named op)
     produces a unique name for the given Variable, enclosed in '|' and with a unique hashcode.
protected  StringBufferopNotKnownWarning(Term term)
    
final protected  StringBufferprintlastfirst(Term t)
     For some terms (AttributeOps) the order in KeY is different than the order of the user or Simplify expects.
protected  StringproduceClosure(StringBuffer s)
     Goes through the collected metavariables and quantifies them with universal-quantifieres if they are global and with existential quantifiers if they are local.
final protected  StringBuffertranslate(Sequent sequent)
    
final protected  StringBuffertranslate(Sequent sequent, boolean lightWeight)
     Translates the given sequent into "Simplify" input syntax and adds the resulting string to the StringBuffer sb.
final protected  StringBuffertranslate(Semisequent ss, int skolemization)
    
final protected  StringBuffertranslate(Semisequent ss, int skolemization, boolean lightWeight)
     Translates the given Semisequent into "Simplify" input syntax and adds the resulting string to the StringBuffer sb.
final protected  StringBuffertranslate(ConstrainedFormula cf, boolean lightWeight)
     Translates the given ConstrainedFormula into "Simplify" input syntax and adds the resulting string to the StringBuffer sb.
final public  StringBuffertranslate(Term term, Vector quantifiedVars)
     Translates the given term into "Simplify" input syntax and adds the resulting string to the StringBuffer sb.
Parameters:
  term - the Term which should be written in Simplify syntax
Parameters:
  quantifiedVars - a Vector containing all variables that have been bound insuper-terms.
final protected  StringBuffertranslate(Term term, int skolemization, Vector quantifiedVars)
    
final protected  StringBuffertranslateAttributeOpTerm(Term term, Vector quantifiedVars)
     Takes an AttributeOp and translates it into the Simplify syntax.
Parameters:
  term - The term to be converted.
Parameters:
  quantifiedVars - a Vector containing all variables that have been bound insuper-terms.
final protected  StringBuffertranslateSimpleTerm(Term term, String name, Vector quantifiedVars)
     Takes a term and translates it with its argument in the Simplify syntax.
Parameters:
  term - The term to be converted.
Parameters:
  name - The name that should be used for the term (should be unique,it should be taken care of that somewhere else (if desired)).
Parameters:
  quantifiedVars - a Vector containing all variables that have been bound insuper-terms.
final protected  StringBuffertranslateUnaryMinus(Term term, String name, Vector quantifiedVars)
     Translates the unary minus ~m into a "0 -" construct.
protected  StringBuffertranslateUnknown(Term term)
     Takes care of sequent tree parts that were not matched in translate(term, skolemization).
final protected  StringBuffertranslateVariable(Operator op)
     Used to give a variable (program, logic, meta) a unique name.
final protected  StringBufferuninterpretedTerm(Term term, boolean modRenaming)
    

Field Detail
logger
static Logger logger(Code)




Constructor Detail
SimplifyTranslation
public SimplifyTranslation(Sequent sequent, ConstraintSet cs, SetOfMetavariable localmv, Services services, boolean lightWeight) throws SimplifyException(Code)
Just a constructor which starts the conversion to Simplify syntax. The result can be fetched with
See Also:    getText-
Parameters:
  sequent - The sequent which shall be translated.
Parameters:
  cs - The constraints which shall be incorporated.
Parameters:
  localmv - The local metavariables, should be the ones introduced afterthe last branch.



SimplifyTranslation
public SimplifyTranslation(Sequent sequent, ConstraintSet cs, SetOfMetavariable localmv, Services services) throws SimplifyException(Code)



SimplifyTranslation
public SimplifyTranslation(Services s) throws SimplifyException(Code)
For translating only terms and not complete sequents.




Method Detail
addPredicate
final protected void addPredicate(String name, int arity)(Code)
Adds a predicate to the internal set and adds a line to declare the predicate to the declarator stringbuffer.
Parameters:
  name - The name of the predicate (no KeY representation jas toexist).
Parameters:
  arity - The arity of the term.



getUniqueVariableName
final protected StringBuffer getUniqueVariableName(Named op)(Code)
produces a unique name for the given Variable, enclosed in '|' and with a unique hashcode.
Parameters:
  op - The variable to get a new name.



opNotKnownWarning
protected StringBuffer opNotKnownWarning(Term term) throws SimplifyException(Code)



printlastfirst
final protected StringBuffer printlastfirst(Term t)(Code)
For some terms (AttributeOps) the order in KeY is different than the order of the user or Simplify expects. the simplified version of the Term t in reversed order
Parameters:
  t - the Term which should be written in Simplify syntax, but inreverse order compared to the internal order in KeY



produceClosure
protected String produceClosure(StringBuffer s)(Code)
Goes through the collected metavariables and quantifies them with universal-quantifieres if they are global and with existential quantifiers if they are local.
Parameters:
  s - The StringBuffer the quantifieres shall be pre- and the trailing parantheses be appended.



translate
final protected StringBuffer translate(Sequent sequent) throws SimplifyException(Code)



translate
final protected StringBuffer translate(Sequent sequent, boolean lightWeight) throws SimplifyException(Code)
Translates the given sequent into "Simplify" input syntax and adds the resulting string to the StringBuffer sb.
Parameters:
  s - the Sequent which should be written in Simplify syntax



translate
final protected StringBuffer translate(Semisequent ss, int skolemization) throws SimplifyException(Code)



translate
final protected StringBuffer translate(Semisequent ss, int skolemization, boolean lightWeight) throws SimplifyException(Code)
Translates the given Semisequent into "Simplify" input syntax and adds the resulting string to the StringBuffer sb.
Parameters:
  ss - the SemiSequent which should be written in Simplify syntax
Parameters:
  antesucc - true for antecedent, false for succedent



translate
final protected StringBuffer translate(ConstrainedFormula cf, boolean lightWeight) throws SimplifyException(Code)
Translates the given ConstrainedFormula into "Simplify" input syntax and adds the resulting string to the StringBuffer sb.
Parameters:
  cf - the ConstrainedFormula which should be written in Simplifysyntax



translate
final public StringBuffer translate(Term term, Vector quantifiedVars) throws SimplifyException(Code)
Translates the given term into "Simplify" input syntax and adds the resulting string to the StringBuffer sb.
Parameters:
  term - the Term which should be written in Simplify syntax
Parameters:
  quantifiedVars - a Vector containing all variables that have been bound insuper-terms. It is only used for the translation of moduloterms, but must be looped through until we get there.



translate
final protected StringBuffer translate(Term term, int skolemization, Vector quantifiedVars) throws SimplifyException(Code)
Used just to be called from DecProcTranslation
See Also:   de.uka.ilkd.key.proof.decproc.DecProcTranslation.translate(de.uka.ilkd.key.logic.Termint)



translateAttributeOpTerm
final protected StringBuffer translateAttributeOpTerm(Term term, Vector quantifiedVars) throws SimplifyException(Code)
Takes an AttributeOp and translates it into the Simplify syntax.
Parameters:
  term - The term to be converted.
Parameters:
  quantifiedVars - a Vector containing all variables that have been bound insuper-terms. It is only used for the translation of moduloterms, but must be looped through until we get there.



translateSimpleTerm
final protected StringBuffer translateSimpleTerm(Term term, String name, Vector quantifiedVars) throws SimplifyException(Code)
Takes a term and translates it with its argument in the Simplify syntax.
Parameters:
  term - The term to be converted.
Parameters:
  name - The name that should be used for the term (should be unique,it should be taken care of that somewhere else (if desired)).
Parameters:
  quantifiedVars - a Vector containing all variables that have been bound insuper-terms. It is only used for the translation of moduloterms, but must be looped through until we get there.



translateUnaryMinus
final protected StringBuffer translateUnaryMinus(Term term, String name, Vector quantifiedVars) throws SimplifyException(Code)
Translates the unary minus ~m into a "0 -" construct. Could be solved better with a newly created term!!!
Parameters:
  term - The term to be converted.
Parameters:
  name - The name that should be used for the term (should be unique,it should be taken care of that somewhere else (if desired)).
Parameters:
  quantifiedVars - a Vector containing all variables that have been bound insuper-terms. It is only used for the translation of moduloterms, but must be looped through until we get there.



translateUnknown
protected StringBuffer translateUnknown(Term term) throws SimplifyException(Code)
Takes care of sequent tree parts that were not matched in translate(term, skolemization). In this class it just produces a warning, nothing more. It is provided as a hook for subclasses.
Parameters:
  term - The Term given to translate
throws:
  SimplifyException -



translateVariable
final protected StringBuffer translateVariable(Operator op)(Code)
Used to give a variable (program, logic, meta) a unique name.
Parameters:
  op - The variable to be translated/renamed.



uninterpretedTerm
final protected StringBuffer uninterpretedTerm(Term term, boolean modRenaming)(Code)



Fields inherited from de.uka.ilkd.key.proof.decproc.DecProcTranslation
final protected static int ANTECEDENT(Code)(Java Doc)
final protected static int SUCCEDENT(Code)(Java Doc)
final protected static int YESNOT(Code)(Java Doc)
final protected ConstraintSet constraintSet(Code)(Java Doc)
final protected SetOfMetavariable localMetavariables(Code)(Java Doc)
final protected List moduloConstraints(Code)(Java Doc)
protected int moduloCounter(Code)(Java Doc)
final protected HashMap moduloReplacements(Code)(Java Doc)
static Logger nogger(Code)(Java Doc)
final protected StringBuffer notes(Code)(Java Doc)
final protected StringBuffer predicate(Code)(Java Doc)
final protected Set predicateSet(Code)(Java Doc)
final protected Services services(Code)(Java Doc)
protected String text(Code)(Java Doc)
final protected HashSet usedGlobalMv(Code)(Java Doc)
final protected HashSet usedLocalMv(Code)(Java Doc)
final protected HashMap variableMap(Code)(Java Doc)

Methods inherited from de.uka.ilkd.key.proof.decproc.DecProcTranslation
protected void collectQuantifiedVars(Vector quantifiedVars, Term term)(Code)(Java Doc)
public String getText()(Code)(Java Doc)
public int getUniqueHashCode(Object qv)(Code)(Java Doc)
public int getUniqueHashCodeForUninterpretedTerm(Term term)(Code)(Java Doc)
abstract protected StringBuffer translate(Term term, int skolemization, Vector quantifiedVars) throws SimplifyException(Code)(Java Doc)
abstract protected StringBuffer translate(Sequent sequent) throws SimplifyException(Code)(Java Doc)
abstract protected StringBuffer translate(Semisequent ss, int skolemization) throws SimplifyException(Code)(Java Doc)

Methods inherited from java.lang.Object
protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object o)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
final public void notify() throws IllegalMonitorStateException(Code)(Java Doc)
final public void notifyAll() throws IllegalMonitorStateException(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final public void wait() throws IllegalMonitorStateException, InterruptedException(Code)(Java Doc)
final public void wait(long ms) throws IllegalMonitorStateException, InterruptedException(Code)(Java Doc)
final public void wait(long ms, int ns) throws IllegalMonitorStateException, InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.