Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
spectre-db
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Griffin, Matt J Dr (PG/R - Comp Sci & Elec Eng)
spectre-db
Commits
d0fbabbe
Commit
d0fbabbe
authored
2 years ago
by
Jamie Wright
Browse files
Options
Downloads
Patches
Plain Diff
compiled code
parent
d6404016
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
BCB/Cheang et al/Figure 3b/Figure_3b.cod
+52
-0
52 additions, 0 deletions
BCB/Cheang et al/Figure 3b/Figure_3b.cod
BCB/Cheang et al/Figure 3b/Figure_3b.dll
+0
-0
0 additions, 0 deletions
BCB/Cheang et al/Figure 3b/Figure_3b.dll
with
52 additions
and
0 deletions
BCB/Cheang et al/Figure 3b/Figure_3b.cod
0 → 100644
+
52
−
0
View file @
d0fbabbe
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.32.31332.0
include listing.inc
INCLUDELIB MSVCRT
INCLUDELIB OLDNAMES
PUBLIC foo
EXTRN array1_size:QWORD
EXTRN array1:BYTE
EXTRN array2:BYTE
; Function compile flags: /Ogtpy
; File C:\Users\piano\Documents\PhD\hyperproperties\IsabelleScripts\Relative_Security_Spectre\Kevin Cheang\3b\Figure_3b.c
; COMDAT foo
_TEXT SEGMENT
i$ = 8
foo PROC ; COMDAT
; 5 : if (i < array1_size) {
00000 8b c1 mov eax, ecx
00002 48 3b 05 00 00
00 00 cmp rax, QWORD PTR array1_size
00009 73 18 jae SHORT $LN2@foo
; 6 : uint8_t v = array1[0];
; 7 : return array2[v*512]+i;
0000b 0f b6 15 00 00
00 00 movzx edx, BYTE PTR array1
00012 48 8d 05 00 00
00 00 lea rax, OFFSET FLAT:array2
00019 c1 e2 09 shl edx, 9
0001c 02 0c 02 add cl, BYTE PTR [rdx+rax]
0001f 0f b6 c1 movzx eax, cl
; 10 : }
00022 c3 ret 0
$LN2@foo:
; 8 : }
; 9 : return 0;
00023 32 c0 xor al, al
; 10 : }
00025 c3 ret 0
foo ENDP
_TEXT ENDS
END
This diff is collapsed.
Click to expand it.
BCB/Cheang et al/Figure 3b/Figure_3b.dll
0 → 100644
+
0
−
0
View file @
d0fbabbe
File added
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment