Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Lustrec - public version
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LustreC
Lustrec - public version
Commits
049f3b17
Commit
049f3b17
authored
7 years ago
by
Pierre Loic Garoche
Browse files
Options
Downloads
Plain Diff
Merge branch 'unstable' of
https://cavale.enseeiht.fr/git/lustrec
into unstable
parents
329774de
714588bf
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/backends/EMF/EMF_common.ml
+4
-4
4 additions, 4 deletions
src/backends/EMF/EMF_common.ml
with
4 additions
and
4 deletions
src/backends/EMF/EMF_common.ml
+
4
−
4
View file @
049f3b17
...
@@ -34,15 +34,15 @@ let record_types prog =
...
@@ -34,15 +34,15 @@ let record_types prog =
(* Basic printing functions *)
(* Basic printing functions *)
(* If string length of f is longer than 50 chars, we select the
2
0 first and
(* If string length of f is longer than 50 chars, we select the
1
0 first and
last and put a hash in the middle *)
last and put a hash in the middle *)
let
print_protect
fmt
f
=
let
print_protect
fmt
f
=
fprintf
str_formatter
"%t"
f
;
fprintf
str_formatter
"%t"
f
;
let
s
=
flush_str_formatter
()
in
let
s
=
flush_str_formatter
()
in
let
l
=
String
.
length
s
in
let
l
=
String
.
length
s
in
if
l
>
5
0
then
if
l
>
3
0
then
let
prefix
=
String
.
sub
s
0
2
0
and
let
prefix
=
String
.
sub
s
0
1
0
and
suffix
=
String
.
sub
s
(
l
-
2
0
)
2
0
in
suffix
=
String
.
sub
s
(
l
-
1
0
)
1
0
in
let
hash
=
Hashtbl
.
hash
s
in
let
hash
=
Hashtbl
.
hash
s
in
fprintf
fmt
"%s_%i_%s"
prefix
hash
suffix
fprintf
fmt
"%s_%i_%s"
prefix
hash
suffix
else
else
...
...
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