Esempio n. 1
0
 virtual void run(CodeCall *code) {
     // out << '<';
     runAll(code->getTarget(), false);
     out << (code->isExec() ? " " : " of ");
     runAll(code->getArgument(), true);
     // out << '>';
 }
Esempio n. 2
0
//triggers a slot in the assembly class
void MainWindow::on_pushButton_clicked()
{
    if (breakPoint > 0)
    {
        emit runAll(breakPoint);
    }
    else
    {
        emit runAll();
    }
}
Esempio n. 3
0
void MakeSpinPlots::runAll(){
    if(!isSetup) setupDir();
    std::cout << "runAll" << std::endl;
    std::vector<TString>::const_iterator mcIt = mcNames.begin();
    for(; mcIt != mcNames.end(); mcIt++){
        if( TString(ws->data( Form("%s_Combined",mcIt->Data()) )->GetTitle()).CompareTo("type1") != 0 ) continue;
        runAll(*mcIt);
    }
}
Esempio n. 4
0
void MakeSpinPlots::runAll(TString mcName){
    if(!isSetup) setupDir();
    if(ws->var(Form("Data_%s_FULLFIT_Nsig",mcName.Data()))==0) return;
    
    std::vector<TString>::const_iterator catIt = catNames.begin();
    for(; catIt != catNames.end(); catIt++){
        runAll(*catIt,mcName);
    }
    
    DrawSpinSubTotBackground(mcName,false);
    DrawSpinSubTotBackground(mcName,true);
}
Esempio n. 5
0
    inline void putField(const field_t &field) {
        putIndent();
        out << '"' << field.name.id << '"';

        if (field.import) {
            out << " import";
        }

        if (field.hidden) {
            out << " hidden";
        }

        out << " " << (void *) field.code << ": ";
        runAll(field.code, false);
    }
Esempio n. 6
0
 void run() {
   switch (ThinLTOMode) {
   case THINLINK:
     return thinLink();
   case THINPROMOTE:
     return promote();
   case THINIMPORT:
     return import();
   case THINOPT:
     return optimize();
   case THINCODEGEN:
     return codegen();
   case THINALL:
     return runAll();
   }
 }
Esempio n. 7
0
/**
 * SPQR benchmarking implementation
 */
