11cb0ef41Sopenharmony_ci#!/usr/bin/env python 21cb0ef41Sopenharmony_ci# Copyright 2016 the V8 project authors. All rights reserved. 31cb0ef41Sopenharmony_ci# Use of this source code is governed by a BSD-style license that can be 41cb0ef41Sopenharmony_ci# found in the LICENSE file. 51cb0ef41Sopenharmony_ci 61cb0ef41Sopenharmony_ci"""Corrects objdump output. The logic is from sancov.py, see comments there.""" 71cb0ef41Sopenharmony_ci 81cb0ef41Sopenharmony_ci# for py2/py3 compatibility 91cb0ef41Sopenharmony_cifrom __future__ import print_function 101cb0ef41Sopenharmony_ci 111cb0ef41Sopenharmony_ciimport sys 121cb0ef41Sopenharmony_ci 131cb0ef41Sopenharmony_cifor line in sys.stdin: 141cb0ef41Sopenharmony_ci print('0x%x' % (int(line.strip(), 16) + 4)) 15