Change license to MIT

Summary:
Change the license of the source code from BSD + PATENTS to MIT.

Change `checkCopyright` to reflect the new license and learn some new file
types.

Generated with:

```
git grep BSD | xargs -n 1 ./scripts/checkCopyright -i
```

Reviewed By: jeremydubreil, mbouaziz, jberdine

Differential Revision: D8071249

fbshipit-source-id: 97ca23a
master
Jules Villard 7 years ago committed by Facebook Github Bot
parent 057efb2893
commit 8b882ac1df

@ -1,11 +1,9 @@
#!/bin/bash #!/bin/bash
# Copyright (c) 2016 - present Facebook, Inc. # Copyright (c) 2016-present, Facebook, Inc.
# All rights reserved.
# #
# This source code is licensed under the BSD style license found in the # This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree. An additional grant # LICENSE file in the root directory of this source tree.
# of patent rights can be found in the PATENTS file in the same directory.
set -e set -e

@ -1,12 +1,9 @@
#!/bin/bash #!/bin/bash
# Copyright (c) 2016 - present Facebook, Inc. # Copyright (c) 2016-present, Facebook, Inc.
# All rights reserved.
# #
# This source code is licensed under the BSD style license found in the # This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree. An additional grant # LICENSE file in the root directory of this source tree.
# of patent rights can be found in the PATENTS file in the same directory.
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

@ -1,30 +1,21 @@
BSD License MIT License
For Infer software Copyright (c) 2013-present, Facebook, Inc.
Copyright (c) 2013-present, Facebook, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
Redistribution and use in source and binary forms, with or without modification, The above copyright notice and this permission notice shall be included in all
are permitted provided that the following conditions are met: copies or substantial portions of the Software.
* Redistributions of source code must retain the above copyright notice, this THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
list of conditions and the following disclaimer. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* Redistributions in binary form must reproduce the above copyright notice, AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
this list of conditions and the following disclaimer in the documentation LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
and/or other materials provided with the distribution. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
* Neither the name Facebook nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

@ -1,9 +1,7 @@
# Copyright (c) 2015 - present Facebook, Inc. # Copyright (c) 2015-present, Facebook, Inc.
# All rights reserved.
# #
# This source code is licensed under the BSD style license found in the # This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree. An additional grant # LICENSE file in the root directory of this source tree.
# of patent rights can be found in the PATENTS file in the same directory.
.PHONY: default .PHONY: default
default: infer default: infer

@ -1,9 +1,7 @@
# Copyright (c) 2015 - present Facebook, Inc. # Copyright (c) 2015-present, Facebook, Inc.
# All rights reserved.
# #
# This source code is licensed under the BSD style license found in the # This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree. An additional grant # LICENSE file in the root directory of this source tree.
# of patent rights can be found in the PATENTS file in the same directory.
@SET_MAKE@ @SET_MAKE@

@ -1,9 +1,7 @@
# Copyright (c) 2015 - present Facebook, Inc. # Copyright (c) 2015-present, Facebook, Inc.
# All rights reserved.
# #
# This source code is licensed under the BSD style license found in the # This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree. An additional grant # LICENSE file in the root directory of this source tree.
# of patent rights can be found in the PATENTS file in the same directory.
ORIG_SHELL = $(shell echo "$$SHELL") ORIG_SHELL = $(shell echo "$$SHELL")
SHELL = bash -e -o pipefail -u SHELL = bash -e -o pipefail -u

@ -1,33 +0,0 @@
Additional Grant of Patent Rights Version 2
"Software" means the Infer software distributed by Facebook, Inc.
Facebook, Inc. (“Facebook”) hereby grants to each recipient of the Software
(“you”) a perpetual, worldwide, royalty-free, non-exclusive, irrevocable
(subject to the termination provision below) license under any Necessary
Claims, to make, have made, use, sell, offer to sell, import, and otherwise
transfer the Software. For avoidance of doubt, no license is granted under
Facebook's rights in any patent claims that are infringed by (i) modifications
to the Software made by you or any third party or (ii) the Software in
combination with any software or other technology.
The license granted hereunder will terminate, automatically and without notice,
if you (or any of your subsidiaries, corporate affiliates or agents) initiate
directly or indirectly, or take a direct financial interest in, any Patent
Assertion: (i) against Facebook or any of its subsidiaries or corporate
affiliates, (ii) against any party if such Patent Assertion arises in whole or
in part from any software, technology, product or service of Facebook or any of
its subsidiaries or corporate affiliates, or (iii) against any party relating
to the Software. Notwithstanding the foregoing, if Facebook or any of its
subsidiaries or corporate affiliates files a lawsuit alleging patent
infringement against you in the first instance, and you respond by filing a
patent infringement counterclaim in that lawsuit against that party that is
unrelated to the Software, the license granted hereunder will not terminate
under section (i) of this paragraph due to such counterclaim.
A "Necessary Claim" is a claim of a patent owned by Facebook that is
necessarily infringed by the Software standing alone.
A "Patent Assertion" is any lawsuit or other action alleging direct, indirect,
or contributory infringement or inducement to infringe any patent, including a
cross-claim or counterclaim.

