Skip to content

Commit

Permalink
[Cider 2] Fix a bug in the fud2 path (#2220)
Browse files Browse the repository at this point in the history
Small patch for an issue with the debugger path
  • Loading branch information
EclecticGriffin committed Jul 23, 2024
1 parent e942414 commit c443bdb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions fud2/scripts/cider.rhai
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ op(
[sim::sim_setup, c::calyx_setup],
c::calyx_state,
cider_state,
|e, input, _output| {
|e, input, output| {
e.build_cmd(
["cider-input.futil"],
[output],
"calyx-with-flags",
[input],
[],
Expand All @@ -58,12 +58,12 @@ op(
[sim::sim_setup, c::calyx_setup, cider_setup],
cider_state,
sim::dat,
|e, _input, output| {
|e, input, output| {
let out_file = "interp_out.dump";
e.build_cmd(
[out_file],
"run-cider",
["cider-input.futil"],
[input],
["data.dump"],
);
e.build_cmd(
Expand Down
2 changes: 1 addition & 1 deletion fud2/tests/snapshots/tests__test@calyx_cider-debug.snap
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ rule interp-to-dump
command = $cider-converter --to json $in > $out
build data.dump: dump-to-interp $sim_data | $cider-converter

build cider-input.futil: calyx-with-flags _from_stdin_calyx.futil
build pseudo_cider: calyx-with-flags _from_stdin_calyx.futil
build _to_stdout_cider-debug: run-cider-debug pseudo_cider | data.dump

default _to_stdout_cider-debug
4 changes: 2 additions & 2 deletions fud2/tests/snapshots/tests__test@calyx_cider_dat.snap
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ rule interp-to-dump
command = $cider-converter --to json $in > $out
build data.dump: dump-to-interp $sim_data | $cider-converter

build cider-input.futil: calyx-with-flags _from_stdin_calyx.futil
build interp_out.dump: run-cider cider-input.futil | data.dump
build pseudo_cider: calyx-with-flags _from_stdin_calyx.futil
build interp_out.dump: run-cider pseudo_cider | data.dump
build _to_stdout_dat.json: interp-to-dump interp_out.dump | $sim_data $cider-converter

default _to_stdout_dat.json
2 changes: 1 addition & 1 deletion fud2/tests/snapshots/tests__test@plan_calyx-to-cider.snap
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ flags = -p none
rule calyx-with-flags
command = $calyx-exe -l $calyx-base $flags $args $in > $out

build cider-input.futil: calyx-with-flags /input.ext
build /output.ext: calyx-with-flags /input.ext

default /output.ext
2 changes: 1 addition & 1 deletion fud2/tests/snapshots/tests__test@plan_cider.snap
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ rule interp-to-dump
command = $cider-converter --to json $in > $out
build data.dump: dump-to-interp $sim_data | $cider-converter

build interp_out.dump: run-cider cider-input.futil | data.dump
build interp_out.dump: run-cider /input.ext | data.dump
build /output.ext: interp-to-dump interp_out.dump | $sim_data $cider-converter

default /output.ext

0 comments on commit c443bdb

Please sign in to comment.