Packages

object TAC extends ProjectsAnalysisApplication

Creates the three-address representation for some method(s) and prints it to std out or writes it to a file.

Source
TAC.scala
Example:
  1. To convert all files of a project to the AI based three-address code, you can use:

    import org.opalj.io.write
    import org.opalj.util.PerformanceEvaluation.time
    import org.opalj.tac._
    val f = new java.io.File("OPAL/bi/target/scala-2.12/resource_managed/test/ai.jar")
    val p = org.opalj.br.analyses.Project(f)
    var i = 0
    val errors = time {
      p.parForeachMethodWithBody(parallelizationLevel=32){ mi =>
        val TACode(code,cfg,ehs,_) = org.opalj.tac.TACAI(p,mi.method)()
        val tac = ToTxt(code, Some(cfg))
        val fileNamePrefix = mi.classFile.thisType.toJava+"."+mi.method.name
        val file = write(tac, fileNamePrefix, ".tac.txt")
        i+= 1
        println(i+":"+file)
      }
    }(t => println("transformation time: "+t.toSeconds))
    if(errors.nonEmpty) println(errors.mkString("\n"))
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TAC
  2. ProjectsAnalysisApplication
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type ConfigType = TACConfig
    Attributes
    protected
    Definition Classes
    TACProjectsAnalysisApplication
  2. class TACConfig extends MultiProjectAnalysisConfig with AIBasedCommandLineConfig
    Attributes
    protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def analyze(cp: Iterable[File], analysisConfig: ConfigType, execution: Int): (Project[URL], ReportableAnalysisResult)
    Attributes
    protected
    Definition Classes
    ProjectsAnalysisApplication
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  7. def createConfig(args: Array[String]): TACConfig
    Attributes
    protected
    Definition Classes
    TACProjectsAnalysisApplication
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def evaluate(cp: Iterable[File], analysisConfig: TACConfig, execution: Int): Unit
    Attributes
    protected
    Definition Classes
    TACProjectsAnalysisApplication
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def main(args: Array[String]): Unit
    Definition Classes
    ProjectsAnalysisApplication
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  18. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  19. def toString(): String
    Definition Classes
    AnyRef → Any
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped