--- /dev/null
+digraph g {
+__start0 [label="" shape="none"];
+
+ s0 [shape="circle" label="0"];
+ s1 [shape="circle" label="1"];
+ s2 [shape="circle" label="2"];
+ s3 [shape="circle" label="3"];
+ s4 [shape="circle" label="4"];
+ s0 -> s2 [label="SYN / SYN-ACK"];
+ s0 -> s1 [label="ACK / ERR"];
+ s0 -> s1 [label="DAT / ERR"];
+ s0 -> s1 [label="RST / ERR"];
+ s0 -> s1 [label="FIN / ERR"];
+ s1 -> s1 [label="SYN / ERR"];
+ s1 -> s1 [label="ACK / ERR"];
+ s1 -> s1 [label="DAT / ERR"];
+ s1 -> s1 [label="RST / ERR"];
+ s1 -> s1 [label="FIN / ERR"];
+ s2 -> s1 [label="SYN / ERR"];
+ s2 -> s1 [label="ACK / ERR"];
+ s2 -> s3 [label="DAT / ACK"];
+ s2 -> s0 [label="RST / Reset"];
+ s2 -> s4 [label="FIN / ACK"];
+ s3 -> s1 [label="SYN / ERR"];
+ s3 -> s1 [label="ACK / ERR"];
+ s3 -> s3 [label="DAT / DATA"];
+ s3 -> s0 [label="RST / Reset"];
+ s3 -> s4 [label="FIN / ACK"];
+ s4 -> s4 [label="SYN / Closed"];
+ s4 -> s4 [label="ACK / Closed"];
+ s4 -> s4 [label="DAT / Closed"];
+ s4 -> s4 [label="RST / Closed"];
+ s4 -> s4 [label="FIN / Closed"];
+
+__start0 -> s0;
+}
digraph g {
__start0 [label="" shape="none"];
- s0 [shape="circle" label="s0"];
- s1 [shape="circle" label="s1"];
- s2 [shape="circle" label="s2"];
- s3 [shape="circle" label="s3"];
- s4 [shape="circle" label="s4"];
+ s0 [shape="circle" label="0"];
+ s1 [shape="circle" label="1"];
+ s2 [shape="circle" label="2"];
+ s3 [shape="circle" label="3"];
s0 -> s1 [label="SYN / SYN-ACK"];
s0 -> s3 [label="ACK / ERR"];
s0 -> s3 [label="DAT / ERR"];
s0 -> s3 [label="FIN / ERR"];
s1 -> s3 [label="SYN / ERR"];
s1 -> s3 [label="ACK / ERR"];
- s1 -> s4 [label="DAT / ACK"];
+ s1 -> s1 [label="DAT / ACK"];
s1 -> s0 [label="RST / Reset"];
s1 -> s2 [label="FIN / ACK"];
s2 -> s2 [label="SYN / Closed"];
s3 -> s3 [label="DAT / ERR"];
s3 -> s3 [label="RST / ERR"];
s3 -> s3 [label="FIN / ERR"];
- s4 -> s3 [label="SYN / ERR"];
- s4 -> s3 [label="ACK / ERR"];
- s4 -> s4 [label="DAT / DATA"];
- s4 -> s0 [label="RST / Reset"];
- s4 -> s2 [label="FIN / ACK"];
__start0 -> s0;
}
--- /dev/null
+digraph g {
+__start0 [label="" shape="none"];
+
+ s0 [shape="circle" label="0"];
+ s1 [shape="circle" label="1"];
+ s2 [shape="circle" label="2"];
+ s3 [shape="circle" label="3"];
+ s0 -> s2 [label="SYN / SYN-ACK"];
+ s0 -> s1 [label="ACK / ERR"];
+ s0 -> s1 [label="DAT / ERR"];
+ s1 -> s1 [label="SYN / ERR"];
+ s1 -> s1 [label="ACK / ERR"];
+ s1 -> s1 [label="DAT / ERR"];
+ s2 -> s1 [label="SYN / ERR"];
+ s2 -> s1 [label="ACK / ERR"];
+ s2 -> s3 [label="DAT / ACK"];
+ s3 -> s1 [label="SYN / ERR"];
+ s3 -> s1 [label="ACK / ERR"];
+ s3 -> s3 [label="DAT / DATA"];
+
+__start0 -> s0;
+}
digraph g {
__start0 [label="" shape="none"];
- s0 [shape="circle" label="s0"];
- s1 [shape="circle" label="s1"];
- s2 [shape="circle" label="s2"];
- s3 [shape="circle" label="s3"];
+ s0 [shape="circle" label="0"];
+ s1 [shape="circle" label="1"];
+ s2 [shape="circle" label="2"];
+ s3 [shape="circle" label="3"];
s0 -> s1 [label="SYN / SYN-ACK"];
s0 -> s2 [label="ACK / ERR"];
s0 -> s2 [label="DAT / ERR"];
digraph g {
__start0 [label="" shape="none"];
- s0 [shape="circle" label="s0"];
- s1 [shape="circle" label="s1"];
- s2 [shape="circle" label="s2"];
- s3 [shape="circle" label="s3"];
+ s0 [shape="circle" label="0"];
+ s1 [shape="circle" label="1"];
+ s2 [shape="circle" label="2"];
+ s3 [shape="circle" label="3"];
s0 -> s1 [label="SYN / SYN-ACK"];
s0 -> s2 [label="ACK / ERR"];
s0 -> s2 [label="DAT / ERR"];
- s0 -> s2 [label="RST / ERR"];
s1 -> s2 [label="SYN / ERR"];
s1 -> s2 [label="ACK / ERR"];
s1 -> s3 [label="DAT / ACK"];
- s1 -> s0 [label="RST / Reset"];
s2 -> s2 [label="SYN / ERR"];
s2 -> s2 [label="ACK / ERR"];
s2 -> s2 [label="DAT / ERR"];
- s2 -> s2 [label="RST / ERR"];
s3 -> s2 [label="SYN / ERR"];
s3 -> s2 [label="ACK / ERR"];
s3 -> s3 [label="DAT / DATA"];
- s3 -> s0 [label="RST / Reset"];
__start0 -> s0;
}
s1 [shape="circle" label="1"];
s2 [shape="circle" label="2"];
s3 [shape="circle" label="3"];
- s4 [shape="circle" label="4"];
s0 -> s1 [label="SYN / SYN-ACK"];
s0 -> s2 [label="ACK / ERR"];
s0 -> s2 [label="DAT / ERR"];
- s0 -> s2 [label="RST / ERR"];
- s0 -> s2 [label="FIN / ERR"];
s1 -> s2 [label="SYN / ERR"];
s1 -> s2 [label="ACK / ERR"];
s1 -> s3 [label="DAT / ACK"];
- s1 -> s0 [label="RST / Reset"];
- s1 -> s4 [label="FIN / ACK"];
s2 -> s2 [label="SYN / ERR"];
s2 -> s2 [label="ACK / ERR"];
s2 -> s2 [label="DAT / ERR"];
- s2 -> s2 [label="RST / ERR"];
- s2 -> s2 [label="FIN / ERR"];
s3 -> s2 [label="SYN / ERR"];
s3 -> s2 [label="ACK / ERR"];
s3 -> s3 [label="DAT / DATA"];
- s3 -> s0 [label="RST / Reset"];
- s3 -> s4 [label="FIN / ACK"];
- s4 -> s4 [label="SYN / Closed"];
- s4 -> s4 [label="ACK / Closed"];
- s4 -> s4 [label="DAT / Closed"];
- s4 -> s4 [label="RST / Closed"];
- s4 -> s4 [label="FIN / Closed"];
__start0 -> s0;
}
+++ /dev/null
-digraph g {
-__start0 [label="" shape="none"];
-
- s0 [shape="circle" label="0"];
- s1 [shape="circle" label="1"];
- s0 -> s1 [label="SYN / SYN-ACK"];
- s0 -> s1 [label="ACK / ERR"];
- s1 -> s1 [label="SYN / ERR"];
- s1 -> s1 [label="ACK / ERR"];
-
-__start0 -> s0;
-}
+++ /dev/null
-digraph g {
-__start0 [label="" shape="none"];
-
- s0 [shape="circle" label="0"];
- s1 [shape="circle" label="1"];
- s0 -> s1 [label="SYN / SYN-ACK"];
- s0 -> s1 [label="ACK / ERR"];
- s1 -> s1 [label="SYN / ERR"];
- s1 -> s1 [label="ACK / ERR"];
-
-__start0 -> s0;
-}
+++ /dev/null
-digraph g {
-__start0 [label="" shape="none"];
-
- s0 [shape="circle" label="0"];
- s1 [shape="circle" label="1"];
- s0 -> s1 [label="SYN / SYN-ACK"];
- s0 -> s1 [label="ACK / ERR"];
- s1 -> s1 [label="SYN / ERR"];
- s1 -> s1 [label="ACK / ERR"];
-
-__start0 -> s0;
-}
+++ /dev/null
-digraph g {
-__start0 [label="" shape="none"];
-
- s0 [shape="circle" label="0"];
- s1 [shape="circle" label="1"];
- s0 -> s1 [label="SYN / SYN-ACK"];
- s0 -> s1 [label="ACK / ERR"];
- s1 -> s1 [label="SYN / ERR"];
- s1 -> s1 [label="ACK / ERR"];
-
-__start0 -> s0;
-}
+++ /dev/null
-digraph g {
-__start0 [label="" shape="none"];
-
- s0 [shape="circle" label="s0"];
- s1 [shape="circle" label="s1"];
- s0 -> s1 [label="SYN / SYN-ACK"];
- s0 -> s1 [label="ACK / ERR"];
- s1 -> s1 [label="SYN / ERR"];
- s1 -> s1 [label="ACK / ERR"];
-
-__start0 -> s0;
-}
+++ /dev/null
-#!/usr/bin/env python2
-
-import sys
-import re
-
-sys.stderr.write("""Usage: {} [INPUT [OUTPUT]
-als input/output niet specificeerd pakt hij stdin/stdout
-voorbeeld:
-\t$ < file.dot ./van_learnlib_naar_dot.py | dot -Tpdf > file.pdf
-""".format(sys.argv[0]))
-
-if len(sys.argv) == 1:
- inputfile = sys.stdin
- outputfile = sys.stdout
-elif len(sys.argv) == 2:
- inputfile = open(sys.argv[1], 'r')
- outputfile = sys.stdout
-else:
- inputfile = open(sys.argv[1], 'r')
- outputfile = open(sys.argv[2], 'w')
-
-data = []
-pat = r's(?P<f>\d+) -> s(?P<t>\d+) \[label="(?P<i>\S+) / (?P<o>\S+)"\];'
-
-for line in inputfile:
- match = re.search(pat, line)
- if match:
- outputfile.write('\ts{0} -> s{0}_ [label="!{1}"]\n'.format(
- match.group('f'), match.group('i')))
- outputfile.write('\ts{}_ -> s{} [label="?{}"]\n'.format(
- match.group('f'), match.group('t'), match.group('o')))
- else:
- outputfile.write(line)
-
-if inputfile != sys.stdin:
- inputfile.close()
-if outputfile != sys.stdout:
- outputfile.close()