-
Notifications
You must be signed in to change notification settings - Fork 59
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
eclib: set0_{128,256} issue; Jasmin v2022.04.0 #128
Comments
Are there any uses of those instructions where the flags are not ignored in the Jasmin source? Instead of defining |
Hi Tiago, this is clearly a bug in the extraction and the easycrypt model. I will fix this. |
Before, |
For u128 and u256 flags are not affected. I think this is possible to see in jasmin/proofs/compiler/x86_extra.v Line 35 in 7906ac9
I would risk saying that the extraction is OK and only the |
This has been fixed in #134. |
Tested on libjade; Everything fine :-) |
This issue is described in the context of Jasmin
v2022.04.0
and EasyCryptr2022.04
.When extracting to EasyCrypt a Jasmin function that contains
#set0_128()
or#set0_256()
, those statements are extracted to<- set0_128 ;
or<- set0_256 ;
.When checking the extracted file with EasyCrypt, I get the error:
set0_XX
is defined here:jasmin/eclib/JWord.ec
Line 1482 in 7f67b5b
W256
is defined here:jasmin/eclib/JWord.ec
Line 2520 in 7f67b5b
I think it is necessary to define
set0_128
andset0_256
differently (without returning the flags) for these particular cases.The text was updated successfully, but these errors were encountered: