Skip to content

Commit

Permalink
Relicense
Browse files Browse the repository at this point in the history
  • Loading branch information
msprotz committed Aug 28, 2024
1 parent 2dfc254 commit 7fc5493
Show file tree
Hide file tree
Showing 179 changed files with 198 additions and 177 deletions.
File renamed without changes.
21 changes: 21 additions & 0 deletions LICENSE-MIT
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Eurydice Contributors

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:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,6 @@ $ ./krml --help

## License

KaRaMeL is released under the [Apache 2.0 license]; see `LICENSE` for more details.
KaRaMeL is released under the [Apache 2.0 license] and MIT license; see `LICENSE-*` for more details.

[Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
2 changes: 1 addition & 1 deletion include/krml/c_endianness.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License. */
Licensed under the Apache 2.0 and MIT Licenses. */

#ifndef __KRML_ENDIAN_H
#define __KRML_ENDIAN_H
Expand Down
2 changes: 1 addition & 1 deletion include/krml/internal/builtin.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License. */
Licensed under the Apache 2.0 and MIT Licenses. */

#ifndef __KRML_BUILTIN_H
#define __KRML_BUILTIN_H
Expand Down
2 changes: 1 addition & 1 deletion include/krml/internal/callconv.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License. */
Licensed under the Apache 2.0 and MIT Licenses. */

#ifndef __KRML_CALLCONV_H
#define __KRML_CALLCONV_H
Expand Down
2 changes: 1 addition & 1 deletion include/krml/internal/compat.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License. */
Licensed under the Apache 2.0 and MIT Licenses. */

#ifndef KRML_COMPAT_H
#define KRML_COMPAT_H
Expand Down
2 changes: 1 addition & 1 deletion include/krml/internal/debug.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License. */
Licensed under the Apache 2.0 and MIT Licenses. */

#ifndef __KRML_DEBUG_H
#define __KRML_DEBUG_H
Expand Down
2 changes: 1 addition & 1 deletion include/krml/internal/target.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License. */
Licensed under the Apache 2.0 and MIT Licenses. */

#ifndef __KRML_TARGET_H
#define __KRML_TARGET_H
Expand Down
2 changes: 1 addition & 1 deletion include/krml/internal/types.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License. */
Licensed under the Apache 2.0 and MIT Licenses. */

#ifndef KRML_TYPES_H
#define KRML_TYPES_H
Expand Down
2 changes: 1 addition & 1 deletion include/krml/internal/wasmsupport.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License. */
Licensed under the Apache 2.0 and MIT Licenses. */

/* This file is automatically included when compiling with -wasm -d force-c */
#define WasmSupport_check_buffer_size(X)
2 changes: 1 addition & 1 deletion include/krml/lowstar_endianness.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License. */
Licensed under the Apache 2.0 and MIT Licenses. */

#ifndef __LOWSTAR_ENDIANNESS_H
#define __LOWSTAR_ENDIANNESS_H
Expand Down
2 changes: 1 addition & 1 deletion krmllib/c/c.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License. */
Licensed under the Apache 2.0 and MIT Licenses. */

#include <stdlib.h>
#include <stdbool.h>
Expand Down
2 changes: 1 addition & 1 deletion krmllib/c/c_string.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License. */
Licensed under the Apache 2.0 and MIT Licenses. */

#include "C_String.h"

Expand Down
2 changes: 1 addition & 1 deletion krmllib/c/fstar_bytes.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License. */
Licensed under the Apache 2.0 and MIT Licenses. */

/******************************************************************************/
/* NOT LOW*: implementing FStar.Bytes.bytes as leaky fat pointers with a */
Expand Down
2 changes: 1 addition & 1 deletion krmllib/c/fstar_char.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License. */
Licensed under the Apache 2.0 and MIT Licenses. */

#include "FStar_Char.h"

Expand Down
2 changes: 1 addition & 1 deletion krmllib/c/fstar_date.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License. */
Licensed under the Apache 2.0 and MIT Licenses. */

#include "FStar_Date.h"

Expand Down
2 changes: 1 addition & 1 deletion krmllib/c/fstar_dyn.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License. */
Licensed under the Apache 2.0 and MIT Licenses. */

#include <krml/internal/types.h>

Expand Down
2 changes: 1 addition & 1 deletion krmllib/c/fstar_hyperstack_io.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License. */
Licensed under the Apache 2.0 and MIT Licenses. */

#include "FStar_HyperStack_IO.h"

Expand Down
2 changes: 1 addition & 1 deletion krmllib/c/fstar_int16.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License. */
Licensed under the Apache 2.0 and MIT Licenses. */

#include "FStar_Int16.h"

Expand Down
2 changes: 1 addition & 1 deletion krmllib/c/fstar_int32.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License. */
Licensed under the Apache 2.0 and MIT Licenses. */

#include "FStar_Int32.h"

Expand Down
2 changes: 1 addition & 1 deletion krmllib/c/fstar_int64.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License. */
Licensed under the Apache 2.0 and MIT Licenses. */

#include "FStar_Int64.h"

Expand Down
2 changes: 1 addition & 1 deletion krmllib/c/fstar_int8.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License. */
Licensed under the Apache 2.0 and MIT Licenses. */

#include "FStar_Int8.h"

Expand Down
2 changes: 1 addition & 1 deletion krmllib/c/fstar_io.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License. */
Licensed under the Apache 2.0 and MIT Licenses. */

#include "FStar_IO.h"

Expand Down
2 changes: 1 addition & 1 deletion krmllib/c/fstar_string.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License. */
Licensed under the Apache 2.0 and MIT Licenses. */

#include "Prims.h"
#include "FStar_String.h"
Expand Down
2 changes: 1 addition & 1 deletion krmllib/c/fstar_uint128_gcc64.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License. */
Licensed under the Apache 2.0 and MIT Licenses. */

/******************************************************************************/
/* Machine integers (128-bit arithmetic) */
Expand Down
2 changes: 1 addition & 1 deletion krmllib/c/fstar_uint128_msvc.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License. */
Licensed under the Apache 2.0 and MIT Licenses. */

/* This file was generated by KaRaMeL <https://github.com/FStarLang/karamel>
* then hand-edited to use MSVC intrinsics KaRaMeL invocation:
Expand Down
2 changes: 1 addition & 1 deletion krmllib/c/fstar_uint128_struct_endianness.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License. */
Licensed under the Apache 2.0 and MIT Licenses. */

#ifndef FSTAR_UINT128_STRUCT_ENDIANNESS_H
#define FSTAR_UINT128_STRUCT_ENDIANNESS_H
Expand Down
2 changes: 1 addition & 1 deletion krmllib/c/fstar_uint16.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License. */
Licensed under the Apache 2.0 and MIT Licenses. */

#include "FStar_UInt_8_16_32_64.h"

Expand Down
2 changes: 1 addition & 1 deletion krmllib/c/fstar_uint32.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License. */
Licensed under the Apache 2.0 and MIT Licenses. */

#include "FStar_UInt_8_16_32_64.h"

Expand Down
2 changes: 1 addition & 1 deletion krmllib/c/fstar_uint64.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License. */
Licensed under the Apache 2.0 and MIT Licenses. */

#include "FStar_UInt_8_16_32_64.h"

Expand Down
2 changes: 1 addition & 1 deletion krmllib/c/fstar_uint8.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License. */
Licensed under the Apache 2.0 and MIT Licenses. */

#include "FStar_UInt_8_16_32_64.h"

Expand Down
2 changes: 1 addition & 1 deletion krmllib/c/prims.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License. */
Licensed under the Apache 2.0 and MIT Licenses. */

#include "Prims.h"
#include "FStar_Int32.h"
Expand Down
2 changes: 1 addition & 1 deletion krmllib/c/testlib.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License. */
Licensed under the Apache 2.0 and MIT Licenses. */

#include "TestLib.h"

Expand Down
2 changes: 1 addition & 1 deletion krmllib/copyright-header.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License.
Licensed under the Apache 2.0 and MIT Licenses.
*/
2 changes: 1 addition & 1 deletion krmllib/dist/generic/C.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License.
Licensed under the Apache 2.0 and MIT Licenses.
*/


Expand Down
2 changes: 1 addition & 1 deletion krmllib/dist/generic/C_Failure.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License.
Licensed under the Apache 2.0 and MIT Licenses.
*/


Expand Down
2 changes: 1 addition & 1 deletion krmllib/dist/generic/C_Loops.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License.
Licensed under the Apache 2.0 and MIT Licenses.
*/


Expand Down
2 changes: 1 addition & 1 deletion krmllib/dist/generic/C_String.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License.
Licensed under the Apache 2.0 and MIT Licenses.
*/


Expand Down
2 changes: 1 addition & 1 deletion krmllib/dist/generic/FStar_All.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License.
Licensed under the Apache 2.0 and MIT Licenses.
*/


Expand Down
2 changes: 1 addition & 1 deletion krmllib/dist/generic/FStar_BigOps.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License.
Licensed under the Apache 2.0 and MIT Licenses.
*/


Expand Down
2 changes: 1 addition & 1 deletion krmllib/dist/generic/FStar_BitVector.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License.
Licensed under the Apache 2.0 and MIT Licenses.
*/


Expand Down
2 changes: 1 addition & 1 deletion krmllib/dist/generic/FStar_Bytes.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License.
Licensed under the Apache 2.0 and MIT Licenses.
*/


Expand Down
2 changes: 1 addition & 1 deletion krmllib/dist/generic/FStar_Calc.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License.
Licensed under the Apache 2.0 and MIT Licenses.
*/


Expand Down
2 changes: 1 addition & 1 deletion krmllib/dist/generic/FStar_Char.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License.
Licensed under the Apache 2.0 and MIT Licenses.
*/


Expand Down
2 changes: 1 addition & 1 deletion krmllib/dist/generic/FStar_Date.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License.
Licensed under the Apache 2.0 and MIT Licenses.
*/


Expand Down
2 changes: 1 addition & 1 deletion krmllib/dist/generic/FStar_ErasedLogic.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License.
Licensed under the Apache 2.0 and MIT Licenses.
*/


Expand Down
2 changes: 1 addition & 1 deletion krmllib/dist/generic/FStar_Float.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License.
Licensed under the Apache 2.0 and MIT Licenses.
*/


Expand Down
2 changes: 1 addition & 1 deletion krmllib/dist/generic/FStar_FunctionalExtensionality.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License.
Licensed under the Apache 2.0 and MIT Licenses.
*/


Expand Down
2 changes: 1 addition & 1 deletion krmllib/dist/generic/FStar_GSet.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License.
Licensed under the Apache 2.0 and MIT Licenses.
*/


Expand Down
2 changes: 1 addition & 1 deletion krmllib/dist/generic/FStar_Heap.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License.
Licensed under the Apache 2.0 and MIT Licenses.
*/


Expand Down
2 changes: 1 addition & 1 deletion krmllib/dist/generic/FStar_HyperStack_All.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License.
Licensed under the Apache 2.0 and MIT Licenses.
*/


Expand Down
2 changes: 1 addition & 1 deletion krmllib/dist/generic/FStar_HyperStack_IO.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (c) INRIA and Microsoft Corporation. All rights reserved.
Licensed under the Apache 2.0 License.
Licensed under the Apache 2.0 and MIT Licenses.
*/


Expand Down
Loading

0 comments on commit 7fc5493

Please sign in to comment.