Skip to content

Commit

Permalink
Update copyright/license headers (#1084)
Browse files Browse the repository at this point in the history
* Update copyright/license headers
  • Loading branch information
RustanLeino committed Jan 29, 2021
1 parent fbfe312 commit 1f48c75
Show file tree
Hide file tree
Showing 58 changed files with 169 additions and 17 deletions.
2 changes: 2 additions & 0 deletions Binaries/DafnyPrelude.bpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
// Edited sequence axioms 20 October 2009 by Alex Summers.
// Modified 2014 by Dan Rosen.
// Copyright (c) 2008-2014, Microsoft.
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT

const $$Language$Dafny: bool; // To be recognizable to the ModelViewer as
axiom $$Language$Dafny; // coming from a Dafny program.
Expand Down
3 changes: 3 additions & 0 deletions Binaries/DafnyRuntime.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT

package dafny

import (
Expand Down
3 changes: 3 additions & 0 deletions Binaries/DafnyRuntime.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT

#pragma once

#include <iostream>
Expand Down
3 changes: 3 additions & 0 deletions Binaries/DafnyRuntime.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT

const BigNumber = require('bignumber.js');
BigNumber.config({ MODULO_MODE: BigNumber.EUCLID })
let _dafny = (function() {
Expand Down
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,6 @@ Then run

This will install pre-commit hooks in your .git/hooks directory.

# Code of Conduct

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.

# License

Dafny itself is licensed under the MIT license. (See LICENSE.txt in the root directory for details.) The subdirectory `third_party` contains third party material; see NOTICES.txt for more details.
3 changes: 3 additions & 0 deletions Source/Dafny/BigIntegerParser.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT

using System;
using System.Numerics;
using System.Globalization;
Expand Down
3 changes: 3 additions & 0 deletions Source/Dafny/Cloner.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT

using System;
using System.Collections.Generic;
using System.Numerics;
Expand Down
2 changes: 2 additions & 0 deletions Source/Dafny/Compiler-Csharp.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//-----------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation. All Rights Reserved.
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT
//
//-----------------------------------------------------------------------------
using System;
Expand Down
4 changes: 3 additions & 1 deletion Source/Dafny/Compiler-cpp.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
//-----------------------------------------------------------------------------
//
// Copyright (C) Amazon. All Rights Reserved.
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT
//
//-----------------------------------------------------------------------------

using System;
using System.CodeDom;
using System.Collections.Generic;
Expand Down
3 changes: 2 additions & 1 deletion Source/Dafny/Compiler-go.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//-----------------------------------------------------------------------------
//
// Copyright (C) Amazon. All Rights Reserved.
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT
//
//-----------------------------------------------------------------------------
using System;
Expand Down
4 changes: 3 additions & 1 deletion Source/Dafny/Compiler-java.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
//-----------------------------------------------------------------------------
//
// Copyright (C) Amazon. All Rights Reserved.
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT
//
//-----------------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Linq;
Expand Down
4 changes: 3 additions & 1 deletion Source/Dafny/Compiler-js.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
//-----------------------------------------------------------------------------
//
// Copyright (C) Amazon. All Rights Reserved.
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT
//
//-----------------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Linq;
Expand Down
2 changes: 2 additions & 0 deletions Source/Dafny/Compiler.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//-----------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation. All Rights Reserved.
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT
//
//-----------------------------------------------------------------------------
using System;
Expand Down
2 changes: 2 additions & 0 deletions Source/Dafny/Dafny.atg
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/*-----------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation. All Rights Reserved.
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT
//
//-----------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions Source/Dafny/DafnyAst.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
//-----------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation. All Rights Reserved.
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT
//
//-----------------------------------------------------------------------------
using System;
Expand Down
2 changes: 2 additions & 0 deletions Source/Dafny/DafnyMain.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//-----------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation. All Rights Reserved.
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT
//
//-----------------------------------------------------------------------------
using System;
Expand Down
3 changes: 3 additions & 0 deletions Source/Dafny/DafnyOptions.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT

using System;
using System.Collections.Generic;
using System.Linq;
Expand Down
3 changes: 3 additions & 0 deletions Source/Dafny/Printer.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
//-----------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation. All Rights Reserved.
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT
//
//-----------------------------------------------------------------------------

using System;
using System.IO;
using System.Collections.Generic;
Expand Down
2 changes: 2 additions & 0 deletions Source/Dafny/RefinementTransformer.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//-----------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation. All Rights Reserved.
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT
//
//-----------------------------------------------------------------------------
// This file contains the transformations that are applied to a module that is
Expand Down
3 changes: 3 additions & 0 deletions Source/Dafny/Reporting.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT

using Microsoft.Boogie;
using System;
using System.Collections.Generic;
Expand Down
2 changes: 2 additions & 0 deletions Source/Dafny/Resolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
//-----------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation. All Rights Reserved.
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT
//
//-----------------------------------------------------------------------------
using System;
Expand Down
3 changes: 3 additions & 0 deletions Source/Dafny/Rewriter.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT

using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
Expand Down
3 changes: 3 additions & 0 deletions Source/Dafny/SccGraph.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT

using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
Expand Down
4 changes: 3 additions & 1 deletion Source/Dafny/Translator.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//-----------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation. All Rights Reserved.
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT
//
//-----------------------------------------------------------------------------
using System;
Expand Down Expand Up @@ -12234,7 +12236,7 @@ void TrCallStmt(CallStmt s, BoogieStmtListBuilder builder, List<Variable> locals
for (int i = 0; i < s.Lhs.Count; i++) {
var lhs = s.Lhs[i];
lhsTypes.Add(lhs.Type);
builder.Add(new CommentCmd("TrCallStmt: Adding lhs " + lhs + " with type " + lhs.Type));
builder.Add(new CommentCmd("TrCallStmt: Adding lhs with type " + lhs.Type));
if (bLhss[i] == null) { // (in the current implementation, the second parameter "true" to ProcessLhss implies that all bLhss[*] will be null)
// create temporary local and assign it to bLhss[i]
string nm = CurrentIdGenerator.FreshId("$rhs##");
Expand Down
3 changes: 3 additions & 0 deletions Source/Dafny/Triggers/QuantifierSplitter.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT

using Microsoft.Boogie;
using System;
using System.Collections.Generic;
Expand Down
3 changes: 3 additions & 0 deletions Source/Dafny/Triggers/QuantifiersCollection.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT

#define QUANTIFIER_WARNINGS

using System;
Expand Down
3 changes: 3 additions & 0 deletions Source/Dafny/Triggers/QuantifiersCollector.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT

using System;
using System.Collections.Generic;
using System.Linq;
Expand Down
3 changes: 3 additions & 0 deletions Source/Dafny/Triggers/TriggerExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT

#define THROW_UNSUPPORTED_COMPARISONS

using Microsoft.Dafny;
Expand Down
3 changes: 3 additions & 0 deletions Source/Dafny/Triggers/TriggerUtils.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT

#define DEBUG_AUTO_TRIGGERS

using System;
Expand Down
3 changes: 3 additions & 0 deletions Source/Dafny/Triggers/TriggersCollector.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT

using System;
using System.Collections.Generic;
using System.Linq;
Expand Down
3 changes: 3 additions & 0 deletions Source/Dafny/Util.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT

using System;
using System.Collections.Generic;
using System.Linq;
Expand Down
2 changes: 2 additions & 0 deletions Source/DafnyDriver/DafnyDriver.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//-----------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation. All Rights Reserved.
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT
//
//-----------------------------------------------------------------------------
//---------------------------------------------------------------------------------------------
Expand Down
3 changes: 3 additions & 0 deletions Source/DafnyRuntime/DafnyRuntime.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT

#if ISDAFNYRUNTIMELIB
using System; // for Func
using System.Numerics;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT

package dafny;

import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT

package dafny;

import java.math.BigInteger;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT

package dafny;

import java.math.BigInteger;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT

package dafny;

import java.math.BigInteger;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT

package dafny;

public class DafnyHaltException extends RuntimeException {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT

package dafny;

import java.util.*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT

package dafny;

import java.math.BigInteger;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT

package dafny;

import java.math.BigInteger;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT

package dafny;

import java.util.*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT

package dafny;

import java.lang.reflect.InvocationTargetException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT

package dafny;

@SuppressWarnings({"unchecked", "deprecation"})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT

package dafny;

@SuppressWarnings({"unchecked", "deprecation"})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT

package dafny;

import java.lang.reflect.InvocationTargetException;
Expand Down
5 changes: 4 additions & 1 deletion Source/DafnyServer/CounterExampleProvider.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using System;
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT

using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
Expand Down
3 changes: 3 additions & 0 deletions Source/DafnyServer/DafnyHelper.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT

using System;
using System.Collections.Generic;
using System.IO;
Expand Down
3 changes: 3 additions & 0 deletions Source/DafnyServer/Server.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright by the contributors to the Dafny Project
// SPDX-License-Identifier: MIT

using System;
using System.IO;
using System.Text;
Expand Down
Loading

0 comments on commit 1f48c75

Please sign in to comment.