@ -17,7 +17,7 @@ See [CONTRIBUTING.md](./CONTRIBUTING.md).
## License ## License
Infer is BSD-licensed. We also provide an additional patent grant. Infer is MIT-licensed.
Note: Enabling Java support may require you to download and install Note: Enabling Java support may require you to download and install
components licensed under the GPL. components licensed under the GPL.

@ -1,11 +1,9 @@
#!/bin/bash #!/bin/bash
# Copyright (c) 2015 - present Facebook, Inc. # Copyright (c) 2015-present, Facebook, Inc.
# All rights reserved.
# #
# This source code is licensed under the BSD style license found in the # This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree. An additional grant # LICENSE file in the root directory of this source tree.
# of patent rights can be found in the PATENTS file in the same directory.
set -e set -e

@ -2,12 +2,10 @@
# Convenience script to build Infer when using opam # Convenience script to build Infer when using opam
# Copyright (c) 2015 - present Facebook, Inc. # Copyright (c) 2015-present, Facebook, Inc.
# All rights reserved.
# #
# This source code is licensed under the BSD style license found in the # This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree. An additional grant # LICENSE file in the root directory of this source tree.
# of patent rights can be found in the PATENTS file in the same directory.
set -e set -e
set -o pipefail set -o pipefail

@ -1,12 +1,10 @@
dnl Copyright (c) 2015-present, Facebook, Inc.
dnl
dnl This source code is licensed under the MIT license found in the
dnl LICENSE file in the root directory of this source tree.
dnl autoconf script for Infer dnl autoconf script for Infer
dnl run ./autogen.sh to generate a configure script dnl run ./autogen.sh to generate a configure script
dnl
dnl Copyright (c) 2015 - present Facebook, Inc.
dnl All rights reserved.
dnl
dnl This source code is licensed under the BSD style license found in the
dnl LICENSE file in the root directory of this source tree. An additional grant
dnl of patent rights can be found in the PATENTS file in the same directory.
AC_PREREQ([2.63]) AC_PREREQ([2.63])

@ -1,9 +1,7 @@
# Copyright (c) 2017 - present Facebook, Inc. # Copyright (c) 2017-present, Facebook, Inc.
# All rights reserved.
# #
# This source code is licensed under the BSD style license found in the # This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree. An additional grant # LICENSE file in the root directory of this source tree.
# of patent rights can be found in the PATENTS file in the same directory.
# This file exists to make opam happy, it should not do anything useful besides that. # This file exists to make opam happy, it should not do anything useful besides that.

@ -1,10 +1,8 @@
#!/bin/bash #!/bin/bash
# Copyright (c) 2017 - present Facebook, Inc. # Copyright (c) 2017-present, Facebook, Inc.
# All rights reserved.
# #
# This source code is licensed under the BSD style license found in the # This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree. An additional grant # LICENSE file in the root directory of this source tree.
# of patent rights can be found in the PATENTS file in the same directory.
# This file exists just to make opam happy, it should not do anything useful besides that. # This file exists just to make opam happy, it should not do anything useful besides that.

@ -1,10 +1,8 @@
#!/bin/bash #!/bin/bash
# Copyright (c) 2017 - present Facebook, Inc. # Copyright (c) 2017-present, Facebook, Inc.
# All rights reserved.
# #
# This source code is licensed under the BSD style license found in the # This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree. An additional grant # LICENSE file in the root directory of this source tree.
# of patent rights can be found in the PATENTS file in the same directory.
# This file exists just to make opam happy, it should not do anything useful besides that. # This file exists just to make opam happy, it should not do anything useful besides that.

@ -1,9 +1,7 @@
# Copyright (c) 2017 - present Facebook, Inc. # Copyright (c) 2017-present, Facebook, Inc.
# All rights reserved.
# #
# This source code is licensed under the BSD style license found in the # This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree. An additional grant # LICENSE file in the root directory of this source tree.
# of patent rights can be found in the PATENTS file in the same directory.
# Try to automatically guess whether we are running under Windows. # Try to automatically guess whether we are running under Windows.
# Set WIN32=true manually if this doesn't work. # Set WIN32=true manually if this doesn't work.

