Ejemplo n.º 1
0
 def getExecutable(self):
     """
     Find the path to the executable file that will get executed.
     This method always needs to be overridden,
     and most implementations will look similar to this one.
     """
     return Util.findExecutable('tool')
Ejemplo n.º 2
0
 def getExecutable(self):
     executable = Util.findExecutable('cpa.sh', 'scripts/cpa.sh')
     executableDir = os.path.join(os.path.dirname(executable),"../")
     if os.path.isdir(os.path.join(executableDir, 'src')):
         self._buildCPAchecker(executableDir)
     if not os.path.isfile(os.path.join(executableDir, "cpachecker.jar")):
         logging.warning("Required JAR file for CPAchecker not found in {0}.".format(executableDir))
     return executable
Ejemplo n.º 3
0
 def getExecutable(self):
     fallback = (
         "lib/native/x86_64-linux/cbmc"
         if platform.machine() == "x86_64"
         else "lib/native/x86-linux/cbmc"
         if platform.machine() == "i386"
         else None
     )
     return Util.findExecutable("cbmc", fallback)
Ejemplo n.º 4
0
    def _prepareSourcefile(self, sourcefile):
        clangExecutable = Util.findExecutable("clang")
        newFilename = sourcefile + ".o"

        subprocess.Popen(
            [clangExecutable, "-c", "-emit-llvm", "-std=gnu89", "-m32", sourcefile, "-O0", "-o", newFilename, "-w"],
            stdout=subprocess.PIPE,
        ).wait()

        return newFilename
Ejemplo n.º 5
0
    def preprocessSourcefile(self, sourcefile):
        gotoCcExecutable      = Util.findExecutable('goto-cc')
        # compile with goto-cc to same file, bith '.cc' appended
        self.preprocessedFile = sourcefile + ".cc"

        subprocess.Popen([gotoCcExecutable,
                            sourcefile,
                            '-o',
                            self.preprocessedFile],
                          stdout=subprocess.PIPE).wait()

        return self.preprocessedFile
Ejemplo n.º 6
0
 def getExecutable(self):
     return Util.findExecutable('ecaverifier')
Ejemplo n.º 7
0
 def getExecutable(self):
     return Util.findExecutable('esbmc')
Ejemplo n.º 8
0
 def getExecutable(self):
     return Util.findExecutable('feaver_cmd')
Ejemplo n.º 9
0
 def getExecutable(self):
     return Util.findExecutable('threader.sh')
Ejemplo n.º 10
0
 def getExecutable(self):
     return Util.findExecutable('ufo.sh')
Ejemplo n.º 11
0
 def getExecutable(self):
     return Util.findExecutable('wolverine')
Ejemplo n.º 12
0
 def getExecutable(self):
     return Util.findExecutable('acsar')
Ejemplo n.º 13
0
 def getExecutable(self):
     return Util.findExecutable("lib/native/x86_64-linux/llbmc")
Ejemplo n.º 14
0
 def getCmdline(self, blastExe, options, sourcefile):
     workingDir = self.getWorkingDirectory(blastExe)
     ocamlExe = Util.findExecutable('ocamltune')
     return [os.path.relpath(ocamlExe, start=workingDir), os.path.relpath(blastExe, start=workingDir)] + options + [sourcefile]
Ejemplo n.º 15
0
 def getExecutable(self):
     return Util.findExecutable('evolcheck_wrapper')
Ejemplo n.º 16
0
 def getExecutable(self):
     return Util.findExecutable('pblast.opt')
Ejemplo n.º 17
0
 def getExecutable(self):
     return Util.findExecutable('satabs')