In-Shek Hsu

11 papers C 1Misc 2Journal 8
YearRankTypeTitle / Venue / Authors
1988 J jnl
IEEE Trans. Computers
In-Shek Hsu, Trieu-Kien Truong, Leslie J. Deutsch, Irving S. Reed
1988 J jnl
IEEE Trans. Computers
Trieu-Kien Truong, Irving S. Reed, In-Shek Hsu, Hsuen-Chyun Shyu, Howard M. Shao
1988 J jnl
IEEE Trans. Acoust. Speech Signal Process.
Trieu-Kien Truong, D. Y. Pei, Irving S. Reed, Yao-Fang Chu, In-Shek Hsu
1987 J jnl
IEEE Trans. Acoust. Speech Signal Process.
Hsuen-Chyun Shyu, Trieu-Kien Truong, Irving S. Reed, In-Shek Hsu, Jaw John Chang
1986 Misc conf
ICASSP
Howard M. Shao, Trieu-Kien Truong, In-Shek Hsu, Leslie J. Deutsch, Irving S. Reed
1986 J jnl
IEEE Trans. Computers
Trieu-Kien Truong, Jaw John Chang, In-Shek Hsu, D. Y. Pei, Irving S. Reed
1986 J jnl
IEEE Trans. Computers
Irving S. Reed, Trieu-Kien Truong, Jørn M. Jensen, In-Shek Hsu
1985 J jnl
IEEE Trans. Acoust. Speech Signal Process.
Jaw John Chang, Trieu-Kien Truong, Howard M. Shao, Irving S. Reed, In-Shek Hsu
1985 Misc conf
ICASSP
Jaw John Chang, Trieu-Kien Truong, Howard M. Shao, Irving S. Reed, In-Shek Hsu
1985 C conf
IEEE Symposium on Computer Arithmetic
Irving S. Reed, Trieu-Kien Truong, Jaw John Chang, Howard M. Shao, In-Shek Hsu
1984 J jnl
IEEE Trans. Computers
In-Shek Hsu, Irving S. Reed, Trieu-Kien Truong, Ke Wang, Chiunn-Shyong Ye, Leslie J. Deutsch
redb/extractors/decompiler/bninja/run.py
← Index redb/extractors/decompiler/bninja/run.py python
import argparse
import json

from decompiler import BinaryNinjaDecompiler
from utils.json_encoder import BinaryNinjaEncoder


def run_from_command_line():
    parser = argparse.ArgumentParser(description="Binary Ninja Decompiler")
    parser.add_argument("filepath", help="Path to the binary file to analyze")
    parser.add_argument(
        "--output", "-o", help="Output JSON file path (default: stdout)"
    )
    parser.add_argument(
        "--timeout",
        "-t",
        type=int,
        default=1200,
        help="Analysis timeout in seconds (default: 1200)",
    )
    args = parser.parse_args()

    with BinaryNinjaDecompiler(args.filepath, args.timeout) as decompiler:
        success = decompiler.extract()

        if not success:
            decompiler.log.error("Analysis failed")
            return 1

        # Output results
        if args.output:
            with open(args.output, "w") as f:
                json.dump(decompiler.analysis_results, f, cls=BinaryNinjaEncoder)
            decompiler.log.info(f"Results written to {args.output}")
        else:
            print(json.dumps(decompiler.analysis_results, cls=BinaryNinjaEncoder))

    return 0


if __name__ == "__main__":
    run_from_command_line()