Java Doc for ICSTranslation.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.ICSTranslation

ICSTranslation
public class ICSTranslation extends DecProcTranslation (Code)


Field Summary
final protected static  intBOOLEAN
    
final protected static  intFUNCTION
    
final protected static  intNONE
    
final protected static  intPREDICATE
    
protected static  StringTRUEVAL
    
static  Loggerlogger
    
final protected  HashSetsigTable
    
final protected  StringBuffersignatures
    

Constructor Summary
public  ICSTranslation(Sequent sequent, ConstraintSet cs, SetOfMetavariable localmv, Services services)
     Just a constructor which starts the conversion to Simplify syntax.

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. This is Simplify stuff.
final protected  StringBuffergetUniqueVariableName(Operator op)
    
final protected  StringBufferprintlastfirst(Term t)
     For some terms (AttributeOps) the order in KeY is different than the order of the user or Simplify expects.
final 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(Semisequent ss, int skolemization)
     Translates the given Semisequent into "ICS" input syntax and returns the resulting StringBuffer sb.
final protected  StringBuffertranslate(ConstrainedFormula cf, int skolemization, boolean overWriteUsed)
     Translates the given ConstrainedFormula into "ICS" input and returns the resulting StringBuffer sb.
Parameters:
  cf - the ConstrainedFormula which should be written in ICS syntax
Parameters:
  skolemization - Indicates whether the formula is in the ANTECEDENT, SUCCEDENTor with YESNOT if a "not" operation occurres above the termwhich will prevent skolemization ("not"s are not counted).
Parameters:
  overWriteUsed - the ConstrainedFormulas generated in the modulo replacementprocess are not "used" elsewhere.
final protected  StringBuffertranslate(Term term, int skolemization, Vector quantifiedVars)
     Translates the given term into "ICS" input syntax and and returns the resulting StringBuffer sb.
Parameters:
  term - the Term which should be written in Simplify syntax
Parameters:
  skolemization - Indicates whether the formula is in the ANTECEDENT, SUCCEDENTor with YESNOT if a "not" operation occurres above the termwhich will prevent skolemization ("not"s are not counted).
Parameters:
  quantifiedVars - a Vector containing all variables that have been bound insuper-terms.
final protected  StringBuffertranslateAttributeOpTerm(Term term, int skolemization, Vector quantifiedVars)
     Takes an AttributeOp like a.b and translates into a_1(b_2)
Parameters:
  term - The term to be converted.
Parameters:
  skolemization - Indicates whether the formula is in the ANTECEDENT, SUCCEDENTor with YESNOT if a "not" operation occurres above the termwhich will prevent skolemization ("not"s are not counted).
Parameters:
  quantifiedVars - a Vector containing all variables that have been bound insuper-terms.
final protected  StringBuffertranslateBinaryInfixTerm(Term term, String name, int brackets, int skolemization, Vector quantifiedVars)
     Takes a binary infix-term and translates it with its arguments into the ICS syntax.
final protected  StringtranslateLimitTerm(String name)
    
final protected  StringBuffertranslatePrefixTerm(Term term, String name, int brackets, int skolemization, Vector quantifiedVars)
     Takes a prefix-term and translates it with its arguments into the ICS syntax.
protected  StringBuffertranslateUnknown(Term term, int skolemization)
     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.
final protected  StringBuffertranslateVariable(Operator op)
     Used to give a variable (program, logic, meta) a unique name.
final protected  StringBufferuninterpretedTerm(Term term, boolean modRenaming)
     Takes a term which is ICS not capable of handling.

Field Detail
BOOLEAN
final protected static int BOOLEAN(Code)



FUNCTION
final protected static int FUNCTION(Code)



NONE
final protected static int NONE(Code)



PREDICATE
final protected static int PREDICATE(Code)



TRUEVAL
protected static String TRUEVAL(Code)



logger
static Logger logger(Code)



sigTable
final protected HashSet sigTable(Code)



signatures
final protected StringBuffer signatures(Code)




Constructor Detail
ICSTranslation
public ICSTranslation(Sequent sequent, ConstraintSet cs, SetOfMetavariable localmv, Services services) throws SimplifyException(Code)
Just a constructor which starts the conversion to Simplify syntax. The result can be fetched with @see 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 introducedafter the last branch.




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. This is Simplify stuff. What does it do here? TOD
Parameters:
  name - The name of the predicate (no KeY representation of it has to exist, sometimes constructs not supported by ICS are mapped to predicates).
Parameters:
  arity - The arity of the term.



