#include <inttypes.h>
#include <stdint.h>
#include <stdio.h>
void print(int64_t i) {
printf("%" PRIu8
"\n", *((uint8_t*)&i
)); printf("%" PRIu8
"\n", *(((uint8_t*)&i
) + 1)); printf("%" PRIu8
"\n", *(((uint8_t*)&i
) + 2)); printf("%" PRIu8
"\n", *(((uint8_t*)&i
) + 3)); printf("%" PRIu8
"\n", *(((uint8_t*)&i
) + 4)); printf("%" PRIu8
"\n", *(((uint8_t*)&i
) + 5)); printf("%" PRIu8
"\n", *(((uint8_t*)&i
) + 6)); printf("%" PRIu8
"\n", *(((uint8_t*)&i
) + 7)); }
int main() {
int64_t i = 922337203685477580;
i *= 10;
i += 8;
print(i);
if (i == -i) {
}
print(-i);
}
I2luY2x1ZGUgPGludHR5cGVzLmg+CiNpbmNsdWRlIDxzdGRpbnQuaD4KI2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIHByaW50KGludDY0X3QgaSkgewogICAgcHJpbnRmKCIlIiBQUklkNjQgIlxuIiwgaSk7CiAgICBwcmludGYoIiUiIFBSSXU4ICJcbiIsICooKHVpbnQ4X3QqKSZpKSk7CiAgICBwcmludGYoIiUiIFBSSXU4ICJcbiIsICooKCh1aW50OF90KikmaSkgKyAxKSk7CiAgICBwcmludGYoIiUiIFBSSXU4ICJcbiIsICooKCh1aW50OF90KikmaSkgKyAyKSk7CiAgICBwcmludGYoIiUiIFBSSXU4ICJcbiIsICooKCh1aW50OF90KikmaSkgKyAzKSk7CiAgICBwcmludGYoIiUiIFBSSXU4ICJcbiIsICooKCh1aW50OF90KikmaSkgKyA0KSk7CiAgICBwcmludGYoIiUiIFBSSXU4ICJcbiIsICooKCh1aW50OF90KikmaSkgKyA1KSk7CiAgICBwcmludGYoIiUiIFBSSXU4ICJcbiIsICooKCh1aW50OF90KikmaSkgKyA2KSk7CiAgICBwcmludGYoIiUiIFBSSXU4ICJcbiIsICooKCh1aW50OF90KikmaSkgKyA3KSk7Cn0KCmludCBtYWluKCkgewogICAgaW50NjRfdCBpID0gOTIyMzM3MjAzNjg1NDc3NTgwOwogICAgaSAqPSAxMDsKICAgIGkgKz0gODsKICAgIHByaW50KGkpOwogICAgaWYgKGkgPT0gLWkpIHsKICAgICAgICBwcmludGYoIlRoZXkgYXJlIGVxdWFsIVxuIik7CiAgICB9CiAgICBwcmludCgtaSk7Cn0=