コード例 #1
0
    def actions_before_verification(self, symbiotic):
        if self._use_llvm_backend:
            return

        output = symbiotic.curfile + '.c'
        runcmd(['llvm2c', symbiotic.curfile, '--o', output], DbgWatch('all'))
        symbiotic.curfile = output
コード例 #2
0
ファイル: twols.py プロジェクト: IMULMUL/symbiotic
 def actions_before_verification(self, symbiotic):
     # link our specific funs
     self._options.linkundef = ['verifier']
     symbiotic.link_undefined(
         only_func=['__VERIFIER_silent_exit', '__VERIFIER_exit'])
     self._options.linkundef = []
     # translate to C
     output = symbiotic.curfile + '.c'
     runcmd(['llvm2c', symbiotic.curfile, '--add-includes', '--o', output],
            DbgWatch('all'))
     symbiotic.curfile = output
コード例 #3
0
 def actions_before_verification(self, symbiotic):
     # link our specific funs
     old_undf = self._options.linkundef
     self._options.linkundef = ['verifier']
     funs = ['__VERIFIER_silent_exit', '__VERIFIER_exit',
             '__INSTR_check_nontermination', '__INSTR_fail']
     symbiotic.link_undefined(only_func=funs)
     self._options.linkundef = old_undf
     # translate to C
     output = symbiotic.curfile + '.c'
     runcmd(['llvm2c', symbiotic.curfile, '--add-includes', '--o', output],
             DbgWatch('all'))
     symbiotic.curfile = output
コード例 #4
0
    def actions_before_verification(self, symbiotic):
        # link our specific funs
        self._options.linkundef = ['verifier']
        symbiotic.link_undefined(
            only_func=['__VERIFIER_silent_exit', '__VERIFIER_exit'])
        self._options.linkundef = []

        if self._use_llvm_backend:
            return

        output = symbiotic.curfile + '.c'
        runcmd([
            'llvm2c', symbiotic.curfile, '--no-function-call-casts', '--o',
            output
        ], DbgWatch('all'))
        symbiotic.curfile = output
コード例 #5
0
 def actions_before_verification(self, symbiotic):
     output = symbiotic.curfile + '.c'
     runcmd(['llvm2c', symbiotic.curfile, '--o', output],
             DbgWatch('all'))
     symbiotic.curfile = output