int main() {

  Run run;
  
  c = configSPQR(stdin);
  if (c->errors) {
    freeSPQR(c);
    die("Sorry! Problem(s) with your configuration file.", 1);
  }

  /*  printConfig(c); 
      printf("\n"); */

  run = runAll(initOnce(c));
  printRun(run);

  freeRun(run);
  freeSPQR(c);

  return 0;
}
Esempio n. 8
0
//triggers a slot in the assembly class
void MainWindow::on_pushButton_clicked()
{
    emit runAll();
}
Esempio n. 9
0
//====================================
void runMode(int stop)
//====================================
{
  int ch,x,step,tmp,res=0,a=0,b=0,ir,ok=0,n=0;
  char tempName[80],syscom[120],temp[80];
  char command[40][40];

  strcpy(tempName,"help.txt");

  s_mode = S_RUN;


  if(stop > 1)
    {
      if(stop > g_steps)stop = g_steps;
      //if(stop > currentStep)
	runAll(stop);
      return;
    }

  putMsg(3,"Run Mode. Press h for help.");

  while(1)  
    {
      anyErrors();
      if(g_silent==S_NO )mvwprintw(uno,board_h-2,1,"R%1d>",confWinMode);
      if(g_silent==S_YES)mvwprintw(uno,board_h-2,1,"R%1d<",confWinMode);
      unoInfo();

      if(g_debug == 1) 
	readFile(confSketchFile,g_lineSketch[currentStep]);


      ch = getchar();

      if (ch=='q')
	{
	  return;
	}

      if (ch=='h')
        {
          readMsg(fileInfoRun);
        }
      else if (ch=='c')
        {
          readMsg(currentConf);
        }
      else if (ch=='d')
        {
          readMsg(fileServTime);
        }
      else if(ch=='y' ) // scenario
	{
	  readMsg(fileServScen);
	}
      else if (ch=='x')
	{
	  readMsg(fileServScenario);
	}
      else if (ch=='G')
	{
	  runAll(g_steps);
	}
      else if (ch=='l')
	{
	  showLoops();
	}
      else if (ch=='s')
	{
	  g_debug++;
	  if(g_debug > 1)g_debug = 0;
	}
      else if (ch=='w')
	{
	  confWinMode++;
	  if(confWinMode > WIN_MODES)confWinMode = 0;
          init(confWinMode);
	  mvwprintw(uno,board_h-2,1,"R%1d>",confWinMode);
	  unoInfo();
	}
      else if (ch=='a')
	{
          goStep(1);
	}
      else if (ch=='r')
	{
          goStep(loopStep[currentLoop+1]);
	}
      else if (ch=='o')
	{
          goStep(loopStep[currentLoop]);
	}
      else if (ch=='p')
	{
          goStep(loopStep[currentLoop-1]);
	}
      else if (ch=='z')
	{
          goStep(g_steps);
	}
      else if (ch=='k')
	{
	  resetSim();
	  init(confWinMode);
	  unoInfo();
	  mvwprintw(uno,board_h-2,1,"R%1d>",confWinMode);
	  show(uno);
	}
      else if (ch=='f')// Up Arrow 
	{
	  goStep(currentStep+1);
	}
      else if (ch=='b')// Down Arrow
	{
	  goStep(currentStep-1);
	}
      else if (ch=='R') // Right Arrow
	{
	  runLoop(S_FORWARD);
	}
      else if (ch=='P') // Left Arrow
	{
	  runLoop(S_BACKWARD);
	}
      else if (ch=='t')
	{
	  runNextRead();
	}
      else if (ch=='j')
	{
	  runPrevRead();
	}
      else if (ch=='i') 
	{
          step = currentStep;
	  sprintf(temp,"(Step:%d) Enter: d/a pin value (q - cancel)",step);
          putMsg(2,temp);
	  wgetstr(uno,temp);
	  n = tokCommand(command,temp);
      
	  if(strstr(command[0],"q") == NULL && n == 3)
	    {
	      g_pinNo = atoi(command[1]);
	      x = atoi(command[2]);
	      printf("%s %d %d",command[0],g_pinNo,x);
	      if(strstr(command[0],"a"))
		{
		  ok = ok + checkRange(S_OK,"anapin",g_pinNo);
		  ok = ok + checkRange(S_OK,"anaval",x);
		  g_pinType = ANA;
		}
	      if(strstr(command[0],"d"))
		{
		  ok = ok + checkRange(S_OK,"digpin",g_pinNo);
		  ok = ok + checkRange(S_OK,"digval",x);
		  g_pinType = DIG;
		}
	      if(ok == S_OK)
		{ 
		  g_scenSource = 1;
		  // steps, source, pintype, pinno, pinvalue, pinstep
		  sprintf(syscom,"cd servuino;./servuino %d %d %d %d %d %d %d;",confSteps,g_scenSource,g_pinType,g_pinNo,x,currentStep,S_ADD);
		  tmp=system(syscom);
		  initSim();
		  readSketchInfo();
		  readSimulation();
		  goStep(currentStep);
		  readMsg(fileServScen);
		}
	    }
	  else
	    putMsg(2,"Cancelled!");
	}
      else if (ch=='v') 
	{
          step = currentStep ;
	  sprintf(temp," Enter value to be read at step %d (q - cancel)",step);
          putMsg(2,temp);
	  res = analyzeEvent(simulation[step]);
          if(res > 0)
	    {
	      wgetstr(uno,temp);

	      if(strstr(temp,"q") == NULL)
		{
		  x = atoi(temp); 
		  ok = S_OK;
		  if(res == ANA)ok = ok + checkRange(S_OK,"anaval",x);
		  if(res == DIG)ok = ok + checkRange(S_OK,"digval",x);
		  if(ok == S_OK)
		    {         
		      g_scenSource = 1;
		      // steps, source, pintype, pinno, pinvalue, pinstep
		      sprintf(syscom,"cd servuino;./servuino %d %d %d %d %d %d %d;",confSteps,g_scenSource,g_pinType,g_pinNo,x,currentStep,S_ADD);
		      tmp=system(syscom);
		      initSim();
		      readSketchInfo();
		      readSimulation();
		      goStep(currentStep);
		      readMsg(fileServScen);
		    }
		}
	      else
		putMsg(2,"Cancelled!");
	    }
	  else
	    putMsg(2,"Next step is not a Read event");
	}
      else
	{
	  sprintf(temp,"Unknown command: %c",ch);
	  putMsg(msg_h-2,temp);
	}
    }
  return;
}
Esempio n. 10
0
void PluginManager::loadPlugins(){

    initAll();
    runAll();
}
Esempio n. 11
0
 virtual void run(CodeWith *code) {
     runAll(code->getTarget(), false);
     out << '.';
     runAll(code->getAction(), false);
 }
Esempio n. 12
0
void check(const Model &initialState, Sut &sut, GenFunc &&generationFunc) {
  const auto commands =
      *gen::commands<Command<Model, Sut>>(
          initialState, std::forward<GenFunc>(generationFunc));
  runAll(commands, initialState, sut);
}
Esempio n. 13
0
TestRunner::~TestRunner() {
    if (pImpl->has_run_) return;
    runAll();
    printSummary();
}
void RKCommandEditorWindowPart::initializeActions () {
	RK_TRACE (COMMANDEDITOR);

	runAll = new KAction (i18n ("Run all"), QIconSet (RKCommonFunctions::getRKWardDataDir () + "icons/run_all.png"), KShortcut ("F9"), command_editor, SLOT (runAll()), actionCollection (), "run_all");
	runSelection = new KAction (i18n ("Run selection"), QIconSet (RKCommonFunctions::getRKWardDataDir () + "icons/run_selection.png"), KShortcut ("F8"), command_editor, SLOT (runSelection()), actionCollection (), "run_selection");
	runLine = new KAction (i18n ("Run current line"), QIconSet (RKCommonFunctions::getRKWardDataDir () + "icons/run_line.png"), KShortcut ("Ctrl+L"), command_editor, SLOT (runLine()), actionCollection (), "run_line");

	helpFunction = new KAction (i18n ("&Function reference"), KShortcut ("F2"), command_editor, SLOT (showHelp()), actionCollection (), "function_reference");
}
Esempio n. 15
0
void runAll(const Cmds &commands,
            const typename Cmds::value_type::element_type::Model &state,
            typename Cmds::value_type::element_type::Sut &sut) {
  runAll(commands, fn::constant(state), sut);
}