~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to src/relooper/Relooper.h

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2014-02-05 18:46:19 UTC
  • mfrom: (4.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20140205184619-bmxq31rw0cd3ar4u
Tags: 1.10.0~20140205~ef1e460-1
* New snapshot release
* Also install cmake / emscripten files. Thanks to Daniele Di Proietto
  for the patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
  BlockBranchMap ProcessedBranchesOut;
58
58
  BlockSet ProcessedBranchesIn;
59
59
  Shape *Parent; // The shape we are directly inside
60
 
  int Id; // A unique identifier, defined when added to relooper
 
60
  int Id; // A unique identifier, defined when added to relooper. Note that this uniquely identifies a *logical* block - if we split it, the two instances have the same content *and* the same Id
61
61
  const char *Code; // The string representation of the code in this block. Owning pointer (we copy the input)
62
62
  const char *BranchVar; // If we have more than one branch out, the variable whose value determines where we go
63
63
  bool IsCheckedMultipleEntry; // If true, we are a multiple entry, so reaching us requires setting the label variable
191
191
  Relooper();
192
192
  ~Relooper();
193
193
 
194
 
  void AddBlock(Block *New);
 
194
  void AddBlock(Block *New, int Id=-1);
195
195
 
196
196
  // Calculates the shapes
197
197
  void Calculate(Block *Entry);