MSCP-A: examples of the supercompilation

How to understand the examples?


Example list:

  • Follow this link for the experiments on specialization of the word equation interpreters by the supercompiler SCP4.

Example #1 (Fabc):

The input and the residual program


Example #2 (Fabc (finite alphabet)):

The input and the residual program


Example #3 (SqSum):

The input and the residual program


Example #4 (Fibonacci):

The input and the residual program


Example #5 (Prefix):

The input and the residual program


Example #6 (Prefix2):

The input and the residual program


Example #7 (Prefix of A's):

The input and the residual program


Example #8 (Prefix Plus AB):

The input and the residual program


Example #9 (Equations as a condition):

The input and the residual program


Example #10 (Correct protocol with a loop):

The input and the residual program


Example #11 (Incorrect protocol with a loop):

The input and the residual program


Example #12 (Pushing equations while generalizing):

The input and the residual program


Example #13 (More using equations while generalizing ):

The input and the residual program


Example #14 (Proving properties of Fibonacci words):

The input and the residual program


Example #15 (Generalization of negative restrictions ):

The input and the residual program


Example #16 (Exhaustive deletion 1 ):

The input and the residual program


Example #17 (Exhaustive deletion 2 ):

The input and the residual program


Example #18 (CheckForB)

The input and the residual program


Example #19 (CheckForB2)

The input and the residual program


Example #20 (Word Equations)

The input and the residual program


Example #21 (InfCall)

The input and the residual program


Example #22 (PalAB)

The input and the residual program


Example #23 (Not only 'A'-s):

The input and the residual program


Example #24 (Thinh et al test):

The input and the residual program


Example #25 (Abdulla et al test):

The input and the residual program


Example #26 (Open variables test):

The input and the residual program


Example #27 (Non-quadratic equations test):

The input and the residual program


Example #28 (Incorrect sanitization):

The input and the residual program


Example #29 (Correct sanitization – ip):

The input and the residual program


Example #30 (Correct sanitization – brackets):

The input and the residual program


Example #31 (Correct sanitization – ip and no blanks):

The input and the residual program


Example #32 (Correct but silly sanitization):

The input and the residual program


Example #33 (Guarnieri et al test):

The input and the residual program


Example #34 (Square subword):

The input and the residual program


Example #35 (Naive matching to KMP):

The input and the residual program


Example #36 (Commutativity of the addition):

The input and the residual program


Example #37 (Interpretation of Zip function):

The input and the residual program


Example #38 (Word equations interpreter – xAy = yBx):

The input and the residual program


Example #39 (Word equations interpreter – ABxy = xyBA):

The input and the residual program


Example #40 (Word equations interpreter – xAy = zzz):

The input and the residual program


Example #41 (Word equations interpreter – zAByx = yzxBA):

The input and the residual program