max_stars_repo_path
stringlengths 4
261
| max_stars_repo_name
stringlengths 6
106
| max_stars_count
int64 0
38.8k
| id
stringlengths 1
6
| text
stringlengths 7
1.05M
|
---|---|---|---|---|
cminx/parser/CMake.g4 | CMakePP/CMakeDoc | 0 | 2436 | /*
Copyright (c) 2018 zbq.
License for use and distribution: Eclipse Public License
CMake language grammar reference:
https://cmake.org/cmake/help/v3.12/manual/cmake-language.7.html
Modified by <NAME> on behalf of Ames Laboratory/Department of Energy
October 31st, 2019
*/
grammar CMake;
/*
Changes:
Renamed from file to cmake_file to avoid conflict with Python
Added documented_command to list of expected parser rules
*/
cmake_file
: (documented_command | command_invocation)* EOF
;
command_invocation
: Identifier '(' (single_argument|compound_argument)* ')'
;
single_argument
: Identifier | Unquoted_argument | Bracket_argument | Quoted_argument
;
compound_argument
: '(' (single_argument|compound_argument)* ')'
;
Identifier
: [A-Za-z_][A-Za-z0-9_]*
;
Unquoted_argument
: (~[ \t\r\n()#"\\] | Escape_sequence)+
;
Escape_sequence
: Escape_identity | Escape_encoded | Escape_semicolon
;
fragment
Escape_identity
: '\\' ~[A-Za-z0-9;]
;
fragment
Escape_encoded
: '\\t' | '\\r' | '\\n'
;
fragment
Escape_semicolon
: '\\;'
;
Quoted_argument
: '"' (~[\\"] | Escape_sequence | Quoted_cont)* '"'
;
fragment
Quoted_cont
: '\\' ('\r' '\n'? | '\n')
;
Bracket_argument
: '[' Bracket_arg_nested ']'
;
fragment
Bracket_arg_nested
: '=' Bracket_arg_nested '='
| '[' .*? ']'
;
Bracket_comment
: '#[' Bracket_arg_nested ']'
-> skip
;
Line_comment
: '#' ( // #
| '[' '='* // #[==
| '[' '='* ~('=' | '[' | '\r' | '\n') ~('\r' | '\n')* // #[==xx
| ~('[' | '\r' | '\n') ~('\r' | '\n')* // #xx
) ('\r' '\n'? | '\n' | EOF)
-> skip
;
Newline
: ('\r' '\n'? | '\n')+
-> skip
;
Space
: [ \t]+
-> skip
;
/*Begin CMinx*/
documented_command
: Bracket_doccomment command_invocation
;
Bracket_doccomment
: '#[[[' .*? '#]]'
;
|
ioq3/build/release-js-js/baseq3/game/ai_vcmd.asm | RawTechnique/quake-port | 1 | 245609 | <filename>ioq3/build/release-js-js/baseq3/game/ai_vcmd.asm
export BotVoiceChat_GetFlag
code
proc BotVoiceChat_GetFlag 8 8
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRGP4 gametype
INDIRI4
CNSTI4 4
NEI4 $54
ADDRLP4 0
CNSTI4 0
ASGNI4
ADDRGP4 ctf_redflag+12
INDIRI4
ADDRLP4 0
INDIRI4
EQI4 $61
ADDRGP4 ctf_blueflag+12
INDIRI4
ADDRLP4 0
INDIRI4
NEI4 $56
LABELV $61
ADDRGP4 $54
JUMPV
LABELV $56
ADDRFP4 0
INDIRP4
CNSTI4 6604
ADDP4
ADDRFP4 4
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6608
ADDP4
CNSTI4 1
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6612
ADDP4
ADDRGP4 floattime
INDIRF4
ASGNF4
ADDRLP4 0
ADDRGP4 qk_rand
CALLI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6736
ADDP4
ADDRGP4 floattime
INDIRF4
CNSTF4 1073741824
ADDRLP4 0
INDIRI4
CNSTI4 32767
BANDI4
CVIF4 4
CNSTF4 1191181824
DIVF4
MULF4
ADDF4
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6596
ADDP4
CNSTI4 4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6740
ADDP4
ADDRGP4 floattime
INDIRF4
CNSTF4 1142292480
ADDF4
ASGNF4
ADDRGP4 gametype
INDIRI4
CNSTI4 4
NEI4 $62
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 4
ADDRGP4 BotOppositeTeam
CALLI4
ASGNI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 4
INDIRI4
ARGI4
ADDRGP4 BotGetAlternateRouteGoal
CALLI4
pop
LABELV $62
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 BotSetTeamStatus
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 BotRememberLastOrderedTask
CALLV
pop
LABELV $54
endproc BotVoiceChat_GetFlag 8 8
export BotVoiceChat_Offense
proc BotVoiceChat_Offense 4 12
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRGP4 gametype
INDIRI4
CNSTI4 4
NEI4 $65
ADDRFP4 0
INDIRP4
ARGP4
ADDRFP4 4
INDIRI4
ARGI4
ADDRFP4 8
INDIRI4
ARGI4
ADDRGP4 BotVoiceChat_GetFlag
CALLV
pop
ADDRGP4 $64
JUMPV
LABELV $65
ADDRFP4 0
INDIRP4
CNSTI4 6604
ADDP4
ADDRFP4 4
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6608
ADDP4
CNSTI4 1
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6612
ADDP4
ADDRGP4 floattime
INDIRF4
ASGNF4
ADDRLP4 0
ADDRGP4 qk_rand
CALLI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6736
ADDP4
ADDRGP4 floattime
INDIRF4
CNSTF4 1073741824
ADDRLP4 0
INDIRI4
CNSTI4 32767
BANDI4
CVIF4 4
CNSTF4 1191181824
DIVF4
MULF4
ADDF4
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6596
ADDP4
CNSTI4 13
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6740
ADDP4
ADDRGP4 floattime
INDIRF4
CNSTF4 1142292480
ADDF4
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6156
ADDP4
CNSTF4 0
ASGNF4
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 BotSetTeamStatus
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 BotRememberLastOrderedTask
CALLV
pop
LABELV $64
endproc BotVoiceChat_Offense 4 12
export BotVoiceChat_Defend
proc BotVoiceChat_Defend 12 12
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRGP4 gametype
INDIRI4
CNSTI4 4
NEI4 $67
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 4
ADDRGP4 BotTeam
CALLI4
ASGNI4
ADDRLP4 0
ADDRLP4 4
INDIRI4
ASGNI4
ADDRLP4 0
INDIRI4
CNSTI4 1
EQI4 $73
ADDRLP4 0
INDIRI4
CNSTI4 2
EQI4 $74
ADDRGP4 $67
JUMPV
LABELV $73
ADDRFP4 0
INDIRP4
CNSTI4 6620
ADDP4
ARGP4
ADDRGP4 ctf_redflag
ARGP4
CNSTU4 56
ARGU4
ADDRGP4 qk_memcpy
CALLP4
pop
ADDRGP4 $69
JUMPV
LABELV $74
ADDRFP4 0
INDIRP4
CNSTI4 6620
ADDP4
ARGP4
ADDRGP4 ctf_blueflag
ARGP4
CNSTU4 56
ARGU4
ADDRGP4 qk_memcpy
CALLP4
pop
LABELV $69
ADDRFP4 0
INDIRP4
CNSTI4 6604
ADDP4
ADDRFP4 4
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6608
ADDP4
CNSTI4 1
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6612
ADDP4
ADDRGP4 floattime
INDIRF4
ASGNF4
ADDRLP4 0
ADDRGP4 qk_rand
CALLI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6736
ADDP4
ADDRGP4 floattime
INDIRF4
CNSTF4 1073741824
ADDRLP4 0
INDIRI4
CNSTI4 32767
BANDI4
CVIF4 4
CNSTF4 1191181824
DIVF4
MULF4
ADDF4
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6596
ADDP4
CNSTI4 3
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6740
ADDP4
ADDRGP4 floattime
INDIRF4
CNSTF4 1142292480
ADDF4
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6144
ADDP4
CNSTF4 0
ASGNF4
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 BotSetTeamStatus
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 BotRememberLastOrderedTask
CALLV
pop
LABELV $67
endproc BotVoiceChat_Defend 12 12
export BotVoiceChat_DefendFlag
proc BotVoiceChat_DefendFlag 0 12
ADDRFP4 0
INDIRP4
ARGP4
ADDRFP4 4
INDIRI4
ARGI4
ADDRFP4 8
INDIRI4
ARGI4
ADDRGP4 BotVoiceChat_Defend
CALLV
pop
LABELV $75
endproc BotVoiceChat_DefendFlag 0 12
export BotVoiceChat_Patrol
proc BotVoiceChat_Patrol 0 12
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 0
INDIRP4
CNSTI4 6604
ADDP4
ADDRFP4 4
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6596
ADDP4
CNSTI4 0
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6880
ADDP4
CNSTF4 0
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6756
ADDP4
CNSTI4 0
ASGNI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $77
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
CNSTI4 6528
ADDP4
INDIRI4
ARGI4
ADDRFP4 4
INDIRI4
ARGI4
CNSTI4 2
ARGI4
ADDRGP4 trap_BotEnterChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
CNSTI4 -1
ARGI4
ADDRGP4 $78
ARGP4
ADDRGP4 BotVoiceChatOnly
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 BotSetTeamStatus
CALLV
pop
LABELV $76
endproc BotVoiceChat_Patrol 0 12
export BotVoiceChat_Camp
proc BotVoiceChat_Camp 184 16
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 4
ADDRFP4 4
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6660
ADDP4
CNSTI4 -1
ASGNI4
ADDRFP4 4
INDIRI4
ARGI4
ADDRLP4 0
ARGP4
ADDRGP4 BotEntityInfo
CALLV
pop
ADDRLP4 0
INDIRI4
CNSTI4 0
EQI4 $80
ADDRLP4 0+24
ARGP4
ADDRLP4 180
ADDRGP4 BotPointAreaNum
CALLI4
ASGNI4
ADDRLP4 140
ADDRLP4 180
INDIRI4
ASGNI4
ADDRLP4 140
INDIRI4
CNSTI4 0
EQI4 $83
ADDRFP4 0
INDIRP4
CNSTI4 6660
ADDP4
ADDRFP4 4
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6632
ADDP4
ADDRLP4 140
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6620
ADDP4
ADDRLP4 0+24
INDIRB
ASGNB 12
ADDRFP4 0
INDIRP4
CNSTI4 6636
ADDP4
CNSTF4 3238002688
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6640
ADDP4
CNSTF4 3238002688
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6644
ADDP4
CNSTF4 3238002688
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6648
ADDP4
CNSTF4 1090519040
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6652
ADDP4
CNSTF4 1090519040
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6656
ADDP4
CNSTF4 1090519040
ASGNF4
LABELV $83
LABELV $80
ADDRFP4 0
INDIRP4
CNSTI4 6660
ADDP4
INDIRI4
CNSTI4 0
GEI4 $86
ADDRFP4 4
INDIRI4
ARGI4
ADDRLP4 144
ARGP4
CNSTI4 36
ARGI4
ADDRLP4 180
ADDRGP4 EasyClientName
CALLP4
ASGNP4
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $88
ARGP4
ADDRLP4 180
INDIRP4
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
CNSTI4 6528
ADDP4
INDIRI4
ARGI4
ADDRFP4 4
INDIRI4
ARGI4
CNSTI4 2
ARGI4
ADDRGP4 trap_BotEnterChat
CALLV
pop
ADDRGP4 $79
JUMPV
LABELV $86
ADDRFP4 0
INDIRP4
CNSTI4 6604
ADDP4
ADDRFP4 4
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6608
ADDP4
CNSTI4 1
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6612
ADDP4
ADDRGP4 floattime
INDIRF4
ASGNF4
ADDRLP4 180
ADDRGP4 qk_rand
CALLI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6736
ADDP4
ADDRGP4 floattime
INDIRF4
CNSTF4 1073741824
ADDRLP4 180
INDIRI4
CNSTI4 32767
BANDI4
CVIF4 4
CNSTF4 1191181824
DIVF4
MULF4
ADDF4
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6596
ADDP4
CNSTI4 8
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6740
ADDP4
ADDRGP4 floattime
INDIRF4
CNSTF4 1142292480
ADDF4
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6600
ADDP4
ADDRFP4 4
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6172
ADDP4
CNSTF4 0
ASGNF4
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 BotSetTeamStatus
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 BotRememberLastOrderedTask
CALLV
pop
LABELV $79
endproc BotVoiceChat_Camp 184 16
export BotVoiceChat_FollowMe
proc BotVoiceChat_FollowMe 184 16
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 4
ADDRFP4 4
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6660
ADDP4
CNSTI4 -1
ASGNI4
ADDRFP4 4
INDIRI4
ARGI4
ADDRLP4 0
ARGP4
ADDRGP4 BotEntityInfo
CALLV
pop
ADDRLP4 0
INDIRI4
CNSTI4 0
EQI4 $90
ADDRLP4 0+24
ARGP4
ADDRLP4 180
ADDRGP4 BotPointAreaNum
CALLI4
ASGNI4
ADDRLP4 140
ADDRLP4 180
INDIRI4
ASGNI4
ADDRLP4 140
INDIRI4
CNSTI4 0
EQI4 $93
ADDRFP4 0
INDIRP4
CNSTI4 6660
ADDP4
ADDRFP4 4
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6632
ADDP4
ADDRLP4 140
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6620
ADDP4
ADDRLP4 0+24
INDIRB
ASGNB 12
ADDRFP4 0
INDIRP4
CNSTI4 6636
ADDP4
CNSTF4 3238002688
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6640
ADDP4
CNSTF4 3238002688
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6644
ADDP4
CNSTF4 3238002688
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6648
ADDP4
CNSTF4 1090519040
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6652
ADDP4
CNSTF4 1090519040
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6656
ADDP4
CNSTF4 1090519040
ASGNF4
LABELV $93
LABELV $90
ADDRFP4 0
INDIRP4
CNSTI4 6660
ADDP4
INDIRI4
CNSTI4 0
GEI4 $96
ADDRFP4 4
INDIRI4
ARGI4
ADDRLP4 144
ARGP4
CNSTI4 36
ARGI4
ADDRLP4 180
ADDRGP4 EasyClientName
CALLP4
ASGNP4
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $88
ARGP4
ADDRLP4 180
INDIRP4
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
CNSTI4 6528
ADDP4
INDIRI4
ARGI4
ADDRFP4 4
INDIRI4
ARGI4
CNSTI4 2
ARGI4
ADDRGP4 trap_BotEnterChat
CALLV
pop
ADDRGP4 $89
JUMPV
LABELV $96
ADDRFP4 0
INDIRP4
CNSTI4 6604
ADDP4
ADDRFP4 4
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6608
ADDP4
CNSTI4 1
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6612
ADDP4
ADDRGP4 floattime
INDIRF4
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6600
ADDP4
ADDRFP4 4
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6744
ADDP4
ADDRGP4 floattime
INDIRF4
ASGNF4
ADDRLP4 180
ADDRGP4 qk_rand
CALLI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6736
ADDP4
ADDRGP4 floattime
INDIRF4
CNSTF4 1073741824
ADDRLP4 180
INDIRI4
CNSTI4 32767
BANDI4
CVIF4 4
CNSTF4 1191181824
DIVF4
MULF4
ADDF4
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6740
ADDP4
ADDRGP4 floattime
INDIRF4
CNSTF4 1142292480
ADDF4
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6596
ADDP4
CNSTI4 2
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 7008
ADDP4
CNSTF4 1121976320
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6172
ADDP4
CNSTF4 0
ASGNF4
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 BotSetTeamStatus
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 BotRememberLastOrderedTask
CALLV
pop
LABELV $89
endproc BotVoiceChat_FollowMe 184 16
export BotVoiceChat_FollowFlagCarrier
proc BotVoiceChat_FollowFlagCarrier 8 12
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 4
ADDRGP4 BotTeamFlagCarrier
CALLI4
ASGNI4
ADDRLP4 0
ADDRLP4 4
INDIRI4
ASGNI4
ADDRLP4 0
INDIRI4
CNSTI4 0
LTI4 $99
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 0
INDIRI4
ARGI4
ADDRFP4 8
INDIRI4
ARGI4
ADDRGP4 BotVoiceChat_FollowMe
CALLV
pop
LABELV $99
LABELV $98
endproc BotVoiceChat_FollowFlagCarrier 8 12
export BotVoiceChat_ReturnFlag
proc BotVoiceChat_ReturnFlag 4 4
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRGP4 gametype
INDIRI4
CNSTI4 4
EQI4 $102
ADDRGP4 $101
JUMPV
LABELV $102
ADDRFP4 0
INDIRP4
CNSTI4 6604
ADDP4
ADDRFP4 4
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6608
ADDP4
CNSTI4 1
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6612
ADDP4
ADDRGP4 floattime
INDIRF4
ASGNF4
ADDRLP4 0
ADDRGP4 qk_rand
CALLI4
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6736
ADDP4
ADDRGP4 floattime
INDIRF4
CNSTF4 1073741824
ADDRLP4 0
INDIRI4
CNSTI4 32767
BANDI4
CVIF4 4
CNSTF4 1191181824
DIVF4
MULF4
ADDF4
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6596
ADDP4
CNSTI4 6
ASGNI4
ADDRFP4 0
INDIRP4
CNSTI4 6740
ADDP4
ADDRGP4 floattime
INDIRF4
CNSTF4 1127481344
ADDF4
ASGNF4
ADDRFP4 0
INDIRP4
CNSTI4 6152
ADDP4
CNSTF4 0
ASGNF4
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 BotSetTeamStatus
CALLV
pop
LABELV $101
endproc BotVoiceChat_ReturnFlag 4 4
export BotVoiceChat_StartLeader
proc BotVoiceChat_StartLeader 0 12
ADDRFP4 4
INDIRI4
ARGI4
ADDRFP4 0
INDIRP4
CNSTI4 6896
ADDP4
ARGP4
CNSTI4 32
ARGI4
ADDRGP4 ClientName
CALLP4
pop
LABELV $104
endproc BotVoiceChat_StartLeader 0 12
export BotVoiceChat_StopLeader
proc BotVoiceChat_StopLeader 264 12
ADDRFP4 4
INDIRI4
ARGI4
ADDRLP4 0
ARGP4
CNSTI4 256
ARGI4
ADDRLP4 256
ADDRGP4 ClientName
CALLP4
ASGNP4
ADDRFP4 0
INDIRP4
CNSTI4 6896
ADDP4
ARGP4
ADDRLP4 256
INDIRP4
ARGP4
ADDRLP4 260
ADDRGP4 Q_stricmp
CALLI4
ASGNI4
ADDRLP4 260
INDIRI4
CNSTI4 0
NEI4 $106
ADDRFP4 0
INDIRP4
CNSTI4 6896
ADDP4
CNSTI1 0
ASGNI1
ADDRFP4 4
INDIRI4
CNSTI4 2
LSHI4
ADDRGP4 notleader
ADDP4
CNSTI4 1
ASGNI4
LABELV $106
LABELV $105
endproc BotVoiceChat_StopLeader 264 12
export BotVoiceChat_WhoIsLeader
proc BotVoiceChat_WhoIsLeader 264 12
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRLP4 256
ADDRGP4 TeamPlayIsOn
CALLI4
ASGNI4
ADDRLP4 256
INDIRI4
CNSTI4 0
NEI4 $109
ADDRGP4 $108
JUMPV
LABELV $109
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
ARGI4
ADDRLP4 0
ARGP4
CNSTI4 256
ARGI4
ADDRGP4 ClientName
CALLP4
pop
ADDRLP4 0
ARGP4
ADDRFP4 0
INDIRP4
CNSTI4 6896
ADDP4
ARGP4
ADDRLP4 260
ADDRGP4 Q_stricmp
CALLI4
ASGNI4
ADDRLP4 260
INDIRI4
CNSTI4 0
NEI4 $111
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $113
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
CNSTI4 6528
ADDP4
INDIRI4
ARGI4
CNSTI4 0
ARGI4
CNSTI4 1
ARGI4
ADDRGP4 trap_BotEnterChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
CNSTI4 -1
ARGI4
ADDRGP4 $114
ARGP4
ADDRGP4 BotVoiceChatOnly
CALLV
pop
LABELV $111
LABELV $108
endproc BotVoiceChat_WhoIsLeader 264 12
export BotVoiceChat_WantOnDefense
proc BotVoiceChat_WantOnDefense 44 16
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 4
ADDRFP4 4
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRFP4 4
INDIRI4
ARGI4
ADDRLP4 40
ADDRGP4 BotGetTeamMateTaskPreference
CALLI4
ASGNI4
ADDRLP4 0
ADDRLP4 40
INDIRI4
ASGNI4
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 -3
BANDI4
ASGNI4
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 1
BORI4
ASGNI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRFP4 4
INDIRI4
ARGI4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSetTeamMateTaskPreference
CALLV
pop
ADDRFP4 4
INDIRI4
ARGI4
ADDRLP4 4
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 EasyClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $116
ARGP4
ADDRLP4 4
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
CNSTI4 6528
ADDP4
INDIRI4
ARGI4
ADDRFP4 4
INDIRI4
ARGI4
CNSTI4 2
ARGI4
ADDRGP4 trap_BotEnterChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRFP4 4
INDIRI4
ARGI4
ADDRGP4 $117
ARGP4
ADDRGP4 BotVoiceChatOnly
CALLV
pop
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
ARGI4
CNSTI4 1048576
ARGI4
ADDRGP4 trap_EA_Action
CALLV
pop
LABELV $115
endproc BotVoiceChat_WantOnDefense 44 16
export BotVoiceChat_WantOnOffense
proc BotVoiceChat_WantOnOffense 44 16
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 4
ADDRFP4 4
INDIRI4
ASGNI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRFP4 4
INDIRI4
ARGI4
ADDRLP4 40
ADDRGP4 BotGetTeamMateTaskPreference
CALLI4
ASGNI4
ADDRLP4 0
ADDRLP4 40
INDIRI4
ASGNI4
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 -2
BANDI4
ASGNI4
ADDRLP4 0
ADDRLP4 0
INDIRI4
CNSTI4 2
BORI4
ASGNI4
ADDRFP4 0
INDIRP4
ARGP4
ADDRFP4 4
INDIRI4
ARGI4
ADDRLP4 0
INDIRI4
ARGI4
ADDRGP4 BotSetTeamMateTaskPreference
CALLV
pop
ADDRFP4 4
INDIRI4
ARGI4
ADDRLP4 4
ARGP4
CNSTI4 36
ARGI4
ADDRGP4 EasyClientName
CALLP4
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRGP4 $116
ARGP4
ADDRLP4 4
ARGP4
CNSTP4 0
ARGP4
ADDRGP4 BotAI_BotInitialChat
CALLV
pop
ADDRFP4 0
INDIRP4
CNSTI4 6528
ADDP4
INDIRI4
ARGI4
ADDRFP4 4
INDIRI4
ARGI4
CNSTI4 2
ARGI4
ADDRGP4 trap_BotEnterChat
CALLV
pop
ADDRFP4 0
INDIRP4
ARGP4
ADDRFP4 4
INDIRI4
ARGI4
ADDRGP4 $117
ARGP4
ADDRGP4 BotVoiceChatOnly
CALLV
pop
ADDRFP4 0
INDIRP4
CNSTI4 8
ADDP4
INDIRI4
ARGI4
CNSTI4 1048576
ARGI4
ADDRGP4 trap_EA_Action
CALLV
pop
LABELV $118
endproc BotVoiceChat_WantOnOffense 44 16
export BotVoiceChat_Dummy
proc BotVoiceChat_Dummy 0 0
LABELV $119
endproc BotVoiceChat_Dummy 0 0
data
export voiceCommands
align 4
LABELV voiceCommands
address $120
address BotVoiceChat_GetFlag
address $121
address BotVoiceChat_Offense
address $122
address BotVoiceChat_Defend
address $123
address BotVoiceChat_DefendFlag
address $124
address BotVoiceChat_Patrol
address $125
address BotVoiceChat_Camp
address $126
address BotVoiceChat_FollowMe
address $127
address BotVoiceChat_FollowFlagCarrier
address $128
address BotVoiceChat_ReturnFlag
address $114
address BotVoiceChat_StartLeader
address $129
address BotVoiceChat_StopLeader
address $130
address BotVoiceChat_WhoIsLeader
address $131
address BotVoiceChat_WantOnDefense
address $132
address BotVoiceChat_WantOnOffense
byte 4 0
address BotVoiceChat_Dummy
export BotVoiceChatCommand
code
proc BotVoiceChatCommand 324 12
ADDRFP4 0
ADDRFP4 0
INDIRP4
ASGNP4
ADDRFP4 4
ADDRFP4 4
INDIRI4
ASGNI4
ADDRLP4 272
ADDRGP4 TeamPlayIsOn
CALLI4
ASGNI4
ADDRLP4 272
INDIRI4
CNSTI4 0
NEI4 $134
CNSTI4 0
RETI4
ADDRGP4 $133
JUMPV
LABELV $134
ADDRFP4 4
INDIRI4
CNSTI4 0
NEI4 $136
CNSTI4 0
RETI4
ADDRGP4 $133
JUMPV
LABELV $136
ADDRLP4 16
ARGP4
ADDRFP4 8
INDIRP4
ARGP4
CNSTI4 256
ARGI4
ADDRGP4 Q_strncpyz
CALLV
pop
ADDRLP4 0
ADDRLP4 16
ASGNP4
ADDRLP4 12
ADDRLP4 0
INDIRP4
ASGNP4
ADDRGP4 $141
JUMPV
LABELV $138
LABELV $139
ADDRLP4 0
ADDRLP4 0
INDIRP4
CNSTI4 1
ADDP4
ASGNP4
LABELV $141
ADDRLP4 276
ADDRLP4 0
INDIRP4
INDIRI1
CVII4 1
ASGNI4
ADDRLP4 276
INDIRI4
CNSTI4 0
EQI4 $142
ADDRLP4 276
INDIRI4
CNSTI4 32
GTI4 $138
LABELV $142
ADDRGP4 $144
JUMPV
LABELV $143
ADDRLP4 280
ADDRLP4 0
INDIRP4
ASGNP4
ADDRLP4 0
ADDRLP4 280
INDIRP4
CNSTI4 1
ADDP4
ASGNP4
ADDRLP4 280
INDIRP4
CNSTI1 0
ASGNI1
LABELV $144
ADDRLP4 284
ADDRLP4 0
INDIRP4
INDIRI1
CVII4 1
ASGNI4
ADDRLP4 284
INDIRI4
CNSTI4 0
EQI4 $146
ADDRLP4 284
INDIRI4
CNSTI4 32
LEI4 $143
LABELV $146
ADDRLP4 12
ADDRLP4 0
INDIRP4
ASGNP4
ADDRGP4 $150
JUMPV
LABELV $147
LABELV $148
ADDRLP4 0
ADDRLP4 0
INDIRP4
CNSTI4 1
ADDP4
ASGNP4
LABELV $150
ADDRLP4 288
ADDRLP4 0
INDIRP4
INDIRI1
CVII4 1
ASGNI4
ADDRLP4 288
INDIRI4
CNSTI4 0
EQI4 $151
ADDRLP4 288
INDIRI4
CNSTI4 32
GTI4 $147
LABELV $151
ADDRGP4 $153
JUMPV
LABELV $152
ADDRLP4 292
ADDRLP4 0
INDIRP4
ASGNP4
ADDRLP4 0
ADDRLP4 292
INDIRP4
CNSTI4 1
ADDP4
ASGNP4
ADDRLP4 292
INDIRP4
CNSTI1 0
ASGNI1
LABELV $153
ADDRLP4 296
ADDRLP4 0
INDIRP4
INDIRI1
CVII4 1
ASGNI4
ADDRLP4 296
INDIRI4
CNSTI4 0
EQI4 $155
ADDRLP4 296
INDIRI4
CNSTI4 32
LEI4 $152
LABELV $155
ADDRLP4 12
INDIRP4
ARGP4
ADDRLP4 300
ADDRGP4 qk_atoi
CALLI4
ASGNI4
ADDRLP4 8
ADDRLP4 300
INDIRI4
ASGNI4
ADDRLP4 12
ADDRLP4 0
INDIRP4
ASGNP4
ADDRGP4 $159
JUMPV
LABELV $156
LABELV $157
ADDRLP4 0
ADDRLP4 0
INDIRP4
CNSTI4 1
ADDP4
ASGNP4
LABELV $159
ADDRLP4 304
ADDRLP4 0
INDIRP4
INDIRI1
CVII4 1
ASGNI4
ADDRLP4 304
INDIRI4
CNSTI4 0
EQI4 $160
ADDRLP4 304
INDIRI4
CNSTI4 32
GTI4 $156
LABELV $160
ADDRGP4 $162
JUMPV
LABELV $161
ADDRLP4 308
ADDRLP4 0
INDIRP4
ASGNP4
ADDRLP4 0
ADDRLP4 308
INDIRP4
CNSTI4 1
ADDP4
ASGNP4
ADDRLP4 308
INDIRP4
CNSTI1 0
ASGNI1
LABELV $162
ADDRLP4 312
ADDRLP4 0
INDIRP4
INDIRI1
CVII4 1
ASGNI4
ADDRLP4 312
INDIRI4
CNSTI4 0
EQI4 $164
ADDRLP4 312
INDIRI4
CNSTI4 32
LEI4 $161
LABELV $164
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 8
INDIRI4
ARGI4
ADDRLP4 316
ADDRGP4 BotSameTeam
CALLI4
ASGNI4
ADDRLP4 316
INDIRI4
CNSTI4 0
NEI4 $165
CNSTI4 0
RETI4
ADDRGP4 $133
JUMPV
LABELV $165
ADDRLP4 4
CNSTI4 0
ASGNI4
ADDRGP4 $170
JUMPV
LABELV $167
ADDRLP4 0
INDIRP4
ARGP4
ADDRLP4 4
INDIRI4
CNSTI4 3
LSHI4
ADDRGP4 voiceCommands
ADDP4
INDIRP4
ARGP4
ADDRLP4 320
ADDRGP4 Q_stricmp
CALLI4
ASGNI4
ADDRLP4 320
INDIRI4
CNSTI4 0
NEI4 $171
ADDRFP4 0
INDIRP4
ARGP4
ADDRLP4 8
INDIRI4
ARGI4
ADDRFP4 4
INDIRI4
ARGI4
ADDRLP4 4
INDIRI4
CNSTI4 3
LSHI4
ADDRGP4 voiceCommands+4
ADDP4
INDIRP4
CALLV
pop
CNSTI4 1
RETI4
ADDRGP4 $133
JUMPV
LABELV $171
LABELV $168
ADDRLP4 4
ADDRLP4 4
INDIRI4
CNSTI4 1
ADDI4
ASGNI4
LABELV $170
ADDRLP4 4
INDIRI4
CNSTI4 3
LSHI4
ADDRGP4 voiceCommands
ADDP4
INDIRP4
CVPU4 4
CNSTU4 0
NEU4 $167
CNSTI4 0
RETI4
LABELV $133
endproc BotVoiceChatCommand 324 12
import BotVoiceChatOnly
import BotVoiceChat
import BotSetTeamMateTaskPreference
import BotGetTeamMateTaskPreference
import BotTeamAI
import BotDumpNodeSwitches
import BotResetNodeSwitches
import AINode_Battle_NBG
import AINode_Battle_Retreat
import AINode_Battle_Chase
import AINode_Battle_Fight
import AINode_Seek_LTG
import AINode_Seek_NBG
import AINode_Seek_ActivateEntity
import AINode_Stand
import AINode_Respawn
import AINode_Observer
import AINode_Intermission
import AIEnter_Battle_NBG
import AIEnter_Battle_Retreat
import AIEnter_Battle_Chase
import AIEnter_Battle_Fight
import AIEnter_Seek_Camp
import AIEnter_Seek_LTG
import AIEnter_Seek_NBG
import AIEnter_Seek_ActivateEntity
import AIEnter_Stand
import AIEnter_Respawn
import AIEnter_Observer
import AIEnter_Intermission
import BotPrintTeamGoal
import BotMatchMessage
import notleader
import BotChatTest
import BotValidChatPosition
import BotChatTime
import BotChat_Random
import BotChat_EnemySuicide
import BotChat_Kill
import BotChat_Death
import BotChat_HitNoKill
import BotChat_HitNoDeath
import BotChat_HitTalking
import BotChat_EndLevel
import BotChat_StartLevel
import BotChat_ExitGame
import BotChat_EnterGame
import ctf_blueflag
import ctf_redflag
import bot_challenge
import bot_testrchat
import bot_nochat
import bot_fastchat
import bot_rocketjump
import bot_grapple
import maxclients
import gametype
import BotMapScripts
import BotPointAreaNum
import ClientOnSameTeamFromName
import ClientFromName
import stristr
import BotFindWayPoint
import BotCreateWayPoint
import BotAlternateRoute
import BotGetAlternateRouteGoal
import BotCTFRetreatGoals
import BotCTFSeekGoals
import BotRememberLastOrderedTask
import BotCTFCarryingFlag
import BotOppositeTeam
import BotTeam
import BotClearActivateGoalStack
import BotPopFromActivateGoalStack
import BotEnableActivateGoalAreas
import BotAIPredictObstacles
import BotAIBlocked
import BotCheckAttack
import BotAimAtEnemy
import BotEntityVisible
import BotRoamGoal
import BotFindEnemy
import InFieldOfVision
import BotVisibleTeamMatesAndEnemies
import BotEnemyFlagCarrierVisible
import BotTeamFlagCarrierVisible
import BotTeamFlagCarrier
import TeamPlayIsOn
import BotSameTeam
import BotAttackMove
import BotWantsToCamp
import BotHasPersistantPowerupAndWeapon
import BotCanAndWantsToRocketJump
import BotWantsToHelp
import BotWantsToChase
import BotWantsToRetreat
import BotFeelingBad
import BotAggression
import BotTeamGoals
import BotSetLastOrderedTask
import BotSynonymContext
import ClientSkin
import EasyClientName
import ClientName
import BotSetTeamStatus
import BotSetUserInfo
import EntityIsShooting
import EntityIsInvisible
import EntityIsDead
import BotInLavaOrSlime
import BotIntermission
import BotIsObserver
import BotIsDead
import BotBattleUseItems
import BotUpdateBattleInventory
import BotUpdateInventory
import BotSetupForMovement
import BotChooseWeapon
import BotFreeWaypoints
import BotDeathmatchAI
import BotShutdownDeathmatchAI
import BotSetupDeathmatchAI
import BotTeamLeader
import BotAI_GetSnapshotEntity
import BotAI_GetEntityState
import BotAI_GetClientState
import BotAI_Trace
import BotAI_BotInitialChat
import BotAI_Print
import floattime
import BotEntityInfo
import NumBots
import BotResetState
import BotResetWeaponState
import BotFreeWeaponState
import BotAllocWeaponState
import BotLoadWeaponWeights
import BotGetWeaponInfo
import BotChooseBestFightWeapon
import BotShutdownWeaponAI
import BotSetupWeaponAI
import BotShutdownMoveAI
import BotSetupMoveAI
import BotSetBrushModelTypes
import BotAddAvoidSpot
import BotInitMoveState
import BotFreeMoveState
import BotAllocMoveState
import BotPredictVisiblePosition
import BotMovementViewTarget
import BotReachabilityArea
import BotResetLastAvoidReach
import BotResetAvoidReach
import BotMoveInDirection
import BotMoveToGoal
import BotResetMoveState
import BotShutdownGoalAI
import BotSetupGoalAI
import BotFreeGoalState
import BotAllocGoalState
import BotFreeItemWeights
import BotLoadItemWeights
import BotMutateGoalFuzzyLogic
import BotSaveGoalFuzzyLogic
import BotInterbreedGoalFuzzyLogic
import BotUpdateEntityItems
import BotInitLevelItems
import BotSetAvoidGoalTime
import BotAvoidGoalTime
import BotGetMapLocationGoal
import BotGetNextCampSpotGoal
import BotGetLevelItemGoal
import BotItemGoalInVisButNotVisible
import BotTouchingGoal
import BotChooseNBGItem
import BotChooseLTGItem
import BotGetSecondGoal
import BotGetTopGoal
import BotGoalName
import BotDumpGoalStack
import BotDumpAvoidGoals
import BotEmptyGoalStack
import BotPopGoal
import BotPushGoal
import BotRemoveFromAvoidGoals
import BotResetAvoidGoals
import BotResetGoalState
import GeneticParentsAndChildSelection
import BotSetChatName
import BotSetChatGender
import BotLoadChatFile
import BotReplaceSynonyms
import UnifyWhiteSpaces
import BotMatchVariable
import BotFindMatch
import StringContains
import BotGetChatMessage
import BotEnterChat
import BotChatLength
import BotReplyChat
import BotNumInitialChats
import BotInitialChat
import BotNumConsoleMessages
import BotNextConsoleMessage
import BotRemoveConsoleMessage
import BotQueueConsoleMessage
import BotFreeChatState
import BotAllocChatState
import BotShutdownChatAI
import BotSetupChatAI
import BotShutdownCharacters
import Characteristic_String
import Characteristic_BInteger
import Characteristic_Integer
import Characteristic_BFloat
import Characteristic_Float
import BotFreeCharacter
import BotLoadCharacter
import EA_Shutdown
import EA_Setup
import EA_ResetInput
import EA_GetInput
import EA_EndRegular
import EA_View
import EA_Move
import EA_DelayedJump
import EA_Jump
import EA_SelectWeapon
import EA_Use
import EA_Gesture
import EA_Talk
import EA_Respawn
import EA_Attack
import EA_MoveRight
import EA_MoveLeft
import EA_MoveBack
import EA_MoveForward
import EA_MoveDown
import EA_MoveUp
import EA_Walk
import EA_Crouch
import EA_Action
import EA_Command
import EA_SayTeam
import EA_Say
import GetBotLibAPI
import trap_SnapVector
import trap_GeneticParentsAndChildSelection
import trap_BotResetWeaponState
import trap_BotFreeWeaponState
import trap_BotAllocWeaponState
import trap_BotLoadWeaponWeights
import trap_BotGetWeaponInfo
import trap_BotChooseBestFightWeapon
import trap_BotAddAvoidSpot
import trap_BotInitMoveState
import trap_BotFreeMoveState
import trap_BotAllocMoveState
import trap_BotPredictVisiblePosition
import trap_BotMovementViewTarget
import trap_BotReachabilityArea
import trap_BotResetLastAvoidReach
import trap_BotResetAvoidReach
import trap_BotMoveInDirection
import trap_BotMoveToGoal
import trap_BotResetMoveState
import trap_BotFreeGoalState
import trap_BotAllocGoalState
import trap_BotMutateGoalFuzzyLogic
import trap_BotSaveGoalFuzzyLogic
import trap_BotInterbreedGoalFuzzyLogic
import trap_BotFreeItemWeights
import trap_BotLoadItemWeights
import trap_BotUpdateEntityItems
import trap_BotInitLevelItems
import trap_BotSetAvoidGoalTime
import trap_BotAvoidGoalTime
import trap_BotGetLevelItemGoal
import trap_BotGetMapLocationGoal
import trap_BotGetNextCampSpotGoal
import trap_BotItemGoalInVisButNotVisible
import trap_BotTouchingGoal
import trap_BotChooseNBGItem
import trap_BotChooseLTGItem
import trap_BotGetSecondGoal
import trap_BotGetTopGoal
import trap_BotGoalName
import trap_BotDumpGoalStack
import trap_BotDumpAvoidGoals
import trap_BotEmptyGoalStack
import trap_BotPopGoal
import trap_BotPushGoal
import trap_BotResetAvoidGoals
import trap_BotRemoveFromAvoidGoals
import trap_BotResetGoalState
import trap_BotSetChatName
import trap_BotSetChatGender
import trap_BotLoadChatFile
import trap_BotReplaceSynonyms
import trap_UnifyWhiteSpaces
import trap_BotMatchVariable
import trap_BotFindMatch
import trap_StringContains
import trap_BotGetChatMessage
import trap_BotEnterChat
import trap_BotChatLength
import trap_BotReplyChat
import trap_BotNumInitialChats
import trap_BotInitialChat
import trap_BotNumConsoleMessages
import trap_BotNextConsoleMessage
import trap_BotRemoveConsoleMessage
import trap_BotQueueConsoleMessage
import trap_BotFreeChatState
import trap_BotAllocChatState
import trap_Characteristic_String
import trap_Characteristic_BInteger
import trap_Characteristic_Integer
import trap_Characteristic_BFloat
import trap_Characteristic_Float
import trap_BotFreeCharacter
import trap_BotLoadCharacter
import trap_EA_ResetInput
import trap_EA_GetInput
import trap_EA_EndRegular
import trap_EA_View
import trap_EA_Move
import trap_EA_DelayedJump
import trap_EA_Jump
import trap_EA_SelectWeapon
import trap_EA_MoveRight
import trap_EA_MoveLeft
import trap_EA_MoveBack
import trap_EA_MoveForward
import trap_EA_MoveDown
import trap_EA_MoveUp
import trap_EA_Crouch
import trap_EA_Respawn
import trap_EA_Use
import trap_EA_Attack
import trap_EA_Talk
import trap_EA_Gesture
import trap_EA_Action
import trap_EA_Command
import trap_EA_SayTeam
import trap_EA_Say
import trap_AAS_PredictClientMovement
import trap_AAS_Swimming
import trap_AAS_AlternativeRouteGoals
import trap_AAS_PredictRoute
import trap_AAS_EnableRoutingArea
import trap_AAS_AreaTravelTimeToGoalArea
import trap_AAS_AreaReachability
import trap_AAS_IntForBSPEpairKey
import trap_AAS_FloatForBSPEpairKey
import trap_AAS_VectorForBSPEpairKey
import trap_AAS_ValueForBSPEpairKey
import trap_AAS_NextBSPEntity
import trap_AAS_PointContents
import trap_AAS_TraceAreas
import trap_AAS_PointReachabilityAreaIndex
import trap_AAS_PointAreaNum
import trap_AAS_Time
import trap_AAS_PresenceTypeBoundingBox
import trap_AAS_Initialized
import trap_AAS_EntityInfo
import trap_AAS_AreaInfo
import trap_AAS_BBoxAreas
import trap_BotUserCommand
import trap_BotGetServerCommand
import trap_BotGetSnapshotEntity
import trap_BotLibTest
import trap_BotLibUpdateEntity
import trap_BotLibLoadMap
import trap_BotLibStartFrame
import trap_BotLibDefine
import trap_BotLibVarGet
import trap_BotLibVarSet
import trap_BotLibShutdown
import trap_BotLibSetup
import trap_DebugPolygonDelete
import trap_DebugPolygonCreate
import trap_GetEntityToken
import trap_GetUsercmd
import trap_BotFreeClient
import trap_BotAllocateClient
import trap_EntityContact
import trap_EntitiesInBox
import trap_UnlinkEntity
import trap_LinkEntity
import trap_AreasConnected
import trap_AdjustAreaPortalState
import trap_InPVSIgnorePortals
import trap_InPVS
import trap_PointContents
import trap_Trace
import trap_SetBrushModel
import trap_GetServerinfo
import trap_SetUserinfo
import trap_GetUserinfo
import trap_GetConfigstring
import trap_SetConfigstring
import trap_SendServerCommand
import trap_DropClient
import trap_LocateGameData
import trap_Cvar_VariableStringBuffer
import trap_Cvar_VariableValue
import trap_Cvar_VariableIntegerValue
import trap_Cvar_Set
import trap_Cvar_Update
import trap_Cvar_Register
import trap_SendConsoleCommand
import trap_FS_Seek
import trap_FS_GetFileList
import trap_FS_FCloseFile
import trap_FS_Write
import trap_FS_Read
import trap_FS_FOpenFile
import trap_Args
import trap_Argv
import trap_Argc
import trap_RealTime
import trap_Milliseconds
import trap_Error
import trap_Print
import g_proxMineTimeout
import g_singlePlayer
import g_enableBreath
import g_enableDust
import g_rankings
import pmove_msec
import pmove_fixed
import g_smoothClients
import g_blueteam
import g_redteam
import g_cubeTimeout
import g_obeliskRespawnDelay
import g_obeliskRegenAmount
import g_obeliskRegenPeriod
import g_obeliskHealth
import g_filterBan
import g_banIPs
import g_teamForceBalance
import g_teamAutoJoin
import g_allowVote
import g_blood
import g_doWarmup
import g_warmup
import g_motd
import g_synchronousClients
import g_weaponTeamRespawn
import g_weaponRespawn
import g_debugDamage
import g_debugAlloc
import g_debugMove
import g_inactivity
import g_forcerespawn
import g_quadfactor
import g_knockback
import g_speed
import g_gravity
import g_needpass
import g_password
import g_friendlyFire
import g_capturelimit
import g_timelimit
import g_fraglimit
import g_dmflags
import g_restarted
import g_maxGameClients
import g_maxclients
import g_cheats
import g_dedicated
import g_gametype
import g_entities
import level
import Pickup_Team
import CheckTeamStatus
import TeamplayInfoMessage
import Team_GetLocationMsg
import Team_GetLocation
import SelectCTFSpawnPoint
import Team_FreeEntity
import Team_ReturnFlag
import Team_InitGame
import Team_CheckHurtCarrier
import Team_FragBonuses
import Team_DroppedFlagThink
import AddTeamScore
import TeamColorString
import TeamName
import OtherTeam
import BotTestAAS
import BotAIStartFrame
import BotAIShutdownClient
import BotAISetupClient
import BotAILoadMap
import BotAIShutdown
import BotAISetup
import BotInterbreedEndMatch
import Svcmd_BotList_f
import Svcmd_AddBot_f
import G_BotConnect
import G_RemoveQueuedBotBegin
import G_CheckBotSpawn
import G_GetBotInfoByName
import G_GetBotInfoByNumber
import G_InitBots
import Svcmd_AbortPodium_f
import SpawnModelsOnVictoryPads
import UpdateTournamentInfo
import G_WriteSessionData
import G_InitWorldSession
import G_InitSessionData
import G_ReadSessionData
import Svcmd_GameMem_f
import G_InitMemory
import G_Alloc
import CheckObeliskAttack
import Team_CheckDroppedItem
import OnSameTeam
import G_RunClient
import ClientEndFrame
import ClientThink
import ClientCommand
import ClientBegin
import ClientDisconnect
import ClientUserinfoChanged
import ClientConnect
import G_Error
import G_Printf
import SendScoreboardMessageToAllClients
import G_LogPrintf
import AddTournamentQueue
import G_RunThink
import CheckTeamLeader
import SetLeader
import FindIntermissionPoint
import MoveClientToIntermission
import DeathmatchScoreboardMessage
import FireWeapon
import G_FilterPacket
import G_ProcessIPBans
import ConsoleCommand
import SpotWouldTelefrag
import CalculateRanks
import AddScore
import player_die
import ClientSpawn
import InitBodyQue
import BeginIntermission
import ClientRespawn
import CopyToBodyQue
import SelectSpawnPoint
import SetClientViewAngle
import PickTeam
import TeamLeader
import TeamCount
import Weapon_HookThink
import Weapon_HookFree
import CheckGauntletAttack
import SnapVectorTowards
import CalcMuzzlePoint
import LogAccuracyHit
import TeleportPlayer
import trigger_teleporter_touch
import Touch_DoorTrigger
import G_RunMover
import fire_grapple
import fire_bfg
import fire_rocket
import fire_grenade
import fire_plasma
import G_RunMissile
import TossClientCubes
import TossClientItems
import body_die
import G_InvulnerabilityEffect
import G_RadiusDamage
import G_Damage
import CanDamage
import BuildShaderStateConfig
import AddRemap
import G_SetOrigin
import G_AddEvent
import G_AddPredictableEvent
import vectoyaw
import vtos
import tv
import G_TouchTriggers
import G_EntitiesFree
import G_FreeEntity
import G_Sound
import G_TempEntity
import G_Spawn
import G_InitGentity
import G_SetMovedir
import G_UseTargets
import G_PickTarget
import G_Find
import G_KillBox
import G_TeamCommand
import G_SoundIndex
import G_ModelIndex
import SaveRegisteredItems
import RegisterItem
import ClearRegisteredItems
import Touch_Item
import Add_Ammo
import ArmorIndex
import Think_Weapon
import FinishSpawningItem
import G_SpawnItem
import SetRespawn
import LaunchItem
import Drop_Item
import PrecacheItem
import UseHoldableItem
import RespawnItem
import G_RunItem
import G_CheckTeamItems
import Cmd_FollowCycle_f
import SetTeam
import BroadcastTeamChange
import StopFollowing
import Cmd_Score_f
import G_NewString
import G_SpawnEntitiesFromString
import G_SpawnVector
import G_SpawnInt
import G_SpawnFloat
import G_SpawnString
import BG_PlayerTouchesItem
import BG_PlayerStateToEntityStateExtraPolate
import BG_PlayerStateToEntityState
import BG_TouchJumpPad
import BG_AddPredictableEventToPlayerstate
import BG_EvaluateTrajectoryDelta
import BG_EvaluateTrajectory
import BG_CanItemBeGrabbed
import BG_FindItemForHoldable
import BG_FindItemForPowerup
import BG_FindItemForWeapon
import BG_FindItem
import bg_numItems
import bg_itemlist
import Pmove
import PM_UpdateViewAngles
import Com_Printf
import Com_Error
import Info_NextPair
import Info_Validate
import Info_SetValueForKey_Big
import Info_SetValueForKey
import Info_RemoveKey_Big
import Info_RemoveKey
import Info_ValueForKey
import Com_TruncateLongString
import va
import Q_CountChar
import Q_CleanStr
import Q_PrintStrlen
import Q_strcat
import Q_strncpyz
import Q_stristr
import Q_strupr
import Q_strlwr
import Q_stricmpn
import Q_strncmp
import Q_stricmp
import Q_isintegral
import Q_isanumber
import Q_isalpha
import Q_isupper
import Q_islower
import Q_isprint
import Com_RandomBytes
import Com_SkipCharset
import Com_SkipTokens
import Com_sprintf
import Com_HexStrToInt
import Parse3DMatrix
import Parse2DMatrix
import Parse1DMatrix
import SkipRestOfLine
import SkipBracedSection
import COM_MatchToken
import COM_ParseWarning
import COM_ParseError
import COM_Compress
import COM_ParseExt
import COM_Parse
import COM_GetCurrentParseLine
import COM_BeginParseSession
import COM_DefaultExtension
import COM_CompareExtension
import COM_StripExtension
import COM_GetExtension
import COM_SkipPath
import Com_Clamp
import PerpendicularVector
import AngleVectors
import MatrixMultiply
import MakeNormalVectors
import RotateAroundDirection
import RotatePointAroundVector
import ProjectPointOnPlane
import PlaneFromPoints
import AngleDelta
import AngleNormalize180
import AngleNormalize360
import AnglesSubtract
import AngleSubtract
import LerpAngle
import AngleMod
import BoundsIntersectPoint
import BoundsIntersectSphere
import BoundsIntersect
import BoxOnPlaneSide
import SetPlaneSignbits
import AxisCopy
import AxisClear
import AnglesToAxis
import vectoangles
import Q_crandom
import Q_random
import Q_rand
import Q_acos
import Q_log2
import VectorRotate
import Vector4Scale
import VectorNormalize2
import VectorNormalize
import CrossProduct
import VectorInverse
import VectorNormalizeFast
import DistanceSquared
import Distance
import VectorLengthSquared
import VectorLength
import VectorCompare
import AddPointToBounds
import ClearBounds
import RadiusFromBounds
import NormalizeColor
import ColorBytes4
import ColorBytes3
import _VectorMA
import _VectorScale
import _VectorCopy
import _VectorAdd
import _VectorSubtract
import _DotProduct
import ByteToDir
import DirToByte
import ClampShort
import ClampChar
import Q_rsqrt
import Q_fabs
import Q_isnan
import axisDefault
import vec3_origin
import g_color_table
import colorDkGrey
import colorMdGrey
import colorLtGrey
import colorWhite
import colorCyan
import colorMagenta
import colorYellow
import colorBlue
import colorGreen
import colorRed
import colorBlack
import bytedirs
import Hunk_AllocDebug
import FloatSwap
import LongSwap
import ShortSwap
import CopyLongSwap
import CopyShortSwap
import qk_acos
import qk_fabs
import qk_abs
import qk_tan
import qk_atan2
import qk_cos
import qk_sin
import qk_sqrt
import qk_floor
import qk_ceil
import qk_memcpy
import qk_memset
import qk_memmove
import qk_sscanf
import qk_vsnprintf
import qk_strtol
import qk_atoi
import qk_strtod
import qk_atof
import qk_toupper
import qk_tolower
import qk_strncpy
import qk_strstr
import qk_strrchr
import qk_strchr
import qk_strcmp
import qk_strcpy
import qk_strcat
import qk_strlen
import qk_rand
import qk_srand
import qk_qsort
lit
align 1
LABELV $132
byte 1 119
byte 1 97
byte 1 110
byte 1 116
byte 1 111
byte 1 110
byte 1 111
byte 1 102
byte 1 102
byte 1 101
byte 1 110
byte 1 115
byte 1 101
byte 1 0
align 1
LABELV $131
byte 1 119
byte 1 97
byte 1 110
byte 1 116
byte 1 111
byte 1 110
byte 1 100
byte 1 101
byte 1 102
byte 1 101
byte 1 110
byte 1 115
byte 1 101
byte 1 0
align 1
LABELV $130
byte 1 119
byte 1 104
byte 1 111
byte 1 105
byte 1 115
byte 1 108
byte 1 101
byte 1 97
byte 1 100
byte 1 101
byte 1 114
byte 1 0
align 1
LABELV $129
byte 1 115
byte 1 116
byte 1 111
byte 1 112
byte 1 108
byte 1 101
byte 1 97
byte 1 100
byte 1 101
byte 1 114
byte 1 0
align 1
LABELV $128
byte 1 114
byte 1 101
byte 1 116
byte 1 117
byte 1 114
byte 1 110
byte 1 102
byte 1 108
byte 1 97
byte 1 103
byte 1 0
align 1
LABELV $127
byte 1 102
byte 1 111
byte 1 108
byte 1 108
byte 1 111
byte 1 119
byte 1 102
byte 1 108
byte 1 97
byte 1 103
byte 1 99
byte 1 97
byte 1 114
byte 1 114
byte 1 105
byte 1 101
byte 1 114
byte 1 0
align 1
LABELV $126
byte 1 102
byte 1 111
byte 1 108
byte 1 108
byte 1 111
byte 1 119
byte 1 109
byte 1 101
byte 1 0
align 1
LABELV $125
byte 1 99
byte 1 97
byte 1 109
byte 1 112
byte 1 0
align 1
LABELV $124
byte 1 112
byte 1 97
byte 1 116
byte 1 114
byte 1 111
byte 1 108
byte 1 0
align 1
LABELV $123
byte 1 100
byte 1 101
byte 1 102
byte 1 101
byte 1 110
byte 1 100
byte 1 102
byte 1 108
byte 1 97
byte 1 103
byte 1 0
align 1
LABELV $122
byte 1 100
byte 1 101
byte 1 102
byte 1 101
byte 1 110
byte 1 100
byte 1 0
align 1
LABELV $121
byte 1 111
byte 1 102
byte 1 102
byte 1 101
byte 1 110
byte 1 115
byte 1 101
byte 1 0
align 1
LABELV $120
byte 1 103
byte 1 101
byte 1 116
byte 1 102
byte 1 108
byte 1 97
byte 1 103
byte 1 0
align 1
LABELV $117
byte 1 121
byte 1 101
byte 1 115
byte 1 0
align 1
LABELV $116
byte 1 107
byte 1 101
byte 1 101
byte 1 112
byte 1 105
byte 1 110
byte 1 109
byte 1 105
byte 1 110
byte 1 100
byte 1 0
align 1
LABELV $114
byte 1 115
byte 1 116
byte 1 97
byte 1 114
byte 1 116
byte 1 108
byte 1 101
byte 1 97
byte 1 100
byte 1 101
byte 1 114
byte 1 0
align 1
LABELV $113
byte 1 105
byte 1 97
byte 1 109
byte 1 116
byte 1 101
byte 1 97
byte 1 109
byte 1 108
byte 1 101
byte 1 97
byte 1 100
byte 1 101
byte 1 114
byte 1 0
align 1
LABELV $88
byte 1 119
byte 1 104
byte 1 101
byte 1 114
byte 1 101
byte 1 97
byte 1 114
byte 1 101
byte 1 121
byte 1 111
byte 1 117
byte 1 0
align 1
LABELV $78
byte 1 111
byte 1 110
byte 1 112
byte 1 97
byte 1 116
byte 1 114
byte 1 111
byte 1 108
byte 1 0
align 1
LABELV $77
byte 1 100
byte 1 105
byte 1 115
byte 1 109
byte 1 105
byte 1 115
byte 1 115
byte 1 101
byte 1 100
byte 1 0
|
alloy4fun_models/trashltl/models/11/8ZosTdKugDXSvYJPT.als | Kaixi26/org.alloytools.alloy | 0 | 1681 | <gh_stars>0
open main
pred id8ZosTdKugDXSvYJPT_prop12 {
eventually some f:File | f in Trash releases f in Trash
}
pred __repair { id8ZosTdKugDXSvYJPT_prop12 }
check __repair { id8ZosTdKugDXSvYJPT_prop12 <=> prop12o } |
Appl/Games/Hearts/hearts.asm | steakknife/pcgeos | 504 | 164469 | <filename>Appl/Games/Hearts/hearts.asm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1993 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Hearts (Trivia Project)
FILE: hearts.asm
AUTHOR: <NAME>, Jan 19, 1993
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ---- -----------
PW 1/19/93 Initial revision
DESCRIPTION:
$Id: hearts.asm,v 1.1 97/04/04 15:19:16 newdeal Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
;------------------------------------------------------------------------------
; Include files
;------------------------------------------------------------------------------
;Standard include files
include geos.def
include geode.def
include ec.def
include myMacros.def
include library.def
include resource.def
include object.def
include graphics.def
include gstring.def
include Objects/winC.def
include heap.def
include lmem.def
include timer.def
include timedate.def
include system.def
include file.def
include fileEnum.def
include vm.def
include hugearr.def
include Objects/inputC.def
include initfile.def
include dbase.def
include text.def
;------------------------------------------------------------------------------
; Libraries used
;------------------------------------------------------------------------------
UseLib ui.def
UseLib sound.def
UseLib cards.def
UseLib Objects/vTextC.def
UseLib wav.def
; Don't enable both of these at once
WAV_SOUND equ 0
STANDARD_SOUND equ 1
include heartsGame.def
include heartsDeck.def
include heartsHand.def
include heartsSound.asm
include heartsGame.asm
include heartsDeck.asm
include heartsHand.asm
;------------------------------------------------------------------------------
; Constants
;------------------------------------------------------------------------------
EGYPTIAN_BACK = 1
;------------------------------------------------------------------------------
; Class & Method Definitions
;------------------------------------------------------------------------------
HeartsGenProcessClass class GenProcessClass
;define messages for this class here.
HeartsGenProcessClass endc ;end of class definition
;---------------------------------
; HeartsAppClass
;---------------------------------
HeartsApplicationClass class GenApplicationClass
HeartsApplicationClass endc
idata segment
HeartsApplicationClass
idata ends
;------------------------------------------------------------------------------
; Resources
;------------------------------------------------------------------------------
include hearts.rdef
;------------------------------------------------------------------------------
; Initialized variables and class structures
;------------------------------------------------------------------------------
idata segment
HeartsGenProcessClass mask CLASSF_NEVER_SAVED
;this flag necessary because GenProcessClass
;objects are hybrid objects.
idata ends
CommonCode segment resource ;start of code resource
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
HeartsGenOpenApplication
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: MSG_GEN_PROCESS_OPEN_APPLICATION handler for
HeartsProcessClass.
Sends the game object a MSG_GAME_SETUP_STUFF which readies
everthing for the hearts game.
CALLED BY: MSG_GEN_PROCESS_OPEN_APPLICATION
PASS: ds = dgroup
RETURN: nothing
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
PW 1/20/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
HeartsGenOpenApplication method dynamic HeartsGenProcessClass,
MSG_GEN_PROCESS_OPEN_APPLICATION
uses ax, cx, dx, bp
.enter
; If the game is already open then we started to exit
; but were started backup. All the ui objects should still
; be in place. So just call the super class. Note -
; the AAF_RESTORING_FROM_STATE bit will be set in this
; case even though we aren't coming back from state, so
; checking for being open must come before checking the
; bit.
;
call HeartsCheckIfGameIsOpen
jc callSuper
test cx, mask AAF_RESTORING_FROM_STATE
jz startingUp
mov bx, handle HeartsPlayingTable
mov si, offset HeartsPlayingTable
mov ax, MSG_GAME_RESTORE_BITMAPS
mov di, mask MF_FIXUP_DS
call ObjMessage
mov ax, MSG_GAME_RESTORE_STATE
mov di, mask MF_FIXUP_DS
call ObjMessage
callSuper:
mov di, offset HeartsGenProcessClass
mov ax, MSG_GEN_PROCESS_OPEN_APPLICATION
call ObjCallSuperNoLock
setupSounds:
if STANDARD_SOUND
; Under any circumstances that we receive
; MSG_GEN_PROCESS_OPEN_APPLICATION the sound buffers will
; need to be created.
;
call SoundSetupSounds
endif
; Mark the game as open so that we can detect the lazarus
; situation.
;
call HeartsMarkGameOpen
.leave
ret
startingUp:
call HeartsMakeSureTokenIsInstalled
;
; We're not restoring from state, so we need to create a full
; deck and start a new game here
;
mov bx, handle HeartsPlayingTable
mov si, offset HeartsPlayingTable
mov di, mask MF_FIXUP_DS
mov ax, MSG_GAME_SETUP_STUFF
call ObjMessage
mov di, mask MF_FIXUP_DS
mov ax, MSG_HEARTS_GAME_SETUP_NEIGHBORS
call ObjMessage
mov di, offset HeartsGenProcessClass
mov ax, MSG_GEN_PROCESS_OPEN_APPLICATION
call ObjCallSuperNoLock
;
; instantiate a full deck of cards,including
;
push si
mov bx, handle MyHand
mov si, offset MyHand
mov ax, MSG_HAND_MAKE_FULL_HAND
mov di, mask MF_FIXUP_DS
call ObjMessage
pop si
;
; start a new game.
;
mov ax, MSG_HEARTS_GAME_NEW_GAME
mov bx, handle HeartsPlayingTable
mov si, offset HeartsPlayingTable
mov di, mask MF_FIXUP_DS or mask MF_FORCE_QUEUE
call ObjMessage
jmp setupSounds
HeartsGenOpenApplication endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
HeartsCheckIfGameIsOpen
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Will check if the varData ATTR_HEARTS_GAME_OPEN
exists for HeartsPlayingTable
CALLED BY: SolitiareOpenApplication
PASS: nothing
RETURN: carry set if vardata found
carry clear if not found
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
PW 7/ 7/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
HeartsCheckIfGameIsOpen proc near
uses ax,bx,cx,dx,si,di,bp
.enter
sub sp, size GetVarDataParams
mov bp, sp
mov ss:[bp].GVDP_dataType, \
ATTR_HEARTS_GAME_OPEN
mov {word} ss:[bp].GVDP_bufferSize, 0
; clrdw ss:[bp].GVDP_buffer
mov bx, handle HeartsPlayingTable
mov si, offset HeartsPlayingTable
mov ax, MSG_META_GET_VAR_DATA
mov dx, size GetVarDataParams
mov di, mask MF_CALL or mask MF_STACK
call ObjMessage
add sp, size GetVarDataParams
cmp ax, -1 ; check if not found
stc
jne varDataFound
;varDataNotFound:
clc
varDataFound:
.leave
ret
HeartsCheckIfGameIsOpen endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
HeartsMarkGameOpen
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Will add the varData ATTR_SOLITAIRE_GAME_OPEN to
MyPlayingTable
CALLED BY: HeartsOpenApplication
PASS: nothing
RETURN: nothing
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
PW 7/ 7/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
HeartsMarkGameOpen proc near
uses ax,bx,cx,dx,si,di,bp
.enter
sub sp, size AddVarDataParams
mov bp, sp
mov ss:[bp].AVDP_dataType, \
ATTR_HEARTS_GAME_OPEN
mov {word} ss:[bp].AVDP_dataSize, size byte
clrdw ss:[bp].AVDP_data
mov bx, handle HeartsPlayingTable
mov si, offset HeartsPlayingTable
mov ax, MSG_META_ADD_VAR_DATA
mov dx, size AddVarDataParams
mov di, mask MF_CALL or mask MF_STACK
call ObjMessage
add sp, size AddVarDataParams
.leave
ret
HeartsMarkGameOpen endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
HeartsMakeSureTokenIsInstalled
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: The zoomer doesn't force applications to install their tokens.
So we must do it ourselves
CALLED BY: INTERNAL
HeartsStartUp
PASS: *ds:si - HeartsProcessClass
RETURN:
nothing
DESTROYED:
nothing
PSEUDO CODE/STRATEGY:
none
KNOWN BUGS/SIDE EFFECTS/IDEAS:
This routine should be optimized for SMALL SIZE over SPEED
Common cases:
unknown
REVISION HISTORY:
Name Date Description
---- ---- -----------
srs 8/20/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
HeartsMakeSureTokenIsInstalled proc near
uses ax,bx,cx,dx,bp,si,di
.enter
mov bx,handle HeartsApp
mov si,offset HeartsApp
mov di,mask MF_FIXUP_DS
mov ax,MSG_GEN_APPLICATION_INSTALL_TOKEN
call ObjMessage
.leave
ret
HeartsMakeSureTokenIsInstalled endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
HeartsGenCloseApplication
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: will save the state and then call the superclass to close
the application.
CALLED BY: MSG_GEN_PROCESS_CLOSE_APPLICATION
PASS: ds = dgroup
RETURN:
DESTROYED:
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
PW 3/16/93 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
HeartsGenCloseApplication method dynamic HeartsGenProcessClass,
MSG_GEN_PROCESS_CLOSE_APPLICATION
.enter
mov ax, MSG_GAME_SAVE_STATE
mov bx, handle HeartsPlayingTable
mov si, offset HeartsPlayingTable
mov di, mask MF_FIXUP_DS or mask MF_CALL
call ObjMessage
; mov bx, handle HeartsPlayingTable
; mov si, offset HeartsPlayingTable
mov di, mask MF_CALL or mask MF_FIXUP_DS
mov ax, MSG_GAME_SHUTDOWN
call ObjMessage
mov di, segment HeartsGenProcessClass
mov es, di
mov di, offset HeartsGenProcessClass
mov ax, MSG_GEN_PROCESS_CLOSE_APPLICATION
call ObjCallSuperNoLock
.leave
ret
HeartsGenCloseApplication endm
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
HeartsSaveOptions
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Pass message on to objects that need to save their options.
CALLED BY: MSG_META_SAVE_OPTIONS
PASS: *ds:si = Application object
es = segment of ConcenApplicationClass
RETURN: nothing
DESTROYED: nothing
SIDE EFFECTS:
PSEUDO CODE/STRATEGY:
REVISION HISTORY:
Name Date Description
---- ---- -----------
jfh 4/15/00 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
HeartsSaveOptions method dynamic HeartsApplicationClass,
MSG_META_SAVE_OPTIONS
uses ax, bx, cx, dx, di, bp
.enter
push si ; save si
;
; Broadcast message to all objects that need their options saved.
;
CallObjectNS HeartsToggleOptions, MSG_META_SAVE_OPTIONS, MF_FORCE_QUEUE
CallObjectNS SoundInteraction, MSG_META_SAVE_OPTIONS, MF_FORCE_QUEUE
CallObjectNS HeartsMaxPoints, MSG_META_SAVE_OPTIONS, MF_FORCE_QUEUE
;
; Save the card back in use. Card back will be returned in cx.
;
CallObjectNS HeartsPlayingTable, MSG_GAME_GET_WHICH_BACK, MF_CALL
push ds ; save ds
mov bp, cx ; bp <- the card back
mov cx, cs
mov ds, cx
mov si, offset categoryString ; ds:si=category ASCIIZ string
mov dx, offset keyString ; cx:dx=key ASCIIZ string
call InitFileWriteInteger
pop ds ; restore ds
pop si ; restore si
;
; Pass message to superclass.
;
mov ax, MSG_META_SAVE_OPTIONS
mov di, offset HeartsApplicationClass
call ObjCallSuperNoLock
.leave
ret
HeartsSaveOptions endm
categoryString char "Hearts",0 ; needs to be the same as in .ui file
keyString char "CardBackInUse",0
CommonCode ends ;end of CommonCode resource
|
ncasm/Casm.Antlr/Casm.g4 | jorgy343/condor | 0 | 7626 | <filename>ncasm/Casm.Antlr/Casm.g4
grammar Casm;
prog
: statement (EOL statement)* EOF
;
statement
: label? (instruction | directive)? comment?
;
label
: LABEL
;
instruction
: NAME expressionList?
;
directive
: DIRECTIVE expressionList?
;
expressionList
: expression (',' expression)*
;
expression
: (register | registerReference | NUMBER | NAME)
;
register
: REGISTER
;
registerReference
: REGISTERREFERENCE
;
comment
: COMMENT
;
LABEL
: NAME ':'
;
REGISTERREFERENCE
: '[' REGISTER ']'
;
REGISTER
: [rR] ([1][0-5] | [0-9])
;
DIRECTIVE
: '@' NAME
;
COMMENT
: ';' ~[\r\n]*
;
NAME
: [a-zA-Z_] [a-zA-Z0-9_]*
;
NUMBER
: (HEXNUMBER | DECIMALNUMBER | BINARYNUMBER)
;
HEXNUMBER
: '0' [xX] [_]* [0-9a-fA-F] [0-9a-fA-F_]*
;
DECIMALNUMBER
: ([0-9]+ | '0' [dD] [_]* [0-9] [0-9_]*)
;
BINARYNUMBER
: '0' [bB] [_]* [0-1] [0-1_]*
;
EOL
: '\r'? '\n'
;
WS
: [ \t] -> skip
; |
parser/Parallely.g4 | uiuc-arc/parallely | 0 | 6236 | grammar Parallely;
/*
* Parser Rules
*/
typequantifier : APPROXTYPE | PRECISETYPE | DYNTYPE;
basictype : typequantifier INTTYPE
| typequantifier FLOATTYPE
| typequantifier BOOLTYPE
| typequantifier INTTHIRTYTWOTYPE
| typequantifier INTSIXTYPE
| typequantifier FLOATTYPETWO
| typequantifier FLOATTYPETHREE
;
fulltype : basictype #singletype
| basictype '[' ']' #arraytype
;
probability : FLOAT # floatprob
| VAR # varprob
;
var : VAR # localvariable
| GLOBALVAR # globalvariable
| VAR '$' processid # threadvariable
;
fvar : VAR;
processid : INT # namedp
| VAR # variablep
| VAR IN GLOBALVAR # groupedp;
expression : INT # literal
| NEGATIVEINT #negliteral
| FLOAT # fliteral
| var # variable
// | GLOBALVAR # globalvariable
| var ('[' expression ']')+ #arrayvar
| expression MULTIPLY expression # multiply
| expression DIVISION expression # divide
| expression ADD expression # add
| expression MINUS expression # minus
| expression GREATER expression # greater
| expression LESS expression # less
| expression GEQ expression # geq
| expression LEQ expression # leq
| expression EQUAL expression # eq
| '(' expression ')' # select
| expression AND expression #andexp
| expression OR expression #orexp
;
declaration : basictype var # singledeclaration
| basictype ('[' (INT)? ']')+ var # arraydeclaration
| basictype ('[' (GLOBALVAR)? ']')+ var # dynarraydeclaration
| declaration '@' INT (',' INT)* # annotateddec
// | declaration ';' declaration # multipledeclaration
;
globaldec : GLOBALVAR '=' '{' processid (',' processid)* '}' # singleglobaldec
| basictype GLOBALVAR # globalconst
| basictype '[' (INT)? ']' GLOBALVAR # globalarray
| EXTERN basictype GLOBALVAR # globalexternal
| globaldec '@' INT (',' INT)* # annotatedgdec
// | globaldec ';' globaldec # multipleglobaldec
;
statement : SKIPSTATEMENT # skipstatement
| var ('[' expression ']')+ ASSIGNMENT expression # arrayassignment
| var ASSIGNMENT var ('[' expression ']')+ # arrayload
| var ASSIGNMENT '(' fulltype ')' var # cast
| var ASSIGNMENT expression # expassignment
| GLOBALVAR ASSIGNMENT expression # gexpassignment
| var ASSIGNMENT precise=expression '[' probability ']' approx=expression # probassignment
| APPROXIMATE '(' var ',' expression ')' # approximate
| var ASSIGNMENT condition=var '?' ifvar=var elsevar=var # condassignment
| assigned=var ASSIGNMENT '(' lvar=var GEQ rvar=var ')' '?' ifvar=var elsevar=var # dyncondassignmentgeq
| IF var THEN '{' (ifs+=statement ';')+ '}' # ifonly
| IF var THEN '{' (ifs+=statement ';')+ '}' ELSE '{' (elses+=statement ';')+ '}' # if
| SEND '(' sender=expression ',' fulltype ',' var ')' # send
| CONDSEND '(' var ',' processid ',' fulltype ',' var ')' # condsend
| DYNSEND '(' processid ',' fulltype ',' var ')' # dynsend
| DYNCONDSEND '(' var ',' processid ',' fulltype ',' var ')' # dyncondsend
| var ASSIGNMENT RECEIVE '(' processid ',' fulltype ')' # receive
| var ',' var ASSIGNMENT CONDRECEIVE '(' processid ',' fulltype ')' # condreceive
| var ASSIGNMENT DYNRECEIVE '(' processid ',' fulltype ')' # dynreceive
| var ',' var ASSIGNMENT DYNCONDRECEIVE '(' processid ',' fulltype ')' # dyncondreceive
| FOR VAR IN GLOBALVAR DO '{' (statement ';')+ '}' # forloop
| REPEAT INT '{' (statement ';')+ '}' # repeat
| REPEAT var '{' (statement ';')+ '}' # repeatlvar
| REPEAT GLOBALVAR '{' (statement ';')+ '}' # repeatvar
| WHILE '(' cond=expression ')' '{' (body+=statement ';')+ '}' # while
| avar+=var(','avar+=var)* ASSIGNMENT fname=fvar '('(invar+=var)?(',' invar+=var)*')' # func
// | var ASSIGNMENT TRACK '(' var ',' probability ')' # track
| var ASSIGNMENT TRACK '(' var ',' eps=FLOAT ',' delta=probability ')' # track
| var ASSIGNMENT TRACK '(' var ',' eps=var ',' delta=var ')' # trackvar
// | var ASSIGNMENT CHECK '(' var ',' probability ')' # check
| CHECK '(' var ',' eps=FLOAT ',' delta=probability ')' # speccheck
| assigned=var ASSIGNMENT CHECK '(' checkedvar=var ',' eps=FLOAT ',' delta=probability ')' # speccheckwithresult
| CHECKARRAY '(' var ',' eps=FLOAT ',' delta=probability ')' # speccheckarray
| code=COMMENT # instrument
| '<' DUMMY INT '>' # dummy
| TRY '{' (trys+=statement ';')+ '}'
CHECK '{' check=expression '}'
RECOVER '{' (recovers+=statement ';')+ '}' # recover
| TRY '{' (trys+=statement ';')+ '}'
CHECK '{' check=expression '}'
RECOVERWITH(processid*) '{' (recovers+=statement ';')+ '}' # recoverwith
| TRY '{' (trys+=statement ';')+ '}'
RECOVERFROM(processid) '{' (recovers+=statement ';')+ '}' # recoverfrom
| statement '@' annotation+=INT (',' annotation+=INT)* # annotated
;
program : processid ':' '[' (declaration ';')* (statement ';')+ ']' # single
;
parallelprogram : (funcspec ';')* (globaldec ';')* program ('||' program)* # parcomposition
;
sequentialprogram : (funcspec ';')* (globaldec ';')* (declaration ';')* (statement ';')+ # sequential
;
singlerelyspec : FLOAT LEQ (FLOAT '*')? 'R' '(' (VAR | GLOBALVAR) (',' (VAR | GLOBALVAR))* ')'
;
relyspec : singlerelyspec (AND singlerelyspec)*
;
interval : '[' FLOAT ',' FLOAT ']'
;
varchiselspec : var IN interval
;
funcchiselspec : var IN '<' INT ',' INT ',' FLOAT (',' FLOAT ',' interval)+ '>'
;
checkchiselspec : var ENSURES '<' expression GEQ var (',' expression GEQ var)* '>'
;
singlechiselspec : FLOAT LEQ 'R' '(' (FLOAT GEQ 'd' '(' var ')') (',' (FLOAT GEQ 'd' '(' var ')'))* ')'
;
chiselspec : singlechiselspec (AND singlechiselspec)* (varchiselspec | funcchiselspec | checkchiselspec)*
;
funcspec : SPEC funcname=var '(' funcargs+=var? (',' funcargs+=var)* ')' '=' '(' ACC ':' accexps+=expression? (',' accexps+=expression)* ',' REL ':' relspecs+=expression? (',' relspecs+=expression)* ')'
// REL ':' expression? (', ' expression)* ';' ')'
;
/*
* Lexer Rules
*/
fragment A : [aA];
fragment B : [bB];
fragment C : [cC];
fragment D : [dD];
fragment E : [eE];
fragment F : [fF];
fragment G : [gG];
fragment H : [hH];
fragment I : [iI];
fragment J : [jJ];
fragment K : [kK];
fragment L: [lL];
fragment M: [mM];
fragment N: [nN];
fragment O: [oO];
fragment P: [pP];
fragment R: [rR];
fragment S: [sS];
fragment T: [tT];
fragment U: [uU];
fragment V: [vV];
fragment W: [wW];
fragment X: [xX];
fragment Y: [yY];
SKIPSTATEMENT : S K I P;
IF : I F;
THEN : T H E N;
ELSE : E L S E;
SEND : S E N D;
CONDSEND : C O N D S E N D;
DYNSEND : D Y N S E N D;
DYNCONDSEND : D Y N C O N D S E N D;
RECEIVE : R E C E I V E;
CONDRECEIVE : C O N D R E C E I V E;
DYNRECEIVE : D Y N R E C E I V E;
DYNCONDRECEIVE : D Y N C O N D R E C E I V E;
FOR : F O R;
IN : I N;
DO : D O;
REPEAT : R E P E A T;
WHILE : W H I L E;
TRACK : T R A C K;
CHECK : C H E C K;
CHECKARRAY : C H E C K A R R A Y;
TRY : T R Y;
RECOVER : R E C O V E R;
RECOVERWITH : R E C O V E R W I T H;
RECOVERFROM : R E C O V E R F R O M;
DUMMY : D U M M Y;
APPROXIMATE : A P P R O X I M A T E;
ENSURES : E N S U R E S;
SPEC : S P E C;
ACC : A C C;
REL : R E L;
TRUE : 'true';
FALSE : 'false';
ASSIGNMENT : '=';
NEGATIVEINT : '(' '-' [0-9] + ')';
INT : [0-9] +;
FLOAT : ('-')?[0-9]+ '.' [0-9]+;
INTTYPE : I N T;
INTTHIRTYTWOTYPE : I N T '3' '2';
INTSIXTYPE : I N T '6' '4';
FLOATTYPE : F L O A T;
FLOATTYPETWO : F L O A T '6' '4';
FLOATTYPETHREE : F L O A T '3' '2';
BOOLTYPE : B O O L;
PRECISETYPE : P R E C I S E;
APPROXTYPE : A P P R O X;
DYNTYPE : D Y N A M I C;
EXTERN : E X T E R N;
ADD : '+';
MINUS : '-';
MULTIPLY : '*';
DIVISION : '/';
EQUAL : '==';
GREATER : '>';
LESS : '<';
GEQ : '>=';
LEQ : '<=';
NOT : '!';
AND : '&&';
OR : '||';
VAR : [_a-z] [._0-9A-Za-z]*;
GLOBALVAR : [A-Z] [_0-9A-Za-z]*;
WHITESPACE : [ \t\r\n\f]+ -> channel(HIDDEN);
COMMENT : '##' ~('\r' | '\n')* '##';
|
extern/gnat_sdl/gnat_sdl/src/sdl_sdl_keysym_h.ads | AdaCore/training_material | 15 | 22333 | <gh_stars>10-100
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
package SDL_SDL_keysym_h is
-- unsupported macro: KMOD_CTRL (KMOD_LCTRL|KMOD_RCTRL)
-- unsupported macro: KMOD_SHIFT (KMOD_LSHIFT|KMOD_RSHIFT)
-- unsupported macro: KMOD_ALT (KMOD_LALT|KMOD_RALT)
-- unsupported macro: KMOD_META (KMOD_LMETA|KMOD_RMETA)
subtype SDLKey is unsigned;
SDLK_UNKNOWN : constant SDLKey := 0;
SDLK_FIRST : constant SDLKey := 0;
SDLK_BACKSPACE : constant SDLKey := 8;
SDLK_TAB : constant SDLKey := 9;
SDLK_CLEAR : constant SDLKey := 12;
SDLK_RETURN : constant SDLKey := 13;
SDLK_PAUSE : constant SDLKey := 19;
SDLK_ESCAPE : constant SDLKey := 27;
SDLK_SPACE : constant SDLKey := 32;
SDLK_EXCLAIM : constant SDLKey := 33;
SDLK_QUOTEDBL : constant SDLKey := 34;
SDLK_HASH : constant SDLKey := 35;
SDLK_DOLLAR : constant SDLKey := 36;
SDLK_AMPERSAND : constant SDLKey := 38;
SDLK_QUOTE : constant SDLKey := 39;
SDLK_LEFTPAREN : constant SDLKey := 40;
SDLK_RIGHTPAREN : constant SDLKey := 41;
SDLK_ASTERISK : constant SDLKey := 42;
SDLK_PLUS : constant SDLKey := 43;
SDLK_COMMA : constant SDLKey := 44;
SDLK_MINUS : constant SDLKey := 45;
SDLK_PERIOD : constant SDLKey := 46;
SDLK_SLASH : constant SDLKey := 47;
SDLK_0 : constant SDLKey := 48;
SDLK_1 : constant SDLKey := 49;
SDLK_2 : constant SDLKey := 50;
SDLK_3 : constant SDLKey := 51;
SDLK_4 : constant SDLKey := 52;
SDLK_5 : constant SDLKey := 53;
SDLK_6 : constant SDLKey := 54;
SDLK_7 : constant SDLKey := 55;
SDLK_8 : constant SDLKey := 56;
SDLK_9 : constant SDLKey := 57;
SDLK_COLON : constant SDLKey := 58;
SDLK_SEMICOLON : constant SDLKey := 59;
SDLK_LESS : constant SDLKey := 60;
SDLK_EQUALS : constant SDLKey := 61;
SDLK_GREATER : constant SDLKey := 62;
SDLK_QUESTION : constant SDLKey := 63;
SDLK_AT : constant SDLKey := 64;
SDLK_LEFTBRACKET : constant SDLKey := 91;
SDLK_BACKSLASH : constant SDLKey := 92;
SDLK_RIGHTBRACKET : constant SDLKey := 93;
SDLK_CARET : constant SDLKey := 94;
SDLK_UNDERSCORE : constant SDLKey := 95;
SDLK_BACKQUOTE : constant SDLKey := 96;
SDLK_a : constant SDLKey := 97;
SDLK_b : constant SDLKey := 98;
SDLK_c : constant SDLKey := 99;
SDLK_d : constant SDLKey := 100;
SDLK_e : constant SDLKey := 101;
SDLK_f : constant SDLKey := 102;
SDLK_g : constant SDLKey := 103;
SDLK_h : constant SDLKey := 104;
SDLK_i : constant SDLKey := 105;
SDLK_j : constant SDLKey := 106;
SDLK_k : constant SDLKey := 107;
SDLK_l : constant SDLKey := 108;
SDLK_m : constant SDLKey := 109;
SDLK_n : constant SDLKey := 110;
SDLK_o : constant SDLKey := 111;
SDLK_p : constant SDLKey := 112;
SDLK_q : constant SDLKey := 113;
SDLK_r : constant SDLKey := 114;
SDLK_s : constant SDLKey := 115;
SDLK_t : constant SDLKey := 116;
SDLK_u : constant SDLKey := 117;
SDLK_v : constant SDLKey := 118;
SDLK_w : constant SDLKey := 119;
SDLK_x : constant SDLKey := 120;
SDLK_y : constant SDLKey := 121;
SDLK_z : constant SDLKey := 122;
SDLK_DELETE : constant SDLKey := 127;
SDLK_WORLD_0 : constant SDLKey := 160;
SDLK_WORLD_1 : constant SDLKey := 161;
SDLK_WORLD_2 : constant SDLKey := 162;
SDLK_WORLD_3 : constant SDLKey := 163;
SDLK_WORLD_4 : constant SDLKey := 164;
SDLK_WORLD_5 : constant SDLKey := 165;
SDLK_WORLD_6 : constant SDLKey := 166;
SDLK_WORLD_7 : constant SDLKey := 167;
SDLK_WORLD_8 : constant SDLKey := 168;
SDLK_WORLD_9 : constant SDLKey := 169;
SDLK_WORLD_10 : constant SDLKey := 170;
SDLK_WORLD_11 : constant SDLKey := 171;
SDLK_WORLD_12 : constant SDLKey := 172;
SDLK_WORLD_13 : constant SDLKey := 173;
SDLK_WORLD_14 : constant SDLKey := 174;
SDLK_WORLD_15 : constant SDLKey := 175;
SDLK_WORLD_16 : constant SDLKey := 176;
SDLK_WORLD_17 : constant SDLKey := 177;
SDLK_WORLD_18 : constant SDLKey := 178;
SDLK_WORLD_19 : constant SDLKey := 179;
SDLK_WORLD_20 : constant SDLKey := 180;
SDLK_WORLD_21 : constant SDLKey := 181;
SDLK_WORLD_22 : constant SDLKey := 182;
SDLK_WORLD_23 : constant SDLKey := 183;
SDLK_WORLD_24 : constant SDLKey := 184;
SDLK_WORLD_25 : constant SDLKey := 185;
SDLK_WORLD_26 : constant SDLKey := 186;
SDLK_WORLD_27 : constant SDLKey := 187;
SDLK_WORLD_28 : constant SDLKey := 188;
SDLK_WORLD_29 : constant SDLKey := 189;
SDLK_WORLD_30 : constant SDLKey := 190;
SDLK_WORLD_31 : constant SDLKey := 191;
SDLK_WORLD_32 : constant SDLKey := 192;
SDLK_WORLD_33 : constant SDLKey := 193;
SDLK_WORLD_34 : constant SDLKey := 194;
SDLK_WORLD_35 : constant SDLKey := 195;
SDLK_WORLD_36 : constant SDLKey := 196;
SDLK_WORLD_37 : constant SDLKey := 197;
SDLK_WORLD_38 : constant SDLKey := 198;
SDLK_WORLD_39 : constant SDLKey := 199;
SDLK_WORLD_40 : constant SDLKey := 200;
SDLK_WORLD_41 : constant SDLKey := 201;
SDLK_WORLD_42 : constant SDLKey := 202;
SDLK_WORLD_43 : constant SDLKey := 203;
SDLK_WORLD_44 : constant SDLKey := 204;
SDLK_WORLD_45 : constant SDLKey := 205;
SDLK_WORLD_46 : constant SDLKey := 206;
SDLK_WORLD_47 : constant SDLKey := 207;
SDLK_WORLD_48 : constant SDLKey := 208;
SDLK_WORLD_49 : constant SDLKey := 209;
SDLK_WORLD_50 : constant SDLKey := 210;
SDLK_WORLD_51 : constant SDLKey := 211;
SDLK_WORLD_52 : constant SDLKey := 212;
SDLK_WORLD_53 : constant SDLKey := 213;
SDLK_WORLD_54 : constant SDLKey := 214;
SDLK_WORLD_55 : constant SDLKey := 215;
SDLK_WORLD_56 : constant SDLKey := 216;
SDLK_WORLD_57 : constant SDLKey := 217;
SDLK_WORLD_58 : constant SDLKey := 218;
SDLK_WORLD_59 : constant SDLKey := 219;
SDLK_WORLD_60 : constant SDLKey := 220;
SDLK_WORLD_61 : constant SDLKey := 221;
SDLK_WORLD_62 : constant SDLKey := 222;
SDLK_WORLD_63 : constant SDLKey := 223;
SDLK_WORLD_64 : constant SDLKey := 224;
SDLK_WORLD_65 : constant SDLKey := 225;
SDLK_WORLD_66 : constant SDLKey := 226;
SDLK_WORLD_67 : constant SDLKey := 227;
SDLK_WORLD_68 : constant SDLKey := 228;
SDLK_WORLD_69 : constant SDLKey := 229;
SDLK_WORLD_70 : constant SDLKey := 230;
SDLK_WORLD_71 : constant SDLKey := 231;
SDLK_WORLD_72 : constant SDLKey := 232;
SDLK_WORLD_73 : constant SDLKey := 233;
SDLK_WORLD_74 : constant SDLKey := 234;
SDLK_WORLD_75 : constant SDLKey := 235;
SDLK_WORLD_76 : constant SDLKey := 236;
SDLK_WORLD_77 : constant SDLKey := 237;
SDLK_WORLD_78 : constant SDLKey := 238;
SDLK_WORLD_79 : constant SDLKey := 239;
SDLK_WORLD_80 : constant SDLKey := 240;
SDLK_WORLD_81 : constant SDLKey := 241;
SDLK_WORLD_82 : constant SDLKey := 242;
SDLK_WORLD_83 : constant SDLKey := 243;
SDLK_WORLD_84 : constant SDLKey := 244;
SDLK_WORLD_85 : constant SDLKey := 245;
SDLK_WORLD_86 : constant SDLKey := 246;
SDLK_WORLD_87 : constant SDLKey := 247;
SDLK_WORLD_88 : constant SDLKey := 248;
SDLK_WORLD_89 : constant SDLKey := 249;
SDLK_WORLD_90 : constant SDLKey := 250;
SDLK_WORLD_91 : constant SDLKey := 251;
SDLK_WORLD_92 : constant SDLKey := 252;
SDLK_WORLD_93 : constant SDLKey := 253;
SDLK_WORLD_94 : constant SDLKey := 254;
SDLK_WORLD_95 : constant SDLKey := 255;
SDLK_KP0 : constant SDLKey := 256;
SDLK_KP1 : constant SDLKey := 257;
SDLK_KP2 : constant SDLKey := 258;
SDLK_KP3 : constant SDLKey := 259;
SDLK_KP4 : constant SDLKey := 260;
SDLK_KP5 : constant SDLKey := 261;
SDLK_KP6 : constant SDLKey := 262;
SDLK_KP7 : constant SDLKey := 263;
SDLK_KP8 : constant SDLKey := 264;
SDLK_KP9 : constant SDLKey := 265;
SDLK_KP_PERIOD : constant SDLKey := 266;
SDLK_KP_DIVIDE : constant SDLKey := 267;
SDLK_KP_MULTIPLY : constant SDLKey := 268;
SDLK_KP_MINUS : constant SDLKey := 269;
SDLK_KP_PLUS : constant SDLKey := 270;
SDLK_KP_ENTER : constant SDLKey := 271;
SDLK_KP_EQUALS : constant SDLKey := 272;
SDLK_UP : constant SDLKey := 273;
SDLK_DOWN : constant SDLKey := 274;
SDLK_RIGHT : constant SDLKey := 275;
SDLK_LEFT : constant SDLKey := 276;
SDLK_INSERT : constant SDLKey := 277;
SDLK_HOME : constant SDLKey := 278;
SDLK_END : constant SDLKey := 279;
SDLK_PAGEUP : constant SDLKey := 280;
SDLK_PAGEDOWN : constant SDLKey := 281;
SDLK_F1 : constant SDLKey := 282;
SDLK_F2 : constant SDLKey := 283;
SDLK_F3 : constant SDLKey := 284;
SDLK_F4 : constant SDLKey := 285;
SDLK_F5 : constant SDLKey := 286;
SDLK_F6 : constant SDLKey := 287;
SDLK_F7 : constant SDLKey := 288;
SDLK_F8 : constant SDLKey := 289;
SDLK_F9 : constant SDLKey := 290;
SDLK_F10 : constant SDLKey := 291;
SDLK_F11 : constant SDLKey := 292;
SDLK_F12 : constant SDLKey := 293;
SDLK_F13 : constant SDLKey := 294;
SDLK_F14 : constant SDLKey := 295;
SDLK_F15 : constant SDLKey := 296;
SDLK_NUMLOCK : constant SDLKey := 300;
SDLK_CAPSLOCK : constant SDLKey := 301;
SDLK_SCROLLOCK : constant SDLKey := 302;
SDLK_RSHIFT : constant SDLKey := 303;
SDLK_LSHIFT : constant SDLKey := 304;
SDLK_RCTRL : constant SDLKey := 305;
SDLK_LCTRL : constant SDLKey := 306;
SDLK_RALT : constant SDLKey := 307;
SDLK_LALT : constant SDLKey := 308;
SDLK_RMETA : constant SDLKey := 309;
SDLK_LMETA : constant SDLKey := 310;
SDLK_LSUPER : constant SDLKey := 311;
SDLK_RSUPER : constant SDLKey := 312;
SDLK_MODE : constant SDLKey := 313;
SDLK_COMPOSE : constant SDLKey := 314;
SDLK_HELP : constant SDLKey := 315;
SDLK_PRINT : constant SDLKey := 316;
SDLK_SYSREQ : constant SDLKey := 317;
SDLK_BREAK : constant SDLKey := 318;
SDLK_MENU : constant SDLKey := 319;
SDLK_POWER : constant SDLKey := 320;
SDLK_EURO : constant SDLKey := 321;
SDLK_UNDO : constant SDLKey := 322;
SDLK_LAST : constant SDLKey := 323; -- ../include/SDL/SDL_keysym.h:302
subtype SDLMod is unsigned;
KMOD_NONE : constant SDLMod := 0;
KMOD_LSHIFT : constant SDLMod := 1;
KMOD_RSHIFT : constant SDLMod := 2;
KMOD_LCTRL : constant SDLMod := 64;
KMOD_RCTRL : constant SDLMod := 128;
KMOD_LALT : constant SDLMod := 256;
KMOD_RALT : constant SDLMod := 512;
KMOD_LMETA : constant SDLMod := 1024;
KMOD_RMETA : constant SDLMod := 2048;
KMOD_NUM : constant SDLMod := 4096;
KMOD_CAPS : constant SDLMod := 8192;
KMOD_MODE : constant SDLMod := 16384;
KMOD_RESERVED : constant SDLMod := 32768; -- ../include/SDL/SDL_keysym.h:319
end SDL_SDL_keysym_h;
|
courses/fundamentals_of_ada/labs/prompts/180_polymorphism/shapes.ads | AdaCore/training_material | 15 | 21533 | <reponame>AdaCore/training_material
package Shapes is
pragma Elaborate_Body;
type Float_T is digits 6;
type Vertex_T is record
X : Float_T;
Y : Float_T;
end record;
type Vertices_T is array (Positive range <>) of Vertex_T;
-- Create abstract Shape_T with some information
-- Create primitive subprograms to get/set object description,
-- number of sides, and perimeter
-- Create concrete Quadrilateral type which is a shape with 4 sides
-- Implement primitive subprograms as needed
-- Create concrete Square type which is a Quadrilateral with all 4 sides
-- of the same length.
-- Implement primitive subprograms as needed
-- Create concrete Triangle type which is a shape with 3 sides
-- Implement primitive subprograms as needed
end Shapes;
|
programs/oeis/164/A164314.asm | neoneye/loda | 22 | 19448 | <gh_stars>10-100
; A164314: Largest prime factor of n^2 - 2.
; 2,7,7,23,17,47,31,79,7,17,71,167,97,223,127,41,23,359,199,439,241,31,41,89,337,727,23,839,449,137,73,1087,577,1223,647,1367,103,31,47,73,881,1847,967,17,151,2207,1151,2399,1249,113,193,401,47,3023,1567,191,41,71,257,3719,113,3967,89,103,311,641,2311,4759,79,5039,2591,761,23,5623,2887,5927,3041,367,457,937,3361,97,3527,233,3697,47,79,7919,4049,487,4231,8647,631,1289,271,409,4801,239,4999,47
add $0,2
pow $0,2
sub $0,3
seq $0,6530 ; Gpf(n): greatest prime dividing n, for n >= 2; a(1)=1.
|
src/offmt_lib-decoding.adb | Fabien-Chouteau/offmt-tool | 0 | 11190 | <reponame>Fabien-Chouteau/offmt-tool
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Exceptions;
with System.Storage_Elements; use System.Storage_Elements;
with COBS.Stream.Decoder;
with Offmt_Lib.Storage;
with Offmt_Lib.Fmt_Data;
package body Offmt_Lib.Decoding is
procedure Handle_Frame (Map : Trace_Map; Frame : in out Data_Frame);
procedure Put_Format (Fmt : Format; Frame : in out Data_Frame);
procedure Decode_From_File (Map : Trace_Map; File : in out File_Type);
type COBS_Decoder is new COBS.Stream.Decoder.Instance with record
Frame : Data_Frame;
Map : Trace_Map;
end record;
overriding
procedure Flush (This : in out COBS_Decoder;
Data : Storage_Array);
overriding
procedure End_Of_Frame (This : in out COBS_Decoder);
-----------
-- Flush --
-----------
overriding
procedure Flush (This : in out COBS_Decoder;
Data : Storage_Array)
is
begin
for Elt of Data loop
Push (This.Frame, Elt);
end loop;
end Flush;
------------------
-- End_Of_Frame --
------------------
overriding
procedure End_Of_Frame (This : in out COBS_Decoder) is
begin
Handle_Frame (This.Map, This.Frame);
Clear (This.Frame);
end End_Of_Frame;
----------------
-- Put_Format --
----------------
procedure Put_Format (Fmt : Format; Frame : in out Data_Frame) is
Data : Fmt_Data.Instance'Class := Fmt_Data.Create (Fmt.Typ);
begin
Data.From_Frame (Frame);
Put (Data.Format (Fmt.Kind));
end Put_Format;
------------------
-- Handle_Frame --
------------------
procedure Handle_Frame (Map : Trace_Map; Frame : in out Data_Frame) is
function Pop_Id (Frame : in out Data_Frame) return Trace_ID;
function Pop_Id (Frame : in out Data_Frame) return Trace_ID
is
Result : Trace_ID;
begin
if Remaining (Frame) < 2 then
raise Frame_Error with "Frame too short for ID";
else
Result := Trace_ID (Pop (Frame));
Result := Result or Shift_Left (Trace_ID (Pop (Frame)), 8);
return Result;
end if;
end Pop_Id;
Id : Trace_ID;
begin
-- Put_Line ("We have a frame of" & Remaining (Frame)'Img & " bytes");
Id := Pop_Id (Frame);
-- Put_Line ("Frame #" & Id'Img);
declare
T : constant Trace := Map.Element (Id);
begin
for Elt of T.List loop
case Elt.Kind is
when Plain_String =>
Put (To_String (Elt.Str));
when Format_String =>
Put_Format (Elt.Fmt, Frame);
end case;
end loop;
New_Line;
end;
exception
when E : Frame_Error =>
Put_Line ("Frame Error: " & Ada.Exceptions.Exception_Message (E));
end Handle_Frame;
----------------------
-- Decode_From_File --
----------------------
procedure Decode_From_File (Map : Trace_Map; File : in out File_Type) is
C : Character;
Decoder : COBS_Decoder;
begin
Decoder.Map := Map;
loop
Get_Immediate (File, C);
Decoder.Push (Storage_Element (C'Enum_Rep));
end loop;
exception
when End_Error =>
Close (File);
end Decode_From_File;
------------
-- Decode --
------------
procedure Decode (Map_Filename : String) is
Load : constant Storage.Load_Result := Storage.Load (Map_Filename);
File : File_Type := Standard_Input;
begin
if Load.Success then
Decode_From_File (Load.Map, File);
else
Put_Line ("Cannot open map file '" & Map_Filename & "': " &
To_String (Load.Msg));
raise Program_Error;
end if;
end Decode;
end Offmt_Lib.Decoding;
|
programs/oeis/285/A285766.asm | karttu/loda | 0 | 25181 | <filename>programs/oeis/285/A285766.asm
; A285766: Maximum spillway height for a zero or one bend minimal area lake in a number square.
; 0,0,6,10,15,22,31,42,55,70,87,106,127,150,175,202,231,262,295,330,367,406,447,490,535,582,631,682,735,790,847,906,967,1030,1095,1162,1231,1302,1375,1450,1527,1606,1687,1770,1855,1942,2031,2122,2215,2310,2407
sub $0,1
lpb $0,1
add $2,$0
sub $0,1
add $2,$0
add $4,6
add $3,$4
mov $1,$3
mov $3,$2
mov $4,$0
lpe
|
lubanturbo/src/main/cpp/include/simd/jcqnts2f.asm | skyNet2017/TakePhoto | 773 | 160191 | ;
; jcqnts2f.asm - sample data conversion and quantization (SSE & SSE2)
;
; Copyright 2009 <NAME> <<EMAIL>> for Cendio AB
;
; Based on
; x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
; For conditions of distribution and use, see copyright notice in jsimdext.inc
;
; This file should be assembled with NASM (Netwide Assembler),
; can *not* be assembled with Microsoft's MASM or any compatible
; assembler (including Borland's Turbo Assembler).
; NASM is available from http://nasm.sourceforge.net/ or
; http://sourceforge.net/project/showfiles.php?group_id=6208
;
; [TAB8]
%include "jsimdext.inc"
%include "jdct.inc"
; --------------------------------------------------------------------------
SECTION SEG_TEXT
BITS 32
;
; Load data into workspace, applying unsigned->signed conversion
;
; GLOBAL(void)
; jsimd_convsamp_float_sse2 (JSAMPARRAY sample_data, JDIMENSION start_col,
; FAST_FLOAT * workspace);
;
%define sample_data ebp+8 ; JSAMPARRAY sample_data
%define start_col ebp+12 ; JDIMENSION start_col
%define workspace ebp+16 ; FAST_FLOAT * workspace
align 16
global EXTN(jsimd_convsamp_float_sse2)
EXTN(jsimd_convsamp_float_sse2):
push ebp
mov ebp,esp
push ebx
; push ecx ; need not be preserved
; push edx ; need not be preserved
push esi
push edi
pcmpeqw xmm7,xmm7
psllw xmm7,7
packsswb xmm7,xmm7 ; xmm7 = PB_CENTERJSAMPLE (0x808080..)
mov esi, JSAMPARRAY [sample_data] ; (JSAMPROW *)
mov eax, JDIMENSION [start_col]
mov edi, POINTER [workspace] ; (DCTELEM *)
mov ecx, DCTSIZE/2
alignx 16,7
.convloop:
mov ebx, JSAMPROW [esi+0*SIZEOF_JSAMPROW] ; (JSAMPLE *)
mov edx, JSAMPROW [esi+1*SIZEOF_JSAMPROW] ; (JSAMPLE *)
movq xmm0, XMM_MMWORD [ebx+eax*SIZEOF_JSAMPLE]
movq xmm1, XMM_MMWORD [edx+eax*SIZEOF_JSAMPLE]
psubb xmm0,xmm7 ; xmm0=(01234567)
psubb xmm1,xmm7 ; xmm1=(89ABCDEF)
punpcklbw xmm0,xmm0 ; xmm0=(*0*1*2*3*4*5*6*7)
punpcklbw xmm1,xmm1 ; xmm1=(*8*9*A*B*C*D*E*F)
punpcklwd xmm2,xmm0 ; xmm2=(***0***1***2***3)
punpckhwd xmm0,xmm0 ; xmm0=(***4***5***6***7)
punpcklwd xmm3,xmm1 ; xmm3=(***8***9***A***B)
punpckhwd xmm1,xmm1 ; xmm1=(***C***D***E***F)
psrad xmm2,(DWORD_BIT-BYTE_BIT) ; xmm2=(0123)
psrad xmm0,(DWORD_BIT-BYTE_BIT) ; xmm0=(4567)
cvtdq2ps xmm2,xmm2 ; xmm2=(0123)
cvtdq2ps xmm0,xmm0 ; xmm0=(4567)
psrad xmm3,(DWORD_BIT-BYTE_BIT) ; xmm3=(89AB)
psrad xmm1,(DWORD_BIT-BYTE_BIT) ; xmm1=(CDEF)
cvtdq2ps xmm3,xmm3 ; xmm3=(89AB)
cvtdq2ps xmm1,xmm1 ; xmm1=(CDEF)
movaps XMMWORD [XMMBLOCK(0,0,edi,SIZEOF_FAST_FLOAT)], xmm2
movaps XMMWORD [XMMBLOCK(0,1,edi,SIZEOF_FAST_FLOAT)], xmm0
movaps XMMWORD [XMMBLOCK(1,0,edi,SIZEOF_FAST_FLOAT)], xmm3
movaps XMMWORD [XMMBLOCK(1,1,edi,SIZEOF_FAST_FLOAT)], xmm1
add esi, byte 2*SIZEOF_JSAMPROW
add edi, byte 2*DCTSIZE*SIZEOF_FAST_FLOAT
dec ecx
jnz short .convloop
pop edi
pop esi
; pop edx ; need not be preserved
; pop ecx ; need not be preserved
pop ebx
pop ebp
ret
; --------------------------------------------------------------------------
;
; Quantize/descale the coefficients, and store into coef_block
;
; GLOBAL(void)
; jsimd_quantize_float_sse2 (JCOEFPTR coef_block, FAST_FLOAT * divisors,
; FAST_FLOAT * workspace);
;
%define coef_block ebp+8 ; JCOEFPTR coef_block
%define divisors ebp+12 ; FAST_FLOAT * divisors
%define workspace ebp+16 ; FAST_FLOAT * workspace
align 16
global EXTN(jsimd_quantize_float_sse2)
EXTN(jsimd_quantize_float_sse2):
push ebp
mov ebp,esp
; push ebx ; unused
; push ecx ; unused
; push edx ; need not be preserved
push esi
push edi
mov esi, POINTER [workspace]
mov edx, POINTER [divisors]
mov edi, JCOEFPTR [coef_block]
mov eax, DCTSIZE2/16
alignx 16,7
.quantloop:
movaps xmm0, XMMWORD [XMMBLOCK(0,0,esi,SIZEOF_FAST_FLOAT)]
movaps xmm1, XMMWORD [XMMBLOCK(0,1,esi,SIZEOF_FAST_FLOAT)]
mulps xmm0, XMMWORD [XMMBLOCK(0,0,edx,SIZEOF_FAST_FLOAT)]
mulps xmm1, XMMWORD [XMMBLOCK(0,1,edx,SIZEOF_FAST_FLOAT)]
movaps xmm2, XMMWORD [XMMBLOCK(1,0,esi,SIZEOF_FAST_FLOAT)]
movaps xmm3, XMMWORD [XMMBLOCK(1,1,esi,SIZEOF_FAST_FLOAT)]
mulps xmm2, XMMWORD [XMMBLOCK(1,0,edx,SIZEOF_FAST_FLOAT)]
mulps xmm3, XMMWORD [XMMBLOCK(1,1,edx,SIZEOF_FAST_FLOAT)]
cvtps2dq xmm0,xmm0
cvtps2dq xmm1,xmm1
cvtps2dq xmm2,xmm2
cvtps2dq xmm3,xmm3
packssdw xmm0,xmm1
packssdw xmm2,xmm3
movdqa XMMWORD [XMMBLOCK(0,0,edi,SIZEOF_JCOEF)], xmm0
movdqa XMMWORD [XMMBLOCK(1,0,edi,SIZEOF_JCOEF)], xmm2
add esi, byte 16*SIZEOF_FAST_FLOAT
add edx, byte 16*SIZEOF_FAST_FLOAT
add edi, byte 16*SIZEOF_JCOEF
dec eax
jnz short .quantloop
pop edi
pop esi
; pop edx ; need not be preserved
; pop ecx ; unused
; pop ebx ; unused
pop ebp
ret
; For some reason, the OS X linker does not honor the request to align the
; segment unless we do this.
align 16
|
libsrc/_DEVELOPMENT/l/sccz80/5-z80/f48/dload.asm | ahjelm/z88dk | 640 | 162401 | <reponame>ahjelm/z88dk<filename>libsrc/_DEVELOPMENT/l/sccz80/5-z80/f48/dload.asm
SECTION code_clib
SECTION code_l_sccz80
PUBLIC dload
EXTERN fa
;----------------
; Load FA from hl
;----------------
dload:
ld de,fa
ld bc,6
ldir
ret
|
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_1453.asm | ljhsiun2/medusa | 9 | 6648 | <reponame>ljhsiun2/medusa<gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r13
push %r14
push %r15
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_D_ht+0x1cc7b, %rsi
nop
nop
nop
and %r14, %r14
movb (%rsi), %bl
add $51568, %r15
lea addresses_WT_ht+0x1b3f3, %r12
nop
nop
nop
nop
and %r13, %r13
movw $0x6162, (%r12)
nop
nop
nop
nop
nop
mfence
lea addresses_UC_ht+0x12052, %r12
nop
nop
and %r14, %r14
movw $0x6162, (%r12)
nop
nop
cmp %r14, %r14
lea addresses_WC_ht+0x9ecb, %r13
nop
nop
nop
nop
nop
xor $49986, %r15
movl $0x61626364, (%r13)
nop
dec %rdi
lea addresses_normal_ht+0x1bfab, %rsi
lea addresses_UC_ht+0xe9cb, %rdi
nop
nop
nop
nop
xor %rbx, %rbx
mov $108, %rcx
rep movsw
nop
nop
nop
and %r15, %r15
lea addresses_UC_ht+0x12af3, %rsi
lea addresses_normal_ht+0xa6cb, %rdi
nop
nop
nop
nop
nop
sub $39139, %r14
mov $117, %rcx
rep movsl
nop
add %rsi, %rsi
lea addresses_WC_ht+0x18b68, %rbx
nop
nop
nop
nop
nop
dec %r12
mov $0x6162636465666768, %rsi
movq %rsi, %xmm6
vmovups %ymm6, (%rbx)
nop
nop
nop
nop
nop
add $11360, %rsi
lea addresses_UC_ht+0x11bcb, %r12
nop
sub $7706, %rdi
movups (%r12), %xmm1
vpextrq $1, %xmm1, %r15
nop
nop
nop
cmp %r14, %r14
lea addresses_UC_ht+0x814b, %rbx
nop
nop
nop
nop
and %r12, %r12
vmovups (%rbx), %ymm1
vextracti128 $0, %ymm1, %xmm1
vpextrq $1, %xmm1, %rcx
cmp %r14, %r14
lea addresses_A_ht+0x1e55b, %rsi
lea addresses_D_ht+0x103cb, %rdi
nop
nop
nop
add %r12, %r12
mov $37, %rcx
rep movsb
nop
nop
nop
nop
add $49348, %rbx
lea addresses_WT_ht+0x82db, %rsi
lea addresses_normal_ht+0x177cb, %rdi
nop
nop
nop
and %r13, %r13
mov $11, %rcx
rep movsl
add $43667, %rcx
lea addresses_UC_ht+0x1a73, %rdi
nop
dec %r15
vmovups (%rdi), %ymm0
vextracti128 $1, %ymm0, %xmm0
vpextrq $1, %xmm0, %r14
nop
nop
nop
nop
nop
and $8438, %rdi
lea addresses_WT_ht+0x1b1bb, %r13
nop
nop
dec %r15
and $0xffffffffffffffc0, %r13
vmovntdqa (%r13), %ymm6
vextracti128 $1, %ymm6, %xmm6
vpextrq $0, %xmm6, %rcx
nop
nop
nop
nop
nop
dec %rcx
lea addresses_WC_ht+0x56cb, %r15
nop
sub $31916, %r14
movups (%r15), %xmm2
vpextrq $1, %xmm2, %rcx
nop
nop
nop
nop
inc %rcx
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %r15
pop %r14
pop %r13
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r14
push %r9
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
// Load
lea addresses_WC+0x1a0cb, %rbp
clflush (%rbp)
nop
cmp %r12, %r12
vmovups (%rbp), %ymm6
vextracti128 $0, %ymm6, %xmm6
vpextrq $0, %xmm6, %rax
nop
nop
nop
nop
nop
add %r12, %r12
// Store
lea addresses_WT+0x150cb, %r11
nop
nop
nop
nop
inc %r14
mov $0x5152535455565758, %rax
movq %rax, %xmm3
movups %xmm3, (%r11)
nop
nop
nop
dec %r14
// Store
lea addresses_PSE+0x450b, %rbp
nop
nop
nop
nop
nop
inc %r12
mov $0x5152535455565758, %r9
movq %r9, %xmm5
vmovups %ymm5, (%rbp)
xor %rbp, %rbp
// REPMOV
lea addresses_PSE+0xb6cb, %rsi
lea addresses_US+0x6628, %rdi
nop
nop
dec %rbp
mov $0, %rcx
rep movsb
sub $26198, %r9
// Load
lea addresses_WC+0x1741b, %rax
nop
nop
sub %r14, %r14
vmovups (%rax), %ymm2
vextracti128 $0, %ymm2, %xmm2
vpextrq $1, %xmm2, %rsi
nop
nop
xor $17959, %rcx
// Load
lea addresses_RW+0x1274b, %r11
nop
nop
nop
nop
nop
sub $17148, %rdi
mov (%r11), %r12
nop
sub %r14, %r14
// Store
lea addresses_WT+0xa65d, %r9
nop
nop
nop
nop
nop
sub $25994, %r14
movb $0x51, (%r9)
nop
nop
nop
nop
and %rax, %rax
// Faulty Load
lea addresses_PSE+0xb6cb, %r14
nop
nop
nop
nop
sub $42392, %rcx
mov (%r14), %r9w
lea oracles, %rdi
and $0xff, %r9
shlq $12, %r9
mov (%rdi,%r9,1), %r9
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r9
pop %r14
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_PSE', 'same': False, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WC', 'same': False, 'size': 32, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_WT', 'same': False, 'size': 16, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_PSE', 'same': False, 'size': 32, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_PSE', 'congruent': 0, 'same': True}, 'dst': {'type': 'addresses_US', 'congruent': 0, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WC', 'same': False, 'size': 32, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_RW', 'same': False, 'size': 8, 'congruent': 7, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_WT', 'same': False, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_PSE', 'same': True, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'type': 'addresses_D_ht', 'same': False, 'size': 1, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 2, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 2, 'congruent': 0, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_WC_ht', 'same': True, 'size': 4, 'congruent': 10, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'}
{'src': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 16, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 32, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_UC_ht', 'same': False, 'size': 32, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 32, 'congruent': 4, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WC_ht', 'same': False, 'size': 16, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'33': 21829}
33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33
*/
|
query/query.g4 | thomasabraham/JSONStreamQuery | 0 | 5360 | // query.g4
grammar query;
// NOTE: Parser rule names must start with a lowercase letter
// and lexer rules must start with a capital letter.
// Tokens; lexer rules
SELECT: 'SELECT';
STAR: '*';
FROM: 'FROM';
STREAM: 'STREAM';
WS: [ \n\r\t]+ -> skip;
// Rules; parser rules
start : statement EOF;
statement: SELECT STAR FROM STREAM;
|
oeis/180/A180435.asm | neoneye/loda-programs | 11 | 244420 | <filename>oeis/180/A180435.asm
; A180435: a(n) = a(n-1)*2^n+n, a(0)=1.
; Submitted by <NAME>
; 1,3,14,115,1844,59013,3776838,483435271,123759429384,63364827844617,64885583712887818,132885675443994251275,544299726618600453222412,4458903360459574912797999117,73054672657769675371282417532942
mov $2,1
lpb $0
sub $0,1
add $1,$2
add $1,1
mul $2,2
mul $3,$2
add $3,$1
lpe
mov $0,$3
add $0,1
|
src/main/java/uk/nhs/digital/mait/tkwx/tk/internalservices/validation/parser/ValidationLexer.g4 | nhsdigitalmait/TKW-x | 0 | 7234 | /*
Copyright 2012-13 <NAME> <<EMAIL>>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
lexer grammar ValidationLexer;
options {
language = Java;
}
@header {
package uk.nhs.digital.mait.tkwx.tk.internalservices.validation.parser;
}
// context sensitive lexer behaviour -
@lexer::members {
private final static boolean DEBUG = false;
private boolean isInSetDirective = false;
}
/* --------------------------------------------------------------------------------------------------- */
// Lexer token definitions
COMMENT : '#' ~[\r\n]* ( ('\r'? '\n')+ | EOF ) -> skip ; // discard the comments
NL : '\r'? '\n' -> channel(HIDDEN);
fragment DIGIT : [0-9] ;
fragment ALPHA : [a-zA-Z] ;
// for case insensitive tokens
fragment A:('a'|'A');
fragment B:('b'|'B');
fragment C:('c'|'C');
fragment D:('d'|'D');
fragment E:('e'|'E');
fragment F:('f'|'F');
fragment G:('g'|'G');
fragment H:('h'|'H');
fragment I:('i'|'I');
fragment J:('j'|'J');
fragment K:('k'|'K');
fragment L:('l'|'L');
fragment M:('m'|'M');
fragment N:('n'|'N');
fragment O:('o'|'O');
fragment P:('p'|'P');
fragment Q:('q'|'Q');
fragment R:('r'|'R');
fragment S:('s'|'S');
fragment T:('t'|'T');
fragment U:('u'|'U');
fragment V:('v'|'V');
fragment W:('w'|'W');
fragment X:('x'|'X');
fragment Y:('y'|'Y');
fragment Z:('z'|'Z');
fragment LPAREN : '(' ;
fragment RPAREN : ')' ;
INTEGER : '-'? DIGIT+ ;
DOT : '.' ;
//------------------------------------------------------------------------------
// rules (case insensitive)
IF : I F ;
THEN : T H E N ;
ELSE : E L S E ;
// TO DO inconsistent use of this keyword?
ENDIF : E N D [\t ]* IF ;
//------------------------------------------------------------------------------
INCLUDE : 'INCLUDE' ;
NONE : 'NONE' ;
// qualifiers for the set directive
LITERAL : 'literal' ;
XPATH_ : X P A T H ;
fragment HL7 : H L '7_' ;
fragment EBXML : E B X M L '_' ;
fragment SOAP : S O A P '_' ;
fragment NOT : N O T ;
fragment COMPARE : C O M P A R E ;
fragment IGNORE_CASE : I G N O R E C A S E;
fragment IN : I N ;
fragment CDA : C D A ;
fragment CONFORMANCE : C O N F O R M A N C E ;
fragment EXISTS : E X I S T S ;
SUB : S U B ;
// Validator check types (case insensitive)
// These mostly relate to class names in the tkw.property file prefixed with tks.validator.check
// So maybe they should not be case insensitive ?
//------------------------------------------------------------------------------
ALWAYS : A L W A Y S ;
NEVER : N E V E R ;
//------------------------------------------------------------------------------
// schema
SCHEMA : S C H E M A ;
CONFORMANCE_SCHEMA : CONFORMANCE SCHEMA ;
CDA_CONFORMANCE_SCHEMA : CDA CONFORMANCE SCHEMA ;
//------------------------------------------------------------------------------
// no arg
SIGNATURE : S I G N A T U R E ;
CDA_RENDERER : CDA R E N D E R E R ;
CDA_TEMPLATE_LIST : CDA T E M P L A T E L I S T ;
HAPIFHIRVALIDATOR : H A P I F H I R V A L I D A T O R ;
FHIRRESOURCEVALIDATOR : F H I R R E S O U R C E V A L I D A T O R ;
TERMINOLOGYVALIDATOR : T E R M I N O L O G Y V A L I D A T O R ;
//------------------------------------------------------------------------------
// one arg
XPATHEXISTS : XPATH_ E X I S T S -> mode(CST_MODE);
XPATHNOTEXISTS : XPATH_ N O T E X I S T S -> mode(CST_MODE);
HL7_XPATHEXISTS : HL7 XPATHEXISTS -> mode(CST_MODE);
HL7_XPATHNOTEXISTS : HL7 XPATHNOTEXISTS -> mode(CST_MODE);
SOAP_XPATHEXISTS : SOAP XPATHEXISTS -> mode(CST_MODE);
SOAP_XPATHNOTEXISTS : SOAP XPATHNOTEXISTS -> mode(CST_MODE);
EBXML_XPATHEXISTS : EBXML XPATHEXISTS -> mode(CST_MODE);
EBXML_XPATHNOTEXISTS : EBXML XPATHNOTEXISTS -> mode(CST_MODE);
EQUALS : E Q U A L S -> mode(CST_MODE) ;
NOTEQUALS : NOT EQUALS -> mode(CST_MODE);
MATCHES : M A T C H E S -> mode(CST_MODE) ;
NOTMATCHES : NOT MATCHES -> mode(CST_MODE);
CONTAINS : C O N T A I N S -> mode(CST_MODE);
NOTCONTAINS : N O T C O N T A I N S -> mode(CST_MODE);
//------------------------------------------------------------------------------
// two arg
XPATHEQUALS : XPATH_ EQUALS -> mode(CST_MODE);
XPATHNOTEQUALS : XPATH_ NOT EQUALS -> mode(CST_MODE);
HL7_XPATHEQUALS : HL7 XPATHEQUALS -> mode(CST_MODE) ;
HL7_XPATHNOTEQUALS : HL7 XPATHNOTEQUALS -> mode(CST_MODE);
EBXML_XPATHEQUALS : EBXML XPATHEQUALS -> mode(CST_MODE);
EBXML_XPATHNOTEQUALS : EBXML XPATHNOTEQUALS -> mode(CST_MODE);
SOAP_XPATHEQUALS : SOAP XPATHEQUALS -> mode(CST_MODE);
SOAP_XPATHNOTEQUALS : SOAP XPATHNOTEQUALS -> mode(CST_MODE);
// this pair added for spine validation
XPATHEQUALSIGNORECASE : X P A T H E Q U A L S IGNORE_CASE -> mode(CST_MODE);
XPATHNOTEQUALSIGNORECASE : X P A T H N O T E Q U A L S IGNORE_CASE -> mode(CST_MODE);
XPATHMATCHES : XPATH_ MATCHES -> mode(CST_MODE);
XPATHNOTMATCHES : XPATH_ NOT MATCHES -> mode(CST_MODE);
HL7_XPATHMATCHES : HL7 XPATHMATCHES -> mode(CST_MODE);
HL7_XPATHNOTMATCHES : HL7 XPATHNOTMATCHES -> mode(CST_MODE);
XPATHCOMPARE : XPATH_ COMPARE -> mode(CST_MODE);
XPATHCONTAINS : XPATH_ CONTAINS -> mode(CST_MODE);
XPATHNOTCONTAINS : XPATH_ NOT CONTAINS -> mode(CST_MODE);
// this pair added for spine validation
XPATHCONTAINSIGNORECASE : XPATH_ CONTAINS IGNORE_CASE -> mode(CST_MODE);
XPATHNOTCONTAINSIGNORECASE : XPATH_ NOT CONTAINS IGNORE_CASE -> mode(CST_MODE);
XSLT : X S L T -> mode(CST_MODE);
HL7_XSLT : HL7 XSLT -> mode(CST_MODE);
EBXML_XSLT : EBXML XSLT -> mode(CST_MODE);
CDA_CONFORMANCE_XSLT : CDA C O N F O R M A N C E XSLT -> mode(CST_MODE);
// mark as additional not syntax checked
UNCHECKED : U N C H E C K E D -> mode(CST_MODE) ;
// match types
CONTEXT_PATH : C O N T E X T '_' P A T H ; // text only
CONTENT : C O N T E N T ; // xml and text
HTTP_HEADER : H T T P '_' H E A D E R ; // text only
JWT_PAYLOAD : J W T '_' P A Y L O A D ; // xml and text
//------------------------------------------------------------------------------
// multi arg
XPATHIN : XPATH_ IN -> mode(CST_MODE);
//XPATHNOTIN : XPATH_ NOT IN -> mode(CST_MODE) ;
//------------------------------------------------------------------------------
// headers
VALIDATION_RULESET_NAME : 'VALIDATION-RULESET-NAME' -> mode(ANNOTATION_MODE) ;
VALIDATION_RULESET_VERSION : 'VALIDATION-RULESET-VERSION' -> mode(ANNOTATION_MODE) ;
VALIDATION_RULESET_TIMESTAMP : 'VALIDATION-RULESET-TIMESTAMP' -> mode(ANNOTATION_MODE) ;
VALIDATION_RULESET_AUTHOR : 'VALIDATION-RULESET-AUTHOR' -> mode(ANNOTATION_MODE) ;
// Validation
VALIDATE : 'VALIDATE' ;
SET : 'SET' { isInSetDirective = true; } ;
CHECK : 'CHECK' ;
// take everything up to the end of line
ANNOTATION : 'ANNOTATION' -> mode(ANNOTATION_MODE) ;
SUBSET : 'SUBSET' ;
DOLLAR : '$' ;
//------------------------------------------------------------------------------
// adding the colon means we can include urns as IDENTIFIER s
// beware the long minus added (also added % and - for validation)
IDENTIFIER : ( ALPHA | DIGIT | [_-] | '–' | ':' | LPAREN | RPAREN | '%' | '-' ) + {if (DEBUG) System.out.println("IDENTIFIER ="+getText());} ;
// if the variable is referenced in a set literal context then get all the text up to end of line
VARIABLE : DOLLAR ( IDENTIFIER | PATH | XPATH )
{if (DEBUG) System.out.println( "VARIABLE =" + getText()+" is ="+isInSetDirective);}
{isInSetDirective}? -> mode(ANNOTATION_MODE) ;
// adds unix file path separator and period
fragment EXTENDED_IDENTIFIER : IDENTIFIER | DOT | [/] ;
DOT_SEPARATED_IDENTIFIER : IDENTIFIER ( DOT IDENTIFIER )* ;
fragment PROTOCOL : 'http' | 'https' | 'spine' ;
URL : PROTOCOL '://' EXTENDED_IDENTIFIER+ ;
/* Generally a file path but used elsewhere handles optional dos volume prefix */
PATH : (ALPHA ':')? ( EXTENDED_IDENTIFIER | '\\' ) + ;
// we are currently constrained to xpath expressions which do not contain spaces
XPATH : ( EXTENDED_IDENTIFIER | [@'()\[\]*=\"#] | LPAREN | RPAREN ) + ;
// If we redirect spaces to HIDDEN rather than skip we can get back the whole line including spaces
// by referencing $text
SPACES : [ \t]+ -> channel(HIDDEN) ;
DEFAULT : . ;
//------------------------------------------------------------------------------
// take everything up to the next linefeed
mode ANNOTATION_MODE ;
// Strips leading whitespace before returning the token value
ANNOTATION_TEXT : ( ~ ('\r' | '\n' ) ) + {setText(getText().replaceFirst("^[\t ]*",""));
if (isInSetDirective) isInSetDirective = false;
if (DEBUG) System.out.println("ANNOTATION_TEXT ="+getText());
} -> mode(DEFAULT_MODE) ;
//------------------------------------------------------------------------------
// This mode is analagous to the ConfigurationStringTokenizer which honours matching brackets and quotes
mode CST_MODE ;
SP : [ \t]+ -> channel(HIDDEN) ;
CST : (
( ( NOSPACESORDELIMS* ( '(' CSTORSPACE ')' | '[' CSTORSPACE ']' | '\'' ~[\']* '\'' | '"' ~["]* '"' ) + NOSPACESORDELIMS* ) + |
NOSPACESORDELIMS+
) {if ( DEBUG ) System.out.println("Returning ["+getText()+"]"); }
) ;
fragment CSTORSPACE : ( CST | ' ' | '\\' )* ; // Bodge to trap \
fragment NOSPACESORDELIMS : ~[\["'(\]) \t\r\n] | '\\' ; // Bodge to trap \
LF : ('\r' | '\n')+ -> channel(HIDDEN), mode(DEFAULT_MODE) ;
//------------------------------------------------------------------------------
|
tests/core3.adb | yannickmoy/SPARKNaCl | 76 | 25140 | <reponame>yannickmoy/SPARKNaCl
with SPARKNaCl; use SPARKNaCl;
with SPARKNaCl.Core; use SPARKNaCl.Core;
with SPARKNaCl.Debug; use SPARKNaCl.Debug;
with SPARKNaCl.Hashing; use SPARKNaCl.Hashing;
with Interfaces; use Interfaces;
procedure Core3
is
Second_Key : constant Salsa20_Key :=
Construct ((16#dc#, 16#90#, 16#8d#, 16#da#,
16#0b#, 16#93#, 16#44#, 16#a9#,
16#53#, 16#62#, 16#9b#, 16#73#,
16#38#, 16#20#, 16#77#, 16#88#,
16#80#, 16#f3#, 16#ce#, 16#b4#,
16#21#, 16#bb#, 16#61#, 16#b9#,
16#1c#, 16#bd#, 16#4c#, 16#3e#,
16#66#, 16#25#, 16#6c#, 16#e4#));
Nonce_Suffix : constant Bytes_8 :=
(16#82#, 16#19#, 16#e0#, 16#03#, 16#6b#, 16#7a#, 16#0b#, 16#37#);
C : constant Bytes_16 :=
(16#65#, 16#78#, 16#70#, 16#61#, 16#6e#, 16#64#, 16#20#, 16#33#,
16#32#, 16#2d#, 16#62#, 16#79#, 16#74#, 16#65#, 16#20#, 16#6b#);
Input : Bytes_16 := (others => 0);
Output : Byte_Seq (0 .. (2 ** 22 - 1));
H : Bytes_64;
Pos : I32;
begin
Input (0 .. 7) := Nonce_Suffix;
Pos := 0;
loop
loop
Salsa20 (Output (Pos .. Pos + 63),
Input,
Second_Key,
C);
Pos := Pos + 64;
Input (8) := Input (8) + 1;
exit when Input (8) = 0;
end loop;
Input (9) := Input (9) + 1;
exit when Input (9) = 0;
end loop;
Hash (H, Output);
DH ("Hash is", H);
end Core3;
|
assets/drawPMoL.asm | oxypomme/CallOfVid-19 | 1 | 102329 | ; généré avec https://github.com/oxypomme/BMPtoASM
push AX
push BX
mov AX, playerX
mov BX, playerY
add AX, 4
mov BX, playerY
add BX, 8
oxgSHOWPIXEL AX, BX, 007h ; 4-8
inc AX
mov BX, playerY
add BX, 7
oxgSHOWPIXEL AX, BX, 007h ; 5-7
inc BX
oxgSHOWPIXEL AX, BX, 007h ; 5-8
inc AX
mov BX, playerY
add BX, 7
oxgSHOWPIXEL AX, BX, 007h ; 6-7
inc BX
oxgSHOWPIXEL AX, BX, 007h ; 6-8
inc AX
mov BX, playerY
add BX, 7
oxgSHOWPIXEL AX, BX, 007h ; 7-7
inc BX
oxgSHOWPIXEL AX, BX, 007h ; 7-8
inc BX
oxgSHOWPIXEL AX, BX, 007h ; 7-9
add BX, 6
oxgSHOWPIXEL AX, BX, 007h ; 7-15
inc AX
mov BX, playerY
add BX, 6
oxgSHOWPIXEL AX, BX, 006h ; 8-6
inc BX
oxgSHOWPIXEL AX, BX, 032h ; 8-7
inc BX
oxgSHOWPIXEL AX, BX, 007h ; 8-8
add BX, 6
oxgSHOWPIXEL AX, BX, 001h ; 8-14
inc BX
oxgSHOWPIXEL AX, BX, 007h ; 8-15
inc AX
mov BX, playerY
add BX, 3
oxgSHOWPIXEL AX, BX, 007h ; 9-3
add BX, 2
oxgSHOWPIXEL AX, BX, 006h ; 9-5
inc BX
oxgSHOWPIXEL AX, BX, 006h ; 9-6
inc BX
oxgSHOWPIXEL AX, BX, 032h ; 9-7
inc BX
oxgSHOWPIXEL AX, BX, 00Fh ; 9-8
add BX, 3
oxgSHOWPIXEL AX, BX, 001h ; 9-11
inc BX
oxgSHOWPIXEL AX, BX, 001h ; 9-12
inc BX
oxgSHOWPIXEL AX, BX, 001h ; 9-13
inc AX
mov BX, playerY
oxgSHOWPIXEL AX, BX, 0B8h ; 10-0
inc BX
oxgSHOWPIXEL AX, BX, 0B8h ; 10-1
inc BX
oxgSHOWPIXEL AX, BX, 007h ; 10-2
inc BX
oxgSHOWPIXEL AX, BX, 007h ; 10-3
inc BX
oxgSHOWPIXEL AX, BX, 007h ; 10-4
inc BX
oxgSHOWPIXEL AX, BX, 006h ; 10-5
inc BX
oxgSHOWPIXEL AX, BX, 006h ; 10-6
inc BX
oxgSHOWPIXEL AX, BX, 00Fh ; 10-7
inc BX
oxgSHOWPIXEL AX, BX, 00Fh ; 10-8
inc BX
oxgSHOWPIXEL AX, BX, 006h ; 10-9
inc BX
oxgSHOWPIXEL AX, BX, 001h ; 10-10
inc BX
oxgSHOWPIXEL AX, BX, 001h ; 10-11
inc AX
mov BX, playerY
oxgSHOWPIXEL AX, BX, 071h ; 11-0
inc BX
oxgSHOWPIXEL AX, BX, 071h ; 11-1
inc BX
oxgSHOWPIXEL AX, BX, 05Ah ; 11-2
inc BX
oxgSHOWPIXEL AX, BX, 05Ah ; 11-3
inc BX
oxgSHOWPIXEL AX, BX, 05Ah ; 11-4
inc BX
oxgSHOWPIXEL AX, BX, 00Ch ; 11-5
inc BX
oxgSHOWPIXEL AX, BX, 00Ch ; 11-6
inc BX
oxgSHOWPIXEL AX, BX, 00Fh ; 11-7
inc BX
oxgSHOWPIXEL AX, BX, 00Fh ; 11-8
inc BX
oxgSHOWPIXEL AX, BX, 00Ch ; 11-9
inc BX
oxgSHOWPIXEL AX, BX, 036h ; 11-10
inc BX
oxgSHOWPIXEL AX, BX, 036h ; 11-11
inc AX
mov BX, playerY
inc BX
oxgSHOWPIXEL AX, BX, 071h ; 12-1
inc BX
oxgSHOWPIXEL AX, BX, 05Ah ; 12-2
inc BX
oxgSHOWPIXEL AX, BX, 05Ah ; 12-3
inc BX
oxgSHOWPIXEL AX, BX, 05Ah ; 12-4
inc BX
oxgSHOWPIXEL AX, BX, 00Ch ; 12-5
inc BX
oxgSHOWPIXEL AX, BX, 00Ch ; 12-6
inc BX
oxgSHOWPIXEL AX, BX, 00Ch ; 12-7
inc BX
oxgSHOWPIXEL AX, BX, 00Fh ; 12-8
inc BX
oxgSHOWPIXEL AX, BX, 00Ch ; 12-9
inc BX
oxgSHOWPIXEL AX, BX, 036h ; 12-10
inc BX
oxgSHOWPIXEL AX, BX, 036h ; 12-11
inc BX
oxgSHOWPIXEL AX, BX, 036h ; 12-12
inc AX
mov BX, playerY
add BX, 5
oxgSHOWPIXEL AX, BX, 00Ch ; 13-5
inc BX
oxgSHOWPIXEL AX, BX, 00Ch ; 13-6
add BX, 2
oxgSHOWPIXEL AX, BX, 00Fh ; 13-8
inc BX
oxgSHOWPIXEL AX, BX, 00Fh ; 13-9
add BX, 4
oxgSHOWPIXEL AX, BX, 036h ; 13-13
add BX, 2
oxgSHOWPIXEL AX, BX, 01Dh ; 13-15
inc AX
mov BX, playerY
add BX, 6
oxgSHOWPIXEL AX, BX, 00Ch ; 14-6
inc BX
oxgSHOWPIXEL AX, BX, 00Ch ; 14-7
add BX, 2
oxgSHOWPIXEL AX, BX, 00Fh ; 14-9
add BX, 5
oxgSHOWPIXEL AX, BX, 036h ; 14-14
inc BX
oxgSHOWPIXEL AX, BX, 01Dh ; 14-15
inc AX
mov BX, playerY
add BX, 7
oxgSHOWPIXEL AX, BX, 00Ch ; 15-7
inc BX
oxgSHOWPIXEL AX, BX, 00Ch ; 15-8
inc BX
oxgSHOWPIXEL AX, BX, 05Ah ; 15-9
pop BX
pop AX
|
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2_notsx.log_14171_76.asm | ljhsiun2/medusa | 9 | 96997 | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r15
push %rax
push %rbp
push %rbx
push %rcx
push %rdi
push %rsi
lea addresses_WC_ht+0x8c34, %rsi
lea addresses_normal_ht+0x9abc, %rdi
nop
cmp %r11, %r11
mov $47, %rcx
rep movsl
nop
nop
nop
xor $53720, %r15
lea addresses_normal_ht+0xd24c, %rbx
nop
nop
nop
nop
add %rax, %rax
movl $0x61626364, (%rbx)
nop
nop
nop
nop
nop
cmp %rbx, %rbx
lea addresses_A_ht+0x1fac, %r11
nop
nop
nop
cmp %r15, %r15
mov $0x6162636465666768, %rsi
movq %rsi, (%r11)
xor $23078, %rbx
lea addresses_A_ht+0x7b1c, %rdi
clflush (%rdi)
nop
nop
nop
dec %rbx
mov (%rdi), %r11
nop
nop
nop
mfence
lea addresses_WT_ht+0x344c, %r11
clflush (%r11)
nop
nop
nop
nop
dec %rax
mov (%r11), %rdi
and $50215, %rbx
lea addresses_WT_ht+0xda4c, %rax
cmp $62510, %r15
mov (%rax), %esi
nop
nop
nop
nop
and %rbx, %rbx
lea addresses_normal_ht+0x734c, %rsi
lea addresses_A_ht+0xd04c, %rdi
nop
cmp $2101, %rax
mov $88, %rcx
rep movsq
cmp %rsi, %rsi
lea addresses_WT_ht+0x11df4, %rdi
nop
nop
nop
nop
nop
sub %rax, %rax
mov $0x6162636465666768, %r15
movq %r15, %xmm6
vmovups %ymm6, (%rdi)
nop
nop
nop
nop
xor $32950, %rbx
lea addresses_WT_ht+0x1284c, %rsi
lea addresses_WC_ht+0x158ac, %rdi
nop
and $43979, %rbp
mov $112, %rcx
rep movsq
nop
nop
nop
nop
nop
cmp %rcx, %rcx
lea addresses_D_ht+0xa90c, %rsi
lea addresses_normal_ht+0x1e64c, %rdi
nop
xor $39723, %rbx
mov $75, %rcx
rep movsl
nop
nop
and $37660, %rsi
lea addresses_normal_ht+0x14a4c, %r11
cmp $40963, %rcx
mov (%r11), %bp
nop
nop
nop
nop
xor %rsi, %rsi
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rbp
pop %rax
pop %r15
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r11
push %r12
push %r14
push %r8
push %rax
push %rbp
push %rcx
push %rdi
push %rsi
// Store
lea addresses_PSE+0x19e4c, %r10
clflush (%r10)
nop
and $61384, %r12
mov $0x5152535455565758, %rax
movq %rax, %xmm0
vmovups %ymm0, (%r10)
nop
add %r14, %r14
// Store
lea addresses_WC+0x5954, %rax
nop
sub $35059, %r11
movl $0x51525354, (%rax)
nop
add $23445, %rbp
// REPMOV
lea addresses_PSE+0x19e4c, %rsi
lea addresses_PSE+0x1498c, %rdi
nop
nop
nop
nop
and $46344, %r11
mov $23, %rcx
rep movsl
nop
nop
add $4149, %r14
// Store
lea addresses_RW+0x16014, %r14
add $62954, %r12
movb $0x51, (%r14)
nop
nop
nop
nop
cmp %r11, %r11
// Store
mov $0xe8c, %rax
nop
nop
xor $64567, %rdi
mov $0x5152535455565758, %rbp
movq %rbp, (%rax)
// Exception!!!
mov (0), %r14
xor %r10, %r10
// Faulty Load
lea addresses_PSE+0x19e4c, %r10
nop
nop
nop
and %rax, %rax
vmovups (%r10), %ymm0
vextracti128 $1, %ymm0, %xmm0
vpextrq $1, %xmm0, %r12
lea oracles, %rdi
and $0xff, %r12
shlq $12, %r12
mov (%rdi,%r12,1), %r12
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r8
pop %r14
pop %r12
pop %r11
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'size': 4, 'AVXalign': False, 'NT': True, 'congruent': 3, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_PSE', 'congruent': 0, 'same': True}, 'dst': {'type': 'addresses_PSE', 'congruent': 5, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_RW', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_P', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 4, 'same': False}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 8, 'AVXalign': False, 'NT': True, 'congruent': 5, 'same': True}}
{'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 3, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 8, 'AVXalign': True, 'NT': False, 'congruent': 7, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}}
{'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}}
{'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 8, 'same': False}}
{'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}}
{'00': 14171}
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*/
|
src/cocount.adb | xiashuangxi/coconut | 0 | 24680 | <gh_stars>0
with Ada.Text_IO; use Ada.Text_IO;
with Account.Default_Account; use Account.Default_Account;
With Account.Vector; use Account.Vector;
package body Cocount is
procedure Main is
DA: Account.Default_Account.Instance;
AS: Account.Vector.Account_Stack;
begin
-- Set_Name(DA, "tom");
DA.Set_Name("Tom");
Add(AS, DA);
-- Put_Line("Cocount..." & Name(DA) & " , " & AS.Length'Image);
Put_Line("Delete...");
Delete(AS, DA);
AS.Delete(0); -- OK
-- Put_Line("Cocount..." & Name(DA) & " , " & AS.Length'Image);
end Main;
end Cocount;
|
tests/t27.asm | mras0/sasm | 26 | 27316 | sub bx, 4
xor cx, 2
mov al, dl
mov cl, al
mov bx, ax
mov dx, ax
mov al, [0x1234]
mov ax, [0x1234]
mov [0xabcd], al
mov [0xabcd], ax
mov [0xabcd], al
mov [0xabcd], ax
mov word [0xaa55], 0xFFFF
mov word [0x9876], 0x7f
add word [0x1234], 0xFFFF
sub word [bx+si+0x55aa], 0x7f
|
arch/ARM/STM32/svd/stm32f103/stm32_svd-flash.ads | morbos/Ada_Drivers_Library | 2 | 17163 | <filename>arch/ARM/STM32/svd/stm32f103/stm32_svd-flash.ads
-- This spec has been automatically generated from STM32F103.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.FLASH is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype ACR_LATENCY_Field is HAL.UInt3;
-- Flash access control register
type ACR_Register is record
-- Latency
LATENCY : ACR_LATENCY_Field := 16#0#;
-- Flash half cycle access enable
HLFCYA : Boolean := False;
-- Prefetch buffer enable
PRFTBE : Boolean := True;
-- Read-only. Prefetch buffer status
PRFTBS : Boolean := True;
-- unspecified
Reserved_6_31 : HAL.UInt26 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for ACR_Register use record
LATENCY at 0 range 0 .. 2;
HLFCYA at 0 range 3 .. 3;
PRFTBE at 0 range 4 .. 4;
PRFTBS at 0 range 5 .. 5;
Reserved_6_31 at 0 range 6 .. 31;
end record;
-- Status register
type SR_Register is record
-- Read-only. Busy
BSY : Boolean := False;
-- unspecified
Reserved_1_1 : HAL.Bit := 16#0#;
-- Programming error
PGERR : Boolean := False;
-- unspecified
Reserved_3_3 : HAL.Bit := 16#0#;
-- Write protection error
WRPRTERR : Boolean := False;
-- End of operation
EOP : Boolean := False;
-- unspecified
Reserved_6_31 : HAL.UInt26 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for SR_Register use record
BSY at 0 range 0 .. 0;
Reserved_1_1 at 0 range 1 .. 1;
PGERR at 0 range 2 .. 2;
Reserved_3_3 at 0 range 3 .. 3;
WRPRTERR at 0 range 4 .. 4;
EOP at 0 range 5 .. 5;
Reserved_6_31 at 0 range 6 .. 31;
end record;
-- Control register
type CR_Register is record
-- Programming
PG : Boolean := False;
-- Page Erase
PER : Boolean := False;
-- Mass Erase
MER : Boolean := False;
-- unspecified
Reserved_3_3 : HAL.Bit := 16#0#;
-- Option byte programming
OPTPG : Boolean := False;
-- Option byte erase
OPTER : Boolean := False;
-- Start
STRT : Boolean := False;
-- Lock
LOCK : Boolean := True;
-- unspecified
Reserved_8_8 : HAL.Bit := 16#0#;
-- Option bytes write enable
OPTWRE : Boolean := False;
-- Error interrupt enable
ERRIE : Boolean := False;
-- unspecified
Reserved_11_11 : HAL.Bit := 16#0#;
-- End of operation interrupt enable
EOPIE : Boolean := False;
-- unspecified
Reserved_13_31 : HAL.UInt19 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CR_Register use record
PG at 0 range 0 .. 0;
PER at 0 range 1 .. 1;
MER at 0 range 2 .. 2;
Reserved_3_3 at 0 range 3 .. 3;
OPTPG at 0 range 4 .. 4;
OPTER at 0 range 5 .. 5;
STRT at 0 range 6 .. 6;
LOCK at 0 range 7 .. 7;
Reserved_8_8 at 0 range 8 .. 8;
OPTWRE at 0 range 9 .. 9;
ERRIE at 0 range 10 .. 10;
Reserved_11_11 at 0 range 11 .. 11;
EOPIE at 0 range 12 .. 12;
Reserved_13_31 at 0 range 13 .. 31;
end record;
-- OBR_Data array element
subtype OBR_Data_Element is HAL.UInt8;
-- OBR_Data array
type OBR_Data_Field_Array is array (0 .. 1) of OBR_Data_Element
with Component_Size => 8, Size => 16;
-- Type definition for OBR_Data
type OBR_Data_Field
(As_Array : Boolean := False)
is record
case As_Array is
when False =>
-- Data as a value
Val : HAL.UInt16;
when True =>
-- Data as an array
Arr : OBR_Data_Field_Array;
end case;
end record
with Unchecked_Union, Size => 16;
for OBR_Data_Field use record
Val at 0 range 0 .. 15;
Arr at 0 range 0 .. 15;
end record;
-- Option byte register
type OBR_Register is record
-- Read-only. Option byte error
OPTERR : Boolean;
-- Read-only. Read protection
RDPRT : Boolean;
-- Read-only. WDG_SW
WDG_SW : Boolean;
-- Read-only. nRST_STOP
nRST_STOP : Boolean;
-- Read-only. nRST_STDBY
nRST_STDBY : Boolean;
-- unspecified
Reserved_5_9 : HAL.UInt5;
-- Read-only. Data0
Data : OBR_Data_Field;
-- unspecified
Reserved_26_31 : HAL.UInt6;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for OBR_Register use record
OPTERR at 0 range 0 .. 0;
RDPRT at 0 range 1 .. 1;
WDG_SW at 0 range 2 .. 2;
nRST_STOP at 0 range 3 .. 3;
nRST_STDBY at 0 range 4 .. 4;
Reserved_5_9 at 0 range 5 .. 9;
Data at 0 range 10 .. 25;
Reserved_26_31 at 0 range 26 .. 31;
end record;
-----------------
-- Peripherals --
-----------------
-- FLASH
type FLASH_Peripheral is record
-- Flash access control register
ACR : aliased ACR_Register;
-- Flash key register
KEYR : aliased HAL.UInt32;
-- Flash option key register
OPTKEYR : aliased HAL.UInt32;
-- Status register
SR : aliased SR_Register;
-- Control register
CR : aliased CR_Register;
-- Flash address register
AR : aliased HAL.UInt32;
-- Option byte register
OBR : aliased OBR_Register;
-- Write protection register
WRPR : aliased HAL.UInt32;
end record
with Volatile;
for FLASH_Peripheral use record
ACR at 16#0# range 0 .. 31;
KEYR at 16#4# range 0 .. 31;
OPTKEYR at 16#8# range 0 .. 31;
SR at 16#C# range 0 .. 31;
CR at 16#10# range 0 .. 31;
AR at 16#14# range 0 .. 31;
OBR at 16#1C# range 0 .. 31;
WRPR at 16#20# range 0 .. 31;
end record;
-- FLASH
FLASH_Periph : aliased FLASH_Peripheral
with Import, Address => System'To_Address (16#40022000#);
end STM32_SVD.FLASH;
|
oeis/142/A142936.asm | neoneye/loda-programs | 11 | 174251 | <filename>oeis/142/A142936.asm
; A142936: Primes congruent to 25 mod 64.
; Submitted by <NAME>
; 89,281,409,601,857,1049,1433,1753,2137,2393,2521,2713,2777,2969,3673,3929,4057,4441,4889,5081,5209,5273,5657,5849,6361,6553,7001,7129,7193,7321,7577,8089,8537,9049,9241,9433,9497,9689,9817,10009,10457,11161,11353,11801,12377,12569,12697,12889,12953,13337,13721,13913,14489,15193,15641,16217,16729,16921,17497,17881,18329,18457,18521,18713,19289,19417,19609,19801,19993,20249,20441,21017,21401,21529,21977,22937,23321,23833,24281,24473,24793,25561,26393,26713,26777,27481,27673,27737,28057,28697
mov $2,$0
add $2,6
pow $2,2
lpb $2
mov $3,$4
add $3,24
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
mov $1,$0
max $1,0
cmp $1,$0
mul $2,$1
sub $2,1
add $4,64
lpe
mov $0,$4
add $0,25
|
util.als | NVlabs/ptxmemorymodel | 27 | 4188 | <gh_stars>10-100
module util
fun symmetric[r: univ->univ] : univ->univ { r & ~r }
fun optional[f: univ->univ] : univ->univ { iden + f }
pred irreflexive[rel: univ->univ] { no iden & rel }
pred acyclic[rel: univ->univ] { irreflexive[^rel] }
pred total[rel: univ->univ, bag: univ] {
all disj e, e': bag | e->e' + e'->e in ^rel + ^~rel
acyclic[rel]
}
fun ident[e: univ] : univ->univ { iden & e->e }
fun imm[rel: univ->univ] : univ->univ { rel - rel.rel }
pred transitive[rel: univ->univ] { rel = ^rel }
pred strict_partial[rel: univ->univ] {
irreflexive[rel]
transitive[rel]
}
|
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/no_exc_prop.adb | best08618/asylo | 7 | 16613 | <gh_stars>1-10
-- { dg-do compile }
-- { dg-options "-gnatwa" }
package body no_exc_prop is
protected body Simple_Barrier is
entry Wait when Signaled is
begin
Signaled := False;
end Wait;
procedure Signal is
begin
Signaled := True;
end Signal;
end Simple_Barrier;
end no_exc_prop;
|
tests/game-test_data-tests.ads | thindil/steamsky | 80 | 27319 | <filename>tests/game-test_data-tests.ads<gh_stars>10-100
-- This package has been generated automatically by GNATtest.
-- Do not edit any part of it, see GNATtest documentation for more details.
-- begin read only
with Gnattest_Generated;
package Game.Test_Data.Tests is
type Test is new GNATtest_Generated.GNATtest_Standard.Game.Test_Data
.Test with
null record;
procedure Test_Update_Game_25a566_5306b6(Gnattest_T: in out Test);
-- game.ads:692:4:Update_Game:Test_UpdateGame
procedure Test_End_Game_29871f_745ef4(Gnattest_T: in out Test);
-- game.ads:702:4:End_Game:Test_EndGame
procedure Test_Find_Skill_Index_800ce5_5e7804(Gnattest_T: in out Test);
-- game.ads:714:4:Find_Skill_Index:Test_FindSkillIndex
end Game.Test_Data.Tests;
-- end read only
|
helloworld.asm | jeema101/avhelloworld | 0 | 10943 | ; *************************************************************************
; * HelloWorld.asm - 'Hello World' program for the Entex Adventure Vision *
; *************************************************************************
.include "av.h"
; Variable Locations
.equ TextStringX #32
.equ TextStringY #33
.equ Temp1 #34
.equ Temp2 #35
; 0x0000-0x03FF is shared between the first 1k of program ROM and the BIOS. Only one can be loaded in at a time.
.org 0x0000
; Jump to 0x8000 if we happen to start here so we can load the BIOS into this area
SEL MB1
JMP Startup
; The BIOS should jump to here if it was loaded on startup
.org 0x0800
Startup:
; (0x0802-0x80B is reserved for certain BIOS routine callbacks so we should probably skip it)
JMP Main
; ********
; * MAIN *
; ********
.org 0x080C
Main:
; ******************
; * INITIALIZATION *
; ******************
CLR A
; Load BIOS into 0x0000-0x07FF if not already loaded
OUTL P1, A
; Reset the stack pointer, select register bank 0, and clear flags
MOV PSW, A
; Clear the internal RAM (64 bytes)
MOV R0, #63 ; Start at the highest address and decrement with each loop
ClearInternalRAMLoopTop:
MOV @R0, A ; Clear the current memory location
DJNZ R0, ClearInternalRAMLoopTop
MOV @R0, A ; Clear final memory location
; Clear the external RAM (4 banks, each one 256 bytes)
MOV R0, #4 ; Start at the highest bank and decrement with each loop
ClearExternalRAMLoopTop:
DEC R0
MOV A, R0
OUTL P1, A ; Set the current bank
MOV R1, #255 ; Start at the highest address and decrement with each loop
CLR A
ClearExternalRAMInnerLoopTop:
MOVX @R1, A ; Clear the current memory location for this bank
DJNZ R1, ClearExternalRAMInnerLoopTop
MOVX @R1, A ; Clear final memory location for this bank
MOV A, R0
JNZ ClearExternalRAMLoopTop
; Clear any sounds that might be playing
MOV R1, #0x00
SEL MB0
CALL WriteSound
SEL MB1
; Initialize the text string's X and Y position
MOV A, #30
MOV R0, TextStringX
MOV @R0, A
MOV A, #16
MOV R0, TextStringY
MOV @R0, A
; *************
; * MAIN LOOP *
; *************
MainLoopTop:
; Blank the video RAM
CALL BlankVideoRAM
; Copy the 'H' sprite (sprite byte offset 0) into video RAM at the correct position
MOV R1, #0
MOV R0, TextStringX
MOV A, @R0
MOV R2, A
MOV R0, TextStringY
MOV A, @R0
MOV R3, A
MOV R4, #8
CALL CopySprite
; Copy the 'e' (sprite byte offset 8) into video RAM
MOV R1, #8
CALL CopySprite
; Copy the two 'l's (sprite byte offset 16) into video RAM
MOV R1, #16
CALL CopySprite
CALL CopySprite
; Copy the 'o' (sprite byte offset 24) into video RAM
MOV R1, #24
CALL CopySprite
; Copy the 'W' (sprite byte offset 32) into video RAM
MOV R1, #32
MOV A, R2
CLR C
ADD A, #8
MOV R2, A
CALL CopySprite
; Copy the 'o' (sprite byte offset 24) into video RAM
MOV R1, #24
CALL CopySprite
; Copy the 'r' (sprite byte offset 40) into video RAM
MOV R1, #40
CALL CopySprite
; Copy the 'l (sprite byte offset 16) into video RAM
MOV R1, #16
CALL CopySprite
; Copy the 'd (sprite byte offset 48) into video RAM
MOV R1, #48
CALL CopySprite
; Call the BIOS routine to draw the screen
SEL MB0
CALL DisplayVideo
SEL MB1
; Adjust the positioning of the text, based on the controller input
CALL UpdateTextPositioning
; Loop forever
JMP MainLoopTop
.org 0x0E00
; **************************************
; * UPDATE TEXT POSITIONING SUBROUTINE *
; **************************************
;
; Registers used:
;
; * R0-R1 = Temp storage
;
UpdateTextPositioning:
MOV A, Controller_Read
OUTL P1, A ; Write to port 1 bits 3-7 to ready them for input
IN A, P1 ; Read port 1 to get the controller input
ANL A, Controller_Read ; (AND the lower 3 bits out just to be safe)
MOV R0, A ; Store the controller input in R0
XRL A, Controller_Read ; XOR with controller read bitmask to see if anything is being pressed at all
JZ EndUpdateTextPositioning ; If not, return
; Check for controller stick 'up' and increment the Y position if it's being pressed
MOV A, R0 ; Load the controller input again
XRL A, Stick_Up ; XOR with the bit pattern for 'stick up' to see if it's being pressed
JNZ NoStickUp
MOV R1, TextStringY
MOV A, @R1 ; Load the Y position
INC A ; Add 1
MOV @R1, A ; Store the Y position
XRL A, #33 ; XOR with 33 to see if we've gone off the top edge of the screen
JNZ EndUpdateTextPositioning
MOV A, #32
MOV @R1, A ; If so, just reset the Y position to 32
JMP EndUpdateTextPositioning
NoStickUp:
; Check for controller stick 'down' and decrement the Y position if it's being pressed
MOV A, R0 ; Load the controller input again
XRL A, Stick_Down ; XOR with the bit pattern for 'stick down' to see if it's being pressed
JNZ NoStickDown
MOV R1, TextStringY
MOV A, @R1 ; Load the Y position
DEC A ; Subtract 1
MOV @R1, A ; Store the Y position
XRL A, #255 ; XOR with 255 to see if we've gone off the bottom edge of the screen
JNZ EndUpdateTextPositioning
CLR A
MOV @R1, A ; If so, just reset the Y position to 0
JMP EndUpdateTextPositioning
NoStickDown:
; Check for controller stick 'left' and decrement the X position if it's being pressed
MOV A, R0 ; Load the controller input again
XRL A, Stick_Left ; XOR with the bit pattern for 'stick left' to see if it's being pressed
JNZ NoStickLeft
MOV R1, TextStringX
MOV A, @R1 ; Load the X position
DEC A ; Subtract 1
MOV @R1, A ; Store the X position
XRL A, #255 ; XOR with 255 to see if we've gone off the left edge of the screen
JNZ EndUpdateTextPositioning
CLR A
MOV @R1, A ; If so, just reset the X position to 0
JMP EndUpdateTextPositioning
NoStickLeft:
; Check for controller stick 'right' and increment the X position if it's being pressed
MOV A, R0 ; Load the controller input again
XRL A, Stick_Right ; XOR with the bit pattern for 'stick right' to see if it's being pressed
JNZ EndUpdateTextPositioning
MOV R1, TextStringX
MOV A, @R1 ; Load the X position
INC A ; add 1
MOV @R1, A ; Store the X position
XRL A, #62 ; XOR with 62 to see if we've gone off the right edge of the screen
JNZ EndUpdateTextPositioning
MOV A, #61
MOV @R1, A ; If so, just reset the X position to 61
JMP EndUpdateTextPositioning
EndUpdateTextPositioning:
RET
; ******************************
; * BLANK VIDEO RAM SUBROUTINE *
; ******************************
;
; Registers used:
;
; * R0-R1 = Temp storage
;
BlankVideoRAM:
; Blank video RAM (aka external RAM banks 1-3 addresses 6-255) by filling with 0xFFs.
; 0xFF is actually an 'off' pixel and 0x00 is 'on' for whatever reason.
MOV R0, #3 ; Start at the highest bank and decrement with each loop
BlankVideoRAMLoopTop:
MOV A, R0
OUTL P1, A ; Set the current bank
MOV R1, #255 ; Start at the highest address and decrement with each loop
BlankVideoRAMInnerLoopTop:
MOV A, #0xFF
MOVX @R1, A ; Fill the current memory location for this bank with 0xFF
DEC R1
MOV A, R1
XRL A, #5 ; XOR mask current loop iteration with 5 so that we stop at 5
JNZ BlankVideoRAMInnerLoopTop
DJNZ R0, BlankVideoRAMLoopTop
RET
; **************************
; * COPY SPRITE SUBROUTINE *
; **************************
;
; Input parameters:
;
; * R1 = Byte offset of the 8 pixel high sprite to read from the data page
; * R2 = X position of the sprite, where 0 is the left side of the screen and 152 is the right
; (R2 gets incremented automatically by the subroutine)
; * R3 = Y position of the sprite, where 0 is the bottom of the screen and 32 is the top
; * R4 = The width of the sprite in pixels
;
; Additional registers/memory used:
;
; * R0 = Temp storage
; * Temp1 = Temp storage for sprite width that gets passed in via R4
; * R4 = Byte offset location where the sprite will be copied into video memory
; * R5-R6 = Temp storage, sprite data upper and lower registers
; * R7 = Loop iterator
;
CopySprite:
; Save sprite width in Temp1
MOV R0, Temp1
MOV A, R4
MOV @R0, A
MOV R7, #0
CopySpriteTop:
; Select the appropriate RAM bank for the given X position. Also get the RAM bank column index and save it in R0
MOV A, R2
MOV R0, A ; The default column index will just be the original X position.
MOV A, #206
CLR C
ADD A, R2 ; Add X position to 206 to see if it overflows
JC SpriteBankNotBank1 ; If carry is set, then X position was >= 50, so we don't want bank 1
MOV A, RAM_Bank_1_Enable ; Select external RAM bank 1
JMP SpriteBankEndIf
SpriteBankNotBank1:
MOV R0, A ; Update the column index to the outcome of the last addition (which presumably overflowed and wrapped around)
MOV A, #156
CLR C
ADD A, R2 ; Add X position to 156 to see if it overflows
JC SpriteBankNotBank2 ; If carry is set, then X position was >= 100, so we don't want bank 2
MOV A, RAM_Bank_2_Enable ; Select external RAM bank 2
JMP SpriteBankEndIf
SpriteBankNotBank2:
MOV R0, A ; Update the column index to the outcome of the last addition (which presumably overflowed and wrapped around)
MOV A, RAM_Bank_3_Enable ; Select external RAM bank 3
SpriteBankEndIf:
OUTL P1, A ; Do the actual RAM bank selection
; Take the column index and multiply it by 5 to compute the column byte offset. Store it in R4
MOV A, R0
RL A
RL A
ANL A, #0xFC ; First multiply it by 4 using bit shifts
CLR C
ADD A, R0 ; Then add R0 to the result of that to get 'multiply by 5'
MOV R4, A
; Compute the sprite's vertical positioning byte offset and add that to the column byte offset
MOV A, R3 ; Load the sprite Y position
RR A ; Divide TextStringY by 8 to determine the starting byte index to place the sprite at
RR A
RR A
ANL A, #0x07
CLR C
ADD A, #6 ; Add 6 to the starting byte index, since video RAM goes from 6-255 in each bank
ADD A, R4 ; Add this to the column byte offset computed above
MOV R4, A
; Now get the fine positioning bit offset and copy that into R0
MOV A, R3 ; Load the sprite Y position again
ANL A, #0x07 ; AND with the low 3 bytes to get the fine positioning offset
MOV R0, A
; Load the current line of sprite data from the data page
MOV A, R1 ; Get the byte offset of the sprite we want
CLR C
ADD A, R7 ; Now add to that the current loop iteration
MOV R5, A ; Save it in R5 which will be the input parameter to 'GetSpriteData'
CALL GetSpriteData
; Load the sprite data into R5. Fill R6 with 0xFF - it will be the upper sprite register we rotate bits into
MOV R5, A
MOV A, #0xFF
MOV R6, A
; Fine positioning while loop - bit shift the sprite data left by one bit for each iteration
FinePositioningLoopTop:
MOV A, R0
JZ FinePositioningLoopEnd
MOV A, R5 ; Load the sprite data lower register
CLR C
CPL C ; '1' is an off pixel so we want to make sure the carry is set
RLC A ; Shift it left one bit
MOV R5, A ; Save the data back into the sprite data lower register
MOV A, R6 ; Load the sprite data upper register
RLC A ; Shift it left one bit, shifting the carry from the previous shift into bit 0
MOV R6, A ; Save the data back into the sprite data upper register
DEC R0
JMP FinePositioningLoopTop
FinePositioningLoopEnd:
; Write the shifted sprite registers to the video display at the proper locations
MOV A, R4
MOV R0, A ; Load the video memory starting byte index
MOVX A, @R0 ; Get the current value in video memory
ANL A, R5 ; AND it with the sprite data lower register
MOVX @R0, A ; Store it in video memory
INC R0
MOVX A, @R0 ; Get the current value in video memory
ANL A, R6 ; AND it with the sprite data upper register
MOVX @R0, A ; Store it in video memory
INC R2 ; Increment the X position
INC R7 ; Increment the loop counter
MOV R0, Temp1 ; Put the address of Temp1 into R0. Temp1 is where the sprite width is saved
MOV A, R7
XRL A, @R0 ; XOR mask current loop iteration with the sprite width so that we stop at the right place
JNZ CopySpriteTop
; Put the sprite width back into R4
MOV R0, Temp1
MOV A, @R0
MOV R4, A
RET
; ******************************
; * GET SPRITE DATA SUBROUTINE *
; ******************************
;
; Input parameters:
;
; * R5 = Byte offset to fetch the data from
;
.org 0x0F00
GetSpriteData:
MOV A, #SpriteData % 256
CLR C
ADD A, R5
MOVP A, @A
RET
SpriteData:
; Capital H
.db 0xFF ; 11111111
.db 0x80 ; 10000000
.db 0xF7 ; 11110111
.db 0xF7 ; 11110111
.db 0xF7 ; 11110111
.db 0xF7 ; 11110111
.db 0x80 ; 10000000
.db 0xFF ; 11111111
; Lowercase E
.db 0xFF ; 11111111
.db 0xF1 ; 11110001
.db 0xEA ; 11101010
.db 0xEA ; 11101010
.db 0xEA ; 11101010
.db 0xEA ; 11101010
.db 0xF3 ; 11110011
.db 0xFF ; 11111111
; Lowercase L
.db 0xFF ; 11111111
.db 0xFF ; 11111111
.db 0xFF ; 11111111
.db 0x81 ; 10000001
.db 0xFE ; 11111110
.db 0xFF ; 11111111
.db 0xFF ; 11111111
.db 0xFF ; 11111111
; Lowercase O
.db 0xFF ; 11111111
.db 0xF1 ; 11110001
.db 0xEE ; 11101110
.db 0xEE ; 11101110
.db 0xEE ; 11101110
.db 0xEE ; 11101110
.db 0xF1 ; 11110001
.db 0xFF ; 11111111
; Capital W
.db 0xFF ; 11111111
.db 0x80 ; 10000000
.db 0xFD ; 11111101
.db 0xFB ; 11111011
.db 0xFB ; 11111011
.db 0xFD ; 11111101
.db 0x80 ; 10000000
.db 0xFF ; 11111111
; Lowercase R
.db 0xFF ; 11111111
.db 0xFF ; 11111111
.db 0xF0 ; 11110000
.db 0xEF ; 11101111
.db 0xEF ; 11101111
.db 0xEF ; 11101111
.db 0xEF ; 11101111
.db 0xFF ; 11111111
; Lowercase D
.db 0xFF ; 11111111
.db 0xF1 ; 11110001
.db 0xEE ; 11101110
.db 0xEE ; 11101110
.db 0xEE ; 11101110
.db 0xEE ; 11101110
.db 0x80 ; 10000000
.db 0xFF ; 11111111
.org 0x1000 ; End of the 4K ROM memory area |
assets/assembly/IA32/linux_nasm_progs/nasm_linux_ORG_CH9/binchar.asm | edassis/SB-Tradutor | 1 | 100377 | <filename>assets/assembly/IA32/linux_nasm_progs/nasm_linux_ORG_CH9/binchar.asm
;Binary equivalent of characters BINCHAR.ASM
;
; Objective: To print the binary equivalent of
; ASCII character code.
; Input: Requests a character from keyboard.
; Output: Prints the ASCII code of the
; input character in binary.
%include "io.mac"
.DATA
char_prompt db "Please input a character: ",0
out_msg1 db "The ASCII code of '",0
out_msg2 db "' in binary is ",0
query_msg db "Do you want to quit (Y/N): ",0
.CODE
.STARTUP
read_char:
PutStr char_prompt ; request a char. input
GetCh AL ; read input character
PutStr out_msg1
PutCh AL
PutStr out_msg2
mov AH,80H ; mask byte = 80H
mov CX,8 ; loop count to print 8 bits
print_bit:
test AL,AH ; test does not modify AL
jz print_0 ; if tested bit is 0, print it
PutCh '1' ; otherwise, print 1
jmp skip1
print_0:
PutCh '0' ; print 0
skip1:
shr AH,1 ; right shift mask bit to test
; next bit of the ASCII code
loop print_bit
nwln
PutStr query_msg ; query user whether to terminate
GetCh AL ; read response
cmp AL,'Y' ; if response is not 'Y'
jne read_char ; read another character
done: ; otherwise, terminate program
.EXIT
|
oeis/036/A036276.asm | neoneye/loda-programs | 11 | 101040 | ; A036276: a(n) = A001864(n)/2.
; Submitted by <NAME>(s1)
; 0,1,12,156,2360,41400,831012,18832576,476200944,13301078400,406907517500,13534968927744,486470108273448,18790567023993856,776343673316956500,34165751933338828800,1595693034061797583328,78831769938218360930304,4107393289066148637198444,225107487542523989278720000,12945724114660722406901035800,779513684281274931109132763136,49047001154141018384590380354692,3218806250241622855936859392966656,219956457769632646538840678573250000,15626445735924358422922447548841984000
add $0,1
mov $2,$0
mov $3,-1
mov $4,1
lpb $0
sub $0,1
add $3,$4
mul $3,$2
mul $4,$0
lpe
mov $0,$3
div $0,2
|
libsrc/_DEVELOPMENT/temp/sp1/zx/c/sdcc_iy/sp1_Initialize_callee.asm | jpoikela/z88dk | 640 | 103549 | <reponame>jpoikela/z88dk
; void sp1_Initialize(uchar iflag, uchar colour, uchar tile)
SECTION code_clib
SECTION code_temp_sp1
PUBLIC _sp1_Initialize_callee
EXTERN asm_sp1_Initialize
_sp1_Initialize_callee:
pop bc
pop hl
ld a,l
pop de
pop hl
ld h,e
push bc
jp asm_sp1_Initialize
|
reference_asm/menu_full_page_stats.asm | tashiww/maten_tools | 1 | 91373 | <filename>reference_asm/menu_full_page_stats.asm
; ########################################################################################
; # Full page stat screen!!
; # layout adjustments to avoid abbreviations
; #
; # Generated by the active disassembly feature of the Exodus emulation platform
; # Creation Date: 2021-1-2 10:22:43
; # Analysis Region: 0x00009002 - 0x000091C4
; ########################################################################################
org $00009002
x_tile_offset equr d0 ; most drawing routines use d0 as left padding
y_tile_offset equr d1 ; same but for y offset from top
value_to_write equr d2 ; stat value to write
player_ram_offset equr a4 ; starting with $ffcedc, incrementing $50ish? for each subsequent party member
MOVEQ #$0000000B, x_tile_offset ; x offset
MOVEQ #3, D1
;BSR.w *+$A6B6
BSR.w $36be ; draw npc name
LEA $FFFF9254.w, A0 ; gets lvl/xp labels
MOVEQ #$0000000B, x_tile_offset
MOVEQ #5, D1
BSR.w write_label_8x16 ; draws lvl/xp labels
CLR.l D2
MOVE.b $E(A4), D2 ; lvl value
MOVEQ #$00000010, x_tile_offset
MOVEQ #5, y_tile_offset
MOVEQ #0, D3
BSR.w draw_stat_value
MOVE.l $32(A4), D2 ; exp value
MOVEQ #$00000010, x_tile_offset
MOVEQ #7, y_tile_offset
MOVEQ #0, D3
BSR.w draw_stat_value
MOVEQ #$00000015, x_tile_offset
MOVEQ #5, y_tile_offset
TST.w $2(A4) ; check if hp is 0
BNE.b not_dead
LEA $FFFF9294.w, A0 ; dead string
BSR.w write_label_8x16 ;Predicted (Code-scan)
BRA.b not_poisoned ;Predicted (Code-scan)
; $9048 , checks status effects
not_dead:
MOVE.b $19(A4), D4 ; status effects?
BTST.l #2, D4
BEQ.b not_petrified
LEA $FFFF929A.w, A0 ; petrifed string
BSR.w write_label_8x16 ;Predicted (Code-scan)
ADDQ.w #5, D0 ;Predicted (Code-scan)
BRA.b not_paralyzed ;Predicted (Code-scan)
not_petrified:
BTST.l #1, D4
BEQ.b not_paralyzed
LEA $FFFF92A0.w, A0 ; paralyzed string
BSR.w write_label_8x16 ;
ADDQ.w #5, D0 ;
not_paralyzed:
BTST.l #0, D4
BEQ.b not_poisoned
LEA $FFFF92A4.w, A0 ; poisoned string
BSR.w write_label_8x16 ;Predicted (Code-scan)
; finished stat checks, start with hp/mp
not_poisoned:
LEA $FFFF925C.w, A0 ; hp / mp labels
MOVEQ #3, x_tile_offset
MOVEQ #$0000000B, y_tile_offset
BSR.w write_label_8x16
LEA $FFFF9262.w, A0 ; slashes between current and max hp (23 / 50)
MOVEQ #$0000000E, x_tile_offset
MOVEQ #$0000000B, y_tile_offset
BSR.w write_label_8x16
CLR.l D2
MOVE.w $2(A4), D2 ; current hp
MOVEQ #3, D3
MOVEQ #8, x_tile_offset
MOVEQ #$0000000B, y_tile_offset
BSR.w draw_stat_value
CLR.l D2 ; this probably isn't necessary? current hp can't exceed max hp
MOVE.w $4(A4), D2 ; max hp
MOVEQ #3, D3
MOVEQ #$00000010, x_tile_offset
MOVEQ #$0000000B, y_tile_offset
BSR.w draw_stat_value ; draw max hp
CLR.l D2
MOVE.w $6(A4), D2 ; current mp
MOVEQ #3, D3
MOVEQ #8, x_tile_offset
MOVEQ #$0000000D, y_tile_offset
BSR.w draw_stat_value
CLR.l D2
MOVE.w $8(A4), D2 ; max mp
MOVEQ #3, D3
MOVEQ #$00000010, x_tile_offset
MOVEQ #$0000000D, y_tile_offset
BSR.w draw_stat_value
LEA $FFFF9266.w, A0 ; strings for stat labels (str, vit, etc)
MOVEQ #3, x_tile_offset
MOVEQ #$00000011, y_tile_offset
BSR.w write_label_8x16
CLR.l D2
MOVE.b $F(A4), D2 ; str value
MOVEQ #3, D3
MOVEQ #$0000000A, x_tile_offset
MOVEQ #$00000011, y_tile_offset
BSR.w draw_stat_value
CLR.l D2
MOVE.b $10(A4), D2 ; intelligence value
MOVEQ #3, D3
MOVEQ #$0000000A, x_tile_offset
MOVEQ #$00000013, y_tile_offset
BSR.w draw_stat_value
CLR.l D2
MOVE.b $11(A4), D2 ; vitality
MOVEQ #3, D3
MOVEQ #$0000000A, x_tile_offset
MOVEQ #$00000015, y_tile_offset
BSR.w draw_stat_value
CLR.l D2
MOVE.b $12(A4), D2 ; speed
MOVEQ #3, D3
MOVEQ #$0000000A, x_tile_offset
MOVEQ #$00000017, y_tile_offset
BSR.w draw_stat_value
LEA $FFFF87E4.w, A0 ; atk / def labels
MOVEQ #$00000019, x_tile_offset
MOVEQ #$0000000B, y_tile_offset
BSR.w write_label_8x16
CLR.l D2
MOVE.w $A(A4), D2 ; atk stat
CMPI.w #$03E8, D2 ; check for > 1k
BCS.b dont_clip_atk
MOVE.w #$03E7, D2 ; cap atk display at 999
dont_clip_atk:
MOVEQ #3, D3
MOVEQ #$00000020, x_tile_offset
MOVEQ #$0000000B, y_tile_offset
BSR.w draw_stat_value
CLR.l D2
MOVE.w $C(A4), D2 ; def stat
CMPI.w #$03E8, D2 ; check for > 1k
BCS.b dont_clip_def
MOVE.w #$03E7, D2 ; cap def display at 999
dont_clip_def:
MOVEQ #3, D3
MOVEQ #$00000020, x_tile_offset
MOVEQ #$0000000D, y_tile_offset
BSR.w draw_stat_value
draw_gear_labels:
LEA $FFFF927C.w, A0 ; gear labels (wpn, helm, etc)
MOVEQ #$00000019, x_tile_offset
MOVEQ #$00000011, y_tile_offset
BSR.w write_label_8x8
MOVE.b $14(A4), D2 ; currently equipped weapon
MOVEQ #$0000001E, x_tile_offset ;
MOVEQ #$00000011, y_tile_offset
BSR.w draw_equipped_item
MOVE.b $15(A4), D2 ; equipped armor
MOVEQ #$0000001E, x_tile_offset
MOVEQ #$00000013, y_tile_offset
BSR.w draw_equipped_item
MOVE.b $16(A4), D2 ; equipped helm
MOVEQ #$0000001E, x_tile_offset
MOVEQ #$00000015, y_tile_offset ;
BSR.w draw_equipped_item
MOVE.b $17(A4), D2 ; equipped shield
MOVEQ #$0000001E, x_tile_offset
MOVEQ #$00000017, y_tile_offset
BSR.w draw_equipped_item
MOVE.b $18(A4), D2 ; equipped item
MOVEQ #$0000001E, x_tile_offset
MOVEQ #$00000019, y_tile_offset
BSR.w draw_equipped_item
MOVE.l $00FFD5D6, D2 ; gold amount
MOVEQ #5, D3
MOVEQ #$0000001B, x_tile_offset
MOVEQ #1, y_tile_offset
BSR.w draw_stat_value
LEA $FFFF927A.w, A0 ; 'G' for gold label
MOVEQ #$00000025, x_tile_offset
MOVEQ #1, y_tile_offset
BSR.w write_label_8x16
|
oeis/096/A096963.asm | neoneye/loda-programs | 11 | 21216 | ; A096963: Sum {0<d|n, n/d odd} d^11.
; Submitted by <NAME>
; 1,2048,177148,4194304,48828126,362799104,1977326744,8589934592,31381236757,100000002048,285311670612,743012564992,1792160394038,4049565171712,8649804864648,17592186044416,34271896307634,64268772878336,116490258898220,204800004194304,350279478046112,584318301413376,952809757913928,1521689733103616,2384185839843751,3670344486989824,5559091947792280,8293509471666176,12200509765705830,17714800362799104,25408476896404832,36028797018963968,50542391825574576,70188843638034432,96549159399201744
add $0,1
mov $2,$0
add $2,$0
lpb $0
mul $0,2
mov $3,$2
dif $3,$0
cmp $3,$2
cmp $3,0
mul $3,$0
sub $0,1
div $0,2
pow $3,11
add $1,$3
sub $2,1
lpe
mov $0,$1
div $0,2048
|
programs/oeis/334/A334572.asm | neoneye/loda | 22 | 10478 | ; A334572: Let x(n, k) be the exponent of prime(k) in the factorization of n, then a(n) = Max_{k} abs(x(n,k)- x(n-1,k)).
; 1,1,2,2,1,1,3,3,2,1,2,2,1,1,4,4,2,2,2,2,1,1,3,3,2,3,3,2,1,1,5,5,1,1,2,2,1,1,3,3,1,1,2,2,2,1,4,4,2,2,2,2,3,3,3,3,1,1,2,2,1,2,6,6,1,1,2,2,1,1,3,3,1,2,2,2,1,1,4,4,4,1,2,2,1,1,3,3,2
seq $0,28387 ; a(n) = n + (n+1)^2.
seq $0,51903 ; Maximal exponent in prime factorization of n.
|
libsrc/_DEVELOPMENT/alloc/malloc/c/sdcc_iy/posix_memalign_unlocked_callee.asm | jpoikela/z88dk | 640 | 165990 | <reponame>jpoikela/z88dk
; int posix_memalign_unlocked_callee(void **memptr, size_t alignment, size_t size)
SECTION code_clib
SECTION code_alloc_malloc
PUBLIC _posix_memalign_unlocked_callee
EXTERN asm_posix_memalign_unlocked
_posix_memalign_unlocked_callee:
pop hl
pop de
pop bc
ex (sp),hl
jp asm_posix_memalign_unlocked
|
stoixeio_pinaka.asm | Pikridas/Computer-Architecture-Basics | 0 | 90382 | .data
table: .ascii "0123456789ABCDEF"
str: .asciiz "DWSE MOU ARITHMO APO 1 EWS 15\n"
char: .asciiz "EDWSES TON XARAKTHRA: "
.text
.globl main
main:
li $v0,4
la $a0,str
syscall
li $v0,5
syscall
la $t0,($v0)
la $s0,table
addu $t1,$s0,$t0
li $v0,11
li $a0,'\n'
syscall
li $v0,4
la $a0,char
syscall
li $v0,11
lb $a0, ($t1)
syscall
li $v0,10
syscall
|
oeis/101/A101399.asm | neoneye/loda-programs | 11 | 2437 | ; A101399: a(0) = 1, a(1) = 2, a(2) = 5; for n >= 3, a(n) = a(n-1) + 2*a(n-2) + a(n-3).
; Submitted by <NAME>(s1)
; 1,2,5,10,22,47,101,217,466,1001,2150,4618,9919,21305,45761,98290,211117,453458,973982,2092015,4493437,9651449,20730338,44526673,95638798,205422482,441226751,947710513,2035586497,4372234274,9391117781,20171172826,43325642662,93059106095,199881564245,429325419097,922147653682,1980680056121,4254300782582,9137808548506,19627090169791,42157008049385,90548996937473,194490103206034,417745105130365,897274308479906,1927254621946670,4139548344036847,8891331896410093,19097683206430457,41019895343287490
mul $0,2
seq $0,97333 ; Sum k=0..n, C(n-k, floor(k/2)).
|
tests/J/test_fib.asm | madhav-datt/mmcpu | 0 | 87911 | <reponame>madhav-datt/mmcpu
nop
nop
nop
main:
addi $sp, $sp, 128
addi $a0, $0, 8 # n = 8
addi $s3, $0, 1
addi $s4, $0, 2
jal fib
add $s0, $v0, $0
j done
fib:
addi $sp, $sp, -20
sw $ra, 20($sp)
beq $a0, $s3, n0
beq $a0, $s4, n1
sw $a0, 0($sp)
lw $t0, 0($sp)
addi $t1, $t0, -1
addi $t2, $t0, -2
sw $t1, 4($sp)
sw $t2, 8($sp)
lw $a0, 4($sp)
jal fib
sw $v0, 12($sp)
lw $a0, 8($sp)
jal fib
sw $v0, 16($sp)
lw $t3, 12($sp)
lw $t4, 16($sp)
add $v0, $t3, $t4
j end
n0:
# Fibonacci base case n = 1
addi $v0, $0, 0
j end
n1:
# Fibonacci base case n = 2
addi $v0, $0, 1
j end
end:
# End of fibonacci function
lw $ra, 20($sp)
addi $sp, $sp, 20
jr $ra
done:
# Result from fib function -> $s0 = 13
ori $t6, $0, 1
addi $s1, $s0, 1
j while
while:
# Do while loop with exit condition $s1 = 0
addi $s1, $s1, -1
add $s5, $s5, $s4 # $s5 = $s5 + 2
bne $s1, $0, while
|
source/amf/dd/amf-internals-tables-dg_metamodel-properties.adb | svn2github/matreshka | 24 | 25049 | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2012, <NAME> <<EMAIL>> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
-- This file is generated, don't edit it.
------------------------------------------------------------------------------
with AMF.CMOF;
with AMF.Internals.Tables.CMOF_Attributes;
with AMF.Internals.Tables.DG_String_Data_00;
with AMF.Internals.Tables.DG_String_Data_01;
package body AMF.Internals.Tables.DG_Metamodel.Properties is
----------------
-- Initialize --
----------------
procedure Initialize is
begin
Initialize_1;
Initialize_2;
Initialize_3;
Initialize_4;
Initialize_5;
Initialize_6;
Initialize_7;
Initialize_8;
Initialize_9;
Initialize_10;
Initialize_11;
Initialize_12;
Initialize_13;
Initialize_14;
Initialize_15;
Initialize_16;
Initialize_17;
Initialize_18;
Initialize_19;
Initialize_20;
Initialize_21;
Initialize_22;
Initialize_23;
Initialize_24;
Initialize_25;
Initialize_26;
Initialize_27;
Initialize_28;
Initialize_29;
Initialize_30;
Initialize_31;
Initialize_32;
Initialize_33;
Initialize_34;
Initialize_35;
Initialize_36;
Initialize_37;
Initialize_38;
Initialize_39;
Initialize_40;
Initialize_41;
Initialize_42;
Initialize_43;
Initialize_44;
Initialize_45;
Initialize_46;
Initialize_47;
Initialize_48;
Initialize_49;
Initialize_50;
Initialize_51;
Initialize_52;
Initialize_53;
Initialize_54;
Initialize_55;
Initialize_56;
Initialize_57;
Initialize_58;
Initialize_59;
Initialize_60;
Initialize_61;
Initialize_62;
Initialize_63;
Initialize_64;
Initialize_65;
Initialize_66;
Initialize_67;
Initialize_68;
Initialize_69;
Initialize_70;
Initialize_71;
Initialize_72;
Initialize_73;
Initialize_74;
Initialize_75;
Initialize_76;
Initialize_77;
Initialize_78;
Initialize_79;
Initialize_80;
Initialize_81;
Initialize_82;
Initialize_83;
Initialize_84;
Initialize_85;
Initialize_86;
Initialize_87;
Initialize_88;
Initialize_89;
Initialize_90;
Initialize_91;
Initialize_92;
Initialize_93;
Initialize_94;
Initialize_95;
Initialize_96;
Initialize_97;
Initialize_98;
Initialize_99;
Initialize_100;
Initialize_101;
Initialize_102;
Initialize_103;
Initialize_104;
Initialize_105;
Initialize_106;
Initialize_107;
Initialize_108;
Initialize_109;
Initialize_110;
Initialize_111;
Initialize_112;
Initialize_113;
Initialize_114;
Initialize_115;
Initialize_116;
Initialize_117;
Initialize_118;
Initialize_119;
Initialize_120;
Initialize_121;
Initialize_122;
Initialize_123;
Initialize_124;
Initialize_125;
Initialize_126;
Initialize_127;
Initialize_128;
Initialize_129;
Initialize_130;
Initialize_131;
Initialize_132;
Initialize_133;
Initialize_134;
Initialize_135;
Initialize_136;
Initialize_137;
Initialize_138;
Initialize_139;
Initialize_140;
Initialize_141;
Initialize_142;
Initialize_143;
Initialize_144;
Initialize_145;
Initialize_146;
Initialize_147;
Initialize_148;
Initialize_149;
Initialize_150;
Initialize_151;
Initialize_152;
Initialize_153;
Initialize_154;
Initialize_155;
Initialize_156;
Initialize_157;
Initialize_158;
Initialize_159;
Initialize_160;
Initialize_161;
Initialize_162;
Initialize_163;
Initialize_164;
Initialize_165;
Initialize_166;
Initialize_167;
Initialize_168;
Initialize_169;
Initialize_170;
Initialize_171;
Initialize_172;
Initialize_173;
Initialize_174;
Initialize_175;
Initialize_176;
Initialize_177;
Initialize_178;
Initialize_179;
Initialize_180;
Initialize_181;
Initialize_182;
Initialize_183;
Initialize_184;
Initialize_185;
Initialize_186;
Initialize_187;
Initialize_188;
Initialize_189;
Initialize_190;
Initialize_191;
Initialize_192;
Initialize_193;
Initialize_194;
Initialize_195;
Initialize_196;
Initialize_197;
Initialize_198;
Initialize_199;
Initialize_200;
Initialize_201;
Initialize_202;
Initialize_203;
Initialize_204;
Initialize_205;
Initialize_206;
Initialize_207;
Initialize_208;
Initialize_209;
Initialize_210;
Initialize_211;
Initialize_212;
Initialize_213;
Initialize_214;
Initialize_215;
Initialize_216;
Initialize_217;
Initialize_218;
Initialize_219;
Initialize_220;
Initialize_221;
Initialize_222;
Initialize_223;
Initialize_224;
Initialize_225;
Initialize_226;
Initialize_227;
Initialize_228;
Initialize_229;
Initialize_230;
Initialize_231;
Initialize_232;
Initialize_233;
Initialize_234;
Initialize_235;
Initialize_236;
Initialize_237;
Initialize_238;
Initialize_239;
Initialize_240;
Initialize_241;
Initialize_242;
Initialize_243;
Initialize_244;
Initialize_245;
Initialize_246;
Initialize_247;
Initialize_248;
Initialize_249;
Initialize_250;
Initialize_251;
Initialize_252;
Initialize_253;
Initialize_254;
Initialize_255;
Initialize_256;
Initialize_257;
Initialize_258;
Initialize_259;
Initialize_260;
Initialize_261;
Initialize_262;
Initialize_263;
Initialize_264;
Initialize_265;
Initialize_266;
Initialize_267;
Initialize_268;
Initialize_269;
Initialize_270;
Initialize_271;
Initialize_272;
Initialize_273;
Initialize_274;
Initialize_275;
Initialize_276;
Initialize_277;
Initialize_278;
Initialize_279;
Initialize_280;
Initialize_281;
Initialize_282;
Initialize_283;
Initialize_284;
Initialize_285;
Initialize_286;
Initialize_287;
Initialize_288;
Initialize_289;
Initialize_290;
Initialize_291;
Initialize_292;
Initialize_293;
Initialize_294;
Initialize_295;
Initialize_296;
Initialize_297;
Initialize_298;
Initialize_299;
Initialize_300;
Initialize_301;
Initialize_302;
Initialize_303;
Initialize_304;
Initialize_305;
Initialize_306;
Initialize_307;
Initialize_308;
Initialize_309;
Initialize_310;
Initialize_311;
Initialize_312;
Initialize_313;
Initialize_314;
Initialize_315;
Initialize_316;
Initialize_317;
Initialize_318;
Initialize_319;
Initialize_320;
Initialize_321;
Initialize_322;
end Initialize;
------------------
-- Initialize_1 --
------------------
procedure Initialize_1 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 1,
AMF.Internals.Tables.DG_String_Data_01.MS_010C'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 1, (Is_Empty => True));
end Initialize_1;
------------------
-- Initialize_2 --
------------------
procedure Initialize_2 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 2,
AMF.Internals.Tables.DG_String_Data_00.MS_0096'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 2, (Is_Empty => True));
end Initialize_2;
------------------
-- Initialize_3 --
------------------
procedure Initialize_3 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 3,
AMF.Internals.Tables.DG_String_Data_00.MS_0048'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 3, (Is_Empty => True));
end Initialize_3;
------------------
-- Initialize_4 --
------------------
procedure Initialize_4 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 4,
AMF.Internals.Tables.DG_String_Data_00.MS_00E5'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 4, (Is_Empty => True));
end Initialize_4;
------------------
-- Initialize_5 --
------------------
procedure Initialize_5 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Abstract (Base + 5, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 5,
AMF.Internals.Tables.DG_String_Data_00.MS_0027'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 5, (Is_Empty => True));
end Initialize_5;
------------------
-- Initialize_6 --
------------------
procedure Initialize_6 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Abstract (Base + 6, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 6,
AMF.Internals.Tables.DG_String_Data_01.MS_011F'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 6, (Is_Empty => True));
end Initialize_6;
------------------
-- Initialize_7 --
------------------
procedure Initialize_7 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Abstract (Base + 7, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 7,
AMF.Internals.Tables.DG_String_Data_00.MS_00F3'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 7, (Is_Empty => True));
end Initialize_7;
------------------
-- Initialize_8 --
------------------
procedure Initialize_8 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 8,
AMF.Internals.Tables.DG_String_Data_01.MS_0122'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 8, (Is_Empty => True));
end Initialize_8;
------------------
-- Initialize_9 --
------------------
procedure Initialize_9 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 9,
AMF.Internals.Tables.DG_String_Data_00.MS_0046'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 9, (Is_Empty => True));
end Initialize_9;
-------------------
-- Initialize_10 --
-------------------
procedure Initialize_10 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 10,
AMF.Internals.Tables.DG_String_Data_00.MS_0033'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 10, (Is_Empty => True));
end Initialize_10;
-------------------
-- Initialize_11 --
-------------------
procedure Initialize_11 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 11,
AMF.Internals.Tables.DG_String_Data_00.MS_008F'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 11, (Is_Empty => True));
end Initialize_11;
-------------------
-- Initialize_12 --
-------------------
procedure Initialize_12 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 12,
AMF.Internals.Tables.DG_String_Data_00.MS_00CA'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 12, (Is_Empty => True));
end Initialize_12;
-------------------
-- Initialize_13 --
-------------------
procedure Initialize_13 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 13,
AMF.Internals.Tables.DG_String_Data_00.MS_005F'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 13, (Is_Empty => True));
end Initialize_13;
-------------------
-- Initialize_14 --
-------------------
procedure Initialize_14 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 14,
AMF.Internals.Tables.DG_String_Data_00.MS_0072'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 14, (Is_Empty => True));
end Initialize_14;
-------------------
-- Initialize_15 --
-------------------
procedure Initialize_15 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 15,
AMF.Internals.Tables.DG_String_Data_00.MS_00D7'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 15, (Is_Empty => True));
end Initialize_15;
-------------------
-- Initialize_16 --
-------------------
procedure Initialize_16 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 16,
AMF.Internals.Tables.DG_String_Data_00.MS_00E2'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 16, (Is_Empty => True));
end Initialize_16;
-------------------
-- Initialize_17 --
-------------------
procedure Initialize_17 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 17,
AMF.Internals.Tables.DG_String_Data_00.MS_007C'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 17, (Is_Empty => True));
end Initialize_17;
-------------------
-- Initialize_18 --
-------------------
procedure Initialize_18 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 18,
AMF.Internals.Tables.DG_String_Data_00.MS_002D'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 18, (Is_Empty => True));
end Initialize_18;
-------------------
-- Initialize_19 --
-------------------
procedure Initialize_19 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 19,
AMF.Internals.Tables.DG_String_Data_00.MS_0029'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 19, (Is_Empty => True));
end Initialize_19;
-------------------
-- Initialize_20 --
-------------------
procedure Initialize_20 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 20,
AMF.Internals.Tables.DG_String_Data_00.MS_00DE'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 20, (Is_Empty => True));
end Initialize_20;
-------------------
-- Initialize_21 --
-------------------
procedure Initialize_21 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 21,
AMF.Internals.Tables.DG_String_Data_00.MS_003B'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 21, (Is_Empty => True));
end Initialize_21;
-------------------
-- Initialize_22 --
-------------------
procedure Initialize_22 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 22, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 22, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 22,
AMF.Internals.Tables.DG_String_Data_01.MS_0107'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 22, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 22, (False, AMF.CMOF.Public_Visibility));
end Initialize_22;
-------------------
-- Initialize_23 --
-------------------
procedure Initialize_23 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 23, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 23, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 23,
AMF.Internals.Tables.DG_String_Data_00.MS_00BF'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 23, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 23, (False, AMF.CMOF.Public_Visibility));
end Initialize_23;
-------------------
-- Initialize_24 --
-------------------
procedure Initialize_24 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 24, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 24, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 24,
AMF.Internals.Tables.DG_String_Data_01.MS_0108'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 24, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 24, (False, AMF.CMOF.Public_Visibility));
end Initialize_24;
-------------------
-- Initialize_25 --
-------------------
procedure Initialize_25 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 25, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Ordered (Base + 25, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 25, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 25,
AMF.Internals.Tables.DG_String_Data_00.MS_0056'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 25, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 25, (False, AMF.CMOF.Public_Visibility));
end Initialize_25;
-------------------
-- Initialize_26 --
-------------------
procedure Initialize_26 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Ordered (Base + 26, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 26, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 26,
AMF.Internals.Tables.DG_String_Data_00.MS_00A4'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 26, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 26, (False, AMF.CMOF.Public_Visibility));
end Initialize_26;
-------------------
-- Initialize_27 --
-------------------
procedure Initialize_27 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 27, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Ordered (Base + 27, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 27, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 27,
AMF.Internals.Tables.DG_String_Data_01.MS_011D'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 27, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 27, (False, AMF.CMOF.Public_Visibility));
end Initialize_27;
-------------------
-- Initialize_28 --
-------------------
procedure Initialize_28 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 28, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 28,
AMF.Internals.Tables.DG_String_Data_01.MS_0117'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 28, (False, AMF.CMOF.Public_Visibility));
end Initialize_28;
-------------------
-- Initialize_29 --
-------------------
procedure Initialize_29 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 29, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 29,
AMF.Internals.Tables.DG_String_Data_01.MS_0114'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 29, (False, AMF.CMOF.Public_Visibility));
end Initialize_29;
-------------------
-- Initialize_30 --
-------------------
procedure Initialize_30 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 30,
AMF.Internals.Tables.DG_String_Data_00.MS_00BE'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 30, (False, AMF.CMOF.Public_Visibility));
end Initialize_30;
-------------------
-- Initialize_31 --
-------------------
procedure Initialize_31 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 31,
AMF.Internals.Tables.DG_String_Data_00.MS_00EF'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 31, (False, AMF.CMOF.Public_Visibility));
end Initialize_31;
-------------------
-- Initialize_32 --
-------------------
procedure Initialize_32 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 32,
AMF.Internals.Tables.DG_String_Data_00.MS_0017'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 32, (False, AMF.CMOF.Public_Visibility));
end Initialize_32;
-------------------
-- Initialize_33 --
-------------------
procedure Initialize_33 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 33,
AMF.Internals.Tables.DG_String_Data_00.MS_00BE'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 33, (False, AMF.CMOF.Public_Visibility));
end Initialize_33;
-------------------
-- Initialize_34 --
-------------------
procedure Initialize_34 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 34,
AMF.Internals.Tables.DG_String_Data_00.MS_0036'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 34, (False, AMF.CMOF.Public_Visibility));
end Initialize_34;
-------------------
-- Initialize_35 --
-------------------
procedure Initialize_35 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 35,
AMF.Internals.Tables.DG_String_Data_00.MS_00B3'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 35, (False, AMF.CMOF.Public_Visibility));
end Initialize_35;
-------------------
-- Initialize_36 --
-------------------
procedure Initialize_36 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Ordered (Base + 36, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Unique (Base + 36, False);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 36, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 36,
AMF.Internals.Tables.DG_String_Data_00.MS_00A5'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 36, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 36, (False, AMF.CMOF.Public_Visibility));
end Initialize_36;
-------------------
-- Initialize_37 --
-------------------
procedure Initialize_37 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 37, (False, 2));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 37,
AMF.Internals.Tables.DG_String_Data_00.MS_0066'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 37, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 37, (False, AMF.CMOF.Public_Visibility));
end Initialize_37;
-------------------
-- Initialize_38 --
-------------------
procedure Initialize_38 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 38, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 38, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 38,
AMF.Internals.Tables.DG_String_Data_00.MS_003A'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 38, (False, AMF.CMOF.Public_Visibility));
end Initialize_38;
-------------------
-- Initialize_39 --
-------------------
procedure Initialize_39 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 39, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 39,
AMF.Internals.Tables.DG_String_Data_00.MS_0016'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 39, (False, AMF.CMOF.Public_Visibility));
end Initialize_39;
-------------------
-- Initialize_40 --
-------------------
procedure Initialize_40 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Ordered (Base + 40, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Unique (Base + 40, False);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 40, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 40,
AMF.Internals.Tables.DG_String_Data_00.MS_00A5'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 40, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 40, (False, AMF.CMOF.Public_Visibility));
end Initialize_40;
-------------------
-- Initialize_41 --
-------------------
procedure Initialize_41 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 41,
AMF.Internals.Tables.DG_String_Data_00.MS_008E'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 41, (False, AMF.CMOF.Public_Visibility));
end Initialize_41;
-------------------
-- Initialize_42 --
-------------------
procedure Initialize_42 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 42,
AMF.Internals.Tables.DG_String_Data_00.MS_0081'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 42, (False, AMF.CMOF.Public_Visibility));
end Initialize_42;
-------------------
-- Initialize_43 --
-------------------
procedure Initialize_43 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 43,
AMF.Internals.Tables.DG_String_Data_00.MS_00F4'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 43, (False, AMF.CMOF.Public_Visibility));
end Initialize_43;
-------------------
-- Initialize_44 --
-------------------
procedure Initialize_44 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 44,
AMF.Internals.Tables.DG_String_Data_00.MS_0023'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 44, (False, AMF.CMOF.Public_Visibility));
end Initialize_44;
-------------------
-- Initialize_45 --
-------------------
procedure Initialize_45 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 45,
AMF.Internals.Tables.DG_String_Data_00.MS_007B'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 45, (False, AMF.CMOF.Public_Visibility));
end Initialize_45;
-------------------
-- Initialize_46 --
-------------------
procedure Initialize_46 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Default
(Base + 46,
AMF.Internals.Tables.DG_String_Data_01.MS_0121'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 46,
AMF.Internals.Tables.DG_String_Data_00.MS_0006'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 46, (False, AMF.CMOF.Public_Visibility));
end Initialize_46;
-------------------
-- Initialize_47 --
-------------------
procedure Initialize_47 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Default
(Base + 47,
AMF.Internals.Tables.DG_String_Data_00.MS_0037'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 47,
AMF.Internals.Tables.DG_String_Data_00.MS_0025'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 47, (False, AMF.CMOF.Public_Visibility));
end Initialize_47;
-------------------
-- Initialize_48 --
-------------------
procedure Initialize_48 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Default
(Base + 48,
AMF.Internals.Tables.DG_String_Data_01.MS_0121'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 48,
AMF.Internals.Tables.DG_String_Data_00.MS_00A7'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 48, (False, AMF.CMOF.Public_Visibility));
end Initialize_48;
-------------------
-- Initialize_49 --
-------------------
procedure Initialize_49 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Default
(Base + 49,
AMF.Internals.Tables.DG_String_Data_00.MS_0037'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 49,
AMF.Internals.Tables.DG_String_Data_00.MS_0086'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 49, (False, AMF.CMOF.Public_Visibility));
end Initialize_49;
-------------------
-- Initialize_50 --
-------------------
procedure Initialize_50 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 50, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 50,
AMF.Internals.Tables.DG_String_Data_00.MS_00BD'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 50, (False, AMF.CMOF.Public_Visibility));
end Initialize_50;
-------------------
-- Initialize_51 --
-------------------
procedure Initialize_51 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 51, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 51,
AMF.Internals.Tables.DG_String_Data_00.MS_00AE'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 51, (False, AMF.CMOF.Public_Visibility));
end Initialize_51;
-------------------
-- Initialize_52 --
-------------------
procedure Initialize_52 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 52, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 52,
AMF.Internals.Tables.DG_String_Data_01.MS_0120'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 52, (False, AMF.CMOF.Public_Visibility));
end Initialize_52;
-------------------
-- Initialize_53 --
-------------------
procedure Initialize_53 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 53,
AMF.Internals.Tables.DG_String_Data_00.MS_00B3'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 53, (False, AMF.CMOF.Public_Visibility));
end Initialize_53;
-------------------
-- Initialize_54 --
-------------------
procedure Initialize_54 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 54,
AMF.Internals.Tables.DG_String_Data_00.MS_0067'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 54, (False, AMF.CMOF.Public_Visibility));
end Initialize_54;
-------------------
-- Initialize_55 --
-------------------
procedure Initialize_55 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 55,
AMF.Internals.Tables.DG_String_Data_00.MS_0079'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 55, (False, AMF.CMOF.Public_Visibility));
end Initialize_55;
-------------------
-- Initialize_56 --
-------------------
procedure Initialize_56 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Ordered (Base + 56, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Unique (Base + 56, False);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 56, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 56,
AMF.Internals.Tables.DG_String_Data_01.MS_010A'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 56, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 56, (False, AMF.CMOF.Public_Visibility));
end Initialize_56;
-------------------
-- Initialize_57 --
-------------------
procedure Initialize_57 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 57,
AMF.Internals.Tables.DG_String_Data_00.MS_008E'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 57, (False, AMF.CMOF.Public_Visibility));
end Initialize_57;
-------------------
-- Initialize_58 --
-------------------
procedure Initialize_58 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 58, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 58,
AMF.Internals.Tables.DG_String_Data_00.MS_0014'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 58, (False, AMF.CMOF.Public_Visibility));
end Initialize_58;
-------------------
-- Initialize_59 --
-------------------
procedure Initialize_59 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Ordered (Base + 59, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Unique (Base + 59, False);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 59, (False, 3));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 59,
AMF.Internals.Tables.DG_String_Data_00.MS_00FF'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 59, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 59, (False, AMF.CMOF.Public_Visibility));
end Initialize_59;
-------------------
-- Initialize_60 --
-------------------
procedure Initialize_60 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Ordered (Base + 60, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Unique (Base + 60, False);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 60, (False, 2));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 60,
AMF.Internals.Tables.DG_String_Data_00.MS_00FF'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 60, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 60, (False, AMF.CMOF.Public_Visibility));
end Initialize_60;
-------------------
-- Initialize_61 --
-------------------
procedure Initialize_61 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Default
(Base + 61,
AMF.Internals.Tables.DG_String_Data_00.MS_0019'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 61,
AMF.Internals.Tables.DG_String_Data_00.MS_000E'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 61, (False, AMF.CMOF.Public_Visibility));
end Initialize_61;
-------------------
-- Initialize_62 --
-------------------
procedure Initialize_62 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Default
(Base + 62,
AMF.Internals.Tables.DG_String_Data_00.MS_0019'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 62,
AMF.Internals.Tables.DG_String_Data_00.MS_00B1'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 62, (False, AMF.CMOF.Public_Visibility));
end Initialize_62;
-------------------
-- Initialize_63 --
-------------------
procedure Initialize_63 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Default
(Base + 63,
AMF.Internals.Tables.DG_String_Data_00.MS_0019'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 63,
AMF.Internals.Tables.DG_String_Data_00.MS_00A8'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 63, (False, AMF.CMOF.Public_Visibility));
end Initialize_63;
-------------------
-- Initialize_64 --
-------------------
procedure Initialize_64 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Default
(Base + 64,
AMF.Internals.Tables.DG_String_Data_00.MS_0019'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 64,
AMF.Internals.Tables.DG_String_Data_00.MS_009D'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 64, (False, AMF.CMOF.Public_Visibility));
end Initialize_64;
-------------------
-- Initialize_65 --
-------------------
procedure Initialize_65 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Default
(Base + 65,
AMF.Internals.Tables.DG_String_Data_00.MS_0019'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 65,
AMF.Internals.Tables.DG_String_Data_00.MS_00EF'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 65, (False, AMF.CMOF.Public_Visibility));
end Initialize_65;
-------------------
-- Initialize_66 --
-------------------
procedure Initialize_66 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 66,
AMF.Internals.Tables.DG_String_Data_00.MS_008E'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 66, (False, AMF.CMOF.Public_Visibility));
end Initialize_66;
-------------------
-- Initialize_67 --
-------------------
procedure Initialize_67 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Default
(Base + 67,
AMF.Internals.Tables.DG_String_Data_01.MS_0121'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 67,
AMF.Internals.Tables.DG_String_Data_00.MS_0039'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 67, (False, AMF.CMOF.Public_Visibility));
end Initialize_67;
-------------------
-- Initialize_68 --
-------------------
procedure Initialize_68 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 68, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 68,
AMF.Internals.Tables.DG_String_Data_01.MS_010D'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 68, (False, AMF.CMOF.Public_Visibility));
end Initialize_68;
-------------------
-- Initialize_69 --
-------------------
procedure Initialize_69 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 69, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 69,
AMF.Internals.Tables.DG_String_Data_00.MS_0022'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 69, (False, AMF.CMOF.Public_Visibility));
end Initialize_69;
-------------------
-- Initialize_70 --
-------------------
procedure Initialize_70 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 70, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 70,
AMF.Internals.Tables.DG_String_Data_00.MS_0095'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 70, (False, AMF.CMOF.Public_Visibility));
end Initialize_70;
-------------------
-- Initialize_71 --
-------------------
procedure Initialize_71 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 71, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 71,
AMF.Internals.Tables.DG_String_Data_00.MS_00A9'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 71, (False, AMF.CMOF.Public_Visibility));
end Initialize_71;
-------------------
-- Initialize_72 --
-------------------
procedure Initialize_72 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 72, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 72,
AMF.Internals.Tables.DG_String_Data_00.MS_00A1'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 72, (False, AMF.CMOF.Public_Visibility));
end Initialize_72;
-------------------
-- Initialize_73 --
-------------------
procedure Initialize_73 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 73, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 73,
AMF.Internals.Tables.DG_String_Data_01.MS_0119'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 73, (False, AMF.CMOF.Public_Visibility));
end Initialize_73;
-------------------
-- Initialize_74 --
-------------------
procedure Initialize_74 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 74, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 74,
AMF.Internals.Tables.DG_String_Data_00.MS_0080'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 74, (False, AMF.CMOF.Public_Visibility));
end Initialize_74;
-------------------
-- Initialize_75 --
-------------------
procedure Initialize_75 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 75, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 75,
AMF.Internals.Tables.DG_String_Data_00.MS_0044'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 75, (False, AMF.CMOF.Public_Visibility));
end Initialize_75;
-------------------
-- Initialize_76 --
-------------------
procedure Initialize_76 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 76, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 76,
AMF.Internals.Tables.DG_String_Data_00.MS_00AF'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 76, (False, AMF.CMOF.Public_Visibility));
end Initialize_76;
-------------------
-- Initialize_77 --
-------------------
procedure Initialize_77 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 77, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 77,
AMF.Internals.Tables.DG_String_Data_00.MS_001D'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 77, (False, AMF.CMOF.Public_Visibility));
end Initialize_77;
-------------------
-- Initialize_78 --
-------------------
procedure Initialize_78 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 78, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 78,
AMF.Internals.Tables.DG_String_Data_00.MS_00A2'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 78, (False, AMF.CMOF.Public_Visibility));
end Initialize_78;
-------------------
-- Initialize_79 --
-------------------
procedure Initialize_79 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Ordered (Base + 79, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Unique (Base + 79, False);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 79, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 79,
AMF.Internals.Tables.DG_String_Data_01.MS_011C'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 79, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 79, (False, AMF.CMOF.Public_Visibility));
end Initialize_79;
-------------------
-- Initialize_80 --
-------------------
procedure Initialize_80 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 80, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 80,
AMF.Internals.Tables.DG_String_Data_00.MS_0034'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 80, (False, AMF.CMOF.Public_Visibility));
end Initialize_80;
-------------------
-- Initialize_81 --
-------------------
procedure Initialize_81 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 81, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 81,
AMF.Internals.Tables.DG_String_Data_00.MS_006D'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 81, (False, AMF.CMOF.Public_Visibility));
end Initialize_81;
-------------------
-- Initialize_82 --
-------------------
procedure Initialize_82 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 82,
AMF.Internals.Tables.DG_String_Data_00.MS_00E1'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 82, (False, AMF.CMOF.Public_Visibility));
end Initialize_82;
-------------------
-- Initialize_83 --
-------------------
procedure Initialize_83 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 83,
AMF.Internals.Tables.DG_String_Data_00.MS_008E'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 83, (False, AMF.CMOF.Public_Visibility));
end Initialize_83;
-------------------
-- Initialize_84 --
-------------------
procedure Initialize_84 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 84,
AMF.Internals.Tables.DG_String_Data_00.MS_00EE'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 84, (False, AMF.CMOF.Public_Visibility));
end Initialize_84;
-------------------
-- Initialize_85 --
-------------------
procedure Initialize_85 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 85,
AMF.Internals.Tables.DG_String_Data_00.MS_00AD'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 85, (False, AMF.CMOF.Private_Visibility));
end Initialize_85;
-------------------
-- Initialize_86 --
-------------------
procedure Initialize_86 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 86, (False, AMF.CMOF.Private_Visibility));
end Initialize_86;
-------------------
-- Initialize_87 --
-------------------
procedure Initialize_87 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 87,
AMF.Internals.Tables.DG_String_Data_01.MS_010F'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 87, (False, AMF.CMOF.Private_Visibility));
end Initialize_87;
-------------------
-- Initialize_88 --
-------------------
procedure Initialize_88 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 88,
AMF.Internals.Tables.DG_String_Data_00.MS_001B'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 88, (False, AMF.CMOF.Private_Visibility));
end Initialize_88;
-------------------
-- Initialize_89 --
-------------------
procedure Initialize_89 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 89,
AMF.Internals.Tables.DG_String_Data_00.MS_002C'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 89, (False, AMF.CMOF.Private_Visibility));
end Initialize_89;
-------------------
-- Initialize_90 --
-------------------
procedure Initialize_90 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 90,
AMF.Internals.Tables.DG_String_Data_00.MS_0069'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 90, (False, AMF.CMOF.Private_Visibility));
end Initialize_90;
-------------------
-- Initialize_91 --
-------------------
procedure Initialize_91 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 91,
AMF.Internals.Tables.DG_String_Data_00.MS_0042'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 91, (False, AMF.CMOF.Private_Visibility));
end Initialize_91;
-------------------
-- Initialize_92 --
-------------------
procedure Initialize_92 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 92,
AMF.Internals.Tables.DG_String_Data_01.MS_0113'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 92, (False, AMF.CMOF.Private_Visibility));
end Initialize_92;
-------------------
-- Initialize_93 --
-------------------
procedure Initialize_93 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 93,
AMF.Internals.Tables.DG_String_Data_00.MS_00EB'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 93, (False, AMF.CMOF.Private_Visibility));
end Initialize_93;
-------------------
-- Initialize_94 --
-------------------
procedure Initialize_94 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 94,
AMF.Internals.Tables.DG_String_Data_00.MS_0068'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 94, (False, AMF.CMOF.Private_Visibility));
end Initialize_94;
-------------------
-- Initialize_95 --
-------------------
procedure Initialize_95 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 95,
AMF.Internals.Tables.DG_String_Data_00.MS_003C'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 95, (False, AMF.CMOF.Private_Visibility));
end Initialize_95;
-------------------
-- Initialize_96 --
-------------------
procedure Initialize_96 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 96,
AMF.Internals.Tables.DG_String_Data_00.MS_004E'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 96, (False, AMF.CMOF.Private_Visibility));
end Initialize_96;
-------------------
-- Initialize_97 --
-------------------
procedure Initialize_97 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 97,
AMF.Internals.Tables.DG_String_Data_00.MS_0055'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 97, (False, AMF.CMOF.Private_Visibility));
end Initialize_97;
-------------------
-- Initialize_98 --
-------------------
procedure Initialize_98 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 98,
AMF.Internals.Tables.DG_String_Data_00.MS_00F8'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Uri
(Base + 98,
AMF.Internals.Tables.DG_String_Data_00.MS_00F7'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 98, (Is_Empty => True));
end Initialize_98;
-------------------
-- Initialize_99 --
-------------------
procedure Initialize_99 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 99,
AMF.Internals.Tables.DG_String_Data_00.MS_0007'Access);
end Initialize_99;
--------------------
-- Initialize_100 --
--------------------
procedure Initialize_100 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 100, AMF.CMOF.Public_Visibility);
end Initialize_100;
--------------------
-- Initialize_101 --
--------------------
procedure Initialize_101 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 101,
AMF.Internals.Tables.DG_String_Data_01.MS_0103'Access);
end Initialize_101;
--------------------
-- Initialize_102 --
--------------------
procedure Initialize_102 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 102,
AMF.Internals.Tables.DG_String_Data_00.MS_0011'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 102, (Is_Empty => True));
end Initialize_102;
--------------------
-- Initialize_103 --
--------------------
procedure Initialize_103 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 103,
AMF.Internals.Tables.DG_String_Data_00.MS_0043'Access);
end Initialize_103;
--------------------
-- Initialize_104 --
--------------------
procedure Initialize_104 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 104, (Is_Empty => True));
end Initialize_104;
--------------------
-- Initialize_105 --
--------------------
procedure Initialize_105 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 105,
AMF.Internals.Tables.DG_String_Data_01.MS_011A'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 105, (Is_Empty => True));
end Initialize_105;
--------------------
-- Initialize_106 --
--------------------
procedure Initialize_106 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 106,
AMF.Internals.Tables.DG_String_Data_00.MS_002A'Access);
end Initialize_106;
--------------------
-- Initialize_107 --
--------------------
procedure Initialize_107 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 107, (Is_Empty => True));
end Initialize_107;
--------------------
-- Initialize_108 --
--------------------
procedure Initialize_108 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 108,
AMF.Internals.Tables.DG_String_Data_00.MS_002B'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 108, (Is_Empty => True));
end Initialize_108;
--------------------
-- Initialize_109 --
--------------------
procedure Initialize_109 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 109,
AMF.Internals.Tables.DG_String_Data_00.MS_0084'Access);
end Initialize_109;
--------------------
-- Initialize_110 --
--------------------
procedure Initialize_110 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 110, (Is_Empty => True));
end Initialize_110;
--------------------
-- Initialize_111 --
--------------------
procedure Initialize_111 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 111,
AMF.Internals.Tables.DG_String_Data_00.MS_00EA'Access);
end Initialize_111;
--------------------
-- Initialize_112 --
--------------------
procedure Initialize_112 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 112,
AMF.Internals.Tables.DG_String_Data_00.MS_003F'Access);
end Initialize_112;
--------------------
-- Initialize_113 --
--------------------
procedure Initialize_113 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 113,
AMF.Internals.Tables.DG_String_Data_00.MS_0065'Access);
end Initialize_113;
--------------------
-- Initialize_114 --
--------------------
procedure Initialize_114 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 114,
AMF.Internals.Tables.DG_String_Data_00.MS_00CB'Access);
end Initialize_114;
--------------------
-- Initialize_115 --
--------------------
procedure Initialize_115 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 115,
AMF.Internals.Tables.DG_String_Data_00.MS_0060'Access);
end Initialize_115;
--------------------
-- Initialize_116 --
--------------------
procedure Initialize_116 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 116,
AMF.Internals.Tables.DG_String_Data_00.MS_004A'Access);
end Initialize_116;
--------------------
-- Initialize_117 --
--------------------
procedure Initialize_117 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 117,
AMF.Internals.Tables.DG_String_Data_00.MS_005A'Access);
end Initialize_117;
--------------------
-- Initialize_118 --
--------------------
procedure Initialize_118 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 118,
AMF.Internals.Tables.DG_String_Data_00.MS_0018'Access);
end Initialize_118;
--------------------
-- Initialize_119 --
--------------------
procedure Initialize_119 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 119,
AMF.Internals.Tables.DG_String_Data_00.MS_0070'Access);
end Initialize_119;
--------------------
-- Initialize_120 --
--------------------
procedure Initialize_120 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 120,
AMF.Internals.Tables.DG_String_Data_00.MS_006C'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 120, (Is_Empty => True));
end Initialize_120;
--------------------
-- Initialize_121 --
--------------------
procedure Initialize_121 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 121,
AMF.Internals.Tables.DG_String_Data_00.MS_0057'Access);
end Initialize_121;
--------------------
-- Initialize_122 --
--------------------
procedure Initialize_122 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 122, (Is_Empty => True));
end Initialize_122;
--------------------
-- Initialize_123 --
--------------------
procedure Initialize_123 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 123,
AMF.Internals.Tables.DG_String_Data_00.MS_00FC'Access);
end Initialize_123;
--------------------
-- Initialize_124 --
--------------------
procedure Initialize_124 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 124,
AMF.Internals.Tables.DG_String_Data_01.MS_0102'Access);
end Initialize_124;
--------------------
-- Initialize_125 --
--------------------
procedure Initialize_125 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 125,
AMF.Internals.Tables.DG_String_Data_00.MS_00C3'Access);
end Initialize_125;
--------------------
-- Initialize_126 --
--------------------
procedure Initialize_126 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 126,
AMF.Internals.Tables.DG_String_Data_01.MS_010E'Access);
end Initialize_126;
--------------------
-- Initialize_127 --
--------------------
procedure Initialize_127 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 127,
AMF.Internals.Tables.DG_String_Data_00.MS_0092'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 127, (Is_Empty => True));
end Initialize_127;
--------------------
-- Initialize_128 --
--------------------
procedure Initialize_128 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 128,
AMF.Internals.Tables.DG_String_Data_00.MS_00C0'Access);
end Initialize_128;
--------------------
-- Initialize_129 --
--------------------
procedure Initialize_129 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 129,
AMF.Internals.Tables.DG_String_Data_00.MS_008D'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 129, (Is_Empty => True));
end Initialize_129;
--------------------
-- Initialize_130 --
--------------------
procedure Initialize_130 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 130,
AMF.Internals.Tables.DG_String_Data_00.MS_0020'Access);
end Initialize_130;
--------------------
-- Initialize_131 --
--------------------
procedure Initialize_131 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 131, (Is_Empty => True));
end Initialize_131;
--------------------
-- Initialize_132 --
--------------------
procedure Initialize_132 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 132,
AMF.Internals.Tables.DG_String_Data_00.MS_00F1'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 132, (Is_Empty => True));
end Initialize_132;
--------------------
-- Initialize_133 --
--------------------
procedure Initialize_133 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 133,
AMF.Internals.Tables.DG_String_Data_00.MS_002E'Access);
end Initialize_133;
--------------------
-- Initialize_134 --
--------------------
procedure Initialize_134 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 134, (Is_Empty => True));
end Initialize_134;
--------------------
-- Initialize_135 --
--------------------
procedure Initialize_135 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 135,
AMF.Internals.Tables.DG_String_Data_00.MS_00EC'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 135, (False, AMF.CMOF.Public_Visibility));
end Initialize_135;
--------------------
-- Initialize_136 --
--------------------
procedure Initialize_136 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 136,
AMF.Internals.Tables.DG_String_Data_00.MS_00BB'Access);
end Initialize_136;
--------------------
-- Initialize_137 --
--------------------
procedure Initialize_137 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 137,
AMF.Internals.Tables.DG_String_Data_00.MS_00F9'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 137, (False, AMF.CMOF.Public_Visibility));
end Initialize_137;
--------------------
-- Initialize_138 --
--------------------
procedure Initialize_138 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 138,
AMF.Internals.Tables.DG_String_Data_01.MS_0123'Access);
end Initialize_138;
--------------------
-- Initialize_139 --
--------------------
procedure Initialize_139 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Default
(Base + 139,
AMF.Internals.Tables.DG_String_Data_00.MS_0037'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 139,
AMF.Internals.Tables.DG_String_Data_00.MS_0000'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 139, (False, AMF.CMOF.Public_Visibility));
end Initialize_139;
--------------------
-- Initialize_140 --
--------------------
procedure Initialize_140 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 140,
AMF.Internals.Tables.DG_String_Data_00.MS_0051'Access);
end Initialize_140;
--------------------
-- Initialize_141 --
--------------------
procedure Initialize_141 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 141,
AMF.Internals.Tables.DG_String_Data_00.MS_000A'Access);
end Initialize_141;
--------------------
-- Initialize_142 --
--------------------
procedure Initialize_142 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 142,
AMF.Internals.Tables.DG_String_Data_00.MS_001C'Access);
end Initialize_142;
--------------------
-- Initialize_143 --
--------------------
procedure Initialize_143 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 143,
AMF.Internals.Tables.DG_String_Data_00.MS_0082'Access);
end Initialize_143;
--------------------
-- Initialize_144 --
--------------------
procedure Initialize_144 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 144,
AMF.Internals.Tables.DG_String_Data_00.MS_000B'Access);
end Initialize_144;
--------------------
-- Initialize_145 --
--------------------
procedure Initialize_145 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 145,
AMF.Internals.Tables.DG_String_Data_00.MS_0050'Access);
end Initialize_145;
--------------------
-- Initialize_146 --
--------------------
procedure Initialize_146 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 146,
AMF.Internals.Tables.DG_String_Data_00.MS_00E6'Access);
end Initialize_146;
--------------------
-- Initialize_147 --
--------------------
procedure Initialize_147 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 147,
AMF.Internals.Tables.DG_String_Data_00.MS_00A6'Access);
end Initialize_147;
--------------------
-- Initialize_148 --
--------------------
procedure Initialize_148 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 148,
AMF.Internals.Tables.DG_String_Data_01.MS_0115'Access);
end Initialize_148;
--------------------
-- Initialize_149 --
--------------------
procedure Initialize_149 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 149,
AMF.Internals.Tables.DG_String_Data_00.MS_0038'Access);
end Initialize_149;
--------------------
-- Initialize_150 --
--------------------
procedure Initialize_150 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 150,
AMF.Internals.Tables.DG_String_Data_00.MS_007D'Access);
end Initialize_150;
--------------------
-- Initialize_151 --
--------------------
procedure Initialize_151 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 151,
AMF.Internals.Tables.DG_String_Data_00.MS_00E8'Access);
end Initialize_151;
--------------------
-- Initialize_152 --
--------------------
procedure Initialize_152 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 152,
AMF.Internals.Tables.DG_String_Data_01.MS_0109'Access);
end Initialize_152;
--------------------
-- Initialize_153 --
--------------------
procedure Initialize_153 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 153,
AMF.Internals.Tables.DG_String_Data_00.MS_00D2'Access);
end Initialize_153;
--------------------
-- Initialize_154 --
--------------------
procedure Initialize_154 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 154,
AMF.Internals.Tables.DG_String_Data_00.MS_009F'Access);
end Initialize_154;
--------------------
-- Initialize_155 --
--------------------
procedure Initialize_155 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 155,
AMF.Internals.Tables.DG_String_Data_00.MS_00AC'Access);
end Initialize_155;
--------------------
-- Initialize_156 --
--------------------
procedure Initialize_156 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 156,
AMF.Internals.Tables.DG_String_Data_00.MS_0049'Access);
end Initialize_156;
--------------------
-- Initialize_157 --
--------------------
procedure Initialize_157 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 157,
AMF.Internals.Tables.DG_String_Data_00.MS_0074'Access);
end Initialize_157;
--------------------
-- Initialize_158 --
--------------------
procedure Initialize_158 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 158,
AMF.Internals.Tables.DG_String_Data_00.MS_0058'Access);
end Initialize_158;
--------------------
-- Initialize_159 --
--------------------
procedure Initialize_159 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 159,
AMF.Internals.Tables.DG_String_Data_01.MS_0116'Access);
end Initialize_159;
--------------------
-- Initialize_160 --
--------------------
procedure Initialize_160 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 160,
AMF.Internals.Tables.DG_String_Data_00.MS_00DC'Access);
end Initialize_160;
--------------------
-- Initialize_161 --
--------------------
procedure Initialize_161 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 161,
AMF.Internals.Tables.DG_String_Data_00.MS_00D6'Access);
end Initialize_161;
--------------------
-- Initialize_162 --
--------------------
procedure Initialize_162 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 162,
AMF.Internals.Tables.DG_String_Data_00.MS_00E0'Access);
end Initialize_162;
--------------------
-- Initialize_163 --
--------------------
procedure Initialize_163 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 163,
AMF.Internals.Tables.DG_String_Data_00.MS_00B7'Access);
end Initialize_163;
--------------------
-- Initialize_164 --
--------------------
procedure Initialize_164 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 164,
AMF.Internals.Tables.DG_String_Data_00.MS_007A'Access);
end Initialize_164;
--------------------
-- Initialize_165 --
--------------------
procedure Initialize_165 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 165,
AMF.Internals.Tables.DG_String_Data_00.MS_00A3'Access);
end Initialize_165;
--------------------
-- Initialize_166 --
--------------------
procedure Initialize_166 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 166,
AMF.Internals.Tables.DG_String_Data_00.MS_006A'Access);
end Initialize_166;
--------------------
-- Initialize_167 --
--------------------
procedure Initialize_167 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 167,
AMF.Internals.Tables.DG_String_Data_00.MS_00E3'Access);
end Initialize_167;
--------------------
-- Initialize_168 --
--------------------
procedure Initialize_168 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 168,
AMF.Internals.Tables.DG_String_Data_00.MS_00B4'Access);
end Initialize_168;
--------------------
-- Initialize_169 --
--------------------
procedure Initialize_169 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 169,
AMF.Internals.Tables.DG_String_Data_00.MS_0077'Access);
end Initialize_169;
--------------------
-- Initialize_170 --
--------------------
procedure Initialize_170 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 170,
AMF.Internals.Tables.DG_String_Data_00.MS_0012'Access);
end Initialize_170;
--------------------
-- Initialize_171 --
--------------------
procedure Initialize_171 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 171,
AMF.Internals.Tables.DG_String_Data_00.MS_0028'Access);
end Initialize_171;
--------------------
-- Initialize_172 --
--------------------
procedure Initialize_172 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 172,
AMF.Internals.Tables.DG_String_Data_00.MS_00DA'Access);
end Initialize_172;
--------------------
-- Initialize_173 --
--------------------
procedure Initialize_173 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 173,
AMF.Internals.Tables.DG_String_Data_00.MS_0063'Access);
end Initialize_173;
--------------------
-- Initialize_174 --
--------------------
procedure Initialize_174 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 174,
AMF.Internals.Tables.DG_String_Data_00.MS_00F2'Access);
end Initialize_174;
--------------------
-- Initialize_175 --
--------------------
procedure Initialize_175 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 175,
AMF.Internals.Tables.DG_String_Data_00.MS_0008'Access);
end Initialize_175;
--------------------
-- Initialize_176 --
--------------------
procedure Initialize_176 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 176,
AMF.Internals.Tables.DG_String_Data_00.MS_0004'Access);
end Initialize_176;
--------------------
-- Initialize_177 --
--------------------
procedure Initialize_177 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 177,
AMF.Internals.Tables.DG_String_Data_00.MS_005D'Access);
end Initialize_177;
--------------------
-- Initialize_178 --
--------------------
procedure Initialize_178 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 178,
AMF.Internals.Tables.DG_String_Data_00.MS_00BA'Access);
end Initialize_178;
--------------------
-- Initialize_179 --
--------------------
procedure Initialize_179 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 179,
AMF.Internals.Tables.DG_String_Data_00.MS_00FB'Access);
end Initialize_179;
--------------------
-- Initialize_180 --
--------------------
procedure Initialize_180 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 180,
AMF.Internals.Tables.DG_String_Data_00.MS_0061'Access);
end Initialize_180;
--------------------
-- Initialize_181 --
--------------------
procedure Initialize_181 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 181,
AMF.Internals.Tables.DG_String_Data_00.MS_001F'Access);
end Initialize_181;
--------------------
-- Initialize_182 --
--------------------
procedure Initialize_182 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 182,
AMF.Internals.Tables.DG_String_Data_00.MS_00CE'Access);
end Initialize_182;
--------------------
-- Initialize_183 --
--------------------
procedure Initialize_183 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 183,
AMF.Internals.Tables.DG_String_Data_00.MS_005B'Access);
end Initialize_183;
--------------------
-- Initialize_184 --
--------------------
procedure Initialize_184 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 184,
AMF.Internals.Tables.DG_String_Data_00.MS_003D'Access);
end Initialize_184;
--------------------
-- Initialize_185 --
--------------------
procedure Initialize_185 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 185,
AMF.Internals.Tables.DG_String_Data_00.MS_0071'Access);
end Initialize_185;
--------------------
-- Initialize_186 --
--------------------
procedure Initialize_186 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 186,
AMF.Internals.Tables.DG_String_Data_01.MS_0104'Access);
end Initialize_186;
--------------------
-- Initialize_187 --
--------------------
procedure Initialize_187 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 187,
AMF.Internals.Tables.DG_String_Data_00.MS_00B5'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 187, (Is_Empty => True));
end Initialize_187;
--------------------
-- Initialize_188 --
--------------------
procedure Initialize_188 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 188,
AMF.Internals.Tables.DG_String_Data_00.MS_001A'Access);
end Initialize_188;
--------------------
-- Initialize_189 --
--------------------
procedure Initialize_189 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 189,
AMF.Internals.Tables.DG_String_Data_00.MS_00C9'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 189, (Is_Empty => True));
end Initialize_189;
--------------------
-- Initialize_190 --
--------------------
procedure Initialize_190 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 190,
AMF.Internals.Tables.DG_String_Data_00.MS_008C'Access);
end Initialize_190;
--------------------
-- Initialize_191 --
--------------------
procedure Initialize_191 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 191,
AMF.Internals.Tables.DG_String_Data_00.MS_00A0'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 191, (False, AMF.CMOF.Public_Visibility));
end Initialize_191;
--------------------
-- Initialize_192 --
--------------------
procedure Initialize_192 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 192,
AMF.Internals.Tables.DG_String_Data_00.MS_001E'Access);
end Initialize_192;
--------------------
-- Initialize_193 --
--------------------
procedure Initialize_193 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 193,
AMF.Internals.Tables.DG_String_Data_00.MS_009E'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 193, (False, AMF.CMOF.Public_Visibility));
end Initialize_193;
--------------------
-- Initialize_194 --
--------------------
procedure Initialize_194 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 194,
AMF.Internals.Tables.DG_String_Data_00.MS_00B6'Access);
end Initialize_194;
--------------------
-- Initialize_195 --
--------------------
procedure Initialize_195 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 195,
AMF.Internals.Tables.DG_String_Data_00.MS_0088'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 195, (Is_Empty => True));
end Initialize_195;
--------------------
-- Initialize_196 --
--------------------
procedure Initialize_196 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 196,
AMF.Internals.Tables.DG_String_Data_00.MS_0009'Access);
end Initialize_196;
--------------------
-- Initialize_197 --
--------------------
procedure Initialize_197 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 197,
AMF.Internals.Tables.DG_String_Data_00.MS_00C7'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 197, (Is_Empty => True));
end Initialize_197;
--------------------
-- Initialize_198 --
--------------------
procedure Initialize_198 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 198,
AMF.Internals.Tables.DG_String_Data_01.MS_0112'Access);
end Initialize_198;
--------------------
-- Initialize_199 --
--------------------
procedure Initialize_199 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 199, (Is_Empty => True));
end Initialize_199;
--------------------
-- Initialize_200 --
--------------------
procedure Initialize_200 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 200,
AMF.Internals.Tables.DG_String_Data_00.MS_00ED'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 200, (False, AMF.CMOF.Public_Visibility));
end Initialize_200;
--------------------
-- Initialize_201 --
--------------------
procedure Initialize_201 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 201,
AMF.Internals.Tables.DG_String_Data_00.MS_00FA'Access);
end Initialize_201;
--------------------
-- Initialize_202 --
--------------------
procedure Initialize_202 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 202,
AMF.Internals.Tables.DG_String_Data_00.MS_0087'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 202, (False, AMF.CMOF.Public_Visibility));
end Initialize_202;
--------------------
-- Initialize_203 --
--------------------
procedure Initialize_203 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 203,
AMF.Internals.Tables.DG_String_Data_00.MS_0053'Access);
end Initialize_203;
--------------------
-- Initialize_204 --
--------------------
procedure Initialize_204 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 204,
AMF.Internals.Tables.DG_String_Data_01.MS_0110'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 204, (Is_Empty => True));
end Initialize_204;
--------------------
-- Initialize_205 --
--------------------
procedure Initialize_205 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 205,
AMF.Internals.Tables.DG_String_Data_00.MS_00AB'Access);
end Initialize_205;
--------------------
-- Initialize_206 --
--------------------
procedure Initialize_206 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 206,
AMF.Internals.Tables.DG_String_Data_01.MS_010B'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 206, (False, AMF.CMOF.Public_Visibility));
end Initialize_206;
--------------------
-- Initialize_207 --
--------------------
procedure Initialize_207 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 207,
AMF.Internals.Tables.DG_String_Data_00.MS_004D'Access);
end Initialize_207;
--------------------
-- Initialize_208 --
--------------------
procedure Initialize_208 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 208, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 208,
AMF.Internals.Tables.DG_String_Data_00.MS_00BE'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 208, (False, AMF.CMOF.Public_Visibility));
end Initialize_208;
--------------------
-- Initialize_209 --
--------------------
procedure Initialize_209 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 209,
AMF.Internals.Tables.DG_String_Data_00.MS_0045'Access);
end Initialize_209;
--------------------
-- Initialize_210 --
--------------------
procedure Initialize_210 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 210, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 210,
AMF.Internals.Tables.DG_String_Data_00.MS_004C'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 210, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 210, (False, AMF.CMOF.Public_Visibility));
end Initialize_210;
--------------------
-- Initialize_211 --
--------------------
procedure Initialize_211 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 211, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 211,
AMF.Internals.Tables.DG_String_Data_00.MS_004C'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 211, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 211, (False, AMF.CMOF.Public_Visibility));
end Initialize_211;
--------------------
-- Initialize_212 --
--------------------
procedure Initialize_212 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 212,
AMF.Internals.Tables.DG_String_Data_00.MS_0015'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 212, (Is_Empty => True));
end Initialize_212;
--------------------
-- Initialize_213 --
--------------------
procedure Initialize_213 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 213,
AMF.Internals.Tables.DG_String_Data_00.MS_0041'Access);
end Initialize_213;
--------------------
-- Initialize_214 --
--------------------
procedure Initialize_214 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 214,
AMF.Internals.Tables.DG_String_Data_00.MS_00B8'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 214, (False, AMF.CMOF.Public_Visibility));
end Initialize_214;
--------------------
-- Initialize_215 --
--------------------
procedure Initialize_215 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 215,
AMF.Internals.Tables.DG_String_Data_00.MS_0093'Access);
end Initialize_215;
--------------------
-- Initialize_216 --
--------------------
procedure Initialize_216 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 216,
AMF.Internals.Tables.DG_String_Data_00.MS_00F0'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 216, (False, AMF.CMOF.Public_Visibility));
end Initialize_216;
--------------------
-- Initialize_217 --
--------------------
procedure Initialize_217 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 217,
AMF.Internals.Tables.DG_String_Data_00.MS_0032'Access);
end Initialize_217;
--------------------
-- Initialize_218 --
--------------------
procedure Initialize_218 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 218, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 218,
AMF.Internals.Tables.DG_String_Data_00.MS_004C'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 218, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 218, (False, AMF.CMOF.Public_Visibility));
end Initialize_218;
--------------------
-- Initialize_219 --
--------------------
procedure Initialize_219 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 219,
AMF.Internals.Tables.DG_String_Data_00.MS_000F'Access);
end Initialize_219;
--------------------
-- Initialize_220 --
--------------------
procedure Initialize_220 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 220,
AMF.Internals.Tables.DG_String_Data_00.MS_0078'Access);
end Initialize_220;
--------------------
-- Initialize_221 --
--------------------
procedure Initialize_221 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 221,
AMF.Internals.Tables.DG_String_Data_00.MS_00E7'Access);
end Initialize_221;
--------------------
-- Initialize_222 --
--------------------
procedure Initialize_222 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 222,
AMF.Internals.Tables.DG_String_Data_00.MS_0040'Access);
end Initialize_222;
--------------------
-- Initialize_223 --
--------------------
procedure Initialize_223 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 223,
AMF.Internals.Tables.DG_String_Data_00.MS_00D8'Access);
end Initialize_223;
--------------------
-- Initialize_224 --
--------------------
procedure Initialize_224 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 224,
AMF.Internals.Tables.DG_String_Data_00.MS_0094'Access);
end Initialize_224;
--------------------
-- Initialize_225 --
--------------------
procedure Initialize_225 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 225,
AMF.Internals.Tables.DG_String_Data_00.MS_00C6'Access);
end Initialize_225;
--------------------
-- Initialize_226 --
--------------------
procedure Initialize_226 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 226,
AMF.Internals.Tables.DG_String_Data_00.MS_0024'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 226, (Is_Empty => True));
end Initialize_226;
--------------------
-- Initialize_227 --
--------------------
procedure Initialize_227 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 227,
AMF.Internals.Tables.DG_String_Data_00.MS_00B2'Access);
end Initialize_227;
--------------------
-- Initialize_228 --
--------------------
procedure Initialize_228 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 228, (Is_Empty => True));
end Initialize_228;
--------------------
-- Initialize_229 --
--------------------
procedure Initialize_229 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 229,
AMF.Internals.Tables.DG_String_Data_01.MS_0111'Access);
end Initialize_229;
--------------------
-- Initialize_230 --
--------------------
procedure Initialize_230 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 230,
AMF.Internals.Tables.DG_String_Data_00.MS_00BC'Access);
end Initialize_230;
--------------------
-- Initialize_231 --
--------------------
procedure Initialize_231 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 231,
AMF.Internals.Tables.DG_String_Data_00.MS_00CC'Access);
end Initialize_231;
--------------------
-- Initialize_232 --
--------------------
procedure Initialize_232 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 232,
AMF.Internals.Tables.DG_String_Data_00.MS_00D5'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 232, (Is_Empty => True));
end Initialize_232;
--------------------
-- Initialize_233 --
--------------------
procedure Initialize_233 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 233,
AMF.Internals.Tables.DG_String_Data_00.MS_006E'Access);
end Initialize_233;
--------------------
-- Initialize_234 --
--------------------
procedure Initialize_234 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 234, (Is_Empty => True));
end Initialize_234;
--------------------
-- Initialize_235 --
--------------------
procedure Initialize_235 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 235,
AMF.Internals.Tables.DG_String_Data_00.MS_0031'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 235, (Is_Empty => True));
end Initialize_235;
--------------------
-- Initialize_236 --
--------------------
procedure Initialize_236 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 236,
AMF.Internals.Tables.DG_String_Data_00.MS_00E4'Access);
end Initialize_236;
--------------------
-- Initialize_237 --
--------------------
procedure Initialize_237 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 237, (Is_Empty => True));
end Initialize_237;
--------------------
-- Initialize_238 --
--------------------
procedure Initialize_238 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 238,
AMF.Internals.Tables.DG_String_Data_00.MS_0035'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 238, (Is_Empty => True));
end Initialize_238;
--------------------
-- Initialize_239 --
--------------------
procedure Initialize_239 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 239,
AMF.Internals.Tables.DG_String_Data_00.MS_00E4'Access);
end Initialize_239;
--------------------
-- Initialize_240 --
--------------------
procedure Initialize_240 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 240, (Is_Empty => True));
end Initialize_240;
--------------------
-- Initialize_241 --
--------------------
procedure Initialize_241 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 241,
AMF.Internals.Tables.DG_String_Data_00.MS_005E'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 241, (Is_Empty => True));
end Initialize_241;
--------------------
-- Initialize_242 --
--------------------
procedure Initialize_242 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 242,
AMF.Internals.Tables.DG_String_Data_00.MS_008A'Access);
end Initialize_242;
--------------------
-- Initialize_243 --
--------------------
procedure Initialize_243 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 243, (Is_Empty => True));
end Initialize_243;
--------------------
-- Initialize_244 --
--------------------
procedure Initialize_244 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 244,
AMF.Internals.Tables.DG_String_Data_00.MS_0076'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 244, (Is_Empty => True));
end Initialize_244;
--------------------
-- Initialize_245 --
--------------------
procedure Initialize_245 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 245,
AMF.Internals.Tables.DG_String_Data_00.MS_0005'Access);
end Initialize_245;
--------------------
-- Initialize_246 --
--------------------
procedure Initialize_246 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 246, (Is_Empty => True));
end Initialize_246;
--------------------
-- Initialize_247 --
--------------------
procedure Initialize_247 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 247,
AMF.Internals.Tables.DG_String_Data_01.MS_0106'Access);
end Initialize_247;
--------------------
-- Initialize_248 --
--------------------
procedure Initialize_248 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 248,
AMF.Internals.Tables.DG_String_Data_00.MS_00C5'Access);
end Initialize_248;
--------------------
-- Initialize_249 --
--------------------
procedure Initialize_249 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 249,
AMF.Internals.Tables.DG_String_Data_00.MS_005C'Access);
end Initialize_249;
--------------------
-- Initialize_250 --
--------------------
procedure Initialize_250 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 250,
AMF.Internals.Tables.DG_String_Data_00.MS_00DF'Access);
end Initialize_250;
--------------------
-- Initialize_251 --
--------------------
procedure Initialize_251 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 251,
AMF.Internals.Tables.DG_String_Data_01.MS_0105'Access);
end Initialize_251;
--------------------
-- Initialize_252 --
--------------------
procedure Initialize_252 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 252,
AMF.Internals.Tables.DG_String_Data_00.MS_006B'Access);
end Initialize_252;
--------------------
-- Initialize_253 --
--------------------
procedure Initialize_253 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 253,
AMF.Internals.Tables.DG_String_Data_00.MS_0030'Access);
end Initialize_253;
--------------------
-- Initialize_254 --
--------------------
procedure Initialize_254 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 254,
AMF.Internals.Tables.DG_String_Data_00.MS_0089'Access);
end Initialize_254;
--------------------
-- Initialize_255 --
--------------------
procedure Initialize_255 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 255,
AMF.Internals.Tables.DG_String_Data_00.MS_007E'Access);
end Initialize_255;
--------------------
-- Initialize_256 --
--------------------
procedure Initialize_256 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 256,
AMF.Internals.Tables.DG_String_Data_00.MS_0003'Access);
end Initialize_256;
--------------------
-- Initialize_257 --
--------------------
procedure Initialize_257 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 257,
AMF.Internals.Tables.DG_String_Data_00.MS_00B0'Access);
end Initialize_257;
--------------------
-- Initialize_258 --
--------------------
procedure Initialize_258 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 258,
AMF.Internals.Tables.DG_String_Data_00.MS_00F6'Access);
end Initialize_258;
--------------------
-- Initialize_259 --
--------------------
procedure Initialize_259 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 259,
AMF.Internals.Tables.DG_String_Data_00.MS_00B9'Access);
end Initialize_259;
--------------------
-- Initialize_260 --
--------------------
procedure Initialize_260 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 260,
AMF.Internals.Tables.DG_String_Data_00.MS_0091'Access);
end Initialize_260;
--------------------
-- Initialize_261 --
--------------------
procedure Initialize_261 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 261, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 261,
AMF.Internals.Tables.DG_String_Data_00.MS_00F5'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 261, (False, AMF.CMOF.Public_Visibility));
end Initialize_261;
--------------------
-- Initialize_262 --
--------------------
procedure Initialize_262 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 262,
AMF.Internals.Tables.DG_String_Data_00.MS_0021'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 262, (Is_Empty => True));
end Initialize_262;
--------------------
-- Initialize_263 --
--------------------
procedure Initialize_263 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 263,
AMF.Internals.Tables.DG_String_Data_00.MS_0075'Access);
end Initialize_263;
--------------------
-- Initialize_264 --
--------------------
procedure Initialize_264 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 264,
AMF.Internals.Tables.DG_String_Data_01.MS_0101'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 264, (False, AMF.CMOF.Public_Visibility));
end Initialize_264;
--------------------
-- Initialize_265 --
--------------------
procedure Initialize_265 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 265,
AMF.Internals.Tables.DG_String_Data_00.MS_00D1'Access);
end Initialize_265;
--------------------
-- Initialize_266 --
--------------------
procedure Initialize_266 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 266,
AMF.Internals.Tables.DG_String_Data_00.MS_009B'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 266, (False, AMF.CMOF.Public_Visibility));
end Initialize_266;
--------------------
-- Initialize_267 --
--------------------
procedure Initialize_267 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 267,
AMF.Internals.Tables.DG_String_Data_00.MS_002F'Access);
end Initialize_267;
--------------------
-- Initialize_268 --
--------------------
procedure Initialize_268 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 268,
AMF.Internals.Tables.DG_String_Data_00.MS_00C1'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 268, (False, AMF.CMOF.Public_Visibility));
end Initialize_268;
--------------------
-- Initialize_269 --
--------------------
procedure Initialize_269 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 269,
AMF.Internals.Tables.DG_String_Data_00.MS_000C'Access);
end Initialize_269;
--------------------
-- Initialize_270 --
--------------------
procedure Initialize_270 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 270,
AMF.Internals.Tables.DG_String_Data_00.MS_0002'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 270, (False, AMF.CMOF.Public_Visibility));
end Initialize_270;
--------------------
-- Initialize_271 --
--------------------
procedure Initialize_271 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 271,
AMF.Internals.Tables.DG_String_Data_00.MS_00DD'Access);
end Initialize_271;
--------------------
-- Initialize_272 --
--------------------
procedure Initialize_272 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 272,
AMF.Internals.Tables.DG_String_Data_00.MS_00C8'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 272, (False, AMF.CMOF.Public_Visibility));
end Initialize_272;
--------------------
-- Initialize_273 --
--------------------
procedure Initialize_273 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 273,
AMF.Internals.Tables.DG_String_Data_00.MS_0010'Access);
end Initialize_273;
--------------------
-- Initialize_274 --
--------------------
procedure Initialize_274 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 274,
AMF.Internals.Tables.DG_String_Data_01.MS_0118'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 274, (False, AMF.CMOF.Public_Visibility));
end Initialize_274;
--------------------
-- Initialize_275 --
--------------------
procedure Initialize_275 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 275,
AMF.Internals.Tables.DG_String_Data_00.MS_00C4'Access);
end Initialize_275;
--------------------
-- Initialize_276 --
--------------------
procedure Initialize_276 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 276,
AMF.Internals.Tables.DG_String_Data_00.MS_00AA'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 276, (Is_Empty => True));
end Initialize_276;
--------------------
-- Initialize_277 --
--------------------
procedure Initialize_277 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 277,
AMF.Internals.Tables.DG_String_Data_00.MS_009A'Access);
end Initialize_277;
--------------------
-- Initialize_278 --
--------------------
procedure Initialize_278 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Default
(Base + 278,
AMF.Internals.Tables.DG_String_Data_00.MS_0090'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 278,
AMF.Internals.Tables.DG_String_Data_00.MS_007F'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 278, (False, AMF.CMOF.Public_Visibility));
end Initialize_278;
--------------------
-- Initialize_279 --
--------------------
procedure Initialize_279 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 279,
AMF.Internals.Tables.DG_String_Data_00.MS_000D'Access);
end Initialize_279;
--------------------
-- Initialize_280 --
--------------------
procedure Initialize_280 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 280,
AMF.Internals.Tables.DG_String_Data_00.MS_0059'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 280, (Is_Empty => True));
end Initialize_280;
--------------------
-- Initialize_281 --
--------------------
procedure Initialize_281 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 281,
AMF.Internals.Tables.DG_String_Data_00.MS_0054'Access);
end Initialize_281;
--------------------
-- Initialize_282 --
--------------------
procedure Initialize_282 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 282,
AMF.Internals.Tables.DG_String_Data_00.MS_00FF'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 282, (False, AMF.CMOF.Public_Visibility));
end Initialize_282;
--------------------
-- Initialize_283 --
--------------------
procedure Initialize_283 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 283,
AMF.Internals.Tables.DG_String_Data_00.MS_0013'Access);
end Initialize_283;
--------------------
-- Initialize_284 --
--------------------
procedure Initialize_284 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 284,
AMF.Internals.Tables.DG_String_Data_01.MS_0100'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 284, (Is_Empty => True));
end Initialize_284;
--------------------
-- Initialize_285 --
--------------------
procedure Initialize_285 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 285,
AMF.Internals.Tables.DG_String_Data_00.MS_00FE'Access);
end Initialize_285;
--------------------
-- Initialize_286 --
--------------------
procedure Initialize_286 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 286,
AMF.Internals.Tables.DG_String_Data_00.MS_00FF'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 286, (False, AMF.CMOF.Public_Visibility));
end Initialize_286;
--------------------
-- Initialize_287 --
--------------------
procedure Initialize_287 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 287,
AMF.Internals.Tables.DG_String_Data_00.MS_003E'Access);
end Initialize_287;
--------------------
-- Initialize_288 --
--------------------
procedure Initialize_288 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 288,
AMF.Internals.Tables.DG_String_Data_01.MS_011E'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 288, (Is_Empty => True));
end Initialize_288;
--------------------
-- Initialize_289 --
--------------------
procedure Initialize_289 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 289,
AMF.Internals.Tables.DG_String_Data_00.MS_006F'Access);
end Initialize_289;
--------------------
-- Initialize_290 --
--------------------
procedure Initialize_290 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 290,
AMF.Internals.Tables.DG_String_Data_00.MS_00FF'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 290, (False, AMF.CMOF.Public_Visibility));
end Initialize_290;
--------------------
-- Initialize_291 --
--------------------
procedure Initialize_291 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 291,
AMF.Internals.Tables.DG_String_Data_00.MS_00CF'Access);
end Initialize_291;
--------------------
-- Initialize_292 --
--------------------
procedure Initialize_292 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 292,
AMF.Internals.Tables.DG_String_Data_00.MS_0026'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 292, (False, AMF.CMOF.Public_Visibility));
end Initialize_292;
--------------------
-- Initialize_293 --
--------------------
procedure Initialize_293 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 293,
AMF.Internals.Tables.DG_String_Data_00.MS_0097'Access);
end Initialize_293;
--------------------
-- Initialize_294 --
--------------------
procedure Initialize_294 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 294,
AMF.Internals.Tables.DG_String_Data_00.MS_00C2'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 294, (False, AMF.CMOF.Public_Visibility));
end Initialize_294;
--------------------
-- Initialize_295 --
--------------------
procedure Initialize_295 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 295,
AMF.Internals.Tables.DG_String_Data_00.MS_00DB'Access);
end Initialize_295;
--------------------
-- Initialize_296 --
--------------------
procedure Initialize_296 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 296,
AMF.Internals.Tables.DG_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 296, (Is_Empty => True));
end Initialize_296;
--------------------
-- Initialize_297 --
--------------------
procedure Initialize_297 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 297,
AMF.Internals.Tables.DG_String_Data_00.MS_0001'Access);
end Initialize_297;
--------------------
-- Initialize_298 --
--------------------
procedure Initialize_298 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 298,
AMF.Internals.Tables.DG_String_Data_00.MS_00FF'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 298, (False, AMF.CMOF.Public_Visibility));
end Initialize_298;
--------------------
-- Initialize_299 --
--------------------
procedure Initialize_299 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 299,
AMF.Internals.Tables.DG_String_Data_00.MS_004B'Access);
end Initialize_299;
--------------------
-- Initialize_300 --
--------------------
procedure Initialize_300 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 300,
AMF.Internals.Tables.DG_String_Data_00.MS_00D9'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 300, (False, AMF.CMOF.Public_Visibility));
end Initialize_300;
--------------------
-- Initialize_301 --
--------------------
procedure Initialize_301 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 301,
AMF.Internals.Tables.DG_String_Data_00.MS_004F'Access);
end Initialize_301;
--------------------
-- Initialize_302 --
--------------------
procedure Initialize_302 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 302,
AMF.Internals.Tables.DG_String_Data_00.MS_00D0'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 302, (Is_Empty => True));
end Initialize_302;
--------------------
-- Initialize_303 --
--------------------
procedure Initialize_303 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 303,
AMF.Internals.Tables.DG_String_Data_00.MS_0064'Access);
end Initialize_303;
--------------------
-- Initialize_304 --
--------------------
procedure Initialize_304 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 304,
AMF.Internals.Tables.DG_String_Data_00.MS_00FF'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 304, (False, AMF.CMOF.Public_Visibility));
end Initialize_304;
--------------------
-- Initialize_305 --
--------------------
procedure Initialize_305 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 305,
AMF.Internals.Tables.DG_String_Data_00.MS_0099'Access);
end Initialize_305;
--------------------
-- Initialize_306 --
--------------------
procedure Initialize_306 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 306,
AMF.Internals.Tables.DG_String_Data_00.MS_0036'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 306, (False, AMF.CMOF.Public_Visibility));
end Initialize_306;
--------------------
-- Initialize_307 --
--------------------
procedure Initialize_307 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 307,
AMF.Internals.Tables.DG_String_Data_00.MS_0062'Access);
end Initialize_307;
--------------------
-- Initialize_308 --
--------------------
procedure Initialize_308 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 308,
AMF.Internals.Tables.DG_String_Data_00.MS_00D4'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 308, (False, AMF.CMOF.Public_Visibility));
end Initialize_308;
--------------------
-- Initialize_309 --
--------------------
procedure Initialize_309 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 309,
AMF.Internals.Tables.DG_String_Data_00.MS_0073'Access);
end Initialize_309;
--------------------
-- Initialize_310 --
--------------------
procedure Initialize_310 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 310,
AMF.Internals.Tables.DG_String_Data_00.MS_0052'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 310, (False, AMF.CMOF.Public_Visibility));
end Initialize_310;
--------------------
-- Initialize_311 --
--------------------
procedure Initialize_311 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 311,
AMF.Internals.Tables.DG_String_Data_00.MS_008B'Access);
end Initialize_311;
--------------------
-- Initialize_312 --
--------------------
procedure Initialize_312 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 312,
AMF.Internals.Tables.DG_String_Data_00.MS_00FD'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 312, (False, AMF.CMOF.Public_Visibility));
end Initialize_312;
--------------------
-- Initialize_313 --
--------------------
procedure Initialize_313 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 313,
AMF.Internals.Tables.DG_String_Data_00.MS_0083'Access);
end Initialize_313;
--------------------
-- Initialize_314 --
--------------------
procedure Initialize_314 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 314,
AMF.Internals.Tables.DG_String_Data_01.MS_011B'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 314, (Is_Empty => True));
end Initialize_314;
--------------------
-- Initialize_315 --
--------------------
procedure Initialize_315 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 315,
AMF.Internals.Tables.DG_String_Data_00.MS_00D3'Access);
end Initialize_315;
--------------------
-- Initialize_316 --
--------------------
procedure Initialize_316 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 316, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 316,
AMF.Internals.Tables.DG_String_Data_00.MS_009C'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 316, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 316, (False, AMF.CMOF.Public_Visibility));
end Initialize_316;
--------------------
-- Initialize_317 --
--------------------
procedure Initialize_317 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 317, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 317,
AMF.Internals.Tables.DG_String_Data_00.MS_00F5'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 317, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 317, (False, AMF.CMOF.Public_Visibility));
end Initialize_317;
--------------------
-- Initialize_318 --
--------------------
procedure Initialize_318 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 318, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 318,
AMF.Internals.Tables.DG_String_Data_00.MS_00B3'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 318, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 318, (False, AMF.CMOF.Public_Visibility));
end Initialize_318;
--------------------
-- Initialize_319 --
--------------------
procedure Initialize_319 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 319, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 319,
AMF.Internals.Tables.DG_String_Data_00.MS_00CD'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 319, (False, AMF.CMOF.Public_Visibility));
end Initialize_319;
--------------------
-- Initialize_320 --
--------------------
procedure Initialize_320 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 320,
AMF.Internals.Tables.DG_String_Data_00.MS_00B3'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 320, (False, AMF.CMOF.Public_Visibility));
end Initialize_320;
--------------------
-- Initialize_321 --
--------------------
procedure Initialize_321 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 321,
AMF.Internals.Tables.DG_String_Data_00.MS_00E9'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Value
(Base + 321,
AMF.Internals.Tables.DG_String_Data_00.MS_0098'Access);
end Initialize_321;
--------------------
-- Initialize_322 --
--------------------
procedure Initialize_322 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 322,
AMF.Internals.Tables.DG_String_Data_00.MS_0047'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Value
(Base + 322,
AMF.Internals.Tables.DG_String_Data_00.MS_00F7'Access);
end Initialize_322;
end AMF.Internals.Tables.DG_Metamodel.Properties;
|
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/mak.lzh/mak/System.asm | prismotizm/gigaleak | 0 | 20347 | <filename>other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/mak.lzh/mak/System.asm<gh_stars>0
Name: System.asm
Type: file
Size: 12145
Last-Modified: '1992-02-13T07:47:47Z'
SHA-1: 83479E7C394249709F707C1FCCDB324BEEAA5071
Description: null
|
yakuza0/src/interceptor.asm | Palzza/- | 105 | 28705 | <filename>yakuza0/src/interceptor.asm
.data
PUBLIC get_camera_data
PUBLIC get_camera_data_end
PUBLIC get_controller_input
PUBLIC get_controller_input_end
get_camera_data PROC
push r11
lea r11,[get_camera_data + 200h];
pushf
push rax
mov eax, [r11-10h]
test eax, eax
pop rax
je not_zero
movaps xmm4,[r11+40h]
movaps xmm5,[r11]
movaps xmm6,[r11+20h] ; 220h
push rbx
mov rbx,[r11+60h]
mov [rax+0ACh],rbx
pop rbx
not_zero:
movaps [r11],xmm5
movaps [r11+20h],xmm6
movaps [r11+40h],xmm4 ; camera rotation
; load fov
push rbx
mov rbx,[rax+0ACh]
mov [r11+60h],rbx
pop rbx
popf
pop r11
movaps [rsp+48h],xmm4 ; adjusted offset of stack pointer + 8
ret
get_camera_data_end::
get_camera_data ENDP
get_controller_input PROC
push rax
lea rax,[get_controller_input+200h]
mov [rax],rbx
pop rax
; original code
mov rbp,r9
mov rsi,r8
ret
get_controller_input_end::
get_controller_input ENDP
END
|
bssn/code/src/bssnbase-evolve.ads | leo-brewin/adm-bssn-numerical | 1 | 16439 | <filename>bssn/code/src/bssnbase-evolve.ads
package BSSNBase.Evolve is
procedure evolve_data;
end BSSNBase.Evolve;
|
src/babel-filters.ads | stcarrez/babel | 1 | 20732 | -----------------------------------------------------------------------
-- babel-filters -- File filters
-- Copyright (C) 2014 Stephane.Carrez
-- Written by Stephane.Carrez (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with Ada.Strings.Unbounded;
with Ada.Directories;
with Util.Strings.Sets;
package Babel.Filters is
type Filter_Type is limited interface;
type Filter_Type_Access is access all Filter_Type'Class;
-- Return True if the file or directory is accepted by the filter.
function Is_Accepted (Filter : in Filter_Type;
Kind : in Ada.Directories.File_Kind;
Path : in String;
Name : in String) return Boolean is abstract;
-- Filter to exclude directories
type Exclude_Directory_Filter_Type is new Filter_Type with private;
-- Return True if the file or directory is accepted by the filter.
overriding
function Is_Accepted (Filter : in Exclude_Directory_Filter_Type;
Kind : in Ada.Directories.File_Kind;
Path : in String;
Name : in String) return Boolean;
-- Add the given path to the list of excluded directories.
procedure Add_Exclude (Filter : in out Exclude_Directory_Filter_Type;
Path : in String);
private
type Exclude_Directory_Filter_Type is new Filter_Type with record
Excluded : Util.Strings.Sets.Set;
end record;
end Babel.Filters;
|
firmware/coreboot/3rdparty/blobs/cpu/amd/geode_lx/gplvsa_ii/sysmgr/message.asm | fabiojna02/OpenCellular | 1 | 99735 | <filename>firmware/coreboot/3rdparty/blobs/cpu/amd/geode_lx/gplvsa_ii/sysmgr/message.asm
;
; Copyright (c) 2006-2008 Advanced Micro Devices,Inc. ("AMD").
;
; This library is free software; you can redistribute it and/or modify
; it under the terms of the GNU Lesser General Public License as
; published by the Free Software Foundation; either version 2.1 of the
; License, or (at your option) any later version.
;
; This code is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
; Lesser General Public License for more details.
;
; You should have received a copy of the GNU Lesser General
; Public License along with this library; if not, write to the
; Free Software Foundation, Inc., 59 Temple Place, Suite 330,
; Boston, MA 02111-1307 USA
;
;* Function: *
;* Implements message handling routines
include SYSMGR.INC
include VSA2.INC
.model tiny,c
.586p
.CODE
externdef SysMgr_VSM: dword
externdef MsgPacket: dword
externdef VSM_ListHead: dword
externdef Current_VSM: dword
externdef Events: EVENT_ENTRY
externdef Sys_Exit: proc
externdef pascal Schedule_VSM: proc
;***********************************************************************
; This routine is called from the System Manager to enter a message
; packet into a VSM's message queue.
;
; Input:
; To_VSM = Flat ptr to VSM to which message is to be sent
; MsgCode = Priority::Message
; From_VSM = value to be put in Async_VSM field
; MsgPacket contains the message parameters
;***********************************************************************
Send_Message proc pascal uses di si \
From_VSM: dword, \
To_VSM: dword, \
MsgCode: dword
mov edi, [To_VSM]
cmp edi, [SysMgr_VSM] ; Don't send messages to SysMgr
je short Exit
mov eax, [MsgCode]
lea si, [MsgPacket]
mov ebx, [From_VSM]
call Insert_Msg
Exit: ret
Send_Message endp
;***********************************************************************
; This routine enters a message packet into a VSM's message queue.
;
; Input:
; EAX = Priority::Message
; EBX = From_VSM
; EDI = To_VSM
; SI = Ptr to message packet
;***********************************************************************
Insert_Msg proc
cld
push ebx ; Save From_VSM
; Get ptr to the head of the message queue
movzx ebx, fs:(VSM_Header PTR [edi]).SysStuff.Qhead
; Compute ptr to the next available message queue entry
lea dx, [bx+sizeof(Message)]
cmp dx, fs:(VSM_Header PTR [edi]).SysStuff.EndMsgQ
jb short Check_Q_Overflow
mov dx, OFFSET VSM_Header.SysStuff.MsgQueue
Check_Q_Overflow:
; Is Qhead == Qtail ?
cmp dx, fs:(VSM_Header PTR [edi]).SysStuff.Qtail
jne short UpdateQueueHead
; Yes, then message queue has overflowed
mov [si+8], eax ; Store previous message into Param2
mov ax, MSG_QUEUE_OVERFLOW ; Replace previous message
mov dx, bx ; Qhead = old Qhead
UpdateQueueHead:
mov fs:(VSM_Header PTR [edi]).SysStuff.Qhead, dx
pop edx ; From_VSM
push edi ; Parameter to Schedule_VSM() below
; Store the message into the VSM's message queue.
; NOTE: This code is dependent on "#typedef Message"
add edi, ebx
stosd [edi] ; Priority::Message
mov eax, edx ; From_VSM
stosd [edi]
REPEAT MAX_MSG_PARAM
lodsd ; Copy parameters to message queue
stosd [edi]
ENDM
; Sort messages by Priority
if SUPPORT_PRIORITY
pop ebx ; To_VSM
push ebx
push fs:(VSM_Header PTR [ebx]).SysStuff.Qhead
BubbleSort:
; Get ptr to latest queue entry
movzx esi, fs:(VSM_Header PTR [ebx]).SysStuff.Qhead
sub esi, sizeof(Message)
cmp si, OFFSET VSM_Header.SysStuff.MsgQueue
jae short @f
mov si, fs:(VSM_Header PTR [ebx]).SysStuff.EndMsgQ
sub si, sizeof(Message)
@@:
cmp si, fs:(VSM_Header PTR [ebx]).SysStuff.Qtail
je Bail
; Get ptr to previous queue entry
lea edi, [esi-sizeof(Message)]
cmp di, OFFSET VSM_Header.SysStuff.MsgQueue
jae short @f
mov di, fs:(VSM_Header PTR [ebx]).SysStuff.EndMsgQ
sub di, sizeof(Message)
@@:
mov fs:(VSM_Header PTR [ebx]).SysStuff.Qhead, di
; Add VSM base to ptrs
add edi, ebx
add esi, ebx
; Compare their priorities
mov ax, fs:(Message PTR [esi]).Priority
cmp ax, fs:(Message PTR [edi]).Priority
jbe short Bail
; Swap the entries in the message queue
mov cx, sizeof(Message)/4 ; Assumes entry is multiple of dword
Interchange:
mov eax, fs:[edi]
xchg fs:[esi], eax
stosd [edi]
add esi, 4
loop Interchange
jmp BubbleSort
Bail:
pop fs:(VSM_Header PTR [ebx]).SysStuff.Qhead
endif
; Schedule the VSM to execute
pop eax
cmp eax, [SysMgr_VSM]
je short Exit
push eax
call Schedule_VSM
Exit:
ret
Insert_Msg endp
;************************************************************************
;
; Sends a message to each VSM of type VSM_Type (or all if VSM_ANY).
; Called from HANDLERS.C
;
;************************************************************************
Broadcast_Message proc pascal uses si di \
MsgCode: word, \
VSM_Type: word, \
From_VSM: dword
mov edi, [VSM_ListHead] ; Get ptr to list of VSMs
VSM_Loop:
or edi, edi ; End of VSM list ?
jz Exit_Broadcast
mov dx, [VSM_Type]
mov ah, fs:(VSM_Header PTR [edi]).VSM_Type
cmp dl, VSM_ANY ; Schedule all VSMs ?
je Schedule_It
test dh, (VSM_ALL_EXCEPT SHR 8)
jz CheckType
cmp dl, ah ; Skip the one that matches
je Skip_VSM
jmp Schedule_It
CheckType:
cmp dl, ah ; Is it the correct VSM ?
jne Skip_VSM
Schedule_It:
cmp edi, [From_VSM] ; Is it the requesting VSM ?
je Skip_VSM ; Yes, don't send to sender
push edi
movzx eax, [MsgCode] ; Send the message
xor ebx, ebx
lea si, [MsgPacket]
; EAX = Priority::Message
; EBX = 00000000h (a broadcast is not a synchronous event)
; SI = Ptr to message packet
; EDI = Ptr to VSM header where message is to be sent
call Insert_Msg
pop edi
Skip_VSM:
mov edi, fs:(VSM_Header PTR [edi]).SysStuff.Flink
jmp VSM_Loop
Exit_Broadcast:
ret
Broadcast_Message endp
;************************************************************************
; Broadcasts a message to one or more VSMs.
;
; Input:
; EBX = message code (16 MSBs)
; BH = Flags
; BL = VSM_Type
; ECX = Param1
; ESI = Param2
; EDI = Param3
;************************************************************************
Sys_Broadcast proc
mov dx, bx ; Put VSM_Type::Flags into DX
shr ebx, 16 ; Put message into BX
mov eax, esi
lea si, [MsgPacket]
mov [si+0], ecx
mov [si+4], eax
mov [si+8], edi
; Re-schedule the broadcasting VSM
; RunFlag will be changed from RUN_FLAG_ACTIVE to RUN_FLAG_READY
mov edi, [Current_VSM]
push edi
call Schedule_VSM
; If RunFlag == RUN_FLAG_READY, Insert_Msg() won't schedule it again
mov fs:(VSM_Header PTR [edi]).SysStuff.RunFlag, RUN_FLAG_BLOCKED
; Push parameters for call to Broadcast_Message()
push bx ; Message code
push dx ; VSM type
push edi ; From_VSM
; Normally, the message is sent to the broadcasting VSM
; after all VSMs have handled the broadcasted message.
; There are two exceptions to this rule:
; 1) VSM_NOT_SELF | <VSM type>
; 2) VSM_ALL_EXCEPT | <self>
test dh, (VSM_NOT_SELF SHR 8)
jnz short Broadcast
test dh, (VSM_ALL_EXCEPT SHR 8)
jz short SendToSelf
cmp dl, fs:(VSM_Header PTR [edi]).VSM_Type
je short Broadcast
SendToSelf:
; Put callback address onto the scheduler stack
mov eax, OFFSET BroadcastCallback
push eax
call Schedule_VSM
mov ax, BROADCAST_PRIORITY ; EAX = Priority::Message
shl eax, 16
mov ax, bx
mov edi, [SysMgr_VSM] ; EDI = To_VSM
mov ebx, [Current_VSM] ; EBX = From_VSM
call Insert_Msg
Broadcast:
call Broadcast_Message
jmp Sys_Exit ; Exit w/o scheduling current VSM
Sys_Broadcast endp
;************************************************************************
; Control comes here when all VSMs have processed the broadcasted message.
; Copies the broadcasted message from SysMgr's message queue to the
; broadcasting VSM's message queue.
;************************************************************************
BroadcastCallback proc
ASSUME DI: PTR VSM_Header
ASSUME BX: PTR Message
; Point BX to parameters in SysMgr's message queue head
xor di, di
mov bx, [di].SysStuff.Qhead
sub bx, sizeof(Message)
cmp bx, OFFSET VSM_Header.SysStuff.MsgQueue
jb short BadMsgStack
mov [di].SysStuff.Qhead, bx
mov eax, dword ptr [bx].Msg ; Get Priority::Message
mov edi, [bx].From_VSM ; To_VSM (the VSM it was originally from)
lea si, [bx].Param
xor ebx, ebx ; From_VSM (asynchronous)
call Insert_Msg
BadMsgStack:
ret
ASSUME BX: NOTHING
ASSUME DI: NOTHING
BroadcastCallback endp
;***********************************************************************
; Passes an event to the next VSM registered for this event
; NOTE: This system call is now obsolete.
;***********************************************************************
Sys_PassEvent proc
jmp Sys_Exit ; Exit to VSM dispatcher
Sys_PassEvent endp
END
|
Sources/cncurses/Ada95/src/terminal_interface-curses-putwin.adb | brightdigit/NCurses | 269 | 24575 | ------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding --
-- --
-- Terminal_Interface.Curses.PutWin --
-- --
-- B O D Y --
-- --
------------------------------------------------------------------------------
-- Copyright 2020 <NAME> --
-- Copyright 2000-2002,2003 Free Software Foundation, Inc. --
-- --
-- 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, distribute with modifications, 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 ABOVE 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. --
-- --
-- Except as contained in this notice, the name(s) of the above copyright --
-- holders shall not be used in advertising or otherwise to promote the --
-- sale, use or other dealings in this Software without prior written --
-- authorization. --
------------------------------------------------------------------------------
-- Author: <NAME>, 1996
-- Version Control:
-- $Revision: 1.5 $
-- Binding Version 01.00
with Ada.Streams.Stream_IO.C_Streams;
with Interfaces.C_Streams;
with Terminal_Interface.Curses.Aux; use Terminal_Interface.Curses.Aux;
package body Terminal_Interface.Curses.PutWin is
package ICS renames Interfaces.C_Streams;
package ACS renames Ada.Streams.Stream_IO.C_Streams;
use type C_Int;
procedure Put_Window (Win : Window;
File : Ada.Streams.Stream_IO.File_Type) is
function putwin (Win : Window; f : ICS.FILEs) return C_Int;
pragma Import (C, putwin, "putwin");
R : constant C_Int := putwin (Win, ACS.C_Stream (File));
begin
if R /= Curses_Ok then
raise Curses_Exception;
end if;
end Put_Window;
function Get_Window (File : Ada.Streams.Stream_IO.File_Type)
return Window is
function getwin (f : ICS.FILEs) return Window;
pragma Import (C, getwin, "getwin");
W : constant Window := getwin (ACS.C_Stream (File));
begin
if W = Null_Window then
raise Curses_Exception;
else
return W;
end if;
end Get_Window;
end Terminal_Interface.Curses.PutWin;
|
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0xca_notsx.log_1_449.asm | ljhsiun2/medusa | 9 | 98892 | <gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %r8
push %rbp
push %rcx
push %rdi
push %rsi
lea addresses_UC_ht+0x6aed, %r14
nop
nop
nop
nop
nop
cmp $5157, %r8
mov (%r14), %rdi
nop
nop
nop
nop
dec %r14
lea addresses_WT_ht+0x192ed, %rsi
lea addresses_normal_ht+0x1c3a3, %rdi
nop
nop
nop
and $55110, %r11
mov $10, %rcx
rep movsw
nop
xor $7721, %rsi
lea addresses_A_ht+0xb01, %r8
clflush (%r8)
sub %rbp, %rbp
mov (%r8), %esi
xor %r11, %r11
lea addresses_WT_ht+0x7f2d, %r8
nop
nop
nop
and %rdi, %rdi
movb (%r8), %cl
nop
nop
nop
nop
xor %r8, %r8
lea addresses_normal_ht+0x876d, %r11
inc %rcx
mov (%r11), %rbp
nop
nop
nop
sub $39177, %r11
lea addresses_UC_ht+0x1859f, %rsi
clflush (%rsi)
nop
nop
nop
and $43572, %rbp
movl $0x61626364, (%rsi)
nop
nop
nop
dec %rdi
lea addresses_UC_ht+0x11ded, %rsi
lea addresses_normal_ht+0x1c2fd, %rdi
nop
nop
cmp %r13, %r13
mov $12, %rcx
rep movsq
nop
nop
nop
nop
xor $49684, %rcx
lea addresses_normal_ht+0x2aed, %r11
nop
cmp $8485, %rsi
mov $0x6162636465666768, %rcx
movq %rcx, %xmm7
vmovups %ymm7, (%r11)
nop
nop
nop
nop
nop
xor $3763, %r14
lea addresses_A_ht+0x32ed, %rsi
lea addresses_UC_ht+0x73ed, %rdi
clflush (%rdi)
nop
nop
nop
xor $10275, %r13
mov $100, %rcx
rep movsl
nop
nop
nop
nop
nop
sub $29151, %rsi
lea addresses_WC_ht+0x10ff1, %r13
nop
cmp $54296, %r8
mov (%r13), %ebp
nop
sub %r8, %r8
lea addresses_normal_ht+0x112ed, %r11
nop
nop
nop
inc %r8
vmovups (%r11), %ymm1
vextracti128 $1, %ymm1, %xmm1
vpextrq $1, %xmm1, %rbp
nop
nop
nop
nop
inc %rsi
lea addresses_WT_ht+0x66ed, %r13
nop
nop
sub $45428, %rbp
movb (%r13), %r11b
nop
nop
nop
xor %r14, %r14
lea addresses_WC_ht+0x1bddd, %rsi
lea addresses_UC_ht+0x192a2, %rdi
nop
nop
nop
nop
nop
dec %r13
mov $56, %rcx
rep movsb
nop
nop
nop
nop
add $56104, %r11
lea addresses_WT_ht+0x19ed, %r13
nop
nop
nop
sub %r11, %r11
mov $0x6162636465666768, %rsi
movq %rsi, %xmm6
vmovups %ymm6, (%r13)
nop
nop
nop
nop
add %r11, %r11
lea addresses_A_ht+0x182ed, %r13
nop
nop
sub %rdi, %rdi
mov $0x6162636465666768, %rbp
movq %rbp, %xmm6
movups %xmm6, (%r13)
nop
dec %rdi
pop %rsi
pop %rdi
pop %rcx
pop %rbp
pop %r8
pop %r14
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r13
push %r9
push %rax
push %rcx
push %rdi
push %rsi
// Store
lea addresses_PSE+0xfbed, %rcx
nop
nop
nop
nop
dec %rdi
movl $0x51525354, (%rcx)
nop
nop
nop
nop
xor %rsi, %rsi
// Store
lea addresses_A+0x8eed, %r10
nop
nop
and %r9, %r9
movw $0x5152, (%r10)
nop
nop
nop
cmp %rdi, %rdi
// Store
lea addresses_normal+0x2aed, %r13
nop
add $38248, %rcx
movw $0x5152, (%r13)
nop
nop
nop
nop
nop
xor %rax, %rax
// Store
lea addresses_normal+0x167d7, %rax
nop
nop
sub $5666, %rcx
movw $0x5152, (%rax)
add %rcx, %rcx
// Store
lea addresses_UC+0x9ced, %rcx
nop
nop
cmp %r9, %r9
movb $0x51, (%rcx)
nop
xor $38917, %rcx
// Load
lea addresses_normal+0x17efd, %rdi
nop
nop
nop
nop
nop
sub %rsi, %rsi
vmovaps (%rdi), %ymm5
vextracti128 $0, %ymm5, %xmm5
vpextrq $0, %xmm5, %rcx
nop
nop
nop
nop
nop
add $48085, %rcx
// Store
lea addresses_US+0x1ceed, %rsi
nop
cmp $37185, %r9
mov $0x5152535455565758, %rax
movq %rax, %xmm2
vmovups %ymm2, (%rsi)
nop
nop
nop
nop
xor %rdi, %rdi
// Store
lea addresses_UC+0x10db3, %rcx
nop
nop
nop
xor %rdi, %rdi
mov $0x5152535455565758, %rsi
movq %rsi, %xmm2
movups %xmm2, (%rcx)
nop
nop
nop
nop
nop
and $60847, %r13
// Store
lea addresses_WT+0x160ed, %r13
nop
nop
nop
and $50108, %rdi
movb $0x51, (%r13)
nop
nop
nop
nop
nop
dec %rsi
// Faulty Load
lea addresses_normal+0x2aed, %r13
nop
inc %rcx
mov (%r13), %r10w
lea oracles, %r9
and $0xff, %r10
shlq $12, %r10
mov (%r9,%r10,1), %r10
pop %rsi
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r13
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 0, 'same': False, 'type': 'addresses_normal'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 7, 'same': False, 'type': 'addresses_PSE'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 8, 'same': False, 'type': 'addresses_A'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': True, 'type': 'addresses_normal'}, 'OP': 'STOR'}
{'dst': {'NT': True, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': False, 'type': 'addresses_normal'}, 'OP': 'STOR'}
{'dst': {'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 7, 'same': False, 'type': 'addresses_UC'}, 'OP': 'STOR'}
{'src': {'NT': False, 'AVXalign': True, 'size': 32, 'congruent': 4, 'same': False, 'type': 'addresses_normal'}, 'OP': 'LOAD'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 10, 'same': False, 'type': 'addresses_US'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 1, 'same': False, 'type': 'addresses_UC'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 9, 'same': False, 'type': 'addresses_WT'}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': True, 'type': 'addresses_normal'}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 11, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 11, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'}
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 1, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 5, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 7, 'same': True, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'}
{'dst': {'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 8, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 1, 'same': True, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'}
{'src': {'congruent': 9, 'same': False, 'type': 'addresses_A_ht'}, 'dst': {'congruent': 8, 'same': True, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'}
{'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 2, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 10, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'}
{'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 8, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'}
{'src': {'congruent': 4, 'same': False, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 0, 'same': True, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'}
{'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 8, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'}
{'52': 1}
52
*/
|
projects/batfish/src/main/antlr4/org/batfish/grammar/juniper/JuniperLexer.g4 | jeffkala/batfish | 0 | 5965 | <reponame>jeffkala/batfish
lexer grammar JuniperLexer;
options {
superClass = 'org.batfish.grammar.juniper.parsing.JuniperBaseLexer';
}
REPLACE
:
'replace:'
;
CLOSE_BRACE
:
'}'
;
CLOSE_BRACKET
:
']'
;
CLOSE_PAREN
:
')'
;
// The start of a flat line
START_FLAT_LINE
:
F_WhitespaceChar* ('activate'|'deactivate'|'delete'|'insert'|'set')
{lastTokenType() == -1 || lastTokenType() == NEWLINE}? -> pushMode(M_FLAT_LINE)
;
INACTIVE
:
'inactive:'
;
// Handle Juniper-style and RANCID-header-style line comments, as well as end-of-line comments
COMMENT_LINE: F_WhitespaceChar* [!#] F_NonNewlineChar* -> skip;
MULTILINE_COMMENT
:
'/*' .*? '*/'
{
switch(lastTokenType()) {
case -1:
case NEWLINE:
break;
default:
skip();
}
}
;
OPEN_BRACE
:
'{'
;
OPEN_BRACKET
:
'['
;
OPEN_PAREN
:
'('
;
SEMICOLON
:
';' F_SECRET_DATA?
;
WORD
:
F_QuotedString
| F_ParenString
| F_WordChar+
;
NEWLINE: F_NewlineChar+ -> channel(HIDDEN);
WS
:
F_WhitespaceChar+ -> skip // so not counted as last token
;
mode M_FLAT_LINE;
M_FLAT_LINE_WORD
:
(
F_QuotedString
| F_ParenString
| F_WordChar+
) -> type(WORD)
;
M_FLAT_LINE_NEWLINE
:
F_NewlineChar -> type(NEWLINE), popMode
;
M_FLAT_LINE_WS
:
F_WhitespaceChar+ -> skip
;
fragment
F_NewlineChar
:
[\r\n]
;
fragment
F_NonNewlineChar
:
~[\r\n]
;
fragment
F_ParenString
:
'(' ~')'* ')'
;
fragment
F_QuotedString
:
'"' ~'"'* '"'
;
// This may appear after a semicolon when there is a secret key in the file
// Search for examples online.
fragment
F_SECRET_DATA
:
' '* '## SECRET-DATA'
;
fragment
F_WhitespaceChar
:
[ \t\u000C]
;
fragment
F_WordChar
:
~[ \t\u000C\r\n;{}[\]"#()]
;
|
oeis/343/A343965.asm | neoneye/loda-programs | 11 | 81975 | ; A343965: Decimal expansion of 4 + 10*sqrt(2)/3.
; Submitted by <NAME>
; 8,7,1,4,0,4,5,2,0,7,9,1,0,3,1,6,8,2,9,3,3,8,9,6,2,4,1,4,0,3,2,3,2,6,9,2,8,5,6,5,5,7,2,9,1,7,9,2,3,1,6,0,2,4,3,9,2,2,2,6,5,7,9,3,3,0,2,4,4,1,5,9,4,8,7,3,6,9,0,1,2,9,5,0,1,2,9,1,7,8,1,0,9,2,1,3,8,5,7,5
lpb $0
mov $2,$0
mov $0,0
mov $1,2
seq $2,131594 ; Decimal expansion of sqrt(2)/3, the volume of a regular octahedron with edge length 1.
add $3,$2
add $1,$3
lpe
mov $0,$1
add $0,8
mod $0,10
|
Assembly/IntroMike.asm | MiguelGomez/labs | 0 | 86176 | cout macro string
lea dx,string
int 21h
endm
getch macro
mov ah,10h
int 16h
endm
.model small
.stack 100h
.data
F181 db ' \ / ',10,'$'
F182 db ' \ _/ ',10,'$'
F183 db ' ----/_\---- ',10,'$'
F184 db ' x--------------( . )--------------x ',10,'$'
F185 db ' x|x | |_|\_/|_| | x|x ',10,'$'
F186 db ' x x x x ',10,'$'
Nombre db ' M i g u e l A n g e l G o m e z M a r q u e z$'
Espacio db 10,13,'$'
Parrafo db 10,10,10,10,10,10,10,10,13,'$'
.code
call Presentacion
call Salir
Presentacion PROC
mov ax,@data
mov ds,ax
mov ah,09
cout Parrafo
cout F181
cout F182
cout F183
cout F184
cout F185
cout F186
cout Espacio
cout Espacio
cout Nombre
cout Parrafo
getch
Ret
Presentacion EndP
Salir PROC
mov ah,4Ch
int 21h
ret
Salir EndP
End |
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_1669.asm | ljhsiun2/medusa | 9 | 13781 | .global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r12
push %r14
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x159b5, %rsi
lea addresses_A_ht+0x1bf5b, %rdi
nop
cmp $24053, %r12
mov $24, %rcx
rep movsl
nop
nop
nop
nop
cmp $50429, %r14
lea addresses_WT_ht+0x13f1b, %rsi
lea addresses_normal_ht+0x1a59b, %rdi
nop
nop
add %r9, %r9
mov $88, %rcx
rep movsq
sub $8644, %r9
lea addresses_normal_ht+0xe4f3, %rdi
clflush (%rdi)
nop
nop
nop
cmp %rdx, %rdx
movw $0x6162, (%rdi)
nop
add %rsi, %rsi
lea addresses_WC_ht+0xe51b, %rdi
nop
nop
nop
nop
sub %rcx, %rcx
mov $0x6162636465666768, %rdx
movq %rdx, %xmm1
movups %xmm1, (%rdi)
nop
nop
add $47694, %rcx
lea addresses_WT_ht+0x509b, %rsi
lea addresses_UC_ht+0x147ef, %rdi
nop
nop
nop
nop
nop
and %r10, %r10
mov $50, %rcx
rep movsl
nop
nop
nop
sub $46487, %rdx
lea addresses_normal_ht+0xdc4, %r9
nop
nop
nop
nop
nop
add %rdx, %rdx
mov $0x6162636465666768, %r12
movq %r12, %xmm4
vmovups %ymm4, (%r9)
nop
nop
nop
nop
nop
cmp %rdi, %rdi
lea addresses_UC_ht+0xc79b, %r10
nop
nop
sub $31589, %r12
vmovups (%r10), %ymm2
vextracti128 $1, %ymm2, %xmm2
vpextrq $1, %xmm2, %r9
nop
nop
nop
xor $61650, %r10
lea addresses_D_ht+0x1a39b, %rdi
nop
nop
nop
nop
nop
add %r10, %r10
mov $0x6162636465666768, %rdx
movq %rdx, (%rdi)
nop
nop
xor %r12, %r12
lea addresses_UC_ht+0x1674f, %rsi
lea addresses_normal_ht+0x9e5b, %rdi
nop
dec %rdx
mov $52, %rcx
rep movsw
nop
nop
nop
and %r12, %r12
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r9
pop %r14
pop %r12
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r15
push %r9
push %rax
push %rbx
push %rcx
push %rdi
push %rsi
// Store
lea addresses_normal+0x1761b, %rbx
nop
nop
nop
nop
sub $12298, %r9
mov $0x5152535455565758, %rsi
movq %rsi, %xmm7
vmovups %ymm7, (%rbx)
nop
nop
nop
nop
nop
add %rsi, %rsi
// Store
lea addresses_WT+0x18f9b, %r11
clflush (%r11)
nop
nop
nop
and $23998, %rsi
movl $0x51525354, (%r11)
nop
nop
nop
xor $49223, %rbx
// Store
lea addresses_normal+0x1e39b, %rcx
nop
nop
nop
nop
add $709, %rbx
movl $0x51525354, (%rcx)
nop
nop
nop
xor %r9, %r9
// Store
lea addresses_normal+0x1e39b, %r11
nop
nop
nop
mfence
movw $0x5152, (%r11)
nop
nop
add %rsi, %rsi
// Store
lea addresses_WT+0x1d91b, %r11
nop
nop
nop
nop
add $27243, %rcx
mov $0x5152535455565758, %r15
movq %r15, (%r11)
nop
nop
nop
nop
nop
cmp $24723, %r11
// REPMOV
lea addresses_A+0x1849b, %rsi
lea addresses_WT+0x372b, %rdi
clflush (%rdi)
nop
nop
nop
xor %rax, %rax
mov $48, %rcx
rep movsq
nop
cmp %rsi, %rsi
// Faulty Load
lea addresses_normal+0x1e39b, %rax
nop
nop
nop
nop
cmp %rcx, %rcx
movups (%rax), %xmm2
vpextrq $1, %xmm2, %rdi
lea oracles, %rax
and $0xff, %rdi
shlq $12, %rdi
mov (%rax,%rdi,1), %rdi
pop %rsi
pop %rdi
pop %rcx
pop %rbx
pop %rax
pop %r9
pop %r15
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_normal', 'congruent': 0}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_normal', 'congruent': 5}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_WT', 'congruent': 8}, 'OP': 'STOR'}
{'dst': {'same': True, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_normal', 'congruent': 0}, 'OP': 'STOR'}
{'dst': {'same': True, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_normal', 'congruent': 0}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_WT', 'congruent': 7}, 'OP': 'STOR'}
{'dst': {'same': False, 'congruent': 1, 'type': 'addresses_WT'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_A'}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_normal', 'congruent': 0}}
<gen_prepare_buffer>
{'dst': {'same': True, 'congruent': 5, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_normal_ht'}}
{'dst': {'same': False, 'congruent': 9, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_WT_ht'}}
{'dst': {'same': False, 'NT': True, 'AVXalign': False, 'size': 2, 'type': 'addresses_normal_ht', 'congruent': 3}, 'OP': 'STOR'}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WC_ht', 'congruent': 5}, 'OP': 'STOR'}
{'dst': {'same': False, 'congruent': 2, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_WT_ht'}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_normal_ht', 'congruent': 0}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_UC_ht', 'congruent': 10}}
{'dst': {'same': False, 'NT': True, 'AVXalign': False, 'size': 8, 'type': 'addresses_D_ht', 'congruent': 10}, 'OP': 'STOR'}
{'dst': {'same': False, 'congruent': 6, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_UC_ht'}}
{'34': 21829}
34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34
*/
|
tidb/src/main/java/io/tidb/bigdata/tidb/parser/MySqlParser.g4 | shiyuhang0/TiBigData | 834 | 1103 | /*
MySQL (Positive Technologies) grammar
The MIT License (MIT).
Copyright (c) 2015-2017, <NAME> (<EMAIL>), Positive Technologies.
Copyright (c) 2017, <NAME> (<EMAIL>)
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.
*/
parser grammar MySqlParser;
options { tokenVocab=MySqlLexer; }
// Top Level Description
// details
intervalType
: intervalTypeBase
| YEAR | YEAR_MONTH | DAY_HOUR | DAY_MINUTE
| DAY_SECOND | HOUR_MINUTE | HOUR_SECOND | MINUTE_SECOND
| SECOND_MICROSECOND | MINUTE_MICROSECOND
| HOUR_MICROSECOND | DAY_MICROSECOND
;
// DB Objects
fullId
: uid (DOT_ID | '.' uid)?
;
fullColumnName
: uid (dottedId dottedId? )?
;
charsetName
: BINARY
| charsetNameBase
| STRING_LITERAL
| CHARSET_REVERSE_QOUTE_STRING
;
collationName
: uid | STRING_LITERAL;
uid
: simpleId
| REVERSE_QUOTE_ID
| CHARSET_REVERSE_QOUTE_STRING
;
simpleId
: ID
| charsetNameBase
| intervalTypeBase
| dataTypeBase
| keywordsCanBeId
| functionNameBase
;
dottedId
: DOT_ID
| '.' uid
;
// Literals
decimalLiteral
: DECIMAL_LITERAL | ZERO_DECIMAL | ONE_DECIMAL | TWO_DECIMAL
;
stringLiteral
: STRING_LITERAL+
;
booleanLiteral
: TRUE | FALSE;
hexadecimalLiteral
: STRING_CHARSET_NAME? HEXADECIMAL_LITERAL;
nullNotnull
: NOT? (NULL_LITERAL | NULL_SPEC_LITERAL)
;
constant
: stringLiteral | decimalLiteral
| '-' decimalLiteral
| hexadecimalLiteral | booleanLiteral
| REAL_LITERAL | BIT_STRING
| NOT? nullLiteral=(NULL_LITERAL | NULL_SPEC_LITERAL)
;
// Data Types
convertedDataType
: typeName=(BINARY| NCHAR) lengthOneDimension?
| typeName=CHAR lengthOneDimension? (CHARACTER SET charsetName)?
| typeName=(DATE | DATETIME | TIME)
| typeName=DECIMAL lengthTwoDimension?
| (SIGNED | UNSIGNED) INTEGER?
;
lengthOneDimension
: '(' decimalLiteral ')'
;
lengthTwoDimension
: '(' decimalLiteral ',' decimalLiteral ')'
;
// Common Lists
expressions
: expression (',' expression)*
;
// Common Expressons
currentTimestamp
:
(
(CURRENT_TIMESTAMP | LOCALTIME | LOCALTIMESTAMP) ('(' decimalLiteral? ')')?
| NOW '(' decimalLiteral? ')'
)
;
// Functions
functionCall
: specificFunction #specificFunctionCall
| scalarFunctionName '(' functionArgs? ')' #scalarFunctionCall
| fullId '(' functionArgs? ')' #udfFunctionCall
;
specificFunction
: (
CURRENT_DATE | CURRENT_TIME | CURRENT_TIMESTAMP
| CURRENT_USER | LOCALTIME
) #simpleFunctionCall
| CONVERT '(' expression separator=',' convertedDataType ')' #dataTypeFunctionCall
| CONVERT '(' expression USING charsetName ')' #dataTypeFunctionCall
| CAST '(' expression AS convertedDataType ')' #dataTypeFunctionCall
| VALUES '(' fullColumnName ')' #valuesFunctionCall
| CASE expression caseFuncAlternative+
(ELSE elseArg=functionArg)? END #caseFunctionCall
| CASE caseFuncAlternative+
(ELSE elseArg=functionArg)? END #caseFunctionCall
| CHAR '(' functionArgs (USING charsetName)? ')' #charFunctionCall
| POSITION
'('
(
positionString=stringLiteral
| positionExpression=expression
)
IN
(
inString=stringLiteral
| inExpression=expression
)
')' #positionFunctionCall
| (SUBSTR | SUBSTRING)
'('
(
sourceString=stringLiteral
| sourceExpression=expression
) FROM
(
fromDecimal=decimalLiteral
| fromExpression=expression
)
(
FOR
(
forDecimal=decimalLiteral
| forExpression=expression
)
)?
')' #substrFunctionCall
| TRIM
'('
positioinForm=(BOTH | LEADING | TRAILING)
(
sourceString=stringLiteral
| sourceExpression=expression
)?
FROM
(
fromString=stringLiteral
| fromExpression=expression
)
')' #trimFunctionCall
| TRIM
'('
(
sourceString=stringLiteral
| sourceExpression=expression
)
FROM
(
fromString=stringLiteral
| fromExpression=expression
)
')' #trimFunctionCall
| WEIGHT_STRING
'('
(stringLiteral | expression)
(AS stringFormat=(CHAR | BINARY)
'(' decimalLiteral ')' )? levelsInWeightString?
')' #weightFunctionCall
| EXTRACT
'('
intervalType
FROM
(
sourceString=stringLiteral
| sourceExpression=expression
)
')' #extractFunctionCall
| GET_FORMAT
'('
datetimeFormat=(DATE | TIME | DATETIME)
',' stringLiteral
')' #getFormatFunctionCall
;
caseFuncAlternative
: WHEN condition=functionArg
THEN consequent=functionArg
;
levelsInWeightString
: LEVEL levelInWeightListElement
(',' levelInWeightListElement)* #levelWeightList
| LEVEL
firstLevel=decimalLiteral '-' lastLevel=decimalLiteral #levelWeightRange
;
levelInWeightListElement
: decimalLiteral orderType=(ASC | DESC | REVERSE)?
;
scalarFunctionName
: functionNameBase
| ASCII | CURDATE | CURRENT_DATE | CURRENT_TIME
| CURRENT_TIMESTAMP | CURTIME | DATE_ADD | DATE_SUB
| IF | INSERT | LOCALTIME | LOCALTIMESTAMP | MID | NOW
| REPLACE | SUBSTR | SUBSTRING | SYSDATE | TRIM
| UTC_DATE | UTC_TIME | UTC_TIMESTAMP
;
functionArgs
: (constant | fullColumnName | functionCall | expression)
(
','
(constant | fullColumnName | functionCall | expression)
)*
;
functionArg
: constant | fullColumnName | functionCall | expression
;
// Expressions, predicates
// Simplified approach for expression
expression
: notOperator=(NOT | '!') expression #notExpression
| expression logicalOperator expression #logicalExpression
| predicate IS NOT? testValue=(TRUE | FALSE | UNKNOWN) #isExpression
| predicate #predicateExpression
;
predicate
: predicate NOT? IN '(' expressions ')' #inPredicate
| predicate IS nullNotnull #isNullPredicate
| left=predicate comparisonOperator right=predicate #binaryComparisonPredicate
| predicate NOT? BETWEEN predicate AND predicate #betweenPredicate
| predicate SOUNDS LIKE predicate #soundsLikePredicate
| predicate NOT? LIKE predicate (ESCAPE STRING_LITERAL)? #likePredicate
| predicate NOT? regex=(REGEXP | RLIKE) predicate #regexpPredicate
| (LOCAL_ID VAR_ASSIGN)? expressionAtom #expressionAtomPredicate
;
// Add in ASTVisitor nullNotnull in constant
expressionAtom
: constant #constantExpressionAtom
| fullColumnName #fullColumnNameExpressionAtom
| functionCall #functionCallExpressionAtom
| expressionAtom COLLATE collationName #collateExpressionAtom
| unaryOperator expressionAtom #unaryExpressionAtom
| BINARY expressionAtom #binaryExpressionAtom
| '(' expression (',' expression)* ')' #nestedExpressionAtom
| ROW '(' expression (',' expression)+ ')' #nestedRowExpressionAtom
| INTERVAL expression intervalType #intervalExpressionAtom
| left=expressionAtom bitOperator right=expressionAtom #bitExpressionAtom
| left=expressionAtom mathOperator right=expressionAtom #mathExpressionAtom
;
unaryOperator
: '!' | '~' | '+' | '-' | NOT
;
comparisonOperator
: '=' | '>' | '<' | '<' '=' | '>' '='
| '<' '>' | '!' '=' | '<' '=' '>'
;
logicalOperator
: AND | '&' '&' | XOR | OR | '|' '|'
;
bitOperator
: '<' '<' | '>' '>' | '&' | '^' | '|'
;
mathOperator
: '*' | '/' | '%' | DIV | MOD | '+' | '-' | '--'
;
// Simple id sets
// (that keyword, which can be id)
charsetNameBase
: ARMSCII8 | ASCII | BIG5 | CP1250 | CP1251 | CP1256 | CP1257
| CP850 | CP852 | CP866 | CP932 | DEC8 | EUCJPMS | EUCKR
| GB2312 | GBK | GEOSTD8 | GREEK | HEBREW | HP8 | KEYBCS2
| KOI8R | KOI8U | LATIN1 | LATIN2 | LATIN5 | LATIN7 | MACCE
| MACROMAN | SJIS | SWE7 | TIS620 | UCS2 | UJIS | UTF16
| UTF16LE | UTF32 | UTF8 | UTF8MB3 | UTF8MB4
;
intervalTypeBase
: QUARTER | MONTH | DAY | HOUR
| MINUTE | WEEK | SECOND | MICROSECOND
;
dataTypeBase
: DATE | TIME | TIMESTAMP | DATETIME | YEAR | ENUM | TEXT
;
keywordsCanBeId
: ACCOUNT | ACTION | AFTER | AGGREGATE | ALGORITHM | ANY
| AT | AUTHORS | AUTOCOMMIT | AUTOEXTEND_SIZE
| AUTO_INCREMENT | AVG_ROW_LENGTH | BEGIN | BINLOG | BIT
| BLOCK | BOOL | BOOLEAN | BTREE | CASCADED | CHAIN | CHANGED
| CHANNEL | CHECKSUM | CIPHER | CLIENT | COALESCE | CODE
| COLUMNS | COLUMN_FORMAT | COMMENT | COMMIT | COMPACT
| COMPLETION | COMPRESSED | COMPRESSION | CONCURRENT
| CONNECTION | CONSISTENT | CONTAINS | CONTEXT
| CONTRIBUTORS | COPY | CPU | DATA | DATAFILE | DEALLOCATE
| DEFAULT_AUTH | DEFINER | DELAY_KEY_WRITE | DIRECTORY
| DISABLE | DISCARD | DISK | DO | DUMPFILE | DUPLICATE
| DYNAMIC | ENABLE | ENCRYPTION | ENDS | ENGINE | ENGINES
| ERROR | ERRORS | ESCAPE | EVEN | EVENT | EVENTS | EVERY
| EXCHANGE | EXCLUSIVE | EXPIRE | EXTENDED | EXTENT_SIZE | FAST | FAULTS
| FIELDS | FILE_BLOCK_SIZE | FILTER | FIRST | FIXED
| FOLLOWS | FULL | FUNCTION | GLOBAL | GRANTS
| GROUP_REPLICATION | HASH | HOST | IDENTIFIED
| IGNORE_SERVER_IDS | IMPORT | INDEXES | INITIAL_SIZE
| INPLACE | INSERT_METHOD | INSTANCE | INVOKER | IO
| IO_THREAD | IPC | ISOLATION | ISSUER | KEY_BLOCK_SIZE
| LANGUAGE | LAST | LEAVES | LESS | LEVEL | LIST | LOCAL
| LOGFILE | LOGS | MASTER | MASTER_AUTO_POSITION
| MASTER_CONNECT_RETRY | MASTER_DELAY
| MASTER_HEARTBEAT_PERIOD | MASTER_HOST | MASTER_LOG_FILE
| MASTER_LOG_POS | MASTER_PASSWORD | MASTER_PORT
| MASTER_RETRY_COUNT | MASTER_SSL | MASTER_SSL_CA
| MASTER_SSL_CAPATH | MASTER_SSL_CERT | MASTER_SSL_CIPHER
| MASTER_SSL_CRL | MASTER_SSL_CRLPATH | MASTER_SSL_KEY
| MASTER_TLS_VERSION | MASTER_USER
| MAX_CONNECTIONS_PER_HOUR | MAX_QUERIES_PER_HOUR
| MAX_ROWS | MAX_SIZE | MAX_UPDATES_PER_HOUR
| MAX_USER_CONNECTIONS | MEDIUM | MEMORY | MERGE | MID | MIGRATE
| MIN_ROWS | MODIFY | MUTEX | MYSQL | NAME | NAMES
| NCHAR | NEVER | NO | NODEGROUP | NONE | OFFLINE | OFFSET
| OJ | OLD_PASSWORD | ONE | ONLINE | ONLY | OPTIMIZER_COSTS
| OPTIONS | OWNER | PACK_KEYS | PAGE | PARSER | PARTIAL
| PARTITIONING | PARTITIONS | PASSWORD | PHASE | PLUGINS
| PLUGIN_DIR | PORT | PRECEDES | PREPARE | PRESERVE | PREV
| PROCESSLIST | PROFILE | PROFILES | PROXY | QUERY | QUICK
| REBUILD | RECOVER | REDO_BUFFER_SIZE | REDUNDANT
| RELAYLOG | RELAY_LOG_FILE | RELAY_LOG_POS | REMOVE
| REORGANIZE | REPAIR | REPLICATE_DO_DB | REPLICATE_DO_TABLE
| REPLICATE_IGNORE_DB | REPLICATE_IGNORE_TABLE
| REPLICATE_REWRITE_DB | REPLICATE_WILD_DO_TABLE
| REPLICATE_WILD_IGNORE_TABLE | REPLICATION | RESUME
| RETURNS | ROLLBACK | ROLLUP | ROTATE | ROW | ROWS
| ROW_FORMAT | SAVEPOINT | SCHEDULE | SECURITY | SERVER
| SESSION | SHARE | SHARED | SIGNED | SIMPLE | SLAVE
| SNAPSHOT | SOCKET | SOME | SOUNDS | SOURCE
| SQL_AFTER_GTIDS | SQL_AFTER_MTS_GAPS | SQL_BEFORE_GTIDS
| SQL_BUFFER_RESULT | SQL_CACHE | SQL_NO_CACHE | SQL_THREAD
| START | STARTS | STATS_AUTO_RECALC | STATS_PERSISTENT
| STATS_SAMPLE_PAGES | STATUS | STOP | STORAGE | STRING
| SUBJECT | SUBPARTITION | SUBPARTITIONS | SUSPEND | SWAPS
| SWITCHES | TABLESPACE | TEMPORARY | TEMPTABLE | THAN
| TRANSACTION | TRUNCATE | UNDEFINED | UNDOFILE
| UNDO_BUFFER_SIZE | UNKNOWN | UPGRADE | USER | VALIDATION
| VALUE | VARIABLES | VIEW | WAIT | WARNINGS | WITHOUT
| WORK | WRAPPER | X509 | XA | XML
;
functionNameBase
: ABS | ACOS | ADDDATE | ADDTIME | AES_DECRYPT | AES_ENCRYPT
| AREA | ASBINARY | ASIN | ASTEXT | ASWKB | ASWKT
| ASYMMETRIC_DECRYPT | ASYMMETRIC_DERIVE
| ASYMMETRIC_ENCRYPT | ASYMMETRIC_SIGN | ASYMMETRIC_VERIFY
| ATAN | ATAN2 | BENCHMARK | BIN | BIT_COUNT | BIT_LENGTH
| BUFFER | CEIL | CEILING | CENTROID | CHARACTER_LENGTH
| CHARSET | CHAR_LENGTH | COERCIBILITY | COLLATION
| COMPRESS | CONCAT | CONCAT_WS | CONNECTION_ID | CONV
| CONVERT_TZ | COS | COT | COUNT | CRC32
| CREATE_ASYMMETRIC_PRIV_KEY | CREATE_ASYMMETRIC_PUB_KEY
| CREATE_DH_PARAMETERS | CREATE_DIGEST | CROSSES | DATABASE | DATE
| DATEDIFF | DATE_FORMAT | DAY | DAYNAME | DAYOFMONTH
| DAYOFWEEK | DAYOFYEAR | DECODE | DEGREES | DES_DECRYPT
| DES_ENCRYPT | DIMENSION | DISJOINT | ELT | ENCODE
| ENCRYPT | ENDPOINT | ENVELOPE | EQUALS | EXP | EXPORT_SET
| EXTERIORRING | EXTRACTVALUE | FIELD | FIND_IN_SET | FLOOR
| FORMAT | FOUND_ROWS | FROM_BASE64 | FROM_DAYS
| FROM_UNIXTIME | GEOMCOLLFROMTEXT | GEOMCOLLFROMWKB
| GEOMETRYCOLLECTION | GEOMETRYCOLLECTIONFROMTEXT
| GEOMETRYCOLLECTIONFROMWKB | GEOMETRYFROMTEXT
| GEOMETRYFROMWKB | GEOMETRYN | GEOMETRYTYPE | GEOMFROMTEXT
| GEOMFROMWKB | GET_FORMAT | GET_LOCK | GLENGTH | GREATEST
| GTID_SUBSET | GTID_SUBTRACT | HEX | HOUR | IFNULL
| INET6_ATON | INET6_NTOA | INET_ATON | INET_NTOA | INSTR
| INTERIORRINGN | INTERSECTS | ISCLOSED | ISEMPTY | ISNULL
| ISSIMPLE | IS_FREE_LOCK | IS_IPV4 | IS_IPV4_COMPAT
| IS_IPV4_MAPPED | IS_IPV6 | IS_USED_LOCK | LAST_INSERT_ID
| LCASE | LEAST | LEFT | LENGTH | LINEFROMTEXT | LINEFROMWKB
| LINESTRING | LINESTRINGFROMTEXT | LINESTRINGFROMWKB | LN
| LOAD_FILE | LOCATE | LOG | LOG10 | LOG2 | LOWER | LPAD
| LTRIM | MAKEDATE | MAKETIME | MAKE_SET | MASTER_POS_WAIT
| MBRCONTAINS | MBRDISJOINT | MBREQUAL | MBRINTERSECTS
| MBROVERLAPS | MBRTOUCHES | MBRWITHIN | MD5 | MICROSECOND
| MINUTE | MLINEFROMTEXT | MLINEFROMWKB | MONTH | MONTHNAME
| MPOINTFROMTEXT | MPOINTFROMWKB | MPOLYFROMTEXT
| MPOLYFROMWKB | MULTILINESTRING | MULTILINESTRINGFROMTEXT
| MULTILINESTRINGFROMWKB | MULTIPOINT | MULTIPOINTFROMTEXT
| MULTIPOINTFROMWKB | MULTIPOLYGON | MULTIPOLYGONFROMTEXT
| MULTIPOLYGONFROMWKB | NAME_CONST | NULLIF | NUMGEOMETRIES
| NUMINTERIORRINGS | NUMPOINTS | OCT | OCTET_LENGTH | ORD
| OVERLAPS | PERIOD_ADD | PERIOD_DIFF | PI | POINT
| POINTFROMTEXT | POINTFROMWKB | POINTN | POLYFROMTEXT
| POLYFROMWKB | POLYGON | POLYGONFROMTEXT | POLYGONFROMWKB
| POSITION| POW | POWER | QUARTER | QUOTE | RADIANS | RAND
| RANDOM_BYTES | RELEASE_LOCK | REVERSE | RIGHT | ROUND
| ROW_COUNT | RPAD | RTRIM | SECOND | SEC_TO_TIME
| SESSION_USER | SHA | SHA1 | SHA2 | SIGN | SIN | SLEEP
| SOUNDEX | SQL_THREAD_WAIT_AFTER_GTIDS | SQRT | SRID
| STARTPOINT | STRCMP | STR_TO_DATE | ST_AREA | ST_ASBINARY
| ST_ASTEXT | ST_ASWKB | ST_ASWKT | ST_BUFFER | ST_CENTROID
| ST_CONTAINS | ST_CROSSES | ST_DIFFERENCE | ST_DIMENSION
| ST_DISJOINT | ST_DISTANCE | ST_ENDPOINT | ST_ENVELOPE
| ST_EQUALS | ST_EXTERIORRING | ST_GEOMCOLLFROMTEXT
| ST_GEOMCOLLFROMTXT | ST_GEOMCOLLFROMWKB
| ST_GEOMETRYCOLLECTIONFROMTEXT
| ST_GEOMETRYCOLLECTIONFROMWKB | ST_GEOMETRYFROMTEXT
| ST_GEOMETRYFROMWKB | ST_GEOMETRYN | ST_GEOMETRYTYPE
| ST_GEOMFROMTEXT | ST_GEOMFROMWKB | ST_INTERIORRINGN
| ST_INTERSECTION | ST_INTERSECTS | ST_ISCLOSED | ST_ISEMPTY
| ST_ISSIMPLE | ST_LINEFROMTEXT | ST_LINEFROMWKB
| ST_LINESTRINGFROMTEXT | ST_LINESTRINGFROMWKB
| ST_NUMGEOMETRIES | ST_NUMINTERIORRING
| ST_NUMINTERIORRINGS | ST_NUMPOINTS | ST_OVERLAPS
| ST_POINTFROMTEXT | ST_POINTFROMWKB | ST_POINTN
| ST_POLYFROMTEXT | ST_POLYFROMWKB | ST_POLYGONFROMTEXT
| ST_POLYGONFROMWKB | ST_SRID | ST_STARTPOINT
| ST_SYMDIFFERENCE | ST_TOUCHES | ST_UNION | ST_WITHIN
| ST_X | ST_Y | SUBDATE | SUBSTRING_INDEX | SUBTIME
| SYSTEM_USER | TAN | TIME | TIMEDIFF | TIMESTAMP
| TIMESTAMPADD | TIMESTAMPDIFF | TIME_FORMAT | TIME_TO_SEC
| TOUCHES | TO_BASE64 | TO_DAYS | TO_SECONDS | UCASE
| UNCOMPRESS | UNCOMPRESSED_LENGTH | UNHEX | UNIX_TIMESTAMP
| UPDATEXML | UPPER | UUID | UUID_SHORT
| VALIDATE_PASSWORD_STRENGTH | VERSION
| WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS | WEEK | WEEKDAY
| WEEKOFYEAR | WEIGHT_STRING | WITHIN | YEAR | YEARWEEK
| Y_FUNCTION | X_FUNCTION
;
|
test/rcr/rcr.asm | leonardo-ono/asm4mo | 10 | 85855 | <reponame>leonardo-ono/asm4mo
rcr al, 1
rcr ah, 1
rcr bl, 1
rcr bh, 1
rcr cl, 1
rcr ch, 1
rcr dl, 1
rcr dh, 1
rcr byte [bx], 1
rcr byte [bx+si], 1h
rcr byte [bx+si+12h], 1b
rcr byte [bx+si+4142h], 1
rcr al, cl
rcr ah, cl
rcr bl, cl
rcr bh, cl
rcr cl, cl
rcr ch, cl
rcr dl, cl
rcr dh, cl
rcr byte [bx], cl
rcr byte [bx+di], cl
rcr byte [bx+di+12h], cl
rcr byte [bx+di+4142h], cl
rcr ax, 1
rcr bx, 1
rcr cx, 1
rcr dx, 1
rcr si, 1
rcr di, 1
rcr bp, 1
rcr word [bx], 1
rcr word [bx+si], 1h
rcr word [bx+si+12h], 1b
rcr word [bx+si+4142h], 1
rcr ax, cl
rcr bx, cl
rcr cx, cl
rcr dx, cl
rcr si, cl
rcr di, cl
rcr bp, cl
rcr word [bx], cl
rcr word [bx+di], cl
rcr word [bx+di+12h], cl
rcr word [bx+si+12h], cl
|
shardingsphere-rdl-parser/shardingsphere-rdl-parser-sql/src/main/antlr4/imports/RDLStatement.g4 | wenweibin/shardingsphere | 1 | 6885 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
grammar RDLStatement;
import Keyword, Literals, Symbol;
createDataSources
: CREATE DATASOURCES LP dataSource (COMMA dataSource)* RP
;
createShardingRules
: CREATE SHARDINGRULES LP tableRule (COMMA tableRule)* RP
;
tableRule
: tableName EQ tableRuleDefinition
;
dataSource
: dataSourceName EQ dataSourceDefinition
;
dataSourceDefinition
: hostName COLON port COLON dbName (COLON user (COLON password)?)?
;
tableRuleDefinition
: strategyType LP strategyDefinition RP
;
strategyType
: IDENTIFIER
;
strategyDefinition
: columName COMMA strategyProps
;
strategyProps
: strategyProp (COMMA strategyProp)*
;
strategyProp
: IDENTIFIER | NUMBER | INT
;
dataSourceName
: IDENTIFIER
;
tableName
: IDENTIFIER
;
columName
: IDENTIFIER
;
hostName
: IDENTIFIER | ip
;
ip
: NUMBER+
;
port
: INT
;
dbName
: IDENTIFIER
;
user
: IDENTIFIER | NUMBER
;
password
: IDENTIFIER | NUMBER | STRING
;
|
test/asset/agda-stdlib-1.0/Data/Product/Relation/Binary/Pointwise/Dependent/WithK.agda | omega12345/agda-mode | 0 | 1951 | <filename>test/asset/agda-stdlib-1.0/Data/Product/Relation/Binary/Pointwise/Dependent/WithK.agda
------------------------------------------------------------------------
-- The Agda standard library
--
-- Properties that are related to pointwise lifting of binary
-- relations to sigma types and make use of heterogeneous equality
------------------------------------------------------------------------
{-# OPTIONS --with-K --safe #-}
module Data.Product.Relation.Binary.Pointwise.Dependent.WithK where
open import Data.Product
open import Data.Product.Relation.Binary.Pointwise.Dependent
open import Function
open import Function.Inverse using (Inverse)
open import Relation.Binary using (_⇒_)
open import Relation.Binary.HeterogeneousEquality as H using (_≅_)
open import Relation.Binary.Indexed.Heterogeneous using (IndexedSetoid)
open import Relation.Binary.PropositionalEquality as P using (_≡_)
------------------------------------------------------------------------
-- The propositional equality setoid over sigma types can be
-- decomposed using Pointwise
module _ {a b} {A : Set a} {B : A → Set b} where
Pointwise-≡⇒≡ : Pointwise B _≡_ (λ x y → x ≅ y) ⇒ _≡_
Pointwise-≡⇒≡ (P.refl , H.refl) = P.refl
≡⇒Pointwise-≡ : _≡_ ⇒ Pointwise B _≡_ (λ x y → x ≅ y)
≡⇒Pointwise-≡ P.refl = (P.refl , H.refl)
Pointwise-≡↔≡ : Inverse (setoid (P.setoid A) (H.indexedSetoid B))
(P.setoid (Σ A B))
Pointwise-≡↔≡ = record
{ to = record { _⟨$⟩_ = id; cong = Pointwise-≡⇒≡ }
; from = record { _⟨$⟩_ = id; cong = ≡⇒Pointwise-≡ }
; inverse-of = record
{ left-inverse-of = uncurry (λ _ _ → (P.refl , H.refl))
; right-inverse-of = λ _ → P.refl
}
}
|
src/signals.ads | jfouquart/synth | 263 | 10099 | -- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
-- with Ada.Interrupts.Names;
package Signals is
-- package BRK renames Ada.Interrupts;
-- Returns True if Interrupt signal (control-C) has been detected
function graceful_shutdown_requested return Boolean;
-- Returns True if a second Interrupt signal has been detected
function immediate_termination_requested return Boolean;
private
-- Disable SIGINT capture until it can work with the builders
-- pragma Unreserve_All_Interrupts;
--
-- protected Signal_Handler is
--
-- procedure capture_control_c;
-- pragma Attach_Handler (capture_control_c, BRK.Names.SIGINT);
--
-- -- procedure capture_terminate;
-- -- pragma Attach_Handler (capture_terminate, BRK.Names.SIGTERM);
--
-- end Signal_Handler;
control_c_break : Boolean := False;
seriously_break : Boolean := False;
end Signals;
|
oeis/142/A142850.asm | neoneye/loda-programs | 11 | 243111 | ; A142850: Primes congruent to 52 mod 61.
; Submitted by <NAME>
; 113,479,601,967,1699,2309,2797,3041,3163,3407,3529,4139,4261,4871,4993,5237,6091,6701,6823,7433,8287,9629,11093,12923,13411,14143,14387,14753,15241,15607,15973,16217,16339,17681,18047,18169,18413,19267,20731,21341,22073,23293,23537,24391,25367,25733,26099,26953,27197,28051,28661,29027,29759,29881,30491,31223,32077,32321,32443,32687,33053,34273,34883,36469,36713,37201,37567,37811,38177,38299,38543,39397,40129,40739,41227,41593,41959,42569,43789,44887,45131,45497,45863,46229,46351,49157,49279
mov $1,56
mov $2,$0
add $2,2
pow $2,2
lpb $2
sub $2,1
mov $3,$1
mul $3,2
seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
sub $0,$3
add $1,61
mov $4,$0
max $4,0
cmp $4,$0
mul $2,$4
lpe
mov $0,$1
mul $0,2
sub $0,121
|
minimum-t.als | msaxena2/pos | 0 | 3265 | <reponame>msaxena2/pos
/*
Copyright 2017 <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
module minimalt
abstract sig Node {}
sig SaneNode extends Node {}
sig SlashedNode extends Node {}
sig View {
v_prev: lone View
}
sig Hash { // actually (H, v)
h_prev: lone Hash,
h_view: one View
}
fact {
no x : Hash | x in x.(^h_prev)
}
fact {
no x : View | x in x.(^v_prev)
}
sig Commit {
c_hash : Hash,
c_sender: one Node
}
sig Prepare {
p_hash : Hash,
p_view_src : View,
p_sender: one Node
}
fact {
all p : Prepare | p.p_view_src in (p.p_hash.h_view.(^v_prev))
}
// Slashing condition [i]
pred slashed1 (s : Node) {
some c : Commit |
s in c.c_sender &&
(#{n : Node | some p : Prepare | p.p_sender = n && p.p_hash = c.c_hash}). mul[ 3] < mul[ #{n : Node}, 2 ]
}
// Slashing condition [ii]
pred slashed2 (s : Node) {
some p : Prepare |
(s in p.p_sender && some p.p_view_src.v_prev) &&
not (
some h_anc : Hash | some v_src : View |
h_anc in p.p_hash.(^h_prev) && h_anc.h_view = p.p_view_src &&
(#{n : Node | some p' : Prepare | p'.p_sender = n && p'.p_hash = h_anc && p'.p_view_src = v_src }). mul[ 3] >= (#{n : Node}).mul[ 2 ])
}
// Slashing condition [iii]
pred slashed3 (s : Node) {
some c : Commit | s in c.c_sender && not (all p : Prepare | c.c_sender = p.p_sender &&
p.p_view_src in c.c_hash.h_view.(^v_prev) && c.c_hash.h_view in p.p_hash.h_view.(^v_prev)
implies 0 = 1)
}
// Slashing condition [iv]
pred slashed4 (s : Node) {
some p0: Prepare | some p1:Prepare | s in p0.p_sender && p0.p_sender = p1.p_sender && p0.p_hash.h_view = p1.p_hash.h_view && not
(p0.p_view_src = p1.p_view_src && p0.p_hash = p1.p_hash)
}
pred some_commit {
some c : Commit |
c.c_sender in SaneNode
}
pred some_prepare_new {
some p : Prepare | some c : Commit |
some p.p_view_src.v_prev && p.p_sender in SaneNode && c.c_sender = p.p_sender
}
fact {
all h : Hash |
h.h_prev.h_view = h.h_view.v_prev
}
fact {
all v0, v1 : View | v0 in v1.(*v_prev) or v1 in v0.(*v_prev)
}
fact {
{n : Node | n.slashed1 or n.slashed2 or n.slashed3 or n.slashed4} = { n : Node | not n in SaneNode }
}
pred incompatible_commits {
some Node &&
some h0, h1 : Hash | (not h0 in h1.(*h_prev)) &&
(not h1 in h0.(*h_prev)) &&
(#{n0 : Node | some c0 : Commit | c0.c_sender = n0 && c0.c_hash = h0}).mul[3] >= (#Node).mul[2] &&
(#{n1 : Node | some c1 : Commit | c1.c_sender = n1 && c1.c_hash = h1}).mul[3] >= (#Node).mul[2] &&
(#SlashedNode).mul[3] < (#Node)
}
// how to do the degree of ancestors
// run ownPrev for 10
run incompatible_commits for 4
|
vendor/udis86/tests/test64.asm | sshao/rubinius | 3 | 88870 | [bits 64]
mov rax, 0x102030405060708
mov [eax+0x10], ax
mov [eax+0x1000], ebx
mov [ebp+eax+0x0], esi
mov qword [ebp+edi+0x1000], 0x10
mov byte [esp], 0x10
mov [eax], rax
mov [r12], eax
mov [r13+r12+0x0], eax
mov [r8*4+0x0], sil
inc rax
dec rax
mov [rip+0x200], rax
mov rax, 0x10000
push rax
push r12
call word near [r8]
call qword near [rax]
call word far [r8]
call dword far [rax]
cbw
cwde
cdqe
cwd
cdq
cqo
cmovl rax, [rax]
cmovge eax, [rax]
clflush [r14]
cmp [rax], rax
cmp rbx, r12
cmp r12d, r8d
cmpsb
cmpsw
cmpsd
cmpsq
cmpxchg [eax], r14
cmpxchg8b [ebx]
inc r12d
inc dword [rax]
dec r11w
hlt
imul rax, [eax+ebx*8+0x100000], 0x10
idiv dword [r12]
enter 0x100, 0x0
enter 0x100, 0x1
enter 0x100, 0x10
in al, 0x10
in ax, 0x10
in eax, 0x10
lfs eax, [eax]
lgs eax, [ebx]
lea eax, [rbx]
lea r11, [eax]
lodsb
lodsq
lodsd
push rax
push r11
xchg [eax], sil
xchg [eax], ebx
xchg [eax], bx
xchg r8, rax
xchg r9, rax
xchg cx, ax
movsd
movsq
mov al, r11b
mov sil, al
mov r11b, dil
ret 0x10
pop rax
pop r11
pop qword [eax]
insd
outsd
mov [r14d], cs
mov cs, [ebx+ecx]
pushfq
scasq
lar rax, [eax]
lsl ax, [rbx]
movups xmm0, [r12d]
movupd xmm0, [r12d]
movsldup xmm0, [r12d]
movups xmm0, xmm1
movups xmm10, xmm12
movups xmm0, xmm12
movlps xmm0, [rax]
movlps [rax], xmm0
unpcklps xmm4, xmm5
unpckhps xmm4, xmm5
movhps xmm3, [eax]
movhps [rax], xmm3
movss xmm0, [eax]
movss [eax], xmm0
movlpd [eax], xmm0
movlpd xmm0, [eax]
unpcklpd xmm2, xmm4
unpckhpd xmm3, [eax+ebx*8+0xffffffff]
movhpd xmm3, [rax]
movhpd [rax], xmm2
movsd xmm3, xmm4
movddup xmm3, [rax]
mov dr0, rax
mov rax, dr1
movnti [eax], eax
movnti [rax], rax
movd dword [eax], xmm0
movd qword [eax], xmm0
movd xmm11, qword [eax]
vmmcall
vmrun
clgi
stgi
mfence
lfence
sfence
clflush [rax]
mov cr8, rax
push qword [eax]
push word [eax]
add bh, bh
add dil, dil
add sil, bpl
add al, sil
add rax, r12
add eax, r12d
prefetcht0 [eax]
prefetchnta [eax]
prefetch [eax]
add [r8], r9b
mov [rax-0x1], eax
inc rax
jmp qword near [eax]
jmp rax
mov [0x10], rax
mov rax, [0x10]
mov rax, 0x102030405060708
nop
xchg r8, rax
push ax
push rax
push r11
mov rax, [0x100]
pmovmskb r12d, xmm14
movdq2q mm0, xmm13
psrlw xmm10, 0x10
psraw xmm7, 0x1
psllw xmm12, 0x23
swapgs
fadd dword [rax+rbx]
shl rsi, 1
|
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0x48_notsx.log_21829_560.asm | ljhsiun2/medusa | 9 | 445 | .global s_prepare_buffers
s_prepare_buffers:
push %r15
push %r8
push %rax
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_A_ht+0xc5d6, %rsi
lea addresses_UC_ht+0x14116, %rdi
nop
and $1519, %rdx
mov $101, %rcx
rep movsb
and $22368, %rdi
lea addresses_normal_ht+0xbc5c, %rsi
lea addresses_A_ht+0x57a2, %rdi
mfence
mov $47, %rcx
rep movsl
nop
nop
nop
nop
sub %rsi, %rsi
lea addresses_WC_ht+0x14c36, %rdi
nop
nop
nop
nop
sub %rbp, %rbp
mov $0x6162636465666768, %rcx
movq %rcx, (%rdi)
xor %rdx, %rdx
lea addresses_WT_ht+0x3356, %rsi
lea addresses_UC_ht+0x1734e, %rdi
nop
nop
nop
dec %r15
mov $55, %rcx
rep movsb
dec %rdi
lea addresses_normal_ht+0x101d6, %rdx
clflush (%rdx)
nop
nop
nop
cmp %rcx, %rcx
movw $0x6162, (%rdx)
nop
cmp %r15, %r15
lea addresses_D_ht+0x183d6, %rsi
lea addresses_normal_ht+0x8b76, %rdi
nop
nop
nop
nop
sub %r8, %r8
mov $12, %rcx
rep movsw
nop
nop
nop
and $41924, %rcx
lea addresses_UC_ht+0x1dd3, %rbp
nop
nop
nop
nop
cmp $24646, %rsi
movl $0x61626364, (%rbp)
and $47569, %rsi
lea addresses_WT_ht+0x198ac, %rsi
lea addresses_UC_ht+0x9ad6, %rdi
xor %rax, %rax
mov $19, %rcx
rep movsq
nop
nop
nop
nop
nop
sub %rax, %rax
lea addresses_A_ht+0x1c59a, %rcx
nop
nop
cmp %rbp, %rbp
movb (%rcx), %al
nop
nop
nop
nop
nop
and $18766, %r8
lea addresses_D_ht+0x946, %rax
clflush (%rax)
nop
nop
nop
sub $56726, %rdi
movups (%rax), %xmm3
vpextrq $1, %xmm3, %rcx
nop
nop
nop
xor %r15, %r15
lea addresses_normal_ht+0x73d6, %rsi
inc %r15
movups (%rsi), %xmm1
vpextrq $1, %xmm1, %rax
nop
sub $58181, %r8
lea addresses_WT_ht+0x9c46, %rsi
nop
nop
nop
nop
and $53508, %rdi
mov (%rsi), %rcx
nop
sub %rbp, %rbp
lea addresses_A_ht+0x176d6, %rsi
lea addresses_WT_ht+0x6ed6, %rdi
nop
nop
nop
xor %r15, %r15
mov $107, %rcx
rep movsq
nop
nop
nop
nop
nop
add %rax, %rax
lea addresses_WT_ht+0x16a66, %rbp
nop
nop
nop
nop
nop
cmp $19695, %rdx
mov $0x6162636465666768, %rdi
movq %rdi, (%rbp)
nop
nop
and %rbp, %rbp
lea addresses_A_ht+0x145d6, %rdx
nop
nop
nop
nop
sub %rbp, %rbp
movb (%rdx), %al
nop
nop
cmp $21554, %rsi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %rax
pop %r8
pop %r15
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r8
push %r9
push %rax
push %rbp
push %rcx
push %rdx
// Store
lea addresses_A+0xd67a, %rcx
cmp $55035, %rax
movw $0x5152, (%rcx)
nop
nop
cmp $24121, %rax
// Load
lea addresses_D+0xd1d6, %r9
nop
nop
nop
xor %r11, %r11
mov (%r9), %ax
nop
nop
nop
nop
nop
cmp %rdx, %rdx
// Faulty Load
lea addresses_RW+0xa7d6, %rbp
and $50233, %r9
movb (%rbp), %r8b
lea oracles, %r11
and $0xff, %r8
shlq $12, %r8
mov (%r11,%r8,1), %r8
pop %rdx
pop %rcx
pop %rbp
pop %rax
pop %r9
pop %r8
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_RW', 'congruent': 0}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_A', 'congruent': 2}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_D', 'congruent': 6}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_RW', 'congruent': 0}}
<gen_prepare_buffer>
{'dst': {'same': False, 'congruent': 6, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_A_ht'}}
{'dst': {'same': False, 'congruent': 0, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_normal_ht'}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_WC_ht', 'congruent': 5}, 'OP': 'STOR'}
{'dst': {'same': False, 'congruent': 3, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 5, 'type': 'addresses_WT_ht'}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 2, 'type': 'addresses_normal_ht', 'congruent': 9}, 'OP': 'STOR'}
{'dst': {'same': False, 'congruent': 5, 'type': 'addresses_normal_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 9, 'type': 'addresses_D_ht'}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 4, 'type': 'addresses_UC_ht', 'congruent': 0}, 'OP': 'STOR'}
{'dst': {'same': False, 'congruent': 8, 'type': 'addresses_UC_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 1, 'type': 'addresses_WT_ht'}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 1, 'type': 'addresses_A_ht', 'congruent': 2}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_D_ht', 'congruent': 4}}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_normal_ht', 'congruent': 8}}
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_WT_ht', 'congruent': 4}}
{'dst': {'same': False, 'congruent': 7, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 5, 'type': 'addresses_A_ht'}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_WT_ht', 'congruent': 4}, 'OP': 'STOR'}
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': True, 'size': 1, 'type': 'addresses_A_ht', 'congruent': 7}}
{'32': 21829}
32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32
*/
|
Lab_05/Lab_5_HW_Mult.asm | dthornton22/CPE325_FA20_UAH | 1 | 81255 | ;-------------------------------------------------------------------------------
; File: Lab_5_HW_Mult.asm
; Description: This subroutine uses a hardware multiplier to multiply numbers
; Input: Integers b, result
; Output: Integer product of b and result
; Author: <NAME> (<EMAIL>)
; Lab Section: 2
; Date: September 30, 2020
;-------------------------------------------------------------------------------
.cdecls C,LIST,"msp430.h" ; Include device header file
.def HW_Mult
.text
HW_Mult:
mov R4, &MPY ; move b into multiplication register
mov R7, &OP2 ; move result to general purpose operator
nop
nop
nop
mov RESLO, R7 ; move the product to R7 (result)
mov R7, 0(R6) ; move result into the HW array
ret ; return from subroutine
.end
|
programs/oeis/127/A127750.asm | neoneye/loda | 22 | 17728 | <filename>programs/oeis/127/A127750.asm<gh_stars>10-100
; A127750: Row sums of inverse of number triangle A(n,k) = 1/(2n+1) if k <= n <= 2k, 0 otherwise.
; 1,3,2,5,2,4,2,7,2,4,2,6,2,4,2,9,2,4,2,6,2,4,2,8,2,4,2,6,2,4,2,11,2,4,2,6,2,4,2,8,2,4,2,6,2,4,2,10,2,4,2,6,2,4,2,8,2,4,2,6,2,4,2,13,2,4,2,6,2,4,2,8,2,4,2,6,2,4,2,10,2,4,2,6,2,4,2,8,2,4,2,6,2,4,2,12,2,4,2,6
mov $2,$0
lpb $0
mod $0,2
add $1,1
add $1,$0
div $2,2
mul $0,$2
lpe
add $1,1
mov $0,$1
|
oeis/168/A168427.asm | neoneye/loda-programs | 11 | 101070 | <filename>oeis/168/A168427.asm
; A168427: 3^n mod 30.
; 1,3,9,27,21,3,9,27,21,3,9,27,21,3,9,27,21,3,9,27,21,3,9,27,21,3,9,27,21,3,9,27,21,3,9,27,21,3,9,27,21,3,9,27,21,3,9,27,21,3,9,27,21,3,9,27,21,3,9,27,21,3,9,27,21,3,9,27,21,3,9,27,21,3,9,27,21,3,9,27,21,3,9,27,21,3,9,27,21,3,9,27,21,3,9,27,21,3,9,27
lpb $0
sub $0,1
dif $0,5
mod $1,10
mul $1,3
add $1,2
lpe
mov $0,$1
add $0,1
|
itunes/test.applescript | pahoughton/pah-misc-applescript | 0 | 1661 | #!/usr/bin/osascript
set myOut to open for access "./tout.txt" with write permission
tell application "iTunes"
repeat with curTrack in tracks
-- write name of curTrack to myOut
write "test" to myOut
end repeat
end tell
close access myOut
|
audio/sfx/withdraw_deposit_3.asm | AmateurPanda92/pokemon-rby-dx | 9 | 162863 | SFX_Withdraw_Deposit_3_Ch4:
duty 1
pitchenvelope 3, -2
squarenote 4, 15, 2, 1280
pitchenvelope 2, 2
squarenote 4, 14, 2, 1280
pitchenvelope 3, -2
squarenote 4, 15, 2, 1792
pitchenvelope 2, 2
squarenote 15, 14, 2, 1792
pitchenvelope 0, 0
endchannel
|
tests/dw1000-system_time-tests.adb | SALLYPEMDAS/DW1000 | 9 | 30756 | -------------------------------------------------------------------------------
-- Copyright (c) 2016 <NAME>
--
-- 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.
-------------------------------------------------------------------------------
with Ada.Exceptions; use Ada.Exceptions;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with AUnit.Assertions; use AUnit.Assertions;
with DW1000.Types; use DW1000.Types;
with System.Multiprocessors; use System.Multiprocessors;
package body DW1000.System_Time.Tests
is
-- The tests in this package perform exhaustive tests over the full 40-bit
-- range in order to prove certain properties about the system time types.
--
-- In order to speed up the tests, the tests take advantage of
-- multiprocessors to split the 2**40 test range into multiple sub-ranges,
-- and each sub-range is delegated to a task. This provides a roughly
-- linear reduction in execution time, based on the number of CPU threads.
--
-- However, even when taking advantage of multicore processors the tests
-- take many hours to complete (about 10 hours per exhaustive test on my
-- Intel Core i7-2630QM laptop).
--
-- The tests could be sped up even further by enabling compiler
-- optimizations. However, when mixed with AUnit the optimization switches
-- seem to cause the tests to crash at runtime with a Storage_Error fault,
-- so optimizations should be disabled until a resolution to this problem
-- is found.
----------------------------------------------------------------------------
-- This protected type is used to synchronize with the tasks which are
-- running the tests.
--
-- The environment thread calls Reset before starting its child tasks in
-- order to reset the state between tests.
--
-- Each child task MUST call Notify when it has finished its portion of the
-- test (successfully or not). When all N tasks have called notify the Wait
-- entry will be unblocked.
--
-- The environment task waits for all child tasks to finish by calling the
-- Wait entry. It will be unblocked once all child tasks have called
-- Notify.
--
-- Each child task should periodically query the Test_Failed function to
-- check if another child task has already encountered a test failure.
-- If Test_Failed returns True then the child task should abort its tests
-- ASAP (it must still call Notify, though). This permits the entire test
-- to finish early when a failure is found.
--
-- The parameter N is the number of child tasks that are being used.
-- It's recommended to set this to System.Multiprocessors.Number_Of_CPUs
-- and take advantage of all available logical CPU cores.
protected type Test_Result_PO_Type (N : CPU)
is
entry Wait (Test_Result : out Boolean;
Fail_Message : out Unbounded_String);
procedure Reset;
procedure Notify (Test_Result : in Boolean;
Fail_Message : in Unbounded_String);
function Test_Failed return Boolean;
private
Count : CPU_Range := 0;
Result : Boolean := True;
Message : Unbounded_String := Null_Unbounded_String;
end Test_Result_PO_Type;
protected body Test_Result_PO_Type
is
entry Wait (Test_Result : out Boolean;
Fail_Message : out Unbounded_String)
when Count = N
is
begin
Test_Result := Result;
Fail_Message := Message;
end Wait;
procedure Reset
is
begin
Count := 0;
Result := True;
Message := Null_Unbounded_String;
end Reset;
procedure Notify (Test_Result : in Boolean;
Fail_Message : in Unbounded_String)
is
begin
if Count < N then
Count := Count + 1;
end if;
if Result and not Test_Result then
Result := False;
Message := Fail_Message;
end if;
end Notify;
function Test_Failed return Boolean
is
begin
return not Result;
end Test_Failed;
end Test_Result_PO_Type;
Test_Result_PO : Test_Result_PO_Type (Number_Of_CPUs);
----------------------------------------------------------------------------
-- Test_Bits_40_Fine
----------------------------------------------------------------------------
procedure Test_Bits_40_Fine (T : in out Test)
is
-- This task type runs a range of test values for this test.
-- Multiple tasks are used to process different ranges to provide a
-- significant speedup
task type Runner_Task is
entry Start (Test_First : in Bits_40;
Test_Last : in Bits_40);
end Runner_Task;
task body Runner_Task
is
First : Bits_40;
Last : Bits_40;
begin
accept Start (Test_First : in Bits_40;
Test_Last : in Bits_40) do
First := Test_First;
Last := Test_Last;
end Start;
loop
-- Don't check for test failure on every iteration, in order to
-- prevent slowdown and lots of lock contention on the PO.
for I in Bits_40 range 0 .. 1_000_000 loop
pragma Assert
(First = To_Bits_40 (To_Fine_System_Time (First)),
"failed for X =" & Bits_40'Image (First) &
"actual =" &
Bits_40'Image (To_Bits_40 (To_Fine_System_Time (First))));
exit when First = Last;
First := First + 1;
end loop;
-- Stop early if the test has already failed
-- (another task has noticed a test failure).
exit when Test_Result_PO.Test_Failed or else First = Last;
end loop;
-- Test success.
Test_Result_PO.Notify (True, Null_Unbounded_String);
exception
when Error : others =>
Test_Result_PO.Notify
(False, To_Unbounded_String (Exception_Message (Error)));
end Runner_Task;
Runners : array (CPU range 1 .. Number_Of_CPUs) of Runner_Task;
Test_Result : Boolean;
Fail_Message : Unbounded_String;
First : Bits_40;
Last : Bits_40;
Chunk_Length : constant Bits_40 := 2**40 / Runners'Length;
begin
Test_Result_PO.Reset;
First := 0;
Last := Chunk_Length - 1;
for I in Runners'Range loop
if I < Number_Of_CPUs then
Runners (I).Start (First, Last);
else
Runners (I).Start (First, Bits_40'Last);
end if;
First := Last + 1;
Last := Last + (Chunk_Length - 1);
end loop;
-- Wait for all tasks to terminate (successfully or not).
-- Tasks will stop early when they notice that the test has failed.
Test_Result_PO.Wait (Test_Result, Fail_Message);
Assert (Test_Result, To_String (Fail_Message));
end Test_Bits_40_Fine;
------------------------------------------------------------------------- ---
-- Test_Bits_40_Coarse
----------------------------------------------------------------------------
procedure Test_Bits_40_Coarse (T : in out Test)
is
-- This task type runs a range of test values for this test.
-- Multiple tasks are used to process different ranges to provide a
-- significant speedup
task type Runner_Task is
entry Start (Test_First : in Bits_40;
Test_Last : in Bits_40);
end Runner_Task;
task body Runner_Task
is
First : Bits_40;
Last : Bits_40;
begin
accept Start (Test_First : in Bits_40;
Test_Last : in Bits_40) do
First := Test_First;
Last := Test_Last;
end Start;
loop
-- Don't check for test failure on every iteration, in order to
-- prevent slowdown and lots of lock contention on the PO.
for I in Bits_40 range 0 .. 1_000_000 loop
pragma Assert
((First and 16#FFFFFFFE00#) =
To_Bits_40 (To_Coarse_System_Time (First)),
"failed for Y =" & Bits_40'Image (First) &
", actual =" &
Bits_40'Image (To_Bits_40 (To_Coarse_System_Time (First)))
);
exit when First = Last;
First := First + 1;
end loop;
-- Stop early if the test has already failed
-- (another task has noticed a test failure).
exit when Test_Result_PO.Test_Failed or else First = Last;
end loop;
-- Test success.
Test_Result_PO.Notify (True, Null_Unbounded_String);
exception
when Error : others =>
Test_Result_PO.Notify
(False, To_Unbounded_String (Exception_Message (Error)));
end Runner_Task;
Runners : array (CPU range 1 .. Number_Of_CPUs) of Runner_Task;
Test_Result : Boolean;
Fail_Message : Unbounded_String;
First : Bits_40;
Last : Bits_40;
Chunk_Length : constant Bits_40 := 2**40 / Runners'Length;
begin
Test_Result_PO.Reset;
First := 0;
Last := Chunk_Length - 1;
for I in Runners'Range loop
if I < Number_Of_CPUs then
Runners (I).Start (First, Last);
else
Runners (I).Start (First, Bits_40'Last);
end if;
First := Last + 1;
Last := Last + (Chunk_Length - 1);
end loop;
-- Wait for all tasks to terminate (successfully or not).
-- Tasks will stop early when they notice that the test has failed.
Test_Result_PO.Wait (Test_Result, Fail_Message);
Assert (Test_Result, To_String (Fail_Message));
end Test_Bits_40_Coarse;
----------------------------------------------------------------------------
-- Test_To_Coarse_System_Time
----------------------------------------------------------------------------
procedure Test_To_Coarse_System_Time (T : in out Test)
is
-- This task type runs a range of test values for this test.
-- Multiple tasks are used to process different ranges to provide a
-- significant speedup
task type Runner_Task is
entry Start (Test_First : in Coarse_System_Time;
Test_Last : in Coarse_System_Time);
end Runner_Task;
task body Runner_Task
is
First : Coarse_System_Time;
Last : Coarse_System_Time;
begin
accept Start (Test_First : in Coarse_System_Time;
Test_Last : in Coarse_System_Time) do
First := Test_First;
Last := Test_Last;
end Start;
loop
-- Don't check for test failure on every iteration, in order to
-- prevent slowdown and lots of lock contention on the PO.
for I in Integer range 0 .. 1_000_000 loop
pragma Assert
(First = To_Coarse_System_Time (To_Fine_System_Time (First)),
"failed for X =" & Coarse_System_Time'Image (First));
exit when First = Last;
First := Coarse_System_Time'Succ (First);
end loop;
-- Stop early if the test has already failed
-- (another task has noticed a test failure).
exit when Test_Result_PO.Test_Failed or else First = Last;
end loop;
-- Test success.
Test_Result_PO.Notify (True, Null_Unbounded_String);
exception
when Error : others =>
Test_Result_PO.Notify
(False, To_Unbounded_String (Exception_Message (Error)));
end Runner_Task;
Runners : array (CPU range 1 .. Number_Of_CPUs) of Runner_Task;
Test_Result : Boolean;
Fail_Message : Unbounded_String;
First : Coarse_System_Time;
Last : Coarse_System_Time;
Chunk_Length : constant Coarse_System_Time :=
Coarse_System_Time'Last / Runners'Length;
begin
Test_Result_PO.Reset;
First := 0.0;
Last := Chunk_Length;
for I in Runners'Range loop
if I < Number_Of_CPUs then
Runners (I).Start (First, Last);
First := Last;
Last := Last + Chunk_Length;
else
Runners (I).Start (First, Coarse_System_Time'Last);
end if;
end loop;
-- Wait for all tasks to terminate (successfully or not).
-- Tasks will stop early when they notice that the test has failed.
Test_Result_PO.Wait (Test_Result, Fail_Message);
Assert (Test_Result, To_String (Fail_Message));
end Test_To_Coarse_System_Time;
end DW1000.System_Time.Tests;
|
programs/oeis/083/A083582.asm | neoneye/loda | 22 | 14835 | <filename>programs/oeis/083/A083582.asm
; A083582: a(n) = (8*2^n-5*(-1)^n)/3.
; 1,7,9,23,41,87,169,343,681,1367,2729,5463,10921,21847,43689,87383,174761,349527,699049,1398103,2796201,5592407,11184809,22369623,44739241,89478487,178956969,357913943,715827881,1431655767,2863311529,5726623063,11453246121,22906492247,45812984489,91625968983,183251937961,366503875927,733007751849,1466015503703,2932031007401,5864062014807,11728124029609,23456248059223,46912496118441,93824992236887,187649984473769,375299968947543,750599937895081,1501199875790167,3002399751580329,6004799503160663,12009599006321321,24019198012642647,48038396025285289,96076792050570583,192153584101141161,384307168202282327,768614336404564649,1537228672809129303,3074457345618258601,6148914691236517207,12297829382473034409,24595658764946068823,49191317529892137641,98382635059784275287,196765270119568550569,393530540239137101143,787061080478274202281,1574122160956548404567,3148244321913096809129,6296488643826193618263,12592977287652387236521,25185954575304774473047,50371909150609548946089,100743818301219097892183,201487636602438195784361,402975273204876391568727,805950546409752783137449,1611901092819505566274903,3223802185639011132549801,6447604371278022265099607,12895208742556044530199209,25790417485112089060398423,51580834970224178120796841,103161669940448356241593687,206323339880896712483187369,412646679761793424966374743,825293359523586849932749481,1650586719047173699865498967,3301173438094347399730997929,6602346876188694799461995863,13204693752377389598923991721,26409387504754779197847983447,52818775009509558395695966889,105637550019019116791391933783,211275100038038233582783867561,422550200076076467165567735127,845100400152152934331135470249,1690200800304305868662270940503
mov $1,2
pow $1,$0
mov $2,$0
mod $2,2
add $2,1
add $1,$2
mul $1,8
div $1,6
mul $1,2
sub $1,3
mov $0,$1
|
tests-antlr4/src/main/resources/commonlexer/number.g4 | f1194361820/tests | 0 | 2560 | grammar number;
fragment INT: '0' | [1-9][0-9]*; // no leading zeros
fragment SIC: [Ee][+\-]?INT;
NUMBER
: '-'? INT
| '-'? INT SIC
| '-'? INT '.' INT SIC?
;
|
programs/oeis/147/A147534.asm | karttu/loda | 1 | 96525 | <reponame>karttu/loda
; A147534: a(n) is congruent to (1,1,2) mod 3.
; 1,1,2,4,4,5,7,7,8,10,10,11,13,13,14,16,16,17,19,19,20,22,22,23,25,25,26,28,28,29,31,31,32,34,34,35,37,37,38,40,40,41,43,43,44,46,46,47,49,49,50,52,52,53,55,55,56,58,58,59,61,61,62,64,64,65,67,67,68,70,70,71
mov $1,$0
gcd $0,3
div $0,3
add $1,$0
|
oeis/036/A036230.asm | neoneye/loda-programs | 11 | 166975 | <gh_stars>10-100
; A036230: a(n+1) = a(n) + sum of digits of a(n) starting with 110.
; Submitted by <NAME>(s4)
; 110,112,116,124,131,136,146,157,170,178,194,208,218,229,242,250,257,271,281,292,305,313,320,325,335,346,359,376,392,406,416,427,440,448,464,478,497,517,530,538,554,568,587,607,620,628,644,658,677,697,719
mov $2,$0
add $2,8
mov $3,$0
lpb $3
add $2,1
mov $0,$2
sub $2,1
sub $3,1
sub $0,$3
seq $0,7953 ; Digital sum (i.e., sum of digits) of n; also called digsum(n).
add $2,$0
lpe
mov $0,$2
add $0,102
|
3-mid/opengl/source/profile/safe/opengl-profile.adb | charlie5/lace | 20 | 23625 | <filename>3-mid/opengl/source/profile/safe/opengl-profile.adb
separate (openGL)
function Profile return profile_Kind
is
begin
return Safe;
end Profile;
|
Sources/Globe_3d/objects/globe_3d-impostor-terrain.ads | ForYouEyesOnly/Space-Convoy | 1 | 24473 | pragma Warnings (Off);
pragma Style_Checks (Off);
-------------------------------------------------------------------------
-- GLOBE_3D - GL - based, real - time, 3D engine
--
-- Copyright (c) <NAME>/<NAME> 2007
-- CH - 8810 Horgen
-- SWITZERLAND
-- Permission granted to use this software, without any warranty,
-- for any purpose, provided this copyright note remains attached
-- and unmodified if sources are distributed further.
-------------------------------------------------------------------------
with GL, GL.Geometry, GL.Textures, GL.Skins, GL.skinned_Geometry;
package GLOBE_3D.Impostor.Terrain is
-- handles impostoring of terrain 'visuals', which has greater image precision needs, to help avoid border cracks.
type Impostor is new globe_3d.impostor.Impostor with private;
type p_Impostor is access all Impostor'Class;
procedure pre_Calculate (o : in out Impostor);
procedure set_Target (o : in out Impostor; Target : in p_Visual);
function update_Required (o : access Impostor; the_Camera : in globe_3d.p_Camera) return Boolean;
procedure update (o : in out Impostor; the_Camera : in p_Camera;
texture_Pool : in GL.textures.p_Pool);
procedure free (o : in out p_Impostor);
private
type Impostor is new globe_3d.impostor.Impostor with
record
current_Complete : Boolean;
prior_copy_Width : GL.SizeI := 0;
prior_copy_Height : GL.SizeI := 0;
prior_Complete : Boolean := False;
end record;
end GLOBE_3D.Impostor.Terrain;
|
release/src/router/gmp/source/mpn/x86_64/pentium4/aorslsh1_n.asm | zhoutao0712/rtn11pb1 | 184 | 5618 | dnl AMD64 mpn_addlsh1_n, mpn_sublsh1_n -- rp[] = up[] +- (vp[] << 1),
dnl optimized for Pentium 4.
dnl Copyright 2008 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU Lesser General Public License as published
dnl by the Free Software Foundation; either version 3 of the License, or (at
dnl your option) any later version.
dnl The GNU MP Library is distributed in the hope that it will be useful, but
dnl WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
dnl or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
dnl License for more details.
dnl You should have received a copy of the GNU Lesser General Public License
dnl along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
include(`../config.m4')
C cycles/limb
C K8,K9: 3.8
C K10: 4.8
C P4: 5.8
C P6-15: ?
C INPUT PARAMETERS
define(`rp',`%rdi')
define(`up',`%rsi')
define(`vp',`%rdx')
define(`n', `%rcx')
ifdef(`OPERATION_addlsh1_n', `
define(ADDSUB, add)
define(func, mpn_addlsh1_n)')
ifdef(`OPERATION_sublsh1_n', `
define(ADDSUB, sub)
define(func, mpn_sublsh1_n)')
MULFUNC_PROLOGUE(mpn_addlsh1_n mpn_sublsh1_n)
ASM_START()
TEXT
ALIGN(16)
PROLOGUE(func)
push %rbx
push %r12
push %rbp
mov (vp), %r9
shl %r9
mov 4(vp), R32(%rbp)
xor R32(%rbx), R32(%rbx)
mov R32(n), R32(%rax)
and $3, R32(%rax)
jne L(n00) C n = 0, 4, 8, ...
mov (up), %r8
mov 8(up), %r10
shr $31, R32(%rbp)
ADDSUB %r9, %r8
mov 8(vp), %r9
lea (%rbp,%r9,2), %r9
setc R8(%rax)
mov 12(vp), R32(%rbp)
lea -16(rp), rp
jmp L(L00)
L(n00): cmp $2, R32(%rax)
jnc L(n01) C n = 1, 5, 9, ...
mov (up), %r11
lea -8(rp), rp
shr $31, R32(%rbp)
ADDSUB %r9, %r11
setc R8(%rbx)
dec n
jz L(1) C jump for n = 1
mov 8(up), %r8
mov 8(vp), %r9
lea (%rbp,%r9,2), %r9
mov 12(vp), R32(%rbp)
lea 8(up), up
lea 8(vp), vp
jmp L(L01)
L(n01): jne L(n10) C n = 2, 6, 10, ...
mov (up), %r12
mov 8(up), %r11
shr $31, R32(%rbp)
ADDSUB %r9, %r12
mov 8(vp), %r9
lea (%rbp,%r9,2), %r9
setc R8(%rax)
mov 12(vp), R32(%rbp)
lea 16(up), up
lea 16(vp), vp
jmp L(L10)
L(n10): mov (up), %r10
mov 8(up), %r12
shr $31, R32(%rbp)
ADDSUB %r9, %r10
mov 8(vp), %r9
lea (%rbp,%r9,2), %r9
setc R8(%rbx)
mov 12(vp), R32(%rbp)
lea -24(rp), rp
lea -8(up), up
lea -8(vp), vp
jmp L(L11)
L(c0): mov $1, R8(%rbx)
jmp L(rc0)
L(c1): mov $1, R8(%rax)
jmp L(rc1)
L(c2): mov $1, R8(%rbx)
jmp L(rc2)
ALIGN(16)
L(top): mov (up), %r8 C not on critical path
shr $31, R32(%rbp)
ADDSUB %r9, %r11 C not on critical path
mov (vp), %r9
lea (%rbp,%r9,2), %r9
setc R8(%rbx) C save carry out
mov 4(vp), R32(%rbp)
mov %r12, (rp)
ADDSUB %rax, %r11 C apply previous carry out
jc L(c0) C jump if ripple
L(rc0):
L(L01): mov 8(up), %r10
shr $31, R32(%rbp)
ADDSUB %r9, %r8
mov 8(vp), %r9
lea (%rbp,%r9,2), %r9
setc R8(%rax)
mov 12(vp), R32(%rbp)
mov %r11, 8(rp)
ADDSUB %rbx, %r8
jc L(c1)
L(rc1):
L(L00): mov 16(up), %r12
shr $31, R32(%rbp)
ADDSUB %r9, %r10
mov 16(vp), %r9
lea (%rbp,%r9,2), %r9
setc R8(%rbx)
mov 20(vp), R32(%rbp)
mov %r8, 16(rp)
ADDSUB %rax, %r10
jc L(c2)
L(rc2):
L(L11): mov 24(up), %r11
shr $31, R32(%rbp)
ADDSUB %r9, %r12
mov 24(vp), %r9
lea (%rbp,%r9,2), %r9
lea 32(up), up
lea 32(vp), vp
setc R8(%rax)
mov -4(vp), R32(%rbp)
mov %r10, 24(rp)
ADDSUB %rbx, %r12
jc L(c3)
L(rc3): lea 32(rp), rp
L(L10): sub $4, n
ja L(top)
L(end):
shr $31, R32(%rbp)
ADDSUB %r9, %r11
setc R8(%rbx)
mov %r12, (rp)
ADDSUB %rax, %r11
jnc L(1)
mov $1, R8(%rbx)
L(1): mov %r11, 8(rp)
lea (%rbx,%rbp), R32(%rax)
pop %rbp
pop %r12
pop %rbx
emms
ret
L(c3): mov $1, R8(%rax)
jmp L(rc3)
EPILOGUE()
ASM_END()
|
src/commands/process_input.adb | Ausbxuse/latin-dict | 0 | 11777 | <reponame>Ausbxuse/latin-dict
-- WORDS, a Latin dictionary, by <NAME> (USAF, Retired)
--
-- Copyright <NAME> (1936–2010)
--
-- This is a free program, which means it is proper to copy it and pass
-- it on to your friends. Consider it a developmental item for which
-- there is no charge. However, just for form, it is Copyrighted
-- (c). Permission is hereby freely given for any and all use of program
-- and data. You can sell it as your own, but at least tell me.
--
-- This version is distributed without obligation, but the developer
-- would appreciate comments and suggestions.
--
-- All parts of the WORDS system, source code and data files, are made freely
-- available to anyone who wishes to use them, for whatever purpose.
with Ada.Text_IO;
with Latin_Utils.Strings_Package; use Latin_Utils.Strings_Package;
with Latin_Utils.Latin_File_Names; use Latin_Utils.Latin_File_Names;
with Support_Utils.Word_Parameters; use Support_Utils.Word_Parameters;
with Support_Utils.Developer_Parameters; use Support_Utils.Developer_Parameters;
with Latin_Utils.Inflections_Package; use Latin_Utils.Inflections_Package;
with Latin_Utils.Dictionary_Package; use Latin_Utils.Dictionary_Package;
with Support_Utils.Word_Support_Package; use Support_Utils.Word_Support_Package;
with Latin_Utils.Preface;
with Words_Engine.Word_Package; use Words_Engine.Word_Package;
with Latin_Utils.Config; use Latin_Utils.Config;
--with Words_Engine.English_Support_Package;
--use Words_Engine.English_Support_Package;
with Banner;
use Latin_Utils;
with Words_Engine.Parse;
pragma Elaborate (Support_Utils.Word_Parameters);
procedure Process_Input (Configuration : Configuration_Type;
Command_Line : String := "")
is
-- use Inflections_Package.Integer_IO;
-- use Inflection_Record_IO;
use Ada.Text_IO;
procedure Delete_If_Open (Dict_Name : Dictionary_Kind) is
begin
begin
if Dict_IO.Is_Open (Dict_File (Dict_Name)) then
Dict_IO.Delete (Dict_File (Dict_Name));
else
Dict_IO.Open (Dict_File (Dict_Name), Dict_IO.In_File,
Path (Dict_File_Name & '.' & Ext (Dict_Name)));
Dict_IO.Delete (Dict_File (Dict_Name));
end if;
exception when others => null;
end; -- not there, so don't have to DELETE
end Delete_If_Open;
-- Get and handle a line of Input
-- return value says whether there is more Input, i.e. False -> quit
function Get_Input_Line return Boolean
is
Blank_Line : constant String (1 .. 2500) := (others => ' ');
Line : String (1 .. 2500) := (others => ' ');
L : Integer := 0;
begin
-- Block to manipulate file of lines
if Name (Current_Input) = Name (Standard_Input) then
Scroll_Line_Number :=
Integer (Ada.Text_IO.Line (Ada.Text_IO.Standard_Output));
--Preface.New_Line;
Preface.Put (" ");
end if;
Line := Blank_Line;
Get_Line (Line, L);
if (L = 0) or else (Trim (Line (1 .. L)) = "") then
-- Count blank lines
--LINE_NUMBER := LINE_NUMBER + 1;
if Name (Current_Input) = Name (Standard_Input) then
-- INPUT is keyboard
Preface.Put (" ");
Get_Line (Line, L);
-- Second try
if (L = 0) or else (Trim (Line (1 .. L)) = "") then
-- Two in a row
return False;
end if;
else
-- INPUT is file
--LINE_NUMBER := LINE_NUMBER + 1;
-- Count blank lines in file
if End_Of_File (Current_Input) then
Set_Input (Standard_Input);
Close (Input);
end if;
end if;
end if;
if Trim (Line (1 .. L)) /= "" then
-- Not a blank line so L (1) (in file Input)
if Line (1) = Start_File_Character then
if Name (Current_Input) /= Name (Standard_Input) then
Ada.Text_IO.Put_Line ("Cannot have file of words (@FILE) " &
"in an @FILE");
else
Ada.Text_IO.Open
(Input, Ada.Text_IO.In_File, Trim (Line (2 .. L)));
Ada.Text_IO.Set_Input (Input);
end if;
elsif Line (1) = Change_Parameters_Character and then
(Name (Current_Input) = Name (Standard_Input)) and then
not Config.Suppress_Preface
then
Change_Parameters;
elsif Line (1) = Change_Language_Character then
Change_Language (Line (2));
elsif
Line (1) = Change_Developer_Modes_Character and then
(Name (Current_Input) = Name (Standard_Input)) and then
not Config.Suppress_Preface
then
Change_Developer_Modes;
else
if Name (Current_Input) /= Name (Standard_Input) then
Preface.Put_Line (Line (1 .. L));
end if;
if Words_Mode (Write_Output_To_File) then
if not Config.Suppress_Preface then
New_Line (Output);
Ada.Text_IO.Put_Line (Output, Line (1 .. L));
end if;
end if;
-- Count lines to be parsed
Line_Number := Line_Number + 1;
Words_Engine.Parse.Parse_Line (Configuration, Line (1 .. L));
end if;
end if;
return True;
exception
when Name_Error | Use_Error =>
if Name (Current_Input) /= Name (Standard_Input) then
Set_Input (Standard_Input);
Close (Input);
end if;
Put_Line ("An unknown or unacceptable file name. Try Again");
return True;
when End_Error =>
-- The end of the input file resets to CON:
if Name (Current_Input) /= Name (Standard_Input) then
Set_Input (Standard_Input);
Close (Input);
if Method = Command_Line_Files then
raise Give_Up;
end if;
return True;
else
raise Give_Up;
end if;
when Status_Error =>
-- The end of the Input file resets to CON:
Put_Line ("Raised STATUS_ERROR");
return False;
end Get_Input_Line;
begin
-- PARSE
if Method = Command_Line_Input then
if Trim (Command_Line) /= "" then
Words_Engine.Parse.Parse_Line (Configuration, Command_Line);
end if;
else
-- Banner.Print_Main_Banner (Start_File_Character,
-- Change_Parameters_Character, Help_Character);
-- if English_Dictionary_Available (General) then
-- Preface.Put_Line (
-- Change_Language_Character & "E/L switches Eng-Lat/Lat-Eng");
-- end if;
if Configuration = Only_Meanings then
Banner.Print_Mode_Warning;
end if;
while Get_Input_Line loop
null;
end loop;
end if; -- On command line Input
begin
Stem_Io.Open (Stem_File (Local), Stem_Io.In_File,
Path (Stem_File_Name & '.' & Ext (Local)));
-- Failure to OPEN will raise an exception, to be handled below
if Stem_Io.Is_Open (Stem_File (Local)) then
Stem_Io.Delete (Stem_File (Local));
end if;
exception
when others =>
null; -- If cannot OPEN then it does not exist, so is deleted
end;
-- The rest of this seems like overkill, it might have been done elsewhere
Delete_If_Open (Local);
Delete_If_Open (Addons);
Delete_If_Open (Unique);
exception
when Storage_Error => -- Have tried at least twice, fail
Preface.Put_Line ("Continuing STORAGE_ERROR Exception in PARSE");
Preface.Put_Line ("If insufficient memory in DOS, try removing TSRs");
when Give_Up =>
Preface.Put_Line ("Exit...");
when others =>
Preface.Put_Line ("Unexpected exception raised in PARSE");
end Process_Input;
|
theorems/cw/cohomology/CofiberGrid.agda | mikeshulman/HoTT-Agda | 0 | 1861 | {-# OPTIONS --without-K --rewriting #-}
open import HoTT
open import homotopy.PushoutSplit
module cw.cohomology.CofiberGrid {i j k}
{A : Type i} {B : Type j} {C : Type k}
(f : A → B) (g : B → C) where
{-
A -------> B -----------> C
| | _/|
| | _/ |
| | __.D_ |
v v .--' | `-.v
1 ------> B/A ------|-> C/A
| | |
| v |
| __.E_ |
v .--' `-.v
1 ---------> C/B
-}
open import cw.cohomology.GridMap f g
private
B-to-B/A : B → B/A
B-to-B/A = cfcod' f
D-span : Span
D-span = span B/A C B B-to-B/A g
D : Type (lmax i (lmax j k))
D = Pushout D-span
private
module VSplit = PushoutRSplit (λ _ → tt) f g
module C/AToD = VSplit.Split
C/A-to-D : C/A → D
C/A-to-D = C/AToD.f
B/A-to-D : B/A → D
B/A-to-D = left
private
E : Type (lmax i (lmax j k))
E = Cofiber B/A-to-D
private
module HSplit = PushoutLSplit B-to-B/A (λ _ → tt) g
module C/BToE = HSplit.Split
C/B-to-E : C/B → E
C/B-to-E = C/BToE.f
private
module DToC/B = HSplit.Inner
D-to-C/B : D → C/B
D-to-C/B = DToC/B.f
D-to-E : D → E
D-to-E = cfcod
C/A-to-D-to-C/B : ∀ c/a → D-to-C/B (C/A-to-D c/a) == C/A-to-C/B c/a
C/A-to-D-to-C/B = Cofiber-elim
idp
(λ c → idp)
(λ a → ↓-='-in' $ ! $
ap (D-to-C/B ∘ C/A-to-D) (glue a)
=⟨ ap-∘ D-to-C/B C/A-to-D (glue a) ⟩
ap D-to-C/B (ap C/A-to-D (glue a))
=⟨ C/AToD.glue-β a |in-ctx ap D-to-C/B ⟩
ap D-to-C/B (ap left (glue a) ∙ glue (f a))
=⟨ ap-∙ D-to-C/B (ap left (glue a)) (glue (f a)) ⟩
ap D-to-C/B (ap left (glue a)) ∙ ap D-to-C/B (glue (f a))
=⟨ ap2 _∙_ (∘-ap D-to-C/B left (glue a)) (DToC/B.glue-β (f a)) ⟩
ap (λ _ → cfbase) (glue a) ∙ glue (f a)
=⟨ ap-cst cfbase (glue a) |in-ctx _∙ glue (f a) ⟩
glue (f a)
=⟨ ! $ C/AToC/B.glue-β a ⟩
ap C/A-to-C/B (glue a)
=∎)
D-to-C/B-to-E : ∀ d → C/B-to-E (D-to-C/B d) == D-to-E d
D-to-C/B-to-E = HSplit.split-inner
{- The public interface -}
C/A-to-C/B-comm-square : CommSquare C/A-to-C/B D-to-E C/A-to-D C/B-to-E
C/A-to-C/B-comm-square = comm-sqr λ c/a → ap C/B-to-E (! (C/A-to-D-to-C/B c/a))
∙ D-to-C/B-to-E (C/A-to-D c/a)
B/A-to-C/A-comm-square : CommSquare B/A-to-C/A B/A-to-D (idf B/A) C/A-to-D
B/A-to-C/A-comm-square = comm-sqr VSplit.split-inner
C/A-to-D-is-equiv : is-equiv C/A-to-D
C/A-to-D-is-equiv = snd VSplit.split-equiv
C/B-to-E-is-equiv : is-equiv C/B-to-E
C/B-to-E-is-equiv = snd HSplit.split-equiv
|
src/_test/fixtures/apsepp_shared_instance_test_fixture.adb | thierr26/ada-apsepp | 0 | 17100 | <gh_stars>0
-- Copyright (C) 2019 <NAME> <<EMAIL>>
-- MIT license. Please refer to the LICENSE file.
package body Apsepp_Shared_Instance_Test_Fixture is
----------------------------------------------------------------------------
Lock_Count_Var : Natural := 0;
Unlock_Count_Var : Natural := 0;
CB_Calls_Count_Var : Natural := 0;
----------------------------------------------------------------------------
procedure Increment_Lock_Count is
begin
Lock_Count_Var := Lock_Count_Var + 1;
end Increment_Lock_Count;
----------------------------------------------------------------------------
procedure Increment_Unlock_Count is
begin
Unlock_Count_Var := Unlock_Count_Var + 1;
end Increment_Unlock_Count;
----------------------------------------------------------------------------
procedure CB is
begin
CB_Calls_Count_Var := CB_Calls_Count_Var + 1;
end CB;
----------------------------------------------------------------------------
not overriding
procedure Reset (Obj : Shared_Instance_Test_Fixture) is
pragma Unreferenced (Obj);
begin
Lock_Count_Var := 0;
Unlock_Count_Var := 0;
CB_Calls_Count_Var := 0;
end Reset;
----------------------------------------------------------------------------
not overriding
function Lock_Count (Obj : Shared_Instance_Test_Fixture) return Natural
is (Lock_Count_Var);
----------------------------------------------------------------------------
not overriding
function Unlock_Count (Obj : Shared_Instance_Test_Fixture) return Natural
is (Unlock_Count_Var);
----------------------------------------------------------------------------
not overriding
function CB_Calls_Count (Obj : Shared_Instance_Test_Fixture) return Natural
is (CB_Calls_Count_Var);
----------------------------------------------------------------------------
end Apsepp_Shared_Instance_Test_Fixture;
|
Algorithms/Assembly 8086/Factorial.asm | NVombat/Competitive-Programming | 5 | 27425 | <reponame>NVombat/Competitive-Programming
DATA SEGMENT
A DW 5H
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE, DS:DATA
START:
MOV AX, DATA
MOV DS, AX
MOV CX, A
MOV AX, 0001H
L1: MUL CX
LOOP L1
CODE ENDS
END START
|
src/test/resources/testData/parse/live_samples/QuickeTime.scpt | stigger/AppleScript-IDEA | 18 | 3405 | <reponame>stigger/AppleScript-IDEA
--Here's a script I use to wake me up in the morning:
property Reveillie: alias "MacBook Pro:Users:sjc:Documents:Development:cron:Reveille.mp3"
property sysVolMax: 100
property qtVolMax: 256
property reveilleVol: 30 -- reduce to 10 for external speakers
property logfile: "MacBook Pro:Users:sjc:Documents:Development:cron:Debug Log.txt"
get logfile
get Web servers
make
--use application "Finder"
use scripting additions
use application "QuickTime Player"
tell application "QuickTime Player"
play Web servers
get Web servers
adding folder items to
try
set logFileID to open for access file logfile with write permission
on error
close access file logfile
return
end try
--todo: starting at is not detected as command parameter label
write return & "Start at: " & (current date) & return & return to logFileID starting at get eof of logFileID
make
-- Set System Volume
set pctVol to reveilleVol / sysVolMax
set saveSysVol to output volume of (get volume settings)
display dialog "Current System Volume is " & saveSysVol
write "System Volume = : " & saveSysVol & return to logFileID starting at get eof of logFileID
set volume output volume pctVol * sysVolMax
set newSysVol to output volume of (get volume settings)
display dialog "New System Volume is " & newSysVol
end tell
tell application "QuickTime Player"
activate
set theFile to open Reveillie
set audio volume of document 1 to pctVol * qtVolMax
play document 1
repeat while playing of document 1
delay 1
end repeat
-- display dialog "quitting"
quit
open URL
end tell
set volume 111 output volume 123
-- Restore System Volume Settings
set volume output volume saveSysVol
write "Stop at: " & (current date) & return & return to logFileID
--todo close access 'close access' command of std additions VS 'close' command of CocoaStandard
closing folder window for
-- close access
write ¬
"System Volume = : " & saveSysVol & return to logFileID ¬
starting at get eof of logFileID |
programs/oeis/017/A017577.asm | neoneye/loda | 22 | 2221 | <gh_stars>10-100
; A017577: (12n+4)^9.
; 262144,68719476736,10578455953408,262144000000000,2779905883635712,18014398509481984,84590643846578176,316478381828866048,1000000000000000000,2773078757450186752,6930988311686938624
mul $0,12
add $0,4
pow $0,9
|
libsrc/_DEVELOPMENT/alloc/malloc/z80/asm_heap_alloc_aligned.asm | teknoplop/z88dk | 0 | 172358 | <filename>libsrc/_DEVELOPMENT/alloc/malloc/z80/asm_heap_alloc_aligned.asm
; ===============================================================
; Dec 2013
; ===============================================================
;
; void *heap_alloc_aligned(void *heap, size_t alignment, size_t size)
;
; Allocate size bytes from the heap at an address that is an
; integer multiple of alignment.
;
; Returns 0 with carry set on failure.
;
; If alignment is not an exact power of 2, it will be rounded up
; to the next power of 2.
;
; Returns 0 if size == 0 without indicating error.
;
; ===============================================================
INCLUDE "clib_cfg.asm"
SECTION code_clib
SECTION code_alloc_malloc
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
IF __CLIB_OPT_MULTITHREAD & $01
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC asm_heap_alloc_aligned
EXTERN asm_heap_alloc_aligned_unlocked
EXTERN __heap_lock_acquire, __heap_lock_release_0, error_enolck_zc
asm_heap_alloc_aligned:
; Attempt to allocate memory at an address that is aligned to a power of 2
;
; enter : de = void *heap
; hl = size
; bc = alignment (promoted to next higher power of two if necessary)
;
; exit : success
;
; hl = void *p_aligned could be zero if size == 0
; carry reset
;
; fail on alignment == $10000
;
; hl = 0
; carry set, errno = EINVAL
;
; fail on memory not found
;
; hl = 0
; carry set, errno = ENOMEM
;
; fail on lock acquisition
;
; hl = 0
; carry set, errno = ENOLCK
;
; uses : af, bc, de, hl
call __heap_lock_acquire
jp c, error_enolck_zc
push de ; save void *heap
call asm_heap_alloc_aligned_unlocked
jp __heap_lock_release_0
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
ELSE
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
PUBLIC asm_heap_alloc_aligned
EXTERN asm_heap_alloc_aligned_unlocked
defc asm_heap_alloc_aligned = asm_heap_alloc_aligned_unlocked
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
ENDIF
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
src/keystore-passwords-cmds.adb | thierr26/ada-keystore | 0 | 30095 | <reponame>thierr26/ada-keystore<gh_stars>0
-----------------------------------------------------------------------
-- keystore-passwords-cmds -- External command based password provider
-- Copyright (C) 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with Ada.Strings.Unbounded;
with Util.Processes;
with Util.Streams.Pipes;
with Util.Streams.Buffered;
package body Keystore.Passwords.Cmds is
type Provider (Len : Natural) is limited new Keystore.Passwords.Provider with record
Command : String (1 .. Len);
end record;
-- Get the password through the Getter operation.
overriding
procedure Get_Password (From : in Provider;
Getter : not null access procedure (Password : in Secret_Key));
-- ------------------------------
-- Create a password provider that reads runs a command to get the password.
-- ------------------------------
function Create (Command : in String) return Provider_Access is
begin
return new Provider '(Len => Command'Length, Command => Command);
end Create;
-- ------------------------------
-- Get the password through the Getter operation.
-- ------------------------------
overriding
procedure Get_Password (From : in Provider;
Getter : not null access procedure (Password : in Secret_Key)) is
Pipe : aliased Util.Streams.Pipes.Pipe_Stream;
Buffer : Util.Streams.Buffered.Input_Buffer_Stream;
Content : Ada.Strings.Unbounded.Unbounded_String;
begin
Pipe.Open (From.Command, Util.Processes.READ);
Buffer.Initialize (Pipe'Access, 1024);
Buffer.Read (Content);
Pipe.Close;
if Pipe.Get_Exit_Status /= 0 then
raise Keystore.Bad_Password with "External password command exited with status"
& Natural'Image (Pipe.Get_Exit_Status);
end if;
if Ada.Strings.Unbounded.Length (Content) = 0 then
raise Keystore.Bad_Password with "Operation canceled";
end if;
Getter (Keystore.Create (Ada.Strings.Unbounded.To_String (Content)));
end Get_Password;
end Keystore.Passwords.Cmds;
|
programs/oeis/025/A025169.asm | karttu/loda | 0 | 22120 | ; A025169: a(n) = 2*Fibonacci(2*n+2).
; 2,6,16,42,110,288,754,1974,5168,13530,35422,92736,242786,635622,1664080,4356618,11405774,29860704,78176338,204668310,535828592,1402817466,3672623806,9615053952,25172538050,65902560198,172535142544,451702867434,1182573459758,3096017511840,8105479075762,21220419715446,55555780070576,145446920496282,380784981418270,996908023758528,2609939089857314,6832909245813414
mov $2,2
lpb $0,1
sub $0,1
add $1,$2
add $2,$1
lpe
add $1,$2
|
savefile/maps/0E3C_TheTrendsetters.asm | stranck/fools2018-1 | 35 | 19982 | <filename>savefile/maps/0E3C_TheTrendsetters.asm
SECTION "Map_0E3C", ROM0[$B800]
Map_0E3C_Header:
hdr_tileset 0
hdr_dimensions 8, 8
hdr_pointers_a Map_0E3C_Blocks, Map_0E3C_TextPointers
hdr_pointers_b Map_0E3C_Script, Map_0E3C_Objects
hdr_pointers_c Map_0E3C_InitScript, Map_0E3C_RAMScript
hdr_palette $06
hdr_music MUSIC_ROUTES2, AUDIO_1
hdr_connection NORTH, $1432, 5, 8
hdr_connection SOUTH, $0F3B, 7, 1
hdr_connection WEST, $0D3E, 28, 18
hdr_connection EAST, $113D, 1, 18
Map_0E3C_Objects:
hdr_border $0f
hdr_warp_count 1
hdr_warp 7, 5, 2, 7, $0E6C
hdr_sign_count 0
hdr_object_count 1
hdr_object SPRITE_GIRL, 10, 9, STAY, NONE, $01
Map_0E3C_RAMScript:
rs_fill_byte $0a
rs_fill_3 $c70a
rs_fill_byte $6c
rs_fill_3 $c72b
rs_write_term $c739
db $23,$23,$23,$6c,$6c,$6c,$ff
rs_write_term $c747
db $0a,$0a,$0a,$23,$23,$23,$ff
rs_fill_byte $6f
rs_fill_3 $c758
rs_write_3 $c78a, $6d, $27, $6e
rs_write_3 $c798, $6d, $27, $6e
rs_end
Map_0E3C_Blocks:
db $0f,$0f,$0f,$07,$07,$07,$0f,$0f
db $0f,$0f,$0f,$7a,$7a,$7a,$6c,$6c
db $0f,$0f,$0f,$02,$03,$7a,$49,$23
db $6c,$6c,$6c,$7a,$7a,$7a,$27,$0a
db $23,$23,$23,$23,$23,$23,$22,$6e
db $6f,$6f,$6f,$6f,$6f,$4c,$27,$6e
db $0f,$0f,$0f,$0f,$0f,$6d,$27,$6e
db $0f,$0f,$0f,$0f,$0f,$6d,$27,$6e
Map_0E3C_TextPointers:
dw Map_0E3C_TX1
Map_0E3C_InitScript:
ret
Map_0E3C_Script:
ret
Map_0E3C_TX1:
TX_ASM
ld hl, Map_0E3C_TX_TrendyPhraseIntro
call PrintTextEnhanced
ld de, YesNoBoxset
ld bc, $0203
call PrintChoiceMenu
and a
jr nz, Map_0E3C_SetNewTrendyPhrase
ld hl, Map_0E3C_TX_TrendyPhraseOutro
call PrintTextEnhanced
jp TextScriptEnd
Map_0E3C_SetNewTrendyPhrase:
ld hl, Map_0E3C_TX_NewPhrase
call PrintTextEnhanced
ld bc, $000f
call PrintInputMenu
ld hl, InputMenuBuffer
ld a, PREDEF_StrLen
call PredefCmd
ld a, c
cp $03
jr c, .tooShort
ld a, PREDEF_CharsetStandardToEnhanced
call PredefCmd
ld hl, InputMenuBuffer
ld bc, 16
ld de, Map_0E3C_TrendyPhraseTextBuffer
call CopyData
ld bc, 16
ld hl, Map_0E3C_CurrentUserBuffer
ld de, Map_0E3C_TrendyPhraseAuthorBuffer
call CopyData
ld bc, 16
ld hl, Map_0E3C_TrendyPhraseTextBuffer
ld de, SerialTrendyPhraseStruct.buf
call CopyData
ld hl, SerialTrendyPhraseStruct
call CompleteEventSerial
jp TextScriptEnd
.tooShort
ld hl, Map_0E3C_TX_PhraseTooShort
call PrintTextEnhanced
jp TextScriptEnd
Map_0E3C_TX_TrendyPhraseIntro:
text "Our family adores"
next "everything that is hip"
cont "and trendy these days."
para "Right now, we live by"
next "the words spoken by a"
cont "traveller I met, called"
cont ""
tx_buf Map_0E3C_TrendyPhraseAuthorBuffer
text "."
para "This person told me:"
next "'"
tx_buf Map_0E3C_TrendyPhraseTextBuffer
text "'."
para "And then, my life has"
next "completely changed."
para "Wherever you're from,"
next "'"
tx_buf Map_0E3C_TrendyPhraseTextBuffer
text "' is"
cont "the best thing ever, am I"
cont "right?"
done
Map_0E3C_TX_TrendyPhraseOutro:
text "Yes, I knew it all along!"
next "'"
tx_buf Map_0E3C_TrendyPhraseTextBuffer
text "' is"
cont "really a big deal right now!"
done
Map_0E3C_TX_NewPhrase:
text "What? You're saying that"
next "there's a new trend?"
para "Please tell me more!"
next "What's 'in' right now?"
done
Map_0E3C_TX_PhraseTooShort:
text "I'm sorry, this phrase is"
next "a bit too short."
done
Map_0E3C_TrendyPhraseTextBuffer:
SUBST_TRENDY_PHRASE
Map_0E3C_TrendyPhraseAuthorBuffer:
SUBST_TRENDY_AUTHOR
Map_0E3C_CurrentUserBuffer:
SUBST_CURRENT_USER
|
Transynther/x86/_processed/AVXALIGN/_st_sm_/i9-9900K_12_0xa0.log_21829_928.asm | ljhsiun2/medusa | 9 | 165779 | <reponame>ljhsiun2/medusa<gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r10
push %r11
push %r13
push %r14
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x19ba1, %r13
nop
nop
nop
nop
nop
xor $13761, %rsi
mov (%r13), %r11
nop
and $46475, %r11
lea addresses_A_ht+0x7ee1, %rsi
lea addresses_normal_ht+0xd31b, %rdi
nop
and %r14, %r14
mov $37, %rcx
rep movsw
nop
nop
and $50415, %rcx
lea addresses_WT_ht+0x13fa1, %rsi
nop
dec %r10
movb (%rsi), %cl
nop
nop
nop
nop
nop
dec %r14
lea addresses_WT_ht+0x69a1, %r11
nop
nop
dec %r13
mov (%r11), %r10d
nop
nop
nop
nop
nop
inc %rcx
lea addresses_normal_ht+0xb561, %r13
nop
nop
nop
cmp %r14, %r14
mov $0x6162636465666768, %rcx
movq %rcx, (%r13)
nop
nop
add %r13, %r13
pop %rsi
pop %rdi
pop %rcx
pop %r14
pop %r13
pop %r11
pop %r10
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r13
push %r8
push %r9
push %rax
push %rbx
push %rdx
// Store
lea addresses_D+0x197a1, %rax
nop
nop
add $8666, %r8
movl $0x51525354, (%rax)
add $12475, %r13
// Faulty Load
lea addresses_D+0x197a1, %r9
nop
nop
inc %rdx
movb (%r9), %r13b
lea oracles, %rdx
and $0xff, %r13
shlq $12, %r13
mov (%rdx,%r13,1), %r13
pop %rdx
pop %rbx
pop %rax
pop %r9
pop %r8
pop %r13
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'src': {'NT': False, 'same': False, 'congruent': 0, 'type': 'addresses_D', 'AVXalign': False, 'size': 16}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': True, 'congruent': 0, 'type': 'addresses_D', 'AVXalign': False, 'size': 4}}
[Faulty Load]
{'src': {'NT': True, 'same': True, 'congruent': 0, 'type': 'addresses_D', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'src': {'NT': False, 'same': False, 'congruent': 10, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 8}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 6, 'type': 'addresses_A_ht'}, 'OP': 'REPM', 'dst': {'same': True, 'congruent': 1, 'type': 'addresses_normal_ht'}}
{'src': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 1}, 'OP': 'LOAD'}
{'src': {'NT': False, 'same': False, 'congruent': 8, 'type': 'addresses_WT_ht', 'AVXalign': False, 'size': 4}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'NT': False, 'same': False, 'congruent': 6, 'type': 'addresses_normal_ht', 'AVXalign': False, 'size': 8}}
{'54': 21829}
54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54
*/
|
agda-stdlib/src/Function/Definitions/Core1.agda | DreamLinuxer/popl21-artifact | 5 | 15982 | ------------------------------------------------------------------------
-- The Agda standard library
--
-- Definitions for types of functions that only require an equality
-- relation over the domain.
------------------------------------------------------------------------
-- The contents of this file should usually be accessed from `Function`.
{-# OPTIONS --without-K --safe #-}
open import Relation.Binary
module Function.Definitions.Core1
{a ℓ₁} {A : Set a} (_≈₁_ : Rel A ℓ₁)
where
open import Level using (_⊔_)
------------------------------------------------------------------------
-- Definitions
-- (Note the name `RightInverse` is used for the bundle)
Inverseʳ : ∀ {b} {B : Set b} → (A → B) → (B → A) → Set (a ⊔ ℓ₁)
Inverseʳ f g = ∀ x → g (f x) ≈₁ x
|
ubb/asc/exam/flaviu.asm | AlexanderChristian/private_courses | 0 | 27521 | assume cs:code, ds:data
data segment
msg1 db 'Sirul dat este :$'
msg2 db 'Sirul citi este :$'
buffer db 100, ?, 100 dup(?), '$'
newline db 0ah, 0dh, '$'
data ends
code segment
start:
mov ax, data
mov ds, ax
;printeaza primul sir
mov ah, 09h
mov dx, offset msg1
int 21h
;citeste sirul
mov ah, 0ah
mov dx, offset buffer
int 21h
;printeaza newline
mov ah, 09h
mov dx, offset newline
int 21h
;printeaza msg2
mov ah, 09h
mov dx, offset msg2
int 21h
;pune dolar la finalul sirului citit
mov bl, buffer[1]
mov bh, 0
mov buffer[bx][2], '$'
;printeaza sir
mov ah, 09h
mov dx, offset buffer + 2
int 21h
mov ax, 4c00h
int 21h
code ends
end start
|
a51test/(45)ORL_A_d.a51 | Aimini/51cpu | 0 | 164513 | MOV 0x20,#0x01
MOV 0x21,#0x02
MOV 0x22,#0x04
MOV 0x23,#0x08
MOV 0x24,#0x10
MOV 0x25,#0x20
MOV 0x26,#0x40
MOV 0x27,#0x80
ORL A,0x20
ORL A,0x21
ORL A,0x22
ORL A,0x23
ORL A,0x24
ORL A,0x25
ORL A,0x26
ORL A,0x27 |
AdaCompiler/in/test2.adb | vasilev-dev/AdaCompiler | 0 | 5559 | procedure Hello is
begin
I := 5+12;
num := 5+12+val;
I := 5-12;
num := 5-12-val;
num := 5*val;
num := 5*val*max;
num := 5/val;
num := index/val/max;
num := index+val/max;
num := index*val-max;
num := (index+val)*max;
num := index+val/max*min;
num := index+val*max/min;
num := index+val*(max/min);
num := index+val*max+min;
end Hello; |
module/mpc-be/SRC/src/ExtLib/VirtualDub/Kasumi/source/a_resample_mmx.asm | 1aq/PBox | 0 | 160086 | ; VirtualDub - Video processing and capture application
; Graphics support library
; Copyright (C) 1998-2004 <NAME>
;
; This program is free software; you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation; either version 2 of the License, or
; (at your option) any later version.
;
; This program is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
; GNU General Public License for more details.
;
; You should have received a copy of the GNU General Public License
; along with this program; if not, write to the Free Software
; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
;
section .rdata, rdata, align=16
x0002000200020002 dq 0002000200020002h
x0004000400040004 dq 0004000400040004h
x0008000800080008 dq 0008000800080008h
x0000200000002000 dq 0000200000002000h
align 16
MMX_roundval dq 0000200000002000h, 0000200000002000h
;**************************************************************************
x0000FFFF0000FFFF dq 0000FFFF0000FFFFh
x0000010100000101 dq 0000010100000101h
x0100010001000100 dq 0100010001000100h
section .text
;--------------------------------------------------------------------------
;_vdasm_resize_interp_row_run_MMX(
; [esp+ 4] void *dst,
; [esp+ 8] void *src,
; [esp+12] ulong width,
; [esp+16] __int64 xaccum,
; [esp+24] __int64 x_inc);
;
global _vdasm_resize_interp_row_run_MMX
_vdasm_resize_interp_row_run_MMX:
push ebp
push edi
push esi
push ebx
mov esi, [esp+8+16]
mov edi, [esp+4+16]
mov ebp, [esp+12+16]
movd mm4, dword [esp+16+16]
pxor mm7, mm7
movd mm6, dword [esp+24+16]
punpckldq mm4, mm4
punpckldq mm6, mm6
shr esi, 2
mov eax, [esp+16+16]
mov ebx, [esp+20+16]
add esi, ebx
mov ebx, [esp+24+16]
mov ecx, [esp+28+16]
shl ebp,2
add edi,ebp
neg ebp
.colloop:
movd mm1, dword [esi*4+4]
movq mm5, mm4
movd mm0, dword [esi*4]
punpcklbw mm1, mm7
punpcklbw mm0, mm7
psrld mm5, 24
movq mm3, [x0100010001000100]
packssdw mm5, mm5
pmullw mm1, mm5
psubw mm3, mm5
pmullw mm0, mm3
paddd mm4, mm6
;stall
;stall
;stall
;stall
paddw mm0, mm1
psrlw mm0, 8
add eax, ebx
adc esi, ecx
packuswb mm0, mm0
movd dword [edi+ebp],mm0
add ebp, 4
jnz .colloop
pop ebx
pop esi
pop edi
pop ebp
ret
;**************************************************************************
;vdasm_resize_interp_col_run_MMX(
; [esp+ 4] void *dst,
; [esp+ 8] void *src1,
; [esp+12] void *src2,
; [esp+16] ulong width,
; [esp+20] ulong yaccum);
global _vdasm_resize_interp_col_run_MMX
_vdasm_resize_interp_col_run_MMX:
push ebp
push edi
push esi
push ebx
mov esi, [esp+8+16]
mov edx, [esp+12+16]
mov edi, [esp+4+16]
mov ebp, [esp+16+16]
movd mm4, dword [esp+20+16]
pxor mm7, mm7
punpcklwd mm4, mm4
punpckldq mm4, mm4
psrlw mm4, 8
pxor mm4, [x0000FFFF0000FFFF]
paddw mm4, [x0000010100000101]
shl ebp, 2
add edi, ebp
add esi, ebp
add edx, ebp
neg ebp
.colloop:
movd mm0, dword [esi+ebp]
movd mm2, dword [edx+ebp]
punpcklbw mm0, mm7
punpcklbw mm2, mm7
movq mm1, mm0
punpcklwd mm0, mm2
punpckhwd mm1, mm2
pmaddwd mm0, mm4
pmaddwd mm1, mm4
psrad mm0, 8
psrad mm1, 8
packssdw mm0, mm1
packuswb mm0, mm0
movd dword [edi+ebp],mm0
add ebp, 4
jnz .colloop
pop ebx
pop esi
pop edi
pop ebp
ret
;--------------------------------------------------------------------------
;vdasm_resize_ccint_row_MMX(dst, src, count, xaccum, xinc, tbl);
global _vdasm_resize_ccint_row_MMX
_vdasm_resize_ccint_row_MMX:
push ebx
push esi
push edi
push ebp
mov ebx, [esp+4+16] ;ebx = dest addr
mov ecx, [esp+12+16] ;ecx = count
mov ebp, [esp+20+16] ;ebp = increment
mov edi, ebp ;edi = increment
shl ebp, 16 ;ebp = fractional increment
mov esi, [esp+16+16] ;esi = 16:16 position
sar edi, 16 ;edi = integer increment
mov [esp+20+16], ebp ;xinc = fractional increment
mov ebp, esi ;ebp = 16:16 position
shr esi, 16 ;esi = integer position
shl ebp, 16 ;ebp = fraction
mov [esp+16+16], ebp ;xaccum = fraction
mov eax, [esp+8+16]
shr ebp, 24 ;ebp = fraction (0...255)
mov [esp+8+16], edi
shl ebp, 4 ;ebp = fraction*16
mov edi, ebp
mov ebp, [esp+4+16] ;ebp = destination
shr eax, 2
add eax, esi
shl ecx, 2 ;ecx = count*4
lea ebp, [ebp+ecx-4]
neg ecx ;ecx = -count*4
movq mm6, [x0000200000002000]
pxor mm7, mm7
mov edx,[esp+16+16] ;edx = fractional accumulator
mov esi,[esp+20+16] ;esi = fractional increment
mov ebx,[esp+24+16] ;ebx = coefficient pointer
movd mm0,dword [eax*4]
movd mm1,dword [eax*4+4]
punpcklbw mm0,mm7 ;mm0 = [a1][r1][g1][b1]
;borrow stack pointer
push 0 ;don't crash
push dword [fs:0]
mov dword [fs:0], esp
mov esp, [esp+8+24] ;esp = integer increment
jmp short ccint_loop_MMX_start
;EAX source pointer / 4
;EBX coefficient pointer
;ECX count
;EDX fractional accumulator
;ESI fractional increment
;EDI coefficient offset
;ESP integer increment
;EBP destination pointer
align 16
ccint_loop_MMX:
movd mm0,dword [eax*4]
packuswb mm2,mm2 ;mm0 = [a][r][g][b][a][r][g][b]
movd mm1,dword [eax*4+4]
punpcklbw mm0,mm7 ;mm0 = [a1][r1][g1][b1]
movd dword [ebp+ecx],mm2
ccint_loop_MMX_start:
movq mm4,mm0 ;mm0 = [a1][r1][g1][b1]
movd mm2,dword [eax*4+8]
punpcklbw mm1,mm7 ;mm1 = [a2][r2][g2][b2]
movd mm3,dword [eax*4+12]
punpcklbw mm2,mm7 ;mm2 = [a3][r3][g3][b3]
punpcklbw mm3,mm7 ;mm3 = [a4][r4][g4][b4]
movq mm5,mm2 ;mm2 = [a3][r3][g3][b3]
add edx,esi ;add fractional increment
punpcklwd mm0,mm1 ;mm0 = [g2][g1][b2][b1]
pmaddwd mm0,[ebx+edi]
punpcklwd mm2,mm3 ;mm2 = [g4][g3][b4][b3]
pmaddwd mm2,[ebx+edi+8]
punpckhwd mm4,mm1 ;mm4 = [a2][a1][r2][r1]
pmaddwd mm4,[ebx+edi]
punpckhwd mm5,mm3 ;mm5 = [a4][a3][b4][b3]
pmaddwd mm5,[ebx+edi+8]
paddd mm0,mm6
adc eax,esp ;add integer increment and fractional bump to offset
mov edi,0ff000000h
paddd mm2,mm0 ;mm0 = [ g ][ b ]
paddd mm4,mm6
psrad mm2,14
paddd mm4,mm5 ;mm4 = [ a ][ r ]
and edi,edx
psrad mm4,14
shr edi,20 ;edi = fraction (0...255)*16
add ecx,4
packssdw mm2,mm4 ;mm0 = [ a ][ r ][ g ][ b ]
jnc ccint_loop_MMX
packuswb mm2,mm2 ;mm0 = [a][r][g][b][a][r][g][b]
movd dword [ebp],mm2
mov esp, dword [fs:0]
pop dword [fs:0]
pop eax
pop ebp
pop edi
pop esi
pop ebx
ret
;--------------------------------------------------------------------------
;vdasm_resize_ccint_col_MMX(dst, src1, src2, src3, src4, count, tbl);
global _vdasm_resize_ccint_col_MMX
_vdasm_resize_ccint_col_MMX:
push ebx
push esi
push edi
push ebp
mov ebp, [esp+4+16] ;ebp = dest addr
mov esi, [esp+24+16] ;esi = count
add esi, esi
add esi, esi
mov eax, [esp+8+16] ;eax = row 1
mov ebx, [esp+12+16] ;ebx = row 2
mov ecx, [esp+16+16] ;ecx = row 3
mov edx, [esp+20+16] ;edx = row 4
mov edi, [esp+28+16] ;edi = coefficient ptr
add eax, esi
add ebx, esi
add ecx, esi
add edx, esi
add ebp, esi
neg esi
movq mm4,[edi]
movq mm5,[edi+8]
movq mm6,[x0000200000002000]
pxor mm7,mm7
movd mm2,dword [eax+esi]
movd mm1,dword [ebx+esi] ;mm1 = pixel1
punpcklbw mm2,mm7
jmp short ccint_col_loop_MMX.entry
align 16
ccint_col_loop_MMX:
movd mm2,dword [eax+esi] ;mm2 = pixel0
packuswb mm0,mm0
movd mm1,dword [ebx+esi] ;mm1 = pixel1
pxor mm7,mm7
movd dword [ebp+esi-4],mm0
punpcklbw mm2,mm7
ccint_col_loop_MMX.entry:
punpcklbw mm1,mm7
movq mm0,mm2
movd mm3,dword [edx+esi] ;mm3 = pixel3
punpcklwd mm0,mm1 ;mm0 = [g1][g0][b1][b0]
pmaddwd mm0,mm4
punpckhwd mm2,mm1 ;mm2 = [a1][a0][r1][r0]
movd mm1,dword [ecx+esi] ;mm1 = pixel2
punpcklbw mm3,mm7
pmaddwd mm2,mm4
punpcklbw mm1,mm7
movq mm7,mm1
punpcklwd mm1,mm3 ;mm1 = [g3][g2][b3][b2]
punpckhwd mm7,mm3 ;mm7 = [a3][a2][r3][r2]
pmaddwd mm1,mm5
pmaddwd mm7,mm5
paddd mm0,mm6
paddd mm2,mm6
paddd mm0,mm1
paddd mm2,mm7
psrad mm0,14
psrad mm2,14
add esi,4
packssdw mm0,mm2
jne ccint_col_loop_MMX
packuswb mm0,mm0
movd dword [ebp-4],mm0
pop ebp
pop edi
pop esi
pop ebx
ret
;--------------------------------------------------------------------------
;vdasm_resize_ccint_col_SSE2(dst, src1, src2, src3, src4, count, tbl);
global _vdasm_resize_ccint_col_SSE2
_vdasm_resize_ccint_col_SSE2:
push ebx
push esi
push edi
push ebp
mov ebp,[esp + 4 + 16] ;ebp = dest addr
mov esi,[esp + 24 + 16] ;esi = count
add esi,esi
add esi,esi
mov eax,[esp + 8 + 16] ;eax = row 1
mov ebx,[esp + 12 + 16] ;ebx = row 2
mov ecx,[esp + 16 + 16] ;ecx = row 3
mov edx,[esp + 20 + 16] ;edx = row 4
mov edi,[esp + 28 + 16] ;edi = coefficient ptr
neg esi
add esi,4
jz ccint_col_SSE2_odd
movq xmm4,qword [edi]
movq xmm5,qword [edi+8]
punpcklqdq xmm4,xmm4
punpcklqdq xmm5,xmm5
movq xmm6,[x0000200000002000]
punpcklqdq xmm6,xmm6
pxor xmm7,xmm7
; jmp short ccint_col_loop_SSE2.entry
; align 16
ccint_col_loop_SSE2:
movq xmm0, qword [eax]
add eax, 8
movq xmm1, qword [ebx]
add ebx, 8
movq xmm2, qword [ecx]
add ecx, 8
movq xmm3, qword [edx]
add edx, 8
punpcklbw xmm0,xmm1
punpcklbw xmm2,xmm3
movdqa xmm1,xmm0
movdqa xmm3,xmm2
punpcklbw xmm0,xmm7
punpckhbw xmm1,xmm7
punpcklbw xmm2,xmm7
punpckhbw xmm3,xmm7
pmaddwd xmm0,xmm4
pmaddwd xmm1,xmm4
pmaddwd xmm2,xmm5
pmaddwd xmm3,xmm5
paddd xmm0,xmm6
paddd xmm1,xmm6
paddd xmm0,xmm2
paddd xmm1,xmm3
psrad xmm0,14
psrad xmm1,14
packssdw xmm0,xmm1
packuswb xmm0,xmm0
movdq2q mm0,xmm0
movntq [ebp],mm0
add ebp,8
add esi,8
jnc ccint_col_loop_SSE2
jnz ccint_col_SSE2_noodd
ccint_col_SSE2_odd:
movd mm0, dword [eax]
pxor mm7,mm7
movd mm1, dword [ebx]
movdq2q mm4,xmm4
movd mm2, dword [ecx]
movdq2q mm5,xmm5
movd mm3, dword [edx]
movdq2q mm6,xmm6
punpcklbw mm0,mm1
punpcklbw mm2,mm3
movq mm1,mm0
movq mm3,mm2
punpcklbw mm0,mm7
punpckhbw mm1,mm7
punpcklbw mm2,mm7
punpckhbw mm3,mm7
pmaddwd mm0,mm4
pmaddwd mm1,mm4
pmaddwd mm2,mm5
pmaddwd mm3,mm5
paddd mm0,mm6
paddd mm2,mm6
paddd mm0,mm2
paddd mm1,mm3
psrad mm0,14
psrad mm1,14
packssdw mm0,mm1
packuswb mm0,mm0
movd eax,mm0
movnti [ebp],eax
ccint_col_SSE2_noodd:
pop ebp
pop edi
pop esi
pop ebx
ret
;-------------------------------------------------------------------------
;
; long resize_table_row_MMX(Pixel *out, Pixel *in, int *filter, int filter_width, PixDim w, long accum, long frac);
.code
global _vdasm_resize_table_row_MMX
_vdasm_resize_table_row_MMX:
push ebp
push esi
push edi
push ebx
cmp dword [esp+16+16], 4
jz .accel_4coeff
cmp dword [esp+16+16], 6
jz .accel_6coeff
cmp dword [esp+16+16], 8
jz .accel_8coeff
mov eax,[esp + 24 + 16]
mov ebp,[esp + 20 + 16]
mov ebx,[esp + 8 + 16]
mov edi,[esp + 4 + 16]
mov esi,eax
mov edx,eax
pxor mm5,mm5
mov ecx,[esp + 16 + 16]
shr ecx,1
mov [esp+16+16],ecx
test ecx,1
jnz .pixelloop_odd_pairs
.pixelloop_even_pairs:
shr esi,14
and edx,0000ff00h
and esi,byte -4
mov ecx,[esp + 16 + 16]
shr edx,5
add esi,ebx
imul edx,ecx
add eax,[esp + 28 + 16]
add edx,[esp + 12 + 16]
movq mm6,[MMX_roundval]
pxor mm3,mm3
movq mm7,mm6
pxor mm2,mm2
.coeffloop_unaligned_even_pairs:
movd mm0,dword [esi+0]
paddd mm7,mm2 ;accumulate alpha/red (pixels 2/3)
punpcklbw mm0,[esi+4] ;mm1=[a0][a1][r0][r1][g0][g1][b0][b1]
paddd mm6,mm3 ;accumulate green/blue (pixels 2/3)
movd mm2,dword [esi+8]
movq mm1,mm0 ;mm0=[a0][a1][r0][r1][g0][g1][b0][b1]
punpcklbw mm2,[esi+12] ;mm2=[a2][a3][r2][r3][g2][g3][b2][b3]
punpckhbw mm0,mm5 ;mm0=[ a0 ][ a1 ][ r0 ][ r1 ]
movq mm3,mm2 ;mm3=[a2][a3][r2][r3][g2][g3][b2][b3]
pmaddwd mm0,[edx] ;mm0=[a0*f0+a1*f1][r0*f0+r1*f1]
punpcklbw mm1,mm5 ;mm1=[ g0 ][ g1 ][ b0 ][ b1 ]
pmaddwd mm1,[edx] ;mm1=[g0*f0+g1*f1][b0*f0+b1*f1]
punpckhbw mm2,mm5 ;mm2=[ a2 ][ a3 ][ r0 ][ r1 ]
pmaddwd mm2,[edx+8] ;mm2=[a2*f2+a3*f3][r2*f2+r3*f3]
punpcklbw mm3,mm5 ;mm3=[ g2 ][ g3 ][ b2 ][ b3 ]
pmaddwd mm3,[edx+8] ;mm3=[g2*f2+g3*f3][b2*f2+b3*f3]
paddd mm7,mm0 ;accumulate alpha/red (pixels 0/1)
paddd mm6,mm1 ;accumulate green/blue (pixels 0/1)
add edx,16
add esi,16
sub ecx,2
jne .coeffloop_unaligned_even_pairs
paddd mm7,mm2 ;accumulate alpha/red (pixels 2/3)
paddd mm6,mm3 ;accumulate green/blue (pixels 2/3)
psrad mm7,14
psrad mm6,14
packssdw mm6,mm7
add edi,4
packuswb mm6,mm6
sub ebp,1
mov esi,eax
mov edx,eax
movd dword [edi-4],mm6
jne .pixelloop_even_pairs
pop ebx
pop edi
pop esi
pop ebp
ret
;----------------------------------------------------------------
.pixelloop_odd_pairs:
shr esi,14
and edx,0000ff00h
and esi,byte -4
mov ecx,[esp + 16 + 16]
shr edx,5
add esi,ebx
imul edx,ecx
add eax,[esp + 28 + 16]
sub ecx,1
add edx,[esp + 12 + 16]
movq mm6,[MMX_roundval]
pxor mm3,mm3
pxor mm2,mm2
movq mm7,mm6
.coeffloop_unaligned_odd_pairs:
movd mm0,dword [esi+0]
paddd mm7,mm2 ;accumulate alpha/red (pixels 2/3)
punpcklbw mm0,[esi+4] ;mm1=[a0][a1][r0][r1][g0][g1][b0][b1]
paddd mm6,mm3 ;accumulate green/blue (pixels 2/3)
movd mm2,dword [esi+8]
movq mm1,mm0 ;mm0=[a0][a1][r0][r1][g0][g1][b0][b1]
punpcklbw mm2,[esi+12] ;mm2=[a2][a3][r2][r3][g2][g3][b2][b3]
punpckhbw mm0,mm5 ;mm0=[ a0 ][ a1 ][ r0 ][ r1 ]
movq mm3,mm2 ;mm3=[a2][a3][r2][r3][g2][g3][b2][b3]
pmaddwd mm0,[edx] ;mm0=[a0*f0+a1*f1][r0*f0+r1*f1]
punpcklbw mm1,mm5 ;mm1=[ g0 ][ g1 ][ b0 ][ b1 ]
pmaddwd mm1,[edx] ;mm1=[g0*f0+g1*f1][b0*f0+b1*f1]
punpckhbw mm2,mm5 ;mm2=[ a2 ][ a3 ][ r0 ][ r1 ]
pmaddwd mm2,[edx+8] ;mm2=[a2*f2+a3*f3][r2*f2+r3*f3]
punpcklbw mm3,mm5 ;mm3=[ g2 ][ g3 ][ b2 ][ b3 ]
pmaddwd mm3,[edx+8] ;mm3=[g2*f2+g3*f3][b2*f2+b3*f3]
paddd mm7,mm0 ;accumulate alpha/red (pixels 0/1)
paddd mm6,mm1 ;accumulate green/blue (pixels 0/1)
add edx,16
add esi,16
sub ecx,2
jne .coeffloop_unaligned_odd_pairs
paddd mm7,mm2 ;accumulate alpha/red (pixels 2/3)
paddd mm6,mm3 ;accumulate green/blue (pixels 2/3)
;finish up odd pair
movd mm0,dword [esi] ;mm0 = [x1][r1][g1][b1]
punpcklbw mm0,[esi+4] ;mm2 = [x0][x1][r0][r1][g0][g1][b0][b1]
movq mm1,mm0
punpcklbw mm0,mm5 ;mm0 = [g0][g1][b0][b1]
punpckhbw mm1,mm5 ;mm1 = [x0][x1][r0][r1]
pmaddwd mm0,[edx]
pmaddwd mm1,[edx]
paddd mm6,mm0
paddd mm7,mm1
;combine into pixel
psrad mm6,14
psrad mm7,14
packssdw mm6,mm7
add edi,4
packuswb mm6,mm6
sub ebp,1
mov esi,eax
mov edx,eax
movd dword [edi-4],mm6
jne .pixelloop_odd_pairs
pop ebx
pop edi
pop esi
pop ebp
ret
;----------------------------------------------------------------
.accel_4coeff:
mov eax,[esp + 24 + 16]
mov ebp,[esp + 20 + 16]
add ebp,ebp
add ebp,ebp
mov ebx,[esp + 8 + 16]
mov edi,[esp + 4 + 16]
add edi,ebp
neg ebp
mov esi,eax
mov edx,eax
movq mm4,[MMX_roundval]
pxor mm5,mm5
mov ecx,[esp+12+16]
.pixelloop_4coeff:
shr esi,14
and edx,0000ff00h
and esi,byte -4
shr edx,4
add esi,ebx
add eax,[esp+28+16]
add edx,ecx
movd mm0,dword [esi+0]
movd mm2,dword [esi+8]
punpcklbw mm0,[esi+4] ;mm0=[a0][a1][r0][r1][g0][g1][b0][b1]
movq mm1,mm0 ;mm1=[a0][a1][r0][r1][g0][g1][b0][b1]
punpckhbw mm0,mm5 ;mm0=[ a0 ][ a1 ][ r0 ][ r1 ]
pmaddwd mm0,[edx] ;mm0=[a0*f0+a1*f1][r0*f0+r1*f1]
punpcklbw mm2,[esi+12] ;mm2=[a2][a3][r2][r3][g2][g3][b2][b3]
movq mm3,mm2 ;mm3=[a2][a3][r2][r3][g2][g3][b2][b3]
punpcklbw mm1,mm5 ;mm1=[ g0 ][ g1 ][ b0 ][ b1 ]
pmaddwd mm1,[edx] ;mm1=[g0*f0+g1*f1][b0*f0+b1*f1]
punpckhbw mm2,mm5 ;mm2=[ a2 ][ a3 ][ r0 ][ r1 ]
pmaddwd mm2,[edx+8] ;mm2=[a2*f2+a3*f3][r2*f2+r3*f3]
punpcklbw mm3,mm5 ;mm3=[ g2 ][ g3 ][ b2 ][ b3 ]
pmaddwd mm3,[edx+8] ;mm3=[g2*f2+g3*f3][b2*f2+b3*f3]
paddd mm0,mm4 ;accumulate alpha/red (pixels 0/1)
paddd mm1,mm4 ;accumulate green/blue (pixels 0/1)
paddd mm0,mm2 ;accumulate alpha/red (pixels 2/3)
paddd mm1,mm3 ;accumulate green/blue (pixels 2/3)
psrad mm0,14
psrad mm1,14
packssdw mm1,mm0
mov esi,eax
packuswb mm1,mm1
mov edx,eax
movd dword [edi+ebp],mm1
add ebp,4
jne .pixelloop_4coeff
pop ebx
pop edi
pop esi
pop ebp
ret
;----------------------------------------------------------------
.accel_6coeff:
mov eax,[esp + 24 + 16]
mov ebp,[esp + 20 + 16]
add ebp,ebp
add ebp,ebp
mov ebx,[esp + 8 + 16]
mov edi,[esp + 4 + 16]
add edi,ebp
neg ebp
mov esi,eax
mov edx,eax
movq mm4,[MMX_roundval]
pxor mm5,mm5
mov ecx,[esp+12+16]
.pixelloop_6coeff:
shr esi,14
and edx,0000ff00h
and esi,byte -4
shr edx,5
lea edx,[edx+edx*2]
add esi,ebx
add eax,[esp+28+16]
add edx,ecx
movd mm0,dword [esi+0]
movd mm2,dword [esi+8]
punpcklbw mm0,[esi+4] ;mm0=[a0][a1][r0][r1][g0][g1][b0][b1]
movq mm1,mm0 ;mm1=[a0][a1][r0][r1][g0][g1][b0][b1]
punpckhbw mm0,mm5 ;mm0=[ a0 ][ a1 ][ r0 ][ r1 ]
pmaddwd mm0,[edx] ;mm0=[a0*f0+a1*f1][r0*f0+r1*f1]
punpcklbw mm2,[esi+12] ;mm2=[a2][a3][r2][r3][g2][g3][b2][b3]
movq mm3,mm2 ;mm3=[a2][a3][r2][r3][g2][g3][b2][b3]
punpcklbw mm1,mm5 ;mm1=[ g0 ][ g1 ][ b0 ][ b1 ]
pmaddwd mm1,[edx] ;mm1=[g0*f0+g1*f1][b0*f0+b1*f1]
punpckhbw mm2,mm5 ;mm2=[ a2 ][ a3 ][ r0 ][ r1 ]
pmaddwd mm2,[edx+8] ;mm2=[a2*f2+a3*f3][r2*f2+r3*f3]
punpcklbw mm3,mm5 ;mm3=[ g2 ][ g3 ][ b2 ][ b3 ]
pmaddwd mm3,[edx+8] ;mm3=[g2*f2+g3*f3][b2*f2+b3*f3]
paddd mm0,mm4 ;accumulate alpha/red (pixels 0/1)
paddd mm1,mm4 ;accumulate green/blue (pixels 0/1)
paddd mm0,mm2 ;accumulate alpha/red (pixels 2/3)
paddd mm1,mm3 ;accumulate green/blue (pixels 2/3)
movd mm6,dword [esi+16]
punpcklbw mm6,[esi+20] ;mm1=[a0][a1][r0][r1][g0][g1][b0][b1]
movq mm7,mm6 ;mm0=[a0][a1][r0][r1][g0][g1][b0][b1]
punpckhbw mm6,mm5 ;mm0=[ a0 ][ a1 ][ r0 ][ r1 ]
pmaddwd mm6,[edx+16] ;mm0=[a0*f0+a1*f1][r0*f0+r1*f1]
punpcklbw mm7,mm5 ;mm1=[ g0 ][ g1 ][ b0 ][ b1 ]
pmaddwd mm7,[edx+16] ;mm1=[g0*f0+g1*f1][b0*f0+b1*f1]
paddd mm0,mm6 ;accumulate alpha/red (pixels 0/1)
paddd mm1,mm7 ;accumulate green/blue (pixels 0/1)
psrad mm0,14
psrad mm1,14
packssdw mm1,mm0
mov esi,eax
packuswb mm1,mm1
mov edx,eax
movd dword [edi+ebp],mm1
add ebp,4
jne .pixelloop_6coeff
pop ebx
pop edi
pop esi
pop ebp
ret
;----------------------------------------------------------------
.accel_8coeff:
mov eax,[esp + 24 + 16]
mov ebp,[esp + 20 + 16]
add ebp,ebp
add ebp,ebp
mov ebx,[esp + 8 + 16]
mov edi,[esp + 4 + 16]
add edi,ebp
neg ebp
mov esi,eax
mov edx,eax
movq mm4,[MMX_roundval]
pxor mm5,mm5
mov ecx,[esp+12+16]
.pixelloop_8coeff:
shr esi,14
and edx,0000ff00h
and esi,byte -4
shr edx,3
add esi,ebx
add eax,[esp+28+16]
add edx,ecx
movd mm0,dword [esi+0]
movd mm2,dword [esi+8]
punpcklbw mm0,[esi+4] ;mm0=[a0][a1][r0][r1][g0][g1][b0][b1]
movq mm1,mm0 ;mm1=[a0][a1][r0][r1][g0][g1][b0][b1]
punpckhbw mm0,mm5 ;mm0=[ a0 ][ a1 ][ r0 ][ r1 ]
pmaddwd mm0,[edx] ;mm0=[a0*f0+a1*f1][r0*f0+r1*f1]
punpcklbw mm2,[esi+12] ;mm2=[a2][a3][r2][r3][g2][g3][b2][b3]
movq mm3,mm2 ;mm3=[a2][a3][r2][r3][g2][g3][b2][b3]
punpcklbw mm1,mm5 ;mm1=[ g0 ][ g1 ][ b0 ][ b1 ]
pmaddwd mm1,[edx] ;mm1=[g0*f0+g1*f1][b0*f0+b1*f1]
punpckhbw mm2,mm5 ;mm2=[ a2 ][ a3 ][ r0 ][ r1 ]
pmaddwd mm2,[edx+8] ;mm2=[a2*f2+a3*f3][r2*f2+r3*f3]
punpcklbw mm3,mm5 ;mm3=[ g2 ][ g3 ][ b2 ][ b3 ]
pmaddwd mm3,[edx+8] ;mm3=[g2*f2+g3*f3][b2*f2+b3*f3]
paddd mm0,mm4 ;accumulate alpha/red (pixels 0/1)
paddd mm1,mm4 ;accumulate green/blue (pixels 0/1)
paddd mm0,mm2 ;accumulate alpha/red (pixels 2/3)
paddd mm1,mm3 ;accumulate green/blue (pixels 2/3)
movd mm6,dword [esi+16]
punpcklbw mm6,[esi+20] ;mm1=[a0][a1][r0][r1][g0][g1][b0][b1]
movd mm2,dword [esi+24]
punpcklbw mm2,[esi+28] ;mm2=[a2][a3][r2][r3][g2][g3][b2][b3]
movq mm7,mm6 ;mm0=[a0][a1][r0][r1][g0][g1][b0][b1]
punpckhbw mm6,mm5 ;mm0=[ a0 ][ a1 ][ r0 ][ r1 ]
movq mm3,mm2 ;mm3=[a2][a3][r2][r3][g2][g3][b2][b3]
pmaddwd mm6,[edx+16] ;mm0=[a0*f0+a1*f1][r0*f0+r1*f1]
punpcklbw mm7,mm5 ;mm1=[ g0 ][ g1 ][ b0 ][ b1 ]
pmaddwd mm7,[edx+16] ;mm1=[g0*f0+g1*f1][b0*f0+b1*f1]
punpckhbw mm2,mm5 ;mm2=[ a2 ][ a3 ][ r0 ][ r1 ]
pmaddwd mm2,[edx+24] ;mm2=[a2*f2+a3*f3][r2*f2+r3*f3]
punpcklbw mm3,mm5 ;mm3=[ g2 ][ g3 ][ b2 ][ b3 ]
pmaddwd mm3,[edx+24] ;mm3=[g2*f2+g3*f3][b2*f2+b3*f3]
paddd mm0,mm6 ;accumulate alpha/red (pixels 0/1)
paddd mm1,mm7 ;accumulate green/blue (pixels 0/1)
paddd mm0,mm2 ;accumulate alpha/red (pixels 0/1)
paddd mm1,mm3 ;accumulate green/blue (pixels 0/1)
psrad mm0,14
psrad mm1,14
packssdw mm1,mm0
mov esi,eax
packuswb mm1,mm1
mov edx,eax
movd dword [edi+ebp],mm1
add ebp,4
jne .pixelloop_8coeff
pop ebx
pop edi
pop esi
pop ebp
ret
;-------------------------------------------------------------------------
;
; long resize_table_col_MMX(Pixel *out, Pixel **in_table, int *filter, int filter_width, PixDim w, long frac);
global _vdasm_resize_table_col_MMX
_vdasm_resize_table_col_MMX:
push ebp
push esi
push edi
push ebx
mov edx,[esp + 12 + 16]
mov eax,[esp + 24 + 16]
shl eax,2
imul eax,[esp + 16 + 16]
add edx,eax
mov [esp + 12 + 16], edx ;[esp+12+28] = filter pointer
mov ebp,[esp + 20 + 16] ;ebp = pixel counter
mov edi,[esp + 4 + 16] ;edi = destination pointer
pxor mm5,mm5
cmp dword [esp+16+16], 4
jz .accel_4coeff
cmp dword [esp+16+16], 6
jz .accel_6coeff
mov ecx,[esp + 16 + 16]
shr ecx,1
mov [esp + 16 + 16],ecx ;ecx = filter pair count
xor ebx,ebx ;ebx = source offset
mov ecx,[esp + 16 + 16] ;ecx = filter width counter
.pixelloop:
mov eax,[esp + 8 + 16] ;esi = row pointer table
movq mm6,[MMX_roundval]
movq mm7,mm6
pxor mm0,mm0
pxor mm1,mm1
.coeffloop:
mov esi,[eax]
paddd mm6,mm0
movd mm0,dword [esi+ebx] ;mm0 = [0][0][0][0][x0][r0][g0][b0]
paddd mm7,mm1
mov esi,[eax+4]
add eax,8
movd mm1,dword [esi+ebx] ;mm1 = [0][0][0][0][x1][r1][g1][b1]
punpcklbw mm0,mm1 ;mm0 = [x0][x1][r0][r1][g0][g1][b0][b1]
movq mm1,mm0
punpcklbw mm0,mm5 ;mm0 = [g1][g0][b1][b0]
pmaddwd mm0,[edx]
punpckhbw mm1,mm5 ;mm1 = [x1][x0][r1][r0]
pmaddwd mm1,[edx]
add edx,8
sub ecx,1
jne .coeffloop
paddd mm6,mm0
paddd mm7,mm1
psrad mm6,14
psrad mm7,14
add edi,4
packssdw mm6,mm7
add ebx,4
packuswb mm6,mm6
sub ebp,1
mov ecx,[esp + 16 + 16] ;ecx = filter width counter
mov edx,[esp + 12 + 16] ;edx = filter bank pointer
movd dword [edi-4],mm6
jne .pixelloop
.xit:
pop ebx
pop edi
pop esi
pop ebp
ret
.accel_4coeff:
movq mm2,[edx]
movq mm3,[edx+8]
mov esi,[esp+8+16] ;esi = row pointer table
mov eax,[esi]
add ebp,ebp
mov ebx,[esi+4]
add ebp,ebp
mov ecx,[esi+8]
mov esi,[esi+12]
add eax,ebp
add ebx,ebp
add ecx,ebp
add esi,ebp
add edi,ebp
neg ebp
;EAX source 0
;EBX source 1
;ECX source 2
;ESI source 3
;EDI destination
;EBP counter
movq mm4,[MMX_roundval]
.pixelloop4:
movd mm6,dword [eax+ebp] ;mm0 = [0][0][0][0][x0][r0][g0][b0]
punpcklbw mm6,[ebx+ebp] ;mm0 = [x0][x1][r0][r1][g0][g1][b0][b1]
movq mm7,mm6
punpcklbw mm6,mm5 ;mm0 = [g1][g0][b1][b0]
pmaddwd mm6,mm2
punpckhbw mm7,mm5 ;mm1 = [x1][x0][r1][r0]
movd mm0,dword [ecx+ebp] ;mm0 = [0][0][0][0][x0][r0][g0][b0]
pmaddwd mm7,mm2
punpcklbw mm0,[esi+ebp] ;mm0 = [x0][x1][r0][r1][g0][g1][b0][b1]
paddd mm6,mm4
movq mm1,mm0
punpcklbw mm0,mm5 ;mm0 = [g1][g0][b1][b0]
pmaddwd mm0,mm3
punpckhbw mm1,mm5 ;mm1 = [x1][x0][r1][r0]
pmaddwd mm1,mm3
paddd mm7,mm4
paddd mm6,mm0
paddd mm7,mm1
psrad mm6,14
psrad mm7,14
packssdw mm6,mm7
packuswb mm6,mm6
movd dword [edi+ebp],mm6
add ebp,4
jne .pixelloop4
jmp .xit
.accel_6coeff:
movq mm2,[edx]
movq mm3,[edx+8]
movq mm4,[edx+16]
push 0
push dword [fs:0]
mov dword [fs:0],esp
mov esp,[esp+8+24] ;esp = row pointer table
mov eax,[esp]
add ebp,ebp
mov ebx,[esp+4]
add ebp,ebp
mov ecx,[esp+8]
mov edx,[esp+12]
mov esi,[esp+16]
mov esp,[esp+20]
add eax,ebp
add ebx,ebp
add ecx,ebp
add edx,ebp
add esi,ebp
add edi,ebp
add esp,ebp
neg ebp
;EAX source 0
;EBX source 1
;ECX source 2
;EDX source 3
;ESI source 4
;EDI destination
;ESP source 5
;EBP counter
.pixelloop6:
movd mm6,dword [eax+ebp] ;mm0 = [0][0][0][0][x0][r0][g0][b0]
punpcklbw mm6,[ebx+ebp] ;mm0 = [x0][x1][r0][r1][g0][g1][b0][b1]
movq mm7,mm6
punpcklbw mm6,mm5 ;mm0 = [g1][g0][b1][b0]
movd mm0,dword [ecx+ebp] ;mm0 = [0][0][0][0][x0][r0][g0][b0]
punpckhbw mm7,mm5 ;mm1 = [x1][x0][r1][r0]
punpcklbw mm0,[edx+ebp] ;mm0 = [x0][x1][r0][r1][g0][g1][b0][b1]
pmaddwd mm6,mm2
movq mm1,mm0
punpcklbw mm0,mm5 ;mm0 = [g1][g0][b1][b0]
pmaddwd mm7,mm2
punpckhbw mm1,mm5 ;mm1 = [x1][x0][r1][r0]
paddd mm6,[MMX_roundval]
pmaddwd mm0,mm3
paddd mm7,[MMX_roundval]
pmaddwd mm1,mm3
paddd mm6,mm0
movd mm0,dword [esi+ebp] ;mm0 = [0][0][0][0][x0][r0][g0][b0]
paddd mm7,mm1
punpcklbw mm0,[esp+ebp] ;mm0 = [x0][x1][r0][r1][g0][g1][b0][b1]
movq mm1,mm0
punpcklbw mm0,mm5 ;mm0 = [g1][g0][b1][b0]
punpckhbw mm1,mm5 ;mm1 = [x1][x0][r1][r0]
pmaddwd mm0,mm4
pmaddwd mm1,mm4
paddd mm6,mm0
paddd mm7,mm1
psrad mm6,14
psrad mm7,14
packssdw mm6,mm7
packuswb mm6,mm6
movd dword [edi+ebp],mm6
add ebp,4
jne .pixelloop6
mov esp, dword [fs:0]
pop dword [fs:0]
pop eax
jmp .xit
global _vdasm_resize_table_col_SSE2
_vdasm_resize_table_col_SSE2:
push ebp
push esi
push edi
push ebx
mov edx,[esp+12+16]
mov eax,[esp+24+16]
shl eax,2
imul eax,[esp+16+16]
add edx,eax
mov [esp+12+16], edx ;[esp+12+16] = filter pointer
mov ebp,[esp+20+16] ;ebp = pixel counter
mov edi,[esp+4+16] ;edi = destination pointer
pxor xmm7, xmm7
movdqa xmm6, [MMX_roundval]
cmp dword [esp+16+16], 4
jz .accel_4coeff
cmp dword [esp+16+16], 6
jz .accel_6coeff
mov ecx,[esp+16+16]
shr ecx,1
mov [esp+16+16],ecx ;ecx = filter pair count
xor ebx,ebx ;ebx = source offset
mov ecx,[esp+16+16] ;ecx = filter width counter
.pixelloop:
mov eax, [esp+8+16] ;esi = row pointer table
movdqa xmm4, xmm6
.coeffloop:
mov esi,[eax]
movd xmm0, dword [esi+ebx]
mov esi,[eax+4]
add eax,8
movd xmm1, dword [esi+ebx]
punpcklbw xmm0, xmm1
punpcklbw xmm0, xmm7
movq xmm2, qword [edx]
pshufd xmm2, xmm2, 01000100b
pmaddwd xmm0, xmm2
paddd xmm4, xmm0
add edx,8
sub ecx,1
jne .coeffloop
psrad xmm4,14
add edi,4
packssdw xmm4,xmm4
add ebx,4
packuswb xmm4,xmm4
sub ebp,1
mov ecx,[esp+16+16] ;ecx = filter width counter
mov edx,[esp+12+16] ;edx = filter bank pointer
movd dword [edi-4],xmm4
jne .pixelloop
.xit:
pop ebx
pop edi
pop esi
pop ebp
ret
.accel_4coeff:
shl ebp, 2
mov eax, [esp+8+16] ;eax = row pointer table
mov esi, [eax+12]
mov ecx, [eax+8]
mov ebx, [eax+4]
mov eax, [eax]
lea edi, [edi+ebp-4]
neg ebp
;registers:
;
;EAX source 0
;EBX source 1
;ECX source 2
;ESI source 3
;EDI destination
;EBP counter
;
movq xmm4, qword [edx] ;xmm4 = coeff 0/1
movq xmm5, qword [edx+8] ;xmm5 = coeff 2/3
punpcklqdq xmm4, xmm4
punpcklqdq xmm5, xmm5
add ebp, 4
jz .oddpixel_4coeff
.pixelloop_4coeff_dualpel:
movq xmm0, qword [eax]
movq xmm1, qword [ebx]
movq xmm2, qword [ecx]
movq xmm3, qword [esi]
add eax,8
add ebx,8
add ecx,8
add esi,8
punpcklbw xmm0, xmm1
punpcklbw xmm2, xmm3
movdqa xmm1, xmm0
movdqa xmm3, xmm2
punpcklbw xmm0, xmm7
punpckhbw xmm1, xmm7
punpcklbw xmm2, xmm7
punpckhbw xmm3, xmm7
pmaddwd xmm0, xmm4
pmaddwd xmm1, xmm4
pmaddwd xmm2, xmm5
pmaddwd xmm3, xmm5
paddd xmm0, xmm2
paddd xmm1, xmm3
paddd xmm0, xmm6
paddd xmm1, xmm6
psrad xmm0, 14
psrad xmm1, 14
packssdw xmm0, xmm1
packuswb xmm0, xmm0
movq qword [edi+ebp],xmm0
add ebp, 8
jae .pixelloop_4coeff_dualpel
jnz .xit
.oddpixel_4coeff:
movd xmm0, dword [eax]
movd xmm1, dword [ebx]
movd xmm2, dword [ecx]
movd xmm3, dword [esi]
punpcklbw xmm0, xmm1
punpcklbw xmm2, xmm3
punpcklbw xmm0, xmm7
punpcklbw xmm2, xmm7
pmaddwd xmm0, xmm4
pmaddwd xmm2, xmm5
paddd xmm0, xmm2
paddd xmm0, xmm6
psrad xmm0, 14
packssdw xmm0, xmm0
packuswb xmm0, xmm0
movd dword [edi],xmm0
jmp .xit
.accel_6coeff:
movq xmm4, qword [edx] ;xmm4 = coeff 0/1
movq xmm5, qword [edx+8] ;xmm5 = coeff 2/3
movq xmm6, qword [edx+16] ;xmm5 = coeff 4/5
punpcklqdq xmm4, xmm4
punpcklqdq xmm5, xmm5
punpcklqdq xmm6, xmm6
push 0
push dword [fs:0]
mov dword [fs:0],esp
shl ebp, 2
mov eax, [esp+8+24] ;eax = row pointer table
mov esp, [eax+20]
mov esi, [eax+16]
mov edx, [eax+12]
mov ecx, [eax+8]
mov ebx, [eax+4]
mov eax, [eax]
lea edi, [edi+ebp-4]
neg ebp
;registers:
;
;EAX source 0
;EBX source 1
;ECX source 2
;EDX source 3
;ESI source 4
;EDI destination
;ESP source 5
;EBP counter
;
add ebp, 4
jz .oddpixel_6coeff
.pixelloop_6coeff_dualpel:
movq xmm0, qword [eax]
movq xmm1, qword [ebx]
movq xmm2, qword [ecx]
movq xmm3, qword [edx]
add eax,8
add ebx,8
add ecx,8
add edx,8
punpcklbw xmm0, xmm1
punpcklbw xmm2, xmm3
movdqa xmm1, xmm0
movdqa xmm3, xmm2
punpcklbw xmm0, xmm7
punpckhbw xmm1, xmm7
punpcklbw xmm2, xmm7
punpckhbw xmm3, xmm7
pmaddwd xmm0, xmm4
pmaddwd xmm1, xmm4
pmaddwd xmm2, xmm5
pmaddwd xmm3, xmm5
paddd xmm0, xmm2
paddd xmm1, xmm3
movq xmm2, qword [esi]
movq xmm3, qword [esp]
add esi, 8
add esp, 8
punpcklbw xmm2, xmm3
movdqa xmm3, xmm2
punpcklbw xmm2, xmm7
punpckhbw xmm3, xmm7
pmaddwd xmm2, xmm6
pmaddwd xmm3, xmm6
paddd xmm0, xmm2
paddd xmm1, xmm3
paddd xmm0, [MMX_roundval]
paddd xmm1, [MMX_roundval]
psrad xmm0, 14
psrad xmm1, 14
packssdw xmm0, xmm1
packuswb xmm0, xmm0
movq qword [edi+ebp],xmm0
add ebp, 8
jae .pixelloop_6coeff_dualpel
jnz .xit_6coeff
.oddpixel_6coeff:
movd xmm0, dword [eax]
movd xmm1, dword [ebx]
movd xmm2, dword [ecx]
movd xmm3, dword [edx]
punpcklbw xmm0, xmm1
punpcklbw xmm2, xmm3
movd xmm1, dword [esi]
movd xmm3, dword [esp]
punpcklbw xmm0, xmm7
punpcklbw xmm2, xmm7
pmaddwd xmm0, xmm4
punpcklbw xmm1, xmm3
pmaddwd xmm2, xmm5
punpcklbw xmm1, xmm7
pmaddwd xmm1, xmm6
paddd xmm0, xmm2
paddd xmm1, [MMX_roundval]
paddd xmm0, xmm1
psrad xmm0, 14
packssdw xmm0, xmm0
packuswb xmm0, xmm0
movd dword [edi],xmm0
.xit_6coeff:
mov esp, dword [fs:0]
pop dword [fs:0]
pop eax
jmp .xit
end
|
src/antlr/RV32G.g4 | riscvsim/assembler | 0 | 1727 | /*
* RISC-V 32-bit RV32IMAFDZicsr_Zifencei (RV32G) Grammar
*/
grammar RV32G;
prog
: line*? EOF
;
line
: stmt EOL
| stmt
| EOL
;
stmt
: label_def static_data
| label_def instruction
| label_def
| directive
| static_data
| instruction
;
label_def
: LABEL # LABEL
;
instruction
: rv32i_ext # RV32I
| rv32zifencei_ext # RV32Zifencei
| rv32zicsr_ext # RV32Zicsr
| rv32m_ext # RV32M
| rv32a_ext # RV32A
| rv32f_ext # RV32F
| rv32d_ext # RV32D
| rv32i_ext_pseudos # RV32IPSEUDOS
| rv32zicsr_ext_pseudos # RV32ZicsrPSEUDOS
| rv32f_ext_pseudos # RV32FPSEUDOS
| rv32d_ext_pseudos # RV32DPSEUDOS
;
rv32i_ext
: I_LUI XREG ','? expr # LUI
| I_AUIPC XREG ','? expr # AUIPC
| I_JAL XREG ','? ID # JAL
| I_JALR XREG ','? (XREG ','? expr|expr '(' XREG ')') # JALR
| I_BEQ XREG ','? XREG ','? ID # BEQ
| I_BNE XREG ','? XREG ','? ID # BNE
| I_BLT XREG ','? XREG ','? ID # BLT
| I_BGE XREG ','? XREG ','? ID # BGE
| I_BLTU XREG ','? XREG ','? ID # BLTU
| I_BGEU XREG ','? XREG ','? ID # BGEU
| I_LB XREG ','? (XREG ','? expr|expr '(' XREG ')') # LB
| I_LH XREG ','? (XREG ','? expr|expr '(' XREG ')') # LH
| I_LW XREG ','? (XREG ','? expr|expr '(' XREG ')') # LW
| I_LBU XREG ','? (XREG ','? expr|expr '(' XREG ')') # LBU
| I_LHU XREG ','? (XREG ','? expr|expr '(' XREG ')') # LHU
| I_SB XREG ','? (XREG ','? expr|expr '(' XREG ')') # SB
| I_SH XREG ','? (XREG ','? expr|expr '(' XREG ')') # SH
| I_SW XREG ','? (XREG ','? expr|expr '(' XREG ')') # SW
| I_ADDI XREG ','? XREG ','? expr # ADDI
| I_SLTI XREG ','? XREG ','? expr # SLTI
| I_SLTIU XREG ','? XREG ','? expr # SLTIU
| I_XORI XREG ','? XREG ','? expr # XORI
| I_ORI XREG ','? XREG ','? expr # ORI
| I_ANDI XREG ','? XREG ','? expr # ANDI
| I_SLLI XREG ','? XREG ','? expr # SLLI
| I_SRLI XREG ','? XREG ','? expr # SRLI
| I_SRAI XREG ','? XREG ','? expr # SRAI
| I_ADD XREG ','? XREG ','? XREG # ADD
| I_SUB XREG ','? XREG ','? XREG # SUB
| I_SLL XREG ','? XREG ','? XREG # SLL
| I_SLT XREG ','? XREG ','? XREG # SLT
| I_SLTU XREG ','? XREG ','? XREG # SLTU
| I_XOR XREG ','? XREG ','? XREG # XOR
| I_SRL XREG ','? XREG ','? XREG # SRL
| I_SRA XREG ','? XREG ','? XREG # SRA
| I_OR XREG ','? XREG ','? XREG # OR
| I_AND XREG ','? XREG ','? XREG # AND
| I_FENCE # FENCE
| I_ECALL # ECALL
| I_EBREAK # EBREAK
;
rv32zifencei_ext
: I_FENCEI # FENCEI
;
rv32zicsr_ext
: I_CSRRW XREG ','? expr ','? XREG # CSRRW
| I_CSRRS XREG ','? expr ','? XREG # CSRRS
| I_CSRRC XREG ','? expr ','? XREG # CSRRC
| I_CSRRWI XREG ','? expr ','? INT # CSRRWI
| I_CSRRSI XREG ','? expr ','? INT # CSRRSI
| I_CSRRCI XREG ','? expr ','? INT # CSRRCI
;
rv32m_ext
: I_MUL XREG ','? XREG ','? XREG # MUL
| I_MULH XREG ','? XREG ','? XREG # MULH
| I_MULHSU XREG ','? XREG ','? XREG # MULHSU
| I_MULHU XREG ','? XREG ','? XREG # MULHU
| I_DIV XREG ','? XREG ','? XREG # DIV
| I_DIVU XREG ','? XREG ','? XREG # DIVU
| I_REM XREG ','? XREG ','? XREG # REM
| I_REMU XREG ','? XREG ','? XREG # REMU
;
rv32a_ext
: I_LRW XREG ','? '('? XREG ')'? # LRW
| I_SCW XREG ','? XREG ','? '('? XREG ')'? # SCW
| I_AMOSWAPW XREG ','? XREG ','? '('? XREG ')'? # AMOSWAPW
| I_AMOADDW XREG ','? XREG ','? '('? XREG ')'? # AMOADDW
| I_AMOXORW XREG ','? XREG ','? '('? XREG ')'? # AMOXORW
| I_AMOANDW XREG ','? XREG ','? '('? XREG ')'? # AMOANDW
| I_AMOORW XREG ','? XREG ','? '('? XREG ')'? # AMOORW
| I_AMOMINW XREG ','? XREG ','? '('? XREG ')'? # AMOMINW
| I_AMOMAXW XREG ','? XREG ','? '('? XREG ')'? # AMOMAXW
| I_AMOMINUW XREG ','? XREG ','? '('? XREG ')'? # AMOMINUW
| I_AMOMAXUW XREG ','? XREG ','? '('? XREG ')'? # AMOMAXUW
;
rv32f_ext
: I_FLW FREG ','? (XREG ','? expr|expr '(' XREG ')') # FLW
| I_FSW (XREG ','? FREG ','? expr|FREG ','? expr '(' XREG ')') # FSW
| I_FMADDS FREG ','? FREG ','? FREG ','? FREG # FMADDS
| I_FMSUBS FREG ','? FREG ','? FREG ','? FREG # FMSUBS
| I_FNMSUBS FREG ','? FREG ','? FREG ','? FREG # FNMSUBS
| I_FNMADDS FREG ','? FREG ','? FREG ','? FREG # FNMADDS
| I_FADDS FREG ','? FREG ','? FREG # FADDS
| I_FSUBS FREG ','? FREG ','? FREG # FSUBS
| I_FMULS FREG ','? FREG ','? FREG # FMULS
| I_FDIVS FREG ','? FREG ','? FREG # FDIVS
| I_FSQRTS FREG ','? FREG # FSQRTS
| I_FSGNJS FREG ','? FREG ','? FREG # FSGNJS
| I_FSGNJNS FREG ','? FREG ','? FREG # FSGNJNS
| I_FSGNJXS FREG ','? FREG ','? FREG # FSGNJXS
| I_FMINS FREG ','? FREG ','? FREG # FMINS
| I_FMAXS FREG ','? FREG ','? FREG # FMAXS
| I_FCVTWS XREG ','? FREG # FCVTWS
| I_FCVTWUS XREG ','? FREG # FCVTWUS
| I_FMVXW XREG ','? FREG # FMVXW
| I_FMVXS XREG ','? FREG # FMVXS
| I_FEQS XREG ','? FREG ','? FREG # FEQS
| I_FLTS XREG ','? FREG ','? FREG # FLTS
| I_FLES XREG ','? FREG ','? FREG # FLES
| I_FCLASSS XREG ','? FREG # FCLASSS
| I_FCVTSW FREG ','? XREG # FCVTSW
| I_FCVTSWU FREG ','? XREG # FCVTSWU
| I_FMVWX FREG ','? XREG # FMVWX
| I_FMVSX FREG ','? XREG # FMVSX
;
rv32d_ext
: I_FLD FREG ','? (XREG ','? expr|expr '(' XREG ')') # FLD
| I_FSD (XREG ','? FREG ','? expr|FREG ','? expr '(' XREG ')') # FSD
| I_FMADDD FREG ','? FREG ','? FREG ','? FREG # FMADDD
| I_FMSUBD FREG ','? FREG ','? FREG ','? FREG # FMSUBD
| I_FNMSUBD FREG ','? FREG ','? FREG ','? FREG # FNMSUBD
| I_FNMADDD FREG ','? FREG ','? FREG ','? FREG # FNMADDD
| I_FADDD FREG ','? FREG ','? FREG # FADDD
| I_FSUBD FREG ','? FREG ','? FREG # FSUBD
| I_FMULD FREG ','? FREG ','? FREG # FMULD
| I_FDIVD FREG ','? FREG ','? FREG # FDIVD
| I_FSQRTD FREG ','? FREG # FSQRTD
| I_FSGNJD FREG ','? FREG ','? FREG # FSGNJD
| I_FSGNJND FREG ','? FREG ','? FREG # FSGNJND
| I_FSGNJXD FREG ','? FREG ','? FREG # FSGNJXD
| I_FMIND FREG ','? FREG ','? FREG # FMIND
| I_FMAXD FREG ','? FREG ','? FREG # FMAXD
| I_FCVTSD FREG ','? FREG # FCVTSD
| I_FCVTDS FREG ','? FREG # FCVTDS
| I_FEQD XREG ','? FREG ','? FREG # FEQD
| I_FLTD XREG ','? FREG ','? FREG # FLTD
| I_FLED XREG ','? FREG ','? FREG # FLED
| I_FCLASSD XREG ','? FREG # FCLASSD
| I_FCVTWD XREG ','? FREG # FCVTWD
| I_FCVTWUD XREG ','? FREG # FCVTWUD
| I_FCVTDW FREG ','? XREG # FCVTDW
| I_FCVTDWU FREG ','? XREG # FCVTDWU
;
rv32i_ext_pseudos
: I_LA XREG ','? ID # LAPSEUDO
| I_LLA XREG ','? ID # LLAPSEUDO
| I_LB XREG ','? ID # LBPSEUDO
| I_LH XREG ','? ID # LHPSEUDO
| I_LW XREG ','? ID # LWPSEUDO
| I_SB XREG ','? ID ','? XREG # SBPSEUDO
| I_SH XREG ','? ID ','? XREG # SHPSEUDO
| I_SW XREG ','? ID ','? XREG # SWPSEUDO
| I_NOP # NOPPSEUDO
| I_LI XREG ','? expr # LIPSEUDO
| I_MV XREG ','? XREG # MVPSEUDO
| I_NOT XREG ','? XREG # NOTPSEUDO
| I_NEG XREG ','? XREG # NEGPSEUDO
| I_SEQZ XREG ','? XREG # SEQZPSEUDO
| I_SNEZ XREG ','? XREG # SNEZPSEUDO
| I_SLTZ XREG ','? XREG # SLTZPSEUDO
| I_SGTZ XREG ','? XREG # SGTZPSEUDO
| I_BEQZ XREG ','? ID # BEQZPSEUDO
| I_BNEZ XREG ','? ID # BNEZPSEUDO
| I_BLEZ XREG ','? ID # BLEZPSEUDO
| I_BGEZ XREG ','? ID # BGEZPSEUDO
| I_BLTZ XREG ','? ID # BLTZPSEUDO
| I_BGTZ XREG ','? ID # BGTZPSEUDO
| I_BGT XREG ','? XREG ','? ID # BGTPSEUDO
| I_BLE XREG ','? XREG ','? ID # BLEPSEUDO
| I_BGTU XREG ','? XREG ','? ID # BGTUPSEUDO
| I_BLEU XREG ','? XREG ','? ID # BLEUPSEUDO
| I_J ID # JPSEUDO
| I_JAL ID # JALPSEUDO
| I_JR XREG # JRPSEUDO
| I_JALR XREG # JALRPSEUDO
| I_RET # RETPSEUDO
| I_CALL ','? ID # CALLPSEUDO
| I_TAIL ','? ID # TAILPSEUDO
;
rv32zicsr_ext_pseudos
: I_RDINSTRET XREG # RDINSTRETPSEUDO
| I_RDCYCLE XREG # RDCYCLEPSEUDO
| I_RDTIME XREG # RDTIMEPSEUDO
| I_CSRR XREG ','? expr # CSRRPSEUDO
| I_CSRW expr ','? XREG # CSRWPSEUDO
| I_CSRS expr ','? XREG # CSRSPSEUDO
| I_CSRC expr ','? XREG # CSRCPSEUDO
| I_CSRWI expr ','? INT # CSRWIPSEUDO
| I_CSRSI expr ','? INT # CSRSIPSEUDO
| I_CSRCI expr ','? INT # CSRCIPSEUDO
| I_FRCSR XREG # FRCSRPSEUDO
| I_FSCSR XREG # FSCSRPSEUDO
| I_FSCSR XREG ','? XREG # FSCSR2PSEUDO
| I_FRRM XREG # FRRMPSEUDO
| I_FSRM XREG # FSRMPSEUDO
| I_FSRM XREG ','? XREG # FSRM2PSEUDO
| I_FRFLAGS XREG # FRFLAGSPSEUDO
| I_FSFLAGS XREG # FSFLAGSPSEUDO
| I_FSFLAGS XREG ','? XREG # FSFLAGS2PSEUDO
;
rv32f_ext_pseudos
: I_FLW FREG ','? ID ','? XREG # FLWPSEUDO
| I_FSW FREG ','? ID ','? XREG # FSWPSEUDO
| I_FMVS FREG ','? FREG # FMVSPSEUDO
| I_FABSS FREG ','? FREG # FABSSPSEUDO
| I_FNEGS FREG ','? FREG # FNEGSPSEUDO
;
rv32d_ext_pseudos
: I_FLD FREG ','? ID ','? XREG # FLDPSEUDO
| I_FSD FREG ','? ID ','? XREG # FSDPSEUDO
| I_FMVD FREG ','? FREG # FMVDPSEUDO
| I_FABSD FREG ','? FREG # FABSDPSEUDO
| I_FNEGD FREG ','? FREG # FNEGDPSEUDO
;
static_data
: D_BYTE expr (','? expr)* # BYTE
| D_HALF expr (','? expr)* # HALF
| D_WORD expr (','? expr)* # WORD
| D_FLOAT fexpr (','? fexpr)* # FLOAT
| D_ASCII STRING # ASCII
| D_STRING STRING # ASCIIZ
| D_ZERO INT # ZERO
;
directive
: '.section'? D_BSS # BSS
| '.section'? D_DATA # DATA
| '.section'? D_RODATA # RODATA
| '.section'? D_TEXT # TEXT
| D_GLOBL ID (','? ID)* # GLOBL
| D_ALIGN INT # ALIGN
| D_BALIGN INT # BALIGN
| D_FILE STRING # FILE
| D_EQU ID ','? expr # EQU
;
expr
: '(' expr ')' # PARENEXPR
| <assoc=right> SIGN expr # UNARYEXPR
| expr SIGN expr # PLUSEXPR
| INT # INTEXPR
| ID # IDEXPR
| '%hi' '(' ID ')' # HIRELEXPR
| '%lo' '(' ID ')' # LORELEXPR
| '%pcrel_hi' '(' ID ')' # PCRELHIRELEXPR
| '%pcrel_lo' '(' ID ')' # PCRELLORELEXPR
;
fexpr
: '(' fexpr ')' # PARENFEXPR
| <assoc=right> SIGN fexpr # UNARYFEXPR
| expr SIGN expr # PLUSFEXPR
| FLOAT # FLOATFEXPR
| INT # INTFEXPR
;
/****************************************
| LEXER |
*****************************************/
fragment A: ('a'|'A');
fragment B: ('b'|'B');
fragment C: ('c'|'C');
fragment D: ('d'|'D');
fragment E: ('e'|'E');
fragment F: ('f'|'F');
fragment G: ('g'|'G');
fragment H: ('h'|'H');
fragment I: ('i'|'I');
fragment J: ('j'|'J');
fragment K: ('k'|'K');
fragment L: ('l'|'L');
fragment M: ('m'|'M');
fragment N: ('n'|'N');
fragment O: ('o'|'O');
fragment P: ('p'|'P');
fragment Q: ('q'|'Q');
fragment R: ('r'|'R');
fragment S: ('s'|'S');
fragment T: ('t'|'T');
fragment U: ('u'|'U');
fragment V: ('v'|'V');
fragment W: ('w'|'W');
fragment X: ('x'|'X');
fragment Y: ('y'|'Y');
fragment Z: ('z'|'Z');
fragment DIGIT: [0-9];
fragment HEX_DIGIT: [a-fA-F0-9];
fragment BIN_DIGIT: [01];
fragment ESCAPE: '\\' ['"?abfnrtv\\];
fragment SCHAR: ~["]|ESCAPE|'\\'?'\r'?'\n';
fragment CCHAR: ~['\\\r\n]|ESCAPE;
// I EXTENSION KEYWORDS
I_LUI: L U I;
I_AUIPC: A U I P C;
I_JAL: J A L;
I_JALR: J A L R;
I_BEQ: B E Q;
I_BNE: B N E;
I_BLT: B L T;
I_BGE: B G E;
I_BLTU: B L T U;
I_BGEU: B G E U;
I_LB: L B;
I_LH: L H;
I_LW: L W;
I_LBU: L B U;
I_LHU: L H U;
I_SB: S B;
I_SH: S H;
I_SW: S W;
I_ADDI: A D D I;
I_SLTI: S L T I;
I_SLTIU: S L T I U;
I_XORI: X O R I;
I_ORI: O R I;
I_ANDI: A N D I;
I_SLLI: S L L I;
I_SRLI: S R L I;
I_SRAI: S R A I;
I_ADD: A D D;
I_SUB: S U B;
I_SLL: S L L;
I_SLT: S L T;
I_SLTU: S L T U;
I_XOR: X O R;
I_SRL: S R L;
I_SRA: S R A;
I_OR: O R;
I_AND: A N D;
I_FENCE: F E N C E;
I_ECALL: E C A L L;
I_EBREAK: E B R E A K;
// Zifencei EXTENSION
I_FENCEI: F E N C E '.' I;
// Zicsr EXTENSION
I_CSRRW: C S R R W;
I_CSRRS: C S R R S;
I_CSRRC: C S R R C;
I_CSRRWI: C S R R W I;
I_CSRRSI: C S R R S I;
I_CSRRCI: C S R R C I;
// M EXTENSION KEYWORDS
I_MUL: M U L;
I_MULH: M U L H;
I_MULHSU: M U L H S U;
I_MULHU: M U L H U;
I_DIV: D I V;
I_DIVU: D I V U;
I_REM: R E M;
I_REMU: R E M U;
// A EXTENSION KEYWORDS
I_LRW: L R '.' W ('.' (A Q | R L | A Q R L))?;
I_SCW: S C '.' W ('.' (A Q | R L | A Q R L))?;
I_AMOSWAPW: A M O S W A P '.' W ('.' (A Q | R L | A Q R L))?;
I_AMOADDW: A M O A D D '.' W ('.' (A Q | R L | A Q R L))?;
I_AMOXORW: A M O X O R '.' W ('.' (A Q | R L | A Q R L))?;
I_AMOANDW: A M O A N D '.' W ('.' (A Q | R L | A Q R L))?;
I_AMOORW: A M O O R '.' W ('.' (A Q | R L | A Q R L))?;
I_AMOMINW: A M O M I N '.' W ('.' (A Q | R L | A Q R L))?;
I_AMOMAXW: A M O M A X '.' W ('.' (A Q | R L | A Q R L))?;
I_AMOMINUW: A M O M I N U '.' W ('.' (A Q | R L | A Q R L))?;
I_AMOMAXUW: A M O M A X U '.' W ('.' (A Q | R L | A Q R L))?;
// F EXTENSION KEYWORDS
I_FLW: F L W;
I_FSW: F S W;
I_FMADDS: F M A D D '.' S;
I_FMSUBS: F M S U B '.' S;
I_FNMSUBS: F N M S U B '.' S;
I_FNMADDS: F N M A D D '.' S;
I_FADDS: F A D D '.' S;
I_FSUBS: F S U B '.' S;
I_FMULS: F M U L '.' S;
I_FDIVS: F D I V '.' S;
I_FSQRTS: F S Q R T '.' S;
I_FSGNJS: F S G N J '.' S;
I_FSGNJNS: F S G N J N '.' S;
I_FSGNJXS: F S G N J X '.' S;
I_FMINS: F M I N '.' S;
I_FMAXS: F M A X '.' S;
I_FCVTWS: F C V T '.' W '.' S;
I_FCVTWUS: F C V T '.' W U '.' S;
I_FMVXW: F M V '.' X '.' W;
I_FMVXS: F M V '.' X '.' S;
I_FEQS: F E Q '.' S;
I_FLTS: F L T '.' S;
I_FLES: F L E '.' S;
I_FCLASSS: F C L A S S '.' S;
I_FCVTSW: F C V T '.' S '.' W;
I_FCVTSWU: F C V T '.' S '.' W U;
I_FMVWX: F M V '.' W '.' X;
I_FMVSX: F M V '.' S '.' X;
// D EXTENSION KEYWORDS
I_FLD: F L D;
I_FSD: F S D;
I_FMADDD: F M A D D '.' D;
I_FMSUBD: F M S U B '.' D;
I_FNMSUBD: F N M S U B '.' D;
I_FNMADDD: F N M A D D '.' D;
I_FADDD: F A D D '.' D;
I_FSUBD: F S U B '.' D;
I_FMULD: F M U L '.' D;
I_FDIVD: F D I V '.' D;
I_FSQRTD: F S Q R T '.' D;
I_FSGNJD: F S G N J '.' D;
I_FSGNJND: F S G N J N '.' D;
I_FSGNJXD: F S G N J X '.' D;
I_FMIND: F M I N '.' D;
I_FMAXD: F M A X '.' D;
I_FCVTSD: F C V T '.' S '.' D;
I_FCVTDS: F C V T '.' D '.' S;
I_FEQD: F E Q '.' D;
I_FLTD: F L T '.' D;
I_FLED: F L E '.' D;
I_FCLASSD: F C L A S S '.' D;
I_FCVTWD: F C V T '.' W '.' D;
I_FCVTWUD: F C V T '.' W U '.' D;
I_FCVTDW: F C V T '.' D '.' W;
I_FCVTDWU: F C V T '.' D '.' W U;
// I EXTENSION PSEUDO KEYWORDS
I_LA: L A;
I_LLA: L L A;
I_NOP: N O P;
I_LI: L I;
I_MV: M V;
I_NOT: N O T;
I_NEG: N E G;
I_SEQZ: S E Q Z;
I_SNEZ: S N E Z;
I_SLTZ: S L T Z;
I_SGTZ: S G T Z;
I_BEQZ: B E Q Z;
I_BNEZ: B N E Z;
I_BLEZ: B L E Z;
I_BGEZ: B G E Z;
I_BLTZ: B L T Z;
I_BGTZ: B G T Z;
I_BGT: B G T;
I_BLE: B L E;
I_BGTU: B G T U;
I_BLEU: B L E U;
I_J: J;
I_JR: J R;
I_RET: R E T;
I_CALL: C A L L;
I_TAIL: T A I L;
// Zicsr EXTENSION PSEUDO KEYWORDS
I_RDINSTRET: R D I N S T R E T H?;
I_RDCYCLE: R D C Y C L E H?;
I_RDTIME: R D T I M E H?;
I_CSRR: C S R R;
I_CSRW: C S R W;
I_CSRS: C S R S;
I_CSRC: C S R C;
I_CSRWI: C S R W I;
I_CSRSI: C S R S I;
I_CSRCI: C S R C I;
I_FRCSR: F R C S R;
I_FSCSR: F S C S R;
I_FRRM: F R R M;
I_FSRM: F S R M;
I_FRFLAGS: F R F L A G S;
I_FSFLAGS: F S F L A G S;
// F EXTENSION PSEUDO KEYWORDS
I_FMVS: F M V '.' S;
I_FABSS: F A B S '.' S;
I_FNEGS: F N E G '.' S;
// D EXTENSION PSEUDO KEYWORDS
I_FMVD: F M V '.' D;
I_FABSD: F A B S '.' D;
I_FNEGD: F N E G '.' D;
// DIRECTIVES
D_BSS: '.bss';
D_DATA: '.data';
D_RODATA: '.rodata';
D_TEXT: '.text';
D_GLOBL: ('.globl'|'.global');
D_ALIGN: ('.align'|'.p2align');
D_BALIGN: '.balign';
D_FILE: '.file';
D_EQU: ('.equ'|'.equiv');
D_BYTE: '.byte';
D_HALF: ('.half'|'.short'|'.2byte');
D_WORD: ('.word'|'.long'|'.4byte');
D_FLOAT: '.float';
D_ASCII: '.ascii';
D_STRING: ('.string'|'.asciiz'|'.asciz');
D_ZERO: ('.zero'|'.space');
// REGISTERS
XREG: ('x'('3'[01]|[12][0-9]|[0-9])|'zero'|'ra'|'sp'|'gp'|'tp'|'fp'|'t'[0-6]|'a'[0-7]|'s'('10'|'11'|[0-9]));
FREG: ('f'('3'[01]|[12][0-9]|[0-9])|'ft'('10'|'11'|[0-9])|'fa'[0-7]|'fs'('10'|'11'|[0-9]));
// NUMBERS
FLOAT: (DIGIT* '.' DIGIT+ (E SIGN? DIGIT+)?| 'NaN' | 'nan' | 'inf' | 'Inf');
INT: (DIGIT+|'0' X HEX_DIGIT+|'0' B BIN_DIGIT+|'\'' CCHAR+? '\'');
// SIGN
SIGN: ('+'|'-');
// STRINGS AND CHARS
STRING: '"' SCHAR*? '"';
// IDENTIFIERS
ID: [a-zA-Z_$@][@.a-zA-Z0-9_$]*;
// LABELS
LABEL: [a-zA-Z_$@][@.a-zA-Z0-9_$]*?':';
// NEWLINE
EOL: [\n\r]+;
// COMMENTS
COMMENT: (';'|'#') ~[\r\n]* -> skip;
// IGNORE WHITESPACE
WHITESPACE: [ \t]+ -> skip;
|
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cd/cd2a23a.ada | best08618/asylo | 7 | 871 | -- CD2A23A.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making
-- this public release, the Government intends to confer upon all
-- recipients unlimited rights equal to those held by the Government.
-- These rights include rights to use, duplicate, release or disclose the
-- released technical data and computer software in whole or in part, in
-- any manner and for any purpose whatsoever, and to have or permit others
-- to do so.
--
-- DISCLAIMER
--
-- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
-- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
-- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
-- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
-- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
-- PARTICULAR PURPOSE OF SAID MATERIAL.
--*
-- OBJECTIVE:
-- CHECK THAT WHEN A SIZE SPECIFICATION AND AN ENUMERATION
-- REPRESENTATION CLAUSE ARE GIVEN FOR AN ENUMERATION TYPE,
-- THEN OPERATIONS ON VALUES OF SUCH A TYPE ARE NOT AFFECTED
-- BY THE REPRESENTATION CLAUSE.
-- HISTORY:
-- RJW 07/28/87 CREATED ORIGINAL TEST.
-- DHH 04/18/89 CHANGED EXTENSION FROM '.DEP' TO '.ADA', CHANGED
-- OPERATORS ON 'SIZE TESTS, AND ADDED CHECK ON
-- REPRESENTATION CLAUSE.
-- WMC 03/27/92 ELIMINATED TEST REDUNDANCIES.
WITH REPORT; USE REPORT;
WITH LENGTH_CHECK; -- CONTAINS A CALL TO 'FAILED'.
PROCEDURE CD2A23A IS
BASIC_SIZE : CONSTANT := INTEGER'SIZE/2;
TYPE CHECK_TYPE IS (ZERO, ONE, TWO);
FOR CHECK_TYPE USE (ZERO => 3, ONE => 4, TWO => 5);
FOR CHECK_TYPE'SIZE USE BASIC_SIZE;
C0 : CHECK_TYPE := ZERO;
C1 : CHECK_TYPE := ONE;
C2 : CHECK_TYPE := TWO;
TYPE ARRAY_TYPE IS ARRAY (0 .. 2) OF CHECK_TYPE;
CHARRAY : ARRAY_TYPE := (ZERO, ONE, TWO);
TYPE REC_TYPE IS RECORD
COMP0 : CHECK_TYPE := ZERO;
COMP1 : CHECK_TYPE := ONE;
COMP2 : CHECK_TYPE := TWO;
END RECORD;
CHREC : REC_TYPE;
FUNCTION IDENT (CH : CHECK_TYPE) RETURN CHECK_TYPE IS
BEGIN
IF EQUAL (3, 3) THEN
RETURN CH;
ELSE
RETURN ONE;
END IF;
END IDENT;
PROCEDURE CHECK_1 IS NEW LENGTH_CHECK (CHECK_TYPE);
PROCEDURE PROC (CI0, CI2 : CHECK_TYPE;
CIO1, CIO2 : IN OUT CHECK_TYPE;
CO2 : OUT CHECK_TYPE) IS
BEGIN
IF NOT ((IDENT (CIO1) IN CIO1 .. CIO2) AND
(CI0 NOT IN IDENT (ONE) .. CIO2)) THEN
FAILED ("INCORRECT RESULTS FOR MEMBERSHIP OPERATORS " &
"- 1");
END IF;
IF CHECK_TYPE'VAL (0) /= IDENT (CI0) OR
CHECK_TYPE'VAL (1) /= IDENT (CIO1) OR
CHECK_TYPE'VAL (2) /= IDENT (CIO2) THEN
FAILED ("INCORRECT VALUE FOR CHECK_TYPE'VAL - 1");
END IF;
IF CHECK_TYPE'PRED (CIO1) /= IDENT (CI0) OR
CHECK_TYPE'PRED (CIO2) /= IDENT (CIO1) THEN
FAILED ("INCORRECT VALUE FOR CHECK_TYPE'PRED - 1");
END IF;
IF CHECK_TYPE'VALUE ("ZERO") /= IDENT (CI0) OR
CHECK_TYPE'VALUE ("ONE") /= IDENT (CIO1) OR
CHECK_TYPE'VALUE ("TWO") /= IDENT (CIO2) THEN
FAILED ("INCORRECT VALUE FOR CHECK_TYPE'VALUE - 1");
END IF;
CO2 := TWO;
END PROC;
BEGIN
TEST ("CD2A23A", "CHECK THAT WHEN A SIZE SPECIFICATION AND " &
"AN ENUMERATION REPRESENTATION CLAUSE ARE " &
"GIVEN FOR AN ENUMERATION TYPE, THEN " &
"OPERATIONS ON VALUES OF SUCH A TYPE ARE " &
"NOT AFFECTED BY THE REPRESENTATION CLAUSE");
CHECK_1 (C0, BASIC_SIZE, "CHECK_TYPE");
PROC (ZERO, TWO, C1, C2, C2);
IF CHECK_TYPE'SIZE /= IDENT_INT (BASIC_SIZE) THEN
FAILED ("INCORRECT VALUE FOR CHECK_TYPE'SIZE");
END IF;
IF C0'SIZE < IDENT_INT (BASIC_SIZE) THEN
FAILED ("INCORRECT VALUE FOR C0'SIZE");
END IF;
IF NOT ((C0 < IDENT (ONE)) AND(IDENT (C2) > IDENT (C1)) AND
(C1 <= IDENT (ONE)) AND(IDENT (TWO) = C2)) THEN
FAILED ("INCORRECT RESULTS FOR RELATIONAL OPERATORS - 2");
END IF;
IF CHECK_TYPE'LAST /= IDENT (TWO) THEN
FAILED ("INCORRECT VALUE FOR CHECK_TYPE'LAST - 2");
END IF;
IF CHECK_TYPE'POS (C0) /= IDENT_INT (0) OR
CHECK_TYPE'POS (C1) /= IDENT_INT (1) OR
CHECK_TYPE'POS (C2) /= IDENT_INT (2) THEN
FAILED ("INCORRECT VALUE FOR CHECK_TYPE'POS - 2");
END IF;
IF CHECK_TYPE'SUCC (C0) /= IDENT (C1) OR
CHECK_TYPE'SUCC (C1) /= IDENT (C2) THEN
FAILED ("INCORRECT VALUE FOR CHECK_TYPE'SUCC - 2");
END IF;
IF CHECK_TYPE'IMAGE (C0) /= IDENT_STR ("ZERO") OR
CHECK_TYPE'IMAGE (C1) /= IDENT_STR ("ONE") OR
CHECK_TYPE'IMAGE (C2) /= IDENT_STR ("TWO") THEN
FAILED ("INCORRECT VALUE FOR CHECK_TYPE'IMAGE - 2");
END IF;
IF CHARRAY (1)'SIZE < IDENT_INT (BASIC_SIZE) THEN
FAILED ("INCORRECT VALUE FOR CHARRAY (1)'SIZE");
END IF;
IF NOT ((CHARRAY (0) < IDENT (ONE)) AND
(IDENT (CHARRAY (2)) > IDENT (CHARRAY (1))) AND
(CHARRAY (1) <= IDENT (ONE)) AND
(IDENT (TWO) = CHARRAY (2))) THEN
FAILED ("INCORRECT RESULTS FOR RELATIONAL OPERATORS - 3");
END IF;
IF NOT ((IDENT (CHARRAY (1)) IN CHARRAY (1) .. CHARRAY (2)) AND
(CHARRAY (0) NOT IN IDENT (ONE) .. CHARRAY (2))) THEN
FAILED ("INCORRECT RESULTS FOR MEMBERSHIP OPERATORS - 3");
END IF;
IF CHECK_TYPE'VAL (0) /= IDENT (CHARRAY (0)) OR
CHECK_TYPE'VAL (1) /= IDENT (CHARRAY (1)) OR
CHECK_TYPE'VAL (2) /= IDENT (CHARRAY (2)) THEN
FAILED ("INCORRECT VALUE FOR CHECK_TYPE'VAL - 3");
END IF;
IF CHECK_TYPE'PRED (CHARRAY (1)) /= IDENT (CHARRAY (0)) OR
CHECK_TYPE'PRED (CHARRAY (2)) /= IDENT (CHARRAY (1)) THEN
FAILED ("INCORRECT VALUE FOR CHECK_TYPE'PRED - 3");
END IF;
IF CHECK_TYPE'VALUE ("ZERO") /= IDENT (CHARRAY (0)) OR
CHECK_TYPE'VALUE ("ONE") /= IDENT (CHARRAY (1)) OR
CHECK_TYPE'VALUE ("TWO") /= IDENT (CHARRAY (2)) THEN
FAILED ("INCORRECT VALUE FOR CHECK_TYPE'VALUE - 3");
END IF;
IF CHREC.COMP2'SIZE < IDENT_INT (BASIC_SIZE) THEN
FAILED ("INCORRECT VALUE FOR CHREC.COMP2'SIZE");
END IF;
IF NOT ((CHREC.COMP0 < IDENT (ONE)) AND
(IDENT (CHREC.COMP2) > IDENT (CHREC.COMP1)) AND
(CHREC.COMP1 <= IDENT (ONE)) AND
(IDENT (TWO) = CHREC.COMP2)) THEN
FAILED ("INCORRECT RESULTS FOR RELATIONAL OPERATORS - 4");
END IF;
IF NOT ((IDENT (CHREC.COMP1) IN CHREC.COMP1 .. CHREC.COMP2) AND
(CHREC.COMP0 NOT IN IDENT (ONE) .. CHREC.COMP2)) THEN
FAILED ("INCORRECT RESULTS FOR MEMBERSHIP OPERATORS - 4");
END IF;
IF CHECK_TYPE'POS (CHREC.COMP0) /= IDENT_INT (0) OR
CHECK_TYPE'POS (CHREC.COMP1) /= IDENT_INT (1) OR
CHECK_TYPE'POS (CHREC.COMP2) /= IDENT_INT (2) THEN
FAILED ("INCORRECT VALUE FOR CHECK_TYPE'POS - 4");
END IF;
IF CHECK_TYPE'SUCC (CHREC.COMP0) /= IDENT (CHREC.COMP1) OR
CHECK_TYPE'SUCC (CHREC.COMP1) /= IDENT (CHREC.COMP2) THEN
FAILED ("INCORRECT VALUE FOR CHECK_TYPE'SUCC - 4");
END IF;
IF CHECK_TYPE'IMAGE (CHREC.COMP0) /= IDENT_STR ("ZERO") OR
CHECK_TYPE'IMAGE (CHREC.COMP1) /= IDENT_STR ("ONE") OR
CHECK_TYPE'IMAGE (CHREC.COMP2) /= IDENT_STR ("TWO") THEN
FAILED ("INCORRECT VALUE FOR CHECK_TYPE'IMAGE - 4");
END IF;
RESULT;
END CD2A23A;
|
app/hack/bad_handler.asm | USN484259/COFUOS | 1 | 18194 | [bits 64]
set_handler equ 0x0118
exit_process equ 0x0210
section .text
mov rdx,0x0000800000001000
mov eax,set_handler
syscall
mov edx,eax
mov eax,exit_process
syscall |
oeis/264/A264359.asm | neoneye/loda-programs | 0 | 82739 | <gh_stars>0
; A264359: Number of (n+1)X(3+1) arrays of permutations of 0..n*4+3 with each element having directed index change 0,0 0,2 1,0 or -1,-2.
; Submitted by <NAME>(w3)
; 9,36,169,784,3600,16641,76729,354025,1633284,7535025,34762816,160376896,739894401,3413480625,15747991081,72652889764,335181944601,1546351938576,7134048689296,32912721515521,151841862142569,700517916355401,3231818579035396,14909898924573409,68786375381178624,317343897635791104,1464056636341090561,6754381761815229025,31161139434029486025,143760990282858339876,663237054308047850761,3059824430408551724944,14116409033709522316176,65125633362038554105089,300455173173182279983129
add $0,2
mul $0,2
seq $0,930 ; Narayana's cows sequence: a(0) = a(1) = a(2) = 1; thereafter a(n) = a(n-1) + a(n-3).
pow $0,2
|
tests/agentests.adb | psyomn/agen | 1 | 20684 | -- Copyright 2019 <NAME> (entomy)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
with Ada.Directories; use Ada.Directories;
with Agen; use Agen;
with Testing; use Testing;
with Testing.Directories; use Testing.Directories;
with Agen.Testing; use Agen.Testing;
with GNAT.OS_Lib; use GNAT.OS_Lib;
procedure AgenTests is
begin
Testing.Start("Agen");
declare
Param : Parameter;
begin
Is_Equal("Try_Parse(""name:string"")", Try_Parse("name:string", Param), True);
Is_Equal("Parameter", Param, "name", "string");
end;
declare
Param : Parameter;
begin
Is_Equal("Try_Parse(""name"")", Try_Parse("name", Param), False);
Is_Equal("Parameter", Param, "name", "");
end;
declare
Name : constant String := "dummy";
begin
Create_Project(Name);
Directory_Exists(Name);
Directory_Exists(Name & Directory_Separator & "obj");
Directory_Exists(Name & Directory_Separator & "obj" & Directory_Separator & "debug");
Directory_Exists(Name & Directory_Separator & "obj" & Directory_Separator & "release");
Directory_Exists(Name & Directory_Separator & "src");
Directory_Exists(Name & Directory_Separator & "bin");
File_Exists(Name & Directory_Separator & Name & ".gpr");
File_Exists(Name & Directory_Separator & "main.adb");
Delete_Tree(Name); --Cleans up afterwards
end;
Testing.Stop;
end AgenTests; |
test/Fail/Issue2363.agda | cruhland/agda | 1,989 | 8549 | <reponame>cruhland/agda
-- Andreas, 2016-12-29, issue #2363
data Nat : Set where
zero : Nat
suc : Nat → Nat
test : Nat → Nat
test (suc n) with zero
test zero | q = zero
test zero = zero
-- Error WAS:
-- With clause pattern zero is not an instance of its parent pattern (suc "n")
-- Expected error:
-- With clause pattern zero is not an instance of its parent pattern (suc n)
|
programs/sysinfo.asm | sirupsen/flying-cat | 7 | 12229 | ; System Information Program (v1.0, July 6 2010)
; Written by <NAME>
;
; BareMetal compile:
; nasm sysinfo.asm -o sysinfo.app
[BITS 64]
[ORG 0x0000000000200000]
%INCLUDE "bmdev.asm"
start: ; Start of program label
mov rsi, startmessage ; Load RSI with memory address of string
call b_print_string ; Print the string that RSI points to
;Get processor brand string
xor rax, rax
mov rdi, tstring
mov eax, 0x80000002
cpuid
stosd
mov eax, ebx
stosd
mov eax, ecx
stosd
mov eax, edx
stosd
mov eax, 0x80000003
cpuid
stosd
mov eax, ebx
stosd
mov eax, ecx
stosd
mov eax, edx
stosd
mov eax, 0x80000004
cpuid
stosd
mov eax, ebx
stosd
mov eax, ecx
stosd
mov eax, edx
stosd
xor al, al
stosb ; Terminate the string
mov rsi, tstring
call b_string_parse
mov rsi, cpustringmsg
call b_print_string
mov rsi, tstring
call b_print_string
; Number of cores
call b_print_newline
mov rsi, numcoresmsg
call b_print_string
xor rax, rax
mov rsi, 0xf012
lodsw
mov rdi, tstring
call b_int_to_string
mov rsi, tstring
call b_print_string
; Speed
call b_print_newline
mov rsi, speedmsg
call b_print_string
xor rax, rax
mov rsi, 0xf010
lodsw
mov rdi, tstring
call b_int_to_string
mov rsi, tstring
call b_print_string
mov rsi, mhzmsg
call b_print_string
; L1 code/data cache info
call b_print_newline
mov eax, 0x80000005 ; L1 cache info
cpuid
mov eax, edx ; EDX bits 31 - 24 store code L1 cache size in KBs
shr eax, 24
mov rdi, tstring
call b_int_to_string
mov rsi, l1ccachemsg
call b_print_string
mov rsi, tstring
call b_print_string
mov rsi, kbmsg
call b_print_string
call b_print_newline
mov eax, ecx ; ECX bits 31 - 24 store data L1 cache size in KBs
shr eax, 24
mov rdi, tstring
call b_int_to_string
mov rsi, l1dcachemsg
call b_print_string
mov rsi, tstring
call b_print_string
mov rsi, kbmsg
call b_print_string
; L2/L3 cache info
call b_print_newline
mov eax, 0x80000006 ; L2/L3 cache info
cpuid
mov eax, ecx ; ecx bits 31 - 16 store unified L2 cache size in KBs
shr eax, 16
mov rdi, tstring
call b_int_to_string
mov rsi, l2ucachemsg
call b_print_string
mov rsi, tstring
call b_print_string
mov rsi, kbmsg
call b_print_string
call b_print_newline
mov eax, edx ; edx bits 31 - 18 store unified L3 cache size in 512 KB chunks
shr eax, 18
and eax, 0x3FFFF ; clear bits 18 - 31
shl eax, 9 ; Convert the value for 512 KB chunks to KBs (Multiply by 512)
mov rdi, tstring
call b_int_to_string
mov rsi, l3ucachemsg
call b_print_string
mov rsi, tstring
call b_print_string
mov rsi, kbmsg
call b_print_string
;CPU features
call b_print_newline
mov rsi, cpufeatures
call b_print_string
mov rax, 1
cpuid
checksse:
test edx, 00000010000000000000000000000000b
jz checksse2
mov rsi, sse
call b_print_string
checksse2:
test edx, 00000100000000000000000000000000b
jz checksse3
mov rsi, sse2
call b_print_string
checksse3:
test ecx, 00000000000000000000000000000001b
jz checkssse3
mov rsi, sse3
call b_print_string
checkssse3:
test ecx, 00000000000000000000001000000000b
jz checksse41
mov rsi, ssse3
call b_print_string
checksse41:
test ecx, 00000000000010000000000000000000b
jz checksse42
mov rsi, sse41
call b_print_string
checksse42:
test ecx, 00000000000100000000000000000000b
jz checkaes
mov rsi, sse42
call b_print_string
checkaes:
test ecx, 00000010000000000000000000000000b
jz checkavx
mov rsi, aes
call b_print_string
checkavx:
test ecx, 00010000000000000000000000000000b
jz endit
mov rsi, avx
call b_print_string
endit:
;RAM
call b_print_newline
mov rsi, memmessage
call b_print_string
xor rax, rax
mov rsi, 0xf020
lodsw
mov rdi, tstring
call b_int_to_string
mov rsi, tstring
call b_print_string
mov rsi, mbmsg
call b_print_string
call b_print_newline
ret ; Return to OS
startmessage: db 'System Information:', 13, 0
cpustringmsg: db 'CPU String: ', 0
numcoresmsg: db 'Number of cores: ', 0
speedmsg: db 'Detected speed: ', 0
l1ccachemsg: db 'L1 code cache: ', 0
l1dcachemsg: db 'L1 data cache: ', 0
l2ucachemsg: db 'L2 unified cache: ', 0
l3ucachemsg: db 'L3 unified cache: ', 0
cpufeatures: db 'CPU features: ', 0
kbmsg: db ' KiB', 0
mbmsg: db ' MiB', 0
mhzmsg: db ' MHz', 0
sse: db 'SSE ', 0
sse2: db 'SSE2 ', 0
sse3: db 'SSE3 ', 0
ssse3: db 'SSSE3 ', 0
sse41: db 'SSE4.1 ', 0
sse42: db 'SSE4.2 ', 0
aes: db 'AES ', 0
avx: db 'AVX ', 0
memmessage: db 'RAM: ', 0
tstring: times 50 db 0 |
Working Disassembly/General/Ending/Map - Knuckles End Pose.asm | TeamASM-Blur/Sonic-3-Blue-Balls-Edition | 5 | 80203 | <filename>Working Disassembly/General/Ending/Map - Knuckles End Pose.asm
Map_60A4C: dc.w word_60A52-Map_60A4C
dc.w word_60A5A-Map_60A4C
dc.w word_60A68-Map_60A4C
word_60A52: dc.w 1
dc.b $F8, 5, 0, $10, $FF, $F8
word_60A5A: dc.w 2
dc.b $F0, $F, 0, $26, $FF, $F0
dc.b $10, 4, 0, $36, 0, 0
word_60A68: dc.w 8
dc.b $CC, $F, 0, $38, 0, 0
dc.b $CC, 5, 0, $48, $FF, $F0
dc.b $DC, $F, 0, $4C, $FF, $E0
dc.b $EC, $D, 0, $5C, 0, 0
dc.b $FC, $F, 0, $64, $FF, $E0
dc.b $FC, 6, 0, $74, 0, 0
dc.b $14, 9, 0, $7A, 0, 0
dc.b $1C, 6, 0, $80, $FF, $F0
|
source/contexts/plain/program-plain_source_buffers.adb | optikos/oasis | 0 | 21553 | <gh_stars>0
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Streams.Stream_IO;
with Ada.Strings.UTF_Encoding.Wide_Wide_Strings;
with Interfaces;
with Program.Scanners;
package body Program.Plain_Source_Buffers is
subtype UTF_8_String is Ada.Strings.UTF_Encoding.UTF_8_String;
----------------
-- Initialize --
----------------
not overriding procedure Initialize
(Self : in out Source_Buffer;
Name : Program.Text)
is
procedure Read_File (Text : in out UTF_8_String);
Input : Ada.Streams.Stream_IO.File_Type;
---------------
-- Read_File --
---------------
procedure Read_File (Text : in out UTF_8_String) is
Data : Ada.Streams.Stream_Element_Array (1 .. Text'Length)
with Import, Convention => Ada, Address => Text'Address;
Last : Ada.Streams.Stream_Element_Offset;
begin
Ada.Streams.Stream_IO.Read (Input, Data, Last);
end Read_File;
File_Size : Natural;
File_Name : constant UTF_8_String :=
Ada.Strings.UTF_Encoding.Wide_Wide_Strings.Encode (Name);
begin
Ada.Streams.Stream_IO.Open
(Input, Ada.Streams.Stream_IO.In_File, File_Name);
File_Size := Natural (Ada.Streams.Stream_IO.Size (Input));
Self.Text := new UTF_8_String (1 .. File_Size);
Read_File (Self.Text.all);
Ada.Streams.Stream_IO.Close (Input);
Self.Rewind;
end Initialize;
----------
-- Read --
----------
overriding procedure Read
(Self : in out Source_Buffer;
Data : out Program.Source_Buffers.Character_Info_Array;
Last : out Natural)
is
use all type Interfaces.Unsigned_32;
procedure Add
(Value : in out Interfaces.Unsigned_32;
Continuation : String);
---------
-- Add --
---------
procedure Add
(Value : in out Interfaces.Unsigned_32;
Continuation : String)
is
Code : Interfaces.Unsigned_32 range 2#10_000000# .. 2#10_111111#;
begin
for Next of Continuation loop
Code := Character'Pos (Next);
Value := Shift_Left (Value, 6) or (Code and 2#00_111111#);
end loop;
end Add;
Index : Positive := Data'First;
Min : constant Natural := Natural'Min
(Data'Length, Self.Text'Last - Self.From + 1);
Char : Interfaces.Unsigned_32;
begin
Last := Data'First + Min - 1;
while Index <= Last and Self.From <= Self.Text'Last loop
Char := Character'Pos (Self.Text (Self.From));
case Char is
when 0 .. 16#7F# =>
Data (Index).Length := 1;
when 2#110_00000# .. 2#110_11111# =>
Char := Char and 2#000_11111#;
Data (Index).Length := 2;
when 2#1110_0000# .. 2#1110_1111# =>
Char := Char and 2#0000_1111#;
Data (Index).Length := 3;
when 2#11110_000# .. 2#11110_111# =>
Char := Char and 2#00000_111#;
Data (Index).Length := 4;
when others =>
raise Constraint_Error with "Wrong UTF-8 data";
end case;
Add
(Char,
Self.Text (Self.From + 1 .. Self.From + Data (Index).Length - 1));
Data (Index).Class :=
Program.Scanners.Tables.To_Class (Natural (Char));
Self.From := Self.From + Data (Index).Length;
Index := Index + 1;
end loop;
end Read;
------------
-- Rewind --
------------
overriding procedure Rewind (Self : in out Source_Buffer) is
begin
Self.From := 1;
end Rewind;
----------
-- Text --
----------
overriding function Text
(Self : Source_Buffer;
Span : Program.Source_Buffers.Span) return Program.Text is
begin
return Ada.Strings.UTF_Encoding.Wide_Wide_Strings.Decode
(Self.Text (Span.From .. Span.To));
end Text;
end Program.Plain_Source_Buffers;
|
thirdparty/adasdl/thin/adasdl/AdaSDL_image/sdl_image.adb | Lucretia/old_nehe_ada95 | 0 | 12405 |
package body SDL_Image is
-- =================================================
function Load (file : String) return V.Surface_ptr is
begin
return Load (CS.New_String (file));
end Load;
-- =================================================
function LoadTyped_RW (src : RW.RWops_ptr;
freesrc : C.int;
the_type : String)
return V.Surface_ptr is
begin
return LoadTyped_RW (src, freesrc, CS.New_String (the_type));
end LoadTyped_RW;
-- =================================================
end SDL_Image;
|
src/SystemF/Reduction.agda | sstucki/system-f-agda | 68 | 1650 | <filename>src/SystemF/Reduction.agda
----------------------------------------------------------------------
-- Functional small-step semantics
----------------------------------------------------------------------
module SystemF.Reduction where
open import Codata.Musical.Notation
open import Category.Monad
open import Category.Monad.Partiality.All
open import Data.Maybe as Maybe using (Maybe; just; nothing; map)
open import Data.Maybe.Relation.Unary.All as MaybeAll using (nothing; just)
open import Data.Maybe.Relation.Unary.Any as MaybeAny using (just)
open import Data.Nat using (ℕ; _+_)
open import Data.Unit using (tt)
open import Data.Vec using ([])
open import Relation.Binary.PropositionalEquality as P using (_≡_; _≢_)
open import Relation.Nullary
open import PartialityAndFailure as PF
open PF.Equality hiding (fail)
open PF.Equivalence
private
open module M {f} = RawMonad (PF.monad {f}) using (_>>=_; return)
open import SystemF.Type
open import SystemF.Term
open import SystemF.WtTerm
open import SystemF.Eval hiding (type-soundness)
open TypeSubst using () renaming (_[/_] to _[/tp_])
open TermTypeSubst using () renaming (_[/_] to _[/tmTp_])
open TermTermSubst using () renaming (_[/_] to _[/tmTm_])
open WtTermTypeSubst using () renaming (_[/_]′ to _[/⊢tmTp_])
open WtTermTermSubst using () renaming (_[/_] to _[/⊢tmTm_])
----------------------------------------------------------------------
-- Functional call-by-value small-step semantics in the partiality
-- monad
-- The functional presentation of the small-step semantics below is
-- heavily inspired by Danielsson's ICFP'12 paper "Operational
-- Semantics Using the Partiality Monad". Whereas the paper
-- illustrates the technique to give a functional abstract machine
-- semantics (i.e. the semantics of a "VM"), we skip the compilation
-- step and directly reduce terms, which results in a (functional)
-- structural operational semantics (SOS). We adopt many of the
-- conventions used in the accompanying code, which can be found at
--
-- http://www.cse.chalmers.se/~nad/publications/danielsson-semantics-partiality-monad.tgz
--
-- As pointed out in Danielsson's paper, the functional presentation
-- of the semantics feels rather natural in that it follows the form
-- of an interpreter, and it has the added advantage of proving that
-- the semantics are deterministic and computable "for free".
--
-- For more information about Danielson's paper see
--
-- http://www.cse.chalmers.se/~nad/publications/danielsson-semantics-partiality-monad.html
----------------------------------------------------------------------
-- Small-step call-by-value reduction
-- Results of reduction steps
data Result (m n : ℕ) : Set where
continue : (t : Term m n) → Result m n -- further reducible term
done : (v : Val m n) → Result m n -- irreducible value
-- Take a single reduction step (if possible).
step : ∀ {m n} → Term m n → Maybe (Result m n)
step (var x) = nothing
step (Λ t) = just (done (Λ t))
step (λ' a t) = just (done (λ' a t))
step (μ a t) = just (continue (t [/tmTm μ a t ]))
step (t [ a ]) with step t
... | just (continue t′) = just (continue (t′ [ a ]))
... | just (done (Λ t′)) = just (continue (t′ [/tmTp a ]))
... | just (done _) = nothing
... | nothing = nothing
step {m} {n} (s · t) with step s
... | just (continue s′) = just (continue (s′ · t))
... | just (done v) = nested v
where -- Call-by-value: only reduce (s · t) if s is a value.
nested : Val m n → Maybe (Result m n)
nested v with step t
nested v | (just (continue t′)) = just (continue (⌜ v ⌝ · t′))
nested (λ' _ s′) | (just (done v)) = just (continue (s′ [/tmTm ⌜ v ⌝ ]))
nested _ | (just (done _)) = nothing
nested _ | nothing = nothing
... | nothing = nothing
step (fold a t) with step t
... | just (continue t′) = just (continue (fold a t′))
... | just (done v) = just (done (fold a v))
... | nothing = nothing
step (unfold a t) with step t
... | just (continue t′) = just (continue (unfold a t′))
... | just (done (fold _ v)) = just (done v)
... | just (done _) = nothing
... | nothing = nothing
----------------------------------------------------------------------
-- Type soundness
infix 4 _⊢res_∈_ _⊢res?_∈_
-- Well-typedness lifted to results of reduction steps.
data _⊢res_∈_ {m n} (Γ : Ctx m n) : Result m n → Type n → Set where
⊢continue : ∀ {t a} → Γ ⊢ t ∈ a → Γ ⊢res continue t ∈ a
⊢done : ∀ {v a} → Γ ⊢val v ∈ a → Γ ⊢res done v ∈ a
-- Well-typedness lifted to possibly undefined reduction steps.
_⊢res?_∈_ : ∀ {m n} → Ctx m n → Maybe (Result m n) → Type n → Set
Γ ⊢res? r? ∈ a = MaybeAll.All (λ r → Γ ⊢res r ∈ a) r?
-- Preservation of well-typedness: a well-typed term reduces in one
-- step to a result of the same type or fails to reduce.
⊢step : ∀ {m n} {Γ : Ctx m n} {t a} → Γ ⊢ t ∈ a → Γ ⊢res? step t ∈ a
⊢step (var x) = nothing
⊢step (Λ ⊢t) = just (⊢done (Λ ⊢t))
⊢step (λ' a ⊢t) = just (⊢done (λ' a ⊢t))
⊢step (μ a ⊢t) = just (⊢continue (⊢t [/⊢tmTm μ a ⊢t ]))
⊢step {t = t [ a ]} (⊢t [ .a ]) with step t | ⊢step ⊢t
... | just ._ | just (⊢continue ⊢t′) = just (⊢continue (⊢t′ [ a ]))
... | just ._ | just (⊢done (Λ ⊢t′)) = just (⊢continue (⊢t′ [/⊢tmTp a ]))
... | nothing | nothing = nothing
⊢step {m} {n} {Γ} {s · t} {b} (⊢s · ⊢t) with step s | ⊢step ⊢s
... | just ._ | just (⊢continue ⊢s′) = just (⊢continue (⊢s′ · ⊢t))
... | just (done (λ' a s′)) | just (⊢done (λ' .a ⊢s′)) = nested
where
nested : Γ ⊢res? step ((λ' a s′) · t) ∈ b
nested with step t | ⊢step ⊢t
... | just ._ | just (⊢continue ⊢t′) = just (⊢continue ((λ' a ⊢s′) · ⊢t′))
... | just ._ | just (⊢done v) = just (⊢continue (⊢s′ [/⊢tmTm ⊢⌜ v ⌝ ]))
... | nothing | nothing = nothing
... | nothing | nothing = nothing
⊢step {t = fold a t} (fold .a ⊢t) with step t | ⊢step ⊢t
... | just ._ | just (⊢continue ⊢t′) = just (⊢continue (fold a ⊢t′))
... | just ._ | just (⊢done ⊢v) = just (⊢done (fold a ⊢v))
... | nothing | nothing = nothing
⊢step {t = unfold a t} (unfold .a ⊢t) with step t | ⊢step ⊢t
... | just ._ | just (⊢continue ⊢t′) = just (⊢continue (unfold a ⊢t′))
... | just ._ | just (⊢done (fold .a ⊢v)) = just (⊢done ⊢v)
... | nothing | nothing = nothing
-- Progress: reduction of well-typed closed terms does not fail.
progress : ∀ {t} {a : Type 0} → [] ⊢ t ∈ a → Maybe.Is-just (step t)
progress (var ())
progress (Λ t) = just tt
progress (λ' a t) = just tt
progress (μ a t) = just tt
progress {t [ a ]} (⊢t [ .a ]) with step t | ⊢step ⊢t | progress ⊢t
... | just ._ | just (⊢continue _) | just tt = just tt
... | just ._ | just (⊢done (Λ _)) | just tt = just tt
progress {s · t} (⊢s · ⊢t) with step s | ⊢step ⊢s | progress ⊢s
... | just ._ | just (⊢continue _) | just tt = just tt
... | just (done (λ' a s′)) | just (⊢done (λ' .a _)) | just tt = nested
where
nested : Maybe.Is-just (step ((λ' a s′) · t))
nested with step t | ⊢step ⊢t | progress ⊢t
... | just ._ | just (⊢continue _) | just tt = just tt
... | just ._ | just (⊢done _) | just tt = just tt
progress {fold a t} (fold .a ⊢t) with step t | ⊢step ⊢t | progress ⊢t
... | just ._ | just (⊢continue _) | just tt = just tt
... | just ._ | just (⊢done _) | just tt = just tt
progress {unfold a t} (unfold .a ⊢t) with step t | ⊢step ⊢t | progress ⊢t
... | just ._ | just (⊢continue _) | just tt = just tt
... | just ._ | just (⊢done (fold .a _)) | just tt = just tt
infix 7 _↓ ⊢_↓
-- Evaluation of untyped (open) terms in the partiality monad via
-- repeated reduction.
_↓ : ∀ {m n} → Term m n → Comp m n
t ↓ with step t
... | just (continue t′) = later (♯ (t′ ↓))
... | just (done v) = return v
... | nothing = fail
-- Evaluation of closed terms preserves well-typedness.
⊢_↓ : ∀ {t a} → [] ⊢ t ∈ a → [] ⊢comp t ↓ ∈ a
⊢_↓ {t} ⊢t with step t | ⊢step ⊢t | progress ⊢t
... | just (continue t′) | just (⊢continue ⊢t′) | just tt = later (♯ ⊢ ⊢t′ ↓)
... | just (done v) | just (⊢done ⊢v) | just tt = now (just ⊢v)
... | nothing | _ | ()
-- Type soundness: evaluation of well-typed terms does not fail.
type-soundness : ∀ {t a} → [] ⊢ t ∈ a → ¬ t ↓ ≈ fail
type-soundness ⊢t = does-not-fail ⊢ ⊢t ↓
----------------------------------------------------------------------
-- Strong bisimilarity of big-step and small-step semantics
open PF.AlternativeEquality
renaming (return to returnP; fail to failP; _>>=_ to _>>=P_)
-- Lemma: values don't reduce.
step-val : ∀ {m n} (v : Val m n) → step ⌜ v ⌝ ≡ just (done v)
step-val (Λ a) = P.refl
step-val (λ' a t) = P.refl
step-val (fold a v) with step ⌜ v ⌝ | step-val v
... | just (continue t) | ()
... | just (done w) | w≡v = P.cong (map (lower a)) w≡v
where lower : ∀ {m n} → Type (1 + n) → Result m n → Result m n
lower a (done v) = done (fold a v)
lower a (continue t) = continue t
... | nothing | ()
-- Lemma: _↓ "preserves" values.
↓-val : ∀ {m n} (v : Val m n) → ⌜ v ⌝ ↓ ≡ return v
↓-val v with step ⌜ v ⌝ | step-val v
↓-val v | just (continue t) | ()
↓-val v | just (done w) | w≡v = P.cong toComp w≡v
where toComp : ∀ {m n} → Maybe (Result m n) → Comp m n
toComp (just (continue t′)) = later (♯ (t′ ↓))
toComp (just (done v)) = return v
toComp nothing = fail
↓-val v | nothing | ()
mutual
infix 7 _[_]⇓≅↓′ _·⇓≅↓′_
-- A helper lemma relating reduction and evaluation of type
-- application.
_[_]⇓≅↓′ : ∀ {m n} (t : Term m n) (a : Type n) →
(t ↓) [ a ]⇓ ≅P (t [ a ]) ↓
t [ a ]⇓≅↓′ with step t
... | just (continue t′) = later (♯ (t′ [ a ]⇓≅↓′))
... | just (done (Λ t′)) = later (♯ ⇓≅↓′ (t′ [/tmTp a ]) )
... | just (done (λ' _ _)) = failP
... | just (done (fold _ _)) = failP
... | nothing = failP
-- A helper lemma relating reduction and evaluation of term
-- application.
_·⇓≅↓′_ : ∀ {m n} (s : Term m n) (t : Term m n) →
(s ↓) ·⇓ (t ↓) ≅P (s · t) ↓
s ·⇓≅↓′ t with step s
s ·⇓≅↓′ t | just (continue s′) = later (♯ (s′ ·⇓≅↓′ t))
s ·⇓≅↓′ t | just (done v) with step t
s ·⇓≅↓′ t | just (done v) | just (continue t′) = later (♯ subst v)
where
subst : ∀ v → (return v) ·⇓ (t′ ↓) ≅P (⌜ v ⌝ · t′) ↓
subst v with ⌜ v ⌝ ↓ | ↓-val v | ⌜ v ⌝ ·⇓≅↓′ t′
subst v | now (just .v) | P.refl | v≅t′ = v≅t′
subst _ | now nothing | () | _
subst _ | later x₁ | () | _
s ·⇓≅↓′ t | just (done (Λ s′)) | just (done w) = failP
s ·⇓≅↓′ t | just (done (λ' a s′)) | just (done w) =
later (♯ ⇓≅↓′ (s′ [/tmTm ⌜ w ⌝ ]))
s ·⇓≅↓′ t | just (done (fold x v)) | just (done w) = failP
s ·⇓≅↓′ t | just (done v) | nothing = failP
s ·⇓≅↓′ t | nothing = failP
-- A helper lemma relating reduction and evaluation of recursive
-- type folding.
fold⇓≅↓′ : ∀ {m n} (a : Type (1 + n)) (t : Term m n) →
fold⇓ a (t ↓) ≅P (fold a t) ↓
fold⇓≅↓′ a t with step t
... | just (continue t′) = later (♯ fold⇓≅↓′ a t′)
... | just (done v) = returnP P.refl
... | nothing = failP
-- A helper lemma relating reduction and evaluation of recursive
-- type unfolding.
unfold⇓≅↓′ : ∀ {m n} (a : Type (1 + n)) (t : Term m n) →
unfold⇓ a (t ↓) ≅P (unfold a t) ↓
unfold⇓≅↓′ a t with step t
... | just (continue t′) = later (♯ unfold⇓≅↓′ a t′)
... | just (done (Λ _)) = failP
... | just (done (λ' _ _)) = failP
... | just (done (fold _ v)) = returnP P.refl
... | nothing = failP
-- Big-step evaluation and small-step reduction are strongly bisimliar.
⇓≅↓′ : ∀ {m n} (t : Term m n) → t ⇓ ≅P t ↓
⇓≅↓′ (var x) = failP
⇓≅↓′ (Λ t) = returnP P.refl
⇓≅↓′ (λ' a t) = returnP P.refl
⇓≅↓′ (μ a t) = later (♯ ⇓≅↓′ (t [/tmTm μ a t ]))
⇓≅↓′ (t [ a ]) =
(t [ a ]) ⇓ ≅⟨ complete ([]-comp t a) ⟩
(t ⇓) [ a ]⇓ ≅⟨ (⇓≅↓′ t) >>=P (λ v → (_ ∎)) ⟩
(t ↓) [ a ]⇓ ≅⟨ t [ a ]⇓≅↓′ ⟩
(t [ a ]) ↓ ∎
⇓≅↓′ (s · t) =
(s · t) ⇓ ≅⟨ complete (·-comp s t) ⟩
(s ⇓) ·⇓ (t ⇓) ≅⟨ (⇓≅↓′ s >>=P λ v → ⇓≅↓′ t >>=P λ w → (_ ∎)) ⟩
(s ↓) ·⇓ (t ↓) ≅⟨ s ·⇓≅↓′ t ⟩
(s · t) ↓ ∎
⇓≅↓′ (fold a t) =
(fold a t) ⇓ ≅⟨ complete (fold-comp a t) ⟩
fold⇓ a (t ⇓) ≅⟨ (⇓≅↓′ t) >>=P (λ v → (_ ∎)) ⟩
fold⇓ a (t ↓) ≅⟨ fold⇓≅↓′ a t ⟩
(fold a t) ↓ ∎
⇓≅↓′ (unfold a t) =
(unfold a t) ⇓ ≅⟨ complete (unfold-comp a t) ⟩
unfold⇓ a (t ⇓) ≅⟨ (⇓≅↓′ t) >>=P (λ v → (_ ∎)) ⟩
unfold⇓ a (t ↓) ≅⟨ unfold⇓≅↓′ a t ⟩
(unfold a t) ↓ ∎
-- Big-step evaluation and small-step reduction are strongly bisimliar.
⇓≅↓ : ∀ {m n} (t : Term m n) → t ⇓ ≅ t ↓
⇓≅↓ t = sound (⇓≅↓′ t)
|
oeis/000/A000203.asm | neoneye/loda-programs | 11 | 240434 | <reponame>neoneye/loda-programs
; A000203: a(n) = sigma(n), the sum of the divisors of n. Also called sigma_1(n).
; 1,3,4,7,6,12,8,15,13,18,12,28,14,24,24,31,18,39,20,42,32,36,24,60,31,42,40,56,30,72,32,63,48,54,48,91,38,60,56,90,42,96,44,84,78,72,48,124,57,93,72,98,54,120,72,120,80,90,60,168,62,96,104,127,84,144,68,126,96,144,72,195,74,114,124,140,96,168,80,186,121,126,84,224,108,132,120,180,90,234,112,168,128,144,120,252,98,171,156,217
add $0,1
mov $2,$0
lpb $0
mov $3,$2
dif $3,$0
cmp $3,$2
cmp $3,0
mul $3,$0
sub $0,1
add $1,$3
lpe
add $1,1
mov $0,$1
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.