@ -1,11 +1,9 @@
#!/bin/sh #!/bin/sh
# Copyright (c) 2015 - present Facebook, Inc. # Copyright (c) 2015-present, Facebook, Inc.
# All rights reserved.
# #
# This source code is licensed under the BSD style license found in the # This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree. An additional grant # LICENSE file in the root directory of this source tree.
# of patent rights can be found in the PATENTS file in the same directory.
EXEC_NAME="$0" EXEC_NAME="$0"

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2015 - present Facebook, Inc. * Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
class Hello { class Hello {

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2015 - present Facebook, Inc. * Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2015 - present Facebook, Inc. * Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
package infer.inferandroidexample; package infer.inferandroidexample;

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2015 - present Facebook, Inc. * Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
// _SHOULD_BE_SKIPPED_ // _SHOULD_BE_SKIPPED_

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2015 - present Facebook, Inc. * Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
package infer.inferandroidexample; package infer.inferandroidexample;

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2015 - present Facebook, Inc. * Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
package infer.other; package infer.other;

@ -1,9 +1,7 @@
# Copyright (c) 2017 - present Facebook, Inc. # Copyright (c) 2017-present, Facebook, Inc.
# All rights reserved.
# #
# This source code is licensed under the BSD style license found in the # This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree. An additional grant # LICENSE file in the root directory of this source tree.
# of patent rights can be found in the PATENTS file in the same directory.
SOURCES = $(shell ls *.c) SOURCES = $(shell ls *.c)
OBJECTS = $(SOURCES:.c=.o) OBJECTS = $(SOURCES:.c=.o)

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2015 - present Facebook, Inc. * Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
#include <errno.h> #include <errno.h>

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2015 - present Facebook, Inc. * Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
#include <stdlib.h> #include <stdlib.h>

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2015 - present Facebook, Inc. * Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
// //

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2015 - present Facebook, Inc. * Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
// //

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2015 - present Facebook, Inc. * Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
// //

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2015 - present Facebook, Inc. * Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
// //

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2015 - present Facebook, Inc. * Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
// //

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2015 - present Facebook, Inc. * Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
// //

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2015 - present Facebook, Inc. * Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
// //

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2015 - present Facebook, Inc. * Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
// //

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2015 - present Facebook, Inc. * Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
package hello; package hello;

@ -1,9 +1,7 @@
# Copyright (c) 2017 - present Facebook, Inc. # Copyright (c) 2017-present, Facebook, Inc.
# All rights reserved.
# #
# This source code is licensed under the BSD style license found in the # This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree. An additional grant # LICENSE file in the root directory of this source tree.
# of patent rights can be found in the PATENTS file in the same directory.
SOURCES = Resources.java Pointers.java Hello.java SOURCES = Resources.java Pointers.java Hello.java
OBJECTS = $(SOURCES:.java=.class) OBJECTS = $(SOURCES:.java=.class)

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2015 - present Facebook, Inc. * Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
package hello; package hello;

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2015 - present Facebook, Inc. * Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
package hello; package hello;

@ -1,9 +1,7 @@
# Copyright (c) 2015 - present Facebook, Inc. # Copyright (c) 2015-present, Facebook, Inc.
# All rights reserved.
# #
# This source code is licensed under the BSD style license found in the # This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree. An additional grant # LICENSE file in the root directory of this source tree.
# of patent rights can be found in the PATENTS file in the same directory.
ROOT_DIR = ../.. ROOT_DIR = ../..
include $(ROOT_DIR)/Makefile.config include $(ROOT_DIR)/Makefile.config

@ -10,7 +10,7 @@
<licenses> <licenses>
<license> <license>
<name>BSD license</name> <name>MIT license</name>
<url>https://github.com/facebook/infer/blob/master/LICENSE</url> <url>https://github.com/facebook/infer/blob/master/LICENSE</url>
<distribution>repo</distribution> <distribution>repo</distribution>
</license> </license>

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2004 - present Facebook, Inc. * Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
package com.facebook.infer.annotation; package com.facebook.infer.annotation;

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2015 - present Facebook, Inc. * Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
package com.facebook.infer.annotation; package com.facebook.infer.annotation;

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2015 - present Facebook, Inc. * Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
package com.facebook.infer.annotation; package com.facebook.infer.annotation;

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2004 - present Facebook, Inc. * Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
package com.facebook.infer.annotation; package com.facebook.infer.annotation;

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2015 - present Facebook, Inc. * Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
package com.facebook.infer.annotation; package com.facebook.infer.annotation;

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2004 - present Facebook, Inc. * Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
package com.facebook.infer.annotation; package com.facebook.infer.annotation;

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2016 - present Facebook, Inc. * Copyright (c) 2016-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
package com.facebook.infer.annotation; package com.facebook.infer.annotation;

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2016 - present Facebook, Inc. * Copyright (c) 2016-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
package com.facebook.infer.annotation; package com.facebook.infer.annotation;

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2004 - present Facebook, Inc. * Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
package com.facebook.infer.annotation; package com.facebook.infer.annotation;

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2016 - present Facebook, Inc. * Copyright (c) 2016-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
package com.facebook.infer.annotation; package com.facebook.infer.annotation;

@ -1,4 +1,9 @@
// Copyright 2004-present Facebook. All Rights Reserved. /*
* Copyright (c) 2004-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.infer.annotation; package com.facebook.infer.annotation;

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2015 - present Facebook, Inc. * Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
package com.facebook.infer.annotation; package com.facebook.infer.annotation;

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2004 - present Facebook, Inc. * Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
package com.facebook.infer.annotation; package com.facebook.infer.annotation;

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2004 - present Facebook, Inc. * Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
package com.facebook.infer.annotation; package com.facebook.infer.annotation;

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2004 - present Facebook, Inc. * Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
package com.facebook.infer.annotation; package com.facebook.infer.annotation;

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2017 - present Facebook, Inc. * Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
package com.facebook.infer.annotation; package com.facebook.infer.annotation;

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2017 - present Facebook, Inc. * Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
package com.facebook.infer.annotation; package com.facebook.infer.annotation;

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2004 - present Facebook, Inc. * Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
package com.facebook.infer.annotation; package com.facebook.infer.annotation;

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2004 - present Facebook, Inc. * Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
package com.facebook.infer.annotation; package com.facebook.infer.annotation;

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2004 - present Facebook, Inc. * Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
package com.facebook.infer.annotation; package com.facebook.infer.annotation;

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2004 - present Facebook, Inc. * Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
package com.facebook.infer.annotation; package com.facebook.infer.annotation;

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2004 - present Facebook, Inc. * Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
package com.facebook.infer.annotation; package com.facebook.infer.annotation;

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2004 - present Facebook, Inc. * Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
package com.facebook.infer.annotation; package com.facebook.infer.annotation;

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2004 - present Facebook, Inc. * Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
package com.facebook.infer.annotation; package com.facebook.infer.annotation;

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2016 - present Facebook, Inc. * Copyright (c) 2016-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
package com.facebook.infer.annotation; package com.facebook.infer.annotation;

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2017 - present Facebook, Inc. * Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
package com.facebook.infer.annotation; package com.facebook.infer.annotation;

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2004 - present Facebook, Inc. * Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
package com.facebook.infer.annotation; package com.facebook.infer.annotation;

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2004 - present Facebook, Inc. * Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
package com.facebook.infer.annotation; package com.facebook.infer.annotation;

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2015 - present Facebook, Inc. * Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
package com.facebook.infer.annotation; package com.facebook.infer.annotation;

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2004 - present Facebook, Inc. * Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
package com.facebook.infer.annotation; package com.facebook.infer.annotation;

@ -1,10 +1,8 @@
/* /*
* Copyright (c) 2016 - present Facebook, Inc. * Copyright (c) 2016-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
// macro to help distinguish between infer compilation and normal one // macro to help distinguish between infer compilation and normal one

@ -1,9 +1,7 @@
// Copyright (c) 2016 - present Facebook, Inc. // Copyright (c) 2016-present, Facebook, Inc.
// All rights reserved.
// //
// This source code is licensed under the BSD style license found in the // This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree. An additional grant // LICENSE file in the root directory of this source tree.
// of patent rights can be found in the PATENTS file in the same directory.
// DIRECT_ATOMIC_PROPERTY_ACCESS: // DIRECT_ATOMIC_PROPERTY_ACCESS:
// a property declared atomic should not be accessed directly via its ivar // a property declared atomic should not be accessed directly via its ivar

@ -1,11 +1,9 @@
#!/usr/bin/env python2.7 #!/usr/bin/env python2.7
# Copyright (c) 2015 - present Facebook, Inc. # Copyright (c) 2015-present, Facebook, Inc.
# All rights reserved.
# #
# This source code is licensed under the BSD style license found in the # This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree. An additional grant # LICENSE file in the root directory of this source tree.
# of patent rights can be found in the PATENTS file in the same directory.
from __future__ import absolute_import from __future__ import absolute_import
from __future__ import division from __future__ import division

@ -1,11 +1,9 @@
#!/usr/bin/env python2.7 #!/usr/bin/env python2.7
# Copyright (c) 2013 - present Facebook, Inc. # Copyright (c) 2013-present, Facebook, Inc.
# All rights reserved.
# #
# This source code is licensed under the BSD style license found in the # This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree. An additional grant # LICENSE file in the root directory of this source tree.
# of patent rights can be found in the PATENTS file in the same directory.
from __future__ import absolute_import from __future__ import absolute_import
from __future__ import division from __future__ import division

@ -0,0 +1,4 @@
# Copyright (c) 2015-present, Facebook, Inc.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

@ -1,9 +1,7 @@
# Copyright (c) 2013 - present Facebook, Inc. # Copyright (c) 2013-present, Facebook, Inc.
# All rights reserved.
# #
# This source code is licensed under the BSD style license found in the # This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree. An additional grant # LICENSE file in the root directory of this source tree.
# of patent rights can be found in the PATENTS file in the same directory.
from __future__ import absolute_import from __future__ import absolute_import
from __future__ import division from __future__ import division

@ -1,11 +1,9 @@
#!/usr/bin/env python2.7 #!/usr/bin/env python2.7
# Copyright (c) 2013 - present Facebook, Inc. # Copyright (c) 2013-present, Facebook, Inc.
# All rights reserved.
# #
# This source code is licensed under the BSD style license found in the # This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree. An additional grant # LICENSE file in the root directory of this source tree.
# of patent rights can be found in the PATENTS file in the same directory.
from __future__ import absolute_import from __future__ import absolute_import
from __future__ import division from __future__ import division

@ -0,0 +1,4 @@
# Copyright (c) 2015-present, Facebook, Inc.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

@ -1,9 +1,7 @@
# Copyright (c) 2015 - present Facebook, Inc. # Copyright (c) 2015-present, Facebook, Inc.
# All rights reserved.
# #
# This source code is licensed under the BSD style license found in the # This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree. An additional grant # LICENSE file in the root directory of this source tree.
# of patent rights can be found in the PATENTS file in the same directory.
import logging import logging
import os import os

@ -1,9 +1,7 @@
# Copyright (c) 2015 - present Facebook, Inc. # Copyright (c) 2015-present, Facebook, Inc.
# All rights reserved.
# #
# This source code is licensed under the BSD style license found in the # This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree. An additional grant # LICENSE file in the root directory of this source tree.
# of patent rights can be found in the PATENTS file in the same directory.
from __future__ import absolute_import from __future__ import absolute_import
from __future__ import division from __future__ import division

@ -1,9 +1,7 @@
# Copyright (c) 2015 - present Facebook, Inc. # Copyright (c) 2015-present, Facebook, Inc.
# All rights reserved.
# #
# This source code is licensed under the BSD style license found in the # This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree. An additional grant # LICENSE file in the root directory of this source tree.
# of patent rights can be found in the PATENTS file in the same directory.
import itertools import itertools
import logging import logging

@ -1,9 +1,7 @@
# Copyright (c) 2016 - present Facebook, Inc. # Copyright (c) 2016-present, Facebook, Inc.
# All rights reserved.
# #
# This source code is licensed under the BSD style license found in the # This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree. An additional grant # LICENSE file in the root directory of this source tree.
# of patent rights can be found in the PATENTS file in the same directory.
import logging import logging
import os import os

@ -1,11 +1,9 @@
#!/usr/bin/env python #!/usr/bin/env python
# Copyright (c) 2015 - present Facebook, Inc. # Copyright (c) 2015-present, Facebook, Inc.
# All rights reserved.
# #
# This source code is licensed under the BSD style license found in the # This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree. An additional grant # LICENSE file in the root directory of this source tree.
# of patent rights can be found in the PATENTS file in the same directory.
from __future__ import absolute_import from __future__ import absolute_import
from __future__ import division from __future__ import division

@ -1,9 +1,7 @@
# Copyright (c) 2015 - present Facebook, Inc. # Copyright (c) 2015-present, Facebook, Inc.
# All rights reserved.
# #
# This source code is licensed under the BSD style license found in the # This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree. An additional grant # LICENSE file in the root directory of this source tree.
# of patent rights can be found in the PATENTS file in the same directory.
import logging import logging
import os import os

@ -1,9 +1,7 @@
# Copyright (c) 2013 - present Facebook, Inc. # Copyright (c) 2013-present, Facebook, Inc.
# All rights reserved.
# #
# This source code is licensed under the BSD style license found in the # This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree. An additional grant # LICENSE file in the root directory of this source tree.
# of patent rights can be found in the PATENTS file in the same directory.
from __future__ import absolute_import from __future__ import absolute_import
from __future__ import division from __future__ import division

@ -1,9 +1,7 @@
# Copyright (c) 2015 - present Facebook, Inc. # Copyright (c) 2015-present, Facebook, Inc.
# All rights reserved.
# #
# This source code is licensed under the BSD style license found in the # This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree. An additional grant # LICENSE file in the root directory of this source tree.
# of patent rights can be found in the PATENTS file in the same directory.
from __future__ import absolute_import from __future__ import absolute_import
from __future__ import division from __future__ import division

@ -1,9 +1,7 @@
# Copyright (c) 2015 - present Facebook, Inc. # Copyright (c) 2015-present, Facebook, Inc.
# All rights reserved.
# #
# This source code is licensed under the BSD style license found in the # This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree. An additional grant # LICENSE file in the root directory of this source tree.
# of patent rights can be found in the PATENTS file in the same directory.
from __future__ import absolute_import from __future__ import absolute_import
from __future__ import division from __future__ import division

@ -1,10 +1,8 @@
# Copyright (c) 2009 - 2013 Monoidics ltd. # Copyright (c) 2009-2013, Monoidics ltd.
# Copyright (c) 2013 - present Facebook, Inc. # Copyright (c) 2013-present, Facebook, Inc.
# All rights reserved.
# #
# This source code is licensed under the BSD style license found in the # This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree. An additional grant # LICENSE file in the root directory of this source tree.
# of patent rights can be found in the PATENTS file in the same directory.
from __future__ import absolute_import from __future__ import absolute_import
from __future__ import division from __future__ import division

@ -1,9 +1,7 @@
# Copyright (c) 2013 - present Facebook, Inc. # Copyright (c) 2013-present, Facebook, Inc.
# All rights reserved.
# #
# This source code is licensed under the BSD style license found in the # This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree. An additional grant # LICENSE file in the root directory of this source tree.
# of patent rights can be found in the PATENTS file in the same directory.
from __future__ import absolute_import from __future__ import absolute_import
from __future__ import division from __future__ import division

@ -1,9 +1,7 @@
# Copyright (c) 2013 - present Facebook, Inc. # Copyright (c) 2013-present, Facebook, Inc.
# All rights reserved.
# #
# This source code is licensed under the BSD style license found in the # This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree. An additional grant # LICENSE file in the root directory of this source tree.
# of patent rights can be found in the PATENTS file in the same directory.
from __future__ import absolute_import from __future__ import absolute_import
from __future__ import division from __future__ import division

@ -1,11 +1,9 @@
#!/usr/bin/env python2.7 #!/usr/bin/env python2.7
# Copyright (c) 2016 - present Facebook, Inc. # Copyright (c) 2016-present, Facebook, Inc.
# All rights reserved.
# #
# This source code is licensed under the BSD style license found in the # This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree. An additional grant # LICENSE file in the root directory of this source tree.
# of patent rights can be found in the PATENTS file in the same directory.
from __future__ import absolute_import from __future__ import absolute_import
from __future__ import division from __future__ import division

@ -1,9 +1,7 @@
# Copyright (c) 2015 - present Facebook, Inc. # Copyright (c) 2015-present, Facebook, Inc.
# All rights reserved.
# #
# This source code is licensed under the BSD style license found in the # This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree. An additional grant # LICENSE file in the root directory of this source tree.
# of patent rights can be found in the PATENTS file in the same directory.
ROOT_DIR = ../.. ROOT_DIR = ../..
include $(ROOT_DIR)/Makefile.config include $(ROOT_DIR)/Makefile.config

@ -1,9 +1,7 @@
# Copyright (c) 2017 - present Facebook, Inc. # Copyright (c) 2017-present, Facebook, Inc.
# All rights reserved.
# #
# This source code is licensed under the BSD style license found in the # This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree. An additional grant # LICENSE file in the root directory of this source tree.
# of patent rights can be found in the PATENTS file in the same directory.
SOURCES=$(wildcard *.c) SOURCES=$(wildcard *.c)
OBJECTS=$(SOURCES:.c=.o) OBJECTS=$(SOURCES:.c=.o)

@ -1,11 +1,9 @@
/* /*
* Copyright (c) 2009 - 2013 Monoidics ltd. * Copyright (c) 2009-2013, Monoidics ltd.
* Copyright (c) 2013 - present Facebook, Inc. * Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
// Basic modelling of some glib functions // Basic modelling of some glib functions

@ -1,11 +1,9 @@
/* /*
* Copyright (c) 2009 - 2013 Monoidics ltd. * Copyright (c) 2009-2013, Monoidics ltd.
* Copyright (c) 2013 - present Facebook, Inc. * Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
// builtins to be used to model library functions // builtins to be used to model library functions

@ -1,11 +1,9 @@
/* /*
* Copyright (c) 2009 - 2013 Monoidics ltd. * Copyright (c) 2009-2013, Monoidics ltd.
* Copyright (c) 2013 - present Facebook, Inc. * Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
// builtins to be used to model library functions // builtins to be used to model library functions
@ -69,7 +67,7 @@ clock_t __infer_nondet_clock_t();
void __infer_fail(char*); void __infer_fail(char*);
#define INFER_EXCLUDE_CONDITION_MSG(cond, msg) \ #define INFER_EXCLUDE_CONDITION_MSG(cond, msg) \
if (cond) \ if (cond) \
__infer_fail(msg) __infer_fail(msg)
#endif #endif
// builtin: force arr to be an array // builtin: force arr to be an array

@ -1,11 +1,9 @@
/* /*
* Copyright (c) 2009 - 2013 Monoidics ltd. * Copyright (c) 2009-2013, Monoidics ltd.
* Copyright (c) 2013 - present Facebook, Inc. * Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
// Basic modelling of some libc functions // Basic modelling of some libc functions
@ -96,7 +94,8 @@ extern int errno;
#ifdef __APPLE__ #ifdef __APPLE__
#define __ERRNO_FUN_NAME __error #define __ERRNO_FUN_NAME __error
#else #else
#define __ERRNO_FUN_NAME() __errno_location(void) __THROW __attribute__ ((__const__)) #define __ERRNO_FUN_NAME() \
__errno_location(void) __THROW __attribute__((__const__))
#endif #endif
int* __ERRNO_FUN_NAME() { return &errno; } int* __ERRNO_FUN_NAME() { return &errno; }
@ -1479,8 +1478,7 @@ int pthread_mutex_destroy(pthread_mutex_t* mutex) {
__infer_model_pthread_mutex_t* model = (__infer_model_pthread_mutex_t*)mutex; __infer_model_pthread_mutex_t* model = (__infer_model_pthread_mutex_t*)mutex;
INFER_EXCLUDE_CONDITION_MSG(model->initialized != 1, INFER_EXCLUDE_CONDITION_MSG(model->initialized != 1,
"DESTROYING_UNINITIALIZED_MUTEX"); "DESTROYING_UNINITIALIZED_MUTEX");
INFER_EXCLUDE_CONDITION_MSG(model->locked != 0, INFER_EXCLUDE_CONDITION_MSG(model->locked != 0, "DESTROYING_LOCKED_MUTEX");
"DESTROYING_LOCKED_MUTEX");
model->initialized = -1; model->initialized = -1;
return __infer_nondet_int(); return __infer_nondet_int();
} }
@ -1533,8 +1531,7 @@ int pthread_mutex_unlock(pthread_mutex_t* mutex) {
__infer_model_pthread_mutex_t* model = (__infer_model_pthread_mutex_t*)mutex; __infer_model_pthread_mutex_t* model = (__infer_model_pthread_mutex_t*)mutex;
INFER_EXCLUDE_CONDITION_MSG(model->initialized != 1, INFER_EXCLUDE_CONDITION_MSG(model->initialized != 1,
"UNLOCKING_UNINITIALIZED_MUTEX"); "UNLOCKING_UNINITIALIZED_MUTEX");
INFER_EXCLUDE_CONDITION_MSG(model->locked == 0, INFER_EXCLUDE_CONDITION_MSG(model->locked == 0, "UNLOCKING_UNLOCKED_MUTEX");
"UNLOCKING_UNLOCKED_MUTEX");
model->locked = 0; model->locked = 0;
return __infer_nondet_int(); return __infer_nondet_int();
} }
@ -1578,26 +1575,31 @@ typedef __infer_model_pthread_spinlock_t pthread_spinlock_t;
#endif #endif
int pthread_spin_destroy(pthread_spinlock_t* lock) { int pthread_spin_destroy(pthread_spinlock_t* lock) {
__infer_model_pthread_spinlock_t* model = (__infer_model_pthread_spinlock_t*)lock; __infer_model_pthread_spinlock_t* model =
(__infer_model_pthread_spinlock_t*)lock;
INFER_EXCLUDE_CONDITION_MSG(model->locked != 0, "DESTROYING_LOCKED_SPINLOCK"); INFER_EXCLUDE_CONDITION_MSG(model->locked != 0, "DESTROYING_LOCKED_SPINLOCK");
return 0; return 0;
} }
int pthread_spin_init(pthread_spinlock_t* lock, int pshared) { int pthread_spin_init(pthread_spinlock_t* lock, int pshared) {
__infer_model_pthread_spinlock_t* model = (__infer_model_pthread_spinlock_t*)lock; __infer_model_pthread_spinlock_t* model =
(__infer_model_pthread_spinlock_t*)lock;
model->locked = 0; model->locked = 0;
return 0; return 0;
} }
int pthread_spin_lock(pthread_spinlock_t* lock) { int pthread_spin_lock(pthread_spinlock_t* lock) {
__infer_model_pthread_spinlock_t* model = (__infer_model_pthread_spinlock_t*)lock; __infer_model_pthread_spinlock_t* model =
INFER_EXCLUDE_CONDITION_MSG(model->locked != 0, "LOCKING_ALREADY_LOCKED_SPINLOCK"); (__infer_model_pthread_spinlock_t*)lock;
INFER_EXCLUDE_CONDITION_MSG(model->locked != 0,
"LOCKING_ALREADY_LOCKED_SPINLOCK");
model->locked = 1; model->locked = 1;
return 0; return 0;
} }
int pthread_spin_trylock(pthread_spinlock_t* lock) { int pthread_spin_trylock(pthread_spinlock_t* lock) {
__infer_model_pthread_spinlock_t* model = (__infer_model_pthread_spinlock_t*)lock; __infer_model_pthread_spinlock_t* model =
(__infer_model_pthread_spinlock_t*)lock;
if (model->locked) { if (model->locked) {
return EBUSY; return EBUSY;
} else { } else {
@ -1607,8 +1609,10 @@ int pthread_spin_trylock(pthread_spinlock_t* lock) {
} }
int pthread_spin_unlock(pthread_spinlock_t* lock) { int pthread_spin_unlock(pthread_spinlock_t* lock) {
__infer_model_pthread_spinlock_t* model = (__infer_model_pthread_spinlock_t*)lock; __infer_model_pthread_spinlock_t* model =
INFER_EXCLUDE_CONDITION_MSG(model->locked == 0, "UNLOCKING_UNLOCKED_SPINLOCK"); (__infer_model_pthread_spinlock_t*)lock;
INFER_EXCLUDE_CONDITION_MSG(model->locked == 0,
"UNLOCKING_UNLOCKED_SPINLOCK");
model->locked = 0; model->locked = 0;
return 0; return 0;
} }
@ -1659,9 +1663,7 @@ int isatty(int fildes) {
return ret; return ret;
} }
void perror(const char* s) { void perror(const char* s) { __require_allocated_array(s); }
__require_allocated_array(s);
}
int pipe(int fildes[2]) { int pipe(int fildes[2]) {
int ret = __infer_nondet_int(); int ret = __infer_nondet_int();

@ -1,11 +1,9 @@
/* /*
* Copyright (c) 2009 - 2013 Monoidics ltd. * Copyright (c) 2009-2013, Monoidics ltd.
* Copyright (c) 2013 - present Facebook, Inc. * Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
// modelling of math functions // modelling of math functions

@ -1,11 +1,9 @@
/* /*
* Copyright (c) 2009 - 2013 Monoidics ltd. * Copyright (c) 2009-2013, Monoidics ltd.
* Copyright (c) 2013 - present Facebook, Inc. * Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
// modelling of wide character functions // modelling of wide character functions

@ -1,11 +1,9 @@
/* /*
* Copyright (c) 2009 - 2013 Monoidics ltd. * Copyright (c) 2009-2013, Monoidics ltd.
* Copyright (c) 2013 - present Facebook, Inc. * Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
// modelling of wctype functions // modelling of wctype functions

@ -1,11 +1,9 @@
/* /*
* Copyright (c) 2009 - 2013 Monoidics ltd. * Copyright (c) 2009-2013, Monoidics ltd.
* Copyright (c) 2013 - present Facebook, Inc. * Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
* *
* This source code is licensed under the BSD style license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. An additional grant * LICENSE file in the root directory of this source tree.
* of patent rights can be found in the PATENTS file in the same directory.
*/ */
// Basic modelling of some xlib functions // Basic modelling of some xlib functions

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save