Premier commit
Cette révision appartient à :
révision
536792a769
62 fichiers modifiés
+6766
Aucun fichier ne correspond à votre recherche
Fichier binaire non affiché.
@@ -0,0 +1,92 @@
|
||||
Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter)
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
http://scripts.sil.org/OFL
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION AND CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
@@ -0,0 +1,122 @@
|
||||
# proj3 golden raster dump v1 (source : Gastinel Write)
|
||||
# upem 2048
|
||||
32 12 1777 0 0 0 0 0 3
|
||||
32 16 1777 0 0 0 0 0 5
|
||||
32 24 1777 0 0 0 0 0 7
|
||||
32 32 1777 0 0 0 0 0 9
|
||||
33 12 1427 1 5 12 -1 10 3 00000000000000ff00000000ff00000000ff00000000ff00000000ff00000000ff0000000000000000000000000000ff000000000000000000000000
|
||||
33 16 1427 1 5 15 0 13 5 00000000000000ff00000000ff00000000ff00000000ff00000000ff00000000ff00000000ff00000000ff00000000000000000000000000ffff000000ffff000000000000000000000000
|
||||
33 24 1427 1 7 21 0 19 7 00000000000000000000000000000000ffffff00000000ffffff00000000ffffff00000000ffffff00000000ffffff00000000ffffff00000000ffffff00000000ffffff00000000ffffff00000000ffffff00000000ffff0000000000000000000000000000000000000000000000000000ffffff00000000ffffff00000000ffffff00000000000000000000000000000000
|
||||
33 32 1427 1 7 27 1 25 9 00000000000000000000000000000000ffffff00000000ffffff00000000ffffff00000000ffffff00000000ffffff00000000ffffff00000000ffffff00000000ffffff00000000ffffff00000000ffffff00000000ffffff00000000ffffff00000000ffffff00000000ffffff00000000ffffff00000000ffffff00000000000000000000000000000000000000000000000000ffffff00000000ffffffff000000ffffffff000000ffffff00000000000000000000000000000000
|
||||
44 12 1501 1 5 7 -1 3 3 000000000000000000000000ff00000000ff00000000ff000000000000000000000000
|
||||
44 16 1501 1 5 7 0 3 5 00000000000000ff00000000ff000000ffff000000ff00000000ff0000000000000000
|
||||
44 24 1501 1 6 10 0 4 7 0000000000000000000000000000ffffff000000ffff00000000ffff00000000ffff00000000ffff00000000ff000000000000000000000000000000
|
||||
44 32 1501 1 7 12 1 5 9 00000000000000000000000000000000ffffff00000000ffffff00000000ffffff00000000ffffff00000000ffff00000000ffffff00000000ffffff00000000ffff0000000000ffff0000000000000000000000
|
||||
46 12 1502 1 5 5 -1 3 3 000000000000000000000000ff000000000000000000000000
|
||||
46 16 1502 1 5 6 0 4 5 0000000000000000000000ffff000000ffff000000000000000000000000
|
||||
46 24 1502 1 7 7 0 5 7 00000000000000000000000000000000ffffff00000000ffffff00000000ffffff00000000000000000000000000000000
|
||||
46 32 1502 1 7 8 1 6 9 00000000000000000000000000000000ffffff00000000ffffffff000000ffffffff000000ffffff00000000000000000000000000000000
|
||||
48 12 1341 1 9 12 -1 10 8 000000000000000000000000ffffff0000000000ffff0000ff00000000ff000000ffff000000ff00000000ff000000ff00000000ff000000ff00000000ff000000ff00000000ff000000ffff0000ff0000000000ffffff000000000000000000000000000000000000000000
|
||||
48 16 1341 1 12 15 -1 13 10 0000000000000000000000000000000000ffff0000000000000000ffffffffffff000000000000ff00000000ff0000000000ffff00000000ffff00000000ffff0000000000ff00000000ff000000000000ff00000000ff000000000000ff00000000ff000000000000ff00000000ffff00000000ffff00000000ffff00000000ffff0000000000ffff0000ffff00000000000000ffffffff00000000000000000000000000000000000000000000000000000000
|
||||
48 24 1341 1 15 21 0 19 15 000000000000000000000000000000000000000000ffffff00000000000000000000ffffffffffffff00000000000000ffffff000000ffffff000000000000ffff0000000000ffffff00000000ffff00000000000000ffff00000000ffff00000000000000ffff00000000ffff00000000000000ffff00000000ffff00000000000000ffffff0000ffffff0000000000000000ffff0000ffffff0000000000000000ffff0000ffffff0000000000000000ffff000000ffff00000000000000ffffff000000ffff00000000000000ffff00000000ffff00000000000000ffff00000000ffffff0000000000ffffff0000000000ffff0000000000ffff00000000000000ffffffffffffffff0000000000000000ffffffffff0000000000000000000000000000000000000000000000000000000000000000000000
|
||||
48 32 1341 1 20 27 0 25 20 0000000000000000000000000000000000000000000000000000000000ffff000000000000000000000000000000ffffffffffffffff0000000000000000000000ffffffffffffffffffff000000000000000000ffffffff00000000ffffffff0000000000000000ffffff000000000000ffffffff000000000000ffffff0000000000000000ffffff000000000000ffffff000000000000000000ffff0000000000ffffff00000000000000000000ffffff00000000ffffff00000000000000000000ffffff00000000ffffff00000000000000000000ffffff00000000ffffff00000000000000000000ffffff00000000ffffff00000000000000000000ffffff00000000ffffff00000000000000000000ffffff00000000ffffff00000000000000000000ffffff00000000ffffff00000000000000000000ffffff00000000ffffff00000000000000000000ffffff00000000ffffff00000000000000000000ffffff00000000ffffff00000000000000000000ffffff0000000000ffffff0000000000000000ffffff000000000000ffffff0000000000000000ffffff00000000000000ffffff000000000000ffffffff00000000000000ffffffffff0000ffffffffff000000000000000000ffffffffffffffffffff000000000000000000000000ffffffffffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
49 12 1342 1 6 11 -1 10 5 000000000000000000ffff000000ff00ff0000000000ff0000000000ff0000000000ff0000000000ff0000000000ff0000000000ff0000000000ff00000000000000
|
||||
49 16 1342 1 8 14 -1 13 7 000000000000000000000000ffff0000000000ffffff00000000ffff00ff00000000000000ff00000000000000ff00000000000000ff00000000000000ff00000000000000ff00000000000000ff00000000000000ff00000000000000ff00000000000000ff00000000000000000000
|
||||
49 24 1342 1 9 20 0 19 10 00000000000000000000000000000000000000000000ffffffff000000ffffffffffff0000ffffff00ffffff0000ffff0000ffffff000000000000ffffff000000000000ffffff000000000000ffffff000000000000ffffff000000000000ffffff000000000000ffffff000000000000ffffff000000000000ffffff000000000000ffffff000000000000ffffff000000000000ffffff000000000000ffffff000000000000ffffff00000000000000000000
|
||||
49 32 1342 1 12 26 0 25 13 000000000000000000000000000000000000000000000000000000000000ffffffff000000000000ffffffffffff0000000000ffffffffffffff000000ffffffffff00ffffff000000ffffff000000ffffff000000ffff00000000ffffff000000ff0000000000ffffff000000000000000000ffffff000000000000000000ffffff000000000000000000ffffff000000000000000000ffffff000000000000000000ffffff000000000000000000ffffff000000000000000000ffffff000000000000000000ffffff000000000000000000ffffff000000000000000000ffffff000000000000000000ffffff000000000000000000ffffff000000000000000000ffffff000000000000000000ffffff000000000000000000ffffff000000000000000000ffffff0000000000000000000000000000
|
||||
56 12 1351 1 9 12 -1 10 7 000000000000000000000000ffffff0000000000ffff0000ff00000000ff000000ff00000000ff000000ff0000000000ffffff0000000000ff000000ff00000000ff00000000ff000000ff000000ffff00000000ffffffff0000000000000000000000000000000000000000
|
||||
56 16 1351 1 11 15 -1 13 10 000000000000000000000000000000ffffff00000000000000ffffffffffff00000000ffff00000000ff00000000ffff00000000ff0000000000ff00000000ff0000000000ffffffffff000000000000ffffffffffff00000000ffff00000000ffff000000ff0000000000ffff000000ffff00000000ffff000000ffff000000ffff0000000000ffffffffff00000000000000000000000000000000000000000000000000
|
||||
56 24 1351 1 15 21 0 19 15 000000000000000000000000000000000000000000ffffff00000000000000000000ffffffffffffff00000000000000ffffff000000ffffff0000000000ffffff0000000000ffffff00000000ffff000000000000ffffff00000000ffff00000000000000ffff00000000ffffff0000000000ffff000000000000ffffff000000ffffff00000000000000ffffffffffffff00000000000000ffffffffffffffff000000000000ffffff0000000000ffff0000000000ffff00000000000000ffff00000000ffff00000000000000ffff000000ffffff00000000000000ffff00000000ffff00000000000000ffff00000000ffffff0000000000ffffff0000000000ffffffffffffffffff00000000000000ffffffffffffff00000000000000000000000000000000000000000000000000000000000000000000
|
||||
56 32 1351 1 19 27 0 25 20 00000000000000000000000000000000000000000000000000000000ffff0000000000000000000000000000ffffffffffffffff000000000000000000ffffffffffffffffffffff0000000000000000ffffffff00000000ffffffff000000000000ffffff00000000000000ffffffff0000000000ffffff0000000000000000ffffff0000000000ffffff0000000000000000ffffff0000000000ffffff0000000000000000ffffff0000000000ffffff0000000000000000ffffff000000000000ffffff000000000000ffffff00000000000000ffffffff000000ffffffff00000000000000000000ffffffffffffffff00000000000000000000ffffffffffffffffffff0000000000000000ffffffff00000000ffffffff000000000000ffffff0000000000000000ffffff00000000ffffff000000000000000000ffffff00000000ffffff00000000000000000000ffffff000000ffffff00000000000000000000ffffff000000ffffff00000000000000000000ffffff000000ffffff000000000000000000ffffffff00000000ffffff0000000000000000ffffff0000000000ffffffffff00000000ffffffffff000000000000ffffffffffffffffffffffff000000000000000000ffffffffffffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
65 12 2 1 10 11 -1 10 8 0000000000000000000000000000ffff0000000000000000ffff0000000000000000ff00ff000000000000ff0000ff000000000000ff0000ff000000000000ff000000ff00000000ffffffffffff00000000ff00000000ff000000ffff0000000000ff0000000000000000000000
|
||||
65 16 2 1 13 14 -1 13 11 00000000000000000000000000000000000000ff0000000000000000000000ffffff00000000000000000000ff00ff000000000000000000ffff00ffff0000000000000000ffff00ffff0000000000000000ff000000ff00000000000000ffff000000ffff000000000000ffffffffffffff000000000000ffffffffffffff0000000000ffff0000000000ffff00000000ffff000000000000ff00000000ff00000000000000ff000000000000000000000000000000
|
||||
65 24 2 1 18 20 -1 19 17 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffff0000000000000000000000000000ffffffff0000000000000000000000000000ffff00ffff00000000000000000000000000ffff00ffff000000000000000000000000ffff0000ffff000000000000000000000000ffff000000ffff00000000000000000000ffffff000000ffff00000000000000000000ffff00000000ffff00000000000000000000ffff0000000000ffff0000000000000000ffffff0000000000ffff0000000000000000ffffffffffffffffffffff00000000000000ffffffffffffffffffffff000000000000ffffff00000000000000ffff000000000000ffff0000000000000000ffffff0000000000ffff000000000000000000ffff00000000ffff00000000000000000000ffff00000000ffff00000000000000000000ffffff00000000000000000000000000000000000000
|
||||
65 32 2 1 24 26 -1 25 22 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffff0000000000000000000000000000000000000000ffffffff00000000000000000000000000000000000000ffffffffffff000000000000000000000000000000000000ffffffffffff000000000000000000000000000000000000ffff0000ffff0000000000000000000000000000000000ffffff0000ffffff00000000000000000000000000000000ffffff0000ffffff000000000000000000000000000000ffffff00000000ffffff0000000000000000000000000000ffffff00000000ffffff0000000000000000000000000000ffffff00000000ffffff00000000000000000000000000ffffff000000000000ffffff000000000000000000000000ffffff000000000000ffffff000000000000000000000000ffffff000000000000ffffff0000000000000000000000ffffff0000000000000000ffffff00000000000000000000ffffffffffffffffffffffffffff00000000000000000000ffffffffffffffffffffffffffffff0000000000000000ffffff00000000000000000000ffffff0000000000000000ffffff00000000000000000000ffffff00000000000000ffffffff0000000000000000000000ffffff000000000000ffffff000000000000000000000000ffffff000000000000ffffff000000000000000000000000ffffff0000000000ffffff0000000000000000000000000000ffffff00000000ffffff0000000000000000000000000000ffffff0000000000000000000000000000000000000000000000000000
|
||||
66 12 65 1 9 11 0 10 8 00000000000000000000ffffffff0000000000ff000000ffff000000ff00000000ff000000ff000000ffff000000ffffffff0000000000ff00000000ff000000ff00000000ff000000ff00000000ff000000ffffffffff000000000000000000000000
|
||||
66 16 65 1 11 14 0 13 10 000000000000000000000000ffffffffffff0000000000ffffffffffffff00000000ffff00000000ffff000000ffff0000000000ff000000ffff00000000ffff000000ffffffffffffff00000000ffffffffffffff00000000ffff0000000000ff000000ffff0000000000ffff0000ffff0000000000ff000000ffff00000000ffff000000ffffffffffffff0000000000000000000000000000
|
||||
66 24 65 1 15 20 1 19 16 00000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffff0000000000ffffffffffffffffffffff00000000ffff00000000000000ffff00000000ffff00000000000000ffffff000000ffff00000000000000ffffff000000ffff00000000000000ffff00000000ffff000000000000ffffff00000000ffffffffffffffffffff0000000000ffffffffffffffffffff0000000000ffff000000000000ffffff00000000ffff0000000000000000ffff000000ffff0000000000000000ffff000000ffff0000000000000000ffff000000ffff0000000000000000ffff000000ffff00000000000000ffffff000000ffffffffffffffffffffff00000000ffffffffffffffffffff00000000000000000000000000000000000000
|
||||
66 32 65 1 20 26 1 25 21 000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffff0000000000000000ffffffffffffffffffffffffff00000000000000ffffff00000000000000ffffffff000000000000ffffff0000000000000000ffffffff0000000000ffffff000000000000000000ffffff0000000000ffffff000000000000000000ffffff0000000000ffffff000000000000000000ffffff0000000000ffffff000000000000000000ffffff0000000000ffffff0000000000000000ffffffff0000000000ffffff00000000000000ffffffff000000000000ffffffffffffffffffffffff0000000000000000ffffffffffffffffffffffffff00000000000000ffffff000000000000ffffffffff000000000000ffffff000000000000000000ffffff0000000000ffffff00000000000000000000ffffff00000000ffffff00000000000000000000ffffff00000000ffffff00000000000000000000ffffff00000000ffffff00000000000000000000ffffff00000000ffffff00000000000000000000ffffff00000000ffffff000000000000000000ffffffff00000000ffffffffffffffffffffffffffffff0000000000ffffffffffffffffffffffffffff000000000000ffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000
|
||||
71 12 141 1 11 12 -1 10 9 000000000000000000000000000000ffffff00000000000000ff000000ff0000000000ff0000000000ff00000000ff00000000000000000000ff00000000000000000000ff000000ffffff00000000ff0000000000ff0000000000ff000000ffff0000000000ffffffffff00000000000000000000000000000000000000000000000000
|
||||
71 16 141 1 13 15 -1 13 12 000000000000000000000000000000000000ffffffff0000000000000000ffffffffffff000000000000ffff00000000ffff00000000ffff000000000000ffff000000ffff0000000000000000000000ff000000000000000000000000ff00000000ffffffffff000000ffff000000000000ffff000000ffff000000000000ffff00000000ff000000000000ff0000000000ffffff000000ffff00000000000000ffffffffff0000000000000000000000000000000000000000000000000000000000
|
||||
71 24 141 1 18 21 0 19 18 00000000000000000000000000000000000000000000000000ffffffff000000000000000000000000ffffffffffffffff000000000000000000ffffffff0000ffffffff00000000000000ffffff000000000000ffffff0000000000ffffff0000000000000000ffffff00000000ffff00000000000000000000ffff00000000ffff00000000000000000000000000000000ffff000000000000000000000000000000ffffff000000000000000000000000000000ffffff000000000000ffffffffffff000000ffffff000000000000ffffffffffff00000000ffff00000000000000000000ffff00000000ffff00000000000000000000ffff00000000ffffff000000000000000000ffff0000000000ffff0000000000000000ffffff0000000000ffffffff0000000000ffffff00000000000000ffffffffffffffffffff00000000000000000000ffffffffffffff0000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
71 32 141 1 23 27 0 25 24 00000000000000000000000000000000000000000000000000000000000000000000ffffff0000000000000000000000000000000000ffffffffffffffffff000000000000000000000000ffffffffffffffffffffffff00000000000000000000ffffffffff00000000ffffffffff0000000000000000ffffffff0000000000000000ffffffff000000000000ffffffff00000000000000000000ffffffff0000000000ffffff000000000000000000000000ffffff0000000000ffffff000000000000000000000000ffffffff000000ffffff0000000000000000000000000000000000000000ffffff0000000000000000000000000000000000000000ffffff0000000000000000000000000000000000000000ffffff0000000000000000000000000000000000000000ffffff0000000000000000ffffffffffffffffff000000ffffff0000000000000000ffffffffffffffffff000000ffffff0000000000000000ffffffffffffffffff000000ffffff0000000000000000000000000000ffffff000000ffffff0000000000000000000000000000ffffff00000000ffffff00000000000000000000000000ffffff00000000ffffff000000000000000000000000ffffff000000000000ffffff00000000000000000000ffffffff000000000000ffffffff0000000000000000ffffffff0000000000000000ffffffffffffff00ffffffffffff00000000000000000000ffffffffffffffffffffffff00000000000000000000000000ffffffffffffffff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
79 12 321 1 11 12 -1 10 9 000000000000000000000000000000ffffff00000000000000ff000000ff0000000000ff0000000000ff00000000ff0000000000ff00000000ff0000000000ff00000000ff0000000000ff00000000ff0000000000ff0000000000ff000000ffff000000000000ffffffff00000000000000000000000000000000000000000000000000
|
||||
79 16 321 1 14 15 -1 13 12 00000000000000000000000000000000000000ffffffff000000000000000000ffffffffffff00000000000000ffff00000000ffff0000000000ffff000000000000ffff00000000ffff00000000000000ff00000000ff0000000000000000ff00000000ff0000000000000000ff00000000ffff00000000000000ff00000000ffff000000000000ffff0000000000ff000000000000ffff0000000000ffffff0000ffffff0000000000000000ffffffffff0000000000000000000000000000000000000000000000000000000000000000
|
||||
79 24 321 1 18 21 0 19 18 00000000000000000000000000000000000000000000000000ffffffff000000000000000000000000ffffffffffffffff000000000000000000ffffffff0000ffffffff00000000000000ffffff000000000000ffffff0000000000ffffff0000000000000000ffffff00000000ffff00000000000000000000ffff00000000ffff00000000000000000000ffffff000000ffff0000000000000000000000ffff0000ffffff0000000000000000000000ffff0000ffffff0000000000000000000000ffff0000ffffff0000000000000000000000ffff000000ffff0000000000000000000000ffff000000ffff00000000000000000000ffff00000000ffffff000000000000000000ffff0000000000ffff0000000000000000ffffff0000000000ffffffff0000000000ffffff00000000000000ffffffffffffffffffff00000000000000000000ffffffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
79 32 321 1 24 27 0 25 24 0000000000000000000000000000000000000000000000000000000000000000000000ffffff000000000000000000000000000000000000ffffffffffffffffff00000000000000000000000000ffffffffffffffffffffffff0000000000000000000000ffffffffff00000000ffffffffffff0000000000000000ffffffff0000000000000000ffffffff0000000000000000ffffff00000000000000000000ffffffff000000000000ffffff000000000000000000000000ffffff000000000000ffffff00000000000000000000000000ffffff00000000ffffff0000000000000000000000000000ffffff00000000ffffff0000000000000000000000000000ffffff00000000ffffff000000000000000000000000000000ffff00000000ffffff000000000000000000000000000000ffffff000000ffffff000000000000000000000000000000ffffff000000ffffff000000000000000000000000000000ffffff000000ffffff000000000000000000000000000000ffff00000000ffffff0000000000000000000000000000ffffff00000000ffffff0000000000000000000000000000ffffff0000000000ffffff00000000000000000000000000ffffff0000000000ffffff000000000000000000000000ffffff00000000000000ffffff00000000000000000000ffffffff00000000000000ffffffff0000000000000000ffffffff000000000000000000ffffffffffffff00ffffffffffff0000000000000000000000ffffffffffffffffffffffff0000000000000000000000000000ffffffffffffffff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
87 12 459 1 14 11 -1 10 12 000000000000000000000000000000ffff000000ffff000000ff00000000ff000000ffff000000ff00000000ff000000ffff000000ff00000000ff0000ff00ff000000ff00000000ffff00ff0000ff00ff000000000000ff00ff0000ff00ff000000000000ff00ff0000ff00ff000000000000ffff000000ff00ff00000000000000ff00000000ff000000000000000000000000000000000000
|
||||
87 16 459 1 18 14 -1 13 16 00000000000000000000000000000000000000ffff0000000000ffff0000000000ff00000000ff0000000000ffff0000000000ff00000000ff00000000ffffff00000000ffff00000000ffff000000ffffffff000000ff000000000000ff000000ff00ffff000000ff000000000000ff000000ff0000ff000000ff000000000000ffff00ffff0000ff0000ffff000000000000ffff00ffff0000ffff00ff0000000000000000ff00ff000000ffff00ff0000000000000000ff00ff00000000ff00ff0000000000000000ffffff00000000ffffff0000000000000000ffff0000000000ffff0000000000000000000000000000000000000000000000
|
||||
87 24 459 1 26 20 -1 19 24 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffff00000000000000ffffff00000000000000ffffff00000000ffff00000000000000ffffffff000000000000ffffff00000000ffffff000000000000ffffffff000000000000ffff000000000000ffff000000000000ffffffff000000000000ffff000000000000ffff0000000000ffff00ffff0000000000ffffff000000000000ffff0000000000ffff0000ffff00000000ffff0000000000000000ffff00000000ffff0000ffff00000000ffff0000000000000000ffff000000ffffff0000ffff00000000ffff0000000000000000ffff000000ffff000000ffff000000ffffff0000000000000000ffff000000ffff00000000ffff0000ffff00000000000000000000ffff0000ffff00000000ffff0000ffff00000000000000000000ffff00ffff0000000000ffff0000ffff00000000000000000000ffff00ffff0000000000ffff00ffff0000000000000000000000ffff00ffff000000000000ffffffff000000000000000000000000ffffffff000000000000ffffffff000000000000000000000000ffffff00000000000000ffffffff000000000000000000000000ffffff0000000000000000ffff000000000000000000000000000000000000000000000000000000000000000000
|
||||
87 32 459 1 33 26 -1 25 32 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffff00000000000000000000ffffffff000000000000000000ffffffff000000ffffff00000000000000000000ffffffff000000000000000000ffffff0000000000ffffff0000000000000000ffffffffff000000000000000000ffffff0000000000ffffff0000000000000000ffffffffff000000000000000000ffffff0000000000ffffff0000000000000000ffff00ffffff00000000000000ffffff000000000000ffffff0000000000000000ffff00ffffff00000000000000ffffff00000000000000ffffff000000000000ffffff00ffffff00000000000000ffffff00000000000000ffffff000000000000ffffff0000ffff00000000000000ffffff00000000000000ffffff000000000000ffffff0000ffffff0000000000ffffff0000000000000000ffffff0000000000ffffff000000ffffff0000000000ffffff000000000000000000ffffff00000000ffffff00000000ffff0000000000ffffff000000000000000000ffffff00000000ffffff00000000ffffff00000000ffff00000000000000000000ffffff00000000ffff0000000000ffffff000000ffffff0000000000000000000000ffff000000ffffff0000000000ffffff000000ffffff0000000000000000000000ffffff0000ffffff000000000000ffff000000ffffff0000000000000000000000ffffff0000ffffff000000000000ffffff0000ffff000000000000000000000000ffffff0000ffff00000000000000ffffff00ffffff00000000000000000000000000ffff00ffffff00000000000000ffffff00ffffff00000000000000000000000000ffffffffffff0000000000000000ffff00ffffff00000000000000000000000000ffffffffffff0000000000000000ffff00ffff0000000000000000000000000000ffffffffff000000000000000000ffffffffff000000000000000000000000000000ffffffff000000000000000000ffffffffff000000000000000000000000000000ffffffff00000000000000000000ffffff0000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
97 12 507 1 8 10 -1 8 7 0000000000000000000000ffff0000000000ff0000ffff00000000000000ff00000000ffffffff000000ff000000ff000000ff0000ffff000000ffffff00ff0000000000000000000000000000000000
|
||||
97 16 507 1 10 12 -1 10 9 0000000000000000000000000000ffffff0000000000ffffff00ffff000000000000000000ffff0000000000000000ffff00000000ffffffffffff000000ffff000000ffff000000ff00000000ffff000000ffff0000ffffff00000000ffffffffffff000000000000000000000000000000000000000000
|
||||
97 24 507 1 13 17 0 15 13 000000000000000000000000000000000000000000000000000000000000ffffffffffff0000000000ffffffffffffffffff00000000ffff0000000000ffff0000000000000000000000ffffff00000000000000000000ffffff00000000000000ffffffffffff000000ffffffffffffff00ffff0000ffffffff0000000000ffff0000ffff000000000000ffffff0000ffff000000000000ffffff0000ffffff0000000000ffffff000000ffffffffffffff00ffff00000000ffffffffff0000ffff000000000000000000000000000000000000000000000000000000
|
||||
97 32 507 1 17 21 0 19 18 000000000000000000000000000000000000000000000000ffffffff00000000000000000000ffffffffffffffffff00000000000000ffffffffffffffffffffff0000000000ffffffff000000000000ffffff00000000ffffff00000000000000ffffff000000000000000000000000000000ffff000000000000000000000000000000ffff00000000000000000000000000ffffffff00000000000000ffffffffffffffffffff0000000000ffffffffffffffffff00ffff00000000ffffffffff000000000000ffff00000000ffffff0000000000000000ffff000000ffffff000000000000000000ffff000000ffffff0000000000000000ffffff00000000ffffff00000000000000ffffff00000000ffffffff00000000ffffffffff0000000000ffffffffffffffffff00ffff000000000000ffffffffffffff0000ffff000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
98 12 578 1 9 12 -1 10 7 0000000000000000000000ff0000000000000000ff0000000000000000ff00ffff0000000000ffff0000ff00000000ff000000ffff000000ff00000000ff000000ff00000000ff000000ff000000ff00000000ffffffffff0000000000000000000000000000000000000000
|
||||
98 16 578 1 10 15 0 13 10 0000000000000000000000ffff0000000000000000ffff0000000000000000ffff0000000000000000ffff00ffffff00000000ffffffff00ffff000000ffff00000000ffff0000ffff00000000ffff0000ffff0000000000ff0000ffff00000000ffff0000ffff00000000ffff0000ffffff0000ffff000000ffffffffffff0000000000000000000000000000000000000000000000
|
||||
98 24 578 1 15 21 0 19 15 0000000000000000000000000000000000000000000000000000000000000000ffff00000000000000000000000000ffff00000000000000000000000000ffff00000000000000000000000000ffff00000000000000000000000000ffff00ffffffffffff000000000000ffffffffffffffffffff0000000000ffffff0000000000ffffff00000000ffffff000000000000ffff00000000ffff00000000000000ffff00000000ffff00000000000000ffff00000000ffff00000000000000ffff00000000ffff00000000000000ffff00000000ffff00000000000000ffff00000000ffffff000000000000ffff00000000ffffff0000000000ffffff00000000ffffffffffffffffffff0000000000ffff00ffffffffffff00000000000000000000000000000000000000000000000000000000000000000000
|
||||
98 32 578 1 18 27 1 25 20 00000000000000000000000000000000000000000000000000000000000000000000000000ffffff000000000000000000000000000000ffffff000000000000000000000000000000ffffff000000000000000000000000000000ffffff000000000000000000000000000000ffffff000000000000000000000000000000ffffff00000000ffffff0000000000000000ffffff0000ffffffffffffffff0000000000ffffff00ffffffffffffffffffff00000000ffffffffffff0000000000ffffff00000000ffffffffff00000000000000ffffff000000ffffffff0000000000000000ffffff000000ffffffff000000000000000000ffffff0000ffffff00000000000000000000ffffff0000ffffff00000000000000000000ffffff0000ffffff00000000000000000000ffffff0000ffffff00000000000000000000ffffff0000ffffff00000000000000000000ffffff0000ffffffff000000000000000000ffffff0000ffffffff0000000000000000ffffff000000ffffffffff000000000000ffffffff000000ffffff00ffff00000000ffffffff00000000ffffff00ffffffffffffffffff0000000000ffffff0000ffffffffffffff0000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
103 12 658 1 9 12 -1 8 7 00000000000000000000000000ff00ff00000000ffff00ffff00000000ff000000ff00000000ff000000ff00000000ff000000ff00000000ff000000ff0000000000ffffffff0000000000000000ff00000000ffff00ffff000000000000ff00000000000000000000000000
|
||||
103 16 658 1 11 15 -1 10 10 000000000000000000000000000000ffffff00ffff00000000ffff00ffffffff000000ffff00000000ffff000000ff0000000000ffff000000ff0000000000ffff000000ff0000000000ffff000000ffff00000000ffff00000000ffff00ffffffff0000000000ffffff00ffff000000000000000000ffff000000ffff00000000ff0000000000ffffffffffff000000000000000000000000000000000000000000000000
|
||||
103 24 658 1 14 22 0 15 15 0000000000000000000000000000000000000000000000000000000000000000ffffffffff0000ffff00000000ffffffffffffff00ffff000000ffffff00000000ffffffff000000ffff000000000000ffffff0000ffffff00000000000000ffff0000ffff0000000000000000ffff0000ffff0000000000000000ffff0000ffff0000000000000000ffff0000ffffff000000000000ffffff000000ffff000000000000ffffff000000ffffff00000000ffffffff00000000ffffffffffffff00ffff000000000000ffffff000000ffff000000000000000000000000ffff00000000ff00000000000000ffff000000ffff000000000000ffff0000000000ffffffffffffffffff000000000000ffffffffffff0000000000000000000000000000000000000000000000000000000000000000
|
||||
103 32 658 1 19 27 0 19 20 0000000000000000000000000000000000000000000000000000ffffffff00000000000000000000000000ffffffffffffffff00ffffff000000000000ffffffffffffffffffffffffff0000000000ffffffff0000000000ffffffffff0000000000ffffff00000000000000ffffffff00000000ffffff000000000000000000ffffff00000000ffffff000000000000000000ffffff00000000ffffff000000000000000000ffffff00000000ffffff000000000000000000ffffff00000000ffffff000000000000000000ffffff00000000ffffff000000000000000000ffffff00000000ffffff000000000000000000ffffff00000000ffffff000000000000000000ffffff00000000ffffffff00000000000000ffffffff0000000000ffffffff0000000000ffffffffff000000000000ffffffffffffffffffffffffff00000000000000ffffffffffffffff00ffffff000000000000000000ffffffff000000ffffff00000000000000000000000000000000ffffff00000000000000000000000000000000ffffff000000000000ff000000000000000000ffffff00000000ffffffff00000000000000ffffff000000000000ffffffffffffffffffffffffff00000000000000ffffffffffffffffffffff00000000000000000000ffffffffffffff00000000000000000000000000000000000000000000000000
|
||||
109 12 766 1 12 9 -1 8 11 0000000000000000000000000000ff00ffff0000ff0000000000ffff00ff000000ff00000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff000000ff00000000000000000000000000
|
||||
109 16 766 1 14 11 0 10 14 000000000000000000000000000000ffff00ffff000000ffff00000000ffffff00ffff00ff00ffff000000ffff000000ffff000000ffff0000ffff000000ffff000000ffff0000ffff000000ffff000000ffff0000ffff000000ffff000000ffff0000ffff000000ffff000000ffff0000ffff000000ffff000000ffff0000ffff000000ffff000000ffff000000000000000000000000000000
|
||||
109 24 766 1 21 16 0 15 21 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffff00ffffffffff0000ffffffffffff0000000000ffffffffffffffffffffffffffffffffff00000000ffffff00000000ffffff00000000ffffff00000000ffff0000000000ffffff0000000000ffff00000000ffff0000000000ffffff0000000000ffff00000000ffff0000000000ffffff0000000000ffff00000000ffff0000000000ffffff0000000000ffff00000000ffff0000000000ffffff0000000000ffff00000000ffff0000000000ffffff0000000000ffff00000000ffff0000000000ffffff0000000000ffff00000000ffff0000000000ffffff0000000000ffff00000000ffff0000000000ffffff0000000000ffff00000000ffff0000000000ffffff0000000000ffff0000000000000000000000000000000000000000000000
|
||||
109 32 766 1 26 20 1 19 28 000000000000000000000000000000000000000000000000000000000000000000ffffffff000000000000ffffffff000000000000ffffff0000ffffffffffff000000ffffffffffffffff00000000ffffff00ffffffffffffffff00ffffffffffffffffffff000000ffffffffff00000000ffffff00ffff0000000000ffffff000000ffffffff000000000000ffffffff000000000000ffffff000000ffffff0000000000000000ffffff00000000000000ffffff0000ffffff0000000000000000ffff0000000000000000ffffff0000ffffff0000000000000000ffff0000000000000000ffffff0000ffffff0000000000000000ffff0000000000000000ffffff0000ffffff0000000000000000ffff0000000000000000ffffff0000ffffff0000000000000000ffff0000000000000000ffffff0000ffffff0000000000000000ffff0000000000000000ffffff0000ffffff0000000000000000ffff0000000000000000ffffff0000ffffff0000000000000000ffff0000000000000000ffffff0000ffffff0000000000000000ffff0000000000000000ffffff0000ffffff0000000000000000ffff0000000000000000ffffff0000ffffff0000000000000000ffff0000000000000000ffffff0000ffffff0000000000000000ffff0000000000000000ffffff000000000000000000000000000000000000000000000000000000
|
||||
111 12 790 1 9 10 -1 8 7 00000000000000000000000000ff000000000000ffff00ffff00000000ff000000ff00000000ff000000ffff000000ff000000ffff000000ff000000ff0000000000ffffff000000000000000000000000000000000000000000
|
||||
111 16 790 1 11 12 -1 10 10 000000000000000000000000000000ffffff00000000000000ffff00ffffff00000000ffff00000000ff00000000ff0000000000ffff000000ff0000000000ffff000000ff0000000000ffff000000ffff00000000ff0000000000ff000000ffff000000000000ffffffff00000000000000000000000000000000000000000000000000
|
||||
111 24 790 1 15 17 0 15 14 00000000000000000000000000000000000000000000000000000000000000000000ffffffffffff0000000000000000ffffffffffffffff000000000000ffffff0000000000ffff0000000000ffff000000000000ffffff000000ffffff00000000000000ffff000000ffff0000000000000000ffff000000ffff0000000000000000ffff000000ffff0000000000000000ffff000000ffffff00000000000000ffff00000000ffff000000000000ffffff00000000ffffff0000000000ffff000000000000ffffffffffffffff0000000000000000ffffffffffff0000000000000000000000000000000000000000000000000000000000000000000000
|
||||
111 32 790 1 19 21 0 19 19 000000000000000000000000000000000000000000000000000000ffffff00000000000000000000000000ffffffffffffffffff000000000000000000ffffffffffffffffffffff00000000000000ffffffff0000000000ffffffff000000000000ffffff00000000000000ffffffff00000000ffffff000000000000000000ffffff00000000ffffff000000000000000000ffffff00000000ffffff00000000000000000000ffff00000000ffffff00000000000000000000ffffff000000ffff0000000000000000000000ffffff000000ffffff00000000000000000000ffffff000000ffffff000000000000000000ffffff00000000ffffff000000000000000000ffffff00000000ffffff000000000000000000ffffff0000000000ffffff00000000000000ffffff00000000000000ffffffff00000000ffffffff00000000000000ffffffffffffffffffffff00000000000000000000ffffffffffffff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
115 12 871 1 8 10 -1 8 6 0000000000000000000000ffff0000000000ff0000ff00000000ff00000000000000ffffff0000000000000000ffff000000ff000000ff000000ffffffff000000000000000000000000000000000000
|
||||
115 16 871 1 10 12 -1 10 8 0000000000000000000000000000ffffff0000000000ffffff00ffff00000000ffff000000ff00000000ffff000000000000000000ffffffff000000000000000000ffff000000000000000000ffff000000ffff000000ff0000000000ffffffffff00000000000000000000000000000000000000000000
|
||||
115 24 871 1 13 17 0 15 13 000000000000000000000000000000000000000000000000000000000000ffffffffff000000000000ffffffffffffffff0000000000ffff0000000000ffff00000000ffff0000000000000000000000ffff0000000000000000000000ffffffffff00000000000000000000ffffffffffff00000000000000000000ffffffff0000000000000000000000ffff0000000000000000000000ffff000000ffffff0000000000ffff00000000ffffffffffffffffff0000000000ffffffffffff000000000000000000000000000000000000000000000000000000000000
|
||||
115 32 871 1 17 21 0 19 17 000000000000000000000000000000000000000000000000ffffffff00000000000000000000ffffffffffffffffff00000000000000ffffffffffffffffffffff000000000000ffffff0000000000ffffffff00000000ffffff00000000000000ffffff00000000ffffff0000000000000000000000000000ffffffff0000000000000000000000000000ffffffff00000000000000000000000000ffffffffffffffff0000000000000000000000ffffffffffffffff000000000000000000000000ffffffffffff0000000000000000000000000000ffffffff0000000000000000000000000000ffffff0000000000ffff00000000000000ffffff00000000ffffff00000000000000ffffff00000000ffffffff0000000000ffffffff0000000000ffffffffffffffffffffff00000000000000ffffffffffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
119 12 984 1 12 9 -1 8 10 00000000000000000000000000ffff0000ff000000ff00000000ff0000ffff0000ff00000000ff0000ffff0000ff00000000ff000000ff00ff000000000000ffff0000ffff000000000000ffff0000ffff000000000000ffff0000ffff000000000000000000000000000000
|
||||
119 16 984 1 15 11 -1 10 13 0000000000000000000000000000000000ff00000000ff00000000ff00000000ff000000ffffff000000ff00000000ffff0000ff00ff0000ffff0000000000ff0000ff00ff0000ffff0000000000ff0000ff00ff0000ff000000000000ff00ffff00ffff00ff000000000000ffffff000000ffffff00000000000000ffff000000ffff0000000000000000ffff000000ffff00000000000000000000000000000000000000
|
||||
119 24 984 1 21 16 -1 15 20 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffff000000000000ffff0000000000ffffff000000ffffff00000000ffffff0000000000ffff0000000000ffff00000000ffffffff00000000ffff0000000000ffff00000000ffffffff00000000ffff0000000000ffff000000ffff00ffff000000ffff00000000000000ffff0000ffff0000ff000000ffff00000000000000ffff0000ffff0000ffff0000ffff00000000000000ffff0000ff000000ffff00ffffff00000000000000ffff00ffff000000ffff00ffff000000000000000000ffffffff00000000ff00ffff000000000000000000ffffffff00000000ffffffff000000000000000000ffffff0000000000ffffff0000000000000000000000ffff000000000000ffff0000000000000000000000000000000000000000000000000000
|
||||
119 32 984 1 27 20 0 19 26 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffff00000000000000ffffffff00000000000000ffffff00000000ffffff000000000000ffffffff00000000000000ffff0000000000ffffff000000000000ffffffff000000000000ffffff0000000000ffffff000000000000ffffffffff0000000000ffffff000000000000ffff0000000000ffffff00ffff0000000000ffffff000000000000ffffff00000000ffff0000ffff00000000ffffff00000000000000ffffff00000000ffff0000ffffff000000ffffff0000000000000000ffff000000ffffff0000ffffff000000ffffff0000000000000000ffffff0000ffffff000000ffff000000ffff000000000000000000ffffff0000ffff00000000ffff0000ffffff000000000000000000ffffff0000ffff00000000ffffff00ffffff00000000000000000000ffff00ffffff00000000ffffff00ffff0000000000000000000000ffffffffff000000000000ffff00ffff0000000000000000000000ffffffffff000000000000ffffffffff000000000000000000000000ffffffff000000000000ffffffffff000000000000000000000000ffffffff00000000000000ffffff00000000000000000000000000ffffff0000000000000000ffffff00000000000000000000000000000000000000000000000000000000000000000000
|
||||
122 12 1022 1 8 9 -1 8 7 00000000000000000000ffffffffff000000000000ffff000000000000ff000000000000ff000000000000ff000000000000ffff000000000000ffffffffff000000000000000000
|
||||
122 16 1022 1 10 11 -1 10 9 000000000000000000000000ffffffffffffff000000ffffffffffffff00000000000000ffff00000000000000ffff0000000000000000ff0000000000000000ffff00000000000000ffff00000000000000ffff0000000000000000ffffffffffffff0000000000000000000000
|
||||
122 24 1022 1 13 16 0 15 13 00000000000000000000000000000000000000000000000000000000ffffffffffffffffffff000000ffffffffffffffffffff000000000000000000ffffff00000000000000000000ffff00000000000000000000ffff00000000000000000000ffffff000000000000000000ffffff00000000000000000000ffff00000000000000000000ffff00000000000000000000ffff00000000000000000000ffffff000000000000000000ffffffffffffffffffffff0000ffffffffffffffffffffff0000000000000000000000000000
|
||||
122 32 1022 1 17 20 0 19 18 000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffffff00000000ffffffffffffffffffffffffff0000000000000000000000000000ffffff00000000000000000000000000ffffff00000000000000000000000000ffffff00000000000000000000000000ffffffff00000000000000000000000000ffffff00000000000000000000000000ffffff00000000000000000000000000ffffff00000000000000000000000000ffffff00000000000000000000000000ffffffff00000000000000000000000000ffffff00000000000000000000000000ffffff00000000000000000000000000ffffff00000000000000000000000000ffffffffffffffffffffffffffff000000ffffffffffffffffffffffffffff000000ffffffffffffffffffffffffffff000000000000000000000000000000000000
|
||||
35 12 1453 1 10 11 -1 10 8 00000000000000000000000000ff000000000000000000ff0000ff000000000000ff0000ff0000000000ffffffffffff0000000000ff0000ff000000000000ff0000ff00000000ffffffffffffff00000000ff0000ff000000000000ff0000ff0000000000000000000000000000
|
||||
35 16 1453 1 12 14 -1 13 10 00000000000000000000000000000000ffff0000ffff000000000000ff000000ff00000000000000ff000000ff00000000000000ff000000ff0000000000ffffffffffffffffff0000000000ff000000ff000000000000ffff0000ffff000000000000ff000000ff0000000000ffffffffffffffffff0000000000ff000000ff00000000000000ff000000ff00000000000000ff000000ff00000000000000000000000000000000
|
||||
35 24 1453 1 17 20 -1 19 15 00000000000000000000000000000000000000000000000000000000000000000000000000000000ffff00000000ffff000000000000000000ffff00000000ffff000000000000000000ff0000000000ffff0000000000000000ffff0000000000ff00000000000000ffffffffffffffffffffffffff00000000ffffffffffffffffffffffffff000000000000ffff00000000ffff000000000000000000ffff00000000ffff000000000000000000ff0000000000ffff0000000000000000ffff0000000000ff00000000000000ffffffffffffffffffffffffff00000000ffffffffffffffffffffffffff000000000000ffff00000000ffff000000000000000000ffff00000000ffff000000000000000000ff0000000000ffff0000000000000000ffff0000000000ff000000000000000000ffff00000000ffff0000000000000000000000000000000000000000000000
|
||||
35 32 1453 1 22 26 -1 25 20 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffff000000000000ffff0000000000000000000000ffffff000000000000ffff0000000000000000000000ffffff0000000000ffffff0000000000000000000000ffffff0000000000ffffff0000000000000000000000ffff000000000000ffffff0000000000000000000000ffff000000000000ffff0000000000000000ffffffffffffffffffffffffffffffffffff00000000ffffffffffffffffffffffffffffffffff0000000000ffffffffffffffffffffffffffffffffff0000000000000000ffffff0000000000ffffff0000000000000000000000ffff000000000000ffffff0000000000000000000000ffff000000000000ffff000000000000000000000000ffff000000000000ffff000000000000000000000000ffff000000000000ffff0000000000000000ffffffffffffffffffffffffffffffffff0000000000ffffffffffffffffffffffffffffffffff0000000000ffffffffffffffffffffffffffffffffff0000000000000000ffff000000000000ffff000000000000000000000000ffff000000000000ffff000000000000000000000000ffff000000000000ffff0000000000000000000000ffffff000000000000ffff0000000000000000000000ffffff0000000000ffffff0000000000000000000000ffff000000000000ffffff0000000000000000000000000000000000000000000000000000000000
|
||||
37 12 1744 1 12 12 0 10 12 0000000000000000000000000000ffff00000000ff00000000ff0000ff000000ff00000000ff0000ff0000ff000000000000ffff0000ff00000000000000000000ff0000000000000000000000ff0000ffff000000000000ff0000ff00ff0000000000ff000000ff00000000000000ff000000ffffff0000000000000000000000000000000000000000000000000000
|
||||
37 16 1744 1 15 15 0 13 16 000000000000000000000000000000000000ffff000000000000ff0000000000ff0000ff00000000ffff0000000000ff0000ff00000000ff000000000000ff0000ff000000ff00000000000000ffffffff0000ffff00000000000000000000000000ff00000000000000000000000000ff00000000000000000000000000ffff0000ffffff0000000000000000ff0000ffff0000ff000000000000ff000000ffff0000ff0000000000ffff000000ffff0000ff00000000ffff0000000000ffffff0000000000000000000000000000000000000000000000000000000000000000
|
||||
37 24 1744 1 21 21 1 19 24 00000000000000000000000000000000000000000000000000ffff0000000000000000000000000000000000ffffffffffff00000000000000ffff000000000000ffff0000ffff000000000000ffff00000000000000ffff000000ffff0000000000ffff00000000000000ff00000000ffff00000000ffff0000000000000000ffff000000ff00000000ffff000000000000000000ffff0000ffff00000000ffff00000000000000000000ffffffff00000000ffff000000000000000000000000000000000000ffff00000000000000000000000000000000000000ffff000000000000000000000000000000000000ffff00000000ffffff0000000000000000000000ffff00000000ffffffffff00000000000000000000ff00000000ffff000000ffff0000000000000000ffff00000000ffff000000ffff00000000000000ffff0000000000ffff000000ffff000000000000ffff000000000000ffff000000ffff000000000000ffff000000000000ffffff00ffff000000000000ffff0000000000000000ffffffffff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
37 32 1744 1 27 27 2 25 31 0000000000000000000000000000000000000000000000000000000000000000ffff0000000000000000000000000000000000000000000000ffffffffffff0000000000000000000000ffff00000000000000ffffffff00ffffff000000000000000000ffffff00000000000000ffff00000000ffff0000000000000000ffffff0000000000000000ffff00000000ffffff00000000000000ffff000000000000000000ffff00000000ffffff000000000000ffffff000000000000000000ffff00000000ffffff0000000000ffffff00000000000000000000ffff00000000ffffff0000000000ffff0000000000000000000000ffffff0000ffffff0000000000ffffff000000000000000000000000ffffffffffffff00000000ffffff0000000000000000000000000000ffffffff000000000000ffff000000000000000000000000000000000000000000000000ffffff0000000000000000000000000000000000000000000000ffffff000000000000000000000000000000000000000000000000ffff000000000000000000000000000000000000000000000000ffff000000000000ffffffffff00000000000000000000000000ffffff0000000000ffffffffffffff0000000000000000000000ffffff0000000000ffffff000000ffff0000000000000000000000ffff000000000000ffff00000000ffffff000000000000000000ffffff000000000000ffff00000000ffffff0000000000000000ffffff00000000000000ffff00000000ffffff0000000000000000ffff0000000000000000ffff00000000ffffff00000000000000ffffff0000000000000000ffffff000000ffffff000000000000ffffff00000000000000000000ffffffffffffff00000000000000ffff0000000000000000000000ffffffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
38 12 1425 1 10 12 -1 10 8 00000000000000000000000000ffffff000000000000ffff00ff000000000000ff0000ffff000000000000ffffff00000000000000ffff00000000000000ff00ffff00ff00000000ff0000ff00ff00000000ff000000ff0000000000ffffffff00ff00000000000000000000000000000000000000000000
|
||||
38 16 1425 1 13 15 -1 13 10 0000000000000000000000000000000000ffffff000000000000000000ffff00ffff0000000000000000ff000000ff0000000000000000ff000000ff0000000000000000ffff00ffff000000000000000000ffffff000000000000000000ffffffff0000000000000000ffff0000ff0000ff0000000000ff000000ffff00ff0000000000ff00000000ffffff0000000000ffff000000ffffff000000000000ffffffffff00ffff00000000000000000000000000000000000000000000000000000000
|
||||
38 24 1425 1 17 21 0 19 15 0000000000000000000000000000000000000000000000ffff00000000000000000000000000ffffffffffff00000000000000000000ffffff0000ffffff000000000000000000ffff00000000ffff000000000000000000ffff00000000ffff000000000000000000ffff00000000ffff000000000000000000ffffff00ffffff0000000000000000000000ffffffffff00000000000000000000000000ffffff000000000000000000000000ffffffffff0000000000000000000000ffffff00ffffff000000ffff0000000000ffff000000ffffff0000ffff00000000ffffff00000000ffffff00ffff00000000ffff000000000000ffffffff0000000000ffffff000000000000ffffff000000000000ffff0000000000ffffffff000000000000ffffffffffffffffffffffff00000000000000ffffffffffff0000ffffff000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
38 32 1425 1 22 27 0 25 21 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff0000000000000000000000000000ffffffffffffffffff000000000000000000000000ffffff00000000ffffff000000000000000000000000ffffff0000000000ffffff0000000000000000000000ffff000000000000ffffff0000000000000000000000ffff000000000000ffffff0000000000000000000000ffffff00000000ffffff000000000000000000000000ffffff000000ffffffff00000000000000000000000000ffffff00ffffffff0000000000000000000000000000ffffffffffffff00000000000000000000000000000000ffffffffff00000000000000000000000000000000ffffffffffff000000000000000000000000000000ffffffffffffff0000000000000000000000000000ffffffff0000ffffff00000000ffffff0000000000ffffffff00000000ffffff000000ffffff0000000000ffffff0000000000ffffffff0000ffff000000000000ffffff000000000000ffffffffffffff000000000000ffffff00000000000000ffffffffffff000000000000ffffff0000000000000000ffffffff00000000000000ffffff0000000000000000ffffffff0000000000000000ffffffff00000000ffffffffffffff0000000000000000ffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff000000ffffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
63 12 1431 1 8 12 -1 10 6 0000000000000000000000ffff0000000000ff0000ff00000000000000ffff000000000000ff000000000000ff000000000000ff0000000000000000000000000000000000000000000000ffff00000000000000000000000000000000000000
|
||||
63 16 1431 1 10 15 -1 13 8 0000000000000000000000000000ffffff0000000000ffffffffffff00000000ff00000000ff000000000000000000ff0000000000000000ffff00000000000000ffff00000000000000ffff0000000000000000ffff00000000000000000000000000000000000000000000000000000000ffff0000000000000000ffff000000000000000000000000000000000000000000000000
|
||||
63 24 1431 1 14 21 -1 19 12 0000000000000000000000000000000000000000ffffff000000000000000000ffffffffffffff000000000000ffffff0000ffffff0000000000ffffff0000000000ffff00000000ffff000000000000ffff000000000000000000000000ffff0000000000000000000000ffffff00000000000000000000ffffff00000000000000000000ffffff00000000000000000000ffffff0000000000000000000000ffff000000000000000000000000ffff0000000000000000000000ffffff000000000000000000000000000000000000000000000000000000000000000000000000000000ffffff0000000000000000000000ffffff0000000000000000000000ffffff00000000000000000000000000000000000000000000000000000000000000000000
|
||||
63 32 1431 1 16 27 0 25 16 0000000000000000000000000000000000000000000000ffff0000000000000000000000ffffffffffffffff00000000000000ffffffffffffffffffff0000000000ffffffff00000000ffffffff00000000ffffff000000000000ffffff000000ffffff0000000000000000ffffff0000ffffff0000000000000000ffffff00000000000000000000000000ffffff000000000000000000000000ffffff00000000000000000000000000ffffff0000000000000000000000ffffffff0000000000000000000000ffffffff0000000000000000000000ffffffff0000000000000000000000ffffffff000000000000000000000000ffffff00000000000000000000000000ffffff00000000000000000000000000ffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffff000000000000000000000000ffffffff000000000000000000000000ffffffff00000000000000000000000000ffffff000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
233 12 618 1 9 13 -1 11 7 0000000000000000000000000000000000000000000000ff00000000000000ff0000000000000000ff000000000000ffff00ffff00000000ff000000ff00000000ffffffffff00000000ff0000000000000000ff000000ff0000000000ffffffff0000000000000000000000000000000000000000
|
||||
233 16 618 1 11 16 -1 14 9 00000000000000000000000000000000000000000000000000000000ff000000000000000000ffff00000000000000000000000000000000000000ffffff00000000000000ffff00ffffff00000000ffff00000000ff00000000ff0000000000ff00000000ffffffffffffffff000000ff00000000000000000000ffff00000000000000000000ff000000ffff000000000000ffffffff00000000000000000000000000000000000000000000000000
|
||||
233 24 618 1 14 22 0 20 14 0000000000000000000000000000000000000000000000000000000000000000000000ffffff0000000000000000000000ffff0000000000000000000000ffff0000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffff00000000000000ffffffffffffffff0000000000ffffff00000000ffffff00000000ffff000000000000ffff000000ffffff00000000000000ffff0000ffffffffffffffffffffffff0000ffffffffffffffffffffffff0000ffff000000000000000000000000ffffff000000000000000000000000ffff000000000000000000000000ffffff0000000000ffff0000000000ffffffffffffffffff000000000000ffffffffffff0000000000000000000000000000000000000000000000000000000000000000
|
||||
233 32 618 1 19 28 0 26 19 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffff000000000000000000000000000000ffffff00000000000000000000000000000000ffffff00000000000000000000000000000000ffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffff00000000000000000000000000ffffffffffffffffff000000000000000000ffffffffffffffffffffff00000000000000ffffffff0000000000ffffffff000000000000ffffff00000000000000ffffff0000000000ffffff000000000000000000ffffff00000000ffffff000000000000000000ffffff00000000ffffff000000000000000000ffffff00000000ffffffffffffffffffffffffffffff00000000ffffffffffffffffffffffffffffff00000000ffff0000000000000000000000000000000000ffffff00000000000000000000000000000000ffffff00000000000000000000000000000000ffffff000000000000000000ff00000000000000ffffff00000000000000ffffffff000000000000ffffffff00000000ffffffff00000000000000ffffffffffffffffffffff00000000000000000000ffffffffffffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
224 12 528 1 8 13 -1 11 7 00000000000000000000000000000000000000ff0000000000000000ff000000000000ffff0000000000ff0000ffff00000000000000ff00000000ffffffff000000ff000000ff000000ff0000ffff000000ffffff00ff0000000000000000000000000000000000
|
||||
224 16 528 1 10 16 -1 14 9 000000000000000000000000000000000000000000000000ff000000000000000000ffff000000000000000000000000000000000000ffffff0000000000ffffff00ffff000000000000000000ffff0000000000000000ffff00000000ffffffffffff000000ffff000000ffff000000ff00000000ffff000000ffff0000ffffff00000000ffffffffffff000000000000000000000000000000000000000000
|
||||
224 24 528 1 13 22 0 20 13 000000000000000000000000000000000000000000000000000000000000ffff000000000000000000000000ffff0000000000000000000000ffff000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffff0000000000ffffffffffffffffff00000000ffff0000000000ffff0000000000000000000000ffffff00000000000000000000ffffff00000000000000ffffffffffff000000ffffffffffffff00ffff0000ffffffff0000000000ffff0000ffff000000000000ffffff0000ffff000000000000ffffff0000ffffff0000000000ffffff000000ffffffffffffff00ffff00000000ffffffffff0000ffff000000000000000000000000000000000000000000000000000000
|
||||
224 32 528 1 17 28 0 26 18 000000000000000000000000000000000000000000000000000000000000000000000000000000ffffff000000000000000000000000000000ffffff0000000000000000000000000000ffffff000000000000000000000000000000ffffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffff00000000000000000000ffffffffffffffffff00000000000000ffffffffffffffffffffff0000000000ffffffff000000000000ffffff00000000ffffff00000000000000ffffff000000000000000000000000000000ffff000000000000000000000000000000ffff00000000000000000000000000ffffffff00000000000000ffffffffffffffffffff0000000000ffffffffffffffffff00ffff00000000ffffffffff000000000000ffff00000000ffffff0000000000000000ffff000000ffffff000000000000000000ffff000000ffffff0000000000000000ffffff00000000ffffff00000000000000ffffff00000000ffffffff00000000ffffffffff0000000000ffffffffffffffffff00ffff000000000000ffffffffffffff0000ffff000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
231 12 589 1 9 12 -1 8 7 00000000000000000000000000ffff0000000000ffff00ffff00000000ff0000000000000000ff0000000000000000ff0000000000000000ff000000ff0000000000ffffff00000000000000ff000000000000000000ff000000000000000000000000000000000000000000
|
||||
231 16 589 1 11 15 -1 10 9 000000000000000000000000000000ffffff00000000000000ffff00ffffff00000000ffff00000000ff00000000ff00000000000000000000ff00000000000000000000ff00000000000000000000ffff00000000ff0000000000ff000000ffff000000000000ffffffff0000000000000000ff0000000000000000000000ffff0000000000000000ffffff00000000000000000000000000000000000000000000000000
|
||||
231 24 589 1 14 21 0 15 14 0000000000000000000000000000000000000000000000000000000000000000ffffffffffff00000000000000ffffffffffffffff0000000000ffffff0000000000ffff00000000ffff000000000000ffff000000ffffff0000000000000000000000ffff000000000000000000000000ffff000000000000000000000000ffff000000000000000000000000ffffff000000000000000000000000ffff000000000000ffff00000000ffffff0000000000ffff0000000000ffffffffffffffff00000000000000ffffffffffff0000000000000000000000ff000000000000000000000000ffffff00000000000000000000000000ffff000000000000000000000000ffff00000000000000000000ffffff00000000000000000000000000000000000000
|
||||
231 32 589 1 18 27 0 19 18 0000000000000000000000000000000000000000000000000000ffffff000000000000000000000000ffffffffffffffffff0000000000000000ffffffffffffffffffffff000000000000ffffffff0000000000ffffffff0000000000ffffff00000000000000ffffff00000000ffffff000000000000000000ff0000000000ffffff000000000000000000000000000000ffffff000000000000000000000000000000ffffff000000000000000000000000000000ffff00000000000000000000000000000000ffffff000000000000000000000000000000ffffff000000000000000000000000000000ffffff000000000000000000000000000000ffffff000000000000000000ffffff00000000ffffff00000000000000ffffff000000000000ffffffff00000000ffffffff000000000000ffffffffffffffffffffff000000000000000000ffffffffffffff0000000000000000000000000000ff0000000000000000000000000000000000ffff000000000000000000000000000000ffffffffff00000000000000000000000000000000ffff00000000000000000000000000000000ffff00000000000000000000000000ffffffffff00000000000000000000000000ffff0000000000000000000000000000000000000000000000000000
|
||||
252 12 916 1 9 13 -1 11 7 000000000000000000000000000000000000000000ff00ff0000000000000000000000000000ff000000ff00000000ff000000ff00000000ff000000ff00000000ff000000ff00000000ff000000ff00000000ff000000ff0000000000ffffffff0000000000000000000000000000000000000000
|
||||
252 16 916 1 10 16 0 14 9 00000000000000000000000000000000000000000000ffff0000ff0000000000ffff0000ff0000000000000000000000000000ffff00000000ff000000ffff00000000ff000000ffff00000000ff000000ffff00000000ff000000ffff00000000ff000000ffff00000000ff000000ffff00000000ff00000000ffff0000ffff00000000ffffffff00ff00000000000000000000000000000000000000000000
|
||||
252 24 916 1 14 22 0 20 14 0000000000000000000000000000000000000000000000000000000000000000ffff0000ffffff000000000000ffffff0000ffffff00000000000000ff00000000ff00000000000000000000000000000000000000000000000000000000000000000000ffff000000000000ffff00000000ffff000000000000ffff00000000ffff000000000000ffff00000000ffff000000000000ffff00000000ffff000000000000ffff00000000ffff000000000000ffff00000000ffff000000000000ffff00000000ffff000000000000ffff00000000ffff000000000000ffff00000000ffff000000000000ffff00000000ffffff00000000ffffff0000000000ffffffffffffffffff000000000000ffffffffff00ffff000000000000000000000000000000000000000000000000000000000000
|
||||
252 32 916 1 17 28 1 26 19 0000000000000000000000000000000000000000000000000000000000000000000000000000ffff00000000ffffff00000000000000ffffffff000000ffffffff000000000000ffffffff000000ffffff0000000000000000ffff0000000000ffff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffff000000000000000000ffff000000ffffff000000000000000000ffff000000ffffff000000000000000000ffff000000ffffff000000000000000000ffff000000ffffff000000000000000000ffff000000ffffff000000000000000000ffff000000ffffff000000000000000000ffff000000ffffff000000000000000000ffff000000ffffff000000000000000000ffff000000ffffff000000000000000000ffff000000ffffff000000000000000000ffff00000000ffff0000000000000000ffffff00000000ffffff00000000000000ffffff00000000ffffff000000000000ffffffff00000000ffffffffff000000ffff00ffff0000000000ffffffffffffffffff00ffff000000000000ffffffffffff000000ffff000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
216 12 324 1 11 12 -1 10 9 000000000000000000000000000000ffffff00ff0000000000ff000000ff0000000000ff00000000ffff00000000ff000000ff00ff00000000ff0000ff0000ff00000000ff00ffff0000ff00000000ff00ff000000ff0000000000ff000000ffff00000000ff00ffffffff00000000000000000000000000000000000000000000000000
|
||||
216 16 324 1 14 15 -1 13 12 00000000000000000000000000000000000000ffffffff00ff00000000000000ffffffffffffff000000000000ffff00000000ffff0000000000ffff00000000ffffffff00000000ffff00000000ff0000ff00000000ff00000000ff000000ff00000000ff000000ffff000000ff00000000ffff00ffff00000000ff00000000ffff00ff00000000ffff0000000000ffffff00000000ffff0000000000ffffff0000ffffff000000000000ff00ffffffffff0000000000000000000000000000000000000000000000000000000000000000
|
||||
216 24 324 1 18 21 0 19 18 00000000000000000000000000000000000000000000000000ffffffff000000ff0000000000000000ffffffffffffffffffffff000000000000ffffffff0000ffffffffff000000000000ffffff000000000000ffffff0000000000ffffff000000000000ffffffffff00000000ffff00000000000000ffff00ffff00000000ffff000000000000ffff0000ffffff000000ffff0000000000ffffff000000ffff0000ffffff0000000000ffff00000000ffff0000ffffff00000000ffff0000000000ffff0000ffffff000000ffff000000000000ffff000000ffff000000ffff000000000000ffff000000ffff0000ffff000000000000ffff00000000ffffffffff00000000000000ffff0000000000ffffffff000000000000ffffff0000000000ffffffff0000000000ffffff000000000000ffffffffffffffffffffff000000000000ffffff00ffffffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
216 32 324 1 24 27 0 25 24 0000000000000000000000000000000000000000000000000000000000000000000000ffffff0000000000ff000000000000000000000000ffffffffffffffffff00ffffff000000000000000000ffffffffffffffffffffffffffffff0000000000000000ffffffffff00000000ffffffffffff0000000000000000ffffffff0000000000000000ffffffff0000000000000000ffffff000000000000000000ffffffffff000000000000ffffff000000000000000000ffffffffffff000000000000ffffff0000000000000000ffffff0000ffffff00000000ffffff0000000000000000ffffff000000ffffff00000000ffffff0000000000000000ffffff000000ffffff00000000ffffff00000000000000ffffff0000000000ffff00000000ffffff000000000000ffffff000000000000ffffff000000ffffff000000000000ffffff000000000000ffffff000000ffffff0000000000ffffff00000000000000ffffff000000ffffff00000000ffffff0000000000000000ffff00000000ffffff00000000ffffff00000000000000ffffff00000000ffffff000000ffffff0000000000000000ffffff0000000000ffffff00ffffff000000000000000000ffffff0000000000ffffffffffff000000000000000000ffffff00000000000000ffffffffff0000000000000000ffffffff00000000000000ffffffff0000000000000000ffffffff0000000000000000ffffffffffffffff00ffffffffffff000000000000000000ffffffffffffffffffffffffffff000000000000000000ffffff0000ffffffffffffffff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
64 12 1445 1 13 14 -1 10 12 000000000000000000000000000000000000000000000000000000000000ffff0000ffff000000000000ff000000000000ff00000000ff0000ffffffff0000ff000000ff0000ff0000ff0000ff000000ff00ff000000ff0000ff000000ff00ff000000ff0000ff000000ff0000ff0000ff0000ff000000ff000000ffff00ffff0000000000ff00000000000000000000000000ffffffffffff0000000000000000000000000000000000000000000000000000000000
|
||||
64 16 1445 1 17 18 -1 13 15 000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffff000000000000000000ffff000000000000ffff000000000000ffff0000000000000000ff000000000000ff000000ffffff00ff0000ff00000000ffff0000ffff0000ffff0000ff00000000ff000000ff000000ffff0000ff00000000ff0000ffff00000000ff0000ff00000000ff0000ffff00000000ff0000ff00000000ff000000ff000000ffff0000ff00000000ffff0000ffff00ffffff00ffff0000000000ff000000ffffff0000ffff000000000000ffff00000000000000000000000000000000ffffff00000000000000000000000000000000ffffffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
64 24 1445 1 23 24 0 18 23 0000000000000000000000000000000000000000000000000000000000000000ffffffffffff0000000000000000000000000000ffffffffffffffffffffff0000000000000000000000ffffff00000000000000ffffffff0000000000000000ffffff00000000000000000000ffffff000000000000ffff00000000000000000000000000ffff000000000000ffff0000000000ffffff000000000000ffff00000000ffff00000000ffffffffffffffff000000ffff00000000ffff000000ffffff000000ffffff00000000ffff000000ffff000000ffff0000000000ffff00000000ffff0000ffff00000000ff000000000000ffff00000000ffff0000ffff000000ffff000000000000ffff00000000ffff0000ffff00000000ff000000000000ffff00000000ffff000000ff00000000ffff0000000000ffff00000000ffff000000ffff000000ffff0000000000ffff00000000ff00000000ffff000000ffffff000000ffffffff0000ffff00000000ffff00000000ffffffffffff00ffffffffff000000000000ffff000000000000ff0000000000ffff00000000000000ffffff000000000000000000000000000000000000000000ffffff000000000000000000000000000000000000000000ffffffff000000000000ffff00000000000000000000000000ffffffffffffffffffff00000000000000000000000000000000ffffffff0000000000000000000000000000000000000000000000000000000000000000
|
||||
64 32 1445 1 30 32 0 24 31 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffff0000000000000000000000000000000000ffffffffffffffffffffffffffffff0000000000000000000000000000ffffffff000000000000000000ffffffffff00000000000000000000ffffffff00000000000000000000000000ffffffff000000000000000000ffffff000000000000000000000000000000ffffffff00000000000000ffffff0000000000000000000000000000000000ffffff000000000000ffffff0000000000000000ffffff0000000000000000ffffff0000000000ffffff0000000000ffffffffffffffffffffff00000000ffff0000000000ffff0000000000ffffffffffffffffffffffff00000000ffffff000000ffffff0000000000ffffff0000000000ffffffff00000000ffffff000000ffffff00000000ffffff00000000000000ffffff00000000ffffff000000ffffff00000000ffff0000000000000000ffffff00000000ffffff000000ffffff00000000ffff0000000000000000ffffff0000000000ffff000000ffffff00000000ffff0000000000000000ffffff00000000ffffff000000ffffff00000000ffff0000000000000000ffffff00000000ffffff000000ffffff00000000ffff0000000000000000ffffff00000000ffffff000000ffffff00000000ffffff00000000000000ffffff00000000ffffff000000ffffff00000000ffffff000000000000ffffffff00000000ffff00000000ffffff0000000000ffffff00000000ffffffffff000000ffffff0000000000ffff0000000000ffffffffffffffffff00ffffffffffffffff0000000000ffffff000000000000ffffffffffff0000ffffffffffffff00000000000000ffffff00000000000000000000000000000000ff00000000000000000000ffffff00000000000000000000000000000000000000000000000000000000ffffff00000000000000000000000000000000000000000000000000000000ffffffff000000000000000000000000000000000000000000000000000000ffffffffffff00000000000000ffffff000000000000000000000000000000ffffffffffffffffffffffffffffff000000000000000000000000000000000000ffffffffffffffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||
@@ -0,0 +1,57 @@
|
||||
// test/oracle/main.cpp — point d entree du harnais d oracle.
|
||||
//
|
||||
// Le meme fichier sert aux deux cibles :
|
||||
// hote -> main(), executable proj3_oracle
|
||||
// embarquee -> proj3_main(), executable proj3_oracle_target
|
||||
//
|
||||
// Code de sortie : 0 si toutes les paires concordent, 1 sinon. Rien d autre,
|
||||
// pour qu il soit utilisable tel quel par ctest ou par un script.
|
||||
|
||||
#include "oracle.hpp"
|
||||
|
||||
#include "proj3/mem/system.hpp"
|
||||
#include "proj3/sys/panic.hpp"
|
||||
|
||||
using namespace proj3;
|
||||
|
||||
static int oracle_entry() {
|
||||
err_write("=== harnais d oracle proj3 ===\n");
|
||||
|
||||
static mem::System sys;
|
||||
if (!mem::system_init(sys)) {
|
||||
err_write("impossible d acquerir la memoire de travail\n");
|
||||
return 1;
|
||||
}
|
||||
oracle::g_system = &sys;
|
||||
mem::log_active_mode();
|
||||
err_write("\n");
|
||||
|
||||
oracle::Report rep;
|
||||
const bool ok = oracle::run_all(sys.scratch, rep);
|
||||
|
||||
err_write("\npaires comparees : ");
|
||||
err_write_i64(rep.pairs_run);
|
||||
err_write("\npaires en reference seule : ");
|
||||
err_write_i64(rep.pairs_ref_only);
|
||||
err_write("\ncas executes : ");
|
||||
err_write_i64(rep.cases_run);
|
||||
err_write("\ncas en echec : ");
|
||||
err_write_i64(rep.cases_failed);
|
||||
err_write(ok ? "\nRESULTAT : concordance totale\n" : "\nRESULTAT : DIVERGENCE\n");
|
||||
|
||||
// Pic d occupation du scratch : verifie que le dimensionnement de
|
||||
// mem/layout.hpp tient, y compris sous le harnais.
|
||||
err_write("pic scratch : ");
|
||||
err_write_i64(static_cast<i64>(sys.scratch.peak()));
|
||||
err_write(" / ");
|
||||
err_write_i64(static_cast<i64>(sys.scratch.capacity()));
|
||||
err_write("\n");
|
||||
|
||||
return ok ? 0 : 1;
|
||||
}
|
||||
|
||||
#if PROJ3_EMBEDDED
|
||||
extern "C" int proj3_main(int, char**) { return oracle_entry(); }
|
||||
#else
|
||||
int main() { return oracle_entry(); }
|
||||
#endif
|
||||
@@ -0,0 +1,243 @@
|
||||
#include "oracle.hpp"
|
||||
|
||||
#include "proj3/base/fmt.hpp"
|
||||
#include "proj3/base/mem.hpp"
|
||||
#include "proj3/sys/panic.hpp"
|
||||
|
||||
namespace proj3::oracle {
|
||||
|
||||
mem::System* g_system = nullptr;
|
||||
|
||||
namespace {
|
||||
|
||||
// Octet de garde ecrit apres chaque tampon de sortie. Toute routine qui ecrit
|
||||
// un octet de trop l ecrase, et le harnais le voit. C est ce qui transforme
|
||||
// le cas "debordement d un octet" en detection, au lieu d une corruption
|
||||
// silencieuse d une zone voisine.
|
||||
constexpr u8 kGuardByte = 0xA5;
|
||||
constexpr usize kGuardBytes = 32;
|
||||
|
||||
// Motif deterministe, pour les cas de graine 0. Volontairement non trivial
|
||||
// (ni tout a zero ni croissant) pour qu une routine qui ignore son entree ne
|
||||
// passe pas par chance.
|
||||
void fill_deterministic(u8* p, usize n) {
|
||||
for (usize i = 0; i < n; ++i) {
|
||||
p[i] = static_cast<u8>((i * 31u + (i >> 3) * 17u + 0x5Bu) & 0xFFu);
|
||||
}
|
||||
}
|
||||
|
||||
void fill_random(u8* p, usize n, u64 seed) {
|
||||
Rng rng(seed);
|
||||
usize i = 0;
|
||||
while (i < n) {
|
||||
u64 v = rng.next();
|
||||
for (int b = 0; b < 8 && i < n; ++b, ++i) {
|
||||
p[i] = static_cast<u8>(v & 0xFFu);
|
||||
v >>= 8;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void dump_hex(const u8* p, usize n) {
|
||||
char buf[3];
|
||||
for (usize i = 0; i < n; ++i) {
|
||||
const usize k = fmt_hex_u8(buf, sizeof(buf), p[i]);
|
||||
err_write_bytes(buf, k);
|
||||
buf[0] = ' ';
|
||||
err_write_bytes(buf, 1);
|
||||
}
|
||||
}
|
||||
|
||||
// Contexte autour de l offset divergent : 16 octets avant, 16 apres, bornes au
|
||||
// tampon. Sans contexte, un offset seul ne dit pas si l erreur est un decalage
|
||||
// ou une valeur fausse.
|
||||
void dump_context(const char* tag, const u8* p, usize len, usize center) {
|
||||
const usize begin = center >= 16 ? center - 16 : 0;
|
||||
usize end = center + 17;
|
||||
if (end > len) end = len;
|
||||
err_write(" ");
|
||||
err_write(tag);
|
||||
err_write(" [");
|
||||
err_write_i64(static_cast<i64>(begin));
|
||||
err_write("..");
|
||||
err_write_i64(static_cast<i64>(end));
|
||||
err_write(") : ");
|
||||
dump_hex(p + begin, end - begin);
|
||||
err_write("\n");
|
||||
}
|
||||
|
||||
bool guards_intact(const u8* guard) {
|
||||
for (usize i = 0; i < kGuardBytes; ++i) {
|
||||
if (guard[i] != kGuardByte) return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// --- Enregistrement --------------------------------------------------------
|
||||
#if PROJ3_EMBEDDED
|
||||
// Symboles synthetises par l editeur de liens pour la section proj3_pairs.
|
||||
extern "C" const Pair* const __start_proj3_pairs[];
|
||||
extern "C" const Pair* const __stop_proj3_pairs[];
|
||||
#else
|
||||
// Stockage statique a initialisation constante : il est pret AVANT que le
|
||||
// moindre constructeur statique ne tourne, donc l ordre d initialisation ne
|
||||
// peut pas nous mordre.
|
||||
constexpr usize kMaxPairs = 64;
|
||||
const Pair* g_pairs[kMaxPairs];
|
||||
usize g_pair_count;
|
||||
#endif
|
||||
|
||||
} // namespace
|
||||
|
||||
void register_pair(const Pair* p) {
|
||||
#if PROJ3_EMBEDDED
|
||||
(void)p; // l enregistrement se fait par la section, pas par appel
|
||||
#else
|
||||
if (g_pair_count >= kMaxPairs) panic("oracle : trop de paires enregistrees");
|
||||
g_pairs[g_pair_count++] = p;
|
||||
#endif
|
||||
}
|
||||
|
||||
bool run_pair(const Pair& p, mem::Arena& work, Report& out, bool expect_failure) {
|
||||
bool pair_ok = true;
|
||||
|
||||
if (p.opt == nullptr) {
|
||||
++out.pairs_ref_only;
|
||||
} else {
|
||||
++out.pairs_run;
|
||||
}
|
||||
|
||||
for (usize ci = 0; ci < p.case_count; ++ci) {
|
||||
const CaseSpec& c = p.cases[ci];
|
||||
const usize mark = work.mark();
|
||||
|
||||
// Tampons : chacun precede de son decalage d alignement et suivi d une
|
||||
// zone de garde. La base de l arene est alignee sur 2 Mo, donc un
|
||||
// decalage de k octets donne une adresse ≡ k modulo 16 : c est
|
||||
// exactement le levier dont les chemins NEON auront besoin.
|
||||
u8* in_raw = work.alloc_array<u8>(c.in_len + 64);
|
||||
u8* in = in_raw + c.in_align_offset;
|
||||
|
||||
const usize out_cap = c.in_len;
|
||||
u8* ref_raw = work.alloc_array<u8>(out_cap + 64 + kGuardBytes);
|
||||
u8* ref_out = ref_raw + c.out_align_offset;
|
||||
u8* ref_guard = ref_out + out_cap;
|
||||
|
||||
u8* opt_raw = work.alloc_array<u8>(out_cap + 64 + kGuardBytes);
|
||||
u8* opt_out = opt_raw + c.out_align_offset;
|
||||
u8* opt_guard = opt_out + out_cap;
|
||||
|
||||
if (c.seed == 0) {
|
||||
fill_deterministic(in, c.in_len);
|
||||
} else {
|
||||
fill_random(in, c.in_len, c.seed);
|
||||
}
|
||||
|
||||
mem_fill(ref_out, 0, out_cap);
|
||||
mem_fill(opt_out, 0, out_cap);
|
||||
mem_fill(ref_guard, kGuardByte, kGuardBytes);
|
||||
mem_fill(opt_guard, kGuardByte, kGuardBytes);
|
||||
|
||||
const usize ref_len = p.ref(in, c.in_len, ref_out, out_cap);
|
||||
++out.cases_run;
|
||||
|
||||
bool case_ok = true;
|
||||
const char* reason = nullptr;
|
||||
usize diff_at = 0;
|
||||
|
||||
if (!guards_intact(ref_guard)) {
|
||||
case_ok = false;
|
||||
reason = "la REFERENCE a deborde son tampon de sortie";
|
||||
}
|
||||
|
||||
if (case_ok && p.opt != nullptr) {
|
||||
const usize opt_len = p.opt(in, c.in_len, opt_out, out_cap);
|
||||
|
||||
if (!guards_intact(opt_guard)) {
|
||||
case_ok = false;
|
||||
reason = "l implementation optimisee a deborde son tampon";
|
||||
} else if (opt_len != ref_len) {
|
||||
case_ok = false;
|
||||
reason = "longueur de sortie differente";
|
||||
} else {
|
||||
diff_at = mem_first_diff(ref_out, opt_out, ref_len);
|
||||
if (diff_at != ref_len) {
|
||||
case_ok = false;
|
||||
reason = "octet divergent";
|
||||
}
|
||||
}
|
||||
|
||||
if (!case_ok) {
|
||||
err_write("ECHEC ");
|
||||
err_write(p.name);
|
||||
err_write(" / ");
|
||||
err_write(c.label);
|
||||
err_write("\n ");
|
||||
err_write(reason);
|
||||
err_write("\n");
|
||||
err_write(" rejouer ce cas : graine=");
|
||||
err_write_i64(static_cast<i64>(c.seed));
|
||||
err_write(" in_len=");
|
||||
err_write_i64(static_cast<i64>(c.in_len));
|
||||
err_write(" align_in=+");
|
||||
err_write_i64(c.in_align_offset);
|
||||
err_write(" align_out=+");
|
||||
err_write_i64(c.out_align_offset);
|
||||
err_write("\n");
|
||||
err_write(" longueurs : reference=");
|
||||
err_write_i64(static_cast<i64>(ref_len));
|
||||
err_write(" optimisee=");
|
||||
err_write_i64(static_cast<i64>(opt_len));
|
||||
err_write("\n");
|
||||
if (diff_at < ref_len) {
|
||||
err_write(" premier octet divergent a l offset ");
|
||||
err_write_i64(static_cast<i64>(diff_at));
|
||||
err_write(" : attendu=");
|
||||
err_write_hex(ref_out[diff_at]);
|
||||
err_write(" obtenu=");
|
||||
err_write_hex(opt_out[diff_at]);
|
||||
err_write("\n");
|
||||
dump_context("attendu", ref_out, ref_len, diff_at);
|
||||
dump_context("obtenu ", opt_out, opt_len, diff_at);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!case_ok) {
|
||||
++out.cases_failed;
|
||||
pair_ok = false;
|
||||
}
|
||||
|
||||
work.rewind_to(mark);
|
||||
}
|
||||
|
||||
if (pair_ok) {
|
||||
err_write(p.opt == nullptr ? "REF " : "OK ");
|
||||
err_write(p.name);
|
||||
if (p.opt == nullptr) {
|
||||
err_write(" (reference figee, version assembleur absente)");
|
||||
}
|
||||
err_write("\n");
|
||||
}
|
||||
|
||||
// Un self-test attend un echec : dans ce cas, "reussi" veut dire "a bien
|
||||
// echoue". Sans cette inversion, on ne saurait pas prouver que le harnais
|
||||
// sait detecter une erreur connue.
|
||||
return expect_failure ? !pair_ok : pair_ok;
|
||||
}
|
||||
|
||||
bool run_all(mem::Arena& work, Report& out) {
|
||||
bool ok = true;
|
||||
#if PROJ3_EMBEDDED
|
||||
for (const Pair* const* it = __start_proj3_pairs; it != __stop_proj3_pairs; ++it) {
|
||||
if (!run_pair(**it, work, out, false)) ok = false;
|
||||
}
|
||||
#else
|
||||
for (usize i = 0; i < g_pair_count; ++i) {
|
||||
if (!run_pair(*g_pairs[i], work, out, false)) ok = false;
|
||||
}
|
||||
#endif
|
||||
return ok;
|
||||
}
|
||||
|
||||
} // namespace proj3::oracle
|
||||
@@ -0,0 +1,134 @@
|
||||
// test/oracle/oracle.hpp — harnais de validation croisee C++ / assembleur.
|
||||
//
|
||||
// METHODE (doc/methode-oracle.md) :
|
||||
// Toute routine critique existe en deux exemplaires : une reference C++ qui
|
||||
// marche, et une version assembleur qui va vite. Le harnais les execute sur
|
||||
// les MEMES entrees et compare les sorties OCTET PAR OCTET. Pas d epsilon,
|
||||
// pas de tolerance. La reference C++ n est jamais supprimee.
|
||||
//
|
||||
// AJOUTER UNE PAIRE : ecrire deux fonctions de signature RunFn, un tableau de
|
||||
// CaseSpec, et une ligne PROJ3_ORACLE_PAIR. Aucun fichier du harnais n est a
|
||||
// modifier. C est la condition pour qu il serve encore dans six mois.
|
||||
#pragma once
|
||||
|
||||
#include "proj3/base/types.hpp"
|
||||
#include "proj3/mem/arena.hpp"
|
||||
#include "proj3/mem/system.hpp"
|
||||
|
||||
namespace proj3::oracle {
|
||||
|
||||
// Arenes du programme, publiees pour que les paires puissent s en servir sans
|
||||
// que la signature RunFn ait a les transporter. Positionne par le point
|
||||
// d entree avant run_all(). Une paire qui l utilise doit rembobiner ce qu elle
|
||||
// prend (mark/rewind_to) : le harnais ne le fait que pour SES tampons.
|
||||
extern mem::System* g_system;
|
||||
|
||||
// Signature unique de toute routine testable.
|
||||
// in / in_len : entree en lecture seule
|
||||
// out / out_cap : sortie, deja remise a zero par le harnais
|
||||
// retour : nombre d octets ecrits (compare lui aussi)
|
||||
//
|
||||
// Tout passe par des octets. Une routine qui manipule des structures les
|
||||
// reinterprete depuis `in` : c est volontairement fruste, parce que c est ce
|
||||
// qui permet a UN harnais de comparer n importe quelle paire sans savoir de
|
||||
// quoi elle parle.
|
||||
using RunFn = usize (*)(const u8* in, usize in_len, u8* out, usize out_cap);
|
||||
|
||||
struct CaseSpec {
|
||||
const char* label;
|
||||
usize in_len;
|
||||
// Graine du generateur pseudo-aleatoire. 0 = cas deterministe explicite :
|
||||
// l entree est remplie par un motif fixe (voir fill_deterministic).
|
||||
u64 seed;
|
||||
// Decalage applique a la base des tampons, en octets, pour forcer un
|
||||
// desalignement. Les routines NEON auront des chemins differents selon
|
||||
// l alignement : il faut pouvoir tester les deux.
|
||||
u8 in_align_offset;
|
||||
u8 out_align_offset;
|
||||
};
|
||||
|
||||
struct Pair {
|
||||
const char* name;
|
||||
RunFn ref;
|
||||
// nullptr autorise : la paire existe, la version assembleur n est pas
|
||||
// encore ecrite. Le harnais execute alors la reference seule (pour
|
||||
// verifier qu elle ne plante ni n alloue) et signale la paire comme
|
||||
// "reference figee, asm absent". C est ce qui permet d enregistrer une
|
||||
// routine AVANT d avoir son asm, comme demande au chantier 5.
|
||||
RunFn opt;
|
||||
const CaseSpec* cases;
|
||||
usize case_count;
|
||||
};
|
||||
|
||||
// --- Enregistrement --------------------------------------------------------
|
||||
//
|
||||
// Deux mecanismes, un par cible, derriere la meme macro :
|
||||
//
|
||||
// Cible embarquee : les pointeurs de paires sont places dans une section ELF
|
||||
// nommee `proj3_pairs`. L editeur de liens synthetise automatiquement
|
||||
// __start_proj3_pairs / __stop_proj3_pairs pour toute section dont le nom
|
||||
// est un identifiant C valide. AUCUN constructeur statique n est
|
||||
// necessaire — c est indispensable ici, puisque asm/start.S ne parcourt
|
||||
// pas .init_array (cf. ADR-0001).
|
||||
//
|
||||
// Cible hote : le format PE de MinGW ne synthetise pas ces symboles. On
|
||||
// retombe sur un constructeur statique qui chaine la paire dans une liste.
|
||||
// L hote, lui, a un vrai demarrage C++ : c est sans risque.
|
||||
//
|
||||
// L asymetrie est laide mais elle est confinee a ces vingt lignes, et elle
|
||||
// evite d imposer un enregistrement manuel qui, lui, serait oublie.
|
||||
|
||||
void register_pair(const Pair* p);
|
||||
|
||||
struct Registrar {
|
||||
explicit Registrar(const Pair* p) { register_pair(p); }
|
||||
};
|
||||
|
||||
#if PROJ3_EMBEDDED
|
||||
#define PROJ3_ORACLE_PAIR(ident, name_str, ref_fn, opt_fn, cases_arr) \
|
||||
static const ::proj3::oracle::Pair ident##_pair = { \
|
||||
name_str, ref_fn, opt_fn, cases_arr, \
|
||||
sizeof(cases_arr) / sizeof(cases_arr[0])}; \
|
||||
__attribute__((used, section("proj3_pairs"))) static const ::proj3::oracle::Pair* \
|
||||
const ident##_slot = &ident##_pair
|
||||
#else
|
||||
#define PROJ3_ORACLE_PAIR(ident, name_str, ref_fn, opt_fn, cases_arr) \
|
||||
static const ::proj3::oracle::Pair ident##_pair = { \
|
||||
name_str, ref_fn, opt_fn, cases_arr, \
|
||||
sizeof(cases_arr) / sizeof(cases_arr[0])}; \
|
||||
static const ::proj3::oracle::Registrar ident##_slot(&ident##_pair)
|
||||
#endif
|
||||
|
||||
// --- Execution -------------------------------------------------------------
|
||||
|
||||
struct Report {
|
||||
u32 pairs_run = 0;
|
||||
u32 pairs_ref_only = 0;
|
||||
u32 cases_run = 0;
|
||||
u32 cases_failed = 0;
|
||||
};
|
||||
|
||||
// Execute toutes les paires enregistrees. `work` fournit les tampons.
|
||||
// Rend true si aucune divergence.
|
||||
bool run_all(mem::Arena& work, Report& out);
|
||||
|
||||
// Execute UNE paire donnee, sans passer par l enregistrement. Sert au
|
||||
// self-test du harnais (prouver qu il rejette une implementation fausse).
|
||||
bool run_pair(const Pair& p, mem::Arena& work, Report& out, bool expect_failure);
|
||||
|
||||
// Generateur pseudo-aleatoire reproductible : xorshift64*.
|
||||
// Choisi parce qu il tient en quatre lignes, n a aucun etat cache, et donne
|
||||
// exactement la meme suite sur AArch64 et sur x86-64 (arithmetique entiere
|
||||
// 64 bits non signee uniquement, aucun flottant).
|
||||
struct Rng {
|
||||
u64 state;
|
||||
explicit constexpr Rng(u64 seed) : state(seed == 0 ? 0x9E3779B97F4A7C15ull : seed) {}
|
||||
u64 next() {
|
||||
state ^= state >> 12;
|
||||
state ^= state << 25;
|
||||
state ^= state >> 27;
|
||||
return state * 0x2545F4914F6CDD1Dull;
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace proj3::oracle
|
||||
@@ -0,0 +1,69 @@
|
||||
// test/oracle/pairs_demo.cpp — paire de demonstration du harnais.
|
||||
//
|
||||
// Elle sert a deux choses et rien d autre :
|
||||
// 1. montrer a quoi ressemble l ajout d une paire (trois declarations, une
|
||||
// macro, aucun fichier du harnais touche) ;
|
||||
// 2. donner au self-test une erreur CONNUE a detecter.
|
||||
|
||||
#include "oracle.hpp"
|
||||
|
||||
extern "C" {
|
||||
proj3::usize proj3_fill_bytes_asm(const proj3::u8* in, proj3::usize in_len,
|
||||
proj3::u8* out, proj3::usize out_cap);
|
||||
proj3::usize proj3_fill_bytes_asm_broken(const proj3::u8* in, proj3::usize in_len,
|
||||
proj3::u8* out, proj3::usize out_cap);
|
||||
}
|
||||
|
||||
namespace proj3::oracle {
|
||||
|
||||
// Version de reference C++. Elle est la definition de ce qui est correct.
|
||||
// Elle n est JAMAIS supprimee, meme quand l assembleur est valide.
|
||||
usize fill_bytes_ref(const u8* in, usize in_len, u8* out, usize out_cap) {
|
||||
if (in_len == 0) return 0;
|
||||
const u8 value = in[0];
|
||||
for (usize i = 0; i < out_cap; ++i) out[i] = value;
|
||||
return out_cap;
|
||||
}
|
||||
|
||||
// Jeu de cas. Les explicites d abord, les aleatoires ensuite.
|
||||
//
|
||||
// Ce qui est couvert et pourquoi :
|
||||
// - taille nulle : le cas ou une boucle mal ecrite ecrit quand meme
|
||||
// - 1 octet : pas de corps de boucle vectorisable
|
||||
// - 15 / 16 / 17 : juste sous, sur, et juste au-dessus d une ligne
|
||||
// NEON de 128 bits
|
||||
// - 63 / 64 / 65 : idem pour une ligne de cache
|
||||
// - desalignements +1 +7 +9 : entree et sortie desalignees separement, puis
|
||||
// ensemble, parce qu un chemin NEON qui n aligne
|
||||
// qu un cote existe et est faux
|
||||
// - tailles aleatoires : ce a quoi on n a pas pense
|
||||
const CaseSpec kFillCases[] = {
|
||||
{"vide", 0, 0, 0, 0},
|
||||
{"un octet", 1, 0, 0, 0},
|
||||
{"15 (sous 128 bits)", 15, 0, 0, 0},
|
||||
{"16 (128 bits pile)", 16, 0, 0, 0},
|
||||
{"17 (128 bits +1)", 17, 0, 0, 0},
|
||||
{"63 (sous une ligne)", 63, 0, 0, 0},
|
||||
{"64 (une ligne pile)", 64, 0, 0, 0},
|
||||
{"65 (une ligne +1)", 65, 0, 0, 0},
|
||||
{"256 aligne", 256, 0, 0, 0},
|
||||
{"256 entree +1", 256, 0, 1, 0},
|
||||
{"256 sortie +1", 256, 0, 0, 1},
|
||||
{"256 les deux +7/+9", 256, 0, 7, 9},
|
||||
{"aleatoire 1021", 1021, 0x1234'5678'9ABC'DEF0ull, 0, 0},
|
||||
{"aleatoire 1021 +3/+5", 1021, 0x0F0F'0F0F'0F0F'0F0Full, 3, 5},
|
||||
{"aleatoire 4096", 4096, 0xDEAD'BEEF'CAFE'BABEull, 0, 0},
|
||||
};
|
||||
|
||||
// --- L ajout d une paire tient en une ligne -------------------------------
|
||||
PROJ3_ORACLE_PAIR(fill_bytes, "fill_bytes", &fill_bytes_ref, &proj3_fill_bytes_asm,
|
||||
kFillCases);
|
||||
|
||||
// La paire fausse n est PAS enregistree ici : elle ne doit pas faire echouer
|
||||
// la suite normale. Le self-test la construit a la main.
|
||||
extern const Pair kBrokenPair;
|
||||
const Pair kBrokenPair = {"fill_bytes (VERSION FAUSSE)", &fill_bytes_ref,
|
||||
&proj3_fill_bytes_asm_broken, kFillCases,
|
||||
sizeof(kFillCases) / sizeof(kFillCases[0])};
|
||||
|
||||
} // namespace proj3::oracle
|
||||
@@ -0,0 +1,197 @@
|
||||
// test/oracle/pairs_render.cpp — enregistrement des routines du pipeline de
|
||||
// rendu comme REFERENCES FIGEES.
|
||||
//
|
||||
// Aucune version assembleur n existe encore (chantier 5 : « Pas de version
|
||||
// assembleur du rasterizer dans cette passe »). C est precisement pour cela
|
||||
// que ces paires sont enregistrees maintenant, avec opt = nullptr :
|
||||
//
|
||||
// - le harnais execute la reference sur tous les cas, ce qui verifie qu elle
|
||||
// ne plante pas, ne deborde pas son tampon, et n alloue rien (le garde-fou
|
||||
// du chantier 3 est lie a cet executable) ;
|
||||
// - le jour ou la version NEON arrive, il n y a qu un pointeur a remplir.
|
||||
// Personne n a a se demander comment brancher le test : il est deja la.
|
||||
//
|
||||
// Enregistrer une routine AVANT d avoir son assembleur est la seule facon
|
||||
// d etre sur que le harnais sera utilise. Construit apres coup, il ne l est
|
||||
// jamais.
|
||||
|
||||
#include "oracle.hpp"
|
||||
|
||||
#include "proj3/render/compose.hpp"
|
||||
#include "proj3/render/rasterizer.hpp"
|
||||
|
||||
namespace proj3::oracle {
|
||||
namespace {
|
||||
|
||||
// --- Glyphe synthetique ----------------------------------------------------
|
||||
// Le harnais ne doit dependre d aucun fichier : il doit tourner sur la machine
|
||||
// de dev, sur un Raspberry Pi, dans un conteneur, sans police installee. On
|
||||
// fabrique donc un glyphe a partir des octets d entree.
|
||||
//
|
||||
// Forme : un rectangle exterieur (sens horaire) et un rectangle interieur
|
||||
// (sens anti-horaire), plus un arc quadratique. C est le minimum qui exerce
|
||||
// vraiment le nonzero winding : si la regle etait mal portee, le rectangle
|
||||
// interieur ne serait pas creuse et la difference sauterait aux yeux.
|
||||
constexpr u32 kSynthPointCount = 12;
|
||||
constexpr u32 kSynthContourCount = 2;
|
||||
|
||||
struct SynthGlyph {
|
||||
font::GlyphPoint points[kSynthPointCount];
|
||||
u32 contour_end[kSynthContourCount];
|
||||
font::Glyph glyph;
|
||||
};
|
||||
|
||||
void build_synth(SynthGlyph& g, const u8* in, usize in_len) {
|
||||
// Deux octets d entree pilotent la geometrie. Bornes pour rester dans des
|
||||
// valeurs de police plausibles et pour que le glyphe ne soit jamais vide.
|
||||
const f32 w = 200.0f + static_cast<f32>(in_len > 0 ? in[0] : 0u) * 2.0f;
|
||||
const f32 h = 300.0f + static_cast<f32>(in_len > 1 ? in[1] : 0u) * 2.0f;
|
||||
const f32 inset = 40.0f + static_cast<f32>(in_len > 2 ? (in[2] & 0x3Fu) : 0u);
|
||||
|
||||
auto P = [](f32 x, f32 y, bool on) {
|
||||
font::GlyphPoint p;
|
||||
p.x = x;
|
||||
p.y = y;
|
||||
p.on_curve = on;
|
||||
return p;
|
||||
};
|
||||
|
||||
// Contour exterieur : rectangle avec un cote superieur bombe (un point de
|
||||
// controle off-curve), 6 points.
|
||||
g.points[0] = P(0.0f, 0.0f, true);
|
||||
g.points[1] = P(w, 0.0f, true);
|
||||
g.points[2] = P(w, h, true);
|
||||
g.points[3] = P(w * 0.5f, h + 80.0f, false); // controle quadratique
|
||||
g.points[4] = P(0.0f, h, true);
|
||||
g.points[5] = P(0.0f, h * 0.5f, true);
|
||||
g.contour_end[0] = 6;
|
||||
|
||||
// Contour interieur, oriente en sens inverse : c est lui que le nonzero
|
||||
// doit creuser. 6 points aussi, pour garder un tableau simple.
|
||||
const f32 x0 = inset, x1 = w - inset;
|
||||
const f32 y0 = inset, y1 = h - inset;
|
||||
g.points[6] = P(x0, y0, true);
|
||||
g.points[7] = P(x0, y1, true);
|
||||
g.points[8] = P((x0 + x1) * 0.5f, y1 + 20.0f, false);
|
||||
g.points[9] = P(x1, y1, true);
|
||||
g.points[10] = P(x1, y0, true);
|
||||
g.points[11] = P((x0 + x1) * 0.5f, y0 - 20.0f, false);
|
||||
g.contour_end[1] = 12;
|
||||
|
||||
g.glyph = font::Glyph{};
|
||||
g.glyph.points = g.points;
|
||||
g.glyph.contour_end = g.contour_end;
|
||||
g.glyph.point_count = kSynthPointCount;
|
||||
g.glyph.contour_count = kSynthContourCount;
|
||||
g.glyph.advance_width = w + 100.0f;
|
||||
}
|
||||
|
||||
// --- Paire 1 : rasterization ----------------------------------------------
|
||||
usize rasterize_ref(const u8* in, usize in_len, u8* out, usize out_cap) {
|
||||
if (g_system == nullptr) return 0;
|
||||
|
||||
SynthGlyph g;
|
||||
build_synth(g, in, in_len);
|
||||
|
||||
// Taille en pixels pilotee par l entree, bornee a des corps realistes.
|
||||
const f32 px = 8.0f + static_cast<f32>(in_len > 3 ? (in[3] & 0x3Fu) : 16u);
|
||||
|
||||
mem::Arena& scratch = g_system->geometry;
|
||||
mem::Arena& store = g_system->atlas;
|
||||
const usize m_scratch = scratch.mark();
|
||||
const usize m_store = store.mark();
|
||||
|
||||
render::RasterizedGlyph rg;
|
||||
const bool ok = render::rasterize_glyph(g.glyph, 1000, px, store, scratch, rg);
|
||||
|
||||
usize written = 0;
|
||||
if (ok) {
|
||||
// On publie la couverture brute, plus les trois metriques en tete :
|
||||
// une divergence de bearing ou d avance doit etre detectee au meme
|
||||
// titre qu une divergence de pixel.
|
||||
const i32 meta[3] = {rg.bearing_x, rg.bearing_y, rg.advance};
|
||||
const u8* meta_bytes = reinterpret_cast<const u8*>(meta);
|
||||
for (usize i = 0; i < sizeof(meta) && written < out_cap; ++i) {
|
||||
out[written++] = meta_bytes[i];
|
||||
}
|
||||
const usize n = rg.coverage.size_bytes();
|
||||
for (usize i = 0; i < n && written < out_cap; ++i) {
|
||||
out[written++] = rg.coverage.pixels[i];
|
||||
}
|
||||
}
|
||||
|
||||
store.rewind_to(m_store);
|
||||
scratch.rewind_to(m_scratch);
|
||||
return written;
|
||||
}
|
||||
|
||||
// Les tailles sont choisies pour que la couverture depasse largement out_cap
|
||||
// dans les petits cas (on ne compare alors que le prefixe) et la remplisse
|
||||
// dans les grands.
|
||||
const CaseSpec kRasterCases[] = {
|
||||
{"entree vide", 0, 0, 0, 0},
|
||||
{"4 octets", 4, 0, 0, 0},
|
||||
{"64 octets", 64, 0, 0, 0},
|
||||
{"4 Ko", 4096, 0, 0, 0},
|
||||
{"4 Ko desaligne +1/+3", 4096, 0, 1, 3},
|
||||
{"aleatoire 4 Ko", 4096, 0xA5A5'5A5A'0F0F'F0F0ull, 0, 0},
|
||||
{"aleatoire 16 Ko", 16384, 0x0123'4567'89AB'CDEFull, 0, 0},
|
||||
};
|
||||
|
||||
PROJ3_ORACLE_PAIR(raster_glyph, "render::rasterize_glyph (glyphe synthetique)",
|
||||
&rasterize_ref, nullptr, kRasterCases);
|
||||
|
||||
// --- Paire 2 : composition -------------------------------------------------
|
||||
// Separee de la rasterization, comme le code l est : c est cette routine-la
|
||||
// qui deviendra un noyau NEON en premier.
|
||||
usize compose_ref(const u8* in, usize in_len, u8* out, usize out_cap) {
|
||||
if (g_system == nullptr || out_cap < 16) return 0;
|
||||
|
||||
// Framebuffer minuscule ecrit directement dans `out` : on compare donc
|
||||
// exactement les octets que la routine produit, sans recopie.
|
||||
const i32 fw = 32;
|
||||
const i32 fh = static_cast<i32>(out_cap / (4u * 32u));
|
||||
if (fh <= 0) return 0;
|
||||
|
||||
render::Framebuffer fb;
|
||||
fb.pixels = reinterpret_cast<u32*>(out);
|
||||
fb.width = fw;
|
||||
fb.height = fh;
|
||||
|
||||
// out est aligne par le harnais selon out_align_offset ; compose_coverage
|
||||
// exige 4 octets. On refuse proprement si l alignement ne convient pas,
|
||||
// plutot que de paniquer : ce cas fait partie de ce qu on veut tester.
|
||||
if ((reinterpret_cast<uptr>(out) & 3u) != 0) return 0;
|
||||
|
||||
render::framebuffer_clear(fb, 0xFF000000u);
|
||||
|
||||
mem::Arena& store = g_system->atlas;
|
||||
const usize m = store.mark();
|
||||
|
||||
render::Coverage8 cov = render::coverage_alloc(store, 16, 16);
|
||||
for (usize i = 0; i < cov.size_bytes(); ++i) {
|
||||
cov.pixels[i] = (i < in_len && (in[i] & 1u) != 0) ? 255 : 0;
|
||||
}
|
||||
|
||||
// Trois positions : entierement dedans, a cheval sur le bord droit, a
|
||||
// cheval sur le coin haut-gauche (coordonnees negatives).
|
||||
render::compose_coverage(fb, 2, 2, cov, 0xFFFFFFFFu);
|
||||
render::compose_coverage(fb, fw - 8, 4, cov, 0xFF00FF00u);
|
||||
render::compose_coverage(fb, -6, -6, cov, 0xFFFF0000u);
|
||||
|
||||
store.rewind_to(m);
|
||||
return static_cast<usize>(fw) * static_cast<usize>(fh) * 4u;
|
||||
}
|
||||
|
||||
const CaseSpec kComposeCases[] = {
|
||||
{"1 ligne", 128, 0, 0, 0},
|
||||
{"8 lignes", 1024, 0, 0, 0},
|
||||
{"32 lignes", 4096, 0, 0, 0},
|
||||
{"32 lignes aleatoire", 4096, 0xFEED'FACE'DEAD'C0DEull, 0, 0},
|
||||
};
|
||||
|
||||
PROJ3_ORACLE_PAIR(compose_cov, "render::compose_coverage", &compose_ref, nullptr,
|
||||
kComposeCases);
|
||||
|
||||
} // namespace
|
||||
} // namespace proj3::oracle
|
||||
@@ -0,0 +1,76 @@
|
||||
// test/oracle/selftest_main.cpp — VALIDATION DU HARNAIS LUI-MEME.
|
||||
//
|
||||
// « Un harnais qui ne sait pas detecter une erreur connue ne vaut rien. »
|
||||
//
|
||||
// Ce programme fait deux passes :
|
||||
// 1. la paire correcte doit etre ACCEPTEE ;
|
||||
// 2. la paire volontairement fausse (un octet de decalage) doit etre
|
||||
// REJETEE, avec un diagnostic exploitable affiche a l ecran.
|
||||
//
|
||||
// Il rend 0 seulement si les deux attentes sont satisfaites. Un harnais qui
|
||||
// accepterait la version fausse ferait echouer ce test, ce qui est le but.
|
||||
//
|
||||
// Ce binaire NE LIE PAS proj3_newguard : il doit afficher son diagnostic
|
||||
// jusqu au bout, et l on ne veut pas qu une allocation de la libc dans printf
|
||||
// vienne brouiller le resultat du test qui nous interesse ici.
|
||||
|
||||
#include "oracle.hpp"
|
||||
|
||||
#include "proj3/mem/system.hpp"
|
||||
#include "proj3/sys/panic.hpp"
|
||||
|
||||
using namespace proj3;
|
||||
|
||||
namespace proj3::oracle {
|
||||
usize fill_bytes_ref(const u8* in, usize in_len, u8* out, usize out_cap);
|
||||
extern const Pair kBrokenPair;
|
||||
} // namespace proj3::oracle
|
||||
|
||||
extern "C" {
|
||||
proj3::usize proj3_fill_bytes_asm(const proj3::u8*, proj3::usize, proj3::u8*, proj3::usize);
|
||||
}
|
||||
|
||||
int main() {
|
||||
err_write("=== self-test du harnais d oracle ===\n\n");
|
||||
|
||||
static mem::System sys;
|
||||
if (!mem::system_init(sys)) {
|
||||
err_write("impossible d acquerir la memoire de travail\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
// --- Passe 1 : la version correcte doit passer -------------------------
|
||||
err_write("passe 1 : la version assembleur CORRECTE doit etre acceptee\n");
|
||||
const oracle::Pair good = {"fill_bytes (version correcte)", &oracle::fill_bytes_ref,
|
||||
&proj3_fill_bytes_asm, oracle::kBrokenPair.cases,
|
||||
oracle::kBrokenPair.case_count};
|
||||
oracle::Report rep_good;
|
||||
const bool good_ok = oracle::run_pair(good, sys.scratch, rep_good, /*expect_failure=*/false);
|
||||
err_write(good_ok ? " -> acceptee, comme attendu\n\n"
|
||||
: " -> REJETEE ALORS QU ELLE EST CORRECTE (harnais casse)\n\n");
|
||||
|
||||
// --- Passe 2 : la version fausse doit etre rejetee ---------------------
|
||||
err_write("passe 2 : la version assembleur FAUSSE doit etre rejetee\n");
|
||||
err_write(" (defaut injecte : un octet de moins ecrit, longueur rendue correcte)\n");
|
||||
err_write(" le diagnostic ci-dessous est celui que le harnais produirait\n");
|
||||
err_write(" sur un vrai bug ; c est lui qu on evalue :\n\n");
|
||||
oracle::Report rep_bad;
|
||||
const bool bad_ok =
|
||||
oracle::run_pair(oracle::kBrokenPair, sys.scratch, rep_bad, /*expect_failure=*/true);
|
||||
err_write("\n");
|
||||
err_write(bad_ok ? " -> rejetee, comme attendu\n"
|
||||
: " -> ACCEPTEE ALORS QU ELLE EST FAUSSE (harnais inutile)\n");
|
||||
|
||||
err_write(" cas en echec detectes : ");
|
||||
err_write_i64(rep_bad.cases_failed);
|
||||
err_write(" / ");
|
||||
err_write_i64(rep_bad.cases_run);
|
||||
err_write("\n");
|
||||
err_write(" (les cas de longueur nulle ne peuvent pas diverger : c est normal\n");
|
||||
err_write(" qu ils ne comptent pas dans les echecs)\n");
|
||||
|
||||
const bool ok = good_ok && bad_ok;
|
||||
err_write(ok ? "\nRESULTAT : le harnais discrimine correctement\n"
|
||||
: "\nRESULTAT : LE HARNAIS EST DEFAILLANT\n");
|
||||
return ok ? 0 : 1;
|
||||
}
|
||||
@@ -0,0 +1,122 @@
|
||||
// test/test_arena.cpp — arenes et acquisition de pages (chantier 3).
|
||||
//
|
||||
// S execute sur la machine de dev. Il ne teste PAS le repli huge pages, qui
|
||||
// demande un vrai noyau Linux : sur l hote, page_acquire rend toujours
|
||||
// HostEmulated. Ce que ce test verifie, c est la logique d arene elle-meme,
|
||||
// qui est du code portable partage a l identique par les deux cibles.
|
||||
|
||||
#include "proj3/mem/layout.hpp"
|
||||
#include "proj3/mem/system.hpp"
|
||||
#include "proj3/sys/panic.hpp"
|
||||
|
||||
using namespace proj3;
|
||||
|
||||
namespace {
|
||||
|
||||
int g_failures = 0;
|
||||
|
||||
void check(bool cond, const char* what) {
|
||||
err_write(cond ? "OK " : "ECHEC ");
|
||||
err_write(what);
|
||||
err_write("\n");
|
||||
if (!cond) ++g_failures;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
int main() {
|
||||
err_write("=== arenes ===\n\n");
|
||||
|
||||
static mem::System sys;
|
||||
check(mem::system_init(sys), "system_init");
|
||||
mem::log_active_mode();
|
||||
err_write("\n");
|
||||
|
||||
check(sys.scanout.capacity() == mem::kScanoutBytes, "taille de l arene scanout");
|
||||
check(sys.scanout.used() == 0, "arene neuve : occupation nulle");
|
||||
|
||||
// --- Alignement ---------------------------------------------------------
|
||||
{
|
||||
mem::Arena& a = sys.scratch;
|
||||
a.reset();
|
||||
(void)a.alloc(1, 1); // desaligne volontairement la suite
|
||||
void* p16 = a.alloc(8, 16);
|
||||
void* p64 = a.alloc(8, 64);
|
||||
check((reinterpret_cast<uptr>(p16) & 15u) == 0, "alignement 16 respecte");
|
||||
check((reinterpret_cast<uptr>(p64) & 63u) == 0, "alignement 64 respecte");
|
||||
}
|
||||
|
||||
// --- Avance de pointeur -------------------------------------------------
|
||||
{
|
||||
mem::Arena& a = sys.scratch;
|
||||
a.reset();
|
||||
u8* x = a.alloc_array<u8>(100);
|
||||
u8* y = a.alloc_array<u8>(100);
|
||||
check(y == x + 100, "allocations contigues sans alignement force");
|
||||
check(a.used() == 200, "occupation exacte");
|
||||
}
|
||||
|
||||
// --- mark / rewind ------------------------------------------------------
|
||||
{
|
||||
mem::Arena& a = sys.scratch;
|
||||
a.reset();
|
||||
(void)a.alloc_array<u8>(500);
|
||||
const usize m = a.mark();
|
||||
(void)a.alloc_array<u8>(1000);
|
||||
check(a.used() == 1500, "occupation apres deux allocations");
|
||||
a.rewind_to(m);
|
||||
check(a.used() == 500, "rewind_to restitue la position");
|
||||
}
|
||||
|
||||
// --- reset --------------------------------------------------------------
|
||||
{
|
||||
mem::Arena& a = sys.scratch;
|
||||
(void)a.alloc_array<u8>(1000);
|
||||
const usize peak_before = a.peak();
|
||||
a.reset();
|
||||
check(a.used() == 0, "reset remet l occupation a zero");
|
||||
check(a.peak() == peak_before, "reset ne remet PAS le pic a zero");
|
||||
}
|
||||
|
||||
// --- Borne : try_alloc rend nullptr au lieu de paniquer -----------------
|
||||
// On ne peut pas tester alloc() directement : par conception, il tue le
|
||||
// processus. C est exactement ce que verifie test_new_guard pour operator
|
||||
// new ; ici on se contente de la variante non fatale.
|
||||
{
|
||||
mem::Arena& a = sys.input;
|
||||
a.reset();
|
||||
void* p = a.try_alloc(a.capacity() + 1, 1);
|
||||
check(p == nullptr, "try_alloc au-dela de la capacite rend nullptr");
|
||||
check(a.used() == 0, "un try_alloc refuse ne consomme rien");
|
||||
|
||||
void* q = a.try_alloc(a.capacity(), 1);
|
||||
check(q != nullptr, "try_alloc de la capacite exacte reussit");
|
||||
check(a.remaining() == 0, "arene pleine : reste nul");
|
||||
check(a.try_alloc(1, 1) == nullptr, "arene pleine : un octet de plus est refuse");
|
||||
}
|
||||
|
||||
// --- Debordement arithmetique -------------------------------------------
|
||||
{
|
||||
mem::Arena& a = sys.input;
|
||||
a.reset();
|
||||
const usize huge = ~static_cast<usize>(0) - 8;
|
||||
check(a.try_alloc(huge, 16) == nullptr, "taille absurde refusee sans reboucler");
|
||||
}
|
||||
|
||||
// --- Le budget annonce correspond au budget decoupe ---------------------
|
||||
{
|
||||
const usize sum = sys.scanout.capacity() + sys.geometry.capacity() +
|
||||
sys.atlas.capacity() + sys.input.capacity() +
|
||||
sys.scratch.capacity();
|
||||
check(sum == mem::kArenaTotalRaw, "somme des arenes == kArenaTotalRaw");
|
||||
check(sum + mem::kReserveBytes == mem::kArenaTotal, "reserve coherente");
|
||||
}
|
||||
|
||||
err_write("\nbudget total demande au noyau : ");
|
||||
err_write_i64(static_cast<i64>(mem::kArenaTotal));
|
||||
err_write(" octets\n");
|
||||
err_write("echecs : ");
|
||||
err_write_i64(g_failures);
|
||||
err_write("\n");
|
||||
return g_failures == 0 ? 0 : 1;
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
// test/test_new_guard.cpp — declenche VOLONTAIREMENT le garde-fou.
|
||||
//
|
||||
// CE TEST DOIT ECHOUER. CMake le declare avec WILL_FAIL TRUE : ctest le
|
||||
// considere reussi si et seulement si le processus se termine anormalement.
|
||||
//
|
||||
// C est la preuve demandee au chantier 3 : le filet de securite du pilier 2
|
||||
// fonctionne reellement, il n est pas seulement ecrit.
|
||||
//
|
||||
// Ce qu on observe quand on le lance a la main :
|
||||
// proj3: ALLOCATION INTERDITE: operator new taille=64
|
||||
// Le projet n alloue rien apres l init. Tout passe par une arene ...
|
||||
// code de sortie 71
|
||||
|
||||
#include "proj3/sys/panic.hpp"
|
||||
|
||||
using namespace proj3;
|
||||
|
||||
// volatile : empeche le compilateur d elider l allocation. Sans cela, un
|
||||
// -O2 un peu zele supprimerait le new et le test ne prouverait rien.
|
||||
volatile void* g_sink = nullptr;
|
||||
|
||||
int main() {
|
||||
err_write("=== garde-fou d allocation ===\n");
|
||||
err_write("Ce programme DOIT se terminer anormalement (code 71).\n");
|
||||
err_write("S il affiche la derniere ligne, le garde-fou ne marche pas.\n\n");
|
||||
|
||||
g_sink = new char[64];
|
||||
|
||||
err_write("\nECHEC : l allocation est passee, le garde-fou est inoperant.\n");
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1,274 @@
|
||||
// test/test_raster_golden.cpp — VALIDATION DU PORTAGE DU RASTERIZER.
|
||||
//
|
||||
// Compare, octet par octet, la sortie du code porte (proj3) a une reference
|
||||
// produite par le code d ORIGINE de Gastinel Write (tools/write_reference_dump.cpp).
|
||||
// Une divergence est un bug de portage, pas une tolerance a accorder.
|
||||
//
|
||||
// Ce test tourne sur la machine de dev. Ni telephone, ni affichage.
|
||||
//
|
||||
// NOTE SUR LA LECTURE DE FICHIER. Le rasterizer et le parser ne lisent aucun
|
||||
// fichier : c est l appelant qui fournit un tampon en memoire. C est le
|
||||
// decouplage demande au chantier 5 (l original appelait fopen depuis
|
||||
// TtfFont::load_from_file). Ici, l appelant est ce test, sur la cible hote,
|
||||
// et il utilise donc stdio. Sur la cible embarquee, l appelant utilisera
|
||||
// sys::open / sys::read. Aucune des deux voies ne traverse le rasterizer.
|
||||
//
|
||||
// Ce binaire lie proj3_newguard : si le portage avait laisse une allocation
|
||||
// dynamique quelque part, il mourrait ici avec le code 71.
|
||||
|
||||
#include <cstdio>
|
||||
|
||||
#include "proj3/font/ttf.hpp"
|
||||
#include "proj3/mem/system.hpp"
|
||||
#include "proj3/render/rasterizer.hpp"
|
||||
#include "proj3/sys/panic.hpp"
|
||||
|
||||
using namespace proj3;
|
||||
|
||||
namespace {
|
||||
|
||||
int g_failures = 0;
|
||||
int g_lines = 0;
|
||||
|
||||
// Lecture d un fichier entier dans une arene. stdio est autorise ici (cible
|
||||
// hote) ; fread n alloue pas via operator new, le garde-fou reste satisfait.
|
||||
u8* read_all(const char* path, mem::Arena& a, usize& out_size) {
|
||||
std::FILE* f = std::fopen(path, "rb");
|
||||
if (!f) return nullptr;
|
||||
std::fseek(f, 0, SEEK_END);
|
||||
const long n = std::ftell(f);
|
||||
std::fseek(f, 0, SEEK_SET);
|
||||
if (n <= 0) {
|
||||
std::fclose(f);
|
||||
return nullptr;
|
||||
}
|
||||
u8* buf = a.alloc_array<u8>(static_cast<usize>(n) + 1);
|
||||
const usize got = std::fread(buf, 1, static_cast<usize>(n), f);
|
||||
std::fclose(f);
|
||||
if (got != static_cast<usize>(n)) return nullptr;
|
||||
buf[n] = 0;
|
||||
out_size = static_cast<usize>(n);
|
||||
return buf;
|
||||
}
|
||||
|
||||
// --- Analyse lexicale minimale du fichier golden ---------------------------
|
||||
struct Cursor {
|
||||
const char* p;
|
||||
const char* end;
|
||||
};
|
||||
|
||||
void skip_spaces(Cursor& c) {
|
||||
while (c.p < c.end && (*c.p == ' ' || *c.p == '\t')) ++c.p;
|
||||
}
|
||||
|
||||
bool parse_u32(Cursor& c, u32& out) {
|
||||
skip_spaces(c);
|
||||
if (c.p >= c.end || *c.p < '0' || *c.p > '9') return false;
|
||||
u32 v = 0;
|
||||
while (c.p < c.end && *c.p >= '0' && *c.p <= '9') v = v * 10u + static_cast<u32>(*c.p++ - '0');
|
||||
out = v;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool parse_i32(Cursor& c, i32& out) {
|
||||
skip_spaces(c);
|
||||
bool neg = false;
|
||||
if (c.p < c.end && *c.p == '-') {
|
||||
neg = true;
|
||||
++c.p;
|
||||
}
|
||||
u32 v = 0;
|
||||
if (!parse_u32(c, v)) return false;
|
||||
out = neg ? -static_cast<i32>(v) : static_cast<i32>(v);
|
||||
return true;
|
||||
}
|
||||
|
||||
// Les tailles sont ecrites par %g et sont toutes entieres dans le jeu de test.
|
||||
// On accepte quand meme une partie fractionnaire, pour que le format ne se
|
||||
// referme pas sur une hypothese.
|
||||
bool parse_f32(Cursor& c, f32& out) {
|
||||
skip_spaces(c);
|
||||
i32 whole = 0;
|
||||
if (!parse_i32(c, whole)) return false;
|
||||
f32 v = static_cast<f32>(whole);
|
||||
if (c.p < c.end && *c.p == '.') {
|
||||
++c.p;
|
||||
f32 scale = 0.1f;
|
||||
while (c.p < c.end && *c.p >= '0' && *c.p <= '9') {
|
||||
v += static_cast<f32>(*c.p++ - '0') * scale;
|
||||
scale *= 0.1f;
|
||||
}
|
||||
}
|
||||
out = v;
|
||||
return true;
|
||||
}
|
||||
|
||||
i32 hex_digit(char ch) {
|
||||
if (ch >= '0' && ch <= '9') return ch - '0';
|
||||
if (ch >= 'a' && ch <= 'f') return ch - 'a' + 10;
|
||||
if (ch >= 'A' && ch <= 'F') return ch - 'A' + 10;
|
||||
return -1;
|
||||
}
|
||||
|
||||
void fail(const char* what, u32 cp, f32 px) {
|
||||
++g_failures;
|
||||
err_write("ECHEC ");
|
||||
err_write(what);
|
||||
err_write(" codepoint=");
|
||||
err_write_hex(cp);
|
||||
err_write(" taille=");
|
||||
err_write_i64(static_cast<i64>(px));
|
||||
err_write("\n");
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
if (argc < 3) {
|
||||
err_write("usage: proj3_test_raster <police.ttf> <golden_write.txt>\n");
|
||||
return 2;
|
||||
}
|
||||
|
||||
static mem::System sys;
|
||||
if (!mem::system_init(sys)) {
|
||||
err_write("acquisition memoire impossible\n");
|
||||
return 2;
|
||||
}
|
||||
|
||||
// Les deux fichiers vivent dans l arene de scanout, qui est la plus grande
|
||||
// et n a aucun usage a ce stade des chantiers. C est un detournement
|
||||
// assume et local a ce test.
|
||||
usize ttf_size = 0, golden_size = 0;
|
||||
const u8* ttf = read_all(argv[1], sys.scanout, ttf_size);
|
||||
if (ttf == nullptr) {
|
||||
err_write("police illisible\n");
|
||||
return 2;
|
||||
}
|
||||
const u8* golden = read_all(argv[2], sys.scanout, golden_size);
|
||||
if (golden == nullptr) {
|
||||
err_write("fichier golden illisible : lancer d abord proj3_write_reference\n");
|
||||
return 2;
|
||||
}
|
||||
|
||||
font::TtfFont f;
|
||||
const char* err = nullptr;
|
||||
if (!f.load(ttf, ttf_size, sys.atlas, err)) {
|
||||
err_write("chargement TTF : ");
|
||||
err_write(err);
|
||||
err_write("\n");
|
||||
return 2;
|
||||
}
|
||||
err_write("police chargee : upem=");
|
||||
err_write_i64(f.units_per_em());
|
||||
err_write(" glyphes=");
|
||||
err_write_i64(f.num_glyphs());
|
||||
err_write(" entrees cmap=");
|
||||
err_write_i64(f.cmap_size());
|
||||
err_write("\n\n");
|
||||
|
||||
font::GlyphBuilder builder;
|
||||
builder.init(sys.atlas);
|
||||
|
||||
Cursor c{reinterpret_cast<const char*>(golden),
|
||||
reinterpret_cast<const char*>(golden) + golden_size};
|
||||
|
||||
while (c.p < c.end) {
|
||||
// Une ligne a la fois.
|
||||
const char* line_end = c.p;
|
||||
while (line_end < c.end && *line_end != '\n') ++line_end;
|
||||
Cursor line{c.p, line_end};
|
||||
c.p = (line_end < c.end) ? line_end + 1 : c.end;
|
||||
|
||||
skip_spaces(line);
|
||||
if (line.p >= line.end || *line.p == '#' || *line.p == '\r') continue;
|
||||
|
||||
u32 cp = 0, gid_ref = 0, ok_ref = 0;
|
||||
f32 px = 0.0f;
|
||||
i32 w_ref = 0, h_ref = 0, bx_ref = 0, by_ref = 0, adv_ref = 0;
|
||||
if (!parse_u32(line, cp) || !parse_f32(line, px) || !parse_u32(line, gid_ref) ||
|
||||
!parse_u32(line, ok_ref) || !parse_i32(line, w_ref) || !parse_i32(line, h_ref) ||
|
||||
!parse_i32(line, bx_ref) || !parse_i32(line, by_ref) || !parse_i32(line, adv_ref)) {
|
||||
err_write("ECHEC ligne golden malformee\n");
|
||||
++g_failures;
|
||||
continue;
|
||||
}
|
||||
skip_spaces(line);
|
||||
const char* hex = line.p;
|
||||
usize hex_len = 0;
|
||||
while (line.p < line.end && hex_digit(*line.p) >= 0) {
|
||||
++line.p;
|
||||
++hex_len;
|
||||
}
|
||||
++g_lines;
|
||||
|
||||
// --- Cote proj3 -----------------------------------------------------
|
||||
const u16 gid = f.glyph_index_for_codepoint(cp);
|
||||
if (static_cast<u32>(gid) != gid_ref) {
|
||||
fail("index de glyphe different (cmap)", cp, px);
|
||||
continue;
|
||||
}
|
||||
font::Glyph g;
|
||||
f.load_glyph(gid, builder, g);
|
||||
|
||||
const usize m_atlas = sys.atlas.mark();
|
||||
const usize m_geo = sys.geometry.mark();
|
||||
render::RasterizedGlyph rg;
|
||||
const bool ok = render::rasterize_glyph(g, f.units_per_em(), px, sys.atlas,
|
||||
sys.geometry, rg);
|
||||
|
||||
if (ok != (ok_ref != 0)) {
|
||||
fail("rasterize_glyph : succes/echec different", cp, px);
|
||||
} else if (!ok) {
|
||||
// Glyphe vide : seule l avance a un sens, et elle doit coincider.
|
||||
if (rg.advance != adv_ref) fail("avance differente (glyphe vide)", cp, px);
|
||||
} else {
|
||||
if (rg.coverage.width != w_ref || rg.coverage.height != h_ref) {
|
||||
fail("dimensions du bitmap differentes", cp, px);
|
||||
} else if (rg.bearing_x != bx_ref || rg.bearing_y != by_ref) {
|
||||
fail("bearing different", cp, px);
|
||||
} else if (rg.advance != adv_ref) {
|
||||
fail("avance differente", cp, px);
|
||||
} else if (hex_len != rg.coverage.size_bytes() * 2) {
|
||||
fail("longueur de couverture differente", cp, px);
|
||||
} else {
|
||||
// Comparaison octet par octet. Aucun epsilon : la couverture
|
||||
// est binaire, l egalite doit etre exacte.
|
||||
usize bad = rg.coverage.size_bytes();
|
||||
for (usize i = 0; i < rg.coverage.size_bytes(); ++i) {
|
||||
const i32 hi = hex_digit(hex[i * 2]);
|
||||
const i32 lo = hex_digit(hex[i * 2 + 1]);
|
||||
const u8 expect = static_cast<u8>((hi << 4) | lo);
|
||||
if (rg.coverage.pixels[i] != expect) {
|
||||
bad = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (bad != rg.coverage.size_bytes()) {
|
||||
fail("pixel divergent", cp, px);
|
||||
err_write(" premier octet divergent a l offset ");
|
||||
err_write_i64(static_cast<i64>(bad));
|
||||
err_write(" (x=");
|
||||
err_write_i64(static_cast<i64>(bad % static_cast<usize>(w_ref)));
|
||||
err_write(" y=");
|
||||
err_write_i64(static_cast<i64>(bad / static_cast<usize>(w_ref)));
|
||||
err_write(") attendu=");
|
||||
err_write_hex(static_cast<u64>((hex_digit(hex[bad * 2]) << 4) |
|
||||
hex_digit(hex[bad * 2 + 1])));
|
||||
err_write(" obtenu=");
|
||||
err_write_hex(rg.coverage.pixels[bad]);
|
||||
err_write("\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
sys.geometry.rewind_to(m_geo);
|
||||
sys.atlas.rewind_to(m_atlas);
|
||||
}
|
||||
|
||||
err_write("\nlignes comparees : ");
|
||||
err_write_i64(g_lines);
|
||||
err_write("\nechecs : ");
|
||||
err_write_i64(g_failures);
|
||||
err_write("\n");
|
||||
return g_failures == 0 ? 0 : 1;
|
||||
}
|
||||
@@ -0,0 +1,263 @@
|
||||
// test/test_syscalls.cpp — harnais des wrappers d appels systeme (chantier 2).
|
||||
//
|
||||
// OU L EXECUTER : n importe quel Linux AArch64. Raspberry Pi sous 64 bits,
|
||||
// VM ARM, conteneur, ou qemu-user. PAS BESOIN DU TELEPHONE : aucun test ne
|
||||
// touche au graphique, a l entree, ni au reseau.
|
||||
//
|
||||
// qemu-aarch64 ./proj3_test_syscalls # emulation utilisateur
|
||||
// ./proj3_test_syscalls # natif
|
||||
//
|
||||
// Code de sortie : 0 si tout passe, 1 sinon. Chaque ligne dit OK ou ECHEC.
|
||||
//
|
||||
// LE CAS D ERREUR EST LE PLUS IMPORTANT. Un wrapper qui rendrait -2 et qu on
|
||||
// interpreterait comme un descripteur valide donnerait un bug tres loin d ici.
|
||||
// Chaque appel a donc son cas nominal ET son cas d erreur, et le cas d erreur
|
||||
// verifie a la fois is_err() ET le code errno exact.
|
||||
|
||||
#include "proj3/base/mem.hpp"
|
||||
#include "proj3/sys/panic.hpp"
|
||||
#include "proj3/sys/syscalls.hpp"
|
||||
#include "proj3/sys/uapi.hpp"
|
||||
|
||||
using namespace proj3;
|
||||
|
||||
namespace {
|
||||
|
||||
int g_failures = 0;
|
||||
|
||||
void check(bool cond, const char* what) {
|
||||
err_write(cond ? "OK " : "ECHEC ");
|
||||
err_write(what);
|
||||
err_write("\n");
|
||||
if (!cond) ++g_failures;
|
||||
}
|
||||
|
||||
void check_err(const sys::Result r, i32 expected_errno, const char* what) {
|
||||
const bool ok = r.is_err() && r.err() == expected_errno;
|
||||
err_write(ok ? "OK " : "ECHEC ");
|
||||
err_write(what);
|
||||
if (!ok) {
|
||||
err_write(" (attendu -");
|
||||
err_write_i64(expected_errno);
|
||||
err_write(", obtenu ");
|
||||
err_write_i64(r.raw);
|
||||
err_write(")");
|
||||
++g_failures;
|
||||
}
|
||||
err_write("\n");
|
||||
}
|
||||
|
||||
// Chemin garanti inexistant. On evite /tmp, qui peut etre monte en lecture
|
||||
// seule ou absent sur un systeme minimal.
|
||||
const char kMissing[] = "/proj3-ce-fichier-n-existe-pas-42";
|
||||
const char kSelf[] = "/proc/self/maps";
|
||||
|
||||
} // namespace
|
||||
|
||||
extern "C" int proj3_main(int, char**) {
|
||||
err_write("=== wrappers syscall AArch64 ===\n\n");
|
||||
|
||||
// --- Verification prealable de la convention elle-meme -----------------
|
||||
// Si ces trois assertions ne tenaient pas, tous les tests suivants
|
||||
// seraient sans valeur.
|
||||
{
|
||||
constexpr sys::Result ok_zero{0};
|
||||
constexpr sys::Result ok_big{-4096};
|
||||
constexpr sys::Result err_min{-1};
|
||||
constexpr sys::Result err_max{-4095};
|
||||
static_assert(!ok_zero.is_err());
|
||||
static_assert(!ok_big.is_err(), "-4096 est HORS de la plage d erreur");
|
||||
static_assert(err_min.is_err() && err_min.err() == 1);
|
||||
static_assert(err_max.is_err() && err_max.err() == 4095);
|
||||
check(true, "plage d erreur [-4095,-1] exacte (verifiee a la compilation)");
|
||||
}
|
||||
|
||||
// --- getpid : nominal seulement (il ne peut pas echouer) ---------------
|
||||
{
|
||||
const sys::Result r = sys::getpid();
|
||||
check(r.is_ok() && r.value() > 0, "getpid nominal");
|
||||
}
|
||||
|
||||
// --- write ------------------------------------------------------------
|
||||
{
|
||||
const char msg[] = "";
|
||||
const sys::Result r = sys::write(sys::FD_STDOUT, msg, 0);
|
||||
check(r.is_ok() && r.value() == 0, "write nominal (0 octet)");
|
||||
}
|
||||
{
|
||||
const sys::Result r = sys::write(-1, "x", 1);
|
||||
check_err(r, sys::EBADF, "write cas d erreur (descripteur invalide -> EBADF)");
|
||||
}
|
||||
|
||||
// --- open --------------------------------------------------------------
|
||||
// LE test qui compte : un open sur un fichier absent doit remonter une
|
||||
// erreur, pas un descripteur.
|
||||
{
|
||||
const sys::Result r = sys::open(kMissing, sys::O_RDONLY);
|
||||
check_err(r, sys::ENOENT, "open cas d erreur (fichier absent -> ENOENT)");
|
||||
// Verification supplementaire, explicite : la valeur ne doit surtout
|
||||
// pas etre utilisable comme descripteur.
|
||||
check(r.is_err(), "open absent : is_err() vaut bien true");
|
||||
}
|
||||
|
||||
i32 fd = -1;
|
||||
{
|
||||
const sys::Result r = sys::open(kSelf, sys::O_RDONLY);
|
||||
check(r.is_ok() && r.fd() >= 0, "open nominal (/proc/self/maps)");
|
||||
if (r.is_ok()) fd = r.fd();
|
||||
}
|
||||
|
||||
// --- read --------------------------------------------------------------
|
||||
{
|
||||
u8 buf[64];
|
||||
mem_fill(buf, 0, sizeof(buf));
|
||||
if (fd >= 0) {
|
||||
const sys::Result r = sys::read(fd, buf, sizeof(buf));
|
||||
check(r.is_ok() && r.value() > 0, "read nominal");
|
||||
} else {
|
||||
check(false, "read nominal (open prealable a echoue)");
|
||||
}
|
||||
const sys::Result r2 = sys::read(-1, buf, sizeof(buf));
|
||||
check_err(r2, sys::EBADF, "read cas d erreur (descripteur invalide -> EBADF)");
|
||||
}
|
||||
|
||||
// --- lseek -------------------------------------------------------------
|
||||
{
|
||||
if (fd >= 0) {
|
||||
const sys::Result r = sys::lseek(fd, 0, sys::SEEK_SET);
|
||||
check(r.is_ok() && r.value() == 0, "lseek nominal (retour au debut)");
|
||||
} else {
|
||||
check(false, "lseek nominal (open prealable a echoue)");
|
||||
}
|
||||
const sys::Result r2 = sys::lseek(-1, 0, sys::SEEK_SET);
|
||||
check_err(r2, sys::EBADF, "lseek cas d erreur (descripteur invalide -> EBADF)");
|
||||
}
|
||||
|
||||
// --- fstat -------------------------------------------------------------
|
||||
{
|
||||
sys::Stat st;
|
||||
mem_fill(&st, 0, sizeof(st));
|
||||
if (fd >= 0) {
|
||||
const sys::Result r = sys::fstat(fd, &st);
|
||||
// /proc/self/maps a une taille declaree nulle : on verifie le mode,
|
||||
// pas la taille. S_IFREG = 0100000 octal.
|
||||
check(r.is_ok() && (st.mode & 0170000u) == 0100000u,
|
||||
"fstat nominal (mode de fichier regulier)");
|
||||
} else {
|
||||
check(false, "fstat nominal (open prealable a echoue)");
|
||||
}
|
||||
const sys::Result r2 = sys::fstat(-1, &st);
|
||||
check_err(r2, sys::EBADF, "fstat cas d erreur (descripteur invalide -> EBADF)");
|
||||
}
|
||||
|
||||
// --- ioctl -------------------------------------------------------------
|
||||
// Aucun ioctl graphique dans cette passe. On se contente de verifier que
|
||||
// le wrapper transmet bien et que l erreur remonte : un ioctl inconnu sur
|
||||
// un fichier regulier donne ENOTTY.
|
||||
{
|
||||
if (fd >= 0) {
|
||||
const sys::Result r = sys::ioctl(fd, 0xDEADu);
|
||||
check(r.is_err() && (r.err() == sys::ENOTTY || r.err() == sys::EINVAL),
|
||||
"ioctl cas d erreur (requete inconnue -> ENOTTY/EINVAL)");
|
||||
} else {
|
||||
check(false, "ioctl cas d erreur (open prealable a echoue)");
|
||||
}
|
||||
const sys::Result r2 = sys::ioctl(-1, 0x1234u);
|
||||
check_err(r2, sys::EBADF, "ioctl descripteur invalide -> EBADF");
|
||||
}
|
||||
|
||||
// --- close -------------------------------------------------------------
|
||||
{
|
||||
if (fd >= 0) {
|
||||
const sys::Result r = sys::close(fd);
|
||||
check(r.is_ok(), "close nominal");
|
||||
} else {
|
||||
check(false, "close nominal (open prealable a echoue)");
|
||||
}
|
||||
const sys::Result r2 = sys::close(-1);
|
||||
check_err(r2, sys::EBADF, "close cas d erreur (descripteur invalide -> EBADF)");
|
||||
}
|
||||
|
||||
// --- mmap / munmap / madvise -------------------------------------------
|
||||
// Verification explicite du 6e argument de mmap : on mappe avec un offset
|
||||
// non nul sur un descripteur invalide. Si le 6e argument n arrivait pas au
|
||||
// noyau, l erreur serait EINVAL au lieu de EBADF.
|
||||
{
|
||||
const usize len = 4096;
|
||||
const sys::Result r = sys::mmap(nullptr, len, sys::PROT_READ | sys::PROT_WRITE,
|
||||
sys::MAP_PRIVATE | sys::MAP_ANONYMOUS, -1, 0);
|
||||
check(r.is_ok(), "mmap nominal (anonyme 4 Ko)");
|
||||
if (r.is_ok()) {
|
||||
u8* p = static_cast<u8*>(r.ptr());
|
||||
p[0] = 0x42;
|
||||
p[len - 1] = 0x43;
|
||||
check(p[0] == 0x42 && p[len - 1] == 0x43, "mmap : la memoire est ecrivable");
|
||||
|
||||
const sys::Result a = sys::madvise(p, len, sys::MADV_WILLNEED);
|
||||
check(a.is_ok(), "madvise nominal (MADV_WILLNEED)");
|
||||
|
||||
const sys::Result u = sys::munmap(p, len);
|
||||
check(u.is_ok(), "munmap nominal");
|
||||
} else {
|
||||
check(false, "mmap : la memoire est ecrivable (mmap a echoue)");
|
||||
check(false, "madvise nominal (mmap a echoue)");
|
||||
check(false, "munmap nominal (mmap a echoue)");
|
||||
}
|
||||
}
|
||||
{
|
||||
// Longueur nulle : EINVAL. Cas d erreur simple et sans effet de bord.
|
||||
const sys::Result r = sys::mmap(nullptr, 0, sys::PROT_READ,
|
||||
sys::MAP_PRIVATE | sys::MAP_ANONYMOUS, -1, 0);
|
||||
check_err(r, sys::EINVAL, "mmap cas d erreur (longueur nulle -> EINVAL)");
|
||||
}
|
||||
{
|
||||
// 6e argument : offset non nul, descripteur invalide, mapping de
|
||||
// fichier. Le noyau doit voir un fd invalide (EBADF).
|
||||
const sys::Result r = sys::mmap(nullptr, 4096, sys::PROT_READ, sys::MAP_PRIVATE, -1,
|
||||
4096);
|
||||
check(r.is_err(), "mmap 6e argument : l appel parvient au noyau et echoue proprement");
|
||||
}
|
||||
{
|
||||
const sys::Result r = sys::munmap(nullptr, 0);
|
||||
check_err(r, sys::EINVAL, "munmap cas d erreur (longueur nulle -> EINVAL)");
|
||||
}
|
||||
{
|
||||
const sys::Result r = sys::madvise(nullptr, 0, 0xFFFF);
|
||||
check(r.is_err(), "madvise cas d erreur (conseil inconnu)");
|
||||
}
|
||||
|
||||
// --- clock_gettime ------------------------------------------------------
|
||||
{
|
||||
sys::TimeSpec ts{0, 0};
|
||||
const sys::Result r = sys::clock_gettime(sys::CLOCK_MONOTONIC, &ts);
|
||||
check(r.is_ok() && (ts.sec > 0 || ts.nsec > 0), "clock_gettime nominal (MONOTONIC)");
|
||||
|
||||
const sys::Result r2 = sys::clock_gettime(0x7FFF, &ts);
|
||||
check(r2.is_err(), "clock_gettime cas d erreur (horloge inconnue)");
|
||||
}
|
||||
|
||||
// --- nanosleep ----------------------------------------------------------
|
||||
{
|
||||
const sys::TimeSpec req{0, 1000000}; // 1 ms
|
||||
const sys::Result r = sys::nanosleep(&req, nullptr);
|
||||
check(r.is_ok(), "nanosleep nominal (1 ms)");
|
||||
|
||||
const sys::TimeSpec bad{0, 2000000000}; // nsec >= 1e9 : invalide
|
||||
const sys::Result r2 = sys::nanosleep(&bad, nullptr);
|
||||
check_err(r2, sys::EINVAL, "nanosleep cas d erreur (nsec hors bornes -> EINVAL)");
|
||||
}
|
||||
|
||||
// --- exit / exit_group ---------------------------------------------------
|
||||
// Ils ne reviennent pas : on ne peut pas les tester ici sans terminer le
|
||||
// processus. Ils sont testes IMPLICITEMENT et de la seule facon possible :
|
||||
// ce programme se termine par exit_group via asm/start.S, et son code de
|
||||
// sortie est observable par le script appelant. Si exit_group etait faux,
|
||||
// ce binaire ne rendrait jamais la main proprement.
|
||||
err_write("NOTE exit/exit_group : testes implicitement par la terminaison\n");
|
||||
err_write(" de ce programme (code de sortie observable a l exterieur).\n");
|
||||
|
||||
err_write("\nechecs : ");
|
||||
err_write_i64(g_failures);
|
||||
err_write("\n");
|
||||
return g_failures == 0 ? 0 : 1;
|
||||
}
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur