Skip to content

Commit

Permalink
deterministic egglog and snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
oflatt committed Oct 25, 2024
1 parent 632a356 commit c60308d
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 13 deletions.
9 changes: 8 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name = "files"


[dependencies]
egglog = { git = "https://github.com/egraphs-good/egglog", rev = " 334f9115589cd231227863657e493fcd8304d2f0" }
egglog = { git = "https://github.com/egraphs-good/egglog", rev = "c9727fc816cf81b9974ac5128983abaf05f7611b" }
egraph-serialize = "0.2.0"
log = "0.4.19"
thiserror = "1"
Expand Down
9 changes: 8 additions & 1 deletion dag_in_context/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dag_in_context/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
egglog = { git = "https://github.com/egraphs-good/egglog", rev = " 334f9115589cd231227863657e493fcd8304d2f0" }
egglog = { git = "https://github.com/egraphs-good/egglog", rev = "c9727fc816cf81b9974ac5128983abaf05f7611b" }
strum = "0.25"
strum_macros = "0.25"
main_error = "0.1.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ expression: visualization.result
.b12_:
v13_: bool = eq v7_ v8_;
v14_: int = id v6_;
v15_: int = id v8_;
v16_: int = id v8_;
v15_: int = id v7_;
v16_: int = id v7_;
v17_: int = id v9_;
v18_: int = id v10_;
v19_: int = id v11_;
Expand Down
12 changes: 6 additions & 6 deletions tests/snapshots/files__fib_recursive-optimize.snap
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ expression: visualization.result
br v44_ .b45_ .b46_;
.b45_:
v47_: int = call @fac c2_;
v48_: int = id c39_;
v48_: int = id v0;
.b49_:
v41_: int = id v48_;
.b42_:
Expand All @@ -71,7 +71,7 @@ expression: visualization.result
br v53_ .b54_ .b55_;
.b54_:
v56_: int = call @fac c2_;
v57_: int = id v0;
v57_: int = id c37_;
.b58_:
v50_: int = id v57_;
.b51_:
Expand Down Expand Up @@ -113,7 +113,7 @@ expression: visualization.result
br v84_ .b85_ .b86_;
.b85_:
v87_: int = call @fac c2_;
v88_: int = id c2_;
v88_: int = id v70_;
.b89_:
v81_: int = id v88_;
.b82_:
Expand Down Expand Up @@ -177,7 +177,7 @@ expression: visualization.result
br v132_ .b133_ .b134_;
.b133_:
v135_: int = call @fac c2_;
v136_: int = id c4_;
v136_: int = id v117_;
.b137_:
v129_: int = id v136_;
.b130_:
Expand Down Expand Up @@ -231,7 +231,7 @@ expression: visualization.result
br v170_ .b171_ .b172_;
.b171_:
v173_: int = call @fac c2_;
v174_: int = id c4_;
v174_: int = id v155_;
.b175_:
v167_: int = id v174_;
.b168_:
Expand Down Expand Up @@ -315,7 +315,7 @@ expression: visualization.result
br v42_ .b43_ .b44_;
.b43_:
v45_: int = call @fac c2_;
v46_: int = id c4_;
v46_: int = id c2_;
.b47_:
v39_: int = id v46_;
.b40_:
Expand Down
2 changes: 1 addition & 1 deletion tests/snapshots/files__if_dead_code_nested-optimize.snap
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ expression: visualization.result
print v17_;
ret;
.b7_:
v19_: bool = gt v0 c5_;
v19_: bool = lt c5_ v0;
c20_: bool = const false;
c21_: int = const 2;
v22_: int = id c21_;
Expand Down

0 comments on commit c60308d

Please sign in to comment.