- entry_type: ghost_instrumentation
  metadata:
    format_version: "2.0"
    uuid: 7096c20f-890f-4a43-96be-e7295df95b66
    creation_time: 2025-05-28T12:14:29Z
    producer:
      name: Goblint
      version: heads/master-0-gb8fb60e5d-dirty
      command_line: '''./goblint'' ''--conf'' ''conf/svcomp-ghost.json'' ''--set''
        ''ana.base.privatization'' ''protection'' ''--set'' ''ana.autotune.activated[-]''
        ''octagon'' ''--sets'' ''ana.specification'' ''/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/properties/unreach-call.prp''
        ''--sets'' ''exp.architecture'' ''32bit'' ''/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i'''
    task:
      input_files:
      - /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i
      input_file_hashes:
        /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i: 8f929a317f167560539ae4b4d441a695b43dc484839e0d977f902275d758b932
      data_model: ILP32
      language: C
      specification: CHECK( init(main()), LTL(G ! call(reach_error())) )
  content:
    ghost_variables:
    - name: m_locked
      scope: global
      type: int
      initial:
        value: "0"
        format: c_expression
    - name: multithreaded
      scope: global
      type: int
      initial:
        value: "0"
        format: c_expression
    ghost_updates:
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i
        line: 960
        column: 3
        function: main
      updates:
      - variable: multithreaded
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i
        line: 949
        column: 3
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i
        line: 947
        column: 5
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i
        line: 947
        column: 5
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i
        line: 947
        column: 5
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i
        line: 947
        column: 5
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i
        line: 947
        column: 5
        function: thread2
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i
        line: 945
        column: 3
        function: thread2
      updates:
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i
        line: 939
        column: 3
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i
        line: 937
        column: 5
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i
        line: 937
        column: 5
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i
        line: 937
        column: 5
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i
        line: 937
        column: 5
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i
        line: 937
        column: 5
        function: thread1
      updates:
      - variable: m_locked
        value: "0"
        format: c_expression
      - variable: m_locked
        value: "1"
        format: c_expression
    - location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i
        line: 935
        column: 3
        function: thread1
      updates:
      - variable: m_locked
        value: "1"
        format: c_expression
- entry_type: invariant_set
  metadata:
    format_version: "2.0"
    uuid: 7e52d587-0852-4438-8825-10cbbc6309ad
    creation_time: 2025-05-28T12:14:29Z
    producer:
      name: Goblint
      version: heads/master-0-gb8fb60e5d-dirty
      command_line: '''./goblint'' ''--conf'' ''conf/svcomp-ghost.json'' ''--set''
        ''ana.base.privatization'' ''protection'' ''--set'' ''ana.autotune.activated[-]''
        ''octagon'' ''--sets'' ''ana.specification'' ''/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/properties/unreach-call.prp''
        ''--sets'' ''exp.architecture'' ''32bit'' ''/mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i'''
    task:
      input_files:
      - /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i
      input_file_hashes:
        /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i: 8f929a317f167560539ae4b4d441a695b43dc484839e0d977f902275d758b932
      data_model: ILP32
      language: C
      specification: CHECK( init(main()), LTL(G ! call(reach_error())) )
  content:
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i
        line: 961
        column: 3
        function: main
      value: '! multithreaded || (0 <= num && num <= 1)'
      format: c_expression
  - invariant:
      type: location_invariant
      location:
        file_name: /mnt/goblint-svcomp/benchexec/sv-benchmarks/c/pthread/sync01.i
        line: 962
        column: 3
        function: main
      value: '! multithreaded || (0 <= num && num <= 1)'
      format: c_expression