getUniqueVariableName
final protected StringBuffer getUniqueVariableName(Operator op)(Code)
produces a unique name for the given Variable, with a unique hashcode and without characters ICS does not understand
Parameters:
  op - The variable to get a new name.



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 in reverse order compared to the internal order in KeY



produceClosure
final 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. This method is completely useless at the moment since ICS cannot handle quantifiers yet.
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)
Translates the given sequent into "ICS" input syntax
Parameters:
  s - the Sequent which should be written in ICS syntax the translated version of s



translate
final protected StringBuffer translate(Semisequent ss, int skolemization) throws SimplifyException(Code)
Translates the given Semisequent into "ICS" input syntax and returns the resulting StringBuffer sb.
Parameters:
  ss - the SemiSequent which should be written in ICS syntax
Parameters:
  skolemization - Indicates whether the formula is in the ANTECEDENT, SUCCEDENT or with YESNOT if a "not" operation occurres above the term which will prevent skolemization ("not"s are not counted).



translate
final protected StringBuffer translate(ConstrainedFormula cf, int skolemization, boolean overWriteUsed) throws SimplifyException(Code)
Translates the given ConstrainedFormula into "ICS" input and returns the resulting StringBuffer sb.
Parameters:
  cf - the ConstrainedFormula which should be written in ICS syntax
Parameters:
  skolemization - Indicates whether the formula is in the ANTECEDENT, SUCCEDENTor with YESNOT if a "not" operation occurres above the termwhich will prevent skolemization ("not"s are not counted).
Parameters:
  overWriteUsed - the ConstrainedFormulas generated in the modulo replacementprocess are not "used" elsewhere. This can be compensated withthis flag.



translate
final protected StringBuffer translate(Term term, int skolemization, Vector quantifiedVars) throws SimplifyException(Code)
Translates the given term into "ICS" input syntax and and returns the resulting StringBuffer sb.
Parameters:
  term - the Term which should be written in Simplify syntax
Parameters:
  skolemization - Indicates whether the formula is in the ANTECEDENT, SUCCEDENTor with YESNOT if a "not" operation occurres above the termwhich will prevent skolemization ("not"s are not counted).
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.



translateAttributeOpTerm
final protected StringBuffer translateAttributeOpTerm(Term term, int skolemization, Vector quantifiedVars) throws SimplifyException(Code)
Takes an AttributeOp like a.b and translates into a_1(b_2)
Parameters:
  term - The term to be converted.
Parameters:
  skolemization - Indicates whether the formula is in the ANTECEDENT, SUCCEDENTor with YESNOT if a "not" operation occurres above the termwhich will prevent skolemization ("not"s are not counted).
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



translateBinaryInfixTerm
final protected StringBuffer translateBinaryInfixTerm(Term term, String name, int brackets, int skolemization, Vector quantifiedVars) throws SimplifyException(Code)
Takes a binary infix-term and translates it with its arguments into the ICS syntax. Examples are x > y, [x | y]
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:
  brackets - logical terms can (and should) be put into brackets (if theyare composite), function terms into rounded parantheses;indicate that with one of NONE, BOOLEAN, FUNCTION or PREDICATE
Parameters:
  skolemization - Indicates whether the formula is in the ANTECEDENT, SUCCEDENTor with YESNOT if a "not" operation occurres above the termwhich will prevent skolemization ("not"s are not counted).
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



translateLimitTerm
final protected String translateLimitTerm(String name)(Code)

Parameters:
  name - The name of the term



translatePrefixTerm
final protected StringBuffer translatePrefixTerm(Term term, String name, int brackets, int skolemization, Vector quantifiedVars) throws SimplifyException(Code)
Takes a prefix-term and translates it with its arguments into the ICS syntax. Examples are x, f(x), f(x, y)
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:
  brackets - logical terms can (and should) be put into brackets (if theyare composite), function terms into rounded parantheses;indicate that with one of NONE, BOOLEAN, FUNCTION or PREDICATE
Parameters:
  skolemization - Indicates whether the formula is in the ANTECEDENT, SUCCEDENTor with YESNOT if a "not" operation occurres above the termwhich will prevent skolemization ("not"s are not counted).
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, int skolemization) 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
Parameters:
  skolemization - dto. new StringBuffer();
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)
Takes a term which is ICS not capable of handling. This term is translated into a predicate.
Parameters:
  term - the Term ICS cannot handle directly
Parameters:
  modRenaming - true iff equality should be modulo renaming or not. This willresult in the same names, if just the free variables aredifferent, but the rest isn't.



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.