Ejemplo n.º 1
0
 def initialize_serapi(self):
     serapi = SerAPI(timeout=1200)
     if self.with_hammer is not None:
         atp_limit = 29 * self.hammer_timeout // 60
         reconstr_limit = 28 * self.hammer_timeout // 60
         crush_limit = 3 * self.hammer_timeout // 60
         serapi.execute(
             'From Hammer Require Import Hammer. Set Hammer ATPLimit %d. Set Hammer ReconstrLimit %d. Set Hammer CrushLimit %d.'
             % (atp_limit, reconstr_limit, crush_limit))
         if self.with_hammer == 'Z3':
             serapi.execute(
                 'Unset Hammer Vampire. Unset Hammer Eprover. Unset Hammer CVC4.'
             )
         elif self.with_hammer == 'Vampire':
             serapi.execute(
                 'Unset Hammer Z3. Unset Hammer Eprover. Unset Hammer CVC4.'
             )
         elif self.with_hammer == 'Eprover':
             serapi.execute(
                 'Unset Hammer Z3. Unset Hammer Vampire. Unset Hammer CVC4.'
             )
         elif self.with_hammer == 'CVC4':
             serapi.execute(
                 'Unset Hammer Z3. Unset Hammer Vampire. Unset Hammer Eprover.'
             )
         else:
             assert self.with_hammer == 'All'
     return serapi
Ejemplo n.º 2
0
 def initialize_serapi(self):
     serapi = SerAPI(timeout=1200)
     if self.with_hammer is not None:
         atp_limit = 29 * self.hammer_timeout // 60
         reconstr_limit = 28 * self.hammer_timeout // 60
         crush_limit = 3 * self.hammer_timeout // 60
         serapi.execute(
             "From Hammer Require Import Hammer. Set Hammer ATPLimit %d. Set Hammer ReconstrLimit %d. Set Hammer CrushLimit %d."
             % (atp_limit, reconstr_limit, crush_limit)
         )
         if self.with_hammer == "Z3":
             serapi.execute(
                 "Unset Hammer Vampire. Unset Hammer Eprover. Unset Hammer CVC4."
             )
         elif self.with_hammer == "Vampire":
             serapi.execute(
                 "Unset Hammer Z3. Unset Hammer Eprover. Unset Hammer CVC4."
             )
         elif self.with_hammer == "Eprover":
             serapi.execute(
                 "Unset Hammer Z3. Unset Hammer Vampire. Unset Hammer CVC4."
             )
         elif self.with_hammer == "CVC4":
             serapi.execute(
                 "Unset Hammer Z3. Unset Hammer Vampire. Unset Hammer Eprover."
             )
         else:
             assert self.with_hammer == "All"
     return serapi