-
Notifications
You must be signed in to change notification settings - Fork 0
Ported to TPM #4
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
Open
SenuaChloe
wants to merge
1
commit into
main
Choose a base branch
from
1-port-training-example-to-tpm
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| // tis-analyzer -val -val-profile analyzer assembly1.c -gui | ||
| // tis gui assembly1 | ||
|
|
||
| #include <stdio.h> | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,17 @@ | ||
| // tis-analyzer -val -val-profile analyzer register.c | ||
| // tis gui register | ||
| // gcc register.c -o /dev/null | ||
|
|
||
| #include <stdio.h> | ||
|
|
||
| int main(void) { | ||
| // in C, register and auto are obsolete keywords, tis-analyzer ignores them | ||
| // in C, register and auto are obsolete keywords, the analyzer ignores them | ||
| auto int x = 4; | ||
| register int y = 5; | ||
| int z = x + y; | ||
|
|
||
| printf("z = %d\n", z); | ||
|
|
||
| // tis-analyzer does not detect these ; your compiler will | ||
| // the analyzer does not detect these ; your compiler will | ||
| int *px = &x; // not necessarily legal | ||
| int *py = &y; // never legal | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| { | ||
| "common": { | ||
| "prefix_path": "..", | ||
| "val": true | ||
| }, | ||
| "analyses": [ | ||
| { | ||
| "name": "assembly1", | ||
| "files": [ "assembly1.c" ], | ||
| "val-profile": "analyzer" | ||
| }, | ||
| { | ||
| "name": "assembly2", | ||
| "files": [ "assembly2.c" ], | ||
| "machdep": "x86_64", | ||
| "val-profile": "analyzer" | ||
| }, | ||
| { | ||
| "name": "flexible_array_member", | ||
| "files": [ "flexible_array_member.c" ], | ||
| "val-profile": "interpreter" | ||
| }, | ||
| { | ||
| "name": "register", | ||
| "files": [ "register.c" ], | ||
| "val-profile": "analyzer" | ||
| }, | ||
| { | ||
| "name": "tis_address", | ||
| "files": [ "tis_address.c" ], | ||
| "val-profile": "analyzer" | ||
| }, | ||
| { | ||
| "name": "variable_length_array", | ||
| "files": [ "variable_length_array.c" ], | ||
| "val-profile": "interpreter" | ||
| }, | ||
| { | ||
| "name": "volatile", | ||
| "files": [ "volatile.c" ], | ||
| "val-profile": "analyzer" | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| { | ||
| "common": { | ||
| "prefix_path": "..", | ||
| "val": true, | ||
| "val-profile": "interpreter" | ||
| }, | ||
| "analyses": [ | ||
| { | ||
| "name": "invalid_pointer", | ||
| "files": [ "invalid_pointer.c" ] | ||
| }, | ||
| { | ||
| "name": "out_of_bounds", | ||
| "files": [ "out_of_bounds.c" ] | ||
| }, | ||
| { | ||
| "name": "signed_overflow", | ||
| "files": [ "signed_overflow.c" ] | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| { | ||
| "common": { | ||
| "prefix_path": "..", | ||
| "val": true | ||
| }, | ||
| "analyses": [ | ||
| { | ||
| "name": "0_unlikely_path", | ||
| "files": [ "0_unlikely_path.c" ], | ||
| "val-profile": "interpreter" | ||
| }, | ||
| { | ||
| "name": "0_unlikely_path", | ||
| "files": [ "0_unlikely_path.c" ], | ||
| "val-profile": "analyzer" | ||
| }, | ||
|
Comment on lines
+7
to
+16
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These two analyses have the same name. |
||
| { | ||
| "name": "1_tis_interval", | ||
| "files": [ "1_tis_interval.c" ], | ||
| "val-profile": "analyzer" | ||
| }, | ||
| { | ||
| "name": "2_absolute", | ||
| "files": [ "2_absolute.c" ], | ||
| "val-profile": "analyzer" | ||
| } | ||
| ] | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To be rebased on top of |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,10 @@ | ||
| // tis-analyzer -val -val-profile analyzer 1_init_buffer.c -slevel 42 | ||
| // { | ||
| // .., | ||
| // "slevel": 42 | ||
| // } | ||
| // | ||
| // The SLevel also describes how many turns of a loop are done precisely. | ||
| // | ||
| // Note that there is no impact with -slevel 1000000. Also note that there is no | ||
| // alarm at -slevel 11: the first 11 turns of the loop are precise, which is | ||
| // alarm at -slevel 11: the first 11 turns of the loop are precise, which is | ||
| // what we need. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| { | ||
| "common": { | ||
| "prefix_path": "..", | ||
| "val": true, | ||
| "val-profile": "analyzer" | ||
| }, | ||
| "analyses": [ | ||
| { | ||
| "name": "0_is_zero", | ||
| "files": [ "0_is_zero.c" ] | ||
| }, | ||
| { | ||
| "name": "1_init_buffer", | ||
| "files": [ "1_init_buffer.c" ] | ||
| }, | ||
| { | ||
| "name": "2_always_zero", | ||
| "files": [ "2_always_zero.c" ] | ||
| }, | ||
| { | ||
| "name": "3_loop", | ||
| "files": [ "3_loop.c" ] | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| { | ||
| "common": { | ||
| "prefix_path": "..", | ||
| "val": true, | ||
| "val-profile": "analyzer" | ||
| }, | ||
| "analyses": [ | ||
| { | ||
| "name": "imprecise", | ||
| "files": [ "imprecise.c" ] | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,8 @@ | ||
| // tis-analyzer -val -val-profile analyzer 0_is_zero.c -slevel 10 -val-split-return-function f:full | ||
| // { | ||
| // .., | ||
| // "slevel": 10, | ||
| // "val-split-return-function": { "f":full } | ||
| // } | ||
| // | ||
| // The strategy is changed for the callee, propagating more states in the | ||
| // caller. Do not forget SLevel for the caller! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| { | ||
| "common": { | ||
| "prefix_path": "..", | ||
| "val": true, | ||
| "val-profile": "analyzer" | ||
| }, | ||
| "analyses": [ | ||
| { | ||
| "name": "0_is_zero", | ||
| "files": [ "0_is_zero.c" ], | ||
| "slevel-function": { | ||
| "f": 10 | ||
| } | ||
| }, | ||
| { | ||
| "name": "1_full_vs_auto", | ||
| "files": [ "1_full_vs_auto.c" ], | ||
| "slevel": 100 | ||
| }, | ||
| { | ||
| "name": "1_full_vs_auto_split_full", | ||
| "files": [ "1_full_vs_auto.c" ], | ||
| "slevel": 100, | ||
| "val-split-return-function": { | ||
| "f": "full" | ||
| } | ||
| }, | ||
| { | ||
| "name": "1_full_vs_auto_split_auto", | ||
| "files": [ "1_full_vs_auto.c" ], | ||
| "slevel": 100, | ||
| "val-split-return-function": { | ||
| "f": "auto" | ||
| } | ||
| } | ||
| ] | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd have expected the command·s to run the analyzer. Ditto other files in this directory.