Skip to content

Instantly share code, notes, and snippets.

@vznvzn
Created November 13, 2018 03:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vznvzn/94b63c91d50a5b072bfcab814566ad7b to your computer and use it in GitHub Desktop.
Save vznvzn/94b63c91d50a5b072bfcab814566ad7b to your computer and use it in GitHub Desktop.
@echo off
set n=3
set /a n2 = n - 1
call minlen %n% > nul
call minlen %n2% > nul
set f1=fstlen%n%b.fst
set f2=fstlen%n2%b.fst
set f3=fstcomp.fst
set f4=fsmcomp.fst
set fin=%f1%
set fpre=pre.fst
copy %f1% %fpre% > nul
for %%x in (1 2 3 4 5 6) do (
echo --%%x
fstcompose %fpre% fsmb.fst %f3%
fstproject --project_output=true %f3% %f4%
set f5=intersect.fst
fstintersect %f4% %fin% %f5%
call fstmin %f5%
copy %f5% %fpre% > nul
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment