Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vim-model
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiao Peng Ye
vim-model
Commits
ccc4b116
Commit
ccc4b116
authored
3 years ago
by
pierreganty
Browse files
Options
Downloads
Patches
Plain Diff
Minor changes
parent
4f6c7adb
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
SUL-neovim.py
+3
-3
3 additions, 3 deletions
SUL-neovim.py
with
3 additions
and
3 deletions
SUL-neovim.py
+
3
−
3
View file @
ccc4b116
...
...
@@ -11,7 +11,7 @@ seed(100) # all experiments will be reproducible
class
MooreSUL
(
SUL
):
"""
System under learning for M
ealy
machine
System under learning for M
oore
machine
"""
def
__init__
(
self
):
...
...
@@ -24,7 +24,7 @@ class MooreSUL(SUL):
'
niV
'
:
'
Virtual Replace Normal
'
,
'
niR
'
:
'
Replace Normal
'
,
'
Rx
'
:
'
Replace Ctrl-X Mode
'
,
'
Rc
'
:
'
Replace Command-line completion
'
,
'
r
'
:
'
Hit-enter prompt
'
,
'
cv
'
:
'
Ex mode
'
,
'
rm
'
:
'
The more prompt
'
,
'
t
'
:
'
Terminal
'
,
# new modes added by vim on the path 8.2.3236
'
vs
'
:
'
Select Visual
'
,
'
Vs
'
:
'
Select Visual Line
'
,
'
\x16
s
'
:
'
Select Visual Block
'
}
'
vs
'
:
'
Select Visual
'
,
'
Vs
'
:
'
Select Visual Line
'
,
'
\x16
s
'
:
'
Select Visual Block
'
,
'
nt
'
:
'
Normal in terminal-emulator
'
,
'
t
'
:
'
Terminal mode
'
}
# self.n = neovim.attach(
# "child", argv=['/bin/env', 'nvim', '--clean', '--embed', '--headless'])
...
...
@@ -143,6 +143,6 @@ state_origin_eq_oracle = StatePrefixEqOracle(
learned_moore
=
run_Lstar
(
input_al
,
sul
,
state_origin_eq_oracle
,
cex_processing
=
'
rs
'
,
closing_strategy
=
'
single
'
,
automaton_type
=
'
moore
'
,
cache_and_non_det_check
=
True
,
print_level
=
3
)
visualize_automaton
(
learned_moore
,
file_type
=
'
svg
'
)
#
visualize_automaton(learned_moore, file_type='svg')
save_automaton_to_file
(
learned_moore
,
path
=
'
nvim-moore
'
,
file_type
=
'
dot
'
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment