Skip to content

Commit

Permalink
non-shrinkable proof of concept
Browse files Browse the repository at this point in the history
  • Loading branch information
StoneCypher committed Jul 5, 2022
1 parent 86706ce commit 6ea28ba
Show file tree
Hide file tree
Showing 39 changed files with 77 additions and 171 deletions.
Binary file removed docs/assets/TCP IP.png
Binary file not shown.
Binary file not shown.
Binary file removed docs/assets/atm quick start tutorial/1_EjectCard.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed docs/assets/atm quick start tutorial/4_WrongPin.png
Binary file not shown.
Binary file removed docs/assets/atm quick start tutorial/5_RightPin.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed docs/assets/bgp.png
Binary file not shown.
Binary file removed docs/assets/compile time claim.png
Binary file not shown.
Binary file removed docs/assets/doc light styled.png
Binary file not shown.
Binary file removed docs/assets/doc light unstyled.png
Binary file not shown.
Binary file removed docs/assets/eMMC transfer mode.png
Binary file not shown.
Binary file removed docs/assets/editor.png
Binary file not shown.
Binary file removed docs/assets/http 1.0.png
Binary file not shown.
Binary file removed docs/assets/matter states heat cool.png
Binary file not shown.
Binary file removed docs/assets/performance 4.5.1 2015 mac.png
Binary file not shown.
Binary file removed docs/assets/ryg proceed.png
Binary file not shown.
Binary file removed docs/assets/ryg traffic light console screenshot.png
Binary file not shown.
Binary file removed docs/assets/ryg.png
Binary file not shown.
Binary file removed docs/assets/sip.png
Binary file not shown.
Binary file removed docs/assets/speed claim.png
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
42 changes: 21 additions & 21 deletions docs/docs/classes/jssm.Machine.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/docs/classes/jssm_error.JssmError.html

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions docs/docs/modules/jssm.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/docs/modules/jssm_constants.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/docs/modules/jssm_types._internal_.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/docs/modules/jssm_types.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions docs/docs/modules/jssm_util.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/docs/modules/version.html

Large diffs are not rendered by default.

47 changes: 0 additions & 47 deletions docs/index.html

This file was deleted.

72 changes: 0 additions & 72 deletions docs/typedoc-addon.css

This file was deleted.

45 changes: 35 additions & 10 deletions src/ts/tests/kitchen_sink_dragon.maximal.ts
Expand Up @@ -21,6 +21,13 @@ const sm = jssm.sm;



class AtomArb extends fc.NextArbitrary<T> {

generate(mrng, biasFactor): NextValue<T> {
mrng.
}

};



Expand Down Expand Up @@ -66,7 +73,7 @@ describe('Test all the things', () => {
function r_edgetype_1way() { return choose(['-', '-', '-', '-', '-', '=', '=', '~']); }
function r_edgetype_2way() { return choose(['-', '-', '-', '-', '-', '=', '=', '~', '-', '-', '-', '-', '-', '=', '=', '~', '-=', '=-', '-~', '~-', '=~', '~-' ]); }

const has_nodes: Set<string> = new Set();
const has_nodes: string[] = [];

let node_cursor = 0;
function n() { return `n${node_cursor++}`; }
Expand All @@ -76,17 +83,35 @@ describe('Test all the things', () => {
root_edge = shouldHalt? `${r_edgetype_1way()}>` : `<${r_edgetype_2way()}>`,
[wsl,wsr] = [ ws(), ws() ];

has_nodes.add(root1);
has_nodes.add(root2);
has_nodes.push(root1);
has_nodes.push(root2);

let machine_string = `${root1}${wsl}${root_edge}${wsr}${root2};`,
nodes_left = nodes_added;

let this_loop = '';
while (nodes_left) {

const machine_string = `${root1}${wsl}${root_edge}${wsr}${root2};`;
const left = choose(has_nodes),
right = choose(has_nodes);

// let machine;
// nodes_left = nodes_added;
let this_count = r_int(nodes_left-1) + 1,
prev = left;

// while (nodes_left) {
// const this_loop =
// }
nodes_left -= this_count;

while (this_count--) {
const should_chain = this_count? choose([true, true, false]) : false,
new_node = n(),
[wsl,wsr] = [ ws(), ws() ],
arrow = r_edgetype_1way() + '>';
this_loop += `${prev}${wsl}${arrow}${wsr}`;
if (should_chain === false) { this_loop += `${new_node};`; }
prev = new_node;
}
machine_string += this_loop;

}

let machine;
try {
Expand Down Expand Up @@ -117,7 +142,7 @@ describe('Test all the things', () => {

const sh = `${shouldHalt? '' : 'no '}halt`;

test(`${`#${nth++}`.padStart(3)}: ${shouldHalt? 'must ' : ' no-'}halt: ${machine_string}`, () => expect(halted).toBe(shouldHalt) );
test(`${`#${nth++}`.padStart(3)}: ${shouldHalt? 'must ' : ' no-'}halt: ${machine_string.substring(0,25)}`, () => expect(halted).toBe(shouldHalt) );

}
)
Expand Down

0 comments on commit 6ea28ba

Please sign in to comment.