Skip to content

Commit

Permalink
Add GPLV3 Header
Browse files Browse the repository at this point in the history
  • Loading branch information
fundamental committed Mar 14, 2015
1 parent cc68699 commit d38dd98
Show file tree
Hide file tree
Showing 6 changed files with 120 additions and 5 deletions.
21 changes: 20 additions & 1 deletion safety_finder.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
#!/usr/bin/ruby
#
# stoat - LLVM Based Static Analysis Tool
# Copyright (C) 2015 Mark McCurry
#
# This file is part of stoat.
#
# stoat is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# stoat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with stoat. If not, see <http://www.gnu.org/licenses/>.
#
require 'set'
require 'yaml'
require 'pp'
Expand Down Expand Up @@ -79,4 +98,4 @@

symbols_known.each do |line|
puts "#{line[0]} #{line[1]}"
end
end
20 changes: 20 additions & 0 deletions src/llvm-passes.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
//
// stoat - LLVM Based Static Analysis Tool
// Copyright (C) 2015 Mark McCurry
//
// This file is part of stoat.
//
// stoat is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// stoat is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with stoat. If not, see <http://www.gnu.org/licenses/>.
//

#include <llvm/Analysis/CallGraph.h>
#include <llvm/Support/raw_ostream.h>
#include <llvm/IR/Module.h>
Expand Down
21 changes: 20 additions & 1 deletion stoat
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
#!/usr/bin/ruby
#
# stoat - LLVM Based Static Analysis Tool
# Copyright (C) 2015 Mark McCurry
#
# This file is part of stoat.
#
# stoat is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# stoat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with stoat. If not, see <http://www.gnu.org/licenses/>.
#
require 'optparse'
require 'ostruct'
require 'set'
Expand Down Expand Up @@ -734,4 +753,4 @@ if(error_count == 0)
exit 0
else
exit(-1)
end
end
21 changes: 20 additions & 1 deletion stoat-compile
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
#!/usr/bin/ruby
#
# stoat - LLVM Based Static Analysis Tool
# Copyright (C) 2015 Mark McCurry
#
# This file is part of stoat.
#
# stoat is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# stoat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with stoat. If not, see <http://www.gnu.org/licenses/>.
#

#Pretend to be clang
NARGV = ARGV.collect {|x| x.gsub(/(?=\W)/, '\\')}
Expand Down Expand Up @@ -31,4 +50,4 @@ NARGV.each do |x|
end
if(do_compile && modified)
`clang -emit-llvm #{new_args.join(' ')} 2>/dev/null`
end
end
21 changes: 20 additions & 1 deletion stoat-compile++
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
#!/usr/bin/ruby
#
# stoat - LLVM Based Static Analysis Tool
# Copyright (C) 2015 Mark McCurry
#
# This file is part of stoat.
#
# stoat is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# stoat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with stoat. If not, see <http://www.gnu.org/licenses/>.
#

#Pretend to be clang
NARGV = ARGV.collect {|x| x.gsub(/(?=\W)/, '\\')}
Expand Down Expand Up @@ -31,4 +50,4 @@ NARGV.each do |x|
end
if(do_compile && modified)
`clang++ -emit-llvm #{new_args.join(' ')} 2>/dev/null`
end
end
21 changes: 20 additions & 1 deletion test/run-test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
#!/usr/bin/ruby
#
# stoat - LLVM Based Static Analysis Tool
# Copyright (C) 2015 Mark McCurry
#
# This file is part of stoat.
#
# stoat is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# stoat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with stoat. If not, see <http://www.gnu.org/licenses/>.
#
# Argument:
# 1 - path to run.rb
# 2 - path to libfoo.so
Expand Down Expand Up @@ -48,4 +67,4 @@
exit(0)
else
exit(-1)
end
end

0 comments on commit d38dd98

Please sign in to comment.