Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cwe_checker
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
cwe_checker
Commits
2d0fdfc6
Commit
2d0fdfc6
authored
Apr 16, 2019
by
Thomas Barabosch
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:fkie-cad/cwe_checker
parents
5efbae5a
b002306f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
4 deletions
+30
-4
ocp-indent.sh
.hooks/ocp-indent.sh
+15
-0
.ocp-indent
.ocp-indent
+3
-0
.pre-commit-config.yaml
.pre-commit-config.yaml
+8
-0
graph_utils.ml
src/utils/graph_utils.ml
+4
-4
No files found.
.hooks/ocp-indent.sh
0 → 100755
View file @
2d0fdfc6
#!/bin/bash
pat
=
".*
\.
ml(i|l|y)?$"
if
[[
$1
=
~
$pat
]]
;
then
s1
=
$(
cat
$1
)
s2
=
$(
ocp-indent
$1
)
if
[
"
$s1
"
==
"
$s2
"
]
then
exit
0
else
echo
"
$1
: ocp-indent"
exit
1
fi
fi
exit
0
.ocp-indent
0 → 100644
View file @
2d0fdfc6
JaneStreet
match_clause = 4
\ No newline at end of file
.pre-commit-config.yaml
View file @
2d0fdfc6
...
...
@@ -35,3 +35,11 @@ repos:
rev
:
v0.1.0
hooks
:
-
id
:
dockerfilelint
-
repo
:
local
hooks
:
-
id
:
ocp-indent
name
:
ocp-indent
language
:
system
verbose
:
true
entry
:
.hooks/ocp-indent.sh
src/utils/graph_utils.ml
View file @
2d0fdfc6
...
...
@@ -35,10 +35,10 @@ let rec get_all_paths_from_node node g current_path =
|
[]
->
[
current_path
]
|
succs
->
List
.
concat_map
succs
~
f
:
(
fun
succ
->
if
node_already_visited_on_path
succ
current_path
then
[]
else
get_all_paths_from_node
succ
g
(
fork_path
current_path
node
))
if
node_already_visited_on_path
succ
current_path
then
[]
else
get_all_paths_from_node
succ
g
(
fork_path
current_path
node
))
(* Please mind the path explosion !!! *)
let
enumerate_paths_between_blks
sub
blk_start_tid
blk_end_tid
limit
=
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment