Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make cases for lowstar_endianness consistent #252

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/krml/internal/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ typedef struct FStar_UInt128_uint128_s {
* latter is for internal use. */
typedef FStar_UInt128_uint128 FStar_UInt128_t, uint128_t;

#include "krml/lowstar_endianness.h"
#include "krml/lowstar_endianness_builtins.h"

#endif

Expand Down
2 changes: 1 addition & 1 deletion include/krmllib.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "krml/internal/debug.h"
#include "krml/internal/types.h"

#include "krml/lowstar_endianness.h"
#include "krml/lowstar_endianness_builtins.h"
#include "krml/fstar_int.h"

#endif /* __KRMLLIB_H */
2 changes: 1 addition & 1 deletion krmllib/dist/generic/fstar_uint128_gcc64.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#include "FStar_UInt128.h"
#include "FStar_UInt_8_16_32_64.h"
#include "lowstar_endianness.h"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one seems wrong

#include "LowStar_Endianness.h"

/* GCC + using native unsigned __int128 support */

Expand Down
1 change: 0 additions & 1 deletion krmllib/dist/generic/lowstar_endianness.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@ static inline FStar_UInt128_uint128 load128_be(uint8_t *x0);

#define __LowStar_Endianness_H_DEFINED
#endif
diff --git a/krmllib/dist/generic/LowStar_Endianness.h b/krmllib/dist/generic/LowStar_Endianness.h
2 changes: 1 addition & 1 deletion krmllib/dist/minimal/FStar_UInt128.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <inttypes.h>
#include <stdbool.h>
#include "krml/internal/compat.h"
#include "krml/lowstar_endianness.h"
#include "krml/lowstar_endianness_builtins.h"
#include "krml/internal/types.h"
#include "krml/internal/target.h"
static inline FStar_UInt128_uint128
Expand Down
2 changes: 1 addition & 1 deletion krmllib/dist/minimal/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ USER_TARGET=libkrmllib.a
USER_CFLAGS=
USER_C_FILES=fstar_uint128.c
ALL_C_FILES=
ALL_H_FILES=FStar_UInt128.h FStar_UInt_8_16_32_64.h lowstar_endianness.h
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here should be the builtin one

ALL_H_FILES=FStar_UInt128.h FStar_UInt_8_16_32_64.h LowStar_Endianness.h
2 changes: 1 addition & 1 deletion krmllib/dist/minimal/fstar_uint128_gcc64.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#include "FStar_UInt128.h"
#include "FStar_UInt_8_16_32_64.h"
#include "lowstar_endianness.h"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

#include "LowStar_Endianness.h"

/* GCC + using native unsigned __int128 support */

Expand Down
3 changes: 1 addition & 2 deletions krmllib/dist/minimal/lowstar_endianness.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <inttypes.h>
#include <stdbool.h>
#include "krml/internal/compat.h"
#include "krml/lowstar_endianness.h"
#include "krml/lowstar_endianness_builtins.h"
#include "krml/internal/types.h"
#include "krml/internal/target.h"
static inline void store128_le(uint8_t *x0, FStar_UInt128_uint128 x1);
Expand All @@ -27,4 +27,3 @@ static inline FStar_UInt128_uint128 load128_be(uint8_t *x0);

#define __LowStar_Endianness_H_DEFINED
#endif
diff --git a/krmllib/dist/minimal/LowStar_Endianness.h b/krmllib/dist/minimal/LowStar_Endianness.h
2 changes: 1 addition & 1 deletion krmllib/hints/C.fst.hints

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 17 additions & 17 deletions krmllib/hints/Spec.Loops.fst.hints

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.