Skip to content

Commit

Permalink
move test about hypergraph and rule to archive/
Browse files Browse the repository at this point in the history
  • Loading branch information
xieyuheng committed Apr 21, 2024
1 parent 0ddf562 commit 2ca2f6c
Show file tree
Hide file tree
Showing 27 changed files with 1 addition and 38 deletions.
4 changes: 1 addition & 3 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
update to esmodule

remove rule support

remove hypergraph support

- move test about hypergraph to docs/archive
- remove "sjcl"

fix repl for windows
update to esmodule

# chimera

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
21 changes: 0 additions & 21 deletions docs/tests/basic/function-print.ch
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,6 @@ function f() {
return [x, y]
}

hyperrule ABC {
["a", "b"] => ["c"]
["a", "c"] => ["b"]
["b", "c"] => ["a"]
}

print hyperrewrite(ABC, quote ["a", "a", "a"])

rule conjunctiveNormalForm {
not(not(x)) => quote x
not(and(x, y)) => quote or(not(x), not(y))
not(or(x, y)) => quote and(not(x), not(y))
or(and(x, y), z) => quote and(or(x, z), or(y, z))
or(x, and(y, z)) => quote and(or(x, y), or(x, z))
}

print rewrite(
conjunctiveNormalForm,
quote not(and(not(A), not(B))),
)

if false {
print 0
} else if false {
Expand Down
14 changes: 0 additions & 14 deletions docs/tests/basic/function-print.ch.out
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,6 @@
function f(x, y) {
return [x, y]
}
hyperrule ABC {
["a", "b"] => ["c"]
["a", "c"] => ["b"]
["b", "c"] => ["a"]
}
print hyperrewrite(ABC, quote ["a", "a", "a"])
rule conjunctiveNormalForm {
not(not(x)) => quote x
not(and(x, y)) => quote or(not(x), not(y))
not(or(x, y)) => quote and(not(x), not(y))
or(and(x, y), z) => quote and(or(x, z), or(y, z))
or(x, and(y, z)) => quote and(or(x, y), or(x, z))
}
print rewrite(conjunctiveNormalForm, quote not(and(not(A), not(B))))
if false {
print 0
} else if false {
Expand Down

0 comments on commit 2ca2f6c

Please sign in to comment.